@das-fed/ui 7.1.0-dev.32 → 7.1.0-dev.34

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.
@@ -1,107 +1,109 @@
1
1
  import '@das-fed/ui/packages/business-components/process-form/style.css';
2
- import { withInstall as St } from "@das-fed/utils/with-install/index";
3
- import { ref as p, nextTick as he, defineComponent as x, watch as z, createBlock as E, createCommentVNode as B, openBlock as V, unref as a, withCtx as $, createVNode as L, createElementVNode as Ge, createElementBlock as J, Fragment as ee, createTextVNode as ae, toDisplayString as ne, computed as Vt, isRef as ze, createSlots as Nt, h as fe, renderList as ye, resolveDynamicComponent as De, onMounted as Lt, withDirectives as zt, normalizeStyle as Mt } from "vue";
4
- import { DasFormRef as It, DasForm as He } from "@das-fed/ui/packages/components/form/index";
5
- import { DasButton as Tt } from "@das-fed/ui/packages/components/button/index";
6
- import { vOverlay as Rt } from "@das-fed/ui/packages/components/overlay/index";
7
- import { createService as H } from "@das-fed/utils/create-api-service";
8
- import { DasUpload as Pt } from "@das-fed/ui/packages/components/upload/index";
9
- import { DasFormItem as Y } from "@das-fed/ui/packages/components/form-item/index";
10
- import { DasAutocomplete as $t } from "@das-fed/ui/packages/components/autocomplete/index";
11
- import Se from "dayjs";
2
+ import { withInstall as Vt } from "@das-fed/utils/with-install/index";
3
+ import { ref as p, nextTick as be, defineComponent as Y, watch as M, createBlock as E, createCommentVNode as A, openBlock as N, unref as a, withCtx as $, createVNode as z, createElementVNode as Ge, createElementBlock as H, Fragment as ae, createTextVNode as se, toDisplayString as oe, computed as Nt, isRef as Me, createSlots as Lt, h as ye, renderList as _e, resolveDynamicComponent as ke, onMounted as zt, withDirectives as Mt, normalizeStyle as It } from "vue";
4
+ import { DasFormRef as Tt, DasForm as He } from "@das-fed/ui/packages/components/form/index";
5
+ import { DasButton as Rt } from "@das-fed/ui/packages/components/button/index";
6
+ import { vOverlay as Pt } from "@das-fed/ui/packages/components/overlay/index";
7
+ import { createService as W } from "@das-fed/utils/create-api-service";
8
+ import { DasUpload as $t } from "@das-fed/ui/packages/components/upload/index";
9
+ import { DasFormItem as J } from "@das-fed/ui/packages/components/form-item/index";
10
+ import { DasAutocomplete as Ft } from "@das-fed/ui/packages/components/autocomplete/index";
11
+ import Ve from "dayjs";
12
12
  import { DasImageViewer as Xe } from "@das-fed/ui/packages/components/image-viewer/index";
13
- import { DasInput as Ft } from "@das-fed/ui/packages/components/input/index";
14
- import { DasTooltip as Fe } from "@das-fed/ui/packages/components/tooltip/index";
15
- import { i18n as O, t as D, setI18nRule as jt } from "@das-fed/web/packages/i18n/index";
16
- import { DasTableColumn as K } from "@das-fed/ui/packages/components/table/index";
17
- import { DasSearchForm as Kt } from "@das-fed/ui/packages/components/search-form/index";
18
- import { DasModelTableDialog as qt } from "@das-fed/ui/packages/business-components/model-table-dialog";
13
+ import { DasInput as jt } from "@das-fed/ui/packages/components/input/index";
14
+ import { DasTooltip as je } from "@das-fed/ui/packages/components/tooltip/index";
15
+ import { i18n as O, t as k, setI18nRule as Kt } from "@das-fed/web/packages/i18n/index";
16
+ import { DasTableColumn as j } from "@das-fed/ui/packages/components/table/index";
17
+ import { DasSearchForm as qt } from "@das-fed/ui/packages/components/search-form/index";
18
+ import { DasModelTableDialog as Et } from "@das-fed/ui/packages/business-components/model-table-dialog";
19
19
  import { getProjectInfo as et } from "@das-fed/utils/common-info";
20
- import { getConfig as Et } from "@das-fed/utils/config";
20
+ import { getConfig as Ot } from "@das-fed/utils/config";
21
21
  import { DasRichEditor as tt } from "@das-fed/ui/packages/components/rich-editor/index";
22
22
  import { DasCollaspe as at } from "@das-fed/ui/packages/components/collaspe/index";
23
23
  import { DasCollaspePanel as nt } from "@das-fed/ui/packages/components/collapse-panel/index";
24
- const G = "v1", Ot = H(`/workflow/form/form/${G}`), Bt = H(`/workflow/form/formDef/${G}`);
25
- H(`/workflow/api/user/${G}`);
26
- const st = H(`/workflow/api/extend/${G}`), At = H(`/workflow/flow/def/${G}`), Qt = H(`/workflow/form/customQuery/${G}`), le = H(`/api/enterpriseright/permission/${G}`), je = H(`/api/space-manage/space-tree/${G}`), Ut = H(`/workflow/form/dataTemplate/${G}`), Ke = H(`/api/supply/supplier/${G}`), xt = H(`/api/warehouse/vms/${G}/asset-receive`), Yt = H(`/api/fms/report/${G}`), Jt = H(`/api/space-manage/device-archives/${G}`), Ht = H(`/api/device-relation/project/${G}`), Wt = Ut.get("/getBpmDataTemplateInfoByFlowKey"), Zt = Ot.get("/formDesign"), Gt = Bt.get("/get"), Xt = st.get("/report-config");
24
+ const X = "v1", At = W(`/workflow/form/form/${X}`), Bt = W(`/workflow/form/formDef/${X}`);
25
+ W(`/workflow/api/user/${X}`);
26
+ const st = W(`/workflow/api/extend/${X}`), Qt = W(`/workflow/flow/def/${X}`), Ut = W(`/workflow/form/customQuery/${X}`), ue = W(`/api/enterpriseright/permission/${X}`), Ke = W(`/api/space-manage/space-tree/${X}`), xt = W(`/workflow/form/dataTemplate/${X}`), qe = W(`/api/supply/supplier/${X}`), Yt = W(`/api/warehouse/vms/${X}/asset-receive`), Jt = W(`/api/fms/report/${X}`), Ht = W(`/api/space-manage/device-archives/${X}`);
27
+ W(`/api/device-relation/project/${X}`);
28
+ const Wt = xt.get("/getBpmDataTemplateInfoByFlowKey"), Zt = At.get("/formDesign"), Gt = Bt.get("/get"), Xt = st.get("/report-config");
27
29
  st.get("/application-report");
