From aef846861811f23b81efaf22f058a4da6b8d92ec Mon Sep 17 00:00:00 2001
From: schangxiang@126.com <schangxiang@126.com>
Date: 周一, 02 12月 2024 16:03:35 +0800
Subject: [PATCH] 11

---
 LA24030_LuLiPackageLine_Web/src/views/main/ReportCenter/storageView/index.vue |   58 ++++++++++++++++++++++++++++++++++++++++------------------
 1 files changed, 40 insertions(+), 18 deletions(-)

diff --git a/LA24030_LuLiPackageLine_Web/src/views/main/ReportCenter/storageView/index.vue b/LA24030_LuLiPackageLine_Web/src/views/main/ReportCenter/storageView/index.vue
index 2f6c772..db71e2e 100644
--- a/LA24030_LuLiPackageLine_Web/src/views/main/ReportCenter/storageView/index.vue
+++ b/LA24030_LuLiPackageLine_Web/src/views/main/ReportCenter/storageView/index.vue
@@ -58,28 +58,29 @@
 						<div class="storage-grid">
 							<div class="row rowMy0">
 								<div class="cell" v-for="(cell, cellIndex) in item.data" :key="cellIndex" v-show="cellIndex < 20">
-									<span class="textK" 
-
-                  :style="{ background: setBgColor(cell.placeStatus), boxShadow: '0 1px 1px' + setBgColor(cell.placeStatus) }"
-                  >
+									<span class="textK" :style="{ background: setBgColor(cell.placeStatus), boxShadow: '0 1px 1px' + setBgColor(cell.placeStatus) }" @click="handleClick(cell)">
 										<!-- {{ cell.laneNo }} -->
-										{{ cell.layerNo }}{{ cell.columnNo }}
+										<!-- PlaceCode: -->
+										{{ cell.placeCode }} 
+										<!-- {{ cell.layerNo }}{{ cell.columnNo }} -->
 									</span>
 								</div>
 							</div>
 							<div class="row rowMy1">
 								<div class="cell" v-for="(cell, cellIndex) in item.data" :key="cellIndex" v-show="cellIndex >= 20 && cellIndex < 40">
-									<span class="textK"   :style="{ background: setBgColor(cell.placeStatus), boxShadow: '0 1px 1px' + setBgColor(cell.placeStatus) }">
+									<span class="textK" :style="{ background: setBgColor(cell.placeStatus), boxShadow: '0 1px 1px' + setBgColor(cell.placeStatus) }" @click="handleClick(cell)">
 										<!-- {{ cell.laneNo }} -->
-										{{ cell.layerNo }}{{ cell.columnNo }}
+										{{ cell.placeCode }} 
+										<!-- {{ cell.layerNo }}{{ cell.columnNo }} -->
 									</span>
 								</div>
 							</div>
 							<div class="row rowMy2">
 								<div class="cell" v-for="(cell, cellIndex) in item.data" :key="cellIndex" v-show="cellIndex >= 40 && cellIndex <= 60">
-									<span class="textK"   :style="{ background: setBgColor(cell.placeStatus), boxShadow: '0 1px 1px' + setBgColor(cell.placeStatus) }">
+									<span class="textK" :style="{ background: setBgColor(cell.placeStatus), boxShadow: '0 1px 1px' + setBgColor(cell.placeStatus) }" @click="handleClick(cell)">
 										<!-- {{ cell.laneNo }} -->
-										{{ cell.layerNo }}{{ cell.columnNo }}
+										{{ cell.placeCode }} 
+										<!-- {{ cell.layerNo }}{{ cell.columnNo }} -->
 									</span>
 								</div>
 							</div>
@@ -101,15 +102,18 @@
 				</div> -->
 
 				<!-- 缁熻鍖哄煙 -->
-		 <!-- <count-view :countData="countList"></count-view>  -->
+				<!-- <count-view :countData="countList"></count-view>  -->
 				<!-- 搴撲綅灞曠ず -->
 				<!-- <content-view :contentData="dataList"></content-view> -->
 			</div>
 		</el-card>
+
+			<!-- 璇︽儏寮规 -->
+			<prop-detail ref="propDetailRef"></prop-detail>
 	</div>
 </template>
 <script lang="ts" setup>
-import { nextTick, onMounted, ref } from 'vue';
+import { getCurrentInstance, nextTick, onMounted, ref } from 'vue';
 //import SearchBar from '@/components/SearchBar.vue'
 import { getStorageView } from '/@/api/main/ReportCenter/storageView';
 
@@ -117,6 +121,8 @@
 import ContentView from './component/ContentView.vue';
 import { ElMessage } from 'element-plus';
 import { handleSlectDataWmsArea } from '/@/utils/selectData';
+import PropDetail from './component/propDetail.vue';
+const { proxy} :any = getCurrentInstance();// 璁块棶瀹炰緥涓婁笅鏂� proxy鍚屾椂鏀寔寮�鍙� 绾夸笂鐜
 
 const showAdvanceQueryUIWmsStockQuan = ref(false);
 // 鏀瑰彉楂樼骇鏌ヨ鐨勬帶浠舵樉绀虹姸鎬�
@@ -275,7 +281,7 @@
 	//   return
 	// }
 	//璁剧疆鑳屾櫙
-	
+
 	var res = await getStorageView(Object.assign(formModel.value, {}));
 	if (res.data.code == 200) {
 		const { data } = res;
@@ -394,6 +400,20 @@
 console.log(66666666);
 
 console.log(storageList.value);
+
+const dialogVisible = ref(false); // 寮规鍙鎬�
+
+const handleClick = (row: any) => {
+	proxy.$refs['propDetailRef'].openDialog(row);
+};
+
+const openDialog = () => {
+	dialogVisible.value = true; // 鎵撳紑寮规
+};
+
+const handleClose = () => {
+	dialogVisible.value = false; // 鍏抽棴寮规
+};
 </script>
 <style lang="less" scoped>
 .msi-content {
@@ -412,12 +432,12 @@
 }
 
 .cell {
-	border: 1px solid gray; /* 姣忎釜鏍煎瓙鐨勯粦绾� */
+	border: 1px solid #c1c1c1; /* 姣忎釜鏍煎瓙鐨勯粦绾� */
 	height: 50px; /* 姣忎釜鏍煎瓙鐨勯珮搴� */
 	display: inline-block;
 	justify-content: center;
 	align-items: center; /* 灞呬腑鏄剧ず鍐呭 */
-	width: 25px;
+	width: 49px;
 }
 
 .rowMy0 {
@@ -448,15 +468,17 @@
 	}
 }
 .t1 {
-	margin: 10px 0 2px 0;font-size: 16px !important;
+	margin: 10px 0 2px 0;
+	font-size: 16px !important;
+	padding-bottom: 10px;
 }
 .textK {
 	display: flex; /* 浣跨敤 Flexbox 甯冨眬 */
 	flex-direction: column;
 	font-size: 12px;
 	text-align: center;
-  width: 100%;
-  height: 100%; 
-  color: white;
+	width: 100%;
+	height: 100%;
+	color: white;
 }
 </style>

--
Gitblit v1.9.3