Browse Source

库存管理--标题

hella_online_20240829
wangyufei 4 months ago
parent
commit
c8550b8800
  1. 3
      src/main.js
  2. 3
      src/pages/count/job/countBlindDetail.vue
  3. 14
      src/pages/count/job/countJob.vue
  4. 3
      src/pages/count/job/countLightDetail.vue
  5. 37
      src/pages/inventoryMove/coms/comMoveJob.vue
  6. 20
      src/pages/inventoryMove/coms/comMoveRecord.vue
  7. 10
      src/pages/inventoryMove/job/holdToOkMoveJob.vue
  8. 9
      src/pages/inventoryMove/job/holdToScrapMoveJob.vue
  9. 7
      src/pages/inventoryMove/job/inventoryMoveDetail.vue
  10. 9
      src/pages/inventoryMove/job/moveJob.vue
  11. 8
      src/pages/inventoryMove/job/okToHoldMoveJob.vue
  12. 9
      src/pages/inventoryMove/job/okToScrapMoveJob.vue
  13. 9
      src/pages/inventoryMove/job/scrapToHoldMoveJob.vue
  14. 8
      src/pages/inventoryMove/record/holdToOkRecord.vue
  15. 10
      src/pages/inventoryMove/record/holdToScrapRecord.vue
  16. 10
      src/pages/inventoryMove/record/moveFreeRecord.vue
  17. 8
      src/pages/inventoryMove/record/okToHoldRecord.vue
  18. 8
      src/pages/inventoryMove/record/okToScrapRecord.vue
  19. 10
      src/pages/inventoryMove/record/scrapToHoldRecord.vue
  20. 11
      src/pages/scrap/job/scrapJob.vue
  21. 3
      src/pages/scrap/job/scrapJobDetail.vue
  22. 3
      src/pages/scrap/record/scrapRecord.vue
  23. 3
      src/pages/scrap/request/scrapRequestDetail.vue
  24. 11
      src/pages/scrap/request/scrapRrequest.vue
  25. 3
      src/pages/transfer/job/issueDetail.vue
  26. 10
      src/pages/transfer/job/issueJob.vue
  27. 3
      src/pages/transfer/job/receiptDetail.vue
  28. 11
      src/pages/transfer/job/receiptJob.vue
  29. 3
      src/pages/transfer/record/deliverRecord.vue
  30. 3
      src/pages/transfer/record/receiptRecord.vue
  31. 10
      src/pages/unPlanned/job/issueJob.vue
  32. 3
      src/pages/unPlanned/job/issueJobDetail.vue
  33. 10
      src/pages/unPlanned/job/receiptJob.vue
  34. 3
      src/pages/unPlanned/job/receiptJobDetail.vue
  35. 10
      src/pages/unPlanned/request/issueRequest.vue
  36. 3
      src/pages/unPlanned/request/issueRequestDetail.vue

3
src/main.js

@ -4,6 +4,7 @@ import './router/my_router.js'; //引入拦截
import VueClipboard from 'vue-clipboard2' //复制粘贴 import VueClipboard from 'vue-clipboard2' //复制粘贴
import uView from './uni_modules/vk-uview-ui';// 引入 uView UI import uView from './uni_modules/vk-uview-ui';// 引入 uView UI
import comMessage from './mycomponents/common/comMessage.vue' import comMessage from './mycomponents/common/comMessage.vue'
import comLoading from './mycomponents/common/comLoading.vue'
// #ifndef VUE3 // #ifndef VUE3
import Vue from 'vue' import Vue from 'vue'
@ -33,6 +34,8 @@ export function createApp() {
app.use(VueClipboard) app.use(VueClipboard)
app.use(uView) app.use(uView)
app.component('comMessage', comMessage) app.component('comMessage', comMessage)
app.component('comLoading', comLoading)
console.log("网络22请求") console.log("网络22请求")
// startApp(app); // startApp(app);
return { return {

3
src/pages/count/job/countBlindDetail.vue

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

14
src/pages/count/job/countJob.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');
@ -179,7 +183,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";
@ -192,7 +196,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)
@ -206,12 +210,14 @@
// //
if(item.isOpenCount=="TRUE"){ if(item.isOpenCount=="TRUE"){
uni.navigateTo({ uni.navigateTo({
url: './countLightDetail?id=' + item.id + '&status=' + item.status url: './countLightDetail?id=' + item.id + '&status=' + item.status+'&title='+this.title
}); });
}else { }else {
// //
uni.navigateTo({ uni.navigateTo({
url: './countBlindDetail?id=' + item.id + '&status=' + item.status url: './countBlindDetail?id=' + item.id + '&status=' + item.status+'&title='+this.title
}); });
} }
}, },

