first version
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
/** 门店对账单明细 */
|
||||
export interface IStatementItem {
|
||||
id?: number;
|
||||
statement_id?: number;
|
||||
order_id?: number;
|
||||
order_item_id?: number;
|
||||
product_id?: number;
|
||||
product_name?: string;
|
||||
price?: string;
|
||||
quantity?: string;
|
||||
weight?: string;
|
||||
amount?: string;
|
||||
is_reconciled?: number;
|
||||
store_remark?: string;
|
||||
}
|
||||
|
||||
/** 门店对账单 */
|
||||
export default interface IStatement {
|
||||
id?: number;
|
||||
statement_no?: string;
|
||||
store_id?: number;
|
||||
store?: { id: number; name: string };
|
||||
period_start?: string;
|
||||
period_end?: string;
|
||||
total_amount?: string;
|
||||
/** 回款周期快照(天) */
|
||||
payment_cycle_days?: number;
|
||||
/** 应结算日期 = period_end + 回款周期 */
|
||||
settlement_date?: string;
|
||||
/** 0待对账 1已对账 2已结算 */
|
||||
status?: number;
|
||||
reconciled_at?: string;
|
||||
settled_at?: string;
|
||||
remark?: string;
|
||||
items?: IStatementItem[];
|
||||
created_at?: string;
|
||||
}
|
||||
|
||||
export const STATEMENT_STATUS_MAP: Record<number, { text: string; color: string }> = {
|
||||
0: { text: '待对账', color: 'default' },
|
||||
1: { text: '已对账', color: 'processing' },
|
||||
2: { text: '已结算', color: 'success' },
|
||||
};
|
||||
Reference in New Issue
Block a user