diff --git a/src/pages/purchaseReturn/job/returnDetail.vue b/src/pages/purchaseReturn/job/returnDetail.vue index cc79e8b1..124e1399 100644 --- a/src/pages/purchaseReturn/job/returnDetail.vue +++ b/src/pages/purchaseReturn/job/returnDetail.vue @@ -98,6 +98,9 @@ }; }, onLoad(option) { + uni.setNavigationBarTitle({ + title: option.title+'详情', + }) this.id = option.id; if (this.id != undefined) { //新建的任务自动接收 diff --git a/src/pages/purchaseReturn/job/returnJob.vue b/src/pages/purchaseReturn/job/returnJob.vue index b95031b9..393840ef 100644 --- a/src/pages/purchaseReturn/job/returnJob.vue +++ b/src/pages/purchaseReturn/job/returnJob.vue @@ -69,9 +69,13 @@ todayTime: "", status: '1,2', //待处理 、进行中 detailOptions: [], - detailGiveupOptions: [] + detailGiveupOptions: [], + title:'' }; }, + onLoad(option) { + this.title = option.title; + }, onShow() { this.getList('refresh'); @@ -158,7 +162,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"; @@ -172,7 +176,7 @@ if (type === "refresh") { uni.stopPullDownRefresh(); } - updateTitle("采购退货"); + updateTitle(this.title); this.loadingType = ""; uni.hideLoading(); that.showErrorMessage(error) @@ -182,7 +186,7 @@ openJobDetail(item) { uni.navigateTo({ - url: './returnDetail?id=' + item.masterId + '&status=' + item.status + url: './returnDetail?id=' + item.masterId + '&status=' + item.status+'&title='+this.title }); }, diff --git a/src/pages/purchaseReturn/record/returnRecord.vue b/src/pages/purchaseReturn/record/returnRecord.vue index aea24018..8ddbedfb 100644 --- a/src/pages/purchaseReturn/record/returnRecord.vue +++ b/src/pages/purchaseReturn/record/returnRecord.vue @@ -103,11 +103,15 @@ onLoad(option) { this.fromType = option.fromType - if (this.fromType == "requestType") { - updateTitle("采购退货申请") - } else { - updateTitle("采购退货记录") - } + // if (this.fromType == "requestType") { + // updateTitle("采购退货申请") + // } else { + // updateTitle("采购退货记录") + // } + uni.setNavigationBarTitle({ + title: option.title + }) + var typeCode = "PurchaseReturn" getBusinessType(typeCode, res => { if (res.success) { diff --git a/src/pages/purchaseReturn/request/returnRequest.vue b/src/pages/purchaseReturn/request/returnRequest.vue index fbd4ca9b..25820e9c 100644 --- a/src/pages/purchaseReturn/request/returnRequest.vue +++ b/src/pages/purchaseReturn/request/returnRequest.vue @@ -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) }) diff --git a/src/pages/purchaseReturn/request/returnRequestDetail.vue b/src/pages/purchaseReturn/request/returnRequestDetail.vue index f17b7941..9122627c 100644 --- a/src/pages/purchaseReturn/request/returnRequestDetail.vue +++ b/src/pages/purchaseReturn/request/returnRequestDetail.vue @@ -60,6 +60,9 @@ }, onLoad(option) { this.id = option.id; + uni.setNavigationBarTitle({ + title: option.title+'详情' + }) this.getDetail(); }, //返回首页 diff --git a/src/pages/putaway/job/putawayDetail.vue b/src/pages/putaway/job/putawayDetail.vue index fb5fe645..d1c8e606 100644 --- a/src/pages/putaway/job/putawayDetail.vue +++ b/src/pages/putaway/job/putawayDetail.vue @@ -114,6 +114,9 @@ }; }, onLoad(option) { + uni.setNavigationBarTitle({ + title: option.title+'详情' + }) this.id = option.id; this.scanedPackingNumber = option.scaned || ''; if (this.id != undefined) { @@ -126,6 +129,7 @@ this.getDetail(); } } + }, //返回首页 diff --git a/src/pages/putaway/job/putawayJob.vue b/src/pages/putaway/job/putawayJob.vue index 44847ff6..23e32740 100644 --- a/src/pages/putaway/job/putawayJob.vue +++ b/src/pages/putaway/job/putawayJob.vue @@ -82,8 +82,13 @@ status: '1,2', //待处理 、进行中 detailOptions: [], detailGiveupOptions: [], + title:'' }; }, + + onLoad(option){ + this.title = option.title + }, onShow() { this.getList('refresh'); @@ -172,7 +177,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"; @@ -186,7 +191,7 @@ uni.stopPullDownRefresh(); } this.loadingType = ""; - updateTitle("采购上架"); + updateTitle(this.title); uni.hideLoading(); that.showMessage(error) }) @@ -194,7 +199,7 @@ openJobDetail(item) { uni.navigateTo({ - url: './putawayDetail?id=' + item.masterId + '&status=' + item.status + url: './putawayDetail?id=' + item.masterId + '&status=' + item.status + '&title='+this.title }); }, diff --git a/src/pages/putaway/record/putawayRecord.vue b/src/pages/putaway/record/putawayRecord.vue index 2d4598dc..75e09df1 100644 --- a/src/pages/putaway/record/putawayRecord.vue +++ b/src/pages/putaway/record/putawayRecord.vue @@ -121,6 +121,9 @@ }; }, onLoad(option) { + uni.setNavigationBarTitle({ + title: option.title + }) this.clear(); getBusinessType(this.businessTypeCode, res => { if (res.success) { diff --git a/src/pages/putaway/request/putawayRequest.vue b/src/pages/putaway/request/putawayRequest.vue index fd983a83..6e5bceef 100644 --- a/src/pages/putaway/request/putawayRequest.vue +++ b/src/pages/putaway/request/putawayRequest.vue @@ -77,8 +77,12 @@ showOptions: [], fromType: "requestType", loadingType: "nomore", + title:'' }; }, + onLoad(option) { + this.title = option.title + }, onReady() { this.detailOptions = getDetailOption(); this.addAgainOption = getAddAgainOption(); @@ -156,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"; @@ -175,7 +179,7 @@ if (type === "refresh") { uni.stopPullDownRefresh(); } - updateTitle("采购上架申请"); + updateTitle(this.title); this.loadingType = ""; uni.hideLoading(); that.showMessage(error)