From 7fb0a8f0ab16c149484bf043754cd10cfa94de2f Mon Sep 17 00:00:00 2001
From: wangyi <2946747746@qq.com>
Date: 星期一, 19 一月 2026 14:48:05 +0800
Subject: [PATCH] 增加了业务员,保管员和验收员的对应的显示

---
 src/views/FbStepFoldOutBillList/fbStepFoldOutBillList.vue |   42 ++++++++++++++++++++++++++++++------------
 1 files changed, 30 insertions(+), 12 deletions(-)

diff --git a/src/views/FbStepFoldOutBillList/fbStepFoldOutBillList.vue b/src/views/FbStepFoldOutBillList/fbStepFoldOutBillList.vue
index 1006791..a2a4b0f 100644
--- a/src/views/FbStepFoldOutBillList/fbStepFoldOutBillList.vue
+++ b/src/views/FbStepFoldOutBillList/fbStepFoldOutBillList.vue
@@ -175,6 +175,7 @@
 					<el-button size="mini" @click="get_PrintReport">鎵撳嵃</el-button>
 					<el-button size="mini" @click="get_Refresh">鍒锋柊</el-button>
 					<el-button size="mini" @click="get_BarCodeDetail">鏉$爜鏄庣粏</el-button>
+					<el-button type="primary" icon="el-icon-printer" size="mini" :disabled="single" @click="get_PackStockDetail">鍖呰瀹瑰櫒鍑哄叆搴撴槑缁�</el-button>
 				</el-col>
 			</el-row>
 
@@ -210,7 +211,7 @@
 			:visible.sync="barcodeDetailVisible"
 			ref="barcodeDetail"
 			/>
-
+		<PackStockDetail :visible.sync="packStockDetailShow" ref="packStockDetail"/>
 		
 	</div>
 </template>
@@ -221,23 +222,23 @@
 import FbStepFoldinBillEdit from '@/views/FbStepFoldOutBillList/fbStepFoldOutBillListEdit'
 import BarCodeDetail from '@/views/component/BarCodeDetail'
 import dayjs from 'dayjs';
