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