|
@@ -15,7 +15,7 @@ import {
|
|
|
import { getMandateDetail } from '@/services/TaskManage';
|
|
|
import { useLocation } from '@@/exports';
|
|
|
import { connect, useRequest } from '@umijs/max';
|
|
|
-import { Button, Col, Divider, Row, Table } from 'antd';
|
|
|
+import { Button, Col, Divider, Row } from 'antd';
|
|
|
import { useEffect, useState } from 'react';
|
|
|
import { useNavigate } from 'umi';
|
|
|
import styles from './taskDetail.less';
|
|
@@ -86,7 +86,7 @@ function TaskDetail(props: IPropsType) {
|
|
|
}
|
|
|
}, []);
|
|
|
|
|
|
- const goTaskOrder = (orderID: number, orderType:number) => {
|
|
|
+ const goTaskOrder = (orderID: number, orderType: number) => {
|
|
|
navigate(
|
|
|
`/task-manage/list/order-detail?project_id=${project_id}&order_id=${orderID}&order_type=${orderType}`,
|
|
|
);
|
|
@@ -99,11 +99,14 @@ function TaskDetail(props: IPropsType) {
|
|
|
<div className={styles.normalInfo}>
|
|
|
<Row className={styles.infoRow}>
|
|
|
<Col span={16}>时间:{mandateDetail?.CreateTime}</Col>
|
|
|
+ {/*// @ts-ignore*/}
|
|
|
<Col span={8}>任务类别:{mandateDetail?.MandateClass?.label}</Col>
|
|
|
</Row>
|
|
|
<Row>
|
|
|
+ {/*// @ts-ignore*/}
|
|
|
<Col span={16}>任务状态:{mandateDetail?.Status?.label}</Col>
|
|
|
<Col span={8}>
|
|
|
+ {/*// @ts-ignore*/}
|
|
|
任务负责人:{mandateDetail?.ResponsiblePeople?.CName}
|
|
|
</Col>
|
|
|
</Row>
|
|
@@ -135,9 +138,11 @@ function TaskDetail(props: IPropsType) {
|
|
|
<Col span={12}>
|
|
|
工单状态:
|
|
|
<span style={{ color: '#5697e4' }}>
|
|
|
+ {/*// @ts-ignore*/}
|
|
|
{order.Status?.label}
|
|
|
</span>
|
|
|
</Col>
|
|
|
+ {/*// @ts-ignore*/}
|
|
|
<Col span={12}>工单负责人:{order.Responsible?.CName}</Col>
|
|
|
</Row>
|
|
|
</div>
|
|
@@ -148,6 +153,7 @@ function TaskDetail(props: IPropsType) {
|
|
|
type="text"
|
|
|
ghost
|
|
|
onClick={() => {
|
|
|
+ // @ts-ignore
|
|
|
goTaskOrder(order.Id, order.RecordType?.value);
|
|
|
}}
|
|
|
>
|