Browse Source

发料管理动态标题

hella_online_20240829
wangyufei 2 months ago
parent
commit
8d62fb8c4e
  1. 3
      src/pages/issue/job/issueDetail.vue
  2. 13
      src/pages/issue/job/issueJob.vue
  3. 3
      src/pages/issue/record/directIssue.vue
  4. 3
      src/pages/issue/request/issueScanRequest.vue
  5. 11
      src/pages/package/job/overPackageJob.vue
  6. 6
      src/pages/package/job/overPackageJobDetail.vue
  7. 5
      src/pages/package/record/overPackageRecord.vue
  8. 3
      src/pages/productionReceipt/job/productionReceiptDetail.vue
  9. 11
      src/pages/productionReceipt/job/productionReceiptJob.vue
  10. 9
      src/pages/productionReturn/coms/comReturnCommonRequest.vue
  11. 3
      src/pages/productionReturn/job/returnDetail.vue
  12. 10
      src/pages/productionReturn/job/returnJob.vue
  13. 5
      src/pages/productionReturn/record/returnToHold.vue
  14. 5
      src/pages/productionReturn/record/returnToStore.vue
  15. 7
      src/pages/productionReturn/request/returnToHoldRequest.vue
  16. 8
      src/pages/productionReturn/request/returnToStoreRequest.vue
  17. 4
      src/pages/query/container.vue
  18. 4
      src/pages/query/item.vue
  19. 4
      src/pages/query/location.vue
  20. 3
      src/pages/repleinsh/job/repleinshDetail.vue
  21. 11
      src/pages/repleinsh/job/repleinshJob.vue
  22. 3
      src/pages/repleinsh/record/directRepleinshRecord.vue

3
src/pages/issue/job/issueDetail.vue

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

13
src/pages/issue/job/issueJob.vue

