xyvcard-itsmsys 0.0.12 → 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 (46) hide show
  1. package/dist/{edit-aqBMKpoJ.mjs → edit-B7N9QLYv.mjs} +97 -82
  2. package/dist/{edit-C-Ddf0UV.mjs → edit-CBnnqc6q.mjs} +103 -87
  3. package/dist/{edit-BSgQ7aTw.mjs → edit-CuD0yKla.mjs} +1 -1
  4. package/dist/{edit-BSllWdRO.mjs → edit-D2lhB7lU.mjs} +1 -1
  5. package/dist/{edit-CNw8JPUb.mjs → edit-DQ04LbhC.mjs} +89 -74
  6. package/dist/{edit-Cd4dWFsH.mjs → edit-IRLCMnWT.mjs} +1 -1
  7. package/dist/{edit-q5TFAMBm.mjs → edit-g4L03h6h.mjs} +1 -1
  8. package/dist/{edit.vue_vue_type_script_setup_true_lang-BJcLgzvH.mjs → edit.vue_vue_type_script_setup_true_lang-CEzM2X-C.mjs} +50 -50
  9. package/dist/{edit.vue_vue_type_script_setup_true_lang-BA39WCu3.mjs → edit.vue_vue_type_script_setup_true_lang-DD9BucLK.mjs} +50 -50
  10. package/dist/{edit.vue_vue_type_script_setup_true_lang-D1lAHFeM.mjs → edit.vue_vue_type_script_setup_true_lang-Daxe3FpV.mjs} +44 -37
  11. package/dist/{edit.vue_vue_type_script_setup_true_lang-BV_YHrlE.mjs → edit.vue_vue_type_script_setup_true_lang-SzJApeB-.mjs} +74 -74
  12. package/dist/import-upload-Bsl-7w0B.mjs +161 -0
  13. package/dist/import-upload-COLdGpcs.mjs +161 -0
  14. package/dist/{index-Dno_3GpX.mjs → index-B4M6ZC7N.mjs} +91 -40
  15. package/dist/{index-BY5Djw_C.mjs → index-BBPQd1dS.mjs} +138 -127
  16. package/dist/{index-BaixQptZ.mjs → index-BxX1lrD5.mjs} +63 -61
  17. package/dist/{index-LOMCvxtf.mjs → index-CzVhcXfx.mjs} +57 -55
  18. package/dist/index-DNpEXtyQ.mjs +423 -0
  19. package/dist/{index-DrBtW9Aj.mjs → index-Dh_kNwqv.mjs} +144 -157
  20. package/dist/{index-Cz9Xj4Mn.mjs → index-Dih4mOx4.mjs} +1 -1
  21. package/dist/index-n4FekcLF.mjs +504 -0
  22. package/dist/index.mjs +118 -114
  23. package/dist/{index.vue_vue_type_script_setup_true_lang-C67sXgs5.mjs → index.vue_vue_type_script_setup_true_lang-D0pyunau.mjs} +2 -2
  24. package/dist/info-BHylKqOX.mjs +186 -0
  25. package/dist/info-BZOWTNSd.mjs +209 -0
  26. package/dist/{info-BUDmirQy.mjs → info-CDtqpKVD.mjs} +80 -58
  27. package/dist/{info-D0Pwnmsu.mjs → info-XDDe5ve6.mjs} +1 -1
  28. package/dist/{info-C3knY6l_.mjs → info-bwhmPzeG.mjs} +1 -1
  29. package/dist/info-dBqoxL-p.mjs +209 -0
  30. package/dist/style.css +1 -1
  31. package/dts/api/dict.d.ts +7 -1
  32. package/dts/api/index.d.ts +3 -1
  33. package/dts/api/itsm-sys-org/types.d.ts +1 -0
  34. package/dts/api/itsm-sys-user-ext/types.d.ts +4 -0
  35. package/dts/constant.d.ts +8 -0
  36. package/dts/lang/itsmsys/zh-cn.d.ts +4 -0
  37. package/package.json +1 -1
  38. package/dist/import-upload-BIT504-g.mjs +0 -4
  39. package/dist/import-upload-pZG8yku3.mjs +0 -4
  40. package/dist/import-upload.vue_vue_type_script_setup_true_lang-pjSs3v9e.mjs +0 -162
  41. package/dist/import-upload.vue_vue_type_script_setup_true_lang-tjMLoB_W.mjs +0 -162
  42. package/dist/index-CoMhbtrg.mjs +0 -449
  43. package/dist/index-DPz8be3T.mjs +0 -351
  44. package/dist/info-BivxW-qV.mjs +0 -187
  45. package/dist/info-Bn-BseIm.mjs +0 -187
  46. package/dist/info-C-ga_8K9.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
