| | |
| | | </div> |
| | | <div class="packageInspect-detail"> |
| | | <el-row :gutter="10" style="width:100%;z-index: 10;height:50px;"> |
| | | <el-col :span="20">检验项目</el-col> |
| | | <el-col :span="2"> |
| | | <el-button v-if="resultVal=='' || resultVal==null" style="width:100%" size="small" @click="clickAddLine()">添加检验项目</el-button> |
| | | <el-col :sm="18" :lg="20">检验项目</el-col> |
| | | <el-col :sm="3" :lg="2" > |
| | | <el-button v-if="resultVal=='' || resultVal==null" size="small" @click="clickAddLine()">添加检验项目</el-button> |
| | | </el-col> |
| | | <el-col :span="2"> |
| | | <el-col :sm="3" :lg="2"> |
| | | <el-button v-if="resultVal=='' || resultVal==null" style="width:100%" type="primary" size="small" |
| | | @click="savePackIns()">保存</el-button> |
| | | </el-col> |
| | |
| | | :tree-props="{children: 'children', hasChildren: 'hasChildren'}"> |
| | | <el-table-column type="index" label="序号" width="60"> |
| | | </el-table-column> |
| | | <el-table-column prop="name" label="项目" width="260"> |
| | | <el-table-column prop="name" label="项目" width="160"> |
| | | <template slot-scope="scope"> |
| | | <el-input :readonly="resultVal!=null" v-if="scope.row.children" class="inline-input" style="width:90%;" v-model="scope.row.name" |
| | | <el-input :readonly="resultVal!=null" v-if="scope.row.children" class="inline-input" style="width:80%;" v-model="scope.row.name" |
| | | placeholder="请输入项目名称"></el-input> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="required" label="要求" width="260"> |
| | | <el-table-column prop="required" label="要求" width="160" show-overflow-tooltip> |
| | | <template slot-scope="scope"> |
| | | <div v-if="!scope.row.children"> |
| | | <el-input :readonly="resultVal!=null" v-model="scope.row.required" |
| | |
| | | </div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="note" label="检验描述" width="260" > |
| | | <el-table-column prop="note" label="检验描述" width="160" show-overflow-tooltip> |
| | | <template slot-scope="scope"> |
| | | <div v-if="!scope.row.children"> |
| | | <el-input :readonly="resultVal!=null" v-model="scope.row.note" placeholder="检验描述"></el-input> |
| | |
| | | <el-table class="l-mes" border height="90" :data="conclusionTable" ref="conclusion" v-model="conclusion" |
| | | :header-cell-style="{textAlign:'center',color:'black',backgroundColor:'#fafafa'}" |
| | | :cell-style="{textAlign:'center'}"> |
| | | <el-table-column prop="packageNo" label="包装编号"></el-table-column> |
| | | <el-table-column prop="userName" label="检验员"></el-table-column> |
| | | <el-table-column prop="packageNo" label="包装编号" width="200" show-overflow-tooltip></el-table-column> |
| | | <el-table-column prop="userName" label="检验员" width="200" show-overflow-tooltip></el-table-column> |
| | | <el-table-column prop="result" label="检验结论"> |
| | | <template slot-scope="scope"> |
| | | <el-select :disabled="resultVal!=null" style="width:100%" v-model="scope.row.result"> |
| | |
| | | _than.confirmSubmit(_than.submitData,true) |
| | | } |
| | | }).catch(error=>{ |
| | | console.log("输入行号"); |
| | | _than.dialogVisible = true |
| | | }) |
| | | |
| | |
| | | }) |
| | | this.list[i].children.splice(childrenIndex,1) |
| | | } |
| | | this.changeResult() |
| | | }, |
| | | //保存检查项 |
| | | savePackIns(){ |
| | |
| | | updatePackageInsProduct(dataList).then(res=>{ |
| | | if(res.status===200){ |
| | | this.$message.success("保存成功") |
| | | this.init() |
| | | } |
| | | }).catch(error=>{ |
| | | console.log(error); |