'use strict'; /** * * * @author Mai * @date * @version */ const status = { uncheck: 1, checking: 2, checked: 3, checkNo: 4, }; const statusString = []; statusString[status.uncheck] = '待上报'; statusString[status.checking] = '审批中'; statusString[status.checked] = '审批完成'; statusString[status.checkNo] = '审批退回'; const statusButton = []; statusButton[status.uncheck] = '上报'; statusButton[status.checking] = '审批'; statusButton[status.checked] = ''; statusButton[status.checked] = '重新上报'; const statusClass = []; statusClass[status.uncheck] = ''; statusClass[status.checking] = 'text-warning'; statusClass[status.checked] = 'text-success'; statusClass[status.checkNo] = 'text-warning'; const filter = { status: { pending: 1, uncheck: 2, checking: 3, checked: 4, checkNo: 5, }, statusString: [], } filter.statusString[filter.status.pending] = '待处理'; filter.statusString[filter.status.uncheck] = '待上报'; filter.statusString[filter.status.checking] = '进行中'; filter.statusString[filter.status.checked] = '已完成'; filter.statusString[filter.status.checkNo] = '不通过'; module.exports = { flow: { status, statusString, statusButton, statusClass, }, filter, };