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