Browse Source

库存管理--标题 2024/7/11 18:25:17

hella_vue3
zhang_li 3 months ago
parent
commit
1335f3861c
  1. 8
      src/pages/inventoryMove/record/moveFreeRecord.vue
  2. 8
      src/pages/inventoryMove/record/okToHoldRecord.vue
  3. 8
      src/pages/inventoryMove/record/okToScrapRecord.vue
  4. 8
      src/pages/inventoryMove/record/scrapToHoldRecord.vue
  5. 9
      src/pages/scrap/job/scrapJob.vue
  6. 3
      src/pages/scrap/job/scrapJobDetail.vue
  7. 4
      src/pages/scrap/record/scrapRecord.vue
  8. 3
      src/pages/scrap/request/scrapRequestDetail.vue
  9. 10
      src/pages/scrap/request/scrapRrequest.vue
  10. 3
      src/pages/transfer/job/issueDetail.vue
  11. 10
      src/pages/transfer/job/issueJob.vue
  12. 3
      src/pages/transfer/job/receiptDetail.vue
  13. 10
      src/pages/transfer/job/receiptJob.vue
  14. 3
      src/pages/transfer/record/deliverRecord.vue
  15. 3
      src/pages/transfer/record/receiptRecord.vue
  16. 10
      src/pages/unPlanned/job/issueJob.vue
  17. 3
      src/pages/unPlanned/job/issueJobDetail.vue
  18. 11
      src/pages/unPlanned/job/receiptJob.vue
  19. 3
      src/pages/unPlanned/job/receiptJobDetail.vue
  20. 10
      src/pages/unPlanned/request/issueRequest.vue
  21. 3
      src/pages/unPlanned/request/issueRequestDetail.vue

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

@ -1,11 +1,17 @@
<template>
<view class="page-wraper">
<comMoveRecord :allowEditStatus="true" businessTypeCode="Move"> </comMoveRecord>
<comMoveRecord :myTitle="title" :allowEditStatus="true" businessTypeCode="Move"> </comMoveRecord>
</view>
</template>
<script setup lang="ts">
import { ref, getCurrentInstance, nextTick } from 'vue'
import comMoveRecord from '@/pages/inventoryMove/coms/comMoveRecord.vue'
const title = ref('')
onLoad((option) => {
title.value = option.title
})
</script>
<style></style>

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

@ -1,11 +1,17 @@
<template>
<view class="page-wraper">
<comMoveRecord businessTypeCode="OkToHold"> </comMoveRecord>
<comMoveRecord :myTitle="title" businessTypeCode="OkToHold"> </comMoveRecord>
</view>
</template>
<script setup lang="ts">
import { ref, getCurrentInstance, nextTick } from 'vue'
import comMoveRecord from '@/pages/inventoryMove/coms/comMoveRecord.vue'
const title = ref('')
onLoad((option) => {
title.value = option.title
})
</script>
<style></style>

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

@ -1,11 +1,17 @@
<template>
<view class="page-wraper">
<comMoveRecord businessTypeCode="OkToScrap"> </comMoveRecord>
<comMoveRecord :myTitle="title" businessTypeCode="OkToScrap"> </comMoveRecord>
</view>
</template>
<script setup lang="ts">
import { ref, getCurrentInstance, nextTick } from 'vue'
import comMoveRecord from '@/pages/inventoryMove/coms/comMoveRecord.vue'
const title = ref('')
onLoad((option) => {
title.value = option.title
})
</script>
<style></style>

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

@ -1,10 +1,16 @@
<template>
<view class="page-wraper">
<comMoveRecord businessTypeCode="ScrapToHold"> </comMoveRecord>
<comMoveRecord :myTitle="title" businessTypeCode="ScrapToHold"> </comMoveRecord>
</view>
</template>
<script setup lang="ts">
import { ref, getCurrentInstance, nextTick } from 'vue'
import comMoveRecord from '@/pages/inventoryMove/coms/comMoveRecord.vue'
const title = ref('')
onLoad((option) => {
title.value = option.title
})
</script>
<style></style>

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

@ -43,6 +43,7 @@ const todayTime = ref('')
const status = ref('1,2') //
const detailOptions = ref([])
const detailGiveupOptions = ref([])
const title = ref('')
const filter = ref()
const comMessageRef = ref()
@ -53,7 +54,9 @@ onShow(() => {
getList('refresh')
})
})
onLoad((option) => {
title.value = option.title
})
onReady(() => {
detailOptions.value = getDetailOption()
detailGiveupOptions.value = getDetailGiveupOption()
@ -128,7 +131,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'
@ -142,7 +145,7 @@ const getList = (type) => {
uni.stopPullDownRefresh()
}
loadingType.value = ''
updateTitle('报废出库')
updateTitle(totalCount.value)
uni.hideLoading()
showMessage(error)
})

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

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

4
src/pages/scrap/record/scrapRecord.vue

