| | |
| | | } |
| | | |
| | | const getByIdRole = async () => { |
| | | const res = await getByIdRoleApi(caseId) |
| | | setPersonData(res.data) |
| | | |
| | | console.log(feedbackInfoData?.handleUserId, 'feedbackInfoData?.handleUserId') |
| | | const res = await getByIdRoleApi(feedbackInfoData?.handleUserId) |
| | | if(res.type){ |
| | | setPersonView(!personView) |
| | | setPersonData(res.data) |
| | | } |
| | | } |
| | | |
| | | |
| | |
| | | |
| | | 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(); |
| | | } |
| | | } |
| | | |
| | | //获取办理记录接口 |
| | |
| | | } |
| | | |
| | | const handlePersonView = () => { |
| | | setPersonView(!personView) |
| | | getByIdRole(); |
| | | |
| | | } |
| | | |
| | |
| | | listFeedback(caseId); |
| | | getData(caseId) |
| | | getFeedbackInfo(); |
| | | getByIdRole(); |
| | | }, []) |
| | | |
| | | // useEffect(() => { |
| | |
| | | <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' }}> |
| | |
| | | caseId && managerName ? |
| | | <WantUserTag name={managerName} onClose={() => setWantUser({ wantUserId: null, wantUserName: null })} /> |
| | | : |
| | | <Button onClick={() => setIsModalVisible(true)} style={{ color: '#1A6FB8', border: '1px solid #1A6FB8' }} type='outline'>选择</Button> |
| | | <Button onClick={() => { setIsModalVisible(true); }} style={{ color: '#1A6FB8', border: '1px solid #1A6FB8' }} type='outline'>选择</Button> |
| | | } |
| | | </FormItem> |
| | | </Col> |
| | |
| | | wrapperStyle={{ width: '100%' }} |
| | | /> |
| | | </FormItem> |
| | | |
| | | </Col> |
| | | <Col span={24}> |
| | | <FormItem |
| | |
| | | > |
| | | <ArcoUpload |
| | | params={{ |
| | | action: `${appUrl.fileUrl}/${appUrl.sys}/api/web/fileInfo/upload?mainId=${caseId}&ownerId=${caseId}&ownerType=${'22_00018-501'}`, |
| | | action: `${appUrl.fileUrl}/${appUrl.sys}/api/web/fileInfo/upload?mainId=${caseId}&ownerId=${id}&ownerType=${'22_00018-501'}`, |
| | | }} |
| | | field='file1' |
| | | // handleChangeFile={handleChangeFile} |
| | |
| | | setIsModalVisible(false); |
| | | setWantUser({ wantUserId: value.keys[0], wantUserName: value.items[0].name }); |
| | | handleCheckedKeys(value.keys?.[0]) |
| | | |
| | | }} |
| | | onClose={() => setIsModalVisible(false)} |
| | | type='person' |
| | |
| | | </tr> |
| | | <tr> |
| | | <th bgcolor="#F7F8FA" className="table-title">所属部门</th> |
| | | <td>{personData?.deptName}</td> |
| | | <td>{personData?.unitName}</td> |
| | | <th bgcolor="#F7F8FA" className="table-title">职务</th> |
| | | <td>{personData?.userRoles}</td> |
| | | </tr> |