From 939636dd7cc056f66cf7880fd2d032a138b56133 Mon Sep 17 00:00:00 2001
From: wangyi <2946747746@qq.com>
Date: 星期二, 07 四月 2026 15:49:22 +0800
Subject: [PATCH] Merge branch 'master' of http://101.37.171.70:10101/r/MES-WEB-VUEUI

---
 src/views/KCGL/MoveStockBill/Kf_MoveStockBillEdit.vue |  169 ++++++++++++++++++++++++++++++++++++++++++--------------
 1 files changed, 126 insertions(+), 43 deletions(-)

diff --git a/src/views/KCGL/MoveStockBill/Kf_MoveStockBillEdit.vue b/src/views/KCGL/MoveStockBill/Kf_MoveStockBillEdit.vue
index 1f9c725..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>
@@ -42,7 +42,7 @@
             <el-col :span="6">
               <el-form-item label="寰�鏉ュ崟浣�" prop="HSupName">
                 <el-input v-model="form.HSupName" placeholder="璇疯緭鍏ュ線鏉ュ崟浣�" disabled>
-                  <el-button slot="append" icon="el-icon-search" @click="openDataDialog(7)"></el-button>
+                  <el-button slot="append" icon="el-icon-search" @click="openDataDialog(6)"></el-button>
                 </el-input>
               </el-form-item>
             </el-col>
@@ -73,7 +73,7 @@
             <el-col :span="6">
               <el-form-item label="閫夊崟鍙�" prop="HMainSourceBillNo">
                 <el-input v-model="form.HMainSourceBillNo" placeholder="璇烽�夋嫨婧愬崟" disabled>
-                  <el-button slot="append" icon="el-icon-search" @click="openDataDialog(null)"></el-button>
+                  <el-button slot="append" icon="el-icon-search" @click="openDataDialog(11)"></el-button>
                 </el-input>
               </el-form-item>
             </el-col>
@@ -224,6 +224,8 @@
         <el-table-column align="center" label="搴忓彿" type="index" width="80" />
         <el-table-column align="center" label="婧愬崟鍗曞彿" width="120">
           <template slot-scope="scope">
+            <!-- <el-input v-model="scope.row.HSourceBillNo" placeholder="璇烽�夋嫨婧愬崟鍗曞彿" @keyup.native.f7="openDataDialog(6, scope.row)"
+              @dblclick.native="openDataDialog(6, scope.row)" /> -->
             <span>{{ scope.row.HSourceBillNo }}</span>
           </template>
         </el-table-column>
@@ -263,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>
@@ -305,9 +307,9 @@
               controls-position="right"></el-input-number>
           </template>
         </el-table-column>
-        <el-table-column align="center" label="鍗曚环" width="120">
+        <!-- <el-table-column align="center" label="鍗曚环" width="140">
           <template slot-scope="scope">
-            <el-input-number v-model="scope.row.HPrice" :min="0" style="width: 90px;"
+            <el-input-number v-model="scope.row.HPrice" :min="0" style="width: 120px;"
               controls-position="right"></el-input-number>
           </template>
         </el-table-column>
@@ -326,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>
@@ -376,7 +378,7 @@
             <el-input v-model="scope.row.HBatchNo" placeholder="璇疯緭鍏ユ壒娆�" />
           </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.HPOOrderBillNo }}</span>
           </template>
@@ -405,7 +407,7 @@
           <template slot-scope="scope">
             <span>{{ scope.row.HSeOrderEntryID }}</span>
           </template>
-        </el-table-column>
+        </el-table-column> -->
         <el-table-column align="center" label="澶囨敞" width="120">
           <template slot-scope="scope">
             <el-input v-model="scope.row.HRemark" placeholder="璇疯緭鍏ュ娉�" />
@@ -430,11 +432,11 @@
       <!--涓氬姟鍛�-->
       <GyEmployee @deptEmitDb="dbEmitData" @deptEmit="emitData" :openPage="HModName" v-if="gyEmployeeShow" />
       <!--瀹㈡埛-->
