xyvcard-itsmsys 0.0.11 → 0.0.13

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.
Files changed (52) hide show
  1. package/dist/FileSaver.min-BeKvLuyk.mjs +73 -0
  2. package/dist/{edit-Dxs-2AFY.mjs → edit-B7N9QLYv.mjs} +104 -87
  3. package/dist/{edit-BSIP_9Mq.mjs → edit-CBnnqc6q.mjs} +104 -86
  4. package/dist/{edit-CiCHPkRg.mjs → edit-CuD0yKla.mjs} +1 -1
  5. package/dist/{edit-BcE5qrWo.mjs → edit-D2lhB7lU.mjs} +1 -1
  6. package/dist/{edit-BsUWSNnA.mjs → edit-DQ04LbhC.mjs} +96 -79
  7. package/dist/{edit-znznl9Td.mjs → edit-IRLCMnWT.mjs} +1 -1
  8. package/dist/{edit-CW0kqOpj.mjs → edit-g4L03h6h.mjs} +1 -1
  9. package/dist/edit.vue_vue_type_script_setup_true_lang-CEzM2X-C.mjs +463 -0
  10. package/dist/edit.vue_vue_type_script_setup_true_lang-DD9BucLK.mjs +463 -0
  11. package/dist/{edit.vue_vue_type_script_setup_true_lang-DjrTJAzO.mjs → edit.vue_vue_type_script_setup_true_lang-Daxe3FpV.mjs} +98 -68
  12. package/dist/edit.vue_vue_type_script_setup_true_lang-SzJApeB-.mjs +482 -0
  13. package/dist/import-upload-Bsl-7w0B.mjs +161 -0
  14. package/dist/import-upload-COLdGpcs.mjs +161 -0
  15. package/dist/index-B4M6ZC7N.mjs +196 -0
  16. package/dist/{index-BV3Je3Rq.mjs → index-BBPQd1dS.mjs} +139 -128
  17. package/dist/{index-BIvJ7rs4.mjs → index-BxX1lrD5.mjs} +64 -62
  18. package/dist/{index-CzE5REdf.mjs → index-CzVhcXfx.mjs} +57 -55
  19. package/dist/index-DNpEXtyQ.mjs +423 -0
  20. package/dist/index-Dh_kNwqv.mjs +470 -0
  21. package/dist/{index-CNRO77Xg.mjs → index-Dih4mOx4.mjs} +1 -1
  22. package/dist/{index-4qnVgDwe.mjs → index-n4FekcLF.mjs} +210 -138
  23. package/dist/index.mjs +293 -256
  24. package/dist/{index.vue_vue_type_script_setup_true_lang-B18iZWXl.mjs → index.vue_vue_type_script_setup_true_lang-D0pyunau.mjs} +41 -34
  25. package/dist/info-BHylKqOX.mjs +186 -0
  26. package/dist/info-BZOWTNSd.mjs +209 -0
  27. package/dist/{info-BP7wPWFZ.mjs → info-CDtqpKVD.mjs} +80 -58
  28. package/dist/{info-DRYPl2T-.mjs → info-XDDe5ve6.mjs} +58 -47
  29. package/dist/{info-DCRqBi8M.mjs → info-bwhmPzeG.mjs} +71 -60
  30. package/dist/info-dBqoxL-p.mjs +209 -0
  31. package/dist/style.css +1 -1
  32. package/dts/api/dict.d.ts +7 -7
  33. package/dts/api/index.d.ts +6 -2
  34. package/dts/api/itsm-sys-org/types.d.ts +1 -0
  35. package/dts/api/itsm-sys-org-invoice/types.d.ts +3 -0
  36. package/dts/api/itsm-sys-user-ext/index.d.ts +3 -1
  37. package/dts/api/itsm-sys-user-ext/types.d.ts +19 -1
  38. package/dts/constant.d.ts +9 -0
  39. package/dts/index.d.ts +1 -0
  40. package/dts/lang/itsmsys/zh-cn.d.ts +17 -0
  41. package/dts/views/itsmsys/itsm-sys-user-ops/import-upload.vue.d.ts +31 -0
  42. package/dts/views/itsmsys/itsm-sys-user-out/import-upload.vue.d.ts +31 -0
  43. package/package.json +3 -3
  44. package/dist/edit.vue_vue_type_script_setup_true_lang-BZ-sa6BZ.mjs +0 -422
  45. package/dist/edit.vue_vue_type_script_setup_true_lang-DOiO9REN.mjs +0 -422
  46. package/dist/edit.vue_vue_type_script_setup_true_lang-PDq1GpSZ.mjs +0 -404
  47. package/dist/index-BTO0NHK6.mjs +0 -397
  48. package/dist/index-Hh4b5GAI.mjs +0 -351
  49. package/dist/index-cBbN-uY2.mjs +0 -155
  50. package/dist/info-BCPme1g5.mjs +0 -187
  51. package/dist/info-CtGMbfQJ.mjs +0 -187
  52. package/dist/info-Dk3RzCIp.mjs +0 -176
