|
@@ -24,6 +24,29 @@ const auditType = (function () {
|
|
|
return { types, key, info };
|
|
|
})();
|
|
|
|
|
|
+
|
|
|
+// 期审批流程
|
|
|
+const common = (function() {
|
|
|
+ const auditStatusInfo = [
|
|
|
+ { key: 'uncheck', value: 1, title: '待上报', class: '', btnTitle: '上报', btnClass: 'btn-primary' },
|
|
|
+ { key: 'checking', value: 2, title: '审批中', class: 'text-warning', btnTitle: '审批', btnClass: 'btn-success' },
|
|
|
+ { key: 'checked', value: 3, title: '审批通过', class: 'text-success', btnTitle: '', btnClass: 'btn-primary' },
|
|
|
+ { key: 'checkNo', value: 4, title: '审批退回', class: 'text-warning', btnTitle: '重新上报', btnClass: 'btn-primary' },
|
|
|
+ { key: 'checkNoPre', value: 5, title: '审批退回', class: 'text-warning', btnTitle: '重新审批', btnClass: 'btn-primary' },
|
|
|
+ { key: 'checkSkip', value: 6, title: '', class: '', btnTitle: '', btnClass: '' },
|
|
|
+ { key: 'checkCancel', value: 7, title: '撤回', class: 'text-warning', btnTitle: '', btnClass: '' },
|
|
|
+ { key: 'checkAgain', value: 8, title: '重新审批', class: 'text-warning', btnTitle: '', btnClass: '' },
|
|
|
+ ];
|
|
|
+ return (function(){
|
|
|
+ const status = {}, info = [];
|
|
|
+ for (const i of auditStatusInfo) {
|
|
|
+ status[i.key] = i.value;
|
|
|
+ info[i.value] = i;
|
|
|
+ }
|
|
|
+ return {status, info, timesLen: 100, backType: { org: 1, pre: 2 }};
|
|
|
+ })();
|
|
|
+})();
|
|
|
+
|
|
|
// 台账审批流程
|
|
|
const ledger = (function() {
|
|
|
const status = {
|
|
@@ -1075,6 +1098,7 @@ const changePlan = (function() {
|
|
|
|
|
|
// 推送类型
|
|
|
const pushType = {
|
|
|
+ common,
|
|
|
material: 1,
|
|
|
stage: 2,
|
|
|
change: 3,
|