From 92f550dfcee260da85a9bdbc81d0185e08c80e14 Mon Sep 17 00:00:00 2001
From: wtt <1985833171@qq.com>
Date: 星期二, 24 三月 2026 10:22:16 +0800
Subject: [PATCH] Merge branch 'Dev' of http://101.37.171.70:10101/r/~jhz/STUWMS into Dev

---
 pages/shengchanlingliao/PPickingCheckBill.vue |  131 +++++++++++++++++++------------------------
 1 files changed, 58 insertions(+), 73 deletions(-)

diff --git a/pages/shengchanlingliao/PPickingCheckBill.vue b/pages/shengchanlingliao/PPickingCheckBill.vue
index e860169..20b2bb0 100644
--- a/pages/shengchanlingliao/PPickingCheckBill.vue
+++ b/pages/shengchanlingliao/PPickingCheckBill.vue
@@ -185,7 +185,7 @@
                     </view>
                 </view>
             </view>
-            
+
             <view v-if="tabs == 4">
                 <FIFOListComponentVue :FIFOList="HFIFOList"></FIFOListComponentVue>
             </view>
@@ -269,6 +269,7 @@
                     HTMQty_B: '',
                     HWHName_B: '',
                     HSPName_B: '',
+                    HInterID_B: 0, // 鏉$爜鑷鍒�
                 },
 
                 HFIFOList: [], // 鍏堣繘鍏堝嚭鍒楄〃缂撳瓨 
@@ -330,18 +331,44 @@
             uni.$off('BillSelectComplete')
         },
         methods: {
+            // 閫氳繃鏉$爜鏄庣粏涓殑鍐呭 鏇存柊鏈崟鎹潯鐮佹暟閲�
             async changeQty() {
                 let HBarCodeOld = this.hform.HBarCode_B
                 let HQtyOld = this.hform.HQty_B
-                this.hform.HBarCode = `*${this.hform.HBarCode_B}`
-                // 鍏堝垹闄�
-                await this.getCode(`*${this.hform.HBarCode_B}`)
-                // 鍐嶅綍鍏�
-                this.hform.HBarCode = HBarCodeOld
-                this.hform.HQty = HQtyOld
-                await this.getCode(this.hform.HBarCode_B)
-                this.hform.HQty = ''
-                this.hform.HBarCode = ''
+
+                try {
+                    let res = await CommonUtils.doRequest2Async({
+                        url: '/WEBSController/set_UpdatePonderationBillMain_Temp_BarCode_Json',
+                        data: {
+                            HInterID: this.hform.HInterID,
+                            HBillType: this.hform.HBillType,
+                            HItemID: this.hform.HInterID_B, // 鏉$爜鑷鍒�
+                            HBarCode: HBarCodeOld,
+                            HQty: HQtyOld
+                        }
+                    })
+
+                    let {
+                        Message,
+                        count
+                    } = res.data
+
+                    if (count == 1) {
+                        this.DisBillEntryList()
+                        this.tabs = 2
+                    } else {
+                        CommonUtils.showTips({
+                            title: '娓╅Θ鎻愮ず',
+                            message: `鏇存柊鏉$爜鏁伴噺澶辫触: ${Message}`
+                        })
+                    }
+                } catch (err) {
+                    CommonUtils.showTips({
+                        title: '娓╅Θ鎻愮ず',
+                        message: `鏇存柊鏉$爜鏁伴噺澶辫触: ${err}`
+                    })
+                }
+
             },
             // 鑾峰彇浠撲綅
             async getStockPlaceRemote(HSPGroupID) {
@@ -354,7 +381,7 @@
                             Organization: uni.getStorageSync('Organization')
                         },
                     })
-            
+
                     if (res.data.count == 1) {
                         this.HStockPlaceNameList = res.data.data
                         for (var i = 0; i < res.data.data.length; i++) {
@@ -366,7 +393,7 @@
                             icon: 'none'
                         })
                     }
-            
+
                 } catch (err) {
                     uni.showToast({
                         title: '浠撲綅鏁版嵁璇锋眰澶辫触',
@@ -389,9 +416,9 @@
                             Organization: uni.getStorageSync('Organization')
                         },
                     })
-            
+
                     if (res.data.count == 1) {
-            
+
                         this.hform.HStockPlaceID = res.data.data[0].HMainID
                         this.hform.HStockPlaceName = res.data.data[0].浠撲綅鍚嶇О
                         this.hform.HWHID = res.data.data[0].HWHID
@@ -402,7 +429,7 @@
                             icon: 'none'
                         })
                     }
-            
+
                 } catch (err) {
                     uni.showToast({
                         title: '浠撲綅鏁版嵁璇锋眰澶辫触',
@@ -569,51 +596,6 @@
                         icon: 'none'
                     })
                 }
