高敬炎 1 year ago
parent
commit
9b4827949e
1 changed files with 7 additions and 4 deletions
  1. 7 4
      src/views/tradeServicesManagement/warehouseReceiptAdd.vue

+ 7 - 4
src/views/tradeServicesManagement/warehouseReceiptAdd.vue

@@ -200,6 +200,9 @@
             }else{
               this.deptBudgetList.dryOutWeight = weight.toFixed(2)
             }
+            if( this.deptBudgetList.unitPrice){
+              this.inputChange()
+            }
           }
         }
       }
@@ -421,11 +424,8 @@
           }
           return true
         }
-        if (!this.deptBudgetList.weight || _Validate(0, this.deptBudgetList.useWeight, 3, '', this.deptBudgetList
-            .weight)) {
-          if (!this.deptBudgetList.weight) {
+        if (!this.deptBudgetList.weight) {
             this.$message.error('本单重量不能为空!');
-          } 
           return false
         }
         if (!this.deptBudgetList.unitPrice || _Validate(1, 20000, 3, '', this.deptBudgetList
@@ -460,6 +460,7 @@
           return false
         }
         if (!this.deptBudgetList.appendix) {
+          console.log(this.deptBudgetList.appendix)
           this.$message.error('附件不能为空!');
           return false
         } else if (this.deptBudgetList.appendix.split(',').length > 30) {
@@ -485,7 +486,9 @@
         }
         
         let isValidate = false
+        console.log(this.validate())
         isValidate = this.validate()
+        console.log(isValidate)
         if (isValidate) {
           this.$confirm(`确定提交审核?`, {
             cancelButtonText: '取消',