From 41e96e866a3f5094a59a3d704135ecb09e0a6a16 Mon Sep 17 00:00:00 2001
From: whycq <10027870+whycq@user.noreply.gitee.com>
Date: 星期三, 18 十月 2023 09:59:17 +0800
Subject: [PATCH] #
---
pages/home/home.vue | 131 ++++++++++++++++++++++++++++++++++++-------
1 files changed, 110 insertions(+), 21 deletions(-)
diff --git a/pages/home/home.vue b/pages/home/home.vue
index 3c512c1..c803e8f 100644
--- a/pages/home/home.vue
+++ b/pages/home/home.vue
@@ -24,52 +24,129 @@
icon: '',
elements: [],
elements2: [
- // {
- // title: '缁勬墭鍏ュ簱',
- // name: 'pakin',
- // color: 'cyan',
- // cuIcon: 'pullup',
- // url: '/pakin/pakin'
- // },
{
- title: '璁㈠崟缁勬墭',
- name: 'orderPakin',
+ title: '缁勬墭鍏ュ簱',
+ name: 'pakin',
+ color: 'cyan',
+ cuIcon: 'pullup',
+ url: '/tzsk/pakin/pakin2'
+ },
+ {
+ title: '鎵樼洏瑙g粦',
+ name: 'untie',
+ color: 'cyan',
+ cuIcon: 'pullup',
+ url: '/tzsk/pakin/untie'
+ },
+ {
+ title: '缁勬墭涓婃灦',
+ name: 'pakin',
+ color: 'cyan',
+ cuIcon: 'pullup',
+ url: '/tzsk/order/orderPutOn'
+ },
+ {
+ title: '璁㈠崟鎷h揣',
+ name: 'pakin',
+ color: 'cyan',
+ cuIcon: 'pullup',
+ url: '/tzsk/order/orderPick'
+ },
+ {
+ title: '涓存椂鍏ュ簱',
+ name: 'pakin',
+ color: 'cyan',
+ cuIcon: 'pullup',
+ url: '/pakin/pakin2'
+ },
+ {
+ title: 'AGV鐩樼偣/鎷f枡',
+ name: 'AGVPick',
+ color: 'cyan',
+ cuIcon: 'pullup',
+ url: '/tzsk/AGV/AGVPick'
+ },
+ {
+ title: '鍐嶆鎷f枡',
+ name: 'changePallet',
+ color: 'green',
+ cuIcon: 'order',
+ url: '/pakin/pickAgain'
+ },
+ {
+ title: 'AGV缁勬墭',
+ name: 'AGVPakin',
color: 'blue',
+ cuIcon: 'pullup',
+ url: '/tzsk/AGV/AGVPakin'
+ },
+ {
+ title: 'AGV涓婃灦缁戝畾',
+ name: 'AGVPakinBing',
+ color: 'mauve',
+ // cuIcon: 'pullup',
+ url: '/tzsk/AGV/AGVPakinBing'
+ },
+ {
+ title: 'AGV鍚姩鍏ュ簱',
+ name: 'AGVStart',
+ color: 'pink',
+ // cuIcon: 'pullup',
+ url: '/tzsk/AGV/AGVStart'
+ },
+ {
+ title: 'AGV涓婃灦缁勬墭',
+ name: 'AGVPakinOn',
+ color: 'brown',
+ // cuIcon: 'pullup',
+ url: '/tzsk/AGV/AGVPakinOn'
+ },
+ {
+ title: 'AGV瀹瑰櫒绂诲満',
+ name: 'pakin',
+ color: 'cyan',
+ cuIcon: 'pullup',
+ url: '/tzsk/AGV/AGVContainerMove'
+ },
+ {
+ title: '璁㈠崟鍏ュ簱',
+ name: 'orderPakin',
+ color: 'red',
cuIcon: 'pullup',
url: '/order/orderPakin'
},
{
title: '缁勬墭涓婃灦',
name: 'putOn',
- color: 'cyan',
+ color: 'orange',
cuIcon: 'pullup',
url: '/pakin/putOn'
},
- // {
- // title: '鎵撳嵃',
- // name: 'print',
- // color: 'purple',
- // cuIcon: 'text',
- // url: '/print/print'
- // },
+ {
+ title: '鎵撳嵃',
+ name: 'print',
+ color: 'purple',
+ cuIcon: 'text',
+ url: '/print/print'
+ },
{
title: '璁㈠崟涓婃灦',
name: 'orderPutOn',
- color: 'mauve',
+ color: 'yellow',
cuIcon: 'pullup',
url: '/order/orderPutOn'
},
{
title: '璁㈠崟涓嬫灦',
name: 'orderPutDown',
- color: 'pink',
+ color: 'olive',
cuIcon: 'pulldown',
url: '/order/orderPutDown'
},
{
title: '搴撳瓨鏌ヨ',
name: 'stockQuery',
- color: 'brown',
+ color: 'green',
cuIcon: 'check',
url: '/stock/stockQuery'
},
@@ -117,15 +194,27 @@
},
],
- colorList: ['cyan','blue','mauve','pink','brown','red','orange','yellow','olive','olive','green','grey' ]
+ colorList: ['cyan','blue','purple','mauve','pink','brown','red','orange','yellow','olive','olive','grey' ]
};
},
onShow() {
this.baseUrl = uni.getStorageSync('baseUrl');
this.token = uni.getStorageSync('token');
this.getAuth()
+ this.backGroundRepeat()
},
methods: {
+ backGroundRepeat() {
+ let len = this.colorList.length
+ let i = 0
+ for (let k in this.elements2) {
+ if (i == len) {
+ i = 0
+ }
+ this.elements2[k].color = this.colorList[i]
+ i++
+ }
+ },
getAuth() {
let that = this
uni.request({
--
Gitblit v1.9.1