1 files added
1 files renamed
4 files modified
| | |
| | | * handleCheckParty, // 点击查看详情 |
| | | * handleDeleteParty, // 删除当事人 |
| | | */ |
| | | const PersonCard = ({ isCheck, data, handleCheckParty, handleDeleteParty }) => { |
| | | const PersonCard = ({ isCheck, data, handleCheckParty, handleDeleteParty, handleAdd }) => { |
| | | |
| | | return ( |
| | | <Row gutter={[24, 16]}> |
| | |
| | | <div className="dataSync-addBtn"> |
| | | <Tooltip |
| | | title={(<Space direction='vertical '> |
| | | <div className="dataSync-btnApply" style={{ backgroundColor: '#1A6FB8' }}>申请方</div> |
| | | <div className="dataSync-btnApply" style={{ backgroundColor: '#FA8C16' }}>被申请方</div> |
| | | <div className="dataSync-btnApply" style={{ backgroundColor: '#3491FA' }}>代理人</div> |
| | | <div className="dataSync-btnApply" style={{ backgroundColor: '#1A6FB8' }} onClick={() => {handleAdd(0)}}>申请方</div> |
| | | <div className="dataSync-btnApply" style={{ backgroundColor: '#FA8C16' }} onClick={() => {handleAdd(1)}}>被申请方</div> |
| | | <div className="dataSync-btnApply" style={{ backgroundColor: '#3491FA' }} onClick={() => {handleAdd(2)}}>代理人</div> |
| | | </Space>)} |
| | | placement={data.length % 3 === 0 ? 'left' : "right"} |
| | | placement={data.length !== 0 && data.length % 3 === 0 ? 'left' : "right"} |
| | | color='#ffff' |
| | | overlayStyle={{}} |
| | | > |
| | |
| | | @import './theme.less'; |
| | | |
| | | @font-face { |
| | | font-family: siYuanHeiTi; |
| | | src: url('../assets/font/SourceHanSansCN-Regular-2.otf'); |
| | | } |
| | | |
| | | @font-face { |
| | | font-family: AlibabaPuHuiTi; |
| | | src: url('../assets/font/Alibaba_PuHuiTi_2.0_55_Regular_85_Bold.ttf'); |
| | |
| | | height: 8px; |
| | | background-color: #dfdfdf; |
| | | } |
| | | |
| | | ::-webkit-scrollbar-track { |
| | | background-color: @bg-color; |
| | | } |
| | | |
| | | ::-webkit-scrollbar-thumb { |
| | | border-radius: 8px; |
| | | background-color: #dfdfdf; |
| | |
| | | } |
| | | |
| | | // table 标题不缩略 |
| | | .ant-table-thead > tr > th { |
| | | .ant-table-thead>tr>th { |
| | | white-space: inherit; |
| | | } |
| | | |
| | |
| | | |
| | | .public-a-no { |
| | | cursor: no-drop; |
| | | color: #d9d9d9; |
| | | color: #d9d9d9; |
| | | } |
| | | |
| | | .public-span { |
| | | position: relative; |
| | | |
| | | &::before { |
| | | content: ''; |
| | | position: absolute; |
| | |
| | | color: #ffcf5c; |
| | | font-size: 22px; |
| | | } |
| | | |
| | | //字节弹窗 |
| | | .arco-modal { |
| | | border-radius: 0; |
| | | width: 900px; |
| | | |
| | | .arco-modal-header { |
| | | padding: 0 16px; |
| | | |
| | | .arco-modal-title { |
| | | text-align: left; |
| | | font-size: 16px; |
| | | font-family: PingFang SC, PingFang SC-400; |
| | | font-weight: 400; |
| | | color: #1d2129; |
| | | } |
| | | } |
| | | |
| | | .arco-modal-content { |
| | | padding: 16px; |
| | | max-height: 700px; |
| | | } |
| | | |
| | | .arco-modal-close-icon { |
| | | width: 20px; |
| | | height: 20px; |
| | | background: #86909C; |
| | | border-radius: 50%; |
| | | top: 14px; |
| | | right: 16px; |
| | | |
| | | .arco-icon { |
| | | color: #fff; |
| | | width: 16px; |
| | | height: 16px; |
| | | left: 2px; |
| | | top: 2px; |
| | | } |
| | | |
| | | &:hover { |
| | | .arco-icon { |
| | | color: #86909C; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | //弹窗底部按钮 |
| | | .dialogFooter { |
| | | width: 100%; |
| | | margin-top: 16px; |
| | | display: flex; |
| | | justify-content: flex-start; |
| | | align-items: center; |
| | | |
| | | .dialogPrimary { |
| | | margin-right: 16px; |
| | | } |
| | | |
| | | .dialogBack {} |
| | | } |
| | | |
| | | .arco-btn-primary:not(.arco-btn-disabled) { |
| | | background-color: @main-color; |
| | | |
| | | &:hover { |
| | | background-color: @main-color; |
| | | } |
| | | } |
| | |
| | | } |
| | | |
| | | &-addBtn { |
| | | // width: 150px; |
| | | // display: flex; |
| | | // justify-content: center; |
| | | cursor: pointer; |
| | | padding: 8px; |
| | | } |
| | | |
| | | &-btnApply { |
| | |
| | | align-items: center; |
| | | justify-content: space-between; |
| | | box-shadow: 0px -1px 2px 0px rgba(0, 0, 0, 0.25); |
| | | z-index: 1; |
| | | } |
| | | } |
New file |
| | |
| | | import React from 'react' |
| | | import { Form, Input, Button, Radio, Select, DatePicker, Cascader } from '@arco-design/web-react'; |
| | | |
| | | export default function applyDialog(props) { |
| | | return ( |
| | | <div> |
| | | <div style={{ height: '590px', overflowY: 'scroll' }}> |
| | | |
| | | </div> |
| | | <div className='dialogFooter'> |
| | | <Button |
| | | type="primary" |
| | | className="dialogPrimary" |
| | | > |
| | | 保存信息 |
| | | </Button> |
| | | <Button className="dialogBack"> |
| | | 重置 |
| | | </Button> |
| | | </div> |
| | | </div> |
| | | ) |
| | | } |
File was renamed from gz-customerSystem/src/views/register/visit/visitorRegister.jsx |
| | |
| | | import React, { useState, useEffect, useRef } from "react"; |
| | | import PersonCard from '../../../components/personCard'; |
| | | import * as $$ from '../../../utils/utility'; |
| | | import { question1 } from '../../../assets/images'; |
| | | import PersonCard from '../../../../components/personCard'; |
| | | import * as $$ from '../../../../utils/utility'; |
| | | import { question1 } from '../../../../assets/images'; |
| | | import { Row, Col, Space, Tooltip } from 'antd'; |
| | | import { Form, Input, Button, Radio, Select, DatePicker, Cascader } from '@arco-design/web-react'; |
| | | import { Form, Input, Button, Radio, Select, DatePicker, Cascader, Modal } from '@arco-design/web-react'; |
| | | import "@arco-design/web-react/dist/css/arco.css"; |
| | | import TableView from '../../../components/TableView'; |
| | | import '../index.less'; |
| | | import TableView from '../../../../components/TableView'; |
| | | import '../../index.less'; |
| | | import ApplyDialog from "./applyDialog"; |
| | | |
| | | const RadioGroup = Radio.Group;// 根据调解案号获取纠纷登记信息 |
| | | const FormItem = Form.Item; |
| | |
| | | const InputSearch = Input.Search; |
| | | |
| | | |
| | | const VisitorRegister = (props) => { |
| | | const [fakeData, setFakeData] = useState([ |
| | | // { |
| | | // id: 3, |
| | | // perClassName: '申请方当事人', |
| | | // trueName: '蓝海科技有限公司', |
| | | // mobile: '9144010188453Z', |
| | | // company: true, |
| | | // companyName: '张晓梅',//公司法人 |
| | | // partyType: 'applicant',//申请人 |
| | | // }, |
| | | // { |
| | | // id: 1, |
| | | // perClassName: '申请方代理人', |
| | | // trueName: '王小明', |
| | | // mobile: '410106198802121125', |
| | | // person: true, |
| | | // personNumber: '13388888888',//联系方式 |
| | | // partyType: 'applicant', |
| | | // }, |
| | | // { |
| | | // id: 2, |
| | | // perClassName: '被申请方当事人', |
| | | // trueName: '大海科技有限公司', |
| | | // mobile: '13800000002', |
| | | // company: true, |
| | | // companyName: '郭小聪',//公司法人 |
| | | // partyType: 'respondent',//被申请方 |
| | | // remark: [{ label: '精神障碍', color: '#C64FBE' }, { label: '吸毒', color: '#D8A247' }, { label: '社区矫正', color: '#B82F6E' }, { label: '刑满释放', color: '#199C8F' }, { label: '流浪', color: '#3ECB7A' }, { label: '重点青少年', color: '#117AC1' }, { label: '涉稳涉访', color: '#6865D7' }, { label: '潜在风险', color: '#2661CE' }] |
| | | // }, |
| | | // { |
| | | // id: 2, |
| | | // perClassName: '被申请方代理人', |
| | | // trueName: '张三', |
| | | // mobile: '13800000002', |
| | | // person: true, |
| | | // personNumber: '13399999999',//联系方式 |
| | | // partyType: 'respondent', |
| | | // remark: [{ label: '精神障碍', color: '#C64FBE' }] |
| | | // }, |
| | | // { |
| | | // id: 2, |
| | | // perClassName: '被申请方代理人', |
| | | // trueName: '张三', |
| | | // mobile: '13800000002', |
| | | // person: true, |
| | | // personNumber: '13399999999',//联系方式 |
| | | // partyType: 'respondent', |
| | | // remark: [{ label: '精神障碍', color: '#C64FBE' }] |
| | | // }, |
| | | // { |
| | | // id: 2, |
| | | // perClassName: '被申请方代理人', |
| | | // trueName: '张三', |
| | | // mobile: '13800000002', |
| | | // person: true, |
| | | // personNumber: '13399999999',//联系方式 |
| | | // partyType: 'respondent', |
| | | // remark: [{ label: '精神障碍', color: '#C64FBE' }] |
| | | // }, |
| | | ]);//当事人信息数据 |
| | | const [dialogType, setDialogType] = useState(0);//添加当事人的类型 |
| | | const [addVisabled, setAddVisabled] = useState(false);//添加当事人弹窗控制 |
| | | |
| | | function getCaseDataApi(submitData) { |
| | | return $$.ax.request({ url: `caseInfo/getCaseInfo?id=${submitData}`, type: 'get', service: 'mediate' }); |
| | | } |
| | | |
| | | |
| | | |
| | | const Organization = () => { |
| | | const formRef = useRef(); |
| | | |
| | | |
| | | const fakeData = [ |
| | | { |
| | | id: 3, |
| | | perClassName: '申请方当事人', |
| | | trueName: '蓝海科技有限公司', |
| | | mobile: '9144010188453Z', |
| | | company: true, |
| | | companyName: '张晓梅',//公司法人 |
| | | partyType: 'applicant',//申请人 |
| | | }, |
| | | { |
| | | id: 1, |
| | | perClassName: '申请方代理人', |
| | | trueName: '王小明', |
| | | mobile: '410106198802121125', |
| | | person: true, |
| | | personNumber: '13388888888',//联系方式 |
| | | partyType: 'applicant', |
| | | }, |
| | | { |
| | | id: 2, |
| | | perClassName: '被申请方当事人', |
| | | trueName: '大海科技有限公司', |
| | | mobile: '13800000002', |
| | | company: true, |
| | | companyName: '郭小聪',//公司法人 |
| | | partyType: 'respondent',//被申请方 |
| | | remark: [{ label: '精神障碍', color: '#C64FBE' }, { label: '吸毒', color: '#D8A247' }, { label: '社区矫正', color: '#B82F6E' }, { label: '刑满释放', color: '#199C8F' }, { label: '流浪', color: '#3ECB7A' }, { label: '重点青少年', color: '#117AC1' }, { label: '涉稳涉访', color: '#6865D7' }, { label: '潜在风险', color: '#2661CE' }] |
| | | }, |
| | | { |
| | | id: 2, |
| | | perClassName: '被申请方代理人', |
| | | trueName: '张三', |
| | | mobile: '13800000002', |
| | | person: true, |
| | | personNumber: '13399999999',//联系方式 |
| | | partyType: 'respondent', |
| | | remark: [{ label: '精神障碍', color: '#C64FBE' }] |
| | | }, |
| | | { |
| | | id: 2, |
| | | perClassName: '被申请方代理人', |
| | | trueName: '张三', |
| | | mobile: '13800000002', |
| | | person: true, |
| | | personNumber: '13399999999',//联系方式 |
| | | partyType: 'respondent', |
| | | remark: [{ label: '精神障碍', color: '#C64FBE' }] |
| | | }, |
| | | { |
| | | id: 2, |
| | | perClassName: '被申请方代理人', |
| | | trueName: '张三', |
| | | mobile: '13800000002', |
| | | person: true, |
| | | personNumber: '13399999999',//联系方式 |
| | | partyType: 'respondent', |
| | | remark: [{ label: '精神障碍', color: '#C64FBE' }] |
| | | }, |
| | | ]; |
| | | const peopleMap = { |
| | | 0: '申请方', |
| | | 1: '被申请方', |
| | | 2: '代理人' |
| | | } |
| | | |
| | | const fakeData1 = [ |
| | | { |
| | |
| | | }, |
| | | ]; |
| | | |
| | | |
| | | function handleCheckParty() { |
| | | const handleCheckParty = () => { |
| | | console.log('check party'); |
| | | } |
| | | |
| | | //获取当前时间 |
| | | function getFormattedDateTime() { |
| | | const getFormattedDateTime = () => { |
| | | let now = new Date(); |
| | | let year = now.getFullYear(); |
| | | let month = (now.getMonth() + 1).toString().padStart(2, '0'); // 月份是从0开始的,所以要+1 |
| | |
| | | return `${year}-${month}-${day} ${hours}:${minutes}`; |
| | | } |
| | | |
| | | //保存信息 |
| | | const handleSubmit = async () => { |
| | | if (formRef.current) { |
| | | try { |
| | | await formRef.current.validate((errors, values) => { |
| | | console.log(errors, values); |
| | | }); |
| | | // Message.info('校验通过,提交成功!'); |
| | | } catch (_) { |
| | | console.log(formRef.current.getFieldsError()); |
| | | // Message.error('校验失败,请检查字段!'); |
| | | } |
| | | } |
| | | //添加申请人: 0、被申请人: 1、代理人: 2 |
| | | const handleAdd = (type) => { |
| | | setDialogType(type) |
| | | setAddVisabled(true) |
| | | } |
| | | |
| | | |
| | | return ( |
| | | <div className='dataSync-page'> |
| | |
| | | <div className='MediationInfo-subTitle' style={{ marginTop: '-6px' }}></div><h5>当事人信息</h5> |
| | | </Space> |
| | | </Col> |
| | | <div> |
| | | <div style={{ margin: '16px 0' }}> |
| | | <PersonCard |
| | | isCheck={true} |
| | | partyType={'applicant'} // 这里设定为申请人 |
| | | data={fakeData} |
| | | handleCheckParty={handleCheckParty} |
| | | handleAdd={handleAdd} |
| | | /> |
| | | </div> |
| | | <Col span={24} style={{ display: 'flex', alignItems: 'center', marginBottom: '8px' }}> |
| | |
| | | </Space> |
| | | </Col> |
| | | <Form |
| | | ref={formRef} |
| | | ref={props.formRef} |
| | | layout='vertical' |
| | | requiredSymbol={false} |
| | | initialValues={{ |
| | |
| | | bordered={true} |
| | | style={{ marginBottom: '60px' }} |
| | | /> |
| | | <Modal |
| | | title={'添加' + peopleMap[dialogType]} |
| | | visible={addVisabled} |
| | | onOk={() => setAddVisabled(false)} |
| | | onCancel={() => setAddVisabled(false)} |
| | | autoFocus={false} |
| | | focusLock={true} |
| | | footer={null} |
| | | // style={{ width: '1000px' }} |
| | | > |
| | | <ApplyDialog /> |
| | | </Modal> |
| | | </div> |
| | | ) |
| | | } |
| | | |
| | | export default Organization; |
| | | export default VisitorRegister; |
| | |
| | | import "@arco-design/web-react/dist/css/arco.css"; |
| | | import '../index.less'; |
| | | import { Space } from 'antd'; |
| | | import {Button } from '@arco-design/web-react'; |
| | | import VisitorRegister from './visitorRegister'; |
| | | import { Button } from '@arco-design/web-react'; |
| | | import VisitorRegister from './component/visitorRegister'; |
| | | import Preview from './preview'; |
| | | |
| | | |
| | |
| | | |
| | | |
| | | const Organization = () => { |
| | | // tabs当前选择的标签信息 |
| | | const [tabsActive, setTabsActive] = useState('1'); |
| | | const formRef = useRef(); |
| | | |
| | | const [tabsActive, setTabsActive] = useState('1');// tabs当前选择的标签信息 |
| | | const [isReview, setIsReview] = useState(false);//预览页面控制 |
| | | |
| | | const tabs = [ |
| | |
| | | |
| | | ]; |
| | | |
| | | //保存信息 |
| | | const handleSubmit = async () => { |
| | | } |
| | | //提交信息,需要校验规则 |
| | | const handleSubmit = async () => { |
| | | if (formRef.current) { |
| | | formRef.current.validate(undefined, (errors, values) => { |
| | | console.log(errors, values); |
| | | }); |
| | | } |
| | | } |
| | | |
| | | //保存草稿信息,不需要校验规则 |
| | | const handleSave = async () => { |
| | | if (formRef.current) { |
| | | const data = formRef.current.getFields() |
| | | console.log(data); |
| | | } |
| | | } |
| | | |
| | | //预览信息 |
| | | const handleReview = () => { |
| | |
| | | <RegisterTab tabs={tabs} activeKey={tabsActive} onChange={(activeKey) => setTabsActive(activeKey)} style={{ background: '#fff' }} /> |
| | | {tabsActive === '1' && |
| | | <Fragment> |
| | | {isReview ? <Preview /> : <VisitorRegister />} |
| | | {isReview ? <Preview /> : <VisitorRegister formRef={formRef} />} |
| | | <div className="dataSync-excel"> |
| | | <Space size="large" style={{ margin: '4px 14px' }}> |
| | | <Button type="primary" style={{ backgroundColor: '#1A6FB8' }} >保存信息</Button> |
| | | <Button type="primary" style={{ backgroundColor: '#1A6FB8' }} onClick={handleSave} >保存信息</Button> |
| | | <Button type='outline' style={{ color: '#1A6FB8', border: '1px solid #1A6FB8' }} onClick={handleReview}>预览信息</Button> |
| | | <Button type='outline' style={{ color: '#1A6FB8', border: '1px solid #1A6FB8' }} onClick={handleSubmit}>提交信息</Button> |
| | | <Button type='outline' style={{ color: '#1A6FB8', border: '1px solid #1A6FB8' }}>自行受理</Button> |