| | |
| | | class="item" effect="dark" content="请先选择设备!" placement="top-start"> |
| | | <el-input :disabled="scope.row.eId == null" |
| | | v-model="scope.row.empiricalValueAddss[index]" |
| | | @blur="changeState(scope.row)" placeholder="请输入检测值"></el-input> |
| | | @blur="changeState(scope.row,true)" placeholder="请输入检测值"></el-input> |
| | | <span v-if="resultVal != null && processInspectVo.id != null" |
| | | v-text="scope.row.empiricalValueAddss[index]"></span> |
| | | </el-tooltip> |
| | |
| | | this.processInspectVo.material = sample.material |
| | | this.technologyList = sample.children |
| | | }, |
| | | changeState(row) { |
| | | changeState(row,isChecked) { |
| | | console.log(row); |
| | | const _than = this |
| | | if(isChecked){ |
| | | let isNumber = true |
| | | for(var i=0;i<row.empiricalValueAddss.length;i++){ |
| | | let val = row.empiricalValueAddss[i] |
| | | if(!/^[0-9]*[1-9][0-9]*$/.test(val)){ |
| | | row.empiricalValueAddss[i] = null |
| | | _than.$message.error("请输入数字") |
| | | isNumber = false |
| | | } |
| | | } |
| | | if(!isNumber){ |
| | | return |
| | | } |
| | | } |
| | | if (row.iid != null && row.iid != '') { |
| | | let str = "" |
| | | row.empiricalValueAddss.forEach(e => { |
| | |
| | | ppid: row.iid, |
| | | inspectionValue: str, |
| | | note : row.inote |
| | | |
| | | } |
| | | updateProcessInsProduct(obj).then(res => { |
| | | if (res.data.code == 0) { |