问题修复
This commit is contained in:
parent
3d2d88b8fe
commit
73584e5a72
|
|
@ -9,6 +9,7 @@ const router = useRouter()
|
|||
const route = useRoute()
|
||||
|
||||
import imgSrc from '@/assets/img/logo.png'
|
||||
import { el } from 'element-plus/es/locale'
|
||||
|
||||
const handleSelect = (name: any, path: any) => {
|
||||
store.editcurrentMenuItem(name)
|
||||
|
|
@ -47,7 +48,12 @@ const menuList: any = computed(() => {
|
|||
})
|
||||
|
||||
const activeItem = computed(() => {
|
||||
return 'sourcingNeed'
|
||||
// return 'sourcingNeed'
|
||||
if (store.currentMenuItem) {
|
||||
return store.currentMenuItem
|
||||
} else {
|
||||
return 'sourcingNeed'
|
||||
}
|
||||
})
|
||||
router.push({
|
||||
name: activeItem.value,
|
||||
|
|
@ -55,15 +61,20 @@ router.push({
|
|||
|
||||
const onChange = (val: any) => {
|
||||
if (val == '承租方') {
|
||||
store.editcurrentMenuItem('sourcingNeed')
|
||||
router.push({
|
||||
name: 'sourcingNeed',
|
||||
})
|
||||
} else {
|
||||
store.editcurrentMenuItem('goodsManagement')
|
||||
router.push({
|
||||
name: 'goodsManagement',
|
||||
})
|
||||
}
|
||||
}
|
||||
onBeforeUnmount(() => {
|
||||
store.editcurrentMenuItem(null)
|
||||
})
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
|
|
|||
|
|
@ -364,8 +364,8 @@ const isOrderComplete = computed(() => {
|
|||
style="font-weight: bold; margin-top: 10px"
|
||||
v-if="props.orderStatus == 20"
|
||||
>
|
||||
{{ goods.takeOverTime.slice(0, 10) }}至{{
|
||||
goods.rentOverTime.slice(0, 10)
|
||||
{{ goods.takeOverTime?.slice(0, 10) }}至{{
|
||||
goods.rentOverTime?.slice(0, 10)
|
||||
}}
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -741,16 +741,16 @@ const costSubmit = () => {
|
|||
: ''
|
||||
"
|
||||
>
|
||||
{{ goods.rentBeginTime.slice(0, 10) }}至{{
|
||||
goods.rentEndTime.slice(0, 10)
|
||||
{{ goods.rentBeginTime?.slice(0, 10) }}至{{
|
||||
goods.rentEndTime?.slice(0, 10)
|
||||
}}
|
||||
</div>
|
||||
<div
|
||||
style="font-weight: bold; margin-top: 10px; font-size: 13px"
|
||||
v-if="item.orderStatus == 20"
|
||||
>
|
||||
{{ goods.takeOverTime.slice(0, 10) }}至{{
|
||||
goods.rentOverTime.slice(0, 10)
|
||||
{{ goods.takeOverTime?.slice(0, 10) }}至{{
|
||||
goods.rentOverTime?.slice(0, 10)
|
||||
}}
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -364,8 +364,8 @@ const isOrderComplete = computed(() => {
|
|||
style="font-weight: bold; margin-top: 10px"
|
||||
v-if="props.orderStatus == 20"
|
||||
>
|
||||
{{ goods.takeOverTime.slice(0, 10) }}至{{
|
||||
goods.rentOverTime.slice(0, 10)
|
||||
{{ goods.takeOverTime?.slice(0, 10) }}至{{
|
||||
goods.rentOverTime?.slice(0, 10)
|
||||
}}
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -1003,8 +1003,8 @@ const wordUrl = ref('')
|
|||
: ''
|
||||
"
|
||||
>
|
||||
{{ goods.rentBeginTime.slice(0, 10) }}至{{
|
||||
goods.rentEndTime.slice(0, 10)
|
||||
{{ goods.rentBeginTime?.slice(0, 10) }}至{{
|
||||
goods.rentEndTime?.slice(0, 10)
|
||||
}}
|
||||
</div>
|
||||
|
||||
|
|
@ -1012,8 +1012,8 @@ const wordUrl = ref('')
|
|||
style="font-weight: bold; margin-top: 10px; font-size: 13px"
|
||||
v-if="item.orderStatus == 20"
|
||||
>
|
||||
{{ goods.takeOverTime.slice(0, 10) }}至{{
|
||||
goods.rentOverTime.slice(0, 10)
|
||||
{{ goods.takeOverTime?.slice(0, 10) }}至{{
|
||||
goods.rentOverTime?.slice(0, 10)
|
||||
}}
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in New Issue