diff --git a/dist.7z b/dist.7z deleted file mode 100644 index 888ab27..0000000 Binary files a/dist.7z and /dev/null differ diff --git a/src/api/system/SdbBill/index.ts b/src/api/system/SdbBill/index.ts new file mode 100644 index 0000000..c1ca9bb --- /dev/null +++ b/src/api/system/SdbBill/index.ts @@ -0,0 +1,63 @@ +import request from '@/utils/request'; +import { AxiosPromise } from 'axios'; +import { BillVO, BillForm, BillQuery } from './type'; + +/** + * 查询账单管理列表 + * @param query + * @returns {*} + */ + +export const listBill = (query?: BillQuery): AxiosPromise => { + return request({ + url: '/bill/list', + method: 'get', + params: query + }); +}; + +/** + * 查询账单管理详细 + * @param id + */ +export const getBill = (id: string | number): AxiosPromise => { + return request({ + url: '/bill/' + id, + method: 'get' + }); +}; + +/** + * 新增账单管理 + * @param data + */ +export const addBill = (data: BillForm) => { + return request({ + url: '/bill', + method: 'post', + data: data + }); +}; + +/** + * 修改账单管理 + * @param data + */ +export const updateBill = (data: BillForm) => { + return request({ + url: '/bill', + method: 'put', + data: data + }); +}; + +/** + * 删除账单管理 + * @param id + */ +export const delBill = (id: string | number | Array) => { + return request({ + url: '/bill/' + id, + method: 'delete' + }); +}; diff --git a/src/api/system/SdbBill/type.ts b/src/api/system/SdbBill/type.ts new file mode 100644 index 0000000..0828cb3 --- /dev/null +++ b/src/api/system/SdbBill/type.ts @@ -0,0 +1,150 @@ +export interface BillVO { + /** + * 账单管理表id + */ + id: string; + + /** + * 账单编号 + */ + billCode: string; + + /** + * 收费项目id + */ + chargeItemId: string; + + /** + * 收费范围 0全体业主 1部分业主 + */ + chargeScope: string; + + /** + * 收费周期 0年 1月 2日 + */ + chargePeriod: string; + + /** + * 开始日期 + */ + startDate: string; + + /** + * 结束日期 + */ + endDate: string; + + /** + * 小区id + */ + villageId: number; + + /** + * 备注 + */ + remark: string; + + /** + * 创建时间 + */ + cerateTime: string; +} + +export interface BillForm extends BaseEntity { + /** + * 账单管理表id + */ + id?: string | number; + + /** + * 账单编号 + */ + billCode?: string; + + /** + * 收费项目id + */ + chargeItemId?: string | number; + + /** + * 收费范围 0全体业主 1部分业主 + */ + chargeScope?: string; + + /** + * 收费周期 0年 1月 2日 + */ + chargePeriod?: string; + + /** + * 开始日期 + */ + startDate?: string; + + /** + * 结束日期 + */ + endDate?: string; + + /** + * 小区id + */ + villageId?: string | number; + + /** + * 备注 + */ + remark?: string; + + /** + * 创建时间 + */ + cerateTime?: string; +} + +export interface BillQuery extends PageQuery { + /** + * 账单编号 + */ + billCode?: string; + + /** + * 收费项目id + */ + chargeItemId?: string | number; + + /** + * 收费范围 0全体业主 1部分业主 + */ + chargeScope?: string; + + /** + * 收费周期 0年 1月 2日 + */ + chargePeriod?: string; + + /** + * 开始日期 + */ + startDate?: string; + + /** + * 结束日期 + */ + endDate?: string; + + /** + * 小区id + */ + villageId?: string | number; + + /** + * 创建时间 + */ + cerateTime?: string; + + /** + * 日期范围参数 + */ + params?: any; +} diff --git a/src/api/system/SdbChargeItem/index.ts b/src/api/system/SdbChargeItem/index.ts index 7526c84..30413e3 100644 --- a/src/api/system/SdbChargeItem/index.ts +++ b/src/api/system/SdbChargeItem/index.ts @@ -61,3 +61,14 @@ export const delChargeItem = (id: string | number | Array) => { method: 'delete' }); }; + +/** + * 启停 收费项目 + * @param id + */ +export const changChargeItem = (data: { id: string; status: string }) => { + return request({ + url: '/chargeItem/', + method: 'PUT' + }); +}; diff --git a/src/api/system/SdbChargeItem/type.ts b/src/api/system/SdbChargeItem/type.ts index 6fee7d4..f86524d 100644 --- a/src/api/system/SdbChargeItem/type.ts +++ b/src/api/system/SdbChargeItem/type.ts @@ -2,7 +2,7 @@ export interface ChargeItemVO { /** * 收费项目管理表id */ - id: string | number; + id: string; /** * 项目名称 diff --git a/src/api/system/SdbElectricityDevice/index.ts b/src/api/system/SdbElectricityDevice/index.ts index b74bba3..139976c 100644 --- a/src/api/system/SdbElectricityDevice/index.ts +++ b/src/api/system/SdbElectricityDevice/index.ts @@ -61,3 +61,27 @@ export const delElectricityDevice = (id: string | number | Array { + return request({ + url: '/electricityDevice/generateBarCodee', + method: 'POST', + data: data + }); +}; + +/** + * 获取设备指定时间段的用电量 + * @param id + */ +export const getElectricityDeviceTimeRangeUsedWater = (data: { deviceCode: string; 'startTime': string; 'endTime': string }) => { + return request({ + url: '/electricityDevice/getEle', + method: 'POST', + data + }); +}; diff --git a/src/api/system/SdbElectricityDevice/type.ts b/src/api/system/SdbElectricityDevice/type.ts index 65d8087..d44d3c3 100644 --- a/src/api/system/SdbElectricityDevice/type.ts +++ b/src/api/system/SdbElectricityDevice/type.ts @@ -19,6 +19,8 @@ export interface ElectricityDeviceVO { */ deleted: number; + houseName: string; + /** * */ diff --git a/src/api/system/SdbPayRecord/index.ts b/src/api/system/SdbPayRecord/index.ts new file mode 100644 index 0000000..b49f1e4 --- /dev/null +++ b/src/api/system/SdbPayRecord/index.ts @@ -0,0 +1,63 @@ +import request from '@/utils/request'; +import { AxiosPromise } from 'axios'; +import { PayRecordVO, PayRecordForm, PayRecordQuery } from './type'; + +/** + * 查询 抄表周期管理列表 + * @param query + * @returns {*} + */ + +export const listPayRecord = (query?: PayRecordQuery): AxiosPromise => { + return request({ + url: '/payRecord/list', + method: 'get', + params: query + }); +}; + +/** + * 查询 抄表周期管理详细 + * @param id + */ +export const getPayRecord = (id: string | number): AxiosPromise => { + return request({ + url: '/payRecord/' + id, + method: 'get' + }); +}; + +/** + * 新增 抄表周期管理 + * @param data + */ +export const addPayRecord = (data: PayRecordForm) => { + return request({ + url: '/payRecord', + method: 'post', + data: data + }); +}; + +/** + * 修改 抄表周期管理 + * @param data + */ +export const updatePayRecord = (data: PayRecordForm) => { + return request({ + url: '/payRecord', + method: 'put', + data: data + }); +}; + +/** + * 删除 抄表周期管理 + * @param id + */ +export const delPayRecord = (id: string | number | Array) => { + return request({ + url: '/payRecord/' + id, + method: 'delete' + }); +}; diff --git a/src/api/system/SdbPayRecord/type.ts b/src/api/system/SdbPayRecord/type.ts new file mode 100644 index 0000000..4e1a084 --- /dev/null +++ b/src/api/system/SdbPayRecord/type.ts @@ -0,0 +1,110 @@ +export interface PayRecordVO { + /** + * 抄表周期管理表id + */ + id: string | number; + + /** + * 设备类型 0电表 1水表 + */ + deviceType: string; + + /** + * 房屋id + */ + houseId: string | number; + + /** + * 收费项目 0电费 1水费 + */ + payType: string; + + /** + * 抄表月份 + */ + recordMonth: string; + + /** + * 开始日期 + */ + startTime: string; + + /** + * 结束日期 + */ + endTime: string; +} + +export interface PayRecordForm extends BaseEntity { + /** + * 抄表周期管理表id + */ + id?: string | number; + + /** + * 设备类型 0电表 1水表 + */ + deviceType?: string; + + /** + * 房屋id + */ + houseId?: string | number; + + /** + * 收费项目 0电费 1水费 + */ + payType?: string; + + /** + * 抄表月份 + */ + recordMonth?: string; + + /** + * 开始日期 + */ + startTime?: string; + + /** + * 结束日期 + */ + endTime?: string; +} + +export interface PayRecordQuery extends PageQuery { + /** + * 设备类型 0电表 1水表 + */ + deviceType?: string; + + /** + * 房屋id + */ + houseId?: string | number; + + /** + * 收费项目 0电费 1水费 + */ + payType?: string; + + /** + * 抄表月份 + */ + recordMonth?: string; + + /** + * 开始日期 + */ + startTime?: string; + + /** + * 结束日期 + */ + endTime?: string; + + /** + * 日期范围参数 + */ + params?: any; +} diff --git a/src/api/system/SdbTopupRecord/type.ts b/src/api/system/SdbTopupRecord/type.ts index a7e9724..f7bbb4b 100644 --- a/src/api/system/SdbTopupRecord/type.ts +++ b/src/api/system/SdbTopupRecord/type.ts @@ -93,48 +93,14 @@ export interface TopupRecordForm extends BaseEntity { } export interface TopupRecordQuery extends PageQuery { - /** - * 用户ID - */ - userId?: string | number; - - /** - * 充值金额 - */ - rechargeAmount?: number; - - /** - * 充值时间 - */ - rechargeTime?: string; - /** * 设备ID */ deviceCode?: string; - - /** - * 订单表 - */ - orderId?: string | number; - /** * 1.电表 2.水表 */ type?: string; - /** - * 订单状态(0.未支付 1.已支付 2.支付中,3.支付失败 4.退款) - */ - status?: number; - - /** - * 0.待接收 1.已接收 - */ - getOver?: number; - - /** - * 日期范围参数 - */ - params?: any; + id?: string; } diff --git a/src/api/system/SdbWaterDevice/index.ts b/src/api/system/SdbWaterDevice/index.ts index 3ee4090..a83719f 100644 --- a/src/api/system/SdbWaterDevice/index.ts +++ b/src/api/system/SdbWaterDevice/index.ts @@ -61,3 +61,27 @@ export const delWaterDevice = (id: string | number | Array) => method: 'delete' }); }; + +/** + * 获取设备指定时间段的用水量 + * @param id + */ +export const getWaterDeviceTimeRangeUsedWater = (data: { deviceCode: string; 'startTime': string; 'endTime': string }) => { + return request({ + url: '/waterDevice/getEle', + method: 'POST', + data + }); +}; + +/** + * 生成条形码 + * @param id + */ +export const WaterDeviceMakerQrcode = (data: { deviceCode: string; id: string }[]) => { + return request({ + url: '/waterDevice/generateBarCode', + method: 'POST', + data: data + }); +}; diff --git a/src/api/system/SdbWaterDevice/type.ts b/src/api/system/SdbWaterDevice/type.ts index c7a85c3..839fe52 100644 --- a/src/api/system/SdbWaterDevice/type.ts +++ b/src/api/system/SdbWaterDevice/type.ts @@ -2,7 +2,7 @@ export interface WaterDeviceVO { /** * id */ - id: string | number; + id: string; /** * 水表设备编码 @@ -27,14 +27,14 @@ export interface WaterDeviceVO { /** * */ - openid: string | number; + openid: string; } export interface WaterDeviceForm extends BaseEntity { /** * id */ - id?: string | number; + id?: string; /** * 水表设备编码 @@ -86,7 +86,7 @@ export interface WaterDeviceQuery extends PageQuery { /** * */ - openid?: string | number; + openid?: string; /** * 日期范围参数 diff --git a/src/components/Holder/index.vue b/src/components/Holder/index.vue index f97a145..5fecfd6 100644 --- a/src/components/Holder/index.vue +++ b/src/components/Holder/index.vue @@ -56,7 +56,6 @@