瀏覽代碼

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

mxx 3 年之前
父節點
當前提交
8ce0b4d987
共有 1 個文件被更改,包括 7 次插入6 次删除
  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({