| | |
| | | } |
| | | } |
| | | |
| | | //提交请求 |
| | | // const reauestSubmit = async (data) => { |
| | | // const response = await submitDispute(data) |
| | | // if (response.type) { |
| | | // Message.success('提交成功!') |
| | | // navigate(`/mediate/visit/visitWorkBench`, { replace: true }) |
| | | // setCurrent(2) |
| | | // } |
| | | // } |
| | | |
| | | |
| | | // const handleSubmit = async () => { |
| | | // if (formRef.current) { |
| | | // formRef.current.validate(undefined, (errors, values) => { |
| | | // if (!errors) { |
| | | // const { myCaseType, myQuesAddress, ...rest } = formRef.current.getFields() |
| | | // const params = handleData(rest) |
| | | // $$.modalInfo({ |
| | | // title: '提醒', |
| | | // content: '确定提交吗?', |
| | | // cancelText: '我再想想', |
| | | // onOk: () => { |
| | | // reauestSubmit({ |
| | | // ...params, |
| | | // isSelfAccept: 0, |
| | | // isDraft: 0, |
| | | // operateType: 0, |
| | | // }) |
| | | // }, |
| | | // }); |
| | | // } |
| | | // }); |
| | | // } |
| | | // } |
| | | const handleSubmit = async () => { |
| | | if (formRef.current) { |
| | | formRef.current.validate(undefined, (errors, values) => { |
| | | if (!errors) { |
| | | const params = formRef.current.getFields() |
| | | |
| | | } |
| | | }); |
| | | } |
| | | } |
| | | |
| | | |
| | | //添加办理记录 |
| | |
| | | |
| | | //保存信息 |
| | | const handleFinish = () => { |
| | | if (formRef.current) { |
| | | formRef.current.validate(undefined, (errors, values) => { |
| | | if (!errors) { |
| | | let submitData = formRef.current.getFields() |
| | | saveFeedback(submitData) |
| | | setFormView(!formView); |
| | | } |
| | | }); |
| | | } |
| | | } |
| | | |
| | | //点击编辑办理事由 |
| | |
| | | </div> |
| | | } |
| | | field='handleContent' |
| | | rules={[{ message: '请填写事项概况', required: true }]} |
| | | rules={[{ message: '请填写办理意见', required: true }]} |
| | | > |
| | | <Input.TextArea |
| | | maxLength={200} |
| | | showWordLimit |
| | | rows={5} |
| | | placeholder='请完整描述事项概况,应具备5要素:发生时间+发生地点+人物情况+事项起因+事项经过' |
| | | placeholder='办理意见应该填写完整,办理意见应具备5要素:调解时间+调解参与部门/人+调解地点+调解过程+调解结果' |
| | | wrapperStyle={{ width: '100%' }} |
| | | /> |
| | | </FormItem> |
| | |
| | | 办理附件 |
| | | </div> |
| | | } |
| | | field='caseDes' |
| | | rules={[{ message: '请填写事项概况', required: true }]} |
| | | field='file' |
| | | > |
| | | <ArcoUpload |
| | | params={{ |