|
@@ -824,16 +824,17 @@ function TaskDetail(props: IPropsType) {
|
|
|
</Row>
|
|
|
<Row justify="end" gutter={10}>
|
|
|
<Col>
|
|
|
- <Button
|
|
|
- className={styles.footerBtn}
|
|
|
- shape="round"
|
|
|
- onClick={() => {
|
|
|
- openSpecifiedModal('ignore');
|
|
|
- }}
|
|
|
- disabled={mandateDetail?.Status?.value !== 0}
|
|
|
- >
|
|
|
- 忽略
|
|
|
- </Button>
|
|
|
+ {mandateDetail?.Status?.value === 0 && (
|
|
|
+ <Button
|
|
|
+ className={styles.footerBtn}
|
|
|
+ shape="round"
|
|
|
+ onClick={() => {
|
|
|
+ openSpecifiedModal('ignore');
|
|
|
+ }}
|
|
|
+ >
|
|
|
+ 忽略
|
|
|
+ </Button>
|
|
|
+ )}
|
|
|
</Col>
|
|
|
<Col>
|
|
|
{(mandateDetail?.MandateClass?.value === 1 ||
|
|
@@ -845,7 +846,6 @@ function TaskDetail(props: IPropsType) {
|
|
|
onClick={() => {
|
|
|
openSpecifiedModal('manual');
|
|
|
}}
|
|
|
- disabled={mandateDetail?.Status?.value !== 0}
|
|
|
>
|
|
|
手动处理
|
|
|
</Button>
|
|
@@ -861,26 +861,24 @@ function TaskDetail(props: IPropsType) {
|
|
|
onClick={() => {
|
|
|
openSpecifiedModal('auto');
|
|
|
}}
|
|
|
- disabled={mandateDetail?.Status?.value !== 0}
|
|
|
>
|
|
|
自动处理
|
|
|
</Button>
|
|
|
)}
|
|
|
</Col>
|
|
|
<Col>
|
|
|
- <Button
|
|
|
- className={styles.footerBtn}
|
|
|
- shape="round"
|
|
|
- onClick={() => {
|
|
|
- openSpecifiedModal('dispatch');
|
|
|
- }}
|
|
|
- disabled={
|
|
|
- mandateChild?.filter((item) => item.Status === 0)
|
|
|
- ?.length === 0
|
|
|
- }
|
|
|
- >
|
|
|
- 派单
|
|
|
- </Button>
|
|
|
+ {mandateChild?.filter((item) => item.Status === 0)?.length >
|
|
|
+ 0 && (
|
|
|
+ <Button
|
|
|
+ className={styles.footerBtn}
|
|
|
+ shape="round"
|
|
|
+ onClick={() => {
|
|
|
+ openSpecifiedModal('dispatch');
|
|
|
+ }}
|
|
|
+ >
|
|
|
+ 派单
|
|
|
+ </Button>
|
|
|
+ )}
|
|
|
</Col>
|
|
|
</Row>
|
|
|
</div>
|