@das-fed/ui 7.0.7-hot.65 → 7.0.7-hot.66
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,84 +1,86 @@
|
|
|
1
1
|
import '@das-fed/ui/packages/business-components/process-form/style.css';
|
|
2
|
-
import { withInstall as
|
|
3
|
-
import { ref as p, nextTick as he, defineComponent as
|
|
4
|
-
import { DasFormRef as
|
|
5
|
-
import { DasButton as
|
|
6
|
-
import { vOverlay as
|
|
7
|
-
import { createService as
|
|
8
|
-
import { DasUpload as
|
|
9
|
-
import { DasFormItem as
|
|
10
|
-
import { DasAutocomplete as
|
|
2
|
+
import { withInstall as Vt } from "@das-fed/utils/with-install/index";
|
|
3
|
+
import { ref as p, nextTick as he, defineComponent as Y, watch as z, createBlock as O, createCommentVNode as B, openBlock as V, unref as a, withCtx as $, createVNode as L, createElementVNode as Ge, createElementBlock as H, Fragment as ae, createTextVNode as se, toDisplayString as oe, computed as Nt, isRef as ze, createSlots as Lt, h as fe, renderList as ye, resolveDynamicComponent as De, onMounted as zt, withDirectives as Mt, normalizeStyle as It } from "vue";
|
|
4
|
+
import { DasFormRef as Tt, DasForm as He } from "@das-fed/ui/packages/components/form/index";
|
|
5
|
+
import { DasButton as Rt } from "@das-fed/ui/packages/components/button/index";
|
|
6
|
+
import { vOverlay as Pt } from "@das-fed/ui/packages/components/overlay/index";
|
|
7
|
+
import { createService as W } from "@das-fed/utils/create-api-service";
|
|
8
|
+
import { DasUpload as $t } from "@das-fed/ui/packages/components/upload/index";
|
|
9
|
+
import { DasFormItem as J } from "@das-fed/ui/packages/components/form-item/index";
|
|
10
|
+
import { DasAutocomplete as Ft } from "@das-fed/ui/packages/components/autocomplete/index";
|
|
11
11
|
import Se from "dayjs";
|
|
12
12
|
import { DasImageViewer as Xe } from "@das-fed/ui/packages/components/image-viewer/index";
|
|
13
|
-
import { DasInput as
|
|
13
|
+
import { DasInput as jt } from "@das-fed/ui/packages/components/input/index";
|
|
14
14
|
import { DasTooltip as Fe } from "@das-fed/ui/packages/components/tooltip/index";
|
|
15
|
-
import { i18n as
|
|
16
|
-
import { DasTableColumn as
|
|
17
|
-
import { DasSearchForm as
|
|
18
|
-
import { DasModelTableDialog as
|
|
15
|
+
import { i18n as A, t as D, setI18nRule as Kt } from "@das-fed/web/packages/i18n/index";
|
|
16
|
+
import { DasTableColumn as j } from "@das-fed/ui/packages/components/table/index";
|
|
17
|
+
import { DasSearchForm as qt } from "@das-fed/ui/packages/components/search-form/index";
|
|
18
|
+
import { DasModelTableDialog as Et } from "@das-fed/ui/packages/business-components/model-table-dialog";
|
|
19
19
|
import { getProjectInfo as et } from "@das-fed/utils/common-info";
|
|
20
|
-
import { getConfig as
|
|
20
|
+
import { getConfig as Ot } from "@das-fed/utils/config";
|
|
21
21
|
import { DasRichEditor as tt } from "@das-fed/ui/packages/components/rich-editor/index";
|
|
22
22
|
import { DasCollaspe as at } from "@das-fed/ui/packages/components/collaspe/index";
|
|
23
23
|
import { DasCollaspePanel as nt } from "@das-fed/ui/packages/components/collapse-panel/index";
|
|
24
|
-
const
|
|
25
|
-
|
|
26
|
-
const st =
|
|
24
|
+
const X = "v1", At = W(`/workflow/form/form/${X}`), Bt = W(`/workflow/form/formDef/${X}`);
|
|
25
|
+
W(`/workflow/api/user/${X}`);
|
|
26
|
+
const st = W(`/workflow/api/extend/${X}`), Qt = W(`/workflow/flow/def/${X}`), Ut = W(`/workflow/form/customQuery/${X}`), re = W(`/api/enterpriseright/permission/${X}`), je = W(`/api/space-manage/space-tree/${X}`), xt = W(`/workflow/form/dataTemplate/${X}`), Ke = W(`/api/supply/supplier/${X}`), Yt = W(`/api/warehouse/vms/${X}/asset-receive`), Jt = W(`/api/fms/report/${X}`), Ht = W(`/api/space-manage/device-archives/${X}`);
|
|
27
|
+
W(`/api/device-relation/project/${X}`);
|
|
28
|
+
const Wt = xt.get("/getBpmDataTemplateInfoByFlowKey"), Zt = At.get("/formDesign"), Gt = Bt.get("/get"), Xt = st.get("/report-config");
|
|
27
29
|
st.get("/application-report");
|
|
28
|
-
const ea =
|
|
30
|
+
const ea = Qt.get("/getBindRelationByDefKey"), ta = Ut.get("/getByAlias"), aa = re.get("/organization/authTree"), na = re.post("/user/list"), sa = re.post("/data/user-query"), oa = re.get("/role/list"), la = re.post("/data/role-ids"), ia = re.get("/organization/organizationpage"), ra = re.get("/station/list"), ua = re.get("/position/list"), Me = re.post("/organization/detailbyids"), ot = je.get("/controller/area-children"), pa = je.get("/controller/fuzzy-tree-all"), lt = je.get("/controller/space"), da = Ke.post("/supplier/list/page", (n) => {
|
|
29
31
|
var e, t;
|
|
30
32
|
return n.data.pageBean = {
|
|
31
33
|
page: ((e = n == null ? void 0 : n.data) == null ? void 0 : e.pageIndex) || 1,
|
|
32
34
|
pageSize: ((t = n == null ? void 0 : n.data) == null ? void 0 : t.pageSize) || 20
|
|
33
35
|
}, n;
|
|
34
|
-
}), ca = Ke.get("/supplier"), ga = Ke.post("/classification/list/all"), ma =
|
|
35
|
-
const { setDetailData: i, getFormData: d, setFormData: o, formRule: g, showData: k, disabledData: s, encryptionData: l } = t, v = p([]), r = p([]), h = p([]), c = p(!1), _ =
|
|
36
|
-
const [Q,
|
|
36
|
+
}), ca = Ke.get("/supplier"), ga = Ke.post("/classification/list/all"), ma = Yt.get("/receive-code"), it = Ht.post("/warehouse/account/device"), va = it, fa = Jt.post("/common/device-type/tree"), Ie = p(""), ha = (n, e, t) => {
|
|
37
|
+
const { setDetailData: i, getFormData: d, setFormData: o, formRule: g, showData: k, disabledData: s, encryptionData: l } = t, v = p([]), r = p([]), h = p([]), c = p(!1), _ = Tt(), b = p([]), w = (M) => Object.keys(M).length === 0, m = async (M) => {
|
|
38
|
+
const [Q, K] = await Zt({ formId: M }).run();
|
|
37
39
|
if (Q) return;
|
|
38
|
-
const
|
|
39
|
-
Ie.value =
|
|
40
|
-
|
|
40
|
+
const G = JSON.parse(K.bos);
|
|
41
|
+
Ie.value = G[0].alias, r.value.length && r.value.forEach((x) => {
|
|
42
|
+
x.formKey === K.formKey && o(K.formKey, Ie.value, x.id);
|
|
41
43
|
});
|
|
42
|
-
const [
|
|
43
|
-
await y(), h.value = JSON.parse(
|
|
44
|
-
|
|
45
|
-
}), s.value = { ...s.value, ...n.disabledData }, r.value.length || o(
|
|
44
|
+
const [ne, le] = await Gt({ formDefId: K.defId }).run();
|
|
45
|
+
await y(), h.value = JSON.parse(le.value.expand).list, h.value.forEach((x) => {
|
|
46
|
+
x.columns && x.columns[0].isOpen && b.value.push(x.key);
|
|
47
|
+
}), s.value = { ...s.value, ...n.disabledData }, r.value.length || o(K.formKey, Ie.value), setTimeout(() => {
|
|
46
48
|
k.value = { ...k.value, ...n.showData }, w(n.data) && (c.value = !0), w(n.data) || (i(n.data), n.flowKey && (v.value = n.data.button_list ? JSON.parse(n.data.button_list) : []), c.value = !0);
|
|
47
49
|
}, 50);
|
|
48
50
|
}, N = async () => {
|
|
49
51
|
var M;
|
|
50
52
|
if (n.formConfigurationId) {
|
|
51
|
-
const [Q,
|
|
53
|
+
const [Q, K] = await Xt({ id: n.formConfigurationId }).run();
|
|
52
54
|
if (Q) return;
|
|
53
|
-
r.value =
|
|
55
|
+
r.value = K.reports, v.value = (M = K.reports[0]) == null ? void 0 : M.buttons.filter((G) => !(n.isView && G.event !== "LINK")), m(K.reports[0].formId);
|
|
54
56
|
}
|
|
55
57
|
if (n.flowKey) {
|
|
56
|
-
const [Q,
|
|
58
|
+
const [Q, K] = await ea({ flowKey: n.flowKey }).run();
|
|
57
59
|
if (Q) return;
|
|
58
|
-
m(
|
|
60
|
+
m(K.pcForm.pcFormId);
|
|
59
61
|
}
|
|
60
62
|
}, y = async () => {
|
|
61
|
-
var
|
|
63
|
+
var K, G, ne, le;
|
|
62
64
|
if (!n.flowKey) return;
|
|
63
65
|
const [M, Q] = await Wt().run({
|
|
64
66
|
flowKey: n.flowKey,
|
|
65
67
|
needDisplayFileds: !1
|
|
66
68
|
});
|
|
67
|
-
l.value = ((
|
|
69
|
+
l.value = ((le = (ne = (G = (K = Q == null ? void 0 : Q.value) == null ? void 0 : K.boDef) == null ? void 0 : G.boEnt) == null ? void 0 : ne.attributeList) == null ? void 0 : le.filter((x) => x.encryption == "phone")) || [];
|
|
68
70
|
}, u = p({}), R = (M, Q) => {
|
|
69
|
-
const { key:
|
|
70
|
-
u.value[
|
|
71
|
+
const { key: K } = Q;
|
|
72
|
+
u.value[K] || (u.value[K] = M);
|
|
71
73
|
}, F = async () => (h.value.forEach((M) => {
|
|
72
74
|
M.columns && b.value.push(M.key);
|
|
73
75
|
}), await he(), new Promise((M, Q) => {
|
|
74
|
-
let
|
|
75
|
-
for (const
|
|
76
|
-
u.value[
|
|
77
|
-
|
|
76
|
+
let K = !0;
|
|
77
|
+
for (const G in u.value)
|
|
78
|
+
u.value[G].validate((ne) => {
|
|
79
|
+
ne == !1 && (K = !1);
|
|
78
80
|
});
|
|
79
81
|
setTimeout(() => {
|
|
80
82
|
M({
|
|
81
|
-
result:
|
|
83
|
+
result: K,
|
|
82
84
|
data: d()
|
|
83
85
|
});
|
|
84
86
|
}, 50);
|
|
@@ -93,15 +95,15 @@ const ea = At.get("/getBindRelationByDefKey"), ta = Qt.get("/getByAlias"), aa =
|
|
|
93
95
|
getBtnSet: N,
|
|
94
96
|
handleClick: async (M) => {
|
|
95
97
|
let { result: Q } = await F();
|
|
96
|
-
Q && (e("handleClick", M, d()), M.event === "LINK" && r.value.forEach((
|
|
97
|
-
M.eventTarget ===
|
|
98
|
+
Q && (e("handleClick", M, d()), M.event === "LINK" && r.value.forEach((K) => {
|
|
99
|
+
M.eventTarget === K.formKey && (v.value = K.buttons.filter((G) => !(n.isView && G.event !== "LINK")), c.value = !1, g.value = {}, m(K.formId));
|
|
98
100
|
}));
|
|
99
101
|
},
|
|
100
102
|
validateFormData: F,
|
|
101
103
|
getFormRef: R
|
|
102
104
|
};
|
|
103
105
|
};
|
|
104
|
-
let
|
|
106
|
+
let ya = (n = 21) => {
|
|
105
107
|
let e = "", t = crypto.getRandomValues(new Uint8Array(n));
|
|
106
108
|
for (; n--; ) {
|
|
107
109
|
let i = t[n] & 63;
|
|
@@ -109,10 +111,10 @@ let ba = (n = 21) => {
|
|
|
109
111
|
}
|
|
110
112
|
return e;
|
|
111
113
|
};
|
|
112
|
-
const
|
|
114
|
+
const Z = (n) => {
|
|
113
115
|
var e = new RegExp("<.+?>", "g"), t = n.replace(e, "").replace(/ /g, "");
|
|
114
116
|
return t;
|
|
115
|
-
},
|
|
117
|
+
}, ce = async (n, e, t = {}) => {
|
|
116
118
|
const [i, d] = await ta({ alias: n }).run();
|
|
117
119
|
if (!i && d.url) {
|
|
118
120
|
typeof e == "string" && (e = JSON.parse(e));
|
|
@@ -120,10 +122,10 @@ const W = (n) => {
|
|
|
120
122
|
e.forEach((l) => {
|
|
121
123
|
l.defaultType == 2 && (o.value[l.field] = l.defaultValue);
|
|
122
124
|
}), o.value = { ...o.value, ...t };
|
|
123
|
-
const g = d.requestType === "POST" ?
|
|
125
|
+
const g = d.requestType === "POST" ? W(d.url).post("") : W(d.url).get(""), [k, s] = await g({}, { params: o.value }).run();
|
|
124
126
|
return k ? void 0 : s;
|
|
125
127
|
}
|
|
126
|
-
},
|
|
128
|
+
}, ee = async (n) => {
|
|
127
129
|
const e = p(!1);
|
|
128
130
|
return n.forEach((t) => {
|
|
129
131
|
t.key === "required" && (e.value = !0);
|
|
@@ -134,14 +136,14 @@ const W = (n) => {
|
|
|
134
136
|
if (typeof n != "object" || n === null)
|
|
135
137
|
return n;
|
|
136
138
|
const e = { ...n };
|
|
137
|
-
(!e.hasOwnProperty("id") || e.id === null || e.id === void 0 || e.id === "") && (e.id =
|
|
139
|
+
(!e.hasOwnProperty("id") || e.id === null || e.id === void 0 || e.id === "") && (e.id = ya());
|
|
138
140
|
for (const t in e)
|
|
139
141
|
Object.prototype.hasOwnProperty.call(e, t) && (e[t] = Ve(e[t]));
|
|
140
142
|
return e;
|
|
141
|
-
},
|
|
143
|
+
}, ba = {
|
|
142
144
|
name: "attachment"
|
|
143
|
-
},
|
|
144
|
-
...
|
|
145
|
+
}, _a = /* @__PURE__ */ Y({
|
|
146
|
+
...ba,
|
|
145
147
|
props: {
|
|
146
148
|
setting: { default: () => ({
|
|
147
149
|
icon: "",
|
|
@@ -165,9 +167,9 @@ const W = (n) => {
|
|
|
165
167
|
{ deep: !0, immediate: !0 }
|
|
166
168
|
);
|
|
167
169
|
const v = p();
|
|
168
|
-
return e.setting.options.tip && (v.value =
|
|
170
|
+
return e.setting.options.tip && (v.value = Z(e.setting.options.tip)), s.value || d(e.setting.name, null), z(s, (r) => {
|
|
169
171
|
d(e.setting.name, JSON.stringify(r));
|
|
170
|
-
}), (r, h) => l.value ? (V(),
|
|
172
|
+
}), (r, h) => l.value ? (V(), O(a(J), {
|
|
171
173
|
key: 0,
|
|
172
174
|
col: e.span,
|
|
173
175
|
label: r.setting.desc,
|
|
@@ -175,7 +177,7 @@ const W = (n) => {
|
|
|
175
177
|
helpMessage: v.value
|
|
176
178
|
}, {
|
|
177
179
|
default: $(() => [
|
|
178
|
-
L(a(
|
|
180
|
+
L(a($t), {
|
|
179
181
|
style: { width: "100%" },
|
|
180
182
|
modelValue: s.value,
|
|
181
183
|
"onUpdate:modelValue": h[0] || (h[0] = (c) => s.value = c)
|
|
@@ -185,13 +187,13 @@ const W = (n) => {
|
|
|
185
187
|
/* STABLE */
|
|
186
188
|
}, 8, ["col", "label", "helpMessage"])) : B("v-if", !0);
|
|
187
189
|
}
|
|
188
|
-
}),
|
|
190
|
+
}), rt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
189
191
|
__proto__: null,
|
|
190
|
-
default:
|
|
191
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
192
|
+
default: _a
|
|
193
|
+
}, Symbol.toStringTag, { value: "Module" })), wa = {
|
|
192
194
|
name: "autocomplete"
|
|
193
|
-
},
|
|
194
|
-
...
|
|
195
|
+
}, Ca = /* @__PURE__ */ Y({
|
|
196
|
+
...wa,
|
|
195
197
|
props: {
|
|
196
198
|
setting: { default: () => ({
|
|
197
199
|
icon: "",
|
|
@@ -215,17 +217,17 @@ const W = (n) => {
|
|
|
215
217
|
{ deep: !0, immediate: !0 }
|
|
216
218
|
);
|
|
217
219
|
const v = i.value[e.setting.name] || !1, r = p(!1);
|
|
218
|
-
|
|
220
|
+
ee(e.setting.options.validateList).then((N) => {
|
|
219
221
|
r.value = N;
|
|
220
222
|
});
|
|
221
223
|
const h = 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, b = p("id"), w = p([]);
|
|
222
|
-
e.setting.options.customQuery.alias ?
|
|
224
|
+
e.setting.options.customQuery.alias ? ce(e.setting.options.customQuery.alias, e.setting.options.customQuery.conditionfield).then((N) => {
|
|
223
225
|
w.value = Ve(N);
|
|
224
226
|
}) : w.value = Ve(e.setting.options.options);
|
|
225
227
|
const m = p();
|
|
226
|
-
return e.setting.options.tip && (m.value =
|
|
228
|
+
return e.setting.options.tip && (m.value = Z(e.setting.options.tip)), s.value = o(e.setting.name) || s.value, s.value || d(e.setting.name, null), e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList), z(s, (N) => {
|
|
227
229
|
d(e.setting.name, N.toString());
|
|
228
|
-
}), (N, y) => l.value ? (V(),
|
|
230
|
+
}), (N, y) => l.value ? (V(), O(a(J), {
|
|
229
231
|
key: 0,
|
|
230
232
|
col: e.span,
|
|
231
233
|
prop: e.setting.name,
|
|
@@ -238,7 +240,7 @@ const W = (n) => {
|
|
|
238
240
|
disabled: a(v)
|
|
239
241
|
}, {
|
|
240
242
|
default: $(() => [
|
|
241
|
-
L(a(
|
|
243
|
+
L(a(Ft), {
|
|
242
244
|
modelValue: s.value,
|
|
243
245
|
"onUpdate:modelValue": y[0] || (y[0] = (u) => s.value = u),
|
|
244
246
|
options: w.value,
|
|
@@ -255,13 +257,13 @@ const W = (n) => {
|
|
|
255
257
|
/* STABLE */
|
|
256
258
|
}, 8, ["col", "prop", "modelValue", "label", "helpMessage", "required", "disabled"])) : B("v-if", !0);
|
|
257
259
|
}
|
|
258
|
-
}),
|
|
260
|
+
}), ut = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
259
261
|
__proto__: null,
|
|
260
|
-
default:
|
|
261
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
262
|
+
default: Ca
|
|
263
|
+
}, Symbol.toStringTag, { value: "Module" })), Da = {
|
|
262
264
|
name: "checkbox"
|
|
263
|
-
},
|
|
264
|
-
...
|
|
265
|
+
}, ka = /* @__PURE__ */ Y({
|
|
266
|
+
...Da,
|
|
265
267
|
props: {
|
|
266
268
|
setting: { default: () => ({
|
|
267
269
|
icon: "",
|
|
@@ -285,19 +287,19 @@ const W = (n) => {
|
|
|
285
287
|
{ deep: !0, immediate: !0 }
|
|
286
288
|
);
|
|
287
289
|
const v = i.value[e.setting.name] || !1, r = p(!1);
|
|
288
|
-
|
|
290
|
+
ee(e.setting.options.validateList).then((w) => {
|
|
289
291
|
r.value = w;
|
|
290
292
|
});
|
|
291
293
|
const h = e.setting.options.customQuery.valueBind ? e.setting.options.customQuery.valueBind : "key", c = e.setting.options.customQuery.labelBind ? e.setting.options.customQuery.labelBind : "value", _ = p([]);
|
|
292
|
-
e.setting.options.customQuery.alias ?
|
|
294
|
+
e.setting.options.customQuery.alias ? ce(e.setting.options.customQuery.alias, e.setting.options.customQuery.conditionfield).then((w) => {
|
|
293
295
|
_.value = w;
|
|
294
296
|
}) : _.value = e.setting.options.options;
|
|
295
297
|
const b = p();
|
|
296
|
-
return e.setting.options.tip && (b.value =
|
|
298
|
+
return e.setting.options.tip && (b.value = Z(e.setting.options.tip)()), setTimeout(() => {
|
|
297
299
|
o(e.setting.name) && (s.value = o(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);
|
|
298
300
|
}, 50), e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList), z(s, (w) => {
|
|
299
301
|
d(e.setting.name, w.toString());
|
|
300
|
-
}), (w, m) => l.value ? (V(),
|
|
302
|
+
}), (w, m) => l.value ? (V(), O(a(J), {
|
|
301
303
|
key: 0,
|
|
302
304
|
col: e.span,
|
|
303
305
|
modelValue: s.value,
|
|
@@ -315,13 +317,13 @@ const W = (n) => {
|
|
|
315
317
|
required: r.value
|
|
316
318
|
}, null, 8, ["col", "modelValue", "layout", "label", "prop", "options", "isView", "disabled", "optionsValueKey", "optionsLabelKey", "helpMessage", "required"])) : B("v-if", !0);
|
|
317
319
|
}
|
|
318
|
-
}),
|
|
320
|
+
}), pt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
319
321
|
__proto__: null,
|
|
320
|
-
default:
|
|
321
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
322
|
+
default: ka
|
|
323
|
+
}, Symbol.toStringTag, { value: "Module" })), Sa = {
|
|
322
324
|
name: "date"
|
|
323
|
-
},
|
|
324
|
-
...
|
|
325
|
+
}, Va = /* @__PURE__ */ Y({
|
|
326
|
+
...Sa,
|
|
325
327
|
props: {
|
|
326
328
|
setting: { default: () => ({
|
|
327
329
|
icon: "",
|
|
@@ -345,13 +347,13 @@ const W = (n) => {
|
|
|
345
347
|
{ deep: !0, immediate: !0 }
|
|
346
348
|
);
|
|
347
349
|
const v = i.value[e.setting.name] || !1, r = p(!1);
|
|
348
|
-
|
|
350
|
+
ee(e.setting.options.validateList).then((b) => {
|
|
349
351
|
r.value = b;
|
|
350
352
|
});
|
|
351
353
|
const h = e.setting.options.inputFormat === "yyyy-MM-dd" ? "YYYY/MM/DD" : e.setting.options.inputFormat === "yyyy-MM-dd HH:mm:ss" ? "YYYY/MM/DD HH:mm:ss" : e.setting.options.inputFormat, c = p("");
|
|
352
354
|
e.setting.options.inputFormat === "YYYY/MM/DD" && (c.value = "date"), e.setting.options.inputFormat === "MM/DD" && (c.value = "date"), e.setting.options.inputFormat === "YYYY/MM" && (c.value = "month"), e.setting.options.inputFormat === "YYYY" && (c.value = "year");
|
|
353
355
|
const _ = p();
|
|
354
|
-
if (e.setting.options.tip && (_.value =
|
|
356
|
+
if (e.setting.options.tip && (_.value = Z(e.setting.options.tip)), setTimeout(() => {
|
|
355
357
|
s.value = o(e.setting.name) || e.setting.options.formulasDiyJs || s.value, s.value || d(e.setting.name, null);
|
|
356
358
|
}, 50), e.setting.options.showCurrentDate) {
|
|
357
359
|
let b = /* @__PURE__ */ new Date();
|
|
@@ -359,7 +361,7 @@ const W = (n) => {
|
|
|
359
361
|
}
|
|
360
362
|
return e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList), z(s, (b) => {
|
|
361
363
|
d(e.setting.name, b);
|
|
362
|
-
}), (b, w) => l.value ? (V(),
|
|
364
|
+
}), (b, w) => l.value ? (V(), O(a(J), {
|
|
363
365
|
key: 0,
|
|
364
366
|
col: e.span,
|
|
365
367
|
modelValue: s.value,
|
|
@@ -377,13 +379,13 @@ const W = (n) => {
|
|
|
377
379
|
required: r.value
|
|
378
380
|
}, null, 8, ["col", "modelValue", "label", "prop", "type", "format", "picker", "isView", "disabled", "placeholder", "helpMessage", "required"])) : B("v-if", !0);
|
|
379
381
|
}
|
|
380
|
-
}),
|
|
382
|
+
}), dt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
381
383
|
__proto__: null,
|
|
382
|
-
default:
|
|
383
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
384
|
+
default: Va
|
|
385
|
+
}, Symbol.toStringTag, { value: "Module" })), Na = {
|
|
384
386
|
name: "dropdown"
|
|
385
|
-
},
|
|
386
|
-
...
|
|
387
|
+
}, La = /* @__PURE__ */ Y({
|
|
388
|
+
...Na,
|
|
387
389
|
props: {
|
|
388
390
|
setting: { default: () => ({
|
|
389
391
|
icon: "",
|
|
@@ -409,17 +411,17 @@ const W = (n) => {
|
|
|
409
411
|
const r = () => {
|
|
410
412
|
e.setting.options.customQuery && e.setting.options.customQuery.custQueryJson.length && s(e.setting.options.customQuery.custQueryJson, l.value);
|
|
411
413
|
}, h = i.value[e.setting.name] || !1, c = p(!1);
|
|
412
|
-
|
|
414
|
+
ee(e.setting.options.validateList).then((u) => {
|
|
413
415
|
c.value = u;
|
|
414
416
|
});
|
|
415
417
|
const _ = p(""), b = e.setting.options.customQuery.valueBind ? e.setting.options.customQuery.valueBind : "key", w = e.setting.options.customQuery.labelBind ? e.setting.options.customQuery.labelBind : "value", m = e.setting.options.customQuery.PId || "children", N = p([]);
|
|
416
|
-
e.setting.options.customQuery.alias &&
|
|
418
|
+
e.setting.options.customQuery.alias && ce(e.setting.options.customQuery.alias, e.setting.options.customQuery.conditionfield).then((u) => {
|
|
417
419
|
N.value = u;
|
|
418
420
|
});
|
|
419
421
|
const y = p();
|
|
420
|
-
return e.setting.options.tip && (y.value =
|
|
422
|
+
return e.setting.options.tip && (y.value = Z(e.setting.options.tip)), l.value = e.setting.options.multiple ? [] : "", e.setting.options.multiple && o(e.setting.name) ? l.value = o(e.setting.name).split(",") : l.value = o(e.setting.name) || l.value, l.value || d(e.setting.name, null), e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList), z(l, (u) => {
|
|
421
423
|
d(e.setting.name, u.toString());
|
|
422
|
-
}), (u, R) => v.value ? (V(),
|
|
424
|
+
}), (u, R) => v.value ? (V(), O(a(J), {
|
|
423
425
|
key: 0,
|
|
424
426
|
col: e.span,
|
|
425
427
|
modelValue: l.value,
|
|
@@ -444,13 +446,13 @@ const W = (n) => {
|
|
|
444
446
|
onChange: r
|
|
445
447
|
}, null, 8, ["col", "modelValue", "keyword", "label", "node-key", "placeholder", "mode", "prop", "filter", "options", "isView", "helpMessage", "disabled", "props", "check-strictly", "required"])) : B("v-if", !0);
|
|
446
448
|
}
|
|
447
|
-
}),
|
|
449
|
+
}), ct = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
448
450
|
__proto__: null,
|
|
449
|
-
default:
|
|
450
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
451
|
+
default: La
|
|
452
|
+
}, Symbol.toStringTag, { value: "Module" })), za = { class: "form-image" }, Ma = {
|
|
451
453
|
name: "imageViewer"
|
|
452
|
-
},
|
|
453
|
-
...
|
|
454
|
+
}, Ia = /* @__PURE__ */ Y({
|
|
455
|
+
...Ma,
|
|
454
456
|
props: {
|
|
455
457
|
setting: { default: () => ({
|
|
456
458
|
icon: "",
|
|
@@ -474,13 +476,13 @@ const W = (n) => {
|
|
|
474
476
|
{ deep: !0, immediate: !0 }
|
|
475
477
|
);
|
|
476
478
|
const v = i.value[e.setting.name] || !1, r = p(!1);
|
|
477
|
-
|
|
479
|
+
ee(e.setting.options.validateList).then((b) => {
|
|
478
480
|
r.value = b;
|
|
479
481
|
});
|
|
480
482
|
const h = p("normal");
|
|
481
483
|
e.isView && (h.value = "info");
|
|
482
484
|
const c = p();
|
|
483
|
-
e.setting.options.tip && (c.value =
|
|
485
|
+
e.setting.options.tip && (c.value = Z(e.setting.options.tip)), s.value = e.setting.options.file.limit > 1 ? [] : "", e.setting.options.file.limit > 1 && o(e.setting.name) ? s.value = o(e.setting.name).split(",") : s.value = o(e.setting.name) || s.value, s.value || d(e.setting.name, null);
|
|
484
486
|
const _ = (b) => {
|
|
485
487
|
setTimeout(() => {
|
|
486
488
|
d(e.setting.name, s.value.toString());
|
|
@@ -494,7 +496,7 @@ const W = (n) => {
|
|
|
494
496
|
setTimeout(() => {
|
|
495
497
|
d(e.setting.name, w.join(","));
|
|
496
498
|
}, 100);
|
|
497
|
-
}), (b, w) => l.value ? (V(),
|
|
499
|
+
}), (b, w) => l.value ? (V(), O(a(J), {
|
|
498
500
|
key: 0,
|
|
499
501
|
modelValue: s.value,
|
|
500
502
|
"onUpdate:modelValue": w[2] || (w[2] = (m) => s.value = m),
|
|
@@ -507,7 +509,7 @@ const W = (n) => {
|
|
|
507
509
|
col: e.span
|
|
508
510
|
}, {
|
|
509
511
|
default: $(() => [
|
|
510
|
-
Ge("div",
|
|
512
|
+
Ge("div", za, [
|
|
511
513
|
L(a(Xe), {
|
|
512
514
|
modelValue: s.value,
|
|
513
515
|
"onUpdate:modelValue": w[0] || (w[0] = (m) => s.value = m),
|
|
@@ -539,10 +541,10 @@ const W = (n) => {
|
|
|
539
541
|
for (const [i, d] of e)
|
|
540
542
|
t[i] = d;
|
|
541
543
|
return t;
|
|
542
|
-
},
|
|
544
|
+
}, Ta = /* @__PURE__ */ Ne(Ia, [["__scopeId", "data-v-745a2e98"]]), gt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
543
545
|
__proto__: null,
|
|
544
|
-
default:
|
|
545
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
546
|
+
default: Ta
|
|
547
|
+
}, Symbol.toStringTag, { value: "Module" })), Ra = (n) => {
|
|
546
548
|
const t = "****", i = String(n), d = i.slice(0, 15), o = i.slice(15);
|
|
547
549
|
return ((s) => {
|
|
548
550
|
const l = s.length;
|
|
@@ -577,22 +579,22 @@ const W = (n) => {
|
|
|
577
579
|
const r = v + t.length;
|
|
578
580
|
return s.slice(0, v) + t + s.slice(r);
|
|
579
581
|
})(d) + o;
|
|
580
|
-
},
|
|
582
|
+
}, Pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
581
583
|
__proto__: null,
|
|
582
|
-
default:
|
|
583
|
-
}, Symbol.toStringTag, { value: "Module" })), ke = {},
|
|
584
|
+
default: Ra
|
|
585
|
+
}, Symbol.toStringTag, { value: "Module" })), ke = {}, $a = /^\.\/(.+)\/index\.ts$/, We = /* @__PURE__ */ Object.assign({ "./phone/index.ts": Pa });
|
|
584
586
|
var Ze;
|
|
585
587
|
for (const n in We) {
|
|
586
|
-
const e = We[n], t = (Ze = n.match(
|
|
588
|
+
const e = We[n], t = (Ze = n.match($a)) == null ? void 0 : Ze[1];
|
|
587
589
|
ke[t] = e.default;
|
|
588
590
|
}
|
|
589
|
-
const
|
|
591
|
+
const Fa = (n, e) => {
|
|
590
592
|
var i;
|
|
591
593
|
return e ? ((i = ke[n]) == null ? void 0 : i.call(ke, e)) ?? e : "-";
|
|
592
|
-
},
|
|
594
|
+
}, ja = {
|
|
593
595
|
name: "input"
|
|
594
|
-
},
|
|
595
|
-
...
|
|
596
|
+
}, Ka = /* @__PURE__ */ Y({
|
|
597
|
+
...ja,
|
|
596
598
|
props: {
|
|
597
599
|
setting: { default: () => ({
|
|
598
600
|
icon: "",
|
|
@@ -626,19 +628,19 @@ const ja = (n, e) => {
|
|
|
626
628
|
{ deep: !0 }
|
|
627
629
|
);
|
|
628
630
|
const _ = d.value[e.setting.name] || !1, b = p(!1);
|
|
629
|
-
|
|
631
|
+
ee(e.setting.options.validateList).then((m) => {
|
|
630
632
|
b.value = m;
|
|
631
633
|
});
|
|
632
634
|
const w = p();
|
|
633
|
-
return e.setting.options.tip && (w.value =
|
|
634
|
-
h.value = g(e.setting.name) || e.setting.options.formulasDiyJs || h.value, r && e.isView && (v.value =
|
|
635
|
+
return e.setting.options.tip && (w.value = Z(e.setting.options.tip)), setTimeout(() => {
|
|
636
|
+
h.value = g(e.setting.name) || e.setting.options.formulasDiyJs || h.value, r && e.isView && (v.value = Fa("phone", h.value)), h.value || o(e.setting.name, null);
|
|
635
637
|
}, 50), e.setting.options.validateList.length && k(e.setting.name, e.setting.options.validateList), z(h, (m) => {
|
|
636
638
|
e.setting.options.dataType === "number" && !isNaN(m) ? o(e.setting.name, Number(m)) : o(e.setting.name, m);
|
|
637
|
-
}), (m, N) => (V(),
|
|
638
|
-
|
|
639
|
+
}), (m, N) => (V(), H(
|
|
640
|
+
ae,
|
|
639
641
|
null,
|
|
640
642
|
[
|
|
641
|
-
c.value && r.value && e.isView ? (V(),
|
|
643
|
+
c.value && r.value && e.isView ? (V(), O(a(J), {
|
|
642
644
|
key: 0,
|
|
643
645
|
col: e.span,
|
|
644
646
|
prop: e.setting.name,
|
|
@@ -656,7 +658,7 @@ const ja = (n, e) => {
|
|
|
656
658
|
content: h.value
|
|
657
659
|
}, {
|
|
658
660
|
default: $(() => [
|
|
659
|
-
L(a(
|
|
661
|
+
L(a(jt), {
|
|
660
662
|
modelValue: v.value,
|
|
661
663
|
"onUpdate:modelValue": N[0] || (N[0] = (y) => v.value = y),
|
|
662
664
|
width: m.setting.options.width,
|
|
@@ -665,15 +667,15 @@ const ja = (n, e) => {
|
|
|
665
667
|
placeholder: m.setting.options.placeholder
|
|
666
668
|
}, {
|
|
667
669
|
prepend: $(() => [
|
|
668
|
-
|
|
669
|
-
|
|
670
|
+
se(
|
|
671
|
+
oe(m.setting.options.bindPreAndSufFixjson.preFix),
|
|
670
672
|
1
|
|
671
673
|
/* TEXT */
|
|
672
674
|
)
|
|
673
675
|
]),
|
|
674
676
|
append: $(() => [
|
|
675
|
-
|
|
676
|
-
|
|
677
|
+
se(
|
|
678
|
+
oe(m.setting.options.bindPreAndSufFixjson.sufSix),
|
|
677
679
|
1
|
|
678
680
|
/* TEXT */
|
|
679
681
|
)
|
|
@@ -689,7 +691,7 @@ const ja = (n, e) => {
|
|
|
689
691
|
_: 1
|
|
690
692
|
/* STABLE */
|
|
691
693
|
}, 8, ["col", "prop", "modelValue", "label", "helpMessage", "required"])) : B("v-if", !0),
|
|
692
|
-
c.value && (!r.value || !e.isView) ? (V(),
|
|
694
|
+
c.value && (!r.value || !e.isView) ? (V(), O(a(J), {
|
|
693
695
|
key: 1,
|
|
694
696
|
col: e.span,
|
|
695
697
|
modelValue: h.value,
|
|
@@ -720,13 +722,13 @@ const ja = (n, e) => {
|
|
|
720
722
|
/* STABLE_FRAGMENT */
|
|
721
723
|
));
|
|
722
724
|
}
|
|
723
|
-
}),
|
|
725
|
+
}), mt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
724
726
|
__proto__: null,
|
|
725
|
-
default:
|
|
726
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
727
|
+
default: Ka
|
|
728
|
+
}, Symbol.toStringTag, { value: "Module" })), qa = {
|
|
727
729
|
name: "number"
|
|
728
|
-
},
|
|
729
|
-
...
|
|
730
|
+
}, Ea = /* @__PURE__ */ Y({
|
|
731
|
+
...qa,
|
|
730
732
|
props: {
|
|
731
733
|
setting: { default: () => ({
|
|
732
734
|
icon: "",
|
|
@@ -750,15 +752,15 @@ const ja = (n, e) => {
|
|
|
750
752
|
{ deep: !0, immediate: !0 }
|
|
751
753
|
);
|
|
752
754
|
const v = i.value[e.setting.name] || !1, r = p(!1);
|
|
753
|
-
|
|
755
|
+
ee(e.setting.options.validateList).then((c) => {
|
|
754
756
|
r.value = c;
|
|
755
757
|
});
|
|
756
758
|
const h = p();
|
|
757
|
-
return e.setting.options.tip && (h.value =
|
|
759
|
+
return e.setting.options.tip && (h.value = Z(e.setting.options.tip)), setTimeout(() => {
|
|
758
760
|
s.value = o(e.setting.name) || e.setting.options.formulasDiyJs || s.value, s.value || d(e.setting.name, null);
|
|
759
761
|
}, 50), e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList), z(s, (c) => {
|
|
760
762
|
d(e.setting.name, c);
|
|
761
|
-
}), (c, _) => l.value ? (V(),
|
|
763
|
+
}), (c, _) => l.value ? (V(), O(a(J), {
|
|
762
764
|
key: 0,
|
|
763
765
|
col: e.span,
|
|
764
766
|
modelValue: s.value,
|
|
@@ -777,13 +779,13 @@ const ja = (n, e) => {
|
|
|
777
779
|
required: r.value
|
|
778
780
|
}, null, 8, ["col", "modelValue", "label", "prop", "max", "min", "step", "disabled", "isView", "precision", "helpMessage", "required"])) : B("v-if", !0);
|
|
779
781
|
}
|
|
780
|
-
}),
|
|
782
|
+
}), vt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
781
783
|
__proto__: null,
|
|
782
|
-
default:
|
|
783
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
784
|
+
default: Ea
|
|
785
|
+
}, Symbol.toStringTag, { value: "Module" })), Oa = {
|
|
784
786
|
name: "radio"
|
|
785
|
-
}, Aa = /* @__PURE__ */
|
|
786
|
-
...
|
|
787
|
+
}, Aa = /* @__PURE__ */ Y({
|
|
788
|
+
...Oa,
|
|
787
789
|
props: {
|
|
788
790
|
setting: { default: () => ({
|
|
789
791
|
icon: "",
|
|
@@ -809,15 +811,15 @@ const ja = (n, e) => {
|
|
|
809
811
|
{ deep: !0, immediate: !0 }
|
|
810
812
|
);
|
|
811
813
|
const v = i.value[e.setting.name] || !1, r = p(!1);
|
|
812
|
-
|
|
814
|
+
ee(e.setting.options.validateList).then((m) => {
|
|
813
815
|
r.value = m;
|
|
814
816
|
});
|
|
815
817
|
const h = e.setting.options.customQuery.valueBind ? e.setting.options.customQuery.valueBind : "key", c = e.setting.options.customQuery.labelBind ? e.setting.options.customQuery.labelBind : "value", _ = p([]);
|
|
816
|
-
e.setting.options.customQuery.alias ?
|
|
818
|
+
e.setting.options.customQuery.alias ? ce(e.setting.options.customQuery.alias, e.setting.options.customQuery.conditionfield).then((m) => {
|
|
817
819
|
_.value = m;
|
|
818
820
|
}) : _.value = e.setting.options.options;
|
|
819
821
|
const b = p();
|
|
820
|
-
e.setting.options.tip && (b.value =
|
|
822
|
+
e.setting.options.tip && (b.value = Z(e.setting.options.tip)), setTimeout(() => {
|
|
821
823
|
s.value = o(e.setting.name) || e.setting.options.formulasDiyJs || s.value, s.value || d(e.setting.name, null);
|
|
822
824
|
}, 50), e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList), z(s, (m) => {
|
|
823
825
|
d(e.setting.name, m);
|
|
@@ -830,7 +832,7 @@ const ja = (n, e) => {
|
|
|
830
832
|
}
|
|
831
833
|
});
|
|
832
834
|
};
|
|
833
|
-
return (m, N) => l.value ? (V(),
|
|
835
|
+
return (m, N) => l.value ? (V(), O(a(J), {
|
|
834
836
|
key: 0,
|
|
835
837
|
onChange: w,
|
|
836
838
|
col: e.span,
|
|
@@ -850,13 +852,13 @@ const ja = (n, e) => {
|
|
|
850
852
|
isSetTimeout: !0
|
|
851
853
|
}, null, 8, ["col", "modelValue", "layout", "label", "prop", "options", "isView", "optionsValueKey", "optionsLabelKey", "helpMessage", "disabled", "required"])) : B("v-if", !0);
|
|
852
854
|
}
|
|
853
|
-
}),
|
|
855
|
+
}), ft = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
854
856
|
__proto__: null,
|
|
855
857
|
default: Aa
|
|
856
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
858
|
+
}, Symbol.toStringTag, { value: "Module" })), Ba = {
|
|
857
859
|
name: "select"
|
|
858
|
-
},
|
|
859
|
-
...
|
|
860
|
+
}, Qa = /* @__PURE__ */ Y({
|
|
861
|
+
...Ba,
|
|
860
862
|
props: {
|
|
861
863
|
setting: { default: () => ({
|
|
862
864
|
icon: "",
|
|
@@ -890,7 +892,7 @@ const ja = (n, e) => {
|
|
|
890
892
|
R.forEach((I) => {
|
|
891
893
|
const M = I.fieldPath.split("."), Q = M[M.length - 1];
|
|
892
894
|
F[I.field] = g(Q);
|
|
893
|
-
}),
|
|
895
|
+
}), ce(
|
|
894
896
|
e.setting.options.customQuery.alias,
|
|
895
897
|
e.setting.options.customQuery.conditionfield,
|
|
896
898
|
F
|
|
@@ -903,7 +905,7 @@ const ja = (n, e) => {
|
|
|
903
905
|
{ deep: !0 }
|
|
904
906
|
);
|
|
905
907
|
const r = i.value[e.setting.name] || !1, h = p(!1);
|
|
906
|
-
|
|
908
|
+
ee(e.setting.options.validateList).then((u) => {
|
|
907
909
|
h.value = u;
|
|
908
910
|
});
|
|
909
911
|
const c = e.setting.options.customQuery.valueBind ? e.setting.options.customQuery.valueBind : "key", _ = e.setting.options.customQuery.labelBind ? e.setting.options.customQuery.labelBind : "value", b = p([]);
|
|
@@ -913,10 +915,10 @@ const ja = (n, e) => {
|
|
|
913
915
|
const R = u.filter((I) => I.defaultType == 1);
|
|
914
916
|
let F = {};
|
|
915
917
|
R.forEach((I) => {
|
|
916
|
-
var
|
|
917
|
-
const M = (
|
|
918
|
+
var K;
|
|
919
|
+
const M = (K = I.fieldPath) == null ? void 0 : K.split("."), Q = M[M.length - 1];
|
|
918
920
|
F[I.field] = g(Q);
|
|
919
|
-
}), Object.values(F).every((I) => I) &&
|
|
921
|
+
}), Object.values(F).every((I) => I) && ce(e.setting.options.customQuery.alias, e.setting.options.customQuery.conditionfield, F).then(
|
|
920
922
|
(I) => {
|
|
921
923
|
b.value = I;
|
|
922
924
|
}
|
|
@@ -924,7 +926,7 @@ const ja = (n, e) => {
|
|
|
924
926
|
} else
|
|
925
927
|
b.value = e.setting.options.options;
|
|
926
928
|
const w = p();
|
|
927
|
-
e.setting.options.tip && (w.value =
|
|
929
|
+
e.setting.options.tip && (w.value = Z(e.setting.options.tip)), l.value = e.setting.options.multiple ? [] : null, setTimeout(() => {
|
|
928
930
|
e.setting.options.multiple && (g(e.setting.name) || e.setting.options.formulasDiyJs) ? (g(e.setting.name) && (l.value = g(e.setting.name).split(",")), e.setting.options.formulasDiyJs && (l.value = e.setting.options.formulasDiyJs.split(","))) : l.value = g(e.setting.name) || e.setting.options.formulasDiyJs || l.value, l.value || o(e.setting.name, null);
|
|
929
931
|
}, 50), e.setting.options.validateList.length && k(e.setting.name, e.setting.options.validateList), z(l, (u) => {
|
|
930
932
|
e.setting.options.multiple ? o(e.setting.name, u.toString()) : o(e.setting.name, u);
|
|
@@ -937,7 +939,7 @@ const ja = (n, e) => {
|
|
|
937
939
|
}
|
|
938
940
|
});
|
|
939
941
|
};
|
|
940
|
-
return (u, R) => v.value ? (V(),
|
|
942
|
+
return (u, R) => v.value ? (V(), O(a(J), {
|
|
941
943
|
key: 0,
|
|
942
944
|
col: e.span,
|
|
943
945
|
modelValue: l.value,
|
|
@@ -959,33 +961,33 @@ const ja = (n, e) => {
|
|
|
959
961
|
required: h.value
|
|
960
962
|
}, null, 8, ["col", "modelValue", "label", "prop", "placeholder", "mode", "showSearch", "isView", "options", "optionsValueKey", "optionsLabelKey", "helpMessage", "disabled", "required"])) : B("v-if", !0);
|
|
961
963
|
}
|
|
962
|
-
}),
|
|
964
|
+
}), ht = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
963
965
|
__proto__: null,
|
|
964
|
-
default:
|
|
965
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
966
|
-
var _e, we,
|
|
967
|
-
const i = et().id, d = p(!1), o = (
|
|
966
|
+
default: Qa
|
|
967
|
+
}, Symbol.toStringTag, { value: "Module" })), Ua = (n, e, t) => {
|
|
968
|
+
var _e, we, pe, de, ve;
|
|
969
|
+
const i = et().id, d = p(!1), o = (ve = (de = (pe = (we = (_e = n == null ? void 0 : n.options) == null ? void 0 : _e.selector) == null ? void 0 : we.type) == null ? void 0 : pe.alias) == null ? void 0 : de.replace("eip-", "")) == null ? void 0 : ve.replace("-selector", ""), g = p([]), k = p(""), s = p(""), l = p(""), v = p({
|
|
968
970
|
spaceId: "",
|
|
969
971
|
spacePath: "",
|
|
970
972
|
spacePathName: ""
|
|
971
973
|
}), r = {
|
|
972
|
-
user:
|
|
973
|
-
org:
|
|
974
|
-
role:
|
|
975
|
-
job:
|
|
976
|
-
post:
|
|
977
|
-
supplier:
|
|
978
|
-
source:
|
|
979
|
-
device:
|
|
974
|
+
user: A("搜索姓名/账号/手机号").value,
|
|
975
|
+
org: A("搜索组织名称/组织编码").value,
|
|
976
|
+
role: A("搜索角色名称").value,
|
|
977
|
+
job: A("职务名称/职务编码").value,
|
|
978
|
+
post: A("搜索岗位名称/岗位编码").value,
|
|
979
|
+
supplier: A("搜索供应商编码/名称").value,
|
|
980
|
+
source: A("搜索单据编码/申请人").value,
|
|
981
|
+
device: A("搜索设备编码/名称").value
|
|
980
982
|
}, h = {
|
|
981
|
-
user:
|
|
982
|
-
org:
|
|
983
|
-
role:
|
|
984
|
-
job:
|
|
985
|
-
post:
|
|
986
|
-
supplier:
|
|
987
|
-
source:
|
|
988
|
-
device:
|
|
983
|
+
user: A("添加用户").value,
|
|
984
|
+
org: A("组织选择器").value,
|
|
985
|
+
role: A("角色选择器").value,
|
|
986
|
+
job: A("职务选择器").value,
|
|
987
|
+
post: A("岗位选择器").value,
|
|
988
|
+
supplier: A("选择供应商").value,
|
|
989
|
+
source: A("选择源单").value,
|
|
990
|
+
device: A("选择报修设备").value
|
|
989
991
|
}, c = {
|
|
990
992
|
user: "id",
|
|
991
993
|
org: "id",
|
|
@@ -996,15 +998,15 @@ const ja = (n, e) => {
|
|
|
996
998
|
source: "code",
|
|
997
999
|
device: "deviceId"
|
|
998
1000
|
}, _ = {
|
|
999
|
-
1:
|
|
1000
|
-
2:
|
|
1001
|
-
3:
|
|
1001
|
+
1: A("正常").value,
|
|
1002
|
+
2: A("锁定").value,
|
|
1003
|
+
3: A("禁用").value
|
|
1002
1004
|
}, b = {
|
|
1003
|
-
0:
|
|
1004
|
-
1:
|
|
1005
|
+
0: A("普通").value,
|
|
1006
|
+
1: A("管理员").value
|
|
1005
1007
|
}, w = {
|
|
1006
|
-
0:
|
|
1007
|
-
1:
|
|
1008
|
+
0: A("无效").value,
|
|
1009
|
+
1: A("有效").value
|
|
1008
1010
|
}, m = {
|
|
1009
1011
|
user: sa,
|
|
1010
1012
|
org: Me,
|
|
@@ -1012,7 +1014,7 @@ const ja = (n, e) => {
|
|
|
1012
1014
|
job: Me,
|
|
1013
1015
|
post: Me,
|
|
1014
1016
|
supplier: ca,
|
|
1015
|
-
device:
|
|
1017
|
+
device: va
|
|
1016
1018
|
}, N = h[o], y = p({}), u = p([]), R = () => {
|
|
1017
1019
|
var S, C;
|
|
1018
1020
|
o === "supplier" && (y.value = {
|
|
@@ -1043,11 +1045,11 @@ const ja = (n, e) => {
|
|
|
1043
1045
|
}
|
|
1044
1046
|
},
|
|
1045
1047
|
right: !1
|
|
1046
|
-
},
|
|
1048
|
+
}, G(), I()), o === "device" ? (y.value = {
|
|
1047
1049
|
left: !1,
|
|
1048
1050
|
content: {
|
|
1049
1051
|
multiple: !1,
|
|
1050
|
-
api:
|
|
1052
|
+
api: it,
|
|
1051
1053
|
params: {
|
|
1052
1054
|
deviceNameOrCode: "",
|
|
1053
1055
|
groupId: null,
|
|
@@ -1062,7 +1064,7 @@ const ja = (n, e) => {
|
|
|
1062
1064
|
}
|
|
1063
1065
|
},
|
|
1064
1066
|
right: !1
|
|
1065
|
-
},
|
|
1067
|
+
}, K(), le()) : o === "source" ? (y.value = {
|
|
1066
1068
|
left: !1,
|
|
1067
1069
|
content: {
|
|
1068
1070
|
api: ma,
|
|
@@ -1100,7 +1102,7 @@ const ja = (n, e) => {
|
|
|
1100
1102
|
},
|
|
1101
1103
|
props: {
|
|
1102
1104
|
inputOptions: {
|
|
1103
|
-
placeholder:
|
|
1105
|
+
placeholder: A("搜索组织名称").value
|
|
1104
1106
|
}
|
|
1105
1107
|
}
|
|
1106
1108
|
},
|
|
@@ -1176,7 +1178,7 @@ const ja = (n, e) => {
|
|
|
1176
1178
|
},
|
|
1177
1179
|
{
|
|
1178
1180
|
type: "select",
|
|
1179
|
-
label:
|
|
1181
|
+
label: A("供应商类型").value,
|
|
1180
1182
|
layout: "out",
|
|
1181
1183
|
width: "200px",
|
|
1182
1184
|
closable: !0,
|
|
@@ -1197,7 +1199,7 @@ const ja = (n, e) => {
|
|
|
1197
1199
|
return f ? {} : (T.data.forEach((P) => {
|
|
1198
1200
|
M(P);
|
|
1199
1201
|
}), T);
|
|
1200
|
-
},
|
|
1202
|
+
}, K = async () => {
|
|
1201
1203
|
u.value = [
|
|
1202
1204
|
{
|
|
1203
1205
|
type: "searchInput",
|
|
@@ -1213,17 +1215,17 @@ const ja = (n, e) => {
|
|
|
1213
1215
|
{
|
|
1214
1216
|
type: "treeSelect",
|
|
1215
1217
|
key: "groupId",
|
|
1216
|
-
label:
|
|
1218
|
+
label: A("设备分类").value,
|
|
1217
1219
|
size: "mini",
|
|
1218
1220
|
value: "",
|
|
1219
1221
|
nodeKey: "id",
|
|
1220
1222
|
options: [],
|
|
1221
|
-
placeholder:
|
|
1223
|
+
placeholder: A("请选择").value,
|
|
1222
1224
|
selectAttrs: { allowClear: !0 }
|
|
1223
1225
|
},
|
|
1224
1226
|
{
|
|
1225
1227
|
key: "spaceId",
|
|
1226
|
-
label:
|
|
1228
|
+
label: A("安装位置").value,
|
|
1227
1229
|
type: "treeSelect",
|
|
1228
1230
|
defaultExpandedKeys: [],
|
|
1229
1231
|
path: "",
|
|
@@ -1235,35 +1237,35 @@ const ja = (n, e) => {
|
|
|
1235
1237
|
options: []
|
|
1236
1238
|
}
|
|
1237
1239
|
];
|
|
1238
|
-
},
|
|
1240
|
+
}, G = async () => {
|
|
1239
1241
|
const S = {
|
|
1240
1242
|
name: "",
|
|
1241
1243
|
published: 1
|
|
1242
1244
|
}, [C, f] = await ga(S).run();
|
|
1243
1245
|
C || (u.value[1].options = f);
|
|
1244
|
-
},
|
|
1246
|
+
}, ne = (S) => {
|
|
1245
1247
|
var C, f;
|
|
1246
|
-
S.leaf = !((C = S.children) != null && C.length), S.parentId === "0" && (S.id = "-1"), (f = S.children) == null || f.forEach(
|
|
1247
|
-
},
|
|
1248
|
-
const [S, C] = await
|
|
1248
|
+
S.leaf = !((C = S.children) != null && C.length), S.parentId === "0" && (S.id = "-1"), (f = S.children) == null || f.forEach(ne);
|
|
1249
|
+
}, le = async () => {
|
|
1250
|
+
const [S, C] = await fa().run();
|
|
1249
1251
|
if (S) return;
|
|
1250
1252
|
const f = [C];
|
|
1251
|
-
f.forEach(
|
|
1252
|
-
},
|
|
1253
|
+
f.forEach(ne), u.value[1].options = f, u.value[1].value = "-1";
|
|
1254
|
+
}, x = () => {
|
|
1253
1255
|
var C;
|
|
1254
1256
|
k.value = "", d.value = !0;
|
|
1255
1257
|
let S = c[o];
|
|
1256
1258
|
y.value.content.selectListProps.data = (C = g == null ? void 0 : g.value) == null ? void 0 : C.map((f) => o === "device" ? { deviceName: f == null ? void 0 : f.label, [S]: f == null ? void 0 : f.value } : { name: f == null ? void 0 : f.label, [S]: f == null ? void 0 : f.value });
|
|
1257
1259
|
};
|
|
1258
1260
|
R();
|
|
1259
|
-
const
|
|
1260
|
-
var S, C, f, T, P,
|
|
1261
|
+
const ge = async () => {
|
|
1262
|
+
var S, C, f, T, P, q, E, U, te, ue, ie, Ce, Oe, Ae, Be, Qe, Ue, xe, Ye, Je;
|
|
1261
1263
|
if (y.value.content.params = {
|
|
1262
1264
|
...(C = (S = y == null ? void 0 : y.value) == null ? void 0 : S.content) == null ? void 0 : C.params,
|
|
1263
1265
|
pageIndex: 1
|
|
1264
1266
|
}, (o === "user" || o === "org" || o === "post" || o === "role" || o === "job") && (y.value.content.params.name = (f = u == null ? void 0 : u.value[0]) == null ? void 0 : f.value), o === "source" && (y.value.content.params.key = (T = u == null ? void 0 : u.value[0]) == null ? void 0 : T.value), o === "device") {
|
|
1265
1267
|
const Le = (P = u == null ? void 0 : u.value[1]) == null ? void 0 : P.value;
|
|
1266
|
-
y.value.content.params.deviceNameOrCode = ((
|
|
1268
|
+
y.value.content.params.deviceNameOrCode = ((q = u == null ? void 0 : u.value[0]) == null ? void 0 : q.value) || "", y.value.content.params.groupId = !Le || Le === "-1" ? null : Le, y.value.content.params.spaceId = ((E = u == null ? void 0 : u.value[2]) == null ? void 0 : E.value) || "";
|
|
1267
1269
|
}
|
|
1268
1270
|
o === "supplier" && (y.value.content.params.querys = [
|
|
1269
1271
|
{
|
|
@@ -1273,7 +1275,7 @@ const ja = (n, e) => {
|
|
|
1273
1275
|
relation: "AND",
|
|
1274
1276
|
operation: "EQUAL"
|
|
1275
1277
|
}
|
|
1276
|
-
], (
|
|
1278
|
+
], (U = u == null ? void 0 : u.value[0]) != null && U.value && (y.value.content.params.querys = (Ae = (ie = (ue = (te = y == null ? void 0 : y.value) == null ? void 0 : te.content) == null ? void 0 : ue.params) == null ? void 0 : ie.querys) == null ? void 0 : Ae.concat([
|
|
1277
1279
|
{
|
|
1278
1280
|
property: "name",
|
|
1279
1281
|
value: (Ce = u == null ? void 0 : u.value[0]) == null ? void 0 : Ce.value,
|
|
@@ -1288,7 +1290,7 @@ const ja = (n, e) => {
|
|
|
1288
1290
|
relation: "OR",
|
|
1289
1291
|
operation: "LIKE"
|
|
1290
1292
|
}
|
|
1291
|
-
])), (
|
|
1293
|
+
])), (Be = u == null ? void 0 : u.value[1]) != null && Be.value && (y.value.content.params.querys = (Je = (xe = (Ue = (Qe = y == null ? void 0 : y.value) == null ? void 0 : Qe.content) == null ? void 0 : Ue.params) == null ? void 0 : xe.querys) == null ? void 0 : Je.concat([
|
|
1292
1294
|
{
|
|
1293
1295
|
property: "classificationId",
|
|
1294
1296
|
value: (Ye = u == null ? void 0 : u.value[1]) == null ? void 0 : Ye.value,
|
|
@@ -1301,10 +1303,10 @@ const ja = (n, e) => {
|
|
|
1301
1303
|
z(
|
|
1302
1304
|
() => d == null ? void 0 : d.value,
|
|
1303
1305
|
(S) => {
|
|
1304
|
-
S ||
|
|
1306
|
+
S || me();
|
|
1305
1307
|
}
|
|
1306
1308
|
);
|
|
1307
|
-
const
|
|
1309
|
+
const me = async () => {
|
|
1308
1310
|
o === "supplier" ? (u.value[0].value = "", u.value[1].value = void 0) : o === "device" ? (u.value[0].value = "", u.value[1].value = "-1", u.value[2].value = "") : (o === "org" || o === "user" || o === "source" || o === "post" || o === "role" || o === "job") && (u.value[0].value = ""), R();
|
|
1309
1311
|
};
|
|
1310
1312
|
return {
|
|
@@ -1317,14 +1319,14 @@ const ja = (n, e) => {
|
|
|
1317
1319
|
userStatusMap: _,
|
|
1318
1320
|
roleTypeMap: b,
|
|
1319
1321
|
roleStatusMap: w,
|
|
1320
|
-
openDialog:
|
|
1322
|
+
openDialog: x,
|
|
1321
1323
|
confirm: async (S) => {
|
|
1322
|
-
var f, T, P,
|
|
1324
|
+
var f, T, P, q;
|
|
1323
1325
|
let C = c[o];
|
|
1324
|
-
g.value = S == null ? void 0 : S.map((
|
|
1326
|
+
g.value = S == null ? void 0 : S.map((E) => ({ label: (E == null ? void 0 : E.deviceName) || (E == null ? void 0 : E.name) || (E == null ? void 0 : E.code), value: E[C] })), o === "supplier" && (s.value = (f = S[0]) == null ? void 0 : f.linkmanPhone), o === "device" && (l.value = ((T = S[0]) == null ? void 0 : T.id) || "", v.value = {
|
|
1325
1327
|
spaceId: (P = S[0]) == null ? void 0 : P.spaceId,
|
|
1326
1328
|
spacePath: "",
|
|
1327
|
-
spacePathName: ((
|
|
1329
|
+
spacePathName: ((q = S[0]) == null ? void 0 : q.spaceSite) || ""
|
|
1328
1330
|
});
|
|
1329
1331
|
},
|
|
1330
1332
|
getDetail: async (S) => {
|
|
@@ -1340,27 +1342,43 @@ const ja = (n, e) => {
|
|
|
1340
1342
|
}
|
|
1341
1343
|
];
|
|
1342
1344
|
return;
|
|
1343
|
-
} else o === "user" ? f.userIds = T : o === "role" ? f.ids = T : o === "supplier" ? f.id = T : o === "device" ? f
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1345
|
+
} else o === "user" ? f.userIds = T : o === "role" ? f.ids = T : o === "supplier" ? f.id = T : o === "device" ? f = {
|
|
1346
|
+
deviceNameOrCode: S,
|
|
1347
|
+
groupId: null,
|
|
1348
|
+
spaceId: ""
|
|
1349
|
+
} : f = T;
|
|
1350
|
+
const [P, q] = await C(f).run();
|
|
1351
|
+
if (!P)
|
|
1352
|
+
if (o === "supplier")
|
|
1353
|
+
g.value = [
|
|
1354
|
+
{
|
|
1355
|
+
label: (q == null ? void 0 : q.name) || (q == null ? void 0 : q.code),
|
|
1356
|
+
value: q == null ? void 0 : q.id
|
|
1357
|
+
}
|
|
1358
|
+
];
|
|
1359
|
+
else if (o === "device") {
|
|
1360
|
+
const E = Array.isArray(q) ? q : (q == null ? void 0 : q.data) || (q == null ? void 0 : q.rows) || [], U = E.find((te) => (te == null ? void 0 : te.deviceId) === S) || E[0];
|
|
1361
|
+
if (!U) return;
|
|
1362
|
+
l.value = (U == null ? void 0 : U.id) || "", v.value = {
|
|
1363
|
+
spaceId: (U == null ? void 0 : U.spaceId) || "",
|
|
1364
|
+
spacePath: "",
|
|
1365
|
+
spacePathName: (U == null ? void 0 : U.spaceSite) || ""
|
|
1366
|
+
}, g.value = [
|
|
1367
|
+
{
|
|
1368
|
+
label: U == null ? void 0 : U.deviceName,
|
|
1369
|
+
value: U == null ? void 0 : U.deviceId
|
|
1370
|
+
}
|
|
1371
|
+
];
|
|
1372
|
+
} else
|
|
1373
|
+
g.value = q == null ? void 0 : q.map((E) => ({ label: (E == null ? void 0 : E.name) || (E == null ? void 0 : E.code), value: E == null ? void 0 : E.id }));
|
|
1356
1374
|
},
|
|
1357
|
-
searchData:
|
|
1375
|
+
searchData: ge,
|
|
1358
1376
|
searchOptions: u,
|
|
1359
1377
|
linkmanPhone: s,
|
|
1360
1378
|
equipmentArchivesId: l,
|
|
1361
1379
|
deviceSpaceInfo: v
|
|
1362
1380
|
};
|
|
1363
|
-
},
|
|
1381
|
+
}, xa = (n) => {
|
|
1364
1382
|
const e = p(""), t = p(""), i = p([]), d = p("");
|
|
1365
1383
|
return {
|
|
1366
1384
|
spacePath: e,
|
|
@@ -1401,10 +1419,10 @@ const ja = (n, e) => {
|
|
|
1401
1419
|
return e.value = (r == null ? void 0 : r.path) || l, t.value = (r == null ? void 0 : r.pathName) || (r == null ? void 0 : r.name) || "", r;
|
|
1402
1420
|
}
|
|
1403
1421
|
};
|
|
1404
|
-
},
|
|
1422
|
+
}, Ya = { class: "table-search-process-top" }, Ja = {
|
|
1405
1423
|
name: "selector"
|
|
1406
|
-
},
|
|
1407
|
-
...
|
|
1424
|
+
}, Ha = /* @__PURE__ */ Y({
|
|
1425
|
+
...Ja,
|
|
1408
1426
|
props: {
|
|
1409
1427
|
setting: { default: () => ({
|
|
1410
1428
|
icon: "",
|
|
@@ -1419,8 +1437,8 @@ const ja = (n, e) => {
|
|
|
1419
1437
|
store: {}
|
|
1420
1438
|
},
|
|
1421
1439
|
setup(n) {
|
|
1422
|
-
var
|
|
1423
|
-
const e = n, t =
|
|
1440
|
+
var ve, S;
|
|
1441
|
+
const e = n, t = Nt(() => {
|
|
1424
1442
|
var C, f, T;
|
|
1425
1443
|
return e.isView ? !(g(e.setting.name).split(",").length > 1) : ((T = (f = (C = e == null ? void 0 : e.setting) == null ? void 0 : C.options) == null ? void 0 : f.selector) == null ? void 0 : T.isSingle) ?? !0;
|
|
1426
1444
|
}), { data: i, showData: d, setData: o, getData: g, flowKey: k, setFormRule: s, deleteRule: l, disabledData: v } = e.store || {}, r = p(""), h = p(!0);
|
|
@@ -1444,23 +1462,23 @@ const ja = (n, e) => {
|
|
|
1444
1462
|
confirm: I,
|
|
1445
1463
|
getDetail: M,
|
|
1446
1464
|
searchData: Q,
|
|
1447
|
-
searchOptions:
|
|
1448
|
-
linkmanPhone:
|
|
1449
|
-
equipmentArchivesId:
|
|
1450
|
-
deviceSpaceInfo:
|
|
1451
|
-
} =
|
|
1465
|
+
searchOptions: K,
|
|
1466
|
+
linkmanPhone: G,
|
|
1467
|
+
equipmentArchivesId: ne,
|
|
1468
|
+
deviceSpaceInfo: le
|
|
1469
|
+
} = Ua(e.setting, k, r), { spacePath: x, spaceName: ge, searchSpace: me, changeSpace: qe, spaceLoad: Ee, filterSpaceTree: _e, getSpaceDetail: we } = xa(
|
|
1452
1470
|
t.value
|
|
1453
|
-
),
|
|
1454
|
-
|
|
1455
|
-
|
|
1471
|
+
), pe = p(!1);
|
|
1472
|
+
ee(e.setting.options.validateList).then((C) => {
|
|
1473
|
+
pe.value = C;
|
|
1456
1474
|
});
|
|
1457
|
-
const
|
|
1458
|
-
if (e.setting.options.tip && (
|
|
1459
|
-
t.value ? (
|
|
1475
|
+
const de = p();
|
|
1476
|
+
if (e.setting.options.tip && (de.value = Z(e.setting.options.tip)), e.setting.options.validateList.length && s(e.setting.name, e.setting.options.validateList), m == "position") {
|
|
1477
|
+
t.value ? (x.value = g(e.setting.name) ?? "", r.value = g(e.setting.name) ? g(e.setting.name).split("/").pop() : r.value) : (x.value = [], r.value = g(e.setting.name) ? (S = (ve = g(e.setting.name)) == null ? void 0 : ve.split(",")) == null ? void 0 : S.map((f) => (x.value.push(f), f.split("/").pop())) : []), r.value || o(e.setting.name, null);
|
|
1460
1478
|
let C = !1;
|
|
1461
1479
|
z(r, (f) => {
|
|
1462
1480
|
C || (t.value ? o(e.setting.name, f) : o(e.setting.name, (f == null ? void 0 : f.join(",")) || ""));
|
|
1463
|
-
}), z(
|
|
1481
|
+
}), z(ge, (f) => {
|
|
1464
1482
|
C || (t.value ? o(e.setting.options.selector.type.positionName, f) : o(e.setting.options.selector.type.positionName, (f == null ? void 0 : f.join(",")) || ""));
|
|
1465
1483
|
}), z(
|
|
1466
1484
|
() => {
|
|
@@ -1468,28 +1486,28 @@ const ja = (n, e) => {
|
|
|
1468
1486
|
return (f = i == null ? void 0 : i.value) == null ? void 0 : f[e.setting.name];
|
|
1469
1487
|
},
|
|
1470
1488
|
async (f, T) => {
|
|
1471
|
-
var P,
|
|
1489
|
+
var P, q, E, U;
|
|
1472
1490
|
if (f !== T) {
|
|
1473
1491
|
C = !0;
|
|
1474
1492
|
try {
|
|
1475
1493
|
if (!f) {
|
|
1476
|
-
r.value = t.value ? "" : [],
|
|
1494
|
+
r.value = t.value ? "" : [], x.value = t.value ? "" : [], ge.value = t.value ? "" : [];
|
|
1477
1495
|
return;
|
|
1478
1496
|
}
|
|
1479
1497
|
if (!t.value) {
|
|
1480
|
-
const
|
|
1481
|
-
|
|
1498
|
+
const ie = String(f).split(",");
|
|
1499
|
+
x.value = ie, await he(), r.value = ie.map((Ce) => Ce.split("/").pop());
|
|
1482
1500
|
return;
|
|
1483
1501
|
}
|
|
1484
|
-
let
|
|
1485
|
-
if (!
|
|
1486
|
-
await we(
|
|
1502
|
+
let te = String(f), ue = te.split("/").pop();
|
|
1503
|
+
if (!te.includes("/"))
|
|
1504
|
+
await we(ue), te = String(x.value || ue), ue = te.split("/").pop();
|
|
1487
1505
|
else {
|
|
1488
|
-
|
|
1489
|
-
const
|
|
1490
|
-
|
|
1506
|
+
x.value = te;
|
|
1507
|
+
const ie = (E = (q = (P = e.setting.options) == null ? void 0 : P.selector) == null ? void 0 : q.type) == null ? void 0 : E.positionName;
|
|
1508
|
+
ie && ((U = i == null ? void 0 : i.value) != null && U[ie]) && (ge.value = i.value[ie]);
|
|
1491
1509
|
}
|
|
1492
|
-
await he(), r.value ===
|
|
1510
|
+
await he(), r.value === ue && (r.value = "", await he()), r.value = ue;
|
|
1493
1511
|
} finally {
|
|
1494
1512
|
await he(), C = !1;
|
|
1495
1513
|
}
|
|
@@ -1498,19 +1516,19 @@ const ja = (n, e) => {
|
|
|
1498
1516
|
);
|
|
1499
1517
|
} else m == "supplier" ? (r.value = g(e.setting.name) ? [g(e.setting.name)] : [r.value], r.value && M(g(e.setting.name)), z(r, (C) => {
|
|
1500
1518
|
o(e.setting.name, C == null ? void 0 : C.toString());
|
|
1501
|
-
}), z(
|
|
1502
|
-
var f, T, P,
|
|
1503
|
-
((
|
|
1504
|
-
})) : m == "device" ? (r.value = g(e.setting.name) ? g(e.setting.name) : r.value, r.value && M(r.value), r.value.length || o(e.setting.name, null),
|
|
1519
|
+
}), z(G, (C) => {
|
|
1520
|
+
var f, T, P, q;
|
|
1521
|
+
((q = (P = (T = (f = e == null ? void 0 : e.setting) == null ? void 0 : f.options) == null ? void 0 : T.selector) == null ? void 0 : P.type) == null ? void 0 : q.supplierPhone) !== void 0 && o(e.setting.options.selector.type.supplierPhone, C);
|
|
1522
|
+
})) : m == "device" ? (r.value = g(e.setting.name) ? g(e.setting.name) : r.value, r.value && M(r.value), r.value.length || o(e.setting.name, null), le.value = {
|
|
1505
1523
|
spaceId: g("wzid") || "",
|
|
1506
1524
|
spacePath: "",
|
|
1507
1525
|
spacePathName: g("wzmc") || ""
|
|
1508
1526
|
}, z(N, (C) => {
|
|
1509
1527
|
r.value = C.map((f) => f.value).toString(), o(e.setting.name, r.value);
|
|
1510
|
-
}), z(
|
|
1528
|
+
}), z(ne, (C) => {
|
|
1511
1529
|
o("equipment_archives_id", C || null);
|
|
1512
1530
|
}), z(
|
|
1513
|
-
|
|
1531
|
+
le,
|
|
1514
1532
|
async (C) => {
|
|
1515
1533
|
if (!(C != null && C.spaceId)) return;
|
|
1516
1534
|
const [f, T] = await lt().run({ spaceId: C.spaceId });
|
|
@@ -1526,11 +1544,11 @@ const ja = (n, e) => {
|
|
|
1526
1544
|
)) : (r.value = g(e.setting.name) ? g(e.setting.name) : r.value, r.value && M(r.value), r.value.length || o(e.setting.name, null), z(N, (C) => {
|
|
1527
1545
|
r.value = C.map((f) => f.value).toString(), o(e.setting.name, r.value);
|
|
1528
1546
|
}));
|
|
1529
|
-
return (C, f) => (V(),
|
|
1530
|
-
|
|
1547
|
+
return (C, f) => (V(), H(
|
|
1548
|
+
ae,
|
|
1531
1549
|
null,
|
|
1532
1550
|
[
|
|
1533
|
-
h.value && a(m) != "position" ? (V(),
|
|
1551
|
+
h.value && a(m) != "position" ? (V(), O(a(J), {
|
|
1534
1552
|
key: 0,
|
|
1535
1553
|
col: e.span,
|
|
1536
1554
|
modelValue: r.value,
|
|
@@ -1539,17 +1557,17 @@ const ja = (n, e) => {
|
|
|
1539
1557
|
label: C.setting.desc,
|
|
1540
1558
|
type: "inputDialogSelect",
|
|
1541
1559
|
options: a(N),
|
|
1542
|
-
helpMessage:
|
|
1560
|
+
helpMessage: de.value,
|
|
1543
1561
|
isView: e.isView,
|
|
1544
1562
|
disabled: a(c),
|
|
1545
|
-
required:
|
|
1563
|
+
required: pe.value,
|
|
1546
1564
|
placeholder: C.setting.options.placeholder || a(D)("请选择"),
|
|
1547
1565
|
onOpenDialog: a(F)
|
|
1548
1566
|
}, {
|
|
1549
1567
|
default: $(() => {
|
|
1550
1568
|
var T;
|
|
1551
1569
|
return [
|
|
1552
|
-
L(a(
|
|
1570
|
+
L(a(Et), {
|
|
1553
1571
|
"append-to-body": "",
|
|
1554
1572
|
modelValue: a(_),
|
|
1555
1573
|
"onUpdate:modelValue": f[0] || (f[0] = (P) => ze(_) ? _.value = P : null),
|
|
@@ -1557,17 +1575,17 @@ const ja = (n, e) => {
|
|
|
1557
1575
|
onConfirm: a(I),
|
|
1558
1576
|
title: a(b),
|
|
1559
1577
|
"body-style": { padding: "0px" }
|
|
1560
|
-
},
|
|
1578
|
+
}, Lt({
|
|
1561
1579
|
_: 2
|
|
1562
1580
|
/* DYNAMIC */
|
|
1563
1581
|
}, [
|
|
1564
|
-
((T = a(
|
|
1582
|
+
((T = a(K)) == null ? void 0 : T.length) > 0 ? {
|
|
1565
1583
|
name: "table-header-search",
|
|
1566
1584
|
fn: $(() => [
|
|
1567
|
-
Ge("div",
|
|
1568
|
-
L(a(
|
|
1585
|
+
Ge("div", Ya, [
|
|
1586
|
+
L(a(qt), {
|
|
1569
1587
|
labelLength: "6",
|
|
1570
|
-
options: a(
|
|
1588
|
+
options: a(K),
|
|
1571
1589
|
onConfirm: a(Q),
|
|
1572
1590
|
"is-margin-right": !1,
|
|
1573
1591
|
isExpandAtFocus: a(m) !== "device"
|
|
@@ -1579,15 +1597,15 @@ const ja = (n, e) => {
|
|
|
1579
1597
|
a(m) === "user" ? {
|
|
1580
1598
|
name: "table-column",
|
|
1581
1599
|
fn: $(() => [
|
|
1582
|
-
L(a(
|
|
1600
|
+
L(a(j), {
|
|
1583
1601
|
label: a(D)("姓名"),
|
|
1584
1602
|
prop: "name"
|
|
1585
1603
|
}, null, 8, ["label"]),
|
|
1586
|
-
L(a(
|
|
1604
|
+
L(a(j), {
|
|
1587
1605
|
label: a(D)("账号"),
|
|
1588
1606
|
prop: "userName"
|
|
1589
1607
|
}, null, 8, ["label"]),
|
|
1590
|
-
L(a(
|
|
1608
|
+
L(a(j), {
|
|
1591
1609
|
label: a(D)("手机号"),
|
|
1592
1610
|
prop: "sensitivePhone"
|
|
1593
1611
|
}, {
|
|
@@ -1598,8 +1616,8 @@ const ja = (n, e) => {
|
|
|
1598
1616
|
disabled: !P.phone
|
|
1599
1617
|
}, {
|
|
1600
1618
|
default: $(() => [
|
|
1601
|
-
|
|
1602
|
-
|
|
1619
|
+
se(
|
|
1620
|
+
oe(P.sensitivePhone || "-"),
|
|
1603
1621
|
1
|
|
1604
1622
|
/* TEXT */
|
|
1605
1623
|
)
|
|
@@ -1611,12 +1629,12 @@ const ja = (n, e) => {
|
|
|
1611
1629
|
_: 1
|
|
1612
1630
|
/* STABLE */
|
|
1613
1631
|
}, 8, ["label"]),
|
|
1614
|
-
L(a(
|
|
1632
|
+
L(a(j), {
|
|
1615
1633
|
label: a(D)("状态")
|
|
1616
1634
|
}, {
|
|
1617
1635
|
default: $(({ row: P }) => [
|
|
1618
|
-
|
|
1619
|
-
|
|
1636
|
+
se(
|
|
1637
|
+
oe(a(y)[P.status]),
|
|
1620
1638
|
1
|
|
1621
1639
|
/* TEXT */
|
|
1622
1640
|
)
|
|
@@ -1630,15 +1648,15 @@ const ja = (n, e) => {
|
|
|
1630
1648
|
a(m) === "org" ? {
|
|
1631
1649
|
name: "table-column",
|
|
1632
1650
|
fn: $(() => [
|
|
1633
|
-
L(a(
|
|
1651
|
+
L(a(j), {
|
|
1634
1652
|
label: a(D)("组织名称"),
|
|
1635
1653
|
prop: "name"
|
|
1636
1654
|
}, null, 8, ["label"]),
|
|
1637
|
-
L(a(
|
|
1655
|
+
L(a(j), {
|
|
1638
1656
|
label: a(D)("组织编码"),
|
|
1639
1657
|
prop: "code"
|
|
1640
1658
|
}, null, 8, ["label"]),
|
|
1641
|
-
L(a(
|
|
1659
|
+
L(a(j), {
|
|
1642
1660
|
label: a(D)("组织类型"),
|
|
1643
1661
|
prop: "typeName"
|
|
1644
1662
|
}, null, 8, ["label"])
|
|
@@ -1648,16 +1666,16 @@ const ja = (n, e) => {
|
|
|
1648
1666
|
a(m) === "role" ? {
|
|
1649
1667
|
name: "table-column",
|
|
1650
1668
|
fn: $(() => [
|
|
1651
|
-
L(a(
|
|
1669
|
+
L(a(j), {
|
|
1652
1670
|
label: a(D)("角色名称"),
|
|
1653
1671
|
prop: "name"
|
|
1654
1672
|
}, null, 8, ["label"]),
|
|
1655
|
-
L(a(
|
|
1673
|
+
L(a(j), {
|
|
1656
1674
|
label: a(D)("角色类型")
|
|
1657
1675
|
}, {
|
|
1658
1676
|
default: $(({ row: P }) => [
|
|
1659
|
-
|
|
1660
|
-
|
|
1677
|
+
se(
|
|
1678
|
+
oe(a(u)[P.type]),
|
|
1661
1679
|
1
|
|
1662
1680
|
/* TEXT */
|
|
1663
1681
|
)
|
|
@@ -1665,12 +1683,12 @@ const ja = (n, e) => {
|
|
|
1665
1683
|
_: 1
|
|
1666
1684
|
/* STABLE */
|
|
1667
1685
|
}, 8, ["label"]),
|
|
1668
|
-
L(a(
|
|
1686
|
+
L(a(j), {
|
|
1669
1687
|
label: a(D)("角色状态")
|
|
1670
1688
|
}, {
|
|
1671
1689
|
default: $(({ row: P }) => [
|
|
1672
|
-
|
|
1673
|
-
|
|
1690
|
+
se(
|
|
1691
|
+
oe(a(R)[P.status]),
|
|
1674
1692
|
1
|
|
1675
1693
|
/* TEXT */
|
|
1676
1694
|
)
|
|
@@ -1684,15 +1702,15 @@ const ja = (n, e) => {
|
|
|
1684
1702
|
a(m) === "job" ? {
|
|
1685
1703
|
name: "table-column",
|
|
1686
1704
|
fn: $(() => [
|
|
1687
|
-
L(a(
|
|
1705
|
+
L(a(j), {
|
|
1688
1706
|
label: a(D)("职务名称"),
|
|
1689
1707
|
prop: "name"
|
|
1690
1708
|
}, null, 8, ["label"]),
|
|
1691
|
-
L(a(
|
|
1709
|
+
L(a(j), {
|
|
1692
1710
|
label: a(D)("职务编码"),
|
|
1693
1711
|
prop: "code"
|
|
1694
1712
|
}, null, 8, ["label"]),
|
|
1695
|
-
L(a(
|
|
1713
|
+
L(a(j), {
|
|
1696
1714
|
label: a(D)("所属组织路径"),
|
|
1697
1715
|
prop: "groupName"
|
|
1698
1716
|
}, null, 8, ["label"])
|
|
@@ -1702,15 +1720,15 @@ const ja = (n, e) => {
|
|
|
1702
1720
|
a(m) === "post" ? {
|
|
1703
1721
|
name: "table-column",
|
|
1704
1722
|
fn: $(() => [
|
|
1705
|
-
L(a(
|
|
1723
|
+
L(a(j), {
|
|
1706
1724
|
label: a(D)("岗位名称"),
|
|
1707
1725
|
prop: "name"
|
|
1708
1726
|
}, null, 8, ["label"]),
|
|
1709
|
-
L(a(
|
|
1727
|
+
L(a(j), {
|
|
1710
1728
|
label: a(D)("岗位编码"),
|
|
1711
1729
|
prop: "code"
|
|
1712
1730
|
}, null, 8, ["label"]),
|
|
1713
|
-
L(a(
|
|
1731
|
+
L(a(j), {
|
|
1714
1732
|
label: a(D)("所属组织路径"),
|
|
1715
1733
|
prop: "groupName"
|
|
1716
1734
|
}, null, 8, ["label"])
|
|
@@ -1720,23 +1738,23 @@ const ja = (n, e) => {
|
|
|
1720
1738
|
a(m) === "supplier" ? {
|
|
1721
1739
|
name: "table-column",
|
|
1722
1740
|
fn: $(() => [
|
|
1723
|
-
L(a(
|
|
1741
|
+
L(a(j), {
|
|
1724
1742
|
type: "index",
|
|
1725
1743
|
width: "50"
|
|
1726
1744
|
}),
|
|
1727
|
-
L(a(
|
|
1745
|
+
L(a(j), {
|
|
1728
1746
|
label: a(D)("供应商名称"),
|
|
1729
1747
|
prop: "name"
|
|
1730
1748
|
}, null, 8, ["label"]),
|
|
1731
|
-
L(a(
|
|
1749
|
+
L(a(j), {
|
|
1732
1750
|
label: a(D)("供应商编码"),
|
|
1733
1751
|
prop: "code"
|
|
1734
1752
|
}, null, 8, ["label"]),
|
|
1735
|
-
L(a(
|
|
1753
|
+
L(a(j), {
|
|
1736
1754
|
label: a(D)("供应商等级"),
|
|
1737
1755
|
prop: "supplierLevel"
|
|
1738
1756
|
}, null, 8, ["label"]),
|
|
1739
|
-
L(a(
|
|
1757
|
+
L(a(j), {
|
|
1740
1758
|
label: a(D)("供应商分类"),
|
|
1741
1759
|
prop: "classificationName"
|
|
1742
1760
|
}, {
|
|
@@ -1748,13 +1766,13 @@ const ja = (n, e) => {
|
|
|
1748
1766
|
_: 1
|
|
1749
1767
|
/* STABLE */
|
|
1750
1768
|
}, 8, ["label"]),
|
|
1751
|
-
L(a(
|
|
1769
|
+
L(a(j), {
|
|
1752
1770
|
label: a(D)("个人/公司"),
|
|
1753
1771
|
prop: "businessType"
|
|
1754
1772
|
}, {
|
|
1755
1773
|
default: $(({ row: P }) => [
|
|
1756
|
-
|
|
1757
|
-
|
|
1774
|
+
se(
|
|
1775
|
+
oe(P.businessType == "COMPANY" ? a(D)("公司") : a(D)("个人")),
|
|
1758
1776
|
1
|
|
1759
1777
|
/* TEXT */
|
|
1760
1778
|
)
|
|
@@ -1768,23 +1786,23 @@ const ja = (n, e) => {
|
|
|
1768
1786
|
a(m) === "device" ? {
|
|
1769
1787
|
name: "table-column",
|
|
1770
1788
|
fn: $(() => [
|
|
1771
|
-
L(a(
|
|
1789
|
+
L(a(j), {
|
|
1772
1790
|
type: "index",
|
|
1773
1791
|
width: "50"
|
|
1774
1792
|
}),
|
|
1775
|
-
L(a(
|
|
1793
|
+
L(a(j), {
|
|
1776
1794
|
label: a(D)("设备名称"),
|
|
1777
1795
|
prop: "deviceName"
|
|
1778
1796
|
}, null, 8, ["label"]),
|
|
1779
|
-
L(a(
|
|
1797
|
+
L(a(j), {
|
|
1780
1798
|
label: a(D)("设备编码"),
|
|
1781
1799
|
prop: "deviceId"
|
|
1782
1800
|
}, null, 8, ["label"]),
|
|
1783
|
-
L(a(
|
|
1801
|
+
L(a(j), {
|
|
1784
1802
|
label: a(D)("设备分类"),
|
|
1785
1803
|
prop: "groupDimensionPath"
|
|
1786
1804
|
}, null, 8, ["label"]),
|
|
1787
|
-
L(a(
|
|
1805
|
+
L(a(j), {
|
|
1788
1806
|
label: a(D)("安装位置"),
|
|
1789
1807
|
prop: "spaceSite"
|
|
1790
1808
|
}, null, 8, ["label"])
|
|
@@ -1794,19 +1812,19 @@ const ja = (n, e) => {
|
|
|
1794
1812
|
a(m) === "source" ? {
|
|
1795
1813
|
name: "table-column",
|
|
1796
1814
|
fn: $(() => [
|
|
1797
|
-
L(a(
|
|
1815
|
+
L(a(j), {
|
|
1798
1816
|
type: "index",
|
|
1799
1817
|
width: "50"
|
|
1800
1818
|
}),
|
|
1801
|
-
L(a(
|
|
1819
|
+
L(a(j), {
|
|
1802
1820
|
label: a(D)("单据编码"),
|
|
1803
1821
|
prop: "code"
|
|
1804
1822
|
}, null, 8, ["label"]),
|
|
1805
|
-
L(a(
|
|
1823
|
+
L(a(j), {
|
|
1806
1824
|
label: a(D)("申请人"),
|
|
1807
1825
|
prop: "userName"
|
|
1808
1826
|
}, null, 8, ["label"]),
|
|
1809
|
-
L(a(
|
|
1827
|
+
L(a(j), {
|
|
1810
1828
|
label: a(D)("联系电话"),
|
|
1811
1829
|
prop: "sensitivePhone"
|
|
1812
1830
|
}, {
|
|
@@ -1817,8 +1835,8 @@ const ja = (n, e) => {
|
|
|
1817
1835
|
disabled: !P.phone
|
|
1818
1836
|
}, {
|
|
1819
1837
|
default: $(() => [
|
|
1820
|
-
|
|
1821
|
-
|
|
1838
|
+
se(
|
|
1839
|
+
oe(P.sensitivePhone || "-"),
|
|
1822
1840
|
1
|
|
1823
1841
|
/* TEXT */
|
|
1824
1842
|
)
|
|
@@ -1830,13 +1848,13 @@ const ja = (n, e) => {
|
|
|
1830
1848
|
_: 1
|
|
1831
1849
|
/* STABLE */
|
|
1832
1850
|
}, 8, ["label"]),
|
|
1833
|
-
L(a(
|
|
1851
|
+
L(a(j), {
|
|
1834
1852
|
label: a(D)("计划领用日期"),
|
|
1835
1853
|
prop: "claimingDate"
|
|
1836
1854
|
}, {
|
|
1837
1855
|
default: $(({ row: P }) => [
|
|
1838
|
-
|
|
1839
|
-
|
|
1856
|
+
se(
|
|
1857
|
+
oe(P.claimingDate ? a(Se)(Number(P == null ? void 0 : P.claimingDate)).format("YYYY/MM/DD") : "-"),
|
|
1840
1858
|
1
|
|
1841
1859
|
/* TEXT */
|
|
1842
1860
|
)
|
|
@@ -1844,7 +1862,7 @@ const ja = (n, e) => {
|
|
|
1844
1862
|
_: 1
|
|
1845
1863
|
/* STABLE */
|
|
1846
1864
|
}, 8, ["label"]),
|
|
1847
|
-
L(a(
|
|
1865
|
+
L(a(j), {
|
|
1848
1866
|
label: a(D)("资产用途"),
|
|
1849
1867
|
prop: "purpose"
|
|
1850
1868
|
}, null, 8, ["label"])
|
|
@@ -1857,7 +1875,7 @@ const ja = (n, e) => {
|
|
|
1857
1875
|
_: 1
|
|
1858
1876
|
/* STABLE */
|
|
1859
1877
|
}, 8, ["col", "modelValue", "prop", "label", "options", "helpMessage", "isView", "disabled", "required", "placeholder", "onOpenDialog"])) : B("v-if", !0),
|
|
1860
|
-
h.value && a(m) == "position" ? (V(),
|
|
1878
|
+
h.value && a(m) == "position" ? (V(), O(a(J), {
|
|
1861
1879
|
key: 1,
|
|
1862
1880
|
col: e.span,
|
|
1863
1881
|
label: C.setting.desc,
|
|
@@ -1865,15 +1883,15 @@ const ja = (n, e) => {
|
|
|
1865
1883
|
type: "treeSelect",
|
|
1866
1884
|
"node-key": "id",
|
|
1867
1885
|
showFullPath: !0,
|
|
1868
|
-
helpMessage:
|
|
1886
|
+
helpMessage: de.value,
|
|
1869
1887
|
placeholder: C.setting.options.placeholder,
|
|
1870
|
-
required:
|
|
1888
|
+
required: pe.value,
|
|
1871
1889
|
modelValue: r.value,
|
|
1872
1890
|
"onUpdate:modelValue": f[2] || (f[2] = (T) => r.value = T),
|
|
1873
|
-
keyword: a(
|
|
1874
|
-
"onUpdate:keyword": f[3] || (f[3] = (T) => ze(
|
|
1875
|
-
path: a(
|
|
1876
|
-
"onUpdate:path": f[4] || (f[4] = (T) => ze(
|
|
1891
|
+
keyword: a(me),
|
|
1892
|
+
"onUpdate:keyword": f[3] || (f[3] = (T) => ze(me) ? me.value = T : null),
|
|
1893
|
+
path: a(x),
|
|
1894
|
+
"onUpdate:path": f[4] || (f[4] = (T) => ze(x) ? x.value = T : null),
|
|
1877
1895
|
isView: e.isView,
|
|
1878
1896
|
disabled: a(c),
|
|
1879
1897
|
load: a(Ee),
|
|
@@ -1890,19 +1908,19 @@ const ja = (n, e) => {
|
|
|
1890
1908
|
/* STABLE_FRAGMENT */
|
|
1891
1909
|
));
|
|
1892
1910
|
}
|
|
1893
|
-
}),
|
|
1911
|
+
}), Wa = /* @__PURE__ */ Ne(Ha, [["__scopeId", "data-v-49ca659f"]]), yt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1894
1912
|
__proto__: null,
|
|
1895
|
-
default:
|
|
1896
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1913
|
+
default: Wa
|
|
1914
|
+
}, Symbol.toStringTag, { value: "Module" })), Za = {
|
|
1897
1915
|
key: 0,
|
|
1898
1916
|
class: "form-image"
|
|
1899
|
-
},
|
|
1917
|
+
}, Ga = {
|
|
1900
1918
|
key: 1,
|
|
1901
1919
|
style: { "margin-bottom": "10px" }
|
|
1902
|
-
},
|
|
1920
|
+
}, Xa = {
|
|
1903
1921
|
name: "soundRecording"
|
|
1904
|
-
},
|
|
1905
|
-
...
|
|
1922
|
+
}, en = /* @__PURE__ */ Y({
|
|
1923
|
+
...Xa,
|
|
1906
1924
|
props: {
|
|
1907
1925
|
setting: { default: () => ({
|
|
1908
1926
|
icon: "",
|
|
@@ -1925,16 +1943,16 @@ const ja = (n, e) => {
|
|
|
1925
1943
|
},
|
|
1926
1944
|
{ deep: !0, immediate: !0 }
|
|
1927
1945
|
), i.value[e.setting.name];
|
|
1928
|
-
const { baseURL: v } =
|
|
1929
|
-
|
|
1946
|
+
const { baseURL: v } = Ot(), r = p(!1);
|
|
1947
|
+
ee(e.setting.options.validateList).then((_) => {
|
|
1930
1948
|
r.value = _;
|
|
1931
1949
|
});
|
|
1932
1950
|
const h = p("info"), c = p();
|
|
1933
|
-
if (e.setting.options.tip && (c.value =
|
|
1951
|
+
if (e.setting.options.tip && (c.value = Z(e.setting.options.tip)), o(e.setting.name)) {
|
|
1934
1952
|
const _ = JSON.parse(o(e.setting.name));
|
|
1935
1953
|
s.value = v + _[0].url;
|
|
1936
1954
|
}
|
|
1937
|
-
return e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList), (_, b) => e.isView && l.value ? (V(),
|
|
1955
|
+
return e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList), (_, b) => e.isView && l.value ? (V(), O(a(J), {
|
|
1938
1956
|
key: 0,
|
|
1939
1957
|
modelValue: s.value,
|
|
1940
1958
|
"onUpdate:modelValue": b[2] || (b[2] = (w) => s.value = w),
|
|
@@ -1947,7 +1965,7 @@ const ja = (n, e) => {
|
|
|
1947
1965
|
col: e.span
|
|
1948
1966
|
}, {
|
|
1949
1967
|
default: $(() => [
|
|
1950
|
-
s.value ? (V(),
|
|
1968
|
+
s.value ? (V(), H("div", Za, [
|
|
1951
1969
|
L(a(Xe), {
|
|
1952
1970
|
modelValue: s.value,
|
|
1953
1971
|
"onUpdate:modelValue": b[0] || (b[0] = (w) => s.value = w),
|
|
@@ -1955,19 +1973,19 @@ const ja = (n, e) => {
|
|
|
1955
1973
|
"onUpdate:status": b[1] || (b[1] = (w) => h.value = w),
|
|
1956
1974
|
required: r.value
|
|
1957
1975
|
}, null, 8, ["modelValue", "status", "required"])
|
|
1958
|
-
])) : (V(),
|
|
1976
|
+
])) : (V(), H("div", Ga, "-"))
|
|
1959
1977
|
]),
|
|
1960
1978
|
_: 1
|
|
1961
1979
|
/* STABLE */
|
|
1962
1980
|
}, 8, ["modelValue", "prop", "label", "helpMessage", "required", "col"])) : B("v-if", !0);
|
|
1963
1981
|
}
|
|
1964
|
-
}),
|
|
1982
|
+
}), tn = /* @__PURE__ */ Ne(en, [["__scopeId", "data-v-b30e3d77"]]), bt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1965
1983
|
__proto__: null,
|
|
1966
|
-
default:
|
|
1967
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1984
|
+
default: tn
|
|
1985
|
+
}, Symbol.toStringTag, { value: "Module" })), an = {
|
|
1968
1986
|
name: "switch"
|
|
1969
|
-
},
|
|
1970
|
-
...
|
|
1987
|
+
}, nn = /* @__PURE__ */ Y({
|
|
1988
|
+
...an,
|
|
1971
1989
|
props: {
|
|
1972
1990
|
setting: { default: () => ({
|
|
1973
1991
|
icon: "",
|
|
@@ -1991,15 +2009,15 @@ const ja = (n, e) => {
|
|
|
1991
2009
|
{ deep: !0, immediate: !0 }
|
|
1992
2010
|
);
|
|
1993
2011
|
const v = i.value[e.setting.name] || !1, r = p(!1);
|
|
1994
|
-
|
|
2012
|
+
ee(e.setting.options.validateList).then((c) => {
|
|
1995
2013
|
r.value = c;
|
|
1996
2014
|
});
|
|
1997
2015
|
const h = p();
|
|
1998
|
-
return e.setting.options.tip && (h.value =
|
|
2016
|
+
return e.setting.options.tip && (h.value = Z(e.setting.options.tip)), setTimeout(() => {
|
|
1999
2017
|
s.value = o(e.setting.name) || e.setting.options.formulasDiyJs || s.value, s.value || d(e.setting.name, null);
|
|
2000
2018
|
}, 50), e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList), z(s, (c) => {
|
|
2001
2019
|
d(e.setting.name, c);
|
|
2002
|
-
}), (c, _) => l.value ? (V(),
|
|
2020
|
+
}), (c, _) => l.value ? (V(), O(a(J), {
|
|
2003
2021
|
key: 0,
|
|
2004
2022
|
col: e.span,
|
|
2005
2023
|
modelValue: s.value,
|
|
@@ -2017,13 +2035,13 @@ const ja = (n, e) => {
|
|
|
2017
2035
|
isView: e.isView
|
|
2018
2036
|
}, null, 8, ["col", "modelValue", "label", "prop", "activeValue", "inactiveValue", "activeText", "inactiveText", "helpMessage", "disabled", "required", "isView"])) : B("v-if", !0);
|
|
2019
2037
|
}
|
|
2020
|
-
}),
|
|
2038
|
+
}), _t = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2021
2039
|
__proto__: null,
|
|
2022
|
-
default:
|
|
2023
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2040
|
+
default: nn
|
|
2041
|
+
}, Symbol.toStringTag, { value: "Module" })), sn = {
|
|
2024
2042
|
name: "text"
|
|
2025
|
-
},
|
|
2026
|
-
...
|
|
2043
|
+
}, on = /* @__PURE__ */ Y({
|
|
2044
|
+
...sn,
|
|
2027
2045
|
props: {
|
|
2028
2046
|
setting: { default: () => ({
|
|
2029
2047
|
icon: "",
|
|
@@ -2047,9 +2065,9 @@ const ja = (n, e) => {
|
|
|
2047
2065
|
{ deep: !0, immediate: !0 }
|
|
2048
2066
|
);
|
|
2049
2067
|
const v = p();
|
|
2050
|
-
return e.setting.options.tip && (v.value =
|
|
2068
|
+
return e.setting.options.tip && (v.value = Z(e.setting.options.tip)), s.value = e.setting.options.textValue, s.value = o(e.setting.name) || s.value, s.value || d(e.setting.name, null), z(s, (r) => {
|
|
2051
2069
|
d(e.setting.name, r);
|
|
2052
|
-
}), (r, h) => l.value ? (V(),
|
|
2070
|
+
}), (r, h) => l.value ? (V(), O(a(J), {
|
|
2053
2071
|
key: 0,
|
|
2054
2072
|
col: e.span,
|
|
2055
2073
|
modelValue: s.value,
|
|
@@ -2069,13 +2087,13 @@ const ja = (n, e) => {
|
|
|
2069
2087
|
/* STABLE */
|
|
2070
2088
|
}, 8, ["col", "modelValue", "label", "helpMessage"])) : B("v-if", !0);
|
|
2071
2089
|
}
|
|
2072
|
-
}),
|
|
2090
|
+
}), wt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2073
2091
|
__proto__: null,
|
|
2074
|
-
default:
|
|
2075
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2092
|
+
default: on
|
|
2093
|
+
}, Symbol.toStringTag, { value: "Module" })), ln = {
|
|
2076
2094
|
name: "textarea"
|
|
2077
|
-
},
|
|
2078
|
-
...
|
|
2095
|
+
}, rn = /* @__PURE__ */ Y({
|
|
2096
|
+
...ln,
|
|
2079
2097
|
props: {
|
|
2080
2098
|
setting: { default: () => ({
|
|
2081
2099
|
icon: "",
|
|
@@ -2099,21 +2117,21 @@ const ja = (n, e) => {
|
|
|
2099
2117
|
{ deep: !0, immediate: !0 }
|
|
2100
2118
|
);
|
|
2101
2119
|
const v = i.value[e.setting.name] || !1, r = p(!1);
|
|
2102
|
-
|
|
2120
|
+
ee(e.setting.options.validateList).then((b) => {
|
|
2103
2121
|
r.value = b;
|
|
2104
2122
|
});
|
|
2105
2123
|
const h = p();
|
|
2106
|
-
e.setting.options.tip && (h.value =
|
|
2124
|
+
e.setting.options.tip && (h.value = Z(e.setting.options.tip)), setTimeout(() => {
|
|
2107
2125
|
s.value = o(e.setting.name) || e.setting.options.formulasDiyJs || s.value, s.value || d(e.setting.name, null);
|
|
2108
2126
|
}, 50);
|
|
2109
2127
|
const c = p(), _ = p();
|
|
2110
2128
|
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 && g(e.setting.name, e.setting.options.validateList), z(s, (b) => {
|
|
2111
2129
|
d(e.setting.name, b);
|
|
2112
|
-
}), (b, w) => (V(),
|
|
2113
|
-
|
|
2130
|
+
}), (b, w) => (V(), H(
|
|
2131
|
+
ae,
|
|
2114
2132
|
null,
|
|
2115
2133
|
[
|
|
2116
|
-
!b.setting.options.isEditor && l.value ? (V(),
|
|
2134
|
+
!b.setting.options.isEditor && l.value ? (V(), O(a(J), {
|
|
2117
2135
|
key: 0,
|
|
2118
2136
|
col: e.span,
|
|
2119
2137
|
label: b.setting.desc,
|
|
@@ -2132,7 +2150,7 @@ const ja = (n, e) => {
|
|
|
2132
2150
|
helpMessage: h.value,
|
|
2133
2151
|
required: r.value
|
|
2134
2152
|
}, null, 8, ["col", "label", "modelValue", "prop", "placeholder", "disabled", "isView", "helpMessage", "required"])) : B("v-if", !0),
|
|
2135
|
-
b.setting.options.isEditor && l.value ? (V(),
|
|
2153
|
+
b.setting.options.isEditor && l.value ? (V(), O(a(J), {
|
|
2136
2154
|
key: 1,
|
|
2137
2155
|
modelValue: s.value,
|
|
2138
2156
|
"onUpdate:modelValue": w[2] || (w[2] = (m) => s.value = m),
|
|
@@ -2162,13 +2180,13 @@ const ja = (n, e) => {
|
|
|
2162
2180
|
/* STABLE_FRAGMENT */
|
|
2163
2181
|
));
|
|
2164
2182
|
}
|
|
2165
|
-
}),
|
|
2183
|
+
}), Ct = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2166
2184
|
__proto__: null,
|
|
2167
|
-
default:
|
|
2168
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2185
|
+
default: rn
|
|
2186
|
+
}, Symbol.toStringTag, { value: "Module" })), un = {
|
|
2169
2187
|
name: "time"
|
|
2170
|
-
},
|
|
2171
|
-
...
|
|
2188
|
+
}, pn = /* @__PURE__ */ Y({
|
|
2189
|
+
...un,
|
|
2172
2190
|
props: {
|
|
2173
2191
|
setting: { default: () => ({
|
|
2174
2192
|
icon: "",
|
|
@@ -2192,16 +2210,16 @@ const ja = (n, e) => {
|
|
|
2192
2210
|
{ deep: !0, immediate: !0 }
|
|
2193
2211
|
);
|
|
2194
2212
|
const v = i.value[e.setting.name] || !1, r = p(!1);
|
|
2195
|
-
|
|
2213
|
+
ee(e.setting.options.validateList).then((c) => {
|
|
2196
2214
|
r.value = c;
|
|
2197
2215
|
});
|
|
2198
2216
|
const h = p();
|
|
2199
|
-
return e.setting.options.tip && (h.value =
|
|
2217
|
+
return e.setting.options.tip && (h.value = Z(e.setting.options.tip)), setTimeout(() => {
|
|
2200
2218
|
const c = Se().format("YYYY-MM-DD ");
|
|
2201
2219
|
o(e.setting.name) && (s.value = o(e.setting.name)), e.setting.options.formulasDiyJs && (s.value = Se(c + e.setting.options.formulasDiyJs)), s.value || d(e.setting.name, null);
|
|
2202
2220
|
}, 50), e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList), z(s, (c) => {
|
|
2203
2221
|
d(e.setting.name, c);
|
|
2204
|
-
}), (c, _) => l.value ? (V(),
|
|
2222
|
+
}), (c, _) => l.value ? (V(), O(a(J), {
|
|
2205
2223
|
key: 0,
|
|
2206
2224
|
col: e.span,
|
|
2207
2225
|
modelValue: s.value,
|
|
@@ -2215,10 +2233,10 @@ const ja = (n, e) => {
|
|
|
2215
2233
|
disabled: a(v)
|
|
2216
2234
|
}, null, 8, ["col", "modelValue", "prop", "label", "helpMessage", "isView", "required", "disabled"])) : B("v-if", !0);
|
|
2217
2235
|
}
|
|
2218
|
-
}),
|
|
2236
|
+
}), Dt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2219
2237
|
__proto__: null,
|
|
2220
|
-
default:
|
|
2221
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2238
|
+
default: pn
|
|
2239
|
+
}, Symbol.toStringTag, { value: "Module" })), dn = Y({
|
|
2222
2240
|
name: "accordion",
|
|
2223
2241
|
props: {
|
|
2224
2242
|
columns: {
|
|
@@ -2258,10 +2276,10 @@ const ja = (n, e) => {
|
|
|
2258
2276
|
)
|
|
2259
2277
|
);
|
|
2260
2278
|
}
|
|
2261
|
-
}),
|
|
2279
|
+
}), cn = {
|
|
2262
2280
|
name: "accordion"
|
|
2263
|
-
},
|
|
2264
|
-
...
|
|
2281
|
+
}, gn = /* @__PURE__ */ Y({
|
|
2282
|
+
...cn,
|
|
2265
2283
|
props: {
|
|
2266
2284
|
setting: { default: () => ({
|
|
2267
2285
|
name: "",
|
|
@@ -2289,7 +2307,7 @@ const ja = (n, e) => {
|
|
|
2289
2307
|
store: {}
|
|
2290
2308
|
},
|
|
2291
2309
|
setup(n) {
|
|
2292
|
-
return (e, t) => (V(),
|
|
2310
|
+
return (e, t) => (V(), O(a(dn), {
|
|
2293
2311
|
columns: e.setting.columns,
|
|
2294
2312
|
options: e.setting.options,
|
|
2295
2313
|
isView: e.isView,
|
|
@@ -2297,13 +2315,13 @@ const ja = (n, e) => {
|
|
|
2297
2315
|
style: { "margin-bottom": "10px" }
|
|
2298
2316
|
}, null, 8, ["columns", "options", "isView", "store"]));
|
|
2299
2317
|
}
|
|
2300
|
-
}),
|
|
2318
|
+
}), mn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2301
2319
|
__proto__: null,
|
|
2302
|
-
default:
|
|
2303
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2320
|
+
default: gn
|
|
2321
|
+
}, Symbol.toStringTag, { value: "Module" })), vn = {
|
|
2304
2322
|
name: "grid"
|
|
2305
|
-
},
|
|
2306
|
-
...
|
|
2323
|
+
}, fn = /* @__PURE__ */ Y({
|
|
2324
|
+
...vn,
|
|
2307
2325
|
props: {
|
|
2308
2326
|
setting: { default: () => ({
|
|
2309
2327
|
name: "",
|
|
@@ -2329,23 +2347,23 @@ const ja = (n, e) => {
|
|
|
2329
2347
|
},
|
|
2330
2348
|
setup(n) {
|
|
2331
2349
|
const e = n;
|
|
2332
|
-
return (t, i) => (V(),
|
|
2333
|
-
|
|
2350
|
+
return (t, i) => (V(), H(
|
|
2351
|
+
ae,
|
|
2334
2352
|
null,
|
|
2335
2353
|
[
|
|
2336
2354
|
B(' <GridLayout :columns="setting.columns" :isView="props.isView" :store="store"></GridLayout> '),
|
|
2337
2355
|
B(' <div style="display: flex; flex-direction: row; flex-wrap: wrap; width: 100%"> '),
|
|
2338
|
-
(V(!0),
|
|
2339
|
-
|
|
2356
|
+
(V(!0), H(
|
|
2357
|
+
ae,
|
|
2340
2358
|
null,
|
|
2341
|
-
ye(t.setting.columns, (d) => (V(),
|
|
2342
|
-
|
|
2359
|
+
ye(t.setting.columns, (d) => (V(), H(
|
|
2360
|
+
ae,
|
|
2343
2361
|
null,
|
|
2344
2362
|
[
|
|
2345
|
-
(V(!0),
|
|
2346
|
-
|
|
2363
|
+
(V(!0), H(
|
|
2364
|
+
ae,
|
|
2347
2365
|
null,
|
|
2348
|
-
ye(d.list, (o) => (V(),
|
|
2366
|
+
ye(d.list, (o) => (V(), O(De(a(bn)[o.ctrlType]), {
|
|
2349
2367
|
setting: o,
|
|
2350
2368
|
isView: e.isView,
|
|
2351
2369
|
store: t.store,
|
|
@@ -2367,87 +2385,87 @@ const ja = (n, e) => {
|
|
|
2367
2385
|
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
2368
2386
|
));
|
|
2369
2387
|
}
|
|
2370
|
-
}),
|
|
2388
|
+
}), hn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2371
2389
|
__proto__: null,
|
|
2372
|
-
default:
|
|
2373
|
-
}, Symbol.toStringTag, { value: "Module" })), Te = /* @__PURE__ */ Object.assign({ "./base/attachment.vue":
|
|
2374
|
-
Object.keys(Re).map((n) =>
|
|
2375
|
-
Object.keys(Pe).map((n) =>
|
|
2376
|
-
Object.keys($e).map((n) =>
|
|
2390
|
+
default: fn
|
|
2391
|
+
}, Symbol.toStringTag, { value: "Module" })), Te = /* @__PURE__ */ Object.assign({ "./base/attachment.vue": rt, "./base/autocomplete.vue": ut, "./base/checkbox.vue": pt, "./base/date.vue": dt, "./base/dropdown.vue": ct, "./base/imageViewer.vue": gt, "./base/input.vue": mt, "./base/number.vue": vt, "./base/radio.vue": ft, "./base/select.vue": ht, "./base/selector.vue": yt, "./base/soundRecording.vue": bt, "./base/switch.vue": _t, "./base/text.vue": wt, "./base/textarea.vue": Ct, "./base/time.vue": Dt, "./layout/accordion/accordion.vue": mn, "./layout/grid/gridLayout.vue": hn }), Re = /* @__PURE__ */ Object.assign({ "./base/attachment.vue": rt, "./base/autocomplete.vue": ut, "./base/checkbox.vue": pt, "./base/date.vue": dt, "./base/dropdown.vue": ct, "./base/imageViewer.vue": gt, "./base/input.vue": mt, "./base/number.vue": vt, "./base/radio.vue": ft, "./base/select.vue": ht, "./base/selector.vue": yt, "./base/soundRecording.vue": bt, "./base/switch.vue": _t, "./base/text.vue": wt, "./base/textarea.vue": Ct, "./base/time.vue": Dt }), Pe = /* @__PURE__ */ Object.assign({}), $e = /* @__PURE__ */ Object.assign({}), be = {}, kt = {}, St = {}, yn = {};
|
|
2392
|
+
Object.keys(Re).map((n) => kt[Re[n].default.name] = Re[n].default);
|
|
2393
|
+
Object.keys(Pe).map((n) => St[Pe[n].default.name] = Pe[n].default);
|
|
2394
|
+
Object.keys($e).map((n) => yn[$e[n].default.name] = $e[n].default);
|
|
2377
2395
|
Object.keys(Te).map((n) => be[Te[n].default.name] = Te[n].default);
|
|
2378
|
-
const
|
|
2396
|
+
const bn = { ...kt, ...St }, _n = (n, e, t, i) => {
|
|
2379
2397
|
(!e || e.toString() === "") && parseInt(e) !== 0 ? t(new Error(`${D("*必填")}`)) : t();
|
|
2380
|
-
},
|
|
2398
|
+
}, wn = (n, e, t, i) => {
|
|
2381
2399
|
e !== "" && e.length > parseInt(i.value) ? t(new Error(`${D("最大文本长度")}${D("不能超过")}${i.value}`)) : t();
|
|
2382
|
-
},
|
|
2400
|
+
}, Cn = (n, e, t, i) => {
|
|
2383
2401
|
e !== "" && e.length < parseInt(i.value) ? t(new Error(`${D("最小文本长度")}${D("不能少于")}${i.value}`)) : t();
|
|
2384
|
-
},
|
|
2402
|
+
}, Dn = (n, e, t, i) => {
|
|
2385
2403
|
if (e !== "" && !/^1[3456789]\d{9}$/.test(e))
|
|
2386
2404
|
return t(new Error(D("手机号码格式不正确,请重新输入"))), !1;
|
|
2387
2405
|
t();
|
|
2388
|
-
},
|
|
2406
|
+
}, kn = (n, e, t) => {
|
|
2389
2407
|
if (e !== "" && !/^[A-Za-z0-9\u4e00-\u9fa5]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/.test(e))
|
|
2390
2408
|
return t(new Error(D("电子邮箱格式不正确,请重新输入"))), !1;
|
|
2391
2409
|
t();
|
|
2392
|
-
},
|
|
2410
|
+
}, Sn = (n, e, t) => {
|
|
2393
2411
|
if (e !== "" && !/^-?\d+$/.test(e))
|
|
2394
2412
|
return t(new Error(D("请输入整数"))), !1;
|
|
2395
2413
|
t();
|
|
2396
|
-
},
|
|
2414
|
+
}, Vn = (n, e, t, i) => {
|
|
2397
2415
|
if (e !== "" && e != i.value)
|
|
2398
2416
|
return t(new Error(D("请输入相同的值"))), !1;
|
|
2399
2417
|
t();
|
|
2400
|
-
},
|
|
2418
|
+
}, Nn = (n, e, t, i) => {
|
|
2401
2419
|
e === "" ? t() : /^[+-]?\d*\.?\d*$/.test(e) ? e < parseFloat(i.value) ? t(new Error(`${i.name}${D("不能小于")}${i.value}`)) : t() : t(new Error(D("请输入数字")));
|
|
2402
|
-
},
|
|
2420
|
+
}, Ln = (n, e, t, i) => {
|
|
2403
2421
|
e === "" ? t() : /^[+-]?\d*\.?\d*$/.test(e) ? e > parseFloat(i.value) ? t(new Error(`${i.name}${D("不能大于")}${i.value}`)) : t() : t(new Error(D("请输入数字")));
|
|
2404
|
-
},
|
|
2422
|
+
}, zn = (n, e, t, i) => {
|
|
2405
2423
|
const d = /^[+-]?(\d*\.\d+([eE]?[+-]?\d+)?|\d+[eE][+-]?\d+)$/, o = /^-?\d+$/;
|
|
2406
2424
|
e === "" ? t() : d.test(e) || o.test(e) ? e >= parseFloat(i.start) && e <= parseFloat(i.end) ? t() : t(new Error(`${D("只能输入指定数字范围")}${i.start}-${i.end}`)) : t(new Error(D("请输入数字")));
|
|
2407
|
-
},
|
|
2425
|
+
}, Mn = (n, e, t, i) => {
|
|
2408
2426
|
e === "" || parseFloat(e) === parseFloat(i.value) ? t() : t(new Error(`${D("只能输入指定的值")}${i.value}`));
|
|
2409
|
-
},
|
|
2427
|
+
}, In = (n, e, t, i) => {
|
|
2410
2428
|
e === "" ? t() : /^-?\d+$/.test(e) ? Math.abs(e).toString().length === parseInt(i.value) ? t() : t(new Error(`${D("只能输入")}${i.value}${D("位数数字")}`)) : t(new Error(D("请输入整数")));
|
|
2411
|
-
},
|
|
2429
|
+
}, Tn = (n, e, t) => {
|
|
2412
2430
|
if (e !== "" && !/^[a-zA-Z]{1,}$/.test(e))
|
|
2413
2431
|
return t(new Error(D("只能输入字母"))), !1;
|
|
2414
2432
|
t();
|
|
2415
|
-
},
|
|
2433
|
+
}, Rn = (n, e, t) => {
|
|
2416
2434
|
if (e !== "" && !/^[a-zA-Z ]{1,}$/.test(e))
|
|
2417
2435
|
return t(new Error(D("只能输入字母空格"))), !1;
|
|
2418
2436
|
t();
|
|
2419
|
-
},
|
|
2437
|
+
}, Pn = (n, e, t) => {
|
|
2420
2438
|
if (e !== "" && !/^[0-9a-zA-Z_-]{1,}$/.test(e))
|
|
2421
2439
|
return t(new Error(D("只能输入字母数字横线下划线"))), !1;
|
|
2422
2440
|
t();
|
|
2423
|
-
},
|
|
2441
|
+
}, $n = (n, e, t) => {
|
|
2424
2442
|
if (e !== "" && !/^[0-9a-zA-Z]{1,}$/.test(e))
|
|
2425
2443
|
return t(new Error(D("只能输入字母数字"))), !1;
|
|
2426
2444
|
t();
|
|
2427
|
-
},
|
|
2445
|
+
}, Fn = (n, e, t, i) => {
|
|
2428
2446
|
const d = new RegExp(i.value);
|
|
2429
2447
|
if (e !== "" && !d.test(e))
|
|
2430
2448
|
return t(new Error(i.errorMessage)), !1;
|
|
2431
2449
|
t();
|
|
2432
|
-
},
|
|
2433
|
-
required:
|
|
2434
|
-
min:
|
|
2435
|
-
max:
|
|
2436
|
-
email:
|
|
2437
|
-
min_value:
|
|
2438
|
-
max_value:
|
|
2439
|
-
confirmed:
|
|
2440
|
-
numeric:
|
|
2441
|
-
between:
|
|
2442
|
-
is:
|
|
2443
|
-
digits:
|
|
2444
|
-
mobile:
|
|
2445
|
-
alpha:
|
|
2446
|
-
alpha_spaces:
|
|
2447
|
-
alpha_dash:
|
|
2448
|
-
alpha_num:
|
|
2449
|
-
regex:
|
|
2450
|
-
},
|
|
2450
|
+
}, jn = {
|
|
2451
|
+
required: _n,
|
|
2452
|
+
min: Cn,
|
|
2453
|
+
max: wn,
|
|
2454
|
+
email: kn,
|
|
2455
|
+
min_value: Nn,
|
|
2456
|
+
max_value: Ln,
|
|
2457
|
+
confirmed: Vn,
|
|
2458
|
+
numeric: Sn,
|
|
2459
|
+
between: zn,
|
|
2460
|
+
is: Mn,
|
|
2461
|
+
digits: In,
|
|
2462
|
+
mobile: Dn,
|
|
2463
|
+
alpha: Tn,
|
|
2464
|
+
alpha_spaces: Rn,
|
|
2465
|
+
alpha_dash: Pn,
|
|
2466
|
+
alpha_num: $n,
|
|
2467
|
+
regex: Fn
|
|
2468
|
+
}, Kn = () => {
|
|
2451
2469
|
const n = p({}), e = p([]), t = p({}), i = p({}), d = p([]), o = p(""), g = p(""), k = p({}), s = p([]), l = p({});
|
|
2452
2470
|
return {
|
|
2453
2471
|
data: n,
|
|
@@ -2490,7 +2508,7 @@ const _n = { ...Dt, ...kt }, wn = (n, e, t, i) => {
|
|
|
2490
2508
|
setFormRule: (y, u) => {
|
|
2491
2509
|
k.value[y] = [], u && u.length && u.forEach((R) => {
|
|
2492
2510
|
k.value[y].push({
|
|
2493
|
-
validator: (F, I, M) =>
|
|
2511
|
+
validator: (F, I, M) => jn[R.key](F, I, M, R)
|
|
2494
2512
|
});
|
|
2495
2513
|
});
|
|
2496
2514
|
},
|
|
@@ -2501,13 +2519,13 @@ const _n = { ...Dt, ...kt }, wn = (n, e, t, i) => {
|
|
|
2501
2519
|
delete k.value[y];
|
|
2502
2520
|
}
|
|
2503
2521
|
};
|
|
2504
|
-
},
|
|
2522
|
+
}, qn = { class: "custom-page" }, En = {
|
|
2505
2523
|
key: 0,
|
|
2506
2524
|
class: "btn-box"
|
|
2507
|
-
},
|
|
2525
|
+
}, On = {
|
|
2508
2526
|
key: 1,
|
|
2509
2527
|
style: { "background-color": "#fff" }
|
|
2510
|
-
}, An = /* @__PURE__ */
|
|
2528
|
+
}, An = /* @__PURE__ */ Y({
|
|
2511
2529
|
__name: "App",
|
|
2512
2530
|
props: {
|
|
2513
2531
|
formConfigurationId: {},
|
|
@@ -2521,7 +2539,7 @@ const _n = { ...Dt, ...kt }, wn = (n, e, t, i) => {
|
|
|
2521
2539
|
},
|
|
2522
2540
|
emits: ["handleClick", "change"],
|
|
2523
2541
|
setup(n, { expose: e, emit: t }) {
|
|
2524
|
-
const i =
|
|
2542
|
+
const i = Kn(), { formRule: d, data: o, flowKey: g, clearData: k, getFormData: s } = i, l = n, v = t;
|
|
2525
2543
|
g.value = l.flowKey;
|
|
2526
2544
|
const r = (R) => R === "accordion";
|
|
2527
2545
|
z(
|
|
@@ -2544,26 +2562,26 @@ const _n = { ...Dt, ...kt }, wn = (n, e, t, i) => {
|
|
|
2544
2562
|
handleClick: N,
|
|
2545
2563
|
validateFormData: y,
|
|
2546
2564
|
getFormRef: u
|
|
2547
|
-
} =
|
|
2548
|
-
return
|
|
2565
|
+
} = ha(l, v, i);
|
|
2566
|
+
return zt(async () => {
|
|
2549
2567
|
l.isShowBtn == !1 ? w(l.formConfigurationId) : m();
|
|
2550
2568
|
}), e({
|
|
2551
2569
|
validateFormData: y,
|
|
2552
2570
|
clearData: k
|
|
2553
|
-
}), (R, F) => (V(),
|
|
2554
|
-
a(_).length > 0 ? (V(),
|
|
2555
|
-
(V(!0),
|
|
2556
|
-
|
|
2571
|
+
}), (R, F) => (V(), H("div", qn, [
|
|
2572
|
+
a(_).length > 0 ? (V(), H("div", En, [
|
|
2573
|
+
(V(!0), H(
|
|
2574
|
+
ae,
|
|
2557
2575
|
null,
|
|
2558
|
-
ye(a(_), (I) => (V(),
|
|
2576
|
+
ye(a(_), (I) => (V(), O(a(Rt), {
|
|
2559
2577
|
key: I.id,
|
|
2560
2578
|
style: { "margin-right": "20px" },
|
|
2561
2579
|
"btn-type": "primary",
|
|
2562
2580
|
onClick: (M) => a(N)(I)
|
|
2563
2581
|
}, {
|
|
2564
2582
|
default: $(() => [
|
|
2565
|
-
|
|
2566
|
-
|
|
2583
|
+
se(
|
|
2584
|
+
oe(I.name),
|
|
2567
2585
|
1
|
|
2568
2586
|
/* TEXT */
|
|
2569
2587
|
)
|
|
@@ -2575,35 +2593,35 @@ const _n = { ...Dt, ...kt }, wn = (n, e, t, i) => {
|
|
|
2575
2593
|
/* KEYED_FRAGMENT */
|
|
2576
2594
|
))
|
|
2577
2595
|
])) : B("v-if", !0),
|
|
2578
|
-
|
|
2596
|
+
Mt((V(), H(
|
|
2579
2597
|
"div",
|
|
2580
2598
|
{
|
|
2581
2599
|
class: "content-box",
|
|
2582
|
-
style:
|
|
2600
|
+
style: It({ margin: "0 10px", ...R.customStyle })
|
|
2583
2601
|
},
|
|
2584
2602
|
[
|
|
2585
|
-
(V(!0),
|
|
2586
|
-
|
|
2603
|
+
(V(!0), H(
|
|
2604
|
+
ae,
|
|
2587
2605
|
null,
|
|
2588
|
-
ye(a(h), (I) => (V(),
|
|
2589
|
-
|
|
2606
|
+
ye(a(h), (I) => (V(), H(
|
|
2607
|
+
ae,
|
|
2590
2608
|
{
|
|
2591
2609
|
key: I.name
|
|
2592
2610
|
},
|
|
2593
2611
|
[
|
|
2594
|
-
r(I.ctrlType) ? (V(),
|
|
2612
|
+
r(I.ctrlType) ? (V(), O(a(at), {
|
|
2595
2613
|
key: 0,
|
|
2596
2614
|
style: { "margin-bottom": "10px" },
|
|
2597
2615
|
collapsible: I.options.accordion ? "" : "disabled",
|
|
2598
2616
|
activeKey: a(b)
|
|
2599
2617
|
}, {
|
|
2600
2618
|
default: $(() => [
|
|
2601
|
-
(V(),
|
|
2619
|
+
(V(), O(a(nt), {
|
|
2602
2620
|
key: I.key,
|
|
2603
2621
|
header: I.columns[0].span
|
|
2604
2622
|
}, {
|
|
2605
2623
|
default: $(() => [
|
|
2606
|
-
a(c) ? (V(),
|
|
2624
|
+
a(c) ? (V(), O(a(He), {
|
|
2607
2625
|
key: 0,
|
|
2608
2626
|
ref_for: !0,
|
|
2609
2627
|
ref: (M) => a(u)(M, I),
|
|
@@ -2615,21 +2633,21 @@ const _n = { ...Dt, ...kt }, wn = (n, e, t, i) => {
|
|
|
2615
2633
|
form: a(i).data
|
|
2616
2634
|
}, {
|
|
2617
2635
|
default: $(() => [
|
|
2618
|
-
(V(!0),
|
|
2619
|
-
|
|
2636
|
+
(V(!0), H(
|
|
2637
|
+
ae,
|
|
2620
2638
|
null,
|
|
2621
|
-
ye(I.columns[0].list, (M) => (V(),
|
|
2622
|
-
|
|
2639
|
+
ye(I.columns[0].list, (M) => (V(), H(
|
|
2640
|
+
ae,
|
|
2623
2641
|
{
|
|
2624
2642
|
key: I.name
|
|
2625
2643
|
},
|
|
2626
2644
|
[
|
|
2627
|
-
M.ctrlType == "grid" ? (V(),
|
|
2645
|
+
M.ctrlType == "grid" ? (V(), O(De(a(be).grid), {
|
|
2628
2646
|
key: 0,
|
|
2629
2647
|
setting: M,
|
|
2630
2648
|
isView: l.isView,
|
|
2631
2649
|
store: a(i)
|
|
2632
|
-
}, null, 8, ["setting", "isView", "store"])) : (V(),
|
|
2650
|
+
}, null, 8, ["setting", "isView", "store"])) : (V(), O(De(a(be)[M.ctrlType]), {
|
|
2633
2651
|
key: 1,
|
|
2634
2652
|
setting: M,
|
|
2635
2653
|
isView: l.isView,
|
|
@@ -2653,8 +2671,8 @@ const _n = { ...Dt, ...kt }, wn = (n, e, t, i) => {
|
|
|
2653
2671
|
]),
|
|
2654
2672
|
_: 2
|
|
2655
2673
|
/* DYNAMIC */
|
|
2656
|
-
}, 1032, ["collapsible", "activeKey"])) : (V(),
|
|
2657
|
-
a(c) ? (V(),
|
|
2674
|
+
}, 1032, ["collapsible", "activeKey"])) : (V(), H("div", On, [
|
|
2675
|
+
a(c) ? (V(), O(a(He), {
|
|
2658
2676
|
key: 0,
|
|
2659
2677
|
ref_for: !0,
|
|
2660
2678
|
ref: (M) => a(u)(M, I),
|
|
@@ -2666,7 +2684,7 @@ const _n = { ...Dt, ...kt }, wn = (n, e, t, i) => {
|
|
|
2666
2684
|
form: a(i).data
|
|
2667
2685
|
}, {
|
|
2668
2686
|
default: $(() => [
|
|
2669
|
-
(V(),
|
|
2687
|
+
(V(), O(De(a(be)[I.ctrlType]), {
|
|
2670
2688
|
setting: I,
|
|
2671
2689
|
isView: l.isView,
|
|
2672
2690
|
store: a(i)
|
|
@@ -2687,11 +2705,11 @@ const _n = { ...Dt, ...kt }, wn = (n, e, t, i) => {
|
|
|
2687
2705
|
4
|
|
2688
2706
|
/* STYLE */
|
|
2689
2707
|
)), [
|
|
2690
|
-
[a(
|
|
2708
|
+
[a(Pt)]
|
|
2691
2709
|
])
|
|
2692
2710
|
]));
|
|
2693
2711
|
}
|
|
2694
|
-
}),
|
|
2712
|
+
}), Bn = /* @__PURE__ */ Ne(An, [["__scopeId", "data-v-ce01ee82"]]), Qn = {
|
|
2695
2713
|
姓名: { "zh-CN": "姓名", en: "Name", _appCode: "framework" },
|
|
2696
2714
|
状态: { "zh-CN": "状态", en: "Status", _appCode: "framework" },
|
|
2697
2715
|
组织名称: { "zh-CN": "组织名称", en: "Organization Name", _appCode: "framework" },
|
|
@@ -2814,9 +2832,9 @@ const _n = { ...Dt, ...kt }, wn = (n, e, t, i) => {
|
|
|
2814
2832
|
请选择: { "zh-CN": "请选择", en: "Please select", _appCode: "framework" },
|
|
2815
2833
|
报修位置: { "zh-CN": "报修位置", en: "Repair Location", _appCode: "framework" }
|
|
2816
2834
|
};
|
|
2817
|
-
|
|
2818
|
-
const
|
|
2835
|
+
Kt(Qn);
|
|
2836
|
+
const gs = Vt(Bn);
|
|
2819
2837
|
export {
|
|
2820
|
-
|
|
2821
|
-
|
|
2838
|
+
gs as DasProcessForm,
|
|
2839
|
+
gs as default
|
|
2822
2840
|
};
|