|
|
@ -78,9 +78,12 @@ |
|
|
|
showOptions: [], |
|
|
|
fromType: "requestType", |
|
|
|
loadingType: "nomore", |
|
|
|
|
|
|
|
title:'' |
|
|
|
}; |
|
|
|
}, |
|
|
|
onLoad(option) { |
|
|
|
this.title = option.title |
|
|
|
}, |
|
|
|
onReady() { |
|
|
|
this.detailOptions = getDetailOption(); |
|
|
|
this.addAgainOption = getAddAgainOption(); |
|
|
@ -120,7 +123,7 @@ |
|
|
|
methods: { |
|
|
|
openRequestDetail(item) { |
|
|
|
uni.navigateTo({ |
|
|
|
url: './returnRequestDetail?id=' + item.masterId + '&fromType=' + this.fromType |
|
|
|
url: './returnRequestDetail?id=' + item.masterId + '&fromType=' + this.fromType+'&title='+this.title |
|
|
|
}); |
|
|
|
}, |
|
|
|
|
|
|
@ -157,7 +160,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"; |
|
|
@ -176,7 +179,7 @@ |
|
|
|
if (type === "refresh") { |
|
|
|
uni.stopPullDownRefresh(); |
|
|
|
} |
|
|
|
updateTitle("采购退货申请"); |
|
|
|
updateTitle(this.title); |
|
|
|
this.loadingType = ""; |
|
|
|
that.showMessage(error) |
|
|
|
}) |
|
|
|