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. 12
      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) { onLoad(option) {
uni.setNavigationBarTitle({
title: option.title+'详情'
});
this.id = option.id; this.id = option.id;
this.scanMessage = option.scanMessage || ''; this.scanMessage = option.scanMessage || '';
if (this.id != undefined) { if (this.id != undefined) {

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

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

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

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

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

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

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

@ -64,8 +64,13 @@
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,13 +163,13 @@
} }
this.jobList = type === "refresh" ? list : this.jobList.concat(list); this.jobList = type === "refresh" ? list : this.jobList.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)
@ -199,7 +204,7 @@
openJobDetail(item) { openJobDetail(item) {
uni.navigateTo({ uni.navigateTo({
url: './overPackageJobDetail?id=' + item.masterId + '&status=' + item.status url: './overPackageJobDetail?id=' + item.masterId + '&status=' + item.status+'&title='+this.title
}); });
}, },

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

@ -123,6 +123,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) {
// //
@ -174,9 +177,12 @@
methods: { methods: {
resizeCollapse() { resizeCollapse() {
this.$nextTick(r => { this.$nextTick(r => {
this.$refs.comOverPackJobDetailCard.forEach(r => { if(this.$refs.comOverPackJobDetailCard){
r.resizeCollapse(); this.$refs.comOverPackJobDetailCard.forEach(r => {
}) r.resizeCollapse();
})
}
// this.$refs.mainCollapse.forEach(r => { // this.$refs.mainCollapse.forEach(r => {
// r.childrens.forEach(i => { // r.childrens.forEach(i => {
// i.init(); // i.init();

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

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

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

@ -113,6 +113,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) {

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

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

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

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

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

@ -115,6 +115,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/productionReturn/job/returnJob.vue

@ -69,8 +69,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');
@ -161,7 +165,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";
@ -175,7 +179,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)
@ -184,7 +188,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
}); });
}, },

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

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

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

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

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

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

4
src/pages/query/container.vue

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

4
src/pages/query/item.vue

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

4
src/pages/query/location.vue

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

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

@ -107,6 +107,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) {
// //

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

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

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

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

Loading…
Cancel
Save