fix(settlement): 全部门店可未出账提现并企微提醒

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-03 15:43:24 +08:00
parent f3353bbce5
commit 26472f8678
12 changed files with 60 additions and 87 deletions
-1
View File
@@ -29,7 +29,6 @@ export type StoreCreateForm = {
settlementRate?: number;
visibilityWhitelistEnabled?: boolean;
visibilityPhones?: string[];
withdrawWhitelistEnabled?: boolean;
};
const PHONE_RE = /^1\d{10}$/;
-20
View File
@@ -373,7 +373,6 @@ type StoreRow = {
coverUrl: string | null;
createdAt: string;
visibilityWhitelistEnabled?: boolean;
withdrawWhitelistEnabled?: boolean;
visibilityPhones?: string[];
cityRef?: { name: string; code: string };
partner?: { companyName: string };
@@ -593,7 +592,6 @@ export default function StoresPage() {
bankAccountNo: account?.bankAccountNo || undefined,
bankBranch: account?.bankBranch || undefined,
visibilityWhitelistEnabled: !!d.visibilityWhitelistEnabled,
withdrawWhitelistEnabled: !!d.withdrawWhitelistEnabled,
visibilityPhones: Array.isArray(d.visibilityPhones)
? (d.visibilityPhones as string[])
: [],
@@ -637,7 +635,6 @@ export default function StoresPage() {
bankAccountNo: v.bankAccountNo ?? null,
bankBranch: v.bankBranch ?? null,
visibilityWhitelistEnabled: !!v.visibilityWhitelistEnabled,
withdrawWhitelistEnabled: !!v.withdrawWhitelistEnabled,
visibilityPhones: ((v.visibilityPhones as string[] | undefined) ?? [])
.map((p) => String(p || '').replace(/\D/g, '').trim())
.filter(Boolean),
@@ -814,7 +811,6 @@ export default function StoresPage() {
bankBranch: values.bankBranch.trim(),
settlementRate: Number(values.settlementRate ?? 60) / 100,
visibilityWhitelistEnabled: !!values.visibilityWhitelistEnabled,
withdrawWhitelistEnabled: !!values.withdrawWhitelistEnabled,
visibilityPhones: (values.visibilityPhones ?? [])
.map((p: string) => String(p || '').replace(/\D/g, '').trim())
.filter(Boolean),
@@ -1184,14 +1180,6 @@ export default function StoresPage() {
<Form.Item name="settlementRate" label="核销结算比例 %" initialValue={60} rules={[{ required: true }]}>
<InputNumber min={0} max={100} precision={2} style={{ width: '100%' }} addonAfter="%" />
</Form.Item>
<Form.Item
name="withdrawWhitelistEnabled"
label="未出账提现白名单"
valuePropName="checked"
extra="FIN-001:开启后该门店可对未出账余额发起手动提现"
>
<Switch checkedChildren="允许" unCheckedChildren="关闭" />
</Form.Item>
<Form.Item name="bankAccountName" label="结算户名">
<Input placeholder="开户名" />
</Form.Item>
@@ -1438,14 +1426,6 @@ export default function StoresPage() {
<Form.Item name="settlementRate" label="核销结算比例 %" initialValue={60} rules={[{ required: true, message: '请填写结算比例' }]}>
<InputNumber min={0} max={100} precision={2} style={{ width: '100%' }} addonAfter="%" />
</Form.Item>
<Form.Item
name="withdrawWhitelistEnabled"
label="未出账提现白名单"
valuePropName="checked"
initialValue={false}
>
<Switch checkedChildren="允许" unCheckedChildren="关闭" />
</Form.Item>
<Alert
type="info"
showIcon