From d151ad916449dd1b081ce515daf893e54ef5511c Mon Sep 17 00:00:00 2001
From: schangxiang@126.com <schangxiang@126.com>
Date: 周五, 20 12月 2024 18:08:17 +0800
Subject: [PATCH] 22

---
 LA24030_LuLiPackageLine_Web/src/views/home/index.vue |  152 +++++++++++++++++++++-----------------------------
 1 files changed, 64 insertions(+), 88 deletions(-)

diff --git a/LA24030_LuLiPackageLine_Web/src/views/home/index.vue b/LA24030_LuLiPackageLine_Web/src/views/home/index.vue
index fc304d0..0a05a8c 100644
--- a/LA24030_LuLiPackageLine_Web/src/views/home/index.vue
+++ b/LA24030_LuLiPackageLine_Web/src/views/home/index.vue
@@ -1,17 +1,17 @@
 <template>
 	<div class="home-container layout-pd">
 		<el-row :gutter="15" class="home-card-one mb15">
-			<el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8" class="home-media home-media-lg">
+			<el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8" class="home-media home-media-lg" v-for="(v, k) in offOrderInfo" >
 				<div class="home-card-item flex">
 					<div class="flex-margin flex w100" :class="` home-one-animation${1}`">
 						<div class="flex-auto">
-							<span class="ml5 font16">鏈懆涓嬬嚎璁㈠崟鏁�</span>
-							<div class="font30">{{ state.orderNum }}</div>
+							<span class="ml5 font16">{{ v.name }}</span>
+							<div class="font30">{{ v.value }}</div>
 						</div>
 					</div>
 				</div>
 			</el-col>
-			<el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8" class="home-media home-media-lg">
+			<!-- <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8" class="home-media home-media-lg">
 				<div class="home-card-item flex">
 					<div class="flex-margin flex w100" :class="` home-one-animation${1}`">
 						<div class="flex-auto">
@@ -21,16 +21,7 @@
 					</div>
 				</div>
 			</el-col>
-			<el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8" class="home-media home-media-lg">
-				<div class="home-card-item flex">
-					<div class="flex-margin flex w100" :class="` home-one-animation${1}`">
-						<div class="flex-auto">
-							<span class="ml5 font16">涓嬬嚎鏉挎暟</span>
-							<div class="font30">{{ state.orderNum }}</div>
-						</div>
-					</div>
-				</div>
-			</el-col>
+			 -->
 			<!-- <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8" v-for="(v, k) in state.homeOne" :key="k" :class="{ 'home-media home-media-lg': k > 1, 'home-media-sm': k === 1 }">
 				<div class="home-card-item flex">
 					<div class="flex-margin flex w100" :class="` home-one-animation${k}`">
@@ -86,7 +77,7 @@
 import { wmsStockPassMap, wmsHomePageQuery, wmsHomePlaceQuery, wmsTransitionDiagramQuery } from '/@/api/main/inventoryWarning/inventoryWarning';
 import type { TabsPaneContext } from 'element-plus';
 import { useRoute, useRouter } from 'vue-router';
-import { getStorageView } from '/@/api/main/ReportCenter/storageView';
+import { getQueryOffOrderList, getStorageView } from '/@/api/main/ReportCenter/storageView';
 const router = useRouter();
 // 鎺ュ彛鏁版嵁
 const loadingwms = ref(false);
@@ -156,12 +147,11 @@
 	],
 };
 
