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
package/dts/api/dict.d.ts CHANGED
@@ -1,9 +1,15 @@
1
1
  import { BizLayDict, type Entry, type LayEntry, BizDict } from "jmash-core";
2
2
  import type { SysOrgModel } from "./itsm-sys-org/types";
3
3
  export declare class ParentIdBizDict extends BizLayDict {
4
- useValues(): Promise<LayEntry[]>;
4
+ useValues(excludeOrgId?: string): Promise<LayEntry[]>;
5
5
  convertToLayEntryArray(dictLayEntries: SysOrgModel[]): LayEntry[];
6
6
  }
7
7
  export declare class SysOrgBizDict extends BizDict {
8
8
  useValues(): Promise<Entry[]>;
9
9
  }
10
+ export declare class DeptBizDict extends BizDict {
11
+ useValues(): Promise<Entry[]>;
12
+ }
13
+ export declare class JobBizDict extends BizDict {
14
+ useValues(): Promise<Entry[]>;
15
+ }
@@ -1,5 +1,5 @@
1
1
  import { EnumDict, CustomBizDict } from "jmash-core";
2
- import { ParentIdBizDict, SysOrgBizDict } from "./dict";
2
+ import { DeptBizDict, JobBizDict, ParentIdBizDict, SysOrgBizDict } from "./dict";
3
3
  import { EntryDict } from "jmash-dict";
