抄表周期及详情
This commit is contained in:
@@ -2,7 +2,7 @@ export interface ElectricityDeviceVO {
|
||||
/**
|
||||
* id
|
||||
*/
|
||||
id: string | number;
|
||||
id: string;
|
||||
|
||||
/**
|
||||
* 设备编码
|
||||
@@ -29,14 +29,14 @@ export interface ElectricityDeviceVO {
|
||||
/**
|
||||
*
|
||||
*/
|
||||
openid: string | number;
|
||||
openid: string;
|
||||
}
|
||||
|
||||
export interface ElectricityDeviceForm extends BaseEntity {
|
||||
/**
|
||||
* id
|
||||
*/
|
||||
id?: string | number;
|
||||
id?: string;
|
||||
|
||||
/**
|
||||
* 设备编码
|
||||
|
||||
63
src/api/system/SdbPayRecordMain/index.ts
Normal file
63
src/api/system/SdbPayRecordMain/index.ts
Normal file
@@ -0,0 +1,63 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { PayRecordListVO, PayRecordListForm, PayRecordListQuery } from './type';
|
||||
|
||||
/**
|
||||
* 查询抄表周期明细列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const listPayRecordList = (query?: PayRecordListQuery): AxiosPromise<PayRecordListVO[]> => {
|
||||
return request({
|
||||
url: '/payRecordList/payRecordList/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询抄表周期明细详细
|
||||
* @param id
|
||||
*/
|
||||
export const getPayRecordList = (id: string | number): AxiosPromise<PayRecordListVO> => {
|
||||
return request({
|
||||
url: '/payRecordList/payRecordList/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增抄表周期明细
|
||||
* @param data
|
||||
*/
|
||||
export const addPayRecordList = (data: PayRecordListForm) => {
|
||||
return request({
|
||||
url: '/payRecordList',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改抄表周期明细
|
||||
* @param data
|
||||
*/
|
||||
export const updatePayRecordList = (data: PayRecordListForm) => {
|
||||
return request({
|
||||
url: '/payRecordList',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除抄表周期明细
|
||||
* @param id
|
||||
*/
|
||||
export const delPayRecordList = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/payRecordList/payRecordList/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
181
src/api/system/SdbPayRecordMain/type.ts
Normal file
181
src/api/system/SdbPayRecordMain/type.ts
Normal file
@@ -0,0 +1,181 @@
|
||||
export interface PayRecordListVO {
|
||||
/**
|
||||
* 抄表周期明细id
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 抄表周期id
|
||||
*/
|
||||
recordId: string | number;
|
||||
|
||||
/**
|
||||
* 房间号
|
||||
*/
|
||||
housenumname: string;
|
||||
|
||||
/**
|
||||
* 收费项目 0电费 1水费
|
||||
*/
|
||||
payType: string;
|
||||
|
||||
/**
|
||||
* 抄表月份
|
||||
*/
|
||||
recordMonth: string;
|
||||
|
||||
/**
|
||||
* 开始时间
|
||||
*/
|
||||
startTime: string;
|
||||
|
||||
/**
|
||||
* 结束时间
|
||||
*/
|
||||
endTime: string;
|
||||
|
||||
/**
|
||||
* 本期用度
|
||||
*/
|
||||
currentCost: number;
|
||||
|
||||
/**
|
||||
* 费用合计
|
||||
*/
|
||||
totalCost: number;
|
||||
|
||||
/**
|
||||
* 设备编号
|
||||
*/
|
||||
deviceCode: string;
|
||||
|
||||
/**
|
||||
* 设备类型 0电表 1水表
|
||||
*/
|
||||
deviceType: string;
|
||||
}
|
||||
|
||||
export interface PayRecordListForm extends BaseEntity {
|
||||
villageName: string;
|
||||
houseName: string;
|
||||
residentName: string;
|
||||
residentCode: string;
|
||||
gender: string;
|
||||
phone: string;
|
||||
startRead: string;
|
||||
endRead: string;
|
||||
price: string;
|
||||
|
||||
/**
|
||||
* 抄表周期明细id
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 抄表周期id
|
||||
*/
|
||||
recordId?: string | number;
|
||||
|
||||
/**
|
||||
* 房间号
|
||||
*/
|
||||
housenumname?: string;
|
||||
|
||||
/**
|
||||
* 收费项目 0电费 1水费
|
||||
*/
|
||||
payType?: string;
|
||||
|
||||
/**
|
||||
* 抄表月份
|
||||
*/
|
||||
recordMonth?: string;
|
||||
|
||||
/**
|
||||
* 开始时间
|
||||
*/
|
||||
startTime?: string;
|
||||
|
||||
/**
|
||||
* 结束时间
|
||||
*/
|
||||
endTime?: string;
|
||||
|
||||
/**
|
||||
* 本期用度
|
||||
*/
|
||||
currentCost?: number;
|
||||
|
||||
/**
|
||||
* 费用合计
|
||||
*/
|
||||
totalCost?: number;
|
||||
|
||||
/**
|
||||
* 设备编号
|
||||
*/
|
||||
deviceCode?: string;
|
||||
|
||||
/**
|
||||
* 设备类型 0电表 1水表
|
||||
*/
|
||||
deviceType?: string;
|
||||
}
|
||||
|
||||
export interface PayRecordListQuery extends PageQuery {
|
||||
/**
|
||||
* 抄表周期id
|
||||
*/
|
||||
recordId?: string | number;
|
||||
|
||||
/**
|
||||
* 房间号
|
||||
*/
|
||||
houseName?: string;
|
||||
residentName?: string;
|
||||
paycordName?: string;
|
||||
/**
|
||||
* 收费项目 0电费 1水费
|
||||
*/
|
||||
payType?: string;
|
||||
|
||||
/**
|
||||
* 抄表月份
|
||||
*/
|
||||
recordMonth?: string;
|
||||
|
||||
/**
|
||||
* 开始时间
|
||||
*/
|
||||
startTime?: string;
|
||||
|
||||
/**
|
||||
* 结束时间
|
||||
*/
|
||||
endTime?: string;
|
||||
|
||||
/**
|
||||
* 本期用度
|
||||
*/
|
||||
currentCost?: number;
|
||||
|
||||
/**
|
||||
* 费用合计
|
||||
*/
|
||||
totalCost?: number;
|
||||
|
||||
/**
|
||||
* 设备编号
|
||||
*/
|
||||
deviceCode?: string;
|
||||
|
||||
/**
|
||||
* 设备类型 0电表 1水表
|
||||
*/
|
||||
deviceType?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
||||
@@ -18,6 +18,7 @@ export interface WaterDeviceVO {
|
||||
* 状态
|
||||
*/
|
||||
deleted: number;
|
||||
houseName: string;
|
||||
|
||||
/**
|
||||
*
|
||||
|
||||
@@ -14,3 +14,43 @@ export const listStock = (query?: any): AxiosPromise<any[]> => {
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询 库存查询 详情
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const listStockMain = (id?: string): AxiosPromise<any[]> => {
|
||||
return request({
|
||||
url: '/stock/detail/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
export type StockUpdate = {
|
||||
materialId: string; // 物料id
|
||||
materialName: string; // 物料名称
|
||||
brand: string; // 型号
|
||||
model: string; // 品牌
|
||||
unit: string; // 单位
|
||||
costPrice: string; // 成本价
|
||||
stockNum: string; // 库存数量
|
||||
};
|
||||
type StockUpdateForm = {
|
||||
materialId: string; // 物料id
|
||||
costPrice: string; // 成本价
|
||||
stockNum: string; // 库存数量
|
||||
};
|
||||
|
||||
/**
|
||||
* 更新库存信息
|
||||
* @param data - 库存更新表单数据,可选参数
|
||||
* @returns 返回一个 Axios Promise,解析为任意类型的数组
|
||||
*/
|
||||
export const listStockUpdate = (data?: StockUpdateForm): AxiosPromise<any[]> => {
|
||||
return request({
|
||||
url: '/stock/update?materialId=' + data?.materialId + '&stockNum=' + data?.stockNum,
|
||||
method: 'PUT'
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user