|
@@ -1,7 +1,7 @@
|
1
|
1
|
import React, { useState, useEffect } from 'react';
|
2
|
2
|
import { Card, Form, Button, message, Input, Image } from 'antd';
|
3
|
3
|
import { PageHeaderWrapper } from '@ant-design/pro-layout';
|
4
|
|
-import { getApplicationDetail, updateMake, getCardNo } from '@/services/application'
|
|
4
|
+import { getApplicationDetail, updateMake } from '@/services/application'
|
5
|
5
|
import { history } from 'umi';
|
6
|
6
|
|
7
|
7
|
const FormItem = Form.Item;
|
|
@@ -45,11 +45,6 @@ export default (props) => {
|
45
|
45
|
message.success('请输入证件号');
|
46
|
46
|
}
|
47
|
47
|
}
|
48
|
|
- const handleCardNo = () => {
|
49
|
|
- getCardNo().then((res) => {
|
50
|
|
- setApplication({ ...application, originCardNo: res })
|
51
|
|
- })
|
52
|
|
- }
|
53
|
48
|
useEffect(() => {
|
54
|
49
|
getApplicationDetail(id).then((res) => {
|
55
|
50
|
setApplication(res)
|
|
@@ -130,12 +125,6 @@ export default (props) => {
|
130
|
125
|
readOnly={application?.makeStatus != 0}
|
131
|
126
|
placeholder='请输入证件号或者点击自动生成(必填)'
|
132
|
127
|
onChange={e => setApplication({ ...application, originCardNo: e.target.value })} />
|
133
|
|
- {
|
134
|
|
- application?.makeStatus == 0 &&
|
135
|
|
- <Button type="link" onClick={() => handleCardNo()}>
|
136
|
|
- 自动生成
|
137
|
|
- </Button>
|
138
|
|
- }
|
139
|
128
|
</FormItem>
|
140
|
129
|
{
|
141
|
130
|
application.applyMethod == 2 && <>
|