回筐逻辑修改
This commit is contained in:
@@ -1,26 +1,23 @@
|
||||
/** 门店回筐记录(压筐=生成账单自动写入只读;回筐=门店退回手动登记) */
|
||||
/** 门店压回筐记录(随账单生成:数量正数=压筐附加金额,负数=回筐抵扣金额) */
|
||||
export default interface IContainerReturn {
|
||||
id?: number;
|
||||
store_id?: number;
|
||||
/** 关联账单ID(0=手动回筐登记) */
|
||||
/** 关联账单ID */
|
||||
bill_id?: number;
|
||||
/** 类型:1压筐 2回筐 */
|
||||
type?: number;
|
||||
/** 压(回)筐数量(正数=压筐,负数=回筐) */
|
||||
box_num?: number;
|
||||
/** 压(回)托盘数量(正数=压筐,负数=回筐) */
|
||||
tray_num?: number;
|
||||
/** 记录日期(压筐=账单日期,回筐=退回日期) */
|
||||
return_date?: string;
|
||||
/** 周转筐单价(生成账单时快照) */
|
||||
box_price?: string;
|
||||
/** 周转托盘单价(生成账单时快照) */
|
||||
tray_price?: string;
|
||||
/** 抵扣(附加)金额(正=压筐附加,负=回筐抵扣) */
|
||||
amount?: string;
|
||||
operator_id?: number;
|
||||
remark?: string;
|
||||
created_at?: string;
|
||||
/** 列表接口附带 */
|
||||
store?: { id: number; name: string; pending_box_num?: number; pending_tray_num?: number } | null;
|
||||
bill?: { id: number; bill_no: string } | null;
|
||||
store?: { id: number; name: string } | null;
|
||||
bill?: { id: number; bill_no: string; bill_date?: string } | null;
|
||||
operator?: { id: number; nickname: string } | null;
|
||||
}
|
||||
|
||||
/** 回筐记录类型映射 */
|
||||
export const CONTAINER_TYPE_MAP: Record<number, { text: string; color: string }> = {
|
||||
1: { text: '压筐', color: 'processing' },
|
||||
2: { text: '回筐', color: 'success' },
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user