export const approveState2Name = (status) => {
	switch (status) {
		case 0:
			return '未提交'
		case 1:
			return '待审核'
		case 2:
			return '已驳回'
		case 3:
			return '已通过'
		default:
			return '-'
	}
}

export const approveState2Name2 = (status) => {
	switch (status) {
		case 0:
			return '待审核'
		case 1:
			return '已审核'
		case 2:
			return '驳回'
		default:
			return '-'
	}
}

export const couldEdit = (data) => {
	return [0, 2].includes(data.status)
}

export const couldApprove = (data) => {
	return [0].includes(data.auditStatus)
}
