From 842f0a4df6b10d70512e6bf48c99c54987c3bd25 Mon Sep 17 00:00:00 2001
From: dminyi <1301963064@qq.com>
Date: Tue, 10 Sep 2024 20:37:46 +0800
Subject: [PATCH] 流程
---
gz-customerSystem/src/views/register/handleFeedback/component/CaseResult.jsx | 20 ++++++++++++++------
1 files changed, 14 insertions(+), 6 deletions(-)
diff --git a/gz-customerSystem/src/views/register/handleFeedback/component/CaseResult.jsx b/gz-customerSystem/src/views/register/handleFeedback/component/CaseResult.jsx
index f52769e..cc9155e 100644
--- a/gz-customerSystem/src/views/register/handleFeedback/component/CaseResult.jsx
+++ b/gz-customerSystem/src/views/register/handleFeedback/component/CaseResult.jsx
@@ -2,11 +2,12 @@
* @Author: dminyi 1301963064@qq.com
* @Date: 2024-09-02 14:49:13
* @LastEditors: dminyi 1301963064@qq.com
- * @LastEditTime: 2024-09-10 15:46:08
+ * @LastEditTime: 2024-09-10 19:16:46
* @FilePath: \gzDyh\gz-customerSystem\src\views\register\handleFeedback\component\CaseResult.jsx
* @Description: 结案申请
*/
import React, { useState, useRef } from 'react';
+import { useNavigate } from 'react-router-dom';
import { Modal, Form, Select, Upload, Input } from '@arco-design/web-react';
import { Col, Space, Button, Tooltip, Radio, Row } from 'antd';
import DocumentScanner from '../../matterDetail/FileUpLoad'
@@ -18,6 +19,7 @@
import * as $$ from '@/utils/utility';
const appUrl = $$.appUrl;
+
const FormItem = Form.Item;
function windupApplyApi(data) {
@@ -28,6 +30,7 @@
const CaseResult = ({ visible = false, handleOnCancel, caseResultId, caseId, caseTaskId }) => {
const formRef = useRef();
+ const navigate = useNavigate();
const formRefWrite = useRef();
const failRef = useRef();
const [selectedTab, setSelectedTab] = useState('1'); // 默认选中第一个 tab
@@ -113,24 +116,29 @@
console.log(
{
mediResultName: selectedTab === '1' ? '化解成功' : '化解不成功',
- agreeType: value === 1 ? '口头协议' : '书面协议',
+ mediResult: selectedTab === '1' ? '22_00025-1' : '22_00025-2',
+ agreeType: selectedTab === '1' ? '24_00003-1' : '24_00003-2',
+ agreeTypeName: value === 1 ? '口头协议' : '书面协议',
caseTaskId: caseTaskId,
caseId: caseId,
caseResultId: caseResultId,
...submitData
- },'windupApplyData'
+ }, 'windupApplyData'
)
const res = await windupApplyApi({
mediResultName: selectedTab === '1' ? '化解成功' : '化解不成功',
- agreeType: value === 1 ? '口头协议' : '书面协议',
+ mediResult: selectedTab === '1' ? '22_00025-1' : '22_00025-2',
+ agreeType: selectedTab === '1' ? '24_00003-1' : '24_00003-2',
+ agreeTypeName: value === 1 ? '口头协议' : '书面协议',
caseTaskId: caseTaskId,
caseId: caseId,
caseResultId: caseResultId,
...submitData
- })
+ })
if (res.type) {
$$.infoSuccess({ content: '提交成功' });
- handleOnCancel()
+ handleOnCancel();
+ navigate('/mediate/visit/visitWorkBench')
}
}
--
Gitblit v1.8.0