Browse Source

原料管理--标题

hella_online_20240829
wangyufei 5 months ago
parent
commit
50321fdac4
  1. 3
      src/pages/purchaseReturn/job/returnDetail.vue
  2. 12
      src/pages/purchaseReturn/job/returnJob.vue
  3. 14
      src/pages/purchaseReturn/record/returnRecord.vue
  4. 11
      src/pages/purchaseReturn/request/returnRequest.vue
  5. 3
      src/pages/purchaseReturn/request/returnRequestDetail.vue
  6. 4
      src/pages/putaway/job/putawayDetail.vue
  7. 11
      src/pages/putaway/job/putawayJob.vue
  8. 3
      src/pages/putaway/record/putawayRecord.vue
  9. 8
      src/pages/putaway/request/putawayRequest.vue

3
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) {
//

12
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
});
},

14
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) {

11
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)
})

3
src/pages/purchaseReturn/request/returnRequestDetail.vue

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

4
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();
}
}
},
//

11
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
});
},

3
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) {

8
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)

Loading…
Cancel
Save