|
|
@ -85,6 +85,10 @@ |
|
|
|
// 预生产收货:type = 'predict' |
|
|
|
props: { |
|
|
|
type: 'assemble', |
|
|
|
title: { |
|
|
|
type: String, |
|
|
|
default: '' |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
@ -182,13 +186,8 @@ |
|
|
|
|
|
|
|
var list = res.data.list; |
|
|
|
this.totalCount = res.data.total |
|
|
|
if (this.type == 'predict') { |
|
|
|
updateTitle("预生产收货任务(" + this.totalCount + ")"); |
|
|
|
} else if (this.type == 'assemble') { |
|
|
|
updateTitle("装配收货任务(" + this.totalCount + ")"); |
|
|
|
} else { |
|
|
|
updateTitle("报废收货任务(" + this.totalCount + ")"); |
|
|
|
} |
|
|
|
// 预生产收货任务 装配收货任务 报废收货任务 |
|
|
|
updateTitle(this.title+"(" + this.totalCount + ")"); |
|
|
|
this.loadingType = "more"; |
|
|
|
if (list == null || list.length == 0) { |
|
|
|
this.loadingType = "noMore"; |
|
|
@ -202,13 +201,7 @@ |
|
|
|
if (type === "refresh") { |
|
|
|
uni.stopPullDownRefresh(); |
|
|
|
} |
|
|
|
if (this.type == 'predict') { |
|
|
|
updateTitle("预生产收货任务(" + this.totalCount + ")"); |
|
|
|
} else if (this.type == 'assemble') { |
|
|
|
updateTitle("装配收货任务(" + this.totalCount + ")"); |
|
|
|
} else { |
|
|
|
updateTitle("报废收货任务(" + this.totalCount + ")"); |
|
|
|
} |
|
|
|
updateTitle(this.title+"(" + this.totalCount + ")"); |
|
|
|
this.loadingType = ""; |
|
|
|
uni.hideLoading(); |
|
|
|
that.showMessage(error) |
|
|
@ -218,18 +211,15 @@ |
|
|
|
openJobDetail(item, packingNumber = '') { |
|
|
|
if (this.type == 'predict') { |
|
|
|
uni.navigateTo({ |
|
|
|
url: './productReceiptDetail?id=' + item.masterId + '&status=' + item.status + '&scaned=' + |
|
|
|
packingNumber |
|
|
|
url: './productReceiptDetail?id=' + item.masterId + '&status=' + item.status + '&scaned=' + packingNumber +'&title='+this.title |
|
|
|
}); |
|
|
|
} else if (this.type == 'assemble') { |
|
|
|
uni.navigateTo({ |
|
|
|
url: './fgProductReceiptDetail?id=' + item.masterId + '&status=' + item.status + |
|
|
|
'&scaned=' + packingNumber |
|
|
|
url: './fgProductReceiptDetail?id=' + item.masterId + '&status=' + item.status + '&scaned=' + packingNumber +'&title='+this.title |
|
|
|
}); |
|
|
|
} else { |
|
|
|
uni.navigateTo({ |
|
|
|
url: './scrapReceiptDetail?id=' + item.masterId + '&status=' + item.status + '&scaned=' + |
|
|
|
packingNumber |
|
|
|
url: './scrapReceiptDetail?id=' + item.masterId + '&status=' + item.status + '&scaned=' + packingNumber +'&title='+this.title |
|
|
|
}); |
|
|
|
} |
|
|
|
}, |
|
|
|