|
@@ -56,20 +56,21 @@ function body(props) {
|
56
|
56
|
function getById(currentId) {
|
57
|
57
|
request({ ...apis.customer.recommendGetById, urlData: { id: currentId } }).then(res => {
|
58
|
58
|
res.reportDate = moment(res.reportDate)
|
59
|
|
- props.form.setFieldsValue(res)
|
|
59
|
+ props.form.setFieldsValue(res)
|
60
|
60
|
})
|
61
|
61
|
}
|
62
|
62
|
|
63
|
63
|
function submitDate(params) {
|
64
|
64
|
// props.form.setFieldsValue(res)
|
65
|
|
- request({ ...apis.customer.auto, urlData: { id: params.customerId || props.form.getFieldValue('customerId') }, params: { verifyStatus: params.verifyStatus, realtyConsultant: props.form.getFieldValue('realtyConsultant') } }).then(() => {
|
66
|
|
- // eslint-disable-next-line no-unused-expressions
|
67
|
|
- openNotificationWithIcon('success', '操作成功')
|
68
|
|
- router.go(-1)
|
69
|
|
- }).catch(err => {
|
70
|
|
- // eslint-disable-next-line no-unused-expressions
|
71
|
|
-
|
72
|
|
- })
|
|
65
|
+ console.log(params, 'params')
|
|
66
|
+ // request({ ...apis.customer.auto, urlData: { id: params.customerId || props.form.getFieldValue('customerId') }, params: { verifyStatus: params.verifyStatus, realtyConsultant: props.form.getFieldValue('realtyConsultant') } }).then(() => {
|
|
67
|
+ // // eslint-disable-next-line no-unused-expressions
|
|
68
|
+ // openNotificationWithIcon('success', '操作成功')
|
|
69
|
+ // router.go(-1)
|
|
70
|
+ // }).catch(err => {
|
|
71
|
+ // // eslint-disable-next-line no-unused-expressions
|
|
72
|
+
|
|
73
|
+ // })
|
73
|
74
|
}
|
74
|
75
|
|
75
|
76
|
// 提交事件
|
|
@@ -77,6 +78,7 @@ function body(props) {
|
77
|
78
|
e.preventDefault();
|
78
|
79
|
props.form.validateFields((err, values) => {
|
79
|
80
|
if (!err) {
|
|
81
|
+ // submitDate({ verifyStatus: '1' })
|
80
|
82
|
submitDate({ ...values })
|
81
|
83
|
}
|
82
|
84
|
});
|
|
@@ -195,20 +197,28 @@ function body(props) {
|
195
|
197
|
<Option value={1}>已通过</Option>
|
196
|
198
|
<Option value={2}>已驳回</Option>
|
197
|
199
|
</Select>,
|
198
|
|
- )}
|
|
200
|
+ )}onClick={() => submitDate({ verifyStatus: '1' })}
|
199
|
201
|
</Form.Item> */}
|
200
|
|
- <Form.Item label="归属置业顾问">
|
201
|
|
- <Row gutter={8}>
|
202
|
|
- <Col span={12}>
|
203
|
|
- {getFieldDecorator('consultantName')(<Input placeholder="请选择置业顾问" />)}
|
204
|
|
- </Col>
|
205
|
|
- <Col span={12}>
|
206
|
|
- <Button onClick={() => showConsultant()}>选择</Button>
|
207
|
|
- </Col>
|
208
|
|
- </Row>
|
|
202
|
+ <Form.Item label="归属置业顾问"
|
|
203
|
+ >
|
|
204
|
+ <Row gutter={8}>
|
|
205
|
+ <Col span={12}>
|
|
206
|
+ {getFieldDecorator('consultantName', {
|
|
207
|
+ rules: [
|
|
208
|
+ {
|
|
209
|
+ required: true,
|
|
210
|
+ message: '请选择置业顾问',
|
|
211
|
+ },
|
|
212
|
+ ],
|
|
213
|
+ })(<Input placeholder="请选择置业顾问" />)}
|
|
214
|
+ </Col>
|
|
215
|
+ <Col span={12}>
|
|
216
|
+ <Button onClick={() => showConsultant()}>选择</Button>
|
|
217
|
+ </Col>
|
|
218
|
+ </Row>
|
209
|
219
|
</Form.Item>
|
210
|
220
|
<Form.Item style={{ display: 'flex', justifyContent: 'center' }}>
|
211
|
|
- <Button type="primary" className={Styles.SubmitButton} onClick={() => submitDate({ verifyStatus: '1' })}>
|
|
221
|
+ <Button type="primary" className={Styles.SubmitButton} htmlType="submit" >
|
212
|
222
|
审核通过
|
213
|
223
|
</Button>
|
214
|
224
|
|
|
@@ -219,7 +229,7 @@ function body(props) {
|
219
|
229
|
</Form>
|
220
|
230
|
|
221
|
231
|
{/* 选择置业顾问 */}
|
222
|
|
- <Attribution visibleData={visibleData} onCancel={() => closeConsultant()} onSuccess={e => consultantSuccess(e)}/>
|
|
232
|
+ <Attribution visibleData={visibleData} onCancel={() => closeConsultant()} onSuccess={e => consultantSuccess(e)} />
|
223
|
233
|
</>
|
224
|
234
|
);
|
225
|
235
|
}
|