@das-fed/ui 7.0.5-test.2 → 7.0.5-test.20
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/esm-map.json +3 -1
- package/package.json +5 -5
- package/packages/business-components/device-panel/index.d.ts +1 -1
- package/packages/business-components/device-panel/index.js +15074 -14995
- package/packages/business-components/device-panel/index.js.gz +0 -0
- package/packages/business-components/device-panel/src/components/devicePanelModal/index.vue.d.ts +1 -1
- package/packages/business-components/device-panel/src/index.vue.d.ts +1 -1
- package/packages/business-components/device-panel/src/render-panel.d.ts +2 -1
- 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/index.d.ts +1 -0
- package/packages/business-components/index.js +1 -0
- package/packages/business-components/layout-breadcrumb/index.js +72 -74
- package/packages/business-components/layout-breadcrumb/index.js.gz +0 -0
- package/packages/business-components/process-form/index.js +315 -312
- package/packages/business-components/process-form/index.js.gz +0 -0
- package/packages/business-components/update-confirm-dialog/i18n/index.d.ts +23 -0
- package/packages/business-components/update-confirm-dialog/index.d.ts +61 -0
- package/packages/business-components/update-confirm-dialog/index.js +105 -0
- package/packages/business-components/update-confirm-dialog/index.js.gz +0 -0
- package/packages/business-components/update-confirm-dialog/src/App.vue.d.ts +11 -0
- package/packages/business-components/update-confirm-dialog/src/type.d.ts +4 -0
- package/packages/business-components/video-dialog/index.d.ts +10 -0
- package/packages/business-components/video-dialog/index.js +293 -289
- package/packages/business-components/video-dialog/index.js.gz +0 -0
- package/packages/business-components/video-dialog/src/index.vue.d.ts +2 -0
- package/packages/business-components/video-dialog/src/type.d.ts +4 -0
- package/packages/business-components/video-dialog/style.css +1 -1
- package/packages/business-components/video-dialog/style.css.gz +0 -0
- package/packages/components/collapse-panel/index.js +64 -39
- package/packages/components/collapse-panel/index.js.gz +0 -0
- package/packages/components/collapse-panel/style.css +1 -1
- package/packages/components/collapse-panel/style.css.gz +0 -0
- package/packages/components/dialog/index.d.ts +9 -3
- package/packages/components/dialog/index.js +72 -69
- package/packages/components/dialog/index.js.gz +0 -0
- package/packages/components/dialog/src/Index.vue.d.ts +4 -1
- package/packages/components/dialog/src/type.d.ts +4 -0
- package/packages/components/dialog/style.css +1 -1
- package/packages/components/dialog/style.css.gz +0 -0
- package/packages/components/edit-table/index.js +1 -1
- package/packages/components/edit-table/index.js.gz +0 -0
- package/packages/components/scrollbar/index.d.ts +9 -3
- package/packages/components/scrollbar/index.js +323 -319
- package/packages/components/scrollbar/index.js.gz +0 -0
- package/packages/components/scrollbar/src/scrollbar.vue.d.ts +3 -1
- package/packages/components/scrollbar/style.css +1 -1
- package/packages/components/scrollbar/style.css.gz +0 -0
- package/packages/components/search-form/index.js +503 -498
- package/packages/components/search-form/index.js.gz +0 -0
- package/packages/components/search-form/src/Index.vue.d.ts +2 -0
- package/packages/components/search-form/src/type.d.ts +9 -5
- package/packages/components/search-form/style.css +1 -1
- package/packages/components/search-form/style.css.gz +0 -0
- package/packages/components/tree-select/index.js +43 -42
- package/packages/components/tree-select/index.js.gz +0 -0
- package/packages/components/tree-select/src/App.vue.d.ts +1 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '@das-fed/ui/packages/business-components/process-form/style.css';
|
|
2
2
|
import { withInstall as dt } from "@das-fed/utils/with-install/index";
|
|
3
|
-
import { ref as r, nextTick as ct, defineComponent as Q, watch as L, createBlock as P, createCommentVNode as O, openBlock as V, unref as a, withCtx as R, createVNode as
|
|
3
|
+
import { ref as r, nextTick as ct, defineComponent as Q, watch as L, createBlock as P, createCommentVNode as O, openBlock as V, unref as a, withCtx as R, createVNode as N, createElementVNode as qe, createElementBlock as J, Fragment as ee, createTextVNode as se, toDisplayString as oe, computed as gt, isRef as be, createSlots as mt, h as ue, renderList as pe, resolveDynamicComponent as me, onMounted as vt, withDirectives as ft, normalizeStyle as ht } from "vue";
|
|
4
4
|
import { DasFormRef as yt, DasForm as je } from "@das-fed/ui/packages/components/form/index";
|
|
5
5
|
import { DasButton as bt } from "@das-fed/ui/packages/components/button/index";
|
|
6
6
|
import { vOverlay as _t } from "@das-fed/ui/packages/components/overlay/index";
|
|
@@ -25,15 +25,15 @@ const ae = "v1", Lt = X(`/workflow/form/form/${ae}`), zt = X(`/workflow/form/for
|
|
|
25
25
|
X(`/workflow/api/user/${ae}`);
|
|
26
26
|
const xe = X(`/workflow/api/extend/${ae}`), Mt = X(`/workflow/flow/def/${ae}`), Tt = X(`/workflow/form/customQuery/${ae}`), le = X(`/api/enterpriseright/permission/${ae}`), Ne = X(`/api/space-manage/space-tree/${ae}`), Rt = X(`/workflow/form/dataTemplate/${ae}`), Le = X(`/api/supply/supplier/${ae}`), $t = X(`/api/warehouse/vms/${ae}/asset-receive`), Pt = Rt.get("/getBpmDataTemplateInfoByFlowKey"), Ft = Lt.get("/formDesign"), It = zt.get("/get"), jt = xe.get("/report-config");
|
|
27
27
|
xe.get("/application-report");
|
|
28
|
-
const Ot = Mt.get("/getBindRelationByDefKey"),
|
|
28
|
+
const Ot = Mt.get("/getBindRelationByDefKey"), Kt = Tt.get("/getByAlias"), qt = le.get("/organization/authTree"), Bt = le.post("/user/list"), Et = le.post("/data/user-query"), At = le.get("/role/list"), Qt = le.post("/data/role-ids"), Ut = le.get("/organization/organizationpage"), xt = le.get("/station/list"), Yt = le.get("/position/list"), _e = le.post("/organization/detailbyids"), Jt = Ne.get("/controller/area-children"), Ht = Ne.get("/controller/fuzzy-tree-all"), Wt = Ne.get("/controller/space"), Zt = Le.post("/supplier/list/page", (n) => {
|
|
29
29
|
var e, t;
|
|
30
30
|
return n.data.pageBean = {
|
|
31
31
|
page: ((e = n == null ? void 0 : n.data) == null ? void 0 : e.pageIndex) || 1,
|
|
32
32
|
pageSize: ((t = n == null ? void 0 : n.data) == null ? void 0 : t.pageSize) || 20
|
|
33
33
|
}, n;
|
|
34
34
|
}), Gt = Le.get("/supplier"), Xt = Le.post("/classification/list/all"), ea = $t.get("/receive-code"), we = r(""), ta = (n, e, t) => {
|
|
35
|
-
const { setDetailData: l, getFormData: d, setFormData: i, formRule:
|
|
36
|
-
const [B, q] = await Ft({ formId:
|
|
35
|
+
const { setDetailData: l, getFormData: d, setFormData: i, formRule: y, showData: w, disabledData: s, encryptionData: o } = t, u = r([]), g = r([]), v = r([]), c = r(!1), _ = yt(), m = r([]), b = (S) => Object.keys(S).length === 0, p = async (S) => {
|
|
36
|
+
const [B, q] = await Ft({ formId: S }).run();
|
|
37
37
|
if (B) return;
|
|
38
38
|
const H = JSON.parse(q.bos);
|
|
39
39
|
we.value = H[0].alias, g.value.length && g.value.forEach((G) => {
|
|
@@ -43,40 +43,40 @@ const Ot = Mt.get("/getBindRelationByDefKey"), qt = Tt.get("/getByAlias"), Kt =
|
|
|
43
43
|
await D(), v.value = JSON.parse(te.value.expand).list, v.value.forEach((G) => {
|
|
44
44
|
G.columns && G.columns[0].isOpen && m.value.push(G.key);
|
|
45
45
|
}), s.value = { ...s.value, ...n.disabledData }, g.value.length || i(q.formKey, we.value), setTimeout(() => {
|
|
46
|
-
w.value = { ...w.value, ...n.showData },
|
|
46
|
+
w.value = { ...w.value, ...n.showData }, b(n.data) && (c.value = !0), b(n.data) || (l(n.data), n.flowKey && (u.value = n.data.button_list ? JSON.parse(n.data.button_list) : []), c.value = !0);
|
|
47
47
|
}, 50);
|
|
48
|
-
},
|
|
48
|
+
}, h = async () => {
|
|
49
49
|
if (n.formConfigurationId) {
|
|
50
|
-
const [
|
|
51
|
-
if (
|
|
50
|
+
const [S, B] = await jt({ id: n.formConfigurationId }).run();
|
|
51
|
+
if (S) return;
|
|
52
52
|
g.value = B.reports, u.value = B.reports[0].buttons.filter((q) => !(n.isView && q.event !== "LINK")), p(B.reports[0].formId);
|
|
53
53
|
}
|
|
54
54
|
if (n.flowKey) {
|
|
55
|
-
const [
|
|
56
|
-
if (
|
|
55
|
+
const [S, B] = await Ot({ flowKey: n.flowKey }).run();
|
|
56
|
+
if (S) return;
|
|
57
57
|
p(B.pcForm.pcFormId);
|
|
58
58
|
}
|
|
59
59
|
}, D = async () => {
|
|
60
60
|
var q, H, ne, te;
|
|
61
61
|
if (!n.flowKey) return;
|
|
62
|
-
const [
|
|
62
|
+
const [S, B] = await Pt().run({
|
|
63
63
|
flowKey: n.flowKey,
|
|
64
64
|
needDisplayFileds: !1
|
|
65
65
|
});
|
|
66
66
|
o.value = ((te = (ne = (H = (q = B == null ? void 0 : B.value) == null ? void 0 : q.boDef) == null ? void 0 : H.boEnt) == null ? void 0 : ne.attributeList) == null ? void 0 : te.filter((G) => G.encryption == "phone")) || [];
|
|
67
|
-
},
|
|
67
|
+
}, f = r({}), z = (S, B) => {
|
|
68
68
|
const { key: q } = B;
|
|
69
|
-
|
|
70
|
-
}, K = async () => (v.value.forEach((
|
|
71
|
-
|
|
72
|
-
}), await ct(), new Promise((
|
|
69
|
+
f.value[q] || (f.value[q] = S);
|
|
70
|
+
}, K = async () => (v.value.forEach((S) => {
|
|
71
|
+
S.columns && m.value.push(S.key);
|
|
72
|
+
}), await ct(), new Promise((S, B) => {
|
|
73
73
|
let q = !0;
|
|
74
|
-
for (const H in
|
|
75
|
-
|
|
74
|
+
for (const H in f.value)
|
|
75
|
+
f.value[H].validate((ne) => {
|
|
76
76
|
ne == !1 && (q = !1);
|
|
77
77
|
});
|
|
78
78
|
setTimeout(() => {
|
|
79
|
-
|
|
79
|
+
S({
|
|
80
80
|
result: q,
|
|
81
81
|
data: d()
|
|
82
82
|
});
|
|
@@ -89,11 +89,11 @@ const Ot = Mt.get("/getBindRelationByDefKey"), qt = Tt.get("/getByAlias"), Kt =
|
|
|
89
89
|
formRef: _,
|
|
90
90
|
activityKeys: m,
|
|
91
91
|
getForm: p,
|
|
92
|
-
getBtnSet:
|
|
93
|
-
handleClick: async (
|
|
92
|
+
getBtnSet: h,
|
|
93
|
+
handleClick: async (S) => {
|
|
94
94
|
let { result: B } = await K();
|
|
95
|
-
B && (e("handleClick",
|
|
96
|
-
|
|
95
|
+
B && (e("handleClick", S, d()), S.event === "LINK" && g.value.forEach((q) => {
|
|
96
|
+
S.eventTarget === q.formKey && (u.value = q.buttons.filter((H) => !(n.isView && H.event !== "LINK")), c.value = !1, y.value = {}, p(q.formId));
|
|
97
97
|
}));
|
|
98
98
|
},
|
|
99
99
|
validateFormData: K,
|
|
@@ -112,14 +112,14 @@ const W = (n) => {
|
|
|
112
112
|
var e = new RegExp("<.+?>", "g"), t = n.replace(e, "").replace(/ /g, "");
|
|
113
113
|
return t;
|
|
114
114
|
}, ie = async (n, e, t = {}) => {
|
|
115
|
-
const [l, d] = await
|
|
115
|
+
const [l, d] = await Kt({ alias: n }).run();
|
|
116
116
|
if (!l && d.url) {
|
|
117
117
|
typeof e == "string" && (e = JSON.parse(e));
|
|
118
118
|
const i = r({});
|
|
119
119
|
e.forEach((o) => {
|
|
120
120
|
o.defaultType == 2 && (i.value[o.field] = o.defaultValue);
|
|
121
121
|
}), i.value = { ...i.value, ...t };
|
|
122
|
-
const
|
|
122
|
+
const y = d.requestType === "POST" ? X(d.url).post("") : X(d.url).get(""), [w, s] = await y({}, { params: i.value }).run();
|
|
123
123
|
return w ? void 0 : s;
|
|
124
124
|
}
|
|
125
125
|
}, Z = async (n) => {
|
|
@@ -155,11 +155,11 @@ const W = (n) => {
|
|
|
155
155
|
store: {}
|
|
156
156
|
},
|
|
157
157
|
setup(n) {
|
|
158
|
-
const e = n, { showData: t, disabledData: l, setData: d, getData: i, setFormRule:
|
|
158
|
+
const e = n, { showData: t, disabledData: l, setData: d, getData: i, setFormRule: y, deleteRule: w } = e.store || {}, s = r([]), o = r(!0);
|
|
159
159
|
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), L(
|
|
160
160
|
() => t.value,
|
|
161
161
|
() => {
|
|
162
|
-
o.value = t.value[e.setting.name], o.value || (s.value = [], w(e.setting.name)), o.value && e.setting.options.validateList.length &&
|
|
162
|
+
o.value = t.value[e.setting.name], o.value || (s.value = [], w(e.setting.name)), o.value && e.setting.options.validateList.length && y(e.setting.name, e.setting.options.validateList);
|
|
163
163
|
},
|
|
164
164
|
{ deep: !0, immediate: !0 }
|
|
165
165
|
);
|
|
@@ -174,7 +174,7 @@ const W = (n) => {
|
|
|
174
174
|
helpMessage: u.value
|
|
175
175
|
}, {
|
|
176
176
|
default: R(() => [
|
|
177
|
-
|
|
177
|
+
N(a(wt), {
|
|
178
178
|
style: { width: "100%" },
|
|
179
179
|
modelValue: s.value,
|
|
180
180
|
"onUpdate:modelValue": v[0] || (v[0] = (c) => s.value = c)
|
|
@@ -205,47 +205,47 @@ const W = (n) => {
|
|
|
205
205
|
store: {}
|
|
206
206
|
},
|
|
207
207
|
setup(n) {
|
|
208
|
-
const e = n, { showData: t, disabledData: l, setData: d, getData: i, setFormRule:
|
|
208
|
+
const e = n, { showData: t, disabledData: l, setData: d, getData: i, setFormRule: y, deleteRule: w } = e.store || {}, s = r(""), o = r(!0);
|
|
209
209
|
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), L(
|
|
210
210
|
() => t.value,
|
|
211
211
|
() => {
|
|
212
|
-
o.value = t.value[e.setting.name], o.value || (s.value = "", w(e.setting.name)), o.value && e.setting.options.validateList.length &&
|
|
212
|
+
o.value = t.value[e.setting.name], o.value || (s.value = "", w(e.setting.name)), o.value && e.setting.options.validateList.length && y(e.setting.name, e.setting.options.validateList);
|
|
213
213
|
},
|
|
214
214
|
{ deep: !0, immediate: !0 }
|
|
215
215
|
);
|
|
216
216
|
const u = l.value[e.setting.name] || !1, g = r(!1);
|
|
217
|
-
Z(e.setting.options.validateList).then((
|
|
218
|
-
g.value =
|
|
217
|
+
Z(e.setting.options.validateList).then((h) => {
|
|
218
|
+
g.value = h;
|
|
219
219
|
});
|
|
220
|
-
const v = e.setting.options.customQuery.valueBind ? e.setting.options.customQuery.valueBind : "value", c = e.setting.options.children ? e.setting.options.children : "children", _ = !!e.setting.options.fillInFullPath, m = r("id"),
|
|
221
|
-
e.setting.options.customQuery.alias ? ie(e.setting.options.customQuery.alias, e.setting.options.customQuery.conditionfield).then((
|
|
222
|
-
|
|
223
|
-
}) :
|
|
220
|
+
const v = e.setting.options.customQuery.valueBind ? e.setting.options.customQuery.valueBind : "value", c = e.setting.options.children ? e.setting.options.children : "children", _ = !!e.setting.options.fillInFullPath, m = r("id"), b = r([]);
|
|
221
|
+
e.setting.options.customQuery.alias ? ie(e.setting.options.customQuery.alias, e.setting.options.customQuery.conditionfield).then((h) => {
|
|
222
|
+
b.value = he(h);
|
|
223
|
+
}) : b.value = he(e.setting.options.options);
|
|
224
224
|
const p = r();
|
|
225
|
-
return e.setting.options.tip && (p.value = W(e.setting.options.tip)), s.value = i(e.setting.name) || s.value, s.value || d(e.setting.name, null), e.setting.options.validateList.length &&
|
|
226
|
-
d(e.setting.name,
|
|
227
|
-
}), (
|
|
225
|
+
return e.setting.options.tip && (p.value = W(e.setting.options.tip)), s.value = i(e.setting.name) || s.value, s.value || d(e.setting.name, null), e.setting.options.validateList.length && y(e.setting.name, e.setting.options.validateList), L(s, (h) => {
|
|
226
|
+
d(e.setting.name, h.toString());
|
|
227
|
+
}), (h, D) => o.value ? (V(), P(a(U), {
|
|
228
228
|
key: 0,
|
|
229
229
|
col: e.span,
|
|
230
230
|
prop: e.setting.name,
|
|
231
231
|
modelValue: s.value,
|
|
232
|
-
"onUpdate:modelValue": D[1] || (D[1] = (
|
|
233
|
-
label:
|
|
232
|
+
"onUpdate:modelValue": D[1] || (D[1] = (f) => s.value = f),
|
|
233
|
+
label: h.setting.desc,
|
|
234
234
|
type: "custom",
|
|
235
235
|
helpMessage: p.value,
|
|
236
236
|
required: g.value,
|
|
237
237
|
disabled: a(u)
|
|
238
238
|
}, {
|
|
239
239
|
default: R(() => [
|
|
240
|
-
|
|
240
|
+
N(a(Ct), {
|
|
241
241
|
modelValue: s.value,
|
|
242
|
-
"onUpdate:modelValue": D[0] || (D[0] = (
|
|
243
|
-
options:
|
|
242
|
+
"onUpdate:modelValue": D[0] || (D[0] = (f) => s.value = f),
|
|
243
|
+
options: b.value,
|
|
244
244
|
isView: e.isView,
|
|
245
245
|
width: "100%",
|
|
246
246
|
fieldNames: { label: a(v), children: a(c) },
|
|
247
247
|
showFullPath: a(_),
|
|
248
|
-
placeholder:
|
|
248
|
+
placeholder: h.setting.options.placeholder,
|
|
249
249
|
clearable: "",
|
|
250
250
|
nodeKey: m.value
|
|
251
251
|
}, null, 8, ["modelValue", "options", "isView", "fieldNames", "showFullPath", "placeholder", "nodeKey"])
|
|
@@ -275,34 +275,34 @@ const W = (n) => {
|
|
|
275
275
|
store: {}
|
|
276
276
|
},
|
|
277
277
|
setup(n) {
|
|
278
|
-
const e = n, { showData: t, disabledData: l, setData: d, getData: i, setFormRule:
|
|
278
|
+
const e = n, { showData: t, disabledData: l, setData: d, getData: i, setFormRule: y, deleteRule: w } = e.store || {}, s = r([]), o = r(!0);
|
|
279
279
|
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), L(
|
|
280
280
|
() => t.value,
|
|
281
281
|
() => {
|
|
282
|
-
o.value = t.value[e.setting.name], o.value || (s.value = [], w(e.setting.name)), o.value && e.setting.options.validateList.length &&
|
|
282
|
+
o.value = t.value[e.setting.name], o.value || (s.value = [], w(e.setting.name)), o.value && e.setting.options.validateList.length && y(e.setting.name, e.setting.options.validateList);
|
|
283
283
|
},
|
|
284
284
|
{ deep: !0, immediate: !0 }
|
|
285
285
|
);
|
|
286
286
|
const u = l.value[e.setting.name] || !1, g = r(!1);
|
|
287
|
-
Z(e.setting.options.validateList).then((
|
|
288
|
-
g.value =
|
|
287
|
+
Z(e.setting.options.validateList).then((b) => {
|
|
288
|
+
g.value = b;
|
|
289
289
|
});
|
|
290
290
|
const v = e.setting.options.customQuery.valueBind ? e.setting.options.customQuery.valueBind : "key", c = e.setting.options.customQuery.labelBind ? e.setting.options.customQuery.labelBind : "value", _ = r([]);
|
|
291
|
-
e.setting.options.customQuery.alias ? ie(e.setting.options.customQuery.alias, e.setting.options.customQuery.conditionfield).then((
|
|
292
|
-
_.value =
|
|
291
|
+
e.setting.options.customQuery.alias ? ie(e.setting.options.customQuery.alias, e.setting.options.customQuery.conditionfield).then((b) => {
|
|
292
|
+
_.value = b;
|
|
293
293
|
}) : _.value = e.setting.options.options;
|
|
294
294
|
const m = r();
|
|
295
295
|
return e.setting.options.tip && (m.value = W(e.setting.options.tip)()), setTimeout(() => {
|
|
296
296
|
i(e.setting.name) && (s.value = i(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);
|
|
297
|
-
}, 50), e.setting.options.validateList.length &&
|
|
298
|
-
d(e.setting.name,
|
|
299
|
-
}), (
|
|
297
|
+
}, 50), e.setting.options.validateList.length && y(e.setting.name, e.setting.options.validateList), L(s, (b) => {
|
|
298
|
+
d(e.setting.name, b.toString());
|
|
299
|
+
}), (b, p) => o.value ? (V(), P(a(U), {
|
|
300
300
|
key: 0,
|
|
301
301
|
col: e.span,
|
|
302
302
|
modelValue: s.value,
|
|
303
|
-
"onUpdate:modelValue": p[0] || (p[0] = (
|
|
304
|
-
layout:
|
|
305
|
-
label:
|
|
303
|
+
"onUpdate:modelValue": p[0] || (p[0] = (h) => s.value = h),
|
|
304
|
+
layout: b.setting.options.inline ? "vertical" : "default",
|
|
305
|
+
label: b.setting.desc,
|
|
306
306
|
prop: e.setting.name,
|
|
307
307
|
type: "checkbox",
|
|
308
308
|
options: _.value,
|
|
@@ -335,11 +335,11 @@ const W = (n) => {
|
|
|
335
335
|
store: {}
|
|
336
336
|
},
|
|
337
337
|
setup(n) {
|
|
338
|
-
const e = n, { showData: t, disabledData: l, setData: d, getData: i, setFormRule:
|
|
338
|
+
const e = n, { showData: t, disabledData: l, setData: d, getData: i, setFormRule: y, deleteRule: w } = e.store || {}, s = r(), o = r(!0);
|
|
339
339
|
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), L(
|
|
340
340
|
() => t.value,
|
|
341
341
|
() => {
|
|
342
|
-
o.value = t.value[e.setting.name], o.value || (s.value = null, w(e.setting.name)), o.value && e.setting.options.validateList.length &&
|
|
342
|
+
o.value = t.value[e.setting.name], o.value || (s.value = null, w(e.setting.name)), o.value && e.setting.options.validateList.length && y(e.setting.name, e.setting.options.validateList);
|
|
343
343
|
},
|
|
344
344
|
{ deep: !0, immediate: !0 }
|
|
345
345
|
);
|
|
@@ -356,13 +356,13 @@ const W = (n) => {
|
|
|
356
356
|
let m = /* @__PURE__ */ new Date();
|
|
357
357
|
m.setDate(m.getDate() + e.setting.options.day), s.value = fe(m.getTime()).format(v), d(e.setting.name, s.value);
|
|
358
358
|
}
|
|
359
|
-
return e.setting.options.validateList.length &&
|
|
359
|
+
return e.setting.options.validateList.length && y(e.setting.name, e.setting.options.validateList), L(s, (m) => {
|
|
360
360
|
d(e.setting.name, m);
|
|
361
|
-
}), (m,
|
|
361
|
+
}), (m, b) => o.value ? (V(), P(a(U), {
|
|
362
362
|
key: 0,
|
|
363
363
|
col: e.span,
|
|
364
364
|
modelValue: s.value,
|
|
365
|
-
"onUpdate:modelValue":
|
|
365
|
+
"onUpdate:modelValue": b[0] || (b[0] = (p) => s.value = p),
|
|
366
366
|
label: m.setting.desc,
|
|
367
367
|
prop: e.setting.name,
|
|
368
368
|
type: a(v).indexOf("HH") != -1 ? "dateTime" : "date",
|
|
@@ -397,48 +397,48 @@ const W = (n) => {
|
|
|
397
397
|
store: {}
|
|
398
398
|
},
|
|
399
399
|
setup(n) {
|
|
400
|
-
const e = n, { showData: t, disabledData: l, setData: d, getData: i, setFormRule:
|
|
400
|
+
const e = n, { showData: t, disabledData: l, setData: d, getData: i, setFormRule: y, deleteRule: w, setLinkData: s } = e.store || {}, o = r(""), u = r(!0);
|
|
401
401
|
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), L(
|
|
402
402
|
() => t.value,
|
|
403
403
|
() => {
|
|
404
|
-
u.value = t.value[e.setting.name], u.value || (o.value = e.setting.options.multiple ? [] : "", w(e.setting.name)), u.value && e.setting.options.validateList.length &&
|
|
404
|
+
u.value = t.value[e.setting.name], u.value || (o.value = e.setting.options.multiple ? [] : "", w(e.setting.name)), u.value && e.setting.options.validateList.length && y(e.setting.name, e.setting.options.validateList);
|
|
405
405
|
},
|
|
406
406
|
{ deep: !0, immediate: !0 }
|
|
407
407
|
);
|
|
408
408
|
const g = () => {
|
|
409
409
|
e.setting.options.customQuery && e.setting.options.customQuery.custQueryJson.length && s(e.setting.options.customQuery.custQueryJson, o.value);
|
|
410
410
|
}, v = l.value[e.setting.name] || !1, c = r(!1);
|
|
411
|
-
Z(e.setting.options.validateList).then((
|
|
412
|
-
c.value =
|
|
411
|
+
Z(e.setting.options.validateList).then((f) => {
|
|
412
|
+
c.value = f;
|
|
413
413
|
});
|
|
414
|
-
const _ = r(""), m = e.setting.options.customQuery.valueBind ? e.setting.options.customQuery.valueBind : "key",
|
|
415
|
-
e.setting.options.customQuery.alias && ie(e.setting.options.customQuery.alias, e.setting.options.customQuery.conditionfield).then((
|
|
416
|
-
|
|
414
|
+
const _ = r(""), m = e.setting.options.customQuery.valueBind ? e.setting.options.customQuery.valueBind : "key", b = e.setting.options.customQuery.labelBind ? e.setting.options.customQuery.labelBind : "value", p = e.setting.options.customQuery.PId || "children", h = r([]);
|
|
415
|
+
e.setting.options.customQuery.alias && ie(e.setting.options.customQuery.alias, e.setting.options.customQuery.conditionfield).then((f) => {
|
|
416
|
+
h.value = f;
|
|
417
417
|
});
|
|
418
418
|
const D = r();
|
|
419
|
-
return e.setting.options.tip && (D.value = W(e.setting.options.tip)), o.value = e.setting.options.multiple ? [] : "", e.setting.options.multiple && i(e.setting.name) ? o.value = i(e.setting.name).split(",") : o.value = i(e.setting.name) || o.value, o.value || d(e.setting.name, null), e.setting.options.validateList.length &&
|
|
420
|
-
d(e.setting.name,
|
|
421
|
-
}), (
|
|
419
|
+
return e.setting.options.tip && (D.value = W(e.setting.options.tip)), o.value = e.setting.options.multiple ? [] : "", e.setting.options.multiple && i(e.setting.name) ? o.value = i(e.setting.name).split(",") : o.value = i(e.setting.name) || o.value, o.value || d(e.setting.name, null), e.setting.options.validateList.length && y(e.setting.name, e.setting.options.validateList), L(o, (f) => {
|
|
420
|
+
d(e.setting.name, f.toString());
|
|
421
|
+
}), (f, z) => u.value ? (V(), P(a(U), {
|
|
422
422
|
key: 0,
|
|
423
423
|
col: e.span,
|
|
424
424
|
modelValue: o.value,
|
|
425
425
|
"onUpdate:modelValue": z[0] || (z[0] = (K) => o.value = K),
|
|
426
426
|
keyword: _.value,
|
|
427
427
|
"onUpdate:keyword": z[1] || (z[1] = (K) => _.value = K),
|
|
428
|
-
label:
|
|
428
|
+
label: f.setting.desc,
|
|
429
429
|
type: "treeSelect",
|
|
430
|
-
"node-key":
|
|
431
|
-
placeholder:
|
|
432
|
-
mode:
|
|
430
|
+
"node-key": f.setting.options.customQuery.valueBind,
|
|
431
|
+
placeholder: f.setting.options.placeholder,
|
|
432
|
+
mode: f.setting.options.multiple ? "multiple" : "",
|
|
433
433
|
prop: e.setting.name,
|
|
434
|
-
filter:
|
|
434
|
+
filter: f.setting.options.filterable,
|
|
435
435
|
selectAttrs: { allowClear: !0 },
|
|
436
|
-
options:
|
|
436
|
+
options: h.value,
|
|
437
437
|
isView: e.isView,
|
|
438
438
|
helpMessage: D.value,
|
|
439
439
|
disabled: a(v),
|
|
440
|
-
props: { label: a(
|
|
441
|
-
"check-strictly": !
|
|
440
|
+
props: { label: a(b), value: a(m), children: a(p) },
|
|
441
|
+
"check-strictly": !f.setting.options.cascade,
|
|
442
442
|
required: c.value,
|
|
443
443
|
onChange: g
|
|
444
444
|
}, null, 8, ["col", "modelValue", "keyword", "label", "node-key", "placeholder", "mode", "prop", "filter", "options", "isView", "helpMessage", "disabled", "props", "check-strictly", "required"])) : O("v-if", !0);
|
|
@@ -464,11 +464,11 @@ const W = (n) => {
|
|
|
464
464
|
store: {}
|
|
465
465
|
},
|
|
466
466
|
setup(n) {
|
|
467
|
-
const e = n, { showData: t, disabledData: l, setData: d, getData: i, setFormRule:
|
|
467
|
+
const e = n, { showData: t, disabledData: l, setData: d, getData: i, setFormRule: y, deleteRule: w } = e.store || {}, s = r(), o = r(!0);
|
|
468
468
|
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), L(
|
|
469
469
|
() => t.value,
|
|
470
470
|
() => {
|
|
471
|
-
o.value = t.value[e.setting.name], o.value || (s.value = e.setting.options.file.limit > 1 ? [] : "", w(e.setting.name)), o.value && e.setting.options.validateList.length &&
|
|
471
|
+
o.value = t.value[e.setting.name], o.value || (s.value = e.setting.options.file.limit > 1 ? [] : "", w(e.setting.name)), o.value && e.setting.options.validateList.length && y(e.setting.name, e.setting.options.validateList);
|
|
472
472
|
},
|
|
473
473
|
{ deep: !0, immediate: !0 }
|
|
474
474
|
);
|
|
@@ -485,18 +485,18 @@ const W = (n) => {
|
|
|
485
485
|
d(e.setting.name, s.value.toString());
|
|
486
486
|
}, 100);
|
|
487
487
|
};
|
|
488
|
-
return e.setting.options.validateList.length &&
|
|
489
|
-
const
|
|
490
|
-
let
|
|
491
|
-
return p.indexOf("/oss/") != -1 ?
|
|
488
|
+
return e.setting.options.validateList.length && y(e.setting.name, e.setting.options.validateList), L(s.value, (m) => {
|
|
489
|
+
const b = m.map((p) => {
|
|
490
|
+
let h = "";
|
|
491
|
+
return p.indexOf("/oss/") != -1 ? h = p : h = `/oss/${p}`, h;
|
|
492
492
|
});
|
|
493
493
|
setTimeout(() => {
|
|
494
|
-
d(e.setting.name,
|
|
494
|
+
d(e.setting.name, b.join(","));
|
|
495
495
|
}, 100);
|
|
496
|
-
}), (m,
|
|
496
|
+
}), (m, b) => o.value ? (V(), P(a(U), {
|
|
497
497
|
key: 0,
|
|
498
498
|
modelValue: s.value,
|
|
499
|
-
"onUpdate:modelValue":
|
|
499
|
+
"onUpdate:modelValue": b[2] || (b[2] = (p) => s.value = p),
|
|
500
500
|
"margin-bottom": "0",
|
|
501
501
|
prop: e.setting.name,
|
|
502
502
|
label: m.setting.desc,
|
|
@@ -506,12 +506,12 @@ const W = (n) => {
|
|
|
506
506
|
col: e.span
|
|
507
507
|
}, {
|
|
508
508
|
default: R(() => [
|
|
509
|
-
|
|
510
|
-
|
|
509
|
+
qe("div", ga, [
|
|
510
|
+
N(a(Be), {
|
|
511
511
|
modelValue: s.value,
|
|
512
|
-
"onUpdate:modelValue":
|
|
512
|
+
"onUpdate:modelValue": b[0] || (b[0] = (p) => s.value = p),
|
|
513
513
|
status: v.value,
|
|
514
|
-
"onUpdate:status":
|
|
514
|
+
"onUpdate:status": b[1] || (b[1] = (p) => v.value = p),
|
|
515
515
|
maxSize: "6",
|
|
516
516
|
"limit-num": m.setting.options.file.limit,
|
|
517
517
|
prop: e.setting.name,
|
|
@@ -580,9 +580,9 @@ const W = (n) => {
|
|
|
580
580
|
__proto__: null,
|
|
581
581
|
default: ha
|
|
582
582
|
}, Symbol.toStringTag, { value: "Module" })), ve = {}, ba = /^\.\/(.+)\/index\.ts$/, Oe = /* @__PURE__ */ Object.assign({ "./phone/index.ts": ya });
|
|
583
|
-
var
|
|
583
|
+
var Ke;
|
|
584
584
|
for (const n in Oe) {
|
|
585
|
-
const e = Oe[n], t = (
|
|
585
|
+
const e = Oe[n], t = (Ke = n.match(ba)) == null ? void 0 : Ke[1];
|
|
586
586
|
ve[t] = e.default;
|
|
587
587
|
}
|
|
588
588
|
const _a = (n, e) => {
|
|
@@ -606,7 +606,7 @@ const _a = (n, e) => {
|
|
|
606
606
|
store: {}
|
|
607
607
|
},
|
|
608
608
|
setup(n) {
|
|
609
|
-
const e = n, { data: t, showData: l, disabledData: d, setData: i, getData:
|
|
609
|
+
const e = n, { data: t, showData: l, disabledData: d, setData: i, getData: y, setFormRule: w, deleteRule: s, encryptionData: o } = e.store || {}, u = r(""), g = r(!1);
|
|
610
610
|
o.value.length && o.value.forEach((p) => {
|
|
611
611
|
p.name === e.setting.name && (g.value = !0);
|
|
612
612
|
});
|
|
@@ -628,12 +628,12 @@ const _a = (n, e) => {
|
|
|
628
628
|
Z(e.setting.options.validateList).then((p) => {
|
|
629
629
|
m.value = p;
|
|
630
630
|
});
|
|
631
|
-
const
|
|
632
|
-
return e.setting.options.tip && (
|
|
633
|
-
v.value =
|
|
631
|
+
const b = r();
|
|
632
|
+
return e.setting.options.tip && (b.value = W(e.setting.options.tip)), setTimeout(() => {
|
|
633
|
+
v.value = y(e.setting.name) || e.setting.options.formulasDiyJs || v.value, g && e.isView && (u.value = _a("phone", v.value)), v.value || i(e.setting.name, null);
|
|
634
634
|
}, 50), e.setting.options.validateList.length && w(e.setting.name, e.setting.options.validateList), L(v, (p) => {
|
|
635
635
|
e.setting.options.dataType === "number" && !isNaN(p) ? i(e.setting.name, Number(p)) : i(e.setting.name, p);
|
|
636
|
-
}), (p,
|
|
636
|
+
}), (p, h) => (V(), J(
|
|
637
637
|
ee,
|
|
638
638
|
null,
|
|
639
639
|
[
|
|
@@ -642,22 +642,22 @@ const _a = (n, e) => {
|
|
|
642
642
|
col: e.span,
|
|
643
643
|
prop: e.setting.name,
|
|
644
644
|
modelValue: v.value,
|
|
645
|
-
"onUpdate:modelValue":
|
|
645
|
+
"onUpdate:modelValue": h[1] || (h[1] = (D) => v.value = D),
|
|
646
646
|
label: p.setting.desc,
|
|
647
647
|
type: "custom",
|
|
648
|
-
helpMessage:
|
|
648
|
+
helpMessage: b.value,
|
|
649
649
|
required: m.value
|
|
650
650
|
}, {
|
|
651
651
|
default: R(() => [
|
|
652
|
-
|
|
652
|
+
N(a(Se), {
|
|
653
653
|
placement: "top",
|
|
654
654
|
disabled: !v.value,
|
|
655
655
|
content: v.value
|
|
656
656
|
}, {
|
|
657
657
|
default: R(() => [
|
|
658
|
-
|
|
658
|
+
N(a(Dt), {
|
|
659
659
|
modelValue: u.value,
|
|
660
|
-
"onUpdate:modelValue":
|
|
660
|
+
"onUpdate:modelValue": h[0] || (h[0] = (D) => u.value = D),
|
|
661
661
|
width: p.setting.options.width,
|
|
662
662
|
disabled: p.setting.options.isInputEdit || a(_),
|
|
663
663
|
isView: p.setting.options.isReadonly || e.isView,
|
|
@@ -692,14 +692,14 @@ const _a = (n, e) => {
|
|
|
692
692
|
key: 1,
|
|
693
693
|
col: e.span,
|
|
694
694
|
modelValue: v.value,
|
|
695
|
-
"onUpdate:modelValue":
|
|
695
|
+
"onUpdate:modelValue": h[2] || (h[2] = (D) => v.value = D),
|
|
696
696
|
width: p.setting.options.width,
|
|
697
697
|
disabled: p.setting.options.isInputEdit || a(_),
|
|
698
698
|
isView: p.setting.options.isReadonly || e.isView,
|
|
699
699
|
prop: e.setting.name,
|
|
700
700
|
label: p.setting.desc,
|
|
701
701
|
type: "input",
|
|
702
|
-
helpMessage:
|
|
702
|
+
helpMessage: b.value,
|
|
703
703
|
required: m.value,
|
|
704
704
|
placeholder: p.setting.options.placeholder
|
|
705
705
|
}, {
|
|
@@ -740,11 +740,11 @@ const _a = (n, e) => {
|
|
|
740
740
|
store: {}
|
|
741
741
|
},
|
|
742
742
|
setup(n) {
|
|
743
|
-
const e = n, { showData: t, disabledData: l, setData: d, getData: i, setFormRule:
|
|
743
|
+
const e = n, { showData: t, disabledData: l, setData: d, getData: i, setFormRule: y, deleteRule: w } = e.store || {}, s = r(0), o = r(!0);
|
|
744
744
|
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), L(
|
|
745
745
|
() => t.value,
|
|
746
746
|
() => {
|
|
747
|
-
o.value = t.value[e.setting.name], o.value || (s.value = 0, w(e.setting.name)), o.value && e.setting.options.validateList.length &&
|
|
747
|
+
o.value = t.value[e.setting.name], o.value || (s.value = 0, w(e.setting.name)), o.value && e.setting.options.validateList.length && y(e.setting.name, e.setting.options.validateList);
|
|
748
748
|
},
|
|
749
749
|
{ deep: !0, immediate: !0 }
|
|
750
750
|
);
|
|
@@ -755,7 +755,7 @@ const _a = (n, e) => {
|
|
|
755
755
|
const v = r();
|
|
756
756
|
return e.setting.options.tip && (v.value = W(e.setting.options.tip)), setTimeout(() => {
|
|
757
757
|
s.value = i(e.setting.name) || e.setting.options.formulasDiyJs || s.value, s.value || d(e.setting.name, null);
|
|
758
|
-
}, 50), e.setting.options.validateList.length &&
|
|
758
|
+
}, 50), e.setting.options.validateList.length && y(e.setting.name, e.setting.options.validateList), L(s, (c) => {
|
|
759
759
|
d(e.setting.name, c);
|
|
760
760
|
}), (c, _) => o.value ? (V(), P(a(U), {
|
|
761
761
|
key: 0,
|
|
@@ -799,11 +799,11 @@ const _a = (n, e) => {
|
|
|
799
799
|
store: {}
|
|
800
800
|
},
|
|
801
801
|
setup(n) {
|
|
802
|
-
const e = n, { showData: t, disabledData: l, setData: d, getData: i, setFormRule:
|
|
802
|
+
const e = n, { showData: t, disabledData: l, setData: d, getData: i, setFormRule: y, deleteRule: w } = e.store || {}, s = r(null), o = r(!0);
|
|
803
803
|
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), L(
|
|
804
804
|
() => t.value,
|
|
805
805
|
() => {
|
|
806
|
-
o.value = t.value[e.setting.name], o.value || (s.value = null, w(e.setting.name)), o.value && e.setting.options.validateList.length &&
|
|
806
|
+
o.value = t.value[e.setting.name], o.value || (s.value = null, w(e.setting.name)), o.value && e.setting.options.validateList.length && y(e.setting.name, e.setting.options.validateList);
|
|
807
807
|
},
|
|
808
808
|
{ deep: !0, immediate: !0 }
|
|
809
809
|
);
|
|
@@ -818,23 +818,23 @@ const _a = (n, e) => {
|
|
|
818
818
|
const m = r();
|
|
819
819
|
e.setting.options.tip && (m.value = W(e.setting.options.tip)), setTimeout(() => {
|
|
820
820
|
s.value = i(e.setting.name) || e.setting.options.formulasDiyJs || s.value, s.value || d(e.setting.name, null);
|
|
821
|
-
}, 50), e.setting.options.validateList.length &&
|
|
821
|
+
}, 50), e.setting.options.validateList.length && y(e.setting.name, e.setting.options.validateList), L(s, (p) => {
|
|
822
822
|
d(e.setting.name, p);
|
|
823
823
|
});
|
|
824
|
-
const
|
|
825
|
-
e.setting.options.linkage.length && e.setting.options.linkage.forEach((
|
|
826
|
-
if (
|
|
827
|
-
const
|
|
828
|
-
t.value[
|
|
824
|
+
const b = (p) => {
|
|
825
|
+
e.setting.options.linkage.length && e.setting.options.linkage.forEach((h) => {
|
|
826
|
+
if (h.value === p) {
|
|
827
|
+
const f = h.effect[0].target.split(".")[2];
|
|
828
|
+
t.value[f] = h.effect[0].type === "w";
|
|
829
829
|
}
|
|
830
830
|
});
|
|
831
831
|
};
|
|
832
|
-
return (p,
|
|
832
|
+
return (p, h) => o.value ? (V(), P(a(U), {
|
|
833
833
|
key: 0,
|
|
834
|
-
onChange:
|
|
834
|
+
onChange: b,
|
|
835
835
|
col: e.span,
|
|
836
836
|
modelValue: s.value,
|
|
837
|
-
"onUpdate:modelValue":
|
|
837
|
+
"onUpdate:modelValue": h[0] || (h[0] = (D) => s.value = D),
|
|
838
838
|
layout: p.setting.options.inline ? "vertical" : "default",
|
|
839
839
|
label: p.setting.desc,
|
|
840
840
|
type: "radio",
|
|
@@ -870,8 +870,8 @@ const _a = (n, e) => {
|
|
|
870
870
|
store: {}
|
|
871
871
|
},
|
|
872
872
|
setup(n) {
|
|
873
|
-
var
|
|
874
|
-
const e = n, { showData: t, disabledData: l, linkData: d, setData: i, getData:
|
|
873
|
+
var h, D;
|
|
874
|
+
const e = n, { showData: t, disabledData: l, linkData: d, setData: i, getData: y, setFormRule: w, deleteRule: s } = e.store || {}, o = r(), u = r(!0);
|
|
875
875
|
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), L(
|
|
876
876
|
() => t.value,
|
|
877
877
|
() => {
|
|
@@ -881,20 +881,20 @@ const _a = (n, e) => {
|
|
|
881
881
|
), L(
|
|
882
882
|
() => d.value,
|
|
883
883
|
() => {
|
|
884
|
-
d.value.data.forEach((
|
|
885
|
-
if (e.setting.options.customQuery.alias && e.setting.options.customQuery.alias ===
|
|
884
|
+
d.value.data.forEach((f) => {
|
|
885
|
+
if (e.setting.options.customQuery.alias && e.setting.options.customQuery.alias === f.alias) {
|
|
886
886
|
o.value = null;
|
|
887
|
-
const z =
|
|
887
|
+
const z = f.conditionfield.filter((k) => k.defaultType == 1);
|
|
888
888
|
let K = {};
|
|
889
|
-
z.forEach((
|
|
890
|
-
const
|
|
891
|
-
K[
|
|
889
|
+
z.forEach((k) => {
|
|
890
|
+
const S = k.fieldPath.split("."), B = S[S.length - 1];
|
|
891
|
+
K[k.field] = y(B);
|
|
892
892
|
}), ie(
|
|
893
893
|
e.setting.options.customQuery.alias,
|
|
894
894
|
e.setting.options.customQuery.conditionfield,
|
|
895
895
|
K
|
|
896
|
-
).then((
|
|
897
|
-
m.value =
|
|
896
|
+
).then((k) => {
|
|
897
|
+
m.value = k;
|
|
898
898
|
});
|
|
899
899
|
}
|
|
900
900
|
});
|
|
@@ -902,58 +902,58 @@ const _a = (n, e) => {
|
|
|
902
902
|
{ deep: !0 }
|
|
903
903
|
);
|
|
904
904
|
const g = l.value[e.setting.name] || !1, v = r(!1);
|
|
905
|
-
Z(e.setting.options.validateList).then((
|
|
906
|
-
v.value =
|
|
905
|
+
Z(e.setting.options.validateList).then((f) => {
|
|
906
|
+
v.value = f;
|
|
907
907
|
});
|
|
908
908
|
const c = e.setting.options.customQuery.valueBind ? e.setting.options.customQuery.valueBind : "key", _ = e.setting.options.customQuery.labelBind ? e.setting.options.customQuery.labelBind : "value", m = r([]);
|
|
909
909
|
if (e.setting.options.customQuery.alias) {
|
|
910
|
-
let
|
|
911
|
-
typeof
|
|
912
|
-
const z =
|
|
910
|
+
let f = (D = (h = e.setting.options) == null ? void 0 : h.customQuery) == null ? void 0 : D.conditionfield;
|
|
911
|
+
typeof f == "string" && (f = JSON.parse(f));
|
|
912
|
+
const z = f.filter((k) => k.defaultType == 1);
|
|
913
913
|
let K = {};
|
|
914
|
-
z.forEach((
|
|
914
|
+
z.forEach((k) => {
|
|
915
915
|
var q;
|
|
916
|
-
const
|
|
917
|
-
K[
|
|
918
|
-
}), ie(e.setting.options.customQuery.alias, e.setting.options.customQuery.conditionfield, K).then(
|
|
919
|
-
(
|
|
920
|
-
m.value =
|
|
916
|
+
const S = (q = k.fieldPath) == null ? void 0 : q.split("."), B = S[S.length - 1];
|
|
917
|
+
K[k.field] = y(B);
|
|
918
|
+
}), Object.values(K).every((k) => k) && ie(e.setting.options.customQuery.alias, e.setting.options.customQuery.conditionfield, K).then(
|
|
919
|
+
(k) => {
|
|
920
|
+
m.value = k;
|
|
921
921
|
}
|
|
922
922
|
);
|
|
923
923
|
} else
|
|
924
924
|
m.value = e.setting.options.options;
|
|
925
|
-
const
|
|
926
|
-
e.setting.options.tip && (
|
|
927
|
-
e.setting.options.multiple && (
|
|
928
|
-
}, 50), e.setting.options.validateList.length && w(e.setting.name, e.setting.options.validateList), L(o, (
|
|
929
|
-
e.setting.options.multiple ? i(e.setting.name,
|
|
925
|
+
const b = r();
|
|
926
|
+
e.setting.options.tip && (b.value = W(e.setting.options.tip)), o.value = e.setting.options.multiple ? [] : null, setTimeout(() => {
|
|
927
|
+
e.setting.options.multiple && (y(e.setting.name) || e.setting.options.formulasDiyJs) ? (y(e.setting.name) && (o.value = y(e.setting.name).split(",")), e.setting.options.formulasDiyJs && (o.value = e.setting.options.formulasDiyJs.split(","))) : o.value = y(e.setting.name) || e.setting.options.formulasDiyJs || o.value, o.value || i(e.setting.name, null);
|
|
928
|
+
}, 50), e.setting.options.validateList.length && w(e.setting.name, e.setting.options.validateList), L(o, (f) => {
|
|
929
|
+
e.setting.options.multiple ? i(e.setting.name, f.toString()) : i(e.setting.name, f);
|
|
930
930
|
});
|
|
931
|
-
const p = (
|
|
931
|
+
const p = (f) => {
|
|
932
932
|
e.setting.options.linkage.length && !e.setting.options.multiple && e.setting.options.linkage.forEach((z) => {
|
|
933
|
-
if (z.value ===
|
|
934
|
-
const
|
|
935
|
-
t.value[
|
|
933
|
+
if (z.value === f) {
|
|
934
|
+
const k = z.effect[0].target.split(".")[2];
|
|
935
|
+
t.value[k] = z.effect[0].type === "w";
|
|
936
936
|
}
|
|
937
937
|
});
|
|
938
938
|
};
|
|
939
|
-
return (
|
|
939
|
+
return (f, z) => u.value ? (V(), P(a(U), {
|
|
940
940
|
key: 0,
|
|
941
941
|
col: e.span,
|
|
942
942
|
modelValue: o.value,
|
|
943
943
|
"onUpdate:modelValue": z[0] || (z[0] = (K) => o.value = K),
|
|
944
|
-
label:
|
|
944
|
+
label: f.setting.desc,
|
|
945
945
|
onChange: p,
|
|
946
946
|
type: "select",
|
|
947
947
|
prop: e.setting.name,
|
|
948
|
-
placeholder:
|
|
949
|
-
mode:
|
|
950
|
-
showSearch:
|
|
948
|
+
placeholder: f.setting.options.placeholder,
|
|
949
|
+
mode: f.setting.options.multiple ? "tags" : "combobox",
|
|
950
|
+
showSearch: f.setting.options.filterable,
|
|
951
951
|
allowClear: !0,
|
|
952
952
|
isView: e.isView,
|
|
953
953
|
options: m.value,
|
|
954
954
|
optionsValueKey: a(c),
|
|
955
955
|
optionsLabelKey: a(_),
|
|
956
|
-
helpMessage:
|
|
956
|
+
helpMessage: b.value,
|
|
957
957
|
disabled: a(g),
|
|
958
958
|
required: v.value
|
|
959
959
|
}, null, 8, ["col", "modelValue", "label", "prop", "placeholder", "mode", "showSearch", "isView", "options", "optionsValueKey", "optionsLabelKey", "helpMessage", "disabled", "required"])) : O("v-if", !0);
|
|
@@ -963,7 +963,7 @@ const _a = (n, e) => {
|
|
|
963
963
|
default: La
|
|
964
964
|
}, Symbol.toStringTag, { value: "Module" })), za = (n, e, t) => {
|
|
965
965
|
var ne, te, G, ce, ge;
|
|
966
|
-
const l = Ee().id, d = r(!1), i = (ge = (ce = (G = (te = (ne = n == null ? void 0 : n.options) == null ? void 0 : ne.selector) == null ? void 0 : te.type) == null ? void 0 : G.alias) == null ? void 0 : ce.replace("eip-", "")) == null ? void 0 : ge.replace("-selector", ""),
|
|
966
|
+
const l = Ee().id, d = r(!1), i = (ge = (ce = (G = (te = (ne = n == null ? void 0 : n.options) == null ? void 0 : ne.selector) == null ? void 0 : te.type) == null ? void 0 : G.alias) == null ? void 0 : ce.replace("eip-", "")) == null ? void 0 : ge.replace("-selector", ""), y = r([]), w = r(""), s = r(""), o = {
|
|
967
967
|
user: A("搜索姓名/账号/手机号").value,
|
|
968
968
|
org: A("搜索组织名称/组织编码").value,
|
|
969
969
|
role: A("搜索角色名称").value,
|
|
@@ -1004,7 +1004,7 @@ const _a = (n, e) => {
|
|
|
1004
1004
|
job: _e,
|
|
1005
1005
|
post: _e,
|
|
1006
1006
|
supplier: Gt
|
|
1007
|
-
},
|
|
1007
|
+
}, b = u[i], p = r({}), h = r([]), D = () => {
|
|
1008
1008
|
var j, x;
|
|
1009
1009
|
i === "supplier" ? (p.value = {
|
|
1010
1010
|
left: !1,
|
|
@@ -1052,7 +1052,7 @@ const _a = (n, e) => {
|
|
|
1052
1052
|
}
|
|
1053
1053
|
},
|
|
1054
1054
|
right: !1
|
|
1055
|
-
},
|
|
1055
|
+
}, f()) : i === "org" ? (p.value = {
|
|
1056
1056
|
left: !1,
|
|
1057
1057
|
content: {
|
|
1058
1058
|
api: Ut,
|
|
@@ -1063,9 +1063,9 @@ const _a = (n, e) => {
|
|
|
1063
1063
|
data: []
|
|
1064
1064
|
}
|
|
1065
1065
|
}
|
|
1066
|
-
},
|
|
1066
|
+
}, f()) : p.value = {
|
|
1067
1067
|
left: {
|
|
1068
|
-
api:
|
|
1068
|
+
api: qt,
|
|
1069
1069
|
params: {
|
|
1070
1070
|
projectId: l,
|
|
1071
1071
|
parentId: l
|
|
@@ -1091,7 +1091,7 @@ const _a = (n, e) => {
|
|
|
1091
1091
|
selectListProps: {
|
|
1092
1092
|
data: []
|
|
1093
1093
|
}
|
|
1094
|
-
},
|
|
1094
|
+
}, f()), i === "role" && (p.value.content = {
|
|
1095
1095
|
api: At,
|
|
1096
1096
|
searchKey: "orgId",
|
|
1097
1097
|
params: {
|
|
@@ -1100,7 +1100,7 @@ const _a = (n, e) => {
|
|
|
1100
1100
|
selectListProps: {
|
|
1101
1101
|
data: []
|
|
1102
1102
|
}
|
|
1103
|
-
},
|
|
1103
|
+
}, f()), i === "job" && (p.value.content = {
|
|
1104
1104
|
api: Yt,
|
|
1105
1105
|
searchKey: "groupId",
|
|
1106
1106
|
props: {
|
|
@@ -1109,7 +1109,7 @@ const _a = (n, e) => {
|
|
|
1109
1109
|
selectListProps: {
|
|
1110
1110
|
data: []
|
|
1111
1111
|
}
|
|
1112
|
-
},
|
|
1112
|
+
}, f()), i === "post" && (p.value.content = {
|
|
1113
1113
|
api: xt,
|
|
1114
1114
|
searchKey: "groupId",
|
|
1115
1115
|
props: {
|
|
@@ -1118,9 +1118,9 @@ const _a = (n, e) => {
|
|
|
1118
1118
|
selectListProps: {
|
|
1119
1119
|
data: []
|
|
1120
1120
|
}
|
|
1121
|
-
},
|
|
1122
|
-
},
|
|
1123
|
-
|
|
1121
|
+
}, f()), p.value.content.multiple = i === "supplier" || i === "source" ? !1 : !((x = (j = n == null ? void 0 : n.options) == null ? void 0 : j.selector) != null && x.isSingle);
|
|
1122
|
+
}, f = async () => {
|
|
1123
|
+
h.value = [
|
|
1124
1124
|
{
|
|
1125
1125
|
type: "searchInput",
|
|
1126
1126
|
key: "inputtKey",
|
|
@@ -1134,7 +1134,7 @@ const _a = (n, e) => {
|
|
|
1134
1134
|
}
|
|
1135
1135
|
];
|
|
1136
1136
|
}, z = async () => {
|
|
1137
|
-
|
|
1137
|
+
h.value = [
|
|
1138
1138
|
{
|
|
1139
1139
|
type: "searchInput",
|
|
1140
1140
|
key: "inputtKey",
|
|
@@ -1165,20 +1165,20 @@ const _a = (n, e) => {
|
|
|
1165
1165
|
name: "",
|
|
1166
1166
|
published: 1
|
|
1167
1167
|
}, [x, E] = await Xt(j).run();
|
|
1168
|
-
x || (
|
|
1169
|
-
},
|
|
1168
|
+
x || (h.value[1].options = E);
|
|
1169
|
+
}, k = () => {
|
|
1170
1170
|
var x;
|
|
1171
1171
|
w.value = "", d.value = !0;
|
|
1172
1172
|
let j = g[i];
|
|
1173
|
-
p.value.content.selectListProps.data = (x =
|
|
1173
|
+
p.value.content.selectListProps.data = (x = y == null ? void 0 : y.value) == null ? void 0 : x.map((E) => ({ name: E == null ? void 0 : E.label, [j]: E == null ? void 0 : E.value }));
|
|
1174
1174
|
};
|
|
1175
1175
|
D();
|
|
1176
|
-
const
|
|
1176
|
+
const S = async () => {
|
|
1177
1177
|
var j, x, E, Y, M, T, $, F, re, ze, Me, Te, Re, $e, Pe, Fe, Ie;
|
|
1178
1178
|
p.value.content.params = {
|
|
1179
1179
|
...(x = (j = p == null ? void 0 : p.value) == null ? void 0 : j.content) == null ? void 0 : x.params,
|
|
1180
1180
|
pageIndex: 1
|
|
1181
|
-
}, (i === "user" || i === "org" || i === "post" || i === "role" || i === "job") && (p.value.content.params.name = (E =
|
|
1181
|
+
}, (i === "user" || i === "org" || i === "post" || i === "role" || i === "job") && (p.value.content.params.name = (E = h == null ? void 0 : h.value[0]) == null ? void 0 : E.value), i === "source" && (p.value.content.params.key = (Y = h == null ? void 0 : h.value[0]) == null ? void 0 : Y.value), i === "supplier" && (p.value.content.params.querys = [
|
|
1182
1182
|
{
|
|
1183
1183
|
property: "orgId",
|
|
1184
1184
|
value: l,
|
|
@@ -1186,25 +1186,25 @@ const _a = (n, e) => {
|
|
|
1186
1186
|
relation: "AND",
|
|
1187
1187
|
operation: "EQUAL"
|
|
1188
1188
|
}
|
|
1189
|
-
], (M =
|
|
1189
|
+
], (M = h == null ? void 0 : h.value[0]) != null && M.value && (p.value.content.params.querys = (Me = (F = ($ = (T = p == null ? void 0 : p.value) == null ? void 0 : T.content) == null ? void 0 : $.params) == null ? void 0 : F.querys) == null ? void 0 : Me.concat([
|
|
1190
1190
|
{
|
|
1191
1191
|
property: "name",
|
|
1192
|
-
value: (re =
|
|
1192
|
+
value: (re = h == null ? void 0 : h.value[0]) == null ? void 0 : re.value,
|
|
1193
1193
|
group: "merge",
|
|
1194
1194
|
relation: "OR",
|
|
1195
1195
|
operation: "LIKE"
|
|
1196
1196
|
},
|
|
1197
1197
|
{
|
|
1198
1198
|
property: "code",
|
|
1199
|
-
value: (ze =
|
|
1199
|
+
value: (ze = h == null ? void 0 : h.value[0]) == null ? void 0 : ze.value,
|
|
1200
1200
|
group: "merge",
|
|
1201
1201
|
relation: "OR",
|
|
1202
1202
|
operation: "LIKE"
|
|
1203
1203
|
}
|
|
1204
|
-
])), (Te =
|
|
1204
|
+
])), (Te = h == null ? void 0 : h.value[1]) != null && Te.value && (p.value.content.params.querys = (Ie = (Pe = ($e = (Re = p == null ? void 0 : p.value) == null ? void 0 : Re.content) == null ? void 0 : $e.params) == null ? void 0 : Pe.querys) == null ? void 0 : Ie.concat([
|
|
1205
1205
|
{
|
|
1206
1206
|
property: "classificationId",
|
|
1207
|
-
value: (Fe =
|
|
1207
|
+
value: (Fe = h == null ? void 0 : h.value[1]) == null ? void 0 : Fe.value,
|
|
1208
1208
|
group: "quick",
|
|
1209
1209
|
relation: "AND",
|
|
1210
1210
|
operation: "EQUAL"
|
|
@@ -1218,23 +1218,23 @@ const _a = (n, e) => {
|
|
|
1218
1218
|
}
|
|
1219
1219
|
);
|
|
1220
1220
|
const B = async () => {
|
|
1221
|
-
i === "supplier" ? (
|
|
1221
|
+
i === "supplier" ? (h.value[0].value = "", h.value[1].value = void 0) : (i === "org" || i === "user" || i === "source" || i === "post" || i === "role" || i === "job") && (h.value[0].value = ""), D();
|
|
1222
1222
|
};
|
|
1223
1223
|
return {
|
|
1224
1224
|
dialogVisible: d,
|
|
1225
|
-
title:
|
|
1225
|
+
title: b,
|
|
1226
1226
|
searchName: w,
|
|
1227
1227
|
selectorType: i,
|
|
1228
|
-
selectOptions:
|
|
1228
|
+
selectOptions: y,
|
|
1229
1229
|
tableOptions: p,
|
|
1230
1230
|
userStatusMap: v,
|
|
1231
1231
|
roleTypeMap: c,
|
|
1232
1232
|
roleStatusMap: _,
|
|
1233
|
-
openDialog:
|
|
1233
|
+
openDialog: k,
|
|
1234
1234
|
confirm: (j) => {
|
|
1235
1235
|
var E;
|
|
1236
1236
|
let x = g[i];
|
|
1237
|
-
|
|
1237
|
+
y.value = j == null ? void 0 : j.map((Y) => ({ label: (Y == null ? void 0 : Y.name) || (Y == null ? void 0 : Y.code), value: Y[x] })), i === "supplier" && (s.value = (E = j[0]) == null ? void 0 : E.linkmanPhone);
|
|
1238
1238
|
},
|
|
1239
1239
|
getDetail: async (j) => {
|
|
1240
1240
|
if (!j) return;
|
|
@@ -1242,7 +1242,7 @@ const _a = (n, e) => {
|
|
|
1242
1242
|
let E = {};
|
|
1243
1243
|
const Y = j == null ? void 0 : j.split(",");
|
|
1244
1244
|
if (i === "source") {
|
|
1245
|
-
|
|
1245
|
+
y.value = [
|
|
1246
1246
|
{
|
|
1247
1247
|
label: j,
|
|
1248
1248
|
value: j
|
|
@@ -1251,15 +1251,15 @@ const _a = (n, e) => {
|
|
|
1251
1251
|
return;
|
|
1252
1252
|
} else i === "user" ? E.userIds = Y : i === "role" ? E.ids = Y : i === "supplier" ? E.id = Y : E = Y;
|
|
1253
1253
|
const [M, T] = await x(E).run();
|
|
1254
|
-
M || (i === "supplier" ?
|
|
1254
|
+
M || (i === "supplier" ? y.value = [
|
|
1255
1255
|
{
|
|
1256
1256
|
label: (T == null ? void 0 : T.name) || (T == null ? void 0 : T.code),
|
|
1257
1257
|
value: T == null ? void 0 : T.id
|
|
1258
1258
|
}
|
|
1259
|
-
] :
|
|
1259
|
+
] : y.value = T == null ? void 0 : T.map(($) => ({ label: ($ == null ? void 0 : $.name) || ($ == null ? void 0 : $.code), value: $ == null ? void 0 : $.id })));
|
|
1260
1260
|
},
|
|
1261
|
-
searchData:
|
|
1262
|
-
searchOptions:
|
|
1261
|
+
searchData: S,
|
|
1262
|
+
searchOptions: h,
|
|
1263
1263
|
linkmanPhone: s
|
|
1264
1264
|
};
|
|
1265
1265
|
}, Ma = (n) => {
|
|
@@ -1323,7 +1323,7 @@ const _a = (n, e) => {
|
|
|
1323
1323
|
const e = n, t = gt(() => {
|
|
1324
1324
|
var M, T, $;
|
|
1325
1325
|
return e.isView ? !(i(e.setting.name).split(",").length > 1) : (($ = (T = (M = e == null ? void 0 : e.setting) == null ? void 0 : M.options) == null ? void 0 : T.selector) == null ? void 0 : $.isSingle) ?? !0;
|
|
1326
|
-
}), { showData: l, setData: d, getData: i, flowKey:
|
|
1326
|
+
}), { showData: l, setData: d, getData: i, flowKey: y, setFormRule: w, deleteRule: s, disabledData: o } = e.store || {}, u = r(""), g = r(!0);
|
|
1327
1327
|
!l.value[e.setting.name] && l.value[e.setting.name] != !1 && (l.value[e.setting.name] = !0), L(
|
|
1328
1328
|
() => l.value,
|
|
1329
1329
|
() => {
|
|
@@ -1335,40 +1335,40 @@ const _a = (n, e) => {
|
|
|
1335
1335
|
dialogVisible: c,
|
|
1336
1336
|
title: _,
|
|
1337
1337
|
tableOptions: m,
|
|
1338
|
-
selectorType:
|
|
1338
|
+
selectorType: b,
|
|
1339
1339
|
selectOptions: p,
|
|
1340
|
-
userStatusMap:
|
|
1340
|
+
userStatusMap: h,
|
|
1341
1341
|
roleTypeMap: D,
|
|
1342
|
-
roleStatusMap:
|
|
1342
|
+
roleStatusMap: f,
|
|
1343
1343
|
openDialog: z,
|
|
1344
1344
|
confirm: K,
|
|
1345
|
-
getDetail:
|
|
1346
|
-
searchData:
|
|
1345
|
+
getDetail: k,
|
|
1346
|
+
searchData: S,
|
|
1347
1347
|
searchOptions: B,
|
|
1348
1348
|
linkmanPhone: q
|
|
1349
|
-
} = za(e.setting,
|
|
1349
|
+
} = za(e.setting, y, u), { spacePath: H, spaceName: ne, searchSpace: te, changeSpace: G, spaceLoad: ce, filterSpaceTree: ge } = Ma(
|
|
1350
1350
|
t.value
|
|
1351
1351
|
), j = r(!1);
|
|
1352
1352
|
Z(e.setting.options.validateList).then((M) => {
|
|
1353
1353
|
j.value = M;
|
|
1354
1354
|
});
|
|
1355
1355
|
const x = r();
|
|
1356
|
-
return e.setting.options.tip && (x.value = W(e.setting.options.tip)), e.setting.options.validateList.length && w(e.setting.name, e.setting.options.validateList),
|
|
1356
|
+
return e.setting.options.tip && (x.value = W(e.setting.options.tip)), e.setting.options.validateList.length && w(e.setting.name, e.setting.options.validateList), b == "position" ? (t.value ? (H.value = i(e.setting.name) ?? "", u.value = i(e.setting.name) ? i(e.setting.name).split("/").pop() : u.value) : (H.value = [], u.value = i(e.setting.name) ? (Y = (E = i(e.setting.name)) == null ? void 0 : E.split(",")) == null ? void 0 : Y.map((M) => (H.value.push(M), M.split("/").pop())) : []), u.value || d(e.setting.name, null), L(u, (M) => {
|
|
1357
1357
|
t.value ? d(e.setting.name, M) : d(e.setting.name, (M == null ? void 0 : M.join(",")) || "");
|
|
1358
1358
|
}), L(ne, (M) => {
|
|
1359
1359
|
t.value ? d(e.setting.options.selector.type.positionName, M) : d(e.setting.options.selector.type.positionName, (M == null ? void 0 : M.join(",")) || "");
|
|
1360
|
-
})) :
|
|
1360
|
+
})) : b == "supplier" ? (u.value = i(e.setting.name) ? [i(e.setting.name)] : [u.value], u.value && k(i(e.setting.name)), L(u, (M) => {
|
|
1361
1361
|
d(e.setting.name, M == null ? void 0 : M.toString());
|
|
1362
1362
|
}), L(q, (M) => {
|
|
1363
1363
|
var T, $, F, re;
|
|
1364
1364
|
((re = (F = ($ = (T = e == null ? void 0 : e.setting) == null ? void 0 : T.options) == null ? void 0 : $.selector) == null ? void 0 : F.type) == null ? void 0 : re.supplierPhone) !== void 0 && d(e.setting.options.selector.type.supplierPhone, M);
|
|
1365
|
-
})) : (u.value = i(e.setting.name) ? i(e.setting.name) : u.value, u.value &&
|
|
1365
|
+
})) : (u.value = i(e.setting.name) ? i(e.setting.name) : u.value, u.value && k(u.value), u.value.length || d(e.setting.name, null), L(p, (M) => {
|
|
1366
1366
|
u.value = M.map((T) => T.value).toString(), d(e.setting.name, u.value);
|
|
1367
1367
|
})), (M, T) => (V(), J(
|
|
1368
1368
|
ee,
|
|
1369
1369
|
null,
|
|
1370
1370
|
[
|
|
1371
|
-
g.value && a(
|
|
1371
|
+
g.value && a(b) != "position" ? (V(), P(a(U), {
|
|
1372
1372
|
key: 0,
|
|
1373
1373
|
col: e.span,
|
|
1374
1374
|
modelValue: u.value,
|
|
@@ -1387,7 +1387,7 @@ const _a = (n, e) => {
|
|
|
1387
1387
|
default: R(() => {
|
|
1388
1388
|
var $;
|
|
1389
1389
|
return [
|
|
1390
|
-
|
|
1390
|
+
N(a(St), {
|
|
1391
1391
|
"append-to-body": "",
|
|
1392
1392
|
modelValue: a(c),
|
|
1393
1393
|
"onUpdate:modelValue": T[0] || (T[0] = (F) => be(c) ? c.value = F : null),
|
|
@@ -1402,34 +1402,34 @@ const _a = (n, e) => {
|
|
|
1402
1402
|
(($ = a(B)) == null ? void 0 : $.length) > 0 ? {
|
|
1403
1403
|
name: "table-header-search",
|
|
1404
1404
|
fn: R(() => [
|
|
1405
|
-
|
|
1406
|
-
|
|
1405
|
+
qe("div", Ta, [
|
|
1406
|
+
N(a(kt), {
|
|
1407
1407
|
labelLength: "6",
|
|
1408
1408
|
options: a(B),
|
|
1409
|
-
onConfirm: a(
|
|
1409
|
+
onConfirm: a(S),
|
|
1410
1410
|
"is-margin-right": !1
|
|
1411
1411
|
}, null, 8, ["options", "onConfirm"])
|
|
1412
1412
|
])
|
|
1413
1413
|
]),
|
|
1414
1414
|
key: "0"
|
|
1415
1415
|
} : void 0,
|
|
1416
|
-
a(
|
|
1416
|
+
a(b) === "user" ? {
|
|
1417
1417
|
name: "table-column",
|
|
1418
1418
|
fn: R(() => [
|
|
1419
|
-
|
|
1419
|
+
N(a(I), {
|
|
1420
1420
|
label: a(C)("姓名"),
|
|
1421
1421
|
prop: "name"
|
|
1422
1422
|
}, null, 8, ["label"]),
|
|
1423
|
-
|
|
1423
|
+
N(a(I), {
|
|
1424
1424
|
label: a(C)("账号"),
|
|
1425
1425
|
prop: "userName"
|
|
1426
1426
|
}, null, 8, ["label"]),
|
|
1427
|
-
|
|
1427
|
+
N(a(I), {
|
|
1428
1428
|
label: a(C)("手机号"),
|
|
1429
1429
|
prop: "sensitivePhone"
|
|
1430
1430
|
}, {
|
|
1431
1431
|
default: R(({ row: F }) => [
|
|
1432
|
-
|
|
1432
|
+
N(a(Se), {
|
|
1433
1433
|
placement: "top",
|
|
1434
1434
|
content: F.phone,
|
|
1435
1435
|
disabled: !F.phone
|
|
@@ -1448,12 +1448,12 @@ const _a = (n, e) => {
|
|
|
1448
1448
|
_: 1
|
|
1449
1449
|
/* STABLE */
|
|
1450
1450
|
}, 8, ["label"]),
|
|
1451
|
-
|
|
1451
|
+
N(a(I), {
|
|
1452
1452
|
label: a(C)("状态")
|
|
1453
1453
|
}, {
|
|
1454
1454
|
default: R(({ row: F }) => [
|
|
1455
1455
|
se(
|
|
1456
|
-
oe(a(
|
|
1456
|
+
oe(a(h)[F.status]),
|
|
1457
1457
|
1
|
|
1458
1458
|
/* TEXT */
|
|
1459
1459
|
)
|
|
@@ -1464,32 +1464,32 @@ const _a = (n, e) => {
|
|
|
1464
1464
|
]),
|
|
1465
1465
|
key: "1"
|
|
1466
1466
|
} : void 0,
|
|
1467
|
-
a(
|
|
1467
|
+
a(b) === "org" ? {
|
|
1468
1468
|
name: "table-column",
|
|
1469
1469
|
fn: R(() => [
|
|
1470
|
-
|
|
1470
|
+
N(a(I), {
|
|
1471
1471
|
label: a(C)("组织名称"),
|
|
1472
1472
|
prop: "name"
|
|
1473
1473
|
}, null, 8, ["label"]),
|
|
1474
|
-
|
|
1474
|
+
N(a(I), {
|
|
1475
1475
|
label: a(C)("组织编码"),
|
|
1476
1476
|
prop: "code"
|
|
1477
1477
|
}, null, 8, ["label"]),
|
|
1478
|
-
|
|
1478
|
+
N(a(I), {
|
|
1479
1479
|
label: a(C)("组织类型"),
|
|
1480
1480
|
prop: "typeName"
|
|
1481
1481
|
}, null, 8, ["label"])
|
|
1482
1482
|
]),
|
|
1483
1483
|
key: "2"
|
|
1484
1484
|
} : void 0,
|
|
1485
|
-
a(
|
|
1485
|
+
a(b) === "role" ? {
|
|
1486
1486
|
name: "table-column",
|
|
1487
1487
|
fn: R(() => [
|
|
1488
|
-
|
|
1488
|
+
N(a(I), {
|
|
1489
1489
|
label: a(C)("角色名称"),
|
|
1490
1490
|
prop: "name"
|
|
1491
1491
|
}, null, 8, ["label"]),
|
|
1492
|
-
|
|
1492
|
+
N(a(I), {
|
|
1493
1493
|
label: a(C)("角色类型")
|
|
1494
1494
|
}, {
|
|
1495
1495
|
default: R(({ row: F }) => [
|
|
@@ -1502,12 +1502,12 @@ const _a = (n, e) => {
|
|
|
1502
1502
|
_: 1
|
|
1503
1503
|
/* STABLE */
|
|
1504
1504
|
}, 8, ["label"]),
|
|
1505
|
-
|
|
1505
|
+
N(a(I), {
|
|
1506
1506
|
label: a(C)("角色状态")
|
|
1507
1507
|
}, {
|
|
1508
1508
|
default: R(({ row: F }) => [
|
|
1509
1509
|
se(
|
|
1510
|
-
oe(a(
|
|
1510
|
+
oe(a(f)[F.status]),
|
|
1511
1511
|
1
|
|
1512
1512
|
/* TEXT */
|
|
1513
1513
|
)
|
|
@@ -1518,62 +1518,62 @@ const _a = (n, e) => {
|
|
|
1518
1518
|
]),
|
|
1519
1519
|
key: "3"
|
|
1520
1520
|
} : void 0,
|
|
1521
|
-
a(
|
|
1521
|
+
a(b) === "job" ? {
|
|
1522
1522
|
name: "table-column",
|
|
1523
1523
|
fn: R(() => [
|
|
1524
|
-
|
|
1524
|
+
N(a(I), {
|
|
1525
1525
|
label: a(C)("职务名称"),
|
|
1526
1526
|
prop: "name"
|
|
1527
1527
|
}, null, 8, ["label"]),
|
|
1528
|
-
|
|
1528
|
+
N(a(I), {
|
|
1529
1529
|
label: a(C)("职务编码"),
|
|
1530
1530
|
prop: "code"
|
|
1531
1531
|
}, null, 8, ["label"]),
|
|
1532
|
-
|
|
1532
|
+
N(a(I), {
|
|
1533
1533
|
label: a(C)("所属组织路径"),
|
|
1534
1534
|
prop: "groupName"
|
|
1535
1535
|
}, null, 8, ["label"])
|
|
1536
1536
|
]),
|
|
1537
1537
|
key: "4"
|
|
1538
1538
|
} : void 0,
|
|
1539
|
-
a(
|
|
1539
|
+
a(b) === "post" ? {
|
|
1540
1540
|
name: "table-column",
|
|
1541
1541
|
fn: R(() => [
|
|
1542
|
-
|
|
1542
|
+
N(a(I), {
|
|
1543
1543
|
label: a(C)("岗位名称"),
|
|
1544
1544
|
prop: "name"
|
|
1545
1545
|
}, null, 8, ["label"]),
|
|
1546
|
-
|
|
1546
|
+
N(a(I), {
|
|
1547
1547
|
label: a(C)("岗位编码"),
|
|
1548
1548
|
prop: "code"
|
|
1549
1549
|
}, null, 8, ["label"]),
|
|
1550
|
-
|
|
1550
|
+
N(a(I), {
|
|
1551
1551
|
label: a(C)("所属组织路径"),
|
|
1552
1552
|
prop: "groupName"
|
|
1553
1553
|
}, null, 8, ["label"])
|
|
1554
1554
|
]),
|
|
1555
1555
|
key: "5"
|
|
1556
1556
|
} : void 0,
|
|
1557
|
-
a(
|
|
1557
|
+
a(b) === "supplier" ? {
|
|
1558
1558
|
name: "table-column",
|
|
1559
1559
|
fn: R(() => [
|
|
1560
|
-
|
|
1560
|
+
N(a(I), {
|
|
1561
1561
|
type: "index",
|
|
1562
1562
|
width: "50"
|
|
1563
1563
|
}),
|
|
1564
|
-
|
|
1564
|
+
N(a(I), {
|
|
1565
1565
|
label: a(C)("供应商名称"),
|
|
1566
1566
|
prop: "name"
|
|
1567
1567
|
}, null, 8, ["label"]),
|
|
1568
|
-
|
|
1568
|
+
N(a(I), {
|
|
1569
1569
|
label: a(C)("供应商编码"),
|
|
1570
1570
|
prop: "code"
|
|
1571
1571
|
}, null, 8, ["label"]),
|
|
1572
|
-
|
|
1572
|
+
N(a(I), {
|
|
1573
1573
|
label: a(C)("供应商等级"),
|
|
1574
1574
|
prop: "supplierLevel"
|
|
1575
1575
|
}, null, 8, ["label"]),
|
|
1576
|
-
|
|
1576
|
+
N(a(I), {
|
|
1577
1577
|
label: a(C)("供应商分类"),
|
|
1578
1578
|
prop: "classificationName"
|
|
1579
1579
|
}, {
|
|
@@ -1585,7 +1585,7 @@ const _a = (n, e) => {
|
|
|
1585
1585
|
_: 1
|
|
1586
1586
|
/* STABLE */
|
|
1587
1587
|
}, 8, ["label"]),
|
|
1588
|
-
|
|
1588
|
+
N(a(I), {
|
|
1589
1589
|
label: a(C)("个人/公司"),
|
|
1590
1590
|
prop: "businessType"
|
|
1591
1591
|
}, {
|
|
@@ -1602,27 +1602,27 @@ const _a = (n, e) => {
|
|
|
1602
1602
|
]),
|
|
1603
1603
|
key: "6"
|
|
1604
1604
|
} : void 0,
|
|
1605
|
-
a(
|
|
1605
|
+
a(b) === "source" ? {
|
|
1606
1606
|
name: "table-column",
|
|
1607
1607
|
fn: R(() => [
|
|
1608
|
-
|
|
1608
|
+
N(a(I), {
|
|
1609
1609
|
type: "index",
|
|
1610
1610
|
width: "50"
|
|
1611
1611
|
}),
|
|
1612
|
-
|
|
1612
|
+
N(a(I), {
|
|
1613
1613
|
label: a(C)("单据编码"),
|
|
1614
1614
|
prop: "code"
|
|
1615
1615
|
}, null, 8, ["label"]),
|
|
1616
|
-
|
|
1616
|
+
N(a(I), {
|
|
1617
1617
|
label: a(C)("申请人"),
|
|
1618
1618
|
prop: "userName"
|
|
1619
1619
|
}, null, 8, ["label"]),
|
|
1620
|
-
|
|
1620
|
+
N(a(I), {
|
|
1621
1621
|
label: a(C)("联系电话"),
|
|
1622
1622
|
prop: "sensitivePhone"
|
|
1623
1623
|
}, {
|
|
1624
1624
|
default: R(({ row: F }) => [
|
|
1625
|
-
|
|
1625
|
+
N(a(Se), {
|
|
1626
1626
|
placement: "top",
|
|
1627
1627
|
content: F.phone,
|
|
1628
1628
|
disabled: !F.phone
|
|
@@ -1641,7 +1641,7 @@ const _a = (n, e) => {
|
|
|
1641
1641
|
_: 1
|
|
1642
1642
|
/* STABLE */
|
|
1643
1643
|
}, 8, ["label"]),
|
|
1644
|
-
|
|
1644
|
+
N(a(I), {
|
|
1645
1645
|
label: a(C)("计划领用日期"),
|
|
1646
1646
|
prop: "claimingDate"
|
|
1647
1647
|
}, {
|
|
@@ -1655,7 +1655,7 @@ const _a = (n, e) => {
|
|
|
1655
1655
|
_: 1
|
|
1656
1656
|
/* STABLE */
|
|
1657
1657
|
}, 8, ["label"]),
|
|
1658
|
-
|
|
1658
|
+
N(a(I), {
|
|
1659
1659
|
label: a(C)("资产用途"),
|
|
1660
1660
|
prop: "purpose"
|
|
1661
1661
|
}, null, 8, ["label"])
|
|
@@ -1668,7 +1668,7 @@ const _a = (n, e) => {
|
|
|
1668
1668
|
_: 1
|
|
1669
1669
|
/* STABLE */
|
|
1670
1670
|
}, 8, ["col", "modelValue", "prop", "label", "options", "helpMessage", "isView", "disabled", "required", "placeholder", "onOpenDialog"])) : O("v-if", !0),
|
|
1671
|
-
g.value && a(
|
|
1671
|
+
g.value && a(b) == "position" ? (V(), P(a(U), {
|
|
1672
1672
|
key: 1,
|
|
1673
1673
|
col: e.span,
|
|
1674
1674
|
label: M.setting.desc,
|
|
@@ -1728,11 +1728,11 @@ const _a = (n, e) => {
|
|
|
1728
1728
|
store: {}
|
|
1729
1729
|
},
|
|
1730
1730
|
setup(n) {
|
|
1731
|
-
const e = n, { showData: t, disabledData: l, setData: d, getData: i, setFormRule:
|
|
1731
|
+
const e = n, { showData: t, disabledData: l, setData: d, getData: i, setFormRule: y, deleteRule: w } = e.store || {}, s = r(), o = r(!0);
|
|
1732
1732
|
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), L(
|
|
1733
1733
|
() => t.value,
|
|
1734
1734
|
() => {
|
|
1735
|
-
o.value = t.value[e.setting.name], o.value || (s.value = "", w(e.setting.name)), o.value && e.setting.options.validateList.length &&
|
|
1735
|
+
o.value = t.value[e.setting.name], o.value || (s.value = "", w(e.setting.name)), o.value && e.setting.options.validateList.length && y(e.setting.name, e.setting.options.validateList);
|
|
1736
1736
|
},
|
|
1737
1737
|
{ deep: !0, immediate: !0 }
|
|
1738
1738
|
), l.value[e.setting.name];
|
|
@@ -1745,10 +1745,10 @@ const _a = (n, e) => {
|
|
|
1745
1745
|
const _ = JSON.parse(i(e.setting.name));
|
|
1746
1746
|
s.value = u + _[0].url;
|
|
1747
1747
|
}
|
|
1748
|
-
return e.setting.options.validateList.length &&
|
|
1748
|
+
return e.setting.options.validateList.length && y(e.setting.name, e.setting.options.validateList), (_, m) => e.isView && o.value ? (V(), P(a(U), {
|
|
1749
1749
|
key: 0,
|
|
1750
1750
|
modelValue: s.value,
|
|
1751
|
-
"onUpdate:modelValue": m[2] || (m[2] = (
|
|
1751
|
+
"onUpdate:modelValue": m[2] || (m[2] = (b) => s.value = b),
|
|
1752
1752
|
"margin-bottom": "0",
|
|
1753
1753
|
prop: e.setting.name,
|
|
1754
1754
|
label: _.setting.desc,
|
|
@@ -1759,11 +1759,11 @@ const _a = (n, e) => {
|
|
|
1759
1759
|
}, {
|
|
1760
1760
|
default: R(() => [
|
|
1761
1761
|
s.value ? (V(), J("div", Fa, [
|
|
1762
|
-
|
|
1762
|
+
N(a(Be), {
|
|
1763
1763
|
modelValue: s.value,
|
|
1764
|
-
"onUpdate:modelValue": m[0] || (m[0] = (
|
|
1764
|
+
"onUpdate:modelValue": m[0] || (m[0] = (b) => s.value = b),
|
|
1765
1765
|
status: v.value,
|
|
1766
|
-
"onUpdate:status": m[1] || (m[1] = (
|
|
1766
|
+
"onUpdate:status": m[1] || (m[1] = (b) => v.value = b),
|
|
1767
1767
|
required: g.value
|
|
1768
1768
|
}, null, 8, ["modelValue", "status", "required"])
|
|
1769
1769
|
])) : (V(), J("div", Ia, "-"))
|
|
@@ -1772,13 +1772,13 @@ const _a = (n, e) => {
|
|
|
1772
1772
|
/* STABLE */
|
|
1773
1773
|
}, 8, ["modelValue", "prop", "label", "helpMessage", "required", "col"])) : O("v-if", !0);
|
|
1774
1774
|
}
|
|
1775
|
-
}),
|
|
1775
|
+
}), Ka = /* @__PURE__ */ ye(Oa, [["__scopeId", "data-v-b30e3d77"]]), st = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1776
1776
|
__proto__: null,
|
|
1777
|
-
default:
|
|
1778
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1777
|
+
default: Ka
|
|
1778
|
+
}, Symbol.toStringTag, { value: "Module" })), qa = {
|
|
1779
1779
|
name: "switch"
|
|
1780
1780
|
}, Ba = /* @__PURE__ */ Q({
|
|
1781
|
-
...
|
|
1781
|
+
...qa,
|
|
1782
1782
|
props: {
|
|
1783
1783
|
setting: { default: () => ({
|
|
1784
1784
|
icon: "",
|
|
@@ -1793,11 +1793,11 @@ const _a = (n, e) => {
|
|
|
1793
1793
|
store: {}
|
|
1794
1794
|
},
|
|
1795
1795
|
setup(n) {
|
|
1796
|
-
const e = n, { showData: t, disabledData: l, setData: d, getData: i, setFormRule:
|
|
1796
|
+
const e = n, { showData: t, disabledData: l, setData: d, getData: i, setFormRule: y, deleteRule: w } = e.store || {}, s = r(), o = r(!0);
|
|
1797
1797
|
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), L(
|
|
1798
1798
|
() => t.value,
|
|
1799
1799
|
() => {
|
|
1800
|
-
o.value = t.value[e.setting.name], o.value || (s.value = null, w(e.setting.name)), o.value && e.setting.options.validateList.length &&
|
|
1800
|
+
o.value = t.value[e.setting.name], o.value || (s.value = null, w(e.setting.name)), o.value && e.setting.options.validateList.length && y(e.setting.name, e.setting.options.validateList);
|
|
1801
1801
|
},
|
|
1802
1802
|
{ deep: !0, immediate: !0 }
|
|
1803
1803
|
);
|
|
@@ -1808,7 +1808,7 @@ const _a = (n, e) => {
|
|
|
1808
1808
|
const v = r();
|
|
1809
1809
|
return e.setting.options.tip && (v.value = W(e.setting.options.tip)), setTimeout(() => {
|
|
1810
1810
|
s.value = i(e.setting.name) || e.setting.options.formulasDiyJs || s.value, s.value || d(e.setting.name, null);
|
|
1811
|
-
}, 50), e.setting.options.validateList.length &&
|
|
1811
|
+
}, 50), e.setting.options.validateList.length && y(e.setting.name, e.setting.options.validateList), L(s, (c) => {
|
|
1812
1812
|
d(e.setting.name, c);
|
|
1813
1813
|
}), (c, _) => o.value ? (V(), P(a(U), {
|
|
1814
1814
|
key: 0,
|
|
@@ -1849,11 +1849,11 @@ const _a = (n, e) => {
|
|
|
1849
1849
|
store: {}
|
|
1850
1850
|
},
|
|
1851
1851
|
setup(n) {
|
|
1852
|
-
const e = n, { showData: t, disabledData: l, setData: d, getData: i, setFormRule:
|
|
1852
|
+
const e = n, { showData: t, disabledData: l, setData: d, getData: i, setFormRule: y, deleteRule: w } = e.store || {}, s = r(), o = r(!0);
|
|
1853
1853
|
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), L(
|
|
1854
1854
|
() => t.value,
|
|
1855
1855
|
() => {
|
|
1856
|
-
o.value = t.value[e.setting.name], o.value || (s.value = null, w(e.setting.name)), o.value && e.setting.options.validateList.length &&
|
|
1856
|
+
o.value = t.value[e.setting.name], o.value || (s.value = null, w(e.setting.name)), o.value && e.setting.options.validateList.length && y(e.setting.name, e.setting.options.validateList);
|
|
1857
1857
|
},
|
|
1858
1858
|
{ deep: !0, immediate: !0 }
|
|
1859
1859
|
);
|
|
@@ -1870,7 +1870,7 @@ const _a = (n, e) => {
|
|
|
1870
1870
|
helpMessage: u.value
|
|
1871
1871
|
}, {
|
|
1872
1872
|
default: R(() => [
|
|
1873
|
-
|
|
1873
|
+
N(a(Ae), {
|
|
1874
1874
|
type: "text",
|
|
1875
1875
|
modelValue: s.value,
|
|
1876
1876
|
"onUpdate:modelValue": v[0] || (v[0] = (c) => s.value = c)
|
|
@@ -1901,11 +1901,11 @@ const _a = (n, e) => {
|
|
|
1901
1901
|
store: {}
|
|
1902
1902
|
},
|
|
1903
1903
|
setup(n) {
|
|
1904
|
-
const e = n, { showData: t, disabledData: l, setData: d, getData: i, setFormRule:
|
|
1904
|
+
const e = n, { showData: t, disabledData: l, setData: d, getData: i, setFormRule: y, deleteRule: w } = e.store || {}, s = r(""), o = r(!0);
|
|
1905
1905
|
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), L(
|
|
1906
1906
|
() => t.value,
|
|
1907
1907
|
() => {
|
|
1908
|
-
o.value = t.value[e.setting.name], o.value || (s.value = "", w(e.setting.name)), o.value && e.setting.options.validateList.length &&
|
|
1908
|
+
o.value = t.value[e.setting.name], o.value || (s.value = "", w(e.setting.name)), o.value && e.setting.options.validateList.length && y(e.setting.name, e.setting.options.validateList);
|
|
1909
1909
|
},
|
|
1910
1910
|
{ deep: !0, immediate: !0 }
|
|
1911
1911
|
);
|
|
@@ -1918,9 +1918,9 @@ const _a = (n, e) => {
|
|
|
1918
1918
|
s.value = i(e.setting.name) || e.setting.options.formulasDiyJs || s.value, s.value || d(e.setting.name, null);
|
|
1919
1919
|
}, 50);
|
|
1920
1920
|
const c = r(), _ = r();
|
|
1921
|
-
return c.value = e.setting.options.initialFrameWidth ? e.setting.options.initialFrameWidth + "px" : "", _.value = e.setting.options.initialFrameHeight ? e.setting.options.initialFrameHeight + "px" : "", e.setting.options.validateList.length &&
|
|
1921
|
+
return c.value = e.setting.options.initialFrameWidth ? e.setting.options.initialFrameWidth + "px" : "", _.value = e.setting.options.initialFrameHeight ? e.setting.options.initialFrameHeight + "px" : "", e.setting.options.validateList.length && y(e.setting.name, e.setting.options.validateList), L(s, (m) => {
|
|
1922
1922
|
d(e.setting.name, m);
|
|
1923
|
-
}), (m,
|
|
1923
|
+
}), (m, b) => (V(), J(
|
|
1924
1924
|
ee,
|
|
1925
1925
|
null,
|
|
1926
1926
|
[
|
|
@@ -1930,7 +1930,7 @@ const _a = (n, e) => {
|
|
|
1930
1930
|
label: m.setting.desc,
|
|
1931
1931
|
type: "textarea",
|
|
1932
1932
|
modelValue: s.value,
|
|
1933
|
-
"onUpdate:modelValue":
|
|
1933
|
+
"onUpdate:modelValue": b[0] || (b[0] = (p) => s.value = p),
|
|
1934
1934
|
prop: e.setting.name,
|
|
1935
1935
|
placeholder: m.setting.options.placeholder,
|
|
1936
1936
|
disabled: m.setting.options.isInputEdit || a(u),
|
|
@@ -1946,7 +1946,7 @@ const _a = (n, e) => {
|
|
|
1946
1946
|
m.setting.options.isEditor && o.value ? (V(), P(a(U), {
|
|
1947
1947
|
key: 1,
|
|
1948
1948
|
modelValue: s.value,
|
|
1949
|
-
"onUpdate:modelValue":
|
|
1949
|
+
"onUpdate:modelValue": b[2] || (b[2] = (p) => s.value = p),
|
|
1950
1950
|
prop: e.setting.name,
|
|
1951
1951
|
contentWidth: c.value,
|
|
1952
1952
|
label: m.setting.desc,
|
|
@@ -1956,12 +1956,12 @@ const _a = (n, e) => {
|
|
|
1956
1956
|
readOnly: e.isView
|
|
1957
1957
|
}, {
|
|
1958
1958
|
default: R(() => [
|
|
1959
|
-
|
|
1959
|
+
N(a(Ae), {
|
|
1960
1960
|
ref: "editor",
|
|
1961
1961
|
width: c.value,
|
|
1962
1962
|
height: _.value,
|
|
1963
1963
|
modelValue: s.value,
|
|
1964
|
-
"onUpdate:modelValue":
|
|
1964
|
+
"onUpdate:modelValue": b[1] || (b[1] = (p) => s.value = p),
|
|
1965
1965
|
placeholder: m.setting.options.placeholder
|
|
1966
1966
|
}, null, 8, ["width", "height", "modelValue", "placeholder"])
|
|
1967
1967
|
]),
|
|
@@ -1994,11 +1994,11 @@ const _a = (n, e) => {
|
|
|
1994
1994
|
store: {}
|
|
1995
1995
|
},
|
|
1996
1996
|
setup(n) {
|
|
1997
|
-
const e = n, { showData: t, disabledData: l, setData: d, getData: i, setFormRule:
|
|
1997
|
+
const e = n, { showData: t, disabledData: l, setData: d, getData: i, setFormRule: y, deleteRule: w } = e.store || {}, s = r(), o = r(!0);
|
|
1998
1998
|
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), L(
|
|
1999
1999
|
() => t.value,
|
|
2000
2000
|
() => {
|
|
2001
|
-
o.value = t.value[e.setting.name], o.value || (s.value = null, w(e.setting.name)), o.value && e.setting.options.validateList.length &&
|
|
2001
|
+
o.value = t.value[e.setting.name], o.value || (s.value = null, w(e.setting.name)), o.value && e.setting.options.validateList.length && y(e.setting.name, e.setting.options.validateList);
|
|
2002
2002
|
},
|
|
2003
2003
|
{ deep: !0, immediate: !0 }
|
|
2004
2004
|
);
|
|
@@ -2010,7 +2010,7 @@ const _a = (n, e) => {
|
|
|
2010
2010
|
return e.setting.options.tip && (v.value = W(e.setting.options.tip)), setTimeout(() => {
|
|
2011
2011
|
const c = fe().format("YYYY-MM-DD ");
|
|
2012
2012
|
i(e.setting.name) && (s.value = i(e.setting.name)), e.setting.options.formulasDiyJs && (s.value = fe(c + e.setting.options.formulasDiyJs)), s.value || d(e.setting.name, null);
|
|
2013
|
-
}, 50), e.setting.options.validateList.length &&
|
|
2013
|
+
}, 50), e.setting.options.validateList.length && y(e.setting.name, e.setting.options.validateList), L(s, (c) => {
|
|
2014
2014
|
d(e.setting.name, c);
|
|
2015
2015
|
}), (c, _) => o.value ? (V(), P(a(U), {
|
|
2016
2016
|
key: 0,
|
|
@@ -2259,7 +2259,7 @@ const an = { ...ut, ...pt }, nn = (n, e, t, l) => {
|
|
|
2259
2259
|
alpha_num: bn,
|
|
2260
2260
|
regex: _n
|
|
2261
2261
|
}, Cn = () => {
|
|
2262
|
-
const n = r({}), e = r([]), t = r({}), l = r({}), d = r([]), i = r(""),
|
|
2262
|
+
const n = r({}), e = r([]), t = r({}), l = r({}), d = r([]), i = r(""), y = r(""), w = r({}), s = r([]), o = r({});
|
|
2263
2263
|
return {
|
|
2264
2264
|
data: n,
|
|
2265
2265
|
formData: e,
|
|
@@ -2269,35 +2269,38 @@ const an = { ...ut, ...pt }, nn = (n, e, t, l) => {
|
|
|
2269
2269
|
flowKey: i,
|
|
2270
2270
|
linkData: o,
|
|
2271
2271
|
encryptionData: s,
|
|
2272
|
-
setData: (D,
|
|
2272
|
+
setData: (D, f) => {
|
|
2273
2273
|
e.value.forEach((z) => {
|
|
2274
|
-
z.formKey ===
|
|
2274
|
+
z.formKey === y.value && (z.data[D] = f, n.value[D] = f);
|
|
2275
2275
|
});
|
|
2276
2276
|
},
|
|
2277
2277
|
setDetailData: (D) => {
|
|
2278
|
-
n.value = D, e.value.forEach((
|
|
2279
|
-
|
|
2278
|
+
n.value = D, e.value.forEach((f) => {
|
|
2279
|
+
f.formKey === y.value && (f.data = D);
|
|
2280
2280
|
});
|
|
2281
2281
|
},
|
|
2282
|
-
setLinkData: (D,
|
|
2283
|
-
o.value = { data: D, val:
|
|
2282
|
+
setLinkData: (D, f) => {
|
|
2283
|
+
o.value = { data: D, val: f };
|
|
2284
|
+
},
|
|
2285
|
+
getData: (D) => {
|
|
2286
|
+
var f;
|
|
2287
|
+
return n.value[D] || ((f = e.value.find((z) => z.formKey === y.value)) == null ? void 0 : f.data[D]);
|
|
2284
2288
|
},
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
h.value = D, d.value.includes(D) ? e.value.forEach((K) => {
|
|
2289
|
+
setFormData: (D, f, z) => {
|
|
2290
|
+
y.value = D, d.value.includes(D) ? e.value.forEach((K) => {
|
|
2288
2291
|
K.formKey === D && (n.value = K.data);
|
|
2289
2292
|
}) : (d.value.push(D), e.value.push({
|
|
2290
2293
|
formKey: D,
|
|
2291
|
-
boKey:
|
|
2294
|
+
boKey: f,
|
|
2292
2295
|
reportId: z || null,
|
|
2293
2296
|
data: {}
|
|
2294
2297
|
}));
|
|
2295
2298
|
},
|
|
2296
2299
|
getFormData: () => e.value,
|
|
2297
|
-
setFormRule: (D,
|
|
2298
|
-
w.value[D] = [],
|
|
2300
|
+
setFormRule: (D, f) => {
|
|
2301
|
+
w.value[D] = [], f && f.length && f.forEach((z) => {
|
|
2299
2302
|
w.value[D].push({
|
|
2300
|
-
validator: (K,
|
|
2303
|
+
validator: (K, k, S) => wn[z.key](K, k, S, z)
|
|
2301
2304
|
});
|
|
2302
2305
|
});
|
|
2303
2306
|
},
|
|
@@ -2328,8 +2331,8 @@ const an = { ...ut, ...pt }, nn = (n, e, t, l) => {
|
|
|
2328
2331
|
},
|
|
2329
2332
|
emits: ["handleClick", "change"],
|
|
2330
2333
|
setup(n, { expose: e, emit: t }) {
|
|
2331
|
-
const l = Cn(), { formRule: d, data: i, flowKey:
|
|
2332
|
-
|
|
2334
|
+
const l = Cn(), { formRule: d, data: i, flowKey: y, clearData: w, getFormData: s } = l, o = n, u = t;
|
|
2335
|
+
y.value = o.flowKey;
|
|
2333
2336
|
const g = (z) => z === "accordion";
|
|
2334
2337
|
L(
|
|
2335
2338
|
() => i.value,
|
|
@@ -2346,14 +2349,14 @@ const an = { ...ut, ...pt }, nn = (n, e, t, l) => {
|
|
|
2346
2349
|
isShowPage: c,
|
|
2347
2350
|
btnList: _,
|
|
2348
2351
|
activityKeys: m,
|
|
2349
|
-
getForm:
|
|
2352
|
+
getForm: b,
|
|
2350
2353
|
getBtnSet: p,
|
|
2351
|
-
handleClick:
|
|
2354
|
+
handleClick: h,
|
|
2352
2355
|
validateFormData: D,
|
|
2353
|
-
getFormRef:
|
|
2356
|
+
getFormRef: f
|
|
2354
2357
|
} = ta(o, u, l);
|
|
2355
2358
|
return vt(async () => {
|
|
2356
|
-
o.isShowBtn == !1 ?
|
|
2359
|
+
o.isShowBtn == !1 ? b(o.formConfigurationId) : p();
|
|
2357
2360
|
}), e({
|
|
2358
2361
|
validateFormData: D,
|
|
2359
2362
|
clearData: w
|
|
@@ -2362,15 +2365,15 @@ const an = { ...ut, ...pt }, nn = (n, e, t, l) => {
|
|
|
2362
2365
|
(V(!0), J(
|
|
2363
2366
|
ee,
|
|
2364
2367
|
null,
|
|
2365
|
-
pe(a(_), (
|
|
2366
|
-
key:
|
|
2368
|
+
pe(a(_), (k) => (V(), P(a(bt), {
|
|
2369
|
+
key: k.id,
|
|
2367
2370
|
style: { "margin-right": "20px" },
|
|
2368
2371
|
"btn-type": "primary",
|
|
2369
|
-
onClick: (
|
|
2372
|
+
onClick: (S) => a(h)(k)
|
|
2370
2373
|
}, {
|
|
2371
2374
|
default: R(() => [
|
|
2372
2375
|
se(
|
|
2373
|
-
oe(
|
|
2376
|
+
oe(k.name),
|
|
2374
2377
|
1
|
|
2375
2378
|
/* TEXT */
|
|
2376
2379
|
)
|
|
@@ -2392,28 +2395,28 @@ const an = { ...ut, ...pt }, nn = (n, e, t, l) => {
|
|
|
2392
2395
|
(V(!0), J(
|
|
2393
2396
|
ee,
|
|
2394
2397
|
null,
|
|
2395
|
-
pe(a(v), (
|
|
2398
|
+
pe(a(v), (k) => (V(), J(
|
|
2396
2399
|
ee,
|
|
2397
2400
|
{
|
|
2398
|
-
key:
|
|
2401
|
+
key: k.name
|
|
2399
2402
|
},
|
|
2400
2403
|
[
|
|
2401
|
-
g(
|
|
2404
|
+
g(k.ctrlType) ? (V(), P(a(Qe), {
|
|
2402
2405
|
key: 0,
|
|
2403
2406
|
style: { "margin-bottom": "10px" },
|
|
2404
|
-
collapsible:
|
|
2407
|
+
collapsible: k.options.accordion ? "" : "disabled",
|
|
2405
2408
|
activeKey: a(m)
|
|
2406
2409
|
}, {
|
|
2407
2410
|
default: R(() => [
|
|
2408
2411
|
(V(), P(a(Ue), {
|
|
2409
|
-
key:
|
|
2410
|
-
header:
|
|
2412
|
+
key: k.key,
|
|
2413
|
+
header: k.columns[0].span
|
|
2411
2414
|
}, {
|
|
2412
2415
|
default: R(() => [
|
|
2413
2416
|
a(c) ? (V(), P(a(je), {
|
|
2414
2417
|
key: 0,
|
|
2415
2418
|
ref_for: !0,
|
|
2416
|
-
ref: (
|
|
2419
|
+
ref: (S) => a(f)(S, k),
|
|
2417
2420
|
cols: 24,
|
|
2418
2421
|
alignType: "horizontal",
|
|
2419
2422
|
"margin-right": "80px",
|
|
@@ -2425,20 +2428,20 @@ const an = { ...ut, ...pt }, nn = (n, e, t, l) => {
|
|
|
2425
2428
|
(V(!0), J(
|
|
2426
2429
|
ee,
|
|
2427
2430
|
null,
|
|
2428
|
-
pe(
|
|
2431
|
+
pe(k.columns[0].list, (S) => (V(), J(
|
|
2429
2432
|
ee,
|
|
2430
2433
|
{
|
|
2431
|
-
key:
|
|
2434
|
+
key: k.name
|
|
2432
2435
|
},
|
|
2433
2436
|
[
|
|
2434
|
-
|
|
2437
|
+
S.ctrlType == "grid" ? (V(), P(me(a(de).grid), {
|
|
2435
2438
|
key: 0,
|
|
2436
|
-
setting:
|
|
2439
|
+
setting: S,
|
|
2437
2440
|
isView: o.isView,
|
|
2438
2441
|
store: a(l)
|
|
2439
|
-
}, null, 8, ["setting", "isView", "store"])) : (V(), P(me(a(de)[
|
|
2442
|
+
}, null, 8, ["setting", "isView", "store"])) : (V(), P(me(a(de)[S.ctrlType]), {
|
|
2440
2443
|
key: 1,
|
|
2441
|
-
setting:
|
|
2444
|
+
setting: S,
|
|
2442
2445
|
isView: o.isView,
|
|
2443
2446
|
store: a(l)
|
|
2444
2447
|
}, null, 8, ["setting", "isView", "store"]))
|
|
@@ -2464,7 +2467,7 @@ const an = { ...ut, ...pt }, nn = (n, e, t, l) => {
|
|
|
2464
2467
|
a(c) ? (V(), P(a(je), {
|
|
2465
2468
|
key: 0,
|
|
2466
2469
|
ref_for: !0,
|
|
2467
|
-
ref: (
|
|
2470
|
+
ref: (S) => a(f)(S, k),
|
|
2468
2471
|
cols: 24,
|
|
2469
2472
|
"auto-margin-right": "",
|
|
2470
2473
|
alignType: "horizontal",
|
|
@@ -2473,8 +2476,8 @@ const an = { ...ut, ...pt }, nn = (n, e, t, l) => {
|
|
|
2473
2476
|
form: a(l).data
|
|
2474
2477
|
}, {
|
|
2475
2478
|
default: R(() => [
|
|
2476
|
-
(V(), P(me(a(de)[
|
|
2477
|
-
setting:
|
|
2479
|
+
(V(), P(me(a(de)[k.ctrlType]), {
|
|
2480
|
+
setting: k,
|
|
2478
2481
|
isView: o.isView,
|
|
2479
2482
|
store: a(l)
|
|
2480
2483
|
}, null, 8, ["setting", "isView", "store"]))
|