@das-fed/ui 7.0.7-hot.20 → 7.0.7-hot.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,83 +1,83 @@
|
|
|
1
1
|
import '@das-fed/ui/packages/business-components/process-form/style.css';
|
|
2
|
-
import { withInstall as
|
|
3
|
-
import { ref as r, nextTick as
|
|
4
|
-
import { DasFormRef as
|
|
5
|
-
import { DasButton as
|
|
6
|
-
import { vOverlay as
|
|
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 S, createElementVNode as Ke, 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
|
+
import { DasFormRef as yt, DasForm as je } from "@das-fed/ui/packages/components/form/index";
|
|
5
|
+
import { DasButton as bt } from "@das-fed/ui/packages/components/button/index";
|
|
6
|
+
import { vOverlay as _t } from "@das-fed/ui/packages/components/overlay/index";
|
|
7
7
|
import { createService as X } from "@das-fed/utils/create-api-service";
|
|
8
|
-
import { DasUpload as
|
|
8
|
+
import { DasUpload as wt } from "@das-fed/ui/packages/components/upload/index";
|
|
9
9
|
import { DasFormItem as U } from "@das-fed/ui/packages/components/form-item/index";
|
|
10
|
-
import { DasAutocomplete as
|
|
10
|
+
import { DasAutocomplete as Ct } from "@das-fed/ui/packages/components/autocomplete/index";
|
|
11
11
|
import fe from "dayjs";
|
|
12
12
|
import { DasImageViewer as Be } from "@das-fed/ui/packages/components/image-viewer/index";
|
|
13
|
-
import { DasInput as
|
|
14
|
-
import { DasTooltip as
|
|
15
|
-
import { i18n as A, t as C, setI18nRule as
|
|
13
|
+
import { DasInput as Dt } from "@das-fed/ui/packages/components/input/index";
|
|
14
|
+
import { DasTooltip as Se } from "@das-fed/ui/packages/components/tooltip/index";
|
|
15
|
+
import { i18n as A, t as C, setI18nRule as Vt } from "@das-fed/web/packages/i18n/index";
|
|
16
16
|
import { DasTableColumn as I } from "@das-fed/ui/packages/components/table/index";
|
|
17
|
-
import { DasSearchForm as
|
|
18
|
-
import { DasModelTableDialog as
|
|
17
|
+
import { DasSearchForm as kt } from "@das-fed/ui/packages/components/search-form/index";
|
|
18
|
+
import { DasModelTableDialog as St } from "@das-fed/ui/packages/business-components/model-table-dialog";
|
|
19
19
|
import { getProjectInfo as Ee } from "@das-fed/utils/common-info";
|
|
20
|
-
import { getConfig as
|
|
21
|
-
import { DasRichEditor as
|
|
22
|
-
import { DasCollaspe as
|
|
23
|
-
import { DasCollaspePanel as
|
|
24
|
-
const ae = "v1",
|
|
20
|
+
import { getConfig as Nt } from "@das-fed/utils/config";
|
|
21
|
+
import { DasRichEditor as Ae } from "@das-fed/ui/packages/components/rich-editor/index";
|
|
22
|
+
import { DasCollaspe as Qe } from "@das-fed/ui/packages/components/collaspe/index";
|
|
23
|
+
import { DasCollaspePanel as Ue } from "@das-fed/ui/packages/components/collapse-panel/index";
|
|
24
|
+
const ae = "v1", Lt = X(`/workflow/form/form/${ae}`), zt = X(`/workflow/form/formDef/${ae}`);
|
|
25
25
|
X(`/workflow/api/user/${ae}`);
|
|
26
|
-
const
|
|
27
|
-
|
|
28
|
-
const
|
|
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
|
+
xe.get("/application-report");
|
|
28
|
+
const Ot = Mt.get("/getBindRelationByDefKey"), qt = Tt.get("/getByAlias"), Kt = 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
|
-
return
|
|
31
|
-
page: ((e =
|
|
32
|
-
pageSize: ((t =
|
|
33
|
-
},
|
|
34
|
-
}),
|
|
35
|
-
const { setDetailData: l, getFormData: d, setFormData: i, formRule:
|
|
36
|
-
const [
|
|
37
|
-
if (
|
|
38
|
-
const H = JSON.parse(
|
|
39
|
-
|
|
40
|
-
G.formKey ===
|
|
30
|
+
return n.data.pageBean = {
|
|
31
|
+
page: ((e = n == null ? void 0 : n.data) == null ? void 0 : e.pageIndex) || 1,
|
|
32
|
+
pageSize: ((t = n == null ? void 0 : n.data) == null ? void 0 : t.pageSize) || 20
|
|
33
|
+
}, n;
|
|
34
|
+
}), 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: h, showData: w, disabledData: s, encryptionData: o } = t, u = r([]), g = r([]), v = r([]), c = r(!1), _ = yt(), m = r([]), y = (k) => Object.keys(k).length === 0, p = async (k) => {
|
|
36
|
+
const [B, q] = await Ft({ formId: k }).run();
|
|
37
|
+
if (B) return;
|
|
38
|
+
const H = JSON.parse(q.bos);
|
|
39
|
+
we.value = H[0].alias, g.value.length && g.value.forEach((G) => {
|
|
40
|
+
G.formKey === q.formKey && i(q.formKey, we.value, G.id);
|
|
41
41
|
});
|
|
42
|
-
const [ne, te] = await
|
|
42
|
+
const [ne, te] = await It({ formDefId: q.defId }).run();
|
|
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
|
-
}),
|
|
46
|
-
w.value = { ...w.value, ...
|
|
45
|
+
}), s.value = { ...s.value, ...n.disabledData }, g.value.length || i(q.formKey, we.value), setTimeout(() => {
|
|
46
|
+
w.value = { ...w.value, ...n.showData }, y(n.data) && (c.value = !0), y(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
|
-
},
|
|
49
|
-
if (
|
|
50
|
-
const [k,
|
|
48
|
+
}, f = async () => {
|
|
49
|
+
if (n.formConfigurationId) {
|
|
50
|
+
const [k, B] = await jt({ id: n.formConfigurationId }).run();
|
|
51
51
|
if (k) return;
|
|
52
|
-
g.value =
|
|
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
|
-
if (
|
|
55
|
-
const [k,
|
|
54
|
+
if (n.flowKey) {
|
|
55
|
+
const [k, B] = await Ot({ flowKey: n.flowKey }).run();
|
|
56
56
|
if (k) return;
|
|
57
|
-
|
|
57
|
+
p(B.pcForm.pcFormId);
|
|
58
58
|
}
|
|
59
59
|
}, D = async () => {
|
|
60
|
-
var
|
|
61
|
-
if (!
|
|
62
|
-
const [k,
|
|
63
|
-
flowKey:
|
|
60
|
+
var q, H, ne, te;
|
|
61
|
+
if (!n.flowKey) return;
|
|
62
|
+
const [k, B] = await Pt().run({
|
|
63
|
+
flowKey: n.flowKey,
|
|
64
64
|
needDisplayFileds: !1
|
|
65
65
|
});
|
|
66
|
-
o.value = ((te = (ne = (H = (
|
|
67
|
-
}, b = r({}), z = (k,
|
|
68
|
-
const { key:
|
|
69
|
-
b.value[
|
|
70
|
-
},
|
|
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
|
+
}, b = r({}), z = (k, B) => {
|
|
68
|
+
const { key: q } = B;
|
|
69
|
+
b.value[q] || (b.value[q] = k);
|
|
70
|
+
}, K = async () => (v.value.forEach((k) => {
|
|
71
71
|
k.columns && m.value.push(k.key);
|
|
72
|
-
}), await
|
|
73
|
-
let
|
|
72
|
+
}), await ct(), new Promise((k, B) => {
|
|
73
|
+
let q = !0;
|
|
74
74
|
for (const H in b.value)
|
|
75
75
|
b.value[H].validate((ne) => {
|
|
76
|
-
ne == !1 && (
|
|
76
|
+
ne == !1 && (q = !1);
|
|
77
77
|
});
|
|
78
78
|
setTimeout(() => {
|
|
79
79
|
k({
|
|
80
|
-
result:
|
|
80
|
+
result: q,
|
|
81
81
|
data: d()
|
|
82
82
|
});
|
|
83
83
|
}, 50);
|
|
@@ -85,43 +85,62 @@ const jt = zt.get("/getBindRelationByDefKey"), qt = Mt.get("/getByAlias"), Ot =
|
|
|
85
85
|
return {
|
|
86
86
|
isShowPage: c,
|
|
87
87
|
formJsonList: v,
|
|
88
|
-
btnList:
|
|
88
|
+
btnList: u,
|
|
89
89
|
formRef: _,
|
|
90
90
|
activityKeys: m,
|
|
91
|
-
getForm:
|
|
92
|
-
getBtnSet:
|
|
91
|
+
getForm: p,
|
|
92
|
+
getBtnSet: f,
|
|
93
93
|
handleClick: async (k) => {
|
|
94
|
-
let { result:
|
|
95
|
-
|
|
96
|
-
k.eventTarget ===
|
|
94
|
+
let { result: B } = await K();
|
|
95
|
+
B && (e("handleClick", k, d()), k.event === "LINK" && g.value.forEach((q) => {
|
|
96
|
+
k.eventTarget === q.formKey && (u.value = q.buttons.filter((H) => !(n.isView && H.event !== "LINK")), c.value = !1, h.value = {}, p(q.formId));
|
|
97
97
|
}));
|
|
98
98
|
},
|
|
99
|
-
validateFormData:
|
|
99
|
+
validateFormData: K,
|
|
100
100
|
getFormRef: z
|
|
101
101
|
};
|
|
102
|
-
}
|
|
103
|
-
|
|
102
|
+
};
|
|
103
|
+
let aa = (n = 21) => {
|
|
104
|
+
let e = "", t = crypto.getRandomValues(new Uint8Array(n));
|
|
105
|
+
for (; n--; ) {
|
|
106
|
+
let l = t[n] & 63;
|
|
107
|
+
l < 36 ? e += l.toString(36) : l < 62 ? e += (l - 26).toString(36).toUpperCase() : l < 63 ? e += "_" : e += "-";
|
|
108
|
+
}
|
|
109
|
+
return e;
|
|
110
|
+
};
|
|
111
|
+
const W = (n) => {
|
|
112
|
+
var e = new RegExp("<.+?>", "g"), t = n.replace(e, "").replace(/ /g, "");
|
|
104
113
|
return t;
|
|
105
|
-
}, ie = async (
|
|
106
|
-
const [l, d] = await qt({ alias:
|
|
114
|
+
}, ie = async (n, e, t = {}) => {
|
|
115
|
+
const [l, d] = await qt({ alias: n }).run();
|
|
107
116
|
if (!l && d.url) {
|
|
108
117
|
typeof e == "string" && (e = JSON.parse(e));
|
|
109
118
|
const i = r({});
|
|
110
119
|
e.forEach((o) => {
|
|
111
120
|
o.defaultType == 2 && (i.value[o.field] = o.defaultValue);
|
|
112
121
|
}), i.value = { ...i.value, ...t };
|
|
113
|
-
const
|
|
114
|
-
return w ? void 0 :
|
|
122
|
+
const h = d.requestType === "POST" ? X(d.url).post("") : X(d.url).get(""), [w, s] = await h({}, { params: i.value }).run();
|
|
123
|
+
return w ? void 0 : s;
|
|
115
124
|
}
|
|
116
|
-
}, Z = async (
|
|
125
|
+
}, Z = async (n) => {
|
|
117
126
|
const e = r(!1);
|
|
118
|
-
return
|
|
127
|
+
return n.forEach((t) => {
|
|
119
128
|
t.key === "required" && (e.value = !0);
|
|
120
129
|
}), e.value;
|
|
121
|
-
},
|
|
130
|
+
}, he = (n) => {
|
|
131
|
+
if (Array.isArray(n))
|
|
132
|
+
return n.map((t) => he(t));
|
|
133
|
+
if (typeof n != "object" || n === null)
|
|
134
|
+
return n;
|
|
135
|
+
const e = { ...n };
|
|
136
|
+
(!e.hasOwnProperty("id") || e.id === null || e.id === void 0 || e.id === "") && (e.id = aa());
|
|
137
|
+
for (const t in e)
|
|
138
|
+
Object.prototype.hasOwnProperty.call(e, t) && (e[t] = he(e[t]));
|
|
139
|
+
return e;
|
|
140
|
+
}, na = {
|
|
122
141
|
name: "attachment"
|
|
123
|
-
},
|
|
124
|
-
...
|
|
142
|
+
}, sa = /* @__PURE__ */ Q({
|
|
143
|
+
...na,
|
|
125
144
|
props: {
|
|
126
145
|
setting: { default: () => ({
|
|
127
146
|
icon: "",
|
|
@@ -135,43 +154,43 @@ const jt = zt.get("/getBindRelationByDefKey"), qt = Mt.get("/getByAlias"), Ot =
|
|
|
135
154
|
marginRight: {},
|
|
136
155
|
store: {}
|
|
137
156
|
},
|
|
138
|
-
setup(
|
|
139
|
-
const e =
|
|
157
|
+
setup(n) {
|
|
158
|
+
const e = n, { showData: t, disabledData: l, setData: d, getData: i, setFormRule: h, deleteRule: w } = e.store || {}, s = r([]), o = r(!0);
|
|
140
159
|
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), L(
|
|
141
160
|
() => t.value,
|
|
142
161
|
() => {
|
|
143
|
-
o.value = t.value[e.setting.name], o.value || (
|
|
162
|
+
o.value = t.value[e.setting.name], o.value || (s.value = [], w(e.setting.name)), o.value && e.setting.options.validateList.length && h(e.setting.name, e.setting.options.validateList);
|
|
144
163
|
},
|
|
145
164
|
{ deep: !0, immediate: !0 }
|
|
146
165
|
);
|
|
147
|
-
const
|
|
148
|
-
return e.setting.options.tip && (
|
|
166
|
+
const u = r();
|
|
167
|
+
return e.setting.options.tip && (u.value = W(e.setting.options.tip)), s.value || d(e.setting.name, null), L(s, (g) => {
|
|
149
168
|
d(e.setting.name, JSON.stringify(g));
|
|
150
169
|
}), (g, v) => o.value ? (V(), P(a(U), {
|
|
151
170
|
key: 0,
|
|
152
171
|
col: e.span,
|
|
153
172
|
label: g.setting.desc,
|
|
154
173
|
type: "custom",
|
|
155
|
-
helpMessage:
|
|
174
|
+
helpMessage: u.value
|
|
156
175
|
}, {
|
|
157
176
|
default: R(() => [
|
|
158
|
-
S(a(
|
|
177
|
+
S(a(wt), {
|
|
159
178
|
style: { width: "100%" },
|
|
160
|
-
modelValue:
|
|
161
|
-
"onUpdate:modelValue": v[0] || (v[0] = (c) =>
|
|
179
|
+
modelValue: s.value,
|
|
180
|
+
"onUpdate:modelValue": v[0] || (v[0] = (c) => s.value = c)
|
|
162
181
|
}, null, 8, ["modelValue"])
|
|
163
182
|
]),
|
|
164
183
|
_: 1
|
|
165
184
|
/* STABLE */
|
|
166
|
-
}, 8, ["col", "label", "helpMessage"])) :
|
|
185
|
+
}, 8, ["col", "label", "helpMessage"])) : O("v-if", !0);
|
|
167
186
|
}
|
|
168
|
-
}),
|
|
187
|
+
}), Ye = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
169
188
|
__proto__: null,
|
|
170
|
-
default:
|
|
171
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
189
|
+
default: sa
|
|
190
|
+
}, Symbol.toStringTag, { value: "Module" })), oa = {
|
|
172
191
|
name: "autocomplete"
|
|
173
|
-
},
|
|
174
|
-
...
|
|
192
|
+
}, la = /* @__PURE__ */ Q({
|
|
193
|
+
...oa,
|
|
175
194
|
props: {
|
|
176
195
|
setting: { default: () => ({
|
|
177
196
|
icon: "",
|
|
@@ -185,62 +204,63 @@ const jt = zt.get("/getBindRelationByDefKey"), qt = Mt.get("/getByAlias"), Ot =
|
|
|
185
204
|
marginRight: {},
|
|
186
205
|
store: {}
|
|
187
206
|
},
|
|
188
|
-
setup(
|
|
189
|
-
const e =
|
|
207
|
+
setup(n) {
|
|
208
|
+
const e = n, { showData: t, disabledData: l, setData: d, getData: i, setFormRule: h, deleteRule: w } = e.store || {}, s = r(""), o = r(!0);
|
|
190
209
|
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), L(
|
|
191
210
|
() => t.value,
|
|
192
211
|
() => {
|
|
193
|
-
o.value = t.value[e.setting.name], o.value || (
|
|
212
|
+
o.value = t.value[e.setting.name], o.value || (s.value = "", w(e.setting.name)), o.value && e.setting.options.validateList.length && h(e.setting.name, e.setting.options.validateList);
|
|
194
213
|
},
|
|
195
214
|
{ deep: !0, immediate: !0 }
|
|
196
215
|
);
|
|
197
|
-
const
|
|
198
|
-
Z(e.setting.options.validateList).then((
|
|
199
|
-
g.value =
|
|
216
|
+
const u = l.value[e.setting.name] || !1, g = r(!1);
|
|
217
|
+
Z(e.setting.options.validateList).then((f) => {
|
|
218
|
+
g.value = f;
|
|
200
219
|
});
|
|
201
|
-
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([]);
|
|
202
|
-
e.setting.options.customQuery.alias ? ie(e.setting.options.customQuery.alias, e.setting.options.customQuery.conditionfield).then((
|
|
203
|
-
|
|
204
|
-
}) :
|
|
205
|
-
const
|
|
206
|
-
return e.setting.options.tip && (
|
|
207
|
-
d(e.setting.name,
|
|
208
|
-
}), (
|
|
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"), y = r([]);
|
|
221
|
+
e.setting.options.customQuery.alias ? ie(e.setting.options.customQuery.alias, e.setting.options.customQuery.conditionfield).then((f) => {
|
|
222
|
+
y.value = he(f);
|
|
223
|
+
}) : y.value = he(e.setting.options.options);
|
|
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 && h(e.setting.name, e.setting.options.validateList), L(s, (f) => {
|
|
226
|
+
d(e.setting.name, f.toString());
|
|
227
|
+
}), (f, D) => o.value ? (V(), P(a(U), {
|
|
209
228
|
key: 0,
|
|
210
229
|
col: e.span,
|
|
211
230
|
prop: e.setting.name,
|
|
212
|
-
modelValue:
|
|
213
|
-
"onUpdate:modelValue":
|
|
214
|
-
label:
|
|
231
|
+
modelValue: s.value,
|
|
232
|
+
"onUpdate:modelValue": D[1] || (D[1] = (b) => s.value = b),
|
|
233
|
+
label: f.setting.desc,
|
|
215
234
|
type: "custom",
|
|
216
|
-
helpMessage:
|
|
235
|
+
helpMessage: p.value,
|
|
217
236
|
required: g.value,
|
|
218
|
-
disabled: a(
|
|
237
|
+
disabled: a(u)
|
|
219
238
|
}, {
|
|
220
239
|
default: R(() => [
|
|
221
|
-
S(a(
|
|
222
|
-
modelValue:
|
|
223
|
-
"onUpdate:modelValue":
|
|
224
|
-
options:
|
|
240
|
+
S(a(Ct), {
|
|
241
|
+
modelValue: s.value,
|
|
242
|
+
"onUpdate:modelValue": D[0] || (D[0] = (b) => s.value = b),
|
|
243
|
+
options: y.value,
|
|
225
244
|
isView: e.isView,
|
|
226
245
|
width: "100%",
|
|
227
246
|
fieldNames: { label: a(v), children: a(c) },
|
|
228
247
|
showFullPath: a(_),
|
|
229
|
-
placeholder:
|
|
230
|
-
clearable: ""
|
|
231
|
-
|
|
248
|
+
placeholder: f.setting.options.placeholder,
|
|
249
|
+
clearable: "",
|
|
250
|
+
nodeKey: m.value
|
|
251
|
+
}, null, 8, ["modelValue", "options", "isView", "fieldNames", "showFullPath", "placeholder", "nodeKey"])
|
|
232
252
|
]),
|
|
233
253
|
_: 1
|
|
234
254
|
/* STABLE */
|
|
235
|
-
}, 8, ["col", "prop", "modelValue", "label", "helpMessage", "required", "disabled"])) :
|
|
255
|
+
}, 8, ["col", "prop", "modelValue", "label", "helpMessage", "required", "disabled"])) : O("v-if", !0);
|
|
236
256
|
}
|
|
237
|
-
}),
|
|
257
|
+
}), Je = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
238
258
|
__proto__: null,
|
|
239
|
-
default:
|
|
240
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
259
|
+
default: la
|
|
260
|
+
}, Symbol.toStringTag, { value: "Module" })), ia = {
|
|
241
261
|
name: "checkbox"
|
|
242
|
-
},
|
|
243
|
-
...
|
|
262
|
+
}, ra = /* @__PURE__ */ Q({
|
|
263
|
+
...ia,
|
|
244
264
|
props: {
|
|
245
265
|
setting: { default: () => ({
|
|
246
266
|
icon: "",
|
|
@@ -254,53 +274,53 @@ const jt = zt.get("/getBindRelationByDefKey"), qt = Mt.get("/getByAlias"), Ot =
|
|
|
254
274
|
marginRight: {},
|
|
255
275
|
store: {}
|
|
256
276
|
},
|
|
257
|
-
setup(
|
|
258
|
-
const e =
|
|
277
|
+
setup(n) {
|
|
278
|
+
const e = n, { showData: t, disabledData: l, setData: d, getData: i, setFormRule: h, deleteRule: w } = e.store || {}, s = r([]), o = r(!0);
|
|
259
279
|
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), L(
|
|
260
280
|
() => t.value,
|
|
261
281
|
() => {
|
|
262
|
-
o.value = t.value[e.setting.name], o.value || (
|
|
282
|
+
o.value = t.value[e.setting.name], o.value || (s.value = [], w(e.setting.name)), o.value && e.setting.options.validateList.length && h(e.setting.name, e.setting.options.validateList);
|
|
263
283
|
},
|
|
264
284
|
{ deep: !0, immediate: !0 }
|
|
265
285
|
);
|
|
266
|
-
const
|
|
267
|
-
Z(e.setting.options.validateList).then((
|
|
268
|
-
g.value =
|
|
286
|
+
const u = l.value[e.setting.name] || !1, g = r(!1);
|
|
287
|
+
Z(e.setting.options.validateList).then((y) => {
|
|
288
|
+
g.value = y;
|
|
269
289
|
});
|
|
270
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([]);
|
|
271
|
-
e.setting.options.customQuery.alias ? ie(e.setting.options.customQuery.alias, e.setting.options.customQuery.conditionfield).then((
|
|
272
|
-
_.value =
|
|
291
|
+
e.setting.options.customQuery.alias ? ie(e.setting.options.customQuery.alias, e.setting.options.customQuery.conditionfield).then((y) => {
|
|
292
|
+
_.value = y;
|
|
273
293
|
}) : _.value = e.setting.options.options;
|
|
274
294
|
const m = r();
|
|
275
295
|
return e.setting.options.tip && (m.value = W(e.setting.options.tip)()), setTimeout(() => {
|
|
276
|
-
i(e.setting.name) && (
|
|
277
|
-
}, 50), e.setting.options.validateList.length &&
|
|
278
|
-
d(e.setting.name,
|
|
279
|
-
}), (
|
|
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 && h(e.setting.name, e.setting.options.validateList), L(s, (y) => {
|
|
298
|
+
d(e.setting.name, y.toString());
|
|
299
|
+
}), (y, p) => o.value ? (V(), P(a(U), {
|
|
280
300
|
key: 0,
|
|
281
301
|
col: e.span,
|
|
282
|
-
modelValue:
|
|
283
|
-
"onUpdate:modelValue":
|
|
284
|
-
layout:
|
|
285
|
-
label:
|
|
302
|
+
modelValue: s.value,
|
|
303
|
+
"onUpdate:modelValue": p[0] || (p[0] = (f) => s.value = f),
|
|
304
|
+
layout: y.setting.options.inline ? "vertical" : "default",
|
|
305
|
+
label: y.setting.desc,
|
|
286
306
|
prop: e.setting.name,
|
|
287
307
|
type: "checkbox",
|
|
288
308
|
options: _.value,
|
|
289
309
|
isView: e.isView,
|
|
290
|
-
disabled: a(
|
|
310
|
+
disabled: a(u),
|
|
291
311
|
optionsValueKey: a(v),
|
|
292
312
|
optionsLabelKey: a(c),
|
|
293
313
|
helpMessage: m.value,
|
|
294
314
|
required: g.value
|
|
295
|
-
}, null, 8, ["col", "modelValue", "layout", "label", "prop", "options", "isView", "disabled", "optionsValueKey", "optionsLabelKey", "helpMessage", "required"])) :
|
|
315
|
+
}, null, 8, ["col", "modelValue", "layout", "label", "prop", "options", "isView", "disabled", "optionsValueKey", "optionsLabelKey", "helpMessage", "required"])) : O("v-if", !0);
|
|
296
316
|
}
|
|
297
|
-
}),
|
|
317
|
+
}), He = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
298
318
|
__proto__: null,
|
|
299
|
-
default:
|
|
300
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
319
|
+
default: ra
|
|
320
|
+
}, Symbol.toStringTag, { value: "Module" })), ua = {
|
|
301
321
|
name: "date"
|
|
302
|
-
},
|
|
303
|
-
...
|
|
322
|
+
}, pa = /* @__PURE__ */ Q({
|
|
323
|
+
...ua,
|
|
304
324
|
props: {
|
|
305
325
|
setting: { default: () => ({
|
|
306
326
|
icon: "",
|
|
@@ -314,16 +334,16 @@ const jt = zt.get("/getBindRelationByDefKey"), qt = Mt.get("/getByAlias"), Ot =
|
|
|
314
334
|
marginRight: {},
|
|
315
335
|
store: {}
|
|
316
336
|
},
|
|
317
|
-
setup(
|
|
318
|
-
const e =
|
|
337
|
+
setup(n) {
|
|
338
|
+
const e = n, { showData: t, disabledData: l, setData: d, getData: i, setFormRule: h, deleteRule: w } = e.store || {}, s = r(), o = r(!0);
|
|
319
339
|
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), L(
|
|
320
340
|
() => t.value,
|
|
321
341
|
() => {
|
|
322
|
-
o.value = t.value[e.setting.name], o.value || (
|
|
342
|
+
o.value = t.value[e.setting.name], o.value || (s.value = null, w(e.setting.name)), o.value && e.setting.options.validateList.length && h(e.setting.name, e.setting.options.validateList);
|
|
323
343
|
},
|
|
324
344
|
{ deep: !0, immediate: !0 }
|
|
325
345
|
);
|
|
326
|
-
const
|
|
346
|
+
const u = l.value[e.setting.name] || !1, g = r(!1);
|
|
327
347
|
Z(e.setting.options.validateList).then((m) => {
|
|
328
348
|
g.value = m;
|
|
329
349
|
});
|
|
@@ -331,18 +351,18 @@ const jt = zt.get("/getBindRelationByDefKey"), qt = Mt.get("/getByAlias"), Ot =
|
|
|
331
351
|
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");
|
|
332
352
|
const _ = r();
|
|
333
353
|
if (e.setting.options.tip && (_.value = W(e.setting.options.tip)), setTimeout(() => {
|
|
334
|
-
|
|
354
|
+
s.value = i(e.setting.name) || e.setting.options.formulasDiyJs || s.value, s.value || d(e.setting.name, null);
|
|
335
355
|
}, 50), e.setting.options.showCurrentDate) {
|
|
336
356
|
let m = /* @__PURE__ */ new Date();
|
|
337
|
-
m.setDate(m.getDate() + e.setting.options.day),
|
|
357
|
+
m.setDate(m.getDate() + e.setting.options.day), s.value = fe(m.getTime()).format(v), d(e.setting.name, s.value);
|
|
338
358
|
}
|
|
339
|
-
return e.setting.options.validateList.length &&
|
|
359
|
+
return e.setting.options.validateList.length && h(e.setting.name, e.setting.options.validateList), L(s, (m) => {
|
|
340
360
|
d(e.setting.name, m);
|
|
341
|
-
}), (m,
|
|
361
|
+
}), (m, y) => o.value ? (V(), P(a(U), {
|
|
342
362
|
key: 0,
|
|
343
363
|
col: e.span,
|
|
344
|
-
modelValue:
|
|
345
|
-
"onUpdate:modelValue":
|
|
364
|
+
modelValue: s.value,
|
|
365
|
+
"onUpdate:modelValue": y[0] || (y[0] = (p) => s.value = p),
|
|
346
366
|
label: m.setting.desc,
|
|
347
367
|
prop: e.setting.name,
|
|
348
368
|
type: a(v).indexOf("HH") != -1 ? "dateTime" : "date",
|
|
@@ -350,19 +370,19 @@ const jt = zt.get("/getBindRelationByDefKey"), qt = Mt.get("/getByAlias"), Ot =
|
|
|
350
370
|
valueFormat: "YYYY-MM-DD HH:mm:ss",
|
|
351
371
|
picker: c.value,
|
|
352
372
|
isView: e.isView,
|
|
353
|
-
disabled: a(
|
|
373
|
+
disabled: a(u),
|
|
354
374
|
placeholder: m.setting.options.placeholder,
|
|
355
375
|
helpMessage: _.value,
|
|
356
376
|
required: g.value
|
|
357
|
-
}, null, 8, ["col", "modelValue", "label", "prop", "type", "format", "picker", "isView", "disabled", "placeholder", "helpMessage", "required"])) :
|
|
377
|
+
}, null, 8, ["col", "modelValue", "label", "prop", "type", "format", "picker", "isView", "disabled", "placeholder", "helpMessage", "required"])) : O("v-if", !0);
|
|
358
378
|
}
|
|
359
|
-
}),
|
|
379
|
+
}), We = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
360
380
|
__proto__: null,
|
|
361
|
-
default:
|
|
362
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
381
|
+
default: pa
|
|
382
|
+
}, Symbol.toStringTag, { value: "Module" })), da = {
|
|
363
383
|
name: "dropdown"
|
|
364
|
-
},
|
|
365
|
-
...
|
|
384
|
+
}, ca = /* @__PURE__ */ Q({
|
|
385
|
+
...da,
|
|
366
386
|
props: {
|
|
367
387
|
setting: { default: () => ({
|
|
368
388
|
icon: "",
|
|
@@ -376,35 +396,35 @@ const jt = zt.get("/getBindRelationByDefKey"), qt = Mt.get("/getByAlias"), Ot =
|
|
|
376
396
|
marginRight: {},
|
|
377
397
|
store: {}
|
|
378
398
|
},
|
|
379
|
-
setup(
|
|
380
|
-
const e =
|
|
399
|
+
setup(n) {
|
|
400
|
+
const e = n, { showData: t, disabledData: l, setData: d, getData: i, setFormRule: h, deleteRule: w, setLinkData: s } = e.store || {}, o = r(""), u = r(!0);
|
|
381
401
|
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), L(
|
|
382
402
|
() => t.value,
|
|
383
403
|
() => {
|
|
384
|
-
|
|
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 && h(e.setting.name, e.setting.options.validateList);
|
|
385
405
|
},
|
|
386
406
|
{ deep: !0, immediate: !0 }
|
|
387
407
|
);
|
|
388
408
|
const g = () => {
|
|
389
|
-
e.setting.options.customQuery && e.setting.options.customQuery.custQueryJson.length &&
|
|
409
|
+
e.setting.options.customQuery && e.setting.options.customQuery.custQueryJson.length && s(e.setting.options.customQuery.custQueryJson, o.value);
|
|
390
410
|
}, v = l.value[e.setting.name] || !1, c = r(!1);
|
|
391
411
|
Z(e.setting.options.validateList).then((b) => {
|
|
392
412
|
c.value = b;
|
|
393
413
|
});
|
|
394
|
-
const _ = r(""), m = e.setting.options.customQuery.valueBind ? e.setting.options.customQuery.valueBind : "key",
|
|
414
|
+
const _ = r(""), m = e.setting.options.customQuery.valueBind ? e.setting.options.customQuery.valueBind : "key", y = e.setting.options.customQuery.labelBind ? e.setting.options.customQuery.labelBind : "value", p = e.setting.options.customQuery.PId || "children", f = r([]);
|
|
395
415
|
e.setting.options.customQuery.alias && ie(e.setting.options.customQuery.alias, e.setting.options.customQuery.conditionfield).then((b) => {
|
|
396
|
-
|
|
416
|
+
f.value = b;
|
|
397
417
|
});
|
|
398
418
|
const D = r();
|
|
399
|
-
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 &&
|
|
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 && h(e.setting.name, e.setting.options.validateList), L(o, (b) => {
|
|
400
420
|
d(e.setting.name, b.toString());
|
|
401
|
-
}), (b, z) =>
|
|
421
|
+
}), (b, z) => u.value ? (V(), P(a(U), {
|
|
402
422
|
key: 0,
|
|
403
423
|
col: e.span,
|
|
404
424
|
modelValue: o.value,
|
|
405
|
-
"onUpdate:modelValue": z[0] || (z[0] = (
|
|
425
|
+
"onUpdate:modelValue": z[0] || (z[0] = (K) => o.value = K),
|
|
406
426
|
keyword: _.value,
|
|
407
|
-
"onUpdate:keyword": z[1] || (z[1] = (
|
|
427
|
+
"onUpdate:keyword": z[1] || (z[1] = (K) => _.value = K),
|
|
408
428
|
label: b.setting.desc,
|
|
409
429
|
type: "treeSelect",
|
|
410
430
|
"node-key": b.setting.options.customQuery.valueBind,
|
|
@@ -413,23 +433,23 @@ const jt = zt.get("/getBindRelationByDefKey"), qt = Mt.get("/getByAlias"), Ot =
|
|
|
413
433
|
prop: e.setting.name,
|
|
414
434
|
filter: b.setting.options.filterable,
|
|
415
435
|
selectAttrs: { allowClear: !0 },
|
|
416
|
-
options:
|
|
436
|
+
options: f.value,
|
|
417
437
|
isView: e.isView,
|
|
418
438
|
helpMessage: D.value,
|
|
419
439
|
disabled: a(v),
|
|
420
|
-
props: { label: a(
|
|
440
|
+
props: { label: a(y), value: a(m), children: a(p) },
|
|
421
441
|
"check-strictly": !b.setting.options.cascade,
|
|
422
442
|
required: c.value,
|
|
423
443
|
onChange: g
|
|
424
|
-
}, null, 8, ["col", "modelValue", "keyword", "label", "node-key", "placeholder", "mode", "prop", "filter", "options", "isView", "helpMessage", "disabled", "props", "check-strictly", "required"])) :
|
|
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);
|
|
425
445
|
}
|
|
426
|
-
}),
|
|
446
|
+
}), Ze = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
427
447
|
__proto__: null,
|
|
428
|
-
default:
|
|
429
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
448
|
+
default: ca
|
|
449
|
+
}, Symbol.toStringTag, { value: "Module" })), ga = { class: "form-image" }, ma = {
|
|
430
450
|
name: "imageViewer"
|
|
431
|
-
},
|
|
432
|
-
...
|
|
451
|
+
}, va = /* @__PURE__ */ Q({
|
|
452
|
+
...ma,
|
|
433
453
|
props: {
|
|
434
454
|
setting: { default: () => ({
|
|
435
455
|
icon: "",
|
|
@@ -443,40 +463,40 @@ const jt = zt.get("/getBindRelationByDefKey"), qt = Mt.get("/getByAlias"), Ot =
|
|
|
443
463
|
marginRight: {},
|
|
444
464
|
store: {}
|
|
445
465
|
},
|
|
446
|
-
setup(
|
|
447
|
-
const e =
|
|
466
|
+
setup(n) {
|
|
467
|
+
const e = n, { showData: t, disabledData: l, setData: d, getData: i, setFormRule: h, deleteRule: w } = e.store || {}, s = r(), o = r(!0);
|
|
448
468
|
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), L(
|
|
449
469
|
() => t.value,
|
|
450
470
|
() => {
|
|
451
|
-
o.value = t.value[e.setting.name], o.value || (
|
|
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 && h(e.setting.name, e.setting.options.validateList);
|
|
452
472
|
},
|
|
453
473
|
{ deep: !0, immediate: !0 }
|
|
454
474
|
);
|
|
455
|
-
const
|
|
475
|
+
const u = l.value[e.setting.name] || !1, g = r(!1);
|
|
456
476
|
Z(e.setting.options.validateList).then((m) => {
|
|
457
477
|
g.value = m;
|
|
458
478
|
});
|
|
459
479
|
const v = r("normal");
|
|
460
480
|
e.isView && (v.value = "info");
|
|
461
481
|
const c = r();
|
|
462
|
-
e.setting.options.tip && (c.value = W(e.setting.options.tip)),
|
|
482
|
+
e.setting.options.tip && (c.value = W(e.setting.options.tip)), s.value = e.setting.options.file.limit > 1 ? [] : "", e.setting.options.file.limit > 1 && i(e.setting.name) ? s.value = i(e.setting.name).split(",") : s.value = i(e.setting.name) || s.value, s.value || d(e.setting.name, null);
|
|
463
483
|
const _ = (m) => {
|
|
464
484
|
setTimeout(() => {
|
|
465
|
-
d(e.setting.name,
|
|
485
|
+
d(e.setting.name, s.value.toString());
|
|
466
486
|
}, 100);
|
|
467
487
|
};
|
|
468
|
-
return e.setting.options.validateList.length &&
|
|
469
|
-
const
|
|
470
|
-
let
|
|
471
|
-
return
|
|
488
|
+
return e.setting.options.validateList.length && h(e.setting.name, e.setting.options.validateList), L(s.value, (m) => {
|
|
489
|
+
const y = m.map((p) => {
|
|
490
|
+
let f = "";
|
|
491
|
+
return p.indexOf("/oss/") != -1 ? f = p : f = `/oss/${p}`, f;
|
|
472
492
|
});
|
|
473
493
|
setTimeout(() => {
|
|
474
|
-
d(e.setting.name,
|
|
494
|
+
d(e.setting.name, y.join(","));
|
|
475
495
|
}, 100);
|
|
476
|
-
}), (m,
|
|
496
|
+
}), (m, y) => o.value ? (V(), P(a(U), {
|
|
477
497
|
key: 0,
|
|
478
|
-
modelValue:
|
|
479
|
-
"onUpdate:modelValue":
|
|
498
|
+
modelValue: s.value,
|
|
499
|
+
"onUpdate:modelValue": y[2] || (y[2] = (p) => s.value = p),
|
|
480
500
|
"margin-bottom": "0",
|
|
481
501
|
prop: e.setting.name,
|
|
482
502
|
label: m.setting.desc,
|
|
@@ -486,12 +506,12 @@ const jt = zt.get("/getBindRelationByDefKey"), qt = Mt.get("/getByAlias"), Ot =
|
|
|
486
506
|
col: e.span
|
|
487
507
|
}, {
|
|
488
508
|
default: R(() => [
|
|
489
|
-
|
|
509
|
+
Ke("div", ga, [
|
|
490
510
|
S(a(Be), {
|
|
491
|
-
modelValue:
|
|
492
|
-
"onUpdate:modelValue":
|
|
511
|
+
modelValue: s.value,
|
|
512
|
+
"onUpdate:modelValue": y[0] || (y[0] = (p) => s.value = p),
|
|
493
513
|
status: v.value,
|
|
494
|
-
"onUpdate:status":
|
|
514
|
+
"onUpdate:status": y[1] || (y[1] = (p) => v.value = p),
|
|
495
515
|
maxSize: "6",
|
|
496
516
|
"limit-num": m.setting.options.file.limit,
|
|
497
517
|
prop: e.setting.name,
|
|
@@ -500,7 +520,7 @@ const jt = zt.get("/getBindRelationByDefKey"), qt = Mt.get("/getByAlias"), Ot =
|
|
|
500
520
|
"accept-audio": "",
|
|
501
521
|
videoWidth: 420,
|
|
502
522
|
videoHeight: 680,
|
|
503
|
-
disabled: a(
|
|
523
|
+
disabled: a(u),
|
|
504
524
|
"show-image-name": "",
|
|
505
525
|
needDownloadBtn: m.setting.options.file.allowDownload == !0,
|
|
506
526
|
needPreview: m.setting.options.file.allowPreview == !0,
|
|
@@ -511,67 +531,67 @@ const jt = zt.get("/getBindRelationByDefKey"), qt = Mt.get("/getByAlias"), Ot =
|
|
|
511
531
|
]),
|
|
512
532
|
_: 1
|
|
513
533
|
/* STABLE */
|
|
514
|
-
}, 8, ["modelValue", "prop", "label", "helpMessage", "required", "col"])) :
|
|
534
|
+
}, 8, ["modelValue", "prop", "label", "helpMessage", "required", "col"])) : O("v-if", !0);
|
|
515
535
|
}
|
|
516
|
-
}),
|
|
517
|
-
const t =
|
|
536
|
+
}), ye = (n, e) => {
|
|
537
|
+
const t = n.__vccOpts || n;
|
|
518
538
|
for (const [l, d] of e)
|
|
519
539
|
t[l] = d;
|
|
520
540
|
return t;
|
|
521
|
-
},
|
|
541
|
+
}, fa = /* @__PURE__ */ ye(va, [["__scopeId", "data-v-745a2e98"]]), Ge = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
522
542
|
__proto__: null,
|
|
523
|
-
default:
|
|
524
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
525
|
-
const t = "****", l = String(
|
|
526
|
-
return ((
|
|
527
|
-
const o =
|
|
528
|
-
if (o < 6) return
|
|
529
|
-
let
|
|
543
|
+
default: fa
|
|
544
|
+
}, Symbol.toStringTag, { value: "Module" })), ha = (n) => {
|
|
545
|
+
const t = "****", l = String(n), d = l.slice(0, 15), i = l.slice(15);
|
|
546
|
+
return ((s) => {
|
|
547
|
+
const o = s.length;
|
|
548
|
+
if (o < 6) return s;
|
|
549
|
+
let u = 0;
|
|
530
550
|
switch (o) {
|
|
531
551
|
case 6:
|
|
532
552
|
case 7:
|
|
533
|
-
|
|
553
|
+
u = 1;
|
|
534
554
|
break;
|
|
535
555
|
case 8:
|
|
536
556
|
case 9:
|
|
537
|
-
|
|
557
|
+
u = 2;
|
|
538
558
|
break;
|
|
539
559
|
case 10:
|
|
540
560
|
case 11:
|
|
541
|
-
|
|
561
|
+
u = 3;
|
|
542
562
|
break;
|
|
543
563
|
case 12:
|
|
544
|
-
|
|
564
|
+
u = 4;
|
|
545
565
|
break;
|
|
546
566
|
case 13:
|
|
547
|
-
|
|
567
|
+
u = 5;
|
|
548
568
|
break;
|
|
549
569
|
case 14:
|
|
550
|
-
|
|
570
|
+
u = 6;
|
|
551
571
|
break;
|
|
552
572
|
case 15:
|
|
553
|
-
|
|
573
|
+
u = 7;
|
|
554
574
|
break;
|
|
555
575
|
}
|
|
556
|
-
const g =
|
|
557
|
-
return
|
|
576
|
+
const g = u + t.length;
|
|
577
|
+
return s.slice(0, u) + t + s.slice(g);
|
|
558
578
|
})(d) + i;
|
|
559
|
-
},
|
|
579
|
+
}, ya = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
560
580
|
__proto__: null,
|
|
561
|
-
default:
|
|
562
|
-
}, Symbol.toStringTag, { value: "Module" })), ve = {},
|
|
581
|
+
default: ha
|
|
582
|
+
}, Symbol.toStringTag, { value: "Module" })), ve = {}, ba = /^\.\/(.+)\/index\.ts$/, Oe = /* @__PURE__ */ Object.assign({ "./phone/index.ts": ya });
|
|
563
583
|
var qe;
|
|
564
|
-
for (const
|
|
565
|
-
const e =
|
|
584
|
+
for (const n in Oe) {
|
|
585
|
+
const e = Oe[n], t = (qe = n.match(ba)) == null ? void 0 : qe[1];
|
|
566
586
|
ve[t] = e.default;
|
|
567
587
|
}
|
|
568
|
-
const
|
|
588
|
+
const _a = (n, e) => {
|
|
569
589
|
var l;
|
|
570
|
-
return e ? ((l = ve[
|
|
571
|
-
},
|
|
590
|
+
return e ? ((l = ve[n]) == null ? void 0 : l.call(ve, e)) ?? e : "-";
|
|
591
|
+
}, wa = {
|
|
572
592
|
name: "input"
|
|
573
|
-
},
|
|
574
|
-
...
|
|
593
|
+
}, Ca = /* @__PURE__ */ Q({
|
|
594
|
+
...wa,
|
|
575
595
|
props: {
|
|
576
596
|
setting: { default: () => ({
|
|
577
597
|
icon: "",
|
|
@@ -585,16 +605,16 @@ const ya = (s, e) => {
|
|
|
585
605
|
marginRight: {},
|
|
586
606
|
store: {}
|
|
587
607
|
},
|
|
588
|
-
setup(
|
|
589
|
-
const e =
|
|
590
|
-
o.value.length && o.value.forEach((
|
|
591
|
-
|
|
608
|
+
setup(n) {
|
|
609
|
+
const e = n, { data: t, showData: l, disabledData: d, setData: i, getData: h, setFormRule: w, deleteRule: s, encryptionData: o } = e.store || {}, u = r(""), g = r(!1);
|
|
610
|
+
o.value.length && o.value.forEach((p) => {
|
|
611
|
+
p.name === e.setting.name && (g.value = !0);
|
|
592
612
|
});
|
|
593
613
|
const v = r(""), c = r(!0);
|
|
594
614
|
!l.value[e.setting.name] && l.value[e.setting.name] != !1 && (l.value[e.setting.name] = !0), L(
|
|
595
615
|
() => l.value,
|
|
596
616
|
() => {
|
|
597
|
-
c.value = l.value[e.setting.name], c.value || (v.value = "",
|
|
617
|
+
c.value = l.value[e.setting.name], c.value || (v.value = "", s(e.setting.name)), c.value && e.setting.options.validateList.length && w(e.setting.name, e.setting.options.validateList);
|
|
598
618
|
},
|
|
599
619
|
{ deep: !0, immediate: !0 }
|
|
600
620
|
), L(
|
|
@@ -605,15 +625,15 @@ const ya = (s, e) => {
|
|
|
605
625
|
{ deep: !0 }
|
|
606
626
|
);
|
|
607
627
|
const _ = d.value[e.setting.name] || !1, m = r(!1);
|
|
608
|
-
Z(e.setting.options.validateList).then((
|
|
609
|
-
m.value =
|
|
628
|
+
Z(e.setting.options.validateList).then((p) => {
|
|
629
|
+
m.value = p;
|
|
610
630
|
});
|
|
611
|
-
const
|
|
612
|
-
return e.setting.options.tip && (
|
|
613
|
-
v.value =
|
|
614
|
-
}, 50), e.setting.options.validateList.length && w(e.setting.name, e.setting.options.validateList), L(v, (
|
|
615
|
-
e.setting.options.dataType === "number" && !isNaN(
|
|
616
|
-
}), (
|
|
631
|
+
const y = r();
|
|
632
|
+
return e.setting.options.tip && (y.value = W(e.setting.options.tip)), setTimeout(() => {
|
|
633
|
+
v.value = h(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
|
+
}, 50), e.setting.options.validateList.length && w(e.setting.name, e.setting.options.validateList), L(v, (p) => {
|
|
635
|
+
e.setting.options.dataType === "number" && !isNaN(p) ? i(e.setting.name, Number(p)) : i(e.setting.name, p);
|
|
636
|
+
}), (p, f) => (V(), J(
|
|
617
637
|
ee,
|
|
618
638
|
null,
|
|
619
639
|
[
|
|
@@ -622,37 +642,37 @@ const ya = (s, e) => {
|
|
|
622
642
|
col: e.span,
|
|
623
643
|
prop: e.setting.name,
|
|
624
644
|
modelValue: v.value,
|
|
625
|
-
"onUpdate:modelValue":
|
|
626
|
-
label:
|
|
645
|
+
"onUpdate:modelValue": f[1] || (f[1] = (D) => v.value = D),
|
|
646
|
+
label: p.setting.desc,
|
|
627
647
|
type: "custom",
|
|
628
|
-
helpMessage:
|
|
648
|
+
helpMessage: y.value,
|
|
629
649
|
required: m.value
|
|
630
650
|
}, {
|
|
631
651
|
default: R(() => [
|
|
632
|
-
S(a(
|
|
652
|
+
S(a(Se), {
|
|
633
653
|
placement: "top",
|
|
634
654
|
disabled: !v.value,
|
|
635
655
|
content: v.value
|
|
636
656
|
}, {
|
|
637
657
|
default: R(() => [
|
|
638
|
-
S(a(
|
|
639
|
-
modelValue:
|
|
640
|
-
"onUpdate:modelValue":
|
|
641
|
-
width:
|
|
642
|
-
disabled:
|
|
643
|
-
isView:
|
|
644
|
-
placeholder:
|
|
658
|
+
S(a(Dt), {
|
|
659
|
+
modelValue: u.value,
|
|
660
|
+
"onUpdate:modelValue": f[0] || (f[0] = (D) => u.value = D),
|
|
661
|
+
width: p.setting.options.width,
|
|
662
|
+
disabled: p.setting.options.isInputEdit || a(_),
|
|
663
|
+
isView: p.setting.options.isReadonly || e.isView,
|
|
664
|
+
placeholder: p.setting.options.placeholder
|
|
645
665
|
}, {
|
|
646
666
|
prepend: R(() => [
|
|
647
667
|
se(
|
|
648
|
-
oe(
|
|
668
|
+
oe(p.setting.options.bindPreAndSufFixjson.preFix),
|
|
649
669
|
1
|
|
650
670
|
/* TEXT */
|
|
651
671
|
)
|
|
652
672
|
]),
|
|
653
673
|
append: R(() => [
|
|
654
674
|
se(
|
|
655
|
-
oe(
|
|
675
|
+
oe(p.setting.options.bindPreAndSufFixjson.sufSix),
|
|
656
676
|
1
|
|
657
677
|
/* TEXT */
|
|
658
678
|
)
|
|
@@ -667,24 +687,24 @@ const ya = (s, e) => {
|
|
|
667
687
|
]),
|
|
668
688
|
_: 1
|
|
669
689
|
/* STABLE */
|
|
670
|
-
}, 8, ["col", "prop", "modelValue", "label", "helpMessage", "required"])) :
|
|
690
|
+
}, 8, ["col", "prop", "modelValue", "label", "helpMessage", "required"])) : O("v-if", !0),
|
|
671
691
|
c.value && (!g.value || !e.isView) ? (V(), P(a(U), {
|
|
672
692
|
key: 1,
|
|
673
693
|
col: e.span,
|
|
674
694
|
modelValue: v.value,
|
|
675
|
-
"onUpdate:modelValue":
|
|
676
|
-
width:
|
|
677
|
-
disabled:
|
|
678
|
-
isView:
|
|
695
|
+
"onUpdate:modelValue": f[2] || (f[2] = (D) => v.value = D),
|
|
696
|
+
width: p.setting.options.width,
|
|
697
|
+
disabled: p.setting.options.isInputEdit || a(_),
|
|
698
|
+
isView: p.setting.options.isReadonly || e.isView,
|
|
679
699
|
prop: e.setting.name,
|
|
680
|
-
label:
|
|
700
|
+
label: p.setting.desc,
|
|
681
701
|
type: "input",
|
|
682
|
-
helpMessage:
|
|
702
|
+
helpMessage: y.value,
|
|
683
703
|
required: m.value,
|
|
684
|
-
placeholder:
|
|
704
|
+
placeholder: p.setting.options.placeholder
|
|
685
705
|
}, {
|
|
686
706
|
default: R(() => [
|
|
687
|
-
|
|
707
|
+
O(` <DasInput\r
|
|
688
708
|
v-model="inputValue"\r
|
|
689
709
|
>\r
|
|
690
710
|
<template #prepend>{{ setting.options.bindPreAndSufFixjson.preFix }}</template>\r
|
|
@@ -693,19 +713,19 @@ const ya = (s, e) => {
|
|
|
693
713
|
]),
|
|
694
714
|
_: 1
|
|
695
715
|
/* STABLE */
|
|
696
|
-
}, 8, ["col", "modelValue", "width", "disabled", "isView", "prop", "label", "helpMessage", "required", "placeholder"])) :
|
|
716
|
+
}, 8, ["col", "modelValue", "width", "disabled", "isView", "prop", "label", "helpMessage", "required", "placeholder"])) : O("v-if", !0)
|
|
697
717
|
],
|
|
698
718
|
64
|
|
699
719
|
/* STABLE_FRAGMENT */
|
|
700
720
|
));
|
|
701
721
|
}
|
|
702
|
-
}),
|
|
722
|
+
}), Xe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
703
723
|
__proto__: null,
|
|
704
|
-
default:
|
|
705
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
724
|
+
default: Ca
|
|
725
|
+
}, Symbol.toStringTag, { value: "Module" })), Da = {
|
|
706
726
|
name: "number"
|
|
707
|
-
},
|
|
708
|
-
...
|
|
727
|
+
}, Va = /* @__PURE__ */ Q({
|
|
728
|
+
...Da,
|
|
709
729
|
props: {
|
|
710
730
|
setting: { default: () => ({
|
|
711
731
|
icon: "",
|
|
@@ -719,29 +739,29 @@ const ya = (s, e) => {
|
|
|
719
739
|
marginRight: {},
|
|
720
740
|
store: {}
|
|
721
741
|
},
|
|
722
|
-
setup(
|
|
723
|
-
const e =
|
|
742
|
+
setup(n) {
|
|
743
|
+
const e = n, { showData: t, disabledData: l, setData: d, getData: i, setFormRule: h, deleteRule: w } = e.store || {}, s = r(0), o = r(!0);
|
|
724
744
|
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), L(
|
|
725
745
|
() => t.value,
|
|
726
746
|
() => {
|
|
727
|
-
o.value = t.value[e.setting.name], o.value || (
|
|
747
|
+
o.value = t.value[e.setting.name], o.value || (s.value = 0, w(e.setting.name)), o.value && e.setting.options.validateList.length && h(e.setting.name, e.setting.options.validateList);
|
|
728
748
|
},
|
|
729
749
|
{ deep: !0, immediate: !0 }
|
|
730
750
|
);
|
|
731
|
-
const
|
|
751
|
+
const u = l.value[e.setting.name] || !1, g = r(!1);
|
|
732
752
|
Z(e.setting.options.validateList).then((c) => {
|
|
733
753
|
g.value = c;
|
|
734
754
|
});
|
|
735
755
|
const v = r();
|
|
736
756
|
return e.setting.options.tip && (v.value = W(e.setting.options.tip)), setTimeout(() => {
|
|
737
|
-
|
|
738
|
-
}, 50), e.setting.options.validateList.length &&
|
|
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 && h(e.setting.name, e.setting.options.validateList), L(s, (c) => {
|
|
739
759
|
d(e.setting.name, c);
|
|
740
760
|
}), (c, _) => o.value ? (V(), P(a(U), {
|
|
741
761
|
key: 0,
|
|
742
762
|
col: e.span,
|
|
743
|
-
modelValue:
|
|
744
|
-
"onUpdate:modelValue": _[0] || (_[0] = (m) =>
|
|
763
|
+
modelValue: s.value,
|
|
764
|
+
"onUpdate:modelValue": _[0] || (_[0] = (m) => s.value = m),
|
|
745
765
|
style: { width: "100%" },
|
|
746
766
|
label: c.setting.desc,
|
|
747
767
|
type: "inputNumber",
|
|
@@ -749,20 +769,20 @@ const ya = (s, e) => {
|
|
|
749
769
|
max: c.setting.options.max,
|
|
750
770
|
min: c.setting.options.min,
|
|
751
771
|
step: c.setting.options.step,
|
|
752
|
-
disabled: a(
|
|
772
|
+
disabled: a(u),
|
|
753
773
|
isView: e.isView,
|
|
754
774
|
precision: c.setting.options.decimalDigits,
|
|
755
775
|
helpMessage: v.value,
|
|
756
776
|
required: g.value
|
|
757
|
-
}, null, 8, ["col", "modelValue", "label", "prop", "max", "min", "step", "disabled", "isView", "precision", "helpMessage", "required"])) :
|
|
777
|
+
}, null, 8, ["col", "modelValue", "label", "prop", "max", "min", "step", "disabled", "isView", "precision", "helpMessage", "required"])) : O("v-if", !0);
|
|
758
778
|
}
|
|
759
|
-
}),
|
|
779
|
+
}), et = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
760
780
|
__proto__: null,
|
|
761
|
-
default:
|
|
762
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
781
|
+
default: Va
|
|
782
|
+
}, Symbol.toStringTag, { value: "Module" })), ka = {
|
|
763
783
|
name: "radio"
|
|
764
|
-
},
|
|
765
|
-
...
|
|
784
|
+
}, Sa = /* @__PURE__ */ Q({
|
|
785
|
+
...ka,
|
|
766
786
|
props: {
|
|
767
787
|
setting: { default: () => ({
|
|
768
788
|
icon: "",
|
|
@@ -778,45 +798,45 @@ const ya = (s, e) => {
|
|
|
778
798
|
marginRight: {},
|
|
779
799
|
store: {}
|
|
780
800
|
},
|
|
781
|
-
setup(
|
|
782
|
-
const e =
|
|
801
|
+
setup(n) {
|
|
802
|
+
const e = n, { showData: t, disabledData: l, setData: d, getData: i, setFormRule: h, deleteRule: w } = e.store || {}, s = r(null), o = r(!0);
|
|
783
803
|
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), L(
|
|
784
804
|
() => t.value,
|
|
785
805
|
() => {
|
|
786
|
-
o.value = t.value[e.setting.name], o.value || (
|
|
806
|
+
o.value = t.value[e.setting.name], o.value || (s.value = null, w(e.setting.name)), o.value && e.setting.options.validateList.length && h(e.setting.name, e.setting.options.validateList);
|
|
787
807
|
},
|
|
788
808
|
{ deep: !0, immediate: !0 }
|
|
789
809
|
);
|
|
790
|
-
const
|
|
791
|
-
Z(e.setting.options.validateList).then((
|
|
792
|
-
g.value =
|
|
810
|
+
const u = l.value[e.setting.name] || !1, g = r(!1);
|
|
811
|
+
Z(e.setting.options.validateList).then((p) => {
|
|
812
|
+
g.value = p;
|
|
793
813
|
});
|
|
794
814
|
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([]);
|
|
795
|
-
e.setting.options.customQuery.alias ? ie(e.setting.options.customQuery.alias, e.setting.options.customQuery.conditionfield).then((
|
|
796
|
-
_.value =
|
|
815
|
+
e.setting.options.customQuery.alias ? ie(e.setting.options.customQuery.alias, e.setting.options.customQuery.conditionfield).then((p) => {
|
|
816
|
+
_.value = p;
|
|
797
817
|
}) : _.value = e.setting.options.options;
|
|
798
818
|
const m = r();
|
|
799
819
|
e.setting.options.tip && (m.value = W(e.setting.options.tip)), setTimeout(() => {
|
|
800
|
-
|
|
801
|
-
}, 50), e.setting.options.validateList.length &&
|
|
802
|
-
d(e.setting.name,
|
|
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 && h(e.setting.name, e.setting.options.validateList), L(s, (p) => {
|
|
822
|
+
d(e.setting.name, p);
|
|
803
823
|
});
|
|
804
|
-
const
|
|
805
|
-
e.setting.options.linkage.length && e.setting.options.linkage.forEach((
|
|
806
|
-
if (
|
|
807
|
-
const b =
|
|
808
|
-
t.value[b] =
|
|
824
|
+
const y = (p) => {
|
|
825
|
+
e.setting.options.linkage.length && e.setting.options.linkage.forEach((f) => {
|
|
826
|
+
if (f.value === p) {
|
|
827
|
+
const b = f.effect[0].target.split(".")[2];
|
|
828
|
+
t.value[b] = f.effect[0].type === "w";
|
|
809
829
|
}
|
|
810
830
|
});
|
|
811
831
|
};
|
|
812
|
-
return (
|
|
832
|
+
return (p, f) => o.value ? (V(), P(a(U), {
|
|
813
833
|
key: 0,
|
|
814
|
-
onChange:
|
|
834
|
+
onChange: y,
|
|
815
835
|
col: e.span,
|
|
816
|
-
modelValue:
|
|
817
|
-
"onUpdate:modelValue":
|
|
818
|
-
layout:
|
|
819
|
-
label:
|
|
836
|
+
modelValue: s.value,
|
|
837
|
+
"onUpdate:modelValue": f[0] || (f[0] = (D) => s.value = D),
|
|
838
|
+
layout: p.setting.options.inline ? "vertical" : "default",
|
|
839
|
+
label: p.setting.desc,
|
|
820
840
|
type: "radio",
|
|
821
841
|
prop: e.setting.name,
|
|
822
842
|
options: _.value,
|
|
@@ -824,18 +844,18 @@ const ya = (s, e) => {
|
|
|
824
844
|
optionsValueKey: a(v),
|
|
825
845
|
optionsLabelKey: a(c),
|
|
826
846
|
helpMessage: m.value,
|
|
827
|
-
disabled: a(
|
|
847
|
+
disabled: a(u),
|
|
828
848
|
required: g.value,
|
|
829
849
|
isSetTimeout: !0
|
|
830
|
-
}, null, 8, ["col", "modelValue", "layout", "label", "prop", "options", "isView", "optionsValueKey", "optionsLabelKey", "helpMessage", "disabled", "required"])) :
|
|
850
|
+
}, null, 8, ["col", "modelValue", "layout", "label", "prop", "options", "isView", "optionsValueKey", "optionsLabelKey", "helpMessage", "disabled", "required"])) : O("v-if", !0);
|
|
831
851
|
}
|
|
832
|
-
}),
|
|
852
|
+
}), tt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
833
853
|
__proto__: null,
|
|
834
|
-
default:
|
|
835
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
854
|
+
default: Sa
|
|
855
|
+
}, Symbol.toStringTag, { value: "Module" })), Na = {
|
|
836
856
|
name: "select"
|
|
837
|
-
},
|
|
838
|
-
...
|
|
857
|
+
}, La = /* @__PURE__ */ Q({
|
|
858
|
+
...Na,
|
|
839
859
|
props: {
|
|
840
860
|
setting: { default: () => ({
|
|
841
861
|
icon: "",
|
|
@@ -849,13 +869,13 @@ const ya = (s, e) => {
|
|
|
849
869
|
marginRight: {},
|
|
850
870
|
store: {}
|
|
851
871
|
},
|
|
852
|
-
setup(
|
|
853
|
-
var
|
|
854
|
-
const e =
|
|
872
|
+
setup(n) {
|
|
873
|
+
var f, D;
|
|
874
|
+
const e = n, { showData: t, disabledData: l, linkData: d, setData: i, getData: h, setFormRule: w, deleteRule: s } = e.store || {}, o = r(), u = r(!0);
|
|
855
875
|
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), L(
|
|
856
876
|
() => t.value,
|
|
857
877
|
() => {
|
|
858
|
-
|
|
878
|
+
u.value = t.value[e.setting.name], u.value || (o.value = null, s(e.setting.name)), u.value && e.setting.options.validateList.length && w(e.setting.name, e.setting.options.validateList);
|
|
859
879
|
},
|
|
860
880
|
{ deep: !0, immediate: !0 }
|
|
861
881
|
), L(
|
|
@@ -865,14 +885,14 @@ const ya = (s, e) => {
|
|
|
865
885
|
if (e.setting.options.customQuery.alias && e.setting.options.customQuery.alias === b.alias) {
|
|
866
886
|
o.value = null;
|
|
867
887
|
const z = b.conditionfield.filter((N) => N.defaultType == 1);
|
|
868
|
-
let
|
|
888
|
+
let K = {};
|
|
869
889
|
z.forEach((N) => {
|
|
870
|
-
const k = N.fieldPath.split("."),
|
|
871
|
-
|
|
890
|
+
const k = N.fieldPath.split("."), B = k[k.length - 1];
|
|
891
|
+
K[N.field] = h(B);
|
|
872
892
|
}), ie(
|
|
873
893
|
e.setting.options.customQuery.alias,
|
|
874
894
|
e.setting.options.customQuery.conditionfield,
|
|
875
|
-
|
|
895
|
+
K
|
|
876
896
|
).then((N) => {
|
|
877
897
|
m.value = N;
|
|
878
898
|
});
|
|
@@ -887,28 +907,28 @@ const ya = (s, e) => {
|
|
|
887
907
|
});
|
|
888
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([]);
|
|
889
909
|
if (e.setting.options.customQuery.alias) {
|
|
890
|
-
let b = (D = (
|
|
910
|
+
let b = (D = (f = e.setting.options) == null ? void 0 : f.customQuery) == null ? void 0 : D.conditionfield;
|
|
891
911
|
typeof b == "string" && (b = JSON.parse(b));
|
|
892
912
|
const z = b.filter((N) => N.defaultType == 1);
|
|
893
|
-
let
|
|
913
|
+
let K = {};
|
|
894
914
|
z.forEach((N) => {
|
|
895
|
-
var
|
|
896
|
-
const k = (
|
|
897
|
-
|
|
898
|
-
}), ie(e.setting.options.customQuery.alias, e.setting.options.customQuery.conditionfield,
|
|
915
|
+
var q;
|
|
916
|
+
const k = (q = N.fieldPath) == null ? void 0 : q.split("."), B = k[k.length - 1];
|
|
917
|
+
K[N.field] = h(B);
|
|
918
|
+
}), ie(e.setting.options.customQuery.alias, e.setting.options.customQuery.conditionfield, K).then(
|
|
899
919
|
(N) => {
|
|
900
920
|
m.value = N;
|
|
901
921
|
}
|
|
902
922
|
);
|
|
903
923
|
} else
|
|
904
924
|
m.value = e.setting.options.options;
|
|
905
|
-
const
|
|
906
|
-
e.setting.options.tip && (
|
|
907
|
-
e.setting.options.multiple && (
|
|
925
|
+
const y = r();
|
|
926
|
+
e.setting.options.tip && (y.value = W(e.setting.options.tip)), o.value = e.setting.options.multiple ? [] : null, setTimeout(() => {
|
|
927
|
+
e.setting.options.multiple && (h(e.setting.name) || e.setting.options.formulasDiyJs) ? (h(e.setting.name) && (o.value = h(e.setting.name).split(",")), e.setting.options.formulasDiyJs && (o.value = e.setting.options.formulasDiyJs.split(","))) : o.value = h(e.setting.name) || e.setting.options.formulasDiyJs || o.value, o.value || i(e.setting.name, null);
|
|
908
928
|
}, 50), e.setting.options.validateList.length && w(e.setting.name, e.setting.options.validateList), L(o, (b) => {
|
|
909
929
|
e.setting.options.multiple ? i(e.setting.name, b.toString()) : i(e.setting.name, b);
|
|
910
930
|
});
|
|
911
|
-
const
|
|
931
|
+
const p = (b) => {
|
|
912
932
|
e.setting.options.linkage.length && !e.setting.options.multiple && e.setting.options.linkage.forEach((z) => {
|
|
913
933
|
if (z.value === b) {
|
|
914
934
|
const N = z.effect[0].target.split(".")[2];
|
|
@@ -916,13 +936,13 @@ const ya = (s, e) => {
|
|
|
916
936
|
}
|
|
917
937
|
});
|
|
918
938
|
};
|
|
919
|
-
return (b, z) =>
|
|
939
|
+
return (b, z) => u.value ? (V(), P(a(U), {
|
|
920
940
|
key: 0,
|
|
921
941
|
col: e.span,
|
|
922
942
|
modelValue: o.value,
|
|
923
|
-
"onUpdate:modelValue": z[0] || (z[0] = (
|
|
943
|
+
"onUpdate:modelValue": z[0] || (z[0] = (K) => o.value = K),
|
|
924
944
|
label: b.setting.desc,
|
|
925
|
-
onChange:
|
|
945
|
+
onChange: p,
|
|
926
946
|
type: "select",
|
|
927
947
|
prop: e.setting.name,
|
|
928
948
|
placeholder: b.setting.options.placeholder,
|
|
@@ -933,17 +953,17 @@ const ya = (s, e) => {
|
|
|
933
953
|
options: m.value,
|
|
934
954
|
optionsValueKey: a(c),
|
|
935
955
|
optionsLabelKey: a(_),
|
|
936
|
-
helpMessage:
|
|
956
|
+
helpMessage: y.value,
|
|
937
957
|
disabled: a(g),
|
|
938
958
|
required: v.value
|
|
939
|
-
}, null, 8, ["col", "modelValue", "label", "prop", "placeholder", "mode", "showSearch", "isView", "options", "optionsValueKey", "optionsLabelKey", "helpMessage", "disabled", "required"])) :
|
|
959
|
+
}, null, 8, ["col", "modelValue", "label", "prop", "placeholder", "mode", "showSearch", "isView", "options", "optionsValueKey", "optionsLabelKey", "helpMessage", "disabled", "required"])) : O("v-if", !0);
|
|
940
960
|
}
|
|
941
|
-
}),
|
|
961
|
+
}), at = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
942
962
|
__proto__: null,
|
|
943
|
-
default:
|
|
944
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
963
|
+
default: La
|
|
964
|
+
}, Symbol.toStringTag, { value: "Module" })), za = (n, e, t) => {
|
|
945
965
|
var ne, te, G, ce, ge;
|
|
946
|
-
const l = Ee().id, d = r(!1), i = (ge = (ce = (G = (te = (ne =
|
|
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", ""), h = r([]), w = r(""), s = r(""), o = {
|
|
947
967
|
user: A("搜索姓名/账号/手机号").value,
|
|
948
968
|
org: A("搜索组织名称/组织编码").value,
|
|
949
969
|
role: A("搜索角色名称").value,
|
|
@@ -951,7 +971,7 @@ const ya = (s, e) => {
|
|
|
951
971
|
post: A("搜索岗位名称/岗位编码").value,
|
|
952
972
|
supplier: A("搜索供应商编码/名称").value,
|
|
953
973
|
source: A("搜索单据编码/申请人").value
|
|
954
|
-
},
|
|
974
|
+
}, u = {
|
|
955
975
|
user: A("添加用户").value,
|
|
956
976
|
org: A("组织选择器").value,
|
|
957
977
|
role: A("角色选择器").value,
|
|
@@ -979,17 +999,17 @@ const ya = (s, e) => {
|
|
|
979
999
|
1: A("有效").value
|
|
980
1000
|
}, m = {
|
|
981
1001
|
user: Et,
|
|
982
|
-
org:
|
|
983
|
-
role:
|
|
984
|
-
job:
|
|
985
|
-
post:
|
|
986
|
-
supplier:
|
|
987
|
-
},
|
|
1002
|
+
org: _e,
|
|
1003
|
+
role: Qt,
|
|
1004
|
+
job: _e,
|
|
1005
|
+
post: _e,
|
|
1006
|
+
supplier: Gt
|
|
1007
|
+
}, y = u[i], p = r({}), f = r([]), D = () => {
|
|
988
1008
|
var j, x;
|
|
989
|
-
i === "supplier" ? (
|
|
1009
|
+
i === "supplier" ? (p.value = {
|
|
990
1010
|
left: !1,
|
|
991
1011
|
content: {
|
|
992
|
-
api:
|
|
1012
|
+
api: Zt,
|
|
993
1013
|
params: {
|
|
994
1014
|
flowKey: e,
|
|
995
1015
|
clientType: "pc",
|
|
@@ -1014,10 +1034,10 @@ const ya = (s, e) => {
|
|
|
1014
1034
|
}
|
|
1015
1035
|
},
|
|
1016
1036
|
right: !1
|
|
1017
|
-
},
|
|
1037
|
+
}, K(), z()) : i === "source" ? (p.value = {
|
|
1018
1038
|
left: !1,
|
|
1019
1039
|
content: {
|
|
1020
|
-
api:
|
|
1040
|
+
api: ea,
|
|
1021
1041
|
params: {
|
|
1022
1042
|
key: "",
|
|
1023
1043
|
code: t
|
|
@@ -1032,10 +1052,10 @@ const ya = (s, e) => {
|
|
|
1032
1052
|
}
|
|
1033
1053
|
},
|
|
1034
1054
|
right: !1
|
|
1035
|
-
}, b()) : i === "org" ? (
|
|
1055
|
+
}, b()) : i === "org" ? (p.value = {
|
|
1036
1056
|
left: !1,
|
|
1037
1057
|
content: {
|
|
1038
|
-
api:
|
|
1058
|
+
api: Ut,
|
|
1039
1059
|
params: {
|
|
1040
1060
|
search: ""
|
|
1041
1061
|
},
|
|
@@ -1043,9 +1063,9 @@ const ya = (s, e) => {
|
|
|
1043
1063
|
data: []
|
|
1044
1064
|
}
|
|
1045
1065
|
}
|
|
1046
|
-
}, b()) :
|
|
1066
|
+
}, b()) : p.value = {
|
|
1047
1067
|
left: {
|
|
1048
|
-
api:
|
|
1068
|
+
api: Kt,
|
|
1049
1069
|
params: {
|
|
1050
1070
|
projectId: l,
|
|
1051
1071
|
parentId: l
|
|
@@ -1061,7 +1081,7 @@ const ya = (s, e) => {
|
|
|
1061
1081
|
data: []
|
|
1062
1082
|
}
|
|
1063
1083
|
}
|
|
1064
|
-
}, i === "user" && (
|
|
1084
|
+
}, i === "user" && (p.value.content = {
|
|
1065
1085
|
api: Bt,
|
|
1066
1086
|
searchKey: "groupId",
|
|
1067
1087
|
params: {
|
|
@@ -1071,8 +1091,8 @@ const ya = (s, e) => {
|
|
|
1071
1091
|
selectListProps: {
|
|
1072
1092
|
data: []
|
|
1073
1093
|
}
|
|
1074
|
-
}, b()), i === "role" && (
|
|
1075
|
-
api:
|
|
1094
|
+
}, b()), i === "role" && (p.value.content = {
|
|
1095
|
+
api: At,
|
|
1076
1096
|
searchKey: "orgId",
|
|
1077
1097
|
params: {
|
|
1078
1098
|
status: 1
|
|
@@ -1080,8 +1100,8 @@ const ya = (s, e) => {
|
|
|
1080
1100
|
selectListProps: {
|
|
1081
1101
|
data: []
|
|
1082
1102
|
}
|
|
1083
|
-
}, b()), i === "job" && (
|
|
1084
|
-
api:
|
|
1103
|
+
}, b()), i === "job" && (p.value.content = {
|
|
1104
|
+
api: Yt,
|
|
1085
1105
|
searchKey: "groupId",
|
|
1086
1106
|
props: {
|
|
1087
1107
|
rowKey: "positionId"
|
|
@@ -1089,8 +1109,8 @@ const ya = (s, e) => {
|
|
|
1089
1109
|
selectListProps: {
|
|
1090
1110
|
data: []
|
|
1091
1111
|
}
|
|
1092
|
-
}, b()), i === "post" && (
|
|
1093
|
-
api:
|
|
1112
|
+
}, b()), i === "post" && (p.value.content = {
|
|
1113
|
+
api: xt,
|
|
1094
1114
|
searchKey: "groupId",
|
|
1095
1115
|
props: {
|
|
1096
1116
|
rowKey: "stationId"
|
|
@@ -1098,9 +1118,9 @@ const ya = (s, e) => {
|
|
|
1098
1118
|
selectListProps: {
|
|
1099
1119
|
data: []
|
|
1100
1120
|
}
|
|
1101
|
-
}, b()),
|
|
1121
|
+
}, b()), 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);
|
|
1102
1122
|
}, b = async () => {
|
|
1103
|
-
|
|
1123
|
+
f.value = [
|
|
1104
1124
|
{
|
|
1105
1125
|
type: "searchInput",
|
|
1106
1126
|
key: "inputtKey",
|
|
@@ -1114,7 +1134,7 @@ const ya = (s, e) => {
|
|
|
1114
1134
|
}
|
|
1115
1135
|
];
|
|
1116
1136
|
}, z = async () => {
|
|
1117
|
-
|
|
1137
|
+
f.value = [
|
|
1118
1138
|
{
|
|
1119
1139
|
type: "searchInput",
|
|
1120
1140
|
key: "inputtKey",
|
|
@@ -1140,25 +1160,25 @@ const ya = (s, e) => {
|
|
|
1140
1160
|
allowClear: !0
|
|
1141
1161
|
}
|
|
1142
1162
|
];
|
|
1143
|
-
},
|
|
1163
|
+
}, K = async () => {
|
|
1144
1164
|
const j = {
|
|
1145
1165
|
name: "",
|
|
1146
1166
|
published: 1
|
|
1147
|
-
}, [x,
|
|
1148
|
-
x || (
|
|
1167
|
+
}, [x, E] = await Xt(j).run();
|
|
1168
|
+
x || (f.value[1].options = E);
|
|
1149
1169
|
}, N = () => {
|
|
1150
1170
|
var x;
|
|
1151
1171
|
w.value = "", d.value = !0;
|
|
1152
1172
|
let j = g[i];
|
|
1153
|
-
|
|
1173
|
+
p.value.content.selectListProps.data = (x = h == null ? void 0 : h.value) == null ? void 0 : x.map((E) => ({ name: E == null ? void 0 : E.label, [j]: E == null ? void 0 : E.value }));
|
|
1154
1174
|
};
|
|
1155
1175
|
D();
|
|
1156
1176
|
const k = async () => {
|
|
1157
|
-
var j, x,
|
|
1158
|
-
|
|
1159
|
-
...(x = (j =
|
|
1177
|
+
var j, x, E, Y, M, T, $, F, re, ze, Me, Te, Re, $e, Pe, Fe, Ie;
|
|
1178
|
+
p.value.content.params = {
|
|
1179
|
+
...(x = (j = p == null ? void 0 : p.value) == null ? void 0 : j.content) == null ? void 0 : x.params,
|
|
1160
1180
|
pageIndex: 1
|
|
1161
|
-
}, (i === "user" || i === "org" || i === "post" || i === "role" || i === "job") && (
|
|
1181
|
+
}, (i === "user" || i === "org" || i === "post" || i === "role" || i === "job") && (p.value.content.params.name = (E = f == null ? void 0 : f.value[0]) == null ? void 0 : E.value), i === "source" && (p.value.content.params.key = (Y = f == null ? void 0 : f.value[0]) == null ? void 0 : Y.value), i === "supplier" && (p.value.content.params.querys = [
|
|
1162
1182
|
{
|
|
1163
1183
|
property: "orgId",
|
|
1164
1184
|
value: l,
|
|
@@ -1166,25 +1186,25 @@ const ya = (s, e) => {
|
|
|
1166
1186
|
relation: "AND",
|
|
1167
1187
|
operation: "EQUAL"
|
|
1168
1188
|
}
|
|
1169
|
-
], (M =
|
|
1189
|
+
], (M = f == null ? void 0 : f.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([
|
|
1170
1190
|
{
|
|
1171
1191
|
property: "name",
|
|
1172
|
-
value: (re =
|
|
1192
|
+
value: (re = f == null ? void 0 : f.value[0]) == null ? void 0 : re.value,
|
|
1173
1193
|
group: "merge",
|
|
1174
1194
|
relation: "OR",
|
|
1175
1195
|
operation: "LIKE"
|
|
1176
1196
|
},
|
|
1177
1197
|
{
|
|
1178
1198
|
property: "code",
|
|
1179
|
-
value: (
|
|
1199
|
+
value: (ze = f == null ? void 0 : f.value[0]) == null ? void 0 : ze.value,
|
|
1180
1200
|
group: "merge",
|
|
1181
1201
|
relation: "OR",
|
|
1182
1202
|
operation: "LIKE"
|
|
1183
1203
|
}
|
|
1184
|
-
])), (
|
|
1204
|
+
])), (Te = f == null ? void 0 : f.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([
|
|
1185
1205
|
{
|
|
1186
1206
|
property: "classificationId",
|
|
1187
|
-
value: (
|
|
1207
|
+
value: (Fe = f == null ? void 0 : f.value[1]) == null ? void 0 : Fe.value,
|
|
1188
1208
|
group: "quick",
|
|
1189
1209
|
relation: "AND",
|
|
1190
1210
|
operation: "EQUAL"
|
|
@@ -1194,66 +1214,66 @@ const ya = (s, e) => {
|
|
|
1194
1214
|
L(
|
|
1195
1215
|
() => d == null ? void 0 : d.value,
|
|
1196
1216
|
(j) => {
|
|
1197
|
-
j ||
|
|
1217
|
+
j || B();
|
|
1198
1218
|
}
|
|
1199
1219
|
);
|
|
1200
|
-
const
|
|
1201
|
-
i === "supplier" ? (
|
|
1220
|
+
const B = async () => {
|
|
1221
|
+
i === "supplier" ? (f.value[0].value = "", f.value[1].value = void 0) : (i === "org" || i === "user" || i === "source" || i === "post" || i === "role" || i === "job") && (f.value[0].value = ""), D();
|
|
1202
1222
|
};
|
|
1203
1223
|
return {
|
|
1204
1224
|
dialogVisible: d,
|
|
1205
|
-
title:
|
|
1225
|
+
title: y,
|
|
1206
1226
|
searchName: w,
|
|
1207
1227
|
selectorType: i,
|
|
1208
|
-
selectOptions:
|
|
1209
|
-
tableOptions:
|
|
1228
|
+
selectOptions: h,
|
|
1229
|
+
tableOptions: p,
|
|
1210
1230
|
userStatusMap: v,
|
|
1211
1231
|
roleTypeMap: c,
|
|
1212
1232
|
roleStatusMap: _,
|
|
1213
1233
|
openDialog: N,
|
|
1214
1234
|
confirm: (j) => {
|
|
1215
|
-
var
|
|
1235
|
+
var E;
|
|
1216
1236
|
let x = g[i];
|
|
1217
|
-
|
|
1237
|
+
h.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);
|
|
1218
1238
|
},
|
|
1219
1239
|
getDetail: async (j) => {
|
|
1220
1240
|
if (!j) return;
|
|
1221
1241
|
const x = m[i];
|
|
1222
|
-
let
|
|
1242
|
+
let E = {};
|
|
1223
1243
|
const Y = j == null ? void 0 : j.split(",");
|
|
1224
1244
|
if (i === "source") {
|
|
1225
|
-
|
|
1245
|
+
h.value = [
|
|
1226
1246
|
{
|
|
1227
1247
|
label: j,
|
|
1228
1248
|
value: j
|
|
1229
1249
|
}
|
|
1230
1250
|
];
|
|
1231
1251
|
return;
|
|
1232
|
-
} else i === "user" ?
|
|
1233
|
-
const [M, T] = await x(
|
|
1234
|
-
M || (i === "supplier" ?
|
|
1252
|
+
} else i === "user" ? E.userIds = Y : i === "role" ? E.ids = Y : i === "supplier" ? E.id = Y : E = Y;
|
|
1253
|
+
const [M, T] = await x(E).run();
|
|
1254
|
+
M || (i === "supplier" ? h.value = [
|
|
1235
1255
|
{
|
|
1236
1256
|
label: (T == null ? void 0 : T.name) || (T == null ? void 0 : T.code),
|
|
1237
1257
|
value: T == null ? void 0 : T.id
|
|
1238
1258
|
}
|
|
1239
|
-
] :
|
|
1259
|
+
] : h.value = T == null ? void 0 : T.map(($) => ({ label: ($ == null ? void 0 : $.name) || ($ == null ? void 0 : $.code), value: $ == null ? void 0 : $.id })));
|
|
1240
1260
|
},
|
|
1241
1261
|
searchData: k,
|
|
1242
|
-
searchOptions:
|
|
1243
|
-
linkmanPhone:
|
|
1262
|
+
searchOptions: f,
|
|
1263
|
+
linkmanPhone: s
|
|
1244
1264
|
};
|
|
1245
|
-
},
|
|
1265
|
+
}, Ma = (n) => {
|
|
1246
1266
|
const e = r(""), t = r(""), l = r([]), d = r("");
|
|
1247
1267
|
return {
|
|
1248
1268
|
spacePath: e,
|
|
1249
1269
|
spaceName: t,
|
|
1250
1270
|
spaceTreeData: l,
|
|
1251
1271
|
searchSpace: d,
|
|
1252
|
-
changeSpace: (o,
|
|
1253
|
-
|
|
1272
|
+
changeSpace: (o, u) => {
|
|
1273
|
+
n ? (e.value = u[0].path, t.value = u[0].pathName) : (e.value = (u == null ? void 0 : u.map((g) => g.path)) || [], t.value = (u == null ? void 0 : u.map((g) => g.pathName)) || []);
|
|
1254
1274
|
},
|
|
1255
1275
|
spaceLoad: async (o) => {
|
|
1256
|
-
let
|
|
1276
|
+
let u = {
|
|
1257
1277
|
pageSize: 1e4,
|
|
1258
1278
|
pageIndex: 1,
|
|
1259
1279
|
projectId: Ee().id,
|
|
@@ -1261,30 +1281,30 @@ const ya = (s, e) => {
|
|
|
1261
1281
|
spaceId: ""
|
|
1262
1282
|
// orgId:getProjectInfo().id
|
|
1263
1283
|
};
|
|
1264
|
-
|
|
1265
|
-
let g =
|
|
1266
|
-
const [v, c] = await g(
|
|
1284
|
+
u.spaceId = o != null && o.id ? o.id : "";
|
|
1285
|
+
let g = Jt;
|
|
1286
|
+
const [v, c] = await g(u).run();
|
|
1267
1287
|
return v ? {} : c;
|
|
1268
1288
|
},
|
|
1269
1289
|
filterSpaceTree: async (o) => {
|
|
1270
1290
|
if (!o) return [];
|
|
1271
|
-
let
|
|
1291
|
+
let u = Ht;
|
|
1272
1292
|
const g = {
|
|
1273
1293
|
name: o
|
|
1274
|
-
}, [v, c] = await
|
|
1294
|
+
}, [v, c] = await u(g).run();
|
|
1275
1295
|
return v ? {} : (c.forEach((_) => {
|
|
1276
1296
|
_.path.startsWith("/0") && (_.path = _.path.slice(2) + `/${_.id}`), _._name = _.nodeName ? _.nodeName : _.name;
|
|
1277
1297
|
}), c);
|
|
1278
1298
|
},
|
|
1279
1299
|
getSpaceDetail: async (o) => {
|
|
1280
|
-
const [
|
|
1281
|
-
|
|
1300
|
+
const [u, g] = await Wt().run({ spaceId: o });
|
|
1301
|
+
u || (e.value = g.path);
|
|
1282
1302
|
}
|
|
1283
1303
|
};
|
|
1284
|
-
},
|
|
1304
|
+
}, Ta = { class: "table-search-process-top" }, Ra = {
|
|
1285
1305
|
name: "selector"
|
|
1286
|
-
},
|
|
1287
|
-
...
|
|
1306
|
+
}, $a = /* @__PURE__ */ Q({
|
|
1307
|
+
...Ra,
|
|
1288
1308
|
props: {
|
|
1289
1309
|
setting: { default: () => ({
|
|
1290
1310
|
icon: "",
|
|
@@ -1298,16 +1318,16 @@ const ya = (s, e) => {
|
|
|
1298
1318
|
marginRight: {},
|
|
1299
1319
|
store: {}
|
|
1300
1320
|
},
|
|
1301
|
-
setup(
|
|
1302
|
-
var
|
|
1303
|
-
const e =
|
|
1321
|
+
setup(n) {
|
|
1322
|
+
var E, Y;
|
|
1323
|
+
const e = n, t = gt(() => {
|
|
1304
1324
|
var M, T, $;
|
|
1305
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;
|
|
1306
|
-
}), { showData: l, setData: d, getData: i, flowKey:
|
|
1326
|
+
}), { showData: l, setData: d, getData: i, flowKey: h, setFormRule: w, deleteRule: s, disabledData: o } = e.store || {}, u = r(""), g = r(!0);
|
|
1307
1327
|
!l.value[e.setting.name] && l.value[e.setting.name] != !1 && (l.value[e.setting.name] = !0), L(
|
|
1308
1328
|
() => l.value,
|
|
1309
1329
|
() => {
|
|
1310
|
-
g.value = l.value[e.setting.name], g.value || (
|
|
1330
|
+
g.value = l.value[e.setting.name], g.value || (u.value = "", p.value = [], s(e.setting.name)), g.value && e.setting.options.validateList.length && w(e.setting.name, e.setting.options.validateList);
|
|
1311
1331
|
},
|
|
1312
1332
|
{ deep: !0, immediate: !0 }
|
|
1313
1333
|
);
|
|
@@ -1315,48 +1335,48 @@ const ya = (s, e) => {
|
|
|
1315
1335
|
dialogVisible: c,
|
|
1316
1336
|
title: _,
|
|
1317
1337
|
tableOptions: m,
|
|
1318
|
-
selectorType:
|
|
1319
|
-
selectOptions:
|
|
1320
|
-
userStatusMap:
|
|
1338
|
+
selectorType: y,
|
|
1339
|
+
selectOptions: p,
|
|
1340
|
+
userStatusMap: f,
|
|
1321
1341
|
roleTypeMap: D,
|
|
1322
1342
|
roleStatusMap: b,
|
|
1323
1343
|
openDialog: z,
|
|
1324
|
-
confirm:
|
|
1344
|
+
confirm: K,
|
|
1325
1345
|
getDetail: N,
|
|
1326
1346
|
searchData: k,
|
|
1327
|
-
searchOptions:
|
|
1328
|
-
linkmanPhone:
|
|
1329
|
-
} =
|
|
1347
|
+
searchOptions: B,
|
|
1348
|
+
linkmanPhone: q
|
|
1349
|
+
} = za(e.setting, h, u), { spacePath: H, spaceName: ne, searchSpace: te, changeSpace: G, spaceLoad: ce, filterSpaceTree: ge } = Ma(
|
|
1330
1350
|
t.value
|
|
1331
1351
|
), j = r(!1);
|
|
1332
1352
|
Z(e.setting.options.validateList).then((M) => {
|
|
1333
1353
|
j.value = M;
|
|
1334
1354
|
});
|
|
1335
1355
|
const x = r();
|
|
1336
|
-
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), y == "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) => {
|
|
1337
1357
|
t.value ? d(e.setting.name, M) : d(e.setting.name, (M == null ? void 0 : M.join(",")) || "");
|
|
1338
1358
|
}), L(ne, (M) => {
|
|
1339
1359
|
t.value ? d(e.setting.options.selector.type.positionName, M) : d(e.setting.options.selector.type.positionName, (M == null ? void 0 : M.join(",")) || "");
|
|
1340
|
-
})) :
|
|
1360
|
+
})) : y == "supplier" ? (u.value = i(e.setting.name) ? [i(e.setting.name)] : [u.value], u.value && N(i(e.setting.name)), L(u, (M) => {
|
|
1341
1361
|
d(e.setting.name, M == null ? void 0 : M.toString());
|
|
1342
|
-
}), L(
|
|
1362
|
+
}), L(q, (M) => {
|
|
1343
1363
|
var T, $, F, re;
|
|
1344
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);
|
|
1345
|
-
})) : (
|
|
1346
|
-
|
|
1365
|
+
})) : (u.value = i(e.setting.name) ? i(e.setting.name) : u.value, u.value && N(u.value), u.value.length || d(e.setting.name, null), L(p, (M) => {
|
|
1366
|
+
u.value = M.map((T) => T.value).toString(), d(e.setting.name, u.value);
|
|
1347
1367
|
})), (M, T) => (V(), J(
|
|
1348
1368
|
ee,
|
|
1349
1369
|
null,
|
|
1350
1370
|
[
|
|
1351
|
-
g.value && a(
|
|
1371
|
+
g.value && a(y) != "position" ? (V(), P(a(U), {
|
|
1352
1372
|
key: 0,
|
|
1353
1373
|
col: e.span,
|
|
1354
|
-
modelValue:
|
|
1355
|
-
"onUpdate:modelValue": T[1] || (T[1] = ($) =>
|
|
1374
|
+
modelValue: u.value,
|
|
1375
|
+
"onUpdate:modelValue": T[1] || (T[1] = ($) => u.value = $),
|
|
1356
1376
|
prop: e.setting.name,
|
|
1357
1377
|
label: M.setting.desc,
|
|
1358
1378
|
type: "inputDialogSelect",
|
|
1359
|
-
options: a(
|
|
1379
|
+
options: a(p),
|
|
1360
1380
|
helpMessage: x.value,
|
|
1361
1381
|
isView: e.isView,
|
|
1362
1382
|
disabled: a(v),
|
|
@@ -1367,25 +1387,25 @@ const ya = (s, e) => {
|
|
|
1367
1387
|
default: R(() => {
|
|
1368
1388
|
var $;
|
|
1369
1389
|
return [
|
|
1370
|
-
S(a(
|
|
1390
|
+
S(a(St), {
|
|
1371
1391
|
"append-to-body": "",
|
|
1372
1392
|
modelValue: a(c),
|
|
1373
|
-
"onUpdate:modelValue": T[0] || (T[0] = (F) =>
|
|
1393
|
+
"onUpdate:modelValue": T[0] || (T[0] = (F) => be(c) ? c.value = F : null),
|
|
1374
1394
|
options: a(m),
|
|
1375
|
-
onConfirm: a(
|
|
1395
|
+
onConfirm: a(K),
|
|
1376
1396
|
title: a(_),
|
|
1377
1397
|
"body-style": { padding: "0px" }
|
|
1378
|
-
},
|
|
1398
|
+
}, mt({
|
|
1379
1399
|
_: 2
|
|
1380
1400
|
/* DYNAMIC */
|
|
1381
1401
|
}, [
|
|
1382
|
-
(($ = a(
|
|
1402
|
+
(($ = a(B)) == null ? void 0 : $.length) > 0 ? {
|
|
1383
1403
|
name: "table-header-search",
|
|
1384
1404
|
fn: R(() => [
|
|
1385
|
-
|
|
1386
|
-
S(a(
|
|
1405
|
+
Ke("div", Ta, [
|
|
1406
|
+
S(a(kt), {
|
|
1387
1407
|
labelLength: "6",
|
|
1388
|
-
options: a(
|
|
1408
|
+
options: a(B),
|
|
1389
1409
|
onConfirm: a(k),
|
|
1390
1410
|
"is-margin-right": !1
|
|
1391
1411
|
}, null, 8, ["options", "onConfirm"])
|
|
@@ -1393,7 +1413,7 @@ const ya = (s, e) => {
|
|
|
1393
1413
|
]),
|
|
1394
1414
|
key: "0"
|
|
1395
1415
|
} : void 0,
|
|
1396
|
-
a(
|
|
1416
|
+
a(y) === "user" ? {
|
|
1397
1417
|
name: "table-column",
|
|
1398
1418
|
fn: R(() => [
|
|
1399
1419
|
S(a(I), {
|
|
@@ -1409,7 +1429,7 @@ const ya = (s, e) => {
|
|
|
1409
1429
|
prop: "sensitivePhone"
|
|
1410
1430
|
}, {
|
|
1411
1431
|
default: R(({ row: F }) => [
|
|
1412
|
-
S(a(
|
|
1432
|
+
S(a(Se), {
|
|
1413
1433
|
placement: "top",
|
|
1414
1434
|
content: F.phone,
|
|
1415
1435
|
disabled: !F.phone
|
|
@@ -1433,7 +1453,7 @@ const ya = (s, e) => {
|
|
|
1433
1453
|
}, {
|
|
1434
1454
|
default: R(({ row: F }) => [
|
|
1435
1455
|
se(
|
|
1436
|
-
oe(a(
|
|
1456
|
+
oe(a(f)[F.status]),
|
|
1437
1457
|
1
|
|
1438
1458
|
/* TEXT */
|
|
1439
1459
|
)
|
|
@@ -1444,7 +1464,7 @@ const ya = (s, e) => {
|
|
|
1444
1464
|
]),
|
|
1445
1465
|
key: "1"
|
|
1446
1466
|
} : void 0,
|
|
1447
|
-
a(
|
|
1467
|
+
a(y) === "org" ? {
|
|
1448
1468
|
name: "table-column",
|
|
1449
1469
|
fn: R(() => [
|
|
1450
1470
|
S(a(I), {
|
|
@@ -1462,7 +1482,7 @@ const ya = (s, e) => {
|
|
|
1462
1482
|
]),
|
|
1463
1483
|
key: "2"
|
|
1464
1484
|
} : void 0,
|
|
1465
|
-
a(
|
|
1485
|
+
a(y) === "role" ? {
|
|
1466
1486
|
name: "table-column",
|
|
1467
1487
|
fn: R(() => [
|
|
1468
1488
|
S(a(I), {
|
|
@@ -1498,7 +1518,7 @@ const ya = (s, e) => {
|
|
|
1498
1518
|
]),
|
|
1499
1519
|
key: "3"
|
|
1500
1520
|
} : void 0,
|
|
1501
|
-
a(
|
|
1521
|
+
a(y) === "job" ? {
|
|
1502
1522
|
name: "table-column",
|
|
1503
1523
|
fn: R(() => [
|
|
1504
1524
|
S(a(I), {
|
|
@@ -1516,7 +1536,7 @@ const ya = (s, e) => {
|
|
|
1516
1536
|
]),
|
|
1517
1537
|
key: "4"
|
|
1518
1538
|
} : void 0,
|
|
1519
|
-
a(
|
|
1539
|
+
a(y) === "post" ? {
|
|
1520
1540
|
name: "table-column",
|
|
1521
1541
|
fn: R(() => [
|
|
1522
1542
|
S(a(I), {
|
|
@@ -1534,7 +1554,7 @@ const ya = (s, e) => {
|
|
|
1534
1554
|
]),
|
|
1535
1555
|
key: "5"
|
|
1536
1556
|
} : void 0,
|
|
1537
|
-
a(
|
|
1557
|
+
a(y) === "supplier" ? {
|
|
1538
1558
|
name: "table-column",
|
|
1539
1559
|
fn: R(() => [
|
|
1540
1560
|
S(a(I), {
|
|
@@ -1558,7 +1578,7 @@ const ya = (s, e) => {
|
|
|
1558
1578
|
prop: "classificationName"
|
|
1559
1579
|
}, {
|
|
1560
1580
|
default: R(() => [
|
|
1561
|
-
|
|
1581
|
+
O(` <template #default="{row}">\r
|
|
1562
1582
|
{{ getSupplierName(row) }}\r
|
|
1563
1583
|
</template> `)
|
|
1564
1584
|
]),
|
|
@@ -1582,7 +1602,7 @@ const ya = (s, e) => {
|
|
|
1582
1602
|
]),
|
|
1583
1603
|
key: "6"
|
|
1584
1604
|
} : void 0,
|
|
1585
|
-
a(
|
|
1605
|
+
a(y) === "source" ? {
|
|
1586
1606
|
name: "table-column",
|
|
1587
1607
|
fn: R(() => [
|
|
1588
1608
|
S(a(I), {
|
|
@@ -1602,7 +1622,7 @@ const ya = (s, e) => {
|
|
|
1602
1622
|
prop: "sensitivePhone"
|
|
1603
1623
|
}, {
|
|
1604
1624
|
default: R(({ row: F }) => [
|
|
1605
|
-
S(a(
|
|
1625
|
+
S(a(Se), {
|
|
1606
1626
|
placement: "top",
|
|
1607
1627
|
content: F.phone,
|
|
1608
1628
|
disabled: !F.phone
|
|
@@ -1647,8 +1667,8 @@ const ya = (s, e) => {
|
|
|
1647
1667
|
}),
|
|
1648
1668
|
_: 1
|
|
1649
1669
|
/* STABLE */
|
|
1650
|
-
}, 8, ["col", "modelValue", "prop", "label", "options", "helpMessage", "isView", "disabled", "required", "placeholder", "onOpenDialog"])) :
|
|
1651
|
-
g.value && a(
|
|
1670
|
+
}, 8, ["col", "modelValue", "prop", "label", "options", "helpMessage", "isView", "disabled", "required", "placeholder", "onOpenDialog"])) : O("v-if", !0),
|
|
1671
|
+
g.value && a(y) == "position" ? (V(), P(a(U), {
|
|
1652
1672
|
key: 1,
|
|
1653
1673
|
col: e.span,
|
|
1654
1674
|
label: M.setting.desc,
|
|
@@ -1659,12 +1679,12 @@ const ya = (s, e) => {
|
|
|
1659
1679
|
helpMessage: x.value,
|
|
1660
1680
|
placeholder: M.setting.options.placeholder,
|
|
1661
1681
|
required: j.value,
|
|
1662
|
-
modelValue:
|
|
1663
|
-
"onUpdate:modelValue": T[2] || (T[2] = ($) =>
|
|
1682
|
+
modelValue: u.value,
|
|
1683
|
+
"onUpdate:modelValue": T[2] || (T[2] = ($) => u.value = $),
|
|
1664
1684
|
keyword: a(te),
|
|
1665
|
-
"onUpdate:keyword": T[3] || (T[3] = ($) =>
|
|
1685
|
+
"onUpdate:keyword": T[3] || (T[3] = ($) => be(te) ? te.value = $ : null),
|
|
1666
1686
|
path: a(H),
|
|
1667
|
-
"onUpdate:path": T[4] || (T[4] = ($) =>
|
|
1687
|
+
"onUpdate:path": T[4] || (T[4] = ($) => be(H) ? H.value = $ : null),
|
|
1668
1688
|
isView: e.isView,
|
|
1669
1689
|
disabled: a(v),
|
|
1670
1690
|
load: a(ce),
|
|
@@ -1675,25 +1695,25 @@ const ya = (s, e) => {
|
|
|
1675
1695
|
},
|
|
1676
1696
|
onChange: a(G),
|
|
1677
1697
|
mode: t.value ? "" : "multiple"
|
|
1678
|
-
}, null, 8, ["col", "label", "prop", "helpMessage", "placeholder", "required", "modelValue", "keyword", "path", "isView", "disabled", "load", "search", "onChange", "mode"])) :
|
|
1698
|
+
}, null, 8, ["col", "label", "prop", "helpMessage", "placeholder", "required", "modelValue", "keyword", "path", "isView", "disabled", "load", "search", "onChange", "mode"])) : O("v-if", !0)
|
|
1679
1699
|
],
|
|
1680
1700
|
64
|
|
1681
1701
|
/* STABLE_FRAGMENT */
|
|
1682
1702
|
));
|
|
1683
1703
|
}
|
|
1684
|
-
}),
|
|
1704
|
+
}), Pa = /* @__PURE__ */ ye($a, [["__scopeId", "data-v-f66becb0"]]), nt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1685
1705
|
__proto__: null,
|
|
1686
|
-
default:
|
|
1687
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1706
|
+
default: Pa
|
|
1707
|
+
}, Symbol.toStringTag, { value: "Module" })), Fa = {
|
|
1688
1708
|
key: 0,
|
|
1689
1709
|
class: "form-image"
|
|
1690
|
-
},
|
|
1710
|
+
}, Ia = {
|
|
1691
1711
|
key: 1,
|
|
1692
1712
|
style: { "margin-bottom": "10px" }
|
|
1693
|
-
},
|
|
1713
|
+
}, ja = {
|
|
1694
1714
|
name: "soundRecording"
|
|
1695
|
-
},
|
|
1696
|
-
...
|
|
1715
|
+
}, Oa = /* @__PURE__ */ Q({
|
|
1716
|
+
...ja,
|
|
1697
1717
|
props: {
|
|
1698
1718
|
setting: { default: () => ({
|
|
1699
1719
|
icon: "",
|
|
@@ -1707,28 +1727,28 @@ const ya = (s, e) => {
|
|
|
1707
1727
|
marginRight: {},
|
|
1708
1728
|
store: {}
|
|
1709
1729
|
},
|
|
1710
|
-
setup(
|
|
1711
|
-
const e =
|
|
1730
|
+
setup(n) {
|
|
1731
|
+
const e = n, { showData: t, disabledData: l, setData: d, getData: i, setFormRule: h, deleteRule: w } = e.store || {}, s = r(), o = r(!0);
|
|
1712
1732
|
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), L(
|
|
1713
1733
|
() => t.value,
|
|
1714
1734
|
() => {
|
|
1715
|
-
o.value = t.value[e.setting.name], o.value || (
|
|
1735
|
+
o.value = t.value[e.setting.name], o.value || (s.value = "", w(e.setting.name)), o.value && e.setting.options.validateList.length && h(e.setting.name, e.setting.options.validateList);
|
|
1716
1736
|
},
|
|
1717
1737
|
{ deep: !0, immediate: !0 }
|
|
1718
1738
|
), l.value[e.setting.name];
|
|
1719
|
-
const { baseURL:
|
|
1739
|
+
const { baseURL: u } = Nt(), g = r(!1);
|
|
1720
1740
|
Z(e.setting.options.validateList).then((_) => {
|
|
1721
1741
|
g.value = _;
|
|
1722
1742
|
});
|
|
1723
1743
|
const v = r("info"), c = r();
|
|
1724
1744
|
if (e.setting.options.tip && (c.value = W(e.setting.options.tip)), i(e.setting.name)) {
|
|
1725
1745
|
const _ = JSON.parse(i(e.setting.name));
|
|
1726
|
-
|
|
1746
|
+
s.value = u + _[0].url;
|
|
1727
1747
|
}
|
|
1728
|
-
return e.setting.options.validateList.length &&
|
|
1748
|
+
return e.setting.options.validateList.length && h(e.setting.name, e.setting.options.validateList), (_, m) => e.isView && o.value ? (V(), P(a(U), {
|
|
1729
1749
|
key: 0,
|
|
1730
|
-
modelValue:
|
|
1731
|
-
"onUpdate:modelValue": m[2] || (m[2] = (
|
|
1750
|
+
modelValue: s.value,
|
|
1751
|
+
"onUpdate:modelValue": m[2] || (m[2] = (y) => s.value = y),
|
|
1732
1752
|
"margin-bottom": "0",
|
|
1733
1753
|
prop: e.setting.name,
|
|
1734
1754
|
label: _.setting.desc,
|
|
@@ -1738,27 +1758,27 @@ const ya = (s, e) => {
|
|
|
1738
1758
|
col: e.span
|
|
1739
1759
|
}, {
|
|
1740
1760
|
default: R(() => [
|
|
1741
|
-
|
|
1761
|
+
s.value ? (V(), J("div", Fa, [
|
|
1742
1762
|
S(a(Be), {
|
|
1743
|
-
modelValue:
|
|
1744
|
-
"onUpdate:modelValue": m[0] || (m[0] = (
|
|
1763
|
+
modelValue: s.value,
|
|
1764
|
+
"onUpdate:modelValue": m[0] || (m[0] = (y) => s.value = y),
|
|
1745
1765
|
status: v.value,
|
|
1746
|
-
"onUpdate:status": m[1] || (m[1] = (
|
|
1766
|
+
"onUpdate:status": m[1] || (m[1] = (y) => v.value = y),
|
|
1747
1767
|
required: g.value
|
|
1748
1768
|
}, null, 8, ["modelValue", "status", "required"])
|
|
1749
|
-
])) : (V(), J("div",
|
|
1769
|
+
])) : (V(), J("div", Ia, "-"))
|
|
1750
1770
|
]),
|
|
1751
1771
|
_: 1
|
|
1752
1772
|
/* STABLE */
|
|
1753
|
-
}, 8, ["modelValue", "prop", "label", "helpMessage", "required", "col"])) :
|
|
1773
|
+
}, 8, ["modelValue", "prop", "label", "helpMessage", "required", "col"])) : O("v-if", !0);
|
|
1754
1774
|
}
|
|
1755
|
-
}),
|
|
1775
|
+
}), qa = /* @__PURE__ */ ye(Oa, [["__scopeId", "data-v-b30e3d77"]]), st = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1756
1776
|
__proto__: null,
|
|
1757
|
-
default:
|
|
1758
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1777
|
+
default: qa
|
|
1778
|
+
}, Symbol.toStringTag, { value: "Module" })), Ka = {
|
|
1759
1779
|
name: "switch"
|
|
1760
|
-
},
|
|
1761
|
-
...
|
|
1780
|
+
}, Ba = /* @__PURE__ */ Q({
|
|
1781
|
+
...Ka,
|
|
1762
1782
|
props: {
|
|
1763
1783
|
setting: { default: () => ({
|
|
1764
1784
|
icon: "",
|
|
@@ -1772,29 +1792,29 @@ const ya = (s, e) => {
|
|
|
1772
1792
|
marginRight: {},
|
|
1773
1793
|
store: {}
|
|
1774
1794
|
},
|
|
1775
|
-
setup(
|
|
1776
|
-
const e =
|
|
1795
|
+
setup(n) {
|
|
1796
|
+
const e = n, { showData: t, disabledData: l, setData: d, getData: i, setFormRule: h, deleteRule: w } = e.store || {}, s = r(), o = r(!0);
|
|
1777
1797
|
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), L(
|
|
1778
1798
|
() => t.value,
|
|
1779
1799
|
() => {
|
|
1780
|
-
o.value = t.value[e.setting.name], o.value || (
|
|
1800
|
+
o.value = t.value[e.setting.name], o.value || (s.value = null, w(e.setting.name)), o.value && e.setting.options.validateList.length && h(e.setting.name, e.setting.options.validateList);
|
|
1781
1801
|
},
|
|
1782
1802
|
{ deep: !0, immediate: !0 }
|
|
1783
1803
|
);
|
|
1784
|
-
const
|
|
1804
|
+
const u = l.value[e.setting.name] || !1, g = r(!1);
|
|
1785
1805
|
Z(e.setting.options.validateList).then((c) => {
|
|
1786
1806
|
g.value = c;
|
|
1787
1807
|
});
|
|
1788
1808
|
const v = r();
|
|
1789
1809
|
return e.setting.options.tip && (v.value = W(e.setting.options.tip)), setTimeout(() => {
|
|
1790
|
-
|
|
1791
|
-
}, 50), e.setting.options.validateList.length &&
|
|
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 && h(e.setting.name, e.setting.options.validateList), L(s, (c) => {
|
|
1792
1812
|
d(e.setting.name, c);
|
|
1793
1813
|
}), (c, _) => o.value ? (V(), P(a(U), {
|
|
1794
1814
|
key: 0,
|
|
1795
1815
|
col: e.span,
|
|
1796
|
-
modelValue:
|
|
1797
|
-
"onUpdate:modelValue": _[0] || (_[0] = (m) =>
|
|
1816
|
+
modelValue: s.value,
|
|
1817
|
+
"onUpdate:modelValue": _[0] || (_[0] = (m) => s.value = m),
|
|
1798
1818
|
label: c.setting.desc,
|
|
1799
1819
|
type: "switch",
|
|
1800
1820
|
prop: e.setting.name,
|
|
@@ -1803,18 +1823,18 @@ const ya = (s, e) => {
|
|
|
1803
1823
|
activeText: c.setting.options.activeText,
|
|
1804
1824
|
inactiveText: c.setting.options.inactiveText,
|
|
1805
1825
|
helpMessage: v.value,
|
|
1806
|
-
disabled: a(
|
|
1826
|
+
disabled: a(u),
|
|
1807
1827
|
required: g.value,
|
|
1808
1828
|
isView: e.isView
|
|
1809
|
-
}, null, 8, ["col", "modelValue", "label", "prop", "activeValue", "inactiveValue", "activeText", "inactiveText", "helpMessage", "disabled", "required", "isView"])) :
|
|
1829
|
+
}, null, 8, ["col", "modelValue", "label", "prop", "activeValue", "inactiveValue", "activeText", "inactiveText", "helpMessage", "disabled", "required", "isView"])) : O("v-if", !0);
|
|
1810
1830
|
}
|
|
1811
|
-
}),
|
|
1831
|
+
}), ot = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1812
1832
|
__proto__: null,
|
|
1813
|
-
default:
|
|
1814
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1833
|
+
default: Ba
|
|
1834
|
+
}, Symbol.toStringTag, { value: "Module" })), Ea = {
|
|
1815
1835
|
name: "text"
|
|
1816
|
-
},
|
|
1817
|
-
...
|
|
1836
|
+
}, Aa = /* @__PURE__ */ Q({
|
|
1837
|
+
...Ea,
|
|
1818
1838
|
props: {
|
|
1819
1839
|
setting: { default: () => ({
|
|
1820
1840
|
icon: "",
|
|
@@ -1828,45 +1848,45 @@ const ya = (s, e) => {
|
|
|
1828
1848
|
marginRight: {},
|
|
1829
1849
|
store: {}
|
|
1830
1850
|
},
|
|
1831
|
-
setup(
|
|
1832
|
-
const e =
|
|
1851
|
+
setup(n) {
|
|
1852
|
+
const e = n, { showData: t, disabledData: l, setData: d, getData: i, setFormRule: h, deleteRule: w } = e.store || {}, s = r(), o = r(!0);
|
|
1833
1853
|
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), L(
|
|
1834
1854
|
() => t.value,
|
|
1835
1855
|
() => {
|
|
1836
|
-
o.value = t.value[e.setting.name], o.value || (
|
|
1856
|
+
o.value = t.value[e.setting.name], o.value || (s.value = null, w(e.setting.name)), o.value && e.setting.options.validateList.length && h(e.setting.name, e.setting.options.validateList);
|
|
1837
1857
|
},
|
|
1838
1858
|
{ deep: !0, immediate: !0 }
|
|
1839
1859
|
);
|
|
1840
|
-
const
|
|
1841
|
-
return e.setting.options.tip && (
|
|
1860
|
+
const u = r();
|
|
1861
|
+
return e.setting.options.tip && (u.value = W(e.setting.options.tip)), s.value = e.setting.options.textValue, s.value = i(e.setting.name) || s.value, s.value || d(e.setting.name, null), L(s, (g) => {
|
|
1842
1862
|
d(e.setting.name, g);
|
|
1843
1863
|
}), (g, v) => o.value ? (V(), P(a(U), {
|
|
1844
1864
|
key: 0,
|
|
1845
1865
|
col: e.span,
|
|
1846
|
-
modelValue:
|
|
1847
|
-
"onUpdate:modelValue": v[1] || (v[1] = (c) =>
|
|
1866
|
+
modelValue: s.value,
|
|
1867
|
+
"onUpdate:modelValue": v[1] || (v[1] = (c) => s.value = c),
|
|
1848
1868
|
label: g.setting.desc,
|
|
1849
1869
|
type: "custom",
|
|
1850
|
-
helpMessage:
|
|
1870
|
+
helpMessage: u.value
|
|
1851
1871
|
}, {
|
|
1852
1872
|
default: R(() => [
|
|
1853
|
-
S(a(
|
|
1873
|
+
S(a(Ae), {
|
|
1854
1874
|
type: "text",
|
|
1855
|
-
modelValue:
|
|
1856
|
-
"onUpdate:modelValue": v[0] || (v[0] = (c) =>
|
|
1875
|
+
modelValue: s.value,
|
|
1876
|
+
"onUpdate:modelValue": v[0] || (v[0] = (c) => s.value = c)
|
|
1857
1877
|
}, null, 8, ["modelValue"])
|
|
1858
1878
|
]),
|
|
1859
1879
|
_: 1
|
|
1860
1880
|
/* STABLE */
|
|
1861
|
-
}, 8, ["col", "modelValue", "label", "helpMessage"])) :
|
|
1881
|
+
}, 8, ["col", "modelValue", "label", "helpMessage"])) : O("v-if", !0);
|
|
1862
1882
|
}
|
|
1863
|
-
}),
|
|
1883
|
+
}), lt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1864
1884
|
__proto__: null,
|
|
1865
|
-
default:
|
|
1866
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1885
|
+
default: Aa
|
|
1886
|
+
}, Symbol.toStringTag, { value: "Module" })), Qa = {
|
|
1867
1887
|
name: "textarea"
|
|
1868
|
-
},
|
|
1869
|
-
...
|
|
1888
|
+
}, Ua = /* @__PURE__ */ Q({
|
|
1889
|
+
...Qa,
|
|
1870
1890
|
props: {
|
|
1871
1891
|
setting: { default: () => ({
|
|
1872
1892
|
icon: "",
|
|
@@ -1880,27 +1900,27 @@ const ya = (s, e) => {
|
|
|
1880
1900
|
marginRight: {},
|
|
1881
1901
|
store: {}
|
|
1882
1902
|
},
|
|
1883
|
-
setup(
|
|
1884
|
-
const e =
|
|
1903
|
+
setup(n) {
|
|
1904
|
+
const e = n, { showData: t, disabledData: l, setData: d, getData: i, setFormRule: h, deleteRule: w } = e.store || {}, s = r(""), o = r(!0);
|
|
1885
1905
|
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), L(
|
|
1886
1906
|
() => t.value,
|
|
1887
1907
|
() => {
|
|
1888
|
-
o.value = t.value[e.setting.name], o.value || (
|
|
1908
|
+
o.value = t.value[e.setting.name], o.value || (s.value = "", w(e.setting.name)), o.value && e.setting.options.validateList.length && h(e.setting.name, e.setting.options.validateList);
|
|
1889
1909
|
},
|
|
1890
1910
|
{ deep: !0, immediate: !0 }
|
|
1891
1911
|
);
|
|
1892
|
-
const
|
|
1912
|
+
const u = l.value[e.setting.name] || !1, g = r(!1);
|
|
1893
1913
|
Z(e.setting.options.validateList).then((m) => {
|
|
1894
1914
|
g.value = m;
|
|
1895
1915
|
});
|
|
1896
1916
|
const v = r();
|
|
1897
1917
|
e.setting.options.tip && (v.value = W(e.setting.options.tip)), setTimeout(() => {
|
|
1898
|
-
|
|
1918
|
+
s.value = i(e.setting.name) || e.setting.options.formulasDiyJs || s.value, s.value || d(e.setting.name, null);
|
|
1899
1919
|
}, 50);
|
|
1900
1920
|
const c = r(), _ = r();
|
|
1901
|
-
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 && h(e.setting.name, e.setting.options.validateList), L(s, (m) => {
|
|
1902
1922
|
d(e.setting.name, m);
|
|
1903
|
-
}), (m,
|
|
1923
|
+
}), (m, y) => (V(), J(
|
|
1904
1924
|
ee,
|
|
1905
1925
|
null,
|
|
1906
1926
|
[
|
|
@@ -1909,11 +1929,11 @@ const ya = (s, e) => {
|
|
|
1909
1929
|
col: e.span,
|
|
1910
1930
|
label: m.setting.desc,
|
|
1911
1931
|
type: "textarea",
|
|
1912
|
-
modelValue:
|
|
1913
|
-
"onUpdate:modelValue":
|
|
1932
|
+
modelValue: s.value,
|
|
1933
|
+
"onUpdate:modelValue": y[0] || (y[0] = (p) => s.value = p),
|
|
1914
1934
|
prop: e.setting.name,
|
|
1915
1935
|
placeholder: m.setting.options.placeholder,
|
|
1916
|
-
disabled: m.setting.options.isInputEdit || a(
|
|
1936
|
+
disabled: m.setting.options.isInputEdit || a(u),
|
|
1917
1937
|
isView: e.isView,
|
|
1918
1938
|
autosize: {
|
|
1919
1939
|
minRows: 1,
|
|
@@ -1922,11 +1942,11 @@ const ya = (s, e) => {
|
|
|
1922
1942
|
"show-word-limit": "",
|
|
1923
1943
|
helpMessage: v.value,
|
|
1924
1944
|
required: g.value
|
|
1925
|
-
}, null, 8, ["col", "label", "modelValue", "prop", "placeholder", "disabled", "isView", "helpMessage", "required"])) :
|
|
1945
|
+
}, null, 8, ["col", "label", "modelValue", "prop", "placeholder", "disabled", "isView", "helpMessage", "required"])) : O("v-if", !0),
|
|
1926
1946
|
m.setting.options.isEditor && o.value ? (V(), P(a(U), {
|
|
1927
1947
|
key: 1,
|
|
1928
|
-
modelValue:
|
|
1929
|
-
"onUpdate:modelValue":
|
|
1948
|
+
modelValue: s.value,
|
|
1949
|
+
"onUpdate:modelValue": y[2] || (y[2] = (p) => s.value = p),
|
|
1930
1950
|
prop: e.setting.name,
|
|
1931
1951
|
contentWidth: c.value,
|
|
1932
1952
|
label: m.setting.desc,
|
|
@@ -1936,30 +1956,30 @@ const ya = (s, e) => {
|
|
|
1936
1956
|
readOnly: e.isView
|
|
1937
1957
|
}, {
|
|
1938
1958
|
default: R(() => [
|
|
1939
|
-
S(a(
|
|
1959
|
+
S(a(Ae), {
|
|
1940
1960
|
ref: "editor",
|
|
1941
1961
|
width: c.value,
|
|
1942
1962
|
height: _.value,
|
|
1943
|
-
modelValue:
|
|
1944
|
-
"onUpdate:modelValue":
|
|
1963
|
+
modelValue: s.value,
|
|
1964
|
+
"onUpdate:modelValue": y[1] || (y[1] = (p) => s.value = p),
|
|
1945
1965
|
placeholder: m.setting.options.placeholder
|
|
1946
1966
|
}, null, 8, ["width", "height", "modelValue", "placeholder"])
|
|
1947
1967
|
]),
|
|
1948
1968
|
_: 1
|
|
1949
1969
|
/* STABLE */
|
|
1950
|
-
}, 8, ["modelValue", "prop", "contentWidth", "label", "helpMessage", "required", "readOnly"])) :
|
|
1970
|
+
}, 8, ["modelValue", "prop", "contentWidth", "label", "helpMessage", "required", "readOnly"])) : O("v-if", !0)
|
|
1951
1971
|
],
|
|
1952
1972
|
64
|
|
1953
1973
|
/* STABLE_FRAGMENT */
|
|
1954
1974
|
));
|
|
1955
1975
|
}
|
|
1956
|
-
}),
|
|
1976
|
+
}), it = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1957
1977
|
__proto__: null,
|
|
1958
|
-
default:
|
|
1959
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1978
|
+
default: Ua
|
|
1979
|
+
}, Symbol.toStringTag, { value: "Module" })), xa = {
|
|
1960
1980
|
name: "time"
|
|
1961
|
-
},
|
|
1962
|
-
...
|
|
1981
|
+
}, Ya = /* @__PURE__ */ Q({
|
|
1982
|
+
...xa,
|
|
1963
1983
|
props: {
|
|
1964
1984
|
setting: { default: () => ({
|
|
1965
1985
|
icon: "",
|
|
@@ -1973,43 +1993,43 @@ const ya = (s, e) => {
|
|
|
1973
1993
|
marginRight: {},
|
|
1974
1994
|
store: {}
|
|
1975
1995
|
},
|
|
1976
|
-
setup(
|
|
1977
|
-
const e =
|
|
1996
|
+
setup(n) {
|
|
1997
|
+
const e = n, { showData: t, disabledData: l, setData: d, getData: i, setFormRule: h, deleteRule: w } = e.store || {}, s = r(), o = r(!0);
|
|
1978
1998
|
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), L(
|
|
1979
1999
|
() => t.value,
|
|
1980
2000
|
() => {
|
|
1981
|
-
o.value = t.value[e.setting.name], o.value || (
|
|
2001
|
+
o.value = t.value[e.setting.name], o.value || (s.value = null, w(e.setting.name)), o.value && e.setting.options.validateList.length && h(e.setting.name, e.setting.options.validateList);
|
|
1982
2002
|
},
|
|
1983
2003
|
{ deep: !0, immediate: !0 }
|
|
1984
2004
|
);
|
|
1985
|
-
const
|
|
2005
|
+
const u = l.value[e.setting.name] || !1, g = r(!1);
|
|
1986
2006
|
Z(e.setting.options.validateList).then((c) => {
|
|
1987
2007
|
g.value = c;
|
|
1988
2008
|
});
|
|
1989
2009
|
const v = r();
|
|
1990
2010
|
return e.setting.options.tip && (v.value = W(e.setting.options.tip)), setTimeout(() => {
|
|
1991
2011
|
const c = fe().format("YYYY-MM-DD ");
|
|
1992
|
-
i(e.setting.name) && (
|
|
1993
|
-
}, 50), e.setting.options.validateList.length &&
|
|
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 && h(e.setting.name, e.setting.options.validateList), L(s, (c) => {
|
|
1994
2014
|
d(e.setting.name, c);
|
|
1995
2015
|
}), (c, _) => o.value ? (V(), P(a(U), {
|
|
1996
2016
|
key: 0,
|
|
1997
2017
|
col: e.span,
|
|
1998
|
-
modelValue:
|
|
1999
|
-
"onUpdate:modelValue": _[0] || (_[0] = (m) =>
|
|
2018
|
+
modelValue: s.value,
|
|
2019
|
+
"onUpdate:modelValue": _[0] || (_[0] = (m) => s.value = m),
|
|
2000
2020
|
prop: e.setting.name,
|
|
2001
2021
|
label: c.setting.desc,
|
|
2002
2022
|
type: "time",
|
|
2003
2023
|
helpMessage: v.value,
|
|
2004
2024
|
isView: e.isView,
|
|
2005
2025
|
required: g.value,
|
|
2006
|
-
disabled: a(
|
|
2007
|
-
}, null, 8, ["col", "modelValue", "prop", "label", "helpMessage", "isView", "required", "disabled"])) :
|
|
2026
|
+
disabled: a(u)
|
|
2027
|
+
}, null, 8, ["col", "modelValue", "prop", "label", "helpMessage", "isView", "required", "disabled"])) : O("v-if", !0);
|
|
2008
2028
|
}
|
|
2009
|
-
}),
|
|
2029
|
+
}), rt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2010
2030
|
__proto__: null,
|
|
2011
|
-
default:
|
|
2012
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2031
|
+
default: Ya
|
|
2032
|
+
}, Symbol.toStringTag, { value: "Module" })), Ja = Q({
|
|
2013
2033
|
name: "accordion",
|
|
2014
2034
|
props: {
|
|
2015
2035
|
columns: {
|
|
@@ -2025,13 +2045,13 @@ const ya = (s, e) => {
|
|
|
2025
2045
|
type: Object
|
|
2026
2046
|
}
|
|
2027
2047
|
},
|
|
2028
|
-
setup(
|
|
2029
|
-
const e = r([]), t =
|
|
2048
|
+
setup(n) {
|
|
2049
|
+
const e = r([]), t = n.columns.map((l) => {
|
|
2030
2050
|
const d = l.list.map(
|
|
2031
|
-
(i) => ue(de[i.ctrlType], { setting: i, isView:
|
|
2051
|
+
(i) => ue(de[i.ctrlType], { setting: i, isView: n.isView, store: n.store })
|
|
2032
2052
|
);
|
|
2033
2053
|
return l.isOpen == !0 && e.value.push(l.idKey), ue(
|
|
2034
|
-
|
|
2054
|
+
Ue,
|
|
2035
2055
|
{
|
|
2036
2056
|
header: l.span,
|
|
2037
2057
|
key: `${l.idKey}`
|
|
@@ -2043,16 +2063,16 @@ const ya = (s, e) => {
|
|
|
2043
2063
|
"div",
|
|
2044
2064
|
{ class: "accordion-layout" },
|
|
2045
2065
|
ue(
|
|
2046
|
-
|
|
2047
|
-
{ activeKey: e.value, collapsible:
|
|
2066
|
+
Qe,
|
|
2067
|
+
{ activeKey: e.value, collapsible: n.options.accordion ? "" : "disabled" },
|
|
2048
2068
|
t
|
|
2049
2069
|
)
|
|
2050
2070
|
);
|
|
2051
2071
|
}
|
|
2052
|
-
}),
|
|
2072
|
+
}), Ha = {
|
|
2053
2073
|
name: "accordion"
|
|
2054
|
-
},
|
|
2055
|
-
...
|
|
2074
|
+
}, Wa = /* @__PURE__ */ Q({
|
|
2075
|
+
...Ha,
|
|
2056
2076
|
props: {
|
|
2057
2077
|
setting: { default: () => ({
|
|
2058
2078
|
name: "",
|
|
@@ -2079,8 +2099,8 @@ const ya = (s, e) => {
|
|
|
2079
2099
|
isView: { type: Boolean },
|
|
2080
2100
|
store: {}
|
|
2081
2101
|
},
|
|
2082
|
-
setup(
|
|
2083
|
-
return (e, t) => (V(), P(a(
|
|
2102
|
+
setup(n) {
|
|
2103
|
+
return (e, t) => (V(), P(a(Ja), {
|
|
2084
2104
|
columns: e.setting.columns,
|
|
2085
2105
|
options: e.setting.options,
|
|
2086
2106
|
isView: e.isView,
|
|
@@ -2088,13 +2108,13 @@ const ya = (s, e) => {
|
|
|
2088
2108
|
style: { "margin-bottom": "10px" }
|
|
2089
2109
|
}, null, 8, ["columns", "options", "isView", "store"]));
|
|
2090
2110
|
}
|
|
2091
|
-
}),
|
|
2111
|
+
}), Za = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2092
2112
|
__proto__: null,
|
|
2093
|
-
default:
|
|
2094
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2113
|
+
default: Wa
|
|
2114
|
+
}, Symbol.toStringTag, { value: "Module" })), Ga = {
|
|
2095
2115
|
name: "grid"
|
|
2096
|
-
},
|
|
2097
|
-
...
|
|
2116
|
+
}, Xa = /* @__PURE__ */ Q({
|
|
2117
|
+
...Ga,
|
|
2098
2118
|
props: {
|
|
2099
2119
|
setting: { default: () => ({
|
|
2100
2120
|
name: "",
|
|
@@ -2118,14 +2138,14 @@ const ya = (s, e) => {
|
|
|
2118
2138
|
isView: { type: Boolean },
|
|
2119
2139
|
store: {}
|
|
2120
2140
|
},
|
|
2121
|
-
setup(
|
|
2122
|
-
const e =
|
|
2141
|
+
setup(n) {
|
|
2142
|
+
const e = n;
|
|
2123
2143
|
return (t, l) => (V(), J(
|
|
2124
2144
|
ee,
|
|
2125
2145
|
null,
|
|
2126
2146
|
[
|
|
2127
|
-
|
|
2128
|
-
|
|
2147
|
+
O(' <GridLayout :columns="setting.columns" :isView="props.isView" :store="store"></GridLayout> '),
|
|
2148
|
+
O(' <div style="display: flex; flex-direction: row; flex-wrap: wrap; width: 100%"> '),
|
|
2129
2149
|
(V(!0), J(
|
|
2130
2150
|
ee,
|
|
2131
2151
|
null,
|
|
@@ -2136,7 +2156,7 @@ const ya = (s, e) => {
|
|
|
2136
2156
|
(V(!0), J(
|
|
2137
2157
|
ee,
|
|
2138
2158
|
null,
|
|
2139
|
-
pe(d.list, (i) => (V(), P(me(a(
|
|
2159
|
+
pe(d.list, (i) => (V(), P(me(a(an)[i.ctrlType]), {
|
|
2140
2160
|
setting: i,
|
|
2141
2161
|
isView: e.isView,
|
|
2142
2162
|
store: t.store,
|
|
@@ -2152,120 +2172,120 @@ const ya = (s, e) => {
|
|
|
2152
2172
|
256
|
|
2153
2173
|
/* UNKEYED_FRAGMENT */
|
|
2154
2174
|
)),
|
|
2155
|
-
|
|
2175
|
+
O(" </div> ")
|
|
2156
2176
|
],
|
|
2157
2177
|
2112
|
|
2158
2178
|
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
2159
2179
|
));
|
|
2160
2180
|
}
|
|
2161
|
-
}),
|
|
2181
|
+
}), en = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2162
2182
|
__proto__: null,
|
|
2163
|
-
default:
|
|
2164
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2165
|
-
Object.keys(
|
|
2166
|
-
Object.keys(
|
|
2167
|
-
Object.keys(
|
|
2168
|
-
Object.keys(
|
|
2169
|
-
const
|
|
2183
|
+
default: Xa
|
|
2184
|
+
}, Symbol.toStringTag, { value: "Module" })), Ce = /* @__PURE__ */ Object.assign({ "./base/attachment.vue": Ye, "./base/autocomplete.vue": Je, "./base/checkbox.vue": He, "./base/date.vue": We, "./base/dropdown.vue": Ze, "./base/imageViewer.vue": Ge, "./base/input.vue": Xe, "./base/number.vue": et, "./base/radio.vue": tt, "./base/select.vue": at, "./base/selector.vue": nt, "./base/soundRecording.vue": st, "./base/switch.vue": ot, "./base/text.vue": lt, "./base/textarea.vue": it, "./base/time.vue": rt, "./layout/accordion/accordion.vue": Za, "./layout/grid/gridLayout.vue": en }), De = /* @__PURE__ */ Object.assign({ "./base/attachment.vue": Ye, "./base/autocomplete.vue": Je, "./base/checkbox.vue": He, "./base/date.vue": We, "./base/dropdown.vue": Ze, "./base/imageViewer.vue": Ge, "./base/input.vue": Xe, "./base/number.vue": et, "./base/radio.vue": tt, "./base/select.vue": at, "./base/selector.vue": nt, "./base/soundRecording.vue": st, "./base/switch.vue": ot, "./base/text.vue": lt, "./base/textarea.vue": it, "./base/time.vue": rt }), Ve = /* @__PURE__ */ Object.assign({}), ke = /* @__PURE__ */ Object.assign({}), de = {}, ut = {}, pt = {}, tn = {};
|
|
2185
|
+
Object.keys(De).map((n) => ut[De[n].default.name] = De[n].default);
|
|
2186
|
+
Object.keys(Ve).map((n) => pt[Ve[n].default.name] = Ve[n].default);
|
|
2187
|
+
Object.keys(ke).map((n) => tn[ke[n].default.name] = ke[n].default);
|
|
2188
|
+
Object.keys(Ce).map((n) => de[Ce[n].default.name] = Ce[n].default);
|
|
2189
|
+
const an = { ...ut, ...pt }, nn = (n, e, t, l) => {
|
|
2170
2190
|
(!e || e.toString() === "") && parseInt(e) !== 0 ? t(new Error(`${C("*必填")}`)) : t();
|
|
2171
|
-
},
|
|
2191
|
+
}, sn = (n, e, t, l) => {
|
|
2172
2192
|
e !== "" && e.length > parseInt(l.value) ? t(new Error(`${C("最大文本长度")}${C("不能超过")}${l.value}`)) : t();
|
|
2173
|
-
},
|
|
2193
|
+
}, on = (n, e, t, l) => {
|
|
2174
2194
|
e !== "" && e.length < parseInt(l.value) ? t(new Error(`${C("最小文本长度")}${C("不能少于")}${l.value}`)) : t();
|
|
2175
|
-
},
|
|
2195
|
+
}, ln = (n, e, t, l) => {
|
|
2176
2196
|
if (e !== "" && !/^1[3456789]\d{9}$/.test(e))
|
|
2177
2197
|
return t(new Error(C("手机号码格式不正确,请重新输入"))), !1;
|
|
2178
2198
|
t();
|
|
2179
|
-
},
|
|
2199
|
+
}, rn = (n, e, t) => {
|
|
2180
2200
|
if (e !== "" && !/^[A-Za-z0-9\u4e00-\u9fa5]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/.test(e))
|
|
2181
2201
|
return t(new Error(C("电子邮箱格式不正确,请重新输入"))), !1;
|
|
2182
2202
|
t();
|
|
2183
|
-
},
|
|
2203
|
+
}, un = (n, e, t) => {
|
|
2184
2204
|
if (e !== "" && !/^-?\d+$/.test(e))
|
|
2185
2205
|
return t(new Error(C("请输入整数"))), !1;
|
|
2186
2206
|
t();
|
|
2187
|
-
},
|
|
2207
|
+
}, pn = (n, e, t, l) => {
|
|
2188
2208
|
if (e !== "" && e != l.value)
|
|
2189
2209
|
return t(new Error(C("请输入相同的值"))), !1;
|
|
2190
2210
|
t();
|
|
2191
|
-
},
|
|
2211
|
+
}, dn = (n, e, t, l) => {
|
|
2192
2212
|
e === "" ? t() : /^[+-]?\d*\.?\d*$/.test(e) ? e < parseFloat(l.value) ? t(new Error(`${l.name}${C("不能小于")}${l.value}`)) : t() : t(new Error(C("请输入数字")));
|
|
2193
|
-
},
|
|
2213
|
+
}, cn = (n, e, t, l) => {
|
|
2194
2214
|
e === "" ? t() : /^[+-]?\d*\.?\d*$/.test(e) ? e > parseFloat(l.value) ? t(new Error(`${l.name}${C("不能大于")}${l.value}`)) : t() : t(new Error(C("请输入数字")));
|
|
2195
|
-
},
|
|
2215
|
+
}, gn = (n, e, t, l) => {
|
|
2196
2216
|
const d = /^[+-]?(\d*\.\d+([eE]?[+-]?\d+)?|\d+[eE][+-]?\d+)$/, i = /^-?\d+$/;
|
|
2197
2217
|
e === "" ? t() : d.test(e) || i.test(e) ? e >= parseFloat(l.start) && e <= parseFloat(l.end) ? t() : t(new Error(`${C("只能输入指定数字范围")}${l.start}-${l.end}`)) : t(new Error(C("请输入数字")));
|
|
2198
|
-
},
|
|
2218
|
+
}, mn = (n, e, t, l) => {
|
|
2199
2219
|
e === "" || parseFloat(e) === parseFloat(l.value) ? t() : t(new Error(`${C("只能输入指定的值")}${l.value}`));
|
|
2200
|
-
},
|
|
2220
|
+
}, vn = (n, e, t, l) => {
|
|
2201
2221
|
e === "" ? t() : /^-?\d+$/.test(e) ? Math.abs(e).toString().length === parseInt(l.value) ? t() : t(new Error(`${C("只能输入")}${l.value}${C("位数数字")}`)) : t(new Error(C("请输入整数")));
|
|
2202
|
-
},
|
|
2222
|
+
}, fn = (n, e, t) => {
|
|
2203
2223
|
if (e !== "" && !/^[a-zA-Z]{1,}$/.test(e))
|
|
2204
2224
|
return t(new Error(C("只能输入字母"))), !1;
|
|
2205
2225
|
t();
|
|
2206
|
-
},
|
|
2226
|
+
}, hn = (n, e, t) => {
|
|
2207
2227
|
if (e !== "" && !/^[a-zA-Z ]{1,}$/.test(e))
|
|
2208
2228
|
return t(new Error(C("只能输入字母空格"))), !1;
|
|
2209
2229
|
t();
|
|
2210
|
-
},
|
|
2230
|
+
}, yn = (n, e, t) => {
|
|
2211
2231
|
if (e !== "" && !/^[0-9a-zA-Z_-]{1,}$/.test(e))
|
|
2212
2232
|
return t(new Error(C("只能输入字母数字横线下划线"))), !1;
|
|
2213
2233
|
t();
|
|
2214
|
-
},
|
|
2234
|
+
}, bn = (n, e, t) => {
|
|
2215
2235
|
if (e !== "" && !/^[0-9a-zA-Z]{1,}$/.test(e))
|
|
2216
2236
|
return t(new Error(C("只能输入字母数字"))), !1;
|
|
2217
2237
|
t();
|
|
2218
|
-
},
|
|
2238
|
+
}, _n = (n, e, t, l) => {
|
|
2219
2239
|
const d = new RegExp(l.value);
|
|
2220
2240
|
if (e !== "" && !d.test(e))
|
|
2221
2241
|
return t(new Error(l.errorMessage)), !1;
|
|
2222
2242
|
t();
|
|
2223
|
-
},
|
|
2224
|
-
required:
|
|
2225
|
-
min:
|
|
2226
|
-
max:
|
|
2227
|
-
email:
|
|
2228
|
-
min_value:
|
|
2229
|
-
max_value:
|
|
2230
|
-
confirmed:
|
|
2231
|
-
numeric:
|
|
2232
|
-
between:
|
|
2233
|
-
is:
|
|
2234
|
-
digits:
|
|
2235
|
-
mobile:
|
|
2236
|
-
alpha:
|
|
2237
|
-
alpha_spaces:
|
|
2238
|
-
alpha_dash:
|
|
2239
|
-
alpha_num:
|
|
2240
|
-
regex:
|
|
2241
|
-
},
|
|
2242
|
-
const
|
|
2243
|
+
}, wn = {
|
|
2244
|
+
required: nn,
|
|
2245
|
+
min: on,
|
|
2246
|
+
max: sn,
|
|
2247
|
+
email: rn,
|
|
2248
|
+
min_value: dn,
|
|
2249
|
+
max_value: cn,
|
|
2250
|
+
confirmed: pn,
|
|
2251
|
+
numeric: un,
|
|
2252
|
+
between: gn,
|
|
2253
|
+
is: mn,
|
|
2254
|
+
digits: vn,
|
|
2255
|
+
mobile: ln,
|
|
2256
|
+
alpha: fn,
|
|
2257
|
+
alpha_spaces: hn,
|
|
2258
|
+
alpha_dash: yn,
|
|
2259
|
+
alpha_num: bn,
|
|
2260
|
+
regex: _n
|
|
2261
|
+
}, Cn = () => {
|
|
2262
|
+
const n = r({}), e = r([]), t = r({}), l = r({}), d = r([]), i = r(""), h = r(""), w = r({}), s = r([]), o = r({});
|
|
2243
2263
|
return {
|
|
2244
|
-
data:
|
|
2264
|
+
data: n,
|
|
2245
2265
|
formData: e,
|
|
2246
2266
|
formRule: w,
|
|
2247
2267
|
showData: t,
|
|
2248
2268
|
disabledData: l,
|
|
2249
2269
|
flowKey: i,
|
|
2250
2270
|
linkData: o,
|
|
2251
|
-
encryptionData:
|
|
2271
|
+
encryptionData: s,
|
|
2252
2272
|
setData: (D, b) => {
|
|
2253
2273
|
e.value.forEach((z) => {
|
|
2254
|
-
z.formKey ===
|
|
2274
|
+
z.formKey === h.value && (z.data[D] = b);
|
|
2255
2275
|
});
|
|
2256
2276
|
},
|
|
2257
2277
|
setDetailData: (D) => {
|
|
2258
|
-
|
|
2259
|
-
b.formKey ===
|
|
2278
|
+
n.value = D, e.value.forEach((b) => {
|
|
2279
|
+
b.formKey === h.value && (b.data = D);
|
|
2260
2280
|
});
|
|
2261
2281
|
},
|
|
2262
2282
|
setLinkData: (D, b) => {
|
|
2263
2283
|
o.value = { data: D, val: b };
|
|
2264
2284
|
},
|
|
2265
|
-
getData: (D) =>
|
|
2285
|
+
getData: (D) => n.value[D],
|
|
2266
2286
|
setFormData: (D, b, z) => {
|
|
2267
|
-
|
|
2268
|
-
|
|
2287
|
+
h.value = D, d.value.includes(D) ? e.value.forEach((K) => {
|
|
2288
|
+
K.formKey === D && (n.value = K.data);
|
|
2269
2289
|
}) : (d.value.push(D), e.value.push({
|
|
2270
2290
|
formKey: D,
|
|
2271
2291
|
boKey: b,
|
|
@@ -2277,24 +2297,24 @@ const en = { ...rt, ...ut }, tn = (s, e, t, l) => {
|
|
|
2277
2297
|
setFormRule: (D, b) => {
|
|
2278
2298
|
w.value[D] = [], b && b.length && b.forEach((z) => {
|
|
2279
2299
|
w.value[D].push({
|
|
2280
|
-
validator: (
|
|
2300
|
+
validator: (K, N, k) => wn[z.key](K, N, k, z)
|
|
2281
2301
|
});
|
|
2282
2302
|
});
|
|
2283
2303
|
},
|
|
2284
2304
|
clearData: () => {
|
|
2285
|
-
|
|
2305
|
+
n.value = {}, e.value = [], d.value = [], w.value = {};
|
|
2286
2306
|
},
|
|
2287
2307
|
deleteRule: (D) => {
|
|
2288
2308
|
delete w.value[D];
|
|
2289
2309
|
}
|
|
2290
2310
|
};
|
|
2291
|
-
},
|
|
2311
|
+
}, Dn = { class: "custom-page" }, Vn = {
|
|
2292
2312
|
key: 0,
|
|
2293
2313
|
class: "btn-box"
|
|
2294
|
-
},
|
|
2314
|
+
}, kn = {
|
|
2295
2315
|
key: 1,
|
|
2296
2316
|
style: { "background-color": "#fff" }
|
|
2297
|
-
},
|
|
2317
|
+
}, Sn = /* @__PURE__ */ Q({
|
|
2298
2318
|
__name: "App",
|
|
2299
2319
|
props: {
|
|
2300
2320
|
formConfigurationId: {},
|
|
@@ -2307,14 +2327,14 @@ const en = { ...rt, ...ut }, tn = (s, e, t, l) => {
|
|
|
2307
2327
|
disabledData: { default: {} }
|
|
2308
2328
|
},
|
|
2309
2329
|
emits: ["handleClick", "change"],
|
|
2310
|
-
setup(
|
|
2311
|
-
const l =
|
|
2312
|
-
|
|
2330
|
+
setup(n, { expose: e, emit: t }) {
|
|
2331
|
+
const l = Cn(), { formRule: d, data: i, flowKey: h, clearData: w, getFormData: s } = l, o = n, u = t;
|
|
2332
|
+
h.value = o.flowKey;
|
|
2313
2333
|
const g = (z) => z === "accordion";
|
|
2314
2334
|
L(
|
|
2315
2335
|
() => i.value,
|
|
2316
2336
|
(z) => {
|
|
2317
|
-
|
|
2337
|
+
u("change", z);
|
|
2318
2338
|
},
|
|
2319
2339
|
{
|
|
2320
2340
|
immediate: !0,
|
|
@@ -2326,27 +2346,27 @@ const en = { ...rt, ...ut }, tn = (s, e, t, l) => {
|
|
|
2326
2346
|
isShowPage: c,
|
|
2327
2347
|
btnList: _,
|
|
2328
2348
|
activityKeys: m,
|
|
2329
|
-
getForm:
|
|
2330
|
-
getBtnSet:
|
|
2331
|
-
handleClick:
|
|
2349
|
+
getForm: y,
|
|
2350
|
+
getBtnSet: p,
|
|
2351
|
+
handleClick: f,
|
|
2332
2352
|
validateFormData: D,
|
|
2333
2353
|
getFormRef: b
|
|
2334
|
-
} =
|
|
2335
|
-
return
|
|
2336
|
-
o.isShowBtn == !1 ?
|
|
2354
|
+
} = ta(o, u, l);
|
|
2355
|
+
return vt(async () => {
|
|
2356
|
+
o.isShowBtn == !1 ? y(o.formConfigurationId) : p();
|
|
2337
2357
|
}), e({
|
|
2338
2358
|
validateFormData: D,
|
|
2339
2359
|
clearData: w
|
|
2340
|
-
}), (z,
|
|
2341
|
-
a(_).length > 0 ? (V(), J("div",
|
|
2360
|
+
}), (z, K) => (V(), J("div", Dn, [
|
|
2361
|
+
a(_).length > 0 ? (V(), J("div", Vn, [
|
|
2342
2362
|
(V(!0), J(
|
|
2343
2363
|
ee,
|
|
2344
2364
|
null,
|
|
2345
|
-
pe(a(_), (N) => (V(), P(a(
|
|
2365
|
+
pe(a(_), (N) => (V(), P(a(bt), {
|
|
2346
2366
|
key: N.id,
|
|
2347
2367
|
style: { "margin-right": "20px" },
|
|
2348
2368
|
"btn-type": "primary",
|
|
2349
|
-
onClick: (k) => a(
|
|
2369
|
+
onClick: (k) => a(f)(N)
|
|
2350
2370
|
}, {
|
|
2351
2371
|
default: R(() => [
|
|
2352
2372
|
se(
|
|
@@ -2361,12 +2381,12 @@ const en = { ...rt, ...ut }, tn = (s, e, t, l) => {
|
|
|
2361
2381
|
128
|
|
2362
2382
|
/* KEYED_FRAGMENT */
|
|
2363
2383
|
))
|
|
2364
|
-
])) :
|
|
2365
|
-
|
|
2384
|
+
])) : O("v-if", !0),
|
|
2385
|
+
ft((V(), J(
|
|
2366
2386
|
"div",
|
|
2367
2387
|
{
|
|
2368
2388
|
class: "content-box",
|
|
2369
|
-
style:
|
|
2389
|
+
style: ht({ margin: "0 10px", ...z.customStyle })
|
|
2370
2390
|
},
|
|
2371
2391
|
[
|
|
2372
2392
|
(V(!0), J(
|
|
@@ -2378,19 +2398,19 @@ const en = { ...rt, ...ut }, tn = (s, e, t, l) => {
|
|
|
2378
2398
|
key: N.name
|
|
2379
2399
|
},
|
|
2380
2400
|
[
|
|
2381
|
-
g(N.ctrlType) ? (V(), P(a(
|
|
2401
|
+
g(N.ctrlType) ? (V(), P(a(Qe), {
|
|
2382
2402
|
key: 0,
|
|
2383
2403
|
style: { "margin-bottom": "10px" },
|
|
2384
2404
|
collapsible: N.options.accordion ? "" : "disabled",
|
|
2385
2405
|
activeKey: a(m)
|
|
2386
2406
|
}, {
|
|
2387
2407
|
default: R(() => [
|
|
2388
|
-
(V(), P(a(
|
|
2408
|
+
(V(), P(a(Ue), {
|
|
2389
2409
|
key: N.key,
|
|
2390
2410
|
header: N.columns[0].span
|
|
2391
2411
|
}, {
|
|
2392
2412
|
default: R(() => [
|
|
2393
|
-
a(c) ? (V(), P(a(
|
|
2413
|
+
a(c) ? (V(), P(a(je), {
|
|
2394
2414
|
key: 0,
|
|
2395
2415
|
ref_for: !0,
|
|
2396
2416
|
ref: (k) => a(b)(k, N),
|
|
@@ -2432,7 +2452,7 @@ const en = { ...rt, ...ut }, tn = (s, e, t, l) => {
|
|
|
2432
2452
|
]),
|
|
2433
2453
|
_: 2
|
|
2434
2454
|
/* DYNAMIC */
|
|
2435
|
-
}, 1032, ["rules", "form"])) :
|
|
2455
|
+
}, 1032, ["rules", "form"])) : O("v-if", !0)
|
|
2436
2456
|
]),
|
|
2437
2457
|
_: 2
|
|
2438
2458
|
/* DYNAMIC */
|
|
@@ -2440,8 +2460,8 @@ const en = { ...rt, ...ut }, tn = (s, e, t, l) => {
|
|
|
2440
2460
|
]),
|
|
2441
2461
|
_: 2
|
|
2442
2462
|
/* DYNAMIC */
|
|
2443
|
-
}, 1032, ["collapsible", "activeKey"])) : (V(), J("div",
|
|
2444
|
-
a(c) ? (V(), P(a(
|
|
2463
|
+
}, 1032, ["collapsible", "activeKey"])) : (V(), J("div", kn, [
|
|
2464
|
+
a(c) ? (V(), P(a(je), {
|
|
2445
2465
|
key: 0,
|
|
2446
2466
|
ref_for: !0,
|
|
2447
2467
|
ref: (k) => a(b)(k, N),
|
|
@@ -2461,7 +2481,7 @@ const en = { ...rt, ...ut }, tn = (s, e, t, l) => {
|
|
|
2461
2481
|
]),
|
|
2462
2482
|
_: 2
|
|
2463
2483
|
/* DYNAMIC */
|
|
2464
|
-
}, 1032, ["rules", "form"])) :
|
|
2484
|
+
}, 1032, ["rules", "form"])) : O("v-if", !0)
|
|
2465
2485
|
]))
|
|
2466
2486
|
],
|
|
2467
2487
|
64
|
|
@@ -2474,11 +2494,11 @@ const en = { ...rt, ...ut }, tn = (s, e, t, l) => {
|
|
|
2474
2494
|
4
|
|
2475
2495
|
/* STYLE */
|
|
2476
2496
|
)), [
|
|
2477
|
-
[a(
|
|
2497
|
+
[a(_t)]
|
|
2478
2498
|
])
|
|
2479
2499
|
]));
|
|
2480
2500
|
}
|
|
2481
|
-
}),
|
|
2501
|
+
}), Nn = /* @__PURE__ */ ye(Sn, [["__scopeId", "data-v-ce01ee82"]]), Ln = {
|
|
2482
2502
|
姓名: { "zh-CN": "姓名", en: "Name", _appCode: "framework" },
|
|
2483
2503
|
状态: { "zh-CN": "状态", en: "Status", _appCode: "framework" },
|
|
2484
2504
|
组织名称: { "zh-CN": "组织名称", en: "Organization Name", _appCode: "framework" },
|
|
@@ -2600,9 +2620,9 @@ const en = { ...rt, ...ut }, tn = (s, e, t, l) => {
|
|
|
2600
2620
|
选择源单: { "zh-CN": "选择源单", en: "Select Source Document", _appCode: "framework" },
|
|
2601
2621
|
请选择: { "zh-CN": "请选择", en: "Please select", _appCode: "framework" }
|
|
2602
2622
|
};
|
|
2603
|
-
|
|
2604
|
-
const
|
|
2623
|
+
Vt(Ln);
|
|
2624
|
+
const Zn = dt(Nn);
|
|
2605
2625
|
export {
|
|
2606
|
-
|
|
2607
|
-
|
|
2626
|
+
Zn as DasProcessForm,
|
|
2627
|
+
Zn as default
|
|
2608
2628
|
};
|