| | |
| | | * @Author: dminyi 1301963064@qq.com |
| | | * @Date: 2024-08-09 09:59:43 |
| | | * @LastEditors: dminyi 1301963064@qq.com |
| | | * @LastEditTime: 2024-08-31 16:41:02 |
| | | * @LastEditTime: 2024-08-31 16:52:26 |
| | | * @FilePath: \gzDyh\gz-customerSystem\src\views\basicInformation\organization\index.jsx |
| | | * @Description: 来访登记 |
| | | */ |
| | |
| | | import React, { useState, useRef, Fragment } from "react"; |
| | | import NewPage from '@/components/NewPage'; |
| | | import * as $$ from '@/utils/utility'; |
| | | import { Matter, transfer } from '@/assets/icon'; |
| | | import "@arco-themes/react-gzzz/css/arco.css"; |
| | | import '../index.less'; |
| | | import { Space } from 'antd'; |
| | | import { Button, Steps, Message } from '@arco-design/web-react'; |
| | | import { Button, Steps, Tabs, Message } from '@arco-design/web-react'; |
| | | import VisitorRegister from './component/visitorRegister'; |
| | | import Preview from './preview'; |
| | | |
| | |
| | | const formRef = useRef(); |
| | | |
| | | const [isReview, setIsReview] = useState(false);//预览页面控制 |
| | | const [current, setCurrent] = useState(3); |
| | | const [tabsActive, setTabsActive] = useState('1'); |
| | | const [tabsList, setTabList] = useState([ |
| | | { |
| | | img: Matter, |
| | | label: '事项详情', |
| | | key: '1' |
| | | }, |
| | | { |
| | | img: transfer, |
| | | label: '流转办理', |
| | | key: '2', |
| | | isNeedStep: true,//加上这个就有进度条 |
| | | }, |
| | | ]) |
| | | const breadcrumbDataMap = { |
| | | 1: { breadcrumbData: [{ title: '工作台' }, { title: '来访登记' }], title: '来访登记' }, |
| | | 2: { breadcrumbData: [{ title: '工作台' }, { title: '事件中心' }], title: '办理反馈' }, |
| | | 3: { breadcrumbData: [{ title: '工作台' }, { title: '事件中心' }], title: '办理反馈' } |
| | | } |
| | | // const [current, setCurrent] = useState(1); |
| | | const [current, setCurrent] = useState(1); |
| | | |
| | | //提交信息,需要校验规则 |
| | | const handleSubmit = async () => { |
| | | if (formRef.current) { |
| | | formRef.current.validate(undefined, (errors, values) => { |
| | | if (!errors) { |
| | | const data = formRef.current.getFields() |
| | | handleData(data).then(res => { |
| | | const {myCaseType, myQuesAddress, ...rest} = formRef.current.getFields() |
| | | handleData(rest).then(res => { |
| | | reauestSubmit({ |
| | | ...res, |
| | | isSelfAccept: 0, |
| | |
| | | //保存草稿信息,不需要校验规则 |
| | | const handleSave = () => { |
| | | if (formRef.current) { |
| | | const data = formRef.current.getFields() |
| | | handleData(data).then(res => { |
| | | const {myCaseType, myQuesAddress, ...rest} = formRef.current.getFields() |
| | | handleData(rest).then(res => { |
| | | requestSave(res) |
| | | }) |
| | | } |