| | |
| | | import ArcoUpload from '@/components/ArcoUpload'; |
| | | import { Scrollbars } from "react-custom-scrollbars"; |
| | | import SelectObjModal from '@/components/SelectObjModal/selectPerson'; |
| | | import { useParams } from 'react-router-dom'; |
| | | import * as $$ from '@/utils/utility'; |
| | | import { useNavigate } from 'react-router-dom'; |
| | | |
| | |
| | | } |
| | | |
| | | export default function BackModel(props) { |
| | | const routeData = useParams(); |
| | | const navigate = useNavigate(); |
| | | const formRef = useRef(); |
| | | const [isModalVisible, setIsModalVisible] = useState(false); |
| | |
| | | formRef.current.validate(undefined, (errors, values) => { |
| | | if (!errors) { |
| | | handleAssign({ |
| | | caseTaskId: routeData.caseTaskId, |
| | | caseTaskId: props.caseTaskId, |
| | | assignContent: values.assignContent, |
| | | handleUnitId: wantUser['handleUnit'][0].value, |
| | | handleUnitName: wantUser['handleUnit'][0].name, |
| | |
| | | |
| | | //交办请求 |
| | | const handleAssign = async (data) => { |
| | | const res = await assign({ ...data, caseTaskId: props.caseTaskId }) |
| | | const res = await assign(data) |
| | | if (res.type) { |
| | | $$.infoSuccess({ content: '交办成功!' }); |
| | | props.onCancel(); |