Fixiaobai
2023-09-19 88859106604b03bed968f2f55508e3a5b83f4ce9
src/components/view/finishedProductInspectionUp.vue
@@ -268,8 +268,8 @@
                name: null
            }, // node点击保存当前点击数据
            clickSelectDevice: {
                index: "", // 点击选择存储当前行索引
                rpId: "" // 点击选择存储当前行项目Id
                index: null, // 点击选择存储当前行索引
                rpId: null // 点击选择存储当前行项目Id
            }
        };
    },
@@ -337,7 +337,7 @@
                        message: '上报成功',
                        type: 'success'
                    });
                    this.$refs.comBackMain(true)
                    this.$parent.comBackMain(true)
                } else {
                    this.$message({
                        message: res.message,
@@ -396,13 +396,22 @@
                }
            }).then(res => {
                this.materialOptions = res.data;
                if(this.materialOptions.length===1&&row.did!=null){
                    this.$message({
                    message: '该项目下只有一个试验设备,无需选择!',
                    type: 'warning'
                });
                    return
                }
                row.isSelectDevice = true
                this.filterText = row.did
            });
        },
        // 点击表格选择触发
        clickTableSelect(scope) {
            scope.row.isSelectDevice = true
            // this.centerDialogVisible = true;
            if(this.clickSelectDevice.index!=null){
                this.$set(this.inspectionItems[this.clickSelectDevice.index],'isSelectDevice',false)
            }
            this.clickSelectDevice.index = scope.$index;
            this.clickSelectDevice.rpId = scope.row.id;
            this.getOptions(scope.row);