Ver Fonte

Merge branch 'master' of http://git.zthymaoyi.com:3000/gdc/yiliangyiyun-pc

gjy há 3 anos atrás
pai
commit
0c52bf8505
1 ficheiros alterados com 7 adições e 6 exclusões
  1. 7 6
      src/views/warehouse/warehouseManagementPut.vue

+ 7 - 6
src/views/warehouse/warehouseManagementPut.vue

@@ -1433,19 +1433,20 @@ export default {
         })
         })
         return
         return
       }
       }
-      if (!this.deptBudgetList.cost) {
+      if (!this.deptBudgetList.freight) {
         this.$message({
         this.$message({
           message: '运费不能为空',
           message: '运费不能为空',
           type: 'warning',
           type: 'warning',
         })
         })
         return
         return
       }
       }
+      
       if (
       if (
-        this.deptBudgetList.cost < 0 ||
-        this.deptBudgetList.cost > 100000 ||
-        (String(this.deptBudgetList.cost).indexOf('.') != -1 &&
-          String(this.deptBudgetList.cost).length -
-            (String(this.deptBudgetList.cost).indexOf('.') + 1) >
+        this.deptBudgetList.freight < 0 ||
+        this.deptBudgetList.freight > 100000 ||
+        (String(this.deptBudgetList.freight).indexOf('.') != -1 &&
+          String(this.deptBudgetList.freight).length -
+            (String(this.deptBudgetList.freight).indexOf('.') + 1) >
             2)
             2)
       ) {
       ) {
         this.$message({
         this.$message({