@das-fed/ui 7.0.7-hot.71 → 7.0.7-hot.73
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/package.json +5 -5
- package/packages/business-components/device-panel/i18n/index.d.ts +0 -4
- package/packages/business-components/device-panel/index.js +2291 -2288
- 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 +371 -381
- 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/process-log/i18n/index.d.ts +0 -80
- package/packages/business-components/process-log/index.js +333 -828
- package/packages/business-components/process-log/index.js.gz +0 -0
- package/packages/business-components/process-log/src/widgets/base/remarkInfo.vue.d.ts +0 -1
- package/packages/business-components/process-log/style.css +1 -1
- package/packages/business-components/process-log/style.css.gz +0 -0
- package/packages/business-components/process-log/type.d.ts +0 -11
- package/packages/business-components/video-dialog/index.d.ts +5 -5
- package/packages/business-components/video-dialog/src/index.vue.d.ts +1 -1
- package/packages/components/tree/i18n/index.d.ts +0 -5
- package/packages/components/tree/index.js +1574 -1767
- package/packages/components/tree/index.js.gz +0 -0
- package/packages/components/tree/src/App.vue.d.ts +16 -40
- package/packages/components/tree/src/hooks/use-lazy-tree.d.ts +2 -11
- package/packages/components/tree/src/type.d.ts +1 -18
- package/packages/components/tree/style.css +1 -1
- package/packages/components/tree/style.css.gz +0 -0
- package/packages/components/tree-select/src/App.vue.d.ts +2 -2
- package/packages/components/tree-select/src/hooks/use-tree-select.d.ts +2 -2
- package/packages/components/tree-v2/index.js +1933 -1982
- package/packages/components/tree-v2/index.js.gz +0 -0
- package/packages/components/tree-v2/style.css +1 -1
- package/packages/components/tree-v2/style.css.gz +0 -0
- package/packages/components/virtual-tree/style.css +1 -1
- package/packages/components/virtual-tree/style.css.gz +0 -0
- package/packages/business-components/process-log/src/apis.d.ts +0 -1
- package/packages/business-components/process-log/src/widgets/base/evaluationContent.vue.d.ts +0 -7
- package/packages/business-components/process-log/src/widgets/base/evaluationDialog.vue.d.ts +0 -42
- package/packages/business-components/process-log/src/widgets/base/meetingEvaluationInfo.vue.d.ts +0 -24
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '@das-fed/ui/packages/business-components/process-form/style.css';
|
|
2
2
|
import { withInstall as Nt } from "@das-fed/utils/with-install/index";
|
|
3
|
-
import { ref as p, nextTick as ve, defineComponent as Y, watch as M, createBlock as
|
|
3
|
+
import { ref as p, nextTick as ve, defineComponent as Y, watch as M, createBlock as O, createCommentVNode as A, openBlock as V, unref as a, withCtx as F, createVNode as z, createElementVNode as Xe, createElementBlock as H, Fragment as le, createTextVNode as re, toDisplayString as ue, computed as Vt, isRef as Re, createSlots as Lt, h as Se, renderList as ke, resolveDynamicComponent as Le, onMounted as zt, withDirectives as Mt, normalizeStyle as It } from "vue";
|
|
4
4
|
import { DasFormRef as Tt, DasForm as We } from "@das-fed/ui/packages/components/form/index";
|
|
5
5
|
import { DasButton as Pt } from "@das-fed/ui/packages/components/button/index";
|
|
6
6
|
import { vOverlay as Rt } from "@das-fed/ui/packages/components/overlay/index";
|
|
@@ -11,76 +11,76 @@ import { DasAutocomplete as Ft } from "@das-fed/ui/packages/components/autocompl
|
|
|
11
11
|
import Me from "dayjs";
|
|
12
12
|
import { DasImageViewer as et } from "@das-fed/ui/packages/components/image-viewer/index";
|
|
13
13
|
import { DasInput as jt } from "@das-fed/ui/packages/components/input/index";
|
|
14
|
-
import { DasTooltip as
|
|
15
|
-
import { i18n as
|
|
14
|
+
import { DasTooltip as Oe } from "@das-fed/ui/packages/components/tooltip/index";
|
|
15
|
+
import { i18n as B, t as S, setI18nRule as Kt } from "@das-fed/web/packages/i18n/index";
|
|
16
16
|
import { DasTableColumn as K } from "@das-fed/ui/packages/components/table/index";
|
|
17
|
-
import { DasSearchForm as
|
|
18
|
-
import { DasModelTableDialog as
|
|
17
|
+
import { DasSearchForm as qt } from "@das-fed/ui/packages/components/search-form/index";
|
|
18
|
+
import { DasModelTableDialog as Et } from "@das-fed/ui/packages/business-components/model-table-dialog";
|
|
19
19
|
import { getProjectInfo as tt } from "@das-fed/utils/common-info";
|
|
20
|
-
import { getConfig as
|
|
20
|
+
import { getConfig as Ot } from "@das-fed/utils/config";
|
|
21
21
|
import { DasRichEditor as at } from "@das-fed/ui/packages/components/rich-editor/index";
|
|
22
22
|
import { DasCollaspe as nt } from "@das-fed/ui/packages/components/collaspe/index";
|
|
23
23
|
import { DasCollaspePanel as st } from "@das-fed/ui/packages/components/collapse-panel/index";
|
|
24
|
-
const ae = "v1",
|
|
24
|
+
const ae = "v1", Bt = G(`/workflow/form/form/${ae}`), At = G(`/workflow/form/formDef/${ae}`);
|
|
25
25
|
G(`/workflow/api/user/${ae}`);
|
|
26
|
-
const ot = G(`/workflow/api/extend/${ae}`), Qt = G(`/workflow/flow/def/${ae}`), Ut = G(`/workflow/form/customQuery/${ae}`), me = G(`/api/enterpriseright/permission/${ae}`),
|
|
26
|
+
const ot = G(`/workflow/api/extend/${ae}`), Qt = G(`/workflow/flow/def/${ae}`), Ut = G(`/workflow/form/customQuery/${ae}`), me = G(`/api/enterpriseright/permission/${ae}`), Ae = G(`/api/space-manage/space-tree/${ae}`), xt = G(`/workflow/form/dataTemplate/${ae}`), Qe = G(`/api/supply/supplier/${ae}`), Yt = G(`/api/warehouse/vms/${ae}/asset-receive`), Jt = G(`/api/fms/report/${ae}`), Ht = G(`/api/space-manage/device-archives/${ae}`);
|
|
27
27
|
G(`/api/device-relation/project/${ae}`);
|
|
28
|
-
const Wt = xt.get("/getBpmDataTemplateInfoByFlowKey"), Zt =
|
|
28
|
+
const Wt = xt.get("/getBpmDataTemplateInfoByFlowKey"), Zt = Bt.get("/formDesign"), Gt = At.get("/get"), Xt = ot.get("/report-config");
|
|
29
29
|
ot.get("/application-report");
|
|
30
|
-
const ea = Qt.get("/getBindRelationByDefKey"), ta = Ut.get("/getByAlias"), aa = me.get("/organization/authTree"), na = me.post("/user/list"), sa = me.post("/data/user-query"), oa = me.get("/role/list"), la = me.post("/data/role-ids"), ia = me.get("/organization/organizationpage"), ra = me.get("/station/list"), ua = me.get("/position/list"), $e = me.post("/organization/detailbyids"), lt =
|
|
30
|
+
const ea = Qt.get("/getBindRelationByDefKey"), ta = Ut.get("/getByAlias"), aa = me.get("/organization/authTree"), na = me.post("/user/list"), sa = me.post("/data/user-query"), oa = me.get("/role/list"), la = me.post("/data/role-ids"), ia = me.get("/organization/organizationpage"), ra = me.get("/station/list"), ua = me.get("/position/list"), $e = me.post("/organization/detailbyids"), lt = Ae.get("/controller/area-children"), pa = Ae.get("/controller/fuzzy-tree-all"), Be = Ae.get("/controller/space"), da = Qe.post("/supplier/list/page", (n) => {
|
|
31
31
|
var e, t;
|
|
32
32
|
return n.data.pageBean = {
|
|
33
33
|
page: ((e = n == null ? void 0 : n.data) == null ? void 0 : e.pageIndex) || 1,
|
|
34
34
|
pageSize: ((t = n == null ? void 0 : n.data) == null ? void 0 : t.pageSize) || 20
|
|
35
35
|
}, n;
|
|
36
36
|
}), ca = Qe.get("/supplier"), ga = Qe.post("/classification/list/all"), ma = Yt.get("/receive-code"), it = Ht.post("/warehouse/account/device"), va = it, fa = Jt.post("/common/device-type/tree"), Fe = p(""), ha = (n, e, t) => {
|
|
37
|
-
const { setDetailData:
|
|
38
|
-
const [U,
|
|
37
|
+
const { setDetailData: o, getFormData: d, setFormData: l, formRule: g, showData: k, disabledData: s, encryptionData: i } = t, v = p([]), r = p([]), f = p([]), c = p(!1), C = Tt(), y = p([]), D = (I) => Object.keys(I).length === 0, m = async (I) => {
|
|
38
|
+
const [U, q] = await Zt({ formId: I }).run();
|
|
39
39
|
if (U) return;
|
|
40
|
-
const ee = JSON.parse(
|
|
40
|
+
const ee = JSON.parse(q.bos);
|
|
41
41
|
Fe.value = ee[0].alias, r.value.length && r.value.forEach((x) => {
|
|
42
|
-
x.formKey ===
|
|
42
|
+
x.formKey === q.formKey && l(q.formKey, Fe.value, x.id);
|
|
43
43
|
});
|
|
44
|
-
const [ie, pe] = await Gt({ formDefId:
|
|
44
|
+
const [ie, pe] = await Gt({ formDefId: q.defId }).run();
|
|
45
45
|
await h(), f.value = JSON.parse(pe.value.expand).list, f.value.forEach((x) => {
|
|
46
46
|
x.columns && x.columns[0].isOpen && y.value.push(x.key);
|
|
47
|
-
}), s.value = { ...s.value, ...n.disabledData }, r.value.length ||
|
|
48
|
-
k.value = { ...k.value, ...n.showData }, D(n.data) && (c.value = !0), D(n.data) || (
|
|
47
|
+
}), s.value = { ...s.value, ...n.disabledData }, r.value.length || l(q.formKey, Fe.value), setTimeout(() => {
|
|
48
|
+
k.value = { ...k.value, ...n.showData }, D(n.data) && (c.value = !0), D(n.data) || (o(n.data), n.flowKey && (v.value = n.data.button_list ? JSON.parse(n.data.button_list) : []), c.value = !0);
|
|
49
49
|
}, 50);
|
|
50
50
|
}, L = async () => {
|
|
51
51
|
var I;
|
|
52
52
|
if (n.formConfigurationId) {
|
|
53
|
-
const [U,
|
|
53
|
+
const [U, q] = await Xt({ id: n.formConfigurationId }).run();
|
|
54
54
|
if (U) return;
|
|
55
|
-
r.value =
|
|
55
|
+
r.value = q.reports, v.value = (I = q.reports[0]) == null ? void 0 : I.buttons.filter((ee) => !(n.isView && ee.event !== "LINK")), m(q.reports[0].formId);
|
|
56
56
|
}
|
|
57
57
|
if (n.flowKey) {
|
|
58
|
-
const [U,
|
|
58
|
+
const [U, q] = await ea({ flowKey: n.flowKey }).run();
|
|
59
59
|
if (U) return;
|
|
60
|
-
m(
|
|
60
|
+
m(q.pcForm.pcFormId);
|
|
61
61
|
}
|
|
62
62
|
}, h = async () => {
|
|
63
|
-
var
|
|
63
|
+
var q, ee, ie, pe;
|
|
64
64
|
if (!n.flowKey) return;
|
|
65
65
|
const [I, U] = await Wt().run({
|
|
66
66
|
flowKey: n.flowKey,
|
|
67
67
|
needDisplayFileds: !1
|
|
68
68
|
});
|
|
69
|
-
|
|
69
|
+
i.value = ((pe = (ie = (ee = (q = U == null ? void 0 : U.value) == null ? void 0 : q.boDef) == null ? void 0 : ee.boEnt) == null ? void 0 : ie.attributeList) == null ? void 0 : pe.filter((x) => x.encryption == "phone")) || [];
|
|
70
70
|
}, u = p({}), P = (I, U) => {
|
|
71
|
-
const { key:
|
|
72
|
-
u.value[
|
|
71
|
+
const { key: q } = U;
|
|
72
|
+
u.value[q] || (u.value[q] = I);
|
|
73
73
|
}, j = async () => (f.value.forEach((I) => {
|
|
74
74
|
I.columns && y.value.push(I.key);
|
|
75
75
|
}), await ve(), new Promise((I, U) => {
|
|
76
|
-
let
|
|
76
|
+
let q = !0;
|
|
77
77
|
for (const ee in u.value)
|
|
78
78
|
u.value[ee].validate((ie) => {
|
|
79
|
-
ie == !1 && (
|
|
79
|
+
ie == !1 && (q = !1);
|
|
80
80
|
});
|
|
81
81
|
setTimeout(() => {
|
|
82
82
|
I({
|
|
83
|
-
result:
|
|
83
|
+
result: q,
|
|
84
84
|
data: d()
|
|
85
85
|
});
|
|
86
86
|
}, 50);
|
|
@@ -95,8 +95,8 @@ const ea = Qt.get("/getBindRelationByDefKey"), ta = Ut.get("/getByAlias"), aa =
|
|
|
95
95
|
getBtnSet: L,
|
|
96
96
|
handleClick: async (I) => {
|
|
97
97
|
let { result: U } = await j();
|
|
98
|
-
U && (e("handleClick", I, d()), I.event === "LINK" && r.value.forEach((
|
|
99
|
-
I.eventTarget ===
|
|
98
|
+
U && (e("handleClick", I, d()), I.event === "LINK" && r.value.forEach((q) => {
|
|
99
|
+
I.eventTarget === q.formKey && (v.value = q.buttons.filter((ee) => !(n.isView && ee.event !== "LINK")), c.value = !1, g.value = {}, m(q.formId));
|
|
100
100
|
}));
|
|
101
101
|
},
|
|
102
102
|
validateFormData: j,
|
|
@@ -106,8 +106,8 @@ const ea = Qt.get("/getBindRelationByDefKey"), ta = Ut.get("/getByAlias"), aa =
|
|
|
106
106
|
let ya = (n = 21) => {
|
|
107
107
|
let e = "", t = crypto.getRandomValues(new Uint8Array(n));
|
|
108
108
|
for (; n--; ) {
|
|
109
|
-
let
|
|
110
|
-
|
|
109
|
+
let o = t[n] & 63;
|
|
110
|
+
o < 36 ? e += o.toString(36) : o < 62 ? e += (o - 26).toString(36).toUpperCase() : o < 63 ? e += "_" : e += "-";
|
|
111
111
|
}
|
|
112
112
|
return e;
|
|
113
113
|
};
|
|
@@ -115,19 +115,14 @@ const X = (n) => {
|
|
|
115
115
|
var e = new RegExp("<.+?>", "g"), t = n.replace(e, "").replace(/ /g, "");
|
|
116
116
|
return t;
|
|
117
117
|
}, we = async (n, e, t = {}) => {
|
|
118
|
-
const [
|
|
119
|
-
if (!
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
const i = p({});
|
|
127
|
-
Array.isArray(e) && e.forEach((o) => {
|
|
128
|
-
o.defaultType == 2 && (i.value[o.field] = o.defaultValue);
|
|
129
|
-
}), i.value = { ...i.value, ...t };
|
|
130
|
-
const g = d.requestType === "POST" ? G(d.url).post("") : G(d.url).get(""), [k, s] = await g({}, { params: i.value }).run();
|
|
118
|
+
const [o, d] = await ta({ alias: n }).run();
|
|
119
|
+
if (!o && d.url) {
|
|
120
|
+
typeof e == "string" && (e = JSON.parse(e));
|
|
121
|
+
const l = p({});
|
|
122
|
+
e.forEach((i) => {
|
|
123
|
+
i.defaultType == 2 && (l.value[i.field] = i.defaultValue);
|
|
124
|
+
}), l.value = { ...l.value, ...t };
|
|
125
|
+
const g = d.requestType === "POST" ? G(d.url).post("") : G(d.url).get(""), [k, s] = await g({}, { params: l.value }).run();
|
|
131
126
|
return k ? void 0 : s;
|
|
132
127
|
}
|
|
133
128
|
}, ne = async (n) => {
|
|
@@ -163,18 +158,18 @@ const X = (n) => {
|
|
|
163
158
|
store: {}
|
|
164
159
|
},
|
|
165
160
|
setup(n) {
|
|
166
|
-
const e = n, { showData: t, disabledData:
|
|
161
|
+
const e = n, { showData: t, disabledData: o, setData: d, getData: l, setFormRule: g, deleteRule: k } = e.store || {}, s = p([]), i = p(!0);
|
|
167
162
|
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), M(
|
|
168
163
|
() => t.value,
|
|
169
164
|
() => {
|
|
170
|
-
|
|
165
|
+
i.value = t.value[e.setting.name], i.value || (s.value = [], k(e.setting.name)), i.value && e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList);
|
|
171
166
|
},
|
|
172
167
|
{ deep: !0, immediate: !0 }
|
|
173
168
|
);
|
|
174
169
|
const v = p();
|
|
175
170
|
return e.setting.options.tip && (v.value = X(e.setting.options.tip)), s.value || d(e.setting.name, null), M(s, (r) => {
|
|
176
171
|
d(e.setting.name, JSON.stringify(r));
|
|
177
|
-
}), (r, f) =>
|
|
172
|
+
}), (r, f) => i.value ? (V(), O(a(J), {
|
|
178
173
|
key: 0,
|
|
179
174
|
col: e.span,
|
|
180
175
|
label: r.setting.desc,
|
|
@@ -190,7 +185,7 @@ const X = (n) => {
|
|
|
190
185
|
]),
|
|
191
186
|
_: 1
|
|
192
187
|
/* STABLE */
|
|
193
|
-
}, 8, ["col", "label", "helpMessage"])) :
|
|
188
|
+
}, 8, ["col", "label", "helpMessage"])) : A("v-if", !0);
|
|
194
189
|
}
|
|
195
190
|
}), rt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
196
191
|
__proto__: null,
|
|
@@ -213,15 +208,15 @@ const X = (n) => {
|
|
|
213
208
|
store: {}
|
|
214
209
|
},
|
|
215
210
|
setup(n) {
|
|
216
|
-
const e = n, { showData: t, disabledData:
|
|
211
|
+
const e = n, { showData: t, disabledData: o, setData: d, getData: l, setFormRule: g, deleteRule: k } = e.store || {}, s = p(""), i = p(!0);
|
|
217
212
|
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), M(
|
|
218
213
|
() => t.value,
|
|
219
214
|
() => {
|
|
220
|
-
|
|
215
|
+
i.value = t.value[e.setting.name], i.value || (s.value = "", k(e.setting.name)), i.value && e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList);
|
|
221
216
|
},
|
|
222
217
|
{ deep: !0, immediate: !0 }
|
|
223
218
|
);
|
|
224
|
-
const v =
|
|
219
|
+
const v = o.value[e.setting.name] || !1, r = p(!1);
|
|
225
220
|
ne(e.setting.options.validateList).then((L) => {
|
|
226
221
|
r.value = L;
|
|
227
222
|
});
|
|
@@ -230,9 +225,9 @@ const X = (n) => {
|
|
|
230
225
|
D.value = Ie(L);
|
|
231
226
|
}) : D.value = Ie(e.setting.options.options);
|
|
232
227
|
const m = p();
|
|
233
|
-
return e.setting.options.tip && (m.value = X(e.setting.options.tip)), s.value =
|
|
228
|
+
return e.setting.options.tip && (m.value = X(e.setting.options.tip)), s.value = l(e.setting.name) || s.value, s.value || d(e.setting.name, null), e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList), M(s, (L) => {
|
|
234
229
|
d(e.setting.name, L.toString());
|
|
235
|
-
}), (L, h) =>
|
|
230
|
+
}), (L, h) => i.value ? (V(), O(a(J), {
|
|
236
231
|
key: 0,
|
|
237
232
|
col: e.span,
|
|
238
233
|
prop: e.setting.name,
|
|
@@ -260,7 +255,7 @@ const X = (n) => {
|
|
|
260
255
|
]),
|
|
261
256
|
_: 1
|
|
262
257
|
/* STABLE */
|
|
263
|
-
}, 8, ["col", "prop", "modelValue", "label", "helpMessage", "required", "disabled"])) :
|
|
258
|
+
}, 8, ["col", "prop", "modelValue", "label", "helpMessage", "required", "disabled"])) : A("v-if", !0);
|
|
264
259
|
}
|
|
265
260
|
}), ut = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
266
261
|
__proto__: null,
|
|
@@ -283,15 +278,15 @@ const X = (n) => {
|
|
|
283
278
|
store: {}
|
|
284
279
|
},
|
|
285
280
|
setup(n) {
|
|
286
|
-
const e = n, { showData: t, disabledData:
|
|
281
|
+
const e = n, { showData: t, disabledData: o, setData: d, getData: l, setFormRule: g, deleteRule: k } = e.store || {}, s = p([]), i = p(!0);
|
|
287
282
|
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), M(
|
|
288
283
|
() => t.value,
|
|
289
284
|
() => {
|
|
290
|
-
|
|
285
|
+
i.value = t.value[e.setting.name], i.value || (s.value = [], k(e.setting.name)), i.value && e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList);
|
|
291
286
|
},
|
|
292
287
|
{ deep: !0, immediate: !0 }
|
|
293
288
|
);
|
|
294
|
-
const v =
|
|
289
|
+
const v = o.value[e.setting.name] || !1, r = p(!1);
|
|
295
290
|
ne(e.setting.options.validateList).then((D) => {
|
|
296
291
|
r.value = D;
|
|
297
292
|
});
|
|
@@ -301,10 +296,10 @@ const X = (n) => {
|
|
|
301
296
|
}) : C.value = e.setting.options.options;
|
|
302
297
|
const y = p();
|
|
303
298
|
return e.setting.options.tip && (y.value = X(e.setting.options.tip)()), setTimeout(() => {
|
|
304
|
-
|
|
299
|
+
l(e.setting.name) && (s.value = l(e.setting.name).split(",")), e.setting.options.formulasDiyJs && (s.value = e.setting.options.formulasDiyJs.split(",")), s.value.length || s.value || d(e.setting.name, null);
|
|
305
300
|
}, 50), e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList), M(s, (D) => {
|
|
306
301
|
d(e.setting.name, D.toString());
|
|
307
|
-
}), (D, m) =>
|
|
302
|
+
}), (D, m) => i.value ? (V(), O(a(J), {
|
|
308
303
|
key: 0,
|
|
309
304
|
col: e.span,
|
|
310
305
|
modelValue: s.value,
|
|
@@ -320,7 +315,7 @@ const X = (n) => {
|
|
|
320
315
|
optionsLabelKey: a(c),
|
|
321
316
|
helpMessage: y.value,
|
|
322
317
|
required: r.value
|
|
323
|
-
}, null, 8, ["col", "modelValue", "layout", "label", "prop", "options", "isView", "disabled", "optionsValueKey", "optionsLabelKey", "helpMessage", "required"])) :
|
|
318
|
+
}, null, 8, ["col", "modelValue", "layout", "label", "prop", "options", "isView", "disabled", "optionsValueKey", "optionsLabelKey", "helpMessage", "required"])) : A("v-if", !0);
|
|
324
319
|
}
|
|
325
320
|
}), pt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
326
321
|
__proto__: null,
|
|
@@ -343,15 +338,15 @@ const X = (n) => {
|
|
|
343
338
|
store: {}
|
|
344
339
|
},
|
|
345
340
|
setup(n) {
|
|
346
|
-
const e = n, { showData: t, disabledData:
|
|
341
|
+
const e = n, { showData: t, disabledData: o, setData: d, getData: l, setFormRule: g, deleteRule: k } = e.store || {}, s = p(), i = p(!0);
|
|
347
342
|
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), M(
|
|
348
343
|
() => t.value,
|
|
349
344
|
() => {
|
|
350
|
-
|
|
345
|
+
i.value = t.value[e.setting.name], i.value || (s.value = null, k(e.setting.name)), i.value && e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList);
|
|
351
346
|
},
|
|
352
347
|
{ deep: !0, immediate: !0 }
|
|
353
348
|
);
|
|
354
|
-
const v =
|
|
349
|
+
const v = o.value[e.setting.name] || !1, r = p(!1);
|
|
355
350
|
ne(e.setting.options.validateList).then((y) => {
|
|
356
351
|
r.value = y;
|
|
357
352
|
});
|
|
@@ -359,14 +354,14 @@ const X = (n) => {
|
|
|
359
354
|
e.setting.options.inputFormat === "YYYY/MM/DD" && (c.value = "date"), e.setting.options.inputFormat === "MM/DD" && (c.value = "date"), e.setting.options.inputFormat === "YYYY/MM" && (c.value = "month"), e.setting.options.inputFormat === "YYYY" && (c.value = "year");
|
|
360
355
|
const C = p();
|
|
361
356
|
if (e.setting.options.tip && (C.value = X(e.setting.options.tip)), setTimeout(() => {
|
|
362
|
-
s.value =
|
|
357
|
+
s.value = l(e.setting.name) || e.setting.options.formulasDiyJs || s.value, s.value || d(e.setting.name, null);
|
|
363
358
|
}, 50), e.setting.options.showCurrentDate) {
|
|
364
359
|
let y = /* @__PURE__ */ new Date();
|
|
365
360
|
y.setDate(y.getDate() + e.setting.options.day), s.value = Me(y.getTime()).format(f), d(e.setting.name, s.value);
|
|
366
361
|
}
|
|
367
362
|
return e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList), M(s, (y) => {
|
|
368
363
|
d(e.setting.name, y);
|
|
369
|
-
}), (y, D) =>
|
|
364
|
+
}), (y, D) => i.value ? (V(), O(a(J), {
|
|
370
365
|
key: 0,
|
|
371
366
|
col: e.span,
|
|
372
367
|
modelValue: s.value,
|
|
@@ -382,7 +377,7 @@ const X = (n) => {
|
|
|
382
377
|
placeholder: y.setting.options.placeholder,
|
|
383
378
|
helpMessage: C.value,
|
|
384
379
|
required: r.value
|
|
385
|
-
}, null, 8, ["col", "modelValue", "label", "prop", "type", "format", "picker", "isView", "disabled", "placeholder", "helpMessage", "required"])) :
|
|
380
|
+
}, null, 8, ["col", "modelValue", "label", "prop", "type", "format", "picker", "isView", "disabled", "placeholder", "helpMessage", "required"])) : A("v-if", !0);
|
|
386
381
|
}
|
|
387
382
|
}), dt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
388
383
|
__proto__: null,
|
|
@@ -405,17 +400,17 @@ const X = (n) => {
|
|
|
405
400
|
store: {}
|
|
406
401
|
},
|
|
407
402
|
setup(n) {
|
|
408
|
-
const e = n, { showData: t, disabledData:
|
|
403
|
+
const e = n, { showData: t, disabledData: o, setData: d, getData: l, setFormRule: g, deleteRule: k, setLinkData: s } = e.store || {}, i = p(""), v = p(!0);
|
|
409
404
|
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), M(
|
|
410
405
|
() => t.value,
|
|
411
406
|
() => {
|
|
412
|
-
v.value = t.value[e.setting.name], v.value || (
|
|
407
|
+
v.value = t.value[e.setting.name], v.value || (i.value = e.setting.options.multiple ? [] : "", k(e.setting.name)), v.value && e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList);
|
|
413
408
|
},
|
|
414
409
|
{ deep: !0, immediate: !0 }
|
|
415
410
|
);
|
|
416
411
|
const r = () => {
|
|
417
|
-
e.setting.options.customQuery && e.setting.options.customQuery.custQueryJson.length && s(e.setting.options.customQuery.custQueryJson,
|
|
418
|
-
}, f =
|
|
412
|
+
e.setting.options.customQuery && e.setting.options.customQuery.custQueryJson.length && s(e.setting.options.customQuery.custQueryJson, i.value);
|
|
413
|
+
}, f = o.value[e.setting.name] || !1, c = p(!1);
|
|
419
414
|
ne(e.setting.options.validateList).then((u) => {
|
|
420
415
|
c.value = u;
|
|
421
416
|
});
|
|
@@ -424,13 +419,13 @@ const X = (n) => {
|
|
|
424
419
|
L.value = u;
|
|
425
420
|
});
|
|
426
421
|
const h = p();
|
|
427
|
-
return e.setting.options.tip && (h.value = X(e.setting.options.tip)),
|
|
422
|
+
return e.setting.options.tip && (h.value = X(e.setting.options.tip)), i.value = e.setting.options.multiple ? [] : "", e.setting.options.multiple && l(e.setting.name) ? i.value = l(e.setting.name).split(",") : i.value = l(e.setting.name) || i.value, i.value || d(e.setting.name, null), e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList), M(i, (u) => {
|
|
428
423
|
d(e.setting.name, u.toString());
|
|
429
|
-
}), (u, P) => v.value ? (V(),
|
|
424
|
+
}), (u, P) => v.value ? (V(), O(a(J), {
|
|
430
425
|
key: 0,
|
|
431
426
|
col: e.span,
|
|
432
|
-
modelValue:
|
|
433
|
-
"onUpdate:modelValue": P[0] || (P[0] = (j) =>
|
|
427
|
+
modelValue: i.value,
|
|
428
|
+
"onUpdate:modelValue": P[0] || (P[0] = (j) => i.value = j),
|
|
434
429
|
keyword: C.value,
|
|
435
430
|
"onUpdate:keyword": P[1] || (P[1] = (j) => C.value = j),
|
|
436
431
|
label: u.setting.desc,
|
|
@@ -449,7 +444,7 @@ const X = (n) => {
|
|
|
449
444
|
"check-strictly": !u.setting.options.cascade,
|
|
450
445
|
required: c.value,
|
|
451
446
|
onChange: r
|
|
452
|
-
}, null, 8, ["col", "modelValue", "keyword", "label", "node-key", "placeholder", "mode", "prop", "filter", "options", "isView", "helpMessage", "disabled", "props", "check-strictly", "required"])) :
|
|
447
|
+
}, null, 8, ["col", "modelValue", "keyword", "label", "node-key", "placeholder", "mode", "prop", "filter", "options", "isView", "helpMessage", "disabled", "props", "check-strictly", "required"])) : A("v-if", !0);
|
|
453
448
|
}
|
|
454
449
|
}), ct = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
455
450
|
__proto__: null,
|
|
@@ -472,22 +467,22 @@ const X = (n) => {
|
|
|
472
467
|
store: {}
|
|
473
468
|
},
|
|
474
469
|
setup(n) {
|
|
475
|
-
const e = n, { showData: t, disabledData:
|
|
470
|
+
const e = n, { showData: t, disabledData: o, setData: d, getData: l, setFormRule: g, deleteRule: k } = e.store || {}, s = p(), i = p(!0);
|
|
476
471
|
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), M(
|
|
477
472
|
() => t.value,
|
|
478
473
|
() => {
|
|
479
|
-
|
|
474
|
+
i.value = t.value[e.setting.name], i.value || (s.value = e.setting.options.file.limit > 1 ? [] : "", k(e.setting.name)), i.value && e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList);
|
|
480
475
|
},
|
|
481
476
|
{ deep: !0, immediate: !0 }
|
|
482
477
|
);
|
|
483
|
-
const v =
|
|
478
|
+
const v = o.value[e.setting.name] || !1, r = p(!1);
|
|
484
479
|
ne(e.setting.options.validateList).then((y) => {
|
|
485
480
|
r.value = y;
|
|
486
481
|
});
|
|
487
482
|
const f = p("normal");
|
|
488
483
|
e.isView && (f.value = "info");
|
|
489
484
|
const c = p();
|
|
490
|
-
e.setting.options.tip && (c.value = X(e.setting.options.tip)), s.value = e.setting.options.file.limit > 1 ? [] : "", e.setting.options.file.limit > 1 &&
|
|
485
|
+
e.setting.options.tip && (c.value = X(e.setting.options.tip)), s.value = e.setting.options.file.limit > 1 ? [] : "", e.setting.options.file.limit > 1 && l(e.setting.name) ? s.value = l(e.setting.name).split(",") : s.value = l(e.setting.name) || s.value, s.value || d(e.setting.name, null);
|
|
491
486
|
const C = (y) => {
|
|
492
487
|
setTimeout(() => {
|
|
493
488
|
d(e.setting.name, s.value.toString());
|
|
@@ -501,7 +496,7 @@ const X = (n) => {
|
|
|
501
496
|
setTimeout(() => {
|
|
502
497
|
d(e.setting.name, D.join(","));
|
|
503
498
|
}, 100);
|
|
504
|
-
}), (y, D) =>
|
|
499
|
+
}), (y, D) => i.value ? (V(), O(a(J), {
|
|
505
500
|
key: 0,
|
|
506
501
|
modelValue: s.value,
|
|
507
502
|
"onUpdate:modelValue": D[2] || (D[2] = (m) => s.value = m),
|
|
@@ -539,23 +534,23 @@ const X = (n) => {
|
|
|
539
534
|
]),
|
|
540
535
|
_: 1
|
|
541
536
|
/* STABLE */
|
|
542
|
-
}, 8, ["modelValue", "prop", "label", "helpMessage", "required", "col"])) :
|
|
537
|
+
}, 8, ["modelValue", "prop", "label", "helpMessage", "required", "col"])) : A("v-if", !0);
|
|
543
538
|
}
|
|
544
539
|
}), Te = (n, e) => {
|
|
545
540
|
const t = n.__vccOpts || n;
|
|
546
|
-
for (const [
|
|
547
|
-
t[
|
|
541
|
+
for (const [o, d] of e)
|
|
542
|
+
t[o] = d;
|
|
548
543
|
return t;
|
|
549
544
|
}, Ta = /* @__PURE__ */ Te(Ia, [["__scopeId", "data-v-745a2e98"]]), gt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
550
545
|
__proto__: null,
|
|
551
546
|
default: Ta
|
|
552
547
|
}, Symbol.toStringTag, { value: "Module" })), Pa = (n) => {
|
|
553
|
-
const t = "****",
|
|
548
|
+
const t = "****", o = String(n), d = o.slice(0, 15), l = o.slice(15);
|
|
554
549
|
return ((s) => {
|
|
555
|
-
const
|
|
556
|
-
if (
|
|
550
|
+
const i = s.length;
|
|
551
|
+
if (i < 6) return s;
|
|
557
552
|
let v = 0;
|
|
558
|
-
switch (
|
|
553
|
+
switch (i) {
|
|
559
554
|
case 6:
|
|
560
555
|
case 7:
|
|
561
556
|
v = 1;
|
|
@@ -583,7 +578,7 @@ const X = (n) => {
|
|
|
583
578
|
}
|
|
584
579
|
const r = v + t.length;
|
|
585
580
|
return s.slice(0, v) + t + s.slice(r);
|
|
586
|
-
})(d) +
|
|
581
|
+
})(d) + l;
|
|
587
582
|
}, Ra = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
588
583
|
__proto__: null,
|
|
589
584
|
default: Pa
|
|
@@ -594,8 +589,8 @@ for (const n in Ze) {
|
|
|
594
589
|
ze[t] = e.default;
|
|
595
590
|
}
|
|
596
591
|
const Fa = (n, e) => {
|
|
597
|
-
var
|
|
598
|
-
return e ? ((
|
|
592
|
+
var o;
|
|
593
|
+
return e ? ((o = ze[n]) == null ? void 0 : o.call(ze, e)) ?? e : "-";
|
|
599
594
|
}, ja = {
|
|
600
595
|
name: "input"
|
|
601
596
|
}, Ka = /* @__PURE__ */ Y({
|
|
@@ -614,15 +609,15 @@ const Fa = (n, e) => {
|
|
|
614
609
|
store: {}
|
|
615
610
|
},
|
|
616
611
|
setup(n) {
|
|
617
|
-
const e = n, { data: t, showData:
|
|
618
|
-
|
|
612
|
+
const e = n, { data: t, showData: o, disabledData: d, setData: l, getData: g, setFormRule: k, deleteRule: s, encryptionData: i } = e.store || {}, v = p(""), r = p(!1);
|
|
613
|
+
i.value.length && i.value.forEach((m) => {
|
|
619
614
|
m.name === e.setting.name && (r.value = !0);
|
|
620
615
|
});
|
|
621
616
|
const f = p(""), c = p(!0);
|
|
622
|
-
!
|
|
623
|
-
() =>
|
|
617
|
+
!o.value[e.setting.name] && o.value[e.setting.name] != !1 && (o.value[e.setting.name] = !0), M(
|
|
618
|
+
() => o.value,
|
|
624
619
|
() => {
|
|
625
|
-
c.value =
|
|
620
|
+
c.value = o.value[e.setting.name], c.value || (f.value = "", s(e.setting.name)), c.value && e.setting.options.validateList.length && k(e.setting.name, e.setting.options.validateList);
|
|
626
621
|
},
|
|
627
622
|
{ deep: !0, immediate: !0 }
|
|
628
623
|
), M(
|
|
@@ -638,14 +633,14 @@ const Fa = (n, e) => {
|
|
|
638
633
|
});
|
|
639
634
|
const D = p();
|
|
640
635
|
return e.setting.options.tip && (D.value = X(e.setting.options.tip)), setTimeout(() => {
|
|
641
|
-
f.value = g(e.setting.name) || e.setting.options.formulasDiyJs || f.value, r && e.isView && (v.value = Fa("phone", f.value)), f.value ||
|
|
636
|
+
f.value = g(e.setting.name) || e.setting.options.formulasDiyJs || f.value, r && e.isView && (v.value = Fa("phone", f.value)), f.value || l(e.setting.name, null);
|
|
642
637
|
}, 50), e.setting.options.validateList.length && k(e.setting.name, e.setting.options.validateList), M(f, (m) => {
|
|
643
|
-
e.setting.options.dataType === "number" && !isNaN(m) ?
|
|
638
|
+
e.setting.options.dataType === "number" && !isNaN(m) ? l(e.setting.name, Number(m)) : l(e.setting.name, m);
|
|
644
639
|
}), (m, L) => (V(), H(
|
|
645
640
|
le,
|
|
646
641
|
null,
|
|
647
642
|
[
|
|
648
|
-
c.value && r.value && e.isView ? (V(),
|
|
643
|
+
c.value && r.value && e.isView ? (V(), O(a(J), {
|
|
649
644
|
key: 0,
|
|
650
645
|
col: e.span,
|
|
651
646
|
prop: e.setting.name,
|
|
@@ -657,7 +652,7 @@ const Fa = (n, e) => {
|
|
|
657
652
|
required: y.value
|
|
658
653
|
}, {
|
|
659
654
|
default: F(() => [
|
|
660
|
-
z(a(
|
|
655
|
+
z(a(Oe), {
|
|
661
656
|
placement: "top",
|
|
662
657
|
disabled: !f.value,
|
|
663
658
|
content: f.value
|
|
@@ -695,8 +690,8 @@ const Fa = (n, e) => {
|
|
|
695
690
|
]),
|
|
696
691
|
_: 1
|
|
697
692
|
/* STABLE */
|
|
698
|
-
}, 8, ["col", "prop", "modelValue", "label", "helpMessage", "required"])) :
|
|
699
|
-
c.value && (!r.value || !e.isView) ? (V(),
|
|
693
|
+
}, 8, ["col", "prop", "modelValue", "label", "helpMessage", "required"])) : A("v-if", !0),
|
|
694
|
+
c.value && (!r.value || !e.isView) ? (V(), O(a(J), {
|
|
700
695
|
key: 1,
|
|
701
696
|
col: e.span,
|
|
702
697
|
modelValue: f.value,
|
|
@@ -712,7 +707,7 @@ const Fa = (n, e) => {
|
|
|
712
707
|
placeholder: m.setting.options.placeholder
|
|
713
708
|
}, {
|
|
714
709
|
default: F(() => [
|
|
715
|
-
|
|
710
|
+
A(` <DasInput\r
|
|
716
711
|
v-model="inputValue"\r
|
|
717
712
|
>\r
|
|
718
713
|
<template #prepend>{{ setting.options.bindPreAndSufFixjson.preFix }}</template>\r
|
|
@@ -721,7 +716,7 @@ const Fa = (n, e) => {
|
|
|
721
716
|
]),
|
|
722
717
|
_: 1
|
|
723
718
|
/* STABLE */
|
|
724
|
-
}, 8, ["col", "modelValue", "width", "disabled", "isView", "prop", "label", "helpMessage", "required", "placeholder"])) :
|
|
719
|
+
}, 8, ["col", "modelValue", "width", "disabled", "isView", "prop", "label", "helpMessage", "required", "placeholder"])) : A("v-if", !0)
|
|
725
720
|
],
|
|
726
721
|
64
|
|
727
722
|
/* STABLE_FRAGMENT */
|
|
@@ -730,10 +725,10 @@ const Fa = (n, e) => {
|
|
|
730
725
|
}), mt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
731
726
|
__proto__: null,
|
|
732
727
|
default: Ka
|
|
733
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
728
|
+
}, Symbol.toStringTag, { value: "Module" })), qa = {
|
|
734
729
|
name: "number"
|
|
735
|
-
},
|
|
736
|
-
...
|
|
730
|
+
}, Ea = /* @__PURE__ */ Y({
|
|
731
|
+
...qa,
|
|
737
732
|
props: {
|
|
738
733
|
setting: { default: () => ({
|
|
739
734
|
icon: "",
|
|
@@ -748,24 +743,24 @@ const Fa = (n, e) => {
|
|
|
748
743
|
store: {}
|
|
749
744
|
},
|
|
750
745
|
setup(n) {
|
|
751
|
-
const e = n, { showData: t, disabledData:
|
|
746
|
+
const e = n, { showData: t, disabledData: o, setData: d, getData: l, setFormRule: g, deleteRule: k } = e.store || {}, s = p(0), i = p(!0);
|
|
752
747
|
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), M(
|
|
753
748
|
() => t.value,
|
|
754
749
|
() => {
|
|
755
|
-
|
|
750
|
+
i.value = t.value[e.setting.name], i.value || (s.value = 0, k(e.setting.name)), i.value && e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList);
|
|
756
751
|
},
|
|
757
752
|
{ deep: !0, immediate: !0 }
|
|
758
753
|
);
|
|
759
|
-
const v =
|
|
754
|
+
const v = o.value[e.setting.name] || !1, r = p(!1);
|
|
760
755
|
ne(e.setting.options.validateList).then((c) => {
|
|
761
756
|
r.value = c;
|
|
762
757
|
});
|
|
763
758
|
const f = p();
|
|
764
759
|
return e.setting.options.tip && (f.value = X(e.setting.options.tip)), setTimeout(() => {
|
|
765
|
-
s.value =
|
|
760
|
+
s.value = l(e.setting.name) || e.setting.options.formulasDiyJs || s.value, s.value || d(e.setting.name, null);
|
|
766
761
|
}, 50), e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList), M(s, (c) => {
|
|
767
762
|
d(e.setting.name, c);
|
|
768
|
-
}), (c, C) =>
|
|
763
|
+
}), (c, C) => i.value ? (V(), O(a(J), {
|
|
769
764
|
key: 0,
|
|
770
765
|
col: e.span,
|
|
771
766
|
modelValue: s.value,
|
|
@@ -782,15 +777,15 @@ const Fa = (n, e) => {
|
|
|
782
777
|
precision: c.setting.options.decimalDigits,
|
|
783
778
|
helpMessage: f.value,
|
|
784
779
|
required: r.value
|
|
785
|
-
}, null, 8, ["col", "modelValue", "label", "prop", "max", "min", "step", "disabled", "isView", "precision", "helpMessage", "required"])) :
|
|
780
|
+
}, null, 8, ["col", "modelValue", "label", "prop", "max", "min", "step", "disabled", "isView", "precision", "helpMessage", "required"])) : A("v-if", !0);
|
|
786
781
|
}
|
|
787
782
|
}), vt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
788
783
|
__proto__: null,
|
|
789
|
-
default:
|
|
790
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
784
|
+
default: Ea
|
|
785
|
+
}, Symbol.toStringTag, { value: "Module" })), Oa = {
|
|
791
786
|
name: "radio"
|
|
792
|
-
},
|
|
793
|
-
...
|
|
787
|
+
}, Ba = /* @__PURE__ */ Y({
|
|
788
|
+
...Oa,
|
|
794
789
|
props: {
|
|
795
790
|
setting: { default: () => ({
|
|
796
791
|
icon: "",
|
|
@@ -807,15 +802,15 @@ const Fa = (n, e) => {
|
|
|
807
802
|
store: {}
|
|
808
803
|
},
|
|
809
804
|
setup(n) {
|
|
810
|
-
const e = n, { showData: t, disabledData:
|
|
805
|
+
const e = n, { showData: t, disabledData: o, setData: d, getData: l, setFormRule: g, deleteRule: k } = e.store || {}, s = p(null), i = p(!0);
|
|
811
806
|
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), M(
|
|
812
807
|
() => t.value,
|
|
813
808
|
() => {
|
|
814
|
-
|
|
809
|
+
i.value = t.value[e.setting.name], i.value || (s.value = null, k(e.setting.name)), i.value && e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList);
|
|
815
810
|
},
|
|
816
811
|
{ deep: !0, immediate: !0 }
|
|
817
812
|
);
|
|
818
|
-
const v =
|
|
813
|
+
const v = o.value[e.setting.name] || !1, r = p(!1);
|
|
819
814
|
ne(e.setting.options.validateList).then((m) => {
|
|
820
815
|
r.value = m;
|
|
821
816
|
});
|
|
@@ -825,7 +820,7 @@ const Fa = (n, e) => {
|
|
|
825
820
|
}) : C.value = e.setting.options.options;
|
|
826
821
|
const y = p();
|
|
827
822
|
e.setting.options.tip && (y.value = X(e.setting.options.tip)), setTimeout(() => {
|
|
828
|
-
s.value =
|
|
823
|
+
s.value = l(e.setting.name) || e.setting.options.formulasDiyJs || s.value, s.value || d(e.setting.name, null);
|
|
829
824
|
}, 50), e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList), M(s, (m) => {
|
|
830
825
|
d(e.setting.name, m);
|
|
831
826
|
});
|
|
@@ -837,7 +832,7 @@ const Fa = (n, e) => {
|
|
|
837
832
|
}
|
|
838
833
|
});
|
|
839
834
|
};
|
|
840
|
-
return (m, L) =>
|
|
835
|
+
return (m, L) => i.value ? (V(), O(a(J), {
|
|
841
836
|
key: 0,
|
|
842
837
|
onChange: D,
|
|
843
838
|
col: e.span,
|
|
@@ -855,15 +850,15 @@ const Fa = (n, e) => {
|
|
|
855
850
|
disabled: a(v),
|
|
856
851
|
required: r.value,
|
|
857
852
|
isSetTimeout: !0
|
|
858
|
-
}, null, 8, ["col", "modelValue", "layout", "label", "prop", "options", "isView", "optionsValueKey", "optionsLabelKey", "helpMessage", "disabled", "required"])) :
|
|
853
|
+
}, null, 8, ["col", "modelValue", "layout", "label", "prop", "options", "isView", "optionsValueKey", "optionsLabelKey", "helpMessage", "disabled", "required"])) : A("v-if", !0);
|
|
859
854
|
}
|
|
860
855
|
}), ft = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
861
856
|
__proto__: null,
|
|
862
|
-
default:
|
|
863
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
857
|
+
default: Ba
|
|
858
|
+
}, Symbol.toStringTag, { value: "Module" })), Aa = {
|
|
864
859
|
name: "select"
|
|
865
860
|
}, Qa = /* @__PURE__ */ Y({
|
|
866
|
-
...
|
|
861
|
+
...Aa,
|
|
867
862
|
props: {
|
|
868
863
|
setting: { default: () => ({
|
|
869
864
|
icon: "",
|
|
@@ -879,11 +874,11 @@ const Fa = (n, e) => {
|
|
|
879
874
|
},
|
|
880
875
|
setup(n) {
|
|
881
876
|
var L, h;
|
|
882
|
-
const e = n, { showData: t, disabledData:
|
|
877
|
+
const e = n, { showData: t, disabledData: o, linkData: d, setData: l, getData: g, setFormRule: k, deleteRule: s } = e.store || {}, i = p(), v = p(!0);
|
|
883
878
|
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), M(
|
|
884
879
|
() => t.value,
|
|
885
880
|
() => {
|
|
886
|
-
v.value = t.value[e.setting.name], v.value || (
|
|
881
|
+
v.value = t.value[e.setting.name], v.value || (i.value = null, s(e.setting.name)), v.value && e.setting.options.validateList.length && k(e.setting.name, e.setting.options.validateList);
|
|
887
882
|
},
|
|
888
883
|
{ deep: !0, immediate: !0 }
|
|
889
884
|
), M(
|
|
@@ -891,8 +886,8 @@ const Fa = (n, e) => {
|
|
|
891
886
|
() => {
|
|
892
887
|
d.value.data.forEach((u) => {
|
|
893
888
|
if (e.setting.options.customQuery.alias && e.setting.options.customQuery.alias === u.alias) {
|
|
894
|
-
|
|
895
|
-
const P =
|
|
889
|
+
i.value = null;
|
|
890
|
+
const P = u.conditionfield.filter((T) => T.defaultType == 1);
|
|
896
891
|
let j = {};
|
|
897
892
|
P.forEach((T) => {
|
|
898
893
|
const I = T.fieldPath.split("."), U = I[I.length - 1];
|
|
@@ -909,24 +904,19 @@ const Fa = (n, e) => {
|
|
|
909
904
|
},
|
|
910
905
|
{ deep: !0 }
|
|
911
906
|
);
|
|
912
|
-
const r =
|
|
907
|
+
const r = o.value[e.setting.name] || !1, f = p(!1);
|
|
913
908
|
ne(e.setting.options.validateList).then((u) => {
|
|
914
909
|
f.value = u;
|
|
915
910
|
});
|
|
916
911
|
const c = e.setting.options.customQuery.valueBind ? e.setting.options.customQuery.valueBind : "key", C = e.setting.options.customQuery.labelBind ? e.setting.options.customQuery.labelBind : "value", y = p([]);
|
|
917
912
|
if (e.setting.options.customQuery.alias) {
|
|
918
913
|
let u = (h = (L = e.setting.options) == null ? void 0 : L.customQuery) == null ? void 0 : h.conditionfield;
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
u = JSON.parse(u);
|
|
922
|
-
} catch {
|
|
923
|
-
u = [];
|
|
924
|
-
}
|
|
925
|
-
const P = Array.isArray(u) ? u.filter((T) => T.defaultType == 1) : [];
|
|
914
|
+
typeof u == "string" && (u = JSON.parse(u));
|
|
915
|
+
const P = u.filter((T) => T.defaultType == 1);
|
|
926
916
|
let j = {};
|
|
927
917
|
P.forEach((T) => {
|
|
928
|
-
var
|
|
929
|
-
const I = (
|
|
918
|
+
var q;
|
|
919
|
+
const I = (q = T.fieldPath) == null ? void 0 : q.split("."), U = I[I.length - 1];
|
|
930
920
|
j[T.field] = g(U);
|
|
931
921
|
}), Object.values(j).every((T) => T) && we(e.setting.options.customQuery.alias, e.setting.options.customQuery.conditionfield, j).then(
|
|
932
922
|
(T) => {
|
|
@@ -936,10 +926,10 @@ const Fa = (n, e) => {
|
|
|
936
926
|
} else
|
|
937
927
|
y.value = e.setting.options.options;
|
|
938
928
|
const D = p();
|
|
939
|
-
e.setting.options.tip && (D.value = X(e.setting.options.tip)),
|
|
940
|
-
e.setting.options.multiple && (g(e.setting.name) || e.setting.options.formulasDiyJs) ? (g(e.setting.name) && (
|
|
941
|
-
}, 50), e.setting.options.validateList.length && k(e.setting.name, e.setting.options.validateList), M(
|
|
942
|
-
e.setting.options.multiple ?
|
|
929
|
+
e.setting.options.tip && (D.value = X(e.setting.options.tip)), i.value = e.setting.options.multiple ? [] : null, setTimeout(() => {
|
|
930
|
+
e.setting.options.multiple && (g(e.setting.name) || e.setting.options.formulasDiyJs) ? (g(e.setting.name) && (i.value = g(e.setting.name).split(",")), e.setting.options.formulasDiyJs && (i.value = e.setting.options.formulasDiyJs.split(","))) : i.value = g(e.setting.name) || e.setting.options.formulasDiyJs || i.value, i.value || l(e.setting.name, null);
|
|
931
|
+
}, 50), e.setting.options.validateList.length && k(e.setting.name, e.setting.options.validateList), M(i, (u) => {
|
|
932
|
+
e.setting.options.multiple ? l(e.setting.name, u.toString()) : l(e.setting.name, u);
|
|
943
933
|
});
|
|
944
934
|
const m = (u) => {
|
|
945
935
|
e.setting.options.linkage.length && !e.setting.options.multiple && e.setting.options.linkage.forEach((P) => {
|
|
@@ -949,11 +939,11 @@ const Fa = (n, e) => {
|
|
|
949
939
|
}
|
|
950
940
|
});
|
|
951
941
|
};
|
|
952
|
-
return (u, P) => v.value ? (V(),
|
|
942
|
+
return (u, P) => v.value ? (V(), O(a(J), {
|
|
953
943
|
key: 0,
|
|
954
944
|
col: e.span,
|
|
955
|
-
modelValue:
|
|
956
|
-
"onUpdate:modelValue": P[0] || (P[0] = (j) =>
|
|
945
|
+
modelValue: i.value,
|
|
946
|
+
"onUpdate:modelValue": P[0] || (P[0] = (j) => i.value = j),
|
|
957
947
|
label: u.setting.desc,
|
|
958
948
|
onChange: m,
|
|
959
949
|
type: "select",
|
|
@@ -969,35 +959,35 @@ const Fa = (n, e) => {
|
|
|
969
959
|
helpMessage: D.value,
|
|
970
960
|
disabled: a(r),
|
|
971
961
|
required: f.value
|
|
972
|
-
}, null, 8, ["col", "modelValue", "label", "prop", "placeholder", "mode", "showSearch", "isView", "options", "optionsValueKey", "optionsLabelKey", "helpMessage", "disabled", "required"])) :
|
|
962
|
+
}, null, 8, ["col", "modelValue", "label", "prop", "placeholder", "mode", "showSearch", "isView", "options", "optionsValueKey", "optionsLabelKey", "helpMessage", "disabled", "required"])) : A("v-if", !0);
|
|
973
963
|
}
|
|
974
964
|
}), ht = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
975
965
|
__proto__: null,
|
|
976
966
|
default: Qa
|
|
977
967
|
}, Symbol.toStringTag, { value: "Module" })), Ua = (n, e, t) => {
|
|
978
968
|
var Ve, Ce, he, ye, De;
|
|
979
|
-
const
|
|
969
|
+
const o = tt().id, d = p(!1), l = (De = (ye = (he = (Ce = (Ve = n == null ? void 0 : n.options) == null ? void 0 : Ve.selector) == null ? void 0 : Ce.type) == null ? void 0 : he.alias) == null ? void 0 : ye.replace("eip-", "")) == null ? void 0 : De.replace("-selector", ""), g = p([]), k = p(""), s = p(""), i = p(""), v = p({
|
|
980
970
|
spaceId: "",
|
|
981
971
|
spacePath: "",
|
|
982
972
|
spacePathName: ""
|
|
983
973
|
}), r = {
|
|
984
|
-
user:
|
|
985
|
-
org:
|
|
986
|
-
role:
|
|
987
|
-
job:
|
|
988
|
-
post:
|
|
989
|
-
supplier:
|
|
990
|
-
source:
|
|
991
|
-
device:
|
|
974
|
+
user: B("搜索姓名/账号/手机号").value,
|
|
975
|
+
org: B("搜索组织名称/组织编码").value,
|
|
976
|
+
role: B("搜索角色名称").value,
|
|
977
|
+
job: B("职务名称/职务编码").value,
|
|
978
|
+
post: B("搜索岗位名称/岗位编码").value,
|
|
979
|
+
supplier: B("搜索供应商编码/名称").value,
|
|
980
|
+
source: B("搜索单据编码/申请人").value,
|
|
981
|
+
device: B("搜索设备编码/名称").value
|
|
992
982
|
}, f = {
|
|
993
|
-
user:
|
|
994
|
-
org:
|
|
995
|
-
role:
|
|
996
|
-
job:
|
|
997
|
-
post:
|
|
998
|
-
supplier:
|
|
999
|
-
source:
|
|
1000
|
-
device:
|
|
983
|
+
user: B("添加用户").value,
|
|
984
|
+
org: B("组织选择器").value,
|
|
985
|
+
role: B("角色选择器").value,
|
|
986
|
+
job: B("职务选择器").value,
|
|
987
|
+
post: B("岗位选择器").value,
|
|
988
|
+
supplier: B("选择供应商").value,
|
|
989
|
+
source: B("选择源单").value,
|
|
990
|
+
device: B("选择报修设备").value
|
|
1001
991
|
}, c = {
|
|
1002
992
|
user: "id",
|
|
1003
993
|
org: "id",
|
|
@@ -1008,15 +998,15 @@ const Fa = (n, e) => {
|
|
|
1008
998
|
source: "code",
|
|
1009
999
|
device: "deviceId"
|
|
1010
1000
|
}, C = {
|
|
1011
|
-
1:
|
|
1012
|
-
2:
|
|
1013
|
-
3:
|
|
1001
|
+
1: B("正常").value,
|
|
1002
|
+
2: B("锁定").value,
|
|
1003
|
+
3: B("禁用").value
|
|
1014
1004
|
}, y = {
|
|
1015
|
-
0:
|
|
1016
|
-
1:
|
|
1005
|
+
0: B("普通").value,
|
|
1006
|
+
1: B("管理员").value
|
|
1017
1007
|
}, D = {
|
|
1018
|
-
0:
|
|
1019
|
-
1:
|
|
1008
|
+
0: B("无效").value,
|
|
1009
|
+
1: B("有效").value
|
|
1020
1010
|
}, m = {
|
|
1021
1011
|
user: sa,
|
|
1022
1012
|
org: $e,
|
|
@@ -1025,9 +1015,9 @@ const Fa = (n, e) => {
|
|
|
1025
1015
|
post: $e,
|
|
1026
1016
|
supplier: ca,
|
|
1027
1017
|
device: va
|
|
1028
|
-
}, L = f[
|
|
1018
|
+
}, L = f[l], h = p({}), u = p([]), P = () => {
|
|
1029
1019
|
var N, Q;
|
|
1030
|
-
|
|
1020
|
+
l === "supplier" ? (h.value = {
|
|
1031
1021
|
left: !1,
|
|
1032
1022
|
content: {
|
|
1033
1023
|
api: da,
|
|
@@ -1043,7 +1033,7 @@ const Fa = (n, e) => {
|
|
|
1043
1033
|
querys: [
|
|
1044
1034
|
{
|
|
1045
1035
|
property: "orgId",
|
|
1046
|
-
value:
|
|
1036
|
+
value: o,
|
|
1047
1037
|
group: "quick",
|
|
1048
1038
|
relation: "AND",
|
|
1049
1039
|
operation: "EQUAL"
|
|
@@ -1055,7 +1045,7 @@ const Fa = (n, e) => {
|
|
|
1055
1045
|
}
|
|
1056
1046
|
},
|
|
1057
1047
|
right: !1
|
|
1058
|
-
}, ee(), T()) :
|
|
1048
|
+
}, ee(), T()) : l === "device" ? (h.value = {
|
|
1059
1049
|
left: !1,
|
|
1060
1050
|
content: {
|
|
1061
1051
|
multiple: !1,
|
|
@@ -1074,7 +1064,7 @@ const Fa = (n, e) => {
|
|
|
1074
1064
|
}
|
|
1075
1065
|
},
|
|
1076
1066
|
right: !1
|
|
1077
|
-
},
|
|
1067
|
+
}, q(), pe()) : l === "source" ? (h.value = {
|
|
1078
1068
|
left: !1,
|
|
1079
1069
|
content: {
|
|
1080
1070
|
api: ma,
|
|
@@ -1092,7 +1082,7 @@ const Fa = (n, e) => {
|
|
|
1092
1082
|
}
|
|
1093
1083
|
},
|
|
1094
1084
|
right: !1
|
|
1095
|
-
}, j()) :
|
|
1085
|
+
}, j()) : l === "org" ? (h.value = {
|
|
1096
1086
|
left: !1,
|
|
1097
1087
|
content: {
|
|
1098
1088
|
api: ia,
|
|
@@ -1107,12 +1097,12 @@ const Fa = (n, e) => {
|
|
|
1107
1097
|
left: {
|
|
1108
1098
|
api: aa,
|
|
1109
1099
|
params: {
|
|
1110
|
-
projectId:
|
|
1111
|
-
parentId:
|
|
1100
|
+
projectId: o,
|
|
1101
|
+
parentId: o
|
|
1112
1102
|
},
|
|
1113
1103
|
props: {
|
|
1114
1104
|
inputOptions: {
|
|
1115
|
-
placeholder:
|
|
1105
|
+
placeholder: B("搜索组织名称").value
|
|
1116
1106
|
}
|
|
1117
1107
|
}
|
|
1118
1108
|
},
|
|
@@ -1121,7 +1111,7 @@ const Fa = (n, e) => {
|
|
|
1121
1111
|
data: []
|
|
1122
1112
|
}
|
|
1123
1113
|
}
|
|
1124
|
-
},
|
|
1114
|
+
}, l === "user" && (h.value.content = {
|
|
1125
1115
|
api: na,
|
|
1126
1116
|
searchKey: "groupId",
|
|
1127
1117
|
params: {
|
|
@@ -1131,7 +1121,7 @@ const Fa = (n, e) => {
|
|
|
1131
1121
|
selectListProps: {
|
|
1132
1122
|
data: []
|
|
1133
1123
|
}
|
|
1134
|
-
}, j()),
|
|
1124
|
+
}, j()), l === "role" && (h.value.content = {
|
|
1135
1125
|
api: oa,
|
|
1136
1126
|
searchKey: "orgId",
|
|
1137
1127
|
params: {
|
|
@@ -1140,7 +1130,7 @@ const Fa = (n, e) => {
|
|
|
1140
1130
|
selectListProps: {
|
|
1141
1131
|
data: []
|
|
1142
1132
|
}
|
|
1143
|
-
}, j()),
|
|
1133
|
+
}, j()), l === "job" && (h.value.content = {
|
|
1144
1134
|
api: ua,
|
|
1145
1135
|
searchKey: "groupId",
|
|
1146
1136
|
props: {
|
|
@@ -1149,7 +1139,7 @@ const Fa = (n, e) => {
|
|
|
1149
1139
|
selectListProps: {
|
|
1150
1140
|
data: []
|
|
1151
1141
|
}
|
|
1152
|
-
}, j()),
|
|
1142
|
+
}, j()), l === "post" && (h.value.content = {
|
|
1153
1143
|
api: ra,
|
|
1154
1144
|
searchKey: "groupId",
|
|
1155
1145
|
props: {
|
|
@@ -1158,14 +1148,14 @@ const Fa = (n, e) => {
|
|
|
1158
1148
|
selectListProps: {
|
|
1159
1149
|
data: []
|
|
1160
1150
|
}
|
|
1161
|
-
}, j()), h.value.content.multiple =
|
|
1151
|
+
}, j()), h.value.content.multiple = l === "supplier" || l === "source" || l === "device" ? !1 : !((Q = (N = n == null ? void 0 : n.options) == null ? void 0 : N.selector) != null && Q.isSingle);
|
|
1162
1152
|
}, j = async () => {
|
|
1163
1153
|
u.value = [
|
|
1164
1154
|
{
|
|
1165
1155
|
type: "searchInput",
|
|
1166
1156
|
key: "inputtKey",
|
|
1167
1157
|
label: "",
|
|
1168
|
-
placeholder: r[
|
|
1158
|
+
placeholder: r[l],
|
|
1169
1159
|
value: "",
|
|
1170
1160
|
clearable: !0,
|
|
1171
1161
|
isIconLeft: !0,
|
|
@@ -1179,7 +1169,7 @@ const Fa = (n, e) => {
|
|
|
1179
1169
|
type: "searchInput",
|
|
1180
1170
|
key: "inputtKey",
|
|
1181
1171
|
label: "",
|
|
1182
|
-
placeholder: r[
|
|
1172
|
+
placeholder: r[l],
|
|
1183
1173
|
value: "",
|
|
1184
1174
|
clearable: !0,
|
|
1185
1175
|
isIconLeft: !0,
|
|
@@ -1188,7 +1178,7 @@ const Fa = (n, e) => {
|
|
|
1188
1178
|
},
|
|
1189
1179
|
{
|
|
1190
1180
|
type: "select",
|
|
1191
|
-
label:
|
|
1181
|
+
label: B("供应商类型").value,
|
|
1192
1182
|
layout: "out",
|
|
1193
1183
|
width: "200px",
|
|
1194
1184
|
closable: !0,
|
|
@@ -1209,13 +1199,13 @@ const Fa = (n, e) => {
|
|
|
1209
1199
|
return b ? {} : (R.data.forEach(($) => {
|
|
1210
1200
|
I($);
|
|
1211
1201
|
}), R);
|
|
1212
|
-
},
|
|
1202
|
+
}, q = async () => {
|
|
1213
1203
|
u.value = [
|
|
1214
1204
|
{
|
|
1215
1205
|
type: "searchInput",
|
|
1216
1206
|
key: "inputtKey",
|
|
1217
1207
|
label: "",
|
|
1218
|
-
placeholder: r[
|
|
1208
|
+
placeholder: r[l],
|
|
1219
1209
|
value: "",
|
|
1220
1210
|
clearable: !0,
|
|
1221
1211
|
isIconLeft: !0,
|
|
@@ -1225,17 +1215,17 @@ const Fa = (n, e) => {
|
|
|
1225
1215
|
{
|
|
1226
1216
|
type: "treeSelect",
|
|
1227
1217
|
key: "groupId",
|
|
1228
|
-
label:
|
|
1218
|
+
label: B("设备分类").value,
|
|
1229
1219
|
size: "mini",
|
|
1230
1220
|
value: "",
|
|
1231
1221
|
nodeKey: "id",
|
|
1232
1222
|
options: [],
|
|
1233
|
-
placeholder:
|
|
1223
|
+
placeholder: B("请选择").value,
|
|
1234
1224
|
selectAttrs: { allowClear: !0 }
|
|
1235
1225
|
},
|
|
1236
1226
|
{
|
|
1237
1227
|
key: "spaceId",
|
|
1238
|
-
label:
|
|
1228
|
+
label: B("安装位置").value,
|
|
1239
1229
|
type: "treeSelect",
|
|
1240
1230
|
defaultExpandedKeys: [],
|
|
1241
1231
|
path: "",
|
|
@@ -1264,28 +1254,28 @@ const Fa = (n, e) => {
|
|
|
1264
1254
|
}, x = () => {
|
|
1265
1255
|
var Q;
|
|
1266
1256
|
k.value = "", d.value = !0;
|
|
1267
|
-
let N = c[
|
|
1268
|
-
h.value.content.selectListProps.data = (Q = g == null ? void 0 : g.value) == null ? void 0 : Q.map((b) =>
|
|
1257
|
+
let N = c[l];
|
|
1258
|
+
h.value.content.selectListProps.data = (Q = g == null ? void 0 : g.value) == null ? void 0 : Q.map((b) => l === "device" ? { deviceName: b == null ? void 0 : b.label, [N]: b == null ? void 0 : b.value } : { name: b == null ? void 0 : b.label, [N]: b == null ? void 0 : b.value });
|
|
1269
1259
|
};
|
|
1270
1260
|
P();
|
|
1271
1261
|
const fe = async () => {
|
|
1272
|
-
var N, Q, b, R, $, w, _,
|
|
1262
|
+
var N, Q, b, R, $, w, _, E, Z, be, de, se, te, W, ce, ge, oe, Ye, Je, He;
|
|
1273
1263
|
if (h.value.content.params = {
|
|
1274
1264
|
...(Q = (N = h == null ? void 0 : h.value) == null ? void 0 : N.content) == null ? void 0 : Q.params,
|
|
1275
1265
|
pageIndex: 1
|
|
1276
|
-
}, (
|
|
1266
|
+
}, (l === "user" || l === "org" || l === "post" || l === "role" || l === "job") && (h.value.content.params.name = (b = u == null ? void 0 : u.value[0]) == null ? void 0 : b.value), l === "source" && (h.value.content.params.key = (R = u == null ? void 0 : u.value[0]) == null ? void 0 : R.value), l === "device") {
|
|
1277
1267
|
const Pe = ($ = u == null ? void 0 : u.value[1]) == null ? void 0 : $.value;
|
|
1278
1268
|
h.value.content.params.deviceNameOrCode = ((w = u == null ? void 0 : u.value[0]) == null ? void 0 : w.value) || "", h.value.content.params.groupId = !Pe || Pe === "-1" ? null : Pe, h.value.content.params.spaceId = ((_ = u == null ? void 0 : u.value[2]) == null ? void 0 : _.value) || "";
|
|
1279
1269
|
}
|
|
1280
|
-
|
|
1270
|
+
l === "supplier" && (h.value.content.params.querys = [
|
|
1281
1271
|
{
|
|
1282
1272
|
property: "orgId",
|
|
1283
|
-
value:
|
|
1273
|
+
value: o,
|
|
1284
1274
|
group: "quick",
|
|
1285
1275
|
relation: "AND",
|
|
1286
1276
|
operation: "EQUAL"
|
|
1287
1277
|
}
|
|
1288
|
-
], (
|
|
1278
|
+
], (E = u == null ? void 0 : u.value[0]) != null && E.value && (h.value.content.params.querys = (W = (de = (be = (Z = h == null ? void 0 : h.value) == null ? void 0 : Z.content) == null ? void 0 : be.params) == null ? void 0 : de.querys) == null ? void 0 : W.concat([
|
|
1289
1279
|
{
|
|
1290
1280
|
property: "name",
|
|
1291
1281
|
value: (se = u == null ? void 0 : u.value[0]) == null ? void 0 : se.value,
|
|
@@ -1317,13 +1307,13 @@ const Fa = (n, e) => {
|
|
|
1317
1307
|
}
|
|
1318
1308
|
);
|
|
1319
1309
|
const _e = async () => {
|
|
1320
|
-
|
|
1310
|
+
l === "supplier" ? (u.value[0].value = "", u.value[1].value = void 0) : l === "device" ? (u.value[0].value = "", u.value[1].value = "-1", u.value[2].value = "") : (l === "org" || l === "user" || l === "source" || l === "post" || l === "role" || l === "job") && (u.value[0].value = ""), P();
|
|
1321
1311
|
};
|
|
1322
1312
|
return {
|
|
1323
1313
|
dialogVisible: d,
|
|
1324
1314
|
title: L,
|
|
1325
1315
|
searchName: k,
|
|
1326
|
-
selectorType:
|
|
1316
|
+
selectorType: l,
|
|
1327
1317
|
selectOptions: g,
|
|
1328
1318
|
tableOptions: h,
|
|
1329
1319
|
userStatusMap: C,
|
|
@@ -1332,8 +1322,8 @@ const Fa = (n, e) => {
|
|
|
1332
1322
|
openDialog: x,
|
|
1333
1323
|
confirm: async (N) => {
|
|
1334
1324
|
var b, R, $, w;
|
|
1335
|
-
let Q = c[
|
|
1336
|
-
g.value = N == null ? void 0 : N.map((_) => ({ label: (_ == null ? void 0 : _.deviceName) || (_ == null ? void 0 : _.name) || (_ == null ? void 0 : _.code), value: _[Q] })),
|
|
1325
|
+
let Q = c[l];
|
|
1326
|
+
g.value = N == null ? void 0 : N.map((_) => ({ label: (_ == null ? void 0 : _.deviceName) || (_ == null ? void 0 : _.name) || (_ == null ? void 0 : _.code), value: _[Q] })), l === "supplier" && (s.value = (b = N[0]) == null ? void 0 : b.linkmanPhone), l === "device" && (i.value = ((R = N[0]) == null ? void 0 : R.id) || "", v.value = {
|
|
1337
1327
|
spaceId: ($ = N[0]) == null ? void 0 : $.spaceId,
|
|
1338
1328
|
spacePath: "",
|
|
1339
1329
|
spacePathName: ((w = N[0]) == null ? void 0 : w.spaceSite) || ""
|
|
@@ -1341,10 +1331,10 @@ const Fa = (n, e) => {
|
|
|
1341
1331
|
},
|
|
1342
1332
|
getDetail: async (N) => {
|
|
1343
1333
|
if (!N) return;
|
|
1344
|
-
const Q = m[
|
|
1334
|
+
const Q = m[l];
|
|
1345
1335
|
let b = {};
|
|
1346
1336
|
const R = N == null ? void 0 : N.split(",");
|
|
1347
|
-
if (
|
|
1337
|
+
if (l === "source") {
|
|
1348
1338
|
g.value = [
|
|
1349
1339
|
{
|
|
1350
1340
|
label: N,
|
|
@@ -1352,31 +1342,31 @@ const Fa = (n, e) => {
|
|
|
1352
1342
|
}
|
|
1353
1343
|
];
|
|
1354
1344
|
return;
|
|
1355
|
-
} else
|
|
1345
|
+
} else l === "user" ? b.userIds = R : l === "role" ? b.ids = R : l === "supplier" ? b.id = R : l === "device" ? b = {
|
|
1356
1346
|
deviceNameOrCode: N,
|
|
1357
1347
|
groupId: null,
|
|
1358
1348
|
spaceId: ""
|
|
1359
1349
|
} : b = R;
|
|
1360
1350
|
const [$, w] = await Q(b).run();
|
|
1361
1351
|
if (!$)
|
|
1362
|
-
if (
|
|
1352
|
+
if (l === "supplier")
|
|
1363
1353
|
g.value = [
|
|
1364
1354
|
{
|
|
1365
1355
|
label: (w == null ? void 0 : w.name) || (w == null ? void 0 : w.code),
|
|
1366
1356
|
value: w == null ? void 0 : w.id
|
|
1367
1357
|
}
|
|
1368
1358
|
];
|
|
1369
|
-
else if (
|
|
1370
|
-
const _ = Array.isArray(w) ? w : (w == null ? void 0 : w.data) || (w == null ? void 0 : w.rows) || [],
|
|
1371
|
-
if (!
|
|
1372
|
-
|
|
1373
|
-
spaceId: (
|
|
1359
|
+
else if (l === "device") {
|
|
1360
|
+
const _ = Array.isArray(w) ? w : (w == null ? void 0 : w.data) || (w == null ? void 0 : w.rows) || [], E = _.find((Z) => (Z == null ? void 0 : Z.deviceId) === N) || _[0];
|
|
1361
|
+
if (!E) return;
|
|
1362
|
+
i.value = (E == null ? void 0 : E.id) || "", v.value = {
|
|
1363
|
+
spaceId: (E == null ? void 0 : E.spaceId) || "",
|
|
1374
1364
|
spacePath: "",
|
|
1375
|
-
spacePathName: (
|
|
1365
|
+
spacePathName: (E == null ? void 0 : E.spaceSite) || ""
|
|
1376
1366
|
}, g.value = [
|
|
1377
1367
|
{
|
|
1378
|
-
label:
|
|
1379
|
-
value:
|
|
1368
|
+
label: E == null ? void 0 : E.deviceName,
|
|
1369
|
+
value: E == null ? void 0 : E.deviceId
|
|
1380
1370
|
}
|
|
1381
1371
|
];
|
|
1382
1372
|
} else
|
|
@@ -1385,20 +1375,20 @@ const Fa = (n, e) => {
|
|
|
1385
1375
|
searchData: fe,
|
|
1386
1376
|
searchOptions: u,
|
|
1387
1377
|
linkmanPhone: s,
|
|
1388
|
-
equipmentArchivesId:
|
|
1378
|
+
equipmentArchivesId: i,
|
|
1389
1379
|
deviceSpaceInfo: v
|
|
1390
1380
|
};
|
|
1391
1381
|
}, xa = (n) => {
|
|
1392
|
-
const e = p(""), t = p(""),
|
|
1382
|
+
const e = p(""), t = p(""), o = p([]), d = p("");
|
|
1393
1383
|
return {
|
|
1394
1384
|
spacePath: e,
|
|
1395
1385
|
spaceName: t,
|
|
1396
|
-
spaceTreeData:
|
|
1386
|
+
spaceTreeData: o,
|
|
1397
1387
|
searchSpace: d,
|
|
1398
|
-
changeSpace: (
|
|
1388
|
+
changeSpace: (i, v) => {
|
|
1399
1389
|
n ? (e.value = v[0].path, t.value = v[0].pathName) : (e.value = (v == null ? void 0 : v.map((r) => r.path)) || [], t.value = (v == null ? void 0 : v.map((r) => r.pathName)) || []);
|
|
1400
1390
|
},
|
|
1401
|
-
spaceLoad: async (
|
|
1391
|
+
spaceLoad: async (i) => {
|
|
1402
1392
|
let v = {
|
|
1403
1393
|
pageSize: 1e4,
|
|
1404
1394
|
pageIndex: 1,
|
|
@@ -1407,26 +1397,26 @@ const Fa = (n, e) => {
|
|
|
1407
1397
|
spaceId: ""
|
|
1408
1398
|
// orgId:getProjectInfo().id
|
|
1409
1399
|
};
|
|
1410
|
-
v.spaceId =
|
|
1400
|
+
v.spaceId = i != null && i.id ? i.id : "";
|
|
1411
1401
|
let r = lt;
|
|
1412
1402
|
const [f, c] = await r(v).run();
|
|
1413
1403
|
return f ? {} : c;
|
|
1414
1404
|
},
|
|
1415
|
-
filterSpaceTree: async (
|
|
1416
|
-
if (!
|
|
1405
|
+
filterSpaceTree: async (i) => {
|
|
1406
|
+
if (!i) return [];
|
|
1417
1407
|
let v = pa;
|
|
1418
1408
|
const r = {
|
|
1419
|
-
name:
|
|
1409
|
+
name: i
|
|
1420
1410
|
}, [f, c] = await v(r).run();
|
|
1421
1411
|
return f ? {} : (c.forEach((C) => {
|
|
1422
1412
|
C.path.startsWith("/0") && (C.path = C.path.slice(2) + `/${C.id}`), C._name = C.nodeName ? C.nodeName : C.name;
|
|
1423
1413
|
}), c);
|
|
1424
1414
|
},
|
|
1425
|
-
getSpaceDetail: async (
|
|
1426
|
-
if (!
|
|
1427
|
-
const [v, r] = await
|
|
1415
|
+
getSpaceDetail: async (i) => {
|
|
1416
|
+
if (!i) return;
|
|
1417
|
+
const [v, r] = await Be().run({ spaceId: i });
|
|
1428
1418
|
if (!v)
|
|
1429
|
-
return e.value = (r == null ? void 0 : r.path) ||
|
|
1419
|
+
return e.value = (r == null ? void 0 : r.path) || i, t.value = (r == null ? void 0 : r.pathName) || (r == null ? void 0 : r.name) || "", r;
|
|
1430
1420
|
}
|
|
1431
1421
|
};
|
|
1432
1422
|
}, Ya = { class: "table-search-process-top" }, Ja = {
|
|
@@ -1451,11 +1441,11 @@ const Fa = (n, e) => {
|
|
|
1451
1441
|
const e = n, t = Vt(() => {
|
|
1452
1442
|
var b, R, $, w;
|
|
1453
1443
|
return e.isView ? !(((b = g(e.setting.name)) == null ? void 0 : b.split(",").length) > 1) : ((w = ($ = (R = e == null ? void 0 : e.setting) == null ? void 0 : R.options) == null ? void 0 : $.selector) == null ? void 0 : w.isSingle) ?? !0;
|
|
1454
|
-
}), { data:
|
|
1444
|
+
}), { data: o, showData: d, setData: l, getData: g, flowKey: k, setFormRule: s, deleteRule: i, disabledData: v } = e.store || {}, r = p(""), f = p(!0);
|
|
1455
1445
|
!d.value[e.setting.name] && d.value[e.setting.name] != !1 && (d.value[e.setting.name] = !0), M(
|
|
1456
1446
|
() => d.value,
|
|
1457
1447
|
() => {
|
|
1458
|
-
f.value = d.value[e.setting.name], f.value || (r.value = "", L.value = [],
|
|
1448
|
+
f.value = d.value[e.setting.name], f.value || (r.value = "", L.value = [], i(e.setting.name)), f.value && e.setting.options.validateList.length && s(e.setting.name, e.setting.options.validateList);
|
|
1459
1449
|
},
|
|
1460
1450
|
{ deep: !0, immediate: !0 }
|
|
1461
1451
|
);
|
|
@@ -1472,7 +1462,7 @@ const Fa = (n, e) => {
|
|
|
1472
1462
|
confirm: T,
|
|
1473
1463
|
getDetail: I,
|
|
1474
1464
|
searchData: U,
|
|
1475
|
-
searchOptions:
|
|
1465
|
+
searchOptions: q,
|
|
1476
1466
|
linkmanPhone: ee,
|
|
1477
1467
|
equipmentArchivesId: ie,
|
|
1478
1468
|
deviceSpaceInfo: pe
|
|
@@ -1485,17 +1475,17 @@ const Fa = (n, e) => {
|
|
|
1485
1475
|
const ye = p();
|
|
1486
1476
|
if (e.setting.options.tip && (ye.value = X(e.setting.options.tip)), e.setting.options.validateList.length && s(e.setting.name, e.setting.options.validateList), m == "position") {
|
|
1487
1477
|
let b = !1;
|
|
1488
|
-
const R = async (_,
|
|
1489
|
-
!_ || String(_).includes("/") || !String(
|
|
1490
|
-
}, $ = async (_,
|
|
1478
|
+
const R = async (_, E) => {
|
|
1479
|
+
!_ || String(_).includes("/") || !String(E || "").includes("/") || await Ce(String(_));
|
|
1480
|
+
}, $ = async (_, E) => {
|
|
1491
1481
|
if (!(_ != null && _.length)) return;
|
|
1492
|
-
const Z = String(
|
|
1482
|
+
const Z = String(E || "").split(",");
|
|
1493
1483
|
if (!_.some((te, W) => te && !String(te).includes("/") && String(Z[W] || "").includes("/"))) return;
|
|
1494
1484
|
const de = [], se = [];
|
|
1495
1485
|
for (let te = 0; te < _.length; te++) {
|
|
1496
1486
|
const W = _[te], ce = Z[te] || "";
|
|
1497
1487
|
if (W && !String(W).includes("/") && String(ce).includes("/")) {
|
|
1498
|
-
const [ge, oe] = await
|
|
1488
|
+
const [ge, oe] = await Be().run({ spaceId: W });
|
|
1499
1489
|
de.push(ge ? W : (oe == null ? void 0 : oe.path) || W), se.push(ge ? ce : (oe == null ? void 0 : oe.pathName) || (oe == null ? void 0 : oe.name) || ce);
|
|
1500
1490
|
} else
|
|
1501
1491
|
de.push(W), se.push(ce);
|
|
@@ -1503,38 +1493,38 @@ const Fa = (n, e) => {
|
|
|
1503
1493
|
x.value = de, se.some(Boolean) && (fe.value = se);
|
|
1504
1494
|
}, w = (Q = (N = (De = e.setting.options) == null ? void 0 : De.selector) == null ? void 0 : N.type) == null ? void 0 : Q.positionName;
|
|
1505
1495
|
if (t.value) {
|
|
1506
|
-
const _ = g(e.setting.name) ?? "",
|
|
1496
|
+
const _ = g(e.setting.name) ?? "", E = w ? g(w) : "";
|
|
1507
1497
|
x.value = _, r.value = _ ? String(_).split("/").pop() : r.value, (async () => {
|
|
1508
1498
|
b = !0;
|
|
1509
1499
|
try {
|
|
1510
|
-
await R(String(_ || ""),
|
|
1500
|
+
await R(String(_ || ""), E);
|
|
1511
1501
|
} finally {
|
|
1512
1502
|
await ve(), b = !1;
|
|
1513
1503
|
}
|
|
1514
1504
|
})();
|
|
1515
1505
|
} else {
|
|
1516
|
-
const _ = g(e.setting.name) ? String(g(e.setting.name)).split(",") : [],
|
|
1506
|
+
const _ = g(e.setting.name) ? String(g(e.setting.name)).split(",") : [], E = w ? g(w) : "";
|
|
1517
1507
|
x.value = [..._], r.value = _.map((Z) => Z == null ? void 0 : Z.split("/").pop()), (async () => {
|
|
1518
1508
|
b = !0;
|
|
1519
1509
|
try {
|
|
1520
|
-
await $(_,
|
|
1510
|
+
await $(_, E);
|
|
1521
1511
|
} finally {
|
|
1522
1512
|
await ve(), b = !1;
|
|
1523
1513
|
}
|
|
1524
1514
|
})();
|
|
1525
1515
|
}
|
|
1526
|
-
r.value ||
|
|
1527
|
-
b || (t.value ?
|
|
1516
|
+
r.value || l(e.setting.name, null), M(r, (_) => {
|
|
1517
|
+
b || (t.value ? l(e.setting.name, _) : l(e.setting.name, (_ == null ? void 0 : _.join(",")) || ""));
|
|
1528
1518
|
}), M(fe, (_) => {
|
|
1529
|
-
b || (t.value ?
|
|
1519
|
+
b || (t.value ? l(e.setting.options.selector.type.positionName, _) : l(e.setting.options.selector.type.positionName, (_ == null ? void 0 : _.join(",")) || ""));
|
|
1530
1520
|
}), M(
|
|
1531
1521
|
() => {
|
|
1532
1522
|
var _;
|
|
1533
|
-
return (_ =
|
|
1523
|
+
return (_ = o == null ? void 0 : o.value) == null ? void 0 : _[e.setting.name];
|
|
1534
1524
|
},
|
|
1535
|
-
async (_,
|
|
1525
|
+
async (_, E) => {
|
|
1536
1526
|
var Z, be, de;
|
|
1537
|
-
if (_ !==
|
|
1527
|
+
if (_ !== E) {
|
|
1538
1528
|
b = !0;
|
|
1539
1529
|
try {
|
|
1540
1530
|
if (!_) {
|
|
@@ -1542,15 +1532,15 @@ const Fa = (n, e) => {
|
|
|
1542
1532
|
return;
|
|
1543
1533
|
}
|
|
1544
1534
|
if (!t.value) {
|
|
1545
|
-
const W = String(_).split(","), ce = w ? (Z =
|
|
1535
|
+
const W = String(_).split(","), ce = w ? (Z = o == null ? void 0 : o.value) == null ? void 0 : Z[w] : "";
|
|
1546
1536
|
x.value = W, await ve(), r.value = W.map((ge) => ge == null ? void 0 : ge.split("/").pop()), await $(W, ce);
|
|
1547
1537
|
return;
|
|
1548
1538
|
}
|
|
1549
1539
|
let se = String(_), te = se.split("/").pop();
|
|
1550
1540
|
if (se.includes("/"))
|
|
1551
|
-
x.value = se, w && ((de =
|
|
1541
|
+
x.value = se, w && ((de = o == null ? void 0 : o.value) != null && de[w]) && (fe.value = o.value[w]);
|
|
1552
1542
|
else {
|
|
1553
|
-
const W = w ? (be =
|
|
1543
|
+
const W = w ? (be = o == null ? void 0 : o.value) == null ? void 0 : be[w] : "";
|
|
1554
1544
|
String(W || "").includes("/") ? await Ce(te) : x.value = se;
|
|
1555
1545
|
}
|
|
1556
1546
|
await ve(), r.value === te && (r.value = "", await ve()), r.value = te;
|
|
@@ -1561,40 +1551,40 @@ const Fa = (n, e) => {
|
|
|
1561
1551
|
}
|
|
1562
1552
|
);
|
|
1563
1553
|
} else m == "supplier" ? (r.value = g(e.setting.name) ? [g(e.setting.name)] : [r.value], r.value && I(g(e.setting.name)), M(r, (b) => {
|
|
1564
|
-
|
|
1554
|
+
l(e.setting.name, b == null ? void 0 : b.toString());
|
|
1565
1555
|
}), M(ee, (b) => {
|
|
1566
1556
|
var R, $, w, _;
|
|
1567
|
-
((_ = (w = ($ = (R = e == null ? void 0 : e.setting) == null ? void 0 : R.options) == null ? void 0 : $.selector) == null ? void 0 : w.type) == null ? void 0 : _.supplierPhone) !== void 0 &&
|
|
1568
|
-
})) : m == "device" ? (r.value = g(e.setting.name) ? g(e.setting.name) : r.value, r.value && I(r.value), r.value.length ||
|
|
1557
|
+
((_ = (w = ($ = (R = e == null ? void 0 : e.setting) == null ? void 0 : R.options) == null ? void 0 : $.selector) == null ? void 0 : w.type) == null ? void 0 : _.supplierPhone) !== void 0 && l(e.setting.options.selector.type.supplierPhone, b);
|
|
1558
|
+
})) : m == "device" ? (r.value = g(e.setting.name) ? g(e.setting.name) : r.value, r.value && I(r.value), r.value.length || l(e.setting.name, null), pe.value = {
|
|
1569
1559
|
spaceId: g("wzid") || "",
|
|
1570
1560
|
spacePath: "",
|
|
1571
1561
|
spacePathName: g("wzmc") || ""
|
|
1572
1562
|
}, M(L, (b) => {
|
|
1573
|
-
r.value = b.map((R) => R.value).toString(),
|
|
1563
|
+
r.value = b.map((R) => R.value).toString(), l(e.setting.name, r.value);
|
|
1574
1564
|
}), M(ie, (b) => {
|
|
1575
|
-
|
|
1565
|
+
l("equipment_archives_id", b || null);
|
|
1576
1566
|
}), M(
|
|
1577
1567
|
pe,
|
|
1578
1568
|
async (b) => {
|
|
1579
1569
|
if (!(b != null && b.spaceId)) return;
|
|
1580
|
-
const [R, $] = await
|
|
1570
|
+
const [R, $] = await Be().run({ spaceId: b.spaceId });
|
|
1581
1571
|
if (R) {
|
|
1582
|
-
|
|
1572
|
+
l("wzid", b.spaceId), l("wzmc", b.spacePathName || "");
|
|
1583
1573
|
return;
|
|
1584
1574
|
}
|
|
1585
|
-
|
|
1575
|
+
l("wzid", ($ == null ? void 0 : $.path) || b.spaceId), l("wzmc", ($ == null ? void 0 : $.pathName) || b.spacePathName || "");
|
|
1586
1576
|
},
|
|
1587
1577
|
{
|
|
1588
1578
|
deep: !0
|
|
1589
1579
|
}
|
|
1590
|
-
)) : (r.value = g(e.setting.name) ? g(e.setting.name) : r.value, r.value && I(r.value), r.value.length ||
|
|
1591
|
-
r.value = b.map((R) => R.value).toString(),
|
|
1580
|
+
)) : (r.value = g(e.setting.name) ? g(e.setting.name) : r.value, r.value && I(r.value), r.value.length || l(e.setting.name, null), M(L, (b) => {
|
|
1581
|
+
r.value = b.map((R) => R.value).toString(), l(e.setting.name, r.value);
|
|
1592
1582
|
}));
|
|
1593
1583
|
return (b, R) => (V(), H(
|
|
1594
1584
|
le,
|
|
1595
1585
|
null,
|
|
1596
1586
|
[
|
|
1597
|
-
f.value && a(m) != "position" ? (V(),
|
|
1587
|
+
f.value && a(m) != "position" ? (V(), O(a(J), {
|
|
1598
1588
|
key: 0,
|
|
1599
1589
|
col: e.span,
|
|
1600
1590
|
modelValue: r.value,
|
|
@@ -1613,7 +1603,7 @@ const Fa = (n, e) => {
|
|
|
1613
1603
|
default: F(() => {
|
|
1614
1604
|
var $;
|
|
1615
1605
|
return [
|
|
1616
|
-
z(a(
|
|
1606
|
+
z(a(Et), {
|
|
1617
1607
|
"append-to-body": "",
|
|
1618
1608
|
modelValue: a(C),
|
|
1619
1609
|
"onUpdate:modelValue": R[0] || (R[0] = (w) => Re(C) ? C.value = w : null),
|
|
@@ -1625,13 +1615,13 @@ const Fa = (n, e) => {
|
|
|
1625
1615
|
_: 2
|
|
1626
1616
|
/* DYNAMIC */
|
|
1627
1617
|
}, [
|
|
1628
|
-
(($ = a(
|
|
1618
|
+
(($ = a(q)) == null ? void 0 : $.length) > 0 ? {
|
|
1629
1619
|
name: "table-header-search",
|
|
1630
1620
|
fn: F(() => [
|
|
1631
1621
|
Xe("div", Ya, [
|
|
1632
|
-
z(a(
|
|
1622
|
+
z(a(qt), {
|
|
1633
1623
|
labelLength: "6",
|
|
1634
|
-
options: a(
|
|
1624
|
+
options: a(q),
|
|
1635
1625
|
onConfirm: a(U),
|
|
1636
1626
|
"is-margin-right": !1,
|
|
1637
1627
|
isExpandAtFocus: a(m) !== "device"
|
|
@@ -1656,7 +1646,7 @@ const Fa = (n, e) => {
|
|
|
1656
1646
|
prop: "sensitivePhone"
|
|
1657
1647
|
}, {
|
|
1658
1648
|
default: F(({ row: w }) => [
|
|
1659
|
-
z(a(
|
|
1649
|
+
z(a(Oe), {
|
|
1660
1650
|
placement: "top",
|
|
1661
1651
|
content: w.phone,
|
|
1662
1652
|
disabled: !w.phone
|
|
@@ -1805,7 +1795,7 @@ const Fa = (n, e) => {
|
|
|
1805
1795
|
prop: "classificationName"
|
|
1806
1796
|
}, {
|
|
1807
1797
|
default: F(() => [
|
|
1808
|
-
|
|
1798
|
+
A(` <template #default="{row}">\r
|
|
1809
1799
|
{{ getSupplierName(row) }}\r
|
|
1810
1800
|
</template> `)
|
|
1811
1801
|
]),
|
|
@@ -1875,7 +1865,7 @@ const Fa = (n, e) => {
|
|
|
1875
1865
|
prop: "sensitivePhone"
|
|
1876
1866
|
}, {
|
|
1877
1867
|
default: F(({ row: w }) => [
|
|
1878
|
-
z(a(
|
|
1868
|
+
z(a(Oe), {
|
|
1879
1869
|
placement: "top",
|
|
1880
1870
|
content: w.phone,
|
|
1881
1871
|
disabled: !w.phone
|
|
@@ -1920,8 +1910,8 @@ const Fa = (n, e) => {
|
|
|
1920
1910
|
}),
|
|
1921
1911
|
_: 1
|
|
1922
1912
|
/* STABLE */
|
|
1923
|
-
}, 8, ["col", "modelValue", "prop", "label", "options", "helpMessage", "isView", "disabled", "required", "placeholder", "onOpenDialog"])) :
|
|
1924
|
-
f.value && a(m) == "position" ? (V(),
|
|
1913
|
+
}, 8, ["col", "modelValue", "prop", "label", "options", "helpMessage", "isView", "disabled", "required", "placeholder", "onOpenDialog"])) : A("v-if", !0),
|
|
1914
|
+
f.value && a(m) == "position" ? (V(), O(a(J), {
|
|
1925
1915
|
key: 1,
|
|
1926
1916
|
col: e.span,
|
|
1927
1917
|
label: b.setting.desc,
|
|
@@ -1948,13 +1938,13 @@ const Fa = (n, e) => {
|
|
|
1948
1938
|
},
|
|
1949
1939
|
onChange: a(Ue),
|
|
1950
1940
|
mode: t.value ? "" : "multiple"
|
|
1951
|
-
}, null, 8, ["col", "label", "prop", "helpMessage", "placeholder", "required", "modelValue", "keyword", "path", "isView", "disabled", "load", "search", "onChange", "mode"])) :
|
|
1941
|
+
}, null, 8, ["col", "label", "prop", "helpMessage", "placeholder", "required", "modelValue", "keyword", "path", "isView", "disabled", "load", "search", "onChange", "mode"])) : A("v-if", !0)
|
|
1952
1942
|
],
|
|
1953
1943
|
64
|
|
1954
1944
|
/* STABLE_FRAGMENT */
|
|
1955
1945
|
));
|
|
1956
1946
|
}
|
|
1957
|
-
}), Wa = /* @__PURE__ */ Te(Ha, [["__scopeId", "data-v-
|
|
1947
|
+
}), Wa = /* @__PURE__ */ Te(Ha, [["__scopeId", "data-v-cc180eb0"]]), yt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1958
1948
|
__proto__: null,
|
|
1959
1949
|
default: Wa
|
|
1960
1950
|
}, Symbol.toStringTag, { value: "Module" })), Za = {
|
|
@@ -1981,24 +1971,24 @@ const Fa = (n, e) => {
|
|
|
1981
1971
|
store: {}
|
|
1982
1972
|
},
|
|
1983
1973
|
setup(n) {
|
|
1984
|
-
const e = n, { showData: t, disabledData:
|
|
1974
|
+
const e = n, { showData: t, disabledData: o, setData: d, getData: l, setFormRule: g, deleteRule: k } = e.store || {}, s = p(), i = p(!0);
|
|
1985
1975
|
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), M(
|
|
1986
1976
|
() => t.value,
|
|
1987
1977
|
() => {
|
|
1988
|
-
|
|
1978
|
+
i.value = t.value[e.setting.name], i.value || (s.value = "", k(e.setting.name)), i.value && e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList);
|
|
1989
1979
|
},
|
|
1990
1980
|
{ deep: !0, immediate: !0 }
|
|
1991
|
-
),
|
|
1992
|
-
const { baseURL: v } =
|
|
1981
|
+
), o.value[e.setting.name];
|
|
1982
|
+
const { baseURL: v } = Ot(), r = p(!1);
|
|
1993
1983
|
ne(e.setting.options.validateList).then((C) => {
|
|
1994
1984
|
r.value = C;
|
|
1995
1985
|
});
|
|
1996
1986
|
const f = p("info"), c = p();
|
|
1997
|
-
if (e.setting.options.tip && (c.value = X(e.setting.options.tip)),
|
|
1998
|
-
const C = JSON.parse(
|
|
1987
|
+
if (e.setting.options.tip && (c.value = X(e.setting.options.tip)), l(e.setting.name)) {
|
|
1988
|
+
const C = JSON.parse(l(e.setting.name));
|
|
1999
1989
|
s.value = v + C[0].url;
|
|
2000
1990
|
}
|
|
2001
|
-
return e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList), (C, y) => e.isView &&
|
|
1991
|
+
return e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList), (C, y) => e.isView && i.value ? (V(), O(a(J), {
|
|
2002
1992
|
key: 0,
|
|
2003
1993
|
modelValue: s.value,
|
|
2004
1994
|
"onUpdate:modelValue": y[2] || (y[2] = (D) => s.value = D),
|
|
@@ -2023,7 +2013,7 @@ const Fa = (n, e) => {
|
|
|
2023
2013
|
]),
|
|
2024
2014
|
_: 1
|
|
2025
2015
|
/* STABLE */
|
|
2026
|
-
}, 8, ["modelValue", "prop", "label", "helpMessage", "required", "col"])) :
|
|
2016
|
+
}, 8, ["modelValue", "prop", "label", "helpMessage", "required", "col"])) : A("v-if", !0);
|
|
2027
2017
|
}
|
|
2028
2018
|
}), tn = /* @__PURE__ */ Te(en, [["__scopeId", "data-v-b30e3d77"]]), bt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2029
2019
|
__proto__: null,
|
|
@@ -2046,24 +2036,24 @@ const Fa = (n, e) => {
|
|
|
2046
2036
|
store: {}
|
|
2047
2037
|
},
|
|
2048
2038
|
setup(n) {
|
|
2049
|
-
const e = n, { showData: t, disabledData:
|
|
2039
|
+
const e = n, { showData: t, disabledData: o, setData: d, getData: l, setFormRule: g, deleteRule: k } = e.store || {}, s = p(), i = p(!0);
|
|
2050
2040
|
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), M(
|
|
2051
2041
|
() => t.value,
|
|
2052
2042
|
() => {
|
|
2053
|
-
|
|
2043
|
+
i.value = t.value[e.setting.name], i.value || (s.value = null, k(e.setting.name)), i.value && e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList);
|
|
2054
2044
|
},
|
|
2055
2045
|
{ deep: !0, immediate: !0 }
|
|
2056
2046
|
);
|
|
2057
|
-
const v =
|
|
2047
|
+
const v = o.value[e.setting.name] || !1, r = p(!1);
|
|
2058
2048
|
ne(e.setting.options.validateList).then((c) => {
|
|
2059
2049
|
r.value = c;
|
|
2060
2050
|
});
|
|
2061
2051
|
const f = p();
|
|
2062
2052
|
return e.setting.options.tip && (f.value = X(e.setting.options.tip)), setTimeout(() => {
|
|
2063
|
-
s.value =
|
|
2053
|
+
s.value = l(e.setting.name) || e.setting.options.formulasDiyJs || s.value, s.value || d(e.setting.name, null);
|
|
2064
2054
|
}, 50), e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList), M(s, (c) => {
|
|
2065
2055
|
d(e.setting.name, c);
|
|
2066
|
-
}), (c, C) =>
|
|
2056
|
+
}), (c, C) => i.value ? (V(), O(a(J), {
|
|
2067
2057
|
key: 0,
|
|
2068
2058
|
col: e.span,
|
|
2069
2059
|
modelValue: s.value,
|
|
@@ -2079,7 +2069,7 @@ const Fa = (n, e) => {
|
|
|
2079
2069
|
disabled: a(v),
|
|
2080
2070
|
required: r.value,
|
|
2081
2071
|
isView: e.isView
|
|
2082
|
-
}, null, 8, ["col", "modelValue", "label", "prop", "activeValue", "inactiveValue", "activeText", "inactiveText", "helpMessage", "disabled", "required", "isView"])) :
|
|
2072
|
+
}, null, 8, ["col", "modelValue", "label", "prop", "activeValue", "inactiveValue", "activeText", "inactiveText", "helpMessage", "disabled", "required", "isView"])) : A("v-if", !0);
|
|
2083
2073
|
}
|
|
2084
2074
|
}), wt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2085
2075
|
__proto__: null,
|
|
@@ -2102,18 +2092,18 @@ const Fa = (n, e) => {
|
|
|
2102
2092
|
store: {}
|
|
2103
2093
|
},
|
|
2104
2094
|
setup(n) {
|
|
2105
|
-
const e = n, { showData: t, disabledData:
|
|
2095
|
+
const e = n, { showData: t, disabledData: o, setData: d, getData: l, setFormRule: g, deleteRule: k } = e.store || {}, s = p(), i = p(!0);
|
|
2106
2096
|
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), M(
|
|
2107
2097
|
() => t.value,
|
|
2108
2098
|
() => {
|
|
2109
|
-
|
|
2099
|
+
i.value = t.value[e.setting.name], i.value || (s.value = null, k(e.setting.name)), i.value && e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList);
|
|
2110
2100
|
},
|
|
2111
2101
|
{ deep: !0, immediate: !0 }
|
|
2112
2102
|
);
|
|
2113
2103
|
const v = p();
|
|
2114
|
-
return e.setting.options.tip && (v.value = X(e.setting.options.tip)), s.value = e.setting.options.textValue, s.value =
|
|
2104
|
+
return e.setting.options.tip && (v.value = X(e.setting.options.tip)), s.value = e.setting.options.textValue, s.value = l(e.setting.name) || s.value, s.value || d(e.setting.name, null), M(s, (r) => {
|
|
2115
2105
|
d(e.setting.name, r);
|
|
2116
|
-
}), (r, f) =>
|
|
2106
|
+
}), (r, f) => i.value ? (V(), O(a(J), {
|
|
2117
2107
|
key: 0,
|
|
2118
2108
|
col: e.span,
|
|
2119
2109
|
modelValue: s.value,
|
|
@@ -2131,7 +2121,7 @@ const Fa = (n, e) => {
|
|
|
2131
2121
|
]),
|
|
2132
2122
|
_: 1
|
|
2133
2123
|
/* STABLE */
|
|
2134
|
-
}, 8, ["col", "modelValue", "label", "helpMessage"])) :
|
|
2124
|
+
}, 8, ["col", "modelValue", "label", "helpMessage"])) : A("v-if", !0);
|
|
2135
2125
|
}
|
|
2136
2126
|
}), _t = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2137
2127
|
__proto__: null,
|
|
@@ -2154,21 +2144,21 @@ const Fa = (n, e) => {
|
|
|
2154
2144
|
store: {}
|
|
2155
2145
|
},
|
|
2156
2146
|
setup(n) {
|
|
2157
|
-
const e = n, { showData: t, disabledData:
|
|
2147
|
+
const e = n, { showData: t, disabledData: o, setData: d, getData: l, setFormRule: g, deleteRule: k } = e.store || {}, s = p(""), i = p(!0);
|
|
2158
2148
|
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), M(
|
|
2159
2149
|
() => t.value,
|
|
2160
2150
|
() => {
|
|
2161
|
-
|
|
2151
|
+
i.value = t.value[e.setting.name], i.value || (s.value = "", k(e.setting.name)), i.value && e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList);
|
|
2162
2152
|
},
|
|
2163
2153
|
{ deep: !0, immediate: !0 }
|
|
2164
2154
|
);
|
|
2165
|
-
const v =
|
|
2155
|
+
const v = o.value[e.setting.name] || !1, r = p(!1);
|
|
2166
2156
|
ne(e.setting.options.validateList).then((y) => {
|
|
2167
2157
|
r.value = y;
|
|
2168
2158
|
});
|
|
2169
2159
|
const f = p();
|
|
2170
2160
|
e.setting.options.tip && (f.value = X(e.setting.options.tip)), setTimeout(() => {
|
|
2171
|
-
s.value =
|
|
2161
|
+
s.value = l(e.setting.name) || e.setting.options.formulasDiyJs || s.value, s.value || d(e.setting.name, null);
|
|
2172
2162
|
}, 50);
|
|
2173
2163
|
const c = p(), C = p();
|
|
2174
2164
|
return c.value = e.setting.options.initialFrameWidth ? e.setting.options.initialFrameWidth + "px" : "", C.value = e.setting.options.initialFrameHeight ? e.setting.options.initialFrameHeight + "px" : "", e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList), M(s, (y) => {
|
|
@@ -2177,7 +2167,7 @@ const Fa = (n, e) => {
|
|
|
2177
2167
|
le,
|
|
2178
2168
|
null,
|
|
2179
2169
|
[
|
|
2180
|
-
!y.setting.options.isEditor &&
|
|
2170
|
+
!y.setting.options.isEditor && i.value ? (V(), O(a(J), {
|
|
2181
2171
|
key: 0,
|
|
2182
2172
|
col: e.span,
|
|
2183
2173
|
label: y.setting.desc,
|
|
@@ -2195,8 +2185,8 @@ const Fa = (n, e) => {
|
|
|
2195
2185
|
"show-word-limit": "",
|
|
2196
2186
|
helpMessage: f.value,
|
|
2197
2187
|
required: r.value
|
|
2198
|
-
}, null, 8, ["col", "label", "modelValue", "prop", "placeholder", "disabled", "isView", "helpMessage", "required"])) :
|
|
2199
|
-
y.setting.options.isEditor &&
|
|
2188
|
+
}, null, 8, ["col", "label", "modelValue", "prop", "placeholder", "disabled", "isView", "helpMessage", "required"])) : A("v-if", !0),
|
|
2189
|
+
y.setting.options.isEditor && i.value ? (V(), O(a(J), {
|
|
2200
2190
|
key: 1,
|
|
2201
2191
|
modelValue: s.value,
|
|
2202
2192
|
"onUpdate:modelValue": D[2] || (D[2] = (m) => s.value = m),
|
|
@@ -2220,7 +2210,7 @@ const Fa = (n, e) => {
|
|
|
2220
2210
|
]),
|
|
2221
2211
|
_: 1
|
|
2222
2212
|
/* STABLE */
|
|
2223
|
-
}, 8, ["modelValue", "prop", "contentWidth", "label", "helpMessage", "required", "readOnly"])) :
|
|
2213
|
+
}, 8, ["modelValue", "prop", "contentWidth", "label", "helpMessage", "required", "readOnly"])) : A("v-if", !0)
|
|
2224
2214
|
],
|
|
2225
2215
|
64
|
|
2226
2216
|
/* STABLE_FRAGMENT */
|
|
@@ -2247,25 +2237,25 @@ const Fa = (n, e) => {
|
|
|
2247
2237
|
store: {}
|
|
2248
2238
|
},
|
|
2249
2239
|
setup(n) {
|
|
2250
|
-
const e = n, { showData: t, disabledData:
|
|
2240
|
+
const e = n, { showData: t, disabledData: o, setData: d, getData: l, setFormRule: g, deleteRule: k } = e.store || {}, s = p(), i = p(!0);
|
|
2251
2241
|
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), M(
|
|
2252
2242
|
() => t.value,
|
|
2253
2243
|
() => {
|
|
2254
|
-
|
|
2244
|
+
i.value = t.value[e.setting.name], i.value || (s.value = null, k(e.setting.name)), i.value && e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList);
|
|
2255
2245
|
},
|
|
2256
2246
|
{ deep: !0, immediate: !0 }
|
|
2257
2247
|
);
|
|
2258
|
-
const v =
|
|
2248
|
+
const v = o.value[e.setting.name] || !1, r = p(!1);
|
|
2259
2249
|
ne(e.setting.options.validateList).then((c) => {
|
|
2260
2250
|
r.value = c;
|
|
2261
2251
|
});
|
|
2262
2252
|
const f = p();
|
|
2263
2253
|
return e.setting.options.tip && (f.value = X(e.setting.options.tip)), setTimeout(() => {
|
|
2264
2254
|
const c = Me().format("YYYY-MM-DD ");
|
|
2265
|
-
|
|
2255
|
+
l(e.setting.name) && (s.value = l(e.setting.name)), e.setting.options.formulasDiyJs && (s.value = Me(c + e.setting.options.formulasDiyJs)), s.value || d(e.setting.name, null);
|
|
2266
2256
|
}, 50), e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList), M(s, (c) => {
|
|
2267
2257
|
d(e.setting.name, c);
|
|
2268
|
-
}), (c, C) =>
|
|
2258
|
+
}), (c, C) => i.value ? (V(), O(a(J), {
|
|
2269
2259
|
key: 0,
|
|
2270
2260
|
col: e.span,
|
|
2271
2261
|
modelValue: s.value,
|
|
@@ -2277,7 +2267,7 @@ const Fa = (n, e) => {
|
|
|
2277
2267
|
isView: e.isView,
|
|
2278
2268
|
required: r.value,
|
|
2279
2269
|
disabled: a(v)
|
|
2280
|
-
}, null, 8, ["col", "modelValue", "prop", "label", "helpMessage", "isView", "required", "disabled"])) :
|
|
2270
|
+
}, null, 8, ["col", "modelValue", "prop", "label", "helpMessage", "isView", "required", "disabled"])) : A("v-if", !0);
|
|
2281
2271
|
}
|
|
2282
2272
|
}), Dt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2283
2273
|
__proto__: null,
|
|
@@ -2299,15 +2289,15 @@ const Fa = (n, e) => {
|
|
|
2299
2289
|
}
|
|
2300
2290
|
},
|
|
2301
2291
|
setup(n) {
|
|
2302
|
-
const e = p([]), t = n.columns.map((
|
|
2303
|
-
const d =
|
|
2304
|
-
(
|
|
2292
|
+
const e = p([]), t = n.columns.map((o) => {
|
|
2293
|
+
const d = o.list.map(
|
|
2294
|
+
(l) => Se(Ne[l.ctrlType], { setting: l, isView: n.isView, store: n.store })
|
|
2305
2295
|
);
|
|
2306
|
-
return
|
|
2296
|
+
return o.isOpen == !0 && e.value.push(o.idKey), Se(
|
|
2307
2297
|
st,
|
|
2308
2298
|
{
|
|
2309
|
-
header:
|
|
2310
|
-
key: `${
|
|
2299
|
+
header: o.span,
|
|
2300
|
+
key: `${o.idKey}`
|
|
2311
2301
|
},
|
|
2312
2302
|
Se("div", d)
|
|
2313
2303
|
);
|
|
@@ -2353,7 +2343,7 @@ const Fa = (n, e) => {
|
|
|
2353
2343
|
store: {}
|
|
2354
2344
|
},
|
|
2355
2345
|
setup(n) {
|
|
2356
|
-
return (e, t) => (V(),
|
|
2346
|
+
return (e, t) => (V(), O(a(dn), {
|
|
2357
2347
|
columns: e.setting.columns,
|
|
2358
2348
|
options: e.setting.options,
|
|
2359
2349
|
isView: e.isView,
|
|
@@ -2393,12 +2383,12 @@ const Fa = (n, e) => {
|
|
|
2393
2383
|
},
|
|
2394
2384
|
setup(n) {
|
|
2395
2385
|
const e = n;
|
|
2396
|
-
return (t,
|
|
2386
|
+
return (t, o) => (V(), H(
|
|
2397
2387
|
le,
|
|
2398
2388
|
null,
|
|
2399
2389
|
[
|
|
2400
|
-
|
|
2401
|
-
|
|
2390
|
+
A(' <GridLayout :columns="setting.columns" :isView="props.isView" :store="store"></GridLayout> '),
|
|
2391
|
+
A(' <div style="display: flex; flex-direction: row; flex-wrap: wrap; width: 100%"> '),
|
|
2402
2392
|
(V(!0), H(
|
|
2403
2393
|
le,
|
|
2404
2394
|
null,
|
|
@@ -2409,8 +2399,8 @@ const Fa = (n, e) => {
|
|
|
2409
2399
|
(V(!0), H(
|
|
2410
2400
|
le,
|
|
2411
2401
|
null,
|
|
2412
|
-
ke(d.list, (
|
|
2413
|
-
setting:
|
|
2402
|
+
ke(d.list, (l) => (V(), O(Le(a(bn)[l.ctrlType]), {
|
|
2403
|
+
setting: l,
|
|
2414
2404
|
isView: e.isView,
|
|
2415
2405
|
store: t.store,
|
|
2416
2406
|
span: d.span
|
|
@@ -2425,7 +2415,7 @@ const Fa = (n, e) => {
|
|
|
2425
2415
|
256
|
|
2426
2416
|
/* UNKEYED_FRAGMENT */
|
|
2427
2417
|
)),
|
|
2428
|
-
|
|
2418
|
+
A(" </div> ")
|
|
2429
2419
|
],
|
|
2430
2420
|
2112
|
|
2431
2421
|
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
@@ -2434,18 +2424,18 @@ const Fa = (n, e) => {
|
|
|
2434
2424
|
}), hn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2435
2425
|
__proto__: null,
|
|
2436
2426
|
default: fn
|
|
2437
|
-
}, Symbol.toStringTag, { value: "Module" })), je = /* @__PURE__ */ Object.assign({ "./base/attachment.vue": rt, "./base/autocomplete.vue": ut, "./base/checkbox.vue": pt, "./base/date.vue": dt, "./base/dropdown.vue": ct, "./base/imageViewer.vue": gt, "./base/input.vue": mt, "./base/number.vue": vt, "./base/radio.vue": ft, "./base/select.vue": ht, "./base/selector.vue": yt, "./base/soundRecording.vue": bt, "./base/switch.vue": wt, "./base/text.vue": _t, "./base/textarea.vue": Ct, "./base/time.vue": Dt, "./layout/accordion/accordion.vue": mn, "./layout/grid/gridLayout.vue": hn }), Ke = /* @__PURE__ */ Object.assign({ "./base/attachment.vue": rt, "./base/autocomplete.vue": ut, "./base/checkbox.vue": pt, "./base/date.vue": dt, "./base/dropdown.vue": ct, "./base/imageViewer.vue": gt, "./base/input.vue": mt, "./base/number.vue": vt, "./base/radio.vue": ft, "./base/select.vue": ht, "./base/selector.vue": yt, "./base/soundRecording.vue": bt, "./base/switch.vue": wt, "./base/text.vue": _t, "./base/textarea.vue": Ct, "./base/time.vue": Dt }),
|
|
2427
|
+
}, Symbol.toStringTag, { value: "Module" })), je = /* @__PURE__ */ Object.assign({ "./base/attachment.vue": rt, "./base/autocomplete.vue": ut, "./base/checkbox.vue": pt, "./base/date.vue": dt, "./base/dropdown.vue": ct, "./base/imageViewer.vue": gt, "./base/input.vue": mt, "./base/number.vue": vt, "./base/radio.vue": ft, "./base/select.vue": ht, "./base/selector.vue": yt, "./base/soundRecording.vue": bt, "./base/switch.vue": wt, "./base/text.vue": _t, "./base/textarea.vue": Ct, "./base/time.vue": Dt, "./layout/accordion/accordion.vue": mn, "./layout/grid/gridLayout.vue": hn }), Ke = /* @__PURE__ */ Object.assign({ "./base/attachment.vue": rt, "./base/autocomplete.vue": ut, "./base/checkbox.vue": pt, "./base/date.vue": dt, "./base/dropdown.vue": ct, "./base/imageViewer.vue": gt, "./base/input.vue": mt, "./base/number.vue": vt, "./base/radio.vue": ft, "./base/select.vue": ht, "./base/selector.vue": yt, "./base/soundRecording.vue": bt, "./base/switch.vue": wt, "./base/text.vue": _t, "./base/textarea.vue": Ct, "./base/time.vue": Dt }), qe = /* @__PURE__ */ Object.assign({}), Ee = /* @__PURE__ */ Object.assign({}), Ne = {}, St = {}, kt = {}, yn = {};
|
|
2438
2428
|
Object.keys(Ke).map((n) => St[Ke[n].default.name] = Ke[n].default);
|
|
2439
|
-
Object.keys(
|
|
2440
|
-
Object.keys(
|
|
2429
|
+
Object.keys(qe).map((n) => kt[qe[n].default.name] = qe[n].default);
|
|
2430
|
+
Object.keys(Ee).map((n) => yn[Ee[n].default.name] = Ee[n].default);
|
|
2441
2431
|
Object.keys(je).map((n) => Ne[je[n].default.name] = je[n].default);
|
|
2442
|
-
const bn = { ...St, ...kt }, wn = (n, e, t,
|
|
2432
|
+
const bn = { ...St, ...kt }, wn = (n, e, t, o) => {
|
|
2443
2433
|
(!e || e.toString() === "") && parseInt(e) !== 0 ? t(new Error(`${S("*必填")}`)) : t();
|
|
2444
|
-
}, _n = (n, e, t,
|
|
2445
|
-
e !== "" && e.length > parseInt(
|
|
2446
|
-
}, Cn = (n, e, t,
|
|
2447
|
-
e !== "" && e.length < parseInt(
|
|
2448
|
-
}, Dn = (n, e, t,
|
|
2434
|
+
}, _n = (n, e, t, o) => {
|
|
2435
|
+
e !== "" && e.length > parseInt(o.value) ? t(new Error(`${S("最大文本长度")}${S("不能超过")}${o.value}`)) : t();
|
|
2436
|
+
}, Cn = (n, e, t, o) => {
|
|
2437
|
+
e !== "" && e.length < parseInt(o.value) ? t(new Error(`${S("最小文本长度")}${S("不能少于")}${o.value}`)) : t();
|
|
2438
|
+
}, Dn = (n, e, t, o) => {
|
|
2449
2439
|
if (e !== "" && !/^1[3456789]\d{9}$/.test(e))
|
|
2450
2440
|
return t(new Error(S("手机号码格式不正确,请重新输入"))), !1;
|
|
2451
2441
|
t();
|
|
@@ -2457,21 +2447,21 @@ const bn = { ...St, ...kt }, wn = (n, e, t, l) => {
|
|
|
2457
2447
|
if (e !== "" && !/^-?\d+$/.test(e))
|
|
2458
2448
|
return t(new Error(S("请输入整数"))), !1;
|
|
2459
2449
|
t();
|
|
2460
|
-
}, Nn = (n, e, t,
|
|
2461
|
-
if (e !== "" && e !=
|
|
2450
|
+
}, Nn = (n, e, t, o) => {
|
|
2451
|
+
if (e !== "" && e != o.value)
|
|
2462
2452
|
return t(new Error(S("请输入相同的值"))), !1;
|
|
2463
2453
|
t();
|
|
2464
|
-
}, Vn = (n, e, t,
|
|
2465
|
-
e === "" ? t() : /^[+-]?\d*\.?\d*$/.test(e) ? e < parseFloat(
|
|
2466
|
-
}, Ln = (n, e, t,
|
|
2467
|
-
e === "" ? t() : /^[+-]?\d*\.?\d*$/.test(e) ? e > parseFloat(
|
|
2468
|
-
}, zn = (n, e, t,
|
|
2469
|
-
const d = /^[+-]?(\d*\.\d+([eE]?[+-]?\d+)?|\d+[eE][+-]?\d+)$/,
|
|
2470
|
-
e === "" ? t() : d.test(e) ||
|
|
2471
|
-
}, Mn = (n, e, t,
|
|
2472
|
-
e === "" || parseFloat(e) === parseFloat(
|
|
2473
|
-
}, In = (n, e, t,
|
|
2474
|
-
e === "" ? t() : /^-?\d+$/.test(e) ? Math.abs(e).toString().length === parseInt(
|
|
2454
|
+
}, Vn = (n, e, t, o) => {
|
|
2455
|
+
e === "" ? t() : /^[+-]?\d*\.?\d*$/.test(e) ? e < parseFloat(o.value) ? t(new Error(`${o.name}${S("不能小于")}${o.value}`)) : t() : t(new Error(S("请输入数字")));
|
|
2456
|
+
}, Ln = (n, e, t, o) => {
|
|
2457
|
+
e === "" ? t() : /^[+-]?\d*\.?\d*$/.test(e) ? e > parseFloat(o.value) ? t(new Error(`${o.name}${S("不能大于")}${o.value}`)) : t() : t(new Error(S("请输入数字")));
|
|
2458
|
+
}, zn = (n, e, t, o) => {
|
|
2459
|
+
const d = /^[+-]?(\d*\.\d+([eE]?[+-]?\d+)?|\d+[eE][+-]?\d+)$/, l = /^-?\d+$/;
|
|
2460
|
+
e === "" ? t() : d.test(e) || l.test(e) ? e >= parseFloat(o.start) && e <= parseFloat(o.end) ? t() : t(new Error(`${S("只能输入指定数字范围")}${o.start}-${o.end}`)) : t(new Error(S("请输入数字")));
|
|
2461
|
+
}, Mn = (n, e, t, o) => {
|
|
2462
|
+
e === "" || parseFloat(e) === parseFloat(o.value) ? t() : t(new Error(`${S("只能输入指定的值")}${o.value}`));
|
|
2463
|
+
}, In = (n, e, t, o) => {
|
|
2464
|
+
e === "" ? t() : /^-?\d+$/.test(e) ? Math.abs(e).toString().length === parseInt(o.value) ? t() : t(new Error(`${S("只能输入")}${o.value}${S("位数数字")}`)) : t(new Error(S("请输入整数")));
|
|
2475
2465
|
}, Tn = (n, e, t) => {
|
|
2476
2466
|
if (e !== "" && !/^[a-zA-Z]{1,}$/.test(e))
|
|
2477
2467
|
return t(new Error(S("只能输入字母"))), !1;
|
|
@@ -2488,10 +2478,10 @@ const bn = { ...St, ...kt }, wn = (n, e, t, l) => {
|
|
|
2488
2478
|
if (e !== "" && !/^[0-9a-zA-Z]{1,}$/.test(e))
|
|
2489
2479
|
return t(new Error(S("只能输入字母数字"))), !1;
|
|
2490
2480
|
t();
|
|
2491
|
-
}, Fn = (n, e, t,
|
|
2492
|
-
const d = new RegExp(
|
|
2481
|
+
}, Fn = (n, e, t, o) => {
|
|
2482
|
+
const d = new RegExp(o.value);
|
|
2493
2483
|
if (e !== "" && !d.test(e))
|
|
2494
|
-
return t(new Error(
|
|
2484
|
+
return t(new Error(o.errorMessage)), !1;
|
|
2495
2485
|
t();
|
|
2496
2486
|
}, jn = {
|
|
2497
2487
|
required: wn,
|
|
@@ -2512,15 +2502,15 @@ const bn = { ...St, ...kt }, wn = (n, e, t, l) => {
|
|
|
2512
2502
|
alpha_num: $n,
|
|
2513
2503
|
regex: Fn
|
|
2514
2504
|
}, Kn = () => {
|
|
2515
|
-
const n = p({}), e = p([]), t = p({}),
|
|
2505
|
+
const n = p({}), e = p([]), t = p({}), o = p({}), d = p([]), l = p(""), g = p(""), k = p({}), s = p([]), i = p({});
|
|
2516
2506
|
return {
|
|
2517
2507
|
data: n,
|
|
2518
2508
|
formData: e,
|
|
2519
2509
|
formRule: k,
|
|
2520
2510
|
showData: t,
|
|
2521
|
-
disabledData:
|
|
2522
|
-
flowKey:
|
|
2523
|
-
linkData:
|
|
2511
|
+
disabledData: o,
|
|
2512
|
+
flowKey: l,
|
|
2513
|
+
linkData: i,
|
|
2524
2514
|
encryptionData: s,
|
|
2525
2515
|
setData: (h, u) => {
|
|
2526
2516
|
const P = { ...n.value, [h]: u };
|
|
@@ -2534,7 +2524,7 @@ const bn = { ...St, ...kt }, wn = (n, e, t, l) => {
|
|
|
2534
2524
|
});
|
|
2535
2525
|
},
|
|
2536
2526
|
setLinkData: (h, u) => {
|
|
2537
|
-
|
|
2527
|
+
i.value = { data: h, val: u };
|
|
2538
2528
|
},
|
|
2539
2529
|
getData: (h) => {
|
|
2540
2530
|
var u;
|
|
@@ -2565,13 +2555,13 @@ const bn = { ...St, ...kt }, wn = (n, e, t, l) => {
|
|
|
2565
2555
|
delete k.value[h];
|
|
2566
2556
|
}
|
|
2567
2557
|
};
|
|
2568
|
-
},
|
|
2558
|
+
}, qn = { class: "custom-page" }, En = {
|
|
2569
2559
|
key: 0,
|
|
2570
2560
|
class: "btn-box"
|
|
2571
|
-
},
|
|
2561
|
+
}, On = {
|
|
2572
2562
|
key: 1,
|
|
2573
2563
|
style: { "background-color": "#fff" }
|
|
2574
|
-
},
|
|
2564
|
+
}, Bn = /* @__PURE__ */ Y({
|
|
2575
2565
|
__name: "App",
|
|
2576
2566
|
props: {
|
|
2577
2567
|
formConfigurationId: {},
|
|
@@ -2585,11 +2575,11 @@ const bn = { ...St, ...kt }, wn = (n, e, t, l) => {
|
|
|
2585
2575
|
},
|
|
2586
2576
|
emits: ["handleClick", "change"],
|
|
2587
2577
|
setup(n, { expose: e, emit: t }) {
|
|
2588
|
-
const
|
|
2589
|
-
g.value =
|
|
2578
|
+
const o = Kn(), { formRule: d, data: l, flowKey: g, clearData: k, getFormData: s } = o, i = n, v = t;
|
|
2579
|
+
g.value = i.flowKey;
|
|
2590
2580
|
const r = (P) => P === "accordion";
|
|
2591
2581
|
M(
|
|
2592
|
-
() =>
|
|
2582
|
+
() => l.value,
|
|
2593
2583
|
(P) => {
|
|
2594
2584
|
v("change", P);
|
|
2595
2585
|
},
|
|
@@ -2608,18 +2598,18 @@ const bn = { ...St, ...kt }, wn = (n, e, t, l) => {
|
|
|
2608
2598
|
handleClick: L,
|
|
2609
2599
|
validateFormData: h,
|
|
2610
2600
|
getFormRef: u
|
|
2611
|
-
} = ha(
|
|
2601
|
+
} = ha(i, v, o);
|
|
2612
2602
|
return zt(async () => {
|
|
2613
|
-
|
|
2603
|
+
i.isShowBtn == !1 ? D(i.formConfigurationId) : m();
|
|
2614
2604
|
}), e({
|
|
2615
2605
|
validateFormData: h,
|
|
2616
2606
|
clearData: k
|
|
2617
|
-
}), (P, j) => (V(), H("div",
|
|
2618
|
-
a(C).length > 0 ? (V(), H("div",
|
|
2607
|
+
}), (P, j) => (V(), H("div", qn, [
|
|
2608
|
+
a(C).length > 0 ? (V(), H("div", En, [
|
|
2619
2609
|
(V(!0), H(
|
|
2620
2610
|
le,
|
|
2621
2611
|
null,
|
|
2622
|
-
ke(a(C), (T) => (V(),
|
|
2612
|
+
ke(a(C), (T) => (V(), O(a(Pt), {
|
|
2623
2613
|
key: T.id,
|
|
2624
2614
|
style: { "margin-right": "20px" },
|
|
2625
2615
|
"btn-type": "primary",
|
|
@@ -2638,7 +2628,7 @@ const bn = { ...St, ...kt }, wn = (n, e, t, l) => {
|
|
|
2638
2628
|
128
|
|
2639
2629
|
/* KEYED_FRAGMENT */
|
|
2640
2630
|
))
|
|
2641
|
-
])) :
|
|
2631
|
+
])) : A("v-if", !0),
|
|
2642
2632
|
Mt((V(), H(
|
|
2643
2633
|
"div",
|
|
2644
2634
|
{
|
|
@@ -2655,19 +2645,19 @@ const bn = { ...St, ...kt }, wn = (n, e, t, l) => {
|
|
|
2655
2645
|
key: T.name
|
|
2656
2646
|
},
|
|
2657
2647
|
[
|
|
2658
|
-
r(T.ctrlType) ? (V(),
|
|
2648
|
+
r(T.ctrlType) ? (V(), O(a(nt), {
|
|
2659
2649
|
key: 0,
|
|
2660
2650
|
style: { "margin-bottom": "10px" },
|
|
2661
2651
|
collapsible: T.options.accordion ? "" : "disabled",
|
|
2662
2652
|
activeKey: a(y)
|
|
2663
2653
|
}, {
|
|
2664
2654
|
default: F(() => [
|
|
2665
|
-
(V(),
|
|
2655
|
+
(V(), O(a(st), {
|
|
2666
2656
|
key: T.key,
|
|
2667
2657
|
header: T.columns[0].span
|
|
2668
2658
|
}, {
|
|
2669
2659
|
default: F(() => [
|
|
2670
|
-
a(c) ? (V(),
|
|
2660
|
+
a(c) ? (V(), O(a(We), {
|
|
2671
2661
|
key: 0,
|
|
2672
2662
|
ref_for: !0,
|
|
2673
2663
|
ref: (I) => a(u)(I, T),
|
|
@@ -2676,7 +2666,7 @@ const bn = { ...St, ...kt }, wn = (n, e, t, l) => {
|
|
|
2676
2666
|
"margin-right": "80px",
|
|
2677
2667
|
"auto-margin-right": "",
|
|
2678
2668
|
rules: a(d),
|
|
2679
|
-
form: a(
|
|
2669
|
+
form: a(o).data
|
|
2680
2670
|
}, {
|
|
2681
2671
|
default: F(() => [
|
|
2682
2672
|
(V(!0), H(
|
|
@@ -2688,16 +2678,16 @@ const bn = { ...St, ...kt }, wn = (n, e, t, l) => {
|
|
|
2688
2678
|
key: T.name
|
|
2689
2679
|
},
|
|
2690
2680
|
[
|
|
2691
|
-
I.ctrlType == "grid" ? (V(),
|
|
2681
|
+
I.ctrlType == "grid" ? (V(), O(Le(a(Ne).grid), {
|
|
2692
2682
|
key: 0,
|
|
2693
2683
|
setting: I,
|
|
2694
|
-
isView:
|
|
2695
|
-
store: a(
|
|
2696
|
-
}, null, 8, ["setting", "isView", "store"])) : (V(),
|
|
2684
|
+
isView: i.isView,
|
|
2685
|
+
store: a(o)
|
|
2686
|
+
}, null, 8, ["setting", "isView", "store"])) : (V(), O(Le(a(Ne)[I.ctrlType]), {
|
|
2697
2687
|
key: 1,
|
|
2698
2688
|
setting: I,
|
|
2699
|
-
isView:
|
|
2700
|
-
store: a(
|
|
2689
|
+
isView: i.isView,
|
|
2690
|
+
store: a(o)
|
|
2701
2691
|
}, null, 8, ["setting", "isView", "store"]))
|
|
2702
2692
|
],
|
|
2703
2693
|
64
|
|
@@ -2709,7 +2699,7 @@ const bn = { ...St, ...kt }, wn = (n, e, t, l) => {
|
|
|
2709
2699
|
]),
|
|
2710
2700
|
_: 2
|
|
2711
2701
|
/* DYNAMIC */
|
|
2712
|
-
}, 1032, ["rules", "form"])) :
|
|
2702
|
+
}, 1032, ["rules", "form"])) : A("v-if", !0)
|
|
2713
2703
|
]),
|
|
2714
2704
|
_: 2
|
|
2715
2705
|
/* DYNAMIC */
|
|
@@ -2717,8 +2707,8 @@ const bn = { ...St, ...kt }, wn = (n, e, t, l) => {
|
|
|
2717
2707
|
]),
|
|
2718
2708
|
_: 2
|
|
2719
2709
|
/* DYNAMIC */
|
|
2720
|
-
}, 1032, ["collapsible", "activeKey"])) : (V(), H("div",
|
|
2721
|
-
a(c) ? (V(),
|
|
2710
|
+
}, 1032, ["collapsible", "activeKey"])) : (V(), H("div", On, [
|
|
2711
|
+
a(c) ? (V(), O(a(We), {
|
|
2722
2712
|
key: 0,
|
|
2723
2713
|
ref_for: !0,
|
|
2724
2714
|
ref: (I) => a(u)(I, T),
|
|
@@ -2727,18 +2717,18 @@ const bn = { ...St, ...kt }, wn = (n, e, t, l) => {
|
|
|
2727
2717
|
alignType: "horizontal",
|
|
2728
2718
|
"margin-right": "80px",
|
|
2729
2719
|
rules: a(d),
|
|
2730
|
-
form: a(
|
|
2720
|
+
form: a(o).data
|
|
2731
2721
|
}, {
|
|
2732
2722
|
default: F(() => [
|
|
2733
|
-
(V(),
|
|
2723
|
+
(V(), O(Le(a(Ne)[T.ctrlType]), {
|
|
2734
2724
|
setting: T,
|
|
2735
|
-
isView:
|
|
2736
|
-
store: a(
|
|
2725
|
+
isView: i.isView,
|
|
2726
|
+
store: a(o)
|
|
2737
2727
|
}, null, 8, ["setting", "isView", "store"]))
|
|
2738
2728
|
]),
|
|
2739
2729
|
_: 2
|
|
2740
2730
|
/* DYNAMIC */
|
|
2741
|
-
}, 1032, ["rules", "form"])) :
|
|
2731
|
+
}, 1032, ["rules", "form"])) : A("v-if", !0)
|
|
2742
2732
|
]))
|
|
2743
2733
|
],
|
|
2744
2734
|
64
|
|
@@ -2755,7 +2745,7 @@ const bn = { ...St, ...kt }, wn = (n, e, t, l) => {
|
|
|
2755
2745
|
])
|
|
2756
2746
|
]));
|
|
2757
2747
|
}
|
|
2758
|
-
}),
|
|
2748
|
+
}), An = /* @__PURE__ */ Te(Bn, [["__scopeId", "data-v-ce01ee82"]]), Qn = {
|
|
2759
2749
|
姓名: { "zh-CN": "姓名", en: "Name", _appCode: "framework" },
|
|
2760
2750
|
状态: { "zh-CN": "状态", en: "Status", _appCode: "framework" },
|
|
2761
2751
|
组织名称: { "zh-CN": "组织名称", en: "Organization Name", _appCode: "framework" },
|
|
@@ -2879,7 +2869,7 @@ const bn = { ...St, ...kt }, wn = (n, e, t, l) => {
|
|
|
2879
2869
|
报修位置: { "zh-CN": "报修位置", en: "Repair Location", _appCode: "framework" }
|
|
2880
2870
|
};
|
|
2881
2871
|
Kt(Qn);
|
|
2882
|
-
const gs = Nt(
|
|
2872
|
+
const gs = Nt(An);
|
|
2883
2873
|
export {
|
|
2884
2874
|
gs as DasProcessForm,
|
|
2885
2875
|
gs as default
|