mh_jy_safe_web/src/files/list/ED008.js

16 lines
651 B
JavaScript
Raw Normal View History

2025-08-25 10:08:30 +08:00
import { Steps } from 'antd'
const { Step } = Steps;
export default {
onSetCol: ({ record }) => {
return (
<Steps size="small" labelPlacement='vertical'
current={record.IS_PERFORM ? 4 : record.FLOW_STATUS == 0 ? 0 : record.FLOW_STATUS == 1 ? 1 : 2} status={record.FLOW_STATUS == 3 || record.FLOW_STATUS == 4 ? "error" : "process"}>
<Step title="待审批" />
<Step title="审批中"/>
<Step title={record.FLOW_STATUS == 3 || record.FLOW_STATUS == 4 ? "审批驳回" : "待执行" }/>
<Step title="已完成" />
</Steps>
)
}
}