3
src/pages/count/job/countLightDetail.vue

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

37
src/pages/inventoryMove/coms/comMoveJob.vue

@ -63,7 +63,11 @@
businessTypeCode: { businessTypeCode: {
type: String, type: String,
default: "Move" default: "Move"
} // } ,//
title: {
type: String,
default: ""
}
}, },
data() { data() {
return { return {
@ -109,20 +113,20 @@
methods: { methods: {
updateTitle() { updateTitle() {
var title = "" var title = ""
var name = "" var name = this.title
if (this.businessTypeCode == "Move") { // if (this.businessTypeCode == "Move") {
name = "库存转移"; // name = "";
} else if (this.businessTypeCode == "HoldToOk") { // } else if (this.businessTypeCode == "HoldToOk") {
name = "隔离转合格"; // name = "";
} else if (this.businessTypeCode == "HoldToScrap") { // } else if (this.businessTypeCode == "HoldToScrap") {
name = "隔离转报废"; // name = "";
} else if (this.businessTypeCode == "OkToHold") { // } else if (this.businessTypeCode == "OkToHold") {
name = "合格转隔离"; // name = "";
} else if (this.businessTypeCode == "OktoScrap") { // } else if (this.businessTypeCode == "OktoScrap") {
name = "合格转报废"; // name = "";
} else if (this.businessTypeCode == "ScrapToHold") { // } else if (this.businessTypeCode == "ScrapToHold") {
name = "报废转隔离"; // name = "";
} // }
this.titleName =name; this.titleName =name;
if (this.totalCount > 0) { if (this.totalCount > 0) {
title = name + "(" + this.totalCount + ")"; title = name + "(" + this.totalCount + ")";
@ -205,7 +209,8 @@
openJobDetail(item) { openJobDetail(item) {
uni.navigateTo({ uni.navigateTo({
url: './inventoryMoveDetail?id=' + item.masterId + '&status=' + item.status+'&businessTypeCode='+this.businessTypeCode url: './inventoryMoveDetail?id=' + item.masterId + '&status=' + item.status+'&businessTypeCode='+this.businessTypeCode+'&title='+this.title
}); });
}, },

20
src/pages/inventoryMove/coms/comMoveRecord.vue

@ -109,6 +109,10 @@
// type: String, // type: String,
// default: "" // default: ""
// }, // },
myTitle: {
type: String,
default: ""
},
}, },
data() { data() {
return { return {
@ -143,43 +147,41 @@
this.getLocationInfo(); this.getLocationInfo();
}, },
onLoad() {
},
methods: { methods: {
initData() { initData() {
if (this.businessTypeCode == "Move") { if (this.businessTypeCode == "Move") {
this.title = "库存转移记录"; // this.title = "";
this.toInventoryStatus = "" this.toInventoryStatus = ""
this.toLocationCode = "" this.toLocationCode = ""
this.isShowEditLocation = true; this.isShowEditLocation = true;
} else if (this.businessTypeCode == "HoldToOk") { } else if (this.businessTypeCode == "HoldToOk") {
this.title = "隔离转合格记录"; // this.title = "";
this.toInventoryStatus = "OK" this.toInventoryStatus = "OK"
this.toLocationCode = "" this.toLocationCode = ""
this.isShowEditLocation = true; this.isShowEditLocation = true;
} else if (this.businessTypeCode == "HoldToScrap") { } else if (this.businessTypeCode == "HoldToScrap") {
this.title = "隔离转报废记录"; // this.title = "";
this.toInventoryStatus = "SCRAP" this.toInventoryStatus = "SCRAP"
this.toLocationCode = "" this.toLocationCode = ""
// this.toLocationCode = "SCRAP" // this.toLocationCode = "SCRAP"
} else if (this.businessTypeCode == "OkToHold") { } else if (this.businessTypeCode == "OkToHold") {
this.title = "合格转隔离记录"; // this.title = "";
this.toInventoryStatus = "HOLD" this.toInventoryStatus = "HOLD"
this.toLocationCode = "" this.toLocationCode = ""
// this.toLocationCode = "HOLD" // this.toLocationCode = "HOLD"
} else if (this.businessTypeCode == "OkToScrap") { } else if (this.businessTypeCode == "OkToScrap") {
this.title = "合格转报废记录"; // this.title = "";
this.toInventoryStatus = "SCRAP" this.toInventoryStatus = "SCRAP"
this.toLocationCode = "" this.toLocationCode = ""
// this.toLocationCode = "SCRAP" // this.toLocationCode = "SCRAP"
} else if (this.businessTypeCode == "ScrapToHold") { } else if (this.businessTypeCode == "ScrapToHold") {
this.title = "报废转隔离记录"; // this.title = "";
this.toInventoryStatus = "HOLD" this.toInventoryStatus = "HOLD"
// this.toLocationCode = "HOLD" // this.toLocationCode = "HOLD"
this.toLocationCode = "" this.toLocationCode = ""
} }
this.title = this.myTitle
uni.setNavigationBarTitle({ uni.setNavigationBarTitle({
title: this.title title: this.title
}) })

10
src/pages/inventoryMove/job/holdToOkMoveJob.vue

@ -1,6 +1,6 @@
<template> <template>
<view class="page-wraper"> <view class="page-wraper">
<comMoveJob ref="comMoveJob" businessTypeCode='HoldToOk'> </comMoveJob> <comMoveJob :title="title" ref="comMoveJob" businessTypeCode='HoldToOk'> </comMoveJob>
</view> </view>
</template> </template>
@ -12,11 +12,13 @@
comMoveJob comMoveJob
}, },
data() { data() {
return { return {
title:''
} }
}, },
onLoad(option){
this.title = option.title
},
onPullDownRefresh() { onPullDownRefresh() {
this.$refs.comMoveJob.refresh(); this.$refs.comMoveJob.refresh();
}, },
@ -28,7 +30,7 @@
} }
}, },
onLoad() {},
methods: { methods: {
} }

9
src/pages/inventoryMove/job/holdToScrapMoveJob.vue

@ -1,6 +1,6 @@
<template> <template>
<view class="page-wraper"> <view class="page-wraper">
<comMoveJob ref="comMoveJob" businessTypeCode='HoldToScrap'> </comMoveJob> <comMoveJob :title="title" ref="comMoveJob" businessTypeCode='HoldToScrap'> </comMoveJob>
</view> </view>
</template> </template>
@ -12,11 +12,13 @@
comMoveJob comMoveJob
}, },
data() { data() {
return { return {
title:''
} }
}, },
onLoad(option){
this.title = option.title
},
onPullDownRefresh() { onPullDownRefresh() {
this.$refs.comMoveJob.refresh(); this.$refs.comMoveJob.refresh();
}, },
@ -28,7 +30,6 @@
} }
}, },
onLoad() {},
methods: { methods: {
} }

7
src/pages/inventoryMove/job/inventoryMoveDetail.vue

@ -96,13 +96,16 @@
businessTypeCode: '', businessTypeCode: '',
toLocationCode: '', toLocationCode: '',
toInventoryStatus: '', toInventoryStatus: '',
jobStatus:"" jobStatus:"",
title:''
}; };
}, },
props: { props: {
}, },
onLoad(option) { onLoad(option) {
this.title = option.title
this.id = option.id; this.id = option.id;
this.businessTypeCode = option.businessTypeCode; this.businessTypeCode = option.businessTypeCode;
if (this.id != undefined) { if (this.id != undefined) {
@ -179,7 +182,7 @@
} }
uni.setNavigationBarTitle({ uni.setNavigationBarTitle({
title: name + '详情' title: this.title + '详情'
}) })
}, },

