@das-fed/ui 6.4.0-test.3 → 6.4.0-test.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/i18n-collection/en.js +12 -12
- package/i18n-collection/zh-CN.js +456 -456
- package/package.json +5 -5
- package/packages/business-components/device-panel/index.js +1114 -1109
- package/packages/business-components/device-panel/index.js.gz +0 -0
- package/packages/business-components/device-panel/style.css +1 -1
- package/packages/business-components/device-panel/style.css.gz +0 -0
- package/packages/business-components/process-form/index.js +412 -410
- package/packages/business-components/process-form/index.js.gz +0 -0
- package/packages/business-components/process-form/style.css +1 -1
- package/packages/business-components/urgent-panel/index.js +3 -2
- package/packages/business-components/urgent-panel/index.js.gz +0 -0
- package/packages/business-components/urgent-panel/style.css +1 -1
- package/packages/business-components/urgent-panel/style.css.gz +0 -0
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import '@das-fed/ui/packages/business-components/process-form/style.css';
|
|
2
2
|
import { withInstall as pt } from "@das-fed/utils/with-install/index";
|
|
3
|
-
import { ref as l, defineComponent as
|
|
4
|
-
import { DasFormRef as mt, DasForm as
|
|
3
|
+
import { ref as l, defineComponent as A, watch as M, openBlock as S, createBlock as P, unref as a, withCtx as $, createVNode as L, createCommentVNode as j, createElementVNode as Ne, createElementBlock as C, Fragment as H, createTextVNode as X, toDisplayString as ee, isRef as fe, createSlots as dt, h as ie, renderList as oe, resolveDynamicComponent as De, onMounted as gt, withDirectives as ct, normalizeStyle as vt } from "vue";
|
|
4
|
+
import { DasFormRef as mt, DasForm as je } from "@das-fed/ui/packages/components/form/index";
|
|
5
5
|
import { DasButton as ft } from "@das-fed/ui/packages/components/button/index";
|
|
6
6
|
import { vOverlay as yt } from "@das-fed/ui/packages/components/overlay/index";
|
|
7
7
|
import { createService as J } from "@das-fed/utils/create-api-service";
|
|
8
8
|
import { DasUpload as ht } from "@das-fed/ui/packages/components/upload/index";
|
|
9
|
-
import { DasFormItem as
|
|
9
|
+
import { DasFormItem as z } from "@das-fed/ui/packages/components/form-item/index";
|
|
10
10
|
import { DasAutocomplete as bt } from "@das-fed/ui/packages/components/autocomplete/index";
|
|
11
|
-
import
|
|
11
|
+
import ce from "dayjs";
|
|
12
12
|
import { DasImageViewer as Ee } from "@das-fed/ui/packages/components/image-viewer/index";
|
|
13
13
|
import { DasInput as _t } from "@das-fed/ui/packages/components/input/index";
|
|
14
14
|
import { DasTooltip as Oe } from "@das-fed/ui/packages/components/tooltip/index";
|
|
15
15
|
import { i18n as E, t as D } from "@das-fed/web/packages/i18n/index";
|
|
16
|
-
import { DasTableColumn as
|
|
16
|
+
import { DasTableColumn as q } from "@das-fed/ui/packages/components/table/index";
|
|
17
17
|
import { DasSearchForm as wt } from "@das-fed/ui/packages/components/search-form/index";
|
|
18
18
|
import { DasModelTableDialog as Vt } from "@das-fed/ui/packages/business-components/model-table-dialog";
|
|
19
19
|
import { getProjectInfo as Qe } from "@das-fed/utils/common-info";
|
|
@@ -23,26 +23,26 @@ import { DasCollaspe as ze } from "@das-fed/ui/packages/components/collaspe/inde
|
|
|
23
23
|
import { DasCollaspePanel as Ue } from "@das-fed/ui/packages/components/collapse-panel/index";
|
|
24
24
|
const Z = "v1", St = J(`/workflow/form/form/${Z}`), Lt = J(`/workflow/form/formDef/${Z}`);
|
|
25
25
|
J(`/workflow/api/user/${Z}`);
|
|
26
|
-
const Ce = J(`/workflow/api/extend/${Z}`), Mt = J(`/workflow/flow/def/${Z}`), kt = J(`/workflow/form/customQuery/${Z}`), te = J(`/api/enterpriseright/permission/${Z}`),
|
|
26
|
+
const Ce = J(`/workflow/api/extend/${Z}`), Mt = J(`/workflow/flow/def/${Z}`), kt = J(`/workflow/form/customQuery/${Z}`), te = J(`/api/enterpriseright/permission/${Z}`), Se = J(`/api/space-manage/space-tree/${Z}`), Le = J(`/api/supply/supplier/${Z}`), Tt = J(`/api/warehouse/vms/${Z}/asset-receive`), Rt = St.get("/formDesign"), $t = Lt.get("/get"), Ft = Ce.get("/report-config");
|
|
27
27
|
Ce.get("/application-report");
|
|
28
|
-
const It = Mt.get("/getBindRelationByDefKey"), qt = kt.get("/getByAlias"),
|
|
28
|
+
const It = Mt.get("/getBindRelationByDefKey"), qt = kt.get("/getByAlias"), Pt = te.get("/organization/authTree"), jt = te.post("/user/list"), Bt = te.post("/data/user-query"), Kt = te.get("/role/list"), Nt = te.post("/data/role-ids"), Et = te.get("/organization/organizationpage"), Ot = te.get("/station/list"), Qt = te.get("/position/list"), ye = te.post("/organization/detailbyids"), At = Se.get("/controller/area-children"), zt = Se.get("/controller/fuzzy-tree-all"), Ut = Se.get("/controller/space"), Ct = Le.post("/supplier/list/page", (s) => {
|
|
29
29
|
var e, t;
|
|
30
30
|
return s.data.pageBean = {
|
|
31
31
|
page: ((e = s == null ? void 0 : s.data) == null ? void 0 : e.pageIndex) || 1,
|
|
32
32
|
pageSize: ((t = s == null ? void 0 : s.data) == null ? void 0 : t.pageSize) || 20
|
|
33
33
|
}, s;
|
|
34
|
-
}), xt =
|
|
35
|
-
const { setDetailData: n, getFormData:
|
|
34
|
+
}), xt = Le.get("/supplier"), Yt = Le.post("/classification/list/all"), Jt = Tt.get("/receive-code"), he = l(""), Wt = (s, e, t) => {
|
|
35
|
+
const { setDetailData: n, getFormData: c, setFormData: i, formRule: b, showData: V, disabledData: r } = t, y = l([]), d = l([]), f = l([]), g = l(!1), o = mt(), h = l([]), u = (_) => Object.keys(_).length === 0, v = async (_) => {
|
|
36
36
|
const [w, k] = await Rt({ formId: _ }).run();
|
|
37
37
|
if (w) return;
|
|
38
38
|
const N = JSON.parse(k.bos);
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
he.value = N[0].alias, d.value.length && d.value.forEach((R) => {
|
|
40
|
+
R.formKey === k.formKey && i(k.formKey, he.value, R.id);
|
|
41
41
|
});
|
|
42
42
|
const [O, G] = await $t({ formDefId: k.defId }).run();
|
|
43
|
-
f.value = JSON.parse(G.value.expand).list, f.value.forEach((
|
|
44
|
-
|
|
45
|
-
}), r.value = { ...r.value, ...s.disabledData }, d.value.length || i(k.formKey,
|
|
43
|
+
f.value = JSON.parse(G.value.expand).list, f.value.forEach((R) => {
|
|
44
|
+
R.columns && R.columns[0].isOpen && h.value.push(R.columns[0].idKey);
|
|
45
|
+
}), r.value = { ...r.value, ...s.disabledData }, d.value.length || i(k.formKey, he.value), u(s.data) && (g.value = !0), u(s.data) || (n(s.data), s.flowKey && (y.value = s.data.button_list ? JSON.parse(s.data.button_list) : []), g.value = !0), setTimeout(() => {
|
|
46
46
|
V.value = { ...V.value, ...s.showData };
|
|
47
47
|
}, 50);
|
|
48
48
|
};
|
|
@@ -52,24 +52,24 @@ const It = Mt.get("/getBindRelationByDefKey"), qt = kt.get("/getByAlias"), jt =
|
|
|
52
52
|
btnList: y,
|
|
53
53
|
formRef: o,
|
|
54
54
|
activityKeys: h,
|
|
55
|
-
getForm:
|
|
55
|
+
getForm: v,
|
|
56
56
|
getBtnSet: async () => {
|
|
57
57
|
if (s.formConfigurationId) {
|
|
58
58
|
const [_, w] = await Ft({ id: s.formConfigurationId }).run();
|
|
59
59
|
if (_) return;
|
|
60
|
-
d.value = w.reports, y.value = w.reports[0].buttons.filter((k) => !(s.isView && k.event !== "LINK")),
|
|
60
|
+
d.value = w.reports, y.value = w.reports[0].buttons.filter((k) => !(s.isView && k.event !== "LINK")), v(w.reports[0].formId);
|
|
61
61
|
}
|
|
62
62
|
if (s.flowKey) {
|
|
63
63
|
const [_, w] = await It({ flowKey: s.flowKey }).run();
|
|
64
64
|
if (_) return;
|
|
65
|
-
|
|
65
|
+
v(w.pcForm.pcFormId);
|
|
66
66
|
}
|
|
67
67
|
},
|
|
68
68
|
handleClick: (_) => {
|
|
69
69
|
var w;
|
|
70
70
|
(w = o.value) == null || w.validate(async (k) => {
|
|
71
|
-
k && (e("handleClick", _,
|
|
72
|
-
_.eventTarget === N.formKey && (y.value = N.buttons.filter((O) => !(s.isView && O.event !== "LINK")), g.value = !1, b.value = {},
|
|
71
|
+
k && (e("handleClick", _, c()), _.event === "LINK" && d.value.forEach((N) => {
|
|
72
|
+
_.eventTarget === N.formKey && (y.value = N.buttons.filter((O) => !(s.isView && O.event !== "LINK")), g.value = !1, b.value = {}, v(N.formId));
|
|
73
73
|
}));
|
|
74
74
|
});
|
|
75
75
|
}
|
|
@@ -78,13 +78,13 @@ const It = Mt.get("/getBindRelationByDefKey"), qt = kt.get("/getByAlias"), jt =
|
|
|
78
78
|
var e = new RegExp("<.+?>", "g"), t = s.replace(e, "").replace(/ /g, "");
|
|
79
79
|
return t;
|
|
80
80
|
}, ne = async (s, e, t = {}) => {
|
|
81
|
-
const [n,
|
|
82
|
-
if (!n &&
|
|
81
|
+
const [n, c] = await qt({ alias: s }).run();
|
|
82
|
+
if (!n && c.url) {
|
|
83
83
|
const i = l({});
|
|
84
84
|
e.forEach((y) => {
|
|
85
85
|
y.defaultType == 2 && (i.value[y.field] = y.defaultValue);
|
|
86
86
|
}), i.value = { ...i.value, ...t };
|
|
87
|
-
const b =
|
|
87
|
+
const b = c.requestType === "POST" ? J(c.url).post("") : J(c.url).get(""), [V, r] = await b({}, { params: i.value }).run();
|
|
88
88
|
return V ? void 0 : r;
|
|
89
89
|
}
|
|
90
90
|
}, Y = async (s) => {
|
|
@@ -94,7 +94,7 @@ const It = Mt.get("/getBindRelationByDefKey"), qt = kt.get("/getByAlias"), jt =
|
|
|
94
94
|
}), e.value;
|
|
95
95
|
}, Ht = {
|
|
96
96
|
name: "attachment"
|
|
97
|
-
}, Zt = /* @__PURE__ */
|
|
97
|
+
}, Zt = /* @__PURE__ */ A({
|
|
98
98
|
...Ht,
|
|
99
99
|
props: {
|
|
100
100
|
setting: { default: () => ({
|
|
@@ -110,7 +110,7 @@ const It = Mt.get("/getBindRelationByDefKey"), qt = kt.get("/getByAlias"), jt =
|
|
|
110
110
|
store: {}
|
|
111
111
|
},
|
|
112
112
|
setup(s) {
|
|
113
|
-
const e = s, { showData: t, disabledData: n, setData:
|
|
113
|
+
const e = s, { showData: t, disabledData: n, setData: c, getData: i, setFormRule: b, deleteRule: V } = e.store || {}, r = l(!0);
|
|
114
114
|
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), M(
|
|
115
115
|
() => t.value,
|
|
116
116
|
() => {
|
|
@@ -121,16 +121,16 @@ const It = Mt.get("/getBindRelationByDefKey"), qt = kt.get("/getByAlias"), jt =
|
|
|
121
121
|
const y = l();
|
|
122
122
|
e.setting.options.tip && (y.value = x(e.setting.options.tip));
|
|
123
123
|
const d = l([{ name: "111", sizeText: "9.4KB" }]);
|
|
124
|
-
return d.value ||
|
|
125
|
-
|
|
126
|
-
}), (f, g) => r.value ? (S(),
|
|
124
|
+
return d.value || c(e.setting.name, null), M(d, (f) => {
|
|
125
|
+
c(e.setting.name, JSON.stringify(f));
|
|
126
|
+
}), (f, g) => r.value ? (S(), P(a(z), {
|
|
127
127
|
key: 0,
|
|
128
128
|
col: e.span,
|
|
129
129
|
label: f.setting.desc,
|
|
130
130
|
type: "custom",
|
|
131
131
|
helpMessage: y.value
|
|
132
132
|
}, {
|
|
133
|
-
default:
|
|
133
|
+
default: $(() => [
|
|
134
134
|
L(a(ht), {
|
|
135
135
|
style: { width: "100%" },
|
|
136
136
|
modelValue: d.value,
|
|
@@ -139,14 +139,14 @@ const It = Mt.get("/getBindRelationByDefKey"), qt = kt.get("/getByAlias"), jt =
|
|
|
139
139
|
]),
|
|
140
140
|
_: 1
|
|
141
141
|
/* STABLE */
|
|
142
|
-
}, 8, ["col", "label", "helpMessage"])) :
|
|
142
|
+
}, 8, ["col", "label", "helpMessage"])) : j("v-if", !0);
|
|
143
143
|
}
|
|
144
144
|
}), xe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
145
145
|
__proto__: null,
|
|
146
146
|
default: Zt
|
|
147
147
|
}, Symbol.toStringTag, { value: "Module" })), Gt = {
|
|
148
148
|
name: "autocomplete"
|
|
149
|
-
}, Xt = /* @__PURE__ */
|
|
149
|
+
}, Xt = /* @__PURE__ */ A({
|
|
150
150
|
...Gt,
|
|
151
151
|
props: {
|
|
152
152
|
setting: { default: () => ({
|
|
@@ -162,62 +162,62 @@ const It = Mt.get("/getBindRelationByDefKey"), qt = kt.get("/getByAlias"), jt =
|
|
|
162
162
|
store: {}
|
|
163
163
|
},
|
|
164
164
|
setup(s) {
|
|
165
|
-
const e = s, { showData: t, disabledData: n, setData:
|
|
165
|
+
const e = s, { showData: t, disabledData: n, setData: c, getData: i, setFormRule: b, deleteRule: V } = e.store || {}, r = l(!0);
|
|
166
166
|
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), M(
|
|
167
167
|
() => t.value,
|
|
168
168
|
() => {
|
|
169
|
-
r.value = t.value[e.setting.name], r.value || (
|
|
169
|
+
r.value = t.value[e.setting.name], r.value || (v.value = "", V(e.setting.name)), r.value && e.setting.options.validateList.length && b(e.setting.name, e.setting.options.validateList);
|
|
170
170
|
},
|
|
171
171
|
{ deep: !0 }
|
|
172
172
|
);
|
|
173
173
|
const y = n.value[e.setting.name] || !1, d = l(!1);
|
|
174
|
-
Y(e.setting.options.validateList).then((
|
|
175
|
-
d.value =
|
|
174
|
+
Y(e.setting.options.validateList).then((m) => {
|
|
175
|
+
d.value = m;
|
|
176
176
|
});
|
|
177
177
|
const f = e.setting.options.customQuery.valueBind ? e.setting.options.customQuery.valueBind : "value", g = e.setting.options.children ? e.setting.options.children : "children", o = !!e.setting.options.fillInFullPath, h = l([]);
|
|
178
|
-
e.setting.options.customQuery.alias ? ne(e.setting.options.customQuery.alias, e.setting.options.customQuery.conditionfield).then((
|
|
179
|
-
h.value =
|
|
178
|
+
e.setting.options.customQuery.alias ? ne(e.setting.options.customQuery.alias, e.setting.options.customQuery.conditionfield).then((m) => {
|
|
179
|
+
h.value = m;
|
|
180
180
|
}) : h.value = e.setting.options.options;
|
|
181
181
|
const u = l();
|
|
182
182
|
e.setting.options.tip && (u.value = x(e.setting.options.tip));
|
|
183
|
-
const
|
|
184
|
-
return
|
|
185
|
-
|
|
186
|
-
}), (
|
|
183
|
+
const v = l("");
|
|
184
|
+
return v.value = i(e.setting.name) || v.value, v.value || c(e.setting.name, null), e.setting.options.validateList.length && b(e.setting.name, e.setting.options.validateList), M(v, (m) => {
|
|
185
|
+
c(e.setting.name, m.toString());
|
|
186
|
+
}), (m, p) => r.value ? (S(), P(a(z), {
|
|
187
187
|
key: 0,
|
|
188
188
|
col: e.span,
|
|
189
189
|
prop: e.setting.name,
|
|
190
|
-
modelValue:
|
|
191
|
-
"onUpdate:modelValue": p[1] || (p[1] = (_) =>
|
|
192
|
-
label:
|
|
190
|
+
modelValue: v.value,
|
|
191
|
+
"onUpdate:modelValue": p[1] || (p[1] = (_) => v.value = _),
|
|
192
|
+
label: m.setting.desc,
|
|
193
193
|
type: "custom",
|
|
194
194
|
helpMessage: u.value,
|
|
195
195
|
required: d.value,
|
|
196
196
|
disabled: a(y)
|
|
197
197
|
}, {
|
|
198
|
-
default:
|
|
198
|
+
default: $(() => [
|
|
199
199
|
L(a(bt), {
|
|
200
|
-
modelValue:
|
|
201
|
-
"onUpdate:modelValue": p[0] || (p[0] = (_) =>
|
|
200
|
+
modelValue: v.value,
|
|
201
|
+
"onUpdate:modelValue": p[0] || (p[0] = (_) => v.value = _),
|
|
202
202
|
options: h.value,
|
|
203
203
|
isView: e.isView,
|
|
204
204
|
width: "100%",
|
|
205
205
|
fieldNames: { label: a(f), children: a(g) },
|
|
206
206
|
showFullPath: a(o),
|
|
207
|
-
placeholder:
|
|
207
|
+
placeholder: m.setting.options.placeholder,
|
|
208
208
|
clearable: ""
|
|
209
209
|
}, null, 8, ["modelValue", "options", "isView", "fieldNames", "showFullPath", "placeholder"])
|
|
210
210
|
]),
|
|
211
211
|
_: 1
|
|
212
212
|
/* STABLE */
|
|
213
|
-
}, 8, ["col", "prop", "modelValue", "label", "helpMessage", "required", "disabled"])) :
|
|
213
|
+
}, 8, ["col", "prop", "modelValue", "label", "helpMessage", "required", "disabled"])) : j("v-if", !0);
|
|
214
214
|
}
|
|
215
215
|
}), Ye = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
216
216
|
__proto__: null,
|
|
217
217
|
default: Xt
|
|
218
218
|
}, Symbol.toStringTag, { value: "Module" })), ea = {
|
|
219
219
|
name: "checkbox"
|
|
220
|
-
}, ta = /* @__PURE__ */
|
|
220
|
+
}, ta = /* @__PURE__ */ A({
|
|
221
221
|
...ea,
|
|
222
222
|
props: {
|
|
223
223
|
setting: { default: () => ({
|
|
@@ -233,7 +233,7 @@ const It = Mt.get("/getBindRelationByDefKey"), qt = kt.get("/getByAlias"), jt =
|
|
|
233
233
|
store: {}
|
|
234
234
|
},
|
|
235
235
|
setup(s) {
|
|
236
|
-
const e = s, { showData: t, disabledData: n, setData:
|
|
236
|
+
const e = s, { showData: t, disabledData: n, setData: c, getData: i, setFormRule: b, deleteRule: V } = e.store || {}, r = l(!0);
|
|
237
237
|
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), M(
|
|
238
238
|
() => t.value,
|
|
239
239
|
() => {
|
|
@@ -242,27 +242,27 @@ const It = Mt.get("/getBindRelationByDefKey"), qt = kt.get("/getByAlias"), jt =
|
|
|
242
242
|
{ deep: !0 }
|
|
243
243
|
);
|
|
244
244
|
const y = n.value[e.setting.name] || !1, d = l(!1);
|
|
245
|
-
Y(e.setting.options.validateList).then((
|
|
246
|
-
d.value =
|
|
245
|
+
Y(e.setting.options.validateList).then((v) => {
|
|
246
|
+
d.value = v;
|
|
247
247
|
});
|
|
248
248
|
const f = e.setting.options.customQuery.valueBind ? e.setting.options.customQuery.valueBind : "key", g = e.setting.options.customQuery.labelBind ? e.setting.options.customQuery.labelBind : "value", o = l([]);
|
|
249
|
-
e.setting.options.customQuery.alias ? ne(e.setting.options.customQuery.alias, e.setting.options.customQuery.conditionfield).then((
|
|
250
|
-
o.value =
|
|
249
|
+
e.setting.options.customQuery.alias ? ne(e.setting.options.customQuery.alias, e.setting.options.customQuery.conditionfield).then((v) => {
|
|
250
|
+
o.value = v;
|
|
251
251
|
}) : o.value = e.setting.options.options;
|
|
252
252
|
const h = l();
|
|
253
253
|
e.setting.options.tip && (h.value = x(e.setting.options.tip)());
|
|
254
254
|
const u = l([]);
|
|
255
255
|
return setTimeout(() => {
|
|
256
|
-
i(e.setting.name) && (u.value = i(e.setting.name).split(",")), e.setting.options.formulasDiyJs && (u.value = e.setting.options.formulasDiyJs.split(",")), u.value.length || u.value ||
|
|
257
|
-
}, 50), e.setting.options.validateList.length && b(e.setting.name, e.setting.options.validateList), M(u, (
|
|
258
|
-
|
|
259
|
-
}), (
|
|
256
|
+
i(e.setting.name) && (u.value = i(e.setting.name).split(",")), e.setting.options.formulasDiyJs && (u.value = e.setting.options.formulasDiyJs.split(",")), u.value.length || u.value || c(e.setting.name, null);
|
|
257
|
+
}, 50), e.setting.options.validateList.length && b(e.setting.name, e.setting.options.validateList), M(u, (v) => {
|
|
258
|
+
c(e.setting.name, v.toString());
|
|
259
|
+
}), (v, m) => r.value ? (S(), P(a(z), {
|
|
260
260
|
key: 0,
|
|
261
261
|
col: e.span,
|
|
262
262
|
modelValue: u.value,
|
|
263
|
-
"onUpdate:modelValue":
|
|
264
|
-
layout:
|
|
265
|
-
label:
|
|
263
|
+
"onUpdate:modelValue": m[0] || (m[0] = (p) => u.value = p),
|
|
264
|
+
layout: v.setting.options.inline ? "vertical" : "default",
|
|
265
|
+
label: v.setting.desc,
|
|
266
266
|
prop: e.setting.name,
|
|
267
267
|
type: "checkbox",
|
|
268
268
|
options: o.value,
|
|
@@ -272,14 +272,14 @@ const It = Mt.get("/getBindRelationByDefKey"), qt = kt.get("/getByAlias"), jt =
|
|
|
272
272
|
optionsLabelKey: a(g),
|
|
273
273
|
helpMessage: h.value,
|
|
274
274
|
required: d.value
|
|
275
|
-
}, null, 8, ["col", "modelValue", "layout", "label", "prop", "options", "isView", "disabled", "optionsValueKey", "optionsLabelKey", "helpMessage", "required"])) :
|
|
275
|
+
}, null, 8, ["col", "modelValue", "layout", "label", "prop", "options", "isView", "disabled", "optionsValueKey", "optionsLabelKey", "helpMessage", "required"])) : j("v-if", !0);
|
|
276
276
|
}
|
|
277
277
|
}), Je = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
278
278
|
__proto__: null,
|
|
279
279
|
default: ta
|
|
280
280
|
}, Symbol.toStringTag, { value: "Module" })), aa = {
|
|
281
281
|
name: "date"
|
|
282
|
-
}, sa = /* @__PURE__ */
|
|
282
|
+
}, sa = /* @__PURE__ */ A({
|
|
283
283
|
...aa,
|
|
284
284
|
props: {
|
|
285
285
|
setting: { default: () => ({
|
|
@@ -295,7 +295,7 @@ const It = Mt.get("/getBindRelationByDefKey"), qt = kt.get("/getByAlias"), jt =
|
|
|
295
295
|
store: {}
|
|
296
296
|
},
|
|
297
297
|
setup(s) {
|
|
298
|
-
const e = s, { showData: t, disabledData: n, setData:
|
|
298
|
+
const e = s, { showData: t, disabledData: n, setData: c, getData: i, setFormRule: b, deleteRule: V } = e.store || {}, r = l(!0);
|
|
299
299
|
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), M(
|
|
300
300
|
() => t.value,
|
|
301
301
|
() => {
|
|
@@ -313,18 +313,18 @@ const It = Mt.get("/getBindRelationByDefKey"), qt = kt.get("/getByAlias"), jt =
|
|
|
313
313
|
e.setting.options.tip && (o.value = x(e.setting.options.tip));
|
|
314
314
|
const h = l();
|
|
315
315
|
if (setTimeout(() => {
|
|
316
|
-
h.value = i(e.setting.name) || e.setting.options.formulasDiyJs || h.value, h.value ||
|
|
316
|
+
h.value = i(e.setting.name) || e.setting.options.formulasDiyJs || h.value, h.value || c(e.setting.name, null);
|
|
317
317
|
}, 50), e.setting.options.showCurrentDate) {
|
|
318
318
|
let u = /* @__PURE__ */ new Date();
|
|
319
|
-
u.setDate(u.getDate() + e.setting.options.day), h.value =
|
|
319
|
+
u.setDate(u.getDate() + e.setting.options.day), h.value = ce(u.getTime()).format(f), c(e.setting.name, h.value);
|
|
320
320
|
}
|
|
321
321
|
return e.setting.options.validateList.length && b(e.setting.name, e.setting.options.validateList), M(h, (u) => {
|
|
322
|
-
|
|
323
|
-
}), (u,
|
|
322
|
+
c(e.setting.name, u);
|
|
323
|
+
}), (u, v) => r.value ? (S(), P(a(z), {
|
|
324
324
|
key: 0,
|
|
325
325
|
col: e.span,
|
|
326
326
|
modelValue: h.value,
|
|
327
|
-
"onUpdate:modelValue":
|
|
327
|
+
"onUpdate:modelValue": v[0] || (v[0] = (m) => h.value = m),
|
|
328
328
|
label: u.setting.desc,
|
|
329
329
|
prop: e.setting.name,
|
|
330
330
|
type: a(f).indexOf("HH") != -1 ? "dateTime" : "date",
|
|
@@ -336,14 +336,14 @@ const It = Mt.get("/getBindRelationByDefKey"), qt = kt.get("/getByAlias"), jt =
|
|
|
336
336
|
placeholder: u.setting.options.placeholder,
|
|
337
337
|
helpMessage: o.value,
|
|
338
338
|
required: d.value
|
|
339
|
-
}, null, 8, ["col", "modelValue", "label", "prop", "type", "format", "picker", "isView", "disabled", "placeholder", "helpMessage", "required"])) :
|
|
339
|
+
}, null, 8, ["col", "modelValue", "label", "prop", "type", "format", "picker", "isView", "disabled", "placeholder", "helpMessage", "required"])) : j("v-if", !0);
|
|
340
340
|
}
|
|
341
341
|
}), We = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
342
342
|
__proto__: null,
|
|
343
343
|
default: sa
|
|
344
344
|
}, Symbol.toStringTag, { value: "Module" })), na = {
|
|
345
345
|
name: "dropdown"
|
|
346
|
-
}, la = /* @__PURE__ */
|
|
346
|
+
}, la = /* @__PURE__ */ A({
|
|
347
347
|
...na,
|
|
348
348
|
props: {
|
|
349
349
|
setting: { default: () => ({
|
|
@@ -359,7 +359,7 @@ const It = Mt.get("/getBindRelationByDefKey"), qt = kt.get("/getByAlias"), jt =
|
|
|
359
359
|
store: {}
|
|
360
360
|
},
|
|
361
361
|
setup(s) {
|
|
362
|
-
const e = s, { showData: t, disabledData: n, setData:
|
|
362
|
+
const e = s, { showData: t, disabledData: n, setData: c, getData: i, setFormRule: b, deleteRule: V, setLinkData: r } = e.store || {}, y = l(!0);
|
|
363
363
|
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), M(
|
|
364
364
|
() => t.value,
|
|
365
365
|
() => {
|
|
@@ -373,16 +373,16 @@ const It = Mt.get("/getBindRelationByDefKey"), qt = kt.get("/getByAlias"), jt =
|
|
|
373
373
|
Y(e.setting.options.validateList).then((w) => {
|
|
374
374
|
g.value = w;
|
|
375
375
|
});
|
|
376
|
-
const o = l(""), h = e.setting.options.customQuery.valueBind ? e.setting.options.customQuery.valueBind : "key", u = e.setting.options.customQuery.labelBind ? e.setting.options.customQuery.labelBind : "value",
|
|
376
|
+
const o = l(""), h = e.setting.options.customQuery.valueBind ? e.setting.options.customQuery.valueBind : "key", u = e.setting.options.customQuery.labelBind ? e.setting.options.customQuery.labelBind : "value", v = e.setting.options.customQuery.PId || "children", m = l([]);
|
|
377
377
|
e.setting.options.customQuery.alias && ne(e.setting.options.customQuery.alias, e.setting.options.customQuery.conditionfield).then((w) => {
|
|
378
|
-
|
|
378
|
+
m.value = w;
|
|
379
379
|
});
|
|
380
380
|
const p = l();
|
|
381
381
|
e.setting.options.tip && (p.value = x(e.setting.options.tip));
|
|
382
382
|
const _ = l();
|
|
383
|
-
return _.value = e.setting.options.multiple ? [] : "", e.setting.options.multiple && i(e.setting.name) ? _.value = i(e.setting.name).split(",") : _.value = i(e.setting.name) || _.value, _.value ||
|
|
384
|
-
|
|
385
|
-
}), (w, k) => y.value ? (S(),
|
|
383
|
+
return _.value = e.setting.options.multiple ? [] : "", e.setting.options.multiple && i(e.setting.name) ? _.value = i(e.setting.name).split(",") : _.value = i(e.setting.name) || _.value, _.value || c(e.setting.name, null), e.setting.options.validateList.length && b(e.setting.name, e.setting.options.validateList), M(_, (w) => {
|
|
384
|
+
c(e.setting.name, w.toString());
|
|
385
|
+
}), (w, k) => y.value ? (S(), P(a(z), {
|
|
386
386
|
key: 0,
|
|
387
387
|
col: e.span,
|
|
388
388
|
modelValue: _.value,
|
|
@@ -397,22 +397,22 @@ const It = Mt.get("/getBindRelationByDefKey"), qt = kt.get("/getByAlias"), jt =
|
|
|
397
397
|
prop: e.setting.name,
|
|
398
398
|
filter: w.setting.options.filterable,
|
|
399
399
|
selectAttrs: { allowClear: !0 },
|
|
400
|
-
options:
|
|
400
|
+
options: m.value,
|
|
401
401
|
isView: e.isView,
|
|
402
402
|
helpMessage: p.value,
|
|
403
403
|
disabled: a(f),
|
|
404
|
-
props: { label: a(u), value: a(h), children: a(
|
|
404
|
+
props: { label: a(u), value: a(h), children: a(v) },
|
|
405
405
|
"check-strictly": !w.setting.options.cascade,
|
|
406
406
|
required: g.value,
|
|
407
407
|
onChange: d
|
|
408
|
-
}, null, 8, ["col", "modelValue", "keyword", "label", "node-key", "placeholder", "mode", "prop", "filter", "options", "isView", "helpMessage", "disabled", "props", "check-strictly", "required"])) :
|
|
408
|
+
}, null, 8, ["col", "modelValue", "keyword", "label", "node-key", "placeholder", "mode", "prop", "filter", "options", "isView", "helpMessage", "disabled", "props", "check-strictly", "required"])) : j("v-if", !0);
|
|
409
409
|
}
|
|
410
410
|
}), He = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
411
411
|
__proto__: null,
|
|
412
412
|
default: la
|
|
413
413
|
}, Symbol.toStringTag, { value: "Module" })), ia = { class: "form-image" }, oa = {
|
|
414
414
|
name: "imageViewer"
|
|
415
|
-
}, ua = /* @__PURE__ */
|
|
415
|
+
}, ua = /* @__PURE__ */ A({
|
|
416
416
|
...oa,
|
|
417
417
|
props: {
|
|
418
418
|
setting: { default: () => ({
|
|
@@ -428,7 +428,7 @@ const It = Mt.get("/getBindRelationByDefKey"), qt = kt.get("/getByAlias"), jt =
|
|
|
428
428
|
store: {}
|
|
429
429
|
},
|
|
430
430
|
setup(s) {
|
|
431
|
-
const e = s, { showData: t, disabledData: n, setData:
|
|
431
|
+
const e = s, { showData: t, disabledData: n, setData: c, getData: i, setFormRule: b, deleteRule: V } = e.store || {}, r = l(!0);
|
|
432
432
|
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), M(
|
|
433
433
|
() => t.value,
|
|
434
434
|
() => {
|
|
@@ -445,24 +445,24 @@ const It = Mt.get("/getBindRelationByDefKey"), qt = kt.get("/getByAlias"), jt =
|
|
|
445
445
|
const g = l();
|
|
446
446
|
e.setting.options.tip && (g.value = x(e.setting.options.tip));
|
|
447
447
|
const o = l();
|
|
448
|
-
o.value = e.setting.options.file.limit > 1 ? [] : "", e.setting.options.file.limit > 1 && i(e.setting.name) ? o.value = i(e.setting.name).split(",") : o.value = i(e.setting.name) || o.value, o.value ||
|
|
448
|
+
o.value = e.setting.options.file.limit > 1 ? [] : "", e.setting.options.file.limit > 1 && i(e.setting.name) ? o.value = i(e.setting.name).split(",") : o.value = i(e.setting.name) || o.value, o.value || c(e.setting.name, null);
|
|
449
449
|
const h = (u) => {
|
|
450
450
|
setTimeout(() => {
|
|
451
|
-
|
|
451
|
+
c(e.setting.name, o.value.toString());
|
|
452
452
|
}, 100);
|
|
453
453
|
};
|
|
454
454
|
return e.setting.options.validateList.length && b(e.setting.name, e.setting.options.validateList), M(o.value, (u) => {
|
|
455
|
-
const
|
|
455
|
+
const v = u.map((m) => {
|
|
456
456
|
let p = "";
|
|
457
|
-
return
|
|
457
|
+
return m.indexOf("/oss/") != -1 ? p = m : p = `/oss/${m}`, p;
|
|
458
458
|
});
|
|
459
459
|
setTimeout(() => {
|
|
460
|
-
|
|
460
|
+
c(e.setting.name, v.join(","));
|
|
461
461
|
}, 100);
|
|
462
|
-
}), (u,
|
|
462
|
+
}), (u, v) => r.value ? (S(), P(a(z), {
|
|
463
463
|
key: 0,
|
|
464
464
|
modelValue: o.value,
|
|
465
|
-
"onUpdate:modelValue":
|
|
465
|
+
"onUpdate:modelValue": v[2] || (v[2] = (m) => o.value = m),
|
|
466
466
|
"margin-bottom": "0",
|
|
467
467
|
prop: e.setting.name,
|
|
468
468
|
label: u.setting.desc,
|
|
@@ -470,13 +470,13 @@ const It = Mt.get("/getBindRelationByDefKey"), qt = kt.get("/getByAlias"), jt =
|
|
|
470
470
|
helpMessage: g.value,
|
|
471
471
|
required: d.value
|
|
472
472
|
}, {
|
|
473
|
-
default:
|
|
473
|
+
default: $(() => [
|
|
474
474
|
Ne("div", ia, [
|
|
475
475
|
L(a(Ee), {
|
|
476
476
|
modelValue: o.value,
|
|
477
|
-
"onUpdate:modelValue":
|
|
477
|
+
"onUpdate:modelValue": v[0] || (v[0] = (m) => o.value = m),
|
|
478
478
|
status: f.value,
|
|
479
|
-
"onUpdate:status":
|
|
479
|
+
"onUpdate:status": v[1] || (v[1] = (m) => f.value = m),
|
|
480
480
|
maxSize: "6",
|
|
481
481
|
"limit-num": u.setting.options.file.limit,
|
|
482
482
|
prop: e.setting.name,
|
|
@@ -496,18 +496,18 @@ const It = Mt.get("/getBindRelationByDefKey"), qt = kt.get("/getByAlias"), jt =
|
|
|
496
496
|
]),
|
|
497
497
|
_: 1
|
|
498
498
|
/* STABLE */
|
|
499
|
-
}, 8, ["modelValue", "prop", "label", "helpMessage", "required"])) :
|
|
499
|
+
}, 8, ["modelValue", "prop", "label", "helpMessage", "required"])) : j("v-if", !0);
|
|
500
500
|
}
|
|
501
|
-
}),
|
|
501
|
+
}), me = (s, e) => {
|
|
502
502
|
const t = s.__vccOpts || s;
|
|
503
|
-
for (const [n,
|
|
504
|
-
t[n] =
|
|
503
|
+
for (const [n, c] of e)
|
|
504
|
+
t[n] = c;
|
|
505
505
|
return t;
|
|
506
|
-
}, ra = /* @__PURE__ */
|
|
506
|
+
}, ra = /* @__PURE__ */ me(ua, [["__scopeId", "data-v-412cdcbe"]]), Ze = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
507
507
|
__proto__: null,
|
|
508
508
|
default: ra
|
|
509
509
|
}, Symbol.toStringTag, { value: "Module" })), pa = (s) => {
|
|
510
|
-
const t = "****", n = String(s),
|
|
510
|
+
const t = "****", n = String(s), c = n.slice(0, 15), i = n.slice(15);
|
|
511
511
|
return ((r) => {
|
|
512
512
|
const y = r.length;
|
|
513
513
|
if (y < 6) return r;
|
|
@@ -540,22 +540,22 @@ const It = Mt.get("/getBindRelationByDefKey"), qt = kt.get("/getByAlias"), jt =
|
|
|
540
540
|
}
|
|
541
541
|
const f = d + t.length;
|
|
542
542
|
return r.slice(0, d) + t + r.slice(f);
|
|
543
|
-
})(
|
|
543
|
+
})(c) + i;
|
|
544
544
|
}, da = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
545
545
|
__proto__: null,
|
|
546
546
|
default: pa
|
|
547
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
547
|
+
}, Symbol.toStringTag, { value: "Module" })), ge = {}, ga = /^\.\/(.+)\/index\.ts$/, Be = /* @__PURE__ */ Object.assign({ "./phone/index.ts": da });
|
|
548
548
|
var Ke;
|
|
549
549
|
for (const s in Be) {
|
|
550
550
|
const e = Be[s], t = (Ke = s.match(ga)) == null ? void 0 : Ke[1];
|
|
551
|
-
|
|
551
|
+
ge[t] = e.default;
|
|
552
552
|
}
|
|
553
553
|
const ca = (s, e) => {
|
|
554
554
|
var n;
|
|
555
|
-
return e ? ((n =
|
|
555
|
+
return e ? ((n = ge[s]) == null ? void 0 : n.call(ge, e)) ?? e : "-";
|
|
556
556
|
}, va = {
|
|
557
557
|
name: "input"
|
|
558
|
-
}, ma = /* @__PURE__ */
|
|
558
|
+
}, ma = /* @__PURE__ */ A({
|
|
559
559
|
...va,
|
|
560
560
|
props: {
|
|
561
561
|
setting: { default: () => ({
|
|
@@ -571,7 +571,7 @@ const ca = (s, e) => {
|
|
|
571
571
|
store: {}
|
|
572
572
|
},
|
|
573
573
|
setup(s) {
|
|
574
|
-
const e = s, { data: t, showData: n, disabledData:
|
|
574
|
+
const e = s, { data: t, showData: n, disabledData: c, setData: i, getData: b, setFormRule: V, deleteRule: r } = e.store || {}, y = l(""), d = l(!0);
|
|
575
575
|
!n.value[e.setting.name] && n.value[e.setting.name] != !1 && (n.value[e.setting.name] = !0), M(
|
|
576
576
|
() => n.value,
|
|
577
577
|
() => {
|
|
@@ -581,11 +581,11 @@ const ca = (s, e) => {
|
|
|
581
581
|
), M(
|
|
582
582
|
() => t.value,
|
|
583
583
|
() => {
|
|
584
|
-
h.value = t.value[e.setting.name];
|
|
584
|
+
t.value[e.setting.name] && (h.value = t.value[e.setting.name]);
|
|
585
585
|
},
|
|
586
586
|
{ deep: !0 }
|
|
587
587
|
);
|
|
588
|
-
const f =
|
|
588
|
+
const f = c.value[e.setting.name] || !1, g = l(!1);
|
|
589
589
|
Y(e.setting.options.validateList).then((u) => {
|
|
590
590
|
g.value = u;
|
|
591
591
|
});
|
|
@@ -596,44 +596,44 @@ const ca = (s, e) => {
|
|
|
596
596
|
h.value = b(e.setting.name) || e.setting.options.formulasDiyJs || h.value, e.setting.options.encryption && e.isView && (y.value = ca("phone", h.value)), h.value || i(e.setting.name, null);
|
|
597
597
|
}, 50), e.setting.options.validateList.length && V(e.setting.name, e.setting.options.validateList), M(h, (u) => {
|
|
598
598
|
e.setting.options.dataType === "number" && !isNaN(u) ? i(e.setting.name, Number(u)) : i(e.setting.name, u);
|
|
599
|
-
}), (u,
|
|
599
|
+
}), (u, v) => (S(), C(
|
|
600
600
|
H,
|
|
601
601
|
null,
|
|
602
602
|
[
|
|
603
|
-
d.value && e.setting.options.encryption && e.isView ? (S(),
|
|
603
|
+
d.value && e.setting.options.encryption && e.isView ? (S(), P(a(z), {
|
|
604
604
|
key: 0,
|
|
605
605
|
col: 6,
|
|
606
606
|
prop: e.setting.name,
|
|
607
607
|
modelValue: h.value,
|
|
608
|
-
"onUpdate:modelValue":
|
|
608
|
+
"onUpdate:modelValue": v[1] || (v[1] = (m) => h.value = m),
|
|
609
609
|
label: u.setting.desc,
|
|
610
610
|
type: "custom",
|
|
611
611
|
helpMessage: o.value,
|
|
612
612
|
required: g.value
|
|
613
613
|
}, {
|
|
614
|
-
default:
|
|
614
|
+
default: $(() => [
|
|
615
615
|
L(a(Oe), {
|
|
616
616
|
placement: "top",
|
|
617
617
|
disabled: !h.value,
|
|
618
618
|
content: h.value
|
|
619
619
|
}, {
|
|
620
|
-
default:
|
|
620
|
+
default: $(() => [
|
|
621
621
|
L(a(_t), {
|
|
622
622
|
modelValue: y.value,
|
|
623
|
-
"onUpdate:modelValue":
|
|
623
|
+
"onUpdate:modelValue": v[0] || (v[0] = (m) => y.value = m),
|
|
624
624
|
width: u.setting.options.width,
|
|
625
625
|
disabled: u.setting.options.isInputEdit || a(f),
|
|
626
626
|
isView: u.setting.options.isReadonly || e.isView,
|
|
627
627
|
placeholder: u.setting.options.placeholder
|
|
628
628
|
}, {
|
|
629
|
-
prepend:
|
|
629
|
+
prepend: $(() => [
|
|
630
630
|
X(
|
|
631
631
|
ee(u.setting.options.bindPreAndSufFixjson.preFix),
|
|
632
632
|
1
|
|
633
633
|
/* TEXT */
|
|
634
634
|
)
|
|
635
635
|
]),
|
|
636
|
-
append:
|
|
636
|
+
append: $(() => [
|
|
637
637
|
X(
|
|
638
638
|
ee(u.setting.options.bindPreAndSufFixjson.sufSix),
|
|
639
639
|
1
|
|
@@ -650,12 +650,12 @@ const ca = (s, e) => {
|
|
|
650
650
|
]),
|
|
651
651
|
_: 1
|
|
652
652
|
/* STABLE */
|
|
653
|
-
}, 8, ["prop", "modelValue", "label", "helpMessage", "required"])) :
|
|
654
|
-
d.value && (!e.setting.options.encryption || !e.isView) ? (S(),
|
|
653
|
+
}, 8, ["prop", "modelValue", "label", "helpMessage", "required"])) : j("v-if", !0),
|
|
654
|
+
d.value && (!e.setting.options.encryption || !e.isView) ? (S(), P(a(z), {
|
|
655
655
|
key: 1,
|
|
656
656
|
col: 6,
|
|
657
657
|
modelValue: h.value,
|
|
658
|
-
"onUpdate:modelValue":
|
|
658
|
+
"onUpdate:modelValue": v[2] || (v[2] = (m) => h.value = m),
|
|
659
659
|
width: u.setting.options.width,
|
|
660
660
|
disabled: u.setting.options.isInputEdit || a(f),
|
|
661
661
|
isView: u.setting.options.isReadonly || e.isView,
|
|
@@ -666,8 +666,8 @@ const ca = (s, e) => {
|
|
|
666
666
|
required: g.value,
|
|
667
667
|
placeholder: u.setting.options.placeholder
|
|
668
668
|
}, {
|
|
669
|
-
default:
|
|
670
|
-
|
|
669
|
+
default: $(() => [
|
|
670
|
+
j(` <DasInput\r
|
|
671
671
|
v-model="inputValue"\r
|
|
672
672
|
>\r
|
|
673
673
|
<template #prepend>{{ setting.options.bindPreAndSufFixjson.preFix }}</template>\r
|
|
@@ -676,7 +676,7 @@ const ca = (s, e) => {
|
|
|
676
676
|
]),
|
|
677
677
|
_: 1
|
|
678
678
|
/* STABLE */
|
|
679
|
-
}, 8, ["modelValue", "width", "disabled", "isView", "prop", "label", "helpMessage", "required", "placeholder"])) :
|
|
679
|
+
}, 8, ["modelValue", "width", "disabled", "isView", "prop", "label", "helpMessage", "required", "placeholder"])) : j("v-if", !0)
|
|
680
680
|
],
|
|
681
681
|
64
|
|
682
682
|
/* STABLE_FRAGMENT */
|
|
@@ -687,7 +687,7 @@ const ca = (s, e) => {
|
|
|
687
687
|
default: ma
|
|
688
688
|
}, Symbol.toStringTag, { value: "Module" })), fa = {
|
|
689
689
|
name: "number"
|
|
690
|
-
}, ya = /* @__PURE__ */
|
|
690
|
+
}, ya = /* @__PURE__ */ A({
|
|
691
691
|
...fa,
|
|
692
692
|
props: {
|
|
693
693
|
setting: { default: () => ({
|
|
@@ -703,7 +703,7 @@ const ca = (s, e) => {
|
|
|
703
703
|
store: {}
|
|
704
704
|
},
|
|
705
705
|
setup(s) {
|
|
706
|
-
const e = s, { showData: t, disabledData: n, setData:
|
|
706
|
+
const e = s, { showData: t, disabledData: n, setData: c, getData: i, setFormRule: b, deleteRule: V } = e.store || {}, r = l(!0);
|
|
707
707
|
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), M(
|
|
708
708
|
() => t.value,
|
|
709
709
|
() => {
|
|
@@ -719,10 +719,10 @@ const ca = (s, e) => {
|
|
|
719
719
|
e.setting.options.tip && (f.value = x(e.setting.options.tip));
|
|
720
720
|
const g = l(0);
|
|
721
721
|
return setTimeout(() => {
|
|
722
|
-
g.value = i(e.setting.name) || e.setting.options.formulasDiyJs || g.value, g.value ||
|
|
722
|
+
g.value = i(e.setting.name) || e.setting.options.formulasDiyJs || g.value, g.value || c(e.setting.name, null);
|
|
723
723
|
}, 50), e.setting.options.validateList.length && b(e.setting.name, e.setting.options.validateList), M(g, (o) => {
|
|
724
|
-
|
|
725
|
-
}), (o, h) => r.value ? (S(),
|
|
724
|
+
c(e.setting.name, o);
|
|
725
|
+
}), (o, h) => r.value ? (S(), P(a(z), {
|
|
726
726
|
key: 0,
|
|
727
727
|
col: e.span,
|
|
728
728
|
modelValue: g.value,
|
|
@@ -739,14 +739,14 @@ const ca = (s, e) => {
|
|
|
739
739
|
precision: o.setting.options.decimalDigits,
|
|
740
740
|
helpMessage: f.value,
|
|
741
741
|
required: d.value
|
|
742
|
-
}, null, 8, ["col", "modelValue", "label", "prop", "max", "min", "step", "disabled", "isView", "precision", "helpMessage", "required"])) :
|
|
742
|
+
}, null, 8, ["col", "modelValue", "label", "prop", "max", "min", "step", "disabled", "isView", "precision", "helpMessage", "required"])) : j("v-if", !0);
|
|
743
743
|
}
|
|
744
744
|
}), Xe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
745
745
|
__proto__: null,
|
|
746
746
|
default: ya
|
|
747
747
|
}, Symbol.toStringTag, { value: "Module" })), ha = {
|
|
748
748
|
name: "radio"
|
|
749
|
-
}, ba = /* @__PURE__ */
|
|
749
|
+
}, ba = /* @__PURE__ */ A({
|
|
750
750
|
...ha,
|
|
751
751
|
props: {
|
|
752
752
|
setting: { default: () => ({
|
|
@@ -764,7 +764,7 @@ const ca = (s, e) => {
|
|
|
764
764
|
store: {}
|
|
765
765
|
},
|
|
766
766
|
setup(s) {
|
|
767
|
-
const e = s, { showData: t, disabledData: n, setData:
|
|
767
|
+
const e = s, { showData: t, disabledData: n, setData: c, getData: i, setFormRule: b, deleteRule: V } = e.store || {}, r = l(!0);
|
|
768
768
|
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), M(
|
|
769
769
|
() => t.value,
|
|
770
770
|
() => {
|
|
@@ -773,37 +773,37 @@ const ca = (s, e) => {
|
|
|
773
773
|
{ deep: !0 }
|
|
774
774
|
);
|
|
775
775
|
const y = n.value[e.setting.name] || !1, d = l(!1);
|
|
776
|
-
Y(e.setting.options.validateList).then((
|
|
777
|
-
d.value =
|
|
776
|
+
Y(e.setting.options.validateList).then((m) => {
|
|
777
|
+
d.value = m;
|
|
778
778
|
});
|
|
779
779
|
const f = e.setting.options.customQuery.valueBind ? e.setting.options.customQuery.valueBind : "key", g = e.setting.options.customQuery.labelBind ? e.setting.options.customQuery.labelBind : "value", o = l([]);
|
|
780
|
-
e.setting.options.customQuery.alias ? ne(e.setting.options.customQuery.alias, e.setting.options.customQuery.conditionfield).then((
|
|
781
|
-
o.value =
|
|
780
|
+
e.setting.options.customQuery.alias ? ne(e.setting.options.customQuery.alias, e.setting.options.customQuery.conditionfield).then((m) => {
|
|
781
|
+
o.value = m;
|
|
782
782
|
}) : o.value = e.setting.options.options;
|
|
783
783
|
const h = l();
|
|
784
784
|
e.setting.options.tip && (h.value = x(e.setting.options.tip));
|
|
785
785
|
const u = l(null);
|
|
786
786
|
setTimeout(() => {
|
|
787
|
-
u.value = i(e.setting.name) || e.setting.options.formulasDiyJs || u.value, u.value ||
|
|
788
|
-
}, 50), e.setting.options.validateList.length && b(e.setting.name, e.setting.options.validateList), M(u, (
|
|
789
|
-
|
|
787
|
+
u.value = i(e.setting.name) || e.setting.options.formulasDiyJs || u.value, u.value || c(e.setting.name, null);
|
|
788
|
+
}, 50), e.setting.options.validateList.length && b(e.setting.name, e.setting.options.validateList), M(u, (m) => {
|
|
789
|
+
c(e.setting.name, m);
|
|
790
790
|
});
|
|
791
|
-
const
|
|
791
|
+
const v = (m) => {
|
|
792
792
|
e.setting.options.linkage.length && e.setting.options.linkage.forEach((p) => {
|
|
793
|
-
if (p.value ===
|
|
793
|
+
if (p.value === m) {
|
|
794
794
|
const w = p.effect[0].target.split(".")[2];
|
|
795
795
|
t.value[w] = p.effect[0].type === "w";
|
|
796
796
|
}
|
|
797
797
|
});
|
|
798
798
|
};
|
|
799
|
-
return (
|
|
799
|
+
return (m, p) => r.value ? (S(), P(a(z), {
|
|
800
800
|
key: 0,
|
|
801
|
-
onChange:
|
|
801
|
+
onChange: v,
|
|
802
802
|
col: e.span,
|
|
803
803
|
modelValue: u.value,
|
|
804
804
|
"onUpdate:modelValue": p[0] || (p[0] = (_) => u.value = _),
|
|
805
|
-
layout:
|
|
806
|
-
label:
|
|
805
|
+
layout: m.setting.options.inline ? "vertical" : "default",
|
|
806
|
+
label: m.setting.desc,
|
|
807
807
|
type: "radio",
|
|
808
808
|
prop: e.setting.name,
|
|
809
809
|
options: o.value,
|
|
@@ -814,14 +814,14 @@ const ca = (s, e) => {
|
|
|
814
814
|
disabled: a(y),
|
|
815
815
|
required: d.value,
|
|
816
816
|
isSetTimeout: !0
|
|
817
|
-
}, null, 8, ["col", "modelValue", "layout", "label", "prop", "options", "isView", "optionsValueKey", "optionsLabelKey", "helpMessage", "disabled", "required"])) :
|
|
817
|
+
}, null, 8, ["col", "modelValue", "layout", "label", "prop", "options", "isView", "optionsValueKey", "optionsLabelKey", "helpMessage", "disabled", "required"])) : j("v-if", !0);
|
|
818
818
|
}
|
|
819
819
|
}), et = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
820
820
|
__proto__: null,
|
|
821
821
|
default: ba
|
|
822
822
|
}, Symbol.toStringTag, { value: "Module" })), _a = {
|
|
823
823
|
name: "select"
|
|
824
|
-
}, wa = /* @__PURE__ */
|
|
824
|
+
}, wa = /* @__PURE__ */ A({
|
|
825
825
|
..._a,
|
|
826
826
|
props: {
|
|
827
827
|
setting: { default: () => ({
|
|
@@ -837,19 +837,19 @@ const ca = (s, e) => {
|
|
|
837
837
|
store: {}
|
|
838
838
|
},
|
|
839
839
|
setup(s) {
|
|
840
|
-
const e = s, { showData: t, disabledData: n, linkData:
|
|
840
|
+
const e = s, { showData: t, disabledData: n, linkData: c, setData: i, getData: b, setFormRule: V, deleteRule: r } = e.store || {}, y = l(!0);
|
|
841
841
|
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), M(
|
|
842
842
|
() => t.value,
|
|
843
843
|
() => {
|
|
844
|
-
y.value = t.value[e.setting.name], y.value || (
|
|
844
|
+
y.value = t.value[e.setting.name], y.value || (v.value = null, r(e.setting.name)), y.value && e.setting.options.validateList.length && V(e.setting.name, e.setting.options.validateList);
|
|
845
845
|
},
|
|
846
846
|
{ deep: !0 }
|
|
847
847
|
), M(
|
|
848
|
-
() =>
|
|
848
|
+
() => c.value,
|
|
849
849
|
() => {
|
|
850
|
-
|
|
850
|
+
c.value.data.forEach((p) => {
|
|
851
851
|
if (e.setting.options.customQuery.alias && e.setting.options.customQuery.alias === p.alias) {
|
|
852
|
-
|
|
852
|
+
v.value = null;
|
|
853
853
|
const _ = p.conditionfield.filter((k) => k.defaultType == 1);
|
|
854
854
|
let w = {};
|
|
855
855
|
_.forEach((k) => {
|
|
@@ -887,13 +887,13 @@ const ca = (s, e) => {
|
|
|
887
887
|
h.value = e.setting.options.options;
|
|
888
888
|
const u = l();
|
|
889
889
|
e.setting.options.tip && (u.value = x(e.setting.options.tip));
|
|
890
|
-
const
|
|
891
|
-
|
|
892
|
-
e.setting.options.multiple && (b(e.setting.name) || e.setting.options.formulasDiyJs) ? (b(e.setting.name) && (
|
|
893
|
-
}, 50), e.setting.options.validateList.length && V(e.setting.name, e.setting.options.validateList), M(
|
|
890
|
+
const v = l();
|
|
891
|
+
v.value = e.setting.options.multiple ? [] : null, setTimeout(() => {
|
|
892
|
+
e.setting.options.multiple && (b(e.setting.name) || e.setting.options.formulasDiyJs) ? (b(e.setting.name) && (v.value = b(e.setting.name).split(",")), e.setting.options.formulasDiyJs && (v.value = e.setting.options.formulasDiyJs.split(","))) : v.value = b(e.setting.name) || e.setting.options.formulasDiyJs || v.value, v.value || i(e.setting.name, null);
|
|
893
|
+
}, 50), e.setting.options.validateList.length && V(e.setting.name, e.setting.options.validateList), M(v, (p) => {
|
|
894
894
|
e.setting.options.multiple ? i(e.setting.name, p.toString()) : i(e.setting.name, p);
|
|
895
895
|
});
|
|
896
|
-
const
|
|
896
|
+
const m = (p) => {
|
|
897
897
|
e.setting.options.linkage.length && !e.setting.options.multiple && e.setting.options.linkage.forEach((_) => {
|
|
898
898
|
if (_.value === p) {
|
|
899
899
|
const k = _.effect[0].target.split(".")[2];
|
|
@@ -901,13 +901,13 @@ const ca = (s, e) => {
|
|
|
901
901
|
}
|
|
902
902
|
});
|
|
903
903
|
};
|
|
904
|
-
return (p, _) => y.value ? (S(),
|
|
904
|
+
return (p, _) => y.value ? (S(), P(a(z), {
|
|
905
905
|
key: 0,
|
|
906
906
|
col: e.span,
|
|
907
|
-
modelValue:
|
|
908
|
-
"onUpdate:modelValue": _[0] || (_[0] = (w) =>
|
|
907
|
+
modelValue: v.value,
|
|
908
|
+
"onUpdate:modelValue": _[0] || (_[0] = (w) => v.value = w),
|
|
909
909
|
label: p.setting.desc,
|
|
910
|
-
onChange:
|
|
910
|
+
onChange: m,
|
|
911
911
|
type: "select",
|
|
912
912
|
prop: e.setting.name,
|
|
913
913
|
placeholder: p.setting.options.placeholder,
|
|
@@ -921,14 +921,14 @@ const ca = (s, e) => {
|
|
|
921
921
|
helpMessage: u.value,
|
|
922
922
|
disabled: a(d),
|
|
923
923
|
required: f.value
|
|
924
|
-
}, null, 8, ["col", "modelValue", "label", "prop", "placeholder", "mode", "showSearch", "isView", "options", "optionsValueKey", "optionsLabelKey", "helpMessage", "disabled", "required"])) :
|
|
924
|
+
}, null, 8, ["col", "modelValue", "label", "prop", "placeholder", "mode", "showSearch", "isView", "options", "optionsValueKey", "optionsLabelKey", "helpMessage", "disabled", "required"])) : j("v-if", !0);
|
|
925
925
|
}
|
|
926
926
|
}), tt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
927
927
|
__proto__: null,
|
|
928
928
|
default: wa
|
|
929
929
|
}, Symbol.toStringTag, { value: "Module" })), Va = (s, e, t) => {
|
|
930
|
-
var
|
|
931
|
-
const n = Qe().id,
|
|
930
|
+
var ue, se, re, pe, de;
|
|
931
|
+
const n = Qe().id, c = l(!1), i = (de = (pe = (re = (se = (ue = s == null ? void 0 : s.options) == null ? void 0 : ue.selector) == null ? void 0 : se.type) == null ? void 0 : re.alias) == null ? void 0 : pe.replace("eip-", "")) == null ? void 0 : de.replace("-selector", ""), b = l([]), V = l(""), r = l(""), y = {
|
|
932
932
|
user: E("搜索姓名/账号/手机号").value,
|
|
933
933
|
org: E("搜索组织名称/组织编码").value,
|
|
934
934
|
role: E("搜索角色名称").value,
|
|
@@ -964,14 +964,14 @@ const ca = (s, e) => {
|
|
|
964
964
|
1: E("有效").value
|
|
965
965
|
}, u = {
|
|
966
966
|
user: Bt,
|
|
967
|
-
org:
|
|
967
|
+
org: ye,
|
|
968
968
|
role: Nt,
|
|
969
|
-
job:
|
|
970
|
-
post:
|
|
969
|
+
job: ye,
|
|
970
|
+
post: ye,
|
|
971
971
|
supplier: xt
|
|
972
|
-
},
|
|
973
|
-
var B,
|
|
974
|
-
i === "supplier" ? (
|
|
972
|
+
}, v = d[i], m = l({}), p = l([]), _ = () => {
|
|
973
|
+
var B, U;
|
|
974
|
+
i === "supplier" ? (m.value = {
|
|
975
975
|
left: !1,
|
|
976
976
|
content: {
|
|
977
977
|
api: Ct,
|
|
@@ -999,7 +999,7 @@ const ca = (s, e) => {
|
|
|
999
999
|
}
|
|
1000
1000
|
},
|
|
1001
1001
|
right: !1
|
|
1002
|
-
}, N(), k()) : i === "source" ? (
|
|
1002
|
+
}, N(), k()) : i === "source" ? (m.value = {
|
|
1003
1003
|
left: !1,
|
|
1004
1004
|
content: {
|
|
1005
1005
|
api: Jt,
|
|
@@ -1017,7 +1017,7 @@ const ca = (s, e) => {
|
|
|
1017
1017
|
}
|
|
1018
1018
|
},
|
|
1019
1019
|
right: !1
|
|
1020
|
-
}, w()) : i === "org" ? (
|
|
1020
|
+
}, w()) : i === "org" ? (m.value = {
|
|
1021
1021
|
left: !1,
|
|
1022
1022
|
content: {
|
|
1023
1023
|
api: Et,
|
|
@@ -1028,9 +1028,9 @@ const ca = (s, e) => {
|
|
|
1028
1028
|
data: []
|
|
1029
1029
|
}
|
|
1030
1030
|
}
|
|
1031
|
-
}, w()) :
|
|
1031
|
+
}, w()) : m.value = {
|
|
1032
1032
|
left: {
|
|
1033
|
-
api:
|
|
1033
|
+
api: Pt,
|
|
1034
1034
|
params: {
|
|
1035
1035
|
projectId: n,
|
|
1036
1036
|
parentId: n
|
|
@@ -1046,8 +1046,8 @@ const ca = (s, e) => {
|
|
|
1046
1046
|
data: []
|
|
1047
1047
|
}
|
|
1048
1048
|
}
|
|
1049
|
-
}, i === "user" && (
|
|
1050
|
-
api:
|
|
1049
|
+
}, i === "user" && (m.value.content = {
|
|
1050
|
+
api: jt,
|
|
1051
1051
|
searchKey: "groupId",
|
|
1052
1052
|
params: {
|
|
1053
1053
|
status: 1,
|
|
@@ -1056,7 +1056,7 @@ const ca = (s, e) => {
|
|
|
1056
1056
|
selectListProps: {
|
|
1057
1057
|
data: []
|
|
1058
1058
|
}
|
|
1059
|
-
}, w()), i === "role" && (
|
|
1059
|
+
}, w()), i === "role" && (m.value.content = {
|
|
1060
1060
|
api: Kt,
|
|
1061
1061
|
searchKey: "orgId",
|
|
1062
1062
|
params: {
|
|
@@ -1065,7 +1065,7 @@ const ca = (s, e) => {
|
|
|
1065
1065
|
selectListProps: {
|
|
1066
1066
|
data: []
|
|
1067
1067
|
}
|
|
1068
|
-
}, w()), i === "job" && (
|
|
1068
|
+
}, w()), i === "job" && (m.value.content = {
|
|
1069
1069
|
api: Qt,
|
|
1070
1070
|
searchKey: "groupId",
|
|
1071
1071
|
props: {
|
|
@@ -1074,7 +1074,7 @@ const ca = (s, e) => {
|
|
|
1074
1074
|
selectListProps: {
|
|
1075
1075
|
data: []
|
|
1076
1076
|
}
|
|
1077
|
-
}, w()), i === "post" && (
|
|
1077
|
+
}, w()), i === "post" && (m.value.content = {
|
|
1078
1078
|
api: Ot,
|
|
1079
1079
|
searchKey: "groupId",
|
|
1080
1080
|
props: {
|
|
@@ -1083,7 +1083,7 @@ const ca = (s, e) => {
|
|
|
1083
1083
|
selectListProps: {
|
|
1084
1084
|
data: []
|
|
1085
1085
|
}
|
|
1086
|
-
}, w()),
|
|
1086
|
+
}, w()), m.value.content.multiple = i === "supplier" || i === "source" ? !1 : !((U = (B = s == null ? void 0 : s.options) == null ? void 0 : B.selector) != null && U.isSingle);
|
|
1087
1087
|
}, w = async () => {
|
|
1088
1088
|
p.value = [
|
|
1089
1089
|
{
|
|
@@ -1129,21 +1129,21 @@ const ca = (s, e) => {
|
|
|
1129
1129
|
const B = {
|
|
1130
1130
|
name: "",
|
|
1131
1131
|
published: 1
|
|
1132
|
-
}, [
|
|
1133
|
-
|
|
1132
|
+
}, [U, K] = await Yt(B).run();
|
|
1133
|
+
U || (p.value[1].options = K);
|
|
1134
1134
|
}, O = () => {
|
|
1135
|
-
var
|
|
1136
|
-
V.value = "",
|
|
1135
|
+
var U;
|
|
1136
|
+
V.value = "", c.value = !0;
|
|
1137
1137
|
let B = f[i];
|
|
1138
|
-
|
|
1138
|
+
m.value.content.selectListProps.data = (U = b == null ? void 0 : b.value) == null ? void 0 : U.map((K) => ({ name: K == null ? void 0 : K.label, [B]: K == null ? void 0 : K.value }));
|
|
1139
1139
|
};
|
|
1140
1140
|
_();
|
|
1141
1141
|
const G = async () => {
|
|
1142
|
-
var B,
|
|
1143
|
-
|
|
1144
|
-
...(
|
|
1142
|
+
var B, U, K, F, Q, I, T, le, Me, ke, Te, Re, $e, Fe, Ie, qe, Pe;
|
|
1143
|
+
m.value.content.params = {
|
|
1144
|
+
...(U = (B = m == null ? void 0 : m.value) == null ? void 0 : B.content) == null ? void 0 : U.params,
|
|
1145
1145
|
pageIndex: 1
|
|
1146
|
-
}, (i === "user" || i === "org" || i === "post" || i === "role" || i === "job") && (
|
|
1146
|
+
}, (i === "user" || i === "org" || i === "post" || i === "role" || i === "job") && (m.value.content.params.name = (K = p == null ? void 0 : p.value[0]) == null ? void 0 : K.value), i === "source" && (m.value.content.params.key = (F = p == null ? void 0 : p.value[0]) == null ? void 0 : F.value), i === "supplier" && (m.value.content.params.querys = [
|
|
1147
1147
|
{
|
|
1148
1148
|
property: "orgId",
|
|
1149
1149
|
value: n,
|
|
@@ -1151,7 +1151,7 @@ const ca = (s, e) => {
|
|
|
1151
1151
|
relation: "AND",
|
|
1152
1152
|
operation: "EQUAL"
|
|
1153
1153
|
}
|
|
1154
|
-
], (
|
|
1154
|
+
], (Q = p == null ? void 0 : p.value[0]) != null && Q.value && (m.value.content.params.querys = (Te = (le = (T = (I = m == null ? void 0 : m.value) == null ? void 0 : I.content) == null ? void 0 : T.params) == null ? void 0 : le.querys) == null ? void 0 : Te.concat([
|
|
1155
1155
|
{
|
|
1156
1156
|
property: "name",
|
|
1157
1157
|
value: (Me = p == null ? void 0 : p.value[0]) == null ? void 0 : Me.value,
|
|
@@ -1166,7 +1166,7 @@ const ca = (s, e) => {
|
|
|
1166
1166
|
relation: "OR",
|
|
1167
1167
|
operation: "LIKE"
|
|
1168
1168
|
}
|
|
1169
|
-
])), (Re = p == null ? void 0 : p.value[1]) != null && Re.value && (
|
|
1169
|
+
])), (Re = p == null ? void 0 : p.value[1]) != null && Re.value && (m.value.content.params.querys = (Pe = (Ie = (Fe = ($e = m == null ? void 0 : m.value) == null ? void 0 : $e.content) == null ? void 0 : Fe.params) == null ? void 0 : Ie.querys) == null ? void 0 : Pe.concat([
|
|
1170
1170
|
{
|
|
1171
1171
|
property: "classificationId",
|
|
1172
1172
|
value: (qe = p == null ? void 0 : p.value[1]) == null ? void 0 : qe.value,
|
|
@@ -1177,32 +1177,33 @@ const ca = (s, e) => {
|
|
|
1177
1177
|
])));
|
|
1178
1178
|
};
|
|
1179
1179
|
M(
|
|
1180
|
-
() =>
|
|
1180
|
+
() => c == null ? void 0 : c.value,
|
|
1181
1181
|
(B) => {
|
|
1182
|
-
B ||
|
|
1182
|
+
B || R();
|
|
1183
1183
|
}
|
|
1184
1184
|
);
|
|
1185
|
-
const
|
|
1185
|
+
const R = async () => {
|
|
1186
1186
|
i === "supplier" ? (p.value[0].value = "", p.value[1].value = void 0) : (i === "org" || i === "user" || i === "source" || i === "post" || i === "role" || i === "job") && (p.value[0].value = ""), _();
|
|
1187
1187
|
};
|
|
1188
1188
|
return {
|
|
1189
|
-
dialogVisible:
|
|
1190
|
-
title:
|
|
1189
|
+
dialogVisible: c,
|
|
1190
|
+
title: v,
|
|
1191
1191
|
searchName: V,
|
|
1192
1192
|
selectorType: i,
|
|
1193
1193
|
selectOptions: b,
|
|
1194
|
-
tableOptions:
|
|
1194
|
+
tableOptions: m,
|
|
1195
1195
|
userStatusMap: g,
|
|
1196
1196
|
roleTypeMap: o,
|
|
1197
1197
|
roleStatusMap: h,
|
|
1198
1198
|
openDialog: O,
|
|
1199
1199
|
confirm: (B) => {
|
|
1200
1200
|
var K;
|
|
1201
|
-
let
|
|
1202
|
-
b.value = B == null ? void 0 : B.map((F) => ({ label: (F == null ? void 0 : F.name) || (F == null ? void 0 : F.code), value: F[
|
|
1201
|
+
let U = f[i];
|
|
1202
|
+
b.value = B == null ? void 0 : B.map((F) => ({ label: (F == null ? void 0 : F.name) || (F == null ? void 0 : F.code), value: F[U] })), i === "supplier" && (r.value = (K = B[0]) == null ? void 0 : K.linkmanPhone);
|
|
1203
1203
|
},
|
|
1204
1204
|
getDetail: async (B) => {
|
|
1205
|
-
|
|
1205
|
+
if (!B) return;
|
|
1206
|
+
const U = u[i];
|
|
1206
1207
|
let K = {};
|
|
1207
1208
|
const F = B == null ? void 0 : B.split(",");
|
|
1208
1209
|
if (i === "source") {
|
|
@@ -1214,13 +1215,13 @@ const ca = (s, e) => {
|
|
|
1214
1215
|
];
|
|
1215
1216
|
return;
|
|
1216
1217
|
} else i === "user" ? K.userIds = F : i === "role" ? K.ids = F : i === "supplier" ? K.id = F : K = F;
|
|
1217
|
-
const [
|
|
1218
|
-
|
|
1218
|
+
const [Q, I] = await U(K).run();
|
|
1219
|
+
Q || (i === "supplier" ? b.value = [
|
|
1219
1220
|
{
|
|
1220
|
-
label: (
|
|
1221
|
-
value:
|
|
1221
|
+
label: (I == null ? void 0 : I.name) || (I == null ? void 0 : I.code),
|
|
1222
|
+
value: I == null ? void 0 : I.id
|
|
1222
1223
|
}
|
|
1223
|
-
] : b.value =
|
|
1224
|
+
] : b.value = I == null ? void 0 : I.map((T) => ({ label: (T == null ? void 0 : T.name) || (T == null ? void 0 : T.code), value: T == null ? void 0 : T.id })));
|
|
1224
1225
|
},
|
|
1225
1226
|
searchData: G,
|
|
1226
1227
|
searchOptions: p,
|
|
@@ -1267,7 +1268,7 @@ const ca = (s, e) => {
|
|
|
1267
1268
|
};
|
|
1268
1269
|
}, Sa = { class: "table-search-process-top" }, La = {
|
|
1269
1270
|
name: "selector"
|
|
1270
|
-
}, Ma = /* @__PURE__ */
|
|
1271
|
+
}, Ma = /* @__PURE__ */ A({
|
|
1271
1272
|
...La,
|
|
1272
1273
|
props: {
|
|
1273
1274
|
setting: { default: () => ({
|
|
@@ -1283,11 +1284,11 @@ const ca = (s, e) => {
|
|
|
1283
1284
|
store: {}
|
|
1284
1285
|
},
|
|
1285
1286
|
setup(s) {
|
|
1286
|
-
const e = s, { showData: t, setData: n, getData:
|
|
1287
|
+
const e = s, { showData: t, setData: n, getData: c, flowKey: i, setFormRule: b, deleteRule: V, disabledData: r } = e.store || {}, y = l(!0);
|
|
1287
1288
|
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), M(
|
|
1288
1289
|
() => t.value,
|
|
1289
1290
|
() => {
|
|
1290
|
-
y.value = t.value[e.setting.name], y.value || (f.value = "",
|
|
1291
|
+
y.value = t.value[e.setting.name], y.value || (f.value = "", m.value = [], V(e.setting.name)), y.value && e.setting.options.validateList.length && b(e.setting.name, e.setting.options.validateList);
|
|
1291
1292
|
},
|
|
1292
1293
|
{ deep: !0 }
|
|
1293
1294
|
);
|
|
@@ -1296,8 +1297,8 @@ const ca = (s, e) => {
|
|
|
1296
1297
|
title: o,
|
|
1297
1298
|
searchName: h,
|
|
1298
1299
|
tableOptions: u,
|
|
1299
|
-
selectorType:
|
|
1300
|
-
selectOptions:
|
|
1300
|
+
selectorType: v,
|
|
1301
|
+
selectOptions: m,
|
|
1301
1302
|
userStatusMap: p,
|
|
1302
1303
|
roleTypeMap: _,
|
|
1303
1304
|
roleStatusMap: w,
|
|
@@ -1305,49 +1306,50 @@ const ca = (s, e) => {
|
|
|
1305
1306
|
confirm: N,
|
|
1306
1307
|
getDetail: O,
|
|
1307
1308
|
searchData: G,
|
|
1308
|
-
searchOptions:
|
|
1309
|
+
searchOptions: R,
|
|
1309
1310
|
linkmanPhone: W
|
|
1310
|
-
} = Va(e.setting, i, f), { spacePath: ae, spaceName:
|
|
1311
|
+
} = Va(e.setting, i, f), { spacePath: ae, spaceName: ue, searchSpace: se, changeSpace: re, spaceLoad: pe, filterSpaceTree: de, getSpaceDetail: B } = Da(), U = l(!1);
|
|
1311
1312
|
Y(e.setting.options.validateList).then((F) => {
|
|
1312
|
-
|
|
1313
|
+
U.value = F;
|
|
1313
1314
|
});
|
|
1314
1315
|
const K = l();
|
|
1315
|
-
return e.setting.options.tip && (K.value = x(e.setting.options.tip)), e.setting.options.validateList.length && b(e.setting.name, e.setting.options.validateList),
|
|
1316
|
+
return e.setting.options.tip && (K.value = x(e.setting.options.tip)), e.setting.options.validateList.length && b(e.setting.name, e.setting.options.validateList), v == "position" ? (f.value = c(e.setting.name) ? c(e.setting.name) : f.value, f.value && B(f.value), f.value || n(e.setting.name, null), M(f, (F) => {
|
|
1316
1317
|
n(e.setting.name, F);
|
|
1317
|
-
}), M(
|
|
1318
|
+
}), M(ue, (F) => {
|
|
1318
1319
|
n(e.setting.options.selector.type.positionName, F);
|
|
1319
|
-
})) :
|
|
1320
|
-
n(e.setting.name, F);
|
|
1320
|
+
})) : v == "supplier" ? (f.value = c(e.setting.name) ? [c(e.setting.name)] : [f.value], f.value && O(c(e.setting.name)), M(f, (F) => {
|
|
1321
|
+
n(e.setting.name, F == null ? void 0 : F.toString());
|
|
1321
1322
|
}), M(W, (F) => {
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1323
|
+
var Q, I, T, le;
|
|
1324
|
+
((le = (T = (I = (Q = e == null ? void 0 : e.setting) == null ? void 0 : Q.options) == null ? void 0 : I.selector) == null ? void 0 : T.type) == null ? void 0 : le.supplierPhone) !== void 0 && n(e.setting.options.selector.type.supplierPhone, F);
|
|
1325
|
+
})) : (f.value = c(e.setting.name) ? c(e.setting.name) : f.value, f.value && O(f.value), f.value.length || n(e.setting.name, null), M(m, (F) => {
|
|
1326
|
+
f.value = F.map((Q) => Q.value).toString(), n(e.setting.name, f.value);
|
|
1327
|
+
})), (F, Q) => (S(), C(
|
|
1326
1328
|
H,
|
|
1327
1329
|
null,
|
|
1328
1330
|
[
|
|
1329
|
-
y.value && a(
|
|
1331
|
+
y.value && a(v) != "position" ? (S(), P(a(z), {
|
|
1330
1332
|
key: 0,
|
|
1331
1333
|
col: e.span,
|
|
1332
1334
|
modelValue: f.value,
|
|
1333
|
-
"onUpdate:modelValue":
|
|
1335
|
+
"onUpdate:modelValue": Q[1] || (Q[1] = (I) => f.value = I),
|
|
1334
1336
|
prop: e.setting.name,
|
|
1335
1337
|
label: F.setting.desc,
|
|
1336
1338
|
type: "inputDialogSelect",
|
|
1337
|
-
options: a(
|
|
1339
|
+
options: a(m),
|
|
1338
1340
|
helpMessage: K.value,
|
|
1339
1341
|
isView: e.isView,
|
|
1340
1342
|
disabled: a(d),
|
|
1341
|
-
required:
|
|
1343
|
+
required: U.value,
|
|
1342
1344
|
onOpenDialog: a(k)
|
|
1343
1345
|
}, {
|
|
1344
|
-
default:
|
|
1345
|
-
var
|
|
1346
|
+
default: $(() => {
|
|
1347
|
+
var I;
|
|
1346
1348
|
return [
|
|
1347
1349
|
L(a(Vt), {
|
|
1348
1350
|
"append-to-body": "",
|
|
1349
1351
|
modelValue: a(g),
|
|
1350
|
-
"onUpdate:modelValue":
|
|
1352
|
+
"onUpdate:modelValue": Q[0] || (Q[0] = (T) => fe(g) ? g.value = T : null),
|
|
1351
1353
|
options: a(u),
|
|
1352
1354
|
onConfirm: a(N),
|
|
1353
1355
|
title: a(o)
|
|
@@ -1355,13 +1357,13 @@ const ca = (s, e) => {
|
|
|
1355
1357
|
_: 2
|
|
1356
1358
|
/* DYNAMIC */
|
|
1357
1359
|
}, [
|
|
1358
|
-
((
|
|
1360
|
+
((I = a(R)) == null ? void 0 : I.length) > 0 ? {
|
|
1359
1361
|
name: "table-header-search",
|
|
1360
|
-
fn:
|
|
1362
|
+
fn: $(() => [
|
|
1361
1363
|
Ne("div", Sa, [
|
|
1362
1364
|
L(a(wt), {
|
|
1363
1365
|
labelLength: "6",
|
|
1364
|
-
options: a(
|
|
1366
|
+
options: a(R),
|
|
1365
1367
|
onConfirm: a(G),
|
|
1366
1368
|
"is-margin-right": !1
|
|
1367
1369
|
}, null, 8, ["options", "onConfirm"])
|
|
@@ -1369,30 +1371,30 @@ const ca = (s, e) => {
|
|
|
1369
1371
|
]),
|
|
1370
1372
|
key: "0"
|
|
1371
1373
|
} : void 0,
|
|
1372
|
-
a(
|
|
1374
|
+
a(v) === "user" ? {
|
|
1373
1375
|
name: "table-column",
|
|
1374
|
-
fn:
|
|
1375
|
-
L(a(
|
|
1376
|
+
fn: $(() => [
|
|
1377
|
+
L(a(q), {
|
|
1376
1378
|
label: a(D)("姓名"),
|
|
1377
1379
|
prop: "name"
|
|
1378
1380
|
}, null, 8, ["label"]),
|
|
1379
|
-
L(a(
|
|
1381
|
+
L(a(q), {
|
|
1380
1382
|
label: a(D)("账号"),
|
|
1381
1383
|
prop: "userName"
|
|
1382
1384
|
}, null, 8, ["label"]),
|
|
1383
|
-
L(a(
|
|
1385
|
+
L(a(q), {
|
|
1384
1386
|
label: a(D)("手机号"),
|
|
1385
1387
|
prop: "sensitivePhone"
|
|
1386
1388
|
}, {
|
|
1387
|
-
default:
|
|
1389
|
+
default: $(({ row: T }) => [
|
|
1388
1390
|
L(a(Oe), {
|
|
1389
1391
|
placement: "top",
|
|
1390
|
-
content:
|
|
1391
|
-
disabled:
|
|
1392
|
+
content: T.phone,
|
|
1393
|
+
disabled: !T.phone
|
|
1392
1394
|
}, {
|
|
1393
|
-
default:
|
|
1395
|
+
default: $(() => [
|
|
1394
1396
|
X(
|
|
1395
|
-
ee(
|
|
1397
|
+
ee(T.sensitivePhone || "-"),
|
|
1396
1398
|
1
|
|
1397
1399
|
/* TEXT */
|
|
1398
1400
|
)
|
|
@@ -1404,12 +1406,12 @@ const ca = (s, e) => {
|
|
|
1404
1406
|
_: 1
|
|
1405
1407
|
/* STABLE */
|
|
1406
1408
|
}, 8, ["label"]),
|
|
1407
|
-
L(a(
|
|
1409
|
+
L(a(q), {
|
|
1408
1410
|
label: a(D)("状态")
|
|
1409
1411
|
}, {
|
|
1410
|
-
default:
|
|
1412
|
+
default: $(({ row: T }) => [
|
|
1411
1413
|
X(
|
|
1412
|
-
ee(a(p)[
|
|
1414
|
+
ee(a(p)[T.status]),
|
|
1413
1415
|
1
|
|
1414
1416
|
/* TEXT */
|
|
1415
1417
|
)
|
|
@@ -1420,37 +1422,37 @@ const ca = (s, e) => {
|
|
|
1420
1422
|
]),
|
|
1421
1423
|
key: "1"
|
|
1422
1424
|
} : void 0,
|
|
1423
|
-
a(
|
|
1425
|
+
a(v) === "org" ? {
|
|
1424
1426
|
name: "table-column",
|
|
1425
|
-
fn:
|
|
1426
|
-
L(a(
|
|
1427
|
+
fn: $(() => [
|
|
1428
|
+
L(a(q), {
|
|
1427
1429
|
label: a(D)("组织名称"),
|
|
1428
1430
|
prop: "name"
|
|
1429
1431
|
}, null, 8, ["label"]),
|
|
1430
|
-
L(a(
|
|
1432
|
+
L(a(q), {
|
|
1431
1433
|
label: a(D)("组织编码"),
|
|
1432
1434
|
prop: "code"
|
|
1433
1435
|
}, null, 8, ["label"]),
|
|
1434
|
-
L(a(
|
|
1436
|
+
L(a(q), {
|
|
1435
1437
|
label: a(D)("组织类型"),
|
|
1436
1438
|
prop: "typeName"
|
|
1437
1439
|
}, null, 8, ["label"])
|
|
1438
1440
|
]),
|
|
1439
1441
|
key: "2"
|
|
1440
1442
|
} : void 0,
|
|
1441
|
-
a(
|
|
1443
|
+
a(v) === "role" ? {
|
|
1442
1444
|
name: "table-column",
|
|
1443
|
-
fn:
|
|
1444
|
-
L(a(
|
|
1445
|
+
fn: $(() => [
|
|
1446
|
+
L(a(q), {
|
|
1445
1447
|
label: a(D)("角色名称"),
|
|
1446
1448
|
prop: "name"
|
|
1447
1449
|
}, null, 8, ["label"]),
|
|
1448
|
-
L(a(
|
|
1450
|
+
L(a(q), {
|
|
1449
1451
|
label: a(D)("角色类型")
|
|
1450
1452
|
}, {
|
|
1451
|
-
default:
|
|
1453
|
+
default: $(({ row: T }) => [
|
|
1452
1454
|
X(
|
|
1453
|
-
ee(a(_)[
|
|
1455
|
+
ee(a(_)[T.type]),
|
|
1454
1456
|
1
|
|
1455
1457
|
/* TEXT */
|
|
1456
1458
|
)
|
|
@@ -1458,12 +1460,12 @@ const ca = (s, e) => {
|
|
|
1458
1460
|
_: 1
|
|
1459
1461
|
/* STABLE */
|
|
1460
1462
|
}, 8, ["label"]),
|
|
1461
|
-
L(a(
|
|
1463
|
+
L(a(q), {
|
|
1462
1464
|
label: a(D)("角色状态")
|
|
1463
1465
|
}, {
|
|
1464
|
-
default:
|
|
1466
|
+
default: $(({ row: T }) => [
|
|
1465
1467
|
X(
|
|
1466
|
-
ee(a(w)[
|
|
1468
|
+
ee(a(w)[T.status]),
|
|
1467
1469
|
1
|
|
1468
1470
|
/* TEXT */
|
|
1469
1471
|
)
|
|
@@ -1474,80 +1476,80 @@ const ca = (s, e) => {
|
|
|
1474
1476
|
]),
|
|
1475
1477
|
key: "3"
|
|
1476
1478
|
} : void 0,
|
|
1477
|
-
a(
|
|
1479
|
+
a(v) === "job" ? {
|
|
1478
1480
|
name: "table-column",
|
|
1479
|
-
fn:
|
|
1480
|
-
L(a(
|
|
1481
|
+
fn: $(() => [
|
|
1482
|
+
L(a(q), {
|
|
1481
1483
|
label: a(D)("职务名称"),
|
|
1482
1484
|
prop: "name"
|
|
1483
1485
|
}, null, 8, ["label"]),
|
|
1484
|
-
L(a(
|
|
1486
|
+
L(a(q), {
|
|
1485
1487
|
label: a(D)("职务编码"),
|
|
1486
1488
|
prop: "code"
|
|
1487
1489
|
}, null, 8, ["label"]),
|
|
1488
|
-
L(a(
|
|
1490
|
+
L(a(q), {
|
|
1489
1491
|
label: a(D)("所属组织路径"),
|
|
1490
1492
|
prop: "groupName"
|
|
1491
1493
|
}, null, 8, ["label"])
|
|
1492
1494
|
]),
|
|
1493
1495
|
key: "4"
|
|
1494
1496
|
} : void 0,
|
|
1495
|
-
a(
|
|
1497
|
+
a(v) === "post" ? {
|
|
1496
1498
|
name: "table-column",
|
|
1497
|
-
fn:
|
|
1498
|
-
L(a(
|
|
1499
|
+
fn: $(() => [
|
|
1500
|
+
L(a(q), {
|
|
1499
1501
|
label: a(D)("岗位名称"),
|
|
1500
1502
|
prop: "name"
|
|
1501
1503
|
}, null, 8, ["label"]),
|
|
1502
|
-
L(a(
|
|
1504
|
+
L(a(q), {
|
|
1503
1505
|
label: a(D)("岗位编码"),
|
|
1504
1506
|
prop: "code"
|
|
1505
1507
|
}, null, 8, ["label"]),
|
|
1506
|
-
L(a(
|
|
1508
|
+
L(a(q), {
|
|
1507
1509
|
label: a(D)("所属组织路径"),
|
|
1508
1510
|
prop: "groupName"
|
|
1509
1511
|
}, null, 8, ["label"])
|
|
1510
1512
|
]),
|
|
1511
1513
|
key: "5"
|
|
1512
1514
|
} : void 0,
|
|
1513
|
-
a(
|
|
1515
|
+
a(v) === "supplier" ? {
|
|
1514
1516
|
name: "table-column",
|
|
1515
|
-
fn:
|
|
1516
|
-
L(a(
|
|
1517
|
+
fn: $(() => [
|
|
1518
|
+
L(a(q), {
|
|
1517
1519
|
type: "index",
|
|
1518
1520
|
width: "50"
|
|
1519
1521
|
}),
|
|
1520
|
-
L(a(
|
|
1522
|
+
L(a(q), {
|
|
1521
1523
|
label: a(D)("供应商名称"),
|
|
1522
1524
|
prop: "name"
|
|
1523
1525
|
}, null, 8, ["label"]),
|
|
1524
|
-
L(a(
|
|
1526
|
+
L(a(q), {
|
|
1525
1527
|
label: a(D)("供应商编码"),
|
|
1526
1528
|
prop: "code"
|
|
1527
1529
|
}, null, 8, ["label"]),
|
|
1528
|
-
L(a(
|
|
1530
|
+
L(a(q), {
|
|
1529
1531
|
label: a(D)("供应商等级"),
|
|
1530
1532
|
prop: "supplierLevel"
|
|
1531
1533
|
}, null, 8, ["label"]),
|
|
1532
|
-
L(a(
|
|
1534
|
+
L(a(q), {
|
|
1533
1535
|
label: a(D)("供应商分类"),
|
|
1534
1536
|
prop: "classificationName"
|
|
1535
1537
|
}, {
|
|
1536
|
-
default:
|
|
1537
|
-
|
|
1538
|
+
default: $(() => [
|
|
1539
|
+
j(` <template #default="{row}">\r
|
|
1538
1540
|
{{ getSupplierName(row) }}\r
|
|
1539
1541
|
</template> `)
|
|
1540
1542
|
]),
|
|
1541
1543
|
_: 1
|
|
1542
1544
|
/* STABLE */
|
|
1543
1545
|
}, 8, ["label"]),
|
|
1544
|
-
L(a(
|
|
1546
|
+
L(a(q), {
|
|
1545
1547
|
label: a(D)("个人/公司"),
|
|
1546
1548
|
prop: "businessType"
|
|
1547
1549
|
}, {
|
|
1548
|
-
default:
|
|
1550
|
+
default: $(({ row: T }) => [
|
|
1549
1551
|
X(
|
|
1550
|
-
ee(
|
|
1552
|
+
ee(T.businessType == "COMPANY" ? a(D)("公司") : a(D)("个人")),
|
|
1551
1553
|
1
|
|
1552
1554
|
/* TEXT */
|
|
1553
1555
|
)
|
|
@@ -1558,32 +1560,32 @@ const ca = (s, e) => {
|
|
|
1558
1560
|
]),
|
|
1559
1561
|
key: "6"
|
|
1560
1562
|
} : void 0,
|
|
1561
|
-
a(
|
|
1563
|
+
a(v) === "source" ? {
|
|
1562
1564
|
name: "table-column",
|
|
1563
|
-
fn:
|
|
1564
|
-
L(a(
|
|
1565
|
+
fn: $(() => [
|
|
1566
|
+
L(a(q), {
|
|
1565
1567
|
type: "index",
|
|
1566
1568
|
width: "50"
|
|
1567
1569
|
}),
|
|
1568
|
-
L(a(
|
|
1570
|
+
L(a(q), {
|
|
1569
1571
|
label: a(D)("单据编码"),
|
|
1570
1572
|
prop: "code"
|
|
1571
1573
|
}, null, 8, ["label"]),
|
|
1572
|
-
L(a(
|
|
1574
|
+
L(a(q), {
|
|
1573
1575
|
label: a(D)("申请人"),
|
|
1574
1576
|
prop: "userName"
|
|
1575
1577
|
}, null, 8, ["label"]),
|
|
1576
|
-
L(a(
|
|
1578
|
+
L(a(q), {
|
|
1577
1579
|
label: a(D)("联系电话"),
|
|
1578
1580
|
prop: "phone"
|
|
1579
1581
|
}, null, 8, ["label"]),
|
|
1580
|
-
L(a(
|
|
1582
|
+
L(a(q), {
|
|
1581
1583
|
label: a(D)("计划领用日期"),
|
|
1582
1584
|
prop: "claimingDate"
|
|
1583
1585
|
}, {
|
|
1584
|
-
default:
|
|
1586
|
+
default: $(({ row: T }) => [
|
|
1585
1587
|
X(
|
|
1586
|
-
ee(
|
|
1588
|
+
ee(T.claimingDate ? a(ce)(Number(T == null ? void 0 : T.claimingDate)).format("YYYY/MM/DD") : "-"),
|
|
1587
1589
|
1
|
|
1588
1590
|
/* TEXT */
|
|
1589
1591
|
)
|
|
@@ -1591,7 +1593,7 @@ const ca = (s, e) => {
|
|
|
1591
1593
|
_: 1
|
|
1592
1594
|
/* STABLE */
|
|
1593
1595
|
}, 8, ["label"]),
|
|
1594
|
-
L(a(
|
|
1596
|
+
L(a(q), {
|
|
1595
1597
|
label: a(D)("资产用途"),
|
|
1596
1598
|
prop: "purpose"
|
|
1597
1599
|
}, null, 8, ["label"])
|
|
@@ -1603,8 +1605,8 @@ const ca = (s, e) => {
|
|
|
1603
1605
|
}),
|
|
1604
1606
|
_: 1
|
|
1605
1607
|
/* STABLE */
|
|
1606
|
-
}, 8, ["col", "modelValue", "prop", "label", "options", "helpMessage", "isView", "disabled", "required", "onOpenDialog"])) :
|
|
1607
|
-
y.value && a(
|
|
1608
|
+
}, 8, ["col", "modelValue", "prop", "label", "options", "helpMessage", "isView", "disabled", "required", "onOpenDialog"])) : j("v-if", !0),
|
|
1609
|
+
y.value && a(v) == "position" ? (S(), P(a(z), {
|
|
1608
1610
|
key: 1,
|
|
1609
1611
|
col: e.span,
|
|
1610
1612
|
label: F.setting.desc,
|
|
@@ -1613,29 +1615,29 @@ const ca = (s, e) => {
|
|
|
1613
1615
|
"node-key": "id",
|
|
1614
1616
|
showFullPath: !0,
|
|
1615
1617
|
helpMessage: K.value,
|
|
1616
|
-
required:
|
|
1618
|
+
required: U.value,
|
|
1617
1619
|
modelValue: f.value,
|
|
1618
|
-
"onUpdate:modelValue":
|
|
1620
|
+
"onUpdate:modelValue": Q[2] || (Q[2] = (I) => f.value = I),
|
|
1619
1621
|
keyword: a(se),
|
|
1620
|
-
"onUpdate:keyword":
|
|
1622
|
+
"onUpdate:keyword": Q[3] || (Q[3] = (I) => fe(se) ? se.value = I : null),
|
|
1621
1623
|
path: a(ae),
|
|
1622
|
-
"onUpdate:path":
|
|
1624
|
+
"onUpdate:path": Q[4] || (Q[4] = (I) => fe(ae) ? ae.value = I : null),
|
|
1623
1625
|
isView: e.isView,
|
|
1624
1626
|
disabled: a(d),
|
|
1625
|
-
load: a(
|
|
1626
|
-
search: a(
|
|
1627
|
+
load: a(pe),
|
|
1628
|
+
search: a(de),
|
|
1627
1629
|
props: {
|
|
1628
1630
|
isLeaf: "leaf",
|
|
1629
1631
|
label: "name"
|
|
1630
1632
|
},
|
|
1631
|
-
onChange: a(
|
|
1632
|
-
}, null, 8, ["col", "label", "prop", "helpMessage", "required", "modelValue", "keyword", "path", "isView", "disabled", "load", "search", "onChange"])) :
|
|
1633
|
+
onChange: a(re)
|
|
1634
|
+
}, null, 8, ["col", "label", "prop", "helpMessage", "required", "modelValue", "keyword", "path", "isView", "disabled", "load", "search", "onChange"])) : j("v-if", !0)
|
|
1633
1635
|
],
|
|
1634
1636
|
64
|
|
1635
1637
|
/* STABLE_FRAGMENT */
|
|
1636
1638
|
));
|
|
1637
1639
|
}
|
|
1638
|
-
}), ka = /* @__PURE__ */
|
|
1640
|
+
}), ka = /* @__PURE__ */ me(Ma, [["__scopeId", "data-v-b80347db"]]), at = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1639
1641
|
__proto__: null,
|
|
1640
1642
|
default: ka
|
|
1641
1643
|
}, Symbol.toStringTag, { value: "Module" })), Ta = {
|
|
@@ -1646,7 +1648,7 @@ const ca = (s, e) => {
|
|
|
1646
1648
|
style: { "margin-bottom": "10px" }
|
|
1647
1649
|
}, $a = {
|
|
1648
1650
|
name: "soundRecording"
|
|
1649
|
-
}, Fa = /* @__PURE__ */
|
|
1651
|
+
}, Fa = /* @__PURE__ */ A({
|
|
1650
1652
|
...$a,
|
|
1651
1653
|
props: {
|
|
1652
1654
|
setting: { default: () => ({
|
|
@@ -1662,7 +1664,7 @@ const ca = (s, e) => {
|
|
|
1662
1664
|
store: {}
|
|
1663
1665
|
},
|
|
1664
1666
|
setup(s) {
|
|
1665
|
-
const e = s, { showData: t, disabledData: n, setData:
|
|
1667
|
+
const e = s, { showData: t, disabledData: n, setData: c, getData: i, setFormRule: b, deleteRule: V } = e.store || {}, r = l(!0);
|
|
1666
1668
|
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), M(
|
|
1667
1669
|
() => t.value,
|
|
1668
1670
|
() => {
|
|
@@ -1681,10 +1683,10 @@ const ca = (s, e) => {
|
|
|
1681
1683
|
const h = JSON.parse(i(e.setting.name));
|
|
1682
1684
|
o.value = y + h[0].url;
|
|
1683
1685
|
}
|
|
1684
|
-
return e.setting.options.validateList.length && b(e.setting.name, e.setting.options.validateList), (h, u) => e.isView && r.value ? (S(),
|
|
1686
|
+
return e.setting.options.validateList.length && b(e.setting.name, e.setting.options.validateList), (h, u) => e.isView && r.value ? (S(), P(a(z), {
|
|
1685
1687
|
key: 0,
|
|
1686
1688
|
modelValue: o.value,
|
|
1687
|
-
"onUpdate:modelValue": u[2] || (u[2] = (
|
|
1689
|
+
"onUpdate:modelValue": u[2] || (u[2] = (v) => o.value = v),
|
|
1688
1690
|
"margin-bottom": "0",
|
|
1689
1691
|
prop: e.setting.name,
|
|
1690
1692
|
label: h.setting.desc,
|
|
@@ -1692,27 +1694,27 @@ const ca = (s, e) => {
|
|
|
1692
1694
|
helpMessage: g.value,
|
|
1693
1695
|
required: d.value
|
|
1694
1696
|
}, {
|
|
1695
|
-
default:
|
|
1697
|
+
default: $(() => [
|
|
1696
1698
|
o.value ? (S(), C("div", Ta, [
|
|
1697
1699
|
L(a(Ee), {
|
|
1698
1700
|
modelValue: o.value,
|
|
1699
|
-
"onUpdate:modelValue": u[0] || (u[0] = (
|
|
1701
|
+
"onUpdate:modelValue": u[0] || (u[0] = (v) => o.value = v),
|
|
1700
1702
|
status: f.value,
|
|
1701
|
-
"onUpdate:status": u[1] || (u[1] = (
|
|
1703
|
+
"onUpdate:status": u[1] || (u[1] = (v) => f.value = v),
|
|
1702
1704
|
required: d.value
|
|
1703
1705
|
}, null, 8, ["modelValue", "status", "required"])
|
|
1704
1706
|
])) : (S(), C("div", Ra, "-"))
|
|
1705
1707
|
]),
|
|
1706
1708
|
_: 1
|
|
1707
1709
|
/* STABLE */
|
|
1708
|
-
}, 8, ["modelValue", "prop", "label", "helpMessage", "required"])) :
|
|
1710
|
+
}, 8, ["modelValue", "prop", "label", "helpMessage", "required"])) : j("v-if", !0);
|
|
1709
1711
|
}
|
|
1710
|
-
}), Ia = /* @__PURE__ */
|
|
1712
|
+
}), Ia = /* @__PURE__ */ me(Fa, [["__scopeId", "data-v-da7984c5"]]), st = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1711
1713
|
__proto__: null,
|
|
1712
1714
|
default: Ia
|
|
1713
1715
|
}, Symbol.toStringTag, { value: "Module" })), qa = {
|
|
1714
1716
|
name: "switch"
|
|
1715
|
-
},
|
|
1717
|
+
}, Pa = /* @__PURE__ */ A({
|
|
1716
1718
|
...qa,
|
|
1717
1719
|
props: {
|
|
1718
1720
|
setting: { default: () => ({
|
|
@@ -1728,7 +1730,7 @@ const ca = (s, e) => {
|
|
|
1728
1730
|
store: {}
|
|
1729
1731
|
},
|
|
1730
1732
|
setup(s) {
|
|
1731
|
-
const e = s, { showData: t, disabledData: n, setData:
|
|
1733
|
+
const e = s, { showData: t, disabledData: n, setData: c, getData: i, setFormRule: b, deleteRule: V } = e.store || {}, r = l(!0);
|
|
1732
1734
|
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), M(
|
|
1733
1735
|
() => t.value,
|
|
1734
1736
|
() => {
|
|
@@ -1744,10 +1746,10 @@ const ca = (s, e) => {
|
|
|
1744
1746
|
e.setting.options.tip && (f.value = x(e.setting.options.tip));
|
|
1745
1747
|
const g = l();
|
|
1746
1748
|
return setTimeout(() => {
|
|
1747
|
-
g.value = i(e.setting.name) || e.setting.options.formulasDiyJs || g.value, g.value ||
|
|
1749
|
+
g.value = i(e.setting.name) || e.setting.options.formulasDiyJs || g.value, g.value || c(e.setting.name, null);
|
|
1748
1750
|
}, 50), e.setting.options.validateList.length && b(e.setting.name, e.setting.options.validateList), M(g, (o) => {
|
|
1749
|
-
|
|
1750
|
-
}), (o, h) => r.value ? (S(),
|
|
1751
|
+
c(e.setting.name, o);
|
|
1752
|
+
}), (o, h) => r.value ? (S(), P(a(z), {
|
|
1751
1753
|
key: 0,
|
|
1752
1754
|
col: e.span,
|
|
1753
1755
|
modelValue: g.value,
|
|
@@ -1763,15 +1765,15 @@ const ca = (s, e) => {
|
|
|
1763
1765
|
disabled: a(y),
|
|
1764
1766
|
required: d.value,
|
|
1765
1767
|
isView: e.isView
|
|
1766
|
-
}, null, 8, ["col", "modelValue", "label", "prop", "activeValue", "inactiveValue", "activeText", "inactiveText", "helpMessage", "disabled", "required", "isView"])) :
|
|
1768
|
+
}, null, 8, ["col", "modelValue", "label", "prop", "activeValue", "inactiveValue", "activeText", "inactiveText", "helpMessage", "disabled", "required", "isView"])) : j("v-if", !0);
|
|
1767
1769
|
}
|
|
1768
1770
|
}), nt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1769
1771
|
__proto__: null,
|
|
1770
|
-
default:
|
|
1771
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1772
|
+
default: Pa
|
|
1773
|
+
}, Symbol.toStringTag, { value: "Module" })), ja = {
|
|
1772
1774
|
name: "text"
|
|
1773
|
-
}, Ba = /* @__PURE__ */
|
|
1774
|
-
...
|
|
1775
|
+
}, Ba = /* @__PURE__ */ A({
|
|
1776
|
+
...ja,
|
|
1775
1777
|
props: {
|
|
1776
1778
|
setting: { default: () => ({
|
|
1777
1779
|
icon: "",
|
|
@@ -1786,7 +1788,7 @@ const ca = (s, e) => {
|
|
|
1786
1788
|
store: {}
|
|
1787
1789
|
},
|
|
1788
1790
|
setup(s) {
|
|
1789
|
-
const e = s, { showData: t, disabledData: n, setData:
|
|
1791
|
+
const e = s, { showData: t, disabledData: n, setData: c, getData: i, setFormRule: b, deleteRule: V } = e.store || {}, r = l(!0);
|
|
1790
1792
|
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), M(
|
|
1791
1793
|
() => t.value,
|
|
1792
1794
|
() => {
|
|
@@ -1797,9 +1799,9 @@ const ca = (s, e) => {
|
|
|
1797
1799
|
const y = l();
|
|
1798
1800
|
e.setting.options.tip && (y.value = x(e.setting.options.tip));
|
|
1799
1801
|
const d = l();
|
|
1800
|
-
return d.value = e.setting.options.textValue, d.value = i(e.setting.name) || d.value, d.value ||
|
|
1801
|
-
|
|
1802
|
-
}), (f, g) => r.value ? (S(),
|
|
1802
|
+
return d.value = e.setting.options.textValue, d.value = i(e.setting.name) || d.value, d.value || c(e.setting.name, null), M(d, (f) => {
|
|
1803
|
+
c(e.setting.name, f);
|
|
1804
|
+
}), (f, g) => r.value ? (S(), P(a(z), {
|
|
1803
1805
|
key: 0,
|
|
1804
1806
|
col: e.span,
|
|
1805
1807
|
modelValue: d.value,
|
|
@@ -1808,7 +1810,7 @@ const ca = (s, e) => {
|
|
|
1808
1810
|
type: "custom",
|
|
1809
1811
|
helpMessage: y.value
|
|
1810
1812
|
}, {
|
|
1811
|
-
default:
|
|
1813
|
+
default: $(() => [
|
|
1812
1814
|
L(a(Ae), {
|
|
1813
1815
|
type: "text",
|
|
1814
1816
|
modelValue: d.value,
|
|
@@ -1817,14 +1819,14 @@ const ca = (s, e) => {
|
|
|
1817
1819
|
]),
|
|
1818
1820
|
_: 1
|
|
1819
1821
|
/* STABLE */
|
|
1820
|
-
}, 8, ["col", "modelValue", "label", "helpMessage"])) :
|
|
1822
|
+
}, 8, ["col", "modelValue", "label", "helpMessage"])) : j("v-if", !0);
|
|
1821
1823
|
}
|
|
1822
1824
|
}), lt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1823
1825
|
__proto__: null,
|
|
1824
1826
|
default: Ba
|
|
1825
1827
|
}, Symbol.toStringTag, { value: "Module" })), Ka = {
|
|
1826
1828
|
name: "textarea"
|
|
1827
|
-
}, Na = /* @__PURE__ */
|
|
1829
|
+
}, Na = /* @__PURE__ */ A({
|
|
1828
1830
|
...Ka,
|
|
1829
1831
|
props: {
|
|
1830
1832
|
setting: { default: () => ({
|
|
@@ -1840,7 +1842,7 @@ const ca = (s, e) => {
|
|
|
1840
1842
|
store: {}
|
|
1841
1843
|
},
|
|
1842
1844
|
setup(s) {
|
|
1843
|
-
const e = s, { showData: t, disabledData: n, setData:
|
|
1845
|
+
const e = s, { showData: t, disabledData: n, setData: c, getData: i, setFormRule: b, deleteRule: V } = e.store || {}, r = l(!0);
|
|
1844
1846
|
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), M(
|
|
1845
1847
|
() => t.value,
|
|
1846
1848
|
() => {
|
|
@@ -1856,22 +1858,22 @@ const ca = (s, e) => {
|
|
|
1856
1858
|
e.setting.options.tip && (f.value = x(e.setting.options.tip));
|
|
1857
1859
|
const g = l("");
|
|
1858
1860
|
setTimeout(() => {
|
|
1859
|
-
g.value = i(e.setting.name) || e.setting.options.formulasDiyJs || g.value, g.value ||
|
|
1861
|
+
g.value = i(e.setting.name) || e.setting.options.formulasDiyJs || g.value, g.value || c(e.setting.name, null);
|
|
1860
1862
|
}, 50);
|
|
1861
1863
|
const o = l(), h = l();
|
|
1862
1864
|
return o.value = e.setting.options.initialFrameWidth ? e.setting.options.initialFrameWidth + "px" : "", h.value = e.setting.options.initialFrameHeight ? e.setting.options.initialFrameHeight + "px" : "", e.setting.options.validateList.length && b(e.setting.name, e.setting.options.validateList), M(g, (u) => {
|
|
1863
|
-
|
|
1864
|
-
}), (u,
|
|
1865
|
+
c(e.setting.name, u);
|
|
1866
|
+
}), (u, v) => (S(), C(
|
|
1865
1867
|
H,
|
|
1866
1868
|
null,
|
|
1867
1869
|
[
|
|
1868
|
-
!u.setting.options.isEditor && r.value ? (S(),
|
|
1870
|
+
!u.setting.options.isEditor && r.value ? (S(), P(a(z), {
|
|
1869
1871
|
key: 0,
|
|
1870
1872
|
col: e.span,
|
|
1871
1873
|
label: u.setting.desc,
|
|
1872
1874
|
type: "textarea",
|
|
1873
1875
|
modelValue: g.value,
|
|
1874
|
-
"onUpdate:modelValue":
|
|
1876
|
+
"onUpdate:modelValue": v[0] || (v[0] = (m) => g.value = m),
|
|
1875
1877
|
prop: e.setting.name,
|
|
1876
1878
|
placeholder: u.setting.options.placeholder,
|
|
1877
1879
|
disabled: u.setting.options.isInputEdit || a(y),
|
|
@@ -1883,11 +1885,11 @@ const ca = (s, e) => {
|
|
|
1883
1885
|
"show-word-limit": "",
|
|
1884
1886
|
helpMessage: f.value,
|
|
1885
1887
|
required: d.value
|
|
1886
|
-
}, null, 8, ["col", "label", "modelValue", "prop", "placeholder", "disabled", "isView", "helpMessage", "required"])) :
|
|
1887
|
-
u.setting.options.isEditor && r.value ? (S(),
|
|
1888
|
+
}, null, 8, ["col", "label", "modelValue", "prop", "placeholder", "disabled", "isView", "helpMessage", "required"])) : j("v-if", !0),
|
|
1889
|
+
u.setting.options.isEditor && r.value ? (S(), P(a(z), {
|
|
1888
1890
|
key: 1,
|
|
1889
1891
|
modelValue: g.value,
|
|
1890
|
-
"onUpdate:modelValue":
|
|
1892
|
+
"onUpdate:modelValue": v[2] || (v[2] = (m) => g.value = m),
|
|
1891
1893
|
prop: e.setting.name,
|
|
1892
1894
|
contentWidth: o.value,
|
|
1893
1895
|
label: u.setting.desc,
|
|
@@ -1896,19 +1898,19 @@ const ca = (s, e) => {
|
|
|
1896
1898
|
required: d.value,
|
|
1897
1899
|
readOnly: e.isView
|
|
1898
1900
|
}, {
|
|
1899
|
-
default:
|
|
1901
|
+
default: $(() => [
|
|
1900
1902
|
L(a(Ae), {
|
|
1901
1903
|
ref: "editor",
|
|
1902
1904
|
width: o.value,
|
|
1903
1905
|
height: h.value,
|
|
1904
1906
|
modelValue: g.value,
|
|
1905
|
-
"onUpdate:modelValue":
|
|
1907
|
+
"onUpdate:modelValue": v[1] || (v[1] = (m) => g.value = m),
|
|
1906
1908
|
placeholder: u.setting.options.placeholder
|
|
1907
1909
|
}, null, 8, ["width", "height", "modelValue", "placeholder"])
|
|
1908
1910
|
]),
|
|
1909
1911
|
_: 1
|
|
1910
1912
|
/* STABLE */
|
|
1911
|
-
}, 8, ["modelValue", "prop", "contentWidth", "label", "helpMessage", "required", "readOnly"])) :
|
|
1913
|
+
}, 8, ["modelValue", "prop", "contentWidth", "label", "helpMessage", "required", "readOnly"])) : j("v-if", !0)
|
|
1912
1914
|
],
|
|
1913
1915
|
64
|
|
1914
1916
|
/* STABLE_FRAGMENT */
|
|
@@ -1919,7 +1921,7 @@ const ca = (s, e) => {
|
|
|
1919
1921
|
default: Na
|
|
1920
1922
|
}, Symbol.toStringTag, { value: "Module" })), Ea = {
|
|
1921
1923
|
name: "time"
|
|
1922
|
-
}, Oa = /* @__PURE__ */
|
|
1924
|
+
}, Oa = /* @__PURE__ */ A({
|
|
1923
1925
|
...Ea,
|
|
1924
1926
|
props: {
|
|
1925
1927
|
setting: { default: () => ({
|
|
@@ -1935,7 +1937,7 @@ const ca = (s, e) => {
|
|
|
1935
1937
|
store: {}
|
|
1936
1938
|
},
|
|
1937
1939
|
setup(s) {
|
|
1938
|
-
const e = s, { showData: t, disabledData: n, setData:
|
|
1940
|
+
const e = s, { showData: t, disabledData: n, setData: c, getData: i, setFormRule: b, deleteRule: V } = e.store || {}, r = l(!0);
|
|
1939
1941
|
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), M(
|
|
1940
1942
|
() => t.value,
|
|
1941
1943
|
() => {
|
|
@@ -1951,11 +1953,11 @@ const ca = (s, e) => {
|
|
|
1951
1953
|
e.setting.options.tip && (f.value = x(e.setting.options.tip));
|
|
1952
1954
|
const g = l();
|
|
1953
1955
|
return setTimeout(() => {
|
|
1954
|
-
const o =
|
|
1955
|
-
i(e.setting.name) && (g.value = i(e.setting.name)), e.setting.options.formulasDiyJs && (g.value =
|
|
1956
|
+
const o = ce().format("YYYY-MM-DD ");
|
|
1957
|
+
i(e.setting.name) && (g.value = i(e.setting.name)), e.setting.options.formulasDiyJs && (g.value = ce(o + e.setting.options.formulasDiyJs)), g.value || c(e.setting.name, null);
|
|
1956
1958
|
}, 50), e.setting.options.validateList.length && b(e.setting.name, e.setting.options.validateList), M(g, (o) => {
|
|
1957
|
-
|
|
1958
|
-
}), (o, h) => r.value ? (S(),
|
|
1959
|
+
c(e.setting.name, o);
|
|
1960
|
+
}), (o, h) => r.value ? (S(), P(a(z), {
|
|
1959
1961
|
key: 0,
|
|
1960
1962
|
col: e.span,
|
|
1961
1963
|
modelValue: g.value,
|
|
@@ -1967,12 +1969,12 @@ const ca = (s, e) => {
|
|
|
1967
1969
|
isView: e.isView,
|
|
1968
1970
|
required: d.value,
|
|
1969
1971
|
disabled: a(y)
|
|
1970
|
-
}, null, 8, ["col", "modelValue", "prop", "label", "helpMessage", "isView", "required", "disabled"])) :
|
|
1972
|
+
}, null, 8, ["col", "modelValue", "prop", "label", "helpMessage", "isView", "required", "disabled"])) : j("v-if", !0);
|
|
1971
1973
|
}
|
|
1972
1974
|
}), ot = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1973
1975
|
__proto__: null,
|
|
1974
1976
|
default: Oa
|
|
1975
|
-
}, Symbol.toStringTag, { value: "Module" })), Qa =
|
|
1977
|
+
}, Symbol.toStringTag, { value: "Module" })), Qa = A({
|
|
1976
1978
|
name: "accordion",
|
|
1977
1979
|
props: {
|
|
1978
1980
|
columns: {
|
|
@@ -1990,22 +1992,22 @@ const ca = (s, e) => {
|
|
|
1990
1992
|
},
|
|
1991
1993
|
setup(s) {
|
|
1992
1994
|
const e = l([]), t = s.columns.map((n) => {
|
|
1993
|
-
const
|
|
1994
|
-
(i) =>
|
|
1995
|
+
const c = n.list.map(
|
|
1996
|
+
(i) => ie(ve[i.ctrlType], { setting: i, isView: s.isView, store: s.store })
|
|
1995
1997
|
);
|
|
1996
|
-
return n.isOpen == !0 && e.value.push(n.idKey),
|
|
1998
|
+
return n.isOpen == !0 && e.value.push(n.idKey), ie(
|
|
1997
1999
|
Ue,
|
|
1998
2000
|
{
|
|
1999
2001
|
header: n.span,
|
|
2000
2002
|
key: `${n.idKey}`
|
|
2001
2003
|
},
|
|
2002
|
-
|
|
2004
|
+
ie("div", c)
|
|
2003
2005
|
);
|
|
2004
2006
|
});
|
|
2005
|
-
return () =>
|
|
2007
|
+
return () => ie(
|
|
2006
2008
|
"div",
|
|
2007
2009
|
{ class: "accordion-layout" },
|
|
2008
|
-
|
|
2010
|
+
ie(
|
|
2009
2011
|
ze,
|
|
2010
2012
|
{ activeKey: e.value, collapsible: s.options.accordion ? "" : "disabled" },
|
|
2011
2013
|
t
|
|
@@ -2014,7 +2016,7 @@ const ca = (s, e) => {
|
|
|
2014
2016
|
}
|
|
2015
2017
|
}), Aa = {
|
|
2016
2018
|
name: "accordion"
|
|
2017
|
-
}, za = /* @__PURE__ */
|
|
2019
|
+
}, za = /* @__PURE__ */ A({
|
|
2018
2020
|
...Aa,
|
|
2019
2021
|
props: {
|
|
2020
2022
|
setting: { default: () => ({
|
|
@@ -2043,7 +2045,7 @@ const ca = (s, e) => {
|
|
|
2043
2045
|
store: {}
|
|
2044
2046
|
},
|
|
2045
2047
|
setup(s) {
|
|
2046
|
-
return (e, t) => (S(),
|
|
2048
|
+
return (e, t) => (S(), P(a(Qa), {
|
|
2047
2049
|
columns: e.setting.columns,
|
|
2048
2050
|
options: e.setting.options,
|
|
2049
2051
|
isView: e.isView,
|
|
@@ -2056,7 +2058,7 @@ const ca = (s, e) => {
|
|
|
2056
2058
|
default: za
|
|
2057
2059
|
}, Symbol.toStringTag, { value: "Module" })), Ca = {
|
|
2058
2060
|
name: "grid"
|
|
2059
|
-
}, xa = /* @__PURE__ */
|
|
2061
|
+
}, xa = /* @__PURE__ */ A({
|
|
2060
2062
|
...Ca,
|
|
2061
2063
|
props: {
|
|
2062
2064
|
setting: { default: () => ({
|
|
@@ -2087,23 +2089,23 @@ const ca = (s, e) => {
|
|
|
2087
2089
|
H,
|
|
2088
2090
|
null,
|
|
2089
2091
|
[
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
+
j(' <GridLayout :columns="setting.columns" :isView="props.isView" :store="store"></GridLayout> '),
|
|
2093
|
+
j(' <div style="display: flex; flex-direction: row; flex-wrap: wrap; width: 100%"> '),
|
|
2092
2094
|
(S(!0), C(
|
|
2093
2095
|
H,
|
|
2094
2096
|
null,
|
|
2095
|
-
|
|
2097
|
+
oe(t.setting.columns, (c) => (S(), C(
|
|
2096
2098
|
H,
|
|
2097
2099
|
null,
|
|
2098
2100
|
[
|
|
2099
2101
|
(S(!0), C(
|
|
2100
2102
|
H,
|
|
2101
2103
|
null,
|
|
2102
|
-
|
|
2104
|
+
oe(c.list, (i) => (S(), P(De(a(Wa)[i.ctrlType]), {
|
|
2103
2105
|
setting: i,
|
|
2104
2106
|
isView: e.isView,
|
|
2105
2107
|
store: t.store,
|
|
2106
|
-
span:
|
|
2108
|
+
span: c.span
|
|
2107
2109
|
}, null, 8, ["setting", "isView", "store", "span"]))),
|
|
2108
2110
|
256
|
|
2109
2111
|
/* UNKEYED_FRAGMENT */
|
|
@@ -2115,7 +2117,7 @@ const ca = (s, e) => {
|
|
|
2115
2117
|
256
|
|
2116
2118
|
/* UNKEYED_FRAGMENT */
|
|
2117
2119
|
)),
|
|
2118
|
-
|
|
2120
|
+
j(" </div> ")
|
|
2119
2121
|
],
|
|
2120
2122
|
2112
|
|
2121
2123
|
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
@@ -2124,11 +2126,11 @@ const ca = (s, e) => {
|
|
|
2124
2126
|
}), Ya = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2125
2127
|
__proto__: null,
|
|
2126
2128
|
default: xa
|
|
2127
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2128
|
-
Object.keys(
|
|
2129
|
-
Object.keys(
|
|
2130
|
-
Object.keys(
|
|
2131
|
-
Object.keys(
|
|
2129
|
+
}, Symbol.toStringTag, { value: "Module" })), be = /* @__PURE__ */ Object.assign({ "./base/attachment.vue": xe, "./base/autocomplete.vue": Ye, "./base/checkbox.vue": Je, "./base/date.vue": We, "./base/dropdown.vue": He, "./base/imageViewer.vue": Ze, "./base/input.vue": Ge, "./base/number.vue": Xe, "./base/radio.vue": et, "./base/select.vue": tt, "./base/selector.vue": at, "./base/soundRecording.vue": st, "./base/switch.vue": nt, "./base/text.vue": lt, "./base/textarea.vue": it, "./base/time.vue": ot, "./layout/accordion/accordion.vue": Ua, "./layout/grid/gridLayout.vue": Ya }), _e = /* @__PURE__ */ Object.assign({ "./base/attachment.vue": xe, "./base/autocomplete.vue": Ye, "./base/checkbox.vue": Je, "./base/date.vue": We, "./base/dropdown.vue": He, "./base/imageViewer.vue": Ze, "./base/input.vue": Ge, "./base/number.vue": Xe, "./base/radio.vue": et, "./base/select.vue": tt, "./base/selector.vue": at, "./base/soundRecording.vue": st, "./base/switch.vue": nt, "./base/text.vue": lt, "./base/textarea.vue": it, "./base/time.vue": ot }), we = /* @__PURE__ */ Object.assign({}), Ve = /* @__PURE__ */ Object.assign({}), ve = {}, ut = {}, rt = {}, Ja = {};
|
|
2130
|
+
Object.keys(_e).map((s) => ut[_e[s].default.name] = _e[s].default);
|
|
2131
|
+
Object.keys(we).map((s) => rt[we[s].default.name] = we[s].default);
|
|
2132
|
+
Object.keys(Ve).map((s) => Ja[Ve[s].default.name] = Ve[s].default);
|
|
2133
|
+
Object.keys(be).map((s) => ve[be[s].default.name] = be[s].default);
|
|
2132
2134
|
const Wa = { ...ut, ...rt }, Ha = (s, e, t, n) => {
|
|
2133
2135
|
(!e || e.toString() === "") && parseInt(e) !== 0 ? t(new Error(`${n.name}`)) : t();
|
|
2134
2136
|
}, Za = (s, e, t, n) => {
|
|
@@ -2156,8 +2158,8 @@ const Wa = { ...ut, ...rt }, Ha = (s, e, t, n) => {
|
|
|
2156
2158
|
}, ns = (s, e, t, n) => {
|
|
2157
2159
|
e === "" ? t() : /^[+-]?\d*\.?\d*$/.test(e) ? e > parseFloat(n.value) ? t(new Error(`${n.name}${D("不能大于")}${n.value}`)) : t() : t(new Error(D("请输入数字")));
|
|
2158
2160
|
}, ls = (s, e, t, n) => {
|
|
2159
|
-
const
|
|
2160
|
-
e === "" ? t() :
|
|
2161
|
+
const c = /^[+-]?(\d*\.\d+([eE]?[+-]?\d+)?|\d+[eE][+-]?\d+)$/, i = /^-?\d+$/;
|
|
2162
|
+
e === "" ? t() : c.test(e) || i.test(e) ? e >= parseFloat(n.start) && e <= parseFloat(n.end) ? t() : t(new Error(`${D("只能输入指定数字范围")}${n.start}-${n.end}`)) : t(new Error(D("请输入数字")));
|
|
2161
2163
|
}, is = (s, e, t, n) => {
|
|
2162
2164
|
e === "" || parseFloat(e) === parseFloat(n.value) ? t() : t(new Error(`${D("只能输入指定的值")}${n.value}`));
|
|
2163
2165
|
}, os = (s, e, t, n) => {
|
|
@@ -2179,8 +2181,8 @@ const Wa = { ...ut, ...rt }, Ha = (s, e, t, n) => {
|
|
|
2179
2181
|
return t(new Error(D("只能输入字母数字"))), !1;
|
|
2180
2182
|
t();
|
|
2181
2183
|
}, gs = (s, e, t, n) => {
|
|
2182
|
-
const
|
|
2183
|
-
if (e !== "" && !
|
|
2184
|
+
const c = new RegExp(n.value);
|
|
2185
|
+
if (e !== "" && !c.test(e))
|
|
2184
2186
|
return t(new Error(n.errorMessage)), !1;
|
|
2185
2187
|
t();
|
|
2186
2188
|
}, cs = {
|
|
@@ -2202,7 +2204,7 @@ const Wa = { ...ut, ...rt }, Ha = (s, e, t, n) => {
|
|
|
2202
2204
|
alpha_num: ds,
|
|
2203
2205
|
regex: gs
|
|
2204
2206
|
}, vs = () => {
|
|
2205
|
-
const s = l({}), e = l([]), t = l({}), n = l({}),
|
|
2207
|
+
const s = l({}), e = l([]), t = l({}), n = l({}), c = l([]), i = l(""), b = l(""), V = l({}), r = l({});
|
|
2206
2208
|
return {
|
|
2207
2209
|
data: s,
|
|
2208
2210
|
formData: e,
|
|
@@ -2226,9 +2228,9 @@ const Wa = { ...ut, ...rt }, Ha = (s, e, t, n) => {
|
|
|
2226
2228
|
},
|
|
2227
2229
|
getData: (p) => s.value[p],
|
|
2228
2230
|
setFormData: (p, _, w) => {
|
|
2229
|
-
b.value = p,
|
|
2231
|
+
b.value = p, c.value.includes(p) ? e.value.forEach((k) => {
|
|
2230
2232
|
k.formKey === p && (s.value = k.data);
|
|
2231
|
-
}) : (
|
|
2233
|
+
}) : (c.value.push(p), e.value.push({
|
|
2232
2234
|
formKey: p,
|
|
2233
2235
|
boKey: _,
|
|
2234
2236
|
reportId: w || null,
|
|
@@ -2244,7 +2246,7 @@ const Wa = { ...ut, ...rt }, Ha = (s, e, t, n) => {
|
|
|
2244
2246
|
});
|
|
2245
2247
|
},
|
|
2246
2248
|
clearData: () => {
|
|
2247
|
-
s.value = {}, e.value = [],
|
|
2249
|
+
s.value = {}, e.value = [], c.value = [], V.value = {};
|
|
2248
2250
|
},
|
|
2249
2251
|
deleteRule: (p) => {
|
|
2250
2252
|
delete V.value[p];
|
|
@@ -2256,7 +2258,7 @@ const Wa = { ...ut, ...rt }, Ha = (s, e, t, n) => {
|
|
|
2256
2258
|
}, ys = {
|
|
2257
2259
|
key: 1,
|
|
2258
2260
|
style: { "background-color": "#fff" }
|
|
2259
|
-
}, hs = /* @__PURE__ */
|
|
2261
|
+
}, hs = /* @__PURE__ */ A({
|
|
2260
2262
|
__name: "App",
|
|
2261
2263
|
props: {
|
|
2262
2264
|
formConfigurationId: {},
|
|
@@ -2270,7 +2272,7 @@ const Wa = { ...ut, ...rt }, Ha = (s, e, t, n) => {
|
|
|
2270
2272
|
},
|
|
2271
2273
|
emits: ["handleClick", "change"],
|
|
2272
2274
|
setup(s, { expose: e, emit: t }) {
|
|
2273
|
-
const n = vs(), { formRule:
|
|
2275
|
+
const n = vs(), { formRule: c, data: i, flowKey: b, clearData: V, getFormData: r } = n, y = s, d = t;
|
|
2274
2276
|
b.value = y.flowKey;
|
|
2275
2277
|
const f = (O) => O === "accordion";
|
|
2276
2278
|
M(
|
|
@@ -2283,28 +2285,28 @@ const Wa = { ...ut, ...rt }, Ha = (s, e, t, n) => {
|
|
|
2283
2285
|
deep: !0
|
|
2284
2286
|
}
|
|
2285
2287
|
);
|
|
2286
|
-
const { formJsonList: g, isShowPage: o, btnList: h, formRef: u, activityKeys:
|
|
2288
|
+
const { formJsonList: g, isShowPage: o, btnList: h, formRef: u, activityKeys: v, getForm: m, getBtnSet: p, handleClick: _ } = Wt(
|
|
2287
2289
|
y,
|
|
2288
2290
|
d,
|
|
2289
2291
|
n
|
|
2290
2292
|
), w = l({}), k = (O, G) => {
|
|
2291
|
-
const { key:
|
|
2292
|
-
w.value[
|
|
2293
|
+
const { key: R } = G;
|
|
2294
|
+
w.value[R] || (w.value[R] = O);
|
|
2293
2295
|
}, N = () => new Promise((O, G) => {
|
|
2294
|
-
let
|
|
2296
|
+
let R = !0;
|
|
2295
2297
|
for (const W in w.value)
|
|
2296
2298
|
w.value[W].validate((ae) => {
|
|
2297
|
-
ae == !1 && (
|
|
2299
|
+
ae == !1 && (R = !1);
|
|
2298
2300
|
});
|
|
2299
2301
|
setTimeout(() => {
|
|
2300
2302
|
O({
|
|
2301
|
-
result:
|
|
2303
|
+
result: R,
|
|
2302
2304
|
data: r()
|
|
2303
2305
|
});
|
|
2304
2306
|
}, 50);
|
|
2305
2307
|
});
|
|
2306
2308
|
return gt(async () => {
|
|
2307
|
-
y.isShowBtn == !1 ?
|
|
2309
|
+
y.isShowBtn == !1 ? m(y.formConfigurationId) : p();
|
|
2308
2310
|
}), e({
|
|
2309
2311
|
validateFormData: N,
|
|
2310
2312
|
clearData: V
|
|
@@ -2313,15 +2315,15 @@ const Wa = { ...ut, ...rt }, Ha = (s, e, t, n) => {
|
|
|
2313
2315
|
(S(!0), C(
|
|
2314
2316
|
H,
|
|
2315
2317
|
null,
|
|
2316
|
-
|
|
2317
|
-
key:
|
|
2318
|
+
oe(a(h), (R) => (S(), P(a(ft), {
|
|
2319
|
+
key: R.id,
|
|
2318
2320
|
style: { "margin-right": "20px" },
|
|
2319
2321
|
"btn-type": "primary",
|
|
2320
|
-
onClick: (W) => a(_)(
|
|
2322
|
+
onClick: (W) => a(_)(R)
|
|
2321
2323
|
}, {
|
|
2322
|
-
default:
|
|
2324
|
+
default: $(() => [
|
|
2323
2325
|
X(
|
|
2324
|
-
ee(
|
|
2326
|
+
ee(R.name),
|
|
2325
2327
|
1
|
|
2326
2328
|
/* TEXT */
|
|
2327
2329
|
)
|
|
@@ -2332,7 +2334,7 @@ const Wa = { ...ut, ...rt }, Ha = (s, e, t, n) => {
|
|
|
2332
2334
|
128
|
|
2333
2335
|
/* KEYED_FRAGMENT */
|
|
2334
2336
|
))
|
|
2335
|
-
])) :
|
|
2337
|
+
])) : j("v-if", !0),
|
|
2336
2338
|
ct((S(), C(
|
|
2337
2339
|
"div",
|
|
2338
2340
|
{
|
|
@@ -2343,40 +2345,40 @@ const Wa = { ...ut, ...rt }, Ha = (s, e, t, n) => {
|
|
|
2343
2345
|
(S(!0), C(
|
|
2344
2346
|
H,
|
|
2345
2347
|
null,
|
|
2346
|
-
|
|
2348
|
+
oe(a(g), (R) => (S(), C(
|
|
2347
2349
|
H,
|
|
2348
2350
|
{
|
|
2349
|
-
key:
|
|
2351
|
+
key: R.name
|
|
2350
2352
|
},
|
|
2351
2353
|
[
|
|
2352
|
-
f(
|
|
2354
|
+
f(R.ctrlType) ? (S(), P(a(ze), {
|
|
2353
2355
|
key: 0,
|
|
2354
2356
|
style: { "margin-bottom": "10px" },
|
|
2355
|
-
collapsible:
|
|
2356
|
-
activeKey: a(
|
|
2357
|
+
collapsible: R.options.accordion ? "" : "disabled",
|
|
2358
|
+
activeKey: a(v)
|
|
2357
2359
|
}, {
|
|
2358
|
-
default:
|
|
2359
|
-
(S(),
|
|
2360
|
-
key:
|
|
2361
|
-
header:
|
|
2360
|
+
default: $(() => [
|
|
2361
|
+
(S(), P(a(Ue), {
|
|
2362
|
+
key: R.columns[0].idKey,
|
|
2363
|
+
header: R.columns[0].span
|
|
2362
2364
|
}, {
|
|
2363
|
-
default:
|
|
2364
|
-
L(a(
|
|
2365
|
+
default: $(() => [
|
|
2366
|
+
L(a(je), {
|
|
2365
2367
|
ref_for: !0,
|
|
2366
|
-
ref: (W) => k(W,
|
|
2368
|
+
ref: (W) => k(W, R),
|
|
2367
2369
|
cols: 24,
|
|
2368
2370
|
alignType: "horizontal",
|
|
2369
2371
|
"margin-right": "80px",
|
|
2370
2372
|
"auto-margin-right": "",
|
|
2371
|
-
rules: a(
|
|
2373
|
+
rules: a(c),
|
|
2372
2374
|
form: a(n).data
|
|
2373
2375
|
}, {
|
|
2374
|
-
default:
|
|
2376
|
+
default: $(() => [
|
|
2375
2377
|
(S(!0), C(
|
|
2376
2378
|
H,
|
|
2377
2379
|
null,
|
|
2378
|
-
|
|
2379
|
-
key:
|
|
2380
|
+
oe(R.columns[0].list, (W) => (S(), P(De(a(ve).grid), {
|
|
2381
|
+
key: R.name,
|
|
2380
2382
|
setting: W,
|
|
2381
2383
|
isView: y.isView,
|
|
2382
2384
|
store: a(n)
|
|
@@ -2396,27 +2398,27 @@ const Wa = { ...ut, ...rt }, Ha = (s, e, t, n) => {
|
|
|
2396
2398
|
_: 2
|
|
2397
2399
|
/* DYNAMIC */
|
|
2398
2400
|
}, 1032, ["collapsible", "activeKey"])) : (S(), C("div", ys, [
|
|
2399
|
-
a(o) ? (S(),
|
|
2401
|
+
a(o) ? (S(), P(a(je), {
|
|
2400
2402
|
key: 0,
|
|
2401
2403
|
ref_for: !0,
|
|
2402
|
-
ref: (W) => k(W,
|
|
2404
|
+
ref: (W) => k(W, R),
|
|
2403
2405
|
cols: 24,
|
|
2404
2406
|
"auto-margin-right": "",
|
|
2405
2407
|
alignType: "horizontal",
|
|
2406
2408
|
"margin-right": "80px",
|
|
2407
|
-
rules: a(
|
|
2409
|
+
rules: a(c),
|
|
2408
2410
|
form: a(n).data
|
|
2409
2411
|
}, {
|
|
2410
|
-
default:
|
|
2411
|
-
(S(),
|
|
2412
|
-
setting:
|
|
2412
|
+
default: $(() => [
|
|
2413
|
+
(S(), P(De(a(ve)[R.ctrlType]), {
|
|
2414
|
+
setting: R,
|
|
2413
2415
|
isView: y.isView,
|
|
2414
2416
|
store: a(n)
|
|
2415
2417
|
}, null, 8, ["setting", "isView", "store"]))
|
|
2416
2418
|
]),
|
|
2417
2419
|
_: 2
|
|
2418
2420
|
/* DYNAMIC */
|
|
2419
|
-
}, 1032, ["rules", "form"])) :
|
|
2421
|
+
}, 1032, ["rules", "form"])) : j("v-if", !0)
|
|
2420
2422
|
]))
|
|
2421
2423
|
],
|
|
2422
2424
|
64
|
|
@@ -2433,7 +2435,7 @@ const Wa = { ...ut, ...rt }, Ha = (s, e, t, n) => {
|
|
|
2433
2435
|
])
|
|
2434
2436
|
]));
|
|
2435
2437
|
}
|
|
2436
|
-
}), bs = /* @__PURE__ */
|
|
2438
|
+
}), bs = /* @__PURE__ */ me(hs, [["__scopeId", "data-v-425dc9e6"]]), As = pt(bs);
|
|
2437
2439
|
export {
|
|
2438
2440
|
As as DasProcessForm,
|
|
2439
2441
|
As as default
|