| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 | 'use strict';/** * 审批流程设置 * * @author ELlisran * @date 2020/10/20 * @version */// 审批类型const sp_type = {    advance: 1,    ledger: 2,    revise: 3,    stage: 4,    settle: 7,    change: 5,    material: 6,    // financial: 8, // 资金支付审批流程设置不出现在这里,但请别用8这个类型控制审批流程,因为数据库我用了8来表示资金支付固定审批流    phasePay: 9,};const sp_other_type = {    financial: 8,};// const sp_name = [];// sp_name[sp_type.advance] = '预付款审批';// sp_name[sp_type.ledger] = '台账审批';// sp_name[sp_type.revise] = '台账修订';// sp_name[sp_type.stage] = '计量期审批';// sp_name[sp_type.change] = '工程变更审批';// sp_name[sp_type.material] = '材料调差审批';const sp_lc = [    { code: 'advance', type: sp_type.advance, name: '预付款审批' },    { code: 'ledger', type: sp_type.ledger, name: '台账审批' },    { code: 'revise', type: sp_type.revise, name: '台账修订' },    { code: 'stage', type: sp_type.stage, name: '计量期审批' },    { code: 'settle', type: sp_type.settle, name: '结算期审批' },    { code: 'change', type: sp_type.change, name: '工程变更审批' },    { code: 'material', type: sp_type.material, name: '材料调差审批' },    // { code: 'financial', type: sp_type.financial, name: '资金支付审批' },    { code: 'phasePay', type: sp_type.phasePay, name: '合同支付审批' },];const sp_status = {    sqspr: 1, // 授权审批人    gdspl: 2, // 固定审批流    gdzs: 3, // 固定终审};const sp_status_list = [];sp_status_list[sp_status.sqspr] = { status: sp_status.sqspr, name: '授权审批人', msg: '由上报人设置审批流程' };sp_status_list[sp_status.gdspl] = { status: sp_status.gdspl, name: '固定审批流', msg: '审批流程固定,上报人只能按照设置好的审批流程进行' };sp_status_list[sp_status.gdzs] = { status: sp_status.gdzs, name: '固定终审', msg: '结束审批流为固定人,终审前的审批流程由上报人设置,即授权审批人' };const change_type = {    change: true,    changeProject: false,    changeApply: false,    changePlan: false,};const change_type_list = [    { code: 'change', name: '工程变更' },    { code: 'changeProject', name: '变更立项' },    { code: 'changeApply', name: '变更申请' },    { code: 'changePlan', name: '变更方案' },];module.exports = {    sp_type,    sp_other_type,    sp_lc,    sp_status,    sp_status_list,    change_type,    change_type_list,};
 |