This commit is contained in:
@@ -62,15 +62,12 @@ const [BasicModal, modalApi] = useVbenModal({
|
||||
modalApi.modalLoading(true);
|
||||
const {id} = modalApi.getData() as { id?: number | string };
|
||||
isUpdate.value = !!id;
|
||||
|
||||
if (isUpdate.value && id) {
|
||||
record.value = await houseChargeInfo(id);
|
||||
if (record.value) {
|
||||
room.value = record.value.roomVo
|
||||
costItem.value = record.value.costItemsVo
|
||||
}
|
||||
await formApi.setValues(record.value);
|
||||
record.value = await houseChargeInfo(id);
|
||||
if (record.value) {
|
||||
room.value = record.value.roomVo
|
||||
costItem.value = record.value.costItemsVo
|
||||
}
|
||||
await formApi.setValues(record.value);
|
||||
await markInitialized();
|
||||
|
||||
modalApi.modalLoading(false);
|
||||
@@ -111,14 +108,15 @@ async function handleClosed() {
|
||||
<Descriptions v-if="record" size="small" :column="2"
|
||||
:labelStyle="{width:'80px'}">
|
||||
<DescriptionsItem label="费用编号">
|
||||
{{ costItem.id }}
|
||||
{{ costItem?.id }}
|
||||
</DescriptionsItem>
|
||||
<DescriptionsItem label="费用项目">
|
||||
{{ costItem.chargeItem }}
|
||||
{{ costItem?.chargeItem }}
|
||||
</DescriptionsItem>
|
||||
<DescriptionsItem label="费用类型">
|
||||
<component
|
||||
:is="renderDict(costItem.costType,'pro_expense_type')"
|
||||
v-if="costItem"
|
||||
:is="renderDict(costItem?.costType,'pro_expense_type')"
|
||||
/>
|
||||
</DescriptionsItem>
|
||||
<DescriptionsItem label="计费起始">
|
||||
@@ -128,13 +126,13 @@ async function handleClosed() {
|
||||
{{ room.roomNumber }}
|
||||
</DescriptionsItem>
|
||||
<DescriptionsItem label="面积(㎡)">
|
||||
{{ `${room.area} (套内面积:${room.insideInArea})` }}
|
||||
{{ `${room?.area} (套内面积:${room?.insideInArea})` }}
|
||||
</DescriptionsItem>
|
||||
<DescriptionsItem label="单价">
|
||||
{{ costItem.unitPrice }}
|
||||
{{ costItem?.unitPrice }}
|
||||
</DescriptionsItem>
|
||||
<DescriptionsItem label="附加费">
|
||||
{{ costItem.surcharge }}
|
||||
{{ costItem?.surcharge }}
|
||||
</DescriptionsItem>
|
||||
<DescriptionsItem label="应收金额" :span="2">
|
||||
<span style="font-size: 16px;font-weight: 600;color: red" v-if="record.amountReceivable">
|
||||
|
Reference in New Issue
Block a user