From 1c11add746eea9d2c64f2c72e0a9f21ebf45039d Mon Sep 17 00:00:00 2001 From: Zy <1448159279@qq.com> Date: Mon, 10 Aug 2026 08:57:24 +0800 Subject: [PATCH] =?UTF-8?q?8/10=20=E6=96=B0=E5=A2=9E=E5=88=A0=E9=99=A4?= =?UTF-8?q?=E8=B4=A6=E5=8D=95=E5=8A=9F=E8=83=BD=EF=BC=8C=E6=94=B6=E8=B4=B9?= =?UTF-8?q?=E5=88=86=E7=B1=BB-=E5=85=B3=E8=81=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 4 +- src/api/system/ChargeType/index.ts | 36 ++++- src/api/system/ChargeType/type.ts | 17 +++ src/api/system/SdbCashier/index.ts | 8 + src/api/system/house/index.ts | 4 +- src/api/system/houseRental/type.ts | 1 + src/views/system/Sdb/ChargeType/index.vue | 168 +++++++++++++++++++-- src/views/system/Sdb/SdbCashier/index.vue | 43 ++++-- src/views/system/houseRental/index.vue | 6 +- src/views/workbench/components/weather.vue | 14 +- 10 files changed, 262 insertions(+), 39 deletions(-) diff --git a/.env.development b/.env.development index 2bd86fc..cd182d8 100644 --- a/.env.development +++ b/.env.development @@ -9,9 +9,9 @@ VITE_APP_ENV='development' # 开发环境 VITE_APP_BASE_API='/dev-api' # # 开发环境 接口代理地址 -VITE_APP_PROXY_API='http://192.168.1.222:8080' +#VITE_APP_PROXY_API='http://192.168.1.222:8080' # 开发环境 接口代理地址 -#VITE_APP_PROXY_API='http://192.168.1.6:8080' +VITE_APP_PROXY_API='http://192.168.1.6:8080' # 图片基础地址 VITE_IMG_URL='http://192.168.1.222:8080' diff --git a/src/api/system/ChargeType/index.ts b/src/api/system/ChargeType/index.ts index a0d3c59..4099047 100644 --- a/src/api/system/ChargeType/index.ts +++ b/src/api/system/ChargeType/index.ts @@ -1,6 +1,6 @@ import request from '@/utils/request'; import { AxiosPromise } from 'axios'; -import { ChargeTypeVO, ChargeTypeForm, ChargeTypeQuery } from './type'; +import { ChargeTypeVO, ChargeTypeForm, ChargeTypeQuery, ChargeTypeRelationQuery } from './type'; /** * 查询收费类型列表 @@ -61,3 +61,37 @@ export const delChargeType = (id: string | number | Array) => { method: 'delete' }); }; + +/** + * 查询收费类型关联列表 + * @param query + */ +export const getChargeTypeRelation = (query?: ChargeTypeRelationQuery) => { + return request({ + url: '/chargeType/relation/list', + method: 'get' + }); +}; + +/** + * 新增收费类型关联 + * @param data + */ +export const addChargeTypeRelation = (data: ChargeTypeRelationQuery) => { + return request({ + url: '/chargeType/relation', + method: 'POST', + data: data + }); +}; +/** + * 新增收费类型关联 + * @param data + */ +export const editChargeTypeRelation = (data: ChargeTypeRelationQuery) => { + return request({ + url: '/chargeType/relation', + method: 'PUT', + data: data + }); +}; diff --git a/src/api/system/ChargeType/type.ts b/src/api/system/ChargeType/type.ts index ffed686..6999c32 100644 --- a/src/api/system/ChargeType/type.ts +++ b/src/api/system/ChargeType/type.ts @@ -64,3 +64,20 @@ export interface ChargeType2Query extends PageQuery { */ params?: any; } + + + + +export interface ChargeTypeRelationQuery { + /** + * 主收费类型表id + */ + masterTypeId?: string; + /** + * 子收费类型表id + */ + slaveTypeIds?: string; + id?: string; + // 状态 0启用 1停用 + status?: string; +} diff --git a/src/api/system/SdbCashier/index.ts b/src/api/system/SdbCashier/index.ts index 0d59664..8bc4efd 100644 --- a/src/api/system/SdbCashier/index.ts +++ b/src/api/system/SdbCashier/index.ts @@ -77,6 +77,14 @@ export const billPrint = (data: { 'detailsIds': string[]; 'residentId': string } }); }; +// 删除账单 +export const billDelete = (ids: string | string[]) => { + return request({ + url: `/cash/bill/${ids}`, + method: 'DELETE' + }); +}; + export type BillPrintType = { 'totalAccount': string; 'residentName': string; diff --git a/src/api/system/house/index.ts b/src/api/system/house/index.ts index c72dc80..a8c59c8 100644 --- a/src/api/system/house/index.ts +++ b/src/api/system/house/index.ts @@ -5,11 +5,11 @@ import { addBuildingType, addHouseType, BuildingUnit, BuildingVo } from './type' // 楼栋--------------------------------------------------------------------------------------- /** 根据 小区id 和 类型 查询楼栋信息 */ -export function getBuildinglistAPI(): AxiosPromise { +export function getBuildinglistAPI(query = {}): AxiosPromise { return request({ url: '/building/byVillage', method: 'get', - params: {} + params: query }); } /** 获取所有楼栋 */ diff --git a/src/api/system/houseRental/type.ts b/src/api/system/houseRental/type.ts index 0dfa555..7a81431 100644 --- a/src/api/system/houseRental/type.ts +++ b/src/api/system/houseRental/type.ts @@ -124,6 +124,7 @@ export interface HouseRentalSigningVO { 'tenantPhone': string; 'chargeMode': string; 'chargeStandard': string; + 'contractName': string; 'contractStatus': string; 'leaseStartDate': string; 'leaseEndDate': string; diff --git a/src/views/system/Sdb/ChargeType/index.vue b/src/views/system/Sdb/ChargeType/index.vue index 05fadc2..85d04ba 100644 --- a/src/views/system/Sdb/ChargeType/index.vue +++ b/src/views/system/Sdb/ChargeType/index.vue @@ -20,16 +20,22 @@ @@ -70,15 +76,64 @@ + + + + + + + + +
+ + + +
+ +
+ +
+
+ + + +
+ +