From dc984ce6a4d20b85d64fd0a909cf49c640aec5aa Mon Sep 17 00:00:00 2001
From: chenhaozhe <cgz@hz-kingdee.com>
Date: 星期一, 01 十二月 2025 15:29:23 +0800
Subject: [PATCH] Merge branch 'master' of http://101.37.171.70:10101/r/MES-WEB-VUEUI

---
 src/views/warehouse/barcodeMaster/Gy_BarCodeBill.vue                |    9 
 src/views/purchase/postockInBack/Kf_POStockInBackBill.vue           |  646 ++++-
 src/views/scMould/basicModeling/Gy_MaterialPackingRelationList.vue  |   88 
 src/views/component/printList/hBarPlanPrint.vue                     |   79 
 src/views/scMould/basicModeling/Gy_MaterialPackingRelation_Edit.vue |  830 +++++++
 src/store/modules/permission.js                                     |   39 
 src/views/component/HSourceReportHtml/index.vue                     |  181 +
 src/views/purchase/postockInBack/Kf_POStockInBackBillList.vue       |  143 +
 src/router/index.js                                                 |   25 
 src/views/ICMO/ScICMOReportBill/ScICMOReportBillList.vue            | 1649 +++++++++++++++
 .env.development                                                    |    1 
 /dev/null                                                           | 1088 ----------
 src/views/ICMO/ScICMOReportBill/ScICMOReportBillEdit.vue            |  929 ++++++++
 src/views/gyMaterial/GyMaterial.vue                                 |   73 
 public/static/grf/物料条码.grf                                          |  468 ---
 .env.production                                                     |    2 
 src/views/warehouse/shipment/Kf_StockOutRequestBill.vue             |    6 
 17 files changed, 4,400 insertions(+), 1,856 deletions(-)

diff --git a/.env.development b/.env.development
index 233f7a7..f8c6509 100644
--- a/.env.development
+++ b/.env.development
@@ -7,5 +7,6 @@
 # 鏅轰簯杩堟�滾-MOM绠$悊绯荤粺/寮�鍙戠幆澧�
 # VUE_APP_BASE_API = 'http://localhost:81/API/'
 VUE_APP_BASE_API = 'http://47.96.97.237/API/'
+# VUE_APP_BASE_API = 'http://220.189.218.155:9010/API/'
 # 璺敱鎳掑姞杞�
 VUE_CLI_BABEL_TRANSPILE_MODULES = true
diff --git a/.env.production b/.env.production
index 68ca0f2..74cf4c4 100644
--- a/.env.production
+++ b/.env.production
@@ -6,6 +6,6 @@
 
 # 鏅轰簯杩堟�滾-MOM绠$悊绯荤粺/鐢熶骇鐜
 VUE_APP_BASE_API = 'http://47.96.97.237/API/'
-
+# VUE_APP_BASE_API = 'http://220.189.218.155:9010/API/'
 # 璺敱鎳掑姞杞�
 VUE_CLI_BABEL_TRANSPILE_MODULES = true
\ No newline at end of file
diff --git "a/public/static/grf/\347\211\251\346\226\231\346\235\241\347\240\201.grf" "b/public/static/grf/\347\211\251\346\226\231\346\235\241\347\240\201.grf"
index 7b7b231..d505d0e 100644
--- "a/public/static/grf/\347\211\251\346\226\231\346\235\241\347\240\201.grf"
+++ "b/public/static/grf/\347\211\251\346\226\231\346\235\241\347\240\201.grf"
@@ -1,375 +1,93 @@
-锘縊bject Report
-	Version='6.8.2.5'
-	Title='鐢熶骇浠诲姟鍗�'
-	PrintAsDesignPaper=F
-	Object Font
-		Name='瀹嬩綋'
-		Size=135000,0
-		Weight=400
-		Charset=134
-	End
-	Object Printer
-		Size=256
-		Width=9.75
-		Height=6
-		LeftMargin=0
-		TopMargin=0
-		RightMargin=0
-		BottomMargin=0
-	End
-	Object DetailGrid
-		CenterView=T
-		ShowColLine=F
-		ShowRowLine=F
-		Object Border
-			Styles=[]
-		End
-		Object Recordset
-			Items Field
-				Item
-					Name='鐢熶骇宸ュ崟鍙�'
-					DBFieldName='婧愬崟鍗曞彿'
-				End
-				Item
-					Name='鐗╂枡浠g爜'
-				End
-				Item
-					Name='鐗╂枡鍚嶇О'
-				End
-				Item
-					Name='瑙勬牸鍨嬪彿'
-				End
-				Item
-					Name='鏁伴噺'
-				End
-				Item
-					Name='鏉$爜缂栧彿'
-				End
-				Item
-					Name='閿�鍞鍗曞彿'
-				End
-				Item
-					Name='鎵瑰彿'
-				End
-				Item
-					Name='鏃ユ湡'
-					Type=DateTime
-					Format='yyyy/MM/dd'
-				End
-				Item
-					Name='鍒朵綔浜�'
-				End
-				Item
-					Name='瀹㈡埛鍨嬪彿'
-				End
-				Item
-					Name='璁¢噺鍗曚綅'
-				End
-				Item
-					Name='婧愬崟鍗曞彿'
-				End
-				Item
-					Name='渚涘簲鍟�'
-				End
-					End
-	End
-	Items Column
-		Item
-			Name='Column3'
-			Width=9.60438
-		End
-	End
-Object ColumnContent
-	Height=6.00604
-	RowsPerPage=1
-	Items ColumnContentCell
-		Item
-			Column='Column3'
-			FreeCell=T
-			CanGrow=T
-			Items Control
-				Item
-					Type=MemoBox
-					Name='鍑礉濂堢壒'
-					Left=0.79375
-					Top=0.211667
-					Width=5.3975
-					Height=1.37583
-					Object Font
-						Name='瀹嬩綋'
-						Size=142500,0
-						Weight=400
-						Charset=134
-					End
-					ShrinkFontToFit=T
-					TextAlign=MiddleCenter
-					CharSpacing=4
-					Text='鏉$爜淇℃伅'
-				End
-				Item
-					Type=Barcode
-					Name='Barcode1'
-					Left=6.79979
-					Top=0.211667
-					Width=1.79917
-					Height=1.37583
-					BarcodeType=QRCode
-					CaptionPosition=None
-					Text='[#鏉$爜缂栧彿#]'
-					Object Font
-						Name='瀹嬩綋'
-						Size=105000,0
-						Weight=400
-						Charset=134
-					End
-				End
-				Item
-					Type=FreeGrid
-					Name='FreeGrid1'
-					Left=0.132292
-					Top=1.69333
-					Object Border
-						Styles=[DrawLeft|DrawTop|DrawRight|DrawBottom]
-					End
-					ColumnCount=6
-					Items FreeGridColumn
-						Item[1]
-							Width=1.56104
-						End
-						Item[2]
-							Width=1.85208
-						End
-						Item[3]
-							Width=1.16417
-						End
-						Item[4]
-							Width=1.69333
-						End
-						Item[5]
-							Width=1.00542
-						End
-						Item[6]
-							Width=2.11667
-						End
-									End
-				Items FreeGridRow
-					Item[1]
-						Height=0.820208
-					End
-					Item[2]
-						Height=0.79375
-					End
-					Item[3]
-						Height=0.79375
-					End
-					Item[4]
-						Height=0.820208
-					End
-					Item[5]
-						Height=0.740833
-					End
-							End
-			Items FreeGridCell
-				Item[1,1]
-					Object Font
-						Name='瀹嬩綋'
-						Weight=400
-						Charset=134
-					End
-					Text='宸ュ崟鍙�'
-				End
-				Item[1,2]
-					Object Font
-						Name='瀹嬩綋'
-						Size=105000,0
-						Weight=400
-						Charset=134
-					End
-					ShrinkFontToFit=T
-					Text='[#鐢熶骇宸ュ崟鍙�#]'
-					ColSpan=2
-				End
-				Item[1,4]
-					Object Font
-						Name='瀹嬩綋'
-						Size=105000,0
-						Weight=400
-						Charset=134
-					End
-					Text='渚涘簲鍟�'
-				End
-				Item[1,5]
-					Object Font
-						Name='瀹嬩綋'
-						Size=105000,0
-						Weight=400
-						Charset=134
-					End
-					Text='[#渚涘簲鍟�#]'
-					ColSpan=2
-				End
-				Item[2,1]
-					Object Font
-						Name='瀹嬩綋'
-						Size=105000,0
-						Weight=400
-						Charset=134
-					End
-					Text='鐗╂枡缂栫爜'
-				End
-				Item[2,2]
-					Object Font
-						Name='瀹嬩綋'
-						Size=105000,0
-						Weight=400
-						Charset=134
-					End
-					Text='[#鐗╂枡浠g爜#]'
-					ColSpan=5
-				End
-				Item[3,1]
-					Object Font
-						Name='瀹嬩綋'
-						Size=105000,0
-						Weight=400
-						Charset=134
-					End
-					Text='鐗╂枡鍚嶇О'
-				End
-				Item[3,2]
-					Object Font
-						Name='瀹嬩綋'
-						Size=105000,0
-						Weight=400
-						Charset=134
-					End
-					Text='[#鐗╂枡鍚嶇О#]'
-					ColSpan=5
-				End
-				Item[4,1]
-					Object Font
-						Name='瀹嬩綋'
-						Size=105000,0
-						Weight=400
-						Charset=134
-					End
-					Text='鏁伴噺'
-					DataName='鏁伴噺'
-				End
-				Item[4,2]
-					Object Font
-						Name='瀹嬩綋'
-						Size=105000,0
-						Weight=400
-						Charset=134
-					End
-					Text='[#鏁伴噺#]'
-				End
-				Item[4,3]
-					Object Font
-						Name='瀹嬩綋'
-						Size=105000,0
-						Weight=400
-						Charset=134
-					End
-					Text='鍗曚綅'
-					DataName='鍗曚綅'
-				End
-				Item[4,4]
-					Object Font
-						Name='瀹嬩綋'
-						Size=105000,0
-						Weight=400
-						Charset=134
-					End
-					Text='[#璁¢噺鍗曚綅#]'
-				End
-				Item[4,5]
-					Object Font
-						Name='瀹嬩綋'
-						Size=105000,0
-						Weight=400
-						Charset=134
-					End
-					Text='鎵瑰彿'
-				End
-				Item[4,6]
-					Object Font
-						Name='瀹嬩綋'
-						Size=105000,0
-						Weight=400
-						Charset=134
-					End
-					Text='[#鎵瑰彿#]'
-				End
-				Item[5,1]
-					Object Font
-						Name='瀹嬩綋'
-						Size=105000,0
-						Weight=400
-						Charset=134
-					End
-					Text='鎵撳嵃浜哄憳'
-					DataName='鎵撳嵃浜哄憳'
-				End
-				Item[5,2]
-					Object Font
-						Name='瀹嬩綋'
-						Size=105000,0
-						Weight=400
-						Charset=134
-					End
-					Text='[#鍒朵綔浜�#]'
-					ColSpan=2
-				End
-				Item[5,4]
-					Object Font
-						Name='瀹嬩綋'
-						Size=105000,0
-						Weight=400
-						Charset=134
-					End
-					Text='鎵撳嵃鏃ユ湡'
-					DataName='鎵撳嵃鏃ユ湡'
-				End
-				Item[5,5]
-					Object Font
-						Name='瀹嬩綋'
-						Size=105000,0
-						Weight=400
-						Charset=134
-					End
-					Text='[#鏃ユ湡#]'
-					ColSpan=2
-				End
-					End
-	End
-End
-End
-End
-End
-Object ColumnTitle
-	Height=0
-	Items ColumnTitleCell
-		Item
-			GroupTitle=F
-			Column='Column3'
-			Text='Column1'
-		End
-	End
-End
-End
-Items ReportHeader
-	Item
-		Name='ReportHeader1'
-		Height=0
-		RepeatOnPage=T
-	End
-End
-Items ReportFooter
-	Item
-		Name='ReportFooter1'
-		Height=0
-	End
-End
-End
+锘縶
+	"Version":"6.8.2.2",
+	"Title":"1a.绠�鍗曡〃鏍�",
+	"Author":"閿愭氮鎶ヨ〃杞欢",
+	"Description":"婕旂ず涓�涓渶鍩烘湰鐨勫垪琛ㄦ姤琛ㄣ��",
+	"Font":{
+		"Name":"瀹嬩綋",
+		"Size":90000,
+		"Weight":400,
+		"Charset":134
+	},
+	"Printer":{
+		"Size":256,
+		"Width":9,
+		"Height":6,
+		"LeftMargin":0,
+		"TopMargin":0,
+		"RightMargin":0,
+		"BottomMargin":0
+	},
+	"DetailGrid":{
+		"CenterView":true,
+		"PrintAdaptMethod":"ResizeToFit",
+		"Recordset":{
+			"ConnectionString":"xml",
+			"QuerySQL":"閿�鍞嚭搴撳崟.txt",
+			"Field":[
+				{
+					"Name":"鏉$爜缂栧彿"
+				}
+			]
+		},
+		"Column":[
+			{
+				"Name":"鍗曟嵁鍙�",
+				"Width":8.78417
+			}
+		],
+		"ColumnContent":{
+			"Height":3.41313,
+			"ColumnContentCell":[
+				{
+					"Column":"鍗曟嵁鍙�",
+					"FreeCell":true,
+					"Control":[
+						{
+							"Type":"StaticBox",
+							"Name":"StaticBox1",
+							"Left":0.396875,
+							"Top":0.211667,
+							"Width":8.20208,
+							"Height":2.98979
+						},
+						{
+							"Type":"Barcode",
+							"Name":"Barcode1",
+							"Left":0.211667,
+							"Top":0.396875,
+							"Width":4.39208,
+							"Height":2.59292,
+							"BarcodeType":"QRCode",
+							"Text":"[#鏉$爜缂栧彿#]"
+						}
+					]
+				}
+			]
+		},
+		"ColumnTitle":{
+			"BackColor":"C0C0C0",
+			"Height":0,
+			"Font":{
+				"Name":"瀹嬩綋",
+				"Size":90000,
+				"Bold":true,
+				"Charset":134
+			},
+			"RepeatStyle":"OnPage",
+			"ColumnTitleCell":[
+				{
+					"GroupTitle":false,
+					"Column":"鍗曟嵁鍙�",
+					"BackColor":"FFFFFF",
+					"TextAlign":"MiddleCenter"
+				}
+			]
+		}
+	},
+	"ReportHeader":[
+		{
+			"Height":0
+		}
+	]
+}
\ No newline at end of file
diff --git a/src/router/index.js b/src/router/index.js
index 7de8321..c9a703b 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -1255,6 +1255,31 @@
       },
     ],
   },
+  // 鐢熶骇姹囨姤鍗曠淮鎶�
+  {
+    path: "/icmo/scICMOReportBill/scICMOReportBillList",
+    component: Layout,
+    hidden: true,
+    redirect: "noredirect",
+    meta: {
+      breadcrumb: false, // 濡傛灉璁剧疆涓篺alse锛屽垯涓嶄細鍦╞readcrumb闈㈠寘灞戜腑鏄剧ず
+      activeMenu: "/icmo/scICMOReportBill", // 褰撹矾鐢辫缃簡璇ュ睘鎬э紝鍒欎細楂樹寒鐩稿搴旂殑渚ц竟鏍忋��
+    },
+    children: [
+      {
+        path: "/icmo/scICMOReportBill/scICMOReportBillList",
+        component: () => import("@/views/ICMO/ScICMOReportBill/ScICMOReportBillList.vue"),
+        name: "ScICMOBillList",
+        meta: { title: "鐢熶骇姹囨姤鍗曠淮鎶�", activeMenu: "/icmo/scICMOReportBill" },
+      },
+      // {
+      //   path: "/icmo/scIcmoBill/scIcmoBillEdit",
+      //   component: () => import("@/views/ICMO/ScICMOBillEdit.vue"),
+      //   name: "ScICMOBillEdit",
+      //   meta: { title: "鐢熶骇璁㈠崟", activeMenu: "/icmo/scIcmoBill" },
+      // },
+    ],
+  },
 ];
 
 // 鍔ㄦ�佽矾鐢憋紝鍩轰簬鐢ㄦ埛鏉冮檺鍔ㄦ�佸幓鍔犺浇
diff --git a/src/store/modules/permission.js b/src/store/modules/permission.js
index 22d0eaa..756a8a8 100644
--- a/src/store/modules/permission.js
+++ b/src/store/modules/permission.js
@@ -895,6 +895,45 @@
                   },
                 ],
               },
