diff --git a/apps/web-antd/src/api/property/meter/lightInfo/index.ts b/apps/web-antd/src/api/property/energyManagement/lightInfo/index.ts similarity index 100% rename from apps/web-antd/src/api/property/meter/lightInfo/index.ts rename to apps/web-antd/src/api/property/energyManagement/lightInfo/index.ts diff --git a/apps/web-antd/src/api/property/meter/lightInfo/model.d.ts b/apps/web-antd/src/api/property/energyManagement/lightInfo/model.d.ts similarity index 100% rename from apps/web-antd/src/api/property/meter/lightInfo/model.d.ts rename to apps/web-antd/src/api/property/energyManagement/lightInfo/model.d.ts diff --git a/apps/web-antd/src/api/property/meter/meterInfo/index.ts b/apps/web-antd/src/api/property/energyManagement/meterInfo/index.ts similarity index 100% rename from apps/web-antd/src/api/property/meter/meterInfo/index.ts rename to apps/web-antd/src/api/property/energyManagement/meterInfo/index.ts diff --git a/apps/web-antd/src/api/property/meter/meterInfo/model.d.ts b/apps/web-antd/src/api/property/energyManagement/meterInfo/model.d.ts similarity index 100% rename from apps/web-antd/src/api/property/meter/meterInfo/model.d.ts rename to apps/web-antd/src/api/property/energyManagement/meterInfo/model.d.ts diff --git a/apps/web-antd/src/views/property/costManagement/costMeterWater/costMeterWater-modal.vue b/apps/web-antd/src/views/property/costManagement/costMeterWater/costMeterWater-modal.vue index 4a0c76fc..6446d59e 100644 --- a/apps/web-antd/src/views/property/costManagement/costMeterWater/costMeterWater-modal.vue +++ b/apps/web-antd/src/views/property/costManagement/costMeterWater/costMeterWater-modal.vue @@ -19,7 +19,7 @@ import { personList } from '#/api/property/resident/person'; const emit = defineEmits<{ reload: [] }>(); const costItemsOptions = ref([]); const meterTypeOptions = ref([]); -const isMeterType = ref(false); +const isMeterType = ref(false); //是否选择了费用类型 const isUpdate = ref(false); const title = computed(() => { return isUpdate.value ? $t('pages.common.edit') : $t('pages.common.add'); @@ -70,6 +70,7 @@ const schema = [ isMeterType.value = false; } else { isMeterType.value = true; + // 获取费用项目 const costItemsRes = await costItemSettingList({ pageSize: 1000000000, pageNum: 1, @@ -79,10 +80,11 @@ const schema = [ label: item.chargeItem, value: item.id, })); + // 获取抄表类型:水费字典为0,电费为1 const meterTypeRes = await meterReadingTypeList({ pageSize: 1000000000, pageNum: 1, - costType: value == '5' ? 0 : 1, + meterType: value == '5' ? '0' : '1', }); meterTypeOptions.value = (meterTypeRes?.rows || []).map((item) => ({ label: item.name, diff --git a/apps/web-antd/src/views/property/electricEnergy/elctricitySituation/floor-tree.vue b/apps/web-antd/src/views/property/electricEnergy/elctricitySituation/floor-tree.vue deleted file mode 100644 index f1582fce..00000000 --- a/apps/web-antd/src/views/property/electricEnergy/elctricitySituation/floor-tree.vue +++ /dev/null @@ -1,97 +0,0 @@ - - - - - diff --git a/apps/web-antd/src/views/property/meter/lightInfo/floor-tree.vue b/apps/web-antd/src/views/property/energyManagement/electricEnergy/components/floor-tree.vue similarity index 100% rename from apps/web-antd/src/views/property/meter/lightInfo/floor-tree.vue rename to apps/web-antd/src/views/property/energyManagement/electricEnergy/components/floor-tree.vue diff --git a/apps/web-antd/src/views/property/electricEnergy/elctricityCost/data.ts b/apps/web-antd/src/views/property/energyManagement/electricEnergy/elctricityCost/data.ts similarity index 100% rename from apps/web-antd/src/views/property/electricEnergy/elctricityCost/data.ts rename to apps/web-antd/src/views/property/energyManagement/electricEnergy/elctricityCost/data.ts diff --git a/apps/web-antd/src/views/property/electricEnergy/elctricityCost/index.vue b/apps/web-antd/src/views/property/energyManagement/electricEnergy/elctricityCost/index.vue similarity index 66% rename from apps/web-antd/src/views/property/electricEnergy/elctricityCost/index.vue rename to apps/web-antd/src/views/property/energyManagement/electricEnergy/elctricityCost/index.vue index 3bd9ad1d..6395afd6 100644 --- a/apps/web-antd/src/views/property/electricEnergy/elctricityCost/index.vue +++ b/apps/web-antd/src/views/property/energyManagement/electricEnergy/elctricityCost/index.vue @@ -1,14 +1,16 @@ diff --git a/apps/web-antd/src/views/property/electricEnergy/electricityQOQ/data.ts b/apps/web-antd/src/views/property/energyManagement/electricEnergy/electricityQOQ/data.ts similarity index 100% rename from apps/web-antd/src/views/property/electricEnergy/electricityQOQ/data.ts rename to apps/web-antd/src/views/property/energyManagement/electricEnergy/electricityQOQ/data.ts diff --git a/apps/web-antd/src/views/property/electricEnergy/electricityQOQ/index.vue b/apps/web-antd/src/views/property/energyManagement/electricEnergy/electricityQOQ/index.vue similarity index 65% rename from apps/web-antd/src/views/property/electricEnergy/electricityQOQ/index.vue rename to apps/web-antd/src/views/property/energyManagement/electricEnergy/electricityQOQ/index.vue index 468b4807..fb0939de 100644 --- a/apps/web-antd/src/views/property/electricEnergy/electricityQOQ/index.vue +++ b/apps/web-antd/src/views/property/energyManagement/electricEnergy/electricityQOQ/index.vue @@ -1,14 +1,14 @@ diff --git a/apps/web-antd/src/views/property/meter/lightInfo/data.ts b/apps/web-antd/src/views/property/energyManagement/lightInfo/data.ts similarity index 100% rename from apps/web-antd/src/views/property/meter/lightInfo/data.ts rename to apps/web-antd/src/views/property/energyManagement/lightInfo/data.ts diff --git a/apps/web-antd/src/views/property/energyManagement/lightInfo/floor-tree.vue b/apps/web-antd/src/views/property/energyManagement/lightInfo/floor-tree.vue new file mode 100644 index 00000000..a09da13c --- /dev/null +++ b/apps/web-antd/src/views/property/energyManagement/lightInfo/floor-tree.vue @@ -0,0 +1,81 @@ + + + diff --git a/apps/web-antd/src/views/property/meter/lightInfo/index.vue b/apps/web-antd/src/views/property/energyManagement/lightInfo/index.vue similarity index 95% rename from apps/web-antd/src/views/property/meter/lightInfo/index.vue rename to apps/web-antd/src/views/property/energyManagement/lightInfo/index.vue index a31dd952..cf1579ec 100644 --- a/apps/web-antd/src/views/property/meter/lightInfo/index.vue +++ b/apps/web-antd/src/views/property/energyManagement/lightInfo/index.vue @@ -2,7 +2,7 @@ import { TableSwitch } from "#/components/table" import { Page, useVbenDrawer, type VbenFormProps } from '@vben/common-ui' -import { getVxePopupContainer } from '@vben/utils'; +import { getVxePopupContainer } from '@vben/utils' import { ref } from 'vue' @@ -21,8 +21,8 @@ import { lightInfoList, lightInfoRemove, switchSingleLight, -} from '#/api/property/meter/lightInfo' -import type { LightInfoForm } from '#/api/property/meter/lightInfo/model' +} from '#/api/property/energyManagement/lightInfo' +import type { LightInfoForm } from '#/api/property/energyManagement/lightInfo/model' // 左边楼层用 const selectFloorId = ref([]) @@ -69,7 +69,7 @@ const gridOptions: VxeGridProps = { if (selectFloorId.value.length === 1) { formValues.floorId = selectFloorId.value[0] } else { - Reflect.deleteProperty(formValues, 'deptId') + Reflect.deleteProperty(formValues, 'floorId') } return await lightInfoList({ pageNum: page.currentPage, diff --git a/apps/web-antd/src/views/property/meter/lightInfo/lightInfo-drawer.vue b/apps/web-antd/src/views/property/energyManagement/lightInfo/lightInfo-drawer.vue similarity index 97% rename from apps/web-antd/src/views/property/meter/lightInfo/lightInfo-drawer.vue rename to apps/web-antd/src/views/property/energyManagement/lightInfo/lightInfo-drawer.vue index 7ca503dc..0aae990f 100644 --- a/apps/web-antd/src/views/property/meter/lightInfo/lightInfo-drawer.vue +++ b/apps/web-antd/src/views/property/energyManagement/lightInfo/lightInfo-drawer.vue @@ -7,10 +7,10 @@ import { cloneDeep, getPopupContainer, handleNode } from '@vben/utils' import { useVbenForm } from '#/adapter/form' import { communityTree } from '#/api/property/community' -import { lightInfoAdd, lightInfoInfo, lightInfoUpdate } from '#/api/property/meter/lightInfo' +import { lightInfoAdd, lightInfoInfo, lightInfoUpdate } from '#/api/property/energyManagement/lightInfo' import { defaultFormValueGetter, useBeforeCloseDiff } from '#/utils/popup' -import { drawerSchema } from './data'; +import { drawerSchema } from './data' const emit = defineEmits<{ reload: [] }>() diff --git a/apps/web-antd/src/views/property/meter/meterInfo/components/data.ts b/apps/web-antd/src/views/property/energyManagement/meterInfo/components/data.ts similarity index 100% rename from apps/web-antd/src/views/property/meter/meterInfo/components/data.ts rename to apps/web-antd/src/views/property/energyManagement/meterInfo/components/data.ts diff --git a/apps/web-antd/src/views/property/meter/meterInfo/components/meterInfo-modal.vue b/apps/web-antd/src/views/property/energyManagement/meterInfo/components/meterInfo-modal.vue similarity index 59% rename from apps/web-antd/src/views/property/meter/meterInfo/components/meterInfo-modal.vue rename to apps/web-antd/src/views/property/energyManagement/meterInfo/components/meterInfo-modal.vue index c9e1b93c..1288380c 100644 --- a/apps/web-antd/src/views/property/meter/meterInfo/components/meterInfo-modal.vue +++ b/apps/web-antd/src/views/property/energyManagement/meterInfo/components/meterInfo-modal.vue @@ -1,33 +1,33 @@ diff --git a/apps/web-antd/src/views/property/meter/meterInfo/gasMeterInfo/index.vue b/apps/web-antd/src/views/property/energyManagement/meterInfo/gasMeterInfo/index.vue similarity index 68% rename from apps/web-antd/src/views/property/meter/meterInfo/gasMeterInfo/index.vue rename to apps/web-antd/src/views/property/energyManagement/meterInfo/gasMeterInfo/index.vue index 950b20f6..f91cce45 100644 --- a/apps/web-antd/src/views/property/meter/meterInfo/gasMeterInfo/index.vue +++ b/apps/web-antd/src/views/property/energyManagement/meterInfo/gasMeterInfo/index.vue @@ -1,32 +1,32 @@ @@ -136,37 +136,26 @@ function handleDownloadExcel() {