feat: 更新业务需求
This commit is contained in:
@@ -222,7 +222,7 @@ const [BasicModal, modalApi] = useVbenModal({
|
||||
data.roomId = data.roomId
|
||||
.split(',')
|
||||
.filter((id: string) => id.trim() !== '');
|
||||
data.area = data.sumPeices / data.peices;
|
||||
// data.area = data.sumPeices / data.peices;
|
||||
} else {
|
||||
isAdd.value = true;
|
||||
}
|
||||
|
@@ -542,6 +542,7 @@ async function handleConfirm() {
|
||||
: await clean_orderAdd(data);
|
||||
resetInitialized();
|
||||
emit('reload');
|
||||
currentUnitId.value = ''; //清空当前单位id
|
||||
modalApi.close();
|
||||
} catch (error) {
|
||||
console.error(error);
|
||||
@@ -553,6 +554,7 @@ async function handleConfirm() {
|
||||
async function handleClosed() {
|
||||
await formApi.resetForm();
|
||||
detailTable.value = []; //清空详情表格
|
||||
currentUnitId.value = ''; //清空当前单位id
|
||||
resetInitialized();
|
||||
}
|
||||
// 获取服务地址
|
||||
|
@@ -20,8 +20,11 @@ import type { CostItemSettingVO } from '#/api/property/costManagement/costItemSe
|
||||
import { getDictOptions } from '#/utils/dict';
|
||||
import { personList } from '#/api/property/resident/person';
|
||||
import { renderDictValue } from '#/utils/render';
|
||||
import {resident_unitInfo, resident_unitList} from "#/api/property/resident/unit";
|
||||
|
||||
import {
|
||||
resident_unitInfo,
|
||||
resident_unitList,
|
||||
} from '#/api/property/resident/unit';
|
||||
import dayjs from 'dayjs';
|
||||
const emit = defineEmits<{ reload: [] }>();
|
||||
|
||||
const isUpdate = ref(false);
|
||||
@@ -93,8 +96,12 @@ async function handleConfirm() {
|
||||
// getValues获取为一个readonly的对象 需要修改必须先深拷贝一次
|
||||
const data = cloneDeep(await formApi.getValues());
|
||||
if (data.chargeTime) {
|
||||
data.startTime = data.chargeTime+'-01 00:00:00';
|
||||
data.endTime = data.chargeTime+'-31 23:59:59';
|
||||
data.startTime = dayjs(data.chargeTime)
|
||||
.startOf('month')
|
||||
.format('YYYY-MM-DD HH:mm:ss');
|
||||
data.endTime = dayjs(data.chargeTime)
|
||||
.endOf('month')
|
||||
.format('YYYY-MM-DD HH:mm:ss');
|
||||
}
|
||||
await (isUpdate.value ? houseChargeUpdate(data) : houseChargeAdd(data));
|
||||
resetInitialized();
|
||||
@@ -157,7 +164,9 @@ async function initCostTypeOptions() {
|
||||
{
|
||||
componentProps: {
|
||||
// 费用类型不要保洁、会议、绿植
|
||||
options: getDictOptions('pro_expense_type').filter(item=>!(['1','3','4'].includes(item.value))),
|
||||
options: getDictOptions('pro_expense_type').filter(
|
||||
(item) => !['1', '3', '4'].includes(item.value),
|
||||
),
|
||||
onChange: async (value: string) => {
|
||||
if (value) {
|
||||
await queryCostItemOptions(value);
|
||||
@@ -246,9 +255,7 @@ async function queryRoomByUnit(unitId: string) {
|
||||
</div>
|
||||
</template>
|
||||
<template #area="slotProps">
|
||||
<div>
|
||||
{{slotProps.field.value}}(㎡)
|
||||
</div>
|
||||
<div>{{ slotProps.field.value }}(㎡)</div>
|
||||
</template>
|
||||
</BasicForm>
|
||||
</BasicModal>
|
||||
|
Reference in New Issue
Block a user