xyvcard-itsmsys 0.0.25 → 0.0.27
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-BeKvLuyk.mjs → FileSaver.min-5d27MsC6.mjs} +12 -12
- package/dist/assets/7f3e996112b4923f.png +0 -0
- package/dist/{edit-CfbonHOl.mjs → edit-4Z-ZnpFy.mjs} +1 -1
- package/dist/{edit-DybO5r3p.mjs → edit-8-gDtIOz.mjs} +1 -1
- package/dist/{edit-BrHOGUbU.mjs → edit-BlkaYTGl.mjs} +1 -1
- package/dist/{edit-C82n7Lq0.mjs → edit-CEYAvHd3.mjs} +1 -1
- package/dist/{edit-CNEVornb.mjs → edit-QJ7ZmxX_.mjs} +131 -135
- package/dist/{edit-DYqAdRsK.mjs → edit-diNsokNw.mjs} +3 -3
- package/dist/edit-oJm1rfX1.mjs +410 -0
- package/dist/{edit.vue_vue_type_script_setup_true_lang-CaZa7PUh.mjs → edit.vue_vue_type_script_setup_true_lang-CFG4x85k.mjs} +2 -2
- package/dist/{edit.vue_vue_type_script_setup_true_lang-D2j1brBX.mjs → edit.vue_vue_type_script_setup_true_lang-DeduEUOD.mjs} +100 -96
- package/dist/{edit.vue_vue_type_script_setup_true_lang-BfQVspxd.mjs → edit.vue_vue_type_script_setup_true_lang-T6aiep4s.mjs} +74 -72
- package/dist/{edit.vue_vue_type_script_setup_true_lang-Cg1uyqed.mjs → edit.vue_vue_type_script_setup_true_lang-g81nThyI.mjs} +7 -7
- package/dist/{import-upload-CC1Ho43e.mjs → import-upload-BxVBkr7-.mjs} +2 -2
- package/dist/{import-upload-BaJGVcNb.mjs → import-upload-CtJh5u39.mjs} +2 -2
- package/dist/index-3An-8Hfg.mjs +343 -0
- package/dist/{index-CAzxJ_Vp.mjs → index-BsrMxEM8.mjs} +146 -116
- package/dist/{index-igV06vtf.mjs → index-C2od41K0.mjs} +161 -153
- package/dist/{index-cpyRUYdS.mjs → index-CR3fzc4o.mjs} +79 -73
- package/dist/{index-Di1yx94g.mjs → index-Cgq1M4Qb.mjs} +120 -112
- package/dist/{index-B2xwBTw-.mjs → index-RF4VErgF.mjs} +8 -8
- package/dist/{index-IpHv0Vzi.mjs → index-Trc70jRt.mjs} +1 -1
- package/dist/{index-cKI_mzoF.mjs → index-XMaINj6l.mjs} +188 -179
- package/dist/index.mjs +488 -484
- package/dist/index.vue_vue_type_script_setup_true_lang-B2_RWC8z.mjs +199 -0
- package/dist/{info-G1z1-aeX.mjs → info-0SKOqQd1.mjs} +2 -2
- package/dist/{info-BUKhtcuu.mjs → info-BVo8clC4.mjs} +2 -2
- package/dist/{info-EodyqiPm.mjs → info-CSazWjOe.mjs} +2 -2
- package/dist/{info-6E3wqxd6.mjs → info-DzQiIFfX.mjs} +35 -35
- package/dist/{info-DttXGxP3.mjs → info-Ju_uuO8i.mjs} +3 -3
- package/dist/{info-AE3ch4Zw.mjs → info-n4JaFgZW.mjs} +3 -3
- package/dist/style.css +1 -1
- package/dts/api/itsm-sys-org/types.d.ts +3 -0
- package/dts/lang/itsmsys/zh-cn.d.ts +17 -13
- package/package.json +8 -7
- package/dist/avatar-DFToerb2.mjs +0 -4
- package/dist/edit-COKceKzl.mjs +0 -358
- package/dist/index-BV5uRZXE.mjs +0 -313
- package/dist/index.vue_vue_type_script_setup_true_lang-BnhxjAOt.mjs +0 -198
package/dist/index-BV5uRZXE.mjs
DELETED
|
@@ -1,313 +0,0 @@
|
|
|
1
|
-
import { defineComponent as W, ref as $, onActivated as X, resolveComponent as s, resolveDirective as Y, openBlock as i, createElementBlock as h, createElementVNode as V, createVNode as n, withCtx as l, withKeys as N, unref as a, createTextVNode as m, toDisplayString as d, withDirectives as _, createBlock as C, isRef as O, createCommentVNode as Z } from "vue";
|
|
2
|
-
import { useTableHooks as x } from "jmash-core";
|
|
3
|
-
import { useI18n as ee } from "vue-i18n";
|
|
4
|
-
import { useRouter as te } from "vue-router";
|
|
5
|
-
import { C as k, D as oe } from "./index-dIcRC4jE.mjs";
|
|
6
|
-
import { sysOrgApi as le } from "./index.mjs";
|
|
7
|
-
const ne = { class: "app-container" }, ae = { class: "search-container" }, se = ["onClick"], re = ["onClick"], ue = ["onClick"], _e = /* @__PURE__ */ W({
|
|
8
|
-
__name: "index",
|
|
9
|
-
setup(ie) {
|
|
10
|
-
const { t: T } = ee(), v = te(), u = $({
|
|
11
|
-
orgType: k.orgType.outsource,
|
|
12
|
-
orderName: k.orderBy.orderName,
|
|
13
|
-
orderAsc: k.orderBy.orderAsc
|
|
14
|
-
}), {
|
|
15
|
-
tableHooks: r,
|
|
16
|
-
multipleTableRef: E,
|
|
17
|
-
queryFormRef: I,
|
|
18
|
-
listLoading: R,
|
|
19
|
-
tableData: j,
|
|
20
|
-
total: f
|
|
21
|
-
} = x(T, le, u);
|
|
22
|
-
let c = $([
|
|
23
|
-
{
|
|
24
|
-
label: "sysOut.orgName",
|
|
25
|
-
prop: "orgName",
|
|
26
|
-
width: "270",
|
|
27
|
-
isColumn: !0
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
label: "sysOut.contactPerson",
|
|
31
|
-
prop: "contactPerson",
|
|
32
|
-
width: "150",
|
|
33
|
-
isColumn: !0
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
label: "sysOut.contactPersonMobile",
|
|
37
|
-
prop: "contactPersonMobile",
|
|
38
|
-
width: "200",
|
|
39
|
-
isColumn: !0,
|
|
40
|
-
slotName: "contactPersonMobile",
|
|
41
|
-
columnType: "slot"
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
label: "sysOut.contactPersonTel",
|
|
45
|
-
prop: "contactPersonTel",
|
|
46
|
-
width: "200",
|
|
47
|
-
isColumn: !0
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
label: "sysOut.address",
|
|
51
|
-
prop: "address",
|
|
52
|
-
width: "430",
|
|
53
|
-
isColumn: !0
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
label: "sysOut.status",
|
|
57
|
-
prop: "status",
|
|
58
|
-
isColumn: !0,
|
|
59
|
-
slotName: "status",
|
|
60
|
-
columnType: "slot"
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
label: "common.operate",
|
|
64
|
-
width: "200",
|
|
65
|
-
slotName: "operation",
|
|
66
|
-
columnType: "slot",
|
|
67
|
-
fixed: "right",
|
|
68
|
-
isColumn: !0
|
|
69
|
-
}
|
|
70
|
-
]);
|
|
71
|
-
function S(o) {
|
|
72
|
-
o.mobileEncrypt = !o.mobileEncrypt;
|
|
73
|
-
}
|
|
74
|
-
function D() {
|
|
75
|
-
v.push({ path: "/rawitsmsys/itsm-sys-out/edit" });
|
|
76
|
-
}
|
|
77
|
-
function U(o) {
|
|
78
|
-
v.push({
|
|
79
|
-
path: "/rawitsmsys/itsm-sys-out/edit",
|
|
80
|
-
query: { entityKey: o.orgId }
|
|
81
|
-
});
|
|
82
|
-
}
|
|
83
|
-
function q(o) {
|
|
84
|
-
v.push({
|
|
85
|
-
path: "/rawitsmsys/itsm-sys-out/outInfo",
|
|
86
|
-
query: { orgId: o.orgId }
|
|
87
|
-
});
|
|
88
|
-
}
|
|
89
|
-
function M(o) {
|
|
90
|
-
r.selectionRows.value = o;
|
|
91
|
-
}
|
|
92
|
-
function z(o) {
|
|
93
|
-
r.handleSort(o.prop, o.order);
|
|
94
|
-
}
|
|
95
|
-
return X(() => {
|
|
96
|
-
r.getList();
|
|
97
|
-
}), (o, t) => {
|
|
98
|
-
const A = s("el-input"), w = s("el-form-item"), y = s("el-col"), B = s("jmash-select"), g = s("el-button"), P = s("el-row"), K = s("el-form"), L = s("jmash-column-select"), Q = s("jmash-mobileIns-component"), F = s("el-switch"), H = s("jmash-table"), G = s("jmash-pagination"), J = s("el-card"), b = Y("hasPerm");
|
|
99
|
-
return i(), h("div", ne, [
|
|
100
|
-
V("div", ae, [
|
|
101
|
-
n(K, {
|
|
102
|
-
ref_key: "queryFormRef",
|
|
103
|
-
ref: I,
|
|
104
|
-
model: u.value,
|
|
105
|
-
inline: !0
|
|
106
|
-
}, {
|
|
107
|
-
default: l(() => [
|
|
108
|
-
n(P, null, {
|
|
109
|
-
default: l(() => [
|
|
110
|
-
n(y, { span: 6 }, {
|
|
111
|
-
default: l(() => [
|
|
112
|
-
n(w, {
|
|
113
|
-
label: o.$t("sysOut.orgName"),
|
|
114
|
-
prop: "likeOrgName"
|
|
115
|
-
}, {
|
|
116
|
-
default: l(() => [
|
|
117
|
-
n(A, {
|
|
118
|
-
modelValue: u.value.likeOrgName,
|
|
119
|
-
"onUpdate:modelValue": t[0] || (t[0] = (e) => u.value.likeOrgName = e),
|
|
120
|
-
placeholder: o.$t("sysOut.orgNameRequired"),
|
|
121
|
-
onKeyup: t[1] || (t[1] = N((e) => a(r).handleQuery(), ["enter"])),
|
|
122
|
-
class: "!w-[203px]",
|
|
123
|
-
clearable: ""
|
|
124
|
-
}, null, 8, ["modelValue", "placeholder"])
|
|
125
|
-
]),
|
|
126
|
-
_: 1
|
|
127
|
-
}, 8, ["label"])
|
|
128
|
-
]),
|
|
129
|
-
_: 1
|
|
130
|
-
}),
|
|
131
|
-
n(y, { span: 6 }, {
|
|
132
|
-
default: l(() => [
|
|
133
|
-
n(w, {
|
|
134
|
-
label: o.$t("sysOut.status"),
|
|
135
|
-
prop: "status"
|
|
136
|
-
}, {
|
|
137
|
-
default: l(() => [
|
|
138
|
-
n(B, {
|
|
139
|
-
modelValue: u.value.status,
|
|
140
|
-
"onUpdate:modelValue": t[2] || (t[2] = (e) => u.value.status = e),
|
|
141
|
-
placeholder: o.$t("sysOut.statusRequired"),
|
|
142
|
-
data: a(oe).hasStatusDict.values,
|
|
143
|
-
clearable: "",
|
|
144
|
-
onKeyup: t[3] || (t[3] = N((e) => a(r).handleQuery(), ["enter"]))
|
|
145
|
-
}, null, 8, ["modelValue", "placeholder", "data"])
|
|
146
|
-
]),
|
|
147
|
-
_: 1
|
|
148
|
-
}, 8, ["label"])
|
|
149
|
-
]),
|
|
150
|
-
_: 1
|
|
151
|
-
}),
|
|
152
|
-
n(y, { span: 12 }, {
|
|
153
|
-
default: l(() => [
|
|
154
|
-
n(w, { class: "search-btn" }, {
|
|
155
|
-
default: l(() => [
|
|
156
|
-
n(g, {
|
|
157
|
-
type: "primary",
|
|
158
|
-
onClick: t[4] || (t[4] = (e) => a(r).handleQuery())
|
|
159
|
-
}, {
|
|
160
|
-
default: l(() => [
|
|
161
|
-
m(d(o.$t("common.search")), 1)
|
|
162
|
-
]),
|
|
163
|
-
_: 1
|
|
164
|
-
}),
|
|
165
|
-
n(g, {
|
|
166
|
-
onClick: t[5] || (t[5] = (e) => a(r).resetQuery())
|
|
167
|
-
}, {
|
|
168
|
-
default: l(() => [
|
|
169
|
-
m(d(o.$t("common.reset")), 1)
|
|
170
|
-
]),
|
|
171
|
-
_: 1
|
|
172
|
-
})
|
|
173
|
-
]),
|
|
174
|
-
_: 1
|
|
175
|
-
})
|
|
176
|
-
]),
|
|
177
|
-
_: 1
|
|
178
|
-
})
|
|
179
|
-
]),
|
|
180
|
-
_: 1
|
|
181
|
-
})
|
|
182
|
-
]),
|
|
183
|
-
_: 1
|
|
184
|
-
}, 8, ["model"]),
|
|
185
|
-
t[12] || (t[12] = V("div", { class: "clear" }, null, -1))
|
|
186
|
-
]),
|
|
187
|
-
n(J, {
|
|
188
|
-
shadow: "never",
|
|
189
|
-
class: "table-container"
|
|
190
|
-
}, {
|
|
191
|
-
header: l(() => [
|
|
192
|
-
n(P, null, {
|
|
193
|
-
default: l(() => [
|
|
194
|
-
n(y, { span: 17 }, {
|
|
195
|
-
default: l(() => [
|
|
196
|
-
_((i(), C(g, {
|
|
197
|
-
type: "primary",
|
|
198
|
-
onClick: D
|
|
199
|
-
}, {
|
|
200
|
-
default: l(() => [
|
|
201
|
-
m(d(o.$t("common.add")), 1)
|
|
202
|
-
]),
|
|
203
|
-
_: 1
|
|
204
|
-
})), [
|
|
205
|
-
[b, ["itsmsys:sys_org_out:add"]]
|
|
206
|
-
]),
|
|
207
|
-
_((i(), C(g, {
|
|
208
|
-
type: "primary",
|
|
209
|
-
onClick: t[6] || (t[6] = (e) => a(r).deleteRecords())
|
|
210
|
-
}, {
|
|
211
|
-
default: l(() => [
|
|
212
|
-
m(d(o.$t("common.batchDelete")), 1)
|
|
213
|
-
]),
|
|
214
|
-
_: 1
|
|
215
|
-
})), [
|
|
216
|
-
[b, ["itsmsys:sys_org_out:delete"]]
|
|
217
|
-
])
|
|
218
|
-
]),
|
|
219
|
-
_: 1
|
|
220
|
-
}),
|
|
221
|
-
n(y, {
|
|
222
|
-
span: 7,
|
|
223
|
-
class: "container-float"
|
|
224
|
-
}, {
|
|
225
|
-
default: l(() => [
|
|
226
|
-
n(L, {
|
|
227
|
-
modelValue: a(c),
|
|
228
|
-
"onUpdate:modelValue": t[7] || (t[7] = (e) => O(c) ? c.value = e : c = e),
|
|
229
|
-
"label-name": "itsmsys/itsm-sys-org"
|
|
230
|
-
}, null, 8, ["modelValue"])
|
|
231
|
-
]),
|
|
232
|
-
_: 1
|
|
233
|
-
})
|
|
234
|
-
]),
|
|
235
|
-
_: 1
|
|
236
|
-
})
|
|
237
|
-
]),
|
|
238
|
-
footer: l(() => [
|
|
239
|
-
a(f) > 0 ? (i(), C(G, {
|
|
240
|
-
key: 0,
|
|
241
|
-
total: a(f),
|
|
242
|
-
"onUpdate:total": t[8] || (t[8] = (e) => O(f) ? f.value = e : null),
|
|
243
|
-
"current-page": u.value.curPage,
|
|
244
|
-
"onUpdate:currentPage": t[9] || (t[9] = (e) => u.value.curPage = e),
|
|
245
|
-
"page-size": u.value.pageSize,
|
|
246
|
-
"onUpdate:pageSize": t[10] || (t[10] = (e) => u.value.pageSize = e),
|
|
247
|
-
onPagination: t[11] || (t[11] = (e) => a(r).getList())
|
|
248
|
-
}, null, 8, ["total", "current-page", "page-size"])) : Z("", !0)
|
|
249
|
-
]),
|
|
250
|
-
default: l(() => [
|
|
251
|
-
n(H, {
|
|
252
|
-
ref_key: "multipleTableRef",
|
|
253
|
-
ref: E,
|
|
254
|
-
"row-key": "orgId",
|
|
255
|
-
"list-loading": a(R),
|
|
256
|
-
data: a(j),
|
|
257
|
-
"table-label": a(c),
|
|
258
|
-
onSelectionChange: M,
|
|
259
|
-
onSortChange: z
|
|
260
|
-
}, {
|
|
261
|
-
contactPersonMobile: l((e) => [
|
|
262
|
-
n(Q, {
|
|
263
|
-
mobilePhoneIns: e.data.row.contactPersonMobileIns,
|
|
264
|
-
mobilePhone: e.data.row.contactPersonMobile,
|
|
265
|
-
mobileEncrypt: e.data.row.mobileEncrypt,
|
|
266
|
-
onToggleEncrypt: (p) => S(e.data.row)
|
|
267
|
-
}, null, 8, ["mobilePhoneIns", "mobilePhone", "mobileEncrypt", "onToggleEncrypt"])
|
|
268
|
-
]),
|
|
269
|
-
status: l((e) => [
|
|
270
|
-
n(F, {
|
|
271
|
-
modelValue: e.data.row.status,
|
|
272
|
-
"onUpdate:modelValue": (p) => e.data.row.status = p,
|
|
273
|
-
onChange: (p) => a(r).enableRecord(e.data.row, e.data.row.status)
|
|
274
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"])
|
|
275
|
-
]),
|
|
276
|
-
operation: l((e) => [
|
|
277
|
-
_((i(), h("span", {
|
|
278
|
-
class: "el-button-color",
|
|
279
|
-
onClick: (p) => U(e.data.row)
|
|
280
|
-
}, [
|
|
281
|
-
m(d(o.$t("common.edit")), 1)
|
|
282
|
-
], 8, se)), [
|
|
283
|
-
[b, ["itsmsys:sys_org_out:update"]]
|
|
284
|
-
]),
|
|
285
|
-
_((i(), h("span", {
|
|
286
|
-
class: "el-button-color dropdown-left",
|
|
287
|
-
onClick: (p) => a(r).deleteRecord(e.data.row)
|
|
288
|
-
}, [
|
|
289
|
-
m(d(o.$t("common.delete")), 1)
|
|
290
|
-
], 8, re)), [
|
|
291
|
-
[b, ["itsmsys:sys_org_out:delete"]]
|
|
292
|
-
]),
|
|
293
|
-
_((i(), h("span", {
|
|
294
|
-
class: "el-button-color dropdown-left",
|
|
295
|
-
onClick: (p) => q(e.data.row)
|
|
296
|
-
}, [
|
|
297
|
-
m(d(o.$t("common.view")), 1)
|
|
298
|
-
], 8, ue)), [
|
|
299
|
-
[b, ["itsmsys:sys_org_out:view"]]
|
|
300
|
-
])
|
|
301
|
-
]),
|
|
302
|
-
_: 1
|
|
303
|
-
}, 8, ["list-loading", "data", "table-label"])
|
|
304
|
-
]),
|
|
305
|
-
_: 1
|
|
306
|
-
})
|
|
307
|
-
]);
|
|
308
|
-
};
|
|
309
|
-
}
|
|
310
|
-
});
|
|
311
|
-
export {
|
|
312
|
-
_e as default
|
|
313
|
-
};
|
|
@@ -1,198 +0,0 @@
|
|
|
1
|
-
import { defineComponent as A, ref as k, reactive as T, resolveComponent as s, resolveDirective as H, openBlock as r, createElementBlock as C, createVNode as m, withCtx as n, withDirectives as b, createBlock as _, createTextVNode as g, toDisplayString as d, unref as l, isRef as I, createCommentVNode as N, createElementVNode as K } from "vue";
|
|
2
|
-
import { useTableHooks as F } from "jmash-core";
|
|
3
|
-
import { useI18n as G } from "vue-i18n";
|
|
4
|
-
import { useRoute as J } from "vue-router";
|
|
5
|
-
import { s as M } from "./index-B6vJj_z6.mjs";
|
|
6
|
-
import { _ as Q } from "./edit.vue_vue_type_script_setup_true_lang-CaZa7PUh.mjs";
|
|
7
|
-
import { D as W } from "./index-dIcRC4jE.mjs";
|
|
8
|
-
const X = { class: "app-container" }, Y = ["onClick"], Z = ["onClick"], re = /* @__PURE__ */ A({
|
|
9
|
-
__name: "index",
|
|
10
|
-
setup(ee) {
|
|
11
|
-
const { t: p } = G(), V = J(), u = k({
|
|
12
|
-
orgId: V.query.entityKey
|
|
13
|
-
}), { tableHooks: a, multipleTableRef: R, listLoading: D, tableData: S, total: v } = F(p, M, u);
|
|
14
|
-
let c = k([
|
|
15
|
-
{
|
|
16
|
-
label: "sysOrgInvoice.invoiceType",
|
|
17
|
-
prop: "invoiceType",
|
|
18
|
-
width: "100",
|
|
19
|
-
isColumn: !0,
|
|
20
|
-
slotName: "invoiceType",
|
|
21
|
-
columnType: "slot"
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
label: "sysOrgInvoice.invoiceTitle",
|
|
25
|
-
prop: "invoiceTitle",
|
|
26
|
-
width: "150",
|
|
27
|
-
isColumn: !0
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
label: "sysOrgInvoice.taxNumber",
|
|
31
|
-
prop: "taxNumber",
|
|
32
|
-
isColumn: !0
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
label: "sysOrgInvoice.bankName",
|
|
36
|
-
prop: "bankName",
|
|
37
|
-
isColumn: !0,
|
|
38
|
-
width: "150"
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
label: "sysOrgInvoice.backNumber",
|
|
42
|
-
prop: "backNumber",
|
|
43
|
-
isColumn: !0
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
label: "sysOrgInvoice.taxRate",
|
|
47
|
-
prop: "taxRate",
|
|
48
|
-
isColumn: !0,
|
|
49
|
-
width: "100"
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
label: "common.operate",
|
|
53
|
-
width: "200",
|
|
54
|
-
slotName: "operation",
|
|
55
|
-
columnType: "slot",
|
|
56
|
-
fixed: "right",
|
|
57
|
-
isColumn: !0
|
|
58
|
-
}
|
|
59
|
-
]);
|
|
60
|
-
const i = k({
|
|
61
|
-
title: p("common.edit"),
|
|
62
|
-
visible: !1
|
|
63
|
-
});
|
|
64
|
-
let f = T({});
|
|
65
|
-
function $() {
|
|
66
|
-
f = T({}), i.value.title = p("common.add"), i.value.visible = !0;
|
|
67
|
-
}
|
|
68
|
-
function x(o) {
|
|
69
|
-
f.invoiceId = o.invoiceId, i.value.title = p("common.edit"), i.value.visible = !0;
|
|
70
|
-
}
|
|
71
|
-
function O(o) {
|
|
72
|
-
a.selectionRows.value = o;
|
|
73
|
-
}
|
|
74
|
-
function P(o) {
|
|
75
|
-
a.handleSort(o.prop, o.order);
|
|
76
|
-
}
|
|
77
|
-
function j(o) {
|
|
78
|
-
o && a.getList();
|
|
79
|
-
}
|
|
80
|
-
return a.getList(), (o, t) => {
|
|
81
|
-
const h = s("el-button"), w = s("el-col"), z = s("jmash-column-select"), E = s("el-row"), L = s("jmash-table"), U = s("jmash-pagination"), B = s("el-card"), y = H("hasPerm");
|
|
82
|
-
return r(), C("div", X, [
|
|
83
|
-
m(B, {
|
|
84
|
-
shadow: "never",
|
|
85
|
-
class: "table-container"
|
|
86
|
-
}, {
|
|
87
|
-
header: n(() => [
|
|
88
|
-
m(E, null, {
|
|
89
|
-
default: n(() => [
|
|
90
|
-
m(w, { span: 17 }, {
|
|
91
|
-
default: n(() => [
|
|
92
|
-
b((r(), _(h, {
|
|
93
|
-
type: "primary",
|
|
94
|
-
onClick: $
|
|
95
|
-
}, {
|
|
96
|
-
default: n(() => [
|
|
97
|
-
g(d(o.$t("common.add")), 1)
|
|
98
|
-
]),
|
|
99
|
-
_: 1
|
|
100
|
-
})), [
|
|
101
|
-
[y, ["itsmsys:sys_org_invoice:add"]]
|
|
102
|
-
]),
|
|
103
|
-
b((r(), _(h, {
|
|
104
|
-
type: "primary",
|
|
105
|
-
onClick: t[0] || (t[0] = (e) => l(a).deleteRecords())
|
|
106
|
-
}, {
|
|
107
|
-
default: n(() => [
|
|
108
|
-
g(d(o.$t("common.batchDelete")), 1)
|
|
109
|
-
]),
|
|
110
|
-
_: 1
|
|
111
|
-
})), [
|
|
112
|
-
[y, ["itsmsys:sys_org_invoice:delete"]]
|
|
113
|
-
])
|
|
114
|
-
]),
|
|
115
|
-
_: 1
|
|
116
|
-
}),
|
|
117
|
-
m(w, {
|
|
118
|
-
span: 7,
|
|
119
|
-
class: "container-float"
|
|
120
|
-
}, {
|
|
121
|
-
default: n(() => [
|
|
122
|
-
m(z, {
|
|
123
|
-
modelValue: l(c),
|
|
124
|
-
"onUpdate:modelValue": t[1] || (t[1] = (e) => I(c) ? c.value = e : c = e),
|
|
125
|
-
"label-name": "itsmsys/itsm-sys-org-invoice"
|
|
126
|
-
}, null, 8, ["modelValue"])
|
|
127
|
-
]),
|
|
128
|
-
_: 1
|
|
129
|
-
})
|
|
130
|
-
]),
|
|
131
|
-
_: 1
|
|
132
|
-
})
|
|
133
|
-
]),
|
|
134
|
-
footer: n(() => [
|
|
135
|
-
l(v) > 0 ? (r(), _(U, {
|
|
136
|
-
key: 0,
|
|
137
|
-
total: l(v),
|
|
138
|
-
"onUpdate:total": t[2] || (t[2] = (e) => I(v) ? v.value = e : null),
|
|
139
|
-
"current-page": u.value.curPage,
|
|
140
|
-
"onUpdate:currentPage": t[3] || (t[3] = (e) => u.value.curPage = e),
|
|
141
|
-
"page-size": u.value.pageSize,
|
|
142
|
-
"onUpdate:pageSize": t[4] || (t[4] = (e) => u.value.pageSize = e),
|
|
143
|
-
onPagination: t[5] || (t[5] = (e) => l(a).getList())
|
|
144
|
-
}, null, 8, ["total", "current-page", "page-size"])) : N("", !0)
|
|
145
|
-
]),
|
|
146
|
-
default: n(() => [
|
|
147
|
-
m(L, {
|
|
148
|
-
ref_key: "multipleTableRef",
|
|
149
|
-
ref: R,
|
|
150
|
-
"row-key": "invoiceId",
|
|
151
|
-
"list-loading": l(D),
|
|
152
|
-
data: l(S),
|
|
153
|
-
"table-label": l(c),
|
|
154
|
-
onSelectionChange: O,
|
|
155
|
-
onSortChange: P
|
|
156
|
-
}, {
|
|
157
|
-
invoiceType: n((e) => [
|
|
158
|
-
K("span", null, d(l(W).invoiceTypeDictEnum.getEnumValue(e.data.row.invoiceType)), 1)
|
|
159
|
-
]),
|
|
160
|
-
operation: n((e) => [
|
|
161
|
-
b((r(), C("span", {
|
|
162
|
-
class: "el-button-color",
|
|
163
|
-
onClick: (q) => x(e.data.row)
|
|
164
|
-
}, [
|
|
165
|
-
g(d(o.$t("common.edit")), 1)
|
|
166
|
-
], 8, Y)), [
|
|
167
|
-
[y, ["itsmsys:sys_org_invoice:update"]]
|
|
168
|
-
]),
|
|
169
|
-
b((r(), C("span", {
|
|
170
|
-
class: "el-button-color dropdown-left",
|
|
171
|
-
onClick: (q) => l(a).deleteRecord(e.data.row)
|
|
172
|
-
}, [
|
|
173
|
-
g(d(o.$t("common.delete")), 1)
|
|
174
|
-
], 8, Z)), [
|
|
175
|
-
[y, ["itsmsys:sys_org_invoice:delete"]]
|
|
176
|
-
])
|
|
177
|
-
]),
|
|
178
|
-
_: 1
|
|
179
|
-
}, 8, ["list-loading", "data", "table-label"])
|
|
180
|
-
]),
|
|
181
|
-
_: 1
|
|
182
|
-
}),
|
|
183
|
-
i.value.visible ? (r(), _(Q, {
|
|
184
|
-
key: 0,
|
|
185
|
-
modelValue: i.value.visible,
|
|
186
|
-
"onUpdate:modelValue": t[6] || (t[6] = (e) => i.value.visible = e),
|
|
187
|
-
title: i.value.title,
|
|
188
|
-
"entity-key": l(f),
|
|
189
|
-
onRefresh: j,
|
|
190
|
-
width: "900px"
|
|
191
|
-
}, null, 8, ["modelValue", "title", "entity-key"])) : N("", !0)
|
|
192
|
-
]);
|
|
193
|
-
};
|
|
194
|
-
}
|
|
195
|
-
});
|
|
196
|
-
export {
|
|
197
|
-
re as _
|
|
198
|
-
};
|