Browse Source

发料管理动态标题 2024/7/11 15:27:05

pull/1/head
张立 8 months ago
parent
commit
c56c4bc515
  1. 3
      src/pages/issue/job/issueDetail.vue
  2. 8
      src/pages/issue/job/issueJob.vue
  3. 3
      src/pages/issue/record/directIssue.vue
  4. 3
      src/pages/issue/request/issueScanRequest.vue
  5. 9
      src/pages/package/job/overPackageJob.vue
  6. 5
      src/pages/package/job/overPackageJobDetail.vue
  7. 5
      src/pages/package/record/overPackageRecord.vue
  8. 3
      src/pages/productionReceipt/job/productionReceiptDetail.vue
  9. 8
      src/pages/productionReceipt/job/productionReceiptJob.vue
  10. 11
      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. 6
      src/pages/productionReturn/request/returnToHoldRequest.vue
  16. 6
      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. 10
      src/pages/repleinsh/job/repleinshJob.vue
  22. 3
      src/pages/repleinsh/record/directRepleinshRecord.vue

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

@ -72,6 +72,9 @@ 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
scanMessage.value = option.scanMessage scanMessage.value = option.scanMessage
if (id.value != undefined) { if (id.value != undefined) {

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

@ -54,6 +54,7 @@ const status = ref('1,2') // 待处理 、进行中
const detailOptions = ref([]) const detailOptions = ref([])
const detailGiveupOptions = ref([]) const detailGiveupOptions = ref([])
const productionline = ref([]) const productionline = ref([])
const title = ref('')
const filter = ref() const filter = ref()
const scanMessage = ref('') const scanMessage = ref('')
const comMessageRef = ref() const comMessageRef = ref()
@ -66,7 +67,8 @@ onShow(() => {
getList('refresh') getList('refresh')
}) })
}) })
onLoad(() => { onLoad((option) => {
title.value = option.title
getIssueJobByProductionline1() getIssueJobByProductionline1()
}) })
onReady(() => { onReady(() => {
@ -172,7 +174,7 @@ const getList = (type, fromLocationCode = '', productionLineCode = '') => {
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'
@ -186,7 +188,7 @@ const getList = (type, fromLocationCode = '', productionLineCode = '') => {
uni.stopPullDownRefresh() uni.stopPullDownRefresh()
} }
loadingType.value = '' loadingType.value = ''
updateTitle('发料任务') updateTitle(title.value)
uni.hideLoading() uni.hideLoading()
showErrorMessage(error) showErrorMessage(error)
}) })

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

