@das-fed/ui 7.1.0-dev.33 → 7.1.0-dev.36

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