@litianxiang/portal-ui 0.1.10 → 0.1.12

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/index.js CHANGED
@@ -1,7 +1,7 @@
1
- import { defineComponent as ee, ref as T, computed as q, openBlock as a, createBlock as A, unref as U, normalizeClass as ie, withCtx as u, createElementBlock as p, createCommentVNode as W, renderSlot as ke, createTextVNode as N, toDisplayString as O, Fragment as G, renderList as ne, watch as Ce, createVNode as n, withModifiers as ye, onMounted as De, resolveComponent as I, createElementVNode as d, resolveDynamicComponent as Xe, nextTick as Je, resolveDirective as Ke, withDirectives as Ye, reactive as He, defineAsyncComponent as $e, onUnmounted as Qe } from "vue";
1
+ import { defineComponent as ee, ref as D, computed as W, openBlock as a, createBlock as A, unref as U, createElementBlock as g, normalizeClass as ie, withCtx as i, createCommentVNode as q, renderSlot as Ve, createTextVNode as N, toDisplayString as O, Fragment as G, renderList as ne, watch as Ce, createVNode as n, withModifiers as ye, onMounted as De, resolveComponent as I, createElementVNode as d, resolveDynamicComponent as Xe, nextTick as Je, resolveDirective as Ke, withDirectives as Ye, reactive as He, defineAsyncComponent as $e, onUnmounted as Qe } from "vue";
2
2
  import { ElInput as We, ElButton as Ze, ElSwitch as el, ElSelect as ll, ElOption as tl, ElInputNumber as al, ElDatePicker as ol, ElTimePicker as nl, ElTable as sl, ElTableColumn as Ee, ElLink as ul, ElTag as il, ElMessageBox as _e } from "element-plus";
3
- import { Plus as dl, Download as rl, UploadFilled as cl, Close as Ve, FullScreen as fl, Aim as ml, ArrowUp as pl, ArrowDown as vl, Search as be, ArrowRight as Fe, Check as je, Location as gl, DArrowLeft as hl, Promotion as bl, Finished as yl, User as _l, DArrowRight as wl, ArrowLeft as qe, Loading as kl } from "@element-plus/icons-vue";
4
- import { createAuthHttpClient as Vl } from "@litianxiang/portal-core";
3
+ import { Plus as dl, Download as rl, UploadFilled as cl, Close as ke, FullScreen as fl, Aim as ml, ArrowUp as pl, ArrowDown as vl, Search as be, ArrowRight as Fe, Check as je, Location as gl, DArrowLeft as hl, Promotion as bl, Finished as yl, User as _l, DArrowRight as wl, ArrowLeft as qe, Loading as Vl } from "@element-plus/icons-vue";
4
+ import { createAuthHttpClient as kl } from "@litianxiang/portal-core";
5
5
  import { useRoute as Cl, useRouter as xl } from "vue-router";
