feat(dict): 添加价格类型字典并优化存储日志界面
This commit is contained in:
parent
d38aaf69d1
commit
643eae576b
@ -308,5 +308,6 @@ export enum DICT_TYPE {
|
||||
|
||||
|
||||
HELI_FOR_MAT_TYPE = 'for_mat_type', // 物料类型
|
||||
HELI_PRICE_TYPE = 'price_type', // 价格类型
|
||||
|
||||
}
|
||||
|
||||
@ -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
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user