| | |
| | | </template> |
| | | |
| | | <script> |
| | | export default { |
| | | data() { |
| | | return { |
| | | mat: { |
| | | matnr: null, |
| | | maktx: null, |
| | | specs: null, |
| | | batch: null, |
| | | orderNo: null, |
| | | anfme: 0, |
| | | }, |
| | | baseIP:'', |
| | | basePORT:'', |
| | | } |
| | | }, |
| | | onLoad(option) { |
| | | let that = this |
| | | // #ifdef APP-NVUE |
| | | const eventChannel = this.$scope.eventChannel; // 兼容APP-NVUE |
| | | // #endif |
| | | // #ifndef APP-NVUE |
| | | const eventChannel = this.getOpenerEventChannel(); |
| | | // #endif |
| | | |
| | | // 监听acceptDataFromOpenerPage事件,获取上一页面通过eventChannel传送到当前页面的数据 |
| | | eventChannel.on('mat', function(data) { |
| | | console.log(data); |
| | | }) |
| | | |
| | | |
| | | }, |
| | | methods: { |
| | | back() { |
| | | this.getOpenerEventChannel().emit('matList', {data: this.mat}); |
| | | uni.navigateBack({ |
| | | |
| | | }) |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style> |