Browse Source

库存管理--标题2024/7/11 18:25:17src/pages/inventoryMove/record/moveFreeRecord.vue没写

hella_vue3
zhang_li 3 months ago
parent
commit
d7b9b77c7e
  1. 3
      src/pages/count/job/countBlindDetail.vue
  2. 12
      src/pages/count/job/countJob.vue
  3. 3
      src/pages/count/job/countLightDetail.vue
  4. 36
      src/pages/inventoryMove/coms/comMoveJob.vue
  5. 19
      src/pages/inventoryMove/coms/comMoveRecord.vue
  6. 6
      src/pages/inventoryMove/job/holdToOkMoveJob.vue
  7. 6
      src/pages/inventoryMove/job/holdToScrapMoveJob.vue
  8. 4
      src/pages/inventoryMove/job/inventoryMoveDetail.vue
  9. 6
      src/pages/inventoryMove/job/moveJob.vue
  10. 6
      src/pages/inventoryMove/job/okToHoldMoveJob.vue
  11. 6
      src/pages/inventoryMove/job/okToScrapMoveJob.vue
  12. 6
      src/pages/inventoryMove/job/scrapToHoldMoveJob.vue
  13. 8
      src/pages/inventoryMove/record/holdToOkRecord.vue
  14. 8
      src/pages/inventoryMove/record/holdToScrapRecord.vue

3
src/pages/count/job/countBlindDetail.vue

@ -117,6 +117,9 @@ export default {
} }
}, },
onLoad(option) { onLoad(option) {
uni.setNavigationBarTitle({
title: `${option.title}详情`
})
this.id = option.id this.id = option.id
if (this.id != undefined) { if (this.id != undefined) {
// //

12
src/pages/count/job/countJob.vue

@ -63,6 +63,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()
@ -73,6 +74,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()
@ -152,7 +156,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'
@ -166,7 +170,7 @@ const getList = (type) => {
uni.stopPullDownRefresh() uni.stopPullDownRefresh()
} }
loadingType.value = '' loadingType.value = ''
updateTitle('盘点') updateTitle(title.value)
uni.hideLoading() uni.hideLoading()
showMessage(error) showMessage(error)
}) })
@ -175,12 +179,12 @@ const openJobDetail = (item) => {
// //
if (item.isOpenCount == 'TRUE') { if (item.isOpenCount == 'TRUE') {
uni.navigateTo({ uni.navigateTo({
url: `./countLightDetail?id=${item.id}&status=${item.status}` url: `./countLightDetail?id=${item.id}&status=${item.status}&title=${title.value}`
}) })
} else { } else {
// //
uni.navigateTo({ uni.navigateTo({
url: `./countBlindDetail?id=${item.id}&status=${item.status}` url: `./countBlindDetail?id=${item.id}&status=${item.status}&title=${title.value}`
}) })
} }
} }

3
src/pages/count/job/countLightDetail.vue

