feat: paycondition
This commit is contained in:
parent
da8dc33b15
commit
810b8b96ba
7 changed files with 57 additions and 30 deletions
|
|
@ -24,8 +24,10 @@ export const useQuotationStore = defineStore('quotation-store', () => {
|
|||
const stats = ref<QuotationStats>({
|
||||
full: 0,
|
||||
split: 0,
|
||||
splitCustom: 0,
|
||||
billFull: 0,
|
||||
billSplit: 0,
|
||||
billSplitCustom: 0,
|
||||
});
|
||||
|
||||
async function getQuotationStats() {
|
||||
|
|
@ -47,7 +49,13 @@ export const useQuotationStore = defineStore('quotation-store', () => {
|
|||
async function getQuotationList(params?: {
|
||||
page?: number;
|
||||
pageSize?: number;
|
||||
payCondition?: 'Full' | 'Split' | 'BillFull' | 'BillSplit';
|
||||
payCondition?:
|
||||
| 'Full'
|
||||
| 'Split'
|
||||
| 'SplitCustom'
|
||||
| 'BillFull'
|
||||
| 'BillSplit'
|
||||
| 'BillSplitCustom';
|
||||
query?: string;
|
||||
}) {
|
||||
const res = await api.get<PaginationResult<Quotation>>(`/quotation`, {
|
||||
|
|
|
|||
|
|
@ -185,8 +185,10 @@ type ServiceRelation = {
|
|||
export type QuotationStats = {
|
||||
full: number;
|
||||
split: number;
|
||||
splitCustom: number;
|
||||
billFull: number;
|
||||
billSplit: number;
|
||||
billSplitCustom: number;
|
||||
};
|
||||
|
||||
export type Quotation = {
|
||||
|
|
@ -205,7 +207,13 @@ export type Quotation = {
|
|||
invoice: boolean;
|
||||
amount: number;
|
||||
}[];
|
||||
payCondition: 'Full' | 'Split' | 'BillFull' | 'BillSplit';
|
||||
payCondition:
|
||||
| 'Full'
|
||||
| 'Split'
|
||||
| 'SplitCustom'
|
||||
| 'BillFull'
|
||||
| 'BillSplit'
|
||||
| 'BillSplitCustom';
|
||||
date: string | Date;
|
||||
dueDate: string | Date;
|
||||
documentReceivePoint: string;
|
||||
|
|
@ -279,7 +287,13 @@ export type QuotationFull = {
|
|||
payBillDate: string | Date | null;
|
||||
paySplitCount: number | null;
|
||||
paySplit: { no: number; amount: number }[];
|
||||
payCondition: 'Full' | 'Split' | 'BillFull' | 'BillSplit';
|
||||
payCondition:
|
||||
| 'Full'
|
||||
| 'Split'
|
||||
| 'SplitCustom'
|
||||
| 'BillFull'
|
||||
| 'BillSplit'
|
||||
| 'BillSplitCustom';
|
||||
date: string | Date;
|
||||
dueDate: string | Date;
|
||||
documentReceivePoint: string;
|
||||
|
|
@ -334,7 +348,13 @@ export type QuotationPayload = {
|
|||
payBillDate?: Date | null;
|
||||
paySplit: { no: number; date: string | Date; amount: number }[];
|
||||
paySplitCount?: number | null; // int
|
||||
payCondition: 'Full' | 'Split' | 'BillFull' | 'BillSplit';
|
||||
payCondition:
|
||||
| 'Full'
|
||||
| 'Split'
|
||||
| 'SplitCustom'
|
||||
| 'BillFull'
|
||||
| 'BillSplit'
|
||||
| 'BillSplitCustom';
|
||||
dueDate: Date;
|
||||
documentReceivePoint: string;
|
||||
contactTel: string;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue