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