liyu-pc-base 1.0.1213 → 1.0.1223
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/dist/{FieldRender-D457aew2.js → FieldRender-GHezux_e.js} +1 -1
- package/dist/{FieldRender2-iJAXSY7Y.js → FieldRender2-C3B14eIg.js} +814 -633
- package/dist/{FormRender3-DSuUFghA.js → FormRender3-qp2fiaBQ.js} +2 -2
- package/dist/{RemoteSelectPro-0DhaMGFT.js → RemoteSelectPro-Ba7o82t8.js} +1 -1
- package/dist/{SearchRender-BcTES9Vj.js → SearchRender-D95TTDWk.js} +1 -1
- package/dist/{TinymceEditor-x6oH3OLc.js → TinymceEditor-CowTAt9s.js} +959 -959
- package/dist/{ViewCreateModal-CVBuVTaj.js → ViewCreateModal-1wlYhw3o.js} +1 -1
- package/dist/aiGenModel-CZtNC3nX.js +165 -0
- package/dist/components/index.js +14 -14
- package/dist/{components-BKIrVR35.js → components-D7myD060.js} +3998 -3353
- package/dist/{dbViewConfig-CdqsAL80.js → dbViewConfig-CKJed5Hl.js} +111 -111
- package/dist/{detailTablePro-DU2Dp_vy.js → detailTablePro-BRJT9cv7.js} +1 -1
- package/dist/excel-header-reader-CJZ7RqSn.js +4063 -0
- package/dist/index.js +1 -1
- package/dist/liyu-pc-base.css +1 -1
- package/dist/{aiGenModel-C9E1ahu8.js → markdown-it-B9l1CghD.js} +591 -754
- package/dist/{tableModal-CbB4f-Cu.js → tableModal-CL1kpAEL.js} +1 -1
- package/dist/{tablePageHost-yfsOVGWf.js → tablePageHost-0TwO9-bh.js} +8904 -8901
- package/dist/{tablePro-WP1Uw_b4.js → tablePro-Bd6rublT.js} +1251 -1250
- package/dist/utils/excel.js +47 -41
- package/dist/{utils-CdD9ak3N.js → utils-BEKXRkuc.js} +21 -13
- package/package.json +3 -1
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { L as e } from "./init-plugin-CERVEi6b.js";
|
|
2
|
-
import { getApiData as
|
|
3
|
-
import { t as
|
|
4
|
-
import { t as
|
|
5
|
-
import { a as
|
|
6
|
-
import { t as
|
|
1
|
+
import { L as e, z as t } from "./init-plugin-CERVEi6b.js";
|
|
2
|
+
import { getApiData as n } from "./api/api-model.js";
|
|
3
|
+
import { t as r } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
4
|
+
import { t as i } from "./lodash-CMVwnWxD.js";
|
|
5
|
+
import { _ as a, a as o, c as s, d as c, g as l, h as u, i as d, l as f, n as p, o as m, p as h, r as g, s as _, t as ee, v } from "./TinymceEditor-CowTAt9s.js";
|
|
6
|
+
import { t as te } from "./RemoteSelect-CrqKuqLy.js";
|
|
7
7
|
import { t as ne } from "./RemoteCascader-BsOeNVvB.js";
|
|
8
|
-
import { N as
|
|
9
|
-
import { i as
|
|
10
|
-
import { i as
|
|
11
|
-
import { t as
|
|
12
|
-
import { t as
|
|
13
|
-
import { t as
|
|
14
|
-
import { t as
|
|
15
|
-
import { t as
|
|
16
|
-
import { t as
|
|
17
|
-
import { t as
|
|
18
|
-
import { resolveContextValue as
|
|
19
|
-
import { exportJsonToExcelByTokenHeader as
|
|
20
|
-
import { Fragment as
|
|
21
|
-
import { Modal as
|
|
22
|
-
import { ExclamationCircleOutlined as
|
|
23
|
-
import { cloneDeep as
|
|
8
|
+
import { N as y, P as b, k as x, n as re, s as ie } from "./function-NDm_369M.js";
|
|
9
|
+
import { i as ae, t as oe } from "./RemoteModal-DmeZX6tX.js";
|
|
10
|
+
import { i as S, r as se, t as C } from "./RemoteSelectPro-Ba7o82t8.js";
|
|
11
|
+
import { t as ce } from "./RemoteFilterSelect-DF906O8X.js";
|
|
12
|
+
import { t as le } from "./AttributeNomTable-CpBTMwTk.js";
|
|
13
|
+
import { t as w } from "./AttributeTable-Bn2bZCfi.js";
|
|
14
|
+
import { t as ue } from "./JsonStr-JwOPdAYW.js";
|
|
15
|
+
import { t as T } from "./JsonObj-CmylW4Or.js";
|
|
16
|
+
import { t as de } from "./RemoteText-C_zxmxfK.js";
|
|
17
|
+
import { t as fe } from "./modal-tools-CZkYEwEr.js";
|
|
18
|
+
import { resolveContextValue as E } from "./components/FormRender/utils.js";
|
|
19
|
+
import { exportJsonToExcelByTokenHeader as pe } from "./utils/excel.js";
|
|
20
|
+
import { Fragment as D, computed as O, createBlock as k, createCommentVNode as A, createElementBlock as j, createElementVNode as M, createSlots as N, createTextVNode as P, createVNode as F, defineAsyncComponent as me, defineComponent as I, h as he, inject as ge, mergeModels as L, mergeProps as _e, normalizeClass as ve, normalizeStyle as R, onBeforeUnmount as ye, onMounted as z, onUnmounted as be, openBlock as B, reactive as V, ref as H, renderList as U, renderSlot as xe, resolveComponent as W, resolveDynamicComponent as G, toDisplayString as K, unref as Se, useModel as Ce, vShow as we, watch as q, withCtx as J, withDirectives as Te } from "vue";
|
|
21
|
+
import { Modal as Ee, Upload as De, message as Oe } from "ant-design-vue";
|
|
22
|
+
import { ExclamationCircleOutlined as ke, PlusOutlined as Ae } from "@ant-design/icons-vue";
|
|
23
|
+
import { cloneDeep as je, debounce as Me, isArray as Ne } from "lodash-es";
|
|
24
24
|
import Y from "moment";
|
|
25
|
-
import { useI18n as
|
|
26
|
-
import
|
|
25
|
+
import { useI18n as Pe } from "vue-i18n";
|
|
26
|
+
import Fe from "mitt";
|
|
27
27
|
//#region src/components/FormRender/FormTemplate/FormItem.vue?vue&type=script&lang.ts
|
|
28
|
-
var
|
|
28
|
+
var Ie = I({
|
|
29
29
|
name: "FormTemplate",
|
|
30
30
|
components: {},
|
|
31
31
|
props: {
|
|
@@ -91,7 +91,7 @@ var je = F({
|
|
|
91
91
|
"copy"
|
|
92
92
|
],
|
|
93
93
|
setup(e, { emit: t }) {
|
|
94
|
-
let n = V({ ...e.field.form.rules }), r = H({}), i =
|
|
94
|
+
let n = V({ ...e.field.form.rules }), r = H({}), i = me(() => import("./FormRender3-qp2fiaBQ.js").then((e) => e.n)), a, o = () => {
|
|
95
95
|
let e = /* @__PURE__ */ new Uint8Array(16);
|
|
96
96
|
return window.crypto.getRandomValues(e), Array.from(e, (e) => e.toString(16).padStart(2, "0")).join("");
|
|
97
97
|
}, s = H([]), c = o(), l = ([t, i]) => {
|
|
@@ -99,7 +99,7 @@ var je = F({
|
|
|
99
99
|
Object.keys(n).forEach((e) => {
|
|
100
100
|
e in t && !i[e] && (o[e] = n[e]);
|
|
101
101
|
});
|
|
102
|
-
let s =
|
|
102
|
+
let s = ae(t, o);
|
|
103
103
|
a = s.validate, r.value = s.validateInfos, e.nestValidate && (e.nestValidate[c] = a);
|
|
104
104
|
};
|
|
105
105
|
return q(() => e.value, (e) => {
|
|
@@ -107,7 +107,7 @@ var je = F({
|
|
|
107
107
|
}, {
|
|
108
108
|
deep: !0,
|
|
109
109
|
immediate: !0
|
|
110
|
-
}), z(() => {}),
|
|
110
|
+
}), z(() => {}), be(() => {
|
|
111
111
|
e.nestValidate && delete e.nestValidate[c];
|
|
112
112
|
}), {
|
|
113
113
|
FormRender3Async: i,
|
|
@@ -126,13 +126,13 @@ var je = F({
|
|
|
126
126
|
data() {
|
|
127
127
|
return { model: this.value };
|
|
128
128
|
}
|
|
129
|
-
}),
|
|
129
|
+
}), Le = { class: "form-wrap" }, Re = { class: "form-content" }, ze = {
|
|
130
130
|
key: 0,
|
|
131
131
|
class: "form-action"
|
|
132
132
|
};
|
|
133
|
-
function
|
|
133
|
+
function Be(e, t, n, r, i, a) {
|
|
134
134
|
let o = W("CopyOutlined"), s = W("a-button"), c = W("DeleteOutlined");
|
|
135
|
-
return B(),
|
|
135
|
+
return B(), j("div", Le, [M("div", Re, [(B(), k(G(e.FormRender3Async), {
|
|
136
136
|
form: e.field.form,
|
|
137
137
|
model: e.value,
|
|
138
138
|
"onUpdate:model": t[0] ||= (t) => e.value = t,
|
|
@@ -165,26 +165,26 @@ function Fe(e, t, n, r, i, a) {
|
|
|
165
165
|
"base-key-path",
|
|
166
166
|
"worker-host-functions",
|
|
167
167
|
"lock-structure"
|
|
168
|
-
]))]), e.field.max_count !== e.min_count && !e.lockStructure ? (B(),
|
|
168
|
+
]))]), e.field.max_count !== e.min_count && !e.lockStructure ? (B(), j("div", ze, [F(s, {
|
|
169
169
|
onClick: e.copyFormItem,
|
|
170
170
|
size: "small",
|
|
171
171
|
type: "link",
|
|
172
172
|
disabled: e.field.max_count && e.listLength >= e.field.max_count
|
|
173
173
|
}, {
|
|
174
|
-
icon: J(() => [
|
|
174
|
+
icon: J(() => [F(o)]),
|
|
175
175
|
_: 1
|
|
176
|
-
}, 8, ["onClick", "disabled"]),
|
|
176
|
+
}, 8, ["onClick", "disabled"]), F(s, {
|
|
177
177
|
onClick: e.removeFormItem,
|
|
178
178
|
size: "small",
|
|
179
179
|
type: "link",
|
|
180
180
|
danger: "",
|
|
181
181
|
disabled: e.listLength <= e.min_count
|
|
182
182
|
}, {
|
|
183
|
-
icon: J(() => [
|
|
183
|
+
icon: J(() => [F(c)]),
|
|
184
184
|
_: 1
|
|
185
|
-
}, 8, ["onClick", "disabled"])])) :
|
|
185
|
+
}, 8, ["onClick", "disabled"])])) : A("", !0)]);
|
|
186
186
|
}
|
|
187
|
-
var
|
|
187
|
+
var Ve = /*#__PURE__*/ r(Ie, [["render", Be], ["__scopeId", "data-v-ac57aef6"]]), He = { key: 1 }, Ue = /*#__PURE__*/ r(/* @__PURE__ */ I({
|
|
188
188
|
__name: "TableCell",
|
|
189
189
|
props: {
|
|
190
190
|
field: {
|
|
@@ -236,18 +236,18 @@ var Ie = /*#__PURE__*/ n(je, [["render", Fe], ["__scopeId", "data-v-ac57aef6"]])
|
|
|
236
236
|
r("update_model", e);
|
|
237
237
|
}, o = (e) => {
|
|
238
238
|
r("update_name2", e);
|
|
239
|
-
}, s =
|
|
239
|
+
}, s = O(() => i.value && !n.field.disabled && n.field.type !== "dynamicvaluefield");
|
|
240
240
|
return (t, n) => {
|
|
241
241
|
let r = W("a-form");
|
|
242
|
-
return B(),
|
|
242
|
+
return B(), k(r, {
|
|
243
243
|
model: e.model,
|
|
244
244
|
layout: "inline",
|
|
245
245
|
class: "table-cell-form"
|
|
246
246
|
}, {
|
|
247
|
-
default: J(() => [
|
|
247
|
+
default: J(() => [Te(M("div", { class: ve(["field-cell-item", {
|
|
248
248
|
editable: s.value,
|
|
249
249
|
"item-required": e.has_reqrired
|
|
250
|
-
}]) }, [e.field.type === "dynamicvaluefield" ? (B(),
|
|
250
|
+
}]) }, [e.field.type === "dynamicvaluefield" ? (B(), j("span", He, K(e.model[e.field.name]), 1)) : (B(), k(Qt, {
|
|
251
251
|
is_show_label: !1,
|
|
252
252
|
value: e.model[e.field.name],
|
|
253
253
|
"onUpdate:value": n[0] ||= (t) => e.model[e.field.name] = t,
|
|
@@ -284,12 +284,12 @@ var Ie = /*#__PURE__*/ n(je, [["render", Fe], ["__scopeId", "data-v-ac57aef6"]])
|
|
|
284
284
|
"base-key-path",
|
|
285
285
|
"worker-host-functions",
|
|
286
286
|
"is_form_design"
|
|
287
|
-
]))], 2), [[
|
|
287
|
+
]))], 2), [[we, i.value]])]),
|
|
288
288
|
_: 1
|
|
289
289
|
}, 8, ["model"]);
|
|
290
290
|
};
|
|
291
291
|
}
|
|
292
|
-
}), [["__scopeId", "data-v-00188241"]]),
|
|
292
|
+
}), [["__scopeId", "data-v-00188241"]]), We = { key: 0 }, Ge = { key: 1 }, Ke = /* @__PURE__ */ I({
|
|
293
293
|
__name: "TableSummary",
|
|
294
294
|
props: {
|
|
295
295
|
summaryParams: {
|
|
@@ -302,7 +302,7 @@ var Ie = /*#__PURE__*/ n(je, [["render", Fe], ["__scopeId", "data-v-ac57aef6"]])
|
|
|
302
302
|
}
|
|
303
303
|
},
|
|
304
304
|
setup(e) {
|
|
305
|
-
let t = e, n =
|
|
305
|
+
let t = e, n = O(() => {
|
|
306
306
|
let e = 0;
|
|
307
307
|
for (let n of t.tableDataSource) {
|
|
308
308
|
let r = n[t.summaryParams.column.dataIndex];
|
|
@@ -325,19 +325,19 @@ var Ie = /*#__PURE__*/ n(je, [["render", Fe], ["__scopeId", "data-v-ac57aef6"]])
|
|
|
325
325
|
return parseFloat((e + t).toFixed(n));
|
|
326
326
|
}
|
|
327
327
|
let o = (e, t) => (typeof t == "string" && (e.addonAfter && (t = r(t, e.addonAfter, "")), e.addonBefore && (t = i(t, e.addonBefore, "")), t = parseFloat(t)), t);
|
|
328
|
-
return (t, r) => (B(),
|
|
329
|
-
e.summaryParams?.column?.field?.addonBefore ? (B(),
|
|
330
|
-
|
|
331
|
-
e.summaryParams?.column?.field?.addonAfter ? (B(),
|
|
328
|
+
return (t, r) => (B(), j(D, null, [
|
|
329
|
+
e.summaryParams?.column?.field?.addonBefore ? (B(), j("span", We, K(e.summaryParams.column.field.addonBefore), 1)) : A("", !0),
|
|
330
|
+
P(" " + K(n.value) + " ", 1),
|
|
331
|
+
e.summaryParams?.column?.field?.addonAfter ? (B(), j("span", Ge, K(e.summaryParams.column.field.addonAfter), 1)) : A("", !0)
|
|
332
332
|
], 64));
|
|
333
333
|
}
|
|
334
|
-
}), X = (e) => e.valueKey || "id",
|
|
334
|
+
}), X = (e) => e.valueKey || "id", qe = (e) => e.labelKey || "name", Je = (e) => {
|
|
335
335
|
let t = [], n = e.labelKeyList || [];
|
|
336
|
-
return n.length > 0 && e.labelKeyType !== 1 ? t.push(X(e), ...n) : t.push(X(e),
|
|
337
|
-
},
|
|
336
|
+
return n.length > 0 && e.labelKeyType !== 1 ? t.push(X(e), ...n) : t.push(X(e), qe(e)), e.extendedFields && e.extendedFields.length > 0 && t.push(...e.extendedFields), [...new Set(t)];
|
|
337
|
+
}, Ye = (e) => {
|
|
338
338
|
let t = e.labelKeyList || [];
|
|
339
|
-
return t.length > 0 && e.labelKeyType !== 1 ? [...t] : [
|
|
340
|
-
},
|
|
339
|
+
return t.length > 0 && e.labelKeyType !== 1 ? [...t] : [qe(e)];
|
|
340
|
+
}, Xe = (e, t, n) => {
|
|
341
341
|
if (n.operator === "not_blank_not_null") t.push({
|
|
342
342
|
field_name: n.field_name,
|
|
343
343
|
operator: n.operator,
|
|
@@ -347,24 +347,24 @@ var Ie = /*#__PURE__*/ n(je, [["render", Fe], ["__scopeId", "data-v-ac57aef6"]])
|
|
|
347
347
|
});
|
|
348
348
|
else if (e instanceof Array) {
|
|
349
349
|
let [r] = e;
|
|
350
|
-
|
|
350
|
+
b(r) && t.push({
|
|
351
351
|
field_name: n.field_name,
|
|
352
352
|
operator: n.operator,
|
|
353
|
-
value:
|
|
353
|
+
value: re(e, n.class_name),
|
|
354
354
|
format: n.format,
|
|
355
355
|
class_name: n.class_name
|
|
356
356
|
});
|
|
357
|
-
} else if (
|
|
357
|
+
} else if (b(e)) {
|
|
358
358
|
let r = e;
|
|
359
359
|
(n.operator === "in" || n.operator === "notin") && (e.includes("[") ? r = JSON.parse(e) : e.includes(",") && (r = e.split(",")), n.class_name === "int" && (r = r.map(Number))), t.push({
|
|
360
360
|
field_name: n.field_name,
|
|
361
361
|
operator: n.operator,
|
|
362
|
-
value:
|
|
362
|
+
value: re(r instanceof Array ? r : [r], n.class_name),
|
|
363
363
|
format: n.format,
|
|
364
364
|
class_name: n.class_name
|
|
365
365
|
});
|
|
366
366
|
}
|
|
367
|
-
},
|
|
367
|
+
}, Ze = (e, t, n) => n && Object.prototype.hasOwnProperty.call(n, e) && n[e] !== void 0 && n[e] !== null ? {
|
|
368
368
|
found: !0,
|
|
369
369
|
value: n[e]
|
|
370
370
|
} : t && Object.prototype.hasOwnProperty.call(t, e) ? {
|
|
@@ -373,7 +373,7 @@ var Ie = /*#__PURE__*/ n(je, [["render", Fe], ["__scopeId", "data-v-ac57aef6"]])
|
|
|
373
373
|
} : {
|
|
374
374
|
found: !1,
|
|
375
375
|
value: void 0
|
|
376
|
-
},
|
|
376
|
+
}, Qe = (t) => {
|
|
377
377
|
let n = t.required_condition, r = {};
|
|
378
378
|
if (n) {
|
|
379
379
|
let t = e();
|
|
@@ -383,7 +383,7 @@ var Ie = /*#__PURE__*/ n(je, [["render", Fe], ["__scopeId", "data-v-ac57aef6"]])
|
|
|
383
383
|
});
|
|
384
384
|
}
|
|
385
385
|
return r;
|
|
386
|
-
},
|
|
386
|
+
}, $e = (e, t, n, r, i) => {
|
|
387
387
|
let a = [], o = [[{
|
|
388
388
|
searchType: 3,
|
|
389
389
|
field_name: "is_active",
|
|
@@ -396,24 +396,24 @@ var Ie = /*#__PURE__*/ n(je, [["render", Fe], ["__scopeId", "data-v-ac57aef6"]])
|
|
|
396
396
|
let o = [];
|
|
397
397
|
e.forEach((e) => {
|
|
398
398
|
if (e.searchType === 1) {
|
|
399
|
-
let r =
|
|
400
|
-
r.found &&
|
|
399
|
+
let r = Ze(e.select_name, t, n);
|
|
400
|
+
r.found && Xe(r.value, o, e);
|
|
401
401
|
} else e.searchType === 2 ? Object.keys(t).forEach((n) => {
|
|
402
|
-
e.select_name == n &&
|
|
403
|
-
}) : e.searchType === 3 ?
|
|
402
|
+
e.select_name == n && Xe(t[n], o, e);
|
|
403
|
+
}) : e.searchType === 3 ? Xe(e.value, o, e) : e.searchType === 4 ? Xe(E(e.select_name, r, ["formModel", ...i]), o, e) : Xe(e.value, o, e);
|
|
404
404
|
}), a.push(o);
|
|
405
405
|
}), a;
|
|
406
|
-
},
|
|
406
|
+
}, et = (e, t, n, r, i) => {
|
|
407
407
|
let a = {};
|
|
408
408
|
return e.simpleSearchConditions && e.simpleSearchConditions.forEach((e) => {
|
|
409
409
|
if (e.searchType === 1) {
|
|
410
|
-
let r =
|
|
410
|
+
let r = Ze(e.select_name, t, n);
|
|
411
411
|
r.found && (a[e.field_name] = r.value);
|
|
412
412
|
} else e.searchType === 2 ? Object.keys(t).forEach((n) => {
|
|
413
413
|
e.select_name == n && (a[e.field_name] = t[n]);
|
|
414
|
-
}) : e.searchType === 3 ? a[e.field_name] = e.value : e.searchType === 4 && (a[e.field_name] =
|
|
414
|
+
}) : e.searchType === 3 ? a[e.field_name] = e.value : e.searchType === 4 && (a[e.field_name] = E(e.select_name, r, ["formModel", ...i]));
|
|
415
415
|
}), a;
|
|
416
|
-
},
|
|
416
|
+
}, tt = (e, t, n, r, i) => {
|
|
417
417
|
let a = {
|
|
418
418
|
current: 1,
|
|
419
419
|
pageSize: 200,
|
|
@@ -421,26 +421,26 @@ var Ie = /*#__PURE__*/ n(je, [["render", Fe], ["__scopeId", "data-v-ac57aef6"]])
|
|
|
421
421
|
request_source: "strict",
|
|
422
422
|
is_active: !0,
|
|
423
423
|
...e.init_model || {},
|
|
424
|
-
column_fields:
|
|
425
|
-
sort_fields: e.init_model?.sort_fields ||
|
|
424
|
+
column_fields: Je(e),
|
|
425
|
+
sort_fields: e.init_model?.sort_fields || Ye(e),
|
|
426
426
|
conditions: [],
|
|
427
427
|
simpleSearchParams: {}
|
|
428
|
-
}, o =
|
|
428
|
+
}, o = Qe(e);
|
|
429
429
|
if (e.queryType === "simple") {
|
|
430
|
-
let s =
|
|
430
|
+
let s = et(e, t, n, r, i), c = {
|
|
431
431
|
...a,
|
|
432
432
|
...s,
|
|
433
433
|
required_condition: o
|
|
434
434
|
};
|
|
435
435
|
return delete c.conditions, delete c.simpleSearchParams, c;
|
|
436
436
|
}
|
|
437
|
-
let s =
|
|
437
|
+
let s = $e(e, t, n, r, i), c = {
|
|
438
438
|
...a,
|
|
439
439
|
conditions: s,
|
|
440
440
|
required_condition: o
|
|
441
441
|
};
|
|
442
442
|
return delete c.simpleSearchParams, c;
|
|
443
|
-
},
|
|
443
|
+
}, nt = (e, t, n) => {
|
|
444
444
|
let r = n.every((e) => typeof e == "number" || typeof e == "string" && e.trim() !== "" && !isNaN(Number(e))) ? "int" : "str";
|
|
445
445
|
return t.queryType === "simple" ? e[X(t)] = n.length > 0 ? n.join(",") : "" : (e.conditions && e.conditions.length > 0 || (e.conditions = [[]]), e.conditions[0].push({
|
|
446
446
|
class_name: r,
|
|
@@ -449,10 +449,10 @@ var Ie = /*#__PURE__*/ n(je, [["render", Fe], ["__scopeId", "data-v-ac57aef6"]])
|
|
|
449
449
|
format: "remote",
|
|
450
450
|
field_name: X(t)
|
|
451
451
|
})), e;
|
|
452
|
-
},
|
|
452
|
+
}, rt = (e, t) => {
|
|
453
453
|
let n = (e) => X(t) === "id" ? isNaN(Number(e)) ? e : Number(e) : e;
|
|
454
454
|
return t.mode === "default" || !t.mode ? e || e === 0 ? [n(e)] : [] : typeof e == "string" ? e.split(",").map(n) : e instanceof Array ? e.map(n) : e == null ? [] : [n(e)];
|
|
455
|
-
},
|
|
455
|
+
}, it = (e, t) => {
|
|
456
456
|
if (e.labelKeyList && e.labelKeyList.length > 0 && e.labelKeyType !== 1) {
|
|
457
457
|
let n = [];
|
|
458
458
|
for (let r of e.labelKeyList) {
|
|
@@ -461,15 +461,15 @@ var Ie = /*#__PURE__*/ n(je, [["render", Fe], ["__scopeId", "data-v-ac57aef6"]])
|
|
|
461
461
|
}
|
|
462
462
|
return n.join(e.labelSpace || "-");
|
|
463
463
|
}
|
|
464
|
-
let n = t[
|
|
464
|
+
let n = t[qe(e)];
|
|
465
465
|
return n == null ? "" : String(n);
|
|
466
466
|
};
|
|
467
|
-
async function
|
|
468
|
-
let { field:
|
|
469
|
-
if (!
|
|
467
|
+
async function at(e) {
|
|
468
|
+
let { field: t, targets: r, baseKeyPath: i, context: a } = e;
|
|
469
|
+
if (!t.postUrl || !r || r.length === 0) return {};
|
|
470
470
|
let o = /* @__PURE__ */ new Map();
|
|
471
471
|
for (let e of r) {
|
|
472
|
-
let
|
|
472
|
+
let n = [...i, e.rowIndex], r = tt(t, e.row || {}, {}, a, n), s = rt(e.row?.[t.name], t);
|
|
473
473
|
if (s.length === 0) continue;
|
|
474
474
|
let c = JSON.stringify(r);
|
|
475
475
|
o.has(c) || o.set(c, {
|
|
@@ -486,34 +486,34 @@ async function et(e) {
|
|
|
486
486
|
if (r.length !== 0) {
|
|
487
487
|
for (let i = 0; i < r.length; i += 100) {
|
|
488
488
|
let a = r.slice(i, i + 100), o = JSON.parse(JSON.stringify(e.params));
|
|
489
|
-
|
|
489
|
+
nt(o, t, a);
|
|
490
490
|
let s = [];
|
|
491
491
|
try {
|
|
492
|
-
s = (await
|
|
492
|
+
s = (await n(o, t.postUrl, !1, { skip_error: !0 }))?.data || [];
|
|
493
493
|
} catch (e) {
|
|
494
|
-
console.error("resolveRemoteSelectProLabels fetch error:",
|
|
494
|
+
console.error("resolveRemoteSelectProLabels fetch error:", t.name, e);
|
|
495
495
|
}
|
|
496
496
|
for (let e of s) {
|
|
497
|
-
let
|
|
497
|
+
let n = e[X(t)], r = String(n);
|
|
498
498
|
c.has(r) || c.set(r, {
|
|
499
|
-
label:
|
|
499
|
+
label: it(t, e),
|
|
500
500
|
option: e
|
|
501
501
|
});
|
|
502
502
|
}
|
|
503
503
|
}
|
|
504
|
-
for (let
|
|
505
|
-
let e =
|
|
504
|
+
for (let n of e.items) {
|
|
505
|
+
let e = n.values.map((e) => c.get(String(e))).filter((e) => !!e);
|
|
506
506
|
if (e.length === 0) {
|
|
507
|
-
s[
|
|
507
|
+
s[n.rowIndex] = null;
|
|
508
508
|
continue;
|
|
509
509
|
}
|
|
510
|
-
if (
|
|
511
|
-
let
|
|
512
|
-
s[
|
|
513
|
-
label:
|
|
514
|
-
option:
|
|
510
|
+
if (t.mode === "default" || !t.mode) {
|
|
511
|
+
let t = e[0];
|
|
512
|
+
s[n.rowIndex] = {
|
|
513
|
+
label: t.label,
|
|
514
|
+
option: t.option
|
|
515
515
|
};
|
|
516
|
-
} else s[
|
|
516
|
+
} else s[n.rowIndex] = {
|
|
517
517
|
label: e.map((e) => e.label),
|
|
518
518
|
option: e.map((e) => e.option)
|
|
519
519
|
};
|
|
@@ -524,16 +524,16 @@ async function et(e) {
|
|
|
524
524
|
}
|
|
525
525
|
//#endregion
|
|
526
526
|
//#region src/components/FormRender/FormTemplate/FormTemplateTable.vue?vue&type=script&setup=true&lang.ts
|
|
527
|
-
var
|
|
527
|
+
var ot = {
|
|
528
528
|
key: 0,
|
|
529
529
|
class: "required-star"
|
|
530
|
-
},
|
|
530
|
+
}, st = {
|
|
531
531
|
key: 0,
|
|
532
532
|
class: "cell-item action-cell"
|
|
533
|
-
},
|
|
533
|
+
}, ct = {
|
|
534
534
|
key: 1,
|
|
535
535
|
class: "cell-item"
|
|
536
|
-
},
|
|
536
|
+
}, lt = /*#__PURE__*/ r(/* @__PURE__ */ I({
|
|
537
537
|
__name: "FormTemplateTable",
|
|
538
538
|
props: {
|
|
539
539
|
value: {},
|
|
@@ -561,20 +561,20 @@ var tt = {
|
|
|
561
561
|
showTotal: (e) => `共 ${e} 条记录`,
|
|
562
562
|
pageSize: 5,
|
|
563
563
|
current: 1
|
|
564
|
-
}), r = e, i = t,
|
|
564
|
+
}), r = e, i = t, o = V({ ...r.field.form?.rules || {} }), s = H([]), c = H([]), l = H([]), u = (() => {
|
|
565
565
|
let e = /* @__PURE__ */ new Uint8Array(16);
|
|
566
566
|
return window.crypto.getRandomValues(e), Array.from(e, (e) => e.toString(16).padStart(2, "0")).join("");
|
|
567
567
|
})(), d = H([]), f = () => {
|
|
568
568
|
let e = [], t = [];
|
|
569
569
|
(r.value || []).forEach((n, r) => {
|
|
570
570
|
l.value[r] || (l.value[r] = {});
|
|
571
|
-
let i = l.value[r],
|
|
572
|
-
Object.keys(
|
|
573
|
-
e in n && !i[e] && (
|
|
571
|
+
let i = l.value[r], a = {};
|
|
572
|
+
Object.keys(o).forEach((e) => {
|
|
573
|
+
e in n && !i[e] && (a[e] = o[e]);
|
|
574
574
|
});
|
|
575
|
-
let { validate: s, validateInfos: c } =
|
|
575
|
+
let { validate: s, validateInfos: c } = ae(n, a);
|
|
576
576
|
e[r] = c, t[r] = s;
|
|
577
|
-
}),
|
|
577
|
+
}), s.value = e, c.value = t, r.nestValidate && (r.nestValidate[u] = async () => {
|
|
578
578
|
let e = t.map((e) => e());
|
|
579
579
|
return Promise.all(e);
|
|
580
580
|
});
|
|
@@ -587,25 +587,25 @@ var tt = {
|
|
|
587
587
|
deep: !0,
|
|
588
588
|
immediate: !0
|
|
589
589
|
}), q(() => r.field, () => {
|
|
590
|
-
|
|
590
|
+
_();
|
|
591
591
|
}, { deep: !0 }), q(() => r.formModel, () => {
|
|
592
|
-
|
|
592
|
+
_();
|
|
593
593
|
}, { deep: !0 }), q(() => r.context, () => {
|
|
594
|
-
|
|
594
|
+
_();
|
|
595
595
|
}, { deep: !0 }), z(() => {
|
|
596
|
-
|
|
597
|
-
}),
|
|
596
|
+
_(), y();
|
|
597
|
+
}), be(() => {
|
|
598
598
|
r.nestValidate && delete r.nestValidate[u], y.cancel(), i("labels_resolved");
|
|
599
599
|
});
|
|
600
|
-
let
|
|
600
|
+
let m = O(() => {
|
|
601
601
|
let e = 0;
|
|
602
602
|
return d.value.forEach((t) => {
|
|
603
603
|
e += t._width || 150;
|
|
604
604
|
}), e;
|
|
605
|
-
}),
|
|
605
|
+
}), h = O(() => (r.value || []).map((e, t) => ({
|
|
606
606
|
...e,
|
|
607
607
|
_key: t
|
|
608
|
-
}))),
|
|
608
|
+
}))), g = (e) => {
|
|
609
609
|
if (r.field?.form?.rules) {
|
|
610
610
|
let t = r.field?.form?.rules[e];
|
|
611
611
|
if (t) {
|
|
@@ -613,7 +613,7 @@ var tt = {
|
|
|
613
613
|
}
|
|
614
614
|
}
|
|
615
615
|
return !1;
|
|
616
|
-
},
|
|
616
|
+
}, _ = async () => {
|
|
617
617
|
let e = [], t = {};
|
|
618
618
|
if (e.push({
|
|
619
619
|
title: "序号",
|
|
@@ -626,7 +626,7 @@ var tt = {
|
|
|
626
626
|
t[n.name] = !0;
|
|
627
627
|
let r = n.is_table_auto_width;
|
|
628
628
|
(r == null || r === "") && (r = !0);
|
|
629
|
-
let i =
|
|
629
|
+
let i = g(n.name), a = {
|
|
630
630
|
title: n.label,
|
|
631
631
|
dataIndex: n.name,
|
|
632
632
|
key: n.name,
|
|
@@ -651,7 +651,7 @@ var tt = {
|
|
|
651
651
|
}), r.field.dynamicTitle?.enable) {
|
|
652
652
|
let t = r.field.dynamicTitle.code;
|
|
653
653
|
try {
|
|
654
|
-
let n = await
|
|
654
|
+
let n = await ie(t, {
|
|
655
655
|
innerModel: r.innerModel,
|
|
656
656
|
globalInnerModel: r.globalInnerModel,
|
|
657
657
|
field: r.field,
|
|
@@ -667,18 +667,18 @@ var tt = {
|
|
|
667
667
|
}
|
|
668
668
|
}
|
|
669
669
|
d.value = e;
|
|
670
|
-
},
|
|
670
|
+
}, ee = (e) => {
|
|
671
671
|
l.value.splice(e, 1), i("remove", e);
|
|
672
|
-
},
|
|
673
|
-
l.value.splice(e + 1, 0,
|
|
674
|
-
},
|
|
672
|
+
}, v = (e) => {
|
|
673
|
+
l.value.splice(e + 1, 0, je(l.value[e] || {})), i("copy", e);
|
|
674
|
+
}, te = () => {
|
|
675
675
|
let e = [];
|
|
676
676
|
return r.field?.form?.dynamicFieldList?.forEach((t) => {
|
|
677
677
|
t.children instanceof Array && t.children.forEach((t) => {
|
|
678
678
|
t.type === "remoteselectpro" && t.postUrl && !t.is_table_hide_column && e.push(t);
|
|
679
679
|
});
|
|
680
680
|
}), e;
|
|
681
|
-
},
|
|
681
|
+
}, ne = (e, t, n) => {
|
|
682
682
|
if (!e) return !1;
|
|
683
683
|
let i = e[t.name];
|
|
684
684
|
if (!(i != null && i !== "" && !(i instanceof Array && i.length === 0))) return !1;
|
|
@@ -686,20 +686,20 @@ var tt = {
|
|
|
686
686
|
if (a == null || a === "" || a instanceof Array && a.length === 0) return !0;
|
|
687
687
|
let o = r.innerModel?.[r.field.name]?.[n];
|
|
688
688
|
return !o || o[t.name] === void 0 || o[t.name] === null;
|
|
689
|
-
}, y =
|
|
689
|
+
}, y = Me(async () => {
|
|
690
690
|
if (!r.is_form_design) try {
|
|
691
|
-
let e =
|
|
691
|
+
let e = te();
|
|
692
692
|
if (e.length === 0 || !r.value || r.value.length === 0) return;
|
|
693
693
|
let t = r.value;
|
|
694
694
|
for (let n of e) {
|
|
695
695
|
let e = [];
|
|
696
696
|
if (t.forEach((t, r) => {
|
|
697
|
-
|
|
697
|
+
ne(t, n, r) && e.push({
|
|
698
698
|
rowIndex: r,
|
|
699
699
|
row: t
|
|
700
700
|
});
|
|
701
701
|
}), e.length === 0) continue;
|
|
702
|
-
let i = await
|
|
702
|
+
let i = await at({
|
|
703
703
|
field: n,
|
|
704
704
|
targets: e,
|
|
705
705
|
baseKeyPath: [...r.baseKeyPath || [], r.field.name],
|
|
@@ -726,64 +726,64 @@ var tt = {
|
|
|
726
726
|
], () => {
|
|
727
727
|
y();
|
|
728
728
|
}, { deep: !0 });
|
|
729
|
-
let
|
|
729
|
+
let b = O(() => {
|
|
730
730
|
if (r.innerModel) {
|
|
731
731
|
let e = r.innerModel[r.field.name] || [];
|
|
732
732
|
return (r.value || []).map((t, n) => e[n] || {});
|
|
733
733
|
}
|
|
734
734
|
return [];
|
|
735
|
-
}),
|
|
735
|
+
}), x = O(() => {
|
|
736
736
|
let e = [], t = 0;
|
|
737
737
|
for (let n of d.value) n.is_summary && e.push({ index: t }), t++;
|
|
738
738
|
return e;
|
|
739
739
|
});
|
|
740
740
|
return (e, t) => {
|
|
741
|
-
let r = W("CopyOutlined"), i = W("a-button"),
|
|
742
|
-
return B(),
|
|
741
|
+
let r = W("CopyOutlined"), i = W("a-button"), o = W("DeleteOutlined"), c = W("s-table-summary-cell"), l = W("s-table-summary-row"), u = W("s-table");
|
|
742
|
+
return B(), k(a, {
|
|
743
743
|
"dynamic-title": e.field.dynamicTitle,
|
|
744
744
|
"onUpdate:dynamicTitle": t[1] ||= (t) => e.field.dynamicTitle = t
|
|
745
745
|
}, {
|
|
746
|
-
default: J(() => [(B(),
|
|
747
|
-
dataSource:
|
|
746
|
+
default: J(() => [(B(), k(u, {
|
|
747
|
+
dataSource: h.value,
|
|
748
748
|
columns: d.value,
|
|
749
749
|
autoRowHeight: !0,
|
|
750
750
|
bordered: !0,
|
|
751
751
|
stripe: "",
|
|
752
752
|
"summary-fixed": "",
|
|
753
|
-
scroll: { x:
|
|
753
|
+
scroll: { x: m.value },
|
|
754
754
|
size: "small",
|
|
755
755
|
"row-key": "_key",
|
|
756
756
|
key: d.value.length,
|
|
757
757
|
pagination: n.value,
|
|
758
758
|
"onUpdate:pagination": t[0] ||= (e) => n.value = e,
|
|
759
759
|
rangeSelection: !1
|
|
760
|
-
},
|
|
761
|
-
headerCell: J(({ column: e }) => [
|
|
762
|
-
bodyCell: J(({ column: t, record: n }) => [t.key === "action" ? (B(),
|
|
763
|
-
onClick: (e) =>
|
|
760
|
+
}, N({
|
|
761
|
+
headerCell: J(({ column: e }) => [M("span", null, K(e.title), 1), e.has_reqrired ? (B(), j("span", ot, " * ")) : A("", !0)]),
|
|
762
|
+
bodyCell: J(({ column: t, record: n }) => [t.key === "action" ? (B(), j(D, { key: 0 }, [e.lockStructure ? A("", !0) : (B(), j("div", st, [F(i, {
|
|
763
|
+
onClick: (e) => v(n._key),
|
|
764
764
|
size: "small",
|
|
765
765
|
type: "link",
|
|
766
766
|
disabled: e.field.max_count && e.value.length >= e.field.max_count
|
|
767
767
|
}, {
|
|
768
|
-
icon: J(() => [
|
|
768
|
+
icon: J(() => [F(r)]),
|
|
769
769
|
_: 2
|
|
770
|
-
}, 1032, ["onClick", "disabled"]),
|
|
771
|
-
onClick: (e) =>
|
|
770
|
+
}, 1032, ["onClick", "disabled"]), F(i, {
|
|
771
|
+
onClick: (e) => ee(n._key),
|
|
772
772
|
size: "small",
|
|
773
773
|
type: "link",
|
|
774
774
|
danger: "",
|
|
775
775
|
disabled: e.value.length <= e.min_count
|
|
776
776
|
}, {
|
|
777
|
-
icon: J(() => [
|
|
777
|
+
icon: J(() => [F(o)]),
|
|
778
778
|
_: 2
|
|
779
|
-
}, 1032, ["onClick", "disabled"])]))], 64)) : t.key === "index" ? (B(),
|
|
779
|
+
}, 1032, ["onClick", "disabled"])]))], 64)) : t.key === "index" ? (B(), j("div", ct, K(n._key + 1), 1)) : t.field ? (B(), k(Ue, {
|
|
780
780
|
key: `${n._key}_${t.dataIndex}`,
|
|
781
781
|
field: t.field,
|
|
782
782
|
model: e.value[n._key],
|
|
783
|
-
validateInfos:
|
|
783
|
+
validateInfos: s.value[n._key] || {},
|
|
784
784
|
options: e.field.form?.options || {},
|
|
785
785
|
context: e.context,
|
|
786
|
-
innerModel:
|
|
786
|
+
innerModel: b.value[n._key],
|
|
787
787
|
globalInnerModel: e.globalInnerModel,
|
|
788
788
|
nestValidate: e.nestValidate,
|
|
789
789
|
baseKeyPath: [
|
|
@@ -809,21 +809,21 @@ var tt = {
|
|
|
809
809
|
"is_form_design",
|
|
810
810
|
"has_reqrired",
|
|
811
811
|
"onUpdate_model"
|
|
812
|
-
])) :
|
|
812
|
+
])) : A("", !0)]),
|
|
813
813
|
_: 2
|
|
814
|
-
}, [
|
|
814
|
+
}, [x.value.length > 0 ? {
|
|
815
815
|
name: "summary",
|
|
816
|
-
fn: J(() => [
|
|
817
|
-
default: J(() => [
|
|
818
|
-
default: J(() => t[2] ||= [
|
|
816
|
+
fn: J(() => [F(l, null, {
|
|
817
|
+
default: J(() => [F(c, { index: 0 }, {
|
|
818
|
+
default: J(() => t[2] ||= [P("合计")]),
|
|
819
819
|
_: 1
|
|
820
|
-
}), (B(!0),
|
|
820
|
+
}), (B(!0), j(D, null, U(x.value, (e) => (B(), k(c, {
|
|
821
821
|
key: e.index,
|
|
822
822
|
index: e.index
|
|
823
823
|
}, {
|
|
824
|
-
default: J((e) => [
|
|
824
|
+
default: J((e) => [F(Ke, {
|
|
825
825
|
"summary-params": e,
|
|
826
|
-
tableDataSource:
|
|
826
|
+
tableDataSource: h.value
|
|
827
827
|
}, null, 8, ["summary-params", "tableDataSource"])]),
|
|
828
828
|
_: 2
|
|
829
829
|
}, 1032, ["index"]))), 128))]),
|
|
@@ -841,39 +841,39 @@ var tt = {
|
|
|
841
841
|
};
|
|
842
842
|
}
|
|
843
843
|
}), [["__scopeId", "data-v-8fe39450"]]), Z = /* @__PURE__ */ new Set();
|
|
844
|
-
function
|
|
844
|
+
function ut(e, t = []) {
|
|
845
845
|
return [...t, e.name || e.code || "field"].join("__");
|
|
846
846
|
}
|
|
847
|
-
function
|
|
847
|
+
function dt(e) {
|
|
848
848
|
return Z.has(e);
|
|
849
849
|
}
|
|
850
|
-
function
|
|
850
|
+
function ft(e) {
|
|
851
851
|
return e.some((e) => Z.has(e)) ? !1 : (e.forEach((e) => Z.add(e)), !0);
|
|
852
852
|
}
|
|
853
|
-
function
|
|
853
|
+
function pt(e) {
|
|
854
854
|
e.forEach((e) => Z.delete(e));
|
|
855
855
|
}
|
|
856
|
-
async function
|
|
856
|
+
async function mt(e, t) {
|
|
857
857
|
let r = e.serialConfig || {};
|
|
858
858
|
try {
|
|
859
|
-
let e = await
|
|
860
|
-
org_id:
|
|
859
|
+
let e = await n({
|
|
860
|
+
org_id: x(),
|
|
861
861
|
mode: r.mode || "M1",
|
|
862
862
|
kwargs: JSON.stringify(r),
|
|
863
|
-
count:
|
|
863
|
+
count: t
|
|
864
864
|
}, "/approve/get_approve_serial_number", !1), i = (Array.isArray(e) ? e : [e]).filter((e) => e != null && e !== "");
|
|
865
|
-
return i.length ===
|
|
865
|
+
return i.length === t ? { codes: i } : { error: "流水号批量分配返回数量不符" };
|
|
866
866
|
} catch (e) {
|
|
867
867
|
return console.error(e), { error: e?.message || "流水号批量分配失败" };
|
|
868
868
|
}
|
|
869
869
|
}
|
|
870
|
-
async function
|
|
870
|
+
async function ht(e) {
|
|
871
871
|
try {
|
|
872
|
-
let
|
|
873
|
-
return { value: await
|
|
874
|
-
org_id:
|
|
875
|
-
mode:
|
|
876
|
-
kwargs: JSON.stringify(
|
|
872
|
+
let t = e.serialConfig || {};
|
|
873
|
+
return { value: await n({
|
|
874
|
+
org_id: x(),
|
|
875
|
+
mode: t.mode || "M1",
|
|
876
|
+
kwargs: JSON.stringify(t),
|
|
877
877
|
preview: !0
|
|
878
878
|
}, "/approve/get_approve_serial_number", !1) };
|
|
879
879
|
} catch (e) {
|
|
@@ -883,59 +883,59 @@ async function ut(e) {
|
|
|
883
883
|
};
|
|
884
884
|
}
|
|
885
885
|
}
|
|
886
|
-
async function
|
|
887
|
-
let { field:
|
|
888
|
-
if (
|
|
889
|
-
if (
|
|
890
|
-
let e = i?.[
|
|
886
|
+
async function gt(e) {
|
|
887
|
+
let { field: t, currentValue: r, innerModel: i, globalInnerModel: a, formModel: o, context: s, baseKeyPath: c = [], workerHostFunctions: l = {}, is_form_design: u = !1, lock_structure: d = !1 } = e;
|
|
888
|
+
if (t.watchType === "scoped") {
|
|
889
|
+
if (t.valueType === "single") {
|
|
890
|
+
let e = i?.[t.fieldName];
|
|
891
891
|
if (e === void 0 && r !== void 0) return { value: "" };
|
|
892
|
-
if (
|
|
893
|
-
} else if (
|
|
894
|
-
let e = i?.[
|
|
895
|
-
if (
|
|
896
|
-
let
|
|
897
|
-
for (let r of
|
|
898
|
-
if (
|
|
899
|
-
if (e =
|
|
892
|
+
if (t.valueKey && (e = e?.[t.valueKey]), e !== r) return { value: e };
|
|
893
|
+
} else if (t.valueType === "multiple") {
|
|
894
|
+
let e = i?.[t.fieldName];
|
|
895
|
+
if (t.valueKeyList && t.valueKeyList.length) {
|
|
896
|
+
let n = [];
|
|
897
|
+
for (let r of t.valueKeyList) e?.[r] !== void 0 && n.push(e?.[r]);
|
|
898
|
+
if (n.length === 0 && r !== void 0) return { value: "" };
|
|
899
|
+
if (e = n.join(t.valueSpace || ","), e !== r) return { value: e };
|
|
900
900
|
}
|
|
901
901
|
}
|
|
902
|
-
} else if (
|
|
903
|
-
if (
|
|
904
|
-
let e = a?.[
|
|
905
|
-
if (
|
|
902
|
+
} else if (t.watchType === "global") {
|
|
903
|
+
if (t.valueType === "single") {
|
|
904
|
+
let e = a?.[t.fieldName];
|
|
905
|
+
if (t.valueKey && (e = e?.[t.valueKey]), e === void 0 && r !== void 0) return { value: "" };
|
|
906
906
|
if (e !== r) return { value: e };
|
|
907
|
-
} else if (
|
|
908
|
-
let e = a?.[
|
|
909
|
-
if (
|
|
910
|
-
let
|
|
911
|
-
for (let r of
|
|
912
|
-
if (
|
|
913
|
-
if (e =
|
|
907
|
+
} else if (t.valueType === "multiple") {
|
|
908
|
+
let e = a?.[t.fieldName];
|
|
909
|
+
if (t.valueKeyList && t.valueKeyList.length) {
|
|
910
|
+
let n = [];
|
|
911
|
+
for (let r of t.valueKeyList) e?.[r] && n.push(e?.[r]);
|
|
912
|
+
if (n.length === 0 && r !== void 0) return null;
|
|
913
|
+
if (e = n.join(t.valueSpace || ","), e !== r) return { value: e };
|
|
914
914
|
}
|
|
915
915
|
}
|
|
916
|
-
} else if (
|
|
917
|
-
let e =
|
|
918
|
-
if (
|
|
919
|
-
let
|
|
920
|
-
if (
|
|
921
|
-
if (
|
|
922
|
-
} else if (
|
|
923
|
-
let
|
|
924
|
-
if (
|
|
916
|
+
} else if (t.watchType === "context") {
|
|
917
|
+
let e = E(t.fieldName || "", s, ["formModel", ...c]);
|
|
918
|
+
if (t.valueType === "single") {
|
|
919
|
+
let n = e;
|
|
920
|
+
if (t.valueKey && (n = n?.[t.valueKey]), n === void 0 && r !== void 0) return { value: "" };
|
|
921
|
+
if (n !== r) return { value: n };
|
|
922
|
+
} else if (t.valueType === "multiple") {
|
|
923
|
+
let n = e;
|
|
924
|
+
if (t.valueKeyList && t.valueKeyList.length) {
|
|
925
925
|
let e = [];
|
|
926
|
-
for (let r of
|
|
926
|
+
for (let r of t.valueKeyList) n?.[r] !== void 0 && e.push(n?.[r]);
|
|
927
927
|
if (e.length === 0 && r !== void 0) return { value: "" };
|
|
928
|
-
if (
|
|
928
|
+
if (n = e.join(t.valueSpace || ","), n !== r) return { value: n };
|
|
929
929
|
}
|
|
930
930
|
}
|
|
931
|
-
} else if (
|
|
932
|
-
let e = await
|
|
931
|
+
} else if (t.watchType === "code") try {
|
|
932
|
+
let e = await ie(t.code, {
|
|
933
933
|
innerModel: i,
|
|
934
934
|
globalInnerModel: a,
|
|
935
|
-
field:
|
|
935
|
+
field: t,
|
|
936
936
|
formModel: o,
|
|
937
937
|
context: s,
|
|
938
|
-
keyPath: [...c,
|
|
938
|
+
keyPath: [...c, t.name]
|
|
939
939
|
}, l);
|
|
940
940
|
if (e === void 0 && r !== void 0) return { value: "" };
|
|
941
941
|
if (e !== r) return { value: e };
|
|
@@ -945,21 +945,21 @@ async function dt(e) {
|
|
|
945
945
|
error: e.message
|
|
946
946
|
};
|
|
947
947
|
}
|
|
948
|
-
else if (
|
|
949
|
-
let e =
|
|
948
|
+
else if (t.watchType === "serial") {
|
|
949
|
+
let e = t.serialConfig || {};
|
|
950
950
|
if (d && e.mode === "M5") return null;
|
|
951
|
-
if (u) return await
|
|
951
|
+
if (u) return await ht(t);
|
|
952
952
|
if (r != null && r !== "") return null;
|
|
953
|
-
let i =
|
|
953
|
+
let i = ut(t, c);
|
|
954
954
|
if (Z.has(i)) return null;
|
|
955
955
|
Z.add(i);
|
|
956
956
|
try {
|
|
957
|
-
let
|
|
958
|
-
org_id:
|
|
957
|
+
let t = await n({
|
|
958
|
+
org_id: x(),
|
|
959
959
|
mode: e.mode || "M1",
|
|
960
960
|
kwargs: JSON.stringify(e)
|
|
961
961
|
}, "/approve/get_approve_serial_number", !1);
|
|
962
|
-
if (
|
|
962
|
+
if (t !== r) return { value: t };
|
|
963
963
|
} catch (e) {
|
|
964
964
|
return console.error(e), {
|
|
965
965
|
value: void 0,
|
|
@@ -973,22 +973,22 @@ async function dt(e) {
|
|
|
973
973
|
}
|
|
974
974
|
//#endregion
|
|
975
975
|
//#region src/components/FormRender/addonValue.ts
|
|
976
|
-
var
|
|
977
|
-
if (!
|
|
976
|
+
var _t = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, vt = (e, t) => t && e.endsWith(t) ? e.slice(0, -t.length) : e, yt = (e) => e != null && !(e instanceof Array) && typeof e != "object", bt = (e, t) => {
|
|
977
|
+
if (!yt(t)) return t;
|
|
978
978
|
let n = !!(e?.extraAddonAfter && e?.addonAfter), r = !!(e?.extraAddonBefore && e?.addonBefore);
|
|
979
979
|
if (!n && !r) return t;
|
|
980
980
|
let i = `${t}`;
|
|
981
|
-
n && (i =
|
|
981
|
+
n && (i = vt(i, e.addonAfter)), r && (i = _t(i, e.addonBefore));
|
|
982
982
|
let a = i.trim();
|
|
983
983
|
return a !== "" && !isNaN(Number(a)) ? Number(a) : i;
|
|
984
|
-
},
|
|
985
|
-
let n =
|
|
986
|
-
if (!
|
|
984
|
+
}, xt = (e, t) => {
|
|
985
|
+
let n = bt(e, t);
|
|
986
|
+
if (!yt(n) || n === "") return n;
|
|
987
987
|
let r = !!(e?.extraAddonBefore && e?.addonBefore), i = !!(e?.extraAddonAfter && e?.addonAfter);
|
|
988
988
|
if (!r && !i) return n;
|
|
989
989
|
let a = `${n}`;
|
|
990
990
|
return r && (a = `${e.addonBefore}${a}`), i && (a = `${a}${e.addonAfter}`), a;
|
|
991
|
-
}, Q =
|
|
991
|
+
}, Q = i(), St = { class: "top_btn" }, Ct = /*#__PURE__*/ r(/* @__PURE__ */ I({
|
|
992
992
|
__name: "FormTemplate",
|
|
993
993
|
props: {
|
|
994
994
|
field: {},
|
|
@@ -1011,30 +1011,30 @@ var ft = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, pt = (e, t) =>
|
|
|
1011
1011
|
},
|
|
1012
1012
|
emits: ["update:value"],
|
|
1013
1013
|
setup(e, { emit: t }) {
|
|
1014
|
-
let n = e, r =
|
|
1014
|
+
let n = e, r = ge("FORM_LOCK_STRUCTURE", H(!1)), i = O(() => !!n.lockStructure || !!Se(r)), o = t, s = H(0), c = Fe(), l = [{
|
|
1015
1015
|
label: "添加(add)",
|
|
1016
1016
|
value: "add"
|
|
1017
1017
|
}, {
|
|
1018
1018
|
label: "整体更新(update)",
|
|
1019
1019
|
value: "update"
|
|
1020
|
-
}], u =
|
|
1021
|
-
|
|
1020
|
+
}], u = me(() => import("./ImportExcelModal-muhEYNL4.js")), d = O(() => !!(n.field.sys_btn_list == null || n.field.sys_btn_list.includes("download"))), f = O(() => !!(n.field.sys_btn_list == null || n.field.sys_btn_list.includes("import"))), p = () => {
|
|
1021
|
+
Ee.confirm({
|
|
1022
1022
|
title: "确认清空吗?",
|
|
1023
|
-
icon:
|
|
1023
|
+
icon: F(ke),
|
|
1024
1024
|
content: "清空后将无法恢复",
|
|
1025
1025
|
okText: "确认",
|
|
1026
1026
|
cancelText: "取消",
|
|
1027
1027
|
onOk: () => {
|
|
1028
|
-
|
|
1028
|
+
o("update:value", []);
|
|
1029
1029
|
}
|
|
1030
1030
|
});
|
|
1031
|
-
},
|
|
1031
|
+
}, m = O(() => !!(n.field.sys_btn_list == null || n.field.sys_btn_list.includes("clear"))), h = O(() => !!(n.field.sys_btn_list == null || n.field.sys_btn_list.includes("add"))), g = {}, _ = {}, ee = () => {
|
|
1032
1032
|
let e = [], t = n.field.form?.dynamicFieldList || [];
|
|
1033
1033
|
t.forEach((t) => {
|
|
1034
1034
|
t.children instanceof Array && t.children.forEach((t) => {
|
|
1035
1035
|
if (t.is_table_hide_column || t.type === "dynamicvaluefield") return;
|
|
1036
1036
|
let r = { ...t };
|
|
1037
|
-
t?.name2 && (
|
|
1037
|
+
t?.name2 && (g[t.name] = t?.name2), t.type === "remoteselectpro" && (_[t.name] = t), [
|
|
1038
1038
|
"select",
|
|
1039
1039
|
"radio",
|
|
1040
1040
|
"checkbox",
|
|
@@ -1051,12 +1051,12 @@ var ft = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, pt = (e, t) =>
|
|
|
1051
1051
|
configList: e,
|
|
1052
1052
|
context: n.context,
|
|
1053
1053
|
ok: (e) => {
|
|
1054
|
-
let i = [],
|
|
1054
|
+
let i = [], a = [];
|
|
1055
1055
|
e.forEach((e) => {
|
|
1056
1056
|
let r = (0, Q.cloneDeep)(n.field.form.model || {});
|
|
1057
1057
|
Object.keys(e).forEach((t) => {
|
|
1058
|
-
e[t].error && i.push(
|
|
1059
|
-
let n =
|
|
1058
|
+
e[t].error && i.push(he("li", e[t].error + "(" + e[t].excel_position + ")")), r[t] = e[t].value, g[t] && (r[g[t]] = e[t].raw_value);
|
|
1059
|
+
let n = _[t];
|
|
1060
1060
|
if (n) {
|
|
1061
1061
|
let i = e[t].raw_value;
|
|
1062
1062
|
i != null && i !== "" && (n.mode === "default" || !n.mode) && (r[t + ".label"] = i);
|
|
@@ -1065,19 +1065,19 @@ var ft = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, pt = (e, t) =>
|
|
|
1065
1065
|
e.children instanceof Array && e.children.forEach((e) => {
|
|
1066
1066
|
e.type === "dynamicvaluefield" && delete r[e.name];
|
|
1067
1067
|
});
|
|
1068
|
-
}),
|
|
1069
|
-
}), i.length > 0 ?
|
|
1068
|
+
}), a.push(r);
|
|
1069
|
+
}), i.length > 0 ? Ee.warning({
|
|
1070
1070
|
title: "导入Excel报错, 请改正后再尝试导入",
|
|
1071
|
-
content:
|
|
1072
|
-
icon:
|
|
1073
|
-
}) :
|
|
1071
|
+
content: he("ol", i),
|
|
1072
|
+
icon: F(ke)
|
|
1073
|
+
}) : o("update:value", [...n.value || [], ...a]), r.open = !1;
|
|
1074
1074
|
},
|
|
1075
1075
|
onCancel: () => {
|
|
1076
1076
|
r.open = !1;
|
|
1077
1077
|
}
|
|
1078
1078
|
});
|
|
1079
|
-
|
|
1080
|
-
},
|
|
1079
|
+
fe(r);
|
|
1080
|
+
}, v = H(!1), te = (e) => {
|
|
1081
1081
|
if (n.field?.form?.rules) {
|
|
1082
1082
|
let t = n.field?.form?.rules[e];
|
|
1083
1083
|
if (t) {
|
|
@@ -1085,42 +1085,42 @@ var ft = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, pt = (e, t) =>
|
|
|
1085
1085
|
}
|
|
1086
1086
|
}
|
|
1087
1087
|
return !1;
|
|
1088
|
-
},
|
|
1089
|
-
|
|
1088
|
+
}, ne = () => {
|
|
1089
|
+
v.value = !0;
|
|
1090
1090
|
let e = [], t = [];
|
|
1091
1091
|
(n.field.form?.dynamicFieldList || []).forEach((r) => {
|
|
1092
1092
|
r.children instanceof Array && r.children.forEach((r) => {
|
|
1093
|
-
r.is_hide || r.is_table_hide_column || r.type !== "dynamicvaluefield" && (e.push(
|
|
1093
|
+
r.is_hide || r.is_table_hide_column || r.type !== "dynamicvaluefield" && (e.push(te(r.name) ? { title: [r.label, {
|
|
1094
1094
|
text: "[必填]",
|
|
1095
1095
|
color: "FFFF0000"
|
|
1096
1096
|
}] } : { title: [r.label] }), n.value && n.value.length > 0 ? t.push(n.value[0][r.name] ? n.value[0][r.name].toString() : "") : t.push(""));
|
|
1097
1097
|
});
|
|
1098
|
-
}),
|
|
1098
|
+
}), pe({
|
|
1099
1099
|
data: [t],
|
|
1100
1100
|
autoWidth: !0,
|
|
1101
1101
|
filename: n.field.label || "导入模板",
|
|
1102
1102
|
header: e
|
|
1103
1103
|
}), setTimeout(() => {
|
|
1104
|
-
|
|
1104
|
+
v.value = !1;
|
|
1105
1105
|
}, 1500);
|
|
1106
|
-
}, y =
|
|
1106
|
+
}, y = O(() => n.field.min_count ?? 0), b = O(() => {
|
|
1107
1107
|
if (n.innerModel) {
|
|
1108
1108
|
n.innerModel[n.field.name] || (n.innerModel[n.field.name] = []);
|
|
1109
1109
|
for (let e = 0; e < n.value.length; e++) n.innerModel[n.field.name][e] || (n.innerModel[n.field.name][e] = {});
|
|
1110
1110
|
return n.innerModel[n.field.name];
|
|
1111
1111
|
}
|
|
1112
1112
|
return [];
|
|
1113
|
-
}),
|
|
1113
|
+
}), x = async (e) => {
|
|
1114
1114
|
if (e.code) {
|
|
1115
1115
|
let t;
|
|
1116
1116
|
try {
|
|
1117
|
-
t = await
|
|
1117
|
+
t = await ie(e.code, {
|
|
1118
1118
|
context: n.context,
|
|
1119
1119
|
value: n.value,
|
|
1120
1120
|
keyPath: [...n.baseKeyPath, n.field.name]
|
|
1121
1121
|
}, n.workerHostFunctions || {});
|
|
1122
1122
|
} catch (e) {
|
|
1123
|
-
|
|
1123
|
+
Oe.error(e.message);
|
|
1124
1124
|
return;
|
|
1125
1125
|
}
|
|
1126
1126
|
if (e.action == "add") {
|
|
@@ -1128,7 +1128,7 @@ var ft = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, pt = (e, t) =>
|
|
|
1128
1128
|
let e = (0, Q.cloneDeep)(n.field.form.model || {});
|
|
1129
1129
|
Object.assign(e, t);
|
|
1130
1130
|
let r = JSON.parse(JSON.stringify(n.value)) || [];
|
|
1131
|
-
r.push(e),
|
|
1131
|
+
r.push(e), o("update:value", r);
|
|
1132
1132
|
}
|
|
1133
1133
|
} else if (e.action == "update" && t instanceof Array) {
|
|
1134
1134
|
let e = [];
|
|
@@ -1136,38 +1136,38 @@ var ft = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, pt = (e, t) =>
|
|
|
1136
1136
|
let t = (0, Q.cloneDeep)(n.field.form.model || {});
|
|
1137
1137
|
Object.assign(t, r), e.push(t);
|
|
1138
1138
|
}
|
|
1139
|
-
|
|
1139
|
+
o("update:value", e);
|
|
1140
1140
|
}
|
|
1141
1141
|
}
|
|
1142
|
-
},
|
|
1142
|
+
}, re = () => {
|
|
1143
1143
|
let e = n.value || [];
|
|
1144
|
-
e.push((0, Q.cloneDeep)(n.field.form.model || {})),
|
|
1145
|
-
},
|
|
1144
|
+
e.push((0, Q.cloneDeep)(n.field.form.model || {})), o("update:value", e);
|
|
1145
|
+
}, ae = (e) => {
|
|
1146
1146
|
let t = n.value || [];
|
|
1147
|
-
t.splice(e, 1),
|
|
1148
|
-
},
|
|
1147
|
+
t.splice(e, 1), o("update:value", t);
|
|
1148
|
+
}, oe = (e) => {
|
|
1149
1149
|
let t = n.value || [], r = t[e];
|
|
1150
1150
|
if (!r || n.field.max_count && t.length >= n.field.max_count) return;
|
|
1151
1151
|
let i = (0, Q.cloneDeep)(r);
|
|
1152
|
-
for (let e of
|
|
1152
|
+
for (let e of C.value) e.watchType === "serial" && delete i[e.name];
|
|
1153
1153
|
t.splice(e + 1, 0, i);
|
|
1154
|
-
let
|
|
1154
|
+
let a = /* @__PURE__ */ new Set();
|
|
1155
1155
|
for (let e of [n.innerModel, n.globalInnerModel]) {
|
|
1156
1156
|
let t = e?.[n.field.name];
|
|
1157
|
-
t instanceof Array &&
|
|
1157
|
+
t instanceof Array && a.add(t);
|
|
1158
1158
|
}
|
|
1159
|
-
|
|
1159
|
+
a.forEach((t) => {
|
|
1160
1160
|
t.splice(e + 1, 0, (0, Q.cloneDeep)(t[e] || {}));
|
|
1161
|
-
}),
|
|
1162
|
-
},
|
|
1163
|
-
|
|
1164
|
-
}, 200),
|
|
1165
|
-
|
|
1161
|
+
}), o("update:value", t);
|
|
1162
|
+
}, S = (0, Q.debounce)(() => {
|
|
1163
|
+
s.value = window.innerHeight - 165;
|
|
1164
|
+
}, 200), se = () => {
|
|
1165
|
+
fe(V({
|
|
1166
1166
|
open: !0,
|
|
1167
1167
|
loading: !1,
|
|
1168
1168
|
component: "InnerFormDesignModal",
|
|
1169
1169
|
record: { value: n.field.form || {} },
|
|
1170
|
-
height:
|
|
1170
|
+
height: s.value,
|
|
1171
1171
|
enableBatchAdd: !0,
|
|
1172
1172
|
modalTypeList: n.modalTypeList,
|
|
1173
1173
|
modalType: n.modalType,
|
|
@@ -1186,37 +1186,37 @@ var ft = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, pt = (e, t) =>
|
|
|
1186
1186
|
if (!(e instanceof Array) || e.length < y.value) {
|
|
1187
1187
|
let t = [...e || []];
|
|
1188
1188
|
for (; t.length < y.value;) t.push((0, Q.cloneDeep)(n.field.form.model || {}));
|
|
1189
|
-
|
|
1189
|
+
o("update:value", t);
|
|
1190
1190
|
}
|
|
1191
1191
|
});
|
|
1192
|
-
let
|
|
1192
|
+
let C = O(() => {
|
|
1193
1193
|
let e = [];
|
|
1194
1194
|
return (n.field?.form?.dynamicFieldList || []).forEach((t) => {
|
|
1195
1195
|
t.children instanceof Array && t.children.forEach((t) => {
|
|
1196
1196
|
t.type === "dynamicvaluefield" && e.push(t);
|
|
1197
1197
|
});
|
|
1198
1198
|
}), e;
|
|
1199
|
-
}),
|
|
1199
|
+
}), ce = O(() => {
|
|
1200
1200
|
let e = [];
|
|
1201
1201
|
return (n.field?.form?.dynamicFieldList || []).forEach((t) => {
|
|
1202
1202
|
t.children instanceof Array && t.children.forEach((t) => {
|
|
1203
1203
|
(t.extraAddonBefore && t.addonBefore || t.extraAddonAfter && t.addonAfter) && e.push(t);
|
|
1204
1204
|
});
|
|
1205
1205
|
}), e;
|
|
1206
|
-
}),
|
|
1207
|
-
|
|
1208
|
-
},
|
|
1209
|
-
if (
|
|
1206
|
+
}), le = H(!1), w = H(!1), ue = O(() => n.field?.showType !== "table" || n.is_form_design ? !1 : (n.field?.form?.dynamicFieldList || []).some((e) => e.children instanceof Array && e.children.some((e) => e.type === "remoteselectpro" && e.postUrl && !e.is_table_hide_column))), T = H(!1), de = () => {
|
|
1207
|
+
T.value = !1, E(), N();
|
|
1208
|
+
}, E = (0, Q.debounce)(async () => {
|
|
1209
|
+
if (le.value) {
|
|
1210
1210
|
w.value = !0;
|
|
1211
1211
|
return;
|
|
1212
1212
|
}
|
|
1213
|
-
if (!
|
|
1214
|
-
|
|
1213
|
+
if (!T.value) {
|
|
1214
|
+
le.value = !0;
|
|
1215
1215
|
try {
|
|
1216
1216
|
let e = n.value;
|
|
1217
|
-
if (!e || e.length === 0 ||
|
|
1217
|
+
if (!e || e.length === 0 || C.value.length === 0) return;
|
|
1218
1218
|
let t = !1, r = [...e];
|
|
1219
|
-
for (let a of
|
|
1219
|
+
for (let a of C.value) {
|
|
1220
1220
|
if (a.watchType !== "serial" || i.value && a.serialConfig?.mode === "M5") continue;
|
|
1221
1221
|
let o = [];
|
|
1222
1222
|
for (let e = 0; e < r.length; e++) {
|
|
@@ -1225,7 +1225,7 @@ var ft = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, pt = (e, t) =>
|
|
|
1225
1225
|
}
|
|
1226
1226
|
if (o.length === 0) continue;
|
|
1227
1227
|
if (n.is_form_design) {
|
|
1228
|
-
let e = await
|
|
1228
|
+
let e = await gt({
|
|
1229
1229
|
field: a,
|
|
1230
1230
|
currentValue: void 0,
|
|
1231
1231
|
innerModel: null,
|
|
@@ -1245,12 +1245,12 @@ var ft = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, pt = (e, t) =>
|
|
|
1245
1245
|
}
|
|
1246
1246
|
let s = [...n.baseKeyPath || [], n.field.name], c = o.map((e) => ({
|
|
1247
1247
|
row: e,
|
|
1248
|
-
key:
|
|
1249
|
-
})).filter((e) => !
|
|
1248
|
+
key: ut(a, [...s, e])
|
|
1249
|
+
})).filter((e) => !dt(e.key));
|
|
1250
1250
|
if (c.length === 0) continue;
|
|
1251
1251
|
let l = c.map((e) => e.key);
|
|
1252
|
-
if (
|
|
1253
|
-
let { codes: i, error: o } = await
|
|
1252
|
+
if (ft(l)) try {
|
|
1253
|
+
let { codes: i, error: o } = await mt(a, c.length);
|
|
1254
1254
|
if (n.value !== e) return;
|
|
1255
1255
|
o || !i ? console.error("流水号批量分配失败:", o) : c.forEach((e, n) => {
|
|
1256
1256
|
r[e.row] = {
|
|
@@ -1259,18 +1259,18 @@ var ft = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, pt = (e, t) =>
|
|
|
1259
1259
|
}, t = !0;
|
|
1260
1260
|
});
|
|
1261
1261
|
} finally {
|
|
1262
|
-
|
|
1262
|
+
pt(l);
|
|
1263
1263
|
}
|
|
1264
1264
|
}
|
|
1265
1265
|
for (let a = 0; a < r.length; a++) {
|
|
1266
|
-
let o =
|
|
1266
|
+
let o = b.value[a], s = [
|
|
1267
1267
|
...n.baseKeyPath || [],
|
|
1268
1268
|
n.field.name,
|
|
1269
1269
|
a
|
|
1270
1270
|
];
|
|
1271
|
-
for (let c of
|
|
1271
|
+
for (let c of C.value) {
|
|
1272
1272
|
if (c.watchType === "serial") continue;
|
|
1273
|
-
let l = r[a]?.[c.name], u = await
|
|
1273
|
+
let l = r[a]?.[c.name], u = await gt({
|
|
1274
1274
|
field: c,
|
|
1275
1275
|
currentValue: l,
|
|
1276
1276
|
innerModel: o,
|
|
@@ -1291,101 +1291,101 @@ var ft = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, pt = (e, t) =>
|
|
|
1291
1291
|
}
|
|
1292
1292
|
if (t) {
|
|
1293
1293
|
if (n.value !== e) return;
|
|
1294
|
-
|
|
1294
|
+
o("update:value", r);
|
|
1295
1295
|
}
|
|
1296
1296
|
} finally {
|
|
1297
|
-
|
|
1297
|
+
le.value = !1, w.value && (w.value = !1, E());
|
|
1298
1298
|
}
|
|
1299
1299
|
}
|
|
1300
|
-
}, 200),
|
|
1300
|
+
}, 200), N = (0, Q.debounce)(() => {
|
|
1301
1301
|
let e = n.value;
|
|
1302
|
-
if (!e || e.length === 0 ||
|
|
1302
|
+
if (!e || e.length === 0 || ce.value.length === 0) return;
|
|
1303
1303
|
let t = !1, r = [...e];
|
|
1304
1304
|
for (let e = 0; e < r.length; e++) {
|
|
1305
1305
|
let n = r[e];
|
|
1306
1306
|
if (!n || typeof n != "object") continue;
|
|
1307
1307
|
let i = n;
|
|
1308
|
-
for (let e of
|
|
1309
|
-
let r = i[e.name], a =
|
|
1308
|
+
for (let e of ce.value) {
|
|
1309
|
+
let r = i[e.name], a = xt(e, r);
|
|
1310
1310
|
a !== r && (i === n && (i = { ...n }), i[e.name] = a, t = !0);
|
|
1311
1311
|
}
|
|
1312
1312
|
r[e] = i;
|
|
1313
1313
|
}
|
|
1314
|
-
t &&
|
|
1314
|
+
t && o("update:value", r);
|
|
1315
1315
|
}, 200);
|
|
1316
1316
|
return q(() => [
|
|
1317
1317
|
n.value,
|
|
1318
1318
|
n.context,
|
|
1319
1319
|
n.field
|
|
1320
1320
|
], () => {
|
|
1321
|
-
|
|
1321
|
+
ue.value ? T.value = !0 : T.value = !1, E(), N();
|
|
1322
1322
|
}, {
|
|
1323
1323
|
deep: !0,
|
|
1324
1324
|
immediate: !0
|
|
1325
1325
|
}), q(() => [n.innerModel, n.globalInnerModel], () => {
|
|
1326
|
-
|
|
1326
|
+
E(), N();
|
|
1327
1327
|
}, { deep: !0 }), z(() => {
|
|
1328
|
-
if (window.addEventListener("resize",
|
|
1328
|
+
if (window.addEventListener("resize", S), S(), !(n.value instanceof Array) || n.value.length < y.value) {
|
|
1329
1329
|
let e = [...n.value || []];
|
|
1330
1330
|
for (; e.length < y.value;) e.push((0, Q.cloneDeep)(n.field.form.model || {}));
|
|
1331
|
-
|
|
1331
|
+
o("update:value", e);
|
|
1332
1332
|
}
|
|
1333
|
-
}),
|
|
1334
|
-
window.removeEventListener("resize",
|
|
1333
|
+
}), be(() => {
|
|
1334
|
+
window.removeEventListener("resize", S), S.cancel(), E.cancel(), N.cancel();
|
|
1335
1335
|
}), (e, t) => {
|
|
1336
1336
|
let n = W("a-button");
|
|
1337
|
-
return B(),
|
|
1338
|
-
e.is_form_design ? (B(),
|
|
1337
|
+
return B(), j(D, null, [M("div", St, [
|
|
1338
|
+
e.is_form_design ? (B(), k(n, {
|
|
1339
1339
|
key: 0,
|
|
1340
1340
|
type: "primary",
|
|
1341
1341
|
size: "small",
|
|
1342
|
-
onClick:
|
|
1342
|
+
onClick: se,
|
|
1343
1343
|
ghost: !0
|
|
1344
1344
|
}, {
|
|
1345
|
-
default: J(() => t[0] ||= [
|
|
1345
|
+
default: J(() => t[0] ||= [P(" 编辑表单 ")]),
|
|
1346
1346
|
_: 1
|
|
1347
|
-
})) :
|
|
1348
|
-
|
|
1347
|
+
})) : A("", !0),
|
|
1348
|
+
m.value && !i.value ? (B(), k(n, {
|
|
1349
1349
|
key: 1,
|
|
1350
1350
|
size: "small",
|
|
1351
1351
|
type: "primary",
|
|
1352
1352
|
onClick: p,
|
|
1353
1353
|
danger: !0
|
|
1354
1354
|
}, {
|
|
1355
|
-
default: J(() => t[1] ||= [
|
|
1355
|
+
default: J(() => t[1] ||= [P(" 清空 ")]),
|
|
1356
1356
|
_: 1
|
|
1357
|
-
})) :
|
|
1358
|
-
d.value && !i.value ? (B(),
|
|
1357
|
+
})) : A("", !0),
|
|
1358
|
+
d.value && !i.value ? (B(), k(n, {
|
|
1359
1359
|
key: 2,
|
|
1360
1360
|
size: "small",
|
|
1361
1361
|
type: "primary",
|
|
1362
|
-
loading:
|
|
1363
|
-
onClick:
|
|
1362
|
+
loading: v.value,
|
|
1363
|
+
onClick: ne
|
|
1364
1364
|
}, {
|
|
1365
|
-
default: J(() => t[2] ||= [
|
|
1365
|
+
default: J(() => t[2] ||= [P(" 下载导入模版 ")]),
|
|
1366
1366
|
_: 1
|
|
1367
|
-
}, 8, ["loading"])) :
|
|
1368
|
-
f.value && !i.value ? (B(),
|
|
1367
|
+
}, 8, ["loading"])) : A("", !0),
|
|
1368
|
+
f.value && !i.value ? (B(), k(n, {
|
|
1369
1369
|
key: 3,
|
|
1370
1370
|
size: "small",
|
|
1371
1371
|
type: "primary",
|
|
1372
|
-
onClick:
|
|
1372
|
+
onClick: ee
|
|
1373
1373
|
}, {
|
|
1374
|
-
default: J(() => t[3] ||= [
|
|
1374
|
+
default: J(() => t[3] ||= [P(" 导入Excel数据 ")]),
|
|
1375
1375
|
_: 1
|
|
1376
|
-
})) :
|
|
1377
|
-
|
|
1376
|
+
})) : A("", !0),
|
|
1377
|
+
h.value && (!e.field.custom_btn_list?.length || e.field.max_count !== y.value) && !i.value ? (B(), k(n, {
|
|
1378
1378
|
key: 4,
|
|
1379
1379
|
type: "primary",
|
|
1380
1380
|
size: "small",
|
|
1381
|
-
onClick:
|
|
1381
|
+
onClick: re,
|
|
1382
1382
|
disabled: e.field.max_count && e.value.length >= e.field.max_count
|
|
1383
1383
|
}, {
|
|
1384
|
-
icon: J(() => [
|
|
1385
|
-
default: J(() => [
|
|
1384
|
+
icon: J(() => [F(Se(Ae))]),
|
|
1385
|
+
default: J(() => [P(" " + K(e.field.btn_title || "添加"), 1)]),
|
|
1386
1386
|
_: 1
|
|
1387
|
-
}, 8, ["disabled"])) :
|
|
1388
|
-
(B(!0),
|
|
1387
|
+
}, 8, ["disabled"])) : A("", !0),
|
|
1388
|
+
(B(!0), j(D, null, U(e.field.custom_btn_list, (t) => (B(), k(a, {
|
|
1389
1389
|
action_code_id: t.action_code_id,
|
|
1390
1390
|
code: t.code,
|
|
1391
1391
|
"onUpdate:code": (e) => t.code = e,
|
|
@@ -1393,22 +1393,22 @@ var ft = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, pt = (e, t) =>
|
|
|
1393
1393
|
"onUpdate:action": (e) => t.action = e,
|
|
1394
1394
|
options: l
|
|
1395
1395
|
}, {
|
|
1396
|
-
default: J(() => [!i.value || t.show_on_modify ? (B(),
|
|
1396
|
+
default: J(() => [!i.value || t.show_on_modify ? (B(), k(n, {
|
|
1397
1397
|
key: 0,
|
|
1398
1398
|
size: "small",
|
|
1399
1399
|
type: t.type,
|
|
1400
1400
|
danger: t.danger,
|
|
1401
|
-
onClick: (e) =>
|
|
1401
|
+
onClick: (e) => x(t),
|
|
1402
1402
|
disabled: e.field.max_count && e.value.length >= e.field.max_count && t.action === "add"
|
|
1403
1403
|
}, {
|
|
1404
|
-
default: J(() => [
|
|
1404
|
+
default: J(() => [P(K(t.label), 1)]),
|
|
1405
1405
|
_: 2
|
|
1406
1406
|
}, 1032, [
|
|
1407
1407
|
"type",
|
|
1408
1408
|
"danger",
|
|
1409
1409
|
"onClick",
|
|
1410
1410
|
"disabled"
|
|
1411
|
-
])) :
|
|
1411
|
+
])) : A("", !0)]),
|
|
1412
1412
|
_: 2
|
|
1413
1413
|
}, 1032, [
|
|
1414
1414
|
"action_code_id",
|
|
@@ -1417,7 +1417,7 @@ var ft = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, pt = (e, t) =>
|
|
|
1417
1417
|
"action",
|
|
1418
1418
|
"onUpdate:action"
|
|
1419
1419
|
]))), 256))
|
|
1420
|
-
]), e.field.showType === "table" ? (B(),
|
|
1420
|
+
]), e.field.showType === "table" ? (B(), k(lt, {
|
|
1421
1421
|
key: 0,
|
|
1422
1422
|
value: e.value,
|
|
1423
1423
|
field: e.field,
|
|
@@ -1431,9 +1431,9 @@ var ft = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, pt = (e, t) =>
|
|
|
1431
1431
|
min_count: y.value,
|
|
1432
1432
|
"lock-structure": i.value,
|
|
1433
1433
|
formModel: e.formModel,
|
|
1434
|
-
onRemove:
|
|
1435
|
-
onCopy:
|
|
1436
|
-
onLabels_resolved:
|
|
1434
|
+
onRemove: ae,
|
|
1435
|
+
onCopy: oe,
|
|
1436
|
+
onLabels_resolved: de
|
|
1437
1437
|
}, null, 8, [
|
|
1438
1438
|
"value",
|
|
1439
1439
|
"field",
|
|
@@ -1447,7 +1447,7 @@ var ft = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, pt = (e, t) =>
|
|
|
1447
1447
|
"min_count",
|
|
1448
1448
|
"lock-structure",
|
|
1449
1449
|
"formModel"
|
|
1450
|
-
])) : (B(!0),
|
|
1450
|
+
])) : (B(!0), j(D, { key: 1 }, U(e.value, (t, n) => (B(), k(Ve, {
|
|
1451
1451
|
form: e.field.form,
|
|
1452
1452
|
field: e.field,
|
|
1453
1453
|
value: e.value[n],
|
|
@@ -1455,7 +1455,7 @@ var ft = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, pt = (e, t) =>
|
|
|
1455
1455
|
options: e.field.form?.options,
|
|
1456
1456
|
alwaysShowGroup: e.alwaysShowGroup,
|
|
1457
1457
|
is_form_design: e.is_form_design,
|
|
1458
|
-
"inner-model":
|
|
1458
|
+
"inner-model": b.value[n],
|
|
1459
1459
|
"global-inner-model": e.globalInnerModel,
|
|
1460
1460
|
modalTypeList: e.modalTypeList,
|
|
1461
1461
|
modalType: e.modalType,
|
|
@@ -1464,8 +1464,8 @@ var ft = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, pt = (e, t) =>
|
|
|
1464
1464
|
listLength: e.value.length,
|
|
1465
1465
|
context: e.context,
|
|
1466
1466
|
"lock-structure": i.value,
|
|
1467
|
-
onRemove: (e) =>
|
|
1468
|
-
onCopy: (e) =>
|
|
1467
|
+
onRemove: (e) => ae(n),
|
|
1468
|
+
onCopy: (e) => oe(n),
|
|
1469
1469
|
"base-key-path": [
|
|
1470
1470
|
...e.baseKeyPath,
|
|
1471
1471
|
e.field.name,
|
|
@@ -1496,10 +1496,10 @@ var ft = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, pt = (e, t) =>
|
|
|
1496
1496
|
]))), 256))], 64);
|
|
1497
1497
|
};
|
|
1498
1498
|
}
|
|
1499
|
-
}), [["__scopeId", "data-v-cbdea8e9"]]),
|
|
1499
|
+
}), [["__scopeId", "data-v-cbdea8e9"]]), wt = {
|
|
1500
1500
|
key: 0,
|
|
1501
1501
|
class: "error-msg"
|
|
1502
|
-
},
|
|
1502
|
+
}, Tt = /*#__PURE__*/ r(/* @__PURE__ */ I({
|
|
1503
1503
|
name: "DynamicValueField",
|
|
1504
1504
|
__name: "DynamicValueField",
|
|
1505
1505
|
props: {
|
|
@@ -1539,20 +1539,20 @@ var ft = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, pt = (e, t) =>
|
|
|
1539
1539
|
},
|
|
1540
1540
|
emits: ["update:value"],
|
|
1541
1541
|
setup(e, { emit: t }) {
|
|
1542
|
-
let n = e, r = t, i =
|
|
1543
|
-
let d = u, f =
|
|
1542
|
+
let n = e, r = t, i = ge("FORM_LOCK_STRUCTURE", H(!1)), o = O(() => !!Se(i)), s = H(null), c = H(n.value || ""), l = O(() => n.is_form_design ? c.value : n.value), u = 0, d = (0, Q.debounce)(async (e, t, i, a) => {
|
|
1543
|
+
let d = u, f = o.value, p = await gt({
|
|
1544
1544
|
field: i,
|
|
1545
1545
|
currentValue: l.value,
|
|
1546
1546
|
innerModel: e,
|
|
1547
1547
|
globalInnerModel: t,
|
|
1548
|
-
formModel:
|
|
1548
|
+
formModel: a,
|
|
1549
1549
|
context: n.context,
|
|
1550
1550
|
baseKeyPath: n.baseKeyPath,
|
|
1551
1551
|
workerHostFunctions: n.workerHostFunctions || {},
|
|
1552
1552
|
is_form_design: n.is_form_design,
|
|
1553
|
-
lock_structure:
|
|
1553
|
+
lock_structure: o.value
|
|
1554
1554
|
});
|
|
1555
|
-
d === u && (
|
|
1555
|
+
d === u && (o.value && !f || p && (n.is_form_design ? c.value = p.value ?? "" : p.value !== void 0 && p.value !== null && r("update:value", p.value), (i.watchType === "code" || i.watchType === "serial") && (s.value = p.error || null)));
|
|
1556
1556
|
}, 200);
|
|
1557
1557
|
return q(() => [
|
|
1558
1558
|
n.innerModel,
|
|
@@ -1567,23 +1567,23 @@ var ft = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, pt = (e, t) =>
|
|
|
1567
1567
|
deep: !0
|
|
1568
1568
|
}), (t, n) => {
|
|
1569
1569
|
let r = W("a-input");
|
|
1570
|
-
return B(),
|
|
1570
|
+
return B(), j(D, null, [F(a, {
|
|
1571
1571
|
"value-code": e.field,
|
|
1572
1572
|
"show-debug-code": e.field.watchType === "code"
|
|
1573
1573
|
}, {
|
|
1574
|
-
default: J(() => [
|
|
1574
|
+
default: J(() => [F(r, {
|
|
1575
1575
|
value: l.value,
|
|
1576
1576
|
readonly: "",
|
|
1577
1577
|
size: "small",
|
|
1578
1578
|
style: { "background-color": "#f5f5f5" }
|
|
1579
1579
|
}, null, 8, ["value"])]),
|
|
1580
1580
|
_: 1
|
|
1581
|
-
}, 8, ["value-code", "show-debug-code"]),
|
|
1581
|
+
}, 8, ["value-code", "show-debug-code"]), s.value ? (B(), j("span", wt, K(s.value), 1)) : A("", !0)], 64);
|
|
1582
1582
|
};
|
|
1583
1583
|
}
|
|
1584
|
-
}), [["__scopeId", "data-v-b7203730"]]),
|
|
1584
|
+
}), [["__scopeId", "data-v-b7203730"]]), Et = I({
|
|
1585
1585
|
name: "FormButton",
|
|
1586
|
-
components: { debugCode:
|
|
1586
|
+
components: { debugCode: a },
|
|
1587
1587
|
props: {
|
|
1588
1588
|
field: {
|
|
1589
1589
|
type: Object,
|
|
@@ -1630,13 +1630,13 @@ var ft = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, pt = (e, t) =>
|
|
|
1630
1630
|
if (e.field.code) {
|
|
1631
1631
|
let t;
|
|
1632
1632
|
try {
|
|
1633
|
-
t = await
|
|
1633
|
+
t = await ie(e.field.code, {
|
|
1634
1634
|
context: e.context,
|
|
1635
1635
|
formModel: e.formModel,
|
|
1636
1636
|
keyPath: [...e.baseKeyPath, e.field.name]
|
|
1637
1637
|
}, e.workerHostFunctions || {});
|
|
1638
1638
|
} catch (e) {
|
|
1639
|
-
|
|
1639
|
+
Oe.error(e.message);
|
|
1640
1640
|
return;
|
|
1641
1641
|
}
|
|
1642
1642
|
t && Object.assign(e.formModel, t);
|
|
@@ -1649,21 +1649,21 @@ var ft = (e, t) => t && e.startsWith(t) ? e.slice(t.length) : e, pt = (e, t) =>
|
|
|
1649
1649
|
});
|
|
1650
1650
|
//#endregion
|
|
1651
1651
|
//#region src/components/FormRender/FormButton/FormButton.vue
|
|
1652
|
-
function
|
|
1652
|
+
function Dt(e, t, n, r, i, a) {
|
|
1653
1653
|
let o = W("a-button"), s = W("debug-code");
|
|
1654
|
-
return B(),
|
|
1654
|
+
return B(), k(s, {
|
|
1655
1655
|
action_code_id: e.field.action_code_id,
|
|
1656
1656
|
code: e.field.code,
|
|
1657
1657
|
"onUpdate:code": t[0] ||= (t) => e.field.code = t
|
|
1658
1658
|
}, {
|
|
1659
|
-
default: J(() => [
|
|
1659
|
+
default: J(() => [F(o, {
|
|
1660
1660
|
danger: e.field.danger,
|
|
1661
1661
|
type: e.field.btn_type,
|
|
1662
1662
|
disabled: e.field.disabled,
|
|
1663
1663
|
size: "small",
|
|
1664
1664
|
onClick: e.handlClick
|
|
1665
1665
|
}, {
|
|
1666
|
-
default: J(() => [
|
|
1666
|
+
default: J(() => [P(K(e.field.label), 1)]),
|
|
1667
1667
|
_: 1
|
|
1668
1668
|
}, 8, [
|
|
1669
1669
|
"danger",
|
|
@@ -1674,7 +1674,163 @@ function St(e, t, n, r, i, a) {
|
|
|
1674
1674
|
_: 1
|
|
1675
1675
|
}, 8, ["action_code_id", "code"]);
|
|
1676
1676
|
}
|
|
1677
|
-
var
|
|
1677
|
+
var Ot = /*#__PURE__*/ r(Et, [["render", Dt]]), kt = /* @__PURE__ */ I({
|
|
1678
|
+
__name: "excelUpload",
|
|
1679
|
+
props: {
|
|
1680
|
+
value: { default: () => [] },
|
|
1681
|
+
group: { default: "sys" },
|
|
1682
|
+
access_type: { default: "public" },
|
|
1683
|
+
maxCount: { default: 10 },
|
|
1684
|
+
disabled: {
|
|
1685
|
+
type: Boolean,
|
|
1686
|
+
default: !1
|
|
1687
|
+
},
|
|
1688
|
+
readOnly: {
|
|
1689
|
+
type: Boolean,
|
|
1690
|
+
default: !1
|
|
1691
|
+
}
|
|
1692
|
+
},
|
|
1693
|
+
emits: ["update:value"],
|
|
1694
|
+
setup(e, { emit: n }) {
|
|
1695
|
+
let r = e, i = n, a = t(), o = H([]), c = /* @__PURE__ */ new Set();
|
|
1696
|
+
q(O(() => JSON.stringify(r.value || [])), () => {
|
|
1697
|
+
let e = r.value || [], t = o.value.filter((e) => e.status === "uploading" || e.status === "error");
|
|
1698
|
+
o.value = [...e.filter((e) => e.id && e.url).map((e) => ({
|
|
1699
|
+
...e,
|
|
1700
|
+
uid: String(e.id),
|
|
1701
|
+
status: "done",
|
|
1702
|
+
response: e
|
|
1703
|
+
})), ...t.filter((t) => !e.some((e) => String(e.id) === t.uid))];
|
|
1704
|
+
}, { immediate: !0 });
|
|
1705
|
+
let l = (e) => /\.xlsx$/i.test(e.name) ? !0 : De.LIST_IGNORE, u = (e) => {
|
|
1706
|
+
let t = new AbortController(), n = a.currentOrg?.id;
|
|
1707
|
+
return c.add(t), (async () => {
|
|
1708
|
+
try {
|
|
1709
|
+
let i = await _({
|
|
1710
|
+
access_type: r.access_type,
|
|
1711
|
+
filetype: "xlsx",
|
|
1712
|
+
filename: e.file.name,
|
|
1713
|
+
group: r.group,
|
|
1714
|
+
author: 0
|
|
1715
|
+
});
|
|
1716
|
+
if (t.signal.aborted) return;
|
|
1717
|
+
let a = new FormData();
|
|
1718
|
+
if (a.append("file", e.file), a.append("file_id", i.params.file_id), a.append("key", i.params.key), await s(a, {
|
|
1719
|
+
signal: t.signal,
|
|
1720
|
+
onUploadProgress: (t) => e.onProgress({ percent: t.total ? Math.floor(t.loaded / t.total * 100) : 0 })
|
|
1721
|
+
}), t.signal.aborted) return;
|
|
1722
|
+
let o = new URL(i.params.url, window.location.origin);
|
|
1723
|
+
o.searchParams.set("org_id", String(n)), e.onSuccess({
|
|
1724
|
+
id: String(i.params.file_id),
|
|
1725
|
+
url: o.href,
|
|
1726
|
+
name: e.file.name
|
|
1727
|
+
});
|
|
1728
|
+
} catch (n) {
|
|
1729
|
+
t.signal.aborted || e.onError(n);
|
|
1730
|
+
} finally {
|
|
1731
|
+
c.delete(t);
|
|
1732
|
+
}
|
|
1733
|
+
})(), { abort: () => t.abort() };
|
|
1734
|
+
}, d = (e) => {
|
|
1735
|
+
o.value = e.fileList, i("update:value", e.fileList.map((e) => e.status === "done" ? e.response || {
|
|
1736
|
+
id: e.id,
|
|
1737
|
+
url: e.url,
|
|
1738
|
+
name: e.name
|
|
1739
|
+
} : {
|
|
1740
|
+
id: "",
|
|
1741
|
+
url: "",
|
|
1742
|
+
name: e.name
|
|
1743
|
+
}));
|
|
1744
|
+
};
|
|
1745
|
+
return ye(() => c.forEach((e) => e.abort())), (e, t) => {
|
|
1746
|
+
let n = W("a-button"), i = W("a-upload");
|
|
1747
|
+
return B(), k(i, {
|
|
1748
|
+
"file-list": o.value,
|
|
1749
|
+
accept: ".xlsx",
|
|
1750
|
+
multiple: !0,
|
|
1751
|
+
"max-count": r.maxCount,
|
|
1752
|
+
disabled: r.disabled || r.readOnly,
|
|
1753
|
+
"before-upload": l,
|
|
1754
|
+
"custom-request": u,
|
|
1755
|
+
onChange: d
|
|
1756
|
+
}, {
|
|
1757
|
+
default: J(() => [!r.disabled && !r.readOnly ? (B(), k(n, { key: 0 }, {
|
|
1758
|
+
default: J(() => t[0] ||= [P("上传Excel")]),
|
|
1759
|
+
_: 1
|
|
1760
|
+
})) : A("", !0)]),
|
|
1761
|
+
_: 1
|
|
1762
|
+
}, 8, [
|
|
1763
|
+
"file-list",
|
|
1764
|
+
"max-count",
|
|
1765
|
+
"disabled"
|
|
1766
|
+
]);
|
|
1767
|
+
};
|
|
1768
|
+
}
|
|
1769
|
+
}), At = /* @__PURE__ */ I({
|
|
1770
|
+
name: "ModelChoicesSelect",
|
|
1771
|
+
__name: "ModelChoicesSelect",
|
|
1772
|
+
props: /*@__PURE__*/ L({ field: {} }, {
|
|
1773
|
+
value: {},
|
|
1774
|
+
valueModifiers: {}
|
|
1775
|
+
}),
|
|
1776
|
+
emits: ["update:value"],
|
|
1777
|
+
setup(e) {
|
|
1778
|
+
let t = e, r = Ce(e, "value"), i = H([]), a = H(!1), o = O(() => t.field?.valueField === "label" ? "label" : "value"), s = O(() => t.field?.labelField === "value" ? "value" : "label"), c = (e) => e == null ? "" : String(e), l = O(() => i.value.map((e) => ({
|
|
1779
|
+
value: e[o.value],
|
|
1780
|
+
label: c(e[s.value])
|
|
1781
|
+
}))), u = (e) => {
|
|
1782
|
+
let t = (e || "").indexOf("-");
|
|
1783
|
+
if (t <= 0) return null;
|
|
1784
|
+
let n = e.slice(0, t), r = e.slice(t + 1);
|
|
1785
|
+
return r ? {
|
|
1786
|
+
appFlag: n,
|
|
1787
|
+
modelName: r
|
|
1788
|
+
} : null;
|
|
1789
|
+
}, d = 0;
|
|
1790
|
+
return q(() => [t.field?.model, t.field?.field_name], async () => {
|
|
1791
|
+
let e = u(t.field?.model), r = t.field?.field_name;
|
|
1792
|
+
if (!e || !r) {
|
|
1793
|
+
i.value = [];
|
|
1794
|
+
return;
|
|
1795
|
+
}
|
|
1796
|
+
let o = ++d;
|
|
1797
|
+
a.value = !0;
|
|
1798
|
+
try {
|
|
1799
|
+
let t = await n({ field_name: r }, `/${e.appFlag}/query_${e.modelName}_field_choices`);
|
|
1800
|
+
if (o !== d) return;
|
|
1801
|
+
i.value = Array.isArray(t) ? t : t?.data ?? t?.result ?? t?.list ?? [];
|
|
1802
|
+
} catch (e) {
|
|
1803
|
+
if (o !== d) return;
|
|
1804
|
+
i.value = [], Oe.error(`模型选项加载失败:${e?.message ?? e}`);
|
|
1805
|
+
} finally {
|
|
1806
|
+
o === d && (a.value = !1);
|
|
1807
|
+
}
|
|
1808
|
+
}, { immediate: !0 }), (e, t) => {
|
|
1809
|
+
let n = W("a-select");
|
|
1810
|
+
return B(), k(n, {
|
|
1811
|
+
value: r.value,
|
|
1812
|
+
"onUpdate:value": t[0] ||= (e) => r.value = e,
|
|
1813
|
+
"allow-clear": e.field.allowClear == null ? !0 : e.field.allowClear,
|
|
1814
|
+
disabled: e.field.disabled,
|
|
1815
|
+
"dropdown-match-select-width": !1,
|
|
1816
|
+
loading: a.value,
|
|
1817
|
+
options: l.value,
|
|
1818
|
+
placeholder: e.field.placeholder ? e.field.placeholder : e.$t("请选择") + e.field.label,
|
|
1819
|
+
"show-search": !!e.field.show_search,
|
|
1820
|
+
size: "small",
|
|
1821
|
+
style: { width: "100%" }
|
|
1822
|
+
}, null, 8, [
|
|
1823
|
+
"value",
|
|
1824
|
+
"allow-clear",
|
|
1825
|
+
"disabled",
|
|
1826
|
+
"loading",
|
|
1827
|
+
"options",
|
|
1828
|
+
"placeholder",
|
|
1829
|
+
"show-search"
|
|
1830
|
+
]);
|
|
1831
|
+
};
|
|
1832
|
+
}
|
|
1833
|
+
}), jt = { key: 0 }, Mt = { key: 0 }, Nt = { key: 0 }, Pt = /*#__PURE__*/ r(/* @__PURE__ */ I({
|
|
1678
1834
|
name: "InputNumberProCore",
|
|
1679
1835
|
__name: "InputNumberProCore",
|
|
1680
1836
|
props: {
|
|
@@ -1701,24 +1857,24 @@ var Ct = /*#__PURE__*/ n(xt, [["render", St]]), wt = { key: 0 }, Tt = { key: 0 }
|
|
|
1701
1857
|
},
|
|
1702
1858
|
emits: ["update:value"],
|
|
1703
1859
|
setup(e, { emit: t }) {
|
|
1704
|
-
let n = e, r = t, i =
|
|
1705
|
-
prefix:
|
|
1706
|
-
addonBefore:
|
|
1707
|
-
addonAfter:
|
|
1708
|
-
})), a =
|
|
1860
|
+
let n = e, r = t, i = O(() => ({
|
|
1861
|
+
prefix: u(n.prefixIcon),
|
|
1862
|
+
addonBefore: u(n.addonBeforeIcon),
|
|
1863
|
+
addonAfter: u(n.addonAfterIcon)
|
|
1864
|
+
})), a = O(() => ({
|
|
1709
1865
|
addonBefore: n.addonBefore,
|
|
1710
1866
|
addonAfter: n.addonAfter,
|
|
1711
1867
|
extraAddonBefore: n.extraAddonBefore,
|
|
1712
1868
|
extraAddonAfter: n.extraAddonAfter
|
|
1713
1869
|
})), o = (e) => {
|
|
1714
|
-
r("update:value",
|
|
1715
|
-
}, s =
|
|
1716
|
-
let e =
|
|
1870
|
+
r("update:value", xt(a.value, e));
|
|
1871
|
+
}, s = O(() => {
|
|
1872
|
+
let e = bt(a.value, n.value);
|
|
1717
1873
|
return typeof e == "string" && (e = parseFloat(e), isNaN(e) && (e = null)), e;
|
|
1718
1874
|
});
|
|
1719
1875
|
return (e, t) => {
|
|
1720
1876
|
let n = W("a-input-number");
|
|
1721
|
-
return B(),
|
|
1877
|
+
return B(), k(n, {
|
|
1722
1878
|
value: s.value,
|
|
1723
1879
|
autocomplete: e.autocomplete,
|
|
1724
1880
|
"default-value": e.defaultValue,
|
|
@@ -1732,20 +1888,20 @@ var Ct = /*#__PURE__*/ n(xt, [["render", St]]), wt = { key: 0 }, Tt = { key: 0 }
|
|
|
1732
1888
|
size: e.size,
|
|
1733
1889
|
style: R(e.style),
|
|
1734
1890
|
"onUpdate:value": o
|
|
1735
|
-
},
|
|
1891
|
+
}, N({ _: 2 }, [
|
|
1736
1892
|
e.prefix || i.value.prefix ? {
|
|
1737
1893
|
name: "prefix",
|
|
1738
|
-
fn: J(() => [e.prefix ? (B(),
|
|
1894
|
+
fn: J(() => [e.prefix ? (B(), j("span", jt, K(e.prefix), 1)) : A("", !0), i.value.prefix ? (B(), k(G(i.value.prefix), { key: 1 })) : A("", !0)]),
|
|
1739
1895
|
key: "0"
|
|
1740
1896
|
} : void 0,
|
|
1741
1897
|
e.addonBefore || i.value.addonBefore ? {
|
|
1742
1898
|
name: "addonBefore",
|
|
1743
|
-
fn: J(() => [e.addonBefore ? (B(),
|
|
1899
|
+
fn: J(() => [e.addonBefore ? (B(), j("span", Mt, K(e.addonBefore), 1)) : A("", !0), i.value.addonBefore ? (B(), k(G(i.value.addonBefore), { key: 1 })) : A("", !0)]),
|
|
1744
1900
|
key: "1"
|
|
1745
1901
|
} : void 0,
|
|
1746
1902
|
e.addonAfter || i.value.addonAfter ? {
|
|
1747
1903
|
name: "addonAfter",
|
|
1748
|
-
fn: J(() => [e.addonAfter ? (B(),
|
|
1904
|
+
fn: J(() => [e.addonAfter ? (B(), j("span", Nt, K(e.addonAfter), 1)) : A("", !0), i.value.addonAfter ? (B(), k(G(i.value.addonAfter), { key: 1 })) : A("", !0)]),
|
|
1749
1905
|
key: "2"
|
|
1750
1906
|
} : void 0
|
|
1751
1907
|
]), 1032, [
|
|
@@ -1764,17 +1920,17 @@ var Ct = /*#__PURE__*/ n(xt, [["render", St]]), wt = { key: 0 }, Tt = { key: 0 }
|
|
|
1764
1920
|
]);
|
|
1765
1921
|
};
|
|
1766
1922
|
}
|
|
1767
|
-
}), [["__scopeId", "data-v-b99ac06c"]]),
|
|
1923
|
+
}), [["__scopeId", "data-v-b99ac06c"]]), Ft = /* @__PURE__ */ I({
|
|
1768
1924
|
name: "InputNumberPro",
|
|
1769
1925
|
__name: "InputNumberPro",
|
|
1770
|
-
props: /*@__PURE__*/
|
|
1926
|
+
props: /*@__PURE__*/ L({ field: {} }, {
|
|
1771
1927
|
value: { default: null },
|
|
1772
1928
|
valueModifiers: {}
|
|
1773
1929
|
}),
|
|
1774
1930
|
emits: ["update:value"],
|
|
1775
1931
|
setup(e) {
|
|
1776
|
-
let t =
|
|
1777
|
-
return (e, n) => (B(),
|
|
1932
|
+
let t = Ce(e, "value");
|
|
1933
|
+
return (e, n) => (B(), k(Pt, {
|
|
1778
1934
|
value: t.value,
|
|
1779
1935
|
"onUpdate:value": n[0] ||= (e) => t.value = e,
|
|
1780
1936
|
autocomplete: e.field.autocomplete == null ? "off" : e.field.autocomplete,
|
|
@@ -1816,10 +1972,10 @@ var Ct = /*#__PURE__*/ n(xt, [["render", St]]), wt = { key: 0 }, Tt = { key: 0 }
|
|
|
1816
1972
|
"extra-addon-after"
|
|
1817
1973
|
]));
|
|
1818
1974
|
}
|
|
1819
|
-
}),
|
|
1975
|
+
}), It = { key: 0 }, Lt = { key: 0 }, Rt = { key: 0 }, zt = { key: 0 }, Bt = /*#__PURE__*/ r(/* @__PURE__ */ I({
|
|
1820
1976
|
name: "InputProCore",
|
|
1821
1977
|
__name: "InputProCore",
|
|
1822
|
-
props: /*@__PURE__*/
|
|
1978
|
+
props: /*@__PURE__*/ L({
|
|
1823
1979
|
allowClear: { type: Boolean },
|
|
1824
1980
|
autocomplete: { default: "off" },
|
|
1825
1981
|
defaultValue: {},
|
|
@@ -1845,25 +2001,25 @@ var Ct = /*#__PURE__*/ n(xt, [["render", St]]), wt = { key: 0 }, Tt = { key: 0 }
|
|
|
1845
2001
|
}),
|
|
1846
2002
|
emits: ["update:value"],
|
|
1847
2003
|
setup(e) {
|
|
1848
|
-
let t = e, n =
|
|
1849
|
-
prefix:
|
|
1850
|
-
suffix:
|
|
1851
|
-
addonBefore:
|
|
1852
|
-
addonAfter:
|
|
1853
|
-
})), i =
|
|
2004
|
+
let t = e, n = Ce(e, "value"), r = O(() => ({
|
|
2005
|
+
prefix: u(t.prefixIcon),
|
|
2006
|
+
suffix: u(t.suffixIcon),
|
|
2007
|
+
addonBefore: u(t.addonBeforeIcon),
|
|
2008
|
+
addonAfter: u(t.addonAfterIcon)
|
|
2009
|
+
})), i = O(() => ({
|
|
1854
2010
|
addonBefore: t.addonBefore,
|
|
1855
2011
|
addonAfter: t.addonAfter,
|
|
1856
2012
|
extraAddonBefore: t.extraAddonBefore,
|
|
1857
2013
|
extraAddonAfter: t.extraAddonAfter
|
|
1858
|
-
})), a =
|
|
1859
|
-
get: () =>
|
|
2014
|
+
})), a = O({
|
|
2015
|
+
get: () => bt(i.value, n.value),
|
|
1860
2016
|
set: (e) => {
|
|
1861
|
-
n.value =
|
|
2017
|
+
n.value = xt(i.value, e);
|
|
1862
2018
|
}
|
|
1863
2019
|
});
|
|
1864
2020
|
return (e, t) => {
|
|
1865
2021
|
let n = W("a-input");
|
|
1866
|
-
return B(),
|
|
2022
|
+
return B(), k(n, {
|
|
1867
2023
|
value: a.value,
|
|
1868
2024
|
"onUpdate:value": t[0] ||= (e) => a.value = e,
|
|
1869
2025
|
"allow-clear": e.allowClear,
|
|
@@ -1875,25 +2031,25 @@ var Ct = /*#__PURE__*/ n(xt, [["render", St]]), wt = { key: 0 }, Tt = { key: 0 }
|
|
|
1875
2031
|
type: e.type,
|
|
1876
2032
|
size: e.size,
|
|
1877
2033
|
style: R(e.style)
|
|
1878
|
-
},
|
|
2034
|
+
}, N({ _: 2 }, [
|
|
1879
2035
|
e.prefix || r.value.prefix ? {
|
|
1880
2036
|
name: "prefix",
|
|
1881
|
-
fn: J(() => [e.prefix ? (B(),
|
|
2037
|
+
fn: J(() => [e.prefix ? (B(), j("span", It, K(e.prefix), 1)) : A("", !0), r.value.prefix ? (B(), k(G(r.value.prefix), { key: 1 })) : A("", !0)]),
|
|
1882
2038
|
key: "0"
|
|
1883
2039
|
} : void 0,
|
|
1884
2040
|
e.suffix || r.value.suffix ? {
|
|
1885
2041
|
name: "suffix",
|
|
1886
|
-
fn: J(() => [e.suffix ? (B(),
|
|
2042
|
+
fn: J(() => [e.suffix ? (B(), j("span", Lt, K(e.suffix), 1)) : A("", !0), r.value.suffix ? (B(), k(G(r.value.suffix), { key: 1 })) : A("", !0)]),
|
|
1887
2043
|
key: "1"
|
|
1888
2044
|
} : void 0,
|
|
1889
2045
|
e.addonBefore || r.value.addonBefore ? {
|
|
1890
2046
|
name: "addonBefore",
|
|
1891
|
-
fn: J(() => [e.addonBefore ? (B(),
|
|
2047
|
+
fn: J(() => [e.addonBefore ? (B(), j("span", Rt, K(e.addonBefore), 1)) : A("", !0), r.value.addonBefore ? (B(), k(G(r.value.addonBefore), { key: 1 })) : A("", !0)]),
|
|
1892
2048
|
key: "2"
|
|
1893
2049
|
} : void 0,
|
|
1894
2050
|
e.addonAfter || r.value.addonAfter ? {
|
|
1895
2051
|
name: "addonAfter",
|
|
1896
|
-
fn: J(() => [e.addonAfter ? (B(),
|
|
2052
|
+
fn: J(() => [e.addonAfter ? (B(), j("span", zt, K(e.addonAfter), 1)) : A("", !0), r.value.addonAfter ? (B(), k(G(r.value.addonAfter), { key: 1 })) : A("", !0)]),
|
|
1897
2053
|
key: "3"
|
|
1898
2054
|
} : void 0
|
|
1899
2055
|
]), 1032, [
|
|
@@ -1910,17 +2066,17 @@ var Ct = /*#__PURE__*/ n(xt, [["render", St]]), wt = { key: 0 }, Tt = { key: 0 }
|
|
|
1910
2066
|
]);
|
|
1911
2067
|
};
|
|
1912
2068
|
}
|
|
1913
|
-
}), [["__scopeId", "data-v-4c5dc626"]]),
|
|
2069
|
+
}), [["__scopeId", "data-v-4c5dc626"]]), Vt = /* @__PURE__ */ I({
|
|
1914
2070
|
name: "InputPro",
|
|
1915
2071
|
__name: "InputPro",
|
|
1916
|
-
props: /*@__PURE__*/
|
|
2072
|
+
props: /*@__PURE__*/ L({ field: {} }, {
|
|
1917
2073
|
value: {},
|
|
1918
2074
|
valueModifiers: {}
|
|
1919
2075
|
}),
|
|
1920
2076
|
emits: ["update:value"],
|
|
1921
2077
|
setup(e) {
|
|
1922
|
-
let t =
|
|
1923
|
-
return (e, n) => (B(),
|
|
2078
|
+
let t = Ce(e, "value");
|
|
2079
|
+
return (e, n) => (B(), k(Bt, {
|
|
1924
2080
|
value: t.value,
|
|
1925
2081
|
"onUpdate:value": n[0] ||= (e) => t.value = e,
|
|
1926
2082
|
"allow-clear": e.field.allowClear == null ? !0 : e.field.allowClear,
|
|
@@ -1962,9 +2118,9 @@ var Ct = /*#__PURE__*/ n(xt, [["render", St]]), wt = { key: 0 }, Tt = { key: 0 }
|
|
|
1962
2118
|
"extra-addon-after"
|
|
1963
2119
|
]));
|
|
1964
2120
|
}
|
|
1965
|
-
}), $ = (e, t = "YYYY-MM-DD") => Y(e, t, !0).isValid(),
|
|
2121
|
+
}), $ = (e, t = "YYYY-MM-DD") => Y(e, t, !0).isValid(), Ht = (e, t = "YYYY-MM-DD HH:mm:ss") => Y(e, t, !0).isValid(), Ut = (e, t = "HH:mm:ss") => Y(e, t, !0).isValid(), Wt = I({
|
|
1966
2122
|
name: "FieldRender2",
|
|
1967
|
-
methods: { isArray:
|
|
2123
|
+
methods: { isArray: Ne },
|
|
1968
2124
|
props: {
|
|
1969
2125
|
field: {
|
|
1970
2126
|
type: Object,
|
|
@@ -2064,26 +2220,26 @@ var Ct = /*#__PURE__*/ n(xt, [["render", St]]), wt = { key: 0 }, Tt = { key: 0 }
|
|
|
2064
2220
|
setup(e, { emit: t }) {
|
|
2065
2221
|
let n = H({ ...e.formModel }), r = (e) => typeof e == "string" && e.indexOf(",") >= 0 ? e.split(",") : e, i = (e, t) => {
|
|
2066
2222
|
let n;
|
|
2067
|
-
return t == "int" ?
|
|
2068
|
-
|
|
2069
|
-
})) : n =
|
|
2070
|
-
|
|
2071
|
-
})) : n =
|
|
2223
|
+
return t == "int" ? b(e) && e instanceof Array ? (n = [], e.forEach((e) => {
|
|
2224
|
+
b(e) && typeof e == "string" ? n.push(Number(e)) : n.push(e);
|
|
2225
|
+
})) : n = b(e) && typeof e == "string" ? Number(e) : e : t == "str" ? b(e) && e instanceof Array ? (n = [], e.forEach((e) => {
|
|
2226
|
+
b(e) && typeof e == "number" ? n.push(e.toString()) : n.push(e);
|
|
2227
|
+
})) : n = b(e) && typeof e == "number" ? e.toString() : e : t == "date" ? b(e) && e instanceof Array ? (n = [], e.forEach((e) => {
|
|
2072
2228
|
$(e) && typeof e == "string" ? n.push(Y(e, "YYYY-MM-DD")) : n.push(e);
|
|
2073
|
-
})) : n = $(e) && typeof e == "string" ? e.toString() : e : t == "datetime" ?
|
|
2074
|
-
|
|
2075
|
-
})) : n =
|
|
2076
|
-
|
|
2077
|
-
})) : n =
|
|
2078
|
-
|
|
2079
|
-
})) : n =
|
|
2080
|
-
|
|
2081
|
-
})) : n =
|
|
2082
|
-
}, a = H(e.is_show_field), o = H(!1), s =
|
|
2229
|
+
})) : n = $(e) && typeof e == "string" ? e.toString() : e : t == "datetime" ? b(e) && e instanceof Array ? (n = [], e.forEach((e) => {
|
|
2230
|
+
Ht(e) && typeof e == "string" ? n.push(Y(e, "YYYY-MM-DD HH:mm:ss")) : n.push(e);
|
|
2231
|
+
})) : n = Ht(e) && typeof e == "string" ? Y(e, "YYYY-MM-DD HH:mm:ss") : e : t == "time" ? b(e) && e instanceof Array ? (n = [], e.forEach((e) => {
|
|
2232
|
+
Ut(e) && typeof e == "string" ? n.push(Y(e, "HH:mm:ss")) : n.push(e);
|
|
2233
|
+
})) : n = Ut(e) && typeof e == "string" ? Y(e, "HH:mm:ss") : e : t == "float" ? b(e) && e instanceof Array ? (n = [], e.forEach((e) => {
|
|
2234
|
+
b(e) && typeof e == "string" ? n.push(Number(e)) : n.push(e);
|
|
2235
|
+
})) : n = b(e) && typeof e == "string" ? Number(e) : e : t == "bool" && (b(e) && e instanceof Array ? (n = [], e.forEach((e) => {
|
|
2236
|
+
b(e) && typeof e == "string" ? n.push(!!e) : n.push(e);
|
|
2237
|
+
})) : n = b(e) && typeof e == "string" ? !!e : e), n;
|
|
2238
|
+
}, a = H(e.is_show_field), o = H(!1), s = O(() => e.is_form_design && e.field.type === "remotetablepro"), c = () => {
|
|
2083
2239
|
t("update:is_edit", o.value);
|
|
2084
2240
|
}, l = () => {
|
|
2085
2241
|
t("add");
|
|
2086
|
-
}, u =
|
|
2242
|
+
}, u = Me(() => {
|
|
2087
2243
|
let r = a.value;
|
|
2088
2244
|
e.field?.is_hide && (a.value = !1, a.value !== r && (a.value ? (n.value[e.field.name] = null, t("update_model", {
|
|
2089
2245
|
add_key: e.field.name,
|
|
@@ -2096,7 +2252,7 @@ var Ct = /*#__PURE__*/ n(xt, [["render", St]]), wt = { key: 0 }, Tt = { key: 0 }
|
|
|
2096
2252
|
let a = n[t], o = e.formModel[a.watchKey], s;
|
|
2097
2253
|
s = a.class_name ? i(a.value, a.class_name) : a.value;
|
|
2098
2254
|
let c, l;
|
|
2099
|
-
s instanceof Array && ([c, l] = s), a.operator == "lt" ? typeof c == "number" ?
|
|
2255
|
+
s instanceof Array && ([c, l] = s), a.operator == "lt" ? typeof c == "number" ? y(o) ? r.push(!1) : o < c ? r.push(!0) : r.push(!1) : $(c) && (y(o) ? r.push(!1) : Y(o).isBefore(Y(c)) ? r.push(!0) : r.push(!1)) : a.operator == "lte" ? typeof c == "number" ? y(o) ? r.push(!1) : o <= c ? r.push(!0) : r.push(!1) : $(c) && (y(o) ? r.push(!1) : Y(o).isBefore(Y(c)) || Y(o).isSame(Y(c)) ? r.push(!0) : r.push(!1)) : a.operator == "gt" ? typeof c == "number" ? y(o) ? r.push(!1) : o > c ? r.push(!0) : r.push(!1) : $(c) && (y(o) ? r.push(!1) : Y(o).isAfter(Y(c)) ? r.push(!0) : r.push(!1)) : a.operator == "gte" ? typeof c == "number" ? y(o) ? r.push(!1) : o >= c ? r.push(!0) : r.push(!1) : $(c) && (y(o) ? r.push(!1) : Y(o).isAfter(Y(c)) || Y(o).isSame(Y(c)) ? r.push(!0) : r.push(!1)) : a.operator == "between" ? typeof c == "number" && typeof l == "number" && c && l ? y(o) ? r.push(!1) : o >= c && o <= l ? r.push(!0) : r.push(!1) : $(c) && (y(o) ? r.push(!1) : (Y(o).isAfter(Y(c)) || Y(o).isSame(Y(c))) && (Y(o).isBefore(Y(l)) || Y(o).isSame(Y(l))) ? r.push(!0) : r.push(!1)) : a.operator == "notbetween" ? typeof c == "number" && typeof l == "number" && c && l ? y(o) ? r.push(!1) : o < c || o > l ? r.push(!0) : r.push(!1) : $(c) && (y(o) ? r.push(!1) : Y(o).isBefore(Y(c)) || Y(o).isAfter(Y(l)) ? r.push(!0) : r.push(!1)) : a.operator == "in" ? o instanceof Array ? s.filter((e) => o.includes(e)).length > 0 ? r.push(!0) : r.push(!1) : (typeof o == "string" || typeof o == "number" || y(o)) && (s.find((e) => o == e) ? r.push(!0) : r.push(!1)) : a.operator == "eq" ? o === c ? r.push(!0) : r.push(!1) : a.operator == "contains" ? o.toString().indexOf(c) > -1 ? r.push(!0) : r.push(!1) : a.operator == "startswith" ? o.toString().startsWith(c) ? r.push(!0) : r.push(!1) : a.operator == "notin" ? o instanceof Array ? s.filter((e) => o.includes(e)).length > 0 ? r.push(!0) : r.push(!1) : (typeof o == "string" || typeof o == "number" || y(o)) && (s.find((e) => o == e) ? r.push(!1) : r.push(!0)) : a.operator == "notcontains" ? o.toString().indexOf(c) == -1 ? r.push(!0) : r.push(!1) : a.operator == "_eq" || (a.operator == "json_list_not_blank_not_null" ? o ? r.push(!0) : r.push(!1) : a.operator == "json_list_is_blank_is_null" || a.operator == "not_eq" ? o ? r.push(!1) : r.push(!0) : a.operator == "not_blank_not_null" && (o ? r.push(!0) : r.push(!1)));
|
|
2100
2256
|
}
|
|
2101
2257
|
o.push(r);
|
|
2102
2258
|
}
|
|
@@ -2122,7 +2278,7 @@ var Ct = /*#__PURE__*/ n(xt, [["render", St]]), wt = { key: 0 }, Tt = { key: 0 }
|
|
|
2122
2278
|
n == r?.[e.field.valueKey ? e.field.valueKey : "value"] && t.push(r?.[e.field.labelKey ? e.field.labelKey : "label"]);
|
|
2123
2279
|
});
|
|
2124
2280
|
}), r = t.toString();
|
|
2125
|
-
} else if (e.field.type === "select") if (
|
|
2281
|
+
} else if (e.field.type === "select") if (Ne(n)) {
|
|
2126
2282
|
let t = [];
|
|
2127
2283
|
e.options.forEach((r) => {
|
|
2128
2284
|
n.forEach((n) => {
|
|
@@ -2166,7 +2322,7 @@ var Ct = /*#__PURE__*/ n(xt, [["render", St]]), wt = { key: 0 }, Tt = { key: 0 }
|
|
|
2166
2322
|
}
|
|
2167
2323
|
s.value && t("update:is_edit", o.value);
|
|
2168
2324
|
});
|
|
2169
|
-
let { t: p } =
|
|
2325
|
+
let { t: p } = Pe();
|
|
2170
2326
|
return {
|
|
2171
2327
|
t: p,
|
|
2172
2328
|
is_show_field: a,
|
|
@@ -2180,49 +2336,51 @@ var Ct = /*#__PURE__*/ n(xt, [["render", St]]), wt = { key: 0 }, Tt = { key: 0 }
|
|
|
2180
2336
|
};
|
|
2181
2337
|
},
|
|
2182
2338
|
components: {
|
|
2183
|
-
IconSelect:
|
|
2184
|
-
RichTextEditor:
|
|
2185
|
-
Upload:
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2339
|
+
IconSelect: d,
|
|
2340
|
+
RichTextEditor: o,
|
|
2341
|
+
Upload: m,
|
|
2342
|
+
ExcelUpload: kt,
|
|
2343
|
+
RemoteCascaderPro: f,
|
|
2344
|
+
RemoteTreeSelectPro: c,
|
|
2345
|
+
RemoteSelectPro: C,
|
|
2346
|
+
RemoteComplete: h,
|
|
2347
|
+
AttributeTable: w,
|
|
2348
|
+
AttributeNomTable: le,
|
|
2349
|
+
RemoteFilterSelect: ce,
|
|
2350
|
+
RemoteModal: oe,
|
|
2351
|
+
RemoteSelect: te,
|
|
2195
2352
|
RemoteCascader: ne,
|
|
2196
|
-
RemoteTreeSelect:
|
|
2197
|
-
RemoteTable:
|
|
2198
|
-
JsonStr:
|
|
2199
|
-
JsonObj:
|
|
2200
|
-
RemoteText:
|
|
2201
|
-
RemoteTablePro:
|
|
2202
|
-
FormTemplate:
|
|
2203
|
-
DynamicValueField:
|
|
2204
|
-
FormButton:
|
|
2205
|
-
PlusOutlined:
|
|
2206
|
-
MonthPicker:
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2353
|
+
RemoteTreeSelect: S,
|
|
2354
|
+
RemoteTable: se,
|
|
2355
|
+
JsonStr: ue,
|
|
2356
|
+
JsonObj: T,
|
|
2357
|
+
RemoteText: de,
|
|
2358
|
+
RemoteTablePro: l,
|
|
2359
|
+
FormTemplate: Ct,
|
|
2360
|
+
DynamicValueField: Tt,
|
|
2361
|
+
FormButton: Ot,
|
|
2362
|
+
PlusOutlined: Ae,
|
|
2363
|
+
MonthPicker: g,
|
|
2364
|
+
ModelChoicesSelect: At,
|
|
2365
|
+
MonthRangePicker: p,
|
|
2366
|
+
CodeEditor: v,
|
|
2367
|
+
TinymceEditor: ee,
|
|
2368
|
+
InputNumberPro: Ft,
|
|
2369
|
+
InputPro: Vt
|
|
2212
2370
|
}
|
|
2213
|
-
}),
|
|
2371
|
+
}), Gt = {
|
|
2214
2372
|
key: 0,
|
|
2215
2373
|
style: {
|
|
2216
2374
|
height: "62px",
|
|
2217
2375
|
width: "100%"
|
|
2218
2376
|
}
|
|
2219
|
-
},
|
|
2377
|
+
}, Kt = { key: 1 }, qt = { key: 0 }, Jt = { key: 1 }, Yt = {
|
|
2220
2378
|
key: 3,
|
|
2221
2379
|
style: {
|
|
2222
2380
|
height: "30px",
|
|
2223
2381
|
position: "relative"
|
|
2224
2382
|
}
|
|
2225
|
-
},
|
|
2383
|
+
}, Xt = { style: {
|
|
2226
2384
|
position: "absolute",
|
|
2227
2385
|
bottom: "0",
|
|
2228
2386
|
padding: "0",
|
|
@@ -2230,39 +2388,39 @@ var Ct = /*#__PURE__*/ n(xt, [["render", St]]), wt = { key: 0 }, Tt = { key: 0 }
|
|
|
2230
2388
|
"font-weight": "bolder",
|
|
2231
2389
|
"font-size": "17px"
|
|
2232
2390
|
} };
|
|
2233
|
-
function
|
|
2234
|
-
let o = W("a-switch"), s = W("plus-outlined"), c = W("a-button"), l = W("a-tag"), u = W("a-rate"), d = W("InputPro"), f = W("a-input-number"), p = W("InputNumberPro"),
|
|
2235
|
-
return B(),
|
|
2236
|
-
e.field.type !== "divider" && e.field.type !== "button" && (e.field?.is_search_show !== !1 || e.field_render_show) ? (B(),
|
|
2391
|
+
function Zt(e, t, n, r, i, a) {
|
|
2392
|
+
let o = W("a-switch"), s = W("plus-outlined"), c = W("a-button"), l = W("a-tag"), u = W("a-rate"), d = W("InputPro"), f = W("a-input-number"), p = W("InputNumberPro"), m = W("a-input"), h = W("attribute-table"), g = W("attribute-nom-table"), _ = W("a-textarea"), ee = W("json-str"), v = W("json-obj"), te = W("rich-text-editor"), ne = W("a-input-password"), y = W("a-select-option"), b = W("a-select"), x = W("a-cascader"), re = W("remote-cascader"), ie = W("remote-cascader-pro"), ae = W("ModelChoicesSelect"), oe = W("month-picker"), S = W("a-date-picker"), se = W("a-range-picker"), C = W("month-range-picker"), ce = W("a-time-picker"), le = W("a-time-range-picker"), w = W("a-radio"), ue = W("a-radio-group"), T = W("a-checkbox"), de = W("a-checkbox-group"), fe = W("a-tree-select"), E = W("remote-filter-select"), pe = W("remote-select"), O = W("remote-select-pro"), me = W("remote-complete"), I = W("remote-tree-select"), he = W("remote-tree-select-pro"), ge = W("remote-modal"), L = W("remote-table"), ve = W("remote-table-pro"), ye = W("FormTemplate"), z = W("DynamicValueField"), be = W("remote-text"), V = W("upload"), H = W("excel-upload"), Se = W("code-editor"), Ce = W("TinymceEditor"), we = W("icon-select"), q = W("a-form-item"), Te = W("a-divider"), Ee = W("FormButton");
|
|
2393
|
+
return B(), j(D, null, [
|
|
2394
|
+
e.field.type !== "divider" && e.field.type !== "button" && (e.field?.is_search_show !== !1 || e.field_render_show) ? (B(), k(q, _e({
|
|
2237
2395
|
key: 0,
|
|
2238
2396
|
extra: e.field.extra,
|
|
2239
2397
|
name: e.field.name
|
|
2240
|
-
}, e.validateInfos ? e.validateInfos[e.field.name] : null),
|
|
2398
|
+
}, e.validateInfos ? e.validateInfos[e.field.name] : null), N({
|
|
2241
2399
|
default: J(() => [
|
|
2242
|
-
|
|
2243
|
-
e.field.type === "kong" ? (B(),
|
|
2244
|
-
e.field.type === "tag" ? (B(),
|
|
2400
|
+
xe(e.$slots, "default", {}, void 0, !0),
|
|
2401
|
+
e.field.type === "kong" ? (B(), j("div", Gt)) : A("", !0),
|
|
2402
|
+
e.field.type === "tag" ? (B(), j("div", Kt, [e.field.content && e.field.content(e.field, e.model) || e.model ? (B(), k(l, {
|
|
2245
2403
|
key: 0,
|
|
2246
2404
|
color: e.field.color ? e.field.color(e.field, e.model) : "green",
|
|
2247
2405
|
style: R(e.field.style),
|
|
2248
2406
|
onClick: t[1] ||= (t) => e.field.cb ? e.field.cb(e.field, e.model) : ""
|
|
2249
2407
|
}, {
|
|
2250
|
-
default: J(() => [e.field.content ? (B(),
|
|
2408
|
+
default: J(() => [e.field.content ? (B(), j("span", qt, K(e.field.content(e.field, e.model)), 1)) : (B(), j("span", Jt, K(e.model), 1))]),
|
|
2251
2409
|
_: 1
|
|
2252
|
-
}, 8, ["color", "style"])) :
|
|
2253
|
-
e.field.type === "kong_title" ? (B(),
|
|
2410
|
+
}, 8, ["color", "style"])) : A("", !0)])) : A("", !0),
|
|
2411
|
+
e.field.type === "kong_title" ? (B(), j("div", {
|
|
2254
2412
|
key: 2,
|
|
2255
2413
|
style: R("height: " + e.field.height + "px")
|
|
2256
|
-
}, null, 4)) :
|
|
2257
|
-
e.field.type === "title" ? (B(),
|
|
2258
|
-
e.field.type === "rate" ? (B(),
|
|
2414
|
+
}, null, 4)) : A("", !0),
|
|
2415
|
+
e.field.type === "title" ? (B(), j("div", Yt, [M("span", Xt, K(e.field.name), 1)])) : A("", !0),
|
|
2416
|
+
e.field.type === "rate" ? (B(), k(u, {
|
|
2259
2417
|
key: 4,
|
|
2260
2418
|
value: e.model,
|
|
2261
2419
|
"onUpdate:value": t[2] ||= (t) => e.model = t,
|
|
2262
2420
|
disabled: e.field.disabled,
|
|
2263
2421
|
"allow-half": ""
|
|
2264
|
-
}, null, 8, ["value", "disabled"])) :
|
|
2265
|
-
e.field.type === "input" ? (B(),
|
|
2422
|
+
}, null, 8, ["value", "disabled"])) : A("", !0),
|
|
2423
|
+
e.field.type === "input" ? (B(), k(d, {
|
|
2266
2424
|
key: 5,
|
|
2267
2425
|
field: e.field,
|
|
2268
2426
|
value: e.model,
|
|
@@ -2274,8 +2432,8 @@ function Wt(e, t, n, r, i, a) {
|
|
|
2274
2432
|
"value",
|
|
2275
2433
|
"base-key-path",
|
|
2276
2434
|
"worker-host-functions"
|
|
2277
|
-
])) :
|
|
2278
|
-
e.field.type === "money" ? (B(),
|
|
2435
|
+
])) : A("", !0),
|
|
2436
|
+
e.field.type === "money" ? (B(), k(f, {
|
|
2279
2437
|
key: 6,
|
|
2280
2438
|
size: "small",
|
|
2281
2439
|
value: e.model,
|
|
@@ -2301,8 +2459,8 @@ function Wt(e, t, n, r, i, a) {
|
|
|
2301
2459
|
"precision",
|
|
2302
2460
|
"step",
|
|
2303
2461
|
"placeholder"
|
|
2304
|
-
])) :
|
|
2305
|
-
e.field.type === "number" ? (B(),
|
|
2462
|
+
])) : A("", !0),
|
|
2463
|
+
e.field.type === "number" ? (B(), k(p, {
|
|
2306
2464
|
key: 7,
|
|
2307
2465
|
value: e.model,
|
|
2308
2466
|
"onUpdate:value": t[5] ||= (t) => e.model = t,
|
|
@@ -2315,8 +2473,8 @@ function Wt(e, t, n, r, i, a) {
|
|
|
2315
2473
|
"field",
|
|
2316
2474
|
"base-key-path",
|
|
2317
2475
|
"worker-host-functions"
|
|
2318
|
-
])) :
|
|
2319
|
-
e.field.type === "volume" ? (B(),
|
|
2476
|
+
])) : A("", !0),
|
|
2477
|
+
e.field.type === "volume" ? (B(), k(m, {
|
|
2320
2478
|
key: 8,
|
|
2321
2479
|
value: e.model,
|
|
2322
2480
|
"onUpdate:value": t[6] ||= (t) => e.model = t,
|
|
@@ -2337,8 +2495,8 @@ function Wt(e, t, n, r, i, a) {
|
|
|
2337
2495
|
"disabled",
|
|
2338
2496
|
"maxlength",
|
|
2339
2497
|
"placeholder"
|
|
2340
|
-
])) :
|
|
2341
|
-
e.field.type === "weight" ? (B(),
|
|
2498
|
+
])) : A("", !0),
|
|
2499
|
+
e.field.type === "weight" ? (B(), k(m, {
|
|
2342
2500
|
key: 9,
|
|
2343
2501
|
value: e.model,
|
|
2344
2502
|
"onUpdate:value": t[7] ||= (t) => e.model = t,
|
|
@@ -2359,8 +2517,8 @@ function Wt(e, t, n, r, i, a) {
|
|
|
2359
2517
|
"disabled",
|
|
2360
2518
|
"maxlength",
|
|
2361
2519
|
"placeholder"
|
|
2362
|
-
])) :
|
|
2363
|
-
e.field.type === "attributetable" ? (B(),
|
|
2520
|
+
])) : A("", !0),
|
|
2521
|
+
e.field.type === "attributetable" ? (B(), k(h, {
|
|
2364
2522
|
key: 10,
|
|
2365
2523
|
value: e.model,
|
|
2366
2524
|
"onUpdate:value": t[8] ||= (t) => e.model = t,
|
|
@@ -2377,8 +2535,8 @@ function Wt(e, t, n, r, i, a) {
|
|
|
2377
2535
|
"init_model",
|
|
2378
2536
|
"base-key-path",
|
|
2379
2537
|
"worker-host-functions"
|
|
2380
|
-
])) :
|
|
2381
|
-
e.field.type === "attributenomtable" ? (B(),
|
|
2538
|
+
])) : A("", !0),
|
|
2539
|
+
e.field.type === "attributenomtable" ? (B(), k(g, {
|
|
2382
2540
|
key: 11,
|
|
2383
2541
|
size: "small",
|
|
2384
2542
|
value: e.model,
|
|
@@ -2395,8 +2553,8 @@ function Wt(e, t, n, r, i, a) {
|
|
|
2395
2553
|
"init_model",
|
|
2396
2554
|
"base-key-path",
|
|
2397
2555
|
"worker-host-functions"
|
|
2398
|
-
])) :
|
|
2399
|
-
e.field.type === "textarea" ? (B(),
|
|
2556
|
+
])) : A("", !0),
|
|
2557
|
+
e.field.type === "textarea" ? (B(), k(_, {
|
|
2400
2558
|
key: 12,
|
|
2401
2559
|
value: e.model,
|
|
2402
2560
|
"onUpdate:value": t[10] ||= (t) => e.model = t,
|
|
@@ -2415,8 +2573,8 @@ function Wt(e, t, n, r, i, a) {
|
|
|
2415
2573
|
"autocomplete",
|
|
2416
2574
|
"disabled",
|
|
2417
2575
|
"placeholder"
|
|
2418
|
-
])) :
|
|
2419
|
-
e.field.type === "jsonstr" ? (B(),
|
|
2576
|
+
])) : A("", !0),
|
|
2577
|
+
e.field.type === "jsonstr" ? (B(), k(ee, {
|
|
2420
2578
|
key: 13,
|
|
2421
2579
|
value: e.model,
|
|
2422
2580
|
"onUpdate:value": t[11] ||= (t) => e.model = t,
|
|
@@ -2430,8 +2588,8 @@ function Wt(e, t, n, r, i, a) {
|
|
|
2430
2588
|
"disabled",
|
|
2431
2589
|
"rows",
|
|
2432
2590
|
"placeholder"
|
|
2433
|
-
])) :
|
|
2434
|
-
e.field.type === "jsonobj" ? (B(),
|
|
2591
|
+
])) : A("", !0),
|
|
2592
|
+
e.field.type === "jsonobj" ? (B(), k(v, {
|
|
2435
2593
|
key: 14,
|
|
2436
2594
|
value: e.model,
|
|
2437
2595
|
"onUpdate:value": t[12] ||= (t) => e.model = t,
|
|
@@ -2447,8 +2605,8 @@ function Wt(e, t, n, r, i, a) {
|
|
|
2447
2605
|
"mode",
|
|
2448
2606
|
"fullWidthButton",
|
|
2449
2607
|
"darkTheme"
|
|
2450
|
-
])) :
|
|
2451
|
-
e.field.type === "richtexteditor" ? (B(),
|
|
2608
|
+
])) : A("", !0),
|
|
2609
|
+
e.field.type === "richtexteditor" ? (B(), k(te, {
|
|
2452
2610
|
key: 15,
|
|
2453
2611
|
value: e.model,
|
|
2454
2612
|
"onUpdate:value": t[13] ||= (t) => e.model = t,
|
|
@@ -2458,8 +2616,8 @@ function Wt(e, t, n, r, i, a) {
|
|
|
2458
2616
|
"value",
|
|
2459
2617
|
"readOnly",
|
|
2460
2618
|
"placeholder"
|
|
2461
|
-
])) :
|
|
2462
|
-
e.field.type === "password" ? (B(),
|
|
2619
|
+
])) : A("", !0),
|
|
2620
|
+
e.field.type === "password" ? (B(), k(ne, {
|
|
2463
2621
|
key: 16,
|
|
2464
2622
|
value: e.model,
|
|
2465
2623
|
"onUpdate:value": t[14] ||= (t) => e.model = t,
|
|
@@ -2490,8 +2648,8 @@ function Wt(e, t, n, r, i, a) {
|
|
|
2490
2648
|
"precision",
|
|
2491
2649
|
"step",
|
|
2492
2650
|
"visibilityToggle"
|
|
2493
|
-
])) :
|
|
2494
|
-
e.field.type === "select" ? (B(),
|
|
2651
|
+
])) : A("", !0),
|
|
2652
|
+
e.field.type === "select" ? (B(), j(D, { key: 17 }, [e.field.mode === "default" ? (B(), k(b, {
|
|
2495
2653
|
key: 0,
|
|
2496
2654
|
value: e.model,
|
|
2497
2655
|
"onUpdate:value": t[16] ||= (t) => e.model = t,
|
|
@@ -2506,11 +2664,11 @@ function Wt(e, t, n, r, i, a) {
|
|
|
2506
2664
|
size: "small",
|
|
2507
2665
|
style: { width: "100%" }
|
|
2508
2666
|
}, {
|
|
2509
|
-
default: J(() => [(B(!0),
|
|
2667
|
+
default: J(() => [(B(!0), j(D, null, U(e.options, (t) => (B(), k(y, {
|
|
2510
2668
|
key: t[e.field.valueKey ? e.field.valueKey : "value"],
|
|
2511
2669
|
value: t[e.field.valueKey ? e.field.valueKey : "value"]
|
|
2512
2670
|
}, {
|
|
2513
|
-
default: J(() => [
|
|
2671
|
+
default: J(() => [P(K(t[e.field.labelKey ? e.field.labelKey : "label"]), 1)]),
|
|
2514
2672
|
_: 2
|
|
2515
2673
|
}, 1032, ["value"]))), 128))]),
|
|
2516
2674
|
_: 1
|
|
@@ -2523,7 +2681,7 @@ function Wt(e, t, n, r, i, a) {
|
|
|
2523
2681
|
"maxTagCount",
|
|
2524
2682
|
"placeholder",
|
|
2525
2683
|
"show-search"
|
|
2526
|
-
])) : (B(),
|
|
2684
|
+
])) : (B(), k(b, {
|
|
2527
2685
|
key: 1,
|
|
2528
2686
|
value: e.model,
|
|
2529
2687
|
"onUpdate:value": t[17] ||= (t) => e.model = t,
|
|
@@ -2538,11 +2696,11 @@ function Wt(e, t, n, r, i, a) {
|
|
|
2538
2696
|
size: "small",
|
|
2539
2697
|
style: { "min-width": "150px" }
|
|
2540
2698
|
}, {
|
|
2541
|
-
default: J(() => [(B(!0),
|
|
2699
|
+
default: J(() => [(B(!0), j(D, null, U(e.options, (t, n) => (B(), k(y, {
|
|
2542
2700
|
key: n,
|
|
2543
2701
|
value: t[e.field.valueKey ? e.field.valueKey : "value"]
|
|
2544
2702
|
}, {
|
|
2545
|
-
default: J(() => [
|
|
2703
|
+
default: J(() => [P(K(t[e.field.labelKey ? e.field.labelKey : "label"]), 1)]),
|
|
2546
2704
|
_: 2
|
|
2547
2705
|
}, 1032, ["value"]))), 128))]),
|
|
2548
2706
|
_: 1
|
|
@@ -2555,8 +2713,8 @@ function Wt(e, t, n, r, i, a) {
|
|
|
2555
2713
|
"mode",
|
|
2556
2714
|
"placeholder",
|
|
2557
2715
|
"show-search"
|
|
2558
|
-
]))], 64)) :
|
|
2559
|
-
e.field.type === "groupselect" ? (B(),
|
|
2716
|
+
]))], 64)) : A("", !0),
|
|
2717
|
+
e.field.type === "groupselect" ? (B(), j(D, { key: 18 }, [e.field.mode === "default" ? (B(), k(b, {
|
|
2560
2718
|
key: 0,
|
|
2561
2719
|
value: e.model,
|
|
2562
2720
|
"onUpdate:value": t[18] ||= (t) => e.model = t,
|
|
@@ -2585,7 +2743,7 @@ function Wt(e, t, n, r, i, a) {
|
|
|
2585
2743
|
"options",
|
|
2586
2744
|
"placeholder",
|
|
2587
2745
|
"show-search"
|
|
2588
|
-
])) : (B(),
|
|
2746
|
+
])) : (B(), k(b, {
|
|
2589
2747
|
key: 1,
|
|
2590
2748
|
value: e.model,
|
|
2591
2749
|
"onUpdate:value": t[19] ||= (t) => e.model = t,
|
|
@@ -2614,8 +2772,8 @@ function Wt(e, t, n, r, i, a) {
|
|
|
2614
2772
|
"options",
|
|
2615
2773
|
"placeholder",
|
|
2616
2774
|
"show-search"
|
|
2617
|
-
]))], 64)) :
|
|
2618
|
-
e.field.type === "cascader" ? (B(),
|
|
2775
|
+
]))], 64)) : A("", !0),
|
|
2776
|
+
e.field.type === "cascader" ? (B(), k(x, {
|
|
2619
2777
|
key: 19,
|
|
2620
2778
|
value: e.model,
|
|
2621
2779
|
"onUpdate:value": t[20] ||= (t) => e.model = t,
|
|
@@ -2638,8 +2796,8 @@ function Wt(e, t, n, r, i, a) {
|
|
|
2638
2796
|
"changeOnSelect",
|
|
2639
2797
|
"options",
|
|
2640
2798
|
"placeholder"
|
|
2641
|
-
])) :
|
|
2642
|
-
e.field.type === "remotecascader" ? (B(),
|
|
2799
|
+
])) : A("", !0),
|
|
2800
|
+
e.field.type === "remotecascader" ? (B(), k(re, {
|
|
2643
2801
|
key: 20,
|
|
2644
2802
|
value: e.model,
|
|
2645
2803
|
"onUpdate:value": t[21] ||= (t) => e.model = t,
|
|
@@ -2664,8 +2822,8 @@ function Wt(e, t, n, r, i, a) {
|
|
|
2664
2822
|
"label-space",
|
|
2665
2823
|
"search_config",
|
|
2666
2824
|
"value-key"
|
|
2667
|
-
])) :
|
|
2668
|
-
e.field.type === "remotecascaderpro" ? (B(),
|
|
2825
|
+
])) : A("", !0),
|
|
2826
|
+
e.field.type === "remotecascaderpro" ? (B(), k(ie, {
|
|
2669
2827
|
key: 21,
|
|
2670
2828
|
label: e.labelModel,
|
|
2671
2829
|
"onUpdate:label": t[23] ||= (t) => e.labelModel = t,
|
|
@@ -2712,11 +2870,17 @@ function Wt(e, t, n, r, i, a) {
|
|
|
2712
2870
|
"init_watch",
|
|
2713
2871
|
"is_form_design",
|
|
2714
2872
|
"placeholder"
|
|
2715
|
-
])) :
|
|
2716
|
-
e.field.type === "
|
|
2873
|
+
])) : A("", !0),
|
|
2874
|
+
e.field.type === "modelchoicesselect" ? (B(), k(ae, {
|
|
2717
2875
|
key: 22,
|
|
2718
2876
|
value: e.model,
|
|
2719
2877
|
"onUpdate:value": t[25] ||= (t) => e.model = t,
|
|
2878
|
+
field: e.field
|
|
2879
|
+
}, null, 8, ["value", "field"])) : A("", !0),
|
|
2880
|
+
e.field.type === "monthpicker" ? (B(), k(oe, {
|
|
2881
|
+
key: 23,
|
|
2882
|
+
value: e.model,
|
|
2883
|
+
"onUpdate:value": t[26] ||= (t) => e.model = t,
|
|
2720
2884
|
"allow-clear": e.field.allowClear,
|
|
2721
2885
|
autocomplete: e.field.autocomplete == null ? "off" : e.field.autocomplete,
|
|
2722
2886
|
"default-value": e.field.defaultValue,
|
|
@@ -2741,11 +2905,11 @@ function Wt(e, t, n, r, i, a) {
|
|
|
2741
2905
|
"start_offset_day",
|
|
2742
2906
|
"end_offset_day",
|
|
2743
2907
|
"fix_day"
|
|
2744
|
-
])) :
|
|
2745
|
-
e.field.type === "datepicker" ? (B(),
|
|
2746
|
-
key:
|
|
2908
|
+
])) : A("", !0),
|
|
2909
|
+
e.field.type === "datepicker" ? (B(), k(S, {
|
|
2910
|
+
key: 24,
|
|
2747
2911
|
value: e.model,
|
|
2748
|
-
"onUpdate:value": t[
|
|
2912
|
+
"onUpdate:value": t[27] ||= (t) => e.model = t,
|
|
2749
2913
|
"allow-clear": e.field.allowClear,
|
|
2750
2914
|
autocomplete: e.field.autocomplete == null ? "off" : e.field.autocomplete,
|
|
2751
2915
|
"default-value": e.field.defaultValue,
|
|
@@ -2768,11 +2932,11 @@ function Wt(e, t, n, r, i, a) {
|
|
|
2768
2932
|
"placeholder",
|
|
2769
2933
|
"show-time",
|
|
2770
2934
|
"value-format"
|
|
2771
|
-
])) :
|
|
2772
|
-
e.field.type === "rangepicker" ? (B(),
|
|
2773
|
-
key:
|
|
2935
|
+
])) : A("", !0),
|
|
2936
|
+
e.field.type === "rangepicker" ? (B(), k(se, {
|
|
2937
|
+
key: 25,
|
|
2774
2938
|
value: e.model,
|
|
2775
|
-
"onUpdate:value": t[
|
|
2939
|
+
"onUpdate:value": t[28] ||= (t) => e.model = t,
|
|
2776
2940
|
"allow-clear": e.field.allowClear,
|
|
2777
2941
|
"default-value": e.field.defaultValue || [],
|
|
2778
2942
|
disabled: e.field.disabled,
|
|
@@ -2793,11 +2957,11 @@ function Wt(e, t, n, r, i, a) {
|
|
|
2793
2957
|
"show-time",
|
|
2794
2958
|
"value-format",
|
|
2795
2959
|
"picker"
|
|
2796
|
-
])) :
|
|
2797
|
-
e.field.type === "monthrangepicker" ? (B(),
|
|
2798
|
-
key:
|
|
2960
|
+
])) : A("", !0),
|
|
2961
|
+
e.field.type === "monthrangepicker" ? (B(), k(C, {
|
|
2962
|
+
key: 26,
|
|
2799
2963
|
value: e.model,
|
|
2800
|
-
"onUpdate:value": t[
|
|
2964
|
+
"onUpdate:value": t[29] ||= (t) => e.model = t,
|
|
2801
2965
|
"allow-clear": e.field.allowClear,
|
|
2802
2966
|
"default-value": e.field.defaultValue || [],
|
|
2803
2967
|
disabled: e.field.disabled,
|
|
@@ -2820,11 +2984,11 @@ function Wt(e, t, n, r, i, a) {
|
|
|
2820
2984
|
"start_offset_day",
|
|
2821
2985
|
"end_offset_day",
|
|
2822
2986
|
"fix_day"
|
|
2823
|
-
])) :
|
|
2824
|
-
e.field.type === "timepicker" ? (B(),
|
|
2825
|
-
key:
|
|
2987
|
+
])) : A("", !0),
|
|
2988
|
+
e.field.type === "timepicker" ? (B(), k(ce, {
|
|
2989
|
+
key: 27,
|
|
2826
2990
|
value: e.model,
|
|
2827
|
-
"onUpdate:value": t[
|
|
2991
|
+
"onUpdate:value": t[30] ||= (t) => e.model = t,
|
|
2828
2992
|
"allow-clear": e.field.allowClear,
|
|
2829
2993
|
"default-value": e.field.defaultValue,
|
|
2830
2994
|
disabled: e.field.disabled,
|
|
@@ -2841,11 +3005,11 @@ function Wt(e, t, n, r, i, a) {
|
|
|
2841
3005
|
"format",
|
|
2842
3006
|
"placeholder",
|
|
2843
3007
|
"value-format"
|
|
2844
|
-
])) :
|
|
2845
|
-
e.field.type === "timerangepicker" ? (B(),
|
|
2846
|
-
key:
|
|
3008
|
+
])) : A("", !0),
|
|
3009
|
+
e.field.type === "timerangepicker" ? (B(), k(le, {
|
|
3010
|
+
key: 28,
|
|
2847
3011
|
value: e.model,
|
|
2848
|
-
"onUpdate:value": t[
|
|
3012
|
+
"onUpdate:value": t[31] ||= (t) => e.model = t,
|
|
2849
3013
|
"allow-clear": e.field.allowClear,
|
|
2850
3014
|
"default-value": e.field.defaultValue,
|
|
2851
3015
|
disabled: e.field.disabled,
|
|
@@ -2862,21 +3026,21 @@ function Wt(e, t, n, r, i, a) {
|
|
|
2862
3026
|
"format",
|
|
2863
3027
|
"placeholder",
|
|
2864
3028
|
"value-format"
|
|
2865
|
-
])) :
|
|
2866
|
-
e.field.type === "radio" ? (B(),
|
|
2867
|
-
key:
|
|
3029
|
+
])) : A("", !0),
|
|
3030
|
+
e.field.type === "radio" ? (B(), k(ue, {
|
|
3031
|
+
key: 29,
|
|
2868
3032
|
value: e.model,
|
|
2869
|
-
"onUpdate:value": t[
|
|
3033
|
+
"onUpdate:value": t[32] ||= (t) => e.model = t,
|
|
2870
3034
|
"default-value": e.field.defaultValue,
|
|
2871
3035
|
disabled: e.field.disabled,
|
|
2872
3036
|
size: "small"
|
|
2873
3037
|
}, {
|
|
2874
|
-
default: J(() => [(B(!0),
|
|
3038
|
+
default: J(() => [(B(!0), j(D, null, U(e.options, (t) => (B(), k(w, {
|
|
2875
3039
|
key: t[e.field.valueKey ? e.field.valueKey : "value"],
|
|
2876
3040
|
disabled: t.disabled,
|
|
2877
3041
|
value: t[e.field.valueKey ? e.field.valueKey : "value"]
|
|
2878
3042
|
}, {
|
|
2879
|
-
default: J(() => [
|
|
3043
|
+
default: J(() => [P(K(t[e.field.labelKey ? e.field.labelKey : "label"]), 1)]),
|
|
2880
3044
|
_: 2
|
|
2881
3045
|
}, 1032, ["disabled", "value"]))), 128))]),
|
|
2882
3046
|
_: 1
|
|
@@ -2884,21 +3048,21 @@ function Wt(e, t, n, r, i, a) {
|
|
|
2884
3048
|
"value",
|
|
2885
3049
|
"default-value",
|
|
2886
3050
|
"disabled"
|
|
2887
|
-
])) :
|
|
2888
|
-
e.field.type === "checkbox" ? (B(),
|
|
2889
|
-
key:
|
|
3051
|
+
])) : A("", !0),
|
|
3052
|
+
e.field.type === "checkbox" ? (B(), k(de, {
|
|
3053
|
+
key: 30,
|
|
2890
3054
|
value: e.model,
|
|
2891
|
-
"onUpdate:value": t[
|
|
3055
|
+
"onUpdate:value": t[33] ||= (t) => e.model = t,
|
|
2892
3056
|
"default-value": e.field.defaultValue,
|
|
2893
3057
|
disabled: e.field.disabled,
|
|
2894
3058
|
size: "small"
|
|
2895
3059
|
}, {
|
|
2896
|
-
default: J(() => [(B(!0),
|
|
3060
|
+
default: J(() => [(B(!0), j(D, null, U(e.options, (t) => (B(), k(T, {
|
|
2897
3061
|
key: t[e.field.valueKey ? e.field.valueKey : "value"],
|
|
2898
3062
|
disabled: t.disabled,
|
|
2899
3063
|
value: t[e.field.valueKey ? e.field.valueKey : "value"]
|
|
2900
3064
|
}, {
|
|
2901
|
-
default: J(() => [
|
|
3065
|
+
default: J(() => [P(K(t[e.field.labelKey ? e.field.labelKey : "label"]), 1)]),
|
|
2902
3066
|
_: 2
|
|
2903
3067
|
}, 1032, ["disabled", "value"]))), 128))]),
|
|
2904
3068
|
_: 1
|
|
@@ -2906,11 +3070,11 @@ function Wt(e, t, n, r, i, a) {
|
|
|
2906
3070
|
"value",
|
|
2907
3071
|
"default-value",
|
|
2908
3072
|
"disabled"
|
|
2909
|
-
])) :
|
|
2910
|
-
e.field.type === "treeselect" ? (B(),
|
|
2911
|
-
key:
|
|
3073
|
+
])) : A("", !0),
|
|
3074
|
+
e.field.type === "treeselect" ? (B(), k(fe, {
|
|
3075
|
+
key: 31,
|
|
2912
3076
|
value: e.model,
|
|
2913
|
-
"onUpdate:value": t[
|
|
3077
|
+
"onUpdate:value": t[34] ||= (t) => e.model = t,
|
|
2914
3078
|
"allow-clear": e.field.allowClear,
|
|
2915
3079
|
"default-value": e.field.defaultValue,
|
|
2916
3080
|
disabled: e.field.disabled,
|
|
@@ -2933,13 +3097,13 @@ function Wt(e, t, n, r, i, a) {
|
|
|
2933
3097
|
"tree-data",
|
|
2934
3098
|
"tree-label-prop",
|
|
2935
3099
|
"tree-node-filter-prop"
|
|
2936
|
-
])) :
|
|
2937
|
-
e.field.type === "remotefilterselect" ? (B(),
|
|
2938
|
-
key:
|
|
3100
|
+
])) : A("", !0),
|
|
3101
|
+
e.field.type === "remotefilterselect" ? (B(), k(E, {
|
|
3102
|
+
key: 32,
|
|
2939
3103
|
label: e.labelModel,
|
|
2940
|
-
"onUpdate:label": t[
|
|
3104
|
+
"onUpdate:label": t[35] ||= (t) => e.labelModel = t,
|
|
2941
3105
|
value: e.model,
|
|
2942
|
-
"onUpdate:value": t[
|
|
3106
|
+
"onUpdate:value": t[36] ||= (t) => e.model = t,
|
|
2943
3107
|
field: e.field,
|
|
2944
3108
|
formModel: e.formModel,
|
|
2945
3109
|
"get-data": e.field.getData,
|
|
@@ -2961,13 +3125,13 @@ function Wt(e, t, n, r, i, a) {
|
|
|
2961
3125
|
"label-space",
|
|
2962
3126
|
"search_config",
|
|
2963
3127
|
"value-key"
|
|
2964
|
-
])) :
|
|
2965
|
-
e.field.type === "remoteselect" ? (B(),
|
|
2966
|
-
key:
|
|
3128
|
+
])) : A("", !0),
|
|
3129
|
+
e.field.type === "remoteselect" ? (B(), k(pe, {
|
|
3130
|
+
key: 33,
|
|
2967
3131
|
label: e.labelModel,
|
|
2968
|
-
"onUpdate:label": t[
|
|
3132
|
+
"onUpdate:label": t[37] ||= (t) => e.labelModel = t,
|
|
2969
3133
|
value: e.model,
|
|
2970
|
-
"onUpdate:value": t[
|
|
3134
|
+
"onUpdate:value": t[38] ||= (t) => e.model = t,
|
|
2971
3135
|
field: e.field,
|
|
2972
3136
|
formModel: e.formModel,
|
|
2973
3137
|
"get-data": e.field.getData,
|
|
@@ -2989,13 +3153,13 @@ function Wt(e, t, n, r, i, a) {
|
|
|
2989
3153
|
"label-space",
|
|
2990
3154
|
"search_config",
|
|
2991
3155
|
"value-key"
|
|
2992
|
-
])) :
|
|
2993
|
-
e.field.type === "remoteselectpro" ? (B(), O
|
|
2994
|
-
key:
|
|
3156
|
+
])) : A("", !0),
|
|
3157
|
+
e.field.type === "remoteselectpro" ? (B(), k(O, {
|
|
3158
|
+
key: 34,
|
|
2995
3159
|
label: e.labelModel,
|
|
2996
|
-
"onUpdate:label": t[
|
|
3160
|
+
"onUpdate:label": t[39] ||= (t) => e.labelModel = t,
|
|
2997
3161
|
value: e.model,
|
|
2998
|
-
"onUpdate:value": t[
|
|
3162
|
+
"onUpdate:value": t[40] ||= (t) => e.model = t,
|
|
2999
3163
|
field: e.field,
|
|
3000
3164
|
formModel: e.formModel,
|
|
3001
3165
|
outModel: e.outModel,
|
|
@@ -3037,11 +3201,11 @@ function Wt(e, t, n, r, i, a) {
|
|
|
3037
3201
|
"context",
|
|
3038
3202
|
"base-key-path",
|
|
3039
3203
|
"placeholder"
|
|
3040
|
-
])) :
|
|
3041
|
-
e.field.type === "remotecomplete" ? (B(),
|
|
3042
|
-
key:
|
|
3204
|
+
])) : A("", !0),
|
|
3205
|
+
e.field.type === "remotecomplete" ? (B(), k(me, {
|
|
3206
|
+
key: 35,
|
|
3043
3207
|
value: e.model,
|
|
3044
|
-
"onUpdate:value": t[
|
|
3208
|
+
"onUpdate:value": t[41] ||= (t) => e.model = t,
|
|
3045
3209
|
field: e.field,
|
|
3046
3210
|
formModel: e.formModel,
|
|
3047
3211
|
outModel: e.outModel,
|
|
@@ -3076,13 +3240,13 @@ function Wt(e, t, n, r, i, a) {
|
|
|
3076
3240
|
"is_input",
|
|
3077
3241
|
"is_form_design",
|
|
3078
3242
|
"placeholder"
|
|
3079
|
-
])) :
|
|
3080
|
-
e.field.type === "remotetreeselect" ? (B(),
|
|
3081
|
-
key:
|
|
3243
|
+
])) : A("", !0),
|
|
3244
|
+
e.field.type === "remotetreeselect" ? (B(), k(I, {
|
|
3245
|
+
key: 36,
|
|
3082
3246
|
label: e.labelModel,
|
|
3083
|
-
"onUpdate:label": t[
|
|
3247
|
+
"onUpdate:label": t[42] ||= (t) => e.labelModel = t,
|
|
3084
3248
|
value: e.model,
|
|
3085
|
-
"onUpdate:value": t[
|
|
3249
|
+
"onUpdate:value": t[43] ||= (t) => e.model = t,
|
|
3086
3250
|
"allow-clear": e.field.allowClear,
|
|
3087
3251
|
"default-value": e.field.defaultValue,
|
|
3088
3252
|
disabled: e.field.disabled,
|
|
@@ -3104,13 +3268,13 @@ function Wt(e, t, n, r, i, a) {
|
|
|
3104
3268
|
"label-key",
|
|
3105
3269
|
"search_config",
|
|
3106
3270
|
"value-key"
|
|
3107
|
-
])) :
|
|
3108
|
-
e.field.type === "remotetreeselectpro" ? (B(),
|
|
3109
|
-
key:
|
|
3271
|
+
])) : A("", !0),
|
|
3272
|
+
e.field.type === "remotetreeselectpro" ? (B(), k(he, {
|
|
3273
|
+
key: 37,
|
|
3110
3274
|
label: e.labelModel,
|
|
3111
|
-
"onUpdate:label": t[
|
|
3275
|
+
"onUpdate:label": t[44] ||= (t) => e.labelModel = t,
|
|
3112
3276
|
value: e.model,
|
|
3113
|
-
"onUpdate:value": t[
|
|
3277
|
+
"onUpdate:value": t[45] ||= (t) => e.model = t,
|
|
3114
3278
|
"allow-clear": e.field.allowClear,
|
|
3115
3279
|
"default-value": e.field.defaultValue,
|
|
3116
3280
|
disabled: e.field.disabled,
|
|
@@ -3150,13 +3314,13 @@ function Wt(e, t, n, r, i, a) {
|
|
|
3150
3314
|
"init_watch",
|
|
3151
3315
|
"is_form_design",
|
|
3152
3316
|
"placeholder"
|
|
3153
|
-
])) :
|
|
3154
|
-
e.field.type === "remotemodal" ? (B(),
|
|
3155
|
-
key:
|
|
3317
|
+
])) : A("", !0),
|
|
3318
|
+
e.field.type === "remotemodal" ? (B(), k(ge, {
|
|
3319
|
+
key: 38,
|
|
3156
3320
|
label: e.labelModel,
|
|
3157
|
-
"onUpdate:label": t[
|
|
3321
|
+
"onUpdate:label": t[46] ||= (t) => e.labelModel = t,
|
|
3158
3322
|
value: e.model,
|
|
3159
|
-
"onUpdate:value": t[
|
|
3323
|
+
"onUpdate:value": t[47] ||= (t) => e.model = t,
|
|
3160
3324
|
columns: e.field.columns,
|
|
3161
3325
|
field: e.field,
|
|
3162
3326
|
field_status: e.field.field_status,
|
|
@@ -3176,11 +3340,11 @@ function Wt(e, t, n, r, i, a) {
|
|
|
3176
3340
|
"modalType",
|
|
3177
3341
|
"search_config",
|
|
3178
3342
|
"watch"
|
|
3179
|
-
])) :
|
|
3180
|
-
e.field.type === "remotetable" ? (B(),
|
|
3181
|
-
key:
|
|
3343
|
+
])) : A("", !0),
|
|
3344
|
+
e.field.type === "remotetable" ? (B(), k(L, {
|
|
3345
|
+
key: 39,
|
|
3182
3346
|
value: e.model,
|
|
3183
|
-
"onUpdate:value": t[
|
|
3347
|
+
"onUpdate:value": t[48] ||= (t) => e.model = t,
|
|
3184
3348
|
columns: e.field.columns,
|
|
3185
3349
|
formModel: e.formModel,
|
|
3186
3350
|
field: e.field,
|
|
@@ -3205,11 +3369,11 @@ function Wt(e, t, n, r, i, a) {
|
|
|
3205
3369
|
"watch",
|
|
3206
3370
|
"base-key-path",
|
|
3207
3371
|
"worker-host-functions"
|
|
3208
|
-
])) :
|
|
3209
|
-
e.field.type === "remotetablepro" && !e.self_is_edit ? (B(),
|
|
3210
|
-
key:
|
|
3372
|
+
])) : A("", !0),
|
|
3373
|
+
e.field.type === "remotetablepro" && !e.self_is_edit ? (B(), k(ve, {
|
|
3374
|
+
key: 40,
|
|
3211
3375
|
value: e.model,
|
|
3212
|
-
"onUpdate:value": t[
|
|
3376
|
+
"onUpdate:value": t[49] ||= (t) => e.model = t,
|
|
3213
3377
|
columns: e.field.columns,
|
|
3214
3378
|
formModel: e.formModel,
|
|
3215
3379
|
field: e.field,
|
|
@@ -3240,11 +3404,11 @@ function Wt(e, t, n, r, i, a) {
|
|
|
3240
3404
|
"global-inner-model",
|
|
3241
3405
|
"base-key-path",
|
|
3242
3406
|
"worker-host-functions"
|
|
3243
|
-
])) :
|
|
3244
|
-
e.field.type === "formtemplate" ? (B(),
|
|
3245
|
-
key:
|
|
3407
|
+
])) : A("", !0),
|
|
3408
|
+
e.field.type === "formtemplate" ? (B(), k(ye, {
|
|
3409
|
+
key: 41,
|
|
3246
3410
|
value: e.model,
|
|
3247
|
-
"onUpdate:value": t[
|
|
3411
|
+
"onUpdate:value": t[50] ||= (t) => e.model = t,
|
|
3248
3412
|
columns: e.field.columns,
|
|
3249
3413
|
formModel: e.formModel,
|
|
3250
3414
|
field: e.field,
|
|
@@ -3285,11 +3449,11 @@ function Wt(e, t, n, r, i, a) {
|
|
|
3285
3449
|
"base-key-path",
|
|
3286
3450
|
"worker-host-functions",
|
|
3287
3451
|
"contextOptions"
|
|
3288
|
-
])) :
|
|
3289
|
-
e.field.type === "dynamicvaluefield" ? (B(),
|
|
3290
|
-
key:
|
|
3452
|
+
])) : A("", !0),
|
|
3453
|
+
e.field.type === "dynamicvaluefield" ? (B(), k(z, {
|
|
3454
|
+
key: 42,
|
|
3291
3455
|
value: e.model,
|
|
3292
|
-
"onUpdate:value": t[
|
|
3456
|
+
"onUpdate:value": t[51] ||= (t) => e.model = t,
|
|
3293
3457
|
columns: e.field.columns,
|
|
3294
3458
|
formModel: e.formModel,
|
|
3295
3459
|
field: e.field,
|
|
@@ -3324,11 +3488,11 @@ function Wt(e, t, n, r, i, a) {
|
|
|
3324
3488
|
"context",
|
|
3325
3489
|
"base-key-path",
|
|
3326
3490
|
"worker-host-functions"
|
|
3327
|
-
])) :
|
|
3328
|
-
e.field.type === "remotetext" ? (B(),
|
|
3329
|
-
key:
|
|
3491
|
+
])) : A("", !0),
|
|
3492
|
+
e.field.type === "remotetext" ? (B(), k(be, {
|
|
3493
|
+
key: 43,
|
|
3330
3494
|
value: e.model,
|
|
3331
|
-
"onUpdate:value": t[
|
|
3495
|
+
"onUpdate:value": t[52] ||= (t) => e.model = t,
|
|
3332
3496
|
columns: e.field.columns,
|
|
3333
3497
|
formModel: e.formModel,
|
|
3334
3498
|
field: e.field,
|
|
@@ -3347,11 +3511,11 @@ function Wt(e, t, n, r, i, a) {
|
|
|
3347
3511
|
"modalType",
|
|
3348
3512
|
"search_config",
|
|
3349
3513
|
"watch"
|
|
3350
|
-
])) :
|
|
3351
|
-
e.field.type === "upload" ? (B(),
|
|
3352
|
-
key:
|
|
3514
|
+
])) : A("", !0),
|
|
3515
|
+
e.field.type === "upload" ? (B(), k(V, {
|
|
3516
|
+
key: 44,
|
|
3353
3517
|
value: e.model,
|
|
3354
|
-
"onUpdate:value": t[
|
|
3518
|
+
"onUpdate:value": t[53] ||= (t) => e.model = t,
|
|
3355
3519
|
access_type: e.field.access_type,
|
|
3356
3520
|
group: e.field.group,
|
|
3357
3521
|
listType: e.field.listType,
|
|
@@ -3364,11 +3528,28 @@ function Wt(e, t, n, r, i, a) {
|
|
|
3364
3528
|
"listType",
|
|
3365
3529
|
"maxCount",
|
|
3366
3530
|
"acceptList"
|
|
3367
|
-
])) :
|
|
3368
|
-
e.field.type === "
|
|
3369
|
-
key:
|
|
3531
|
+
])) : A("", !0),
|
|
3532
|
+
e.field.type === "excelupload" ? (B(), k(H, {
|
|
3533
|
+
key: 45,
|
|
3534
|
+
value: e.model,
|
|
3535
|
+
"onUpdate:value": t[54] ||= (t) => e.model = t,
|
|
3536
|
+
access_type: e.field.access_type,
|
|
3537
|
+
group: e.field.group,
|
|
3538
|
+
"max-count": e.field.maxCount,
|
|
3539
|
+
disabled: e.field.disabled,
|
|
3540
|
+
"read-only": !e.is_edit
|
|
3541
|
+
}, null, 8, [
|
|
3542
|
+
"value",
|
|
3543
|
+
"access_type",
|
|
3544
|
+
"group",
|
|
3545
|
+
"max-count",
|
|
3546
|
+
"disabled",
|
|
3547
|
+
"read-only"
|
|
3548
|
+
])) : A("", !0),
|
|
3549
|
+
e.field.type === "codeeditor" ? (B(), k(Se, {
|
|
3550
|
+
key: 46,
|
|
3370
3551
|
editorValue: e.model,
|
|
3371
|
-
"onUpdate:editorValue": t[
|
|
3552
|
+
"onUpdate:editorValue": t[55] ||= (t) => e.model = t,
|
|
3372
3553
|
options: e.field.options,
|
|
3373
3554
|
mode: e.field.mode,
|
|
3374
3555
|
lineWrapping: e.field.lineWrapping
|
|
@@ -3377,49 +3558,49 @@ function Wt(e, t, n, r, i, a) {
|
|
|
3377
3558
|
"options",
|
|
3378
3559
|
"mode",
|
|
3379
3560
|
"lineWrapping"
|
|
3380
|
-
])) :
|
|
3381
|
-
e.field.type === "tinymceeditor" ? (B(),
|
|
3382
|
-
key:
|
|
3561
|
+
])) : A("", !0),
|
|
3562
|
+
e.field.type === "tinymceeditor" ? (B(), k(Ce, {
|
|
3563
|
+
key: 47,
|
|
3383
3564
|
modelValue: e.model,
|
|
3384
|
-
"onUpdate:modelValue": t[
|
|
3565
|
+
"onUpdate:modelValue": t[56] ||= (t) => e.model = t,
|
|
3385
3566
|
options: e.field.options,
|
|
3386
3567
|
mode: e.field.mode
|
|
3387
3568
|
}, null, 8, [
|
|
3388
3569
|
"modelValue",
|
|
3389
3570
|
"options",
|
|
3390
3571
|
"mode"
|
|
3391
|
-
])) :
|
|
3392
|
-
e.field.type === "iconselect" ? (B(),
|
|
3393
|
-
key:
|
|
3572
|
+
])) : A("", !0),
|
|
3573
|
+
e.field.type === "iconselect" ? (B(), k(we, {
|
|
3574
|
+
key: 48,
|
|
3394
3575
|
value: e.model,
|
|
3395
|
-
"onUpdate:value": t[
|
|
3576
|
+
"onUpdate:value": t[57] ||= (t) => e.model = t,
|
|
3396
3577
|
placeholder: e.field.placeholder_i18n == null ? e.field.placeholder ? e.field.placeholder : e.$t("请选择") + e.field.label : e.t(e.field.placeholder_i18n)
|
|
3397
|
-
}, null, 8, ["value", "placeholder"])) :
|
|
3398
|
-
e.field.type === "rate" ? (B(),
|
|
3399
|
-
key:
|
|
3578
|
+
}, null, 8, ["value", "placeholder"])) : A("", !0),
|
|
3579
|
+
e.field.type === "rate" ? (B(), k(u, {
|
|
3580
|
+
key: 49,
|
|
3400
3581
|
value: e.model,
|
|
3401
|
-
"onUpdate:value": t[
|
|
3582
|
+
"onUpdate:value": t[58] ||= (t) => e.model = t,
|
|
3402
3583
|
count: e.field.count ? e.field.count : 5,
|
|
3403
3584
|
"allow-half": e.field.allowHalf
|
|
3404
3585
|
}, null, 8, [
|
|
3405
3586
|
"value",
|
|
3406
3587
|
"count",
|
|
3407
3588
|
"allow-half"
|
|
3408
|
-
])) :
|
|
3409
|
-
e.field.type === "radio-color" ? (B(),
|
|
3410
|
-
key:
|
|
3589
|
+
])) : A("", !0),
|
|
3590
|
+
e.field.type === "radio-color" ? (B(), k(ue, {
|
|
3591
|
+
key: 50,
|
|
3411
3592
|
value: e.model,
|
|
3412
|
-
"onUpdate:value": t[
|
|
3593
|
+
"onUpdate:value": t[59] ||= (t) => e.model = t,
|
|
3413
3594
|
"default-value": e.field.defaultValue,
|
|
3414
3595
|
disabled: e.field.disabled,
|
|
3415
3596
|
size: "small"
|
|
3416
3597
|
}, {
|
|
3417
|
-
default: J(() => [(B(!0),
|
|
3598
|
+
default: J(() => [(B(!0), j(D, null, U(e.options, (t) => (B(), k(w, {
|
|
3418
3599
|
key: t[e.field.valueKey ? e.field.valueKey : "value"],
|
|
3419
3600
|
disabled: t.disabled,
|
|
3420
3601
|
value: t[e.field.valueKey ? e.field.valueKey : "value"]
|
|
3421
3602
|
}, {
|
|
3422
|
-
default: J(() => [
|
|
3603
|
+
default: J(() => [M("div", { style: R({
|
|
3423
3604
|
width: "20px",
|
|
3424
3605
|
height: "20px",
|
|
3425
3606
|
backgroundColor: t[e.field.valueKey ? e.field.valueKey : "value"]
|
|
@@ -3431,13 +3612,13 @@ function Wt(e, t, n, r, i, a) {
|
|
|
3431
3612
|
"value",
|
|
3432
3613
|
"default-value",
|
|
3433
3614
|
"disabled"
|
|
3434
|
-
])) :
|
|
3435
|
-
e.field.type?.startsWith("CustomField") ? (B(),
|
|
3436
|
-
key:
|
|
3615
|
+
])) : A("", !0),
|
|
3616
|
+
e.field.type?.startsWith("CustomField") ? (B(), k(G(e.field.type), {
|
|
3617
|
+
key: 51,
|
|
3437
3618
|
label: e.labelModel,
|
|
3438
|
-
"onUpdate:label": t[
|
|
3619
|
+
"onUpdate:label": t[60] ||= (t) => e.labelModel = t,
|
|
3439
3620
|
value: e.model,
|
|
3440
|
-
"onUpdate:value": t[
|
|
3621
|
+
"onUpdate:value": t[61] ||= (t) => e.model = t,
|
|
3441
3622
|
disabled: e.field.disabled,
|
|
3442
3623
|
field: e.field,
|
|
3443
3624
|
formModel: e.formModel,
|
|
@@ -3457,14 +3638,14 @@ function Wt(e, t, n, r, i, a) {
|
|
|
3457
3638
|
"init_watch",
|
|
3458
3639
|
"is_form_design",
|
|
3459
3640
|
"placeholder"
|
|
3460
|
-
])) :
|
|
3641
|
+
])) : A("", !0)
|
|
3461
3642
|
]),
|
|
3462
3643
|
_: 2
|
|
3463
3644
|
}, [e.is_show_label ? {
|
|
3464
3645
|
name: "label",
|
|
3465
3646
|
fn: J(() => [
|
|
3466
|
-
|
|
3467
|
-
e.is_show_edit ? (B(),
|
|
3647
|
+
P(K(e.is_show_label ? e.field.label_i18n == null ? e.field.label : e.t(e.field.label_i18n) : null) + " ", 1),
|
|
3648
|
+
e.is_show_edit ? (B(), k(o, {
|
|
3468
3649
|
key: 0,
|
|
3469
3650
|
checked: e.self_is_edit,
|
|
3470
3651
|
"onUpdate:checked": t[0] ||= (t) => e.self_is_edit = t,
|
|
@@ -3472,31 +3653,31 @@ function Wt(e, t, n, r, i, a) {
|
|
|
3472
3653
|
onChange: e.handleToggleEdit,
|
|
3473
3654
|
"checked-children": "表单",
|
|
3474
3655
|
"un-checked-children": "列表"
|
|
3475
|
-
}, null, 8, ["checked", "onChange"])) :
|
|
3476
|
-
e.is_show_edit && e.self_is_edit ? (B(),
|
|
3656
|
+
}, null, 8, ["checked", "onChange"])) : A("", !0),
|
|
3657
|
+
e.is_show_edit && e.self_is_edit ? (B(), k(c, {
|
|
3477
3658
|
key: 1,
|
|
3478
3659
|
size: "small",
|
|
3479
3660
|
type: "primary",
|
|
3480
3661
|
onClick: e.handleAdd
|
|
3481
3662
|
}, {
|
|
3482
|
-
icon: J(() => [
|
|
3483
|
-
default: J(() => [t[
|
|
3663
|
+
icon: J(() => [F(s)]),
|
|
3664
|
+
default: J(() => [t[63] ||= P(" 添加分组 ")]),
|
|
3484
3665
|
_: 1
|
|
3485
|
-
}, 8, ["onClick"])) :
|
|
3666
|
+
}, 8, ["onClick"])) : A("", !0)
|
|
3486
3667
|
]),
|
|
3487
3668
|
key: "0"
|
|
3488
|
-
} : void 0]), 1040, ["extra", "name"])) :
|
|
3489
|
-
e.field.type === "divider" ? (B(),
|
|
3669
|
+
} : void 0]), 1040, ["extra", "name"])) : A("", !0),
|
|
3670
|
+
e.field.type === "divider" ? (B(), k(Te, {
|
|
3490
3671
|
key: 1,
|
|
3491
3672
|
orientation: e.field.orientation
|
|
3492
3673
|
}, {
|
|
3493
|
-
default: J(() => [
|
|
3674
|
+
default: J(() => [P(K(e.field.label), 1)]),
|
|
3494
3675
|
_: 1
|
|
3495
|
-
}, 8, ["orientation"])) :
|
|
3496
|
-
e.field.type === "button" ? (B(),
|
|
3676
|
+
}, 8, ["orientation"])) : A("", !0),
|
|
3677
|
+
e.field.type === "button" ? (B(), k(Ee, {
|
|
3497
3678
|
key: 2,
|
|
3498
3679
|
value: e.model,
|
|
3499
|
-
"onUpdate:value": t[
|
|
3680
|
+
"onUpdate:value": t[62] ||= (t) => e.model = t,
|
|
3500
3681
|
formModel: e.formModel,
|
|
3501
3682
|
field: e.field,
|
|
3502
3683
|
modalType: e.field.modalType,
|
|
@@ -3515,9 +3696,9 @@ function Wt(e, t, n, r, i, a) {
|
|
|
3515
3696
|
"context",
|
|
3516
3697
|
"base-key-path",
|
|
3517
3698
|
"worker-host-functions"
|
|
3518
|
-
])) :
|
|
3699
|
+
])) : A("", !0)
|
|
3519
3700
|
], 64);
|
|
3520
3701
|
}
|
|
3521
|
-
var
|
|
3702
|
+
var Qt = /*#__PURE__*/ r(Wt, [["render", Zt], ["__scopeId", "data-v-2429785e"]]);
|
|
3522
3703
|
//#endregion
|
|
3523
|
-
export {
|
|
3704
|
+
export { Bt as n, Pt as r, Qt as t };
|