@ -109,6 +109,9 @@ const scanPopup = ref()
const countQtyEditRef = ref() const countQtyEditRef = 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) {
// //

36
src/pages/inventoryMove/coms/comMoveJob.vue

@ -37,7 +37,11 @@ const props = defineProps({
businessTypeCode: { businessTypeCode: {
type: String, type: String,
default: 'Move' default: 'Move'
} // }, //
title: {
type: String,
default: ''
}
}) })
const jobList = ref([]) const jobList = ref([])
@ -65,20 +69,20 @@ onMounted(() => {
const updateTitle = () => { const updateTitle = () => {
let title = '' let title = ''
let name = '' const name = props.title
if (props.businessTypeCode == 'Move') { // if (props.businessTypeCode == 'Move') {
name = '库存转移' // name = ''
} else if (props.businessTypeCode == 'HoldToOk') { // } else if (props.businessTypeCode == 'HoldToOk') {
name = '隔离转合格' // name = ''
} else if (props.businessTypeCode == 'HoldToScrap') { // } else if (props.businessTypeCode == 'HoldToScrap') {
name = '隔离转报废' // name = ''
} else if (props.businessTypeCode == 'OkToHold') { // } else if (props.businessTypeCode == 'OkToHold') {
name = '合格转隔离' // name = ''
} else if (props.businessTypeCode == 'OktoScrap') { // } else if (props.businessTypeCode == 'OktoScrap') {
name = '合格转报废' // name = ''
} else if (props.businessTypeCode == 'ScrapToHold') { // } else if (props.businessTypeCode == 'ScrapToHold') {
name = '报废转隔离' // name = ''
} // }
// titleName.value = name // titleName.value = name
if (totalCount.value > 0) { if (totalCount.value > 0) {
title = `${name}(${totalCount.value})` title = `${name}(${totalCount.value})`
@ -158,7 +162,7 @@ const getList = (type) => {
const openJobDetail = (item) => { const openJobDetail = (item) => {
uni.navigateTo({ uni.navigateTo({
url: `./inventoryMoveDetail?id=${item.masterId}&status=${item.status}&businessTypeCode=${props.businessTypeCode}` url: `./inventoryMoveDetail?id=${item.masterId}&status=${item.status}&businessTypeCode=${props.businessTypeCode}&title=${props.title}`
}) })
} }

19
src/pages/inventoryMove/coms/comMoveRecord.vue

@ -69,7 +69,11 @@ const props = defineProps({
businessTypeCode: { businessTypeCode: {
type: String, type: String,
default: 'Move' default: 'Move'
} // }, //
myTitle: {
type: String,
default: ''
}
}) })
const fromLocationCode = ref('') const fromLocationCode = ref('')
const fromLocationInfo = ref({}) const fromLocationInfo = ref({})
@ -107,36 +111,37 @@ onMounted(() => {
const initData = () => { const initData = () => {
if (businessTypeCode.value == 'Move') { if (businessTypeCode.value == 'Move') {
title.value = '库存转移记录' // title.value = ''
toInventoryStatus.value = '' toInventoryStatus.value = ''
toLocationCode.value = '' toLocationCode.value = ''
isShowEditLocation.value = true isShowEditLocation.value = true
} else if (businessTypeCode.value == 'HoldToOk') { } else if (businessTypeCode.value == 'HoldToOk') {
title.value = '隔离转合格记录' // title.value = ''
toInventoryStatus.value = 'OK' toInventoryStatus.value = 'OK'
toLocationCode.value = '' toLocationCode.value = ''
isShowEditLocation.value = true isShowEditLocation.value = true
} else if (businessTypeCode.value == 'HoldToScrap') { } else if (businessTypeCode.value == 'HoldToScrap') {
title.value = '隔离转报废记录' // title.value = ''
toInventoryStatus.value = 'SCRAP' toInventoryStatus.value = 'SCRAP'
toLocationCode.value = '' toLocationCode.value = ''
// this.toLocationCode = "SCRAP" // this.toLocationCode = "SCRAP"
} else if (businessTypeCode.value == 'OkToHold') { } else if (businessTypeCode.value == 'OkToHold') {
title.value = '合格转隔离记录' // title.value = ''
toInventoryStatus.value = 'HOLD' toInventoryStatus.value = 'HOLD'
toLocationCode.value = '' toLocationCode.value = ''
// this.toLocationCode = "HOLD" // this.toLocationCode = "HOLD"
} else if (businessTypeCode.value == 'OkToScrap') { } else if (businessTypeCode.value == 'OkToScrap') {
title.value = '合格转报废记录' // title.value = ''
toInventoryStatus.value = 'SCRAP' toInventoryStatus.value = 'SCRAP'
toLocationCode.value = '' toLocationCode.value = ''
// this.toLocationCode = "SCRAP" // this.toLocationCode = "SCRAP"
} else if (businessTypeCode.value == 'ScrapToHold') { } else if (businessTypeCode.value == 'ScrapToHold') {
title.value = '报废转隔离记录' // title.value = ''
toInventoryStatus.value = 'HOLD' toInventoryStatus.value = 'HOLD'
// this.toLocationCode = "HOLD" // this.toLocationCode = "HOLD"
toLocationCode.value = '' toLocationCode.value = ''
} }
title.value = myTitle.value
uni.setNavigationBarTitle({ uni.setNavigationBarTitle({
title: title.value title: title.value
}) })

6
src/pages/inventoryMove/job/holdToOkMoveJob.vue

@ -1,6 +1,6 @@
<template> <template>
<view class="page-wraper"> <view class="page-wraper">
<comMoveJob ref="receiptjob" businessTypeCode="HoldToOk"> </comMoveJob> <comMoveJob :title="title" ref="receiptjob" businessTypeCode="HoldToOk"> </comMoveJob>
</view> </view>
</template> </template>
@ -10,6 +10,7 @@ import { onShow, onNavigationBarButtonTap, onReady, onReachBottom, onPullDownRef
import comMoveJob from '@/pages/inventoryMove/coms/comMoveJob.vue' import comMoveJob from '@/pages/inventoryMove/coms/comMoveJob.vue'
const receiptjob = ref() const receiptjob = ref()
const title = ref('')
onShow(() => { onShow(() => {
nextTick(() => { nextTick(() => {
if (receiptjob.value != undefined) { if (receiptjob.value != undefined) {
@ -17,6 +18,9 @@ onShow(() => {
} }
}) })
}) })
onLoad((option) => {
title.value = option.title
})
onPullDownRefresh(() => { onPullDownRefresh(() => {
receiptjob.value.refresh() receiptjob.value.refresh()
}) })

6
src/pages/inventoryMove/job/holdToScrapMoveJob.vue

@ -1,6 +1,6 @@
<template> <template>
<view class="page-wraper"> <view class="page-wraper">
<comMoveJob ref="receiptjob" businessTypeCode="HoldToScrap"> </comMoveJob> <comMoveJob :title="title" ref="receiptjob" businessTypeCode="HoldToScrap"> </comMoveJob>
</view> </view>
</template> </template>
@ -10,6 +10,7 @@ import { onShow, onNavigationBarButtonTap, onReady, onReachBottom, onPullDownRef
import comMoveJob from '@/pages/inventoryMove/coms/comMoveJob.vue' import comMoveJob from '@/pages/inventoryMove/coms/comMoveJob.vue'
const receiptjob = ref() const receiptjob = ref()
const title = ref('')
onShow(() => { onShow(() => {
nextTick(() => { nextTick(() => {
if (receiptjob.value != undefined) { if (receiptjob.value != undefined) {
@ -17,6 +18,9 @@ onShow(() => {
} }
}) })
}) })
onLoad((option) => {
title.value = option.title
})
onPullDownRefresh(() => { onPullDownRefresh(() => {
receiptjob.value.refresh() receiptjob.value.refresh()
}) })

4
src/pages/inventoryMove/job/inventoryMoveDetail.vue

@ -67,11 +67,13 @@ const businessTypeCode = ref('')
const toLocationCode = ref('') const toLocationCode = ref('')
const toInventoryStatus = ref('') const toInventoryStatus = ref('')
const jobStatus = ref('') const jobStatus = ref('')
const title = ref('')
const scanPopup = ref() const scanPopup = ref()
const detailInfoPopupRef = ref() const detailInfoPopupRef = ref()
const comMessageRef = ref() const comMessageRef = ref()
const comScanLocation = ref() const comScanLocation = ref()
onLoad((option) => { onLoad((option) => {
title.value = option.title
id.value = option.id id.value = option.id
businessTypeCode.value = option.businessTypeCode businessTypeCode.value = option.businessTypeCode
if (id.value != undefined) { if (id.value != undefined) {
@ -141,7 +143,7 @@ const initData = () => {
} }
uni.setNavigationBarTitle({ uni.setNavigationBarTitle({
title: `${name}详情` title: `${title.value}详情`
}) })
} }
// //

6
src/pages/inventoryMove/job/moveJob.vue

@ -1,6 +1,6 @@
<template> <template>
<view class="page-wraper" style="min-height: 101vh"> <view class="page-wraper" style="min-height: 101vh">
<comMoveJob ref="receiptjob" businessTypeCode="Move"> </comMoveJob> <comMoveJob ref="receiptjob" :title="title" businessTypeCode="Move"> </comMoveJob>
</view> </view>
</template> </template>
@ -11,6 +11,7 @@ import comMoveJob from '@/pages/inventoryMove/coms/comMoveJob.vue'
import { goHome, getCurrDate } from '@/common/basic.js' import { goHome, getCurrDate } from '@/common/basic.js'
const receiptjob = ref() const receiptjob = ref()
const title = ref('')
onShow(() => { onShow(() => {
nextTick(() => { nextTick(() => {
if (receiptjob.value != undefined) { if (receiptjob.value != undefined) {
@ -18,6 +19,9 @@ onShow(() => {
} }
}) })
}) })
onLoad((option) => {
title.value = option.title
})
onPullDownRefresh(() => { onPullDownRefresh(() => {
receiptjob.value.refresh() receiptjob.value.refresh()
}) })

6
src/pages/inventoryMove/job/okToHoldMoveJob.vue

@ -1,6 +1,6 @@
<template> <template>
<view class="page-wraper" style="min-height: 101vh"> <view class="page-wraper" style="min-height: 101vh">
<comMoveJob ref="receiptjob" businessTypeCode="OkToHold"> </comMoveJob> <comMoveJob :title="title" ref="receiptjob" businessTypeCode="OkToHold"> </comMoveJob>
</view> </view>
</template> </template>
@ -10,6 +10,7 @@ import { onShow, onNavigationBarButtonTap, onReady, onReachBottom, onPullDownRef
import comMoveJob from '@/pages/inventoryMove/coms/comMoveJob.vue' import comMoveJob from '@/pages/inventoryMove/coms/comMoveJob.vue'
const receiptjob = ref() const receiptjob = ref()
const title = ref('')
onShow(() => { onShow(() => {
nextTick(() => { nextTick(() => {
if (receiptjob.value != undefined) { if (receiptjob.value != undefined) {
@ -17,6 +18,9 @@ onShow(() => {
} }
}) })
}) })
onLoad((option) => {
title.value = option.title
})
onPullDownRefresh(() => { onPullDownRefresh(() => {
receiptjob.value.refresh() receiptjob.value.refresh()
}) })

6
src/pages/inventoryMove/job/okToScrapMoveJob.vue

@ -1,6 +1,6 @@
<template> <template>
<view class="page-wraper"> <view class="page-wraper">
<comMoveJob ref="receiptjob" businessTypeCode="OktoScrap"> </comMoveJob> <comMoveJob :title="title" ref="receiptjob" businessTypeCode="OktoScrap"> </comMoveJob>
</view> </view>
</template> </template>
@ -10,6 +10,7 @@ import { onShow, onNavigationBarButtonTap, onReady, onReachBottom, onPullDownRef
import comMoveJob from '@/pages/inventoryMove/coms/comMoveJob.vue' import comMoveJob from '@/pages/inventoryMove/coms/comMoveJob.vue'
const receiptjob = ref() const receiptjob = ref()
const title = ref('')
onShow(() => { onShow(() => {
nextTick(() => { nextTick(() => {
if (receiptjob.value != undefined) { if (receiptjob.value != undefined) {
@ -17,6 +18,9 @@ onShow(() => {
} }
}) })
}) })
onLoad((option) => {
title.value = option.title
})
onPullDownRefresh(() => { onPullDownRefresh(() => {
receiptjob.value.refresh() receiptjob.value.refresh()
}) })

6
src/pages/inventoryMove/job/scrapToHoldMoveJob.vue

@ -1,6 +1,6 @@
<template> <template>
<view class="page-wraper"> <view class="page-wraper">
<comMoveJob ref="receiptjob" businessTypeCode="ScrapToHold"> </comMoveJob> <comMoveJob :title="title" ref="receiptjob" businessTypeCode="ScrapToHold"> </comMoveJob>
</view> </view>
</template> </template>
@ -10,6 +10,7 @@ import { onShow, onNavigationBarButtonTap, onReady, onReachBottom, onPullDownRef
import comMoveJob from '@/pages/inventoryMove/coms/comMoveJob.vue' import comMoveJob from '@/pages/inventoryMove/coms/comMoveJob.vue'
const receiptjob = ref() const receiptjob = ref()
const title = ref('')
onShow(() => { onShow(() => {
nextTick(() => { nextTick(() => {
if (receiptjob.value != undefined) { if (receiptjob.value != undefined) {
@ -17,6 +18,9 @@ onShow(() => {
} }
}) })
}) })
onLoad((option) => {
title.value = option.title
})
onPullDownRefresh(() => { onPullDownRefresh(() => {
receiptjob.value.refresh() receiptjob.value.refresh()
}) })

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

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

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

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

Loading…
Cancel
Save