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