|
|
@ -78,10 +78,12 @@ |
|
|
|
status: '1,2', //待处理 、进行中 |
|
|
|
detailOptions: [], |
|
|
|
detailGiveupOptions: [], |
|
|
|
productionline: [] |
|
|
|
productionline: [], |
|
|
|
title:'' |
|
|
|
}; |
|
|
|
}, |
|
|
|
onLoad() { |
|
|
|
onLoad(option) { |
|
|
|
this.title = option.title |
|
|
|
this.getIssueJobByProductionline() |
|
|
|
}, |
|
|
|
onShow() { |
|
|
@ -201,7 +203,7 @@ |
|
|
|
} |
|
|
|
var list = res.data.list; |
|
|
|
this.totalCount = res.data.total |
|
|
|
updateTitle("发料任务(" + this.totalCount + ")"); |
|
|
|
updateTitle(this.title+"(" + this.totalCount + ")"); |
|
|
|
this.loadingType = "loadmore"; |
|
|
|
if (list == null || list.length == 0) { |
|
|
|
this.loadingType = "nomore"; |
|
|
@ -215,7 +217,7 @@ |
|
|
|
if (type === "refresh") { |
|
|
|
uni.stopPullDownRefresh(); |
|
|
|
} |
|
|
|
updateTitle("发料任务"); |
|
|
|
updateTitle(this.title); |
|
|
|
this.loadingType = ""; |
|
|
|
uni.hideLoading(); |
|
|
|
that.showMessage(error) |
|
|
@ -257,8 +259,7 @@ |
|
|
|
|
|
|
|
openJobDetail(item, scanMessage = '') { |
|
|
|
uni.navigateTo({ |
|
|
|
url: './issueDetail?id=' + item.masterId + '&status=' + item.status + '&scanMessage=' + |
|
|
|
scanMessage |
|
|
|
url: './issueDetail?id=' + item.masterId + '&status=' + item.status + '&scanMessage=' + scanMessage +'&title='+this.title |
|
|
|
}); |
|
|
|
}, |
|
|
|
|
|
|
|