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