From 6156331374cefbe908c5aeaebda911646c1d5f10 Mon Sep 17 00:00:00 2001
From: 小小儁爺 <1694218219@qq.com>
Date: 星期四, 14 十一月 2024 10:35:48 +0800
Subject: [PATCH] 1.递交

---
 src/views/produce/productWarehouse2.vue |   16 +++++++++++-----
 1 files changed, 11 insertions(+), 5 deletions(-)

diff --git a/src/views/produce/productWarehouse2.vue b/src/views/produce/productWarehouse2.vue
index 6af2847..84d35c2 100644
--- a/src/views/produce/productWarehouse2.vue
+++ b/src/views/produce/productWarehouse2.vue
@@ -657,6 +657,9 @@
     },
     // 鑾峰彇澶у垪琛ㄦ煡璇�
     async getProductInHouseOrderSearch() {
+      if (this.form.wkshopcode === '') {
+        return this.$message.info('鐢熶骇杞﹂棿涓嶈兘涓虹┖锛�')
+      }
       const data = {
         saleordercode: this.form.saleordercode, // 閿�鍞崟鍙�
         wkshopcode: this.form.wkshopcode, // 鐢熶骇杞﹂棿
@@ -664,8 +667,8 @@
         mesordercode: this.form.mesordercode, // 宸ュ崟缂栧彿
         partcode: this.form.partcode, // 浜у搧缂栫爜
         partname: this.form.partname, // 浜у搧鍚嶇О
-        partspec: this.form.partspec // 瑙勬牸鍨嬪彿
-
+        partspec: this.form.partspec, // 瑙勬牸鍨嬪彿
+        deptno: ''// 鍏ュ簱閮ㄩ棬
       }
       const { data: res } = await ProductInHouseOrderSearch(data)
       this.tableDataDetail = res
@@ -765,13 +768,16 @@
       }
 
       // console.log(JSON.stringify(data))
+      this.$store.state.app.buttonIsDisabled = true
       const res = await TProductInHouseOrderSpSeave(data)
+      this.$store.state.app.buttonIsDisabled = false
       if (res.code === '200') {
         this.$message.success('鍏ュ簱鎴愬姛锛�')
         this.multipleSelection = []
-        this.form.deptno = ''
-        this.form.stockcode = ''
-        await this.getProductInHouseOrderSearch()
+        // this.form.deptno = ''
+        // this.form.stockcode = ''
+        this.reset()
+        // await this.getProductInHouseOrderSearch()
         await this.getProductInHouseOrderCodeSearch()
       }
     },

--
Gitblit v1.9.3