xyvcard-reports 0.0.32 → 0.0.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{FileSaver.min-B7nWY3qI.mjs → FileSaver.min-7ON83uco.mjs} +1 -1
- package/dist/{add-CRTiKn3Z.mjs → add-CqXS2X8y.mjs} +2 -2
- package/dist/{edit-CKWRpBTP.mjs → edit--WrHf-eK.mjs} +2 -2
- package/dist/{edit-B2gOepu-.mjs → edit-B4F6vLIL.mjs} +3 -3
- package/dist/{edit-ByCEeJ8T.mjs → edit-BB8j2HwF.mjs} +2 -2
- package/dist/{edit-BuCZOFbq.mjs → edit-BBlRCp2h.mjs} +2 -2
- package/dist/{edit-CeOiZdhH.mjs → edit-BKnNpNWv.mjs} +1 -1
- package/dist/{edit-BSAJFciZ.mjs → edit-Bol_FECP.mjs} +1 -1
- package/dist/{edit-Cx8At8FV.mjs → edit-CG90pfMP.mjs} +1 -1
- package/dist/{edit.vue_vue_type_script_setup_true_lang-Znu4OtPS.mjs → edit.vue_vue_type_script_setup_true_lang-BSB4-pqB.mjs} +1 -1
- package/dist/{follow-9LggxhVy.mjs → follow-CsMxnRZN.mjs} +1 -1
- package/dist/{import-upload-Cb5PO1c0.mjs → import-upload-BJIN3iRd.mjs} +1 -1
- package/dist/{import-upload-CrSwTzjn.mjs → import-upload-Dn5vsSua.mjs} +1 -1
- package/dist/index-BQ2A9CZF.mjs +523 -0
- package/dist/{index-BlaGHaM0.mjs → index-BYCo9k6_.mjs} +34 -34
- package/dist/{index-CM4_5S2R.mjs → index-CL8WBODy.mjs} +1 -1
- package/dist/{index-C6cH5lgD.mjs → index-CwndfZKu.mjs} +212 -194
- package/dist/index-D61BwFNn.mjs +354 -0
- package/dist/{index-DlQQ6Tmr.mjs → index-DMO7OA0p.mjs} +28 -28
- package/dist/index-ZZZJ5zVw-DMxMT-pR.mjs +1332 -0
- package/dist/{index-ULpZvCcU.mjs → index-_u9JMgEn.mjs} +1439 -1457
- package/dist/{index-B3MK78p6.mjs → index-faWiRvgD.mjs} +10 -10
- package/dist/{index-D02-afbz.mjs → index-u1vIKTSy.mjs} +13 -13
- package/dist/index.mjs +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-CdiPQl5S.mjs → index.vue_vue_type_script_setup_true_lang-CO00FH4c.mjs} +4 -4
- package/dist/{info-DX5x9nwZ.mjs → info-BHKQHthI.mjs} +3 -3
- package/dist/{info-B9ddXtEl.mjs → info-BeTLcaOu.mjs} +2 -2
- package/dist/{info-lyp1qQOB.mjs → info-BgfYveTZ.mjs} +1 -1
- package/dist/{info-DhXUZj_m.mjs → info-C0oMT2zM.mjs} +1 -1
- package/dist/{info-Cu3tODim.mjs → info-DZn3dHMZ.mjs} +1 -1
- package/dist/{info-DbmpdmdM.mjs → info-XLCOjb2Y.mjs} +1 -1
- package/dist/{info.vue_vue_type_script_setup_true_lang-DYm_cp-0.mjs → info.vue_vue_type_script_setup_true_lang-0QTy5MXU.mjs} +14 -14
- package/dist/{info.vue_vue_type_script_setup_true_lang-BPCEtdjb.mjs → info.vue_vue_type_script_setup_true_lang-BwsuLTDZ.mjs} +10 -10
- package/dist/{info.vue_vue_type_script_setup_true_lang-CL2QGZHm.mjs → info.vue_vue_type_script_setup_true_lang-DZaGR28c.mjs} +10 -10
- package/dist/{info.vue_vue_type_script_setup_true_lang-BE5mjcHA.mjs → info.vue_vue_type_script_setup_true_lang-DfZYuIia.mjs} +5 -5
- package/dist/style.css +1 -1
- package/dts/src/main.d.ts +1 -1
- package/package.json +4 -4
- package/dist/index-0IZPu961.mjs +0 -336
- package/dist/index-CsfOvnt4-CYkGp1YO.mjs +0 -1900
- package/dist/index-DcqQwqg9.mjs +0 -1930
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as R, mergeModels as $, ref as M, reactive as y, useModel as D, resolveComponent as a, createBlock as q, openBlock as B, withCtx as e, createVNode as t, unref as p, createElementVNode as E, createTextVNode as T, toDisplayString as g } from "vue";
|
|
2
2
|
import { ElMessage as F } from "element-plus";
|
|
3
|
-
import { t as S } from "./index-
|
|
3
|
+
import { t as S } from "./index-_u9JMgEn.mjs";
|
|
4
4
|
import { useI18n as U } from "vue-i18n";
|
|
5
|
-
import { D as j } from "./index-
|
|
5
|
+
import { D as j } from "./index-BQ2A9CZF.mjs";
|
|
6
6
|
import { _ as A } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
7
7
|
const x = { class: "dialog-footer" }, z = /* @__PURE__ */ R({
|
|
8
8
|
__name: "add",
|
|
@@ -2,9 +2,9 @@ import { defineComponent as ae, mergeModels as K, ref as g, reactive as J, compu
|
|
|
2
2
|
import { ElMessage as R } from "element-plus";
|
|
3
3
|
import { useI18n as ie } from "vue-i18n";
|
|
4
4
|
import { u as ne } from "./index-CJ1aT1h5.mjs";
|
|
5
|
-
import { r as b } from "./index-
|
|
5
|
+
import { r as b } from "./index-_u9JMgEn.mjs";
|
|
6
6
|
import { useUserStoreHook as pe } from "jmash-core";
|
|
7
|
-
import { D as me } from "./index-
|
|
7
|
+
import { D as me } from "./index-BQ2A9CZF.mjs";
|
|
8
8
|
import { r as ce } from "./index-ISkSSB59.mjs";
|
|
9
9
|
import { C as fe, B as ge, J as ye, a as he } from "./constant-CjJspmoU.mjs";
|
|
10
10
|
import "./index-Cu8cdEcf--Hv6LgCE.mjs";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { getCurrentInstance as V, inject as L, ref as S, computed as d, unref as c, readonly as Ct, getCurrentScope as wt, onScopeDispose as Tt, watch as ae, onMounted as he, isRef as St, warn as Nt, provide as Ot, defineComponent as Y, createElementBlock as J, openBlock as E, mergeProps as Et, renderSlot as q, normalizeClass as P, createVNode as C, Transition as Ke, withCtx as N, withDirectives as Ue, createElementVNode as oe, normalizeStyle as Ge, createTextVNode as He, toDisplayString as ve, vShow as Ze, shallowReactive as Je, createBlock as H, createCommentVNode as te, resolveDynamicComponent as It, Fragment as $t, withModifiers as xt, nextTick as Pt, isVNode as qe, render as $e, reactive as xe, resolveComponent as x } from "vue";
|
|
2
2
|
import "element-plus";
|
|
3
3
|
import { useRoute as kt, useRouter as jt } from "vue-router";
|
|
4
|
-
import { _ as Dt } from "./index.vue_vue_type_script_setup_true_lang-
|
|
4
|
+
import { _ as Dt } from "./index.vue_vue_type_script_setup_true_lang-CO00FH4c.mjs";
|
|
5
5
|
import { useI18n as At } from "vue-i18n";
|
|
6
|
-
import { t as Pe } from "./index-
|
|
7
|
-
import { D as Mt } from "./index-
|
|
6
|
+
import { t as Pe } from "./index-_u9JMgEn.mjs";
|
|
7
|
+
import { D as Mt } from "./index-BQ2A9CZF.mjs";
|
|
8
8
|
import { routerUtil as zt } from "jmash-core";
|
|
9
9
|
import { i as ke, c as Lt, w as Ft, s as Vt, a as Bt } from "./index-CJ1aT1h5.mjs";
|
|
10
10
|
const We = Symbol(), ne = "el", Rt = "is-", j = (e, t, n, o, r) => {
|
|
@@ -2,9 +2,9 @@ import { defineComponent as re, mergeModels as K, ref as y, reactive as J, compu
|
|
|
2
2
|
import { ElMessage as R } from "element-plus";
|
|
3
3
|
import { useI18n as ie } from "vue-i18n";
|
|
4
4
|
import { u as ue } from "./index-CJ1aT1h5.mjs";
|
|
5
|
-
import { r as b } from "./index-
|
|
5
|
+
import { r as b } from "./index-_u9JMgEn.mjs";
|
|
6
6
|
import { useUserStoreHook as ne } from "jmash-core";
|
|
7
|
-
import "./index-
|
|
7
|
+
import "./index-BQ2A9CZF.mjs";
|
|
8
8
|
import { r as pe } from "./index-ISkSSB59.mjs";
|
|
9
9
|
import { C as me, B as ce, J as fe, a as ge } from "./constant-CjJspmoU.mjs";
|
|
10
10
|
import "./index-Cu8cdEcf--Hv6LgCE.mjs";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as z, mergeModels as q, ref as A, reactive as E, computed as i, useModel as J, resolveComponent as p, createBlock as I, openBlock as k, withCtx as s, createVNode as a, unref as t, createCommentVNode as D, createElementVNode as Q, createTextVNode as w, toDisplayString as W } from "vue";
|
|
2
2
|
import { ElMessage as C } from "element-plus";
|
|
3
3
|
import { useI18n as Z } from "vue-i18n";
|
|
4
|
-
import { a as _ } from "./index-
|
|
4
|
+
import { a as _ } from "./index-_u9JMgEn.mjs";
|
|
5
5
|
import { useRoute as ee } from "vue-router";
|
|
6
|
-
import { D as N } from "./index-
|
|
6
|
+
import { D as N } from "./index-BQ2A9CZF.mjs";
|
|
7
7
|
import { C as n } from "./constant-CjJspmoU.mjs";
|
|
8
8
|
import { _ as te } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
9
9
|
const ae = { class: "dialog-footer" }, se = /* @__PURE__ */ z({
|
|
@@ -2,7 +2,7 @@ import { defineComponent as ee, mergeModels as F, ref as c, reactive as U, compu
|
|
|
2
2
|
import { ElMessage as re } from "element-plus";
|
|
3
3
|
import { useI18n as ae } from "vue-i18n";
|
|
4
4
|
import { u as de } from "./index-CJ1aT1h5.mjs";
|
|
5
|
-
import { r as $ } from "./index-
|
|
5
|
+
import { r as $ } from "./index-_u9JMgEn.mjs";
|
|
6
6
|
import { useUserStoreHook as se } from "jmash-core";
|
|
7
7
|
import { C as ne, B as ie, J as ue, a as me } from "./constant-CjJspmoU.mjs";
|
|
8
8
|
import "./index-Cu8cdEcf--Hv6LgCE.mjs";
|
|
@@ -2,7 +2,7 @@ import { defineComponent as se, mergeModels as A, ref as y, reactive as K, compu
|
|
|
2
2
|
import { ElMessage as R } from "element-plus";
|
|
3
3
|
import { useI18n as ue } from "vue-i18n";
|
|
4
4
|
import { u as me } from "./index-CJ1aT1h5.mjs";
|
|
5
|
-
import { r as b } from "./index-
|
|
5
|
+
import { r as b } from "./index-_u9JMgEn.mjs";
|
|
6
6
|
import { useUserStoreHook as pe } from "jmash-core";
|
|
7
7
|
import { r as fe } from "./index-ISkSSB59.mjs";
|
|
8
8
|
import { C as J, B as H, J as ce, a as ge } from "./constant-CjJspmoU.mjs";
|
|
@@ -4,7 +4,7 @@ import { useI18n as ce } from "vue-i18n";
|
|
|
4
4
|
import { r as L } from "./index-DVvlf-iS.mjs";
|
|
5
5
|
import { useUserStoreHook as fe } from "jmash-core";
|
|
6
6
|
import { u as ge } from "./index-CJ1aT1h5.mjs";
|
|
7
|
-
import { a as ye, D as c } from "./index-
|
|
7
|
+
import { a as ye, D as c } from "./index-BQ2A9CZF.mjs";
|
|
8
8
|
import { C as $ } from "./constant-CjJspmoU.mjs";
|
|
9
9
|
import { r as ve } from "./index-ISkSSB59.mjs";
|
|
10
10
|
const De = { class: "dialog-footer" }, $e = /* @__PURE__ */ se({
|
|
@@ -2,7 +2,7 @@ import { defineComponent as Y, mergeModels as I, ref as j, reactive as y, useMod
|
|
|
2
2
|
import { ElMessage as z } from "element-plus";
|
|
3
3
|
import { useI18n as N } from "vue-i18n";
|
|
4
4
|
import { r as T } from "./index-DVvlf-iS.mjs";
|
|
5
|
-
import { D as c } from "./index-
|
|
5
|
+
import { D as c } from "./index-BQ2A9CZF.mjs";
|
|
6
6
|
import { r as A } from "./index-BdtTv-FT.mjs";
|
|
7
7
|
import { C as K } from "./constant-CjJspmoU.mjs";
|
|
8
8
|
import { _ as P } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
@@ -2,7 +2,7 @@ import { defineComponent as K, ref as i, reactive as w, toRefs as Q, computed as
|
|
|
2
2
|
import { useI18n as te } from "vue-i18n";
|
|
3
3
|
import { ElMessage as g } from "element-plus";
|
|
4
4
|
import { fileApi as $, useUserStore as O } from "jmash-core";
|
|
5
|
-
import { D as U } from "./index-
|
|
5
|
+
import { D as U } from "./index-BQ2A9CZF.mjs";
|
|
6
6
|
import { _ as oe } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
7
7
|
const le = { class: "el-upload__text" }, ae = { style: { color: "var(--el-color-primary)" } }, ne = { class: "dialog-footer" }, se = /* @__PURE__ */ K({
|
|
8
8
|
__name: "import-upload",
|
|
@@ -2,7 +2,7 @@ import { defineComponent as K, ref as i, reactive as w, toRefs as Q, computed as
|
|
|
2
2
|
import { useI18n as te } from "vue-i18n";
|
|
3
3
|
import { ElMessage as g } from "element-plus";
|
|
4
4
|
import { fileApi as $, useUserStore as O } from "jmash-core";
|
|
5
|
-
import { D as U } from "./index-
|
|
5
|
+
import { D as U } from "./index-BQ2A9CZF.mjs";
|
|
6
6
|
import { _ as oe } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
7
7
|
const le = { class: "el-upload__text" }, ae = { style: { color: "var(--el-color-primary)" } }, ne = { class: "dialog-footer" }, se = /* @__PURE__ */ K({
|
|
8
8
|
__name: "import-upload",
|
|
@@ -0,0 +1,523 @@
|
|
|
1
|
+
var S = Object.defineProperty;
|
|
2
|
+
var A = (r, t, e) => t in r ? S(r, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[t] = e;
|
|
3
|
+
var c = (r, t, e) => A(r, typeof t != "symbol" ? t + "" : t, e);
|
|
4
|
+
import { BizDict as g, BizLayDict as w, useUserStore as a, request as s, clearEmpty as i, qs as D, EnumDict as m, CustomBizDict as b } from "jmash-core";
|
|
5
|
+
import { J as L, B as O, a as B, C as p, I as y } from "./constant-CjJspmoU.mjs";
|
|
6
|
+
import { reactive as N } from "vue";
|
|
7
|
+
function P(r, t, e, n) {
|
|
8
|
+
return !Array.isArray(r) || r.length === 0 ? [] : r.map((d) => {
|
|
9
|
+
let h = [];
|
|
10
|
+
return Array.isArray(d.children) && d.children.length > 0 && (h = P(d.children, t, e)), {
|
|
11
|
+
value: d[e],
|
|
12
|
+
label: d[t],
|
|
13
|
+
tenant: d.tenant,
|
|
14
|
+
parentId: d.parentId,
|
|
15
|
+
children: h
|
|
16
|
+
};
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
class q extends g {
|
|
20
|
+
// 实现 useValues 方法
|
|
21
|
+
useValues() {
|
|
22
|
+
return new Promise((t, e) => {
|
|
23
|
+
L.findOutSourceList(this.query).then(({ data: n }) => {
|
|
24
|
+
const u = n.results;
|
|
25
|
+
this.values.length = 0, this.values.push(
|
|
26
|
+
...u.map(
|
|
27
|
+
(d) => ({
|
|
28
|
+
key: d.orgId,
|
|
29
|
+
value: d.orgName
|
|
30
|
+
})
|
|
31
|
+
)
|
|
32
|
+
), t(this.values);
|
|
33
|
+
}).catch(e);
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
class z extends w {
|
|
38
|
+
// 实现 useValues 方法
|
|
39
|
+
useValues() {
|
|
40
|
+
return new Promise((t, e) => {
|
|
41
|
+
L.findList(this.query).then((n) => {
|
|
42
|
+
const { data: u } = n;
|
|
43
|
+
this.values.length = 0, this.values.push(
|
|
44
|
+
...P(u.results, "orgName", "orgId")
|
|
45
|
+
), t(this.values);
|
|
46
|
+
}).catch(e);
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
class R extends g {
|
|
51
|
+
// 实现 useValues 方法
|
|
52
|
+
useValues() {
|
|
53
|
+
return new Promise((t, e) => {
|
|
54
|
+
B.findMyItemList(this.query).then(({ data: n }) => {
|
|
55
|
+
const u = n.results;
|
|
56
|
+
this.values.length = 0, this.values.push(
|
|
57
|
+
...u.map(
|
|
58
|
+
(d) => ({
|
|
59
|
+
key: d.itemId,
|
|
60
|
+
value: d.name,
|
|
61
|
+
orgId: d.orgId,
|
|
62
|
+
status: d.status
|
|
63
|
+
})
|
|
64
|
+
)
|
|
65
|
+
), t(this.values);
|
|
66
|
+
}).catch(e);
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
class V extends g {
|
|
71
|
+
// 实现 useValues 方法
|
|
72
|
+
useValues() {
|
|
73
|
+
return new Promise((t, e) => {
|
|
74
|
+
O.findList(this.query).then(({ data: n }) => {
|
|
75
|
+
const u = n.results;
|
|
76
|
+
this.values.length = 0, this.values.push(
|
|
77
|
+
...u.map(
|
|
78
|
+
(d) => ({
|
|
79
|
+
key: d.userId,
|
|
80
|
+
value: d.realName
|
|
81
|
+
})
|
|
82
|
+
)
|
|
83
|
+
), t(this.values);
|
|
84
|
+
}).catch(e);
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
var j = Object.defineProperty, M = (r, t, e) => t in r ? j(r, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[t] = e, _ = (r, t, e) => (M(r, typeof t != "symbol" ? t + "" : t, e), e);
|
|
89
|
+
class U {
|
|
90
|
+
getKey(t) {
|
|
91
|
+
return { typeCode: t.typeCode };
|
|
92
|
+
}
|
|
93
|
+
//查询翻页信息字典类型
|
|
94
|
+
findPage(t) {
|
|
95
|
+
const e = a().user.tenant;
|
|
96
|
+
return t && (t.hasEntryType = t.entryType != null, t.hasEnable = t.enable != null), i(t), s({
|
|
97
|
+
url: "/v1/dict/dict_type/page/" + e,
|
|
98
|
+
method: "get",
|
|
99
|
+
params: t
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
//查询列表信息字典类型
|
|
103
|
+
findList(t) {
|
|
104
|
+
const e = a().user.tenant;
|
|
105
|
+
return t && (t.hasEntryType = t.entryType != null, t.hasEnable = t.enable != null), i(t), s({
|
|
106
|
+
url: "/v1/dict/dict_type/list/" + e,
|
|
107
|
+
method: "get",
|
|
108
|
+
params: t
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
//查询字典类型
|
|
112
|
+
findById(t) {
|
|
113
|
+
const e = a().user.tenant;
|
|
114
|
+
return i(t), s({
|
|
115
|
+
url: "/v1/dict/dict_type/id/" + e + "/" + t.typeCode,
|
|
116
|
+
method: "get"
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
// 创建实体字典类型
|
|
120
|
+
create(t) {
|
|
121
|
+
return t.tenant = a().user.tenant, i(t), s({
|
|
122
|
+
url: "/v1/dict/dict_type",
|
|
123
|
+
method: "post",
|
|
124
|
+
data: t
|
|
125
|
+
});
|
|
126
|
+
}
|
|
127
|
+
//修改实体字典类型
|
|
128
|
+
update(t) {
|
|
129
|
+
return t.tenant = a().user.tenant, i(t), s({
|
|
130
|
+
url: "/v1/dict/dict_type",
|
|
131
|
+
method: "patch",
|
|
132
|
+
data: t
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
//上移下移
|
|
136
|
+
move(t, e) {
|
|
137
|
+
const n = { ...t };
|
|
138
|
+
return n.tenant = a().user.tenant, n.up = e, i(n), s({
|
|
139
|
+
url: "/v1/dict/dict_type/move",
|
|
140
|
+
method: "put",
|
|
141
|
+
data: n
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
//启用/禁用
|
|
145
|
+
enable(t, e) {
|
|
146
|
+
const n = { ...t };
|
|
147
|
+
return n.tenant = a().user.tenant, n.enable = e, i(n), s({
|
|
148
|
+
url: "/v1/dict/dict_type/enable",
|
|
149
|
+
method: "put",
|
|
150
|
+
data: n
|
|
151
|
+
});
|
|
152
|
+
}
|
|
153
|
+
// 删除字典类型
|
|
154
|
+
delete(t) {
|
|
155
|
+
return t.tenant = a().user.tenant, i(t), s({
|
|
156
|
+
url: "/v1/dict/dict_type/id",
|
|
157
|
+
method: "delete",
|
|
158
|
+
params: t
|
|
159
|
+
});
|
|
160
|
+
}
|
|
161
|
+
// 批量删除字典类型
|
|
162
|
+
batchDelete(t) {
|
|
163
|
+
const e = t.map((u) => u.typeCode), n = {
|
|
164
|
+
tenant: a().user.tenant,
|
|
165
|
+
typeCode: e
|
|
166
|
+
};
|
|
167
|
+
return i(n), s({
|
|
168
|
+
url: "/v1/dict/dict_type/batch",
|
|
169
|
+
method: "put",
|
|
170
|
+
data: n
|
|
171
|
+
});
|
|
172
|
+
}
|
|
173
|
+
//下载导入模板字典类型
|
|
174
|
+
downloadTemplate() {
|
|
175
|
+
const t = a().user.tenant;
|
|
176
|
+
return s({
|
|
177
|
+
url: "/v1/dict/dict_type/" + t + "/template.xlsx",
|
|
178
|
+
method: "get",
|
|
179
|
+
responseType: "blob",
|
|
180
|
+
params: {
|
|
181
|
+
tenant: a().user.tenant
|
|
182
|
+
}
|
|
183
|
+
});
|
|
184
|
+
}
|
|
185
|
+
// 导入字典类型
|
|
186
|
+
importExcel(t) {
|
|
187
|
+
return t.tenant = a().user.tenant, i(t), s({
|
|
188
|
+
url: "/v1/dict/dict_type/import",
|
|
189
|
+
method: "patch",
|
|
190
|
+
data: t
|
|
191
|
+
});
|
|
192
|
+
}
|
|
193
|
+
//导出字典类型Excel文件
|
|
194
|
+
exportExcel(t) {
|
|
195
|
+
const e = a().user.tenant;
|
|
196
|
+
i(t);
|
|
197
|
+
const n = D.stringify(t, {
|
|
198
|
+
arrayFormat: "brackets",
|
|
199
|
+
allowDots: !0
|
|
200
|
+
});
|
|
201
|
+
return s({
|
|
202
|
+
url: "/v1/dict/dict_type/" + e + "/dict_types.xlsx?" + n,
|
|
203
|
+
method: "get",
|
|
204
|
+
responseType: "blob"
|
|
205
|
+
});
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
const l = new U();
|
|
209
|
+
class J {
|
|
210
|
+
getKey(t) {
|
|
211
|
+
return {
|
|
212
|
+
dictCode: t.dictCode,
|
|
213
|
+
typeCode: t.typeCode
|
|
214
|
+
};
|
|
215
|
+
}
|
|
216
|
+
//查询翻页信息数据字典
|
|
217
|
+
findPage(t) {
|
|
218
|
+
const e = a().user.tenant;
|
|
219
|
+
return t && (t.hasEnable = t.enable != null), i(t), s({
|
|
220
|
+
url: "/v1/dict/dict_entry/page/" + e,
|
|
221
|
+
method: "get",
|
|
222
|
+
params: t
|
|
223
|
+
});
|
|
224
|
+
}
|
|
225
|
+
//查询列表信息数据字典
|
|
226
|
+
findList(t) {
|
|
227
|
+
const e = a().user.tenant;
|
|
228
|
+
return e ? (t && (t.hasEnable = t.enable != null), i(t), s({
|
|
229
|
+
url: "/v1/dict/dict_entry/list/" + e,
|
|
230
|
+
method: "get",
|
|
231
|
+
params: t
|
|
232
|
+
})) : Promise.reject("tenant is empty");
|
|
233
|
+
}
|
|
234
|
+
//查询数据字典
|
|
235
|
+
findById(t) {
|
|
236
|
+
const e = a().user.tenant;
|
|
237
|
+
return i(t), s({
|
|
238
|
+
url: "/v1/dict/dict_entry/id/" + e + "/" + t.typeCode + "/" + t.dictCode,
|
|
239
|
+
method: "get"
|
|
240
|
+
});
|
|
241
|
+
}
|
|
242
|
+
// 创建实体数据字典
|
|
243
|
+
create(t) {
|
|
244
|
+
return t.tenant = a().user.tenant, i(t), v(t.typeCode), s({
|
|
245
|
+
url: "/v1/dict/dict_entry",
|
|
246
|
+
method: "post",
|
|
247
|
+
data: t
|
|
248
|
+
});
|
|
249
|
+
}
|
|
250
|
+
//修改实体数据字典
|
|
251
|
+
update(t) {
|
|
252
|
+
return t.tenant = a().user.tenant, i(t), v(t.typeCode), s({
|
|
253
|
+
url: "/v1/dict/dict_entry",
|
|
254
|
+
method: "patch",
|
|
255
|
+
data: t
|
|
256
|
+
});
|
|
257
|
+
}
|
|
258
|
+
//上移下移
|
|
259
|
+
move(t, e) {
|
|
260
|
+
const n = { ...t };
|
|
261
|
+
return n.tenant = a().user.tenant, n.up = e, i(n), s({
|
|
262
|
+
url: "/v1/dict/dict_entry/move",
|
|
263
|
+
method: "put",
|
|
264
|
+
data: n
|
|
265
|
+
});
|
|
266
|
+
}
|
|
267
|
+
//启用/禁用
|
|
268
|
+
enable(t, e) {
|
|
269
|
+
const n = { ...t };
|
|
270
|
+
return n.tenant = a().user.tenant, n.enable = e, i(n), s({
|
|
271
|
+
url: "/v1/dict/dict_entry/enable",
|
|
272
|
+
method: "put",
|
|
273
|
+
data: n
|
|
274
|
+
});
|
|
275
|
+
}
|
|
276
|
+
// 删除数据字典
|
|
277
|
+
delete(t) {
|
|
278
|
+
return t.tenant = a().user.tenant, i(t), v(t.typeCode), s({
|
|
279
|
+
url: "/v1/dict/dict_entry/id",
|
|
280
|
+
method: "delete",
|
|
281
|
+
params: t
|
|
282
|
+
});
|
|
283
|
+
}
|
|
284
|
+
// 批量删除数据字典
|
|
285
|
+
batchDelete(t) {
|
|
286
|
+
const e = {
|
|
287
|
+
tenant: a().user.tenant,
|
|
288
|
+
dictEntryKey: t
|
|
289
|
+
};
|
|
290
|
+
return i(e), v(t[0].typeCode), s({
|
|
291
|
+
url: "/v1/dict/dict_entry/batch",
|
|
292
|
+
method: "put",
|
|
293
|
+
data: e
|
|
294
|
+
});
|
|
295
|
+
}
|
|
296
|
+
//下载导入模板数据字典
|
|
297
|
+
downloadTemplate() {
|
|
298
|
+
return typeof l.downloadTemplate > "u" ? Promise.reject(" dictTypeApi.downloadTemplate is not undefined.") : l.downloadTemplate();
|
|
299
|
+
}
|
|
300
|
+
// 导入数据字典
|
|
301
|
+
importExcel(t) {
|
|
302
|
+
return typeof l.importExcel > "u" ? Promise.reject(" dictTypeApi.importExcel is not undefined.") : l.importExcel(t);
|
|
303
|
+
}
|
|
304
|
+
//导出数据字典Excel文件
|
|
305
|
+
exportExcel(t) {
|
|
306
|
+
const e = {};
|
|
307
|
+
return e.req = { typeCode: t.req.typeCode }, typeof l.exportExcel > "u" ? Promise.reject(" dictTypeApi.exportExcel is not undefined.") : l.exportExcel(e);
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
const C = new J();
|
|
311
|
+
function v(r) {
|
|
312
|
+
r && (I(r), I(r, !0));
|
|
313
|
+
}
|
|
314
|
+
function I(r, t) {
|
|
315
|
+
const e = `dict_${r}_${t}`;
|
|
316
|
+
sessionStorage.removeItem(e);
|
|
317
|
+
}
|
|
318
|
+
class $ {
|
|
319
|
+
getKey(t) {
|
|
320
|
+
return {
|
|
321
|
+
dictId: t.dictId
|
|
322
|
+
};
|
|
323
|
+
}
|
|
324
|
+
//查询翻页信息层级字典实体
|
|
325
|
+
findPage(t) {
|
|
326
|
+
const e = a().user.tenant;
|
|
327
|
+
return t && (t.hasEnable = t.enable != null), i(t), s({
|
|
328
|
+
url: "/v1/dict/dict_lay_entry/list/" + e,
|
|
329
|
+
method: "get",
|
|
330
|
+
params: t
|
|
331
|
+
});
|
|
332
|
+
}
|
|
333
|
+
//查询列表信息层级字典实体
|
|
334
|
+
findList(t) {
|
|
335
|
+
const e = a().user.tenant;
|
|
336
|
+
return t && (t.hasEnable = t.enable != null), i(t), s({
|
|
337
|
+
url: "/v1/dict/dict_lay_entry/list/" + e,
|
|
338
|
+
method: "get",
|
|
339
|
+
params: t
|
|
340
|
+
});
|
|
341
|
+
}
|
|
342
|
+
//查询层级字典实体
|
|
343
|
+
findById(t) {
|
|
344
|
+
const e = a().user.tenant;
|
|
345
|
+
return i(t), s({
|
|
346
|
+
url: "/v1/dict/dict_lay_entry/id/" + e + "/" + t.dictId,
|
|
347
|
+
method: "get"
|
|
348
|
+
});
|
|
349
|
+
}
|
|
350
|
+
// 创建实体层级字典实体
|
|
351
|
+
create(t) {
|
|
352
|
+
return t.tenant = a().user.tenant, i(t), s({
|
|
353
|
+
url: "/v1/dict/dict_lay_entry",
|
|
354
|
+
method: "post",
|
|
355
|
+
data: t
|
|
356
|
+
});
|
|
357
|
+
}
|
|
358
|
+
//修改实体层级字典实体
|
|
359
|
+
update(t) {
|
|
360
|
+
return t.tenant = a().user.tenant, i(t), s({
|
|
361
|
+
url: "/v1/dict/dict_lay_entry",
|
|
362
|
+
method: "patch",
|
|
363
|
+
data: t
|
|
364
|
+
});
|
|
365
|
+
}
|
|
366
|
+
//上移下移
|
|
367
|
+
move(t, e) {
|
|
368
|
+
const n = { ...t };
|
|
369
|
+
return n.tenant = a().user.tenant, n.up = e, i(n), s({
|
|
370
|
+
url: "/v1/dict/dict_lay_entry/move",
|
|
371
|
+
method: "put",
|
|
372
|
+
data: n
|
|
373
|
+
});
|
|
374
|
+
}
|
|
375
|
+
//启用/禁用
|
|
376
|
+
enable(t, e) {
|
|
377
|
+
const n = { ...t };
|
|
378
|
+
return n.tenant = a().user.tenant, n.enable = e, i(n), s({
|
|
379
|
+
url: "/v1/dict/dict_lay_entry/enable",
|
|
380
|
+
method: "put",
|
|
381
|
+
data: n
|
|
382
|
+
});
|
|
383
|
+
}
|
|
384
|
+
// 删除层级字典实体
|
|
385
|
+
delete(t) {
|
|
386
|
+
return t.tenant = a().user.tenant, i(t), s({
|
|
387
|
+
url: "/v1/dict/dict_lay_entry/id",
|
|
388
|
+
method: "delete",
|
|
389
|
+
params: t
|
|
390
|
+
});
|
|
391
|
+
}
|
|
392
|
+
// 批量删除层级字典实体
|
|
393
|
+
batchDelete(t) {
|
|
394
|
+
const e = t.map((u) => u.dictId), n = {
|
|
395
|
+
tenant: a().user.tenant,
|
|
396
|
+
dictId: e
|
|
397
|
+
};
|
|
398
|
+
return i(n), s({
|
|
399
|
+
url: "/v1/dict/dict_lay_entry/batch",
|
|
400
|
+
method: "put",
|
|
401
|
+
data: n
|
|
402
|
+
});
|
|
403
|
+
}
|
|
404
|
+
//下载导入模板层级字典实体
|
|
405
|
+
downloadTemplate() {
|
|
406
|
+
return typeof l.downloadTemplate > "u" ? Promise.reject(" dictTypeApi.downloadTemplate is not undefined.") : l.downloadTemplate();
|
|
407
|
+
}
|
|
408
|
+
// 导入层级字典实体
|
|
409
|
+
importExcel(t) {
|
|
410
|
+
return typeof l.importExcel > "u" ? Promise.reject(" dictTypeApi.importExcel is not undefined.") : l.importExcel(t);
|
|
411
|
+
}
|
|
412
|
+
//导出层级字典实体Excel文件
|
|
413
|
+
exportExcel(t) {
|
|
414
|
+
const e = {};
|
|
415
|
+
return e.req = { typeCode: t.req.typeCode }, typeof l.exportExcel > "u" ? Promise.reject(" dictTypeApi.exportExcel is not undefined.") : l.exportExcel(e);
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
const x = new $();
|
|
419
|
+
async function k(r, t) {
|
|
420
|
+
return new Promise((e, n) => {
|
|
421
|
+
const u = `dict_${r}_${t}`;
|
|
422
|
+
let d = sessionStorage.getItem(u);
|
|
423
|
+
if (d && e(JSON.parse(d)), !d) {
|
|
424
|
+
if (typeof C.findList > "u") {
|
|
425
|
+
console.error("dictTypeApi.findList is not defined.");
|
|
426
|
+
return;
|
|
427
|
+
}
|
|
428
|
+
const h = { typeCode: r, enable: t };
|
|
429
|
+
C.findList(h).then(({ data: E }) => {
|
|
430
|
+
let T = E.results;
|
|
431
|
+
d = JSON.stringify(T), E && E.results != null && sessionStorage.setItem(u, d), e(T);
|
|
432
|
+
});
|
|
433
|
+
}
|
|
434
|
+
});
|
|
435
|
+
}
|
|
436
|
+
class f {
|
|
437
|
+
constructor(t, e = !0) {
|
|
438
|
+
_(this, "typeCode"), _(this, "enable"), _(this, "values"), this.typeCode = t, this.enable = e, this.values = N([]), this.useDictValues();
|
|
439
|
+
}
|
|
440
|
+
//加载数据字典.
|
|
441
|
+
useDictValues() {
|
|
442
|
+
return new Promise((t, e) => {
|
|
443
|
+
k(this.typeCode, this.enable).then(
|
|
444
|
+
(n) => {
|
|
445
|
+
this.values.length = 0, this.values.push(...n), t(this.values);
|
|
446
|
+
}
|
|
447
|
+
);
|
|
448
|
+
});
|
|
449
|
+
}
|
|
450
|
+
//获取字典值
|
|
451
|
+
getDictValue(t) {
|
|
452
|
+
const e = this.values.find((n) => n.dictCode === t);
|
|
453
|
+
return e != null && e.dictName ? e.dictName : "";
|
|
454
|
+
}
|
|
455
|
+
clearCache() {
|
|
456
|
+
const t = `dict_${this.typeCode}_${this.enable}`;
|
|
457
|
+
sessionStorage.removeItem(t);
|
|
458
|
+
}
|
|
459
|
+
}
|
|
460
|
+
class K extends w {
|
|
461
|
+
// 实现 useValues 方法
|
|
462
|
+
useValues() {
|
|
463
|
+
return new Promise((t, e) => {
|
|
464
|
+
if (typeof x.findList > "u") {
|
|
465
|
+
console.error("dictLayEntryApi.findList is not defined."), t(this.values);
|
|
466
|
+
return;
|
|
467
|
+
}
|
|
468
|
+
const n = { ...this.query };
|
|
469
|
+
x.findList(n).then(({ data: u }) => {
|
|
470
|
+
const d = u.results;
|
|
471
|
+
this.values.length = 0, this.values.push(...this.convertToLayEntryArray(d)), t(this.values);
|
|
472
|
+
}).catch(e);
|
|
473
|
+
});
|
|
474
|
+
}
|
|
475
|
+
convertToLayEntryArray(t) {
|
|
476
|
+
return t.map((e) => ({
|
|
477
|
+
value: e.dictCode,
|
|
478
|
+
label: e.dictName,
|
|
479
|
+
parentId: e.parentId || "",
|
|
480
|
+
children: e.children ? this.convertToLayEntryArray(e.children) : []
|
|
481
|
+
}));
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
class o {
|
|
485
|
+
}
|
|
486
|
+
// 项目列表
|
|
487
|
+
c(o, "itemBizLayDict", new R({})), // 省直单位列表
|
|
488
|
+
c(o, "orgIdBizDict", new q({})), // 单位列表
|
|
489
|
+
c(o, "orgIdListBizDict", new z({})), // 客户经理
|
|
490
|
+
c(o, "customerManagerDict", new V({})), // 状态
|
|
491
|
+
c(o, "stateDict", new m(
|
|
492
|
+
p.MODULE_REPORTS,
|
|
493
|
+
p.STATE
|
|
494
|
+
)), // 是否升级事项
|
|
495
|
+
c(o, "escalateDict", new b(p.IS_ESCALATE, {})), // 涉及板块
|
|
496
|
+
c(o, "involvedPlateDict", new K({
|
|
497
|
+
typeCode: "relateEnterprise"
|
|
498
|
+
})), // 通知类型
|
|
499
|
+
c(o, "noticeTypeDict", new f(p.NOTIFY_TYPE)), // 通知人员
|
|
500
|
+
c(o, "noticeUserDict", new f(p.NOTIFY_USER)), // 事项类型
|
|
501
|
+
c(o, "matterTypeEnum", new m(
|
|
502
|
+
p.MODULE_REPORTS,
|
|
503
|
+
p.METTER_TYPE
|
|
504
|
+
)), // 检查事项类型
|
|
505
|
+
c(o, "inspectTypeEnum", new m(
|
|
506
|
+
y.MODULE_INSPECT,
|
|
507
|
+
y.INSPECT_TYPE
|
|
508
|
+
)), // 检查事项 状态
|
|
509
|
+
c(o, "inspectStatusEnum", new b(
|
|
510
|
+
y.INSPECT_STATUS,
|
|
511
|
+
{}
|
|
512
|
+
)), // 风险等级
|
|
513
|
+
c(o, "riskLevelEnum", new m(
|
|
514
|
+
y.MODULE_INSPECT,
|
|
515
|
+
y.RISK_LEVEL
|
|
516
|
+
)), // 需求范围
|
|
517
|
+
c(o, "reportsScopeDict", new f(p.REPORTS_SCOPE));
|
|
518
|
+
export {
|
|
519
|
+
V as C,
|
|
520
|
+
o as D,
|
|
521
|
+
z as O,
|
|
522
|
+
q as a
|
|
523
|
+
};
|