licp
2024-05-06 b98bb5a14531d68e3ee1a483a79899de0de47704
src/views/quality/processInspect/processInspect-form.vue
@@ -401,7 +401,7 @@
                    <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>
@@ -458,7 +458,7 @@
                    { pattern: /^\d+$/, message: '请输入数字', trigger: 'blur' }
                ],
                outBatchNo: [
                    { required: true, message: '请选择批次号', trigger: 'change' }
                    { required: true, message: '请选择批次号', trigger: 'change' },
                ],
            },
            unqualified:false,
@@ -739,6 +739,10 @@
        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 => {
@@ -809,8 +813,10 @@
                                    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
@@ -1001,7 +1007,7 @@
            } 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=>{