-
+import PackStockDetail from '@/views/component/PackStockDetail'
 
 export default {
 	name: 'FbStepFoldinBillList',
 		components: {
 			FbStepFoldinBillEdit,
-			BarCodeDetail
+			BarCodeDetail,PackStockDetail
 			
 		},
 	data() {
 		return {
-
+			rowForm: {},
 			editDialogVisible:false,
 			operationType:'1',
 			currentId : '',
       		barcodeDetailVisible: false,// 鏉$爜鏄庣粏寮圭獥鏄剧ず鎺у埗
-
+			packStockDetailShow:false, 
 			query: {
 				HInitTimeCycle: 29,
 				HBeginDate: '',
@@ -284,7 +285,7 @@
 			selectedRows: [],
 			currentFilterName: '',
 			activeCollapse: [],
-			baseURL: process.env.VUE_APP_BASE_API || 'http://192.168.0.236:9010/API/',                    
+			baseURL: process.env.VUE_APP_BASE_API,               
 		};
 	},
 	created() {
@@ -434,7 +435,7 @@
 				const userName = sessionStorage['HUserName'] || sessionStorage['Czybm'] || 'admin';
 				const orgName = sessionStorage['OrganizationName'] || sessionStorage['Organization'] || '娴欐睙鏅轰簯杩堟��';
 
-				const url = `${this.baseURL}/Kf_StepFoldOutBill/GetStepFoldOutBillList`;
+				const url = `${this.$baseUrl}/Kf_StepFoldOutBill/GetStepFoldOutBillList`;
 				const params = { 
 					sWhere: sWhere || '', 
 					user: userName, 
@@ -501,7 +502,7 @@
 		},
 		async get_DefaultModule() {
 			try {
-				const url = `${this.baseURL}/Xt_FastICScheme/Chooselist`;
+				const url = `${this.$baseUrl}/Xt_FastICScheme/Chooselist`;
 				const params = { 
 					user: sessionStorage['Czybm'] || sessionStorage['HUserName'] || '', 
 					HModuleName: '鍒嗘寮忚皟鍑哄崟缁存姢', 
@@ -546,7 +547,7 @@
 			
 			try {
 				await this.$confirm('纭瑕佸垹闄ゅ悧锛屽垹闄ゅ悗涓嶈兘鎭㈠', '鍒犻櫎纭');
-				const url = `${this.baseURL}/Fb_StepFoldInBill/DeltetFb_StepFoldInBill`;
+				const url = `${this.$baseUrl}/Fb_StepFoldInBill/DeltetFb_StepFoldInBill`;
 				const params = { HInterID: (row.hmainid || row.HInterID) };
 				const resp = await axios.get(url, { params });
 				
@@ -575,7 +576,7 @@
 			try {
 				await this.$confirm(`纭瑕�${actionName}姝ゅ崟鎹悧锛焋, `${actionName}纭`);
 				
-				const url = `${this.baseURL}/Kf_StepFoldOutBill/AuditKf_StepFoldOutBill`;
+				const url = `${this.$baseUrl}/Kf_StepFoldOutBill/AuditKf_StepFoldOutBill`;
 				const params = { 
 					HInterID: (row.hmainid || row.HInterID), 
 					Type: type, 
@@ -608,7 +609,7 @@
 			try {
 				await this.$confirm(`纭瑕�${actionName}姝ゅ崟鎹悧锛焋, `${actionName}纭`);
 				
-				const url = `${this.baseURL}/Kf_StepFoldOutBill/CloseKf_StepFoldOutBill`;
+				const url = `${this.$baseUrl}/Kf_StepFoldOutBill/CloseKf_StepFoldOutBill`;
 				const params = { 
 					HInterID: (row.hmainid || row.HInterID), 
 					Type: type, 
@@ -641,7 +642,7 @@
 			try {
 				await this.$confirm(`纭瑕�${actionName}姝ゅ崟鎹悧锛焋, `${actionName}纭`);
 				
-				const url = `${this.baseURL}/Kf_StepFoldOutBill/CancellKf_StepFoldOutBill`;
+				const url = `${this.$baseUrl}/Kf_StepFoldOutBill/CancellKf_StepFoldOutBill`;
 				const params = { 
 					HInterID: (row.hmainid || row.HInterID), 
 					Type: type, 
@@ -670,6 +671,10 @@
 		},
 		onSelectionChange(selection) {
 			this.selectedRows = selection;
+			this.ids = selection.map(item => item.hmainid)
+			console.log('閫夋嫨鐨勮:', selection,"閫夋嫨鐨刬ds:",this.ids);
+			if (selection.length > 0)
+			this.rowForm = selection[0]
 		},
 		onBillNoClick(row) {
 			const table = this.$refs.mainTable;
@@ -691,11 +696,24 @@
 			this.$message.warning('璇烽�夋嫨涓�琛屾暟鎹煡鐪嬫潯鐮佹槑缁嗭紒')
 			return
 		}
+		
 		this.barcodeDetailVisible = true
 		this.$nextTick(() => {
 			this.$refs.barcodeDetail.open(this.selectedRows[0])
 		})
 		},
+		 //#region 鍖呰瀹瑰櫒鍑哄叆搴撴槑缁�
+   		 get_PackStockDetail() {
+      // if (this.selectedRow.length !== 1) {
+      //   this.$message.warning('璇烽�夋嫨涓�琛屾暟鎹煡鐪嬫潯鐮佹槑缁嗭紒')
+      //   return
+      // }
+			this.packStockDetailShow = true
+			this.$nextTick(() => {
+				this.$refs.packStockDetail.open(this.rowForm)
+			})
+		},
+    //#endregion
 		get_ViewReport() {
 			if (this.selectedRows.length !== 1) { 
 				this.$message.warning('璇烽�夋嫨涓�琛屾暟鎹墦鍗帮紒'); 

--
Gitblit v1.9.1