@das-fed/upf-ui 6.4.0-dev.215 → 6.4.0-dev.216
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/ai-panel/index-B4pMosXu.js +143 -0
- package/packages/business-components/ai-panel/index-B4pMosXu.js.gz +0 -0
- package/packages/business-components/ai-panel/{index-BybM3Q9u.js → index-BgyMyjJo.js} +711 -700
- package/packages/business-components/ai-panel/index-BgyMyjJo.js.gz +0 -0
- package/packages/business-components/ai-panel/{index-CwdJKHy0.js → index-Bw7rNZmA.js} +9 -9
- package/packages/business-components/ai-panel/index-Bw7rNZmA.js.gz +0 -0
- package/packages/business-components/ai-panel/index.js +1 -1
- package/packages/business-components/device-panel/index.js +8873 -8773
- package/packages/business-components/device-panel/index.js.gz +0 -0
- package/packages/business-components/echarts/index.js +2056 -2049
- package/packages/business-components/echarts/index.js.gz +0 -0
- package/packages/business-components/process-configuration/index.js +50 -50
- package/packages/business-components/process-configuration/index.js.gz +0 -0
- package/packages/business-components/process-form/index.js +149 -149
- package/packages/business-components/process-form/index.js.gz +0 -0
- package/packages/business-components/process-search-form/index.js +60 -60
- package/packages/business-components/process-search-form/index.js.gz +0 -0
- package/packages/business-components/process-table/index.js +130 -128
- package/packages/business-components/process-table/index.js.gz +0 -0
- package/packages/business-components/urgent-panel/index.js +904 -896
- package/packages/business-components/urgent-panel/index.js.gz +0 -0
- package/packages/business-components/user-org-dialog/index.js +249 -246
- package/packages/business-components/user-org-dialog/index.js.gz +0 -0
- package/packages/business-components/video-dialog/index.js +1 -0
- package/packages/business-components/video-dialog/index.js.gz +0 -0
- package/packages/components/autocomplete/index.js +12 -6
- package/packages/components/autocomplete/index.js.gz +0 -0
- package/packages/components/calendar/index.js +104 -104
- package/packages/components/calendar/index.js.gz +0 -0
- package/packages/components/cascader/index.js +27 -27
- package/packages/components/cascader/index.js.gz +0 -0
- package/packages/components/checkbox/index.js +54 -54
- package/packages/components/checkbox/index.js.gz +0 -0
- package/packages/components/date-picker/index.js +459 -459
- package/packages/components/date-picker/index.js.gz +0 -0
- package/packages/components/dimple-layout/index.js +63 -61
- package/packages/components/dimple-layout/index.js.gz +0 -0
- package/packages/components/dropdown/index.js +23 -22
- package/packages/components/dropdown/index.js.gz +0 -0
- package/packages/components/edit-table/index.js +224 -223
- package/packages/components/edit-table/index.js.gz +0 -0
- package/packages/components/error-overlay-model/index.js +44 -42
- package/packages/components/error-overlay-model/index.js.gz +0 -0
- package/packages/components/form-item/index.js +67 -63
- package/packages/components/form-item/index.js.gz +0 -0
- package/packages/components/image-viewer/index.js +32 -32
- package/packages/components/image-viewer/index.js.gz +0 -0
- package/packages/components/input/index.js +51 -51
- package/packages/components/input/index.js.gz +0 -0
- package/packages/components/input-number/index.js +44 -44
- package/packages/components/input-number/index.js.gz +0 -0
- package/packages/components/live-player/index.js +834 -832
- package/packages/components/live-player/index.js.gz +0 -0
- package/packages/components/map/index.js +437 -431
- package/packages/components/map/index.js.gz +0 -0
- package/packages/components/menu-aside/index.js +1 -1
- package/packages/components/menu-aside/index.js.gz +0 -0
- package/packages/components/message/index.js +6 -6
- package/packages/components/message/index.js.gz +0 -0
- package/packages/components/radio-tabs/index.js +33 -33
- package/packages/components/radio-tabs/index.js.gz +0 -0
- package/packages/components/rich-editor/index.js +4586 -4556
- package/packages/components/rich-editor/index.js.gz +0 -0
- package/packages/components/scrollbar/index.js +135 -135
- package/packages/components/scrollbar/index.js.gz +0 -0
- package/packages/components/search/index.js +2 -2
- package/packages/components/search/index.js.gz +0 -0
- package/packages/components/select/index.js +92 -92
- package/packages/components/select/index.js.gz +0 -0
- package/packages/components/select-list/index.js +10 -6
- package/packages/components/select-list/index.js.gz +0 -0
- package/packages/components/special-range-picker-month/index.js +16 -14
- package/packages/components/special-range-picker-month/index.js.gz +0 -0
- package/packages/components/special-range-picker-year/index.js +53 -51
- package/packages/components/special-range-picker-year/index.js.gz +0 -0
- package/packages/components/spin/index.js +35 -35
- package/packages/components/spin/index.js.gz +0 -0
- package/packages/components/split-panel/index.js +102 -101
- package/packages/components/split-panel/index.js.gz +0 -0
- package/packages/components/table/index.js +604 -599
- package/packages/components/table/index.js.gz +0 -0
- package/packages/components/time-line/index.js +1 -1
- package/packages/components/time-line/index.js.gz +0 -0
- package/packages/components/tree/index.js +182 -173
- package/packages/components/tree/index.js.gz +0 -0
- package/packages/components/tree-select/index.js +81 -81
- package/packages/components/tree-select/index.js.gz +0 -0
- package/packages/components/tree-table/index.js +2 -2
- package/packages/components/tree-table/index.js.gz +0 -0
- package/packages/components/tree-v2/index.js +1240 -1208
- package/packages/components/tree-v2/index.js.gz +0 -0
- package/packages/business-components/ai-panel/index-BybM3Q9u.js.gz +0 -0
- package/packages/business-components/ai-panel/index-CgWRv2Ge.js +0 -142
- package/packages/business-components/ai-panel/index-CgWRv2Ge.js.gz +0 -0
- package/packages/business-components/ai-panel/index-CwdJKHy0.js.gz +0 -0
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
import '@das-fed/upf-ui/packages/business-components/process-form/style.css';
|
|
2
2
|
import { withInstall as pt } from "@das-fed/upf-utils/with-install/index";
|
|
3
|
-
import { ref as i, nextTick as dt, defineComponent as Q, watch as k, openBlock as M, createBlock as P, unref as a, withCtx as L, createVNode as V, createCommentVNode as K, createElementVNode as
|
|
3
|
+
import { ref as i, nextTick as dt, defineComponent as Q, watch as k, openBlock as M, createBlock as P, unref as a, withCtx as L, createVNode as V, createCommentVNode as K, createElementVNode as Ee, createElementBlock as x, Fragment as ee, createTextVNode as ne, toDisplayString as se, isRef as he, createSlots as ct, h as re, renderList as ue, resolveDynamicComponent as ge, onMounted as gt, withDirectives as mt, normalizeStyle as vt } from "vue";
|
|
4
4
|
import { DasFormRef as ft, DasForm as Fe } from "@das-fed/upf-ui/packages/components/form/index";
|
|
5
5
|
import { DasButton as ht } from "@das-fed/upf-ui/packages/components/button/index";
|
|
6
6
|
import { vOverlay as yt } from "@das-fed/upf-ui/packages/components/overlay/index";
|
|
7
|
-
import { createService as
|
|
7
|
+
import { createService as X } from "@das-fed/upf-utils/create-api-service";
|
|
8
8
|
import { DasUpload as bt } from "@das-fed/upf-ui/packages/components/upload/index";
|
|
9
9
|
import { DasFormItem as U } from "@das-fed/upf-ui/packages/components/form-item/index";
|
|
10
10
|
import { DasAutocomplete as _t } from "@das-fed/upf-ui/packages/components/autocomplete/index";
|
|
11
11
|
import ve from "dayjs";
|
|
12
|
-
import { DasImageViewer as
|
|
12
|
+
import { DasImageViewer as Be } from "@das-fed/upf-ui/packages/components/image-viewer/index";
|
|
13
13
|
import { DasInput as wt } from "@das-fed/upf-ui/packages/components/input/index";
|
|
14
14
|
import { DasTooltip as De } from "@das-fed/upf-ui/packages/components/tooltip/index";
|
|
15
|
-
import { i18n as
|
|
15
|
+
import { i18n as j, t as _, setI18nRule as Ct } from "@das-fed/upf-web/packages/i18n/index";
|
|
16
16
|
import { DasTableColumn as F } from "@das-fed/upf-ui/packages/components/table/index";
|
|
17
17
|
import { DasSearchForm as zt } from "@das-fed/upf-ui/packages/components/search-form/index";
|
|
18
18
|
import { DasModelTableDialog as Dt } from "@das-fed/upf-ui/packages/business-components/model-table-dialog";
|
|
19
|
-
import { getProjectInfo as
|
|
19
|
+
import { getProjectInfo as je } from "@das-fed/upf-utils/common-info";
|
|
20
20
|
import { getConfig as Mt } from "@das-fed/upf-utils/config";
|
|
21
21
|
import { DasRichEditor as Ke } from "@das-fed/upf-ui/packages/components/rich-editor/index";
|
|
22
22
|
import { DasCollaspe as Ae } from "@das-fed/upf-ui/packages/components/collaspe/index";
|
|
23
23
|
import { DasCollaspePanel as Qe } from "@das-fed/upf-ui/packages/components/collapse-panel/index";
|
|
24
|
-
const te = "v1", Vt =
|
|
25
|
-
|
|
26
|
-
const Ue =
|
|
24
|
+
const te = "v1", Vt = X(`/workflow/form/form/${te}`), kt = X(`/workflow/form/formDef/${te}`);
|
|
25
|
+
X(`/workflow/api/user/${te}`);
|
|
26
|
+
const Ue = X(`/workflow/api/extend/${te}`), St = X(`/workflow/flow/def/${te}`), Nt = X(`/workflow/form/customQuery/${te}`), oe = X(`/api/enterpriseright/permission/${te}`), Me = X(`/api/space-manage/space-tree/${te}`), Ot = X(`/workflow/form/dataTemplate/${te}`), Ve = X(`/api/supply/supplier/${te}`), Lt = X(`/api/warehouse/vms/${te}/asset-receive`), Tt = Ot.get("/getBpmDataTemplateInfoByFlowKey"), Rt = Vt.get("/formDesign"), $t = kt.get("/get"), Pt = Ue.get("/report-config");
|
|
27
27
|
Ue.get("/application-report");
|
|
28
|
-
const Ft = St.get("/getBindRelationByDefKey"), It = Nt.get("/getByAlias"), qt = oe.get("/organization/authTree"),
|
|
28
|
+
const Ft = St.get("/getBindRelationByDefKey"), It = Nt.get("/getByAlias"), qt = oe.get("/organization/authTree"), Et = oe.post("/user/list"), Bt = oe.post("/data/user-query"), jt = oe.get("/role/list"), Kt = oe.post("/data/role-ids"), At = oe.get("/organization/organizationpage"), Qt = oe.get("/station/list"), Ut = oe.get("/position/list"), ye = oe.post("/organization/detailbyids"), Yt = Me.get("/controller/area-children"), xt = Me.get("/controller/fuzzy-tree-all"), Jt = Me.get("/controller/space"), Ht = Ve.post("/supplier/list/page", (o) => {
|
|
29
29
|
var e, t;
|
|
30
30
|
return o.data.pageBean = {
|
|
31
31
|
page: ((e = o == null ? void 0 : o.data) == null ? void 0 : e.pageIndex) || 1,
|
|
32
32
|
pageSize: ((t = o == null ? void 0 : o.data) == null ? void 0 : t.pageSize) || 20
|
|
33
33
|
}, o;
|
|
34
|
-
}), Wt = Ve.get("/supplier"), Zt = Ve.post("/classification/list/all"),
|
|
34
|
+
}), Wt = Ve.get("/supplier"), Zt = Ve.post("/classification/list/all"), Xt = Lt.get("/receive-code"), be = i(""), Gt = (o, e, t) => {
|
|
35
35
|
const { setDetailData: l, getFormData: p, setFormData: u, formRule: f, showData: w, disabledData: n, encryptionData: s } = t, m = i([]), v = i([]), c = i([]), d = i(!1), C = ft(), g = i([]), h = (D) => Object.keys(D).length === 0, r = async (D) => {
|
|
36
36
|
const [N, I] = await Rt({ formId: D }).run();
|
|
37
37
|
if (N) return;
|
|
@@ -39,8 +39,8 @@ const Ft = St.get("/getBindRelationByDefKey"), It = Nt.get("/getByAlias"), qt =
|
|
|
39
39
|
be.value = W[0].alias, v.value.length && v.value.forEach((Z) => {
|
|
40
40
|
Z.formKey === I.formKey && u(I.formKey, be.value, Z.id);
|
|
41
41
|
});
|
|
42
|
-
const [ae,
|
|
43
|
-
await z(), c.value = JSON.parse(
|
|
42
|
+
const [ae, G] = await $t({ formDefId: I.defId }).run();
|
|
43
|
+
await z(), c.value = JSON.parse(G.value.expand).list, c.value.forEach((Z) => {
|
|
44
44
|
Z.columns && Z.columns[0].isOpen && g.value.push(Z.key);
|
|
45
45
|
}), n.value = { ...n.value, ...o.disabledData }, v.value.length || u(I.formKey, be.value), setTimeout(() => {
|
|
46
46
|
w.value = { ...w.value, ...o.showData }, h(o.data) && (d.value = !0), h(o.data) || (l(o.data), o.flowKey && (m.value = o.data.button_list ? JSON.parse(o.data.button_list) : []), d.value = !0);
|
|
@@ -57,13 +57,13 @@ const Ft = St.get("/getBindRelationByDefKey"), It = Nt.get("/getByAlias"), qt =
|
|
|
57
57
|
r(N.pcForm.pcFormId);
|
|
58
58
|
}
|
|
59
59
|
}, z = async () => {
|
|
60
|
-
var I, W, ae,
|
|
60
|
+
var I, W, ae, G;
|
|
61
61
|
if (!o.flowKey) return;
|
|
62
62
|
const [D, N] = await Tt().run({
|
|
63
63
|
flowKey: o.flowKey,
|
|
64
64
|
needDisplayFileds: !1
|
|
65
65
|
});
|
|
66
|
-
s.value = ((
|
|
66
|
+
s.value = ((G = (ae = (W = (I = N == null ? void 0 : N.value) == null ? void 0 : I.boDef) == null ? void 0 : W.boEnt) == null ? void 0 : ae.attributeList) == null ? void 0 : G.filter((Z) => Z.encryption == "phone")) || [];
|
|
67
67
|
}, b = i({}), T = (D, N) => {
|
|
68
68
|
const { key: I } = N;
|
|
69
69
|
b.value[I] || (b.value[I] = D);
|
|
@@ -110,7 +110,7 @@ const Ft = St.get("/getBindRelationByDefKey"), It = Nt.get("/getByAlias"), qt =
|
|
|
110
110
|
e.forEach((s) => {
|
|
111
111
|
s.defaultType == 2 && (u.value[s.field] = s.defaultValue);
|
|
112
112
|
}), u.value = { ...u.value, ...t };
|
|
113
|
-
const f = p.requestType === "POST" ?
|
|
113
|
+
const f = p.requestType === "POST" ? X(p.url).post("") : X(p.url).get(""), [w, n] = await f({}, { params: u.value }).run();
|
|
114
114
|
return w ? void 0 : n;
|
|
115
115
|
}
|
|
116
116
|
}, H = async (o) => {
|
|
@@ -484,8 +484,8 @@ const Ft = St.get("/getBindRelationByDefKey"), It = Nt.get("/getByAlias"), qt =
|
|
|
484
484
|
col: e.span
|
|
485
485
|
}, {
|
|
486
486
|
default: L(() => [
|
|
487
|
-
|
|
488
|
-
V(a(
|
|
487
|
+
Ee("div", pa, [
|
|
488
|
+
V(a(Be), {
|
|
489
489
|
modelValue: n.value,
|
|
490
490
|
"onUpdate:modelValue": h[0] || (h[0] = (r) => n.value = r),
|
|
491
491
|
status: c.value,
|
|
@@ -668,7 +668,7 @@ const ha = (o, e) => {
|
|
|
668
668
|
}, null, 8, ["col", "modelValue", "width", "disabled", "isView", "prop", "label", "helpMessage", "required", "placeholder"])) : K("", !0)
|
|
669
669
|
], 64));
|
|
670
670
|
}
|
|
671
|
-
}),
|
|
671
|
+
}), Xe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
672
672
|
__proto__: null,
|
|
673
673
|
default: ba
|
|
674
674
|
}, Symbol.toStringTag, { value: "Module" })), _a = {
|
|
@@ -725,7 +725,7 @@ const ha = (o, e) => {
|
|
|
725
725
|
required: v.value
|
|
726
726
|
}, null, 8, ["col", "modelValue", "label", "prop", "max", "min", "step", "disabled", "isView", "precision", "helpMessage", "required"])) : K("", !0);
|
|
727
727
|
}
|
|
728
|
-
}),
|
|
728
|
+
}), Ge = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
729
729
|
__proto__: null,
|
|
730
730
|
default: wa
|
|
731
731
|
}, Symbol.toStringTag, { value: "Module" })), Ca = {
|
|
@@ -833,17 +833,17 @@ const ha = (o, e) => {
|
|
|
833
833
|
p.value.data.forEach((b) => {
|
|
834
834
|
if (e.setting.options.customQuery.alias && e.setting.options.customQuery.alias === b.alias) {
|
|
835
835
|
s.value = null;
|
|
836
|
-
const T = b.conditionfield.filter((
|
|
836
|
+
const T = b.conditionfield.filter((E) => E.defaultType == 1);
|
|
837
837
|
let R = {};
|
|
838
|
-
T.forEach((
|
|
839
|
-
const D =
|
|
840
|
-
R[
|
|
838
|
+
T.forEach((E) => {
|
|
839
|
+
const D = E.fieldPath.split("."), N = D[D.length - 1];
|
|
840
|
+
R[E.field] = f(N);
|
|
841
841
|
}), le(
|
|
842
842
|
e.setting.options.customQuery.alias,
|
|
843
843
|
e.setting.options.customQuery.conditionfield,
|
|
844
844
|
R
|
|
845
|
-
).then((
|
|
846
|
-
g.value =
|
|
845
|
+
).then((E) => {
|
|
846
|
+
g.value = E;
|
|
847
847
|
});
|
|
848
848
|
}
|
|
849
849
|
});
|
|
@@ -858,15 +858,15 @@ const ha = (o, e) => {
|
|
|
858
858
|
if (e.setting.options.customQuery.alias) {
|
|
859
859
|
let b = (z = (y = e.setting.options) == null ? void 0 : y.customQuery) == null ? void 0 : z.conditionfield;
|
|
860
860
|
typeof b == "string" && (b = JSON.parse(b));
|
|
861
|
-
const T = b.filter((
|
|
861
|
+
const T = b.filter((E) => E.defaultType == 1);
|
|
862
862
|
let R = {};
|
|
863
|
-
T.forEach((
|
|
863
|
+
T.forEach((E) => {
|
|
864
864
|
var I;
|
|
865
|
-
const D = (I =
|
|
866
|
-
R[
|
|
865
|
+
const D = (I = E.fieldPath) == null ? void 0 : I.split("."), N = D[D.length - 1];
|
|
866
|
+
R[E.field] = f(N);
|
|
867
867
|
}), le(e.setting.options.customQuery.alias, e.setting.options.customQuery.conditionfield, R).then(
|
|
868
|
-
(
|
|
869
|
-
g.value =
|
|
868
|
+
(E) => {
|
|
869
|
+
g.value = E;
|
|
870
870
|
}
|
|
871
871
|
);
|
|
872
872
|
} else
|
|
@@ -880,8 +880,8 @@ const ha = (o, e) => {
|
|
|
880
880
|
const r = (b) => {
|
|
881
881
|
e.setting.options.linkage.length && !e.setting.options.multiple && e.setting.options.linkage.forEach((T) => {
|
|
882
882
|
if (T.value === b) {
|
|
883
|
-
const
|
|
884
|
-
t.value[
|
|
883
|
+
const E = T.effect[0].target.split(".")[2];
|
|
884
|
+
t.value[E] = T.effect[0].type === "w";
|
|
885
885
|
}
|
|
886
886
|
});
|
|
887
887
|
};
|
|
@@ -911,23 +911,23 @@ const ha = (o, e) => {
|
|
|
911
911
|
__proto__: null,
|
|
912
912
|
default: Ma
|
|
913
913
|
}, Symbol.toStringTag, { value: "Module" })), Va = (o, e, t) => {
|
|
914
|
-
var ae,
|
|
915
|
-
const l =
|
|
916
|
-
user:
|
|
917
|
-
org:
|
|
918
|
-
role:
|
|
919
|
-
job:
|
|
920
|
-
post:
|
|
921
|
-
supplier:
|
|
922
|
-
source:
|
|
914
|
+
var ae, G, Z, de, ce;
|
|
915
|
+
const l = je().id, p = i(!1), u = (ce = (de = (Z = (G = (ae = o == null ? void 0 : o.options) == null ? void 0 : ae.selector) == null ? void 0 : G.type) == null ? void 0 : Z.alias) == null ? void 0 : de.replace("eip-", "")) == null ? void 0 : ce.replace("-selector", ""), f = i([]), w = i(""), n = i(""), s = {
|
|
916
|
+
user: j("搜索姓名/账号/手机号").value,
|
|
917
|
+
org: j("搜索组织名称/组织编码").value,
|
|
918
|
+
role: j("搜索角色名称").value,
|
|
919
|
+
job: j("职务名称/职务编码").value,
|
|
920
|
+
post: j("搜索岗位名称/岗位编码").value,
|
|
921
|
+
supplier: j("搜索供应商编码/名称").value,
|
|
922
|
+
source: j("搜索单据编码/申请人").value
|
|
923
923
|
}, m = {
|
|
924
|
-
user:
|
|
925
|
-
org:
|
|
926
|
-
role:
|
|
927
|
-
job:
|
|
928
|
-
post:
|
|
929
|
-
supplier:
|
|
930
|
-
source:
|
|
924
|
+
user: j("添加用户").value,
|
|
925
|
+
org: j("组织选择器").value,
|
|
926
|
+
role: j("角色选择器").value,
|
|
927
|
+
job: j("职务选择器").value,
|
|
928
|
+
post: j("岗位选择器").value,
|
|
929
|
+
supplier: j("选择供应商").value,
|
|
930
|
+
source: j("选择源单").value
|
|
931
931
|
}, v = {
|
|
932
932
|
user: "id",
|
|
933
933
|
org: "id",
|
|
@@ -937,17 +937,17 @@ const ha = (o, e) => {
|
|
|
937
937
|
supplier: "id",
|
|
938
938
|
source: "code"
|
|
939
939
|
}, c = {
|
|
940
|
-
1:
|
|
941
|
-
2:
|
|
942
|
-
3:
|
|
940
|
+
1: j("正常").value,
|
|
941
|
+
2: j("锁定").value,
|
|
942
|
+
3: j("禁用").value
|
|
943
943
|
}, d = {
|
|
944
|
-
0:
|
|
945
|
-
1:
|
|
944
|
+
0: j("普通").value,
|
|
945
|
+
1: j("管理员").value
|
|
946
946
|
}, C = {
|
|
947
|
-
0:
|
|
948
|
-
1:
|
|
947
|
+
0: j("无效").value,
|
|
948
|
+
1: j("有效").value
|
|
949
949
|
}, g = {
|
|
950
|
-
user:
|
|
950
|
+
user: Bt,
|
|
951
951
|
org: ye,
|
|
952
952
|
role: Kt,
|
|
953
953
|
job: ye,
|
|
@@ -986,7 +986,7 @@ const ha = (o, e) => {
|
|
|
986
986
|
}, R(), T()) : u === "source" ? (r.value = {
|
|
987
987
|
left: !1,
|
|
988
988
|
content: {
|
|
989
|
-
api:
|
|
989
|
+
api: Xt,
|
|
990
990
|
params: {
|
|
991
991
|
key: "",
|
|
992
992
|
code: t
|
|
@@ -1021,7 +1021,7 @@ const ha = (o, e) => {
|
|
|
1021
1021
|
},
|
|
1022
1022
|
props: {
|
|
1023
1023
|
inputOptions: {
|
|
1024
|
-
placeholder:
|
|
1024
|
+
placeholder: j("搜索组织名称").value
|
|
1025
1025
|
}
|
|
1026
1026
|
}
|
|
1027
1027
|
},
|
|
@@ -1031,7 +1031,7 @@ const ha = (o, e) => {
|
|
|
1031
1031
|
}
|
|
1032
1032
|
}
|
|
1033
1033
|
}, u === "user" && (r.value.content = {
|
|
1034
|
-
api:
|
|
1034
|
+
api: Et,
|
|
1035
1035
|
searchKey: "groupId",
|
|
1036
1036
|
params: {
|
|
1037
1037
|
status: 1,
|
|
@@ -1041,7 +1041,7 @@ const ha = (o, e) => {
|
|
|
1041
1041
|
data: []
|
|
1042
1042
|
}
|
|
1043
1043
|
}, b()), u === "role" && (r.value.content = {
|
|
1044
|
-
api:
|
|
1044
|
+
api: jt,
|
|
1045
1045
|
searchKey: "orgId",
|
|
1046
1046
|
params: {
|
|
1047
1047
|
status: 1
|
|
@@ -1097,7 +1097,7 @@ const ha = (o, e) => {
|
|
|
1097
1097
|
},
|
|
1098
1098
|
{
|
|
1099
1099
|
type: "select",
|
|
1100
|
-
label:
|
|
1100
|
+
label: j("供应商类型").value,
|
|
1101
1101
|
layout: "out",
|
|
1102
1102
|
width: "200px",
|
|
1103
1103
|
closable: !0,
|
|
@@ -1113,21 +1113,21 @@ const ha = (o, e) => {
|
|
|
1113
1113
|
const q = {
|
|
1114
1114
|
name: "",
|
|
1115
1115
|
published: 1
|
|
1116
|
-
}, [Y,
|
|
1117
|
-
Y || (y.value[1].options =
|
|
1118
|
-
},
|
|
1116
|
+
}, [Y, B] = await Zt(q).run();
|
|
1117
|
+
Y || (y.value[1].options = B);
|
|
1118
|
+
}, E = () => {
|
|
1119
1119
|
var Y;
|
|
1120
1120
|
w.value = "", p.value = !0;
|
|
1121
1121
|
let q = v[u];
|
|
1122
|
-
r.value.content.selectListProps.data = (Y = f == null ? void 0 : f.value) == null ? void 0 : Y.map((
|
|
1122
|
+
r.value.content.selectListProps.data = (Y = f == null ? void 0 : f.value) == null ? void 0 : Y.map((B) => ({ name: B == null ? void 0 : B.label, [q]: B == null ? void 0 : B.value }));
|
|
1123
1123
|
};
|
|
1124
1124
|
z();
|
|
1125
1125
|
const D = async () => {
|
|
1126
|
-
var q, Y,
|
|
1126
|
+
var q, Y, B, O, A, $, S, ie, ke, Se, Ne, Oe, Le, Te, Re, $e, Pe;
|
|
1127
1127
|
r.value.content.params = {
|
|
1128
1128
|
...(Y = (q = r == null ? void 0 : r.value) == null ? void 0 : q.content) == null ? void 0 : Y.params,
|
|
1129
1129
|
pageIndex: 1
|
|
1130
|
-
}, (u === "user" || u === "org" || u === "post" || u === "role" || u === "job") && (r.value.content.params.name = (
|
|
1130
|
+
}, (u === "user" || u === "org" || u === "post" || u === "role" || u === "job") && (r.value.content.params.name = (B = y == null ? void 0 : y.value[0]) == null ? void 0 : B.value), u === "source" && (r.value.content.params.key = (O = y == null ? void 0 : y.value[0]) == null ? void 0 : O.value), u === "supplier" && (r.value.content.params.querys = [
|
|
1131
1131
|
{
|
|
1132
1132
|
property: "orgId",
|
|
1133
1133
|
value: l,
|
|
@@ -1179,16 +1179,16 @@ const ha = (o, e) => {
|
|
|
1179
1179
|
userStatusMap: c,
|
|
1180
1180
|
roleTypeMap: d,
|
|
1181
1181
|
roleStatusMap: C,
|
|
1182
|
-
openDialog:
|
|
1182
|
+
openDialog: E,
|
|
1183
1183
|
confirm: (q) => {
|
|
1184
|
-
var
|
|
1184
|
+
var B;
|
|
1185
1185
|
let Y = v[u];
|
|
1186
|
-
f.value = q == null ? void 0 : q.map((O) => ({ label: (O == null ? void 0 : O.name) || (O == null ? void 0 : O.code), value: O[Y] })), u === "supplier" && (n.value = (
|
|
1186
|
+
f.value = q == null ? void 0 : q.map((O) => ({ label: (O == null ? void 0 : O.name) || (O == null ? void 0 : O.code), value: O[Y] })), u === "supplier" && (n.value = (B = q[0]) == null ? void 0 : B.linkmanPhone);
|
|
1187
1187
|
},
|
|
1188
1188
|
getDetail: async (q) => {
|
|
1189
1189
|
if (!q) return;
|
|
1190
1190
|
const Y = g[u];
|
|
1191
|
-
let
|
|
1191
|
+
let B = {};
|
|
1192
1192
|
const O = q == null ? void 0 : q.split(",");
|
|
1193
1193
|
if (u === "source") {
|
|
1194
1194
|
f.value = [
|
|
@@ -1198,8 +1198,8 @@ const ha = (o, e) => {
|
|
|
1198
1198
|
}
|
|
1199
1199
|
];
|
|
1200
1200
|
return;
|
|
1201
|
-
} else u === "user" ?
|
|
1202
|
-
const [A, $] = await Y(
|
|
1201
|
+
} else u === "user" ? B.userIds = O : u === "role" ? B.ids = O : u === "supplier" ? B.id = O : B = O;
|
|
1202
|
+
const [A, $] = await Y(B).run();
|
|
1203
1203
|
A || (u === "supplier" ? f.value = [
|
|
1204
1204
|
{
|
|
1205
1205
|
label: ($ == null ? void 0 : $.name) || ($ == null ? void 0 : $.code),
|
|
@@ -1225,7 +1225,7 @@ const ha = (o, e) => {
|
|
|
1225
1225
|
let s = {
|
|
1226
1226
|
pageSize: 1e4,
|
|
1227
1227
|
pageIndex: 1,
|
|
1228
|
-
projectId:
|
|
1228
|
+
projectId: je().id,
|
|
1229
1229
|
//项目id
|
|
1230
1230
|
spaceId: ""
|
|
1231
1231
|
// orgId:getProjectInfo().id
|
|
@@ -1241,7 +1241,7 @@ const ha = (o, e) => {
|
|
|
1241
1241
|
const m = {
|
|
1242
1242
|
name: n
|
|
1243
1243
|
}, [v, c] = await s(m).run();
|
|
1244
|
-
return v ? {} : (c.forEach((d) => {
|
|
1244
|
+
return v ? {} : (console.log("requestfilterTree", c), c.forEach((d) => {
|
|
1245
1245
|
d.path.startsWith("/0") && (d.path = d.path.slice(2) + `/${d.id}`), d._name = d.nodeName ? d.nodeName : d.name;
|
|
1246
1246
|
}), c);
|
|
1247
1247
|
},
|
|
@@ -1288,25 +1288,25 @@ const ha = (o, e) => {
|
|
|
1288
1288
|
roleStatusMap: b,
|
|
1289
1289
|
openDialog: T,
|
|
1290
1290
|
confirm: R,
|
|
1291
|
-
getDetail:
|
|
1291
|
+
getDetail: E,
|
|
1292
1292
|
searchData: D,
|
|
1293
1293
|
searchOptions: N,
|
|
1294
1294
|
linkmanPhone: I
|
|
1295
|
-
} = Va(e.setting, u, s), { spacePath: W, spaceName: ae, searchSpace:
|
|
1295
|
+
} = Va(e.setting, u, s), { spacePath: W, spaceName: ae, searchSpace: G, changeSpace: Z, spaceLoad: de, filterSpaceTree: ce, getSpaceDetail: q } = ka(), Y = i(!1);
|
|
1296
1296
|
H(e.setting.options.validateList).then((O) => {
|
|
1297
1297
|
Y.value = O;
|
|
1298
1298
|
});
|
|
1299
|
-
const
|
|
1300
|
-
return e.setting.options.tip && (
|
|
1299
|
+
const B = i();
|
|
1300
|
+
return e.setting.options.tip && (B.value = J(e.setting.options.tip)), e.setting.options.validateList.length && f(e.setting.name, e.setting.options.validateList), h == "position" ? (s.value = p(e.setting.name) ? p(e.setting.name) : s.value, s.value && q(s.value), s.value || l(e.setting.name, null), k(s, (O) => {
|
|
1301
1301
|
l(e.setting.name, O);
|
|
1302
1302
|
}), k(ae, (O) => {
|
|
1303
1303
|
l(e.setting.options.selector.type.positionName, O);
|
|
1304
|
-
})) : h == "supplier" ? (s.value = p(e.setting.name) ? [p(e.setting.name)] : [s.value], s.value &&
|
|
1304
|
+
})) : h == "supplier" ? (s.value = p(e.setting.name) ? [p(e.setting.name)] : [s.value], s.value && E(p(e.setting.name)), k(s, (O) => {
|
|
1305
1305
|
l(e.setting.name, O == null ? void 0 : O.toString());
|
|
1306
1306
|
}), k(I, (O) => {
|
|
1307
1307
|
var A, $, S, ie;
|
|
1308
1308
|
((ie = (S = ($ = (A = e == null ? void 0 : e.setting) == null ? void 0 : A.options) == null ? void 0 : $.selector) == null ? void 0 : S.type) == null ? void 0 : ie.supplierPhone) !== void 0 && l(e.setting.options.selector.type.supplierPhone, O);
|
|
1309
|
-
})) : (s.value = p(e.setting.name) ? p(e.setting.name) : s.value, s.value &&
|
|
1309
|
+
})) : (s.value = p(e.setting.name) ? p(e.setting.name) : s.value, s.value && E(s.value), s.value.length || l(e.setting.name, null), k(r, (O) => {
|
|
1310
1310
|
s.value = O.map((A) => A.value).toString(), l(e.setting.name, s.value);
|
|
1311
1311
|
})), (O, A) => (M(), x(ee, null, [
|
|
1312
1312
|
m.value && a(h) != "position" ? (M(), P(a(U), {
|
|
@@ -1318,7 +1318,7 @@ const ha = (o, e) => {
|
|
|
1318
1318
|
label: O.setting.desc,
|
|
1319
1319
|
type: "inputDialogSelect",
|
|
1320
1320
|
options: a(r),
|
|
1321
|
-
helpMessage:
|
|
1321
|
+
helpMessage: B.value,
|
|
1322
1322
|
isView: e.isView,
|
|
1323
1323
|
disabled: a(v),
|
|
1324
1324
|
required: Y.value,
|
|
@@ -1340,7 +1340,7 @@ const ha = (o, e) => {
|
|
|
1340
1340
|
(($ = a(N)) == null ? void 0 : $.length) > 0 ? {
|
|
1341
1341
|
name: "table-header-search",
|
|
1342
1342
|
fn: L(() => [
|
|
1343
|
-
|
|
1343
|
+
Ee("div", Sa, [
|
|
1344
1344
|
V(a(zt), {
|
|
1345
1345
|
labelLength: "6",
|
|
1346
1346
|
options: a(N),
|
|
@@ -1568,13 +1568,13 @@ const ha = (o, e) => {
|
|
|
1568
1568
|
type: "treeSelect",
|
|
1569
1569
|
"node-key": "id",
|
|
1570
1570
|
showFullPath: !0,
|
|
1571
|
-
helpMessage:
|
|
1571
|
+
helpMessage: B.value,
|
|
1572
1572
|
placeholder: O.setting.options.placeholder,
|
|
1573
1573
|
required: Y.value,
|
|
1574
1574
|
modelValue: s.value,
|
|
1575
1575
|
"onUpdate:modelValue": A[2] || (A[2] = ($) => s.value = $),
|
|
1576
|
-
keyword: a(
|
|
1577
|
-
"onUpdate:keyword": A[3] || (A[3] = ($) => he(
|
|
1576
|
+
keyword: a(G),
|
|
1577
|
+
"onUpdate:keyword": A[3] || (A[3] = ($) => he(G) ? G.value = $ : null),
|
|
1578
1578
|
path: a(W),
|
|
1579
1579
|
"onUpdate:path": A[4] || (A[4] = ($) => he(W) ? W.value = $ : null),
|
|
1580
1580
|
isView: e.isView,
|
|
@@ -1647,7 +1647,7 @@ const ha = (o, e) => {
|
|
|
1647
1647
|
}, {
|
|
1648
1648
|
default: L(() => [
|
|
1649
1649
|
n.value ? (M(), x("div", Ta, [
|
|
1650
|
-
V(a(
|
|
1650
|
+
V(a(Be), {
|
|
1651
1651
|
modelValue: n.value,
|
|
1652
1652
|
"onUpdate:modelValue": g[0] || (g[0] = (h) => n.value = h),
|
|
1653
1653
|
status: c.value,
|
|
@@ -1718,10 +1718,10 @@ const ha = (o, e) => {
|
|
|
1718
1718
|
}), st = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1719
1719
|
__proto__: null,
|
|
1720
1720
|
default: qa
|
|
1721
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1721
|
+
}, Symbol.toStringTag, { value: "Module" })), Ea = {
|
|
1722
1722
|
name: "text"
|
|
1723
|
-
},
|
|
1724
|
-
...
|
|
1723
|
+
}, Ba = /* @__PURE__ */ Q({
|
|
1724
|
+
...Ea,
|
|
1725
1725
|
props: {
|
|
1726
1726
|
setting: { default: () => ({
|
|
1727
1727
|
icon: "",
|
|
@@ -1768,11 +1768,11 @@ const ha = (o, e) => {
|
|
|
1768
1768
|
}
|
|
1769
1769
|
}), ot = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1770
1770
|
__proto__: null,
|
|
1771
|
-
default:
|
|
1772
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1771
|
+
default: Ba
|
|
1772
|
+
}, Symbol.toStringTag, { value: "Module" })), ja = {
|
|
1773
1773
|
name: "textarea"
|
|
1774
1774
|
}, Ka = /* @__PURE__ */ Q({
|
|
1775
|
-
...
|
|
1775
|
+
...ja,
|
|
1776
1776
|
props: {
|
|
1777
1777
|
setting: { default: () => ({
|
|
1778
1778
|
icon: "",
|
|
@@ -1890,7 +1890,7 @@ const ha = (o, e) => {
|
|
|
1890
1890
|
const d = ve().format("YYYY-MM-DD ");
|
|
1891
1891
|
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);
|
|
1892
1892
|
}, 50), e.setting.options.validateList.length && f(e.setting.name, e.setting.options.validateList), k(n, (d) => {
|
|
1893
|
-
p(e.setting.name, d);
|
|
1893
|
+
console.log(d, "newVal"), p(e.setting.name, d);
|
|
1894
1894
|
}), (d, C) => s.value ? (M(), P(a(U), {
|
|
1895
1895
|
key: 0,
|
|
1896
1896
|
col: e.span,
|
|
@@ -2020,7 +2020,7 @@ const ha = (o, e) => {
|
|
|
2020
2020
|
setup(o) {
|
|
2021
2021
|
const e = o;
|
|
2022
2022
|
return (t, l) => (M(!0), x(ee, null, ue(t.setting.columns, (p) => (M(), x(ee, null, [
|
|
2023
|
-
(M(!0), x(ee, null, ue(p.list, (u) => (M(), P(ge(a(
|
|
2023
|
+
(M(!0), x(ee, null, ue(p.list, (u) => (M(), P(ge(a(Ga)[u.ctrlType]), {
|
|
2024
2024
|
setting: u,
|
|
2025
2025
|
isView: e.isView,
|
|
2026
2026
|
store: t.store,
|
|
@@ -2031,84 +2031,84 @@ const ha = (o, e) => {
|
|
|
2031
2031
|
}), Za = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2032
2032
|
__proto__: null,
|
|
2033
2033
|
default: Wa
|
|
2034
|
-
}, Symbol.toStringTag, { value: "Module" })), _e = /* @__PURE__ */ Object.assign({ "./base/attachment.vue": Ye, "./base/autocomplete.vue": xe, "./base/checkbox.vue": Je, "./base/date.vue": He, "./base/dropdown.vue": We, "./base/imageViewer.vue": Ze, "./base/input.vue":
|
|
2034
|
+
}, Symbol.toStringTag, { value: "Module" })), _e = /* @__PURE__ */ Object.assign({ "./base/attachment.vue": Ye, "./base/autocomplete.vue": xe, "./base/checkbox.vue": Je, "./base/date.vue": He, "./base/dropdown.vue": We, "./base/imageViewer.vue": Ze, "./base/input.vue": Xe, "./base/number.vue": Ge, "./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": Ja, "./layout/grid/gridLayout.vue": Za }), we = /* @__PURE__ */ Object.assign({ "./base/attachment.vue": Ye, "./base/autocomplete.vue": xe, "./base/checkbox.vue": Je, "./base/date.vue": He, "./base/dropdown.vue": We, "./base/imageViewer.vue": Ze, "./base/input.vue": Xe, "./base/number.vue": Ge, "./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({}), ze = /* @__PURE__ */ Object.assign({}), pe = {}, rt = {}, ut = {}, Xa = {};
|
|
2035
2035
|
Object.keys(we).map((o) => rt[we[o].default.name] = we[o].default);
|
|
2036
2036
|
Object.keys(Ce).map((o) => ut[Ce[o].default.name] = Ce[o].default);
|
|
2037
|
-
Object.keys(ze).map((o) =>
|
|
2037
|
+
Object.keys(ze).map((o) => Xa[ze[o].default.name] = ze[o].default);
|
|
2038
2038
|
Object.keys(_e).map((o) => pe[_e[o].default.name] = _e[o].default);
|
|
2039
|
-
const
|
|
2039
|
+
const Ga = { ...rt, ...ut }, en = "---------测试验证规则传参-----------", tn = (o, e, t, l) => {
|
|
2040
2040
|
(!e || e.toString() === "") && parseInt(e) !== 0 ? t(new Error(`${_("*必填")}`)) : t();
|
|
2041
|
-
}, tn = (o, e, t, l) => {
|
|
2042
|
-
e !== "" && e.length > parseInt(l.value) ? t(new Error(`${_("最大文本长度")}${_("不能超过")}${l.value}`)) : t();
|
|
2043
2041
|
}, an = (o, e, t, l) => {
|
|
2044
|
-
e !== "" && e.length
|
|
2042
|
+
e !== "" && e.length > parseInt(l.value) ? t(new Error(`${_("最大文本长度")}${_("不能超过")}${l.value}`)) : t();
|
|
2045
2043
|
}, nn = (o, e, t, l) => {
|
|
2044
|
+
e !== "" && e.length < parseInt(l.value) ? t(new Error(`${_("最小文本长度")}${_("不能少于")}${l.value}`)) : t();
|
|
2045
|
+
}, sn = (o, e, t, l) => {
|
|
2046
2046
|
if (e !== "" && !/^1[3456789]\d{9}$/.test(e))
|
|
2047
2047
|
return t(new Error(_("手机号码格式不正确,请重新输入"))), !1;
|
|
2048
2048
|
t();
|
|
2049
|
-
},
|
|
2049
|
+
}, on = (o, e, t) => {
|
|
2050
2050
|
if (e !== "" && !/^[A-Za-z0-9\u4e00-\u9fa5]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/.test(e))
|
|
2051
2051
|
return t(new Error(_("电子邮箱格式不正确,请重新输入"))), !1;
|
|
2052
2052
|
t();
|
|
2053
|
-
},
|
|
2053
|
+
}, ln = (o, e, t) => {
|
|
2054
2054
|
if (e !== "" && !/^-?\d+$/.test(e))
|
|
2055
2055
|
return t(new Error(_("请输入整数"))), !1;
|
|
2056
2056
|
t();
|
|
2057
|
-
},
|
|
2058
|
-
if (e !== "" && e != l.value)
|
|
2057
|
+
}, rn = (o, e, t, l) => {
|
|
2058
|
+
if (console.log(en), console.log(l.value), console.log(e), e !== "" && e != l.value)
|
|
2059
2059
|
return t(new Error(_("请输入相同的值"))), !1;
|
|
2060
2060
|
t();
|
|
2061
|
-
}, rn = (o, e, t, l) => {
|
|
2062
|
-
e === "" ? t() : /^[+-]?\d*\.?\d*$/.test(e) ? e < parseFloat(l.value) ? t(new Error(`${l.name}${_("不能小于")}${l.value}`)) : t() : t(new Error(_("请输入数字")));
|
|
2063
2061
|
}, un = (o, e, t, l) => {
|
|
2064
|
-
e === "" ? t() : /^[+-]?\d*\.?\d*$/.test(e) ? e
|
|
2062
|
+
e === "" ? t() : /^[+-]?\d*\.?\d*$/.test(e) ? e < parseFloat(l.value) ? t(new Error(`${l.name}${_("不能小于")}${l.value}`)) : t() : t(new Error(_("请输入数字")));
|
|
2065
2063
|
}, pn = (o, e, t, l) => {
|
|
2064
|
+
e === "" ? t() : /^[+-]?\d*\.?\d*$/.test(e) ? e > parseFloat(l.value) ? t(new Error(`${l.name}${_("不能大于")}${l.value}`)) : t() : t(new Error(_("请输入数字")));
|
|
2065
|
+
}, dn = (o, e, t, l) => {
|
|
2066
2066
|
const p = /^[+-]?(\d*\.\d+([eE]?[+-]?\d+)?|\d+[eE][+-]?\d+)$/, u = /^-?\d+$/;
|
|
2067
2067
|
e === "" ? t() : p.test(e) || u.test(e) ? e >= parseFloat(l.start) && e <= parseFloat(l.end) ? t() : t(new Error(`${_("只能输入指定数字范围")}${l.start}-${l.end}`)) : t(new Error(_("请输入数字")));
|
|
2068
|
-
}, dn = (o, e, t, l) => {
|
|
2069
|
-
e === "" || parseFloat(e) === parseFloat(l.value) ? t() : t(new Error(`${_("只能输入指定的值")}${l.value}`));
|
|
2070
2068
|
}, cn = (o, e, t, l) => {
|
|
2069
|
+
e === "" || parseFloat(e) === parseFloat(l.value) ? t() : t(new Error(`${_("只能输入指定的值")}${l.value}`));
|
|
2070
|
+
}, gn = (o, e, t, l) => {
|
|
2071
2071
|
e === "" ? t() : /^-?\d+$/.test(e) ? Math.abs(e).toString().length === parseInt(l.value) ? t() : t(new Error(`${_("只能输入")}${l.value}${_("位数数字")}`)) : t(new Error(_("请输入整数")));
|
|
2072
|
-
},
|
|
2072
|
+
}, mn = (o, e, t) => {
|
|
2073
2073
|
if (e !== "" && !/^[a-zA-Z]{1,}$/.test(e))
|
|
2074
2074
|
return t(new Error(_("只能输入字母"))), !1;
|
|
2075
2075
|
t();
|
|
2076
|
-
},
|
|
2076
|
+
}, vn = (o, e, t) => {
|
|
2077
2077
|
if (e !== "" && !/^[a-zA-Z ]{1,}$/.test(e))
|
|
2078
2078
|
return t(new Error(_("只能输入字母空格"))), !1;
|
|
2079
2079
|
t();
|
|
2080
|
-
},
|
|
2080
|
+
}, fn = (o, e, t) => {
|
|
2081
2081
|
if (e !== "" && !/^[0-9a-zA-Z_-]{1,}$/.test(e))
|
|
2082
2082
|
return t(new Error(_("只能输入字母数字横线下划线"))), !1;
|
|
2083
2083
|
t();
|
|
2084
|
-
},
|
|
2084
|
+
}, hn = (o, e, t) => {
|
|
2085
2085
|
if (e !== "" && !/^[0-9a-zA-Z]{1,}$/.test(e))
|
|
2086
2086
|
return t(new Error(_("只能输入字母数字"))), !1;
|
|
2087
2087
|
t();
|
|
2088
|
-
},
|
|
2088
|
+
}, yn = (o, e, t, l) => {
|
|
2089
2089
|
const p = new RegExp(l.value);
|
|
2090
2090
|
if (e !== "" && !p.test(e))
|
|
2091
2091
|
return t(new Error(l.errorMessage)), !1;
|
|
2092
2092
|
t();
|
|
2093
|
-
},
|
|
2094
|
-
required:
|
|
2095
|
-
min:
|
|
2096
|
-
max:
|
|
2097
|
-
email:
|
|
2098
|
-
min_value:
|
|
2099
|
-
max_value:
|
|
2100
|
-
confirmed:
|
|
2101
|
-
numeric:
|
|
2102
|
-
between:
|
|
2103
|
-
is:
|
|
2104
|
-
digits:
|
|
2105
|
-
mobile:
|
|
2106
|
-
alpha:
|
|
2107
|
-
alpha_spaces:
|
|
2108
|
-
alpha_dash:
|
|
2109
|
-
alpha_num:
|
|
2110
|
-
regex:
|
|
2111
|
-
},
|
|
2093
|
+
}, bn = {
|
|
2094
|
+
required: tn,
|
|
2095
|
+
min: nn,
|
|
2096
|
+
max: an,
|
|
2097
|
+
email: on,
|
|
2098
|
+
min_value: un,
|
|
2099
|
+
max_value: pn,
|
|
2100
|
+
confirmed: rn,
|
|
2101
|
+
numeric: ln,
|
|
2102
|
+
between: dn,
|
|
2103
|
+
is: cn,
|
|
2104
|
+
digits: gn,
|
|
2105
|
+
mobile: sn,
|
|
2106
|
+
alpha: mn,
|
|
2107
|
+
alpha_spaces: vn,
|
|
2108
|
+
alpha_dash: fn,
|
|
2109
|
+
alpha_num: hn,
|
|
2110
|
+
regex: yn
|
|
2111
|
+
}, _n = () => {
|
|
2112
2112
|
const o = i({}), e = i([]), t = i({}), l = i({}), p = i([]), u = i(""), f = i(""), w = i({}), n = i([]), s = i({});
|
|
2113
2113
|
return {
|
|
2114
2114
|
data: o,
|
|
@@ -2147,7 +2147,7 @@ const Xa = { ...rt, ...ut }, en = (o, e, t, l) => {
|
|
|
2147
2147
|
setFormRule: (z, b) => {
|
|
2148
2148
|
w.value[z] = [], b && b.length && b.forEach((T) => {
|
|
2149
2149
|
w.value[z].push({
|
|
2150
|
-
validator: (R,
|
|
2150
|
+
validator: (R, E, D) => bn[T.key](R, E, D, T)
|
|
2151
2151
|
});
|
|
2152
2152
|
});
|
|
2153
2153
|
},
|
|
@@ -2158,13 +2158,13 @@ const Xa = { ...rt, ...ut }, en = (o, e, t, l) => {
|
|
|
2158
2158
|
delete w.value[z];
|
|
2159
2159
|
}
|
|
2160
2160
|
};
|
|
2161
|
-
},
|
|
2161
|
+
}, wn = { class: "custom-page" }, Cn = {
|
|
2162
2162
|
key: 0,
|
|
2163
2163
|
class: "btn-box"
|
|
2164
|
-
},
|
|
2164
|
+
}, zn = {
|
|
2165
2165
|
key: 1,
|
|
2166
2166
|
style: { "background-color": "#fff" }
|
|
2167
|
-
},
|
|
2167
|
+
}, Dn = /* @__PURE__ */ Q({
|
|
2168
2168
|
__name: "App",
|
|
2169
2169
|
props: {
|
|
2170
2170
|
formConfigurationId: {},
|
|
@@ -2178,7 +2178,7 @@ const Xa = { ...rt, ...ut }, en = (o, e, t, l) => {
|
|
|
2178
2178
|
},
|
|
2179
2179
|
emits: ["handleClick", "change"],
|
|
2180
2180
|
setup(o, { expose: e, emit: t }) {
|
|
2181
|
-
const l =
|
|
2181
|
+
const l = _n(), { formRule: p, data: u, flowKey: f, clearData: w, getFormData: n } = l, s = o, m = t;
|
|
2182
2182
|
f.value = s.flowKey;
|
|
2183
2183
|
const v = (R) => R === "accordion";
|
|
2184
2184
|
k(
|
|
@@ -2202,14 +2202,14 @@ const Xa = { ...rt, ...ut }, en = (o, e, t, l) => {
|
|
|
2202
2202
|
handleClick: z,
|
|
2203
2203
|
validateFormData: b,
|
|
2204
2204
|
getFormRef: T
|
|
2205
|
-
} =
|
|
2205
|
+
} = Gt(s, m, l);
|
|
2206
2206
|
return gt(async () => {
|
|
2207
2207
|
s.isShowBtn == !1 ? r(s.formConfigurationId) : y();
|
|
2208
2208
|
}), e({
|
|
2209
2209
|
validateFormData: b,
|
|
2210
2210
|
clearData: w
|
|
2211
|
-
}), (R,
|
|
2212
|
-
a(C).length > 0 ? (M(), x("div",
|
|
2211
|
+
}), (R, E) => (M(), x("div", wn, [
|
|
2212
|
+
a(C).length > 0 ? (M(), x("div", Cn, [
|
|
2213
2213
|
(M(!0), x(ee, null, ue(a(C), (D) => (M(), P(a(ht), {
|
|
2214
2214
|
key: D.id,
|
|
2215
2215
|
style: { "margin-right": "20px" },
|
|
@@ -2276,7 +2276,7 @@ const Xa = { ...rt, ...ut }, en = (o, e, t, l) => {
|
|
|
2276
2276
|
}, 1032, ["header"]))
|
|
2277
2277
|
]),
|
|
2278
2278
|
_: 2
|
|
2279
|
-
}, 1032, ["collapsible", "activeKey"])) : (M(), x("div",
|
|
2279
|
+
}, 1032, ["collapsible", "activeKey"])) : (M(), x("div", zn, [
|
|
2280
2280
|
a(d) ? (M(), P(a(Fe), {
|
|
2281
2281
|
key: 0,
|
|
2282
2282
|
ref_for: !0,
|
|
@@ -2304,7 +2304,7 @@ const Xa = { ...rt, ...ut }, en = (o, e, t, l) => {
|
|
|
2304
2304
|
])
|
|
2305
2305
|
]));
|
|
2306
2306
|
}
|
|
2307
|
-
}),
|
|
2307
|
+
}), Mn = /* @__PURE__ */ fe(Dn, [["__scopeId", "data-v-9e84a1fc"]]), Vn = {
|
|
2308
2308
|
姓名: { "zh-CN": "姓名", en: "Name", "zh-MO": "姓名", _appCode: "framework" },
|
|
2309
2309
|
状态: { "zh-CN": "状态", en: "Status", "zh-MO": "狀態", _appCode: "framework" },
|
|
2310
2310
|
组织名称: { "zh-CN": "组织名称", en: "Organization Name", "zh-MO": "組織名稱", _appCode: "framework" },
|
|
@@ -2435,9 +2435,9 @@ const Xa = { ...rt, ...ut }, en = (o, e, t, l) => {
|
|
|
2435
2435
|
选择源单: { "zh-CN": "选择源单", en: "Select Source Document", "zh-MO": "選擇源單", _appCode: "framework" },
|
|
2436
2436
|
请选择: { "zh-CN": "请选择", en: "Please select", "zh-MO": "請選擇", _appCode: "framework" }
|
|
2437
2437
|
};
|
|
2438
|
-
Ct(
|
|
2439
|
-
const
|
|
2438
|
+
Ct(Vn);
|
|
2439
|
+
const Hn = pt(Mn);
|
|
2440
2440
|
export {
|
|
2441
|
-
|
|
2442
|
-
|
|
2441
|
+
Hn as DasProcessForm,
|
|
2442
|
+
Hn as default
|
|
2443
2443
|
};
|