feat(dict): 添加价格类型字典并优化存储日志界面

This commit is contained in:
zxy 2026-04-02 15:33:35 +08:00
parent d38aaf69d1
commit 643eae576b
2 changed files with 10 additions and 7 deletions

View File

@ -308,5 +308,6 @@ export enum DICT_TYPE {
HELI_FOR_MAT_TYPE = 'for_mat_type', // 物料类型
HELI_PRICE_TYPE = 'price_type', // 价格类型
}

View File

@ -46,7 +46,7 @@
v-model="queryParams.stockType"
placeholder="请选择单据类型"
clearable
class="!w-260px"
class="!w-280px"
>
<el-option
v-for="item in HeliStockTypeDict"
@ -188,11 +188,11 @@
</template>
</template>
</el-table-column>
<el-table-column label="价格类型" align="center" prop="priceType" min-width="150">
<el-table-column label="价格类型" align="center" prop="priceType" min-width="190">
<template #default="scope">
<el-select v-model="scope.row.priceType" placeholder="请选择" class="!w-full" clearable>
<el-option
v-for="item in priceTypeOptions"
v-for="item in getIntDictOptions(DICT_TYPE.HELI_PRICE_TYPE)"
:key="item.value"
:label="item.label"
:value="item.value"
@ -265,10 +265,6 @@ defineOptions({ name: 'Xzdstoragelog' })
const whList = ref([])
const multipleSelection = ref([])
const priceTypeOptions = ref([
{ value: '1|临时暂估价', label: '1|临时暂估价' },
{ value: '3|实价', label: '3|实价' }
])
const message = useMessage() //
const { t } = useI18n() //
const exportLoading = ref(false) //
@ -308,6 +304,12 @@ const getList = async () => {
const data = await StorageLogApi.getStorageLogPage(queryParams)
list.value = data.list
total.value = data.total
// 1|
list.value.forEach((item) => {
if (!item.priceType) {
item.priceType = '1|临时暂估价'
}
})
} finally {
loading.value = false
}