@das-fed/ui 7.0.7-hot.49 → 7.0.7-hot.50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +5 -5
- package/packages/business-components/process-form/index.js +983 -979
- package/packages/business-components/process-form/index.js.gz +0 -0
- package/packages/business-components/process-form/src/hooks/useSelector.d.ts +1 -0
- package/packages/business-components/process-form/style.css +1 -1
- package/packages/business-components/video-dialog/index.d.ts +5 -5
- package/packages/business-components/video-dialog/src/index.vue.d.ts +1 -1
|
@@ -1,84 +1,84 @@
|
|
|
1
1
|
import '@das-fed/ui/packages/business-components/process-form/style.css';
|
|
2
|
-
import { withInstall as
|
|
3
|
-
import { ref 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
|
|
11
|
-
import
|
|
12
|
-
import { DasImageViewer as
|
|
13
|
-
import { DasInput as
|
|
14
|
-
import { DasTooltip as
|
|
15
|
-
import { i18n as
|
|
16
|
-
import { DasTableColumn as
|
|
17
|
-
import { DasSearchForm as
|
|
18
|
-
import { DasModelTableDialog as
|
|
19
|
-
import { getProjectInfo as
|
|
2
|
+
import { withInstall as St } from "@das-fed/utils/with-install/index";
|
|
3
|
+
import { ref as p, nextTick as he, defineComponent as x, watch as z, createBlock as E, createCommentVNode as B, openBlock as V, unref as a, withCtx as $, createVNode as L, createElementVNode as Ge, createElementBlock as J, Fragment as ee, createTextVNode as ae, toDisplayString as ne, computed as Vt, isRef as ze, createSlots as Nt, h as fe, renderList as ye, resolveDynamicComponent as De, onMounted as Lt, withDirectives as zt, normalizeStyle as Mt } from "vue";
|
|
4
|
+
import { DasFormRef as It, DasForm as He } from "@das-fed/ui/packages/components/form/index";
|
|
5
|
+
import { DasButton as Tt } from "@das-fed/ui/packages/components/button/index";
|
|
6
|
+
import { vOverlay as Rt } from "@das-fed/ui/packages/components/overlay/index";
|
|
7
|
+
import { createService as H } from "@das-fed/utils/create-api-service";
|
|
8
|
+
import { DasUpload as Pt } from "@das-fed/ui/packages/components/upload/index";
|
|
9
|
+
import { DasFormItem as Y } from "@das-fed/ui/packages/components/form-item/index";
|
|
10
|
+
import { DasAutocomplete as $t } from "@das-fed/ui/packages/components/autocomplete/index";
|
|
11
|
+
import Se from "dayjs";
|
|
12
|
+
import { DasImageViewer as Xe } from "@das-fed/ui/packages/components/image-viewer/index";
|
|
13
|
+
import { DasInput as Ft } from "@das-fed/ui/packages/components/input/index";
|
|
14
|
+
import { DasTooltip as Fe } from "@das-fed/ui/packages/components/tooltip/index";
|
|
15
|
+
import { i18n as O, t as D, setI18nRule as jt } from "@das-fed/web/packages/i18n/index";
|
|
16
|
+
import { DasTableColumn as K } from "@das-fed/ui/packages/components/table/index";
|
|
17
|
+
import { DasSearchForm as Kt } from "@das-fed/ui/packages/components/search-form/index";
|
|
18
|
+
import { DasModelTableDialog as qt } from "@das-fed/ui/packages/business-components/model-table-dialog";
|
|
19
|
+
import { getProjectInfo as et } from "@das-fed/utils/common-info";
|
|
20
20
|
import { getConfig as Et } from "@das-fed/utils/config";
|
|
21
|
-
import { DasRichEditor as
|
|
22
|
-
import { DasCollaspe as
|
|
23
|
-
import { DasCollaspePanel as
|
|
24
|
-
const
|
|
25
|
-
|
|
26
|
-
const
|
|
27
|
-
|
|
28
|
-
const
|
|
21
|
+
import { DasRichEditor as tt } from "@das-fed/ui/packages/components/rich-editor/index";
|
|
22
|
+
import { DasCollaspe as at } from "@das-fed/ui/packages/components/collaspe/index";
|
|
23
|
+
import { DasCollaspePanel as nt } from "@das-fed/ui/packages/components/collapse-panel/index";
|
|
24
|
+
const G = "v1", Ot = H(`/workflow/form/form/${G}`), Bt = H(`/workflow/form/formDef/${G}`);
|
|
25
|
+
H(`/workflow/api/user/${G}`);
|
|
26
|
+
const st = H(`/workflow/api/extend/${G}`), At = H(`/workflow/flow/def/${G}`), Qt = H(`/workflow/form/customQuery/${G}`), le = H(`/api/enterpriseright/permission/${G}`), je = H(`/api/space-manage/space-tree/${G}`), Ut = H(`/workflow/form/dataTemplate/${G}`), Ke = H(`/api/supply/supplier/${G}`), xt = H(`/api/warehouse/vms/${G}/asset-receive`), Yt = H(`/api/fms/report/${G}`), Jt = H(`/api/space-manage/device-archives/${G}`), Ht = H(`/api/device-relation/project/${G}`), Wt = Ut.get("/getBpmDataTemplateInfoByFlowKey"), Zt = Ot.get("/formDesign"), Gt = Bt.get("/get"), Xt = st.get("/report-config");
|
|
27
|
+
st.get("/application-report");
|
|
28
|
+
const ea = At.get("/getBindRelationByDefKey"), ta = Qt.get("/getByAlias"), aa = le.get("/organization/authTree"), na = le.post("/user/list"), sa = le.post("/data/user-query"), oa = le.get("/role/list"), la = le.post("/data/role-ids"), ia = le.get("/organization/organizationpage"), ra = le.get("/station/list"), ua = le.get("/position/list"), Me = le.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
29
|
var e, t;
|
|
30
30
|
return n.data.pageBean = {
|
|
31
31
|
page: ((e = n == null ? void 0 : n.data) == null ? void 0 : e.pageIndex) || 1,
|
|
32
32
|
pageSize: ((t = n == null ? void 0 : n.data) == null ? void 0 : t.pageSize) || 20
|
|
33
33
|
}, n;
|
|
34
|
-
}),
|
|
35
|
-
const { setDetailData: i, getFormData: d, setFormData: o, formRule: g, showData:
|
|
36
|
-
const [
|
|
37
|
-
if (
|
|
38
|
-
const
|
|
39
|
-
|
|
40
|
-
|
|
34
|
+
}), ca = Ke.get("/supplier"), ga = Ke.post("/classification/list/all"), ma = xt.get("/receive-code"), va = Jt.post("/warehouse/account/device"), fa = Ht.get("/group/device/device-with-spaceId"), ha = Yt.post("/common/device-type/tree"), Ie = p(""), ya = (n, e, t) => {
|
|
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), _ = It(), b = p([]), w = (M) => Object.keys(M).length === 0, m = async (M) => {
|
|
36
|
+
const [Q, q] = await Zt({ formId: M }).run();
|
|
37
|
+
if (Q) return;
|
|
38
|
+
const Z = JSON.parse(q.bos);
|
|
39
|
+
Ie.value = Z[0].alias, r.value.length && r.value.forEach((U) => {
|
|
40
|
+
U.formKey === q.formKey && o(q.formKey, Ie.value, U.id);
|
|
41
41
|
});
|
|
42
|
-
const [
|
|
43
|
-
await
|
|
44
|
-
|
|
45
|
-
}), s.value = { ...s.value, ...n.disabledData }, r.value.length || o(
|
|
46
|
-
|
|
42
|
+
const [te, se] = await Gt({ formDefId: q.defId }).run();
|
|
43
|
+
await y(), h.value = JSON.parse(se.value.expand).list, h.value.forEach((U) => {
|
|
44
|
+
U.columns && U.columns[0].isOpen && b.value.push(U.key);
|
|
45
|
+
}), s.value = { ...s.value, ...n.disabledData }, r.value.length || o(q.formKey, Ie.value), setTimeout(() => {
|
|
46
|
+
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
47
|
}, 50);
|
|
48
|
-
},
|
|
48
|
+
}, N = async () => {
|
|
49
49
|
var M;
|
|
50
50
|
if (n.formConfigurationId) {
|
|
51
|
-
const [
|
|
52
|
-
if (
|
|
53
|
-
r.value =
|
|
51
|
+
const [Q, q] = await Xt({ id: n.formConfigurationId }).run();
|
|
52
|
+
if (Q) return;
|
|
53
|
+
r.value = q.reports, v.value = (M = q.reports[0]) == null ? void 0 : M.buttons.filter((Z) => !(n.isView && Z.event !== "LINK")), m(q.reports[0].formId);
|
|
54
54
|
}
|
|
55
55
|
if (n.flowKey) {
|
|
56
|
-
const [
|
|
57
|
-
if (
|
|
58
|
-
m(
|
|
56
|
+
const [Q, q] = await ea({ flowKey: n.flowKey }).run();
|
|
57
|
+
if (Q) return;
|
|
58
|
+
m(q.pcForm.pcFormId);
|
|
59
59
|
}
|
|
60
|
-
},
|
|
61
|
-
var
|
|
60
|
+
}, y = async () => {
|
|
61
|
+
var q, Z, te, se;
|
|
62
62
|
if (!n.flowKey) return;
|
|
63
|
-
const [M,
|
|
63
|
+
const [M, Q] = await Wt().run({
|
|
64
64
|
flowKey: n.flowKey,
|
|
65
65
|
needDisplayFileds: !1
|
|
66
66
|
});
|
|
67
|
-
l.value = ((
|
|
68
|
-
},
|
|
69
|
-
const { key:
|
|
70
|
-
|
|
71
|
-
},
|
|
72
|
-
M.columns &&
|
|
73
|
-
}), await
|
|
74
|
-
let
|
|
75
|
-
for (const
|
|
76
|
-
|
|
77
|
-
|
|
67
|
+
l.value = ((se = (te = (Z = (q = Q == null ? void 0 : Q.value) == null ? void 0 : q.boDef) == null ? void 0 : Z.boEnt) == null ? void 0 : te.attributeList) == null ? void 0 : se.filter((U) => U.encryption == "phone")) || [];
|
|
68
|
+
}, u = p({}), R = (M, Q) => {
|
|
69
|
+
const { key: q } = Q;
|
|
70
|
+
u.value[q] || (u.value[q] = M);
|
|
71
|
+
}, F = async () => (h.value.forEach((M) => {
|
|
72
|
+
M.columns && b.value.push(M.key);
|
|
73
|
+
}), await he(), new Promise((M, Q) => {
|
|
74
|
+
let q = !0;
|
|
75
|
+
for (const Z in u.value)
|
|
76
|
+
u.value[Z].validate((te) => {
|
|
77
|
+
te == !1 && (q = !1);
|
|
78
78
|
});
|
|
79
79
|
setTimeout(() => {
|
|
80
80
|
M({
|
|
81
|
-
result:
|
|
81
|
+
result: q,
|
|
82
82
|
data: d()
|
|
83
83
|
});
|
|
84
84
|
}, 50);
|
|
@@ -88,20 +88,20 @@ const Xt = Bt.get("/getBindRelationByDefKey"), ea = At.get("/getByAlias"), ta =
|
|
|
88
88
|
formJsonList: h,
|
|
89
89
|
btnList: v,
|
|
90
90
|
formRef: _,
|
|
91
|
-
activityKeys:
|
|
91
|
+
activityKeys: b,
|
|
92
92
|
getForm: m,
|
|
93
|
-
getBtnSet:
|
|
93
|
+
getBtnSet: N,
|
|
94
94
|
handleClick: async (M) => {
|
|
95
|
-
let { result:
|
|
96
|
-
|
|
97
|
-
M.eventTarget ===
|
|
95
|
+
let { result: Q } = await F();
|
|
96
|
+
Q && (e("handleClick", M, d()), M.event === "LINK" && r.value.forEach((q) => {
|
|
97
|
+
M.eventTarget === q.formKey && (v.value = q.buttons.filter((Z) => !(n.isView && Z.event !== "LINK")), c.value = !1, g.value = {}, m(q.formId));
|
|
98
98
|
}));
|
|
99
99
|
},
|
|
100
|
-
validateFormData:
|
|
101
|
-
getFormRef:
|
|
100
|
+
validateFormData: F,
|
|
101
|
+
getFormRef: R
|
|
102
102
|
};
|
|
103
103
|
};
|
|
104
|
-
let
|
|
104
|
+
let ba = (n = 21) => {
|
|
105
105
|
let e = "", t = crypto.getRandomValues(new Uint8Array(n));
|
|
106
106
|
for (; n--; ) {
|
|
107
107
|
let i = t[n] & 63;
|
|
@@ -109,39 +109,39 @@ let ya = (n = 21) => {
|
|
|
109
109
|
}
|
|
110
110
|
return e;
|
|
111
111
|
};
|
|
112
|
-
const
|
|
112
|
+
const W = (n) => {
|
|
113
113
|
var e = new RegExp("<.+?>", "g"), t = n.replace(e, "").replace(/ /g, "");
|
|
114
114
|
return t;
|
|
115
115
|
}, de = async (n, e, t = {}) => {
|
|
116
|
-
const [i, d] = await
|
|
116
|
+
const [i, d] = await ta({ alias: n }).run();
|
|
117
117
|
if (!i && d.url) {
|
|
118
118
|
typeof e == "string" && (e = JSON.parse(e));
|
|
119
|
-
const o =
|
|
119
|
+
const o = p({});
|
|
120
120
|
e.forEach((l) => {
|
|
121
121
|
l.defaultType == 2 && (o.value[l.field] = l.defaultValue);
|
|
122
122
|
}), o.value = { ...o.value, ...t };
|
|
123
|
-
const g = d.requestType === "POST" ?
|
|
124
|
-
return
|
|
123
|
+
const g = d.requestType === "POST" ? H(d.url).post("") : H(d.url).get(""), [k, s] = await g({}, { params: o.value }).run();
|
|
124
|
+
return k ? void 0 : s;
|
|
125
125
|
}
|
|
126
|
-
},
|
|
127
|
-
const e =
|
|
126
|
+
}, X = async (n) => {
|
|
127
|
+
const e = p(!1);
|
|
128
128
|
return n.forEach((t) => {
|
|
129
129
|
t.key === "required" && (e.value = !0);
|
|
130
130
|
}), e.value;
|
|
131
|
-
},
|
|
131
|
+
}, Ve = (n) => {
|
|
132
132
|
if (Array.isArray(n))
|
|
133
|
-
return n.map((t) =>
|
|
133
|
+
return n.map((t) => Ve(t));
|
|
134
134
|
if (typeof n != "object" || n === null)
|
|
135
135
|
return n;
|
|
136
136
|
const e = { ...n };
|
|
137
|
-
(!e.hasOwnProperty("id") || e.id === null || e.id === void 0 || e.id === "") && (e.id =
|
|
137
|
+
(!e.hasOwnProperty("id") || e.id === null || e.id === void 0 || e.id === "") && (e.id = ba());
|
|
138
138
|
for (const t in e)
|
|
139
|
-
Object.prototype.hasOwnProperty.call(e, t) && (e[t] =
|
|
139
|
+
Object.prototype.hasOwnProperty.call(e, t) && (e[t] = Ve(e[t]));
|
|
140
140
|
return e;
|
|
141
|
-
},
|
|
141
|
+
}, _a = {
|
|
142
142
|
name: "attachment"
|
|
143
|
-
}, wa = /* @__PURE__ */
|
|
144
|
-
...
|
|
143
|
+
}, wa = /* @__PURE__ */ x({
|
|
144
|
+
..._a,
|
|
145
145
|
props: {
|
|
146
146
|
setting: { default: () => ({
|
|
147
147
|
icon: "",
|
|
@@ -156,26 +156,26 @@ const H = (n) => {
|
|
|
156
156
|
store: {}
|
|
157
157
|
},
|
|
158
158
|
setup(n) {
|
|
159
|
-
const e = n, { showData: t, disabledData: i, setData: d, getData: o, setFormRule: g, deleteRule:
|
|
160
|
-
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0),
|
|
159
|
+
const e = n, { showData: t, disabledData: i, setData: d, getData: o, setFormRule: g, deleteRule: k } = e.store || {}, s = p([]), l = p(!0);
|
|
160
|
+
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), z(
|
|
161
161
|
() => t.value,
|
|
162
162
|
() => {
|
|
163
|
-
l.value = t.value[e.setting.name], l.value || (s.value = [],
|
|
163
|
+
l.value = t.value[e.setting.name], l.value || (s.value = [], k(e.setting.name)), l.value && e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList);
|
|
164
164
|
},
|
|
165
165
|
{ deep: !0, immediate: !0 }
|
|
166
166
|
);
|
|
167
|
-
const v =
|
|
168
|
-
return e.setting.options.tip && (v.value =
|
|
167
|
+
const v = p();
|
|
168
|
+
return e.setting.options.tip && (v.value = W(e.setting.options.tip)), s.value || d(e.setting.name, null), z(s, (r) => {
|
|
169
169
|
d(e.setting.name, JSON.stringify(r));
|
|
170
|
-
}), (r, h) => l.value ? (
|
|
170
|
+
}), (r, h) => l.value ? (V(), E(a(Y), {
|
|
171
171
|
key: 0,
|
|
172
172
|
col: e.span,
|
|
173
173
|
label: r.setting.desc,
|
|
174
174
|
type: "custom",
|
|
175
175
|
helpMessage: v.value
|
|
176
176
|
}, {
|
|
177
|
-
default:
|
|
178
|
-
L(a(
|
|
177
|
+
default: $(() => [
|
|
178
|
+
L(a(Pt), {
|
|
179
179
|
style: { width: "100%" },
|
|
180
180
|
modelValue: s.value,
|
|
181
181
|
"onUpdate:modelValue": h[0] || (h[0] = (c) => s.value = c)
|
|
@@ -185,13 +185,13 @@ const H = (n) => {
|
|
|
185
185
|
/* STABLE */
|
|
186
186
|
}, 8, ["col", "label", "helpMessage"])) : B("v-if", !0);
|
|
187
187
|
}
|
|
188
|
-
}),
|
|
188
|
+
}), it = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
189
189
|
__proto__: null,
|
|
190
190
|
default: wa
|
|
191
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
191
|
+
}, Symbol.toStringTag, { value: "Module" })), Ca = {
|
|
192
192
|
name: "autocomplete"
|
|
193
|
-
},
|
|
194
|
-
...
|
|
193
|
+
}, Da = /* @__PURE__ */ x({
|
|
194
|
+
...Ca,
|
|
195
195
|
props: {
|
|
196
196
|
setting: { default: () => ({
|
|
197
197
|
icon: "",
|
|
@@ -206,62 +206,62 @@ const H = (n) => {
|
|
|
206
206
|
store: {}
|
|
207
207
|
},
|
|
208
208
|
setup(n) {
|
|
209
|
-
const e = n, { showData: t, disabledData: i, setData: d, getData: o, setFormRule: g, deleteRule:
|
|
210
|
-
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0),
|
|
209
|
+
const e = n, { showData: t, disabledData: i, setData: d, getData: o, setFormRule: g, deleteRule: k } = e.store || {}, s = p(""), l = p(!0);
|
|
210
|
+
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), z(
|
|
211
211
|
() => t.value,
|
|
212
212
|
() => {
|
|
213
|
-
l.value = t.value[e.setting.name], l.value || (s.value = "",
|
|
213
|
+
l.value = t.value[e.setting.name], l.value || (s.value = "", k(e.setting.name)), l.value && e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList);
|
|
214
214
|
},
|
|
215
215
|
{ deep: !0, immediate: !0 }
|
|
216
216
|
);
|
|
217
|
-
const v = i.value[e.setting.name] || !1, r =
|
|
218
|
-
|
|
219
|
-
r.value =
|
|
217
|
+
const v = i.value[e.setting.name] || !1, r = p(!1);
|
|
218
|
+
X(e.setting.options.validateList).then((N) => {
|
|
219
|
+
r.value = N;
|
|
220
220
|
});
|
|
221
|
-
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,
|
|
222
|
-
e.setting.options.customQuery.alias ? de(e.setting.options.customQuery.alias, e.setting.options.customQuery.conditionfield).then((
|
|
223
|
-
|
|
224
|
-
}) :
|
|
225
|
-
const m =
|
|
226
|
-
return e.setting.options.tip && (m.value =
|
|
227
|
-
d(e.setting.name,
|
|
228
|
-
}), (
|
|
221
|
+
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 ? de(e.setting.options.customQuery.alias, e.setting.options.customQuery.conditionfield).then((N) => {
|
|
223
|
+
w.value = Ve(N);
|
|
224
|
+
}) : w.value = Ve(e.setting.options.options);
|
|
225
|
+
const m = p();
|
|
226
|
+
return e.setting.options.tip && (m.value = W(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
|
+
d(e.setting.name, N.toString());
|
|
228
|
+
}), (N, y) => l.value ? (V(), E(a(Y), {
|
|
229
229
|
key: 0,
|
|
230
230
|
col: e.span,
|
|
231
231
|
prop: e.setting.name,
|
|
232
232
|
modelValue: s.value,
|
|
233
|
-
"onUpdate:modelValue":
|
|
234
|
-
label:
|
|
233
|
+
"onUpdate:modelValue": y[1] || (y[1] = (u) => s.value = u),
|
|
234
|
+
label: N.setting.desc,
|
|
235
235
|
type: "custom",
|
|
236
236
|
helpMessage: m.value,
|
|
237
237
|
required: r.value,
|
|
238
238
|
disabled: a(v)
|
|
239
239
|
}, {
|
|
240
|
-
default:
|
|
241
|
-
L(a(
|
|
240
|
+
default: $(() => [
|
|
241
|
+
L(a($t), {
|
|
242
242
|
modelValue: s.value,
|
|
243
|
-
"onUpdate:modelValue":
|
|
244
|
-
options:
|
|
243
|
+
"onUpdate:modelValue": y[0] || (y[0] = (u) => s.value = u),
|
|
244
|
+
options: w.value,
|
|
245
245
|
isView: e.isView,
|
|
246
246
|
width: "100%",
|
|
247
247
|
fieldNames: { label: a(h), children: a(c) },
|
|
248
248
|
showFullPath: a(_),
|
|
249
|
-
placeholder:
|
|
249
|
+
placeholder: N.setting.options.placeholder,
|
|
250
250
|
clearable: "",
|
|
251
|
-
nodeKey:
|
|
251
|
+
nodeKey: b.value
|
|
252
252
|
}, null, 8, ["modelValue", "options", "isView", "fieldNames", "showFullPath", "placeholder", "nodeKey"])
|
|
253
253
|
]),
|
|
254
254
|
_: 1
|
|
255
255
|
/* STABLE */
|
|
256
256
|
}, 8, ["col", "prop", "modelValue", "label", "helpMessage", "required", "disabled"])) : B("v-if", !0);
|
|
257
257
|
}
|
|
258
|
-
}),
|
|
258
|
+
}), rt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
259
259
|
__proto__: null,
|
|
260
|
-
default:
|
|
261
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
260
|
+
default: Da
|
|
261
|
+
}, Symbol.toStringTag, { value: "Module" })), ka = {
|
|
262
262
|
name: "checkbox"
|
|
263
|
-
},
|
|
264
|
-
...
|
|
263
|
+
}, Sa = /* @__PURE__ */ x({
|
|
264
|
+
...ka,
|
|
265
265
|
props: {
|
|
266
266
|
setting: { default: () => ({
|
|
267
267
|
icon: "",
|
|
@@ -276,34 +276,34 @@ const H = (n) => {
|
|
|
276
276
|
store: {}
|
|
277
277
|
},
|
|
278
278
|
setup(n) {
|
|
279
|
-
const e = n, { showData: t, disabledData: i, setData: d, getData: o, setFormRule: g, deleteRule:
|
|
280
|
-
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0),
|
|
279
|
+
const e = n, { showData: t, disabledData: i, setData: d, getData: o, setFormRule: g, deleteRule: k } = e.store || {}, s = p([]), l = p(!0);
|
|
280
|
+
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), z(
|
|
281
281
|
() => t.value,
|
|
282
282
|
() => {
|
|
283
|
-
l.value = t.value[e.setting.name], l.value || (s.value = [],
|
|
283
|
+
l.value = t.value[e.setting.name], l.value || (s.value = [], k(e.setting.name)), l.value && e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList);
|
|
284
284
|
},
|
|
285
285
|
{ deep: !0, immediate: !0 }
|
|
286
286
|
);
|
|
287
|
-
const v = i.value[e.setting.name] || !1, r =
|
|
288
|
-
|
|
289
|
-
r.value =
|
|
287
|
+
const v = i.value[e.setting.name] || !1, r = p(!1);
|
|
288
|
+
X(e.setting.options.validateList).then((w) => {
|
|
289
|
+
r.value = w;
|
|
290
290
|
});
|
|
291
|
-
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", _ =
|
|
292
|
-
e.setting.options.customQuery.alias ? de(e.setting.options.customQuery.alias, e.setting.options.customQuery.conditionfield).then((
|
|
293
|
-
_.value =
|
|
291
|
+
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 ? de(e.setting.options.customQuery.alias, e.setting.options.customQuery.conditionfield).then((w) => {
|
|
293
|
+
_.value = w;
|
|
294
294
|
}) : _.value = e.setting.options.options;
|
|
295
|
-
const
|
|
296
|
-
return e.setting.options.tip && (
|
|
295
|
+
const b = p();
|
|
296
|
+
return e.setting.options.tip && (b.value = W(e.setting.options.tip)()), setTimeout(() => {
|
|
297
297
|
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
|
-
}, 50), e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList),
|
|
299
|
-
d(e.setting.name,
|
|
300
|
-
}), (
|
|
298
|
+
}, 50), e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList), z(s, (w) => {
|
|
299
|
+
d(e.setting.name, w.toString());
|
|
300
|
+
}), (w, m) => l.value ? (V(), E(a(Y), {
|
|
301
301
|
key: 0,
|
|
302
302
|
col: e.span,
|
|
303
303
|
modelValue: s.value,
|
|
304
|
-
"onUpdate:modelValue": m[0] || (m[0] = (
|
|
305
|
-
layout:
|
|
306
|
-
label:
|
|
304
|
+
"onUpdate:modelValue": m[0] || (m[0] = (N) => s.value = N),
|
|
305
|
+
layout: w.setting.options.inline ? "vertical" : "default",
|
|
306
|
+
label: w.setting.desc,
|
|
307
307
|
prop: e.setting.name,
|
|
308
308
|
type: "checkbox",
|
|
309
309
|
options: _.value,
|
|
@@ -311,17 +311,17 @@ const H = (n) => {
|
|
|
311
311
|
disabled: a(v),
|
|
312
312
|
optionsValueKey: a(h),
|
|
313
313
|
optionsLabelKey: a(c),
|
|
314
|
-
helpMessage:
|
|
314
|
+
helpMessage: b.value,
|
|
315
315
|
required: r.value
|
|
316
316
|
}, null, 8, ["col", "modelValue", "layout", "label", "prop", "options", "isView", "disabled", "optionsValueKey", "optionsLabelKey", "helpMessage", "required"])) : B("v-if", !0);
|
|
317
317
|
}
|
|
318
|
-
}),
|
|
318
|
+
}), ut = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
319
319
|
__proto__: null,
|
|
320
|
-
default:
|
|
321
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
320
|
+
default: Sa
|
|
321
|
+
}, Symbol.toStringTag, { value: "Module" })), Va = {
|
|
322
322
|
name: "date"
|
|
323
|
-
},
|
|
324
|
-
...
|
|
323
|
+
}, Na = /* @__PURE__ */ x({
|
|
324
|
+
...Va,
|
|
325
325
|
props: {
|
|
326
326
|
setting: { default: () => ({
|
|
327
327
|
icon: "",
|
|
@@ -336,35 +336,35 @@ const H = (n) => {
|
|
|
336
336
|
store: {}
|
|
337
337
|
},
|
|
338
338
|
setup(n) {
|
|
339
|
-
const e = n, { showData: t, disabledData: i, setData: d, getData: o, setFormRule: g, deleteRule:
|
|
340
|
-
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0),
|
|
339
|
+
const e = n, { showData: t, disabledData: i, setData: d, getData: o, setFormRule: g, deleteRule: k } = e.store || {}, s = p(), l = p(!0);
|
|
340
|
+
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), z(
|
|
341
341
|
() => t.value,
|
|
342
342
|
() => {
|
|
343
|
-
l.value = t.value[e.setting.name], l.value || (s.value = null,
|
|
343
|
+
l.value = t.value[e.setting.name], l.value || (s.value = null, k(e.setting.name)), l.value && e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList);
|
|
344
344
|
},
|
|
345
345
|
{ deep: !0, immediate: !0 }
|
|
346
346
|
);
|
|
347
|
-
const v = i.value[e.setting.name] || !1, r =
|
|
348
|
-
|
|
349
|
-
r.value =
|
|
347
|
+
const v = i.value[e.setting.name] || !1, r = p(!1);
|
|
348
|
+
X(e.setting.options.validateList).then((b) => {
|
|
349
|
+
r.value = b;
|
|
350
350
|
});
|
|
351
|
-
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 =
|
|
351
|
+
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
352
|
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
|
-
const _ =
|
|
354
|
-
if (e.setting.options.tip && (_.value =
|
|
353
|
+
const _ = p();
|
|
354
|
+
if (e.setting.options.tip && (_.value = W(e.setting.options.tip)), setTimeout(() => {
|
|
355
355
|
s.value = o(e.setting.name) || e.setting.options.formulasDiyJs || s.value, s.value || d(e.setting.name, null);
|
|
356
356
|
}, 50), e.setting.options.showCurrentDate) {
|
|
357
|
-
let
|
|
358
|
-
|
|
357
|
+
let b = /* @__PURE__ */ new Date();
|
|
358
|
+
b.setDate(b.getDate() + e.setting.options.day), s.value = Se(b.getTime()).format(h), d(e.setting.name, s.value);
|
|
359
359
|
}
|
|
360
|
-
return e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList),
|
|
361
|
-
d(e.setting.name,
|
|
362
|
-
}), (
|
|
360
|
+
return e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList), z(s, (b) => {
|
|
361
|
+
d(e.setting.name, b);
|
|
362
|
+
}), (b, w) => l.value ? (V(), E(a(Y), {
|
|
363
363
|
key: 0,
|
|
364
364
|
col: e.span,
|
|
365
365
|
modelValue: s.value,
|
|
366
|
-
"onUpdate:modelValue":
|
|
367
|
-
label:
|
|
366
|
+
"onUpdate:modelValue": w[0] || (w[0] = (m) => s.value = m),
|
|
367
|
+
label: b.setting.desc,
|
|
368
368
|
prop: e.setting.name,
|
|
369
369
|
type: a(h).indexOf("HH") != -1 ? "dateTime" : "date",
|
|
370
370
|
format: a(h),
|
|
@@ -372,18 +372,18 @@ const H = (n) => {
|
|
|
372
372
|
picker: c.value,
|
|
373
373
|
isView: e.isView,
|
|
374
374
|
disabled: a(v),
|
|
375
|
-
placeholder:
|
|
375
|
+
placeholder: b.setting.options.placeholder,
|
|
376
376
|
helpMessage: _.value,
|
|
377
377
|
required: r.value
|
|
378
378
|
}, null, 8, ["col", "modelValue", "label", "prop", "type", "format", "picker", "isView", "disabled", "placeholder", "helpMessage", "required"])) : B("v-if", !0);
|
|
379
379
|
}
|
|
380
|
-
}),
|
|
380
|
+
}), pt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
381
381
|
__proto__: null,
|
|
382
|
-
default:
|
|
383
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
382
|
+
default: Na
|
|
383
|
+
}, Symbol.toStringTag, { value: "Module" })), La = {
|
|
384
384
|
name: "dropdown"
|
|
385
|
-
},
|
|
386
|
-
...
|
|
385
|
+
}, za = /* @__PURE__ */ x({
|
|
386
|
+
...La,
|
|
387
387
|
props: {
|
|
388
388
|
setting: { default: () => ({
|
|
389
389
|
icon: "",
|
|
@@ -398,59 +398,59 @@ const H = (n) => {
|
|
|
398
398
|
store: {}
|
|
399
399
|
},
|
|
400
400
|
setup(n) {
|
|
401
|
-
const e = n, { showData: t, disabledData: i, setData: d, getData: o, setFormRule: g, deleteRule:
|
|
402
|
-
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0),
|
|
401
|
+
const e = n, { showData: t, disabledData: i, setData: d, getData: o, setFormRule: g, deleteRule: k, setLinkData: s } = e.store || {}, l = p(""), v = p(!0);
|
|
402
|
+
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), z(
|
|
403
403
|
() => t.value,
|
|
404
404
|
() => {
|
|
405
|
-
v.value = t.value[e.setting.name], v.value || (l.value = e.setting.options.multiple ? [] : "",
|
|
405
|
+
v.value = t.value[e.setting.name], v.value || (l.value = e.setting.options.multiple ? [] : "", k(e.setting.name)), v.value && e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList);
|
|
406
406
|
},
|
|
407
407
|
{ deep: !0, immediate: !0 }
|
|
408
408
|
);
|
|
409
409
|
const r = () => {
|
|
410
410
|
e.setting.options.customQuery && e.setting.options.customQuery.custQueryJson.length && s(e.setting.options.customQuery.custQueryJson, l.value);
|
|
411
|
-
}, h = i.value[e.setting.name] || !1, c =
|
|
412
|
-
|
|
413
|
-
c.value =
|
|
411
|
+
}, h = i.value[e.setting.name] || !1, c = p(!1);
|
|
412
|
+
X(e.setting.options.validateList).then((u) => {
|
|
413
|
+
c.value = u;
|
|
414
414
|
});
|
|
415
|
-
const _ =
|
|
416
|
-
e.setting.options.customQuery.alias && de(e.setting.options.customQuery.alias, e.setting.options.customQuery.conditionfield).then((
|
|
417
|
-
|
|
415
|
+
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 && de(e.setting.options.customQuery.alias, e.setting.options.customQuery.conditionfield).then((u) => {
|
|
417
|
+
N.value = u;
|
|
418
418
|
});
|
|
419
|
-
const
|
|
420
|
-
return e.setting.options.tip && (
|
|
421
|
-
d(e.setting.name,
|
|
422
|
-
}), (
|
|
419
|
+
const y = p();
|
|
420
|
+
return e.setting.options.tip && (y.value = W(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
|
+
d(e.setting.name, u.toString());
|
|
422
|
+
}), (u, R) => v.value ? (V(), E(a(Y), {
|
|
423
423
|
key: 0,
|
|
424
424
|
col: e.span,
|
|
425
425
|
modelValue: l.value,
|
|
426
|
-
"onUpdate:modelValue":
|
|
426
|
+
"onUpdate:modelValue": R[0] || (R[0] = (F) => l.value = F),
|
|
427
427
|
keyword: _.value,
|
|
428
|
-
"onUpdate:keyword":
|
|
429
|
-
label:
|
|
428
|
+
"onUpdate:keyword": R[1] || (R[1] = (F) => _.value = F),
|
|
429
|
+
label: u.setting.desc,
|
|
430
430
|
type: "treeSelect",
|
|
431
|
-
"node-key":
|
|
432
|
-
placeholder:
|
|
433
|
-
mode:
|
|
431
|
+
"node-key": u.setting.options.customQuery.valueBind,
|
|
432
|
+
placeholder: u.setting.options.placeholder,
|
|
433
|
+
mode: u.setting.options.multiple ? "multiple" : "",
|
|
434
434
|
prop: e.setting.name,
|
|
435
|
-
filter:
|
|
435
|
+
filter: u.setting.options.filterable,
|
|
436
436
|
selectAttrs: { allowClear: !0 },
|
|
437
|
-
options:
|
|
437
|
+
options: N.value,
|
|
438
438
|
isView: e.isView,
|
|
439
|
-
helpMessage:
|
|
439
|
+
helpMessage: y.value,
|
|
440
440
|
disabled: a(h),
|
|
441
|
-
props: { label: a(
|
|
442
|
-
"check-strictly": !
|
|
441
|
+
props: { label: a(w), value: a(b), children: a(m) },
|
|
442
|
+
"check-strictly": !u.setting.options.cascade,
|
|
443
443
|
required: c.value,
|
|
444
444
|
onChange: r
|
|
445
445
|
}, 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
446
|
}
|
|
447
|
-
}),
|
|
447
|
+
}), dt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
448
448
|
__proto__: null,
|
|
449
|
-
default:
|
|
450
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
449
|
+
default: za
|
|
450
|
+
}, Symbol.toStringTag, { value: "Module" })), Ma = { class: "form-image" }, Ia = {
|
|
451
451
|
name: "imageViewer"
|
|
452
|
-
},
|
|
453
|
-
...
|
|
452
|
+
}, Ta = /* @__PURE__ */ x({
|
|
453
|
+
...Ia,
|
|
454
454
|
props: {
|
|
455
455
|
setting: { default: () => ({
|
|
456
456
|
icon: "",
|
|
@@ -465,56 +465,56 @@ const H = (n) => {
|
|
|
465
465
|
store: {}
|
|
466
466
|
},
|
|
467
467
|
setup(n) {
|
|
468
|
-
const e = n, { showData: t, disabledData: i, setData: d, getData: o, setFormRule: g, deleteRule:
|
|
469
|
-
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0),
|
|
468
|
+
const e = n, { showData: t, disabledData: i, setData: d, getData: o, setFormRule: g, deleteRule: k } = e.store || {}, s = p(), l = p(!0);
|
|
469
|
+
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), z(
|
|
470
470
|
() => t.value,
|
|
471
471
|
() => {
|
|
472
|
-
l.value = t.value[e.setting.name], l.value || (s.value = e.setting.options.file.limit > 1 ? [] : "",
|
|
472
|
+
l.value = t.value[e.setting.name], l.value || (s.value = e.setting.options.file.limit > 1 ? [] : "", k(e.setting.name)), l.value && e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList);
|
|
473
473
|
},
|
|
474
474
|
{ deep: !0, immediate: !0 }
|
|
475
475
|
);
|
|
476
|
-
const v = i.value[e.setting.name] || !1, r =
|
|
477
|
-
|
|
478
|
-
r.value =
|
|
476
|
+
const v = i.value[e.setting.name] || !1, r = p(!1);
|
|
477
|
+
X(e.setting.options.validateList).then((b) => {
|
|
478
|
+
r.value = b;
|
|
479
479
|
});
|
|
480
|
-
const h =
|
|
480
|
+
const h = p("normal");
|
|
481
481
|
e.isView && (h.value = "info");
|
|
482
|
-
const c =
|
|
483
|
-
e.setting.options.tip && (c.value =
|
|
484
|
-
const _ = (
|
|
482
|
+
const c = p();
|
|
483
|
+
e.setting.options.tip && (c.value = W(e.setting.options.tip)), s.value = e.setting.options.file.limit > 1 ? [] : "", e.setting.options.file.limit > 1 && 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
|
+
const _ = (b) => {
|
|
485
485
|
setTimeout(() => {
|
|
486
486
|
d(e.setting.name, s.value.toString());
|
|
487
487
|
}, 100);
|
|
488
488
|
};
|
|
489
|
-
return e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList),
|
|
490
|
-
const
|
|
491
|
-
let
|
|
492
|
-
return m.indexOf("/oss/") != -1 ?
|
|
489
|
+
return e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList), z(s.value, (b) => {
|
|
490
|
+
const w = b.map((m) => {
|
|
491
|
+
let N = "";
|
|
492
|
+
return m.indexOf("/oss/") != -1 ? N = m : N = `/oss/${m}`, N;
|
|
493
493
|
});
|
|
494
494
|
setTimeout(() => {
|
|
495
|
-
d(e.setting.name,
|
|
495
|
+
d(e.setting.name, w.join(","));
|
|
496
496
|
}, 100);
|
|
497
|
-
}), (
|
|
497
|
+
}), (b, w) => l.value ? (V(), E(a(Y), {
|
|
498
498
|
key: 0,
|
|
499
499
|
modelValue: s.value,
|
|
500
|
-
"onUpdate:modelValue":
|
|
500
|
+
"onUpdate:modelValue": w[2] || (w[2] = (m) => s.value = m),
|
|
501
501
|
"margin-bottom": "0",
|
|
502
502
|
prop: e.setting.name,
|
|
503
|
-
label:
|
|
503
|
+
label: b.setting.desc,
|
|
504
504
|
type: "custom",
|
|
505
505
|
helpMessage: c.value,
|
|
506
506
|
required: r.value,
|
|
507
507
|
col: e.span
|
|
508
508
|
}, {
|
|
509
|
-
default:
|
|
510
|
-
|
|
511
|
-
L(a(
|
|
509
|
+
default: $(() => [
|
|
510
|
+
Ge("div", Ma, [
|
|
511
|
+
L(a(Xe), {
|
|
512
512
|
modelValue: s.value,
|
|
513
|
-
"onUpdate:modelValue":
|
|
513
|
+
"onUpdate:modelValue": w[0] || (w[0] = (m) => s.value = m),
|
|
514
514
|
status: h.value,
|
|
515
|
-
"onUpdate:status":
|
|
515
|
+
"onUpdate:status": w[1] || (w[1] = (m) => h.value = m),
|
|
516
516
|
maxSize: "6",
|
|
517
|
-
"limit-num":
|
|
517
|
+
"limit-num": b.setting.options.file.limit,
|
|
518
518
|
prop: e.setting.name,
|
|
519
519
|
"service-name": "hotent",
|
|
520
520
|
"accept-video": "",
|
|
@@ -523,8 +523,8 @@ const H = (n) => {
|
|
|
523
523
|
videoHeight: 680,
|
|
524
524
|
disabled: a(v),
|
|
525
525
|
"show-image-name": "",
|
|
526
|
-
needDownloadBtn:
|
|
527
|
-
needPreview:
|
|
526
|
+
needDownloadBtn: b.setting.options.file.allowDownload == !0,
|
|
527
|
+
needPreview: b.setting.options.file.allowPreview == !0,
|
|
528
528
|
onImageUpload: _,
|
|
529
529
|
required: r.value
|
|
530
530
|
}, null, 8, ["modelValue", "status", "limit-num", "prop", "disabled", "needDownloadBtn", "needPreview", "required"])
|
|
@@ -534,15 +534,15 @@ const H = (n) => {
|
|
|
534
534
|
/* STABLE */
|
|
535
535
|
}, 8, ["modelValue", "prop", "label", "helpMessage", "required", "col"])) : B("v-if", !0);
|
|
536
536
|
}
|
|
537
|
-
}),
|
|
537
|
+
}), Ne = (n, e) => {
|
|
538
538
|
const t = n.__vccOpts || n;
|
|
539
539
|
for (const [i, d] of e)
|
|
540
540
|
t[i] = d;
|
|
541
541
|
return t;
|
|
542
|
-
},
|
|
542
|
+
}, Ra = /* @__PURE__ */ Ne(Ta, [["__scopeId", "data-v-745a2e98"]]), ct = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
543
543
|
__proto__: null,
|
|
544
|
-
default:
|
|
545
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
544
|
+
default: Ra
|
|
545
|
+
}, Symbol.toStringTag, { value: "Module" })), Pa = (n) => {
|
|
546
546
|
const t = "****", i = String(n), d = i.slice(0, 15), o = i.slice(15);
|
|
547
547
|
return ((s) => {
|
|
548
548
|
const l = s.length;
|
|
@@ -577,22 +577,22 @@ const H = (n) => {
|
|
|
577
577
|
const r = v + t.length;
|
|
578
578
|
return s.slice(0, v) + t + s.slice(r);
|
|
579
579
|
})(d) + o;
|
|
580
|
-
},
|
|
580
|
+
}, $a = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
581
581
|
__proto__: null,
|
|
582
|
-
default:
|
|
583
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
584
|
-
var
|
|
585
|
-
for (const n in
|
|
586
|
-
const e =
|
|
587
|
-
|
|
582
|
+
default: Pa
|
|
583
|
+
}, Symbol.toStringTag, { value: "Module" })), ke = {}, Fa = /^\.\/(.+)\/index\.ts$/, We = /* @__PURE__ */ Object.assign({ "./phone/index.ts": $a });
|
|
584
|
+
var Ze;
|
|
585
|
+
for (const n in We) {
|
|
586
|
+
const e = We[n], t = (Ze = n.match(Fa)) == null ? void 0 : Ze[1];
|
|
587
|
+
ke[t] = e.default;
|
|
588
588
|
}
|
|
589
|
-
const
|
|
589
|
+
const ja = (n, e) => {
|
|
590
590
|
var i;
|
|
591
|
-
return e ? ((i =
|
|
592
|
-
},
|
|
591
|
+
return e ? ((i = ke[n]) == null ? void 0 : i.call(ke, e)) ?? e : "-";
|
|
592
|
+
}, Ka = {
|
|
593
593
|
name: "input"
|
|
594
|
-
},
|
|
595
|
-
...
|
|
594
|
+
}, qa = /* @__PURE__ */ x({
|
|
595
|
+
...Ka,
|
|
596
596
|
props: {
|
|
597
597
|
setting: { default: () => ({
|
|
598
598
|
icon: "",
|
|
@@ -607,73 +607,73 @@ const Fa = (n, e) => {
|
|
|
607
607
|
store: {}
|
|
608
608
|
},
|
|
609
609
|
setup(n) {
|
|
610
|
-
const e = n, { data: t, showData: i, disabledData: d, setData: o, getData: g, setFormRule:
|
|
610
|
+
const e = n, { data: t, showData: i, disabledData: d, setData: o, getData: g, setFormRule: k, deleteRule: s, encryptionData: l } = e.store || {}, v = p(""), r = p(!1);
|
|
611
611
|
l.value.length && l.value.forEach((m) => {
|
|
612
612
|
m.name === e.setting.name && (r.value = !0);
|
|
613
613
|
});
|
|
614
|
-
const h =
|
|
615
|
-
!i.value[e.setting.name] && i.value[e.setting.name] != !1 && (i.value[e.setting.name] = !0),
|
|
614
|
+
const h = p(""), c = p(!0);
|
|
615
|
+
!i.value[e.setting.name] && i.value[e.setting.name] != !1 && (i.value[e.setting.name] = !0), z(
|
|
616
616
|
() => i.value,
|
|
617
617
|
() => {
|
|
618
|
-
c.value = i.value[e.setting.name], c.value || (h.value = "", s(e.setting.name)), c.value && e.setting.options.validateList.length &&
|
|
618
|
+
c.value = i.value[e.setting.name], c.value || (h.value = "", s(e.setting.name)), c.value && e.setting.options.validateList.length && k(e.setting.name, e.setting.options.validateList);
|
|
619
619
|
},
|
|
620
620
|
{ deep: !0, immediate: !0 }
|
|
621
|
-
),
|
|
621
|
+
), z(
|
|
622
622
|
() => t.value,
|
|
623
623
|
() => {
|
|
624
624
|
t.value[e.setting.name] && (h.value = t.value[e.setting.name]);
|
|
625
625
|
},
|
|
626
626
|
{ deep: !0 }
|
|
627
627
|
);
|
|
628
|
-
const _ = d.value[e.setting.name] || !1,
|
|
629
|
-
|
|
630
|
-
|
|
628
|
+
const _ = d.value[e.setting.name] || !1, b = p(!1);
|
|
629
|
+
X(e.setting.options.validateList).then((m) => {
|
|
630
|
+
b.value = m;
|
|
631
631
|
});
|
|
632
|
-
const
|
|
633
|
-
return e.setting.options.tip && (
|
|
634
|
-
h.value = g(e.setting.name) || e.setting.options.formulasDiyJs || h.value, r && e.isView && (v.value =
|
|
635
|
-
}, 50), e.setting.options.validateList.length &&
|
|
632
|
+
const w = p();
|
|
633
|
+
return e.setting.options.tip && (w.value = W(e.setting.options.tip)), setTimeout(() => {
|
|
634
|
+
h.value = g(e.setting.name) || e.setting.options.formulasDiyJs || h.value, r && e.isView && (v.value = ja("phone", h.value)), h.value || o(e.setting.name, null);
|
|
635
|
+
}, 50), e.setting.options.validateList.length && k(e.setting.name, e.setting.options.validateList), z(h, (m) => {
|
|
636
636
|
e.setting.options.dataType === "number" && !isNaN(m) ? o(e.setting.name, Number(m)) : o(e.setting.name, m);
|
|
637
|
-
}), (m,
|
|
638
|
-
|
|
637
|
+
}), (m, N) => (V(), J(
|
|
638
|
+
ee,
|
|
639
639
|
null,
|
|
640
640
|
[
|
|
641
|
-
c.value && r.value && e.isView ? (
|
|
641
|
+
c.value && r.value && e.isView ? (V(), E(a(Y), {
|
|
642
642
|
key: 0,
|
|
643
643
|
col: e.span,
|
|
644
644
|
prop: e.setting.name,
|
|
645
645
|
modelValue: h.value,
|
|
646
|
-
"onUpdate:modelValue":
|
|
646
|
+
"onUpdate:modelValue": N[1] || (N[1] = (y) => h.value = y),
|
|
647
647
|
label: m.setting.desc,
|
|
648
648
|
type: "custom",
|
|
649
|
-
helpMessage:
|
|
650
|
-
required:
|
|
649
|
+
helpMessage: w.value,
|
|
650
|
+
required: b.value
|
|
651
651
|
}, {
|
|
652
|
-
default:
|
|
653
|
-
L(a(
|
|
652
|
+
default: $(() => [
|
|
653
|
+
L(a(Fe), {
|
|
654
654
|
placement: "top",
|
|
655
655
|
disabled: !h.value,
|
|
656
656
|
content: h.value
|
|
657
657
|
}, {
|
|
658
|
-
default:
|
|
659
|
-
L(a(
|
|
658
|
+
default: $(() => [
|
|
659
|
+
L(a(Ft), {
|
|
660
660
|
modelValue: v.value,
|
|
661
|
-
"onUpdate:modelValue":
|
|
661
|
+
"onUpdate:modelValue": N[0] || (N[0] = (y) => v.value = y),
|
|
662
662
|
width: m.setting.options.width,
|
|
663
663
|
disabled: m.setting.options.isInputEdit || a(_),
|
|
664
664
|
isView: m.setting.options.isReadonly || e.isView,
|
|
665
665
|
placeholder: m.setting.options.placeholder
|
|
666
666
|
}, {
|
|
667
|
-
prepend:
|
|
668
|
-
|
|
669
|
-
|
|
667
|
+
prepend: $(() => [
|
|
668
|
+
ae(
|
|
669
|
+
ne(m.setting.options.bindPreAndSufFixjson.preFix),
|
|
670
670
|
1
|
|
671
671
|
/* TEXT */
|
|
672
672
|
)
|
|
673
673
|
]),
|
|
674
|
-
append:
|
|
675
|
-
|
|
676
|
-
|
|
674
|
+
append: $(() => [
|
|
675
|
+
ae(
|
|
676
|
+
ne(m.setting.options.bindPreAndSufFixjson.sufSix),
|
|
677
677
|
1
|
|
678
678
|
/* TEXT */
|
|
679
679
|
)
|
|
@@ -689,22 +689,22 @@ const Fa = (n, e) => {
|
|
|
689
689
|
_: 1
|
|
690
690
|
/* STABLE */
|
|
691
691
|
}, 8, ["col", "prop", "modelValue", "label", "helpMessage", "required"])) : B("v-if", !0),
|
|
692
|
-
c.value && (!r.value || !e.isView) ? (
|
|
692
|
+
c.value && (!r.value || !e.isView) ? (V(), E(a(Y), {
|
|
693
693
|
key: 1,
|
|
694
694
|
col: e.span,
|
|
695
695
|
modelValue: h.value,
|
|
696
|
-
"onUpdate:modelValue":
|
|
696
|
+
"onUpdate:modelValue": N[2] || (N[2] = (y) => h.value = y),
|
|
697
697
|
width: m.setting.options.width,
|
|
698
698
|
disabled: m.setting.options.isInputEdit || a(_),
|
|
699
699
|
isView: m.setting.options.isReadonly || e.isView,
|
|
700
700
|
prop: e.setting.name,
|
|
701
701
|
label: m.setting.desc,
|
|
702
702
|
type: "input",
|
|
703
|
-
helpMessage:
|
|
704
|
-
required:
|
|
703
|
+
helpMessage: w.value,
|
|
704
|
+
required: b.value,
|
|
705
705
|
placeholder: m.setting.options.placeholder
|
|
706
706
|
}, {
|
|
707
|
-
default:
|
|
707
|
+
default: $(() => [
|
|
708
708
|
B(` <DasInput\r
|
|
709
709
|
v-model="inputValue"\r
|
|
710
710
|
>\r
|
|
@@ -720,12 +720,12 @@ const Fa = (n, e) => {
|
|
|
720
720
|
/* STABLE_FRAGMENT */
|
|
721
721
|
));
|
|
722
722
|
}
|
|
723
|
-
}),
|
|
723
|
+
}), gt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
724
724
|
__proto__: null,
|
|
725
|
-
default:
|
|
725
|
+
default: qa
|
|
726
726
|
}, Symbol.toStringTag, { value: "Module" })), Ea = {
|
|
727
727
|
name: "number"
|
|
728
|
-
}, Oa = /* @__PURE__ */
|
|
728
|
+
}, Oa = /* @__PURE__ */ x({
|
|
729
729
|
...Ea,
|
|
730
730
|
props: {
|
|
731
731
|
setting: { default: () => ({
|
|
@@ -741,28 +741,28 @@ const Fa = (n, e) => {
|
|
|
741
741
|
store: {}
|
|
742
742
|
},
|
|
743
743
|
setup(n) {
|
|
744
|
-
const e = n, { showData: t, disabledData: i, setData: d, getData: o, setFormRule: g, deleteRule:
|
|
745
|
-
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0),
|
|
744
|
+
const e = n, { showData: t, disabledData: i, setData: d, getData: o, setFormRule: g, deleteRule: k } = e.store || {}, s = p(0), l = p(!0);
|
|
745
|
+
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), z(
|
|
746
746
|
() => t.value,
|
|
747
747
|
() => {
|
|
748
|
-
l.value = t.value[e.setting.name], l.value || (s.value = 0,
|
|
748
|
+
l.value = t.value[e.setting.name], l.value || (s.value = 0, k(e.setting.name)), l.value && e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList);
|
|
749
749
|
},
|
|
750
750
|
{ deep: !0, immediate: !0 }
|
|
751
751
|
);
|
|
752
|
-
const v = i.value[e.setting.name] || !1, r =
|
|
753
|
-
|
|
752
|
+
const v = i.value[e.setting.name] || !1, r = p(!1);
|
|
753
|
+
X(e.setting.options.validateList).then((c) => {
|
|
754
754
|
r.value = c;
|
|
755
755
|
});
|
|
756
|
-
const h =
|
|
757
|
-
return e.setting.options.tip && (h.value =
|
|
756
|
+
const h = p();
|
|
757
|
+
return e.setting.options.tip && (h.value = W(e.setting.options.tip)), setTimeout(() => {
|
|
758
758
|
s.value = o(e.setting.name) || e.setting.options.formulasDiyJs || s.value, s.value || d(e.setting.name, null);
|
|
759
|
-
}, 50), e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList),
|
|
759
|
+
}, 50), e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList), z(s, (c) => {
|
|
760
760
|
d(e.setting.name, c);
|
|
761
|
-
}), (c, _) => l.value ? (
|
|
761
|
+
}), (c, _) => l.value ? (V(), E(a(Y), {
|
|
762
762
|
key: 0,
|
|
763
763
|
col: e.span,
|
|
764
764
|
modelValue: s.value,
|
|
765
|
-
"onUpdate:modelValue": _[0] || (_[0] = (
|
|
765
|
+
"onUpdate:modelValue": _[0] || (_[0] = (b) => s.value = b),
|
|
766
766
|
style: { width: "100%" },
|
|
767
767
|
label: c.setting.desc,
|
|
768
768
|
type: "inputNumber",
|
|
@@ -777,13 +777,13 @@ const Fa = (n, e) => {
|
|
|
777
777
|
required: r.value
|
|
778
778
|
}, null, 8, ["col", "modelValue", "label", "prop", "max", "min", "step", "disabled", "isView", "precision", "helpMessage", "required"])) : B("v-if", !0);
|
|
779
779
|
}
|
|
780
|
-
}),
|
|
780
|
+
}), mt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
781
781
|
__proto__: null,
|
|
782
782
|
default: Oa
|
|
783
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
783
|
+
}, Symbol.toStringTag, { value: "Module" })), Ba = {
|
|
784
784
|
name: "radio"
|
|
785
|
-
},
|
|
786
|
-
...
|
|
785
|
+
}, Aa = /* @__PURE__ */ x({
|
|
786
|
+
...Ba,
|
|
787
787
|
props: {
|
|
788
788
|
setting: { default: () => ({
|
|
789
789
|
icon: "",
|
|
@@ -800,42 +800,42 @@ const Fa = (n, e) => {
|
|
|
800
800
|
store: {}
|
|
801
801
|
},
|
|
802
802
|
setup(n) {
|
|
803
|
-
const e = n, { showData: t, disabledData: i, setData: d, getData: o, setFormRule: g, deleteRule:
|
|
804
|
-
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0),
|
|
803
|
+
const e = n, { showData: t, disabledData: i, setData: d, getData: o, setFormRule: g, deleteRule: k } = e.store || {}, s = p(null), l = p(!0);
|
|
804
|
+
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), z(
|
|
805
805
|
() => t.value,
|
|
806
806
|
() => {
|
|
807
|
-
l.value = t.value[e.setting.name], l.value || (s.value = null,
|
|
807
|
+
l.value = t.value[e.setting.name], l.value || (s.value = null, k(e.setting.name)), l.value && e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList);
|
|
808
808
|
},
|
|
809
809
|
{ deep: !0, immediate: !0 }
|
|
810
810
|
);
|
|
811
|
-
const v = i.value[e.setting.name] || !1, r =
|
|
812
|
-
|
|
811
|
+
const v = i.value[e.setting.name] || !1, r = p(!1);
|
|
812
|
+
X(e.setting.options.validateList).then((m) => {
|
|
813
813
|
r.value = m;
|
|
814
814
|
});
|
|
815
|
-
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", _ =
|
|
815
|
+
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
816
|
e.setting.options.customQuery.alias ? de(e.setting.options.customQuery.alias, e.setting.options.customQuery.conditionfield).then((m) => {
|
|
817
817
|
_.value = m;
|
|
818
818
|
}) : _.value = e.setting.options.options;
|
|
819
|
-
const
|
|
820
|
-
e.setting.options.tip && (
|
|
819
|
+
const b = p();
|
|
820
|
+
e.setting.options.tip && (b.value = W(e.setting.options.tip)), setTimeout(() => {
|
|
821
821
|
s.value = o(e.setting.name) || e.setting.options.formulasDiyJs || s.value, s.value || d(e.setting.name, null);
|
|
822
|
-
}, 50), e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList),
|
|
822
|
+
}, 50), e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList), z(s, (m) => {
|
|
823
823
|
d(e.setting.name, m);
|
|
824
824
|
});
|
|
825
|
-
const
|
|
826
|
-
e.setting.options.linkage.length && e.setting.options.linkage.forEach((
|
|
827
|
-
if (
|
|
828
|
-
const
|
|
829
|
-
t.value[
|
|
825
|
+
const w = (m) => {
|
|
826
|
+
e.setting.options.linkage.length && e.setting.options.linkage.forEach((N) => {
|
|
827
|
+
if (N.value === m) {
|
|
828
|
+
const u = N.effect[0].target.split(".")[2];
|
|
829
|
+
t.value[u] = N.effect[0].type === "w";
|
|
830
830
|
}
|
|
831
831
|
});
|
|
832
832
|
};
|
|
833
|
-
return (m,
|
|
833
|
+
return (m, N) => l.value ? (V(), E(a(Y), {
|
|
834
834
|
key: 0,
|
|
835
|
-
onChange:
|
|
835
|
+
onChange: w,
|
|
836
836
|
col: e.span,
|
|
837
837
|
modelValue: s.value,
|
|
838
|
-
"onUpdate:modelValue":
|
|
838
|
+
"onUpdate:modelValue": N[0] || (N[0] = (y) => s.value = y),
|
|
839
839
|
layout: m.setting.options.inline ? "vertical" : "default",
|
|
840
840
|
label: m.setting.desc,
|
|
841
841
|
type: "radio",
|
|
@@ -844,19 +844,19 @@ const Fa = (n, e) => {
|
|
|
844
844
|
isView: e.isView,
|
|
845
845
|
optionsValueKey: a(h),
|
|
846
846
|
optionsLabelKey: a(c),
|
|
847
|
-
helpMessage:
|
|
847
|
+
helpMessage: b.value,
|
|
848
848
|
disabled: a(v),
|
|
849
849
|
required: r.value,
|
|
850
850
|
isSetTimeout: !0
|
|
851
851
|
}, null, 8, ["col", "modelValue", "layout", "label", "prop", "options", "isView", "optionsValueKey", "optionsLabelKey", "helpMessage", "disabled", "required"])) : B("v-if", !0);
|
|
852
852
|
}
|
|
853
|
-
}),
|
|
853
|
+
}), vt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
854
854
|
__proto__: null,
|
|
855
|
-
default:
|
|
856
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
855
|
+
default: Aa
|
|
856
|
+
}, Symbol.toStringTag, { value: "Module" })), Qa = {
|
|
857
857
|
name: "select"
|
|
858
|
-
},
|
|
859
|
-
...
|
|
858
|
+
}, Ua = /* @__PURE__ */ x({
|
|
859
|
+
...Qa,
|
|
860
860
|
props: {
|
|
861
861
|
setting: { default: () => ({
|
|
862
862
|
icon: "",
|
|
@@ -871,122 +871,122 @@ const Fa = (n, e) => {
|
|
|
871
871
|
store: {}
|
|
872
872
|
},
|
|
873
873
|
setup(n) {
|
|
874
|
-
var
|
|
875
|
-
const e = n, { showData: t, disabledData: i, linkData: d, setData: o, getData: g, setFormRule:
|
|
876
|
-
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0),
|
|
874
|
+
var N, y;
|
|
875
|
+
const e = n, { showData: t, disabledData: i, linkData: d, setData: o, getData: g, setFormRule: k, deleteRule: s } = e.store || {}, l = p(), v = p(!0);
|
|
876
|
+
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), z(
|
|
877
877
|
() => t.value,
|
|
878
878
|
() => {
|
|
879
|
-
v.value = t.value[e.setting.name], v.value || (l.value = null, s(e.setting.name)), v.value && e.setting.options.validateList.length &&
|
|
879
|
+
v.value = t.value[e.setting.name], v.value || (l.value = null, s(e.setting.name)), v.value && e.setting.options.validateList.length && k(e.setting.name, e.setting.options.validateList);
|
|
880
880
|
},
|
|
881
881
|
{ deep: !0, immediate: !0 }
|
|
882
|
-
),
|
|
882
|
+
), z(
|
|
883
883
|
() => d.value,
|
|
884
884
|
() => {
|
|
885
|
-
d.value.data.forEach((
|
|
886
|
-
if (e.setting.options.customQuery.alias && e.setting.options.customQuery.alias ===
|
|
885
|
+
d.value.data.forEach((u) => {
|
|
886
|
+
if (e.setting.options.customQuery.alias && e.setting.options.customQuery.alias === u.alias) {
|
|
887
887
|
l.value = null;
|
|
888
|
-
const
|
|
889
|
-
let
|
|
890
|
-
|
|
891
|
-
const M =
|
|
892
|
-
|
|
888
|
+
const R = u.conditionfield.filter((I) => I.defaultType == 1);
|
|
889
|
+
let F = {};
|
|
890
|
+
R.forEach((I) => {
|
|
891
|
+
const M = I.fieldPath.split("."), Q = M[M.length - 1];
|
|
892
|
+
F[I.field] = g(Q);
|
|
893
893
|
}), de(
|
|
894
894
|
e.setting.options.customQuery.alias,
|
|
895
895
|
e.setting.options.customQuery.conditionfield,
|
|
896
|
-
|
|
897
|
-
).then((
|
|
898
|
-
|
|
896
|
+
F
|
|
897
|
+
).then((I) => {
|
|
898
|
+
b.value = I;
|
|
899
899
|
});
|
|
900
900
|
}
|
|
901
901
|
});
|
|
902
902
|
},
|
|
903
903
|
{ deep: !0 }
|
|
904
904
|
);
|
|
905
|
-
const r = i.value[e.setting.name] || !1, h =
|
|
906
|
-
|
|
907
|
-
h.value =
|
|
905
|
+
const r = i.value[e.setting.name] || !1, h = p(!1);
|
|
906
|
+
X(e.setting.options.validateList).then((u) => {
|
|
907
|
+
h.value = u;
|
|
908
908
|
});
|
|
909
|
-
const c = e.setting.options.customQuery.valueBind ? e.setting.options.customQuery.valueBind : "key", _ = e.setting.options.customQuery.labelBind ? e.setting.options.customQuery.labelBind : "value",
|
|
909
|
+
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([]);
|
|
910
910
|
if (e.setting.options.customQuery.alias) {
|
|
911
|
-
let
|
|
912
|
-
typeof
|
|
913
|
-
const
|
|
914
|
-
let
|
|
915
|
-
|
|
916
|
-
var
|
|
917
|
-
const M = (
|
|
918
|
-
|
|
919
|
-
}), Object.values(
|
|
920
|
-
(
|
|
921
|
-
|
|
911
|
+
let u = (y = (N = e.setting.options) == null ? void 0 : N.customQuery) == null ? void 0 : y.conditionfield;
|
|
912
|
+
typeof u == "string" && (u = JSON.parse(u));
|
|
913
|
+
const R = u.filter((I) => I.defaultType == 1);
|
|
914
|
+
let F = {};
|
|
915
|
+
R.forEach((I) => {
|
|
916
|
+
var q;
|
|
917
|
+
const M = (q = I.fieldPath) == null ? void 0 : q.split("."), Q = M[M.length - 1];
|
|
918
|
+
F[I.field] = g(Q);
|
|
919
|
+
}), Object.values(F).every((I) => I) && de(e.setting.options.customQuery.alias, e.setting.options.customQuery.conditionfield, F).then(
|
|
920
|
+
(I) => {
|
|
921
|
+
b.value = I;
|
|
922
922
|
}
|
|
923
923
|
);
|
|
924
924
|
} else
|
|
925
|
-
|
|
926
|
-
const
|
|
927
|
-
e.setting.options.tip && (
|
|
925
|
+
b.value = e.setting.options.options;
|
|
926
|
+
const w = p();
|
|
927
|
+
e.setting.options.tip && (w.value = W(e.setting.options.tip)), l.value = e.setting.options.multiple ? [] : null, setTimeout(() => {
|
|
928
928
|
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
|
-
}, 50), e.setting.options.validateList.length &&
|
|
930
|
-
e.setting.options.multiple ? o(e.setting.name,
|
|
929
|
+
}, 50), e.setting.options.validateList.length && k(e.setting.name, e.setting.options.validateList), z(l, (u) => {
|
|
930
|
+
e.setting.options.multiple ? o(e.setting.name, u.toString()) : o(e.setting.name, u);
|
|
931
931
|
});
|
|
932
|
-
const m = (
|
|
933
|
-
e.setting.options.linkage.length && !e.setting.options.multiple && e.setting.options.linkage.forEach((
|
|
934
|
-
if (
|
|
935
|
-
const
|
|
936
|
-
t.value[
|
|
932
|
+
const m = (u) => {
|
|
933
|
+
e.setting.options.linkage.length && !e.setting.options.multiple && e.setting.options.linkage.forEach((R) => {
|
|
934
|
+
if (R.value === u) {
|
|
935
|
+
const I = R.effect[0].target.split(".")[2];
|
|
936
|
+
t.value[I] = R.effect[0].type === "w";
|
|
937
937
|
}
|
|
938
938
|
});
|
|
939
939
|
};
|
|
940
|
-
return (
|
|
940
|
+
return (u, R) => v.value ? (V(), E(a(Y), {
|
|
941
941
|
key: 0,
|
|
942
942
|
col: e.span,
|
|
943
943
|
modelValue: l.value,
|
|
944
|
-
"onUpdate:modelValue":
|
|
945
|
-
label:
|
|
944
|
+
"onUpdate:modelValue": R[0] || (R[0] = (F) => l.value = F),
|
|
945
|
+
label: u.setting.desc,
|
|
946
946
|
onChange: m,
|
|
947
947
|
type: "select",
|
|
948
948
|
prop: e.setting.name,
|
|
949
|
-
placeholder:
|
|
950
|
-
mode:
|
|
951
|
-
showSearch:
|
|
949
|
+
placeholder: u.setting.options.placeholder,
|
|
950
|
+
mode: u.setting.options.multiple ? "tags" : "combobox",
|
|
951
|
+
showSearch: u.setting.options.filterable,
|
|
952
952
|
allowClear: !0,
|
|
953
953
|
isView: e.isView,
|
|
954
|
-
options:
|
|
954
|
+
options: b.value,
|
|
955
955
|
optionsValueKey: a(c),
|
|
956
956
|
optionsLabelKey: a(_),
|
|
957
|
-
helpMessage:
|
|
957
|
+
helpMessage: w.value,
|
|
958
958
|
disabled: a(r),
|
|
959
959
|
required: h.value
|
|
960
960
|
}, null, 8, ["col", "modelValue", "label", "prop", "placeholder", "mode", "showSearch", "isView", "options", "optionsValueKey", "optionsLabelKey", "helpMessage", "disabled", "required"])) : B("v-if", !0);
|
|
961
961
|
}
|
|
962
|
-
}),
|
|
962
|
+
}), ft = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
963
963
|
__proto__: null,
|
|
964
|
-
default:
|
|
965
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
966
|
-
var
|
|
967
|
-
const i =
|
|
964
|
+
default: Ua
|
|
965
|
+
}, Symbol.toStringTag, { value: "Module" })), xa = (n, e, t) => {
|
|
966
|
+
var _e, we, ue, pe, me;
|
|
967
|
+
const i = et().id, d = p(!1), o = (me = (pe = (ue = (we = (_e = n == null ? void 0 : n.options) == null ? void 0 : _e.selector) == null ? void 0 : we.type) == null ? void 0 : ue.alias) == null ? void 0 : pe.replace("eip-", "")) == null ? void 0 : me.replace("-selector", ""), g = p([]), k = p(""), s = p(""), l = p(""), v = p({
|
|
968
968
|
spaceId: "",
|
|
969
969
|
spacePath: "",
|
|
970
970
|
spacePathName: ""
|
|
971
|
-
}),
|
|
972
|
-
user:
|
|
973
|
-
org:
|
|
974
|
-
role:
|
|
975
|
-
job:
|
|
976
|
-
post:
|
|
977
|
-
supplier:
|
|
978
|
-
source:
|
|
979
|
-
device:
|
|
980
|
-
}, r = {
|
|
981
|
-
user: q("添加用户").value,
|
|
982
|
-
org: q("组织选择器").value,
|
|
983
|
-
role: q("角色选择器").value,
|
|
984
|
-
job: q("职务选择器").value,
|
|
985
|
-
post: q("岗位选择器").value,
|
|
986
|
-
supplier: q("选择供应商").value,
|
|
987
|
-
source: q("选择源单").value,
|
|
988
|
-
device: q("选择报修设备").value
|
|
971
|
+
}), r = {
|
|
972
|
+
user: O("搜索姓名/账号/手机号").value,
|
|
973
|
+
org: O("搜索组织名称/组织编码").value,
|
|
974
|
+
role: O("搜索角色名称").value,
|
|
975
|
+
job: O("职务名称/职务编码").value,
|
|
976
|
+
post: O("搜索岗位名称/岗位编码").value,
|
|
977
|
+
supplier: O("搜索供应商编码/名称").value,
|
|
978
|
+
source: O("搜索单据编码/申请人").value,
|
|
979
|
+
device: O("搜索设备编码/名称").value
|
|
989
980
|
}, h = {
|
|
981
|
+
user: O("添加用户").value,
|
|
982
|
+
org: O("组织选择器").value,
|
|
983
|
+
role: O("角色选择器").value,
|
|
984
|
+
job: O("职务选择器").value,
|
|
985
|
+
post: O("岗位选择器").value,
|
|
986
|
+
supplier: O("选择供应商").value,
|
|
987
|
+
source: O("选择源单").value,
|
|
988
|
+
device: O("选择报修设备").value
|
|
989
|
+
}, c = {
|
|
990
990
|
user: "id",
|
|
991
991
|
org: "id",
|
|
992
992
|
role: "id",
|
|
@@ -995,30 +995,30 @@ const Fa = (n, e) => {
|
|
|
995
995
|
supplier: "id",
|
|
996
996
|
source: "code",
|
|
997
997
|
device: "deviceId"
|
|
998
|
-
}, c = {
|
|
999
|
-
1: q("正常").value,
|
|
1000
|
-
2: q("锁定").value,
|
|
1001
|
-
3: q("禁用").value
|
|
1002
998
|
}, _ = {
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
999
|
+
1: O("正常").value,
|
|
1000
|
+
2: O("锁定").value,
|
|
1001
|
+
3: O("禁用").value
|
|
1002
|
+
}, b = {
|
|
1003
|
+
0: O("普通").value,
|
|
1004
|
+
1: O("管理员").value
|
|
1005
|
+
}, w = {
|
|
1006
|
+
0: O("无效").value,
|
|
1007
|
+
1: O("有效").value
|
|
1008
|
+
}, m = {
|
|
1009
|
+
user: sa,
|
|
1010
|
+
org: Me,
|
|
1011
|
+
role: la,
|
|
1012
|
+
job: Me,
|
|
1013
|
+
post: Me,
|
|
1014
|
+
supplier: ca,
|
|
1015
|
+
device: fa
|
|
1016
|
+
}, N = h[o], y = p({}), u = p([]), R = () => {
|
|
1017
|
+
var S, C;
|
|
1018
|
+
o === "supplier" && (y.value = {
|
|
1019
1019
|
left: !1,
|
|
1020
1020
|
content: {
|
|
1021
|
-
api:
|
|
1021
|
+
api: da,
|
|
1022
1022
|
params: {
|
|
1023
1023
|
flowKey: e,
|
|
1024
1024
|
clientType: "pc",
|
|
@@ -1043,11 +1043,11 @@ const Fa = (n, e) => {
|
|
|
1043
1043
|
}
|
|
1044
1044
|
},
|
|
1045
1045
|
right: !1
|
|
1046
|
-
},
|
|
1046
|
+
}, Z(), I()), o === "device" ? (y.value = {
|
|
1047
1047
|
left: !1,
|
|
1048
1048
|
content: {
|
|
1049
1049
|
multiple: !1,
|
|
1050
|
-
api:
|
|
1050
|
+
api: va,
|
|
1051
1051
|
params: {
|
|
1052
1052
|
deviceNameOrCode: "",
|
|
1053
1053
|
groupId: null,
|
|
@@ -1062,10 +1062,10 @@ const Fa = (n, e) => {
|
|
|
1062
1062
|
}
|
|
1063
1063
|
},
|
|
1064
1064
|
right: !1
|
|
1065
|
-
},
|
|
1065
|
+
}, q(), se()) : o === "source" ? (y.value = {
|
|
1066
1066
|
left: !1,
|
|
1067
1067
|
content: {
|
|
1068
|
-
api:
|
|
1068
|
+
api: ma,
|
|
1069
1069
|
params: {
|
|
1070
1070
|
key: "",
|
|
1071
1071
|
code: t
|
|
@@ -1080,10 +1080,10 @@ const Fa = (n, e) => {
|
|
|
1080
1080
|
}
|
|
1081
1081
|
},
|
|
1082
1082
|
right: !1
|
|
1083
|
-
},
|
|
1083
|
+
}, F()) : o === "org" ? (y.value = {
|
|
1084
1084
|
left: !1,
|
|
1085
1085
|
content: {
|
|
1086
|
-
api:
|
|
1086
|
+
api: ia,
|
|
1087
1087
|
params: {
|
|
1088
1088
|
search: ""
|
|
1089
1089
|
},
|
|
@@ -1091,16 +1091,16 @@ const Fa = (n, e) => {
|
|
|
1091
1091
|
data: []
|
|
1092
1092
|
}
|
|
1093
1093
|
}
|
|
1094
|
-
},
|
|
1094
|
+
}, F()) : y.value = {
|
|
1095
1095
|
left: {
|
|
1096
|
-
api:
|
|
1096
|
+
api: aa,
|
|
1097
1097
|
params: {
|
|
1098
1098
|
projectId: i,
|
|
1099
1099
|
parentId: i
|
|
1100
1100
|
},
|
|
1101
1101
|
props: {
|
|
1102
1102
|
inputOptions: {
|
|
1103
|
-
placeholder:
|
|
1103
|
+
placeholder: O("搜索组织名称").value
|
|
1104
1104
|
}
|
|
1105
1105
|
}
|
|
1106
1106
|
},
|
|
@@ -1109,8 +1109,8 @@ const Fa = (n, e) => {
|
|
|
1109
1109
|
data: []
|
|
1110
1110
|
}
|
|
1111
1111
|
}
|
|
1112
|
-
}, o === "user" && (
|
|
1113
|
-
api:
|
|
1112
|
+
}, o === "user" && (y.value.content = {
|
|
1113
|
+
api: na,
|
|
1114
1114
|
searchKey: "groupId",
|
|
1115
1115
|
params: {
|
|
1116
1116
|
status: 1,
|
|
@@ -1119,8 +1119,8 @@ const Fa = (n, e) => {
|
|
|
1119
1119
|
selectListProps: {
|
|
1120
1120
|
data: []
|
|
1121
1121
|
}
|
|
1122
|
-
},
|
|
1123
|
-
api:
|
|
1122
|
+
}, F()), o === "role" && (y.value.content = {
|
|
1123
|
+
api: oa,
|
|
1124
1124
|
searchKey: "orgId",
|
|
1125
1125
|
params: {
|
|
1126
1126
|
status: 1
|
|
@@ -1128,8 +1128,8 @@ const Fa = (n, e) => {
|
|
|
1128
1128
|
selectListProps: {
|
|
1129
1129
|
data: []
|
|
1130
1130
|
}
|
|
1131
|
-
},
|
|
1132
|
-
api:
|
|
1131
|
+
}, F()), o === "job" && (y.value.content = {
|
|
1132
|
+
api: ua,
|
|
1133
1133
|
searchKey: "groupId",
|
|
1134
1134
|
props: {
|
|
1135
1135
|
rowKey: "positionId"
|
|
@@ -1137,8 +1137,8 @@ const Fa = (n, e) => {
|
|
|
1137
1137
|
selectListProps: {
|
|
1138
1138
|
data: []
|
|
1139
1139
|
}
|
|
1140
|
-
},
|
|
1141
|
-
api:
|
|
1140
|
+
}, F()), o === "post" && (y.value.content = {
|
|
1141
|
+
api: ra,
|
|
1142
1142
|
searchKey: "groupId",
|
|
1143
1143
|
props: {
|
|
1144
1144
|
rowKey: "stationId"
|
|
@@ -1146,14 +1146,14 @@ const Fa = (n, e) => {
|
|
|
1146
1146
|
selectListProps: {
|
|
1147
1147
|
data: []
|
|
1148
1148
|
}
|
|
1149
|
-
},
|
|
1150
|
-
},
|
|
1151
|
-
|
|
1149
|
+
}, F()), y.value.content.multiple = o === "supplier" || o === "source" || o === "device" ? !1 : !((C = (S = n == null ? void 0 : n.options) == null ? void 0 : S.selector) != null && C.isSingle);
|
|
1150
|
+
}, F = async () => {
|
|
1151
|
+
u.value = [
|
|
1152
1152
|
{
|
|
1153
1153
|
type: "searchInput",
|
|
1154
1154
|
key: "inputtKey",
|
|
1155
1155
|
label: "",
|
|
1156
|
-
placeholder:
|
|
1156
|
+
placeholder: r[o],
|
|
1157
1157
|
value: "",
|
|
1158
1158
|
clearable: !0,
|
|
1159
1159
|
isIconLeft: !0,
|
|
@@ -1161,13 +1161,13 @@ const Fa = (n, e) => {
|
|
|
1161
1161
|
size: "small"
|
|
1162
1162
|
}
|
|
1163
1163
|
];
|
|
1164
|
-
},
|
|
1165
|
-
|
|
1164
|
+
}, I = async () => {
|
|
1165
|
+
u.value = [
|
|
1166
1166
|
{
|
|
1167
1167
|
type: "searchInput",
|
|
1168
1168
|
key: "inputtKey",
|
|
1169
1169
|
label: "",
|
|
1170
|
-
placeholder:
|
|
1170
|
+
placeholder: r[o],
|
|
1171
1171
|
value: "",
|
|
1172
1172
|
clearable: !0,
|
|
1173
1173
|
isIconLeft: !0,
|
|
@@ -1176,7 +1176,7 @@ const Fa = (n, e) => {
|
|
|
1176
1176
|
},
|
|
1177
1177
|
{
|
|
1178
1178
|
type: "select",
|
|
1179
|
-
label:
|
|
1179
|
+
label: O("供应商类型").value,
|
|
1180
1180
|
layout: "out",
|
|
1181
1181
|
width: "200px",
|
|
1182
1182
|
closable: !0,
|
|
@@ -1188,22 +1188,22 @@ const Fa = (n, e) => {
|
|
|
1188
1188
|
allowClear: !0
|
|
1189
1189
|
}
|
|
1190
1190
|
];
|
|
1191
|
-
},
|
|
1192
|
-
|
|
1193
|
-
},
|
|
1194
|
-
let
|
|
1195
|
-
|
|
1196
|
-
const [f,
|
|
1197
|
-
return f ? {} : (
|
|
1198
|
-
|
|
1199
|
-
}),
|
|
1200
|
-
},
|
|
1201
|
-
|
|
1191
|
+
}, M = (S) => {
|
|
1192
|
+
S.id == "-1" ? S.disabled = !0 : S.disabled = !1;
|
|
1193
|
+
}, Q = async (S) => {
|
|
1194
|
+
let C = { spaceId: "" };
|
|
1195
|
+
S != null && S.id && (C.spaceId = S.id);
|
|
1196
|
+
const [f, T] = await ot(C).run();
|
|
1197
|
+
return f ? {} : (T.data.forEach((P) => {
|
|
1198
|
+
M(P);
|
|
1199
|
+
}), T);
|
|
1200
|
+
}, q = async () => {
|
|
1201
|
+
u.value = [
|
|
1202
1202
|
{
|
|
1203
1203
|
type: "searchInput",
|
|
1204
1204
|
key: "inputtKey",
|
|
1205
1205
|
label: "",
|
|
1206
|
-
placeholder:
|
|
1206
|
+
placeholder: r[o],
|
|
1207
1207
|
value: "",
|
|
1208
1208
|
clearable: !0,
|
|
1209
1209
|
isIconLeft: !0,
|
|
@@ -1213,59 +1213,59 @@ const Fa = (n, e) => {
|
|
|
1213
1213
|
{
|
|
1214
1214
|
type: "treeSelect",
|
|
1215
1215
|
key: "groupId",
|
|
1216
|
-
label:
|
|
1216
|
+
label: O("设备分类").value,
|
|
1217
1217
|
size: "mini",
|
|
1218
1218
|
value: "",
|
|
1219
1219
|
nodeKey: "id",
|
|
1220
1220
|
options: [],
|
|
1221
|
-
placeholder:
|
|
1221
|
+
placeholder: O("请选择").value,
|
|
1222
1222
|
selectAttrs: { allowClear: !0 }
|
|
1223
1223
|
},
|
|
1224
1224
|
{
|
|
1225
1225
|
key: "spaceId",
|
|
1226
|
-
label:
|
|
1226
|
+
label: O("安装位置").value,
|
|
1227
1227
|
type: "treeSelect",
|
|
1228
1228
|
defaultExpandedKeys: [],
|
|
1229
1229
|
path: "",
|
|
1230
1230
|
value: "",
|
|
1231
1231
|
checkedNodes: [],
|
|
1232
1232
|
selectAttrs: { allowClear: !0 },
|
|
1233
|
-
treeProps: { isLeaf: "leaf", label: "name", disabled: (
|
|
1234
|
-
load:
|
|
1233
|
+
treeProps: { isLeaf: "leaf", label: "name", disabled: (S) => S.disabled },
|
|
1234
|
+
load: Q,
|
|
1235
1235
|
options: []
|
|
1236
1236
|
}
|
|
1237
1237
|
];
|
|
1238
|
-
},
|
|
1239
|
-
const
|
|
1238
|
+
}, Z = async () => {
|
|
1239
|
+
const S = {
|
|
1240
1240
|
name: "",
|
|
1241
1241
|
published: 1
|
|
1242
|
-
}, [
|
|
1243
|
-
|
|
1244
|
-
},
|
|
1245
|
-
var
|
|
1246
|
-
|
|
1247
|
-
},
|
|
1248
|
-
const [
|
|
1249
|
-
if (
|
|
1250
|
-
const f = [
|
|
1251
|
-
f.forEach(
|
|
1252
|
-
},
|
|
1253
|
-
var
|
|
1254
|
-
|
|
1255
|
-
let
|
|
1256
|
-
|
|
1242
|
+
}, [C, f] = await ga(S).run();
|
|
1243
|
+
C || (u.value[1].options = f);
|
|
1244
|
+
}, te = (S) => {
|
|
1245
|
+
var C, f;
|
|
1246
|
+
S.leaf = !((C = S.children) != null && C.length), S.parentId === "0" && (S.id = "-1"), (f = S.children) == null || f.forEach(te);
|
|
1247
|
+
}, se = async () => {
|
|
1248
|
+
const [S, C] = await ha().run();
|
|
1249
|
+
if (S) return;
|
|
1250
|
+
const f = [C];
|
|
1251
|
+
f.forEach(te), u.value[1].options = f, u.value[1].value = "-1";
|
|
1252
|
+
}, U = () => {
|
|
1253
|
+
var C;
|
|
1254
|
+
k.value = "", d.value = !0;
|
|
1255
|
+
let S = c[o];
|
|
1256
|
+
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
1257
|
};
|
|
1258
|
-
|
|
1259
|
-
const
|
|
1260
|
-
var
|
|
1261
|
-
if (
|
|
1262
|
-
...(
|
|
1258
|
+
R();
|
|
1259
|
+
const ce = async () => {
|
|
1260
|
+
var S, C, f, T, P, j, A, ve, ie, re, oe, Ce, Oe, Be, Ae, Qe, Ue, xe, Ye, Je;
|
|
1261
|
+
if (y.value.content.params = {
|
|
1262
|
+
...(C = (S = y == null ? void 0 : y.value) == null ? void 0 : S.content) == null ? void 0 : C.params,
|
|
1263
1263
|
pageIndex: 1
|
|
1264
|
-
}, (o === "user" || o === "org" || o === "post" || o === "role" || o === "job") && (
|
|
1265
|
-
const
|
|
1266
|
-
|
|
1264
|
+
}, (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
|
+
const Le = (P = u == null ? void 0 : u.value[1]) == null ? void 0 : P.value;
|
|
1266
|
+
y.value.content.params.deviceNameOrCode = ((j = u == null ? void 0 : u.value[0]) == null ? void 0 : j.value) || "", y.value.content.params.groupId = !Le || Le === "-1" ? null : Le, y.value.content.params.spaceId = ((A = u == null ? void 0 : u.value[2]) == null ? void 0 : A.value) || "";
|
|
1267
1267
|
}
|
|
1268
|
-
o === "supplier" && (
|
|
1268
|
+
o === "supplier" && (y.value.content.params.querys = [
|
|
1269
1269
|
{
|
|
1270
1270
|
property: "orgId",
|
|
1271
1271
|
value: i,
|
|
@@ -1273,94 +1273,95 @@ const Fa = (n, e) => {
|
|
|
1273
1273
|
relation: "AND",
|
|
1274
1274
|
operation: "EQUAL"
|
|
1275
1275
|
}
|
|
1276
|
-
], (
|
|
1276
|
+
], (ve = u == null ? void 0 : u.value[0]) != null && ve.value && (y.value.content.params.querys = (Be = (oe = (re = (ie = y == null ? void 0 : y.value) == null ? void 0 : ie.content) == null ? void 0 : re.params) == null ? void 0 : oe.querys) == null ? void 0 : Be.concat([
|
|
1277
1277
|
{
|
|
1278
1278
|
property: "name",
|
|
1279
|
-
value: (
|
|
1279
|
+
value: (Ce = u == null ? void 0 : u.value[0]) == null ? void 0 : Ce.value,
|
|
1280
1280
|
group: "merge",
|
|
1281
1281
|
relation: "OR",
|
|
1282
1282
|
operation: "LIKE"
|
|
1283
1283
|
},
|
|
1284
1284
|
{
|
|
1285
1285
|
property: "code",
|
|
1286
|
-
value: (Oe =
|
|
1286
|
+
value: (Oe = u == null ? void 0 : u.value[0]) == null ? void 0 : Oe.value,
|
|
1287
1287
|
group: "merge",
|
|
1288
1288
|
relation: "OR",
|
|
1289
1289
|
operation: "LIKE"
|
|
1290
1290
|
}
|
|
1291
|
-
])), (
|
|
1291
|
+
])), (Ae = u == null ? void 0 : u.value[1]) != null && Ae.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
1292
|
{
|
|
1293
1293
|
property: "classificationId",
|
|
1294
|
-
value: (
|
|
1294
|
+
value: (Ye = u == null ? void 0 : u.value[1]) == null ? void 0 : Ye.value,
|
|
1295
1295
|
group: "quick",
|
|
1296
1296
|
relation: "AND",
|
|
1297
1297
|
operation: "EQUAL"
|
|
1298
1298
|
}
|
|
1299
1299
|
])));
|
|
1300
1300
|
};
|
|
1301
|
-
|
|
1301
|
+
z(
|
|
1302
1302
|
() => d == null ? void 0 : d.value,
|
|
1303
|
-
(
|
|
1304
|
-
|
|
1303
|
+
(S) => {
|
|
1304
|
+
S || ge();
|
|
1305
1305
|
}
|
|
1306
1306
|
);
|
|
1307
|
-
const
|
|
1308
|
-
o === "supplier" ? (
|
|
1307
|
+
const ge = async () => {
|
|
1308
|
+
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
1309
|
};
|
|
1310
1310
|
return {
|
|
1311
1311
|
dialogVisible: d,
|
|
1312
|
-
title:
|
|
1313
|
-
searchName:
|
|
1312
|
+
title: N,
|
|
1313
|
+
searchName: k,
|
|
1314
1314
|
selectorType: o,
|
|
1315
1315
|
selectOptions: g,
|
|
1316
|
-
tableOptions:
|
|
1317
|
-
userStatusMap:
|
|
1318
|
-
roleTypeMap:
|
|
1319
|
-
roleStatusMap:
|
|
1320
|
-
openDialog:
|
|
1321
|
-
confirm: async (
|
|
1322
|
-
var f,
|
|
1323
|
-
let
|
|
1324
|
-
g.value =
|
|
1325
|
-
spaceId: (
|
|
1316
|
+
tableOptions: y,
|
|
1317
|
+
userStatusMap: _,
|
|
1318
|
+
roleTypeMap: b,
|
|
1319
|
+
roleStatusMap: w,
|
|
1320
|
+
openDialog: U,
|
|
1321
|
+
confirm: async (S) => {
|
|
1322
|
+
var f, T, P, j;
|
|
1323
|
+
let C = c[o];
|
|
1324
|
+
g.value = S == null ? void 0 : S.map((A) => ({ label: (A == null ? void 0 : A.deviceName) || (A == null ? void 0 : A.name) || (A == null ? void 0 : A.code), value: A[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
|
+
spaceId: (P = S[0]) == null ? void 0 : P.spaceId,
|
|
1326
1326
|
spacePath: "",
|
|
1327
|
-
spacePathName: ((
|
|
1327
|
+
spacePathName: ((j = S[0]) == null ? void 0 : j.spaceSite) || ""
|
|
1328
1328
|
});
|
|
1329
1329
|
},
|
|
1330
|
-
getDetail: async (
|
|
1331
|
-
if (!
|
|
1332
|
-
const
|
|
1330
|
+
getDetail: async (S) => {
|
|
1331
|
+
if (!S) return;
|
|
1332
|
+
const C = m[o];
|
|
1333
1333
|
let f = {};
|
|
1334
|
-
const
|
|
1334
|
+
const T = S == null ? void 0 : S.split(",");
|
|
1335
1335
|
if (o === "source") {
|
|
1336
1336
|
g.value = [
|
|
1337
1337
|
{
|
|
1338
|
-
label:
|
|
1339
|
-
value:
|
|
1338
|
+
label: S,
|
|
1339
|
+
value: S
|
|
1340
1340
|
}
|
|
1341
1341
|
];
|
|
1342
1342
|
return;
|
|
1343
|
-
} else o === "user" ? f.userIds =
|
|
1344
|
-
const [P,
|
|
1343
|
+
} else o === "user" ? f.userIds = T : o === "role" ? f.ids = T : o === "supplier" ? f.id = T : o === "device" ? f.deviceId = S : f = T;
|
|
1344
|
+
const [P, j] = await C(f).run();
|
|
1345
1345
|
P || (o === "supplier" ? g.value = [
|
|
1346
1346
|
{
|
|
1347
|
-
label: (
|
|
1348
|
-
value:
|
|
1347
|
+
label: (j == null ? void 0 : j.name) || (j == null ? void 0 : j.code),
|
|
1348
|
+
value: j == null ? void 0 : j.id
|
|
1349
1349
|
}
|
|
1350
|
-
] : o === "device" ? g.value = [
|
|
1350
|
+
] : o === "device" ? (l.value = (j == null ? void 0 : j.id) || "", g.value = [
|
|
1351
1351
|
{
|
|
1352
|
-
label:
|
|
1353
|
-
value:
|
|
1352
|
+
label: j == null ? void 0 : j.deviceName,
|
|
1353
|
+
value: j == null ? void 0 : j.deviceId
|
|
1354
1354
|
}
|
|
1355
|
-
] : g.value =
|
|
1355
|
+
]) : g.value = j == null ? void 0 : j.map((A) => ({ label: (A == null ? void 0 : A.name) || (A == null ? void 0 : A.code), value: A == null ? void 0 : A.id })));
|
|
1356
1356
|
},
|
|
1357
|
-
searchData:
|
|
1358
|
-
searchOptions:
|
|
1357
|
+
searchData: ce,
|
|
1358
|
+
searchOptions: u,
|
|
1359
1359
|
linkmanPhone: s,
|
|
1360
|
-
|
|
1360
|
+
equipmentArchivesId: l,
|
|
1361
|
+
deviceSpaceInfo: v
|
|
1361
1362
|
};
|
|
1362
|
-
},
|
|
1363
|
-
const e =
|
|
1363
|
+
}, Ya = (n) => {
|
|
1364
|
+
const e = p(""), t = p(""), i = p([]), d = p("");
|
|
1364
1365
|
return {
|
|
1365
1366
|
spacePath: e,
|
|
1366
1367
|
spaceName: t,
|
|
@@ -1373,19 +1374,19 @@ const Fa = (n, e) => {
|
|
|
1373
1374
|
let v = {
|
|
1374
1375
|
pageSize: 1e4,
|
|
1375
1376
|
pageIndex: 1,
|
|
1376
|
-
projectId:
|
|
1377
|
+
projectId: et().id,
|
|
1377
1378
|
//项目id
|
|
1378
1379
|
spaceId: ""
|
|
1379
1380
|
// orgId:getProjectInfo().id
|
|
1380
1381
|
};
|
|
1381
1382
|
v.spaceId = l != null && l.id ? l.id : "";
|
|
1382
|
-
let r =
|
|
1383
|
+
let r = ot;
|
|
1383
1384
|
const [h, c] = await r(v).run();
|
|
1384
1385
|
return h ? {} : c;
|
|
1385
1386
|
},
|
|
1386
1387
|
filterSpaceTree: async (l) => {
|
|
1387
1388
|
if (!l) return [];
|
|
1388
|
-
let v =
|
|
1389
|
+
let v = pa;
|
|
1389
1390
|
const r = {
|
|
1390
1391
|
name: l
|
|
1391
1392
|
}, [h, c] = await v(r).run();
|
|
@@ -1395,15 +1396,15 @@ const Fa = (n, e) => {
|
|
|
1395
1396
|
},
|
|
1396
1397
|
getSpaceDetail: async (l) => {
|
|
1397
1398
|
if (!l) return;
|
|
1398
|
-
const [v, r] = await
|
|
1399
|
+
const [v, r] = await lt().run({ spaceId: l });
|
|
1399
1400
|
if (!v)
|
|
1400
1401
|
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;
|
|
1401
1402
|
}
|
|
1402
1403
|
};
|
|
1403
|
-
},
|
|
1404
|
+
}, Ja = { class: "table-search-process-top" }, Ha = {
|
|
1404
1405
|
name: "selector"
|
|
1405
|
-
},
|
|
1406
|
-
...
|
|
1406
|
+
}, Wa = /* @__PURE__ */ x({
|
|
1407
|
+
...Ha,
|
|
1407
1408
|
props: {
|
|
1408
1409
|
setting: { default: () => ({
|
|
1409
1410
|
icon: "",
|
|
@@ -1418,153 +1419,156 @@ const Fa = (n, e) => {
|
|
|
1418
1419
|
store: {}
|
|
1419
1420
|
},
|
|
1420
1421
|
setup(n) {
|
|
1421
|
-
var
|
|
1422
|
-
const e = n, t =
|
|
1423
|
-
var
|
|
1424
|
-
return e.isView ? !(g(e.setting.name).split(",").length > 1) : ((
|
|
1425
|
-
}), { data: i, showData: d, setData: o, getData: g, flowKey:
|
|
1426
|
-
!d.value[e.setting.name] && d.value[e.setting.name] != !1 && (d.value[e.setting.name] = !0),
|
|
1422
|
+
var me, S;
|
|
1423
|
+
const e = n, t = Vt(() => {
|
|
1424
|
+
var C, f, T;
|
|
1425
|
+
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
|
+
}), { data: i, showData: d, setData: o, getData: g, flowKey: k, setFormRule: s, deleteRule: l, disabledData: v } = e.store || {}, r = p(""), h = p(!0);
|
|
1427
|
+
!d.value[e.setting.name] && d.value[e.setting.name] != !1 && (d.value[e.setting.name] = !0), z(
|
|
1427
1428
|
() => d.value,
|
|
1428
1429
|
() => {
|
|
1429
|
-
h.value = d.value[e.setting.name], h.value || (r.value = "",
|
|
1430
|
+
h.value = d.value[e.setting.name], h.value || (r.value = "", N.value = [], l(e.setting.name)), h.value && e.setting.options.validateList.length && s(e.setting.name, e.setting.options.validateList);
|
|
1430
1431
|
},
|
|
1431
1432
|
{ deep: !0, immediate: !0 }
|
|
1432
1433
|
);
|
|
1433
1434
|
const c = v.value[e.setting.name] || !1, {
|
|
1434
1435
|
dialogVisible: _,
|
|
1435
|
-
title:
|
|
1436
|
-
tableOptions:
|
|
1436
|
+
title: b,
|
|
1437
|
+
tableOptions: w,
|
|
1437
1438
|
selectorType: m,
|
|
1438
|
-
selectOptions:
|
|
1439
|
-
userStatusMap:
|
|
1440
|
-
roleTypeMap:
|
|
1441
|
-
roleStatusMap:
|
|
1442
|
-
openDialog:
|
|
1443
|
-
confirm:
|
|
1439
|
+
selectOptions: N,
|
|
1440
|
+
userStatusMap: y,
|
|
1441
|
+
roleTypeMap: u,
|
|
1442
|
+
roleStatusMap: R,
|
|
1443
|
+
openDialog: F,
|
|
1444
|
+
confirm: I,
|
|
1444
1445
|
getDetail: M,
|
|
1445
|
-
searchData:
|
|
1446
|
-
searchOptions:
|
|
1447
|
-
linkmanPhone:
|
|
1448
|
-
|
|
1449
|
-
|
|
1446
|
+
searchData: Q,
|
|
1447
|
+
searchOptions: q,
|
|
1448
|
+
linkmanPhone: Z,
|
|
1449
|
+
equipmentArchivesId: te,
|
|
1450
|
+
deviceSpaceInfo: se
|
|
1451
|
+
} = xa(e.setting, k, r), { spacePath: U, spaceName: ce, searchSpace: ge, changeSpace: qe, spaceLoad: Ee, filterSpaceTree: _e, getSpaceDetail: we } = Ya(
|
|
1450
1452
|
t.value
|
|
1451
|
-
), ue =
|
|
1452
|
-
|
|
1453
|
-
ue.value =
|
|
1453
|
+
), ue = p(!1);
|
|
1454
|
+
X(e.setting.options.validateList).then((C) => {
|
|
1455
|
+
ue.value = C;
|
|
1454
1456
|
});
|
|
1455
|
-
const pe =
|
|
1456
|
-
if (e.setting.options.tip && (pe.value =
|
|
1457
|
-
t.value ? (
|
|
1458
|
-
let
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
}),
|
|
1462
|
-
|
|
1463
|
-
}),
|
|
1457
|
+
const pe = p();
|
|
1458
|
+
if (e.setting.options.tip && (pe.value = W(e.setting.options.tip)), e.setting.options.validateList.length && s(e.setting.name, e.setting.options.validateList), m == "position") {
|
|
1459
|
+
t.value ? (U.value = g(e.setting.name) ?? "", r.value = g(e.setting.name) ? g(e.setting.name).split("/").pop() : r.value) : (U.value = [], r.value = g(e.setting.name) ? (S = (me = g(e.setting.name)) == null ? void 0 : me.split(",")) == null ? void 0 : S.map((f) => (U.value.push(f), f.split("/").pop())) : []), r.value || o(e.setting.name, null);
|
|
1460
|
+
let C = !1;
|
|
1461
|
+
z(r, (f) => {
|
|
1462
|
+
C || (t.value ? o(e.setting.name, f) : o(e.setting.name, (f == null ? void 0 : f.join(",")) || ""));
|
|
1463
|
+
}), z(ce, (f) => {
|
|
1464
|
+
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
|
+
}), z(
|
|
1464
1466
|
() => {
|
|
1465
1467
|
var f;
|
|
1466
1468
|
return (f = i == null ? void 0 : i.value) == null ? void 0 : f[e.setting.name];
|
|
1467
1469
|
},
|
|
1468
|
-
async (f,
|
|
1469
|
-
var P,
|
|
1470
|
-
if (f !==
|
|
1471
|
-
|
|
1470
|
+
async (f, T) => {
|
|
1471
|
+
var P, j, A, ve;
|
|
1472
|
+
if (f !== T) {
|
|
1473
|
+
C = !0;
|
|
1472
1474
|
try {
|
|
1473
1475
|
if (!f) {
|
|
1474
|
-
r.value = t.value ? "" : [],
|
|
1476
|
+
r.value = t.value ? "" : [], U.value = t.value ? "" : [], ce.value = t.value ? "" : [];
|
|
1475
1477
|
return;
|
|
1476
1478
|
}
|
|
1477
1479
|
if (!t.value) {
|
|
1478
1480
|
const oe = String(f).split(",");
|
|
1479
|
-
|
|
1481
|
+
U.value = oe, await he(), r.value = oe.map((Ce) => Ce.split("/").pop());
|
|
1480
1482
|
return;
|
|
1481
1483
|
}
|
|
1482
1484
|
let ie = String(f), re = ie.split("/").pop();
|
|
1483
1485
|
if (!ie.includes("/"))
|
|
1484
|
-
await we(re), ie = String(
|
|
1486
|
+
await we(re), ie = String(U.value || re), re = ie.split("/").pop();
|
|
1485
1487
|
else {
|
|
1486
|
-
|
|
1487
|
-
const oe = (
|
|
1488
|
-
oe && ((
|
|
1488
|
+
U.value = ie;
|
|
1489
|
+
const oe = (A = (j = (P = e.setting.options) == null ? void 0 : P.selector) == null ? void 0 : j.type) == null ? void 0 : A.positionName;
|
|
1490
|
+
oe && ((ve = i == null ? void 0 : i.value) != null && ve[oe]) && (ce.value = i.value[oe]);
|
|
1489
1491
|
}
|
|
1490
|
-
await
|
|
1492
|
+
await he(), r.value === re && (r.value = "", await he()), r.value = re;
|
|
1491
1493
|
} finally {
|
|
1492
|
-
await
|
|
1494
|
+
await he(), C = !1;
|
|
1493
1495
|
}
|
|
1494
1496
|
}
|
|
1495
1497
|
}
|
|
1496
1498
|
);
|
|
1497
|
-
} else m == "supplier" ? (r.value = g(e.setting.name) ? [g(e.setting.name)] : [r.value], r.value && M(g(e.setting.name)),
|
|
1498
|
-
o(e.setting.name,
|
|
1499
|
-
}),
|
|
1500
|
-
var f,
|
|
1501
|
-
((
|
|
1502
|
-
})) : 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),
|
|
1499
|
+
} 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
|
+
o(e.setting.name, C == null ? void 0 : C.toString());
|
|
1501
|
+
}), z(Z, (C) => {
|
|
1502
|
+
var f, T, P, j;
|
|
1503
|
+
((j = (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 : j.supplierPhone) !== void 0 && o(e.setting.options.selector.type.supplierPhone, C);
|
|
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), se.value = {
|
|
1503
1505
|
spaceId: g("wzid") || "",
|
|
1504
1506
|
spacePath: "",
|
|
1505
1507
|
spacePathName: g("wzmc") || ""
|
|
1506
|
-
},
|
|
1507
|
-
r.value =
|
|
1508
|
-
}),
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1508
|
+
}, z(N, (C) => {
|
|
1509
|
+
r.value = C.map((f) => f.value).toString(), o(e.setting.name, r.value);
|
|
1510
|
+
}), z(te, (C) => {
|
|
1511
|
+
o("equipment_archives_id", C || null);
|
|
1512
|
+
}), z(
|
|
1513
|
+
se,
|
|
1514
|
+
async (C) => {
|
|
1515
|
+
if (!(C != null && C.spaceId)) return;
|
|
1516
|
+
const [f, T] = await lt().run({ spaceId: C.spaceId });
|
|
1513
1517
|
if (f) {
|
|
1514
|
-
o("wzid",
|
|
1518
|
+
o("wzid", C.spaceId), o("wzmc", C.spacePathName || "");
|
|
1515
1519
|
return;
|
|
1516
1520
|
}
|
|
1517
|
-
o("wzid", (
|
|
1521
|
+
o("wzid", (T == null ? void 0 : T.path) || C.spaceId), o("wzmc", (T == null ? void 0 : T.pathName) || C.spacePathName || "");
|
|
1518
1522
|
},
|
|
1519
1523
|
{
|
|
1520
1524
|
deep: !0
|
|
1521
1525
|
}
|
|
1522
|
-
)) : (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),
|
|
1523
|
-
r.value =
|
|
1526
|
+
)) : (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
|
+
r.value = C.map((f) => f.value).toString(), o(e.setting.name, r.value);
|
|
1524
1528
|
}));
|
|
1525
|
-
return (
|
|
1526
|
-
|
|
1529
|
+
return (C, f) => (V(), J(
|
|
1530
|
+
ee,
|
|
1527
1531
|
null,
|
|
1528
1532
|
[
|
|
1529
|
-
h.value && a(m) != "position" ? (
|
|
1533
|
+
h.value && a(m) != "position" ? (V(), E(a(Y), {
|
|
1530
1534
|
key: 0,
|
|
1531
1535
|
col: e.span,
|
|
1532
1536
|
modelValue: r.value,
|
|
1533
|
-
"onUpdate:modelValue": f[1] || (f[1] = (
|
|
1537
|
+
"onUpdate:modelValue": f[1] || (f[1] = (T) => r.value = T),
|
|
1534
1538
|
prop: e.setting.name,
|
|
1535
|
-
label:
|
|
1539
|
+
label: C.setting.desc,
|
|
1536
1540
|
type: "inputDialogSelect",
|
|
1537
|
-
options: a(
|
|
1541
|
+
options: a(N),
|
|
1538
1542
|
helpMessage: pe.value,
|
|
1539
1543
|
isView: e.isView,
|
|
1540
1544
|
disabled: a(c),
|
|
1541
1545
|
required: ue.value,
|
|
1542
|
-
placeholder:
|
|
1543
|
-
onOpenDialog: a(
|
|
1546
|
+
placeholder: C.setting.options.placeholder || a(D)("请选择"),
|
|
1547
|
+
onOpenDialog: a(F)
|
|
1544
1548
|
}, {
|
|
1545
|
-
default:
|
|
1546
|
-
var
|
|
1549
|
+
default: $(() => {
|
|
1550
|
+
var T;
|
|
1547
1551
|
return [
|
|
1548
|
-
L(a(
|
|
1552
|
+
L(a(qt), {
|
|
1549
1553
|
"append-to-body": "",
|
|
1550
1554
|
modelValue: a(_),
|
|
1551
|
-
"onUpdate:modelValue": f[0] || (f[0] = (P) =>
|
|
1552
|
-
options: a(
|
|
1553
|
-
onConfirm: a(
|
|
1554
|
-
title: a(
|
|
1555
|
+
"onUpdate:modelValue": f[0] || (f[0] = (P) => ze(_) ? _.value = P : null),
|
|
1556
|
+
options: a(w),
|
|
1557
|
+
onConfirm: a(I),
|
|
1558
|
+
title: a(b),
|
|
1555
1559
|
"body-style": { padding: "0px" }
|
|
1556
|
-
},
|
|
1560
|
+
}, Nt({
|
|
1557
1561
|
_: 2
|
|
1558
1562
|
/* DYNAMIC */
|
|
1559
1563
|
}, [
|
|
1560
|
-
((
|
|
1564
|
+
((T = a(q)) == null ? void 0 : T.length) > 0 ? {
|
|
1561
1565
|
name: "table-header-search",
|
|
1562
|
-
fn:
|
|
1563
|
-
|
|
1564
|
-
L(a(
|
|
1566
|
+
fn: $(() => [
|
|
1567
|
+
Ge("div", Ja, [
|
|
1568
|
+
L(a(Kt), {
|
|
1565
1569
|
labelLength: "6",
|
|
1566
|
-
options: a(
|
|
1567
|
-
onConfirm: a(
|
|
1570
|
+
options: a(q),
|
|
1571
|
+
onConfirm: a(Q),
|
|
1568
1572
|
"is-margin-right": !1,
|
|
1569
1573
|
isExpandAtFocus: a(m) !== "device"
|
|
1570
1574
|
}, null, 8, ["options", "onConfirm", "isExpandAtFocus"])
|
|
@@ -1574,28 +1578,28 @@ const Fa = (n, e) => {
|
|
|
1574
1578
|
} : void 0,
|
|
1575
1579
|
a(m) === "user" ? {
|
|
1576
1580
|
name: "table-column",
|
|
1577
|
-
fn:
|
|
1578
|
-
L(a(
|
|
1579
|
-
label: a(
|
|
1581
|
+
fn: $(() => [
|
|
1582
|
+
L(a(K), {
|
|
1583
|
+
label: a(D)("姓名"),
|
|
1580
1584
|
prop: "name"
|
|
1581
1585
|
}, null, 8, ["label"]),
|
|
1582
|
-
L(a(
|
|
1583
|
-
label: a(
|
|
1586
|
+
L(a(K), {
|
|
1587
|
+
label: a(D)("账号"),
|
|
1584
1588
|
prop: "userName"
|
|
1585
1589
|
}, null, 8, ["label"]),
|
|
1586
|
-
L(a(
|
|
1587
|
-
label: a(
|
|
1590
|
+
L(a(K), {
|
|
1591
|
+
label: a(D)("手机号"),
|
|
1588
1592
|
prop: "sensitivePhone"
|
|
1589
1593
|
}, {
|
|
1590
|
-
default:
|
|
1591
|
-
L(a(
|
|
1594
|
+
default: $(({ row: P }) => [
|
|
1595
|
+
L(a(Fe), {
|
|
1592
1596
|
placement: "top",
|
|
1593
1597
|
content: P.phone,
|
|
1594
1598
|
disabled: !P.phone
|
|
1595
1599
|
}, {
|
|
1596
|
-
default:
|
|
1597
|
-
|
|
1598
|
-
|
|
1600
|
+
default: $(() => [
|
|
1601
|
+
ae(
|
|
1602
|
+
ne(P.sensitivePhone || "-"),
|
|
1599
1603
|
1
|
|
1600
1604
|
/* TEXT */
|
|
1601
1605
|
)
|
|
@@ -1607,12 +1611,12 @@ const Fa = (n, e) => {
|
|
|
1607
1611
|
_: 1
|
|
1608
1612
|
/* STABLE */
|
|
1609
1613
|
}, 8, ["label"]),
|
|
1610
|
-
L(a(
|
|
1611
|
-
label: a(
|
|
1614
|
+
L(a(K), {
|
|
1615
|
+
label: a(D)("状态")
|
|
1612
1616
|
}, {
|
|
1613
|
-
default:
|
|
1614
|
-
|
|
1615
|
-
|
|
1617
|
+
default: $(({ row: P }) => [
|
|
1618
|
+
ae(
|
|
1619
|
+
ne(a(y)[P.status]),
|
|
1616
1620
|
1
|
|
1617
1621
|
/* TEXT */
|
|
1618
1622
|
)
|
|
@@ -1625,17 +1629,17 @@ const Fa = (n, e) => {
|
|
|
1625
1629
|
} : void 0,
|
|
1626
1630
|
a(m) === "org" ? {
|
|
1627
1631
|
name: "table-column",
|
|
1628
|
-
fn:
|
|
1629
|
-
L(a(
|
|
1630
|
-
label: a(
|
|
1632
|
+
fn: $(() => [
|
|
1633
|
+
L(a(K), {
|
|
1634
|
+
label: a(D)("组织名称"),
|
|
1631
1635
|
prop: "name"
|
|
1632
1636
|
}, null, 8, ["label"]),
|
|
1633
|
-
L(a(
|
|
1634
|
-
label: a(
|
|
1637
|
+
L(a(K), {
|
|
1638
|
+
label: a(D)("组织编码"),
|
|
1635
1639
|
prop: "code"
|
|
1636
1640
|
}, null, 8, ["label"]),
|
|
1637
|
-
L(a(
|
|
1638
|
-
label: a(
|
|
1641
|
+
L(a(K), {
|
|
1642
|
+
label: a(D)("组织类型"),
|
|
1639
1643
|
prop: "typeName"
|
|
1640
1644
|
}, null, 8, ["label"])
|
|
1641
1645
|
]),
|
|
@@ -1643,17 +1647,17 @@ const Fa = (n, e) => {
|
|
|
1643
1647
|
} : void 0,
|
|
1644
1648
|
a(m) === "role" ? {
|
|
1645
1649
|
name: "table-column",
|
|
1646
|
-
fn:
|
|
1647
|
-
L(a(
|
|
1648
|
-
label: a(
|
|
1650
|
+
fn: $(() => [
|
|
1651
|
+
L(a(K), {
|
|
1652
|
+
label: a(D)("角色名称"),
|
|
1649
1653
|
prop: "name"
|
|
1650
1654
|
}, null, 8, ["label"]),
|
|
1651
|
-
L(a(
|
|
1652
|
-
label: a(
|
|
1655
|
+
L(a(K), {
|
|
1656
|
+
label: a(D)("角色类型")
|
|
1653
1657
|
}, {
|
|
1654
|
-
default:
|
|
1655
|
-
|
|
1656
|
-
|
|
1658
|
+
default: $(({ row: P }) => [
|
|
1659
|
+
ae(
|
|
1660
|
+
ne(a(u)[P.type]),
|
|
1657
1661
|
1
|
|
1658
1662
|
/* TEXT */
|
|
1659
1663
|
)
|
|
@@ -1661,12 +1665,12 @@ const Fa = (n, e) => {
|
|
|
1661
1665
|
_: 1
|
|
1662
1666
|
/* STABLE */
|
|
1663
1667
|
}, 8, ["label"]),
|
|
1664
|
-
L(a(
|
|
1665
|
-
label: a(
|
|
1668
|
+
L(a(K), {
|
|
1669
|
+
label: a(D)("角色状态")
|
|
1666
1670
|
}, {
|
|
1667
|
-
default:
|
|
1668
|
-
|
|
1669
|
-
|
|
1671
|
+
default: $(({ row: P }) => [
|
|
1672
|
+
ae(
|
|
1673
|
+
ne(a(R)[P.status]),
|
|
1670
1674
|
1
|
|
1671
1675
|
/* TEXT */
|
|
1672
1676
|
)
|
|
@@ -1679,17 +1683,17 @@ const Fa = (n, e) => {
|
|
|
1679
1683
|
} : void 0,
|
|
1680
1684
|
a(m) === "job" ? {
|
|
1681
1685
|
name: "table-column",
|
|
1682
|
-
fn:
|
|
1683
|
-
L(a(
|
|
1684
|
-
label: a(
|
|
1686
|
+
fn: $(() => [
|
|
1687
|
+
L(a(K), {
|
|
1688
|
+
label: a(D)("职务名称"),
|
|
1685
1689
|
prop: "name"
|
|
1686
1690
|
}, null, 8, ["label"]),
|
|
1687
|
-
L(a(
|
|
1688
|
-
label: a(
|
|
1691
|
+
L(a(K), {
|
|
1692
|
+
label: a(D)("职务编码"),
|
|
1689
1693
|
prop: "code"
|
|
1690
1694
|
}, null, 8, ["label"]),
|
|
1691
|
-
L(a(
|
|
1692
|
-
label: a(
|
|
1695
|
+
L(a(K), {
|
|
1696
|
+
label: a(D)("所属组织路径"),
|
|
1693
1697
|
prop: "groupName"
|
|
1694
1698
|
}, null, 8, ["label"])
|
|
1695
1699
|
]),
|
|
@@ -1697,17 +1701,17 @@ const Fa = (n, e) => {
|
|
|
1697
1701
|
} : void 0,
|
|
1698
1702
|
a(m) === "post" ? {
|
|
1699
1703
|
name: "table-column",
|
|
1700
|
-
fn:
|
|
1701
|
-
L(a(
|
|
1702
|
-
label: a(
|
|
1704
|
+
fn: $(() => [
|
|
1705
|
+
L(a(K), {
|
|
1706
|
+
label: a(D)("岗位名称"),
|
|
1703
1707
|
prop: "name"
|
|
1704
1708
|
}, null, 8, ["label"]),
|
|
1705
|
-
L(a(
|
|
1706
|
-
label: a(
|
|
1709
|
+
L(a(K), {
|
|
1710
|
+
label: a(D)("岗位编码"),
|
|
1707
1711
|
prop: "code"
|
|
1708
1712
|
}, null, 8, ["label"]),
|
|
1709
|
-
L(a(
|
|
1710
|
-
label: a(
|
|
1713
|
+
L(a(K), {
|
|
1714
|
+
label: a(D)("所属组织路径"),
|
|
1711
1715
|
prop: "groupName"
|
|
1712
1716
|
}, null, 8, ["label"])
|
|
1713
1717
|
]),
|
|
@@ -1715,28 +1719,28 @@ const Fa = (n, e) => {
|
|
|
1715
1719
|
} : void 0,
|
|
1716
1720
|
a(m) === "supplier" ? {
|
|
1717
1721
|
name: "table-column",
|
|
1718
|
-
fn:
|
|
1719
|
-
L(a(
|
|
1722
|
+
fn: $(() => [
|
|
1723
|
+
L(a(K), {
|
|
1720
1724
|
type: "index",
|
|
1721
1725
|
width: "50"
|
|
1722
1726
|
}),
|
|
1723
|
-
L(a(
|
|
1724
|
-
label: a(
|
|
1727
|
+
L(a(K), {
|
|
1728
|
+
label: a(D)("供应商名称"),
|
|
1725
1729
|
prop: "name"
|
|
1726
1730
|
}, null, 8, ["label"]),
|
|
1727
|
-
L(a(
|
|
1728
|
-
label: a(
|
|
1731
|
+
L(a(K), {
|
|
1732
|
+
label: a(D)("供应商编码"),
|
|
1729
1733
|
prop: "code"
|
|
1730
1734
|
}, null, 8, ["label"]),
|
|
1731
|
-
L(a(
|
|
1732
|
-
label: a(
|
|
1735
|
+
L(a(K), {
|
|
1736
|
+
label: a(D)("供应商等级"),
|
|
1733
1737
|
prop: "supplierLevel"
|
|
1734
1738
|
}, null, 8, ["label"]),
|
|
1735
|
-
L(a(
|
|
1736
|
-
label: a(
|
|
1739
|
+
L(a(K), {
|
|
1740
|
+
label: a(D)("供应商分类"),
|
|
1737
1741
|
prop: "classificationName"
|
|
1738
1742
|
}, {
|
|
1739
|
-
default:
|
|
1743
|
+
default: $(() => [
|
|
1740
1744
|
B(` <template #default="{row}">\r
|
|
1741
1745
|
{{ getSupplierName(row) }}\r
|
|
1742
1746
|
</template> `)
|
|
@@ -1744,13 +1748,13 @@ const Fa = (n, e) => {
|
|
|
1744
1748
|
_: 1
|
|
1745
1749
|
/* STABLE */
|
|
1746
1750
|
}, 8, ["label"]),
|
|
1747
|
-
L(a(
|
|
1748
|
-
label: a(
|
|
1751
|
+
L(a(K), {
|
|
1752
|
+
label: a(D)("个人/公司"),
|
|
1749
1753
|
prop: "businessType"
|
|
1750
1754
|
}, {
|
|
1751
|
-
default:
|
|
1752
|
-
|
|
1753
|
-
|
|
1755
|
+
default: $(({ row: P }) => [
|
|
1756
|
+
ae(
|
|
1757
|
+
ne(P.businessType == "COMPANY" ? a(D)("公司") : a(D)("个人")),
|
|
1754
1758
|
1
|
|
1755
1759
|
/* TEXT */
|
|
1756
1760
|
)
|
|
@@ -1763,25 +1767,25 @@ const Fa = (n, e) => {
|
|
|
1763
1767
|
} : void 0,
|
|
1764
1768
|
a(m) === "device" ? {
|
|
1765
1769
|
name: "table-column",
|
|
1766
|
-
fn:
|
|
1767
|
-
L(a(
|
|
1770
|
+
fn: $(() => [
|
|
1771
|
+
L(a(K), {
|
|
1768
1772
|
type: "index",
|
|
1769
1773
|
width: "50"
|
|
1770
1774
|
}),
|
|
1771
|
-
L(a(
|
|
1772
|
-
label: a(
|
|
1775
|
+
L(a(K), {
|
|
1776
|
+
label: a(D)("设备名称"),
|
|
1773
1777
|
prop: "deviceName"
|
|
1774
1778
|
}, null, 8, ["label"]),
|
|
1775
|
-
L(a(
|
|
1776
|
-
label: a(
|
|
1779
|
+
L(a(K), {
|
|
1780
|
+
label: a(D)("设备编码"),
|
|
1777
1781
|
prop: "deviceId"
|
|
1778
1782
|
}, null, 8, ["label"]),
|
|
1779
|
-
L(a(
|
|
1780
|
-
label: a(
|
|
1783
|
+
L(a(K), {
|
|
1784
|
+
label: a(D)("设备分类"),
|
|
1781
1785
|
prop: "groupDimensionPath"
|
|
1782
1786
|
}, null, 8, ["label"]),
|
|
1783
|
-
L(a(
|
|
1784
|
-
label: a(
|
|
1787
|
+
L(a(K), {
|
|
1788
|
+
label: a(D)("安装位置"),
|
|
1785
1789
|
prop: "spaceSite"
|
|
1786
1790
|
}, null, 8, ["label"])
|
|
1787
1791
|
]),
|
|
@@ -1789,32 +1793,32 @@ const Fa = (n, e) => {
|
|
|
1789
1793
|
} : void 0,
|
|
1790
1794
|
a(m) === "source" ? {
|
|
1791
1795
|
name: "table-column",
|
|
1792
|
-
fn:
|
|
1793
|
-
L(a(
|
|
1796
|
+
fn: $(() => [
|
|
1797
|
+
L(a(K), {
|
|
1794
1798
|
type: "index",
|
|
1795
1799
|
width: "50"
|
|
1796
1800
|
}),
|
|
1797
|
-
L(a(
|
|
1798
|
-
label: a(
|
|
1801
|
+
L(a(K), {
|
|
1802
|
+
label: a(D)("单据编码"),
|
|
1799
1803
|
prop: "code"
|
|
1800
1804
|
}, null, 8, ["label"]),
|
|
1801
|
-
L(a(
|
|
1802
|
-
label: a(
|
|
1805
|
+
L(a(K), {
|
|
1806
|
+
label: a(D)("申请人"),
|
|
1803
1807
|
prop: "userName"
|
|
1804
1808
|
}, null, 8, ["label"]),
|
|
1805
|
-
L(a(
|
|
1806
|
-
label: a(
|
|
1809
|
+
L(a(K), {
|
|
1810
|
+
label: a(D)("联系电话"),
|
|
1807
1811
|
prop: "sensitivePhone"
|
|
1808
1812
|
}, {
|
|
1809
|
-
default:
|
|
1810
|
-
L(a(
|
|
1813
|
+
default: $(({ row: P }) => [
|
|
1814
|
+
L(a(Fe), {
|
|
1811
1815
|
placement: "top",
|
|
1812
1816
|
content: P.phone,
|
|
1813
1817
|
disabled: !P.phone
|
|
1814
1818
|
}, {
|
|
1815
|
-
default:
|
|
1816
|
-
|
|
1817
|
-
|
|
1819
|
+
default: $(() => [
|
|
1820
|
+
ae(
|
|
1821
|
+
ne(P.sensitivePhone || "-"),
|
|
1818
1822
|
1
|
|
1819
1823
|
/* TEXT */
|
|
1820
1824
|
)
|
|
@@ -1826,13 +1830,13 @@ const Fa = (n, e) => {
|
|
|
1826
1830
|
_: 1
|
|
1827
1831
|
/* STABLE */
|
|
1828
1832
|
}, 8, ["label"]),
|
|
1829
|
-
L(a(
|
|
1830
|
-
label: a(
|
|
1833
|
+
L(a(K), {
|
|
1834
|
+
label: a(D)("计划领用日期"),
|
|
1831
1835
|
prop: "claimingDate"
|
|
1832
1836
|
}, {
|
|
1833
|
-
default:
|
|
1834
|
-
|
|
1835
|
-
|
|
1837
|
+
default: $(({ row: P }) => [
|
|
1838
|
+
ae(
|
|
1839
|
+
ne(P.claimingDate ? a(Se)(Number(P == null ? void 0 : P.claimingDate)).format("YYYY/MM/DD") : "-"),
|
|
1836
1840
|
1
|
|
1837
1841
|
/* TEXT */
|
|
1838
1842
|
)
|
|
@@ -1840,8 +1844,8 @@ const Fa = (n, e) => {
|
|
|
1840
1844
|
_: 1
|
|
1841
1845
|
/* STABLE */
|
|
1842
1846
|
}, 8, ["label"]),
|
|
1843
|
-
L(a(
|
|
1844
|
-
label: a(
|
|
1847
|
+
L(a(K), {
|
|
1848
|
+
label: a(D)("资产用途"),
|
|
1845
1849
|
prop: "purpose"
|
|
1846
1850
|
}, null, 8, ["label"])
|
|
1847
1851
|
]),
|
|
@@ -1853,32 +1857,32 @@ const Fa = (n, e) => {
|
|
|
1853
1857
|
_: 1
|
|
1854
1858
|
/* STABLE */
|
|
1855
1859
|
}, 8, ["col", "modelValue", "prop", "label", "options", "helpMessage", "isView", "disabled", "required", "placeholder", "onOpenDialog"])) : B("v-if", !0),
|
|
1856
|
-
h.value && a(m) == "position" ? (
|
|
1860
|
+
h.value && a(m) == "position" ? (V(), E(a(Y), {
|
|
1857
1861
|
key: 1,
|
|
1858
1862
|
col: e.span,
|
|
1859
|
-
label:
|
|
1863
|
+
label: C.setting.desc,
|
|
1860
1864
|
prop: e.setting.name,
|
|
1861
1865
|
type: "treeSelect",
|
|
1862
1866
|
"node-key": "id",
|
|
1863
1867
|
showFullPath: !0,
|
|
1864
1868
|
helpMessage: pe.value,
|
|
1865
|
-
placeholder:
|
|
1869
|
+
placeholder: C.setting.options.placeholder,
|
|
1866
1870
|
required: ue.value,
|
|
1867
1871
|
modelValue: r.value,
|
|
1868
|
-
"onUpdate:modelValue": f[2] || (f[2] = (
|
|
1869
|
-
keyword: a(
|
|
1870
|
-
"onUpdate:keyword": f[3] || (f[3] = (
|
|
1871
|
-
path: a(
|
|
1872
|
-
"onUpdate:path": f[4] || (f[4] = (
|
|
1872
|
+
"onUpdate:modelValue": f[2] || (f[2] = (T) => r.value = T),
|
|
1873
|
+
keyword: a(ge),
|
|
1874
|
+
"onUpdate:keyword": f[3] || (f[3] = (T) => ze(ge) ? ge.value = T : null),
|
|
1875
|
+
path: a(U),
|
|
1876
|
+
"onUpdate:path": f[4] || (f[4] = (T) => ze(U) ? U.value = T : null),
|
|
1873
1877
|
isView: e.isView,
|
|
1874
1878
|
disabled: a(c),
|
|
1875
1879
|
load: a(Ee),
|
|
1876
|
-
search: a(
|
|
1880
|
+
search: a(_e),
|
|
1877
1881
|
props: {
|
|
1878
1882
|
isLeaf: "leaf",
|
|
1879
1883
|
label: "name"
|
|
1880
1884
|
},
|
|
1881
|
-
onChange: a(
|
|
1885
|
+
onChange: a(qe),
|
|
1882
1886
|
mode: t.value ? "" : "multiple"
|
|
1883
1887
|
}, null, 8, ["col", "label", "prop", "helpMessage", "placeholder", "required", "modelValue", "keyword", "path", "isView", "disabled", "load", "search", "onChange", "mode"])) : B("v-if", !0)
|
|
1884
1888
|
],
|
|
@@ -1886,19 +1890,19 @@ const Fa = (n, e) => {
|
|
|
1886
1890
|
/* STABLE_FRAGMENT */
|
|
1887
1891
|
));
|
|
1888
1892
|
}
|
|
1889
|
-
}),
|
|
1893
|
+
}), Za = /* @__PURE__ */ Ne(Wa, [["__scopeId", "data-v-49ca659f"]]), ht = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1890
1894
|
__proto__: null,
|
|
1891
|
-
default:
|
|
1892
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1895
|
+
default: Za
|
|
1896
|
+
}, Symbol.toStringTag, { value: "Module" })), Ga = {
|
|
1893
1897
|
key: 0,
|
|
1894
1898
|
class: "form-image"
|
|
1895
|
-
},
|
|
1899
|
+
}, Xa = {
|
|
1896
1900
|
key: 1,
|
|
1897
1901
|
style: { "margin-bottom": "10px" }
|
|
1898
|
-
},
|
|
1902
|
+
}, en = {
|
|
1899
1903
|
name: "soundRecording"
|
|
1900
|
-
},
|
|
1901
|
-
...
|
|
1904
|
+
}, tn = /* @__PURE__ */ x({
|
|
1905
|
+
...en,
|
|
1902
1906
|
props: {
|
|
1903
1907
|
setting: { default: () => ({
|
|
1904
1908
|
icon: "",
|
|
@@ -1913,27 +1917,27 @@ const Fa = (n, e) => {
|
|
|
1913
1917
|
store: {}
|
|
1914
1918
|
},
|
|
1915
1919
|
setup(n) {
|
|
1916
|
-
const e = n, { showData: t, disabledData: i, setData: d, getData: o, setFormRule: g, deleteRule:
|
|
1917
|
-
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0),
|
|
1920
|
+
const e = n, { showData: t, disabledData: i, setData: d, getData: o, setFormRule: g, deleteRule: k } = e.store || {}, s = p(), l = p(!0);
|
|
1921
|
+
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), z(
|
|
1918
1922
|
() => t.value,
|
|
1919
1923
|
() => {
|
|
1920
|
-
l.value = t.value[e.setting.name], l.value || (s.value = "",
|
|
1924
|
+
l.value = t.value[e.setting.name], l.value || (s.value = "", k(e.setting.name)), l.value && e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList);
|
|
1921
1925
|
},
|
|
1922
1926
|
{ deep: !0, immediate: !0 }
|
|
1923
1927
|
), i.value[e.setting.name];
|
|
1924
|
-
const { baseURL: v } = Et(), r =
|
|
1925
|
-
|
|
1928
|
+
const { baseURL: v } = Et(), r = p(!1);
|
|
1929
|
+
X(e.setting.options.validateList).then((_) => {
|
|
1926
1930
|
r.value = _;
|
|
1927
1931
|
});
|
|
1928
|
-
const h =
|
|
1929
|
-
if (e.setting.options.tip && (c.value =
|
|
1932
|
+
const h = p("info"), c = p();
|
|
1933
|
+
if (e.setting.options.tip && (c.value = W(e.setting.options.tip)), o(e.setting.name)) {
|
|
1930
1934
|
const _ = JSON.parse(o(e.setting.name));
|
|
1931
1935
|
s.value = v + _[0].url;
|
|
1932
1936
|
}
|
|
1933
|
-
return e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList), (_,
|
|
1937
|
+
return e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList), (_, b) => e.isView && l.value ? (V(), E(a(Y), {
|
|
1934
1938
|
key: 0,
|
|
1935
1939
|
modelValue: s.value,
|
|
1936
|
-
"onUpdate:modelValue":
|
|
1940
|
+
"onUpdate:modelValue": b[2] || (b[2] = (w) => s.value = w),
|
|
1937
1941
|
"margin-bottom": "0",
|
|
1938
1942
|
prop: e.setting.name,
|
|
1939
1943
|
label: _.setting.desc,
|
|
@@ -1942,28 +1946,28 @@ const Fa = (n, e) => {
|
|
|
1942
1946
|
required: r.value,
|
|
1943
1947
|
col: e.span
|
|
1944
1948
|
}, {
|
|
1945
|
-
default:
|
|
1946
|
-
s.value ? (
|
|
1947
|
-
L(a(
|
|
1949
|
+
default: $(() => [
|
|
1950
|
+
s.value ? (V(), J("div", Ga, [
|
|
1951
|
+
L(a(Xe), {
|
|
1948
1952
|
modelValue: s.value,
|
|
1949
|
-
"onUpdate:modelValue":
|
|
1953
|
+
"onUpdate:modelValue": b[0] || (b[0] = (w) => s.value = w),
|
|
1950
1954
|
status: h.value,
|
|
1951
|
-
"onUpdate:status":
|
|
1955
|
+
"onUpdate:status": b[1] || (b[1] = (w) => h.value = w),
|
|
1952
1956
|
required: r.value
|
|
1953
1957
|
}, null, 8, ["modelValue", "status", "required"])
|
|
1954
|
-
])) : (
|
|
1958
|
+
])) : (V(), J("div", Xa, "-"))
|
|
1955
1959
|
]),
|
|
1956
1960
|
_: 1
|
|
1957
1961
|
/* STABLE */
|
|
1958
1962
|
}, 8, ["modelValue", "prop", "label", "helpMessage", "required", "col"])) : B("v-if", !0);
|
|
1959
1963
|
}
|
|
1960
|
-
}),
|
|
1964
|
+
}), an = /* @__PURE__ */ Ne(tn, [["__scopeId", "data-v-b30e3d77"]]), yt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1961
1965
|
__proto__: null,
|
|
1962
|
-
default:
|
|
1963
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1966
|
+
default: an
|
|
1967
|
+
}, Symbol.toStringTag, { value: "Module" })), nn = {
|
|
1964
1968
|
name: "switch"
|
|
1965
|
-
},
|
|
1966
|
-
...
|
|
1969
|
+
}, sn = /* @__PURE__ */ x({
|
|
1970
|
+
...nn,
|
|
1967
1971
|
props: {
|
|
1968
1972
|
setting: { default: () => ({
|
|
1969
1973
|
icon: "",
|
|
@@ -1978,28 +1982,28 @@ const Fa = (n, e) => {
|
|
|
1978
1982
|
store: {}
|
|
1979
1983
|
},
|
|
1980
1984
|
setup(n) {
|
|
1981
|
-
const e = n, { showData: t, disabledData: i, setData: d, getData: o, setFormRule: g, deleteRule:
|
|
1982
|
-
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0),
|
|
1985
|
+
const e = n, { showData: t, disabledData: i, setData: d, getData: o, setFormRule: g, deleteRule: k } = e.store || {}, s = p(), l = p(!0);
|
|
1986
|
+
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), z(
|
|
1983
1987
|
() => t.value,
|
|
1984
1988
|
() => {
|
|
1985
|
-
l.value = t.value[e.setting.name], l.value || (s.value = null,
|
|
1989
|
+
l.value = t.value[e.setting.name], l.value || (s.value = null, k(e.setting.name)), l.value && e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList);
|
|
1986
1990
|
},
|
|
1987
1991
|
{ deep: !0, immediate: !0 }
|
|
1988
1992
|
);
|
|
1989
|
-
const v = i.value[e.setting.name] || !1, r =
|
|
1990
|
-
|
|
1993
|
+
const v = i.value[e.setting.name] || !1, r = p(!1);
|
|
1994
|
+
X(e.setting.options.validateList).then((c) => {
|
|
1991
1995
|
r.value = c;
|
|
1992
1996
|
});
|
|
1993
|
-
const h =
|
|
1994
|
-
return e.setting.options.tip && (h.value =
|
|
1997
|
+
const h = p();
|
|
1998
|
+
return e.setting.options.tip && (h.value = W(e.setting.options.tip)), setTimeout(() => {
|
|
1995
1999
|
s.value = o(e.setting.name) || e.setting.options.formulasDiyJs || s.value, s.value || d(e.setting.name, null);
|
|
1996
|
-
}, 50), e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList),
|
|
2000
|
+
}, 50), e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList), z(s, (c) => {
|
|
1997
2001
|
d(e.setting.name, c);
|
|
1998
|
-
}), (c, _) => l.value ? (
|
|
2002
|
+
}), (c, _) => l.value ? (V(), E(a(Y), {
|
|
1999
2003
|
key: 0,
|
|
2000
2004
|
col: e.span,
|
|
2001
2005
|
modelValue: s.value,
|
|
2002
|
-
"onUpdate:modelValue": _[0] || (_[0] = (
|
|
2006
|
+
"onUpdate:modelValue": _[0] || (_[0] = (b) => s.value = b),
|
|
2003
2007
|
label: c.setting.desc,
|
|
2004
2008
|
type: "switch",
|
|
2005
2009
|
prop: e.setting.name,
|
|
@@ -2013,13 +2017,13 @@ const Fa = (n, e) => {
|
|
|
2013
2017
|
isView: e.isView
|
|
2014
2018
|
}, null, 8, ["col", "modelValue", "label", "prop", "activeValue", "inactiveValue", "activeText", "inactiveText", "helpMessage", "disabled", "required", "isView"])) : B("v-if", !0);
|
|
2015
2019
|
}
|
|
2016
|
-
}),
|
|
2020
|
+
}), bt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2017
2021
|
__proto__: null,
|
|
2018
|
-
default:
|
|
2019
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2022
|
+
default: sn
|
|
2023
|
+
}, Symbol.toStringTag, { value: "Module" })), on = {
|
|
2020
2024
|
name: "text"
|
|
2021
|
-
},
|
|
2022
|
-
...
|
|
2025
|
+
}, ln = /* @__PURE__ */ x({
|
|
2026
|
+
...on,
|
|
2023
2027
|
props: {
|
|
2024
2028
|
setting: { default: () => ({
|
|
2025
2029
|
icon: "",
|
|
@@ -2034,18 +2038,18 @@ const Fa = (n, e) => {
|
|
|
2034
2038
|
store: {}
|
|
2035
2039
|
},
|
|
2036
2040
|
setup(n) {
|
|
2037
|
-
const e = n, { showData: t, disabledData: i, setData: d, getData: o, setFormRule: g, deleteRule:
|
|
2038
|
-
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0),
|
|
2041
|
+
const e = n, { showData: t, disabledData: i, setData: d, getData: o, setFormRule: g, deleteRule: k } = e.store || {}, s = p(), l = p(!0);
|
|
2042
|
+
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), z(
|
|
2039
2043
|
() => t.value,
|
|
2040
2044
|
() => {
|
|
2041
|
-
l.value = t.value[e.setting.name], l.value || (s.value = null,
|
|
2045
|
+
l.value = t.value[e.setting.name], l.value || (s.value = null, k(e.setting.name)), l.value && e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList);
|
|
2042
2046
|
},
|
|
2043
2047
|
{ deep: !0, immediate: !0 }
|
|
2044
2048
|
);
|
|
2045
|
-
const v =
|
|
2046
|
-
return e.setting.options.tip && (v.value =
|
|
2049
|
+
const v = p();
|
|
2050
|
+
return e.setting.options.tip && (v.value = W(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) => {
|
|
2047
2051
|
d(e.setting.name, r);
|
|
2048
|
-
}), (r, h) => l.value ? (
|
|
2052
|
+
}), (r, h) => l.value ? (V(), E(a(Y), {
|
|
2049
2053
|
key: 0,
|
|
2050
2054
|
col: e.span,
|
|
2051
2055
|
modelValue: s.value,
|
|
@@ -2054,8 +2058,8 @@ const Fa = (n, e) => {
|
|
|
2054
2058
|
type: "custom",
|
|
2055
2059
|
helpMessage: v.value
|
|
2056
2060
|
}, {
|
|
2057
|
-
default:
|
|
2058
|
-
L(a(
|
|
2061
|
+
default: $(() => [
|
|
2062
|
+
L(a(tt), {
|
|
2059
2063
|
type: "text",
|
|
2060
2064
|
modelValue: s.value,
|
|
2061
2065
|
"onUpdate:modelValue": h[0] || (h[0] = (c) => s.value = c)
|
|
@@ -2065,13 +2069,13 @@ const Fa = (n, e) => {
|
|
|
2065
2069
|
/* STABLE */
|
|
2066
2070
|
}, 8, ["col", "modelValue", "label", "helpMessage"])) : B("v-if", !0);
|
|
2067
2071
|
}
|
|
2068
|
-
}),
|
|
2072
|
+
}), _t = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2069
2073
|
__proto__: null,
|
|
2070
|
-
default:
|
|
2071
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2074
|
+
default: ln
|
|
2075
|
+
}, Symbol.toStringTag, { value: "Module" })), rn = {
|
|
2072
2076
|
name: "textarea"
|
|
2073
|
-
},
|
|
2074
|
-
...
|
|
2077
|
+
}, un = /* @__PURE__ */ x({
|
|
2078
|
+
...rn,
|
|
2075
2079
|
props: {
|
|
2076
2080
|
setting: { default: () => ({
|
|
2077
2081
|
icon: "",
|
|
@@ -2086,39 +2090,39 @@ const Fa = (n, e) => {
|
|
|
2086
2090
|
store: {}
|
|
2087
2091
|
},
|
|
2088
2092
|
setup(n) {
|
|
2089
|
-
const e = n, { showData: t, disabledData: i, setData: d, getData: o, setFormRule: g, deleteRule:
|
|
2090
|
-
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0),
|
|
2093
|
+
const e = n, { showData: t, disabledData: i, setData: d, getData: o, setFormRule: g, deleteRule: k } = e.store || {}, s = p(""), l = p(!0);
|
|
2094
|
+
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), z(
|
|
2091
2095
|
() => t.value,
|
|
2092
2096
|
() => {
|
|
2093
|
-
l.value = t.value[e.setting.name], l.value || (s.value = "",
|
|
2097
|
+
l.value = t.value[e.setting.name], l.value || (s.value = "", k(e.setting.name)), l.value && e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList);
|
|
2094
2098
|
},
|
|
2095
2099
|
{ deep: !0, immediate: !0 }
|
|
2096
2100
|
);
|
|
2097
|
-
const v = i.value[e.setting.name] || !1, r =
|
|
2098
|
-
|
|
2099
|
-
r.value =
|
|
2101
|
+
const v = i.value[e.setting.name] || !1, r = p(!1);
|
|
2102
|
+
X(e.setting.options.validateList).then((b) => {
|
|
2103
|
+
r.value = b;
|
|
2100
2104
|
});
|
|
2101
|
-
const h =
|
|
2102
|
-
e.setting.options.tip && (h.value =
|
|
2105
|
+
const h = p();
|
|
2106
|
+
e.setting.options.tip && (h.value = W(e.setting.options.tip)), setTimeout(() => {
|
|
2103
2107
|
s.value = o(e.setting.name) || e.setting.options.formulasDiyJs || s.value, s.value || d(e.setting.name, null);
|
|
2104
2108
|
}, 50);
|
|
2105
|
-
const c =
|
|
2106
|
-
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),
|
|
2107
|
-
d(e.setting.name,
|
|
2108
|
-
}), (
|
|
2109
|
-
|
|
2109
|
+
const c = p(), _ = p();
|
|
2110
|
+
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
|
+
d(e.setting.name, b);
|
|
2112
|
+
}), (b, w) => (V(), J(
|
|
2113
|
+
ee,
|
|
2110
2114
|
null,
|
|
2111
2115
|
[
|
|
2112
|
-
!
|
|
2116
|
+
!b.setting.options.isEditor && l.value ? (V(), E(a(Y), {
|
|
2113
2117
|
key: 0,
|
|
2114
2118
|
col: e.span,
|
|
2115
|
-
label:
|
|
2119
|
+
label: b.setting.desc,
|
|
2116
2120
|
type: "textarea",
|
|
2117
2121
|
modelValue: s.value,
|
|
2118
|
-
"onUpdate:modelValue":
|
|
2122
|
+
"onUpdate:modelValue": w[0] || (w[0] = (m) => s.value = m),
|
|
2119
2123
|
prop: e.setting.name,
|
|
2120
|
-
placeholder:
|
|
2121
|
-
disabled:
|
|
2124
|
+
placeholder: b.setting.options.placeholder,
|
|
2125
|
+
disabled: b.setting.options.isInputEdit || a(v),
|
|
2122
2126
|
isView: e.isView,
|
|
2123
2127
|
autosize: {
|
|
2124
2128
|
minRows: 1,
|
|
@@ -2128,26 +2132,26 @@ const Fa = (n, e) => {
|
|
|
2128
2132
|
helpMessage: h.value,
|
|
2129
2133
|
required: r.value
|
|
2130
2134
|
}, null, 8, ["col", "label", "modelValue", "prop", "placeholder", "disabled", "isView", "helpMessage", "required"])) : B("v-if", !0),
|
|
2131
|
-
|
|
2135
|
+
b.setting.options.isEditor && l.value ? (V(), E(a(Y), {
|
|
2132
2136
|
key: 1,
|
|
2133
2137
|
modelValue: s.value,
|
|
2134
|
-
"onUpdate:modelValue":
|
|
2138
|
+
"onUpdate:modelValue": w[2] || (w[2] = (m) => s.value = m),
|
|
2135
2139
|
prop: e.setting.name,
|
|
2136
2140
|
contentWidth: c.value,
|
|
2137
|
-
label:
|
|
2141
|
+
label: b.setting.desc,
|
|
2138
2142
|
type: "custom",
|
|
2139
2143
|
helpMessage: h.value,
|
|
2140
2144
|
required: r.value,
|
|
2141
2145
|
readOnly: e.isView
|
|
2142
2146
|
}, {
|
|
2143
|
-
default:
|
|
2144
|
-
L(a(
|
|
2147
|
+
default: $(() => [
|
|
2148
|
+
L(a(tt), {
|
|
2145
2149
|
ref: "editor",
|
|
2146
2150
|
width: c.value,
|
|
2147
2151
|
height: _.value,
|
|
2148
2152
|
modelValue: s.value,
|
|
2149
|
-
"onUpdate:modelValue":
|
|
2150
|
-
placeholder:
|
|
2153
|
+
"onUpdate:modelValue": w[1] || (w[1] = (m) => s.value = m),
|
|
2154
|
+
placeholder: b.setting.options.placeholder
|
|
2151
2155
|
}, null, 8, ["width", "height", "modelValue", "placeholder"])
|
|
2152
2156
|
]),
|
|
2153
2157
|
_: 1
|
|
@@ -2160,11 +2164,11 @@ const Fa = (n, e) => {
|
|
|
2160
2164
|
}
|
|
2161
2165
|
}), wt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2162
2166
|
__proto__: null,
|
|
2163
|
-
default:
|
|
2164
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2167
|
+
default: un
|
|
2168
|
+
}, Symbol.toStringTag, { value: "Module" })), pn = {
|
|
2165
2169
|
name: "time"
|
|
2166
|
-
},
|
|
2167
|
-
...
|
|
2170
|
+
}, dn = /* @__PURE__ */ x({
|
|
2171
|
+
...pn,
|
|
2168
2172
|
props: {
|
|
2169
2173
|
setting: { default: () => ({
|
|
2170
2174
|
icon: "",
|
|
@@ -2179,29 +2183,29 @@ const Fa = (n, e) => {
|
|
|
2179
2183
|
store: {}
|
|
2180
2184
|
},
|
|
2181
2185
|
setup(n) {
|
|
2182
|
-
const e = n, { showData: t, disabledData: i, setData: d, getData: o, setFormRule: g, deleteRule:
|
|
2183
|
-
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0),
|
|
2186
|
+
const e = n, { showData: t, disabledData: i, setData: d, getData: o, setFormRule: g, deleteRule: k } = e.store || {}, s = p(), l = p(!0);
|
|
2187
|
+
!t.value[e.setting.name] && t.value[e.setting.name] != !1 && (t.value[e.setting.name] = !0), z(
|
|
2184
2188
|
() => t.value,
|
|
2185
2189
|
() => {
|
|
2186
|
-
l.value = t.value[e.setting.name], l.value || (s.value = null,
|
|
2190
|
+
l.value = t.value[e.setting.name], l.value || (s.value = null, k(e.setting.name)), l.value && e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList);
|
|
2187
2191
|
},
|
|
2188
2192
|
{ deep: !0, immediate: !0 }
|
|
2189
2193
|
);
|
|
2190
|
-
const v = i.value[e.setting.name] || !1, r =
|
|
2191
|
-
|
|
2194
|
+
const v = i.value[e.setting.name] || !1, r = p(!1);
|
|
2195
|
+
X(e.setting.options.validateList).then((c) => {
|
|
2192
2196
|
r.value = c;
|
|
2193
2197
|
});
|
|
2194
|
-
const h =
|
|
2195
|
-
return e.setting.options.tip && (h.value =
|
|
2196
|
-
const c =
|
|
2197
|
-
o(e.setting.name) && (s.value = o(e.setting.name)), e.setting.options.formulasDiyJs && (s.value =
|
|
2198
|
-
}, 50), e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList),
|
|
2198
|
+
const h = p();
|
|
2199
|
+
return e.setting.options.tip && (h.value = W(e.setting.options.tip)), setTimeout(() => {
|
|
2200
|
+
const c = Se().format("YYYY-MM-DD ");
|
|
2201
|
+
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
|
+
}, 50), e.setting.options.validateList.length && g(e.setting.name, e.setting.options.validateList), z(s, (c) => {
|
|
2199
2203
|
d(e.setting.name, c);
|
|
2200
|
-
}), (c, _) => l.value ? (
|
|
2204
|
+
}), (c, _) => l.value ? (V(), E(a(Y), {
|
|
2201
2205
|
key: 0,
|
|
2202
2206
|
col: e.span,
|
|
2203
2207
|
modelValue: s.value,
|
|
2204
|
-
"onUpdate:modelValue": _[0] || (_[0] = (
|
|
2208
|
+
"onUpdate:modelValue": _[0] || (_[0] = (b) => s.value = b),
|
|
2205
2209
|
prop: e.setting.name,
|
|
2206
2210
|
label: c.setting.desc,
|
|
2207
2211
|
type: "time",
|
|
@@ -2211,10 +2215,10 @@ const Fa = (n, e) => {
|
|
|
2211
2215
|
disabled: a(v)
|
|
2212
2216
|
}, null, 8, ["col", "modelValue", "prop", "label", "helpMessage", "isView", "required", "disabled"])) : B("v-if", !0);
|
|
2213
2217
|
}
|
|
2214
|
-
}),
|
|
2218
|
+
}), Ct = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2215
2219
|
__proto__: null,
|
|
2216
|
-
default:
|
|
2217
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2220
|
+
default: dn
|
|
2221
|
+
}, Symbol.toStringTag, { value: "Module" })), cn = x({
|
|
2218
2222
|
name: "accordion",
|
|
2219
2223
|
props: {
|
|
2220
2224
|
columns: {
|
|
@@ -2231,33 +2235,33 @@ const Fa = (n, e) => {
|
|
|
2231
2235
|
}
|
|
2232
2236
|
},
|
|
2233
2237
|
setup(n) {
|
|
2234
|
-
const e =
|
|
2238
|
+
const e = p([]), t = n.columns.map((i) => {
|
|
2235
2239
|
const d = i.list.map(
|
|
2236
|
-
(o) =>
|
|
2240
|
+
(o) => fe(be[o.ctrlType], { setting: o, isView: n.isView, store: n.store })
|
|
2237
2241
|
);
|
|
2238
|
-
return i.isOpen == !0 && e.value.push(i.idKey),
|
|
2239
|
-
|
|
2242
|
+
return i.isOpen == !0 && e.value.push(i.idKey), fe(
|
|
2243
|
+
nt,
|
|
2240
2244
|
{
|
|
2241
2245
|
header: i.span,
|
|
2242
2246
|
key: `${i.idKey}`
|
|
2243
2247
|
},
|
|
2244
|
-
|
|
2248
|
+
fe("div", d)
|
|
2245
2249
|
);
|
|
2246
2250
|
});
|
|
2247
|
-
return () =>
|
|
2251
|
+
return () => fe(
|
|
2248
2252
|
"div",
|
|
2249
2253
|
{ class: "accordion-layout" },
|
|
2250
|
-
|
|
2251
|
-
|
|
2254
|
+
fe(
|
|
2255
|
+
at,
|
|
2252
2256
|
{ activeKey: e.value, collapsible: n.options.accordion ? "" : "disabled" },
|
|
2253
2257
|
t
|
|
2254
2258
|
)
|
|
2255
2259
|
);
|
|
2256
2260
|
}
|
|
2257
|
-
}),
|
|
2261
|
+
}), gn = {
|
|
2258
2262
|
name: "accordion"
|
|
2259
|
-
},
|
|
2260
|
-
...
|
|
2263
|
+
}, mn = /* @__PURE__ */ x({
|
|
2264
|
+
...gn,
|
|
2261
2265
|
props: {
|
|
2262
2266
|
setting: { default: () => ({
|
|
2263
2267
|
name: "",
|
|
@@ -2285,7 +2289,7 @@ const Fa = (n, e) => {
|
|
|
2285
2289
|
store: {}
|
|
2286
2290
|
},
|
|
2287
2291
|
setup(n) {
|
|
2288
|
-
return (e, t) => (
|
|
2292
|
+
return (e, t) => (V(), E(a(cn), {
|
|
2289
2293
|
columns: e.setting.columns,
|
|
2290
2294
|
options: e.setting.options,
|
|
2291
2295
|
isView: e.isView,
|
|
@@ -2293,13 +2297,13 @@ const Fa = (n, e) => {
|
|
|
2293
2297
|
style: { "margin-bottom": "10px" }
|
|
2294
2298
|
}, null, 8, ["columns", "options", "isView", "store"]));
|
|
2295
2299
|
}
|
|
2296
|
-
}),
|
|
2300
|
+
}), vn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2297
2301
|
__proto__: null,
|
|
2298
|
-
default:
|
|
2299
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2302
|
+
default: mn
|
|
2303
|
+
}, Symbol.toStringTag, { value: "Module" })), fn = {
|
|
2300
2304
|
name: "grid"
|
|
2301
|
-
},
|
|
2302
|
-
...
|
|
2305
|
+
}, hn = /* @__PURE__ */ x({
|
|
2306
|
+
...fn,
|
|
2303
2307
|
props: {
|
|
2304
2308
|
setting: { default: () => ({
|
|
2305
2309
|
name: "",
|
|
@@ -2325,23 +2329,23 @@ const Fa = (n, e) => {
|
|
|
2325
2329
|
},
|
|
2326
2330
|
setup(n) {
|
|
2327
2331
|
const e = n;
|
|
2328
|
-
return (t, i) => (
|
|
2329
|
-
|
|
2332
|
+
return (t, i) => (V(), J(
|
|
2333
|
+
ee,
|
|
2330
2334
|
null,
|
|
2331
2335
|
[
|
|
2332
2336
|
B(' <GridLayout :columns="setting.columns" :isView="props.isView" :store="store"></GridLayout> '),
|
|
2333
2337
|
B(' <div style="display: flex; flex-direction: row; flex-wrap: wrap; width: 100%"> '),
|
|
2334
|
-
(
|
|
2335
|
-
|
|
2338
|
+
(V(!0), J(
|
|
2339
|
+
ee,
|
|
2336
2340
|
null,
|
|
2337
|
-
|
|
2338
|
-
|
|
2341
|
+
ye(t.setting.columns, (d) => (V(), J(
|
|
2342
|
+
ee,
|
|
2339
2343
|
null,
|
|
2340
2344
|
[
|
|
2341
|
-
(
|
|
2342
|
-
|
|
2345
|
+
(V(!0), J(
|
|
2346
|
+
ee,
|
|
2343
2347
|
null,
|
|
2344
|
-
|
|
2348
|
+
ye(d.list, (o) => (V(), E(De(a(_n)[o.ctrlType]), {
|
|
2345
2349
|
setting: o,
|
|
2346
2350
|
isView: e.isView,
|
|
2347
2351
|
store: t.store,
|
|
@@ -2363,147 +2367,147 @@ const Fa = (n, e) => {
|
|
|
2363
2367
|
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
2364
2368
|
));
|
|
2365
2369
|
}
|
|
2366
|
-
}),
|
|
2370
|
+
}), yn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2367
2371
|
__proto__: null,
|
|
2368
|
-
default:
|
|
2369
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2370
|
-
Object.keys(Te).map((n) => Ct[Te[n].default.name] = Te[n].default);
|
|
2372
|
+
default: hn
|
|
2373
|
+
}, Symbol.toStringTag, { value: "Module" })), Te = /* @__PURE__ */ Object.assign({ "./base/attachment.vue": it, "./base/autocomplete.vue": rt, "./base/checkbox.vue": ut, "./base/date.vue": pt, "./base/dropdown.vue": dt, "./base/imageViewer.vue": ct, "./base/input.vue": gt, "./base/number.vue": mt, "./base/radio.vue": vt, "./base/select.vue": ft, "./base/selector.vue": ht, "./base/soundRecording.vue": yt, "./base/switch.vue": bt, "./base/text.vue": _t, "./base/textarea.vue": wt, "./base/time.vue": Ct, "./layout/accordion/accordion.vue": vn, "./layout/grid/gridLayout.vue": yn }), Re = /* @__PURE__ */ Object.assign({ "./base/attachment.vue": it, "./base/autocomplete.vue": rt, "./base/checkbox.vue": ut, "./base/date.vue": pt, "./base/dropdown.vue": dt, "./base/imageViewer.vue": ct, "./base/input.vue": gt, "./base/number.vue": mt, "./base/radio.vue": vt, "./base/select.vue": ft, "./base/selector.vue": ht, "./base/soundRecording.vue": yt, "./base/switch.vue": bt, "./base/text.vue": _t, "./base/textarea.vue": wt, "./base/time.vue": Ct }), Pe = /* @__PURE__ */ Object.assign({}), $e = /* @__PURE__ */ Object.assign({}), be = {}, Dt = {}, kt = {}, bn = {};
|
|
2371
2374
|
Object.keys(Re).map((n) => Dt[Re[n].default.name] = Re[n].default);
|
|
2372
|
-
Object.keys(Pe).map((n) =>
|
|
2373
|
-
Object.keys(
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
e !== "" && e.length > parseInt(i.value) ? t(new Error(`${k("最大文本长度")}${k("不能超过")}${i.value}`)) : t();
|
|
2375
|
+
Object.keys(Pe).map((n) => kt[Pe[n].default.name] = Pe[n].default);
|
|
2376
|
+
Object.keys($e).map((n) => bn[$e[n].default.name] = $e[n].default);
|
|
2377
|
+
Object.keys(Te).map((n) => be[Te[n].default.name] = Te[n].default);
|
|
2378
|
+
const _n = { ...Dt, ...kt }, wn = (n, e, t, i) => {
|
|
2379
|
+
(!e || e.toString() === "") && parseInt(e) !== 0 ? t(new Error(`${D("*必填")}`)) : t();
|
|
2378
2380
|
}, Cn = (n, e, t, i) => {
|
|
2379
|
-
e !== "" && e.length
|
|
2381
|
+
e !== "" && e.length > parseInt(i.value) ? t(new Error(`${D("最大文本长度")}${D("不能超过")}${i.value}`)) : t();
|
|
2380
2382
|
}, Dn = (n, e, t, i) => {
|
|
2383
|
+
e !== "" && e.length < parseInt(i.value) ? t(new Error(`${D("最小文本长度")}${D("不能少于")}${i.value}`)) : t();
|
|
2384
|
+
}, kn = (n, e, t, i) => {
|
|
2381
2385
|
if (e !== "" && !/^1[3456789]\d{9}$/.test(e))
|
|
2382
|
-
return t(new Error(
|
|
2386
|
+
return t(new Error(D("手机号码格式不正确,请重新输入"))), !1;
|
|
2383
2387
|
t();
|
|
2384
|
-
},
|
|
2388
|
+
}, Sn = (n, e, t) => {
|
|
2385
2389
|
if (e !== "" && !/^[A-Za-z0-9\u4e00-\u9fa5]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/.test(e))
|
|
2386
|
-
return t(new Error(
|
|
2390
|
+
return t(new Error(D("电子邮箱格式不正确,请重新输入"))), !1;
|
|
2387
2391
|
t();
|
|
2388
|
-
},
|
|
2392
|
+
}, Vn = (n, e, t) => {
|
|
2389
2393
|
if (e !== "" && !/^-?\d+$/.test(e))
|
|
2390
|
-
return t(new Error(
|
|
2394
|
+
return t(new Error(D("请输入整数"))), !1;
|
|
2391
2395
|
t();
|
|
2392
|
-
},
|
|
2396
|
+
}, Nn = (n, e, t, i) => {
|
|
2393
2397
|
if (e !== "" && e != i.value)
|
|
2394
|
-
return t(new Error(
|
|
2398
|
+
return t(new Error(D("请输入相同的值"))), !1;
|
|
2395
2399
|
t();
|
|
2396
|
-
}, Nn = (n, e, t, i) => {
|
|
2397
|
-
e === "" ? t() : /^[+-]?\d*\.?\d*$/.test(e) ? e < parseFloat(i.value) ? t(new Error(`${i.name}${k("不能小于")}${i.value}`)) : t() : t(new Error(k("请输入数字")));
|
|
2398
2400
|
}, Ln = (n, e, t, i) => {
|
|
2399
|
-
e === "" ? t() : /^[+-]?\d*\.?\d*$/.test(e) ? e
|
|
2401
|
+
e === "" ? t() : /^[+-]?\d*\.?\d*$/.test(e) ? e < parseFloat(i.value) ? t(new Error(`${i.name}${D("不能小于")}${i.value}`)) : t() : t(new Error(D("请输入数字")));
|
|
2400
2402
|
}, zn = (n, e, t, i) => {
|
|
2401
|
-
|
|
2402
|
-
e === "" ? t() : d.test(e) || o.test(e) ? e >= parseFloat(i.start) && e <= parseFloat(i.end) ? t() : t(new Error(`${k("只能输入指定数字范围")}${i.start}-${i.end}`)) : t(new Error(k("请输入数字")));
|
|
2403
|
+
e === "" ? t() : /^[+-]?\d*\.?\d*$/.test(e) ? e > parseFloat(i.value) ? t(new Error(`${i.name}${D("不能大于")}${i.value}`)) : t() : t(new Error(D("请输入数字")));
|
|
2403
2404
|
}, Mn = (n, e, t, i) => {
|
|
2404
|
-
|
|
2405
|
+
const d = /^[+-]?(\d*\.\d+([eE]?[+-]?\d+)?|\d+[eE][+-]?\d+)$/, o = /^-?\d+$/;
|
|
2406
|
+
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("请输入数字")));
|
|
2405
2407
|
}, In = (n, e, t, i) => {
|
|
2406
|
-
e === ""
|
|
2407
|
-
}, Tn = (n, e, t) => {
|
|
2408
|
+
e === "" || parseFloat(e) === parseFloat(i.value) ? t() : t(new Error(`${D("只能输入指定的值")}${i.value}`));
|
|
2409
|
+
}, Tn = (n, e, t, i) => {
|
|
2410
|
+
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
|
+
}, Rn = (n, e, t) => {
|
|
2408
2412
|
if (e !== "" && !/^[a-zA-Z]{1,}$/.test(e))
|
|
2409
|
-
return t(new Error(
|
|
2413
|
+
return t(new Error(D("只能输入字母"))), !1;
|
|
2410
2414
|
t();
|
|
2411
|
-
},
|
|
2415
|
+
}, Pn = (n, e, t) => {
|
|
2412
2416
|
if (e !== "" && !/^[a-zA-Z ]{1,}$/.test(e))
|
|
2413
|
-
return t(new Error(
|
|
2417
|
+
return t(new Error(D("只能输入字母空格"))), !1;
|
|
2414
2418
|
t();
|
|
2415
|
-
},
|
|
2419
|
+
}, $n = (n, e, t) => {
|
|
2416
2420
|
if (e !== "" && !/^[0-9a-zA-Z_-]{1,}$/.test(e))
|
|
2417
|
-
return t(new Error(
|
|
2421
|
+
return t(new Error(D("只能输入字母数字横线下划线"))), !1;
|
|
2418
2422
|
t();
|
|
2419
|
-
},
|
|
2423
|
+
}, Fn = (n, e, t) => {
|
|
2420
2424
|
if (e !== "" && !/^[0-9a-zA-Z]{1,}$/.test(e))
|
|
2421
|
-
return t(new Error(
|
|
2425
|
+
return t(new Error(D("只能输入字母数字"))), !1;
|
|
2422
2426
|
t();
|
|
2423
|
-
},
|
|
2427
|
+
}, jn = (n, e, t, i) => {
|
|
2424
2428
|
const d = new RegExp(i.value);
|
|
2425
2429
|
if (e !== "" && !d.test(e))
|
|
2426
2430
|
return t(new Error(i.errorMessage)), !1;
|
|
2427
2431
|
t();
|
|
2428
|
-
},
|
|
2432
|
+
}, Kn = {
|
|
2429
2433
|
required: wn,
|
|
2430
|
-
min:
|
|
2431
|
-
max:
|
|
2432
|
-
email:
|
|
2433
|
-
min_value:
|
|
2434
|
-
max_value:
|
|
2435
|
-
confirmed:
|
|
2436
|
-
numeric:
|
|
2437
|
-
between:
|
|
2438
|
-
is:
|
|
2439
|
-
digits:
|
|
2440
|
-
mobile:
|
|
2441
|
-
alpha:
|
|
2442
|
-
alpha_spaces:
|
|
2443
|
-
alpha_dash:
|
|
2444
|
-
alpha_num:
|
|
2445
|
-
regex:
|
|
2446
|
-
},
|
|
2447
|
-
const n =
|
|
2434
|
+
min: Dn,
|
|
2435
|
+
max: Cn,
|
|
2436
|
+
email: Sn,
|
|
2437
|
+
min_value: Ln,
|
|
2438
|
+
max_value: zn,
|
|
2439
|
+
confirmed: Nn,
|
|
2440
|
+
numeric: Vn,
|
|
2441
|
+
between: Mn,
|
|
2442
|
+
is: In,
|
|
2443
|
+
digits: Tn,
|
|
2444
|
+
mobile: kn,
|
|
2445
|
+
alpha: Rn,
|
|
2446
|
+
alpha_spaces: Pn,
|
|
2447
|
+
alpha_dash: $n,
|
|
2448
|
+
alpha_num: Fn,
|
|
2449
|
+
regex: jn
|
|
2450
|
+
}, qn = () => {
|
|
2451
|
+
const n = p({}), e = p([]), t = p({}), i = p({}), d = p([]), o = p(""), g = p(""), k = p({}), s = p([]), l = p({});
|
|
2448
2452
|
return {
|
|
2449
2453
|
data: n,
|
|
2450
2454
|
formData: e,
|
|
2451
|
-
formRule:
|
|
2455
|
+
formRule: k,
|
|
2452
2456
|
showData: t,
|
|
2453
2457
|
disabledData: i,
|
|
2454
2458
|
flowKey: o,
|
|
2455
2459
|
linkData: l,
|
|
2456
2460
|
encryptionData: s,
|
|
2457
|
-
setData: (
|
|
2458
|
-
const
|
|
2459
|
-
n.value =
|
|
2460
|
-
|
|
2461
|
+
setData: (y, u) => {
|
|
2462
|
+
const R = { ...n.value, [y]: u };
|
|
2463
|
+
n.value = R, e.value.forEach((F) => {
|
|
2464
|
+
F.formKey === g.value && (F.data = R);
|
|
2461
2465
|
});
|
|
2462
2466
|
},
|
|
2463
|
-
setDetailData: (
|
|
2464
|
-
n.value =
|
|
2465
|
-
|
|
2467
|
+
setDetailData: (y) => {
|
|
2468
|
+
n.value = y, e.value.forEach((u) => {
|
|
2469
|
+
u.formKey === g.value && (u.data = y);
|
|
2466
2470
|
});
|
|
2467
2471
|
},
|
|
2468
|
-
setLinkData: (
|
|
2469
|
-
l.value = { data:
|
|
2472
|
+
setLinkData: (y, u) => {
|
|
2473
|
+
l.value = { data: y, val: u };
|
|
2470
2474
|
},
|
|
2471
|
-
getData: (
|
|
2472
|
-
var
|
|
2473
|
-
return n.value[
|
|
2475
|
+
getData: (y) => {
|
|
2476
|
+
var u;
|
|
2477
|
+
return n.value[y] || ((u = e.value.find((R) => R.formKey === g.value)) == null ? void 0 : u.data[y]);
|
|
2474
2478
|
},
|
|
2475
|
-
setFormData: (
|
|
2476
|
-
g.value =
|
|
2477
|
-
|
|
2478
|
-
}) : (d.value.push(
|
|
2479
|
-
formKey:
|
|
2480
|
-
boKey:
|
|
2481
|
-
reportId:
|
|
2479
|
+
setFormData: (y, u, R) => {
|
|
2480
|
+
g.value = y, d.value.includes(y) ? e.value.forEach((F) => {
|
|
2481
|
+
F.formKey === y && (n.value = F.data);
|
|
2482
|
+
}) : (d.value.push(y), e.value.push({
|
|
2483
|
+
formKey: y,
|
|
2484
|
+
boKey: u,
|
|
2485
|
+
reportId: R || null,
|
|
2482
2486
|
data: {}
|
|
2483
2487
|
}));
|
|
2484
2488
|
},
|
|
2485
2489
|
getFormData: () => e.value,
|
|
2486
|
-
setFormRule: (
|
|
2487
|
-
|
|
2488
|
-
|
|
2489
|
-
validator: (
|
|
2490
|
+
setFormRule: (y, u) => {
|
|
2491
|
+
k.value[y] = [], u && u.length && u.forEach((R) => {
|
|
2492
|
+
k.value[y].push({
|
|
2493
|
+
validator: (F, I, M) => Kn[R.key](F, I, M, R)
|
|
2490
2494
|
});
|
|
2491
2495
|
});
|
|
2492
2496
|
},
|
|
2493
2497
|
clearData: () => {
|
|
2494
|
-
n.value = {}, e.value = [], d.value = [],
|
|
2498
|
+
n.value = {}, e.value = [], d.value = [], k.value = {};
|
|
2495
2499
|
},
|
|
2496
|
-
deleteRule: (
|
|
2497
|
-
delete
|
|
2500
|
+
deleteRule: (y) => {
|
|
2501
|
+
delete k.value[y];
|
|
2498
2502
|
}
|
|
2499
2503
|
};
|
|
2500
2504
|
}, En = { class: "custom-page" }, On = {
|
|
2501
2505
|
key: 0,
|
|
2502
2506
|
class: "btn-box"
|
|
2503
|
-
},
|
|
2507
|
+
}, Bn = {
|
|
2504
2508
|
key: 1,
|
|
2505
2509
|
style: { "background-color": "#fff" }
|
|
2506
|
-
},
|
|
2510
|
+
}, An = /* @__PURE__ */ x({
|
|
2507
2511
|
__name: "App",
|
|
2508
2512
|
props: {
|
|
2509
2513
|
formConfigurationId: {},
|
|
@@ -2517,13 +2521,13 @@ const bn = { ...Ct, ...Dt }, wn = (n, e, t, i) => {
|
|
|
2517
2521
|
},
|
|
2518
2522
|
emits: ["handleClick", "change"],
|
|
2519
2523
|
setup(n, { expose: e, emit: t }) {
|
|
2520
|
-
const i =
|
|
2524
|
+
const i = qn(), { formRule: d, data: o, flowKey: g, clearData: k, getFormData: s } = i, l = n, v = t;
|
|
2521
2525
|
g.value = l.flowKey;
|
|
2522
|
-
const r = (
|
|
2523
|
-
|
|
2526
|
+
const r = (R) => R === "accordion";
|
|
2527
|
+
z(
|
|
2524
2528
|
() => o.value,
|
|
2525
|
-
(
|
|
2526
|
-
v("change",
|
|
2529
|
+
(R) => {
|
|
2530
|
+
v("change", R);
|
|
2527
2531
|
},
|
|
2528
2532
|
{
|
|
2529
2533
|
immediate: !0,
|
|
@@ -2534,32 +2538,32 @@ const bn = { ...Ct, ...Dt }, wn = (n, e, t, i) => {
|
|
|
2534
2538
|
formJsonList: h,
|
|
2535
2539
|
isShowPage: c,
|
|
2536
2540
|
btnList: _,
|
|
2537
|
-
activityKeys:
|
|
2538
|
-
getForm:
|
|
2541
|
+
activityKeys: b,
|
|
2542
|
+
getForm: w,
|
|
2539
2543
|
getBtnSet: m,
|
|
2540
|
-
handleClick:
|
|
2541
|
-
validateFormData:
|
|
2542
|
-
getFormRef:
|
|
2543
|
-
} =
|
|
2544
|
-
return
|
|
2545
|
-
l.isShowBtn == !1 ?
|
|
2544
|
+
handleClick: N,
|
|
2545
|
+
validateFormData: y,
|
|
2546
|
+
getFormRef: u
|
|
2547
|
+
} = ya(l, v, i);
|
|
2548
|
+
return Lt(async () => {
|
|
2549
|
+
l.isShowBtn == !1 ? w(l.formConfigurationId) : m();
|
|
2546
2550
|
}), e({
|
|
2547
|
-
validateFormData:
|
|
2548
|
-
clearData:
|
|
2549
|
-
}), (
|
|
2550
|
-
a(_).length > 0 ? (
|
|
2551
|
-
(
|
|
2552
|
-
|
|
2551
|
+
validateFormData: y,
|
|
2552
|
+
clearData: k
|
|
2553
|
+
}), (R, F) => (V(), J("div", En, [
|
|
2554
|
+
a(_).length > 0 ? (V(), J("div", On, [
|
|
2555
|
+
(V(!0), J(
|
|
2556
|
+
ee,
|
|
2553
2557
|
null,
|
|
2554
|
-
|
|
2555
|
-
key:
|
|
2558
|
+
ye(a(_), (I) => (V(), E(a(Tt), {
|
|
2559
|
+
key: I.id,
|
|
2556
2560
|
style: { "margin-right": "20px" },
|
|
2557
2561
|
"btn-type": "primary",
|
|
2558
|
-
onClick: (M) => a(
|
|
2562
|
+
onClick: (M) => a(N)(I)
|
|
2559
2563
|
}, {
|
|
2560
|
-
default:
|
|
2561
|
-
|
|
2562
|
-
|
|
2564
|
+
default: $(() => [
|
|
2565
|
+
ae(
|
|
2566
|
+
ne(I.name),
|
|
2563
2567
|
1
|
|
2564
2568
|
/* TEXT */
|
|
2565
2569
|
)
|
|
@@ -2571,38 +2575,38 @@ const bn = { ...Ct, ...Dt }, wn = (n, e, t, i) => {
|
|
|
2571
2575
|
/* KEYED_FRAGMENT */
|
|
2572
2576
|
))
|
|
2573
2577
|
])) : B("v-if", !0),
|
|
2574
|
-
|
|
2578
|
+
zt((V(), J(
|
|
2575
2579
|
"div",
|
|
2576
2580
|
{
|
|
2577
2581
|
class: "content-box",
|
|
2578
|
-
style:
|
|
2582
|
+
style: Mt({ margin: "0 10px", ...R.customStyle })
|
|
2579
2583
|
},
|
|
2580
2584
|
[
|
|
2581
|
-
(
|
|
2582
|
-
|
|
2585
|
+
(V(!0), J(
|
|
2586
|
+
ee,
|
|
2583
2587
|
null,
|
|
2584
|
-
|
|
2585
|
-
|
|
2588
|
+
ye(a(h), (I) => (V(), J(
|
|
2589
|
+
ee,
|
|
2586
2590
|
{
|
|
2587
|
-
key:
|
|
2591
|
+
key: I.name
|
|
2588
2592
|
},
|
|
2589
2593
|
[
|
|
2590
|
-
r(
|
|
2594
|
+
r(I.ctrlType) ? (V(), E(a(at), {
|
|
2591
2595
|
key: 0,
|
|
2592
2596
|
style: { "margin-bottom": "10px" },
|
|
2593
|
-
collapsible:
|
|
2594
|
-
activeKey: a(
|
|
2597
|
+
collapsible: I.options.accordion ? "" : "disabled",
|
|
2598
|
+
activeKey: a(b)
|
|
2595
2599
|
}, {
|
|
2596
|
-
default:
|
|
2597
|
-
(
|
|
2598
|
-
key:
|
|
2599
|
-
header:
|
|
2600
|
+
default: $(() => [
|
|
2601
|
+
(V(), E(a(nt), {
|
|
2602
|
+
key: I.key,
|
|
2603
|
+
header: I.columns[0].span
|
|
2600
2604
|
}, {
|
|
2601
|
-
default:
|
|
2602
|
-
a(c) ? (
|
|
2605
|
+
default: $(() => [
|
|
2606
|
+
a(c) ? (V(), E(a(He), {
|
|
2603
2607
|
key: 0,
|
|
2604
2608
|
ref_for: !0,
|
|
2605
|
-
ref: (M) => a(
|
|
2609
|
+
ref: (M) => a(u)(M, I),
|
|
2606
2610
|
cols: 24,
|
|
2607
2611
|
alignType: "horizontal",
|
|
2608
2612
|
"margin-right": "80px",
|
|
@@ -2610,22 +2614,22 @@ const bn = { ...Ct, ...Dt }, wn = (n, e, t, i) => {
|
|
|
2610
2614
|
rules: a(d),
|
|
2611
2615
|
form: a(i).data
|
|
2612
2616
|
}, {
|
|
2613
|
-
default:
|
|
2614
|
-
(
|
|
2615
|
-
|
|
2617
|
+
default: $(() => [
|
|
2618
|
+
(V(!0), J(
|
|
2619
|
+
ee,
|
|
2616
2620
|
null,
|
|
2617
|
-
|
|
2618
|
-
|
|
2621
|
+
ye(I.columns[0].list, (M) => (V(), J(
|
|
2622
|
+
ee,
|
|
2619
2623
|
{
|
|
2620
|
-
key:
|
|
2624
|
+
key: I.name
|
|
2621
2625
|
},
|
|
2622
2626
|
[
|
|
2623
|
-
M.ctrlType == "grid" ? (
|
|
2627
|
+
M.ctrlType == "grid" ? (V(), E(De(a(be).grid), {
|
|
2624
2628
|
key: 0,
|
|
2625
2629
|
setting: M,
|
|
2626
2630
|
isView: l.isView,
|
|
2627
2631
|
store: a(i)
|
|
2628
|
-
}, null, 8, ["setting", "isView", "store"])) : (
|
|
2632
|
+
}, null, 8, ["setting", "isView", "store"])) : (V(), E(De(a(be)[M.ctrlType]), {
|
|
2629
2633
|
key: 1,
|
|
2630
2634
|
setting: M,
|
|
2631
2635
|
isView: l.isView,
|
|
@@ -2649,11 +2653,11 @@ const bn = { ...Ct, ...Dt }, wn = (n, e, t, i) => {
|
|
|
2649
2653
|
]),
|
|
2650
2654
|
_: 2
|
|
2651
2655
|
/* DYNAMIC */
|
|
2652
|
-
}, 1032, ["collapsible", "activeKey"])) : (
|
|
2653
|
-
a(c) ? (
|
|
2656
|
+
}, 1032, ["collapsible", "activeKey"])) : (V(), J("div", Bn, [
|
|
2657
|
+
a(c) ? (V(), E(a(He), {
|
|
2654
2658
|
key: 0,
|
|
2655
2659
|
ref_for: !0,
|
|
2656
|
-
ref: (M) => a(
|
|
2660
|
+
ref: (M) => a(u)(M, I),
|
|
2657
2661
|
cols: 24,
|
|
2658
2662
|
"auto-margin-right": "",
|
|
2659
2663
|
alignType: "horizontal",
|
|
@@ -2661,9 +2665,9 @@ const bn = { ...Ct, ...Dt }, wn = (n, e, t, i) => {
|
|
|
2661
2665
|
rules: a(d),
|
|
2662
2666
|
form: a(i).data
|
|
2663
2667
|
}, {
|
|
2664
|
-
default:
|
|
2665
|
-
(
|
|
2666
|
-
setting:
|
|
2668
|
+
default: $(() => [
|
|
2669
|
+
(V(), E(De(a(be)[I.ctrlType]), {
|
|
2670
|
+
setting: I,
|
|
2667
2671
|
isView: l.isView,
|
|
2668
2672
|
store: a(i)
|
|
2669
2673
|
}, null, 8, ["setting", "isView", "store"]))
|
|
@@ -2683,11 +2687,11 @@ const bn = { ...Ct, ...Dt }, wn = (n, e, t, i) => {
|
|
|
2683
2687
|
4
|
|
2684
2688
|
/* STYLE */
|
|
2685
2689
|
)), [
|
|
2686
|
-
[a(
|
|
2690
|
+
[a(Rt)]
|
|
2687
2691
|
])
|
|
2688
2692
|
]));
|
|
2689
2693
|
}
|
|
2690
|
-
}),
|
|
2694
|
+
}), Qn = /* @__PURE__ */ Ne(An, [["__scopeId", "data-v-ce01ee82"]]), Un = {
|
|
2691
2695
|
姓名: { "zh-CN": "姓名", en: "Name", _appCode: "framework" },
|
|
2692
2696
|
状态: { "zh-CN": "状态", en: "Status", _appCode: "framework" },
|
|
2693
2697
|
组织名称: { "zh-CN": "组织名称", en: "Organization Name", _appCode: "framework" },
|
|
@@ -2810,9 +2814,9 @@ const bn = { ...Ct, ...Dt }, wn = (n, e, t, i) => {
|
|
|
2810
2814
|
请选择: { "zh-CN": "请选择", en: "Please select", _appCode: "framework" },
|
|
2811
2815
|
报修位置: { "zh-CN": "报修位置", en: "Repair Location", _appCode: "framework" }
|
|
2812
2816
|
};
|
|
2813
|
-
|
|
2814
|
-
const
|
|
2817
|
+
jt(Un);
|
|
2818
|
+
const ms = St(Qn);
|
|
2815
2819
|
export {
|
|
2816
|
-
|
|
2817
|
-
|
|
2820
|
+
ms as DasProcessForm,
|
|
2821
|
+
ms as default
|
|
2818
2822
|
};
|