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