| | |
| | | import ArcoUpload from '@/components/ArcoUpload'; |
| | | import HandleRecord from '../../matterDetail/HandleRecord'; |
| | | import SupervisingView from '../../matterDetail/Supervising' |
| | | |
| | | import UniteHandle from '../../matterDetail/UniteHandle' |
| | | |
| | | const Option = Select.Option; |
| | | const FormItem = Form.Item; |
| | |
| | | const formRef = useRef(); |
| | | const [selectedTab, setSelectedTab] = useState('1'); // 默认选中第一个 tab |
| | | const [selectedTab1, setSelectedTab1] = useState('1'); // 默认选中第一个 tab |
| | | |
| | | |
| | | const [wantUser, setWantUser] = useState({}); |
| | | const [formView, setFormView] = useState(false); |
| | | const [personView, setPersonView] = useState(false); |
| | | const [supervising, setSupervising] = useState(false) |
| | | const [data, setData] = useState({}) |
| | | const [caseResult, SetCaseResult] = useState(false); |
| | | const [response, setResponse] = useState('') |
| | | const [list, setList] = useState([]); |
| | | const [mode, SetMode] = useState(false); |
| | | const [modeDetail, setModeDetail] = useState(false); |
| | | const [radioValue, setRadioValue] = useState('') |
| | | const [detail, setDetail] = useState(false); |
| | | const [uniteHandleView, setUniteHandleView] = useState(false); |
| | | const [isModalVisible, setIsModalVisible] = useState(false); |
| | | const [id, setId] = useState(''); |
| | | const [uniteHandleId, setUniteHandleId] = useState(''); |
| | | |
| | | |
| | | const tabs = [ |
| | | { index: '1', label: '承办部门' }, |
| | |
| | | { index: '1', label: '公共模板1:回复督办内容收到通用范本' }, |
| | | ] |
| | | |
| | | const [isModalVisible, setIsModalVisible] = useState(false); |
| | | const [id, setId] = useState('') |
| | | |
| | | const handleTabChange = (newTabIndex) => { |
| | | setSelectedTab(newTabIndex); |
| | |
| | | } |
| | | |
| | | //获取理由id |
| | | const getNewTimeId = async () => { |
| | | const getNewTimeId = async (type) => { |
| | | const res = await getNewTimeIdApi() |
| | | if (res.type) { |
| | | if (type === 'uniteHandle') { |
| | | setUniteHandleId(res.data) |
| | | } |
| | | if (type === 'addMark') |
| | | setId(res.data) |
| | | } |
| | | } |
| | |
| | | //添加办理记录 |
| | | const addMark = () => { |
| | | setFormView(!formView); |
| | | getNewTimeId() |
| | | getNewTimeId('addMark') |
| | | } |
| | | |
| | | //保存信息 |
| | |
| | | const Supervising = () => { |
| | | setSupervising(!supervising) |
| | | } |
| | | |
| | | const uniteHandle = () => { |
| | | getNewTimeId('uniteHandle') |
| | | setUniteHandleView(!uniteHandleView) |
| | | } |
| | | |
| | | |
| | | |
| | | const handleTabChange1 = (newTabIndex) => { |
| | | setSelectedTab1(newTabIndex); |
| | |
| | | </Form> |
| | | <Space style={{ marginTop: '38px', bottom: '4px' }}> |
| | | <Button type="primary" style={{ backgroundColor: '#1A6FB8' }} onClick={() => addMark()}>添加办理记录</Button> |
| | | <Button type='outline' style={{ color: '#1A6FB8', border: '1px solid #1A6FB8' }}>联合处置申请</Button> |
| | | <Button type='outline' style={{ color: '#1A6FB8', border: '1px solid #1A6FB8' }} onClick={() => uniteHandle()}>联合处置申请</Button> |
| | | <Button type='outline' style={{ color: '#1A6FB8', border: '1px solid #1A6FB8' }} onClick={() => SetCaseResult(!caseResult)}>结案申请</Button> |
| | | <Button type='outline' style={{ color: '#EF6C24', border: '1px solid #EF6C24' }} onClick={() => Supervising()}>督办</Button> |
| | | <Button type='secondary'>返回上级页面</Button> |
| | |
| | | <Col span={24}> |
| | | <FormItem |
| | | label={<div style={{ display: 'flex' }}><div>督办部门</div><div style={{ color: '#86909C' }}>(可多选)</div></div>} |
| | | field='caseDes' |
| | | field='' |
| | | > |
| | | <Select |
| | | mode='multiple' |
| | |
| | | </Row> |
| | | </Form> |
| | | </Modal> |
| | | <UniteHandle id={uniteHandleId} visible={uniteHandleView} handleOnCancel={() => setUniteHandleView(false)} /> |
| | | <CaseResult visible={caseResult} handleOnCancel={() => SetCaseResult(false)} /> |
| | | |
| | | </div> |