spec_3f.js 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. 'use strict';
  2. /**
  3. *
  4. *
  5. * @author Mai
  6. * @date
  7. * @version
  8. */
  9. const pushTiming = [
  10. { value:'ledger.flow', name: '台账-上报/审批' },
  11. { value:'ledger.checked', name: '台账-审批通过' },
  12. { value:'revise.flow', name: '台账修订-上报/审批' },
  13. { value:'revise.checked', name: '台账修订-审批通过' },
  14. { value:'advance.flow', name: '预付款-上报/审批' },
  15. { value:'advance.checked', name: '预付款-审批通过' },
  16. { value:'stage.flow', name: '期-上报/审批' },
  17. { value:'stage.checked', name: '期-审批通过' },
  18. { value:'material.flow', name: '材差-上报/审批' },
  19. { value:'material.checked', name: '材差-审批通过' },
  20. { value:'settle.flow', name: '结算期-上报/审批' },
  21. { value:'settle.checked', name: '结算期-审批通过' },
  22. { value:'change.flow', name: '变更令-上报/审批' },
  23. { value:'change.checked', name: '变更令-审批通过' },
  24. { value:'change_apply.flow', name: '变更申请-上报/审批' },
  25. { value:'change_apply.checked', name: '变更申请-审批通过' },
  26. { value:'change_plan.flow', name: '变更方案-上报/审批' },
  27. { value:'change_plan.checked', name: '变更方案-审批通过' },
  28. { value:'change_project.flow', name: '变更立项-上报/审批' },
  29. { value:'change_project.checked', name: '变更立项-审批通过' },
  30. { value:'report.file', name: '报表-推送归档' },
  31. { value:'report.change_file', name: '报表-变更令-同步档案系统' },
  32. { value:'report.change_plan_file', name: '报表-变更方案-同步档案系统' },
  33. { value:'report.change_apply_file', name: '报表-变更申请-同步档案系统' },
  34. ];
  35. const pushOperate = (function () {
  36. const result = {};
  37. for (const pt of pushTiming) {
  38. const path = pt.value.split('.');
  39. if (!result[path[0]]) result[path[0]] = {};
  40. result[path[0]][path[1]] = pt.value;
  41. }
  42. return result;
  43. })();
  44. const specMsgStatus = (function () {
  45. const status = { wait: 0, exec: 1, done: 2 };
  46. const name = [];
  47. name[status.wait] = '等待执行';
  48. name[status.exec] = '等待中';
  49. name[status.done] = '执行完成';
  50. return { status, name };
  51. })();
  52. const pullClass = [
  53. { value: 'gs-da', name: '甘肃档案' },
  54. ];
  55. const pullType = [
  56. { value: 'sync-ledger', name: '同步台账' },
  57. ];
  58. module.exports = {
  59. pushTiming, pushOperate, specMsgStatus, pullClass, pullType,
  60. };