From 5ff3cf55bc673c0f70fa7024f5974a2052a0f8af Mon Sep 17 00:00:00 2001
From: whycq <10027870+whycq@user.noreply.gitee.com>
Date: 星期三, 19 六月 2024 16:33:58 +0800
Subject: [PATCH] #

---
 pages/home/home.vue |   41 ++++++++++++++++++++++++++++++++++-------
 1 files changed, 34 insertions(+), 7 deletions(-)

diff --git a/pages/home/home.vue b/pages/home/home.vue
index 65558f2..de1596e 100644
--- a/pages/home/home.vue
+++ b/pages/home/home.vue
@@ -23,20 +23,21 @@
 				token: '',
 				icon: '',
 				elements: [],
+				project: 'tzsk',
 				elements2: [
 					{
 						title: 'AGV缁勬墭',
 						name: 'AGVPakin',
 						color: 'blue',
 						// cuIcon: 'pullup',
-						url: '/tzsk/AGV/AGVPakin'
+						url: `/tzsk/AGV/AGVPakin`
 					},
 					{
 						title: 'AGV鐩樼偣/鎷f枡',
 						name: 'AGVPick',
 						color: 'cyan',
 						// cuIcon: 'pullup',
-						url: '/tzsk/AGV/AGVPick'
+						url: `/tzsk/AGV/AGVPick` 
 					},
 					
 					{
@@ -67,20 +68,40 @@
 						// cuIcon: 'pullup',
 						url: '/tzsk/AGV/AGVContainerMove'
 					},
-					
 					{
-						title: '缁勬墭鍏ュ簱',
+						title: 'AGV鏉$爜',
+						name: 'AGVCode',
+						color: 'cyan',
+						// cuIcon: 'pullup',
+						url: '/tzsk/AGV/AGVCode'
+					},
+					{
+						title: '骞冲簱缁勬墭鍏ュ簱',
 						name: 'pakin',
 						color: 'cyan',
 						// cuIcon: 'pullup',
 						url: '/tzsk/pakin/pakin2'
 					},
 					{
-						title: '缁勬墭涓婃灦',
+						title: '鍥涢」缁勬墭鍏ュ簱',
+						name: 'pakin',
+						color: 'cyan',
+						// cuIcon: 'pullup',
+						url: '/tzsk/pakin/pakin3'
+					},
+					{
+						title: '骞冲簱缁勬墭涓婃灦',
 						name: 'PutOn',
 						color: 'cyan',
 						// cuIcon: 'pullup',
 						url: '/tzsk/order/orderPutOn'
+					},
+					{
+						title: '鍑哄簱鎷i��',
+						name: 'checkOut',
+						color: 'cyan',
+						// cuIcon: 'pullup',
+						url: '/tzsk/pakin/checkOut'
 					},
 					{
 						title: '璁㈠崟涓婃灦',
@@ -163,7 +184,7 @@
 						name: 'stockQuery',
 						color: 'green',
 						cuIcon: 'check',
-						url: '/stock/stockQuery'
+						url: `/tzsk/stock/stockQuery`
 					},
 					{
 						title: '鐩樼偣',
@@ -223,6 +244,7 @@
 		onShow() {
 			this.baseUrl = uni.getStorageSync('baseUrl');
 			this.token = uni.getStorageSync('token');
+			this.project = uni.getStorageSync('project')
 			this.getAuth()
 			this.backGroundRepeat()
 		},
@@ -246,6 +268,11 @@
 					header: { 'token': uni.getStorageSync('token') },
 					method: 'POST',
 					success(res) {
+						console.log(res);
+						if (res.statusCode === 404) {
+							that.elements = that.elements2
+							return
+						}
 						res = res.data
 						that.elements = []
 						if (res.code === 200) {
@@ -263,7 +290,7 @@
 									name: res.data[i].title,
 									color: that.colorList[i],
 									cuIcon: that.icon,
-									url: res.data[i].action
+									url: `/${that.project}${res.data[i].action}`
 								})
 							}
 							that.elements.push({

--
Gitblit v1.9.1