6
6
  const Bl = /* @__PURE__ */ ee({
7
7
  __name: "base-input",
@@ -22,47 +22,47 @@ const Bl = /* @__PURE__ */ ee({
22
22
  suffixIcon: {}
23
23
  },
24
24
  emits: ["update:modelValue", "input", "change", "focus", "blur", "clear"],
25
- setup(e, { expose: F, emit: z }) {
26
- const t = e, o = z, c = T(), i = q({
27
- get: () => t.modelValue ?? "",
28
- set: (l) => o("update:modelValue", l)
29
- }), v = (l) => {
30
- o("input", l);
31
- }, g = (l) => {
32
- o("change", l);
33
- }, m = (l) => {
34
- o("focus", l);
35
- }, y = (l) => {
36
- o("blur", l);
37
- }, E = () => {
25
+ setup(e, { expose: E, emit: T }) {
26
+ const l = e, o = T, r = D(), u = W({
27
+ get: () => l.modelValue ?? "",
28
+ set: (t) => o("update:modelValue", t)
29
+ }), v = (t) => {
30
+ o("input", t);
31
+ }, h = (t) => {
32
+ o("change", t);
33
+ }, p = (t) => {
34
+ o("focus", t);
35
+ }, y = (t) => {
36
+ o("blur", t);
37
+ }, $ = () => {
38
38
  o("clear");
39
39
  };
40
- return F({
41
- getValue: () => t.modelValue ?? "",
42
- setValue: (l) => {
43
- o("update:modelValue", l);
40
+ return E({
41
+ getValue: () => l.modelValue ?? "",
42
+ setValue: (t) => {
43
+ o("update:modelValue", t);
44
44
  },
45
45
  clear: () => {
46
46
  o("update:modelValue", "");
47
47
  },
48
48
  focus: () => {
49
- var l;
50
- (l = c.value) == null || l.focus();
49
+ var t;
50
+ (t = r.value) == null || t.focus();
51
51
  },
52
52
  blur: () => {
53
- var l;
54
- (l = c.value) == null || l.blur();
53
+ var t;
54
+ (t = r.value) == null || t.blur();
55
55
  },
56
56
  select: () => {
57
- var l;
58
- (l = c.value) == null || l.select();
57
+ var t;
58
+ (t = r.value) == null || t.select();
59
59
  },
60
- getField: () => t.field ?? ""
61
- }), (l, k) => (a(), A(U(We), {
60
+ getField: () => l.field ?? ""
61
+ }), (t, C) => (a(), A(U(We), {
62
62
  ref_key: "inputRef",
63
- ref: c,
64
- modelValue: i.value,
65
- "onUpdate:modelValue": k[0] || (k[0] = (b) => i.value = b),
63
+ ref: r,
64
+ modelValue: u.value,
65
+ "onUpdate:modelValue": C[0] || (C[0] = (b) => u.value = b),
66
66
  type: e.type,
67
67
  placeholder: e.placeholder,
68
68
  disabled: e.disabled,
@@ -76,13 +76,48 @@ const Bl = /* @__PURE__ */ ee({
76
76
  "prefix-icon": e.prefixIcon,
77
77
  "suffix-icon": e.suffixIcon,
78
78
  onInput: v,
79
- onChange: g,
80
- onFocus: m,
79
+ onChange: h,
80
+ onFocus: p,
81
81
  onBlur: y,
82
- onClear: E
82
+ onClear: $
83
83
  }, null, 8, ["modelValue", "type", "placeholder", "disabled", "readonly", "clearable", "show-password", "maxlength", "minlength", "show-word-limit", "size", "prefix-icon", "suffix-icon"]));
84
84
  }
85
- }), El = { key: 1 }, $l = /* @__PURE__ */ ee({
85
+ }), El = ["name", "value", "disabled"], so = /* @__PURE__ */ ee({
86
+ __name: "base-hidden",
87
+ props: {
88
+ modelValue: { default: "" },
89
+ name: { default: "" },
90
+ field: { default: "" },
91
+ disabled: { type: Boolean, default: !1 }
92
+ },
93
+ emits: ["update:modelValue", "input", "change"],
94
+ setup(e, { expose: E, emit: T }) {
95
+ const l = e, o = T, r = D(null), u = W(() => l.modelValue === null || l.modelValue === void 0 ? "" : String(l.modelValue)), v = (k) => {
96
+ const f = k.target, w = (f == null ? void 0 : f.value) ?? "";
97
+ o("update:modelValue", w), o("input", w);
98
+ }, h = (k) => {
99
+ const f = k.target, w = (f == null ? void 0 : f.value) ?? "";
100
+ o("update:modelValue", w), o("change", w);
101
+ };
102
+ return E({
103
+ getValue: () => u.value,
104
+ setValue: (k) => {
105
+ o("update:modelValue", k == null ? "" : String(k));
106
+ },
107
+ getField: () => l.field ?? "",
108
+ hiddenRef: r
109
+ }), (k, f) => (a(), g("input", {
110
+ ref_key: "hiddenRef",
111
+ ref: r,
112
+ type: "hidden",
113
+ name: e.name,
114
+ value: u.value,
115
+ disabled: e.disabled,
116
+ onInput: v,
117
+ onChange: h
118
+ }, null, 40, El));
119
+ }
120
+ }), $l = { key: 1 }, Fl = /* @__PURE__ */ ee({
86
121
  __name: "base-button",
87
122
  props: {
88
123
  type: { default: "" },
@@ -98,8 +133,8 @@ const Bl = /* @__PURE__ */ ee({
98
133
  label: { default: "" }
99
134
  },
100
135
  emits: ["click"],
101
- setup(e, { expose: F, emit: z }) {
102
- const t = {
136
+ setup(e, { expose: E, emit: T }) {
137
+ const l = {
103
138
  save: "iconfont icon-zancun1",
104
139
  submit: "iconfont icon-tijiaoqueren",
105
140
  approve: "iconfont icon-shenqingshenpi",
@@ -122,20 +157,20 @@ const Bl = /* @__PURE__ */ ee({
122
157
  export: "iconfont icon-export",
123
158
  import: "iconfont icon-import",
124
159
  form: "iconfont icon-biaodan1"
125
- }, o = ["custom"], c = e, i = z, v = q(() => c.icon ? t[c.icon] || c.icon : ""), g = q(() => c.type || ""), m = q(() => {
126
- const x = g.value;
127
- return x && o.includes(x) ? "" : x;
128
- }), y = q(() => {
129
- const x = g.value;
130
- return x && o.includes(x) ? `el-button--${x}` : "";
131
- }), E = (x) => {
132
- !c.disabled && !c.loading && i("click", x);
160
+ }, o = ["custom"], r = e, u = T, v = W(() => r.icon ? l[r.icon] || r.icon : ""), h = W(() => r.type || ""), p = W(() => {
161
+ const w = h.value;
162
+ return w && o.includes(w) ? "" : w;
163
+ }), y = W(() => {
164
+ const w = h.value;
165
+ return w && o.includes(w) ? `el-button--${w}` : "";
166
+ }), $ = (w) => {
167
+ !r.disabled && !r.loading && u("click", w);
133
168
  };
134
- return F({
135
- isDisabled: () => c.disabled,
136
- isLoading: () => c.loading
137
- }), (x, S) => (a(), A(U(Ze), {
138
- type: m.value,
169
+ return E({
170
+ isDisabled: () => r.disabled,
171
+ isLoading: () => r.loading
172
+ }), (w, z) => (a(), A(U(Ze), {
173
+ type: p.value,
139
174
  class: ie(y.value),
140
175
  size: e.size,
141
176
  disabled: e.disabled,
@@ -145,49 +180,49 @@ const Bl = /* @__PURE__ */ ee({
145
180
  circle: e.circle,
146
181
  link: e.link,
147
182
  text: e.text,
148
- onClick: E
183
+ onClick: $
149
184
  }, {
150
- default: u(() => [
151
- v.value && !e.loading ? (a(), p("i", {
185
+ default: i(() => [
186
+ v.value && !e.loading ? (a(), g("i", {
152
187
  key: 0,
153
188
  class: ie(v.value)
154
- }, null, 2)) : W("", !0),
155
- x.$slots.default || e.label ? (a(), p("span", El, [
156
- ke(x.$slots, "default", {}, () => [
189
+ }, null, 2)) : q("", !0),
190
+ w.$slots.default || e.label ? (a(), g("span", $l, [
191
+ Ve(w.$slots, "default", {}, () => [
157
192
  N(O(e.label), 1)
158
193
  ])
159
- ])) : W("", !0)
194
+ ])) : q("", !0)
160
195
  ]),
161
196
  _: 3
162
197
  }, 8, ["type", "class", "size", "disabled", "loading", "plain", "round", "circle", "link", "text"]));
163
198
  }
164
- }), Fl = ["title"], Dl = {
199
+ }), Dl = ["title"], Tl = {
165
200
  key: 0,
166
201
  class: "iconfont icon-expand"
167
- }, Tl = {
202
+ }, Sl = {
168
203
  key: 1,
169
204
  class: "iconfont icon-collapses"
170
- }, no = /* @__PURE__ */ ee({
205
+ }, uo = /* @__PURE__ */ ee({
171
206
  __name: "base-collapse-toggle",
172
207
  props: {
173
208
  modelValue: { type: Boolean, default: !0 }
174
209
  },
175
210
  emits: ["update:modelValue"],
176
- setup(e, { expose: F, emit: z }) {
177
- const t = e, o = z, c = () => {
178
- o("update:modelValue", !t.modelValue);
211
+ setup(e, { expose: E, emit: T }) {
212
+ const l = e, o = T, r = () => {
213
+ o("update:modelValue", !l.modelValue);
179
214
  };
180
- return F({
181
- toggle: c
182
- }), (i, v) => (a(), p("span", {
215
+ return E({
216
+ toggle: r
217
+ }), (u, v) => (a(), g("span", {
183
218
  class: "base-collapse-toggle",
184
219
  title: e.modelValue ? "点击折叠" : "点击展开",
185
- onClick: c
220
+ onClick: r
186
221
  }, [
187
- e.modelValue ? (a(), p("i", Dl)) : (a(), p("i", Tl))
188
- ], 8, Fl));
222
+ e.modelValue ? (a(), g("i", Tl)) : (a(), g("i", Sl))
223
+ ], 8, Dl));
189
224
  }
190
- }), Sl = /* @__PURE__ */ ee({
225
+ }), zl = /* @__PURE__ */ ee({
191
226
  __name: "base-switch",
192
227
  props: {
193
228
  modelValue: { type: [Boolean, String, Number], default: !1 },
@@ -206,30 +241,30 @@ const Bl = /* @__PURE__ */ ee({
206
241
  beforeChange: {}
207
242
  },
208
243
  emits: ["update:modelValue", "change"],
209
- setup(e, { expose: F, emit: z }) {
210
- const t = e, o = z, c = q({
211
- get: () => t.modelValue ?? t.inactiveValue,
212
- set: (h) => o("update:modelValue", h)
213
- }), i = (h) => {
214
- o("change", h);
244
+ setup(e, { expose: E, emit: T }) {
245
+ const l = e, o = T, r = W({
246
+ get: () => l.modelValue ?? l.inactiveValue,
247
+ set: (f) => o("update:modelValue", f)
248
+ }), u = (f) => {
249
+ o("change", f);
215
250
  };
216
- return F({
217
- getValue: () => t.modelValue,
218
- setValue: (h) => {
219
- o("update:modelValue", h);
251
+ return E({
252
+ getValue: () => l.modelValue,
253
+ setValue: (f) => {
254
+ o("update:modelValue", f);
220
255
  },
221
256
  toggle: () => {
222
- const h = t.modelValue === t.activeValue ? t.inactiveValue : t.activeValue;
223
- o("update:modelValue", h);
257
+ const f = l.modelValue === l.activeValue ? l.inactiveValue : l.activeValue;
258
+ o("update:modelValue", f);
224
259
  },
225
- isActive: () => t.modelValue === t.activeValue,
260
+ isActive: () => l.modelValue === l.activeValue,
226
261
  clear: () => {
227
- o("update:modelValue", t.inactiveValue);
262
+ o("update:modelValue", l.inactiveValue);
228
263
  },
229
- getField: () => t.field ?? ""
230
- }), (h, x) => (a(), A(U(el), {
231
- modelValue: c.value,
232
- "onUpdate:modelValue": x[0] || (x[0] = (S) => c.value = S),
264
+ getField: () => l.field ?? ""
265
+ }), (f, w) => (a(), A(U(el), {
266
+ modelValue: r.value,
267
+ "onUpdate:modelValue": w[0] || (w[0] = (z) => r.value = z),
233
268
  disabled: e.disabled,
234
269
  loading: e.loading,
235
270
  size: e.size,
@@ -242,10 +277,10 @@ const Bl = /* @__PURE__ */ ee({
242
277
  "active-icon": e.activeIcon,
243
278
  "inactive-icon": e.inactiveIcon,
244
279
  "before-change": e.beforeChange,
245
- onChange: i
280
+ onChange: u
246
281
  }, null, 8, ["modelValue", "disabled", "loading", "size", "width", "inline-prompt", "active-text", "inactive-text", "active-value", "inactive-value", "active-icon", "inactive-icon", "before-change"]));
247
282
  }
248
- }), zl = /* @__PURE__ */ ee({
283
+ }), Rl = /* @__PURE__ */ ee({
249
284
  __name: "base-select",
250
285
  props: {
251
286
  modelValue: {},
@@ -263,55 +298,55 @@ const Bl = /* @__PURE__ */ ee({
263
298
  size: { default: "default" }
264
299
  },
265
300
  emits: ["update:modelValue", "change", "focus", "blur", "clear"],
266
- setup(e, { expose: F, emit: z }) {
267
- const t = e, o = z, c = T(), i = q({
268
- get: () => t.modelValue,
269
- set: (l) => o("update:modelValue", l)
270
- }), v = (l) => {
271
- o("change", l);
272
- }, g = (l) => {
273
- o("focus", l);
274
- }, m = (l) => {
275
- o("blur", l);
301
+ setup(e, { expose: E, emit: T }) {
302
+ const l = e, o = T, r = D(), u = W({
303
+ get: () => l.modelValue,
304
+ set: (t) => o("update:modelValue", t)
305
+ }), v = (t) => {
306
+ o("change", t);
307
+ }, h = (t) => {
308
+ o("focus", t);
309
+ }, p = (t) => {
310
+ o("blur", t);
276
311
  }, y = () => {
277
312
  o("clear");
278
313
  };
279
- return F({
280
- getValue: () => t.modelValue,
281
- setValue: (l) => {
282
- o("update:modelValue", l);
314
+ return E({
315
+ getValue: () => l.modelValue,
316
+ setValue: (t) => {
317
+ o("update:modelValue", t);
283
318
  },
284
319
  getSelectedOption: () => {
285
- if (t.modelValue)
286
- return t.multiple && Array.isArray(t.modelValue) ? t.modelValue.map((l) => t.options.find((k) => k.key === l)) : t.options.find((l) => l.key === t.modelValue);
320
+ if (l.modelValue)
321
+ return l.multiple && Array.isArray(l.modelValue) ? l.modelValue.map((t) => l.options.find((C) => C.key === t)) : l.options.find((t) => t.key === l.modelValue);
287
322
  },
288
323
  getSelectedValue: () => {
289
- if (!t.modelValue) return;
290
- if (t.multiple && Array.isArray(t.modelValue))
291
- return t.modelValue.map((k) => {
292
- const b = t.options.find((X) => X.key === k);
324
+ if (!l.modelValue) return;
325
+ if (l.multiple && Array.isArray(l.modelValue))
326
+ return l.modelValue.map((C) => {
327
+ const b = l.options.find((X) => X.key === C);
293
328
  return (b == null ? void 0 : b.value) ?? "";
294
329
  });
295
- const l = t.options.find((k) => k.key === t.modelValue);
296
- return l == null ? void 0 : l.value;
330
+ const t = l.options.find((C) => C.key === l.modelValue);
331
+ return t == null ? void 0 : t.value;
297
332
  },
298
333
  clear: () => {
299
- o("update:modelValue", t.multiple ? [] : void 0);
334
+ o("update:modelValue", l.multiple ? [] : void 0);
300
335
  },
301
336
  focus: () => {
302
- var l;
303
- (l = c.value) == null || l.focus();
337
+ var t;
338
+ (t = r.value) == null || t.focus();
304
339
  },
305
340
  blur: () => {
306
- var l;
307
- (l = c.value) == null || l.blur();
341
+ var t;
342
+ (t = r.value) == null || t.blur();
308
343
  },
309
- getField: () => t.field ?? ""
310
- }), (l, k) => (a(), A(U(ll), {
344
+ getField: () => l.field ?? ""
345
+ }), (t, C) => (a(), A(U(ll), {
311
346
  ref_key: "selectRef",
312
- ref: c,
313
- modelValue: i.value,
314
- "onUpdate:modelValue": k[0] || (k[0] = (b) => i.value = b),
347
+ ref: r,
348
+ modelValue: u.value,
349
+ "onUpdate:modelValue": C[0] || (C[0] = (b) => u.value = b),
315
350
  placeholder: e.placeholder,
316
351
  disabled: e.disabled,
317
352
  multiple: e.multiple,
@@ -323,12 +358,12 @@ const Bl = /* @__PURE__ */ ee({
323
358
  "max-collapse-tags": e.maxTagCount,
324
359
  "no-data-text": e.emptyText,
325
360
  onChange: v,
326
- onFocus: g,
327
- onBlur: m,
361
+ onFocus: h,
362
+ onBlur: p,
328
363
  onClear: y
329
364
  }, {
330
- default: u(() => [
331
- (a(!0), p(G, null, ne(e.options, (b) => (a(), A(U(tl), {
365
+ default: i(() => [
366
+ (a(!0), g(G, null, ne(e.options, (b) => (a(), A(U(tl), {
332
367
  key: b.key,
333
368
  label: b.value,
334
369
  value: b.key,
@@ -338,7 +373,7 @@ const Bl = /* @__PURE__ */ ee({
338
373
  _: 1
339
374
  }, 8, ["modelValue", "placeholder", "disabled", "multiple", "filterable", "clearable", "size", "collapse-tags", "collapse-tags-tooltip", "max-collapse-tags", "no-data-text"]));
340
375
  }
341
- }), Rl = /* @__PURE__ */ ee({
376
+ }), Ul = /* @__PURE__ */ ee({
342
377
  __name: "base-number",
343
378
  props: {
344
379
  modelValue: {},
@@ -356,53 +391,53 @@ const Bl = /* @__PURE__ */ ee({
356
391
  size: { default: "default" }
357
392
  },
358
393
  emits: ["update:modelValue", "change", "focus", "blur"],
359
- setup(e, { expose: F, emit: z }) {
360
- const t = e, o = z, c = T(), i = (l) => {
361
- if (l === "" || l === null || l === void 0) return null;
362
- const k = Number(l);
363
- return Number.isNaN(k) ? null : k;
364
- }, v = q({
365
- get: () => i(t.modelValue),
366
- set: (l) => o("update:modelValue", l)
367
- }), g = (l, k) => {
368
- o("change", l ?? null, k ?? null);
369
- }, m = (l) => {
370
- o("focus", l);
371
- }, y = (l) => {
372
- o("blur", l);
394
+ setup(e, { expose: E, emit: T }) {
395
+ const l = e, o = T, r = D(), u = (t) => {
396
+ if (t === "" || t === null || t === void 0) return null;
397
+ const C = Number(t);
398
+ return Number.isNaN(C) ? null : C;
399
+ }, v = W({
400
+ get: () => u(l.modelValue),
401
+ set: (t) => o("update:modelValue", t)
402
+ }), h = (t, C) => {
403
+ o("change", t ?? null, C ?? null);
404
+ }, p = (t) => {
405
+ o("focus", t);
406
+ }, y = (t) => {
407
+ o("blur", t);
373
408
  };
374
- return F({
375
- getValue: () => i(t.modelValue),
376
- setValue: (l) => {
377
- o("update:modelValue", i(l));
409
+ return E({
410
+ getValue: () => u(l.modelValue),
411
+ setValue: (t) => {
412
+ o("update:modelValue", u(t));
378
413
  },
379
414
  clear: () => {
380
415
  o("update:modelValue", null);
381
416
  },
382
417
  increase: () => {
383
- const l = i(t.modelValue) ?? 0, k = t.step ?? 1;
384
- let b = l + k;
385
- t.max !== void 0 && b > t.max && (b = t.max), o("update:modelValue", b);
418
+ const t = u(l.modelValue) ?? 0, C = l.step ?? 1;
419
+ let b = t + C;
420
+ l.max !== void 0 && b > l.max && (b = l.max), o("update:modelValue", b);
386
421
  },
387
422
  decrease: () => {
388
- const l = i(t.modelValue) ?? 0, k = t.step ?? 1;
389
- let b = l - k;
390
- t.min !== void 0 && b < t.min && (b = t.min), o("update:modelValue", b);
423
+ const t = u(l.modelValue) ?? 0, C = l.step ?? 1;
424
+ let b = t - C;
425
+ l.min !== void 0 && b < l.min && (b = l.min), o("update:modelValue", b);
391
426
  },
392
427
  focus: () => {
393
- var l;
394
- (l = c.value) == null || l.focus();
428
+ var t;
429
+ (t = r.value) == null || t.focus();
395
430
  },
396
431
  blur: () => {
397
- var l;
398
- (l = c.value) == null || l.blur();
432
+ var t;
433
+ (t = r.value) == null || t.blur();
399
434
  },
400
- getField: () => t.field ?? ""
401
- }), (l, k) => (a(), A(U(al), {
435
+ getField: () => l.field ?? ""
436
+ }), (t, C) => (a(), A(U(al), {
402
437
  ref_key: "numberRef",
403
- ref: c,
438
+ ref: r,
404
439
  modelValue: v.value,
405
- "onUpdate:modelValue": k[0] || (k[0] = (b) => v.value = b),
440
+ "onUpdate:modelValue": C[0] || (C[0] = (b) => v.value = b),
406
441
  min: e.min,
407
442
  max: e.max,
408
443
  step: e.step,
@@ -414,12 +449,12 @@ const Bl = /* @__PURE__ */ ee({
414
449
  controls: e.controls,
415
450
  "controls-position": e.controlsPosition,
416
451
  placeholder: e.placeholder,
417
- onChange: g,
418
- onFocus: m,
452
+ onChange: h,
453
+ onFocus: p,
419
454
  onBlur: y
420
455
  }, null, 8, ["modelValue", "min", "max", "step", "step-strictly", "precision", "disabled", "readonly", "size", "controls", "controls-position", "placeholder"]));
421
456
  }
422
- }), Ul = /* @__PURE__ */ ee({
457
+ }), Al = /* @__PURE__ */ ee({
423
458
  __name: "base-date",
424
459
  props: {
425
460
  modelValue: {},
@@ -439,50 +474,50 @@ const Bl = /* @__PURE__ */ ee({
439
474
  rangeSeparator: { default: "至" }
440
475
  },
441
476
  emits: ["update:modelValue", "change", "focus", "blur", "clear"],
442
- setup(e, { expose: F, emit: z }) {
443
- const t = e, o = z, c = T(), i = q({
444
- get: () => t.modelValue,
445
- set: (l) => o("update:modelValue", l)
446
- }), v = (l) => {
447
- o("change", l);
448
- }, g = (l) => {
449
- o("focus", l);
450
- }, m = (l) => {
451
- o("blur", l);
477
+ setup(e, { expose: E, emit: T }) {
478
+ const l = e, o = T, r = D(), u = W({
479
+ get: () => l.modelValue,
480
+ set: (t) => o("update:modelValue", t)
481
+ }), v = (t) => {
482
+ o("change", t);
483
+ }, h = (t) => {
484
+ o("focus", t);
485
+ }, p = (t) => {
486
+ o("blur", t);
452
487
  }, y = () => {
453
488
  o("clear");
454
489
  };
455
- return F({
456
- getValue: () => t.modelValue,
457
- setValue: (l) => {
458
- o("update:modelValue", l);
490
+ return E({
491
+ getValue: () => l.modelValue,
492
+ setValue: (t) => {
493
+ o("update:modelValue", t);
459
494
  },
460
495
  getDateObject: () => {
461
- if (t.modelValue) {
462
- if (t.modelValue instanceof Date) return t.modelValue;
463
- if (typeof t.modelValue == "string") return new Date(t.modelValue);
464
- if (Array.isArray(t.modelValue))
465
- return t.modelValue.map((l) => l instanceof Date ? l : new Date(l));
496
+ if (l.modelValue) {
497
+ if (l.modelValue instanceof Date) return l.modelValue;
498
+ if (typeof l.modelValue == "string") return new Date(l.modelValue);
499
+ if (Array.isArray(l.modelValue))
500
+ return l.modelValue.map((t) => t instanceof Date ? t : new Date(t));
466
501
  }
467
502
  },
468
- getFormattedValue: () => t.modelValue,
503
+ getFormattedValue: () => l.modelValue,
469
504
  clear: () => {
470
505
  o("update:modelValue", void 0);
471
506
  },
472
507
  focus: () => {
473
- var l;
474
- (l = c.value) == null || l.focus();
508
+ var t;
509
+ (t = r.value) == null || t.focus();
475
510
  },
476
511
  blur: () => {
477
- var l;
478
- (l = c.value) == null || l.blur();
512
+ var t;
513
+ (t = r.value) == null || t.blur();
479
514
  },
480
- getField: () => t.field ?? ""
481
- }), (l, k) => (a(), A(U(ol), {
515
+ getField: () => l.field ?? ""
516
+ }), (t, C) => (a(), A(U(ol), {
482
517
  ref_key: "dateRef",
483
- ref: c,
484
- modelValue: i.value,
485
- "onUpdate:modelValue": k[0] || (k[0] = (b) => i.value = b),
518
+ ref: r,
519
+ modelValue: u.value,
520
+ "onUpdate:modelValue": C[0] || (C[0] = (b) => u.value = b),
486
521
  type: e.type,
487
522
  placeholder: e.placeholder,
488
523
  "start-placeholder": e.startPlaceholder,
@@ -497,12 +532,12 @@ const Bl = /* @__PURE__ */ ee({
497
532
  shortcuts: e.shortcuts,
498
533
  "range-separator": e.rangeSeparator,
499
534
  onChange: v,
500
- onFocus: g,
501
- onBlur: m,
535
+ onFocus: h,
536
+ onBlur: p,
502
537
  onClear: y
503
538
  }, null, 8, ["modelValue", "type", "placeholder", "start-placeholder", "end-placeholder", "disabled", "readonly", "clearable", "size", "format", "value-format", "disabled-date", "shortcuts", "range-separator"]));
504
539
  }
505
- }), Al = /* @__PURE__ */ ee({
540
+ }), Pl = /* @__PURE__ */ ee({
506
541
  __name: "base-time",
507
542
  props: {
508
543
  modelValue: {},
@@ -524,42 +559,42 @@ const Bl = /* @__PURE__ */ ee({
524
559
  arrowControl: { type: Boolean, default: !1 }
525
560
  },
526
561
  emits: ["update:modelValue", "change", "focus", "blur", "clear"],
527
- setup(e, { expose: F, emit: z }) {
528
- const t = e, o = z, c = T(), i = q({
529
- get: () => t.modelValue,
562
+ setup(e, { expose: E, emit: T }) {
563
+ const l = e, o = T, r = D(), u = W({
564
+ get: () => l.modelValue,
530
565
  set: (s) => o("update:modelValue", s)
531
566
  }), v = (s) => {
532
567
  o("change", s);
533
- }, g = (s) => {
568
+ }, h = (s) => {
534
569
  o("focus", s);
535
- }, m = (s) => {
570
+ }, p = (s) => {
536
571
  o("blur", s);
537
572
  }, y = () => {
538
573
  o("clear");
539
574
  };
540
- return F({
541
- getValue: () => t.modelValue,
575
+ return E({
576
+ getValue: () => l.modelValue,
542
577
  setValue: (s) => {
543
578
  o("update:modelValue", s);
544
579
  },
545
- getFormattedValue: () => t.modelValue,
580
+ getFormattedValue: () => l.modelValue,
546
581
  clear: () => {
547
582
  o("update:modelValue", void 0);
548
583
  },
549
584
  focus: () => {
550
585
  var s;
551
- (s = c.value) == null || s.focus();
586
+ (s = r.value) == null || s.focus();
552
587
  },
553
588
  blur: () => {
554
589
  var s;
555
- (s = c.value) == null || s.blur();
590
+ (s = r.value) == null || s.blur();
556
591
  },
557
- getField: () => t.field ?? ""
558
- }), (s, l) => (a(), A(U(nl), {
592
+ getField: () => l.field ?? ""
593
+ }), (s, t) => (a(), A(U(nl), {
559
594
  ref_key: "timeRef",
560
- ref: c,
561
- modelValue: i.value,
562
- "onUpdate:modelValue": l[0] || (l[0] = (k) => i.value = k),
595
+ ref: r,
596
+ modelValue: u.value,
597
+ "onUpdate:modelValue": t[0] || (t[0] = (C) => u.value = C),
563
598
  "is-range": e.isRange,
564
599
  placeholder: e.placeholder,
565
600
  "start-placeholder": e.startPlaceholder,
@@ -576,18 +611,18 @@ const Bl = /* @__PURE__ */ ee({
576
611
  "range-separator": e.rangeSeparator,
577
612
  "arrow-control": e.arrowControl,
578
613
  onChange: v,
579
- onFocus: g,
580
- onBlur: m,
614
+ onFocus: h,
615
+ onBlur: p,
581
616
  onClear: y
582
617
  }, null, 8, ["modelValue", "is-range", "placeholder", "start-placeholder", "end-placeholder", "disabled", "readonly", "clearable", "size", "format", "value-format", "disabled-hours", "disabled-minutes", "disabled-seconds", "range-separator", "arrow-control"]));
583
618
  }
584
- }), Pl = { class: "base-table" }, Il = {
619
+ }), Il = { class: "base-table" }, Ll = {
585
620
  key: 0,
586
621
  class: "base-table__toolbar"
587
- }, Ll = {
622
+ }, Ml = {
588
623
  key: 1,
589
624
  class: "base-table__error"
590
- }, Ml = /* @__PURE__ */ ee({
625
+ }, Nl = /* @__PURE__ */ ee({
591
626
  __name: "base-table",
592
627
  props: {
593
628
  modelValue: { default: () => [] },
@@ -614,103 +649,103 @@ const Bl = /* @__PURE__ */ ee({
614
649
  highlightCurrentRow: { type: Boolean, default: !1 }
615
650
  },
616
651
  emits: ["update:modelValue", "change", "row-add", "row-delete", "cell-change", "selection-change", "row-click", "cell-click"],
617
- setup(e, { expose: F, emit: z }) {
618
- const t = e, o = z, c = T(), i = T([]), v = T([]), g = T("");
619
- let m = 0;
652
+ setup(e, { expose: E, emit: T }) {
653
+ const l = e, o = T, r = D(), u = D([]), v = D([]), h = D("");
654
+ let p = 0;
620
655
  const y = () => {
621
- i.value = (t.modelValue || []).map((V, C) => ({
622
- ...V,
623
- _rowKey: V._rowKey || `row_${++m}`,
624
- _rowIndex: C
656
+ u.value = (l.modelValue || []).map((x, B) => ({
657
+ ...x,
658
+ _rowKey: x._rowKey || `row_${++p}`,
659
+ _rowIndex: B
625
660
  }));
626
661
  };
627
- Ce(() => t.modelValue, () => {
662
+ Ce(() => l.modelValue, () => {
628
663
  y();
629
664
  }, { immediate: !0, deep: !0 });
630
- const E = q(() => t.columns.filter((V) => V.visible !== !1)), B = q(() => t.maxRows !== void 0 && i.value.length >= t.maxRows), h = q(() => t.minRows !== void 0 && i.value.length <= t.minRows), x = (V) => V._rowKey || V[t.rowKey], S = (V) => !t.disabled, L = (V, C) => {
631
- if (!C) return V;
632
- const r = C.find((P) => P.key === V);
633
- return (r == null ? void 0 : r.value) ?? V;
665
+ const $ = W(() => l.columns.filter((x) => x.visible !== !1)), k = W(() => l.maxRows !== void 0 && u.value.length >= l.maxRows), f = W(() => l.minRows !== void 0 && u.value.length <= l.minRows), w = (x) => x._rowKey || x[l.rowKey], z = (x) => !l.disabled, L = (x, B) => {
666
+ if (!B) return x;
667
+ const c = B.find((P) => P.key === x);
668
+ return (c == null ? void 0 : c.value) ?? x;
634
669
  }, K = () => {
635
- if (B.value) return;
636
- const V = {
637
- _rowKey: `row_${++m}`,
638
- ...t.defaultRowData
670
+ if (k.value) return;
671
+ const x = {
672
+ _rowKey: `row_${++p}`,
673
+ ...l.defaultRowData
639
674
  };
640
- t.columns.forEach((C) => {
641
- V[C.field] === void 0 && (V[C.field] = "");
642
- }), i.value.push(V), M(), o("row-add", V, i.value.length - 1);
643
- }, s = (V) => {
644
- if (h.value) return;
645
- const C = i.value[V];
646
- i.value.splice(V, 1), M(), o("row-delete", C, V);
647
- }, l = (V, C, r) => {
648
- M(), o("cell-change", V, C, r);
649
- }, k = (V) => {
650
- v.value = V, o("selection-change", V);
651
- }, b = (V, C, r) => {
652
- o("row-click", V, C, r);
653
- }, X = (V, C, r, P) => {
654
- o("cell-click", V, C, r, P);
675
+ l.columns.forEach((B) => {
676
+ x[B.field] === void 0 && (x[B.field] = "");
677
+ }), u.value.push(x), M(), o("row-add", x, u.value.length - 1);
678
+ }, s = (x) => {
679
+ if (f.value) return;
680
+ const B = u.value[x];
681
+ u.value.splice(x, 1), M(), o("row-delete", B, x);
682
+ }, t = (x, B, c) => {
683
+ M(), o("cell-change", x, B, c);
684
+ }, C = (x) => {
685
+ v.value = x, o("selection-change", x);
686
+ }, b = (x, B, c) => {
687
+ o("row-click", x, B, c);
688
+ }, X = (x, B, c, P) => {
689
+ o("cell-click", x, B, c, P);
655
690
  }, M = () => {
656
- const V = i.value.map((C) => {
657
- const { _rowKey: r, _rowIndex: P, ...me } = C;
691
+ const x = u.value.map((B) => {
692
+ const { _rowKey: c, _rowIndex: P, ...me } = B;
658
693
  return me;
659
694
  });
660
- o("update:modelValue", V), o("change", V);
661
- }, oe = () => i.value.map((V) => {
662
- const { _rowKey: C, _rowIndex: r, ...P } = V;
695
+ o("update:modelValue", x), o("change", x);
696
+ }, oe = () => u.value.map((x) => {
697
+ const { _rowKey: B, _rowIndex: c, ...P } = x;
663
698
  return P;
664
- }), de = (V) => {
665
- i.value = V.map((C, r) => ({
666
- ...C,
667
- _rowKey: C._rowKey || `row_${++m}`,
668
- _rowIndex: r
699
+ }), de = (x) => {
700
+ u.value = x.map((B, c) => ({
701
+ ...B,
702
+ _rowKey: B._rowKey || `row_${++p}`,
703
+ _rowIndex: c
669
704
  })), M();
670
- }, se = (V, C) => {
671
- if (B.value) return;
672
- const r = {
673
- _rowKey: `row_${++m}`,
674
- ...t.defaultRowData,
675
- ...V
705
+ }, se = (x, B) => {
706
+ if (k.value) return;
707
+ const c = {
708
+ _rowKey: `row_${++p}`,
709
+ ...l.defaultRowData,
710
+ ...x
676
711
  };
677
- C !== void 0 && C >= 0 && C <= i.value.length ? i.value.splice(C, 0, r) : i.value.push(r), M();
678
- }, pe = (V) => {
679
- V >= 0 && V < i.value.length && (i.value.splice(V, 1), M());
680
- }, fe = (V) => {
681
- [...V].sort((r, P) => P - r).forEach((r) => {
682
- r >= 0 && r < i.value.length && i.value.splice(r, 1);
712
+ B !== void 0 && B >= 0 && B <= u.value.length ? u.value.splice(B, 0, c) : u.value.push(c), M();
713
+ }, pe = (x) => {
714
+ x >= 0 && x < u.value.length && (u.value.splice(x, 1), M());
715
+ }, fe = (x) => {
716
+ [...x].sort((c, P) => P - c).forEach((c) => {
717
+ c >= 0 && c < u.value.length && u.value.splice(c, 1);
683
718
  }), M();
684
- }, re = (V) => {
685
- if (V >= 0 && V < i.value.length) {
686
- const { _rowKey: C, _rowIndex: r, ...P } = i.value[V];
719
+ }, re = (x) => {
720
+ if (x >= 0 && x < u.value.length) {
721
+ const { _rowKey: B, _rowIndex: c, ...P } = u.value[x];
687
722
  return P;
688
723
  }
689
- }, te = (V, C) => {
690
- V >= 0 && V < i.value.length && (Object.assign(i.value[V], C), M());
691
- }, ve = (V, C, r) => {
692
- V >= 0 && V < i.value.length && (i.value[V][C] = r, M());
693
- }, $ = () => v.value.map((V) => {
694
- const { _rowKey: C, _rowIndex: r, ...P } = V;
724
+ }, te = (x, B) => {
725
+ x >= 0 && x < u.value.length && (Object.assign(u.value[x], B), M());
726
+ }, ve = (x, B, c) => {
727
+ x >= 0 && x < u.value.length && (u.value[x][B] = c, M());
728
+ }, F = () => v.value.map((x) => {
729
+ const { _rowKey: B, _rowIndex: c, ...P } = x;
695
730
  return P;
696
- }), R = () => v.value.map((V) => i.value.indexOf(V)), J = (V) => {
697
- var C;
698
- (C = c.value) == null || C.clearSelection(), V.forEach((r) => {
731
+ }), R = () => v.value.map((x) => u.value.indexOf(x)), J = (x) => {
732
+ var B;
733
+ (B = r.value) == null || B.clearSelection(), x.forEach((c) => {
699
734
  var P;
700
- r >= 0 && r < i.value.length && ((P = c.value) == null || P.toggleRowSelection(i.value[r], !0));
735
+ c >= 0 && c < u.value.length && ((P = r.value) == null || P.toggleRowSelection(u.value[c], !0));
701
736
  });
702
737
  }, ce = () => {
703
- var V;
704
- (V = c.value) == null || V.clearSelection();
738
+ var x;
739
+ (x = r.value) == null || x.clearSelection();
705
740
  }, ge = () => {
706
- i.value.forEach((V) => {
707
- var C;
708
- (C = c.value) == null || C.toggleRowSelection(V, !0);
741
+ u.value.forEach((x) => {
742
+ var B;
743
+ (B = r.value) == null || B.toggleRowSelection(x, !0);
709
744
  });
710
- }, D = async () => t.required && i.value.length === 0 ? (g.value = `${t.label || t.field}不能为空`, !1) : (g.value = "", !0);
711
- return F({
745
+ }, S = async () => l.required && u.value.length === 0 ? (h.value = `${l.label || l.field}不能为空`, !1) : (h.value = "", !0);
746
+ return E({
712
747
  getValue: () => oe(),
713
- setValue: (V) => de(V),
748
+ setValue: (x) => de(x),
714
749
  getTableData: oe,
715
750
  setTableData: de,
716
751
  addRow: se,
@@ -719,66 +754,66 @@ const Bl = /* @__PURE__ */ ee({
719
754
  getRow: re,
720
755
  updateRow: te,
721
756
  updateCell: ve,
722
- getSelectedRows: $,
757
+ getSelectedRows: F,
723
758
  getSelectedIndexes: R,
724
759
  setSelectedRows: J,
725
760
  clearSelection: ce,
726
761
  selectAll: ge,
727
- validateAll: D,
728
- validateRow: async (V) => !0,
729
- getRowCount: () => i.value.length,
762
+ validateAll: S,
763
+ validateRow: async (x) => !0,
764
+ getRowCount: () => u.value.length,
730
765
  clear: () => {
731
- i.value = [], M();
766
+ u.value = [], M();
732
767
  },
733
- validate: async () => D(),
768
+ validate: async () => S(),
734
769
  reset: () => {
735
- y(), g.value = "";
770
+ y(), h.value = "";
736
771
  },
737
- getField: () => t.field,
738
- getTableInstance: () => c.value
739
- }), (V, C) => (a(), p("div", Pl, [
740
- e.addable ? (a(), p("div", Il, [
741
- n($l, {
772
+ getField: () => l.field,
773
+ getTableInstance: () => r.value
774
+ }), (x, B) => (a(), g("div", Il, [
775
+ e.addable ? (a(), g("div", Ll, [
776
+ n(Fl, {
742
777
  icon: "add",
743
778
  size: "small",
744
779
  label: "新增行",
745
780
  onClick: K,
746
- disabled: e.disabled || B.value
781
+ disabled: e.disabled || k.value
747
782
  }, null, 8, ["disabled"])
748
- ])) : W("", !0),
783
+ ])) : q("", !0),
749
784
  n(U(sl), {
750
785
  ref_key: "tableRef",
751
- ref: c,
752
- data: i.value,
786
+ ref: r,
787
+ data: u.value,
753
788
  height: e.height,
754
789
  "max-height": e.maxHeight,
755
790
  stripe: e.stripe,
756
791
  border: e.border,
757
- "row-key": x,
792
+ "row-key": w,
758
793
  "empty-text": e.emptyText,
759
794
  "highlight-current-row": e.highlightCurrentRow,
760
- onSelectionChange: k,
795
+ onSelectionChange: C,
761
796
  onRowClick: b,
762
797
  onCellClick: X
763
798
  }, {
764
- default: u(() => [
799
+ default: i(() => [
765
800
  e.showSelection ? (a(), A(U(Ee), {
766
801
  key: 0,
767
802
  type: "selection",
768
803
  width: "55",
769
804
  align: "center",
770
- selectable: S
771
- })) : W("", !0),
772
- e.deletable || V.$slots.action ? (a(), A(U(Ee), {
805
+ selectable: z
806
+ })) : q("", !0),
807
+ e.deletable || x.$slots.action ? (a(), A(U(Ee), {
773
808
  key: 1,
774
809
  label: "操作",
775
810
  width: e.actionWidth,
776
811
  align: "center",
777
812
  fixed: "left"
778
813
  }, {
779
- default: u(({ row: r, $index: P }) => [
780
- ke(V.$slots, "action", {
781
- row: r,
814
+ default: i(({ row: c, $index: P }) => [
815
+ Ve(x.$slots, "action", {
816
+ row: c,
782
817
  index: P
783
818
  }, () => [
784
819
  e.deletable ? (a(), A(U(ul), {
@@ -786,112 +821,112 @@ const Bl = /* @__PURE__ */ ee({
786
821
  type: "primary",
787
822
  underline: "never",
788
823
  onClick: ye((me) => s(P), ["stop"]),
789
- disabled: e.disabled || h.value
824
+ disabled: e.disabled || f.value
790
825
  }, {
791
- default: u(() => [...C[0] || (C[0] = [
826
+ default: i(() => [...B[0] || (B[0] = [
792
827
  N("删除", -1)
793
828
  ])]),
794
829
  _: 1
795
- }, 8, ["onClick", "disabled"])) : W("", !0)
830
+ }, 8, ["onClick", "disabled"])) : q("", !0)
796
831
  ], !0)
797
832
  ]),
798
833
  _: 3
799
- }, 8, ["width"])) : W("", !0),
834
+ }, 8, ["width"])) : q("", !0),
800
835
  e.showIndex ? (a(), A(U(Ee), {
801
836
  key: 2,
802
837
  type: "index",
803
838
  label: "序号",
804
839
  width: "60",
805
840
  align: "center"
806
- })) : W("", !0),
807
- (a(!0), p(G, null, ne(E.value, (r) => (a(), A(U(Ee), {
808
- key: r.field,
809
- prop: r.field,
810
- label: r.label,
811
- width: r.width,
812
- "min-width": r.minWidth,
813
- align: r.align || "left",
814
- "header-align": r.headerAlign,
815
- fixed: r.fixed,
816
- sortable: r.sortable,
817
- "show-overflow-tooltip": r.showOverflowTooltip !== !1
841
+ })) : q("", !0),
842
+ (a(!0), g(G, null, ne($.value, (c) => (a(), A(U(Ee), {
843
+ key: c.field,
844
+ prop: c.field,
845
+ label: c.label,
846
+ width: c.width,
847
+ "min-width": c.minWidth,
848
+ align: c.align || "left",
849
+ "header-align": c.headerAlign,
850
+ fixed: c.fixed,
851
+ sortable: c.sortable,
852
+ "show-overflow-tooltip": c.showOverflowTooltip !== !1
818
853
  }, {
819
- default: u(({ row: P, $index: me }) => {
854
+ default: i(({ row: P, $index: me }) => {
820
855
  var Q, Be, Se, ze, Re, Ue, Ae, Pe, Ie, Le, Me;
821
856
  return [
822
- V.$slots[r.field] ? ke(V.$slots, r.field, {
857
+ x.$slots[c.field] ? Ve(x.$slots, c.field, {
823
858
  key: 0,
824
859
  row: P,
825
860
  index: me,
826
- column: r
827
- }, void 0, !0) : r.editable && !e.disabled && !e.readonly ? (a(), p(G, { key: 1 }, [
828
- r.controlType === "input" || !r.controlType ? (a(), A(Bl, {
861
+ column: c
862
+ }, void 0, !0) : c.editable && !e.disabled && !e.readonly ? (a(), g(G, { key: 1 }, [
863
+ c.controlType === "input" || !c.controlType ? (a(), A(Bl, {
829
864
  key: 0,
830
- modelValue: P[r.field],
831
- "onUpdate:modelValue": (ae) => P[r.field] = ae,
832
- placeholder: r.placeholder,
833
- onChange: (ae) => l(me, r.field, P[r.field])
834
- }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange"])) : r.controlType === "number" ? (a(), A(Rl, {
865
+ modelValue: P[c.field],
866
+ "onUpdate:modelValue": (ae) => P[c.field] = ae,
867
+ placeholder: c.placeholder,
868
+ onChange: (ae) => t(me, c.field, P[c.field])
869
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange"])) : c.controlType === "number" ? (a(), A(Ul, {
835
870
  key: 1,
836
- modelValue: P[r.field],
837
- "onUpdate:modelValue": (ae) => P[r.field] = ae,
871
+ modelValue: P[c.field],
872
+ "onUpdate:modelValue": (ae) => P[c.field] = ae,
838
873
  controls: !1,
839
- min: (Q = r.controlProps) == null ? void 0 : Q.min,
840
- max: (Be = r.controlProps) == null ? void 0 : Be.max,
841
- precision: (Se = r.controlProps) == null ? void 0 : Se.precision,
842
- disabled: (ze = r.controlProps) == null ? void 0 : ze.disabled,
843
- onChange: (ae) => l(me, r.field, P[r.field])
844
- }, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "precision", "disabled", "onChange"])) : r.controlType === "select" ? (a(), A(zl, {
874
+ min: (Q = c.controlProps) == null ? void 0 : Q.min,
875
+ max: (Be = c.controlProps) == null ? void 0 : Be.max,
876
+ precision: (Se = c.controlProps) == null ? void 0 : Se.precision,
877
+ disabled: (ze = c.controlProps) == null ? void 0 : ze.disabled,
878
+ onChange: (ae) => t(me, c.field, P[c.field])
879
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max", "precision", "disabled", "onChange"])) : c.controlType === "select" ? (a(), A(Rl, {
845
880
  key: 2,
846
- modelValue: P[r.field],
847
- "onUpdate:modelValue": (ae) => P[r.field] = ae,
848
- placeholder: r.placeholder || "请选择",
849
- options: ((Re = r.controlProps) == null ? void 0 : Re.options) || [],
881
+ modelValue: P[c.field],
882
+ "onUpdate:modelValue": (ae) => P[c.field] = ae,
883
+ placeholder: c.placeholder || "请选择",
884
+ options: ((Re = c.controlProps) == null ? void 0 : Re.options) || [],
850
885
  clearable: "",
851
- onChange: (ae) => l(me, r.field, P[r.field])
852
- }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "options", "onChange"])) : r.controlType === "date" ? (a(), A(Ul, {
886
+ onChange: (ae) => t(me, c.field, P[c.field])
887
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "options", "onChange"])) : c.controlType === "date" ? (a(), A(Al, {
853
888
  key: 3,
854
- modelValue: P[r.field],
855
- "onUpdate:modelValue": (ae) => P[r.field] = ae,
889
+ modelValue: P[c.field],
890
+ "onUpdate:modelValue": (ae) => P[c.field] = ae,
856
891
  type: "date",
857
- placeholder: r.placeholder || "选择日期",
892
+ placeholder: c.placeholder || "选择日期",
858
893
  "value-format": "YYYY-MM-DD",
859
- onChange: (ae) => l(me, r.field, P[r.field])
860
- }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange"])) : r.controlType === "time" ? (a(), A(Al, {
894
+ onChange: (ae) => t(me, c.field, P[c.field])
895
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange"])) : c.controlType === "time" ? (a(), A(Pl, {
861
896
  key: 4,
862
- modelValue: P[r.field],
863
- "onUpdate:modelValue": (ae) => P[r.field] = ae,
864
- placeholder: r.placeholder || "选择时间",
865
- format: ((Ue = r.controlProps) == null ? void 0 : Ue.format) || "HH:mm",
866
- "value-format": ((Ae = r.controlProps) == null ? void 0 : Ae.valueFormat) || "HH:mm",
867
- onChange: (ae) => l(me, r.field, P[r.field])
868
- }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "format", "value-format", "onChange"])) : r.controlType === "switch" ? (a(), A(Sl, {
897
+ modelValue: P[c.field],
898
+ "onUpdate:modelValue": (ae) => P[c.field] = ae,
899
+ placeholder: c.placeholder || "选择时间",
900
+ format: ((Ue = c.controlProps) == null ? void 0 : Ue.format) || "HH:mm",
901
+ "value-format": ((Ae = c.controlProps) == null ? void 0 : Ae.valueFormat) || "HH:mm",
902
+ onChange: (ae) => t(me, c.field, P[c.field])
903
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "format", "value-format", "onChange"])) : c.controlType === "switch" ? (a(), A(zl, {
869
904
  key: 5,
870
- modelValue: P[r.field],
871
- "onUpdate:modelValue": (ae) => P[r.field] = ae,
872
- "active-value": ((Pe = r.controlProps) == null ? void 0 : Pe.activeValue) ?? !0,
873
- "inactive-value": ((Ie = r.controlProps) == null ? void 0 : Ie.inactiveValue) ?? !1,
874
- onChange: (ae) => l(me, r.field, P[r.field])
875
- }, null, 8, ["modelValue", "onUpdate:modelValue", "active-value", "inactive-value", "onChange"])) : W("", !0)
876
- ], 64)) : (a(), p(G, { key: 2 }, [
877
- r.formatter ? (a(), p(G, { key: 0 }, [
878
- N(O(r.formatter(P[r.field], P, me)), 1)
879
- ], 64)) : r.controlType === "select" ? (a(), p(G, { key: 1 }, [
880
- N(O(L(P[r.field], (Le = r.controlProps) == null ? void 0 : Le.options)), 1)
881
- ], 64)) : r.controlType === "switch" ? (a(), A(U(il), {
905
+ modelValue: P[c.field],
906
+ "onUpdate:modelValue": (ae) => P[c.field] = ae,
907
+ "active-value": ((Pe = c.controlProps) == null ? void 0 : Pe.activeValue) ?? !0,
908
+ "inactive-value": ((Ie = c.controlProps) == null ? void 0 : Ie.inactiveValue) ?? !1,
909
+ onChange: (ae) => t(me, c.field, P[c.field])
910
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "active-value", "inactive-value", "onChange"])) : q("", !0)
911
+ ], 64)) : (a(), g(G, { key: 2 }, [
912
+ c.formatter ? (a(), g(G, { key: 0 }, [
913
+ N(O(c.formatter(P[c.field], P, me)), 1)
914
+ ], 64)) : c.controlType === "select" ? (a(), g(G, { key: 1 }, [
915
+ N(O(L(P[c.field], (Le = c.controlProps) == null ? void 0 : Le.options)), 1)
916
+ ], 64)) : c.controlType === "switch" ? (a(), A(U(il), {
882
917
  key: 2,
883
- type: P[r.field] === (((Me = r.controlProps) == null ? void 0 : Me.activeValue) ?? !0) ? "success" : "info",
918
+ type: P[c.field] === (((Me = c.controlProps) == null ? void 0 : Me.activeValue) ?? !0) ? "success" : "info",
884
919
  size: "small"
885
920
  }, {
886
- default: u(() => {
921
+ default: i(() => {
887
922
  var ae, Ne, Oe;
888
923
  return [
889
- N(O(P[r.field] === (((ae = r.controlProps) == null ? void 0 : ae.activeValue) ?? !0) ? ((Ne = r.controlProps) == null ? void 0 : Ne.activeText) || "是" : ((Oe = r.controlProps) == null ? void 0 : Oe.inactiveText) || "否"), 1)
924
+ N(O(P[c.field] === (((ae = c.controlProps) == null ? void 0 : ae.activeValue) ?? !0) ? ((Ne = c.controlProps) == null ? void 0 : Ne.activeText) || "是" : ((Oe = c.controlProps) == null ? void 0 : Oe.inactiveText) || "否"), 1)
890
925
  ];
891
926
  }),
892
927
  _: 2
893
- }, 1032, ["type"])) : (a(), p(G, { key: 3 }, [
894
- N(O(P[r.field]), 1)
928
+ }, 1032, ["type"])) : (a(), g(G, { key: 3 }, [
929
+ N(O(P[c.field]), 1)
895
930
  ], 64))
896
931
  ], 64))
897
932
  ];
@@ -901,15 +936,15 @@ const Bl = /* @__PURE__ */ ee({
901
936
  ]),
902
937
  _: 3
903
938
  }, 8, ["data", "height", "max-height", "stripe", "border", "empty-text", "highlight-current-row"]),
904
- g.value ? (a(), p("div", Ll, O(g.value), 1)) : W("", !0)
939
+ h.value ? (a(), g("div", Ml, O(h.value), 1)) : q("", !0)
905
940
  ]));
906
941
  }
907
- }), xe = (e, F) => {
908
- const z = e.__vccOpts || e;
909
- for (const [t, o] of F)
910
- z[t] = o;
911
- return z;
912
- }, so = /* @__PURE__ */ xe(Ml, [["__scopeId", "data-v-8ce855eb"]]), uo = /* @__PURE__ */ ee({
942
+ }), xe = (e, E) => {
943
+ const T = e.__vccOpts || e;
944
+ for (const [l, o] of E)
945
+ T[l] = o;
946
+ return T;
947
+ }, io = /* @__PURE__ */ xe(Nl, [["__scopeId", "data-v-8ce855eb"]]), ro = /* @__PURE__ */ ee({
913
948
  __name: "base-textarea",
914
949
  props: {
915
950
  modelValue: {},
@@ -925,21 +960,21 @@ const Bl = /* @__PURE__ */ ee({
925
960
  showCount: { type: Boolean, default: !1 }
926
961
  },
927
962
  emits: ["update:modelValue", "input", "change", "focus", "blur"],
928
- setup(e, { expose: F, emit: z }) {
929
- const t = e, o = z, c = T(), i = q({
930
- get: () => t.modelValue ?? "",
963
+ setup(e, { expose: E, emit: T }) {
964
+ const l = e, o = T, r = D(), u = W({
965
+ get: () => l.modelValue ?? "",
931
966
  set: (s) => o("update:modelValue", s)
932
967
  }), v = (s) => {
933
968
  o("input", s);
934
- }, g = (s) => {
969
+ }, h = (s) => {
935
970
  o("change", s);
936
- }, m = (s) => {
971
+ }, p = (s) => {
937
972
  o("focus", s);
938
973
  }, y = (s) => {
939
974
  o("blur", s);
940
975
  };
941
- return F({
942
- getValue: () => t.modelValue ?? "",
976
+ return E({
977
+ getValue: () => l.modelValue ?? "",
943
978
  setValue: (s) => {
944
979
  o("update:modelValue", s);
945
980
  },
@@ -948,19 +983,19 @@ const Bl = /* @__PURE__ */ ee({
948
983
  },
949
984
  focus: () => {
950
985
  var s;
951
- (s = c.value) == null || s.focus();
986
+ (s = r.value) == null || s.focus();
952
987
  },
953
988
  blur: () => {
954
989
  var s;
955
- (s = c.value) == null || s.blur();
990
+ (s = r.value) == null || s.blur();
956
991
  },
957
- getLength: () => (t.modelValue || "").length,
958
- getField: () => t.field ?? ""
959
- }), (s, l) => (a(), A(U(We), {
992
+ getLength: () => (l.modelValue || "").length,
993
+ getField: () => l.field ?? ""
994
+ }), (s, t) => (a(), A(U(We), {
960
995
  ref_key: "textareaRef",
961
- ref: c,
962
- modelValue: i.value,
963
- "onUpdate:modelValue": l[0] || (l[0] = (k) => i.value = k),
996
+ ref: r,
997
+ modelValue: u.value,
998
+ "onUpdate:modelValue": t[0] || (t[0] = (C) => u.value = C),
964
999
  type: "textarea",
965
1000
  placeholder: e.placeholder,
966
1001
  disabled: e.disabled,
@@ -972,23 +1007,23 @@ const Bl = /* @__PURE__ */ ee({
972
1007
  resize: e.resize,
973
1008
  "show-word-limit": e.showCount,
974
1009
  onInput: v,
975
- onChange: g,
976
- onFocus: m,
1010
+ onChange: h,
1011
+ onFocus: p,
977
1012
  onBlur: y
978
1013
  }, null, 8, ["modelValue", "placeholder", "disabled", "readonly", "maxlength", "minlength", "rows", "autosize", "resize", "show-word-limit"]));
979
1014
  }
980
1015
  }), Te = "__portalUiHttp__", Ge = "__portalUiLogoutToAuth__";
981
- function io(e, F) {
982
- window[Te] = e, F && (window[Ge] = F);
1016
+ function co(e, E) {
1017
+ window[Te] = e, E && (window[Ge] = E);
983
1018
  }
984
- function ro(e) {
985
- const { http: F, logoutToAuth: z } = Vl({
1019
+ function fo(e) {
1020
+ const { http: E, logoutToAuth: T } = kl({
986
1021
  baseURL: e.baseURL || "",
987
1022
  getUserStore: e.getUserStore,
988
1023
  getLoadingStore: e.getLoadingStore,
989
1024
  onShowError: e.onShowError
990
1025
  });
991
- return window[Te] = F, window[Ge] = z, { http: F, logoutToAuth: z };
1026
+ return window[Te] = E, window[Ge] = T, { http: E, logoutToAuth: T };
992
1027
  }
993
1028
  function he() {
994
1029
  const e = window[Te];
@@ -1006,63 +1041,63 @@ const we = {
1006
1041
  lockScroll: !1,
1007
1042
  // 不隐藏父页面滚动条
1008
1043
  customClass: "base-message-box"
1009
- }, Nl = () => ({
1010
- confirm: (v, g = "确认", m) => _e.confirm(v, g, {
1044
+ }, Ol = () => ({
1045
+ confirm: (v, h = "确认", p) => _e.confirm(v, h, {
1011
1046
  ...we,
1012
1047
  type: "warning",
1013
1048
  customClass: "base-message-box base-message-box--warning",
1014
- ...m
1049
+ ...p
1015
1050
  }),
1016
- alert: (v, g = "提示", m) => _e.alert(v, g, {
1051
+ alert: (v, h = "提示", p) => _e.alert(v, h, {
1017
1052
  ...we,
1018
1053
  type: "info",
1019
1054
  customClass: "base-message-box base-message-box--info",
1020
- ...m
1055
+ ...p
1021
1056
  }),
1022
- success: (v, g = "成功", m) => _e.alert(v, g, {
1057
+ success: (v, h = "成功", p) => _e.alert(v, h, {
1023
1058
  ...we,
1024
1059
  type: "success",
1025
1060
  customClass: "base-message-box base-message-box--success",
1026
- ...m
1061
+ ...p
1027
1062
  }),
1028
- error: (v, g = "错误", m) => _e.alert(v, g, {
1063
+ error: (v, h = "错误", p) => _e.alert(v, h, {
1029
1064
  ...we,
1030
1065
  type: "error",
1031
1066
  customClass: "base-message-box base-message-box--error",
1032
- ...m
1067
+ ...p
1033
1068
  }),
1034
- warning: (v, g = "提示", m) => _e.alert(v, g, {
1069
+ warning: (v, h = "提示", p) => _e.alert(v, h, {
1035
1070
  ...we,
1036
1071
  type: "warning",
1037
1072
  customClass: "base-message-box base-message-box--warning",
1038
- ...m
1073
+ ...p
1039
1074
  }),
1040
- prompt: (v, g = "输入", m) => _e.prompt(v, g, {
1075
+ prompt: (v, h = "输入", p) => _e.prompt(v, h, {
1041
1076
  ...we,
1042
1077
  customClass: "base-message-box base-message-box--prompt",
1043
1078
  inputPlaceholder: "请输入内容",
1044
- ...m
1079
+ ...p
1045
1080
  }),
1046
- confirmDelete: (v = "确定要删除吗?删除后无法恢复。", g = "删除确认") => _e.confirm(v, g, {
1081
+ confirmDelete: (v = "确定要删除吗?删除后无法恢复。", h = "删除确认") => _e.confirm(v, h, {
1047
1082
  ...we,
1048
1083
  type: "error",
1049
1084
  confirmButtonText: "删除",
1050
1085
  customClass: "base-message-box base-message-box--delete",
1051
1086
  confirmButtonClass: "el-button--danger"
1052
1087
  })
1053
- }), Ol = { class: "base-upload" }, Hl = { class: "upload-toolbar" }, jl = { class: "upload-dialog-header" }, Kl = {
1088
+ }), Hl = { class: "base-upload" }, jl = { class: "upload-toolbar" }, Kl = { class: "upload-dialog-header" }, Yl = {
1054
1089
  key: 0,
1055
1090
  class: "pending-file-list"
1056
- }, Yl = { class: "progress-cell" }, Wl = {
1091
+ }, Wl = { class: "progress-cell" }, ql = {
1057
1092
  key: 1,
1058
1093
  class: "status-success"
1059
- }, ql = {
1094
+ }, Gl = {
1060
1095
  key: 2,
1061
1096
  class: "status-uploading"
1062
- }, Gl = {
1097
+ }, Xl = {
1063
1098
  key: 3,
1064
1099
  class: "status-error"
1065
- }, Xl = { class: "dropzone-content" }, Jl = { class: "dropzone-icon" }, Ql = { class: "dropzone-tips" }, Zl = { class: "tips-main" }, et = { class: "dialog-footer" }, co = /* @__PURE__ */ ee({
1100
+ }, Jl = { class: "dropzone-content" }, Ql = { class: "dropzone-icon" }, Zl = { class: "dropzone-tips" }, et = { class: "tips-main" }, lt = { class: "dialog-footer" }, mo = /* @__PURE__ */ ee({
1066
1101
  __name: "base-upload",
1067
1102
  props: {
1068
1103
  modelValue: { default: () => [] },
@@ -1075,21 +1110,21 @@ const we = {
1075
1110
  attachTypes: { default: () => [] }
1076
1111
  },
1077
1112
  emits: ["update:modelValue", "upload-success", "upload-error"],
1078
- setup(e, { expose: F, emit: z }) {
1079
- const t = he(), { warning: o } = Nl(), c = e, i = z, v = T(!1), g = T(!1), m = T([]), y = T(), E = T(), B = T([]), h = q({
1080
- get: () => c.modelValue,
1081
- set: (D) => i("update:modelValue", D)
1082
- }), x = q(() => c.attachTypes && c.attachTypes.length > 0), S = q(() => {
1083
- if (!x.value)
1084
- return h.value;
1085
- const D = [];
1086
- c.attachTypes.forEach((j) => {
1087
- const Z = h.value.filter(
1088
- (f) => f.attach_category === j.key || f.attach_category === j.value
1113
+ setup(e, { expose: E, emit: T }) {
1114
+ const l = he(), { warning: o } = Ol(), r = e, u = T, v = D(!1), h = D(!1), p = D([]), y = D(), $ = D(), k = D([]), f = W({
1115
+ get: () => r.modelValue,
1116
+ set: (S) => u("update:modelValue", S)
1117
+ }), w = W(() => r.attachTypes && r.attachTypes.length > 0), z = W(() => {
1118
+ if (!w.value)
1119
+ return f.value;
1120
+ const S = [];
1121
+ r.attachTypes.forEach((j) => {
1122
+ const Z = f.value.filter(
1123
+ (m) => m.attach_category === j.key || m.attach_category === j.value
1089
1124
  );
1090
- Z.length > 0 ? Z.forEach((f) => {
1091
- D.push(f);
1092
- }) : D.push({
1125
+ Z.length > 0 ? Z.forEach((m) => {
1126
+ S.push(m);
1127
+ }) : S.push({
1093
1128
  _isPlaceholder: !0,
1094
1129
  attach_category: j.value,
1095
1130
  file_name: "",
@@ -1099,83 +1134,83 @@ const we = {
1099
1134
  creation_date: ""
1100
1135
  });
1101
1136
  });
1102
- const w = c.attachTypes.map((j) => j.key), _ = c.attachTypes.map((j) => j.value);
1103
- return h.value.filter(
1104
- (j) => !j.attach_category || !w.includes(j.attach_category) && !_.includes(j.attach_category)
1137
+ const V = r.attachTypes.map((j) => j.key), _ = r.attachTypes.map((j) => j.value);
1138
+ return f.value.filter(
1139
+ (j) => !j.attach_category || !V.includes(j.attach_category) && !_.includes(j.attach_category)
1105
1140
  ).forEach((j) => {
1106
- D.push(j);
1107
- }), D;
1108
- }), L = (D) => !D._isPlaceholder;
1141
+ S.push(j);
1142
+ }), S;
1143
+ }), L = (S) => !S._isPlaceholder;
1109
1144
  De(() => {
1110
- c.procBid && K();
1111
- }), Ce(() => c.procBid, (D) => {
1112
- D && K();
1145
+ r.procBid && K();
1146
+ }), Ce(() => r.procBid, (S) => {
1147
+ S && K();
1113
1148
  });
1114
1149
  function K() {
1115
- c.procBid && t.get(`/proxy/wf/attachment/api/list/${c.procBid}`).then((D) => {
1116
- D.code === 200 && (h.value = D.data || []);
1150
+ r.procBid && l.get(`/proxy/wf/attachment/api/list/${r.procBid}`).then((S) => {
1151
+ S.code === 200 && (f.value = S.data || []);
1117
1152
  });
1118
1153
  }
1119
- const s = (D) => {
1154
+ const s = (S) => {
1120
1155
  var _;
1121
- return ((_ = D.split(".").pop()) == null ? void 0 : _.toLowerCase()) || "";
1122
- }, l = (D) => {
1123
- if (D === 0) return "0 B";
1124
- const w = 1024, _ = ["B", "KB", "MB", "GB"], Y = Math.floor(Math.log(D) / Math.log(w));
1125
- return parseFloat((D / Math.pow(w, Y)).toFixed(1)) + " " + _[Y];
1126
- }, k = () => Date.now().toString(36) + Math.random().toString(36).substr(2), b = (D) => {
1127
- if (!D) return "";
1128
- if (c.attachTypes) {
1129
- const w = c.attachTypes.find((_) => _.key === D);
1130
- if (w) return w.value;
1156
+ return ((_ = S.split(".").pop()) == null ? void 0 : _.toLowerCase()) || "";
1157
+ }, t = (S) => {
1158
+ if (S === 0) return "0 B";
1159
+ const V = 1024, _ = ["B", "KB", "MB", "GB"], Y = Math.floor(Math.log(S) / Math.log(V));
1160
+ return parseFloat((S / Math.pow(V, Y)).toFixed(1)) + " " + _[Y];
1161
+ }, C = () => Date.now().toString(36) + Math.random().toString(36).substr(2), b = (S) => {
1162
+ if (!S) return "";
1163
+ if (r.attachTypes) {
1164
+ const V = r.attachTypes.find((_) => _.key === S);
1165
+ if (V) return V.value;
1131
1166
  }
1132
- return D;
1167
+ return S;
1133
1168
  }, X = () => {
1134
- m.value = [], v.value = !0;
1169
+ p.value = [], v.value = !0;
1135
1170
  }, M = () => {
1136
- var D;
1137
- (D = y.value) == null || D.click();
1138
- }, oe = (D) => {
1139
- const w = D.target;
1140
- w.files && se(Array.from(w.files)), w.value = "";
1141
- }, de = (D) => {
1171
+ var S;
1172
+ (S = y.value) == null || S.click();
1173
+ }, oe = (S) => {
1174
+ const V = S.target;
1175
+ V.files && se(Array.from(V.files)), V.value = "";
1176
+ }, de = (S) => {
1142
1177
  var _;
1143
- const w = (_ = D.dataTransfer) == null ? void 0 : _.files;
1144
- w && se(Array.from(w));
1145
- }, se = (D) => {
1146
- for (const w of D) {
1147
- if (w.size > c.maxSize * 1024 * 1024) {
1148
- console.warn(`文件 ${w.name} 超过最大限制 ${c.maxSize}MB`);
1178
+ const V = (_ = S.dataTransfer) == null ? void 0 : _.files;
1179
+ V && se(Array.from(V));
1180
+ }, se = (S) => {
1181
+ for (const V of S) {
1182
+ if (V.size > r.maxSize * 1024 * 1024) {
1183
+ console.warn(`文件 ${V.name} 超过最大限制 ${r.maxSize}MB`);
1149
1184
  continue;
1150
1185
  }
1151
- m.value.push({
1152
- uid: k(),
1153
- name: w.name,
1154
- size: w.size,
1155
- raw: w,
1186
+ p.value.push({
1187
+ uid: C(),
1188
+ name: V.name,
1189
+ size: V.size,
1190
+ raw: V,
1156
1191
  progress: 0,
1157
1192
  status: "ready",
1158
1193
  attachType: ""
1159
1194
  });
1160
1195
  }
1161
- }, pe = (D) => {
1162
- m.value.splice(D, 1);
1196
+ }, pe = (S) => {
1197
+ p.value.splice(S, 1);
1163
1198
  };
1164
1199
  function fe() {
1165
- if (m.value.length === 0) return;
1166
- if (!c.formBid) {
1200
+ if (p.value.length === 0) return;
1201
+ if (!r.formBid) {
1167
1202
  console.error("表单业务ID不能为空");
1168
1203
  return;
1169
1204
  }
1170
- g.value = !0;
1171
- const D = m.value.filter((_) => _.status === "ready");
1172
- let w = 0;
1173
- D.forEach((_) => {
1205
+ h.value = !0;
1206
+ const S = p.value.filter((_) => _.status === "ready");
1207
+ let V = 0;
1208
+ S.forEach((_) => {
1174
1209
  _.status = "uploading";
1175
1210
  const Y = new FormData();
1176
- Y.append("file", _.raw), Y.append("formBid", c.formBid), Y.append("procBid", c.procBid || "");
1177
- const j = _.attachType || c.attachCategory;
1178
- Y.append("attachCategory", j), t.post("/proxy/wf/attachment/api/upload", Y, {
1211
+ Y.append("file", _.raw), Y.append("formBid", r.formBid), Y.append("procBid", r.procBid || "");
1212
+ const j = _.attachType || r.attachCategory;
1213
+ Y.append("attachCategory", j), l.post("/proxy/wf/attachment/api/upload", Y, {
1179
1214
  headers: { "Content-Type": "multipart/form-data" },
1180
1215
  onUploadProgress: (Z) => {
1181
1216
  Z.total && (_.progress = Math.round(Z.loaded / Z.total * 100));
@@ -1183,71 +1218,71 @@ const we = {
1183
1218
  }).then((Z) => {
1184
1219
  if (Z.code === 200) {
1185
1220
  _.status = "success", _.progress = 100;
1186
- const f = Z.data;
1187
- !f.attach_category && _.attachType && (f.attach_category = _.attachType), h.value = [...h.value, f], i("upload-success", f);
1221
+ const m = Z.data;
1222
+ !m.attach_category && _.attachType && (m.attach_category = _.attachType), f.value = [...f.value, m], u("upload-success", m);
1188
1223
  } else
1189
- _.status = "error", i("upload-error", new Error(Z.message || "上传失败"));
1224
+ _.status = "error", u("upload-error", new Error(Z.message || "上传失败"));
1190
1225
  }).catch((Z) => {
1191
- _.status = "error", i("upload-error", Z);
1226
+ _.status = "error", u("upload-error", Z);
1192
1227
  }).finally(() => {
1193
- w++, w === D.length && (g.value = !1, m.value.every((f) => f.status === "success") && setTimeout(() => {
1228
+ V++, V === S.length && (h.value = !1, p.value.every((m) => m.status === "success") && setTimeout(() => {
1194
1229
  v.value = !1;
1195
1230
  }, 1e3));
1196
1231
  });
1197
1232
  });
1198
1233
  }
1199
1234
  const re = ["png", "jpg", "jpeg", "gif", "bmp", "webp", "pdf", "doc", "docx", "xls", "xlsx"];
1200
- function te(D) {
1201
- return re.includes(D.toLowerCase());
1235
+ function te(S) {
1236
+ return re.includes(S.toLowerCase());
1202
1237
  }
1203
- function ve(D) {
1204
- if (!te(D.file_ext)) {
1205
- o(`该文件类型(.${D.file_ext})不支持在线预览,请下载后查看。`, "提示");
1238
+ function ve(S) {
1239
+ if (!te(S.file_ext)) {
1240
+ o(`该文件类型(.${S.file_ext})不支持在线预览,请下载后查看。`, "提示");
1206
1241
  return;
1207
1242
  }
1208
- const _ = `${window.location.pathname}#/workflow/file-preview/${D.fid}?name=${encodeURIComponent(D.file_name)}&ext=${encodeURIComponent(D.file_ext)}`;
1243
+ const _ = `${window.location.pathname}#/workflow/file-preview/${S.fid}?name=${encodeURIComponent(S.file_name)}&ext=${encodeURIComponent(S.file_ext)}`;
1209
1244
  window.open(_, "_blank");
1210
1245
  }
1211
- function $(D) {
1212
- t.get(`/proxy/wf/attachment/api/download/${D.fid}`, {
1246
+ function F(S) {
1247
+ l.get(`/proxy/wf/attachment/api/download/${S.fid}`, {
1213
1248
  responseType: "blob"
1214
- }).then((w) => {
1215
- const _ = window.URL.createObjectURL(new Blob([w])), Y = document.createElement("a");
1216
- Y.href = _, Y.setAttribute("download", D.file_name), document.body.appendChild(Y), Y.click(), document.body.removeChild(Y), window.URL.revokeObjectURL(_);
1217
- }).catch((w) => {
1218
- console.error("下载失败:", w);
1249
+ }).then((V) => {
1250
+ const _ = window.URL.createObjectURL(new Blob([V])), Y = document.createElement("a");
1251
+ Y.href = _, Y.setAttribute("download", S.file_name), document.body.appendChild(Y), Y.click(), document.body.removeChild(Y), window.URL.revokeObjectURL(_);
1252
+ }).catch((V) => {
1253
+ console.error("下载失败:", V);
1219
1254
  });
1220
1255
  }
1221
- function R(D) {
1222
- B.value = D.filter((w) => !w._isPlaceholder);
1256
+ function R(S) {
1257
+ k.value = S.filter((V) => !V._isPlaceholder);
1223
1258
  }
1224
1259
  function J() {
1225
- if (B.value.length === 0) {
1260
+ if (k.value.length === 0) {
1226
1261
  o("请先选择要下载的文件");
1227
1262
  return;
1228
1263
  }
1229
- const D = B.value.map((w) => w.fid);
1230
- t.post("/proxy/wf/attachment/api/batch_download", { fids: D }, {
1264
+ const S = k.value.map((V) => V.fid);
1265
+ l.post("/proxy/wf/attachment/api/batch_download", { fids: S }, {
1231
1266
  responseType: "blob"
1232
- }).then((w) => {
1233
- const _ = window.URL.createObjectURL(new Blob([w])), Y = document.createElement("a");
1267
+ }).then((V) => {
1268
+ const _ = window.URL.createObjectURL(new Blob([V])), Y = document.createElement("a");
1234
1269
  Y.href = _;
1235
1270
  const j = `attachments_${(/* @__PURE__ */ new Date()).toISOString().slice(0, 10).replace(/-/g, "")}.zip`;
1236
1271
  Y.setAttribute("download", j), document.body.appendChild(Y), Y.click(), document.body.removeChild(Y), window.URL.revokeObjectURL(_);
1237
- }).catch((w) => {
1238
- console.error("批量下载失败:", w), o("批量下载失败,请稍后重试");
1272
+ }).catch((V) => {
1273
+ console.error("批量下载失败:", V), o("批量下载失败,请稍后重试");
1239
1274
  });
1240
1275
  }
1241
- function ce(D) {
1242
- const w = S.value[D];
1243
- if (!w || w._isPlaceholder) return;
1244
- const _ = h.value.findIndex((j) => j.fid === w.fid);
1276
+ function ce(S) {
1277
+ const V = z.value[S];
1278
+ if (!V || V._isPlaceholder) return;
1279
+ const _ = f.value.findIndex((j) => j.fid === V.fid);
1245
1280
  if (_ === -1) return;
1246
- const Y = h.value[_];
1247
- t.delete(`/proxy/wf/attachment/api/delete/${Y.fid}`).then((j) => {
1281
+ const Y = f.value[_];
1282
+ l.delete(`/proxy/wf/attachment/api/delete/${Y.fid}`).then((j) => {
1248
1283
  if (j.code === 200) {
1249
- const Z = [...h.value];
1250
- Z.splice(_, 1), h.value = Z;
1284
+ const Z = [...f.value];
1285
+ Z.splice(_, 1), f.value = Z;
1251
1286
  } else
1252
1287
  console.error("删除失败:", j.message);
1253
1288
  });
@@ -1255,55 +1290,55 @@ const we = {
1255
1290
  function ge() {
1256
1291
  K();
1257
1292
  }
1258
- return F({
1293
+ return E({
1259
1294
  openUploadDialog: X,
1260
1295
  refresh: ge,
1261
- tableRef: E,
1262
- getSelectedFiles: () => B.value
1263
- }), (D, w) => {
1264
- const _ = I("el-icon"), Y = I("el-button"), j = I("el-table-column"), Z = I("el-link"), f = I("el-table"), H = I("el-option"), ue = I("el-select"), le = I("el-progress"), V = I("el-dialog");
1265
- return a(), p("div", Ol, [
1266
- d("div", Hl, [
1296
+ tableRef: $,
1297
+ getSelectedFiles: () => k.value
1298
+ }), (S, V) => {
1299
+ const _ = I("el-icon"), Y = I("el-button"), j = I("el-table-column"), Z = I("el-link"), m = I("el-table"), H = I("el-option"), ue = I("el-select"), le = I("el-progress"), x = I("el-dialog");
1300
+ return a(), g("div", Hl, [
1301
+ d("div", jl, [
1267
1302
  n(Y, {
1268
1303
  onClick: X,
1269
1304
  disabled: e.disabled
1270
1305
  }, {
1271
- default: u(() => [
1306
+ default: i(() => [
1272
1307
  n(_, null, {
1273
- default: u(() => [
1308
+ default: i(() => [
1274
1309
  n(U(dl))
1275
1310
  ]),
1276
1311
  _: 1
1277
1312
  }),
1278
- w[3] || (w[3] = N(" 上传 ", -1))
1313
+ V[3] || (V[3] = N(" 上传 ", -1))
1279
1314
  ]),
1280
1315
  _: 1
1281
1316
  }, 8, ["disabled"]),
1282
1317
  n(Y, {
1283
1318
  onClick: J,
1284
- disabled: B.value.length === 0
1319
+ disabled: k.value.length === 0
1285
1320
  }, {
1286
- default: u(() => [
1321
+ default: i(() => [
1287
1322
  n(_, null, {
1288
- default: u(() => [
1323
+ default: i(() => [
1289
1324
  n(U(rl))
1290
1325
  ]),
1291
1326
  _: 1
1292
1327
  }),
1293
- w[4] || (w[4] = N(" 批量下载 ", -1))
1328
+ V[4] || (V[4] = N(" 批量下载 ", -1))
1294
1329
  ]),
1295
1330
  _: 1
1296
1331
  }, 8, ["disabled"])
1297
1332
  ]),
1298
- n(f, {
1333
+ n(m, {
1299
1334
  ref_key: "tableRef",
1300
- ref: E,
1301
- data: S.value,
1335
+ ref: $,
1336
+ data: z.value,
1302
1337
  border: "",
1303
1338
  class: "upload-table",
1304
1339
  onSelectionChange: R
1305
1340
  }, {
1306
- default: u(() => [
1341
+ default: i(() => [
1307
1342
  n(j, {
1308
1343
  type: "selection",
1309
1344
  width: "60",
@@ -1320,26 +1355,26 @@ const we = {
1320
1355
  width: "120",
1321
1356
  align: "center"
1322
1357
  }, {
1323
- default: u((C) => [
1324
- !C || !C.row || C.row._isPlaceholder ? (a(), p(G, { key: 0 }, [], 64)) : (a(), p(G, { key: 1 }, [
1358
+ default: i((B) => [
1359
+ !B || !B.row || B.row._isPlaceholder ? (a(), g(G, { key: 0 }, [], 64)) : (a(), g(G, { key: 1 }, [
1325
1360
  n(Z, {
1326
1361
  type: "primary",
1327
1362
  underline: "never",
1328
- onClick: (r) => ve(C.row)
1363
+ onClick: (c) => ve(B.row)
1329
1364
  }, {
1330
- default: u(() => [...w[5] || (w[5] = [
1365
+ default: i(() => [...V[5] || (V[5] = [
1331
1366
  N("预览", -1)
1332
1367
  ])]),
1333
1368
  _: 1
1334
1369
  }, 8, ["onClick"]),
1335
- e.disabled ? W("", !0) : (a(), A(Z, {
1370
+ e.disabled ? q("", !0) : (a(), A(Z, {
1336
1371
  key: 0,
1337
1372
  type: "primary",
1338
1373
  underline: "never",
1339
- onClick: (r) => ce(C.$index),
1374
+ onClick: (c) => ce(B.$index),
1340
1375
  style: { "margin-left": "10px" }
1341
1376
  }, {
1342
- default: u(() => [...w[6] || (w[6] = [
1377
+ default: i(() => [...V[6] || (V[6] = [
1343
1378
  N("删除", -1)
1344
1379
  ])]),
1345
1380
  _: 1
@@ -1348,30 +1383,30 @@ const we = {
1348
1383
  ]),
1349
1384
  _: 1
1350
1385
  }),
1351
- x.value ? (a(), A(j, {
1386
+ w.value ? (a(), A(j, {
1352
1387
  key: 0,
1353
1388
  label: "附件类型",
1354
1389
  width: "240",
1355
1390
  align: "center"
1356
1391
  }, {
1357
- default: u((C) => [
1358
- N(O(C && C.row ? b(C.row.attach_category) : ""), 1)
1392
+ default: i((B) => [
1393
+ N(O(B && B.row ? b(B.row.attach_category) : ""), 1)
1359
1394
  ]),
1360
1395
  _: 1
1361
- })) : W("", !0),
1396
+ })) : q("", !0),
1362
1397
  n(j, {
1363
1398
  label: "附件名称",
1364
1399
  "min-width": "300"
1365
1400
  }, {
1366
- default: u((C) => [
1367
- !C || !C.row || C.row._isPlaceholder ? (a(), p(G, { key: 0 }, [], 64)) : (a(), A(Z, {
1401
+ default: i((B) => [
1402
+ !B || !B.row || B.row._isPlaceholder ? (a(), g(G, { key: 0 }, [], 64)) : (a(), A(Z, {
1368
1403
  key: 1,
1369
1404
  type: "primary",
1370
1405
  underline: "never",
1371
- onClick: (r) => $(C.row)
1406
+ onClick: (c) => F(B.row)
1372
1407
  }, {
1373
- default: u(() => [
1374
- N(O(C.row.file_name), 1)
1408
+ default: i(() => [
1409
+ N(O(B.row.file_name), 1)
1375
1410
  ]),
1376
1411
  _: 2
1377
1412
  }, 1032, ["onClick"]))
@@ -1403,34 +1438,34 @@ const we = {
1403
1438
  ]),
1404
1439
  _: 1
1405
1440
  }, 8, ["data"]),
1406
- n(V, {
1441
+ n(x, {
1407
1442
  modelValue: v.value,
1408
- "onUpdate:modelValue": w[2] || (w[2] = (C) => v.value = C),
1443
+ "onUpdate:modelValue": V[2] || (V[2] = (B) => v.value = B),
1409
1444
  width: "900px",
1410
1445
  "close-on-click-modal": !1,
1411
1446
  "show-close": !1,
1412
1447
  class: "upload-dialog"
1413
1448
  }, {
1414
- header: u(() => [
1415
- d("div", jl, [
1416
- w[7] || (w[7] = d("span", { class: "upload-dialog-title" }, "上传附件", -1)),
1449
+ header: i(() => [
1450
+ d("div", Kl, [
1451
+ V[7] || (V[7] = d("span", { class: "upload-dialog-title" }, "上传附件", -1)),
1417
1452
  d("button", {
1418
1453
  class: "upload-dialog-close",
1419
- onClick: w[0] || (w[0] = (C) => v.value = !1)
1454
+ onClick: V[0] || (V[0] = (B) => v.value = !1)
1420
1455
  }, [
1421
1456
  n(_, null, {
1422
- default: u(() => [
1423
- n(U(Ve))
1457
+ default: i(() => [
1458
+ n(U(ke))
1424
1459
  ]),
1425
1460
  _: 1
1426
1461
  })
1427
1462
  ])
1428
1463
  ])
1429
1464
  ]),
1430
- footer: u(() => [
1431
- d("div", et, [
1465
+ footer: i(() => [
1466
+ d("div", lt, [
1432
1467
  n(Y, { onClick: M }, {
1433
- default: u(() => [...w[15] || (w[15] = [
1468
+ default: i(() => [...V[15] || (V[15] = [
1434
1469
  N("添加文件", -1)
1435
1470
  ])]),
1436
1471
  _: 1
@@ -1438,52 +1473,52 @@ const we = {
1438
1473
  n(Y, {
1439
1474
  type: "primary",
1440
1475
  onClick: fe,
1441
- loading: g.value
1476
+ loading: h.value
1442
1477
  }, {
1443
- default: u(() => [...w[16] || (w[16] = [
1478
+ default: i(() => [...V[16] || (V[16] = [
1444
1479
  N("开始上传", -1)
1445
1480
  ])]),
1446
1481
  _: 1
1447
1482
  }, 8, ["loading"])
1448
1483
  ])
1449
1484
  ]),
1450
- default: u(() => [
1451
- m.value.length > 0 ? (a(), p("div", Kl, [
1452
- (a(!0), p(G, null, ne(m.value, (C, r) => (a(), p("div", {
1453
- key: C.uid,
1485
+ default: i(() => [
1486
+ p.value.length > 0 ? (a(), g("div", Yl, [
1487
+ (a(!0), g(G, null, ne(p.value, (B, c) => (a(), g("div", {
1488
+ key: B.uid,
1454
1489
  class: "pending-file-item"
1455
1490
  }, [
1456
- x.value ? (a(), A(f, {
1491
+ w.value ? (a(), A(m, {
1457
1492
  key: 0,
1458
- data: [C],
1493
+ data: [B],
1459
1494
  border: "",
1460
1495
  "show-header": !1
1461
1496
  }, {
1462
- default: u(() => [
1497
+ default: i(() => [
1463
1498
  n(j, {
1464
1499
  label: "附件类型",
1465
1500
  width: "100"
1466
1501
  }, {
1467
- default: u(() => [...w[8] || (w[8] = [
1502
+ default: i(() => [...V[8] || (V[8] = [
1468
1503
  N("附件类型", -1)
1469
1504
  ])]),
1470
1505
  _: 1
1471
1506
  }),
1472
1507
  n(j, null, {
1473
- default: u(() => [
1508
+ default: i(() => [
1474
1509
  n(ue, {
1475
- modelValue: C.attachType,
1476
- "onUpdate:modelValue": (P) => C.attachType = P,
1510
+ modelValue: B.attachType,
1511
+ "onUpdate:modelValue": (P) => B.attachType = P,
1477
1512
  placeholder: "--请选择--",
1478
1513
  clearable: "",
1479
1514
  style: { width: "100%" }
1480
1515
  }, {
1481
- default: u(() => [
1516
+ default: i(() => [
1482
1517
  n(H, {
1483
1518
  label: "--请选择--",
1484
1519
  value: ""
1485
1520
  }),
1486
- (a(!0), p(G, null, ne(e.attachTypes, (P) => (a(), A(H, {
1521
+ (a(!0), g(G, null, ne(e.attachTypes, (P) => (a(), A(H, {
1487
1522
  key: P.key,
1488
1523
  label: P.value,
1489
1524
  value: P.key
@@ -1496,113 +1531,113 @@ const we = {
1496
1531
  }, 1024)
1497
1532
  ]),
1498
1533
  _: 2
1499
- }, 1032, ["data"])) : W("", !0),
1500
- n(f, {
1501
- data: [C],
1534
+ }, 1032, ["data"])) : q("", !0),
1535
+ n(m, {
1536
+ data: [B],
1502
1537
  border: "",
1503
1538
  "show-header": !1
1504
1539
  }, {
1505
- default: u(() => [
1540
+ default: i(() => [
1506
1541
  n(j, {
1507
1542
  label: "文件名称",
1508
1543
  width: "100"
1509
1544
  }, {
1510
- default: u(() => [...w[9] || (w[9] = [
1545
+ default: i(() => [...V[9] || (V[9] = [
1511
1546
  N("文件名称", -1)
1512
1547
  ])]),
1513
1548
  _: 1
1514
1549
  }),
1515
1550
  n(j, null, {
1516
- default: u(() => [
1517
- N(O(C.name), 1)
1551
+ default: i(() => [
1552
+ N(O(B.name), 1)
1518
1553
  ]),
1519
1554
  _: 2
1520
1555
  }, 1024)
1521
1556
  ]),
1522
1557
  _: 2
1523
1558
  }, 1032, ["data"]),
1524
- n(f, {
1525
- data: [C],
1559
+ n(m, {
1560
+ data: [B],
1526
1561
  border: "",
1527
1562
  "show-header": !1
1528
1563
  }, {
1529
- default: u(() => [
1564
+ default: i(() => [
1530
1565
  n(j, {
1531
1566
  label: "文件类型",
1532
1567
  width: "100"
1533
1568
  }, {
1534
- default: u(() => [...w[10] || (w[10] = [
1569
+ default: i(() => [...V[10] || (V[10] = [
1535
1570
  N("文件类型", -1)
1536
1571
  ])]),
1537
1572
  _: 1
1538
1573
  }),
1539
1574
  n(j, null, {
1540
- default: u(() => [
1541
- N(O(s(C.name)), 1)
1575
+ default: i(() => [
1576
+ N(O(s(B.name)), 1)
1542
1577
  ]),
1543
1578
  _: 2
1544
1579
  }, 1024)
1545
1580
  ]),
1546
1581
  _: 2
1547
1582
  }, 1032, ["data"]),
1548
- n(f, {
1549
- data: [C],
1583
+ n(m, {
1584
+ data: [B],
1550
1585
  border: "",
1551
1586
  "show-header": !1
1552
1587
  }, {
1553
- default: u(() => [
1588
+ default: i(() => [
1554
1589
  n(j, {
1555
1590
  label: "文件大小",
1556
1591
  width: "100"
1557
1592
  }, {
1558
- default: u(() => [...w[11] || (w[11] = [
1593
+ default: i(() => [...V[11] || (V[11] = [
1559
1594
  N("文件大小", -1)
1560
1595
  ])]),
1561
1596
  _: 1
1562
1597
  }),
1563
1598
  n(j, null, {
1564
- default: u(() => [
1565
- N(O(l(C.size)), 1)
1599
+ default: i(() => [
1600
+ N(O(t(B.size)), 1)
1566
1601
  ]),
1567
1602
  _: 2
1568
1603
  }, 1024)
1569
1604
  ]),
1570
1605
  _: 2
1571
1606
  }, 1032, ["data"]),
1572
- n(f, {
1573
- data: [C],
1607
+ n(m, {
1608
+ data: [B],
1574
1609
  border: "",
1575
1610
  "show-header": !1
1576
1611
  }, {
1577
- default: u(() => [
1612
+ default: i(() => [
1578
1613
  n(j, {
1579
1614
  label: "进度",
1580
1615
  width: "100"
1581
1616
  }, {
1582
- default: u(() => [...w[12] || (w[12] = [
1617
+ default: i(() => [...V[12] || (V[12] = [
1583
1618
  N("进度", -1)
1584
1619
  ])]),
1585
1620
  _: 1
1586
1621
  }),
1587
1622
  n(j, null, {
1588
- default: u(() => [
1589
- d("div", Yl, [
1623
+ default: i(() => [
1624
+ d("div", Wl, [
1590
1625
  n(le, {
1591
- percentage: C.progress || 0,
1626
+ percentage: B.progress || 0,
1592
1627
  "stroke-width": 20,
1593
1628
  "text-inside": !0
1594
1629
  }, null, 8, ["percentage"]),
1595
- C.status === "ready" ? (a(), A(Z, {
1630
+ B.status === "ready" ? (a(), A(Z, {
1596
1631
  key: 0,
1597
1632
  type: "primary",
1598
1633
  underline: "never",
1599
- onClick: (P) => pe(r)
1634
+ onClick: (P) => pe(c)
1600
1635
  }, {
1601
- default: u(() => [...w[13] || (w[13] = [
1636
+ default: i(() => [...V[13] || (V[13] = [
1602
1637
  N("删除", -1)
1603
1638
  ])]),
1604
1639
  _: 1
1605
- }, 8, ["onClick"])) : C.status === "success" ? (a(), p("span", Wl, "成功")) : C.status === "uploading" ? (a(), p("span", ql, "正在上传")) : C.status === "error" ? (a(), p("span", Gl, "失败")) : W("", !0)
1640
+ }, 8, ["onClick"])) : B.status === "success" ? (a(), g("span", ql, "成功")) : B.status === "uploading" ? (a(), g("span", Gl, "正在上传")) : B.status === "error" ? (a(), g("span", Xl, "失败")) : q("", !0)
1606
1641
  ])
1607
1642
  ]),
1608
1643
  _: 2
@@ -1611,26 +1646,26 @@ const we = {
1611
1646
  _: 2
1612
1647
  }, 1032, ["data"])
1613
1648
  ]))), 128))
1614
- ])) : (a(), p("div", {
1649
+ ])) : (a(), g("div", {
1615
1650
  key: 1,
1616
1651
  class: "upload-dropzone",
1617
1652
  onClick: M,
1618
- onDragover: w[1] || (w[1] = ye(() => {
1653
+ onDragover: V[1] || (V[1] = ye(() => {
1619
1654
  }, ["prevent"])),
1620
1655
  onDrop: ye(de, ["prevent"])
1621
1656
  }, [
1622
- d("div", Xl, [
1623
- d("div", Jl, [
1657
+ d("div", Jl, [
1658
+ d("div", Ql, [
1624
1659
  n(_, { size: 100 }, {
1625
- default: u(() => [
1660
+ default: i(() => [
1626
1661
  n(U(cl))
1627
1662
  ]),
1628
1663
  _: 1
1629
1664
  })
1630
1665
  ]),
1631
- d("div", Ql, [
1632
- d("p", Zl, "建议单个附件不要超过" + O(e.maxSize) + "Mb,最大不能超过" + O(e.maxTotal) + "Mb", 1),
1633
- w[14] || (w[14] = d("p", { class: "tips-security" }, "安全提示:文件若上传,将被公司记录存档", -1))
1666
+ d("div", Zl, [
1667
+ d("p", et, "建议单个附件不要超过" + O(e.maxSize) + "Mb,最大不能超过" + O(e.maxTotal) + "Mb", 1),
1668
+ V[14] || (V[14] = d("p", { class: "tips-security" }, "安全提示:文件若上传,将被公司记录存档", -1))
1634
1669
  ])
1635
1670
  ])
1636
1671
  ], 32)),
@@ -1648,7 +1683,7 @@ const we = {
1648
1683
  ]);
1649
1684
  };
1650
1685
  }
1651
- }), fo = /* @__PURE__ */ ee({
1686
+ }), po = /* @__PURE__ */ ee({
1652
1687
  __name: "base-checkbox",
1653
1688
  props: {
1654
1689
  modelValue: { type: [Array, Boolean, String, Number] },
@@ -1667,48 +1702,48 @@ const we = {
1667
1702
  falseValue: { type: [Boolean, String, Number], default: !1 }
1668
1703
  },
1669
1704
  emits: ["update:modelValue", "change"],
1670
- setup(e, { expose: F, emit: z }) {
1671
- const t = e, o = z, c = q({
1672
- get: () => t.modelValue,
1705
+ setup(e, { expose: E, emit: T }) {
1706
+ const l = e, o = T, r = W({
1707
+ get: () => l.modelValue,
1673
1708
  set: (s) => o("update:modelValue", s)
1674
- }), i = q({
1675
- get: () => Array.isArray(t.modelValue) ? t.modelValue : [],
1709
+ }), u = W({
1710
+ get: () => Array.isArray(l.modelValue) ? l.modelValue : [],
1676
1711
  set: (s) => o("update:modelValue", s)
1677
1712
  }), v = (s) => {
1678
1713
  o("change", s);
1679
- }, g = (s) => {
1714
+ }, h = (s) => {
1680
1715
  o("change", s);
1681
- }, m = () => t.modelValue, y = (s) => {
1716
+ }, p = () => l.modelValue, y = (s) => {
1682
1717
  o("update:modelValue", s);
1683
- }, E = () => Array.isArray(t.modelValue) ? t.modelValue : [], B = () => Array.isArray(t.modelValue) ? t.modelValue.map((s) => t.options.find((l) => l.key === s)).filter(Boolean) : [], h = () => {
1684
- const s = t.options.filter((l) => !l.disabled).map((l) => l.key);
1718
+ }, $ = () => Array.isArray(l.modelValue) ? l.modelValue : [], k = () => Array.isArray(l.modelValue) ? l.modelValue.map((s) => l.options.find((t) => t.key === s)).filter(Boolean) : [], f = () => {
1719
+ const s = l.options.filter((t) => !t.disabled).map((t) => t.key);
1685
1720
  o("update:modelValue", s);
1686
- }, x = () => {
1687
- t.single ? o("update:modelValue", t.falseValue) : o("update:modelValue", []);
1688
- }, S = () => {
1689
- const s = t.options.filter((k) => !k.disabled);
1690
- if (s.length === 0 || !Array.isArray(t.modelValue)) return !1;
1691
- const l = t.modelValue;
1692
- return s.every((k) => l.includes(k.key));
1721
+ }, w = () => {
1722
+ l.single ? o("update:modelValue", l.falseValue) : o("update:modelValue", []);
1723
+ }, z = () => {
1724
+ const s = l.options.filter((C) => !C.disabled);
1725
+ if (s.length === 0 || !Array.isArray(l.modelValue)) return !1;
1726
+ const t = l.modelValue;
1727
+ return s.every((C) => t.includes(C.key));
1693
1728
  };
1694
- return F({
1695
- getValue: m,
1729
+ return E({
1730
+ getValue: p,
1696
1731
  setValue: y,
1697
- getCheckedKeys: E,
1698
- getCheckedOptions: B,
1699
- checkAll: h,
1700
- clear: x,
1732
+ getCheckedKeys: $,
1733
+ getCheckedOptions: k,
1734
+ checkAll: f,
1735
+ clear: w,
1701
1736
  toggleAll: () => {
1702
- S() ? x() : h();
1737
+ z() ? w() : f();
1703
1738
  },
1704
- isAllChecked: S,
1705
- getField: () => t.field ?? ""
1706
- }), (s, l) => {
1707
- const k = I("el-checkbox"), b = I("el-checkbox-button"), X = I("el-checkbox-group");
1708
- return e.single ? (a(), A(k, {
1739
+ isAllChecked: z,
1740
+ getField: () => l.field ?? ""
1741
+ }), (s, t) => {
1742
+ const C = I("el-checkbox"), b = I("el-checkbox-button"), X = I("el-checkbox-group");
1743
+ return e.single ? (a(), A(C, {
1709
1744
  key: 0,
1710
- modelValue: c.value,
1711
- "onUpdate:modelValue": l[0] || (l[0] = (M) => c.value = M),
1745
+ modelValue: r.value,
1746
+ "onUpdate:modelValue": t[0] || (t[0] = (M) => r.value = M),
1712
1747
  disabled: e.disabled,
1713
1748
  size: e.size,
1714
1749
  border: e.border,
@@ -1716,37 +1751,37 @@ const we = {
1716
1751
  "false-value": e.falseValue,
1717
1752
  onChange: v
1718
1753
  }, {
1719
- default: u(() => [
1754
+ default: i(() => [
1720
1755
  N(O(e.checkboxLabel || e.label), 1)
1721
1756
  ]),
1722
1757
  _: 1
1723
1758
  }, 8, ["modelValue", "disabled", "size", "border", "true-value", "false-value"])) : (a(), A(X, {
1724
1759
  key: 1,
1725
- modelValue: i.value,
1726
- "onUpdate:modelValue": l[1] || (l[1] = (M) => i.value = M),
1760
+ modelValue: u.value,
1761
+ "onUpdate:modelValue": t[1] || (t[1] = (M) => u.value = M),
1727
1762
  disabled: e.disabled,
1728
1763
  size: e.size,
1729
1764
  min: e.min,
1730
1765
  max: e.max,
1731
- onChange: g
1766
+ onChange: h
1732
1767
  }, {
1733
- default: u(() => [
1734
- e.button ? (a(!0), p(G, { key: 0 }, ne(e.options, (M) => (a(), A(b, {
1768
+ default: i(() => [
1769
+ e.button ? (a(!0), g(G, { key: 0 }, ne(e.options, (M) => (a(), A(b, {
1735
1770
  key: M.key,
1736
1771
  value: M.key,
1737
1772
  disabled: M.disabled
1738
1773
  }, {
1739
- default: u(() => [
1774
+ default: i(() => [
1740
1775
  N(O(M.value), 1)
1741
1776
  ]),
1742
1777
  _: 2
1743
- }, 1032, ["value", "disabled"]))), 128)) : (a(!0), p(G, { key: 1 }, ne(e.options, (M) => (a(), A(k, {
1778
+ }, 1032, ["value", "disabled"]))), 128)) : (a(!0), g(G, { key: 1 }, ne(e.options, (M) => (a(), A(C, {
1744
1779
  key: M.key,
1745
1780
  value: M.key,
1746
1781
  disabled: M.disabled,
1747
1782
  border: e.border
1748
1783
  }, {
1749
- default: u(() => [
1784
+ default: i(() => [
1750
1785
  N(O(M.value), 1)
1751
1786
  ]),
1752
1787
  _: 2
@@ -1756,7 +1791,7 @@ const we = {
1756
1791
  }, 8, ["modelValue", "disabled", "size", "min", "max"]));
1757
1792
  };
1758
1793
  }
1759
- }), mo = /* @__PURE__ */ ee({
1794
+ }), vo = /* @__PURE__ */ ee({
1760
1795
  __name: "base-radio",
1761
1796
  props: {
1762
1797
  modelValue: {},
@@ -1768,53 +1803,53 @@ const we = {
1768
1803
  size: { default: "default" }
1769
1804
  },
1770
1805
  emits: ["update:modelValue", "change"],
1771
- setup(e, { expose: F, emit: z }) {
1772
- const t = e, o = z, c = q({
1773
- get: () => t.modelValue,
1774
- set: (h) => o("update:modelValue", h)
1775
- }), i = (h) => {
1776
- o("change", h);
1806
+ setup(e, { expose: E, emit: T }) {
1807
+ const l = e, o = T, r = W({
1808
+ get: () => l.modelValue,
1809
+ set: (f) => o("update:modelValue", f)
1810
+ }), u = (f) => {
1811
+ o("change", f);
1777
1812
  };
1778
- return F({
1779
- getValue: () => t.modelValue,
1780
- setValue: (h) => {
1781
- o("update:modelValue", h);
1813
+ return E({
1814
+ getValue: () => l.modelValue,
1815
+ setValue: (f) => {
1816
+ o("update:modelValue", f);
1782
1817
  },
1783
- getSelectedOption: () => t.options.find((h) => h.key === t.modelValue),
1818
+ getSelectedOption: () => l.options.find((f) => f.key === l.modelValue),
1784
1819
  getSelectedValue: () => {
1785
- var h;
1786
- return (h = t.options.find((x) => x.key === t.modelValue)) == null ? void 0 : h.value;
1820
+ var f;
1821
+ return (f = l.options.find((w) => w.key === l.modelValue)) == null ? void 0 : f.value;
1787
1822
  },
1788
1823
  clear: () => {
1789
1824
  o("update:modelValue", void 0);
1790
1825
  },
1791
- getField: () => t.field ?? ""
1792
- }), (h, x) => {
1793
- const S = I("el-radio-button"), L = I("el-radio"), K = I("el-radio-group");
1826
+ getField: () => l.field ?? ""
1827
+ }), (f, w) => {
1828
+ const z = I("el-radio-button"), L = I("el-radio"), K = I("el-radio-group");
1794
1829
  return a(), A(K, {
1795
- modelValue: c.value,
1796
- "onUpdate:modelValue": x[0] || (x[0] = (s) => c.value = s),
1830
+ modelValue: r.value,
1831
+ "onUpdate:modelValue": w[0] || (w[0] = (s) => r.value = s),
1797
1832
  disabled: e.disabled,
1798
1833
  size: e.size,
1799
- onChange: i
1834
+ onChange: u
1800
1835
  }, {
1801
- default: u(() => [
1802
- e.button ? (a(!0), p(G, { key: 0 }, ne(e.options, (s) => (a(), A(S, {
1836
+ default: i(() => [
1837
+ e.button ? (a(!0), g(G, { key: 0 }, ne(e.options, (s) => (a(), A(z, {
1803
1838
  key: s.key,
1804
1839
  value: s.key,
1805
1840
  disabled: s.disabled
1806
1841
  }, {
1807
- default: u(() => [
1842
+ default: i(() => [
1808
1843
  N(O(s.value), 1)
1809
1844
  ]),
1810
1845
  _: 2
1811
- }, 1032, ["value", "disabled"]))), 128)) : (a(!0), p(G, { key: 1 }, ne(e.options, (s) => (a(), A(L, {
1846
+ }, 1032, ["value", "disabled"]))), 128)) : (a(!0), g(G, { key: 1 }, ne(e.options, (s) => (a(), A(L, {
1812
1847
  key: s.key,
1813
1848
  value: s.key,
1814
1849
  disabled: s.disabled,
1815
1850
  border: e.border
1816
1851
  }, {
1817
- default: u(() => [
1852
+ default: i(() => [
1818
1853
  N(O(s.value), 1)
1819
1854
  ]),
1820
1855
  _: 2
@@ -1824,7 +1859,7 @@ const we = {
1824
1859
  }, 8, ["modelValue", "disabled", "size"]);
1825
1860
  };
1826
1861
  }
1827
- }), po = /* @__PURE__ */ ee({
1862
+ }), go = /* @__PURE__ */ ee({
1828
1863
  __name: "base-link",
1829
1864
  props: {
1830
1865
  type: { default: "primary" },
@@ -1836,8 +1871,8 @@ const we = {
1836
1871
  label: { default: "" }
1837
1872
  },
1838
1873
  emits: ["click"],
1839
- setup(e, { expose: F, emit: z }) {
1840
- const t = {
1874
+ setup(e, { expose: E, emit: T }) {
1875
+ const l = {
1841
1876
  view: "iconfont icon-chakan",
1842
1877
  edit: "iconfont icon-edit",
1843
1878
  delete: "iconfont icon-delete",
@@ -1846,27 +1881,27 @@ const we = {
1846
1881
  share: "iconfont icon-fenxiang",
1847
1882
  copy: "iconfont icon-fuzhi",
1848
1883
  external: "iconfont icon-wailian"
1849
- }, o = e, c = q(() => typeof o.underline == "boolean" ? o.underline ? "always" : "never" : o.underline), i = z, v = q(() => o.icon ? t[o.icon] || o.icon : ""), g = (y) => {
1850
- o.disabled || i("click", y);
1884
+ }, o = e, r = W(() => typeof o.underline == "boolean" ? o.underline ? "always" : "never" : o.underline), u = T, v = W(() => o.icon ? l[o.icon] || o.icon : ""), h = (y) => {
1885
+ o.disabled || u("click", y);
1851
1886
  };
1852
- return F({
1887
+ return E({
1853
1888
  isDisabled: () => o.disabled
1854
- }), (y, E) => {
1855
- const B = I("el-link");
1856
- return a(), A(B, {
1889
+ }), (y, $) => {
1890
+ const k = I("el-link");
1891
+ return a(), A(k, {
1857
1892
  type: e.type,
1858
- underline: c.value,
1893
+ underline: r.value,
1859
1894
  disabled: e.disabled,
1860
1895
  href: e.href,
1861
1896
  target: e.target,
1862
- onClick: g
1897
+ onClick: h
1863
1898
  }, {
1864
- default: u(() => [
1865
- v.value ? (a(), p("i", {
1899
+ default: i(() => [
1900
+ v.value ? (a(), g("i", {
1866
1901
  key: 0,
1867
1902
  class: ie(v.value)
1868
- }, null, 2)) : W("", !0),
1869
- ke(y.$slots, "default", {}, () => [
1903
+ }, null, 2)) : q("", !0),
1904
+ Ve(y.$slots, "default", {}, () => [
1870
1905
  N(O(e.label), 1)
1871
1906
  ])
1872
1907
  ]),
@@ -1874,7 +1909,7 @@ const we = {
1874
1909
  }, 8, ["type", "underline", "disabled", "href", "target"]);
1875
1910
  };
1876
1911
  }
1877
- }), lt = { class: "form-dialog-header" }, tt = { class: "form-dialog-header__title" }, at = { style: { display: "flex", "align-items": "center", gap: "4px" } }, ot = ["title"], nt = { class: "form-dialog-content" }, st = { class: "form-dialog-footer" }, vo = /* @__PURE__ */ ee({
1912
+ }), tt = { class: "form-dialog-header" }, at = { class: "form-dialog-header__title" }, ot = { style: { display: "flex", "align-items": "center", gap: "4px" } }, nt = ["title"], st = { class: "form-dialog-content" }, ut = { class: "form-dialog-footer" }, ho = /* @__PURE__ */ ee({
1878
1913
  __name: "base-dialog",
1879
1914
  props: {
1880
1915
  modelValue: { type: Boolean },
@@ -1885,92 +1920,92 @@ const we = {
1885
1920
  showFullscreen: { type: Boolean, default: !1 }
1886
1921
  },
1887
1922
  emits: ["update:modelValue", "close", "confirm"],
1888
- setup(e, { emit: F }) {
1889
- const z = e, t = F, o = q({
1890
- get: () => z.modelValue,
1891
- set: (h) => t("update:modelValue", h)
1892
- }), c = T();
1893
- function i() {
1894
- var h, x, S;
1895
- return ((x = (h = c.value) == null ? void 0 : h.dialogContentRef) == null ? void 0 : x.$el) || ((S = c.value) == null ? void 0 : S.dialogContentRef);
1923
+ setup(e, { emit: E }) {
1924
+ const T = e, l = E, o = W({
1925
+ get: () => T.modelValue,
1926
+ set: (f) => l("update:modelValue", f)
1927
+ }), r = D();
1928
+ function u() {
1929
+ var f, w, z;
1930
+ return ((w = (f = r.value) == null ? void 0 : f.dialogContentRef) == null ? void 0 : w.$el) || ((z = r.value) == null ? void 0 : z.dialogContentRef);
1896
1931
  }
1897
1932
  function v() {
1898
1933
  Je(() => {
1899
- const h = i();
1900
- if (h)
1901
- if (m.value)
1902
- h.style.height = "100vh", h.style.maxHeight = "100vh", h.style.borderRadius = "0";
1903
- else if (z.dialogHeight) {
1904
- const x = typeof z.dialogHeight == "number" ? `${z.dialogHeight}px` : z.dialogHeight;
1905
- h.style.height = x, h.style.maxHeight = "90vh", h.style.borderRadius = "";
1934
+ const f = u();
1935
+ if (f)
1936
+ if (p.value)
1937
+ f.style.height = "100vh", f.style.maxHeight = "100vh", f.style.borderRadius = "0";
1938
+ else if (T.dialogHeight) {
1939
+ const w = typeof T.dialogHeight == "number" ? `${T.dialogHeight}px` : T.dialogHeight;
1940
+ f.style.height = w, f.style.maxHeight = "90vh", f.style.borderRadius = "";
1906
1941
  } else
1907
- h.style.height = "", h.style.maxHeight = "90vh", h.style.borderRadius = "";
1942
+ f.style.height = "", f.style.maxHeight = "90vh", f.style.borderRadius = "";
1908
1943
  });
1909
1944
  }
1910
- function g() {
1945
+ function h() {
1911
1946
  v();
1912
1947
  }
1913
- Ce(() => z.dialogHeight, () => {
1948
+ Ce(() => T.dialogHeight, () => {
1914
1949
  o.value && v();
1915
1950
  });
1916
- const m = T(!1), y = () => {
1917
- m.value = !m.value, v();
1918
- }, E = () => {
1919
- m.value = !1, t("update:modelValue", !1), t("close");
1920
- }, B = () => {
1921
- t("confirm");
1951
+ const p = D(!1), y = () => {
1952
+ p.value = !p.value, v();
1953
+ }, $ = () => {
1954
+ p.value = !1, l("update:modelValue", !1), l("close");
1955
+ }, k = () => {
1956
+ l("confirm");
1922
1957
  };
1923
- return (h, x) => {
1924
- const S = I("el-icon"), L = I("el-button"), K = I("el-dialog");
1958
+ return (f, w) => {
1959
+ const z = I("el-icon"), L = I("el-button"), K = I("el-dialog");
1925
1960
  return a(), A(K, {
1926
1961
  ref_key: "dialogRef",
1927
- ref: c,
1962
+ ref: r,
1928
1963
  modelValue: o.value,
1929
- "onUpdate:modelValue": x[0] || (x[0] = (s) => o.value = s),
1964
+ "onUpdate:modelValue": w[0] || (w[0] = (s) => o.value = s),
1930
1965
  width: e.width,
1931
- fullscreen: m.value,
1966
+ fullscreen: p.value,
1932
1967
  class: "form-dialog base-dialog",
1933
1968
  "close-on-click-modal": !1,
1934
1969
  "close-on-press-escape": !1,
1935
1970
  "show-close": !1,
1936
1971
  "align-center": "",
1937
1972
  "append-to-body": "",
1938
- onClose: E,
1939
- onOpened: g
1973
+ onClose: $,
1974
+ onOpened: h
1940
1975
  }, {
1941
- header: u(() => [
1942
- d("div", lt, [
1943
- d("span", tt, [
1944
- e.icon ? (a(), A(S, { key: 0 }, {
1945
- default: u(() => [
1976
+ header: i(() => [
1977
+ d("div", tt, [
1978
+ d("span", at, [
1979
+ e.icon ? (a(), A(z, { key: 0 }, {
1980
+ default: i(() => [
1946
1981
  (a(), A(Xe(e.icon)))
1947
1982
  ]),
1948
1983
  _: 1
1949
- })) : W("", !0),
1984
+ })) : q("", !0),
1950
1985
  N(" " + O(e.title), 1)
1951
1986
  ]),
1952
- d("div", at, [
1953
- e.showFullscreen ? (a(), p("button", {
1987
+ d("div", ot, [
1988
+ e.showFullscreen ? (a(), g("button", {
1954
1989
  key: 0,
1955
1990
  class: "form-dialog-header__close",
1956
- title: m.value ? "退出全屏" : "全屏",
1991
+ title: p.value ? "退出全屏" : "全屏",
1957
1992
  onClick: y
1958
1993
  }, [
1959
- n(S, null, {
1960
- default: u(() => [
1961
- m.value ? (a(), A(U(ml), { key: 1 })) : (a(), A(U(fl), { key: 0 }))
1994
+ n(z, null, {
1995
+ default: i(() => [
1996
+ p.value ? (a(), A(U(ml), { key: 1 })) : (a(), A(U(fl), { key: 0 }))
1962
1997
  ]),
1963
1998
  _: 1
1964
1999
  })
1965
- ], 8, ot)) : W("", !0),
2000
+ ], 8, nt)) : q("", !0),
1966
2001
  d("button", {
1967
2002
  class: "form-dialog-header__close",
1968
2003
  title: "关闭",
1969
- onClick: E
2004
+ onClick: $
1970
2005
  }, [
1971
- n(S, null, {
1972
- default: u(() => [
1973
- n(U(Ve))
2006
+ n(z, null, {
2007
+ default: i(() => [
2008
+ n(U(ke))
1974
2009
  ]),
1975
2010
  _: 1
1976
2011
  })
@@ -1978,20 +2013,20 @@ const we = {
1978
2013
  ])
1979
2014
  ])
1980
2015
  ]),
1981
- footer: u(() => [
1982
- d("div", st, [
1983
- ke(h.$slots, "footer", {}, () => [
1984
- n(L, { onClick: E }, {
1985
- default: u(() => [...x[1] || (x[1] = [
2016
+ footer: i(() => [
2017
+ d("div", ut, [
2018
+ Ve(f.$slots, "footer", {}, () => [
2019
+ n(L, { onClick: $ }, {
2020
+ default: i(() => [...w[1] || (w[1] = [
1986
2021
  N("取消", -1)
1987
2022
  ])]),
1988
2023
  _: 1
1989
2024
  }),
1990
2025
  n(L, {
1991
2026
  type: "custom",
1992
- onClick: B
2027
+ onClick: k
1993
2028
  }, {
1994
- default: u(() => [...x[2] || (x[2] = [
2029
+ default: i(() => [...w[2] || (w[2] = [
1995
2030
  N("确认", -1)
1996
2031
  ])]),
1997
2032
  _: 1
@@ -1999,25 +2034,25 @@ const we = {
1999
2034
  ])
2000
2035
  ])
2001
2036
  ]),
2002
- default: u(() => [
2003
- d("div", nt, [
2004
- ke(h.$slots, "default")
2037
+ default: i(() => [
2038
+ d("div", st, [
2039
+ Ve(f.$slots, "default")
2005
2040
  ])
2006
2041
  ]),
2007
2042
  _: 3
2008
2043
  }, 8, ["modelValue", "width", "fullscreen"]);
2009
2044
  };
2010
2045
  }
2011
- }), ut = { class: "base-china-area" }, it = { class: "form-dialog-header" }, dt = { class: "form-dialog-header__title" }, rt = { class: "base-china-area-panel" }, ct = { class: "base-china-area-panel__search" }, ft = {
2046
+ }), it = { class: "base-china-area" }, dt = { class: "form-dialog-header" }, rt = { class: "form-dialog-header__title" }, ct = { class: "base-china-area-panel" }, ft = { class: "base-china-area-panel__search" }, mt = {
2012
2047
  key: 0,
2013
2048
  class: "base-china-area-panel__breadcrumb"
2014
- }, mt = {
2049
+ }, pt = {
2015
2050
  key: 1,
2016
2051
  class: "base-china-area-panel__breadcrumb"
2017
- }, pt = { class: "base-china-area-panel__list" }, vt = ["onClick"], gt = { class: "area-item__name" }, ht = ["onClick"], bt = { class: "area-item__name" }, yt = { class: "base-china-area-panel__selected" }, _t = {
2052
+ }, vt = { class: "base-china-area-panel__list" }, gt = ["onClick"], ht = { class: "area-item__name" }, bt = ["onClick"], yt = { class: "area-item__name" }, _t = { class: "base-china-area-panel__selected" }, wt = {
2018
2053
  key: 1,
2019
2054
  class: "selected-empty"
2020
- }, wt = { class: "form-dialog-footer" }, kt = /* @__PURE__ */ ee({
2055
+ }, Vt = { class: "form-dialog-footer" }, kt = /* @__PURE__ */ ee({
2021
2056
  __name: "base-china-area",
2022
2057
  props: {
2023
2058
  modelValue: { default: null },
@@ -2028,41 +2063,41 @@ const we = {
2028
2063
  showDestination: { type: Boolean, default: !0 }
2029
2064
  },
2030
2065
  emits: ["update:modelValue", "change"],
2031
- setup(e, { expose: F, emit: z }) {
2032
- const t = e, o = z, c = T(), i = T(!1), v = T(!1), g = T(""), m = T([]), y = T(0), E = T([]), B = T([]), h = T([]), x = T(null), S = T(null), L = T(null), K = T(""), s = T(""), l = T(null), k = q(() => "选择地区"), b = q(() => g.value.trim().length > 0), X = q(() => y.value === 0 ? E.value : y.value === 1 ? B.value : y.value === 2 ? h.value : []), M = q(() => {
2033
- var f;
2034
- return ((f = t.modelValue) == null ? void 0 : f.fullPath) || "";
2066
+ setup(e, { expose: E, emit: T }) {
2067
+ const l = e, o = T, r = D(), u = D(!1), v = D(!1), h = D(""), p = D([]), y = D(0), $ = D([]), k = D([]), f = D([]), w = D(null), z = D(null), L = D(null), K = D(""), s = D(""), t = D(null), C = W(() => "选择地区"), b = W(() => h.value.trim().length > 0), X = W(() => y.value === 0 ? $.value : y.value === 1 ? k.value : y.value === 2 ? f.value : []), M = W(() => {
2068
+ var m;
2069
+ return ((m = l.modelValue) == null ? void 0 : m.fullPath) || "";
2035
2070
  });
2036
- function oe(f) {
2037
- return !(t.level === 1 || t.level === 2 && f.level >= 2 || t.level === 3 && f.level >= 3);
2071
+ function oe(m) {
2072
+ return !(l.level === 1 || l.level === 2 && m.level >= 2 || l.level === 3 && m.level >= 3);
2038
2073
  }
2039
- function de(f) {
2040
- const H = f.full_path || f.name;
2074
+ function de(m) {
2075
+ const H = m.full_path || m.name;
2041
2076
  return K.value === H;
2042
2077
  }
2043
2078
  async function se() {
2044
2079
  v.value = !0;
2045
2080
  try {
2046
- const f = await he().post("/proxy/sys/china_area/api/get_provinces");
2047
- f.code === 200 && (E.value = f.data);
2081
+ const m = await he().post("/proxy/sys/china_area/api/get_provinces");
2082
+ m.code === 200 && ($.value = m.data);
2048
2083
  } finally {
2049
2084
  v.value = !1;
2050
2085
  }
2051
2086
  }
2052
- async function pe(f) {
2087
+ async function pe(m) {
2053
2088
  v.value = !0;
2054
2089
  try {
2055
- const H = await he().post(`/proxy/sys/china_area/api/get_cities/${encodeURIComponent(f)}`);
2056
- H.code === 200 && (B.value = H.data);
2090
+ const H = await he().post(`/proxy/sys/china_area/api/get_cities/${encodeURIComponent(m)}`);
2091
+ H.code === 200 && (k.value = H.data);
2057
2092
  } finally {
2058
2093
  v.value = !1;
2059
2094
  }
2060
2095
  }
2061
- async function fe(f) {
2096
+ async function fe(m) {
2062
2097
  v.value = !0;
2063
2098
  try {
2064
- const H = await he().post(`/proxy/sys/china_area/api/get_districts/${encodeURIComponent(f)}`);
2065
- H.code === 200 && (h.value = H.data);
2099
+ const H = await he().post(`/proxy/sys/china_area/api/get_districts/${encodeURIComponent(m)}`);
2100
+ H.code === 200 && (f.value = H.data);
2066
2101
  } finally {
2067
2102
  v.value = !1;
2068
2103
  }
@@ -2070,101 +2105,101 @@ const we = {
2070
2105
  let re = null;
2071
2106
  function te() {
2072
2107
  re && clearTimeout(re), re = setTimeout(async () => {
2073
- const f = g.value.trim();
2074
- if (!f) {
2075
- m.value = [];
2108
+ const m = h.value.trim();
2109
+ if (!m) {
2110
+ p.value = [];
2076
2111
  return;
2077
2112
  }
2078
2113
  v.value = !0;
2079
2114
  try {
2080
- const H = await he().post("/proxy/sys/china_area/api/search", { keyword: f });
2081
- H.code === 200 && (m.value = H.data);
2115
+ const H = await he().post("/proxy/sys/china_area/api/search", { keyword: m });
2116
+ H.code === 200 && (p.value = H.data);
2082
2117
  } finally {
2083
2118
  v.value = !1;
2084
2119
  }
2085
2120
  }, 300);
2086
2121
  }
2087
2122
  function ve() {
2088
- t.disabled || (i.value = !0, E.value.length === 0 && se());
2123
+ l.disabled || (u.value = !0, $.value.length === 0 && se());
2089
2124
  }
2090
- function $(f) {
2091
- f.has_children && oe(f) ? f.level === 1 ? (x.value = f, S.value = null, L.value = null, y.value = 1, pe(f.name)) : f.level === 2 && (S.value = f, L.value = null, y.value = 2, fe(f.name)) : ge(f);
2125
+ function F(m) {
2126
+ m.has_children && oe(m) ? m.level === 1 ? (w.value = m, z.value = null, L.value = null, y.value = 1, pe(m.name)) : m.level === 2 && (z.value = m, L.value = null, y.value = 2, fe(m.name)) : ge(m);
2092
2127
  }
2093
- function R(f) {
2094
- J(f);
2128
+ function R(m) {
2129
+ J(m);
2095
2130
  }
2096
- function J(f) {
2097
- const H = f.full_path || f.name;
2098
- if (K.value = H, s.value = f.destination || "", f.full_path && f.level === 3) {
2099
- const ue = f.parent_name || "", le = ce(f.full_path, ue, f.name);
2100
- x.value = { fid: "", name: le, level: 1 }, S.value = { fid: "", name: ue, level: 2, parent_name: le }, L.value = f;
2101
- } else if (f.full_path && f.level === 2) {
2102
- const ue = f.parent_name || "";
2103
- x.value = { fid: "", name: ue, level: 1 }, S.value = f, L.value = null;
2104
- } else f.level === 1 && (x.value = f, S.value = null, L.value = null);
2105
- y.value = 0, l.value = Z();
2131
+ function J(m) {
2132
+ const H = m.full_path || m.name;
2133
+ if (K.value = H, s.value = m.destination || "", m.full_path && m.level === 3) {
2134
+ const ue = m.parent_name || "", le = ce(m.full_path, ue, m.name);
2135
+ w.value = { fid: "", name: le, level: 1 }, z.value = { fid: "", name: ue, level: 2, parent_name: le }, L.value = m;
2136
+ } else if (m.full_path && m.level === 2) {
2137
+ const ue = m.parent_name || "";
2138
+ w.value = { fid: "", name: ue, level: 1 }, z.value = m, L.value = null;
2139
+ } else m.level === 1 && (w.value = m, z.value = null, L.value = null);
2140
+ y.value = 0, t.value = Z();
2106
2141
  }
2107
- function ce(f, H, ue) {
2108
- let le = f;
2109
- return ue && f.endsWith(ue) && (le = f.slice(0, -ue.length)), H && le.endsWith(H) && (le = le.slice(0, -H.length)), le;
2142
+ function ce(m, H, ue) {
2143
+ let le = m;
2144
+ return ue && m.endsWith(ue) && (le = m.slice(0, -ue.length)), H && le.endsWith(H) && (le = le.slice(0, -H.length)), le;
2110
2145
  }
2111
- function ge(f) {
2112
- const H = f.full_path || f.name;
2113
- K.value = H, s.value = f.destination || "", f.level === 1 ? (x.value = f, S.value = null, L.value = null) : f.level === 2 ? (S.value = f, L.value = null) : f.level === 3 && (L.value = f), l.value = Z();
2146
+ function ge(m) {
2147
+ const H = m.full_path || m.name;
2148
+ K.value = H, s.value = m.destination || "", m.level === 1 ? (w.value = m, z.value = null, L.value = null) : m.level === 2 ? (z.value = m, L.value = null) : m.level === 3 && (L.value = m), t.value = Z();
2114
2149
  }
2115
- function D(f) {
2116
- f === 0 ? (y.value = 0, x.value = null, S.value = null, L.value = null) : f === 1 ? (y.value = 1, S.value = null, L.value = null, x.value && pe(x.value.name)) : f === 2 && (y.value = 2, L.value = null);
2150
+ function S(m) {
2151
+ m === 0 ? (y.value = 0, w.value = null, z.value = null, L.value = null) : m === 1 ? (y.value = 1, z.value = null, L.value = null, w.value && pe(w.value.name)) : m === 2 && (y.value = 2, L.value = null);
2117
2152
  }
2118
- function w() {
2119
- K.value = "", s.value = "", l.value = null, x.value = null, S.value = null, L.value = null;
2153
+ function V() {
2154
+ K.value = "", s.value = "", t.value = null, w.value = null, z.value = null, L.value = null;
2120
2155
  }
2121
2156
  function _() {
2122
2157
  o("update:modelValue", null), o("change", null);
2123
2158
  }
2124
2159
  function Y() {
2125
- i.value = !1, g.value = "", m.value = [];
2160
+ u.value = !1, h.value = "", p.value = [];
2126
2161
  }
2127
2162
  function j() {
2128
- o("update:modelValue", l.value), o("change", l.value), Y();
2163
+ o("update:modelValue", t.value), o("change", t.value), Y();
2129
2164
  }
2130
2165
  function Z() {
2131
2166
  var H, ue, le;
2132
- const f = L.value || S.value || x.value;
2167
+ const m = L.value || z.value || w.value;
2133
2168
  return {
2134
- province: ((H = x.value) == null ? void 0 : H.name) || "",
2135
- city: ((ue = S.value) == null ? void 0 : ue.name) || "",
2169
+ province: ((H = w.value) == null ? void 0 : H.name) || "",
2170
+ city: ((ue = z.value) == null ? void 0 : ue.name) || "",
2136
2171
  district: ((le = L.value) == null ? void 0 : le.name) || "",
2137
- fullPath: (f == null ? void 0 : f.full_path) || (f == null ? void 0 : f.name) || "",
2138
- destinationType: (f == null ? void 0 : f.destination_type) || "",
2139
- destination: (f == null ? void 0 : f.destination) || ""
2172
+ fullPath: (m == null ? void 0 : m.full_path) || (m == null ? void 0 : m.name) || "",
2173
+ destinationType: (m == null ? void 0 : m.destination_type) || "",
2174
+ destination: (m == null ? void 0 : m.destination) || ""
2140
2175
  };
2141
2176
  }
2142
- return Ce(() => t.modelValue, (f) => {
2143
- f ? (K.value = f.fullPath || "", s.value = f.destination || "", l.value = f) : (K.value = "", s.value = "", l.value = null);
2144
- }, { immediate: !0 }), F({
2177
+ return Ce(() => l.modelValue, (m) => {
2178
+ m ? (K.value = m.fullPath || "", s.value = m.destination || "", t.value = m) : (K.value = "", s.value = "", t.value = null);
2179
+ }, { immediate: !0 }), E({
2145
2180
  open: () => ve(),
2146
2181
  clear: () => _()
2147
- }), (f, H) => {
2148
- const ue = I("el-input"), le = I("el-icon"), V = I("el-empty"), C = I("el-tag"), r = I("el-button"), P = I("el-dialog"), me = Ke("loading");
2149
- return a(), p("div", ut, [
2182
+ }), (m, H) => {
2183
+ const ue = I("el-input"), le = I("el-icon"), x = I("el-empty"), B = I("el-tag"), c = I("el-button"), P = I("el-dialog"), me = Ke("loading");
2184
+ return a(), g("div", it, [
2150
2185
  n(ue, {
2151
2186
  ref_key: "inputRef",
2152
- ref: c,
2187
+ ref: r,
2153
2188
  modelValue: M.value,
2154
2189
  "onUpdate:modelValue": H[0] || (H[0] = (Q) => M.value = Q),
2155
2190
  placeholder: e.placeholder,
2156
2191
  disabled: e.disabled,
2157
2192
  clearable: e.clearable,
2158
2193
  readonly: !0,
2159
- "suffix-icon": i.value ? U(pl) : U(vl),
2194
+ "suffix-icon": u.value ? U(pl) : U(vl),
2160
2195
  class: "base-china-area__input",
2161
2196
  onClick: ve,
2162
2197
  onClear: _
2163
2198
  }, null, 8, ["modelValue", "placeholder", "disabled", "clearable", "suffix-icon"]),
2164
2199
  n(P, {
2165
- modelValue: i.value,
2166
- "onUpdate:modelValue": H[5] || (H[5] = (Q) => i.value = Q),
2167
- title: k.value,
2200
+ modelValue: u.value,
2201
+ "onUpdate:modelValue": H[5] || (H[5] = (Q) => u.value = Q),
2202
+ title: C.value,
2168
2203
  width: "600px",
2169
2204
  "show-close": !1,
2170
2205
  "close-on-click-modal": !1,
@@ -2172,128 +2207,128 @@ const we = {
2172
2207
  class: "form-dialog base-china-area-dialog",
2173
2208
  onClose: Y
2174
2209
  }, {
2175
- header: u(() => [
2176
- d("div", it, [
2177
- d("span", dt, [
2210
+ header: i(() => [
2211
+ d("div", dt, [
2212
+ d("span", rt, [
2178
2213
  n(le, null, {
2179
- default: u(() => [
2214
+ default: i(() => [
2180
2215
  n(U(gl))
2181
2216
  ]),
2182
2217
  _: 1
2183
2218
  }),
2184
- N(" " + O(k.value), 1)
2219
+ N(" " + O(C.value), 1)
2185
2220
  ]),
2186
2221
  d("button", {
2187
2222
  class: "form-dialog-header__close",
2188
2223
  onClick: Y
2189
2224
  }, [
2190
2225
  n(le, null, {
2191
- default: u(() => [
2192
- n(U(Ve))
2226
+ default: i(() => [
2227
+ n(U(ke))
2193
2228
  ]),
2194
2229
  _: 1
2195
2230
  })
2196
2231
  ])
2197
2232
  ])
2198
2233
  ]),
2199
- footer: u(() => [
2200
- d("div", wt, [
2201
- n(r, { onClick: Y }, {
2202
- default: u(() => [...H[8] || (H[8] = [
2234
+ footer: i(() => [
2235
+ d("div", Vt, [
2236
+ n(c, { onClick: Y }, {
2237
+ default: i(() => [...H[8] || (H[8] = [
2203
2238
  N("取消", -1)
2204
2239
  ])]),
2205
2240
  _: 1
2206
2241
  }),
2207
- n(r, {
2242
+ n(c, {
2208
2243
  type: "primary",
2209
2244
  onClick: j
2210
2245
  }, {
2211
- default: u(() => [...H[9] || (H[9] = [
2246
+ default: i(() => [...H[9] || (H[9] = [
2212
2247
  N("确认", -1)
2213
2248
  ])]),
2214
2249
  _: 1
2215
2250
  })
2216
2251
  ])
2217
2252
  ]),
2218
- default: u(() => [
2219
- d("div", rt, [
2220
- d("div", ct, [
2253
+ default: i(() => [
2254
+ d("div", ct, [
2255
+ d("div", ft, [
2221
2256
  n(ue, {
2222
- modelValue: g.value,
2223
- "onUpdate:modelValue": H[1] || (H[1] = (Q) => g.value = Q),
2257
+ modelValue: h.value,
2258
+ "onUpdate:modelValue": H[1] || (H[1] = (Q) => h.value = Q),
2224
2259
  placeholder: "搜索省/市/区县",
2225
2260
  "prefix-icon": U(be),
2226
2261
  clearable: "",
2227
2262
  onInput: te
2228
2263
  }, null, 8, ["modelValue", "prefix-icon"])
2229
2264
  ]),
2230
- b.value ? (a(), p("div", mt, [...H[6] || (H[6] = [
2265
+ b.value ? (a(), g("div", pt, [...H[6] || (H[6] = [
2231
2266
  d("span", { class: "breadcrumb-item is-active" }, "搜索结果", -1)
2232
- ])])) : (a(), p("div", ft, [
2267
+ ])])) : (a(), g("div", mt, [
2233
2268
  d("span", {
2234
2269
  class: ie(["breadcrumb-item", { "is-active": y.value === 0 }]),
2235
- onClick: H[2] || (H[2] = (Q) => D(0))
2270
+ onClick: H[2] || (H[2] = (Q) => S(0))
2236
2271
  }, " 全国 ", 2),
2237
- x.value ? (a(), p(G, { key: 0 }, [
2272
+ w.value ? (a(), g(G, { key: 0 }, [
2238
2273
  n(le, { class: "breadcrumb-arrow" }, {
2239
- default: u(() => [
2274
+ default: i(() => [
2240
2275
  n(U(Fe))
2241
2276
  ]),
2242
2277
  _: 1
2243
2278
  }),
2244
2279
  d("span", {
2245
2280
  class: ie(["breadcrumb-item", { "is-active": y.value === 1 }]),
2246
- onClick: H[3] || (H[3] = (Q) => D(1))
2247
- }, O(x.value.name), 3)
2248
- ], 64)) : W("", !0),
2249
- S.value ? (a(), p(G, { key: 1 }, [
2281
+ onClick: H[3] || (H[3] = (Q) => S(1))
2282
+ }, O(w.value.name), 3)
2283
+ ], 64)) : q("", !0),
2284
+ z.value ? (a(), g(G, { key: 1 }, [
2250
2285
  n(le, { class: "breadcrumb-arrow" }, {
2251
- default: u(() => [
2286
+ default: i(() => [
2252
2287
  n(U(Fe))
2253
2288
  ]),
2254
2289
  _: 1
2255
2290
  }),
2256
2291
  d("span", {
2257
2292
  class: ie(["breadcrumb-item", { "is-active": y.value === 2 }]),
2258
- onClick: H[4] || (H[4] = (Q) => D(2))
2259
- }, O(S.value.name), 3)
2260
- ], 64)) : W("", !0)
2293
+ onClick: H[4] || (H[4] = (Q) => S(2))
2294
+ }, O(z.value.name), 3)
2295
+ ], 64)) : q("", !0)
2261
2296
  ])),
2262
- Ye((a(), p("div", pt, [
2263
- b.value ? (a(), p(G, { key: 0 }, [
2264
- (a(!0), p(G, null, ne(m.value, (Q) => (a(), p("div", {
2297
+ Ye((a(), g("div", vt, [
2298
+ b.value ? (a(), g(G, { key: 0 }, [
2299
+ (a(!0), g(G, null, ne(p.value, (Q) => (a(), g("div", {
2265
2300
  key: Q.fid,
2266
2301
  class: ie(["area-item", { "is-selected": de(Q) }]),
2267
2302
  onClick: (Be) => R(Q)
2268
2303
  }, [
2269
- d("span", gt, O(Q.full_path || Q.name), 1),
2304
+ d("span", ht, O(Q.full_path || Q.name), 1),
2270
2305
  de(Q) ? (a(), A(le, {
2271
2306
  key: 0,
2272
2307
  class: "area-item__check"
2273
2308
  }, {
2274
- default: u(() => [
2309
+ default: i(() => [
2275
2310
  n(U(je))
2276
2311
  ]),
2277
2312
  _: 1
2278
- })) : W("", !0)
2279
- ], 10, vt))), 128)),
2280
- m.value.length === 0 ? (a(), A(V, {
2313
+ })) : q("", !0)
2314
+ ], 10, gt))), 128)),
2315
+ p.value.length === 0 ? (a(), A(x, {
2281
2316
  key: 0,
2282
2317
  description: "暂无匹配结果",
2283
2318
  "image-size": 60
2284
- })) : W("", !0)
2285
- ], 64)) : (a(), p(G, { key: 1 }, [
2286
- (a(!0), p(G, null, ne(X.value, (Q) => (a(), p("div", {
2319
+ })) : q("", !0)
2320
+ ], 64)) : (a(), g(G, { key: 1 }, [
2321
+ (a(!0), g(G, null, ne(X.value, (Q) => (a(), g("div", {
2287
2322
  key: Q.fid,
2288
2323
  class: ie(["area-item", { "is-selected": de(Q) }]),
2289
- onClick: (Be) => $(Q)
2324
+ onClick: (Be) => F(Q)
2290
2325
  }, [
2291
- d("span", bt, O(Q.name), 1),
2326
+ d("span", yt, O(Q.name), 1),
2292
2327
  Q.has_children && oe(Q) ? (a(), A(le, {
2293
2328
  key: 0,
2294
2329
  class: "area-item__arrow"
2295
2330
  }, {
2296
- default: u(() => [
2331
+ default: i(() => [
2297
2332
  n(U(Fe))
2298
2333
  ]),
2299
2334
  _: 1
@@ -2301,44 +2336,44 @@ const we = {
2301
2336
  key: 1,
2302
2337
  class: "area-item__check"
2303
2338
  }, {
2304
- default: u(() => [
2339
+ default: i(() => [
2305
2340
  n(U(je))
2306
2341
  ]),
2307
2342
  _: 1
2308
- })) : W("", !0)
2309
- ], 10, ht))), 128)),
2310
- X.value.length === 0 && !v.value ? (a(), A(V, {
2343
+ })) : q("", !0)
2344
+ ], 10, bt))), 128)),
2345
+ X.value.length === 0 && !v.value ? (a(), A(x, {
2311
2346
  key: 0,
2312
2347
  description: "暂无数据",
2313
2348
  "image-size": 60
2314
- })) : W("", !0)
2349
+ })) : q("", !0)
2315
2350
  ], 64))
2316
2351
  ])), [
2317
2352
  [me, v.value]
2318
2353
  ]),
2319
- d("div", yt, [
2354
+ d("div", _t, [
2320
2355
  H[7] || (H[7] = d("span", { class: "selected-label" }, "已选择:", -1)),
2321
- K.value ? (a(), p(G, { key: 0 }, [
2322
- n(C, {
2356
+ K.value ? (a(), g(G, { key: 0 }, [
2357
+ n(B, {
2323
2358
  closable: "",
2324
- onClose: w
2359
+ onClose: V
2325
2360
  }, {
2326
- default: u(() => [
2361
+ default: i(() => [
2327
2362
  N(O(K.value), 1)
2328
2363
  ]),
2329
2364
  _: 1
2330
2365
  }),
2331
- s.value ? (a(), A(C, {
2366
+ s.value ? (a(), A(B, {
2332
2367
  key: 0,
2333
2368
  type: "info",
2334
2369
  class: "destination-tag"
2335
2370
  }, {
2336
- default: u(() => [
2371
+ default: i(() => [
2337
2372
  N(O(s.value), 1)
2338
2373
  ]),
2339
2374
  _: 1
2340
- })) : W("", !0)
2341
- ], 64)) : (a(), p("span", _t, "未选择"))
2375
+ })) : q("", !0)
2376
+ ], 64)) : (a(), g("span", wt, "未选择"))
2342
2377
  ])
2343
2378
  ])
2344
2379
  ]),
@@ -2347,8 +2382,8 @@ const we = {
2347
2382
  ]);
2348
2383
  };
2349
2384
  }
2350
- }), go = /* @__PURE__ */ xe(kt, [["__scopeId", "data-v-6b47a337"]]);
2351
- var Vt = {
2385
+ }), bo = /* @__PURE__ */ xe(kt, [["__scopeId", "data-v-6b47a337"]]);
2386
+ var Ct = {
2352
2387
  name: "zh-cn",
2353
2388
  el: {
2354
2389
  breadcrumb: {
@@ -2526,7 +2561,7 @@ var Vt = {
2526
2561
  }
2527
2562
  }
2528
2563
  };
2529
- const Ct = { class: "page-pagination" }, xt = /* @__PURE__ */ ee({
2564
+ const xt = { class: "page-pagination" }, Bt = /* @__PURE__ */ ee({
2530
2565
  __name: "base-pagination",
2531
2566
  props: {
2532
2567
  total: { type: Number, default: 0 },
@@ -2550,34 +2585,34 @@ const Ct = { class: "page-pagination" }, xt = /* @__PURE__ */ ee({
2550
2585
  }
2551
2586
  },
2552
2587
  emits: ["update:page", "update:size", "change"],
2553
- setup(e, { emit: F }) {
2554
- const z = e, t = F, o = q({
2555
- get: () => z.page,
2556
- set: (g) => t("update:page", g)
2557
- }), c = q({
2558
- get: () => z.size,
2559
- set: (g) => t("update:size", g)
2560
- }), i = (g) => {
2561
- t("change", { page: o.value, size: g });
2562
- }, v = (g) => {
2563
- t("change", { page: g, size: c.value });
2588
+ setup(e, { emit: E }) {
2589
+ const T = e, l = E, o = W({
2590
+ get: () => T.page,
2591
+ set: (h) => l("update:page", h)
2592
+ }), r = W({
2593
+ get: () => T.size,
2594
+ set: (h) => l("update:size", h)
2595
+ }), u = (h) => {
2596
+ l("change", { page: o.value, size: h });
2597
+ }, v = (h) => {
2598
+ l("change", { page: h, size: r.value });
2564
2599
  };
2565
- return (g, m) => {
2566
- const y = I("el-pagination"), E = I("el-config-provider");
2567
- return a(), p("div", Ct, [
2568
- n(E, { locale: U(Vt) }, {
2569
- default: u(() => [
2600
+ return (h, p) => {
2601
+ const y = I("el-pagination"), $ = I("el-config-provider");
2602
+ return a(), g("div", xt, [
2603
+ n($, { locale: U(Ct) }, {
2604
+ default: i(() => [
2570
2605
  n(y, {
2571
2606
  "current-page": o.value,
2572
- "onUpdate:currentPage": m[0] || (m[0] = (B) => o.value = B),
2573
- "page-size": c.value,
2574
- "onUpdate:pageSize": m[1] || (m[1] = (B) => c.value = B),
2607
+ "onUpdate:currentPage": p[0] || (p[0] = (k) => o.value = k),
2608
+ "page-size": r.value,
2609
+ "onUpdate:pageSize": p[1] || (p[1] = (k) => r.value = k),
2575
2610
  "page-sizes": e.pageSizes,
2576
2611
  layout: e.layout,
2577
2612
  background: e.background,
2578
2613
  disabled: e.disabled,
2579
2614
  total: e.total,
2580
- onSizeChange: i,
2615
+ onSizeChange: u,
2581
2616
  onCurrentChange: v
2582
2617
  }, null, 8, ["current-page", "page-size", "page-sizes", "layout", "background", "disabled", "total"])
2583
2618
  ]),
@@ -2586,10 +2621,10 @@ const Ct = { class: "page-pagination" }, xt = /* @__PURE__ */ ee({
2586
2621
  ]);
2587
2622
  };
2588
2623
  }
2589
- }), Bt = /* @__PURE__ */ xe(xt, [["__scopeId", "data-v-7ca8689a"]]), Et = { class: "approval-drawer-header" }, $t = { class: "approval-drawer-title" }, Ft = { class: "base-approval-record" }, Dt = { class: "approval-steps" }, Tt = { class: "steps-wrapper" }, St = { class: "step-icon" }, zt = { class: "step-title" }, Rt = {
2624
+ }), Et = /* @__PURE__ */ xe(Bt, [["__scopeId", "data-v-7ca8689a"]]), $t = { class: "approval-drawer-header" }, Ft = { class: "approval-drawer-title" }, Dt = { class: "base-approval-record" }, Tt = { class: "approval-steps" }, St = { class: "steps-wrapper" }, zt = { class: "step-icon" }, Rt = { class: "step-title" }, Ut = {
2590
2625
  key: 0,
2591
2626
  class: "current-step-info"
2592
- }, Ut = { class: "approval-records" }, ho = /* @__PURE__ */ ee({
2627
+ }, At = { class: "approval-records" }, yo = /* @__PURE__ */ ee({
2593
2628
  __name: "busi-approval-record",
2594
2629
  props: {
2595
2630
  modelValue: { type: Boolean, default: !1 },
@@ -2599,9 +2634,9 @@ const Ct = { class: "page-pagination" }, xt = /* @__PURE__ */ ee({
2599
2634
  size: { default: "50%" }
2600
2635
  },
2601
2636
  emits: ["update:modelValue"],
2602
- setup(e, { expose: F, emit: z }) {
2603
- const t = e, o = z, c = T(!1), i = T([]), v = T(null), g = T([]), m = T(), y = async (S) => {
2604
- c.value = !0, await new Promise((L) => setTimeout(L, 300)), console.log("获取审批记录,表单ID:", S, "流程ID:", t.procBid), i.value = [
2637
+ setup(e, { expose: E, emit: T }) {
2638
+ const l = e, o = T, r = D(!1), u = D([]), v = D(null), h = D([]), p = D(), y = async (z) => {
2639
+ r.value = !0, await new Promise((L) => setTimeout(L, 300)), console.log("获取审批记录,表单ID:", z, "流程ID:", l.procBid), u.value = [
2605
2640
  { title: "发起", status: "done", type: "start" },
2606
2641
  { title: "一级审批", status: "done" },
2607
2642
  { title: "三级审批", status: "active" },
@@ -2613,7 +2648,7 @@ const Ct = { class: "page-pagination" }, xt = /* @__PURE__ */ ee({
2613
2648
  stepName: "三级审批",
2614
2649
  handler: "裴奕琴(50215802)",
2615
2650
  arriveTime: "2026-01-30 11:07:38"
2616
- }, g.value = [
2651
+ }, h.value = [
2617
2652
  {
2618
2653
  stepName: "发起",
2619
2654
  approver: "李天翔(50226718)",
@@ -2630,64 +2665,64 @@ const Ct = { class: "page-pagination" }, xt = /* @__PURE__ */ ee({
2630
2665
  approveTime: "2026-01-30 11:07:37",
2631
2666
  comment: ""
2632
2667
  }
2633
- ], c.value = !1;
2668
+ ], r.value = !1;
2634
2669
  };
2635
2670
  De(() => {
2636
- t.modelValue && t.formId && y(t.formId);
2637
- }), Ce(() => t.formId, (S) => {
2638
- S && t.modelValue && y(S);
2671
+ l.modelValue && l.formId && y(l.formId);
2672
+ }), Ce(() => l.formId, (z) => {
2673
+ z && l.modelValue && y(z);
2639
2674
  });
2640
- const E = (S) => {
2641
- o("update:modelValue", S);
2642
- }, B = () => {
2643
- t.formId && y(t.formId);
2644
- }, h = (S) => {
2645
- m.value && m.value.scrollBy({
2646
- left: S * 200,
2675
+ const $ = (z) => {
2676
+ o("update:modelValue", z);
2677
+ }, k = () => {
2678
+ l.formId && y(l.formId);
2679
+ }, f = (z) => {
2680
+ p.value && p.value.scrollBy({
2681
+ left: z * 200,
2647
2682
  behavior: "smooth"
2648
2683
  });
2649
2684
  };
2650
- return F({
2651
- scrollSteps: h,
2685
+ return E({
2686
+ scrollSteps: f,
2652
2687
  refresh: () => {
2653
- t.formId && y(t.formId);
2688
+ l.formId && y(l.formId);
2654
2689
  }
2655
- }), (S, L) => {
2656
- const K = I("el-icon"), s = I("el-table-column"), l = I("el-table"), k = I("el-drawer");
2657
- return a(), A(k, {
2690
+ }), (z, L) => {
2691
+ const K = I("el-icon"), s = I("el-table-column"), t = I("el-table"), C = I("el-drawer");
2692
+ return a(), A(C, {
2658
2693
  "model-value": e.modelValue,
2659
2694
  direction: "rtl",
2660
2695
  size: e.size,
2661
2696
  "show-close": !1,
2662
2697
  class: "approval-drawer",
2663
- "onUpdate:modelValue": E,
2664
- onOpen: B
2698
+ "onUpdate:modelValue": $,
2699
+ onOpen: k
2665
2700
  }, {
2666
- header: u(() => [
2667
- d("div", Et, [
2668
- d("span", $t, O(e.title), 1),
2701
+ header: i(() => [
2702
+ d("div", $t, [
2703
+ d("span", Ft, O(e.title), 1),
2669
2704
  d("button", {
2670
2705
  class: "approval-drawer-close",
2671
- onClick: L[0] || (L[0] = (b) => E(!1))
2706
+ onClick: L[0] || (L[0] = (b) => $(!1))
2672
2707
  }, [
2673
2708
  n(K, null, {
2674
- default: u(() => [
2675
- n(U(Ve))
2709
+ default: i(() => [
2710
+ n(U(ke))
2676
2711
  ]),
2677
2712
  _: 1
2678
2713
  })
2679
2714
  ])
2680
2715
  ])
2681
2716
  ]),
2682
- default: u(() => [
2683
- d("div", Ft, [
2684
- d("div", Dt, [
2717
+ default: i(() => [
2718
+ d("div", Dt, [
2719
+ d("div", Tt, [
2685
2720
  d("div", {
2686
2721
  class: "steps-nav steps-nav-prev",
2687
- onClick: L[1] || (L[1] = (b) => h(-1))
2722
+ onClick: L[1] || (L[1] = (b) => f(-1))
2688
2723
  }, [
2689
2724
  n(K, null, {
2690
- default: u(() => [
2725
+ default: i(() => [
2691
2726
  n(U(hl))
2692
2727
  ]),
2693
2728
  _: 1
@@ -2696,10 +2731,10 @@ const Ct = { class: "page-pagination" }, xt = /* @__PURE__ */ ee({
2696
2731
  d("div", {
2697
2732
  class: "steps-container",
2698
2733
  ref_key: "stepsContainerRef",
2699
- ref: m
2734
+ ref: p
2700
2735
  }, [
2701
- d("div", Tt, [
2702
- (a(!0), p(G, null, ne(i.value, (b, X) => (a(), p(G, { key: X }, [
2736
+ d("div", St, [
2737
+ (a(!0), g(G, null, ne(u.value, (b, X) => (a(), g(G, { key: X }, [
2703
2738
  d("div", {
2704
2739
  class: ie(["step-item", {
2705
2740
  "step-item--done": b.status === "done",
@@ -2708,54 +2743,54 @@ const Ct = { class: "page-pagination" }, xt = /* @__PURE__ */ ee({
2708
2743
  "step-item--end": b.type === "end"
2709
2744
  }])
2710
2745
  }, [
2711
- d("div", St, [
2746
+ d("div", zt, [
2712
2747
  b.type === "start" ? (a(), A(K, { key: 0 }, {
2713
- default: u(() => [
2748
+ default: i(() => [
2714
2749
  n(U(bl))
2715
2750
  ]),
2716
2751
  _: 1
2717
2752
  })) : b.type === "end" ? (a(), A(K, { key: 1 }, {
2718
- default: u(() => [
2753
+ default: i(() => [
2719
2754
  n(U(yl))
2720
2755
  ]),
2721
2756
  _: 1
2722
2757
  })) : (a(), A(K, { key: 2 }, {
2723
- default: u(() => [
2758
+ default: i(() => [
2724
2759
  n(U(_l))
2725
2760
  ]),
2726
2761
  _: 1
2727
2762
  }))
2728
2763
  ]),
2729
- d("div", zt, O(b.title), 1)
2764
+ d("div", Rt, O(b.title), 1)
2730
2765
  ], 2),
2731
- X < i.value.length - 1 ? (a(), p("div", {
2766
+ X < u.value.length - 1 ? (a(), g("div", {
2732
2767
  key: 0,
2733
2768
  class: ie(["step-line", {
2734
2769
  "step-line--done": b.status === "done",
2735
2770
  "step-line--active": b.status === "active"
2736
2771
  }])
2737
- }, null, 2)) : W("", !0)
2772
+ }, null, 2)) : q("", !0)
2738
2773
  ], 64))), 128))
2739
2774
  ])
2740
2775
  ], 512),
2741
2776
  d("div", {
2742
2777
  class: "steps-nav steps-nav-next",
2743
- onClick: L[2] || (L[2] = (b) => h(1))
2778
+ onClick: L[2] || (L[2] = (b) => f(1))
2744
2779
  }, [
2745
2780
  n(K, null, {
2746
- default: u(() => [
2781
+ default: i(() => [
2747
2782
  n(U(wl))
2748
2783
  ]),
2749
2784
  _: 1
2750
2785
  })
2751
2786
  ])
2752
2787
  ]),
2753
- v.value ? (a(), p("div", Rt, [
2754
- n(l, {
2788
+ v.value ? (a(), g("div", Ut, [
2789
+ n(t, {
2755
2790
  data: [v.value],
2756
2791
  border: ""
2757
2792
  }, {
2758
- default: u(() => [
2793
+ default: i(() => [
2759
2794
  n(s, {
2760
2795
  prop: "stepName",
2761
2796
  label: "当前步骤",
@@ -2773,13 +2808,13 @@ const Ct = { class: "page-pagination" }, xt = /* @__PURE__ */ ee({
2773
2808
  ]),
2774
2809
  _: 1
2775
2810
  }, 8, ["data"])
2776
- ])) : W("", !0),
2777
- d("div", Ut, [
2778
- n(l, {
2779
- data: g.value,
2811
+ ])) : q("", !0),
2812
+ d("div", At, [
2813
+ n(t, {
2814
+ data: h.value,
2780
2815
  border: ""
2781
2816
  }, {
2782
- default: u(() => [
2817
+ default: i(() => [
2783
2818
  n(s, {
2784
2819
  prop: "stepName",
2785
2820
  label: "审批步骤",
@@ -2819,22 +2854,22 @@ const Ct = { class: "page-pagination" }, xt = /* @__PURE__ */ ee({
2819
2854
  }, 8, ["model-value", "size"]);
2820
2855
  };
2821
2856
  }
2822
- }), At = { class: "user-dialog__header" }, Pt = { class: "user-dialog__title" }, It = { class: "user-dialog__search" }, Lt = {
2857
+ }), Pt = { class: "user-dialog__header" }, It = { class: "user-dialog__title" }, Lt = { class: "user-dialog__search" }, Mt = {
2823
2858
  key: 0,
2824
2859
  class: "user-dialog__content"
2825
- }, Mt = ["onClick"], Nt = { class: "user-dialog__item-info" }, Ot = { class: "user-dialog__item-name" }, Ht = { class: "user-dialog__item-cardno" }, jt = { class: "user-dialog__item-desc" }, Kt = { class: "user-dialog__item-check" }, Yt = {
2860
+ }, Nt = ["onClick"], Ot = { class: "user-dialog__item-info" }, Ht = { class: "user-dialog__item-name" }, jt = { class: "user-dialog__item-cardno" }, Kt = { class: "user-dialog__item-desc" }, Yt = { class: "user-dialog__item-check" }, Wt = {
2826
2861
  key: 0,
2827
2862
  class: "user-dialog__empty"
2828
- }, Wt = {
2863
+ }, qt = {
2829
2864
  key: 1,
2830
2865
  class: "user-dialog__empty user-dialog__empty--hint"
2831
- }, qt = {
2866
+ }, Gt = {
2832
2867
  key: 1,
2833
2868
  class: "user-dialog__content"
2834
- }, Gt = ["onClick"], Xt = { class: "user-dialog__item-info" }, Jt = { class: "user-dialog__item-name" }, Qt = { class: "user-dialog__item-desc" }, Zt = ["onClick"], ea = { class: "user-dialog__item-info" }, la = { class: "user-dialog__item-name" }, ta = { class: "user-dialog__item-cardno" }, aa = { class: "user-dialog__item-desc" }, oa = { class: "user-dialog__item-check" }, na = {
2869
+ }, Xt = ["onClick"], Jt = { class: "user-dialog__item-info" }, Qt = { class: "user-dialog__item-name" }, Zt = { class: "user-dialog__item-desc" }, ea = ["onClick"], la = { class: "user-dialog__item-info" }, ta = { class: "user-dialog__item-name" }, aa = { class: "user-dialog__item-cardno" }, oa = { class: "user-dialog__item-desc" }, na = { class: "user-dialog__item-check" }, sa = {
2835
2870
  key: 0,
2836
2871
  class: "user-dialog__empty"
2837
- }, sa = { class: "user-dialog__footer" }, ua = { class: "user-dialog__selected" }, bo = /* @__PURE__ */ ee({
2872
+ }, ua = { class: "user-dialog__footer" }, ia = { class: "user-dialog__selected" }, _o = /* @__PURE__ */ ee({
2838
2873
  __name: "busi-user",
2839
2874
  props: {
2840
2875
  modelValue: {},
@@ -2846,92 +2881,92 @@ const Ct = { class: "page-pagination" }, xt = /* @__PURE__ */ ee({
2846
2881
  maxTagCount: { default: 3 }
2847
2882
  },
2848
2883
  emits: ["update:modelValue", "change"],
2849
- setup(e, { expose: F, emit: z }) {
2850
- const t = e, o = z, c = T(!1), i = T(""), v = T(!1), g = T(), m = T([]), y = T([]), E = T([]), B = T([]), h = T([]), x = T([]), S = q(() => {
2851
- var $;
2852
- return E.value.length === 0 ? "" : t.multiple ? E.value.map((R) => R.name).join(", ") : (($ = E.value[0]) == null ? void 0 : $.name) || "";
2853
- }), L = ($) => B.value.some((R) => R.cardno === $.cardno), K = async ($) => {
2884
+ setup(e, { expose: E, emit: T }) {
2885
+ const l = e, o = T, r = D(!1), u = D(""), v = D(!1), h = D(), p = D([]), y = D([]), $ = D([]), k = D([]), f = D([]), w = D([]), z = W(() => {
2886
+ var F;
2887
+ return $.value.length === 0 ? "" : l.multiple ? $.value.map((R) => R.name).join(", ") : ((F = $.value[0]) == null ? void 0 : F.name) || "";
2888
+ }), L = (F) => k.value.some((R) => R.cardno === F.cardno), K = async (F) => {
2854
2889
  var ce, ge;
2855
- const J = await he().post(`/proxy/sys/user/api/get_dept_user/${$}`);
2856
- m.value = ((ce = J == null ? void 0 : J.data) == null ? void 0 : ce.departments) || [], y.value = ((ge = J == null ? void 0 : J.data) == null ? void 0 : ge.users) || [];
2890
+ const J = await he().post(`/proxy/sys/user/api/get_dept_user/${F}`);
2891
+ p.value = ((ce = J == null ? void 0 : J.data) == null ? void 0 : ce.departments) || [], y.value = ((ge = J == null ? void 0 : J.data) == null ? void 0 : ge.users) || [];
2857
2892
  }, s = () => {
2858
- t.disabled || (c.value = !0, B.value = [...E.value], x.value = [{ dept_no: "10000001", dept_name: "迈瑞(Mindray)" }], K("10000001"));
2859
- }, l = () => {
2860
- c.value = !1, i.value = "", v.value = !1, h.value = [];
2861
- }, k = () => {
2893
+ l.disabled || (r.value = !0, k.value = [...$.value], w.value = [{ dept_no: "10000001", dept_name: "迈瑞(Mindray)" }], K("10000001"));
2894
+ }, t = () => {
2895
+ r.value = !1, u.value = "", v.value = !1, f.value = [];
2896
+ }, C = () => {
2862
2897
  v.value = !0;
2863
2898
  }, b = () => {
2864
- var $;
2865
- v.value = !1, i.value = "", h.value = [], ($ = g.value) == null || $.blur();
2866
- }, X = ($) => {
2867
- x.value.push({ dept_no: $.dept_no, dept_name: $.dept_name }), K($.dept_no);
2899
+ var F;
2900
+ v.value = !1, u.value = "", f.value = [], (F = h.value) == null || F.blur();
2901
+ }, X = (F) => {
2902
+ w.value.push({ dept_no: F.dept_no, dept_name: F.dept_name }), K(F.dept_no);
2868
2903
  }, M = () => {
2869
- if (x.value.length > 1) {
2870
- x.value.pop();
2871
- const $ = x.value[x.value.length - 1];
2872
- K($.dept_no);
2904
+ if (w.value.length > 1) {
2905
+ w.value.pop();
2906
+ const F = w.value[w.value.length - 1];
2907
+ K(F.dept_no);
2873
2908
  }
2874
- }, oe = ($) => {
2875
- if (t.multiple) {
2876
- const R = B.value.findIndex((J) => J.cardno === $.cardno);
2877
- R > -1 ? B.value.splice(R, 1) : B.value.push($);
2909
+ }, oe = (F) => {
2910
+ if (l.multiple) {
2911
+ const R = k.value.findIndex((J) => J.cardno === F.cardno);
2912
+ R > -1 ? k.value.splice(R, 1) : k.value.push(F);
2878
2913
  } else
2879
- B.value = [$];
2880
- }, de = ($) => {
2881
- const R = B.value.findIndex((J) => J.cardno === $.cardno);
2882
- R > -1 && B.value.splice(R, 1);
2914
+ k.value = [F];
2915
+ }, de = (F) => {
2916
+ const R = k.value.findIndex((J) => J.cardno === F.cardno);
2917
+ R > -1 && k.value.splice(R, 1);
2883
2918
  }, se = () => {
2884
- E.value = [...B.value], pe(), l();
2919
+ $.value = [...k.value], pe(), t();
2885
2920
  }, pe = () => {
2886
- if (t.multiple) {
2887
- const $ = E.value.map((R) => R.cardno);
2888
- o("update:modelValue", $), o("change", E.value);
2921
+ if (l.multiple) {
2922
+ const F = $.value.map((R) => R.cardno);
2923
+ o("update:modelValue", F), o("change", $.value);
2889
2924
  } else {
2890
- const $ = E.value[0];
2891
- o("update:modelValue", $ == null ? void 0 : $.cardno), o("change", $);
2925
+ const F = $.value[0];
2926
+ o("update:modelValue", F == null ? void 0 : F.cardno), o("change", F);
2892
2927
  }
2893
2928
  }, fe = () => {
2894
- E.value = [], o("update:modelValue", t.multiple ? [] : void 0), o("change", void 0);
2929
+ $.value = [], o("update:modelValue", l.multiple ? [] : void 0), o("change", void 0);
2895
2930
  };
2896
2931
  let re;
2897
2932
  const te = () => {
2898
2933
  clearTimeout(re), re = setTimeout(async () => {
2899
- if (!i.value.trim()) {
2900
- h.value = [];
2934
+ if (!u.value.trim()) {
2935
+ f.value = [];
2901
2936
  return;
2902
2937
  }
2903
- const R = await he().post("/proxy/sys/user/api/search_user", { keyword: i.value });
2904
- h.value = (R == null ? void 0 : R.data) || [];
2938
+ const R = await he().post("/proxy/sys/user/api/search_user", { keyword: u.value });
2939
+ f.value = (R == null ? void 0 : R.data) || [];
2905
2940
  }, 300);
2906
2941
  }, ve = () => {
2907
- i.value = "", h.value = [];
2942
+ u.value = "", f.value = [];
2908
2943
  };
2909
- return F({
2944
+ return E({
2910
2945
  openDialog: s,
2911
- getSelectedUsers: () => E.value,
2912
- getSelectedIds: () => E.value.map(($) => $.cardno),
2946
+ getSelectedUsers: () => $.value,
2947
+ getSelectedIds: () => $.value.map((F) => F.cardno),
2913
2948
  clear: fe
2914
- }), ($, R) => {
2915
- const J = I("el-icon"), ce = I("el-input"), ge = I("el-tag"), D = I("el-button"), w = I("el-dialog");
2916
- return a(), p("div", {
2949
+ }), (F, R) => {
2950
+ const J = I("el-icon"), ce = I("el-input"), ge = I("el-tag"), S = I("el-button"), V = I("el-dialog");
2951
+ return a(), g("div", {
2917
2952
  class: ie(["base-user", { "is-disabled": e.disabled }])
2918
2953
  }, [
2919
2954
  n(ce, {
2920
2955
  class: "base-user__search",
2921
- "model-value": S.value,
2956
+ "model-value": z.value,
2922
2957
  placeholder: e.placeholder,
2923
2958
  disabled: e.disabled,
2924
2959
  readonly: "",
2925
- clearable: e.clearable && E.value.length > 0,
2960
+ clearable: e.clearable && $.value.length > 0,
2926
2961
  onClick: s,
2927
2962
  onClear: fe
2928
2963
  }, {
2929
- suffix: u(() => [
2964
+ suffix: i(() => [
2930
2965
  n(J, {
2931
2966
  class: "base-user__icon",
2932
2967
  onClick: ye(s, ["stop"])
2933
2968
  }, {
2934
- default: u(() => [
2969
+ default: i(() => [
2935
2970
  n(U(be))
2936
2971
  ]),
2937
2972
  _: 1
@@ -2939,94 +2974,94 @@ const Ct = { class: "page-pagination" }, xt = /* @__PURE__ */ ee({
2939
2974
  ]),
2940
2975
  _: 1
2941
2976
  }, 8, ["model-value", "placeholder", "disabled", "clearable"]),
2942
- n(w, {
2943
- modelValue: c.value,
2944
- "onUpdate:modelValue": R[1] || (R[1] = (_) => c.value = _),
2977
+ n(V, {
2978
+ modelValue: r.value,
2979
+ "onUpdate:modelValue": R[1] || (R[1] = (_) => r.value = _),
2945
2980
  width: "960px",
2946
2981
  "close-on-click-modal": !1,
2947
2982
  "show-close": !1,
2948
2983
  class: "user-dialog",
2949
- onClose: l
2984
+ onClose: t
2950
2985
  }, {
2951
- header: u(() => [
2952
- d("div", At, [
2953
- x.value.length > 1 ? (a(), p("span", {
2986
+ header: i(() => [
2987
+ d("div", Pt, [
2988
+ w.value.length > 1 ? (a(), g("span", {
2954
2989
  key: 0,
2955
2990
  class: "user-dialog__back",
2956
2991
  onClick: M
2957
2992
  }, [
2958
2993
  n(J, null, {
2959
- default: u(() => [
2994
+ default: i(() => [
2960
2995
  n(U(qe))
2961
2996
  ]),
2962
2997
  _: 1
2963
2998
  })
2964
- ])) : W("", !0),
2965
- d("span", Pt, O(e.dialogTitle), 1),
2999
+ ])) : q("", !0),
3000
+ d("span", It, O(e.dialogTitle), 1),
2966
3001
  d("span", {
2967
3002
  class: "user-dialog__close",
2968
- onClick: l
3003
+ onClick: t
2969
3004
  }, [
2970
3005
  n(J, null, {
2971
- default: u(() => [
2972
- n(U(Ve))
3006
+ default: i(() => [
3007
+ n(U(ke))
2973
3008
  ]),
2974
3009
  _: 1
2975
3010
  })
2976
3011
  ])
2977
3012
  ])
2978
3013
  ]),
2979
- footer: u(() => [
2980
- d("div", sa, [
2981
- d("div", ua, [
2982
- (a(!0), p(G, null, ne(B.value, (_) => (a(), A(ge, {
3014
+ footer: i(() => [
3015
+ d("div", ua, [
3016
+ d("div", ia, [
3017
+ (a(!0), g(G, null, ne(k.value, (_) => (a(), A(ge, {
2983
3018
  key: _.cardno,
2984
3019
  type: "danger",
2985
3020
  closable: "",
2986
3021
  onClose: (Y) => de(_)
2987
3022
  }, {
2988
- default: u(() => [
3023
+ default: i(() => [
2989
3024
  N(O(_.name), 1)
2990
3025
  ]),
2991
3026
  _: 2
2992
3027
  }, 1032, ["onClose"]))), 128))
2993
3028
  ]),
2994
- n(D, {
3029
+ n(S, {
2995
3030
  type: "custom",
2996
3031
  onClick: se
2997
3032
  }, {
2998
- default: u(() => [
3033
+ default: i(() => [
2999
3034
  R[7] || (R[7] = N(" 确定", -1)),
3000
- B.value.length > 0 ? (a(), p(G, { key: 0 }, [
3001
- N("(" + O(B.value.length) + ")", 1)
3002
- ], 64)) : W("", !0)
3035
+ k.value.length > 0 ? (a(), g(G, { key: 0 }, [
3036
+ N("(" + O(k.value.length) + ")", 1)
3037
+ ], 64)) : q("", !0)
3003
3038
  ]),
3004
3039
  _: 1
3005
3040
  })
3006
3041
  ])
3007
3042
  ]),
3008
- default: u(() => [
3009
- d("div", It, [
3043
+ default: i(() => [
3044
+ d("div", Lt, [
3010
3045
  n(ce, {
3011
3046
  ref_key: "searchInputRef",
3012
- ref: g,
3013
- modelValue: i.value,
3014
- "onUpdate:modelValue": R[0] || (R[0] = (_) => i.value = _),
3047
+ ref: h,
3048
+ modelValue: u.value,
3049
+ "onUpdate:modelValue": R[0] || (R[0] = (_) => u.value = _),
3015
3050
  placeholder: "搜索",
3016
3051
  "prefix-icon": U(be),
3017
3052
  clearable: "",
3018
- onFocus: k,
3053
+ onFocus: C,
3019
3054
  onInput: te,
3020
3055
  onClear: ve
3021
3056
  }, null, 8, ["modelValue", "prefix-icon"]),
3022
- v.value ? (a(), p("span", {
3057
+ v.value ? (a(), g("span", {
3023
3058
  key: 0,
3024
3059
  class: "user-dialog__search-cancel",
3025
3060
  onClick: b
3026
- }, "取消")) : W("", !0)
3061
+ }, "取消")) : q("", !0)
3027
3062
  ]),
3028
- v.value ? (a(), p("div", Lt, [
3029
- (a(!0), p(G, null, ne(h.value, (_) => (a(), p("div", {
3063
+ v.value ? (a(), g("div", Mt, [
3064
+ (a(!0), g(G, null, ne(f.value, (_) => (a(), g("div", {
3030
3065
  key: _.cardno,
3031
3066
  class: "user-dialog__item user-dialog__item--user",
3032
3067
  onClick: (Y) => oe(_)
@@ -3034,31 +3069,31 @@ const Ct = { class: "page-pagination" }, xt = /* @__PURE__ */ ee({
3034
3069
  R[2] || (R[2] = d("div", { class: "user-dialog__item-avatar user-dialog__item-avatar--user" }, [
3035
3070
  d("i", { class: "iconfont icon-wode" })
3036
3071
  ], -1)),
3037
- d("div", Nt, [
3038
- d("div", Ot, [
3072
+ d("div", Ot, [
3073
+ d("div", Ht, [
3039
3074
  N(O(_.name) + " ", 1),
3040
- d("span", Ht, "(" + O(_.cardno) + ")", 1)
3075
+ d("span", jt, "(" + O(_.cardno) + ")", 1)
3041
3076
  ]),
3042
- d("div", jt, O(_.deptname), 1)
3077
+ d("div", Kt, O(_.deptname), 1)
3043
3078
  ]),
3044
- d("div", Kt, [
3079
+ d("div", Yt, [
3045
3080
  d("span", {
3046
3081
  class: ie(["user-dialog__checkbox", { "is-checked": L(_) }])
3047
3082
  }, null, 2)
3048
3083
  ])
3049
- ], 8, Mt))), 128)),
3050
- i.value && h.value.length === 0 ? (a(), p("div", Yt, " 未找到相关用户 ")) : W("", !0),
3051
- i.value ? W("", !0) : (a(), p("div", Wt, [
3084
+ ], 8, Nt))), 128)),
3085
+ u.value && f.value.length === 0 ? (a(), g("div", Wt, " 未找到相关用户 ")) : q("", !0),
3086
+ u.value ? q("", !0) : (a(), g("div", qt, [
3052
3087
  n(J, { class: "user-dialog__empty-icon" }, {
3053
- default: u(() => [
3088
+ default: i(() => [
3054
3089
  n(U(be))
3055
3090
  ]),
3056
3091
  _: 1
3057
3092
  }),
3058
3093
  R[3] || (R[3] = d("div", null, "请输入关键词搜索", -1))
3059
3094
  ]))
3060
- ])) : (a(), p("div", qt, [
3061
- (a(!0), p(G, null, ne(m.value, (_) => (a(), p("div", {
3095
+ ])) : (a(), g("div", Gt, [
3096
+ (a(!0), g(G, null, ne(p.value, (_) => (a(), g("div", {
3062
3097
  key: _.dept_no,
3063
3098
  class: "user-dialog__item user-dialog__item--dept",
3064
3099
  onClick: (Y) => X(_)
@@ -3066,15 +3101,15 @@ const Ct = { class: "page-pagination" }, xt = /* @__PURE__ */ ee({
3066
3101
  R[4] || (R[4] = d("div", { class: "user-dialog__item-avatar" }, [
3067
3102
  d("i", { class: "iconfont icon-zuzhibumen" })
3068
3103
  ], -1)),
3069
- d("div", Xt, [
3070
- d("div", Jt, O(_.dept_name), 1),
3071
- d("div", Qt, O(_.dept_pname), 1)
3104
+ d("div", Jt, [
3105
+ d("div", Qt, O(_.dept_name), 1),
3106
+ d("div", Zt, O(_.dept_pname), 1)
3072
3107
  ]),
3073
3108
  R[5] || (R[5] = d("div", { class: "user-dialog__item-arrow" }, [
3074
3109
  d("i", { class: "iconfont icon-arrow-right" })
3075
3110
  ], -1))
3076
- ], 8, Gt))), 128)),
3077
- (a(!0), p(G, null, ne(y.value, (_) => (a(), p("div", {
3111
+ ], 8, Xt))), 128)),
3112
+ (a(!0), g(G, null, ne(y.value, (_) => (a(), g("div", {
3078
3113
  key: _.cardno,
3079
3114
  class: "user-dialog__item user-dialog__item--user",
3080
3115
  onClick: (Y) => oe(_)
@@ -3082,20 +3117,20 @@ const Ct = { class: "page-pagination" }, xt = /* @__PURE__ */ ee({
3082
3117
  R[6] || (R[6] = d("div", { class: "user-dialog__item-avatar user-dialog__item-avatar--user" }, [
3083
3118
  d("i", { class: "iconfont icon-wode" })
3084
3119
  ], -1)),
3085
- d("div", ea, [
3086
- d("div", la, [
3120
+ d("div", la, [
3121
+ d("div", ta, [
3087
3122
  N(O(_.name) + " ", 1),
3088
- d("span", ta, "(" + O(_.cardno) + ")", 1)
3123
+ d("span", aa, "(" + O(_.cardno) + ")", 1)
3089
3124
  ]),
3090
- d("div", aa, O(_.deptname), 1)
3125
+ d("div", oa, O(_.deptname), 1)
3091
3126
  ]),
3092
- d("div", oa, [
3127
+ d("div", na, [
3093
3128
  d("span", {
3094
3129
  class: ie(["user-dialog__checkbox", { "is-checked": L(_) }])
3095
3130
  }, null, 2)
3096
3131
  ])
3097
- ], 8, Zt))), 128)),
3098
- m.value.length === 0 && y.value.length === 0 ? (a(), p("div", na, " 暂无数据 ")) : W("", !0)
3132
+ ], 8, ea))), 128)),
3133
+ p.value.length === 0 && y.value.length === 0 ? (a(), g("div", sa, " 暂无数据 ")) : q("", !0)
3099
3134
  ]))
3100
3135
  ]),
3101
3136
  _: 1
@@ -3103,25 +3138,25 @@ const Ct = { class: "page-pagination" }, xt = /* @__PURE__ */ ee({
3103
3138
  ], 2);
3104
3139
  };
3105
3140
  }
3106
- }), ia = { class: "dept-dialog__header" }, da = { class: "dept-dialog__title" }, ra = { class: "dept-dialog__search" }, ca = {
3141
+ }), da = { class: "dept-dialog__header" }, ra = { class: "dept-dialog__title" }, ca = { class: "dept-dialog__search" }, fa = {
3107
3142
  key: 0,
3108
3143
  class: "dept-dialog__content"
3109
- }, fa = ["onClick"], ma = { class: "dept-dialog__item-info" }, pa = { class: "dept-dialog__item-name" }, va = { class: "dept-dialog__item-desc" }, ga = { class: "dept-dialog__item-check" }, ha = {
3144
+ }, ma = ["onClick"], pa = { class: "dept-dialog__item-info" }, va = { class: "dept-dialog__item-name" }, ga = { class: "dept-dialog__item-desc" }, ha = { class: "dept-dialog__item-check" }, ba = {
3110
3145
  key: 0,
3111
3146
  class: "dept-dialog__empty"
3112
- }, ba = {
3147
+ }, ya = {
3113
3148
  key: 1,
3114
3149
  class: "dept-dialog__empty dept-dialog__empty--hint"
3115
- }, ya = {
3150
+ }, _a = {
3116
3151
  key: 1,
3117
3152
  class: "dept-dialog__content"
3118
- }, _a = ["onClick"], wa = ["onClick"], ka = { class: "dept-dialog__item-info" }, Va = { class: "dept-dialog__item-name" }, Ca = { class: "dept-dialog__item-desc" }, xa = {
3153
+ }, wa = ["onClick"], Va = ["onClick"], ka = { class: "dept-dialog__item-info" }, Ca = { class: "dept-dialog__item-name" }, xa = { class: "dept-dialog__item-desc" }, Ba = {
3119
3154
  key: 0,
3120
3155
  class: "dept-dialog__item-arrow"
3121
- }, Ba = {
3156
+ }, Ea = {
3122
3157
  key: 0,
3123
3158
  class: "dept-dialog__empty"
3124
- }, Ea = { class: "dept-dialog__footer" }, $a = { class: "dept-dialog__selected" }, yo = /* @__PURE__ */ ee({
3159
+ }, $a = { class: "dept-dialog__footer" }, Fa = { class: "dept-dialog__selected" }, wo = /* @__PURE__ */ ee({
3125
3160
  __name: "busi-dept",
3126
3161
  props: {
3127
3162
  modelValue: {},
@@ -3131,78 +3166,78 @@ const Ct = { class: "page-pagination" }, xt = /* @__PURE__ */ ee({
3131
3166
  dialogTitle: { default: "选择部门" }
3132
3167
  },
3133
3168
  emits: ["update:modelValue", "change"],
3134
- setup(e, { expose: F, emit: z }) {
3135
- const t = e, o = z, c = T(!1), i = T(""), v = T(!1), g = T(), m = T([]), y = T(null), E = T(null), B = T([]), h = T([]), x = q(() => {
3136
- var $;
3137
- return (($ = y.value) == null ? void 0 : $.dept_name) || "";
3138
- }), S = ($) => {
3169
+ setup(e, { expose: E, emit: T }) {
3170
+ const l = e, o = T, r = D(!1), u = D(""), v = D(!1), h = D(), p = D([]), y = D(null), $ = D(null), k = D([]), f = D([]), w = W(() => {
3171
+ var F;
3172
+ return ((F = y.value) == null ? void 0 : F.dept_name) || "";
3173
+ }), z = (F) => {
3139
3174
  var R;
3140
- return ((R = E.value) == null ? void 0 : R.dept_no) === $.dept_no;
3141
- }, L = ($) => {
3142
- he().post(`/proxy/sys/dept/api/get_sub_depts/${$}`).then((R) => {
3143
- m.value = R.data || [];
3175
+ return ((R = $.value) == null ? void 0 : R.dept_no) === F.dept_no;
3176
+ }, L = (F) => {
3177
+ he().post(`/proxy/sys/dept/api/get_sub_depts/${F}`).then((R) => {
3178
+ p.value = R.data || [];
3144
3179
  });
3145
3180
  }, K = () => {
3146
- t.disabled || (c.value = !0, E.value = y.value ? { ...y.value } : null, h.value = [{ dept_no: "10000001", dept_name: "迈瑞(Mindray)" }], L("10000001"));
3181
+ l.disabled || (r.value = !0, $.value = y.value ? { ...y.value } : null, f.value = [{ dept_no: "10000001", dept_name: "迈瑞(Mindray)" }], L("10000001"));
3147
3182
  }, s = () => {
3148
- c.value = !1, i.value = "", v.value = !1, B.value = [];
3149
- }, l = () => {
3183
+ r.value = !1, u.value = "", v.value = !1, k.value = [];
3184
+ }, t = () => {
3150
3185
  v.value = !0;
3151
- }, k = () => {
3152
- var $;
3153
- v.value = !1, i.value = "", B.value = [], ($ = g.value) == null || $.blur();
3154
- }, b = ($) => {
3155
- h.value.push({ dept_no: $.dept_no, dept_name: $.dept_name }), L($.dept_no);
3156
- }, X = ($) => {
3157
- $.has_children ? b($) : oe($);
3186
+ }, C = () => {
3187
+ var F;
3188
+ v.value = !1, u.value = "", k.value = [], (F = h.value) == null || F.blur();
3189
+ }, b = (F) => {
3190
+ f.value.push({ dept_no: F.dept_no, dept_name: F.dept_name }), L(F.dept_no);
3191
+ }, X = (F) => {
3192
+ F.has_children ? b(F) : oe(F);
3158
3193
  }, M = () => {
3159
- if (h.value.length > 1) {
3160
- h.value.pop();
3161
- const $ = h.value[h.value.length - 1];
3162
- L($.dept_no);
3194
+ if (f.value.length > 1) {
3195
+ f.value.pop();
3196
+ const F = f.value[f.value.length - 1];
3197
+ L(F.dept_no);
3163
3198
  }
3164
- }, oe = ($) => {
3165
- E.value = $;
3199
+ }, oe = (F) => {
3200
+ $.value = F;
3166
3201
  }, de = () => {
3167
- E.value = null;
3202
+ $.value = null;
3168
3203
  }, se = () => {
3169
- y.value = E.value ? { ...E.value } : null, pe(), s();
3204
+ y.value = $.value ? { ...$.value } : null, pe(), s();
3170
3205
  }, pe = () => {
3171
- var $;
3172
- o("update:modelValue", ($ = y.value) == null ? void 0 : $.dept_no), o("change", y.value || void 0);
3206
+ var F;
3207
+ o("update:modelValue", (F = y.value) == null ? void 0 : F.dept_no), o("change", y.value || void 0);
3173
3208
  }, fe = () => {
3174
3209
  y.value = null, o("update:modelValue", void 0), o("change", void 0);
3175
3210
  };
3176
3211
  let re;
3177
3212
  const te = () => {
3178
3213
  clearTimeout(re), re = setTimeout(() => {
3179
- if (!i.value.trim()) {
3180
- B.value = [];
3214
+ if (!u.value.trim()) {
3215
+ k.value = [];
3181
3216
  return;
3182
3217
  }
3183
- he().post("/proxy/sys/dept/api/search_dept", { keyword: i.value }).then(($) => {
3184
- B.value = $.data || [];
3218
+ he().post("/proxy/sys/dept/api/search_dept", { keyword: u.value }).then((F) => {
3219
+ k.value = F.data || [];
3185
3220
  });
3186
3221
  }, 300);
3187
3222
  }, ve = () => {
3188
- i.value = "", B.value = [];
3223
+ u.value = "", k.value = [];
3189
3224
  };
3190
- return F({
3225
+ return E({
3191
3226
  openDialog: K,
3192
3227
  getSelectedDept: () => y.value,
3193
3228
  getSelectedId: () => {
3194
- var $;
3195
- return ($ = y.value) == null ? void 0 : $.dept_no;
3229
+ var F;
3230
+ return (F = y.value) == null ? void 0 : F.dept_no;
3196
3231
  },
3197
3232
  clear: fe
3198
- }), ($, R) => {
3199
- const J = I("el-icon"), ce = I("el-input"), ge = I("el-tag"), D = I("el-button"), w = I("el-dialog");
3200
- return a(), p("div", {
3233
+ }), (F, R) => {
3234
+ const J = I("el-icon"), ce = I("el-input"), ge = I("el-tag"), S = I("el-button"), V = I("el-dialog");
3235
+ return a(), g("div", {
3201
3236
  class: ie(["busi-dept", { "is-disabled": e.disabled }])
3202
3237
  }, [
3203
3238
  n(ce, {
3204
3239
  class: "busi-dept__search",
3205
- "model-value": x.value,
3240
+ "model-value": w.value,
3206
3241
  placeholder: e.placeholder,
3207
3242
  disabled: e.disabled,
3208
3243
  readonly: "",
@@ -3210,12 +3245,12 @@ const Ct = { class: "page-pagination" }, xt = /* @__PURE__ */ ee({
3210
3245
  onClick: K,
3211
3246
  onClear: fe
3212
3247
  }, {
3213
- suffix: u(() => [
3248
+ suffix: i(() => [
3214
3249
  n(J, {
3215
3250
  class: "busi-dept__icon",
3216
3251
  onClick: ye(K, ["stop"])
3217
3252
  }, {
3218
- default: u(() => [
3253
+ default: i(() => [
3219
3254
  n(U(be))
3220
3255
  ]),
3221
3256
  _: 1
@@ -3223,9 +3258,9 @@ const Ct = { class: "page-pagination" }, xt = /* @__PURE__ */ ee({
3223
3258
  ]),
3224
3259
  _: 1
3225
3260
  }, 8, ["model-value", "placeholder", "disabled", "clearable"]),
3226
- n(w, {
3227
- modelValue: c.value,
3228
- "onUpdate:modelValue": R[1] || (R[1] = (_) => c.value = _),
3261
+ n(V, {
3262
+ modelValue: r.value,
3263
+ "onUpdate:modelValue": R[1] || (R[1] = (_) => r.value = _),
3229
3264
  width: "960px",
3230
3265
  "close-on-click-modal": !1,
3231
3266
  "show-close": !1,
@@ -3233,82 +3268,82 @@ const Ct = { class: "page-pagination" }, xt = /* @__PURE__ */ ee({
3233
3268
  class: "dept-dialog",
3234
3269
  onClose: s
3235
3270
  }, {
3236
- header: u(() => [
3237
- d("div", ia, [
3238
- h.value.length > 1 ? (a(), p("span", {
3271
+ header: i(() => [
3272
+ d("div", da, [
3273
+ f.value.length > 1 ? (a(), g("span", {
3239
3274
  key: 0,
3240
3275
  class: "dept-dialog__back",
3241
3276
  onClick: M
3242
3277
  }, [
3243
3278
  n(J, null, {
3244
- default: u(() => [
3279
+ default: i(() => [
3245
3280
  n(U(qe))
3246
3281
  ]),
3247
3282
  _: 1
3248
3283
  })
3249
- ])) : W("", !0),
3250
- d("span", da, O(e.dialogTitle), 1),
3284
+ ])) : q("", !0),
3285
+ d("span", ra, O(e.dialogTitle), 1),
3251
3286
  d("span", {
3252
3287
  class: "dept-dialog__close",
3253
3288
  onClick: s
3254
3289
  }, [
3255
3290
  n(J, null, {
3256
- default: u(() => [
3257
- n(U(Ve))
3291
+ default: i(() => [
3292
+ n(U(ke))
3258
3293
  ]),
3259
3294
  _: 1
3260
3295
  })
3261
3296
  ])
3262
3297
  ])
3263
3298
  ]),
3264
- footer: u(() => [
3265
- d("div", Ea, [
3266
- d("div", $a, [
3267
- E.value ? (a(), A(ge, {
3299
+ footer: i(() => [
3300
+ d("div", $a, [
3301
+ d("div", Fa, [
3302
+ $.value ? (a(), A(ge, {
3268
3303
  key: 0,
3269
3304
  type: "danger",
3270
3305
  closable: "",
3271
3306
  onClose: de
3272
3307
  }, {
3273
- default: u(() => [
3274
- N(O(E.value.dept_name), 1)
3308
+ default: i(() => [
3309
+ N(O($.value.dept_name), 1)
3275
3310
  ]),
3276
3311
  _: 1
3277
- })) : W("", !0)
3312
+ })) : q("", !0)
3278
3313
  ]),
3279
- n(D, {
3314
+ n(S, {
3280
3315
  type: "custom",
3281
3316
  onClick: se
3282
3317
  }, {
3283
- default: u(() => [...R[6] || (R[6] = [
3318
+ default: i(() => [...R[6] || (R[6] = [
3284
3319
  N("确定", -1)
3285
3320
  ])]),
3286
3321
  _: 1
3287
3322
  })
3288
3323
  ])
3289
3324
  ]),
3290
- default: u(() => [
3291
- d("div", ra, [
3325
+ default: i(() => [
3326
+ d("div", ca, [
3292
3327
  n(ce, {
3293
3328
  ref_key: "searchInputRef",
3294
- ref: g,
3295
- modelValue: i.value,
3296
- "onUpdate:modelValue": R[0] || (R[0] = (_) => i.value = _),
3329
+ ref: h,
3330
+ modelValue: u.value,
3331
+ "onUpdate:modelValue": R[0] || (R[0] = (_) => u.value = _),
3297
3332
  placeholder: "搜索部门",
3298
3333
  "prefix-icon": U(be),
3299
3334
  clearable: "",
3300
- onFocus: l,
3335
+ onFocus: t,
3301
3336
  onInput: te,
3302
3337
  onClear: ve
3303
3338
  }, null, 8, ["modelValue", "prefix-icon"]),
3304
- v.value ? (a(), p("span", {
3339
+ v.value ? (a(), g("span", {
3305
3340
  key: 0,
3306
3341
  class: "dept-dialog__search-cancel",
3307
- onClick: k
3308
- }, "取消")) : W("", !0)
3342
+ onClick: C
3343
+ }, "取消")) : q("", !0)
3309
3344
  ]),
3310
- v.value ? (a(), p("div", ca, [
3311
- (a(!0), p(G, null, ne(B.value, (_) => (a(), p("div", {
3345
+ v.value ? (a(), g("div", fa, [
3346
+ (a(!0), g(G, null, ne(k.value, (_) => (a(), g("div", {
3312
3347
  key: _.dept_no,
3313
3348
  class: "dept-dialog__item",
3314
3349
  onClick: (Y) => oe(_)
@@ -3316,28 +3351,28 @@ const Ct = { class: "page-pagination" }, xt = /* @__PURE__ */ ee({
3316
3351
  R[2] || (R[2] = d("div", { class: "dept-dialog__item-avatar" }, [
3317
3352
  d("i", { class: "iconfont icon-zuzhibumen" })
3318
3353
  ], -1)),
3319
- d("div", ma, [
3320
- d("div", pa, O(_.dept_name), 1),
3321
- d("div", va, O(_.dept_pname), 1)
3354
+ d("div", pa, [
3355
+ d("div", va, O(_.dept_name), 1),
3356
+ d("div", ga, O(_.dept_pname), 1)
3322
3357
  ]),
3323
- d("div", ga, [
3358
+ d("div", ha, [
3324
3359
  d("span", {
3325
- class: ie(["dept-dialog__checkbox", { "is-checked": S(_) }])
3360
+ class: ie(["dept-dialog__checkbox", { "is-checked": z(_) }])
3326
3361
  }, null, 2)
3327
3362
  ])
3328
- ], 8, fa))), 128)),
3329
- i.value && B.value.length === 0 ? (a(), p("div", ha, " 未找到相关部门 ")) : W("", !0),
3330
- i.value ? W("", !0) : (a(), p("div", ba, [
3363
+ ], 8, ma))), 128)),
3364
+ u.value && k.value.length === 0 ? (a(), g("div", ba, " 未找到相关部门 ")) : q("", !0),
3365
+ u.value ? q("", !0) : (a(), g("div", ya, [
3331
3366
  n(J, { class: "dept-dialog__empty-icon" }, {
3332
- default: u(() => [
3367
+ default: i(() => [
3333
3368
  n(U(be))
3334
3369
  ]),
3335
3370
  _: 1
3336
3371
  }),
3337
3372
  R[3] || (R[3] = d("div", null, "请输入关键词搜索", -1))
3338
3373
  ]))
3339
- ])) : (a(), p("div", ya, [
3340
- (a(!0), p(G, null, ne(m.value, (_) => (a(), p("div", {
3374
+ ])) : (a(), g("div", _a, [
3375
+ (a(!0), g(G, null, ne(p.value, (_) => (a(), g("div", {
3341
3376
  key: _.dept_no,
3342
3377
  class: "dept-dialog__item",
3343
3378
  onClick: (Y) => X(_)
@@ -3347,21 +3382,21 @@ const Ct = { class: "page-pagination" }, xt = /* @__PURE__ */ ee({
3347
3382
  onClick: ye((Y) => oe(_), ["stop"])
3348
3383
  }, [
3349
3384
  d("span", {
3350
- class: ie(["dept-dialog__checkbox", { "is-checked": S(_) }])
3385
+ class: ie(["dept-dialog__checkbox", { "is-checked": z(_) }])
3351
3386
  }, null, 2)
3352
- ], 8, wa),
3387
+ ], 8, Va),
3353
3388
  R[5] || (R[5] = d("div", { class: "dept-dialog__item-avatar" }, [
3354
3389
  d("i", { class: "iconfont icon-zuzhibumen" })
3355
3390
  ], -1)),
3356
3391
  d("div", ka, [
3357
- d("div", Va, O(_.dept_name), 1),
3358
- d("div", Ca, O(_.dept_pname), 1)
3392
+ d("div", Ca, O(_.dept_name), 1),
3393
+ d("div", xa, O(_.dept_pname), 1)
3359
3394
  ]),
3360
- _.has_children ? (a(), p("div", xa, [...R[4] || (R[4] = [
3395
+ _.has_children ? (a(), g("div", Ba, [...R[4] || (R[4] = [
3361
3396
  d("i", { class: "iconfont icon-arrow-right" }, null, -1)
3362
- ])])) : W("", !0)
3363
- ], 8, _a))), 128)),
3364
- m.value.length === 0 ? (a(), p("div", Ba, " 暂无数据 ")) : W("", !0)
3397
+ ])])) : q("", !0)
3398
+ ], 8, wa))), 128)),
3399
+ p.value.length === 0 ? (a(), g("div", Ea, " 暂无数据 ")) : q("", !0)
3365
3400
  ]))
3366
3401
  ]),
3367
3402
  _: 1
@@ -3369,10 +3404,10 @@ const Ct = { class: "page-pagination" }, xt = /* @__PURE__ */ ee({
3369
3404
  ], 2);
3370
3405
  };
3371
3406
  }
3372
- }), Fa = { class: "outuser-dialog__header" }, Da = { class: "outuser-dialog__filter" }, Ta = { class: "outuser-dialog__filter-item" }, Sa = { class: "outuser-dialog__filter-item" }, za = {
3407
+ }), Da = { class: "outuser-dialog__header" }, Ta = { class: "outuser-dialog__filter" }, Sa = { class: "outuser-dialog__filter-item" }, za = { class: "outuser-dialog__filter-item" }, Ra = {
3373
3408
  class: "outuser-dialog__table-wrapper",
3374
3409
  style: { height: "360px" }
3375
- }, Ra = { class: "outuser-dialog__pagination" }, Ua = { class: "outuser-dialog__footer" }, _o = /* @__PURE__ */ ee({
3410
+ }, Ua = { class: "outuser-dialog__pagination" }, Aa = { class: "outuser-dialog__footer" }, Vo = /* @__PURE__ */ ee({
3376
3411
  __name: "busi-outuser",
3377
3412
  props: {
3378
3413
  modelValue: {},
@@ -3381,69 +3416,69 @@ const Ct = { class: "page-pagination" }, xt = /* @__PURE__ */ ee({
3381
3416
  clearable: { type: Boolean, default: !0 }
3382
3417
  },
3383
3418
  emits: ["update:modelValue", "change"],
3384
- setup(e, { expose: F, emit: z }) {
3385
- const t = e, o = z, c = T(!1), i = T(!1), v = He({
3419
+ setup(e, { expose: E, emit: T }) {
3420
+ const l = e, o = T, r = D(!1), u = D(!1), v = He({
3386
3421
  username: "",
3387
3422
  userno: ""
3388
- }), g = He({
3423
+ }), h = He({
3389
3424
  currentPage: 1,
3390
3425
  pageSize: 10,
3391
3426
  total: 0
3392
- }), m = T([]), y = T(null), E = T(""), B = q(() => {
3393
- var k;
3394
- return ((k = y.value) == null ? void 0 : k.username) || "";
3395
- }), h = async () => {
3396
- i.value = !0;
3427
+ }), p = D([]), y = D(null), $ = D(""), k = W(() => {
3428
+ var C;
3429
+ return ((C = y.value) == null ? void 0 : C.username) || "";
3430
+ }), f = async () => {
3431
+ u.value = !0;
3397
3432
  try {
3398
- const k = [v.username, v.userno].filter(Boolean).join(" "), b = await he().post("/proxy/sys/outuser/api/list", {
3399
- currentPage: g.currentPage,
3400
- pageSize: g.pageSize,
3401
- keywords: k
3433
+ const C = [v.username, v.userno].filter(Boolean).join(" "), b = await he().post("/proxy/sys/outuser/api/list", {
3434
+ currentPage: h.currentPage,
3435
+ pageSize: h.pageSize,
3436
+ keywords: C
3402
3437
  });
3403
- m.value = b.data.items || [], g.total = b.data.total_items || 0;
3438
+ p.value = b.data.items || [], h.total = b.data.total_items || 0;
3404
3439
  } finally {
3405
- i.value = !1;
3440
+ u.value = !1;
3406
3441
  }
3407
- }, x = () => {
3408
- var k;
3409
- t.disabled || (c.value = !0, E.value = ((k = y.value) == null ? void 0 : k.fid) || "", g.currentPage = 1, v.username = "", v.userno = "", h());
3410
- }, S = () => {
3411
- c.value = !1;
3442
+ }, w = () => {
3443
+ var C;
3444
+ l.disabled || (r.value = !0, $.value = ((C = y.value) == null ? void 0 : C.fid) || "", h.currentPage = 1, v.username = "", v.userno = "", f());
3445
+ }, z = () => {
3446
+ r.value = !1;
3412
3447
  }, L = () => {
3413
- g.currentPage = 1, h();
3414
- }, K = (k) => {
3415
- E.value = k.fid;
3448
+ h.currentPage = 1, f();
3449
+ }, K = (C) => {
3450
+ $.value = C.fid;
3416
3451
  }, s = () => {
3417
- const k = m.value.find((b) => b.fid === E.value);
3418
- k && (y.value = k, o("update:modelValue", k.userno), o("change", k)), S();
3419
- }, l = () => {
3452
+ const C = p.value.find((b) => b.fid === $.value);
3453
+ C && (y.value = C, o("update:modelValue", C.userno), o("change", C)), z();
3454
+ }, t = () => {
3420
3455
  y.value = null, o("update:modelValue", void 0), o("change", void 0);
3421
3456
  };
3422
- return F({
3423
- openDialog: x,
3457
+ return E({
3458
+ openDialog: w,
3424
3459
  getSelectedUser: () => y.value,
3425
- clear: l
3426
- }), (k, b) => {
3460
+ clear: t
3461
+ }), (C, b) => {
3427
3462
  const X = I("el-icon"), M = I("el-input"), oe = I("el-button"), de = I("el-radio"), se = I("el-table-column"), pe = I("el-table"), fe = I("el-dialog"), re = Ke("loading");
3428
- return a(), p("div", {
3463
+ return a(), g("div", {
3429
3464
  class: ie(["busi-outuser", { "is-disabled": e.disabled }])
3430
3465
  }, [
3431
3466
  n(M, {
3432
3467
  class: "busi-outuser__search",
3433
- "model-value": B.value,
3468
+ "model-value": k.value,
3434
3469
  placeholder: e.placeholder,
3435
3470
  disabled: e.disabled,
3436
3471
  readonly: "",
3437
3472
  clearable: e.clearable && y.value !== null,
3438
- onClick: x,
3439
- onClear: l
3473
+ onClick: w,
3474
+ onClear: t
3440
3475
  }, {
3441
- suffix: u(() => [
3476
+ suffix: i(() => [
3442
3477
  n(X, {
3443
3478
  class: "busi-outuser__icon",
3444
- onClick: ye(x, ["stop"])
3479
+ onClick: ye(w, ["stop"])
3445
3480
  }, {
3446
- default: u(() => [
3481
+ default: i(() => [
3447
3482
  n(U(be))
3448
3483
  ]),
3449
3484
  _: 1
@@ -3452,35 +3487,35 @@ const Ct = { class: "page-pagination" }, xt = /* @__PURE__ */ ee({
3452
3487
  _: 1
3453
3488
  }, 8, ["model-value", "placeholder", "disabled", "clearable"]),
3454
3489
  n(fe, {
3455
- modelValue: c.value,
3456
- "onUpdate:modelValue": b[6] || (b[6] = (te) => c.value = te),
3490
+ modelValue: r.value,
3491
+ "onUpdate:modelValue": b[6] || (b[6] = (te) => r.value = te),
3457
3492
  width: "960px",
3458
3493
  "close-on-click-modal": !1,
3459
3494
  "show-close": !1,
3460
3495
  "align-center": "",
3461
3496
  class: "outuser-dialog",
3462
- onClose: S
3497
+ onClose: z
3463
3498
  }, {
3464
- header: u(() => [
3465
- d("div", Fa, [
3499
+ header: i(() => [
3500
+ d("div", Da, [
3466
3501
  b[7] || (b[7] = d("span", { class: "outuser-dialog__title" }, "选择外包顾问", -1)),
3467
3502
  d("span", {
3468
3503
  class: "outuser-dialog__close",
3469
- onClick: S
3504
+ onClick: z
3470
3505
  }, [
3471
3506
  n(X, null, {
3472
- default: u(() => [
3473
- n(U(Ve))
3507
+ default: i(() => [
3508
+ n(U(ke))
3474
3509
  ]),
3475
3510
  _: 1
3476
3511
  })
3477
3512
  ])
3478
3513
  ])
3479
3514
  ]),
3480
- footer: u(() => [
3481
- d("div", Ua, [
3482
- n(oe, { onClick: S }, {
3483
- default: u(() => [...b[11] || (b[11] = [
3515
+ footer: i(() => [
3516
+ d("div", Aa, [
3517
+ n(oe, { onClick: z }, {
3518
+ default: i(() => [...b[11] || (b[11] = [
3484
3519
  N("取消", -1)
3485
3520
  ])]),
3486
3521
  _: 1
@@ -3489,16 +3524,16 @@ const Ct = { class: "page-pagination" }, xt = /* @__PURE__ */ ee({
3489
3524
  type: "custom",
3490
3525
  onClick: s
3491
3526
  }, {
3492
- default: u(() => [...b[12] || (b[12] = [
3527
+ default: i(() => [...b[12] || (b[12] = [
3493
3528
  N("确定", -1)
3494
3529
  ])]),
3495
3530
  _: 1
3496
3531
  })
3497
3532
  ])
3498
3533
  ]),
3499
- default: u(() => [
3500
- d("div", Da, [
3501
- d("div", Ta, [
3534
+ default: i(() => [
3535
+ d("div", Ta, [
3536
+ d("div", Sa, [
3502
3537
  b[8] || (b[8] = d("span", { class: "outuser-dialog__filter-label" }, "姓名", -1)),
3503
3538
  n(M, {
3504
3539
  modelValue: v.username,
@@ -3507,7 +3542,7 @@ const Ct = { class: "page-pagination" }, xt = /* @__PURE__ */ ee({
3507
3542
  clearable: ""
3508
3543
  }, null, 8, ["modelValue"])
3509
3544
  ]),
3510
- d("div", Sa, [
3545
+ d("div", za, [
3511
3546
  b[9] || (b[9] = d("span", { class: "outuser-dialog__filter-label" }, "工号", -1)),
3512
3547
  n(M, {
3513
3548
  modelValue: v.userno,
@@ -3517,30 +3552,30 @@ const Ct = { class: "page-pagination" }, xt = /* @__PURE__ */ ee({
3517
3552
  }, null, 8, ["modelValue"])
3518
3553
  ]),
3519
3554
  n(oe, { onClick: L }, {
3520
- default: u(() => [...b[10] || (b[10] = [
3555
+ default: i(() => [...b[10] || (b[10] = [
3521
3556
  d("i", { class: "iconfont icon-search" }, null, -1),
3522
3557
  N(" 搜 索 ", -1)
3523
3558
  ])]),
3524
3559
  _: 1
3525
3560
  })
3526
3561
  ]),
3527
- d("div", za, [
3562
+ d("div", Ra, [
3528
3563
  Ye((a(), A(pe, {
3529
- data: m.value,
3564
+ data: p.value,
3530
3565
  border: "",
3531
3566
  class: "outuser-dialog__table",
3532
3567
  onRowClick: K
3533
3568
  }, {
3534
- default: u(() => [
3569
+ default: i(() => [
3535
3570
  n(se, {
3536
3571
  label: "选择",
3537
3572
  width: "60",
3538
3573
  align: "center"
3539
3574
  }, {
3540
- default: u(({ row: te }) => [
3575
+ default: i(({ row: te }) => [
3541
3576
  n(de, {
3542
- modelValue: E.value,
3543
- "onUpdate:modelValue": b[2] || (b[2] = (ve) => E.value = ve),
3577
+ modelValue: $.value,
3578
+ "onUpdate:modelValue": b[2] || (b[2] = (ve) => $.value = ve),
3544
3579
  value: te.fid,
3545
3580
  onClick: b[3] || (b[3] = ye(() => {
3546
3581
  }, ["stop"]))
@@ -3581,18 +3616,18 @@ const Ct = { class: "page-pagination" }, xt = /* @__PURE__ */ ee({
3581
3616
  ]),
3582
3617
  _: 1
3583
3618
  }, 8, ["data"])), [
3584
- [re, i.value]
3619
+ [re, u.value]
3585
3620
  ])
3586
3621
  ]),
3587
- d("div", Ra, [
3588
- n(Bt, {
3589
- page: g.currentPage,
3590
- "onUpdate:page": b[4] || (b[4] = (te) => g.currentPage = te),
3591
- size: g.pageSize,
3592
- "onUpdate:size": b[5] || (b[5] = (te) => g.pageSize = te),
3593
- total: g.total,
3622
+ d("div", Ua, [
3623
+ n(Et, {
3624
+ page: h.currentPage,
3625
+ "onUpdate:page": b[4] || (b[4] = (te) => h.currentPage = te),
3626
+ size: h.pageSize,
3627
+ "onUpdate:size": b[5] || (b[5] = (te) => h.pageSize = te),
3628
+ total: h.total,
3594
3629
  layout: "sizes, prev, pager, next, jumper, total",
3595
- onChange: h
3630
+ onChange: f
3596
3631
  }, null, 8, ["page", "size", "total"])
3597
3632
  ])
3598
3633
  ]),
@@ -3601,25 +3636,25 @@ const Ct = { class: "page-pagination" }, xt = /* @__PURE__ */ ee({
3601
3636
  ], 2);
3602
3637
  };
3603
3638
  }
3604
- }), Aa = { class: "base-file-preview" }, Pa = {
3639
+ }), Pa = { class: "base-file-preview" }, Ia = {
3605
3640
  key: 0,
3606
3641
  class: "preview-loading"
3607
- }, Ia = {
3642
+ }, La = {
3608
3643
  key: 0,
3609
3644
  class: "preview-content preview-image"
3610
- }, La = ["src", "alt"], Ma = {
3645
+ }, Ma = ["src", "alt"], Na = {
3611
3646
  key: 1,
3612
3647
  class: "preview-content preview-pdf"
3613
- }, Na = {
3648
+ }, Oa = {
3614
3649
  key: 2,
3615
3650
  class: "preview-content preview-docx"
3616
- }, Oa = {
3651
+ }, Ha = {
3617
3652
  key: 3,
3618
3653
  class: "preview-content preview-excel"
3619
- }, Ha = {
3654
+ }, ja = {
3620
3655
  key: 4,
3621
3656
  class: "preview-content preview-unsupported"
3622
- }, ja = /* @__PURE__ */ ee({
3657
+ }, Ka = /* @__PURE__ */ ee({
3623
3658
  __name: "base-file-preview",
3624
3659
  props: {
3625
3660
  src: {},
@@ -3628,59 +3663,59 @@ const Ct = { class: "page-pagination" }, xt = /* @__PURE__ */ ee({
3628
3663
  loading: { type: Boolean, default: !1 }
3629
3664
  },
3630
3665
  emits: ["rendered", "error"],
3631
- setup(e, { expose: F, emit: z }) {
3632
- const t = $e(async () => (await Promise.resolve({ }), (await import("./vue-office-docx-q6qJ2vqb.js")).default)), o = $e(async () => (await Promise.resolve({ }), (await import("./vue-office-excel-B3pq0cRz.js")).default)), c = $e(async () => (await import("./vue-office-pdf-DOPbwMbO.js")).default), i = e, v = z, g = q(() => {
3633
- const B = i.fileExt.toLowerCase();
3634
- return ["png", "jpg", "jpeg", "gif", "bmp", "webp"].includes(B) ? "image" : B === "pdf" ? "pdf" : ["doc", "docx"].includes(B) ? "docx" : ["xls", "xlsx"].includes(B) ? "excel" : "unsupported";
3635
- }), m = q(() => g.value !== "unsupported");
3666
+ setup(e, { expose: E, emit: T }) {
3667
+ const l = $e(async () => (await Promise.resolve({ }), (await import("./vue-office-docx-q6qJ2vqb.js")).default)), o = $e(async () => (await Promise.resolve({ }), (await import("./vue-office-excel-B3pq0cRz.js")).default)), r = $e(async () => (await import("./vue-office-pdf-DOPbwMbO.js")).default), u = e, v = T, h = W(() => {
3668
+ const k = u.fileExt.toLowerCase();
3669
+ return ["png", "jpg", "jpeg", "gif", "bmp", "webp"].includes(k) ? "image" : k === "pdf" ? "pdf" : ["doc", "docx"].includes(k) ? "docx" : ["xls", "xlsx"].includes(k) ? "excel" : "unsupported";
3670
+ }), p = W(() => h.value !== "unsupported");
3636
3671
  function y() {
3637
3672
  v("rendered");
3638
3673
  }
3639
- function E(B) {
3640
- v("error", B);
3674
+ function $(k) {
3675
+ v("error", k);
3641
3676
  }
3642
- return F({
3643
- previewType: g,
3644
- isSupported: m
3645
- }), (B, h) => {
3646
- const x = I("el-icon"), S = I("el-empty");
3647
- return a(), p("div", Aa, [
3648
- e.loading ? (a(), p("div", Pa, [
3649
- n(x, { class: "loading-icon" }, {
3650
- default: u(() => [
3651
- n(U(kl))
3677
+ return E({
3678
+ previewType: h,
3679
+ isSupported: p
3680
+ }), (k, f) => {
3681
+ const w = I("el-icon"), z = I("el-empty");
3682
+ return a(), g("div", Pa, [
3683
+ e.loading ? (a(), g("div", Ia, [
3684
+ n(w, { class: "loading-icon" }, {
3685
+ default: i(() => [
3686
+ n(U(Vl))
3652
3687
  ]),
3653
3688
  _: 1
3654
3689
  }),
3655
- h[0] || (h[0] = d("span", null, "加载中...", -1))
3656
- ])) : (a(), p(G, { key: 1 }, [
3657
- g.value === "image" ? (a(), p("div", Ia, [
3690
+ f[0] || (f[0] = d("span", null, "加载中...", -1))
3691
+ ])) : (a(), g(G, { key: 1 }, [
3692
+ h.value === "image" ? (a(), g("div", La, [
3658
3693
  d("img", {
3659
3694
  src: e.src,
3660
3695
  alt: e.fileName
3661
- }, null, 8, La)
3662
- ])) : g.value === "pdf" ? (a(), p("div", Ma, [
3663
- n(U(c), {
3696
+ }, null, 8, Ma)
3697
+ ])) : h.value === "pdf" ? (a(), g("div", Na, [
3698
+ n(U(r), {
3664
3699
  src: e.src,
3665
3700
  onRendered: y,
3666
- onError: E
3701
+ onError: $
3667
3702
  }, null, 8, ["src"])
3668
- ])) : g.value === "docx" ? (a(), p("div", Na, [
3669
- n(U(t), {
3703
+ ])) : h.value === "docx" ? (a(), g("div", Oa, [
3704
+ n(U(l), {
3670
3705
  src: e.src,
3671
3706
  onRendered: y,
3672
- onError: E
3707
+ onError: $
3673
3708
  }, null, 8, ["src"])
3674
- ])) : g.value === "excel" ? (a(), p("div", Oa, [
3709
+ ])) : h.value === "excel" ? (a(), g("div", Ha, [
3675
3710
  n(U(o), {
3676
3711
  src: e.src,
3677
3712
  onRendered: y,
3678
- onError: E
3713
+ onError: $
3679
3714
  }, null, 8, ["src"])
3680
- ])) : (a(), p("div", Ha, [
3681
- n(S, { description: "该文件类型不支持在线预览" }, {
3682
- default: u(() => [
3683
- ke(B.$slots, "unsupported-action", {}, void 0, !0)
3715
+ ])) : (a(), g("div", ja, [
3716
+ n(z, { description: "该文件类型不支持在线预览" }, {
3717
+ default: i(() => [
3718
+ Ve(k.$slots, "unsupported-action", {}, void 0, !0)
3684
3719
  ]),
3685
3720
  _: 3
3686
3721
  })
@@ -3689,13 +3724,13 @@ const Ct = { class: "page-pagination" }, xt = /* @__PURE__ */ ee({
3689
3724
  ]);
3690
3725
  };
3691
3726
  }
3692
- }), Ka = /* @__PURE__ */ xe(ja, [["__scopeId", "data-v-6e771bad"]]), Ya = { class: "file-preview-page" }, Wa = {
3727
+ }), Ya = /* @__PURE__ */ xe(Ka, [["__scopeId", "data-v-6e771bad"]]), Wa = { class: "file-preview-page" }, qa = {
3693
3728
  key: 0,
3694
3729
  class: "preview-error"
3695
- }, qa = {
3730
+ }, Ga = {
3696
3731
  key: 1,
3697
3732
  class: "preview-body"
3698
- }, Ga = /* @__PURE__ */ ee({
3733
+ }, Xa = /* @__PURE__ */ ee({
3699
3734
  __name: "busi-file-preview",
3700
3735
  props: {
3701
3736
  fid: {},
@@ -3704,13 +3739,13 @@ const Ct = { class: "page-pagination" }, xt = /* @__PURE__ */ ee({
3704
3739
  watermarkText: { default: "" }
3705
3740
  },
3706
3741
  setup(e) {
3707
- const F = e, z = T(!0), t = T(""), o = T(""), c = T();
3708
- function i() {
3709
- if (!c.value || !F.watermarkText) return;
3710
- const m = document.createElement("canvas"), y = m.getContext("2d");
3711
- y && (m.width = 200, m.height = 150, y.font = "16px Arial", y.fillStyle = "rgba(0, 0, 0, 0.12)", y.textAlign = "center", y.textBaseline = "middle", y.translate(m.width / 2, m.height / 2), y.rotate(-25 * Math.PI / 180), y.fillText(F.watermarkText, 0, 0), c.value.style.backgroundImage = `url(${m.toDataURL("image/png")})`);
3742
+ const E = e, T = D(!0), l = D(""), o = D(""), r = D();
3743
+ function u() {
3744
+ if (!r.value || !E.watermarkText) return;
3745
+ const p = document.createElement("canvas"), y = p.getContext("2d");
3746
+ y && (p.width = 200, p.height = 150, y.font = "16px Arial", y.fillStyle = "rgba(0, 0, 0, 0.12)", y.textAlign = "center", y.textBaseline = "middle", y.translate(p.width / 2, p.height / 2), y.rotate(-25 * Math.PI / 180), y.fillText(E.watermarkText, 0, 0), r.value.style.backgroundImage = `url(${p.toDataURL("image/png")})`);
3712
3747
  }
3713
- function v(m) {
3748
+ function v(p) {
3714
3749
  return {
3715
3750
  pdf: "application/pdf",
3716
3751
  png: "image/png",
@@ -3723,53 +3758,53 @@ const Ct = { class: "page-pagination" }, xt = /* @__PURE__ */ ee({
3723
3758
  docx: "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
3724
3759
  xls: "application/vnd.ms-excel",
3725
3760
  xlsx: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
3726
- }[m.toLowerCase()] || "application/octet-stream";
3761
+ }[p.toLowerCase()] || "application/octet-stream";
3727
3762
  }
3728
- async function g() {
3729
- if (!F.fid) {
3730
- t.value = "文件ID不能为空", z.value = !1;
3763
+ async function h() {
3764
+ if (!E.fid) {
3765
+ l.value = "文件ID不能为空", T.value = !1;
3731
3766
  return;
3732
3767
  }
3733
- F.fileName && (document.title = `预览 - ${F.fileName}`);
3768
+ E.fileName && (document.title = `预览 - ${E.fileName}`);
3734
3769
  try {
3735
- const y = await he().get(`/proxy/wf/attachment/api/preview/${F.fid}`, {
3770
+ const y = await he().get(`/proxy/wf/attachment/api/preview/${E.fid}`, {
3736
3771
  responseType: "blob"
3737
- }), E = v(F.fileExt), B = new Blob([y], { type: E });
3738
- o.value = window.URL.createObjectURL(B);
3739
- } catch (m) {
3740
- console.error("加载文件失败:", m), t.value = "加载文件失败,请稍后重试";
3772
+ }), $ = v(E.fileExt), k = new Blob([y], { type: $ });
3773
+ o.value = window.URL.createObjectURL(k);
3774
+ } catch (p) {
3775
+ console.error("加载文件失败:", p), l.value = "加载文件失败,请稍后重试";
3741
3776
  } finally {
3742
- z.value = !1;
3777
+ T.value = !1;
3743
3778
  }
3744
3779
  }
3745
3780
  return Qe(() => {
3746
3781
  o.value && window.URL.revokeObjectURL(o.value);
3747
- }), Ce(() => F.fid, (m) => {
3748
- m && (z.value = !0, t.value = "", o.value && (window.URL.revokeObjectURL(o.value), o.value = ""), g());
3782
+ }), Ce(() => E.fid, (p) => {
3783
+ p && (T.value = !0, l.value = "", o.value && (window.URL.revokeObjectURL(o.value), o.value = ""), h());
3749
3784
  }), De(() => {
3750
- i(), g();
3751
- }), (m, y) => {
3752
- const E = I("el-empty");
3753
- return a(), p("div", Ya, [
3785
+ u(), h();
3786
+ }), (p, y) => {
3787
+ const $ = I("el-empty");
3788
+ return a(), g("div", Wa, [
3754
3789
  d("div", {
3755
3790
  class: "watermark-layer",
3756
3791
  ref_key: "watermarkRef",
3757
- ref: c
3792
+ ref: r
3758
3793
  }, null, 512),
3759
- t.value ? (a(), p("div", Wa, [
3760
- n(E, { description: t.value }, null, 8, ["description"])
3761
- ])) : (a(), p("div", qa, [
3762
- n(Ka, {
3794
+ l.value ? (a(), g("div", qa, [
3795
+ n($, { description: l.value }, null, 8, ["description"])
3796
+ ])) : (a(), g("div", Ga, [
3797
+ n(Ya, {
3763
3798
  src: o.value,
3764
- "file-ext": F.fileExt,
3765
- "file-name": F.fileName,
3766
- loading: z.value
3799
+ "file-ext": E.fileExt,
3800
+ "file-name": E.fileName,
3801
+ loading: T.value
3767
3802
  }, null, 8, ["src", "file-ext", "file-name", "loading"])
3768
3803
  ]))
3769
3804
  ]);
3770
3805
  };
3771
3806
  }
3772
- }), wo = /* @__PURE__ */ xe(Ga, [["__scopeId", "data-v-851b5060"]]), Xa = { class: "workflow-process-page" }, Ja = { class: "flow-module-title" }, Qa = { class: "flow-page-grid" }, Za = /* @__PURE__ */ ee({
3807
+ }), ko = /* @__PURE__ */ xe(Xa, [["__scopeId", "data-v-851b5060"]]), Ja = { class: "workflow-process-page" }, Qa = { class: "flow-module-title" }, Za = { class: "flow-page-grid" }, eo = /* @__PURE__ */ ee({
3773
3808
  __name: "busi-workflow-process",
3774
3809
  props: {
3775
3810
  menuTree: {},
@@ -3777,79 +3812,79 @@ const Ct = { class: "page-pagination" }, xt = /* @__PURE__ */ ee({
3777
3812
  currentPath: { default: "" }
3778
3813
  },
3779
3814
  setup(e) {
3780
- const F = e, z = Cl(), t = xl(), o = Number.MAX_SAFE_INTEGER, c = (s) => {
3815
+ const E = e, T = Cl(), l = xl(), o = Number.MAX_SAFE_INTEGER, r = (s) => {
3781
3816
  if (!s) return "";
3782
- const [l] = s.split("?");
3783
- return l ? l.startsWith("/") ? l : `/${l}` : "";
3784
- }, i = (s = [], l) => {
3785
- var k;
3817
+ const [t] = s.split("?");
3818
+ return t ? t.startsWith("/") ? t : `/${t}` : "";
3819
+ }, u = (s = [], t) => {
3820
+ var C;
3786
3821
  for (const b of s) {
3787
- if (l(b)) return b;
3788
- if ((k = b.children) != null && k.length) {
3789
- const X = i(b.children, l);
3822
+ if (t(b)) return b;
3823
+ if ((C = b.children) != null && C.length) {
3824
+ const X = u(b.children, t);
3790
3825
  if (X) return X;
3791
3826
  }
3792
3827
  }
3793
3828
  return null;
3794
- }, v = (s, l) => {
3795
- const k = c(l);
3796
- return k ? i(s, (b) => c(b.path) === k) : null;
3797
- }, g = (s) => s == null ? "" : Array.isArray(s) ? g(s[0]) : String(s), m = (s, l) => l ? i(s, (k) => g(k.id) === l) : null, y = (s = []) => [...s].sort((l, k) => {
3798
- const b = Number(l.order_num ?? o), X = Number(k.order_num ?? o);
3829
+ }, v = (s, t) => {
3830
+ const C = r(t);
3831
+ return C ? u(s, (b) => r(b.path) === C) : null;
3832
+ }, h = (s) => s == null ? "" : Array.isArray(s) ? h(s[0]) : String(s), p = (s, t) => t ? u(s, (C) => h(C.id) === t) : null, y = (s = []) => [...s].sort((t, C) => {
3833
+ const b = Number(t.order_num ?? o), X = Number(C.order_num ?? o);
3799
3834
  return b - X;
3800
- }), E = (s = []) => y(s).filter((l) => l.category === "flow-page" && !!l.path).map((l) => ({
3801
- id: l.id ?? l.path,
3802
- name: l.name || "未命名流程",
3803
- path: c(l.path),
3804
- order_num: l.order_num
3805
- })), B = (s = []) => {
3806
- const l = [], k = (b) => {
3835
+ }), $ = (s = []) => y(s).filter((t) => t.category === "flow-page" && !!t.path).map((t) => ({
3836
+ id: t.id ?? t.path,
3837
+ name: t.name || "未命名流程",
3838
+ path: r(t.path),
3839
+ order_num: t.order_num
3840
+ })), k = (s = []) => {
3841
+ const t = [], C = (b) => {
3807
3842
  var X;
3808
3843
  for (const M of y(b)) {
3809
3844
  if (M.category === "flow-module") {
3810
- l.push({
3811
- id: M.id ?? M.name ?? String(l.length),
3845
+ t.push({
3846
+ id: M.id ?? M.name ?? String(t.length),
3812
3847
  name: M.name || "未命名流程模块",
3813
3848
  order_num: M.order_num,
3814
- pages: E(M.children || [])
3849
+ pages: $(M.children || [])
3815
3850
  });
3816
3851
  continue;
3817
3852
  }
3818
- (X = M.children) != null && X.length && k(M.children);
3853
+ (X = M.children) != null && X.length && C(M.children);
3819
3854
  }
3820
3855
  };
3821
- return k(s), l;
3822
- }, h = q(() => F.currentPath || z.path), x = q(() => g(F.menuId || z.query.mid)), S = q(() => {
3823
- const s = m(F.menuTree || [], x.value);
3824
- return s || v(F.menuTree || [], h.value);
3825
- }), L = q(() => {
3826
- var s, l;
3827
- return (l = (s = S.value) == null ? void 0 : s.children) != null && l.length ? B(S.value.children) : [];
3856
+ return C(s), t;
3857
+ }, f = W(() => E.currentPath || T.path), w = W(() => h(E.menuId || T.query.mid)), z = W(() => {
3858
+ const s = p(E.menuTree || [], w.value);
3859
+ return s || v(E.menuTree || [], f.value);
3860
+ }), L = W(() => {
3861
+ var s, t;
3862
+ return (t = (s = z.value) == null ? void 0 : s.children) != null && t.length ? k(z.value.children) : [];
3828
3863
  }), K = (s) => {
3829
3864
  if (!s) return;
3830
- const l = t.resolve(s);
3831
- window.open(l.href, "_blank", "noopener,noreferrer");
3865
+ const t = l.resolve(s);
3866
+ window.open(t.href, "_blank", "noopener,noreferrer");
3832
3867
  };
3833
- return (s, l) => {
3834
- const k = I("el-link"), b = I("el-empty");
3835
- return a(), p("div", Xa, [
3836
- L.value.length ? (a(!0), p(G, { key: 0 }, ne(L.value, (X) => (a(), p("section", {
3868
+ return (s, t) => {
3869
+ const C = I("el-link"), b = I("el-empty");
3870
+ return a(), g("div", Ja, [
3871
+ L.value.length ? (a(!0), g(G, { key: 0 }, ne(L.value, (X) => (a(), g("section", {
3837
3872
  key: X.id,
3838
3873
  class: "flow-module-section"
3839
3874
  }, [
3840
- d("div", Ja, [
3841
- l[0] || (l[0] = d("span", { class: "title-arrow" }, "▶", -1)),
3875
+ d("div", Qa, [
3876
+ t[0] || (t[0] = d("span", { class: "title-arrow" }, "▶", -1)),
3842
3877
  d("span", null, O(X.name), 1)
3843
3878
  ]),
3844
- d("div", Qa, [
3845
- (a(!0), p(G, null, ne(X.pages, (M) => (a(), A(k, {
3879
+ d("div", Za, [
3880
+ (a(!0), g(G, null, ne(X.pages, (M) => (a(), A(C, {
3846
3881
  key: M.id,
3847
3882
  type: "primary",
3848
3883
  underline: "never",
3849
3884
  class: "flow-page-link",
3850
3885
  onClick: (oe) => K(M.path)
3851
3886
  }, {
3852
- default: u(() => [
3887
+ default: i(() => [
3853
3888
  N(O(M.name), 1)
3854
3889
  ]),
3855
3890
  _: 2
@@ -3862,32 +3897,33 @@ const Ct = { class: "page-pagination" }, xt = /* @__PURE__ */ ee({
3862
3897
  ]);
3863
3898
  };
3864
3899
  }
3865
- }), ko = /* @__PURE__ */ xe(Za, [["__scopeId", "data-v-b615549b"]]);
3900
+ }), Co = /* @__PURE__ */ xe(eo, [["__scopeId", "data-v-b615549b"]]);
3866
3901
  export {
3867
- ho as BaseApprovalRecord,
3868
- $l as BaseButton,
3869
- fo as BaseCheckbox,
3870
- go as BaseChinaArea,
3871
- no as BaseCollapseToggle,
3872
- Ul as BaseDate,
3873
- vo as BaseDialog,
3902
+ yo as BaseApprovalRecord,
3903
+ Fl as BaseButton,
3904
+ po as BaseCheckbox,
3905
+ bo as BaseChinaArea,
3906
+ uo as BaseCollapseToggle,
3907
+ Al as BaseDate,
3908
+ ho as BaseDialog,
3909
+ so as BaseHidden,
3874
3910
  Bl as BaseInput,
3875
- po as BaseLink,
3876
- Rl as BaseNumber,
3877
- Bt as BasePagination,
3878
- mo as BaseRadio,
3879
- zl as BaseSelect,
3880
- Sl as BaseSwitch,
3881
- so as BaseTable,
3882
- uo as BaseTextarea,
3883
- Al as BaseTime,
3884
- co as BaseUpload,
3885
- bo as BaseUser,
3886
- yo as BusiDept,
3887
- wo as BusiFilePreview,
3888
- _o as BusiOutUser,
3889
- ko as BusiWorkflowProcess,
3890
- Nl as baseMessageBox,
3891
- ro as initPortalUiHttp,
3892
- io as setPortalUiHttp
3911
+ go as BaseLink,
3912
+ Ul as BaseNumber,
3913
+ Et as BasePagination,
3914
+ vo as BaseRadio,
3915
+ Rl as BaseSelect,
3916
+ zl as BaseSwitch,
3917
+ io as BaseTable,
3918
+ ro as BaseTextarea,
3919
+ Pl as BaseTime,
3920
+ mo as BaseUpload,
3921
+ _o as BaseUser,
3922
+ wo as BusiDept,
3923
+ ko as BusiFilePreview,
3924
+ Vo as BusiOutUser,
3925
+ Co as BusiWorkflowProcess,
3926
+ Ol as baseMessageBox,
3927
+ fo as initPortalUiHttp,
3928
+ co as setPortalUiHttp
3893
3929
  };