Browse Source

生成出库单前需要进行入库确认

wangzhuo 1 year ago
parent
commit
e2e9d5cff3
1 changed files with 20 additions and 10 deletions
  1. 20 10
      src/views/warehouse/inStock/index.vue

+ 20 - 10
src/views/warehouse/inStock/index.vue

@@ -1156,7 +1156,7 @@ export default {
     this.getList();
     this.getList();
     this.selectMethods();
     this.selectMethods();
 
 
-    
+
 
 
   },
   },
   methods: {
   methods: {
@@ -2226,17 +2226,27 @@ export default {
           }
           }
           break;
           break;
         case "生成出库单":
         case "生成出库单":
-          let listd = {
-            fId: this.detailForm.fId,
-            fBilltype: "CK",
-          };
-          copyNew(listd).then((res) => {
+          console.log(this.detailForm, 111)
+          if (this.detailForm.fBillstatus == 6) {
+            let listd = {
+              fId: this.detailForm.fId,
+              fBilltype: "CK",
+            };
+            copyNew(listd).then((res) => {
+              this.$message({
+                message: "生成成功",
+                type: "success",
+                showClose: true,
+              });
+            });
+          } else {
             this.$message({
             this.$message({
-              message: "生成成功",
-              type: "success",
-              showClose: true,
+              message: '请先进行入库确认',
+              type: 'warning'
             });
             });
-          });
+          }
+
+
           break;
           break;
         case "撤销入库":
         case "撤销入库":
           let data = {
           let data = {