9
src/pages/inventoryMove/job/moveJob.vue

@ -1,6 +1,6 @@
<template> <template>
<view class="page-wraper"> <view class="page-wraper">
<comMoveJob ref="comMoveJob" businessTypeCode='Move'> </comMoveJob> <comMoveJob :title="title" ref="comMoveJob" businessTypeCode='Move'> </comMoveJob>
</view> </view>
</template> </template>
@ -17,9 +17,13 @@
data() { data() {
return { return {
title:''
} }
}, },
onLoad(option){
this.title = option.title
},
onNavigationBarButtonTap(e) { onNavigationBarButtonTap(e) {
if (e.index === 0) { if (e.index === 0) {
this.$refs.comMoveJob.toHome(); this.$refs.comMoveJob.toHome();
@ -28,7 +32,6 @@
} }
}, },
onLoad() {},
methods: { methods: {
} }

8
src/pages/inventoryMove/job/okToHoldMoveJob.vue

@ -1,6 +1,6 @@
<template> <template>
<view class="page-wraper"> <view class="page-wraper">
<comMoveJob ref="comMoveJob" businessTypeCode='OkToHold' > </comMoveJob> <comMoveJob :title="title" ref="comMoveJob" businessTypeCode='OkToHold' > </comMoveJob>
</view> </view>
</template> </template>
@ -12,9 +12,12 @@
}, },
data() { data() {
return { return {
title:''
} }
}, },
onLoad(option){
this.title = option.title
},
onPullDownRefresh() { onPullDownRefresh() {
this.$refs.comMoveJob.refresh(); this.$refs.comMoveJob.refresh();
}, },
@ -27,7 +30,6 @@
} }
}, },
onLoad() {},
methods: { methods: {
} }