+ };
@@ -1,15 +1,16 @@
1
- var T = Object.defineProperty;
2
- var _ = (c, t, i) => t in c ? T(c, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : c[t] = i;
3
- var s = (c, t, i) => _(c, typeof t != "symbol" ? t + "" : t, i);
4
- import { ref as S } from "vue";
5
- import { BizLayDict as p, BizDict as l, CustomBizDict as N, EnumDict as a } from "jmash-core";
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
6
  import { sysOrgApi as n } from "./index.mjs";
7
+ import { deptApi as S, jobApi as N } from "jmash-rbac";
7
8
  import { EntryDict as O } from "jmash-dict";
8
9
  class e {
9
10
  }
10
11
  //模块
11
12
  s(e, "MODULE_RBAC", "rbac"), s(e, "MODULE_ITSMSYS", "itsmsys"), // 公司管理状态
12
- s(e, "HAS_STATUS", S([
13
+ s(e, "HAS_STATUS", m([
13
14
  { key: !0, value: "启用" },
14
15
  { key: !1, value: "禁用" }
15
16
  ])), // 公司发票类型
@@ -60,85 +61,135 @@ s(e, "amapConfig", {
60
61
  // 高德地图安全密钥
61
62
  securityJsCode: "9c92eb8120ea30d8c5ce75140e5b5c08"
62
63
  }), // 运维工程师资质等级
63
- s(e, "DICT_ENGINEE_GRADE", "enginee_grade");
64
- class M extends p {
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 _ {
65
78
  // 实现 useValues 方法
66
- useValues() {
67
- return new Promise((t, i) => {
79
+ useValues(i) {
80
+ return new Promise((t, u) => {
68
81
  if (typeof n.findList > "u") {
69
82
  t(this.values);
70
83
  return;
71
84
  }
72
- const u = { ...this.query };
73
- n.findList(u).then(({ data: o }) => {
74
- const E = o.results;
75
- this.values.length = 0, this.values.push(...this.convertToLayEntryArray(E)), t(this.values);
76
- }).catch(i);
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);
77
90
  });
78
91
  }
79
- convertToLayEntryArray(t) {
80
- return t.map((i) => ({
81
- value: i.orgId,
82
- label: i.orgName,
83
- parentId: i.parentId || "",
84
- children: i.children ? this.convertToLayEntryArray(i.children) : []
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) : []
85
98
  }));
86
99
  }
87
100
  }
88
- class y extends l {
101
+ class p extends l {
89
102
  // 实现 useValues 方法
90
103
  useValues() {
91
- return new Promise((t, i) => {
104
+ return new Promise((i, t) => {
92
105
  n.findPage(this.query).then(({ data: u }) => {
93
- const o = u.results;
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;
94
143
  this.values.length = 0, this.values.push(
95
- ...o.map(
96
- (E) => ({
97
- key: E.orgId,
98
- value: E.orgName
144
+ ...E.map(
145
+ (c) => ({
146
+ key: c.roleId,
147
+ value: c.roleName
99
148
  })
100
149
  )
101
- ), t(this.values);
102
- }).catch(i);
150
+ ), i(this.values);
151
+ }).catch(t);
103
152
  });
104
153
  }
105
154
  }
106
155
  class r {
107
156
  }
108
157
  // 公司管理状态
109
- s(r, "hasStatusDict", new N(e.HAS_STATUS, {})), // 公司发票类型
110
- s(r, "invoiceTypeDictEnum", new a(
158
+ s(r, "hasStatusDict", new h(e.HAS_STATUS, {})), // 公司发票类型
159
+ s(r, "invoiceTypeDictEnum", new o(
111
160
  e.MODULE_ITSMSYS,
112
161
  e.ENUM_INVOICE_TYPE
113
162
  )), // 厅局管理父厅级单位
114
- s(r, "parentIdBizDict", new M({
163
+ s(r, "parentIdBizDict", new g({
115
164
  orgType: e.orgType.hall
116
165
  })), // 管理人员工作状态
117
- s(r, "jobStatusDictEnum", new a(
166
+ s(r, "jobStatusDictEnum", new o(
118
167
  e.MODULE_ITSMSYS,
119
168
  e.ENUM_JOB_ATATUS
120
169
  )), // 运维人员工作模式
121
- s(r, "engineeJobModeDictEnum", new a(
170
+ s(r, "engineeJobModeDictEnum", new o(
122
171
  e.MODULE_ITSMSYS,
123
172
  e.ENUM_ENGINEE_JOB_MODE
124
173
  )), // 性别
125
- s(r, "genderDict", new a(
174
+ s(r, "genderDict", new o(
126
175
  e.MODULE_RBAC,
127
176
  e.ENUM_GENDER
128
177
  )), // 运维人员工程师类型
129
- s(r, "engineeTypeDictEnum", new a(
178
+ s(r, "engineeTypeDictEnum", new o(
130
179
  e.MODULE_ITSMSYS,
131
180
  e.ENUM_ENGINEE_TYPE
132
181
  )), // 公司人员选择公司名称
133
- s(r, "sysOrgBizDict", new y({
182
+ s(r, "sysOrgBizDict", new p({
134
183
  orgType: e.orgType.cloud
135
184
  })), // 外协运维人员选择公司名称
136
- s(r, "sysOutBizDict", new y({
185
+ s(r, "sysOutBizDict", new p({
137
186
  orgType: e.orgType.outsource
138
187
  })), // 运维工程师资质等级
139
188
  s(r, "engineeCertificateDict", new O(
140
189
  e.DICT_ENGINEE_GRADE
141
- ));
190
+ )), // 分组
191
+ s(r, "deptBizDict", new M({})), // 岗位
192
+ s(r, "jobBizDict", new I({}));
142
193
  export {
143
194
  e as C,
144
195
  r as D