Explorar o código

修改小程序,erp业务,查看暂存的入库任务,净重显示为0,成本为空,运费的小数点后四位消失

mxx %!s(int64=3) %!d(string=hai) anos
pai
achega
8ce0b4d987
Modificáronse 1 ficheiros con 7 adicións e 6 borrados
  1. 7 6
      src/views/warehouse/warehouseManagementPut.vue

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

@@ -1433,19 +1433,20 @@ export default {
         })
         return
       }
-      if (!this.deptBudgetList.cost) {
+      if (!this.deptBudgetList.freight) {
         this.$message({
           message: '运费不能为空',
           type: 'warning',
         })
         return
       }
+      
       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)
       ) {
         this.$message({