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