4
4
  export declare class Dict {
5
5
  static readonly hasStatusDict: CustomBizDict;
@@ -12,4 +12,6 @@ export declare class Dict {
12
12
  static readonly sysOrgBizDict: SysOrgBizDict;
13
13
  static readonly sysOutBizDict: SysOrgBizDict;
14
14
  static readonly engineeCertificateDict: EntryDict;
15
+ static readonly deptBizDict: DeptBizDict;
16
+ static readonly jobBizDict: JobBizDict;
15
17
  }
@@ -7,6 +7,7 @@ export interface SysOrgReq extends EntityReq {
7
7
  hasStatus?: boolean;
8
8
  orgType?: string;
9
9
  hasOrgType?: boolean;
10
+ excludeOrgId?: string;
10
11
  }
11
12
  export interface SysOrgModel extends EntityModel {
12
13
  orgId?: string;
@@ -10,6 +10,10 @@ export interface SysUserExtReq extends EntityReq {
10
10
  hasEngineeJobMode?: boolean;
11
11
  likeUserName?: string;
12
12
  orgId?: string;
13
+ deptId?: string;
14
+ jobId?: string;
15
+ engineeType?: string;
16
+ hasEngineeType?: boolean;
13
17
  }
14
18
  export interface SysUserExtModel extends EntityModel {
15
19
  userId?: string;
package/dts/constant.d.ts CHANGED
@@ -44,4 +44,12 @@ export declare class Constant {
44
44
  securityJsCode: string;
45
45
  };
46
46
  static readonly DICT_ENGINEE_GRADE = "enginee_grade";
47
+ static readonly orderBy: {
48
+ orderName: string;
49
+ orderAsc: boolean;
50
+ };
51
+ static readonly taxRate: {
52
+ min: number;
53
+ max: number;
54
+ };
47
55
  }
@@ -18,6 +18,8 @@ declare const _default: {
18
18
  contactPersonTel: string;
19
19
  contactPersonTelRequired: string;
20
20
  contactPersonTelRequireds: string;
21
+ geoLongitudeRequired: string;
22
+ geoLatitudeRequired: string;
21
23
  };
22
24
  sysOrgInvoice: {
23
25
  invoiceType: string;
@@ -56,6 +58,8 @@ declare const _default: {
56
58
  contactPersonTel: string;
57
59
  contactPersonTelRequired: string;
58
60
  contactPersonTelRequireds: string;
61
+ geoLongitudeRequired: string;
62
+ geoLatitudeRequired: string;
59
63
  };
60
64
  sysOut: {
61
65
  contactPerson: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xyvcard-itsmsys",
3
- "version": "0.0.12",
3
+ "version": "0.0.13",
4
4
  "private": false,
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dts/index.d.ts",
@@ -1,4 +0,0 @@
1
- import { _ as f } from "./import-upload.vue_vue_type_script_setup_true_lang-tjMLoB_W.mjs";
2
- export {
3
- f as default
4
- };
@@ -1,4 +0,0 @@
1
- import { _ as f } from "./import-upload.vue_vue_type_script_setup_true_lang-pjSs3v9e.mjs";
2
- export {
3
- f as default
4
- };
@@ -1,162 +0,0 @@
1
- import { defineComponent as z, ref as c, reactive as V, toRefs as A, resolveComponent as l, openBlock as H, createBlock as G, unref as h, isRef as J, withCtx as e, createElementVNode as s, createVNode as t, createTextVNode as u, toDisplayString as d } from "vue";
2
- import { useI18n as K } from "vue-i18n";
3
- import { ElMessage as m } from "element-plus";
4
- import { fileApi as C, useUserStore as D } from "jmash-core";
5
- import { D as I } from "./index-Dno_3GpX.mjs";
6
- const L = { class: "el-upload__text" }, P = { style: { color: "var(--el-color-primary)" } }, Q = { class: "dialog-footer" }, oe = /* @__PURE__ */ z({
7
- __name: "import-upload",
8
- props: {
9
- uploadVisible: {
10
- type: Boolean,
11
- default: () => !1
12
- },
13
- templateTitle: {
14
- type: String,
15
- default: ""
16
- }
17
- },
18
- emits: ["templateDown", "importEvents", "uploadClosed"],
19
- setup(f, { emit: w }) {
20
- const { t: _ } = K();
21
- I.sysOutBizDict.useValues();
22
- const k = c(C.uploadUrl()), U = c(C.authHeader()), b = V({
23
- tenant: D().user.tenant
24
- }), $ = c(), a = V({
25
- tenant: D().user.tenant,
26
- requestId: Math.random() * 10 + "",
27
- fileNames: "",
28
- updateMask: "",
29
- addFlag: !0,
30
- // 必填项,true新增,false修改
31
- orgId: ""
32
- }), E = f, r = w, { uploadVisible: i } = A(E);
33
- function N() {
34
- r("templateDown");
35
- }
36
- function R(o) {
37
- a.fileNames = o.fileSrc, a.addFlag = o.addFlag, a.fileNames && m({
38
- message: _("common.uploadSuccess"),
39
- type: "success"
40
- });
41
- }
42
- const S = () => {
43
- m.warning("当前限制选择 1 个文件");
44
- };
45
- function q() {
46
- if (!a.orgId) {
47
- m({
48
- message: _("sysUserOps.orgIdRequired"),
49
- type: "error"
50
- });
51
- return;
52
- }
53
- r("importEvents", a);
54
- }
55
- function g() {
56
- r("uploadClosed");
57
- }
58
- return (o, n) => {
59
- const y = l("el-col"), B = l("jmash-select"), F = l("el-form-item"), O = l("el-row"), x = l("upload-filled"), M = l("el-icon"), T = l("el-upload"), v = l("el-button"), j = l("el-dialog");
60
- return H(), G(j, {
61
- modelValue: h(i),
62
- "onUpdate:modelValue": n[1] || (n[1] = (p) => J(i) ? i.value = p : null),
63
- title: o.$t("common.uploadFiles"),
64
- width: "500px",
65
- onClose: g
66
- }, {
67
- footer: e(() => [
68
- s("div", Q, [
69
- t(v, { onClick: g }, {
70
- default: e(() => [
71
- u(d(o.$t("common.cancel")), 1)
72
- ]),
73
- _: 1
74
- }),
75
- t(v, {
76
- type: "primary",
77
- onClick: q
78
- }, {
79
- default: e(() => [
80
- u(d(o.$t("common.confirm")), 1)
81
- ]),
82
- _: 1
83
- })
84
- ])
85
- ]),
86
- default: e(() => [
87
- t(O, null, {
88
- default: e(() => [
89
- t(y, { span: 24 }, {
90
- default: e(() => [
91
- t(F, { prop: "orgId" }, {
92
- default: e(() => [
93
- t(y, { span: 4 }, {
94
- default: e(() => [
95
- n[2] || (n[2] = s("span", { class: "required_red" }, "*", -1)),
96
- s("span", null, d(o.$t("sysUserOps.orgId")), 1)
97
- ]),
98
- _: 1
99
- }),
100
- t(B, {
101
- modelValue: a.orgId,
102
- "onUpdate:modelValue": n[0] || (n[0] = (p) => a.orgId = p),
103
- data: h(I).sysOutBizDict.values,
104
- filterable: "",
105
- "check-strictly": "",
106
- clearable: "",
107
- "render-after-expand": !1,
108
- placeholder: o.$t("sysUserOps.orgIdRequired"),
109
- class: "w-80"
110
- }, null, 8, ["modelValue", "data", "placeholder"])
111
- ]),
112
- _: 1
113
- })
114
- ]),
115
- _: 1
116
- })
117
- ]),
118
- _: 1
119
- }),
120
- t(T, {
121
- ref_key: "uploadRef",
122
- ref: $,
123
- drag: "",
124
- action: k.value,
125
- headers: U.value,
126
- data: b,
127
- limit: 1,
128
- "on-success": R,
129
- "on-exceed": S,
130
- style: { "margin-top": "20px" }
131
- }, {
132
- tip: e(() => [
133
- s("div", {
134
- class: "el-upload__tip",
135
- onClick: N
136
- }, [
137
- s("a", P, d(f.templateTitle), 1)
138
- ])
139
- ]),
140
- default: e(() => [
141
- t(M, { class: "el-icon--upload" }, {
142
- default: e(() => [
143
- t(x)
144
- ]),
145
- _: 1
146
- }),
147
- s("div", L, [
148
- u(d(o.$t("common.dragFiles")) + " ", 1),
149
- s("em", null, d(o.$t("common.uploadEvent")), 1)
150
- ])
151
- ]),
152
- _: 1
153
- }, 8, ["action", "headers", "data"])
154
- ]),
155
- _: 1
156
- }, 8, ["modelValue", "title"]);
157
- };
158
- }
159
- });
160
- export {
161
- oe as _
162
- };
@@ -1,162 +0,0 @@
1
- import { defineComponent as z, ref as c, reactive as V, toRefs as A, resolveComponent as l, openBlock as H, createBlock as G, unref as h, isRef as J, withCtx as e, createElementVNode as s, createVNode as t, createTextVNode as u, toDisplayString as d } from "vue";
2
- import { useI18n as K } from "vue-i18n";
3
- import { ElMessage as m } from "element-plus";
4
- import { fileApi as C, useUserStore as D } from "jmash-core";
5
- import { D as I } from "./index-Dno_3GpX.mjs";
6
- const L = { class: "el-upload__text" }, P = { style: { color: "var(--el-color-primary)" } }, Q = { class: "dialog-footer" }, oe = /* @__PURE__ */ z({
7
- __name: "import-upload",
8
- props: {
9
- uploadVisible: {
10
- type: Boolean,
11
- default: () => !1
12
- },
13
- templateTitle: {
14
- type: String,
15
- default: ""
16
- }
17
- },
18
- emits: ["templateDown", "importEvents", "uploadClosed"],
19
- setup(f, { emit: w }) {
20
- const { t: _ } = K();
21
- I.sysOrgBizDict.useValues();
22
- const k = c(C.uploadUrl()), U = c(C.authHeader()), b = V({
23
- tenant: D().user.tenant
24
- }), $ = c(), a = V({
25
- tenant: D().user.tenant,
26
- requestId: Math.random() * 10 + "",
27
- fileNames: "",
28
- updateMask: "",
29
- addFlag: !0,
30
- // 必填项,true新增,false修改
31
- orgId: ""
32
- }), E = f, r = w, { uploadVisible: i } = A(E);
33
- function N() {
34
- r("templateDown");
35
- }
36
- function R(o) {
37
- a.fileNames = o.fileSrc, a.addFlag = o.addFlag, a.fileNames && m({
38
- message: _("common.uploadSuccess"),
39
- type: "success"
40
- });
41
- }
42
- const S = () => {
43
- m.warning("当前限制选择 1 个文件");
44
- };
45
- function q() {
46
- if (!a.orgId) {
47
- m({
48
- message: _("sysUserOps.orgIdRequired"),
49
- type: "error"
50
- });
51
- return;
52
- }
53
- r("importEvents", a);
54
- }
55
- function g() {
56
- r("uploadClosed");
57
- }
58
- return (o, n) => {
59
- const y = l("el-col"), B = l("jmash-select"), F = l("el-form-item"), O = l("el-row"), x = l("upload-filled"), M = l("el-icon"), T = l("el-upload"), v = l("el-button"), j = l("el-dialog");
60
- return H(), G(j, {
61
- modelValue: h(i),
62
- "onUpdate:modelValue": n[1] || (n[1] = (p) => J(i) ? i.value = p : null),
63
- title: o.$t("common.uploadFiles"),
64
- width: "500px",
65
- onClose: g
66
- }, {
67
- footer: e(() => [
68
- s("div", Q, [
69
- t(v, { onClick: g }, {
70
- default: e(() => [
71
- u(d(o.$t("common.cancel")), 1)
72
- ]),
73
- _: 1
74
- }),
75
- t(v, {
76
- type: "primary",
77
- onClick: q
78
- }, {
79
- default: e(() => [
80
- u(d(o.$t("common.confirm")), 1)
81
- ]),
82
- _: 1
83
- })
84
- ])
85
- ]),
86
- default: e(() => [
87
- t(O, null, {
88
- default: e(() => [
89
- t(y, { span: 24 }, {
90
- default: e(() => [
91
- t(F, { prop: "orgId" }, {
92
- default: e(() => [
93
- t(y, { span: 4 }, {
94
- default: e(() => [
95
- n[2] || (n[2] = s("span", { class: "required_red" }, "*", -1)),
96
- s("span", null, d(o.$t("sysUserOps.orgId")), 1)
97
- ]),
98
- _: 1
99
- }),
100
- t(B, {
101
- modelValue: a.orgId,
102
- "onUpdate:modelValue": n[0] || (n[0] = (p) => a.orgId = p),
103
- data: h(I).sysOrgBizDict.values,
104
- filterable: "",
105
- "check-strictly": "",
106
- clearable: "",
107
- "render-after-expand": !1,
108
- placeholder: o.$t("sysUserOps.orgIdRequired"),
109
- class: "w-80"
110
- }, null, 8, ["modelValue", "data", "placeholder"])
111
- ]),
112
- _: 1
113
- })
114
- ]),
115
- _: 1
116
- })
117
- ]),
118
- _: 1
119
- }),
120
- t(T, {
121
- ref_key: "uploadRef",
122
- ref: $,
123
- drag: "",
124
- action: k.value,
125
- headers: U.value,
126
- data: b,
127
- limit: 1,
128
- "on-success": R,
129
- "on-exceed": S,
130
- style: { "margin-top": "20px" }
131
- }, {
132
- tip: e(() => [
133
- s("div", {
134
- class: "el-upload__tip",
135
- onClick: N
136
- }, [
137
- s("a", P, d(f.templateTitle), 1)
138
- ])
139
- ]),
140
- default: e(() => [
141
- t(M, { class: "el-icon--upload" }, {
142
- default: e(() => [
143
- t(x)
144
- ]),
145
- _: 1
146
- }),
147
- s("div", L, [
148
- u(d(o.$t("common.dragFiles")) + " ", 1),
149
- s("em", null, d(o.$t("common.uploadEvent")), 1)
150
- ])
151
- ]),
152
- _: 1
153
- }, 8, ["action", "headers", "data"])
154
- ]),
155
- _: 1
156
- }, 8, ["modelValue", "title"]);
157
- };
158
- }
159
- });
160
- export {
161
- oe as _
162
- };