| | |
| | | option: '', |
| | | options: [], |
| | | combDis: false, |
| | | maxCount: 0 |
| | | maxCount: 0, |
| | | orderType: '' |
| | | } |
| | | }, |
| | | onShow() { |
| | |
| | | // }) |
| | | eventChannel.on('item', function(data) { |
| | | let ids = [data.item.id] |
| | | _this.getPakoutList(ids) |
| | | if (data.item.orderType == 'bcp') { |
| | | _this.getPakoutList(ids,'bcp') |
| | | } else { |
| | | _this.getPakoutList(ids,null) |
| | | } |
| | | |
| | | }) |
| | | eventChannel.on('type', function(data) { |
| | | console.log(data); |
| | | if (data) { |
| | | _this.orderType = data.type |
| | | } |
| | | }) |
| | | }, |
| | | methods: { |
| | |
| | | item.agvStaNo = option |
| | | }, |
| | | // 订单明细 |
| | | getPakoutList(ids,locNo) { |
| | | getPakoutList(ids,bcp) { |
| | | let _this = this |
| | | uni.request({ |
| | | url: `${_this.baseUrl}/out/pakout/preview/auth`, |
| | | url: `${_this.baseUrl}/bcp/out/pakout/preview/auth`, |
| | | header: {'token': uni.getStorageSync('token')}, |
| | | data: ids, |
| | | method: 'POST', |
| | |
| | | k['isOpen'] = false |
| | | k['count'] = k.anfme |
| | | k.anfme = 0 |
| | | if (_this.orderType == 'bcp') { |
| | | if (k.locNo.substring(k.locNo.length - 1, k.locNo.length) == 1) { |
| | | continue |
| | | } |
| | | } |
| | | _this.dataList.push(k) |
| | | } |
| | | } |
| | |
| | | data: combList, |
| | | method: 'POST', |
| | | success(res) { |
| | | _this.combDis = true |
| | | _this.combDis = false |
| | | res = res.data |
| | | if (res.code === 200) { |
| | | uni.hideLoading({}) |