From 8d6b46929dc3cb6d012c889f22cb8976fa6bd04d Mon Sep 17 00:00:00 2001 From: dminyi <1301963064@qq.com> Date: Wed, 11 Sep 2024 12:05:04 +0800 Subject: [PATCH] 修改 --- gz-customerSystem/src/views/register/handleFeedback/component/CaseResult.jsx | 51 +++++++++++++++++++++++++++++---------------------- 1 files changed, 29 insertions(+), 22 deletions(-) diff --git a/gz-customerSystem/src/views/register/handleFeedback/component/CaseResult.jsx b/gz-customerSystem/src/views/register/handleFeedback/component/CaseResult.jsx index 2646b8c..15a0d77 100644 --- a/gz-customerSystem/src/views/register/handleFeedback/component/CaseResult.jsx +++ b/gz-customerSystem/src/views/register/handleFeedback/component/CaseResult.jsx @@ -2,7 +2,7 @@ * @Author: dminyi 1301963064@qq.com * @Date: 2024-09-02 14:49:13 * @LastEditors: dminyi 1301963064@qq.com - * @LastEditTime: 2024-09-11 11:03:38 + * @LastEditTime: 2024-09-11 11:34:07 * @FilePath: \gzDyh\gz-customerSystem\src\views\register\handleFeedback\component\CaseResult.jsx * @Description: 结案申请 */ @@ -91,7 +91,23 @@ const handleTemplate1 = (type) => { if (type === 1) { formRef.current.setFieldValue('agreeContent', '根据纠纷化解人员的协调,当事人双方同意如下调解协议:[简要说明协议第一条][简要说明协议第二条][……]本口头调解协议由纠纷化解人员记录,并已告知双方当事人。双方当事人确认无误。') - } + } + } + + const handleTemplate2 = (type) => { + if (type === 1) { + formRefWrite.current.setFieldValue('windupContent', '鉴于以上协议内容已经双方确认,并认为该协议内容公平合理,能够妥善解决双方的纠纷。建议双方当事人按照协议内容执行,以实现纠纷的最终解决。') + } else { + formRefWrite.current.setFieldValue('windupContent', '') + } + } + + const handleTemplate3 = (type) => { + if (type === 1) { + failRef.current.setFieldValue('windupContent', '经过多次调解,尽管纠纷化解人员尽最大努力帮助双方找到解决方案,但由于以下原因,当事人双方未能达成一致意见:[详细说明化解未成功的原因之一][详细说明化解未成功的原因之二][……][……]鉴于上述情况,纠纷化解人员认为目前无法通过调解方式解决双方的争议,建议双方考虑采取其他合法途径解决纠纷。') + } else { + failRef.current.setFieldValue('windupContent', '') + } } const handleSubmit = () => { @@ -342,8 +358,8 @@ </Col> <Col span={24} style={{ position: 'relative' }}> <div style={{ position: 'absolute', display: 'flex ', top: '28px', zIndex: 1 }}> - <div className='myTag' style={{ marginRight: '22px' }} onClick={() => { handleTemplate(1) }}>公共模板:化解成功结案意见范本</div> - <div className='myTag' onClick={() => { handleTemplate(2) }}>个人模板:化解成功结案意见范本(完整版)</div> + <div className='myTag' style={{ marginRight: '22px' }} onClick={() => { handleTemplate2(1) }}>公共模板:化解成功结案意见范本</div> + <div className='myTag' onClick={() => { handleTemplate2(2) }}>个人模板:化解成功结案意见范本(完整版)</div> </div> <FormItem label={(<div style={{ display: 'flex' }}>结案意见<div className="must">必填</div></div>)} @@ -442,27 +458,18 @@ </tr> </table> </Col> - <Col span={24}> + <Col span={24} style={{ position: 'relative' }}> + <div style={{ position: 'absolute', display: 'flex ', top: '28px', zIndex: 1 }}> + <div className='myTag' style={{ marginRight: '22px' }} onClick={() => { handleTemplate3(1) }}>公共模板:化解不成功结案意见范本</div> + </div> <FormItem - label={ - <> - <div style={{ display: 'flex' }}> - 结案意见 - <div className="must" style={{ marginLeft: '4px' }}>必填</div> - </div> - <div className='modeMore'> - <div className='caseResult-textarea'>公共模板:化解不成功结案意见范本</div> - <div style={{ color: '#1A6FB8' }} onClick={() => setMode(!mode)}>更多模板</div> - </div> - </> - } + label={(<div style={{ display: 'flex' }}>结案意见<div className="must">必填</div></div>)} field='windupContent' - rules={[{ message: '请填写事项概况', required: true }]} > - <Input.TextArea - rows={5} - wrapperStyle={{ width: '100%' }} - value='鉴于以上协议内容已经双方确认,并认为该协议内容公平合理,能够妥善解决双方的纠纷。建议双方当事人按照协议内容执行,以实现纠纷的最终解决。' + <TextArea + autoSize={{ minRows: 4, maxRows: 8 }} + placeholder='请填写' + style={{ marginTop: '40px' }} /> </FormItem> </Col> -- Gitblit v1.8.0