@jeecg/online 3.7.1-RC → 3.7.4-beta
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/AccountLoginForm-84cbd344.mjs +254 -0
- package/AiModal-26903538.mjs +84 -0
- package/AppForgetPassword-52443f23.mjs +310 -0
- package/AppLogin-ecf798fa.mjs +287 -0
- package/AppLoginHeader-4432c584.mjs +27 -0
- package/AppNameEmail-3303a037.mjs +180 -0
- package/AppRegister-79a62c59.mjs +303 -0
- package/AppTenant-f0bef7ca.mjs +373 -0
- package/AppThirdForm-fd8b4604.mjs +189 -0
- package/AuthButtonConfig-d5bffca0.mjs +156 -0
- package/AuthButtonTree-b0bd6c40.mjs +165 -0
- package/{AuthDataConfig-5c3a8e6b.mjs → AuthDataConfig-d3b7afa4.mjs} +23 -23
- package/{AuthDataTree-dd7a1240.mjs → AuthDataTree-f14a98d9.mjs} +43 -43
- package/{AuthFieldConfig-9f6fa06c.mjs → AuthFieldConfig-f1e224cc.mjs} +71 -71
- package/AuthFieldTree-5cc0da05.mjs +232 -0
- package/{AuthManagerDrawer-76f15e8d.mjs → AuthManagerDrawer-32556109.mjs} +6 -6
- package/{AuthSetterModal-f5d2e87f.mjs → AuthSetterModal-364f1f67.mjs} +9 -9
- package/BuiltInButtonList-bb6cf95c.mjs +10 -0
- package/BuiltInButtonList.vue_vue_type_script_setup_true_lang-07d0b7d0.mjs +338 -0
- package/CgformAddressModal-1131274c.mjs +260 -0
- package/CgformCopyList-5fba0810.mjs +252 -0
- package/{CgformModal-21c5c387.mjs → CgformModal-c4a4e0c2.mjs} +190 -194
- package/{CgreportModal-edefa8e3.mjs → CgreportModal-8a84aae5.mjs} +181 -168
- package/{CheckDictTable-1bc8322d.mjs → CheckDictTable-8a938e3a.mjs} +3 -3
- package/CodeFileListModal-a924902a.mjs +159 -0
- package/{CodeFileViewModal-2fe911f4.mjs → CodeFileViewModal-405e2b58.mjs} +66 -66
- package/CodeGeneratorModal-2e1dc13d.mjs +281 -0
- package/CustomButtonList-c453b654.mjs +274 -0
- package/{DBAttributeTable-285d40db.mjs → DBAttributeTable-1a45c7b7.mjs} +3 -3
- package/{DbToOnlineModal-5dcb67c3.mjs → DbToOnlineModal-f28ff0a3.mjs} +53 -54
- package/{DetailForm-deecbf3d.mjs → DetailForm-c592b8d8.mjs} +5 -5
- package/DropMenuItem-1e49abea.mjs +44 -0
- package/{EnhanceJavaModal-45c66cd5.mjs → EnhanceJavaModal-d5a93f2a.mjs} +62 -62
- package/{EnhanceJsHistory-fab3102e.mjs → EnhanceJsHistory-8ddb0657.mjs} +35 -35
- package/{EnhanceJsModal-175357a1.mjs → EnhanceJsModal-dc4f9ade.mjs} +104 -104
- package/{EnhanceSqlModal-7ea1b300.mjs → EnhanceSqlModal-984f045d.mjs} +67 -67
- package/ErrorTip-bb616e32.mjs +7 -0
- package/ErrorTip.vue_vue_type_script_setup_true_lang-49d35987.mjs +60 -0
- package/{ExtendConfigModal-a89ae052.mjs → ExtendConfigModal-7d70f362.mjs} +2 -2
- package/{FieldExtendJsonModal-32135634.mjs → FieldExtendJsonModal-bf04d70e.mjs} +2 -2
- package/{FileSelectModal-1643c8b9.mjs → FileSelectModal-ffc69d4a.mjs} +23 -23
- package/{ForeignKeyTable-7f7e28a7.mjs → ForeignKeyTable-92decaea.mjs} +3 -3
- package/{IndexTable-cdcc2b48.mjs → IndexTable-2ded2014.mjs} +3 -3
- package/JModalTip-a927f85d.mjs +49 -0
- package/{JOnlineSearchSelect-22aae934.mjs → JOnlineSearchSelect-04ec87d0.mjs} +1 -1
- package/{LeftDepart-d5615ed9.mjs → LeftDepart-52cb6743.mjs} +1 -1
- package/LeftRole-b0e0b496.mjs +86 -0
- package/{LeftUser-22baa378.mjs → LeftUser-dd4b10e2.mjs} +30 -30
- package/{LinkTableConfigModal-9242d750.mjs → LinkTableConfigModal-7eeb3e58.mjs} +43 -31
- package/{LinkTableFieldConfigModal-24adc50c.mjs → LinkTableFieldConfigModal-b078fcef.mjs} +1 -1
- package/{LinkTableListPiece-f3a8e0d7.mjs → LinkTableListPiece-e016b8e6.mjs} +1 -1
- package/{ModalFormDemo-711418db.mjs → ModalFormDemo-aaa719a7.mjs} +1 -1
- package/OnlCgformErpList-5c5acdaa.mjs +488 -0
- package/OnlCgformErpSubTable-e1b88312.mjs +441 -0
- package/{OnlCgformInnerSubTable-6c23781f.mjs → OnlCgformInnerSubTable-6b6fa15a.mjs} +38 -38
- package/OnlCgformInnerTableList-b283a525.mjs +474 -0
- package/OnlCgformTabList-91e3dd78.mjs +424 -0
- package/OnlineAutoList-84475f1b.mjs +513 -0
- package/OnlineAutoModal-95f46901.mjs +260 -0
- package/OnlineAutoTreeList-20b9ce04.mjs +523 -0
- package/OnlineCustomModal-c8b1e780.mjs +232 -0
- package/{OnlineDetailModal-d5895734.mjs → OnlineDetailModal-5b412bb9.mjs} +74 -65
- package/OnlineForm-58282699.mjs +1012 -0
- package/{OnlineFormDetail-022ca117.mjs → OnlineFormDetail-fc087725.mjs} +7 -7
- package/{OnlineFormUrlAdd-9715d70a.mjs → OnlineFormUrlAdd-bc9105bb.mjs} +9 -9
- package/{OnlineFormUrlDetail-8f864b1a.mjs → OnlineFormUrlDetail-ad912560.mjs} +11 -11
- package/{OnlineFormUrlEdit-ac985b36.mjs → OnlineFormUrlEdit-f2fa79ff.mjs} +9 -9
- package/OnlineFormUrlSuccess-76813d45.mjs +59 -0
- package/OnlineQueryForm-9248341f.mjs +484 -0
- package/{OnlineSearchFormItem-6c557343.mjs → OnlineSearchFormItem-1e437bd3.mjs} +82 -82
- package/{OnlineSelectCascade-05c40fef.mjs → OnlineSelectCascade-d631ed72.mjs} +1 -1
- package/{OnlineSubFormDetail-58e896ce.mjs → OnlineSubFormDetail-8be879b9.mjs} +52 -53
- package/{OnlineTabAutoModal-47b18ad6.mjs → OnlineTabAutoModal-c9ca3c24.mjs} +108 -95
- package/{OnlineTabDetailModal-82de1465.mjs → OnlineTabDetailModal-fd4c9a72.mjs} +36 -36
- package/OnlineTabForm-1940e88b.mjs +814 -0
- package/{OnlineTabFormDetail-8d0c40c0.mjs → OnlineTabFormDetail-2aa67564.mjs} +17 -17
- package/{PageAttributeTable-25e3b7da.mjs → PageAttributeTable-66e7b485.mjs} +108 -108
- package/PhoneLoginForm-86437a9d.mjs +214 -0
- package/{ProcessOnlineForm-148632fe.mjs → ProcessOnlineForm-98ede18d.mjs} +32 -32
- package/{QueryTable-f7bfca7f.mjs → QueryTable-65d3f54f.mjs} +3 -3
- package/SetSwitchOptions-f914bc17.mjs +62 -0
- package/ShareAddView-657f0f8b.mjs +86 -0
- package/ShareEditView-1b945fd3.mjs +92 -0
- package/ShareView-222ed3d8.mjs +80 -0
- package/ShareView.vue_vue_type_script_setup_true_lang-44fbeaff.mjs +162 -0
- package/SingleView-23b0cb4e.mjs +68 -0
- package/SingleView.vue_vue_type_style_index_0_lang-e0f2f6c0.mjs +131 -0
- package/SuperQuery-46032e66.mjs +974 -0
- package/{SuperQueryValComponent-7ad86d4b.mjs → SuperQueryValComponent-5a9ccfd4.mjs} +1 -1
- package/{SuperQueryValComponent.vue_vue_type_script_lang-e9196096.mjs → SuperQueryValComponent.vue_vue_type_script_lang-8fe34917.mjs} +11 -11
- package/{auth.api-ea1d33d4.mjs → auth.api-53df4c33.mjs} +17 -17
- package/{auth.data-511e5197.mjs → auth.data-626c5083.mjs} +16 -12
- package/button.data-fe45d43b.mjs +12 -0
- package/{cgform.data-475d4984.mjs → cgform.data-0ca62d09.mjs} +4 -1
- package/{enhance.data-a67572e1.mjs → enhance.data-6601ff44.mjs} +1 -1
- package/index-19eaef11.mjs +11 -0
- package/index-1a2e8832.mjs +135 -0
- package/{index-f30613d1.mjs → index-2fb8e07f.mjs} +59 -59
- package/index-5e89258d.mjs +8 -0
- package/index-9e1e1e53.mjs +57 -0
- package/{index-30e0e923.mjs → index-a039036e.mjs} +272 -262
- package/index-c5a79b0b.mjs +219 -0
- package/index-cce225be.mjs +110 -0
- package/index-f2c2d1cf.mjs +74 -0
- package/main.index.js +1 -1
- package/package.json +1 -1
- package/shareStore-7de6c7a6.mjs +67 -0
- package/style.css +1 -1
- package/useCgformList-f3cb9156.mjs +378 -0
- package/useExtendComponent-bb98e568.mjs +4460 -0
- package/useListButton-98908683.mjs +719 -0
- package/{useSchemas-a9c75b0f.mjs → useSchemas-b074f3a1.mjs} +33 -0
- package/{useTableSync-d7e9f18d.mjs → useTableSync-075826a1.mjs} +1 -1
- package/utils-9fce7606.mjs +16 -0
- package/AiModal-6de335e3.mjs +0 -84
- package/AuthButtonConfig-89763932.mjs +0 -154
- package/AuthButtonTree-2d87d0b3.mjs +0 -157
- package/AuthFieldTree-e326fc38.mjs +0 -232
- package/CgformCopyList-365b3e8f.mjs +0 -251
- package/CodeFileListModal-24601898.mjs +0 -159
- package/CodeGeneratorModal-f09fe903.mjs +0 -282
- package/CustomButtonList-f07bc695.mjs +0 -397
- package/JModalTip-b055ab60.mjs +0 -49
- package/LeftRole-2ed8a2bf.mjs +0 -86
- package/OnlCgformErpList-58acdfa0.mjs +0 -470
- package/OnlCgformErpSubTable-9b1e1938.mjs +0 -426
- package/OnlCgformInnerTableList-4b5e14ed.mjs +0 -458
- package/OnlCgformTabList-019ad753.mjs +0 -408
- package/OnlineAutoList-48589d09.mjs +0 -493
- package/OnlineAutoModal-c2928847.mjs +0 -239
- package/OnlineAutoTreeList-3baa1d00.mjs +0 -503
- package/OnlineCustomModal-9e17b6ce.mjs +0 -232
- package/OnlineForm-9f1153ba.mjs +0 -985
- package/OnlineFormUrlSuccess-3dfc54ab.mjs +0 -59
- package/OnlineQueryForm-eedb9a60.mjs +0 -466
- package/OnlineTabForm-27655c83.mjs +0 -817
- package/SetSwitchOptions-b2af757f.mjs +0 -62
- package/SuperQuery-a8592995.mjs +0 -967
- package/index-1d1a6e56.mjs +0 -57
- package/useCgformList-f41d4dc1.mjs +0 -426
- package/useExtendComponent-dcae5c78.mjs +0 -4399
- package/useListButton-bfac4ecf.mjs +0 -697
- /package/{OnlineForm.vue_vue_type_style_index_0_scoped_4657b304_lang-4ed993c7.mjs → OnlineForm.vue_vue_type_style_index_0_scoped_3f26e7bd_lang-4ed993c7.mjs} +0 -0
|
@@ -0,0 +1,814 @@
|
|
|
1
|
+
var At = Object.defineProperty, Bt = Object.defineProperties;
|
|
2
|
+
var Vt = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var ve = Object.getOwnPropertySymbols;
|
|
4
|
+
var xt = Object.prototype.hasOwnProperty, Mt = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Fe = (i, u, r) => u in i ? At(i, u, { enumerable: !0, configurable: !0, writable: !0, value: r }) : i[u] = r, P = (i, u) => {
|
|
6
|
+
for (var r in u || (u = {}))
|
|
7
|
+
xt.call(u, r) && Fe(i, r, u[r]);
|
|
8
|
+
if (ve)
|
|
9
|
+
for (var r of ve(u))
|
|
10
|
+
Mt.call(u, r) && Fe(i, r, u[r]);
|
|
11
|
+
return i;
|
|
12
|
+
}, Se = (i, u) => Bt(i, Vt(u));
|
|
13
|
+
var v = (i, u, r) => new Promise((a, A) => {
|
|
14
|
+
var S = (p) => {
|
|
15
|
+
try {
|
|
16
|
+
y(r.next(p));
|
|
17
|
+
} catch (m) {
|
|
18
|
+
A(m);
|
|
19
|
+
}
|
|
20
|
+
}, k = (p) => {
|
|
21
|
+
try {
|
|
22
|
+
y(r.throw(p));
|
|
23
|
+
} catch (m) {
|
|
24
|
+
A(m);
|
|
25
|
+
}
|
|
26
|
+
}, y = (p) => p.done ? a(p.value) : Promise.resolve(p.value).then(S, k);
|
|
27
|
+
y((r = r.apply(i, u)).next());
|
|
28
|
+
});
|
|
29
|
+
import { useMessage as Dt } from "/@/hooks/web/useMessage";
|
|
30
|
+
import { ref as g, reactive as Et, computed as It, watch as jt, resolveComponent as T, openBlock as w, createElementBlock as J, normalizeClass as Nt, createVNode as V, withCtx as x, createBlock as U, Fragment as Lt, renderList as Jt, normalizeStyle as Ut, createElementVNode as _e, toDisplayString as Ce, createCommentVNode as ee, renderSlot as qt, unref as Te, nextTick as we, toRaw as M } from "vue";
|
|
31
|
+
import { BasicForm as Kt, useForm as Wt } from "/@/components/Form/index";
|
|
32
|
+
import { c as Ht, O as Gt, d as zt, e as Qt, u as Yt, l as q, g as Xt, V as I, S as Zt, f as $t, h as ke } from "./useExtendComponent-bb98e568.mjs";
|
|
33
|
+
import { defHttp as te } from "/@/utils/http/axios";
|
|
34
|
+
import { pick as eo, omit as Oe } from "lodash-es";
|
|
35
|
+
import { sleep as to, goJmReportViewPage as oo } from "/@/utils";
|
|
36
|
+
import { Loading as lo } from "/@/components/Loading";
|
|
37
|
+
import { getToken as no } from "/@/utils/auth";
|
|
38
|
+
import { PrinterOutlined as ao } from "@ant-design/icons-vue";
|
|
39
|
+
import { useModal as ro } from "/@/components/Modal";
|
|
40
|
+
import { u as io, G as so } from "./useCustomHook-acb00837.mjs";
|
|
41
|
+
import { useAppInject as uo } from "/@/hooks/web/useAppInject";
|
|
42
|
+
import { _ as co } from "./index-9e1e1e53.mjs";
|
|
43
|
+
import "/@/components/Form/src/componentMap";
|
|
44
|
+
import "/@/utils/propTypes";
|
|
45
|
+
import "./constant-fa63bd66.mjs";
|
|
46
|
+
import "/@/utils/common/compUtils";
|
|
47
|
+
import "/@/components/Form/src/jeecg/components/JUpload";
|
|
48
|
+
import "/@/utils/is";
|
|
49
|
+
import "/@/views/system/user/user.api";
|
|
50
|
+
import "/@/store/modules/user";
|
|
51
|
+
import "/@/utils/desform/customExpression";
|
|
52
|
+
import "/@/store/modules/permission";
|
|
53
|
+
import "/@/utils/dict/JDictSelectUtil";
|
|
54
|
+
import "/@/components/Table";
|
|
55
|
+
import "/@/hooks/system/useListPage";
|
|
56
|
+
import "vue-router";
|
|
57
|
+
import "/@/components/Form/src/utils/Area";
|
|
58
|
+
import "/@/components/Preview/index";
|
|
59
|
+
import "./LinkTableListPiece-e016b8e6.mjs";
|
|
60
|
+
import "/@/api/common/api";
|
|
61
|
+
import "/@/assets/images/placeholderImage.png";
|
|
62
|
+
import "./OnlineSelectCascade-d631ed72.mjs";
|
|
63
|
+
import "./JModalTip-a927f85d.mjs";
|
|
64
|
+
import "ant-design-vue";
|
|
65
|
+
import "@vueuse/core";
|
|
66
|
+
import "/@/utils/cache";
|
|
67
|
+
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
68
|
+
const oe = {
|
|
69
|
+
optPre: "/online/cgform/api/form/",
|
|
70
|
+
urlButtonAction: "/online/cgform/api/doButton"
|
|
71
|
+
}, fo = {
|
|
72
|
+
name: "OnlineTabForm",
|
|
73
|
+
components: {
|
|
74
|
+
BasicForm: Kt,
|
|
75
|
+
Loading: lo,
|
|
76
|
+
OnlineSubForm: Ht,
|
|
77
|
+
PrinterOutlined: ao,
|
|
78
|
+
OnlinePopModal: Gt
|
|
79
|
+
},
|
|
80
|
+
props: {
|
|
81
|
+
id: {
|
|
82
|
+
type: String,
|
|
83
|
+
default: ""
|
|
84
|
+
},
|
|
85
|
+
formTemplate: {
|
|
86
|
+
type: Number,
|
|
87
|
+
default: 1
|
|
88
|
+
},
|
|
89
|
+
disabled: {
|
|
90
|
+
type: Boolean,
|
|
91
|
+
default: !1
|
|
92
|
+
},
|
|
93
|
+
isTree: {
|
|
94
|
+
type: Boolean,
|
|
95
|
+
default: !1
|
|
96
|
+
},
|
|
97
|
+
pidField: {
|
|
98
|
+
type: String,
|
|
99
|
+
default: ""
|
|
100
|
+
},
|
|
101
|
+
submitTip: {
|
|
102
|
+
type: Boolean,
|
|
103
|
+
default: !0
|
|
104
|
+
},
|
|
105
|
+
modalClass: {
|
|
106
|
+
type: String,
|
|
107
|
+
default: ""
|
|
108
|
+
},
|
|
109
|
+
themeTemplate: {
|
|
110
|
+
type: String,
|
|
111
|
+
default: ""
|
|
112
|
+
},
|
|
113
|
+
tabIndex: {
|
|
114
|
+
type: String,
|
|
115
|
+
default: ""
|
|
116
|
+
},
|
|
117
|
+
cgBIBtnMap: Object,
|
|
118
|
+
buttonSwitch: Object
|
|
119
|
+
},
|
|
120
|
+
emits: ["success", "rendered", "toggleTab"],
|
|
121
|
+
setup(i, { emit: u }) {
|
|
122
|
+
const { createMessage: r } = Dt(), a = g(null), A = g(!0), S = g(!1), k = g(1), y = g(""), p = g(!1), m = g(!1), { getIsMobile: K } = uo(), W = g(!K.value), O = Et({
|
|
123
|
+
reportPrintShow: 0,
|
|
124
|
+
reportPrintUrl: "",
|
|
125
|
+
joinQuery: 0,
|
|
126
|
+
modelFullscreen: 0,
|
|
127
|
+
modalMinWidth: "",
|
|
128
|
+
commentStatus: 0
|
|
129
|
+
}), {
|
|
130
|
+
onlineFormContext: f,
|
|
131
|
+
resetContext: c,
|
|
132
|
+
getSubAddBtnCfg: H,
|
|
133
|
+
getSubRemoveBtnCfg: b,
|
|
134
|
+
getSubOpenAddBtnCfg: Re,
|
|
135
|
+
getSubOpenEditBtnCfg: Pe
|
|
136
|
+
} = zt(i), {
|
|
137
|
+
formSchemas: G,
|
|
138
|
+
defaultValueFields: j,
|
|
139
|
+
changeDataIfArray2String: le,
|
|
140
|
+
tableName: R,
|
|
141
|
+
dbData: _,
|
|
142
|
+
checkOnlyFieldValue: Ae,
|
|
143
|
+
hasSubTable: Be,
|
|
144
|
+
subTabInfo: D,
|
|
145
|
+
refMap: z,
|
|
146
|
+
subDataSource: N,
|
|
147
|
+
baseColProps: Ve,
|
|
148
|
+
createFormSchemas: xe,
|
|
149
|
+
fieldDisplayStatus: E,
|
|
150
|
+
labelCol: Me,
|
|
151
|
+
wrapperCol: De,
|
|
152
|
+
labelWidth: Ee
|
|
153
|
+
} = Qt(i, a);
|
|
154
|
+
let { EnhanceJS: s, initCgEnhanceJs: Ie } = Yt(f, !1);
|
|
155
|
+
const { executeJsEnhanced: je } = io({}, f), [Ne, { setProps: Le, validate: ne, resetFields: ae, clearValidate: Je, setFieldsValue: C, updateSchema: Q, getFieldsValue: Y, scrollToField: re }] = Wt({
|
|
156
|
+
schemas: G,
|
|
157
|
+
showActionButtonGroup: !1,
|
|
158
|
+
baseColProps: Ve,
|
|
159
|
+
// update-begin--author:liaozhiyang---date:20240329---for:【QQYUN-7872】online表单label较长优化
|
|
160
|
+
labelWidth: Ee,
|
|
161
|
+
// update-end--author:liaozhiyang---date:20240329---for:【QQYUN-7872】online表单label较长优化
|
|
162
|
+
// update-begin--author:liaozhiyang---date:20240105---for:【QQYUN-7499】多列风格富文本、markdown增加独占一行功能
|
|
163
|
+
labelCol: Me,
|
|
164
|
+
wrapperCol: De
|
|
165
|
+
// update-end--author:liaozhiyang---date:20240105---for:【QQYUN-7499】多列风格富文本、markdown增加独占一行功能
|
|
166
|
+
}), ie = g(!1);
|
|
167
|
+
function Ue() {
|
|
168
|
+
let e = i.disabled;
|
|
169
|
+
ie.value = e, Le({ disabled: e });
|
|
170
|
+
}
|
|
171
|
+
function qe(e, t, o) {
|
|
172
|
+
return v(this, null, function* () {
|
|
173
|
+
yield Ke(), y.value = "", yield ae(), setTimeout(() => {
|
|
174
|
+
Je();
|
|
175
|
+
}, 0), _.value = "";
|
|
176
|
+
let l = Te(e);
|
|
177
|
+
m.value = l, l ? yield ue(t) : ce(), we(() => {
|
|
178
|
+
!l && o && C(o), We(), X("js", "loaded"), Ue();
|
|
179
|
+
});
|
|
180
|
+
});
|
|
181
|
+
}
|
|
182
|
+
function Ke() {
|
|
183
|
+
return v(this, null, function* () {
|
|
184
|
+
if (i.isTree === !0) {
|
|
185
|
+
let e = i.pidField, t = G.value;
|
|
186
|
+
t && t.length > 0 && t.filter((l) => l.field === e).length > 0 && (yield Q({
|
|
187
|
+
field: e,
|
|
188
|
+
componentProps: {
|
|
189
|
+
reload: (/* @__PURE__ */ new Date()).getTime(),
|
|
190
|
+
// update-begin--author:liaozhiyang---date:20240529---for:【TV360X-87】树表编辑时不可选自己及子孙节点当父节点
|
|
191
|
+
hiddenNodeKey: ""
|
|
192
|
+
// update-end--author:liaozhiyang---date:20240529---for:【TV360X-87】树表编辑时不可选自己及子孙节点当父节点
|
|
193
|
+
}
|
|
194
|
+
}));
|
|
195
|
+
}
|
|
196
|
+
});
|
|
197
|
+
}
|
|
198
|
+
function We() {
|
|
199
|
+
if (Te(m) === !1) {
|
|
200
|
+
let e = M(j[R.value]);
|
|
201
|
+
q(e, (t) => {
|
|
202
|
+
C(t);
|
|
203
|
+
});
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
function se(e, t) {
|
|
207
|
+
let o = M(j[e.key]);
|
|
208
|
+
q(o, (l) => {
|
|
209
|
+
const { row: n, target: d } = t;
|
|
210
|
+
let F = [{ rowKey: n.id, values: P({}, l) }];
|
|
211
|
+
d.setValues(F);
|
|
212
|
+
});
|
|
213
|
+
}
|
|
214
|
+
function ue(e) {
|
|
215
|
+
return v(this, null, function* () {
|
|
216
|
+
let t = yield Ge(e.id);
|
|
217
|
+
_.value = Object.assign({}, e, t);
|
|
218
|
+
let o = He.value, l = eo(t, ...o);
|
|
219
|
+
i.disabled && Object.keys(l).map((n) => {
|
|
220
|
+
!l[n] && l[n] !== 0 && l[n] !== "0" && delete l[n];
|
|
221
|
+
}), yield C(l), ce(t);
|
|
222
|
+
});
|
|
223
|
+
}
|
|
224
|
+
function ce(e) {
|
|
225
|
+
e || (e = {});
|
|
226
|
+
let t = Object.keys(N.value);
|
|
227
|
+
if (t && t.length > 0) {
|
|
228
|
+
let o = {};
|
|
229
|
+
for (let l of t)
|
|
230
|
+
o[l] = e[l] || [];
|
|
231
|
+
N.value = o;
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
let He = It(() => {
|
|
235
|
+
let e = G.value, t = [];
|
|
236
|
+
for (let o of e)
|
|
237
|
+
t.push(o.field);
|
|
238
|
+
return t;
|
|
239
|
+
});
|
|
240
|
+
function Ge(e) {
|
|
241
|
+
let t = `${oe.optPre}${i.id}/${e}`;
|
|
242
|
+
return new Promise((o, l) => {
|
|
243
|
+
te.get({ url: t }, { isTransformResponse: !1 }).then((n) => {
|
|
244
|
+
n.success ? o(n.result) : (l(), r.warning(n.message));
|
|
245
|
+
}).catch(() => {
|
|
246
|
+
l();
|
|
247
|
+
});
|
|
248
|
+
});
|
|
249
|
+
}
|
|
250
|
+
function ze(e) {
|
|
251
|
+
return v(this, null, function* () {
|
|
252
|
+
k.value = e.head.tableType, R.value = e.head.tableName, A.value = e.head.tableType == 1, Xe(e.head.extConfigJson), xe(e.schema.properties, e.schema.required, Ae, O), s = Ie(e.enhanceJs), u("rendered", O);
|
|
253
|
+
let t = yield Xt(a);
|
|
254
|
+
t.$formValueChange = (o, l, n) => {
|
|
255
|
+
gt(o, l), n && C(n), Qe(o, l, n);
|
|
256
|
+
}, s && s.setup && ge(s.setup);
|
|
257
|
+
});
|
|
258
|
+
}
|
|
259
|
+
function Qe(e, t, o) {
|
|
260
|
+
f.changEvent(e, t, o);
|
|
261
|
+
}
|
|
262
|
+
function Ye(e) {
|
|
263
|
+
f.addObject2Context("changEvent", e);
|
|
264
|
+
}
|
|
265
|
+
function Xe(e) {
|
|
266
|
+
let t = { reportPrintShow: 0, reportPrintUrl: "", joinQuery: 0, modelFullscreen: 0, modalMinWidth: "", commentStatus: 0, formLabelLength: null };
|
|
267
|
+
e && (t = JSON.parse(e)), Object.keys(t).map((o) => {
|
|
268
|
+
O[o] = t[o];
|
|
269
|
+
});
|
|
270
|
+
}
|
|
271
|
+
function Ze() {
|
|
272
|
+
A.value === !0 ? lt() : $e();
|
|
273
|
+
}
|
|
274
|
+
function $e() {
|
|
275
|
+
et().then((e) => {
|
|
276
|
+
fe(e);
|
|
277
|
+
});
|
|
278
|
+
}
|
|
279
|
+
function et() {
|
|
280
|
+
let e = {};
|
|
281
|
+
return new Promise((t, o) => {
|
|
282
|
+
ne().then(
|
|
283
|
+
(l) => t(l),
|
|
284
|
+
({ errorFields: l }) => {
|
|
285
|
+
o({
|
|
286
|
+
code: I,
|
|
287
|
+
key: R.value,
|
|
288
|
+
// 滚动到未通过校验的字段上
|
|
289
|
+
scrollToField: () => l[0] && re(l[0].name, { behavior: "smooth", block: "center" })
|
|
290
|
+
});
|
|
291
|
+
}
|
|
292
|
+
);
|
|
293
|
+
}).then((t) => (Object.assign(e, le(t)), ot())).then((t) => (Object.assign(e, t), Promise.resolve(e))).catch((t) => ((t === I || (t == null ? void 0 : t.code) === I) && (r.warning("校验未通过"), t.key && (tt(t.key), t.scrollToField && setTimeout(() => t.scrollToField(), 150))), Promise.reject(null)));
|
|
294
|
+
}
|
|
295
|
+
function tt(e) {
|
|
296
|
+
if (e === R.value) {
|
|
297
|
+
u("toggleTab", "-1");
|
|
298
|
+
return;
|
|
299
|
+
}
|
|
300
|
+
let t = D.value;
|
|
301
|
+
for (let o = 0; o < t.length; o++)
|
|
302
|
+
if (e == t[o].key) {
|
|
303
|
+
let l = o + "";
|
|
304
|
+
if (L.value === l)
|
|
305
|
+
break;
|
|
306
|
+
if (u("toggleTab", l), t[o].relationType === 0) {
|
|
307
|
+
let n = h(e);
|
|
308
|
+
to(300, () => n == null ? void 0 : n.validateTable());
|
|
309
|
+
}
|
|
310
|
+
break;
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
function ot() {
|
|
314
|
+
return new Promise((e, t) => v(this, null, function* () {
|
|
315
|
+
let o = {};
|
|
316
|
+
try {
|
|
317
|
+
let l = D.value;
|
|
318
|
+
for (let n = 0; n < l.length; n++) {
|
|
319
|
+
let d = l[n].key, F = h(d);
|
|
320
|
+
if (l[n].relationType == 1)
|
|
321
|
+
try {
|
|
322
|
+
let B = yield F.getAll();
|
|
323
|
+
o[d] = [], o[d].push(B);
|
|
324
|
+
} catch (B) {
|
|
325
|
+
return t(P({ code: I, key: d }, B));
|
|
326
|
+
}
|
|
327
|
+
else {
|
|
328
|
+
if (yield F.fullValidateTable())
|
|
329
|
+
return t({ code: I, key: d });
|
|
330
|
+
o[d] = F.getTableData();
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
} catch (l) {
|
|
334
|
+
t(l);
|
|
335
|
+
}
|
|
336
|
+
e(o);
|
|
337
|
+
}));
|
|
338
|
+
}
|
|
339
|
+
function lt() {
|
|
340
|
+
return v(this, null, function* () {
|
|
341
|
+
try {
|
|
342
|
+
let e = yield ne();
|
|
343
|
+
e = Object.assign({}, _.value, e), e = le(e), S.value = !0, fe(e);
|
|
344
|
+
} catch (e) {
|
|
345
|
+
Array.isArray(e == null ? void 0 : e.errorFields) && e.errorFields[0] && re(e.errorFields[0].name, { behavior: "smooth", block: "center" });
|
|
346
|
+
} finally {
|
|
347
|
+
S.value = !1;
|
|
348
|
+
}
|
|
349
|
+
});
|
|
350
|
+
}
|
|
351
|
+
function fe(e) {
|
|
352
|
+
ht(ye, e).then(() => {
|
|
353
|
+
nt(e);
|
|
354
|
+
}).catch((t) => {
|
|
355
|
+
r.warning(t);
|
|
356
|
+
});
|
|
357
|
+
}
|
|
358
|
+
function nt(e) {
|
|
359
|
+
Object.keys(e).map((n) => {
|
|
360
|
+
Array.isArray(e[n]) && e[n].length == 0 && (e[n] = "");
|
|
361
|
+
});
|
|
362
|
+
let t = y.value, o = `${oe.optPre}${i.id}?tabletype=${k.value}`;
|
|
363
|
+
t && (o = `${t}?tabletype=${k.value}`), p.value === !0 && (e[Zt] = 1);
|
|
364
|
+
let l = m.value === !0 ? "put" : "post";
|
|
365
|
+
te.request({ url: o, method: l, params: e }, { isTransformResponse: !1 }).then((n) => {
|
|
366
|
+
n.success ? (n.result && (e[$t] = n.result), u("success", e), i.submitTip === !0 && r.success(n.message)) : r.warning(n.message);
|
|
367
|
+
}).finally(() => {
|
|
368
|
+
S.value = !1;
|
|
369
|
+
});
|
|
370
|
+
}
|
|
371
|
+
function at(e, t, o) {
|
|
372
|
+
t && o ? o.vxeProps ? o.setValues([
|
|
373
|
+
{
|
|
374
|
+
rowKey: t,
|
|
375
|
+
values: e
|
|
376
|
+
}
|
|
377
|
+
]) : o.setValues(e) : C(e);
|
|
378
|
+
}
|
|
379
|
+
function rt(e, t) {
|
|
380
|
+
let o = {};
|
|
381
|
+
o[e] = t, C(o);
|
|
382
|
+
}
|
|
383
|
+
const L = g("0"), de = g("auto"), me = g(340);
|
|
384
|
+
function it(e) {
|
|
385
|
+
if (m.value === !0) {
|
|
386
|
+
let t = _.value;
|
|
387
|
+
return st(t, e);
|
|
388
|
+
}
|
|
389
|
+
return "";
|
|
390
|
+
}
|
|
391
|
+
jt(
|
|
392
|
+
() => i.tabIndex,
|
|
393
|
+
(e) => {
|
|
394
|
+
L.value = e;
|
|
395
|
+
},
|
|
396
|
+
{
|
|
397
|
+
immediate: !0
|
|
398
|
+
}
|
|
399
|
+
);
|
|
400
|
+
function st(e, t) {
|
|
401
|
+
if (e) {
|
|
402
|
+
let o = e[t];
|
|
403
|
+
return !o && o !== 0 && (o = e[t.toLowerCase()], !o && o !== 0 && (o = e[t.toUpperCase()])), o;
|
|
404
|
+
}
|
|
405
|
+
return "";
|
|
406
|
+
}
|
|
407
|
+
function ut(e, t) {
|
|
408
|
+
if (s && s[t + "_onlChange"]) {
|
|
409
|
+
let o = s[t + "_onlChange"](), l = Object.keys(e)[0];
|
|
410
|
+
if (o[l]) {
|
|
411
|
+
let d = h(t).getFormEvent(), F = P({
|
|
412
|
+
column: { key: l },
|
|
413
|
+
value: e[l]
|
|
414
|
+
}, d);
|
|
415
|
+
o[l].call(f, f, F);
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
function ct(e, t) {
|
|
420
|
+
if (s && s[t + "_onlChange"]) {
|
|
421
|
+
let o = s[t + "_onlChange"](f);
|
|
422
|
+
if (e.column === "all") {
|
|
423
|
+
let l = Object.keys(o);
|
|
424
|
+
if (l.length > 0)
|
|
425
|
+
for (let n of l)
|
|
426
|
+
o[n].call(f, f, e);
|
|
427
|
+
} else {
|
|
428
|
+
let l = e.column.key || e.col.key;
|
|
429
|
+
o[l] && e.row && e.row.id && o[l].call(f, f, e);
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
function ft(e, t) {
|
|
434
|
+
var o;
|
|
435
|
+
if (s && s[t + "_onlChange"]) {
|
|
436
|
+
let l = s[t + "_onlChange"](f), n = Object.keys(l);
|
|
437
|
+
if (n.length > 0)
|
|
438
|
+
for (let d of n)
|
|
439
|
+
(o = l[d]) == null || o.call(f, f, Se(P({}, e), { row: e.deleteRows }));
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
function dt(e, t) {
|
|
443
|
+
t.isModalData || se(e, t);
|
|
444
|
+
}
|
|
445
|
+
function mt(e) {
|
|
446
|
+
return "online_" + e + ":";
|
|
447
|
+
}
|
|
448
|
+
function gt(e, t) {
|
|
449
|
+
return v(this, null, function* () {
|
|
450
|
+
if (!s || !s.onlChange || !e)
|
|
451
|
+
return !1;
|
|
452
|
+
let o = s.onlChange();
|
|
453
|
+
o[e] && setTimeout(() => v(this, null, function* () {
|
|
454
|
+
let n = {
|
|
455
|
+
row: yield Y(),
|
|
456
|
+
column: { key: e },
|
|
457
|
+
value: t
|
|
458
|
+
};
|
|
459
|
+
o[e].call(f, f, n);
|
|
460
|
+
}), 0);
|
|
461
|
+
});
|
|
462
|
+
}
|
|
463
|
+
function ge(e) {
|
|
464
|
+
let o = e.toLocaleString().match(so);
|
|
465
|
+
if (o.length > 1) {
|
|
466
|
+
let l = o[1];
|
|
467
|
+
je(l);
|
|
468
|
+
}
|
|
469
|
+
}
|
|
470
|
+
function X(e, t) {
|
|
471
|
+
if (e == "js") {
|
|
472
|
+
let o = t + "_hook";
|
|
473
|
+
s && s[t] ? s[t].call(f, f) : s && s[o] && ge(s[o]);
|
|
474
|
+
} else if (e == "action") {
|
|
475
|
+
let o = _.value, l = {
|
|
476
|
+
formId: i.id,
|
|
477
|
+
buttonCode: t,
|
|
478
|
+
dataId: o.id,
|
|
479
|
+
uiFormData: Object.assign({}, o)
|
|
480
|
+
};
|
|
481
|
+
te.post(
|
|
482
|
+
{
|
|
483
|
+
url: `${oe.urlButtonAction}`,
|
|
484
|
+
params: l
|
|
485
|
+
},
|
|
486
|
+
{ isTransformResponse: !1 }
|
|
487
|
+
).then((n) => {
|
|
488
|
+
n.success ? r.success("处理完成!") : r.warning("处理失败!");
|
|
489
|
+
});
|
|
490
|
+
}
|
|
491
|
+
}
|
|
492
|
+
function be(e) {
|
|
493
|
+
let t = h(e), o = [...t.getNewDataWithId(), ...N.value[e]];
|
|
494
|
+
if (!o || o.length == 0)
|
|
495
|
+
return !1;
|
|
496
|
+
let l = [];
|
|
497
|
+
for (let n of o)
|
|
498
|
+
l.push(n.id);
|
|
499
|
+
t.removeRowsById(l);
|
|
500
|
+
}
|
|
501
|
+
function pe(e, t) {
|
|
502
|
+
if (!t)
|
|
503
|
+
return !1;
|
|
504
|
+
let o = h(e);
|
|
505
|
+
typeof t == "object" ? o.addRows(t, !0) : this.$message.error("添加子表数据,参数不识别!");
|
|
506
|
+
}
|
|
507
|
+
function bt(e, t) {
|
|
508
|
+
be(e), pe(e, t);
|
|
509
|
+
}
|
|
510
|
+
function pt(e, t) {
|
|
511
|
+
!t && t.length <= 0 && (t = []), t.map((o) => {
|
|
512
|
+
o.hasOwnProperty("label") || (o.label = o.text);
|
|
513
|
+
}), Q({
|
|
514
|
+
field: e,
|
|
515
|
+
componentProps: {
|
|
516
|
+
options: t
|
|
517
|
+
}
|
|
518
|
+
});
|
|
519
|
+
}
|
|
520
|
+
function ht(e, t) {
|
|
521
|
+
return s && s.beforeSubmit ? s.beforeSubmit(e, t) : Promise.resolve();
|
|
522
|
+
}
|
|
523
|
+
function yt(e, t) {
|
|
524
|
+
let o = M(E);
|
|
525
|
+
e && e.length > 0 ? Object.keys(o).map((l) => {
|
|
526
|
+
!l.endsWith("_load") && e.indexOf(l) < 0 && (E[l] = !1);
|
|
527
|
+
}) : t && t.length > 0 && Object.keys(o).map((l) => {
|
|
528
|
+
t.indexOf(l) >= 0 && (E[l] = !1);
|
|
529
|
+
});
|
|
530
|
+
}
|
|
531
|
+
function vt(e, t) {
|
|
532
|
+
return v(this, null, function* () {
|
|
533
|
+
y.value = t, yield ae(), _.value = "", m.value = !0, yield ue(e), yield we(() => {
|
|
534
|
+
X("js", "loaded");
|
|
535
|
+
});
|
|
536
|
+
});
|
|
537
|
+
}
|
|
538
|
+
function h(e) {
|
|
539
|
+
let t = z[e].value;
|
|
540
|
+
if (t instanceof Array && (t = t[0]), !t) {
|
|
541
|
+
r.warning("子表ref找不到:" + e);
|
|
542
|
+
return;
|
|
543
|
+
}
|
|
544
|
+
return t;
|
|
545
|
+
}
|
|
546
|
+
function Ft() {
|
|
547
|
+
let e = O.reportPrintUrl, t = _.value.id, o = no();
|
|
548
|
+
oo(e, t, o);
|
|
549
|
+
}
|
|
550
|
+
const [St, { openModal: he }] = ro(), Z = g(""), $ = g(!0);
|
|
551
|
+
function _t(e) {
|
|
552
|
+
Z.value = e.id, $.value = !1, he(!0, { isUpdate: !1, tableType: "3" });
|
|
553
|
+
}
|
|
554
|
+
function Ct(e) {
|
|
555
|
+
let o = h(e.key).getSelectedData();
|
|
556
|
+
if (o.length != 1) {
|
|
557
|
+
r.warning("请选择一条数据");
|
|
558
|
+
return;
|
|
559
|
+
}
|
|
560
|
+
Z.value = e.id, $.value = !1, he(!0, { isUpdate: !0, record: o[0] });
|
|
561
|
+
}
|
|
562
|
+
function Tt(e) {
|
|
563
|
+
const t = e[ke];
|
|
564
|
+
let o = Oe(e, [ke]);
|
|
565
|
+
if (o.id) {
|
|
566
|
+
let l = Oe(P({}, o), "id"), n = [{ rowKey: o.id, values: l }];
|
|
567
|
+
h(t).setValues(n);
|
|
568
|
+
} else
|
|
569
|
+
h(t).addRows(o, { isOnlineJS: !1, setActive: !1, emitChange: !0, isModalData: !0 });
|
|
570
|
+
}
|
|
571
|
+
function wt() {
|
|
572
|
+
let e = D.value;
|
|
573
|
+
if (e && e.length > 0) {
|
|
574
|
+
for (let t of e)
|
|
575
|
+
if (t.relationType != 1) {
|
|
576
|
+
let o = h(t.key);
|
|
577
|
+
o && o.clearSelection();
|
|
578
|
+
}
|
|
579
|
+
}
|
|
580
|
+
}
|
|
581
|
+
function kt() {
|
|
582
|
+
let e = Y(), t = M(j[R.value]);
|
|
583
|
+
q(
|
|
584
|
+
t,
|
|
585
|
+
(o) => {
|
|
586
|
+
C(o);
|
|
587
|
+
},
|
|
588
|
+
e
|
|
589
|
+
);
|
|
590
|
+
}
|
|
591
|
+
function Ot(e, t) {
|
|
592
|
+
let o = D.value;
|
|
593
|
+
if (o && o.length > 0) {
|
|
594
|
+
let l = o.filter((n) => n.key === e);
|
|
595
|
+
if (l.length == 0)
|
|
596
|
+
return;
|
|
597
|
+
if (l[0].relationType == 1)
|
|
598
|
+
h(e).executeFillRule();
|
|
599
|
+
else {
|
|
600
|
+
let n = M(j[e]), d = M(t.row);
|
|
601
|
+
q(
|
|
602
|
+
n,
|
|
603
|
+
(F) => {
|
|
604
|
+
const { row: B, target: Rt } = t;
|
|
605
|
+
let Pt = [{ rowKey: B.id, values: P({}, F) }];
|
|
606
|
+
Rt.setValues(Pt);
|
|
607
|
+
},
|
|
608
|
+
d
|
|
609
|
+
);
|
|
610
|
+
}
|
|
611
|
+
}
|
|
612
|
+
}
|
|
613
|
+
let ye = {
|
|
614
|
+
tableName: R,
|
|
615
|
+
loading: S,
|
|
616
|
+
subActiveKey: L,
|
|
617
|
+
onlineFormRef: a,
|
|
618
|
+
getFieldsValue: Y,
|
|
619
|
+
setFieldsValue: C,
|
|
620
|
+
submitFlowFlag: p,
|
|
621
|
+
subFormHeight: de,
|
|
622
|
+
subTableHeight: me,
|
|
623
|
+
refMap: z,
|
|
624
|
+
triggleChangeValues: at,
|
|
625
|
+
triggleChangeValue: rt,
|
|
626
|
+
sh: E,
|
|
627
|
+
clearSubRows: be,
|
|
628
|
+
addSubRows: pe,
|
|
629
|
+
clearThenAddRows: bt,
|
|
630
|
+
changeOptions: pt,
|
|
631
|
+
isUpdate: m,
|
|
632
|
+
getSubTableInstance: h,
|
|
633
|
+
updateSchema: Q,
|
|
634
|
+
executeMainFillRule: kt,
|
|
635
|
+
executeSubFillRule: Ot,
|
|
636
|
+
changEvent: () => {
|
|
637
|
+
},
|
|
638
|
+
onlineFormValueChange: Ye
|
|
639
|
+
};
|
|
640
|
+
return c(ye), {
|
|
641
|
+
//主表
|
|
642
|
+
tableName: R,
|
|
643
|
+
onlineFormRef: a,
|
|
644
|
+
registerForm: Ne,
|
|
645
|
+
loading: S,
|
|
646
|
+
//子表
|
|
647
|
+
subActiveKey: L,
|
|
648
|
+
hasSubTable: Be,
|
|
649
|
+
subTabInfo: D,
|
|
650
|
+
refMap: z,
|
|
651
|
+
//一对一子表
|
|
652
|
+
subFormHeight: de,
|
|
653
|
+
getSubTableForeignKeyValue: it,
|
|
654
|
+
isUpdate: m,
|
|
655
|
+
handleSubFormChange: ut,
|
|
656
|
+
//一对多子表
|
|
657
|
+
subTableHeight: me,
|
|
658
|
+
onlineFormDisabled: ie,
|
|
659
|
+
subDataSource: N,
|
|
660
|
+
getSubTableAuthPre: mt,
|
|
661
|
+
handleAdded: dt,
|
|
662
|
+
handleSubTableDefaultValue: se,
|
|
663
|
+
handleValueChange: ct,
|
|
664
|
+
openSubFormModalForAdd: _t,
|
|
665
|
+
openSubFormModalForEdit: Ct,
|
|
666
|
+
handleRemoved: ft,
|
|
667
|
+
//父组件调用
|
|
668
|
+
show: qe,
|
|
669
|
+
createRootProperties: ze,
|
|
670
|
+
handleSubmit: Ze,
|
|
671
|
+
sh: E,
|
|
672
|
+
handleCgButtonClick: X,
|
|
673
|
+
handleCustomFormSh: yt,
|
|
674
|
+
handleCustomFormEdit: vt,
|
|
675
|
+
//跳转
|
|
676
|
+
dbData: _,
|
|
677
|
+
onOpenReportPrint: Ft,
|
|
678
|
+
onlineExtConfigJson: O,
|
|
679
|
+
//一对多子表弹窗操作数据
|
|
680
|
+
registerPopModal: St,
|
|
681
|
+
popTableName: Z,
|
|
682
|
+
getPopFormData: Tt,
|
|
683
|
+
popModalRequest: $,
|
|
684
|
+
onCloseModal: wt,
|
|
685
|
+
rowNumber: W,
|
|
686
|
+
getSubAddBtnCfg: H,
|
|
687
|
+
getSubRemoveBtnCfg: b,
|
|
688
|
+
getSubOpenAddBtnCfg: Re,
|
|
689
|
+
getSubOpenEditBtnCfg: Pe
|
|
690
|
+
};
|
|
691
|
+
}
|
|
692
|
+
}, mo = ["id"], go = { key: 1 };
|
|
693
|
+
function bo(i, u, r, a, A, S) {
|
|
694
|
+
const k = T("BasicForm"), y = T("a-tab-pane"), p = T("online-sub-form"), m = T("a-button"), K = T("JVxeTable"), W = T("a-tabs"), O = T("Loading"), f = T("online-pop-modal");
|
|
695
|
+
return w(), J("div", {
|
|
696
|
+
id: a.tableName + "_form",
|
|
697
|
+
class: Nt(["onlineFormWrap", [`formTemplate_${r.formTemplate}`]])
|
|
698
|
+
}, [
|
|
699
|
+
V(W, {
|
|
700
|
+
class: "tabTheme",
|
|
701
|
+
activeKey: a.subActiveKey,
|
|
702
|
+
"onUpdate:activeKey": u[0] || (u[0] = (c) => a.subActiveKey = c)
|
|
703
|
+
}, {
|
|
704
|
+
default: x(() => [
|
|
705
|
+
(w(), U(y, {
|
|
706
|
+
tab: "主表",
|
|
707
|
+
key: "-1"
|
|
708
|
+
}, {
|
|
709
|
+
default: x(() => [
|
|
710
|
+
V(k, {
|
|
711
|
+
ref: "onlineFormRef",
|
|
712
|
+
onRegister: a.registerForm
|
|
713
|
+
}, null, 8, ["onRegister"])
|
|
714
|
+
]),
|
|
715
|
+
_: 1
|
|
716
|
+
})),
|
|
717
|
+
a.hasSubTable ? (w(!0), J(Lt, { key: 0 }, Jt(a.subTabInfo, (c, H) => (w(), U(y, {
|
|
718
|
+
tab: c.describe,
|
|
719
|
+
key: H + "",
|
|
720
|
+
forceRender: !0
|
|
721
|
+
}, {
|
|
722
|
+
default: x(() => [
|
|
723
|
+
c.relationType == 1 ? (w(), J("div", {
|
|
724
|
+
key: 0,
|
|
725
|
+
style: Ut({ "overflow-y": "auto", "overflow-x": "hidden", "max-height": a.subFormHeight + "px" })
|
|
726
|
+
}, [
|
|
727
|
+
V(p, {
|
|
728
|
+
ref_for: !0,
|
|
729
|
+
ref: a.refMap[c.key],
|
|
730
|
+
table: c.key,
|
|
731
|
+
disabled: a.onlineFormDisabled,
|
|
732
|
+
"form-template": r.formTemplate,
|
|
733
|
+
"main-id": a.getSubTableForeignKeyValue(c.foreignKey),
|
|
734
|
+
properties: c.properties,
|
|
735
|
+
"required-fields": c.requiredFields,
|
|
736
|
+
"is-update": a.isUpdate,
|
|
737
|
+
onFormChange: (b) => a.handleSubFormChange(b, c.key)
|
|
738
|
+
}, null, 8, ["table", "disabled", "form-template", "main-id", "properties", "required-fields", "is-update", "onFormChange"])
|
|
739
|
+
], 4)) : (w(), J("div", go, [
|
|
740
|
+
V(K, {
|
|
741
|
+
ref_for: !0,
|
|
742
|
+
ref: a.refMap[c.key],
|
|
743
|
+
toolbar: "",
|
|
744
|
+
"keep-source": "",
|
|
745
|
+
"row-number": a.rowNumber,
|
|
746
|
+
"row-selection": "",
|
|
747
|
+
height: (
|
|
748
|
+
// 【VUEN-803】一对多子表固定340高度,修复自定义列组件被遮挡的问题
|
|
749
|
+
a.subTableHeight
|
|
750
|
+
),
|
|
751
|
+
disabled: a.onlineFormDisabled,
|
|
752
|
+
columns: c.columns,
|
|
753
|
+
dataSource: a.subDataSource[c.key],
|
|
754
|
+
addBtnCfg: a.getSubAddBtnCfg,
|
|
755
|
+
removeBtnCfg: a.getSubRemoveBtnCfg,
|
|
756
|
+
onValueChange: (b) => a.handleValueChange(b, c.key),
|
|
757
|
+
onRemoved: (b) => a.handleRemoved(b, c.key),
|
|
758
|
+
authPre: a.getSubTableAuthPre(c.key),
|
|
759
|
+
onAdded: (b) => a.handleAdded(c, b),
|
|
760
|
+
onExecuteFillRule: (b) => a.handleSubTableDefaultValue(c, b)
|
|
761
|
+
}, {
|
|
762
|
+
toolbarSuffix: x(() => [
|
|
763
|
+
!a.onlineFormDisabled && a.getSubOpenAddBtnCfg.enabled ? (w(), U(m, {
|
|
764
|
+
key: 0,
|
|
765
|
+
type: "primary",
|
|
766
|
+
preIcon: a.getSubOpenAddBtnCfg.buttonIcon,
|
|
767
|
+
onClick: (b) => a.openSubFormModalForAdd(c)
|
|
768
|
+
}, {
|
|
769
|
+
default: x(() => [
|
|
770
|
+
_e("span", null, Ce(a.getSubOpenAddBtnCfg.buttonName), 1)
|
|
771
|
+
]),
|
|
772
|
+
_: 2
|
|
773
|
+
}, 1032, ["preIcon", "onClick"])) : ee("", !0),
|
|
774
|
+
!a.onlineFormDisabled && a.getSubOpenEditBtnCfg.enabled ? (w(), U(m, {
|
|
775
|
+
key: 1,
|
|
776
|
+
type: "primary",
|
|
777
|
+
preIcon: a.getSubOpenEditBtnCfg.buttonIcon,
|
|
778
|
+
onClick: (b) => a.openSubFormModalForEdit(c)
|
|
779
|
+
}, {
|
|
780
|
+
default: x(() => [
|
|
781
|
+
_e("span", null, Ce(a.getSubOpenEditBtnCfg.buttonName), 1)
|
|
782
|
+
]),
|
|
783
|
+
_: 2
|
|
784
|
+
}, 1032, ["preIcon", "onClick"])) : ee("", !0)
|
|
785
|
+
]),
|
|
786
|
+
_: 2
|
|
787
|
+
}, 1032, ["row-number", "height", "disabled", "columns", "dataSource", "addBtnCfg", "removeBtnCfg", "onValueChange", "onRemoved", "authPre", "onAdded", "onExecuteFillRule"])
|
|
788
|
+
]))
|
|
789
|
+
]),
|
|
790
|
+
_: 2
|
|
791
|
+
}, 1032, ["tab"]))), 128)) : ee("", !0)
|
|
792
|
+
]),
|
|
793
|
+
_: 1
|
|
794
|
+
}, 8, ["activeKey"]),
|
|
795
|
+
V(O, {
|
|
796
|
+
loading: a.loading,
|
|
797
|
+
absolute: !1
|
|
798
|
+
}, null, 8, ["loading"]),
|
|
799
|
+
qt(i.$slots, "bottom", {}, void 0, !0),
|
|
800
|
+
V(f, {
|
|
801
|
+
formTableType: "3",
|
|
802
|
+
request: a.popModalRequest,
|
|
803
|
+
id: a.popTableName,
|
|
804
|
+
onRegister: a.registerPopModal,
|
|
805
|
+
onSuccess: a.getPopFormData,
|
|
806
|
+
topTip: "",
|
|
807
|
+
isVxeTableData: ""
|
|
808
|
+
}, null, 8, ["request", "id", "onRegister", "onSuccess"])
|
|
809
|
+
], 10, mo);
|
|
810
|
+
}
|
|
811
|
+
const ol = /* @__PURE__ */ co(fo, [["render", bo], ["__scopeId", "data-v-ef315dba"]]);
|
|
812
|
+
export {
|
|
813
|
+
ol as default
|
|
814
|
+
};
|