From 1df73c55311618ff37ef943ec0e021f7deeb68ff Mon Sep 17 00:00:00 2001
From: dytyqx <1342948614@qq.com>
Date: 星期二, 07 四月 2026 15:03:04 +0800
Subject: [PATCH] 修改直接调拨单

---
 src/views/KCGL/MoveStockBill/Kf_MoveStockBillEdit.vue |   49 ++++++++++++++++++++++++++++++++-----------------
 1 files changed, 32 insertions(+), 17 deletions(-)

diff --git a/src/views/KCGL/MoveStockBill/Kf_MoveStockBillEdit.vue b/src/views/KCGL/MoveStockBill/Kf_MoveStockBillEdit.vue
index 6d6d26d..a5a7ca3 100644
--- a/src/views/KCGL/MoveStockBill/Kf_MoveStockBillEdit.vue
+++ b/src/views/KCGL/MoveStockBill/Kf_MoveStockBillEdit.vue
@@ -3,7 +3,7 @@
     <div style=" margin-bottom: 10px; border-bottom: 1px solid #f6f6f6;">
       <el-button type="primary" @click="handleAdd(OperationType = 1)" v-if="addBtnShow">鏂板</el-button>
       <el-button type="primary" @click="submitForm" :disabled="subDisabled">淇� 瀛�</el-button>
-      <el-button type="primary" @click="set_CheckBill(0, form)">瀹� 鏍�</el-button>
+      <!-- <el-button type="primary" @click="set_CheckBill(0, form)">瀹� 鏍�</el-button> -->
       <el-button type="primary" @click="close">閫� 鍑�</el-button>
       <!-- <el-button @click="cancel">鍙� 娑�</el-button> -->
     </div>
@@ -265,31 +265,31 @@
             <span>{{ scope.row.瑙勬牸鍨嬪彿 }}</span>
           </template>
         </el-table-column>
-        <el-table-column align="center" label="HUnitID" width="120">
+        <!-- <el-table-column align="center" label="HUnitID" width="120">
           <template slot-scope="scope">
             <span>{{ scope.row.HUnitID }}</span>
           </template>
-        </el-table-column>
+        </el-table-column> -->
         <el-table-column align="center" label="璁¢噺鍗曚綅" width="120">
           <template slot-scope="scope">
             <span>{{ scope.row.璁¢噺鍗曚綅 }}</span>
           </template>
         </el-table-column>
-        <el-table-column align="center" label="HPropertyID" width="120">
+        <!-- <el-table-column align="center" label="HPropertyID" width="120">
           <template slot-scope="scope">
             <span>{{ scope.row.HPropertyID }}</span>
           </template>
-        </el-table-column>
+        </el-table-column> -->
         <el-table-column align="center" label="杈呭姪灞炴��" width="120">
           <template slot-scope="scope">
               <span>{{ scope.row.杈呭姪灞炴�� }}</span>
           </template>
         </el-table-column>
-        <el-table-column align="center" label="鎹㈢畻鐜�" width="120">
+        <!-- <el-table-column align="center" label="鎹㈢畻鐜�" width="120">
           <template slot-scope="scope">
               <span>{{ scope.row.HSecUnitRate }}</span>
           </template>
-        </el-table-column>
+        </el-table-column> -->
         <el-table-column align="center" label="搴斿彂鏁伴噺" width="120">
           <template slot-scope="scope">
             <span>{{ scope.row.HQtyMust }}</span>
@@ -307,7 +307,7 @@
               controls-position="right"></el-input-number>
           </template>
         </el-table-column>
-        <el-table-column align="center" label="鍗曚环" width="140">
+        <!-- <el-table-column align="center" label="鍗曚环" width="140">
           <template slot-scope="scope">
             <el-input-number v-model="scope.row.HPrice" :min="0" style="width: 120px;"
               controls-position="right"></el-input-number>
@@ -328,7 +328,7 @@
           <template slot-scope="scope">
             <span>{{scope.row.HOutMoney = scope.row.HOutPrice * scope.row.HQty }}</span>
           </template>
-        </el-table-column>
+        </el-table-column>-->
         <el-table-column align="center" label="HWHID" width="120">
           <template slot-scope="scope">
             <span>{{scope.row.HWHID}}</span>
@@ -571,12 +571,12 @@
         HSecManagerName: "",
         HKeeperID: 0,
         HKeeperName: "",
-        HDeptID: 0,
-        HDeptName: "",
+        HDeptID: sessionStorage["HDeptID"],
+        HDeptName: sessionStorage["HDept"],
         HManagerID: 0,
         HMangerName: "",