9
src/pages/inventoryMove/job/okToScrapMoveJob.vue

@ -1,6 +1,6 @@
<template> <template>
<view class="page-wraper"> <view class="page-wraper">
<comMoveJob ref="comMoveJob" businessTypeCode='OktoScrap'> </comMoveJob> <comMoveJob :title="title" ref="comMoveJob" businessTypeCode='OktoScrap'> </comMoveJob>
</view> </view>
</template> </template>
@ -12,11 +12,13 @@
comMoveJob comMoveJob
}, },
data() { data() {
return { return {
title:''
} }
}, },
onLoad(option){
this.title = option.title
},
onPullDownRefresh() { onPullDownRefresh() {
this.$refs.comMoveJob.refresh(); this.$refs.comMoveJob.refresh();
}, },
@ -28,7 +30,6 @@
} }
}, },
onLoad() {},
methods: { methods: {
} }

9
src/pages/inventoryMove/job/scrapToHoldMoveJob.vue

@ -1,6 +1,6 @@
<template> <template>
<view class="page-wraper"> <view class="page-wraper">
<comMoveJob ref="comMoveJob" businessTypeCode='ScrapToHold'> </comMoveJob> <comMoveJob :title="title" ref="comMoveJob" businessTypeCode='ScrapToHold'> </comMoveJob>
</view> </view>
</template> </template>
@ -12,11 +12,13 @@
comMoveJob comMoveJob
}, },
data() { data() {
return { return {
title:''
} }
}, },
onLoad(option){
this.title = option.title
},
onPullDownRefresh() { onPullDownRefresh() {
this.$refs.comMoveJob.refresh(); this.$refs.comMoveJob.refresh();
}, },
@ -28,7 +30,6 @@
} }
}, },
onLoad() {},
methods: { methods: {
} }

8
src/pages/inventoryMove/record/holdToOkRecord.vue

@ -1,6 +1,6 @@
<template> <template>
<view class="page-wraper"> <view class="page-wraper">
<comMoveRecord businessTypeCode='HoldToOk' > </comMoveRecord> <comMoveRecord :myTitle="title" businessTypeCode='HoldToOk' > </comMoveRecord>
</view> </view>
</template> </template>
@ -13,10 +13,12 @@
}, },
data() { data() {
return { return {
title:''
} }
}, },
onLoad() {}, onLoad(option){
this.title = option.title
},
methods: {} methods: {}
} }
</script> </script>

10
src/pages/inventoryMove/record/holdToScrapRecord.vue

@ -1,6 +1,6 @@
<template> <template>
<view class="page-wraper"> <view class="page-wraper">
<comMoveRecord businessTypeCode='HoldToScrap'> </comMoveRecord> <comMoveRecord :myTitle="title" businessTypeCode='HoldToScrap'> </comMoveRecord>
</view> </view>
</template> </template>
@ -12,13 +12,13 @@
comMoveRecord comMoveRecord
}, },
data() { data() {
return { return {
title:''
} }
}, },
onLoad(option){
onLoad() {}, this.title = option.title
},
methods: { methods: {
} }