28
- const ea = At.get("/getBindRelationByDefKey"), ta = Qt.get("/getByAlias"), aa = le.get("/organization/authTree"), na = le.post("/user/list"), sa = le.post("/data/user-query"), oa = le.get("/role/list"), la = le.post("/data/role-ids"), ia = le.get("/organization/organizationpage"), ra = le.get("/station/list"), ua = le.get("/position/list"), Me = le.post("/organization/detailbyids"), ot = je.get("/controller/area-children"), pa = je.get("/controller/fuzzy-tree-all"), lt = je.get("/controller/space"), da = Ke.post("/supplier/list/page", (n) => {
30
+ const ea = Qt.get("/getBindRelationByDefKey"), ta = Ut.get("/getByAlias"), aa = ue.get("/organization/authTree"), na = ue.post("/user/list"), sa = ue.post("/data/user-query"), oa = ue.get("/role/list"), la = ue.post("/data/role-ids"), ia = ue.get("/organization/organizationpage"), ra = ue.get("/station/list"), ua = ue.get("/position/list"), Ie = ue.post("/organization/detailbyids"), ot = Ke.get("/controller/area-children"), pa = Ke.get("/controller/fuzzy-tree-all"), lt = Ke.get("/controller/space"), da = qe.post("/supplier/list/page", (n) => {
29
31
  var e, t;
30
32
  return n.data.pageBean = {
31
33
  page: ((e = n == null ? void 0 : n.data) == null ? void 0 : e.pageIndex) || 1,
32
34
  pageSize: ((t = n == null ? void 0 : n.data) == null ? void 0 : t.pageSize) || 20
33
35
  }, n;
34
- }), ca = Ke.get("/supplier"), ga = Ke.post("/classification/list/all"), ma = xt.get("/receive-code"), va = Jt.post("/warehouse/account/device"), fa = Ht.get("/group/device/device-with-spaceId"), ha = Yt.post("/common/device-type/tree"), Ie = p(""), ya = (n, e, t) => {
35
- const { setDetailData: i, getFormData: d, setFormData: o, formRule: g, showData: k, disabledData: s, encryptionData: l } = t, v = p([]), r = p([]), h = p([]), c = p(!1), _ = It(), b = p([]), w = (M) => Object.keys(M).length === 0, m = async (M) => {
36
- const [Q, q] = await Zt({ formId: M }).run();
36
+ }), ca = qe.get("/supplier"), ga = qe.post("/classification/list/all"), ma = Yt.get("/receive-code"), it = Ht.post("/warehouse/account/device"), va = it, fa = Jt.post("/common/device-type/tree"), Te = p(""), ha = (n, e, t) => {
37
+ const { setDetailData: i, getFormData: d, setFormData: o, formRule: g, showData: S, disabledData: s, encryptionData: l } = t, v = p([]), r = p([]), f = p([]), c = p(!1), _ = Tt(), y = p([]), C = (I) => Object.keys(I).length === 0, m = async (I) => {
38
+ const [Q, K] = await Zt({ formId: I }).run();
37
39
  if (Q) return;
38
- const Z = JSON.parse(q.bos);
39
- Ie.value = Z[0].alias, r.value.length && r.value.forEach((U) => {
40
- U.formKey === q.formKey && o(q.formKey, Ie.value, U.id);
40
+ const G = JSON.parse(K.bos);
41
+ Te.value = G[0].alias, r.value.length && r.value.forEach((x) => {
42
+ x.formKey === K.formKey && o(K.formKey, Te.value, x.id);
41
43
  });
42
- const [te, se] = await Gt({ formDefId: q.defId }).run();
43
- await y(), h.value = JSON.parse(se.value.expand).list, h.value.forEach((U) => {
44
- U.columns && U.columns[0].isOpen && b.value.push(U.key);
45
- }), s.value = { ...s.value, ...n.disabledData }, r.value.length || o(q.formKey, Ie.value), setTimeout(() => {
46
- k.value = { ...k.value, ...n.showData }, w(n.data) && (c.value = !0), w(n.data) || (i(n.data), n.flowKey && (v.value = n.data.button_list ? JSON.parse(n.data.button_list) : []), c.value = !0);
44
+ const [ne, le] = await Gt({ formDefId: K.defId }).run();
45
+ await h(), f.value = JSON.parse(le.value.expand).list, f.value.forEach((x) => {
46
+ x.columns && x.columns[0].isOpen && y.value.push(x.key);
47
+ }), s.value = { ...s.value, ...n.disabledData }, r.value.length || o(K.formKey, Te.value), setTimeout(() => {
48
+ S.value = { ...S.value, ...n.showData }, C(n.data) && (c.value = !0), C(n.data) || (i(n.data), n.flowKey && (v.value = n.data.button_list ? JSON.parse(n.data.button_list) : []), c.value = !0);
47
49
  }, 50);
48
- }, N = async () => {
49
- var M;
50
+ }, L = async () => {
51
+ var I;
50
52
  if (n.formConfigurationId) {
51
- const [Q, q] = await Xt({ id: n.formConfigurationId }).run();
53
+ const [Q, K] = await Xt({ id: n.formConfigurationId }).run();
52
54
  if (Q) return;
53
- r.value = q.reports, v.value = (M = q.reports[0]) == null ? void 0 : M.buttons.filter((Z) => !(n.isView && Z.event !== "LINK")), m(q.reports[0].formId);
55
+ r.value = K.reports, v.value = (I = K.reports[0]) == null ? void 0 : I.buttons.filter((G) => !(n.isView && G.event !== "LINK")), m(K.reports[0].formId);
54
56
  }
55
57
  if (n.flowKey) {
56
- const [Q, q] = await ea({ flowKey: n.flowKey }).run();
58
+ const [Q, K] = await ea({ flowKey: n.flowKey }).run();
57
59
  if (Q) return;
58
- m(q.pcForm.pcFormId);
60
+ m(K.pcForm.pcFormId);
59
61
  }
60
- }, y = async () => {
61
- var q, Z, te, se;
62
+ }, h = async () => {
63
+ var K, G, ne, le;
62
64
  if (!n.flowKey) return;
63
- const [M, Q] = await Wt().run({
65
+ const [I, Q] = await Wt().run({
64
66
  flowKey: n.flowKey,
65
67
  needDisplayFileds: !1
66
68
  });
67
- l.value = ((se = (te = (Z = (q = Q == null ? void 0 : Q.value) == null ? void 0 : q.boDef) == null ? void 0 : Z.boEnt) == null ? void 0 : te.attributeList) == null ? void 0 : se.filter((U) => U.encryption == "phone")) || [];
68
- }, u = p({}), R = (M, Q) => {
69
- const { key: q } = Q;
70
- u.value[q] || (u.value[q] = M);
71
- }, F = async () => (h.value.forEach((M) => {
72
- M.columns && b.value.push(M.key);
73
- }), await he(), new Promise((M, Q) => {
74
- let q = !0;
75
- for (const Z in u.value)
76
- u.value[Z].validate((te) => {
77
- te == !1 && (q = !1);
69
+ l.value = ((le = (ne = (G = (K = Q == null ? void 0 : Q.value) == null ? void 0 : K.boDef) == null ? void 0 : G.boEnt) == null ? void 0 : ne.attributeList) == null ? void 0 : le.filter((x) => x.encryption == "phone")) || [];
70
+ }, u = p({}), R = (I, Q) => {
71
+ const { key: K } = Q;
72
+ u.value[K] || (u.value[K] = I);
73
+ }, F = async () => (f.value.forEach((I) => {
74
+ I.columns && y.value.push(I.key);
75
+ }), await be(), new Promise((I, Q) => {
76
+ let K = !0;
77
+ for (const G in u.value)
78
+ u.value[G].validate((ne) => {
79
+ ne == !1 && (K = !1);
78
80
  });
79
81
  setTimeout(() => {
80
- M({
81
- result: q,
82
+ I({
83
+ result: K,
82
84
  data: d()
83
85
  });
84
86
  }, 50);
85
87
  }));
86
88
  return {
87
89
  isShowPage: c,
88
- formJsonList: h,
90
+ formJsonList: f,
89
91
  btnList: v,
90
92
  formRef: _,
91
- activityKeys: b,
93
+ activityKeys: y,
92
94
  getForm: m,
93
- getBtnSet: N,
94
- handleClick: async (M) => {
95
+ getBtnSet: L,
96
+ handleClick: async (I) => {
95
97
  let { result: Q } = await F();
96
- Q && (e("handleClick", M, d()), M.event === "LINK" && r.value.forEach((q) => {
97
- M.eventTarget === q.formKey && (v.value = q.buttons.filter((Z) => !(n.isView && Z.event !== "LINK")), c.value = !1, g.value = {}, m(q.formId));
98
+ Q && (e("handleClick", I, d()), I.event === "LINK" && r.value.forEach((K) => {
99
+ I.eventTarget === K.formKey && (v.value = K.buttons.filter((G) => !(n.isView && G.event !== "LINK")), c.value = !1, g.value = {}, m(K.formId));
98
100
  }));
99
101
  },
100
102
  validateFormData: F,
101
103
  getFormRef: R
102
104
  };
103
105
  };
104
- let ba = (n = 21) => {
106
+ let ya = (n = 21) => {
105
107
  let e = "", t = crypto.getRandomValues(new Uint8Array(n));
106
108
  for (; n--; ) {
107
109
  let i = t[n] & 63;
@@ -109,10 +111,10 @@ let ba = (n = 21) => {
109
111
  }
110
112
  return e;
111
113
  };
112
- const W = (n) => {
114
+ const Z = (n) => {
113
115
  var e = new RegExp("<.+?>", "g"), t = n.replace(e, "").replace(/&nbsp;/g, "");
114
116
  return t;
115
- }, de = async (n, e, t = {}) => {
117
+ }, me = async (n, e, t = {}) => {
116
118
  const [i, d] = await ta({ alias: n }).run();
117
119
  if (!i && d.url) {
118
120
  typeof e == "string" && (e = JSON.parse(e));
@@ -120,28 +122,28 @@ const W = (n) => {
120
122
  e.forEach((l) => {
121
123
  l.defaultType == 2 && (o.value[l.field] = l.defaultValue);
122
124
  }), o.value = { ...o.value, ...t };
123
- const g = d.requestType === "POST" ? H(d.url).post("") : H(d.url).get(""), [k, s] = await g({}, { params: o.value }).run();
124
- return k ? void 0 : s;
125
+ const g = d.requestType === "POST" ? W(d.url).post("") : W(d.url).get(""), [S, s] = await g({}, { params: o.value }).run();
126
+ return S ? void 0 : s;
125
127
  }
126
- }, X = async (n) => {
128
+ }, ee = async (n) => {
127
129
  const e = p(!1);
128
130
  return n.forEach((t) => {
129
131
  t.key === "required" && (e.value = !0);
130
132
  }), e.value;
131
- }, Ve = (n) => {
133
+ }, Ne = (n) => {
132
134
  if (Array.isArray(n))
133
- return n.map((t) => Ve(t));
135
+ return n.map((t) => Ne(t));
134
136
  if (typeof n != "object" || n === null)
135
137
  return n;
136
138
  const e = { ...n };
137
- (!e.hasOwnProperty("id") || e.id === null || e.id === void 0 || e.id === "") && (e.id = ba());
139
+ (!e.hasOwnProperty("id") || e.id === null || e.id === void 0 || e.id === "") && (e.id = ya());
138
140
  for (const t in e)
139
- Object.prototype.hasOwnProperty.call(e, t) && (e[t] = Ve(e[t]));
141
+ Object.prototype.hasOwnProperty.call(e, t) && (e[t] = Ne(e[t]));
140
142
  return e;
141
- }, _a = {
143
+ }, ba = {
142
144
  name: "attachment"
143
- }, wa = /* @__PURE__ */ x({
144
- ..._a,
145
+ }, _a = /* @__PURE__ */ Y({
146
+ ...ba,
145
147
  props: {
146
148
  setting: { default: () => ({
147
149
  icon: "",
@@ -156,18 +158,18 @@ const W = (n) => {
156
158
  store: {}
157
159
  },
158
160
  setup(n) {
159
- const e = n, { showData: t, disabledData: i, setData: d, getData: o, setFormRule: g, deleteRule: k } = e.store || {}, s = p([]), l = p(!0);
160
- !t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), z(
161
+ const e = n, { showData: t, disabledData: i, setData: d, getData: o, setFormRule: g, deleteRule: S } = e.store || {}, s = p([]), l = p(!0);
162
+ !t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), M(
161
163
  () => t.value,
162
164
  () => {
163
- l.value = t.value[e.setting.name], l.value || (s.value = [], k(e.setting.name)), l.value && e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList);
165
+ l.value = t.value[e.setting.name], l.value || (s.value = [], S(e.setting.name)), l.value && e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList);
164
166
  },
165
167
  { deep: !0, immediate: !0 }
166
168
  );
167
169
  const v = p();
168
- return e.setting.options.tip && (v.value = W(e.setting.options.tip)), s.value || d(e.setting.name, null), z(s, (r) => {
170
+ return e.setting.options.tip && (v.value = Z(e.setting.options.tip)), s.value || d(e.setting.name, null), M(s, (r) => {
169
171
  d(e.setting.name, JSON.stringify(r));
170
- }), (r, h) => l.value ? (V(), E(a(Y), {
172
+ }), (r, f) => l.value ? (N(), E(a(J), {
171
173
  key: 0,
172
174
  col: e.span,
173
175
  label: r.setting.desc,
@@ -175,23 +177,23 @@ const W = (n) => {
175
177
  helpMessage: v.value
176
178
  }, {
177
179
  default: $(() => [
178
- L(a(Pt), {
180
+ z(a($t), {
179
181
  style: { width: "100%" },
180
182
  modelValue: s.value,
181
- "onUpdate:modelValue": h[0] || (h[0] = (c) => s.value = c)
183
+ "onUpdate:modelValue": f[0] || (f[0] = (c) => s.value = c)
182
184
  }, null, 8, ["modelValue"])
183
185
  ]),
184
186
  _: 1
185
187
  /* STABLE */
186
- }, 8, ["col", "label", "helpMessage"])) : B("v-if", !0);
188
+ }, 8, ["col", "label", "helpMessage"])) : A("v-if", !0);
187
189
  }
188
- }), it = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
190
+ }), rt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
189
191
  __proto__: null,
190
- default: wa
191
- }, Symbol.toStringTag, { value: "Module" })), Ca = {
192
+ default: _a
193
+ }, Symbol.toStringTag, { value: "Module" })), wa = {
192
194
  name: "autocomplete"
193
- }, Da = /* @__PURE__ */ x({
194
- ...Ca,
195
+ }, Ca = /* @__PURE__ */ Y({
196
+ ...wa,
195
197
  props: {
196
198
  setting: { default: () => ({
197
199
  icon: "",
@@ -206,62 +208,62 @@ const W = (n) => {
206
208
  store: {}
207
209
  },
208
210
  setup(n) {
209
- const e = n, { showData: t, disabledData: i, setData: d, getData: o, setFormRule: g, deleteRule: k } = e.store || {}, s = p(""), l = p(!0);
210
- !t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), z(
211
+ const e = n, { showData: t, disabledData: i, setData: d, getData: o, setFormRule: g, deleteRule: S } = e.store || {}, s = p(""), l = p(!0);
212
+ !t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), M(
211
213
  () => t.value,
212
214
  () => {
213
- l.value = t.value[e.setting.name], l.value || (s.value = "", k(e.setting.name)), l.value && e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList);
215
+ l.value = t.value[e.setting.name], l.value || (s.value = "", S(e.setting.name)), l.value && e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList);
214
216
  },
215
217
  { deep: !0, immediate: !0 }
216
218
  );
217
219
  const v = i.value[e.setting.name] || !1, r = p(!1);
218
- X(e.setting.options.validateList).then((N) => {
219
- r.value = N;
220
+ ee(e.setting.options.validateList).then((L) => {
221
+ r.value = L;
220
222
  });
221
- const h = e.setting.options.customQuery.valueBind ? e.setting.options.customQuery.valueBind : "value", c = e.setting.options.children ? e.setting.options.children : "children", _ = !!e.setting.options.fillInFullPath, b = p("id"), w = p([]);
222
- e.setting.options.customQuery.alias ? de(e.setting.options.customQuery.alias, e.setting.options.customQuery.conditionfield).then((N) => {
223
- w.value = Ve(N);
224
- }) : w.value = Ve(e.setting.options.options);
223
+ const f = e.setting.options.customQuery.valueBind ? e.setting.options.customQuery.valueBind : "value", c = e.setting.options.children ? e.setting.options.children : "children", _ = !!e.setting.options.fillInFullPath, y = p("id"), C = p([]);
224
+ e.setting.options.customQuery.alias ? me(e.setting.options.customQuery.alias, e.setting.options.customQuery.conditionfield).then((L) => {
225
+ C.value = Ne(L);
226
+ }) : C.value = Ne(e.setting.options.options);
225
227
  const m = p();
226
- return e.setting.options.tip && (m.value = W(e.setting.options.tip)), s.value = o(e.setting.name) || s.value, s.value || d(e.setting.name, null), e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList), z(s, (N) => {
227
- d(e.setting.name, N.toString());
228
- }), (N, y) => l.value ? (V(), E(a(Y), {
228
+ return e.setting.options.tip && (m.value = Z(e.setting.options.tip)), s.value = o(e.setting.name) || s.value, s.value || d(e.setting.name, null), e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList), M(s, (L) => {
229
+ d(e.setting.name, L.toString());
230
+ }), (L, h) => l.value ? (N(), E(a(J), {
229
231
  key: 0,
230
232
  col: e.span,
231
233
  prop: e.setting.name,
232
234
  modelValue: s.value,
233
- "onUpdate:modelValue": y[1] || (y[1] = (u) => s.value = u),
234
- label: N.setting.desc,
235
+ "onUpdate:modelValue": h[1] || (h[1] = (u) => s.value = u),
236
+ label: L.setting.desc,
235
237
  type: "custom",
236
238
  helpMessage: m.value,
237
239
  required: r.value,
238
240
  disabled: a(v)
239
241
  }, {
240
242
  default: $(() => [
241
- L(a($t), {
243
+ z(a(Ft), {
242
244
  modelValue: s.value,
243
- "onUpdate:modelValue": y[0] || (y[0] = (u) => s.value = u),
244
- options: w.value,
245
+ "onUpdate:modelValue": h[0] || (h[0] = (u) => s.value = u),
246
+ options: C.value,
245
247
  isView: e.isView,
246
248
  width: "100%",
247
- fieldNames: { label: a(h), children: a(c) },
249
+ fieldNames: { label: a(f), children: a(c) },
248
250
  showFullPath: a(_),
249
- placeholder: N.setting.options.placeholder,
251
+ placeholder: L.setting.options.placeholder,
250
252
  clearable: "",
251
- nodeKey: b.value
253
+ nodeKey: y.value
252
254
  }, null, 8, ["modelValue", "options", "isView", "fieldNames", "showFullPath", "placeholder", "nodeKey"])
253
255
  ]),
254
256
  _: 1
255
257
  /* STABLE */
256
- }, 8, ["col", "prop", "modelValue", "label", "helpMessage", "required", "disabled"])) : B("v-if", !0);
258
+ }, 8, ["col", "prop", "modelValue", "label", "helpMessage", "required", "disabled"])) : A("v-if", !0);
257
259
  }
258
- }), rt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
260
+ }), ut = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
259
261
  __proto__: null,
260
- default: Da
261
- }, Symbol.toStringTag, { value: "Module" })), ka = {
262
+ default: Ca
263
+ }, Symbol.toStringTag, { value: "Module" })), Da = {
262
264
  name: "checkbox"
263
- }, Sa = /* @__PURE__ */ x({
264
- ...ka,
265
+ }, ka = /* @__PURE__ */ Y({
266
+ ...Da,
265
267
  props: {
266
268
  setting: { default: () => ({
267
269
  icon: "",
@@ -276,52 +278,52 @@ const W = (n) => {
276
278
  store: {}
277
279
  },
278
280
  setup(n) {
279
- const e = n, { showData: t, disabledData: i, setData: d, getData: o, setFormRule: g, deleteRule: k } = e.store || {}, s = p([]), l = p(!0);
280
- !t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), z(
281
+ const e = n, { showData: t, disabledData: i, setData: d, getData: o, setFormRule: g, deleteRule: S } = e.store || {}, s = p([]), l = p(!0);
282
+ !t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), M(
281
283
  () => t.value,
282
284
  () => {
283
- l.value = t.value[e.setting.name], l.value || (s.value = [], k(e.setting.name)), l.value && e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList);
285
+ l.value = t.value[e.setting.name], l.value || (s.value = [], S(e.setting.name)), l.value && e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList);
284
286
  },
285
287
  { deep: !0, immediate: !0 }
286
288
  );
287
289
  const v = i.value[e.setting.name] || !1, r = p(!1);
288
- X(e.setting.options.validateList).then((w) => {
289
- r.value = w;
290
+ ee(e.setting.options.validateList).then((C) => {
291
+ r.value = C;
290
292
  });
291
- const h = e.setting.options.customQuery.valueBind ? e.setting.options.customQuery.valueBind : "key", c = e.setting.options.customQuery.labelBind ? e.setting.options.customQuery.labelBind : "value", _ = p([]);
292
- e.setting.options.customQuery.alias ? de(e.setting.options.customQuery.alias, e.setting.options.customQuery.conditionfield).then((w) => {
293
- _.value = w;
293
+ const f = e.setting.options.customQuery.valueBind ? e.setting.options.customQuery.valueBind : "key", c = e.setting.options.customQuery.labelBind ? e.setting.options.customQuery.labelBind : "value", _ = p([]);
294
+ e.setting.options.customQuery.alias ? me(e.setting.options.customQuery.alias, e.setting.options.customQuery.conditionfield).then((C) => {
295
+ _.value = C;
294
296
  }) : _.value = e.setting.options.options;
295
- const b = p();
296
- return e.setting.options.tip && (b.value = W(e.setting.options.tip)()), setTimeout(() => {
297
+ const y = p();
298
+ return e.setting.options.tip && (y.value = Z(e.setting.options.tip)()), setTimeout(() => {
297
299
  o(e.setting.name) && (s.value = o(e.setting.name).split(",")), e.setting.options.formulasDiyJs && (s.value = e.setting.options.formulasDiyJs.split(",")), s.value.length || s.value || d(e.setting.name, null);
298
- }, 50), e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList), z(s, (w) => {
299
- d(e.setting.name, w.toString());
300
- }), (w, m) => l.value ? (V(), E(a(Y), {
300
+ }, 50), e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList), M(s, (C) => {
301
+ d(e.setting.name, C.toString());
302
+ }), (C, m) => l.value ? (N(), E(a(J), {
301
303
  key: 0,
302
304
  col: e.span,
303
305
  modelValue: s.value,
304
- "onUpdate:modelValue": m[0] || (m[0] = (N) => s.value = N),
305
- layout: w.setting.options.inline ? "vertical" : "default",
306
- label: w.setting.desc,
306
+ "onUpdate:modelValue": m[0] || (m[0] = (L) => s.value = L),
307
+ layout: C.setting.options.inline ? "vertical" : "default",
308
+ label: C.setting.desc,
307
309
  prop: e.setting.name,
308
310
  type: "checkbox",
309
311
  options: _.value,
310
312
  isView: e.isView,
311
313
  disabled: a(v),
312
- optionsValueKey: a(h),
314
+ optionsValueKey: a(f),
313
315
  optionsLabelKey: a(c),
314
- helpMessage: b.value,
316
+ helpMessage: y.value,
315
317
  required: r.value
316
- }, null, 8, ["col", "modelValue", "layout", "label", "prop", "options", "isView", "disabled", "optionsValueKey", "optionsLabelKey", "helpMessage", "required"])) : B("v-if", !0);
318
+ }, null, 8, ["col", "modelValue", "layout", "label", "prop", "options", "isView", "disabled", "optionsValueKey", "optionsLabelKey", "helpMessage", "required"])) : A("v-if", !0);
317
319
  }
318
- }), ut = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
320
+ }), pt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
319
321
  __proto__: null,
320
- default: Sa
321
- }, Symbol.toStringTag, { value: "Module" })), Va = {
322
+ default: ka
323
+ }, Symbol.toStringTag, { value: "Module" })), Sa = {
322
324
  name: "date"
323
- }, Na = /* @__PURE__ */ x({
324
- ...Va,
325
+ }, Va = /* @__PURE__ */ Y({
326
+ ...Sa,
325
327
  props: {
326
328
  setting: { default: () => ({
327
329
  icon: "",
@@ -336,54 +338,54 @@ const W = (n) => {
336
338
  store: {}
337
339
  },
338
340
  setup(n) {
339
- const e = n, { showData: t, disabledData: i, setData: d, getData: o, setFormRule: g, deleteRule: k } = e.store || {}, s = p(), l = p(!0);
340
- !t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), z(
341
+ const e = n, { showData: t, disabledData: i, setData: d, getData: o, setFormRule: g, deleteRule: S } = e.store || {}, s = p(), l = p(!0);
342
+ !t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), M(
341
343
  () => t.value,
342
344
  () => {
343
- l.value = t.value[e.setting.name], l.value || (s.value = null, k(e.setting.name)), l.value && e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList);
345
+ l.value = t.value[e.setting.name], l.value || (s.value = null, S(e.setting.name)), l.value && e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList);
344
346
  },
345
347
  { deep: !0, immediate: !0 }
346
348
  );
347
349
  const v = i.value[e.setting.name] || !1, r = p(!1);
348
- X(e.setting.options.validateList).then((b) => {
349
- r.value = b;
350
+ ee(e.setting.options.validateList).then((y) => {
351
+ r.value = y;
350
352
  });
351
- const h = e.setting.options.inputFormat === "yyyy-MM-dd" ? "YYYY/MM/DD" : e.setting.options.inputFormat === "yyyy-MM-dd HH:mm:ss" ? "YYYY/MM/DD HH:mm:ss" : e.setting.options.inputFormat, c = p("");
353
+ const f = e.setting.options.inputFormat === "yyyy-MM-dd" ? "YYYY/MM/DD" : e.setting.options.inputFormat === "yyyy-MM-dd HH:mm:ss" ? "YYYY/MM/DD HH:mm:ss" : e.setting.options.inputFormat, c = p("");
352
354
  e.setting.options.inputFormat === "YYYY/MM/DD" && (c.value = "date"), e.setting.options.inputFormat === "MM/DD" && (c.value = "date"), e.setting.options.inputFormat === "YYYY/MM" && (c.value = "month"), e.setting.options.inputFormat === "YYYY" && (c.value = "year");
353
355
  const _ = p();
354
- if (e.setting.options.tip && (_.value = W(e.setting.options.tip)), setTimeout(() => {
356
+ if (e.setting.options.tip && (_.value = Z(e.setting.options.tip)), setTimeout(() => {
355
357
  s.value = o(e.setting.name) || e.setting.options.formulasDiyJs || s.value, s.value || d(e.setting.name, null);
356
358
  }, 50), e.setting.options.showCurrentDate) {
357
- let b = /* @__PURE__ */ new Date();
358
- b.setDate(b.getDate() + e.setting.options.day), s.value = Se(b.getTime()).format(h), d(e.setting.name, s.value);
359
+ let y = /* @__PURE__ */ new Date();
360
+ y.setDate(y.getDate() + e.setting.options.day), s.value = Ve(y.getTime()).format(f), d(e.setting.name, s.value);
359
361
  }
360
- return e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList), z(s, (b) => {
361
- d(e.setting.name, b);
362
- }), (b, w) => l.value ? (V(), E(a(Y), {
362
+ return e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList), M(s, (y) => {
363
+ d(e.setting.name, y);
364
+ }), (y, C) => l.value ? (N(), E(a(J), {
363
365
  key: 0,
364
366
  col: e.span,
365
367
  modelValue: s.value,
366
- "onUpdate:modelValue": w[0] || (w[0] = (m) => s.value = m),
367
- label: b.setting.desc,
368
+ "onUpdate:modelValue": C[0] || (C[0] = (m) => s.value = m),
369
+ label: y.setting.desc,
368
370
  prop: e.setting.name,
369
- type: a(h).indexOf("HH") != -1 ? "dateTime" : "date",
370
- format: a(h),
371
+ type: a(f).indexOf("HH") != -1 ? "dateTime" : "date",
372
+ format: a(f),
371
373
  valueFormat: "YYYY-MM-DD HH:mm:ss",
372
374
  picker: c.value,
373
375
  isView: e.isView,
374
376
  disabled: a(v),
375
- placeholder: b.setting.options.placeholder,
377
+ placeholder: y.setting.options.placeholder,
376
378
  helpMessage: _.value,
377
379
  required: r.value
378
- }, null, 8, ["col", "modelValue", "label", "prop", "type", "format", "picker", "isView", "disabled", "placeholder", "helpMessage", "required"])) : B("v-if", !0);
380
+ }, null, 8, ["col", "modelValue", "label", "prop", "type", "format", "picker", "isView", "disabled", "placeholder", "helpMessage", "required"])) : A("v-if", !0);
379
381
  }
380
- }), pt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
382
+ }), dt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
381
383
  __proto__: null,
382
- default: Na
383
- }, Symbol.toStringTag, { value: "Module" })), La = {
384
+ default: Va
385
+ }, Symbol.toStringTag, { value: "Module" })), Na = {
384
386
  name: "dropdown"
385
- }, za = /* @__PURE__ */ x({
386
- ...La,
387
+ }, La = /* @__PURE__ */ Y({
388
+ ...Na,
387
389
  props: {
388
390
  setting: { default: () => ({
389
391
  icon: "",
@@ -398,28 +400,28 @@ const W = (n) => {
398
400
  store: {}
399
401
  },
400
402
  setup(n) {
401
- const e = n, { showData: t, disabledData: i, setData: d, getData: o, setFormRule: g, deleteRule: k, setLinkData: s } = e.store || {}, l = p(""), v = p(!0);
402
- !t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), z(
403
+ const e = n, { showData: t, disabledData: i, setData: d, getData: o, setFormRule: g, deleteRule: S, setLinkData: s } = e.store || {}, l = p(""), v = p(!0);
404
+ !t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), M(
403
405
  () => t.value,
404
406
  () => {
405
- v.value = t.value[e.setting.name], v.value || (l.value = e.setting.options.multiple ? [] : "", k(e.setting.name)), v.value && e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList);
407
+ v.value = t.value[e.setting.name], v.value || (l.value = e.setting.options.multiple ? [] : "", S(e.setting.name)), v.value && e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList);
406
408
  },
407
409
  { deep: !0, immediate: !0 }
408
410
  );
409
411
  const r = () => {
410
412
  e.setting.options.customQuery && e.setting.options.customQuery.custQueryJson.length && s(e.setting.options.customQuery.custQueryJson, l.value);
411
- }, h = i.value[e.setting.name] || !1, c = p(!1);
412
- X(e.setting.options.validateList).then((u) => {
413
+ }, f = i.value[e.setting.name] || !1, c = p(!1);
414
+ ee(e.setting.options.validateList).then((u) => {
413
415
  c.value = u;
414
416
  });
415
- const _ = p(""), b = e.setting.options.customQuery.valueBind ? e.setting.options.customQuery.valueBind : "key", w = e.setting.options.customQuery.labelBind ? e.setting.options.customQuery.labelBind : "value", m = e.setting.options.customQuery.PId || "children", N = p([]);
416
- e.setting.options.customQuery.alias && de(e.setting.options.customQuery.alias, e.setting.options.customQuery.conditionfield).then((u) => {
417
- N.value = u;
417
+ const _ = p(""), y = e.setting.options.customQuery.valueBind ? e.setting.options.customQuery.valueBind : "key", C = e.setting.options.customQuery.labelBind ? e.setting.options.customQuery.labelBind : "value", m = e.setting.options.customQuery.PId || "children", L = p([]);
418
+ e.setting.options.customQuery.alias && me(e.setting.options.customQuery.alias, e.setting.options.customQuery.conditionfield).then((u) => {
419
+ L.value = u;
418
420
  });
419
- const y = p();
420
- return e.setting.options.tip && (y.value = W(e.setting.options.tip)), l.value = e.setting.options.multiple ? [] : "", e.setting.options.multiple && o(e.setting.name) ? l.value = o(e.setting.name).split(",") : l.value = o(e.setting.name) || l.value, l.value || d(e.setting.name, null), e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList), z(l, (u) => {
421
+ const h = p();
422
+ return e.setting.options.tip && (h.value = Z(e.setting.options.tip)), l.value = e.setting.options.multiple ? [] : "", e.setting.options.multiple && o(e.setting.name) ? l.value = o(e.setting.name).split(",") : l.value = o(e.setting.name) || l.value, l.value || d(e.setting.name, null), e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList), M(l, (u) => {
421
423
  d(e.setting.name, u.toString());
422
- }), (u, R) => v.value ? (V(), E(a(Y), {
424
+ }), (u, R) => v.value ? (N(), E(a(J), {
423
425
  key: 0,
424
426
  col: e.span,
425
427
  modelValue: l.value,
@@ -434,23 +436,23 @@ const W = (n) => {
434
436
  prop: e.setting.name,
435
437
  filter: u.setting.options.filterable,
436
438
  selectAttrs: { allowClear: !0 },
437
- options: N.value,
439
+ options: L.value,
438
440
  isView: e.isView,
439
- helpMessage: y.value,
440
- disabled: a(h),
441
- props: { label: a(w), value: a(b), children: a(m) },
441
+ helpMessage: h.value,
442
+ disabled: a(f),
443
+ props: { label: a(C), value: a(y), children: a(m) },
442
444
  "check-strictly": !u.setting.options.cascade,
443
445
  required: c.value,
444
446
  onChange: r
445
- }, null, 8, ["col", "modelValue", "keyword", "label", "node-key", "placeholder", "mode", "prop", "filter", "options", "isView", "helpMessage", "disabled", "props", "check-strictly", "required"])) : B("v-if", !0);
447
+ }, null, 8, ["col", "modelValue", "keyword", "label", "node-key", "placeholder", "mode", "prop", "filter", "options", "isView", "helpMessage", "disabled", "props", "check-strictly", "required"])) : A("v-if", !0);
446
448
  }
447
- }), dt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
449
+ }), ct = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
448
450
  __proto__: null,
449
- default: za
450
- }, Symbol.toStringTag, { value: "Module" })), Ma = { class: "form-image" }, Ia = {
451
+ default: La
452
+ }, Symbol.toStringTag, { value: "Module" })), za = { class: "form-image" }, Ma = {
451
453
  name: "imageViewer"
452
- }, Ta = /* @__PURE__ */ x({
453
- ...Ia,
454
+ }, Ia = /* @__PURE__ */ Y({
455
+ ...Ma,
454
456
  props: {
455
457
  setting: { default: () => ({
456
458
  icon: "",
@@ -465,56 +467,56 @@ const W = (n) => {
465
467
  store: {}
466
468
  },
467
469
  setup(n) {
468
- const e = n, { showData: t, disabledData: i, setData: d, getData: o, setFormRule: g, deleteRule: k } = e.store || {}, s = p(), l = p(!0);
469
- !t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), z(
470
+ const e = n, { showData: t, disabledData: i, setData: d, getData: o, setFormRule: g, deleteRule: S } = e.store || {}, s = p(), l = p(!0);
471
+ !t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), M(
470
472
  () => t.value,
471
473
  () => {
472
- l.value = t.value[e.setting.name], l.value || (s.value = e.setting.options.file.limit > 1 ? [] : "", k(e.setting.name)), l.value && e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList);
474
+ l.value = t.value[e.setting.name], l.value || (s.value = e.setting.options.file.limit > 1 ? [] : "", S(e.setting.name)), l.value && e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList);
473
475
  },
474
476
  { deep: !0, immediate: !0 }
475
477
  );
476
478
  const v = i.value[e.setting.name] || !1, r = p(!1);
477
- X(e.setting.options.validateList).then((b) => {
478
- r.value = b;
479
+ ee(e.setting.options.validateList).then((y) => {
480
+ r.value = y;
479
481
  });
480
- const h = p("normal");
481
- e.isView && (h.value = "info");
482
+ const f = p("normal");
483
+ e.isView && (f.value = "info");
482
484
  const c = p();
483
- e.setting.options.tip && (c.value = W(e.setting.options.tip)), s.value = e.setting.options.file.limit > 1 ? [] : "", e.setting.options.file.limit > 1 && o(e.setting.name) ? s.value = o(e.setting.name).split(",") : s.value = o(e.setting.name) || s.value, s.value || d(e.setting.name, null);
484
- const _ = (b) => {
485
+ e.setting.options.tip && (c.value = Z(e.setting.options.tip)), s.value = e.setting.options.file.limit > 1 ? [] : "", e.setting.options.file.limit > 1 && o(e.setting.name) ? s.value = o(e.setting.name).split(",") : s.value = o(e.setting.name) || s.value, s.value || d(e.setting.name, null);
486
+ const _ = (y) => {
485
487
  setTimeout(() => {
486
488
  d(e.setting.name, s.value.toString());
487
489
  }, 100);
488
490
  };
489
- return e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList), z(s.value, (b) => {
490
- const w = b.map((m) => {
491
- let N = "";
492
- return m.indexOf("/oss/") != -1 ? N = m : N = `/oss/${m}`, N;
491
+ return e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList), M(s.value, (y) => {
492
+ const C = y.map((m) => {
493
+ let L = "";
494
+ return m.indexOf("/oss/") != -1 ? L = m : L = `/oss/${m}`, L;
493
495
  });
494
496
  setTimeout(() => {
495
- d(e.setting.name, w.join(","));
497
+ d(e.setting.name, C.join(","));
496
498
  }, 100);
497
- }), (b, w) => l.value ? (V(), E(a(Y), {
499
+ }), (y, C) => l.value ? (N(), E(a(J), {
498
500
  key: 0,
499
501
  modelValue: s.value,
500
- "onUpdate:modelValue": w[2] || (w[2] = (m) => s.value = m),
502
+ "onUpdate:modelValue": C[2] || (C[2] = (m) => s.value = m),
501
503
  "margin-bottom": "0",
502
504
  prop: e.setting.name,
503
- label: b.setting.desc,
505
+ label: y.setting.desc,
504
506
  type: "custom",
505
507
  helpMessage: c.value,
506
508
  required: r.value,
507
509
  col: e.span
508
510
  }, {
509
511
  default: $(() => [
510
- Ge("div", Ma, [
511
- L(a(Xe), {
512
+ Ge("div", za, [
513
+ z(a(Xe), {
512
514
  modelValue: s.value,
513
- "onUpdate:modelValue": w[0] || (w[0] = (m) => s.value = m),
514
- status: h.value,
515
- "onUpdate:status": w[1] || (w[1] = (m) => h.value = m),
515
+ "onUpdate:modelValue": C[0] || (C[0] = (m) => s.value = m),
516
+ status: f.value,
517
+ "onUpdate:status": C[1] || (C[1] = (m) => f.value = m),
516
518
  maxSize: "6",
517
- "limit-num": b.setting.options.file.limit,
519
+ "limit-num": y.setting.options.file.limit,
518
520
  prop: e.setting.name,
519
521
  "service-name": "hotent",
520
522
  "accept-video": "",
@@ -523,8 +525,8 @@ const W = (n) => {
523
525
  videoHeight: 680,
524
526
  disabled: a(v),
525
527
  "show-image-name": "",
526
- needDownloadBtn: b.setting.options.file.allowDownload == !0,
527
- needPreview: b.setting.options.file.allowPreview == !0,
528
+ needDownloadBtn: y.setting.options.file.allowDownload == !0,
529
+ needPreview: y.setting.options.file.allowPreview == !0,
528
530
  onImageUpload: _,
529
531
  required: r.value
530
532
  }, null, 8, ["modelValue", "status", "limit-num", "prop", "disabled", "needDownloadBtn", "needPreview", "required"])
@@ -532,17 +534,17 @@ const W = (n) => {
532
534
  ]),
533
535
  _: 1
534
536
  /* STABLE */
535
- }, 8, ["modelValue", "prop", "label", "helpMessage", "required", "col"])) : B("v-if", !0);
537
+ }, 8, ["modelValue", "prop", "label", "helpMessage", "required", "col"])) : A("v-if", !0);
536
538
  }
537
- }), Ne = (n, e) => {
539
+ }), Le = (n, e) => {
538
540
  const t = n.__vccOpts || n;
539
541
  for (const [i, d] of e)
540
542
  t[i] = d;
541
543
  return t;
542
- }, Ra = /* @__PURE__ */ Ne(Ta, [["__scopeId", "data-v-745a2e98"]]), ct = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
544
+ }, Ta = /* @__PURE__ */ Le(Ia, [["__scopeId", "data-v-745a2e98"]]), gt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
543
545
  __proto__: null,
544
- default: Ra
545
- }, Symbol.toStringTag, { value: "Module" })), Pa = (n) => {
546
+ default: Ta
547
+ }, Symbol.toStringTag, { value: "Module" })), Ra = (n) => {
546
548
  const t = "****", i = String(n), d = i.slice(0, 15), o = i.slice(15);
547
549
  return ((s) => {
548
550
  const l = s.length;
@@ -577,22 +579,22 @@ const W = (n) => {
577
579
  const r = v + t.length;
578
580
  return s.slice(0, v) + t + s.slice(r);
579
581
  })(d) + o;
580
- }, $a = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
582
+ }, Pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
581
583
  __proto__: null,
582
- default: Pa
583
- }, Symbol.toStringTag, { value: "Module" })), ke = {}, Fa = /^\.\/(.+)\/index\.ts$/, We = /* @__PURE__ */ Object.assign({ "./phone/index.ts": $a });
584
+ default: Ra
585
+ }, Symbol.toStringTag, { value: "Module" })), Se = {}, $a = /^\.\/(.+)\/index\.ts$/, We = /* @__PURE__ */ Object.assign({ "./phone/index.ts": Pa });
584
586
  var Ze;
585
587
  for (const n in We) {
586
- const e = We[n], t = (Ze = n.match(Fa)) == null ? void 0 : Ze[1];
587
- ke[t] = e.default;
588
+ const e = We[n], t = (Ze = n.match($a)) == null ? void 0 : Ze[1];
589
+ Se[t] = e.default;
588
590
  }
589
- const ja = (n, e) => {
591
+ const Fa = (n, e) => {
590
592
  var i;
591
- return e ? ((i = ke[n]) == null ? void 0 : i.call(ke, e)) ?? e : "-";
592
- }, Ka = {
593
+ return e ? ((i = Se[n]) == null ? void 0 : i.call(Se, e)) ?? e : "-";
594
+ }, ja = {
593
595
  name: "input"
594
- }, qa = /* @__PURE__ */ x({
595
- ...Ka,
596
+ }, Ka = /* @__PURE__ */ Y({
597
+ ...ja,
596
598
  props: {
597
599
  setting: { default: () => ({
598
600
  icon: "",
@@ -607,73 +609,73 @@ const ja = (n, e) => {
607
609
  store: {}
608
610
  },
609
611
  setup(n) {
610
- const e = n, { data: t, showData: i, disabledData: d, setData: o, getData: g, setFormRule: k, deleteRule: s, encryptionData: l } = e.store || {}, v = p(""), r = p(!1);
612
+ const e = n, { data: t, showData: i, disabledData: d, setData: o, getData: g, setFormRule: S, deleteRule: s, encryptionData: l } = e.store || {}, v = p(""), r = p(!1);
611
613
  l.value.length && l.value.forEach((m) => {
612
614
  m.name === e.setting.name && (r.value = !0);
613
615
  });
614
- const h = p(""), c = p(!0);
615
- !i.value[e.setting.name] && i.value[e.setting.name] != !1 && (i.value[e.setting.name] = !0), z(
616
+ const f = p(""), c = p(!0);
617
+ !i.value[e.setting.name] && i.value[e.setting.name] != !1 && (i.value[e.setting.name] = !0), M(
616
618
  () => i.value,
617
619
  () => {
618
- c.value = i.value[e.setting.name], c.value || (h.value = "", s(e.setting.name)), c.value && e.setting.options.validateList.length && k(e.setting.name, e.setting.options.validateList);
620
+ c.value = i.value[e.setting.name], c.value || (f.value = "", s(e.setting.name)), c.value && e.setting.options.validateList.length && S(e.setting.name, e.setting.options.validateList);
619
621
  },
620
622
  { deep: !0, immediate: !0 }
621
- ), z(
623
+ ), M(
622
624
  () => t.value,
623
625
  () => {
624
- t.value[e.setting.name] && (h.value = t.value[e.setting.name]);
626
+ t.value[e.setting.name] && (f.value = t.value[e.setting.name]);
625
627
  },
626
628
  { deep: !0 }
627
629
  );
628
- const _ = d.value[e.setting.name] || !1, b = p(!1);
629
- X(e.setting.options.validateList).then((m) => {
630
- b.value = m;
630
+ const _ = d.value[e.setting.name] || !1, y = p(!1);
631
+ ee(e.setting.options.validateList).then((m) => {
632
+ y.value = m;
631
633
  });
632
- const w = p();
633
- return e.setting.options.tip && (w.value = W(e.setting.options.tip)), setTimeout(() => {
634
- h.value = g(e.setting.name) || e.setting.options.formulasDiyJs || h.value, r && e.isView && (v.value = ja("phone", h.value)), h.value || o(e.setting.name, null);
635
- }, 50), e.setting.options.validateList.length && k(e.setting.name, e.setting.options.validateList), z(h, (m) => {
634
+ const C = p();
635
+ return e.setting.options.tip && (C.value = Z(e.setting.options.tip)), setTimeout(() => {
636
+ f.value = g(e.setting.name) || e.setting.options.formulasDiyJs || f.value, r && e.isView && (v.value = Fa("phone", f.value)), f.value || o(e.setting.name, null);
637
+ }, 50), e.setting.options.validateList.length && S(e.setting.name, e.setting.options.validateList), M(f, (m) => {
636
638
  e.setting.options.dataType === "number" && !isNaN(m) ? o(e.setting.name, Number(m)) : o(e.setting.name, m);
637
- }), (m, N) => (V(), J(
638
- ee,
639
+ }), (m, L) => (N(), H(
640
+ ae,
639
641
  null,
640
642
  [
641
- c.value && r.value && e.isView ? (V(), E(a(Y), {
643
+ c.value && r.value && e.isView ? (N(), E(a(J), {
642
644
  key: 0,
643
645
  col: e.span,
644
646
  prop: e.setting.name,
645
- modelValue: h.value,
646
- "onUpdate:modelValue": N[1] || (N[1] = (y) => h.value = y),
647
+ modelValue: f.value,
648
+ "onUpdate:modelValue": L[1] || (L[1] = (h) => f.value = h),
647
649
  label: m.setting.desc,
648
650
  type: "custom",
649
- helpMessage: w.value,
650
- required: b.value
651
+ helpMessage: C.value,
652
+ required: y.value
651
653
  }, {
652
654
  default: $(() => [
653
- L(a(Fe), {
655
+ z(a(je), {
654
656
  placement: "top",
655
- disabled: !h.value,
656
- content: h.value
657
+ disabled: !f.value,
658
+ content: f.value
657
659
  }, {
658
660
  default: $(() => [
659
- L(a(Ft), {
661
+ z(a(jt), {
660
662
  modelValue: v.value,
661
- "onUpdate:modelValue": N[0] || (N[0] = (y) => v.value = y),
663
+ "onUpdate:modelValue": L[0] || (L[0] = (h) => v.value = h),
662
664
  width: m.setting.options.width,
663
665
  disabled: m.setting.options.isInputEdit || a(_),
664
666
  isView: m.setting.options.isReadonly || e.isView,
665
667
  placeholder: m.setting.options.placeholder
666
668
  }, {
667
669
  prepend: $(() => [
668
- ae(
669
- ne(m.setting.options.bindPreAndSufFixjson.preFix),
670
+ se(
671
+ oe(m.setting.options.bindPreAndSufFixjson.preFix),
670
672
  1
671
673
  /* TEXT */
672
674
  )
673
675
  ]),
674
676
  append: $(() => [
675
- ae(
676
- ne(m.setting.options.bindPreAndSufFixjson.sufSix),
677
+ se(
678
+ oe(m.setting.options.bindPreAndSufFixjson.sufSix),
677
679
  1
678
680
  /* TEXT */
679
681
  )
@@ -688,24 +690,24 @@ const ja = (n, e) => {
688
690
  ]),
689
691
  _: 1
690
692
  /* STABLE */
691
- }, 8, ["col", "prop", "modelValue", "label", "helpMessage", "required"])) : B("v-if", !0),
692
- c.value && (!r.value || !e.isView) ? (V(), E(a(Y), {
693
+ }, 8, ["col", "prop", "modelValue", "label", "helpMessage", "required"])) : A("v-if", !0),
694
+ c.value && (!r.value || !e.isView) ? (N(), E(a(J), {
693
695
  key: 1,
694
696
  col: e.span,
695
- modelValue: h.value,
696
- "onUpdate:modelValue": N[2] || (N[2] = (y) => h.value = y),
697
+ modelValue: f.value,
698
+ "onUpdate:modelValue": L[2] || (L[2] = (h) => f.value = h),
697
699
  width: m.setting.options.width,
698
700
  disabled: m.setting.options.isInputEdit || a(_),
699
701
  isView: m.setting.options.isReadonly || e.isView,
700
702
  prop: e.setting.name,
701
703
  label: m.setting.desc,
702
704
  type: "input",
703
- helpMessage: w.value,
704
- required: b.value,
705
+ helpMessage: C.value,
706
+ required: y.value,
705
707
  placeholder: m.setting.options.placeholder
706
708
  }, {
707
709
  default: $(() => [
708
- B(` <DasInput\r
710
+ A(` <DasInput\r
709
711
  v-model="inputValue"\r
710
712
  >\r
711
713
  <template #prepend>{{ setting.options.bindPreAndSufFixjson.preFix }}</template>\r
@@ -714,19 +716,19 @@ const ja = (n, e) => {
714
716
  ]),
715
717
  _: 1
716
718
  /* STABLE */
717
- }, 8, ["col", "modelValue", "width", "disabled", "isView", "prop", "label", "helpMessage", "required", "placeholder"])) : B("v-if", !0)
719
+ }, 8, ["col", "modelValue", "width", "disabled", "isView", "prop", "label", "helpMessage", "required", "placeholder"])) : A("v-if", !0)
718
720
  ],
719
721
  64
720
722
  /* STABLE_FRAGMENT */
721
723
  ));
722
724
  }
723
- }), gt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
725
+ }), mt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
724
726
  __proto__: null,
725
- default: qa
726
- }, Symbol.toStringTag, { value: "Module" })), Ea = {
727
+ default: Ka
728
+ }, Symbol.toStringTag, { value: "Module" })), qa = {
727
729
  name: "number"
728
- }, Oa = /* @__PURE__ */ x({
729
- ...Ea,
730
+ }, Ea = /* @__PURE__ */ Y({
731
+ ...qa,
730
732
  props: {
731
733
  setting: { default: () => ({
732
734
  icon: "",
@@ -741,28 +743,28 @@ const ja = (n, e) => {
741
743
  store: {}
742
744
  },
743
745
  setup(n) {
744
- const e = n, { showData: t, disabledData: i, setData: d, getData: o, setFormRule: g, deleteRule: k } = e.store || {}, s = p(0), l = p(!0);
745
- !t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), z(
746
+ const e = n, { showData: t, disabledData: i, setData: d, getData: o, setFormRule: g, deleteRule: S } = e.store || {}, s = p(0), l = p(!0);
747
+ !t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), M(
746
748
  () => t.value,
747
749
  () => {
748
- l.value = t.value[e.setting.name], l.value || (s.value = 0, k(e.setting.name)), l.value && e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList);
750
+ l.value = t.value[e.setting.name], l.value || (s.value = 0, S(e.setting.name)), l.value && e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList);
749
751
  },
750
752
  { deep: !0, immediate: !0 }
751
753
  );
752
754
  const v = i.value[e.setting.name] || !1, r = p(!1);
753
- X(e.setting.options.validateList).then((c) => {
755
+ ee(e.setting.options.validateList).then((c) => {
754
756
  r.value = c;
755
757
  });
756
- const h = p();
757
- return e.setting.options.tip && (h.value = W(e.setting.options.tip)), setTimeout(() => {
758
+ const f = p();
759
+ return e.setting.options.tip && (f.value = Z(e.setting.options.tip)), setTimeout(() => {
758
760
  s.value = o(e.setting.name) || e.setting.options.formulasDiyJs || s.value, s.value || d(e.setting.name, null);
759
- }, 50), e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList), z(s, (c) => {
761
+ }, 50), e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList), M(s, (c) => {
760
762
  d(e.setting.name, c);
761
- }), (c, _) => l.value ? (V(), E(a(Y), {
763
+ }), (c, _) => l.value ? (N(), E(a(J), {
762
764
  key: 0,
763
765
  col: e.span,
764
766
  modelValue: s.value,
765
- "onUpdate:modelValue": _[0] || (_[0] = (b) => s.value = b),
767
+ "onUpdate:modelValue": _[0] || (_[0] = (y) => s.value = y),
766
768
  style: { width: "100%" },
767
769
  label: c.setting.desc,
768
770
  type: "inputNumber",
@@ -773,17 +775,17 @@ const ja = (n, e) => {
773
775
  disabled: a(v),
774
776
  isView: e.isView,
775
777
  precision: c.setting.options.decimalDigits,
776
- helpMessage: h.value,
778
+ helpMessage: f.value,
777
779
  required: r.value
778
- }, null, 8, ["col", "modelValue", "label", "prop", "max", "min", "step", "disabled", "isView", "precision", "helpMessage", "required"])) : B("v-if", !0);
780
+ }, null, 8, ["col", "modelValue", "label", "prop", "max", "min", "step", "disabled", "isView", "precision", "helpMessage", "required"])) : A("v-if", !0);
779
781
  }
780
- }), mt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
782
+ }), vt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
781
783
  __proto__: null,
782
- default: Oa
783
- }, Symbol.toStringTag, { value: "Module" })), Ba = {
784
+ default: Ea
785
+ }, Symbol.toStringTag, { value: "Module" })), Oa = {
784
786
  name: "radio"
785
- }, Aa = /* @__PURE__ */ x({
786
- ...Ba,
787
+ }, Aa = /* @__PURE__ */ Y({
788
+ ...Oa,
787
789
  props: {
788
790
  setting: { default: () => ({
789
791
  icon: "",
@@ -800,63 +802,63 @@ const ja = (n, e) => {
800
802
  store: {}
801
803
  },
802
804
  setup(n) {
803
- const e = n, { showData: t, disabledData: i, setData: d, getData: o, setFormRule: g, deleteRule: k } = e.store || {}, s = p(null), l = p(!0);
804
- !t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), z(
805
+ const e = n, { showData: t, disabledData: i, setData: d, getData: o, setFormRule: g, deleteRule: S } = e.store || {}, s = p(null), l = p(!0);
806
+ !t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), M(
805
807
  () => t.value,
806
808
  () => {
807
- l.value = t.value[e.setting.name], l.value || (s.value = null, k(e.setting.name)), l.value && e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList);
809
+ l.value = t.value[e.setting.name], l.value || (s.value = null, S(e.setting.name)), l.value && e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList);
808
810
  },
809
811
  { deep: !0, immediate: !0 }
810
812
  );
811
813
  const v = i.value[e.setting.name] || !1, r = p(!1);
812
- X(e.setting.options.validateList).then((m) => {
814
+ ee(e.setting.options.validateList).then((m) => {
813
815
  r.value = m;
814
816
  });
815
- const h = e.setting.options.customQuery.valueBind ? e.setting.options.customQuery.valueBind : "key", c = e.setting.options.customQuery.labelBind ? e.setting.options.customQuery.labelBind : "value", _ = p([]);
816
- e.setting.options.customQuery.alias ? de(e.setting.options.customQuery.alias, e.setting.options.customQuery.conditionfield).then((m) => {
817
+ const f = e.setting.options.customQuery.valueBind ? e.setting.options.customQuery.valueBind : "key", c = e.setting.options.customQuery.labelBind ? e.setting.options.customQuery.labelBind : "value", _ = p([]);
818
+ e.setting.options.customQuery.alias ? me(e.setting.options.customQuery.alias, e.setting.options.customQuery.conditionfield).then((m) => {
817
819
  _.value = m;
818
820
  }) : _.value = e.setting.options.options;
819
- const b = p();
820
- e.setting.options.tip && (b.value = W(e.setting.options.tip)), setTimeout(() => {
821
+ const y = p();
822
+ e.setting.options.tip && (y.value = Z(e.setting.options.tip)), setTimeout(() => {
821
823
  s.value = o(e.setting.name) || e.setting.options.formulasDiyJs || s.value, s.value || d(e.setting.name, null);
822
- }, 50), e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList), z(s, (m) => {
824
+ }, 50), e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList), M(s, (m) => {
823
825
  d(e.setting.name, m);
824
826
  });
825
- const w = (m) => {
826
- e.setting.options.linkage.length && e.setting.options.linkage.forEach((N) => {
827
- if (N.value === m) {
828
- const u = N.effect[0].target.split(".")[2];
829
- t.value[u] = N.effect[0].type === "w";
827
+ const C = (m) => {
828
+ e.setting.options.linkage.length && e.setting.options.linkage.forEach((L) => {
829
+ if (L.value === m) {
830
+ const u = L.effect[0].target.split(".")[2];
831
+ t.value[u] = L.effect[0].type === "w";
830
832
  }
831
833
  });
832
834
  };
833
- return (m, N) => l.value ? (V(), E(a(Y), {
835
+ return (m, L) => l.value ? (N(), E(a(J), {
834
836
  key: 0,
835
- onChange: w,
837
+ onChange: C,
836
838
  col: e.span,
837
839
  modelValue: s.value,
838
- "onUpdate:modelValue": N[0] || (N[0] = (y) => s.value = y),
840
+ "onUpdate:modelValue": L[0] || (L[0] = (h) => s.value = h),
839
841
  layout: m.setting.options.inline ? "vertical" : "default",
840
842
  label: m.setting.desc,
841
843
  type: "radio",
842
844
  prop: e.setting.name,
843
845
  options: _.value,
844
846
  isView: e.isView,
845
- optionsValueKey: a(h),
847
+ optionsValueKey: a(f),
846
848
  optionsLabelKey: a(c),
847
- helpMessage: b.value,
849
+ helpMessage: y.value,
848
850
  disabled: a(v),
849
851
  required: r.value,
850
852
  isSetTimeout: !0
851
- }, null, 8, ["col", "modelValue", "layout", "label", "prop", "options", "isView", "optionsValueKey", "optionsLabelKey", "helpMessage", "disabled", "required"])) : B("v-if", !0);
853
+ }, null, 8, ["col", "modelValue", "layout", "label", "prop", "options", "isView", "optionsValueKey", "optionsLabelKey", "helpMessage", "disabled", "required"])) : A("v-if", !0);
852
854
  }
853
- }), vt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
855
+ }), ft = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
854
856
  __proto__: null,
855
857
  default: Aa
856
- }, Symbol.toStringTag, { value: "Module" })), Qa = {
858
+ }, Symbol.toStringTag, { value: "Module" })), Ba = {
857
859
  name: "select"
858
- }, Ua = /* @__PURE__ */ x({
859
- ...Qa,
860
+ }, Qa = /* @__PURE__ */ Y({
861
+ ...Ba,
860
862
  props: {
861
863
  setting: { default: () => ({
862
864
  icon: "",
@@ -871,73 +873,73 @@ const ja = (n, e) => {
871
873
  store: {}
872
874
  },
873
875
  setup(n) {
874
- var N, y;
875
- const e = n, { showData: t, disabledData: i, linkData: d, setData: o, getData: g, setFormRule: k, deleteRule: s } = e.store || {}, l = p(), v = p(!0);
876
- !t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), z(
876
+ var L, h;
877
+ const e = n, { showData: t, disabledData: i, linkData: d, setData: o, getData: g, setFormRule: S, deleteRule: s } = e.store || {}, l = p(), v = p(!0);
878
+ !t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), M(
877
879
  () => t.value,
878
880
  () => {
879
- v.value = t.value[e.setting.name], v.value || (l.value = null, s(e.setting.name)), v.value && e.setting.options.validateList.length && k(e.setting.name, e.setting.options.validateList);
881
+ v.value = t.value[e.setting.name], v.value || (l.value = null, s(e.setting.name)), v.value && e.setting.options.validateList.length && S(e.setting.name, e.setting.options.validateList);
880
882
  },
881
883
  { deep: !0, immediate: !0 }
882
- ), z(
884
+ ), M(
883
885
  () => d.value,
884
886
  () => {
885
887
  d.value.data.forEach((u) => {
886
888
  if (e.setting.options.customQuery.alias && e.setting.options.customQuery.alias === u.alias) {
887
889
  l.value = null;
888
- const R = u.conditionfield.filter((I) => I.defaultType == 1);
890
+ const R = u.conditionfield.filter((T) => T.defaultType == 1);
889
891
  let F = {};
890
- R.forEach((I) => {
891
- const M = I.fieldPath.split("."), Q = M[M.length - 1];
892
- F[I.field] = g(Q);
893
- }), de(
892
+ R.forEach((T) => {
893
+ const I = T.fieldPath.split("."), Q = I[I.length - 1];
894
+ F[T.field] = g(Q);
895
+ }), me(
894
896
  e.setting.options.customQuery.alias,
895
897
  e.setting.options.customQuery.conditionfield,
896
898
  F
897
- ).then((I) => {
898
- b.value = I;
899
+ ).then((T) => {
900
+ y.value = T;
899
901
  });
900
902
  }
901
903
  });
902
904
  },
903
905
  { deep: !0 }
904
906
  );
905
- const r = i.value[e.setting.name] || !1, h = p(!1);
906
- X(e.setting.options.validateList).then((u) => {
907
- h.value = u;
907
+ const r = i.value[e.setting.name] || !1, f = p(!1);
908
+ ee(e.setting.options.validateList).then((u) => {
909
+ f.value = u;
908
910
  });
909
- const c = e.setting.options.customQuery.valueBind ? e.setting.options.customQuery.valueBind : "key", _ = e.setting.options.customQuery.labelBind ? e.setting.options.customQuery.labelBind : "value", b = p([]);
911
+ const c = e.setting.options.customQuery.valueBind ? e.setting.options.customQuery.valueBind : "key", _ = e.setting.options.customQuery.labelBind ? e.setting.options.customQuery.labelBind : "value", y = p([]);
910
912
  if (e.setting.options.customQuery.alias) {
911
- let u = (y = (N = e.setting.options) == null ? void 0 : N.customQuery) == null ? void 0 : y.conditionfield;
913
+ let u = (h = (L = e.setting.options) == null ? void 0 : L.customQuery) == null ? void 0 : h.conditionfield;
912
914
  typeof u == "string" && (u = JSON.parse(u));
913
- const R = u.filter((I) => I.defaultType == 1);
915
+ const R = u.filter((T) => T.defaultType == 1);
914
916
  let F = {};
915
- R.forEach((I) => {
916
- var q;
917
- const M = (q = I.fieldPath) == null ? void 0 : q.split("."), Q = M[M.length - 1];
918
- F[I.field] = g(Q);
919
- }), Object.values(F).every((I) => I) && de(e.setting.options.customQuery.alias, e.setting.options.customQuery.conditionfield, F).then(
920
- (I) => {
921
- b.value = I;
917
+ R.forEach((T) => {
918
+ var K;
919
+ const I = (K = T.fieldPath) == null ? void 0 : K.split("."), Q = I[I.length - 1];
920
+ F[T.field] = g(Q);
921
+ }), Object.values(F).every((T) => T) && me(e.setting.options.customQuery.alias, e.setting.options.customQuery.conditionfield, F).then(
922
+ (T) => {
923
+ y.value = T;
922
924
  }
923
925
  );
924
926
  } else
925
- b.value = e.setting.options.options;
926
- const w = p();
927
- e.setting.options.tip && (w.value = W(e.setting.options.tip)), l.value = e.setting.options.multiple ? [] : null, setTimeout(() => {
927
+ y.value = e.setting.options.options;
928
+ const C = p();
929
+ e.setting.options.tip && (C.value = Z(e.setting.options.tip)), l.value = e.setting.options.multiple ? [] : null, setTimeout(() => {
928
930
  e.setting.options.multiple && (g(e.setting.name) || e.setting.options.formulasDiyJs) ? (g(e.setting.name) && (l.value = g(e.setting.name).split(",")), e.setting.options.formulasDiyJs && (l.value = e.setting.options.formulasDiyJs.split(","))) : l.value = g(e.setting.name) || e.setting.options.formulasDiyJs || l.value, l.value || o(e.setting.name, null);
929
- }, 50), e.setting.options.validateList.length && k(e.setting.name, e.setting.options.validateList), z(l, (u) => {
931
+ }, 50), e.setting.options.validateList.length && S(e.setting.name, e.setting.options.validateList), M(l, (u) => {
930
932
  e.setting.options.multiple ? o(e.setting.name, u.toString()) : o(e.setting.name, u);
931
933
  });
932
934
  const m = (u) => {
933
935
  e.setting.options.linkage.length && !e.setting.options.multiple && e.setting.options.linkage.forEach((R) => {
934
936
  if (R.value === u) {
935
- const I = R.effect[0].target.split(".")[2];
936
- t.value[I] = R.effect[0].type === "w";
937
+ const T = R.effect[0].target.split(".")[2];
938
+ t.value[T] = R.effect[0].type === "w";
937
939
  }
938
940
  });
939
941
  };
940
- return (u, R) => v.value ? (V(), E(a(Y), {
942
+ return (u, R) => v.value ? (N(), E(a(J), {
941
943
  key: 0,
942
944
  col: e.span,
943
945
  modelValue: l.value,
@@ -951,20 +953,20 @@ const ja = (n, e) => {
951
953
  showSearch: u.setting.options.filterable,
952
954
  allowClear: !0,
953
955
  isView: e.isView,
954
- options: b.value,
956
+ options: y.value,
955
957
  optionsValueKey: a(c),
956
958
  optionsLabelKey: a(_),
957
- helpMessage: w.value,
959
+ helpMessage: C.value,
958
960
  disabled: a(r),
959
- required: h.value
960
- }, null, 8, ["col", "modelValue", "label", "prop", "placeholder", "mode", "showSearch", "isView", "options", "optionsValueKey", "optionsLabelKey", "helpMessage", "disabled", "required"])) : B("v-if", !0);
961
+ required: f.value
962
+ }, null, 8, ["col", "modelValue", "label", "prop", "placeholder", "mode", "showSearch", "isView", "options", "optionsValueKey", "optionsLabelKey", "helpMessage", "disabled", "required"])) : A("v-if", !0);
961
963
  }
962
- }), ft = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
964
+ }), ht = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
963
965
  __proto__: null,
964
- default: Ua
965
- }, Symbol.toStringTag, { value: "Module" })), xa = (n, e, t) => {
966
- var _e, we, ue, pe, me;
967
- const i = et().id, d = p(!1), o = (me = (pe = (ue = (we = (_e = n == null ? void 0 : n.options) == null ? void 0 : _e.selector) == null ? void 0 : we.type) == null ? void 0 : ue.alias) == null ? void 0 : pe.replace("eip-", "")) == null ? void 0 : me.replace("-selector", ""), g = p([]), k = p(""), s = p(""), l = p(""), v = p({
966
+ default: Qa
967
+ }, Symbol.toStringTag, { value: "Module" })), Ua = (n, e, t) => {
968
+ var Ce, De, de, ce, he;
969
+ const i = et().id, d = p(!1), o = (he = (ce = (de = (De = (Ce = n == null ? void 0 : n.options) == null ? void 0 : Ce.selector) == null ? void 0 : De.type) == null ? void 0 : de.alias) == null ? void 0 : ce.replace("eip-", "")) == null ? void 0 : he.replace("-selector", ""), g = p([]), S = p(""), s = p(""), l = p(""), v = p({
968
970
  spaceId: "",
969
971
  spacePath: "",
970
972
  spacePathName: ""
@@ -977,7 +979,7 @@ const ja = (n, e) => {
977
979
  supplier: O("搜索供应商编码/名称").value,
978
980
  source: O("搜索单据编码/申请人").value,
979
981
  device: O("搜索设备编码/名称").value
980
- }, h = {
982
+ }, f = {
981
983
  user: O("添加用户").value,
982
984
  org: O("组织选择器").value,
983
985
  role: O("角色选择器").value,
@@ -999,23 +1001,23 @@ const ja = (n, e) => {
999
1001
  1: O("正常").value,
1000
1002
  2: O("锁定").value,
1001
1003
  3: O("禁用").value
1002
- }, b = {
1004
+ }, y = {
1003
1005
  0: O("普通").value,
1004
1006
  1: O("管理员").value
1005
- }, w = {
1007
+ }, C = {
1006
1008
  0: O("无效").value,
1007
1009
  1: O("有效").value
1008
1010
  }, m = {
1009
1011
  user: sa,
1010
- org: Me,
1012
+ org: Ie,
1011
1013
  role: la,
1012
- job: Me,
1013
- post: Me,
1014
+ job: Ie,
1015
+ post: Ie,
1014
1016
  supplier: ca,
1015
- device: fa
1016
- }, N = h[o], y = p({}), u = p([]), R = () => {
1017
- var S, C;
1018
- o === "supplier" && (y.value = {
1017
+ device: va
1018
+ }, L = f[o], h = p({}), u = p([]), R = () => {
1019
+ var V, B;
1020
+ o === "supplier" ? (h.value = {
1019
1021
  left: !1,
1020
1022
  content: {
1021
1023
  api: da,
@@ -1043,11 +1045,11 @@ const ja = (n, e) => {
1043
1045
  }
1044
1046
  },
1045
1047
  right: !1
1046
- }, Z(), I()), o === "device" ? (y.value = {
1048
+ }, G(), T()) : o === "device" ? (h.value = {
1047
1049
  left: !1,
1048
1050
  content: {
1049
1051
  multiple: !1,
1050
- api: va,
1052
+ api: it,
1051
1053
  params: {
1052
1054
  deviceNameOrCode: "",
1053
1055
  groupId: null,
@@ -1062,7 +1064,7 @@ const ja = (n, e) => {
1062
1064
  }
1063
1065
  },
1064
1066
  right: !1
1065
- }, q(), se()) : o === "source" ? (y.value = {
1067
+ }, K(), le()) : o === "source" ? (h.value = {
1066
1068
  left: !1,
1067
1069
  content: {
1068
1070
  api: ma,
@@ -1080,7 +1082,7 @@ const ja = (n, e) => {
1080
1082
  }
1081
1083
  },
1082
1084
  right: !1
1083
- }, F()) : o === "org" ? (y.value = {
1085
+ }, F()) : o === "org" ? (h.value = {
1084
1086
  left: !1,
1085
1087
  content: {
1086
1088
  api: ia,
@@ -1091,7 +1093,7 @@ const ja = (n, e) => {
1091
1093
  data: []
1092
1094
  }
1093
1095
  }
1094
- }, F()) : y.value = {
1096
+ }, F()) : h.value = {
1095
1097
  left: {
1096
1098
  api: aa,
1097
1099
  params: {
@@ -1109,7 +1111,7 @@ const ja = (n, e) => {
1109
1111
  data: []
1110
1112
  }
1111
1113
  }
1112
- }, o === "user" && (y.value.content = {
1114
+ }, o === "user" && (h.value.content = {
1113
1115
  api: na,
1114
1116
  searchKey: "groupId",
1115
1117
  params: {
@@ -1119,7 +1121,7 @@ const ja = (n, e) => {
1119
1121
  selectListProps: {
1120
1122
  data: []
1121
1123
  }
1122
- }, F()), o === "role" && (y.value.content = {
1124
+ }, F()), o === "role" && (h.value.content = {
1123
1125
  api: oa,
1124
1126
  searchKey: "orgId",
1125
1127
  params: {
@@ -1128,7 +1130,7 @@ const ja = (n, e) => {
1128
1130
  selectListProps: {
1129
1131
  data: []
1130
1132
  }
1131
- }, F()), o === "job" && (y.value.content = {
1133
+ }, F()), o === "job" && (h.value.content = {
1132
1134
  api: ua,
1133
1135
  searchKey: "groupId",
1134
1136
  props: {
@@ -1137,7 +1139,7 @@ const ja = (n, e) => {
1137
1139
  selectListProps: {
1138
1140
  data: []
1139
1141
  }
1140
- }, F()), o === "post" && (y.value.content = {
1142
+ }, F()), o === "post" && (h.value.content = {
1141
1143
  api: ra,
1142
1144
  searchKey: "groupId",
1143
1145
  props: {
@@ -1146,7 +1148,7 @@ const ja = (n, e) => {
1146
1148
  selectListProps: {
1147
1149
  data: []
1148
1150
  }
1149
- }, F()), y.value.content.multiple = o === "supplier" || o === "source" || o === "device" ? !1 : !((C = (S = n == null ? void 0 : n.options) == null ? void 0 : S.selector) != null && C.isSingle);
1151
+ }, F()), h.value.content.multiple = o === "supplier" || o === "source" || o === "device" ? !1 : !((B = (V = n == null ? void 0 : n.options) == null ? void 0 : V.selector) != null && B.isSingle);
1150
1152
  }, F = async () => {
1151
1153
  u.value = [
1152
1154
  {
@@ -1161,7 +1163,7 @@ const ja = (n, e) => {
1161
1163
  size: "small"
1162
1164
  }
1163
1165
  ];
1164
- }, I = async () => {
1166
+ }, T = async () => {
1165
1167
  u.value = [
1166
1168
  {
1167
1169
  type: "searchInput",
@@ -1188,16 +1190,16 @@ const ja = (n, e) => {
1188
1190
  allowClear: !0
1189
1191
  }
1190
1192
  ];
1191
- }, M = (S) => {
1192
- S.id == "-1" ? S.disabled = !0 : S.disabled = !1;
1193
- }, Q = async (S) => {
1194
- let C = { spaceId: "" };
1195
- S != null && S.id && (C.spaceId = S.id);
1196
- const [f, T] = await ot(C).run();
1197
- return f ? {} : (T.data.forEach((P) => {
1198
- M(P);
1199
- }), T);
1200
- }, q = async () => {
1193
+ }, I = (V) => {
1194
+ V.id == "-1" ? V.disabled = !0 : V.disabled = !1;
1195
+ }, Q = async (V) => {
1196
+ let B = { spaceId: "" };
1197
+ V != null && V.id && (B.spaceId = V.id);
1198
+ const [b, w] = await ot(B).run();
1199
+ return b ? {} : (w.data.forEach((P) => {
1200
+ I(P);
1201
+ }), w);
1202
+ }, K = async () => {
1201
1203
  u.value = [
1202
1204
  {
1203
1205
  type: "searchInput",
@@ -1230,42 +1232,42 @@ const ja = (n, e) => {
1230
1232
  value: "",
1231
1233
  checkedNodes: [],
1232
1234
  selectAttrs: { allowClear: !0 },
1233
- treeProps: { isLeaf: "leaf", label: "name", disabled: (S) => S.disabled },
1235
+ treeProps: { isLeaf: "leaf", label: "name", disabled: (V) => V.disabled },
1234
1236
  load: Q,
1235
1237
  options: []
1236
1238
  }
1237
1239
  ];
1238
- }, Z = async () => {
1239
- const S = {
1240
+ }, G = async () => {
1241
+ const V = {
1240
1242
  name: "",
1241
1243
  published: 1
1242
- }, [C, f] = await ga(S).run();
1243
- C || (u.value[1].options = f);
1244
- }, te = (S) => {
1245
- var C, f;
1246
- S.leaf = !((C = S.children) != null && C.length), S.parentId === "0" && (S.id = "-1"), (f = S.children) == null || f.forEach(te);
1247
- }, se = async () => {
1248
- const [S, C] = await ha().run();
1249
- if (S) return;
1250
- const f = [C];
1251
- f.forEach(te), u.value[1].options = f, u.value[1].value = "-1";
1252
- }, U = () => {
1253
- var C;
1254
- k.value = "", d.value = !0;
1255
- let S = c[o];
1256
- y.value.content.selectListProps.data = (C = g == null ? void 0 : g.value) == null ? void 0 : C.map((f) => o === "device" ? { deviceName: f == null ? void 0 : f.label, [S]: f == null ? void 0 : f.value } : { name: f == null ? void 0 : f.label, [S]: f == null ? void 0 : f.value });
1244
+ }, [B, b] = await ga(V).run();
1245
+ B || (u.value[1].options = b);
1246
+ }, ne = (V) => {
1247
+ var B, b;
1248
+ V.leaf = !((B = V.children) != null && B.length), V.parentId === "0" && (V.id = "-1"), (b = V.children) == null || b.forEach(ne);
1249
+ }, le = async () => {
1250
+ const [V, B] = await fa().run();
1251
+ if (V) return;
1252
+ const b = [B];
1253
+ b.forEach(ne), u.value[1].options = b, u.value[1].value = "-1";
1254
+ }, x = () => {
1255
+ var B;
1256
+ S.value = "", d.value = !0;
1257
+ let V = c[o];
1258
+ h.value.content.selectListProps.data = (B = g == null ? void 0 : g.value) == null ? void 0 : B.map((b) => o === "device" ? { deviceName: b == null ? void 0 : b.label, [V]: b == null ? void 0 : b.value } : { name: b == null ? void 0 : b.label, [V]: b == null ? void 0 : b.value });
1257
1259
  };
1258
1260
  R();
1259
- const ce = async () => {
1260
- var S, C, f, T, P, j, A, ve, ie, re, oe, Ce, Oe, Be, Ae, Qe, Ue, xe, Ye, Je;
1261
- if (y.value.content.params = {
1262
- ...(C = (S = y == null ? void 0 : y.value) == null ? void 0 : S.content) == null ? void 0 : C.params,
1261
+ const ve = async () => {
1262
+ var V, B, b, w, P, D, q, U, ie, te, pe, re, ge, Ae, Be, Qe, Ue, xe, Ye, Je;
1263
+ if (h.value.content.params = {
1264
+ ...(B = (V = h == null ? void 0 : h.value) == null ? void 0 : V.content) == null ? void 0 : B.params,
1263
1265
  pageIndex: 1
1264
- }, (o === "user" || o === "org" || o === "post" || o === "role" || o === "job") && (y.value.content.params.name = (f = u == null ? void 0 : u.value[0]) == null ? void 0 : f.value), o === "source" && (y.value.content.params.key = (T = u == null ? void 0 : u.value[0]) == null ? void 0 : T.value), o === "device") {
1265
- const Le = (P = u == null ? void 0 : u.value[1]) == null ? void 0 : P.value;
1266
- y.value.content.params.deviceNameOrCode = ((j = u == null ? void 0 : u.value[0]) == null ? void 0 : j.value) || "", y.value.content.params.groupId = !Le || Le === "-1" ? null : Le, y.value.content.params.spaceId = ((A = u == null ? void 0 : u.value[2]) == null ? void 0 : A.value) || "";
1266
+ }, (o === "user" || o === "org" || o === "post" || o === "role" || o === "job") && (h.value.content.params.name = (b = u == null ? void 0 : u.value[0]) == null ? void 0 : b.value), o === "source" && (h.value.content.params.key = (w = u == null ? void 0 : u.value[0]) == null ? void 0 : w.value), o === "device") {
1267
+ const ze = (P = u == null ? void 0 : u.value[1]) == null ? void 0 : P.value;
1268
+ h.value.content.params.deviceNameOrCode = ((D = u == null ? void 0 : u.value[0]) == null ? void 0 : D.value) || "", h.value.content.params.groupId = !ze || ze === "-1" ? null : ze, h.value.content.params.spaceId = ((q = u == null ? void 0 : u.value[2]) == null ? void 0 : q.value) || "";
1267
1269
  }
1268
- o === "supplier" && (y.value.content.params.querys = [
1270
+ o === "supplier" && (h.value.content.params.querys = [
1269
1271
  {
1270
1272
  property: "orgId",
1271
1273
  value: i,
@@ -1273,22 +1275,22 @@ const ja = (n, e) => {
1273
1275
  relation: "AND",
1274
1276
  operation: "EQUAL"
1275
1277
  }
1276
- ], (ve = u == null ? void 0 : u.value[0]) != null && ve.value && (y.value.content.params.querys = (Be = (oe = (re = (ie = y == null ? void 0 : y.value) == null ? void 0 : ie.content) == null ? void 0 : re.params) == null ? void 0 : oe.querys) == null ? void 0 : Be.concat([
1278
+ ], (U = u == null ? void 0 : u.value[0]) != null && U.value && (h.value.content.params.querys = (Ae = (pe = (te = (ie = h == null ? void 0 : h.value) == null ? void 0 : ie.content) == null ? void 0 : te.params) == null ? void 0 : pe.querys) == null ? void 0 : Ae.concat([
1277
1279
  {
1278
1280
  property: "name",
1279
- value: (Ce = u == null ? void 0 : u.value[0]) == null ? void 0 : Ce.value,
1281
+ value: (re = u == null ? void 0 : u.value[0]) == null ? void 0 : re.value,
1280
1282
  group: "merge",
1281
1283
  relation: "OR",
1282
1284
  operation: "LIKE"
1283
1285
  },
1284
1286
  {
1285
1287
  property: "code",
1286
- value: (Oe = u == null ? void 0 : u.value[0]) == null ? void 0 : Oe.value,
1288
+ value: (ge = u == null ? void 0 : u.value[0]) == null ? void 0 : ge.value,
1287
1289
  group: "merge",
1288
1290
  relation: "OR",
1289
1291
  operation: "LIKE"
1290
1292
  }
1291
- ])), (Ae = u == null ? void 0 : u.value[1]) != null && Ae.value && (y.value.content.params.querys = (Je = (xe = (Ue = (Qe = y == null ? void 0 : y.value) == null ? void 0 : Qe.content) == null ? void 0 : Ue.params) == null ? void 0 : xe.querys) == null ? void 0 : Je.concat([
1293
+ ])), (Be = u == null ? void 0 : u.value[1]) != null && Be.value && (h.value.content.params.querys = (Je = (xe = (Ue = (Qe = h == null ? void 0 : h.value) == null ? void 0 : Qe.content) == null ? void 0 : Ue.params) == null ? void 0 : xe.querys) == null ? void 0 : Je.concat([
1292
1294
  {
1293
1295
  property: "classificationId",
1294
1296
  value: (Ye = u == null ? void 0 : u.value[1]) == null ? void 0 : Ye.value,
@@ -1298,69 +1300,85 @@ const ja = (n, e) => {
1298
1300
  }
1299
1301
  ])));
1300
1302
  };
1301
- z(
1303
+ M(
1302
1304
  () => d == null ? void 0 : d.value,
1303
- (S) => {
1304
- S || ge();
1305
+ (V) => {
1306
+ V || fe();
1305
1307
  }
1306
1308
  );
1307
- const ge = async () => {
1309
+ const fe = async () => {
1308
1310
  o === "supplier" ? (u.value[0].value = "", u.value[1].value = void 0) : o === "device" ? (u.value[0].value = "", u.value[1].value = "-1", u.value[2].value = "") : (o === "org" || o === "user" || o === "source" || o === "post" || o === "role" || o === "job") && (u.value[0].value = ""), R();
1309
1311
  };
1310
1312
  return {
1311
1313
  dialogVisible: d,
1312
- title: N,
1313
- searchName: k,
1314
+ title: L,
1315
+ searchName: S,
1314
1316
  selectorType: o,
1315
1317
  selectOptions: g,
1316
- tableOptions: y,
1318
+ tableOptions: h,
1317
1319
  userStatusMap: _,
1318
- roleTypeMap: b,
1319
- roleStatusMap: w,
1320
- openDialog: U,
1321
- confirm: async (S) => {
1322
- var f, T, P, j;
1323
- let C = c[o];
1324
- g.value = S == null ? void 0 : S.map((A) => ({ label: (A == null ? void 0 : A.deviceName) || (A == null ? void 0 : A.name) || (A == null ? void 0 : A.code), value: A[C] })), o === "supplier" && (s.value = (f = S[0]) == null ? void 0 : f.linkmanPhone), o === "device" && (l.value = ((T = S[0]) == null ? void 0 : T.id) || "", v.value = {
1325
- spaceId: (P = S[0]) == null ? void 0 : P.spaceId,
1320
+ roleTypeMap: y,
1321
+ roleStatusMap: C,
1322
+ openDialog: x,
1323
+ confirm: async (V) => {
1324
+ var b, w, P, D;
1325
+ let B = c[o];
1326
+ g.value = V == null ? void 0 : V.map((q) => ({ label: (q == null ? void 0 : q.deviceName) || (q == null ? void 0 : q.name) || (q == null ? void 0 : q.code), value: q[B] })), o === "supplier" && (s.value = (b = V[0]) == null ? void 0 : b.linkmanPhone), o === "device" && (l.value = ((w = V[0]) == null ? void 0 : w.id) || "", v.value = {
1327
+ spaceId: (P = V[0]) == null ? void 0 : P.spaceId,
1326
1328
  spacePath: "",
1327
- spacePathName: ((j = S[0]) == null ? void 0 : j.spaceSite) || ""
1329
+ spacePathName: ((D = V[0]) == null ? void 0 : D.spaceSite) || ""
1328
1330
  });
1329
1331
  },
1330
- getDetail: async (S) => {
1331
- if (!S) return;
1332
- const C = m[o];
1333
- let f = {};
1334
- const T = S == null ? void 0 : S.split(",");
1332
+ getDetail: async (V) => {
1333
+ if (!V) return;
1334
+ const B = m[o];
1335
+ let b = {};
1336
+ const w = V == null ? void 0 : V.split(",");
1335
1337
  if (o === "source") {
1336
1338
  g.value = [
1337
1339
  {
1338
- label: S,
1339
- value: S
1340
+ label: V,
1341
+ value: V
1340
1342
  }
1341
1343
  ];
1342
1344
  return;
1343
- } else o === "user" ? f.userIds = T : o === "role" ? f.ids = T : o === "supplier" ? f.id = T : o === "device" ? f.deviceId = S : f = T;
1344
- const [P, j] = await C(f).run();
1345
- P || (o === "supplier" ? g.value = [
1346
- {
1347
- label: (j == null ? void 0 : j.name) || (j == null ? void 0 : j.code),
1348
- value: j == null ? void 0 : j.id
1349
- }
1350
- ] : o === "device" ? (l.value = (j == null ? void 0 : j.id) || "", g.value = [
1351
- {
1352
- label: j == null ? void 0 : j.deviceName,
1353
- value: j == null ? void 0 : j.deviceId
1354
- }
1355
- ]) : g.value = j == null ? void 0 : j.map((A) => ({ label: (A == null ? void 0 : A.name) || (A == null ? void 0 : A.code), value: A == null ? void 0 : A.id })));
1345
+ } else o === "user" ? b.userIds = w : o === "role" ? b.ids = w : o === "supplier" ? b.id = w : o === "device" ? b = {
1346
+ deviceNameOrCode: V,
1347
+ groupId: null,
1348
+ spaceId: ""
1349
+ } : b = w;
1350
+ const [P, D] = await B(b).run();
1351
+ if (!P)
1352
+ if (o === "supplier")
1353
+ g.value = [
1354
+ {
1355
+ label: (D == null ? void 0 : D.name) || (D == null ? void 0 : D.code),
1356
+ value: D == null ? void 0 : D.id
1357
+ }
1358
+ ];
1359
+ else if (o === "device") {
1360
+ const q = Array.isArray(D) ? D : (D == null ? void 0 : D.data) || (D == null ? void 0 : D.rows) || [], U = q.find((ie) => (ie == null ? void 0 : ie.deviceId) === V) || q[0];
1361
+ if (!U) return;
1362
+ l.value = (U == null ? void 0 : U.id) || "", v.value = {
1363
+ spaceId: (U == null ? void 0 : U.spaceId) || "",
1364
+ spacePath: "",
1365
+ spacePathName: (U == null ? void 0 : U.spaceSite) || ""
1366
+ }, g.value = [
1367
+ {
1368
+ label: U == null ? void 0 : U.deviceName,
1369
+ value: U == null ? void 0 : U.deviceId
1370
+ }
1371
+ ];
1372
+ } else
1373
+ g.value = D == null ? void 0 : D.map((q) => ({ label: (q == null ? void 0 : q.name) || (q == null ? void 0 : q.code), value: q == null ? void 0 : q.id }));
1356
1374
  },
1357
- searchData: ce,
1375
+ searchData: ve,
1358
1376
  searchOptions: u,
1359
1377
  linkmanPhone: s,
1360
1378
  equipmentArchivesId: l,
1361
1379
  deviceSpaceInfo: v
1362
1380
  };
1363
- }, Ya = (n) => {
1381
+ }, xa = (n) => {
1364
1382
  const e = p(""), t = p(""), i = p([]), d = p("");
1365
1383
  return {
1366
1384
  spacePath: e,
@@ -1381,16 +1399,16 @@ const ja = (n, e) => {
1381
1399
  };
1382
1400
  v.spaceId = l != null && l.id ? l.id : "";
1383
1401
  let r = ot;
1384
- const [h, c] = await r(v).run();
1385
- return h ? {} : c;
1402
+ const [f, c] = await r(v).run();
1403
+ return f ? {} : c;
1386
1404
  },
1387
1405
  filterSpaceTree: async (l) => {
1388
1406
  if (!l) return [];
1389
1407
  let v = pa;
1390
1408
  const r = {
1391
1409
  name: l
1392
- }, [h, c] = await v(r).run();
1393
- return h ? {} : (c.forEach((_) => {
1410
+ }, [f, c] = await v(r).run();
1411
+ return f ? {} : (c.forEach((_) => {
1394
1412
  _.path.startsWith("/0") && (_.path = _.path.slice(2) + `/${_.id}`), _._name = _.nodeName ? _.nodeName : _.name;
1395
1413
  }), c);
1396
1414
  },
@@ -1401,10 +1419,10 @@ const ja = (n, e) => {
1401
1419
  return e.value = (r == null ? void 0 : r.path) || l, t.value = (r == null ? void 0 : r.pathName) || (r == null ? void 0 : r.name) || "", r;
1402
1420
  }
1403
1421
  };
1404
- }, Ja = { class: "table-search-process-top" }, Ha = {
1422
+ }, Ya = { class: "table-search-process-top" }, Ja = {
1405
1423
  name: "selector"
1406
- }, Wa = /* @__PURE__ */ x({
1407
- ...Ha,
1424
+ }, Ha = /* @__PURE__ */ Y({
1425
+ ...Ja,
1408
1426
  props: {
1409
1427
  setting: { default: () => ({
1410
1428
  icon: "",
@@ -1419,155 +1437,155 @@ const ja = (n, e) => {
1419
1437
  store: {}
1420
1438
  },
1421
1439
  setup(n) {
1422
- var me, S;
1423
- const e = n, t = Vt(() => {
1424
- var C, f, T;
1425
- return e.isView ? !(g(e.setting.name).split(",").length > 1) : ((T = (f = (C = e == null ? void 0 : e.setting) == null ? void 0 : C.options) == null ? void 0 : f.selector) == null ? void 0 : T.isSingle) ?? !0;
1426
- }), { data: i, showData: d, setData: o, getData: g, flowKey: k, setFormRule: s, deleteRule: l, disabledData: v } = e.store || {}, r = p(""), h = p(!0);
1427
- !d.value[e.setting.name] && d.value[e.setting.name] != !1 && (d.value[e.setting.name] = !0), z(
1440
+ var he, V, B;
1441
+ const e = n, t = Nt(() => {
1442
+ var b, w, P, D;
1443
+ return e.isView ? !(((b = g(e.setting.name)) == null ? void 0 : b.split(",").length) > 1) : ((D = (P = (w = e == null ? void 0 : e.setting) == null ? void 0 : w.options) == null ? void 0 : P.selector) == null ? void 0 : D.isSingle) ?? !0;
1444
+ }), { data: i, showData: d, setData: o, getData: g, flowKey: S, setFormRule: s, deleteRule: l, disabledData: v } = e.store || {}, r = p(""), f = p(!0);
1445
+ !d.value[e.setting.name] && d.value[e.setting.name] != !1 && (d.value[e.setting.name] = !0), M(
1428
1446
  () => d.value,
1429
1447
  () => {
1430
- h.value = d.value[e.setting.name], h.value || (r.value = "", N.value = [], l(e.setting.name)), h.value && e.setting.options.validateList.length && s(e.setting.name, e.setting.options.validateList);
1448
+ f.value = d.value[e.setting.name], f.value || (r.value = "", L.value = [], l(e.setting.name)), f.value && e.setting.options.validateList.length && s(e.setting.name, e.setting.options.validateList);
1431
1449
  },
1432
1450
  { deep: !0, immediate: !0 }
1433
1451
  );
1434
1452
  const c = v.value[e.setting.name] || !1, {
1435
1453
  dialogVisible: _,
1436
- title: b,
1437
- tableOptions: w,
1454
+ title: y,
1455
+ tableOptions: C,
1438
1456
  selectorType: m,
1439
- selectOptions: N,
1440
- userStatusMap: y,
1457
+ selectOptions: L,
1458
+ userStatusMap: h,
1441
1459
  roleTypeMap: u,
1442
1460
  roleStatusMap: R,
1443
1461
  openDialog: F,
1444
- confirm: I,
1445
- getDetail: M,
1462
+ confirm: T,
1463
+ getDetail: I,
1446
1464
  searchData: Q,
1447
- searchOptions: q,
1448
- linkmanPhone: Z,
1449
- equipmentArchivesId: te,
1450
- deviceSpaceInfo: se
1451
- } = xa(e.setting, k, r), { spacePath: U, spaceName: ce, searchSpace: ge, changeSpace: qe, spaceLoad: Ee, filterSpaceTree: _e, getSpaceDetail: we } = Ya(
1465
+ searchOptions: K,
1466
+ linkmanPhone: G,
1467
+ equipmentArchivesId: ne,
1468
+ deviceSpaceInfo: le
1469
+ } = Ua(e.setting, S, r), { spacePath: x, spaceName: ve, searchSpace: fe, changeSpace: Ee, spaceLoad: Oe, filterSpaceTree: Ce, getSpaceDetail: De } = xa(
1452
1470
  t.value
1453
- ), ue = p(!1);
1454
- X(e.setting.options.validateList).then((C) => {
1455
- ue.value = C;
1471
+ ), de = p(!1);
1472
+ ee(e.setting.options.validateList).then((b) => {
1473
+ de.value = b;
1456
1474
  });
1457
- const pe = p();
1458
- if (e.setting.options.tip && (pe.value = W(e.setting.options.tip)), e.setting.options.validateList.length && s(e.setting.name, e.setting.options.validateList), m == "position") {
1459
- t.value ? (U.value = g(e.setting.name) ?? "", r.value = g(e.setting.name) ? g(e.setting.name).split("/").pop() : r.value) : (U.value = [], r.value = g(e.setting.name) ? (S = (me = g(e.setting.name)) == null ? void 0 : me.split(",")) == null ? void 0 : S.map((f) => (U.value.push(f), f.split("/").pop())) : []), r.value || o(e.setting.name, null);
1460
- let C = !1;
1461
- z(r, (f) => {
1462
- C || (t.value ? o(e.setting.name, f) : o(e.setting.name, (f == null ? void 0 : f.join(",")) || ""));
1463
- }), z(ce, (f) => {
1464
- C || (t.value ? o(e.setting.options.selector.type.positionName, f) : o(e.setting.options.selector.type.positionName, (f == null ? void 0 : f.join(",")) || ""));
1465
- }), z(
1475
+ const ce = p();
1476
+ if (e.setting.options.tip && (ce.value = Z(e.setting.options.tip)), e.setting.options.validateList.length && s(e.setting.name, e.setting.options.validateList), m == "position") {
1477
+ t.value ? (x.value = g(e.setting.name) ?? "", r.value = g(e.setting.name) ? (B = g(e.setting.name)) == null ? void 0 : B.split("/").pop() : r.value) : (x.value = [], r.value = g(e.setting.name) ? (V = (he = g(e.setting.name)) == null ? void 0 : he.split(",")) == null ? void 0 : V.map((w) => (x.value.push(w), (w == null ? void 0 : w.split("/")).pop())) : []), r.value || o(e.setting.name, null);
1478
+ let b = !1;
1479
+ M(r, (w) => {
1480
+ b || (t.value ? o(e.setting.name, w) : o(e.setting.name, (w == null ? void 0 : w.join(",")) || ""));
1481
+ }), M(ve, (w) => {
1482
+ b || (t.value ? o(e.setting.options.selector.type.positionName, w) : o(e.setting.options.selector.type.positionName, (w == null ? void 0 : w.join(",")) || ""));
1483
+ }), M(
1466
1484
  () => {
1467
- var f;
1468
- return (f = i == null ? void 0 : i.value) == null ? void 0 : f[e.setting.name];
1485
+ var w;
1486
+ return (w = i == null ? void 0 : i.value) == null ? void 0 : w[e.setting.name];
1469
1487
  },
1470
- async (f, T) => {
1471
- var P, j, A, ve;
1472
- if (f !== T) {
1473
- C = !0;
1488
+ async (w, P) => {
1489
+ var D, q, U, ie;
1490
+ if (w !== P) {
1491
+ b = !0;
1474
1492
  try {
1475
- if (!f) {
1476
- r.value = t.value ? "" : [], U.value = t.value ? "" : [], ce.value = t.value ? "" : [];
1493
+ if (!w) {
1494
+ r.value = t.value ? "" : [], x.value = t.value ? "" : [], ve.value = t.value ? "" : [];
1477
1495
  return;
1478
1496
  }
1479
1497
  if (!t.value) {
1480
- const oe = String(f).split(",");
1481
- U.value = oe, await he(), r.value = oe.map((Ce) => Ce.split("/").pop());
1498
+ const re = String(w).split(",");
1499
+ x.value = re, await be(), r.value = re.map((ge) => ge == null ? void 0 : ge.split("/").pop());
1482
1500
  return;
1483
1501
  }
1484
- let ie = String(f), re = ie.split("/").pop();
1485
- if (!ie.includes("/"))
1486
- await we(re), ie = String(U.value || re), re = ie.split("/").pop();
1502
+ let te = String(w), pe = te == null ? void 0 : te.split("/").pop();
1503
+ if (!te.includes("/"))
1504
+ await De(pe), te = String(x.value || pe), pe = te == null ? void 0 : te.split("/").pop();
1487
1505
  else {
1488
- U.value = ie;
1489
- const oe = (A = (j = (P = e.setting.options) == null ? void 0 : P.selector) == null ? void 0 : j.type) == null ? void 0 : A.positionName;
1490
- oe && ((ve = i == null ? void 0 : i.value) != null && ve[oe]) && (ce.value = i.value[oe]);
1506
+ x.value = te;
1507
+ const re = (U = (q = (D = e.setting.options) == null ? void 0 : D.selector) == null ? void 0 : q.type) == null ? void 0 : U.positionName;
1508
+ re && ((ie = i == null ? void 0 : i.value) != null && ie[re]) && (ve.value = i.value[re]);
1491
1509
  }
1492
- await he(), r.value === re && (r.value = "", await he()), r.value = re;
1510
+ await be(), r.value === pe && (r.value = "", await be()), r.value = pe;
1493
1511
  } finally {
1494
- await he(), C = !1;
1512
+ await be(), b = !1;
1495
1513
  }
1496
1514
  }
1497
1515
  }
1498
1516
  );
1499
- } else m == "supplier" ? (r.value = g(e.setting.name) ? [g(e.setting.name)] : [r.value], r.value && M(g(e.setting.name)), z(r, (C) => {
1500
- o(e.setting.name, C == null ? void 0 : C.toString());
1501
- }), z(Z, (C) => {
1502
- var f, T, P, j;
1503
- ((j = (P = (T = (f = e == null ? void 0 : e.setting) == null ? void 0 : f.options) == null ? void 0 : T.selector) == null ? void 0 : P.type) == null ? void 0 : j.supplierPhone) !== void 0 && o(e.setting.options.selector.type.supplierPhone, C);
1504
- })) : m == "device" ? (r.value = g(e.setting.name) ? g(e.setting.name) : r.value, r.value && M(r.value), r.value.length || o(e.setting.name, null), se.value = {
1517
+ } else m == "supplier" ? (r.value = g(e.setting.name) ? [g(e.setting.name)] : [r.value], r.value && I(g(e.setting.name)), M(r, (b) => {
1518
+ o(e.setting.name, b == null ? void 0 : b.toString());
1519
+ }), M(G, (b) => {
1520
+ var w, P, D, q;
1521
+ ((q = (D = (P = (w = e == null ? void 0 : e.setting) == null ? void 0 : w.options) == null ? void 0 : P.selector) == null ? void 0 : D.type) == null ? void 0 : q.supplierPhone) !== void 0 && o(e.setting.options.selector.type.supplierPhone, b);
1522
+ })) : m == "device" ? (r.value = g(e.setting.name) ? g(e.setting.name) : r.value, r.value && I(r.value), r.value.length || o(e.setting.name, null), le.value = {
1505
1523
  spaceId: g("wzid") || "",
1506
1524
  spacePath: "",
1507
1525
  spacePathName: g("wzmc") || ""
1508
- }, z(N, (C) => {
1509
- r.value = C.map((f) => f.value).toString(), o(e.setting.name, r.value);
1510
- }), z(te, (C) => {
1511
- o("equipment_archives_id", C || null);
1512
- }), z(
1513
- se,
1514
- async (C) => {
1515
- if (!(C != null && C.spaceId)) return;
1516
- const [f, T] = await lt().run({ spaceId: C.spaceId });
1517
- if (f) {
1518
- o("wzid", C.spaceId), o("wzmc", C.spacePathName || "");
1526
+ }, M(L, (b) => {
1527
+ r.value = b.map((w) => w.value).toString(), o(e.setting.name, r.value);
1528
+ }), M(ne, (b) => {
1529
+ o("equipment_archives_id", b || null);
1530
+ }), M(
1531
+ le,
1532
+ async (b) => {
1533
+ if (!(b != null && b.spaceId)) return;
1534
+ const [w, P] = await lt().run({ spaceId: b.spaceId });
1535
+ if (w) {
1536
+ o("wzid", b.spaceId), o("wzmc", b.spacePathName || "");
1519
1537
  return;
1520
1538
  }
1521
- o("wzid", (T == null ? void 0 : T.path) || C.spaceId), o("wzmc", (T == null ? void 0 : T.pathName) || C.spacePathName || "");
1539
+ o("wzid", (P == null ? void 0 : P.path) || b.spaceId), o("wzmc", (P == null ? void 0 : P.pathName) || b.spacePathName || "");
1522
1540
  },
1523
1541
  {
1524
1542
  deep: !0
1525
1543
  }
1526
- )) : (r.value = g(e.setting.name) ? g(e.setting.name) : r.value, r.value && M(r.value), r.value.length || o(e.setting.name, null), z(N, (C) => {
1527
- r.value = C.map((f) => f.value).toString(), o(e.setting.name, r.value);
1544
+ )) : (r.value = g(e.setting.name) ? g(e.setting.name) : r.value, r.value && I(r.value), r.value.length || o(e.setting.name, null), M(L, (b) => {
1545
+ r.value = b.map((w) => w.value).toString(), o(e.setting.name, r.value);
1528
1546
  }));
1529
- return (C, f) => (V(), J(
1530
- ee,
1547
+ return (b, w) => (N(), H(
1548
+ ae,
1531
1549
  null,
1532
1550
  [
1533
- h.value && a(m) != "position" ? (V(), E(a(Y), {
1551
+ f.value && a(m) != "position" ? (N(), E(a(J), {
1534
1552
  key: 0,
1535
1553
  col: e.span,
1536
1554
  modelValue: r.value,
1537
- "onUpdate:modelValue": f[1] || (f[1] = (T) => r.value = T),
1555
+ "onUpdate:modelValue": w[1] || (w[1] = (P) => r.value = P),
1538
1556
  prop: e.setting.name,
1539
- label: C.setting.desc,
1557
+ label: b.setting.desc,
1540
1558
  type: "inputDialogSelect",
1541
- options: a(N),
1542
- helpMessage: pe.value,
1559
+ options: a(L),
1560
+ helpMessage: ce.value,
1543
1561
  isView: e.isView,
1544
1562
  disabled: a(c),
1545
- required: ue.value,
1546
- placeholder: C.setting.options.placeholder || a(D)("请选择"),
1563
+ required: de.value,
1564
+ placeholder: b.setting.options.placeholder || a(k)("请选择"),
1547
1565
  onOpenDialog: a(F)
1548
1566
  }, {
1549
1567
  default: $(() => {
1550
- var T;
1568
+ var P;
1551
1569
  return [
1552
- L(a(qt), {
1570
+ z(a(Et), {
1553
1571
  "append-to-body": "",
1554
1572
  modelValue: a(_),
1555
- "onUpdate:modelValue": f[0] || (f[0] = (P) => ze(_) ? _.value = P : null),
1556
- options: a(w),
1557
- onConfirm: a(I),
1558
- title: a(b),
1573
+ "onUpdate:modelValue": w[0] || (w[0] = (D) => Me(_) ? _.value = D : null),
1574
+ options: a(C),
1575
+ onConfirm: a(T),
1576
+ title: a(y),
1559
1577
  "body-style": { padding: "0px" }
1560
- }, Nt({
1578
+ }, Lt({
1561
1579
  _: 2
1562
1580
  /* DYNAMIC */
1563
1581
  }, [
1564
- ((T = a(q)) == null ? void 0 : T.length) > 0 ? {
1582
+ ((P = a(K)) == null ? void 0 : P.length) > 0 ? {
1565
1583
  name: "table-header-search",
1566
1584
  fn: $(() => [
1567
- Ge("div", Ja, [
1568
- L(a(Kt), {
1585
+ Ge("div", Ya, [
1586
+ z(a(qt), {
1569
1587
  labelLength: "6",
1570
- options: a(q),
1588
+ options: a(K),
1571
1589
  onConfirm: a(Q),
1572
1590
  "is-margin-right": !1,
1573
1591
  isExpandAtFocus: a(m) !== "device"
@@ -1579,27 +1597,27 @@ const ja = (n, e) => {
1579
1597
  a(m) === "user" ? {
1580
1598
  name: "table-column",
1581
1599
  fn: $(() => [
1582
- L(a(K), {
1583
- label: a(D)("姓名"),
1600
+ z(a(j), {
1601
+ label: a(k)("姓名"),
1584
1602
  prop: "name"
1585
1603
  }, null, 8, ["label"]),
1586
- L(a(K), {
1587
- label: a(D)("账号"),
1604
+ z(a(j), {
1605
+ label: a(k)("账号"),
1588
1606
  prop: "userName"
1589
1607
  }, null, 8, ["label"]),
1590
- L(a(K), {
1591
- label: a(D)("手机号"),
1608
+ z(a(j), {
1609
+ label: a(k)("手机号"),
1592
1610
  prop: "sensitivePhone"
1593
1611
  }, {
1594
- default: $(({ row: P }) => [
1595
- L(a(Fe), {
1612
+ default: $(({ row: D }) => [
1613
+ z(a(je), {
1596
1614
  placement: "top",
1597
- content: P.phone,
1598
- disabled: !P.phone
1615
+ content: D.phone,
1616
+ disabled: !D.phone
1599
1617
  }, {
1600
1618
  default: $(() => [
1601
- ae(
1602
- ne(P.sensitivePhone || "-"),
1619
+ se(
1620
+ oe(D.sensitivePhone || "-"),
1603
1621
  1
1604
1622
  /* TEXT */
1605
1623
  )
@@ -1611,12 +1629,12 @@ const ja = (n, e) => {
1611
1629
  _: 1
1612
1630
  /* STABLE */
1613
1631
  }, 8, ["label"]),
1614
- L(a(K), {
1615
- label: a(D)("状态")
1632
+ z(a(j), {
1633
+ label: a(k)("状态")
1616
1634
  }, {
1617
- default: $(({ row: P }) => [
1618
- ae(
1619
- ne(a(y)[P.status]),
1635
+ default: $(({ row: D }) => [
1636
+ se(
1637
+ oe(a(h)[D.status]),
1620
1638
  1
1621
1639
  /* TEXT */
1622
1640
  )
@@ -1630,16 +1648,16 @@ const ja = (n, e) => {
1630
1648
  a(m) === "org" ? {
1631
1649
  name: "table-column",
1632
1650
  fn: $(() => [
1633
- L(a(K), {
1634
- label: a(D)("组织名称"),
1651
+ z(a(j), {
1652
+ label: a(k)("组织名称"),
1635
1653
  prop: "name"
1636
1654
  }, null, 8, ["label"]),
1637
- L(a(K), {
1638
- label: a(D)("组织编码"),
1655
+ z(a(j), {
1656
+ label: a(k)("组织编码"),
1639
1657
  prop: "code"
1640
1658
  }, null, 8, ["label"]),
1641
- L(a(K), {
1642
- label: a(D)("组织类型"),
1659
+ z(a(j), {
1660
+ label: a(k)("组织类型"),
1643
1661
  prop: "typeName"
1644
1662
  }, null, 8, ["label"])
1645
1663
  ]),
@@ -1648,16 +1666,16 @@ const ja = (n, e) => {
1648
1666
  a(m) === "role" ? {
1649
1667
  name: "table-column",
1650
1668
  fn: $(() => [
1651
- L(a(K), {
1652
- label: a(D)("角色名称"),
1669
+ z(a(j), {
1670
+ label: a(k)("角色名称"),
1653
1671
  prop: "name"
1654
1672
  }, null, 8, ["label"]),
1655
- L(a(K), {
1656
- label: a(D)("角色类型")
1673
+ z(a(j), {
1674
+ label: a(k)("角色类型")
1657
1675
  }, {
1658
- default: $(({ row: P }) => [
1659
- ae(
1660
- ne(a(u)[P.type]),
1676
+ default: $(({ row: D }) => [
1677
+ se(
1678
+ oe(a(u)[D.type]),
1661
1679
  1
1662
1680
  /* TEXT */
1663
1681
  )
@@ -1665,12 +1683,12 @@ const ja = (n, e) => {
1665
1683
  _: 1
1666
1684
  /* STABLE */
1667
1685
  }, 8, ["label"]),
1668
- L(a(K), {
1669
- label: a(D)("角色状态")
1686
+ z(a(j), {
1687
+ label: a(k)("角色状态")
1670
1688
  }, {
1671
- default: $(({ row: P }) => [
1672
- ae(
1673
- ne(a(R)[P.status]),
1689
+ default: $(({ row: D }) => [
1690
+ se(
1691
+ oe(a(R)[D.status]),
1674
1692
  1
1675
1693
  /* TEXT */
1676
1694
  )
@@ -1684,16 +1702,16 @@ const ja = (n, e) => {
1684
1702
  a(m) === "job" ? {
1685
1703
  name: "table-column",
1686
1704
  fn: $(() => [
1687
- L(a(K), {
1688
- label: a(D)("职务名称"),
1705
+ z(a(j), {
1706
+ label: a(k)("职务名称"),
1689
1707
  prop: "name"
1690
1708
  }, null, 8, ["label"]),
1691
- L(a(K), {
1692
- label: a(D)("职务编码"),
1709
+ z(a(j), {
1710
+ label: a(k)("职务编码"),
1693
1711
  prop: "code"
1694
1712
  }, null, 8, ["label"]),
1695
- L(a(K), {
1696
- label: a(D)("所属组织路径"),
1713
+ z(a(j), {
1714
+ label: a(k)("所属组织路径"),
1697
1715
  prop: "groupName"
1698
1716
  }, null, 8, ["label"])
1699
1717
  ]),
@@ -1702,16 +1720,16 @@ const ja = (n, e) => {
1702
1720
  a(m) === "post" ? {
1703
1721
  name: "table-column",
1704
1722
  fn: $(() => [
1705
- L(a(K), {
1706
- label: a(D)("岗位名称"),
1723
+ z(a(j), {
1724
+ label: a(k)("岗位名称"),
1707
1725
  prop: "name"
1708
1726
  }, null, 8, ["label"]),
1709
- L(a(K), {
1710
- label: a(D)("岗位编码"),
1727
+ z(a(j), {
1728
+ label: a(k)("岗位编码"),
1711
1729
  prop: "code"
1712
1730
  }, null, 8, ["label"]),
1713
- L(a(K), {
1714
- label: a(D)("所属组织路径"),
1731
+ z(a(j), {
1732
+ label: a(k)("所属组织路径"),
1715
1733
  prop: "groupName"
1716
1734
  }, null, 8, ["label"])
1717
1735
  ]),
@@ -1720,41 +1738,41 @@ const ja = (n, e) => {
1720
1738
  a(m) === "supplier" ? {
1721
1739
  name: "table-column",
1722
1740
  fn: $(() => [
1723
- L(a(K), {
1741
+ z(a(j), {
1724
1742
  type: "index",
1725
1743
  width: "50"
1726
1744
  }),
1727
- L(a(K), {
1728
- label: a(D)("供应商名称"),
1745
+ z(a(j), {
1746
+ label: a(k)("供应商名称"),
1729
1747
  prop: "name"
1730
1748
  }, null, 8, ["label"]),
1731
- L(a(K), {
1732
- label: a(D)("供应商编码"),
1749
+ z(a(j), {
1750
+ label: a(k)("供应商编码"),
1733
1751
  prop: "code"
1734
1752
  }, null, 8, ["label"]),
1735
- L(a(K), {
1736
- label: a(D)("供应商等级"),
1753
+ z(a(j), {
1754
+ label: a(k)("供应商等级"),
1737
1755
  prop: "supplierLevel"
1738
1756
  }, null, 8, ["label"]),
1739
- L(a(K), {
1740
- label: a(D)("供应商分类"),
1757
+ z(a(j), {
1758
+ label: a(k)("供应商分类"),
1741
1759
  prop: "classificationName"
1742
1760
  }, {
1743
1761
  default: $(() => [
1744
- B(` <template #default="{row}">\r
1762
+ A(` <template #default="{row}">\r
1745
1763
  {{ getSupplierName(row) }}\r
1746
1764
  </template> `)
1747
1765
  ]),
1748
1766
  _: 1
1749
1767
  /* STABLE */
1750
1768
  }, 8, ["label"]),
1751
- L(a(K), {
1752
- label: a(D)("个人/公司"),
1769
+ z(a(j), {
1770
+ label: a(k)("个人/公司"),
1753
1771
  prop: "businessType"
1754
1772
  }, {
1755
- default: $(({ row: P }) => [
1756
- ae(
1757
- ne(P.businessType == "COMPANY" ? a(D)("公司") : a(D)("个人")),
1773
+ default: $(({ row: D }) => [
1774
+ se(
1775
+ oe(D.businessType == "COMPANY" ? a(k)("公司") : a(k)("个人")),
1758
1776
  1
1759
1777
  /* TEXT */
1760
1778
  )
@@ -1768,24 +1786,24 @@ const ja = (n, e) => {
1768
1786
  a(m) === "device" ? {
1769
1787
  name: "table-column",
1770
1788
  fn: $(() => [
1771
- L(a(K), {
1789
+ z(a(j), {
1772
1790
  type: "index",
1773
1791
  width: "50"
1774
1792
  }),
1775
- L(a(K), {
1776
- label: a(D)("设备名称"),
1793
+ z(a(j), {
1794
+ label: a(k)("设备名称"),
1777
1795
  prop: "deviceName"
1778
1796
  }, null, 8, ["label"]),
1779
- L(a(K), {
1780
- label: a(D)("设备编码"),
1797
+ z(a(j), {
1798
+ label: a(k)("设备编码"),
1781
1799
  prop: "deviceId"
1782
1800
  }, null, 8, ["label"]),
1783
- L(a(K), {
1784
- label: a(D)("设备分类"),
1801
+ z(a(j), {
1802
+ label: a(k)("设备分类"),
1785
1803
  prop: "groupDimensionPath"
1786
1804
  }, null, 8, ["label"]),
1787
- L(a(K), {
1788
- label: a(D)("安装位置"),
1805
+ z(a(j), {
1806
+ label: a(k)("安装位置"),
1789
1807
  prop: "spaceSite"
1790
1808
  }, null, 8, ["label"])
1791
1809
  ]),
@@ -1794,31 +1812,31 @@ const ja = (n, e) => {
1794
1812
  a(m) === "source" ? {
1795
1813
  name: "table-column",
1796
1814
  fn: $(() => [
1797
- L(a(K), {
1815
+ z(a(j), {
1798
1816
  type: "index",
1799
1817
  width: "50"
1800
1818
  }),
1801
- L(a(K), {
1802
- label: a(D)("单据编码"),
1819
+ z(a(j), {
1820
+ label: a(k)("单据编码"),
1803
1821
  prop: "code"
1804
1822
  }, null, 8, ["label"]),
1805
- L(a(K), {
1806
- label: a(D)("申请人"),
1823
+ z(a(j), {
1824
+ label: a(k)("申请人"),
1807
1825
  prop: "userName"
1808
1826
  }, null, 8, ["label"]),
1809
- L(a(K), {
1810
- label: a(D)("联系电话"),
1827
+ z(a(j), {
1828
+ label: a(k)("联系电话"),
1811
1829
  prop: "sensitivePhone"
1812
1830
  }, {
1813
- default: $(({ row: P }) => [
1814
- L(a(Fe), {
1831
+ default: $(({ row: D }) => [
1832
+ z(a(je), {
1815
1833
  placement: "top",
1816
- content: P.phone,
1817
- disabled: !P.phone
1834
+ content: D.phone,
1835
+ disabled: !D.phone
1818
1836
  }, {
1819
1837
  default: $(() => [
1820
- ae(
1821
- ne(P.sensitivePhone || "-"),
1838
+ se(
1839
+ oe(D.sensitivePhone || "-"),
1822
1840
  1
1823
1841
  /* TEXT */
1824
1842
  )
@@ -1830,13 +1848,13 @@ const ja = (n, e) => {
1830
1848
  _: 1
1831
1849
  /* STABLE */
1832
1850
  }, 8, ["label"]),
1833
- L(a(K), {
1834
- label: a(D)("计划领用日期"),
1851
+ z(a(j), {
1852
+ label: a(k)("计划领用日期"),
1835
1853
  prop: "claimingDate"
1836
1854
  }, {
1837
- default: $(({ row: P }) => [
1838
- ae(
1839
- ne(P.claimingDate ? a(Se)(Number(P == null ? void 0 : P.claimingDate)).format("YYYY/MM/DD") : "-"),
1855
+ default: $(({ row: D }) => [
1856
+ se(
1857
+ oe(D.claimingDate ? a(Ve)(Number(D == null ? void 0 : D.claimingDate)).format("YYYY/MM/DD") : "-"),
1840
1858
  1
1841
1859
  /* TEXT */
1842
1860
  )
@@ -1844,8 +1862,8 @@ const ja = (n, e) => {
1844
1862
  _: 1
1845
1863
  /* STABLE */
1846
1864
  }, 8, ["label"]),
1847
- L(a(K), {
1848
- label: a(D)("资产用途"),
1865
+ z(a(j), {
1866
+ label: a(k)("资产用途"),
1849
1867
  prop: "purpose"
1850
1868
  }, null, 8, ["label"])
1851
1869
  ]),
@@ -1856,53 +1874,53 @@ const ja = (n, e) => {
1856
1874
  }),
1857
1875
  _: 1
1858
1876
  /* STABLE */
1859
- }, 8, ["col", "modelValue", "prop", "label", "options", "helpMessage", "isView", "disabled", "required", "placeholder", "onOpenDialog"])) : B("v-if", !0),
1860
- h.value && a(m) == "position" ? (V(), E(a(Y), {
1877
+ }, 8, ["col", "modelValue", "prop", "label", "options", "helpMessage", "isView", "disabled", "required", "placeholder", "onOpenDialog"])) : A("v-if", !0),
1878
+ f.value && a(m) == "position" ? (N(), E(a(J), {
1861
1879
  key: 1,
1862
1880
  col: e.span,
1863
- label: C.setting.desc,
1881
+ label: b.setting.desc,
1864
1882
  prop: e.setting.name,
1865
1883
  type: "treeSelect",
1866
1884
  "node-key": "id",
1867
1885
  showFullPath: !0,
1868
- helpMessage: pe.value,
1869
- placeholder: C.setting.options.placeholder,
1870
- required: ue.value,
1886
+ helpMessage: ce.value,
1887
+ placeholder: b.setting.options.placeholder,
1888
+ required: de.value,
1871
1889
  modelValue: r.value,
1872
- "onUpdate:modelValue": f[2] || (f[2] = (T) => r.value = T),
1873
- keyword: a(ge),
1874
- "onUpdate:keyword": f[3] || (f[3] = (T) => ze(ge) ? ge.value = T : null),
1875
- path: a(U),
1876
- "onUpdate:path": f[4] || (f[4] = (T) => ze(U) ? U.value = T : null),
1890
+ "onUpdate:modelValue": w[2] || (w[2] = (P) => r.value = P),
1891
+ keyword: a(fe),
1892
+ "onUpdate:keyword": w[3] || (w[3] = (P) => Me(fe) ? fe.value = P : null),
1893
+ path: a(x),
1894
+ "onUpdate:path": w[4] || (w[4] = (P) => Me(x) ? x.value = P : null),
1877
1895
  isView: e.isView,
1878
1896
  disabled: a(c),
1879
- load: a(Ee),
1880
- search: a(_e),
1897
+ load: a(Oe),
1898
+ search: a(Ce),
1881
1899
  props: {
1882
1900
  isLeaf: "leaf",
1883
1901
  label: "name"
1884
1902
  },
1885
- onChange: a(qe),
1903
+ onChange: a(Ee),
1886
1904
  mode: t.value ? "" : "multiple"
1887
- }, null, 8, ["col", "label", "prop", "helpMessage", "placeholder", "required", "modelValue", "keyword", "path", "isView", "disabled", "load", "search", "onChange", "mode"])) : B("v-if", !0)
1905
+ }, null, 8, ["col", "label", "prop", "helpMessage", "placeholder", "required", "modelValue", "keyword", "path", "isView", "disabled", "load", "search", "onChange", "mode"])) : A("v-if", !0)
1888
1906
  ],
1889
1907
  64
1890
1908
  /* STABLE_FRAGMENT */
1891
1909
  ));
1892
1910
  }
1893
- }), Za = /* @__PURE__ */ Ne(Wa, [["__scopeId", "data-v-49ca659f"]]), ht = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1911
+ }), Wa = /* @__PURE__ */ Le(Ha, [["__scopeId", "data-v-79666626"]]), yt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1894
1912
  __proto__: null,
1895
- default: Za
1896
- }, Symbol.toStringTag, { value: "Module" })), Ga = {
1913
+ default: Wa
1914
+ }, Symbol.toStringTag, { value: "Module" })), Za = {
1897
1915
  key: 0,
1898
1916
  class: "form-image"
1899
- }, Xa = {
1917
+ }, Ga = {
1900
1918
  key: 1,
1901
1919
  style: { "margin-bottom": "10px" }
1902
- }, en = {
1920
+ }, Xa = {
1903
1921
  name: "soundRecording"
1904
- }, tn = /* @__PURE__ */ x({
1905
- ...en,
1922
+ }, en = /* @__PURE__ */ Y({
1923
+ ...Xa,
1906
1924
  props: {
1907
1925
  setting: { default: () => ({
1908
1926
  icon: "",
@@ -1917,27 +1935,27 @@ const ja = (n, e) => {
1917
1935
  store: {}
1918
1936
  },
1919
1937
  setup(n) {
1920
- const e = n, { showData: t, disabledData: i, setData: d, getData: o, setFormRule: g, deleteRule: k } = e.store || {}, s = p(), l = p(!0);
1921
- !t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), z(
1938
+ const e = n, { showData: t, disabledData: i, setData: d, getData: o, setFormRule: g, deleteRule: S } = e.store || {}, s = p(), l = p(!0);
1939
+ !t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), M(
1922
1940
  () => t.value,
1923
1941
  () => {
1924
- l.value = t.value[e.setting.name], l.value || (s.value = "", k(e.setting.name)), l.value && e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList);
1942
+ l.value = t.value[e.setting.name], l.value || (s.value = "", S(e.setting.name)), l.value && e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList);
1925
1943
  },
1926
1944
  { deep: !0, immediate: !0 }
1927
1945
  ), i.value[e.setting.name];
1928
- const { baseURL: v } = Et(), r = p(!1);
1929
- X(e.setting.options.validateList).then((_) => {
1946
+ const { baseURL: v } = Ot(), r = p(!1);
1947
+ ee(e.setting.options.validateList).then((_) => {
1930
1948
  r.value = _;
1931
1949
  });
1932
- const h = p("info"), c = p();
1933
- if (e.setting.options.tip && (c.value = W(e.setting.options.tip)), o(e.setting.name)) {
1950
+ const f = p("info"), c = p();
1951
+ if (e.setting.options.tip && (c.value = Z(e.setting.options.tip)), o(e.setting.name)) {
1934
1952
  const _ = JSON.parse(o(e.setting.name));
1935
1953
  s.value = v + _[0].url;
1936
1954
  }
1937
- return e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList), (_, b) => e.isView && l.value ? (V(), E(a(Y), {
1955
+ return e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList), (_, y) => e.isView && l.value ? (N(), E(a(J), {
1938
1956
  key: 0,
1939
1957
  modelValue: s.value,
1940
- "onUpdate:modelValue": b[2] || (b[2] = (w) => s.value = w),
1958
+ "onUpdate:modelValue": y[2] || (y[2] = (C) => s.value = C),
1941
1959
  "margin-bottom": "0",
1942
1960
  prop: e.setting.name,
1943
1961
  label: _.setting.desc,
@@ -1947,27 +1965,27 @@ const ja = (n, e) => {
1947
1965
  col: e.span
1948
1966
  }, {
1949
1967
  default: $(() => [
1950
- s.value ? (V(), J("div", Ga, [
1951
- L(a(Xe), {
1968
+ s.value ? (N(), H("div", Za, [
1969
+ z(a(Xe), {
1952
1970
  modelValue: s.value,
1953
- "onUpdate:modelValue": b[0] || (b[0] = (w) => s.value = w),
1954
- status: h.value,
1955
- "onUpdate:status": b[1] || (b[1] = (w) => h.value = w),
1971
+ "onUpdate:modelValue": y[0] || (y[0] = (C) => s.value = C),
1972
+ status: f.value,
1973
+ "onUpdate:status": y[1] || (y[1] = (C) => f.value = C),
1956
1974
  required: r.value
1957
1975
  }, null, 8, ["modelValue", "status", "required"])
1958
- ])) : (V(), J("div", Xa, "-"))
1976
+ ])) : (N(), H("div", Ga, "-"))
1959
1977
  ]),
1960
1978
  _: 1
1961
1979
  /* STABLE */
1962
- }, 8, ["modelValue", "prop", "label", "helpMessage", "required", "col"])) : B("v-if", !0);
1980
+ }, 8, ["modelValue", "prop", "label", "helpMessage", "required", "col"])) : A("v-if", !0);
1963
1981
  }
1964
- }), an = /* @__PURE__ */ Ne(tn, [["__scopeId", "data-v-b30e3d77"]]), yt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1982
+ }), tn = /* @__PURE__ */ Le(en, [["__scopeId", "data-v-b30e3d77"]]), bt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1965
1983
  __proto__: null,
1966
- default: an
1967
- }, Symbol.toStringTag, { value: "Module" })), nn = {
1984
+ default: tn
1985
+ }, Symbol.toStringTag, { value: "Module" })), an = {
1968
1986
  name: "switch"
1969
- }, sn = /* @__PURE__ */ x({
1970
- ...nn,
1987
+ }, nn = /* @__PURE__ */ Y({
1988
+ ...an,
1971
1989
  props: {
1972
1990
  setting: { default: () => ({
1973
1991
  icon: "",
@@ -1982,28 +2000,28 @@ const ja = (n, e) => {
1982
2000
  store: {}
1983
2001
  },
1984
2002
  setup(n) {
1985
- const e = n, { showData: t, disabledData: i, setData: d, getData: o, setFormRule: g, deleteRule: k } = e.store || {}, s = p(), l = p(!0);
1986
- !t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), z(
2003
+ const e = n, { showData: t, disabledData: i, setData: d, getData: o, setFormRule: g, deleteRule: S } = e.store || {}, s = p(), l = p(!0);
2004
+ !t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), M(
1987
2005
  () => t.value,
1988
2006
  () => {
1989
- l.value = t.value[e.setting.name], l.value || (s.value = null, k(e.setting.name)), l.value && e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList);
2007
+ l.value = t.value[e.setting.name], l.value || (s.value = null, S(e.setting.name)), l.value && e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList);
1990
2008
  },
1991
2009
  { deep: !0, immediate: !0 }
1992
2010
  );
1993
2011
  const v = i.value[e.setting.name] || !1, r = p(!1);
1994
- X(e.setting.options.validateList).then((c) => {
2012
+ ee(e.setting.options.validateList).then((c) => {
1995
2013
  r.value = c;
1996
2014
  });
1997
- const h = p();
1998
- return e.setting.options.tip && (h.value = W(e.setting.options.tip)), setTimeout(() => {
2015
+ const f = p();
2016
+ return e.setting.options.tip && (f.value = Z(e.setting.options.tip)), setTimeout(() => {
1999
2017
  s.value = o(e.setting.name) || e.setting.options.formulasDiyJs || s.value, s.value || d(e.setting.name, null);
2000
- }, 50), e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList), z(s, (c) => {
2018
+ }, 50), e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList), M(s, (c) => {
2001
2019
  d(e.setting.name, c);
2002
- }), (c, _) => l.value ? (V(), E(a(Y), {
2020
+ }), (c, _) => l.value ? (N(), E(a(J), {
2003
2021
  key: 0,
2004
2022
  col: e.span,
2005
2023
  modelValue: s.value,
2006
- "onUpdate:modelValue": _[0] || (_[0] = (b) => s.value = b),
2024
+ "onUpdate:modelValue": _[0] || (_[0] = (y) => s.value = y),
2007
2025
  label: c.setting.desc,
2008
2026
  type: "switch",
2009
2027
  prop: e.setting.name,
@@ -2011,19 +2029,19 @@ const ja = (n, e) => {
2011
2029
  inactiveValue: c.setting.options.inactiveValue,
2012
2030
  activeText: c.setting.options.activeText,
2013
2031
  inactiveText: c.setting.options.inactiveText,
2014
- helpMessage: h.value,
2032
+ helpMessage: f.value,
2015
2033
  disabled: a(v),
2016
2034
  required: r.value,
2017
2035
  isView: e.isView
2018
- }, null, 8, ["col", "modelValue", "label", "prop", "activeValue", "inactiveValue", "activeText", "inactiveText", "helpMessage", "disabled", "required", "isView"])) : B("v-if", !0);
2036
+ }, null, 8, ["col", "modelValue", "label", "prop", "activeValue", "inactiveValue", "activeText", "inactiveText", "helpMessage", "disabled", "required", "isView"])) : A("v-if", !0);
2019
2037
  }
2020
- }), bt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2038
+ }), _t = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2021
2039
  __proto__: null,
2022
- default: sn
2023
- }, Symbol.toStringTag, { value: "Module" })), on = {
2040
+ default: nn
2041
+ }, Symbol.toStringTag, { value: "Module" })), sn = {
2024
2042
  name: "text"
2025
- }, ln = /* @__PURE__ */ x({
2026
- ...on,
2043
+ }, on = /* @__PURE__ */ Y({
2044
+ ...sn,
2027
2045
  props: {
2028
2046
  setting: { default: () => ({
2029
2047
  icon: "",
@@ -2038,44 +2056,44 @@ const ja = (n, e) => {
2038
2056
  store: {}
2039
2057
  },
2040
2058
  setup(n) {
2041
- const e = n, { showData: t, disabledData: i, setData: d, getData: o, setFormRule: g, deleteRule: k } = e.store || {}, s = p(), l = p(!0);
2042
- !t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), z(
2059
+ const e = n, { showData: t, disabledData: i, setData: d, getData: o, setFormRule: g, deleteRule: S } = e.store || {}, s = p(), l = p(!0);
2060
+ !t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), M(
2043
2061
  () => t.value,
2044
2062
  () => {
2045
- l.value = t.value[e.setting.name], l.value || (s.value = null, k(e.setting.name)), l.value && e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList);
2063
+ l.value = t.value[e.setting.name], l.value || (s.value = null, S(e.setting.name)), l.value && e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList);
2046
2064
  },
2047
2065
  { deep: !0, immediate: !0 }
2048
2066
  );
2049
2067
  const v = p();
2050
- return e.setting.options.tip && (v.value = W(e.setting.options.tip)), s.value = e.setting.options.textValue, s.value = o(e.setting.name) || s.value, s.value || d(e.setting.name, null), z(s, (r) => {
2068
+ return e.setting.options.tip && (v.value = Z(e.setting.options.tip)), s.value = e.setting.options.textValue, s.value = o(e.setting.name) || s.value, s.value || d(e.setting.name, null), M(s, (r) => {
2051
2069
  d(e.setting.name, r);
2052
- }), (r, h) => l.value ? (V(), E(a(Y), {
2070
+ }), (r, f) => l.value ? (N(), E(a(J), {
2053
2071
  key: 0,
2054
2072
  col: e.span,
2055
2073
  modelValue: s.value,
2056
- "onUpdate:modelValue": h[1] || (h[1] = (c) => s.value = c),
2074
+ "onUpdate:modelValue": f[1] || (f[1] = (c) => s.value = c),
2057
2075
  label: r.setting.desc,
2058
2076
  type: "custom",
2059
2077
  helpMessage: v.value
2060
2078
  }, {
2061
2079
  default: $(() => [
2062
- L(a(tt), {
2080
+ z(a(tt), {
2063
2081
  type: "text",
2064
2082
  modelValue: s.value,
2065
- "onUpdate:modelValue": h[0] || (h[0] = (c) => s.value = c)
2083
+ "onUpdate:modelValue": f[0] || (f[0] = (c) => s.value = c)
2066
2084
  }, null, 8, ["modelValue"])
2067
2085
  ]),
2068
2086
  _: 1
2069
2087
  /* STABLE */
2070
- }, 8, ["col", "modelValue", "label", "helpMessage"])) : B("v-if", !0);
2088
+ }, 8, ["col", "modelValue", "label", "helpMessage"])) : A("v-if", !0);
2071
2089
  }
2072
- }), _t = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2090
+ }), wt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2073
2091
  __proto__: null,
2074
- default: ln
2075
- }, Symbol.toStringTag, { value: "Module" })), rn = {
2092
+ default: on
2093
+ }, Symbol.toStringTag, { value: "Module" })), ln = {
2076
2094
  name: "textarea"
2077
- }, un = /* @__PURE__ */ x({
2078
- ...rn,
2095
+ }, rn = /* @__PURE__ */ Y({
2096
+ ...ln,
2079
2097
  props: {
2080
2098
  setting: { default: () => ({
2081
2099
  icon: "",
@@ -2090,85 +2108,85 @@ const ja = (n, e) => {
2090
2108
  store: {}
2091
2109
  },
2092
2110
  setup(n) {
2093
- const e = n, { showData: t, disabledData: i, setData: d, getData: o, setFormRule: g, deleteRule: k } = e.store || {}, s = p(""), l = p(!0);
2094
- !t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), z(
2111
+ const e = n, { showData: t, disabledData: i, setData: d, getData: o, setFormRule: g, deleteRule: S } = e.store || {}, s = p(""), l = p(!0);
2112
+ !t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), M(
2095
2113
  () => t.value,
2096
2114
  () => {
2097
- l.value = t.value[e.setting.name], l.value || (s.value = "", k(e.setting.name)), l.value && e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList);
2115
+ l.value = t.value[e.setting.name], l.value || (s.value = "", S(e.setting.name)), l.value && e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList);
2098
2116
  },
2099
2117
  { deep: !0, immediate: !0 }
2100
2118
  );
2101
2119
  const v = i.value[e.setting.name] || !1, r = p(!1);
2102
- X(e.setting.options.validateList).then((b) => {
2103
- r.value = b;
2120
+ ee(e.setting.options.validateList).then((y) => {
2121
+ r.value = y;
2104
2122
  });
2105
- const h = p();
2106
- e.setting.options.tip && (h.value = W(e.setting.options.tip)), setTimeout(() => {
2123
+ const f = p();
2124
+ e.setting.options.tip && (f.value = Z(e.setting.options.tip)), setTimeout(() => {
2107
2125
  s.value = o(e.setting.name) || e.setting.options.formulasDiyJs || s.value, s.value || d(e.setting.name, null);
2108
2126
  }, 50);
2109
2127
  const c = p(), _ = p();
2110
- return c.value = e.setting.options.initialFrameWidth ? e.setting.options.initialFrameWidth + "px" : "", _.value = e.setting.options.initialFrameHeight ? e.setting.options.initialFrameHeight + "px" : "", e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList), z(s, (b) => {
2111
- d(e.setting.name, b);
2112
- }), (b, w) => (V(), J(
2113
- ee,
2128
+ return c.value = e.setting.options.initialFrameWidth ? e.setting.options.initialFrameWidth + "px" : "", _.value = e.setting.options.initialFrameHeight ? e.setting.options.initialFrameHeight + "px" : "", e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList), M(s, (y) => {
2129
+ d(e.setting.name, y);
2130
+ }), (y, C) => (N(), H(
2131
+ ae,
2114
2132
  null,
2115
2133
  [
2116
- !b.setting.options.isEditor && l.value ? (V(), E(a(Y), {
2134
+ !y.setting.options.isEditor && l.value ? (N(), E(a(J), {
2117
2135
  key: 0,
2118
2136
  col: e.span,
2119
- label: b.setting.desc,
2137
+ label: y.setting.desc,
2120
2138
  type: "textarea",
2121
2139
  modelValue: s.value,
2122
- "onUpdate:modelValue": w[0] || (w[0] = (m) => s.value = m),
2140
+ "onUpdate:modelValue": C[0] || (C[0] = (m) => s.value = m),
2123
2141
  prop: e.setting.name,
2124
- placeholder: b.setting.options.placeholder,
2125
- disabled: b.setting.options.isInputEdit || a(v),
2142
+ placeholder: y.setting.options.placeholder,
2143
+ disabled: y.setting.options.isInputEdit || a(v),
2126
2144
  isView: e.isView,
2127
2145
  autosize: {
2128
2146
  minRows: 1,
2129
2147
  maxRows: 3
2130
2148
  },
2131
2149
  "show-word-limit": "",
2132
- helpMessage: h.value,
2150
+ helpMessage: f.value,
2133
2151
  required: r.value
2134
- }, null, 8, ["col", "label", "modelValue", "prop", "placeholder", "disabled", "isView", "helpMessage", "required"])) : B("v-if", !0),
2135
- b.setting.options.isEditor && l.value ? (V(), E(a(Y), {
2152
+ }, null, 8, ["col", "label", "modelValue", "prop", "placeholder", "disabled", "isView", "helpMessage", "required"])) : A("v-if", !0),
2153
+ y.setting.options.isEditor && l.value ? (N(), E(a(J), {
2136
2154
  key: 1,
2137
2155
  modelValue: s.value,
2138
- "onUpdate:modelValue": w[2] || (w[2] = (m) => s.value = m),
2156
+ "onUpdate:modelValue": C[2] || (C[2] = (m) => s.value = m),
2139
2157
  prop: e.setting.name,
2140
2158
  contentWidth: c.value,
2141
- label: b.setting.desc,
2159
+ label: y.setting.desc,
2142
2160
  type: "custom",
2143
- helpMessage: h.value,
2161
+ helpMessage: f.value,
2144
2162
  required: r.value,
2145
2163
  readOnly: e.isView
2146
2164
  }, {
2147
2165
  default: $(() => [
2148
- L(a(tt), {
2166
+ z(a(tt), {
2149
2167
  ref: "editor",
2150
2168
  width: c.value,
2151
2169
  height: _.value,
2152
2170
  modelValue: s.value,
2153
- "onUpdate:modelValue": w[1] || (w[1] = (m) => s.value = m),
2154
- placeholder: b.setting.options.placeholder
2171
+ "onUpdate:modelValue": C[1] || (C[1] = (m) => s.value = m),
2172
+ placeholder: y.setting.options.placeholder
2155
2173
  }, null, 8, ["width", "height", "modelValue", "placeholder"])
2156
2174
  ]),
2157
2175
  _: 1
2158
2176
  /* STABLE */
2159
- }, 8, ["modelValue", "prop", "contentWidth", "label", "helpMessage", "required", "readOnly"])) : B("v-if", !0)
2177
+ }, 8, ["modelValue", "prop", "contentWidth", "label", "helpMessage", "required", "readOnly"])) : A("v-if", !0)
2160
2178
  ],
2161
2179
  64
2162
2180
  /* STABLE_FRAGMENT */
2163
2181
  ));
2164
2182
  }
2165
- }), wt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2183
+ }), Ct = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2166
2184
  __proto__: null,
2167
- default: un
2168
- }, Symbol.toStringTag, { value: "Module" })), pn = {
2185
+ default: rn
2186
+ }, Symbol.toStringTag, { value: "Module" })), un = {
2169
2187
  name: "time"
2170
- }, dn = /* @__PURE__ */ x({
2171
- ...pn,
2188
+ }, pn = /* @__PURE__ */ Y({
2189
+ ...un,
2172
2190
  props: {
2173
2191
  setting: { default: () => ({
2174
2192
  icon: "",
@@ -2183,42 +2201,42 @@ const ja = (n, e) => {
2183
2201
  store: {}
2184
2202
  },
2185
2203
  setup(n) {
2186
- const e = n, { showData: t, disabledData: i, setData: d, getData: o, setFormRule: g, deleteRule: k } = e.store || {}, s = p(), l = p(!0);
2187
- !t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), z(
2204
+ const e = n, { showData: t, disabledData: i, setData: d, getData: o, setFormRule: g, deleteRule: S } = e.store || {}, s = p(), l = p(!0);
2205
+ !t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), M(
2188
2206
  () => t.value,
2189
2207
  () => {
2190
- l.value = t.value[e.setting.name], l.value || (s.value = null, k(e.setting.name)), l.value && e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList);
2208
+ l.value = t.value[e.setting.name], l.value || (s.value = null, S(e.setting.name)), l.value && e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList);
2191
2209
  },
2192
2210
  { deep: !0, immediate: !0 }
2193
2211
  );
2194
2212
  const v = i.value[e.setting.name] || !1, r = p(!1);
2195
- X(e.setting.options.validateList).then((c) => {
2213
+ ee(e.setting.options.validateList).then((c) => {
2196
2214
  r.value = c;
2197
2215
  });
2198
- const h = p();
2199
- return e.setting.options.tip && (h.value = W(e.setting.options.tip)), setTimeout(() => {
2200
- const c = Se().format("YYYY-MM-DD ");
2201
- o(e.setting.name) && (s.value = o(e.setting.name)), e.setting.options.formulasDiyJs && (s.value = Se(c + e.setting.options.formulasDiyJs)), s.value || d(e.setting.name, null);
2202
- }, 50), e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList), z(s, (c) => {
2216
+ const f = p();
2217
+ return e.setting.options.tip && (f.value = Z(e.setting.options.tip)), setTimeout(() => {
2218
+ const c = Ve().format("YYYY-MM-DD ");
2219
+ o(e.setting.name) && (s.value = o(e.setting.name)), e.setting.options.formulasDiyJs && (s.value = Ve(c + e.setting.options.formulasDiyJs)), s.value || d(e.setting.name, null);
2220
+ }, 50), e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList), M(s, (c) => {
2203
2221
  d(e.setting.name, c);
2204
- }), (c, _) => l.value ? (V(), E(a(Y), {
2222
+ }), (c, _) => l.value ? (N(), E(a(J), {
2205
2223
  key: 0,
2206
2224
  col: e.span,
2207
2225
  modelValue: s.value,
2208
- "onUpdate:modelValue": _[0] || (_[0] = (b) => s.value = b),
2226
+ "onUpdate:modelValue": _[0] || (_[0] = (y) => s.value = y),
2209
2227
  prop: e.setting.name,
2210
2228
  label: c.setting.desc,
2211
2229
  type: "time",
2212
- helpMessage: h.value,
2230
+ helpMessage: f.value,
2213
2231
  isView: e.isView,
2214
2232
  required: r.value,
2215
2233
  disabled: a(v)
2216
- }, null, 8, ["col", "modelValue", "prop", "label", "helpMessage", "isView", "required", "disabled"])) : B("v-if", !0);
2234
+ }, null, 8, ["col", "modelValue", "prop", "label", "helpMessage", "isView", "required", "disabled"])) : A("v-if", !0);
2217
2235
  }
2218
- }), Ct = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2236
+ }), Dt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2219
2237
  __proto__: null,
2220
- default: dn
2221
- }, Symbol.toStringTag, { value: "Module" })), cn = x({
2238
+ default: pn
2239
+ }, Symbol.toStringTag, { value: "Module" })), dn = Y({
2222
2240
  name: "accordion",
2223
2241
  props: {
2224
2242
  columns: {
@@ -2237,31 +2255,31 @@ const ja = (n, e) => {
2237
2255
  setup(n) {
2238
2256
  const e = p([]), t = n.columns.map((i) => {
2239
2257
  const d = i.list.map(
2240
- (o) => fe(be[o.ctrlType], { setting: o, isView: n.isView, store: n.store })
2258
+ (o) => ye(we[o.ctrlType], { setting: o, isView: n.isView, store: n.store })
2241
2259
  );
2242
- return i.isOpen == !0 && e.value.push(i.idKey), fe(
2260
+ return i.isOpen == !0 && e.value.push(i.idKey), ye(
2243
2261
  nt,
2244
2262
  {
2245
2263
  header: i.span,
2246
2264
  key: `${i.idKey}`
2247
2265
  },
2248
- fe("div", d)
2266
+ ye("div", d)
2249
2267
  );
2250
2268
  });
2251
- return () => fe(
2269
+ return () => ye(
2252
2270
  "div",
2253
2271
  { class: "accordion-layout" },
2254
- fe(
2272
+ ye(
2255
2273
  at,
2256
2274
  { activeKey: e.value, collapsible: n.options.accordion ? "" : "disabled" },
2257
2275
  t
2258
2276
  )
2259
2277
  );
2260
2278
  }
2261
- }), gn = {
2279
+ }), cn = {
2262
2280
  name: "accordion"
2263
- }, mn = /* @__PURE__ */ x({
2264
- ...gn,
2281
+ }, gn = /* @__PURE__ */ Y({
2282
+ ...cn,
2265
2283
  props: {
2266
2284
  setting: { default: () => ({
2267
2285
  name: "",
@@ -2289,7 +2307,7 @@ const ja = (n, e) => {
2289
2307
  store: {}
2290
2308
  },
2291
2309
  setup(n) {
2292
- return (e, t) => (V(), E(a(cn), {
2310
+ return (e, t) => (N(), E(a(dn), {
2293
2311
  columns: e.setting.columns,
2294
2312
  options: e.setting.options,
2295
2313
  isView: e.isView,
@@ -2297,13 +2315,13 @@ const ja = (n, e) => {
2297
2315
  style: { "margin-bottom": "10px" }
2298
2316
  }, null, 8, ["columns", "options", "isView", "store"]));
2299
2317
  }
2300
- }), vn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2318
+ }), mn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2301
2319
  __proto__: null,
2302
- default: mn
2303
- }, Symbol.toStringTag, { value: "Module" })), fn = {
2320
+ default: gn
2321
+ }, Symbol.toStringTag, { value: "Module" })), vn = {
2304
2322
  name: "grid"
2305
- }, hn = /* @__PURE__ */ x({
2306
- ...fn,
2323
+ }, fn = /* @__PURE__ */ Y({
2324
+ ...vn,
2307
2325
  props: {
2308
2326
  setting: { default: () => ({
2309
2327
  name: "",
@@ -2329,23 +2347,23 @@ const ja = (n, e) => {
2329
2347
  },
2330
2348
  setup(n) {
2331
2349
  const e = n;
2332
- return (t, i) => (V(), J(
2333
- ee,
2350
+ return (t, i) => (N(), H(
2351
+ ae,
2334
2352
  null,
2335
2353
  [
2336
- B(' <GridLayout :columns="setting.columns" :isView="props.isView" :store="store"></GridLayout> '),
2337
- B(' <div style="display: flex; flex-direction: row; flex-wrap: wrap; width: 100%"> '),
2338
- (V(!0), J(
2339
- ee,
2354
+ A(' <GridLayout :columns="setting.columns" :isView="props.isView" :store="store"></GridLayout> '),
2355
+ A(' <div style="display: flex; flex-direction: row; flex-wrap: wrap; width: 100%"> '),
2356
+ (N(!0), H(
2357
+ ae,
2340
2358
  null,
2341
- ye(t.setting.columns, (d) => (V(), J(
2342
- ee,
2359
+ _e(t.setting.columns, (d) => (N(), H(
2360
+ ae,
2343
2361
  null,
2344
2362
  [
2345
- (V(!0), J(
2346
- ee,
2363
+ (N(!0), H(
2364
+ ae,
2347
2365
  null,
2348
- ye(d.list, (o) => (V(), E(De(a(_n)[o.ctrlType]), {
2366
+ _e(d.list, (o) => (N(), E(ke(a(bn)[o.ctrlType]), {
2349
2367
  setting: o,
2350
2368
  isView: e.isView,
2351
2369
  store: t.store,
@@ -2361,153 +2379,153 @@ const ja = (n, e) => {
2361
2379
  256
2362
2380
  /* UNKEYED_FRAGMENT */
2363
2381
  )),
2364
- B(" </div> ")
2382
+ A(" </div> ")
2365
2383
  ],
2366
2384
  2112
2367
2385
  /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
2368
2386
  ));
2369
2387
  }
2370
- }), yn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2388
+ }), hn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2371
2389
  __proto__: null,
2372
- default: hn
2373
- }, Symbol.toStringTag, { value: "Module" })), Te = /* @__PURE__ */ Object.assign({ "./base/attachment.vue": it, "./base/autocomplete.vue": rt, "./base/checkbox.vue": ut, "./base/date.vue": pt, "./base/dropdown.vue": dt, "./base/imageViewer.vue": ct, "./base/input.vue": gt, "./base/number.vue": mt, "./base/radio.vue": vt, "./base/select.vue": ft, "./base/selector.vue": ht, "./base/soundRecording.vue": yt, "./base/switch.vue": bt, "./base/text.vue": _t, "./base/textarea.vue": wt, "./base/time.vue": Ct, "./layout/accordion/accordion.vue": vn, "./layout/grid/gridLayout.vue": yn }), Re = /* @__PURE__ */ Object.assign({ "./base/attachment.vue": it, "./base/autocomplete.vue": rt, "./base/checkbox.vue": ut, "./base/date.vue": pt, "./base/dropdown.vue": dt, "./base/imageViewer.vue": ct, "./base/input.vue": gt, "./base/number.vue": mt, "./base/radio.vue": vt, "./base/select.vue": ft, "./base/selector.vue": ht, "./base/soundRecording.vue": yt, "./base/switch.vue": bt, "./base/text.vue": _t, "./base/textarea.vue": wt, "./base/time.vue": Ct }), Pe = /* @__PURE__ */ Object.assign({}), $e = /* @__PURE__ */ Object.assign({}), be = {}, Dt = {}, kt = {}, bn = {};
2374
- Object.keys(Re).map((n) => Dt[Re[n].default.name] = Re[n].default);
2390
+ default: fn
2391
+ }, Symbol.toStringTag, { value: "Module" })), Re = /* @__PURE__ */ Object.assign({ "./base/attachment.vue": rt, "./base/autocomplete.vue": ut, "./base/checkbox.vue": pt, "./base/date.vue": dt, "./base/dropdown.vue": ct, "./base/imageViewer.vue": gt, "./base/input.vue": mt, "./base/number.vue": vt, "./base/radio.vue": ft, "./base/select.vue": ht, "./base/selector.vue": yt, "./base/soundRecording.vue": bt, "./base/switch.vue": _t, "./base/text.vue": wt, "./base/textarea.vue": Ct, "./base/time.vue": Dt, "./layout/accordion/accordion.vue": mn, "./layout/grid/gridLayout.vue": hn }), Pe = /* @__PURE__ */ Object.assign({ "./base/attachment.vue": rt, "./base/autocomplete.vue": ut, "./base/checkbox.vue": pt, "./base/date.vue": dt, "./base/dropdown.vue": ct, "./base/imageViewer.vue": gt, "./base/input.vue": mt, "./base/number.vue": vt, "./base/radio.vue": ft, "./base/select.vue": ht, "./base/selector.vue": yt, "./base/soundRecording.vue": bt, "./base/switch.vue": _t, "./base/text.vue": wt, "./base/textarea.vue": Ct, "./base/time.vue": Dt }), $e = /* @__PURE__ */ Object.assign({}), Fe = /* @__PURE__ */ Object.assign({}), we = {}, kt = {}, St = {}, yn = {};
2375
2392
  Object.keys(Pe).map((n) => kt[Pe[n].default.name] = Pe[n].default);
2376
- Object.keys($e).map((n) => bn[$e[n].default.name] = $e[n].default);
2377
- Object.keys(Te).map((n) => be[Te[n].default.name] = Te[n].default);
2378
- const _n = { ...Dt, ...kt }, wn = (n, e, t, i) => {
2379
- (!e || e.toString() === "") && parseInt(e) !== 0 ? t(new Error(`${D("*必填")}`)) : t();
2393
+ Object.keys($e).map((n) => St[$e[n].default.name] = $e[n].default);
2394
+ Object.keys(Fe).map((n) => yn[Fe[n].default.name] = Fe[n].default);
2395
+ Object.keys(Re).map((n) => we[Re[n].default.name] = Re[n].default);
2396
+ const bn = { ...kt, ...St }, _n = (n, e, t, i) => {
2397
+ (!e || e.toString() === "") && parseInt(e) !== 0 ? t(new Error(`${k("*必填")}`)) : t();
2398
+ }, wn = (n, e, t, i) => {
2399
+ e !== "" && e.length > parseInt(i.value) ? t(new Error(`${k("最大文本长度")}${k("不能超过")}${i.value}`)) : t();
2380
2400
  }, Cn = (n, e, t, i) => {
2381
- e !== "" && e.length > parseInt(i.value) ? t(new Error(`${D("最大文本长度")}${D("不能超过")}${i.value}`)) : t();
2401
+ e !== "" && e.length < parseInt(i.value) ? t(new Error(`${k("最小文本长度")}${k("不能少于")}${i.value}`)) : t();
2382
2402
  }, Dn = (n, e, t, i) => {
2383
- e !== "" && e.length < parseInt(i.value) ? t(new Error(`${D("最小文本长度")}${D("不能少于")}${i.value}`)) : t();
2384
- }, kn = (n, e, t, i) => {
2385
2403
  if (e !== "" && !/^1[3456789]\d{9}$/.test(e))
2386
- return t(new Error(D("手机号码格式不正确,请重新输入"))), !1;
2404
+ return t(new Error(k("手机号码格式不正确,请重新输入"))), !1;
2387
2405
  t();
2388
- }, Sn = (n, e, t) => {
2406
+ }, kn = (n, e, t) => {
2389
2407
  if (e !== "" && !/^[A-Za-z0-9\u4e00-\u9fa5]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/.test(e))
2390
- return t(new Error(D("电子邮箱格式不正确,请重新输入"))), !1;
2408
+ return t(new Error(k("电子邮箱格式不正确,请重新输入"))), !1;
2391
2409
  t();
2392
- }, Vn = (n, e, t) => {
2410
+ }, Sn = (n, e, t) => {
2393
2411
  if (e !== "" && !/^-?\d+$/.test(e))
2394
- return t(new Error(D("请输入整数"))), !1;
2412
+ return t(new Error(k("请输入整数"))), !1;
2395
2413
  t();
2396
- }, Nn = (n, e, t, i) => {
2414
+ }, Vn = (n, e, t, i) => {
2397
2415
  if (e !== "" && e != i.value)
2398
- return t(new Error(D("请输入相同的值"))), !1;
2416
+ return t(new Error(k("请输入相同的值"))), !1;
2399
2417
  t();
2418
+ }, Nn = (n, e, t, i) => {
2419
+ e === "" ? t() : /^[+-]?\d*\.?\d*$/.test(e) ? e < parseFloat(i.value) ? t(new Error(`${i.name}${k("不能小于")}${i.value}`)) : t() : t(new Error(k("请输入数字")));
2400
2420
  }, Ln = (n, e, t, i) => {
2401
- e === "" ? t() : /^[+-]?\d*\.?\d*$/.test(e) ? e < parseFloat(i.value) ? t(new Error(`${i.name}${D("不能小于")}${i.value}`)) : t() : t(new Error(D("请输入数字")));
2421
+ e === "" ? t() : /^[+-]?\d*\.?\d*$/.test(e) ? e > parseFloat(i.value) ? t(new Error(`${i.name}${k("不能大于")}${i.value}`)) : t() : t(new Error(k("请输入数字")));
2402
2422
  }, zn = (n, e, t, i) => {
2403
- e === "" ? t() : /^[+-]?\d*\.?\d*$/.test(e) ? e > parseFloat(i.value) ? t(new Error(`${i.name}${D("不能大于")}${i.value}`)) : t() : t(new Error(D("请输入数字")));
2404
- }, Mn = (n, e, t, i) => {
2405
2423
  const d = /^[+-]?(\d*\.\d+([eE]?[+-]?\d+)?|\d+[eE][+-]?\d+)$/, o = /^-?\d+$/;
2406
- e === "" ? t() : d.test(e) || o.test(e) ? e >= parseFloat(i.start) && e <= parseFloat(i.end) ? t() : t(new Error(`${D("只能输入指定数字范围")}${i.start}-${i.end}`)) : t(new Error(D("请输入数字")));
2424
+ e === "" ? t() : d.test(e) || o.test(e) ? e >= parseFloat(i.start) && e <= parseFloat(i.end) ? t() : t(new Error(`${k("只能输入指定数字范围")}${i.start}-${i.end}`)) : t(new Error(k("请输入数字")));
2425
+ }, Mn = (n, e, t, i) => {
2426
+ e === "" || parseFloat(e) === parseFloat(i.value) ? t() : t(new Error(`${k("只能输入指定的值")}${i.value}`));
2407
2427
  }, In = (n, e, t, i) => {
2408
- e === "" || parseFloat(e) === parseFloat(i.value) ? t() : t(new Error(`${D("只能输入指定的值")}${i.value}`));
2409
- }, Tn = (n, e, t, i) => {
2410
- e === "" ? t() : /^-?\d+$/.test(e) ? Math.abs(e).toString().length === parseInt(i.value) ? t() : t(new Error(`${D("只能输入")}${i.value}${D("位数数字")}`)) : t(new Error(D("请输入整数")));
2411
- }, Rn = (n, e, t) => {
2428
+ e === "" ? t() : /^-?\d+$/.test(e) ? Math.abs(e).toString().length === parseInt(i.value) ? t() : t(new Error(`${k("只能输入")}${i.value}${k("位数数字")}`)) : t(new Error(k("请输入整数")));
2429
+ }, Tn = (n, e, t) => {
2412
2430
  if (e !== "" && !/^[a-zA-Z]{1,}$/.test(e))
2413
- return t(new Error(D("只能输入字母"))), !1;
2431
+ return t(new Error(k("只能输入字母"))), !1;
2414
2432
  t();
2415
- }, Pn = (n, e, t) => {
2433
+ }, Rn = (n, e, t) => {
2416
2434
  if (e !== "" && !/^[a-zA-Z ]{1,}$/.test(e))
2417
- return t(new Error(D("只能输入字母空格"))), !1;
2435
+ return t(new Error(k("只能输入字母空格"))), !1;
2418
2436
  t();
2419
- }, $n = (n, e, t) => {
2437
+ }, Pn = (n, e, t) => {
2420
2438
  if (e !== "" && !/^[0-9a-zA-Z_-]{1,}$/.test(e))
2421
- return t(new Error(D("只能输入字母数字横线下划线"))), !1;
2439
+ return t(new Error(k("只能输入字母数字横线下划线"))), !1;
2422
2440
  t();
2423
- }, Fn = (n, e, t) => {
2441
+ }, $n = (n, e, t) => {
2424
2442
  if (e !== "" && !/^[0-9a-zA-Z]{1,}$/.test(e))
2425
- return t(new Error(D("只能输入字母数字"))), !1;
2443
+ return t(new Error(k("只能输入字母数字"))), !1;
2426
2444
  t();
2427
- }, jn = (n, e, t, i) => {
2445
+ }, Fn = (n, e, t, i) => {
2428
2446
  const d = new RegExp(i.value);
2429
2447
  if (e !== "" && !d.test(e))
2430
2448
  return t(new Error(i.errorMessage)), !1;
2431
2449
  t();
2432
- }, Kn = {
2433
- required: wn,
2434
- min: Dn,
2435
- max: Cn,
2436
- email: Sn,
2437
- min_value: Ln,
2438
- max_value: zn,
2439
- confirmed: Nn,
2440
- numeric: Vn,
2441
- between: Mn,
2442
- is: In,
2443
- digits: Tn,
2444
- mobile: kn,
2445
- alpha: Rn,
2446
- alpha_spaces: Pn,
2447
- alpha_dash: $n,
2448
- alpha_num: Fn,
2449
- regex: jn
2450
- }, qn = () => {
2451
- const n = p({}), e = p([]), t = p({}), i = p({}), d = p([]), o = p(""), g = p(""), k = p({}), s = p([]), l = p({});
2450
+ }, jn = {
2451
+ required: _n,
2452
+ min: Cn,
2453
+ max: wn,
2454
+ email: kn,
2455
+ min_value: Nn,
2456
+ max_value: Ln,
2457
+ confirmed: Vn,
2458
+ numeric: Sn,
2459
+ between: zn,
2460
+ is: Mn,
2461
+ digits: In,
2462
+ mobile: Dn,
2463
+ alpha: Tn,
2464
+ alpha_spaces: Rn,
2465
+ alpha_dash: Pn,
2466
+ alpha_num: $n,
2467
+ regex: Fn
2468
+ }, Kn = () => {
2469
+ const n = p({}), e = p([]), t = p({}), i = p({}), d = p([]), o = p(""), g = p(""), S = p({}), s = p([]), l = p({});
2452
2470
  return {
2453
2471
  data: n,
2454
2472
  formData: e,
2455
- formRule: k,
2473
+ formRule: S,
2456
2474
  showData: t,
2457
2475
  disabledData: i,
2458
2476
  flowKey: o,
2459
2477
  linkData: l,
2460
2478
  encryptionData: s,
2461
- setData: (y, u) => {
2462
- const R = { ...n.value, [y]: u };
2479
+ setData: (h, u) => {
2480
+ const R = { ...n.value, [h]: u };
2463
2481
  n.value = R, e.value.forEach((F) => {
2464
2482
  F.formKey === g.value && (F.data = R);
2465
2483
  });
2466
2484
  },
2467
- setDetailData: (y) => {
2468
- n.value = y, e.value.forEach((u) => {
2469
- u.formKey === g.value && (u.data = y);
2485
+ setDetailData: (h) => {
2486
+ n.value = h, e.value.forEach((u) => {
2487
+ u.formKey === g.value && (u.data = h);
2470
2488
  });
2471
2489
  },
2472
- setLinkData: (y, u) => {
2473
- l.value = { data: y, val: u };
2490
+ setLinkData: (h, u) => {
2491
+ l.value = { data: h, val: u };
2474
2492
  },
2475
- getData: (y) => {
2493
+ getData: (h) => {
2476
2494
  var u;
2477
- return n.value[y] || ((u = e.value.find((R) => R.formKey === g.value)) == null ? void 0 : u.data[y]);
2495
+ return n.value[h] || ((u = e.value.find((R) => R.formKey === g.value)) == null ? void 0 : u.data[h]);
2478
2496
  },
2479
- setFormData: (y, u, R) => {
2480
- g.value = y, d.value.includes(y) ? e.value.forEach((F) => {
2481
- F.formKey === y && (n.value = F.data);
2482
- }) : (d.value.push(y), e.value.push({
2483
- formKey: y,
2497
+ setFormData: (h, u, R) => {
2498
+ g.value = h, d.value.includes(h) ? e.value.forEach((F) => {
2499
+ F.formKey === h && (n.value = F.data);
2500
+ }) : (d.value.push(h), e.value.push({
2501
+ formKey: h,
2484
2502
  boKey: u,
2485
2503
  reportId: R || null,
2486
2504
  data: {}
2487
2505
  }));
2488
2506
  },
2489
2507
  getFormData: () => e.value,
2490
- setFormRule: (y, u) => {
2491
- k.value[y] = [], u && u.length && u.forEach((R) => {
2492
- k.value[y].push({
2493
- validator: (F, I, M) => Kn[R.key](F, I, M, R)
2508
+ setFormRule: (h, u) => {
2509
+ S.value[h] = [], u && u.length && u.forEach((R) => {
2510
+ S.value[h].push({
2511
+ validator: (F, T, I) => jn[R.key](F, T, I, R)
2494
2512
  });
2495
2513
  });
2496
2514
  },
2497
2515
  clearData: () => {
2498
- n.value = {}, e.value = [], d.value = [], k.value = {};
2516
+ n.value = {}, e.value = [], d.value = [], S.value = {};
2499
2517
  },
2500
- deleteRule: (y) => {
2501
- delete k.value[y];
2518
+ deleteRule: (h) => {
2519
+ delete S.value[h];
2502
2520
  }
2503
2521
  };
2504
- }, En = { class: "custom-page" }, On = {
2522
+ }, qn = { class: "custom-page" }, En = {
2505
2523
  key: 0,
2506
2524
  class: "btn-box"
2507
- }, Bn = {
2525
+ }, On = {
2508
2526
  key: 1,
2509
2527
  style: { "background-color": "#fff" }
2510
- }, An = /* @__PURE__ */ x({
2528
+ }, An = /* @__PURE__ */ Y({
2511
2529
  __name: "App",
2512
2530
  props: {
2513
2531
  formConfigurationId: {},
@@ -2521,10 +2539,10 @@ const _n = { ...Dt, ...kt }, wn = (n, e, t, i) => {
2521
2539
  },
2522
2540
  emits: ["handleClick", "change"],
2523
2541
  setup(n, { expose: e, emit: t }) {
2524
- const i = qn(), { formRule: d, data: o, flowKey: g, clearData: k, getFormData: s } = i, l = n, v = t;
2542
+ const i = Kn(), { formRule: d, data: o, flowKey: g, clearData: S, getFormData: s } = i, l = n, v = t;
2525
2543
  g.value = l.flowKey;
2526
2544
  const r = (R) => R === "accordion";
2527
- z(
2545
+ M(
2528
2546
  () => o.value,
2529
2547
  (R) => {
2530
2548
  v("change", R);
@@ -2535,35 +2553,35 @@ const _n = { ...Dt, ...kt }, wn = (n, e, t, i) => {
2535
2553
  }
2536
2554
  );
2537
2555
  const {
2538
- formJsonList: h,
2556
+ formJsonList: f,
2539
2557
  isShowPage: c,
2540
2558
  btnList: _,
2541
- activityKeys: b,
2542
- getForm: w,
2559
+ activityKeys: y,
2560
+ getForm: C,
2543
2561
  getBtnSet: m,
2544
- handleClick: N,
2545
- validateFormData: y,
2562
+ handleClick: L,
2563
+ validateFormData: h,
2546
2564
  getFormRef: u
2547
- } = ya(l, v, i);
2548
- return Lt(async () => {
2549
- l.isShowBtn == !1 ? w(l.formConfigurationId) : m();
2565
+ } = ha(l, v, i);
2566
+ return zt(async () => {
2567
+ l.isShowBtn == !1 ? C(l.formConfigurationId) : m();
2550
2568
  }), e({
2551
- validateFormData: y,
2552
- clearData: k
2553
- }), (R, F) => (V(), J("div", En, [
2554
- a(_).length > 0 ? (V(), J("div", On, [
2555
- (V(!0), J(
2556
- ee,
2569
+ validateFormData: h,
2570
+ clearData: S
2571
+ }), (R, F) => (N(), H("div", qn, [
2572
+ a(_).length > 0 ? (N(), H("div", En, [
2573
+ (N(!0), H(
2574
+ ae,
2557
2575
  null,
2558
- ye(a(_), (I) => (V(), E(a(Tt), {
2559
- key: I.id,
2576
+ _e(a(_), (T) => (N(), E(a(Rt), {
2577
+ key: T.id,
2560
2578
  style: { "margin-right": "20px" },
2561
2579
  "btn-type": "primary",
2562
- onClick: (M) => a(N)(I)
2580
+ onClick: (I) => a(L)(T)
2563
2581
  }, {
2564
2582
  default: $(() => [
2565
- ae(
2566
- ne(I.name),
2583
+ se(
2584
+ oe(T.name),
2567
2585
  1
2568
2586
  /* TEXT */
2569
2587
  )
@@ -2574,39 +2592,39 @@ const _n = { ...Dt, ...kt }, wn = (n, e, t, i) => {
2574
2592
  128
2575
2593
  /* KEYED_FRAGMENT */
2576
2594
  ))
2577
- ])) : B("v-if", !0),
2578
- zt((V(), J(
2595
+ ])) : A("v-if", !0),
2596
+ Mt((N(), H(
2579
2597
  "div",
2580
2598
  {
2581
2599
  class: "content-box",
2582
- style: Mt({ margin: "0 10px", ...R.customStyle })
2600
+ style: It({ margin: "0 10px", ...R.customStyle })
2583
2601
  },
2584
2602
  [
2585
- (V(!0), J(
2586
- ee,
2603
+ (N(!0), H(
2604
+ ae,
2587
2605
  null,
2588
- ye(a(h), (I) => (V(), J(
2589
- ee,
2606
+ _e(a(f), (T) => (N(), H(
2607
+ ae,
2590
2608
  {
2591
- key: I.name
2609
+ key: T.name
2592
2610
  },
2593
2611
  [
2594
- r(I.ctrlType) ? (V(), E(a(at), {
2612
+ r(T.ctrlType) ? (N(), E(a(at), {
2595
2613
  key: 0,
2596
2614
  style: { "margin-bottom": "10px" },
2597
- collapsible: I.options.accordion ? "" : "disabled",
2598
- activeKey: a(b)
2615
+ collapsible: T.options.accordion ? "" : "disabled",
2616
+ activeKey: a(y)
2599
2617
  }, {
2600
2618
  default: $(() => [
2601
- (V(), E(a(nt), {
2602
- key: I.key,
2603
- header: I.columns[0].span
2619
+ (N(), E(a(nt), {
2620
+ key: T.key,
2621
+ header: T.columns[0].span
2604
2622
  }, {
2605
2623
  default: $(() => [
2606
- a(c) ? (V(), E(a(He), {
2624
+ a(c) ? (N(), E(a(He), {
2607
2625
  key: 0,
2608
2626
  ref_for: !0,
2609
- ref: (M) => a(u)(M, I),
2627
+ ref: (I) => a(u)(I, T),
2610
2628
  cols: 24,
2611
2629
  alignType: "horizontal",
2612
2630
  "margin-right": "80px",
@@ -2615,23 +2633,23 @@ const _n = { ...Dt, ...kt }, wn = (n, e, t, i) => {
2615
2633
  form: a(i).data
2616
2634
  }, {
2617
2635
  default: $(() => [
2618
- (V(!0), J(
2619
- ee,
2636
+ (N(!0), H(
2637
+ ae,
2620
2638
  null,
2621
- ye(I.columns[0].list, (M) => (V(), J(
2622
- ee,
2639
+ _e(T.columns[0].list, (I) => (N(), H(
2640
+ ae,
2623
2641
  {
2624
- key: I.name
2642
+ key: T.name
2625
2643
  },
2626
2644
  [
2627
- M.ctrlType == "grid" ? (V(), E(De(a(be).grid), {
2645
+ I.ctrlType == "grid" ? (N(), E(ke(a(we).grid), {
2628
2646
  key: 0,
2629
- setting: M,
2647
+ setting: I,
2630
2648
  isView: l.isView,
2631
2649
  store: a(i)
2632
- }, null, 8, ["setting", "isView", "store"])) : (V(), E(De(a(be)[M.ctrlType]), {
2650
+ }, null, 8, ["setting", "isView", "store"])) : (N(), E(ke(a(we)[I.ctrlType]), {
2633
2651
  key: 1,
2634
- setting: M,
2652
+ setting: I,
2635
2653
  isView: l.isView,
2636
2654
  store: a(i)
2637
2655
  }, null, 8, ["setting", "isView", "store"]))
@@ -2645,7 +2663,7 @@ const _n = { ...Dt, ...kt }, wn = (n, e, t, i) => {
2645
2663
  ]),
2646
2664
  _: 2
2647
2665
  /* DYNAMIC */
2648
- }, 1032, ["rules", "form"])) : B("v-if", !0)
2666
+ }, 1032, ["rules", "form"])) : A("v-if", !0)
2649
2667
  ]),
2650
2668
  _: 2
2651
2669
  /* DYNAMIC */
@@ -2653,11 +2671,11 @@ const _n = { ...Dt, ...kt }, wn = (n, e, t, i) => {
2653
2671
  ]),
2654
2672
  _: 2
2655
2673
  /* DYNAMIC */
2656
- }, 1032, ["collapsible", "activeKey"])) : (V(), J("div", Bn, [
2657
- a(c) ? (V(), E(a(He), {
2674
+ }, 1032, ["collapsible", "activeKey"])) : (N(), H("div", On, [
2675
+ a(c) ? (N(), E(a(He), {
2658
2676
  key: 0,
2659
2677
  ref_for: !0,
2660
- ref: (M) => a(u)(M, I),
2678
+ ref: (I) => a(u)(I, T),
2661
2679
  cols: 24,
2662
2680
  "auto-margin-right": "",
2663
2681
  alignType: "horizontal",
@@ -2666,15 +2684,15 @@ const _n = { ...Dt, ...kt }, wn = (n, e, t, i) => {
2666
2684
  form: a(i).data
2667
2685
  }, {
2668
2686
  default: $(() => [
2669
- (V(), E(De(a(be)[I.ctrlType]), {
2670
- setting: I,
2687
+ (N(), E(ke(a(we)[T.ctrlType]), {
2688
+ setting: T,
2671
2689
  isView: l.isView,
2672
2690
  store: a(i)
2673
2691
  }, null, 8, ["setting", "isView", "store"]))
2674
2692
  ]),
2675
2693
  _: 2
2676
2694
  /* DYNAMIC */
2677
- }, 1032, ["rules", "form"])) : B("v-if", !0)
2695
+ }, 1032, ["rules", "form"])) : A("v-if", !0)
2678
2696
  ]))
2679
2697
  ],
2680
2698
  64
@@ -2687,11 +2705,11 @@ const _n = { ...Dt, ...kt }, wn = (n, e, t, i) => {
2687
2705
  4
2688
2706
  /* STYLE */
2689
2707
  )), [
2690
- [a(Rt)]
2708
+ [a(Pt)]
2691
2709
  ])
2692
2710
  ]));
2693
2711
  }
2694
- }), Qn = /* @__PURE__ */ Ne(An, [["__scopeId", "data-v-ce01ee82"]]), Un = {
2712
+ }), Bn = /* @__PURE__ */ Le(An, [["__scopeId", "data-v-ce01ee82"]]), Qn = {
2695
2713
  姓名: { "zh-CN": "姓名", en: "Name", _appCode: "framework" },
2696
2714
  状态: { "zh-CN": "状态", en: "Status", _appCode: "framework" },
2697
2715
  组织名称: { "zh-CN": "组织名称", en: "Organization Name", _appCode: "framework" },
@@ -2814,9 +2832,9 @@ const _n = { ...Dt, ...kt }, wn = (n, e, t, i) => {
2814
2832
  请选择: { "zh-CN": "请选择", en: "Please select", _appCode: "framework" },
2815
2833
  报修位置: { "zh-CN": "报修位置", en: "Repair Location", _appCode: "framework" }
2816
2834
  };
2817
- jt(Un);
2818
- const ms = St(Qn);
2835
+ Kt(Qn);
2836
+ const gs = Vt(Bn);
2819
2837
  export {
2820
- ms as DasProcessForm,
2821
- ms as default
2838
+ gs as DasProcessForm,
2839
+ gs as default
2822
2840
  };