Browse Source

生产管理标题 2024/7/11 17:32:01

pull/1/head
张立 7 months ago
parent
commit
edf39d9f04
  1. 3
      src/pages/customerReturn/job/returnDetail.vue
  2. 10
      src/pages/customerReturn/job/returnJob.vue
  3. 3
      src/pages/customerReturn/record/returnRecord.vue
  4. 10
      src/pages/customerReturn/request/customerReturnRequest.vue
  5. 3
      src/pages/customerReturn/request/customerReturnRequestDetail.vue
  6. 3
      src/pages/deliver/job/deliverDetail.vue
  7. 8
      src/pages/deliver/job/deliverJob.vue
  8. 3
      src/pages/deliver/record/deliverRecord.vue
  9. 3
      src/pages/material/materialDowngrade.vue
  10. 6
      src/pages/productPutaway/job/fgProductPutawayJob.vue
  11. 12
      src/pages/productPutaway/job/productPutawayDetail.vue
  12. 20
      src/pages/productPutaway/job/productPutawayJob.vue
  13. 6
      src/pages/productPutaway/job/semiProductPutawayJob.vue
  14. 3
      src/pages/productPutaway/record/productPutawayRecord.vue
  15. 12
      src/pages/productPutaway/request/putawayRequest.vue
  16. 3
      src/pages/productPutaway/request/putawayRequestDetail.vue
  17. 3
      src/pages/productReceipt/job/fgProductReceiptDetail.vue
  18. 6
      src/pages/productReceipt/job/fgProductReceiptJob.vue
  19. 3
      src/pages/productReceipt/job/productReceiptDetail.vue
  20. 28
      src/pages/productReceipt/job/productReceiptJob.vue
  21. 3
      src/pages/productReceipt/job/scrapReceiptDetail.vue
  22. 6
      src/pages/productReceipt/job/scrapReceiptJob.vue
  23. 6
      src/pages/productReceipt/job/semiProductReceiptJob.vue
  24. 3
      src/pages/productReceipt/record/productReceiptRecord.vue
  25. 10
      src/pages/productRecycle/job/productRecycleJob.vue
  26. 3
      src/pages/productRecycle/job/productRecycleJobDetail.vue
  27. 3
      src/pages/productRecycle/record/productRecycleRecord.vue
  28. 8
      src/pages/stockUp/job/stockUpJob.vue
  29. 3
      src/pages/stockUp/job/stockUpJobDetail.vue

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

