xyvcard-itsmsys 0.0.5 → 0.0.7
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/{edit-DPM0jGQT.mjs → edit-B2gR_6I8.mjs} +1 -1
- package/dist/{edit-DLAiwJjs.mjs → edit-BbJa_Nfr.mjs} +10 -10
- package/dist/{edit-CIm8Y0Be.mjs → edit-C42Omp9z.mjs} +1 -1
- package/dist/{edit-DZJU5ZPt.mjs → edit-Dfay8i1B.mjs} +1 -1
- package/dist/{edit-CWVYUzgf.mjs → edit-Dm9CXMA6.mjs} +11 -10
- package/dist/{edit-D82hX9if.mjs → edit-Fi1_QjAr.mjs} +1 -1
- package/dist/{edit-BhRXuYku.mjs → edit-GlkC3kLR.mjs} +15 -15
- package/dist/{edit.vue_vue_type_script_setup_true_lang-Bt5P3H7c.mjs → edit.vue_vue_type_script_setup_true_lang-C26lz_HM.mjs} +24 -23
- package/dist/{edit.vue_vue_type_script_setup_true_lang-yCnCh6Q1.mjs → edit.vue_vue_type_script_setup_true_lang-Cj-FgUgJ.mjs} +49 -48
- package/dist/{edit.vue_vue_type_script_setup_true_lang-BIx7D8XA.mjs → edit.vue_vue_type_script_setup_true_lang-CoB3CDY2.mjs} +46 -45
- package/dist/{edit.vue_vue_type_script_setup_true_lang-CkIn1tAB.mjs → edit.vue_vue_type_script_setup_true_lang-r4tQk9wV.mjs} +2 -2
- package/dist/index-B6FMyHxQ.mjs +99 -0
- package/dist/index-B6vJj_z6.mjs +74 -0
- package/dist/{index-B_cot8iN.mjs → index-BHLCtDlx.mjs} +126 -133
- package/dist/{index-C6KvLUoL.mjs → index-BV8SsW14.mjs} +1 -1
- package/dist/{index-CEUyLrKg.mjs → index-CSMVzE7h.mjs} +101 -108
- package/dist/{index-BkHGzL0R.mjs → index-Ce07ACPH.mjs} +130 -137
- package/dist/{index-CogdeN09.mjs → index-DTjJvEfz.mjs} +103 -124
- package/dist/{index-ClU157bA.mjs → index-N57BEkTO.mjs} +116 -130
- package/dist/index-Up4lAJrU.mjs +364 -0
- package/dist/index.mjs +1096 -1055
- package/dist/index.vue_vue_type_script_setup_true_lang-C5j_HTke.mjs +191 -0
- package/dist/{info-BWgVN2mJ.mjs → info-BVrtvDle.mjs} +1 -1
- package/dist/{info-70H0sycC.mjs → info-Bc3bycK1.mjs} +2 -2
- package/dist/{info-CE-ZnFj5.mjs → info-Bz6yHt3N.mjs} +1 -1
- package/dist/{info-MYJGcyMX.mjs → info-D-ykgDrJ.mjs} +1 -1
- package/dist/{info-Z5LuCRmr.mjs → info-D7YAHptq.mjs} +2 -2
- package/dist/{info-Kf11Ye-N.mjs → info-DO3PSaAZ.mjs} +2 -2
- package/dts/src/api/itsm-sys-org/types.d.ts +0 -3
- package/dts/src/api/itsm-sys-org-invoice/index.d.ts +1 -0
- package/dts/src/api/itsm-sys-org-invoice/types.d.ts +5 -1
- package/dts/src/constant.d.ts +9 -1
- package/dts/src/index.d.ts +1 -0
- package/package.json +1 -1
- package/dist/index-BQRtMgmZ.mjs +0 -340
- package/dist/index-ChTssr8-.mjs +0 -123
- package/dist/index-DOXuGEyW.mjs +0 -62
- package/dist/index.vue_vue_type_script_setup_true_lang-CNEAZibd.mjs +0 -180
|
@@ -1,26 +1,27 @@
|
|
|
1
|
-
import { defineComponent as J, ref as
|
|
1
|
+
import { defineComponent as J, ref as P, resolveComponent as s, resolveDirective as W, openBlock as m, createElementBlock as h, createElementVNode as $, createVNode as n, withCtx as l, withKeys as V, unref as a, createTextVNode as u, toDisplayString as d, withDirectives as b, createBlock as C, isRef as N, createCommentVNode as X } from "vue";
|
|
2
2
|
import { useTableHooks as Y } from "jmash-core";
|
|
3
3
|
import { useI18n as Z } from "vue-i18n";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
4
|
+
import { Constant as x, sysOrgApi as ee } from "./index.mjs";
|
|
5
|
+
import { useRouter as te } from "vue-router";
|
|
6
|
+
import { D as oe } from "./index-B6FMyHxQ.mjs";
|
|
7
7
|
const le = { class: "app-container" }, ne = { class: "search-container" }, ae = ["onClick"], se = ["onClick"], re = ["onClick"], ge = /* @__PURE__ */ J({
|
|
8
8
|
__name: "index",
|
|
9
9
|
setup(ie) {
|
|
10
|
-
const { t:
|
|
10
|
+
const { t: O } = Z(), v = te(), i = P({
|
|
11
11
|
orgType: x.orgType.cloud
|
|
12
12
|
}), {
|
|
13
|
-
tableHooks:
|
|
13
|
+
tableHooks: r,
|
|
14
14
|
multipleTableRef: T,
|
|
15
15
|
queryFormRef: E,
|
|
16
16
|
listLoading: I,
|
|
17
|
-
tableData:
|
|
17
|
+
tableData: R,
|
|
18
18
|
total: f
|
|
19
|
-
} = Y(
|
|
20
|
-
let
|
|
19
|
+
} = Y(O, ee, i);
|
|
20
|
+
let c = P([
|
|
21
21
|
{
|
|
22
22
|
label: "sysOrg.orgName",
|
|
23
23
|
prop: "orgName",
|
|
24
|
+
width: "270",
|
|
24
25
|
isColumn: !0
|
|
25
26
|
},
|
|
26
27
|
{
|
|
@@ -43,6 +44,12 @@ const le = { class: "app-container" }, ne = { class: "search-container" }, ae =
|
|
|
43
44
|
width: "200",
|
|
44
45
|
isColumn: !0
|
|
45
46
|
},
|
|
47
|
+
{
|
|
48
|
+
label: "sysOrg.address",
|
|
49
|
+
prop: "address",
|
|
50
|
+
width: "350",
|
|
51
|
+
isColumn: !0
|
|
52
|
+
},
|
|
46
53
|
{
|
|
47
54
|
label: "sysOrg.status",
|
|
48
55
|
prop: "status",
|
|
@@ -60,76 +67,55 @@ const le = { class: "app-container" }, ne = { class: "search-container" }, ae =
|
|
|
60
67
|
isColumn: !0
|
|
61
68
|
}
|
|
62
69
|
]);
|
|
63
|
-
function
|
|
70
|
+
function j(o) {
|
|
64
71
|
o.mobileEncrypt = !o.mobileEncrypt;
|
|
65
72
|
}
|
|
66
|
-
function
|
|
67
|
-
|
|
73
|
+
function S() {
|
|
74
|
+
v.push({ path: "/rawitsmsys/itsm-sys-org/edit" });
|
|
68
75
|
}
|
|
69
|
-
function
|
|
70
|
-
|
|
76
|
+
function D(o) {
|
|
77
|
+
v.push({
|
|
71
78
|
path: "/rawitsmsys/itsm-sys-org/edit",
|
|
72
79
|
query: { entityKey: o.orgId }
|
|
73
80
|
});
|
|
74
81
|
}
|
|
75
|
-
function
|
|
76
|
-
|
|
82
|
+
function U(o) {
|
|
83
|
+
v.push({
|
|
77
84
|
path: "/rawitsmsys/itsm-sys-org/orgInfo",
|
|
78
85
|
query: { orgId: o.orgId }
|
|
79
86
|
});
|
|
80
87
|
}
|
|
81
|
-
function
|
|
82
|
-
|
|
88
|
+
function q(o) {
|
|
89
|
+
r.selectionRows.value = o;
|
|
83
90
|
}
|
|
84
|
-
function
|
|
85
|
-
|
|
91
|
+
function M(o) {
|
|
92
|
+
r.handleSort(o.prop, o.order);
|
|
86
93
|
}
|
|
87
|
-
return
|
|
88
|
-
const
|
|
89
|
-
return
|
|
90
|
-
|
|
91
|
-
|
|
94
|
+
return r.getList(), (o, t) => {
|
|
95
|
+
const z = s("el-input"), w = s("el-form-item"), y = s("el-col"), K = s("jmash-select"), _ = s("el-button"), k = s("el-row"), L = s("el-form"), Q = s("jmash-column-select"), B = s("jmash-mobileIns-component"), A = s("el-switch"), F = s("jmash-table"), H = s("jmash-pagination"), G = s("el-card"), g = W("hasPerm");
|
|
96
|
+
return m(), h("div", le, [
|
|
97
|
+
$("div", ne, [
|
|
98
|
+
n(L, {
|
|
92
99
|
ref_key: "queryFormRef",
|
|
93
100
|
ref: E,
|
|
94
|
-
model:
|
|
101
|
+
model: i.value,
|
|
95
102
|
inline: !0
|
|
96
103
|
}, {
|
|
97
|
-
default:
|
|
98
|
-
|
|
99
|
-
default:
|
|
100
|
-
|
|
101
|
-
default:
|
|
102
|
-
|
|
104
|
+
default: l(() => [
|
|
105
|
+
n(k, null, {
|
|
106
|
+
default: l(() => [
|
|
107
|
+
n(y, { span: 6 }, {
|
|
108
|
+
default: l(() => [
|
|
109
|
+
n(w, {
|
|
103
110
|
label: o.$t("sysOrg.orgName"),
|
|
104
111
|
prop: "likeOrgName"
|
|
105
112
|
}, {
|
|
106
|
-
default:
|
|
107
|
-
|
|
108
|
-
modelValue:
|
|
109
|
-
"onUpdate:modelValue": t[0] || (t[0] = (e) =>
|
|
113
|
+
default: l(() => [
|
|
114
|
+
n(z, {
|
|
115
|
+
modelValue: i.value.likeOrgName,
|
|
116
|
+
"onUpdate:modelValue": t[0] || (t[0] = (e) => i.value.likeOrgName = e),
|
|
110
117
|
placeholder: o.$t("sysOrg.orgNameRequired"),
|
|
111
|
-
onKeyup: t[1] || (t[1] =
|
|
112
|
-
class: "!w-[203px]",
|
|
113
|
-
clearable: ""
|
|
114
|
-
}, null, 8, ["modelValue", "placeholder"])
|
|
115
|
-
]),
|
|
116
|
-
_: 1
|
|
117
|
-
}, 8, ["label"])
|
|
118
|
-
]),
|
|
119
|
-
_: 1
|
|
120
|
-
}),
|
|
121
|
-
l(p, { span: 6 }, {
|
|
122
|
-
default: n(() => [
|
|
123
|
-
l(_, {
|
|
124
|
-
label: o.$t("sysOrg.contactPerson"),
|
|
125
|
-
prop: "contactPerson"
|
|
126
|
-
}, {
|
|
127
|
-
default: n(() => [
|
|
128
|
-
l($, {
|
|
129
|
-
modelValue: r.value.contactPerson,
|
|
130
|
-
"onUpdate:modelValue": t[2] || (t[2] = (e) => r.value.contactPerson = e),
|
|
131
|
-
placeholder: o.$t("sysOrg.contactPersonRequired"),
|
|
132
|
-
onKeyup: t[3] || (t[3] = C((e) => a(i).handleQuery(), ["enter"])),
|
|
118
|
+
onKeyup: t[1] || (t[1] = V((e) => a(r).handleQuery(), ["enter"])),
|
|
133
119
|
class: "!w-[203px]",
|
|
134
120
|
clearable: ""
|
|
135
121
|
}, null, 8, ["modelValue", "placeholder"])
|
|
@@ -139,20 +125,20 @@ const le = { class: "app-container" }, ne = { class: "search-container" }, ae =
|
|
|
139
125
|
]),
|
|
140
126
|
_: 1
|
|
141
127
|
}),
|
|
142
|
-
|
|
143
|
-
default:
|
|
144
|
-
|
|
128
|
+
n(y, { span: 6 }, {
|
|
129
|
+
default: l(() => [
|
|
130
|
+
n(w, {
|
|
145
131
|
label: o.$t("sysOrg.status"),
|
|
146
132
|
prop: "status"
|
|
147
133
|
}, {
|
|
148
|
-
default:
|
|
149
|
-
|
|
150
|
-
modelValue:
|
|
151
|
-
"onUpdate:modelValue": t[
|
|
134
|
+
default: l(() => [
|
|
135
|
+
n(K, {
|
|
136
|
+
modelValue: i.value.status,
|
|
137
|
+
"onUpdate:modelValue": t[2] || (t[2] = (e) => i.value.status = e),
|
|
152
138
|
placeholder: o.$t("sysOrg.statusRequired"),
|
|
153
|
-
data: a(
|
|
139
|
+
data: a(oe).hasStatusDict.values,
|
|
154
140
|
clearable: "",
|
|
155
|
-
onKeyup: t[
|
|
141
|
+
onKeyup: t[3] || (t[3] = V((e) => a(r).handleQuery(), ["enter"]))
|
|
156
142
|
}, null, 8, ["modelValue", "placeholder", "data"])
|
|
157
143
|
]),
|
|
158
144
|
_: 1
|
|
@@ -160,24 +146,24 @@ const le = { class: "app-container" }, ne = { class: "search-container" }, ae =
|
|
|
160
146
|
]),
|
|
161
147
|
_: 1
|
|
162
148
|
}),
|
|
163
|
-
|
|
164
|
-
default:
|
|
165
|
-
|
|
166
|
-
default:
|
|
167
|
-
|
|
149
|
+
n(y, { span: 12 }, {
|
|
150
|
+
default: l(() => [
|
|
151
|
+
n(w, { class: "search-btn" }, {
|
|
152
|
+
default: l(() => [
|
|
153
|
+
n(_, {
|
|
168
154
|
type: "primary",
|
|
169
|
-
onClick: t[
|
|
155
|
+
onClick: t[4] || (t[4] = (e) => a(r).handleQuery())
|
|
170
156
|
}, {
|
|
171
|
-
default:
|
|
172
|
-
|
|
157
|
+
default: l(() => [
|
|
158
|
+
u(d(o.$t("common.search")), 1)
|
|
173
159
|
]),
|
|
174
160
|
_: 1
|
|
175
161
|
}),
|
|
176
|
-
|
|
177
|
-
onClick: t[
|
|
162
|
+
n(_, {
|
|
163
|
+
onClick: t[5] || (t[5] = (e) => a(r).resetQuery())
|
|
178
164
|
}, {
|
|
179
|
-
default:
|
|
180
|
-
|
|
165
|
+
default: l(() => [
|
|
166
|
+
u(d(o.$t("common.reset")), 1)
|
|
181
167
|
]),
|
|
182
168
|
_: 1
|
|
183
169
|
})
|
|
@@ -193,34 +179,34 @@ const le = { class: "app-container" }, ne = { class: "search-container" }, ae =
|
|
|
193
179
|
]),
|
|
194
180
|
_: 1
|
|
195
181
|
}, 8, ["model"]),
|
|
196
|
-
t[
|
|
182
|
+
t[12] || (t[12] = $("div", { class: "clear" }, null, -1))
|
|
197
183
|
]),
|
|
198
|
-
|
|
184
|
+
n(G, {
|
|
199
185
|
shadow: "never",
|
|
200
186
|
class: "table-container"
|
|
201
187
|
}, {
|
|
202
|
-
header:
|
|
203
|
-
|
|
204
|
-
default:
|
|
205
|
-
|
|
206
|
-
default:
|
|
207
|
-
b((
|
|
188
|
+
header: l(() => [
|
|
189
|
+
n(k, null, {
|
|
190
|
+
default: l(() => [
|
|
191
|
+
n(y, { span: 17 }, {
|
|
192
|
+
default: l(() => [
|
|
193
|
+
b((m(), C(_, {
|
|
208
194
|
type: "primary",
|
|
209
|
-
onClick:
|
|
195
|
+
onClick: S
|
|
210
196
|
}, {
|
|
211
|
-
default:
|
|
212
|
-
|
|
197
|
+
default: l(() => [
|
|
198
|
+
u(d(o.$t("common.add")), 1)
|
|
213
199
|
]),
|
|
214
200
|
_: 1
|
|
215
201
|
})), [
|
|
216
202
|
[g, ["itsmsys:sys_org:add"]]
|
|
217
203
|
]),
|
|
218
|
-
b((
|
|
204
|
+
b((m(), C(_, {
|
|
219
205
|
type: "primary",
|
|
220
|
-
onClick: t[
|
|
206
|
+
onClick: t[6] || (t[6] = (e) => a(r).deleteRecords())
|
|
221
207
|
}, {
|
|
222
|
-
default:
|
|
223
|
-
|
|
208
|
+
default: l(() => [
|
|
209
|
+
u(d(o.$t("common.batchDelete")), 1)
|
|
224
210
|
]),
|
|
225
211
|
_: 1
|
|
226
212
|
})), [
|
|
@@ -229,14 +215,14 @@ const le = { class: "app-container" }, ne = { class: "search-container" }, ae =
|
|
|
229
215
|
]),
|
|
230
216
|
_: 1
|
|
231
217
|
}),
|
|
232
|
-
|
|
218
|
+
n(y, {
|
|
233
219
|
span: 7,
|
|
234
220
|
class: "container-float"
|
|
235
221
|
}, {
|
|
236
|
-
default:
|
|
237
|
-
|
|
238
|
-
modelValue: a(
|
|
239
|
-
"onUpdate:modelValue": t[
|
|
222
|
+
default: l(() => [
|
|
223
|
+
n(Q, {
|
|
224
|
+
modelValue: a(c),
|
|
225
|
+
"onUpdate:modelValue": t[7] || (t[7] = (e) => N(c) ? c.value = e : c = e),
|
|
240
226
|
"label-name": "itsmsys/itsm-sys-org"
|
|
241
227
|
}, null, 8, ["modelValue"])
|
|
242
228
|
]),
|
|
@@ -246,66 +232,66 @@ const le = { class: "app-container" }, ne = { class: "search-container" }, ae =
|
|
|
246
232
|
_: 1
|
|
247
233
|
})
|
|
248
234
|
]),
|
|
249
|
-
footer:
|
|
250
|
-
a(f) > 0 ? (
|
|
235
|
+
footer: l(() => [
|
|
236
|
+
a(f) > 0 ? (m(), C(H, {
|
|
251
237
|
key: 0,
|
|
252
238
|
total: a(f),
|
|
253
|
-
"onUpdate:total": t[
|
|
254
|
-
"current-page":
|
|
255
|
-
"onUpdate:currentPage": t[
|
|
256
|
-
"page-size":
|
|
257
|
-
"onUpdate:pageSize": t[
|
|
258
|
-
onPagination: t[
|
|
239
|
+
"onUpdate:total": t[8] || (t[8] = (e) => N(f) ? f.value = e : null),
|
|
240
|
+
"current-page": i.value.curPage,
|
|
241
|
+
"onUpdate:currentPage": t[9] || (t[9] = (e) => i.value.curPage = e),
|
|
242
|
+
"page-size": i.value.pageSize,
|
|
243
|
+
"onUpdate:pageSize": t[10] || (t[10] = (e) => i.value.pageSize = e),
|
|
244
|
+
onPagination: t[11] || (t[11] = (e) => a(r).getList())
|
|
259
245
|
}, null, 8, ["total", "current-page", "page-size"])) : X("", !0)
|
|
260
246
|
]),
|
|
261
|
-
default:
|
|
262
|
-
|
|
247
|
+
default: l(() => [
|
|
248
|
+
n(F, {
|
|
263
249
|
ref_key: "multipleTableRef",
|
|
264
250
|
ref: T,
|
|
265
251
|
"row-key": "orgId",
|
|
266
252
|
"list-loading": a(I),
|
|
267
|
-
data: a(
|
|
268
|
-
"table-label": a(
|
|
269
|
-
onSelectionChange:
|
|
270
|
-
onSortChange:
|
|
253
|
+
data: a(R),
|
|
254
|
+
"table-label": a(c),
|
|
255
|
+
onSelectionChange: q,
|
|
256
|
+
onSortChange: M
|
|
271
257
|
}, {
|
|
272
|
-
contactPersonMobile:
|
|
273
|
-
|
|
258
|
+
contactPersonMobile: l((e) => [
|
|
259
|
+
n(B, {
|
|
274
260
|
mobilePhoneIns: e.data.row.contactPersonMobileIns,
|
|
275
261
|
mobilePhone: e.data.row.contactPersonMobile,
|
|
276
262
|
mobileEncrypt: e.data.row.mobileEncrypt,
|
|
277
|
-
onToggleEncrypt: (
|
|
263
|
+
onToggleEncrypt: (p) => j(e.data.row)
|
|
278
264
|
}, null, 8, ["mobilePhoneIns", "mobilePhone", "mobileEncrypt", "onToggleEncrypt"])
|
|
279
265
|
]),
|
|
280
|
-
status:
|
|
281
|
-
|
|
266
|
+
status: l((e) => [
|
|
267
|
+
n(A, {
|
|
282
268
|
modelValue: e.data.row.status,
|
|
283
|
-
"onUpdate:modelValue": (
|
|
284
|
-
onChange: (
|
|
269
|
+
"onUpdate:modelValue": (p) => e.data.row.status = p,
|
|
270
|
+
onChange: (p) => a(r).enableRecord(e.data.row, e.data.row.status)
|
|
285
271
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"])
|
|
286
272
|
]),
|
|
287
|
-
operation:
|
|
288
|
-
b((
|
|
273
|
+
operation: l((e) => [
|
|
274
|
+
b((m(), h("span", {
|
|
289
275
|
class: "el-button-color",
|
|
290
|
-
onClick: (
|
|
276
|
+
onClick: (p) => D(e.data.row)
|
|
291
277
|
}, [
|
|
292
|
-
|
|
278
|
+
u(d(o.$t("common.edit")), 1)
|
|
293
279
|
], 8, ae)), [
|
|
294
280
|
[g, ["itsmsys:sys_org:update"]]
|
|
295
281
|
]),
|
|
296
|
-
b((
|
|
282
|
+
b((m(), h("span", {
|
|
297
283
|
class: "el-button-color dropdown-left",
|
|
298
|
-
onClick: (
|
|
284
|
+
onClick: (p) => a(r).deleteRecord(e.data.row)
|
|
299
285
|
}, [
|
|
300
|
-
|
|
286
|
+
u(d(o.$t("common.delete")), 1)
|
|
301
287
|
], 8, se)), [
|
|
302
288
|
[g, ["itsmsys:sys_org:delete"]]
|
|
303
289
|
]),
|
|
304
|
-
b((
|
|
290
|
+
b((m(), h("span", {
|
|
305
291
|
class: "el-button-color dropdown-left",
|
|
306
|
-
onClick: (
|
|
292
|
+
onClick: (p) => U(e.data.row)
|
|
307
293
|
}, [
|
|
308
|
-
|
|
294
|
+
u(d(o.$t("common.view")), 1)
|
|
309
295
|
], 8, re)), [
|
|
310
296
|
[g, ["itsmsys:sys_org:view"]]
|
|
311
297
|
])
|