Browse Source

生产管理标题

hella_online_20240829
wangyufei 4 months ago
parent
commit
25338b2896
  1. 3
      src/pages/customerReturn/job/returnDetail.vue
  2. 10
      src/pages/customerReturn/job/returnJob.vue
  3. 3
      src/pages/customerReturn/record/returnRecord.vue
  4. 8
      src/pages/customerReturn/request/customerReturnRequest.vue
  5. 3
      src/pages/customerReturn/request/customerReturnRequestDetail.vue
  6. 3
      src/pages/deliver/job/deliverDetail.vue
  7. 10
      src/pages/deliver/job/deliverJob.vue
  8. 3
      src/pages/deliver/record/deliverRecord.vue
  9. 3
      src/pages/material/materialDowngrade.vue
  10. 7
      src/pages/productPutaway/job/fgProductPutawayJob.vue
  11. 14
      src/pages/productPutaway/job/productPutawayDetail.vue
  12. 20
      src/pages/productPutaway/job/productPutawayJob.vue
  13. 7
      src/pages/productPutaway/job/semiProductPutawayJob.vue
  14. 3
      src/pages/productPutaway/record/productPutawayRecord.vue
  15. 10
      src/pages/productPutaway/request/putawayRequest.vue
  16. 3
      src/pages/productPutaway/request/putawayRequestDetail.vue
  17. 3
      src/pages/productReceipt/job/fgProductReceiptDetail.vue
  18. 7
      src/pages/productReceipt/job/fgProductReceiptJob.vue
  19. 4
      src/pages/productReceipt/job/productReceiptDetail.vue
  20. 30
      src/pages/productReceipt/job/productReceiptJob.vue
  21. 3
      src/pages/productReceipt/job/scrapReceiptDetail.vue
  22. 7
      src/pages/productReceipt/job/scrapReceiptJob.vue
  23. 7
      src/pages/productReceipt/job/semiProductReceiptJob.vue
  24. 3
      src/pages/productReceipt/record/productReceiptRecord.vue
  25. 12
      src/pages/productRecycle/job/productRecycleJob.vue
  26. 3
      src/pages/productRecycle/job/productRecycleJobDetail.vue
  27. 3
      src/pages/productRecycle/record/productRecycleRecord.vue
  28. 12
      src/pages/stockUp/job/stockUpJob.vue
  29. 3
      src/pages/stockUp/job/stockUpJobDetail.vue

3
src/pages/customerReturn/job/returnDetail.vue