@ -106,6 +106,9 @@ const resultData = ref({})
const balanceSelectRef = ref() const balanceSelectRef = ref()
onLoad((option) => { onLoad((option) => {
uni.setNavigationBarTitle({
title: option.title
})
clearData() clearData()
getBusinessType(businessTypeCode.value, (res) => { getBusinessType(businessTypeCode.value, (res) => {
if (res.success) { if (res.success) {

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

@ -44,6 +44,9 @@ const fromInventoryStatuses = ref('')
const toInventoryStatuses = ref('') const toInventoryStatuses = ref('')
const scanPopup = ref() const scanPopup = ref()
onLoad((option) => { onLoad((option) => {
uni.setNavigationBarTitle({
title: option.title
})
const typeCode = 'Issue' const typeCode = 'Issue'
getBusinessType(typeCode, (res) => { getBusinessType(typeCode, (res) => {
nextTick(() => { nextTick(() => {

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

@ -39,6 +39,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()
onShow(() => { onShow(() => {
@ -46,6 +47,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,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'
@ -132,7 +137,7 @@ const getList = (type) => {
uni.stopPullDownRefresh() uni.stopPullDownRefresh()
} }
loadingType.value = '' loadingType.value = ''
updateTitle('翻包任务') updateTitle(title.value)
uni.hideLoading() uni.hideLoading()
showErrorMessage(error) showErrorMessage(error)
}) })

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

@ -83,6 +83,9 @@ const comMessageRef = ref()
const comOverPackJobDetailCardRef = ref() const comOverPackJobDetailCardRef = ref()
const managementList = ref([]) const managementList = 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) {
// //
@ -122,9 +125,11 @@ onBackPress((e) => {
}) })
const resizeCollapse = () => { const resizeCollapse = () => {
nextTick((r) => { nextTick((r) => {
if (comOverPackJobDetailCardRef.value) {
comOverPackJobDetailCardRef.value.forEach((r) => { comOverPackJobDetailCardRef.value.forEach((r) => {
r.resizeCollapse() r.resizeCollapse()
}) })
}
}) })
} }
const receive = (callback) => { const receive = (callback) => {

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

@ -110,6 +110,11 @@ const comMessageRef = ref()
onShow(() => { onShow(() => {
getBusinessType() getBusinessType()
}) })
onLoad((option) => {
uni.setNavigationBarTitle({
title: option.title
})
})
onNavigationBarButtonTap((e) => { onNavigationBarButtonTap((e) => {
if (e.index === 0) { if (e.index === 0) {
goHome() goHome()

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

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

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

@ -55,6 +55,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()
@ -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()
@ -136,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'
@ -150,7 +154,7 @@ const getList = (type) => {
uni.stopPullDownRefresh() uni.stopPullDownRefresh()
} }
loadingType.value = '' loadingType.value = ''
updateTitle('生产收料') updateTitle(title.value)
uni.hideLoading() uni.hideLoading()
showErrorMessage(error) showErrorMessage(error)
}) })

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

@ -43,7 +43,6 @@ 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()
@ -51,6 +50,10 @@ const props = defineProps({
businessType: { businessType: {
type: String, type: String,
default: '' default: ''
},
title: {
type: String,
default: ''
} }
}) })
// //
@ -74,13 +77,13 @@ onMounted(() => {
}) })
const updateTitle1 = () => { const updateTitle1 = () => {
if (props.businessType == 'ReturnToStore') { if (props.businessType == 'ReturnToStore') {
title.value = '生产合格退料申请' // title.value = '退'
fromType.value = 'ReturnToStore' fromType.value = 'ReturnToStore'
} else if (props.businessType == 'ReturnToHold') { } else if (props.businessType == 'ReturnToHold') {
title.value = '生产隔离退料申请' // title.value = '退'
fromType.value = 'ReturnToHold' fromType.value = 'ReturnToHold'
} }
updateTitle(title) updateTitle(props.title)
} }
// onShow(() => { // onShow(() => {
// nextTick(() => { // nextTick(() => {

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

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

@ -54,6 +54,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()
@ -62,6 +63,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()
@ -134,7 +138,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'
@ -148,13 +152,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 selectedItem = (item) => { const selectedItem = (item) => {
openJobDetail(item) openJobDetail(item)

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

@ -111,7 +111,10 @@ const toLocationAreaTypeList = ref([])
const scanPopup = ref() const scanPopup = ref()
const comMessageRef = ref() const comMessageRef = ref()
const toWarehouseCode = ref() const toWarehouseCode = ref()
onLoad(() => { onLoad(option) {
uni.setNavigationBarTitle({
title: option.title
})
getBusinessType(businessTypeCode.value, (res) => { getBusinessType(businessTypeCode.value, (res) => {
if (res.success) { if (res.success) {
businessType.value = res.businessType businessType.value = res.businessType

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

@ -88,7 +88,10 @@ const toManagementList = ref([])
const scanPopup = ref() const scanPopup = ref()
const comMessageRef = ref() const comMessageRef = ref()
const toWarehouseCode = ref() const toWarehouseCode = ref()
onLoad(() => { onLoad(option) {
uni.setNavigationBarTitle({
title: option.title
})
getBusinessType(businessTypeCode.value, (res) => { getBusinessType(businessTypeCode.value, (res) => {
if (res.success) { if (res.success) {
businessType.value = res.businessType businessType.value = res.businessType

6
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>
@ -13,6 +13,7 @@ import { goHome } from '@/common/basic.js'
const requestList = ref([]) const requestList = ref([])
const request = ref() const request = ref()
const title = ref('')
onNavigationBarButtonTap((e) => { onNavigationBarButtonTap((e) => {
if (e.index === 0) { if (e.index === 0) {
goHome() goHome()
@ -20,6 +21,9 @@ onNavigationBarButtonTap((e) => {
request.value.openFilter() request.value.openFilter()
} }
}) })
onLoad((option) => {
title.value = option.title
})
onShow(() => { onShow(() => {
nextTick(() => { nextTick(() => {
request.value.getList('refresh') request.value.getList('refresh')

6
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>
@ -12,6 +12,7 @@ import { goHome } from '@/common/basic.js'
const requestList = ref([]) const requestList = ref([])
const request = ref() const request = ref()
const title = ref('')
onNavigationBarButtonTap((e) => { onNavigationBarButtonTap((e) => {
if (e.index === 0) { if (e.index === 0) {
goHome() goHome()
@ -19,6 +20,9 @@ onNavigationBarButtonTap((e) => {
request.value.openFilter() request.value.openFilter()
} }
}) })
onLoad((option) => {
title.value = option.title
})
onShow(() => { onShow(() => {
nextTick(() => { nextTick(() => {
request.value.getList('refresh') request.value.getList('refresh')

4
src/pages/query/container.vue

@ -77,9 +77,9 @@ export default {
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

@ -64,9 +64,9 @@
filter.value.openFilter() filter.value.openFilter()
} }
}) })
onLoad((e)=>{ onLoad((option)=>{
uni.setNavigationBarTitle({ uni.setNavigationBarTitle({
title: e.title title: option.title
}) })
}) })
onMounted(() => { onMounted(() => {

4
src/pages/query/location.vue

@ -73,9 +73,9 @@ onNavigationBarButtonTap((e) => {
onMounted(() => { onMounted(() => {
openScanPopup() openScanPopup()
}) })
onLoad((e) => { onLoad((option) => {
uni.setNavigationBarTitle({ uni.setNavigationBarTitle({
title: e.title title: option.title
}) })
}) })
onPullDownRefresh(() => { onPullDownRefresh(() => {

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

@ -85,6 +85,9 @@ const comScanIssuePackRef = ref()
const locationTypes = ref() const locationTypes = ref()
onLoad((option) => { onLoad((option) => {
uni.setNavigationBarTitle({
title: `${option.title}详情`
})
id.value = option.id id.value = option.id
operation.value = option.operation operation.value = option.operation
if (id.value != undefined) { if (id.value != undefined) {

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

@ -52,6 +52,7 @@ const status = ref('1,2') // 待处理 、进行中
const detailOptions = ref([]) const detailOptions = ref([])
const scanMessage = ref('') const scanMessage = 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()
@ -62,6 +63,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()
@ -144,7 +148,7 @@ const getList = (type, fromLocationCode = '') => {
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'
@ -158,7 +162,7 @@ const getList = (type, fromLocationCode = '') => {
uni.stopPullDownRefresh() uni.stopPullDownRefresh()
} }
loadingType.value = '' loadingType.value = ''
updateTitle('补料') updateTitle(title.value)
uni.hideLoading() uni.hideLoading()
showErrorMessage(error) showErrorMessage(error)
}) })
@ -168,7 +172,7 @@ const fromLocationCode = (fromLocationCode) => {
getList('refresh', fromLocationCode, '') getList('refresh', fromLocationCode, '')
} }
const openJobDetail = (item, scanMessageParams = '') => { const openJobDetail = (item, scanMessageParams = '') => {
proxy.$tab.navigateTo(`./repleinshDetail?id=${item.masterId}&status=${item.status}&scanMessage=${scanMessageParams}`) proxy.$tab.navigateTo(`./repleinshDetail?id=${item.masterId}&status=${item.status}&scanMessage=${scanMessage.value}&title=${title.value}`)
} }
const selectedItem = (item) => { const selectedItem = (item) => {
openJobDetail(item) openJobDetail(item)

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

@ -92,6 +92,9 @@ const show = ref(false)
const scanPopup = ref() const scanPopup = ref()
const scanLocationCode = ref() const scanLocationCode = ref()
onLoad((option) => { onLoad((option) => {
uni.setNavigationBarTitle({
title: option.title
})
clear() clear()
getBusinessType() getBusinessType()
}) })

Loading…
Cancel
Save