修改上报合计
parent
af77cdede9
commit
c3bae960db
|
|
@ -52,6 +52,10 @@ const props = defineProps({
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: true,
|
default: true,
|
||||||
},
|
},
|
||||||
|
isLotteryStore:{
|
||||||
|
type: Boolean,
|
||||||
|
default: false
|
||||||
|
}
|
||||||
})
|
})
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
getData()
|
getData()
|
||||||
|
|
@ -134,6 +138,7 @@ function arrayToObject(arr) {
|
||||||
const obj = {}
|
const obj = {}
|
||||||
arr.forEach((item) => {
|
arr.forEach((item) => {
|
||||||
obj[item.name] = item.value
|
obj[item.name] = item.value
|
||||||
|
if(item.name == 'store_id' && props.isLotteryStore) obj['is_lottery_store'] = item.is_lottery_store
|
||||||
})
|
})
|
||||||
return obj
|
return obj
|
||||||
}
|
}
|
||||||
|
|
@ -227,6 +232,7 @@ const storeConfirm = (e) => {
|
||||||
name: 'store_id',
|
name: 'store_id',
|
||||||
value: e.value[0].id,
|
value: e.value[0].id,
|
||||||
label: e.value[0].title,
|
label: e.value[0].title,
|
||||||
|
is_lottery_store: e.value[0].is_lottery_store,
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
selectMenu(parmas)
|
selectMenu(parmas)
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@
|
||||||
bgColor="#fff"
|
bgColor="#fff"
|
||||||
v-if="checkPermission(['admin'])"
|
v-if="checkPermission(['admin'])"
|
||||||
>
|
>
|
||||||
<StoreDown color="#333333" @change="storeChange" :isAll="false"></StoreDown>
|
<StoreDown isLotteryStore color="#333333" @change="storeChange" :isAll="false"></StoreDown>
|
||||||
</uv-sticky>
|
</uv-sticky>
|
||||||
|
|
||||||
<uv-form
|
<uv-form
|
||||||
|
|
@ -80,7 +80,7 @@
|
||||||
</uv-form-item>
|
</uv-form-item>
|
||||||
<uv-line color="#f5f5f5"></uv-line>
|
<uv-line color="#f5f5f5"></uv-line>
|
||||||
<uv-form-item
|
<uv-form-item
|
||||||
:label="`${store?.is_lottery_store ? '兑奖' : '支出'}合计`"
|
:label="`${isLotteryStore ? '兑奖' : '支出'}合计`"
|
||||||
prop="expenditure"
|
prop="expenditure"
|
||||||
>
|
>
|
||||||
<uv-input
|
<uv-input
|
||||||
|
|
@ -175,6 +175,7 @@ const userStore = useUserStore()
|
||||||
|
|
||||||
const userInfo = computed(() => userStore.userInfo || {})
|
const userInfo = computed(() => userStore.userInfo || {})
|
||||||
const store = computed(() => userInfo.value.store)
|
const store = computed(() => userInfo.value.store)
|
||||||
|
const isLotteryStore = computed(() => shoreInfo.value.is_lottery_store)
|
||||||
|
|
||||||
const form = reactive({
|
const form = reactive({
|
||||||
date: endDate,
|
date: endDate,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue