+
+ 将确认 {ids.length} 笔物流对账单
+ {amountHint != null ? `,合计约 ¥${amountHint.toFixed(2)}` : ''}。充值模式将扣减余额,挂账模式标记已打款。
+
+
{
+ paymentRef = e.target.value;
+ }}
+ />
+
+ ),
okText: '确认结算',
cancelText: '取消',
onOk: async () => {
+ const body = JSON.stringify({ paymentRef: paymentRef.trim() || undefined });
if (ids.length === 1) {
- await request(`/admin/logistics-bills/${ids[0]}/confirm`, { method: 'POST' });
+ await request(`/admin/logistics-bills/${ids[0]}/confirm`, { method: 'POST', body });
} else {
await request('/admin/logistics-bills/batch-confirm', {
method: 'POST',
@@ -217,6 +240,7 @@ export default function LogisticsBillsPage() {
}
const summary = data?.summary;
+ const providerBank = (r: BillRow) => r.fulfillmentProvider;
const selectedRows = (data?.items ?? []).filter((r) => selectedKeys.includes(r.id));
const selectedAmount = selectedRows.reduce((s, r) => s + Number(r.logisticsAmount), 0);
@@ -248,6 +272,18 @@ export default function LogisticsBillsPage() {
width: 110,
render: (v) => `¥${Number(v).toFixed(2)}`,
},
+ {
+ title: '收款户名',
+ width: 100,
+ ellipsis: true,
+ render: (_, r) => providerBank(r)?.bankAccountName || '—',
+ },
+ {
+ title: '收款账号',
+ width: 140,
+ ellipsis: true,
+ render: (_, r) => providerBank(r)?.bankAccountNo || '—',
+ },
{
title: '状态',
dataIndex: 'status',
@@ -550,7 +586,31 @@ export default function LogisticsBillsPage() {