Browse Source

fix: 绑定物质前校验主设备

yusheng 1 tháng trước cách đây
mục cha
commit
b13172b63a

+ 4 - 0
src/views/recordComponents/programRulesDialog.vue

@@ -1306,6 +1306,10 @@
         this.currentRow = row;
         this.currentRow = row;
         this.currentIndex = index;
         this.currentIndex = index;
         if (type=='substanceName') {
         if (type=='substanceName') {
+          if(  this.addForm.deviceId){
+            this.$message.error('请选择主设备!')
+            return
+          }
           this.$refs.bindSubstanceRef.open(
           this.$refs.bindSubstanceRef.open(
             this.addForm.deviceId,
             this.addForm.deviceId,
             this.addForm.deviceName,
             this.addForm.deviceName,