diff --git a/src/pages/finance/SpecialAccount/FinancingCompany/components/CreateModal.tsx b/src/pages/finance/SpecialAccount/FinancingCompany/components/CreateModal.tsx index e7d11f4..98d73b0 100644 --- a/src/pages/finance/SpecialAccount/FinancingCompany/components/CreateModal.tsx +++ b/src/pages/finance/SpecialAccount/FinancingCompany/components/CreateModal.tsx @@ -10,7 +10,8 @@ const FormItem = Form.Item; const { Option } = Select; export default function CreateModal() { - const { visible, current, setCurrent, setVisible, fcList, accountList, setLoading, dealerId, brandList } = useStore(); + const { visible, current, setCurrent, setVisible, fcList, accountList, setLoading, dealerId, brandList, type } = + useStore(); const [form] = Form.useForm(); const [saveLoading, setSaveLoading] = useState(false); @@ -76,6 +77,10 @@ export default function CreateModal() { } function submit(fieldValue: any) { + if (fieldValue.depositAccount.value === fieldValue.account.value) { + message.error("还款保证金账户、一般账户请勿配置为同一一账户", 1.5); + return; + } const param = { dealerId, ...fieldValue, @@ -155,7 +160,7 @@ export default function CreateModal() { {({ getFieldValue }): any => { const category = getFieldValue("compCategory"); return category ? ( - + {accountList.map((item) => (