@ -92,6 +92,9 @@
}; };
}, },
onLoad(option) { onLoad(option) {
uni.setNavigationBarTitle({
title: option.title+'详情'
})
this.id = option.id; this.id = option.id;
if (this.id != undefined) { if (this.id != undefined) {
// //

10
src/pages/customerReturn/job/returnJob.vue

@ -71,8 +71,12 @@
status: '1,2', // status: '1,2', //
detailOptions: [], detailOptions: [],
detailGiveupOptions: [], detailGiveupOptions: [],
title:''
}; };
}, },
onLoad(option){
this.title = option.title
},
onShow() { onShow() {
this.getList('refresh'); this.getList('refresh');
@ -158,7 +162,7 @@
var list = res.data.list; var list = res.data.list;
this.totalCount = res.data.total this.totalCount = res.data.total
updateTitle("客户退货(" + this.totalCount + ")"); updateTitle(this.title+"(" + this.totalCount + ")");
this.loadingType = "loadmore"; this.loadingType = "loadmore";
if (list == null || list.length == 0) { if (list == null || list.length == 0) {
this.loadingType = "nomore"; this.loadingType = "nomore";
@ -171,7 +175,7 @@
if (type === "refresh") { if (type === "refresh") {
uni.stopPullDownRefresh(); uni.stopPullDownRefresh();
} }
updateTitle("客户退货任务"); updateTitle(this.title);
this.loadingType = ""; this.loadingType = "";
uni.hideLoading(); uni.hideLoading();
that.showMessage(error) that.showMessage(error)
@ -180,7 +184,7 @@
openJobDetail(item) { openJobDetail(item) {
uni.navigateTo({ uni.navigateTo({
url: './returnDetail?id=' + item.masterId + '&status=' + item.status url: './returnDetail?id=' + item.masterId + '&status=' + item.status+'&title='+this.title
}); });
}, },

3
src/pages/customerReturn/record/returnRecord.vue

@ -107,6 +107,9 @@
}; };
}, },
onLoad(option) { onLoad(option) {
uni.setNavigationBarTitle({
title: option.title
})
var typeCode = "CustomerReject" var typeCode = "CustomerReject"
getBusinessType(typeCode, res => { getBusinessType(typeCode, res => {
if (res.success) { if (res.success) {

8
src/pages/customerReturn/request/customerReturnRequest.vue

@ -77,6 +77,7 @@
showOptions: [], showOptions: [],
fromType: "requestType", fromType: "requestType",
loadingType: "nomore", loadingType: "nomore",
title:''
}; };
}, },
@ -101,6 +102,7 @@
this.getList('refresh'); this.getList('refresh');
}, },
onLoad(option) { onLoad(option) {
this.title = option.title
this.getList('refresh'); this.getList('refresh');
}, },
// //
@ -124,7 +126,7 @@
}, },
openRequestDetail(item) { openRequestDetail(item) {
uni.navigateTo({ uni.navigateTo({
url: './customerReturnRequestDetail?id=' + item.masterId url: './customerReturnRequestDetail?id=' + item.masterId+'&title='+this.title
}); });
}, },
@ -158,7 +160,7 @@
var list = res.data.list; var list = res.data.list;
this.totalCount = res.data.total this.totalCount = res.data.total
updateTitle("客户退货申请(" + this.totalCount + ")"); updateTitle(this.title+"(" + this.totalCount + ")");
this.loadingType = "loadmore"; this.loadingType = "loadmore";
if (list == null || list.length == 0) { if (list == null || list.length == 0) {
this.loadingType = "nomore"; this.loadingType = "nomore";
@ -176,7 +178,7 @@
uni.stopPullDownRefresh(); uni.stopPullDownRefresh();
} }
this.loadingType = ""; this.loadingType = "";
updateTitle("客户退货申请"); updateTitle(this.title);
uni.hideLoading(); uni.hideLoading();
that.showMessage(error) that.showMessage(error)
}) })

3
src/pages/customerReturn/request/customerReturnRequestDetail.vue

@ -59,6 +59,9 @@
}; };
}, },
onLoad(option) { onLoad(option) {
uni.setNavigationBarTitle({
title: option.title+'详情'
})
this.id = option.id; this.id = option.id;
this.getDetail(); this.getDetail();
}, },

3
src/pages/deliver/job/deliverDetail.vue

