|  |  |  | 
|---|
|  |  |  | _this.pickList = data.wrkDetls | 
|---|
|  |  |  | _this.wrkNo = data.wrkDetls[0].wrkNo | 
|---|
|  |  |  | _this.locNo = data.item.sourceLocNo | 
|---|
|  |  |  | _this.getLocDetl(data.item.sourceLocNo) | 
|---|
|  |  |  | _this.getWrkDetl(data.wrkDetls[0].wrkNo) | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | methods: { | 
|---|
|  |  |  | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | // 获取工作明细 | 
|---|
|  |  |  | getWrkDetl(wrkNo) { | 
|---|
|  |  |  | let _this = this | 
|---|
|  |  |  | uni.request({ | 
|---|
|  |  |  | url: `${_this.baseUrl}/agv/wrkDetl/list/auth`, | 
|---|
|  |  |  | header: {'token': uni.getStorageSync('token')}, | 
|---|
|  |  |  | data: { | 
|---|
|  |  |  | curr: 1, | 
|---|
|  |  |  | limit: 1000, | 
|---|
|  |  |  | wrk_no: wrkNo | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | method: 'GET', | 
|---|
|  |  |  | success(res) { | 
|---|
|  |  |  | res = res.data | 
|---|
|  |  |  | if (res.code === 200) { | 
|---|
|  |  |  | _this.pickList = res.data.records | 
|---|
|  |  |  | _this.getLocDetl(_this.locNo) | 
|---|
|  |  |  | } else if (res.code == 403) { | 
|---|
|  |  |  | uni.showToast({ title: res.msg, icon: "error", position: 'top' }) | 
|---|
|  |  |  | setTimeout(() => { uni.reLaunch({ url: '../../login/login' }); }, 1000); | 
|---|
|  |  |  | } else { | 
|---|
|  |  |  | uni.showToast({ title: res.msg, icon: "error", position: 'top' }) | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | // 已选拣料列表 | 
|---|
|  |  |  | chosed(wrkDetls,locDetls) { | 
|---|
|  |  |  | console.log(wrkDetls,locDetls); | 
|---|