Commit 261679f11680262a6ae5776fa20beb6b476bbfd4
1 parent
13fab8f0
fix(finance): orc识别修复
Showing
2 changed files
with
9 additions
and
9 deletions
src/pages/finance/OCRIdentificationApproval/components/DetailModal.tsx
... | ... | @@ -16,7 +16,7 @@ interface Props { |
16 | 16 | |
17 | 17 | export default function DetailModal(props: Props) { |
18 | 18 | const [form] = Form.useForm(); |
19 | - const { visible, onCancel, item = {},onSuccess=()=>{} } = props; | |
19 | + const { visible, onCancel, item = {}, onSuccess = () => { } } = props; | |
20 | 20 | useEffect(() => { |
21 | 21 | if (visible) { |
22 | 22 | const fromInfo: FileIft = { ...item }; |
... | ... | @@ -75,11 +75,11 @@ export default function DetailModal(props: Props) { |
75 | 75 | destroyOnClose |
76 | 76 | > |
77 | 77 | <Form form={form} onFinish={handleOk}> |
78 | - <Form.Item label="商家全称:" name="drawerName" rules={[{ required: true, message: "请输入商家全称" }]}> | |
79 | - <Input placeholder="请输入商家全称" /> | |
78 | + <Form.Item label="票号:" name="draftNum" rules={[{ required: true, message: "请输入票号" }]}> | |
79 | + <Input placeholder="请输入票号" showCount maxLength={30} /> | |
80 | 80 | </Form.Item> |
81 | - <Form.Item label="票号:" name="draftNum" rules={[{ required: true, message: "请输入承票号" }]}> | |
82 | - <Input placeholder="请输入票号" /> | |
81 | + <Form.Item label="出票商家:" name="drawerName" rules={[{ required: true, message: "请输入出票商家" }]}> | |
82 | + <Input placeholder="请输入出票商家" /> | |
83 | 83 | </Form.Item> |
84 | 84 | <Form.Item label="承兑人出票往来单位:" name="acceptorName" rules={[{ required: true, message: "请输入承兑人出票往来单位" }]}> |
85 | 85 | <Input placeholder="请输入承兑人出票往来单位" /> |
... | ... | @@ -142,7 +142,7 @@ export default function DetailModal(props: Props) { |
142 | 142 | </Form.Item> |
143 | 143 | </Form.Item> |
144 | 144 | |
145 | - <Form.Item label="票据审核是否通过" name="ocrPassed" initialValue={2} > | |
145 | + <Form.Item label="票据审核是否通过" name="ocrPassed" rules={[{ required: true, message: "请选择是否通过" }]}> | |
146 | 146 | <Radio.Group> |
147 | 147 | <Radio value={1}>是</Radio> |
148 | 148 | <Radio value={2}>否</Radio> | ... | ... |
src/pages/finance/OCRIdentificationApproval/index.tsx
... | ... | @@ -28,12 +28,12 @@ const Index = () => { |
28 | 28 | |
29 | 29 | const { loading, list, paginationConfig, setParams, innerParams } = usePagination(getListFinancingDraftApi, { current: 1, pageSize: 10, }); |
30 | 30 | return ( |
31 | - <PageHeaderWrapper title="汇票识别审批" loading={loading}> | |
31 | + <PageHeaderWrapper title="汇票单识别审核" loading={loading}> | |
32 | 32 | <Card> |
33 | 33 | <Table rowKey={(row) => `id${row.draftId}`} dataSource={list || []} pagination={paginationConfig}> |
34 | 34 | <Column title="ID" dataIndex="draftId" align="center" /> |
35 | 35 | <Column title="申请单号" dataIndex="applyNo" align="center" /> |
36 | - <Column title="金额" dataIndex="draftAmount" align="center" render={(amount) => { | |
36 | + <Column title="申请金额" dataIndex="draftAmount" align="center" render={(amount) => { | |
37 | 37 | return ( |
38 | 38 | <span>{rmb.p(amount)}</span> |
39 | 39 | ) |
... | ... | @@ -41,12 +41,12 @@ const Index = () => { |
41 | 41 | <Column title="融资银行名称" dataIndex="fcCompName" align="center" /> |
42 | 42 | <Column title="新车采购单位名" dataIndex="mefCompName" align="center" /> |
43 | 43 | <Column title="商家名称" dataIndex="dealerName" align="center" /> |
44 | + <Column title="品牌名称" dataIndex="brandName" align="center" /> | |
44 | 45 | <Column title="票据状态" dataIndex="draftStatus" align="center" render={(row) => { |
45 | 46 | return ( |
46 | 47 | <span>{DraftStatusEnum[row]}</span> |
47 | 48 | ) |
48 | 49 | }} /> |
49 | - <Column title="品牌名称" dataIndex="brandName" align="center" /> | |
50 | 50 | <Column title="状态" dataIndex="ocrPassed" align="center" render={(row) => { |
51 | 51 | return ( |
52 | 52 | <span>{OcrPassedEnum[row]}</span> | ... | ... |