From fdf0f9d0ae6659d4110aee59bcf9216f9e0fac7f Mon Sep 17 00:00:00 2001
From: 小小儁爺 <1694218219@qq.com>
Date: 星期一, 02 十二月 2024 15:25:19 +0800
Subject: [PATCH] 1.登录页样式替换

---
 src/views/produce/productWarehouse2.vue |   20 +++++++++++++-------
 1 files changed, 13 insertions(+), 7 deletions(-)

diff --git a/src/views/produce/productWarehouse2.vue b/src/views/produce/productWarehouse2.vue
index af9c4bc..84d35c2 100644
--- a/src/views/produce/productWarehouse2.vue
+++ b/src/views/produce/productWarehouse2.vue
@@ -639,7 +639,7 @@
     },
     // 鑾峰彇鍗曟嵁缂栧彿(鍏ュ簱鍗曞彿)銆佹祦姘村彿
     async getProductInHouseOrderCodeSearch() {
-      const { data: res } = await ProductInHouseOrderCodeSearch({ rightcode: '0604' })
+      const { data: res } = await ProductInHouseOrderCodeSearch({ rightcode: '0605' })
       this.form.hbillno = res[0]
       this.form.incbit = res[1]
     },
@@ -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
@@ -733,7 +736,7 @@
       })
 
       const data = {
-        'rightcode': '0604', // 鍔熻兘缂栧彿
+        'rightcode': '0605', // 鍔熻兘缂栧彿
         'incbit': this.form.incbit, // 娴佹按鍙�
         'TableData': [
           [
@@ -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