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/Payment/index.ts b/src/api/system/Payment/index.ts index d00d380..5f7f045 100644 --- a/src/api/system/Payment/index.ts +++ b/src/api/system/Payment/index.ts @@ -74,8 +74,18 @@ export interface PayMentMethod { 'wechatPercent': string; 'alipayAmount': string; 'alipayPercent': string; - 'offlineAmount': string; - 'offlinePercent': string; + 'yidangAmount': string; + 'yidangPercent': string; + 'cashAmount': string; + 'cashPercent': string; + 'unionPayAmount': string; + 'unionPayPercent': string; + 'transferAmount': string; + 'transferPercent': string; + 'depositOffsetAmount': string; + 'depositOffsetAmountPercent': string; + 'propertyOffsetAmount': string; + 'propertyOffsetAmountPercent': string; } // 缴费方式 export const payment_methodApi = (datetime?: string): AxiosPromise => { diff --git a/src/api/system/SdbCashier/index.ts b/src/api/system/SdbCashier/index.ts index 6251185..8bc4efd 100644 --- a/src/api/system/SdbCashier/index.ts +++ b/src/api/system/SdbCashier/index.ts @@ -77,9 +77,21 @@ 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; + 'payTypeSummary': { + 'payType': string; + 'payAmount': string; + }[]; 'detailsList': { 'detailsId': string; 'chargeItemName': string; diff --git a/src/api/system/houseRental/index.ts b/src/api/system/houseRental/index.ts index b8f7f69..c3f860a 100644 --- a/src/api/system/houseRental/index.ts +++ b/src/api/system/houseRental/index.ts @@ -1,6 +1,6 @@ import request from '@/utils/request'; import { AxiosPromise } from 'axios'; -import { HouseRentalVO, HouseRentalForm, HouseRentalQuery } from '@/api/system/houseRental/type'; +import { HouseRentalVO, HouseRentalForm, HouseRentalQuery, HouseRentalSigningVO } from '@/api/system/houseRental/type'; /** * 查询房屋租赁管理列表 @@ -103,7 +103,7 @@ export const changeHouseRedientStatus = (houseId: string): AxiosPromise => { +export const HouseRedientSign = (data: HouseRentalSigningVO): AxiosPromise => { return request({ url: `/houseRental/sign`, method: 'POST', 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/api/system/parking/index.ts b/src/api/system/parking/index.ts index 2612a48..6f73ec5 100644 --- a/src/api/system/parking/index.ts +++ b/src/api/system/parking/index.ts @@ -102,3 +102,25 @@ export const GetVillageListParking = (villageid: string, houseId: string = undef } }); }; + +/** + * 查询 车位持有人信息 + * @returns {*} + * @param residentId + */ +export const getParkingResidentInfo = ( + residentId: string +): AxiosPromise<{ + id: ''; + name: ''; + type: ''; + status: ''; + idCard: ''; + phone: ''; + houseName: ''; +}> => { + return request({ + url: `/car/holder/${residentId}`, + method: 'GET' + }); +}; diff --git a/src/components/Holder/index.vue b/src/components/Holder/index.vue index e2fee56..3c5e39e 100644 --- a/src/components/Holder/index.vue +++ b/src/components/Holder/index.vue @@ -12,14 +12,14 @@ -