同步6/16
This commit is contained in:
@@ -13,7 +13,7 @@ export type cashlist = {
|
||||
* @param post
|
||||
* @returns {*}
|
||||
*/
|
||||
export const cashQuery = (data: { residentName?: string }): AxiosPromise<cashlist[]> => {
|
||||
export const cashQuery = (data: { residentName?: string; queryType: number }): AxiosPromise<cashlist[]> => {
|
||||
return request({
|
||||
url: '/cash/residentList',
|
||||
method: 'post',
|
||||
@@ -25,6 +25,7 @@ export type billlistType = {
|
||||
'villageId': string;
|
||||
'residentId': string;
|
||||
'houseId': string;
|
||||
'detailsId': string;
|
||||
'houseName': string;
|
||||
'parkingId': string;
|
||||
'parkingName': string;
|
||||
@@ -38,11 +39,14 @@ export type billlistType = {
|
||||
'endDate': string;
|
||||
'money': string;
|
||||
'payStatus': string;
|
||||
amount: string;
|
||||
residentName: string;
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询账单列表
|
||||
* @param post
|
||||
* @returns {*}
|
||||
* @param data
|
||||
*/
|
||||
export const billQuery = (data: { residentId?: string; payStatus: '0' | '1' }): AxiosPromise<billlistType[]> => {
|
||||
return request({
|
||||
@@ -51,3 +55,37 @@ export const billQuery = (data: { residentId?: string; payStatus: '0' | '1' }):
|
||||
data: data
|
||||
});
|
||||
};
|
||||
export const billEdit = (data: { 'detailsId': string[]; 'payType': string; 'payStatus': string }): AxiosPromise<billlistType[]> => {
|
||||
return request({
|
||||
url: '/cash/billEdit',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
// 打印票据
|
||||
export const billPrint = (data: { 'detailsIds': string[]; 'residentId': string }): AxiosPromise<BillPrintType> => {
|
||||
return request({
|
||||
url: '/cash/print',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
export type BillPrintType = {
|
||||
'totalAccount': string;
|
||||
'residentName': string;
|
||||
'detailsList': {
|
||||
'detailsId': string;
|
||||
'chargeItemName': string;
|
||||
'billName': string;
|
||||
'detailsTime': string;
|
||||
'useCount': string;
|
||||
'account': string;
|
||||
'payType': string;
|
||||
'remark': string;
|
||||
}[];
|
||||
'printDate': string;
|
||||
'HouseName': string;
|
||||
'title': string;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user