@das-fed/ui 6.4.0-dev.22 → 6.4.0-dev.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (25) hide show
  1. package/esm-map.json +3 -1
  2. package/package.json +5 -5
  3. package/packages/business-components/index.d.ts +1 -0
  4. package/packages/business-components/index.js +1 -0
  5. package/packages/business-components/process-form/App.vue.d.ts +1 -0
  6. package/packages/business-components/process-form/index.d.ts +1 -0
  7. package/packages/business-components/process-form/index.js +991 -943
  8. package/packages/business-components/process-form/index.js.gz +0 -0
  9. package/packages/business-components/process-form/src/hooks/useSelector.d.ts +1 -1
  10. package/packages/business-components/process-form/src/widgets/store.d.ts +1 -0
  11. package/packages/business-components/process-form/style.css +1 -1
  12. package/packages/business-components/process-search-form/hooks/useSearchOptions.d.ts +1 -172
  13. package/packages/business-components/process-search-form/index.js +236 -337
  14. package/packages/business-components/process-search-form/index.js.gz +0 -0
  15. package/packages/business-components/process-table/index.js +52 -52
  16. package/packages/business-components/process-table/index.js.gz +0 -0
  17. package/packages/business-components/process-table/src/App.vue.d.ts +1 -1
  18. package/packages/business-components/process-table/style.css +1 -1
  19. package/packages/business-components/upload-file/index.d.ts +87 -0
  20. package/packages/business-components/upload-file/index.js +111 -0
  21. package/packages/business-components/upload-file/index.js.gz +0 -0
  22. package/packages/business-components/upload-file/src/App.vue.d.ts +16 -0
  23. package/packages/business-components/upload-file/src/hooks/use-upload.d.ts +7 -0
  24. package/packages/business-components/upload-file/src/type.d.ts +51 -0
  25. package/packages/business-components/upload-file/style.css +1 -0
@@ -1,99 +1,99 @@
1
1
  import '@das-fed/ui/packages/business-components/process-form/style.css';
2
- import { withInstall as Xe } from "@das-fed/utils/with-install/index";
3
- import { ref as r, defineComponent as j, watch as D, withDirectives as H, openBlock as h, createBlock as R, unref as n, withCtx as L, createVNode as w, vShow as X, createElementVNode as Te, createTextVNode as J, toDisplayString as W, createElementBlock as K, Fragment as G, isRef as ce, createSlots as et, createCommentVNode as q, h as oe, renderList as ie, resolveDynamicComponent as _e, onMounted as tt } from "vue";
4
- import { DasFormRef as st, DasForm as De } from "@das-fed/ui/packages/components/form/index";
5
- import { DasButton as at } from "@das-fed/ui/packages/components/button/index";
6
- import { vOverlay as nt } from "@das-fed/ui/packages/components/overlay/index";
2
+ import { withInstall as pt } from "@das-fed/utils/with-install/index";
3
+ import { ref as r, defineComponent as j, watch as S, withDirectives as H, openBlock as b, createBlock as $, unref as o, withCtx as M, createVNode as w, vShow as X, createElementVNode as Oe, createTextVNode as J, toDisplayString as W, createElementBlock as P, Fragment as G, isRef as ve, createSlots as gt, createCommentVNode as E, h as ie, renderList as le, resolveDynamicComponent as we, onMounted as dt } from "vue";
4
+ import { DasFormRef as ct, DasForm as qe } from "@das-fed/ui/packages/components/form/index";
5
+ import { DasButton as vt } from "@das-fed/ui/packages/components/button/index";
6
+ import { vOverlay as mt } from "@das-fed/ui/packages/components/overlay/index";
7
7
  import { createService as Y } from "@das-fed/utils/create-api-service";
8
- import { DasUpload as ot } from "@das-fed/ui/packages/components/upload/index";
8
+ import { DasUpload as ft } from "@das-fed/ui/packages/components/upload/index";
9
9
  import { DasFormItem as N } from "@das-fed/ui/packages/components/form-item/index";
10
- import { DasAutocomplete as it } from "@das-fed/ui/packages/components/autocomplete/index";
11
- import pe from "dayjs";
12
- import { DasImageViewer as Re } from "@das-fed/ui/packages/components/image-viewer/index";
13
- import { DasInput as Se } from "@das-fed/ui/packages/components/input/index";
14
- import { DasTooltip as $e } from "@das-fed/ui/packages/components/tooltip/index";
10
+ import { DasAutocomplete as yt } from "@das-fed/ui/packages/components/autocomplete/index";
11
+ import ge from "dayjs";
12
+ import { DasImageViewer as Pe } from "@das-fed/ui/packages/components/image-viewer/index";
13
+ import { DasInput as Be } from "@das-fed/ui/packages/components/input/index";
14
+ import { DasTooltip as Ee } from "@das-fed/ui/packages/components/tooltip/index";
15
15
  import { DasTableColumn as T } from "@das-fed/ui/packages/components/table/index";
16
- import { DasSearchForm as lt } from "@das-fed/ui/packages/components/search-form/index";
17
- import { DasModelTableDialog as ut } from "@das-fed/ui/packages/business-components/model-table-dialog";
18
- import { getProjectInfo as ke } from "@das-fed/utils/common-info";
16
+ import { DasSearchForm as ht } from "@das-fed/ui/packages/components/search-form/index";
17
+ import { DasModelTableDialog as bt } from "@das-fed/ui/packages/business-components/model-table-dialog";
18
+ import { getProjectInfo as Ae } from "@das-fed/utils/common-info";
19
19
  import { i18n as F } from "@das-fed/web/packages/i18n/index";
20
- import { getConfig as rt } from "@das-fed/utils/config";
21
- import { DasRichEditor as Fe } from "@das-fed/ui/packages/components/rich-editor/index";
22
- import { DasCollaspe as Oe } from "@das-fed/ui/packages/components/collaspe/index";
23
- import { DasCollaspePanel as je } from "@das-fed/ui/packages/components/collapse-panel/index";
24
- const ee = "v1", pt = Y(`/workflow/form/form/${ee}`), gt = Y(`/workflow/form/formDef/${ee}`);
20
+ import { getConfig as _t } from "@das-fed/utils/config";
21
+ import { DasRichEditor as ze } from "@das-fed/ui/packages/components/rich-editor/index";
22
+ import { DasCollaspe as Ue } from "@das-fed/ui/packages/components/collaspe/index";
23
+ import { DasCollaspePanel as Qe } from "@das-fed/ui/packages/components/collapse-panel/index";
24
+ const ee = "v1", wt = Y(`/workflow/form/form/${ee}`), Vt = Y(`/workflow/form/formDef/${ee}`);
25
25
  Y(`/workflow/api/user/${ee}`);