-                // uni.request({
-                //     url: this.serverUrl + '/WEBSController/get_BillBarCode_BillCheck_Json',
-                //     data: {
-                //         HBillNo: this.hform.HBillNo,
-                //         HBillType: this.hform.HBillType,
-                //         HMaker: this.hform.HMaker,
-                //         HStockOrgID: this.hform.HStockOrgID
-                //     },
-                //     success: (res) => {
-                //         if (res.data.count == 1) {
-                //             CommonUtils.playSound(1)
-                //             var data = res.data.data
-                //             console.log(data)
-                //             this.hform.HInterID = data.hInterIDField
-                //             this.hform.HBillNo = data.hBillNoField
-                //             this.showHBillNo = false
-                //             //鏉$爜鏍稿鏍囪
-                //             if (data.hSourceBarCodeFlagField) {
-                //                 this.hform.HSourceBarCodeCtl = "Y"
-                //                 this.hform.chkHBarflag = true
-                //                 this.hform.HBarflag = data
-                //             }
-                //             this.tabs = 2
-                //             this.DisBillEntryList();
-                //             this.refreshHBarCodeFocus()
-                //         } else {
-                //             CommonUtils.playSound(0)
-                //             this.refreshHBillNoFocus()
-                //             uni.showToast({
-                //                 title: res.data.Message,
-                //                 icon: 'none'
-                //             })
-                //             this.hform.HBillNo = ''
-                //         }
-                //     },
-                //     fail: (res) => {
-                //         console.log(res);
-                //         CommonUtils.playSound(0)
-                //         this.refreshHBillNoFocus()
-                //         uni.showToast({
-                //             title: '鎺ュ彛璇锋眰澶辫触',
-                //             icon: 'none'
-                //         })
-                //     },
-                // });
             },
             //鍩虹浠撳簱璧勬枡
             getHBaseList() {
@@ -681,14 +663,14 @@
                 // var name = e.split("(")
                 for (var i = 0; i < this.HWHNameList.length; i++) {
                     if (this.HWHNameList[i].浠撳簱鍚嶇О == e) {
-                       this.hform.HWHName = this.HWHNameList[i].浠撳簱鍚嶇О
-                       this.hform.HWHID = this.HWHNameList[i].HItemID
-                       this.HStockPlaceNameChange(null)
-                       this.showHStockPlaceName = false
-                       if (this.HWHNameList[i]['鍚敤浠撲綅'] == 'Y') {
-                           this.showHStockPlaceName = true
-                           this.getStockPlaceRemote(this.HWHNameList[i]["HSPGroupID"])
-                       } 
+                        this.hform.HWHName = this.HWHNameList[i].浠撳簱鍚嶇О
+                        this.hform.HWHID = this.HWHNameList[i].HItemID
+                        this.HStockPlaceNameChange(null)
+                        this.showHStockPlaceName = false
+                        if (this.HWHNameList[i]['鍚敤浠撲綅'] == 'Y') {
+                            this.showHStockPlaceName = true
+                            this.getStockPlaceRemote(this.HWHNameList[i]["HSPGroupID"])
+                        }
                     }
                 }
             },
@@ -696,7 +678,7 @@
             HStockPlaceNameChange(e) {
                 for (var i = 0; i < this.HStockPlaceNameList.length; i++) {
                     if (this.HStockPlaceNameList[i].浠撲綅鍚嶇О == e) {
-                        console.log('e: ',this.HStockPlaceNameList[i]);
+                        console.log('e: ', this.HStockPlaceNameList[i]);
                         this.hform.HStockPlaceName = this.HStockPlaceNameList[i].浠撲綅鍚嶇О
                         this.hform.HStockPlaceID = this.HStockPlaceNameList[i].HMainID
                     }
@@ -714,8 +696,8 @@
                 if (!this.hform.HStockPlaceName) {
                     this.hform.HStockPlaceID = 0
                 }
-                
-                console.log('HBarCode: ',HBarCode);
+
+                console.log('HBarCode: ', HBarCode);
                 var sOldBarCode = HBarCode
                 var HDeleteFlag = sOldBarCode.substring(0, 1);
                 var sBarCode = sOldBarCode.slice(1);
@@ -921,10 +903,10 @@
                                     })
 
                                 }
-                                if(exit){
+                                if (exit) {
                                     return
                                 }
-                                
+
                                 if (!this.hform.HSourceBillNo) {
                                     this.hform.HSupName = data.hSupNameField
                                     this.hform.HSupID = data.hSupIDField
@@ -1137,6 +1119,7 @@
                                 this.hform.HTMQty_B = ''
                                 this.hform.HWHName_B = ''
                                 this.hform.HSPName_B = ''
+                                this.hform.HInterID_B = 0
                             } else {
                                 this.hform.HBarCode_B = data.BarCodeDetailslist[0].HBarCode
                                 this.hform.HMaterName_B = data.BarCodeDetailslist[0].HMaterName
@@ -1147,6 +1130,7 @@
                                 this.hform.HTMQty_B = data.BarCodeDetailslist[0].HTMQty
                                 this.hform.HWHName_B = data.BarCodeDetailslist[0].HWHName
                                 this.hform.HSPName_B = data.BarCodeDetailslist[0].HSPName
+                                this.hform.HInterID_B = data.BarCodeDetailslist[0].HItemID
                             }
                         } else {
                             uni.showToast({
@@ -1554,6 +1538,7 @@
         margin-top: 30rpx;
         float: right;
     }
+
     .btn-a {
         background-color: #3A78FF;
         color: #fff;

--
Gitblit v1.9.1