From 9a7eba69c41bd1ff577615349d16829e0073d943 Mon Sep 17 00:00:00 2001
From: dminyi <1301963064@qq.com>
Date: Wed, 11 Sep 2024 11:30:21 +0800
Subject: [PATCH] 修改
---
gz-customerSystem/src/views/register/handleFeedback/component/handle.jsx | 20 ++++++++++++++------
gz-customerSystem/src/views/register/matterDetail/index.jsx | 2 +-
gz-customerSystem/src/views/register/handleFeedback/component/CaseResult.jsx | 14 +++++++++++---
3 files changed, 26 insertions(+), 10 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..9af56b6 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:29:10
* @FilePath: \gzDyh\gz-customerSystem\src\views\register\handleFeedback\component\CaseResult.jsx
* @Description: 结案申请
*/
@@ -92,6 +92,14 @@
if (type === 1) {
formRef.current.setFieldValue('agreeContent', '根据纠纷化解人员的协调,当事人双方同意如下调解协议:[简要说明协议第一条][简要说明协议第二条][……]本口头调解协议由纠纷化解人员记录,并已告知双方当事人。双方当事人确认无误。')
}
+ }
+
+ const handleTemplate2 = (type) => {
+ if (type === 1) {
+ formRefWrite.current.setFieldValue('windupContent', '鉴于以上协议内容已经双方确认,并认为该协议内容公平合理,能够妥善解决双方的纠纷。建议双方当事人按照协议内容执行,以实现纠纷的最终解决。')
+ } else {
+ formRefWrite.current.setFieldValue('windupContent', '')
+ }
}
const handleSubmit = () => {
@@ -342,8 +350,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>)}
diff --git a/gz-customerSystem/src/views/register/handleFeedback/component/handle.jsx b/gz-customerSystem/src/views/register/handleFeedback/component/handle.jsx
index 75c8885..3ba1229 100644
--- a/gz-customerSystem/src/views/register/handleFeedback/component/handle.jsx
+++ b/gz-customerSystem/src/views/register/handleFeedback/component/handle.jsx
@@ -138,7 +138,7 @@
}
const getByIdRole = async () => {
- const res = await getByIdRoleApi(caseId)
+ const res = await getByIdRoleApi(feedbackInfoData?.handleUserId)
setPersonData(res.data)
}
@@ -184,8 +184,11 @@
const getFeedbackInfo = async () => {
const res = await getFeedbackInfoApi(caseId)
- setFeedbackInfoData(res.data)
- console.log(res.data, 'res.data')
+ if (res.type) {
+ setFeedbackInfoData(res.data)
+ console.log(res.data, 'res.data')
+ getByIdRole();
+ }
}
//获取办理记录接口
@@ -280,7 +283,6 @@
listFeedback(caseId);
getData(caseId)
getFeedbackInfo();
- getByIdRole();
}, [])
// useEffect(() => {
@@ -316,8 +318,13 @@
<Col span={8} style={{ display: 'flex' }}>
<div><div className="title-text">经办人:</div></div>
<div style={{ display: 'flex' }}>
- <div>{feedbackInfoData?.handleUserName}</div>
- <img onClick={() => handlePersonView()} src={register} alt='' style={{ width: '14px', height: '14px', marginLeft: '8px', marginTop: '4px' }} />
+ {
+ feedbackInfoData?.handleUserName ?
+ <>
+ <div>{feedbackInfoData?.handleUserName}</div>
+ <img onClick={() => handlePersonView()} src={register} alt='' style={{ width: '14px', height: '14px', marginLeft: '8px', marginTop: '4px' }} />
+ </> : '-'
+ }
</div>
</Col>
<Col span={8} style={{ display: 'flex' }}>
@@ -509,6 +516,7 @@
setIsModalVisible(false);
setWantUser({ wantUserId: value.keys[0], wantUserName: value.items[0].name });
handleCheckedKeys(value.keys?.[0])
+
}}
onClose={() => setIsModalVisible(false)}
type='person'
diff --git a/gz-customerSystem/src/views/register/matterDetail/index.jsx b/gz-customerSystem/src/views/register/matterDetail/index.jsx
index e918634..8a8fe77 100644
--- a/gz-customerSystem/src/views/register/matterDetail/index.jsx
+++ b/gz-customerSystem/src/views/register/matterDetail/index.jsx
@@ -160,7 +160,7 @@
</Space>
</Col>
<FileTable mainId={props.caseId} fileInfoList={infoData.fileInfoList} isReview={true} />
- {infoData?.canalName === '大厅来访' &&
+ {infoData?.canal === '22_00001-1' &&
<>
<Col span={24} style={{ marginTop: '12px' }}>
<Space size='small'>
--
Gitblit v1.8.0