@das-fed/ui 7.0.7-hot.21 → 7.0.7-hot.23
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-8yffh0Id.js → index-DMJXZM7n.js} +1067 -1056
- package/packages/business-components/ai-panel/index-DMJXZM7n.js.gz +0 -0
- package/packages/business-components/ai-panel/{index-IzGl26KU.js → index-MqhMkLo9.js} +9 -9
- package/packages/business-components/ai-panel/index-MqhMkLo9.js.gz +0 -0
- package/packages/business-components/ai-panel/{index-OwRrV6K8.js → index-_q72oKSF.js} +63 -62
- package/packages/business-components/ai-panel/index-_q72oKSF.js.gz +0 -0
- package/packages/business-components/ai-panel/index.js +1 -1
- package/packages/business-components/device-panel/index.js +14908 -14808
- 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 +46 -46
- package/packages/business-components/process-configuration/index.js.gz +0 -0
- package/packages/business-components/process-form/index.js +99 -99
- package/packages/business-components/process-form/index.js.gz +0 -0
- package/packages/business-components/process-search-form/index.js +77 -77
- package/packages/business-components/process-search-form/index.js.gz +0 -0
- package/packages/business-components/process-table/index.js +215 -213
- package/packages/business-components/process-table/index.js.gz +0 -0
- package/packages/business-components/urgent-panel/index.js +1104 -1096
- package/packages/business-components/urgent-panel/index.js.gz +0 -0
- package/packages/business-components/user-org-dialog/index.js +243 -240
- package/packages/business-components/user-org-dialog/index.js.gz +0 -0
- package/packages/business-components/video-dialog/index.js +65 -64
- 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 +99 -99
- package/packages/components/calendar/index.js.gz +0 -0
- package/packages/components/cascader/index.js +2 -2
- package/packages/components/cascader/index.js.gz +0 -0
- package/packages/components/checkbox/index.js +30 -30
- package/packages/components/checkbox/index.js.gz +0 -0
- package/packages/components/date-picker/index.js +212 -212
- package/packages/components/date-picker/index.js.gz +0 -0
- package/packages/components/dimple-layout/index.js +77 -75
- package/packages/components/dimple-layout/index.js.gz +0 -0
- package/packages/components/dropdown/index.js +25 -24
- package/packages/components/dropdown/index.js.gz +0 -0
- package/packages/components/edit-table/index.js +398 -397
- package/packages/components/edit-table/index.js.gz +0 -0
- package/packages/components/error-overlay-model/index.js +47 -45
- package/packages/components/error-overlay-model/index.js.gz +0 -0
- package/packages/components/form-item/index.js +67 -67
- package/packages/components/form-item/index.js.gz +0 -0
- package/packages/components/hls-player/index.js +14 -7
- package/packages/components/hls-player/index.js.gz +0 -0
- package/packages/components/image-upload/index.js +147 -143
- package/packages/components/image-upload/index.js.gz +0 -0
- package/packages/components/image-viewer/index.js +297 -293
- package/packages/components/image-viewer/index.js.gz +0 -0
- package/packages/components/input/index.js +52 -52
- package/packages/components/input/index.js.gz +0 -0
- package/packages/components/input-number/index.js +26 -26
- package/packages/components/input-number/index.js.gz +0 -0
- package/packages/components/live-player/index.js +251 -248
- package/packages/components/live-player/index.js.gz +0 -0
- package/packages/components/map/index.js +421 -415
- 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/popover/index.js +12 -12
- package/packages/components/popover/index.js.gz +0 -0
- package/packages/components/radio-tabs/index.js +34 -34
- package/packages/components/radio-tabs/index.js.gz +0 -0
- package/packages/components/rich-editor/index.js +4613 -4583
- 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 +24 -24
- package/packages/components/search/index.js.gz +0 -0
- package/packages/components/select/index.js +60 -60
- package/packages/components/select/index.js.gz +0 -0
- package/packages/components/select-list/index.js +9 -5
- 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 +33 -33
- package/packages/components/spin/index.js.gz +0 -0
- package/packages/components/split-panel/index.js +129 -128
- package/packages/components/split-panel/index.js.gz +0 -0
- package/packages/components/table/index.js +179 -178
- 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-select/index.js +1 -1
- 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 +1117 -1093
- package/packages/components/tree-v2/index.js.gz +0 -0
- package/packages/business-components/ai-panel/index-8yffh0Id.js.gz +0 -0
- package/packages/business-components/ai-panel/index-IzGl26KU.js.gz +0 -0
- package/packages/business-components/ai-panel/index-OwRrV6K8.js.gz +0 -0
|
@@ -9,14 +9,14 @@ import { DasUpload as wt } from "@das-fed/ui/packages/components/upload/index";
|
|
|
9
9
|
import { DasFormItem as U } from "@das-fed/ui/packages/components/form-item/index";
|
|
10
10
|
import { DasAutocomplete as Ct } from "@das-fed/ui/packages/components/autocomplete/index";
|
|
11
11
|
import fe from "dayjs";
|
|
12
|
-
import { DasImageViewer as
|
|
12
|
+
import { DasImageViewer as Ee } from "@das-fed/ui/packages/components/image-viewer/index";
|
|
13
13
|
import { DasInput as Dt } from "@das-fed/ui/packages/components/input/index";
|
|
14
14
|
import { DasTooltip as Se } from "@das-fed/ui/packages/components/tooltip/index";
|
|
15
15
|
import { i18n as A, t as C, setI18nRule as Vt } 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 kt } from "@das-fed/ui/packages/components/search-form/index";
|
|
18
18
|
import { DasModelTableDialog as St } from "@das-fed/ui/packages/business-components/model-table-dialog";
|
|
19
|
-
import { getProjectInfo as
|
|
19
|
+
import { getProjectInfo as Be } from "@das-fed/utils/common-info";
|
|
20
20
|
import { getConfig as Nt } from "@das-fed/utils/config";
|
|
21
21
|
import { DasRichEditor as Ae } from "@das-fed/ui/packages/components/rich-editor/index";
|
|
22
22
|
import { DasCollaspe as Qe } from "@das-fed/ui/packages/components/collaspe/index";
|
|
@@ -25,7 +25,7 @@ const ae = "v1", Lt = X(`/workflow/form/form/${ae}`), zt = X(`/workflow/form/for
|
|
|
25
25
|
X(`/workflow/api/user/${ae}`);
|
|
26
26
|
const xe = X(`/workflow/api/extend/${ae}`), Mt = X(`/workflow/flow/def/${ae}`), Tt = X(`/workflow/form/customQuery/${ae}`), le = X(`/api/enterpriseright/permission/${ae}`), Ne = X(`/api/space-manage/space-tree/${ae}`), Rt = X(`/workflow/form/dataTemplate/${ae}`), Le = X(`/api/supply/supplier/${ae}`), $t = X(`/api/warehouse/vms/${ae}/asset-receive`), Pt = Rt.get("/getBpmDataTemplateInfoByFlowKey"), Ft = Lt.get("/formDesign"), It = zt.get("/get"), jt = xe.get("/report-config");
|
|
27
27
|
xe.get("/application-report");
|
|
28
|
-
const Ot = Mt.get("/getBindRelationByDefKey"), qt = Tt.get("/getByAlias"), Kt = le.get("/organization/authTree"),
|
|
28
|
+
const Ot = Mt.get("/getBindRelationByDefKey"), qt = Tt.get("/getByAlias"), Kt = le.get("/organization/authTree"), Et = le.post("/user/list"), Bt = le.post("/data/user-query"), At = le.get("/role/list"), Qt = le.post("/data/role-ids"), Ut = le.get("/organization/organizationpage"), xt = le.get("/station/list"), Yt = le.get("/position/list"), _e = le.post("/organization/detailbyids"), Jt = Ne.get("/controller/area-children"), Ht = Ne.get("/controller/fuzzy-tree-all"), Wt = Ne.get("/controller/space"), Zt = Le.post("/supplier/list/page", (n) => {
|
|
29
29
|
var e, t;
|
|
30
30
|
return n.data.pageBean = {
|
|
31
31
|
page: ((e = n == null ? void 0 : n.data) == null ? void 0 : e.pageIndex) || 1,
|
|
@@ -33,8 +33,8 @@ const Ot = Mt.get("/getBindRelationByDefKey"), qt = Tt.get("/getByAlias"), Kt =
|
|
|
33
33
|
}, n;
|
|
34
34
|
}), Gt = Le.get("/supplier"), Xt = Le.post("/classification/list/all"), ea = $t.get("/receive-code"), we = r(""), ta = (n, e, t) => {
|
|
35
35
|
const { setDetailData: l, getFormData: d, setFormData: i, formRule: h, showData: w, disabledData: s, encryptionData: o } = t, u = r([]), g = r([]), v = r([]), c = r(!1), _ = yt(), m = r([]), y = (k) => Object.keys(k).length === 0, p = async (k) => {
|
|
36
|
-
const [
|
|
37
|
-
if (
|
|
36
|
+
const [E, q] = await Ft({ formId: k }).run();
|
|
37
|
+
if (E) return;
|
|
38
38
|
const H = JSON.parse(q.bos);
|
|
39
39
|
we.value = H[0].alias, g.value.length && g.value.forEach((G) => {
|
|
40
40
|
G.formKey === q.formKey && i(q.formKey, we.value, G.id);
|
|
@@ -47,29 +47,29 @@ const Ot = Mt.get("/getBindRelationByDefKey"), qt = Tt.get("/getByAlias"), Kt =
|
|
|
47
47
|
}, 50);
|
|
48
48
|
}, f = async () => {
|
|
49
49
|
if (n.formConfigurationId) {
|
|
50
|
-
const [k,
|
|
50
|
+
const [k, E] = await jt({ id: n.formConfigurationId }).run();
|
|
51
51
|
if (k) return;
|
|
52
|
-
g.value =
|
|
52
|
+
g.value = E.reports, u.value = E.reports[0].buttons.filter((q) => !(n.isView && q.event !== "LINK")), p(E.reports[0].formId);
|
|
53
53
|
}
|
|
54
54
|
if (n.flowKey) {
|
|
55
|
-
const [k,
|
|
55
|
+
const [k, E] = await Ot({ flowKey: n.flowKey }).run();
|
|
56
56
|
if (k) return;
|
|
57
|
-
p(
|
|
57
|
+
p(E.pcForm.pcFormId);
|
|
58
58
|
}
|
|
59
59
|
}, D = async () => {
|
|
60
60
|
var q, H, ne, te;
|
|
61
61
|
if (!n.flowKey) return;
|
|
62
|
-
const [k,
|
|
62
|
+
const [k, E] = await Pt().run({
|
|
63
63
|
flowKey: n.flowKey,
|
|
64
64
|
needDisplayFileds: !1
|
|
65
65
|
});
|
|
66
|
-
o.value = ((te = (ne = (H = (q =
|
|
67
|
-
}, b = r({}), z = (k,
|
|
68
|
-
const { key: q } =
|
|
66
|
+
o.value = ((te = (ne = (H = (q = E == null ? void 0 : E.value) == null ? void 0 : q.boDef) == null ? void 0 : H.boEnt) == null ? void 0 : ne.attributeList) == null ? void 0 : te.filter((G) => G.encryption == "phone")) || [];
|
|
67
|
+
}, b = r({}), z = (k, E) => {
|
|
68
|
+
const { key: q } = E;
|
|
69
69
|
b.value[q] || (b.value[q] = k);
|
|
70
70
|
}, K = async () => (v.value.forEach((k) => {
|
|
71
71
|
k.columns && m.value.push(k.key);
|
|
72
|
-
}), await ct(), new Promise((k,
|
|
72
|
+
}), await ct(), new Promise((k, E) => {
|
|
73
73
|
let q = !0;
|
|
74
74
|
for (const H in b.value)
|
|
75
75
|
b.value[H].validate((ne) => {
|
|
@@ -91,8 +91,8 @@ const Ot = Mt.get("/getBindRelationByDefKey"), qt = Tt.get("/getByAlias"), Kt =
|
|
|
91
91
|
getForm: p,
|
|
92
92
|
getBtnSet: f,
|
|
93
93
|
handleClick: async (k) => {
|
|
94
|
-
let { result:
|
|
95
|
-
|
|
94
|
+
let { result: E } = await K();
|
|
95
|
+
E && (e("handleClick", k, d()), k.event === "LINK" && g.value.forEach((q) => {
|
|
96
96
|
k.eventTarget === q.formKey && (u.value = q.buttons.filter((H) => !(n.isView && H.event !== "LINK")), c.value = !1, h.value = {}, p(q.formId));
|
|
97
97
|
}));
|
|
98
98
|
},
|
|
@@ -507,7 +507,7 @@ const W = (n) => {
|
|
|
507
507
|
}, {
|
|
508
508
|
default: R(() => [
|
|
509
509
|
Ke("div", ga, [
|
|
510
|
-
S(a(
|
|
510
|
+
S(a(Ee), {
|
|
511
511
|
modelValue: s.value,
|
|
512
512
|
"onUpdate:modelValue": y[0] || (y[0] = (p) => s.value = p),
|
|
513
513
|
status: v.value,
|
|
@@ -887,8 +887,8 @@ const _a = (n, e) => {
|
|
|
887
887
|
const z = b.conditionfield.filter((N) => N.defaultType == 1);
|
|
888
888
|
let K = {};
|
|
889
889
|
z.forEach((N) => {
|
|
890
|
-
const k = N.fieldPath.split("."),
|
|
891
|
-
K[N.field] = h(
|
|
890
|
+
const k = N.fieldPath.split("."), E = k[k.length - 1];
|
|
891
|
+
K[N.field] = h(E);
|
|
892
892
|
}), ie(
|
|
893
893
|
e.setting.options.customQuery.alias,
|
|
894
894
|
e.setting.options.customQuery.conditionfield,
|
|
@@ -913,8 +913,8 @@ const _a = (n, e) => {
|
|
|
913
913
|
let K = {};
|
|
914
914
|
z.forEach((N) => {
|
|
915
915
|
var q;
|
|
916
|
-
const k = (q = N.fieldPath) == null ? void 0 : q.split("."),
|
|
917
|
-
K[N.field] = h(
|
|
916
|
+
const k = (q = N.fieldPath) == null ? void 0 : q.split("."), E = k[k.length - 1];
|
|
917
|
+
K[N.field] = h(E);
|
|
918
918
|
}), ie(e.setting.options.customQuery.alias, e.setting.options.customQuery.conditionfield, K).then(
|
|
919
919
|
(N) => {
|
|
920
920
|
m.value = N;
|
|
@@ -963,7 +963,7 @@ const _a = (n, e) => {
|
|
|
963
963
|
default: La
|
|
964
964
|
}, Symbol.toStringTag, { value: "Module" })), za = (n, e, t) => {
|
|
965
965
|
var ne, te, G, ce, ge;
|
|
966
|
-
const l =
|
|
966
|
+
const l = Be().id, d = r(!1), i = (ge = (ce = (G = (te = (ne = n == null ? void 0 : n.options) == null ? void 0 : ne.selector) == null ? void 0 : te.type) == null ? void 0 : G.alias) == null ? void 0 : ce.replace("eip-", "")) == null ? void 0 : ge.replace("-selector", ""), h = r([]), w = r(""), s = r(""), o = {
|
|
967
967
|
user: A("搜索姓名/账号/手机号").value,
|
|
968
968
|
org: A("搜索组织名称/组织编码").value,
|
|
969
969
|
role: A("搜索角色名称").value,
|
|
@@ -998,7 +998,7 @@ const _a = (n, e) => {
|
|
|
998
998
|
0: A("无效").value,
|
|
999
999
|
1: A("有效").value
|
|
1000
1000
|
}, m = {
|
|
1001
|
-
user:
|
|
1001
|
+
user: Bt,
|
|
1002
1002
|
org: _e,
|
|
1003
1003
|
role: Qt,
|
|
1004
1004
|
job: _e,
|
|
@@ -1082,7 +1082,7 @@ const _a = (n, e) => {
|
|
|
1082
1082
|
}
|
|
1083
1083
|
}
|
|
1084
1084
|
}, i === "user" && (p.value.content = {
|
|
1085
|
-
api:
|
|
1085
|
+
api: Et,
|
|
1086
1086
|
searchKey: "groupId",
|
|
1087
1087
|
params: {
|
|
1088
1088
|
status: 1,
|
|
@@ -1164,21 +1164,21 @@ const _a = (n, e) => {
|
|
|
1164
1164
|
const j = {
|
|
1165
1165
|
name: "",
|
|
1166
1166
|
published: 1
|
|
1167
|
-
}, [x,
|
|
1168
|
-
x || (f.value[1].options =
|
|
1167
|
+
}, [x, B] = await Xt(j).run();
|
|
1168
|
+
x || (f.value[1].options = B);
|
|
1169
1169
|
}, N = () => {
|
|
1170
1170
|
var x;
|
|
1171
1171
|
w.value = "", d.value = !0;
|
|
1172
1172
|
let j = g[i];
|
|
1173
|
-
p.value.content.selectListProps.data = (x = h == null ? void 0 : h.value) == null ? void 0 : x.map((
|
|
1173
|
+
p.value.content.selectListProps.data = (x = h == null ? void 0 : h.value) == null ? void 0 : x.map((B) => ({ name: B == null ? void 0 : B.label, [j]: B == null ? void 0 : B.value }));
|
|
1174
1174
|
};
|
|
1175
1175
|
D();
|
|
1176
1176
|
const k = async () => {
|
|
1177
|
-
var j, x,
|
|
1177
|
+
var j, x, B, Y, M, T, $, F, re, ze, Me, Te, Re, $e, Pe, Fe, Ie;
|
|
1178
1178
|
p.value.content.params = {
|
|
1179
1179
|
...(x = (j = p == null ? void 0 : p.value) == null ? void 0 : j.content) == null ? void 0 : x.params,
|
|
1180
1180
|
pageIndex: 1
|
|
1181
|
-
}, (i === "user" || i === "org" || i === "post" || i === "role" || i === "job") && (p.value.content.params.name = (
|
|
1181
|
+
}, (i === "user" || i === "org" || i === "post" || i === "role" || i === "job") && (p.value.content.params.name = (B = f == null ? void 0 : f.value[0]) == null ? void 0 : B.value), i === "source" && (p.value.content.params.key = (Y = f == null ? void 0 : f.value[0]) == null ? void 0 : Y.value), i === "supplier" && (p.value.content.params.querys = [
|
|
1182
1182
|
{
|
|
1183
1183
|
property: "orgId",
|
|
1184
1184
|
value: l,
|
|
@@ -1214,10 +1214,10 @@ const _a = (n, e) => {
|
|
|
1214
1214
|
L(
|
|
1215
1215
|
() => d == null ? void 0 : d.value,
|
|
1216
1216
|
(j) => {
|
|
1217
|
-
j ||
|
|
1217
|
+
j || E();
|
|
1218
1218
|
}
|
|
1219
1219
|
);
|
|
1220
|
-
const
|
|
1220
|
+
const E = async () => {
|
|
1221
1221
|
i === "supplier" ? (f.value[0].value = "", f.value[1].value = void 0) : (i === "org" || i === "user" || i === "source" || i === "post" || i === "role" || i === "job") && (f.value[0].value = ""), D();
|
|
1222
1222
|
};
|
|
1223
1223
|
return {
|
|
@@ -1232,14 +1232,14 @@ const _a = (n, e) => {
|
|
|
1232
1232
|
roleStatusMap: _,
|
|
1233
1233
|
openDialog: N,
|
|
1234
1234
|
confirm: (j) => {
|
|
1235
|
-
var
|
|
1235
|
+
var B;
|
|
1236
1236
|
let x = g[i];
|
|
1237
|
-
h.value = j == null ? void 0 : j.map((Y) => ({ label: (Y == null ? void 0 : Y.name) || (Y == null ? void 0 : Y.code), value: Y[x] })), i === "supplier" && (s.value = (
|
|
1237
|
+
h.value = j == null ? void 0 : j.map((Y) => ({ label: (Y == null ? void 0 : Y.name) || (Y == null ? void 0 : Y.code), value: Y[x] })), i === "supplier" && (s.value = (B = j[0]) == null ? void 0 : B.linkmanPhone);
|
|
1238
1238
|
},
|
|
1239
1239
|
getDetail: async (j) => {
|
|
1240
1240
|
if (!j) return;
|
|
1241
1241
|
const x = m[i];
|
|
1242
|
-
let
|
|
1242
|
+
let B = {};
|
|
1243
1243
|
const Y = j == null ? void 0 : j.split(",");
|
|
1244
1244
|
if (i === "source") {
|
|
1245
1245
|
h.value = [
|
|
@@ -1249,8 +1249,8 @@ const _a = (n, e) => {
|
|
|
1249
1249
|
}
|
|
1250
1250
|
];
|
|
1251
1251
|
return;
|
|
1252
|
-
} else i === "user" ?
|
|
1253
|
-
const [M, T] = await x(
|
|
1252
|
+
} else i === "user" ? B.userIds = Y : i === "role" ? B.ids = Y : i === "supplier" ? B.id = Y : B = Y;
|
|
1253
|
+
const [M, T] = await x(B).run();
|
|
1254
1254
|
M || (i === "supplier" ? h.value = [
|
|
1255
1255
|
{
|
|
1256
1256
|
label: (T == null ? void 0 : T.name) || (T == null ? void 0 : T.code),
|
|
@@ -1276,7 +1276,7 @@ const _a = (n, e) => {
|
|
|
1276
1276
|
let u = {
|
|
1277
1277
|
pageSize: 1e4,
|
|
1278
1278
|
pageIndex: 1,
|
|
1279
|
-
projectId:
|
|
1279
|
+
projectId: Be().id,
|
|
1280
1280
|
//项目id
|
|
1281
1281
|
spaceId: ""
|
|
1282
1282
|
// orgId:getProjectInfo().id
|
|
@@ -1292,7 +1292,7 @@ const _a = (n, e) => {
|
|
|
1292
1292
|
const g = {
|
|
1293
1293
|
name: o
|
|
1294
1294
|
}, [v, c] = await u(g).run();
|
|
1295
|
-
return v ? {} : (c.forEach((_) => {
|
|
1295
|
+
return v ? {} : (console.log("requestfilterTree", c), c.forEach((_) => {
|
|
1296
1296
|
_.path.startsWith("/0") && (_.path = _.path.slice(2) + `/${_.id}`), _._name = _.nodeName ? _.nodeName : _.name;
|
|
1297
1297
|
}), c);
|
|
1298
1298
|
},
|
|
@@ -1319,7 +1319,7 @@ const _a = (n, e) => {
|
|
|
1319
1319
|
store: {}
|
|
1320
1320
|
},
|
|
1321
1321
|
setup(n) {
|
|
1322
|
-
var
|
|
1322
|
+
var B, Y;
|
|
1323
1323
|
const e = n, t = gt(() => {
|
|
1324
1324
|
var M, T, $;
|
|
1325
1325
|
return e.isView ? !(i(e.setting.name).split(",").length > 1) : (($ = (T = (M = e == null ? void 0 : e.setting) == null ? void 0 : M.options) == null ? void 0 : T.selector) == null ? void 0 : $.isSingle) ?? !0;
|
|
@@ -1344,7 +1344,7 @@ const _a = (n, e) => {
|
|
|
1344
1344
|
confirm: K,
|
|
1345
1345
|
getDetail: N,
|
|
1346
1346
|
searchData: k,
|
|
1347
|
-
searchOptions:
|
|
1347
|
+
searchOptions: E,
|
|
1348
1348
|
linkmanPhone: q
|
|
1349
1349
|
} = za(e.setting, h, u), { spacePath: H, spaceName: ne, searchSpace: te, changeSpace: G, spaceLoad: ce, filterSpaceTree: ge } = Ma(
|
|
1350
1350
|
t.value
|
|
@@ -1353,7 +1353,7 @@ const _a = (n, e) => {
|
|
|
1353
1353
|
j.value = M;
|
|
1354
1354
|
});
|
|
1355
1355
|
const x = r();
|
|
1356
|
-
return e.setting.options.tip && (x.value = W(e.setting.options.tip)), e.setting.options.validateList.length && w(e.setting.name, e.setting.options.validateList), y == "position" ? (t.value ? (H.value = i(e.setting.name) ?? "", u.value = i(e.setting.name) ? i(e.setting.name).split("/").pop() : u.value) : (H.value = [], u.value = i(e.setting.name) ? (Y = (
|
|
1356
|
+
return e.setting.options.tip && (x.value = W(e.setting.options.tip)), e.setting.options.validateList.length && w(e.setting.name, e.setting.options.validateList), y == "position" ? (t.value ? (H.value = i(e.setting.name) ?? "", u.value = i(e.setting.name) ? i(e.setting.name).split("/").pop() : u.value) : (H.value = [], u.value = i(e.setting.name) ? (Y = (B = i(e.setting.name)) == null ? void 0 : B.split(",")) == null ? void 0 : Y.map((M) => (H.value.push(M), M.split("/").pop())) : []), u.value || d(e.setting.name, null), L(u, (M) => {
|
|
1357
1357
|
t.value ? d(e.setting.name, M) : d(e.setting.name, (M == null ? void 0 : M.join(",")) || "");
|
|
1358
1358
|
}), L(ne, (M) => {
|
|
1359
1359
|
t.value ? d(e.setting.options.selector.type.positionName, M) : d(e.setting.options.selector.type.positionName, (M == null ? void 0 : M.join(",")) || "");
|
|
@@ -1399,13 +1399,13 @@ const _a = (n, e) => {
|
|
|
1399
1399
|
_: 2
|
|
1400
1400
|
/* DYNAMIC */
|
|
1401
1401
|
}, [
|
|
1402
|
-
(($ = a(
|
|
1402
|
+
(($ = a(E)) == null ? void 0 : $.length) > 0 ? {
|
|
1403
1403
|
name: "table-header-search",
|
|
1404
1404
|
fn: R(() => [
|
|
1405
1405
|
Ke("div", Ta, [
|
|
1406
1406
|
S(a(kt), {
|
|
1407
1407
|
labelLength: "6",
|
|
1408
|
-
options: a(
|
|
1408
|
+
options: a(E),
|
|
1409
1409
|
onConfirm: a(k),
|
|
1410
1410
|
"is-margin-right": !1
|
|
1411
1411
|
}, null, 8, ["options", "onConfirm"])
|
|
@@ -1759,7 +1759,7 @@ const _a = (n, e) => {
|
|
|
1759
1759
|
}, {
|
|
1760
1760
|
default: R(() => [
|
|
1761
1761
|
s.value ? (V(), J("div", Fa, [
|
|
1762
|
-
S(a(
|
|
1762
|
+
S(a(Ee), {
|
|
1763
1763
|
modelValue: s.value,
|
|
1764
1764
|
"onUpdate:modelValue": m[0] || (m[0] = (y) => s.value = y),
|
|
1765
1765
|
status: v.value,
|
|
@@ -1777,7 +1777,7 @@ const _a = (n, e) => {
|
|
|
1777
1777
|
default: qa
|
|
1778
1778
|
}, Symbol.toStringTag, { value: "Module" })), Ka = {
|
|
1779
1779
|
name: "switch"
|
|
1780
|
-
},
|
|
1780
|
+
}, Ea = /* @__PURE__ */ Q({
|
|
1781
1781
|
...Ka,
|
|
1782
1782
|
props: {
|
|
1783
1783
|
setting: { default: () => ({
|
|
@@ -1830,11 +1830,11 @@ const _a = (n, e) => {
|
|
|
1830
1830
|
}
|
|
1831
1831
|
}), ot = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1832
1832
|
__proto__: null,
|
|
1833
|
-
default:
|
|
1834
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1833
|
+
default: Ea
|
|
1834
|
+
}, Symbol.toStringTag, { value: "Module" })), Ba = {
|
|
1835
1835
|
name: "text"
|
|
1836
1836
|
}, Aa = /* @__PURE__ */ Q({
|
|
1837
|
-
...
|
|
1837
|
+
...Ba,
|
|
1838
1838
|
props: {
|
|
1839
1839
|
setting: { default: () => ({
|
|
1840
1840
|
icon: "",
|
|
@@ -2011,7 +2011,7 @@ const _a = (n, e) => {
|
|
|
2011
2011
|
const c = fe().format("YYYY-MM-DD ");
|
|
2012
2012
|
i(e.setting.name) && (s.value = i(e.setting.name)), e.setting.options.formulasDiyJs && (s.value = fe(c + e.setting.options.formulasDiyJs)), s.value || d(e.setting.name, null);
|
|
2013
2013
|
}, 50), e.setting.options.validateList.length && h(e.setting.name, e.setting.options.validateList), L(s, (c) => {
|
|
2014
|
-
d(e.setting.name, c);
|
|
2014
|
+
console.log(c, "newVal"), d(e.setting.name, c);
|
|
2015
2015
|
}), (c, _) => o.value ? (V(), P(a(U), {
|
|
2016
2016
|
key: 0,
|
|
2017
2017
|
col: e.span,
|
|
@@ -2186,79 +2186,79 @@ Object.keys(De).map((n) => ut[De[n].default.name] = De[n].default);
|
|
|
2186
2186
|
Object.keys(Ve).map((n) => pt[Ve[n].default.name] = Ve[n].default);
|
|
2187
2187
|
Object.keys(ke).map((n) => tn[ke[n].default.name] = ke[n].default);
|
|
2188
2188
|
Object.keys(Ce).map((n) => de[Ce[n].default.name] = Ce[n].default);
|
|
2189
|
-
const an = { ...ut, ...pt }, nn = (n, e, t, l) => {
|
|
2189
|
+
const an = { ...ut, ...pt }, nn = "---------测试验证规则传参-----------", sn = (n, e, t, l) => {
|
|
2190
2190
|
(!e || e.toString() === "") && parseInt(e) !== 0 ? t(new Error(`${C("*必填")}`)) : t();
|
|
2191
|
-
}, sn = (n, e, t, l) => {
|
|
2192
|
-
e !== "" && e.length > parseInt(l.value) ? t(new Error(`${C("最大文本长度")}${C("不能超过")}${l.value}`)) : t();
|
|
2193
2191
|
}, on = (n, e, t, l) => {
|
|
2194
|
-
e !== "" && e.length
|
|
2192
|
+
e !== "" && e.length > parseInt(l.value) ? t(new Error(`${C("最大文本长度")}${C("不能超过")}${l.value}`)) : t();
|
|
2195
2193
|
}, ln = (n, e, t, l) => {
|
|
2194
|
+
e !== "" && e.length < parseInt(l.value) ? t(new Error(`${C("最小文本长度")}${C("不能少于")}${l.value}`)) : t();
|
|
2195
|
+
}, rn = (n, e, t, l) => {
|
|
2196
2196
|
if (e !== "" && !/^1[3456789]\d{9}$/.test(e))
|
|
2197
2197
|
return t(new Error(C("手机号码格式不正确,请重新输入"))), !1;
|
|
2198
2198
|
t();
|
|
2199
|
-
},
|
|
2199
|
+
}, un = (n, e, t) => {
|
|
2200
2200
|
if (e !== "" && !/^[A-Za-z0-9\u4e00-\u9fa5]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/.test(e))
|
|
2201
2201
|
return t(new Error(C("电子邮箱格式不正确,请重新输入"))), !1;
|
|
2202
2202
|
t();
|
|
2203
|
-
},
|
|
2203
|
+
}, pn = (n, e, t) => {
|
|
2204
2204
|
if (e !== "" && !/^-?\d+$/.test(e))
|
|
2205
2205
|
return t(new Error(C("请输入整数"))), !1;
|
|
2206
2206
|
t();
|
|
2207
|
-
},
|
|
2208
|
-
if (e !== "" && e != l.value)
|
|
2207
|
+
}, dn = (n, e, t, l) => {
|
|
2208
|
+
if (console.log(nn), console.log(l.value), console.log(e), e !== "" && e != l.value)
|
|
2209
2209
|
return t(new Error(C("请输入相同的值"))), !1;
|
|
2210
2210
|
t();
|
|
2211
|
-
}, dn = (n, e, t, l) => {
|
|
2212
|
-
e === "" ? t() : /^[+-]?\d*\.?\d*$/.test(e) ? e < parseFloat(l.value) ? t(new Error(`${l.name}${C("不能小于")}${l.value}`)) : t() : t(new Error(C("请输入数字")));
|
|
2213
2211
|
}, cn = (n, e, t, l) => {
|
|
2214
|
-
e === "" ? t() : /^[+-]?\d*\.?\d*$/.test(e) ? e
|
|
2212
|
+
e === "" ? t() : /^[+-]?\d*\.?\d*$/.test(e) ? e < parseFloat(l.value) ? t(new Error(`${l.name}${C("不能小于")}${l.value}`)) : t() : t(new Error(C("请输入数字")));
|
|
2215
2213
|
}, gn = (n, e, t, l) => {
|
|
2214
|
+
e === "" ? t() : /^[+-]?\d*\.?\d*$/.test(e) ? e > parseFloat(l.value) ? t(new Error(`${l.name}${C("不能大于")}${l.value}`)) : t() : t(new Error(C("请输入数字")));
|
|
2215
|
+
}, mn = (n, e, t, l) => {
|
|
2216
2216
|
const d = /^[+-]?(\d*\.\d+([eE]?[+-]?\d+)?|\d+[eE][+-]?\d+)$/, i = /^-?\d+$/;
|
|
2217
2217
|
e === "" ? t() : d.test(e) || i.test(e) ? e >= parseFloat(l.start) && e <= parseFloat(l.end) ? t() : t(new Error(`${C("只能输入指定数字范围")}${l.start}-${l.end}`)) : t(new Error(C("请输入数字")));
|
|
2218
|
-
}, mn = (n, e, t, l) => {
|
|
2219
|
-
e === "" || parseFloat(e) === parseFloat(l.value) ? t() : t(new Error(`${C("只能输入指定的值")}${l.value}`));
|
|
2220
2218
|
}, vn = (n, e, t, l) => {
|
|
2219
|
+
e === "" || parseFloat(e) === parseFloat(l.value) ? t() : t(new Error(`${C("只能输入指定的值")}${l.value}`));
|
|
2220
|
+
}, fn = (n, e, t, l) => {
|
|
2221
2221
|
e === "" ? t() : /^-?\d+$/.test(e) ? Math.abs(e).toString().length === parseInt(l.value) ? t() : t(new Error(`${C("只能输入")}${l.value}${C("位数数字")}`)) : t(new Error(C("请输入整数")));
|
|
2222
|
-
},
|
|
2222
|
+
}, hn = (n, e, t) => {
|
|
2223
2223
|
if (e !== "" && !/^[a-zA-Z]{1,}$/.test(e))
|
|
2224
2224
|
return t(new Error(C("只能输入字母"))), !1;
|
|
2225
2225
|
t();
|
|
2226
|
-
},
|
|
2226
|
+
}, yn = (n, e, t) => {
|
|
2227
2227
|
if (e !== "" && !/^[a-zA-Z ]{1,}$/.test(e))
|
|
2228
2228
|
return t(new Error(C("只能输入字母空格"))), !1;
|
|
2229
2229
|
t();
|
|
2230
|
-
},
|
|
2230
|
+
}, bn = (n, e, t) => {
|
|
2231
2231
|
if (e !== "" && !/^[0-9a-zA-Z_-]{1,}$/.test(e))
|
|
2232
2232
|
return t(new Error(C("只能输入字母数字横线下划线"))), !1;
|
|
2233
2233
|
t();
|
|
2234
|
-
},
|
|
2234
|
+
}, _n = (n, e, t) => {
|
|
2235
2235
|
if (e !== "" && !/^[0-9a-zA-Z]{1,}$/.test(e))
|
|
2236
2236
|
return t(new Error(C("只能输入字母数字"))), !1;
|
|
2237
2237
|
t();
|
|
2238
|
-
},
|
|
2238
|
+
}, wn = (n, e, t, l) => {
|
|
2239
2239
|
const d = new RegExp(l.value);
|
|
2240
2240
|
if (e !== "" && !d.test(e))
|
|
2241
2241
|
return t(new Error(l.errorMessage)), !1;
|
|
2242
2242
|
t();
|
|
2243
|
-
},
|
|
2244
|
-
required:
|
|
2245
|
-
min:
|
|
2246
|
-
max:
|
|
2247
|
-
email:
|
|
2248
|
-
min_value:
|
|
2249
|
-
max_value:
|
|
2250
|
-
confirmed:
|
|
2251
|
-
numeric:
|
|
2252
|
-
between:
|
|
2253
|
-
is:
|
|
2254
|
-
digits:
|
|
2255
|
-
mobile:
|
|
2256
|
-
alpha:
|
|
2257
|
-
alpha_spaces:
|
|
2258
|
-
alpha_dash:
|
|
2259
|
-
alpha_num:
|
|
2260
|
-
regex:
|
|
2261
|
-
},
|
|
2243
|
+
}, Cn = {
|
|
2244
|
+
required: sn,
|
|
2245
|
+
min: ln,
|
|
2246
|
+
max: on,
|
|
2247
|
+
email: un,
|
|
2248
|
+
min_value: cn,
|
|
2249
|
+
max_value: gn,
|
|
2250
|
+
confirmed: dn,
|
|
2251
|
+
numeric: pn,
|
|
2252
|
+
between: mn,
|
|
2253
|
+
is: vn,
|
|
2254
|
+
digits: fn,
|
|
2255
|
+
mobile: rn,
|
|
2256
|
+
alpha: hn,
|
|
2257
|
+
alpha_spaces: yn,
|
|
2258
|
+
alpha_dash: bn,
|
|
2259
|
+
alpha_num: _n,
|
|
2260
|
+
regex: wn
|
|
2261
|
+
}, Dn = () => {
|
|
2262
2262
|
const n = r({}), e = r([]), t = r({}), l = r({}), d = r([]), i = r(""), h = r(""), w = r({}), s = r([]), o = r({});
|
|
2263
2263
|
return {
|
|
2264
2264
|
data: n,
|
|
@@ -2297,7 +2297,7 @@ const an = { ...ut, ...pt }, nn = (n, e, t, l) => {
|
|
|
2297
2297
|
setFormRule: (D, b) => {
|
|
2298
2298
|
w.value[D] = [], b && b.length && b.forEach((z) => {
|
|
2299
2299
|
w.value[D].push({
|
|
2300
|
-
validator: (K, N, k) =>
|
|
2300
|
+
validator: (K, N, k) => Cn[z.key](K, N, k, z)
|
|
2301
2301
|
});
|
|
2302
2302
|
});
|
|
2303
2303
|
},
|
|
@@ -2308,13 +2308,13 @@ const an = { ...ut, ...pt }, nn = (n, e, t, l) => {
|
|
|
2308
2308
|
delete w.value[D];
|
|
2309
2309
|
}
|
|
2310
2310
|
};
|
|
2311
|
-
},
|
|
2311
|
+
}, Vn = { class: "custom-page" }, kn = {
|
|
2312
2312
|
key: 0,
|
|
2313
2313
|
class: "btn-box"
|
|
2314
|
-
},
|
|
2314
|
+
}, Sn = {
|
|
2315
2315
|
key: 1,
|
|
2316
2316
|
style: { "background-color": "#fff" }
|
|
2317
|
-
},
|
|
2317
|
+
}, Nn = /* @__PURE__ */ Q({
|
|
2318
2318
|
__name: "App",
|
|
2319
2319
|
props: {
|
|
2320
2320
|
formConfigurationId: {},
|
|
@@ -2328,7 +2328,7 @@ const an = { ...ut, ...pt }, nn = (n, e, t, l) => {
|
|
|
2328
2328
|
},
|
|
2329
2329
|
emits: ["handleClick", "change"],
|
|
2330
2330
|
setup(n, { expose: e, emit: t }) {
|
|
2331
|
-
const l =
|
|
2331
|
+
const l = Dn(), { formRule: d, data: i, flowKey: h, clearData: w, getFormData: s } = l, o = n, u = t;
|
|
2332
2332
|
h.value = o.flowKey;
|
|
2333
2333
|
const g = (z) => z === "accordion";
|
|
2334
2334
|
L(
|
|
@@ -2357,8 +2357,8 @@ const an = { ...ut, ...pt }, nn = (n, e, t, l) => {
|
|
|
2357
2357
|
}), e({
|
|
2358
2358
|
validateFormData: D,
|
|
2359
2359
|
clearData: w
|
|
2360
|
-
}), (z, K) => (V(), J("div",
|
|
2361
|
-
a(_).length > 0 ? (V(), J("div",
|
|
2360
|
+
}), (z, K) => (V(), J("div", Vn, [
|
|
2361
|
+
a(_).length > 0 ? (V(), J("div", kn, [
|
|
2362
2362
|
(V(!0), J(
|
|
2363
2363
|
ee,
|
|
2364
2364
|
null,
|
|
@@ -2460,7 +2460,7 @@ const an = { ...ut, ...pt }, nn = (n, e, t, l) => {
|
|
|
2460
2460
|
]),
|
|
2461
2461
|
_: 2
|
|
2462
2462
|
/* DYNAMIC */
|
|
2463
|
-
}, 1032, ["collapsible", "activeKey"])) : (V(), J("div",
|
|
2463
|
+
}, 1032, ["collapsible", "activeKey"])) : (V(), J("div", Sn, [
|
|
2464
2464
|
a(c) ? (V(), P(a(je), {
|
|
2465
2465
|
key: 0,
|
|
2466
2466
|
ref_for: !0,
|
|
@@ -2498,7 +2498,7 @@ const an = { ...ut, ...pt }, nn = (n, e, t, l) => {
|
|
|
2498
2498
|
])
|
|
2499
2499
|
]));
|
|
2500
2500
|
}
|
|
2501
|
-
}),
|
|
2501
|
+
}), Ln = /* @__PURE__ */ ye(Nn, [["__scopeId", "data-v-ce01ee82"]]), zn = {
|
|
2502
2502
|
姓名: { "zh-CN": "姓名", en: "Name", _appCode: "framework" },
|
|
2503
2503
|
状态: { "zh-CN": "状态", en: "Status", _appCode: "framework" },
|
|
2504
2504
|
组织名称: { "zh-CN": "组织名称", en: "Organization Name", _appCode: "framework" },
|
|
@@ -2620,9 +2620,9 @@ const an = { ...ut, ...pt }, nn = (n, e, t, l) => {
|
|
|
2620
2620
|
选择源单: { "zh-CN": "选择源单", en: "Select Source Document", _appCode: "framework" },
|
|
2621
2621
|
请选择: { "zh-CN": "请选择", en: "Please select", _appCode: "framework" }
|
|
2622
2622
|
};
|
|
2623
|
-
Vt(
|
|
2624
|
-
const
|
|
2623
|
+
Vt(zn);
|
|
2624
|
+
const Gn = dt(Ln);
|
|
2625
2625
|
export {
|
|
2626
|
-
|
|
2627
|
-
|
|
2626
|
+
Gn as DasProcessForm,
|
|
2627
|
+
Gn as default
|
|
2628
2628
|
};
|
|
Binary file
|