@ -78,10 +78,12 @@
status: '1,2', //
detailOptions: [],
detailGiveupOptions: [],
productionline: []
productionline: [],
title:''
};
},
onLoad() {
onLoad(option) {
this.title = option.title
this.getIssueJobByProductionline()
},
onShow() {
@ -201,7 +203,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";
@ -215,7 +217,7 @@
if (type === "refresh") {
uni.stopPullDownRefresh();
}
updateTitle("发料任务");
updateTitle(this.title);
this.loadingType = "";
uni.hideLoading();
that.showMessage(error)
@ -257,8 +259,7 @@
openJobDetail(item, scanMessage = '') {
uni.navigateTo({
url: './issueDetail?id=' + item.masterId + '&status=' + item.status + '&scanMessage=' +
scanMessage
url: './issueDetail?id=' + item.masterId + '&status=' + item.status + '&scanMessage=' + scanMessage +'&title='+this.title
});
},

3
src/pages/issue/record/directIssue.vue

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

3
src/pages/issue/request/issueScanRequest.vue

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

11
src/pages/package/job/overPackageJob.vue

@ -64,9 +64,14 @@
status: '1,2', //
detailOptions: [],
detailGiveupOptions: [],
title:''
};
},
onLoad(option){
this.title = option.title
},
onShow() {
this.getList('refresh');
},
@ -158,13 +163,13 @@
}
this.jobList = type === "refresh" ? list : this.jobList.concat(list);
this.pageNo++;
updateTitle("翻包任务(" + this.totalCount + ")");
updateTitle(this.title+"(" + this.totalCount + ")");
}).catch(error => {
if (type === "refresh") {
uni.stopPullDownRefresh();
}
updateTitle("翻包任务");
updateTitle(this.title);
this.loadingType = "";
uni.hideLoading();
that.showMessage(error)
@ -199,7 +204,7 @@
openJobDetail(item) {
uni.navigateTo({
url: './overPackageJobDetail?id=' + item.masterId + '&status=' + item.status
url: './overPackageJobDetail?id=' + item.masterId + '&status=' + item.status+'&title='+this.title
});
},

6
src/pages/package/job/overPackageJobDetail.vue

@ -123,6 +123,9 @@
},
onLoad(option) {
uni.setNavigationBarTitle({
title: option.title+'详情'
})
this.id = option.id;
if (this.id != undefined) {
//
@ -174,9 +177,12 @@
methods: {
resizeCollapse() {
this.$nextTick(r => {
if(this.$refs.comOverPackJobDetailCard){
this.$refs.comOverPackJobDetailCard.forEach(r => {
r.resizeCollapse();
})
}
// this.$refs.mainCollapse.forEach(r => {
// r.childrens.forEach(i => {
// i.init();

5
src/pages/package/record/overPackageRecord.vue

@ -129,6 +129,11 @@
packUnit,
winComScanBalance
},
onLoad(option){
uni.setNavigationBarTitle({
title: option.title
})
},
data() {
return {
id: '',

3
src/pages/productionReceipt/job/productionReceiptDetail.vue

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

11
src/pages/productionReceipt/job/productionReceiptJob.vue

@ -80,8 +80,12 @@
status: '1,2', //
detailOptions: [],
detailGiveupOptions: [],
title:''
};
},
onLoad(option){
this.title = option.title
},
onShow() {
this.getList('refresh');
@ -170,7 +174,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";
@ -185,7 +189,7 @@
uni.stopPullDownRefresh();
}
this.loadingType = "";
updateTitle("生产收料");
updateTitle(this.title);
uni.hideLoading();
that.showMessage(error)
})
@ -193,8 +197,7 @@
openJobDetail(item, packingNumber = '') {
uni.navigateTo({
url: './productionReceiptDetail?id=' + item.masterId + '&status=' + item.status+'&scaned=' +
packingNumber
url: './productionReceiptDetail?id=' + item.masterId + '&status=' + item.status+'&scaned=' + packingNumber +'&title='+this.title
});
},

9
src/pages/productionReturn/coms/comReturnCommonRequest.vue

@ -76,7 +76,6 @@
addAgainOption: [],
showOptions: [],
loadingType: "nomore",
title: "",
fromType: ""
};
@ -87,6 +86,10 @@
type: String,
default: ''
},
title: {
type: String,
default: ''
},
},
@ -115,10 +118,10 @@
methods: {
updateTitle() {
if (this.businessType == 'ReturnToStore') {
this.title = "生产合格退料申请"
// this.title = "退"
this.fromType = "ReturnToStore"
} else if (this.businessType == 'ReturnToHold') {
this.title = "生产隔离退料申请"
// this.title = "退"
this.fromType = "ReturnToHold"
}
updateTitle(this.title)

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

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

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

@ -69,8 +69,12 @@
status: '1,2', //
detailOptions: [],
detailGiveupOptions: [],
title:''
};
},
onLoad(option){
this.title = option.title
},
onShow() {
this.getList('refresh');
@ -161,7 +165,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)
@ -184,7 +188,7 @@
openJobDetail(item) {
uni.navigateTo({
url: './returnDetail?id=' + item.masterId + '&status=' + item.status
url: './returnDetail?id=' + item.masterId + '&status=' + item.status+'&title='+this.title
});
},

5
src/pages/productionReturn/record/returnToHold.vue

@ -134,7 +134,10 @@
};
},
onLoad() {
onLoad(option) {
uni.setNavigationBarTitle({
title: option.title
})
getBusinessType(this.businessTypeCode, res => {
if (res.success) {
this.businessType = res.businessType;

5
src/pages/productionReturn/record/returnToStore.vue

@ -128,7 +128,10 @@
};
},
onLoad() {
onLoad(option) {
uni.setNavigationBarTitle({
title: option.title
})
getBusinessType(this.businessTypeCode, res => {
if (res.success) {
this.businessType = res.businessType;

7
src/pages/productionReturn/request/returnToHoldRequest.vue

@ -1,6 +1,6 @@
<template>
<view class="">
<comReturnCommonRequest ref="request" businessType="ReturnToHold"></comReturnCommonRequest>
<comReturnCommonRequest :title="title" ref="request" businessType="ReturnToHold"></comReturnCommonRequest>
</view>
</template>
@ -19,9 +19,12 @@
data() {
return {
requestList: [],
title:''
};
},
onLoad(option){
this.title = option.title
},
//
onNavigationBarButtonTap(e) {

8
src/pages/productionReturn/request/returnToStoreRequest.vue

@ -1,6 +1,6 @@
<template>
<view class="">
<comReturnCommonRequest ref="request" businessType="ReturnToStore"></comReturnCommonRequest>
<comReturnCommonRequest :title="title" ref="request" businessType="ReturnToStore"></comReturnCommonRequest>
</view>
</template>
@ -19,9 +19,13 @@
data() {
return {
requestList: [],
title:''
};
},
onLoad(option){
this.title = option.title
},
//
onNavigationBarButtonTap(e) {

4
src/pages/query/container.vue

@ -92,9 +92,9 @@
tabIndex: 0,
};
},
onLoad(e){
onLoad(option){
uni.setNavigationBarTitle({
title: e.title
title: option.title
})
},
onNavigationBarButtonTap(e) {

4
src/pages/query/item.vue

@ -96,9 +96,9 @@
this.getContentByTab(this.tabIndex, this.pageNo, this.pageSize, "more");
},
onLoad(e){
onLoad(option){
uni.setNavigationBarTitle({
title: e.title
title: option.title
})
},
mounted() {

4
src/pages/query/location.vue

@ -87,9 +87,9 @@
totalCount:0
};
},
onLoad(e){
onLoad(option){
uni.setNavigationBarTitle({
title: e.title
title: option.title
})
},
onNavigationBarButtonTap(e) {

3
src/pages/repleinsh/job/repleinshDetail.vue

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

11
src/pages/repleinsh/job/repleinshJob.vue

@ -77,8 +77,12 @@
status: '1,2', //
detailOptions: [],
detailGiveupOptions: [],
title:''
};
},
onLoad(option){
this.title = option.title
},
onShow() {
this.getList('refresh');
@ -177,7 +181,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";
@ -191,7 +195,7 @@
uni.stopPullDownRefresh();
}
this.loadingType = "";
updateTitle("补料");
updateTitle(this.title);
uni.hideLoading();
that.showMessage(error)
})
@ -203,8 +207,7 @@
openJobDetail(item,scanMessage = '') {
uni.navigateTo({
url: './repleinshDetail?id=' + item.masterId + '&status=' + item.status+'&scanMessage=' +
scanMessage
url: './repleinshDetail?id=' + item.masterId + '&status=' + item.status+'&scanMessage=' + scanMessage +'&title='+this.title
});
},

3
src/pages/repleinsh/record/directRepleinshRecord.vue

@ -125,6 +125,9 @@
};
},
onLoad(option) {
uni.setNavigationBarTitle({
title: option.title
})
this.clear();
this.getBusinessType()
},

Loading…
Cancel
Save