diff --git a/src/pages/customerReturn/job/returnDetail.vue b/src/pages/customerReturn/job/returnDetail.vue
index 54f343a5..5584e9d9 100644
--- a/src/pages/customerReturn/job/returnDetail.vue
+++ b/src/pages/customerReturn/job/returnDetail.vue
@@ -65,6 +65,9 @@ const detailInfoPopupRef = ref()
const comMessageRef = ref()
const comScanLocation = ref()
onLoad((option) => {
+ uni.setNavigationBarTitle({
+ title: `${option.title}详情`
+ })
id.value = option.id
if (id.value != undefined) {
// 新建的任务自动接收
diff --git a/src/pages/customerReturn/job/returnJob.vue b/src/pages/customerReturn/job/returnJob.vue
index 6f2f9781..0b2a408c 100644
--- a/src/pages/customerReturn/job/returnJob.vue
+++ b/src/pages/customerReturn/job/returnJob.vue
@@ -55,6 +55,7 @@ const todayTime = ref('')
const status = ref('1,2') // 待处理 、进行中
const detailOptions = ref([])
const detailGiveupOptions = ref([])
+const title = ref('')
const filter = ref()
const comMessageRef = ref()
const jobInfoPopupRef = ref()
@@ -64,6 +65,9 @@ onShow(() => {
getList('refresh')
})
})
+onLoad((option) => {
+ title.value = option.title
+})
onReady(() => {
detailOptions.value = getDetailOption()
detailGiveupOptions.value = getDetailGiveupOption()
@@ -137,7 +141,7 @@ const getList = (type) => {
const { list } = res.data
totalCount.value = res.data.total
- updateTitle(`客户退货(${totalCount.value})`)
+ updateTitle(`${title.value}(${totalCount.value})`)
loadingType.value = 'loadmore'
if (list == null || list.length == 0) {
loadingType.value = 'nomore'
@@ -151,13 +155,13 @@ const getList = (type) => {
uni.stopPullDownRefresh()
}
loadingType.value = ''
- updateTitle('客户退货任务')
+ updateTitle(title.value)
uni.hideLoading()
showErrorMessage(error)
})
}
const openJobDetail = (item) => {
- proxy.$tab.navigateTo(`./returnDetail?id=${item.masterId}&status=${item.status}`)
+ proxy.$tab.navigateTo(`./returnDetail?id=${item.masterId}&status=${item.status}&title=${title.value}`)
}
const showItemList = (itemList) => {
jobListPopupRef.value.openPopup(itemList)
diff --git a/src/pages/customerReturn/record/returnRecord.vue b/src/pages/customerReturn/record/returnRecord.vue
index 348449c4..2c07e751 100644
--- a/src/pages/customerReturn/record/returnRecord.vue
+++ b/src/pages/customerReturn/record/returnRecord.vue
@@ -75,6 +75,9 @@ const comMessageRef = ref()
const scanPopup = ref()
const scanLocationCode = ref()
onLoad((option) => {
+ uni.setNavigationBarTitle({
+ title: option.title
+ })
const typeCode = 'CustomerReject'
getBusinessType(typeCode, (res) => {
if (res.success) {
diff --git a/src/pages/customerReturn/request/customerReturnRequest.vue b/src/pages/customerReturn/request/customerReturnRequest.vue
index 4f06a8ea..84a880e1 100644
--- a/src/pages/customerReturn/request/customerReturnRequest.vue
+++ b/src/pages/customerReturn/request/customerReturnRequest.vue
@@ -52,6 +52,7 @@ const addAgainOption = ref([])
const showOptions = ref([])
const fromType = ref('requestType')
const loadingType = ref('nomore')
+const title = ref('')
const requestInfoPopupRef = ref()
const filter = ref()
const comMessageRef = ref()
@@ -73,6 +74,9 @@ onReachBottom(() => {
onPullDownRefresh(() => {
getList('refresh')
})
+onLoad((option) => {
+ title.value = option.title
+})
onShow(() => {
nextTick(() => {
getList('refresh')
@@ -91,7 +95,7 @@ const openRequestInfoPopup = (item) => {
}
const openRequestDetail = (item) => {
uni.navigateTo({
- url: `./customerReturnRequestDetail?id=${item.masterId}`
+ url: `./customerReturnRequestDetail?id=${item.masterId}&title=${title.value}`
})
}
const getList = (type) => {
@@ -120,7 +124,7 @@ const getList = (type) => {
}
const { list } = res.data
totalCount.value = res.data.total
- updateTitle(`客户退货申请(${totalCount.value})`)
+ updateTitle(`${title.value}(${totalCount.value})`)
loadingType.value = 'loadmore'
if (list == null || list.length == 0) {
loadingType.value = 'nomore'
@@ -140,7 +144,7 @@ const getList = (type) => {
if (type === 'refresh') {
uni.stopPullDownRefresh()
}
- updateTitle('客户退货申请')
+ updateTitle(totalCount.value)
loadingType.value = ''
proxy.$modal.closeLoading()
showMessage(error)
diff --git a/src/pages/customerReturn/request/customerReturnRequestDetail.vue b/src/pages/customerReturn/request/customerReturnRequestDetail.vue
index caf8e27b..64d72738 100644
--- a/src/pages/customerReturn/request/customerReturnRequestDetail.vue
+++ b/src/pages/customerReturn/request/customerReturnRequestDetail.vue
@@ -46,6 +46,9 @@ const detailSource = ref([]) // 绑定在页面上的数据源
const jobDetailPopup = ref()
const comMessageRef = ref()
onLoad((option) => {
+ uni.setNavigationBarTitle({
+ title: `${option.title}详情`
+ })
id.value = option.id
getDetail()
})
diff --git a/src/pages/deliver/job/deliverDetail.vue b/src/pages/deliver/job/deliverDetail.vue
index 954163ba..e8b9fbc1 100644
--- a/src/pages/deliver/job/deliverDetail.vue
+++ b/src/pages/deliver/job/deliverDetail.vue
@@ -86,6 +86,9 @@ const comMessageRef = ref()
const managementList = ref([])
const comIssueDetailCardRef = ref()
onLoad((option) => {
+ uni.setNavigationBarTitle({
+ title: `${option.title}详情`
+ })
id.value = option.id
if (id.value != undefined) {
// 新建的任务自动接收
diff --git a/src/pages/deliver/job/deliverJob.vue b/src/pages/deliver/job/deliverJob.vue
index 4f0647b9..999c452a 100644
--- a/src/pages/deliver/job/deliverJob.vue
+++ b/src/pages/deliver/job/deliverJob.vue
@@ -45,12 +45,14 @@ const todayTime = ref('')
const status = ref('1,2') // 待处理 、进行中
const detailOptions = ref([])
const detailGiveupOptions = ref([])
+const title = ref('')
const filter = ref()
const comMessageRef = ref()
const jobInfoPopupRef = ref()
const jobListPopupRef = ref()
const businessType = ref('')
onLoad((option) => {
+ title.value = option.title
businessType.value = option.businessType
})
onShow(() => {
@@ -138,7 +140,7 @@ const getList = (type) => {
const { list } = res.data
totalCount.value = res.data.total
- updateTitle(`制品发货任务(${totalCount.value})`)
+ updateTitle(`${title.value}(${totalCount.value})`)
loadingType.value = 'loadmore'
if (list == null || list.length == 0) {
loadingType.value = 'nomore'
@@ -152,13 +154,13 @@ const getList = (type) => {
uni.stopPullDownRefresh()
}
loadingType.value = ''
- updateTitle('制品发货任务')
+ updateTitle(title.value)
uni.hideLoading()
showMessage(error)
})
}
const openJobDetail = (item) => {
- proxy.$tab.navigateTo(`./deliverDetail?id=${item.masterId}&status=${item.status}`)
+ proxy.$tab.navigateTo(`./deliverDetail?id=${item.masterId}&status=${item.status}&title=${title.value}`)
}
const selectedItem = (item) => {
openJobDetail(item)
diff --git a/src/pages/deliver/record/deliverRecord.vue b/src/pages/deliver/record/deliverRecord.vue
index d6037d52..34657b9b 100644
--- a/src/pages/deliver/record/deliverRecord.vue
+++ b/src/pages/deliver/record/deliverRecord.vue
@@ -88,6 +88,9 @@ const comMessageRef = ref()
const showCustomer = ref(false)
const toWarehouseCode = ref('')
onLoad((option) => {
+ uni.setNavigationBarTitle({
+ title: option.title
+ })
deliverType.value = option.deliverType
const typeCode = 'Deliver'
getBusinessType(typeCode, (res) => {
diff --git a/src/pages/material/materialDowngrade.vue b/src/pages/material/materialDowngrade.vue
index 0f600fde..161ec82a 100644
--- a/src/pages/material/materialDowngrade.vue
+++ b/src/pages/material/materialDowngrade.vue
@@ -89,6 +89,9 @@ export default {
}
},
onLoad(option) {
+ uni.setNavigationBarTitle({
+ title: option.title
+ })
this.clear()
getBusinessType(this.businessTypeCode, (res) => {
if (res.success) {
diff --git a/src/pages/productPutaway/job/fgProductPutawayJob.vue b/src/pages/productPutaway/job/fgProductPutawayJob.vue
index d6634a39..4496c50c 100644
--- a/src/pages/productPutaway/job/fgProductPutawayJob.vue
+++ b/src/pages/productPutaway/job/fgProductPutawayJob.vue
@@ -1,6 +1,6 @@
-
+
@@ -10,6 +10,7 @@ import { onLoad, onShow, onNavigationBarButtonTap, onReady, onBackPress, onReach
import productPutawayJob from '@/pages/productPutaway/job/productPutawayJob.vue'
const productPutawayJobRef = ref()
+const title = ref('')
onShow(() => {
nextTick(() => {
if (productPutawayJobRef.value != undefined) {
@@ -17,6 +18,9 @@ onShow(() => {
}
})
})
+onLoad((option) => {
+ title.value = option.title
+})
onPullDownRefresh(() => {
productPutawayJobRef.value.refresh()
})
diff --git a/src/pages/productPutaway/job/productPutawayDetail.vue b/src/pages/productPutaway/job/productPutawayDetail.vue
index f5ab43c9..1199afa2 100644
--- a/src/pages/productPutaway/job/productPutawayDetail.vue
+++ b/src/pages/productPutaway/job/productPutawayDetail.vue
@@ -91,13 +91,17 @@ onLoad((option) => {
status.value = option.status || ''
if (type.value == 'predict') {
switchCode.value = 'SemiPutawayLocationCodeValidate'
- hintTitle.value = '预生产上架'
- updateTitle('预生产上架详情')
+ // hintTitle.value = '预生产上架'
+ // updateTitle('预生产上架详情')
} else if (type.value == 'assemble') {
- hintTitle.value = '成品入库'
switchCode.value = 'FgPutawayLocationCodeValidate'
- updateTitle('成品入库详情')
+ // hintTitle.value = '成品入库'
+ // updateTitle('成品入库详情')
}
+ hintTitle.value = option.title
+ uni.setNavigationBarTitle({
+ title: `${option.title}详情`
+ })
})
onShow(() => {
if (id.value != undefined) {
diff --git a/src/pages/productPutaway/job/productPutawayJob.vue b/src/pages/productPutaway/job/productPutawayJob.vue
index 6da8c16e..d25a2f99 100644
--- a/src/pages/productPutaway/job/productPutawayJob.vue
+++ b/src/pages/productPutaway/job/productPutawayJob.vue
@@ -45,6 +45,10 @@ const props = defineProps({
type: {
type: String,
default: 'assemble'
+ },
+ title: {
+ required: false,
+ default: ''
}
})
const jobList = ref([])
@@ -132,11 +136,8 @@ const getList = (type) => {
const { list } = res.data
totalCount.value = res.data.total
- if (props.type == 'predict') {
- updateTitle(`预生产上架任务(${totalCount.value})`)
- } else if (props.type == 'assemble') {
- updateTitle(`成品入库任务(${totalCount.value})`)
- }
+ updateTitle(`${title.value}(${totalCount.value})`)
+
loadingType.value = 'loadmore'
if (list == null || list.length == 0) {
loadingType.value = 'nomore'
@@ -149,11 +150,8 @@ const getList = (type) => {
if (type === 'refresh') {
uni.stopPullDownRefresh()
}
- if (props.type == 'predict') {
- updateTitle(`预生产上架任务(${totalCount.value})`)
- } else if (props.type == 'assemble') {
- updateTitle(`成品入库任务(${totalCount.value})`)
- }
+ updateTitle(`${title.value}(${totalCount.value})`)
+
loadingType.value = ''
uni.hideLoading()
showMessage(error)
@@ -161,7 +159,7 @@ const getList = (type) => {
}
const openJobDetail = (item, packingNumber = '') => {
uni.navigateTo({
- url: `./productPutawayDetail?id=${item.masterId}&status=${item.status}&type=${item.type}&scaned=${packingNumber}`
+ url: `./productPutawayDetail?id=${item.masterId}&status=${item.status}&type=${item.type}&scaned=${packingNumber}&title=${title.value}`
})
}
diff --git a/src/pages/productPutaway/job/semiProductPutawayJob.vue b/src/pages/productPutaway/job/semiProductPutawayJob.vue
index cbda6f83..6238d5e8 100644
--- a/src/pages/productPutaway/job/semiProductPutawayJob.vue
+++ b/src/pages/productPutaway/job/semiProductPutawayJob.vue
@@ -1,6 +1,6 @@
-
+
@@ -10,6 +10,7 @@ import { onLoad, onShow, onNavigationBarButtonTap, onReady, onBackPress, onReach
import productPutawayJob from '@/pages/productPutaway/job/productPutawayJob.vue'
const productPutawayJobRef = ref()
+const title = ref('')
onShow(() => {
nextTick(() => {
if (productPutawayJobRef.value != undefined) {
@@ -17,6 +18,9 @@ onShow(() => {
}
})
})
+onLoad((option) => {
+ title.value = option.title
+})
onPullDownRefresh(() => {
productPutawayJobRef.value.refresh()
})
diff --git a/src/pages/productPutaway/record/productPutawayRecord.vue b/src/pages/productPutaway/record/productPutawayRecord.vue
index 9f49fcf0..27e88390 100644
--- a/src/pages/productPutaway/record/productPutawayRecord.vue
+++ b/src/pages/productPutaway/record/productPutawayRecord.vue
@@ -77,6 +77,9 @@ const scanPopup = ref()
const comMessageRef = ref()
const type = ref('')
onLoad((option) => {
+ uni.setNavigationBarTitle({
+ title: option.title
+ })
type.value = option.type
if (type.value == 'predict') {
updateTitle('制品上架记录')
diff --git a/src/pages/productPutaway/request/putawayRequest.vue b/src/pages/productPutaway/request/putawayRequest.vue
index 76b11718..3b339cac 100644
--- a/src/pages/productPutaway/request/putawayRequest.vue
+++ b/src/pages/productPutaway/request/putawayRequest.vue
@@ -46,6 +46,7 @@ const addAgainOption = ref([])
const showOptions = ref([])
const fromType = ref('requestType')
const loadingType = ref('nomore')
+const title = ref('')
const requestInfoPopupRef = ref()
const filter = ref()
const comMessageRef = ref()
@@ -57,6 +58,9 @@ onReady(() => {
detailAndHandleOption.value = getDetailAndHandleOption()
detailAndAddAndCloseOption.value = getDetailAndAddAndCloseOption()
})
+onLoad((option) => {
+ title.value = option.title
+})
onReachBottom(() => {
// 避免多次触发
if (loadingType.value == 'loading' || loadingType.value == 'nomore') {
@@ -82,7 +86,7 @@ onNavigationBarButtonTap((e) => {
})
const openRequestDetail = (item) => {
uni.navigateTo({
- url: `./putawayRequestDetail?id=${item.masterId}`
+ url: `./putawayRequestDetail?id=${item.masterId}&title=${title.value}`
})
}
const openRequestInfoPopup = (item) => {
@@ -115,7 +119,8 @@ const getList = (type) => {
const { list } = res.data
totalCount.value = res.data.total
- updateTitle(`制品上架申请(${totalCount.value})`)
+ updateTitle(`${title.value}(${totalCount.value})`)
+
loadingType.value = 'loadmore'
if (list == null || list.length == 0) {
loadingType.value = 'nomore'
@@ -135,7 +140,8 @@ const getList = (type) => {
if (type === 'refresh') {
uni.stopPullDownRefresh()
}
- updateTitle('制品上架申请')
+
+ updateTitle(title.value)
loadingType.value = ''
proxy.$modal.closeLoading()
showMessage(error)
diff --git a/src/pages/productPutaway/request/putawayRequestDetail.vue b/src/pages/productPutaway/request/putawayRequestDetail.vue
index ba777c14..dbe3106e 100644
--- a/src/pages/productPutaway/request/putawayRequestDetail.vue
+++ b/src/pages/productPutaway/request/putawayRequestDetail.vue
@@ -47,6 +47,9 @@ const detailSource = ref([])
const comMessageRef = ref()
const jobDetailPopup = ref()
onLoad((option) => {
+ uni.setNavigationBarTitle({
+ title: `${option.title}详情`
+ })
id.value = option.id
getDetail()
})
diff --git a/src/pages/productReceipt/job/fgProductReceiptDetail.vue b/src/pages/productReceipt/job/fgProductReceiptDetail.vue
index 0eec355d..1f42055b 100644
--- a/src/pages/productReceipt/job/fgProductReceiptDetail.vue
+++ b/src/pages/productReceipt/job/fgProductReceiptDetail.vue
@@ -110,6 +110,9 @@ const detailInfoPopupRef = ref()
const comMessageRef = ref()
const comScanLocation = ref()
onLoad((option) => {
+ uni.setNavigationBarTitle({
+ title: `${option.title}详情`
+ })
id.value = option.id
scanedPackingNumber.value = option.scaned || ''
if (id.value != undefined) {
diff --git a/src/pages/productReceipt/job/fgProductReceiptJob.vue b/src/pages/productReceipt/job/fgProductReceiptJob.vue
index 21915d98..be38b61b 100644
--- a/src/pages/productReceipt/job/fgProductReceiptJob.vue
+++ b/src/pages/productReceipt/job/fgProductReceiptJob.vue
@@ -1,6 +1,6 @@
-
+
@@ -10,6 +10,7 @@ import { onLoad, onShow, onNavigationBarButtonTap, onReady, onBackPress, onReach
import productReceiptJob from '@/pages/productReceipt/job/productReceiptJob.vue'
const productreceiptjobRef = ref()
+const title = ref('')
onShow(() => {
nextTick(() => {
if (productreceiptjobRef.value != undefined) {
@@ -17,6 +18,9 @@ onShow(() => {
}
})
})
+onLoad((option) => {
+ title.value = option.title
+})
onPullDownRefresh(() => {
productreceiptjobRef.value.refresh()
})
diff --git a/src/pages/productReceipt/job/productReceiptDetail.vue b/src/pages/productReceipt/job/productReceiptDetail.vue
index 4abd9fcc..c46676db 100644
--- a/src/pages/productReceipt/job/productReceiptDetail.vue
+++ b/src/pages/productReceipt/job/productReceiptDetail.vue
@@ -106,6 +106,9 @@ const scanPopup = ref()
const comScanLocation = ref()
const comMessageRef = ref()
onLoad((option) => {
+ uni.setNavigationBarTitle({
+ title: `${option.title}详情`
+ })
id.value = option.id
scanedPackingNumber.value = option.scaned || ''
status.value = option.status || ''
diff --git a/src/pages/productReceipt/job/productReceiptJob.vue b/src/pages/productReceipt/job/productReceiptJob.vue
index 52de6d7c..423b5e63 100644
--- a/src/pages/productReceipt/job/productReceiptJob.vue
+++ b/src/pages/productReceipt/job/productReceiptJob.vue
@@ -47,6 +47,10 @@ const props = defineProps({
type: {
type: String,
default: 'assemble'
+ },
+ title: {
+ type: String,
+ default: ''
}
})
const jobList = ref([])
@@ -122,13 +126,8 @@ const getList = (type) => {
const { list } = res.data
totalCount.value = res.data.total
- if (props.type == 'predict') {
- updateTitle(`预生产收货任务(${totalCount.value})`)
- } else if (props.type == 'assemble') {
- updateTitle(`装配收货任务(${totalCount.value})`)
- } else {
- updateTitle(`报废收货任务(${totalCount.value})`)
- }
+ updateTitle(`${title.value}(${totalCount.value})`)
+
loadingType.value = 'loadmore'
if (list == null || list.length == 0) {
loadingType.value = 'nomore'
@@ -141,13 +140,8 @@ const getList = (type) => {
if (type === 'refresh') {
uni.stopPullDownRefresh()
}
- if (props.type == 'predict') {
- updateTitle(`预生产收货任务(${totalCount.value})`)
- } else if (props.type == 'assemble') {
- updateTitle(`装配收货任务(${totalCount.value})`)
- } else {
- updateTitle(`报废收货任务(${totalCount.value})`)
- }
+ updateTitle(`${title.value}(${totalCount.value})`)
+
loadingType.value = ''
uni.hideLoading()
showMessage(error)
@@ -157,15 +151,15 @@ const getList = (type) => {
const openJobDetail = (item, packingNumber = '') => {
if (props.type == 'predict') {
uni.navigateTo({
- url: `./productReceiptDetail?id=${item.masterId}&status=${item.status}&scaned=${packingNumber}`
+ url: `./productReceiptDetail?id=${item.masterId}&status=${item.status}&scaned=${packingNumber}&title=${title.value}`
})
} else if (props.type == 'assemble') {
uni.navigateTo({
- url: `./fgProductReceiptDetail?id=${item.masterId}&status=${item.status}&scaned=${packingNumber}`
+ url: `./fgProductReceiptDetail?id=${item.masterId}&status=${item.status}&scaned=${packingNumber}&title=${title.value}`
})
} else {
uni.navigateTo({
- url: `./scrapReceiptDetail?id=${item.masterId}&status=${item.status}&scaned=${packingNumber}`
+ url: `./scrapReceiptDetail?id=${item.masterId}&status=${item.status}&scaned=${packingNumber}&title=${title.value}`
})
}
}
diff --git a/src/pages/productReceipt/job/scrapReceiptDetail.vue b/src/pages/productReceipt/job/scrapReceiptDetail.vue
index 7f7176ed..5f371bcf 100644
--- a/src/pages/productReceipt/job/scrapReceiptDetail.vue
+++ b/src/pages/productReceipt/job/scrapReceiptDetail.vue
@@ -76,6 +76,9 @@ const comScanLocation = ref()
const detailInfoPopupRef = ref()
const comMessageRef = ref()
onLoad((option) => {
+ uni.setNavigationBarTitle({
+ title: `${option.title}详情`
+ })
id.value = option.id
if (id.value != undefined) {
// 新建的任务自动接收
diff --git a/src/pages/productReceipt/job/scrapReceiptJob.vue b/src/pages/productReceipt/job/scrapReceiptJob.vue
index 6d752f21..ee16d3c7 100644
--- a/src/pages/productReceipt/job/scrapReceiptJob.vue
+++ b/src/pages/productReceipt/job/scrapReceiptJob.vue
@@ -1,6 +1,6 @@
-
+
@@ -10,6 +10,7 @@ import { onLoad, onShow, onNavigationBarButtonTap, onReady, onBackPress, onReach
import productReceiptJob from '@/pages/productReceipt/job/productReceiptJob.vue'
const productreceiptjobRef = ref()
+const title = ref('')
onShow(() => {
nextTick(() => {
if (productreceiptjobRef.value != undefined) {
@@ -17,6 +18,9 @@ onShow(() => {
}
})
})
+onLoad((option) => {
+ title.value = option.title
+})
onPullDownRefresh(() => {
productreceiptjobRef.value.refresh()
})
diff --git a/src/pages/productReceipt/job/semiProductReceiptJob.vue b/src/pages/productReceipt/job/semiProductReceiptJob.vue
index 32b393fa..41029080 100644
--- a/src/pages/productReceipt/job/semiProductReceiptJob.vue
+++ b/src/pages/productReceipt/job/semiProductReceiptJob.vue
@@ -1,6 +1,6 @@
-
+
@@ -10,6 +10,7 @@ import { onLoad, onShow, onNavigationBarButtonTap, onReady, onBackPress, onReach
import productReceiptJob from '@/pages/productReceipt/job/productReceiptJob.vue'
const productreceiptjobRef = ref()
+const title = ref('')
onShow(() => {
nextTick(() => {
if (productreceiptjobRef.value != undefined) {
@@ -17,6 +18,9 @@ onShow(() => {
}
})
})
+onLoad((option) => {
+ title.value = option.title
+})
onPullDownRefresh(() => {
productreceiptjobRef.value.refresh()
})
diff --git a/src/pages/productReceipt/record/productReceiptRecord.vue b/src/pages/productReceipt/record/productReceiptRecord.vue
index 88bc2ace..b8291de5 100644
--- a/src/pages/productReceipt/record/productReceiptRecord.vue
+++ b/src/pages/productReceipt/record/productReceiptRecord.vue
@@ -86,6 +86,9 @@ const workStationName = ref('')
const comMessageRef = ref()
const scanPopup = ref()
onLoad((option) => {
+ uni.setNavigationBarTitle({
+ title: option.title
+ })
const typeCode = 'ProductReceipt'
getBusinessType(typeCode, (res) => {
if (res.success) {
diff --git a/src/pages/productRecycle/job/productRecycleJob.vue b/src/pages/productRecycle/job/productRecycleJob.vue
index 039ca754..b27adf47 100644
--- a/src/pages/productRecycle/job/productRecycleJob.vue
+++ b/src/pages/productRecycle/job/productRecycleJob.vue
@@ -46,6 +46,7 @@ const todayTime = ref('')
const status = ref('1,2') // 待处理 、进行中
const detailOptions = ref([])
const detailGiveupOptions = ref([])
+const title = ref('')
const filter = ref()
const comMessageRef = ref()
const jobInfoPopupRef = ref()
@@ -55,6 +56,9 @@ onShow(() => {
getList('refresh')
})
})
+onLoad((option) => {
+ title.value = option.title
+})
onReady(() => {
detailOptions.value = getDetailOption()
detailGiveupOptions.value = getDetailGiveupOption()
@@ -126,7 +130,7 @@ const getList = (type) => {
}
const { list } = res.data
totalCount.value = res.data.total
- updateTitle(`制品回收任务(${totalCount.value})`)
+ updateTitle(`${title.value}(${totalCount.value})`)
loadingType.value = 'loadmore'
if (list == null || list.length == 0) {
loadingType.value = 'nomore'
@@ -141,14 +145,14 @@ const getList = (type) => {
}
loadingType.value = ''
- updateTitle('直接备货任务')
+ updateTitle(title.value)
uni.hideLoading()
showErrorMessage(error)
})
}
const openJobDetail = (item) => {
- proxy.$tab.navigateTo(`./productRecycleJobDetail?id=${item.masterId}&status=${item.status}`)
+ proxy.$tab.navigateTo(`./productRecycleJobDetail?id=${item.masterId}&status=${item.status}&title=${title.value}`)
}
const showItemList = (itemList) => {
jobListPopupRef.value.openPopup(itemList)
diff --git a/src/pages/productRecycle/job/productRecycleJobDetail.vue b/src/pages/productRecycle/job/productRecycleJobDetail.vue
index e0da251c..35cef14c 100644
--- a/src/pages/productRecycle/job/productRecycleJobDetail.vue
+++ b/src/pages/productRecycle/job/productRecycleJobDetail.vue
@@ -67,6 +67,9 @@ const scanPopup = ref()
const comMessageRef = ref()
const jobDetailPopup = ref()
onLoad((option) => {
+ uni.setNavigationBarTitle({
+ title: `${option.title}详情`
+ })
id.value = option.id
if (id.value != undefined) {
// 新建的任务自动接收
diff --git a/src/pages/productRecycle/record/productRecycleRecord.vue b/src/pages/productRecycle/record/productRecycleRecord.vue
index 4fd66246..dcd0fe8c 100644
--- a/src/pages/productRecycle/record/productRecycleRecord.vue
+++ b/src/pages/productRecycle/record/productRecycleRecord.vue
@@ -74,6 +74,9 @@ const toWarehouseCode = ref('')
const scanFromLocationCode = ref()
const toLocationInfo = ref({})
onLoad((option) => {
+ uni.setNavigationBarTitle({
+ title: `${option.title}详情`
+ })
fromType.value = option.fromType
if (fromType.value == 'requestType') {
updateTitle('采购退货申请')
diff --git a/src/pages/stockUp/job/stockUpJob.vue b/src/pages/stockUp/job/stockUpJob.vue
index 55dd2c6e..6f281d77 100644
--- a/src/pages/stockUp/job/stockUpJob.vue
+++ b/src/pages/stockUp/job/stockUpJob.vue
@@ -43,6 +43,7 @@ const status = ref('1,2') // 待处理 、进行中
const detailOptions = ref([])
const detailGiveupOptions = ref([])
const filter = ref()
+const title = ref('')
const comMessageRef = ref()
const jobInfoPopupRef = ref()
const jobListPopupRef = ref()
@@ -51,6 +52,9 @@ onShow(() => {
getList('refresh')
})
})
+onLoad((option) => {
+ title.value = option.title
+})
onReady(() => {
detailOptions.value = getDetailOption()
detailGiveupOptions.value = getDetailGiveupOption()
@@ -118,7 +122,7 @@ const getList = (type) => {
const { list } = res.data
totalCount.value = res.data.total
- updateTitle(`直接备货任务(${totalCount.value})`)
+ updateTitle(`${title.value}(${totalCount.value})`)
loadingType.value = 'loadmore'
if (list == null || list.length == 0) {
loadingType.value = 'nomore'
@@ -132,7 +136,7 @@ const getList = (type) => {
uni.stopPullDownRefresh()
}
loadingType.value = ''
- updateTitle('直接备货任务')
+ updateTitle(title.value)
uni.hideLoading()
showErrorMessage(error)
})
diff --git a/src/pages/stockUp/job/stockUpJobDetail.vue b/src/pages/stockUp/job/stockUpJobDetail.vue
index 6c683cef..13cf547b 100644
--- a/src/pages/stockUp/job/stockUpJobDetail.vue
+++ b/src/pages/stockUp/job/stockUpJobDetail.vue
@@ -83,6 +83,9 @@ const comMessageRef = ref()
const managementList = ref([])
const comIssueDetailCardRef = ref()
onLoad((option) => {
+ uni.setNavigationBarTitle({
+ title: `${option.title}详情`
+ })
id.value = option.id
if (id.value != undefined) {
// 新建的任务自动接收