Fixiaobai
2023-09-15 8b50aeca95625137cbb09fe3968ac46284ca6f1d
src/components/view/finishedProductInspectionUp.vue
@@ -268,8 +268,8 @@
                name: null
            }, // node点击保存当前点击数据
            clickSelectDevice: {
                index: "", // 点击选择存储当前行索引
                rpId: "" // 点击选择存储当前行项目Id
                index: null, // 点击选择存储当前行索引
                rpId: null // 点击选择存储当前行项目Id
            }
        };
    },
@@ -396,13 +396,22 @@
                }
            }).then(res => {
                this.materialOptions = res.data;
                if(this.materialOptions.length===1){
                    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);