| | |
| | | this.$set(obj,'empiricalValueAddss',arr) |
| | | // obj.empiricalValueAddss = arr |
| | | if(obj.note){ |
| | | snote=obj.inote |
| | | } |
| | | // obj.inote=obj.note |
| | | this.$set(obj,'inote',obj.note) |
| | | }else{ |
| | | this.$set(obj,'inote',null) |
| | | } |
| | | if(arr.length > this.empiricalValueAdd){ |
| | | this.empiricalValueAdd = arr.length |
| | | } |
| | |
| | | arr.splice((arr.length-1),1) |
| | | let obj = { |
| | | devideId: i.eId, |
| | | fpid: row.iid, |
| | | fpid: i.iid, |
| | | inspectionValue: arr.join(","), |
| | | note : i.inote |
| | | } |
| | |
| | | } else { |
| | | if (this.empiricalValueAddMaxNumber != this.empiricalValueAdd - 1) { |
| | | this.empiricalValueAdd = this.empiricalValueAdd - 1; |
| | | // this.changeRowResult() |
| | | this.changeRowResult() |
| | | this.inspectionItems.forEach(i => { |
| | | i.empiricalValueAddss.splice(this.empiricalValueAdd, 1); |
| | | }); |
| | |
| | | <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=>{ |
| | |
| | | <el-radio label="报废">报废</el-radio> |
| | | </div> |
| | | <div style="padding: 20px;"> |
| | | <el-radio label="返工">返工</el-radio> |
| | | <el-radio label="降为他用">降为他用</el-radio> |
| | | </div> |
| | | </el-row> |
| | |
| | | type: 'text', |
| | | size: 'small', |
| | | fun: this.Submitreview, |
| | | show: { |
| | | key: 'state', |
| | | val: [0] |
| | | } |
| | | // show: { |
| | | // key: 'state', |
| | | // val: [0] |
| | | // }, |
| | | showFun: (row)=>{return row.type == '原材料检验'&&row.state==0} |
| | | }) |
| | | } |
| | | if(this.permissions.quality_processconfiguration_result){ |