1. 推广员文案修改
Some checks failed
CI / Test (ubuntu-latest) (push) Has been cancelled
CI / Test (windows-latest) (push) Has been cancelled
CI / Lint (ubuntu-latest) (push) Has been cancelled
CI / Lint (windows-latest) (push) Has been cancelled
CI / Check (ubuntu-latest) (push) Has been cancelled
CI / Check (windows-latest) (push) Has been cancelled
CI / CI OK (push) Has been cancelled
CodeQL / Analyze (javascript-typescript) (push) Has been cancelled
Deploy Website on push / Deploy Push Playground Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Docs Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Antd Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Element Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Naive Ftp (push) Has been cancelled
Release Drafter / update_release_draft (push) Has been cancelled

This commit is contained in:
李琦
2026-07-13 12:54:57 +08:00
parent a524982b87
commit 83ce8afefc
6 changed files with 32 additions and 32 deletions

View File

@@ -57,7 +57,7 @@ const orderCommissionColumns = [
{ title: '订单号', dataIndex: 'order_no', width: 150 },
{ title: '订单状态', key: 'order_status', width: 90 },
{ title: '明细数', dataIndex: 'item_count', width: 70 },
{ title: '净分成', key: 'net_commission', width: 90 },
{ title: '服务费', key: 'net_commission', width: 90 },
{ title: '支付时间', dataIndex: 'order_pay_at_text', width: 160 },
{ title: '操作', key: 'action', width: 140 },
];
@@ -65,15 +65,15 @@ const orderCommissionColumns = [
const commissionDetailColumns = [
{ title: '类型', dataIndex: 'record_type_text', width: 90 },
{ title: '药品信息', dataIndex: 'drug_info', ellipsis: true },
{ title: '分成金额', key: 'commission_amount', width: 100 },
{ title: '分成时间', dataIndex: 'order_pay_at_text', width: 160 },
{ title: '服务费', key: 'commission_amount', width: 100 },
{ title: '服务费时间', dataIndex: 'order_pay_at_text', width: 160 },
];
const settlementLineColumns = [
{ title: '订单号', dataIndex: 'order_no', width: 160 },
{ title: '药品信息', dataIndex: 'drug_info', ellipsis: true },
{ title: '分成金额', dataIndex: 'commission_amount', width: 100 },
{ title: '分成时间', dataIndex: 'order_pay_at_text', width: 170 },
{ title: '服务费', dataIndex: 'commission_amount', width: 100 },
{ title: '服务费时间', dataIndex: 'order_pay_at_text', width: 170 },
];
const settlementColumns = [
@@ -169,7 +169,7 @@ async function showOrderDetail(record: { order_id: number; order_no: string }) {
const reversingOrderIds = ref<number[]>([]);
/** 手动退回分成(仅已退款/已取消订单) */
/** 手动退回服务费(仅已退款/已取消订单) */
async function handleReverseCommission(record: {
order_id: number;
can_reverse_commission?: boolean;
@@ -184,10 +184,10 @@ async function handleReverseCommission(record: {
store_id: storeId.value,
salesperson_id: salespersonId.value,
});
message.success('退回分成成功');
message.success('退回服务费成功');
await loadCommission();
} catch (error: any) {
message.error(error?.message || '退回分成失败');
message.error(error?.message || '退回服务费失败');
} finally {
reversingOrderIds.value = reversingOrderIds.value.filter((id) => id !== record.order_id);
}
@@ -272,7 +272,7 @@ defineExpose({ open });
</script>
<template>
<Drawer v-model:open="visible" :title="`推广员分成 - ${storeName}`" width="920" destroy-on-close>
<Drawer v-model:open="visible" :title="`推广员服务费 - ${storeName}`" width="920" destroy-on-close>
<div class="mb-4 flex flex-wrap items-center gap-3">
<span>推广员</span>
<Select
@@ -316,11 +316,11 @@ defineExpose({ open });
<Button type="link" size="small" @click="showOrderDetail(record)">查看明细</Button>
<Popconfirm
v-if="record.can_reverse_commission"
title="确认退回该订单的推广员分成?"
title="确认退回该订单的推广员服务费?"
@confirm="handleReverseCommission(record)"
>
<Button type="link" size="small" danger :loading="reversingOrderIds.includes(record.order_id)">
退回分成
退回服务费
</Button>
</Popconfirm>
</template>
@@ -351,11 +351,11 @@ defineExpose({ open });
<Button type="link" size="small" @click="showOrderDetail(record)">查看明细</Button>
<Popconfirm
v-if="record.can_reverse_commission"
title="确认退回该订单的推广员分成?"
title="确认退回该订单的推广员服务费?"
@confirm="handleReverseCommission(record)"
>
<Button type="link" size="small" danger :loading="reversingOrderIds.includes(record.order_id)">
退回分成
退回服务费
</Button>
</Popconfirm>
</template>