| | |
| | | <el-input v-model="ruleForm.number"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="批次号" prop="outBatchNo"> |
| | | <el-select v-model="ruleForm.outBatchNo" multiple placeholder="请选择批次号" style="width: 100%;"> |
| | | <el-select v-model="ruleForm.outBatchNo" multiple placeholder="请选择批次号" style="width: 100%;" :multiple-limit="Number(ruleForm.number)"> |
| | | <el-option :label="m" :value="m" v-for="(m,i) in outBatchNoList" :key="i"></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | |
| | | { pattern: /^\d+$/, message: '请输入数字', trigger: 'blur' } |
| | | ], |
| | | outBatchNo: [ |
| | | { required: true, message: '请选择批次号', trigger: 'change' } |
| | | { required: true, message: '请选择批次号', trigger: 'change' }, |
| | | ], |
| | | }, |
| | | unqualified:false, |
| | |
| | | handleSubmit(){ |
| | | this.$refs.ruleForm.validate((valid) => { |
| | | if (valid) { |
| | | if(this.ruleForm.outBatchNo.length!=this.ruleForm.number){ |
| | | this.$message.error(`请选择${this.ruleForm.number}个批次号`) |
| | | return |
| | | } |
| | | this.loading = true; |
| | | let obj = {number:this.ruleForm.number,outBatchNo:this.ruleForm.outBatchNo.join(','),...this.unqualifiedInfo}; |
| | | updateProcessInspectsById(obj).then(res => { |
| | |
| | | arr = obj.inspectionValue.split(",") |
| | | } |
| | | this.$set(obj, "empiricalValueAddss", arr) |
| | | this.$set(obj, "inote", obj.inote) |
| | | if(!obj.inote){ |
| | | obj.inote = null |
| | | // obj.inote = null |
| | | this.$set(obj, "inote", null) |
| | | } |
| | | if (arr.length > this.empiricalValueAdd) { |
| | | this.empiricalValueAdd = arr.length |
| | |
| | | } else { |
| | | if (_than.empiricalValueAddMaxNumber != _than.empiricalValueAdd - 1) { |
| | | _than.empiricalValueAdd = _than.empiricalValueAdd - 1; |
| | | // _than.changeRowResult() |
| | | _than.changeRowResult() |
| | | _than.inspectionItems.forEach(i => { |
| | | if(i.children){ |
| | | i.children.forEach(ele=>{ |