| | |
| | | <view> |
| | | <scroll-view scroll-y class="page"> |
| | | <view class="nav-list"> |
| | | <navigator hover-class='none' :url="'/pages' + item.url" class="nav-li" navigateTo |
| | | <!-- :url="'/pages' + item.url + '?param=' + item.param" navigateTo--> |
| | | <view hover-class='none' class="nav-li" @click="toOrder(item)" |
| | | :class="'bg-'+item.color" :style="[{animation: 'show ' + ((index+1)*0.2+1) + 's 1'}]" |
| | | v-for="(item,index) in elements" :key="index"> |
| | | <view class="nav-title">{{item.title}}</view> |
| | | <view class="nav-name">{{item.name}}</view> |
| | | <text :class="'cuIcon-' + item.cuIcon"></text> |
| | | </navigator> |
| | | </view> |
| | | </view> |
| | | <view class="cu-tabbar-height"></view> |
| | | </scroll-view> |
| | | <view style="height: 50rpx;"></view> |
| | | </view> |
| | | </template> |
| | | |
| | |
| | | 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', |
| | |
| | | // url: `/phyz/order/purchaseOrder` |
| | | // }, |
| | | { |
| | | title: '订单出库', |
| | | title: '采购出库', |
| | | name: 'outOrder', |
| | | color: 'blue', |
| | | // cuIcon: 'pullup', |
| | |
| | | color: 'blue', |
| | | // cuIcon: 'pullup', |
| | | url: `/phyz/bcp/bcpOrder` |
| | | }, |
| | | { |
| | | title: '半成品入库单_吸塑', |
| | | name: 'bcpOrder', |
| | | color: 'blue', |
| | | // cuIcon: 'pullup', |
| | | url: `/phyz/bcp/bcpOrder_xs` |
| | | }, |
| | | { |
| | | title: '半成品调拨单', |
| | |
| | | url: `/phyz/orderOut/bcpOrderOutSelect` |
| | | }, |
| | | { |
| | | title: '半成品出库单_二厂', |
| | | name: 'bcpOutOrder', |
| | | color: 'blue', |
| | | // cuIcon: 'pullup', |
| | | url: `/phyz/orderOut/bcpOrderOutSelect_2`, |
| | | param: {orderType: [1,2,3]} |
| | | }, |
| | | { |
| | | title: '半成品加工单', |
| | | name: 'processOrder', |
| | | color: 'blue', |
| | |
| | | // 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' ] |
| | | }; |
| | | }, |
| | |
| | | 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: { |
| | |
| | | i++ |
| | | } |
| | | }, |
| | | toOrder(item) { |
| | | console.log(item); |
| | | uni.navigateTo({ |
| | | url: `/pages${item.url}`, |
| | | success(res) { |
| | | res.eventChannel.emit('param', { |
| | | param: item.param |
| | | }) |
| | | } |
| | | }) |
| | | }, |
| | | 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, |
| | | param: secMenu[i].param, |
| | | url: `${secMenu[i].code}` |
| | | }) |
| | | } |
| | | }, |
| | | getAuth(id) { |
| | | let that = this |
| | | uni.request({ |