You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
202 lines
4.5 KiB
202 lines
4.5 KiB
// 审批流状态 和 阶段审核状态
|
|
export default {
|
|
methods: {
|
|
/**
|
|
* 合同回款的审核状态
|
|
* @param {*} status
|
|
*/
|
|
getCRMStatusColor(status) {
|
|
if (status == 0) {
|
|
return '#ffc539'
|
|
} else if (status == 1) {
|
|
return '#398dff'
|
|
} else if (status == 2) {
|
|
return '#20b559'
|
|
} else if (status == 3) {
|
|
return '#f95a5a'
|
|
} else if (status == 4) {
|
|
return '#dee8ff'
|
|
} else if (status == 5) {
|
|
return '#d9d9d9'
|
|
} else if (status == 6) {
|
|
return '#bfbfbf'
|
|
}
|
|
},
|
|
|
|
/**
|
|
* 合同回款的审核状态
|
|
* @param {*} status
|
|
*/
|
|
getCRMStatusName(status) {
|
|
if (status == 0) {
|
|
return '待审核'
|
|
} else if (status == 1) {
|
|
return '审核中'
|
|
} else if (status == 2) {
|
|
return '通过'
|
|
} else if (status == 3) {
|
|
return '拒绝'
|
|
} else if (status == 4) {
|
|
return '撤回'
|
|
} else if (status == 5) {
|
|
return '未提交'
|
|
} else if (status == 6) {
|
|
return '已作废'
|
|
}
|
|
return ''
|
|
},
|
|
|
|
/**
|
|
* 审核颜色
|
|
* @param {*} status
|
|
*/
|
|
getStatusColor(status) {
|
|
if (status == 0) {
|
|
return '#ffc539'
|
|
} else if (status == 1) {
|
|
return '#20b559'
|
|
} else if (status == 2) {
|
|
return '#f95a5a'
|
|
} else if (status == 3) {
|
|
return '#398dff'
|
|
} else if (status == 4) {
|
|
return '#999'
|
|
} else if (status == 5) {
|
|
return '#d9d9d9'
|
|
} else if (status == 6) {
|
|
return '#2362FB'
|
|
} else if (status == 8) {
|
|
return '#bfbfbf'
|
|
}
|
|
},
|
|
|
|
/**
|
|
* 审核名称
|
|
* @param {*} status
|
|
*/
|
|
getStatusName(status) {
|
|
if (status == 4) {
|
|
return '待审核'
|
|
} else if (status == 1) {
|
|
return '通过'
|
|
} else if (status == 0) {
|
|
return '拒绝'
|
|
} else if (status == 300) {
|
|
return '审核中'
|
|
} else if (status == 2) {
|
|
return '撤回'
|
|
} else if (status == 5) {
|
|
return '未提交'
|
|
} else if (status == 3) {
|
|
return '创建'
|
|
} else if (status == 8) {
|
|
return '已作废'
|
|
}
|
|
return ''
|
|
},
|
|
|
|
/**
|
|
* 审核图标
|
|
*/
|
|
getStatusIcon(status) {
|
|
if (status == 0) {
|
|
return 'wk wk-time'
|
|
} else if (status == 1) {
|
|
return 'wk wk-success'
|
|
} else if (status == 2) {
|
|
return 'wk wk-close'
|
|
} else if (status == 3) {
|
|
return 'wk wk-time'
|
|
} else if (status == 4) {
|
|
return 'wk wk-reset'
|
|
} else if (status == 5) {
|
|
return 'wk wk-time'
|
|
} else if (status == 6) {
|
|
return 'wk wk-l-plus'
|
|
} else if (status == 8) {
|
|
return 'wk wk-invalid'
|
|
}
|
|
return ''
|
|
},
|
|
|
|
/**
|
|
* 审核图标
|
|
*/
|
|
getXhStatusList() {
|
|
return [
|
|
{
|
|
label: '待审核',
|
|
value: 0
|
|
}, {
|
|
label: '通过',
|
|
value: 1
|
|
}, {
|
|
label: '拒绝',
|
|
value: 2
|
|
}, {
|
|
label: '审核中',
|
|
value: 3
|
|
}, {
|
|
label: '撤回',
|
|
value: 4
|
|
}
|
|
]
|
|
},
|
|
|
|
/**
|
|
* 图片标示
|
|
*/
|
|
getStatusImageIcon(status) {
|
|
if (status == 5 || status == 4) {
|
|
return require('@/assets/img/check_wait.png')
|
|
} else if (status == 1) {
|
|
return require('@/assets/img/check_suc.png')
|
|
} else if (status == 0) {
|
|
return require('@/assets/img/check_fail.png')
|
|
} else if (status == 2) {
|
|
return require('@/assets/img/check_revoke.png')
|
|
} else if (status == 3) {
|
|
return require('@/assets/img/check_create.png')
|
|
}
|
|
return ''
|
|
},
|
|
/**
|
|
* 任务/审批 审核名称
|
|
* @param {*} status
|
|
*/
|
|
getTaskStatusName(status) {
|
|
if (status == 0) {
|
|
return '待审核'
|
|
} else if (status == 2) {
|
|
return '通过'
|
|
} else if (status == 3) {
|
|
return '拒绝'
|
|
} else if (status == 1) {
|
|
return '审核中'
|
|
} else if (status == 4) {
|
|
return '撤回'
|
|
}
|
|
return ''
|
|
},
|
|
/**
|
|
* 任务/审批 审核状态颜色
|
|
* @param {*} status
|
|
*/
|
|
getTaskStatusColor(status) {
|
|
if (status == 0) {
|
|
return '#ffc539'
|
|
} else if (status == 1) {
|
|
return '#398dff'
|
|
} else if (status == 2) {
|
|
return '#20b559'
|
|
} else if (status == 3) {
|
|
return '#f95a5a'
|
|
} else if (status == 4) {
|
|
return '#dee8ff'
|
|
} else if (status == 5) {
|
|
return '#d9d9d9'
|
|
}
|
|
}
|
|
}
|
|
}
|