From 86d627eecb14597a338ee402eab5a0c05ce1bdeb Mon Sep 17 00:00:00 2001
From: wangyi <2946747746@qq.com>
Date: 星期四, 27 十一月 2025 08:26:10 +0800
Subject: [PATCH] Merge branch 'master' of http://101.37.171.70:10101/r/MES-WEB-VUEUI

---
 src/views/basic/gy/gySupplierEdit.vue |  444 ++++++++++++++-----------------------------------------
 1 files changed, 113 insertions(+), 331 deletions(-)

diff --git a/src/views/basic/gy/gySupplierEdit.vue b/src/views/basic/gy/gySupplierEdit.vue
index e566424..fc43a34 100644
--- a/src/views/basic/gy/gySupplierEdit.vue
+++ b/src/views/basic/gy/gySupplierEdit.vue
@@ -1,10 +1,10 @@
 <template>
   <div v-loading="formLoading" v-if="formShow">
     <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="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="close">閫� 鍑�</el-button>
+      <el-button type="primary" @click="close">閫� 鍑�</el-button> -->
       <!-- <el-button @click="cancel">鍙� 娑�</el-button> -->
     </div>
     <div style="margin: 10px; font-size: 28px; font-weight: bold; text-align: center;">渚涘簲鍟嗚缃�</div>
@@ -14,7 +14,7 @@
           <el-row>
             <el-col :span="6">
               <el-form-item label="缂栫爜" prop="HNumber">
-                <el-input v-model="form.HNumber" placeholder="璇疯緭鍏ョ紪鐮�" />
+                <el-input v-model="form.HNumber" placeholder="璇疯緭鍏ョ紪鐮�"/>
               </el-form-item>
             </el-col>
             <el-col :span="6">
@@ -242,83 +242,19 @@
             @selection-change="handleTableZbEdit" :row-class-name="rowSysZbIndex" show-summary border>
             <el-table-column type="selection" width="55" align="center" />
             <el-table-column align="center" label="搴忓彿" type="index" width="80" />
-            <el-table-column align="center" label="鐗╂枡缂栫爜" width="120">
+            <el-table-column align="center" label="鑱旂郴浜�" width="120">
               <template slot-scope="scope">
-                <el-input v-model="scope.row.鐗╂枡浠g爜" placeholder="璇疯緭鍏ョ墿鏂欑紪鐮�" @keyup.native.f7="openDataDialog(3, scope.row)"
-                  @dblclick.native="openDataDialog(3, scope.row)" />
+                <el-input v-model="scope.row.HLinkMan" 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.鐗╂枡鍚嶇О }}</span>
-              </template>
-            </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">
-              <template slot-scope="scope">
-                <span>{{ scope.row.璁¢噺鍗曚綅 }}</span>
-              </template>
-            </el-table-column>
-            <el-table-column align="center" label="瀹炲彂鏁伴噺" width="120">
-              <template slot-scope="scope">
-                <el-input-number v-model="scope.row.HQty" :min="1" style="width: 90px;"
-                  controls-position="right"></el-input-number>
-              </template>
-            </el-table-column>
-            <el-table-column align="center" label="鍗曚环" width="120">
-              <template slot-scope="scope">
-                <el-input-number v-model="scope.row.HPrice" :min="0" style="width: 90px;"
-                  controls-position="right"></el-input-number>
-              </template>
-            </el-table-column>
-            <el-table-column align="center" label="鍚◣鍗曚环" width="120">
-              <template slot-scope="scope">
-                <span>{{ scope.row.HTaxPrice }}</span>
-              </template>
-            </el-table-column>
-            <el-table-column align="center" label="绋庣巼" width="120">
-              <template slot-scope="scope">
-                <span>{{ scope.row.HTaxRate }}</span>
-              </template>
-            </el-table-column>
-            <el-table-column align="center" label="閲戦" width="120">
-              <template slot-scope="scope">
-                <span>{{ scope.row.HPrice * scope.row.HQty }}</span>
-              </template>
-            </el-table-column>
-            <el-table-column align="center" label="浠风◣鍚堣" width="120">
-              <template slot-scope="scope">
-                <span>{{ scope.row.HTaxPrice * scope.row.HQty }}</span>
-              </template>
-            </el-table-column>
-            <el-table-column align="center" label="鍙戣揣浠撳簱" width="120">
-              <template slot-scope="scope">
-                <el-input v-model="scope.row.鍙戣揣浠撳簱" placeholder="璇疯緭鍏ュ彂璐т粨搴�" @keyup.native.f7="openDataDialog(2, scope.row)"
-                  @dblclick.native="openDataDialog(2, scope.row)" />
+                <el-input v-model="scope.row.HLinkPhone" placeholder="璇疯緭鍏ヨ仈绯荤數璇�" />
               </template>
             </el-table-column>
             <el-table-column align="center" label="澶囨敞" width="120">
               <template slot-scope="scope">
                 <el-input v-model="scope.row.HRemark" placeholder="璇疯緭鍏ュ娉�" />
