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