@ -116,6 +116,9 @@
}, },
onLoad(option) { onLoad(option) {
uni.setNavigationBarTitle({
title: option.title+'详情'
})
this.id = option.id; this.id = option.id;
if (this.id != undefined) { if (this.id != undefined) {
// //

10
src/pages/deliver/job/deliverJob.vue

@ -72,10 +72,12 @@
status: '1,2', // status: '1,2', //
detailOptions: [], detailOptions: [],
detailGiveupOptions: [], detailGiveupOptions: [],
businessType:'' businessType:'',
title:''
}; };
}, },
onLoad(option) { onLoad(option) {
this.title = option.title
this.businessType = option.businessType this.businessType = option.businessType
}, },
onShow() { onShow() {
@ -169,7 +171,7 @@
var list = res.data.list; var list = res.data.list;
this.totalCount = res.data.total this.totalCount = res.data.total
updateTitle("制品发货任务(" + this.totalCount + ")"); updateTitle(this.title+"(" + this.totalCount + ")");
this.loadingType = "loadmore"; this.loadingType = "loadmore";
if (list == null || list.length == 0) { if (list == null || list.length == 0) {
this.loadingType = "nomore"; this.loadingType = "nomore";
@ -182,7 +184,7 @@
if (type === "refresh") { if (type === "refresh") {
uni.stopPullDownRefresh(); uni.stopPullDownRefresh();
} }
updateTitle("制品发货任务"); updateTitle(this.title);
this.loadingType = ""; this.loadingType = "";
uni.hideLoading(); uni.hideLoading();
that.showMessage(error) that.showMessage(error)
@ -191,7 +193,7 @@
openJobDetail(item) { openJobDetail(item) {
uni.navigateTo({ uni.navigateTo({
url: './deliverDetail?id=' + item.masterId + '&status=' + item.status url: './deliverDetail?id=' + item.masterId + '&status=' + item.status+'&title='+this.title
}); });
}, },

3
src/pages/deliver/record/deliverRecord.vue

@ -119,6 +119,9 @@
}; };
}, },
onLoad(option) { onLoad(option) {
uni.setNavigationBarTitle({
title: option.title
})
this.deliverType = option.deliverType this.deliverType = option.deliverType
var typeCode = "Deliver" var typeCode = "Deliver"

3
src/pages/material/materialDowngrade.vue

@ -119,6 +119,9 @@
}; };
}, },
onLoad(option) { onLoad(option) {
uni.setNavigationBarTitle({
title: option.title
})
this.clear(); this.clear();
getBusinessType(this.businessTypeCode, res => { getBusinessType(this.businessTypeCode, res => {
if (res.success) { if (res.success) {

7
src/pages/productPutaway/job/fgProductPutawayJob.vue

@ -1,6 +1,6 @@
<template> <template>
<view class=""> <view class="">
<productPutawayJob ref="productPutawayJob" type='assemble'></productPutawayJob> <productPutawayJob :title="title" ref="productPutawayJob" type='assemble'></productPutawayJob>
</view> </view>
</template> </template>
@ -13,9 +13,12 @@
}, },
data() { data() {
return { return {
title:''
}; };
}, },
onLoad(option){
this.title = option.title
},
onReachBottom() { onReachBottom() {
this.$refs.productPutawayJob.onReach(); this.$refs.productPutawayJob.onReach();
}, },

14
src/pages/productPutaway/job/productPutawayDetail.vue

@ -119,20 +119,26 @@
}; };
}, },
onLoad(option) { onLoad(option) {
this.id = option.id; this.id = option.id;
this.type = option.type; this.type = option.type;
this.scanedPackingNumber = option.scaned || ''; this.scanedPackingNumber = option.scaned || '';
this.status = option.status || '' this.status = option.status || ''
if (this.type == 'predict') { if (this.type == 'predict') {
this.switchCode = "SemiPutawayLocationCodeValidate" this.switchCode = "SemiPutawayLocationCodeValidate"
this.hintTitle="预生产上架" // this.hintTitle=""
updateTitle("预生产上架详情"); // updateTitle("");
} else if (this.type == 'assemble') { } else if (this.type == 'assemble') {
this.switchCode = "FgPutawayLocationCodeValidate" this.switchCode = "FgPutawayLocationCodeValidate"
this.hintTitle="成品入库" // this.hintTitle=""
updateTitle("成品入库详情"); // updateTitle("");
} }
this.hintTitle=option.title
uni.setNavigationBarTitle({
title: option.title+'详情'
})
}, },
onShow(){ onShow(){
if (this.id != undefined) { if (this.id != undefined) {

20
src/pages/productPutaway/job/productPutawayJob.vue

@ -83,6 +83,10 @@
}, },
props: { props: {
type: 'assemble', type: 'assemble',
title:{
required:false,
default:''
}
}, },
mounted() { mounted() {
@ -194,11 +198,7 @@
var list = res.data.list; var list = res.data.list;
this.totalCount = res.data.total this.totalCount = res.data.total
this.loadingType = "loadmore"; this.loadingType = "loadmore";
if (this.type == 'predict') { updateTitle(this.title+"(" + this.totalCount + ")");
updateTitle("预生产上架任务(" + this.totalCount + ")");
} else if (this.type == 'assemble') {
updateTitle("成品入库任务(" + this.totalCount + ")");
}
if (list == null || list.length == 0) { if (list == null || list.length == 0) {
this.loadingType = "nomore"; this.loadingType = "nomore";
return; return;
@ -211,11 +211,7 @@
if (type === "refresh") { if (type === "refresh") {
uni.stopPullDownRefresh(); uni.stopPullDownRefresh();
} }
if (this.type == 'predict') { updateTitle(this.title+"(" + this.totalCount + ")");
updateTitle("预生产上架任务(" + this.totalCount + ")");
} else if (this.type == 'assemble') {
updateTitle("成品入库任务(" + this.totalCount + ")");
}
this.loadingType = ""; this.loadingType = "";
uni.hideLoading(); uni.hideLoading();
that.showMessage(error) that.showMessage(error)
@ -224,8 +220,8 @@
openJobDetail(item, packingNumber = '') { openJobDetail(item, packingNumber = '') {
uni.navigateTo({ uni.navigateTo({
url: './productPutawayDetail?id=' + item.masterId + '&status=' + item.status + '&type=' + item url: './productPutawayDetail?id=' + item.masterId + '&status=' + item.status + '&type=' + item.type + '&scaned=' + packingNumber +'&title='+this.title
.type + '&scaned=' + packingNumber
}); });
}, },

7
src/pages/productPutaway/job/semiProductPutawayJob.vue

@ -1,6 +1,6 @@
<template> <template>
<view class=""> <view class="">
<productPutawayJob ref="productPutawayJob" type='predict'></productPutawayJob> <productPutawayJob :title="title" ref="productPutawayJob" type='predict'></productPutawayJob>
</view> </view>
</template> </template>
@ -13,9 +13,12 @@
}, },
data() { data() {
return { return {
title:''
}; };
}, },
onLoad(option){
this.title = option.title
},
onShow() { onShow() {
if(this.$refs.productPutawayJob!=undefined){ if(this.$refs.productPutawayJob!=undefined){

3
src/pages/productPutaway/record/productPutawayRecord.vue

@ -108,6 +108,9 @@
}; };
}, },
onLoad(option) { onLoad(option) {
uni.setNavigationBarTitle({
title: option.title
})
this.type = option.type this.type = option.type
if(this.type=='predict'){ if(this.type=='predict'){
updateTitle('制品上架记录') updateTitle('制品上架记录')

10
src/pages/productPutaway/request/putawayRequest.vue

@ -78,9 +78,13 @@
addAgainOption: [], addAgainOption: [],
showOptions: [], showOptions: [],
loadingType: "nomore", loadingType: "nomore",
title:''
}; };
}, },
onLoad(option){
this.title = option.title
},
onReady() { onReady() {
this.detailOptions = getDetailOption(); this.detailOptions = getDetailOption();
this.addAgainOption = getAddAgainOption(); this.addAgainOption = getAddAgainOption();
@ -125,7 +129,7 @@
}, },
openRequestDetail(item) { openRequestDetail(item) {
uni.navigateTo({ uni.navigateTo({
url: './putawayRequestDetail?id=' + item.masterId url: './putawayRequestDetail?id=' + item.masterId+'&title='+this.title
}); });
}, },
@ -175,13 +179,13 @@
this.requestList = type === "refresh" ? list : this.requestList.concat(list); this.requestList = type === "refresh" ? list : this.requestList.concat(list);
this.pageNo++; this.pageNo++;
updateTitle("制品上架申请(" + this.totalCount + ")"); updateTitle(this.title+"(" + this.totalCount + ")");
}).catch(error => { }).catch(error => {
if (type === "refresh") { if (type === "refresh") {
uni.stopPullDownRefresh(); uni.stopPullDownRefresh();
} }
updateTitle("制品上架申请"); updateTitle(this.title);
this.loadingType = ""; this.loadingType = "";
uni.hideLoading(); uni.hideLoading();
that.showMessage(error) that.showMessage(error)

3
src/pages/productPutaway/request/putawayRequestDetail.vue

@ -58,6 +58,9 @@
}; };
}, },
onLoad(option) { onLoad(option) {
uni.setNavigationBarTitle({
title: option.title+'详情'
})
this.id = option.id; this.id = option.id;
this.getDetail(); this.getDetail();
}, },

3
src/pages/productReceipt/job/fgProductReceiptDetail.vue

@ -147,6 +147,9 @@
}; };
}, },
onLoad(option) { onLoad(option) {
uni.setNavigationBarTitle({
title: option.title+'详情'
})
this.id = option.id; this.id = option.id;
this.scanedPackingNumber = option.scaned || ''; this.scanedPackingNumber = option.scaned || '';
if (this.id != undefined) { if (this.id != undefined) {

7
src/pages/productReceipt/job/fgProductReceiptJob.vue

@ -1,6 +1,6 @@
<template> <template>
<view class=""> <view class="">
<product-receipt-job ref="productreceiptjob" type='assemble'></product-receipt-job> <product-receipt-job :title="title" ref="productreceiptjob" type='assemble'></product-receipt-job>
</view> </view>
</template> </template>
@ -14,9 +14,12 @@
}, },
data() { data() {
return { return {
title:''
}; };
}, },
onLoad(option){
this.title = option.title
},
onShow() { onShow() {
if(this.$refs.productreceiptjob!=undefined){ if(this.$refs.productreceiptjob!=undefined){
this.$refs.productreceiptjob.refresh(); this.$refs.productreceiptjob.refresh();

4
src/pages/productReceipt/job/productReceiptDetail.vue

@ -139,6 +139,10 @@
}; };
}, },
onLoad(option) { onLoad(option) {
uni.setNavigationBarTitle({
title: option.title+'详情'
})
this.id = option.id; this.id = option.id;
this.scanedPackingNumber = option.scaned || ''; this.scanedPackingNumber = option.scaned || '';
this.status = option.status || '' this.status = option.status || ''

30
src/pages/productReceipt/job/productReceiptJob.vue

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

3
src/pages/productReceipt/job/scrapReceiptDetail.vue

@ -109,6 +109,9 @@
}; };
}, },
onLoad(option) { onLoad(option) {
uni.setNavigationBarTitle({
title: option.title+'详情'
})
this.id = option.id; this.id = option.id;
if (this.id != undefined) { if (this.id != undefined) {
// //

7
src/pages/productReceipt/job/scrapReceiptJob.vue

@ -1,6 +1,6 @@
<template> <template>
<view class=""> <view class="">
<product-receipt-job ref="productreceiptjob" type='scrap'></product-receipt-job> <product-receipt-job :title="title" ref="productreceiptjob" type='scrap'></product-receipt-job>
</view> </view>
</template> </template>
@ -14,9 +14,12 @@
}, },
data() { data() {
return { return {
title:''
}; };
}, },
onLoad(option){
this.title = option.title
},
onReachBottom() { onReachBottom() {
this.$refs.productreceiptjob.onReach(); this.$refs.productreceiptjob.onReach();
}, },

7
src/pages/productReceipt/job/semiProductReceiptJob.vue

@ -1,6 +1,6 @@
<template> <template>
<view class=""> <view class="">
<product-receipt-job ref="productreceiptjob" type='predict'></product-receipt-job> <product-receipt-job :title="title" ref="productreceiptjob" type='predict'></product-receipt-job>
</view> </view>
</template> </template>
@ -14,9 +14,12 @@
}, },
data() { data() {
return { return {
title:''
}; };
}, },
onLoad(option){
this.title = option.title
},
onReachBottom() { onReachBottom() {
this.$refs.productreceiptjob.onReach(); this.$refs.productreceiptjob.onReach();
}, },