@ -65,6 +65,9 @@ const detailInfoPopupRef = ref()
const comMessageRef = ref() const comMessageRef = ref()
const comScanLocation = ref() const comScanLocation = ref()
onLoad((option) => { onLoad((option) => {
uni.setNavigationBarTitle({
title: `${option.title}详情`
})
id.value = option.id id.value = option.id
if (id.value != undefined) { if (id.value != undefined) {
// //

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

@ -55,6 +55,7 @@ const todayTime = ref('')
const status = ref('1,2') // const status = ref('1,2') //
const detailOptions = ref([]) const detailOptions = ref([])
const detailGiveupOptions = ref([]) const detailGiveupOptions = ref([])
const title = ref('')
const filter = ref() const filter = ref()
const comMessageRef = ref() const comMessageRef = ref()
const jobInfoPopupRef = ref() const jobInfoPopupRef = ref()
@ -64,6 +65,9 @@ onShow(() => {
getList('refresh') getList('refresh')
}) })
}) })
onLoad((option) => {
title.value = option.title
})
onReady(() => { onReady(() => {
detailOptions.value = getDetailOption() detailOptions.value = getDetailOption()
detailGiveupOptions.value = getDetailGiveupOption() detailGiveupOptions.value = getDetailGiveupOption()
@ -137,7 +141,7 @@ const getList = (type) => {
const { list } = res.data const { list } = res.data
totalCount.value = res.data.total totalCount.value = res.data.total
updateTitle(`客户退货(${totalCount.value})`) updateTitle(`${title.value}(${totalCount.value})`)
loadingType.value = 'loadmore' loadingType.value = 'loadmore'
if (list == null || list.length == 0) { if (list == null || list.length == 0) {
loadingType.value = 'nomore' loadingType.value = 'nomore'
@ -151,13 +155,13 @@ const getList = (type) => {
uni.stopPullDownRefresh() uni.stopPullDownRefresh()
} }
loadingType.value = '' loadingType.value = ''
updateTitle('客户退货任务') updateTitle(title.value)
uni.hideLoading() uni.hideLoading()
showErrorMessage(error) showErrorMessage(error)
}) })
} }
const openJobDetail = (item) => { 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) => { const showItemList = (itemList) => {
jobListPopupRef.value.openPopup(itemList) jobListPopupRef.value.openPopup(itemList)

3
src/pages/customerReturn/record/returnRecord.vue

@ -75,6 +75,9 @@ const comMessageRef = ref()
const scanPopup = ref() const scanPopup = ref()
const scanLocationCode = ref() const scanLocationCode = ref()
onLoad((option) => { onLoad((option) => {
uni.setNavigationBarTitle({
title: option.title
})
const typeCode = 'CustomerReject' const typeCode = 'CustomerReject'
getBusinessType(typeCode, (res) => { getBusinessType(typeCode, (res) => {
if (res.success) { if (res.success) {

10
src/pages/customerReturn/request/customerReturnRequest.vue

@ -52,6 +52,7 @@ const addAgainOption = ref([])
const showOptions = ref([]) const showOptions = ref([])
const fromType = ref('requestType') const fromType = ref('requestType')
const loadingType = ref('nomore') const loadingType = ref('nomore')
const title = ref('')
const requestInfoPopupRef = ref() const requestInfoPopupRef = ref()
const filter = ref() const filter = ref()
const comMessageRef = ref() const comMessageRef = ref()
@ -73,6 +74,9 @@ onReachBottom(() => {
onPullDownRefresh(() => { onPullDownRefresh(() => {
getList('refresh') getList('refresh')
}) })
onLoad((option) => {
title.value = option.title
})
onShow(() => { onShow(() => {
nextTick(() => { nextTick(() => {
getList('refresh') getList('refresh')
@ -91,7 +95,7 @@ const openRequestInfoPopup = (item) => {
} }
const openRequestDetail = (item) => { const openRequestDetail = (item) => {
uni.navigateTo({ uni.navigateTo({
url: `./customerReturnRequestDetail?id=${item.masterId}` url: `./customerReturnRequestDetail?id=${item.masterId}&title=${title.value}`
}) })
} }
const getList = (type) => { const getList = (type) => {
@ -120,7 +124,7 @@ const getList = (type) => {
} }
const { list } = res.data const { list } = res.data
totalCount.value = res.data.total totalCount.value = res.data.total
updateTitle(`客户退货申请(${totalCount.value})`) updateTitle(`${title.value}(${totalCount.value})`)
loadingType.value = 'loadmore' loadingType.value = 'loadmore'
if (list == null || list.length == 0) { if (list == null || list.length == 0) {
loadingType.value = 'nomore' loadingType.value = 'nomore'
@ -140,7 +144,7 @@ const getList = (type) => {
if (type === 'refresh') { if (type === 'refresh') {
uni.stopPullDownRefresh() uni.stopPullDownRefresh()
} }
updateTitle('客户退货申请') updateTitle(totalCount.value)
loadingType.value = '' loadingType.value = ''
proxy.$modal.closeLoading() proxy.$modal.closeLoading()
showMessage(error) showMessage(error)

3
src/pages/customerReturn/request/customerReturnRequestDetail.vue

@ -46,6 +46,9 @@ const detailSource = ref([]) // 绑定在页面上的数据源
const jobDetailPopup = ref() const jobDetailPopup = ref()
const comMessageRef = ref() const comMessageRef = ref()
onLoad((option) => { onLoad((option) => {
uni.setNavigationBarTitle({
title: `${option.title}详情`
})
id.value = option.id id.value = option.id
getDetail() getDetail()
}) })

3
src/pages/deliver/job/deliverDetail.vue

@ -86,6 +86,9 @@ const comMessageRef = ref()
const managementList = ref([]) const managementList = ref([])
const comIssueDetailCardRef = ref() const comIssueDetailCardRef = ref()
onLoad((option) => { onLoad((option) => {
uni.setNavigationBarTitle({
title: `${option.title}详情`
})
id.value = option.id id.value = option.id
if (id.value != undefined) { if (id.value != undefined) {
// //

8
src/pages/deliver/job/deliverJob.vue

@ -45,12 +45,14 @@ const todayTime = ref('')
const status = ref('1,2') // const status = ref('1,2') //
const detailOptions = ref([]) const detailOptions = ref([])
const detailGiveupOptions = ref([]) const detailGiveupOptions = ref([])
const title = ref('')
const filter = ref() const filter = ref()
const comMessageRef = ref() const comMessageRef = ref()
const jobInfoPopupRef = ref() const jobInfoPopupRef = ref()
const jobListPopupRef = ref() const jobListPopupRef = ref()
const businessType = ref('') const businessType = ref('')
onLoad((option) => { onLoad((option) => {
title.value = option.title
businessType.value = option.businessType businessType.value = option.businessType
}) })
onShow(() => { onShow(() => {
@ -138,7 +140,7 @@ const getList = (type) => {
const { list } = res.data const { list } = res.data
totalCount.value = res.data.total totalCount.value = res.data.total
updateTitle(`制品发货任务(${totalCount.value})`) updateTitle(`${title.value}(${totalCount.value})`)
loadingType.value = 'loadmore' loadingType.value = 'loadmore'
if (list == null || list.length == 0) { if (list == null || list.length == 0) {
loadingType.value = 'nomore' loadingType.value = 'nomore'
@ -152,13 +154,13 @@ const getList = (type) => {
uni.stopPullDownRefresh() uni.stopPullDownRefresh()
} }
loadingType.value = '' loadingType.value = ''
updateTitle('制品发货任务') updateTitle(title.value)
uni.hideLoading() uni.hideLoading()
showMessage(error) showMessage(error)
}) })
} }
const openJobDetail = (item) => { 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) => { const selectedItem = (item) => {
openJobDetail(item) openJobDetail(item)

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

@ -88,6 +88,9 @@ const comMessageRef = ref()
const showCustomer = ref(false) const showCustomer = ref(false)
const toWarehouseCode = ref('') const toWarehouseCode = ref('')
onLoad((option) => { onLoad((option) => {
uni.setNavigationBarTitle({
title: option.title
})
deliverType.value = option.deliverType deliverType.value = option.deliverType
const typeCode = 'Deliver' const typeCode = 'Deliver'
getBusinessType(typeCode, (res) => { getBusinessType(typeCode, (res) => {

3
src/pages/material/materialDowngrade.vue

@ -89,6 +89,9 @@ export default {
} }
}, },
onLoad(option) { onLoad(option) {
uni.setNavigationBarTitle({
title: option.title
})
this.clear() this.clear()
getBusinessType(this.businessTypeCode, (res) => { getBusinessType(this.businessTypeCode, (res) => {
if (res.success) { if (res.success) {

6
src/pages/productPutaway/job/fgProductPutawayJob.vue

@ -1,6 +1,6 @@
<template> <template>
<view class=""> <view class="">
<productPutawayJob ref="productPutawayJobRef" type="assemble"></productPutawayJob> <productPutawayJob :title="title" ref="productPutawayJobRef" type="assemble"></productPutawayJob>
</view> </view>
</template> </template>
@ -10,6 +10,7 @@ import { onLoad, onShow, onNavigationBarButtonTap, onReady, onBackPress, onReach
import productPutawayJob from '@/pages/productPutaway/job/productPutawayJob.vue' import productPutawayJob from '@/pages/productPutaway/job/productPutawayJob.vue'
const productPutawayJobRef = ref() const productPutawayJobRef = ref()
const title = ref('')
onShow(() => { onShow(() => {
nextTick(() => { nextTick(() => {
if (productPutawayJobRef.value != undefined) { if (productPutawayJobRef.value != undefined) {
@ -17,6 +18,9 @@ onShow(() => {
} }
}) })
}) })
onLoad((option) => {
title.value = option.title
})
onPullDownRefresh(() => { onPullDownRefresh(() => {
productPutawayJobRef.value.refresh() productPutawayJobRef.value.refresh()
}) })

12
src/pages/productPutaway/job/productPutawayDetail.vue

@ -91,13 +91,17 @@ onLoad((option) => {
status.value = option.status || '' status.value = option.status || ''
if (type.value == 'predict') { if (type.value == 'predict') {
switchCode.value = 'SemiPutawayLocationCodeValidate' switchCode.value = 'SemiPutawayLocationCodeValidate'
hintTitle.value = '预生产上架' // hintTitle.value = ''
updateTitle('预生产上架详情') // updateTitle('')
} else if (type.value == 'assemble') { } else if (type.value == 'assemble') {
hintTitle.value = '成品入库'
switchCode.value = 'FgPutawayLocationCodeValidate' switchCode.value = 'FgPutawayLocationCodeValidate'
updateTitle('成品入库详情') // hintTitle.value = ''
// updateTitle('')
} }
hintTitle.value = option.title
uni.setNavigationBarTitle({
title: `${option.title}详情`
})
}) })
onShow(() => { onShow(() => {
if (id.value != undefined) { if (id.value != undefined) {

20
src/pages/productPutaway/job/productPutawayJob.vue

@ -45,6 +45,10 @@ const props = defineProps({
type: { type: {
type: String, type: String,
default: 'assemble' default: 'assemble'
},
title: {
required: false,
default: ''
} }
}) })
const jobList = ref([]) const jobList = ref([])
@ -132,11 +136,8 @@ const getList = (type) => {
const { list } = res.data const { list } = res.data
totalCount.value = res.data.total totalCount.value = res.data.total
if (props.type == 'predict') { updateTitle(`${title.value}(${totalCount.value})`)
updateTitle(`预生产上架任务(${totalCount.value})`)
} else if (props.type == 'assemble') {
updateTitle(`成品入库任务(${totalCount.value})`)
}
loadingType.value = 'loadmore' loadingType.value = 'loadmore'
if (list == null || list.length == 0) { if (list == null || list.length == 0) {
loadingType.value = 'nomore' loadingType.value = 'nomore'
@ -149,11 +150,8 @@ const getList = (type) => {
if (type === 'refresh') { if (type === 'refresh') {
uni.stopPullDownRefresh() uni.stopPullDownRefresh()
} }
if (props.type == 'predict') { updateTitle(`${title.value}(${totalCount.value})`)
updateTitle(`预生产上架任务(${totalCount.value})`)
} else if (props.type == 'assemble') {
updateTitle(`成品入库任务(${totalCount.value})`)
}
loadingType.value = '' loadingType.value = ''
uni.hideLoading() uni.hideLoading()
showMessage(error) showMessage(error)
@ -161,7 +159,7 @@ const getList = (type) => {
} }
const openJobDetail = (item, packingNumber = '') => { const openJobDetail = (item, packingNumber = '') => {
uni.navigateTo({ 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}`
}) })
} }

6
src/pages/productPutaway/job/semiProductPutawayJob.vue

@ -1,6 +1,6 @@
<template> <template>
<view class=""> <view class="">
<productPutawayJob ref="productPutawayJobRef" type="predict"></productPutawayJob> <productPutawayJob :title="title" ref="productPutawayJobRef" type="predict"></productPutawayJob>
</view> </view>
</template> </template>
@ -10,6 +10,7 @@ import { onLoad, onShow, onNavigationBarButtonTap, onReady, onBackPress, onReach
import productPutawayJob from '@/pages/productPutaway/job/productPutawayJob.vue' import productPutawayJob from '@/pages/productPutaway/job/productPutawayJob.vue'
const productPutawayJobRef = ref() const productPutawayJobRef = ref()
const title = ref('')
onShow(() => { onShow(() => {
nextTick(() => { nextTick(() => {
if (productPutawayJobRef.value != undefined) { if (productPutawayJobRef.value != undefined) {
@ -17,6 +18,9 @@ onShow(() => {
} }
}) })
}) })
onLoad((option) => {
title.value = option.title
})
onPullDownRefresh(() => { onPullDownRefresh(() => {
productPutawayJobRef.value.refresh() productPutawayJobRef.value.refresh()
}) })

3
src/pages/productPutaway/record/productPutawayRecord.vue

@ -77,6 +77,9 @@ const scanPopup = ref()
const comMessageRef = ref() const comMessageRef = ref()
const type = ref('') const type = ref('')
onLoad((option) => { onLoad((option) => {
uni.setNavigationBarTitle({
title: option.title
})
type.value = option.type type.value = option.type
if (type.value == 'predict') { if (type.value == 'predict') {
updateTitle('制品上架记录') updateTitle('制品上架记录')

12
src/pages/productPutaway/request/putawayRequest.vue

@ -46,6 +46,7 @@ const addAgainOption = ref([])
const showOptions = ref([]) const showOptions = ref([])
const fromType = ref('requestType') const fromType = ref('requestType')
const loadingType = ref('nomore') const loadingType = ref('nomore')
const title = ref('')
const requestInfoPopupRef = ref() const requestInfoPopupRef = ref()
const filter = ref() const filter = ref()
const comMessageRef = ref() const comMessageRef = ref()
@ -57,6 +58,9 @@ onReady(() => {
detailAndHandleOption.value = getDetailAndHandleOption() detailAndHandleOption.value = getDetailAndHandleOption()
detailAndAddAndCloseOption.value = getDetailAndAddAndCloseOption() detailAndAddAndCloseOption.value = getDetailAndAddAndCloseOption()
}) })
onLoad((option) => {
title.value = option.title
})
onReachBottom(() => { onReachBottom(() => {
// //
if (loadingType.value == 'loading' || loadingType.value == 'nomore') { if (loadingType.value == 'loading' || loadingType.value == 'nomore') {
@ -82,7 +86,7 @@ onNavigationBarButtonTap((e) => {
}) })
const openRequestDetail = (item) => { const openRequestDetail = (item) => {
uni.navigateTo({ uni.navigateTo({
url: `./putawayRequestDetail?id=${item.masterId}` url: `./putawayRequestDetail?id=${item.masterId}&title=${title.value}`
}) })
} }
const openRequestInfoPopup = (item) => { const openRequestInfoPopup = (item) => {
@ -115,7 +119,8 @@ const getList = (type) => {
const { list } = res.data const { list } = res.data
totalCount.value = res.data.total totalCount.value = res.data.total
updateTitle(`制品上架申请(${totalCount.value})`) updateTitle(`${title.value}(${totalCount.value})`)
loadingType.value = 'loadmore' loadingType.value = 'loadmore'
if (list == null || list.length == 0) { if (list == null || list.length == 0) {
loadingType.value = 'nomore' loadingType.value = 'nomore'
@ -135,7 +140,8 @@ const getList = (type) => {
if (type === 'refresh') { if (type === 'refresh') {
uni.stopPullDownRefresh() uni.stopPullDownRefresh()
} }
updateTitle('制品上架申请')
updateTitle(title.value)
loadingType.value = '' loadingType.value = ''
proxy.$modal.closeLoading() proxy.$modal.closeLoading()
showMessage(error) showMessage(error)

3
src/pages/productPutaway/request/putawayRequestDetail.vue

@ -47,6 +47,9 @@ const detailSource = ref([])
const comMessageRef = ref() const comMessageRef = ref()
const jobDetailPopup = ref() const jobDetailPopup = ref()
onLoad((option) => { onLoad((option) => {
uni.setNavigationBarTitle({
title: `${option.title}详情`
})
id.value = option.id id.value = option.id
getDetail() getDetail()
}) })

3
src/pages/productReceipt/job/fgProductReceiptDetail.vue

@ -110,6 +110,9 @@ const detailInfoPopupRef = ref()
const comMessageRef = ref() const comMessageRef = ref()
const comScanLocation = ref() const comScanLocation = ref()
onLoad((option) => { onLoad((option) => {
uni.setNavigationBarTitle({
title: `${option.title}详情`
})
id.value = option.id id.value = option.id
scanedPackingNumber.value = option.scaned || '' scanedPackingNumber.value = option.scaned || ''
if (id.value != undefined) { if (id.value != undefined) {

6
src/pages/productReceipt/job/fgProductReceiptJob.vue

@ -1,6 +1,6 @@
<template> <template>
<view class=""> <view class="">
<product-receipt-job ref="productreceiptjobRef" type="assemble"></product-receipt-job> <product-receipt-job :title="title" ref="productreceiptjobRef" type="assemble"></product-receipt-job>
</view> </view>
</template> </template>
@ -10,6 +10,7 @@ import { onLoad, onShow, onNavigationBarButtonTap, onReady, onBackPress, onReach
import productReceiptJob from '@/pages/productReceipt/job/productReceiptJob.vue' import productReceiptJob from '@/pages/productReceipt/job/productReceiptJob.vue'
const productreceiptjobRef = ref() const productreceiptjobRef = ref()
const title = ref('')
onShow(() => { onShow(() => {
nextTick(() => { nextTick(() => {
if (productreceiptjobRef.value != undefined) { if (productreceiptjobRef.value != undefined) {
@ -17,6 +18,9 @@ onShow(() => {
} }
}) })
}) })
onLoad((option) => {
title.value = option.title
})
onPullDownRefresh(() => { onPullDownRefresh(() => {
productreceiptjobRef.value.refresh() productreceiptjobRef.value.refresh()
}) })

3
src/pages/productReceipt/job/productReceiptDetail.vue

@ -106,6 +106,9 @@ const scanPopup = ref()
const comScanLocation = ref() const comScanLocation = ref()
const comMessageRef = ref() const comMessageRef = ref()
onLoad((option) => { onLoad((option) => {
uni.setNavigationBarTitle({
title: `${option.title}详情`
})
id.value = option.id id.value = option.id
scanedPackingNumber.value = option.scaned || '' scanedPackingNumber.value = option.scaned || ''
status.value = option.status || '' status.value = option.status || ''

28
src/pages/productReceipt/job/productReceiptJob.vue

@ -47,6 +47,10 @@ const props = defineProps({
type: { type: {
type: String, type: String,
default: 'assemble' default: 'assemble'
},
title: {
type: String,
default: ''
} }
}) })
const jobList = ref([]) const jobList = ref([])
@ -122,13 +126,8 @@ const getList = (type) => {
const { list } = res.data const { list } = res.data
totalCount.value = res.data.total totalCount.value = res.data.total
if (props.type == 'predict') { updateTitle(`${title.value}(${totalCount.value})`)
updateTitle(`预生产收货任务(${totalCount.value})`)
} else if (props.type == 'assemble') {
updateTitle(`装配收货任务(${totalCount.value})`)
} else {
updateTitle(`报废收货任务(${totalCount.value})`)
}
loadingType.value = 'loadmore' loadingType.value = 'loadmore'
if (list == null || list.length == 0) { if (list == null || list.length == 0) {
loadingType.value = 'nomore' loadingType.value = 'nomore'
@ -141,13 +140,8 @@ const getList = (type) => {
if (type === 'refresh') { if (type === 'refresh') {
uni.stopPullDownRefresh() uni.stopPullDownRefresh()
} }
if (props.type == 'predict') { updateTitle(`${title.value}(${totalCount.value})`)
updateTitle(`预生产收货任务(${totalCount.value})`)
} else if (props.type == 'assemble') {
updateTitle(`装配收货任务(${totalCount.value})`)
} else {
updateTitle(`报废收货任务(${totalCount.value})`)
}
loadingType.value = '' loadingType.value = ''
uni.hideLoading() uni.hideLoading()
showMessage(error) showMessage(error)
@ -157,15 +151,15 @@ const getList = (type) => {
const openJobDetail = (item, packingNumber = '') => { const openJobDetail = (item, packingNumber = '') => {
if (props.type == 'predict') { if (props.type == 'predict') {
uni.navigateTo({ 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') { } else if (props.type == 'assemble') {
uni.navigateTo({ 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 { } else {
uni.navigateTo({ 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}`
}) })
} }
} }

3
src/pages/productReceipt/job/scrapReceiptDetail.vue

@ -76,6 +76,9 @@ const comScanLocation = ref()
const detailInfoPopupRef = ref() const detailInfoPopupRef = ref()
const comMessageRef = ref() const comMessageRef = ref()
onLoad((option) => { onLoad((option) => {
uni.setNavigationBarTitle({
title: `${option.title}详情`
})
id.value = option.id id.value = option.id
if (id.value != undefined) { if (id.value != undefined) {
// //

6
src/pages/productReceipt/job/scrapReceiptJob.vue

@ -1,6 +1,6 @@
<template> <template>
<view class=""> <view class="">
<product-receipt-job ref="productreceiptjobRef" type="scrap"></product-receipt-job> <product-receipt-job :title="title" ref="productreceiptjobRef" type="scrap"></product-receipt-job>
</view> </view>
</template> </template>
@ -10,6 +10,7 @@ import { onLoad, onShow, onNavigationBarButtonTap, onReady, onBackPress, onReach
import productReceiptJob from '@/pages/productReceipt/job/productReceiptJob.vue' import productReceiptJob from '@/pages/productReceipt/job/productReceiptJob.vue'
const productreceiptjobRef = ref() const productreceiptjobRef = ref()
const title = ref('')
onShow(() => { onShow(() => {
nextTick(() => { nextTick(() => {
if (productreceiptjobRef.value != undefined) { if (productreceiptjobRef.value != undefined) {
@ -17,6 +18,9 @@ onShow(() => {
} }
}) })
}) })
onLoad((option) => {
title.value = option.title
})
onPullDownRefresh(() => { onPullDownRefresh(() => {
productreceiptjobRef.value.refresh() productreceiptjobRef.value.refresh()
}) })

6
src/pages/productReceipt/job/semiProductReceiptJob.vue

@ -1,6 +1,6 @@
<template> <template>
<view class=""> <view class="">
<product-receipt-job ref="productreceiptjobRef" type="predict"></product-receipt-job> <product-receipt-job :title="title" ref="productreceiptjobRef" type="predict"></product-receipt-job>
</view> </view>
</template> </template>
@ -10,6 +10,7 @@ import { onLoad, onShow, onNavigationBarButtonTap, onReady, onBackPress, onReach
import productReceiptJob from '@/pages/productReceipt/job/productReceiptJob.vue' import productReceiptJob from '@/pages/productReceipt/job/productReceiptJob.vue'
const productreceiptjobRef = ref() const productreceiptjobRef = ref()
const title = ref('')
onShow(() => { onShow(() => {
nextTick(() => { nextTick(() => {
if (productreceiptjobRef.value != undefined) { if (productreceiptjobRef.value != undefined) {
@ -17,6 +18,9 @@ onShow(() => {
} }
}) })
}) })
onLoad((option) => {
title.value = option.title
})
onPullDownRefresh(() => { onPullDownRefresh(() => {
productreceiptjobRef.value.refresh() productreceiptjobRef.value.refresh()
}) })

3
src/pages/productReceipt/record/productReceiptRecord.vue

@ -86,6 +86,9 @@ const workStationName = ref('')
const comMessageRef = ref() const comMessageRef = ref()
const scanPopup = ref() const scanPopup = ref()
onLoad((option) => { onLoad((option) => {
uni.setNavigationBarTitle({
title: option.title
})
const typeCode = 'ProductReceipt' const typeCode = 'ProductReceipt'
getBusinessType(typeCode, (res) => { getBusinessType(typeCode, (res) => {
if (res.success) { if (res.success) {

10
src/pages/productRecycle/job/productRecycleJob.vue

@ -46,6 +46,7 @@ const todayTime = ref('')
const status = ref('1,2') // const status = ref('1,2') //
const detailOptions = ref([]) const detailOptions = ref([])
const detailGiveupOptions = ref([]) const detailGiveupOptions = ref([])
const title = ref('')
const filter = ref() const filter = ref()
const comMessageRef = ref() const comMessageRef = ref()
const jobInfoPopupRef = ref() const jobInfoPopupRef = ref()
@ -55,6 +56,9 @@ onShow(() => {
getList('refresh') getList('refresh')
}) })
}) })
onLoad((option) => {
title.value = option.title
})
onReady(() => { onReady(() => {
detailOptions.value = getDetailOption() detailOptions.value = getDetailOption()
detailGiveupOptions.value = getDetailGiveupOption() detailGiveupOptions.value = getDetailGiveupOption()
@ -126,7 +130,7 @@ const getList = (type) => {
} }
const { list } = res.data const { list } = res.data
totalCount.value = res.data.total totalCount.value = res.data.total
updateTitle(`制品回收任务(${totalCount.value})`) updateTitle(`${title.value}(${totalCount.value})`)
loadingType.value = 'loadmore' loadingType.value = 'loadmore'
if (list == null || list.length == 0) { if (list == null || list.length == 0) {
loadingType.value = 'nomore' loadingType.value = 'nomore'
@ -141,14 +145,14 @@ const getList = (type) => {
} }
loadingType.value = '' loadingType.value = ''
updateTitle('直接备货任务') updateTitle(title.value)
uni.hideLoading() uni.hideLoading()
showErrorMessage(error) showErrorMessage(error)
}) })
} }
const openJobDetail = (item) => { 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) => { const showItemList = (itemList) => {
jobListPopupRef.value.openPopup(itemList) jobListPopupRef.value.openPopup(itemList)

3
src/pages/productRecycle/job/productRecycleJobDetail.vue

@ -67,6 +67,9 @@ const scanPopup = ref()
const comMessageRef = ref() const comMessageRef = ref()
const jobDetailPopup = ref() const jobDetailPopup = ref()
onLoad((option) => { onLoad((option) => {
uni.setNavigationBarTitle({
title: `${option.title}详情`
})
id.value = option.id id.value = option.id
if (id.value != undefined) { if (id.value != undefined) {
// //

3
src/pages/productRecycle/record/productRecycleRecord.vue

@ -74,6 +74,9 @@ const toWarehouseCode = ref('')
const scanFromLocationCode = ref() const scanFromLocationCode = ref()
const toLocationInfo = ref({}) const toLocationInfo = ref({})
onLoad((option) => { onLoad((option) => {
uni.setNavigationBarTitle({
title: `${option.title}详情`
})
fromType.value = option.fromType fromType.value = option.fromType
if (fromType.value == 'requestType') { if (fromType.value == 'requestType') {
updateTitle('采购退货申请') updateTitle('采购退货申请')

8
src/pages/stockUp/job/stockUpJob.vue

@ -43,6 +43,7 @@ const status = ref('1,2') // 待处理 、进行中
const detailOptions = ref([]) const detailOptions = ref([])
const detailGiveupOptions = ref([]) const detailGiveupOptions = ref([])
const filter = ref() const filter = ref()
const title = ref('')
const comMessageRef = ref() const comMessageRef = ref()
const jobInfoPopupRef = ref() const jobInfoPopupRef = ref()
const jobListPopupRef = ref() const jobListPopupRef = ref()
@ -51,6 +52,9 @@ onShow(() => {
getList('refresh') getList('refresh')
}) })
}) })
onLoad((option) => {
title.value = option.title
})
onReady(() => { onReady(() => {
detailOptions.value = getDetailOption() detailOptions.value = getDetailOption()
detailGiveupOptions.value = getDetailGiveupOption() detailGiveupOptions.value = getDetailGiveupOption()
@ -118,7 +122,7 @@ const getList = (type) => {
const { list } = res.data const { list } = res.data
totalCount.value = res.data.total totalCount.value = res.data.total
updateTitle(`直接备货任务(${totalCount.value})`) updateTitle(`${title.value}(${totalCount.value})`)
loadingType.value = 'loadmore' loadingType.value = 'loadmore'
if (list == null || list.length == 0) { if (list == null || list.length == 0) {
loadingType.value = 'nomore' loadingType.value = 'nomore'
@ -132,7 +136,7 @@ const getList = (type) => {
uni.stopPullDownRefresh() uni.stopPullDownRefresh()
} }
loadingType.value = '' loadingType.value = ''
updateTitle('直接备货任务') updateTitle(title.value)
uni.hideLoading() uni.hideLoading()
showErrorMessage(error) showErrorMessage(error)
}) })

3
src/pages/stockUp/job/stockUpJobDetail.vue

@ -83,6 +83,9 @@ const comMessageRef = ref()
const managementList = ref([]) const managementList = ref([])
const comIssueDetailCardRef = ref() const comIssueDetailCardRef = ref()
onLoad((option) => { onLoad((option) => {
uni.setNavigationBarTitle({
title: `${option.title}详情`
})
id.value = option.id id.value = option.id
if (id.value != undefined) { if (id.value != undefined) {
// //

Loading…
Cancel
Save