-              </template>
-            </el-table-column>
-            <el-table-column align="center" label="閲囪喘鏁伴噺" width="120">
-              <template slot-scope="scope">
-                <span>{{ scope.row.HReqBuyQty }}</span>
-              </template>
-            </el-table-column>
-            <el-table-column align="center" label="鐢宠鍑哄簱鏁伴噺" width="120">
-              <template slot-scope="scope">
-                <span>{{ scope.row.HReqOutQty }}</span>
-              </template>
-            </el-table-column>
-            <el-table-column align="center" label="褰撳墠搴撳瓨" width="120">
-              <template slot-scope="scope">
-                <span>{{ scope.row.HCurrentInventory }}</span>
               </template>
             </el-table-column>
             <el-table-column align="center" label="鎿嶄綔" width="55" fixed="right">
@@ -331,92 +267,33 @@
         </el-tab-pane>
         <el-tab-pane label="浠樻璁″垝" name="second">
           <div style="margin-bottom: 10px;">
-            <el-button type="success" plain icon="el-icon-plus" @click="handleAddSysZb()" size="mini">澧炲姞涓�琛�</el-button>
-            <el-button type="success" plain icon="el-icon-plus" @click="handleAddSysZb(zbIndex, 1)"
+            <el-button type="success" plain icon="el-icon-plus" @click="handleAddSysZb1()" size="mini">澧炲姞涓�琛�</el-button>
+            <el-button type="success" plain icon="el-icon-plus" @click="handleAddSysZb1(zbIndex, 1)"
               size="mini">鎻掑叆涓�琛�</el-button>
-            <el-button type="success" plain icon="el-icon-plus" @click="handleCopyZbRow" size="mini">澶嶅埗涓�琛�</el-button>
+            <el-button type="success" plain icon="el-icon-plus" @click="handleCopyZbRow1" size="mini">澶嶅埗涓�琛�</el-button>
           </div>
-          <el-table :data="editData" style="width: 100%" height="300" width="100%" ref="zbTable"
-            @selection-change="handleTableZbEdit" :row-class-name="rowSysZbIndex" show-summary border>
+          <el-table :data="editData1" style="width: 100%" height="300" width="100%" ref="zbTable1"
+            @selection-change="handleTableZbEdit1" :row-class-name="rowSysZbIndex1" show-summary border >
             <el-table-column type="selection" width="55" align="center" />
             <el-table-column align="center" label="搴忓彿" type="index" width="80" />
-            <el-table-column align="center" label="鐗╂枡缂栫爜" width="120">
+            <el-table-column align="center" label="浠樻闃舵" width="120">
               <template slot-scope="scope">
