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