3
src/pages/productReceipt/record/productReceiptRecord.vue

@ -111,6 +111,9 @@
}; };
}, },
onLoad(option) { onLoad(option) {
uni.setNavigationBarTitle({
title: option.title
})
var typeCode = "ProductReceipt" var typeCode = "ProductReceipt"
getBusinessType(typeCode, res => { getBusinessType(typeCode, res => {
if (res.success) { if (res.success) {

12
src/pages/productRecycle/job/productRecycleJob.vue

@ -69,9 +69,13 @@
todayTime: "", todayTime: "",
status: '1,2', // status: '1,2', //
detailOptions: [], detailOptions: [],
detailGiveupOptions: [] detailGiveupOptions: [],
title:''
}; };
}, },
onLoad(option){
this.title = option.title
},
onShow() { onShow() {
this.getList('refresh'); this.getList('refresh');
@ -159,7 +163,7 @@
} }
var list = res.data.list; var list = res.data.list;
this.totalCount = res.data.total this.totalCount = res.data.total
updateTitle("制品回收任务(" + this.totalCount + ")"); updateTitle(this.title+"(" + this.totalCount + ")");
this.loadingType = "loadmore"; this.loadingType = "loadmore";
if (list == null || list.length == 0) { if (list == null || list.length == 0) {
this.loadingType = "nomore"; this.loadingType = "nomore";
@ -173,7 +177,7 @@
if (type === "refresh") { if (type === "refresh") {
uni.stopPullDownRefresh(); uni.stopPullDownRefresh();
} }
updateTitle("制品回收任务"); updateTitle(this.title);
this.loadingType = ""; this.loadingType = "";
uni.hideLoading(); uni.hideLoading();
that.showErrorMessage(error) that.showErrorMessage(error)
@ -183,7 +187,7 @@
openJobDetail(item) { openJobDetail(item) {
uni.navigateTo({ uni.navigateTo({
url: './productRecycleJobDetail?id=' + item.masterId + '&status=' + item.status url: './productRecycleJobDetail?id=' + item.masterId + '&status=' + item.status+'&title='+this.title
}); });
}, },

3
src/pages/productRecycle/job/productRecycleJobDetail.vue

@ -97,6 +97,9 @@
}; };
}, },
onLoad(option) { onLoad(option) {
uni.setNavigationBarTitle({
title: option.title+'详情'
})
this.id = option.id; this.id = option.id;
if (this.id != undefined) { if (this.id != undefined) {
// //

3
src/pages/productRecycle/record/productRecycleRecord.vue

@ -101,6 +101,9 @@
}, },
onLoad(option) { onLoad(option) {
uni.setNavigationBarTitle({
title: option.title+'详情'
})
this.fromType = option.fromType this.fromType = option.fromType
if (this.fromType == "requestType") { if (this.fromType == "requestType") {
updateTitle("采购退货申请") updateTitle("采购退货申请")

12
src/pages/stockUp/job/stockUpJob.vue

@ -72,9 +72,12 @@
status: '1,2', // status: '1,2', //
detailOptions: [], detailOptions: [],
detailGiveupOptions: [], detailGiveupOptions: [],
title:''
}; };
}, },
onLoad(option){
this.title = option.title
},
onShow() { onShow() {
this.getList('refresh'); this.getList('refresh');
}, },
@ -154,7 +157,7 @@
var list = res.data.list; var list = res.data.list;
this.totalCount = res.data.total this.totalCount = res.data.total
updateTitle("直接备货任务(" + this.totalCount + ")"); updateTitle(this.title+"(" + this.totalCount + ")");
this.loadingType = "loadmore"; this.loadingType = "loadmore";
if (list == null || list.length == 0) { if (list == null || list.length == 0) {
this.loadingType = "nomore"; this.loadingType = "nomore";
@ -167,7 +170,7 @@
if (type === "refresh") { if (type === "refresh") {
uni.stopPullDownRefresh(); uni.stopPullDownRefresh();
} }
updateTitle("直接备货任务"); updateTitle(this.title);
this.loadingType = ""; this.loadingType = "";
uni.hideLoading(); uni.hideLoading();
that.showMessage(error) that.showMessage(error)
@ -176,7 +179,8 @@
openJobDetail(item) { openJobDetail(item) {
uni.navigateTo({ uni.navigateTo({
url: './stockUpJobDetail?id=' + item.masterId + '&status=' + item.status url: './stockUpJobDetail?id=' + item.masterId + '&status=' + item.status+'&title='+this.title
}); });
}, },

3
src/pages/stockUp/job/stockUpJobDetail.vue

@ -129,6 +129,9 @@
}, },
onLoad(option) { onLoad(option) {
uni.setNavigationBarTitle({
title: option.title+'详情'
})
this.id = option.id; this.id = option.id;
if (this.id != undefined) { if (this.id != undefined) {
// //

Loading…
Cancel
Save