| | |
| | | token: '', |
| | | icon: '', |
| | | elements: [], |
| | | project: 'tzsk', |
| | | elements2: [ |
| | | { |
| | | title: 'AGV组托', |
| | | name: 'AGVPakin', |
| | | color: 'blue', |
| | | // cuIcon: 'pullup', |
| | | url: '/tzsk/AGV/AGVPakin' |
| | | url: `/tzsk/AGV/AGVPakin` |
| | | }, |
| | | { |
| | | title: 'AGV盘点/拣料', |
| | | name: 'AGVPick', |
| | | color: 'cyan', |
| | | // cuIcon: 'pullup', |
| | | url: '/tzsk/AGV/AGVPick' |
| | | url: `/tzsk/AGV/AGVPick` |
| | | }, |
| | | |
| | | { |
| | |
| | | // cuIcon: 'pullup', |
| | | url: '/tzsk/AGV/AGVContainerMove' |
| | | }, |
| | | |
| | | { |
| | | title: '组托入库', |
| | | title: 'AGV条码', |
| | | name: 'AGVCode', |
| | | color: 'cyan', |
| | | // cuIcon: 'pullup', |
| | | url: '/tzsk/AGV/AGVCode' |
| | | }, |
| | | { |
| | | title: '平库组托入库', |
| | | name: 'pakin', |
| | | color: 'cyan', |
| | | // cuIcon: 'pullup', |
| | | url: '/tzsk/pakin/pakin2' |
| | | }, |
| | | { |
| | | title: '组托上架', |
| | | title: '四项组托入库', |
| | | name: 'pakin', |
| | | color: 'cyan', |
| | | // cuIcon: 'pullup', |
| | | url: '/tzsk/pakin/pakin3' |
| | | }, |
| | | { |
| | | title: '平库组托上架', |
| | | name: 'PutOn', |
| | | color: 'cyan', |
| | | // cuIcon: 'pullup', |
| | |
| | | name: 'stockQuery', |
| | | color: 'green', |
| | | cuIcon: 'check', |
| | | url: '/stock/stockQuery' |
| | | url: `/tzsk/stock/stockQuery` |
| | | }, |
| | | { |
| | | title: '盘点', |
| | |
| | | onShow() { |
| | | this.baseUrl = uni.getStorageSync('baseUrl'); |
| | | this.token = uni.getStorageSync('token'); |
| | | this.project = uni.getStorageSync('project') |
| | | this.getAuth() |
| | | this.backGroundRepeat() |
| | | }, |
| | |
| | | header: { 'token': uni.getStorageSync('token') }, |
| | | method: 'POST', |
| | | success(res) { |
| | | console.log(res); |
| | | if (res.statusCode === 404) { |
| | | that.elements = that.elements2 |
| | | return |
| | | } |
| | | res = res.data |
| | | that.elements = [] |
| | | if (res.code === 200) { |
| | |
| | | name: res.data[i].title, |
| | | color: that.colorList[i], |
| | | cuIcon: that.icon, |
| | | url: res.data[i].action |
| | | url: `/${that.project}${res.data[i].action}` |
| | | }) |
| | | } |
| | | that.elements.push({ |