7/17 添加公区收益
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { ResidentVO, ResidentForm, ResidentQuery } from '@/api/system/resident/type';
|
||||
import { ResidentVO, ResidentForm, ResidentQuery } from '@/api/system/residentReviewProcess/resident/type';
|
||||
|
||||
/**
|
||||
* 查询住户管理列表
|
||||
63
src/api/system/revenueNotice/index.ts
Normal file
63
src/api/system/revenueNotice/index.ts
Normal file
@@ -0,0 +1,63 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { RevenueNoticeVO, RevenueNoticeForm, RevenueNoticeQuery } from './type';
|
||||
|
||||
/**
|
||||
* 查询公区收益通知列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const listRevenueNotice = (query?: RevenueNoticeQuery): AxiosPromise<RevenueNoticeVO[]> => {
|
||||
return request({
|
||||
url: '/revenueNotice/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询公区收益通知详细
|
||||
* @param noticeId
|
||||
*/
|
||||
export const getRevenueNotice = (noticeId: string | number): AxiosPromise<RevenueNoticeVO> => {
|
||||
return request({
|
||||
url: '/revenueNotice/' + noticeId,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增公区收益通知
|
||||
* @param data
|
||||
*/
|
||||
export const addRevenueNotice = (data: RevenueNoticeForm) => {
|
||||
return request({
|
||||
url: '/revenueNotice',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改公区收益通知
|
||||
* @param data
|
||||
*/
|
||||
export const updateRevenueNotice = (data: RevenueNoticeForm) => {
|
||||
return request({
|
||||
url: '/revenueNotice',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除公区收益通知
|
||||
* @param noticeId
|
||||
*/
|
||||
export const delRevenueNotice = (noticeId: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/revenueNotice/' + noticeId,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
140
src/api/system/revenueNotice/type.ts
Normal file
140
src/api/system/revenueNotice/type.ts
Normal file
@@ -0,0 +1,140 @@
|
||||
export interface RevenueNoticeVO {
|
||||
/**
|
||||
* 公告ID
|
||||
*/
|
||||
noticeId: string | number;
|
||||
|
||||
/**
|
||||
* 公告标题
|
||||
*/
|
||||
noticeTitle: string;
|
||||
|
||||
/**
|
||||
* 公告内容
|
||||
*/
|
||||
noticeContent: string;
|
||||
|
||||
/**
|
||||
* 作者
|
||||
*/
|
||||
author: string;
|
||||
|
||||
/**
|
||||
* 紧急程度 0=普通 1=紧急 2=非常紧急
|
||||
*/
|
||||
urgencyLevel: number;
|
||||
|
||||
/**
|
||||
* 发布状态 0=草稿 1=已发布
|
||||
*/
|
||||
publishStatus: number;
|
||||
|
||||
/**
|
||||
* 发布人
|
||||
*/
|
||||
publishBy: string;
|
||||
|
||||
/**
|
||||
* 发布日期
|
||||
*/
|
||||
publishTime: string;
|
||||
|
||||
/**
|
||||
* 所属小区id
|
||||
*/
|
||||
villageId: string | number;
|
||||
}
|
||||
|
||||
export interface RevenueNoticeForm extends BaseEntity {
|
||||
/**
|
||||
* 公告ID
|
||||
*/
|
||||
noticeId?: string | number;
|
||||
|
||||
/**
|
||||
* 公告标题
|
||||
*/
|
||||
noticeTitle?: string;
|
||||
|
||||
/**
|
||||
* 公告内容
|
||||
*/
|
||||
noticeContent?: string;
|
||||
|
||||
/**
|
||||
* 作者
|
||||
*/
|
||||
author?: string;
|
||||
|
||||
/**
|
||||
* 紧急程度 0=普通 1=紧急 2=非常紧急
|
||||
*/
|
||||
urgencyLevel?: number;
|
||||
|
||||
/**
|
||||
* 发布状态 0=草稿 1=已发布
|
||||
*/
|
||||
publishStatus?: number;
|
||||
|
||||
/**
|
||||
* 发布人
|
||||
*/
|
||||
publishBy?: string;
|
||||
|
||||
/**
|
||||
* 发布日期
|
||||
*/
|
||||
publishTime?: string;
|
||||
|
||||
/**
|
||||
* 所属小区id
|
||||
*/
|
||||
villageId?: string | number;
|
||||
}
|
||||
|
||||
export interface RevenueNoticeQuery extends PageQuery {
|
||||
/**
|
||||
* 公告标题
|
||||
*/
|
||||
noticeTitle?: string;
|
||||
|
||||
/**
|
||||
* 公告内容
|
||||
*/
|
||||
noticeContent?: string;
|
||||
|
||||
/**
|
||||
* 作者
|
||||
*/
|
||||
author?: string;
|
||||
|
||||
/**
|
||||
* 紧急程度 0=普通 1=紧急 2=非常紧急
|
||||
*/
|
||||
urgencyLevel?: number;
|
||||
|
||||
/**
|
||||
* 发布状态 0=草稿 1=已发布
|
||||
*/
|
||||
publishStatus?: number;
|
||||
|
||||
/**
|
||||
* 发布人
|
||||
*/
|
||||
publishBy?: string;
|
||||
|
||||
/**
|
||||
* 发布日期
|
||||
*/
|
||||
publishTime?: string;
|
||||
|
||||
/**
|
||||
* 所属小区id
|
||||
*/
|
||||
villageId?: string | number;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
||||
@@ -65,6 +65,33 @@ export const workSpaceIncomeTrendListApi = (
|
||||
}
|
||||
});
|
||||
};
|
||||
/**
|
||||
* 收费率统计
|
||||
* @returns {*}
|
||||
*/
|
||||
export const paymentRateApi = (
|
||||
startDate: string,
|
||||
endDate: string
|
||||
): Promise<{
|
||||
data: {
|
||||
'receivableAmount': string;
|
||||
'receivablePercent': string;
|
||||
'receivedAmount': string;
|
||||
'receivedPercent': string;
|
||||
'unpaidAmount': string;
|
||||
'unpaidPercent': string;
|
||||
};
|
||||
}> => {
|
||||
return request({
|
||||
url: '/workSpace/paymentRate',
|
||||
method: 'GET',
|
||||
params: {
|
||||
startDate: startDate,
|
||||
endDate: endDate
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询近一周支出趋势
|
||||
* @returns {*}
|
||||
|
||||
Reference in New Issue
Block a user