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>
        )
    }
}