From 903c92fef0c427558dcaa8127b036848f97c0e84 Mon Sep 17 00:00:00 2001 From: Zy <1448159279@qq.com> Date: Fri, 24 Jul 2026 09:23:50 +0800 Subject: [PATCH] =?UTF-8?q?7/24=20=E6=94=B6=E9=93=B6=E5=8F=B0=20=20?= =?UTF-8?q?=E6=97=A5=E6=9C=9F=E7=AD=9B=E9=80=89=EF=BC=8C=E5=90=88=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/SdbCashier/index.ts | 2 + src/components/Holder/house.vue | 48 ++--- src/layout/components/Navbar.vue | 15 +- src/main.ts | 3 +- src/utils/money.ts | 14 +- src/utils/print.ts | 237 +++++-------------------- src/views/system/Sdb/SdbBill/index.vue | 40 ++++- src/views/system/cars/addCars.vue | 3 +- 8 files changed, 143 insertions(+), 219 deletions(-) diff --git a/src/api/system/SdbCashier/index.ts b/src/api/system/SdbCashier/index.ts index a605128..ed99743 100644 --- a/src/api/system/SdbCashier/index.ts +++ b/src/api/system/SdbCashier/index.ts @@ -22,6 +22,8 @@ export const cashQuery = (data: { residentName?: string; queryType: number }): A }; export type billlistType = { + actualAccount: string; + singleDiscountAmount: string; 'villageId': string; 'residentId': string; 'houseId': string; diff --git a/src/components/Holder/house.vue b/src/components/Holder/house.vue index d0f1f31..ccd4927 100644 --- a/src/components/Holder/house.vue +++ b/src/components/Holder/house.vue @@ -15,8 +15,8 @@
楼栋
- - + +
@@ -49,11 +49,19 @@
- 查询 + 查询 重置
- + @@ -70,15 +78,15 @@ @@ -176,7 +184,7 @@ const handleUserSelection = () => { const houseUseTypeList = ref([]); const isFetching = ref(false); // 获取列表 -function getlist() { +function getList() { isFetching.value = true; // 🔒 加锁:禁止 selection-change 更新数据 loading.value = true; listBillHouse(queryParams.value) @@ -195,39 +203,39 @@ function getlist() { } /** 楼栋列表 */ -const buildinglist = ref([]); +const buildingList = ref([]); /** 房屋列表 */ const unitlist = ref([]); /** 获取楼栋 列表 */ function handleChangeHouse() { getBuildinglistAPI().then((res) => { - buildinglist.value = res.data; + buildingList.value = res.data; }); } function handleClear() { queryParams.value.residentName = ''; - getlist(); + getList(); } function handleHouseUseChange() { - getlist(); + getList(); } /** 单元列表 */ -function handleChangebuilding(val: string) { +function handleChangeBuilding(val: string) { queryParams.value.unitNoId = null; unitlist.value = []; if (queryParams.value.buildingId) { getHouselistAPI(val).then((res) => { unitlist.value = res.data.units; - getlist(); + getList(); }); } - getlist(); + getList(); } function handleChangeUnit() { - getlist(); + getList(); } // ============================================== @@ -285,11 +293,11 @@ function resetQuery() { houseNo: '', residentName: '' }; - getlist(); + getList(); } // 退出 -function conback() { +function conBack() { dialog.value.dialogVisible = false; resetQuery(); } @@ -338,7 +346,7 @@ defineExpose({ }) as BillHouse ); } - getlist(); + getList(); dialog.value.dialogVisible = true; listHouseUseType_add_house().then((res) => { houseUseTypeList.value = res.data; @@ -356,7 +364,7 @@ defineExpose({ border: 1px solid #ccc; border-radius: 5px; padding: 0 10px; - .defaultbox { + .defaultBox { display: flex; align-items: center; justify-content: space-between; diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue index 56fb3ab..138b8d2 100644 --- a/src/layout/components/Navbar.vue +++ b/src/layout/components/Navbar.vue @@ -34,13 +34,13 @@