From d9c50654ead0a35e44294059db41def2de1932b1 Mon Sep 17 00:00:00 2001 From: zjj <3272660260@qq.com> Date: 星期三, 29 五月 2024 18:31:52 +0800 Subject: [PATCH] # --- pages/home/home.vue | 138 +++++++++++++++++++++++---------------------- 1 files changed, 70 insertions(+), 68 deletions(-) diff --git a/pages/home/home.vue b/pages/home/home.vue index 6075358..8ef4dd5 100644 --- a/pages/home/home.vue +++ b/pages/home/home.vue @@ -23,83 +23,84 @@ token: '', icon: '', elements: [], - elements2: [{ + elements2: [ + { title: '缁勬墭鍏ュ簱', name: 'pakin', color: 'cyan', cuIcon: 'pullup', url: '/pakin/pakin' - }, + }, { - title: '璁㈠崟鍏ュ簱', - name: 'orderPakin', - color: 'blue', + title: '骞冲簱缁勬墭', + name: 'putOn', + color: 'orange', cuIcon: 'pullup', - url: '/order/orderPakin' + url: '/pakin/putOn' }, - // { - // title: '鎵撳嵃', - // name: 'print', - // color: 'purple', - // cuIcon: 'text', - // url: '/print/print' - // }, { - title: '璁㈠崟涓婃灦', + 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', - cuIcon: 'pulldown', - url: '/order/orderPutDown' - }, - { - title: '搴撳瓨鏌ヨ', - name: 'stockQuery', - color: 'brown', - cuIcon: 'check', - url: '/stock/stockQuery' - }, - { - title: '鐩樼偣', - name: 'stockCheck', - color: 'red', - cuIcon: 'post', - url: '/stock/stockCheck' - }, - { - title: '鍟嗗搧鎵撳嵃', - name: 'matList', - color: 'orange', - cuIcon: 'post', - url: '/mat/matList' - }, - { - title: '琛ヨ揣', - name: 'restock', - color: 'yellow', - cuIcon: 'punch', - url: '/stock/restock' - }, - { - title: '杞叏鏉�', - name: 'piking', + title: '璁㈠崟缁勬墭', + name: 'orderComb', color: 'olive', - cuIcon: 'order', - url: '/pakin/piking' + cuIcon: 'pulldown', + url: '/order/orderComb' }, - { - title: '鎹㈡澘缁戝畾', - name: 'changePallet', - color: 'green', - cuIcon: 'order', - url: '/stock/changePallet' - }, + // { + // title: '搴撳瓨鏌ヨ', + // name: 'stockQuery', + // color: 'green', + // cuIcon: 'check', + // url: '/stock/stockQuery' + // }, + // { + // title: '鐩樼偣', + // name: 'stockCheck', + // color: 'red', + // cuIcon: 'post', + // url: '/stock/stockCheck' + // }, + // { + // title: '鍟嗗搧鎵撳嵃', + // name: 'matList', + // color: 'orange', + // cuIcon: 'post', + // url: '/mat/matList' + // }, + // { + // title: '琛ヨ揣', + // name: 'restock', + // color: 'yellow', + // cuIcon: 'punch', + // url: '/stock/restock' + // }, + // { + // title: '杞叏鏉�', + // name: 'piking', + // color: 'olive', + // cuIcon: 'order', + // url: '/pakin/piking' + // }, + // { + // title: '鎹㈡澘缁戝畾', + // name: 'changePallet', + // color: 'green', + // cuIcon: 'order', + // url: '/stock/changePallet' + // }, { title: '閫�鍑虹櫥褰�', name: 'logOut', @@ -121,7 +122,7 @@ getAuth() { let that = this uni.request({ - url: that.baseUrl + '/menu/pda/auth', + url: that.baseUrl + '/mobile/menu/pda/auth', data: {}, header: { 'token': uni.getStorageSync('token') }, method: 'POST', @@ -130,7 +131,7 @@ that.elements = [] if (res.code === 200) { if (res.data == undefined || res.data == null || res.data == "") { - that.elements = that.elements2 + that.elements = that.elements2 return } for (var i = 0; i < res.data.length; i++) { @@ -165,11 +166,12 @@ }); }, 1000); } else if(res.status === 404) { - uni.showToast({ - title: '404', - icon: "none", - position: 'top' - }) + that.elements = that.elements2 + // uni.showToast({ + // title: '榛樿涓婚〉', + // icon: "none", + // position: 'top' + // }) } else { uni.showToast({ title: res.msg, -- Gitblit v1.9.1