@witlink/usercenter 1.0.0

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 (49) hide show
  1. package/README.md +155 -0
  2. package/dist/404.e6ab6ba0.mjs +10 -0
  3. package/dist/Card.71482621.mjs +1078 -0
  4. package/dist/DictEx.754c617b.mjs +156 -0
  5. package/dist/FooterToolBar.2546fb1f.mjs +33 -0
  6. package/dist/RegionSelect.5272534b.mjs +71 -0
  7. package/dist/Standard.64ae6a8d.mjs +113 -0
  8. package/dist/WebClient.0ac67ce0.mjs +153 -0
  9. package/dist/assets/FooterToolBar.d4297046.css +1 -0
  10. package/dist/assets/Standard.badeec91.css +1 -0
  11. package/dist/assets/WebClient.2a3e464e.css +1 -0
  12. package/dist/assets/index.01a0fb63.css +1 -0
  13. package/dist/assets/index.19e5ba4c.css +1 -0
  14. package/dist/assets/index.2164de3b.css +1 -0
  15. package/dist/assets/index.269f5360.css +1 -0
  16. package/dist/assets/index.28bdbdc3.css +1 -0
  17. package/dist/assets/index.3150518d.css +1 -0
  18. package/dist/assets/index.3a0797c4.css +1 -0
  19. package/dist/assets/index.53c37fa8.css +1 -0
  20. package/dist/assets/index.7c8e2d8f.css +1 -0
  21. package/dist/assets/index.b965b94b.css +1 -0
  22. package/dist/assets/index.fb7724ee.css +1 -0
  23. package/dist/index.003313e6.mjs +69436 -0
  24. package/dist/index.05ef920d.mjs +1129 -0
  25. package/dist/index.1953dbda.mjs +498 -0
  26. package/dist/index.1af0e30d.mjs +10 -0
  27. package/dist/index.2242d1a7.mjs +125 -0
  28. package/dist/index.2291c8e2.mjs +125 -0
  29. package/dist/index.3c2af165.mjs +761 -0
  30. package/dist/index.919ac6b4.mjs +7431 -0
  31. package/dist/index.941a34c0.mjs +874 -0
  32. package/dist/index.96479524.mjs +754 -0
  33. package/dist/index.9803c44f.mjs +125 -0
  34. package/dist/index.a000e9cf.mjs +1445 -0
  35. package/dist/index.b3eb7c5d.mjs +10 -0
  36. package/dist/index.c9138cba.mjs +1104 -0
  37. package/dist/index.ceea88a4.mjs +1073 -0
  38. package/dist/index.da7dd593.mjs +10 -0
  39. package/dist/index.e271ee9d.mjs +643 -0
  40. package/dist/index.e7802e27.mjs +786 -0
  41. package/dist/index.ef2e93a1.mjs +386 -0
  42. package/dist/index.f701b909.mjs +142 -0
  43. package/dist/index.f9becca6.mjs +6 -0
  44. package/dist/index.fa4bb855.mjs +7645 -0
  45. package/dist/index.html +1 -0
  46. package/dist/use-dict-by-type.c90c1d31.mjs +24 -0
  47. package/dist/usercenter.umd.js +6237 -0
  48. package/package.json +26 -0
  49. package/version.md +2 -0