-        HEmpID: 0,
-        HEmpName: "",
+        HEmpID: sessionStorage["HEmpID"],
+        HEmpName: sessionStorage["HEmpName"],
         HSourceBillType: "",
         HExplanation :"",
         HRemark: "",
@@ -834,6 +834,8 @@
         this.gySupplierShow = true
         this.openData = true
       } else if (num == 9) {
+        this.openPageData.HWHName = ''
+        this.$nextTick()
         if(this.HSPType==1){
           if(this.editData[this.zbIndex].HWHName){
             this.dialogTitle = '浠撲綅鍒楄〃'
@@ -871,6 +873,7 @@
       this.gyEmployeeShow = false
       this.gySupplierShow = false
       this.Kf_MoveStockRequestBillShow = false
+      this.gyStockPlaceShow = false
     },
     //#endregion
     //#endregion
@@ -887,28 +890,40 @@
             this.form.HWHName = deptRow.浠撳簱鍚嶇О
             this.form.HWHID = deptRow.HItemID
             this.form.HWHNumber = deptRow.浠撳簱浠g爜
+            this.form.HSPID = 1
+            this.form.HSPName = ''
             for (let i = 0; i < this.editData.length; i++) {
               this.editData[i].HWHID = deptRow.HItemID
               this.editData[i].HWHNumber = deptRow.浠撳簱浠g爜
               this.editData[i].HWHName = deptRow.浠撳簱鍚嶇О
+              this.editData[i].HSPID = 1
+              this.editData[i].HSPName = ''
             }
           }else if(this.eHWHType == 2){
             this.form.HSCWHName = deptRow.浠撳簱鍚嶇О
             this.form.HSCWHID = deptRow.HItemID
             this.form.HSCWHNumber = deptRow.浠撳簱浠g爜
+            this.form.HSCSPID = 1
+            this.form.HSCSPName = ''
             for (let i = 0; i < this.editData.length; i++) {
               this.editData[i].HSCWHID = deptRow.HItemID
               this.editData[i].HSCWHNumber = deptRow.浠撳簱浠g爜
               this.editData[i].HSCWHName = deptRow.浠撳簱鍚嶇О
+              this.editData[i].HSCSPID = 1
+              this.editData[i].HSCSPName = ''
             }
           }else if(this.eHWHType == 3){
             this.editData[this.zbIndex].HWHID = deptRow.HItemID
             this.editData[this.zbIndex].HWHNumber = deptRow.浠撳簱浠g爜
             this.editData[this.zbIndex].HWHName = deptRow.浠撳簱鍚嶇О
+            this.editData[this.zbIndex].HSPID = 1
+            this.editData[this.zbIndex].HSPName = ''
           }else if(this.eHWHType == 4){
             this.editData[this.zbIndex].HSCWHID = deptRow.HItemID
             this.editData[this.zbIndex].HSCWHNumber = deptRow.浠撳簱浠g爜
             this.editData[this.zbIndex].HSCWHName = deptRow.浠撳簱鍚嶇О
+            this.editData[this.zbIndex].HSCSPID = 1
+            this.editData[this.zbIndex].HSCSPName = ''
           }
           this.warehouseShow = false
           this.openData = false
@@ -1058,7 +1073,7 @@
                 if (response.data.count == 1) {
                   this.subDisabled = true//璁剧疆淇濆瓨鎸夐挳涓嶅彲鐢�
                   this.$modal.msgSuccess(response.data.Message);
-                  this.get_MAXNum_Task(1);//璁剧疆娴佹按鍙峰鍔�
+                  // this.get_MAXNum_Task(1);//璁剧疆娴佹按鍙峰鍔�
                   if (response.data.Verify == "Y") //鑷姩瀹℃牳
                   {
                     this.set_CheckBill(0, this.form); //瀹℃牳
@@ -1129,8 +1144,8 @@
           瑙勬牸鍨嬪彿: '',
           HUnitID: 0,
           璁¢噺鍗曚綅: '',
-          HQtyMust: 1,
-          HQty: 1,
+          HQtyMust: 0,
+          HQty: 0,
           HPieceQty: 0,
           HPrice: 0,
           HTaxPrice: 0,
@@ -1140,7 +1155,7 @@
           HWHID: 0,
           鍙戣揣浠撳簱: '',
           HRemark: '',
-          HQty_Full: 0,
+          HQty_Full:0,
           HQty_Empty: 0,
           HQty_Back: 0,
           HCostPrice: 0,

--
Gitblit v1.9.1