@das-fed/ui 6.4.0-dev.30 → 6.4.0-dev.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +5 -5
- package/packages/business-components/process-form/App.vue.d.ts +1 -0
- package/packages/business-components/process-form/index.d.ts +1 -0
- package/packages/business-components/process-form/index.js +514 -504
- package/packages/business-components/process-form/index.js.gz +0 -0
- package/packages/business-components/process-form/style.css +1 -1
- package/packages/business-components/process-form/type.d.ts +2 -0
- package/packages/business-components/process-table/index.js +156 -150
- package/packages/business-components/process-table/index.js.gz +0 -0
|
@@ -1,48 +1,50 @@
|
|
|
1
1
|
import '@das-fed/ui/packages/business-components/process-form/style.css';
|
|
2
|
-
import { withInstall as
|
|
3
|
-
import { ref as r, defineComponent as
|
|
4
|
-
import { DasFormRef as
|
|
5
|
-
import { DasButton as
|
|
6
|
-
import { vOverlay as
|
|
2
|
+
import { withInstall as lt } from "@das-fed/utils/with-install/index";
|
|
3
|
+
import { ref as r, defineComponent as B, watch as S, openBlock as b, createBlock as F, unref as o, withCtx as M, createVNode as w, createCommentVNode as k, createElementVNode as Be, createElementBlock as E, Fragment as J, createTextVNode as G, toDisplayString as X, isRef as de, createSlots as ut, h as ne, renderList as oe, resolveDynamicComponent as be, onMounted as rt, withDirectives as pt, normalizeStyle as gt } from "vue";
|
|
4
|
+
import { DasFormRef as dt, DasForm as Ie } from "@das-fed/ui/packages/components/form/index";
|
|
5
|
+
import { DasButton as ct } from "@das-fed/ui/packages/components/button/index";
|
|
6
|
+
import { vOverlay as vt } from "@das-fed/ui/packages/components/overlay/index";
|
|
7
7
|
import { createService as Y } from "@das-fed/utils/create-api-service";
|
|
8
|
-
import { DasUpload as
|
|
9
|
-
import { DasFormItem as
|
|
10
|
-
import { DasAutocomplete as
|
|
11
|
-
import
|
|
12
|
-
import { DasImageViewer as
|
|
13
|
-
import { DasInput as
|
|
14
|
-
import { DasTooltip as
|
|
15
|
-
import { DasTableColumn as
|
|
8
|
+
import { DasUpload as mt } from "@das-fed/ui/packages/components/upload/index";
|
|
9
|
+
import { DasFormItem as K } from "@das-fed/ui/packages/components/form-item/index";
|
|
10
|
+
import { DasAutocomplete as ft } from "@das-fed/ui/packages/components/autocomplete/index";
|
|
11
|
+
import re from "dayjs";
|
|
12
|
+
import { DasImageViewer as Ke } from "@das-fed/ui/packages/components/image-viewer/index";
|
|
13
|
+
import { DasInput as yt } from "@das-fed/ui/packages/components/input/index";
|
|
14
|
+
import { DasTooltip as Ne } from "@das-fed/ui/packages/components/tooltip/index";
|
|
15
|
+
import { DasTableColumn as R } from "@das-fed/ui/packages/components/table/index";
|
|
16
16
|
import { DasSearchForm as ht } from "@das-fed/ui/packages/components/search-form/index";
|
|
17
17
|
import { DasModelTableDialog as bt } from "@das-fed/ui/packages/business-components/model-table-dialog";
|
|
18
|
-
import { getProjectInfo as
|
|
19
|
-
import { i18n as
|
|
18
|
+
import { getProjectInfo as Oe } from "@das-fed/utils/common-info";
|
|
19
|
+
import { i18n as I } from "@das-fed/web/packages/i18n/index";
|
|
20
20
|
import { getConfig as _t } from "@das-fed/utils/config";
|
|
21
|
-
import { DasRichEditor as
|
|
22
|
-
import { DasCollaspe as
|
|
23
|
-
import { DasCollaspePanel as
|
|
24
|
-
const
|
|
25
|
-
Y(`/workflow/api/user/${
|
|
26
|
-
const
|
|
27
|
-
|
|
28
|
-
const
|
|
21
|
+
import { DasRichEditor as Pe } from "@das-fed/ui/packages/components/rich-editor/index";
|
|
22
|
+
import { DasCollaspe as Ee } from "@das-fed/ui/packages/components/collaspe/index";
|
|
23
|
+
import { DasCollaspePanel as Ae } from "@das-fed/ui/packages/components/collapse-panel/index";
|
|
24
|
+
const H = "v1", wt = Y(`/workflow/form/form/${H}`), Vt = Y(`/workflow/form/formDef/${H}`);
|
|
25
|
+
Y(`/workflow/api/user/${H}`);
|
|
26
|
+
const ze = Y(`/workflow/api/extend/${H}`), Dt = Y(`/workflow/flow/def/${H}`), St = Y(`/workflow/form/customQuery/${H}`), ee = Y(`/api/enterpriseright/permission/${H}`), _e = Y(`/api/space-manage/space-tree/${H}`), we = Y(`/api/supply/supplier/${H}`), Lt = Y(`/api/warehouse/vms/${H}/asset-receive`), Mt = wt.get("/formDesign"), Tt = Vt.get("/get"), Rt = ze.get("/report-config");
|
|
27
|
+
ze.get("/application-report");
|
|
28
|
+
const kt = Dt.get("/getBindRelationByDefKey"), $t = St.get("/getByAlias"), Ft = ee.get("/organization/authTree"), It = ee.post("/user/list"), qt = ee.post("/data/user-query"), jt = ee.get("/role/list"), Bt = ee.post("/data/role-ids"), Kt = ee.get("/organization/organizationpage"), Nt = ee.get("/station/list"), Ot = ee.get("/position/list"), ce = ee.post("/organization/detailbyids"), Pt = _e.get("/controller/area-children"), Et = _e.get("/controller/fuzzy-tree-all"), At = _e.get("/controller/space"), zt = we.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
|
-
}), Ut =
|
|
35
|
-
const { setDetailData: a, getFormData: l, setFormData: f, formRule: h, showData: d } = t, v = r([]), g = r([]), p = r([]), u = r(!1), c =
|
|
36
|
-
const [
|
|
37
|
-
if (
|
|
38
|
-
const U = JSON.parse(
|
|
39
|
-
|
|
40
|
-
q.formKey ===
|
|
34
|
+
}), Ut = we.get("/supplier"), Qt = we.post("/classification/list/all"), Ct = Lt.get("/receive-code"), ve = r(""), xt = (s, e, t) => {
|
|
35
|
+
const { setDetailData: a, getFormData: l, setFormData: f, formRule: h, showData: d } = t, v = r([]), g = r([]), p = r([]), u = r(!1), c = dt(), i = r([]), y = (D) => Object.keys(D).length === 0, n = async (D) => {
|
|
36
|
+
const [N, P] = await Mt({ formId: D }).run();
|
|
37
|
+
if (N) return;
|
|
38
|
+
const U = JSON.parse(P.bos);
|
|
39
|
+
ve.value = U[0].alias, g.value.length && g.value.forEach((q) => {
|
|
40
|
+
q.formKey === P.formKey && f(P.formKey, ve.value, q.id);
|
|
41
41
|
});
|
|
42
|
-
const [
|
|
43
|
-
p.value = JSON.parse(
|
|
42
|
+
const [W, Z] = await Tt({ formDefId: P.defId }).run();
|
|
43
|
+
p.value = JSON.parse(Z.value.expand).list, p.value.forEach((q) => {
|
|
44
44
|
q.columns[0].isOpen && i.value.push(q.columns[0].idKey);
|
|
45
|
-
}), g.value.length || f(
|
|
45
|
+
}), g.value.length || f(P.formKey, ve.value), y(s.data) && (u.value = !0), y(s.data) || (a(s.data), s.flowKey && (v.value = s.data.button_list ? JSON.parse(s.data.button_list) : []), u.value = !0), setTimeout(() => {
|
|
46
|
+
d.value = { ...d.value, ...s.showData };
|
|
47
|
+
}, 50);
|
|
46
48
|
};
|
|
47
49
|
return {
|
|
48
50
|
isShowPage: u,
|
|
@@ -53,21 +55,21 @@ const $t = Dt.get("/getBindRelationByDefKey"), kt = St.get("/getByAlias"), Ft =
|
|
|
53
55
|
getForm: n,
|
|
54
56
|
getBtnSet: async () => {
|
|
55
57
|
if (s.formConfigurationId) {
|
|
56
|
-
const [D,
|
|
58
|
+
const [D, N] = await Rt({ id: s.formConfigurationId }).run();
|
|
57
59
|
if (D) return;
|
|
58
|
-
g.value =
|
|
60
|
+
g.value = N.reports, v.value = N.reports[0].buttons.filter((P) => !(s.isView && P.event !== "LINK")), n(N.reports[0].formId);
|
|
59
61
|
}
|
|
60
62
|
if (s.flowKey) {
|
|
61
|
-
const [D,
|
|
63
|
+
const [D, N] = await kt({ flowKey: s.flowKey }).run();
|
|
62
64
|
if (D) return;
|
|
63
|
-
n(
|
|
65
|
+
n(N.pcForm.pcFormId);
|
|
64
66
|
}
|
|
65
67
|
},
|
|
66
68
|
handleClick: (D) => {
|
|
67
|
-
var
|
|
68
|
-
(
|
|
69
|
-
|
|
70
|
-
D.eventTarget === U.formKey && (v.value = U.buttons.filter((
|
|
69
|
+
var N;
|
|
70
|
+
(N = c.value) == null || N.validate(async (P) => {
|
|
71
|
+
P && (e("handleClick", D, l()), D.event === "LINK" && g.value.forEach((U) => {
|
|
72
|
+
D.eventTarget === U.formKey && (v.value = U.buttons.filter((W) => !(s.isView && W.event !== "LINK")), u.value = !1, h.value = {}, n(U.formId));
|
|
71
73
|
}));
|
|
72
74
|
});
|
|
73
75
|
}
|
|
@@ -75,8 +77,8 @@ const $t = Dt.get("/getBindRelationByDefKey"), kt = St.get("/getByAlias"), Ft =
|
|
|
75
77
|
}, A = (s) => {
|
|
76
78
|
var e = new RegExp("<.+?>", "g"), t = s.replace(e, "").replace(/ /g, "");
|
|
77
79
|
return t;
|
|
78
|
-
},
|
|
79
|
-
const [t, a] = await
|
|
80
|
+
}, ie = async (s, e) => {
|
|
81
|
+
const [t, a] = await $t({ alias: s }).run();
|
|
80
82
|
if (!t && a.url) {
|
|
81
83
|
const l = e.filter((g) => g.defaultType == 2), f = r({});
|
|
82
84
|
l.forEach((g) => {
|
|
@@ -92,7 +94,7 @@ const $t = Dt.get("/getBindRelationByDefKey"), kt = St.get("/getByAlias"), Ft =
|
|
|
92
94
|
}), e.value;
|
|
93
95
|
}, Yt = {
|
|
94
96
|
name: "attachment"
|
|
95
|
-
}, Jt = /* @__PURE__ */
|
|
97
|
+
}, Jt = /* @__PURE__ */ B({
|
|
96
98
|
...Yt,
|
|
97
99
|
props: {
|
|
98
100
|
setting: { default: () => ({
|
|
@@ -121,14 +123,15 @@ const $t = Dt.get("/getBindRelationByDefKey"), kt = St.get("/getByAlias"), Ft =
|
|
|
121
123
|
const g = r([{ name: "111", sizeText: "9.4KB" }]);
|
|
122
124
|
return g.value || a(e.setting.name, null), S(g, (p) => {
|
|
123
125
|
a(e.setting.name, JSON.stringify(p));
|
|
124
|
-
}), (p, u) =>
|
|
126
|
+
}), (p, u) => d.value ? (b(), F(o(K), {
|
|
127
|
+
key: 0,
|
|
125
128
|
col: e.span,
|
|
126
129
|
label: p.setting.desc,
|
|
127
130
|
type: "custom",
|
|
128
131
|
helpMessage: v.value
|
|
129
132
|
}, {
|
|
130
133
|
default: M(() => [
|
|
131
|
-
w(o(
|
|
134
|
+
w(o(mt), {
|
|
132
135
|
style: { width: "100%" },
|
|
133
136
|
modelValue: g.value,
|
|
134
137
|
"onUpdate:modelValue": u[0] || (u[0] = (c) => g.value = c)
|
|
@@ -136,16 +139,14 @@ const $t = Dt.get("/getBindRelationByDefKey"), kt = St.get("/getByAlias"), Ft =
|
|
|
136
139
|
]),
|
|
137
140
|
_: 1
|
|
138
141
|
/* STABLE */
|
|
139
|
-
}, 8, ["col", "label", "helpMessage"])),
|
|
140
|
-
[X, d.value]
|
|
141
|
-
]);
|
|
142
|
+
}, 8, ["col", "label", "helpMessage"])) : k("v-if", !0);
|
|
142
143
|
}
|
|
143
|
-
}),
|
|
144
|
+
}), Ue = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
144
145
|
__proto__: null,
|
|
145
146
|
default: Jt
|
|
146
147
|
}, Symbol.toStringTag, { value: "Module" })), Wt = {
|
|
147
148
|
name: "autocomplete"
|
|
148
|
-
}, Ht = /* @__PURE__ */
|
|
149
|
+
}, Ht = /* @__PURE__ */ B({
|
|
149
150
|
...Wt,
|
|
150
151
|
props: {
|
|
151
152
|
setting: { default: () => ({
|
|
@@ -174,7 +175,7 @@ const $t = Dt.get("/getBindRelationByDefKey"), kt = St.get("/getByAlias"), Ft =
|
|
|
174
175
|
v.value = n;
|
|
175
176
|
});
|
|
176
177
|
const g = e.setting.options.customQuery.valueBind ? e.setting.options.customQuery.valueBind : "value", p = e.setting.options.children ? e.setting.options.children : "children", u = !!e.setting.options.fillInFullPath, c = r([]);
|
|
177
|
-
e.setting.options.customQuery.alias ?
|
|
178
|
+
e.setting.options.customQuery.alias ? ie(e.setting.options.customQuery.alias, e.setting.options.customQuery.conditionfield).then((n) => {
|
|
178
179
|
c.value = n;
|
|
179
180
|
}) : c.value = e.setting.options.options;
|
|
180
181
|
const i = r();
|
|
@@ -182,20 +183,21 @@ const $t = Dt.get("/getBindRelationByDefKey"), kt = St.get("/getByAlias"), Ft =
|
|
|
182
183
|
const y = r("");
|
|
183
184
|
return y.value = l(e.setting.name) || y.value, y.value || a(e.setting.name, null), e.setting.options.validateList.length && f(e.setting.name, e.setting.options.validateList), S(y, (n) => {
|
|
184
185
|
a(e.setting.name, n.toString());
|
|
185
|
-
}), (n, m) =>
|
|
186
|
+
}), (n, m) => d.value ? (b(), F(o(K), {
|
|
187
|
+
key: 0,
|
|
186
188
|
col: e.span,
|
|
187
189
|
prop: e.setting.name,
|
|
188
190
|
modelValue: y.value,
|
|
189
|
-
"onUpdate:modelValue": m[1] || (m[1] = (
|
|
191
|
+
"onUpdate:modelValue": m[1] || (m[1] = (T) => y.value = T),
|
|
190
192
|
label: n.setting.desc,
|
|
191
193
|
type: "custom",
|
|
192
194
|
helpMessage: i.value,
|
|
193
195
|
required: v.value
|
|
194
196
|
}, {
|
|
195
197
|
default: M(() => [
|
|
196
|
-
w(o(
|
|
198
|
+
w(o(ft), {
|
|
197
199
|
modelValue: y.value,
|
|
198
|
-
"onUpdate:modelValue": m[0] || (m[0] = (
|
|
200
|
+
"onUpdate:modelValue": m[0] || (m[0] = (T) => y.value = T),
|
|
199
201
|
options: c.value,
|
|
200
202
|
isView: e.isView,
|
|
201
203
|
width: "100%",
|
|
@@ -207,16 +209,14 @@ const $t = Dt.get("/getBindRelationByDefKey"), kt = St.get("/getByAlias"), Ft =
|
|
|
207
209
|
]),
|
|
208
210
|
_: 1
|
|
209
211
|
/* STABLE */
|
|
210
|
-
}, 8, ["col", "prop", "modelValue", "label", "helpMessage", "required"])),
|
|
211
|
-
[X, d.value]
|
|
212
|
-
]);
|
|
212
|
+
}, 8, ["col", "prop", "modelValue", "label", "helpMessage", "required"])) : k("v-if", !0);
|
|
213
213
|
}
|
|
214
|
-
}),
|
|
214
|
+
}), Qe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
215
215
|
__proto__: null,
|
|
216
216
|
default: Ht
|
|
217
217
|
}, Symbol.toStringTag, { value: "Module" })), Zt = {
|
|
218
218
|
name: "checkbox"
|
|
219
|
-
}, Gt = /* @__PURE__ */
|
|
219
|
+
}, Gt = /* @__PURE__ */ B({
|
|
220
220
|
...Zt,
|
|
221
221
|
props: {
|
|
222
222
|
setting: { default: () => ({
|
|
@@ -245,7 +245,7 @@ const $t = Dt.get("/getBindRelationByDefKey"), kt = St.get("/getByAlias"), Ft =
|
|
|
245
245
|
v.value = y;
|
|
246
246
|
});
|
|
247
247
|
const g = e.setting.options.customQuery.valueBind ? e.setting.options.customQuery.valueBind : "key", p = e.setting.options.customQuery.labelBind ? e.setting.options.customQuery.labelBind : "value", u = r([]);
|
|
248
|
-
e.setting.options.customQuery.alias ?
|
|
248
|
+
e.setting.options.customQuery.alias ? ie(e.setting.options.customQuery.alias, e.setting.options.customQuery.conditionfield).then((y) => {
|
|
249
249
|
u.value = y;
|
|
250
250
|
}) : u.value = e.setting.options.options;
|
|
251
251
|
const c = r();
|
|
@@ -255,7 +255,8 @@ const $t = Dt.get("/getBindRelationByDefKey"), kt = St.get("/getByAlias"), Ft =
|
|
|
255
255
|
l(e.setting.name) && (i.value = l(e.setting.name).split(",")), e.setting.options.formulasDiyJs && (i.value = e.setting.options.formulasDiyJs.split(",")), i.value.length || i.value || a(e.setting.name, null);
|
|
256
256
|
}, 50), e.setting.options.validateList.length && f(e.setting.name, e.setting.options.validateList), S(i, (y) => {
|
|
257
257
|
a(e.setting.name, y.toString());
|
|
258
|
-
}), (y, n) =>
|
|
258
|
+
}), (y, n) => d.value ? (b(), F(o(K), {
|
|
259
|
+
key: 0,
|
|
259
260
|
col: e.span,
|
|
260
261
|
modelValue: i.value,
|
|
261
262
|
"onUpdate:modelValue": n[0] || (n[0] = (m) => i.value = m),
|
|
@@ -269,16 +270,14 @@ const $t = Dt.get("/getBindRelationByDefKey"), kt = St.get("/getByAlias"), Ft =
|
|
|
269
270
|
optionsLabelKey: o(p),
|
|
270
271
|
helpMessage: c.value,
|
|
271
272
|
required: v.value
|
|
272
|
-
}, null, 8, ["col", "modelValue", "layout", "label", "prop", "options", "isView", "optionsValueKey", "optionsLabelKey", "helpMessage", "required"])),
|
|
273
|
-
[X, d.value]
|
|
274
|
-
]);
|
|
273
|
+
}, null, 8, ["col", "modelValue", "layout", "label", "prop", "options", "isView", "optionsValueKey", "optionsLabelKey", "helpMessage", "required"])) : k("v-if", !0);
|
|
275
274
|
}
|
|
276
|
-
}),
|
|
275
|
+
}), Ce = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
277
276
|
__proto__: null,
|
|
278
277
|
default: Gt
|
|
279
278
|
}, Symbol.toStringTag, { value: "Module" })), Xt = {
|
|
280
279
|
name: "date"
|
|
281
|
-
}, ea = /* @__PURE__ */
|
|
280
|
+
}, ea = /* @__PURE__ */ B({
|
|
282
281
|
...Xt,
|
|
283
282
|
props: {
|
|
284
283
|
setting: { default: () => ({
|
|
@@ -315,11 +314,12 @@ const $t = Dt.get("/getBindRelationByDefKey"), kt = St.get("/getByAlias"), Ft =
|
|
|
315
314
|
c.value = l(e.setting.name) || e.setting.options.formulasDiyJs || c.value, c.value || a(e.setting.name, null);
|
|
316
315
|
}, 50), e.setting.options.showCurrentDate) {
|
|
317
316
|
let i = /* @__PURE__ */ new Date();
|
|
318
|
-
i.setDate(i.getDate() + e.setting.options.day), c.value =
|
|
317
|
+
i.setDate(i.getDate() + e.setting.options.day), c.value = re(i.getTime()).format(g), a(e.setting.name, c.value);
|
|
319
318
|
}
|
|
320
319
|
return e.setting.options.validateList.length && f(e.setting.name, e.setting.options.validateList), S(c, (i) => {
|
|
321
320
|
a(e.setting.name, i);
|
|
322
|
-
}), (i, y) =>
|
|
321
|
+
}), (i, y) => d.value ? (b(), F(o(K), {
|
|
322
|
+
key: 0,
|
|
323
323
|
col: e.span,
|
|
324
324
|
modelValue: c.value,
|
|
325
325
|
"onUpdate:modelValue": y[0] || (y[0] = (n) => c.value = n),
|
|
@@ -333,16 +333,14 @@ const $t = Dt.get("/getBindRelationByDefKey"), kt = St.get("/getByAlias"), Ft =
|
|
|
333
333
|
placeholder: i.setting.options.placeholder,
|
|
334
334
|
helpMessage: u.value,
|
|
335
335
|
required: v.value
|
|
336
|
-
}, null, 8, ["col", "modelValue", "label", "prop", "type", "format", "picker", "isView", "placeholder", "helpMessage", "required"])),
|
|
337
|
-
[X, d.value]
|
|
338
|
-
]);
|
|
336
|
+
}, null, 8, ["col", "modelValue", "label", "prop", "type", "format", "picker", "isView", "placeholder", "helpMessage", "required"])) : k("v-if", !0);
|
|
339
337
|
}
|
|
340
|
-
}),
|
|
338
|
+
}), xe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
341
339
|
__proto__: null,
|
|
342
340
|
default: ea
|
|
343
341
|
}, Symbol.toStringTag, { value: "Module" })), ta = {
|
|
344
342
|
name: "dropdown"
|
|
345
|
-
}, aa = /* @__PURE__ */
|
|
343
|
+
}, aa = /* @__PURE__ */ B({
|
|
346
344
|
...ta,
|
|
347
345
|
props: {
|
|
348
346
|
setting: { default: () => ({
|
|
@@ -371,7 +369,7 @@ const $t = Dt.get("/getBindRelationByDefKey"), kt = St.get("/getByAlias"), Ft =
|
|
|
371
369
|
v.value = m;
|
|
372
370
|
});
|
|
373
371
|
const g = r(""), p = 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", i = r([]);
|
|
374
|
-
e.setting.options.customQuery.alias &&
|
|
372
|
+
e.setting.options.customQuery.alias && ie(e.setting.options.customQuery.alias, e.setting.options.customQuery.conditionfield).then((m) => {
|
|
375
373
|
i.value = m;
|
|
376
374
|
});
|
|
377
375
|
const y = r();
|
|
@@ -379,12 +377,13 @@ const $t = Dt.get("/getBindRelationByDefKey"), kt = St.get("/getByAlias"), Ft =
|
|
|
379
377
|
const n = r();
|
|
380
378
|
return n.value = e.setting.options.multiple ? [] : "", e.setting.options.multiple && l(e.setting.name) ? n.value = l(e.setting.name).split(",") : n.value = l(e.setting.name) || n.value, n.value || a(e.setting.name, null), e.setting.options.validateList.length && f(e.setting.name, e.setting.options.validateList), S(n, (m) => {
|
|
381
379
|
a(e.setting.name, m.toString());
|
|
382
|
-
}), (m,
|
|
380
|
+
}), (m, T) => d.value ? (b(), F(o(K), {
|
|
381
|
+
key: 0,
|
|
383
382
|
col: e.span,
|
|
384
383
|
modelValue: n.value,
|
|
385
|
-
"onUpdate:modelValue":
|
|
384
|
+
"onUpdate:modelValue": T[0] || (T[0] = (D) => n.value = D),
|
|
386
385
|
keyword: g.value,
|
|
387
|
-
"onUpdate:keyword":
|
|
386
|
+
"onUpdate:keyword": T[1] || (T[1] = (D) => g.value = D),
|
|
388
387
|
label: m.setting.desc,
|
|
389
388
|
type: "treeSelect",
|
|
390
389
|
"node-key": m.setting.options.customQuery.valueBind,
|
|
@@ -399,16 +398,14 @@ const $t = Dt.get("/getBindRelationByDefKey"), kt = St.get("/getByAlias"), Ft =
|
|
|
399
398
|
props: { label: o(u), value: o(p), children: o(c) },
|
|
400
399
|
"check-strictly": !m.setting.options.cascade,
|
|
401
400
|
required: v.value
|
|
402
|
-
}, null, 8, ["col", "modelValue", "keyword", "label", "node-key", "placeholder", "mode", "prop", "filter", "options", "isView", "helpMessage", "props", "check-strictly", "required"])),
|
|
403
|
-
[X, d.value]
|
|
404
|
-
]);
|
|
401
|
+
}, null, 8, ["col", "modelValue", "keyword", "label", "node-key", "placeholder", "mode", "prop", "filter", "options", "isView", "helpMessage", "props", "check-strictly", "required"])) : k("v-if", !0);
|
|
405
402
|
}
|
|
406
|
-
}),
|
|
403
|
+
}), Ye = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
407
404
|
__proto__: null,
|
|
408
405
|
default: aa
|
|
409
406
|
}, Symbol.toStringTag, { value: "Module" })), sa = { class: "form-image" }, na = {
|
|
410
407
|
name: "imageViewer"
|
|
411
|
-
}, oa = /* @__PURE__ */
|
|
408
|
+
}, oa = /* @__PURE__ */ B({
|
|
412
409
|
...na,
|
|
413
410
|
props: {
|
|
414
411
|
setting: { default: () => ({
|
|
@@ -455,7 +452,8 @@ const $t = Dt.get("/getBindRelationByDefKey"), kt = St.get("/getByAlias"), Ft =
|
|
|
455
452
|
setTimeout(() => {
|
|
456
453
|
a(e.setting.name, y.join(","));
|
|
457
454
|
}, 100);
|
|
458
|
-
}), (i, y) =>
|
|
455
|
+
}), (i, y) => d.value ? (b(), F(o(K), {
|
|
456
|
+
key: 0,
|
|
459
457
|
modelValue: u.value,
|
|
460
458
|
"onUpdate:modelValue": y[2] || (y[2] = (n) => u.value = n),
|
|
461
459
|
"margin-bottom": "0",
|
|
@@ -466,8 +464,8 @@ const $t = Dt.get("/getBindRelationByDefKey"), kt = St.get("/getByAlias"), Ft =
|
|
|
466
464
|
required: v.value
|
|
467
465
|
}, {
|
|
468
466
|
default: M(() => [
|
|
469
|
-
|
|
470
|
-
w(o(
|
|
467
|
+
Be("div", sa, [
|
|
468
|
+
w(o(Ke), {
|
|
471
469
|
modelValue: u.value,
|
|
472
470
|
"onUpdate:modelValue": y[0] || (y[0] = (n) => u.value = n),
|
|
473
471
|
status: g.value,
|
|
@@ -490,16 +488,14 @@ const $t = Dt.get("/getBindRelationByDefKey"), kt = St.get("/getByAlias"), Ft =
|
|
|
490
488
|
]),
|
|
491
489
|
_: 1
|
|
492
490
|
/* STABLE */
|
|
493
|
-
}, 8, ["modelValue", "prop", "label", "helpMessage", "required"])),
|
|
494
|
-
[X, d.value]
|
|
495
|
-
]);
|
|
491
|
+
}, 8, ["modelValue", "prop", "label", "helpMessage", "required"])) : k("v-if", !0);
|
|
496
492
|
}
|
|
497
|
-
}),
|
|
493
|
+
}), ge = (s, e) => {
|
|
498
494
|
const t = s.__vccOpts || s;
|
|
499
495
|
for (const [a, l] of e)
|
|
500
496
|
t[a] = l;
|
|
501
497
|
return t;
|
|
502
|
-
}, ia = /* @__PURE__ */
|
|
498
|
+
}, ia = /* @__PURE__ */ ge(oa, [["__scopeId", "data-v-448866af"]]), Je = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
503
499
|
__proto__: null,
|
|
504
500
|
default: ia
|
|
505
501
|
}, Symbol.toStringTag, { value: "Module" })), la = (s) => {
|
|
@@ -540,18 +536,18 @@ const $t = Dt.get("/getBindRelationByDefKey"), kt = St.get("/getByAlias"), Ft =
|
|
|
540
536
|
}, ua = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
541
537
|
__proto__: null,
|
|
542
538
|
default: la
|
|
543
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
544
|
-
var
|
|
545
|
-
for (const s in
|
|
546
|
-
const e =
|
|
547
|
-
|
|
539
|
+
}, Symbol.toStringTag, { value: "Module" })), ue = {}, ra = /^\.\/(.+)\/index\.ts$/, qe = /* @__PURE__ */ Object.assign({ "./phone/index.ts": ua });
|
|
540
|
+
var je;
|
|
541
|
+
for (const s in qe) {
|
|
542
|
+
const e = qe[s], t = (je = s.match(ra)) == null ? void 0 : je[1];
|
|
543
|
+
ue[t] = e.default;
|
|
548
544
|
}
|
|
549
545
|
const pa = (s, e) => {
|
|
550
546
|
var a;
|
|
551
|
-
return e ? ((a =
|
|
547
|
+
return e ? ((a = ue[s]) == null ? void 0 : a.call(ue, e)) ?? e : "-";
|
|
552
548
|
}, ga = {
|
|
553
549
|
name: "input"
|
|
554
|
-
}, da = /* @__PURE__ */
|
|
550
|
+
}, da = /* @__PURE__ */ B({
|
|
555
551
|
...ga,
|
|
556
552
|
props: {
|
|
557
553
|
setting: { default: () => ({
|
|
@@ -586,91 +582,98 @@ const pa = (s, e) => {
|
|
|
586
582
|
u.value = l(e.setting.name) || e.setting.options.formulasDiyJs || u.value, e.setting.options.encryption && e.isView && (d.value = pa("phone", u.value)), u.value || a(e.setting.name, null);
|
|
587
583
|
}, 50), e.setting.options.validateList.length && f(e.setting.name, e.setting.options.validateList), S(u, (c) => {
|
|
588
584
|
e.setting.options.dataType === "number" && !isNaN(c) ? a(e.setting.name, Number(c)) : a(e.setting.name, c);
|
|
589
|
-
}), (c, i) =>
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
label: c.setting.desc,
|
|
595
|
-
type: "custom",
|
|
596
|
-
helpMessage: p.value,
|
|
597
|
-
required: g.value
|
|
598
|
-
}, {
|
|
599
|
-
default: M(() => [
|
|
600
|
-
e.setting.options.encryption && e.isView ? (b(), $(o(Ee), {
|
|
585
|
+
}), (c, i) => (b(), E(
|
|
586
|
+
J,
|
|
587
|
+
null,
|
|
588
|
+
[
|
|
589
|
+
v.value && e.setting.options.encryption && e.isView ? (b(), F(o(K), {
|
|
601
590
|
key: 0,
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
591
|
+
col: 6,
|
|
592
|
+
prop: e.setting.name,
|
|
593
|
+
modelValue: u.value,
|
|
594
|
+
"onUpdate:modelValue": i[1] || (i[1] = (y) => u.value = y),
|
|
595
|
+
label: c.setting.desc,
|
|
596
|
+
type: "custom",
|
|
597
|
+
helpMessage: p.value,
|
|
598
|
+
required: g.value
|
|
605
599
|
}, {
|
|
606
600
|
default: M(() => [
|
|
607
|
-
w(o(
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
disabled: c.setting.options.isInputEdit,
|
|
612
|
-
isView: c.setting.options.isReadonly || e.isView,
|
|
613
|
-
placeholder: c.setting.options.placeholder
|
|
601
|
+
w(o(Ne), {
|
|
602
|
+
placement: "top",
|
|
603
|
+
disabled: !u.value,
|
|
604
|
+
content: u.value
|
|
614
605
|
}, {
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
606
|
+
default: M(() => [
|
|
607
|
+
w(o(yt), {
|
|
608
|
+
modelValue: d.value,
|
|
609
|
+
"onUpdate:modelValue": i[0] || (i[0] = (y) => d.value = y),
|
|
610
|
+
width: c.setting.options.width,
|
|
611
|
+
disabled: c.setting.options.isInputEdit,
|
|
612
|
+
isView: c.setting.options.isReadonly || e.isView,
|
|
613
|
+
placeholder: c.setting.options.placeholder
|
|
614
|
+
}, {
|
|
615
|
+
prepend: M(() => [
|
|
616
|
+
G(
|
|
617
|
+
X(c.setting.options.bindPreAndSufFixjson.preFix),
|
|
618
|
+
1
|
|
619
|
+
/* TEXT */
|
|
620
|
+
)
|
|
621
|
+
]),
|
|
622
|
+
append: M(() => [
|
|
623
|
+
G(
|
|
624
|
+
X(c.setting.options.bindPreAndSufFixjson.sufSix),
|
|
625
|
+
1
|
|
626
|
+
/* TEXT */
|
|
627
|
+
)
|
|
628
|
+
]),
|
|
629
|
+
_: 1
|
|
630
|
+
/* STABLE */
|
|
631
|
+
}, 8, ["modelValue", "width", "disabled", "isView", "placeholder"])
|
|
628
632
|
]),
|
|
629
633
|
_: 1
|
|
630
634
|
/* STABLE */
|
|
631
|
-
}, 8, ["
|
|
635
|
+
}, 8, ["disabled", "content"])
|
|
632
636
|
]),
|
|
633
637
|
_: 1
|
|
634
638
|
/* STABLE */
|
|
635
|
-
}, 8, ["
|
|
639
|
+
}, 8, ["prop", "modelValue", "label", "helpMessage", "required"])) : k("v-if", !0),
|
|
640
|
+
v.value && (!e.setting.options.encryption || !e.isView) ? (b(), F(o(K), {
|
|
636
641
|
key: 1,
|
|
642
|
+
col: 6,
|
|
637
643
|
modelValue: u.value,
|
|
638
|
-
"onUpdate:modelValue": i[
|
|
644
|
+
"onUpdate:modelValue": i[2] || (i[2] = (y) => u.value = y),
|
|
639
645
|
width: c.setting.options.width,
|
|
640
646
|
disabled: c.setting.options.isInputEdit,
|
|
641
647
|
isView: c.setting.options.isReadonly || e.isView,
|
|
648
|
+
prop: e.setting.name,
|
|
649
|
+
label: c.setting.desc,
|
|
650
|
+
type: "input",
|
|
651
|
+
helpMessage: p.value,
|
|
652
|
+
required: g.value,
|
|
642
653
|
placeholder: c.setting.options.placeholder
|
|
643
654
|
}, {
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
append: M(() => [
|
|
652
|
-
J(
|
|
653
|
-
W(c.setting.options.bindPreAndSufFixjson.sufSix),
|
|
654
|
-
1
|
|
655
|
-
/* TEXT */
|
|
656
|
-
)
|
|
655
|
+
default: M(() => [
|
|
656
|
+
k(` <DasInput\r
|
|
657
|
+
v-model="inputValue"\r
|
|
658
|
+
>\r
|
|
659
|
+
<template #prepend>{{ setting.options.bindPreAndSufFixjson.preFix }}</template>\r
|
|
660
|
+
<template #append>{{ setting.options.bindPreAndSufFixjson.sufSix }}</template>\r
|
|
661
|
+
</DasInput> `)
|
|
657
662
|
]),
|
|
658
663
|
_: 1
|
|
659
664
|
/* STABLE */
|
|
660
|
-
}, 8, ["modelValue", "width", "disabled", "isView", "placeholder"]))
|
|
661
|
-
]
|
|
662
|
-
|
|
663
|
-
/*
|
|
664
|
-
|
|
665
|
-
[X, v.value]
|
|
666
|
-
]);
|
|
665
|
+
}, 8, ["modelValue", "width", "disabled", "isView", "prop", "label", "helpMessage", "required", "placeholder"])) : k("v-if", !0)
|
|
666
|
+
],
|
|
667
|
+
64
|
|
668
|
+
/* STABLE_FRAGMENT */
|
|
669
|
+
));
|
|
667
670
|
}
|
|
668
|
-
}),
|
|
671
|
+
}), We = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
669
672
|
__proto__: null,
|
|
670
673
|
default: da
|
|
671
674
|
}, Symbol.toStringTag, { value: "Module" })), ca = {
|
|
672
675
|
name: "number"
|
|
673
|
-
}, va = /* @__PURE__ */
|
|
676
|
+
}, va = /* @__PURE__ */ B({
|
|
674
677
|
...ca,
|
|
675
678
|
props: {
|
|
676
679
|
setting: { default: () => ({
|
|
@@ -705,7 +708,8 @@ const pa = (s, e) => {
|
|
|
705
708
|
p.value = l(e.setting.name) || e.setting.options.formulasDiyJs || p.value, p.value || a(e.setting.name, null);
|
|
706
709
|
}, 50), e.setting.options.validateList.length && f(e.setting.name, e.setting.options.validateList), S(p, (u) => {
|
|
707
710
|
a(e.setting.name, u);
|
|
708
|
-
}), (u, c) =>
|
|
711
|
+
}), (u, c) => d.value ? (b(), F(o(K), {
|
|
712
|
+
key: 0,
|
|
709
713
|
col: e.span,
|
|
710
714
|
modelValue: p.value,
|
|
711
715
|
"onUpdate:modelValue": c[0] || (c[0] = (i) => p.value = i),
|
|
@@ -720,16 +724,14 @@ const pa = (s, e) => {
|
|
|
720
724
|
precision: u.setting.options.decimalDigits,
|
|
721
725
|
helpMessage: g.value,
|
|
722
726
|
required: v.value
|
|
723
|
-
}, null, 8, ["col", "modelValue", "label", "prop", "max", "min", "step", "isView", "precision", "helpMessage", "required"])),
|
|
724
|
-
[X, d.value]
|
|
725
|
-
]);
|
|
727
|
+
}, null, 8, ["col", "modelValue", "label", "prop", "max", "min", "step", "isView", "precision", "helpMessage", "required"])) : k("v-if", !0);
|
|
726
728
|
}
|
|
727
|
-
}),
|
|
729
|
+
}), He = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
728
730
|
__proto__: null,
|
|
729
731
|
default: va
|
|
730
732
|
}, Symbol.toStringTag, { value: "Module" })), ma = {
|
|
731
733
|
name: "radio"
|
|
732
|
-
}, fa = /* @__PURE__ */
|
|
734
|
+
}, fa = /* @__PURE__ */ B({
|
|
733
735
|
...ma,
|
|
734
736
|
props: {
|
|
735
737
|
setting: { default: () => ({
|
|
@@ -760,7 +762,7 @@ const pa = (s, e) => {
|
|
|
760
762
|
v.value = n;
|
|
761
763
|
});
|
|
762
764
|
const g = e.setting.options.customQuery.valueBind ? e.setting.options.customQuery.valueBind : "key", p = e.setting.options.customQuery.labelBind ? e.setting.options.customQuery.labelBind : "value", u = r([]);
|
|
763
|
-
e.setting.options.customQuery.alias ?
|
|
765
|
+
e.setting.options.customQuery.alias ? ie(e.setting.options.customQuery.alias, e.setting.options.customQuery.conditionfield).then((n) => {
|
|
764
766
|
u.value = n;
|
|
765
767
|
}) : u.value = e.setting.options.options;
|
|
766
768
|
const c = r();
|
|
@@ -779,11 +781,12 @@ const pa = (s, e) => {
|
|
|
779
781
|
}
|
|
780
782
|
});
|
|
781
783
|
};
|
|
782
|
-
return (n, m) =>
|
|
784
|
+
return (n, m) => d.value ? (b(), F(o(K), {
|
|
785
|
+
key: 0,
|
|
783
786
|
onChange: y,
|
|
784
787
|
col: e.span,
|
|
785
788
|
modelValue: i.value,
|
|
786
|
-
"onUpdate:modelValue": m[0] || (m[0] = (
|
|
789
|
+
"onUpdate:modelValue": m[0] || (m[0] = (T) => i.value = T),
|
|
787
790
|
layout: n.setting.options.inline ? "vertical" : "default",
|
|
788
791
|
label: n.setting.desc,
|
|
789
792
|
type: "radio",
|
|
@@ -795,16 +798,14 @@ const pa = (s, e) => {
|
|
|
795
798
|
helpMessage: c.value,
|
|
796
799
|
required: v.value,
|
|
797
800
|
isSetTimeout: !0
|
|
798
|
-
}, null, 8, ["col", "modelValue", "layout", "label", "prop", "options", "isView", "optionsValueKey", "optionsLabelKey", "helpMessage", "required"])),
|
|
799
|
-
[X, d.value]
|
|
800
|
-
]);
|
|
801
|
+
}, null, 8, ["col", "modelValue", "layout", "label", "prop", "options", "isView", "optionsValueKey", "optionsLabelKey", "helpMessage", "required"])) : k("v-if", !0);
|
|
801
802
|
}
|
|
802
|
-
}),
|
|
803
|
+
}), Ze = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
803
804
|
__proto__: null,
|
|
804
805
|
default: fa
|
|
805
806
|
}, Symbol.toStringTag, { value: "Module" })), ya = {
|
|
806
807
|
name: "select"
|
|
807
|
-
}, ha = /* @__PURE__ */
|
|
808
|
+
}, ha = /* @__PURE__ */ B({
|
|
808
809
|
...ya,
|
|
809
810
|
props: {
|
|
810
811
|
setting: { default: () => ({
|
|
@@ -833,7 +834,7 @@ const pa = (s, e) => {
|
|
|
833
834
|
v.value = n;
|
|
834
835
|
});
|
|
835
836
|
const g = e.setting.options.customQuery.valueBind ? e.setting.options.customQuery.valueBind : "key", p = e.setting.options.customQuery.labelBind ? e.setting.options.customQuery.labelBind : "value", u = r([]);
|
|
836
|
-
e.setting.options.customQuery.alias ?
|
|
837
|
+
e.setting.options.customQuery.alias ? ie(e.setting.options.customQuery.alias, e.setting.options.customQuery.conditionfield).then((n) => {
|
|
837
838
|
u.value = n;
|
|
838
839
|
}) : u.value = e.setting.options.options;
|
|
839
840
|
const c = r();
|
|
@@ -852,10 +853,11 @@ const pa = (s, e) => {
|
|
|
852
853
|
}
|
|
853
854
|
});
|
|
854
855
|
};
|
|
855
|
-
return (n, m) =>
|
|
856
|
+
return (n, m) => d.value ? (b(), F(o(K), {
|
|
857
|
+
key: 0,
|
|
856
858
|
col: e.span,
|
|
857
859
|
modelValue: i.value,
|
|
858
|
-
"onUpdate:modelValue": m[0] || (m[0] = (
|
|
860
|
+
"onUpdate:modelValue": m[0] || (m[0] = (T) => i.value = T),
|
|
859
861
|
label: n.setting.desc,
|
|
860
862
|
onChange: y,
|
|
861
863
|
type: "select",
|
|
@@ -870,31 +872,29 @@ const pa = (s, e) => {
|
|
|
870
872
|
optionsLabelKey: o(p),
|
|
871
873
|
helpMessage: c.value,
|
|
872
874
|
required: v.value
|
|
873
|
-
}, null, 8, ["col", "modelValue", "label", "prop", "placeholder", "mode", "showSearch", "isView", "options", "optionsValueKey", "optionsLabelKey", "helpMessage", "required"])),
|
|
874
|
-
[X, d.value]
|
|
875
|
-
]);
|
|
875
|
+
}, null, 8, ["col", "modelValue", "label", "prop", "placeholder", "mode", "showSearch", "isView", "options", "optionsValueKey", "optionsLabelKey", "helpMessage", "required"])) : k("v-if", !0);
|
|
876
876
|
}
|
|
877
|
-
}),
|
|
877
|
+
}), Ge = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
878
878
|
__proto__: null,
|
|
879
879
|
default: ha
|
|
880
880
|
}, Symbol.toStringTag, { value: "Module" })), ba = (s, e) => {
|
|
881
|
-
var
|
|
882
|
-
const t =
|
|
883
|
-
user:
|
|
884
|
-
org:
|
|
885
|
-
role:
|
|
886
|
-
job:
|
|
887
|
-
post:
|
|
888
|
-
supplier:
|
|
889
|
-
source:
|
|
881
|
+
var $, C, ae, le, se;
|
|
882
|
+
const t = Oe().id, a = r(!1), l = (se = (le = (ae = (C = ($ = s == null ? void 0 : s.options) == null ? void 0 : $.selector) == null ? void 0 : C.type) == null ? void 0 : ae.alias) == null ? void 0 : le.replace("eip-", "")) == null ? void 0 : se.replace("-selector", ""), f = r([]), h = r(""), d = {
|
|
883
|
+
user: I("搜索姓名/账号/手机号").value,
|
|
884
|
+
org: I("搜索组织名称/组织编码").value,
|
|
885
|
+
role: I("搜索角色名称").value,
|
|
886
|
+
job: I("职务名称/职务编码").value,
|
|
887
|
+
post: I("搜索岗位名称/岗位编码").value,
|
|
888
|
+
supplier: I("搜索供应商编码/名称").value,
|
|
889
|
+
source: I("搜索单据编码/申请人").value
|
|
890
890
|
}, v = {
|
|
891
|
-
user:
|
|
892
|
-
org:
|
|
893
|
-
role:
|
|
894
|
-
job:
|
|
895
|
-
post:
|
|
896
|
-
supplier:
|
|
897
|
-
source:
|
|
891
|
+
user: I("用户选择器").value,
|
|
892
|
+
org: I("组织选择器").value,
|
|
893
|
+
role: I("角色选择器").value,
|
|
894
|
+
job: I("职务选择器").value,
|
|
895
|
+
post: I("岗位选择器").value,
|
|
896
|
+
supplier: I("供应商选择器").value,
|
|
897
|
+
source: I("源单选择器").value
|
|
898
898
|
}, g = {
|
|
899
899
|
user: "id",
|
|
900
900
|
org: "id",
|
|
@@ -904,24 +904,24 @@ const pa = (s, e) => {
|
|
|
904
904
|
supplier: "id",
|
|
905
905
|
source: "code"
|
|
906
906
|
}, p = {
|
|
907
|
-
1:
|
|
908
|
-
2:
|
|
909
|
-
3:
|
|
907
|
+
1: I("正常").value,
|
|
908
|
+
2: I("锁定").value,
|
|
909
|
+
3: I("禁用").value
|
|
910
910
|
}, u = {
|
|
911
|
-
0:
|
|
912
|
-
1:
|
|
911
|
+
0: I("普通").value,
|
|
912
|
+
1: I("管理员").value
|
|
913
913
|
}, c = {
|
|
914
|
-
0:
|
|
915
|
-
1:
|
|
914
|
+
0: I("无效").value,
|
|
915
|
+
1: I("有效").value
|
|
916
916
|
}, i = {
|
|
917
|
-
user:
|
|
918
|
-
org:
|
|
917
|
+
user: qt,
|
|
918
|
+
org: ce,
|
|
919
919
|
role: Bt,
|
|
920
|
-
job:
|
|
921
|
-
post:
|
|
920
|
+
job: ce,
|
|
921
|
+
post: ce,
|
|
922
922
|
supplier: Ut
|
|
923
|
-
}, y = v[l], n = r({}), m = r([]),
|
|
924
|
-
var _,
|
|
923
|
+
}, y = v[l], n = r({}), m = r([]), T = () => {
|
|
924
|
+
var _, O;
|
|
925
925
|
l === "supplier" ? (n.value = {
|
|
926
926
|
left: !1,
|
|
927
927
|
content: {
|
|
@@ -950,7 +950,7 @@ const pa = (s, e) => {
|
|
|
950
950
|
}
|
|
951
951
|
},
|
|
952
952
|
right: !1
|
|
953
|
-
},
|
|
953
|
+
}, P(), N()) : l === "source" ? (n.value = {
|
|
954
954
|
left: !1,
|
|
955
955
|
content: {
|
|
956
956
|
api: Ct,
|
|
@@ -987,7 +987,7 @@ const pa = (s, e) => {
|
|
|
987
987
|
},
|
|
988
988
|
props: {
|
|
989
989
|
inputOptions: {
|
|
990
|
-
placeholder:
|
|
990
|
+
placeholder: I("搜索组织名称")
|
|
991
991
|
}
|
|
992
992
|
}
|
|
993
993
|
},
|
|
@@ -1007,7 +1007,7 @@ const pa = (s, e) => {
|
|
|
1007
1007
|
data: []
|
|
1008
1008
|
}
|
|
1009
1009
|
}, D()), l === "role" && (n.value.content = {
|
|
1010
|
-
api:
|
|
1010
|
+
api: jt,
|
|
1011
1011
|
searchKey: "orgId",
|
|
1012
1012
|
params: {
|
|
1013
1013
|
status: 1
|
|
@@ -1033,7 +1033,7 @@ const pa = (s, e) => {
|
|
|
1033
1033
|
selectListProps: {
|
|
1034
1034
|
data: []
|
|
1035
1035
|
}
|
|
1036
|
-
}, D()), n.value.content.multiple = l === "supplier" || l === "source" ? !1 : !((
|
|
1036
|
+
}, D()), n.value.content.multiple = l === "supplier" || l === "source" ? !1 : !((O = (_ = s == null ? void 0 : s.options) == null ? void 0 : _.selector) != null && O.isSingle);
|
|
1037
1037
|
}, D = async () => {
|
|
1038
1038
|
m.value = [
|
|
1039
1039
|
{
|
|
@@ -1048,7 +1048,7 @@ const pa = (s, e) => {
|
|
|
1048
1048
|
size: "small"
|
|
1049
1049
|
}
|
|
1050
1050
|
];
|
|
1051
|
-
},
|
|
1051
|
+
}, N = async () => {
|
|
1052
1052
|
m.value = [
|
|
1053
1053
|
{
|
|
1054
1054
|
type: "searchInput",
|
|
@@ -1075,25 +1075,25 @@ const pa = (s, e) => {
|
|
|
1075
1075
|
allowClear: !0
|
|
1076
1076
|
}
|
|
1077
1077
|
];
|
|
1078
|
-
},
|
|
1078
|
+
}, P = async () => {
|
|
1079
1079
|
const _ = {
|
|
1080
1080
|
name: "",
|
|
1081
1081
|
published: 1
|
|
1082
|
-
}, [
|
|
1083
|
-
|
|
1082
|
+
}, [O, V] = await Qt(_).run();
|
|
1083
|
+
O || (m.value[1].options = V);
|
|
1084
1084
|
}, U = () => {
|
|
1085
|
-
var
|
|
1085
|
+
var O;
|
|
1086
1086
|
h.value = "", a.value = !0;
|
|
1087
1087
|
let _ = g[l];
|
|
1088
|
-
n.value.content.selectListProps.data = (
|
|
1088
|
+
n.value.content.selectListProps.data = (O = f == null ? void 0 : f.value) == null ? void 0 : O.map((V) => ({ name: V == null ? void 0 : V.label, [_]: V == null ? void 0 : V.value }));
|
|
1089
1089
|
};
|
|
1090
|
-
|
|
1091
|
-
const
|
|
1092
|
-
var _,
|
|
1090
|
+
T();
|
|
1091
|
+
const W = async () => {
|
|
1092
|
+
var _, O, V, j, z, L, x, Ve, De, Se, Le, Me, Te, Re, ke, $e, Fe;
|
|
1093
1093
|
n.value.content.params = {
|
|
1094
|
-
...(
|
|
1094
|
+
...(O = (_ = n == null ? void 0 : n.value) == null ? void 0 : _.content) == null ? void 0 : O.params,
|
|
1095
1095
|
pageIndex: 1
|
|
1096
|
-
}, (l === "user" || l === "org" || l === "post" || l === "role" || l === "job") && (n.value.content.params.name = (V = m == null ? void 0 : m.value[0]) == null ? void 0 : V.value), l === "source" && (n.value.content.params.key = (
|
|
1096
|
+
}, (l === "user" || l === "org" || l === "post" || l === "role" || l === "job") && (n.value.content.params.name = (V = m == null ? void 0 : m.value[0]) == null ? void 0 : V.value), l === "source" && (n.value.content.params.key = (j = m == null ? void 0 : m.value[0]) == null ? void 0 : j.value), l === "supplier" && (n.value.content.params.querys = [
|
|
1097
1097
|
{
|
|
1098
1098
|
property: "orgId",
|
|
1099
1099
|
value: t,
|
|
@@ -1101,25 +1101,25 @@ const pa = (s, e) => {
|
|
|
1101
1101
|
relation: "AND",
|
|
1102
1102
|
operation: "EQUAL"
|
|
1103
1103
|
}
|
|
1104
|
-
], (z = m == null ? void 0 : m.value[0]) != null && z.value && (n.value.content.params.querys = (
|
|
1104
|
+
], (z = m == null ? void 0 : m.value[0]) != null && z.value && (n.value.content.params.querys = (Le = (Ve = (x = (L = n == null ? void 0 : n.value) == null ? void 0 : L.content) == null ? void 0 : x.params) == null ? void 0 : Ve.querys) == null ? void 0 : Le.concat([
|
|
1105
1105
|
{
|
|
1106
1106
|
property: "name",
|
|
1107
|
-
value: (
|
|
1107
|
+
value: (De = m == null ? void 0 : m.value[0]) == null ? void 0 : De.value,
|
|
1108
1108
|
group: "merge",
|
|
1109
1109
|
relation: "OR",
|
|
1110
1110
|
operation: "LIKE"
|
|
1111
1111
|
},
|
|
1112
1112
|
{
|
|
1113
1113
|
property: "code",
|
|
1114
|
-
value: (
|
|
1114
|
+
value: (Se = m == null ? void 0 : m.value[0]) == null ? void 0 : Se.value,
|
|
1115
1115
|
group: "merge",
|
|
1116
1116
|
relation: "OR",
|
|
1117
1117
|
operation: "LIKE"
|
|
1118
1118
|
}
|
|
1119
|
-
])), (
|
|
1119
|
+
])), (Me = m == null ? void 0 : m.value[1]) != null && Me.value && (n.value.content.params.querys = (Fe = (ke = (Re = (Te = n == null ? void 0 : n.value) == null ? void 0 : Te.content) == null ? void 0 : Re.params) == null ? void 0 : ke.querys) == null ? void 0 : Fe.concat([
|
|
1120
1120
|
{
|
|
1121
1121
|
property: "classificationId",
|
|
1122
|
-
value: (
|
|
1122
|
+
value: ($e = m == null ? void 0 : m.value[1]) == null ? void 0 : $e.value,
|
|
1123
1123
|
group: "quick",
|
|
1124
1124
|
relation: "AND",
|
|
1125
1125
|
operation: "EQUAL"
|
|
@@ -1129,11 +1129,11 @@ const pa = (s, e) => {
|
|
|
1129
1129
|
S(
|
|
1130
1130
|
() => a == null ? void 0 : a.value,
|
|
1131
1131
|
(_) => {
|
|
1132
|
-
_ ||
|
|
1132
|
+
_ || Z();
|
|
1133
1133
|
}
|
|
1134
1134
|
);
|
|
1135
|
-
const
|
|
1136
|
-
l === "supplier" ? (m.value[0].value = "", m.value[1].value = void 0) : (l === "org" || l === "user" || l === "source" || l === "post" || l === "role" || l === "job") && (m.value[0].value = ""),
|
|
1135
|
+
const Z = async () => {
|
|
1136
|
+
l === "supplier" ? (m.value[0].value = "", m.value[1].value = void 0) : (l === "org" || l === "user" || l === "source" || l === "post" || l === "role" || l === "job") && (m.value[0].value = ""), T();
|
|
1137
1137
|
};
|
|
1138
1138
|
return {
|
|
1139
1139
|
dialogVisible: a,
|
|
@@ -1147,13 +1147,13 @@ const pa = (s, e) => {
|
|
|
1147
1147
|
roleStatusMap: c,
|
|
1148
1148
|
openDialog: U,
|
|
1149
1149
|
confirm: (_) => {
|
|
1150
|
-
let
|
|
1151
|
-
f.value = _ == null ? void 0 : _.map((V) => ({ label: (V == null ? void 0 : V.name) || (V == null ? void 0 : V.code), value: V[
|
|
1150
|
+
let O = g[l];
|
|
1151
|
+
f.value = _ == null ? void 0 : _.map((V) => ({ label: (V == null ? void 0 : V.name) || (V == null ? void 0 : V.code), value: V[O] }));
|
|
1152
1152
|
},
|
|
1153
1153
|
getDetail: async (_) => {
|
|
1154
|
-
const
|
|
1154
|
+
const O = i[l];
|
|
1155
1155
|
let V = {};
|
|
1156
|
-
const
|
|
1156
|
+
const j = _ == null ? void 0 : _.split(",");
|
|
1157
1157
|
if (l === "source") {
|
|
1158
1158
|
f.value = [
|
|
1159
1159
|
{
|
|
@@ -1162,8 +1162,8 @@ const pa = (s, e) => {
|
|
|
1162
1162
|
}
|
|
1163
1163
|
];
|
|
1164
1164
|
return;
|
|
1165
|
-
} else l === "user" ? V.userIds =
|
|
1166
|
-
const [z, L] = await
|
|
1165
|
+
} else l === "user" ? V.userIds = j : l === "role" ? V.ids = j : l === "supplier" ? V.id = j : V = j;
|
|
1166
|
+
const [z, L] = await O(V).run();
|
|
1167
1167
|
z || (l === "supplier" ? f.value = [
|
|
1168
1168
|
{
|
|
1169
1169
|
label: (L == null ? void 0 : L.name) || (L == null ? void 0 : L.code),
|
|
@@ -1171,7 +1171,7 @@ const pa = (s, e) => {
|
|
|
1171
1171
|
}
|
|
1172
1172
|
] : f.value = L == null ? void 0 : L.map((x) => ({ label: (x == null ? void 0 : x.name) || (x == null ? void 0 : x.code), value: x == null ? void 0 : x.id })));
|
|
1173
1173
|
},
|
|
1174
|
-
searchData:
|
|
1174
|
+
searchData: W,
|
|
1175
1175
|
searchOptions: m
|
|
1176
1176
|
};
|
|
1177
1177
|
}, _a = () => {
|
|
@@ -1188,7 +1188,7 @@ const pa = (s, e) => {
|
|
|
1188
1188
|
let g = {
|
|
1189
1189
|
pageSize: 1e4,
|
|
1190
1190
|
pageIndex: 1,
|
|
1191
|
-
projectId:
|
|
1191
|
+
projectId: Oe().id,
|
|
1192
1192
|
//项目id
|
|
1193
1193
|
spaceId: ""
|
|
1194
1194
|
// orgId:getProjectInfo().id
|
|
@@ -1215,7 +1215,7 @@ const pa = (s, e) => {
|
|
|
1215
1215
|
};
|
|
1216
1216
|
}, wa = { class: "table-search-process-top" }, Va = {
|
|
1217
1217
|
name: "selector"
|
|
1218
|
-
}, Da = /* @__PURE__ */
|
|
1218
|
+
}, Da = /* @__PURE__ */ B({
|
|
1219
1219
|
...Va,
|
|
1220
1220
|
props: {
|
|
1221
1221
|
setting: { default: () => ({
|
|
@@ -1248,39 +1248,39 @@ const pa = (s, e) => {
|
|
|
1248
1248
|
selectOptions: y,
|
|
1249
1249
|
userStatusMap: n,
|
|
1250
1250
|
roleTypeMap: m,
|
|
1251
|
-
roleStatusMap:
|
|
1251
|
+
roleStatusMap: T,
|
|
1252
1252
|
openDialog: D,
|
|
1253
|
-
confirm:
|
|
1254
|
-
getDetail:
|
|
1253
|
+
confirm: N,
|
|
1254
|
+
getDetail: P,
|
|
1255
1255
|
searchData: U,
|
|
1256
|
-
searchOptions:
|
|
1257
|
-
} = ba(e.setting, f), { spacePath:
|
|
1256
|
+
searchOptions: W
|
|
1257
|
+
} = ba(e.setting, f), { spacePath: Z, spaceName: q, searchSpace: te, changeSpace: $, spaceLoad: C, filterSpaceTree: ae, getSpaceDetail: le } = _a(), se = r(!1);
|
|
1258
1258
|
Q(e.setting.options.validateList).then((V) => {
|
|
1259
|
-
|
|
1259
|
+
se.value = V;
|
|
1260
1260
|
});
|
|
1261
|
-
const _ = r(""),
|
|
1262
|
-
return e.setting.options.tip && (
|
|
1263
|
-
_.value = V.map((
|
|
1264
|
-
})) : (_.value = l(e.setting.name) ? l(e.setting.name) : _.value, _.value &&
|
|
1261
|
+
const _ = r(""), O = r();
|
|
1262
|
+
return e.setting.options.tip && (O.value = A(e.setting.options.tip)), e.setting.options.validateList.length && h(e.setting.name, e.setting.options.validateList), i !== "position" ? (_.value = l(e.setting.name) ? l(e.setting.name) : _.value, _.value && P(_.value), _.value.length || a(e.setting.name, null), S(y, (V) => {
|
|
1263
|
+
_.value = V.map((j) => j.value).toString(), a(e.setting.name, _.value);
|
|
1264
|
+
})) : (_.value = l(e.setting.name) ? l(e.setting.name) : _.value, _.value && le(_.value), _.value || a(e.setting.name, null), S(_, (V) => {
|
|
1265
1265
|
a(e.setting.name, V);
|
|
1266
1266
|
}), S(q, (V) => {
|
|
1267
1267
|
a(e.setting.options.selector.type.positionName, V);
|
|
1268
|
-
})), (V,
|
|
1269
|
-
|
|
1268
|
+
})), (V, j) => (b(), E(
|
|
1269
|
+
J,
|
|
1270
1270
|
null,
|
|
1271
1271
|
[
|
|
1272
|
-
v.value && o(i) != "position" ? (b(),
|
|
1272
|
+
v.value && o(i) != "position" ? (b(), F(o(K), {
|
|
1273
1273
|
key: 0,
|
|
1274
1274
|
col: e.span,
|
|
1275
1275
|
modelValue: _.value,
|
|
1276
|
-
"onUpdate:modelValue":
|
|
1276
|
+
"onUpdate:modelValue": j[1] || (j[1] = (z) => _.value = z),
|
|
1277
1277
|
prop: e.setting.name,
|
|
1278
1278
|
label: V.setting.desc,
|
|
1279
1279
|
type: "inputDialogSelect",
|
|
1280
1280
|
options: o(y),
|
|
1281
|
-
helpMessage:
|
|
1281
|
+
helpMessage: O.value,
|
|
1282
1282
|
isView: e.isView,
|
|
1283
|
-
required:
|
|
1283
|
+
required: se.value,
|
|
1284
1284
|
onOpenDialog: o(D)
|
|
1285
1285
|
}, {
|
|
1286
1286
|
default: M(() => {
|
|
@@ -1288,21 +1288,21 @@ const pa = (s, e) => {
|
|
|
1288
1288
|
return [
|
|
1289
1289
|
w(o(bt), {
|
|
1290
1290
|
modelValue: o(g),
|
|
1291
|
-
"onUpdate:modelValue":
|
|
1291
|
+
"onUpdate:modelValue": j[0] || (j[0] = (L) => de(g) ? g.value = L : null),
|
|
1292
1292
|
options: o(c),
|
|
1293
|
-
onConfirm: o(
|
|
1293
|
+
onConfirm: o(N),
|
|
1294
1294
|
title: o(p)
|
|
1295
|
-
},
|
|
1295
|
+
}, ut({
|
|
1296
1296
|
_: 2
|
|
1297
1297
|
/* DYNAMIC */
|
|
1298
1298
|
}, [
|
|
1299
|
-
((z = o(
|
|
1299
|
+
((z = o(W)) == null ? void 0 : z.length) > 0 ? {
|
|
1300
1300
|
name: "table-header-search",
|
|
1301
1301
|
fn: M(() => [
|
|
1302
|
-
|
|
1302
|
+
Be("div", wa, [
|
|
1303
1303
|
w(o(ht), {
|
|
1304
1304
|
labelLength: "6",
|
|
1305
|
-
options: o(
|
|
1305
|
+
options: o(W),
|
|
1306
1306
|
onConfirm: o(U),
|
|
1307
1307
|
"is-margin-right": !1
|
|
1308
1308
|
}, null, 8, ["options", "onConfirm"])
|
|
@@ -1313,27 +1313,27 @@ const pa = (s, e) => {
|
|
|
1313
1313
|
o(i) === "user" ? {
|
|
1314
1314
|
name: "table-column",
|
|
1315
1315
|
fn: M(() => [
|
|
1316
|
-
w(o(
|
|
1316
|
+
w(o(R), {
|
|
1317
1317
|
label: "姓名",
|
|
1318
1318
|
prop: "name"
|
|
1319
1319
|
}),
|
|
1320
|
-
w(o(
|
|
1320
|
+
w(o(R), {
|
|
1321
1321
|
label: "账号",
|
|
1322
1322
|
prop: "userName"
|
|
1323
1323
|
}),
|
|
1324
|
-
w(o(
|
|
1324
|
+
w(o(R), {
|
|
1325
1325
|
label: "手机号",
|
|
1326
1326
|
prop: "sensitivePhone"
|
|
1327
1327
|
}, {
|
|
1328
1328
|
default: M(({ row: L }) => [
|
|
1329
|
-
w(o(
|
|
1329
|
+
w(o(Ne), {
|
|
1330
1330
|
placement: "top",
|
|
1331
1331
|
content: L.phone,
|
|
1332
1332
|
disabled: !L.phone
|
|
1333
1333
|
}, {
|
|
1334
1334
|
default: M(() => [
|
|
1335
|
-
|
|
1336
|
-
|
|
1335
|
+
G(
|
|
1336
|
+
X(L.sensitivePhone || "-"),
|
|
1337
1337
|
1
|
|
1338
1338
|
/* TEXT */
|
|
1339
1339
|
)
|
|
@@ -1345,10 +1345,10 @@ const pa = (s, e) => {
|
|
|
1345
1345
|
_: 1
|
|
1346
1346
|
/* STABLE */
|
|
1347
1347
|
}),
|
|
1348
|
-
w(o(
|
|
1348
|
+
w(o(R), { label: "状态" }, {
|
|
1349
1349
|
default: M(({ row: L }) => [
|
|
1350
|
-
|
|
1351
|
-
|
|
1350
|
+
G(
|
|
1351
|
+
X(o(n)[L.status]),
|
|
1352
1352
|
1
|
|
1353
1353
|
/* TEXT */
|
|
1354
1354
|
)
|
|
@@ -1362,15 +1362,15 @@ const pa = (s, e) => {
|
|
|
1362
1362
|
o(i) === "org" ? {
|
|
1363
1363
|
name: "table-column",
|
|
1364
1364
|
fn: M(() => [
|
|
1365
|
-
w(o(
|
|
1365
|
+
w(o(R), {
|
|
1366
1366
|
label: "组织名称",
|
|
1367
1367
|
prop: "name"
|
|
1368
1368
|
}),
|
|
1369
|
-
w(o(
|
|
1369
|
+
w(o(R), {
|
|
1370
1370
|
label: "组织编码",
|
|
1371
1371
|
prop: "code"
|
|
1372
1372
|
}),
|
|
1373
|
-
w(o(
|
|
1373
|
+
w(o(R), {
|
|
1374
1374
|
label: "组织类型",
|
|
1375
1375
|
prop: "typeName"
|
|
1376
1376
|
})
|
|
@@ -1380,14 +1380,14 @@ const pa = (s, e) => {
|
|
|
1380
1380
|
o(i) === "role" ? {
|
|
1381
1381
|
name: "table-column",
|
|
1382
1382
|
fn: M(() => [
|
|
1383
|
-
w(o(
|
|
1383
|
+
w(o(R), {
|
|
1384
1384
|
label: "角色名称",
|
|
1385
1385
|
prop: "name"
|
|
1386
1386
|
}),
|
|
1387
|
-
w(o(
|
|
1387
|
+
w(o(R), { label: "角色类型" }, {
|
|
1388
1388
|
default: M(({ row: L }) => [
|
|
1389
|
-
|
|
1390
|
-
|
|
1389
|
+
G(
|
|
1390
|
+
X(o(m)[L.type]),
|
|
1391
1391
|
1
|
|
1392
1392
|
/* TEXT */
|
|
1393
1393
|
)
|
|
@@ -1395,10 +1395,10 @@ const pa = (s, e) => {
|
|
|
1395
1395
|
_: 1
|
|
1396
1396
|
/* STABLE */
|
|
1397
1397
|
}),
|
|
1398
|
-
w(o(
|
|
1398
|
+
w(o(R), { label: "角色状态" }, {
|
|
1399
1399
|
default: M(({ row: L }) => [
|
|
1400
|
-
|
|
1401
|
-
|
|
1400
|
+
G(
|
|
1401
|
+
X(o(T)[L.status]),
|
|
1402
1402
|
1
|
|
1403
1403
|
/* TEXT */
|
|
1404
1404
|
)
|
|
@@ -1412,15 +1412,15 @@ const pa = (s, e) => {
|
|
|
1412
1412
|
o(i) === "job" ? {
|
|
1413
1413
|
name: "table-column",
|
|
1414
1414
|
fn: M(() => [
|
|
1415
|
-
w(o(
|
|
1415
|
+
w(o(R), {
|
|
1416
1416
|
label: "职务名称",
|
|
1417
1417
|
prop: "name"
|
|
1418
1418
|
}),
|
|
1419
|
-
w(o(
|
|
1419
|
+
w(o(R), {
|
|
1420
1420
|
label: "职务编码",
|
|
1421
1421
|
prop: "code"
|
|
1422
1422
|
}),
|
|
1423
|
-
w(o(
|
|
1423
|
+
w(o(R), {
|
|
1424
1424
|
label: "所属组织路径",
|
|
1425
1425
|
prop: "groupName"
|
|
1426
1426
|
})
|
|
@@ -1430,15 +1430,15 @@ const pa = (s, e) => {
|
|
|
1430
1430
|
o(i) === "post" ? {
|
|
1431
1431
|
name: "table-column",
|
|
1432
1432
|
fn: M(() => [
|
|
1433
|
-
w(o(
|
|
1433
|
+
w(o(R), {
|
|
1434
1434
|
label: "岗位名称",
|
|
1435
1435
|
prop: "name"
|
|
1436
1436
|
}),
|
|
1437
|
-
w(o(
|
|
1437
|
+
w(o(R), {
|
|
1438
1438
|
label: "岗位编码",
|
|
1439
1439
|
prop: "code"
|
|
1440
1440
|
}),
|
|
1441
|
-
w(o(
|
|
1441
|
+
w(o(R), {
|
|
1442
1442
|
label: "所属组织路径",
|
|
1443
1443
|
prop: "groupName"
|
|
1444
1444
|
})
|
|
@@ -1448,41 +1448,41 @@ const pa = (s, e) => {
|
|
|
1448
1448
|
o(i) === "supplier" ? {
|
|
1449
1449
|
name: "table-column",
|
|
1450
1450
|
fn: M(() => [
|
|
1451
|
-
w(o(
|
|
1451
|
+
w(o(R), {
|
|
1452
1452
|
type: "index",
|
|
1453
1453
|
width: "50"
|
|
1454
1454
|
}),
|
|
1455
|
-
w(o(
|
|
1455
|
+
w(o(R), {
|
|
1456
1456
|
label: "供应商名称",
|
|
1457
1457
|
prop: "name"
|
|
1458
1458
|
}),
|
|
1459
|
-
w(o(
|
|
1459
|
+
w(o(R), {
|
|
1460
1460
|
label: "供应商编码",
|
|
1461
1461
|
prop: "code"
|
|
1462
1462
|
}),
|
|
1463
|
-
w(o(
|
|
1463
|
+
w(o(R), {
|
|
1464
1464
|
label: "供应商等级",
|
|
1465
1465
|
prop: "supplierLevel"
|
|
1466
1466
|
}),
|
|
1467
|
-
w(o(
|
|
1467
|
+
w(o(R), {
|
|
1468
1468
|
label: "供应商分类",
|
|
1469
1469
|
prop: "classificationName"
|
|
1470
1470
|
}, {
|
|
1471
1471
|
default: M(() => [
|
|
1472
|
-
|
|
1472
|
+
k(` <template #default="{row}">\r
|
|
1473
1473
|
{{ getSupplierName(row) }}\r
|
|
1474
1474
|
</template> `)
|
|
1475
1475
|
]),
|
|
1476
1476
|
_: 1
|
|
1477
1477
|
/* STABLE */
|
|
1478
1478
|
}),
|
|
1479
|
-
w(o(
|
|
1479
|
+
w(o(R), {
|
|
1480
1480
|
label: "个人/公司",
|
|
1481
1481
|
prop: "businessType"
|
|
1482
1482
|
}, {
|
|
1483
1483
|
default: M(({ row: L }) => [
|
|
1484
|
-
|
|
1485
|
-
|
|
1484
|
+
G(
|
|
1485
|
+
X(L.businessType == "COMPANY" ? "公司" : "个人"),
|
|
1486
1486
|
1
|
|
1487
1487
|
/* TEXT */
|
|
1488
1488
|
)
|
|
@@ -1496,29 +1496,29 @@ const pa = (s, e) => {
|
|
|
1496
1496
|
o(i) === "source" ? {
|
|
1497
1497
|
name: "table-column",
|
|
1498
1498
|
fn: M(() => [
|
|
1499
|
-
w(o(
|
|
1499
|
+
w(o(R), {
|
|
1500
1500
|
type: "index",
|
|
1501
1501
|
width: "50"
|
|
1502
1502
|
}),
|
|
1503
|
-
w(o(
|
|
1503
|
+
w(o(R), {
|
|
1504
1504
|
label: "单据编码",
|
|
1505
1505
|
prop: "code"
|
|
1506
1506
|
}),
|
|
1507
|
-
w(o(
|
|
1507
|
+
w(o(R), {
|
|
1508
1508
|
label: "申请人",
|
|
1509
1509
|
prop: "userName"
|
|
1510
1510
|
}),
|
|
1511
|
-
w(o(
|
|
1511
|
+
w(o(R), {
|
|
1512
1512
|
label: "联系电话",
|
|
1513
1513
|
prop: "phone"
|
|
1514
1514
|
}),
|
|
1515
|
-
w(o(
|
|
1515
|
+
w(o(R), {
|
|
1516
1516
|
label: "计划领用日期",
|
|
1517
1517
|
prop: "claimingDate"
|
|
1518
1518
|
}, {
|
|
1519
1519
|
default: M(({ row: L }) => [
|
|
1520
|
-
|
|
1521
|
-
|
|
1520
|
+
G(
|
|
1521
|
+
X(L.claimingDate ? o(re)(Number(L == null ? void 0 : L.claimingDate)).format("YYYY/MM/DD") : "-"),
|
|
1522
1522
|
1
|
|
1523
1523
|
/* TEXT */
|
|
1524
1524
|
)
|
|
@@ -1526,7 +1526,7 @@ const pa = (s, e) => {
|
|
|
1526
1526
|
_: 1
|
|
1527
1527
|
/* STABLE */
|
|
1528
1528
|
}),
|
|
1529
|
-
w(o(
|
|
1529
|
+
w(o(R), {
|
|
1530
1530
|
label: "资产用途",
|
|
1531
1531
|
prop: "purpose"
|
|
1532
1532
|
})
|
|
@@ -1538,8 +1538,8 @@ const pa = (s, e) => {
|
|
|
1538
1538
|
}),
|
|
1539
1539
|
_: 1
|
|
1540
1540
|
/* STABLE */
|
|
1541
|
-
}, 8, ["col", "modelValue", "prop", "label", "options", "helpMessage", "isView", "required", "onOpenDialog"])) :
|
|
1542
|
-
v.value && o(i) == "position" ? (b(),
|
|
1541
|
+
}, 8, ["col", "modelValue", "prop", "label", "options", "helpMessage", "isView", "required", "onOpenDialog"])) : k("v-if", !0),
|
|
1542
|
+
v.value && o(i) == "position" ? (b(), F(o(K), {
|
|
1543
1543
|
key: 1,
|
|
1544
1544
|
col: e.span,
|
|
1545
1545
|
label: V.setting.desc,
|
|
@@ -1547,29 +1547,29 @@ const pa = (s, e) => {
|
|
|
1547
1547
|
type: "treeSelect",
|
|
1548
1548
|
"node-key": "id",
|
|
1549
1549
|
showFullPath: !0,
|
|
1550
|
-
helpMessage:
|
|
1551
|
-
required:
|
|
1550
|
+
helpMessage: O.value,
|
|
1551
|
+
required: se.value,
|
|
1552
1552
|
modelValue: _.value,
|
|
1553
|
-
"onUpdate:modelValue":
|
|
1554
|
-
keyword: o(
|
|
1555
|
-
"onUpdate:keyword":
|
|
1556
|
-
path: o(
|
|
1557
|
-
"onUpdate:path":
|
|
1553
|
+
"onUpdate:modelValue": j[2] || (j[2] = (z) => _.value = z),
|
|
1554
|
+
keyword: o(te),
|
|
1555
|
+
"onUpdate:keyword": j[3] || (j[3] = (z) => de(te) ? te.value = z : null),
|
|
1556
|
+
path: o(Z),
|
|
1557
|
+
"onUpdate:path": j[4] || (j[4] = (z) => de(Z) ? Z.value = z : null),
|
|
1558
1558
|
isView: e.isView,
|
|
1559
1559
|
load: o(C),
|
|
1560
|
-
search: o(
|
|
1560
|
+
search: o(ae),
|
|
1561
1561
|
props: {
|
|
1562
1562
|
isLeaf: "leaf",
|
|
1563
1563
|
label: "name"
|
|
1564
1564
|
},
|
|
1565
|
-
onChange: o(
|
|
1566
|
-
}, null, 8, ["col", "label", "prop", "helpMessage", "required", "modelValue", "keyword", "path", "isView", "load", "search", "onChange"])) :
|
|
1565
|
+
onChange: o($)
|
|
1566
|
+
}, null, 8, ["col", "label", "prop", "helpMessage", "required", "modelValue", "keyword", "path", "isView", "load", "search", "onChange"])) : k("v-if", !0)
|
|
1567
1567
|
],
|
|
1568
1568
|
64
|
|
1569
1569
|
/* STABLE_FRAGMENT */
|
|
1570
1570
|
));
|
|
1571
1571
|
}
|
|
1572
|
-
}), Sa = /* @__PURE__ */
|
|
1572
|
+
}), Sa = /* @__PURE__ */ ge(Da, [["__scopeId", "data-v-c2fe15eb"]]), Xe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1573
1573
|
__proto__: null,
|
|
1574
1574
|
default: Sa
|
|
1575
1575
|
}, Symbol.toStringTag, { value: "Module" })), La = {
|
|
@@ -1578,10 +1578,10 @@ const pa = (s, e) => {
|
|
|
1578
1578
|
}, Ma = {
|
|
1579
1579
|
key: 1,
|
|
1580
1580
|
style: { "margin-bottom": "10px" }
|
|
1581
|
-
},
|
|
1581
|
+
}, Ta = {
|
|
1582
1582
|
name: "soundRecording"
|
|
1583
|
-
},
|
|
1584
|
-
...
|
|
1583
|
+
}, Ra = /* @__PURE__ */ B({
|
|
1584
|
+
...Ta,
|
|
1585
1585
|
props: {
|
|
1586
1586
|
setting: { default: () => ({
|
|
1587
1587
|
icon: "",
|
|
@@ -1615,7 +1615,7 @@ const pa = (s, e) => {
|
|
|
1615
1615
|
const i = JSON.parse(l(e.setting.name));
|
|
1616
1616
|
c.value = v + i[0].url;
|
|
1617
1617
|
}
|
|
1618
|
-
return e.setting.options.validateList.length && f(e.setting.name, e.setting.options.validateList), (i, y) => e.isView && d.value ? (b(),
|
|
1618
|
+
return e.setting.options.validateList.length && f(e.setting.name, e.setting.options.validateList), (i, y) => e.isView && d.value ? (b(), F(o(K), {
|
|
1619
1619
|
key: 0,
|
|
1620
1620
|
modelValue: c.value,
|
|
1621
1621
|
"onUpdate:modelValue": y[2] || (y[2] = (n) => c.value = n),
|
|
@@ -1627,27 +1627,27 @@ const pa = (s, e) => {
|
|
|
1627
1627
|
required: g.value
|
|
1628
1628
|
}, {
|
|
1629
1629
|
default: M(() => [
|
|
1630
|
-
c.value ? (b(),
|
|
1631
|
-
w(o(
|
|
1630
|
+
c.value ? (b(), E("div", La, [
|
|
1631
|
+
w(o(Ke), {
|
|
1632
1632
|
modelValue: c.value,
|
|
1633
1633
|
"onUpdate:modelValue": y[0] || (y[0] = (n) => c.value = n),
|
|
1634
1634
|
status: p.value,
|
|
1635
1635
|
"onUpdate:status": y[1] || (y[1] = (n) => p.value = n),
|
|
1636
1636
|
required: g.value
|
|
1637
1637
|
}, null, 8, ["modelValue", "status", "required"])
|
|
1638
|
-
])) : (b(),
|
|
1638
|
+
])) : (b(), E("div", Ma, "-"))
|
|
1639
1639
|
]),
|
|
1640
1640
|
_: 1
|
|
1641
1641
|
/* STABLE */
|
|
1642
|
-
}, 8, ["modelValue", "prop", "label", "helpMessage", "required"])) :
|
|
1642
|
+
}, 8, ["modelValue", "prop", "label", "helpMessage", "required"])) : k("v-if", !0);
|
|
1643
1643
|
}
|
|
1644
|
-
}),
|
|
1644
|
+
}), ka = /* @__PURE__ */ ge(Ra, [["__scopeId", "data-v-6169bf17"]]), et = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1645
1645
|
__proto__: null,
|
|
1646
|
-
default:
|
|
1647
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1646
|
+
default: ka
|
|
1647
|
+
}, Symbol.toStringTag, { value: "Module" })), $a = {
|
|
1648
1648
|
name: "switch"
|
|
1649
|
-
}, Fa = /* @__PURE__ */
|
|
1650
|
-
|
|
1649
|
+
}, Fa = /* @__PURE__ */ B({
|
|
1650
|
+
...$a,
|
|
1651
1651
|
props: {
|
|
1652
1652
|
setting: { default: () => ({
|
|
1653
1653
|
icon: "",
|
|
@@ -1681,7 +1681,7 @@ const pa = (s, e) => {
|
|
|
1681
1681
|
p.value = l(e.setting.name) || e.setting.options.formulasDiyJs || p.value, p.value || a(e.setting.name, null);
|
|
1682
1682
|
}, 50), e.setting.options.validateList.length && f(e.setting.name, e.setting.options.validateList), S(p, (u) => {
|
|
1683
1683
|
a(e.setting.name, u);
|
|
1684
|
-
}), (u, c) => d.value ? (b(),
|
|
1684
|
+
}), (u, c) => d.value ? (b(), F(o(K), {
|
|
1685
1685
|
key: 0,
|
|
1686
1686
|
col: e.span,
|
|
1687
1687
|
modelValue: p.value,
|
|
@@ -1696,14 +1696,14 @@ const pa = (s, e) => {
|
|
|
1696
1696
|
helpMessage: g.value,
|
|
1697
1697
|
required: v.value,
|
|
1698
1698
|
isView: e.isView
|
|
1699
|
-
}, null, 8, ["col", "modelValue", "label", "prop", "activeValue", "inactiveValue", "activeText", "inactiveText", "helpMessage", "required", "isView"])) :
|
|
1699
|
+
}, null, 8, ["col", "modelValue", "label", "prop", "activeValue", "inactiveValue", "activeText", "inactiveText", "helpMessage", "required", "isView"])) : k("v-if", !0);
|
|
1700
1700
|
}
|
|
1701
|
-
}),
|
|
1701
|
+
}), tt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1702
1702
|
__proto__: null,
|
|
1703
1703
|
default: Fa
|
|
1704
1704
|
}, Symbol.toStringTag, { value: "Module" })), Ia = {
|
|
1705
1705
|
name: "text"
|
|
1706
|
-
},
|
|
1706
|
+
}, qa = /* @__PURE__ */ B({
|
|
1707
1707
|
...Ia,
|
|
1708
1708
|
props: {
|
|
1709
1709
|
setting: { default: () => ({
|
|
@@ -1732,7 +1732,7 @@ const pa = (s, e) => {
|
|
|
1732
1732
|
const g = r();
|
|
1733
1733
|
return g.value = e.setting.options.textValue, g.value = l(e.setting.name) || g.value, g.value || a(e.setting.name, null), S(g, (p) => {
|
|
1734
1734
|
a(e.setting.name, p);
|
|
1735
|
-
}), (p, u) => d.value ? (b(),
|
|
1735
|
+
}), (p, u) => d.value ? (b(), F(o(K), {
|
|
1736
1736
|
key: 0,
|
|
1737
1737
|
col: e.span,
|
|
1738
1738
|
modelValue: g.value,
|
|
@@ -1742,7 +1742,7 @@ const pa = (s, e) => {
|
|
|
1742
1742
|
helpMessage: v.value
|
|
1743
1743
|
}, {
|
|
1744
1744
|
default: M(() => [
|
|
1745
|
-
w(o(
|
|
1745
|
+
w(o(Pe), {
|
|
1746
1746
|
type: "text",
|
|
1747
1747
|
modelValue: g.value,
|
|
1748
1748
|
"onUpdate:modelValue": u[0] || (u[0] = (c) => g.value = c)
|
|
@@ -1750,15 +1750,15 @@ const pa = (s, e) => {
|
|
|
1750
1750
|
]),
|
|
1751
1751
|
_: 1
|
|
1752
1752
|
/* STABLE */
|
|
1753
|
-
}, 8, ["col", "modelValue", "label", "helpMessage"])) :
|
|
1753
|
+
}, 8, ["col", "modelValue", "label", "helpMessage"])) : k("v-if", !0);
|
|
1754
1754
|
}
|
|
1755
|
-
}),
|
|
1755
|
+
}), at = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1756
1756
|
__proto__: null,
|
|
1757
|
-
default:
|
|
1758
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1757
|
+
default: qa
|
|
1758
|
+
}, Symbol.toStringTag, { value: "Module" })), ja = {
|
|
1759
1759
|
name: "textarea"
|
|
1760
|
-
}, Ba = /* @__PURE__ */
|
|
1761
|
-
...
|
|
1760
|
+
}, Ba = /* @__PURE__ */ B({
|
|
1761
|
+
...ja,
|
|
1762
1762
|
props: {
|
|
1763
1763
|
setting: { default: () => ({
|
|
1764
1764
|
icon: "",
|
|
@@ -1794,11 +1794,11 @@ const pa = (s, e) => {
|
|
|
1794
1794
|
const u = r(), c = r();
|
|
1795
1795
|
return u.value = e.setting.options.initialFrameWidth ? e.setting.options.initialFrameWidth + "px" : "", c.value = e.setting.options.initialFrameHeight ? e.setting.options.initialFrameHeight + "px" : "", e.setting.options.validateList.length && f(e.setting.name, e.setting.options.validateList), S(p, (i) => {
|
|
1796
1796
|
a(e.setting.name, i);
|
|
1797
|
-
}), (i, y) => (b(),
|
|
1798
|
-
|
|
1797
|
+
}), (i, y) => (b(), E(
|
|
1798
|
+
J,
|
|
1799
1799
|
null,
|
|
1800
1800
|
[
|
|
1801
|
-
!i.setting.options.isEditor && d.value ? (b(),
|
|
1801
|
+
!i.setting.options.isEditor && d.value ? (b(), F(o(K), {
|
|
1802
1802
|
key: 0,
|
|
1803
1803
|
col: e.span,
|
|
1804
1804
|
label: i.setting.desc,
|
|
@@ -1816,8 +1816,8 @@ const pa = (s, e) => {
|
|
|
1816
1816
|
"show-word-limit": "",
|
|
1817
1817
|
helpMessage: g.value,
|
|
1818
1818
|
required: v.value
|
|
1819
|
-
}, null, 8, ["col", "label", "modelValue", "prop", "placeholder", "disabled", "isView", "helpMessage", "required"])) :
|
|
1820
|
-
i.setting.options.isEditor && d.value ? (b(),
|
|
1819
|
+
}, null, 8, ["col", "label", "modelValue", "prop", "placeholder", "disabled", "isView", "helpMessage", "required"])) : k("v-if", !0),
|
|
1820
|
+
i.setting.options.isEditor && d.value ? (b(), F(o(K), {
|
|
1821
1821
|
key: 1,
|
|
1822
1822
|
modelValue: p.value,
|
|
1823
1823
|
"onUpdate:modelValue": y[2] || (y[2] = (n) => p.value = n),
|
|
@@ -1830,7 +1830,7 @@ const pa = (s, e) => {
|
|
|
1830
1830
|
readOnly: e.isView
|
|
1831
1831
|
}, {
|
|
1832
1832
|
default: M(() => [
|
|
1833
|
-
w(o(
|
|
1833
|
+
w(o(Pe), {
|
|
1834
1834
|
ref: "editor",
|
|
1835
1835
|
width: u.value,
|
|
1836
1836
|
height: c.value,
|
|
@@ -1841,18 +1841,18 @@ const pa = (s, e) => {
|
|
|
1841
1841
|
]),
|
|
1842
1842
|
_: 1
|
|
1843
1843
|
/* STABLE */
|
|
1844
|
-
}, 8, ["modelValue", "prop", "contentWidth", "label", "helpMessage", "required", "readOnly"])) :
|
|
1844
|
+
}, 8, ["modelValue", "prop", "contentWidth", "label", "helpMessage", "required", "readOnly"])) : k("v-if", !0)
|
|
1845
1845
|
],
|
|
1846
1846
|
64
|
|
1847
1847
|
/* STABLE_FRAGMENT */
|
|
1848
1848
|
));
|
|
1849
1849
|
}
|
|
1850
|
-
}),
|
|
1850
|
+
}), st = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1851
1851
|
__proto__: null,
|
|
1852
1852
|
default: Ba
|
|
1853
1853
|
}, Symbol.toStringTag, { value: "Module" })), Ka = {
|
|
1854
1854
|
name: "time"
|
|
1855
|
-
}, Na = /* @__PURE__ */
|
|
1855
|
+
}, Na = /* @__PURE__ */ B({
|
|
1856
1856
|
...Ka,
|
|
1857
1857
|
props: {
|
|
1858
1858
|
setting: { default: () => ({
|
|
@@ -1884,11 +1884,11 @@ const pa = (s, e) => {
|
|
|
1884
1884
|
e.setting.options.tip && (g.value = A(e.setting.options.tip));
|
|
1885
1885
|
const p = r();
|
|
1886
1886
|
return setTimeout(() => {
|
|
1887
|
-
const u =
|
|
1888
|
-
l(e.setting.name) && (p.value = l(e.setting.name)), e.setting.options.formulasDiyJs && (p.value =
|
|
1887
|
+
const u = re().format("YYYY-MM-DD ");
|
|
1888
|
+
l(e.setting.name) && (p.value = l(e.setting.name)), e.setting.options.formulasDiyJs && (p.value = re(u + e.setting.options.formulasDiyJs)), p.value || a(e.setting.name, null);
|
|
1889
1889
|
}, 50), e.setting.options.validateList.length && f(e.setting.name, e.setting.options.validateList), S(p, (u) => {
|
|
1890
1890
|
a(e.setting.name, u);
|
|
1891
|
-
}), (u, c) => d.value ? (b(),
|
|
1891
|
+
}), (u, c) => d.value ? (b(), F(o(K), {
|
|
1892
1892
|
key: 0,
|
|
1893
1893
|
col: e.span,
|
|
1894
1894
|
modelValue: p.value,
|
|
@@ -1899,12 +1899,12 @@ const pa = (s, e) => {
|
|
|
1899
1899
|
helpMessage: g.value,
|
|
1900
1900
|
isView: e.isView,
|
|
1901
1901
|
required: v.value
|
|
1902
|
-
}, null, 8, ["col", "modelValue", "prop", "label", "helpMessage", "isView", "required"])) :
|
|
1902
|
+
}, null, 8, ["col", "modelValue", "prop", "label", "helpMessage", "isView", "required"])) : k("v-if", !0);
|
|
1903
1903
|
}
|
|
1904
|
-
}),
|
|
1904
|
+
}), nt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1905
1905
|
__proto__: null,
|
|
1906
1906
|
default: Na
|
|
1907
|
-
}, Symbol.toStringTag, { value: "Module" })), Oa =
|
|
1907
|
+
}, Symbol.toStringTag, { value: "Module" })), Oa = B({
|
|
1908
1908
|
name: "accordion",
|
|
1909
1909
|
props: {
|
|
1910
1910
|
columns: {
|
|
@@ -1923,22 +1923,22 @@ const pa = (s, e) => {
|
|
|
1923
1923
|
setup(s) {
|
|
1924
1924
|
const e = r([]), t = s.columns.map((a) => {
|
|
1925
1925
|
const l = a.list.map(
|
|
1926
|
-
(f) =>
|
|
1926
|
+
(f) => ne(pe[f.ctrlType], { setting: f, isView: s.isView, store: s.store })
|
|
1927
1927
|
);
|
|
1928
|
-
return a.isOpen == !0 && e.value.push(a.idKey),
|
|
1929
|
-
|
|
1928
|
+
return a.isOpen == !0 && e.value.push(a.idKey), ne(
|
|
1929
|
+
Ae,
|
|
1930
1930
|
{
|
|
1931
1931
|
header: a.span,
|
|
1932
1932
|
key: `${a.idKey}`
|
|
1933
1933
|
},
|
|
1934
|
-
|
|
1934
|
+
ne("div", l)
|
|
1935
1935
|
);
|
|
1936
1936
|
});
|
|
1937
|
-
return () =>
|
|
1937
|
+
return () => ne(
|
|
1938
1938
|
"div",
|
|
1939
1939
|
{ class: "accordion-layout" },
|
|
1940
|
-
|
|
1941
|
-
|
|
1940
|
+
ne(
|
|
1941
|
+
Ee,
|
|
1942
1942
|
{ activeKey: e.value, collapsible: s.options.accordion ? "" : "disabled" },
|
|
1943
1943
|
t
|
|
1944
1944
|
)
|
|
@@ -1946,7 +1946,7 @@ const pa = (s, e) => {
|
|
|
1946
1946
|
}
|
|
1947
1947
|
}), Pa = {
|
|
1948
1948
|
name: "accordion"
|
|
1949
|
-
}, Ea = /* @__PURE__ */
|
|
1949
|
+
}, Ea = /* @__PURE__ */ B({
|
|
1950
1950
|
...Pa,
|
|
1951
1951
|
props: {
|
|
1952
1952
|
setting: { default: () => ({
|
|
@@ -1975,7 +1975,7 @@ const pa = (s, e) => {
|
|
|
1975
1975
|
store: {}
|
|
1976
1976
|
},
|
|
1977
1977
|
setup(s) {
|
|
1978
|
-
return (e, t) => (b(),
|
|
1978
|
+
return (e, t) => (b(), F(o(Oa), {
|
|
1979
1979
|
columns: e.setting.columns,
|
|
1980
1980
|
options: e.setting.options,
|
|
1981
1981
|
isView: e.isView,
|
|
@@ -1988,7 +1988,7 @@ const pa = (s, e) => {
|
|
|
1988
1988
|
default: Ea
|
|
1989
1989
|
}, Symbol.toStringTag, { value: "Module" })), za = {
|
|
1990
1990
|
name: "grid"
|
|
1991
|
-
}, Ua = /* @__PURE__ */
|
|
1991
|
+
}, Ua = /* @__PURE__ */ B({
|
|
1992
1992
|
...za,
|
|
1993
1993
|
props: {
|
|
1994
1994
|
setting: { default: () => ({
|
|
@@ -2015,23 +2015,23 @@ const pa = (s, e) => {
|
|
|
2015
2015
|
},
|
|
2016
2016
|
setup(s) {
|
|
2017
2017
|
const e = s;
|
|
2018
|
-
return (t, a) => (b(),
|
|
2019
|
-
|
|
2018
|
+
return (t, a) => (b(), E(
|
|
2019
|
+
J,
|
|
2020
2020
|
null,
|
|
2021
2021
|
[
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
(b(!0),
|
|
2025
|
-
|
|
2022
|
+
k(' <GridLayout :columns="setting.columns" :isView="props.isView" :store="store"></GridLayout> '),
|
|
2023
|
+
k(' <div style="display: flex; flex-direction: row; flex-wrap: wrap; width: 100%"> '),
|
|
2024
|
+
(b(!0), E(
|
|
2025
|
+
J,
|
|
2026
2026
|
null,
|
|
2027
|
-
|
|
2028
|
-
|
|
2027
|
+
oe(t.setting.columns, (l) => (b(), E(
|
|
2028
|
+
J,
|
|
2029
2029
|
null,
|
|
2030
2030
|
[
|
|
2031
|
-
(b(!0),
|
|
2032
|
-
|
|
2031
|
+
(b(!0), E(
|
|
2032
|
+
J,
|
|
2033
2033
|
null,
|
|
2034
|
-
|
|
2034
|
+
oe(l.list, (f) => (b(), F(be(o(xa)[f.ctrlType]), {
|
|
2035
2035
|
setting: f,
|
|
2036
2036
|
isView: e.isView,
|
|
2037
2037
|
store: t.store,
|
|
@@ -2047,7 +2047,7 @@ const pa = (s, e) => {
|
|
|
2047
2047
|
256
|
|
2048
2048
|
/* UNKEYED_FRAGMENT */
|
|
2049
2049
|
)),
|
|
2050
|
-
|
|
2050
|
+
k(" </div> ")
|
|
2051
2051
|
],
|
|
2052
2052
|
2112
|
|
2053
2053
|
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
@@ -2056,12 +2056,12 @@ const pa = (s, e) => {
|
|
|
2056
2056
|
}), Qa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2057
2057
|
__proto__: null,
|
|
2058
2058
|
default: Ua
|
|
2059
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2060
|
-
Object.keys(
|
|
2061
|
-
Object.keys(
|
|
2062
|
-
Object.keys(
|
|
2063
|
-
Object.keys(
|
|
2064
|
-
const xa = { ...
|
|
2059
|
+
}, Symbol.toStringTag, { value: "Module" })), me = /* @__PURE__ */ Object.assign({ "./base/attachment.vue": Ue, "./base/autocomplete.vue": Qe, "./base/checkbox.vue": Ce, "./base/date.vue": xe, "./base/dropdown.vue": Ye, "./base/imageViewer.vue": Je, "./base/input.vue": We, "./base/number.vue": He, "./base/radio.vue": Ze, "./base/select.vue": Ge, "./base/selector.vue": Xe, "./base/soundRecording.vue": et, "./base/switch.vue": tt, "./base/text.vue": at, "./base/textarea.vue": st, "./base/time.vue": nt, "./layout/accordion/accordion.vue": Aa, "./layout/grid/gridLayout.vue": Qa }), fe = /* @__PURE__ */ Object.assign({ "./base/attachment.vue": Ue, "./base/autocomplete.vue": Qe, "./base/checkbox.vue": Ce, "./base/date.vue": xe, "./base/dropdown.vue": Ye, "./base/imageViewer.vue": Je, "./base/input.vue": We, "./base/number.vue": He, "./base/radio.vue": Ze, "./base/select.vue": Ge, "./base/selector.vue": Xe, "./base/soundRecording.vue": et, "./base/switch.vue": tt, "./base/text.vue": at, "./base/textarea.vue": st, "./base/time.vue": nt }), ye = /* @__PURE__ */ Object.assign({}), he = /* @__PURE__ */ Object.assign({}), pe = {}, ot = {}, it = {}, Ca = {};
|
|
2060
|
+
Object.keys(fe).map((s) => ot[fe[s].default.name] = fe[s].default);
|
|
2061
|
+
Object.keys(ye).map((s) => it[ye[s].default.name] = ye[s].default);
|
|
2062
|
+
Object.keys(he).map((s) => Ca[he[s].default.name] = he[s].default);
|
|
2063
|
+
Object.keys(me).map((s) => pe[me[s].default.name] = me[s].default);
|
|
2064
|
+
const xa = { ...ot, ...it }, Ya = (s, e, t, a) => {
|
|
2065
2065
|
(!e || e.toString() === "") && parseInt(e) !== 0 ? t(new Error(`${a.name}`)) : t();
|
|
2066
2066
|
}, Ja = (s, e, t, a) => {
|
|
2067
2067
|
e !== "" && e.length > parseInt(a.value) ? t(new Error(`${a.name}不能超过${a.value}`)) : t();
|
|
@@ -2142,8 +2142,8 @@ const xa = { ...ut, ...rt }, Ya = (s, e, t, a) => {
|
|
|
2142
2142
|
showData: t,
|
|
2143
2143
|
flowKey: l,
|
|
2144
2144
|
setData: (n, m) => {
|
|
2145
|
-
e.value.forEach((
|
|
2146
|
-
|
|
2145
|
+
e.value.forEach((T) => {
|
|
2146
|
+
T.formKey === f.value && (T.data[n] = m);
|
|
2147
2147
|
});
|
|
2148
2148
|
},
|
|
2149
2149
|
setDetailData: (n) => {
|
|
@@ -2152,21 +2152,21 @@ const xa = { ...ut, ...rt }, Ya = (s, e, t, a) => {
|
|
|
2152
2152
|
});
|
|
2153
2153
|
},
|
|
2154
2154
|
getData: (n) => s.value[n],
|
|
2155
|
-
setFormData: (n, m,
|
|
2155
|
+
setFormData: (n, m, T) => {
|
|
2156
2156
|
f.value = n, a.value.includes(n) ? e.value.forEach((D) => {
|
|
2157
2157
|
D.formKey === n && (s.value = D.data);
|
|
2158
2158
|
}) : (a.value.push(n), e.value.push({
|
|
2159
2159
|
formKey: n,
|
|
2160
2160
|
boKey: m,
|
|
2161
|
-
reportId:
|
|
2161
|
+
reportId: T || null,
|
|
2162
2162
|
data: {}
|
|
2163
2163
|
}));
|
|
2164
2164
|
},
|
|
2165
2165
|
getFormData: () => e.value,
|
|
2166
2166
|
setFormRule: (n, m) => {
|
|
2167
|
-
h.value[n] = [], m && m.length && m.forEach((
|
|
2167
|
+
h.value[n] = [], m && m.length && m.forEach((T) => {
|
|
2168
2168
|
h.value[n].push({
|
|
2169
|
-
validator: (D,
|
|
2169
|
+
validator: (D, N, P) => ps[T.key](D, N, P, T)
|
|
2170
2170
|
});
|
|
2171
2171
|
});
|
|
2172
2172
|
},
|
|
@@ -2180,10 +2180,10 @@ const xa = { ...ut, ...rt }, Ya = (s, e, t, a) => {
|
|
|
2180
2180
|
}, ds = { class: "custom-page" }, cs = {
|
|
2181
2181
|
key: 0,
|
|
2182
2182
|
class: "btn-box"
|
|
2183
|
-
}, vs = {
|
|
2183
|
+
}, vs = {
|
|
2184
2184
|
key: 0,
|
|
2185
2185
|
style: { "background-color": "#fff" }
|
|
2186
|
-
},
|
|
2186
|
+
}, ms = /* @__PURE__ */ B({
|
|
2187
2187
|
__name: "App",
|
|
2188
2188
|
props: {
|
|
2189
2189
|
formConfigurationId: {},
|
|
@@ -2191,7 +2191,8 @@ const xa = { ...ut, ...rt }, Ya = (s, e, t, a) => {
|
|
|
2191
2191
|
isView: { type: Boolean, default: !1 },
|
|
2192
2192
|
isShowBtn: { type: Boolean, default: !0 },
|
|
2193
2193
|
data: { default: {} },
|
|
2194
|
-
showData: { default: {} }
|
|
2194
|
+
showData: { default: {} },
|
|
2195
|
+
customStyle: { default: {} }
|
|
2195
2196
|
},
|
|
2196
2197
|
emits: ["handleClick", "change"],
|
|
2197
2198
|
setup(s, { expose: e, emit: t }) {
|
|
@@ -2208,45 +2209,45 @@ const xa = { ...ut, ...rt }, Ya = (s, e, t, a) => {
|
|
|
2208
2209
|
deep: !0
|
|
2209
2210
|
}
|
|
2210
2211
|
);
|
|
2211
|
-
const { formJsonList: i, isShowPage: y, btnList: n, formRef: m, activityKeys:
|
|
2212
|
+
const { formJsonList: i, isShowPage: y, btnList: n, formRef: m, activityKeys: T, getForm: D, getBtnSet: N, handleClick: P } = xt(
|
|
2212
2213
|
g,
|
|
2213
2214
|
p,
|
|
2214
2215
|
a
|
|
2215
|
-
), U = r({}),
|
|
2216
|
-
const { key:
|
|
2217
|
-
U.value[
|
|
2218
|
-
},
|
|
2219
|
-
let
|
|
2216
|
+
), U = r({}), W = (q, te) => {
|
|
2217
|
+
const { key: $ } = te;
|
|
2218
|
+
U.value[$] || (U.value[$] = q);
|
|
2219
|
+
}, Z = () => new Promise((q, te) => {
|
|
2220
|
+
let $ = !0;
|
|
2220
2221
|
for (const C in U.value)
|
|
2221
|
-
U.value[C].validate((
|
|
2222
|
-
|
|
2222
|
+
U.value[C].validate((ae) => {
|
|
2223
|
+
ae == !1 && ($ = !1);
|
|
2223
2224
|
});
|
|
2224
2225
|
setTimeout(() => {
|
|
2225
2226
|
q({
|
|
2226
|
-
result:
|
|
2227
|
+
result: $,
|
|
2227
2228
|
data: v()
|
|
2228
2229
|
});
|
|
2229
2230
|
}, 50);
|
|
2230
2231
|
});
|
|
2231
|
-
return
|
|
2232
|
-
g.isShowBtn == !1 ? D(g.formConfigurationId) :
|
|
2232
|
+
return rt(async () => {
|
|
2233
|
+
g.isShowBtn == !1 ? D(g.formConfigurationId) : N();
|
|
2233
2234
|
}), e({
|
|
2234
|
-
validateFormData:
|
|
2235
|
+
validateFormData: Z,
|
|
2235
2236
|
clearData: d
|
|
2236
|
-
}), (q,
|
|
2237
|
-
o(n).length > 0 ? (b(),
|
|
2238
|
-
(b(!0),
|
|
2239
|
-
|
|
2237
|
+
}), (q, te) => (b(), E("div", ds, [
|
|
2238
|
+
o(n).length > 0 ? (b(), E("div", cs, [
|
|
2239
|
+
(b(!0), E(
|
|
2240
|
+
J,
|
|
2240
2241
|
null,
|
|
2241
|
-
|
|
2242
|
-
key:
|
|
2242
|
+
oe(o(n), ($) => (b(), F(o(ct), {
|
|
2243
|
+
key: $.id,
|
|
2243
2244
|
style: { "margin-right": "20px" },
|
|
2244
2245
|
"btn-type": "primary",
|
|
2245
|
-
onClick: (C) => o(
|
|
2246
|
+
onClick: (C) => o(P)($)
|
|
2246
2247
|
}, {
|
|
2247
2248
|
default: M(() => [
|
|
2248
|
-
|
|
2249
|
-
|
|
2249
|
+
G(
|
|
2250
|
+
X($.name),
|
|
2250
2251
|
1
|
|
2251
2252
|
/* TEXT */
|
|
2252
2253
|
)
|
|
@@ -2257,101 +2258,110 @@ const xa = { ...ut, ...rt }, Ya = (s, e, t, a) => {
|
|
|
2257
2258
|
128
|
|
2258
2259
|
/* KEYED_FRAGMENT */
|
|
2259
2260
|
))
|
|
2260
|
-
])) :
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
}, null, 8, ["setting", "isView", "store"]))
|
|
2289
|
-
]),
|
|
2290
|
-
_: 2
|
|
2291
|
-
/* DYNAMIC */
|
|
2292
|
-
}, 1032, ["rules", "form"])) : E("v-if", !0)
|
|
2293
|
-
])) : E("v-if", !0),
|
|
2294
|
-
c(k.ctrlType) ? (b(), $(o(Ue), {
|
|
2295
|
-
key: 1,
|
|
2296
|
-
style: { "margin-bottom": "10px" },
|
|
2297
|
-
collapsible: k.options.accordion ? "" : "disabled",
|
|
2298
|
-
activeKey: o(R)
|
|
2299
|
-
}, {
|
|
2300
|
-
default: M(() => [
|
|
2301
|
-
(b(), $(o(Qe), {
|
|
2302
|
-
key: k.columns[0].idKey,
|
|
2303
|
-
header: k.columns[0].span
|
|
2261
|
+
])) : k("v-if", !0),
|
|
2262
|
+
pt((b(), E(
|
|
2263
|
+
"div",
|
|
2264
|
+
{
|
|
2265
|
+
class: "content-box",
|
|
2266
|
+
style: gt({ margin: "0 10px", ...q.customStyle })
|
|
2267
|
+
},
|
|
2268
|
+
[
|
|
2269
|
+
(b(!0), E(
|
|
2270
|
+
J,
|
|
2271
|
+
null,
|
|
2272
|
+
oe(o(i), ($) => (b(), E(
|
|
2273
|
+
J,
|
|
2274
|
+
{
|
|
2275
|
+
key: $.name
|
|
2276
|
+
},
|
|
2277
|
+
[
|
|
2278
|
+
u($.ctrlType) ? (b(), E("div", vs, [
|
|
2279
|
+
o(y) ? (b(), F(o(Ie), {
|
|
2280
|
+
key: 0,
|
|
2281
|
+
ref_for: !0,
|
|
2282
|
+
ref: (C) => W(C, $),
|
|
2283
|
+
cols: 24,
|
|
2284
|
+
"auto-margin-right": "",
|
|
2285
|
+
alignType: "horizontal",
|
|
2286
|
+
"margin-right": "80px",
|
|
2287
|
+
rules: o(l),
|
|
2288
|
+
form: o(a).data
|
|
2304
2289
|
}, {
|
|
2305
2290
|
default: M(() => [
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
"margin-right": "80px",
|
|
2312
|
-
"auto-margin-right": "",
|
|
2313
|
-
rules: o(l),
|
|
2314
|
-
form: o(a).data
|
|
2315
|
-
}, {
|
|
2316
|
-
default: M(() => [
|
|
2317
|
-
(b(!0), P(
|
|
2318
|
-
G,
|
|
2319
|
-
null,
|
|
2320
|
-
le(k.columns[0].list, (C) => (b(), $(we(o(de).grid), {
|
|
2321
|
-
key: k.name,
|
|
2322
|
-
setting: C,
|
|
2323
|
-
isView: g.isView,
|
|
2324
|
-
store: o(a)
|
|
2325
|
-
}, null, 8, ["setting", "isView", "store"]))),
|
|
2326
|
-
128
|
|
2327
|
-
/* KEYED_FRAGMENT */
|
|
2328
|
-
))
|
|
2329
|
-
]),
|
|
2330
|
-
_: 2
|
|
2331
|
-
/* DYNAMIC */
|
|
2332
|
-
}, 1032, ["rules", "form"])
|
|
2291
|
+
(b(), F(be(o(pe)[$.ctrlType]), {
|
|
2292
|
+
setting: $,
|
|
2293
|
+
isView: g.isView,
|
|
2294
|
+
store: o(a)
|
|
2295
|
+
}, null, 8, ["setting", "isView", "store"]))
|
|
2333
2296
|
]),
|
|
2334
2297
|
_: 2
|
|
2335
2298
|
/* DYNAMIC */
|
|
2336
|
-
}, 1032, ["
|
|
2337
|
-
]),
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2299
|
+
}, 1032, ["rules", "form"])) : k("v-if", !0)
|
|
2300
|
+
])) : k("v-if", !0),
|
|
2301
|
+
c($.ctrlType) ? (b(), F(o(Ee), {
|
|
2302
|
+
key: 1,
|
|
2303
|
+
style: { "margin-bottom": "10px" },
|
|
2304
|
+
collapsible: $.options.accordion ? "" : "disabled",
|
|
2305
|
+
activeKey: o(T)
|
|
2306
|
+
}, {
|
|
2307
|
+
default: M(() => [
|
|
2308
|
+
(b(), F(o(Ae), {
|
|
2309
|
+
key: $.columns[0].idKey,
|
|
2310
|
+
header: $.columns[0].span
|
|
2311
|
+
}, {
|
|
2312
|
+
default: M(() => [
|
|
2313
|
+
w(o(Ie), {
|
|
2314
|
+
ref_for: !0,
|
|
2315
|
+
ref: (C) => W(C, $),
|
|
2316
|
+
cols: 24,
|
|
2317
|
+
alignType: "horizontal",
|
|
2318
|
+
"margin-right": "80px",
|
|
2319
|
+
"auto-margin-right": "",
|
|
2320
|
+
rules: o(l),
|
|
2321
|
+
form: o(a).data
|
|
2322
|
+
}, {
|
|
2323
|
+
default: M(() => [
|
|
2324
|
+
(b(!0), E(
|
|
2325
|
+
J,
|
|
2326
|
+
null,
|
|
2327
|
+
oe($.columns[0].list, (C) => (b(), F(be(o(pe).grid), {
|
|
2328
|
+
key: $.name,
|
|
2329
|
+
setting: C,
|
|
2330
|
+
isView: g.isView,
|
|
2331
|
+
store: o(a)
|
|
2332
|
+
}, null, 8, ["setting", "isView", "store"]))),
|
|
2333
|
+
128
|
|
2334
|
+
/* KEYED_FRAGMENT */
|
|
2335
|
+
))
|
|
2336
|
+
]),
|
|
2337
|
+
_: 2
|
|
2338
|
+
/* DYNAMIC */
|
|
2339
|
+
}, 1032, ["rules", "form"])
|
|
2340
|
+
]),
|
|
2341
|
+
_: 2
|
|
2342
|
+
/* DYNAMIC */
|
|
2343
|
+
}, 1032, ["header"]))
|
|
2344
|
+
]),
|
|
2345
|
+
_: 2
|
|
2346
|
+
/* DYNAMIC */
|
|
2347
|
+
}, 1032, ["collapsible", "activeKey"])) : k("v-if", !0)
|
|
2348
|
+
],
|
|
2349
|
+
64
|
|
2350
|
+
/* STABLE_FRAGMENT */
|
|
2351
|
+
))),
|
|
2352
|
+
128
|
|
2353
|
+
/* KEYED_FRAGMENT */
|
|
2354
|
+
))
|
|
2355
|
+
],
|
|
2356
|
+
4
|
|
2357
|
+
/* STYLE */
|
|
2358
|
+
)), [
|
|
2359
|
+
[o(vt)]
|
|
2350
2360
|
])
|
|
2351
2361
|
]));
|
|
2352
2362
|
}
|
|
2353
|
-
}),
|
|
2363
|
+
}), fs = /* @__PURE__ */ ge(ms, [["__scopeId", "data-v-48cf92b9"]]), Ps = lt(fs);
|
|
2354
2364
|
export {
|
|
2355
|
-
|
|
2356
|
-
|
|
2365
|
+
Ps as DasProcessForm,
|
|
2366
|
+
Ps as default
|
|
2357
2367
|
};
|