同步6/16
This commit is contained in:
42
src/api/system/Payment/index.ts
Normal file
42
src/api/system/Payment/index.ts
Normal file
@@ -0,0 +1,42 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
|
||||
/**
|
||||
* 获取缴费方式,种类占比
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
export type IncomeStatsResponse = {
|
||||
'totalDue': string;
|
||||
'totalPaid': string;
|
||||
'totalUnpaid': string;
|
||||
'paidPercentage': string;
|
||||
'payWx': number;
|
||||
'payZfb': number;
|
||||
'payOffline': number;
|
||||
'totalPay': number;
|
||||
'feeTypeStats': feeTypeStats[];
|
||||
'dailyStats': {
|
||||
'statDate': string;
|
||||
'totalDue': string;
|
||||
'totalPaid': string;
|
||||
'totalUnpaid': string;
|
||||
}[];
|
||||
};
|
||||
export type feeTypeStats = {
|
||||
'feeType': number;
|
||||
'feeName': string;
|
||||
'totalDue': string;
|
||||
'totalPaid': string;
|
||||
'totalUnpaid': string;
|
||||
'paidPercentage': string;
|
||||
};
|
||||
export const income_statsApi = (datetime?: string): AxiosPromise<IncomeStatsResponse> => {
|
||||
return request({
|
||||
url: '/api/analysis/income/stats',
|
||||
method: 'get',
|
||||
params: {
|
||||
startDate: datetime
|
||||
}
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user