|
|
@ -21,7 +21,7 @@ |
|
|
|
|
|
|
|
<uni-load-more :status="loadingType" v-if="jobList.length>0" /> |
|
|
|
</view> |
|
|
|
<win-scan-button @goScan='openScanPopup' v-if="false"></win-scan-button> |
|
|
|
<win-scan-button @goScan='openScanPopup' v-if="jobList.length>0"></win-scan-button> |
|
|
|
<winScanPackJob ref="scanPopup" @getResult='getScanResult' ></winScanPackJob> |
|
|
|
<jobList ref="jobList" @selectItem="selectItem"></jobList> |
|
|
|
<comMessage ref="comMessage"></comMessage> |
|
|
@ -232,10 +232,10 @@ |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
openJobDetail(item, packingNumber = '') { |
|
|
|
openJobDetail(item, scanMessage = '') { |
|
|
|
uni.navigateTo({ |
|
|
|
url: './issueDetail?id=' + item.masterId + '&status=' + item.status+'&scaned=' + |
|
|
|
packingNumber |
|
|
|
url: './issueDetail?id=' + item.masterId + '&status=' + item.status+'&scanMessage=' + |
|
|
|
scanMessage |
|
|
|
}); |
|
|
|
}, |
|
|
|
|
|
|
@ -249,7 +249,7 @@ |
|
|
|
|
|
|
|
selectItem(item) { |
|
|
|
this.$refs.scanPopup.closeScanPopup(); |
|
|
|
this.openJobDetail(item,item.packingNumber); |
|
|
|
this.openJobDetail(item,this.scanMessage); |
|
|
|
}, |
|
|
|
|
|
|
|
swipeClick(e, dataContent) { |
|
|
@ -371,6 +371,7 @@ |
|
|
|
sort: 'createTime', |
|
|
|
by: 'asc' |
|
|
|
}).then(res => { |
|
|
|
this.scanMessage =result.scanMessage |
|
|
|
let resultList = res.data.list; |
|
|
|
if (resultList.length > 0) { |
|
|
|
resultList.forEach(item => { |
|
|
@ -386,10 +387,10 @@ |
|
|
|
if (list.length > 1) { |
|
|
|
this.$refs.jobList.openList(list) |
|
|
|
} else { |
|
|
|
this.selectItem(list[0]) |
|
|
|
this.selectItem(list[0],scanMessage) |
|
|
|
} |
|
|
|
} else { |
|
|
|
this.showMessage('未查找到任务') |
|
|
|
this.showMessage("物料号+["result.label.itemCode+"]批次["+result.label.batch+']未查找到任务') |
|
|
|
} |
|
|
|
}).catch(error => { |
|
|
|
this.showMessage(error) |
|
|
|