+              {
+                meta: {
+                  icon: "build",
+                  link: null,
+                  noCache: false,
+                  title: "鐢熶骇姹囨姤",
+                },
+                hidden: false,
+                name: "ScICMOReportBill",
+                path: "scICMOReportBill",
+                redirect: "noRedirect",
+                component: "Layout",
+                children: [
+                  {
+                    meta: {
+                      icon: "build",
+                      link: null,
+                      noCache: false,
+                      title: "鐢熶骇姹囨姤鍒楄〃",
+                    },
+                    component: () => import("@/views/ICMO/ScICMOReportBill/ScICMOReportBillList.vue"),
+                    hidden: false,
+                    name: "ScICMOReportBillList",
+                    path: "scICMOReportBillList",
+                  },
+                  // {
+                  //   meta: {
+                  //     icon: "build",
+                  //     link: null,
+                  //     noCache: false,
+                  //     title: "鐢熶骇鍏ュ簱鍗�",
+                  //   },
+                  //   component: () => import("@/views/ProductInBill/Kf_ProductInBillEdit.vue"),
+                  //   hidden: false,
+                  //   name: "ProductInBillEdit",
+                  //   path: "ProductInBillEdit",
+                  // },
+                ],
+              },
             ],
           },
           {
diff --git a/src/views/ICMO/ScICMOReportBill/ScICMOReportBillEdit.vue b/src/views/ICMO/ScICMOReportBill/ScICMOReportBillEdit.vue
new file mode 100644
index 0000000..4ad5ebb
--- /dev/null
+++ b/src/views/ICMO/ScICMOReportBill/ScICMOReportBillEdit.vue
@@ -0,0 +1,929 @@
+<template>
+  <div v-loading="formLoading" style="padding: 20px">
+    <div class="operation-buttons">
+      <el-button-group>
+        <el-button type="primary" @click="handleAdd">鏂板</el-button>
+        <el-button type="primary" @click="handleCopyBill">澶嶅埗</el-button>
+        <el-button type="primary" @click="handleCheckBill">瀹℃牳</el-button>
+        <el-button type="primary" @click="handleAbandonCheck">鍙嶅鏍�</el-button>
+        <el-button type="primary" @click="handleDeleteBill">鍒犻櫎</el-button>
+        <el-button type="primary" @click="handlePrint">鎵撳嵃</el-button>
+        <el-button type="primary" @click="handleSave" :disabled="saveDisabled">淇濆瓨</el-button>
+        <el-button type="primary" @click="handleExit">閫�鍑�</el-button>
+      </el-button-group>
+    </div>
+    <div class="page-title">
+      <h1>鐢熶骇姹囨姤鍗�</h1>
+    </div>
+    <el-form ref="form" :model="form" :rules="rules" label-width="120px">
+      <el-tabs v-model="activeTab">
+        <el-tab-pane label="鍩烘湰淇℃伅" name="basic">
+          <el-row :gutter="20">
+            <el-col :span="8">
+              <el-form-item label="鍗曟嵁鍙�" prop="HBillNo">
+                <el-input v-model="form.HBillNo" readonly />
+              </el-form-item>
+            </el-col>
+            <el-col :span="8">
+              <el-form-item label="鏃ユ湡" prop="HDate">
+                <el-date-picker v-model="form.HDate" type="date" placeholder="閫夋嫨鏃ユ湡" value-format="yyyy-MM-dd" />
+              </el-form-item>
+            </el-col>
+            <el-col :span="8">
+              <el-form-item label="鐢熶骇杞﹂棿" prop="HDeptName">
+                <el-input v-model="form.HDeptName" readonly>
+                  <el-button slot="append" icon="el-icon-search" @click="openDeptDialog"></el-button>
+                </el-input>
+              </el-form-item>
+            </el-col>
+          </el-row>
+
+          <el-row :gutter="20">
+            <el-col :span="8">
+              <el-form-item label="鐝粍" prop="HGroupName">
+                <el-input v-model="form.HGroupName" readonly>
+                  <el-button slot="append" icon="el-icon-search" @click="openGroupDialog"></el-button>
+                </el-input>
+              </el-form-item>
+            </el-col>
+            <el-col :span="8">
+              <el-form-item label="缁熻鍛�" prop="HEmpName">
+                <el-input v-model="form.HEmpName" readonly>
+                  <el-button slot="append" icon="el-icon-search" @click="openEmpDialog"></el-button>
+                </el-input>
+              </el-form-item>
+            </el-col>
+            <el-col :span="8">
+              <el-form-item label="婧愬崟绫诲瀷" prop="HMainSourceBillType">
+                <el-select v-model="form.HMainSourceBillType" @change="handleSourceTypeChange">
+                  <el-option label="鐢熶骇浠诲姟鍗�" value="2"></el-option>
+                  <el-option label="鎵嬪伐褰曞叆" value="1"></el-option>
+                </el-select>
+              </el-form-item>
+            </el-col>
+          </el-row>
+
+          <el-row :gutter="20">
+            <el-col :span="8">
+              <el-form-item label="閫夊崟鍙�" prop="HMainSourceBillNo">
+                <el-input v-model="form.HMainSourceBillNo" :disabled="sourceBillDisabled" readonly>
+                  <el-button slot="append" icon="el-icon-search" @click="openSourceBillDialog"
+                    :disabled="sourceBillBtnDisabled"></el-button>
+                </el-input>
+              </el-form-item>
+            </el-col>
+            <el-col :span="16">
+              <el-form-item label="澶囨敞" prop="HRemark">
+                <el-input v-model="form.HRemark" />
+              </el-form-item>
+            </el-col>
+          </el-row>
+        </el-tab-pane>
+        <el-tab-pane label="鍒跺崟淇℃伅" name="maker">
+          <el-row :gutter="20">
+            <el-col :span="8">
+              <el-form-item label="鍒跺崟浜�">
+                <el-input v-model="form.HMaker" readonly />
+              </el-form-item>
+            </el-col>
+            <el-col :span="8">
+              <el-form-item label="瀹℃牳浜�">
+                <el-input v-model="form.HChecker" readonly />
+              </el-form-item>
+            </el-col>
+            <el-col :span="8">
+              <el-form-item label="鍏抽棴浜�">
+                <el-input v-model="form.HCloseMan" readonly />
+              </el-form-item>
+            </el-col>
+          </el-row>
+        </el-tab-pane>
+        <el-tab-pane label="闄勪欢淇℃伅" name="attachment">
+          <el-upload class="upload-demo" action="/api/upload" :on-preview="handlePreview" :on-remove="handleRemove"
+            :before-remove="beforeRemove" multiple :limit="3" :on-exceed="handleExceed" :file-list="fileList">
+            <el-button size="small" type="primary">鐐瑰嚮涓婁紶</el-button>
+            <div slot="tip" class="el-upload__tip">鍙兘涓婁紶jpg/png鏂囦欢锛屼笖涓嶈秴杩�500kb</div>
+          </el-upload>
+        </el-tab-pane>
+      </el-tabs>
+      <el-tabs v-model="detailTab">
+        <el-tab-pane label="鐢熶骇姹囨姤鍗�" name="main">
+          <div class="table-toolbar">
+            <el-button type="primary" size="small" @click="addTableRow">澧炲姞涓�琛�</el-button>
+            <el-button type="primary" size="small" @click="copyTableRow">澶嶅埗涓�琛�</el-button>
+          </div>
+
+          <el-table :data="tableData" border style="width: 100%" height="400" @selection-change="handleSelectionChange">
+            <el-table-column type="selection" width="55"></el-table-column>
+            <el-table-column type="index" label="搴忓彿" width="60"></el-table-column>
+            <el-table-column prop="HMaterCode" label="鐗╂枡浠g爜" width="120">
+              <template slot-scope="scope">
+                <el-input v-model="scope.row.HMaterCode" @focus="openMaterialDialog(scope.row, scope.$index)" readonly>
+                </el-input>
+              </template>
+            </el-table-column>
+            <el-table-column prop="HMaterName" label="鐗╂枡鍚嶇О" width="150"></el-table-column>
+            <el-table-column prop="HMaterSpec" label="瑙勬牸鍨嬪彿" width="150"></el-table-column>
+            <el-table-column prop="HUnitCode" label="鍗曚綅浠g爜" width="100">
+              <template slot-scope="scope">
+                <el-input v-model="scope.row.HUnitCode" @focus="openUnitDialog(scope.row, scope.$index)" readonly>
+                </el-input>
+              </template>
+            </el-table-column>
+            <el-table-column prop="HUnitName" label="鍗曚綅鍚嶇О" width="100"></el-table-column>
+            <el-table-column prop="HSourceCode" label="璧勬簮浠g爜" width="120">
+              <template slot-scope="scope">
+                <el-input v-model="scope.row.HSourceCode" @focus="openSourceDialog(scope.row, scope.$index)" readonly>
+                </el-input>
+              </template>
+            </el-table-column>
+            <el-table-column prop="HSourceName" label="璧勬簮鍚嶇О" width="150"></el-table-column>
+            <el-table-column prop="HWorkerCode" label="鎿嶄綔鍛樹唬鐮�" width="120">
+              <template slot-scope="scope">
+                <el-input v-model="scope.row.HWorkerCode" @focus="openWorkerDialog(scope.row, scope.$index)" readonly>
+                </el-input>
+              </template>
+            </el-table-column>
+            <el-table-column prop="HWorkerName" label="鎿嶄綔鍛樺悕绉�" width="150"></el-table-column>
+            <el-table-column prop="HQty" label="鐢熶骇鏁伴噺" width="100">
+              <template slot-scope="scope">
+                <el-input-number v-model="scope.row.HQty" :min="0" :precision="2" controls-position="right" size="mini">
+                </el-input-number>
+              </template>
+            </el-table-column>
+            <el-table-column prop="HBadQty" label="涓嶈壇鏁伴噺" width="100">
+              <template slot-scope="scope">
+                <el-input-number v-model="scope.row.HBadQty" :min="0" :precision="2" controls-position="right"
+                  size="mini">
+                </el-input-number>
+              </template>
+            </el-table-column>
+            <el-table-column prop="HICMOBillNo" label="鐢熶骇璁㈠崟" width="120"></el-table-column>
+            <el-table-column prop="HPRODUCEDATE" label="鐢熶骇鏃ユ湡" width="120">
+              <template slot-scope="scope">
+                <el-date-picker v-model="scope.row.HPRODUCEDATE" type="date" placeholder="閫夋嫨鏃ユ湡"
+                  value-format="yyyy-MM-dd" size="mini">
+                </el-date-picker>
+              </template>
+            </el-table-column>
+            <el-table-column prop="HRemark" label="琛ㄤ綋澶囨敞" width="150">
+              <template slot-scope="scope">
+                <el-input v-model="scope.row.HRemark" size="mini"></el-input>
+              </template>
+            </el-table-column>
+            <el-table-column label="鎿嶄綔" width="80">
+              <template slot-scope="scope">
+                <el-button type="danger" size="mini" @click="deleteTableRow(scope.$index)">鍒犻櫎</el-button>
+              </template>
+            </el-table-column>
+          </el-table>
+        </el-tab-pane>
+
+        <el-tab-pane label="浜ч噺姹囨姤鍗曟槑缁�" name="production">
+          <el-table :data="productionData" border height="400">
+          </el-table>
+        </el-tab-pane>
+      </el-tabs>
+    </el-form>
+    <el-dialog :title="dialogTitle" :visible.sync="dialogVisible" width="80%" append-to-body>
+      <component :is="currentDialogComponent" @select="handleDialogSelect" @dbSelect="handleDialogDbSelect">
+      </component>
+      <span slot="footer" class="dialog-footer">
+        <el-button @click="dialogVisible = false">鍙栨秷</el-button>
+        <el-button type="primary" @click="confirmDialogSelect">纭畾</el-button>
+      </span>
+    </el-dialog>
+  </div>
+</template>
+
+<script>
+import axios from 'axios'
+import Dept from "@/views/component/dept";
+
+export default {
+  name: 'ProductionReport',
+  components: {
+    Dept,
+
+  },
+  props: {
+    propOperationType: { type: Number, default: null },
+    propLinterid: { type: [Number, String], default: null },
+    propHSouceBillType: { type: String, default: '' },
+    propCopyType: { type: Number, default: -1 }
+  },
+  data() {
+    return {
+      formLoading: false,
+      saveDisabled: false,
+      activeTab: 'basic',
+      detailTab: 'main',
+      dialogVisible: false,
+      dialogTitle: '',
+      currentDialogComponent: null,
+      currentDialogType: '',
+      currentRowIndex: null,
+      currentRow: null,
+      fileList: [],
+      sourceBillDisabled: false,
+      sourceBillBtnDisabled: true,
+
+      form: {
+        HBillNo: '',
+        HDate: '',
+        HDeptName: '',
+        HDeptID: 0,
+        HDeptNumber: '',
+        HGroupName: '',
+        HGroupID: 0,
+        HEmpName: '',
+        HEmpID: 0,
+        HMainSourceBillType: '1',
+        HMainSourceBillNo: '',
+        HMainSourceInterID: 0,
+        HMainSourceEntryID: 0,
+        HRemark: '',
+        HMaker: '',
+        HChecker: '',
+        HCloseMan: '',
+        HMakeDate: '',
+        HCheckDate: '',
+        HCloseDate: '',
+        HUpDater: '',
+        HDeleteMan: '',
+        HUpDateDate: '',
+        HDeleteDate: ''
+      },
+
+      rules: {
+        HDeptName: [{ required: true, message: '鐢熶骇杞﹂棿涓嶈兘涓虹┖', trigger: 'blur' }],
+        HGroupName: [{ required: true, message: '鐝粍涓嶈兘涓虹┖', trigger: 'blur' }],
+        HEmpName: [{ required: true, message: '缁熻鍛樹笉鑳戒负绌�', trigger: 'blur' }],
+        HDate: [{ required: true, message: '鏃ユ湡涓嶈兘涓虹┖', trigger: 'change' }]
+      },
+
+      tableData: [],
+      productionData: [],
+
+      OperationType: 1,
+      linterid: 0,
+      HSouceBillType: '',
+
+      baseURL: process.env.VUE_APP_BASE_URL || 'http://47.96.97.237/API/'
+    }
+  },
+
+  created() {
+    this.initData()
+  },
+  watch: {
+    form: {
+      handler(newVal) {
+        console.log('琛ㄥ崟鏁版嵁鍙樺寲:', newVal)
+      },
+      deep: true,
+      immediate: true
+    },
+    'form.HDeptName': function (newVal) {
+      console.log('HDeptName鍙樺寲:', newVal)
+    },
+    'form.HGroupName': function (newVal) {
+      console.log('HGroupName鍙樺寲:', newVal)
+    },
+    'form.HEmpName': function (newVal) {
+      console.log('HEmpName鍙樺寲:', newVal)
+    }
+  },
+  methods: {
+    async initData() {
+      
+      const params = this.$route ? this.$route.query : {}
+      if (this.propOperationType !== null && this.propOperationType !== undefined) {
+        this.OperationType = this.propOperationType
+      } else {
+        this.OperationType = params.OperationType || 1
+      }
+
+      if (this.propLinterid !== null && this.propLinterid !== undefined && this.propLinterid !== '') {
+        this.linterid = Number(this.propLinterid)
+      } else {
+        this.linterid = params.linterid || 0
+      }
+
+      this.HSouceBillType = this.propHSouceBillType || params.HSouceBillType || ''
+
+      console.log("鎿嶄綔鍙傛暟:", {
+        OperationType: this.OperationType,
+        linterid: this.linterid,
+        HSouceBillType: this.HSouceBillType
+      })
+
+      try {
+        if (this.OperationType === 1) {
+          await this.setAddFNew()
+        } else if (this.OperationType === 2) {
+          await this.setAddNew()
+        } else if (this.OperationType === 3) {
+          await this.setEditFromGrid()
+        } else if (this.OperationType === 5) {
+          await this.setCopyBill()
+        }
+        if (this.OperationType === 1 || this.OperationType === 2) {
+          this.$set(this.form, 'HDeptID', sessionStorage.HDeptID || 0)
+          this.$set(this.form, 'HDeptName', sessionStorage.HDept || '')
+          this.$set(this.form, 'HGroupID', sessionStorage.HGroupID || 0)
+          this.$set(this.form, 'HGroupName', sessionStorage.HGroup || '')
+          this.$set(this.form, 'HEmpID', sessionStorage.HEmpID || 0)
+          this.$set(this.form, 'HEmpName', sessionStorage.HEmpName || '')
+        } 
+
+      } catch (error) {
+
+        this.$message.error('鍒濆鍖栨暟鎹け璐�: ' + error.message)
+      }
+
+    },
+
+    // 鏃犳簮鍗曟柊澧�
+    async setAddFNew() {
+      await this.getMaxBillNo()
+      this.sourceBillDisabled = false
+      this.sourceBillBtnDisabled = true
+
+      this.tableData = [this.getEmptyRow()]
+    },
+
+    // 鏈夋簮鍗曟柊澧�
+    async setAddNew() {
+      await this.getMaxBillNo()
+
+      if (this.linterid && this.HSouceBillType === '3724') {
+        try {
+          const response = await axios.get('/api/Sc_ICMOReportBill/GetProdReportBillList', {
+            params: {
+              HInterID: this.linterid,
+              user: sessionStorage.HUserName
+            }
+          })
+
+          if (response.data.code === 1) {
+            const data = response.data.data.h_p_Sc_ICMOBillWorkQtyStatus_TmpList1
+            this.tableData = data.map(item => ({
+              HMaterID: item.鐗╂枡ID,
+              HMaterCode: item.鐗╂枡浠g爜,
+              HMaterName: item.鐗╂枡鍚嶇О,
+              HMaterSpec: item.瑙勬牸鍨嬪彿,
+              HUnitID: item.鍗曚綅ID,
+              HUnitCode: item.璁¢噺鍗曚綅浠g爜,
+              HUnitName: item.璁¢噺鍗曚綅,
+              HSourceID: item.鐢熶骇璧勬簮ID,
+              HSourceCode: item.鐢熶骇璧勬簮浠g爜,
+              HSourceName: item.鐢熶骇璧勬簮鍚嶇О,
+              HWorkerid: item.鎿嶄綔鍛業D,
+              HWorkerCode: item.鎿嶄綔鍛樹唬鐮�,
+              HWorkerName: item.鎿嶄綔鍛樺悕绉�,
+              HQty: item.浜ч噺,
+              HBadQty: item.涓嶈壇鏁伴噺 || 0,
+              HICMOBillNo: item.鐢熶骇璁㈠崟鍙�,
+              HICMOInterID: item.HICMOInterID,
+              HICMOEntryID: item.HICMOEntryID,
+              HPRODUCEDATE: item.鐢熶骇鏃ユ湡,
+              HRemark: ''
+            }))
+          }
+        } catch (error) {
+          this.$message.error('鑾峰彇婧愬崟鏁版嵁澶辫触')
+        }
+      } else {
+        this.tableData = [this.getEmptyRow()]
+      }
+    },
+
+    // 缂栬緫
+    async setEditFromGrid() {
+      await this.setEditForm(this.linterid)
+      await this.setEditGrid(this.linterid)
+    },
+
+    // 澶嶅埗
+    async setCopyBill() {
+      await this.setEditFromGrid()
+      await this.getMaxBillNo()
+
+      this.form.HMaker = sessionStorage.HUserName
+      this.form.HMakeDate = this.formatDate(new Date())
+      this.form.HUpDater = ''
+      this.form.HUpDateDate = ''
+      this.form.HChecker = ''
+      this.form.HCheckDate = ''
+      this.form.HCloseMan = ''
+      this.form.HCloseDate = ''
+      this.form.HDeleteMan = ''
+      this.form.HDeleteDate = ''
+    },
+    // 鑾峰彇鏈�澶у崟鎹彿
+    async getMaxBillNo() {
+      try {
+        const response = await axios.get(`${this.baseURL}/Web/GetMAXNum`, {
+          params: { HBillType: '3711' }
+        })
+        if (response.data && response.data.data && response.data.data.length > 0) {
+          this.form.HBillNo = response.data.data[0].HBillNo
+          this.form.HInterID = response.data.data[0].HInterID
+          this.form.HDate = this.formatDate(new Date())
+          this.form.HMakeDate = this.formatDate(new Date())
+          this.form.HMaker = sessionStorage.HUserName
+        }
+      } catch (error) {
+        console.error('鑾峰彇鍗曟嵁鍙峰け璐�:', error)
+        this.$message.error('鑾峰彇鍗曟嵁鍙峰け璐�')
+      }
+    },
+    // 缂栬緫鑾峰彇琛ㄥご
+    async setEditForm(linterid) {
+      console.log("neima", linterid)
+      try {       //'/api/Sc_ICMOReportBill/Sc_GetICMOReportBillListCheckDetai'
+        const response = await axios.get(`${this.baseURL}/Sc_ICMOReportBill/Sc_GetICMOReportBillListCheckDetai`, {
+          params: { HID: linterid }
+        })
+
+        if (response.data.code === 1) {
+          const data = response.data.data.h_v_IF_ICMOReportBillList_Edit[0]
+          this.form.HBillNo = data.鍗曟嵁鍙�
+          this.form.HDate = this.formatDate(data.鏃ユ湡)
+          this.form.HDeptID = data.HDeptID
+          this.form.HDeptName = data.閮ㄩ棬
+          this.form.HDeptNumber = data.閮ㄩ棬浠g爜
+          this.form.HGroupID = data.HGroupID
+          this.form.HGroupName = data.鐝粍
+          this.form.HEmpID = data.HEmpID
+          this.form.HEmpName = data.缁熻鍛�
+          this.form.HMainSourceBillNo = data.HMainSourceBillNo
+          this.form.HMainSourceInterID = data.HMainSourceInterID || 0
+          this.form.HMainSourceEntryID = data.HMainSourceEntryID || 0
+          this.form.HRemark = data.琛ㄥご澶囨敞
+          console.log("response", data.鍗曟嵁鍙�, "---", data.閮ㄩ棬, "----", data.缁熻鍛�)
+        }
+      } catch (error) {
+        this.$message.error('鑾峰彇琛ㄥ崟鏁版嵁澶辫触')
+      }
+    },
+
+    // 缂栬緫鑾峰彇琛ㄤ綋
+    async setEditGrid(linterid) {
+      this.form.HInterID = linterid
+
+      try {//Sc_ICMOReportBill/Sc_ICMOReportBillListProjectDetai
+        const response = await axios.get(`${this.baseURL}/Sc_ICMOReportBill/Sc_ICMOReportBillListProjectDetai`, {
+          params: { sqlWhere: `and hmainid=${linterid}` }
+        })
+
+        if (response.data.count === 1) {
+          this.tableData = response.data.data
+        }
+      } catch (error) {
+        this.$message.error('鑾峰彇琛ㄦ牸鏁版嵁澶辫触')
+      }
+    },
+
+    handleSourceTypeChange(value) {
+      if (value === '1') {
+        this.sourceBillDisabled = false
+        this.sourceBillBtnDisabled = true
+        this.OperationType = 1
+      } else if (value === '2') {
+        this.sourceBillDisabled = true
+        this.sourceBillBtnDisabled = false
+        this.OperationType = 2
+      }
+    },
+
+    openDeptDialog() {
+      this.dialogTitle = '閮ㄩ棬鍒楄〃'
+      this.currentDialogComponent = 'Dept'
+      this.currentDialogType = 'dept'
+      this.dialogVisible = true
+    },
+
+    openGroupDialog() {
+      this.dialogTitle = '鐝粍鍒楄〃'
+      this.currentDialogComponent = 'Group'
+      this.currentDialogType = 'group'
+      this.dialogVisible = true
+    },
+
+    openEmpDialog() {
+      this.dialogTitle = '鑱屽憳鍒楄〃'
+      this.currentDialogComponent = 'Employee'
+      this.currentDialogType = 'emp'
+      this.dialogVisible = true
+    },
+
+    openSourceBillDialog() {
+      this.dialogTitle = '鐢熶骇浠诲姟鍗曞垪琛�'
+      this.currentDialogComponent = 'ProductionOrder'
+      this.currentDialogType = 'sourceBill'
+      this.dialogVisible = true
+    },
+
+    openMaterialDialog(row, index) {
+      this.currentRow = row
+      this.currentRowIndex = index
+      this.dialogTitle = '鐗╂枡鍒楄〃'
+      this.currentDialogComponent = 'Material'
+      this.currentDialogType = 'material'
+      this.dialogVisible = true
+    },
+
+    openUnitDialog(row, index) {
+      this.currentRow = row
+      this.currentRowIndex = index
+      this.dialogTitle = '鍗曚綅鍒楄〃'
+      this.currentDialogComponent = 'Unit'
+      this.currentDialogType = 'unit'
+      this.dialogVisible = true
+    },
+
+    openSourceDialog(row, index) {
+      this.currentRow = row
+      this.currentRowIndex = index
+      this.dialogTitle = '璧勬簮鍒楄〃'
+      this.currentDialogComponent = 'Source'
+      this.currentDialogType = 'source'
+      this.dialogVisible = true
+    },
+
+    openWorkerDialog(row, index) {
+      this.currentRow = row
+      this.currentRowIndex = index
+      this.dialogTitle = '鑱屽憳鍒楄〃'
+      this.currentDialogComponent = 'Employee'
+      this.currentDialogType = 'worker'
+      this.dialogVisible = true
+    },
+
+    handleDialogSelect(data) {
+      this.selectedData = data
+    },
+
+    handleDialogDbSelect(data) {
+      this.applySelectedData(data)
+      this.dialogVisible = false
+    },
+
+    confirmDialogSelect() {
+      if (this.selectedData) {
+        this.applySelectedData(this.selectedData)
+        this.dialogVisible = false
+      }
+    },
+
+    applySelectedData(data) {
+      switch (this.currentDialogType) {
+        case 'dept':
+          this.form.HDeptName = data.閮ㄩ棬鍚嶇О
+          this.form.HDeptID = data.HItemID
+          this.form.HDeptNumber = data.閮ㄩ棬浠g爜
+          break
+        case 'group':
+          this.form.HGroupName = data.鐝粍鍚嶇О
+          this.form.HGroupID = data.HItemID
+          break
+        case 'emp':
+          this.form.HEmpName = data.鑱屽憳鍚嶇О
+          this.form.HEmpID = data.HItemID
+          break
+        case 'sourceBill':
+          this.handleSourceBillSelect(data)
+          break
+        case 'material':
+          if (this.currentRow) {
+            this.currentRow.HMaterID = data.HItemID
+            this.currentRow.HMaterCode = data.鐗╂枡浠g爜
+            this.currentRow.HMaterName = data.鐗╂枡鍚嶇О
+            this.currentRow.HMaterSpec = data.瑙勬牸鍨嬪彿
+            this.currentRow.HUnitID = data.HUnitID
+            this.currentRow.HUnitCode = data.璁¢噺鍗曚綅浠g爜
+            this.currentRow.HUnitName = data.璁¢噺鍗曚綅鍚嶇О
+          }
+          break
+        case 'unit':
+          if (this.currentRow) {
+            this.currentRow.HUnitID = data.HItemID
+            this.currentRow.HUnitCode = data.璁¢噺鍗曚綅浠g爜
+            this.currentRow.HUnitName = data.璁¢噺鍗曚綅鍚嶇О
+          }
+          break
+        case 'source':
+          if (this.currentRow) {
+            this.currentRow.HSourceID = data.HItemID
+            this.currentRow.HSourceCode = data.鐢熶骇璧勬簮浠g爜
+            this.currentRow.HSourceName = data.鐢熶骇璧勬簮鍚嶇О
+          }
+          break
+        case 'worker':
+          if (this.currentRow) {
+            this.currentRow.HWorkerid = data.HItemID
+            this.currentRow.HWorkerCode = data.鑱屽憳浠g爜
+            this.currentRow.HWorkerName = data.鑱屽憳鍚嶇О
+          }
+          break
+      }
+    },
+
+    handleSourceBillSelect(data) {
+      if (!Array.isArray(data)) data = [data]
+
+      const billNos = data.map(item => item.鍗曟嵁鍙�)
+      if (!this.isAllEqual(billNos)) {
+        this.$message.error('璇烽�夋嫨鐩稿悓鍗曞彿!')
+        return
+      }
+
+      this.form.HMainSourceBillNo = data[0].鍗曟嵁鍙�
+      this.form.HMainSourceInterID = data[0].hmainid
+      this.form.HMainSourceEntryID = data[0].HEntryID
+
+      const newRows = data.map(item => ({
+        HMaterID: item.HMaterID,
+        HMaterCode: item.HMaterCode,
+        HMaterName: item.HMaterName,
+        HMaterSpec: item.HMaterSpec,
+        HUnitID: item.HUnitID,
+        HUnitCode: item.HUnitCode,
+        HUnitName: item.HUnitName,
+        HSourceID: 0,
+        HSourceCode: '',
+        HSourceName: '',
+        HWorkerid: 0,
+        HWorkerCode: '',
+        HWorkerName: '',
+        HQty: 0,
+        HBadQty: 0,
+        HICMOBillNo: item.鍗曟嵁鍙�,
+        HICMOInterID: item.hmainid,
+        HICMOEntryID: item.HEntryID,
+        HRemark: '',
+        HSourceInterID: item.hmainid,
+        HSourceEntryID: item.HEntryID,
+        HSourceBillNo: item.鍗曟嵁鍙�,
+        HSourceBillType: 3710
+      }))
+
+      this.tableData = newRows
+    },
+
+    addTableRow() {
+      this.tableData.push(this.getEmptyRow())
+    },
+
+    copyTableRow() {
+      if (this.selectedRows && this.selectedRows.length === 1) {
+        const copyRow = JSON.parse(JSON.stringify(this.selectedRows[0]))
+        this.tableData.push(copyRow)
+      } else {
+        this.$message.warning('璇烽�夋嫨涓�琛屾暟鎹繘琛屽鍒�')
+      }
+    },
+
+    deleteTableRow(index) {
+      if (this.tableData.length <= 1) {
+        this.$message.warning('鑷冲皯淇濈暀涓�琛屾暟鎹�')
+        return
+      }
+      this.tableData.splice(index, 1)
+    },
+
+    handleSelectionChange(selection) {
+      this.selectedRows = selection
+    },
+
+
+    getEmptyRow() {
+      return {
+        HMaterID: 0,
+        HMaterCode: '',
+        HMaterName: '',
+        HMaterSpec: '',
+        HUnitID: 0,
+        HUnitCode: '',
+        HUnitName: '',
+        HSourceID: 0,
+        HSourceCode: '',
+        HSourceName: '',
+        HWorkerid: 0,
+        HWorkerCode: '',
+        HWorkerName: '',
+        HQty: 0,
+        HBadQty: 0,
+        HICMOBillNo: '',
+        HICMOInterID: '0',
+        HICMOEntryID: '0',
+        HRemark: '',
+        HSourceInterID: 0,
+        HSourceEntryID: 0,
+        HSourceBillNo: '',
+        HSourceBillType: 0,
+        HICMOTempID: 0,
+        HPRODUCEDATE: ''
+      }
+    },
+
+    // 淇濆瓨
+    async handleSave() {
+      try {
+        await this.$refs.form.validate()
+
+        if (!this.validateForm()) {
+          return
+        }
+
+        const refSav = this.OperationType === 3 ? 'Update' : 'Add'
+        const mainData = {
+          ...this.form,
+          HMaker: sessionStorage.HUserName
+        }
+
+        const rowData = this.tableData.filter(row =>
+          row.HMaterCode && row.HMaterName
+        ).map(row => ({
+          ...row,
+          HMaterName: row.HMaterName.replace(/"/g, '鈥�').replace(/;/g, '锛�'),
+          HMaterSpec: row.HMaterSpec.replace(/"/g, '鈥�').replace(/;/g, '锛�')
+        }))
+
+        const submitData = {
+          main: JSON.stringify(mainData),
+          detail: JSON.stringify(rowData),
+          operation: refSav,
+          user: sessionStorage.HUserName
+        }
+
+        const response = await axios.post('/api/Sc_ICMOReportBill/SaveGetICMOReportBillList', submitData)
+
+        if (response.data.count === 1) {
+          this.$message.success(response.data.Message)
+          this.saveDisabled = true
+        } else {
+          this.$message.error(response.data.Message)
+        }
+      } catch (error) {
+        this.$message.error('淇濆瓨澶辫触')
+      }
+    },
+
+
+    validateForm() {
+      if (!this.form.HDeptID) {
+        this.$message.error('杞﹂棿涓嶈兘涓虹┖!')
+        return false
+      }
+
+      if (!this.form.HGroupID) {
+        this.$message.error('鐝粍涓嶈兘涓虹┖!')
+        return false
+      }
+
+      if (!this.form.HEmpID) {
+        this.$message.error('缁熻鍛樹笉鑳戒负绌�!')
+        return false
+      }
+
+      if (this.tableData.length === 0) {
+        this.$message.error('娌℃湁鐗╂枡鏄庣粏璁板綍')
+        return false
+      }
+
+      for (let i = 0; i < this.tableData.length; i++) {
+        const row = this.tableData[i]
+        if (!row.HMaterID) {
+          this.$message.error(`鏄庣粏璁板綍绗�${i + 1}琛�,鐗╂枡淇℃伅涓虹┖!`)
+          return false
+        }
+        if (!row.HUnitID) {
+          this.$message.error(`鏄庣粏璁板綍绗�${i + 1}琛�,鍗曚綅淇℃伅涓虹┖!`)
+          return false
+        }
+        if (!row.HQty || parseFloat(row.HQty) <= 0) {
+          this.$message.error(`鏄庣粏璁板綍绗�${i + 1}琛�,鐢熶骇鏁伴噺涓嶈兘涓虹┖鎴�0鎴栬�呭皬浜�0!`)
+          return false
+        }
+      }
+
+      return true
+    },
+
+    // 瀹℃牳
+    async handleCheckBill() {
+      try {
+        const response = await axios.get('/api/Sc_ICMOReportBill/AuditProcessReportList', {
+          params: {
+            HInterID: this.form.HInterID,
+            IsAudit: 0,
+            CurUserName: sessionStorage.HUserName
+          }
+        })
+
+        if (response.data.count === 1) {
+          this.$message.success(response.data.Message)
+        } else {
+          this.$message.error(response.data.Message)
+        }
+      } catch (error) {
+        this.$message.error('瀹℃牳澶辫触')
+      }
+    },
+
+    handleAdd() {
+      this.$router.push({
+        name: 'ProductionReport',
+        query: { OperationType: 1 }
+      })
+    },
+
+    handleCopyBill() {
+      // 澶嶅埗閫昏緫
+    },
+
+    handleAbandonCheck() {
+      // 鍙嶅鏍搁�昏緫
+    },
+
+    handleDeleteBill() {
+      // 鍒犻櫎閫昏緫
+    },
+
+    handlePrint() {
+      // 鎵撳嵃閫昏緫
+    },
+
+    handleExit() {
+      this.$router.back()
+    },
+
+    formatDate(date) {
+      if (!date) return ''
+      const d = new Date(date)
+      const month = '' + (d.getMonth() + 1)
+      const day = '' + d.getDate()
+      const year = d.getFullYear()
+
+      return [year, month.padStart(2, '0'), day.padStart(2, '0')].join('-')
+    },
+
+    isAllEqual(array) {
+      if (array.length > 0) {
+        return !array.some((value, index) => value !== array[0])
+      }
+      return true
+    },
+
+  
+    handleRemove(file, fileList) {
+      console.log(file, fileList)
+    },
+
+    handlePreview(file) {
+      console.log(file)
+    },
+
+    handleExceed(files, fileList) {
+      this.$message.warning(`褰撳墠闄愬埗閫夋嫨 3 涓枃浠讹紝鏈閫夋嫨浜� ${files.length} 涓枃浠讹紝鍏遍�夋嫨浜� ${files.length + fileList.length} 涓枃浠禶)
+    },
+
+    beforeRemove(file, fileList) {
+      return this.$confirm(`纭畾绉婚櫎 ${file.name}锛焋)
+    }
+  }
+}
+</script>
+
+<style scoped>
+.operation-buttons {
+  margin-bottom: 20px;
+  padding-bottom: 10px;
+  border-bottom: 1px solid #eee;
+}
+
+.page-title {
+  text-align: center;
+  margin: 20px 0;
+}
+
+.page-title h1 {
+  font-size: 24px;
+  font-weight: bold;
+}
+
+.table-toolbar {
+  margin-bottom: 10px;
+}
+
+.el-form-item {
+  margin-bottom: 18px;
+}
+
+.el-table {
+  margin-top: 10px;
+}
+</style>
\ No newline at end of file
diff --git a/src/views/ICMO/ScICMOReportBill/ScICMOReportBillList.vue b/src/views/ICMO/ScICMOReportBill/ScICMOReportBillList.vue
new file mode 100644
index 0000000..e38ad1f
--- /dev/null
+++ b/src/views/ICMO/ScICMOReportBill/ScICMOReportBillList.vue
@@ -0,0 +1,1649 @@
+<template>
+  <div style="padding: 10px">
+    <el-form
+      :model="queryParams"
+      ref="queryForm"
+      size="small"
+      :inline="true"
+      label-width="78px"
+      class="searchBox"
+    >
+      <el-row>
+        <el-form-item label="寮�濮嬫棩鏈�" style="margin-left: 100px">
+          <el-date-picker
+            v-model="sTime"
+            type="date"
+            placeholder="寮�濮嬫棩鏈�"
+            style="width: 150px"
+            :disabled="queryParams.HInitTimeCycle != -1"
+            value-format="yyyy-MM-dd"
+          >
+          </el-date-picker>
+        </el-form-item>
+        <el-form-item label="缁撴潫鏃ユ湡">
+          <el-date-picker
+            v-model="eTime"
+            type="date"
+            placeholder="缁撴潫鏃ユ湡"
+            style="width: 150px"
+            :disabled="queryParams.HInitTimeCycle != -1"
+            value-format="yyyy-MM-dd"
+          >
+          </el-date-picker>
+        </el-form-item>
+        <el-form-item label="鏃ユ湡闂撮殧">
+          <el-select
+            v-model="queryParams.HInitTimeCycle"
+            placeholder="璇烽�夋嫨"
+            @change="riqiChange"
+          >
+            <el-option
+              v-for="(item, index) in rqsgList"
+              :key="index"
+              :label="item.label"
+              :value="item.value"
+            >
+            </el-option>
+          </el-select>
+        </el-form-item>
+        <el-form-item label="鍗曟嵁鍙�" prop="HBillNo">
+          <el-input
+            v-model="queryParams.HBillNo"
+            placeholder="璇疯緭鍏ュ崟鎹彿"
+            @keyup.enter.native="handleQuery"
+          />
+        </el-form-item>
+        <el-form-item label="缁勭粐">
+          <el-select
+            v-model="queryParams.HOrgID"
+            placeholder="璇烽�夋嫨"
+            class="ForFilteringSchemes"
+          >
+            <el-option
+              v-for="(item, index) in organizationList"
+              :key="index"
+              :label="item.Name"
+              :value="item.ID"
+            >
+            </el-option>
+          </el-select>
+        </el-form-item>
+      </el-row>
+      <el-form-item label-width="78px">
+        <el-button type="primary" icon="el-icon-search" size="small" @click="handleQuery">
+          鎼� 绱�</el-button
+        >
+        <el-button icon="el-icon-circle-close" size="small" @click="searchOpen = false"
+          >鍙� 娑�</el-button
+        >
+      </el-form-item>
+      <el-collapse v-model="activeSeach">
+        <el-collapse-item title="鏇村" name="1">
+          <el-card class="box-card">
+            <el-form :inline="true">
+              <el-form-item label="涓氬姟鍛�">
+                <el-input></el-input>
+              </el-form-item>
+
+              <el-form-item label="鐗╂枡浠g爜">
+                <el-input></el-input>
+              </el-form-item>
+
+              <el-form-item label="鐗╂枡鍚嶇О">
+                <el-input></el-input>
+              </el-form-item>
+
+              <el-form-item label="渚涘簲鍟�">
+                <el-input></el-input>
+              </el-form-item>
+            </el-form>
+            <div slot="header" class="clearfix"><span>杩囨护</span></div>
+            <div>
+              <el-row>
+                <el-form-item label-width="0">
+                  <el-col :span="7">
+                    <el-select
+                      v-model="queryParams.ColName1"
+                      placeholder="璇烽�夋嫨"
+                      @change="riqiChange"
+                      class="ForFilteringSchemes"
+                    >
+                      <span v-for="(item, index) in btList" :key="index">
+                        <el-option
+                          :label="item.field"
+                          :value="item.field"
+                          v-if="!item.hide"
+                        ></el-option>
+                      </span>
+                    </el-select>
+                  </el-col>
+                  <el-col :span="6" style="padding: 0 10px">
+                    <el-select
+                      v-model="queryParams.Comparator1"
+                      placeholder="璇烽�夋嫨"
+                      @change="riqiChange"
+                      class="ForFilteringSchemes"
+                    >
+                      <el-option
+                        v-for="(item, index) in comparatorList"
+                        :key="index"
+                        :label="item.label"
+                        :value="item.value"
+                      ></el-option>
+                    </el-select>
+                  </el-col>
+                  <el-col :span="11">
+                    <el-input
+                      v-model="queryParams.ColContent1"
+                      placeholder="璇疯緭鍏�"
+                      clearable
+                      @keyup.enter.native="handleQuery"
+                      class="ForFilteringSchemes"
+                    />
+                  </el-col>
+                </el-form-item>
+              </el-row>
+              <el-row>
+                <el-form-item label-width="0">
+                  <el-col :span="7">
+                    <el-select
+                      v-model="queryParams.ColName2"
+                      placeholder="璇烽�夋嫨"
+                      @change="riqiChange"
+                      class="ForFilteringSchemes"
+                    >
+                      <span v-for="(item, index) in btList" :key="index">
+                        <el-option
+                          :label="item.field"
+                          :value="item.field"
+                          v-if="!item.hide"
+                        ></el-option>
+                      </span>
+                    </el-select>
+                  </el-col>
+                  <el-col :span="6" style="padding: 0 10px">
+                    <el-select
+                      v-model="queryParams.Comparator2"
+                      placeholder="璇烽�夋嫨"
+                      @change="riqiChange"
+                      class="ForFilteringSchemes"
+                    >
+                      <span v-for="(item, index) in btList" :key="index">
+                        <el-option
+                          :label="item.field"
+                          :value="item.field"
+                          v-if="!item.hide"
+                        ></el-option>
+                      </span>
+                    </el-select>
+                  </el-col>
+                  <el-col :span="11">
+                    <el-input
+                      v-model="queryParams.ColContent2"
+                      placeholder="璇疯緭鍏�"
+                      clearable
+                      @keyup.enter.native="handleQuery"
+                      class="ForFilteringSchemes"
+                    />
+                  </el-col>
+                </el-form-item>
+              </el-row>
+              <el-row>
+                <el-form-item label-width="0">
+                  <el-col :span="7">
+                    <el-select
+                      v-model="queryParams.ColName"
+                      placeholder="璇烽�夋嫨"
+                      @change="riqiChange"
+                      class="ForFilteringSchemes"
+                    >
+                      <el-option
+                        v-for="(item, index) in btList"
+                        :key="index"
+                        :label="item.field"
+                        :value="item.field"
+                      ></el-option>
+                    </el-select>
+                  </el-col>
+                  <el-col :span="6" style="padding: 0 10px">
+                    <el-select
+                      v-model="queryParams.Comparator"
+                      placeholder="璇烽�夋嫨"
+                      @change="riqiChange"
+                      class="ForFilteringSchemes"
+                    >
+                      <el-option
+                        v-for="(item, index) in comparatorList"
+                        :key="index"
+                        :label="item.label"
+                        :value="item.value"
+                      ></el-option>
+                    </el-select>
+                  </el-col>
+                  <el-col :span="11">
+                    <el-input
+                      v-model="queryParams.ColContent"
+                      placeholder="璇疯緭鍏�"
+                      clearable
+                      @keyup.enter.native="handleQuery"
+                      class="ForFilteringSchemes"
+                    />
+                  </el-col>
+                </el-form-item>
+              </el-row>
+            </div> </el-card
+        ></el-collapse-item>
+      </el-collapse>
+    </el-form>
+    <el-row :gutter="10" class="mb8">
+      <!-- <el-col :span="1.5">
+        <el-button
+          type="warning"
+          plain
+          icon="el-icon-download"
+          size="mini"
+          @click="handleImport"
+          >瀵煎叆</el-button
+        >
+      </el-col> -->
+      <el-col :span="1.5">
+        <el-button
+          type="primary"
+          icon="el-icon-plus"
+          size="mini"
+          @click="handleAddEdit((OperationType = 1))"
+          id="btn-Add"
+          >鏂板</el-button
+        >
+      </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="primary"
+          icon="el-icon-edit"
+          size="mini"
+          :disabled="single"
+          @click="handleEdit((row = rowForm), (OperationType = 3), (copyType = -1))"
+          >缂栬緫</el-button
+        >
+      </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="primary"
+          icon="el-icon-edit"
+          size="mini"
+          :disabled="single"
+          @click="handleEdit((row = rowForm), (OperationType = 2), (copyType = 1))"
+          >澶嶅埗</el-button
+        >
+      </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="primary"
+          icon="el-icon-delete"
+          size="mini"
+          :disabled="single"
+          @click="handleDelete"
+          >鍒犻櫎
+        </el-button>
+      </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="primary"
+          icon="el-icon-edit"
+          size="mini"
+          :disabled="single"
+          @click="set_CheckBill(0, (form = rowForm))"
+          >瀹℃牳</el-button
+        >
+      </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="primary"
+          icon="el-icon-edit"
+          size="mini"
+          :disabled="single"
+          @click="set_CheckBill(1, (form = rowForm))"
+          >鍙嶅鏍�</el-button
+        >
+      </el-col>
+      <!-- <el-col :span="1.5">
+        <el-button
+          type="success"
+          plain
+          icon="el-icon-edit"
+          size="mini"
+          :disabled="single"
+          @click="set_De_Stop(0, (form = rowForm))"
+          >绂佺敤</el-button
+        >
+      </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="success"
+          plain
+          icon="el-icon-edit"
+          size="mini"
+          :disabled="single"
+          @click="set_De_Stop(1, (form = rowForm))"
+          >鍙嶇鐢�</el-button
+        >
+      </el-col> -->
+      <el-col :span="1.5">
+        <el-button
+          type="primary"
+          icon="el-icon-edit"
+          size="mini"
+          :disabled="single"
+          @click="set_CloseBill(1, (form = rowForm))"
+          >鍏抽棴</el-button
+        >
+      </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="primary"
+          icon="el-icon-edit"
+          size="mini"
+          :disabled="single"
+          @click="set_CloseBill(2, (form = rowForm))"
+          >鍙嶅叧闂�</el-button
+        >
+      </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="primary"
+          icon="el-icon-edit"
+          size="mini"
+          :disabled="single"
+          @click="set_CloseRow(0, (form = rowForm))"
+          >琛屽叧闂�</el-button
+        >
+      </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="primary"
+          icon="el-icon-edit"
+          size="mini"
+          :disabled="single"
+          @click="set_CloseRow(1, (form = rowForm))"
+          >琛屽弽鍏抽棴</el-button
+        >
+      </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="primary"
+          icon="el-icon-download"
+          size="mini"
+          @click="handleExport"
+          >瀵煎嚭</el-button
+        >
+      </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="primary"
+          icon="el-icon-download"
+          size="mini"
+          @click="handleRowHide"
+          >闅愯棌鍒楄缃�</el-button
+        >
+      </el-col>
+      <el-col :span="1.5">
+        <el-button type="primary" icon="el-icon-help" size="mini" @click="handleSearch"
+          >鎼� 绱�</el-button
+        >
+      </el-col>
+      <el-col :span="1.5">
+        <el-button type="" icon="el-icon-refresh" size="mini" @click="resetQuery"
+          >閲� 缃�</el-button
+        >
+      </el-col>
+      <!-- <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> -->
+    </el-row>
+    <div class="tableBox" v-loading="loading">
+      <el-table
+        :data="tableData"
+        ref="tableData"
+        max-height="750"
+        :summary-method="getSummaries"
+        @selection-change="handleSelectionChange"
+        show-summary
+        border
+        @row-click="handleRowClick"
+        :row-style="rowStyle"
+        @cell-dblclick="handleDblclick"
+        v-if="tableShow"
+      >
+        <template v-for="(item, index) in btList">
+          <el-table-column
+            type="selection"
+            width="55"
+            align="center"
+            :fixed="item.fixed"
+            v-if="item.type == 'checkbox'"
+            :key="index"
+          />
+          <el-table-column
+            :align="item.align"
+            :prop="item.field"
+            :label="item.title"
+            :width="item.width"
+            :key="item.sorderid"
+            v-else-if="!item.hide && item.type != 'checkbox'"
+            :sortable="item.sort"
+            show-overflow-tooltip
+            :fixed="item.fixed"
+          >
+            <template slot-scope="{ row, column }">
+              <el-checkbox v-model="checked" v-if="item.type == 'checkbox'"></el-checkbox>
+              <div :style="item.style">
+                <span v-if="column.property.includes('鏃ユ湡')">{{
+                  parseTime(row[column.property], "{y}-{m}-{d}")
+                }}</span>
+                <el-button
+                  type="text"
+                  @click="handleEdit(row, (OperationType = 3), (copyType = 1))"
+                  v-else-if="column.property == '鍗曟嵁鍙�'"
+                  >{{ row.鍗曟嵁鍙� }}</el-button
+                >
+                <span v-else>{{ row[column.label] }}</span>
+              </div>
+            </template>
+          </el-table-column>
+        </template>
+      </el-table>
+      <pagination
+        v-show="total > 0"
+        :total="total"
+        :page.sync="page"
+        :limit.sync="pageSize"
+        :pageSizes="pageSizes"
+        @pagination="getList"
+      />
+      <el-dialog
+        title="闅愯棌鍒楄缃�"
+        :visible.sync="openRowHide"
+        width="816px"
+        append-to-body
+      >
+        <RowSettings
+          :colName="btResList"
+          :HModName="HModName"
+          @rowEditClose="rowSetClose"
+          v-if="rowHideShow"
+        />
+      </el-dialog>
+      <!-- 缂栬緫 -->
+      
+         <!-- 缂栬緫寮圭獥 -->
+      <el-dialog
+        :title="editDialogTitle"
+        :visible.sync="openEdit"
+        width="90%"
+        append-to-body
+        class="production-report-dialog"
+        :before-close="handleEditClose"
+        fullscreen
+      >
+          <ProductionReportEdit
+            v-if="openEdit"
+            :propOperationType="currentOperationType"
+            :propLinterid="currentLinterid"
+            :propHSouceBillType="currentHSouceBillType"
+            :propCopyType="currentCopyType"
+            @editClose="handleEditClose"
+            @saveSuccess="handleSaveSuccess"
+          />
+      </el-dialog>
+      <el-dialog
+        :title="upload.title"
+        :visible.sync="upload.open"
+        width="1500px"
+        append-to-body
+      >
+        <div style="margin-top: -20px">
+          <el-button type="primary" @click="set_AddNew">瀵煎叆鏁版嵁</el-button>
+          <el-button type="primary" @click="upload.open = false">閫� 鍑�</el-button>
+          <el-upload
+            ref="upload"
+            :limit="1"
+            accept=".xlsx, .xls"
+            style="display: inline-block; margin-left: 10px"
+            :action="upload.url + '?updateSupport=' + upload.updateSupport"
+            :disabled="upload.isUploading"
+            :on-progress="handleFileUploadProgress"
+            :on-success="handleFileSuccess"
+          >
+            <el-button type="primary">鏂囦欢涓婁紶</el-button>
+          </el-upload>
+        </div>
+        <el-table
+          :data="uploadData"
+          v-loading="uploadTableLoading"
+          :row-class-name="uploadDataIndex"
+          border
+          height="550"
+        >
+          <el-table-column type="index" label="搴忓彿" width="55" align="center" />
+          <el-table-column label="缁勭粐浠g爜" prop="缁勭粐浠g爜" align="center" width="120" />
+          <el-table-column label="缁勭粐鍚嶇О" prop="缁勭粐鍚嶇О" align="center" width="120" />
+          <el-table-column
+            label="鐢熶骇璧勬簮鍚嶇О"
+            prop="鐢熶骇璧勬簮鍚嶇О"
+            align="center"
+            width="120"
+          />
+          <el-table-column
+            label="鐢熶骇璧勬簮浠g爜"
+            prop="鐢熶骇璧勬簮浠g爜"
+            align="center"
+            width="120"
+          />
+          <el-table-column label="閮ㄩ棬浠g爜" prop="閮ㄩ棬浠g爜" align="center" width="120" />
+          <el-table-column label="閮ㄩ棬鍚嶇О" prop="閮ㄩ棬鍚嶇О" align="center" width="120" />
+          <el-table-column
+            label="璐熻矗浜轰唬鐮�"
+            prop="璐熻矗浜轰唬鐮�"
+            align="center"
+            width="120"
+          />
+          <el-table-column label="璐熻矗浜�" prop="璐熻矗浜�" align="center" width="120" />
+          <el-table-column
+            label="宸ヤ綔涓績浠g爜"
+            prop="宸ヤ綔涓績浠g爜"
+            align="center"
+            width="120"
+          />
+          <el-table-column
+            label="宸ヤ綔涓績鍚嶇О"
+            prop="宸ヤ綔涓績鍚嶇О"
+            align="center"
+            width="120"
+          />
+          <el-table-column label="鍗曠彮宸ユ椂" prop="鍗曠彮宸ユ椂" align="center" width="120" />
+          <el-table-column label="鎿嶄綔" align="center">
+            <template slot-scope="scope">
+              <el-button
+                size="mini"
+                type="text"
+                icon="el-icon-delete"
+                @click="uploadDataDelete(scope.row)"
+                >鍒犻櫎</el-button
+              >
+            </template>
+          </el-table-column>
+        </el-table>
+        <pagination
+          v-show="uploadTotal > 0"
+          :total="uploadTotal"
+          :page.sync="uploadPage"
+          :limit.sync="uploadPageSize"
+          :pageSizes="uploadPageSizes"
+          @pagination="currentPage"
+        />
+      </el-dialog>
+    </div>
+  </div>
+</template>
+
+<script>
+import axios from "axios";
+import RowSettings from "@/views/component/rowSettings";
+import gySource from "@/views/basic/gySource";
+import dayjs from "dayjs";
+import ProductionReportEdit from "./ScICMOReportBillEdit"; 
+
+export default {
+  name: "ProductionReportList",
+  components: { RowSettings, gySource,ProductionReportEdit  },
+  props: {
+    openPage: { type: String },
+  },
+  data() {
+    return {
+       // 缂栬緫寮圭獥鐩稿叧鏁版嵁
+      openEdit: false,
+      editDialogTitle: "鐢熶骇姹囨姤鍗�",
+      currentOperationType: 1,
+      currentLinterid: 0,
+      currentHSouceBillType: "",
+      currentCopyType: -1,
+
+
+
+      iframeUrl: "",
+      activeSeach: "",
+      dateRange: [],
+      HModName: "cgPoInStockBill",
+      editShow: false,
+      
+      totalNameList: [],
+      tableShow: true,
+      openPrintList: false,
+      printListShow: false,
+      HClassTag: "ForFilteringSchemes", //杩囨护鏉′欢鐨刢lass绫�
+      HBillType: "1103",
+      openBtnHide: false,
+      btnHideShow: false,
+      rowHideShow: false,
+      openRowHide: false,
+      copyType: 0,
+      comparatorList: [
+        { label: "=", value: "=" },
+        { label: ">=", value: ">=" },
+        { label: ">", value: ">" },
+        { label: "<=", value: "<=" },
+        { label: "<", value: "<" },
+        { label: "<>", value: "<>" },
+        { label: "鍖呭惈", value: "7" },
+        { label: "宸﹀寘鍚�", value: "8" },
+        { label: "鍙冲寘鍚�", value: "9" },
+        { label: "涓嶅寘鍚�", value: "10" },
+      ],
+      sWhere: "",
+      sTime: "",
+      eTime: "",
+      rqsgList: [
+        { label: "浠婂ぉ", value: 0 },
+        { label: "杩戜袱澶�", value: 1 },
+        { label: "杩戜笁澶�", value: 2 },
+        { label: "杩戝洓澶�", value: 3 },
+        { label: "杩戜簲澶�", value: 4 },
+        { label: "杩戝叚澶�", value: 5 },
+        { label: "杩戜竷澶�", value: 6 },
+        { label: "杩�30澶�", value: 29 },
+        { label: "杩戝崐骞�", value: 180 },
+        { label: "杩戜竴骞�", value: 365 },
+        { label: "浠绘剰闂撮殧", value: -1 },
+      ],
+      hPriceTypeList: ["鎴愭湰浠�", "缁撶畻浠�"],
+      addBtnShow: false,
+      zbIndex: null,
+      zbSelForm: {}, //瀛愯〃閫変腑鏁版嵁
+      dialogTypeNum: null, //閮ㄩ棬寮圭獥1锛屼粨搴撳脊绐�2
+      deptShow: false, //閮ㄩ棬鏁版嵁缁勪欢
+      warehouseShow: false, //浠撳簱鏁版嵁缁勪欢
+      materialShow: false, //鐗╂枡鏁版嵁缁勪欢
+      deptform: {}, //寮圭獥閫変腑鏁版嵁
+      openData: false, //鏁版嵁寮圭獥
+      organizationList: JSON.parse(sessionStorage.getItem("organizationList")), //缁勭粐鍒楄〃
+      dialogTitle: "",
+      zuzhiId: "",
+      subDisabled: false, //缂栬緫椤甸潰淇濆瓨鎸夐挳鏄惁绂佺敤(true绂佺敤锛宖alse鍙敤)
+      OperationType: null, //淇濆瓨绫诲瀷锛堟柊澧�1淇敼3锛�
+      HInterID: null,
+      baseURL: process.env.VUE_APP_BASE_API || "http://47.96.97.237/API/",
+      currentRow: [],
+      lastSelectedRowIndex: null, // 鐢ㄤ簬璁板綍涓婃鐐瑰嚮鐨勮绱㈠紩
+      lastSelectedRow: null, // 涓婁竴娆¢�変腑鐨勮
+      selectedRow: null, // 褰撳墠閫変腑鐨勮
+      rowForm: {},
+      checkedSysZb: [],
+      editData: [], //鐢熶骇璧勬枡瀛愯〃
+      editBtData: [], //瀛愯〃琛ㄥご
+      activeName: "first",
+      searchOpen: false,
+      // 寮瑰嚭灞傛爣棰�
+      title: "",
+      // 鏄惁鏄剧ず寮瑰嚭灞�
+      open: false,
+      // 鏃ユ湡鑼冨洿
+      dateRange: [],
+      // 鏌ヨ鍙傛暟
+      queryParams: {
+        HOrgID: null,
+        HName: null,
+        HNumber: null,
+        Comparator1: "",
+        Comparator2: "",
+        Comparator: "",
+        ColContent1: "",
+        ColContent2: "",
+        ColContent: "",
+        HInitTimeCycle: 29,
+        HBeginDate: dayjs(new Date()).subtract(29, "d").format("YYYY-MM-DDTHH:mm:ss"),
+        HEndDate: dayjs(new Date()).format("YYYY-MM-DDTHH:mm:ss"),
+      },
+      // 鏄剧ず鎼滅储鏉′欢
+      showSearch: true,
+      // 閫変腑鏁扮粍
+      ids: [],
+      // 闈炲崟涓鐢�
+      single: true,
+      // 闈炲涓鐢�
+      multiple: true,
+      // 閬僵灞�
+      loading: true,
+      // 绂佺敤鏃ユ湡閫夋嫨
+      disableDataPicker: true,
+      tyResList: [], //鏀舵枡閫氱煡鍗曞垪琛紙鎺ュ彛鏁版嵁锛�
+      btList: [], //鏀舵枡閫氱煡鍗曞垪琛ㄦ樉绀�
+      btResList: [],
+      tableData: [], //鏀舵枡閫氱煡鍗曞垪琛�(鍒嗛〉鏄剧ず)
+      dataList: [],
+      titleData: [
+        "HItemID",
+        "hmainid",
+        "Hprocid",
+        "HUSEORGID",
+        "HCREATEORGID",
+        "HParentID",
+      ], //涓嶉渶瑕佹樉绀虹殑瀛楁 鍙墿灞�
+      pageSizes: [50, 100, 500, 5000, 50000],
+      page: 1,
+      pageSize: 50,
+      total: 0,
+      scollHeight: document.body.clientHeight * (38.056 / 100),
+      // 琛ㄥ崟鍙傛暟
+      form: {},
+      // 琛ㄥ崟鏍¢獙
+      rules: {
+        HSupName: [{ required: true, message: "瀹㈡埛涓嶈兘涓虹┖", trigger: "blur" }],
+        HDate: [{ required: true, message: "鏃ユ湡涓嶈兘涓虹┖", trigger: "blur" }],
+        HExRate: [{ required: true, message: "姹囩巼涓嶈兘涓虹┖", trigger: "blur" }],
+      },
+      upload: {
+        // 鏄惁鏄剧ず寮瑰嚭灞�
+        open: false,
+        // 寮瑰嚭灞傛爣棰�
+        title: "",
+        // 鏄惁绂佺敤涓婁紶
+        isUploading: false,
+        // 鏄惁鏇存柊宸茬粡瀛樺湪鐨勬暟鎹�
+        updateSupport: 0,
+        // 璁剧疆涓婁紶鐨勮姹傚ご閮�
+        // headers: { Authorization: "Bearer " + getToken() },
+        // 涓婁紶鐨勫湴鍧�
+        url: "http://47.96.97.237/API/Gy_Source/Gy_Source_Excel",
+      },
+      uploadData: [],
+      alluploadList: [],
+      uploadTableLoading: false,
+      uploadPageSizes: [50, 100, 500, 5000, 50000],
+      uploadPage: 1,
+      uploadPageSize: 50,
+      uploadTotal: 0,
+    };
+  },
+  mounted() {
+    this.queryParams.HOrgID = sessionStorage["Organization"];
+    window.editGyClose = () => {
+      this.editGyClose(); // 缁勪欢鍐呯殑鏂规硶缁戝畾鍒皐indows
+    };
+  },
+  created() {
+    this.riqiChange();
+    // this.getList();
+    this.handleQuery();
+  },
+  beforeDestroy() {
+    // 缁勪欢閿�姣佹椂娓呯悊鍏ㄥ眬鏂规硶锛岄伩鍏嶅唴瀛樻硠婕�
+    delete window.editGyClose;
+  },
+  methods: {
+    onDateScanOptionChangerHandler(e) {
+      this.queryParams.timeSpan = e;
+      if (e == -1) {
+        this.disableDataPicker = true;
+        return;
+      }
+
+      this.disableDataPicker = false;
+    },
+    getSummaries(param) {
+      const { columns, data } = param;
+      const sums = [];
+      columns.forEach((column, index) => {
+        if (index === 0) {
+          sums[index] = "鍚堣";
+          return;
+        }
+        const values = data.map((item) => Number(item[column.property]));
+        if (this.totalNameList[index].totalRow) {
+          if (!values.every((value) => isNaN(value))) {
+            sums[index] = values.reduce((prev, curr) => {
+              const value = Number(curr);
+              if (!isNaN(value)) {
+                return prev + curr;
+              } else {
+                return prev;
+              }
+            }, 0);
+          } else {
+            sums[index] = "";
+          }
+        }
+      }, 1000);
+      return sums;
+    },
+
+    //#region 鑾峰彇鍏徃鍚嶏紝鏍规嵁鍏徃杩涜瀹氬埗鍖栧紑鍙�
+    defaintOperationByCompanyName() {
+      var result = false;
+      axios
+        .get(this.baseURL + "/Xt_getInfo/getCompanyName")
+        .then((res) => {
+          var data1 = res.data;
+          if (data1.count == 1) {
+            if (data1.data == "姘村姟") {
+              result = true;
+            }
+          }
+        })
+        .catch((error) => {
+          this.$modal.msgError("鎺ュ彛璇锋眰澶辫触!");
+        });
+      return result;
+    },
+    handleSellOpen() {
+      this.$router.push("/sellBill");
+    },
+    handleSellOutOpen() {
+      this.$router.push("/sellOutBill");
+    },
+    handleBtnHide() {
+      this.btnHideShow = true;
+      this.openBtnHide = true;
+    },
+    handleRowHide() {
+      this.rowHideShow = true;
+      this.openRowHide = true;
+    },
+    rowSetClose(val) {
+      this.rowHideShow = false;
+      this.tableShow = true;
+      this.openRowHide = val;
+      this.getList();
+    },
+    riqiChange() {
+      if (this.queryParams.HInitTimeCycle == -1) {
+        return;
+      }
+      const end = new Date();
+      const start = new Date();
+      start.setTime(start.getTime() - 3600 * 1000 * 24 * this.queryParams.HInitTimeCycle);
+      const yyyyS = start.getFullYear();
+      const mmS = String(start.getMonth() + 1).padStart(2, "0"); // 鏈堜唤鏄粠0寮�濮嬬殑
+      const ddS = String(start.getDate()).padStart(2, "0");
+      const yyyyE = end.getFullYear();
+      const mmE = String(end.getMonth() + 1).padStart(2, "0"); // 鏈堜唤鏄粠0寮�濮嬬殑
+      const ddE = String(end.getDate()).padStart(2, "0");
+      this.sTime = yyyyS + "-" + mmS + "-" + ddS;
+      this.eTime = yyyyE + "-" + mmE + "-" + ddE;
+    },
+    organizationChange(val) {
+      // let options=undefined
+      //  this.form=this.organizationList.find(option => option.ID === val)?.Name || '';
+    },
+    //閮ㄩ棬寮圭獥璧嬪��
+    dbEmitData(deptRow, num) {
+      // num=1閮ㄩ棬 num=2鍑哄簱浠撳簱
+      if (num == 1) {
+        this.form.HDeptName = deptRow.閮ㄩ棬鍚嶇О;
+        this.form.HDeptID = deptRow.HItemID;
+        this.form.HEmpID = deptRow.HEmpID;
+        this.form.HManagerName = deptRow.璐熻矗浜�;
+        this.openData = false;
+      } else if (num == 2) {
+        this.editData[this.zbIndex].HWHID = deptRow.HItemID;
+        this.editData[this.zbIndex].鍙戣揣浠撳簱 = deptRow.浠撳簱鍚嶇О;
+        this.openData = false;
+      } else if (num == 3) {
+        this.editData[this.zbIndex].HMaterID = deptRow.HItemID;
+        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].HTaxPrice = deptRow.鍚◣鎴愭湰浠�;
+        this.editData[this.zbIndex].HTaxRate = deptRow.榛樿绋庣巼;
+        this.openData = false;
+      }
+    },
+    emitData(deptRow, num) {
+      this.dialogTypeNum = num;
+      this.deptform = deptRow;
+    },
+    deptClickSub() {
+      this.dbEmitData(this.deptform, this.dialogTypeNum);
+      this.deptform = {};
+    },
+    async getList() {
+      this.tableShow = false;
+      this.loading = true;
+      if (this.pageSize == 0) {
+        this.pageSize = 50;
+      }
+
+      if (this.sTime && this.eTime) {
+        this.sWhere += " and CONVERT(varchar(100),鏃ユ湡, 23) >= '" + this.sTime + "'";
+        this.sWhere += " and CONVERT(varchar(100),鏃ユ湡, 23) <= '" + this.eTime + "'";
+      }
+      try {
+        let res = await axios.get(this.baseURL + "Sc_ICMOReportBill/list", {
+          params: {
+            sWhere: this.sWhere,
+            user: sessionStorage["HUserName"],
+           
+          },
+        });
+        this.tyResList = [...JSON.parse(JSON.stringify(res.data.data))]; //鎬绘暟鎹�
+        let data1 = res.data;
+        let option = [];
+        if (data1.code == 1) {
+          this.btResList = data1.list; //鐢熶骇璧勬枡鎺ュ彛琛ㄥご鏁版嵁
+          this.total = data1.count;
+          var data = []; //鍒楀瓧娈垫暟鎹�
+          var col = [];
+          var totalArray = [];
+          //缁欑┖鐨勬暟缁勮祴鍊�
+          for (var key in data1.list) {
+            //寰簭閬嶅巻鏁扮粍
+            data.push({
+              id: data1.list[key].ColmCols,
+              name: data1.list[key].ColmCols,
+              Type: data1.list[key].ColmType,
+            }); //浠庢瘡涓璞′腑鎻愬彇鏁版嵁
+          }
+          //鍦ㄥ垪琛ㄥ乏杈规坊鍔犲嬀閫夋
+          col.push({ type: "checkbox", fixed: "left", totalRowText: "鍚堣" });
+          for (var i = 0; i < data.length; i++) {
+            //閬嶅巻data鏁扮粍閲嶇殑鏁版嵁
+            if (this.titleData.indexOf(data[i].name) > -1) {
+              //妫�鏌ata銆恑銆�.name鏄惁鍦ㄦ暟缁勪腑  //璁$畻鍒�
+              col.push({
+                field: data[i].id,
+                title: data[i].name,
+                align: "center",
+                hide: true,
+              }); //闅愯棌id鍒�
+            } else if (
+              totalArray.indexOf(data[i].name) > -1 ||
+              data[i].Type == "Decimal" ||
+              data[i].Type == "Int32"
+            ) {
+              //璁$畻鍒�
+              col.push({
+                field: data[i].id,
+                title: data[i].name,
+                align: "center",
+                sort: true,
+                totalRow: true,
+                width: 120,
+              });
+            } else {
+              col.push({
+                field: data[i].id,
+                title: data[i].name,
+                align: "center",
+                sort: true,
+                width: 200,
+              });
+            }
+          }
+          option.cols = [col];
+          this.dataList = option;
+          option.data = data1.data;
+          var result = data1.data;
+          var temp = "";
+          for (var i = 0; i < result.length; i++) {
+            if (temp != result[i]["hmainid"]) {
+              temp = result[i]["hmainid"];
+            } else {
+              result[i].鏃ユ湡 = null;
+              result[i].鍗曟嵁鍙� = "";
+              /*result[i].鐘舵�� = "";*/
+              result[i].绾㈣摑鍗曟爣璁� = "";
+              result[i].hsupid = "";
+              result[i].瀹㈡埛 = "";
+              result[i].HEmpID = "";
+              result[i].涓氬姟鍛� = "";
+              result[i].hmanagerid = "";
+              result[i].涓荤 = "";
+              result[i].hsecmanagerid = "";
+              result[i].鍙戣揣浜� = "";
+              result[i].hkeeperid = "";
+              result[i].淇濈鍛� = "";
+              result[i].HDeptID = "";
+              result[i].閮ㄩ棬 = "";
+              result[i].閿�鍞柟寮� = "";
+            }
+          }
+          option.data = result;
+          this.DisPlay_HideColumn(
+            this.HModName,
+            sessionStorage["HUserName"],
+            option,
+            this.dataList
+          );
+        }
+      } catch (err) {
+        this.$modal.msgError(`鑾峰彇鏀舵枡閫氱煡鍗曢敊璇�: ${err}`);
+      }
+    },
+    DisPlay_HideColumn(HModName, user, option, dataOption) {
+      this.totalNameList = [];
+      axios
+        .get(this.baseURL + "/Xt_grdAlignment_WMES/grdAlignmentWMESList", {
+          params: {
+            HModName: HModName,
+            user: user,
+          },
+        })
+        .then((res) => {
+          let data1 = res.data;
+          if (data1.data.length != 0) {
+            var dataCol = []; //鏁版嵁搴撴煡璇㈠嚭鐨勫垪鏁版嵁
+            var newCols = [[]]; //瀵瑰簲鏁版嵁搴撳垪椤哄簭col
+            newCols[0].push(option.cols[0][0]); //鏀惧叆绗竴涓猚heckbox
+            dataCol = data1.data[0].HGridString.split(",");
+            //鍒楄缃垪鏁颁笌椤甸潰鍒楁暟鏄惁涓�鑷�
+            if (dataCol.length == option.cols[0].length - 1) {
+              //閬嶅巻瀵绘壘鍒楄缃搴斿垪鎸夐『搴忔彃鍏�
+              for (var j = 0; j < option.cols[0].length - 1; j++) {
+                for (var i = 0; i < option.cols[0].length - 1; i++) {
+                  var dataCols = dataCol[j].split("|");
+                  //閫夋嫨涓巇atacols鐩稿簲鍒楄繘琛屼慨鏀�
+                  if (option.cols[0][i + 1]["field"] == dataCols[5]) {
+                    //闅愯棌鍒�
+                    if (dataCols[1] == 1) {
+                      option.cols[0][i + 1]["hide"] = true;
+                    }
+                    //璁剧疆鍒楀
+                    if (dataCols[3] > 0) {
+                      option.cols[0][i + 1]["width"] = dataCols[3];
+                    }
+                    //璁剧疆鍐呭瀛椾綋澶у皬
+                    if (data1.data[0].HFontSize != 0) {
+                      option.cols[0][i + 1]["style"] =
+                        "font-size:" + data1.data[0].HFontSize + "px;";
+                    } else {
+                      option.cols[0][i + 1]["style"] = "font-size:100%";
+                    }
+                    //鏄剧ず鍒�
+                    if (
+                      dataCols[1] == 0 &&
+                      this.titleData.indexOf(option.cols[0][i + 1]["title"]) == -1
+                    ) {
+                      option.cols[0][i + 1]["hide"] = false;
+                    }
+                    //缁熻鍒�
+                    if (dataCols[6] == 1) {
+                      option.cols[0][i + 1]["totalRow"] = true;
+                    } else {
+                      option.cols[0][i + 1]["totalRow"] = false;
+                    }
+                    //瀛椾綋鎵�鍦ㄤ綅缃�(宸� 灞呬腑 鍙�)
+                    switch (dataCols[2]) {
+                      case "L":
+                        option.cols[0][i + 1]["align"] = "left";
+                        break;
+                      case "M":
+                        option.cols[0][i + 1]["align"] = "center";
+                        break;
+                      case "R":
+                        option.cols[0][i + 1]["align"] = "right";
+                        break;
+                    }
+                    //璁剧疆琛ㄦ牸title灞炴�ф樉绀哄埆鍚�
+                    if (dataCols[4] != null && dataCols[4] != "") {
+                      option.cols[0][i + 1]["title"] = dataCols[4];
+                    }
+                    newCols[0].push(option.cols[0][i + 1]);
+                    break;
+                  }
+                }
+              }
+              //閬嶅巻寰幆鍚庡垽鏂搴斿垪鏁版槸鍚︿竴鑷�
+              if (dataCol.length == newCols[0].length - 1) {
+                option.cols = newCols;
+                //鍙栨秷鍐荤粨鍒�
+                for (var i = 1; i < option.cols[0].length - 1; i++) {
+                  if (option.cols[0][i + 1]["fixed"] != null) {
+                    option.cols[0][i + 1]["fixed"] = null;
+                  } else {
+                    break;
+                  }
+                }
+                //鍐荤粨鍒�
+                if (data1.data[0].HFixCols != 0) {
+                  for (var i = 0; i < data1.data[0].HFixCols; i++) {
+                    if (
+                      dataOption.cols[0].indexOf(option.cols[0][i + 1]["title"]) != -1
+                    ) {
+                      data1.data[0].HFixCols += 1;
+                    }
+
+                    option.cols[0][i + 1]["fixed"] = "left";
+                  }
+                }
+                //璁剧疆鍒楁帓搴�
+                for (var i = 1; i < option.cols[0].length; i++) {
+                  if (data1.data[0].HSortFlag == "鏄�") {
+                    option.cols[0][i]["sort"] = true;
+                  } else {
+                    option.cols[0][i]["sort"] = false;
+                  }
+                }
+              }
+            }
+            this.btList = option.cols[0];
+            this.btList.map((item) => {
+              if (!item.hide) {
+                this.totalNameList.push(item);
+              }
+            });
+            if (data1.data[0].HPageSize == 0) {
+              this.pageSize = 50;
+            } else {
+              this.pageSize = data1.data[0].HPageSize;
+            }
+            this.tableData = option.data;
+            this.tableShow = true;
+            this.loading = false;
+          } else {
+            this.btList = dataOption.cols[0];
+            this.btList.map((item) => {
+              if (!item.hide) {
+                this.totalNameList.push(item);
+              }
+            });
+            this.tableData = dataOption.data;
+            this.tableShow = true;
+            this.loading = false;
+          }
+        })
+        .catch((error) => {
+          this.$modal.msgError("鎺ュ彛璇锋眰澶辫触!");
+        });
+    },
+    renderHeader(h, { column, $index }) {
+      // 鏂板缓涓�涓� span
+      let span = document.createElement(span); // 璁剧疆琛ㄥご鍚嶇О
+      span.innerText = column.label;
+      //涓存椂鎻掑叆 document
+      document.body.appendChild(span); // 閲嶇偣:鑾峰彇 span 鏈�灏忓搴︼紝璁剧疆褰撳墠鍒楋紝娉ㄦ剰杩欓噷鍔犱簡 20锛屽瓧娈佃緝澶氭椂column.minWidth=span.getBoundingClientRect().width + 50.//绉婚櫎 document 涓复鏃剁殑 span
+      document.body.removeChild(span);
+      return h(span, column.label);
+    },
+    //鐐瑰嚮琛�
+    handleRowClick(row, column, event) {
+      this.lastSelectedRow = this.selectedRow; // 璁板綍涓婁竴娆¢�変腑鐨勮
+      this.selectedRow = row; // 璁板綍褰撳墠閫変腑鐨勮
+      this.lastSelectedRowIndex = this.tableData.indexOf(row);
+      this.$refs.tableData.toggleRowSelection(row);
+    },
+    //閫変腑琛岄珮浜牱寮�
+    rowStyle({ row, rowIndex }) {
+      if (this.ids.includes(row.hmainid)) {
+        return { background: "#ecf5ff" };
+      }
+    },
+    //鍙屽嚮琛�
+    handleDblclick(row, column, cell, event) {
+      this.currentOperationType = 3;
+      this.handleEdit(row, 3, -1);
+    },
+    // 澶氶�夋閫変腑鏁版嵁
+    handleSelectionChange(selection) {
+      // this.rowForm = {}
+      this.ids = selection.map((item) => item.hmainid);
+      this.single = selection.length != 1;
+      this.multiple = !selection.length;
+      if (!this.single) {
+        this.rowForm = selection[0];
+      }
+    },
+    //鎵撳紑渚ц竟鎼滅储寮圭獥
+    handleSearch() {
+      this.searchOpen = true;
+    },
+    /** 鎼滅储鎸夐挳鎿嶄綔 */
+    handleQuery() {
+      this.sWhere = "";
+      if (this.queryParams.ColName && this.queryParams.Comparator) {
+        var com = "";
+        switch (this.queryParams.Comparator) {
+          case "7":
+            com = "like'%" + this.queryParams.ColContent + "%'";
+            break;
+          case "8":
+            com = "like'%" + this.queryParams.ColContent + "'";
+            break;
+          case "9":
+            com = "like'" + this.queryParams.ColContent + "%'";
+            break;
+          case "10":
+            com = "not like'%" + this.queryParams.ColContent + "%'";
+            break;
+          default:
+            com =
+              "" + this.queryParams.Comparator + "'" + this.queryParams.ColContent + "'";
+            break;
+        }
+        this.sWhere += " and " + this.queryParams.ColName + " " + com;
+      }
+      if (this.queryParams.ColName1 && this.queryParams.Comparator1) {
+        var com1 = "";
+        switch (this.queryParams.Comparator1) {
+          case "7":
+            com1 = "like'%" + this.queryParams.ColContent1 + "%'";
+            break;
+          case "8":
+            com1 = "like'%" + this.queryParams.ColContent1 + "'";
+            break;
+          case "9":
+            com1 = "like'" + this.queryParams.ColContent1 + "%'";
+            break;
+          case "10":
+            com1 = "not like'%" + this.queryParams.ColContent1 + "%'";
+            break;
+          default:
+            com1 =
+              "" +
+              this.queryParams.Comparator1 +
+              "'" +
+              this.queryParams.ColContent1 +
+              "'";
+            break;
+        }
+        this.sWhere += " and " + this.queryParams.ColName1 + " " + com1;
+      }
+      if (this.queryParams.ColName2 && this.queryParams.Comparator2) {
+        var com2 = "";
+        switch (this.queryParams.Comparator2) {
+          case "7":
+            com2 = "like'%" + this.queryParams.ColContent2 + "%'";
+            break;
+          case "8":
+            com2 = "like'%" + this.queryParams.ColContent2 + "'";
+            break;
+          case "9":
+            com2 = "like'" + this.queryParams.ColContent2 + "%'";
+            break;
+          case "10":
+            com2 = "not like'%" + this.queryParams.ColContent2 + "%'";
+            break;
+          default:
+            com2 =
+              "" + this.queryParams.Comparator + "'" + this.queryParams.ColContent + "'";
+            break;
+        }
+        this.sWhere += " and " + this.queryParams.ColName2 + " " + com2;
+      }
+      if (this.queryParams.HBillNo) {
+        this.sWhere += " and 鍗曟嵁鍙� like '%" + this.queryParams.HBillNo + "%'";
+      }
+
+      // if (this.queryParams.HOrgID) {
+      //   this.sWhere += " and HOrgID = '" + this.queryParams.HOrgID + "'";
+      // }
+
+      this.sWhere += this.addSWhereByOpenType();
+      // this.sWhere += this.getOrgIDByUser();
+      this.searchOpen = false;
+      this.getList();
+    },
+    // 鍒ゆ柇鏄洿鎺ユ墦寮�椤甸潰杩樻槸鍏跺畠椤甸潰閫氳繃閫夋嫨鎸夐挳鎵撳紑锛屽苟鏄剧ず鐩稿簲鏁版嵁
+    addSWhereByOpenType() {
+      //鑾峰彇鍙傛暟
+      var sWhere = "";
+      //this.openPage鍒ゆ柇鏄惁鏈夊�硷紝鏈変唬琛ㄥ叾瀹冮〉闈㈤�氳繃閫夋嫨鎸夐挳鎵撳紑
+      if (this.openPage) {
+        sWhere += " and 绂佺敤鏍囪 != 'Y' and ISNULL(瀹℃牳浜�,'')  != ''";
+        return sWhere;
+      }
+      return sWhere;
+    },
+    //鏍规嵁鐢ㄦ埛鑾峰彇鐢ㄦ埛鍏宠仈缁勭粐鐨勮繃婊ゆ潯浠�
+    getOrgIDByUser() {
+      var res = "";
+      axios
+        .get(this.baseURL + "/Xt_User/getOrgIDListByUser", {
+          params: {
+            HModName: this.HModName,
+            user: sessionStorage["HUserName"],
+            HOrgID: this.zuzhiId,
+          },
+        })
+        .then((res) => {
+          let result = res.data;
+          if (result.count == 1) {
+            if (result.data[0].sWhere == "1") {
+              res = " and HUSEORGID = '" + this.zuzhiId + "'";
+            } else {
+              res = result.data[0].sWhere;
+            }
+          }
+        })
+        .catch((error) => {
+          res = " and 1 = 0";
+          this.$modal.msgError("鎺ュ彛璇锋眰澶辫触!");
+        });
+      return res;
+    },
+    /** 閲嶇疆鎸夐挳鎿嶄綔 */
+    resetQuery() {
+      this.dateRange = [];
+      this.sWhere = "";
+      Object.assign(this.Parameters, {
+        HBillNo: "",
+        HInitTimeCycle: 29,
+        HProjectNumber: "",
+        HCusID: null,
+        HMaterNumber: "",
+        HMaterName: "",
+        ColName1: "",
+        ColName2: "",
+        ColName: "",
+        Comparator1: "",
+        Comparator2: "",
+        Comparator: "",
+        ColContent1: "",
+        ColContent2: "",
+        ColContent: "",
+      });
+      this.riqiChange();
+      this.resetForm("queryForm");
+      this.getList();
+    },
+
+    //閫�鍑�
+    close() {
+      this.tableShow = true;
+      this.openEdit = false;
+      this.getList();
+    },
+    //鎵撳紑鏂板缁勪欢寮圭獥
+    handleAddEdit() {
+      this.currentOperationType = 1; // 鏃犳簮鍗曟柊澧�
+      this.currentLinterid = 0;
+      this.currentHSouceBillType = "";
+      this.currentCopyType = -1;
+      this.editDialogTitle = "鏂板鐢熶骇姹囨姤鍗�";
+      this.openEdit = true;
+    },
+    //鎵撳紑淇敼缁勪欢寮圭獥
+    handleEdit(row, currentOperationType, copyType) {
+      if (!row || !row.hmainid) {
+        this.$message.warning("璇烽�夋嫨瑕佹搷浣滅殑鏁版嵁");
+        return;
+      }
+      this.currentOperationType = currentOperationType;
+      this.currentLinterid = row.hmainid;
+      this.currentHSouceBillType = row.HSourceBillType || "";
+      this.currentCopyType = copyType;
+      
+      if (currentOperationType === 3) {
+        this.editDialogTitle = "缂栬緫鐢熶骇姹囨姤鍗�";
+      } else if (currentOperationType === 5) {
+        this.editDialogTitle = "澶嶅埗鐢熶骇姹囨姤鍗�";
+      } else if (currentOperationType === 2) {
+        this.editDialogTitle = "鏈夋簮鍗曟柊澧炵敓浜ф眹鎶ュ崟";
+      }
+      
+      this.openEdit = true;
+    },
+    // 鍏抽棴缂栬緫寮圭獥
+    handleEditClose() {
+      this.openEdit = false;
+      this.currentOperationType = 1;
+      this.currentLinterid = 0;
+      this.currentHSouceBillType = "";
+      this.currentCopyType = -1;
+    },
+     // 淇濆瓨鎴愬姛鍥炶皟
+    handleSaveSuccess() {
+      this.handleEditClose();
+      this.getList(); // 鍒锋柊鍒楄〃
+      this.$message.success("鎿嶄綔鎴愬姛");
+    },
+    /** 鍒犻櫎鎸夐挳鎿嶄綔 */
+    handleDelete() {
+      this.$modal
+        .confirm("纭瑕佸垹闄ゅ悧锛屽垹闄ゅ悗涓嶈兘鎭㈠")
+        .then(() => {
+          if (!this.rowForm.瀹℃牳浜�) {
+            axios
+              .get(this.baseURL + "Sc_ICMOReportBill/DeltetICMOReportBill", {
+                params: {
+                  HInter: this.rowForm.hmainid.toString(),
+                  user: sessionStorage["HUserName"],
+                },
+              })
+              .then((res) => {
+                if (res.data.count == 1) {
+                  this.handleQuery();
+                  this.$modal.msgSuccess("鍒犻櫎鎴愬姛");
+                } else {
+                  this.$modal.msgError("閿欒:" + result.code + result.Message);
+                }
+              })
+              .catch((error) => {
+                this.$modal.msgError("鎺ュ彛璇锋眰澶辫触!");
+              });
+          } else {
+            this.$modal.msgError("姝ゆ潯鏁版嵁涓嶆槸鍒涘缓鐘舵��,鏃犳硶鍒犻櫎!");
+          }
+        })
+        .catch(() => {});
+    },
+    // 鍙嶅鏍�/瀹℃牳鏁版嵁
+    set_CheckBill(num, form) {
+      var InterID = form.HItemID || form.HInterID || form.hmainid;
+      //閫昏緫瀹℃牳鏂规硶
+      axios
+        .get(this.baseURL + "/Sc_ICMOReportBill/AuditProcessReportList", {
+          params: {
+            HInterID: InterID,
+            IsAudit: num,
+            CurUserName: sessionStorage["HUserName"],
+          },
+        })
+        .then((res) => {
+          let result = res.data;
+          if (result.code == 1) {
+            this.$modal.msgSuccess("鎿嶄綔鎴愬姛");
+            this.getList();
+          } else {
+            this.$modal.msgError("閿欒:" + result.code + result.Message);
+          }
+        })
+        .catch((error) => {
+          this.$modal.msgError("鎺ュ彛璇锋眰澶辫触!");
+        });
+    },
+    // 鍏抽棴/鍙嶅叧闂暟鎹�
+    async set_CloseBill(num, form) {
+      let HInterID = form.HItemID || form.HInterID || form.hmainid;
+      try {
+        let res = await axios.get(
+          `${this.baseURL}/Sc_ICMOReportBill/CloseSc_ICMOReportBill`,
+          {
+            params: {
+              HInterID: HInterID,
+              Type: num,
+              user: sessionStorage["HUserName"],
+            },
+          }
+        );
+
+        let { data, Message, count } = res.data;
+
+        if (count == 1) {
+          this.handleQuery();
+        } else {
+          this.$modal.msgError(`${Message}`);
+        }
+      } catch (err) {
+        this.$modal.msgError(`鎺ュ彛璇锋眰澶辫触: ${err}`);
+      }
+    },
+    // 琛屽叧闂�/琛屽弽鍏抽棴鏁版嵁
+    async set_CloseRow(num, form) {
+      let HInterID = form.HItemID || form.HInterID || form.hmainid;
+      let HEntryID = form.HEntryID || form.hsubid;
+      try {
+        let res = await axios.get(
+          `${this.baseURL}/Cg_POInStockBill/CloseRowCg_POInStockBill`,
+          {
+            params: {
+              HInterID: HInterID,
+              HEntryID: HEntryID,
+              ISAudit: num,
+              CurUserName: sessionStorage["HUserName"],
+            },
+          }
+        );
+
+        let { data, Message, count } = res.data;
+
+        if (count == 1) {
+          this.handleQuery();
+        } else {
+          this.$modal.msgError(`${Message}`);
+        }
+      } catch (err) {
+        this.$modal.msgError(`鎺ュ彛璇锋眰澶辫触: ${err}`);
+      }
+    },
+    
+    // 鍙嶇鐢�/绂佺敤鏁版嵁
+    set_De_Stop(num, form) {
+      var InterID = form.HItemID || form.HInterID;
+      //閫昏緫瀹℃牳鏂规硶
+      axios
+        .get(this.baseURL + "/Gy_Employee/StopGy_Employee", {
+          params: {
+            HInterID: InterID,
+            IsStop: num,
+            CurUserName: sessionStorage["HUserName"],
+          },
+        })
+        .then((res) => {
+          let result = res.data;
+          if (result.code == 1) {
+            this.$modal.msgSuccess("鎿嶄綔鎴愬姛");
+            this.getList();
+          } else {
+            this.$modal.msgError("閿欒:" + result.code + result.Message);
+          }
+        })
+        .catch((error) => {
+          this.$modal.msgError("鎺ュ彛璇锋眰澶辫触!");
+        });
+    },
+    //瀵煎嚭
+    handleExport() {
+      const ws = this.$XLSX.utils.json_to_sheet(this.tyResList); // 灏嗘暟鎹浆鎹负宸ヤ綔琛�
+      const wb = this.$XLSX.utils.book_new(); // 鍒涘缓涓�涓柊鐨勫伐浣滅翱
+      this.$XLSX.utils.book_append_sheet(wb, ws, "Sheet1"); // 灏嗗伐浣滆〃娣诲姞鍒板伐浣滅翱涓紝骞跺懡鍚嶄负"Sheet1"
+      this.$XLSX.writeFile(wb, `gySource_${new Date().getTime()}.xlsx`); // 瀵煎嚭鏂囦欢
+    },
+    handleImport() {
+      this.uploadData = [];
+      this.upload.isUploading = false;
+      this.upload.title = "瀵煎叆";
+      this.upload.open = true;
+    },
+    // 鏂囦欢涓婁紶涓鐞�
+    handleFileUploadProgress(event, file, fileList) {
+      this.upload.isUploading = true;
+      this.uploadTableLoading = true;
+    },
+    // 鏂囦欢涓婁紶鎴愬姛澶勭悊
+    handleFileSuccess(res, file, fileList) {
+      // this.upload.open = false;
+      this.upload.isUploading = true;
+      this.$refs.upload.clearFiles();
+      if (res.code == 1) {
+        this.alluploadList = res.data;
+        this.uploadData = this.getPage(this.uploadPage, this.alluploadList);
+        this.uploadTotal = this.alluploadList.length;
+        this.uploadTableLoading = false;
+        // this.set_AddNew(res.data)
+      } else {
+        this.$alert(
+          "<div style='overflow: auto;overflow-x: hidden;max-height: 70vh;padding: 10px 20px 0;'>" +
+            res.Message +
+            "</div>",
+          "瀵煎叆缁撴灉",
+          { dangerouslyUseHTMLString: true }
+        );
+      }
+    },
+    // 鎻愪氦涓婁紶鏂囦欢
+    submitFileForm() {
+      this.$refs.upload.submit();
+    },
+    set_AddNew() {
+      var num = [];
+      for (var i = 0; i < this.uploadData.length; i++) {
+        if (this.uploadData[i] != "") {
+          num.push(this.uploadData[i]);
+        }
+      }
+      var sSubStr = JSON.stringify(num);
+      var sMainSub = sSubStr + "&鍜�" + sessionStorage["HUserName"];
+      axios({
+        method: "post",
+        url: this.baseURL + "/Gy_Source/Gy_Source_btnSave",
+        data: {
+          sMainSub: sMainSub,
+        },
+      })
+        .then((res) => {
+          this.$alert(
+            "<div style='overflow: auto;overflow-x: hidden;max-height: 70vh;padding: 10px 20px 0;'>" +
+              res.data.Message +
+              "</div>",
+            "瀵煎叆缁撴灉",
+            { dangerouslyUseHTMLString: true }
+          );
+          this.upload.open = false;
+          this.getList();
+        })
+        .catch((error) => {
+          this.$modal.msgError("鎺ュ彛璇锋眰澶辫触!");
+        });
+    },
+    uploadDataIndex({ row, rowIndex }) {
+      row.index = rowIndex + 1;
+    },
+    uploadDataDelete(row) {
+      this.$modal
+        .confirm("纭瑕佸垹闄ゅ悧锛屽垹闄ゅ悗涓嶈兘鎭㈠")
+        .then(() => {
+          const deleteList = [row.index];
+          const data = this.uploadData;
+          this.uploadData = data.filter((item) => {
+            return deleteList.indexOf(item.index) == -1;
+          });
+        })
+        .catch(() => {});
+    },
+    getPage(page, list) {
+      let sindex = (parseInt(page) - 1) * this.uploadPageSize;
+      let eindex = parseInt(page) * this.uploadPageSize;
+      let newList = list.slice(sindex, eindex);
+      console.log(newList);
+      return newList;
+    },
+    currentPage(val) {
+      this.uploadPage = val.page;
+      setTimeout(() => {
+        this.uploadData = this.getPage(this.uploadPage, this.alluploadList);
+      }, 100);
+    },
+  },
+};
+</script>
+<style>
+.xsckdBox .el-date-editor.el-input {
+  width: 100%;
+}
+
+.form-item-inline > .el-form-item__content {
+  display: flex;
+  flex-direction: row;
+  width: 60%;
+}
+</style>
diff --git a/src/views/component/HSourceReportHtml/index.vue b/src/views/component/HSourceReportHtml/index.vue
index b65379e..ea92640 100644
--- a/src/views/component/HSourceReportHtml/index.vue
+++ b/src/views/component/HSourceReportHtml/index.vue
@@ -2,13 +2,19 @@
     <div style="padding: 10px; position: relative;">
         <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" label-width="78px" class="searchBox">
             <el-form-item label="鍗曟嵁鍙�" prop="HBillNo" style="margin-left: 100px">
-                <el-input v-model="queryParams.HBillNo" placeholder="璇疯緭鍏ュ崟鎹彿" @keyup.enter.native="handleQuery" />
+                <el-input v-model="queryParams.HBillNo" placeholder="璇疯緭鍏ュ崟鎹彿" style="width: 150px" />
             </el-form-item>
-            <el-form-item label="閮ㄩ棬">
+            <el-form-item label="閮ㄩ棬" label-width="48px">
                 <el-select v-model="queryParams.HDeptName" placeholder="璇烽�夋嫨" style="width: 150px">
                     <el-option v-for="(item, index) in HDeptList" :key="index" :label="item.HName"
-                        :value="item.HName" />
+                        :value="item.HItemID" />
                 </el-select>
+            </el-form-item>
+            <el-form-item label="娴佽浆鍗″彿" prop="HProcExchBillNo" v-if="HSouceBillType == '鐢熶骇鍏ュ簱鍗�'">
+                <el-input v-model="queryParams.HProcExchBillNo" placeholder="璇疯緭鍏ユ祦杞崱鍙�" style="width: 150px" />
+            </el-form-item>
+            <el-form-item label="鐗╂枡缂栫爜" prop="PartNumber">
+                <el-input v-model="queryParams.PartNumber" placeholder="璇疯緭鍏ョ墿鏂欑紪鐮�" style="width: 150px" />
             </el-form-item>
             <el-form-item label-width="78px">
                 <el-button type="primary" icon="el-icon-search" @click="handleQuery">
@@ -18,21 +24,33 @@
             <el-collapse v-model="activeSeach">
                 <el-collapse-item title="鏇村" name="1">
                     <el-card class="box-card">
-                        <el-form-item label="閮ㄩ棬鍚嶇О" prop="HDepartName">
-                            <el-input v-model="queryParams.HDepartName" placeholder="璇疯緭鍏ラ儴闂ㄥ悕绉�"
-                                @keyup.enter.native="HDepartName" />
+                        <el-form-item label="鐗╂枡鍚嶇О" prop="PartName">
+                            <el-input v-model="queryParams.PartName" placeholder="璇疯緭鍏ョ墿鏂欏悕绉�" />
                         </el-form-item>
-                        <el-form-item label="鐗╂枡浠g爜" prop="HMaterNumber">
-                            <el-input v-model="queryParams.HMaterNumber" placeholder="璇疯緭鍏ョ墿鏂欎唬鐮�"
-                                @keyup.enter.native="handleQuery" />
+                        <el-form-item label="鐘舵��" prop="HBillStatus">
+                            <el-select v-model="queryParams.HBillStatus" placeholder="璇烽�夋嫨">
+                                <el-option label="璁″垝" value="璁″垝" />
+                                <el-option label="璁″垝纭" value="璁″垝纭" />
+                                <el-option label="涓嬭揪" value="涓嬭揪" />
+                                <el-option label="寮�宸�" value="寮�宸�" />
+                                <el-option label="瀹屽伐" value="瀹屽伐" />
+                                <el-option label="缁撴" value="缁撴" />
+                                <el-option label="缁撴" value="缁撶畻" />
+                            </el-select>
                         </el-form-item>
-                        <el-form-item label="鐗╂枡鍚嶇О" prop="HMaterName">
-                            <el-input v-model="queryParams.HMaterName" placeholder="璇疯緭鍏ョ墿鏂欏悕绉�"
-                                @keyup.enter.native="handleQuery" />
+                        <el-form-item label="棰嗘枡鐘舵��" prop="HSPickMtrlStatus" v-if="HSouceBillType == '鐢熶骇璁㈠崟'">
+                            <el-select v-model="queryParams.HSPickMtrlStatus" placeholder="璇烽�夋嫨">
+                                <el-option label="鏈鏂�" value="鏈鏂�" />
+                                <el-option label="閮ㄥ垎棰嗘枡" value="閮ㄥ垎棰嗘枡" />
+                                <el-option label="鍏ㄩ儴棰嗘枡" value="鍏ㄩ儴棰嗘枡" />
+                                <el-option label="瓒呴棰嗘枡" value="瓒呴棰嗘枡" />
+                            </el-select>
                         </el-form-item>
-                        <el-form-item label="浠撳簱" prop="HWHID">
-                            <el-input v-model="queryParams.HWHID" placeholder="璇疯緭鍏ヤ粨搴�"
-                                @keyup.enter.native="handleQuery" />
+                        <el-form-item label="鏄惁鎺掍骇" prop="HIsScheduling" v-if="HSouceBillType == '鐢熶骇璁㈠崟'">
+                            <el-select v-model="queryParams.HIsScheduling" placeholder="璇烽�夋嫨">
+                                <el-option label="宸叉帓浜�" value="宸叉帓浜�" />
+                                <el-option label="鏈帓浜�" value="鏈帓浜�" />
+                            </el-select>
                         </el-form-item>
                         <div slot="header" class="clearfix"><span>杩囨护</span></div>
                         <div>
@@ -54,8 +72,7 @@
                                             </el-select>
                                         </el-col>
                                         <el-col :span="11">
-                                            <el-input v-model="queryParams.ColContent1" placeholder="璇疯緭鍏�" clearable
-                                                @keyup.enter.native="handleQuery" />
+                                            <el-input v-model="queryParams.ColContent1" placeholder="璇疯緭鍏�" clearable />
                                         </el-col>
                                     </el-row>
                                 </el-form-item>
@@ -166,10 +183,12 @@
             queryParams: {
                 HBillNo: "",
                 HDeptName: '',
-                HDepartName: "",
-                HWHID: null,
-                HMaterNumber: "",
-                HMaterName: "",
+                HProcExchBillNo: "",
+                PartNumber: "",
+                PartName: "",
+                HBillStatus: '寮�宸�',
+                HSPickMtrlStatus: "",
+                HIsScheduling: "",
                 ColName1: "",
                 ColName2: "",
                 ColName: "",
@@ -266,6 +285,17 @@
             if (this.pageSize == 0) {
                 this.pageSize = 50;
             }
+            if (this.queryParams.HBillStatus &&this.HSouceBillType == '鐢熶骇璁㈠崟') {
+                this.sWhere += " and 鐘舵�� = '" + this.queryParams.HBillStatus + "'";
+            }
+            if (this.HSouceBillType == '鐢熶骇璁㈠崟') {
+                this.queryParams.HIsScheduling = '宸叉帓浜�'
+                if (sessionStorage["Organization"] == "涔濊彵鐢垫満") {
+                    if (this.queryParams.HIsScheduling) {
+                        this.sWhere += this.queryParams.HIsScheduling == "鏈帓浜�" ? "and 鏄惁鎺掍骇 = ''" : " and 鏄惁鎺掍骇 = '" + this.queryParams.HIsScheduling + "'"
+                    }
+                }
+            }
             // 鍒楄〃
             axios.get(this.baseURL + "/Sc_BarCode/ReportFromBillList", {
                 params: {
@@ -293,6 +323,10 @@
                             name: data1.list[key].ColmCols,
                             Type: data1.list[key].ColmType,
                         }); //浠庢瘡涓璞′腑鎻愬彇鏁版嵁
+                        var patrn = new RegExp(/^h/i);
+                        if (patrn.test(data1.list[key].ColmCols)) {
+                            this.titleData[key] = data1.list[key].ColmCols;
+                        }
                     }
                     //鍦ㄥ垪琛ㄥ乏杈规坊鍔犲嬀閫夋
                     col.push({ type: "checkbox", fixed: "left", totalRowText: "鍚堣" });
@@ -335,45 +369,45 @@
                     option.data = data1.data;
                     var result = data1.data;
                     option.data = result;
-                     switch (this.HSouceBillType) {
-                    case '鐢熶骇璁㈠崟':
-                        this.HModName = "Sc_ICMOBill_3710";
-                        break;
-                    case '鐢熶骇姹囨姤鍗�':
-                        this.HModName = "Sc_ICMOReportBill_3711";
-                        break;
-                    case '閲囪喘璁㈠崟':
-                        this.HModName = "Cg_POOrderBill_1102";
-                        break;
-                    case '鏀舵枡閫氱煡鍗�':
-                        this.HModName = "Cg_POInStockBill_1103";
-                        break;
-                    case '濮斿璁㈠崟':
-                        this.HModName = "WW_EntrustOrderBill_1601";
-                        break;
-                    case '鐢熶骇鍏ュ簱鍗�':
-                        $("#HProcExchBillNoHidden").show();
-                        this.HModName = "ProductInBill_1202";
-                        break;
-                    case '閲囪喘鍏ュ簱鍗�':
-                        this.HModName = "POStockInBill_1201";
-                        break;
-                    case '閿�鍞��璐�':
-                        this.HModName = "SellOutBackBill_1247";
-                        break;
-                    case '鐢熶骇閫�鏂�':
-                        this.HModName = "MateOutBackBill_1244";
-                        break;
-                    case '宸ュ簭娴佽浆鍗�':
-                        this.HModName = "ProcessExchangeBill_3772";
-                        break;
-                    case '閿�鍞嚭搴撳崟':
-                        this.HModName = "SellOutBill_1205";
-                        break;
-                    case '棰嗘枡鍑哄簱鍗�':
-                        this.HModName = "MateOutBill_1204";
-                        break;
-                }
+                    switch (this.HSouceBillType) {
+                        case '鐢熶骇璁㈠崟':
+                            this.HModName = "Sc_ICMOBill_3710";
+                            break;
+                        case '鐢熶骇姹囨姤鍗�':
+                            this.HModName = "Sc_ICMOReportBill_3711";
+                            break;
+                        case '閲囪喘璁㈠崟':
+                            this.HModName = "Cg_POOrderBill_1102";
+                            break;
+                        case '鏀舵枡閫氱煡鍗�':
+                            this.HModName = "Cg_POInStockBill_1103";
+                            break;
+                        case '濮斿璁㈠崟':
+                            this.HModName = "WW_EntrustOrderBill_1601";
+                            break;
+                        case '鐢熶骇鍏ュ簱鍗�':
+                            $("#HProcExchBillNoHidden").show();
+                            this.HModName = "ProductInBill_1202";
+                            break;
+                        case '閲囪喘鍏ュ簱鍗�':
+                            this.HModName = "POStockInBill_1201";
+                            break;
+                        case '閿�鍞��璐�':
+                            this.HModName = "SellOutBackBill_1247";
+                            break;
+                        case '鐢熶骇閫�鏂�':
+                            this.HModName = "MateOutBackBill_1244";
+                            break;
+                        case '宸ュ簭娴佽浆鍗�':
+                            this.HModName = "ProcessExchangeBill_3772";
+                            break;
+                        case '閿�鍞嚭搴撳崟':
+                            this.HModName = "SellOutBill_1205";
+                            break;
+                        case '棰嗘枡鍑哄簱鍗�':
+                            this.HModName = "MateOutBill_1204";
+                            break;
+                    }
                     this.DisPlay_HideColumn(this.HModName, sessionStorage["HUserName"], option, this.dataList);
                 }
             }).catch((error) => {
@@ -640,17 +674,28 @@
             if (this.queryParams.HBillNo) {
                 this.sWhere += " and 鍗曟嵁鍙� like '%" + this.queryParams.HBillNo + "%'";
             }
-            if (this.queryParams.HDepartName) {
-                this.sWhere += " and 閮ㄩ棬鍚嶇О like '%" + this.queryParams.HDepartName + "%'";
+            if (this.queryParams.HProcExchBillNo &&this.HSouceBillType == '鐢熶骇鍏ュ簱鍗�') {
+                this.sWhere += " and 娴佽浆鍗″彿 like '%" + this.queryParams.HProcExchBillNo + "%'";
             }
-            if (this.queryParams.HWHID) {
-                this.sWhere += " and 浠撳簱 like '%" + this.queryParams.HWHID + "%'";
+            if (this.queryParams.HDeptName) {
+                this.sWhere += " and HDeptID = '" + this.queryParams.HDeptName + "'";
             }
-            if (this.queryParams.HMaterNumber) {
-                this.sWhere += " and 鐗╂枡浠g爜 like '%" + this.queryParams.HMaterNumber + "%'";
+            if (this.queryParams.PartNumber) {
+                this.sWhere += " and 鐗╂枡浠g爜 like '%" + this.queryParams.PartNumber + "%'";
             }
-            if (this.queryParams.HMaterName) {
-                this.sWhere += " and 鐗╂枡鍚嶇О like '%" + this.queryParams.HMaterName + "%'";
+            if (this.queryParams.PartName) {
+                this.sWhere += " and 鐗╂枡鍚嶇О like '%" + this.queryParams.PartName + "%'";
+            }
+            if (this.queryParams.HBillStatus &&this.HSouceBillType == '鐢熶骇璁㈠崟') {
+                this.sWhere += " and 鐘舵�� like '%" + this.queryParams.HBillStatus + "%'";
+            }
+            if (sessionStorage["Organization"] == "涔濊彵鐢垫満" && this.HSouceBillType == '鐢熶骇璁㈠崟') {
+                if (this.queryParams.HIsScheduling) {
+                    this.sWhere += " and 棰嗘枡鐘舵�� like '%" + this.queryParams.HIsScheduling + "%'";
+                }
+                if (this.queryParams.HIsScheduling) {
+                    this.sWhere += this.queryParams.HIsScheduling == "鏈帓浜�" ? "and 鏄惁鎺掍骇 = ''" : " and 鏄惁鎺掍骇 = '" + this.queryParams.HIsScheduling + "'"
+                }
             }
             this.getList();
         },
diff --git a/src/views/component/printList/hBarPlanPrint copy.vue b/src/views/component/printList/hBarPlanPrint copy.vue
deleted file mode 100644
index cdd16ff..0000000
--- a/src/views/component/printList/hBarPlanPrint copy.vue
+++ /dev/null
@@ -1,72 +0,0 @@
-<template>
-    <div>
-        <div id="report_holder"> </div>
-    </div>
-</template>
-<script>
-import { webapp_ws_ajax_run, webapp_urlprotocol_startup, urlAddRandomNo } from "@/utils/grwebapp";
-import axios from 'axios'
-
-export default {
-    name: 'HBarPlanPrint',
-    data() {
-        return {
-            handleMessage: this.$route.query,
-            baseURL: 'http://47.96.97.237/API',
-            //瀹為檯搴旂敤涓紝data搴旇涓虹▼搴忎腑閫氳繃鍚勭閫斿緞鑾峰彇鍒扮殑鏁版嵁锛屾渶鍚庤灏嗘暟鎹浆鎹负鎶ヨ〃闇�瑕佺殑XML鎴朖SON鏍煎紡鐨勫瓧绗︿覆鏁版嵁
-            json_data: {
-                recordset: []
-            },
-
-        }
-    },
-    mounted() {
-        this.ws_both_from_object()
-
-    },
-    // created() {
-    //     this.ws_both_from_object()
-    // },
-    methods: {
-        // 鑾峰彇鍙傛暟_浼犻�掔殑JSON鏍煎紡鍙傛暟
-        getUrlVars_JSON() {
-            var datajson;
-            var str = this.propsData; //鑾峰彇閾炬帴涓紶閫掔殑鍙傛暟
-            var arr = str.substring(str.lastIndexOf("=") + 1);
-            datajson = JSON.parse(decodeURI(arr));
-            return datajson;
-        },
-        ws_both_from_object() {
-            let OpenTmp=decodeURIComponent(this.$route.query.OpenTmp)
-            let apIUrl=''
-            if(this.$route.query.Type=='Kf_SellOutBillList'){
-                apIUrl='/Kf_SellOutBill/cx'
-            }else if(this.$route.query.Type=='HGy_BarCodeBill'){
-                
-            }
-            axios.get(this.baseURL + apIUrl, {
-                params: {
-                    "HInterID": this.handleMessage.linterid
-                    // , "HSubID": data[i].hsubid
-                },
-            }).then(response => {
-                let result = response.data
-                this.json_data.recordset = result.data
-                //鍙傛暟鍏蜂綋璇存槑璇峰弬鑰冨府鍔╂枃妗d腑鐨勨�淲EB鎶ヨ〃(B/S鎶ヨ〃)->WEB鎶ヨ〃瀹㈡埛绔�->鍚姩鍙傛暟璇存槑鈥濋儴鍒�
-                var args = {
-                    type: "preview", //璁剧疆涓嶅悓鐨勫睘鎬у彲浠ユ墽琛屼笉鍚岀殑浠诲姟锛屽锛歱review print pdf xls csv txt rtf img grd
-                    // report: this.json_report, //report: JSON.stringify(json_report),
-                    report: urlAddRandomNo('./static/grf/'+OpenTmp+'.grf'),
-                    data: this.json_data //data: JSON.stringify(json_data)
-                };
-                webapp_ws_ajax_run(args);
-                // var reportViewer = rubylong.grhtml5.insertReportViewer("report_holder", "./static/grf/閿�鍞嚭搴撳崟.grf", this.json_data);
-                // reportViewer.start();
-            }).catch(error => {
-                this.$modal.msgError("鎺ュ彛璇锋眰澶辫触!");
-            });
-        }
-    },
-}
-
-</script>
\ No newline at end of file
diff --git a/src/views/component/printList/hBarPlanPrint.vue b/src/views/component/printList/hBarPlanPrint.vue
index a50b1a4..d16ae41 100644
--- a/src/views/component/printList/hBarPlanPrint.vue
+++ b/src/views/component/printList/hBarPlanPrint.vue
@@ -38,58 +38,39 @@
         },
         ws_both_from_object() {
             let OpenTmp = decodeURIComponent(this.$route.query.OpenTmp)
-            let apIUrl = ''
+            let sql = ''
             if (this.$route.query.Type == 'Kf_SellOutBillList') {
-                apIUrl = '/Kf_SellOutBill/cx'
-                axios.get(this.baseURL + apIUrl, {
-                    params: {
-                        "HInterID": this.handleMessage.linterid
-                        // , "HSubID": data[i].hsubid
-                    },
-                }).then(response => {
-                    let result = response.data
-                    this.json_data.recordset = result.data
-                    //鍙傛暟鍏蜂綋璇存槑璇峰弬鑰冨府鍔╂枃妗d腑鐨勨�淲EB鎶ヨ〃(B/S鎶ヨ〃)->WEB鎶ヨ〃瀹㈡埛绔�->鍚姩鍙傛暟璇存槑鈥濋儴鍒�
-                    var args = {
-                        type: "preview", //璁剧疆涓嶅悓鐨勫睘鎬у彲浠ユ墽琛屼笉鍚岀殑浠诲姟锛屽锛歱review print pdf xls csv txt rtf img grd
-                        // report: this.json_report, //report: JSON.stringify(json_report),
-                        report: urlAddRandomNo('./static/grf/' + OpenTmp + '.grf'),
-                        data: this.json_data //data: JSON.stringify(json_data)
-                    };
-                    webapp_ws_ajax_run(args);
-                    // var reportViewer = rubylong.grhtml5.insertReportViewer("report_holder", "./static/grf/閿�鍞嚭搴撳崟.grf", this.json_data);
-                    // reportViewer.start();
-                }).catch(error => {
-                    this.$modal.msgError("鎺ュ彛璇锋眰澶辫触!");
-                });
+                sql = "exec h_p_Kf_SellOutBillList_PrintSellOutBill " + this.handleMessage.linterid.toString()
             } else if (this.$route.query.Type == 'HGy_BarCodeBill') {
-                apIUrl = '/CommonModel/searchMethod'
-                axios.get(this.baseURL + apIUrl, {
-                    params: {
-                        "sql": "select * from h_v_IF_BarCodeBillList where hmainid in(" + this.handleMessage.linterid.toString() + ") order by hmainid desc",
-                        "user": sessionStorage["HUserName"],
-                        "ModRightNameCheck": ''
-                        // , "HSubID": data[i].hsubid
-                    },
-                }).then(response => {
-                    let result = response.data
-                    this.json_data.recordset = result.data
-                    //鍙傛暟鍏蜂綋璇存槑璇峰弬鑰冨府鍔╂枃妗d腑鐨勨�淲EB鎶ヨ〃(B/S鎶ヨ〃)->WEB鎶ヨ〃瀹㈡埛绔�->鍚姩鍙傛暟璇存槑鈥濋儴鍒�
-                    var args = {
-                        type: "preview", //璁剧疆涓嶅悓鐨勫睘鎬у彲浠ユ墽琛屼笉鍚岀殑浠诲姟锛屽锛歱review print pdf xls csv txt rtf img grd
-                        // report: this.json_report, //report: JSON.stringify(json_report),
-                        report: urlAddRandomNo('./static/grf/' + OpenTmp + '.grf'),
-                        data: this.json_data //data: JSON.stringify(json_data)
-                    };
-                    console.log(args,this.json_data)
-                    webapp_ws_ajax_run(args);
-                    // var reportViewer = rubylong.grhtml5.insertReportViewer("report_holder", "./static/grf/閿�鍞嚭搴撳崟.grf", this.json_data);
-                    // reportViewer.start();
-                }).catch(error => {
-                    console.log(22222, error)
-                    this.$modal.msgError("鎺ュ彛璇锋眰澶辫触!");
-                });
+                sql = "select * from h_v_IF_BarCodeBillList where hmainid in(" + this.handleMessage.linterid.toString() + ") order by hmainid desc"
+            }else if (this.$route.query.Type == 'HPOInStockBill') {
+                sql = "select * from h_v_Sc_PrintMouldProdOutBillList where hmainid=" + this.handleMessage.linterid.toString()+ " order by hmainid"
             }
+            axios.get(this.baseURL + '/CommonModel/searchMethod', {
+                params: {
+                    "sql": sql,
+                    "user": sessionStorage["HUserName"],
+                    "ModRightNameCheck": ''
+                    // , "HSubID": data[i].hsubid
+                },
+            }).then(response => {
+                let result = response.data
+                this.json_data.recordset = result.data
+                //鍙傛暟鍏蜂綋璇存槑璇峰弬鑰冨府鍔╂枃妗d腑鐨勨�淲EB鎶ヨ〃(B/S鎶ヨ〃)->WEB鎶ヨ〃瀹㈡埛绔�->鍚姩鍙傛暟璇存槑鈥濋儴鍒�
+                var args = {
+                    type: "preview", //璁剧疆涓嶅悓鐨勫睘鎬у彲浠ユ墽琛屼笉鍚岀殑浠诲姟锛屽锛歱review print pdf xls csv txt rtf img grd
+                    // report: this.json_report, //report: JSON.stringify(json_report),
+                    report: urlAddRandomNo('./static/grf/' + OpenTmp + '.grf'),
+                    data: this.json_data //data: JSON.stringify(json_data)
+                };
+                console.log(args, this.json_data)
+                webapp_ws_ajax_run(args);
+                // var reportViewer = rubylong.grhtml5.insertReportViewer("report_holder", "./static/grf/閿�鍞嚭搴撳崟.grf", this.json_data);
+                // reportViewer.start();
+            }).catch(error => {
+                console.log(22222, error)
+                this.$modal.msgError("鎺ュ彛璇锋眰澶辫触!");
+            });
 
         }
     },
diff --git a/src/views/component/printList/index copy.vue b/src/views/component/printList/index copy.vue
deleted file mode 100644
index 185cdf5..0000000
--- a/src/views/component/printList/index copy.vue
+++ /dev/null
@@ -1,211 +0,0 @@
-<template>
-    <div style="margin-top: -40px;">
-        <el-form ref="formData" :model="formData" label-width="100px">
-            <div style="padding: 10px; ">
-                <el-button type="primary" size="small" @click="printClick">鎶ヨ〃鎵撳嵃</el-button>
-            </div>
-            <el-table v-loading="loading" :data="printdata" ref="printTable" max-height="540"
-                @selection-change="handleSelectionChange" :row-class-name="rowSysIndex" border>
-                <el-table-column type="selection" width="55" align="center" />
-                <el-table-column align="center" label="妯″潡浠g爜" prop="HNumber" />
-                <el-table-column align="center" label="妯℃澘鍚嶇О" prop="妯℃澘鍚嶇О" />
-            </el-table>
-        </el-form>
-        <el-dialog title="鎶ヨ〃鎵撳嵃" :visible.sync="openPrint" width="800px" append-to-body>
-            <div ref="print" id="printId">111</div>
-            <el-button type="primary" size="small" @click="printClick">鎵撳嵃</el-button>
-        </el-dialog>
-    </div>
-</template>
-
-<script>
-import axios from 'axios'
-
-export default {
-    name: 'PrintList',
-    props: {
-        linterid: { type: Number, },
-        MyMsg: { type: Number, },
-        Type: { type: String, },
-        HModName: { type: String, }
-    },
-    data() {
-        return {
-            openPrint: false,
-            selRowData: [],
-            baseURL: 'http://47.96.97.237/API',
-            user: 'admin',//鐧诲綍鐢ㄦ埛鍚�
-            // 琛ㄦ牸鏁版嵁
-            printdata: [],
-            // 閫変腑鏁扮粍index
-            selIndex: [],
-            // 闈炲崟涓鐢�
-            single: true,
-            // 闈炲涓鐢�
-            multiple: true,
-            // 閬僵灞�
-            loading: true,
-            formData: {
-                HFixCols: '',
-                HFontSize: '',
-                HColumnWidth: '',
-                HPageSize: '',
-                HSortFlag: '',
-                HSelTotal: ''
-            },
-            colTitleName: '',
-            tableIns: null,
-            option: {},
-            tableData: []
-        }
-    },
-    created() {
-        this.getDisplay()
-    },
-    methods: {
-        handlePrint() {
-            this.openPrint = true
-        },
-        printClick() {
-            const routeUrl = this.$router.resolve({ path: '/hBarPlanPrint',query:{linterid:this.linterid.toString(),Type:this.Type.toString(),OpenTmp: encodeURIComponent(this.rowForm.妯℃澘鍚嶇О)} });
-            window.open(routeUrl.href, '_blank');
-        },
-        getDisplay() {
-            this.loading = true
-            axios.get(this.baseURL + '/Open_PrintTem/GetOpenTmpList_Json', {
-                params: { "HNumber": this.Type },
-            }).then(response => {
-                 console.log(response)
-                var result = response.data
-                this.printdata = result.data
-                this.loading = false
-            }).catch(error => {
-                console.log(error)
-                this.$modal.msgError("鎺ュ彛璇锋眰澶辫触!");
-            });
-        },
-        //涓婁竴琛�
-        handleMoveRowUp(row) {
-            if (this.selRowData.length != 1) {
-                this.$modal.msgError("璇烽�夋嫨涓�琛屾暟鎹紒")
-            } else {
-                let num = row.index - 1
-                if (num == 0) {
-                    this.$modal.msgError("绗竴琛屾暟鎹棤娉曚笂绉�");
-                } else { // 纭繚涓嶆槸绗竴琛�
-                    const record = this.rowTitleData.splice(num, 1)[0];
-                    this.rowTitleData.splice(num - 1, 0, record);
-                }
-            }
-            console.log(this.rowTitleData)
-        },
-        //涓嬩竴琛�
-        handleMoveRowDown(row) {
-            if (this.selRowData.length != 1) {
-                this.$modal.msgError("璇烽�夋嫨涓�琛屾暟鎹�")
-            } else {
-                let num = row.index - 1
-                if (num == this.rowTitleData.length - 1) {
-                    this.$modal.msgError("鏈�鍚庝竴琛屾暟鎹棤娉曚笅绉�");
-                } else { // 纭繚涓嶆槸绗竴琛�
-                    const record = this.rowTitleData.splice(num, 1)[0];
-                    this.rowTitleData.splice(num + 1, 0, record);
-                }
-            }
-        },
-        // 澶氶�夋閫変腑鏁版嵁
-        handleSelectionChange(selection) {
-            //鍗曢��
-            if (selection.length > 1) {
-                const del_row = selection.shift()
-                this.$refs.printTable.toggleRowSelection(del_row, false) //璁剧疆杩欎竴琛屽彇娑堥�変腑
-            }
-            this.rowForm = {}
-            this.ids = selection.map(item => item.HItemID)
-            this.rowForm = selection[0]
-        },
-        //琛ㄦ牸琛岀储寮�
-        rowSysIndex({ row, rowIndex }) {
-            row.index = rowIndex + 1;
-        },
-        //鍏ㄩ��
-        handleCheckAll() {
-            for (var i = 0; i < this.rowTitleData.length; i++) {
-                this.rowTitleData[i].IsHide = true;
-            }
-        },
-        //鍏ㄦ竻
-        handleClearBill() {
-            for (var i = 0; i < this.rowTitleData.length; i++) {
-                this.rowTitleData[i].IsHide = false;
-            }
-        },
-        //鍏ㄥ眳涓�
-        handleCenter() {
-            for (var i = 0; i < this.rowTitleData.length; i++) {
-                this.rowTitleData[i].Alignment = 'M';
-            }
-        },
-        //淇濆瓨
-        handleSave() {
-            const cache = this.rowTitleData
-            const num = cache.filter(item => item !== "").map((item, i) => {
-                item.LAY_TABLE_INDEX = i
-                return item
-            })
-            // 楠岃瘉鍒嗛〉鍙傛暟
-            const HPageSize = this.formData.HPageSize
-            if (HPageSize && !/^[0-9]+$/.test(HPageSize)) {
-                this.$modal.msgError("榛樿鍒嗛〉涓嶄负姝f暣鏁�!")
-                return
-            }
-            const sMainStr = JSON.stringify(this.formData)
-            const sSubStr = JSON.stringify(num)
-            const OperationType = "1"
-            const sMainSub = `${sMainStr};${sSubStr};${this.HModName};${OperationType};${this.user}`
-            axios({
-                method: 'post',
-                url: this.baseURL + "/Xt_grdAlignment_WMES/AddgrdAlignmentWMES",
-                data: {
-                    'sMainSub': sMainSub
-                },
-            }).then(response => {
-                console.log(1, response)
-                if (response.data.count == 1) {
-                    this.$modal.msgSuccess("鎻愪氦鎴愬姛")
-                } else {
-                    this.$modal.msgError(response.data.Message);
-                }
-            }).catch(error => {
-                console.log(2, error)
-
-                this.$modal.msgError("鎺ュ彛璇锋眰澶辫触!");
-            });
-        },
-        //閫�鍑�
-        handleExit() {
-            this.$emit('rowEditClose', false)
-        },
-        // 鍒犻櫎
-        handleDel() {
-            this.$modal.confirm('纭瑕佸垹闄ゅ悧锛屽垹闄ゅ悗涓嶈兘鎭㈠').then(() => {
-                console.log(this.rowForm.hmainid.toString())
-                axios.get(this.baseURL + "/Xt_grdAlignment_WMES/DelgrdAlignmentWMES", {
-                    params: { "HModName": this.HModName, "user": this.user }
-                }).then(response => {
-                    let result = response.data
-                    if (response.data.count == 1) {
-                        this.getList()
-                        this.$modal.msgSuccess(result.Message)
-                    } else {
-                        this.$modal.msgError("閿欒:" + result.code + result.Message);
-                    }
-                }).catch(error => {
-                    console.log(error)
-                    this.$modal.msgError("鎺ュ彛璇锋眰澶辫触!");
-                });
-            }).catch(() => { })
-        },
-    }
-}
-</script>
\ No newline at end of file
diff --git a/src/views/gyMaterial/GyMaterial.vue b/src/views/gyMaterial/GyMaterial.vue
index 881e575..f5b0936 100644
--- a/src/views/gyMaterial/GyMaterial.vue
+++ b/src/views/gyMaterial/GyMaterial.vue
@@ -50,11 +50,11 @@
             placeholder="璇疯緭鍏ョ墿鏂欎唬鐮�"
             style="width: 160px"
           />
-          <el-button type="primary" @click="handleResCnz" style="margin-left: 10px">閲嶆柊鍚屾</el-button>
+          <el-button type="primary" size="mini" @click="handleResCnz" style="margin-left: 10px">閲嶆柊鍚屾</el-button>
         </el-form-item>
         <el-form-item>
-          <el-button type="primary" icon="el-icon-search" @click="handleQuery">鎼滅储</el-button>
-          <el-button @click="resetQuery">閲嶇疆</el-button>
+          <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">鎼滅储</el-button>
+          <el-button size="mini" @click="resetQuery">閲嶇疆</el-button>
         </el-form-item>
       </el-form>
       <el-form :model="queryParams" ref="filterForm">
@@ -208,9 +208,8 @@
     <el-row :gutter="10" class="mb8">
       <el-col :span="1.5">
         <el-button
-          type="warning"
+          type="primary"
           plain
-          icon="el-icon-upload2"
           size="mini"
           @click="handleImport"
           >瀵煎叆</el-button
@@ -218,9 +217,8 @@
       </el-col>
       <el-col :span="1.5">
         <el-button
-          type="warning"
+          type="primary"
           plain
-          icon="el-icon-download"
           size="mini"
           @click="handleExport"
           >瀵煎嚭</el-button
@@ -229,8 +227,6 @@
       <el-col :span="1.5">
         <el-button
           type="primary"
-          plain
-          icon="el-icon-document"
           size="mini"
           @click="handleNumAdd"
           >娴佹按鍙锋柊澧�</el-button
@@ -239,8 +235,6 @@
       <el-col :span="1.5">
         <el-button
           type="primary"
-          plain
-          icon="el-icon-plus"
           size="mini"
           @click="handleAdd"
           >鏂板</el-button
@@ -248,9 +242,6 @@
       </el-col>
       <el-col :span="1.5">
         <el-button
-          type="success"
-          plain
-          icon="el-icon-document-copy"
           size="mini"
           :disabled="single"
           @click="handleCopy"
@@ -259,9 +250,6 @@
       </el-col>
       <el-col :span="1.5">
         <el-button
-          type="success"
-          plain
-          icon="el-icon-edit"
           size="mini"
           :disabled="single"
           @click="handleEdit"
@@ -271,8 +259,6 @@
       <el-col :span="1.5">
         <el-button
           type="danger"
-          plain
-          icon="el-icon-delete"
           size="mini"
           :disabled="single"
           @click="handleDelete"
@@ -281,9 +267,6 @@
       </el-col>
       <el-col :span="1.5">
         <el-button
-          type="success"
-          plain
-          icon="el-icon-check"
           size="mini"
           :disabled="single"
           @click="handleAudit(0)"
@@ -292,9 +275,6 @@
       </el-col>
       <el-col :span="1.5">
         <el-button
-          type="success"
-          plain
-          icon="el-icon-close"
           size="mini"
           :disabled="single"
           @click="handleAudit(1)"
@@ -303,9 +283,6 @@
       </el-col>
       <el-col :span="1.5">
         <el-button
-          type="warning"
-          plain
-          icon="el-icon-turn-off"
           size="mini"
           :disabled="single"
           @click="handleStop(0)"
@@ -314,9 +291,6 @@
       </el-col>
       <el-col :span="1.5">
         <el-button
-          type="warning"
-          plain
-          icon="el-icon-open"
           size="mini"
           :disabled="single"
           @click="handleStop(1)"
@@ -325,9 +299,6 @@
       </el-col>
       <el-col :span="1.5">
         <el-button
-          type="info"
-          plain
-          icon="el-icon-setting"
           size="mini"
           @click="handleColumnSetting"
           >鍒楄缃�</el-button
@@ -335,9 +306,6 @@
       </el-col>
       <el-col :span="1.5">
         <el-button
-          type="info"
-          plain
-          icon="el-icon-s-operation"
           size="mini"
           @click="handleButtonSetting"
           >鎸夐挳璁剧疆</el-button
@@ -346,8 +314,6 @@
       <el-col :span="1.5">
         <el-button
           type="primary"
-          plain
-          icon="el-icon-folder-checked"
           size="mini"
           @click="handleSaveScheme"
           >淇濆瓨鏂规</el-button
@@ -356,8 +322,6 @@
       <el-col :span="1.5">
         <el-button
           type="primary"
-          plain
-          icon="el-icon-folder-opened"
           size="mini"
           @click="handleReadScheme"
           >璇诲彇鏂规</el-button
@@ -365,9 +329,6 @@
       </el-col>
       <el-col :span="1.5">
         <el-button
-          type="info"
-          plain
-          icon="el-icon-refresh"
           size="mini"
           @click="handleRefresh"
           >鍒锋柊</el-button
@@ -375,9 +336,6 @@
       </el-col>
       <el-col :span="1.5">
         <el-button
-          type="info"
-          plain
-          icon="el-icon-close"
           size="mini"
           @click="handleExit"
           >閫�鍑�</el-button
@@ -386,8 +344,6 @@
       <el-col :span="1.5">
         <el-button
           type="primary"
-          plain
-          icon="el-icon-edit"
           size="mini"
           @click="handleCorrect"
           >鎵规敼</el-button
@@ -396,8 +352,6 @@
       <el-col :span="1.5">
         <el-button
           type="primary"
-          plain
-          icon="el-icon-edit"
           size="mini"
           @click="handleCorrect2"
           >鎵规敼(鏂规2)</el-button
@@ -583,8 +537,8 @@
       append-to-body
     >
       <div style="margin-top: -20px">
-        <el-button type="primary" @click="handleImportSubmit">瀵煎叆鏁版嵁</el-button>
-        <el-button type="primary" @click="upload.open = false">閫� 鍑�</el-button>
+        <el-button type="primary" size="mini" @click="handleImportSubmit">瀵煎叆鏁版嵁</el-button>
+        <el-button type="primary" size="mini" @click="upload.open = false">閫� 鍑�</el-button>
         <el-upload
           ref="upload"
           :limit="1"
@@ -595,7 +549,7 @@
           :on-progress="handleFileUploadProgress"
           :on-success="handleFileSuccess"
         >
-          <el-button type="primary">鏂囦欢涓婁紶</el-button>
+          <el-button type="primary" size="mini">鏂囦欢涓婁紶</el-button>
         </el-upload>
       </div>
       <el-table
@@ -763,7 +717,7 @@
           this.getTreeData();
           this.getProjectOptions();
           this.getList();
-          this.getDefaultFilterScheme();
+          //this.getDefaultFilterScheme();
         })
         .catch((error) => {
           this.$modal.msgError("鎺ュ彛璇锋眰澶辫触!");
@@ -1201,6 +1155,9 @@
     
 
     handleRowClick(row, column, event) {
+        if(this.openPage){
+        this.$emit('deptEmit', row, 3)
+      }
       if (this.checkIsIframe()) {
         // 灏嗗綋鍓嶉�変腑鐨勬暟鎹毚闇插埌window涓�
         window.selectedRow = row;
@@ -1273,6 +1230,9 @@
     
     // 鍙屽嚮琛�
     handleDblclick(row, column, cell, event) {
+      if(this.openPage){
+        this.$emit('deptEmitDb', row, 3)
+      }
       if (this.checkIsIframe()) {
         // IFrame 鍙屽嚮 杩斿洖褰撳墠鍙屽嚮鐨勬暟鎹�
         window.parent.iFrameMaterialCallback(row);
@@ -1288,6 +1248,9 @@
       if (!this.single) {
         this.selectedRow = selection[0];
       }
+      //   if(this.openPage){
+      //   this.$emit('deptEmit', this.selectedRow, 3)
+      // }
     },
       // 缂栬緫鍏抽棴鍥炶皟
   handleEditClose() {
diff --git a/src/views/purchase/postockInBack/Kf_POStockInBackBill.vue b/src/views/purchase/postockInBack/Kf_POStockInBackBill.vue
index 358ea5b..91a2356 100644
--- a/src/views/purchase/postockInBack/Kf_POStockInBackBill.vue
+++ b/src/views/purchase/postockInBack/Kf_POStockInBackBill.vue
@@ -2,11 +2,12 @@
     <div v-loading="formLoading" v-if="formShow">
         <div style=" margin-bottom: 10px; border-bottom: 1px solid #f6f6f6;">
             <el-button type="primary" @click="submitForm" :disabled="subDisabled">淇� 瀛�</el-button>
+            <el-button type="primary" @click="set_CheckBill(0)" :disabled="checkDisabled">瀹� 鏍�</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>
-        <el-form ref="form" :model="form" :rules="rules" label-width="80px">
+        <el-form ref="form" :model="form" :rules="rules" label-width="100px">
             <el-tabs v-model="activeName" type="card">
                 <el-tab-pane label="鍩烘湰淇℃伅" name="first">
                     <el-row>
@@ -23,8 +24,8 @@
                             </el-form-item>
                         </el-col>
                         <el-col :span="6">
-                            <el-form-item label="杈呭姪瀛楁" prop="HInnerBillNo">
-                                <el-input v-model="form.HInnerBillNo" placeholder="璇疯緭鍏ヨ緟鍔╁瓧娈�" />
+                            <el-form-item label="鍐呴儴鍗曟嵁鍙�" prop="HInnerBillNo">
+                                <el-input v-model="form.HInnerBillNo" placeholder="璇疯緭鍏ュ唴閮ㄥ崟鎹彿" />
                             </el-form-item>
                         </el-col>
                         <el-col :span="6">
@@ -32,40 +33,6 @@
                                 <el-input v-model="form.HEmpName" placeholder="璇疯緭鍏ヤ笟鍔″憳" disabled>
                                     <el-button slot="append" icon="el-icon-search"
                                         @click="openDataDialog(4, zhiyuanType = 'yewuyuan')"></el-button>
-                                </el-input>
-                            </el-form-item>
-                        </el-col>
-                    </el-row>
-                    <el-row>
-                        <el-col :span="6">
-                            <el-form-item label="淇濈鍛�" prop="HKeeperName">
-                                <el-input v-model="form.HKeeperName" placeholder="璇疯緭鍏ヤ繚绠″憳" disabled>
-                                    <el-button slot="append" icon="el-icon-search"
-                                        @click="openDataDialog(4, zhiyuanType = 'baoguanyuan')"></el-button>
-                                </el-input>
-                            </el-form-item>
-                        </el-col>
-                        <el-col :span="6">
-                            <el-form-item label="涓荤" prop="HMangerName">
-                                <el-input v-model="form.HMangerName" placeholder="璇疯緭鍏ヤ富绠�" disabled>
-                                    <el-button slot="append" icon="el-icon-search"
-                                        @click="openDataDialog(4, zhiyuanType = 'zhuguan')"></el-button>
-                                </el-input>
-                            </el-form-item>
-                        </el-col>
-                        <el-col :span="6">
-                            <el-form-item label="楠屾敹" prop="HSecManagerName">
-                                <el-input v-model="form.HSecManagerName" placeholder="璇疯緭鍏ラ獙鏀�" disabled>
-                                    <el-button slot="append" icon="el-icon-search"
-                                        @click="openDataDialog(4, zhiyuanType = 'yanshou')"></el-button>
-                                </el-input>
-                            </el-form-item>
-                        </el-col>
-                        <el-col :span="6">
-                            <el-form-item label="浠撳簱" prop="HWHName">
-                                <el-input v-model="form.HWHName" placeholder="璇疯緭鍏ヤ粨搴�" disabled>
-                                    <el-button slot="append" icon="el-icon-search"
-                                        @click="openDataDialog(2, ckType = 'form')"></el-button>
                                 </el-input>
                             </el-form-item>
                         </el-col>
@@ -80,11 +47,69 @@
                             </el-form-item>
                         </el-col>
                         <el-col :span="6">
-                            <el-form-item label="寰�鏉ュ崟浣�" prop="HSupName">
+                            <el-form-item label="渚涘簲鍟�" prop="HSupName">
                                 <el-input v-model="form.HSupName" placeholder="璇疯緭鍏ュ線鏉ュ崟浣�" disabled>
                                     <el-button slot="append" icon="el-icon-search"
                                         @click="openDataDialog(6)"></el-button>
                                 </el-input>
+                            </el-form-item>
+                        </el-col>
+                        <el-col :span="6">
+                            <el-form-item label="浠撳簱" prop="HWHName">
+                                <el-input v-model="form.HWHName" placeholder="璇疯緭鍏ヤ粨搴�" disabled>
+                                    <el-button slot="append" icon="el-icon-search"
+                                        @click="openDataDialog(2, ckType = 'form')"></el-button>
+                                </el-input>
+                            </el-form-item>
+                        </el-col>
+                        <el-col :span="6">
+                            <el-form-item label="閫�鏂欏憳" prop="HSecManagerName">
+                                <el-input v-model="form.HSecManagerName" placeholder="璇疯緭鍏ラ��鏂欏憳" disabled>
+                                    <el-button slot="append" icon="el-icon-search"
+                                        @click="openDataDialog(4, zhiyuanType = 'tuiliaoyuan')"></el-button>
+                                </el-input>
+                            </el-form-item>
+                        </el-col>
+                    </el-row>
+                    <el-row>
+                        <el-col :span="6">
+                            <el-form-item label="淇濈鍛�" prop="HKeeperName">
+                                <el-input v-model="form.HKeeperName" placeholder="璇疯緭鍏ヤ繚绠″憳" disabled>
+                                    <el-button slot="append" icon="el-icon-search"
+                                        @click="openDataDialog(4, zhiyuanType = 'baoguanyuan')"></el-button>
+                                </el-input>
+                            </el-form-item>
+                        </el-col>
+                        <el-col :span="6">
+                            <el-form-item label="璐熻矗浜�" prop="HManagerName">
+                                <el-input v-model="form.HManagerName" placeholder="璇疯緭鍏ヨ礋璐d汉" disabled>
+                                    <el-button slot="append" icon="el-icon-search"
+                                        @click="openDataDialog(4, zhiyuanType = 'zhuguan')"></el-button>
+                                </el-input>
+                            </el-form-item>
+                        </el-col>
+                        <el-col :span="6">
+                            <el-form-item label="婧愬崟绫诲瀷" prop="HSourceBillType">
+                                <el-select v-model="form.HSourceBillType" placeholder="璇烽�夋嫨" style="width: 100%">
+                                    <!-- <el-option v-for="(item, index) in HSourceBillTypeList" :key="index"
+                                        :label="item.label" :value="item.value">
+                                    </el-option> -->
+                                </el-select>
+                            </el-form-item>
+                        </el-col>
+                        <el-col :span="6">
+                            <el-form-item label="閫夊崟鍙�" prop="HSourceBillNo">
+                                <el-input v-model="form.HSourceBillNo" placeholder="璇疯緭鍏ラ�夊崟鍙�" disabled>
+                                    <el-button slot="append" icon="el-icon-search"
+                                        @click="openDataDialog(openNum)"></el-button>
+                                </el-input>
+                            </el-form-item>
+                        </el-col>
+                    </el-row>
+                    <el-row>
+                        <el-col :span="12">
+                            <el-form-item label="鎽樿" prop="HExplanation">
+                                <el-input v-model="form.HExplanation" placeholder="璇疯緭鍏ユ憳瑕�" />
                             </el-form-item>
                         </el-col>
                         <el-col :span="12">
@@ -195,55 +220,18 @@
                 </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('鍗曚綅椤甸潰杩樻病鏈�', scope.row, dwType = 'jldw')"
-                            @dblclick.native="openDataDialog('鍗曚綅椤甸潰杩樻病鏈�', scope.row, dwType = 'jldw')" />
+                        <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">
-                        <el-input v-model="scope.row.浠撳簱" placeholder="璇疯緭鍏ヤ粨搴�"
-                            @keyup.native.f7="openDataDialog(2, scope.row, ckType = 'zb')"
-                            @dblclick.native="openDataDialog(2, scope.row, ckType = 'zb')" />
-                    </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(9, scope.row)"
-                            @dblclick.native="openDataDialog(9, scope.row)" />
-                    </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('鍗曚綅椤甸潰杩樻病鏈�', scope.row, dwType = 'kcfdw')"
-                            @dblclick.native="openDataDialog('鍗曚綅椤甸潰杩樻病鏈�', scope.row, dwType = 'kcfdw')" />
-                    </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('鍗曚綅椤甸潰杩樻病鏈�', scope.row, dwType = 'jbdw')"
-                            @dblclick.native="openDataDialog('鍗曚綅椤甸潰杩樻病鏈�', scope.row, dwType = 'jbdw')" />
-                    </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('鍗曚綅椤甸潰杩樻病鏈�', scope.row, dwType = 'fdw')"
-                            @dblclick.native="openDataDialog('鍗曚綅椤甸潰杩樻病鏈�', scope.row, dwType = 'fdw')" />
-                    </template>
-                </el-table-column>
-                <el-table-column align="center" label="搴旀敹鏁伴噺" width="120">
-                    <template slot-scope="scope">
-                        <el-input-number v-model="scope.row.HQtyMust" :min="1" style="width: 90px;"
+                        <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">
+                <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;"
+                        <el-input-number v-model="scope.row.HQtyMust" :min="1" style="width: 90px;"
                             controls-position="right"></el-input-number>
                     </template>
                 </el-table-column>
@@ -256,6 +244,35 @@
                 <el-table-column align="center" label="閲戦" width="120">
                     <template slot-scope="scope">
                         <span>{{ scope.row.HMoney }}</span>
+                    </template>
+                </el-table-column>
+                <el-table-column align="center" label="閲囪喘閲戦" width="120">
+                    <template slot-scope="scope">
+                        <span>{{ scope.row.HOrderPrice }}</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, ckType = 'zb')"
+                            @dblclick.native="openDataDialog(2, scope.row, ckType = 'zb')" />
+                    </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(9, scope.row)"
+                            @dblclick.native="openDataDialog(9, scope.row)" />
+                    </template>
+                </el-table-column>
+                <el-table-column align="center" label="鎵规" width="120">
+                    <template slot-scope="scope">
+                        <el-input v-model="scope.row.HBatchNo" />
+                    </template>
+                </el-table-column>
+                <el-table-column align="center" label="澶囨敞" width="120">
+                    <template slot-scope="scope">
+                        <el-input v-model="scope.row.HRemark" />
                     </template>
                 </el-table-column>
                 <el-table-column align="center" label="鎿嶄綔" width="55" fixed="right">
@@ -297,7 +314,7 @@
 import moment from 'moment';
 
 export default {
-    name: 'Kf_StockOutRequestBill',
+    name: 'Kf_POStockInBackBill',
     components: { Dept, Warehouse, Material, RowSettings, GyEmployee, GySupplier, GyStockPlace },
     props: {
         OperationType: { type: Number, },
@@ -308,7 +325,8 @@
     },
     data() {
         return {
-            HModName: "Kf_StockOutRequestBill",
+            HModName: "Kf_POStockInBackBill",
+            checkDisabled: true,
             allVal: undefined,
             zhiyuanType: '',
             ckType: '',
@@ -332,7 +350,7 @@
             deptform: {},//寮圭獥閫変腑鏁版嵁
             openData: false,//鏁版嵁寮圭獥
             dialogTitle: '',
-            organizationList: [],//缁勭粐鍒楄〃
+            organizationList: JSON.parse(sessionStorage.getItem('organizationList')),//缁勭粐鍒楄〃
             subDisabled: false,//缂栬緫椤甸潰淇濆瓨鎸夐挳鏄惁绂佺敤(true绂佺敤锛宖alse鍙敤)
             // OperationType: this.$route.query.OperationType,//淇濆瓨绫诲瀷锛堟柊澧�1淇敼3锛�
             HInterID: null,
@@ -380,40 +398,204 @@
             form: {},
             // 琛ㄥ崟鏍¢獙
             rules: {
-
-                HDate: [
-                    { required: true, message: "鏃ユ湡涓嶈兘涓虹┖", trigger: "blur" }
+                HEmpName: [
+                    { required: true, message: "璇烽�夋嫨涓氬姟鍛橈紒", trigger: "blur" }
                 ],
-                HExRate: [
-                    { required: true, message: "姹囩巼涓嶈兘涓虹┖", trigger: "blur" }
+                HDeptName: [
+                    { required: true, message: "璇烽�夋嫨閮ㄩ棬", trigger: "blur" }
+                ],
+                HSupName: [
+                    { required: true, message: "璇烽�夋嫨渚涘簲鍟嗭紒", trigger: "blur" }
+                ],
+                HWHName: [
+                    { required: true, message: "璇烽�夋嫨浠撳簱锛�", trigger: "blur" }
+                ],
+                HSecManagerName: [
+                    { required: true, message: "璇烽�夋嫨閫�鏂欏憳锛�", trigger: "blur" }
                 ]
             }
         };
     },
     created() {
-        this.fetchData()
+        this.getHSourceBillType()
         this.getdata()
     },
     methods: {
-        fetchData() {
-            axios.get(this.baseURL + "/Web/GetOrganizations", {
+        getHSourceBillType() {
+            axios.get(this.baseURL + "/Web/GetHSourceBillType", {
+                "HName": '閲囪喘閫�鏂欏崟', "Num": 2
             }).then(response => {
+                console.log(response)
+                var HSourceBillTypes = "";
                 if (response.data.count == 1) {
-                    this.organizationList = response.data.data;//缁勭粐鍒楄〃
+                    let data = response.data.data
+                    for (var i = 0; i < data.length; i++) {
+                        HSourceBillTypes += data[i].HSourceBillType + data[i].HSourceBillTypeName;
+                    }
+                    console.log(111, HSourceBillTypes)
                 }
             }).catch(error => {
+                console.log(error)
+
                 this.$modal.msgError("鎺ュ彛璇锋眰澶辫触!");
             });
         },
         getdata() {
             this.formShow = false
             this.formLoading = true
-            if ((this.OperationType == 1 && this.copyType != 1) || (!this.OperationType && !this.copyType)) {
+            if (this.OperationType == 4) {
+                this.reset()
+                //鏂板鑾峰彇鍗曟嵁鍙�
+                this.getHBillNo()
+                if (this.HSouceBillType == "1105") {
+                    this.setInit_PushBill_ByPOInStockBackBill();
+                } else if (this.HSouceBillType == "1201") {
+                    this.setInit_PushBill_ByPOStockInBillInit();
+                }
+            } else if ((this.OperationType == 1 && this.copyType != 1) || (!this.OperationType && !this.copyType)) {
                 this.handleAdd()
             } else if (this.OperationType == 3 || this.copyType == 1) {
                 this.handleUpdate()
             }
         },
+        //#region 涓嬫帹椤甸潰鍒濆鍖�-閫�鏂欓�氱煡鍗�
+        setInit_PushBill_ByPOInStockBackBill() {
+            //鑾峰彇
+            var data = getUrlVars_JSON().data;
+            var dataArray = [];
+            for (var i = 0; i < data.length; i++) {
+                var temp = this.getPushSource_POInStockBackInit(data[i].hmainid, data[i].hsubid);
+                if (temp != "none") {
+                    dataArray.push(temp);
+                } else {
+                    return;
+                }
+            }
+            this.form.HMainSourceInterID = 0
+            this.form.HMainSourceEntryID = 0
+            this.form.HMainSourceBillNo = ""
+            this.form.HMainSourceBillType = this.HSouceBillType
+            this.form.HDeptID = dataArray[0].HDeptID
+            this.form.HDeptName = dataArray[0].閮ㄩ棬
+            this.form.HManagerID = dataArray[0].HManagerID
+            this.form.HManagerName = dataArray[0].涓荤
+            this.form.HWHID = dataArray[0].涓昏〃浠撳簱ID == null ? 0 : dataArray[0].涓昏〃浠撳簱ID
+            this.form.HWHName = dataArray[0].涓昏〃浠撳簱
+            this.form.HEmpID = dataArray[0].HEmpID
+            this.form.HEmpName = dataArray[0].涓氬姟鍛�
+            this.form.HSupID = dataArray[0].HSupID
+            this.form.HSupName = dataArray[0].渚涘簲鍟�
+            this.form.HCurID = dataArray[0].HCurID
+            this.form.HCurName = dataArray[0].甯佸埆
+            this.form.HExRate = dataArray[0].姹囩巼
+            this.form.HAddress = data.浜よ揣鍦扮偣
+            this.form.HRemark = data.琛ㄥご澶囨敞
+            this.form.HInnerBillNo = data.鍐呴儴鍗曟嵁鍙�
+            //瀛愯〃  璧嬪��
+            this.editData = [];
+            for (var i = 0; i < dataArray.length; i++) {
+                this.editData.push(
+                    {
+                        "HMaterID": dataArray[i].HMaterID
+                        , "鐗╂枡浠g爜": dataArray[i].鐗╂枡浠g爜
+                        , "鐗╂枡鍚嶇О": dataArray[i].鐗╂枡鍚嶇О
+                        , "瑙勬牸鍨嬪彿": dataArray[i].瑙勬牸鍨嬪彿
+                        , "HUnitID": dataArray[i].HUnitID
+                        , "璁¢噺鍗曚綅": dataArray[i].璁¢噺鍗曚綅
+                        , "HWHID": dataArray[i].HWHID
+                        , "鍙戞枡浠撳簱": dataArray[i].鏀舵枡浠撳簱
+                        , "HSPID": dataArray[i].HSPID
+                        , "浠撲綅鍚嶇О": dataArray[i].浠撲綅鍚嶇О
+                        , "HSecUnitID": dataArray[i].HSecUnitID
+                        , "杈呭姪鍗曚綅": dataArray[i].杈呭姪鍗曚綅
+                        , "HQty": dataArray[i].鏁伴噺.toFixed(6)
+                        , "HQtyMust": dataArray[i].鏁伴噺.toFixed(6)
+                        , "HPrice": dataArray[i].鍗曚环.toFixed(4)
+                        , 'HDiscountRate': dataArray[i].鎶樻墸鐜�                                                    //
+                        , 'HRelTaxPrice': "0"
+                        , "HTaxRate": dataArray[i].绋庣巼
+                        , 'HTaxMoney': dataArray[i].绋庨                                                     //
+                        , "HMoney": dataArray[i].閲戦.toFixed(2)
+                        , "HRemark": dataArray[i].琛ㄤ綋澶囨敞
+                        , "HSourceInterID": dataArray[i].hmainid
+                        , "HSourceEntryID": dataArray[i].hsubid
+                        , "HSourceBillNo": dataArray[i].鍗曟嵁鍙�
+                        , "HSourceBillType": dataArray[i].HBillType
+                        , "HRelationQty": "0"
+                        , "HRelationMoney": "0"
+                        , 'HPOOrderInterID': "0"
+                        , 'HPOOrderEntryID': "0"
+                        , 'HPOOrderBillNo': ""
+                        , 'HSeOrderTaxPrice': dataArray[i].鍚◣鍗曚环.toFixed(4)
+                        , "HSeOrderInterID": dataArray[i].hmainid
+                        , "HSeOrderEntryID": dataArray[i].hsubid
+                        , "HSeOrderBillNo": dataArray[i].鍗曟嵁鍙�
+                    }
+                );
+            }
+        },
+        //#endregion
+        //#region 涓嬫帹椤甸潰鍒濆鍖�-閲囪喘鍏ュ簱鍗�
+        setInit_PushBill_ByPOStockInBillInit() {
+            //鑾峰彇
+            var data = getUrlVars_JSON().data;
+            var dataArray = [];
+            for (var i = 0; i < data.length; i++) {
+                var temp = getPushSource_POStockInBillInit(data[i].hmainid, data[i].hsubid);
+                if (temp != "none") {
+                    dataArray.push(temp);
+                } else {
+                    return;
+                }
+            }
+            this.form.HInnerBillNo = dataArray[0].鍐呴儴鍗曟嵁鍙�
+            this.form.HSupID = dataArray[0].HSupID
+            this.form.HSupName = dataArray[0].渚涘簲鍟�
+            this.form.HEmpID = dataArray[0].HEmpID
+            this.form.HEmpName = dataArray[0].涓氬姟鍛�
+            this.form.HWHID = dataArray[0].涓昏〃浠撳簱ID
+            this.form.HWHName = dataArray[0].涓昏〃浠撳簱
+            this.form.HKeeperID = dataArray[0].HKeeperID
+            this.form.HKeeperName = dataArray[0].淇濈鍛�
+            this.form.HDeptName = dataArray[0].閮ㄩ棬
+            this.form.HDeptID = dataArray[0].HDeptID
+            this.form.HManagerID = dataArray[0].HManagerID
+            this.form.HManagerName = dataArray[0].璐熻矗浜�
+            this.form.HExRate = dataArray[0].姹囩巼
+            this.form.HSourceBillType = this.HSouceBillType
+            //瀛愯〃  璧嬪��
+            this.editData = [];
+            for (var i = 0; i < dataArray.length; i++) {
+                this.editData.push(
+                    {
+                        "HMaterID": dataArray[i].HMaterID
+                        , "鐗╂枡浠g爜": dataArray[i].鐗╂枡浠g爜
+                        , "鐗╂枡鍚嶇О": dataArray[i].鐗╂枡鍚嶇О
+                        , "瑙勬牸鍨嬪彿": dataArray[i].瑙勬牸鍨嬪彿
+                        , "HUnitID": dataArray[i].HUnitID
+                        , "璁¢噺鍗曚綅": dataArray[i].璁¢噺鍗曚綅
+                        , "HWHID": dataArray[i].HWHID
+                        , "鍙戞枡浠撳簱": dataArray[i].鏀舵枡浠撳簱
+                        , "HSPID": dataArray[i].HSPID
+                        , "浠撲綅鍚嶇О": dataArray[i].浠撲綅鍚嶇О
+                        , "HQty": dataArray[i].瀹炴敹鏁伴噺.toFixed(6) - dataArray[i].鍏宠仈鏁伴噺.toFixed(6)
+                        , "HQtyMust": dataArray[i].瀹炴敹鏁伴噺.toFixed(6) - dataArray[i].鍏宠仈鏁伴噺.toFixed(6)
+                        , "HPrice": dataArray[i].鍗曚环.toFixed(4)
+                        , "HMoney": dataArray[i].閲戦.toFixed(2)
+                        , "HOrderPrice": dataArray[i].閲囪喘閲戦
+                        , "HRemark": dataArray[i].琛ㄤ綋澶囨敞
+                        , "HBatchNo": dataArray[i].鎵规
+                        , "HSourceInterID": dataArray[i].hmainid
+                        , "HSourceEntryID": dataArray[i].hsubid
+                        , "HSourceBillNo": dataArray[i].鍗曟嵁鍙�
+                        , "HSourceBillType": dataArray[i].HBillType
+                        , "HRelationQty": "0"
+                        , "HRelationMoney": "0"
+                    }
+                );
+            }
+        },
+        //#endregion
         // 鑾峰彇鍙傛暟_浼犻�掔殑JSON鏍煎紡鍙傛暟
         getUrlVars_JSON() {
             var datajson;
@@ -422,9 +604,10 @@
             datajson = JSON.parse(decodeURI(arr));
             return datajson;
         },
-        //鏍规嵁涓诲唴鐮佷笌瀛愬唴鐮佽幏鍙栨簮鍗曢攢鍞鍗曟暟鎹�
-        getPushSourceBillInit(HSourceInterID, HSourceEntryID) {
-            axios.get(this.baseURL + '/Xs_SeOrderBill/loadXs_SeOrderBill_Push', {
+        //鏍规嵁涓诲唴鐮佷笌瀛愬唴鐮佽幏鍙栨簮鍗曢��鏂欓�氱煡鍗曟暟鎹�
+        getPushSource_POInStockBackInit(HSourceInterID, HSourceEntryID) {
+            var res = "none";
+            axios.get(this.baseURL + '/Cg_POInStockBackBill/loadCg_POInStockBackBill_Push', {
                 params: {
                     "HInterID": HSourceInterID
                     , "HSubID": HSourceEntryID
@@ -432,13 +615,36 @@
             }).then(response => {
                 let result = response.data
                 if (result.code == 1) { // 璇存槑楠岃瘉鎴愬姛浜嗭紝
-                    this.temp = result.data[0];
+                    res = result.data[0];
                 } else {
-                    this.temp = result.data;
+                    res = result.data;
                 }
             }).catch(error => {
+                res = "none";
                 this.$modal.msgError("鎺ュ彛璇锋眰澶辫触!");
             });
+            return res;
+        },
+        // 鏍规嵁涓诲唴鐮佷笌瀛愬唴鐮佽幏鍙栨簮鍗曢噰璐叆搴撳崟鏁版嵁
+        getPushSource_POStockInBillInit(HSourceInterID, HSourceEntryID) {
+            var res = "none";
+            axios.get(this.baseURL + '/Kf_POStockInBill/loadKf_POStockInBillEdit_Push', {
+                params: {
+                    "HInterID": HSourceInterID
+                    , "HSubID": HSourceEntryID
+                },
+            }).then(response => {
+                let result = response.data
+                if (result.code == 1) { // 璇存槑楠岃瘉鎴愬姛浜嗭紝
+                    res = result.data[0];
+                } else {
+                    res = result.data;
+                }
+            }).catch(error => {
+                res = "none";
+                this.$modal.msgError("鎺ュ彛璇锋眰澶辫触!");
+            });
+            return res;
         },
         handleRowHide() {
             this.rowHideShow = true
@@ -468,19 +674,19 @@
                         this.form.HWHName = deptRow.浠撳簱鍚嶇О;
                     } else if (this.ckType == 'zb') {
                         this.editData[this.zbIndex].HWHID = deptRow.HItemID;
-                        this.editData[this.zbIndex].浠撳簱 = deptRow.浠撳簱鍚嶇О;
+                        this.editData[this.zbIndex].鍙戞枡浠撳簱 = deptRow.浠撳簱鍚嶇О;
                     }
                     this.warehouseShow = false
                     this.openData = false
                 } else if (num == 3) {
+                    console.log(deptRow)
+                    console.log(deptRow.璁¢噺鍗曚綅鍚嶇О)
                     this.editData[this.zbIndex].HMaterID = deptRow.HItemID;
                     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].HUnitID = deptRow.HUnitID;
                     this.editData[this.zbIndex].璁¢噺鍗曚綅 = deptRow.璁¢噺鍗曚綅鍚嶇О
-                    this.editData[this.zbIndex].HTaxPrice = deptRow.鍚◣鎴愭湰浠�
-                    this.editData[this.zbIndex].HTaxRate = deptRow.榛樿绋庣巼
                     this.materialShow = false
                     this.openData = false
                 } else if (num == 4) {
@@ -491,9 +697,9 @@
                         this.form.HKeeperName = deptRow.鑱屽憳鍚嶇О
                         this.form.HKeeperID = deptRow.HItemID
                     } else if (this.zhiyuanType == 'zhuguan') {
-                        this.form.HMangerName = deptRow.鑱屽憳鍚嶇О
-                        this.form.HMangerID = deptRow.HItemID
-                    } else if (this.zhiyuanType == 'yanshou') {
+                        this.form.HManagerName = deptRow.鑱屽憳鍚嶇О
+                        this.form.HManagerID = deptRow.HItemID
+                    } else if (this.zhiyuanType == 'tuiliaoyuan') {
                         this.form.HSecManagerName = deptRow.鑱屽憳鍚嶇О
                         this.form.HSecManagerID = deptRow.HItemID
                     }
@@ -506,7 +712,7 @@
                     this.openData = false
                 } else if (num == 9) {
                     this.editData[this.zbIndex].HSPID = deptRow.HMainID;
-                    this.editData[this.zbIndex].浠撲綅 = deptRow.浠撲綅鍚嶇О;
+                    this.editData[this.zbIndex].浠撲綅鍚嶇О = deptRow.浠撲綅鍚嶇О;
                     this.gyStockPlaceShow = false
                     this.openData = false
                 }
@@ -531,37 +737,39 @@
         //閿�鍞嚭搴撳崟鏂板缂栬緫琛ㄥ崟鍒濆鍖�
         reset() {
             this.form = {
-                HBillNo:'',
+                HInterID: 0,
+                HBillNo: '',
                 HDate: moment(new Date()).format('YYYY-MM-DD'),
-                HSSDate:moment(new Date()).format('YYYY-MM-DD'),
-                HAddress:'',
-                HDeptName:'',
-                HDeptID:0,
-                HSupID:0,
-                HSupName:'',
-                HEmpID:0,
-                HEmpName:'',
-                HCurID:0,
-                HCurName:'',
-                HExRate:'',
-                HManagerName:'',
-                HManagerID:0,
-                HPSStyleID:0,
-                HPSStyleName:'',
-                HSSID:0,
-                HSSName:'',
-                HLinkMan:'',
-                HLinkPhone:'',
-                HInnerBillNo:'',
-                HRemark:'',
-                HMaker:sessionStorage["HSupName"],
-                HChecker:'',
-                HCloseMan:'',
-                HMakeDate:'',
-                HCheckDate:'',
-                HCloseDate:'',
-                HUpDateDate:'',
-                HDeleteDate:'',
+                HReceiveDate: moment(new Date()).format('YYYY-MM-DD'),
+                HAddress: '',
+                HInnerBillNo: '',
+                HEmpID: 0,
+                HEmpName: '',
+                HDeptName: '',
+                HDeptID: 0,
+                HSupID: 0,
+                HSupName: '',
+                HWHName: '',
+                HWHID: 0,
+                HSecManagerName: '',
+                HSecManagerID: 0,
+                HKeeperName: '',
+                HKeeperID: 0,
+                HManagerName: '',
+                HManagerID: 0,
+                HSourceBillType: '',
+                HExplanation: '',
+                HRemark: '',
+                HMaker: sessionStorage["HSupName"],
+                HChecker: '',
+                HCloseMan: '',
+                HUpDater: '',
+                HDeleteMan: '',
+                HMakeDate: moment(new Date()).format('YYYY-MM-DD'),
+                HCheckDate: '',
+                HCloseDate: '',
+                HUpDateDate: '',
+                HDeleteDate: '',
 
             }
             this.editData = []
@@ -626,16 +834,13 @@
             })
         },
         getHBillNo() {
-            axios.get(this.baseURL + "/Web/GetMAXNum", {
+            axios.get(this.baseURL + "/WEBSController/GetMaxBillNoAndID_Json", {
                 params: {
-                    HBillType: '1242'
+                    HBillType: '1239'
                 }
             }).then(response => {
-                this.form.HMaker = sessionStorage["HUserName"]
                 this.form.HBillNo = response.data.data[0].HBillNo
                 this.form.HInterID = response.data.data[0].HInterID
-                // this.copyType = 0
-                // this.getCzyglByUser()
             }).catch(error => {
                 this.$modal.msgError("鎺ュ彛璇锋眰澶辫触!");
             });
@@ -646,74 +851,55 @@
         handleUpdate() {
             this.reset()
             let rowHmainid = this.linterid
-            axios.get(this.baseURL + "/Kf_StockOutRequestBill/cx", {
+            axios.get(this.baseURL + "/Kf_POStockInBackBill/cx", {
                 params: { 'HInterID': rowHmainid }
             }).then(response => {
                 if (response.data.count == 1) {
                     var result = response.data
                     var data = response.data.data[0]
                     this.allVal = data
-                    this.form.BillType = data.HSourceBillType
-                    if (this.copyType == 1) {
-                        this.getHBillNo()
-                        let date = new Date()
-                        this.form.HDate = moment(date).format('YYYY-MM-DD')
-                    } else {
-                        this.form.HBillNo = data.鍗曟嵁鍙�
-                        // this.form.HInterID = data.HInterID
-                        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.HAddress = data.浜よ揣鍦扮偣
-                    this.form.HDeptName = data.閮ㄩ棬
-                    this.form.HDeptID = data.HDeptID
+                    this.form.HBillNo = data.鍗曟嵁鍙�
+                    this.form.HDate = moment(data.鏃ユ湡).format('YYYY-MM-DD')
+                    this.form.HInnerBillNo = data.鍐呴儴鍗曟嵁鍙�
                     this.form.HSupID = data.HSupID
                     this.form.HSupName = data.渚涘簲鍟�
                     this.form.HEmpID = data.HEmpID
                     this.form.HEmpName = data.涓氬姟鍛�
-                    this.form.HCurID = data.HCurID
-                    this.form.HCurName = data.甯佸埆
-                    this.form.HExRate = data.姹囩巼
-                    this.form.HManagerName = data.涓荤
+                    this.form.HWHID = data.涓昏〃浠撳簱ID
+                    this.form.HWHName = data.涓昏〃浠撳簱
+                    this.form.HSecManagerID = data.HSecManagerID
+                    this.form.HSecManagerName = data.楠屾敹鍛�
+                    this.form.HKeeperID = data.HKeeperID
+                    this.form.HKeeperName = data.淇濈鍛�
+                    this.form.HDeptName = data.閮ㄩ棬
+                    this.form.HDeptID = data.HDeptID
+                    this.form.HSourceBillType = data.婧愬崟绫诲瀷
                     this.form.HManagerID = data.HManagerID
-                    this.form.HPSStyleID = data.HPSStyleID
-                    this.form.HPSStyleName = data.閲囪喘鏂瑰紡
-                    this.form.HSSID = data.HSSID
-                    this.form.HSSName = data.缁撶畻鏂瑰紡
-                    this.form.HLinkMan = data.鑱旂郴浜�
-                    this.form.HLinkPhone = data.鑱旂郴鐢佃瘽
-                    this.form.HInnerBillNo = data.杈呭姪瀛楁
+                    this.form.HManagerName = data.璐熻矗浜�
+                    this.form.HExRate = data.姹囩巼
+                    this.form.HExplanation = data.鎽樿
                     this.form.HRemark = data.琛ㄥご澶囨敞
+                    this.form.HMaker = data.鍒跺崟浜�
+                    this.form.HChecker = data.瀹℃牳浜�
+                    this.form.HCloseMan = data.鍏抽棴浜�
+                    this.form.HUpDater = data.淇敼浜�
+                    this.form.HDeleteDate = data.浣滃簾浜�
+                    this.form.HMakeDate = data.鍒跺崟鏃ユ湡 == null ? "" : moment(data.鍒跺崟鏃ユ湡).format('YYYY-MM-DD hh:mm:ss')
+                    this.form.HCheckDate = data.瀹℃牳鏃ユ湡 == null ? "" : moment(data.瀹℃牳鏃ユ湡).format('YYYY-MM-DD hh:mm:ss')
+                    this.form.HCloseDate = data.鍏抽棴鏃ユ湡 == null ? "" : moment(data.鍏抽棴鏃ユ湡).format('YYYY-MM-DD hh:mm:ss')
+                    this.form.HUpDateDate = data.淇敼鏃ユ湡 == null ? "" : moment(data.淇敼鏃ユ湡).format('YYYY-MM-DD hh:mm:ss')
+                    this.form.HDeleteDate = data.浣滃簾鏃ユ湡 == null ? "" : moment(data.浣滃簾鏃ユ湡).format('YYYY-MM-DD hh:mm:ss')
                     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].璁¢噺鍗曚綅,
-                                "HQty": result.data[i].鏁伴噺,
-                                "HRemark": result.data[i].琛ㄤ綋澶囨敞,
-                                "HPrice": result.data[i].鍗曚环,
-                                "HMoney": result.data[i].閲戦,
-                                "HTaxRate": result.data[i].绋庣巼,
-                                "HTaxMoney": result.data[i].閲戦 * result.data[i].绋庣巼,
-                                "HlineTotal": result.data[i].閲戦 + result.data[i].绋庨,
-                                "HlineTotalBB": (result.data[i].閲戦 + result.data[i].绋庨) * result.data[i].姹囩巼, 
-                                "HTaxPrice": result.data[i].鍚◣鍗曚环,
-                                "HDiscountRate": result.data[i].鎶樻墸鐜�,
-                                "HRelTaxPrice": data.瀹為檯鍚◣鍗曚环,
-                                "HDate": moment(result.data[i].浜よ揣鏃ユ湡).format('YYYY-MM-DD')
+                                "HMaterID": result.data[i].HMaterID, "鐗╂枡浠g爜": result.data[i].鐗╂枡浠g爜, "鐗╂枡鍚嶇О": result.data[i].鐗╂枡鍚嶇О, "瑙勬牸鍨嬪彿": result.data[i].瑙勬牸鍨嬪彿, "HUnitID": result.data[i].HUnitID, "璁¢噺鍗曚綅": result.data[i].璁¢噺鍗曚綅,
+                                "HQty": result.data[i].瀹炴敹鏁伴噺, "HQtyMust": result.data[i].搴旀敹鏁伴噺, "HRemark": result.data[i].琛ㄤ綋澶囨敞, "HPrice": result.data[i].鍗曚环, "HMoney": result.data[i].閲戦, "HOrderPrice": result.data[i].閲囪喘閲戦, "HWHID": result.data[i].HWHID, "鍙戞枡浠撳簱": result.data[i].鏀舵枡浠撳簱, "HSPID": result.data[i].HSPID, "浠撲綅鍚嶇О": result.data[i].浠撲綅鍚嶇О,
+                                "HBatchNo": result.data[i].鎵规,
+                                "HSourceBillNo": result.data[i].婧愬崟鍗曞彿,    //婧愬崟鍙�
+                                "HSourceBillType": result.data[i].婧愬崟绫诲瀷,   //婧愬崟绫诲瀷
+                                "HSourceInterID": result.data[i].婧愬崟涓诲唴鐮�,   //婧愬崟涓诲唴鐮�
+                                "HSourceEntryID": result.data[i].婧愬崟瀛愬唴鐮�     //婧愬崟瀛愬唴鐮�
+
                             }
                         );
                     }
@@ -734,9 +920,11 @@
                 this.$modal.msgError("璇烽�夋嫨涓�琛屾暟鎹紪杈�!");
             } else {
                 let obj = {
-                    "HMaterID": 0, "鐗╂枡浠g爜": "", "鐗╂枡鍚嶇О": "", "瑙勬牸鍨嬪彿": "", "HUnitID": 1, "璁¢噺鍗曚綅": "", "HWHID": "0", "浠撳簱": "",
-                    "HSPID": "0", "浠撲綅": "", "HSecUnitID": "1", "搴撳瓨杈呭崟浣�": "", "HBASEUNITID": "1", "鍩烘湰鍗曚綅": "",
-                    "HEXTAUXUNITID": "1", "杈呭崟浣�": "", "HQtyMust": "0", "HQty": "0", "HPrice": "0", "HMoney": "0", "HRemark": ""
+                    "HMaterID": 0, "鐗╂枡浠g爜": "", "鐗╂枡鍚嶇О": "", "瑙勬牸鍨嬪彿": "", "HUnitID": 0, "璁¢噺鍗曚綅": "", "HQty": "", "HRemark": "",
+                    "HPrice": "0", "HMoney": "0", "HOrderPrice": "0", "HWHID": 0, "鍙戞枡浠撳簱": "",
+                    "HSPID": 0, "浠撲綅鍚嶇О": "", "HBatchNo": "", "HPOOrderInterID": 0, "HPOOrderEntryID": 0,
+                    "HPOOrderBillNo": "", "HSeOrderInterID": 0, "HSeOrderEntryID": 0, "HSeOrderBillNo": "",
+                    "HSourceBillNo": 0, "HSourceBillType": 0, "HSourceInterID": 0, "HSourceEntryID": 0,
                 }
                 if (index) {
                     this.editData.splice(index, 0, obj);
@@ -805,15 +993,60 @@
             }
         },
 
-        // 缂栬緫鎻愪氦淇濆瓨
+        //#region 淇濆瓨鎸夐挳
         submitForm() {
+            //#region 鍒ゆ柇婧愬崟鐘舵��
+            if (this.OperationType == 1 || this.OperationType == 4) {
+                if (this.form.HSourceBillType == "1105") {
+                    for (var i = 0; i < this.editData.length; i++) {
+                        var HSourceBillData = "";
+                        var HSourceBillData = this.getPushSource_POInStockBackInit(this.editData[i].HSourceInterID, this.editData[i].HSourceEntryID);            //鑾峰彇婧愬崟鏁版嵁
+                        if (HSourceBillData != "none") {
+                            if (HSourceBillData == null) {
+                                this.$modal.msgError("淇濆瓨澶辫触!绗�" + (i + 1) + "琛岋細鏈煡璇㈠埌婧愬崟鍗曟嵁!");
+                                return;
+                            } else if (HSourceBillData.鐘舵�� != "宸插鏍�") {
+                                var err = "淇濆瓨澶辫触!鍘熷洜锛氱" + (i + 1) + "琛�-婧愬崟鍗曟嵁鐘舵�佷负鈥�" + HSourceBillData.鐘舵�� + "鈥濓紝涓嶅厑璁镐繚瀛橈紒";
+                                this.$modal.msgError(err);
+                                return;
+                            } else if (HSourceBillData.琛岀姸鎬� == "宸插叧闂�") {
+                                this.$modal.msgError("淇濆瓨澶辫触!绗�" + (i + 1) + "琛岋細璇ヨ璁板綍琛岀姸鎬佷负'宸插叧闂�'鐘舵��!");
+                                return;
+                            }
+                        } else {
+                            return;
+                        }
+                    }
+                } else if (this.form.HSourceBillType == "1201") {
+                    for (var i = 0; i < this.editData.length; i++) {
+                        var HSourceBillData = "";
+                        var HSourceBillData = this.getPushSource_POStockInBillInit(this.editData[i].HSourceInterID, this.editData[i].HSourceEntryID);            //鑾峰彇婧愬崟鏁版嵁
+                        if (HSourceBillData != "none") {
+                            if (HSourceBillData == null) {
+                                this.$modal.msgError("淇濆瓨澶辫触!绗�" + (i + 1) + "琛岋細鏈煡璇㈠埌婧愬崟鍗曟嵁!");
+                                return;
+                            }
+                        } else {
+                            return;
+                        }
+                    }
+                }
+                else {
+                    this.$modal.msgError('褰撳墠涓嶆敮鎸佽婧愬崟锛侊紒')
+                    return  
+                }
+            }
+            this.set_SaveBill();
+        },
+        // 缂栬緫鎻愪氦淇濆瓨
+        set_SaveBill() {
             this.$refs["form"].validate(valid => {
                 if (valid) {
                     let fhck = false
                     this.editData.map((item, index) => {
-                        if (!item.浠撳簱) {
+                        if (!item.鐗╂枡浠g爜) {
                             fhck = true
-                            this.$modal.msgError("绗�" + (index + 1) + "琛岋細浠撳簱鏈�夋嫨锛�");
+                            this.$modal.msgError("绗�" + (index + 1) + "琛岋細鐗╂枡浠g爜涓嶈兘涓虹┖锛�");
                         }
                     })
                     this.$nextTick(() => {
@@ -824,15 +1057,16 @@
                             var sMainSub = sMainStr + ';' + sSubStr + ';' + this.OperationType + ";" + sessionStorage["HUserName"] + ';' + sAllStr;
                             axios({
                                 method: 'post',
-                                url: this.baseURL + "/Kf_StockOutRequestBill/StockOutRequestBillEdit",
+                                url: this.baseURL + "/Kf_POStockInBackBill/POStockInBackBillEdit",
                                 data: {
                                     'sMainSub': sMainSub
                                 },
                             }).then(response => {
                                 if (response.data.count == 1) {
-                                    this.subDisabled = true//璁剧疆淇濆瓨鎸夐挳涓嶅彲鐢�                                   
+                                    this.subDisabled = true//璁剧疆淇濆瓨鎸夐挳涓嶅彲鐢� 
+                                    this.checkDisabled = false
                                     this.$modal.msgSuccess(response.data.Message);
-                                    this.close()
+                                    // this.close()
                                 } else {
                                     this.$modal.msgError(response.data.Message);
                                 }
@@ -845,15 +1079,15 @@
             });
         },
         // 鍙嶅鏍�/瀹℃牳鏁版嵁
-        set_CheckBill(num, form) {
-            var InterID = form.hmainid || form.HInterID
+        set_CheckBill(num) {
             //閫昏緫瀹℃牳鏂规硶
-            axios.get(this.baseURL + "/Kf_SellOutBill/AuditKf_SellOutBill", {
+            axios.get(this.baseURL + "/Kf_POStockInBackBill/AuditProcessReportList", {
                 params: { "HInterID": InterID, "IsAudit": num, "CurUserName": sessionStorage["HUserName"] }
             }).then(response => {
                 let result = response.data
                 if (result.code == 1) {
                     this.$modal.msgSuccess('鎿嶄綔鎴愬姛');
+                    this.close()
                 }
                 else {
                     this.$modal.msgError("閿欒:" + result.code + result.Message,);
diff --git a/src/views/purchase/postockInBack/Kf_POStockInBackBillList.vue b/src/views/purchase/postockInBack/Kf_POStockInBackBillList.vue
index f07e780..061e5c7 100644
--- a/src/views/purchase/postockInBack/Kf_POStockInBackBillList.vue
+++ b/src/views/purchase/postockInBack/Kf_POStockInBackBillList.vue
@@ -148,10 +148,10 @@
             </el-collapse>
         </el-form>
         <el-row :gutter="10" class="mb8" style="margin-top: 10px">
-            <el-col :span="1.5">
+              <!-- <el-col :span="1.5">
                 <el-button type="primary" icon="el-icon-plus" size="mini" @click="handleAddEdit((OperationType = 1))"
                     id="btn-Add">鏂板</el-button>
-            </el-col>
+            </el-col> -->
             <el-col :span="1.5">
                 <el-button type="primary" icon="el-icon-edit" size="mini" :disabled="single"
                     @click="handleEdit((row = rowForm), (OperationType = 3))">缂栬緫</el-button>
@@ -161,7 +161,44 @@
                 </el-button>
             </el-col>
             <el-col :span="1.5">
+                <el-button type="primary" icon="el-icon-delete" size="mini" :disabled="single"
+                    @click="set_CheckBill(0)">瀹℃牳
+                </el-button>
+            </el-col>
+            <el-col :span="1.5">
+                <el-button type="primary" icon="el-icon-delete" size="mini" :disabled="single"
+                    @click="set_CheckBill(1)">鍙嶅鏍�
+                </el-button>
+            </el-col>
+            <el-col :span="1.5">
+                <el-button type="primary" icon="el-icon-delete" size="mini" :disabled="single"
+                    @click="set_CloseBill(0)">鍏抽棴
+                </el-button>
+            </el-col>
+            <el-col :span="1.5">
+                <el-button type="primary" icon="el-icon-delete" size="mini" :disabled="single"
+                    @click="set_CloseBill(1)">鍙嶅叧闂�
+                </el-button>
+            </el-col>
+            <el-col :span="1.5">
+                <el-button type="primary" icon="el-icon-delete" size="mini" :disabled="single"
+                    @click="set_DropBill(0)">浣滃簾
+                </el-button>
+            </el-col>
+            <el-col :span="1.5">
+                <el-button type="primary" icon="el-icon-delete" size="mini" :disabled="single"
+                    @click="set_DropBill(1)">鍙嶄綔搴�
+                </el-button>
+            </el-col>
+            <el-col :span="1.5">
                 <el-button type="primary" icon="el-icon-date" size="mini" @click="handleRowHide">闅愯棌鍒楄缃�</el-button>
+            </el-col>
+            <el-col :span="1.5">
+                <el-button type="primary" icon="el-icon-printer" size="mini" @click="get_PrintReport">鎵撳嵃</el-button>
+            </el-col>
+            <el-col :span="1.5">
+                <el-button type="primary" icon="el-icon-printer" size="mini" :disabled="single"
+                    @click="get_BarCodeDetail">鏉$爜鏄庣粏</el-button>
             </el-col>
         </el-row>
         <div class="tableBox" v-loading="loading">
@@ -179,7 +216,7 @@
                             <div :style="item.style">
                                 <span v-if="column.property.includes('鏃ユ湡')">{{
                                     parseTime(row[column.property], "{y}-{m}-{d}")
-                                    }}</span>
+                                }}</span>
                                 <el-button type="text" @click="handleEdit(row, (OperationType = 3))"
                                     v-else-if="column.property == '鍗曟嵁鍙�'">{{ row.鍗曟嵁鍙� }}</el-button>
                                 <span v-else>{{ row[column.label] }}</span>
@@ -197,9 +234,12 @@
             <el-dialog title="缂栬緫" :visible.sync="openEdit" width="1480px" append-to-body class="xsckdBox"
                 @close="close">
                 <edit :OperationType="OperationType" :linterid="this.rowForm.hmainid"
-                    :HSouceBillType="this.rowForm.HSourceBillType" :copyType="copyType" @editClose="editClose"
+                    HSouceBillType="0" :copyType="copyType" @editClose="editClose"
                     v-if="editShow" />
             </el-dialog>
+            <PrintList :linterid="this.rowForm.hmainid" :MyMsg="this.rowForm.hmainid" Type="HPOInStockBill"
+                HModName="HPOInStockBill" @rowEditClose="rowSetClose" v-if="printListShow" />
+            <BarCodeDetail :visible.sync="barCodeDetailShow" ref="barcodeDetail" />
         </div>
     </div>
 </template>
@@ -207,7 +247,7 @@
 <script>
 import axios from "axios";
 import RowSettings from "@/views/component/rowSettings";
-import Edit from "@/views/warehouse/shipment/Kf_StockOutRequestBill.vue";
+import Edit from "@/views/purchase/postockInBack/Kf_POStockInBackBill.vue";
 import PrintList from "@/views/component/printList";
 import BarCodeDetail from '@/views/component/BarCodeDetail'               //鏉$爜鏄庣粏缁勪欢
 import moment from "moment";
@@ -410,7 +450,7 @@
                         this.total = data1.count;
                         var data = []; //鍒楀瓧娈垫暟鎹�
                         var col = [];
-                        var totalArray = ["閲戦","閲囪喘閲戦","搴旈��鏁伴噺","瀹為��鏁伴噺"];
+                        var totalArray = ["閲戦", "閲囪喘閲戦", "搴旈��鏁伴噺", "瀹為��鏁伴噺"];
                         //缁欑┖鐨勬暟缁勮祴鍊�
                         for (var key in data1.list) {
                             //寰簭閬嶅巻鏁扮粍
@@ -857,6 +897,97 @@
                 });
             }).catch(() => { });
         },
+        set_CheckBill(num) {
+            //閫昏緫瀹℃牳鏂规硶
+            axios.get(this.baseURL + "/Kf_POStockInBackBill/AuditProcessReportList", {
+                params: { "HInterID": this.rowForm.hmainid, "IsAudit": num, "CurUserName": sessionStorage["HUserName"] }
+            }).then(response => {
+                let result = response.data
+                if (result.code == 1) {
+                    this.checkDisabled = true
+                    this.abandoncheckDisabled = false
+                    this.$modal.msgSuccess('鎿嶄綔鎴愬姛');
+                }
+                else {
+                    this.$modal.msgError("閿欒:" + result.code + result.Message,);
+                }
+            }).catch(error => {
+                this.$modal.msgError("鎺ュ彛璇锋眰澶辫触!");
+            });
+        },
+        set_CloseBill(num) {
+            //閫昏緫鍏抽棴鏂规硶
+            axios.get(this.baseURL + "/Kf_POStockInBackBill/CloseKf_POStockInBackBill", {
+                params: { "HInterID": this.rowForm.hmainid, "Type": num, "CurUserName": sessionStorage["HUserName"] }
+            }).then(response => {
+                let result = response.data
+                if (result.code == 1) {
+                    this.checkDisabled = true
+                    this.abandoncheckDisabled = false
+                    this.$modal.msgSuccess('鎿嶄綔鎴愬姛');
+                }
+                else {
+                    this.$modal.msgError("閿欒:" + result.code + result.Message,);
+                }
+            }).catch(error => {
+                this.$modal.msgError("鎺ュ彛璇锋眰澶辫触!");
+            });
+        },
+        set_DropBill(num) {
+            //閫昏緫浣滃簾鏂规硶
+            axios.get(this.baseURL + "/Kf_POStockInBackBill/DropKf_POStockInBackBill", {
+                params: { "HInterID": this.rowForm.hmainid, "Type": num, "CurUserName": sessionStorage["HUserName"] }
+            }).then(response => {
+                let result = response.data
+                if (result.code == 1) {
+                    this.checkDisabled = true
+                    this.abandoncheckDisabled = false
+                    this.$modal.msgSuccess('鎿嶄綔鎴愬姛');
+                }
+                else {
+                    this.$modal.msgError("閿欒:" + result.code + result.Message,);
+                }
+            }).catch(error => {
+                this.$modal.msgError("鎺ュ彛璇锋眰澶辫触!");
+            });
+        },
+        //鎵撳嵃
+        get_PrintReport() {
+            if (this.ids.length != 1) {
+                this.$modal.msgError("璇烽�夋嫨涓�琛屾暟鎹�");
+            } else {
+                 this.printListShow = true;
+                            this.openPrintList = true;
+                // axios.get(this.baseURL + "/Kf_SellOutBill/CheckSellOutBill_IsExist", {
+                //         params: { HInterID: this.rowForm.hmainid },
+                //     })
+                //     .then((response) => {
+                //         var result = response.data;
+                //         if (result.count == 1) {
+                //             this.printListShow = true;
+                //             this.openPrintList = true;
+                //             // this.$router.push({ path:'/printList', query: { linterid: this.rowForm.hmainid,MyMsg:this.rowForm.hmainid,Type:'Kf_SellOutBillList' }})
+                //         } else {
+                //             this.$modal.msgError(result.code + result.Message);
+                //         }
+                //     })
+                //     .catch((error) => {
+                //         this.$modal.msgError("鎺ュ彛璇锋眰澶辫触!");
+                //     });
+            }
+            //  var content= ['../../BaseSet/SRM_OpenTmpList.html?linterid=' + data[0].hmainid.toString() + '&MyMsg=' + data[0].hmainid.toString() + '&Type=Kf_SellOutBillList', 'yes']
+        },
+        //#region 鏉$爜鏄庣粏
+        get_BarCodeDetail() {
+            // if (this.selectedRow.length !== 1) {
+            //   this.$message.warning('璇烽�夋嫨涓�琛屾暟鎹煡鐪嬫潯鐮佹槑缁嗭紒')
+            //   return
+            // }
+            this.barCodeDetailShow = true
+            this.$nextTick(() => {
+                this.$refs.barcodeDetail.open(this.rowForm)
+            })
+        },
     },
 };
 </script>
diff --git a/src/views/scMould/basicModeling/Gy_MaterialPackingRelationList.vue b/src/views/scMould/basicModeling/Gy_MaterialPackingRelationList.vue
index 710cc10..b584641 100644
--- a/src/views/scMould/basicModeling/Gy_MaterialPackingRelationList.vue
+++ b/src/views/scMould/basicModeling/Gy_MaterialPackingRelationList.vue
@@ -131,6 +131,36 @@
                 </el-button>
             </el-col>
             <el-col :span="1.5">
+                <el-button type="primary" icon="el-icon-delete" size="mini" :disabled="single"
+                    @click="set_CheckBill(0)">瀹℃牳
+                </el-button>
+            </el-col>
+            <el-col :span="1.5">
+                <el-button type="primary" icon="el-icon-delete" size="mini" :disabled="single"
+                    @click="set_CheckBill(1)">鍙嶅鏍�
+                </el-button>
+            </el-col>
+            <el-col :span="1.5">
+                <el-button type="primary" icon="el-icon-delete" size="mini" :disabled="single"
+                    @click="set_CloseBill(0)">鍏抽棴
+                </el-button>
+            </el-col>
+            <el-col :span="1.5">
+                <el-button type="primary" icon="el-icon-delete" size="mini" :disabled="single"
+                    @click="set_CloseBill(1)">鍙嶅叧闂�
+                </el-button>
+            </el-col>
+    <el-col :span="1.5">
+                <el-button type="primary" icon="el-icon-delete" size="mini" :disabled="single"
+                    @click="set_DropBill(0)">浣滃簾
+                </el-button>
+            </el-col>
+            <el-col :span="1.5">
+                <el-button type="primary" icon="el-icon-delete" size="mini" :disabled="single"
+                    @click="set_DropBill(1)">鍙嶄綔搴�
+                </el-button>
+            </el-col>
+            <el-col :span="1.5">
                 <el-button type="primary" icon="el-icon-date" size="mini" @click="handleRowHide">闅愯棌鍒楄缃�</el-button>
             </el-col>
         </el-row>
@@ -149,7 +179,7 @@
                             <div :style="item.style">
                                 <span v-if="column.property.includes('鏃ユ湡')">{{
                                     parseTime(row[column.property], "{y}-{m}-{d}")
-                                }}</span>
+                                    }}</span>
                                 <el-button type="text" @click="handleEdit(row, (OperationType = 3))"
                                     v-else-if="column.property == '鍗曟嵁鍙�'">{{ row.鍗曟嵁鍙� }}</el-button>
                                 <span v-else>{{ row[column.label] }}</span>
@@ -177,7 +207,7 @@
 <script>
 import axios from "axios";
 import RowSettings from "@/views/component/rowSettings";
-import Edit from "@/views/warehouse/shipment/Kf_StockOutRequestBill.vue";
+import Edit from "@/views/scMould/basicModeling/Gy_MaterialPackingRelation_Edit.vue";
 import PrintList from "@/views/component/printList";
 import BarCodeDetail from '@/views/component/BarCodeDetail'               //鏉$爜鏄庣粏缁勪欢
 import moment from "moment";
@@ -825,6 +855,60 @@
                 });
             }).catch(() => { });
         },
+        set_CheckBill(num) {
+            //閫昏緫瀹℃牳鏂规硶
+            axios.get(this.baseURL + "/Sc_MouldinventoryBill/CheckGy_MaterialMouldBillMain", {
+                params: { "HInterID": this.rowForm.hmainid, "IsAudit": num, "CurUserName": sessionStorage["HUserName"] }
+            }).then(response => {
+                let result = response.data
+                if (result.code == 1) {
+                    this.checkDisabled = true
+                    this.abandoncheckDisabled = false
+                    this.$modal.msgSuccess('鎿嶄綔鎴愬姛');
+                }
+                else {
+                    this.$modal.msgError("閿欒:" + result.code + result.Message,);
+                }
+            }).catch(error => {
+                this.$modal.msgError("鎺ュ彛璇锋眰澶辫触!");
+            });
+        },
+        set_CloseBill(num) {
+            //閫昏緫鍏抽棴鏂规硶
+            axios.get(this.baseURL + "/Gy_MaterialPackingRelation/CloseGy_MaterialPackingRelation", {
+                params: { "HInterID": this.rowForm.hmainid, "IsAudit": num, "CurUserName": sessionStorage["HUserName"] }
+            }).then(response => {
+                let result = response.data
+                if (result.code == 1) {
+                    this.checkDisabled = true
+                    this.abandoncheckDisabled = false
+                    this.$modal.msgSuccess('鎿嶄綔鎴愬姛');
+                }
+                else {
+                    this.$modal.msgError("閿欒:" + result.code + result.Message,);
+                }
+            }).catch(error => {
+                this.$modal.msgError("鎺ュ彛璇锋眰澶辫触!");
+            });
+        },
+        set_DropBill(num) {
+            //閫昏緫浣滃簾鏂规硶
+            axios.get(this.baseURL + "/Gy_MaterialPackingRelation/DeleteGy_MaterialPackingRelation", {
+                params: { "HInterID": this.rowForm.hmainid, "IsAudit": num, "CurUserName": sessionStorage["HUserName"] }
+            }).then(response => {
+                let result = response.data
+                if (result.code == 1) {
+                    this.checkDisabled = true
+                    this.abandoncheckDisabled = false
+                    this.$modal.msgSuccess('鎿嶄綔鎴愬姛');
+                }
+                else {
+                    this.$modal.msgError("閿欒:" + result.code + result.Message,);
+                }
+            }).catch(error => {
+                this.$modal.msgError("鎺ュ彛璇锋眰澶辫触!");
+            });
+        },
     },
 };
 </script>
diff --git a/src/views/scMould/basicModeling/Gy_MaterialPackingRelation_Edit.vue b/src/views/scMould/basicModeling/Gy_MaterialPackingRelation_Edit.vue
new file mode 100644
index 0000000..a5f41c5
--- /dev/null
+++ b/src/views/scMould/basicModeling/Gy_MaterialPackingRelation_Edit.vue
@@ -0,0 +1,830 @@
+<template>
+    <div v-loading="formLoading" v-if="formShow">
+        <div style=" margin-bottom: 10px; border-bottom: 1px solid #f6f6f6;">
+            <el-button type="primary" @click="submitForm" :disabled="subDisabled">淇� 瀛�</el-button>
+            <el-button type="primary" @click="close">閫� 鍑�</el-button>
+            <el-button type="primary" @click="set_CheckBill(0)" :disabled="checkDisabled">瀹� 鏍�</el-button>
+            <el-button type="primary" @click="set_CheckBill(1)" :disabled="abandoncheckDisabled">鍙嶅鏍�</el-button>
+        </div>
+        <div style="margin: 10px; font-size: 28px; font-weight: bold; text-align: center;">浜у搧鍖呰鍏宠仈淇℃伅</div>
+        <el-form ref="form" :model="form" :rules="rules" label-width="80px">
+            <el-tabs v-model="activeName" type="card">
+                <el-tab-pane label="鍩烘湰淇℃伅" name="first">
+                    <el-row>
+                        <el-col :span="6">
+                            <el-form-item label="鍗曟嵁鍙�" prop="HBillNo">
+                                <el-input v-model="form.HBillNo" placeholder="璇疯緭鍏ュ崟鎹彿" disabled />
+                            </el-form-item>
+                        </el-col>
+                        <el-col :span="6">
+                            <el-form-item label="鏃ユ湡" prop="HDate">
+                                <el-date-picker v-model="form.HDate" type="date" placeholder="閫夋嫨鏃ユ湡"
+                                    value-format="yyyy-MM-ddT">
+                                </el-date-picker>
+                            </el-form-item>
+                        </el-col>
+                        <el-col :span="6">
+                            <el-form-item label="椤圭洰鍚嶇О" prop="HProjectName">
+                                <el-input v-model="form.HProjectName" placeholder="璇疯緭鍏ラ」鐩悕绉�" />
+                            </el-form-item>
+                        </el-col>
+                        <el-col :span="6">
+                            <el-form-item label="瀹㈡埛" prop="HCusName">
+                                <el-input v-model="form.HCusName" placeholder="璇疯緭鍏ュ鎴�" disabled>
+                                    <el-button slot="append" icon="el-icon-search"
+                                        @click="openDataDialog(7)"></el-button>
+                                </el-input>
+                            </el-form-item>
+                        </el-col>
+                    </el-row>
+                    <el-row>
+                        <el-col :span="6">
+                            <el-form-item label="鐗╂枡浠g爜" prop="HMaterNumber">
+                                <el-input v-model="form.HMaterNumber" placeholder="璇疯緭鍏ョ墿鏂欎唬鐮�" disabled>
+                                    <el-button slot="append" icon="el-icon-search"
+                                        @click="openDataDialog(3)"></el-button>
+                                </el-input>
+                            </el-form-item>
+                        </el-col>
+                        <el-col :span="6">
+                            <el-form-item label="鐗╂枡鍚嶇О" prop="HMaterName">
+                                <el-input v-model="form.HMaterName" placeholder="璇疯緭鍏ョ墿鏂欏悕绉�" disabled />
+                            </el-form-item>
+                        </el-col>
+                        <el-col :span="6">
+                            <el-form-item label="瑙勬牸鍨嬪彿" prop="HMaterModel">
+                                <el-input v-model="form.HMaterModel" placeholder="璇疯緭鍏ヨ鏍煎瀷鍙�" disabled />
+                            </el-form-item>
+                        </el-col>
+                        <el-col :span="12">
+                            <el-form-item label="澶囨敞" prop="HRemark">
+                                <el-input v-model="form.HRemark" placeholder="璇疯緭鍏ュ娉�" />
+                            </el-form-item>
+                        </el-col>
+                    </el-row>
+                    <el-row>
+                        <el-col :span="6">
+                            <el-form-item label="缁勭粐" prop="HOrgID" label-width="128px">
+                                <el-select v-model="form.HOrgID" placeholder="璇烽�夋嫨" disabled>
+                                    <el-option v-for="(item, index) in organizationList" :key="index" :label="item.Name"
+                                        :value="item.ID">
+                                    </el-option>
+                                </el-select>
+                            </el-form-item>
+                        </el-col>
+                    </el-row>
+                </el-tab-pane>
+                <el-tab-pane label="鍒跺崟淇℃伅" name="third">
+                    <el-row>
+                        <el-col :span="6">
+                            <el-form-item label="鍒跺崟浜�" prop="HMaker">
+                                <el-input v-model="form.HMaker" placeholder="璇疯緭鍏ュ埗鍗曚汉" disabled />
+                            </el-form-item>
+                        </el-col>
+                        <el-col :span="6">
+                            <el-form-item label="淇敼浜�" prop="HUpDater">
+                                <el-input v-model="form.HUpDater" placeholder="璇疯緭鍏ヤ慨鏀逛汉" disabled />
+                            </el-form-item>
+                        </el-col>
+                        <el-col :span="6">
+                            <el-form-item label="瀹℃牳浜�" prop="HChecker">
+                                <el-input v-model="form.HChecker" placeholder="璇疯緭鍏ュ鏍镐汉" disabled />
+                            </el-form-item>
+                        </el-col>
+                        <el-col :span="6">
+                            <el-form-item label="鍏抽棴浜�" prop="HCloseMan">
+                                <el-input v-model="form.HCloseMan" placeholder="璇疯緭鍏ュ叧闂汉" disabled />
+                            </el-form-item>
+                        </el-col>
+                    </el-row>
+                    <el-row>
+                        <el-col :span="6">
+                            <el-form-item label="鍒跺崟鏃ユ湡" prop="HMakeDate">
+                                <el-date-picker v-model="form.HMakeDate" type="date" placeholder="閫夋嫨鍒跺崟鏃ユ湡" disabled>
+                                </el-date-picker>
+                            </el-form-item>
+                        </el-col>
+                        <el-col :span="6">
+                            <el-form-item label="淇敼鏃ユ湡" prop="HUpDateDate">
+                                <el-date-picker v-model="form.HUpDateDate" type="date" placeholder="閫夋嫨瀹℃牳鏃ユ湡" disabled>
+                                </el-date-picker>
+                            </el-form-item>
+                        </el-col>
+                        <el-col :span="6">
+                            <el-form-item label="瀹℃牳鏃ユ湡" prop="HCheckDate">
+                                <el-date-picker v-model="form.HCheckDate" type="date" placeholder="閫夋嫨瀹℃牳鏃ユ湡" disabled>
+                                </el-date-picker>
+                            </el-form-item>
+                        </el-col>
+                        <el-col :span="6">
+                            <el-form-item label="鍏抽棴鏃ユ湡" prop="HCloseDate">
+                                <el-date-picker v-model="form.HCloseDate" type="date" placeholder="閫夋嫨鍏抽棴鏃ユ湡" disabled>
+                                </el-date-picker>
+                            </el-form-item>
+                        </el-col>
+                    </el-row>
+                    <el-row>
+                        <el-col :span="6">
+                            <el-form-item label="浣滃簾浜�" prop="HDeleteMan">
+                                <el-input v-model="form.HDeleteMan" placeholder="璇疯緭鍏ヤ綔搴熶汉" disabled />
+                            </el-form-item>
+                        </el-col>
+                    </el-row>
+                    <el-row>
+                        <el-col :span="6">
+                            <el-form-item label="浣滃簾鏃ユ湡" prop="HDeleteDate">
+                                <el-date-picker v-model="form.HDeleteDate" type="date" placeholder="閫夋嫨浣滃簾鏃ユ湡" disabled>
+                                </el-date-picker>
+                            </el-form-item>
+                        </el-col>
+                    </el-row>
+                </el-tab-pane>
+            </el-tabs>
+            <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)"
+                    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-arrow-up" @click="handleMoveRowUp(zbSelForm)"
+                    size="mini">涓婄Щ</el-button>
+                <el-button type="success" plain icon="el-icon-arrow-down" @click="handleMoveRowDown(zbSelForm)"
+                    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-column type="selection" width="55" align="center" />
+                <el-table-column align="center" label="搴忓彿" type="index" width="80" />
+                <el-table-column align="center" label="鍖呰瀹瑰櫒浠g爜" width="120">
+                    <template slot-scope="scope">
+                        <el-input v-model="scope.row.HMouldNumber" placeholder="璇疯緭鍏ュ寘瑁呭鍣ㄤ唬鐮�"
+                            @keyup.native.f7="openDataDialog(8, scope.row)"
+                            @dblclick.native="openDataDialog(8, scope.row)" />
+                    </template>
+                </el-table-column>
+                <el-table-column align="center" label="鍖呰瀹瑰櫒鍚嶇О" width="120">
+                    <template slot-scope="scope">
+                        <span>{{ scope.row.HMouldName }}</span>
+                    </template>
+                </el-table-column>
+                <el-table-column align="center" label="鍖呰瀹瑰櫒鍒嗙被" width="120">
+                    <template slot-scope="scope">
+                        <span>{{ scope.row.HMouldType }}</span>
+                    </template>
+                </el-table-column>
+                <el-table-column align="center" label="鍖呰瀹瑰櫒鐢ㄩ��" width="120">
+                    <template slot-scope="scope">
+                        <span>{{ scope.row.HMouldPurpose }}</span>
+                    </template>
+                </el-table-column>
+                <el-table-column align="center" label="鍖呰瀹瑰櫒闀垮害" width="120">
+                    <template slot-scope="scope">
+                        <span>{{ scope.row.HMouldLength }}</span>
+                    </template>
+                </el-table-column>
+                <el-table-column align="center" label="鍖呰瀹瑰櫒楂樺害" width="120">
+                    <template slot-scope="scope">
+                        <span>{{ scope.row.HMouldHeight }}</span>
+                    </template>
+                </el-table-column>
+                <el-table-column align="center" label="鎶樺彔楂樺害" width="120">
+                    <template slot-scope="scope">
+                        <span>{{ scope.row.HMouldFoldHeight }}</span>
+                    </template>
+                </el-table-column>
+                <el-table-column align="center" label="瀹瑰櫒鍖呰浜у搧鏁伴噺" width="130">
+                    <template slot-scope="scope">
+                        <el-input-number v-model="scope.row.HSNP" :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">
+                        <el-select v-model="scope.row.HTransPackFlag" placeholder="璇烽�夋嫨" style="width: 100%">
+                            <el-option label="鍚�" :value='0' />
+                            <el-option label="鏄�" :value='1' />
+                        </el-select>
+                    </template>
+                </el-table-column>
+                <el-table-column align="center" label="鍙戣揣瀹瑰櫒鏍囪" width="120">
+                    <template slot-scope="scope">
+                        <el-select v-model="scope.row.HSendPackFlag" placeholder="璇烽�夋嫨" style="width: 100%">
+                            <el-option label="鍚�" :value='0' />
+                            <el-option label="鏄�" :value='1' />
+                        </el-select>
+                    </template>
+                </el-table-column>
+                <el-table-column align="center" label="榛樿鍛ㄨ浆瀹瑰櫒鏍囪" width="130">
+                    <template slot-scope="scope">
+                        <el-select v-model="scope.row.HDefaultTransPackFlag" placeholder="璇烽�夋嫨" style="width: 100%">
+                            <el-option label="鍚�" :value='0' />
+                            <el-option label="鏄�" :value='1' />
+                        </el-select>
+                    </template>
+                </el-table-column>
+                <el-table-column align="center" label="榛樿鍙戣揣瀹瑰櫒鏍囪" width="130">
+                    <template slot-scope="scope">
+                        <el-select v-model="scope.row.HDefaultSendPackFlag" placeholder="璇烽�夋嫨" style="width: 100%">
+                            <el-option label="鍚�" :value='0' />
+                            <el-option label="鏄�" :value='1' />
+                        </el-select>
+                    </template>
+                </el-table-column>
+                <el-table-column align="center" label="鍚敤鏍囪" width="120">
+                    <template slot-scope="scope">
+                        <el-select v-model="scope.row.HUseFlag" placeholder="璇烽�夋嫨" style="width: 100%">
+                            <el-option label="鍚�" :value='0' />
+                            <el-option label="鏄�" :value='1' />
+                        </el-select>
+                    </template>
+                </el-table-column>
+                <el-table-column align="center" label="澶囨敞" width="120">
+                    <template slot-scope="scope">
+                        <el-input v-model="scope.row.HRemark" />
+                    </template>
+                </el-table-column>
+                <el-table-column align="center" label="鎿嶄綔" width="55" fixed="right">
+                    <template slot-scope="scope">
+                        <el-button type="danger" icon="el-icon-delete" size="mini" circle
+                            @click="handleDeleteSysZb(scope.row)"></el-button>
+                    </template>
+                </el-table-column>
+            </el-table>
+        </el-form>
+        <!-- 寮圭獥 -->
+        <el-dialog :title="dialogTitle" :visible.sync="openData" width="1280px" append-to-body>
+            <Dept @deptEmitDb="dbEmitData" @deptEmit="emitData" :openPage="HModName" v-if="deptShow" />
+            <Warehouse @deptEmitDb="dbEmitData" @deptEmit="emitData" :openPage="HModName" v-if="warehouseShow" />
+            <Material @deptEmitDb="dbEmitData" @deptEmit="emitData" :openPage="HModName" v-if="materialShow" />
+            <GyEmployee @deptEmitDb="dbEmitData" @deptEmit="emitData" :openPage="HModName" v-if="gyEmployeeShow" />
+            <GySupplier @deptEmitDb="dbEmitData" @deptEmit="emitData" :openPage="HModName" v-if="gySupplierShow" />
+            <GyStockPlace @deptEmitDb="dbEmitData" @deptEmit="emitData" :openPage="HModName" v-if="gyStockPlaceShow" />
+            <GyCustomer @deptEmitDb="dbEmitData" @deptEmit="emitData" :openPage="HModName" v-if="gyCustomerShow" />
+            <GyMould @deptEmitDb="dbEmitData" @deptEmit="emitData" :openPage="HModName" v-if="gyMouldShow" />
+
+            <div slot="footer" class="dialog-footer">
+                <el-button type="primary" @click="deptClickSub">纭� 瀹�</el-button>
+                <el-button @click="deptClose">鍙� 娑�</el-button>
+            </div>
+        </el-dialog>
+        <el-dialog title="闅愯棌鍒楄缃�" :visible.sync="openRowHide" width="816px" append-to-body>
+            <RowSettings :colName="btResList" :HModName="HModName" @rowEditClose="rowSetClose" v-if="rowHideShow" />
+        </el-dialog>
+    </div>
+</template>
+
+<script>
+import axios from 'axios'
+import RowSettings from '@/views/component/rowSettings'
+import Dept from '@/views/basic/gy/gyDepartment.vue'
+import Warehouse from '@/views/basic/gyWarehouse/gyWarehouse.vue'
+import Material from '@/views/gyMaterial/GyMaterial.vue'
+import GyEmployee from '@/views/basic/gyEmployee/gyEmployee.vue'
+import GySupplier from '@/views/basic/gy/gySupplier.vue'
+import GyStockPlace from '@/views/basic/gyStockPlace/gyStockPlace.vue'
+import GyCustomer from '@/views/GyCustomer'
+import GyMould from '@/views/scMould/basicModeling/Gy_MouldFileList.vue'
+import moment from 'moment';
+export default {
+    name: 'Kf_StockOutRequestBill',
+    components: { Dept, Warehouse, Material, RowSettings, GyEmployee, GySupplier, GyStockPlace, GyCustomer, GyMould },
+    props: {
+        OperationType: { type: Number, },
+        linterid: { type: Number, },
+        HSouceBillType: { type: String, },
+        propsData: { type: String, },
+        copyType: { type: Number, },
+    },
+    data() {
+        return {
+            HModName: "Kf_StockOutRequestBill",
+            checkDisabled: true,
+            abandoncheckDisabled: true,
+            allVal: undefined,
+            zhiyuanType: '',
+            ckType: '',
+            formShow: false,
+            temp: undefined,
+            formLoading: true,
+            zzSelDis: false,
+            rowHideShow: false,
+            openRowHide: false,
+            hPriceTypeList: ['鎴愭湰浠�', '缁撶畻浠�'],
+            addBtnShow: false,
+            zbIndex: null,
+            zbSelForm: {},//瀛愯〃閫変腑鏁版嵁
+            dialogTypeNum: null,//閮ㄩ棬寮圭獥1锛屼粨搴撳脊绐�2
+            deptShow: false,//閮ㄩ棬鏁版嵁缁勪欢
+            warehouseShow: false,//浠撳簱鏁版嵁缁勪欢
+            materialShow: false,//鐗╂枡鏁版嵁缁勪欢
+            gyEmployeeShow: false,//閿�鍞憳鏁版嵁缁勪欢
+            gySupplierShow: false,
+            gyStockPlaceShow: false,
+            gyCustomerShow: false,
+            gyMouldShow: false,
+            deptform: {},//寮圭獥閫変腑鏁版嵁
+            openData: false,//鏁版嵁寮圭獥
+            dialogTitle: '',
+            organizationList: JSON.parse(sessionStorage.getItem('organizationList')),//缁勭粐鍒楄〃
+            subDisabled: false,//缂栬緫椤甸潰淇濆瓨鎸夐挳鏄惁绂佺敤(true绂佺敤锛宖alse鍙敤)
+            // OperationType: this.$route.query.OperationType,//淇濆瓨绫诲瀷锛堟柊澧�1淇敼3锛�
+            HInterID: null,
+            baseURL: process.env.VUE_APP_BASE_API,
+            checkedSysZb: [],
+            editData: [],//閿�鍞嚭搴撳崟瀛愯〃
+            editBtData: [],//瀛愯〃琛ㄥご
+            activeName: 'first',
+            // 寮瑰嚭灞傛爣棰�
+            title: "",
+            // 鏄惁鏄剧ず寮瑰嚭灞�
+            open: false,
+            // 鏃ユ湡鑼冨洿
+            dateRange: [],
+            // 鏌ヨ鍙傛暟
+            queryParams: {
+                HBillNo: '',
+                HInitTimeCycle: 29,
+                HProjectNumber: '',
+                HCusID: null,
+                HMaterNumber: '',
+                HMaterName: '',
+                ColName1: '',
+                ColName2: '',
+                ColName: '',
+                Comparator1: '',
+                Comparator2: '',
+                Comparator: '',
+                ColContent1: '',
+                ColContent2: '',
+                ColContent: '',
+            },
+            // 鏄剧ず鎼滅储鏉′欢
+            showSearch: true,
+            // 閫変腑鏁扮粍
+            ids: [],
+            // 闈炲崟涓鐢�
+            single: true,
+            // 闈炲涓鐢�
+            multiple: true,
+            // 閬僵灞�
+            loading: true,
+            btResList: [],
+            // 琛ㄥ崟鍙傛暟
+            form: {},
+            // 琛ㄥ崟鏍¢獙
+            rules: {
+                HCusName: [
+                    { required: true, message: "瀹㈡埛涓嶈兘涓虹┖", trigger: "blur" }
+                ],
+                HMaterNumber: [
+                    { required: true, message: "鐗╂枡淇℃伅涓嶈兘涓虹┖", trigger: "blur" }
+                ]
+            }
+        };
+    },
+    created() {
+        this.getdata()
+    },
+    methods: {
+        getdata() {
+            this.formShow = false
+            this.formLoading = true
+            if ((this.OperationType == 1 && this.copyType != 1) || (!this.OperationType && !this.copyType)) {
+                this.handleAdd()
+            } else if (this.OperationType == 3 || this.copyType == 1) {
+                this.handleUpdate()
+            }
+        },
+        // 鑾峰彇鍙傛暟_浼犻�掔殑JSON鏍煎紡鍙傛暟
+        getUrlVars_JSON() {
+            var datajson;
+            var str = this.propsData; //鑾峰彇閾炬帴涓紶閫掔殑鍙傛暟
+            var arr = str.substring(str.lastIndexOf("=") + 1);
+            datajson = JSON.parse(decodeURI(arr));
+            return datajson;
+        },
+        //鏍规嵁涓诲唴鐮佷笌瀛愬唴鐮佽幏鍙栨簮鍗曢攢鍞鍗曟暟鎹�
+        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("鎺ュ彛璇锋眰澶辫触!");
+            });
+        },
+        handleRowHide() {
+            this.rowHideShow = true
+            this.openRowHide = true
+        },
+        rowSetClose(val) {
+            this.rowHideShow = false
+            this.openRowHide = val
+        },
+
+        organizationChange(val) {
+            // let options=undefined
+            //  this.form=this.organizationList.find(option => option.ID === val)?.Name || '';
+        },
+        //閮ㄩ棬寮圭獥璧嬪��
+        dbEmitData(deptRow, num) {
+            // num=1閮ㄩ棬 num=2鍑哄簱浠撳簱
+            if (deptRow.HItemID||deptRow.hmainid) {
+                if (num == 3) {
+                    this.form.HMaterID = deptRow.HItemID;
+                    this.form.HMaterNumber = deptRow.鐗╂枡浠g爜;
+                    this.form.HMaterName = deptRow.鐗╂枡鍚嶇О;
+                    this.form.HMaterModel = deptRow.瑙勬牸鍨嬪彿
+                    this.materialShow = false
+                    this.openData = false
+                } else if (num == 7) {
+                    this.form.HCusName = deptRow.瀹㈡埛鍚嶇О
+                    this.form.HCusID = deptRow.HItemID
+                    this.gyCustomerShow = false
+                    this.openData = false
+                } else if (num == 8) {
+                    this.editData[this.zbIndex].HMouldID = deptRow.hmainid;
+                    this.editData[this.zbIndex].HMouldNumber = deptRow.妯″叿缂栧彿;
+                    this.editData[this.zbIndex].HMouldName = deptRow.妯″叿鍚嶇О;
+                    this.gyMouldShow = false
+                    this.openData = false
+                }
+            } else {
+                this.$modal.msgError("璇烽�夋嫨鍗曟潯鏁版嵁!");
+            }
+
+        },
+        emitData(deptRow, num) {
+            this.dialogTypeNum = num
+            this.deptform = deptRow
+        },
+        deptClickSub() {
+            this.dbEmitData(this.deptform, this.dialogTypeNum)
+            this.deptform = {}
+        },
+        deptClose() {
+            this.deptform = {}
+            this.openData = false
+        },
+
+        //閿�鍞嚭搴撳崟鏂板缂栬緫琛ㄥ崟鍒濆鍖�
+        reset() {
+            this.form = {
+                HInterID: 0,
+                HBillNo: '',
+                HDate: moment(new Date()).format('YYYY-MM-DD'),
+                HProjectName: '',
+                HCusName: '',
+                HCusID: 0,
+                HMaterNumber: '',
+                HMaterID: 0,
+                HMaterName: '',
+                HMaterModel: '',
+                HOrgID: sessionStorage["OrganizationID"] - 0,
+                HRemark: '',
+                HMaker: sessionStorage["HSupName"],
+                HChecker: '',
+                HDeleteMan: '',
+                HUpDater: '',
+                HCloseMan: '',
+                HMakerDate: moment(new Date()).format('YYYY-MM-DD'),
+                HCheckDate: '',
+                HCloseDate: '',
+                HUpDateDate: '',
+                HDeleteDate: '',
+            }
+            this.editData = []
+            this.editBtData = []
+            this.ids = []
+            this.subDisabled = false
+            this.addBtnShow = false
+            // this.$refs.tableData.clearSelection()
+            this.activeName = 'first'
+            this.resetForm("form");
+        },
+        //閫�鍑�
+        close() {
+            this.reset()
+            if (!this.OperationType && !this.copyType) {
+                const obj = { fullPath: this.$route.path, path: this.$route.path, name: this.$route.name, };
+                this.$tab.closePage(obj).then(res => {
+                    const latestView = res.visitedViews.slice(-1)[0]
+                    if (latestView) {
+                        this.$router.push(latestView.fullPath)
+                    } else {
+                        if (obj.name === 'Dashboard') {
+                            this.$router.replace({ path: '/redirect' + obj.fullPath })
+                        } else {
+                            this.$router.push('/')
+                        }
+                    }
+                });
+            } else {
+                this.formShow = false
+                this.$emit('editClose', false)
+            }
+        },
+        //鏍规嵁鐢ㄦ埛鑾峰彇瀵瑰簲鑱屽憳銆侀儴闂ㄣ�侀攢鍞富绠�
+        getCzyglByUser() {
+            axios.get(this.baseURL + '/Xs_SeOrderBill/getCzyglByUser', {
+                params: { "CurUserName": sessionStorage["HUserName"] }
+            }).then(response => {
+                let dataForm = response.data.data[0]
+                this.form.HDeptID = dataForm.HDeptID
+                this.form.HDeptName = dataForm.HDeptName
+                this.form.HEmpID = dataForm.HEmpID
+                this.form.HEmpName = dataForm.HEmpName
+                this.form.HManagerID = dataForm.HManagerID
+                this.form.HManagerName = dataForm.HManagerName
+            }).catch(error => {
+                this.$modal.msgError("鎺ュ彛璇锋眰澶辫触!");
+            });
+        },
+        /** 鏂板鎸夐挳鎿嶄綔 */
+        handleAdd() {
+            this.reset()
+            //鏂板鑾峰彇鍗曟嵁鍙�
+            this.getHBillNo()
+            this.form.HDate = moment(new Date()).format('YYYY-MM-DDTHH:mm:ss')
+            if (this.OperationType == 1) {
+                this.handleAddSysZb()
+            }
+            this.$nextTick(() => {
+                this.formShow = true
+                this.formLoading = false
+            })
+        },
+        getHBillNo() {
+            axios.get(this.baseURL + "/Web/GetMAXNum", {
+                params: {
+                    HBillType: '3339'
+                }
+            }).then(response => {
+                this.form.HMaker = sessionStorage["HUserName"]
+                this.form.HBillNo = response.data.data[0].HBillNo
+                this.form.HInterID = response.data.data[0].HInterID
+                // this.copyType = 0
+                // this.getCzyglByUser()
+            }).catch(error => {
+                this.$modal.msgError("鎺ュ彛璇锋眰澶辫触!");
+            });
+        },
+        /** 淇敼鎸夐挳鎿嶄綔 */
+        handleUpdate() {
+            this.reset()
+            let rowHmainid = this.linterid.toString()
+            axios.get(this.baseURL + "/Gy_MaterialPackingRelation/Gy_MaterialPackingRelationEditList", {
+                params: { 'HInterID': rowHmainid, "user": sessionStorage["HUserName"] }
+            }).then(response => {
+                if (response.data.count == 1) {
+                    var result = response.data
+                    var data = response.data.data[0]
+                    this.allVal = data
+                    this.form.BillType = data.HSourceBillType
+                    if (this.copyType == 1) {
+                        this.getHBillNo()
+                    } else {
+                        this.form.HInterID = data.HInterID
+                        this.form.HBillNo = data.鍗曟嵁鍙�
+                        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.checkDisabled = false
+                        this.abandoncheckDisabled = false
+                    }
+                    this.form.HCusID = data.HCusID
+                    this.form.HCusName = data.瀹㈡埛
+                    this.form.HProjectName = data.椤圭洰鍚嶇О
+                    this.form.HMaterID = data.HMaterID
+                    this.form.HMaterNumber = data.鐗╂枡浠g爜
+                    this.form.HMaterName = data.鐗╂枡鍚嶇О
+                    this.form.HMaterModel = data.鐗╂枡鍨嬪彿
+                    this.form.HRemark = data.澶囨敞
+                    this.form.HOrgID = data.HOrgID
+                    this.editData = result.data
+                }
+                this.formShow = true
+                this.formLoading = false
+            }).catch(error => {
+                console.log(error)
+                this.$modal.msgError("鎺ュ彛璇锋眰澶辫触!");
+            });
+        },
+        /** 瀛愯〃鏄庣粏搴忓彿 */
+        rowSysZbIndex({ row, rowIndex }) {
+            row.index = rowIndex + 1;
+        },
+        /** 缂栬緫椤靛瓙琛ㄦ坊鍔犳寜閽搷浣� */
+        handleAddSysZb(index, num) {
+            if (num == 1 && !index) {
+                this.$modal.msgError("璇烽�夋嫨涓�琛屾暟鎹紪杈�!");
+            } else {
+                let obj = {
+                    "HMouldID": 0,
+                    "HMouldNumber": "",
+                    "HMouldName": "",
+                    "HMouldType": "",
+                    "HMouldPurpose": "",
+                    "HMouldLength": 0,
+                    "HMouldWidth": 0,
+                    "HMouldHeight": 0,
+                    "HMouldFoldHeight": 0,
+                    "HSNP": 0,
+                    "HTransPackFlag": 0,
+                    "HSendPackFlag": 0,
+                    "HDefaultTransPackFlag": 0,
+                    "HDefaultSendPackFlag": 0,
+                    "HUseFlag": 0,
+                    "HRemark": ""
+                }
+                if (index) {
+                    this.editData.splice(index, 0, obj);
+                    this.$set(this.editData, index, obj)
+                } else {
+                    this.editData.push(obj);
+                }
+            }
+        },
+        handleCopyZbRow() {
+            if (!this.zbIndex) {
+                this.$modal.msgError("璇烽�夋嫨涓�琛屾暟鎹�")
+            } else {
+                let copyRow = JSON.parse(JSON.stringify(this.zbSelForm))
+                this.editData.push(copyRow);
+            }
+        },
+        handleMoveRowUp(zbSelForm) {
+            if (!this.zbIndex) {
+                this.$modal.msgError("璇烽�夋嫨涓�琛屾暟鎹�")
+            } else {
+                if (zbSelForm.index == 1) {
+                    this.$modal.msgError("绗竴琛屾暟鎹棤娉曚笂绉�");
+                } else { // 纭繚涓嶆槸绗竴琛�
+                    let num = zbSelForm.index - 1
+                    const record = this.editData.splice(num, 1)[0];
+                    this.editData.splice(num - 1, 0, record);
+                }
+            }
+        },
+        handleMoveRowDown(zbSelForm) {
+            if (!this.zbIndex) {
+                this.$modal.msgError("璇烽�夋嫨涓�琛屾暟鎹�")
+            } else {
+                if (zbSelForm.index == this.editData.length) {
+                    this.$modal.msgError("鏈�鍚庝竴琛屾暟鎹棤娉曚笅绉�");
+                } else { // 纭繚涓嶆槸绗竴琛�
+                    let num = zbSelForm.index - 1
+                    const record = this.editData.splice(num, 1)[0];
+                    this.editData.splice(num + 1, 0, record);
+                }
+            }
+        },
+        /** 缂栬緫椤靛瓙琛ㄥ垹闄ゆ寜閽搷浣� */
+        handleDeleteSysZb(row) {
+            this.checkedSysZb = []
+            this.checkedSysZb.push(row.index)
+            if (this.checkedSysZb.length == 0) {
+                this.$modal.msgError("璇峰厛閫夋嫨瑕佸垹闄ょ殑鍟嗗搧璁㈠崟鏄庣粏鏁版嵁");
+            } else {
+                const editData = this.editData;
+                const checkedSysZb = this.checkedSysZb;
+                this.editData = editData.filter(function (item) {
+                    return checkedSysZb.indexOf(item.index) == -1
+                });
+            }
+        },
+        /** 缂栬緫椤靛瓙琛ㄥ閫夋閫変腑鏁版嵁 */
+        handleTableZbEdit(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.zbTable.toggleRowSelection(del_row, false) //璁剧疆杩欎竴琛屽彇娑堥�変腑
+            }
+        },
+
+        // 缂栬緫鎻愪氦淇濆瓨
+        submitForm() {
+            this.$refs["form"].validate(valid => {
+                if (valid) {
+                    let fhck = false
+                    this.editData.map((item, index) => {
+                        if (!item.HMouldID) {
+                            fhck = true
+                            this.$modal.msgError("绗�" + (index + 1) + "琛岋細鍖呰瀹瑰櫒涓嶈兘涓虹┖锛�");
+                        }
+                    })
+                    var refSav = "";
+                    if (this.OperationType == 1 || this.OperationType == 2) {
+                        refSav = "Add";
+                    }
+                    if (this.OperationType == 3) {
+                        refSav = "Update";
+                        this.form.HUpdater = sessionStorage["HUserName"];
+                        this.form.HUpdaterDate = moment(new Date()).format('YYYY-MM-DD')
+                    }
+                    this.$nextTick(() => {
+                        if (!fhck) {
+                            var sMainStr = JSON.stringify(this.form);
+                            var sSubStr = JSON.stringify(this.editData);
+                            var sMainSub = sMainStr + ';' + sSubStr + ';' + refSav + ";" + sessionStorage["HUserName"];
+                            axios({
+                                method: 'post',
+                                url: this.baseURL + "/Gy_MaterialPackingRelation/SaveGy_MaterialPackingRelation",
+                                data: {
+                                    'sMainSub': sMainSub
+                                },
+                            }).then(response => {
+                                if (response.data.count == 1) {
+                                    this.subDisabled = true//璁剧疆淇濆瓨鎸夐挳涓嶅彲鐢�    
+                                    this.checkDisabled = false
+                                    this.$modal.msgSuccess(response.data.Message);
+                                    // this.close()
+                                } else {
+                                    this.$modal.msgError(response.data.Message);
+                                }
+                            }).catch(error => {
+                                this.$modal.msgError("鎺ュ彛璇锋眰澶辫触!");
+                            });
+                        }
+                    })
+                }
+            });
+        },
+        // 鍙嶅鏍�/瀹℃牳鏁版嵁
+        set_CheckBill(num) {
+            //閫昏緫瀹℃牳鏂规硶
+            axios.get(this.baseURL + "/Sc_MouldinventoryBill/CheckGy_MaterialMouldBillMain", {
+                params: { "HInterID": this.form.HInterID, "IsAudit": num, "CurUserName": sessionStorage["HUserName"] }
+            }).then(response => {
+                let result = response.data
+                if (result.code == 1) {
+                    this.checkDisabled = true
+                    this.abandoncheckDisabled = false
+                    this.$modal.msgSuccess('鎿嶄綔鎴愬姛');
+                }
+                else {
+                    this.$modal.msgError("閿欒:" + result.code + result.Message,);
+                }
+            }).catch(error => {
+                this.$modal.msgError("鎺ュ彛璇锋眰澶辫触!");
+            });
+        },
+        showReset() {
+            this.deptShow = false
+            this.warehouseShow = false
+            this.materialShow = false
+            this.gyEmployeeShow = false
+            this.gySupplierShow = false
+            this.gyStockPlaceShow = false
+            this.gyCustomerShow = false
+            this.gyMouldShow = false
+        },
+        //  鎵撳紑鏁版嵁鍒楄〃寮圭獥
+        openDataDialog(num, row) {
+            //num1閮ㄩ棬锛�2鍑哄簱浠撳簱锛�3鐗╂枡锛�4閿�鍞憳
+            if (row) {
+                this.zbIndex = row.index - 1
+            }
+            this.showReset()
+            if (num == 3) {
+                this.dialogTitle = '鐗╂枡鍒楄〃'
+                this.materialShow = true
+                this.openData = true
+            } else if (num == 7) {
+                this.dialogTitle = '瀹㈡埛鍒楄〃'
+                this.gyCustomerShow = true
+                this.openData = true
+            } else if (num == 8) {
+                this.dialogTitle = '鍣ㄥ叿鍒楄〃'
+                this.gyMouldShow = true
+                this.openData = true
+            }
+
+        },
+    }
+};
+</script>
+<style>
+.xsckdBox .el-date-editor.el-input {
+    width: 100%;
+}
+</style>
diff --git a/src/views/warehouse/barcodeMaster/Gy_BarCodeBill copy.vue b/src/views/warehouse/barcodeMaster/Gy_BarCodeBill copy.vue
deleted file mode 100644
index 3331bf6..0000000
--- a/src/views/warehouse/barcodeMaster/Gy_BarCodeBill copy.vue
+++ /dev/null
@@ -1,1088 +0,0 @@
-<template>
-    <div v-loading="formLoading" v-if="formShow" style="margin: 10px;">
-        <div style=" margin-bottom: 10px; border-bottom: 1px solid #f6f6f6;">
-            <el-button type="primary">棰勮鎵撳嵃</el-button>
-            <el-button type="primary">鐢熸垚</el-button>
-            <el-button type="primary">閲嶇疆</el-button>
-            <el-button type="primary">搴撳瓨</el-button>
-            <el-button type="primary">鍚屾璧勬枡</el-button>
-            <el-button type="primary">鎵规</el-button>
-            <el-button type="primary" @click="close">閫� 鍑�</el-button>
-        </div>
-        <div style="margin: 10px; font-size: 28px; font-weight: bold; text-align: center;">鍣ㄥ叿妗f缂栬緫</div>
-        <el-form ref="form" :model="form" :rules="rules" label-width="80px">
-            <el-row>
-                <el-col :span="6">
-                    <el-form-item label="缁勭粐" prop="HOrgID">
-                        <el-select v-model="form.HOrgID" placeholder="璇烽�夋嫨缁勭粐" @change="organizationChange"
-                            style="width: 100%">
-                            <el-option v-for="(item, index) in organizationList" :key="index" :label="item.Name"
-                                :value="item.ID">
-                            </el-option>
-                        </el-select>
-                    </el-form-item>
-                </el-col>
-                <el-col :span="6">
-                    <el-form-item label="宸ュ巶浠g爜" prop="HWorksNumber">
-                        <el-select v-model="form.HWorksNumber" placeholder="璇烽�夋嫨缁勭粐" style="width: 100%">
-                            <el-option v-for="(item, index) in HWorksNumberList" :key="index" :label="item"
-                                :value="item">
-                            </el-option>
-                        </el-select>
-                    </el-form-item>
-                </el-col>
-                <el-col :span="6">
-                    <el-form-item label="鏃ユ湡" prop="HDate">
-                        <el-date-picker v-model="form.HDate" type="date" placeholder="閫夋嫨鏃ユ湡" value-format="yyyy-MM-ddT"
-                            style="width: 100%"> </el-date-picker>
-                    </el-form-item>
-                </el-col>
-            </el-row>
-            <el-row>
-                <el-col :span="6">
-                    <el-form-item label="婧愬崟绫诲瀷" prop="HSourceBillType">
-                        <el-select v-model="form.HSourceBillType" placeholder="璇烽�夋嫨" style="width: 100%"
-                            @change="HSourceBillTypeChange">
-                            <el-option v-for="(item, index) in HSourceBillTypeList" :key="index" :label="item.label"
-                                :value="item.value">
-                            </el-option>
-                        </el-select>
-                    </el-form-item>
-                </el-col>
-                <el-col :span="6">
-                    <el-form-item label="閫夊崟鍙�" prop="HSourceBillNo">
-                        <el-input v-model="form.HSourceBillNo" placeholder="璇疯緭鍏ラ�夊崟鍙�" disabled>
-                            <el-button slot="append" icon="el-icon-search" @click="openDataDialog(openNum)"></el-button>
-                        </el-input>
-                    </el-form-item>
-                </el-col>
-                <el-col :span="6">
-                    <el-form-item label="鏉$爜绫诲瀷" prop="HBarCodeType">
-                        <el-select v-model="form.HBarCodeType" placeholder="璇烽�夋嫨" style="width: 100%">
-                            <el-option v-for="(item, index) in HBarCodeTypeList" :key="index" :label="item"
-                                :value="item">
-                            </el-option>
-                        </el-select>
-                    </el-form-item>
-                </el-col>
-            </el-row>
-            <el-tabs type="border-card">
-                <el-tab-pane label="鐗╂枡淇℃伅">
-                    <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="handleCopyZbRow"
-                            size="mini">澶嶅埗涓�琛�</el-button>
-                    </div>
-                    <el-table :data="editWlxxData" style="width: 100%" height="480" width="100%" ref="wlxxzbTable"
-                        @selection-change="handleTableWlxxZbEdit" :row-class-name="wlxxzbRowSysZbIndex" border>
-                        <el-table-column type="selection" width="55" align="center" />
-                        <el-table-column align="center" label="搴忓彿" type="index" width="80" fixed />
-                        <template v-for="(item, index) in wlxxBtList">
-                            <el-table-column align="center" :prop="item.field" :label="item.title" :width="item.width"
-                                :key="index" show-overflow-tooltip v-if="!item.hide">
-                                <template slot-scope="{row,  column }">
-                                    <div :style="item.style">
-                                        <el-input v-if="item.edit == 'text'" v-model="row[column.label]" />
-                                        <el-input-number v-else-if="item.edit == 'number'" v-model="row[column.label]"
-                                            :min="0" controls-position="right" style="width: 100%;" />
-                                        <el-date-picker v-else-if="item.edit == 'date'" v-model="row[column.label]"
-                                            type="date" placeholder="閫夋嫨鏃ユ湡" value-format="yyyy-MM-ddT"
-                                            style="width: 100%"> </el-date-picker>
-                                        <el-checkbox v-else-if="item.edit == 'checkbox'"
-                                            v-model="row[column.label]"></el-checkbox>
-                                        <span v-else>{{ row[column.label] }}</span>
-                                    </div>
-                                </template>
-                            </el-table-column>
-                        </template>
-                        <el-table-column align="center" label="鎿嶄綔" width="55" fixed="right">
-                            <template slot-scope="scope">
-                                <el-button type="danger" icon="el-icon-delete" size="mini" circle
-                                    @click="handleDeleteSysZb(scope.row)"></el-button>
-                            </template>
-                        </el-table-column>
-                    </el-table>
-                </el-tab-pane>
-                <el-tab-pane label="鏉$爜淇℃伅">
-                    <el-table :data="editTmData" style="width: 100%" height="480" width="100%" ref="tbzbTable"
-                        @selection-change="handleTableWlxxZbEdit" :row-class-name="wlxxzbRowSysZbIndex" border>
-                        <el-table-column type="selection" width="55" align="center" />
-                        <el-table-column align="center" label="搴忓彿" type="index" width="80" fixed />
-                        <template v-for="(item, index) in tmBtList">
-                            <el-table-column align="center" :prop="item.field" :label="item.title" :width="item.width"
-                                :key="index" show-overflow-tooltip v-if="!item.hide">
-                                <template slot-scope="{row,  column }">
-                                    <div :style="item.style">
-                                        <el-input v-if="item.edit == 'text'" v-model="row[column.label]" />
-                                        <el-input-number v-else-if="item.edit == 'number'" v-model="row[column.label]"
-                                            :min="0" controls-position="right" style="width: 100%;" />
-                                        <el-date-picker v-else-if="item.edit == 'date'" v-model="row[column.label]"
-                                            type="date" placeholder="閫夋嫨鏃ユ湡" value-format="yyyy-MM-ddT"
-                                            style="width: 100%"> </el-date-picker>
-                                        <el-checkbox v-else-if="item.edit == 'checkbox'"
-                                            v-model="row[column.label]"></el-checkbox>
-                                        <span v-else>{{ row[column.label] }}</span>
-                                    </div>
-                                </template>
-                            </el-table-column>
-                        </template>
-                        <el-table-column align="center" label="鎿嶄綔" width="55" fixed="right">
-                            <template slot-scope="scope">
-                                <el-button type="danger" icon="el-icon-delete" size="mini" circle
-                                    @click="handleDeleteSysZb(scope.row)"></el-button>
-                            </template>
-                        </el-table-column>
-                    </el-table>
-                </el-tab-pane>
-                <el-tab-pane label="妗f鍒楄〃"><el-table :data="editDaData" style="width: 100%" height="480" width="100%"
-                        ref="dazbTable" @selection-change="handleTableWlxxZbEdit" :row-class-name="wlxxzbRowSysZbIndex"
-                        border>
-                        <el-table-column type="selection" width="55" align="center" />
-                        <el-table-column align="center" label="搴忓彿" type="index" width="80" fixed />
-                        <template v-for="(item, index) in daBtList">
-                            <el-table-column align="center" :prop="item.field" :label="item.title" :width="item.width"
-                                :key="index" show-overflow-tooltip v-if="!item.hide">
-                                <template slot-scope="{row,  column }">
-                                    <div :style="item.style">
-                                        <el-input v-if="item.edit == 'text'" v-model="row[column.label]" />
-                                        <el-input-number v-else-if="item.edit == 'number'" v-model="row[column.label]"
-                                            :min="0" controls-position="right" style="width: 100%;" />
-                                        <el-date-picker v-else-if="item.edit == 'date'" v-model="row[column.label]"
-                                            type="date" placeholder="閫夋嫨鏃ユ湡" value-format="yyyy-MM-ddT"
-                                            style="width: 100%"> </el-date-picker>
-                                        <el-checkbox v-else-if="item.edit == 'checkbox'"
-                                            v-model="row[column.label]"></el-checkbox>
-                                        <span v-else>{{ row[column.label] }}</span>
-                                    </div>
-                                </template>
-                            </el-table-column>
-                        </template>
-                        <el-table-column align="center" label="鎿嶄綔" width="55" fixed="right">
-                            <template slot-scope="scope">
-                                <el-button type="danger" icon="el-icon-delete" size="mini" circle
-                                    @click="handleDeleteSysZb(scope.row)"></el-button>
-                            </template>
-                        </el-table-column>
-                    </el-table></el-tab-pane>
-            </el-tabs>
-        </el-form>
-        <!-- 閮ㄩ棬寮圭獥 -->
-        <el-dialog :title="dialogTitle" :visible.sync="openData" width="1280px" append-to-body>
-            <Dept @deptEmitDb="dbEmitData" @deptEmit="emitData" v-if="deptShow" />
-            <Warehouse @deptEmitDb="dbEmitData" @deptEmit="emitData" v-if="warehouseShow" />
-            <Material @deptEmitDb="dbEmitData" @deptEmit="emitData" v-if="materialShow" />
-            <GyEmployee @deptEmitDb="dbEmitData" @deptEmit="emitData" :openPage="HModName" v-if="gyEmployeeShow" />
-            <ScICMOBillList @deptEmitDb="dbEmitData" @deptEmit="emitData" :openPage="HModName" v-if="ScICMOBillShow" />
-            <div slot="footer" class="dialog-footer">
-                <el-button type="primary" @click="deptClickSub">纭� 瀹�</el-button>
-                <el-button @click="deptClose">鍙� 娑�</el-button>
-            </div>
-        </el-dialog>
-    </div>
-</template>
-<script>
-import axios from 'axios'
-import Dept from '@/views/component/dept'
-import Warehouse from '@/views/component/warehouse'
-import Material from '@/views/component/material'
-import RowSettings from '@/views/component/rowSettings'
-import GyEmployee from '@/views/basic/gyEmployee/gyEmployee.vue'
-import ScICMOBillList from '@/views/ICMO/ScICMOBillList.vue'
-import moment from 'moment';
-
-export default {
-    name: 'Gy_BarCodeBill',
-    components: { Dept, Warehouse, Material, RowSettings, GyEmployee, ScICMOBillList },
-    props: {
-        OperationType: { type: Number, },
-        linterid: { type: Number, },
-        HSouceBillType: { type: String, },
-        propsData: { type: String, },
-        copyType: { type: Number, },
-    },
-    data() {
-        return {
-            HModName: "Gy_BarCodeBill",
-            openNum: 10,
-            zbDataShow:true,
-            HSourceBillTypeList: [
-                { value: 1, label: '鐢熶骇璁㈠崟', },
-                { value: 2, label: '鐢熶骇姹囨姤鍗�', },
-                { value: 3, label: '閲囪喘璁㈠崟', },
-                { value: 4, label: '鏀舵枡閫氱煡鍗�', },
-                { value: 5, label: '濮斿璁㈠崟', },
-                { value: 6, label: '鐢熶骇鍏ュ簱鍗�', },
-                { value: 7, label: '閲囪喘鍏ュ簱鍗�', },
-                { value: 8, label: '閿�鍞��璐у崟', },
-                { value: 9, label: '鐢熶骇閫�鏂欏崟', },
-                { value: 10, label: '宸ュ簭娴佽浆鍗�', },
-                { value: 11, label: '閿�鍞嚭搴撳崟', },
-                { value: 12, label: '棰嗘枡鍑哄簱鍗�', }
-            ],
-            wlxxBtList: [{ field: 'HMainID', title: '婧愬崟涓诲唴鐮�', width: 100, hide: true }
-                , { field: 'HSubID', title: '婧愬崟瀛愬唴鐮�', width: 100, hide: true }
-                , { field: 'HSourceBillSEQ', title: '婧愬崟琛屽彿', width: 100, hide: true }
-                , { field: 'HBillNo', title: '婧愬崟鍗曞彿', width: 200 }
-                , { field: 'HMaterID', title: '鐗╂枡ID', width: 100, hide: true }
-                , { field: 'HMaterNumber', title: '鐗╂枡浠g爜', edit: 'text', event: 'HMaterNumber', width: 200 }
-                , { field: 'HMaterName', title: '鐗╂枡鍚嶇О', width: 200 }
-                , { field: 'HMaterModel', title: '瑙勬牸鍨嬪彿', width: 200 }
-                , { field: 'HCusModel', title: '瀹㈡埛瑙勬牸鍨嬪彿', edit: 'text', width: 200 }
-                , { field: 'HCusMaterName', title: '瀹㈡埛鐗╂枡鍚嶇О', edit: 'text', width: 200 }
-                , { field: 'HEmpID', title: '鎿嶄綔鍛業D', width: 100, hide: true }
-                , { field: 'HEmpNumber', title: '鎿嶄綔鍛樹唬鐮�', edit: 'text', width: 200, event: 'HEmpNumber' }
-                , { field: 'HEmpName', title: '鎿嶄綔鍛�', width: 200 }
-                , { field: 'HGroupID', title: '鐝粍ID', width: 100, hide: true }
-                , { field: 'HGroupNumber', title: '鐝粍浠g爜', edit: 'text', width: 200, event: 'HGroupNumber' }
-                , { field: 'HGroupName', title: '鐝粍鍚嶇О', width: 200 }
-                , { field: 'HCheckEmpName', title: '妫�楠屽憳', width: 200, edit: 'text' }
-                , { field: 'HBatchNo', title: '鎵瑰彿', edit: 'text', width: 100 }
-                , { field: 'HMTONo', title: '璁″垝璺熻釜鍙�', width: 100, edit: 'text' }
-                , { field: 'HQty', title: '鏁伴噺', edit: 'number', width: 100, totalRow: true }
-                , { field: 'HMinQty', title: '鏈�灏忓寘瑁呮暟', edit: 'number', totalRow: true, width: 100 }
-                , { field: 'HBQty', title: '绠辨暟', width: 100, totalRow: true }
-                , { field: 'HPackQty', title: '澶栫鏁�', edit: 'text', width: 100, totalRow: true }
-                , { field: 'HCoilNO', title: '閽㈠嵎鎹嗗寘鍙�', edit: 'text', width: 100 }
-                , { field: 'HFurnaceNO', title: '鐐夊彿', edit: 'text', width: 100 }
-                , { field: 'HFactory', title: '鍘傚晢', edit: 'text', width: 100 }
-                , { field: 'HCusID', title: '瀹㈡埛ID', width: 100, hide: true }
-                , { field: 'HCusNumber', title: '瀹㈡埛浠g爜', edit: 'text', event: 'HCusNumber', width: 120 }
-                , { field: 'HCusName', title: '瀹㈡埛鍚嶇О', width: 120 }
-                , { field: 'HSeOrderBillNo', title: '閿�鍞鍗曞彿', width: 200 }
-                , { field: 'HRemark', title: '澶囨敞', edit: 'text', width: 100 }
-                , { field: 'HProduceDate', title: '鐢熶骇鏃ユ湡', edit: 'date', event: 'HProduceDate', width: 160 }
-                , { field: 'HExpiryDate', title: '淇濊川鏈熻嚦', edit: 'date', event: 'HExpiryDate', width: 160 }
-                , { field: 'HheatNO', title: '鐑鐞�', edit: 'text', width: 100 }
-                , { field: 'HAuxPropID', title: '杈呭姪灞炴�D', width: 100, hide: true }
-                , { field: 'HAuxPropNumber', title: '杈呭姪灞炴�т唬鐮�', edit: 'text', event: 'HAuxPropNumber', width: 100 }
-                , { field: 'HAuxPropName', title: '杈呭姪灞炴�у悕绉�', width: 100 }
-                , { field: 'HUnitID', title: '璁¢噺鍗曚綅ID', width: 100, hide: true }
-                , { field: 'HUnitNumber', title: '璁¢噺鍗曚綅浠g爜', edit: 'text', event: 'HUnitNumber', width: 100 }
-                , { field: 'HUnitName', title: '璁¢噺鍗曚綅', width: 100 }
-                , { field: 'HAuxQty', title: '杈呭崟浣嶆暟閲�', edit: 'text', width: 100, totalRow: true }
-                , { field: 'HExpirationDateFlag', title: '鏄惁鍚敤淇濊川鏈�', width: 120, edit: 'checkbox', templet: '#switchTp3', unresize: false }
-                , { field: 'HGiveAwayFlag', title: '鏄惁璧犲搧', width: 100, edit: 'checkbox', templet: '#switchTpl', unresize: false }
-                , { field: 'HDate', title: '鏉$爜鏃ユ湡', width: 100, hide: true }
-            ],
-            tmBtList: [
-                { field: 'HBarCode2', title: '鏉$爜缂栧彿', width: 100 }
-                , { field: 'HMaterNumber2', title: '鐗╂枡浠g爜', width: 100 }
-                , { field: 'HMaterName2', title: '鐗╂枡鍚嶇О', width: 100 }
-                , { field: 'HMaterModel2', title: '瑙勬牸鍨嬪彿', width: 100 }
-                , { field: 'HAuxPropNumber2', title: '杈呭姪灞炴�т唬鐮�', width: 100 }
-                , { field: 'HAuxPropName2', title: '杈呭姪灞炴��', event: 'HWHCode', width: 120 }
-                , { field: 'HGiveAwayFlag2', title: '鏄惁璧犲搧', width: 120, templet: '#switchTpl', unresize: false }
-                , { field: 'HUnitCode2', title: '璁¢噺鍗曚綅浠g爜', width: 120 }
-                , { field: 'HUnitName2', title: '璁¢噺鍗曚綅', width: 120 }
-                , { field: 'HQty2', title: '鏁伴噺', width: 120 }
-                , { field: 'HDate2', title: '杩涙枡鏃ユ湡', width: 120 }
-                , { field: 'HCusNumber2', title: '瀹㈡埛浠g爜', width: 120 }
-                , { field: 'HCusName2', title: '瀹㈡埛', width: 120 }
-                , { field: 'HSourceBillNo2', title: '婧愬崟鍗曞彿', width: 120 }
-                , { field: 'HSeOrderBillNo2', title: '閿�鍞鍗曞彿', width: 120 }
-                , { field: 'HRemark2', title: '澶囨敞', width: 120 }
-                , { field: 'HMTONo2', title: '璁″垝璺熻釜鍙�', width: 120 }
-                , { field: 'HShowDate2', title: '鏃ユ湡', width: 100 }
-                , { field: 'HInnerBillNo2', title: '鍐呴儴閲囪喘璁㈠崟鍙�', width: 100 }
-                , { field: 'HMaker2', title: '鍒跺崟浜�', width: 100 }
-            ],
-            daBtList: [
-                { field: 'HItemID', title: 'HItemID', width: 100, hide: true }
-                , { field: 'hmainid', title: 'hmainid', width: 100, hide: true }
-                , { field: 'hsubid', title: 'hsubid', width: 100, hide: true }
-                , { field: 'HinterID', title: 'HinterID', width: 100, hide: true }
-                , { field: '鏉$爜绫诲瀷', title: '鏉$爜绫诲瀷', width: 100 }
-                , { field: '鏉$爜缂栧彿', title: '鏉$爜缂栧彿', width: 120 }
-                , { field: 'HMaterID', title: '鐗╂枡ID', width: 100, hide: true }
-                , { field: '鐗╂枡浠g爜', title: '鐗╂枡浠g爜', width: 120 }
-                , { field: '鐗╂枡鍚嶇О', title: '鐗╂枡鍚嶇О', width: 120 }
-                , { field: '瑙勬牸鍨嬪彿', title: '瑙勬牸鍨嬪彿', width: 120 }
-                , { field: 'HUnitID', title: '璁¢噺鍗曚綅ID', width: 100, hide: true }
-                , { field: '璁¢噺鍗曚綅浠g爜', title: '璁¢噺鍗曚綅浠g爜', width: 120 }
-                , { field: '璁¢噺鍗曚綅', title: '璁¢噺鍗曚綅', width: 120 }
-                , { field: 'HAuxPropID', title: '杈呭姪灞炴�D', width: 100, hide: true }
-                , { field: '杈呭姪灞炴�т唬鐮�', title: '杈呭姪灞炴�т唬鐮�', width: 120 }
-                , { field: '杈呭姪灞炴��', title: '杈呭姪灞炴��', width: 120 }
-                , { field: '鎵瑰彿', title: '鎵瑰彿', width: 120 }
-                , { field: '鏁伴噺', title: '鏁伴噺', width: 100 }
-                , { field: '婧愬崟鍗曞彿', title: '婧愬崟鍗曞彿', width: 120 }
-                , { field: '璁″垝璺熻釜鍙�', title: '璁″垝璺熻釜鍙�', width: 120 }
-                , { field: '鏄惁璧犲搧', title: '鏄惁璧犲搧', width: 100 }
-                , { field: 'DeptID', title: '杞﹂棿ID', width: 100, hide: true }
-                , { field: '杞﹂棿', title: '杞﹂棿', width: 120 }
-                , { field: 'HSupID', title: '渚涘簲鍟咺D', width: 100, hide: true }
-                , { field: '渚涘簲鍟嗕唬鐮�', title: '渚涘簲鍟嗕唬鐮�', width: 120 }
-                , { field: '渚涘簲鍟�', title: '渚涘簲鍟�', width: 120 }
-                , { field: '瀹㈡埛鏉$爜缂栧彿', title: '瀹㈡埛鏉$爜缂栧彿', width: 120 }
-                , { field: '瀹㈡埛鍨嬪彿', title: '瀹㈡埛鍨嬪彿', width: 120 }
-                , { field: '寰�鏉ュ崟浣�', title: '寰�鏉ュ崟浣�', width: 120 }
-                , { field: '閿�鍞鍗曞彿', title: '閿�鍞鍗曞彿', width: 120 }
-                , { field: '閿�鍞鍗曡鍙�', title: '閿�鍞鍗曡鍙�', width: 120 }
-                , { field: '鎵樺彿', title: '鎵樺彿', width: 120 }
-                , { field: '鎬绘墭鏁�', title: '鎬绘墭鏁�', width: 100 }
-                , { field: '鏉$爜鏃ユ湡', title: '鏉$爜鏃ユ湡', width: 120 }
-                , { field: '鐢熶骇鍏ュ簱鏃ユ湡', title: '鐢熶骇鍏ュ簱鏃ユ湡', width: 120 }
-                , { field: '鐢熶骇鍏ュ簱鍗曞彿', title: '鐢熶骇鍏ュ簱鍗曞彿', width: 120 }
-                , { field: '鐢熶骇鍏ュ簱娆℃暟', title: '鐢熶骇鍏ュ簱娆℃暟', width: 100 }
-                , { field: '閿�鍞嚭搴撴棩鏈�', title: '閿�鍞嚭搴撴棩鏈�', width: 120 }
-                , { field: '閿�鍞嚭搴撳崟鍙�', title: '閿�鍞嚭搴撳崟鍙�', width: 120 }
-                , { field: '閿�鍞嚭搴撴鏁�', title: '閿�鍞嚭搴撴鏁�', width: 100 }
-                , { field: '浣滃簾鏍囪', title: '浣滃簾鏍囪', width: 100 }
-                , { field: '浣滃簾浜�', title: '浣滃簾浜�', width: 100 }
-                , { field: '澶囨敞', title: '澶囨敞', width: 120 }
-                , { field: '鍒朵綔浜�', title: '鍒朵綔浜�', width: 100 }
-                , { field: '鏃ユ湡', title: '鏃ユ湡', width: 120 }
-                , { field: '璁″垝瀹屽伐鏃ユ湡', title: '璁″垝瀹屽伐鏃ユ湡', width: 120 }
-                , { field: '鎵撳嵃娆℃暟', title: '鎵撳嵃娆℃暟', width: 100 }
-                , { field: 'HSTOCKORGID', title: 'HSTOCKORGID', width: 100, hide: true }
-                , { field: '鐢熸垚缁勭粐', title: '鐢熸垚缁勭粐', width: 120 }
-            ],
-            HBarCodeTypeList: [],
-            HWorksNumberList: [],
-            formShow: false,
-            temp: undefined,
-            formLoading: true,
-            zzSelDis: false,
-            rowHideShow: false,
-            openRowHide: false,
-            hPriceTypeList: ['鎴愭湰浠�', '缁撶畻浠�'],
-            addBtnShow: false,
-            zbIndex: null,
-            zbSelForm: {},//瀛愯〃閫変腑鏁版嵁
-            dialogTypeNum: null,//閮ㄩ棬寮圭獥1锛屼粨搴撳脊绐�2
-            deptShow: false,//閮ㄩ棬鏁版嵁缁勪欢
-            warehouseShow: false,//浠撳簱鏁版嵁缁勪欢
-            materialShow: false,//鐗╂枡鏁版嵁缁勪欢
-            gyEmployeeShow: false,//閿�鍞憳鏁版嵁缁勪欢
-            ScICMOBillShow: false,
-            deptform: {},//寮圭獥閫変腑鏁版嵁
-            openData: false,//鏁版嵁寮圭獥
-            dialogTitle: '',
-            organizationList: JSON.parse(sessionStorage.getItem('organizationList')),//缁勭粐鍒楄〃
-            subDisabled: false,//缂栬緫椤甸潰淇濆瓨鎸夐挳鏄惁绂佺敤(true绂佺敤锛宖alse鍙敤)
-            // OperationType: this.$route.query.OperationType,//淇濆瓨绫诲瀷锛堟柊澧�1淇敼3锛�
-            HInterID: null,
-            baseURL: process.env.VUE_APP_BASE_API,
-            checkedSysZb: [],
-            editWlxxData: [],//瀛愯〃
-            editTmData: [],
-            editDaData: [],
-            editBtData: [],//瀛愯〃琛ㄥご
-            activeName: 'first',
-            // 寮瑰嚭灞傛爣棰�
-            title: "",
-            // 鏄惁鏄剧ず寮瑰嚭灞�
-            open: false,
-            // 鏃ユ湡鑼冨洿
-            dateRange: [],
-            // 鏌ヨ鍙傛暟
-            queryParams: {
-                HBillNo: '',
-                HInitTimeCycle: 29,
-                HProjectNumber: '',
-                HCusID: null,
-                HMaterNumber: '',
-                HMaterName: '',
-                ColName1: '',
-                ColName2: '',
-                ColName: '',
-                Comparator1: '',
-                Comparator2: '',
-                Comparator: '',
-                ColContent1: '',
-                ColContent2: '',
-                ColContent: '',
-            },
-            // 鏄剧ず鎼滅储鏉′欢
-            showSearch: true,
-            // 閫変腑鏁扮粍
-            ids: [],
-            // 闈炲崟涓鐢�
-            single: true,
-            // 闈炲涓鐢�
-            multiple: true,
-            // 閬僵灞�
-            loading: true,
-            btResList: [],
-            // 琛ㄥ崟鍙傛暟
-            form: {},
-            // 琛ㄥ崟鏍¢獙
-            rules: {
-                HSupName: [
-                    { required: true, message: "瀹㈡埛涓嶈兘涓虹┖", trigger: "blur" }
-                ],
-                HDate: [
-                    { required: true, message: "鏃ユ湡涓嶈兘涓虹┖", trigger: "blur" }
-                ],
-                HExRate: [
-                    { required: true, message: "姹囩巼涓嶈兘涓虹┖", trigger: "blur" }
-                ]
-            }
-        };
-    },
-    created() {
-        this.set_HBarCodeType()
-        this.getdata()
-    },
-    methods: {
-        HSourceBillTypeChange(val) {
-            if (val == 1) {
-                this.openNum == 10
-            }
-        },
-        set_HBarCodeType() {
-            //鑾峰彇鏉$爜绫诲瀷浠g爜
-            axios.get(this.baseURL + '/Sc_BarCode/GetHBarCodeTypeBill').then(response => {
-                console.log(response)
-                let result = response.data
-                if (result.count == 1) {
-                    this.HBarCodeTypeList = result.list
-                }
-            }).catch(error => {
-                this.$modal.msgError("鎺ュ彛璇锋眰澶辫触!");
-            });
-            axios.get(this.baseURL + '/Sc_BarCode/GetHWorksNumberBill').then(response => {
-                console.log(response)
-                let result = response.data
-                if (result.count == 1) {
-                    this.HWorksNumberList = result.list
-                }
-            }).catch(error => {
-                this.$modal.msgError("鎺ュ彛璇锋眰澶辫触!");
-            });
-
-        },
-        getdata() {
-            console.log(this.copyType, this.OperationType)
-            this.formShow = false
-            this.formLoading = true
-            if (this.OperationType == 4) {
-                this.zzSelDis = true
-                this.handleAdd()
-                var data = this.getUrlVars_JSON();
-                var dataArray = [];
-                for (var i = 0; i < data.length; i++) {
-                    // this.getPushSourceBillInit(data[i].hmainid, data[i].hsubid);
-                    axios.get(this.baseURL + '/Xs_SeOrderBill/loadXs_SeOrderBill_Push', {
-                        params: {
-                            "HInterID": data[i].hmainid
-                            , "HSubID": data[i].hsubid
-                        },
-                    }).then(response => {
-                        let result = response.data
-                        if (result.code == 1) { // 璇存槑楠岃瘉鎴愬姛浜嗭紝
-                            this.temp = result.data[0];
-                        } else {
-                            this.temp = result.data;
-                        }
-                        if (this.temp) {
-                            dataArray.push(this.temp);
-                            this.form.HDeptID = dataArray[0].HDeptID
-                            this.form.HDeptName = dataArray[0].閮ㄩ棬
-                            this.form.HEmpID = dataArray[0].HEmpID
-                            this.form.HEmpName = dataArray[0].涓氬姟鍛�
-                            this.form.HManagerID = dataArray[0].HManagerID
-                            this.form.HManagerName = dataArray[0].涓荤
-                            this.form.HMainSourceInterID = "0"
-                            this.form.HMainSourceEntryID = "0"
-                            this.form.HMainSourceBillNo = ""
-                            this.form.HMainSourceBillType = dataArray[0].HBillType
-                            this.form.HSupID = dataArray[0].HCusID
-                            this.form.HSupName = dataArray[0].瀹㈡埛
-                            this.form.HLinkMan = dataArray[0].鑱旂郴浜�
-                            this.form.HLinkPhone = dataArray[0].鑱旂郴鐢佃瘽
-                            this.form.HSellSID = dataArray[0].HSellSID
-                            this.form.HSellSName = dataArray[0].閿�鍞柟寮�
-                            this.form.HCurID = dataArray[0].HCurID
-                            this.form.HCurName = dataArray[0].甯佸埆
-                            this.form.HExRate = dataArray[0].姹囩巼
-                            for (var i = 0; i < dataArray.length; i++) {
-                                this.editWlxxData.push(
-                                    {
-                                        "HMaterID": dataArray[i].HMaterID
-                                        , "鐗╂枡浠g爜": dataArray[i].鐗╂枡浠g爜
-                                        , "鐗╂枡鍚嶇О": dataArray[i].鐗╂枡鍚嶇О
-                                        , "瑙勬牸鍨嬪彿": dataArray[i].瑙勬牸鍨嬪彿
-                                        , "HUnitID": dataArray[i].HUnitID
-                                        , "璁¢噺鍗曚綅": dataArray[i].璁¢噺鍗曚綅
-                                        , "HQtyMust": dataArray[i].鏁伴噺.toFixed(6)
-                                        , "HQty": dataArray[i].鏁伴噺.toFixed(6)
-                                        , "HPieceQty": "0"
-                                        , "HPrice": dataArray[i].鍗曚环.toFixed(4)
-                                        , "HTaxPrice": dataArray[i].瀹為檯鍚◣鍗曚环.toFixed(4)
-                                        , "HTaxRate": dataArray[i].绋庣巼
-                                        , "HMoney": dataArray[i].閲戦.toFixed(2)
-                                        , "HTaxMoney": dataArray[i].浠风◣鍚堣.toFixed(2)
-                                        , "HWHID": dataArray[i].HWHID
-                                        , "鍙戣揣浠撳簱": dataArray[i].HWHName
-                                        , "HRemark": ""
-                                        , "HQty_Full": "0"
-                                        , "HQty_Empty": "0"
-                                        , "HQty_Back": "0"
-                                        , "HCostPrice": "0"
-                                        , "HCostMoney": "0"
-                                        , "HSalePrice": "0"
-                                        , "HSeOrderInterID": dataArray[i].hmainid
-                                        , "HSeOrderEntryID": dataArray[i].hsubid
-                                        , "HSeOrderBillNo": dataArray[i].鍗曟嵁鍙�
-                                        , "HSourceInterID": dataArray[i].hmainid
-                                        , "HSourceEntryID": dataArray[i].hsubid
-                                        , "HSourceBillNo": dataArray[i].鍗曟嵁鍙�
-                                        , "HSourceBillType": dataArray[i].HBillType
-                                        , "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"
-                                    }
-                                );
-                            }
-                        }
-                        this.$nextTick(() => {
-                            this.formShow = true
-                            this.formLoading = false
-                        })
-                    }).catch(error => {
-                        this.$modal.msgError("鎺ュ彛璇锋眰澶辫触!");
-                    });
-                }
-            } else if ((this.OperationType == 1 && this.copyType != 1) || (!this.OperationType && !this.copyType)) {
-                this.handleAdd()
-            } else if (this.OperationType == 3 || this.copyType == 1) {
-                this.handleUpdate()
-            }
-        },
-        // 鑾峰彇鍙傛暟_浼犻�掔殑JSON鏍煎紡鍙傛暟
-        getUrlVars_JSON() {
-            var datajson;
-            var str = this.propsData; //鑾峰彇閾炬帴涓紶閫掔殑鍙傛暟
-            var arr = str.substring(str.lastIndexOf("=") + 1);
-            datajson = JSON.parse(decodeURI(arr));
-            return datajson;
-        },
-        //鏍规嵁涓诲唴鐮佷笌瀛愬唴鐮佽幏鍙栨簮鍗曢攢鍞鍗曟暟鎹�
-        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("鎺ュ彛璇锋眰澶辫触!");
-            });
-        },
-        handleRowHide() {
-            this.rowHideShow = true
-            this.openRowHide = true
-        },
-        rowSetClose(val) {
-            this.rowHideShow = false
-            this.openRowHide = val
-        },
-
-        organizationChange(val) {
-            // let options=undefined
-            //  this.form=this.organizationList.find(option => option.ID === val)?.Name || '';
-        },
-        //閮ㄩ棬寮圭獥璧嬪��
-        dbEmitData(deptRow, num) {
-            // num=1閮ㄩ棬 num=2鍑哄簱浠撳簱
-            console.log(deptRow)
-            if (deptRow.length>0) {
-                if (num == 1) {
-                    this.form.HDeptName = deptRow.閮ㄩ棬鍚嶇О
-                    this.form.HDeptID = deptRow.HItemID
-                    this.form.HManagerName = deptRow.璐熻矗浜�
-                    this.deptShow = false
-                    this.openData = false
-                } else if (num == 2) {
-                    this.editData[this.zbIndex].HWHID = deptRow.HItemID;
-                    this.editData[this.zbIndex].鍙戣揣浠撳簱 = deptRow.浠撳簱鍚嶇О;
-                    this.warehouseShow = false
-                    this.openData = false
-                } else if (num == 3) {
-                    this.editData[this.zbIndex].HMaterID = deptRow.HItemID;
-                    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].HTaxPrice = deptRow.鍚◣鎴愭湰浠�
-                    this.editData[this.zbIndex].HTaxRate = deptRow.榛樿绋庣巼
-                    this.materialShow = false
-                    this.openData = false
-                } else if (num == 4) {
-                    this.form.HEmpName = deptRow.鑱屽憳鍚嶇О
-                    this.form.HEmpID = deptRow.HItemID
-                    this.gyEmployeeShow = false
-                    this.openData = false
-                } else if (num == 10) {
-                    this.zbDataShow=false
-                    let data=deptRow
-                    this.editWlxxData=[]
-                    for (var i = 0; i < data.length; i++) {                        
-                        this.editWlxxData.push({
-                            "HMaterID": data[i].HMaterID, "HMaterCode": "", "HMaterNumber": data[i].鐗╂枡浠g爜, "HMaterName": data[i].鐗╂枡鍚嶇О
-                            , "HMaterModel": data[i].瑙勬牸鍨嬪彿, "HMaterSpec": "", "HBatchNo": data[i].鎵规, "HUnitID": data[i].HUnitID
-                            , "HUnitNumber": data[i].璁¢噺鍗曚綅浠g爜, "HUnitName": data[i].璁¢噺鍗曚綅, "HDesignLife": 0, "HLeaveLife": 0, "HUseLife": 0
-                            , "HQtyMust": 0, "HQty": data[i].鏁伴噺, "HBQty": 1, "HMinQty": data[i].鏁伴噺, "HPackQty": 0, "HPrice": 0, "HMoney": 0, "HWHID": 0
-                            , "HWHCode": "", "HWHName": "", "HSPID": 0, "HSPCode": "", "HSPName": "", "HStockOrgID": sessionStorage["OrganizationID"]
-                            , "HRemark": "", "HCoilNO": "", "HFurnaceNO": "", "HFactory": "", "HAuxQty": 0, "HheatNO": "", "HProduceDate": moment(new Date()).format('YYYY-MM-DD')
-                            , "HExpiryDate": moment(new Date()).format('YYYY-MM-DD'), "HExpirationDateFlag": data[i].HISKFPERIOD == false ? 0 : 1
-                            , "HEmpID": sessionStorage["HEmpID"], "HEmpNumber": sessionStorage["HEmpNumber"], "HEmpName": sessionStorage["HEmpName"]
-                            , "HGroupID": 0, "HGroupNumber": "", "HGroupName": "", "HMTONo": data[i].璁″垝璺熻釜鍙�, "HCusModel": "", "HCusMaterName": ""
-                            , "HCheckEmpName": ""
-                        })
-                    }
-                    console.log( this.editWlxxData)
-                    this.ScICMOBillShow = false
-                    this.zbDataShow=true
-                    this.openData = false
-                }
-            } else {
-                this.$modal.msgError("璇烽�夋嫨鏁版嵁!");
-            }
-
-        },
-        emitData(deptRow, num) {
-            this.dialogTypeNum = num
-            this.deptform = deptRow
-        },
-        deptClickSub() {
-            this.dbEmitData(this.deptform, this.dialogTypeNum)
-            this.deptform = {}
-        },
-        deptClose() {
-            this.deptform = {}
-            this.openData = false
-        },
-
-        //鏂板缂栬緫琛ㄥ崟鍒濆鍖�
-        reset() {
-            this.form = {
-                HOrgID: sessionStorage["OrganizationID"] - 0,
-                HWorksNumber: '',
-                HDate: moment(new Date()).format('YYYY-MM-DD'),
-                HSourceBillType: 1,
-                HSourceBillNo: '',
-                HBarCodeType: '',
-            }
-            this.editWlxxData = []
-            this.editBtData = []
-            this.ids = []
-            this.subDisabled = false
-            this.addBtnShow = false
-            // this.$refs.tableData.clearSelection()
-            this.activeName = 'first'
-            this.resetForm("form");
-        },
-        //閫�鍑�
-        close() {
-            this.reset()
-            console.log(1111)
-            console.log(this.$route.path)
-            if (!this.OperationType && !this.copyType) {
-                console.log(this.$route.path)
-                const obj = { fullPath: this.$route.path, path: this.$route.path, name: this.$route.name, };
-                this.$tab.closePage(obj).then(res => {
-                    const latestView = res.visitedViews.slice(-1)[0]
-                    if (latestView) {
-                        this.$router.push(latestView.fullPath)
-                    } else {
-                        if (obj.name === 'Dashboard') {
-                            this.$router.replace({ path: '/redirect' + obj.fullPath })
-                        } else {
-                            this.$router.push('/')
-                        }
-                    }
-                });
-            } else {
-                this.formShow = false
-                this.$emit('editClose', false)
-            }
-        },
-        //鏍规嵁鐢ㄦ埛鑾峰彇瀵瑰簲鑱屽憳銆侀儴闂ㄣ�侀攢鍞富绠�
-        getCzyglByUser() {
-            axios.get(this.baseURL + '/Xs_SeOrderBill/getCzyglByUser', {
-                params: { "CurUserName": sessionStorage["HUserName"] }
-            }).then(response => {
-                let dataForm = response.data.data[0]
-                this.form.HDeptID = dataForm.HDeptID
-                this.form.HDeptName = dataForm.HDeptName
-                this.form.HEmpID = dataForm.HEmpID
-                this.form.HEmpName = dataForm.HEmpName
-                this.form.HManagerID = dataForm.HManagerID
-                this.form.HManagerName = dataForm.HManagerName
-            }).catch(error => {
-                this.$modal.msgError("鎺ュ彛璇锋眰澶辫触!");
-            });
-        },
-        /** 鏂板鎸夐挳鎿嶄綔 */
-        handleAdd() {
-            this.reset()
-            this.handleAddSysZb()
-            this.$nextTick(() => {
-                this.formShow = true
-                this.formLoading = false
-            })
-        },
-        //鑾峰彇瀵瑰簲鐨勬潯鐮佹槑缁�
-        getBarCodeNoteBySellOutBill(rowHmainid) {
-            axios.get(this.baseURL + '/Kf_SellOutBill/BarCodeNote', {
-                params: { "HInterID": rowHmainid }
-            }).then(response => {
-                if (response.data.count == 1) {
-                    if (response.data.data[2].length > 0) {
-                        this.$modal.msgError("褰撳墠鍗曟嵁鐢辨壂鐮佺敓鎴愶紝涓嶅彲浠ョ紪杈戯紒");
-                        this.subDisabled = true
-                    }
-                } else { }
-            }).catch(error => {
-                this.$modal.msgError("鎺ュ彛璇锋眰澶辫触!");
-            });
-        },
-        //#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("鎺ュ彛璇锋眰澶辫触!");
-            });
-        },
-        /** 淇敼鎸夐挳鎿嶄綔 */
-        handleUpdate() {
-            this.reset()
-            let rowHmainid = this.linterid
-            console.log(this.linterid)
-            axios.get(this.baseURL + "/Kf_SellOutBill/cx", {
-                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
-                    if (this.copyType == 1) {
-                        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.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.editWlxxData.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].褰撳墠搴撳瓨
-                            }
-                        );
-                    }
-                    if (data.鐘舵�� != '鍒涘缓' && this.copyType != 1) {
-                        this.$modal.msgError("姝ゆ潯鏁版嵁涓嶆槸鍒涘缓鐘舵�侊紝涓嶈兘淇敼");
-                        this.subDisabled = true
-                    }
-                    this.formShow = true
-                    this.formLoading = false
-
-                }
-            }).catch(error => {
-                this.$modal.msgError("鎺ュ彛璇锋眰澶辫触!");
-            });
-        },
-        //鏍规嵁瀹㈡埛甯﹀嚭鑱旂郴浜恒�佽仈绯荤數璇�
-        getCustomerByCusID(HCusID) {
-            axios.get(this.baseURL + "/Xs_SeOrderBill/getCustomerByCusID", {
-                params: {
-                    HCusID: HCusID
-                }
-            }).then(response => {
-                this.form.鑱旂郴浜� = response.data.data[0].HLinkMan
-                this.form.鑱旂郴鐢佃瘽 = response.data.data[0].HLinkPhone
-                // this.form = response.data.data[0]
-
-            }).catch(error => {
-                this.$modal.msgError("鎺ュ彛璇锋眰澶辫触!");
-            });
-        },
-        /** 閿�鍞嚭搴撳瓙琛ㄦ槑缁嗗簭鍙� */
-        wlxxzbRowSysZbIndex({ row, rowIndex }) {
-            row.index = rowIndex + 1;
-        },
-        /** 缂栬緫椤靛瓙琛ㄦ坊鍔犳寜閽搷浣� */
-        handleAddSysZb(index, num) {
-            if (num == 1 && !index) {
-                this.$modal.msgError("璇烽�夋嫨涓�琛屾暟鎹紪杈�!");
-            } else {
-                let obj = {
-                    HMainID: 0,
-                    HSubID: 0,
-                    HSourceBillSEQ: '',
-                    HBillNo: '',
-                    HMaterID: '',
-                    HMaterNumber: '',
-                    HMaterName: '',
-                    HMaterModel: '',
-                    HCusModel: '',
-                    HCusMaterName: '',
-                    HEmpID: 0,
-                    HEmpNumber: '',
-                    HEmpName: '',
-                    HGroupID: 0,
-                    HGroupNumber: '',
-                    HGroupName: '',
-                    HCheckEmpName: '',
-                    HBatchNo: '',
-                    HMTONo: '',
-                    HQty: 0,
-                    HMinQty: 0,
-                    HBQty: 0,
-                    HPackQty: '',
-                    HCoilNO: '',
-                    HFurnaceNO: '',
-                    HFactory: '',
-                    HCusID: 0,
-                    HCusNumber: '',
-                    HCusName: '',
-                    HSeOrderBillNo: '',
-                    HRemark: '',
-                    HProduceDate: this.form.HDate,
-                    HExpiryDate: this.form.HDate,
-                    HheatNO: '',
-                    HAuxPropID: 0,
-                    HAuxPropNumber: '',
-                    HAuxPropName: '',
-                    HUnitID: 0,
-                    HUnitNumber: '',
-                    HUnitName: '',
-                    HAuxQty: '',
-                    HExpirationDateFlag: '',
-                    HGiveAwayFlag: '',
-                    HDate: this.form.HDate,
-                }
-                if (index) {
-                    this.editWlxxData.splice(index, 0, obj);
-                    this.$set(this.editWlxxData, index, obj)
-                } else {
-                    this.editWlxxData.push(obj);
-                }
-            }
-        },
-        handleCopyZbRow() {
-            if (!this.zbIndex) {
-                this.$modal.msgError("璇烽�夋嫨涓�琛屾暟鎹�")
-            } else {
-                let copyRow = JSON.parse(JSON.stringify(this.zbSelForm))
-                this.editWlxxData.push(copyRow);
-            }
-        },
-        /** 缂栬緫椤靛瓙琛ㄥ垹闄ゆ寜閽搷浣� */
-        handleDeleteSysZb(row) {
-            this.checkedSysZb = []
-            this.checkedSysZb.push(row.index)
-            if (this.checkedSysZb.length == 0) {
-                this.$modal.msgError("璇峰厛閫夋嫨瑕佸垹闄ょ殑鍟嗗搧璁㈠崟鏄庣粏鏁版嵁");
-            } else {
-                const editWlxxData = this.editWlxxData;
-                const checkedSysZb = this.checkedSysZb;
-                this.editWlxxData = editWlxxData.filter(function (item) {
-                    return checkedSysZb.indexOf(item.index) == -1
-                });
-            }
-        },
-        /** 缂栬緫椤靛瓙琛ㄥ閫夋閫変腑鏁版嵁 */
-        handleTableWlxxZbEdit(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.wlxxzbTable.toggleRowSelection(del_row, false) //璁剧疆杩欎竴琛屽彇娑堥�変腑
-            }
-        },
-        showReset() {
-            this.deptShow = false
-            this.warehouseShow = false
-            this.materialShow = false
-            this.gyEmployeeShow = false
-            this.ScICMOBillShow = false
-        },
-        //  鎵撳紑鏁版嵁鍒楄〃寮圭獥
-        openDataDialog(num, row) {
-            //num1閮ㄩ棬锛�2鍑哄簱浠撳簱锛�3鐗╂枡锛�4閿�鍞憳
-            if (row) {
-                this.zbIndex = row.index - 1
-            }
-            this.showReset()
-            if (num == 1) {
-                this.dialogTitle = '閮ㄩ棬鍒楄〃'
-                this.deptShow = true
-                this.openData = true
-            } else if (num == 2) {
-                this.dialogTitle = '鍑哄簱浠撳簱鍒楄〃'
-                this.warehouseShow = true
-                this.openData = true
-            } else if (num == 3) {
-                this.dialogTitle = '鐗╂枡鍒楄〃'
-                this.materialShow = true
-                this.openData = true
-            } else if (num == 4) {
-                this.dialogTitle = '閿�鍞憳鍒楄〃'
-                this.gyEmployeeShow = true
-                this.openData = true
-            } else if (num == 10) {
-                this.dialogTitle = '鐢熶骇璁㈠崟鍒楄〃'
-                this.ScICMOBillShow = true
-                this.openData = true
-            }
-        },
-    }
-};
-</script>
\ No newline at end of file
diff --git a/src/views/warehouse/barcodeMaster/Gy_BarCodeBill.vue b/src/views/warehouse/barcodeMaster/Gy_BarCodeBill.vue
index ceb96eb..6f69c43 100644
--- a/src/views/warehouse/barcodeMaster/Gy_BarCodeBill.vue
+++ b/src/views/warehouse/barcodeMaster/Gy_BarCodeBill.vue
@@ -225,7 +225,7 @@
                 </el-tab-pane>
                 <el-tab-pane label="鏉$爜淇℃伅" name="tiaoma">
                     <el-table :data="editTmData" style="width: 100%" height="480" width="100%" ref="tbzbTable"