+var offOrderInfo = ref([])
 onMounted(() => {
 	nextTick(async () => {
-
-
 		var res = await getStorageView();
-		debugger
+		debugger;
 		if (res.data.code == 200) {
 			const { data } = res;
 			const result = data.result;
@@ -169,11 +159,6 @@
 			var hasMaterialCount = result.filter((item: any) => item.stockStatus == 1).length || 0;
 			var noMaterialCount = result.length - hasMaterialCount;
 			countList.value = [
-				{
-					type: '',
-					name: '鎬诲簱浣�',
-					value: result.length || 0,
-				},
 				{
 					type: 1,
 					name: '鏈夎揣搴撲綅',
@@ -184,19 +169,20 @@
 					name: '鏃犺揣搴撲綅',
 					value: noMaterialCount || 0,
 				},
-				{
-					type: 2,
-					name: '閿佸畾搴撲綅',
-					value: result.filter((item: any) => item.stockStatus == 2).length || 0,
-				},
 			];
-		optionPie.series[0].data = countList.value;
-		myChart = echarts.init(document.getElementById('homePieChart') as HTMLDivElement);
-		myChart.setOption(optionPie);
+			optionPie.series[0].data = countList.value;
+			myChart = echarts.init(document.getElementById('homePieChart') as HTMLDivElement);
+			myChart.setOption(optionPie);
+		}
 
-	
+		var res = await getQueryOffOrderList();
+		// WmsCommonnQuery/QueryOffOrderList
+		if (res.data.code == 200) {
+			//debugger;
+			offOrderInfo.value = res.data.result || [];
 		}
 	});
+	handleQuery3('1');
 });
 
 // 鏌ヨ
@@ -285,7 +271,7 @@
 };
 // handleQuery1();
 // handleQuery2();
-// handleQuery3('1');
+// 
 // handleQuery4();
 const activeName = ref('1');
 const handleClick = (tab: TabsPaneContext, event: Event) => {
@@ -330,24 +316,6 @@
 			color2: '--next-color-success-lighter',
 			color3: '--el-color-success',
 		},
-		// {
-		// 	num1: '125,65',
-		// 	num2: '+17.32',
-		// 	num3: '骞村害璁″垝淇℃伅',
-		// 	num4: 'iconfont icon-zaosheng',
-		// 	color1: '#6690F9',
-		// 	color2: '--next-color-warning-lighter',
-		// 	color3: '--el-color-warning',
-		// },
-		// {
-		// 	num1: '520,43',
-		// 	num2: '-10.01',
-		// 	num3: '璁块棶缁熻淇℃伅',
-		// 	num4: 'fa fa-github-alt',
-		// 	color1: '#FF6462',
-		// 	color2: '--next-color-danger-lighter',
-		// 	color3: '--el-color-danger',
-		// },
 	],
 
 	myCharts: [] as EmptyArrayType,
