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