zhangyuewww 3 jaren geleden
bovenliggende
commit
232c1d8ce4

+ 6 - 2
src/views/warehouse/warehouseManagementGross.vue

@@ -449,7 +449,7 @@
                   size="small"
                 />
                 <el-select
-                  v-if="options2.length > 0"
+                  v-if="carstatus && options2.length > 0"
                   filterable
                   :filter-method="dataFilter2"
                   v-model="deptBudgetList.carNo"
@@ -1278,7 +1278,11 @@ export default {
         return
       }
       if (!this.deptBudgetList.cost) {
-        this.deptBudgetList.cost=0
+        this.$message({
+          message: '未获取到成本,请编辑后提交',
+          type: 'warning',
+        })
+        return
       }
       if (
         this.deptBudgetList.cost < 0 ||

+ 5 - 1
src/views/warehouse/warehouseManagementNoWeightIn.vue

@@ -982,7 +982,11 @@
           return
         }
         if (!this.dataList.cost) {
-          this.dataList.cost=0
+          this.$message({
+            message: '未获取到成本,请编辑后提交',
+            type: 'warning',
+          })
+          return
         }
         if (
           this.dataList.cost < 0 ||

+ 5 - 1
src/views/warehouse/warehouseManagementPut.vue

@@ -1757,7 +1757,11 @@ export default {
         return
       }
       if (!this.deptBudgetList.cost) {
-        this.deptBudgetList.cost=0
+        this.$message({
+          message: '未获取到成本,请编辑后提交',
+          type: 'warning',
+        })
+        return
       }
       if (
         this.deptBudgetList.cost < 0 ||