| | |
| | | url: `/phyz/bcp/bcpDbOrder` |
| | | }, |
| | | { |
| | | title: '半成品调拨单', |
| | | name: 'bcpDbOrder', |
| | | color: 'blue', |
| | | // cuIcon: 'pullup', |
| | | url: `/phyz/bcp/bcpDbOrderV2` |
| | | }, |
| | | { |
| | | title: '半成品出库单', |
| | | name: 'bcpOutOrder', |
| | | color: 'blue', |
| | |
| | | |
| | | ], |
| | | menu: [], |
| | | colorList: ['cyan','blue','purple','mauve','pink','brown','red','orange','yellow','olive','olive','grey' ] |
| | | colorList: ['cyan','blue','purple','mauve','pink','brown','red','orange','yellow','olive','cyan','blue','purple','mauve','pink','brown','red','orange','yellow','olive' ] |
| | | }; |
| | | }, |
| | | // onShow() { |
| | |
| | | } |
| | | }, |
| | | toOrder(item) { |
| | | console.log(item); |
| | | uni.navigateTo({ |
| | | url: `/pages${item.url}`, |
| | | success(res) { |
| | |
| | | } |
| | | 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}` |
| | | }) |
| | | // 兼容2025 02 18 菜单param |
| | | if (secMenu[i].param) { |
| | | this.elements.unshift({ |
| | | title: secMenu[i].name, |
| | | name: secMenu[i].title, |
| | | color: this.colorList[i], |
| | | cuIcon: this.icon, |
| | | id: secMenu[i].id, |
| | | param: JSON.parse(secMenu[i].param), |
| | | url: `${secMenu[i].code}` |
| | | }) |
| | | } else { |
| | | 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}` |
| | | }) |
| | | } |
| | | } |
| | | console.log(this.elements); |
| | | }, |
| | | getAuth(id) { |
| | | let that = this |