-                        @selection-change="handleTableWlxxZbEdit" :row-class-name="tiaomaZbIndex" border>
+                        @selection-change="handleTableWlxxZbEdit" :row-class-name="tiaomaZbIndex" border v-if="editTmData.length>0">
                         <el-table-column align="center" label="搴忓彿" type="index" width="80" fixed />
                         <template v-for="(item, index) in tmBtList">
                             <el-table-column align="center" :prop="item.field" :label="item.title" :width="item.width"
@@ -235,7 +235,7 @@
                 </el-tab-pane>
                 <el-tab-pane label="妗f鍒楄〃" name="dangan">
                     <el-table :data="editDaData" style="width: 100%" height="480" width="100%" ref="dazbTable"
-                        @selection-change="handleTableDangan" :row-class-name="danganZbIndex" border>
+                        @selection-change="handleTableDangan" :row-class-name="danganZbIndex" border v-if="editDaData.length>0">
                         <el-table-column type="selection" width="55" align="center" />
                         <el-table-column align="center" label="搴忓彿" type="index" width="80" fixed />
                         <template v-for="(item, index) in daBtList">
@@ -251,7 +251,7 @@
             </el-tabs>
         </el-form>
         <!-- 閮ㄩ棬寮圭獥 -->
-        <el-dialog :title="dialogTitle" :visible.sync="openData" width="1280px" append-to-body>
+        <el-dialog :title="dialogTitle" :visible.sync="openData" width="1280px" append-to-body @close="closeBill">
             <HSourceReportHtml @deptEmitDb="dbEmitData" @deptEmit="emitData" :openPage="HModName"
                 :HOrgID='this.form.HOrgID' :HSouceBillType="HSouceBillType" v-if="ScICMOBillShow" />
             <div slot="footer" class="dialog-footer">
