heyang месяцев назад: 11
Родитель
Сommit
55fe4e23d0

+ 14 - 4
src/views/chemicalManage/inventoryManagement/savePending/addPage.vue

@@ -385,6 +385,11 @@
             controlSolid:0,//管控固体
             unReguLiquids:0,//非管控液体
             unReguSolid:0,//非管控固体
+
+            controlLiquidsMax:0,//管控液体最大值
+            controlSolidMax:0,//管控固体最大值
+            unReguLiquidsMax:0,//非管控液体最大值
+            unReguSolidMax:0,//非管控固体最大值
           });
           if (this.userType==11 ||this.userType==22){
             this.chemicalApplyGetUserInfo();
@@ -427,25 +432,25 @@
               }
             }
           }
-          if(list>this.newData.controlLiquids){
+          if(list>this.newData.controlLiquidsMax){
             self.newData.hxpStockWaitModelList[index].normsNum=undefined;
             self.newData.hxpStockWaitModelList[index].applyNum=undefined;
             this.$message.error('超出管控液体存储上限!')
             return
           }
-          if(list2>this.newData.controlSolid){
+          if(list2>this.newData.controlSolidMax){
             self.newData.hxpStockWaitModelList[index].normsNum=undefined;
             self.newData.hxpStockWaitModelList[index].applyNum=undefined;
             this.$message.error('超出管控固体存储上限!')
             return
           }
-          if(list3>this.newData.unReguLiquids){
+          if(list3>this.newData.unReguLiquidsMax){
             self.newData.hxpStockWaitModelList[index].normsNum=undefined;
             self.newData.hxpStockWaitModelList[index].applyNum=undefined;
             this.$message.error('超出非管控液体存储上限!')
             return
           }
-          if(list4>this.newData.unReguSolid){
+          if(list4>this.newData.unReguSolidMax){
             self.newData.hxpStockWaitModelList[index].normsNum=undefined;
             self.newData.hxpStockWaitModelList[index].applyNum=undefined;
             this.$message.error('超出非管控固体存储上限!')
@@ -620,6 +625,11 @@
           this.$set(this.newData,'controlSolid',response.data.controlSolid);
           this.$set(this.newData,'unReguLiquids',response.data.unReguLiquids);
           this.$set(this.newData,'unReguSolid',response.data.unReguSolid);
+
+          this.$set(this.newData,'controlLiquidsMax',response.data.manageLiquidsMax);
+          this.$set(this.newData,'controlSolidMax',response.data.manageSolidMax);
+          this.$set(this.newData,'unReguLiquidsMax',response.data.notManageLiquidsMax);
+          this.$set(this.newData,'unReguSolidMax',response.data.notManageSolidMax);
         });
       },
       //选中化学品

+ 14 - 4
src/views/chemicalManage/purchaseManage/purchaseRegister/addPage.vue

@@ -386,6 +386,11 @@
             controlSolid:0,//管控固体
             unReguLiquids:0,//非管控液体
             unReguSolid:0,//非管控固体
+
+            controlLiquidsMax:0,//管控液体最大值
+            controlSolidMax:0,//管控固体最大值
+            unReguLiquidsMax:0,//非管控液体最大值
+            unReguSolidMax:0,//非管控固体最大值
           });
           if (this.userType==11 ||this.userType==22){
             this.chemicalApplyGetUserInfo();
@@ -462,25 +467,25 @@
               }
             }
           }
-          if(list>this.newData.controlLiquids){
+          if(list>this.newData.controlLiquidsMax){
             self.newData.hxpApplyDetailModelList[index].normsNum=undefined;
             self.newData.hxpApplyDetailModelList[index].applyNum=undefined;
             this.$message.error('超出管控液体存储上限!')
             return
           }
-          if(list2>this.newData.controlSolid){
+          if(list2>this.newData.controlSolidMax){
             self.newData.hxpApplyDetailModelList[index].normsNum=undefined;
             self.newData.hxpApplyDetailModelList[index].applyNum=undefined;
             this.$message.error('超出管控固体存储上限!')
             return
           }
-          if(list3>this.newData.unReguLiquids){
+          if(list3>this.newData.unReguLiquidsMax){
             self.newData.hxpApplyDetailModelList[index].normsNum=undefined;
             self.newData.hxpApplyDetailModelList[index].applyNum=undefined;
             this.$message.error('超出非管控液体存储上限!')
             return
           }
-          if(list4>this.newData.unReguSolid){
+          if(list4>this.newData.unReguSolidMax){
             self.newData.hxpApplyDetailModelList[index].normsNum=undefined;
             self.newData.hxpApplyDetailModelList[index].applyNum=undefined;
             this.$message.error('超出非管控固体存储上限!')
@@ -599,6 +604,11 @@
           this.$set(this.newData,'controlSolid',response.data.controlSolid);
           this.$set(this.newData,'unReguLiquids',response.data.unReguLiquids);
           this.$set(this.newData,'unReguSolid',response.data.unReguSolid);
+
+          this.$set(this.newData,'controlLiquidsMax',response.data.manageLiquidsMax);
+          this.$set(this.newData,'controlSolidMax',response.data.manageSolidMax);
+          this.$set(this.newData,'unReguLiquidsMax',response.data.notManageLiquidsMax);
+          this.$set(this.newData,'unReguSolidMax',response.data.notManageSolidMax);
         });
       },
       //选中化学品