@@ -0,0 +1,161 @@
1
+ import { defineComponent as A, ref as i, reactive as C, toRefs as H, resolveComponent as l, openBlock as G, createBlock as J, unref as V, isRef as K, withCtx as o, createElementVNode as a, createVNode as t, createTextVNode as m, toDisplayString as n } from "vue";
2
+ import { useI18n as L } from "vue-i18n";
3
+ import { ElMessage as f } from "element-plus";
4
+ import { fileApi as w, useUserStore as D } from "jmash-core";
5
+ import { D as I } from "./index-B4M6ZC7N.mjs";
6
+ import { _ as P } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
7
+ const Q = { class: "el-upload__text" }, W = { style: { color: "var(--el-color-primary)" } }, X = { class: "dialog-footer" }, Y = /* @__PURE__ */ A({
8
+ __name: "import-upload",
9
+ props: {
10
+ uploadVisible: {
11
+ type: Boolean,
12
+ default: () => !1
13
+ },
14
+ templateTitle: {
15
+ type: String,
16
+ default: ""
17
+ }
18
+ },
19
+ emits: ["templateDown", "importEvents", "uploadClosed"],
20
+ setup(_, { emit: U }) {
21
+ const { t: g } = L(), k = i(w.uploadUrl()), $ = i(w.authHeader()), b = C({
22
+ tenant: D().user.tenant
23
+ }), E = i(), d = C({
24
+ tenant: D().user.tenant,
25
+ requestId: Math.random() * 10 + "",
26
+ fileNames: "",
27
+ updateMask: "",
28
+ addFlag: !0,
29
+ // 必填项,true新增,false修改
30
+ orgId: ""
31
+ });
32
+ I.sysOutBizDict.useValues();
33
+ const N = _, u = U, { uploadVisible: c } = H(N), r = i();
34
+ function R() {
35
+ u("templateDown");
36
+ }
37
+ function S(e) {
38
+ r.value = e, d.orgId = e;
39
+ }
40
+ function q(e) {
41
+ d.fileNames = e.fileSrc, d.orgId = r.value, d.fileNames && f({
42
+ message: g("common.uploadSuccess"),
43
+ type: "success"
44
+ });
45
+ }
46
+ const B = () => {
47
+ f.warning("当前限制选择 1 个文件");
48
+ };
49
+ function O() {
50
+ if (!r.value) {
51
+ f({
52
+ message: g("sysUserOps.orgIdRequired"),
53
+ type: "success"
54
+ });
55
+ return;
56
+ }
57
+ u("importEvents", d);
58
+ }
59
+ function v() {
60
+ u("uploadClosed");
61
+ }
62
+ return (e, s) => {
63
+ const y = l("el-col"), x = l("jmash-select"), F = l("el-row"), M = l("upload-filled"), T = l("el-icon"), j = l("el-upload"), h = l("el-button"), z = l("el-dialog");
64
+ return G(), J(z, {
65
+ modelValue: V(c),
66
+ "onUpdate:modelValue": s[1] || (s[1] = (p) => K(c) ? c.value = p : null),
67
+ title: e.$t("common.uploadFiles"),
68
+ width: "500px",
69
+ onClose: v
70
+ }, {
71
+ footer: o(() => [
72
+ a("div", X, [
73
+ t(h, { onClick: v }, {
74
+ default: o(() => [
75
+ m(n(e.$t("common.cancel")), 1)
76
+ ]),
77
+ _: 1
78
+ }),
79
+ t(h, {
80
+ type: "primary",
81
+ onClick: O
82
+ }, {
83
+ default: o(() => [
84
+ m(n(e.$t("common.confirm")), 1)
85
+ ]),
86
+ _: 1
87
+ })
88
+ ])
89
+ ]),
90
+ default: o(() => [
91
+ t(F, { class: "row" }, {
92
+ default: o(() => [
93
+ t(y, { span: 4 }, {
94
+ default: o(() => [
95
+ s[2] || (s[2] = a("span", { class: "required_red" }, "*", -1)),
96
+ a("span", null, n(e.$t("sysUserOps.orgId")), 1)
97
+ ]),
98
+ _: 1
99
+ }),
100
+ t(y, { span: 20 }, {
101
+ default: o(() => [
102
+ t(x, {
103
+ modelValue: r.value,
104
+ "onUpdate:modelValue": s[0] || (s[0] = (p) => r.value = p),
105
+ data: V(I).sysOutBizDict.values,
106
+ filterable: "",
107
+ "check-strictly": "",
108
+ "render-after-expand": !1,
109
+ placeholder: e.$t("sysUserOps.orgIdRequired"),
110
+ class: "w-full",
111
+ onChange: S
112
+ }, null, 8, ["modelValue", "data", "placeholder"])
113
+ ]),
114
+ _: 1
115
+ })
116
+ ]),
117
+ _: 1
118
+ }),
119
+ t(j, {
120
+ ref_key: "uploadRef",
121
+ ref: E,
122
+ drag: "",
123
+ action: k.value,
124
+ headers: $.value,
125
+ data: b,
126
+ limit: 1,
127
+ "on-success": q,
128
+ "on-exceed": B,
129
+ style: { "margin-top": "20px" }
130
+ }, {
131
+ tip: o(() => [
132
+ a("div", {
133
+ class: "el-upload__tip",
134
+ onClick: R
135
+ }, [
136
+ a("a", W, n(_.templateTitle), 1)
137
+ ])
138
+ ]),
139
+ default: o(() => [
140
+ t(T, { class: "el-icon--upload" }, {
141
+ default: o(() => [
142
+ t(M)
143
+ ]),
144
+ _: 1
145
+ }),
146
+ a("div", Q, [
147
+ m(n(e.$t("common.dragFiles")) + " ", 1),
148
+ a("em", null, n(e.$t("common.uploadEvent")), 1)
149
+ ])
150
+ ]),
151
+ _: 1
152
+ }, 8, ["action", "headers", "data"])
153
+ ]),
154
+ _: 1
155
+ }, 8, ["modelValue", "title"]);
156
+ };
157
+ }
158
+ }), se = /* @__PURE__ */ P(Y, [["__scopeId", "data-v-8543416a"]]);
159
+ export {
160
+ se as default
161
+ };
@@ -0,0 +1,196 @@
1
+ var d = Object.defineProperty;
2
+ var T = (a, i, t) => i in a ? d(a, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : a[i] = t;
3
+ var s = (a, i, t) => T(a, typeof i != "symbol" ? i + "" : i, t);
4
+ import { ref as m } from "vue";
5
+ import { BizLayDict as _, BizDict as l, CustomBizDict as h, EnumDict as o } from "jmash-core";
6
+ import { sysOrgApi as n } from "./index.mjs";
7
+ import { deptApi as S, jobApi as N } from "jmash-rbac";
8
+ import { EntryDict as O } from "jmash-dict";
9
+ class e {
10
+ }
11
+ //模块
12
+ s(e, "MODULE_RBAC", "rbac"), s(e, "MODULE_ITSMSYS", "itsmsys"), // 公司管理状态
13
+ s(e, "HAS_STATUS", m([
14
+ { key: !0, value: "启用" },
15
+ { key: !1, value: "禁用" }
16
+ ])), // 公司发票类型
17
+ s(e, "ENUM_INVOICE_TYPE", "xyvcard.itsmsys.protobuf.InvoiceType"), // 管理人员工作状态
18
+ s(e, "ENUM_JOB_ATATUS", "xyvcard.itsmsys.protobuf.SysUserJobStatus"), // 运维人员工作模式
19
+ s(e, "ENUM_ENGINEE_JOB_MODE", "xyvcard.itsmsys.protobuf.SysUserJobMode"), // 人员性别
20
+ s(e, "ENUM_GENDER", "jmash.protobuf.Gender"), // 运维人员工程师类型
21
+ s(e, "ENUM_ENGINEE_TYPE", "xyvcard.itsmsys.protobuf.SysEngineeType"), // 机构类型
22
+ s(e, "orgType", {
23
+ // 公司
24
+ cloud: "CLOUD",
25
+ // 厅局
26
+ hall: "HALL",
27
+ // 外协
28
+ outsource: "OUTSOURCE"
29
+ }), // 工作状态
30
+ s(e, "jobStatus", {
31
+ // 在职
32
+ working: "WORKING",
33
+ // 离职
34
+ leave: "LEAVE"
35
+ }), // 人员类型
36
+ s(e, "userType", {
37
+ // 公司管理
38
+ companyManager: "COMPANY_MANAGER",
39
+ // 公司运维
40
+ companyOps: "COMPANY_OPS",
41
+ // 外协运维
42
+ outsourceOps: "OUTSOURCE_OPS"
43
+ }), // 工程师类型
44
+ s(e, "engineeType", {
45
+ // 等保测评
46
+ ease_test: "EASE_TEST",
47
+ // 安全服务
48
+ security_service: "SECURITY_SERVICE",
49
+ // 密码评价
50
+ password_ecaluation: "PASSWORD_EVALUATION"
51
+ }), // 工作模式
52
+ s(e, "engineeJobMode", {
53
+ // 驻场人员
54
+ resident: "RESIDENT",
55
+ // 远程人员
56
+ remote: "REMOTE"
57
+ }), // 高德地图配置
58
+ s(e, "amapConfig", {
59
+ // 高德地图key
60
+ apiKey: "b08fdd63c62296ccd2c1f2cc0f423e14",
61
+ // 高德地图安全密钥
62
+ securityJsCode: "9c92eb8120ea30d8c5ce75140e5b5c08"
63
+ }), // 运维工程师资质等级
64
+ s(e, "DICT_ENGINEE_GRADE", "enginee_grade"), // 公司与外协单位排序
65
+ s(e, "orderBy", {
66
+ // 排序名称
67
+ orderName: "createTime",
68
+ // 是否升序排序
69
+ orderAsc: !1
70
+ }), // 发票税率范围
71
+ s(e, "taxRate", {
72
+ // 最小
73
+ min: 0,
74
+ // 最大
75
+ max: 0.99
76
+ });
77
+ class g extends _ {
78
+ // 实现 useValues 方法
79
+ useValues(i) {
80
+ return new Promise((t, u) => {
81
+ if (typeof n.findList > "u") {
82
+ t(this.values);
83
+ return;
84
+ }
85
+ const E = { ...this.query, excludeOrgId: i };
86
+ n.findList(E).then(({ data: c }) => {
87
+ const y = c.results;
88
+ this.values.length = 0, this.values.push(...this.convertToLayEntryArray(y)), t(this.values);
89
+ }).catch(u);
90
+ });
91
+ }
92
+ convertToLayEntryArray(i) {
93
+ return i.map((t) => ({
94
+ value: t.orgId,
95
+ label: t.orgName,
96
+ parentId: t.parentId || "",
97
+ children: t.children ? this.convertToLayEntryArray(t.children) : []
98
+ }));
99
+ }
100
+ }
101
+ class p extends l {
102
+ // 实现 useValues 方法
103
+ useValues() {
104
+ return new Promise((i, t) => {
105
+ n.findPage(this.query).then(({ data: u }) => {
106
+ const E = u.results;
107
+ this.values.length = 0, this.values.push(
108
+ ...E.map(
109
+ (c) => ({
110
+ key: c.orgId,
111
+ value: c.orgName
112
+ })
113
+ )
114
+ ), i(this.values);
115
+ }).catch(t);
116
+ });
117
+ }
118
+ }
119
+ class M extends l {
120
+ // 实现 useValues 方法
121
+ useValues() {
122
+ return new Promise((i, t) => {
123
+ S.findList(this.query).then(({ data: u }) => {
124
+ const E = u.results;
125
+ this.values.length = 0, this.values.push(
126
+ ...E.map(
127
+ (c) => ({
128
+ key: c.deptId,
129
+ value: c.deptName
130
+ })
131
+ )
132
+ ), i(this.values);
133
+ }).catch(t);
134
+ });
135
+ }
136
+ }
137
+ class I extends l {
138
+ // 实现 useValues 方法
139
+ useValues() {
140
+ return new Promise((i, t) => {
141
+ N.findPage(this.query).then(({ data: u }) => {
142
+ const E = u.results;
143
+ this.values.length = 0, this.values.push(
144
+ ...E.map(
145
+ (c) => ({
146
+ key: c.roleId,
147
+ value: c.roleName
148
+ })
149
+ )
150
+ ), i(this.values);
151
+ }).catch(t);
152
+ });
153
+ }
154
+ }
155
+ class r {
156
+ }
157
+ // 公司管理状态
158
+ s(r, "hasStatusDict", new h(e.HAS_STATUS, {})), // 公司发票类型
159
+ s(r, "invoiceTypeDictEnum", new o(
160
+ e.MODULE_ITSMSYS,
161
+ e.ENUM_INVOICE_TYPE
162
+ )), // 厅局管理父厅级单位
163
+ s(r, "parentIdBizDict", new g({
164
+ orgType: e.orgType.hall
165
+ })), // 管理人员工作状态
166
+ s(r, "jobStatusDictEnum", new o(
167
+ e.MODULE_ITSMSYS,
168
+ e.ENUM_JOB_ATATUS
169
+ )), // 运维人员工作模式
170
+ s(r, "engineeJobModeDictEnum", new o(
171
+ e.MODULE_ITSMSYS,
172
+ e.ENUM_ENGINEE_JOB_MODE
173
+ )), // 性别
174
+ s(r, "genderDict", new o(
175
+ e.MODULE_RBAC,
176
+ e.ENUM_GENDER
177
+ )), // 运维人员工程师类型
178
+ s(r, "engineeTypeDictEnum", new o(
179
+ e.MODULE_ITSMSYS,
180
+ e.ENUM_ENGINEE_TYPE
181
+ )), // 公司人员选择公司名称
182
+ s(r, "sysOrgBizDict", new p({
183
+ orgType: e.orgType.cloud
184
+ })), // 外协运维人员选择公司名称
185
+ s(r, "sysOutBizDict", new p({
186
+ orgType: e.orgType.outsource
187
+ })), // 运维工程师资质等级
188
+ s(r, "engineeCertificateDict", new O(
189
+ e.DICT_ENGINEE_GRADE
190
+ )), // 分组
191
+ s(r, "deptBizDict", new M({})), // 岗位
192
+ s(r, "jobBizDict", new I({}));
193
+ export {
194
+ e as C,
195
+ r as D
196
+ };