@das-fed/ui 6.4.0-hot.6 → 6.4.0-hot.8

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