|  |  | 
 |  |  |             </view> | 
 |  |  |             <!-- 左下 --> | 
 |  |  |             <view class="list-left-bottom"> | 
 |  |  |                <button size="mini">明细</button> | 
 |  |  |                <button size="mini">完成</button> | 
 |  |  |                <button size="mini" @click="getWrkDetlList(item.wrkNo)">明细</button> | 
 |  |  |                <button size="mini" @click="handControl(item.wrkNo)">完成</button> | 
 |  |  |                <button size="mini">取消</button> | 
 |  |  |             </view> | 
 |  |  |          </view> | 
 |  |  | 
 |  |  |          this.baseUrl = uni.getStorageSync('baseUrl'); | 
 |  |  |          this.token = uni.getStorageSync('token'); | 
 |  |  |          this.oldDataList = [...this.dataList] | 
 |  |  |          this.getWaitPakinList() | 
 |  |  |          this.getWrkMastList() | 
 |  |  |       }, | 
 |  |  |       methods: { | 
 |  |  |          // 搜索框输入 | 
 |  |  | 
 |  |  |              | 
 |  |  |          }, | 
 |  |  |          // 获取工作列表 | 
 |  |  |          getWaitPakinList() { | 
 |  |  |          getWrkMastList() { | 
 |  |  |             let _this = this | 
 |  |  |             _this.dataList = [] | 
 |  |  |             uni.request({ | 
 |  |  | 
 |  |  |                } | 
 |  |  |             }) | 
 |  |  |          }, | 
 |  |  |          // 获取工作明细 | 
 |  |  |          getWrkDetlList(e) { | 
 |  |  |             let _this = this | 
 |  |  |             uni.navigateTo({ | 
 |  |  |                url: "./wrkDetl", | 
 |  |  |                success: function(res) { | 
 |  |  |                   // 通过eventChannel向被打开页面传送数据   向另外一个页面传递值的 | 
 |  |  |                   res.eventChannel.emit('item', { | 
 |  |  |                      item: e | 
 |  |  |                   }) | 
 |  |  |                }, | 
 |  |  |                events: { | 
 |  |  |                   // 为指定事件添加一个监听器,获取被打开页面传送到当前页面的数据  另外一个页面传过来的 | 
 |  |  |                   acceptDataFromOpenedPage: function(data) { | 
 |  |  |                      // _this.matnr = data.data | 
 |  |  |                      _this.input(_this.matnr) | 
 |  |  |                   }, | 
 |  |  |                }, | 
 |  |  |             }); | 
 |  |  |          }, | 
 |  |  |          handControl(wrkNo) { | 
 |  |  |             let _this = this | 
 |  |  |             uni.request({ | 
 |  |  |                url: `${_this.baseUrl}/agv/hand/control/wrkMast`, | 
 |  |  |                header: { | 
 |  |  |                   'token': uni.getStorageSync('token'), | 
 |  |  |                   'content-type': 'application/x-www-form-urlencoded' | 
 |  |  |                }, | 
 |  |  |                data: { | 
 |  |  |                   workNo: wrkNo, | 
 |  |  |                   type: 1 | 
 |  |  |                }, | 
 |  |  |                method: 'POST', | 
 |  |  |                success(res) { | 
 |  |  |                   res = res.data | 
 |  |  |                   if (res.code === 200) { | 
 |  |  |                      _this.getWrkMastList() | 
 |  |  |                   }  | 
 |  |  |                } | 
 |  |  |             }) | 
 |  |  |          } | 
 |  |  |       } | 
 |  |  |    } | 
 |  |  | </script> |