@@ -521,6 +521,9 @@
         this.getdata()
     },
     methods: {
+        closeBill(){
+            this.ScICMOBillShow=false
+        },
         get_PrintReport() {
             if (this.danganSelList.length == 0) {
                 this.$modal.msgError("璇烽�夋嫨鏁版嵁");
diff --git a/src/views/warehouse/shipment/Kf_StockOutRequestBill.vue b/src/views/warehouse/shipment/Kf_StockOutRequestBill.vue
index 3fbe2ac..e9900b4 100644
--- a/src/views/warehouse/shipment/Kf_StockOutRequestBill.vue
+++ b/src/views/warehouse/shipment/Kf_StockOutRequestBill.vue
@@ -733,9 +733,9 @@
                 this.$modal.msgError("璇烽�夋嫨涓�琛屾暟鎹紪杈�!");
             } else {
                 let obj = {
-                    "HMaterID": 0, "鐗╂枡浠g爜": "", "鐗╂枡鍚嶇О": "", "瑙勬牸鍨嬪彿": "", "HUnitID": 1, "璁¢噺鍗曚綅": "", "HWHID": "0", "浠撳簱": "",
-                    "HSPID": "0", "浠撲綅": "", "HSecUnitID": "1", "搴撳瓨杈呭崟浣�": "", "HBASEUNITID": "1", "鍩烘湰鍗曚綅": "",
-                    "HEXTAUXUNITID": "1", "杈呭崟浣�": "", "HQtyMust": "0", "HQty": "0", "HPrice": "0", "HMoney": "0", "HRemark": ""
+                    "HMaterID": 0, "鐗╂枡浠g爜": "", "鐗╂枡鍚嶇О": "", "瑙勬牸鍨嬪彿": "", "HUnitID": 0, "璁¢噺鍗曚綅": "", "HWHID": 0, "浠撳簱": "",
+                    "HSPID": 0, "浠撲綅": "", "HSecUnitID": 0, "搴撳瓨杈呭崟浣�": "", "HBASEUNITID": 0, "鍩烘湰鍗曚綅": "",
+                    "HEXTAUXUNITID": 0, "杈呭崟浣�": "", "HQtyMust": 0, "HQty": 0, "HPrice": 0, "HMoney": 0, "HRemark": ""
                 }
                 if (index) {
                     this.editData.splice(index, 0, obj);

--
Gitblit v1.9.1