10
src/pages/inventoryMove/record/moveFreeRecord.vue

@ -1,6 +1,6 @@
<template> <template>
<view class="page-wraper"> <view class="page-wraper">
<comMoveRecord :allowEditStatus="true" businessTypeCode='Move'> </comMoveRecord> <comMoveRecord :myTitle="title" :allowEditStatus="true" businessTypeCode='Move'> </comMoveRecord>
</view> </view>
</template> </template>
@ -12,13 +12,13 @@
comMoveRecord comMoveRecord
}, },
data() { data() {
return { return {
title:''
} }
}, },
onLoad(option){
onLoad() {}, this.title = option.title
},
methods: { methods: {
} }

8
src/pages/inventoryMove/record/okToHoldRecord.vue

@ -1,6 +1,6 @@
<template> <template>
<view class="page-wraper"> <view class="page-wraper">
<comMoveRecord businessTypeCode='OkToHold' > </comMoveRecord> <comMoveRecord :myTitle="title" businessTypeCode='OkToHold' > </comMoveRecord>
</view> </view>
</template> </template>
@ -13,10 +13,12 @@
}, },
data() { data() {
return { return {
title:''
} }
}, },
onLoad() {}, onLoad(option){
this.title = option.title
},
methods: { methods: {
} }
} }

8
src/pages/inventoryMove/record/okToScrapRecord.vue

@ -1,7 +1,7 @@
<template> <template>
<view class="page-wraper"> <view class="page-wraper">
<comMoveRecord businessTypeCode='OkToScrap' > </comMoveRecord> <comMoveRecord :myTitle="title" businessTypeCode='OkToScrap' > </comMoveRecord>
</view> </view>
</template> </template>
@ -14,10 +14,12 @@
}, },
data() { data() {
return { return {
title:''
} }
}, },
onLoad() {}, onLoad(option){
this.title = option.title
},
methods: { methods: {
} }
} }

10
src/pages/inventoryMove/record/scrapToHoldRecord.vue

@ -1,6 +1,6 @@
<template> <template>
<view class="page-wraper"> <view class="page-wraper">
<comMoveRecord businessTypeCode='ScrapToHold'> </comMoveRecord> <comMoveRecord :myTitle="title" businessTypeCode='ScrapToHold'> </comMoveRecord>
</view> </view>
</template> </template>
@ -12,13 +12,13 @@
comMoveRecord comMoveRecord
}, },
data() { data() {
return { return {
title:''
} }
}, },
onLoad(option){
onLoad() {}, this.title = option.title
},
methods: { methods: {
} }

11
src/pages/scrap/job/scrapJob.vue