@ -83,8 +83,10 @@ const scanLocationCode = ref()
const managementList = ref([])
const show = ref(false)
onLoad((option) => {
uni.setNavigationBarTitle({
title: option.title
})
reasonList.value = getScarpReasonList()
console.log(123, reasonList.value)
const typeCode = 'Scrap'
getBusinessType(typeCode, (res) => {
if (res.success) {

3
src/pages/scrap/request/scrapRequestDetail.vue

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

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

@ -52,9 +52,13 @@ 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()
onLoad((option) => {
title.value = option.title
})
onReady(() => {
detailOptions.value = getDetailOption()
addAgainOption.value = getAddAgainOption()
@ -88,7 +92,7 @@ onNavigationBarButtonTap((e) => {
})
const openRequestDetail = (item) => {
uni.navigateTo({
url: `./scrapRequestDetail?id=${item.masterId}`
url: `./scrapRequestDetail?id=${item.masterId}&title=${title.value}`
})
}
const openRequestInfoPopup = (item) => {
@ -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'
@ -141,7 +145,7 @@ const getList = (type) => {
if (type === 'refresh') {
uni.stopPullDownRefresh()
}
updateTitle('报废出库申请')
updateTitle(title.value)
loadingType.value = ''
proxy.$modal.closeLoading()
showMessage(error)

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

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

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

@ -56,6 +56,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()
@ -65,6 +66,9 @@ onShow(() => {
getList('refresh')
})
})
onLoad((option) => {
title.value = option.title
})
onReady(() => {
detailOptions.value = getDetailOption()
detailGiveupOptions.value = getDetailGiveupOption()
@ -138,7 +142,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 +156,13 @@ const getList = (type) => {
uni.stopPullDownRefresh()
}
loadingType.value = ''
updateTitle('调拨出库任务')
updateTitle(title.value)
uni.hideLoading()
showMessage(error)
})
}
const openJobDetail = (item) => {
proxy.$tab.navigateTo(`./issueDetail?id=${item.masterId}&status=${item.status}`)
proxy.$tab.navigateTo(`./issueDetail?id=${item.masterId}&status=${item.status}&title=${title.value}`)
}
const showItemList = (itemList) => {
jobListPopupRef.value.openPopup(itemList)

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

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

10
src/pages/transfer/job/receiptJob.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()
@ -128,7 +132,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'
@ -142,13 +146,13 @@ const getList = (type) => {
uni.stopPullDownRefresh()
}
loadingType.value = ''
updateTitle('调拨入库任务')
updateTitle(title.value)
uni.hideLoading()
showMessage(error)
})
}
const openJobDetail = (item) => {
proxy.$tab.navigateTo(`./receiptDetail?id=${item.masterId}&status=${item.status}`)
proxy.$tab.navigateTo(`./receiptDetail?id=${item.masterId}&status=${item.status}&title=${title.value}`)
}
const showItemList = (itemList) => {
jobListPopupRef.value.openPopup(itemList)

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

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

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

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

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

@ -49,6 +49,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()
@ -59,6 +60,9 @@ onShow(() => {
getList('refresh')
})
})
onLoad((option) => {
title.value = option.title
})
onMounted(() => {
detailOptions.value = getDetailOption()
detailGiveupOptions.value = getDetailGiveupOption()
@ -132,7 +136,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'
@ -146,7 +150,7 @@ const getList = (type) => {
uni.stopPullDownRefresh()
}
updateTitle('计划外出库')
updateTitle(title.value)
loadingType.value = ''
uni.hideLoading()
showMessage(error)
@ -154,7 +158,7 @@ const getList = (type) => {
}
const openJobDetail = (item, packingNumber = '') => {
uni.navigateTo({
url: `./issueJobDetail?id=${item.masterId}&status=${item.status}`
url: `./issueJobDetail?id=${item.masterId}&status=${item.status}&title=${title.value}`
})
}
const showItemList = (itemList) => {

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

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

11
src/pages/unPlanned/job/receiptJob.vue

@ -56,6 +56,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()
@ -66,6 +67,9 @@ onShow(() => {
getList('refresh')
})
})
onLoad((option) => {
title.value = option.title
})
onMounted(() => {
detailOptions.value = getDetailOption()
detailGiveupOptions.value = getDetailGiveupOption()
@ -138,8 +142,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'
@ -153,7 +156,7 @@ const getList = (type) => {
uni.stopPullDownRefresh()
}
updateTitle('计划外入库')
updateTitle(title.value)
loadingType.value = ''
uni.hideLoading()
showMessage(error)
@ -161,7 +164,7 @@ const getList = (type) => {
}
const openJobDetail = (item, packingNumber = '') => {
uni.navigateTo({
url: `./receiptJobDetail?id=${item.masterId}&status=${item.status}`
url: `./receiptJobDetail?id=${item.masterId}&status=${item.status}&title=${title.value}`
})
}
const showItemList = (itemList) => {

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

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

10
src/pages/unPlanned/request/issueRequest.vue

@ -45,6 +45,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()
@ -63,6 +64,9 @@ onReachBottom(() => {
}
getList('more')
})
onLoad((option) => {
title.value = option.title
})
onPullDownRefresh(() => {
getList('refresh')
})
@ -81,7 +85,7 @@ onNavigationBarButtonTap((e) => {
})
const openRequestDetail = (item) => {
uni.navigateTo({
url: `./issueRequestDetail?id=${item.masterId}`
url: `./issueRequestDetail?id=${item.masterId}&title=${title.value}`
})
}
const openRequestInfoPopup = (item) => {
@ -114,7 +118,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'
@ -134,7 +138,7 @@ const getList = (type) => {
if (type === 'refresh') {
uni.stopPullDownRefresh()
}
updateTitle('计划外出库申请')
updateTitle(title.value)
loadingType.value = ''
proxy.$modal.closeLoading()
showMessage(error)

3
src/pages/unPlanned/request/issueRequestDetail.vue

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

Loading…
Cancel
Save