售后金额

This commit is contained in:
liu
2026-08-29 13:54:06 +08:00
parent c3ec416a77
commit d0ce897a0f
25 changed files with 175 additions and 58 deletions
+20 -5
View File
@@ -266,6 +266,18 @@ const BillPage: React.FC = () => {
</span>
),
},
{
title: '售后金额',
dataIndex: 'after_sale',
hideInForm: true,
hideInSearch: true,
align: 'center',
render: (_, record) => (
<Text type={Number(record.after_sale ?? 0) < 0 ? 'success' : undefined}>
¥{record.after_sale ?? '0.00'}
</Text>
),
},
{
title: '账单总金额',
dataIndex: 'total_amount',
@@ -361,7 +373,7 @@ const BillPage: React.FC = () => {
<div className="mb-5">
<Title level={3}></Title>
<Text type="secondary">
= + + /
= + + /+
Excel
</Text>
</div>
@@ -388,6 +400,12 @@ const BillPage: React.FC = () => {
{detail.bill.box_num}×¥{detail.bill.box_price} {detail.bill.tray_num}×¥{detail.bill.tray_price}
</Text>
</Descriptions.Item>
<Descriptions.Item label="售后金额">
<Text type={Number(detail.bill.after_sale ?? 0) < 0 ? 'success' : undefined}>
¥{detail.bill.after_sale ?? '0.00'}
</Text>
<Text type="secondary" className="ml-2!"></Text>
</Descriptions.Item>
<Descriptions.Item label="账单总金额">
<Text strong type="danger">¥{detail.bill.total_amount}</Text>
</Descriptions.Item>
@@ -403,9 +421,6 @@ const BillPage: React.FC = () => {
{detail.bill.pay_remark ? (
<Descriptions.Item label="付款备注" span={3}>{detail.bill.pay_remark}</Descriptions.Item>
) : null}
{detail.bill.after_sale ? (
<Descriptions.Item label="售后" span={3}>{detail.bill.after_sale}</Descriptions.Item>
) : null}
{detail.bill.remark ? (
<Descriptions.Item label="备注" span={3}>{detail.bill.remark}</Descriptions.Item>
) : null}
@@ -453,7 +468,7 @@ const BillPage: React.FC = () => {
>
<div className="py-2 text-gray-500">
<Text strong type="danger">¥{payTarget?.total_amount ?? '0.00'}</Text>
¥{payTarget?.product_amount ?? '0.00'} + ¥{payTarget?.delivery_fee ?? '0.00'} + ¥{payTarget?.added_amount ?? '0.00'}
¥{payTarget?.product_amount ?? '0.00'} + ¥{payTarget?.delivery_fee ?? '0.00'} + ¥{payTarget?.added_amount ?? '0.00'} + ¥{payTarget?.after_sale ?? '0.00'}
线
</div>
<Form form={payForm} layout="vertical" onFinish={handlePaySave}>