| | |
| | | export default { |
| | | data() { |
| | | return { |
| | | baseUrl: '', |
| | | token: '', |
| | | orderId: '', |
| | | matFocus: true, |
| | | matnr: '', |
| | | checck: true, |
| | |
| | | allCheckBtnTitle: '全选' |
| | | } |
| | | }, |
| | | onLoad() { |
| | | let that = this |
| | | // const eventChannel = this.$scope.eventChannel; // 兼容APP-NVUE |
| | | const eventChannel = this.getOpenerEventChannel(); |
| | | |
| | | // 监听acceptDataFromOpenerPage事件,获取上一页面通过eventChannel传送到当前页面的数据 |
| | | eventChannel.on('item', function(data) { |
| | | console.log(data); |
| | | that.orderId = data.item.orderId |
| | | |
| | | }) |
| | | }, |
| | | onShow() { |
| | | this.baseUrl = uni.getStorageSync('baseUrl'); |
| | | this.token = uni.getStorageSync('token'); |
| | | this.oldDataList = [...this.dataList] |
| | | this.getOrderDetl(this.orderId) |
| | | }, |
| | | methods: { |
| | | // 订单明细 |
| | | getOrderDetl(id) { |
| | | let _this = this |
| | | uni.request({ |
| | | url: `${_this.baseUrl}/orderDetl/list/auth`, |
| | | header: {'token': uni.getStorageSync('token')}, |
| | | data: { |
| | | curr: 1, |
| | | limit: 1000, |
| | | order_id: id |
| | | }, |
| | | method: 'GET', |
| | | success(res) { |
| | | res = res.data |
| | | console.log(res); |
| | | if (res.code === 200) { |
| | | _this.dataList = res.data.records |
| | | } |
| | | } |
| | | }) |
| | | }, |
| | | matInput() { |
| | | let count = 0 |
| | | let sign = 0 |
| | |
| | | oldDataList: [], |
| | | newDataList: [], |
| | | allCheck: false, |
| | | allCheckBtnTitle: '全选' |
| | | allCheckBtnTitle: '全选', |
| | | } |
| | | }, |
| | | onShow() { |
| | |
| | | header: {'token': uni.getStorageSync('token')}, |
| | | data: { |
| | | curr: 1, |
| | | limit: 1000 |
| | | limit: 1000, |
| | | }, |
| | | method: 'GET', |
| | | success(res) { |