Browse Source

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

pull/1/head
zhang_li 5 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. 11
      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. 8
      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()
onLoad((option) => {
uni.setNavigationBarTitle({
title: `${option.title}详情`
})
id.value = option.id
scanMessage.value = option.scanMessage
if (id.value != undefined) {

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

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

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

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

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

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

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

@ -39,6 +39,7 @@ const status = ref('1,2') // 待处理 、进行中
const detailOptions = ref([])
const detailGiveupOptions = ref([])
const filter = ref()
const title = ref('')
const comMessageRef = ref()
const jobInfoPopupRef = ref()
onShow(() => {
@ -46,6 +47,9 @@ onShow(() => {
getList('refresh')
})
})
onLoad((option) => {
title.value = option.title
})
onReady(() => {
detailOptions.value = getDetailOption()
detailGiveupOptions.value = getDetailGiveupOption()
@ -118,7 +122,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'
@ -132,7 +137,7 @@ const getList = (type) => {
uni.stopPullDownRefresh()
}
loadingType.value = ''
updateTitle('翻包任务')
updateTitle(title.value)
uni.hideLoading()
showErrorMessage(error)
})

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

@ -83,6 +83,9 @@ const comMessageRef = ref()
const comOverPackJobDetailCardRef = ref()
const managementList = ref([])
onLoad((option) => {
uni.setNavigationBarTitle({
title: `${option.title}详情`
})
id.value = option.id
if (id.value != undefined) {
//
@ -122,9 +125,11 @@ onBackPress((e) => {
})
const resizeCollapse = () => {
nextTick((r) => {
comOverPackJobDetailCardRef.value.forEach((r) => {
r.resizeCollapse()
})
if (comOverPackJobDetailCardRef.value) {
comOverPackJobDetailCardRef.value.forEach((r) => {
r.resizeCollapse()
})
}
})
}
const receive = (callback) => {

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

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

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

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

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

@ -55,6 +55,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()
@ -64,6 +65,9 @@ onShow(() => {
getList('refresh')
})
})
onLoad((option) => {
title.value = option.title
})
onReady(() => {
detailOptions.value = getDetailOption()
detailGiveupOptions.value = getDetailGiveupOption()
@ -136,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'
@ -150,7 +154,7 @@ const getList = (type) => {
uni.stopPullDownRefresh()
}
loadingType.value = ''
updateTitle('生产收料')
updateTitle(title.value)
uni.hideLoading()
showErrorMessage(error)
})

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

@ -43,7 +43,6 @@ const addAgainOption = ref([])
const showOptions = ref([])
const fromType = ref('requestType')
const loadingType = ref('nomore')
const title = ref('')
const requestInfoPopupRef = ref()
const filter = ref()
@ -51,6 +50,10 @@ const props = defineProps({
businessType: {
type: String,
default: ''
},
title: {
type: String,
default: ''
}
})
//
@ -74,13 +77,13 @@ onMounted(() => {
})
const updateTitle1 = () => {
if (props.businessType == 'ReturnToStore') {
title.value = '生产合格退料申请'
// title.value = '退'
fromType.value = 'ReturnToStore'
} else if (props.businessType == 'ReturnToHold') {
title.value = '生产隔离退料申请'
// title.value = '退'
fromType.value = 'ReturnToHold'
}
updateTitle(title)
updateTitle(props.title)
}
// onShow(() => {
// nextTick(() => {

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

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

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

@ -54,6 +54,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()
@ -62,6 +63,9 @@ onShow(() => {
getList('refresh')
})
})
onLoad((option) => {
title.value = option.title
})
onReady(() => {
detailOptions.value = getDetailOption()
detailGiveupOptions.value = getDetailGiveupOption()
@ -134,7 +138,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'
@ -148,13 +152,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 selectedItem = (item) => {
openJobDetail(item)

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

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

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

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

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

@ -1,6 +1,6 @@
<template>
<view class="">
<comReturnCommonRequest ref="request" businessType="ReturnToHold"></comReturnCommonRequest>
<comReturnCommonRequest :title="title" ref="request" businessType="ReturnToHold"></comReturnCommonRequest>
</view>
</template>
@ -13,6 +13,7 @@ import { goHome } from '@/common/basic.js'
const requestList = ref([])
const request = ref()
const title = ref('')
onNavigationBarButtonTap((e) => {
if (e.index === 0) {
goHome()
@ -20,6 +21,9 @@ onNavigationBarButtonTap((e) => {
request.value.openFilter()
}
})
onLoad((option) => {
title.value = option.title
})
onShow(() => {
nextTick(() => {
request.value.getList('refresh')

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

@ -1,6 +1,6 @@
<template>
<view class="">
<comReturnCommonRequest ref="request" businessType="ReturnToStore"></comReturnCommonRequest>
<comReturnCommonRequest :title="title" ref="request" businessType="ReturnToStore"></comReturnCommonRequest>
</view>
</template>
@ -12,6 +12,7 @@ import { goHome } from '@/common/basic.js'
const requestList = ref([])
const request = ref()
const title = ref('')
onNavigationBarButtonTap((e) => {
if (e.index === 0) {
goHome()
@ -19,6 +20,9 @@ onNavigationBarButtonTap((e) => {
request.value.openFilter()
}
})
onLoad((option) => {
title.value = option.title
})
onShow(() => {
nextTick(() => {
request.value.getList('refresh')

4
src/pages/query/container.vue

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

8
src/pages/query/item.vue

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

4
src/pages/query/location.vue

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

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

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

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

@ -52,6 +52,7 @@ const status = ref('1,2') // 待处理 、进行中
const detailOptions = ref([])
const scanMessage = ref('')
const detailGiveupOptions = ref([])
const title = ref('')
const filter = ref()
const comMessageRef = ref()
const jobInfoPopupRef = ref()
@ -62,6 +63,9 @@ onShow(() => {
getList('refresh')
})
})
onLoad((option) => {
title.value = option.title
})
onReady(() => {
detailOptions.value = getDetailOption()
detailGiveupOptions.value = getDetailGiveupOption()
@ -144,7 +148,7 @@ const getList = (type, fromLocationCode = '') => {
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'
@ -158,7 +162,7 @@ const getList = (type, fromLocationCode = '') => {
uni.stopPullDownRefresh()
}
loadingType.value = ''
updateTitle('补料')
updateTitle(title.value)
uni.hideLoading()
showErrorMessage(error)
})
@ -168,7 +172,7 @@ const fromLocationCode = (fromLocationCode) => {
getList('refresh', fromLocationCode, '')
}
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) => {
openJobDetail(item)

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

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

Loading…
Cancel
Save