修改上报合计

main
ihzero 2024-06-06 23:18:04 +08:00
parent af77cdede9
commit c3bae960db
2 changed files with 9 additions and 2 deletions

View File

@ -52,6 +52,10 @@ const props = defineProps({
type: Boolean,
default: true,
},
isLotteryStore:{
type: Boolean,
default: false
}
})
onMounted(() => {
getData()
@ -134,6 +138,7 @@ function arrayToObject(arr) {
const obj = {}
arr.forEach((item) => {
obj[item.name] = item.value
if(item.name == 'store_id' && props.isLotteryStore) obj['is_lottery_store'] = item.is_lottery_store
})
return obj
}
@ -227,6 +232,7 @@ const storeConfirm = (e) => {
name: 'store_id',
value: e.value[0].id,
label: e.value[0].title,
is_lottery_store: e.value[0].is_lottery_store,
},
]
selectMenu(parmas)

View File

@ -7,7 +7,7 @@
bgColor="#fff"
v-if="checkPermission(['admin'])"
>
<StoreDown color="#333333" @change="storeChange" :isAll="false"></StoreDown>
<StoreDown isLotteryStore color="#333333" @change="storeChange" :isAll="false"></StoreDown>
</uv-sticky>
<uv-form
@ -80,7 +80,7 @@
</uv-form-item>
<uv-line color="#f5f5f5"></uv-line>
<uv-form-item
:label="`${store?.is_lottery_store ? '兑奖' : '支出'}合计`"
:label="`${isLotteryStore ? '兑奖' : '支出'}合计`"
prop="expenditure"
>
<uv-input
@ -175,6 +175,7 @@ const userStore = useUserStore()
const userInfo = computed(() => userStore.userInfo || {})
const store = computed(() => userInfo.value.store)
const isLotteryStore = computed(() => shoreInfo.value.is_lottery_store)
const form = reactive({
date: endDate,