回筐逻辑修改

This commit is contained in:
liu
2026-08-14 23:47:49 +08:00
parent 4bdaf2a219
commit 7c3f6147ac
20 changed files with 325 additions and 342 deletions
+12 -15
View File
@@ -1,26 +1,23 @@
/** 门店回筐记录(压筐=生成账单自动写入只读;回筐=门店退回手动登记 */
/** 门店回筐记录(随账单生成:数量正数=压筐附加金额,负数=回筐抵扣金额 */
export default interface IContainerReturn {
id?: number;
store_id?: number;
/** 关联账单ID0=手动回筐登记) */
/** 关联账单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' },
};
-4
View File
@@ -14,10 +14,6 @@ export default interface IStore {
address?: string;
/** 回款周期(天) */
payment_cycle_days?: number;
/** 待回筐数量(生成账单压筐累加,回筐登记扣减) */
pending_box_num?: number;
/** 待回托盘数量 */
pending_tray_num?: number;
/** 总采购金额(只统计商品金额,账单支付后累加) */
total_purchase_amount?: string;
status?: number;