-                <el-input v-model="scope.row.鐗╂枡浠g爜" placeholder="璇疯緭鍏ョ墿鏂欑紪鐮�" @keyup.native.f7="openDataDialog(3, scope.row)"
-                  @dblclick.native="openDataDialog(3, scope.row)" />
+                <el-input v-model="scope.row.HPayType" 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.鐗╂枡鍚嶇О }}</span>
+                <el-input v-model="scope.row.HPayRate" 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.瑙勬牸鍨嬪彿 }}</span>
+                <el-input v-model="scope.row.HPayTime" 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.璁¢噺鍗曚綅 }}</span>
-              </template>
-            </el-table-column>
-            <el-table-column align="center" label="瀹炲彂鏁伴噺" width="120">
-              <template slot-scope="scope">
-                <el-input-number v-model="scope.row.HQty" :min="1" style="width: 90px;"
-                  controls-position="right"></el-input-number>
-              </template>
-            </el-table-column>
-            <el-table-column align="center" label="鍗曚环" width="120">
-              <template slot-scope="scope">
-                <el-input-number v-model="scope.row.HPrice" :min="0" style="width: 90px;"
-                  controls-position="right"></el-input-number>
-              </template>
-            </el-table-column>
-            <el-table-column align="center" label="鍚◣鍗曚环" width="120">
-              <template slot-scope="scope">
-                <span>{{ scope.row.HTaxPrice }}</span>
-              </template>
-            </el-table-column>
-            <el-table-column align="center" label="绋庣巼" width="120">
-              <template slot-scope="scope">
-                <span>{{ scope.row.HTaxRate }}</span>
-              </template>
-            </el-table-column>
-            <el-table-column align="center" label="閲戦" width="120">
-              <template slot-scope="scope">
-                <span>{{ scope.row.HPrice * scope.row.HQty }}</span>
-              </template>
-            </el-table-column>
-            <el-table-column align="center" label="浠风◣鍚堣" width="120">
-              <template slot-scope="scope">
-                <span>{{ scope.row.HTaxPrice * scope.row.HQty }}</span>
-              </template>
-            </el-table-column>
-            <el-table-column align="center" label="鍙戣揣浠撳簱" width="120">
-              <template slot-scope="scope">
-                <el-input v-model="scope.row.鍙戣揣浠撳簱" placeholder="璇疯緭鍏ュ彂璐т粨搴�" @keyup.native.f7="openDataDialog(2, scope.row)"
-                  @dblclick.native="openDataDialog(2, scope.row)" />
-              </template>
-            </el-table-column>
-            <el-table-column align="center" label="澶囨敞" width="120">
-              <template slot-scope="scope">
-                <el-input v-model="scope.row.HRemark" placeholder="璇疯緭鍏ュ娉�" />
-              </template>
-            </el-table-column>
-            <el-table-column align="center" label="閲囪喘鏁伴噺" width="120">
-              <template slot-scope="scope">
-                <span>{{ scope.row.HReqBuyQty }}</span>
-              </template>
-            </el-table-column>
-            <el-table-column align="center" label="鐢宠鍑哄簱鏁伴噺" width="120">
-              <template slot-scope="scope">
-                <span>{{ scope.row.HReqOutQty }}</span>
-              </template>
-            </el-table-column>
-            <el-table-column align="center" label="褰撳墠搴撳瓨" width="120">
-              <template slot-scope="scope">
-                <span>{{ scope.row.HCurrentInventory }}</span>
+                <el-input v-model="scope.row.HPayRemark" placeholder="璇疯緭鍏ュ娉ㄨ鏄�" />
               </template>
             </el-table-column>
             <el-table-column align="center" label="鎿嶄綔" width="55" fixed="right">