@@ -531,13 +499,13 @@
 const option = {
 	backgroundColor: state.charts.bgColor,
 	title: {
-		text: '涓婁笅鏋舵帹绉诲浘',
+		text: '鐢熶骇璁㈠崟鎺ㄧЩ鍥�',
 		x: 'left',
 		textStyle: { fontSize: '12', color: state.charts.color },
 	},
 	tooltip: { trigger: 'axis' },
 	//legend: { data: ['鍏ュ簱','鍑哄簱', '搴撳瓨', '骞冲潎'], right: 0 },
-	legend: { data: ['涓婃灦', '涓嬫灦'], right: 0 },
+	legend: { data: ['鐢熶骇璁㈠崟'], right: 0 },
 	grid: { top: 50, right: 80, bottom: 100, left: 60 },
 	// grid: { top: 70, right: 80, bottom: 30, left: 80 },
 	xAxis: [
@@ -571,38 +539,38 @@
 		// },
 	],
 	series: [
+		// {
+		// 	name: '涓婄嚎',
+		// 	type: 'line',
+		// 	smooth: true,
+		// 	showSymbol: true,
+		// 	// 鐭㈤噺鐢讳簲瑙掓槦
+		// 	symbol: 'path://M150 0 L80 175 L250 75 L50 75 L220 175 Z',
+		// 	symbolSize: 12,
+		// 	yAxisIndex: 0,
+		// 	areaStyle: {
+		// 		color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
+		// 			{ offset: 0, color: 'rgba(250,180,101,0.3)' },
+		// 			{ offset: 1, color: 'rgba(250,180,101,0)' },
+		// 		]),
+		// 		shadowColor: 'rgba(250,180,101,0.2)',
+		// 		shadowBlur: 20,
+		// 	},
+		// 	itemStyle: { color: '#FF8000' },
+		// 	// data涓彲浠ヤ娇鐢ㄥ璞★紝value浠h〃鐩稿簲鐨勫�硷紝鍙﹀鍙姞鍏ヨ嚜瀹氫箟鐨勫睘鎬�
+		// 	// data: [
+		// 	// 	{ value: 1, stationName: 's1' },
+		// 	// 	{ value: 3, stationName: 's2' },
+		// 	// 	{ value: 4, stationName: 's3' },
+		// 	// 	{ value: 9, stationName: 's4' },
+		// 	// 	{ value: 3, stationName: 's5' },
+		// 	// 	{ value: 2, stationName: 's6' },
+		// 	// ],
+		// 	// data:dataAll.value.arr1
+		// 	data: [],
+		// },
 		{
-			name: '涓婃灦',
-			type: 'line',
-			smooth: true,
-			showSymbol: true,
-			// 鐭㈤噺鐢讳簲瑙掓槦
-			symbol: 'path://M150 0 L80 175 L250 75 L50 75 L220 175 Z',
-			symbolSize: 12,
-			yAxisIndex: 0,
-			areaStyle: {
-				color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
-					{ offset: 0, color: 'rgba(250,180,101,0.3)' },
-					{ offset: 1, color: 'rgba(250,180,101,0)' },
-				]),
-				shadowColor: 'rgba(250,180,101,0.2)',
-				shadowBlur: 20,
-			},
-			itemStyle: { color: '#FF8000' },
-			// data涓彲浠ヤ娇鐢ㄥ璞★紝value浠h〃鐩稿簲鐨勫�硷紝鍙﹀鍙姞鍏ヨ嚜瀹氫箟鐨勫睘鎬�
-			// data: [
-			// 	{ value: 1, stationName: 's1' },
-			// 	{ value: 3, stationName: 's2' },
-			// 	{ value: 4, stationName: 's3' },
-			// 	{ value: 9, stationName: 's4' },
-			// 	{ value: 3, stationName: 's5' },
-			// 	{ value: 2, stationName: 's6' },
-			// ],
-			// data:dataAll.value.arr1
-			data: [],
-		},
-		{
-			name: '涓嬫灦',
+			name: '鐢熶骇璁㈠崟',
 			type: 'line',
 			smooth: true,
 			showSymbol: true,
@@ -673,8 +641,8 @@
 	state.global.homeCharThree = markRaw(echarts.init(chart, state.charts.theme));
 	//鎵嬪姩璧嬪��
 	option.xAxis[0].data = dataAll.value.arr5;
-	option.series[0].data = dataAll.value.arr1;
-	option.series[1].data = dataAll.value.arr2;
+	option.series[0].data = dataAll.value.arr2;
+	//option.series[1].data = dataAll.value.arr2;
 	// option.series[2].data = dataAll.value.arr3
 	// option.series[3].data = dataAll.value.arr4
 	// 缁樺埗鍥捐〃
@@ -768,7 +736,7 @@
 	.home-card-three {
 		.home-card-item {
 			width: 100%;
-			height: 130px;
+			height: 160px;
 			border-radius: 4px;
 			transition: all ease 0.3s;
 			padding: 20px;
@@ -810,7 +778,7 @@
 	.home-card-two,
 	.home-card-three {
 		.home-card-item {
-			height: 400px;
+			height: 500px;
 			width: 100%;
 			overflow: hidden;
 			.home-monitor {
@@ -860,4 +828,12 @@
 	color: var(--el-text-color-primary);
 	border: 1px solid var(--next-border-color-light);
 }
+.font30{
+	font-size: 39px !important;
+    margin: 24px 0;
+	color: orange;
+}
+.font16{
+	font-size: 24px !important;
+}
 </style>

--
Gitblit v1.9.3