shenpi.js 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. change: 5,
  16. material: 6,
  17. };
  18. // const sp_name = [];
  19. // sp_name[sp_type.advance] = '预付款审批';
  20. // sp_name[sp_type.ledger] = '台账审批';
  21. // sp_name[sp_type.revise] = '台账修订';
  22. // sp_name[sp_type.stage] = '计量期审批';
  23. // sp_name[sp_type.change] = '工程变更审批';
  24. // sp_name[sp_type.material] = '材料调差审批';
  25. const sp_lc = [
  26. { code: 'advance', type: sp_type.advance, name: '预付款审批' },
  27. { code: 'ledger', type: sp_type.ledger, name: '台账审批' },
  28. { code: 'revise', type: sp_type.revise, name: '台账修订' },
  29. { code: 'stage', type: sp_type.stage, name: '计量期审批' },
  30. { code: 'change', type: sp_type.change, name: '工程变更审批' },
  31. { code: 'material', type: sp_type.material, name: '材料调差审批' },
  32. ];
  33. const sp_status = {
  34. sqspr: 1, // 授权审批人
  35. gdspl: 2, // 固定审批流
  36. gdzs: 3, // 固定终审
  37. };
  38. const sp_status_list = [];
  39. sp_status_list[sp_status.sqspr] = { status: sp_status.sqspr, name: '授权审批人', msg: '由上报人设置审批流程' };
  40. sp_status_list[sp_status.gdspl] = { status: sp_status.gdspl, name: '固定审批流', msg: '审批流程固定,上报人只能按照设置好的审批流程进行' };
  41. sp_status_list[sp_status.gdzs] = { status: sp_status.gdzs, name: '固定终审', msg: '结束审批流为固定人,终审前的审批流程由上报人设置,即授权审批人' };
  42. module.exports = {
  43. sp_type,
  44. sp_lc,
  45. sp_status,
  46. sp_status_list,
  47. };