|
@@ -1,5 +1,5 @@
|
|
|
import { userStore } from '@/store/mobx'
|
|
|
-import { iAuditHistoryState, iAuditor, iLatestAuditorState } from '@/types/safe'
|
|
|
+import { iAuditHistoryState, iAuditor } from '@/types/safe'
|
|
|
import { iAccountGroupItem, iUserInfo } from '@/types/setting'
|
|
|
import { auditConsts } from '@/utils/common/constStatus'
|
|
|
import { getUserGroup } from '@/utils/common/user'
|
|
@@ -26,7 +26,7 @@ export const GroupItem: React.FC<iGroupItem> = props => {
|
|
|
return props.children.length ? (
|
|
|
<div>
|
|
|
<div className="group-item-label-name pi-align-center">
|
|
|
- <ExpandButton expanded={visible} onExpand={() => setVisible(!visible)}></ExpandButton>
|
|
|
+ <ExpandButton expanded={visible} onExpand={() => setVisible(!visible)} />
|
|
|
<span onClick={changeVisible} className="pi-mg-left-5">
|
|
|
{props.value}
|
|
|
</span>
|
|
@@ -177,7 +177,7 @@ const Index: React.FC<iAuditContentProps> = props => {
|
|
|
if (isEnd) {
|
|
|
iconType = 'xxh-caret-down1'
|
|
|
}
|
|
|
- return <div className={[ 'timeline-item-icon', 'pi-justify-center', 'pi-align-center', bgColor ].join(' ')}>{iconType ? <SvgIcon type={iconType}></SvgIcon> : null}</div>
|
|
|
+ return <div className={[ 'timeline-item-icon', 'pi-justify-center', 'pi-align-center', bgColor ].join(' ')}>{iconType ? <SvgIcon type={iconType} /> : null}</div>
|
|
|
}
|
|
|
|
|
|
const renderStatusEle = (status: number, progress: string) => {
|
|
@@ -268,7 +268,7 @@ const Index: React.FC<iAuditContentProps> = props => {
|
|
|
<tr>
|
|
|
<td className="pi-text-center">检查人</td>
|
|
|
<td>
|
|
|
- <SvgIcon type="xxh-play-circle"></SvgIcon>
|
|
|
+ <SvgIcon type="xxh-play-circle" />
|
|
|
<span className="pi-mg-left-3">{auditors[0]?.name}</span>
|
|
|
<small className="text-muted pi-mg-left-3">{auditors[0]?.position}</small>
|
|
|
</td>
|
|
@@ -287,7 +287,7 @@ const Index: React.FC<iAuditContentProps> = props => {
|
|
|
审批
|
|
|
</td>
|
|
|
<td>
|
|
|
- <SvgIcon type={item.status === 0 ? 'xxh-stop-circle' : 'xxh-chevron-circle-down'}></SvgIcon>
|
|
|
+ <SvgIcon type={item.status === 0 ? 'xxh-stop-circle' : 'xxh-chevron-circle-down'} />
|
|
|
<span className="pi-mg-left-3">{item.name}</span>
|
|
|
<small className="text-muted pi-mg-left-3">{item.position}</small>
|
|
|
</td>
|
|
@@ -300,7 +300,7 @@ const Index: React.FC<iAuditContentProps> = props => {
|
|
|
) : (
|
|
|
<tr key={item.id}>
|
|
|
<td>
|
|
|
- <SvgIcon type={item.status === 0 ? 'xxh-stop-circle' : 'xxh-chevron-circle-down'}></SvgIcon>
|
|
|
+ <SvgIcon type={item.status === 0 ? 'xxh-stop-circle' : 'xxh-chevron-circle-down'} />
|
|
|
<span className="pi-mg-left-3">{item.name}</span>
|
|
|
<small className="text-muted pi-mg-left-3">{item.position}</small>
|
|
|
</td>
|
|
@@ -315,7 +315,7 @@ const Index: React.FC<iAuditContentProps> = props => {
|
|
|
<tr>
|
|
|
<td className="pi-text-center">整改人</td>
|
|
|
<td>
|
|
|
- <SvgIcon type={status === 0 ? 'xxh-stop-circle' : 'xxh-chevron-circle-down'}></SvgIcon>
|
|
|
+ <SvgIcon type={status === 0 ? 'xxh-stop-circle' : 'xxh-chevron-circle-down'} />
|
|
|
{status ? (
|
|
|
auditors.find(item => item.progress === '1') ? (
|
|
|
<>
|
|
@@ -352,7 +352,7 @@ const Index: React.FC<iAuditContentProps> = props => {
|
|
|
复查
|
|
|
</td>
|
|
|
<td>
|
|
|
- <SvgIcon type={item.status === 0 ? 'xxh-stop-circle' : 'xxh-chevron-circle-down'}></SvgIcon>
|
|
|
+ <SvgIcon type={item.status === 0 ? 'xxh-stop-circle' : 'xxh-chevron-circle-down'} />
|
|
|
<span className="pi-mg-left-3">{item.name}</span>
|
|
|
<small className="text-muted pi-mg-left-3">{item.position}</small>
|
|
|
</td>
|
|
@@ -365,7 +365,7 @@ const Index: React.FC<iAuditContentProps> = props => {
|
|
|
) : (
|
|
|
<tr key={item.id}>
|
|
|
<td>
|
|
|
- <SvgIcon type={item.status === 0 ? 'xxh-stop-circle' : 'xxh-chevron-circle-down'}></SvgIcon>
|
|
|
+ <SvgIcon type={item.status === 0 ? 'xxh-stop-circle' : 'xxh-chevron-circle-down'} />
|
|
|
<span className="pi-mg-left-3">{item.name}</span>
|
|
|
<small className="text-muted pi-mg-left-3">{item.position}</small>
|
|
|
</td>
|
|
@@ -394,8 +394,8 @@ const Index: React.FC<iAuditContentProps> = props => {
|
|
|
className="timeline-item-date pi-flex-column"
|
|
|
dangerouslySetInnerHTML={{
|
|
|
__html: formatDate(auditor.create_time)
|
|
|
- }}></div>
|
|
|
- <div className={item.length - 1 === idx ? '' : 'timeline-item-tail'}></div>
|
|
|
+ }} />
|
|
|
+ <div className={item.length - 1 === idx ? '' : 'timeline-item-tail'} />
|
|
|
{renderStatusIcon(auditor.status, idx === item.length - 1)}
|
|
|
<div className="timeline-item-content">
|
|
|
<div className="card-container">
|
|
@@ -442,9 +442,9 @@ const Index: React.FC<iAuditContentProps> = props => {
|
|
|
<td width="70%">
|
|
|
<div className="pi-justify-end">
|
|
|
<Popover
|
|
|
- title={<Input.Search size="small" placeholder="姓名/手机 检索" onSearch={search} onChange={e => change(e)}></Input.Search>}
|
|
|
+ title={<Input.Search size="small" placeholder="姓名/手机 检索" onSearch={search} onChange={e => change(e)} />}
|
|
|
content={groups.map(item => (
|
|
|
- <GroupItem {...item} key={item.value} onSelect={(item: iUserInfo) => itemSelectHandler('check', item)}></GroupItem>
|
|
|
+ <GroupItem {...item} key={item.value} onSelect={(item: iUserInfo) => itemSelectHandler('check', item)} />
|
|
|
))}
|
|
|
overlayClassName="popover-card"
|
|
|
trigger="click"
|
|
@@ -452,7 +452,7 @@ const Index: React.FC<iAuditContentProps> = props => {
|
|
|
onVisibleChange={visible => handleVisibleChange('check', visible)}
|
|
|
placement="bottomRight">
|
|
|
<ZhButton size="small" onClick={() => showPopover('check')}>
|
|
|
- <span>添加审批流程</span><SvgIcon type="xxh-caret-down"></SvgIcon>
|
|
|
+ <span>添加审批流程</span><SvgIcon type="xxh-caret-down" />
|
|
|
</ZhButton>
|
|
|
</Popover>
|
|
|
</div>
|
|
@@ -470,9 +470,9 @@ const Index: React.FC<iAuditContentProps> = props => {
|
|
|
</div>
|
|
|
<div className="pi-justify-end">
|
|
|
<Popover
|
|
|
- title={<Input.Search size="small" placeholder="姓名/手机 检索" onSearch={search} onChange={e => change(e)}></Input.Search>}
|
|
|
+ title={<Input.Search size="small" placeholder="姓名/手机 检索" onSearch={search} onChange={e => change(e)} />}
|
|
|
content={groups.map(item => (
|
|
|
- <GroupItem {...item} key={item.value} onSelect={(item: iUserInfo) => itemSelectHandler('reCheck', item)}></GroupItem>
|
|
|
+ <GroupItem {...item} key={item.value} onSelect={(item: iUserInfo) => itemSelectHandler('reCheck', item)} />
|
|
|
))}
|
|
|
overlayClassName="popover-card"
|
|
|
trigger="click"
|
|
@@ -480,7 +480,7 @@ const Index: React.FC<iAuditContentProps> = props => {
|
|
|
onVisibleChange={visible => handleVisibleChange('reCheck', visible)}
|
|
|
placement="bottomRight">
|
|
|
<ZhButton size="small" onClick={() => showPopover('reCheck')}>
|
|
|
- <span>添加审批流程</span><SvgIcon type="xxh-caret-down"></SvgIcon>
|
|
|
+ <span>添加审批流程</span><SvgIcon type="xxh-caret-down" />
|
|
|
</ZhButton>
|
|
|
</Popover>
|
|
|
</div>
|