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