|  |  |  | 
|---|
|  |  |  | <view class="left-item">{{i + 1}}</view> | 
|---|
|  |  |  | </view> | 
|---|
|  |  |  | <view class="list-left-item"> | 
|---|
|  |  |  | <view class="desc">订单号:</view> | 
|---|
|  |  |  | <view class="desc">单号:</view> | 
|---|
|  |  |  | <view class="left-item"> | 
|---|
|  |  |  | <uni-tag :text="item.orderNo" type="primary"></uni-tag> | 
|---|
|  |  |  | </view> | 
|---|
|  |  |  | 
|---|
|  |  |  | url: that.baseUrl + '/order/list/orderNo', | 
|---|
|  |  |  | data: {orderNo: that.orderNo} , | 
|---|
|  |  |  | method: 'GET', | 
|---|
|  |  |  | success(result) { | 
|---|
|  |  |  | result = result.data | 
|---|
|  |  |  | console.log(result); | 
|---|
|  |  |  | return | 
|---|
|  |  |  | if (result.code === 200 && result.data) { | 
|---|
|  |  |  | success(res) { | 
|---|
|  |  |  | res = res.data; | 
|---|
|  |  |  | if (res.code === 200) { | 
|---|
|  |  |  | uni.navigateTo({ | 
|---|
|  |  |  | url: "../order/orderDetil", | 
|---|
|  |  |  | // 通过eventChannel向被打开页面传送数据 | 
|---|
|  |  |  | success: function(res) { | 
|---|
|  |  |  | res.eventChannel.emit('mat', { | 
|---|
|  |  |  | data: result.data | 
|---|
|  |  |  | // 通过eventChannel向被打开页面传送数据   向另外一个页面传递值的 | 
|---|
|  |  |  | res.eventChannel.emit('orderNo', { | 
|---|
|  |  |  | orderNo: that.orderNo | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | // 为指定事件添加一个监听器,获取被打开页面传送到当前页面的数据 | 
|---|
|  |  |  | events: { | 
|---|
|  |  |  | matList: function(data) { | 
|---|
|  |  |  | that.checkMat(data.data) | 
|---|
|  |  |  | that.focuss() | 
|---|
|  |  |  | // 为指定事件添加一个监听器,获取被打开页面传送到当前页面的数据  另外一个页面传过来的 | 
|---|
|  |  |  | orderList: function(data) { | 
|---|
|  |  |  | for(var item in data.data) { | 
|---|
|  |  |  | that.dataList.push(data.data[item]) | 
|---|
|  |  |  | } | 
|---|
|  |  |  | that.orderNo = '' | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | } else if (res.code == 403) { | 
|---|
|  |  |  | uni.showToast({title: res.msg,icon: "none",position: 'top' | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | setTimeout(() => {uni.reLaunch({url: '../login/login'});}, 1000); | 
|---|
|  |  |  | } else { | 
|---|
|  |  |  | uni.showToast({title: res.msg,icon: "none",position: 'top'}) | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | selectOrder() { | 
|---|
|  |  |  | let that = this | 
|---|
|  |  |  | 
|---|
|  |  |  | events: { | 
|---|
|  |  |  | // 为指定事件添加一个监听器,获取被打开页面传送到当前页面的数据  另外一个页面传过来的 | 
|---|
|  |  |  | acceptDataFromOpenedPage: function(data) { | 
|---|
|  |  |  | console.log(data); | 
|---|
|  |  |  | that.orderNo = data.data | 
|---|
|  |  |  | console.log(that.orderNo); | 
|---|
|  |  |  | that.findOrder(that.orderNo) | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | that.matnr = '' | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | set(e) { | 
|---|
|  |  |  | var ck = this.dataList[e].checked | 
|---|