shenpi.js 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. 'use strict';
  2. /**
  3. * 审批流程设置
  4. *
  5. * @author ELlisran
  6. * @date 2020/10/20
  7. * @version
  8. */
  9. // 审批类型
  10. const sp_type = {
  11. advance: 1,
  12. ledger: 2,
  13. revise: 3,
  14. stage: 4,
  15. settle: 7,
  16. change: 5,
  17. material: 6,
  18. };
  19. // const sp_name = [];
  20. // sp_name[sp_type.advance] = '预付款审批';
  21. // sp_name[sp_type.ledger] = '台账审批';
  22. // sp_name[sp_type.revise] = '台账修订';
  23. // sp_name[sp_type.stage] = '计量期审批';
  24. // sp_name[sp_type.change] = '工程变更审批';
  25. // sp_name[sp_type.material] = '材料调差审批';
  26. const sp_lc = [
  27. { code: 'advance', type: sp_type.advance, name: '预付款审批' },
  28. { code: 'ledger', type: sp_type.ledger, name: '台账审批' },
  29. { code: 'revise', type: sp_type.revise, name: '台账修订' },
  30. { code: 'stage', type: sp_type.stage, name: '计量期审批' },
  31. { code: 'settle', type: sp_type.settle, name: '结算期审批' },
  32. { code: 'change', type: sp_type.change, name: '工程变更审批' },
  33. { code: 'material', type: sp_type.material, name: '材料调差审批' },
  34. ];
  35. const sp_status = {
  36. sqspr: 1, // 授权审批人
  37. gdspl: 2, // 固定审批流
  38. gdzs: 3, // 固定终审
  39. };
  40. const sp_status_list = [];
  41. sp_status_list[sp_status.sqspr] = { status: sp_status.sqspr, name: '授权审批人', msg: '由上报人设置审批流程' };
  42. sp_status_list[sp_status.gdspl] = { status: sp_status.gdspl, name: '固定审批流', msg: '审批流程固定,上报人只能按照设置好的审批流程进行' };
  43. sp_status_list[sp_status.gdzs] = { status: sp_status.gdzs, name: '固定终审', msg: '结束审批流为固定人,终审前的审批流程由上报人设置,即授权审批人' };
  44. const change_type = {
  45. change: true,
  46. changeProject: false,
  47. changeApply: false,
  48. changePlan: false,
  49. };
  50. const change_type_list = [
  51. { code: 'change', name: '工程变更' },
  52. { code: 'changeProject', name: '变更立项' },
  53. { code: 'changeApply', name: '变更申请' },
  54. { code: 'changePlan', name: '变更方案' },
  55. ];
  56. module.exports = {
  57. sp_type,
  58. sp_lc,
  59. sp_status,
  60. sp_status_list,
  61. change_type,
  62. change_type_list,
  63. };