|
@@ -1,4 +1,4 @@
|
|
|
-import { GroupItem } from '@/components/AuditContent'
|
|
|
+import { GroupItem } from '@/pages/Quality/Content/Info/Detail/components/AuditContent'
|
|
|
import Authorization from '@/components/Authorization'
|
|
|
import { ZhAuditBackButton, ZhButton, ZhCloseButton, ZhSubmitButton } from '@/components/Button'
|
|
|
import { tenderStore, userStore } from '@/store/mobx'
|
|
@@ -7,6 +7,7 @@ import { iAccountGroupItem, iUserInfo } from '@/types/setting'
|
|
|
import { getUserGroup } from '@/utils/common/user'
|
|
|
import { Button, Form, Input, message, Modal, Popover } from 'antd'
|
|
|
import React, { ChangeEvent, useEffect, useMemo, useState } from 'react'
|
|
|
+import SvgIcon from '@/components/SvgIcon'
|
|
|
interface iAuditModalProps {
|
|
|
type: 'safe' | 'quality'
|
|
|
onCancel: () => void
|
|
@@ -71,6 +72,9 @@ const AuditModal: React.FC<iAuditModalProps> = props => {
|
|
|
if (type === 'pass' && isLastAuditor && curAuditor.progress === '0' && !user.id) {
|
|
|
return message.error('请指定整改人')
|
|
|
}
|
|
|
+ if (type === 'back' && !user.id) {
|
|
|
+ return message.error('请选择退回流程')
|
|
|
+ }
|
|
|
onCreate(values)
|
|
|
})
|
|
|
}
|
|
@@ -264,7 +268,8 @@ const AuditModal: React.FC<iAuditModalProps> = props => {
|
|
|
onVisibleChange={visible => handleVisibleChange(visible)}
|
|
|
placement="bottomLeft">
|
|
|
<ZhButton size="small" onClick={showPopover}>
|
|
|
- 选择退回流程
|
|
|
+ <span>选择退回流程</span>
|
|
|
+ <SvgIcon type="xxh-caret-down1" />
|
|
|
</ZhButton>
|
|
|
</Popover>
|
|
|
) : null}
|
|
@@ -275,6 +280,7 @@ const AuditModal: React.FC<iAuditModalProps> = props => {
|
|
|
<span>{user.name}</span>
|
|
|
</div>
|
|
|
) : null}
|
|
|
+
|
|
|
</>
|
|
|
) : null}
|
|
|
{type === 'delete' ? (
|