-      <GyCustomer @deptEmitDb="dbEmitData" @deptEmit="emitData" :openPage="HModName" v-if="gyCustomerShow" />
+      <GySupplier @deptEmitDb="dbEmitData" @deptEmit="emitData" :openPage="HModName" v-if="gySupplierShow" />
       <!--浠撲綅-->銆�
       <GyStockPlace @deptEmitDb="dbEmitData" @deptEmit="emitData" :openPage="HModName" :openPageData="openPageData" v-if="gyStockPlaceShow" />
       <!--閫夋嫨婧愬崟-->
-      <HSourceReportHtml @deptEmitDb="dbEmitData" @deptEmit="emitData" :openPage="HModName" :HOrgID='this.form.HOrgID' :HSouceBillType="HSouceBillType" v-if="ScICMOBillShow" />
+      <Kf_MoveStockRequestBillList @deptEmitDb="dbEmitData" @deptEmit="emitData" :openPage="HModName" :HOrgID='this.form.HOrgID' v-if="Kf_MoveStockRequestBillShow" />
       <div slot="footer" class="dialog-footer">
         <el-button type="primary" @click="deptClickSub">纭� 瀹�</el-button>
         <el-button @click="deptClose">鍙� 娑�</el-button>
@@ -458,10 +460,11 @@
 import Material from '@/views/gyMaterial/GyMaterial'
 import GyCustomer from '@/views/GyCustomer/index'
 import HSourceReportHtml from '@/views/component/HSourceReportHtml'