@ -68,12 +68,16 @@
status: '1,2', // status: '1,2', //
detailOptions: [], detailOptions: [],
detailGiveupOptions: [], detailGiveupOptions: [],
title:''
}; };
}, },
onShow() { onShow() {
this.getList('refresh'); this.getList('refresh');
}, },
onLoad(option){
this.title = option.title
},
onReady() { onReady() {
this.detailOptions = getDetailOption(); this.detailOptions = getDetailOption();
@ -155,7 +159,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";
@ -168,7 +172,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)
@ -178,7 +182,8 @@
openJobDetail(item) { openJobDetail(item) {
uni.navigateTo({ uni.navigateTo({
url: './scrapJobDetail?id=' + item.masterId + '&status=' + item.status url: './scrapJobDetail?id=' + item.masterId + '&status=' + item.status+'&title='+this.title
}); });
}, },

3
src/pages/scrap/job/scrapJobDetail.vue

@ -95,6 +95,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/scrap/record/scrapRecord.vue

@ -106,6 +106,9 @@
}; };
}, },
onLoad(option) { onLoad(option) {
uni.setNavigationBarTitle({
title: option.title
})
this.reasonList = getScarpReasonList(); this.reasonList = getScarpReasonList();
var typeCode = "Scrap" var typeCode = "Scrap"
getBusinessType(typeCode, res => { getBusinessType(typeCode, res => {

3
src/pages/scrap/request/scrapRequestDetail.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();
}, },

11
src/pages/scrap/request/scrapRrequest.vue

@ -77,9 +77,13 @@
showOptions: [], showOptions: [],
fromType: "requestType", fromType: "requestType",
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();
@ -123,7 +127,8 @@
}, },
openRequestDetail(item) { openRequestDetail(item) {
uni.navigateTo({ uni.navigateTo({
url: './scrapRequestDetail?id=' + item.masterId url: './scrapRequestDetail?id=' + item.masterId+'&title='+this.title
}); });
}, },
getList(type) { getList(type) {
@ -156,7 +161,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";
@ -174,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)

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

@ -102,6 +102,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/transfer/job/issueJob.vue

@ -73,12 +73,16 @@
status: '1,2', // status: '1,2', //
detailOptions: [], detailOptions: [],
detailGiveupOptions: [], detailGiveupOptions: [],
title:''
}; };
}, },
onShow() { onShow() {
this.getList('refresh'); this.getList('refresh');
}, },
onLoad(option){
this.title = option.title
},
onReady() { onReady() {
this.detailOptions = getDetailOption(); this.detailOptions = getDetailOption();
@ -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";
@ -174,7 +178,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)
@ -183,7 +187,7 @@
openJobDetail(item) { openJobDetail(item) {
uni.navigateTo({ uni.navigateTo({
url: './issueDetail?id=' + item.masterId + '&status=' + item.status url: './issueDetail?id=' + item.masterId + '&status=' + item.status+'&title='+this.title
}); });
}, },

3
src/pages/transfer/job/receiptDetail.vue

@ -111,6 +111,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/transfer/job/receiptJob.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');
}, },
@ -160,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";
@ -175,7 +178,7 @@
} }
this.loadingType = ""; this.loadingType = "";
updateTitle("调拨入库任务"); updateTitle(this.title);
uni.hideLoading(); uni.hideLoading();
that.showMessage(error) that.showMessage(error)
}) })
@ -183,7 +186,7 @@
openJobDetail(item) { openJobDetail(item) {
uni.navigateTo({ uni.navigateTo({
url: './receiptDetail?id=' + item.masterId + '&status=' + item.status url: './receiptDetail?id=' + item.masterId + '&status=' + item.status+'&title='+this.title
}); });
}, },

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

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

3
src/pages/transfer/record/receiptRecord.vue

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

10
src/pages/unPlanned/job/issueJob.vue

@ -72,8 +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');
@ -163,7 +167,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 +180,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)
@ -185,7 +189,7 @@
openJobDetail(item) { openJobDetail(item) {
uni.navigateTo({ uni.navigateTo({
url: './issueJobDetail?id=' + item.masterId + '&status=' + item.status url: './issueJobDetail?id=' + item.masterId + '&status=' + item.status+'&title='+this.title
}); });
}, },

3
src/pages/unPlanned/job/issueJobDetail.vue

@ -94,6 +94,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/unPlanned/job/receiptJob.vue

@ -73,8 +73,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');
@ -150,7 +154,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";
@ -164,7 +168,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)
@ -173,7 +177,7 @@
openJobDetail(item) { openJobDetail(item) {
uni.navigateTo({ uni.navigateTo({
url: './receiptJobDetail?id=' + item.masterId + '&status=' + item.status url: './receiptJobDetail?id=' + item.masterId + '&status=' + item.status+'&title='+this.title
}); });
}, },

3
src/pages/unPlanned/job/receiptJobDetail.vue

@ -100,6 +100,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/unPlanned/request/issueRequest.vue

@ -79,6 +79,7 @@
showOptions: [], showOptions: [],
fromType: "requestType", fromType: "requestType",
loadingType: "nomore", loadingType: "nomore",
title:''
}; };
}, },
@ -113,6 +114,9 @@
this.$refs.filter.openFilter(); this.$refs.filter.openFilter();
} }
}, },
onLoad(option){
this.title = option.title
},
mounted() { mounted() {
@ -123,7 +127,7 @@
openRequestDetail(item) { openRequestDetail(item) {
uni.navigateTo({ uni.navigateTo({
url: './issueRequestDetail?id=' + item.masterId url: './issueRequestDetail?id=' + item.masterId+'&title='+this.title
}); });
}, },
openRequestInfoPopup(item) { openRequestInfoPopup(item) {
@ -160,7 +164,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";
@ -179,7 +183,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)

3
src/pages/unPlanned/request/issueRequestDetail.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();
}, },

Loading…
Cancel
Save