sp_shenpi.js 1.3 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. contract: 16,
  12. };
  13. const sp_other_type = {
  14. };
  15. const sp_lc = [
  16. { code: 'contract', type: sp_type.contract, name: '项目合同审批' },
  17. ];
  18. const sp_status = {
  19. sqspr: 1, // 授权审批人
  20. gdspl: 2, // 固定审批流
  21. gdzs: 3, // 固定终审
  22. };
  23. const sp_status_list = [];
  24. sp_status_list[sp_status.sqspr] = { status: sp_status.sqspr, name: '授权审批人', msg: '由上报人设置审批流程' };
  25. sp_status_list[sp_status.gdspl] = { status: sp_status.gdspl, name: '固定审批流', msg: '审批流程固定,上报人只能按照设置好的审批流程进行' };
  26. sp_status_list[sp_status.gdzs] = { status: sp_status.gdzs, name: '固定终审', msg: '结束审批流为固定人,终审前的审批流程由上报人设置,即授权审批人' };
  27. const contract_type_list = [
  28. { code: 'contract', name: '合同审批' },
  29. { code: 'expenses', name: '合同支付' },
  30. { code: 'income', name: '合同回款' },
  31. ];
  32. const defaultInfo = {
  33. shenpi: {
  34. contract: 1,
  35. },
  36. };
  37. module.exports = {
  38. sp_type,
  39. sp_other_type,
  40. sp_lc,
  41. sp_status,
  42. sp_status_list,
  43. contract_type_list,
  44. defaultInfo,
  45. };