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) {
uni.setNavigationBarTitle({
title: `${option.title}详情`
})
this.id = option.id
if (this.id != undefined) {
//

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

@ -63,6 +63,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()
@ -73,6 +74,9 @@ onShow(() => {
getList('refresh')
})
})
onLoad((option) => {
title.value = option.title
})
onReady(() => {
detailOptions.value = getDetailOption()
detailGiveupOptions.value = getDetailGiveupOption()
@ -152,7 +156,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'
@ -166,7 +170,7 @@ const getList = (type) => {
uni.stopPullDownRefresh()
}
loadingType.value = ''
updateTitle('盘点')
updateTitle(title.value)
uni.hideLoading()
showMessage(error)
})
@ -175,12 +179,12 @@ const openJobDetail = (item) => {
//
if (item.isOpenCount == 'TRUE') {
uni.navigateTo({
url: `./countLightDetail?id=${item.id}&status=${item.status}`
url: `./countLightDetail?id=${item.id}&status=${item.status}&title=${title.value}`
})
} else {
//
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()
onLoad((option) => {
uni.setNavigationBarTitle({
title: `${option.title}详情`
})
id.value = option.id
if (id.value != undefined) {
//

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

@ -37,7 +37,11 @@ const props = defineProps({
businessTypeCode: {
type: String,
default: 'Move'
} //
}, //
title: {
type: String,
default: ''
}
})
const jobList = ref([])
@ -65,20 +69,20 @@ onMounted(() => {
const updateTitle = () => {
let title = ''
let name = ''
if (props.businessTypeCode == 'Move') {
name = '库存转移'
} else if (props.businessTypeCode == 'HoldToOk') {
name = '隔离转合格'
} else if (props.businessTypeCode == 'HoldToScrap') {
name = '隔离转报废'
} else if (props.businessTypeCode == 'OkToHold') {
name = '合格转隔离'
} else if (props.businessTypeCode == 'OktoScrap') {
name = '合格转报废'
} else if (props.businessTypeCode == 'ScrapToHold') {
name = '报废转隔离'
}
const name = props.title
// if (props.businessTypeCode == 'Move') {
// name = ''
// } else if (props.businessTypeCode == 'HoldToOk') {
// name = ''
// } else if (props.businessTypeCode == 'HoldToScrap') {
// name = ''
// } else if (props.businessTypeCode == 'OkToHold') {
// name = ''
// } else if (props.businessTypeCode == 'OktoScrap') {
// name = ''
// } else if (props.businessTypeCode == 'ScrapToHold') {
// name = ''
// }
// titleName.value = name
if (totalCount.value > 0) {
title = `${name}(${totalCount.value})`
@ -158,7 +162,7 @@ const getList = (type) => {
const openJobDetail = (item) => {
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: {
type: String,
default: 'Move'
} //
}, //
myTitle: {
type: String,
default: ''
}
})
const fromLocationCode = ref('')
const fromLocationInfo = ref({})
@ -107,36 +111,37 @@ onMounted(() => {
const initData = () => {
if (businessTypeCode.value == 'Move') {
title.value = '库存转移记录'
// title.value = ''
toInventoryStatus.value = ''
toLocationCode.value = ''
isShowEditLocation.value = true
} else if (businessTypeCode.value == 'HoldToOk') {
title.value = '隔离转合格记录'
// title.value = ''
toInventoryStatus.value = 'OK'
toLocationCode.value = ''
isShowEditLocation.value = true
} else if (businessTypeCode.value == 'HoldToScrap') {
title.value = '隔离转报废记录'
// title.value = ''
toInventoryStatus.value = 'SCRAP'
toLocationCode.value = ''
// this.toLocationCode = "SCRAP"
} else if (businessTypeCode.value == 'OkToHold') {
title.value = '合格转隔离记录'
// title.value = ''
toInventoryStatus.value = 'HOLD'
toLocationCode.value = ''
// this.toLocationCode = "HOLD"
} else if (businessTypeCode.value == 'OkToScrap') {
title.value = '合格转报废记录'
// title.value = ''
toInventoryStatus.value = 'SCRAP'
toLocationCode.value = ''
// this.toLocationCode = "SCRAP"
} else if (businessTypeCode.value == 'ScrapToHold') {
title.value = '报废转隔离记录'
// title.value = ''
toInventoryStatus.value = 'HOLD'
// this.toLocationCode = "HOLD"
toLocationCode.value = ''
}
title.value = myTitle.value
uni.setNavigationBarTitle({
title: title.value
})

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

@ -1,11 +1,17 @@
<template>
<view class="page-wraper">
<comMoveRecord businessTypeCode="HoldToOk"> </comMoveRecord>
<comMoveRecord :myTitle="title" businessTypeCode="HoldToOk"> </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/holdToScrapRecord.vue

@ -1,11 +1,17 @@
<template>
<view class="page-wraper">
<comMoveRecord businessTypeCode="HoldToScrap"> </comMoveRecord>
<comMoveRecord :myTitle="title" businessTypeCode="HoldToScrap"> </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>

Loading…
Cancel
Save