From a8cdca780590af98acb54ece61cbc20a3e9a34e3 Mon Sep 17 00:00:00 2001
From: duhe <226547893@qq.com>
Date: 星期三, 19 十一月 2025 13:23:47 +0800
Subject: [PATCH] 其他出库单:查看

---
 src/views/KCGL/OtherOutBill/Kf_OtherOutBillEdit.vue |   84 +++++++++++++++++++++---------------------
 1 files changed, 42 insertions(+), 42 deletions(-)

diff --git a/src/views/KCGL/OtherOutBill/Kf_OtherOutBillEdit.vue b/src/views/KCGL/OtherOutBill/Kf_OtherOutBillEdit.vue
index d2cad7a..1e279c6 100644
--- a/src/views/KCGL/OtherOutBill/Kf_OtherOutBillEdit.vue
+++ b/src/views/KCGL/OtherOutBill/Kf_OtherOutBillEdit.vue
@@ -528,9 +528,7 @@
         params: { 'HInterID': rowHmainid }
       }).then(response => {
         if (response.data.count == 1) {
-          var result = response.data
-          var data = response.data.data[0]
-          this.form.BillType = data.HSourceBillType
+          var data = response.data.data[0][0]
           if (this.copyType == 1) {
             this.getHBillNo()
           } 
@@ -569,11 +567,47 @@
           // this.form.HMangerName= data.涓荤
           // this.form.HInnerBillNo= data.鍐呴儴鍗曟嵁鍙�
           
-          // //瀛愯〃  璧嬪��
-          // for (var i = 0; i < result.data.length; i++) {
-          //   // const data = result.data[i];
-          //   // this.editData.push(result.data[i])
-          // }
+          //瀛愯〃  璧嬪��
+          var result = response.data.data[1]
+          for (var i = 0; i < result.length; i++) {
+            const data = result[i]
+            this.editData.push(
+              {
+                HSourceBillNo: data.HSourceBillNo
+                , HSourceBillType: data.HSourceBillType
+                , HSourceInterID: data.HSourceInterID
+                , HSourceEntryID: data.HSourceEntryID
+                , HMaterID:data.HMaterID
+                , 鐗╂枡浠g爜: data.鐗╂枡浠g爜
+                , 鐗╂枡鍚嶇О: data.鐗╂枡鍚嶇О
+                , 瑙勬牸鍨嬪彿: data.瑙勬牸鍨嬪彿
+                , HUnitID: data.HUnitID
+                , 璁¢噺鍗曚綅: data.璁¢噺鍗曚綅
+                , HPropertyID:data.HPropertyID
+                , 杈呭姪灞炴��:data.杈呭姪灞炴��
+                , HAuxPropID: data.HAuxPropID
+                , 鐗╂枡杈呭姪灞炴��: data.鐗╂枡杈呭姪灞炴��
+                , HSecUnitRate:data.HSecUnitRate
+                , HQtyMust: data.HQtyMust
+                , HQty: data.HQty
+                , HPieceQty: data.HPieceQty
+                , HPrice: data.HPrice
+                , HMoney: data.HMoney
+                , HWHID: data.HWHID
+                , 鏀舵枡浠撳簱: data.鏀舵枡浠撳簱
+                , HSPID: data.HSPID
+                , 浠撲綅鍚嶇О: data.浠撲綅鍚嶇О
+                , HBatchNo:data.HBatchNo
+                , HPOOrderInterID: data.HPOOrderInterID
+                , HPOOrderEntryID: data.HPOOrderEntryID
+                , HPOOrderBillNo: data.HPOOrderBillNo
+                , HSeOrderInterID: data.HSeOrderInterID
+                , HSeOrderEntryID: data.HSeOrderEntryID
+                , HSeOrderBillNo: data.HSeOrderBillNo
+                , HRemark: data.HRemark
+              }
+            )
+          }
 
           if (data.鐘舵�� != '鍒涘缓' && this.copyType != 1) {
             this.$modal.msgError("姝ゆ潯鏁版嵁涓嶆槸鍒涘缓鐘舵�侊紝涓嶈兘淇敼");
@@ -1027,21 +1061,6 @@
     },
     //#endregion
 
-    //#region 鏍规嵁瀹㈡埛鑾峰彇瀹㈡埛浣欓
-    getCustomerBalance(HCusID) {
-      axios.get(this.baseURL + '/Xs_CusRatingChangeBill/getCustomerBalance', {
-        params: { "HCusID": HCusID, 'CurUserName': sessionStorage["HUserName"] }
-      }).then(response => {
-        var data = response.data.data[0];
-        this.form.HCusBalance = data.HCusBalance
-        this.form.HCreditRating_Now = data.HCreditRating_Now
-        this.form.HAvailableBalance = data.HAvailableBalance
-      }).catch(error => {
-        this.$modal.msgError("鎺ュ彛璇锋眰澶辫触!");
-      });
-    },
-    //#endregion
-
     //#region 鏍规嵁瀹㈡埛甯﹀嚭鑱旂郴浜恒�佽仈绯荤數璇�
     getCustomerByCusID(HCusID) {
       axios.get(this.baseURL + "/Xs_SeOrderBill/getCustomerByCusID", {
@@ -1076,25 +1095,6 @@
     },
     //#endregion
 
-    //#region 鏍规嵁涓诲唴鐮佷笌瀛愬唴鐮佽幏鍙栨簮鍗曢攢鍞鍗曟暟鎹�
-    getPushSourceBillInit(HSourceInterID, HSourceEntryID) {
-      axios.get(this.baseURL + '/Xs_SeOrderBill/loadXs_SeOrderBill_Push', {
-        params: {
-          "HInterID": HSourceInterID
-          , "HSubID": HSourceEntryID
-        },
-      }).then(response => {
-        let result = response.data
-        if (result.code == 1) { // 璇存槑楠岃瘉鎴愬姛浜嗭紝
-          this.temp = result.data[0];
-        } else {
-          this.temp = result.data;
-        }
-      }).catch(error => {
-        this.$modal.msgError("鎺ュ彛璇锋眰澶辫触!");
-      });
-    },
-    //#endregion
     //#endregion
     
   }

--
Gitblit v1.9.1