From 248ef3ba3de9994dc83d2b36690542893f9fb6e6 Mon Sep 17 00:00:00 2001 From: whycq <913841844@qq.com> Date: 星期四, 28 十一月 2024 16:26:06 +0800 Subject: [PATCH] # --- pages/home/orderManage.vue | 54 +++++++++++++++++++++++++++++++++++++++++++++++++++--- 1 files changed, 51 insertions(+), 3 deletions(-) diff --git a/pages/home/orderManage.vue b/pages/home/orderManage.vue index 7efccb5..7b7957c 100644 --- a/pages/home/orderManage.vue +++ b/pages/home/orderManage.vue @@ -12,6 +12,7 @@ </view> <view class="cu-tabbar-height"></view> </scroll-view> + <view style="height: 50rpx;"></view> </view> </template> @@ -25,6 +26,18 @@ elements: [], project: 'tzsk', elements2: [ + { + title: '寰呭寘瑁呭叆搴撳崟', + name: 'pakinOrder', + color: 'blue', + url: `/phyz/waitOrder/waitOrderIn` + }, + { + title: '寰呭寘瑁呭嚭搴撳崟', + name: 'pakinOrder', + color: 'blue', + url: `/phyz/waitOrder/waitOrderOut` + }, { title: '閲囪喘鍏ュ簱鍗�', name: 'pakinOrder', @@ -47,7 +60,7 @@ // url: `/phyz/order/purchaseOrder` // }, { - title: '璁㈠崟鍑哄簱', + title: '閲囪喘鍑哄簱', name: 'outOrder', color: 'blue', // cuIcon: 'pullup', @@ -88,8 +101,23 @@ // cuIcon: 'pullup', url: `/phyz/backStock/backStocksOrder` }, + { + title: '鍏ュ簱鍗�', + name: 'orderIn', + color: 'blue', + // cuIcon: 'pullup', + url: `/phyz/comOrder/orderIn` + }, + { + title: '鍑哄簱鍗�', + name: 'orderOut', + color: 'blue', + // cuIcon: 'pullup', + url: `/phyz/comOrder/orderOut` + }, ], + menu: [], colorList: ['cyan','blue','purple','mauve','pink','brown','red','orange','yellow','olive','olive','grey' ] }; }, @@ -103,8 +131,9 @@ onLoad(option) { this.baseUrl = uni.getStorageSync('baseUrl'); this.token = uni.getStorageSync('token'); - this.project = uni.getStorageSync('project') - this.getAuth(option.id) + this.project = uni.getStorageSync('project'); + this.menu = uni.getStorageSync('menu'); + this.getAuth2(option.id) this.backGroundRepeat() }, methods: { @@ -119,6 +148,25 @@ i++ } }, + getAuth2(id) { + let secMenu = [] + for (let k of this.menu) { + if (id == k.id) { + secMenu = k.children + } + } + for (let i in secMenu) { + this.getIcon(secMenu[i].title) + this.elements.unshift({ + title: secMenu[i].name, + name: secMenu[i].title, + color: this.colorList[i], + cuIcon: this.icon, + id: secMenu[i].id, + url: `${secMenu[i].code}` + }) + } + }, getAuth(id) { let that = this uni.request({ -- Gitblit v1.9.1