| | |
| | | return |
| | | } |
| | | let _this = this |
| | | item['orderType'] = 'bcp' |
| | | uni.navigateTo({ |
| | | url: './orderCheck', |
| | | success(res) { |
| | | res.eventChannel.emit('item', { |
| | | item: item |
| | | item: item, |
| | | }), |
| | | res.eventChannel.emit('type', { |
| | | type: "bcp" |
| | |
| | | // }) |
| | | 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); |
| | |
| | | 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', |