26
- const Ie = Y(`/workflow/api/extend/${ee}`), dt = Y(`/workflow/flow/def/${ee}`), ct = Y(`/workflow/form/customQuery/${ee}`), se = Y(`/api/enterpriseright/permission/${ee}`), we = Y(`/api/space-manage/space-tree/${ee}`), Ve = Y(`/api/supply/supplier/${ee}`), vt = Y(`/api/warehouse/vms/${ee}/asset-receive`), mt = pt.get("/formDesign"), ft = gt.get("/get"), yt = Ie.get("/report-config");
27
- Ie.get("/application-report");
28
- const ht = dt.get("/getBindRelationByDefKey"), bt = ct.get("/getByAlias"), _t = se.get("/organization/authTree"), wt = se.post("/user/list"), Vt = se.post("/data/user-query"), Dt = se.get("/role/list"), St = se.post("/data/role-ids"), Lt = se.get("/organization/organizationpage"), Mt = se.get("/station/list"), Tt = se.get("/position/list"), ve = se.post("/organization/detailbyids"), Rt = we.get("/controller/area-children"), $t = we.get("/controller/fuzzy-tree-all"), kt = we.get("/controller/space"), Ft = Ve.post("/supplier/list/page", (a) => {
26
+ const Ce = Y(`/workflow/api/extend/${ee}`), Dt = Y(`/workflow/flow/def/${ee}`), St = Y(`/workflow/form/customQuery/${ee}`), ae = Y(`/api/enterpriseright/permission/${ee}`), Ve = Y(`/api/space-manage/space-tree/${ee}`), De = Y(`/api/supply/supplier/${ee}`), Lt = Y(`/api/warehouse/vms/${ee}/asset-receive`), Mt = wt.get("/formDesign"), Rt = Vt.get("/get"), Tt = Ce.get("/report-config");
27
+ Ce.get("/application-report");
28
+ const $t = Dt.get("/getBindRelationByDefKey"), kt = St.get("/getByAlias"), Ft = ae.get("/organization/authTree"), It = ae.post("/user/list"), jt = ae.post("/data/user-query"), qt = ae.get("/role/list"), Bt = ae.post("/data/role-ids"), Kt = ae.get("/organization/organizationpage"), Nt = ae.get("/station/list"), Ot = ae.get("/position/list"), me = ae.post("/organization/detailbyids"), Pt = Ve.get("/controller/area-children"), Et = Ve.get("/controller/fuzzy-tree-all"), At = Ve.get("/controller/space"), zt = De.post("/supplier/list/page", (s) => {
29
29
  var e, t;
30
- return a.params = {
31
- pageSize: ((e = a == null ? void 0 : a.data) == null ? void 0 : e.pageSize) || 1,
32
- pageIndex: ((t = a == null ? void 0 : a.data) == null ? void 0 : t.pageIndex) || 20
33
- }, a;
34
- }), Ot = Ve.get("/supplier"), jt = Ve.post("/classification/list/all"), It = vt.get("/receive-code"), me = r(""), Bt = (a, e, t) => {
35
- const { setDetailData: s, getFormData: m, setFormData: f, formRule: b, showData: d } = t, v = r([]), c = r([]), g = r([]), l = r(!1), p = st(), i = r([]), u = ($) => Object.keys($).length === 0, o = async ($) => {
36
- const [I, B] = await mt({ formId: $ }).run();
37
- if (I) return;
38
- const Q = JSON.parse(B.bos);
39
- me.value = Q[0].alias, c.value.length && c.value.forEach((U) => {
40
- U.formKey === B.formKey && f(B.formKey, me.value, U.id);
30
+ return s.data.pageBean = {
31
+ page: ((e = s == null ? void 0 : s.data) == null ? void 0 : e.pageIndex) || 1,
32
+ pageSize: ((t = s == null ? void 0 : s.data) == null ? void 0 : t.pageSize) || 20
33
+ }, s;
34
+ }), Ut = De.get("/supplier"), Qt = De.post("/classification/list/all"), Ct = Lt.get("/receive-code"), fe = r(""), xt = (s, e, t) => {
35
+ const { setDetailData: a, getFormData: l, setFormData: f, formRule: h, showData: d } = t, v = r([]), p = r([]), g = r([]), u = r(!1), c = ct(), i = r([]), y = (D) => Object.keys(D).length === 0, n = async (D) => {
36
+ const [B, O] = await Mt({ formId: D }).run();
37
+ if (B) return;
38
+ const U = JSON.parse(O.bos);
39
+ fe.value = U[0].alias, p.value.length && p.value.forEach((q) => {
40
+ q.formKey === O.formKey && f(O.formKey, fe.value, q.id);
41
41
  });
42
- const [Z, z] = await ft({ formDefId: B.defId }).run();
43
- g.value = JSON.parse(z.value.expand).list, g.value.forEach((U) => {
44
- U.columns[0].isOpen && i.value.push(U.columns[0].idKey);
45
- }), c.value.length || f(B.formKey, me.value), d.value = a.showData, u(a.data) && (l.value = !0), u(a.data) || (s(a.data), a.flowKey && (v.value = a.data.button_list ? JSON.parse(a.data.button_list) : []), l.value = !0);
42
+ const [Z, te] = await Rt({ formDefId: O.defId }).run();
43
+ g.value = JSON.parse(te.value.expand).list, g.value.forEach((q) => {
44
+ q.columns[0].isOpen && i.value.push(q.columns[0].idKey);
45
+ }), p.value.length || f(O.formKey, fe.value), d.value = s.showData, y(s.data) && (u.value = !0), y(s.data) || (a(s.data), s.flowKey && (v.value = s.data.button_list ? JSON.parse(s.data.button_list) : []), u.value = !0);
46
46
  };
47
47
  return {
48
- isShowPage: l,
48
+ isShowPage: u,
49
49
  formJsonList: g,
50
50
  btnList: v,
51
- formRef: p,
51
+ formRef: c,
52
52
  activityKeys: i,
53
- getForm: o,
53
+ getForm: n,
54
54
  getBtnSet: async () => {
55
- if (a.formConfigurationId) {
56
- const [$, I] = await yt({ id: a.formConfigurationId }).run();
57
- if ($) return;
58
- c.value = I.reports, v.value = I.reports[0].buttons.filter((B) => !(a.isView && B.event !== "LINK")), o(I.reports[0].formId);
55
+ if (s.formConfigurationId) {
56
+ const [D, B] = await Tt({ id: s.formConfigurationId }).run();
57
+ if (D) return;
58
+ p.value = B.reports, v.value = B.reports[0].buttons.filter((O) => !(s.isView && O.event !== "LINK")), n(B.reports[0].formId);
59
59
  }
60
- if (a.flowKey) {
61
- const [$, I] = await ht({ flowKey: a.flowKey }).run();
62
- if ($) return;
63
- o(I.pcForm.pcFormId);
60
+ if (s.flowKey) {
61
+ const [D, B] = await $t({ flowKey: s.flowKey }).run();
62
+ if (D) return;
63
+ n(B.pcForm.pcFormId);
64
64
  }
65
65
  },
66
- handleClick: ($) => {
67
- var I;
68
- (I = p.value) == null || I.validate(async (B) => {
69
- B && (e("handleClick", $, m()), $.event === "LINK" && c.value.forEach((Q) => {
70
- $.eventTarget === Q.formKey && (v.value = Q.buttons.filter((Z) => !(a.isView && Z.event !== "LINK")), l.value = !1, b.value = {}, o(Q.formId));
66
+ handleClick: (D) => {
67
+ var B;
68
+ (B = c.value) == null || B.validate(async (O) => {
69
+ O && (e("handleClick", D, l()), D.event === "LINK" && p.value.forEach((U) => {
70
+ D.eventTarget === U.formKey && (v.value = U.buttons.filter((Z) => !(s.isView && Z.event !== "LINK")), u.value = !1, h.value = {}, n(U.formId));
71
71
  }));
72
72
  });
73
73
  }
74
74
  };
75
- }, E = (a) => {
76
- var e = new RegExp("<.+?>", "g"), t = a.replace(e, "").replace(/&nbsp;/g, "");
75
+ }, A = (s) => {
76
+ var e = new RegExp("<.+?>", "g"), t = s.replace(e, "").replace(/&nbsp;/g, "");
77
77
  return t;
78
- }, le = async (a, e) => {
79
- const [t, s] = await bt({ alias: a }).run();
80
- if (!t && s.url) {
81
- const m = e.filter((c) => c.defaultType == 2), f = r({});
82
- m.forEach((c) => {
83
- f.value[c.field] = c.defaultValue;
78
+ }, ue = async (s, e) => {
79
+ const [t, a] = await kt({ alias: s }).run();
80
+ if (!t && a.url) {
81
+ const l = e.filter((p) => p.defaultType == 2), f = r({});
82
+ l.forEach((p) => {
83
+ f.value[p.field] = p.defaultValue;
84
84
  });
85
- const b = s.requestType === "POST" ? Y(s.url).post("") : Y(s.url).get(""), [d, v] = await b({}, { params: f.value }).run();
85
+ const h = a.requestType === "POST" ? Y(a.url).post("") : Y(a.url).get(""), [d, v] = await h({}, { params: f.value }).run();
86
86
  return d ? void 0 : v;
87
87
  }
88
- }, C = async (a) => {
88
+ }, Q = async (s) => {
89
89
  const e = r(!1);
90
- return a.forEach((t) => {
90
+ return s.forEach((t) => {
91
91
  t.key === "required" && (e.value = !0);
92
92
  }), e.value;
93
- }, Pt = {
93
+ }, Yt = {
94
94
  name: "attachment"
95
- }, Nt = /* @__PURE__ */ j({
96
- ...Pt,
95
+ }, Jt = /* @__PURE__ */ j({
96
+ ...Yt,
97
97
  props: {
98
98
  setting: { default: () => ({
99
99
  icon: "",
@@ -107,31 +107,31 @@ const ht = dt.get("/getBindRelationByDefKey"), bt = ct.get("/getByAlias"), _t =
107
107
  marginRight: {},
108
108
  store: {}
109
109
  },
110
- setup(a) {
111
- const e = a, { showData: t, setData: s, getData: m, setFormRule: f, deleteRule: b } = e.store || {}, d = r(!0);
112
- !t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), D(
110
+ setup(s) {
111
+ const e = s, { showData: t, setData: a, getData: l, setFormRule: f, deleteRule: h } = e.store || {}, d = r(!0);
112
+ !t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), S(
113
113
  () => t.value,
114
114
  () => {
115
- d.value = t.value[e.setting.name], d.value || (c.value = [], b(e.setting.name)), d.value && e.setting.options.validateList.length && f(e.setting.name, e.setting.options.validateList);
115
+ d.value = t.value[e.setting.name], d.value || (p.value = [], h(e.setting.name)), d.value && e.setting.options.validateList.length && f(e.setting.name, e.setting.options.validateList);
116
116
  },
117
117
  { deep: !0 }
118
118
  );
119
119
  const v = r();
120
- e.setting.options.tip && (v.value = E(e.setting.options.tip));
121
- const c = r([{ name: "111", sizeText: "9.4KB" }]);
122
- return c.value || s(e.setting.name, null), D(c, (g) => {
123
- s(e.setting.name, JSON.stringify(g));
124
- }), (g, l) => H((h(), R(n(N), {
120
+ e.setting.options.tip && (v.value = A(e.setting.options.tip));
121
+ const p = r([{ name: "111", sizeText: "9.4KB" }]);
122
+ return p.value || a(e.setting.name, null), S(p, (g) => {
123
+ a(e.setting.name, JSON.stringify(g));
124
+ }), (g, u) => H((b(), $(o(N), {
125
125
  col: e.span,
126
126
  label: g.setting.desc,
127
127
  type: "custom",
128
128
  helpMessage: v.value
129
129
  }, {
130
- default: L(() => [
131
- w(n(ot), {
130
+ default: M(() => [
131
+ w(o(ft), {
132
132
  style: { width: "100%" },
133
- modelValue: c.value,
134
- "onUpdate:modelValue": l[0] || (l[0] = (p) => c.value = p)
133
+ modelValue: p.value,
134
+ "onUpdate:modelValue": u[0] || (u[0] = (c) => p.value = c)
135
135
  }, null, 8, ["modelValue"])
136
136
  ]),
137
137
  _: 1
@@ -140,13 +140,13 @@ const ht = dt.get("/getBindRelationByDefKey"), bt = ct.get("/getByAlias"), _t =
140
140
  [X, d.value]
141
141
  ]);
142
142
  }
143
- }), Be = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
143
+ }), xe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
144
144
  __proto__: null,
145
- default: Nt
146
- }, Symbol.toStringTag, { value: "Module" })), Kt = {
145
+ default: Jt
146
+ }, Symbol.toStringTag, { value: "Module" })), Wt = {
147
147
  name: "autocomplete"
148
- }, qt = /* @__PURE__ */ j({
149
- ...Kt,
148
+ }, Ht = /* @__PURE__ */ j({
149
+ ...Wt,
150
150
  props: {
151
151
  setting: { default: () => ({
152
152
  icon: "",
@@ -160,48 +160,48 @@ const ht = dt.get("/getBindRelationByDefKey"), bt = ct.get("/getByAlias"), _t =
160
160
  marginRight: {},
161
161
  store: {}
162
162
  },
163
- setup(a) {
164
- const e = a, { showData: t, setData: s, getData: m, setFormRule: f, deleteRule: b } = e.store || {}, d = r(!0);
165
- !t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), D(
163
+ setup(s) {
164
+ const e = s, { showData: t, setData: a, getData: l, setFormRule: f, deleteRule: h } = e.store || {}, d = r(!0);
165
+ !t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), S(
166
166
  () => t.value,
167
167
  () => {
168
- d.value = t.value[e.setting.name], d.value || (u.value = "", b(e.setting.name)), d.value && e.setting.options.validateList.length && f(e.setting.name, e.setting.options.validateList);
168
+ d.value = t.value[e.setting.name], d.value || (y.value = "", h(e.setting.name)), d.value && e.setting.options.validateList.length && f(e.setting.name, e.setting.options.validateList);
169
169
  },
170
170
  { deep: !0 }
171
171
  );
172
172
  const v = r(!1);
173
- C(e.setting.options.validateList).then((o) => {
174
- v.value = o;
173
+ Q(e.setting.options.validateList).then((n) => {
174
+ v.value = n;
175
175
  });
176
- const c = e.setting.options.customQuery.valueBind ? e.setting.options.customQuery.valueBind : "value", g = e.setting.options.children ? e.setting.options.children : "children", l = !!e.setting.options.fillInFullPath, p = r([]);
177
- e.setting.options.customQuery.alias ? le(e.setting.options.customQuery.alias, e.setting.options.customQuery.conditionfield).then((o) => {
178
- p.value = o;
179
- }) : p.value = e.setting.options.options;
176
+ const p = e.setting.options.customQuery.valueBind ? e.setting.options.customQuery.valueBind : "value", g = e.setting.options.children ? e.setting.options.children : "children", u = !!e.setting.options.fillInFullPath, c = r([]);
177
+ e.setting.options.customQuery.alias ? ue(e.setting.options.customQuery.alias, e.setting.options.customQuery.conditionfield).then((n) => {
178
+ c.value = n;
179
+ }) : c.value = e.setting.options.options;
180
180
  const i = r();
181
- e.setting.options.tip && (i.value = E(e.setting.options.tip));
182
- const u = r("");
183
- return u.value = m(e.setting.name) || u.value, u.value || s(e.setting.name, null), e.setting.options.validateList.length && f(e.setting.name, e.setting.options.validateList), D(u, (o) => {
184
- s(e.setting.name, o.toString());
185
- }), (o, y) => H((h(), R(n(N), {
181
+ e.setting.options.tip && (i.value = A(e.setting.options.tip));
182
+ const y = r("");
183
+ return y.value = l(e.setting.name) || y.value, y.value || a(e.setting.name, null), e.setting.options.validateList.length && f(e.setting.name, e.setting.options.validateList), S(y, (n) => {
184
+ a(e.setting.name, n.toString());
185
+ }), (n, m) => H((b(), $(o(N), {
186
186
  col: e.span,
187
187
  prop: e.setting.name,
188
- modelValue: u.value,
189
- "onUpdate:modelValue": y[1] || (y[1] = (M) => u.value = M),
190
- label: o.setting.desc,
188
+ modelValue: y.value,
189
+ "onUpdate:modelValue": m[1] || (m[1] = (R) => y.value = R),
190
+ label: n.setting.desc,
191
191
  type: "custom",
192
192
  helpMessage: i.value,
193
193
  required: v.value
194
194
  }, {
195
- default: L(() => [
196
- w(n(it), {
197
- modelValue: u.value,
198
- "onUpdate:modelValue": y[0] || (y[0] = (M) => u.value = M),
199
- options: p.value,
195
+ default: M(() => [
196
+ w(o(yt), {
197
+ modelValue: y.value,
198
+ "onUpdate:modelValue": m[0] || (m[0] = (R) => y.value = R),
199
+ options: c.value,
200
200
  isView: e.isView,
201
201
  width: "100%",
202
- fieldNames: { label: n(c), children: n(g) },
203
- showFullPath: n(l),
204
- placeholder: o.setting.options.placeholder,
202
+ fieldNames: { label: o(p), children: o(g) },
203
+ showFullPath: o(u),
204
+ placeholder: n.setting.options.placeholder,
205
205
  clearable: ""
206
206
  }, null, 8, ["modelValue", "options", "isView", "fieldNames", "showFullPath", "placeholder"])
207
207
  ]),
@@ -211,13 +211,13 @@ const ht = dt.get("/getBindRelationByDefKey"), bt = ct.get("/getByAlias"), _t =
211
211
  [X, d.value]
212
212
  ]);
213
213
  }
214
- }), Pe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
214
+ }), Ye = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
215
215
  __proto__: null,
216
- default: qt
217
- }, Symbol.toStringTag, { value: "Module" })), Et = {
216
+ default: Ht
217
+ }, Symbol.toStringTag, { value: "Module" })), Zt = {
218
218
  name: "checkbox"
219
- }, zt = /* @__PURE__ */ j({
220
- ...Et,
219
+ }, Gt = /* @__PURE__ */ j({
220
+ ...Zt,
221
221
  props: {
222
222
  setting: { default: () => ({
223
223
  icon: "",
@@ -231,55 +231,55 @@ const ht = dt.get("/getBindRelationByDefKey"), bt = ct.get("/getByAlias"), _t =
231
231
  marginRight: {},
232
232
  store: {}
233
233
  },
234
- setup(a) {
235
- const e = a, { showData: t, setData: s, getData: m, setFormRule: f, deleteRule: b } = e.store || {}, d = r(!0);
236
- !t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), D(
234
+ setup(s) {
235
+ const e = s, { showData: t, setData: a, getData: l, setFormRule: f, deleteRule: h } = e.store || {}, d = r(!0);
236
+ !t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), S(
237
237
  () => t.value,
238
238
  () => {
239
- d.value = t.value[e.setting.name], d.value || (i.value = [], b(e.setting.name)), d.value && e.setting.options.validateList.length && f(e.setting.name, e.setting.options.validateList);
239
+ d.value = t.value[e.setting.name], d.value || (i.value = [], h(e.setting.name)), d.value && e.setting.options.validateList.length && f(e.setting.name, e.setting.options.validateList);
240
240
  },
241
241
  { deep: !0 }
242
242
  );
243
243
  const v = r(!1);
244
- C(e.setting.options.validateList).then((u) => {
245
- v.value = u;
244
+ Q(e.setting.options.validateList).then((y) => {
245
+ v.value = y;
246
246
  });
247
- const c = e.setting.options.customQuery.valueBind ? e.setting.options.customQuery.valueBind : "key", g = e.setting.options.customQuery.labelBind ? e.setting.options.customQuery.labelBind : "value", l = r([]);
248
- e.setting.options.customQuery.alias ? le(e.setting.options.customQuery.alias, e.setting.options.customQuery.conditionfield).then((u) => {
249
- l.value = u;
250
- }) : l.value = e.setting.options.options;
251
- const p = r();
252
- e.setting.options.tip && (p.value = E(e.setting.options.tip)());
247
+ const p = e.setting.options.customQuery.valueBind ? e.setting.options.customQuery.valueBind : "key", g = e.setting.options.customQuery.labelBind ? e.setting.options.customQuery.labelBind : "value", u = r([]);
248
+ e.setting.options.customQuery.alias ? ue(e.setting.options.customQuery.alias, e.setting.options.customQuery.conditionfield).then((y) => {
249
+ u.value = y;
250
+ }) : u.value = e.setting.options.options;
251
+ const c = r();
252
+ e.setting.options.tip && (c.value = A(e.setting.options.tip)());
253
253
  const i = r([]);
254
254
  return setTimeout(() => {
255
- m(e.setting.name) && (i.value = m(e.setting.name).split(",")), e.setting.options.formulasDiyJs && (i.value = e.setting.options.formulasDiyJs.split(",")), i.value.length || i.value || s(e.setting.name, null);
256
- }, 50), e.setting.options.validateList.length && f(e.setting.name, e.setting.options.validateList), D(i, (u) => {
257
- s(e.setting.name, u.toString());
258
- }), (u, o) => H((h(), R(n(N), {
255
+ l(e.setting.name) && (i.value = l(e.setting.name).split(",")), e.setting.options.formulasDiyJs && (i.value = e.setting.options.formulasDiyJs.split(",")), i.value.length || i.value || a(e.setting.name, null);
256
+ }, 50), e.setting.options.validateList.length && f(e.setting.name, e.setting.options.validateList), S(i, (y) => {
257
+ a(e.setting.name, y.toString());
258
+ }), (y, n) => H((b(), $(o(N), {
259
259
  col: e.span,
260
260
  modelValue: i.value,
261
- "onUpdate:modelValue": o[0] || (o[0] = (y) => i.value = y),
262
- layout: u.setting.options.inline ? "vertical" : "default",
263
- label: u.setting.desc,
261
+ "onUpdate:modelValue": n[0] || (n[0] = (m) => i.value = m),
262
+ layout: y.setting.options.inline ? "vertical" : "default",
263
+ label: y.setting.desc,
264
264
  prop: e.setting.name,
265
265
  type: "checkbox",
266
- options: l.value,
266
+ options: u.value,
267
267
  isView: e.isView,
268
- optionsValueKey: n(c),
269
- optionsLabelKey: n(g),
270
- helpMessage: p.value,
268
+ optionsValueKey: o(p),
269
+ optionsLabelKey: o(g),
270
+ helpMessage: c.value,
271
271
  required: v.value
272
272
  }, null, 8, ["col", "modelValue", "layout", "label", "prop", "options", "isView", "optionsValueKey", "optionsLabelKey", "helpMessage", "required"])), [
273
273
  [X, d.value]
274
274
  ]);
275
275
  }
276
- }), Ne = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
276
+ }), Je = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
277
277
  __proto__: null,
278
- default: zt
279
- }, Symbol.toStringTag, { value: "Module" })), At = {
278
+ default: Gt
279
+ }, Symbol.toStringTag, { value: "Module" })), Xt = {
280
280
  name: "date"
281
- }, Ut = /* @__PURE__ */ j({
282
- ...At,
281
+ }, ea = /* @__PURE__ */ j({
282
+ ...Xt,
283
283
  props: {
284
284
  setting: { default: () => ({
285
285
  icon: "",
@@ -293,57 +293,57 @@ const ht = dt.get("/getBindRelationByDefKey"), bt = ct.get("/getByAlias"), _t =
293
293
  marginRight: {},
294
294
  store: {}
295
295
  },
296
- setup(a) {
297
- const e = a, { showData: t, setData: s, getData: m, setFormRule: f, deleteRule: b } = e.store || {}, d = r(!0);
298
- !t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), D(
296
+ setup(s) {
297
+ const e = s, { showData: t, setData: a, getData: l, setFormRule: f, deleteRule: h } = e.store || {}, d = r(!0);
298
+ !t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), S(
299
299
  () => t.value,
300
300
  () => {
301
- d.value = t.value[e.setting.name], d.value || (p.value = null, b(e.setting.name)), d.value && e.setting.options.validateList.length && f(e.setting.name, e.setting.options.validateList);
301
+ d.value = t.value[e.setting.name], d.value || (c.value = null, h(e.setting.name)), d.value && e.setting.options.validateList.length && f(e.setting.name, e.setting.options.validateList);
302
302
  },
303
303
  { deep: !0 }
304
304
  );
305
305
  const v = r(!1);
306
- C(e.setting.options.validateList).then((i) => {
306
+ Q(e.setting.options.validateList).then((i) => {
307
307
  v.value = i;
308
308
  });
309
- const c = e.setting.options.inputFormat, g = r("");
309
+ const p = e.setting.options.inputFormat, g = r("");
310
310
  e.setting.options.inputFormat === "YYYY/MM/DD" && (g.value = "date"), e.setting.options.inputFormat === "MM/DD" && (g.value = "date"), e.setting.options.inputFormat === "YYYY/MM" && (g.value = "month"), e.setting.options.inputFormat === "YYYY" && (g.value = "year");
311
- const l = r();
312
- e.setting.options.tip && (l.value = E(e.setting.options.tip));
313
- const p = r();
311
+ const u = r();
312
+ e.setting.options.tip && (u.value = A(e.setting.options.tip));
313
+ const c = r();
314
314
  if (setTimeout(() => {
315
- p.value = m(e.setting.name) || e.setting.options.formulasDiyJs || p.value, p.value || s(e.setting.name, null);
315
+ c.value = l(e.setting.name) || e.setting.options.formulasDiyJs || c.value, c.value || a(e.setting.name, null);
316
316
  }, 50), e.setting.options.showCurrentDate) {
317
317
  let i = /* @__PURE__ */ new Date();
318
- i.setDate(i.getDate() + e.setting.options.day), p.value = pe(i.getTime()).format(c), s(e.setting.name, p.value);
318
+ i.setDate(i.getDate() + e.setting.options.day), c.value = ge(i.getTime()).format(p), a(e.setting.name, c.value);
319
319
  }
320
- return e.setting.options.validateList.length && f(e.setting.name, e.setting.options.validateList), D(p, (i) => {
321
- s(e.setting.name, i);
322
- }), (i, u) => H((h(), R(n(N), {
320
+ return e.setting.options.validateList.length && f(e.setting.name, e.setting.options.validateList), S(c, (i) => {
321
+ a(e.setting.name, i);
322
+ }), (i, y) => H((b(), $(o(N), {
323
323
  col: e.span,
324
- modelValue: p.value,
325
- "onUpdate:modelValue": u[0] || (u[0] = (o) => p.value = o),
324
+ modelValue: c.value,
325
+ "onUpdate:modelValue": y[0] || (y[0] = (n) => c.value = n),
326
326
  label: i.setting.desc,
327
327
  prop: e.setting.name,
328
- type: n(c).indexOf("HH") != -1 ? "dateTime" : "date",
329
- format: n(c),
328
+ type: o(p).indexOf("HH") != -1 ? "dateTime" : "date",
329
+ format: o(p),
330
330
  valueFormat: "YYYY/MM/DD HH:mm:ss",
331
331
  picker: g.value,
332
332
  isView: e.isView,
333
333
  placeholder: i.setting.options.placeholder,
334
- helpMessage: l.value,
334
+ helpMessage: u.value,
335
335
  required: v.value
336
336
  }, null, 8, ["col", "modelValue", "label", "prop", "type", "format", "picker", "isView", "placeholder", "helpMessage", "required"])), [
337
337
  [X, d.value]
338
338
  ]);
339
339
  }
340
- }), Ke = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
340
+ }), We = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
341
341
  __proto__: null,
342
- default: Ut
343
- }, Symbol.toStringTag, { value: "Module" })), Ct = {
342
+ default: ea
343
+ }, Symbol.toStringTag, { value: "Module" })), ta = {
344
344
  name: "dropdown"
345
- }, Qt = /* @__PURE__ */ j({
346
- ...Ct,
345
+ }, aa = /* @__PURE__ */ j({
346
+ ...ta,
347
347
  props: {
348
348
  setting: { default: () => ({
349
349
  icon: "",
@@ -357,59 +357,59 @@ const ht = dt.get("/getBindRelationByDefKey"), bt = ct.get("/getByAlias"), _t =
357
357
  marginRight: {},
358
358
  store: {}
359
359
  },
360
- setup(a) {
361
- const e = a, { showData: t, setData: s, getData: m, setFormRule: f, deleteRule: b } = e.store || {}, d = r(!0);
362
- !t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), D(
360
+ setup(s) {
361
+ const e = s, { showData: t, setData: a, getData: l, setFormRule: f, deleteRule: h } = e.store || {}, d = r(!0);
362
+ !t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), S(
363
363
  () => t.value,
364
364
  () => {
365
- d.value = t.value[e.setting.name], d.value || (o.value = e.setting.options.multiple ? [] : "", b(e.setting.name)), d.value && e.setting.options.validateList.length && f(e.setting.name, e.setting.options.validateList);
365
+ d.value = t.value[e.setting.name], d.value || (n.value = e.setting.options.multiple ? [] : "", h(e.setting.name)), d.value && e.setting.options.validateList.length && f(e.setting.name, e.setting.options.validateList);
366
366
  },
367
367
  { deep: !0 }
368
368
  );
369
369
  const v = r(!1);
370
- C(e.setting.options.validateList).then((y) => {
371
- v.value = y;
370
+ Q(e.setting.options.validateList).then((m) => {
371
+ v.value = m;
372
372
  });
373
- const c = r(""), g = e.setting.options.customQuery.valueBind ? e.setting.options.customQuery.valueBind : "key", l = e.setting.options.customQuery.labelBind ? e.setting.options.customQuery.labelBind : "value", p = e.setting.options.customQuery.PId || "children", i = r([]);
374
- e.setting.options.customQuery.alias && le(e.setting.options.customQuery.alias, e.setting.options.customQuery.conditionfield).then((y) => {
375
- i.value = y;
373
+ const p = r(""), g = e.setting.options.customQuery.valueBind ? e.setting.options.customQuery.valueBind : "key", u = e.setting.options.customQuery.labelBind ? e.setting.options.customQuery.labelBind : "value", c = e.setting.options.customQuery.PId || "children", i = r([]);
374
+ e.setting.options.customQuery.alias && ue(e.setting.options.customQuery.alias, e.setting.options.customQuery.conditionfield).then((m) => {
375
+ i.value = m;
376
376
  });
377
- const u = r();
378
- e.setting.options.tip && (u.value = E(e.setting.options.tip));
379
- const o = r();
380
- return o.value = e.setting.options.multiple ? [] : "", e.setting.options.multiple && m(e.setting.name) ? o.value = m(e.setting.name).split(",") : o.value = m(e.setting.name) || o.value, o.value || s(e.setting.name, null), e.setting.options.validateList.length && f(e.setting.name, e.setting.options.validateList), D(o, (y) => {
381
- s(e.setting.name, y.toString());
382
- }), (y, M) => H((h(), R(n(N), {
377
+ const y = r();
378
+ e.setting.options.tip && (y.value = A(e.setting.options.tip));
379
+ const n = r();
380
+ return n.value = e.setting.options.multiple ? [] : "", e.setting.options.multiple && l(e.setting.name) ? n.value = l(e.setting.name).split(",") : n.value = l(e.setting.name) || n.value, n.value || a(e.setting.name, null), e.setting.options.validateList.length && f(e.setting.name, e.setting.options.validateList), S(n, (m) => {
381
+ a(e.setting.name, m.toString());
382
+ }), (m, R) => H((b(), $(o(N), {
383
383
  col: e.span,
384
- modelValue: o.value,
385
- "onUpdate:modelValue": M[0] || (M[0] = ($) => o.value = $),
386
- keyword: c.value,
387
- "onUpdate:keyword": M[1] || (M[1] = ($) => c.value = $),
388
- label: y.setting.desc,
384
+ modelValue: n.value,
385
+ "onUpdate:modelValue": R[0] || (R[0] = (D) => n.value = D),
386
+ keyword: p.value,
387
+ "onUpdate:keyword": R[1] || (R[1] = (D) => p.value = D),
388
+ label: m.setting.desc,
389
389
  type: "treeSelect",
390
- "node-key": y.setting.options.customQuery.valueBind,
391
- placeholder: y.setting.options.placeholder,
392
- mode: y.setting.options.multiple ? "multiple" : "",
390
+ "node-key": m.setting.options.customQuery.valueBind,
391
+ placeholder: m.setting.options.placeholder,
392
+ mode: m.setting.options.multiple ? "multiple" : "",
393
393
  prop: e.setting.name,
394
- filter: y.setting.options.filterable,
394
+ filter: m.setting.options.filterable,
395
395
  selectAttrs: { allowClear: !0 },
396
396
  options: i.value,
397
397
  isView: e.isView,
398
- helpMessage: u.value,
399
- props: { label: n(l), value: n(g), children: n(p) },
400
- "check-strictly": !y.setting.options.cascade,
398
+ helpMessage: y.value,
399
+ props: { label: o(u), value: o(g), children: o(c) },
400
+ "check-strictly": !m.setting.options.cascade,
401
401
  required: v.value
402
402
  }, null, 8, ["col", "modelValue", "keyword", "label", "node-key", "placeholder", "mode", "prop", "filter", "options", "isView", "helpMessage", "props", "check-strictly", "required"])), [
403
403
  [X, d.value]
404
404
  ]);
405
405
  }
406
- }), qe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
406
+ }), He = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
407
407
  __proto__: null,
408
- default: Qt
409
- }, Symbol.toStringTag, { value: "Module" })), xt = { class: "form-image" }, Yt = {
408
+ default: aa
409
+ }, Symbol.toStringTag, { value: "Module" })), sa = { class: "form-image" }, na = {
410
410
  name: "imageViewer"
411
- }, Jt = /* @__PURE__ */ j({
412
- ...Yt,
411
+ }, oa = /* @__PURE__ */ j({
412
+ ...na,
413
413
  props: {
414
414
  setting: { default: () => ({
415
415
  icon: "",
@@ -423,41 +423,41 @@ const ht = dt.get("/getBindRelationByDefKey"), bt = ct.get("/getByAlias"), _t =
423
423
  marginRight: {},
424
424
  store: {}
425
425
  },
426
- setup(a) {
427
- const e = a, { showData: t, setData: s, getData: m, setFormRule: f, deleteRule: b } = e.store || {}, d = r(!0);
428
- !t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), D(
426
+ setup(s) {
427
+ const e = s, { showData: t, setData: a, getData: l, setFormRule: f, deleteRule: h } = e.store || {}, d = r(!0);
428
+ !t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), S(
429
429
  () => t.value,
430
430
  () => {
431
- d.value = t.value[e.setting.name], d.value || (l.value = e.setting.options.file.limit > 1 ? [] : "", b(e.setting.name)), d.value && e.setting.options.validateList.length && f(e.setting.name, e.setting.options.validateList);
431
+ d.value = t.value[e.setting.name], d.value || (u.value = e.setting.options.file.limit > 1 ? [] : "", h(e.setting.name)), d.value && e.setting.options.validateList.length && f(e.setting.name, e.setting.options.validateList);
432
432
  },
433
433
  { deep: !0 }
434
434
  );
435
435
  const v = r(!1);
436
- C(e.setting.options.validateList).then((i) => {
436
+ Q(e.setting.options.validateList).then((i) => {
437
437
  v.value = i;
438
438
  });
439
- const c = r("normal");
440
- e.isView && (c.value = "info");
439
+ const p = r("normal");
440
+ e.isView && (p.value = "info");
441
441
  const g = r();
442
- e.setting.options.tip && (g.value = E(e.setting.options.tip));
443
- const l = r();
444
- l.value = e.setting.options.file.limit > 1 ? [] : "", e.setting.options.file.limit > 1 && m(e.setting.name) ? l.value = m(e.setting.name).split(",") : l.value = m(e.setting.name) || l.value, l.value || s(e.setting.name, null);
445
- const p = (i) => {
442
+ e.setting.options.tip && (g.value = A(e.setting.options.tip));
443
+ const u = r();
444
+ u.value = e.setting.options.file.limit > 1 ? [] : "", e.setting.options.file.limit > 1 && l(e.setting.name) ? u.value = l(e.setting.name).split(",") : u.value = l(e.setting.name) || u.value, u.value || a(e.setting.name, null);
445
+ const c = (i) => {
446
446
  setTimeout(() => {
447
- s(e.setting.name, l.value.toString());
447
+ a(e.setting.name, u.value.toString());
448
448
  }, 100);
449
449
  };
450
- return e.setting.options.validateList.length && f(e.setting.name, e.setting.options.validateList), D(l.value, (i) => {
451
- const u = i.map((o) => {
452
- let y = "";
453
- return o.indexOf("/oss/") != -1 ? y = o : y = `/oss/${o}`, y;
450
+ return e.setting.options.validateList.length && f(e.setting.name, e.setting.options.validateList), S(u.value, (i) => {
451
+ const y = i.map((n) => {
452
+ let m = "";
453
+ return n.indexOf("/oss/") != -1 ? m = n : m = `/oss/${n}`, m;
454
454
  });
455
455
  setTimeout(() => {
456
- s(e.setting.name, u.join(","));
456
+ a(e.setting.name, y.join(","));
457
457
  }, 100);
458
- }), (i, u) => H((h(), R(n(N), {
459
- modelValue: l.value,
460
- "onUpdate:modelValue": u[2] || (u[2] = (o) => l.value = o),
458
+ }), (i, y) => H((b(), $(o(N), {
459
+ modelValue: u.value,
460
+ "onUpdate:modelValue": y[2] || (y[2] = (n) => u.value = n),
461
461
  "margin-bottom": "0",
462
462
  prop: e.setting.name,
463
463
  label: i.setting.desc,
@@ -465,13 +465,13 @@ const ht = dt.get("/getBindRelationByDefKey"), bt = ct.get("/getByAlias"), _t =
465
465
  helpMessage: g.value,
466
466
  required: v.value
467
467
  }, {
468
- default: L(() => [
469
- Te("div", xt, [
470
- w(n(Re), {
471
- modelValue: l.value,
472
- "onUpdate:modelValue": u[0] || (u[0] = (o) => l.value = o),
473
- status: c.value,
474
- "onUpdate:status": u[1] || (u[1] = (o) => c.value = o),
468
+ default: M(() => [
469
+ Oe("div", sa, [
470
+ w(o(Pe), {
471
+ modelValue: u.value,
472
+ "onUpdate:modelValue": y[0] || (y[0] = (n) => u.value = n),
473
+ status: p.value,
474
+ "onUpdate:status": y[1] || (y[1] = (n) => p.value = n),
475
475
  maxSize: "6",
476
476
  "limit-num": i.setting.options.file.limit,
477
477
  prop: e.setting.name,
@@ -483,7 +483,7 @@ const ht = dt.get("/getBindRelationByDefKey"), bt = ct.get("/getByAlias"), _t =
483
483
  "show-image-name": "",
484
484
  needDownloadBtn: i.setting.options.file.allowDownload == !0,
485
485
  needPreview: i.setting.options.file.allowPreview == !0,
486
- onImageUpload: p,
486
+ onImageUpload: c,
487
487
  required: v.value
488
488
  }, null, 8, ["modelValue", "status", "limit-num", "prop", "needDownloadBtn", "needPreview", "required"])
489
489
  ])
@@ -494,21 +494,21 @@ const ht = dt.get("/getBindRelationByDefKey"), bt = ct.get("/getByAlias"), _t =
494
494
  [X, d.value]
495
495
  ]);
496
496
  }
497
- }), de = (a, e) => {
498
- const t = a.__vccOpts || a;
499
- for (const [s, m] of e)
500
- t[s] = m;
497
+ }), ce = (s, e) => {
498
+ const t = s.__vccOpts || s;
499
+ for (const [a, l] of e)
500
+ t[a] = l;
501
501
  return t;
502
- }, Wt = /* @__PURE__ */ de(Jt, [["__scopeId", "data-v-e6f9c5ec"]]), Ee = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
502
+ }, ia = /* @__PURE__ */ ce(oa, [["__scopeId", "data-v-e6f9c5ec"]]), Ze = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
503
503
  __proto__: null,
504
- default: Wt
505
- }, Symbol.toStringTag, { value: "Module" })), Ht = (a) => {
506
- const t = "****", s = String(a), m = s.slice(0, 15), f = s.slice(15);
504
+ default: ia
505
+ }, Symbol.toStringTag, { value: "Module" })), la = (s) => {
506
+ const t = "****", a = String(s), l = a.slice(0, 15), f = a.slice(15);
507
507
  return ((v) => {
508
- const c = v.length;
509
- if (c < 6) return v;
508
+ const p = v.length;
509
+ if (p < 6) return v;
510
510
  let g = 0;
511
- switch (c) {
511
+ switch (p) {
512
512
  case 6:
513
513
  case 7:
514
514
  g = 1;
@@ -534,25 +534,25 @@ const ht = dt.get("/getBindRelationByDefKey"), bt = ct.get("/getByAlias"), _t =
534
534
  g = 7;
535
535
  break;
536
536
  }
537
- const l = g + t.length;
538
- return v.slice(0, g) + t + v.slice(l);
539
- })(m) + f;
540
- }, Zt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
537
+ const u = g + t.length;
538
+ return v.slice(0, g) + t + v.slice(u);
539
+ })(l) + f;
540
+ }, ua = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
541
541
  __proto__: null,
542
- default: Ht
543
- }, Symbol.toStringTag, { value: "Module" })), re = {}, Gt = /^\.\/(.+)\/index\.ts$/, Le = /* @__PURE__ */ Object.assign({ "./phone/index.ts": Zt });
544
- var Me;
545
- for (const a in Le) {
546
- const e = Le[a], t = (Me = a.match(Gt)) == null ? void 0 : Me[1];
547
- re[t] = e.default;
542
+ default: la
543
+ }, Symbol.toStringTag, { value: "Module" })), pe = {}, ra = /^\.\/(.+)\/index\.ts$/, Ke = /* @__PURE__ */ Object.assign({ "./phone/index.ts": ua });
544
+ var Ne;
545
+ for (const s in Ke) {
546
+ const e = Ke[s], t = (Ne = s.match(ra)) == null ? void 0 : Ne[1];
547
+ pe[t] = e.default;
548
548
  }
549
- const Xt = (a, e) => {
550
- var s;
551
- return e ? ((s = re[a]) == null ? void 0 : s.call(re, e)) ?? e : "-";
552
- }, es = {
549
+ const pa = (s, e) => {
550
+ var a;
551
+ return e ? ((a = pe[s]) == null ? void 0 : a.call(pe, e)) ?? e : "-";
552
+ }, ga = {
553
553
  name: "input"
554
- }, ts = /* @__PURE__ */ j({
555
- ...es,
554
+ }, da = /* @__PURE__ */ j({
555
+ ...ga,
556
556
  props: {
557
557
  setting: { default: () => ({
558
558
  icon: "",
@@ -566,62 +566,62 @@ const Xt = (a, e) => {
566
566
  marginRight: {},
567
567
  store: {}
568
568
  },
569
- setup(a) {
570
- const e = a, { showData: t, setData: s, getData: m, setFormRule: f, deleteRule: b } = e.store || {}, d = r(""), v = r(!0);
571
- !t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), D(
569
+ setup(s) {
570
+ const e = s, { showData: t, setData: a, getData: l, setFormRule: f, deleteRule: h } = e.store || {}, d = r(""), v = r(!0);
571
+ !t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), S(
572
572
  () => t.value,
573
573
  () => {
574
- v.value = t.value[e.setting.name], v.value || (l.value = "", b(e.setting.name)), v.value && e.setting.options.validateList.length && f(e.setting.name, e.setting.options.validateList);
574
+ v.value = t.value[e.setting.name], v.value || (u.value = "", h(e.setting.name)), v.value && e.setting.options.validateList.length && f(e.setting.name, e.setting.options.validateList);
575
575
  },
576
576
  { deep: !0 }
577
577
  );
578
- const c = r(!1);
579
- C(e.setting.options.validateList).then((p) => {
580
- c.value = p;
578
+ const p = r(!1);
579
+ Q(e.setting.options.validateList).then((c) => {
580
+ p.value = c;
581
581
  });
582
582
  const g = r();
583
- e.setting.options.tip && (g.value = E(e.setting.options.tip));
584
- const l = r("");
583
+ e.setting.options.tip && (g.value = A(e.setting.options.tip));
584
+ const u = r("");
585
585
  return setTimeout(() => {
586
- l.value = m(e.setting.name) || e.setting.options.formulasDiyJs || l.value, e.setting.options.encryption && e.isView && (d.value = Xt("phone", l.value)), l.value || s(e.setting.name, null);
587
- }, 50), e.setting.options.validateList.length && f(e.setting.name, e.setting.options.validateList), D(l, (p) => {
588
- e.setting.options.dataType === "number" && !isNaN(p) ? s(e.setting.name, Number(p)) : s(e.setting.name, p);
589
- }), (p, i) => H((h(), R(n(N), {
586
+ u.value = l(e.setting.name) || e.setting.options.formulasDiyJs || u.value, e.setting.options.encryption && e.isView && (d.value = pa("phone", u.value)), u.value || a(e.setting.name, null);
587
+ }, 50), e.setting.options.validateList.length && f(e.setting.name, e.setting.options.validateList), S(u, (c) => {
588
+ e.setting.options.dataType === "number" && !isNaN(c) ? a(e.setting.name, Number(c)) : a(e.setting.name, c);
589
+ }), (c, i) => H((b(), $(o(N), {
590
590
  col: 6,
591
591
  prop: e.setting.name,
592
- modelValue: l.value,
593
- "onUpdate:modelValue": i[2] || (i[2] = (u) => l.value = u),
594
- label: p.setting.desc,
592
+ modelValue: u.value,
593
+ "onUpdate:modelValue": i[2] || (i[2] = (y) => u.value = y),
594
+ label: c.setting.desc,
595
595
  type: "custom",
596
596
  helpMessage: g.value,
597
- required: c.value
597
+ required: p.value
598
598
  }, {
599
- default: L(() => [
600
- e.setting.options.encryption && e.isView ? (h(), R(n($e), {
599
+ default: M(() => [
600
+ e.setting.options.encryption && e.isView ? (b(), $(o(Ee), {
601
601
  key: 0,
602
602
  placement: "top",
603
- disabled: !l.value,
604
- content: l.value
603
+ disabled: !u.value,
604
+ content: u.value
605
605
  }, {
606
- default: L(() => [
607
- w(n(Se), {
606
+ default: M(() => [
607
+ w(o(Be), {
608
608
  modelValue: d.value,
609
- "onUpdate:modelValue": i[0] || (i[0] = (u) => d.value = u),
610
- width: p.setting.options.width,
611
- disabled: p.setting.options.isInputEdit,
612
- isView: p.setting.options.isReadonly || e.isView,
613
- placeholder: p.setting.options.placeholder
609
+ "onUpdate:modelValue": i[0] || (i[0] = (y) => d.value = y),
610
+ width: c.setting.options.width,
611
+ disabled: c.setting.options.isInputEdit,
612
+ isView: c.setting.options.isReadonly || e.isView,
613
+ placeholder: c.setting.options.placeholder
614
614
  }, {
615
- prepend: L(() => [
615
+ prepend: M(() => [
616
616
  J(
617
- W(p.setting.options.bindPreAndSufFixjson.preFix),
617
+ W(c.setting.options.bindPreAndSufFixjson.preFix),
618
618
  1
619
619
  /* TEXT */
620
620
  )
621
621
  ]),
622
- append: L(() => [
622
+ append: M(() => [
623
623
  J(
624
- W(p.setting.options.bindPreAndSufFixjson.sufSix),
624
+ W(c.setting.options.bindPreAndSufFixjson.sufSix),
625
625
  1
626
626
  /* TEXT */
627
627
  )
@@ -632,25 +632,25 @@ const Xt = (a, e) => {
632
632
  ]),
633
633
  _: 1
634
634
  /* STABLE */
635
- }, 8, ["disabled", "content"])) : (h(), R(n(Se), {
635
+ }, 8, ["disabled", "content"])) : (b(), $(o(Be), {
636
636
  key: 1,
637
- modelValue: l.value,
638
- "onUpdate:modelValue": i[1] || (i[1] = (u) => l.value = u),
639
- width: p.setting.options.width,
640
- disabled: p.setting.options.isInputEdit,
641
- isView: p.setting.options.isReadonly || e.isView,
642
- placeholder: p.setting.options.placeholder
637
+ modelValue: u.value,
638
+ "onUpdate:modelValue": i[1] || (i[1] = (y) => u.value = y),
639
+ width: c.setting.options.width,
640
+ disabled: c.setting.options.isInputEdit,
641
+ isView: c.setting.options.isReadonly || e.isView,
642
+ placeholder: c.setting.options.placeholder
643
643
  }, {
644
- prepend: L(() => [
644
+ prepend: M(() => [
645
645
  J(
646
- W(p.setting.options.bindPreAndSufFixjson.preFix),
646
+ W(c.setting.options.bindPreAndSufFixjson.preFix),
647
647
  1
648
648
  /* TEXT */
649
649
  )
650
650
  ]),
651
- append: L(() => [
651
+ append: M(() => [
652
652
  J(
653
- W(p.setting.options.bindPreAndSufFixjson.sufSix),
653
+ W(c.setting.options.bindPreAndSufFixjson.sufSix),
654
654
  1
655
655
  /* TEXT */
656
656
  )
@@ -665,13 +665,13 @@ const Xt = (a, e) => {
665
665
  [X, v.value]
666
666
  ]);
667
667
  }
668
- }), ze = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
668
+ }), Ge = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
669
669
  __proto__: null,
670
- default: ts
671
- }, Symbol.toStringTag, { value: "Module" })), ss = {
670
+ default: da
671
+ }, Symbol.toStringTag, { value: "Module" })), ca = {
672
672
  name: "number"
673
- }, as = /* @__PURE__ */ j({
674
- ...ss,
673
+ }, va = /* @__PURE__ */ j({
674
+ ...ca,
675
675
  props: {
676
676
  setting: { default: () => ({
677
677
  icon: "",
@@ -685,52 +685,52 @@ const Xt = (a, e) => {
685
685
  marginRight: {},
686
686
  store: {}
687
687
  },
688
- setup(a) {
689
- const e = a, { showData: t, setData: s, getData: m, setFormRule: f, deleteRule: b } = e.store || {}, d = r(!0);
690
- !t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), D(
688
+ setup(s) {
689
+ const e = s, { showData: t, setData: a, getData: l, setFormRule: f, deleteRule: h } = e.store || {}, d = r(!0);
690
+ !t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), S(
691
691
  () => t.value,
692
692
  () => {
693
- d.value = t.value[e.setting.name], d.value || (g.value = 0, b(e.setting.name)), d.value && e.setting.options.validateList.length && f(e.setting.name, e.setting.options.validateList);
693
+ d.value = t.value[e.setting.name], d.value || (g.value = 0, h(e.setting.name)), d.value && e.setting.options.validateList.length && f(e.setting.name, e.setting.options.validateList);
694
694
  },
695
695
  { deep: !0 }
696
696
  );
697
697
  const v = r(!1);
698
- C(e.setting.options.validateList).then((l) => {
699
- v.value = l;
698
+ Q(e.setting.options.validateList).then((u) => {
699
+ v.value = u;
700
700
  });
701
- const c = r();
702
- e.setting.options.tip && (c.value = E(e.setting.options.tip));
701
+ const p = r();
702
+ e.setting.options.tip && (p.value = A(e.setting.options.tip));
703
703
  const g = r(0);
704
704
  return setTimeout(() => {
705
- g.value = m(e.setting.name) || e.setting.options.formulasDiyJs || g.value, g.value || s(e.setting.name, null);
706
- }, 50), e.setting.options.validateList.length && f(e.setting.name, e.setting.options.validateList), D(g, (l) => {
707
- s(e.setting.name, l);
708
- }), (l, p) => H((h(), R(n(N), {
705
+ g.value = l(e.setting.name) || e.setting.options.formulasDiyJs || g.value, g.value || a(e.setting.name, null);
706
+ }, 50), e.setting.options.validateList.length && f(e.setting.name, e.setting.options.validateList), S(g, (u) => {
707
+ a(e.setting.name, u);
708
+ }), (u, c) => H((b(), $(o(N), {
709
709
  col: e.span,
710
710
  modelValue: g.value,
711
- "onUpdate:modelValue": p[0] || (p[0] = (i) => g.value = i),
711
+ "onUpdate:modelValue": c[0] || (c[0] = (i) => g.value = i),
712
712
  style: { width: "100%" },
713
- label: l.setting.desc,
713
+ label: u.setting.desc,
714
714
  type: "inputNumber",
715
715
  prop: e.setting.name,
716
- max: l.setting.options.max,
717
- min: l.setting.options.min,
718
- step: l.setting.options.step,
716
+ max: u.setting.options.max,
717
+ min: u.setting.options.min,
718
+ step: u.setting.options.step,
719
719
  isView: e.isView,
720
- precision: l.setting.options.decimalDigits,
721
- helpMessage: c.value,
720
+ precision: u.setting.options.decimalDigits,
721
+ helpMessage: p.value,
722
722
  required: v.value
723
723
  }, null, 8, ["col", "modelValue", "label", "prop", "max", "min", "step", "isView", "precision", "helpMessage", "required"])), [
724
724
  [X, d.value]
725
725
  ]);
726
726
  }
727
- }), Ae = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
727
+ }), Xe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
728
728
  __proto__: null,
729
- default: as
730
- }, Symbol.toStringTag, { value: "Module" })), ns = {
729
+ default: va
730
+ }, Symbol.toStringTag, { value: "Module" })), ma = {
731
731
  name: "radio"
732
- }, os = /* @__PURE__ */ j({
733
- ...ns,
732
+ }, fa = /* @__PURE__ */ j({
733
+ ...ma,
734
734
  props: {
735
735
  setting: { default: () => ({
736
736
  icon: "",
@@ -746,66 +746,66 @@ const Xt = (a, e) => {
746
746
  marginRight: {},
747
747
  store: {}
748
748
  },
749
- setup(a) {
750
- const e = a, { showData: t, setData: s, getData: m, setFormRule: f, deleteRule: b } = e.store || {}, d = r(!0);
751
- !t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), D(
749
+ setup(s) {
750
+ const e = s, { showData: t, setData: a, getData: l, setFormRule: f, deleteRule: h } = e.store || {}, d = r(!0);
751
+ !t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), S(
752
752
  () => t.value,
753
753
  () => {
754
- d.value = t.value[e.setting.name], d.value || (i.value = null, b(e.setting.name)), d.value && e.setting.options.validateList.length && f(e.setting.name, e.setting.options.validateList);
754
+ d.value = t.value[e.setting.name], d.value || (i.value = null, h(e.setting.name)), d.value && e.setting.options.validateList.length && f(e.setting.name, e.setting.options.validateList);
755
755
  },
756
756
  { deep: !0 }
757
757
  );
758
758
  const v = r(!1);
759
- C(e.setting.options.validateList).then((o) => {
760
- v.value = o;
759
+ Q(e.setting.options.validateList).then((n) => {
760
+ v.value = n;
761
761
  });
762
- const c = e.setting.options.customQuery.valueBind ? e.setting.options.customQuery.valueBind : "key", g = e.setting.options.customQuery.labelBind ? e.setting.options.customQuery.labelBind : "value", l = r([]);
763
- e.setting.options.customQuery.alias ? le(e.setting.options.customQuery.alias, e.setting.options.customQuery.conditionfield).then((o) => {
764
- l.value = o;
765
- }) : l.value = e.setting.options.options;
766
- const p = r();
767
- e.setting.options.tip && (p.value = E(e.setting.options.tip));
762
+ const p = e.setting.options.customQuery.valueBind ? e.setting.options.customQuery.valueBind : "key", g = e.setting.options.customQuery.labelBind ? e.setting.options.customQuery.labelBind : "value", u = r([]);
763
+ e.setting.options.customQuery.alias ? ue(e.setting.options.customQuery.alias, e.setting.options.customQuery.conditionfield).then((n) => {
764
+ u.value = n;
765
+ }) : u.value = e.setting.options.options;
766
+ const c = r();
767
+ e.setting.options.tip && (c.value = A(e.setting.options.tip));
768
768
  const i = r(null);
769
769
  setTimeout(() => {
770
- i.value = m(e.setting.name) || e.setting.options.formulasDiyJs || i.value, i.value || s(e.setting.name, null);
771
- }, 50), e.setting.options.validateList.length && f(e.setting.name, e.setting.options.validateList), D(i, (o) => {
772
- s(e.setting.name, o);
770
+ i.value = l(e.setting.name) || e.setting.options.formulasDiyJs || i.value, i.value || a(e.setting.name, null);
771
+ }, 50), e.setting.options.validateList.length && f(e.setting.name, e.setting.options.validateList), S(i, (n) => {
772
+ a(e.setting.name, n);
773
773
  });
774
- const u = (o) => {
775
- e.setting.options.linkage.length && e.setting.options.linkage.forEach((y) => {
776
- if (y.value === o) {
777
- const $ = y.effect[0].target.split(".")[2];
778
- t.value[$] = y.effect[0].type === "w";
774
+ const y = (n) => {
775
+ e.setting.options.linkage.length && e.setting.options.linkage.forEach((m) => {
776
+ if (m.value === n) {
777
+ const D = m.effect[0].target.split(".")[2];
778
+ t.value[D] = m.effect[0].type === "w";
779
779
  }
780
780
  });
781
781
  };
782
- return (o, y) => H((h(), R(n(N), {
783
- onChange: u,
782
+ return (n, m) => H((b(), $(o(N), {
783
+ onChange: y,
784
784
  col: e.span,
785
785
  modelValue: i.value,
786
- "onUpdate:modelValue": y[0] || (y[0] = (M) => i.value = M),
787
- layout: o.setting.options.inline ? "vertical" : "default",
788
- label: o.setting.desc,
786
+ "onUpdate:modelValue": m[0] || (m[0] = (R) => i.value = R),
787
+ layout: n.setting.options.inline ? "vertical" : "default",
788
+ label: n.setting.desc,
789
789
  type: "radio",
790
790
  prop: e.setting.name,
791
- options: l.value,
791
+ options: u.value,
792
792
  isView: e.isView,
793
- optionsValueKey: n(c),
794
- optionsLabelKey: n(g),
795
- helpMessage: p.value,
793
+ optionsValueKey: o(p),
794
+ optionsLabelKey: o(g),
795
+ helpMessage: c.value,
796
796
  required: v.value,
797
797
  isSetTimeout: !0
798
798
  }, null, 8, ["col", "modelValue", "layout", "label", "prop", "options", "isView", "optionsValueKey", "optionsLabelKey", "helpMessage", "required"])), [
799
799
  [X, d.value]
800
800
  ]);
801
801
  }
802
- }), Ue = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
802
+ }), et = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
803
803
  __proto__: null,
804
- default: os
805
- }, Symbol.toStringTag, { value: "Module" })), is = {
804
+ default: fa
805
+ }, Symbol.toStringTag, { value: "Module" })), ya = {
806
806
  name: "select"
807
- }, ls = /* @__PURE__ */ j({
808
- ...is,
807
+ }, ha = /* @__PURE__ */ j({
808
+ ...ya,
809
809
  props: {
810
810
  setting: { default: () => ({
811
811
  icon: "",
@@ -819,67 +819,67 @@ const Xt = (a, e) => {
819
819
  marginRight: {},
820
820
  store: {}
821
821
  },
822
- setup(a) {
823
- const e = a, { showData: t, setData: s, getData: m, setFormRule: f, deleteRule: b } = e.store || {}, d = r(!0);
824
- !t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), D(
822
+ setup(s) {
823
+ const e = s, { showData: t, setData: a, getData: l, setFormRule: f, deleteRule: h } = e.store || {}, d = r(!0);
824
+ !t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), S(
825
825
  () => t.value,
826
826
  () => {
827
- d.value = t.value[e.setting.name], d.value || (i.value = null, b(e.setting.name)), d.value && e.setting.options.validateList.length && f(e.setting.name, e.setting.options.validateList);
827
+ d.value = t.value[e.setting.name], d.value || (i.value = null, h(e.setting.name)), d.value && e.setting.options.validateList.length && f(e.setting.name, e.setting.options.validateList);
828
828
  },
829
829
  { deep: !0 }
830
830
  );
831
831
  const v = r(!1);
832
- C(e.setting.options.validateList).then((o) => {
833
- v.value = o;
832
+ Q(e.setting.options.validateList).then((n) => {
833
+ v.value = n;
834
834
  });
835
- const c = e.setting.options.customQuery.valueBind ? e.setting.options.customQuery.valueBind : "key", g = e.setting.options.customQuery.labelBind ? e.setting.options.customQuery.labelBind : "value", l = r([]);
836
- e.setting.options.customQuery.alias ? le(e.setting.options.customQuery.alias, e.setting.options.customQuery.conditionfield).then((o) => {
837
- l.value = o;
838
- }) : l.value = e.setting.options.options;
839
- const p = r();
840
- e.setting.options.tip && (p.value = E(e.setting.options.tip));
835
+ const p = e.setting.options.customQuery.valueBind ? e.setting.options.customQuery.valueBind : "key", g = e.setting.options.customQuery.labelBind ? e.setting.options.customQuery.labelBind : "value", u = r([]);
836
+ e.setting.options.customQuery.alias ? ue(e.setting.options.customQuery.alias, e.setting.options.customQuery.conditionfield).then((n) => {
837
+ u.value = n;
838
+ }) : u.value = e.setting.options.options;
839
+ const c = r();
840
+ e.setting.options.tip && (c.value = A(e.setting.options.tip));
841
841
  const i = r();
842
842
  i.value = e.setting.options.multiple ? [] : null, setTimeout(() => {
843
- e.setting.options.multiple && (m(e.setting.name) || e.setting.options.formulasDiyJs) ? (m(e.setting.name) && (i.value = m(e.setting.name).split(",")), e.setting.options.formulasDiyJs && (i.value = e.setting.options.formulasDiyJs.split(","))) : i.value = m(e.setting.name) || e.setting.options.formulasDiyJs || i.value, i.value || s(e.setting.name, null);
844
- }, 50), e.setting.options.validateList.length && f(e.setting.name, e.setting.options.validateList), D(i, (o) => {
845
- e.setting.options.multiple ? s(e.setting.name, o.toString()) : s(e.setting.name, null);
843
+ e.setting.options.multiple && (l(e.setting.name) || e.setting.options.formulasDiyJs) ? (l(e.setting.name) && (i.value = l(e.setting.name).split(",")), e.setting.options.formulasDiyJs && (i.value = e.setting.options.formulasDiyJs.split(","))) : i.value = l(e.setting.name) || e.setting.options.formulasDiyJs || i.value, i.value || a(e.setting.name, null);
844
+ }, 50), e.setting.options.validateList.length && f(e.setting.name, e.setting.options.validateList), S(i, (n) => {
845
+ e.setting.options.multiple ? a(e.setting.name, n.toString()) : a(e.setting.name, n);
846
846
  });
847
- const u = (o) => {
848
- e.setting.options.linkage.length && !e.setting.options.multiple && e.setting.options.linkage.forEach((y) => {
849
- if (y.value === o) {
850
- const $ = y.effect[0].target.split(".")[2];
851
- t.value[$] = y.effect[0].type === "w";
847
+ const y = (n) => {
848
+ e.setting.options.linkage.length && !e.setting.options.multiple && e.setting.options.linkage.forEach((m) => {
849
+ if (m.value === n) {
850
+ const D = m.effect[0].target.split(".")[2];
851
+ t.value[D] = m.effect[0].type === "w";
852
852
  }
853
853
  });
854
854
  };
855
- return (o, y) => H((h(), R(n(N), {
855
+ return (n, m) => H((b(), $(o(N), {
856
856
  col: e.span,
857
857
  modelValue: i.value,
858
- "onUpdate:modelValue": y[0] || (y[0] = (M) => i.value = M),
859
- label: o.setting.desc,
860
- onChange: u,
858
+ "onUpdate:modelValue": m[0] || (m[0] = (R) => i.value = R),
859
+ label: n.setting.desc,
860
+ onChange: y,
861
861
  type: "select",
862
862
  prop: e.setting.name,
863
- placeholder: o.setting.options.placeholder,
864
- mode: o.setting.options.multiple ? "tags" : "combobox",
865
- showSearch: o.setting.options.filterable,
863
+ placeholder: n.setting.options.placeholder,
864
+ mode: n.setting.options.multiple ? "tags" : "combobox",
865
+ showSearch: n.setting.options.filterable,
866
866
  allowClear: !0,
867
867
  isView: e.isView,
868
- options: l.value,
869
- optionsValueKey: n(c),
870
- optionsLabelKey: n(g),
871
- helpMessage: p.value,
868
+ options: u.value,
869
+ optionsValueKey: o(p),
870
+ optionsLabelKey: o(g),
871
+ helpMessage: c.value,
872
872
  required: v.value
873
873
  }, null, 8, ["col", "modelValue", "label", "prop", "placeholder", "mode", "showSearch", "isView", "options", "optionsValueKey", "optionsLabelKey", "helpMessage", "required"])), [
874
874
  [X, d.value]
875
875
  ]);
876
876
  }
877
- }), Ce = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
877
+ }), tt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
878
878
  __proto__: null,
879
- default: ls
880
- }, Symbol.toStringTag, { value: "Module" })), us = (a) => {
881
- var k, x, ae, ue, ne;
882
- const e = ke().id, t = r(!1), s = (ne = (ue = (ae = (x = (k = a == null ? void 0 : a.options) == null ? void 0 : k.selector) == null ? void 0 : x.type) == null ? void 0 : ae.alias) == null ? void 0 : ue.replace("eip-", "")) == null ? void 0 : ne.replace("-selector", ""), m = r([]), f = r(""), b = {
879
+ default: ha
880
+ }, Symbol.toStringTag, { value: "Module" })), ba = (s, e) => {
881
+ var k, C, ne, re, oe;
882
+ const t = Ae().id, a = r(!1), l = (oe = (re = (ne = (C = (k = s == null ? void 0 : s.options) == null ? void 0 : k.selector) == null ? void 0 : C.type) == null ? void 0 : ne.alias) == null ? void 0 : re.replace("eip-", "")) == null ? void 0 : oe.replace("-selector", ""), f = r([]), h = r(""), d = {
883
883
  user: F("搜索姓名/账号/手机号").value,
884
884
  org: F("搜索组织名称/组织编码").value,
885
885
  role: F("搜索角色名称").value,
@@ -887,7 +887,7 @@ const Xt = (a, e) => {
887
887
  post: F("搜索岗位名称/岗位编码").value,
888
888
  supplier: F("搜索供应商编码/名称").value,
889
889
  source: F("搜索单据编码/申请人").value
890
- }, d = {
890
+ }, v = {
891
891
  user: F("用户选择器").value,
892
892
  org: F("组织选择器").value,
893
893
  role: F("角色选择器").value,
@@ -895,7 +895,7 @@ const Xt = (a, e) => {
895
895
  post: F("岗位选择器").value,
896
896
  supplier: F("供应商选择器").value,
897
897
  source: F("源单选择器").value
898
- }, v = {
898
+ }, p = {
899
899
  user: "id",
900
900
  org: "id",
901
901
  role: "id",
@@ -903,43 +903,57 @@ const Xt = (a, e) => {
903
903
  post: "stationId",
904
904
  supplier: "id",
905
905
  source: "code"
906
- }, c = {
906
+ }, g = {
907
907
  1: F("正常").value,
908
908
  2: F("锁定").value,
909
909
  3: F("禁用").value
910
- }, g = {
910
+ }, u = {
911
911
  0: F("普通").value,
912
912
  1: F("管理员").value
913
- }, l = {
913
+ }, c = {
914
914
  0: F("无效").value,
915
915
  1: F("有效").value
916
- }, p = {
917
- user: Vt,
918
- org: ve,
919
- role: St,
920
- job: ve,
921
- post: ve,
922
- supplier: Ot
923
- }, i = d[s], u = r({}), o = r([]), y = () => {
924
- var _, P;
925
- s === "supplier" ? (u.value = {
916
+ }, i = {
917
+ user: jt,
918
+ org: me,
919
+ role: Bt,
920
+ job: me,
921
+ post: me,
922
+ supplier: Ut
923
+ }, y = v[l], n = r({}), m = r([]), R = () => {
924
+ var _, K;
925
+ l === "supplier" ? (n.value = {
926
926
  left: !1,
927
927
  content: {
928
- api: Ft,
928
+ api: zt,
929
929
  params: {
930
- condition: "",
931
- classificationId: "",
932
- orgId: e
930
+ flowKey: e,
931
+ clientType: "pc",
932
+ pageBean: {
933
+ page: 1,
934
+ pageSize: 20
935
+ },
936
+ params: {},
937
+ sorter: [],
938
+ querys: [
939
+ {
940
+ property: "orgId",
941
+ value: t,
942
+ group: "quick",
943
+ relation: "AND",
944
+ operation: "EQUAL"
945
+ }
946
+ ]
933
947
  },
934
948
  selectListProps: {
935
949
  data: []
936
950
  }
937
951
  },
938
952
  right: !1
939
- }, I(), $()) : s === "source" ? (u.value = {
953
+ }, O(), B()) : l === "source" ? (n.value = {
940
954
  left: !1,
941
955
  content: {
942
- api: It,
956
+ api: Ct,
943
957
  params: {
944
958
  key: ""
945
959
  },
@@ -953,10 +967,10 @@ const Xt = (a, e) => {
953
967
  }
954
968
  },
955
969
  right: !1
956
- }, M()) : s === "org" ? (u.value = {
970
+ }, D()) : l === "org" ? (n.value = {
957
971
  left: !1,
958
972
  content: {
959
- api: Lt,
973
+ api: Kt,
960
974
  params: {
961
975
  search: ""
962
976
  },
@@ -964,12 +978,12 @@ const Xt = (a, e) => {
964
978
  data: []
965
979
  }
966
980
  }
967
- }, M()) : u.value = {
981
+ }, D()) : n.value = {
968
982
  left: {
969
- api: _t,
983
+ api: Ft,
970
984
  params: {
971
- projectId: e,
972
- parentId: e
985
+ projectId: t,
986
+ parentId: t
973
987
  },
974
988
  props: {
975
989
  inputOptions: {
@@ -982,8 +996,8 @@ const Xt = (a, e) => {
982
996
  data: []
983
997
  }
984
998
  }
985
- }, s === "user" && (u.value.content = {
986
- api: wt,
999
+ }, l === "user" && (n.value.content = {
1000
+ api: It,
987
1001
  searchKey: "groupId",
988
1002
  params: {
989
1003
  status: 1,
@@ -992,8 +1006,8 @@ const Xt = (a, e) => {
992
1006
  selectListProps: {
993
1007
  data: []
994
1008
  }
995
- }, M()), s === "role" && (u.value.content = {
996
- api: Dt,
1009
+ }, D()), l === "role" && (n.value.content = {
1010
+ api: qt,
997
1011
  searchKey: "orgId",
998
1012
  params: {
999
1013
  status: 1
@@ -1001,8 +1015,8 @@ const Xt = (a, e) => {
1001
1015
  selectListProps: {
1002
1016
  data: []
1003
1017
  }
1004
- }, M()), s === "job" && (u.value.content = {
1005
- api: Tt,
1018
+ }, D()), l === "job" && (n.value.content = {
1019
+ api: Ot,
1006
1020
  searchKey: "groupId",
1007
1021
  props: {
1008
1022
  rowKey: "positionId"
@@ -1010,8 +1024,8 @@ const Xt = (a, e) => {
1010
1024
  selectListProps: {
1011
1025
  data: []
1012
1026
  }
1013
- }, M()), s === "post" && (u.value.content = {
1014
- api: Mt,
1027
+ }, D()), l === "post" && (n.value.content = {
1028
+ api: Nt,
1015
1029
  searchKey: "groupId",
1016
1030
  props: {
1017
1031
  rowKey: "stationId"
@@ -1019,14 +1033,14 @@ const Xt = (a, e) => {
1019
1033
  selectListProps: {
1020
1034
  data: []
1021
1035
  }
1022
- }, M()), u.value.content.multiple = s === "supplier" || s === "source" ? !1 : !((P = (_ = a == null ? void 0 : a.options) == null ? void 0 : _.selector) != null && P.isSingle);
1023
- }, M = async () => {
1024
- o.value = [
1036
+ }, D()), n.value.content.multiple = l === "supplier" || l === "source" ? !1 : !((K = (_ = s == null ? void 0 : s.options) == null ? void 0 : _.selector) != null && K.isSingle);
1037
+ }, D = async () => {
1038
+ m.value = [
1025
1039
  {
1026
1040
  type: "searchInput",
1027
1041
  key: "inputtKey",
1028
1042
  label: "",
1029
- placeholder: b[s],
1043
+ placeholder: d[l],
1030
1044
  value: "",
1031
1045
  clearable: !1,
1032
1046
  isIconLeft: !0,
@@ -1034,13 +1048,13 @@ const Xt = (a, e) => {
1034
1048
  size: "small"
1035
1049
  }
1036
1050
  ];
1037
- }, $ = async () => {
1038
- o.value = [
1051
+ }, B = async () => {
1052
+ m.value = [
1039
1053
  {
1040
1054
  type: "searchInput",
1041
1055
  key: "inputtKey",
1042
1056
  label: "",
1043
- placeholder: b[s],
1057
+ placeholder: d[l],
1044
1058
  value: "",
1045
1059
  clearable: !1,
1046
1060
  isIconLeft: !0,
@@ -1061,117 +1075,148 @@ const Xt = (a, e) => {
1061
1075
  allowClear: !0
1062
1076
  }
1063
1077
  ];
1064
- }, I = async () => {
1078
+ }, O = async () => {
1065
1079
  const _ = {
1066
1080
  name: "",
1067
1081
  published: 1
1068
- }, [P, V] = await jt(_).run();
1069
- P || (o.value[1].options = V);
1070
- }, B = () => {
1071
- var P;
1072
- f.value = "", t.value = !0;
1073
- let _ = v[s];
1074
- u.value.content.selectListProps.data = (P = m == null ? void 0 : m.value) == null ? void 0 : P.map((V) => ({ name: V == null ? void 0 : V.label, [_]: V == null ? void 0 : V.value }));
1082
+ }, [K, V] = await Qt(_).run();
1083
+ K || (m.value[1].options = V);
1084
+ }, U = () => {
1085
+ var K;
1086
+ h.value = "", a.value = !0;
1087
+ let _ = p[l];
1088
+ n.value.content.selectListProps.data = (K = f == null ? void 0 : f.value) == null ? void 0 : K.map((V) => ({ name: V == null ? void 0 : V.label, [_]: V == null ? void 0 : V.value }));
1075
1089
  };
1076
- y();
1077
- const Q = async () => {
1078
- var _, P, V, O, A, S;
1079
- u.value.content.params = {
1080
- ...(P = (_ = u == null ? void 0 : u.value) == null ? void 0 : _.content) == null ? void 0 : P.params,
1090
+ R();
1091
+ const Z = async () => {
1092
+ var _, K, V, I, z, L, x, Se, Le, Me, Re, Te, $e, ke, Fe, Ie, je;
1093
+ n.value.content.params = {
1094
+ ...(K = (_ = n == null ? void 0 : n.value) == null ? void 0 : _.content) == null ? void 0 : K.params,
1081
1095
  pageIndex: 1
1082
- }, (s === "user" || s === "org" || s === "post" || s === "role" || s === "job") && (u.value.content.params.name = (V = o == null ? void 0 : o.value[0]) == null ? void 0 : V.value), s === "source" && (u.value.content.params.key = (O = o == null ? void 0 : o.value[0]) == null ? void 0 : O.value), s === "supplier" && (u.value.content.params.condition = (A = o == null ? void 0 : o.value[0]) == null ? void 0 : A.value, u.value.content.params.classificationId = (S = o == null ? void 0 : o.value[1]) == null ? void 0 : S.value);
1096
+ }, (l === "user" || l === "org" || l === "post" || l === "role" || l === "job") && (n.value.content.params.name = (V = m == null ? void 0 : m.value[0]) == null ? void 0 : V.value), l === "source" && (n.value.content.params.key = (I = m == null ? void 0 : m.value[0]) == null ? void 0 : I.value), l === "supplier" && (n.value.content.params.querys = [
1097
+ {
1098
+ property: "orgId",
1099
+ value: t,
1100
+ group: "quick",
1101
+ relation: "AND",
1102
+ operation: "EQUAL"
1103
+ }
1104
+ ], (z = m == null ? void 0 : m.value[0]) != null && z.value && (n.value.content.params.querys = (Re = (Se = (x = (L = n == null ? void 0 : n.value) == null ? void 0 : L.content) == null ? void 0 : x.params) == null ? void 0 : Se.querys) == null ? void 0 : Re.concat([
1105
+ {
1106
+ property: "name",
1107
+ value: (Le = m == null ? void 0 : m.value[0]) == null ? void 0 : Le.value,
1108
+ group: "merge",
1109
+ relation: "OR",
1110
+ operation: "LIKE"
1111
+ },
1112
+ {
1113
+ property: "code",
1114
+ value: (Me = m == null ? void 0 : m.value[0]) == null ? void 0 : Me.value,
1115
+ group: "merge",
1116
+ relation: "OR",
1117
+ operation: "LIKE"
1118
+ }
1119
+ ])), (Te = m == null ? void 0 : m.value[1]) != null && Te.value && (n.value.content.params.querys = (je = (Fe = (ke = ($e = n == null ? void 0 : n.value) == null ? void 0 : $e.content) == null ? void 0 : ke.params) == null ? void 0 : Fe.querys) == null ? void 0 : je.concat([
1120
+ {
1121
+ property: "classificationId",
1122
+ value: (Ie = m == null ? void 0 : m.value[1]) == null ? void 0 : Ie.value,
1123
+ group: "quick",
1124
+ relation: "AND",
1125
+ operation: "EQUAL"
1126
+ }
1127
+ ])));
1083
1128
  };
1084
- D(
1085
- () => t == null ? void 0 : t.value,
1129
+ S(
1130
+ () => a == null ? void 0 : a.value,
1086
1131
  (_) => {
1087
- _ || Z();
1132
+ _ || te();
1088
1133
  }
1089
1134
  );
1090
- const Z = async () => {
1091
- s === "supplier" ? (o.value[0].value = "", o.value[1].value = void 0) : (s === "org" || s === "user" || s === "source" || s === "post" || s === "role" || s === "job") && (o.value[0].value = ""), y();
1135
+ const te = async () => {
1136
+ l === "supplier" ? (m.value[0].value = "", m.value[1].value = void 0) : (l === "org" || l === "user" || l === "source" || l === "post" || l === "role" || l === "job") && (m.value[0].value = ""), R();
1092
1137
  };
1093
1138
  return {
1094
- dialogVisible: t,
1095
- title: i,
1096
- searchName: f,
1097
- selectorType: s,
1098
- selectOptions: m,
1099
- tableOptions: u,
1100
- userStatusMap: c,
1101
- roleTypeMap: g,
1102
- roleStatusMap: l,
1103
- openDialog: B,
1139
+ dialogVisible: a,
1140
+ title: y,
1141
+ searchName: h,
1142
+ selectorType: l,
1143
+ selectOptions: f,
1144
+ tableOptions: n,
1145
+ userStatusMap: g,
1146
+ roleTypeMap: u,
1147
+ roleStatusMap: c,
1148
+ openDialog: U,
1104
1149
  confirm: (_) => {
1105
- let P = v[s];
1106
- m.value = _ == null ? void 0 : _.map((V) => ({ label: (V == null ? void 0 : V.name) || (V == null ? void 0 : V.code), value: V[P] }));
1150
+ let K = p[l];
1151
+ f.value = _ == null ? void 0 : _.map((V) => ({ label: (V == null ? void 0 : V.name) || (V == null ? void 0 : V.code), value: V[K] }));
1107
1152
  },
1108
1153
  getDetail: async (_) => {
1109
- const P = p[s];
1154
+ const K = i[l];
1110
1155
  let V = {};
1111
- const O = _ == null ? void 0 : _.split(",");
1112
- if (s === "source") {
1113
- m.value = [
1156
+ const I = _ == null ? void 0 : _.split(",");
1157
+ if (l === "source") {
1158
+ f.value = [
1114
1159
  {
1115
1160
  label: _,
1116
1161
  value: _
1117
1162
  }
1118
1163
  ];
1119
1164
  return;
1120
- } else s === "user" ? V.userIds = O : s === "role" ? V.ids = O : s === "supplier" ? V.id = O : V = O;
1121
- const [A, S] = await P(V).run();
1122
- A || (s === "supplier" ? m.value = [
1165
+ } else l === "user" ? V.userIds = I : l === "role" ? V.ids = I : l === "supplier" ? V.id = I : V = I;
1166
+ const [z, L] = await K(V).run();
1167
+ z || (l === "supplier" ? f.value = [
1123
1168
  {
1124
- label: (S == null ? void 0 : S.name) || (S == null ? void 0 : S.code),
1125
- value: S == null ? void 0 : S.id
1169
+ label: (L == null ? void 0 : L.name) || (L == null ? void 0 : L.code),
1170
+ value: L == null ? void 0 : L.id
1126
1171
  }
1127
- ] : m.value = S == null ? void 0 : S.map((te) => ({ label: (te == null ? void 0 : te.name) || (te == null ? void 0 : te.code), value: te == null ? void 0 : te.id })));
1172
+ ] : f.value = L == null ? void 0 : L.map((x) => ({ label: (x == null ? void 0 : x.name) || (x == null ? void 0 : x.code), value: x == null ? void 0 : x.id })));
1128
1173
  },
1129
- searchData: Q,
1130
- searchOptions: o
1174
+ searchData: Z,
1175
+ searchOptions: m
1131
1176
  };
1132
- }, rs = () => {
1133
- const a = r(""), e = r(""), t = r([]), s = r("");
1177
+ }, _a = () => {
1178
+ const s = r(""), e = r(""), t = r([]), a = r("");
1134
1179
  return {
1135
- spacePath: a,
1180
+ spacePath: s,
1136
1181
  spaceName: e,
1137
1182
  spaceTreeData: t,
1138
- searchSpace: s,
1139
- changeSpace: (v, c) => {
1140
- a.value = c[0].path, e.value = c[0].pathName;
1183
+ searchSpace: a,
1184
+ changeSpace: (v, p) => {
1185
+ s.value = p[0].path, e.value = p[0].pathName;
1141
1186
  },
1142
1187
  spaceLoad: async (v) => {
1143
- let c = {
1188
+ let p = {
1144
1189
  pageSize: 1e4,
1145
1190
  pageIndex: 1,
1146
- projectId: ke().id,
1191
+ projectId: Ae().id,
1147
1192
  //项目id
1148
1193
  spaceId: ""
1149
1194
  // orgId:getProjectInfo().id
1150
1195
  };
1151
- c.spaceId = v != null && v.id ? v.id : "";
1152
- let g = Rt;
1153
- const [l, p] = await g(c).run();
1154
- return l ? {} : p;
1196
+ p.spaceId = v != null && v.id ? v.id : "";
1197
+ let g = Pt;
1198
+ const [u, c] = await g(p).run();
1199
+ return u ? {} : c;
1155
1200
  },
1156
1201
  filterSpaceTree: async (v) => {
1157
1202
  if (!v) return [];
1158
- let c = $t;
1203
+ let p = Et;
1159
1204
  const g = {
1160
1205
  name: v
1161
- }, [l, p] = await c(g).run();
1162
- return l ? {} : (p.forEach((i) => {
1206
+ }, [u, c] = await p(g).run();
1207
+ return u ? {} : (c.forEach((i) => {
1163
1208
  i.path.startsWith("/0") && (i.path = i.path.slice(2) + `/${i.id}`), i._name = i.nodeName ? i.nodeName : i.name;
1164
- }), p);
1209
+ }), c);
1165
1210
  },
1166
1211
  getSpaceDetail: async (v) => {
1167
- const [c, g] = await kt().run({ spaceId: v });
1168
- c || (a.value = g.path);
1212
+ const [p, g] = await At().run({ spaceId: v });
1213
+ p || (s.value = g.path);
1169
1214
  }
1170
1215
  };
1171
- }, ps = { class: "table-search-process-top" }, gs = {
1216
+ }, wa = { class: "table-search-process-top" }, Va = {
1172
1217
  name: "selector"
1173
- }, ds = /* @__PURE__ */ j({
1174
- ...gs,
1218
+ }, Da = /* @__PURE__ */ j({
1219
+ ...Va,
1175
1220
  props: {
1176
1221
  setting: { default: () => ({
1177
1222
  icon: "",
@@ -1185,110 +1230,110 @@ const Xt = (a, e) => {
1185
1230
  marginRight: {},
1186
1231
  store: {}
1187
1232
  },
1188
- setup(a) {
1189
- const e = a, { showData: t, setData: s, getData: m, setFormRule: f, deleteRule: b } = e.store || {}, d = r(!0);
1190
- !t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), D(
1233
+ setup(s) {
1234
+ const e = s, { showData: t, setData: a, getData: l, flowKey: f, setFormRule: h, deleteRule: d } = e.store || {}, v = r(!0);
1235
+ !t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), S(
1191
1236
  () => t.value,
1192
1237
  () => {
1193
- d.value = t.value[e.setting.name], d.value || (_.value = "", i.value = [], b(e.setting.name)), d.value && e.setting.options.validateList.length && f(e.setting.name, e.setting.options.validateList);
1238
+ v.value = t.value[e.setting.name], v.value || (_.value = "", y.value = [], d(e.setting.name)), v.value && e.setting.options.validateList.length && h(e.setting.name, e.setting.options.validateList);
1194
1239
  },
1195
1240
  { deep: !0 }
1196
1241
  );
1197
1242
  const {
1198
- dialogVisible: v,
1199
- title: c,
1200
- searchName: g,
1201
- tableOptions: l,
1202
- selectorType: p,
1203
- selectOptions: i,
1204
- userStatusMap: u,
1205
- roleTypeMap: o,
1206
- roleStatusMap: y,
1207
- openDialog: M,
1208
- confirm: $,
1209
- getDetail: I,
1210
- searchData: B,
1211
- searchOptions: Q
1212
- } = us(e.setting), { spacePath: Z, spaceName: z, searchSpace: U, changeSpace: k, spaceLoad: x, filterSpaceTree: ae, getSpaceDetail: ue } = rs(), ne = r(!1);
1213
- C(e.setting.options.validateList).then((V) => {
1214
- ne.value = V;
1243
+ dialogVisible: p,
1244
+ title: g,
1245
+ searchName: u,
1246
+ tableOptions: c,
1247
+ selectorType: i,
1248
+ selectOptions: y,
1249
+ userStatusMap: n,
1250
+ roleTypeMap: m,
1251
+ roleStatusMap: R,
1252
+ openDialog: D,
1253
+ confirm: B,
1254
+ getDetail: O,
1255
+ searchData: U,
1256
+ searchOptions: Z
1257
+ } = ba(e.setting, f), { spacePath: te, spaceName: q, searchSpace: se, changeSpace: k, spaceLoad: C, filterSpaceTree: ne, getSpaceDetail: re } = _a(), oe = r(!1);
1258
+ Q(e.setting.options.validateList).then((V) => {
1259
+ oe.value = V;
1215
1260
  });
1216
- const _ = r(""), P = r();
1217
- return e.setting.options.tip && (P.value = E(e.setting.options.tip)), e.setting.options.validateList.length && f(e.setting.name, e.setting.options.validateList), p !== "position" ? (_.value = m(e.setting.name) ? m(e.setting.name) : _.value, _.value && I(_.value), _.value.length || s(e.setting.name, null), D(i, (V) => {
1218
- _.value = V.map((O) => O.value).toString(), s(e.setting.name, _.value);
1219
- })) : (_.value = m(e.setting.name) ? m(e.setting.name) : _.value, _.value && ue(_.value), _.value || s(e.setting.name, null), D(_, (V) => {
1220
- s(e.setting.name, V);
1221
- }), D(z, (V) => {
1222
- s(e.setting.options.selector.type.positionName, V);
1223
- })), (V, O) => (h(), K(
1261
+ const _ = r(""), K = r();
1262
+ return e.setting.options.tip && (K.value = A(e.setting.options.tip)), e.setting.options.validateList.length && h(e.setting.name, e.setting.options.validateList), i !== "position" ? (_.value = l(e.setting.name) ? l(e.setting.name) : _.value, _.value && O(_.value), _.value.length || a(e.setting.name, null), S(y, (V) => {
1263
+ _.value = V.map((I) => I.value).toString(), a(e.setting.name, _.value);
1264
+ })) : (_.value = l(e.setting.name) ? l(e.setting.name) : _.value, _.value && re(_.value), _.value || a(e.setting.name, null), S(_, (V) => {
1265
+ a(e.setting.name, V);
1266
+ }), S(q, (V) => {
1267
+ a(e.setting.options.selector.type.positionName, V);
1268
+ })), (V, I) => (b(), P(
1224
1269
  G,
1225
1270
  null,
1226
1271
  [
1227
- d.value && n(p) != "position" ? (h(), R(n(N), {
1272
+ v.value && o(i) != "position" ? (b(), $(o(N), {
1228
1273
  key: 0,
1229
1274
  col: e.span,
1230
1275
  modelValue: _.value,
1231
- "onUpdate:modelValue": O[1] || (O[1] = (A) => _.value = A),
1276
+ "onUpdate:modelValue": I[1] || (I[1] = (z) => _.value = z),
1232
1277
  prop: e.setting.name,
1233
1278
  label: V.setting.desc,
1234
1279
  type: "inputDialogSelect",
1235
- options: n(i),
1236
- helpMessage: P.value,
1280
+ options: o(y),
1281
+ helpMessage: K.value,
1237
1282
  isView: e.isView,
1238
- required: ne.value,
1239
- onOpenDialog: n(M)
1283
+ required: oe.value,
1284
+ onOpenDialog: o(D)
1240
1285
  }, {
1241
- default: L(() => {
1242
- var A;
1286
+ default: M(() => {
1287
+ var z;
1243
1288
  return [
1244
- w(n(ut), {
1245
- modelValue: n(v),
1246
- "onUpdate:modelValue": O[0] || (O[0] = (S) => ce(v) ? v.value = S : null),
1247
- options: n(l),
1248
- onConfirm: n($),
1249
- title: n(c)
1250
- }, et({
1289
+ w(o(bt), {
1290
+ modelValue: o(p),
1291
+ "onUpdate:modelValue": I[0] || (I[0] = (L) => ve(p) ? p.value = L : null),
1292
+ options: o(c),
1293
+ onConfirm: o(B),
1294
+ title: o(g)
1295
+ }, gt({
1251
1296
  _: 2
1252
1297
  /* DYNAMIC */
1253
1298
  }, [
1254
- ((A = n(Q)) == null ? void 0 : A.length) > 0 ? {
1299
+ ((z = o(Z)) == null ? void 0 : z.length) > 0 ? {
1255
1300
  name: "table-header-search",
1256
- fn: L(() => [
1257
- Te("div", ps, [
1258
- w(n(lt), {
1301
+ fn: M(() => [
1302
+ Oe("div", wa, [
1303
+ w(o(ht), {
1259
1304
  labelLength: "6",
1260
- options: n(Q),
1261
- onConfirm: n(B),
1305
+ options: o(Z),
1306
+ onConfirm: o(U),
1262
1307
  "is-margin-right": !1
1263
1308
  }, null, 8, ["options", "onConfirm"])
1264
1309
  ])
1265
1310
  ]),
1266
1311
  key: "0"
1267
1312
  } : void 0,
1268
- n(p) === "user" ? {
1313
+ o(i) === "user" ? {
1269
1314
  name: "table-column",
1270
- fn: L(() => [
1271
- w(n(T), {
1315
+ fn: M(() => [
1316
+ w(o(T), {
1272
1317
  label: "姓名",
1273
1318
  prop: "name"
1274
1319
  }),
1275
- w(n(T), {
1320
+ w(o(T), {
1276
1321
  label: "账号",
1277
1322
  prop: "userName"
1278
1323
  }),
1279
- w(n(T), {
1324
+ w(o(T), {
1280
1325
  label: "手机号",
1281
1326
  prop: "sensitivePhone"
1282
1327
  }, {
1283
- default: L(({ row: S }) => [
1284
- w(n($e), {
1328
+ default: M(({ row: L }) => [
1329
+ w(o(Ee), {
1285
1330
  placement: "top",
1286
- content: S.phone,
1287
- disabled: !S.phone
1331
+ content: L.phone,
1332
+ disabled: !L.phone
1288
1333
  }, {
1289
- default: L(() => [
1334
+ default: M(() => [
1290
1335
  J(
1291
- W(S.sensitivePhone || "-"),
1336
+ W(L.sensitivePhone || "-"),
1292
1337
  1
1293
1338
  /* TEXT */
1294
1339
  )
@@ -1300,10 +1345,10 @@ const Xt = (a, e) => {
1300
1345
  _: 1
1301
1346
  /* STABLE */
1302
1347
  }),
1303
- w(n(T), { label: "状态" }, {
1304
- default: L(({ row: S }) => [
1348
+ w(o(T), { label: "状态" }, {
1349
+ default: M(({ row: L }) => [
1305
1350
  J(
1306
- W(n(u)[S.status]),
1351
+ W(o(n)[L.status]),
1307
1352
  1
1308
1353
  /* TEXT */
1309
1354
  )
@@ -1314,35 +1359,35 @@ const Xt = (a, e) => {
1314
1359
  ]),
1315
1360
  key: "1"
1316
1361
  } : void 0,
1317
- n(p) === "org" ? {
1362
+ o(i) === "org" ? {
1318
1363
  name: "table-column",
1319
- fn: L(() => [
1320
- w(n(T), {
1364
+ fn: M(() => [
1365
+ w(o(T), {
1321
1366
  label: "组织名称",
1322
1367
  prop: "name"
1323
1368
  }),
1324
- w(n(T), {
1369
+ w(o(T), {
1325
1370
  label: "组织编码",
1326
1371
  prop: "code"
1327
1372
  }),
1328
- w(n(T), {
1373
+ w(o(T), {
1329
1374
  label: "组织类型",
1330
1375
  prop: "typeName"
1331
1376
  })
1332
1377
  ]),
1333
1378
  key: "2"
1334
1379
  } : void 0,
1335
- n(p) === "role" ? {
1380
+ o(i) === "role" ? {
1336
1381
  name: "table-column",
1337
- fn: L(() => [
1338
- w(n(T), {
1382
+ fn: M(() => [
1383
+ w(o(T), {
1339
1384
  label: "角色名称",
1340
1385
  prop: "name"
1341
1386
  }),
1342
- w(n(T), { label: "角色类型" }, {
1343
- default: L(({ row: S }) => [
1387
+ w(o(T), { label: "角色类型" }, {
1388
+ default: M(({ row: L }) => [
1344
1389
  J(
1345
- W(n(o)[S.type]),
1390
+ W(o(m)[L.type]),
1346
1391
  1
1347
1392
  /* TEXT */
1348
1393
  )
@@ -1350,10 +1395,10 @@ const Xt = (a, e) => {
1350
1395
  _: 1
1351
1396
  /* STABLE */
1352
1397
  }),
1353
- w(n(T), { label: "角色状态" }, {
1354
- default: L(({ row: S }) => [
1398
+ w(o(T), { label: "角色状态" }, {
1399
+ default: M(({ row: L }) => [
1355
1400
  J(
1356
- W(n(y)[S.status]),
1401
+ W(o(R)[L.status]),
1357
1402
  1
1358
1403
  /* TEXT */
1359
1404
  )
@@ -1364,80 +1409,80 @@ const Xt = (a, e) => {
1364
1409
  ]),
1365
1410
  key: "3"
1366
1411
  } : void 0,
1367
- n(p) === "job" ? {
1412
+ o(i) === "job" ? {
1368
1413
  name: "table-column",
1369
- fn: L(() => [
1370
- w(n(T), {
1414
+ fn: M(() => [
1415
+ w(o(T), {
1371
1416
  label: "职务名称",
1372
1417
  prop: "name"
1373
1418
  }),
1374
- w(n(T), {
1419
+ w(o(T), {
1375
1420
  label: "职务编码",
1376
1421
  prop: "code"
1377
1422
  }),
1378
- w(n(T), {
1423
+ w(o(T), {
1379
1424
  label: "所属组织路径",
1380
1425
  prop: "groupName"
1381
1426
  })
1382
1427
  ]),
1383
1428
  key: "4"
1384
1429
  } : void 0,
1385
- n(p) === "post" ? {
1430
+ o(i) === "post" ? {
1386
1431
  name: "table-column",
1387
- fn: L(() => [
1388
- w(n(T), {
1432
+ fn: M(() => [
1433
+ w(o(T), {
1389
1434
  label: "岗位名称",
1390
1435
  prop: "name"
1391
1436
  }),
1392
- w(n(T), {
1437
+ w(o(T), {
1393
1438
  label: "岗位编码",
1394
1439
  prop: "code"
1395
1440
  }),
1396
- w(n(T), {
1441
+ w(o(T), {
1397
1442
  label: "所属组织路径",
1398
1443
  prop: "groupName"
1399
1444
  })
1400
1445
  ]),
1401
1446
  key: "5"
1402
1447
  } : void 0,
1403
- n(p) === "supplier" ? {
1448
+ o(i) === "supplier" ? {
1404
1449
  name: "table-column",
1405
- fn: L(() => [
1406
- w(n(T), {
1450
+ fn: M(() => [
1451
+ w(o(T), {
1407
1452
  type: "index",
1408
1453
  width: "50"
1409
1454
  }),
1410
- w(n(T), {
1455
+ w(o(T), {
1411
1456
  label: "供应商名称",
1412
1457
  prop: "name"
1413
1458
  }),
1414
- w(n(T), {
1459
+ w(o(T), {
1415
1460
  label: "供应商编码",
1416
1461
  prop: "code"
1417
1462
  }),
1418
- w(n(T), {
1463
+ w(o(T), {
1419
1464
  label: "供应商等级",
1420
1465
  prop: "supplierLevel"
1421
1466
  }),
1422
- w(n(T), {
1467
+ w(o(T), {
1423
1468
  label: "供应商分类",
1424
1469
  prop: "classificationName"
1425
1470
  }, {
1426
- default: L(() => [
1427
- q(` <template #default="{row}">\r
1471
+ default: M(() => [
1472
+ E(` <template #default="{row}">\r
1428
1473
  {{ getSupplierName(row) }}\r
1429
1474
  </template> `)
1430
1475
  ]),
1431
1476
  _: 1
1432
1477
  /* STABLE */
1433
1478
  }),
1434
- w(n(T), {
1479
+ w(o(T), {
1435
1480
  label: "个人/公司",
1436
1481
  prop: "businessType"
1437
1482
  }, {
1438
- default: L(({ row: S }) => [
1483
+ default: M(({ row: L }) => [
1439
1484
  J(
1440
- W(S.businessType == "COMPANY" ? "公司" : "个人"),
1485
+ W(L.businessType == "COMPANY" ? "公司" : "个人"),
1441
1486
  1
1442
1487
  /* TEXT */
1443
1488
  )
@@ -1448,32 +1493,32 @@ const Xt = (a, e) => {
1448
1493
  ]),
1449
1494
  key: "6"
1450
1495
  } : void 0,
1451
- n(p) === "source" ? {
1496
+ o(i) === "source" ? {
1452
1497
  name: "table-column",
1453
- fn: L(() => [
1454
- w(n(T), {
1498
+ fn: M(() => [
1499
+ w(o(T), {
1455
1500
  type: "index",
1456
1501
  width: "50"
1457
1502
  }),
1458
- w(n(T), {
1503
+ w(o(T), {
1459
1504
  label: "单据编码",
1460
1505
  prop: "code"
1461
1506
  }),
1462
- w(n(T), {
1507
+ w(o(T), {
1463
1508
  label: "申请人",
1464
1509
  prop: "userName"
1465
1510
  }),
1466
- w(n(T), {
1511
+ w(o(T), {
1467
1512
  label: "联系电话",
1468
1513
  prop: "phone"
1469
1514
  }),
1470
- w(n(T), {
1515
+ w(o(T), {
1471
1516
  label: "计划领用日期",
1472
1517
  prop: "claimingDate"
1473
1518
  }, {
1474
- default: L(({ row: S }) => [
1519
+ default: M(({ row: L }) => [
1475
1520
  J(
1476
- W(S.claimingDate ? n(pe)(Number(S == null ? void 0 : S.claimingDate)).format("YYYY/MM/DD") : "-"),
1521
+ W(L.claimingDate ? o(ge)(Number(L == null ? void 0 : L.claimingDate)).format("YYYY/MM/DD") : "-"),
1477
1522
  1
1478
1523
  /* TEXT */
1479
1524
  )
@@ -1481,7 +1526,7 @@ const Xt = (a, e) => {
1481
1526
  _: 1
1482
1527
  /* STABLE */
1483
1528
  }),
1484
- w(n(T), {
1529
+ w(o(T), {
1485
1530
  label: "资产用途",
1486
1531
  prop: "purpose"
1487
1532
  })
@@ -1493,8 +1538,8 @@ const Xt = (a, e) => {
1493
1538
  }),
1494
1539
  _: 1
1495
1540
  /* STABLE */
1496
- }, 8, ["col", "modelValue", "prop", "label", "options", "helpMessage", "isView", "required", "onOpenDialog"])) : q("v-if", !0),
1497
- d.value && n(p) == "position" ? (h(), R(n(N), {
1541
+ }, 8, ["col", "modelValue", "prop", "label", "options", "helpMessage", "isView", "required", "onOpenDialog"])) : E("v-if", !0),
1542
+ v.value && o(i) == "position" ? (b(), $(o(N), {
1498
1543
  key: 1,
1499
1544
  col: e.span,
1500
1545
  label: V.setting.desc,
@@ -1502,41 +1547,41 @@ const Xt = (a, e) => {
1502
1547
  type: "treeSelect",
1503
1548
  "node-key": "id",
1504
1549
  showFullPath: !0,
1505
- helpMessage: P.value,
1506
- required: ne.value,
1550
+ helpMessage: K.value,
1551
+ required: oe.value,
1507
1552
  modelValue: _.value,
1508
- "onUpdate:modelValue": O[2] || (O[2] = (A) => _.value = A),
1509
- keyword: n(U),
1510
- "onUpdate:keyword": O[3] || (O[3] = (A) => ce(U) ? U.value = A : null),
1511
- path: n(Z),
1512
- "onUpdate:path": O[4] || (O[4] = (A) => ce(Z) ? Z.value = A : null),
1553
+ "onUpdate:modelValue": I[2] || (I[2] = (z) => _.value = z),
1554
+ keyword: o(se),
1555
+ "onUpdate:keyword": I[3] || (I[3] = (z) => ve(se) ? se.value = z : null),
1556
+ path: o(te),
1557
+ "onUpdate:path": I[4] || (I[4] = (z) => ve(te) ? te.value = z : null),
1513
1558
  isView: e.isView,
1514
- load: n(x),
1515
- search: n(ae),
1559
+ load: o(C),
1560
+ search: o(ne),
1516
1561
  props: {
1517
1562
  isLeaf: "leaf",
1518
1563
  label: "name"
1519
1564
  },
1520
- onChange: n(k)
1521
- }, null, 8, ["col", "label", "prop", "helpMessage", "required", "modelValue", "keyword", "path", "isView", "load", "search", "onChange"])) : q("v-if", !0)
1565
+ onChange: o(k)
1566
+ }, null, 8, ["col", "label", "prop", "helpMessage", "required", "modelValue", "keyword", "path", "isView", "load", "search", "onChange"])) : E("v-if", !0)
1522
1567
  ],
1523
1568
  64
1524
1569
  /* STABLE_FRAGMENT */
1525
1570
  ));
1526
1571
  }
1527
- }), cs = /* @__PURE__ */ de(ds, [["__scopeId", "data-v-e11567a1"]]), Qe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1572
+ }), Sa = /* @__PURE__ */ ce(Da, [["__scopeId", "data-v-c2fe15eb"]]), at = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1528
1573
  __proto__: null,
1529
- default: cs
1530
- }, Symbol.toStringTag, { value: "Module" })), vs = {
1574
+ default: Sa
1575
+ }, Symbol.toStringTag, { value: "Module" })), La = {
1531
1576
  key: 0,
1532
1577
  class: "form-image"
1533
- }, ms = {
1578
+ }, Ma = {
1534
1579
  key: 1,
1535
1580
  style: { "margin-bottom": "10px" }
1536
- }, fs = {
1581
+ }, Ra = {
1537
1582
  name: "soundRecording"
1538
- }, ys = /* @__PURE__ */ j({
1539
- ...fs,
1583
+ }, Ta = /* @__PURE__ */ j({
1584
+ ...Ra,
1540
1585
  props: {
1541
1586
  setting: { default: () => ({
1542
1587
  icon: "",
@@ -1550,59 +1595,59 @@ const Xt = (a, e) => {
1550
1595
  marginRight: {},
1551
1596
  store: {}
1552
1597
  },
1553
- setup(a) {
1554
- const e = a, { showData: t, setData: s, getData: m, setFormRule: f, deleteRule: b } = e.store || {}, d = r(!0);
1555
- !t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), D(
1598
+ setup(s) {
1599
+ const e = s, { showData: t, setData: a, getData: l, setFormRule: f, deleteRule: h } = e.store || {}, d = r(!0);
1600
+ !t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), S(
1556
1601
  () => t.value,
1557
1602
  () => {
1558
- d.value = t.value[e.setting.name], d.value || (p.value = "", b(e.setting.name)), d.value && e.setting.options.validateList.length && f(e.setting.name, e.setting.options.validateList);
1603
+ d.value = t.value[e.setting.name], d.value || (c.value = "", h(e.setting.name)), d.value && e.setting.options.validateList.length && f(e.setting.name, e.setting.options.validateList);
1559
1604
  },
1560
1605
  { deep: !0 }
1561
1606
  );
1562
- const { baseURL: v } = rt(), c = r(!1);
1563
- C(e.setting.options.validateList).then((i) => {
1564
- c.value = i;
1607
+ const { baseURL: v } = _t(), p = r(!1);
1608
+ Q(e.setting.options.validateList).then((i) => {
1609
+ p.value = i;
1565
1610
  });
1566
- const g = r("info"), l = r();
1567
- e.setting.options.tip && (l.value = E(e.setting.options.tip));
1568
- const p = r();
1569
- if (m(e.setting.name)) {
1570
- const i = JSON.parse(m(e.setting.name));
1571
- p.value = v + i[0].url;
1611
+ const g = r("info"), u = r();
1612
+ e.setting.options.tip && (u.value = A(e.setting.options.tip));
1613
+ const c = r();
1614
+ if (l(e.setting.name)) {
1615
+ const i = JSON.parse(l(e.setting.name));
1616
+ c.value = v + i[0].url;
1572
1617
  }
1573
- return e.setting.options.validateList.length && f(e.setting.name, e.setting.options.validateList), (i, u) => e.isView && d.value ? (h(), R(n(N), {
1618
+ return e.setting.options.validateList.length && f(e.setting.name, e.setting.options.validateList), (i, y) => e.isView && d.value ? (b(), $(o(N), {
1574
1619
  key: 0,
1575
- modelValue: p.value,
1576
- "onUpdate:modelValue": u[2] || (u[2] = (o) => p.value = o),
1620
+ modelValue: c.value,
1621
+ "onUpdate:modelValue": y[2] || (y[2] = (n) => c.value = n),
1577
1622
  "margin-bottom": "0",
1578
1623
  prop: e.setting.name,
1579
1624
  label: i.setting.desc,
1580
1625
  type: "custom",
1581
- helpMessage: l.value,
1582
- required: c.value
1626
+ helpMessage: u.value,
1627
+ required: p.value
1583
1628
  }, {
1584
- default: L(() => [
1585
- p.value ? (h(), K("div", vs, [
1586
- w(n(Re), {
1587
- modelValue: p.value,
1588
- "onUpdate:modelValue": u[0] || (u[0] = (o) => p.value = o),
1629
+ default: M(() => [
1630
+ c.value ? (b(), P("div", La, [
1631
+ w(o(Pe), {
1632
+ modelValue: c.value,
1633
+ "onUpdate:modelValue": y[0] || (y[0] = (n) => c.value = n),
1589
1634
  status: g.value,
1590
- "onUpdate:status": u[1] || (u[1] = (o) => g.value = o),
1591
- required: c.value
1635
+ "onUpdate:status": y[1] || (y[1] = (n) => g.value = n),
1636
+ required: p.value
1592
1637
  }, null, 8, ["modelValue", "status", "required"])
1593
- ])) : (h(), K("div", ms, "-"))
1638
+ ])) : (b(), P("div", Ma, "-"))
1594
1639
  ]),
1595
1640
  _: 1
1596
1641
  /* STABLE */
1597
- }, 8, ["modelValue", "prop", "label", "helpMessage", "required"])) : q("v-if", !0);
1642
+ }, 8, ["modelValue", "prop", "label", "helpMessage", "required"])) : E("v-if", !0);
1598
1643
  }
1599
- }), hs = /* @__PURE__ */ de(ys, [["__scopeId", "data-v-6169bf17"]]), xe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1644
+ }), $a = /* @__PURE__ */ ce(Ta, [["__scopeId", "data-v-6169bf17"]]), st = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1600
1645
  __proto__: null,
1601
- default: hs
1602
- }, Symbol.toStringTag, { value: "Module" })), bs = {
1646
+ default: $a
1647
+ }, Symbol.toStringTag, { value: "Module" })), ka = {
1603
1648
  name: "switch"
1604
- }, _s = /* @__PURE__ */ j({
1605
- ...bs,
1649
+ }, Fa = /* @__PURE__ */ j({
1650
+ ...ka,
1606
1651
  props: {
1607
1652
  setting: { default: () => ({
1608
1653
  icon: "",
@@ -1616,50 +1661,50 @@ const Xt = (a, e) => {
1616
1661
  marginRight: {},
1617
1662
  store: {}
1618
1663
  },
1619
- setup(a) {
1620
- const e = a, { showData: t, setData: s, getData: m, setFormRule: f, deleteRule: b } = e.store || {}, d = r(!0);
1621
- !t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), D(
1664
+ setup(s) {
1665
+ const e = s, { showData: t, setData: a, getData: l, setFormRule: f, deleteRule: h } = e.store || {}, d = r(!0);
1666
+ !t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), S(
1622
1667
  () => t.value,
1623
1668
  () => {
1624
- d.value = t.value[e.setting.name], d.value || (g.value = null, b(e.setting.name)), d.value && e.setting.options.validateList.length && f(e.setting.name, e.setting.options.validateList);
1669
+ d.value = t.value[e.setting.name], d.value || (g.value = null, h(e.setting.name)), d.value && e.setting.options.validateList.length && f(e.setting.name, e.setting.options.validateList);
1625
1670
  },
1626
1671
  { deep: !0 }
1627
1672
  );
1628
1673
  const v = r(!1);
1629
- C(e.setting.options.validateList).then((l) => {
1630
- v.value = l;
1674
+ Q(e.setting.options.validateList).then((u) => {
1675
+ v.value = u;
1631
1676
  });
1632
- const c = r();
1633
- e.setting.options.tip && (c.value = E(e.setting.options.tip));
1677
+ const p = r();
1678
+ e.setting.options.tip && (p.value = A(e.setting.options.tip));
1634
1679
  const g = r();
1635
1680
  return setTimeout(() => {
1636
- g.value = m(e.setting.name) || e.setting.options.formulasDiyJs || g.value, g.value || s(e.setting.name, null);
1637
- }, 50), e.setting.options.validateList.length && f(e.setting.name, e.setting.options.validateList), D(g, (l) => {
1638
- s(e.setting.name, l);
1639
- }), (l, p) => d.value ? (h(), R(n(N), {
1681
+ g.value = l(e.setting.name) || e.setting.options.formulasDiyJs || g.value, g.value || a(e.setting.name, null);
1682
+ }, 50), e.setting.options.validateList.length && f(e.setting.name, e.setting.options.validateList), S(g, (u) => {
1683
+ a(e.setting.name, u);
1684
+ }), (u, c) => d.value ? (b(), $(o(N), {
1640
1685
  key: 0,
1641
1686
  col: e.span,
1642
1687
  modelValue: g.value,
1643
- "onUpdate:modelValue": p[0] || (p[0] = (i) => g.value = i),
1644
- label: l.setting.desc,
1688
+ "onUpdate:modelValue": c[0] || (c[0] = (i) => g.value = i),
1689
+ label: u.setting.desc,
1645
1690
  type: "switch",
1646
1691
  prop: e.setting.name,
1647
- activeValue: l.setting.options.activeValue,
1648
- inactiveValue: l.setting.options.inactiveValue,
1649
- activeText: l.setting.options.activeText,
1650
- inactiveText: l.setting.options.inactiveText,
1651
- helpMessage: c.value,
1692
+ activeValue: u.setting.options.activeValue,
1693
+ inactiveValue: u.setting.options.inactiveValue,
1694
+ activeText: u.setting.options.activeText,
1695
+ inactiveText: u.setting.options.inactiveText,
1696
+ helpMessage: p.value,
1652
1697
  required: v.value,
1653
1698
  isView: e.isView
1654
- }, null, 8, ["col", "modelValue", "label", "prop", "activeValue", "inactiveValue", "activeText", "inactiveText", "helpMessage", "required", "isView"])) : q("v-if", !0);
1699
+ }, null, 8, ["col", "modelValue", "label", "prop", "activeValue", "inactiveValue", "activeText", "inactiveText", "helpMessage", "required", "isView"])) : E("v-if", !0);
1655
1700
  }
1656
- }), Ye = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1701
+ }), nt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1657
1702
  __proto__: null,
1658
- default: _s
1659
- }, Symbol.toStringTag, { value: "Module" })), ws = {
1703
+ default: Fa
1704
+ }, Symbol.toStringTag, { value: "Module" })), Ia = {
1660
1705
  name: "text"
1661
- }, Vs = /* @__PURE__ */ j({
1662
- ...ws,
1706
+ }, ja = /* @__PURE__ */ j({
1707
+ ...Ia,
1663
1708
  props: {
1664
1709
  setting: { default: () => ({
1665
1710
  icon: "",
@@ -1673,47 +1718,47 @@ const Xt = (a, e) => {
1673
1718
  marginRight: {},
1674
1719
  store: {}
1675
1720
  },
1676
- setup(a) {
1677
- const e = a, { showData: t, setData: s, getData: m, setFormRule: f, deleteRule: b } = e.store || {}, d = r(!0);
1678
- !t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), D(
1721
+ setup(s) {
1722
+ const e = s, { showData: t, setData: a, getData: l, setFormRule: f, deleteRule: h } = e.store || {}, d = r(!0);
1723
+ !t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), S(
1679
1724
  () => t.value,
1680
1725
  () => {
1681
- d.value = t.value[e.setting.name], d.value || (c.value = null, b(e.setting.name)), d.value && e.setting.options.validateList.length && f(e.setting.name, e.setting.options.validateList);
1726
+ d.value = t.value[e.setting.name], d.value || (p.value = null, h(e.setting.name)), d.value && e.setting.options.validateList.length && f(e.setting.name, e.setting.options.validateList);
1682
1727
  },
1683
1728
  { deep: !0 }
1684
1729
  );
1685
1730
  const v = r();
1686
- e.setting.options.tip && (v.value = E(e.setting.options.tip));
1687
- const c = r();
1688
- return c.value = e.setting.options.textValue, c.value = m(e.setting.name) || c.value, c.value || s(e.setting.name, null), D(c, (g) => {
1689
- s(e.setting.name, g);
1690
- }), (g, l) => d.value ? (h(), R(n(N), {
1731
+ e.setting.options.tip && (v.value = A(e.setting.options.tip));
1732
+ const p = r();
1733
+ return p.value = e.setting.options.textValue, p.value = l(e.setting.name) || p.value, p.value || a(e.setting.name, null), S(p, (g) => {
1734
+ a(e.setting.name, g);
1735
+ }), (g, u) => d.value ? (b(), $(o(N), {
1691
1736
  key: 0,
1692
1737
  col: e.span,
1693
- modelValue: c.value,
1694
- "onUpdate:modelValue": l[1] || (l[1] = (p) => c.value = p),
1738
+ modelValue: p.value,
1739
+ "onUpdate:modelValue": u[1] || (u[1] = (c) => p.value = c),
1695
1740
  label: g.setting.desc,
1696
1741
  type: "custom",
1697
1742
  helpMessage: v.value
1698
1743
  }, {
1699
- default: L(() => [
1700
- w(n(Fe), {
1744
+ default: M(() => [
1745
+ w(o(ze), {
1701
1746
  type: "text",
1702
- modelValue: c.value,
1703
- "onUpdate:modelValue": l[0] || (l[0] = (p) => c.value = p)
1747
+ modelValue: p.value,
1748
+ "onUpdate:modelValue": u[0] || (u[0] = (c) => p.value = c)
1704
1749
  }, null, 8, ["modelValue"])
1705
1750
  ]),
1706
1751
  _: 1
1707
1752
  /* STABLE */
1708
- }, 8, ["col", "modelValue", "label", "helpMessage"])) : q("v-if", !0);
1753
+ }, 8, ["col", "modelValue", "label", "helpMessage"])) : E("v-if", !0);
1709
1754
  }
1710
- }), Je = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1755
+ }), ot = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1711
1756
  __proto__: null,
1712
- default: Vs
1713
- }, Symbol.toStringTag, { value: "Module" })), Ds = {
1757
+ default: ja
1758
+ }, Symbol.toStringTag, { value: "Module" })), qa = {
1714
1759
  name: "textarea"
1715
- }, Ss = /* @__PURE__ */ j({
1716
- ...Ds,
1760
+ }, Ba = /* @__PURE__ */ j({
1761
+ ...qa,
1717
1762
  props: {
1718
1763
  setting: { default: () => ({
1719
1764
  icon: "",
@@ -1727,39 +1772,39 @@ const Xt = (a, e) => {
1727
1772
  marginRight: {},
1728
1773
  store: {}
1729
1774
  },
1730
- setup(a) {
1731
- const e = a, { showData: t, setData: s, getData: m, setFormRule: f, deleteRule: b } = e.store || {}, d = r(!0);
1732
- !t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), D(
1775
+ setup(s) {
1776
+ const e = s, { showData: t, setData: a, getData: l, setFormRule: f, deleteRule: h } = e.store || {}, d = r(!0);
1777
+ !t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), S(
1733
1778
  () => t.value,
1734
1779
  () => {
1735
- d.value = t.value[e.setting.name], d.value || (g.value = "", b(e.setting.name)), d.value && e.setting.options.validateList.length && f(e.setting.name, e.setting.options.validateList);
1780
+ d.value = t.value[e.setting.name], d.value || (g.value = "", h(e.setting.name)), d.value && e.setting.options.validateList.length && f(e.setting.name, e.setting.options.validateList);
1736
1781
  },
1737
1782
  { deep: !0 }
1738
1783
  );
1739
1784
  const v = r(!1);
1740
- C(e.setting.options.validateList).then((i) => {
1785
+ Q(e.setting.options.validateList).then((i) => {
1741
1786
  v.value = i;
1742
1787
  });
1743
- const c = r();
1744
- e.setting.options.tip && (c.value = E(e.setting.options.tip));
1788
+ const p = r();
1789
+ e.setting.options.tip && (p.value = A(e.setting.options.tip));
1745
1790
  const g = r("");
1746
1791
  setTimeout(() => {
1747
- g.value = m(e.setting.name) || e.setting.options.formulasDiyJs || g.value, g.value || s(e.setting.name, null);
1792
+ g.value = l(e.setting.name) || e.setting.options.formulasDiyJs || g.value, g.value || a(e.setting.name, null);
1748
1793
  }, 50);
1749
- const l = r(), p = r();
1750
- return l.value = e.setting.options.initialFrameWidth ? e.setting.options.initialFrameWidth + "px" : "", p.value = e.setting.options.initialFrameHeight ? e.setting.options.initialFrameHeight + "px" : "", e.setting.options.validateList.length && f(e.setting.name, e.setting.options.validateList), D(g, (i) => {
1751
- s(e.setting.name, i);
1752
- }), (i, u) => (h(), K(
1794
+ const u = r(), c = r();
1795
+ return u.value = e.setting.options.initialFrameWidth ? e.setting.options.initialFrameWidth + "px" : "", c.value = e.setting.options.initialFrameHeight ? e.setting.options.initialFrameHeight + "px" : "", e.setting.options.validateList.length && f(e.setting.name, e.setting.options.validateList), S(g, (i) => {
1796
+ a(e.setting.name, i);
1797
+ }), (i, y) => (b(), P(
1753
1798
  G,
1754
1799
  null,
1755
1800
  [
1756
- !i.setting.options.isEditor && d.value ? (h(), R(n(N), {
1801
+ !i.setting.options.isEditor && d.value ? (b(), $(o(N), {
1757
1802
  key: 0,
1758
1803
  col: e.span,
1759
1804
  label: i.setting.desc,
1760
1805
  type: "textarea",
1761
1806
  modelValue: g.value,
1762
- "onUpdate:modelValue": u[0] || (u[0] = (o) => g.value = o),
1807
+ "onUpdate:modelValue": y[0] || (y[0] = (n) => g.value = n),
1763
1808
  prop: e.setting.name,
1764
1809
  placeholder: i.setting.options.placeholder,
1765
1810
  disabled: i.setting.options.isInputEdit,
@@ -1769,46 +1814,46 @@ const Xt = (a, e) => {
1769
1814
  maxRows: 3
1770
1815
  },
1771
1816
  "show-word-limit": "",
1772
- helpMessage: c.value,
1817
+ helpMessage: p.value,
1773
1818
  required: v.value
1774
- }, null, 8, ["col", "label", "modelValue", "prop", "placeholder", "disabled", "isView", "helpMessage", "required"])) : q("v-if", !0),
1775
- i.setting.options.isEditor && d.value ? (h(), R(n(N), {
1819
+ }, null, 8, ["col", "label", "modelValue", "prop", "placeholder", "disabled", "isView", "helpMessage", "required"])) : E("v-if", !0),
1820
+ i.setting.options.isEditor && d.value ? (b(), $(o(N), {
1776
1821
  key: 1,
1777
1822
  modelValue: g.value,
1778
- "onUpdate:modelValue": u[2] || (u[2] = (o) => g.value = o),
1823
+ "onUpdate:modelValue": y[2] || (y[2] = (n) => g.value = n),
1779
1824
  prop: e.setting.name,
1780
- contentWidth: l.value,
1825
+ contentWidth: u.value,
1781
1826
  label: i.setting.desc,
1782
1827
  type: "custom",
1783
- helpMessage: c.value,
1828
+ helpMessage: p.value,
1784
1829
  required: v.value,
1785
1830
  readOnly: e.isView
1786
1831
  }, {
1787
- default: L(() => [
1788
- w(n(Fe), {
1832
+ default: M(() => [
1833
+ w(o(ze), {
1789
1834
  ref: "editor",
1790
- width: l.value,
1791
- height: p.value,
1835
+ width: u.value,
1836
+ height: c.value,
1792
1837
  modelValue: g.value,
1793
- "onUpdate:modelValue": u[1] || (u[1] = (o) => g.value = o),
1838
+ "onUpdate:modelValue": y[1] || (y[1] = (n) => g.value = n),
1794
1839
  placeholder: i.setting.options.placeholder
1795
1840
  }, null, 8, ["width", "height", "modelValue", "placeholder"])
1796
1841
  ]),
1797
1842
  _: 1
1798
1843
  /* STABLE */
1799
- }, 8, ["modelValue", "prop", "contentWidth", "label", "helpMessage", "required", "readOnly"])) : q("v-if", !0)
1844
+ }, 8, ["modelValue", "prop", "contentWidth", "label", "helpMessage", "required", "readOnly"])) : E("v-if", !0)
1800
1845
  ],
1801
1846
  64
1802
1847
  /* STABLE_FRAGMENT */
1803
1848
  ));
1804
1849
  }
1805
- }), We = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1850
+ }), it = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1806
1851
  __proto__: null,
1807
- default: Ss
1808
- }, Symbol.toStringTag, { value: "Module" })), Ls = {
1852
+ default: Ba
1853
+ }, Symbol.toStringTag, { value: "Module" })), Ka = {
1809
1854
  name: "time"
1810
- }, Ms = /* @__PURE__ */ j({
1811
- ...Ls,
1855
+ }, Na = /* @__PURE__ */ j({
1856
+ ...Ka,
1812
1857
  props: {
1813
1858
  setting: { default: () => ({
1814
1859
  icon: "",
@@ -1822,44 +1867,44 @@ const Xt = (a, e) => {
1822
1867
  marginRight: {},
1823
1868
  store: {}
1824
1869
  },
1825
- setup(a) {
1826
- const e = a, { showData: t, setData: s, getData: m, setFormRule: f, deleteRule: b } = e.store || {}, d = r(!0);
1827
- !t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), D(
1870
+ setup(s) {
1871
+ const e = s, { showData: t, setData: a, getData: l, setFormRule: f, deleteRule: h } = e.store || {}, d = r(!0);
1872
+ !t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), S(
1828
1873
  () => t.value,
1829
1874
  () => {
1830
- d.value = t.value[e.setting.name], d.value || (g.value = null, b(e.setting.name)), d.value && e.setting.options.validateList.length && f(e.setting.name, e.setting.options.validateList);
1875
+ d.value = t.value[e.setting.name], d.value || (g.value = null, h(e.setting.name)), d.value && e.setting.options.validateList.length && f(e.setting.name, e.setting.options.validateList);
1831
1876
  },
1832
1877
  { deep: !0 }
1833
1878
  );
1834
1879
  const v = r(!1);
1835
- C(e.setting.options.validateList).then((l) => {
1836
- v.value = l;
1880
+ Q(e.setting.options.validateList).then((u) => {
1881
+ v.value = u;
1837
1882
  });
1838
- const c = r();
1839
- e.setting.options.tip && (c.value = E(e.setting.options.tip));
1883
+ const p = r();
1884
+ e.setting.options.tip && (p.value = A(e.setting.options.tip));
1840
1885
  const g = r();
1841
1886
  return setTimeout(() => {
1842
- const l = pe().format("YYYY-MM-DD ");
1843
- m(e.setting.name) && (g.value = m(e.setting.name)), e.setting.options.formulasDiyJs && (g.value = pe(l + e.setting.options.formulasDiyJs)), g.value || s(e.setting.name, null);
1844
- }, 50), e.setting.options.validateList.length && f(e.setting.name, e.setting.options.validateList), D(g, (l) => {
1845
- s(e.setting.name, l);
1846
- }), (l, p) => d.value ? (h(), R(n(N), {
1887
+ const u = ge().format("YYYY-MM-DD ");
1888
+ l(e.setting.name) && (g.value = l(e.setting.name)), e.setting.options.formulasDiyJs && (g.value = ge(u + e.setting.options.formulasDiyJs)), g.value || a(e.setting.name, null);
1889
+ }, 50), e.setting.options.validateList.length && f(e.setting.name, e.setting.options.validateList), S(g, (u) => {
1890
+ a(e.setting.name, u);
1891
+ }), (u, c) => d.value ? (b(), $(o(N), {
1847
1892
  key: 0,
1848
1893
  col: e.span,
1849
1894
  modelValue: g.value,
1850
- "onUpdate:modelValue": p[0] || (p[0] = (i) => g.value = i),
1895
+ "onUpdate:modelValue": c[0] || (c[0] = (i) => g.value = i),
1851
1896
  prop: e.setting.name,
1852
- label: l.setting.desc,
1897
+ label: u.setting.desc,
1853
1898
  type: "time",
1854
- helpMessage: c.value,
1899
+ helpMessage: p.value,
1855
1900
  isView: e.isView,
1856
1901
  required: v.value
1857
- }, null, 8, ["col", "modelValue", "prop", "label", "helpMessage", "isView", "required"])) : q("v-if", !0);
1902
+ }, null, 8, ["col", "modelValue", "prop", "label", "helpMessage", "isView", "required"])) : E("v-if", !0);
1858
1903
  }
1859
- }), He = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1904
+ }), lt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1860
1905
  __proto__: null,
1861
- default: Ms
1862
- }, Symbol.toStringTag, { value: "Module" })), Ts = j({
1906
+ default: Na
1907
+ }, Symbol.toStringTag, { value: "Module" })), Oa = j({
1863
1908
  name: "accordion",
1864
1909
  props: {
1865
1910
  columns: {
@@ -1875,34 +1920,34 @@ const Xt = (a, e) => {
1875
1920
  type: Object
1876
1921
  }
1877
1922
  },
1878
- setup(a) {
1879
- const e = r([]), t = a.columns.map((s) => {
1880
- const m = s.list.map(
1881
- (f) => oe(ge[f.ctrlType], { setting: f, isView: a.isView, store: a.store })
1923
+ setup(s) {
1924
+ const e = r([]), t = s.columns.map((a) => {
1925
+ const l = a.list.map(
1926
+ (f) => ie(de[f.ctrlType], { setting: f, isView: s.isView, store: s.store })
1882
1927
  );
1883
- return s.isOpen == !0 && e.value.push(s.idKey), oe(
1884
- je,
1928
+ return a.isOpen == !0 && e.value.push(a.idKey), ie(
1929
+ Qe,
1885
1930
  {
1886
- header: s.span,
1887
- key: `${s.idKey}`
1931
+ header: a.span,
1932
+ key: `${a.idKey}`
1888
1933
  },
1889
- oe("div", m)
1934
+ ie("div", l)
1890
1935
  );
1891
1936
  });
1892
- return () => oe(
1937
+ return () => ie(
1893
1938
  "div",
1894
1939
  { class: "accordion-layout" },
1895
- oe(
1896
- Oe,
1897
- { activeKey: e.value, collapsible: a.options.accordion ? "" : "disabled" },
1940
+ ie(
1941
+ Ue,
1942
+ { activeKey: e.value, collapsible: s.options.accordion ? "" : "disabled" },
1898
1943
  t
1899
1944
  )
1900
1945
  );
1901
1946
  }
1902
- }), Rs = {
1947
+ }), Pa = {
1903
1948
  name: "accordion"
1904
- }, $s = /* @__PURE__ */ j({
1905
- ...Rs,
1949
+ }, Ea = /* @__PURE__ */ j({
1950
+ ...Pa,
1906
1951
  props: {
1907
1952
  setting: { default: () => ({
1908
1953
  name: "",
@@ -1929,8 +1974,8 @@ const Xt = (a, e) => {
1929
1974
  isView: { type: Boolean },
1930
1975
  store: {}
1931
1976
  },
1932
- setup(a) {
1933
- return (e, t) => (h(), R(n(Ts), {
1977
+ setup(s) {
1978
+ return (e, t) => (b(), $(o(Oa), {
1934
1979
  columns: e.setting.columns,
1935
1980
  options: e.setting.options,
1936
1981
  isView: e.isView,
@@ -1938,13 +1983,13 @@ const Xt = (a, e) => {
1938
1983
  style: { "margin-bottom": "10px" }
1939
1984
  }, null, 8, ["columns", "options", "isView", "store"]));
1940
1985
  }
1941
- }), ks = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1986
+ }), Aa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1942
1987
  __proto__: null,
1943
- default: $s
1944
- }, Symbol.toStringTag, { value: "Module" })), Fs = {
1988
+ default: Ea
1989
+ }, Symbol.toStringTag, { value: "Module" })), za = {
1945
1990
  name: "grid"
1946
- }, Os = /* @__PURE__ */ j({
1947
- ...Fs,
1991
+ }, Ua = /* @__PURE__ */ j({
1992
+ ...za,
1948
1993
  props: {
1949
1994
  setting: { default: () => ({
1950
1995
  name: "",
@@ -1968,29 +2013,29 @@ const Xt = (a, e) => {
1968
2013
  isView: { type: Boolean },
1969
2014
  store: {}
1970
2015
  },
1971
- setup(a) {
1972
- const e = a;
1973
- return (t, s) => (h(), K(
2016
+ setup(s) {
2017
+ const e = s;
2018
+ return (t, a) => (b(), P(
1974
2019
  G,
1975
2020
  null,
1976
2021
  [
1977
- q(' <GridLayout :columns="setting.columns" :isView="props.isView" :store="store"></GridLayout> '),
1978
- q(' <div style="display: flex; flex-direction: row; flex-wrap: wrap; width: 100%"> '),
1979
- (h(!0), K(
2022
+ E(' <GridLayout :columns="setting.columns" :isView="props.isView" :store="store"></GridLayout> '),
2023
+ E(' <div style="display: flex; flex-direction: row; flex-wrap: wrap; width: 100%"> '),
2024
+ (b(!0), P(
1980
2025
  G,
1981
2026
  null,
1982
- ie(t.setting.columns, (m) => (h(), K(
2027
+ le(t.setting.columns, (l) => (b(), P(
1983
2028
  G,
1984
2029
  null,
1985
2030
  [
1986
- (h(!0), K(
2031
+ (b(!0), P(
1987
2032
  G,
1988
2033
  null,
1989
- ie(m.list, (f) => (h(), R(_e(n(Bs)[f.ctrlType]), {
2034
+ le(l.list, (f) => (b(), $(we(o(xa)[f.ctrlType]), {
1990
2035
  setting: f,
1991
2036
  isView: e.isView,
1992
2037
  store: t.store,
1993
- span: m.span
2038
+ span: l.span
1994
2039
  }, null, 8, ["setting", "isView", "store", "span"]))),
1995
2040
  256
1996
2041
  /* UNKEYED_FRAGMENT */
@@ -2002,201 +2047,204 @@ const Xt = (a, e) => {
2002
2047
  256
2003
2048
  /* UNKEYED_FRAGMENT */
2004
2049
  )),
2005
- q(" </div> ")
2050
+ E(" </div> ")
2006
2051
  ],
2007
2052
  2112
2008
2053
  /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
2009
2054
  ));
2010
2055
  }
2011
- }), js = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2056
+ }), Qa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2012
2057
  __proto__: null,
2013
- default: Os
2014
- }, Symbol.toStringTag, { value: "Module" })), fe = /* @__PURE__ */ Object.assign({ "./base/attachment.vue": Be, "./base/autocomplete.vue": Pe, "./base/checkbox.vue": Ne, "./base/date.vue": Ke, "./base/dropdown.vue": qe, "./base/imageViewer.vue": Ee, "./base/input.vue": ze, "./base/number.vue": Ae, "./base/radio.vue": Ue, "./base/select.vue": Ce, "./base/selector.vue": Qe, "./base/soundRecording.vue": xe, "./base/switch.vue": Ye, "./base/text.vue": Je, "./base/textarea.vue": We, "./base/time.vue": He, "./layout/accordion/accordion.vue": ks, "./layout/grid/gridLayout.vue": js }), ye = /* @__PURE__ */ Object.assign({ "./base/attachment.vue": Be, "./base/autocomplete.vue": Pe, "./base/checkbox.vue": Ne, "./base/date.vue": Ke, "./base/dropdown.vue": qe, "./base/imageViewer.vue": Ee, "./base/input.vue": ze, "./base/number.vue": Ae, "./base/radio.vue": Ue, "./base/select.vue": Ce, "./base/selector.vue": Qe, "./base/soundRecording.vue": xe, "./base/switch.vue": Ye, "./base/text.vue": Je, "./base/textarea.vue": We, "./base/time.vue": He }), he = /* @__PURE__ */ Object.assign({}), be = /* @__PURE__ */ Object.assign({}), ge = {}, Ze = {}, Ge = {}, Is = {};
2015
- Object.keys(ye).map((a) => Ze[ye[a].default.name] = ye[a].default);
2016
- Object.keys(he).map((a) => Ge[he[a].default.name] = he[a].default);
2017
- Object.keys(be).map((a) => Is[be[a].default.name] = be[a].default);
2018
- Object.keys(fe).map((a) => ge[fe[a].default.name] = fe[a].default);
2019
- const Bs = { ...Ze, ...Ge }, Ps = (a, e, t, s) => {
2020
- (!e || e.toString() === "") && parseInt(e) !== 0 ? t(new Error(`${s.name}`)) : t();
2021
- }, Ns = (a, e, t, s) => {
2022
- e !== "" && e.length > parseInt(s.value) ? t(new Error(`${s.name}不能超过${s.value}`)) : t();
2023
- }, Ks = (a, e, t, s) => {
2024
- e !== "" && e.length < parseInt(s.value) ? t(new Error(`${s.name}不能少于${s.value}`)) : t();
2025
- }, qs = (a, e, t, s) => {
2058
+ default: Ua
2059
+ }, Symbol.toStringTag, { value: "Module" })), ye = /* @__PURE__ */ Object.assign({ "./base/attachment.vue": xe, "./base/autocomplete.vue": Ye, "./base/checkbox.vue": Je, "./base/date.vue": We, "./base/dropdown.vue": He, "./base/imageViewer.vue": Ze, "./base/input.vue": Ge, "./base/number.vue": Xe, "./base/radio.vue": et, "./base/select.vue": tt, "./base/selector.vue": at, "./base/soundRecording.vue": st, "./base/switch.vue": nt, "./base/text.vue": ot, "./base/textarea.vue": it, "./base/time.vue": lt, "./layout/accordion/accordion.vue": Aa, "./layout/grid/gridLayout.vue": Qa }), he = /* @__PURE__ */ Object.assign({ "./base/attachment.vue": xe, "./base/autocomplete.vue": Ye, "./base/checkbox.vue": Je, "./base/date.vue": We, "./base/dropdown.vue": He, "./base/imageViewer.vue": Ze, "./base/input.vue": Ge, "./base/number.vue": Xe, "./base/radio.vue": et, "./base/select.vue": tt, "./base/selector.vue": at, "./base/soundRecording.vue": st, "./base/switch.vue": nt, "./base/text.vue": ot, "./base/textarea.vue": it, "./base/time.vue": lt }), be = /* @__PURE__ */ Object.assign({}), _e = /* @__PURE__ */ Object.assign({}), de = {}, ut = {}, rt = {}, Ca = {};
2060
+ Object.keys(he).map((s) => ut[he[s].default.name] = he[s].default);
2061
+ Object.keys(be).map((s) => rt[be[s].default.name] = be[s].default);
2062
+ Object.keys(_e).map((s) => Ca[_e[s].default.name] = _e[s].default);
2063
+ Object.keys(ye).map((s) => de[ye[s].default.name] = ye[s].default);
2064
+ const xa = { ...ut, ...rt }, Ya = (s, e, t, a) => {
2065
+ (!e || e.toString() === "") && parseInt(e) !== 0 ? t(new Error(`${a.name}`)) : t();
2066
+ }, Ja = (s, e, t, a) => {
2067
+ e !== "" && e.length > parseInt(a.value) ? t(new Error(`${a.name}不能超过${a.value}`)) : t();
2068
+ }, Wa = (s, e, t, a) => {
2069
+ e !== "" && e.length < parseInt(a.value) ? t(new Error(`${a.name}不能少于${a.value}`)) : t();
2070
+ }, Ha = (s, e, t, a) => {
2026
2071
  if (e !== "" && !/^1[3456789]\d{9}$/.test(e))
2027
2072
  return t(new Error("手机号码格式不正确,请重新输入")), !1;
2028
2073
  t();
2029
- }, Es = (a, e, t) => {
2074
+ }, Za = (s, e, t) => {
2030
2075
  if (e !== "" && !/^[A-Za-z0-9\u4e00-\u9fa5]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/.test(e))
2031
2076
  return t(new Error("电子邮箱格式不正确,请重新输入")), !1;
2032
2077
  t();
2033
- }, zs = (a, e, t) => {
2078
+ }, Ga = (s, e, t) => {
2034
2079
  if (e !== "" && !/^-?\d+$/.test(e))
2035
2080
  return t(new Error("请输入整数")), !1;
2036
2081
  t();
2037
- }, As = (a, e, t, s) => {
2038
- if (e !== "" && e != s.value)
2082
+ }, Xa = (s, e, t, a) => {
2083
+ if (e !== "" && e != a.value)
2039
2084
  return t(new Error("请输入相同的值")), !1;
2040
2085
  t();
2041
- }, Us = (a, e, t, s) => {
2042
- e === "" ? t() : /^[+-]?\d*\.?\d*$/.test(e) ? e < parseFloat(s.value) ? t(new Error(`${s.name}不能小于${s.value}`)) : t() : t(new Error("请输入数字"));
2043
- }, Cs = (a, e, t, s) => {
2044
- e === "" ? t() : /^[+-]?\d*\.?\d*$/.test(e) ? e > parseFloat(s.value) ? t(new Error(`${s.name}不能大于${s.value}`)) : t() : t(new Error("请输入数字"));
2045
- }, Qs = (a, e, t, s) => {
2046
- const m = /^[+-]?(\d*\.\d+([eE]?[+-]?\d+)?|\d+[eE][+-]?\d+)$/, f = /^-?\d+$/;
2047
- e === "" ? t() : m.test(e) || f.test(e) ? e >= parseFloat(s.start) && e <= parseFloat(s.end) ? t() : t(new Error(`只能输入指定数字范围${s.start}-${s.end}`)) : t(new Error("请输入数字"));
2048
- }, xs = (a, e, t, s) => {
2049
- e === "" || parseFloat(e) === parseFloat(s.value) ? t() : t(new Error(`只能输入指定的值${s.value}`));
2050
- }, Ys = (a, e, t, s) => {
2051
- e === "" ? t() : /^-?\d+$/.test(e) ? Math.abs(e).toString().length === parseInt(s.value) ? t() : t(new Error(`只能输入${s.value}位数数字`)) : t(new Error("请输入整数"));
2052
- }, Js = (a, e, t) => {
2086
+ }, es = (s, e, t, a) => {
2087
+ e === "" ? t() : /^[+-]?\d*\.?\d*$/.test(e) ? e < parseFloat(a.value) ? t(new Error(`${a.name}不能小于${a.value}`)) : t() : t(new Error("请输入数字"));
2088
+ }, ts = (s, e, t, a) => {
2089
+ e === "" ? t() : /^[+-]?\d*\.?\d*$/.test(e) ? e > parseFloat(a.value) ? t(new Error(`${a.name}不能大于${a.value}`)) : t() : t(new Error("请输入数字"));
2090
+ }, as = (s, e, t, a) => {
2091
+ const l = /^[+-]?(\d*\.\d+([eE]?[+-]?\d+)?|\d+[eE][+-]?\d+)$/, f = /^-?\d+$/;
2092
+ e === "" ? t() : l.test(e) || f.test(e) ? e >= parseFloat(a.start) && e <= parseFloat(a.end) ? t() : t(new Error(`只能输入指定数字范围${a.start}-${a.end}`)) : t(new Error("请输入数字"));
2093
+ }, ss = (s, e, t, a) => {
2094
+ e === "" || parseFloat(e) === parseFloat(a.value) ? t() : t(new Error(`只能输入指定的值${a.value}`));
2095
+ }, ns = (s, e, t, a) => {
2096
+ e === "" ? t() : /^-?\d+$/.test(e) ? Math.abs(e).toString().length === parseInt(a.value) ? t() : t(new Error(`只能输入${a.value}位数数字`)) : t(new Error("请输入整数"));
2097
+ }, os = (s, e, t) => {
2053
2098
  if (e !== "" && !/^[a-zA-Z]{1,}$/.test(e))
2054
2099
  return t(new Error("只能输入字母")), !1;
2055
2100
  t();
2056
- }, Ws = (a, e, t) => {
2101
+ }, is = (s, e, t) => {
2057
2102
  if (e !== "" && !/^[a-zA-Z ]{1,}$/.test(e))
2058
2103
  return t(new Error("只能输入字母空格")), !1;
2059
2104
  t();
2060
- }, Hs = (a, e, t) => {
2105
+ }, ls = (s, e, t) => {
2061
2106
  if (e !== "" && !/^[0-9a-zA-Z_-]{1,}$/.test(e))
2062
2107
  return t(new Error("只能输入字母数字横线下划线")), !1;
2063
2108
  t();
2064
- }, Zs = (a, e, t) => {
2109
+ }, us = (s, e, t) => {
2065
2110
  if (e !== "" && !/^[0-9a-zA-Z]{1,}$/.test(e))
2066
2111
  return t(new Error("只能输入字母数字")), !1;
2067
2112
  t();
2068
- }, Gs = (a, e, t, s) => {
2069
- const m = new RegExp(s.value);
2070
- if (e !== "" && !m.test(e))
2071
- return t(new Error("校验失败")), !1;
2113
+ }, rs = (s, e, t, a) => {
2114
+ const l = new RegExp(a.value);
2115
+ if (e !== "" && !l.test(e))
2116
+ return t(new Error(a.errorMessage)), !1;
2072
2117
  t();
2073
- }, Xs = {
2074
- required: Ps,
2075
- min: Ks,
2076
- max: Ns,
2077
- email: Es,
2078
- min_value: Us,
2079
- max_value: Cs,
2080
- confirmed: As,
2081
- numeric: zs,
2082
- between: Qs,
2083
- is: xs,
2084
- digits: Ys,
2085
- mobile: qs,
2086
- alpha: Js,
2087
- alpha_spaces: Ws,
2088
- alpha_dash: Hs,
2089
- alpha_num: Zs,
2090
- regex: Gs
2091
- }, ea = () => {
2092
- const a = r({}), e = r([]), t = r({}), s = r([]), m = r(""), f = r({});
2118
+ }, ps = {
2119
+ required: Ya,
2120
+ min: Wa,
2121
+ max: Ja,
2122
+ email: Za,
2123
+ min_value: es,
2124
+ max_value: ts,
2125
+ confirmed: Xa,
2126
+ numeric: Ga,
2127
+ between: as,
2128
+ is: ss,
2129
+ digits: ns,
2130
+ mobile: Ha,
2131
+ alpha: os,
2132
+ alpha_spaces: is,
2133
+ alpha_dash: ls,
2134
+ alpha_num: us,
2135
+ regex: rs
2136
+ }, gs = () => {
2137
+ const s = r({}), e = r([]), t = r({}), a = r([]), l = r(""), f = r(""), h = r({});
2093
2138
  return {
2094
- data: a,
2139
+ data: s,
2095
2140
  formData: e,
2096
- formRule: f,
2141
+ formRule: h,
2097
2142
  showData: t,
2098
- setData: (u, o) => {
2099
- e.value.forEach((y) => {
2100
- y.formKey === m.value && (y.data[u] = o);
2143
+ flowKey: l,
2144
+ setData: (n, m) => {
2145
+ e.value.forEach((R) => {
2146
+ R.formKey === f.value && (R.data[n] = m);
2101
2147
  });
2102
2148
  },
2103
- setDetailData: (u) => {
2104
- a.value = u, e.value.forEach((o) => {
2105
- o.formKey === m.value && (o.data = u);
2149
+ setDetailData: (n) => {
2150
+ s.value = n, e.value.forEach((m) => {
2151
+ m.formKey === f.value && (m.data = n);
2106
2152
  });
2107
2153
  },
2108
- getData: (u) => a.value[u],
2109
- setFormData: (u, o, y) => {
2110
- m.value = u, s.value.includes(u) ? e.value.forEach((M) => {
2111
- M.formKey === u && (a.value = M.data);
2112
- }) : (s.value.push(u), e.value.push({
2113
- formKey: u,
2114
- boKey: o,
2115
- reportId: y || null,
2154
+ getData: (n) => s.value[n],
2155
+ setFormData: (n, m, R) => {
2156
+ f.value = n, a.value.includes(n) ? e.value.forEach((D) => {
2157
+ D.formKey === n && (s.value = D.data);
2158
+ }) : (a.value.push(n), e.value.push({
2159
+ formKey: n,
2160
+ boKey: m,
2161
+ reportId: R || null,
2116
2162
  data: {}
2117
2163
  }));
2118
2164
  },
2119
2165
  getFormData: () => e.value,
2120
- setFormRule: (u, o) => {
2121
- f.value[u] = [], o && o.length && o.forEach((y) => {
2122
- f.value[u].push({
2123
- validator: (M, $, I) => Xs[y.key](M, $, I, y)
2166
+ setFormRule: (n, m) => {
2167
+ h.value[n] = [], m && m.length && m.forEach((R) => {
2168
+ h.value[n].push({
2169
+ validator: (D, B, O) => ps[R.key](D, B, O, R)
2124
2170
  });
2125
2171
  });
2126
2172
  },
2127
2173
  clearData: () => {
2128
- a.value = {}, e.value = [], s.value = [], f.value = {};
2174
+ s.value = {}, e.value = [], a.value = [], h.value = {};
2129
2175
  },
2130
- deleteRule: (u) => {
2131
- delete f.value[u];
2176
+ deleteRule: (n) => {
2177
+ delete h.value[n];
2132
2178
  }
2133
2179
  };
2134
- }, ta = { class: "custom-page" }, sa = {
2180
+ }, ds = { class: "custom-page" }, cs = {
2135
2181
  key: 0,
2136
2182
  class: "btn-box"
2137
- }, aa = { class: "content-box" }, na = {
2183
+ }, vs = { class: "content-box" }, ms = {
2138
2184
  key: 0,
2139
2185
  style: { "background-color": "#fff" }
2140
- }, oa = /* @__PURE__ */ j({
2186
+ }, fs = /* @__PURE__ */ j({
2141
2187
  __name: "App",
2142
2188
  props: {
2143
2189
  formConfigurationId: {},
2144
- flowKey: {},
2190
+ flowKey: { default: "" },
2145
2191
  isView: { type: Boolean, default: !1 },
2146
2192
  isShowBtn: { type: Boolean, default: !0 },
2147
2193
  data: { default: {} },
2148
2194
  showData: { default: {} }
2149
2195
  },
2150
2196
  emits: ["handleClick"],
2151
- setup(a, { expose: e, emit: t }) {
2152
- const s = ea(), { formRule: m, data: f, clearData: b, getFormData: d } = s, v = a, c = t, g = (z) => z === "grid", l = (z) => z === "accordion";
2153
- D(
2197
+ setup(s, { expose: e, emit: t }) {
2198
+ const a = gs(), { formRule: l, data: f, flowKey: h, clearData: d, getFormData: v } = a, p = s, g = t;
2199
+ h.value = p.flowKey;
2200
+ const u = (q) => q === "grid", c = (q) => q === "accordion";
2201
+ S(
2154
2202
  () => f.value,
2155
- (z) => {
2156
- v.data = z;
2203
+ (q) => {
2204
+ p.data = q;
2157
2205
  },
2158
2206
  {
2159
2207
  immediate: !0,
2160
2208
  deep: !0
2161
2209
  }
2162
2210
  );
2163
- const { formJsonList: p, isShowPage: i, btnList: u, formRef: o, activityKeys: y, getForm: M, getBtnSet: $, handleClick: I } = Bt(
2164
- v,
2165
- c,
2166
- s
2167
- ), B = r({}), Q = (z, U) => {
2168
- const { key: k } = U;
2169
- B.value[k] || (B.value[k] = z);
2170
- }, Z = () => new Promise((z, U) => {
2211
+ const { formJsonList: i, isShowPage: y, btnList: n, formRef: m, activityKeys: R, getForm: D, getBtnSet: B, handleClick: O } = xt(
2212
+ p,
2213
+ g,
2214
+ a
2215
+ ), U = r({}), Z = (q, se) => {
2216
+ const { key: k } = se;
2217
+ U.value[k] || (U.value[k] = q);
2218
+ }, te = () => new Promise((q, se) => {
2171
2219
  let k = !0;
2172
- for (const x in B.value)
2173
- B.value[x].validate((ae) => {
2174
- ae == !1 && (k = !1);
2220
+ for (const C in U.value)
2221
+ U.value[C].validate((ne) => {
2222
+ ne == !1 && (k = !1);
2175
2223
  });
2176
2224
  setTimeout(() => {
2177
- z({
2225
+ q({
2178
2226
  result: k,
2179
- data: d()
2227
+ data: v()
2180
2228
  });
2181
2229
  }, 50);
2182
2230
  });
2183
- return tt(async () => {
2184
- v.isShowBtn == !1 ? M(v.formConfigurationId) : $();
2231
+ return dt(async () => {
2232
+ p.isShowBtn == !1 ? D(p.formConfigurationId) : B();
2185
2233
  }), e({
2186
- validateFormData: Z,
2187
- clearData: b
2188
- }), (z, U) => (h(), K("div", ta, [
2189
- n(u).length > 0 ? (h(), K("div", sa, [
2190
- (h(!0), K(
2234
+ validateFormData: te,
2235
+ clearData: d
2236
+ }), (q, se) => (b(), P("div", ds, [
2237
+ o(n).length > 0 ? (b(), P("div", cs, [
2238
+ (b(!0), P(
2191
2239
  G,
2192
2240
  null,
2193
- ie(n(u), (k) => (h(), R(n(at), {
2241
+ le(o(n), (k) => (b(), $(o(vt), {
2194
2242
  key: k.id,
2195
2243
  style: { "margin-right": "20px" },
2196
2244
  "btn-type": "primary",
2197
- onClick: (x) => n(I)(k)
2245
+ onClick: (C) => o(O)(k)
2198
2246
  }, {
2199
- default: L(() => [
2247
+ default: M(() => [
2200
2248
  J(
2201
2249
  W(k.name),
2202
2250
  1
@@ -2209,71 +2257,71 @@ const Bs = { ...Ze, ...Ge }, Ps = (a, e, t, s) => {
2209
2257
  128
2210
2258
  /* KEYED_FRAGMENT */
2211
2259
  ))
2212
- ])) : q("v-if", !0),
2213
- H((h(), K("div", aa, [
2214
- (h(!0), K(
2260
+ ])) : E("v-if", !0),
2261
+ H((b(), P("div", vs, [
2262
+ (b(!0), P(
2215
2263
  G,
2216
2264
  null,
2217
- ie(n(p), (k) => (h(), K(
2265
+ le(o(i), (k) => (b(), P(
2218
2266
  G,
2219
2267
  {
2220
2268
  key: k.name
2221
2269
  },
2222
2270
  [
2223
- g(k.ctrlType) ? (h(), K("div", na, [
2224
- n(i) ? (h(), R(n(De), {
2271
+ u(k.ctrlType) ? (b(), P("div", ms, [
2272
+ o(y) ? (b(), $(o(qe), {
2225
2273
  key: 0,
2226
2274
  ref_for: !0,
2227
- ref: (x) => Q(x, k),
2275
+ ref: (C) => Z(C, k),
2228
2276
  cols: 24,
2229
2277
  "auto-margin-right": "",
2230
2278
  alignType: "horizontal",
2231
2279
  "margin-right": "80px",
2232
- rules: n(m),
2233
- form: n(s).data
2280
+ rules: o(l),
2281
+ form: o(a).data
2234
2282
  }, {
2235
- default: L(() => [
2236
- (h(), R(_e(n(ge)[k.ctrlType]), {
2283
+ default: M(() => [
2284
+ (b(), $(we(o(de)[k.ctrlType]), {
2237
2285
  setting: k,
2238
- isView: v.isView,
2239
- store: n(s)
2286
+ isView: p.isView,
2287
+ store: o(a)
2240
2288
  }, null, 8, ["setting", "isView", "store"]))
2241
2289
  ]),
2242
2290
  _: 2
2243
2291
  /* DYNAMIC */
2244
- }, 1032, ["rules", "form"])) : q("v-if", !0)
2245
- ])) : q("v-if", !0),
2246
- l(k.ctrlType) ? (h(), R(n(Oe), {
2292
+ }, 1032, ["rules", "form"])) : E("v-if", !0)
2293
+ ])) : E("v-if", !0),
2294
+ c(k.ctrlType) ? (b(), $(o(Ue), {
2247
2295
  key: 1,
2248
2296
  style: { "margin-bottom": "10px" },
2249
2297
  collapsible: k.options.accordion ? "" : "disabled",
2250
- activeKey: n(y)
2298
+ activeKey: o(R)
2251
2299
  }, {
2252
- default: L(() => [
2253
- (h(), R(n(je), {
2300
+ default: M(() => [
2301
+ (b(), $(o(Qe), {
2254
2302
  key: k.columns[0].idKey,
2255
2303
  header: k.columns[0].span
2256
2304
  }, {
2257
- default: L(() => [
2258
- w(n(De), {
2305
+ default: M(() => [
2306
+ w(o(qe), {
2259
2307
  ref_for: !0,
2260
- ref: (x) => Q(x, k),
2308
+ ref: (C) => Z(C, k),
2261
2309
  cols: 24,
2262
2310
  alignType: "horizontal",
2263
2311
  "margin-right": "80px",
2264
2312
  "auto-margin-right": "",
2265
- rules: n(m),
2266
- form: n(s).data
2313
+ rules: o(l),
2314
+ form: o(a).data
2267
2315
  }, {
2268
- default: L(() => [
2269
- (h(!0), K(
2316
+ default: M(() => [
2317
+ (b(!0), P(
2270
2318
  G,
2271
2319
  null,
2272
- ie(k.columns[0].list, (x) => (h(), R(_e(n(ge).grid), {
2320
+ le(k.columns[0].list, (C) => (b(), $(we(o(de).grid), {
2273
2321
  key: k.name,
2274
- setting: x,
2275
- isView: v.isView,
2276
- store: n(s)
2322
+ setting: C,
2323
+ isView: p.isView,
2324
+ store: o(a)
2277
2325
  }, null, 8, ["setting", "isView", "store"]))),
2278
2326
  128
2279
2327
  /* KEYED_FRAGMENT */
@@ -2289,7 +2337,7 @@ const Bs = { ...Ze, ...Ge }, Ps = (a, e, t, s) => {
2289
2337
  ]),
2290
2338
  _: 2
2291
2339
  /* DYNAMIC */
2292
- }, 1032, ["collapsible", "activeKey"])) : q("v-if", !0)
2340
+ }, 1032, ["collapsible", "activeKey"])) : E("v-if", !0)
2293
2341
  ],
2294
2342
  64
2295
2343
  /* STABLE_FRAGMENT */
@@ -2298,12 +2346,12 @@ const Bs = { ...Ze, ...Ge }, Ps = (a, e, t, s) => {
2298
2346
  /* KEYED_FRAGMENT */
2299
2347
  ))
2300
2348
  ])), [
2301
- [n(nt)]
2349
+ [o(mt)]
2302
2350
  ])
2303
2351
  ]));
2304
2352
  }
2305
- }), ia = /* @__PURE__ */ de(oa, [["__scopeId", "data-v-5bc1c34c"]]), $a = Xe(ia);
2353
+ }), ys = /* @__PURE__ */ ce(fs, [["__scopeId", "data-v-e66ad66d"]]), Es = pt(ys);
2306
2354
  export {
2307
- $a as DasProcessForm,
2308
- $a as default
2355
+ Es as DasProcessForm,
2356
+ Es as default
2309
2357
  };