@jeecg/online 3.6.2-beta → 3.7.0-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/AiModal-fe3988fb.mjs +84 -0
- package/AuthButtonConfig-d50a0a65.mjs +134 -0
- package/{AuthButtonTree-3aa0ed49.mjs → AuthButtonTree-589395ed.mjs} +2 -2
- package/AuthDataConfig-7bb0cd85.mjs +237 -0
- package/{AuthDataTree-94e026e3.mjs → AuthDataTree-6e3bb86f.mjs} +1 -1
- package/AuthFieldConfig-490fc0ab.mjs +139 -0
- package/{AuthFieldTree-69864163.mjs → AuthFieldTree-b7cd091e.mjs} +1 -1
- package/AuthManagerDrawer-5e2ed5ce.mjs +118 -0
- package/AuthSetterModal-6f74449c.mjs +273 -0
- package/{CgformCopyList-14b76108.mjs → CgformCopyList-8077ccc6.mjs} +47 -45
- package/{CgformModal-eccfc38e.mjs → CgformModal-36faf29a.mjs} +256 -246
- package/{CgreportModal.vue_vue_type_script_setup_true_lang-c89d9222.mjs → CgreportModal-5a23d089.mjs} +154 -131
- package/CheckDictTable-b5cb0e2b.mjs +226 -0
- package/{CodeFileListModal-a6d3290d.mjs → CodeFileListModal-0e26b7e0.mjs} +2 -2
- package/{CodeFileViewModal-373e8058.mjs → CodeFileViewModal-9d4a5b5f.mjs} +36 -32
- package/CodeGeneratorModal-b722d976.mjs +238 -0
- package/{CustomButtonList-02e3d897.mjs → CustomButtonList-37639061.mjs} +118 -100
- package/{DBAttributeTable-370de07b.mjs → DBAttributeTable-95dc66c1.mjs} +110 -89
- package/{DbToOnlineModal-9f13956f.mjs → DbToOnlineModal-f49b9530.mjs} +57 -51
- package/DetailForm-4aa2570b.mjs +485 -0
- package/{EnhanceJavaModal-f63aa2d3.mjs → EnhanceJavaModal-98934198.mjs} +3 -3
- package/{EnhanceJsHistory-352b46b1.mjs → EnhanceJsHistory-9c4acdaf.mjs} +2 -2
- package/EnhanceJsModal-247f640d.mjs +532 -0
- package/{EnhanceSqlModal-5e4ae84f.mjs → EnhanceSqlModal-65b74b0f.mjs} +3 -3
- package/ExtendConfigModal-00f2fb55.mjs +117 -0
- package/FieldExtendJsonModal-cc7fce26.mjs +277 -0
- package/{FileSelectModal-9a02560b.mjs → FileSelectModal-38660e3c.mjs} +1 -1
- package/{ForeignKeyTable-6a843c4b.mjs → ForeignKeyTable-a78cb5ad.mjs} +3 -3
- package/{IndexTable-f8af9d44.mjs → IndexTable-1b496559.mjs} +10 -10
- package/{JModalTip-33c7dc44.mjs → JModalTip-4a83aaed.mjs} +1 -1
- package/{JOnlineSearchSelect-c287af12.mjs → JOnlineSearchSelect-34a37ec9.mjs} +1 -1
- package/{LeftDepart-fa85523d.mjs → LeftDepart-8ade4bf7.mjs} +1 -1
- package/{LeftRole-8b8dfe21.mjs → LeftRole-7d8c5acc.mjs} +1 -1
- package/{LeftUser-dc24ef2f.mjs → LeftUser-b4d1372a.mjs} +3 -3
- package/LinkTableConfigModal-a138c85e.mjs +240 -0
- package/{LinkTableFieldConfigModal-787bc55c.mjs → LinkTableFieldConfigModal-17b413b0.mjs} +41 -41
- package/{LinkTableListPiece-8499a318.mjs → LinkTableListPiece-2660d709.mjs} +1 -1
- package/{ModalFormDemo-977a49eb.mjs → ModalFormDemo-0544737d.mjs} +1 -1
- package/OnlCgformErpList-30e416c8.mjs +470 -0
- package/OnlCgformErpSubTable-9a876058.mjs +427 -0
- package/OnlCgformInnerSubTable-290ace5d.mjs +266 -0
- package/OnlCgformInnerTableList-f89b6687.mjs +458 -0
- package/OnlCgformTabList-7a2f2c03.mjs +408 -0
- package/OnlineAutoList-46c6c8b9.mjs +493 -0
- package/OnlineAutoModal-971bef13.mjs +236 -0
- package/{OnlineAutoTreeList-89265688.mjs → OnlineAutoTreeList-3b92454c.mjs} +206 -204
- package/{OnlineCustomModal-518ad33c.mjs → OnlineCustomModal-594244f3.mjs} +15 -11
- package/{OnlineDetailModal-9675390d.mjs → OnlineDetailModal-2a271e0b.mjs} +74 -64
- package/OnlineForm-018981b2.mjs +924 -0
- package/OnlineForm.vue_vue_type_style_index_0_scoped_0f9f2964_lang-4ed993c7.mjs +1 -0
- package/OnlineFormDetail-e036cd11.mjs +342 -0
- package/OnlineFormUrlAdd-7fb3dcca.mjs +115 -0
- package/OnlineFormUrlDetail-b2292137.mjs +119 -0
- package/OnlineFormUrlEdit-44080fb3.mjs +113 -0
- package/OnlineFormUrlSuccess-af285b02.mjs +59 -0
- package/OnlineQueryForm-998c12a4.mjs +444 -0
- package/{OnlineSearchFormItem-0cc85a8a.mjs → OnlineSearchFormItem-6feacae6.mjs} +2 -2
- package/{OnlineSelectCascade-4265c95d.mjs → OnlineSelectCascade-471fcc76.mjs} +1 -1
- package/{OnlineSubFormDetail-f0d2c016.mjs → OnlineSubFormDetail-03f8ee5c.mjs} +29 -27
- package/OnlineTabAutoModal-7b9bcd0b.mjs +306 -0
- package/{OnlineTabDetailModal-7356d3a8.mjs → OnlineTabDetailModal-88143301.mjs} +22 -20
- package/OnlineTabForm-9ad7d29a.mjs +805 -0
- package/OnlineTabFormDetail-bbf23caa.mjs +327 -0
- package/PageAttributeTable-6c23547b.mjs +446 -0
- package/{ProcessOnlineForm-67558898.mjs → ProcessOnlineForm-b42198f5.mjs} +32 -28
- package/QueryTable-96b3dbd0.mjs +144 -0
- package/SetSwitchOptions-a452fa0f.mjs +62 -0
- package/SuperQuery-cbfba908.mjs +975 -0
- package/{auth.data-8be5c9e3.mjs → auth.data-22948e87.mjs} +56 -14
- package/{cgform.data-cbdd88c3.mjs → cgform.data-475d4984.mjs} +5 -1
- package/constant-fa63bd66.mjs +10 -0
- package/{enhance.data-efc7e155.mjs → enhance.data-3304d553.mjs} +3 -3
- package/index-173949bb.mjs +57 -0
- package/{index-49508cad.mjs → index-581bef24.mjs} +29 -27
- package/{index-b7a05eef.mjs → index-d2abb8a0.mjs} +394 -361
- package/main.index.js +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/useCgformList-8755a94e.mjs +426 -0
- package/useExtendComponent-bb7cca20.mjs +4295 -0
- package/useFormUrl-2ee1a82d.mjs +24 -0
- package/useListButton-7ddb9a46.mjs +697 -0
- package/{useSchemas-0433a403.mjs → useSchemas-47e45edc.mjs} +167 -86
- package/{useTableSync-774c3774.mjs → useTableSync-f6089e8a.mjs} +1 -1
- package/AuthButtonConfig-244ec09f.mjs +0 -125
- package/AuthDataConfig-83891eea.mjs +0 -212
- package/AuthFieldConfig-6b21915c.mjs +0 -139
- package/AuthManagerDrawer-300dd4e4.mjs +0 -114
- package/AuthSetterModal-a414fb35.mjs +0 -267
- package/CgreportModal-2065f5a9.mjs +0 -13
- package/CheckDictTable-134cbb83.mjs +0 -211
- package/CodeGeneratorModal-f08a89cd.mjs +0 -233
- package/DetailForm-424638eb.mjs +0 -462
- package/EnhanceJsModal-05c73a59.mjs +0 -311
- package/ExtendConfigModal-1dde390a.mjs +0 -111
- package/FieldExtendJsonModal-a70a9ccd.mjs +0 -219
- package/LinkTableConfigModal-d4fbdef2.mjs +0 -230
- package/OnlCgformErpList-db45e22b.mjs +0 -454
- package/OnlCgformErpSubTable-54b50eec.mjs +0 -403
- package/OnlCgformInnerSubTable-fbca73e0.mjs +0 -253
- package/OnlCgformInnerTableList-782eaf04.mjs +0 -444
- package/OnlCgformTabList-a9e1e36a.mjs +0 -395
- package/OnlineAutoList-0583a910.mjs +0 -479
- package/OnlineAutoModal-510991eb.mjs +0 -207
- package/OnlineForm-1fa2d893.mjs +0 -750
- package/OnlineFormDetail-0e7294ca.mjs +0 -297
- package/OnlineQueryForm-1bfc8320.mjs +0 -386
- package/OnlineTabAutoModal-6f636ee2.mjs +0 -254
- package/OnlineTabForm-512d3951.mjs +0 -766
- package/OnlineTabFormDetail-5a70219d.mjs +0 -324
- package/PageAttributeTable-965dc58e.mjs +0 -404
- package/QueryTable-eb9a5b21.mjs +0 -115
- package/SuperQuery-5d1ca957.mjs +0 -843
- package/constant-754f1a9d.mjs +0 -9
- package/index-0e3ab3af.mjs +0 -56
- package/useCgformList-423282b7.mjs +0 -400
- package/useExtendComponent-325fe3f1.mjs +0 -3926
- package/useListButton-cdbab702.mjs +0 -676
|
@@ -0,0 +1,805 @@
|
|
|
1
|
+
var wt = Object.defineProperty;
|
|
2
|
+
var ye = Object.getOwnPropertySymbols;
|
|
3
|
+
var St = Object.prototype.hasOwnProperty, Ct = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var ve = (r, c, i) => c in r ? wt(r, c, { enumerable: !0, configurable: !0, writable: !0, value: i }) : r[c] = i, R = (r, c) => {
|
|
5
|
+
for (var i in c || (c = {}))
|
|
6
|
+
St.call(c, i) && ve(r, i, c[i]);
|
|
7
|
+
if (ye)
|
|
8
|
+
for (var i of ye(c))
|
|
9
|
+
Ct.call(c, i) && ve(r, i, c[i]);
|
|
10
|
+
return r;
|
|
11
|
+
};
|
|
12
|
+
var _ = (r, c, i) => new Promise((a, V) => {
|
|
13
|
+
var T = (h) => {
|
|
14
|
+
try {
|
|
15
|
+
y(i.next(h));
|
|
16
|
+
} catch (p) {
|
|
17
|
+
V(p);
|
|
18
|
+
}
|
|
19
|
+
}, O = (h) => {
|
|
20
|
+
try {
|
|
21
|
+
y(i.throw(h));
|
|
22
|
+
} catch (p) {
|
|
23
|
+
V(p);
|
|
24
|
+
}
|
|
25
|
+
}, y = (h) => h.done ? a(h.value) : Promise.resolve(h.value).then(T, O);
|
|
26
|
+
y((i = i.apply(r, c)).next());
|
|
27
|
+
});
|
|
28
|
+
import { useMessage as kt } from "/@/hooks/web/useMessage";
|
|
29
|
+
import { ref as m, reactive as Ot, computed as Pt, watch as Vt, resolveComponent as v, openBlock as C, createElementBlock as U, normalizeClass as xt, createVNode as k, withCtx as A, createBlock as q, Fragment as Rt, renderList as At, normalizeStyle as Mt, createElementVNode as oe, createCommentVNode as $, renderSlot as Dt, unref as Fe, nextTick as _e, toRaw as M, pushScopeId as Et, popScopeId as It } from "vue";
|
|
30
|
+
import { BasicForm as jt, useForm as Bt } from "/@/components/Form/index";
|
|
31
|
+
import { c as Nt, O as Lt, d as Jt, e as Ut, u as qt, l as K, g as Kt, V as j, S as Ht, f as Wt, h as Te } from "./useExtendComponent-bb7cca20.mjs";
|
|
32
|
+
import { defHttp as ee } from "/@/utils/http/axios";
|
|
33
|
+
import { pick as Gt, omit as we } from "lodash-es";
|
|
34
|
+
import { sleep as zt, goJmReportViewPage as Qt } from "/@/utils";
|
|
35
|
+
import { Loading as Yt } from "/@/components/Loading";
|
|
36
|
+
import { getToken as Xt } from "/@/utils/auth";
|
|
37
|
+
import { PrinterOutlined as Zt, DiffOutlined as $t, FormOutlined as eo } from "@ant-design/icons-vue";
|
|
38
|
+
import { useModal as to } from "/@/components/Modal";
|
|
39
|
+
import { u as oo, G as lo } from "./useCustomHook-acb00837.mjs";
|
|
40
|
+
import { useAppInject as no } from "/@/hooks/web/useAppInject";
|
|
41
|
+
import { _ as ao } from "./index-173949bb.mjs";
|
|
42
|
+
import "/@/components/Form/src/componentMap";
|
|
43
|
+
import "/@/utils/propTypes";
|
|
44
|
+
import "./constant-fa63bd66.mjs";
|
|
45
|
+
import "/@/components/Form/src/jeecg/components/JUpload";
|
|
46
|
+
import "/@/utils/is";
|
|
47
|
+
import "/@/views/system/user/user.api";
|
|
48
|
+
import "/@/store/modules/user";
|
|
49
|
+
import "/@/utils/desform/customExpression";
|
|
50
|
+
import "/@/store/modules/permission";
|
|
51
|
+
import "/@/utils/dict/JDictSelectUtil";
|
|
52
|
+
import "/@/utils/common/compUtils";
|
|
53
|
+
import "/@/components/Table";
|
|
54
|
+
import "/@/hooks/system/useListPage";
|
|
55
|
+
import "vue-router";
|
|
56
|
+
import "/@/components/Form/src/utils/Area";
|
|
57
|
+
import "/@/components/Preview/index";
|
|
58
|
+
import "./LinkTableListPiece-2660d709.mjs";
|
|
59
|
+
import "/@/api/common/api";
|
|
60
|
+
import "/@/assets/images/placeholderImage.png";
|
|
61
|
+
import "./OnlineSelectCascade-471fcc76.mjs";
|
|
62
|
+
import "./JModalTip-4a83aaed.mjs";
|
|
63
|
+
import "ant-design-vue";
|
|
64
|
+
import "@vueuse/core";
|
|
65
|
+
import "/@/utils/cache";
|
|
66
|
+
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
67
|
+
const te = {
|
|
68
|
+
optPre: "/online/cgform/api/form/",
|
|
69
|
+
urlButtonAction: "/online/cgform/api/doButton"
|
|
70
|
+
}, io = {
|
|
71
|
+
name: "OnlineTabForm",
|
|
72
|
+
components: {
|
|
73
|
+
BasicForm: jt,
|
|
74
|
+
Loading: Yt,
|
|
75
|
+
OnlineSubForm: Nt,
|
|
76
|
+
PrinterOutlined: Zt,
|
|
77
|
+
DiffOutlined: $t,
|
|
78
|
+
FormOutlined: eo,
|
|
79
|
+
OnlinePopModal: Lt
|
|
80
|
+
},
|
|
81
|
+
props: {
|
|
82
|
+
id: {
|
|
83
|
+
type: String,
|
|
84
|
+
default: ""
|
|
85
|
+
},
|
|
86
|
+
formTemplate: {
|
|
87
|
+
type: Number,
|
|
88
|
+
default: 1
|
|
89
|
+
},
|
|
90
|
+
disabled: {
|
|
91
|
+
type: Boolean,
|
|
92
|
+
default: !1
|
|
93
|
+
},
|
|
94
|
+
isTree: {
|
|
95
|
+
type: Boolean,
|
|
96
|
+
default: !1
|
|
97
|
+
},
|
|
98
|
+
pidField: {
|
|
99
|
+
type: String,
|
|
100
|
+
default: ""
|
|
101
|
+
},
|
|
102
|
+
submitTip: {
|
|
103
|
+
type: Boolean,
|
|
104
|
+
default: !0
|
|
105
|
+
},
|
|
106
|
+
modalClass: {
|
|
107
|
+
type: String,
|
|
108
|
+
default: ""
|
|
109
|
+
},
|
|
110
|
+
themeTemplate: {
|
|
111
|
+
type: String,
|
|
112
|
+
default: ""
|
|
113
|
+
},
|
|
114
|
+
tabIndex: {
|
|
115
|
+
type: String,
|
|
116
|
+
default: ""
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
emits: ["success", "rendered", "toggleTab"],
|
|
120
|
+
setup(r, { emit: c }) {
|
|
121
|
+
const { createMessage: i } = kt(), a = m(null), V = m(!0), T = m(!1), O = m(1), y = m(""), h = m(!1), p = m(!1), { getIsMobile: B } = no(), H = m(!B.value), P = Ot({
|
|
122
|
+
reportPrintShow: 0,
|
|
123
|
+
reportPrintUrl: "",
|
|
124
|
+
joinQuery: 0,
|
|
125
|
+
modelFullscreen: 0,
|
|
126
|
+
modalMinWidth: "",
|
|
127
|
+
commentStatus: 0
|
|
128
|
+
}), { onlineFormContext: f, resetContext: W } = Jt(), {
|
|
129
|
+
formSchemas: D,
|
|
130
|
+
defaultValueFields: s,
|
|
131
|
+
changeDataIfArray2String: N,
|
|
132
|
+
tableName: d,
|
|
133
|
+
dbData: w,
|
|
134
|
+
checkOnlyFieldValue: Se,
|
|
135
|
+
hasSubTable: Ce,
|
|
136
|
+
subTabInfo: E,
|
|
137
|
+
refMap: G,
|
|
138
|
+
subDataSource: L,
|
|
139
|
+
baseColProps: ke,
|
|
140
|
+
createFormSchemas: Oe,
|
|
141
|
+
fieldDisplayStatus: I,
|
|
142
|
+
labelCol: Pe,
|
|
143
|
+
wrapperCol: Ve,
|
|
144
|
+
labelWidth: xe
|
|
145
|
+
} = Ut(r, a);
|
|
146
|
+
let { EnhanceJS: u, initCgEnhanceJs: Re } = qt(f, !1);
|
|
147
|
+
const { executeJsEnhanced: Ae } = oo({}, f), [Me, { setProps: De, validate: le, resetFields: ne, clearValidate: Ee, setFieldsValue: S, updateSchema: z, getFieldsValue: Q, scrollToField: ae }] = Bt({
|
|
148
|
+
schemas: D,
|
|
149
|
+
showActionButtonGroup: !1,
|
|
150
|
+
baseColProps: ke,
|
|
151
|
+
// update-begin--author:liaozhiyang---date:20240329---for:【QQYUN-7872】online表单label较长优化
|
|
152
|
+
labelWidth: xe,
|
|
153
|
+
// update-end--author:liaozhiyang---date:20240329---for:【QQYUN-7872】online表单label较长优化
|
|
154
|
+
// update-begin--author:liaozhiyang---date:20240105---for:【QQYUN-7499】多列风格富文本、markdown增加独占一行功能
|
|
155
|
+
labelCol: Pe,
|
|
156
|
+
wrapperCol: Ve
|
|
157
|
+
// update-end--author:liaozhiyang---date:20240105---for:【QQYUN-7499】多列风格富文本、markdown增加独占一行功能
|
|
158
|
+
}), ie = m(!1);
|
|
159
|
+
function Ie() {
|
|
160
|
+
let e = r.disabled;
|
|
161
|
+
ie.value = e, De({ disabled: e });
|
|
162
|
+
}
|
|
163
|
+
function je(e, t, o) {
|
|
164
|
+
return _(this, null, function* () {
|
|
165
|
+
yield Be(), y.value = "", yield ne(), setTimeout(() => {
|
|
166
|
+
Ee();
|
|
167
|
+
}, 0), w.value = "";
|
|
168
|
+
let l = Fe(e);
|
|
169
|
+
p.value = l, l ? yield se(t) : ue(), _e(() => {
|
|
170
|
+
!l && o && S(o), Ne(), Y("js", "loaded"), Ie();
|
|
171
|
+
});
|
|
172
|
+
});
|
|
173
|
+
}
|
|
174
|
+
function Be() {
|
|
175
|
+
return _(this, null, function* () {
|
|
176
|
+
if (r.isTree === !0) {
|
|
177
|
+
let e = r.pidField, t = D.value;
|
|
178
|
+
t && t.length > 0 && t.filter((l) => l.field === e).length > 0 && (yield z({
|
|
179
|
+
field: e,
|
|
180
|
+
componentProps: {
|
|
181
|
+
reload: (/* @__PURE__ */ new Date()).getTime(),
|
|
182
|
+
// update-begin--author:liaozhiyang---date:20240529---for:【TV360X-87】树表编辑时不可选自己及子孙节点当父节点
|
|
183
|
+
hiddenNodeKey: ""
|
|
184
|
+
// update-end--author:liaozhiyang---date:20240529---for:【TV360X-87】树表编辑时不可选自己及子孙节点当父节点
|
|
185
|
+
}
|
|
186
|
+
}));
|
|
187
|
+
}
|
|
188
|
+
});
|
|
189
|
+
}
|
|
190
|
+
function Ne() {
|
|
191
|
+
if (Fe(p) === !1) {
|
|
192
|
+
let e = M(s[d.value]);
|
|
193
|
+
K(e, (t) => {
|
|
194
|
+
S(t);
|
|
195
|
+
});
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
function re(e, t) {
|
|
199
|
+
let o = M(s[e.key]);
|
|
200
|
+
K(o, (l) => {
|
|
201
|
+
const { row: n, target: g } = t;
|
|
202
|
+
let F = [{ rowKey: n.id, values: R({}, l) }];
|
|
203
|
+
g.setValues(F);
|
|
204
|
+
});
|
|
205
|
+
}
|
|
206
|
+
function se(e) {
|
|
207
|
+
return _(this, null, function* () {
|
|
208
|
+
let t = yield Je(e.id);
|
|
209
|
+
w.value = Object.assign({}, e, t);
|
|
210
|
+
let o = Le.value, l = Gt(t, ...o);
|
|
211
|
+
r.disabled && Object.keys(l).map((n) => {
|
|
212
|
+
!l[n] && l[n] !== 0 && l[n] !== "0" && delete l[n];
|
|
213
|
+
}), yield S(l), ue(t);
|
|
214
|
+
});
|
|
215
|
+
}
|
|
216
|
+
function ue(e) {
|
|
217
|
+
e || (e = {});
|
|
218
|
+
let t = Object.keys(L.value);
|
|
219
|
+
if (t && t.length > 0) {
|
|
220
|
+
let o = {};
|
|
221
|
+
for (let l of t)
|
|
222
|
+
o[l] = e[l] || [];
|
|
223
|
+
L.value = o;
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
let Le = Pt(() => {
|
|
227
|
+
let e = D.value, t = [];
|
|
228
|
+
for (let o of e)
|
|
229
|
+
t.push(o.field);
|
|
230
|
+
return t;
|
|
231
|
+
});
|
|
232
|
+
function Je(e) {
|
|
233
|
+
let t = `${te.optPre}${r.id}/${e}`;
|
|
234
|
+
return new Promise((o, l) => {
|
|
235
|
+
ee.get({ url: t }, { isTransformResponse: !1 }).then((n) => {
|
|
236
|
+
n.success ? o(n.result) : (l(), i.warning(n.message));
|
|
237
|
+
}).catch(() => {
|
|
238
|
+
l();
|
|
239
|
+
});
|
|
240
|
+
});
|
|
241
|
+
}
|
|
242
|
+
function Ue(e) {
|
|
243
|
+
return _(this, null, function* () {
|
|
244
|
+
O.value = e.head.tableType, d.value = e.head.tableName, V.value = e.head.tableType == 1, He(e.head.extConfigJson), Oe(e.schema.properties, e.schema.required, Se, P), u = Re(e.enhanceJs), c("rendered", P);
|
|
245
|
+
let t = yield Kt(a);
|
|
246
|
+
t.$formValueChange = (o, l, n) => {
|
|
247
|
+
rt(o, l), n && S(n), qe(o, l, n);
|
|
248
|
+
}, u && u.setup && me(u.setup);
|
|
249
|
+
});
|
|
250
|
+
}
|
|
251
|
+
function qe(e, t, o) {
|
|
252
|
+
f.changEvent(e, t, o);
|
|
253
|
+
}
|
|
254
|
+
function Ke(e) {
|
|
255
|
+
f.addObject2Context("changEvent", e);
|
|
256
|
+
}
|
|
257
|
+
function He(e) {
|
|
258
|
+
let t = { reportPrintShow: 0, reportPrintUrl: "", joinQuery: 0, modelFullscreen: 0, modalMinWidth: "", commentStatus: 0, formLabelLength: null };
|
|
259
|
+
e && (t = JSON.parse(e)), Object.keys(t).map((o) => {
|
|
260
|
+
P[o] = t[o];
|
|
261
|
+
});
|
|
262
|
+
}
|
|
263
|
+
function We() {
|
|
264
|
+
V.value === !0 ? Xe() : Ge();
|
|
265
|
+
}
|
|
266
|
+
function Ge() {
|
|
267
|
+
ze().then((e) => {
|
|
268
|
+
ce(e);
|
|
269
|
+
});
|
|
270
|
+
}
|
|
271
|
+
function ze() {
|
|
272
|
+
let e = {};
|
|
273
|
+
return new Promise((t, o) => {
|
|
274
|
+
le().then(
|
|
275
|
+
(l) => t(l),
|
|
276
|
+
({ errorFields: l }) => {
|
|
277
|
+
o({
|
|
278
|
+
code: j,
|
|
279
|
+
key: d.value,
|
|
280
|
+
// 滚动到未通过校验的字段上
|
|
281
|
+
scrollToField: () => l[0] && ae(l[0].name, { behavior: "smooth", block: "center" })
|
|
282
|
+
});
|
|
283
|
+
}
|
|
284
|
+
);
|
|
285
|
+
}).then((t) => (Object.assign(e, N(t)), Ye())).then((t) => (Object.assign(e, t), Promise.resolve(e))).catch((t) => ((t === j || (t == null ? void 0 : t.code) === j) && (i.warning("校验未通过"), t.key && (Qe(t.key), t.scrollToField && setTimeout(() => t.scrollToField(), 150))), Promise.reject(null)));
|
|
286
|
+
}
|
|
287
|
+
function Qe(e) {
|
|
288
|
+
if (e === d.value) {
|
|
289
|
+
c("toggleTab", "-1");
|
|
290
|
+
return;
|
|
291
|
+
}
|
|
292
|
+
let t = E.value;
|
|
293
|
+
for (let o = 0; o < t.length; o++)
|
|
294
|
+
if (e == t[o].key) {
|
|
295
|
+
let l = o + "";
|
|
296
|
+
if (J.value === l)
|
|
297
|
+
break;
|
|
298
|
+
if (c("toggleTab", l), t[o].relationType === 0) {
|
|
299
|
+
let n = b(e);
|
|
300
|
+
zt(300, () => n == null ? void 0 : n.validateTable());
|
|
301
|
+
}
|
|
302
|
+
break;
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
function Ye() {
|
|
306
|
+
return new Promise((e, t) => _(this, null, function* () {
|
|
307
|
+
let o = {};
|
|
308
|
+
try {
|
|
309
|
+
let l = E.value;
|
|
310
|
+
for (let n = 0; n < l.length; n++) {
|
|
311
|
+
let g = l[n].key, F = b(g);
|
|
312
|
+
if (l[n].relationType == 1)
|
|
313
|
+
try {
|
|
314
|
+
let x = yield F.getAll();
|
|
315
|
+
o[g] = [], o[g].push(x);
|
|
316
|
+
} catch (x) {
|
|
317
|
+
return t(R({ code: j, key: g }, x));
|
|
318
|
+
}
|
|
319
|
+
else {
|
|
320
|
+
if (yield F.fullValidateTable())
|
|
321
|
+
return t({ code: j, key: g });
|
|
322
|
+
o[g] = F.getTableData();
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
} catch (l) {
|
|
326
|
+
t(l);
|
|
327
|
+
}
|
|
328
|
+
e(o);
|
|
329
|
+
}));
|
|
330
|
+
}
|
|
331
|
+
function Xe() {
|
|
332
|
+
return _(this, null, function* () {
|
|
333
|
+
try {
|
|
334
|
+
let e = yield le();
|
|
335
|
+
e = Object.assign({}, w.value, e), e = N(e), T.value = !0, ce(e);
|
|
336
|
+
} catch (e) {
|
|
337
|
+
Array.isArray(e == null ? void 0 : e.errorFields) && e.errorFields[0] && ae(e.errorFields[0].name, { behavior: "smooth", block: "center" });
|
|
338
|
+
} finally {
|
|
339
|
+
T.value = !1;
|
|
340
|
+
}
|
|
341
|
+
});
|
|
342
|
+
}
|
|
343
|
+
function ce(e) {
|
|
344
|
+
ct(be, e).then(() => {
|
|
345
|
+
Ze(e);
|
|
346
|
+
}).catch((t) => {
|
|
347
|
+
i.warning(t);
|
|
348
|
+
});
|
|
349
|
+
}
|
|
350
|
+
function Ze(e) {
|
|
351
|
+
Object.keys(e).map((n) => {
|
|
352
|
+
Array.isArray(e[n]) && e[n].length == 0 && (e[n] = "");
|
|
353
|
+
});
|
|
354
|
+
let t = y.value, o = `${te.optPre}${r.id}?tabletype=${O.value}`;
|
|
355
|
+
t && (o = `${t}?tabletype=${O.value}`), h.value === !0 && (e[Ht] = 1);
|
|
356
|
+
let l = p.value === !0 ? "put" : "post";
|
|
357
|
+
ee.request({ url: o, method: l, params: e }, { isTransformResponse: !1 }).then((n) => {
|
|
358
|
+
n.success ? (n.result && (e[Wt] = n.result), c("success", e), r.submitTip === !0 && i.success(n.message)) : i.warning(n.message);
|
|
359
|
+
}).finally(() => {
|
|
360
|
+
T.value = !1;
|
|
361
|
+
});
|
|
362
|
+
}
|
|
363
|
+
function $e(e, t, o) {
|
|
364
|
+
t && o ? o.vxeProps ? o.setValues([
|
|
365
|
+
{
|
|
366
|
+
rowKey: t,
|
|
367
|
+
values: e
|
|
368
|
+
}
|
|
369
|
+
]) : o.setValues(e) : S(e);
|
|
370
|
+
}
|
|
371
|
+
function et(e, t) {
|
|
372
|
+
let o = {};
|
|
373
|
+
o[e] = t, S(o);
|
|
374
|
+
}
|
|
375
|
+
const J = m("0"), fe = m("auto"), de = m(340);
|
|
376
|
+
function tt(e) {
|
|
377
|
+
if (p.value === !0) {
|
|
378
|
+
let t = w.value;
|
|
379
|
+
return ot(t, e);
|
|
380
|
+
}
|
|
381
|
+
return "";
|
|
382
|
+
}
|
|
383
|
+
Vt(
|
|
384
|
+
() => r.tabIndex,
|
|
385
|
+
(e) => {
|
|
386
|
+
J.value = e;
|
|
387
|
+
},
|
|
388
|
+
{
|
|
389
|
+
immediate: !0
|
|
390
|
+
}
|
|
391
|
+
);
|
|
392
|
+
function ot(e, t) {
|
|
393
|
+
if (e) {
|
|
394
|
+
let o = e[t];
|
|
395
|
+
return !o && o !== 0 && (o = e[t.toLowerCase()], !o && o !== 0 && (o = e[t.toUpperCase()])), o;
|
|
396
|
+
}
|
|
397
|
+
return "";
|
|
398
|
+
}
|
|
399
|
+
function lt(e, t) {
|
|
400
|
+
if (u && u[t + "_onlChange"]) {
|
|
401
|
+
let o = u[t + "_onlChange"](), l = Object.keys(e)[0];
|
|
402
|
+
if (o[l]) {
|
|
403
|
+
let g = b(t).getFormEvent(), F = R({
|
|
404
|
+
column: { key: l },
|
|
405
|
+
value: e[l]
|
|
406
|
+
}, g);
|
|
407
|
+
o[l].call(f, f, F);
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
function nt(e, t) {
|
|
412
|
+
if (u && u[t + "_onlChange"]) {
|
|
413
|
+
let o = u[t + "_onlChange"](f);
|
|
414
|
+
if (e.column === "all") {
|
|
415
|
+
let l = Object.keys(o);
|
|
416
|
+
if (l.length > 0)
|
|
417
|
+
for (let n of l)
|
|
418
|
+
o[n].call(f, f, e);
|
|
419
|
+
} else {
|
|
420
|
+
let l = e.column.key || e.col.key;
|
|
421
|
+
o[l] && e.row && e.row.id && o[l].call(f, f, e);
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
function at(e, t) {
|
|
426
|
+
t.isModalData || re(e, t);
|
|
427
|
+
}
|
|
428
|
+
function it(e) {
|
|
429
|
+
return "online_" + e + ":";
|
|
430
|
+
}
|
|
431
|
+
function rt(e, t) {
|
|
432
|
+
return _(this, null, function* () {
|
|
433
|
+
if (!u || !u.onlChange || !e)
|
|
434
|
+
return !1;
|
|
435
|
+
let o = u.onlChange();
|
|
436
|
+
if (o[e]) {
|
|
437
|
+
let n = {
|
|
438
|
+
row: yield Q(),
|
|
439
|
+
column: { key: e },
|
|
440
|
+
value: t
|
|
441
|
+
};
|
|
442
|
+
o[e].call(f, f, n);
|
|
443
|
+
}
|
|
444
|
+
});
|
|
445
|
+
}
|
|
446
|
+
function me(e) {
|
|
447
|
+
let o = e.toLocaleString().match(lo);
|
|
448
|
+
if (o.length > 1) {
|
|
449
|
+
let l = o[1];
|
|
450
|
+
Ae(l);
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
function Y(e, t) {
|
|
454
|
+
if (e == "js") {
|
|
455
|
+
let o = t + "_hook";
|
|
456
|
+
u && u[t] ? u[t].call(f, f) : u && u[o] && me(u[o]);
|
|
457
|
+
} else if (e == "action") {
|
|
458
|
+
let o = w.value, l = {
|
|
459
|
+
formId: r.id,
|
|
460
|
+
buttonCode: t,
|
|
461
|
+
dataId: o.id,
|
|
462
|
+
uiFormData: Object.assign({}, o)
|
|
463
|
+
};
|
|
464
|
+
ee.post(
|
|
465
|
+
{
|
|
466
|
+
url: `${te.urlButtonAction}`,
|
|
467
|
+
params: l
|
|
468
|
+
},
|
|
469
|
+
{ isTransformResponse: !1 }
|
|
470
|
+
).then((n) => {
|
|
471
|
+
n.success ? i.success("处理完成!") : i.warning("处理失败!");
|
|
472
|
+
});
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
function pe(e) {
|
|
476
|
+
let t = b(e), o = [...t.getNewDataWithId(), ...L.value[e]];
|
|
477
|
+
if (!o || o.length == 0)
|
|
478
|
+
return !1;
|
|
479
|
+
let l = [];
|
|
480
|
+
for (let n of o)
|
|
481
|
+
l.push(n.id);
|
|
482
|
+
t.removeRowsById(l);
|
|
483
|
+
}
|
|
484
|
+
function ge(e, t) {
|
|
485
|
+
if (!t)
|
|
486
|
+
return !1;
|
|
487
|
+
let o = b(e);
|
|
488
|
+
typeof t == "object" ? o.addRows(t, !0) : this.$message.error("添加子表数据,参数不识别!");
|
|
489
|
+
}
|
|
490
|
+
function st(e, t) {
|
|
491
|
+
pe(e), ge(e, t);
|
|
492
|
+
}
|
|
493
|
+
function ut(e, t) {
|
|
494
|
+
!t && t.length <= 0 && (t = []), t.map((o) => {
|
|
495
|
+
o.hasOwnProperty("label") || (o.label = o.text);
|
|
496
|
+
}), z({
|
|
497
|
+
field: e,
|
|
498
|
+
componentProps: {
|
|
499
|
+
options: t
|
|
500
|
+
}
|
|
501
|
+
});
|
|
502
|
+
}
|
|
503
|
+
function ct(e, t) {
|
|
504
|
+
return u && u.beforeSubmit ? u.beforeSubmit(e, t) : Promise.resolve();
|
|
505
|
+
}
|
|
506
|
+
function ft(e, t) {
|
|
507
|
+
let o = M(I);
|
|
508
|
+
e && e.length > 0 ? Object.keys(o).map((l) => {
|
|
509
|
+
!l.endsWith("_load") && e.indexOf(l) < 0 && (I[l] = !1);
|
|
510
|
+
}) : t && t.length > 0 && Object.keys(o).map((l) => {
|
|
511
|
+
t.indexOf(l) >= 0 && (I[l] = !1);
|
|
512
|
+
});
|
|
513
|
+
}
|
|
514
|
+
function dt(e, t) {
|
|
515
|
+
return _(this, null, function* () {
|
|
516
|
+
y.value = t, yield ne(), w.value = "", p.value = !0, yield se(e), yield _e(() => {
|
|
517
|
+
Y("js", "loaded");
|
|
518
|
+
});
|
|
519
|
+
});
|
|
520
|
+
}
|
|
521
|
+
function b(e) {
|
|
522
|
+
let t = G[e].value;
|
|
523
|
+
if (t instanceof Array && (t = t[0]), !t) {
|
|
524
|
+
i.warning("子表ref找不到:" + e);
|
|
525
|
+
return;
|
|
526
|
+
}
|
|
527
|
+
return t;
|
|
528
|
+
}
|
|
529
|
+
function mt() {
|
|
530
|
+
let e = P.reportPrintUrl, t = w.value.id, o = Xt();
|
|
531
|
+
Qt(e, t, o);
|
|
532
|
+
}
|
|
533
|
+
const [pt, { openModal: he }] = to(), X = m(""), Z = m(!0);
|
|
534
|
+
function gt(e) {
|
|
535
|
+
X.value = e.id, Z.value = !1, he(!0, { isUpdate: !1, tableType: "3" });
|
|
536
|
+
}
|
|
537
|
+
function ht(e) {
|
|
538
|
+
let o = b(e.key).getSelectedData();
|
|
539
|
+
if (o.length != 1) {
|
|
540
|
+
i.warning("请选择一条数据");
|
|
541
|
+
return;
|
|
542
|
+
}
|
|
543
|
+
X.value = e.id, Z.value = !1, he(!0, { isUpdate: !0, record: o[0] });
|
|
544
|
+
}
|
|
545
|
+
function bt(e) {
|
|
546
|
+
const t = e[Te];
|
|
547
|
+
let o = we(e, [Te]);
|
|
548
|
+
if (o.id) {
|
|
549
|
+
let l = we(R({}, o), "id"), n = [{ rowKey: o.id, values: l }];
|
|
550
|
+
b(t).setValues(n);
|
|
551
|
+
} else
|
|
552
|
+
b(t).addRows(o, { isOnlineJS: !1, setActive: !1, emitChange: !0, isModalData: !0 });
|
|
553
|
+
}
|
|
554
|
+
function yt() {
|
|
555
|
+
let e = E.value;
|
|
556
|
+
if (e && e.length > 0) {
|
|
557
|
+
for (let t of e)
|
|
558
|
+
if (t.relationType != 1) {
|
|
559
|
+
let o = b(t.key);
|
|
560
|
+
o && o.clearSelection();
|
|
561
|
+
}
|
|
562
|
+
}
|
|
563
|
+
}
|
|
564
|
+
function vt() {
|
|
565
|
+
let e = Q(), t = M(s[d.value]);
|
|
566
|
+
K(
|
|
567
|
+
t,
|
|
568
|
+
(o) => {
|
|
569
|
+
S(o);
|
|
570
|
+
},
|
|
571
|
+
e
|
|
572
|
+
);
|
|
573
|
+
}
|
|
574
|
+
function Ft(e, t) {
|
|
575
|
+
let o = E.value;
|
|
576
|
+
if (o && o.length > 0) {
|
|
577
|
+
let l = o.filter((n) => n.key === e);
|
|
578
|
+
if (l.length == 0)
|
|
579
|
+
return;
|
|
580
|
+
if (l[0].relationType == 1)
|
|
581
|
+
b(e).executeFillRule();
|
|
582
|
+
else {
|
|
583
|
+
let n = M(s[e]), g = M(t.row);
|
|
584
|
+
K(
|
|
585
|
+
n,
|
|
586
|
+
(F) => {
|
|
587
|
+
const { row: x, target: _t } = t;
|
|
588
|
+
let Tt = [{ rowKey: x.id, values: R({}, F) }];
|
|
589
|
+
_t.setValues(Tt);
|
|
590
|
+
},
|
|
591
|
+
g
|
|
592
|
+
);
|
|
593
|
+
}
|
|
594
|
+
}
|
|
595
|
+
}
|
|
596
|
+
let be = {
|
|
597
|
+
tableName: d,
|
|
598
|
+
loading: T,
|
|
599
|
+
subActiveKey: J,
|
|
600
|
+
onlineFormRef: a,
|
|
601
|
+
getFieldsValue: Q,
|
|
602
|
+
setFieldsValue: S,
|
|
603
|
+
submitFlowFlag: h,
|
|
604
|
+
subFormHeight: fe,
|
|
605
|
+
subTableHeight: de,
|
|
606
|
+
refMap: G,
|
|
607
|
+
triggleChangeValues: $e,
|
|
608
|
+
triggleChangeValue: et,
|
|
609
|
+
sh: I,
|
|
610
|
+
clearSubRows: pe,
|
|
611
|
+
addSubRows: ge,
|
|
612
|
+
clearThenAddRows: st,
|
|
613
|
+
changeOptions: ut,
|
|
614
|
+
isUpdate: p,
|
|
615
|
+
getSubTableInstance: b,
|
|
616
|
+
updateSchema: z,
|
|
617
|
+
executeMainFillRule: vt,
|
|
618
|
+
executeSubFillRule: Ft,
|
|
619
|
+
changEvent: () => {
|
|
620
|
+
},
|
|
621
|
+
onlineFormValueChange: Ke
|
|
622
|
+
};
|
|
623
|
+
return W(be), {
|
|
624
|
+
//主表
|
|
625
|
+
tableName: d,
|
|
626
|
+
onlineFormRef: a,
|
|
627
|
+
registerForm: Me,
|
|
628
|
+
loading: T,
|
|
629
|
+
//子表
|
|
630
|
+
subActiveKey: J,
|
|
631
|
+
hasSubTable: Ce,
|
|
632
|
+
subTabInfo: E,
|
|
633
|
+
refMap: G,
|
|
634
|
+
//一对一子表
|
|
635
|
+
subFormHeight: fe,
|
|
636
|
+
getSubTableForeignKeyValue: tt,
|
|
637
|
+
isUpdate: p,
|
|
638
|
+
handleSubFormChange: lt,
|
|
639
|
+
//一对多子表
|
|
640
|
+
subTableHeight: de,
|
|
641
|
+
onlineFormDisabled: ie,
|
|
642
|
+
subDataSource: L,
|
|
643
|
+
getSubTableAuthPre: it,
|
|
644
|
+
handleAdded: at,
|
|
645
|
+
handleSubTableDefaultValue: re,
|
|
646
|
+
handleValueChange: nt,
|
|
647
|
+
openSubFormModalForAdd: gt,
|
|
648
|
+
openSubFormModalForEdit: ht,
|
|
649
|
+
//父组件调用
|
|
650
|
+
show: je,
|
|
651
|
+
createRootProperties: Ue,
|
|
652
|
+
handleSubmit: We,
|
|
653
|
+
sh: I,
|
|
654
|
+
handleCgButtonClick: Y,
|
|
655
|
+
handleCustomFormSh: ft,
|
|
656
|
+
handleCustomFormEdit: dt,
|
|
657
|
+
//跳转
|
|
658
|
+
dbData: w,
|
|
659
|
+
onOpenReportPrint: mt,
|
|
660
|
+
onlineExtConfigJson: P,
|
|
661
|
+
//一对多子表弹窗操作数据
|
|
662
|
+
registerPopModal: pt,
|
|
663
|
+
popTableName: X,
|
|
664
|
+
getPopFormData: bt,
|
|
665
|
+
popModalRequest: Z,
|
|
666
|
+
onCloseModal: yt,
|
|
667
|
+
rowNumber: H
|
|
668
|
+
};
|
|
669
|
+
}
|
|
670
|
+
}, ro = (r) => (Et("data-v-4a631fb5"), r = r(), It(), r), so = ["id"], uo = { key: 1 }, co = { class: "add" }, fo = /* @__PURE__ */ ro(() => /* @__PURE__ */ oe("svg", {
|
|
671
|
+
t: "1714390025804",
|
|
672
|
+
class: "icon",
|
|
673
|
+
viewBox: "0 0 1024 1024",
|
|
674
|
+
version: "1.1",
|
|
675
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
676
|
+
"p-id": "50960",
|
|
677
|
+
width: "16",
|
|
678
|
+
height: "16"
|
|
679
|
+
}, [
|
|
680
|
+
/* @__PURE__ */ oe("path", {
|
|
681
|
+
d: "M469.333333 469.333333V170.666667h85.333334v298.666666h298.666666v85.333334h-298.666666v298.666666h-85.333334v-298.666666H170.666667v-85.333334h298.666666z",
|
|
682
|
+
fill: "#fff",
|
|
683
|
+
"p-id": "50961"
|
|
684
|
+
})
|
|
685
|
+
], -1));
|
|
686
|
+
function mo(r, c, i, a, V, T) {
|
|
687
|
+
const O = v("BasicForm"), y = v("a-tab-pane"), h = v("online-sub-form"), p = v("diff-outlined"), B = v("a-button"), H = v("form-outlined"), P = v("JVxeTable"), f = v("a-tabs"), W = v("Loading"), D = v("online-pop-modal");
|
|
688
|
+
return C(), U("div", {
|
|
689
|
+
id: a.tableName + "_form",
|
|
690
|
+
class: xt(["onlineFormWrap", [`formTemplate_${i.formTemplate}`]])
|
|
691
|
+
}, [
|
|
692
|
+
k(f, {
|
|
693
|
+
class: "tabTheme",
|
|
694
|
+
activeKey: a.subActiveKey,
|
|
695
|
+
"onUpdate:activeKey": c[0] || (c[0] = (s) => a.subActiveKey = s)
|
|
696
|
+
}, {
|
|
697
|
+
default: A(() => [
|
|
698
|
+
(C(), q(y, {
|
|
699
|
+
tab: "主表",
|
|
700
|
+
key: "-1"
|
|
701
|
+
}, {
|
|
702
|
+
default: A(() => [
|
|
703
|
+
k(O, {
|
|
704
|
+
ref: "onlineFormRef",
|
|
705
|
+
onRegister: a.registerForm
|
|
706
|
+
}, null, 8, ["onRegister"])
|
|
707
|
+
]),
|
|
708
|
+
_: 1
|
|
709
|
+
})),
|
|
710
|
+
a.hasSubTable ? (C(!0), U(Rt, { key: 0 }, At(a.subTabInfo, (s, N) => (C(), q(y, {
|
|
711
|
+
tab: s.describe,
|
|
712
|
+
key: N + "",
|
|
713
|
+
forceRender: !0
|
|
714
|
+
}, {
|
|
715
|
+
default: A(() => [
|
|
716
|
+
s.relationType == 1 ? (C(), U("div", {
|
|
717
|
+
key: 0,
|
|
718
|
+
style: Mt({ "overflow-y": "auto", "overflow-x": "hidden", "max-height": a.subFormHeight + "px" })
|
|
719
|
+
}, [
|
|
720
|
+
k(h, {
|
|
721
|
+
ref_for: !0,
|
|
722
|
+
ref: a.refMap[s.key],
|
|
723
|
+
table: s.key,
|
|
724
|
+
disabled: a.onlineFormDisabled,
|
|
725
|
+
"form-template": i.formTemplate,
|
|
726
|
+
"main-id": a.getSubTableForeignKeyValue(s.foreignKey),
|
|
727
|
+
properties: s.properties,
|
|
728
|
+
"required-fields": s.requiredFields,
|
|
729
|
+
"is-update": a.isUpdate,
|
|
730
|
+
onFormChange: (d) => a.handleSubFormChange(d, s.key)
|
|
731
|
+
}, null, 8, ["table", "disabled", "form-template", "main-id", "properties", "required-fields", "is-update", "onFormChange"])
|
|
732
|
+
], 4)) : (C(), U("div", uo, [
|
|
733
|
+
k(P, {
|
|
734
|
+
ref_for: !0,
|
|
735
|
+
ref: a.refMap[s.key],
|
|
736
|
+
toolbar: "",
|
|
737
|
+
"keep-source": "",
|
|
738
|
+
"row-number": a.rowNumber,
|
|
739
|
+
"row-selection": "",
|
|
740
|
+
height: (
|
|
741
|
+
// 【VUEN-803】一对多子表固定340高度,修复自定义列组件被遮挡的问题
|
|
742
|
+
a.subTableHeight
|
|
743
|
+
),
|
|
744
|
+
disabled: a.onlineFormDisabled,
|
|
745
|
+
columns: s.columns,
|
|
746
|
+
dataSource: a.subDataSource[s.key],
|
|
747
|
+
onValueChange: (d) => a.handleValueChange(d, s.key),
|
|
748
|
+
authPre: a.getSubTableAuthPre(s.key),
|
|
749
|
+
onAdded: (d) => a.handleAdded(s, d),
|
|
750
|
+
onExecuteFillRule: (d) => a.handleSubTableDefaultValue(s, d)
|
|
751
|
+
}, {
|
|
752
|
+
toolbarSuffix: A(() => [
|
|
753
|
+
a.onlineFormDisabled ? $("", !0) : (C(), q(B, {
|
|
754
|
+
key: 0,
|
|
755
|
+
type: "primary",
|
|
756
|
+
onClick: (d) => a.openSubFormModalForAdd(s)
|
|
757
|
+
}, {
|
|
758
|
+
default: A(() => [
|
|
759
|
+
oe("div", co, [
|
|
760
|
+
fo,
|
|
761
|
+
k(p)
|
|
762
|
+
])
|
|
763
|
+
]),
|
|
764
|
+
_: 2
|
|
765
|
+
}, 1032, ["onClick"])),
|
|
766
|
+
a.onlineFormDisabled ? $("", !0) : (C(), q(B, {
|
|
767
|
+
key: 1,
|
|
768
|
+
type: "primary",
|
|
769
|
+
onClick: (d) => a.openSubFormModalForEdit(s)
|
|
770
|
+
}, {
|
|
771
|
+
default: A(() => [
|
|
772
|
+
k(H)
|
|
773
|
+
]),
|
|
774
|
+
_: 2
|
|
775
|
+
}, 1032, ["onClick"]))
|
|
776
|
+
]),
|
|
777
|
+
_: 2
|
|
778
|
+
}, 1032, ["row-number", "height", "disabled", "columns", "dataSource", "onValueChange", "authPre", "onAdded", "onExecuteFillRule"])
|
|
779
|
+
]))
|
|
780
|
+
]),
|
|
781
|
+
_: 2
|
|
782
|
+
}, 1032, ["tab"]))), 128)) : $("", !0)
|
|
783
|
+
]),
|
|
784
|
+
_: 1
|
|
785
|
+
}, 8, ["activeKey"]),
|
|
786
|
+
k(W, {
|
|
787
|
+
loading: a.loading,
|
|
788
|
+
absolute: !1
|
|
789
|
+
}, null, 8, ["loading"]),
|
|
790
|
+
Dt(r.$slots, "bottom", {}, void 0, !0),
|
|
791
|
+
k(D, {
|
|
792
|
+
formTableType: "3",
|
|
793
|
+
request: a.popModalRequest,
|
|
794
|
+
id: a.popTableName,
|
|
795
|
+
onRegister: a.registerPopModal,
|
|
796
|
+
onSuccess: a.getPopFormData,
|
|
797
|
+
topTip: "",
|
|
798
|
+
isVxeTableData: ""
|
|
799
|
+
}, null, 8, ["request", "id", "onRegister", "onSuccess"])
|
|
800
|
+
], 10, so);
|
|
801
|
+
}
|
|
802
|
+
const el = /* @__PURE__ */ ao(io, [["render", mo], ["__scopeId", "data-v-4a631fb5"]]);
|
|
803
|
+
export {
|
|
804
|
+
el as default
|
|
805
|
+
};
|