@@ -0,0 +1,874 @@
1
+ import { C as I, bu as me, _ as j, D as H, aO as L, B as A, I as ee, b as ae, F as te, aP as ne, N as Z, aZ as G, bv as se, bw as ye, ai as fe, aY as ve, M as ge, O as he, H as $e, bx as be, ag as ke, ah as Ce } from "./index.003313e6.mjs";
2
+ import { defineComponent as F, computed as we, openBlock as E, createElementBlock as z, createVNode as t, mergeProps as De, ref as f, reactive as R, createElementVNode as n, withCtx as i, createTextVNode as N, toDisplayString as p, createBlock as K, normalizeClass as J, createCommentVNode as Q, withDirectives as k, vShow as C, onMounted as Be, resolveComponent as X, unref as Oe } from "vue";
3
+ import './assets/index.19e5ba4c.css';function P(u) {
4
+ return I({
5
+ url: "/api/sys/organ/detail",
6
+ method: "get",
7
+ params: u
8
+ });
9
+ }
10
+ function Te(u) {
11
+ return I({
12
+ url: "/api/sys/organ/search-list",
13
+ method: "get",
14
+ params: u
15
+ });
16
+ }
17
+ function oe(u) {
18
+ return I({
19
+ url: "/api/sys/organ/search-level",
20
+ method: "get",
21
+ params: u
22
+ });
23
+ }
24
+ function Ne(u) {
25
+ return I({
26
+ url: "/api/sys/organ/update-branch",
27
+ method: "post",
28
+ headers: {
29
+ "Content-Type": "application/json"
30
+ },
31
+ data: u
32
+ });
33
+ }
34
+ function Ie(u) {
35
+ return I({
36
+ url: "/api/sys/organ/insert-branch",
37
+ method: "post",
38
+ headers: {
39
+ "Content-Type": "application/json"
40
+ },
41
+ data: u
42
+ });
43
+ }
44
+ function Se(u) {
45
+ return I({
46
+ url: "/api/sys/organ/insert-department",
47
+ method: "post",
48
+ headers: {
49
+ "Content-Type": "application/json"
50
+ },
51
+ data: u
52
+ });
53
+ }
54
+ function xe(u) {
55
+ return I({
56
+ url: "/api/sys/organ/update-department",
57
+ method: "post",
58
+ headers: {
59
+ "Content-Type": "application/json"
60
+ },
61
+ data: u
62
+ });
63
+ }
64
+ function Ee(u) {
65
+ return I({
66
+ url: "/api/sys/organ/delete-department",
67
+ method: "post",
68
+ data: u
69
+ });
70
+ }
71
+ function Re(u) {
72
+ return I({
73
+ url: "/api/sys/organ/delete-branch",
74
+ method: "post",
75
+ data: u
76
+ });
77
+ }
78
+ const Ue = { class: "textarea-wrapper" }, Ve = /* @__PURE__ */ F({
79
+ __name: "InputTextarea",
80
+ props: {
81
+ showCount: {
82
+ type: Boolean,
83
+ default: !1
84
+ },
85
+ maxLength: {
86
+ type: Number,
87
+ default: 100
88
+ },
89
+ value: {
90
+ type: String,
91
+ default: ""
92
+ }
93
+ },
94
+ emits: ["change", "update:value"],
95
+ setup(u, { emit: w }) {
96
+ const y = w, l = u, g = we({
97
+ get() {
98
+ return l.value;
99
+ },
100
+ set(d) {
101
+ y("update:value", d);
102
+ }
103
+ }), _ = (d) => {
104
+ y("change", d.target.value);
105
+ };
106
+ return (d, a) => {
107
+ const s = me;
108
+ return E(), z("div", Ue, [
109
+ t(s, De(d.$attrs, {
110
+ value: g.value,
111
+ "onUpdate:value": a[0] || (a[0] = (r) => g.value = r),
112
+ showCount: l.showCount,
113
+ maxLength: l.maxLength,
114
+ onChange: _
115
+ }), null, 16, ["value", "showCount", "maxLength"])
116
+ ]);
117
+ };
118
+ }
119
+ });
120
+ const le = /* @__PURE__ */ j(Ve, [["__scopeId", "data-v-939f274f"], ["__file", "D:/inhe-code/witlink-platform-usercenter-web/witlink-platform-usercenter1/src/components/inhe/input/InputTextarea.vue"]]), je = ["spinning"], Fe = /* @__PURE__ */ F({
121
+ __name: "DeptEdit",
122
+ emits: ["ok"],
123
+ setup(u, { expose: w, emit: y }) {
124
+ const { t: l } = H(), g = y, _ = f(!1), d = f(!1), a = f(), s = R({
125
+ parentBranch: "",
126
+ name: "",
127
+ remarks: ""
128
+ }), r = R({
129
+ opType: "",
130
+ id: "",
131
+ type: ""
132
+ }), h = async () => {
133
+ d.value = !0;
134
+ const { result: o } = await P({ id: r.id, type: r.type });
135
+ d.value = !1, Object.assign(s, o);
136
+ }, O = async () => {
137
+ d.value = !0;
138
+ const { result: o } = await oe({
139
+ id: r.id,
140
+ type: r.type
141
+ });
142
+ s.parentBranch = o, d.value = !1;
143
+ }, b = () => {
144
+ _.value = !1;
145
+ }, v = (o) => {
146
+ Object.assign(s, {
147
+ parentBranch: "",
148
+ name: "",
149
+ remarks: ""
150
+ }), Object.assign(r, o), r.opType == "2" ? h() : O(), _.value = !0;
151
+ }, D = async () => {
152
+ a.value.validate().then(async () => {
153
+ d.value = !0, Object.assign(s, {
154
+ id: r.id,
155
+ type: r.type,
156
+ opType: r.opType
157
+ });
158
+ const o = await (r.opType == "1" ? Se(JSON.stringify({ ...s })) : xe(JSON.stringify({ ...s })));
159
+ d.value = !1, o && (L.success(
160
+ `${s.name} ${r.opType == "1" ? l("organ.ins_successtip") : l("organ.up_successtip")}`,
161
+ 5
162
+ ), g("ok", r), _.value = !1);
163
+ });
164
+ };
165
+ return w({
166
+ showModal: v
167
+ }), (o, m) => {
168
+ const S = A, T = ee, B = ae, x = te, U = ne;
169
+ return E(), z("div", null, [
170
+ n("div", { spinning: d.value }, [
171
+ t(U, {
172
+ class: "modal",
173
+ width: 620,
174
+ title: o.$t("organ.dept" + r.opType),
175
+ open: _.value,
176
+ "onUpdate:open": m[3] || (m[3] = (e) => _.value = e),
177
+ onCancel: b,
178
+ destroyOnClose: !0
179
+ }, {
180
+ footer: i(() => [
181
+ t(S, {
182
+ key: "back",
183
+ onClick: b
184
+ }, {
185
+ default: i(() => [
186
+ N(p(o.$t("common.btn_cancel1")), 1)
187
+ ]),
188
+ _: 1
189
+ }),
190
+ t(S, {
191
+ key: "submit",
192
+ type: "primary",
193
+ onClick: D
194
+ }, {
195
+ default: i(() => [
196
+ N(p(o.$t("common.btn_confirm")), 1)
197
+ ]),
198
+ _: 1
199
+ })
200
+ ]),
201
+ default: i(() => [
202
+ t(x, {
203
+ model: s,
204
+ layout: "vertical",
205
+ ref_key: "formRef",
206
+ ref: a,
207
+ class: "form inline-query-form clear-formctrl-lh rm-form-item-mb"
208
+ }, {
209
+ default: i(() => [
210
+ t(B, {
211
+ label: o.$t("organ.parentBranch"),
212
+ name: "parentBranch"
213
+ }, {
214
+ default: i(() => [
215
+ t(T, {
216
+ placeholder: o.$t("organ.parentBranch"),
217
+ maxLength: 20,
218
+ disabled: "",
219
+ value: s.parentBranch,
220
+ "onUpdate:value": m[0] || (m[0] = (e) => s.parentBranch = e)
221
+ }, null, 8, ["placeholder", "value"])
222
+ ]),
223
+ _: 1
224
+ }, 8, ["label"]),
225
+ t(B, {
226
+ label: o.$t("organ.deptName"),
227
+ name: "name"
228
+ }, {
229
+ default: i(() => [
230
+ t(T, {
231
+ placeholder: o.$t("organ.deptName"),
232
+ maxLength: 50,
233
+ value: s.name,
234
+ "onUpdate:value": m[1] || (m[1] = (e) => s.name = e),
235
+ rules: [{ required: !0, message: o.$t("organ.deptName_msg1") }]
236
+ }, null, 8, ["placeholder", "value", "rules"])
237
+ ]),
238
+ _: 1
239
+ }, 8, ["label"]),
240
+ t(B, {
241
+ label: o.$t("organ.remarks"),
242
+ name: "remarks"
243
+ }, {
244
+ default: i(() => [
245
+ t(le, {
246
+ value: s.remarks,
247
+ "onUpdate:value": m[2] || (m[2] = (e) => s.remarks = e),
248
+ showCount: !0,
249
+ maxLength: 50,
250
+ autoSize: !1,
251
+ placeholder: o.$t("organ.remarks")
252
+ }, null, 8, ["value", "placeholder"])
253
+ ]),
254
+ _: 1
255
+ }, 8, ["label"])
256
+ ]),
257
+ _: 1
258
+ }, 8, ["model"])
259
+ ]),
260
+ _: 1
261
+ }, 8, ["title", "open"])
262
+ ], 8, je)
263
+ ]);
264
+ };
265
+ }
266
+ });
267
+ const Me = /* @__PURE__ */ j(Fe, [["__scopeId", "data-v-58074060"], ["__file", "D:/inhe-code/witlink-platform-usercenter-web/witlink-platform-usercenter1/src/views/sys/organ/DeptEdit.vue"]]), Le = ["spinning"], Ae = /* @__PURE__ */ F({
268
+ __name: "BranchEdit",
269
+ emits: ["ok"],
270
+ setup(u, { expose: w, emit: y }) {
271
+ const { t: l } = H(), g = y, _ = f(!1), d = f(), a = R({
272
+ parentBranch: "",
273
+ name: "",
274
+ remarks: ""
275
+ }), s = f(!1), r = R({
276
+ opType: "",
277
+ id: "",
278
+ type: ""
279
+ }), h = async () => {
280
+ s.value = !0;
281
+ const { result: o } = await P({ id: r.id, type: r.type });
282
+ s.value = !1, Object.assign(a, o);
283
+ }, O = async () => {
284
+ s.value = !0;
285
+ const { result: o } = await oe({
286
+ id: r.id,
287
+ type: r.type
288
+ });
289
+ s.value = !1, a.parentBranch = o;
290
+ }, b = (o) => {
291
+ Object.assign(a, {
292
+ parentBranch: "",
293
+ name: "",
294
+ remarks: ""
295
+ }), Object.assign(r, o), o.opType == "2" ? h() : O(), _.value = !0;
296
+ }, v = () => {
297
+ _.value = !1;
298
+ }, D = () => {
299
+ d.value.validate().then(async () => {
300
+ s.value = !0, Object.assign(a, {
301
+ id: r.id,
302
+ type: r.type,
303
+ opType: r.opType
304
+ });
305
+ let o = null;
306
+ r.opType == "1" ? o = await Ie(JSON.stringify({ ...a })) : o = await Ne(JSON.stringify({ ...a })), o && (g("ok", { ...a }), L.success(
307
+ `${a.name} ${r.opType == "1" ? l("organ.ins_successtip") : l("organ.up_successtip")}`,
308
+ 5
309
+ )), s.value = !1, _.value = !1;
310
+ });
311
+ };
312
+ return w({
313
+ showModal: b
314
+ }), (o, m) => {
315
+ const S = A, T = ee, B = ae, x = te, U = ne;
316
+ return E(), z("div", null, [
317
+ n("div", { spinning: s.value }, [
318
+ t(U, {
319
+ class: "modal",
320
+ width: 620,
321
+ title: o.$t("organ.branch_edit" + r.opType),
322
+ open: _.value,
323
+ "onUpdate:open": m[3] || (m[3] = (e) => _.value = e),
324
+ onCancel: v,
325
+ destroyOnClose: !0
326
+ }, {
327
+ footer: i(() => [
328
+ t(S, {
329
+ key: "back",
330
+ onClick: v
331
+ }, {
332
+ default: i(() => [
333
+ N(p(o.$t("common.btn_cancel1")), 1)
334
+ ]),
335
+ _: 1
336
+ }),
337
+ t(S, {
338
+ key: "submit",
339
+ type: "primary",
340
+ onClick: D
341
+ }, {
342
+ default: i(() => [
343
+ N(p(o.$t("common.btn_confirm")), 1)
344
+ ]),
345
+ _: 1
346
+ })
347
+ ]),
348
+ default: i(() => [
349
+ t(x, {
350
+ model: a,
351
+ layout: "vertical",
352
+ ref_key: "formRef",
353
+ ref: d,
354
+ class: "inline-query-form clear-formctrl-lh rm-form-item-mb"
355
+ }, {
356
+ default: i(() => [
357
+ t(B, {
358
+ label: o.$t("organ.parentBranch"),
359
+ name: "parentBranch"
360
+ }, {
361
+ default: i(() => [
362
+ t(T, {
363
+ placeholder: o.$t("organ.parentBranch"),
364
+ maxLength: 20,
365
+ disabled: "",
366
+ value: a.parentBranch,
367
+ "onUpdate:value": m[0] || (m[0] = (e) => a.parentBranch = e)
368
+ }, null, 8, ["placeholder", "value"])
369
+ ]),
370
+ _: 1
371
+ }, 8, ["label"]),
372
+ t(B, {
373
+ label: o.$t("organ.branchName"),
374
+ name: "name",
375
+ rules: [
376
+ {
377
+ required: !0,
378
+ message: o.$t("organ.branchName_msg1"),
379
+ trigger: "blur"
380
+ }
381
+ ]
382
+ }, {
383
+ default: i(() => [
384
+ t(T, {
385
+ placeholder: o.$t("organ.branchName"),
386
+ maxLength: 50,
387
+ value: a.name,
388
+ "onUpdate:value": m[1] || (m[1] = (e) => a.name = e)
389
+ }, null, 8, ["placeholder", "value"])
390
+ ]),
391
+ _: 1
392
+ }, 8, ["label", "rules"]),
393
+ t(B, {
394
+ label: o.$t("organ.remarks"),
395
+ name: "remarks"
396
+ }, {
397
+ default: i(() => [
398
+ t(le, {
399
+ value: a.remarks,
400
+ "onUpdate:value": m[2] || (m[2] = (e) => a.remarks = e),
401
+ showCount: !0,
402
+ maxLength: 50,
403
+ autoSize: !1,
404
+ placeholder: o.$t("organ.remarks")
405
+ }, null, 8, ["value", "placeholder"])
406
+ ]),
407
+ _: 1
408
+ }, 8, ["label"])
409
+ ]),
410
+ _: 1
411
+ }, 8, ["model"])
412
+ ]),
413
+ _: 1
414
+ }, 8, ["title", "open"])
415
+ ], 8, Le)
416
+ ]);
417
+ };
418
+ }
419
+ });
420
+ const ze = /* @__PURE__ */ j(Ae, [["__scopeId", "data-v-db8da10b"], ["__file", "D:/inhe-code/witlink-platform-usercenter-web/witlink-platform-usercenter1/src/views/sys/organ/BranchEdit.vue"]]), Pe = { class: "pay_info" }, qe = { class: "pay_span" }, Ye = { class: "pay_span1" }, Je = { class: "pay_span" }, He = { class: "pay_span1" }, Ze = { class: "pay_span" }, Ge = { style: { display: "flex", "align-items": "center" } }, Ke = { class: "pay_span1" }, Qe = { class: "pay_span1" }, We = { class: "pay_span" }, Xe = { class: "pay_span1" }, ea = { class: "pay_span" }, aa = { class: "pay_span" }, ta = { class: "pay_span1" }, na = { class: "pay_span" }, sa = { class: "pay_span1" }, oa = { class: "pay_span" }, la = { class: "pay_span1" }, pa = { style: {
421
+ position: "absolute",
422
+ right: 0,
423
+ bottom: 0,
424
+ width: "100%",
425
+ borderTop: "1px solid #e9e9e9",
426
+ padding: "10px 16px",
427
+ background: "#fff",
428
+ textAlign: "center",
429
+ zIndex: 1
430
+ } }, ra = /* @__PURE__ */ F({
431
+ __name: "BranDetail",
432
+ setup(u, { expose: w }) {
433
+ const y = f(!1), l = R({
434
+ parentBranch: "",
435
+ name: "",
436
+ associatedFlag: "",
437
+ refCode: "",
438
+ orderNo: "",
439
+ remarks: "",
440
+ cdate: "",
441
+ coperator: "",
442
+ udate: "",
443
+ uoperator: ""
444
+ }), g = f(!0), _ = (a) => {
445
+ P({ id: a.id, type: a.type }).then((s) => {
446
+ Object.assign(l, s.result), y.value = !0;
447
+ });
448
+ }, d = () => {
449
+ y.value = !1;
450
+ };
451
+ return w({
452
+ showModal: _,
453
+ onCancel: d
454
+ }), (a, s) => {
455
+ const r = Z, h = G, O = A, b = se;
456
+ return E(), K(b, {
457
+ open: y.value,
458
+ "onUpdate:open": s[1] || (s[1] = (v) => y.value = v),
459
+ onClose: s[2] || (s[2] = (v) => d()),
460
+ "body-style": { position: "static" },
461
+ width: 800,
462
+ title: a.$t("organ.BranDetail"),
463
+ destroyOnClose: g.value
464
+ }, {
465
+ default: i(() => [
466
+ n("div", null, [
467
+ n("div", Pe, [
468
+ n("span", qe, p(a.$t("organ.parentBranch")), 1),
469
+ n("span", Ye, p(l.parentBranch), 1),
470
+ n("span", Je, p(a.$t("organ.branchName")), 1),
471
+ n("span", He, p(l.name), 1),
472
+ n("span", Ze, p(a.$t("organ.associatedFlag")), 1),
473
+ n("div", Ge, [
474
+ n("div", {
475
+ class: J(l.associatedFlag == "Y" ? "YFlag" : "NFlag")
476
+ }, null, 2),
477
+ n("span", Ke, p(a.$t("organ.YFlag")), 1),
478
+ n("div", {
479
+ class: J(l.associatedFlag == "N" ? "YFlag" : "NFlag")
480
+ }, null, 2),
481
+ n("span", Qe, p(a.$t("organ.NFlag")), 1)
482
+ ]),
483
+ Q(` <span class="pay_span">{{ $t('organ.refCode') }}</span>\r
484
+ <span class="pay_span1">{{ insertData.refCode }}</span>\r
485
+ <span class="pay_span">{{ $t('organ.orderNo') }}</span>\r
486
+ <span class="pay_span1">{{ insertData.orderNo }}</span> `),
487
+ n("span", We, p(a.$t("organ.remarks")), 1),
488
+ n("span", Xe, p(l.remarks), 1),
489
+ t(r, { style: { "margin-top": "40px" } }),
490
+ n("span", ea, p(a.$t("organ.cdate")), 1),
491
+ t(h, {
492
+ class: "pay_span1",
493
+ defaultValue: l.cdate
494
+ }, null, 8, ["defaultValue"]),
495
+ n("span", aa, p(a.$t("organ.coperator")), 1),
496
+ n("span", ta, p(l.coperator), 1),
497
+ n("span", na, p(a.$t("organ.udate")), 1),
498
+ k(t(h, {
499
+ class: "pay_span1",
500
+ defaultValue: l.udate
501
+ }, null, 8, ["defaultValue"]), [
502
+ [C, l.udate]
503
+ ]),
504
+ k(n("span", sa, p("--"), 512), [
505
+ [C, !l.udate]
506
+ ]),
507
+ n("span", oa, p(a.$t("organ.uoperator")), 1),
508
+ n("span", la, p(l.uoperator ? l.uoperator : "--"), 1)
509
+ ])
510
+ ]),
511
+ n("div", pa, [
512
+ t(O, {
513
+ onClick: s[0] || (s[0] = (v) => d())
514
+ }, {
515
+ default: i(() => [
516
+ N(p(a.$t("prepay.cancel_btn")), 1)
517
+ ]),
518
+ _: 1
519
+ }),
520
+ s[3] || (s[3] = N("\xA0\xA0 "))
521
+ ])
522
+ ]),
523
+ _: 1
524
+ }, 8, ["open", "title", "destroyOnClose"]);
525
+ };
526
+ }
527
+ });
528
+ const ia = /* @__PURE__ */ j(ra, [["__scopeId", "data-v-207f1e3e"], ["__file", "D:/inhe-code/witlink-platform-usercenter-web/witlink-platform-usercenter1/src/views/sys/organ/BranDetail.vue"]]), da = { class: "pay_info" }, ua = { class: "pay_span" }, ca = { class: "pay_span1" }, _a = { class: "pay_span" }, ma = { class: "pay_span1" }, ya = { class: "pay_span" }, fa = { class: "pay_span1" }, va = { class: "pay_span" }, ga = { class: "pay_span" }, ha = { class: "pay_span1" }, $a = { class: "pay_span" }, ba = { class: "pay_span1" }, ka = { class: "pay_span" }, Ca = { class: "pay_span1" }, wa = { style: {
529
+ position: "absolute",
530
+ right: 0,
531
+ bottom: 0,
532
+ width: "100%",
533
+ borderTop: "1px solid #e9e9e9",
534
+ padding: "10px 16px",
535
+ background: "#fff",
536
+ textAlign: "center",
537
+ zIndex: 1
538
+ } }, Da = /* @__PURE__ */ F({
539
+ __name: "DeptDetail",
540
+ setup(u, { expose: w }) {
541
+ const y = f(!1), l = R({
542
+ parentBranch: "",
543
+ name: "",
544
+ refCode: "",
545
+ orderNo: "",
546
+ remarks: "",
547
+ cdate: "",
548
+ coperator: "",
549
+ udate: "",
550
+ uoperator: ""
551
+ }), g = f(!0), _ = (a) => {
552
+ P({ id: a.id, type: a.type }).then((s) => {
553
+ Object.assign(l, s.result), y.value = !0;
554
+ });
555
+ }, d = () => {
556
+ y.value = !1;
557
+ };
558
+ return w({
559
+ showModal: _,
560
+ onCancel: d
561
+ }), (a, s) => {
562
+ const r = Z, h = G, O = A, b = se;
563
+ return E(), K(b, {
564
+ open: y.value,
565
+ "onUpdate:open": s[1] || (s[1] = (v) => y.value = v),
566
+ onClose: s[2] || (s[2] = (v) => d()),
567
+ "body-style": { position: "static" },
568
+ width: 800,
569
+ title: a.$t("organ.DeptDetail"),
570
+ destroyOnClose: g.value
571
+ }, {
572
+ default: i(() => [
573
+ n("div", null, [
574
+ n("div", da, [
575
+ n("span", ua, p(a.$t("organ.parentBranch")), 1),
576
+ n("span", ca, p(l.parentBranch), 1),
577
+ n("span", _a, p(a.$t("organ.deptName")), 1),
578
+ n("span", ma, p(l.name), 1),
579
+ Q(` <span class="pay_span">{{ $t('organ.depCode') }}</span>\r
580
+ <span class="pay_span1">{{ insertData.refCode?insertData.refCode:'--' }}</span>\r
581
+ <span class="pay_span">{{ $t('organ.orderNo') }}</span>\r
582
+ <span class="pay_span1">{{ insertData.orderNo?insertData.orderNo:'--' }}</span> `),
583
+ n("span", ya, p(a.$t("organ.remarks")), 1),
584
+ n("span", fa, p(l.remarks ? l.remarks : "--"), 1),
585
+ t(r, { style: { "margin-top": "40px" } }),
586
+ n("span", va, p(a.$t("organ.cdate")), 1),
587
+ t(h, {
588
+ class: "pay_span1",
589
+ defaultValue: l.cdate
590
+ }, null, 8, ["defaultValue"]),
591
+ n("span", ga, p(a.$t("organ.coperator")), 1),
592
+ n("span", ha, p(l.coperator), 1),
593
+ n("span", $a, p(a.$t("organ.udate")), 1),
594
+ k(t(h, {
595
+ class: "pay_span1",
596
+ defaultValue: l.udate
597
+ }, null, 8, ["defaultValue"]), [
598
+ [C, l.udate]
599
+ ]),
600
+ k(n("span", ba, p("--"), 512), [
601
+ [C, !l.udate]
602
+ ]),
603
+ n("span", ka, p(a.$t("organ.uoperator")), 1),
604
+ n("span", Ca, p(l.uoperator ? l.uoperator : "--"), 1)
605
+ ])
606
+ ]),
607
+ n("div", wa, [
608
+ t(O, {
609
+ onClick: s[0] || (s[0] = (v) => d())
610
+ }, {
611
+ default: i(() => [
612
+ N(p(a.$t("prepay.cancel_btn")), 1)
613
+ ]),
614
+ _: 1
615
+ }),
616
+ s[3] || (s[3] = N("\xA0\xA0 "))
617
+ ])
618
+ ]),
619
+ _: 1
620
+ }, 8, ["open", "title", "destroyOnClose"]);
621
+ };
622
+ }
623
+ });
624
+ const Ba = /* @__PURE__ */ j(Da, [["__scopeId", "data-v-7ab63a77"], ["__file", "D:/inhe-code/witlink-platform-usercenter-web/witlink-platform-usercenter1/src/views/sys/organ/DeptDetail.vue"]]), Oa = { class: "organ-wrap" }, Ta = { class: "topInfo" }, Na = { class: "topAdd" }, Ia = { class: "table-wrap" }, Sa = ["onClick"], xa = { class: "ant-dropdown-link" }, Ea = /* @__PURE__ */ F({
625
+ __name: "index",
626
+ setup(u, { expose: w }) {
627
+ const { t: y } = H(), { hasPermissionId: l } = ye(), g = f(), _ = f(), d = f(), a = f(), s = f(), r = f([]), h = R({
628
+ name: ""
629
+ }), O = f(2), b = f(!1), v = f(!1), D = async () => {
630
+ const { result: e } = await Te(h);
631
+ r.value = e, setTimeout(() => {
632
+ const $ = g.value;
633
+ $ && $.setAllTreeExpand(!0);
634
+ });
635
+ }, o = (e) => {
636
+ O.value = e, D();
637
+ }, m = (e) => {
638
+ e.type == "3" ? _.value.showModal({
639
+ opType: "2",
640
+ type: e.type,
641
+ id: e.id,
642
+ name: e.name
643
+ }) : d.value.showModal({
644
+ opType: "2",
645
+ type: e.type,
646
+ id: e.id,
647
+ name: e.name
648
+ });
649
+ }, S = (e) => {
650
+ d.value.showModal({
651
+ opType: "1",
652
+ type: e.type,
653
+ id: e.id,
654
+ name: e.name
655
+ });
656
+ }, T = (e) => {
657
+ _.value.showModal({
658
+ opType: "1",
659
+ type: e.type,
660
+ id: e.id,
661
+ name: e.name
662
+ });
663
+ }, B = (e) => {
664
+ e.type == "3" ? s.value.showModal({ type: e.type, id: e.id }) : a.value.showModal({ type: e.type, id: e.id });
665
+ }, x = () => {
666
+ D();
667
+ }, U = (e) => {
668
+ e.type == "3" ? Ee({ id: e.id }).then(($) => {
669
+ $ != null && $.result && (D(), L.success(`${e.name} ${y("organ.del_successtip")}`, 5));
670
+ }) : Re({ id: e.id }).then(($) => {
671
+ $ != null && $.result && (D(), L.success(`${e.name} ${y("organ.del_successtip")}`, 5));
672
+ });
673
+ };
674
+ return w({
675
+ onUpdate: m,
676
+ onAdd: S,
677
+ onAddDep: T,
678
+ onDetail: B,
679
+ onSwich: o
680
+ }), Be(() => {
681
+ b.value = l("002"), v.value = l("004"), D();
682
+ }), (e, $) => {
683
+ const pe = ve, M = X("vxe-column"), re = G, ie = ge, de = Z, W = he, q = $e, Y = be, ue = ke, ce = Ce, _e = X("vxe-table");
684
+ return E(), z("div", Oa, [
685
+ n("div", Ta, [
686
+ n("div", Na, [
687
+ t(pe, {
688
+ placeholder: e.$t("organ.search_placeholder"),
689
+ ref: "inputSearch",
690
+ allowClear: "",
691
+ value: h.name,
692
+ "onUpdate:value": $[0] || ($[0] = (c) => h.name = c),
693
+ onSearch: D,
694
+ style: { width: "350px" }
695
+ }, null, 8, ["placeholder", "value"])
696
+ ])
697
+ ]),
698
+ n("div", Ia, [
699
+ r.value.length > 0 ? (E(), K(_e, {
700
+ key: 0,
701
+ resizable: "",
702
+ border: "inner",
703
+ data: r.value,
704
+ "column-config": { resizable: !0 },
705
+ ref_key: "xTableRef",
706
+ ref: g,
707
+ height: "100%",
708
+ "tree-config": {
709
+ transform: !0,
710
+ rowField: "id",
711
+ parentField: "parentId"
712
+ }
713
+ }, {
714
+ default: i(() => [
715
+ t(M, {
716
+ field: "name",
717
+ title: e.$t("organ.name"),
718
+ "tree-node": "",
719
+ width: "420"
720
+ }, {
721
+ default: i(({ row: c }) => [
722
+ n("div", {
723
+ class: J("organ_type" + c.type)
724
+ }, p(e.$t("organ.type" + c.type)), 3),
725
+ k(n("a", {
726
+ onClick: (V) => B(c)
727
+ }, p(c.name), 9, Sa), [
728
+ [C, !c.operationPermissions]
729
+ ]),
730
+ k(n("span", null, p(c.name), 513), [
731
+ [C, c.operationPermissions]
732
+ ])
733
+ ]),
734
+ _: 1
735
+ }, 8, ["title"]),
736
+ t(M, {
737
+ field: "coperator",
738
+ title: e.$t("organ.coperator")
739
+ }, null, 8, ["title"]),
740
+ t(M, {
741
+ field: "cdate",
742
+ title: e.$t("organ.cdate")
743
+ }, {
744
+ default: i(({ row: c }) => [
745
+ t(re, {
746
+ defaultValue: c.cdate
747
+ }, null, 8, ["defaultValue"])
748
+ ]),
749
+ _: 1
750
+ }, 8, ["title"]),
751
+ t(M, {
752
+ title: e.$t("organ.action"),
753
+ width: "500"
754
+ }, {
755
+ default: i(({ row: c }) => [
756
+ n("div", null, [
757
+ t(ie, {
758
+ onClick: (V) => m(c),
759
+ type: "a"
760
+ }, null, 8, ["onClick"]),
761
+ t(de, { type: "vertical" }),
762
+ k(t(W, {
763
+ onClick: (V) => U(c),
764
+ type: "c",
765
+ title: e.$t("organ.remove"),
766
+ content: e.$t("organ.remove1")
767
+ }, null, 8, ["onClick", "title", "content"]), [
768
+ [C, c.type == 3]
769
+ ]),
770
+ k(t(q, {
771
+ type: "d",
772
+ onClick: (V) => T(c),
773
+ text: e.$t("organ.add2")
774
+ }, null, 8, ["onClick", "text"]), [
775
+ [C, c.type == 2]
776
+ ]),
777
+ k(n("span", null, [
778
+ t(ce, null, {
779
+ overlay: i(() => [
780
+ t(ue, null, {
781
+ default: i(() => [
782
+ k(n("div", null, [
783
+ t(Y, { key: "1" }, {
784
+ default: i(() => [
785
+ t(q, {
786
+ type: "d",
787
+ text: e.$t("organ.add1"),
788
+ onClick: (V) => S(c)
789
+ }, null, 8, ["text", "onClick"])
790
+ ]),
791
+ _: 2
792
+ }, 1024)
793
+ ], 512), [
794
+ [C, b.value]
795
+ ]),
796
+ k(n("div", null, [
797
+ t(Y, { key: "2" }, {
798
+ default: i(() => [
799
+ t(q, {
800
+ type: "d",
801
+ text: e.$t("organ.add2"),
802
+ onClick: (V) => T(c)
803
+ }, null, 8, ["text", "onClick"])
804
+ ]),
805
+ _: 2
806
+ }, 1024)
807
+ ], 512), [
808
+ [C, b.value]
809
+ ]),
810
+ k(n("div", null, [
811
+ t(Y, { key: "3" }, {
812
+ default: i(() => [
813
+ t(W, {
814
+ onClick: (V) => U(c),
815
+ type: "c",
816
+ title: e.$t("organ.remove"),
817
+ content: e.$t("organ.remove1")
818
+ }, null, 8, ["onClick", "title", "content"])
819
+ ]),
820
+ _: 2
821
+ }, 1024)
822
+ ], 512), [
823
+ [C, c.type != 0 && v.value]
824
+ ])
825
+ ]),
826
+ _: 2
827
+ }, 1024)
828
+ ]),
829
+ default: i(() => [
830
+ n("a", xa, [
831
+ N(p(e.$t("common.btn_more")) + " ", 1),
832
+ t(Oe(fe))
833
+ ])
834
+ ]),
835
+ _: 2
836
+ }, 1024)
837
+ ], 512), [
838
+ [C, c.type != 3 && c.type != 2]
839
+ ])
840
+ ])
841
+ ]),
842
+ _: 1
843
+ }, 8, ["title"])
844
+ ]),
845
+ _: 1
846
+ }, 8, ["data"])) : Q("v-if", !0)
847
+ ]),
848
+ t(ze, {
849
+ ref_key: "branchEditRef",
850
+ ref: d,
851
+ onOk: x
852
+ }, null, 512),
853
+ t(ia, {
854
+ ref_key: "branchDetailRef",
855
+ ref: a
856
+ }, null, 512),
857
+ t(Me, {
858
+ ref_key: "deptEditRef",
859
+ ref: _,
860
+ onOk: x
861
+ }, null, 512),
862
+ t(Ba, {
863
+ ref_key: "deptDetailRef",
864
+ ref: s,
865
+ onOk: x
866
+ }, null, 512)
867
+ ]);
868
+ };
869
+ }
870
+ });
871
+ const Va = /* @__PURE__ */ j(Ea, [["__scopeId", "data-v-32a76766"], ["__file", "D:/inhe-code/witlink-platform-usercenter-web/witlink-platform-usercenter1/src/views/sys/organ/index.vue"]]);
872
+ export {
873
+ Va as default
874
+ };