@@ -456,7 +333,7 @@
 import moment from 'moment';
 
 export default {
-  name: 'SellOutBillEdit',
+  name: 'GySupplierEdit',
   components: { Dept, Warehouse, Material, RowSettings },
   props: {
     OperationType: { type: Number, },
@@ -476,7 +353,9 @@
       hPriceTypeList: ['鎴愭湰浠�', '缁撶畻浠�'],
       addBtnShow: false,
       zbIndex: null,
+      zbIndex1: null,
       zbSelForm: {},//瀛愯〃閫変腑鏁版嵁
+      zbSelForm1: {},//瀛愯〃閫変腑鏁版嵁
       dialogTypeNum: null,//閮ㄩ棬寮圭獥1锛屼粨搴撳脊绐�2
       deptShow: false,//閮ㄩ棬鏁版嵁缁勪欢
       warehouseShow: false,//浠撳簱鏁版嵁缁勪欢
@@ -491,6 +370,7 @@
       baseURL: process.env.VUE_APP_BASE_API,
       checkedSysZb: [],
       editData: [],//閿�鍞嚭搴撳崟瀛愯〃
+      editData1:[],
       editBtData: [],//瀛愯〃琛ㄥご
       activeName: 'first',
       activeNameZB: 'first',
@@ -827,6 +707,7 @@
         HStopDate: null,
       }
       this.editData = []
+      this.editData1 = []
       this.editBtData = []
       this.ids = []
       this.subDisabled = false
@@ -866,6 +747,7 @@
       this.form.HDate = moment(date).format('YYYY-MM-DDTHH:mm:ss')
       if (this.OperationType == 1) {
         this.handleAddSysZb()
+        this.handleAddSysZb1()
       }
       this.$nextTick(() => {
         this.formShow = true
@@ -926,139 +808,53 @@
         if (response.data.count == 1) {
           var result = response.data
           var data = response.data.data[0]
-          this.form.BillType = data.HSourceBillType
-          if (this.copyType == 1) {
-            this.getHBillNo()
-            let date = new Date()
-            this.form.HDate = moment(date).format('YYYY-MM-DDTHH:mm:ss')
-          } else {
-            this.form.HBillNo = data.鍗曟嵁鍙�
-            this.form.HInterID = data.hmainid
-            this.form.HDate = data.鏃ユ湡
-            this.form.HMaker = data.鍒跺崟浜�
-            this.form.HUpDater = data.淇敼浜�
-            this.form.HChecker = data.瀹℃牳浜�
-            this.form.HMakeDate = data.鍒跺崟鏃ユ湡
-            this.form.HUpDateDate = data.淇敼鏃ユ湡
-            this.form.HCheckDate = data.瀹℃牳鏃ユ湡
-            this.form.HCloseMan = data.鍏抽棴浜�
-            this.form.HDeleteMan = data.浣滃簾浜�
-            this.form.HCloseDate = data.鍏抽棴鏃ユ湡
-            this.form.HDeleteDate = data.浣滃簾鏃ユ湡
+          this.form = {
+            HCREATEORGID:data.HCREATEORGID,
+            HUSEORGID:data.HUSEORGID,
+            HUseOrg:data.浣跨敤缁勭粐,
+            HNumber:data.缂栫爜,
+            HHelpCode:data.鍔╄鐮�,
+            HShortName:data.绠�绉�,
+            HAddress:data.鍦板潃,
+            HLinkMan: data.鑱旂郴浜�,
+            HLinkPhone: data.鑱旂郴鐢佃瘽,
+            HMobilePhone: data.鎵嬫満,
+            HFax: data.浼犵湡,
+            HPostalCode: data.閭紪,
+            HEmail: data.鐢靛瓙閭欢,
+            HCorMan: data.娉曚汉浠h〃,
+            HBank: data.寮�鎴烽摱琛�,
+            HTaxNum: data.绋庡姟鐧昏鍙�,
+            HEnglishName: data.鑻辨枃鍚嶇О,
+            HEnglishAddress: data.鑻辨枃鍦板潃,
+            HCountry: data.鍥藉,
+            HAreaID: data.鍦板尯ID,
+            HAreaName: data.鍦板尯鍚嶇О,
+            HTaxRate: data.澧炲�肩◣鐜�,
+            HCurID: data.榛樿璐у竵ID,
+            HCurName: data.榛樿璐у竵,
+            HSSID: data.缁撶畻鏂瑰紡ID,
+            HSSName: data.缁撶畻鏂瑰紡,
+            HBankAccount: data.閾惰璐﹀彿,
+            HName: data.鍚嶇О,
+            HPSStyleID: data.閲囪喘鏂瑰紡ID,
+            HPSStyleName: data.閲囪喘鏂瑰紡鍚嶇О,
+            HRemark: data.澶囨敞,
+            HUpDater: sessionStorage["HUserName"],
+            HStopflag: data.绂佺敤鏍囧織,
+            HMaterClass: data.渚涜揣鏉愭枡绫诲埆,
+            HSupTypeID: data.HSupTypeID,
+            HSupClsName: data.渚涘簲鍟嗗垎绫�,
+            HMaker: data.鍒跺崟浜�,
+            HMakeDate: data.鍒跺崟鏃ユ湡,
+            HChecker: data.瀹℃牳浜�,
+            HCheckDate: data.瀹℃牳鏃堕棿,
+            HStopMan: data.绂佺敤浜�,
+            HStopDate: data.绂佺敤鏃堕棿,
           }
-          this.form.HBillSubType = data.HBillSubType
-          this.form.HMainSourceInterID = data.HMainSourceInterID
-          this.form.HMainSourceEntryID = data.HMainSourceEntryID
-          this.form.HMainSourceBillType = data.HMainSourceBillType
-          this.form.HMainSourceBillNo = data.HMainSourceBillNo
-          this.form.HEmpName = data.涓氬姟鍛�
-          this.form.HEmpID = data.HEmpID
-          this.form.HDeptName = data.閮ㄩ棬
-          this.form.HDeptID = data.HDeptID
-          this.form.HManagerName = data.涓荤
-          this.form.HManagerID = data.HManagerID
-          this.form.HSupName = data.瀹㈡埛
-          this.form.HSupID = data.HSupID
-          this.form.HLinkMan = data.鑱旂郴浜�
-          this.form.HLinkPhone = data.鑱旂郴鐢佃瘽
-          this.form.HSecManagerName = data.鍙戣揣浜�
-          this.form.HSecManagerID = data.HSecManagerID
-          this.form.HKeeperName = data.淇濈鍛�
-          this.form.HKeeperID = data.HKeeperID
-          this.form.HRemark = data.琛ㄥご澶囨敞
-          this.form.HProjectNumber = data.椤圭洰缂栫爜
-          this.form.HProjectID = data.HProjectID
-          this.form.HProjectName = data.椤圭洰鍚嶇О
-          this.form.HGroupName = data.鐝粍
-          this.form.HGroupID = data.HGroupID
-          this.form.HWHName = data.涓昏〃浠撳簱
-          this.form.HWHID = data.HWHID_Main
-          this.form.HConveyCompName = data.杩愯緭鍏徃
-          this.form.HConveyCompID = data.HConveyCompID
-          this.form.HConveyTypeName = data.杩愯緭鏂瑰紡
-          this.form.HConveyTypeID = data.HConveyTypeID
-          this.form.HConveyMoney = data.HConveyMoney
-          this.form.HCarriage = data.杩愯垂
-          this.form.HSTOCKORGID = data.HSTOCKORGID
-          this.form.HOWNERID = data.HOWNERID
-          this.form.HSCWHName = data.涓昏〃璋冨嚭浠撳簱
-          this.form.HSCWHID = data.HSCWHID
-          this.form.HCheckStatusMan = data.鏍搁攢浜�
-          this.form.HExplanation = data.鎽樿
-          this.form.HInnerBillNo = data.鍐呴儴鍗曟嵁鍙�
-          this.form.HCurName = data.甯佸埆
-          this.form.HCurID = data.HCurID
-          this.form.HExRate = data.姹囩巼
-          this.form.HSellSName = data.閿�鍞柟寮�
-          this.form.HSellSID = data.HSellSID
-          //  this.form.HCusBalance=data
-          //  this.form.HCreditRating_Now=HConveyMoney
-          //  this.form.HAvailableBalance=data
-          this.form.HPriceType = data.鍗曚环绫诲瀷
-          this.form.HOrgID = data.HOrgID
-          this.getCustomerByCusID(response.data.data[0].HSupID)//鏍规嵁瀹㈡埛鑾峰彇鑱旂郴浜猴紝鑱旂郴浜虹數璇�
-          this.getBarCodeNoteBySellOutBill(rowHmainid)//鑾峰彇閿�鍞嚭搴撳崟瀵瑰簲鐨勬潯鐮佹槑缁嗘槸鍚﹀彲缂栬緫
-          for (var i = 0; i < result.data.length; i++) {
-            this.editData.push(
-              {
-                "HMaterID": result.data[i].HMaterID
-                , "鐗╂枡浠g爜": result.data[i].鐗╂枡浠g爜
-                , "鐗╂枡鍚嶇О": result.data[i].鐗╂枡鍚嶇О
-                , "瑙勬牸鍨嬪彿": result.data[i].瑙勬牸鍨嬪彿
-                , "HUnitID": result.data[i].HUnitID
-                , "璁¢噺鍗曚綅": result.data[i].璁¢噺鍗曚綅
-                , "HQtyMust": result.data[i].搴斿彂鏁伴噺.toFixed(6)
-                , "HQty": result.data[i].鏁伴噺.toFixed(6)
-                , "HPieceQty": result.data[i].浠舵暟.toFixed(0)
-                , "HPrice": result.data[i].鍗曚环.toFixed(4)
-                , "HTaxPrice": result.data[i].鍚◣鍗曚环.toFixed(4)
-                , "HTaxRate": result.data[i].绋庣巼
-                , "HMoney": (result.data[i].鏁伴噺 * result.data[i].鍗曚环).toFixed(2)
-                , "HTaxMoney": (result.data[i].鏁伴噺 * result.data[i].鍚◣鍗曚环, 2).toFixed(2)
-                , "HWHID": result.data[i].hwhid
-                , "鍙戣揣浠撳簱": result.data[i].鍙戣揣浠撳簱
-                , "HRemark": result.data[i].琛ㄤ綋澶囨敞
-                , "HQty_Full": result.data[i].婊¤溅閲嶉噺
-                , "HQty_Empty": result.data[i].绌鸿溅閲嶉噺
-                , "HQty_Back": result.data[i].鍥炶溅閲嶉噺
-                , "HCostPrice": result.data[i].鎴愭湰鍗曚环
-                , "HCostMoney": result.data[i].鎴愭湰閲戦
-                , "HSalePrice": result.data[i].閿�鍞崟浠�
-                , "HSeOrderInterID": result.data[i].HSeOrderInterID
-                , "HSeOrderEntryID": result.data[i].HSeOrderEntryID
-                , "HSeOrderBillNo": result.data[i].閿�鍞鍗曞彿
-                , "HSourceInterID": result.data[i].HSourceInterID
-                , "HSourceEntryID": result.data[i].HSourceEntryID
-                , "HSourceBillNo": result.data[i].婧愬崟鍗曞彿
-                , "HSourceBillType": result.data[i].HSourceBillType
-                , "HRelationQty": result.data[i].鍏宠仈鏁伴噺
-                , "HRelationMoney": result.data[i].鍏宠仈閲戦
-                , 'HSPID': result.data[i].HSPID
-                , 'HSPName': result.data[i].浠撲綅
-                , 'HSPGroupID': result.data[i].HSPGroupID
-                , "HSPGroupName": result.data[i].浠撲綅缁�
-                , 'HSCWHID': result.data[i].HSCWHID
-                , 'HSCWHName': result.data[i].璋冨嚭浠撳簱
-                , 'HSCSPID': result.data[i].HSCSPID
-                , 'HSCSPName': result.data[i].璋冨嚭浠撲綅
-                , 'HBatchNo': result.data[i].鎵规
-                , 'HPOOrderInterID': result.data[i].閲囪喘璁㈠崟鍐呯爜
-                , 'HPOOrderEntryID': result.data[i].閲囪喘璁㈠崟瀛愬唴鐮�
-                , 'HPOOrderBillNo': result.data[i].閲囪喘璁㈠崟鍙�
-                , 'HPropertyID': result.data[i].HPropertyID
-                , 'HPropertyName': result.data[i].杈呭姪灞炴��
-                , 'HSecUnitID': result.data[i].HSecUnitID
-                , 'HSecUnitName': result.data[i].杈呭姪璁¢噺鍗曚綅
-                , 'HSecUnitRate': result.data[i].鎹㈢畻鐜�
-                , 'HEngineNum': result.data[i].鍙戝姩鏈哄彿
-                , 'HUnderPanNum': result.data[i].鍦扮洏鍙�
-                , 'HLeaveFactCard': result.data[i].鍑哄巶璇�
-                , 'HReqBuyQty': result.data[i].鐢宠閲囪喘鏁伴噺
-                , 'HReqOutQty': result.data[i].鐢宠鍑哄簱鏁伴噺
-                , 'HCurrentInventory': result.data[i].褰撳墠搴撳瓨
-              }
-            );
-          }
+          this.editData = result.list[1].Gy_Supplier_Link
+          this.editData1 = result.list[0].Gy_Supplier_PayPlan
+          console.log(856,this.form,this.editData,this.editData1)
           if (data.鐘舵�� != '鍒涘缓' && this.copyType != 1) {
             this.$modal.msgError("姝ゆ潯鏁版嵁涓嶆槸鍒涘缓鐘舵�侊紝涓嶈兘淇敼");
             this.subDisabled = true
@@ -1090,67 +886,18 @@
     rowSysZbIndex({ row, rowIndex }) {
       row.index = rowIndex + 1;
     },
+    rowSysZbIndex1({ row, rowIndex }) {
+      row.index = rowIndex + 1;
+    },
     /** 缂栬緫椤靛瓙琛ㄦ坊鍔犳寜閽搷浣� */
     handleAddSysZb(index, num) {
       if (num == 1 && !index) {
         this.$modal.msgError("璇烽�夋嫨涓�琛屾暟鎹紪杈�!");
       } else {
         let obj = {
-          HMaterID: 0,
-          鐗╂枡浠g爜: '',
-          鐗╂枡鍚嶇О: '',
-          瑙勬牸鍨嬪彿: '',
-          HUnitID: 0,
-          璁¢噺鍗曚綅: '',
-          HQtyMust: 1,
-          HQty: 1,
-          HPieceQty: 0,
-          HPrice: 0,
-          HTaxPrice: 0,
-          HTaxRate: 0,
-          HMoney: 0,
-          HTaxMoney: 0,
-          HWHID: 0,
-          鍙戣揣浠撳簱: '',
-          HRemark: '',
-          HQty_Full: 0,
-          HQty_Empty: 0,
-          HQty_Back: 0,
-          HCostPrice: 0,
-          HCostMoney: 0,
-          HSalePrice: 0,
-          HSeOrderInterID: 741,
-          HSeOrderEntryID: 18,
-          HSeOrderBillNo: 'XSFH00000747',
-          HSourceInterID: 741,
-          HSourceEntryID: 18,
-          HSourceBillNo: 'XSFH00000747',
-          HSourceBillType: 1402,
-          HRelationQty: 0,
-          HRelationMoney: 0,
-          HSPID: 0,
-          HSPName: '',
-          HSPGroupID: 0,
-          HSPGroupName: '',
-          HSCWHID: 0,
-          HSCWHName: '',
-          HSCSPID: 0,
-          HSCSPName: '',
-          HBatchNo: '',
-          HPOOrderInterID: 0,
-          HPOOrderEntryID: 0,
-          HPOOrderBillNo: '',
-          HPropertyID: 0,
-          HPropertyName: '',
-          HSecUnitID: 0,
-          HSecUnitName: '',
-          HSecUnitRate: 0,
-          HEngineNum: '',
-          HUnderPanNum: '',
-          HLeaveFactCard: '',
-          HReqBuyQty: 0,
-          HReqOutQty: 0,
-          HCurrentInventory: 0,
+          HLinkMan:'',
+          HLinkPhone:'',
+          HRemark:'',
         }
         if (index) {
           this.editData.splice(index, 0, obj);
@@ -1160,12 +907,38 @@
         }
       }
     },
+    handleAddSysZb1(index, num) {
+      if (num == 1 && !index) {
+        this.$modal.msgError("璇烽�夋嫨涓�琛屾暟鎹紪杈�!");
+      } else {
+        let obj = {
+          HPayType:'',
+          HPayRate:'',
+          HPayTime:'',
+          HPayRemark:'',
+        }
+        if (index) {
+          this.editData1.splice(index, 0, obj);
+          this.$set(this.editData1, index, obj)
+        } else {
+          this.editData1.push(obj);
+        }
+      }
+    },
     handleCopyZbRow() {
       if (!this.zbIndex) {
         this.$modal.msgError("璇烽�夋嫨涓�琛屾暟鎹�")
       } else {
         let copyRow = JSON.parse(JSON.stringify(this.zbSelForm))
         this.editData.push(copyRow);
+      }
+    },
+    handleCopyZbRow1() {
+      if (!this.zbIndex1) {
+        this.$modal.msgError("璇烽�夋嫨涓�琛屾暟鎹�")
+      } else {
+        let copyRow = JSON.parse(JSON.stringify(this.zbSelForm1))
+        this.editData1.push(copyRow);
       }
     },
     handleMoveRowUp(zbSelForm) {
@@ -1218,6 +991,15 @@
         this.$refs.zbTable.toggleRowSelection(del_row, false) //璁剧疆杩欎竴琛屽彇娑堥�変腑
       }
     },
+    handleTableZbEdit1(selection) {
+      this.checkedSysZb = selection.map(item => item.index)
+      this.zbSelForm = selection[0]
+      this.zbIndex = this.checkedSysZb[0]
+      if (selection.length > 1) {
+        const del_row = selection.shift()
+        this.$refs.zbTable1.toggleRowSelection(del_row, false) //璁剧疆杩欎竴琛屽彇娑堥�変腑
+      }
+    },
     //鑾峰彇鏈�澶у崟鎹彿_浠诲姟绫伙紙Type涓�0鏃跺彧鑾峰彇涓嶆柊澧炴祦姘村彿锛屼负1鏃舵柊澧炰笖鑾峰彇娴佹按鍙凤級
     get_MAXNum_Task(Type) {
       var sql = `exec h_p_Xt_GetMaxBillNo_SubType '1205','${this.form.HDate}',0,0,0,'${Type}','${this.form.HDeptID}'`;

--
Gitblit v1.9.1