123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- 'use strict';
- /**
- *
- *
- * @author Mai
- * @date
- * @version
- */
- const pushTiming = [
- { value:'ledger.flow', name: '台账-上报/审批' },
- { value:'ledger.checked', name: '台账-审批通过' },
- { value:'revise.flow', name: '台账修订-上报/审批' },
- { value:'revise.checked', name: '台账修订-审批通过' },
- { value:'advance.flow', name: '预付款-上报/审批' },
- { value:'advance.checked', name: '预付款-审批通过' },
- { value:'stage.flow', name: '期-上报/审批' },
- { value:'stage.checked', name: '期-审批通过' },
- { value:'material.flow', name: '材差-上报/审批' },
- { value:'material.checked', name: '材差-审批通过' },
- { value:'settle.flow', name: '结算期-上报/审批' },
- { value:'settle.checked', name: '结算期-审批通过' },
- { value:'change.flow', name: '变更令-上报/审批' },
- { value:'change.checked', name: '变更令-审批通过' },
- { value:'change_apply.flow', name: '变更申请-上报/审批' },
- { value:'change_apply.checked', name: '变更申请-审批通过' },
- { value:'change_plan.flow', name: '变更方案-上报/审批' },
- { value:'change_plan.checked', name: '变更方案-审批通过' },
- { value:'change_project.flow', name: '变更立项-上报/审批' },
- { value:'change_project.checked', name: '变更立项-审批通过' },
- { value:'report.file', name: '报表-推送归档' },
- { value:'report.change_file', name: '报表-变更令-同步档案系统' },
- { value:'report.change_plan_file', name: '报表-变更方案-同步档案系统' },
- { value:'report.change_apply_file', name: '报表-变更申请-同步档案系统' },
- ];
- const pushOperate = (function () {
- const result = {};
- for (const pt of pushTiming) {
- const path = pt.value.split('.');
- if (!result[path[0]]) result[path[0]] = {};
- result[path[0]][path[1]] = pt.value;
- }
- return result;
- })();
- const specMsgStatus = (function () {
- const status = { wait: 0, exec: 1, done: 2 };
- const name = [];
- name[status.wait] = '等待执行';
- name[status.exec] = '等待中';
- name[status.done] = '执行完成';
- return { status, name };
- })();
- const pullClass = [
- { value: 'gs-da', name: '甘肃档案' },
- ];
- const pullType = [
- { value: 'sync-ledger', name: '同步台账' },
- ];
- module.exports = {
- pushTiming, pushOperate, specMsgStatus, pullClass, pullType,
- };
|