+import Kf_MoveStockRequestBillList from '@/views/warehouse/transfer/Kf_MoveStockRequestBillList.vue'
 
 export default {
   name: 'MoveStockBillEdit',
-  components: { Dept, Warehouse, Material, RowSettings, GyEmployee, GyCustomer, HSourceReportHtml, GyStockPlace },
+  components: { Dept, Warehouse, Material, RowSettings, GyEmployee, GySupplier, HSourceReportHtml, GyStockPlace, Kf_MoveStockRequestBillList },
   props: {
     OperationType: { type: Number, },
     linterid: { type: Number, },
@@ -491,7 +494,7 @@
       formHideDataShow: false,                                                   //琛ㄥ崟闅愯棌鍐呭鏍囪
       formLoading: true,                                                         //琛ㄥ崟鍔犺浇閬僵
       zzSelDis: false,                                                           //缁勭粐涓嬫媺鍒楄〃绂佺敤鏍囪
-
+      
       rowHideShow: false,                                                        //鍒楄缃粍浠跺鍣ㄦ樉绀烘爣璁�
       openRowHide: false,                                                        //鍒楄缃粍浠舵樉绀烘爣璁�
 
@@ -504,7 +507,8 @@
       stockPlaceShow: false,                                                     //浠撲綅鏁版嵁缁勪欢鏄剧ず鏍囪
       gyEmployeeShow: false,                                                     //涓氬姟鍛樻暟鎹粍浠舵樉绀烘爣璁�
       ScICMOBillShow: false,                                                     //婧愬崟鏁版嵁缁勪欢鏄剧ず鏍囪
-      GyCustomerShow: false,                                                     //寰�鏉ュ崟浣嶆暟鎹粍浠舵樉绀烘爣璁�
+      gySupplierShow: false,                                                     //寰�鏉ュ崟浣嶆暟鎹粍浠舵樉绀烘爣璁�
+      Kf_MoveStockRequestBillShow: false,                                        //閫夋嫨婧愬崟鏁版嵁缁勪欢鏄剧ず鏍囪
       deptform: {},                                                              //寮圭獥閫変腑鏁版嵁
       
       temp: undefined,                                                           //涓存椂鍙橀噺
@@ -567,17 +571,21 @@
         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: "",
         HManagerName:"",
         HOrgID: sessionStorage["OrganizationID"] - 0,
+        HSourceBillNo: "",
+        HSourceBillType: "璋冩嫧鐢宠鍗�",
+        HSourceInterID: 0,
+        HSourceEntryID: 0,
 
         HMaker: sessionStorage["HUserName"],
         HMakeDate: new Date(),
@@ -607,7 +615,6 @@
       //鏂板鑾峰彇鍗曟嵁鍙�
       this.getHBillNo()
       if (this.OperationType == 1) {
-        this.handleAddSysZb()
       }
       this.$nextTick(() => {
         this.formShow = true
@@ -683,7 +690,6 @@
           this.form.HSCWHID= data.HSCWHID
           this.form.HSCWHName= data.璋冨嚭浠撳簱
           this.form.HRemark= data.琛ㄥご澶囨敞
-
           this.form.HSecManagerID= data.HSecManagerID
           this.form.HSecManagerName= data.楠屾敹鍛�
           this.form.HKeeperID= data.HKeeperID
@@ -694,7 +700,10 @@
           this.form.HInnerBillNo= data.鍐呴儴鍗曟嵁鍙�
           this.form.HExplanation= data.HExplanation
           this.form.HInvoiceBillNo= data.鍙戠エ缂栧彿
-          
+          this.form.HSourceBillNo= data.HSourceBillNo
+          this.form.HSourceBillType= data.HSourceBillType
+          this.form.HSourceInterID= data.HSourceInterID
+          this.form.HSourceEntryID= data.HSourceEntryID
           //瀛愯〃  璧嬪��
           var result = response.data.data[1]
           for (var i = 0; i < result.length; i++) {
@@ -783,7 +792,12 @@
     //#region 鏁版嵁寮圭獥
     //#region 鎵撳紑鏁版嵁鍒楄〃寮圭獥
     openDataDialog(num, row) {
-      if (row) {
+      if (num == 11) {
+        this.handleAddSysZb(); 
+        this.$nextTick(() => {
+          this.zbIndex = this.editData.length - 1;
+        });
+      }else if (row) {
         this.zbIndex = row.index - 1
       }
       this.showReset()
@@ -811,11 +825,17 @@
         }
         this.gyEmployeeShow = true
         this.openData = true
-      }else if (num == 7){
-        this.dialogTitle = '瀹㈡埛鍒楄〃'
-        this.gyCustomerShow = true
+      }else if (num == 11){
+        this.dialogTitle = '璋冩嫧鐢宠鍗曞垪琛�'
+        this.Kf_MoveStockRequestBillShow = true
+        this.openData = true
+      }else if (num == 6){
+        this.dialogTitle = '渚涘簲鍟嗗垪琛�'
+        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 = '浠撲綅鍒楄〃'
@@ -851,7 +871,9 @@
       this.warehouseShow = false
       this.materialShow = false
       this.gyEmployeeShow = false
-      this.GyCustomerShow = false
+      this.gySupplierShow = false
+      this.Kf_MoveStockRequestBillShow = false
+      this.gyStockPlaceShow = false
     },
     //#endregion
     //#endregion
@@ -868,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
@@ -920,10 +954,59 @@
         this.editData[this.zbIndex].HTaxRate = deptRow.榛樿绋庣巼
         this.materialShow = false
         this.openData = false
-      } else if(num == 7){
-          this.form.HSupName = deptRow.瀹㈡埛鍚嶇О
+      }else if (num == 11){
+        this.form.HSourceBillNo = deptRow.鍗曟嵁鍙�
+        this.form.HSourceBillType = deptRow.HBillSubType
+        this.form.HSourceInterID = deptRow.hmainid
+        this.form.HSourceEntryID = deptRow.hsubid
+        this.form.HSupName = deptRow.寰�鏉ュ崟浣�
+        this.form.HSupID = deptRow.HSupID
+        this.form.HEmpName = deptRow.涓氬姟鍛�
+        this.form.HEmpID = deptRow.HEmpID
+        this.form.HDeptName = deptRow.閮ㄩ棬
+        this.form.HDeptID = deptRow.HDeptID
+        this.form.HWHName = deptRow.涓昏皟鍏ヤ粨搴�
+        this.form.HWHID = deptRow.涓昏皟鍏ヤ粨搴揑D
+        this.form.HSCWHName = deptRow.涓昏皟鍑轰粨搴�
+        this.form.HSCWHID = deptRow.涓昏皟鍑轰粨搴揑D
+
+        this.Kf_MoveStockRequestBillShow = false
+        this.openData = false
+        if (this.zbIndex !== null && this.editData[this.zbIndex]) {
+          this.editData[this.zbIndex].HSourceBillNo = deptRow.鍗曟嵁鍙�
+          this.editData[this.zbIndex].HSourceBillType = deptRow.HBillSubType
+          this.editData[this.zbIndex].HSourceInterID = deptRow.hmainid
+          this.editData[this.zbIndex].HSourceEntryID = deptRow.hsubid
+          this.editData[this.zbIndex].HMaterID = deptRow.HMaterID;
+          this.editData[this.zbIndex].鐗╂枡浠g爜 = deptRow.鐗╂枡浠g爜;
+          this.editData[this.zbIndex].鐗╂枡鍚嶇О = deptRow.鐗╂枡鍚嶇О;
+          this.editData[this.zbIndex].HUnitID = deptRow.HUnitID;
+          this.editData[this.zbIndex].瑙勬牸鍨嬪彿 = deptRow.瑙勬牸鍨嬪彿
+          this.editData[this.zbIndex].璁¢噺鍗曚綅 = deptRow.璁¢噺鍗曚綅
+          this.editData[this.zbIndex].HPropertyID = deptRow.HPropertyID
+          this.editData[this.zbIndex].HSecUnitRate = deptRow.鎹㈢畻鐜�
+          this.editData[this.zbIndex].HQtyMust = deptRow.搴旀敹鏁伴噺
+          this.editData[this.zbIndex].HQty = deptRow.瀹炴敹鏁伴噺
+          this.editData[this.zbIndex].HPrice = deptRow.鍗曚环
+          this.editData[this.zbIndex].HMoney = deptRow.閲戦
+          this.editData[this.zbIndex].HOutPrice = deptRow.璋冨嚭鍗曚环
+          this.editData[this.zbIndex].HOutMoney = deptRow.璋冨嚭閲戦
+          this.editData[this.zbIndex].HWHID = deptRow.HWHID
+          this.editData[this.zbIndex].HWHName = deptRow.璋冨叆浠撳簱
+          this.editData[this.zbIndex].HSPID = deptRow.HSPID
+          this.editData[this.zbIndex].HWHNumber = deptRow.璋冨叆浠撳簱浠g爜
+          this.editData[this.zbIndex].HSPName = deptRow.浠撲綅鍚嶇О
+          this.editData[this.zbIndex].HSCWHID = deptRow.HSCWHID
+          this.editData[this.zbIndex].HSCWHName = deptRow.璋冨嚭浠撳簱
+          this.editData[this.zbIndex].HSCWHNumber = deptRow.璋冨嚭浠撳簱浠g爜
+          this.editData[this.zbIndex].HSCSPID = deptRow.HSCSPID
+          this.editData[this.zbIndex].HSCSPName = deptRow.璋冨嚭浠撲綅鍚嶇О
+
+      }
+      } else if(num == 6){
+          this.form.HSupName = deptRow.渚涘簲鍟嗗悕绉�
           this.form.HSupID = deptRow.HItemID
-          this.gyCustomerShow = false
+          this.gySupplierShow = false
           this.openData = false
       }else if (num == 9){
             if(this.HSPType == 1){
@@ -990,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); //瀹℃牳
@@ -1061,8 +1144,8 @@
           瑙勬牸鍨嬪彿: '',
           HUnitID: 0,
           璁¢噺鍗曚綅: '',
-          HQtyMust: 1,
-          HQty: 1,
+          HQtyMust: 0,
+          HQty: 0,
           HPieceQty: 0,
           HPrice: 0,
           HTaxPrice: 0,
@@ -1072,18 +1155,18 @@
           HWHID: 0,
           鍙戣揣浠撳簱: '',
           HRemark: '',
-          HQty_Full: 0,
+          HQty_Full:0,
           HQty_Empty: 0,
           HQty_Back: 0,
           HCostPrice: 0,
           HCostMoney: 0,
           HSalePrice: 0,
-          HSeOrderInterID: 741,
+          HSeOrderInterID: 0,
           HSeOrderEntryID: 18,
-          HSeOrderBillNo: 'XSFH00000747',
-          HSourceInterID: 741,
-          HSourceEntryID: 18,
-          HSourceBillNo: 'XSFH00000747',
+          HSeOrderBillNo: '',
+          HSourceInterID: 0,
+          HSourceEntryID: 0,
+          HSourceBillNo: '',
           HSourceBillType: 1402,
           HRelationQty: 0,
           HRelationMoney: 0,

--
Gitblit v1.9.1