@gct-paas/word 0.2.27-beta.1 → 0.2.27-beta.2
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/index.es.js +237 -229
- package/dist/word.css +1 -1
- package/package.json +2 -2
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @gct-paas/word v0.2.27-beta.
|
|
1
|
+
/*! @gct-paas/word v0.2.27-beta.2 */
|
|
2
2
|
import { Fragment, Suspense, Teleport, Transition, TransitionGroup, cloneVNode, computed, createApp, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createStaticVNode, createTextVNode, createVNode, defineAsyncComponent, defineComponent, getCurrentInstance, getCurrentScope, guardReactiveProps, h, inject, isRef, isVNode, markRaw, mergeModels, mergeProps, nextTick, normalizeClass, normalizeProps, normalizeStyle, onBeforeMount, onBeforeUnmount, onMounted, onScopeDispose, onUnmounted, openBlock, provide, reactive, readonly, ref, render, renderList, renderSlot, resolveComponent, resolveDynamicComponent, shallowReactive, shallowRef, toDisplayString, toHandlers, toRaw, toRef, toValue, unref, useAttrs, useCssVars, useModel, useSlots, vModelRadio, vModelSelect, vModelText, vShow, watch, watchEffect, withCtx, withDirectives, withKeys, withModifiers } from "vue";
|
|
3
3
|
import fa, { PopperWrapper } from "floating-vue";
|
|
4
4
|
import VueKonva from "vue-konva";
|
|
@@ -7935,7 +7935,7 @@ function rt$1(e) {
|
|
|
7935
7935
|
var a = g(e).toHsl();
|
|
7936
7936
|
return a.h = (a.h + 180) % 360, g(a);
|
|
7937
7937
|
}
|
|
7938
|
-
function Be$
|
|
7938
|
+
function Be$1(e, a) {
|
|
7939
7939
|
if (isNaN(a) || a <= 0) throw new Error("Argument to polyad must be a positive number");
|
|
7940
7940
|
for (var t = g(e).toHsl(), r = [g(e)], l = 360 / a, n = 1; n < a; n++) r.push(g({
|
|
7941
7941
|
h: (t.h + n * l) % 360,
|
|
@@ -8016,7 +8016,7 @@ function Y$2(e) {
|
|
|
8016
8016
|
return !!K$2.CSS_UNIT.exec(e);
|
|
8017
8017
|
}
|
|
8018
8018
|
function ht$1(e) {
|
|
8019
|
-
e = e.replace(ze$
|
|
8019
|
+
e = e.replace(ze$2, "").replace(je, "").toLowerCase();
|
|
8020
8020
|
var a = !1;
|
|
8021
8021
|
if (xe[e]) e = xe[e], a = !0;
|
|
8022
8022
|
else if (e == "transparent") return {
|
|
@@ -8116,9 +8116,9 @@ function Ht$1() {
|
|
|
8116
8116
|
const e = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
|
|
8117
8117
|
return e.charAt(Math.floor(Math.random() * 62)) + e.charAt(Math.floor(Math.random() * 62));
|
|
8118
8118
|
}
|
|
8119
|
-
var ze$
|
|
8119
|
+
var ze$2, je, xe, ut$1, K$2, Ee$1, ye$1, ve$2, I$1, Ue$1, bt$2, Pe$1, Fe$2, Ge$1, gt$2, mt$1, N$2, Se, $e$1, _t, yt$2, Ct$1, q$2, le$1, pe$1, oe$1, Ft$1, St$1, At$1, M$1, De$1, fe$1, se, Vt$2, Bt$1, Lt$1, Et$2, Dt$1, Nt$1, Tt$1, It$1, Ut$1, Pt$2, Gt$2, Ot$1, Kt$1, zt$1, jt$1, Xt$2, Yt$1, qt$1, Wt$2, Zt$2, Jt$2, Qt$1, ea, ta, gn;
|
|
8120
8120
|
var init_vue_color = __esmMin((() => {
|
|
8121
|
-
ze$
|
|
8121
|
+
ze$2 = /^\s+/;
|
|
8122
8122
|
je = /\s+$/;
|
|
8123
8123
|
g.prototype = {
|
|
8124
8124
|
isDark: function() {
|
|
@@ -8271,10 +8271,10 @@ var init_vue_color = __esmMin((() => {
|
|
|
8271
8271
|
return this._applyCombination(ot, arguments);
|
|
8272
8272
|
},
|
|
8273
8273
|
triad: function() {
|
|
8274
|
-
return this._applyCombination(Be$
|
|
8274
|
+
return this._applyCombination(Be$1, [3]);
|
|
8275
8275
|
},
|
|
8276
8276
|
tetrad: function() {
|
|
8277
|
-
return this._applyCombination(Be$
|
|
8277
|
+
return this._applyCombination(Be$1, [4]);
|
|
8278
8278
|
}
|
|
8279
8279
|
};
|
|
8280
8280
|
g.fromRatio = function(e, a) {
|
|
@@ -9486,7 +9486,7 @@ var init_base$2 = __esmMin((() => {
|
|
|
9486
9486
|
//#region ../../node_modules/.pnpm/floating-vue@5.2.2_vue@3.5.24_typescript@5.9.3_/node_modules/floating-vue/dist/style.css
|
|
9487
9487
|
var init_style = __esmMin((() => {}));
|
|
9488
9488
|
//#endregion
|
|
9489
|
-
//#region ../../node_modules/.pnpm/@gct-paas+form-base@0.1.6-beta.
|
|
9489
|
+
//#region ../../node_modules/.pnpm/@gct-paas+form-base@0.1.6-beta.4_@gct-paas+api@6.2.0-dev.2_axios@1.13.2__@vueuse+core@1_6af62c8b8c0918c3d541804ba44c065c/node_modules/@gct-paas/form-base/dist/_commonjsHelpers-DaMA6jEr.js
|
|
9490
9490
|
function l$1(e) {
|
|
9491
9491
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
9492
9492
|
}
|
|
@@ -9495,7 +9495,7 @@ var init__commonjsHelpers_DaMA6jEr = __esmMin((() => {
|
|
|
9495
9495
|
o = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
9496
9496
|
}));
|
|
9497
9497
|
//#endregion
|
|
9498
|
-
//#region ../../node_modules/.pnpm/@gct-paas+form-base@0.1.6-beta.
|
|
9498
|
+
//#region ../../node_modules/.pnpm/@gct-paas+form-base@0.1.6-beta.4_@gct-paas+api@6.2.0-dev.2_axios@1.13.2__@vueuse+core@1_6af62c8b8c0918c3d541804ba44c065c/node_modules/@gct-paas/form-base/dist/mysql-xjL-BUMC.js
|
|
9499
9499
|
var mysql_xjL_BUMC_exports = /* @__PURE__ */ __exportAll({ m: () => Iy });
|
|
9500
9500
|
function Ey(Cr, Qt) {
|
|
9501
9501
|
for (var ue = 0; ue < Qt.length; ue++) {
|
|
@@ -18612,7 +18612,7 @@ var init_mysql_xjL_BUMC = __esmMin((() => {
|
|
|
18612
18612
|
Iy = /* @__PURE__ */ Ey({ __proto__: null }, [gy()]);
|
|
18613
18613
|
}));
|
|
18614
18614
|
//#endregion
|
|
18615
|
-
//#region ../../node_modules/.pnpm/@gct-paas+form-base@0.1.6-beta.
|
|
18615
|
+
//#region ../../node_modules/.pnpm/@gct-paas+form-base@0.1.6-beta.4_@gct-paas+api@6.2.0-dev.2_axios@1.13.2__@vueuse+core@1_6af62c8b8c0918c3d541804ba44c065c/node_modules/@gct-paas/form-base/dist/script-parser-DwzD37Rn.js
|
|
18616
18616
|
var script_parser_DwzD37Rn_exports = /* @__PURE__ */ __exportAll({
|
|
18617
18617
|
parseScriptReturnFields: () => Cs$1,
|
|
18618
18618
|
validateScriptSyntax: () => ws
|
|
@@ -19155,7 +19155,7 @@ function si() {
|
|
|
19155
19155
|
return t({});
|
|
19156
19156
|
}, i;
|
|
19157
19157
|
})(e);
|
|
19158
|
-
})(ze)), ze;
|
|
19158
|
+
})(ze$1)), ze$1;
|
|
19159
19159
|
}
|
|
19160
19160
|
function Ji$1(e, t, i) {
|
|
19161
19161
|
let s;
|
|
@@ -19364,7 +19364,7 @@ function Cs$1(e) {
|
|
|
19364
19364
|
function ws(e) {
|
|
19365
19365
|
ni(e);
|
|
19366
19366
|
}
|
|
19367
|
-
var hi, bt$1, li, yt$1, We$1, qe, ci, St, pi, fi, E$1, Q$1, z$1, Ze$1, a, H$1, di, wt$1, M, kt, mi, xi, be$1, lt$1, ct$1, gi, Ee, Le, Ke, pt, fe, de, $e, It, et$1, At, De, Pt$1, me, Ie, Vt$1, Fe$1, Ve, it, he, Nt, Tt, Rt, O, J$1, q$1, bi, Oe, p, st$1, yi, Si, ke$1, Qe$1, Lt, Y$1, $$1, N$1, ye, b$1, wi, Te$1, pe, ki, Be
|
|
19367
|
+
var hi, bt$1, li, yt$1, We$1, qe, ci, St, pi, fi, E$1, Q$1, z$1, Ze$1, a, H$1, di, wt$1, M, kt, mi, xi, be$1, lt$1, ct$1, gi, Ee, Le, Ke, pt, fe, de, $e, It, et$1, At, De, Pt$1, me, Ie, Vt$1, Fe$1, Ve, it, he, Nt, Tt, Rt, O, J$1, q$1, bi, Oe, p, st$1, yi, Si, ke$1, Qe$1, Lt, Y$1, $$1, N$1, ye, b$1, wi, Te$1, pe, ki, Be, Ae, Ei$1, Ot, Bt, Mt, Ut, jt, Ai, Vi, ft, Wt$1, qt, Gt$1, zt, Ht, Ti, Kt, Ge, dt, Li, c$2, Re, ie$1, Jt$1, ue, X$1, rt, C$1, ii, ze$1, mt, Qi, at, ri, ai$1, Xi$1, B$1, F$18, ae$1, xt, ne, Z$1, gt$1, $i, es$1, ts$1, is, ss$1, rs$1, as$1, ns$1, os, us, hs, ls$1, Ce, ps, vt, ds, nt$1, ge, Je, re, gs, vs, ys;
|
|
19368
19368
|
var init_script_parser_DwzD37Rn = __esmMin((() => {
|
|
19369
19369
|
init__commonjsHelpers_DaMA6jEr();
|
|
19370
19370
|
hi = [
|
|
@@ -21825,15 +21825,15 @@ var init_script_parser_DwzD37Rn = __esmMin((() => {
|
|
|
21825
21825
|
if (t.flags & (Fe$1 | Ie | me) && !(t.flags & et$1)) return t;
|
|
21826
21826
|
}
|
|
21827
21827
|
};
|
|
21828
|
-
Be
|
|
21828
|
+
Be = function(t, i, s) {
|
|
21829
21829
|
this.type = "", this.start = i, this.end = 0, t.options.locations && (this.loc = new Le(t, s)), t.options.directSourceFile && (this.sourceFile = t.options.directSourceFile), t.options.ranges && (this.range = [i, 0]);
|
|
21830
21830
|
};
|
|
21831
21831
|
Ae = O.prototype;
|
|
21832
21832
|
Ae.startNode = function() {
|
|
21833
|
-
return new Be
|
|
21833
|
+
return new Be(this, this.start, this.startLoc);
|
|
21834
21834
|
};
|
|
21835
21835
|
Ae.startNodeAt = function(e, t) {
|
|
21836
|
-
return new Be
|
|
21836
|
+
return new Be(this, e, t);
|
|
21837
21837
|
};
|
|
21838
21838
|
Ae.finishNode = function(e, t) {
|
|
21839
21839
|
return Ft.call(this, e, t, this.lastTokEnd, this.lastTokEndLoc);
|
|
@@ -21842,7 +21842,7 @@ var init_script_parser_DwzD37Rn = __esmMin((() => {
|
|
|
21842
21842
|
return Ft.call(this, e, t, i, s);
|
|
21843
21843
|
};
|
|
21844
21844
|
Ae.copyNode = function(e) {
|
|
21845
|
-
var t = new Be
|
|
21845
|
+
var t = new Be(this, e.start, this.startLoc);
|
|
21846
21846
|
for (var i in e) t[i] = e[i];
|
|
21847
21847
|
return t;
|
|
21848
21848
|
};
|
|
@@ -22793,7 +22793,7 @@ var init_script_parser_DwzD37Rn = __esmMin((() => {
|
|
|
22793
22793
|
Position: Ee,
|
|
22794
22794
|
SourceLocation: Le,
|
|
22795
22795
|
getLineInfo: Et$1,
|
|
22796
|
-
Node: Be
|
|
22796
|
+
Node: Be,
|
|
22797
22797
|
TokenType: E$1,
|
|
22798
22798
|
tokTypes: a,
|
|
22799
22799
|
keywordTypes: Ze$1,
|
|
@@ -22807,7 +22807,7 @@ var init_script_parser_DwzD37Rn = __esmMin((() => {
|
|
|
22807
22807
|
lineBreakG: di,
|
|
22808
22808
|
nonASCIIwhitespace: wt$1
|
|
22809
22809
|
};
|
|
22810
|
-
ze = {};
|
|
22810
|
+
ze$1 = {};
|
|
22811
22811
|
Qi = si();
|
|
22812
22812
|
at = /* @__PURE__ */ l$1(Qi);
|
|
22813
22813
|
ri = 1;
|
|
@@ -23612,7 +23612,7 @@ var init_script_parser_DwzD37Rn = __esmMin((() => {
|
|
|
23612
23612
|
]);
|
|
23613
23613
|
}));
|
|
23614
23614
|
//#endregion
|
|
23615
|
-
//#region ../../node_modules/.pnpm/@gct-paas+form-base@0.1.6-beta.
|
|
23615
|
+
//#region ../../node_modules/.pnpm/@gct-paas+form-base@0.1.6-beta.4_@gct-paas+api@6.2.0-dev.2_axios@1.13.2__@vueuse+core@1_6af62c8b8c0918c3d541804ba44c065c/node_modules/@gct-paas/form-base/dist/index.es.js
|
|
23616
23616
|
function Po() {
|
|
23617
23617
|
if (typeof globalThis < "u") {
|
|
23618
23618
|
const e = globalThis._api;
|
|
@@ -23882,23 +23882,23 @@ function Er(e) {
|
|
|
23882
23882
|
const p = await u(c);
|
|
23883
23883
|
p && t.value.unshift(p);
|
|
23884
23884
|
}
|
|
23885
|
-
function
|
|
23885
|
+
function C(c) {
|
|
23886
23886
|
return a.value.get(c) || t.value.find((b) => String(b.key) === c);
|
|
23887
23887
|
}
|
|
23888
23888
|
function d(c) {
|
|
23889
23889
|
var _y$children;
|
|
23890
|
-
const [b] = c.split(":"), y =
|
|
23890
|
+
const [b] = c.split(":"), y = C(b || "");
|
|
23891
23891
|
return a.value.get(c) || (y === null || y === void 0 || (_y$children = y.children) === null || _y$children === void 0 ? void 0 : _y$children.find((p) => String(p.rawValue) === c));
|
|
23892
23892
|
}
|
|
23893
23893
|
function v(c, b = !1) {
|
|
23894
23894
|
if (!c) return { text: "" };
|
|
23895
23895
|
const [y, p] = c.split(":");
|
|
23896
23896
|
if (y && p) {
|
|
23897
|
-
const L = Ja(c, d,
|
|
23897
|
+
const L = Ja(c, d, C);
|
|
23898
23898
|
if (L) return L;
|
|
23899
23899
|
}
|
|
23900
23900
|
if (y && !p && !b) {
|
|
23901
|
-
const L =
|
|
23901
|
+
const L = C(y);
|
|
23902
23902
|
if (L) return {
|
|
23903
23903
|
text: L.title,
|
|
23904
23904
|
showDefaultTag: !0
|
|
@@ -23929,11 +23929,11 @@ function Er(e) {
|
|
|
23929
23929
|
getNodeDisplay: v,
|
|
23930
23930
|
initByValue: M,
|
|
23931
23931
|
findChildNode: d,
|
|
23932
|
-
findParentNode:
|
|
23932
|
+
findParentNode: C,
|
|
23933
23933
|
resetTreeData: w
|
|
23934
23934
|
};
|
|
23935
23935
|
}
|
|
23936
|
-
function
|
|
23936
|
+
function Ne(e) {
|
|
23937
23937
|
return e.parentElement ?? document.body;
|
|
23938
23938
|
}
|
|
23939
23939
|
function Qa(e) {
|
|
@@ -23984,9 +23984,9 @@ function nc(e) {
|
|
|
23984
23984
|
if (!Array.isArray(s)) return [];
|
|
23985
23985
|
const f = /* @__PURE__ */ new Map();
|
|
23986
23986
|
function u(r, k = "") {
|
|
23987
|
-
if (Array.isArray(r)) for (const
|
|
23987
|
+
if (Array.isArray(r)) for (const C of r) {
|
|
23988
23988
|
var _be4;
|
|
23989
|
-
const d = be(
|
|
23989
|
+
const d = be(C);
|
|
23990
23990
|
if (typeof (d === null || d === void 0 ? void 0 : d.key) != "string" || !d.key) continue;
|
|
23991
23991
|
const v = k ? `${k}.${d.key}` : d.key, M = typeof d.keyType == "string" ? d.keyType.toLowerCase() : "string";
|
|
23992
23992
|
if (f.has(v) || f.set(v, {
|
|
@@ -24054,10 +24054,10 @@ function eo(e, o) {
|
|
|
24054
24054
|
Ya(e);
|
|
24055
24055
|
const t = new Map(o.map((u) => [u.name, u.value])), a = /* @__PURE__ */ new Set();
|
|
24056
24056
|
function n(u, r, k = !1) {
|
|
24057
|
-
const
|
|
24058
|
-
if (!
|
|
24059
|
-
k ||=
|
|
24060
|
-
const d = typeof
|
|
24057
|
+
const C = be(typeof u == "string" ? JSON.parse(u) : u);
|
|
24058
|
+
if (!C) return;
|
|
24059
|
+
k ||= C.required === !0;
|
|
24060
|
+
const d = typeof C.type == "string" ? C.type.toLowerCase() : "", v = r;
|
|
24061
24061
|
if (v && t.has(v)) {
|
|
24062
24062
|
a.add(v);
|
|
24063
24063
|
const M = t.get(v) ?? "";
|
|
@@ -24088,14 +24088,14 @@ function eo(e, o) {
|
|
|
24088
24088
|
}
|
|
24089
24089
|
return M;
|
|
24090
24090
|
}
|
|
24091
|
-
if (
|
|
24091
|
+
if (C.paramType === "Fixed" && C.paramKey !== void 0 && C.paramKey !== "") return C.paramKey;
|
|
24092
24092
|
if (r) {
|
|
24093
24093
|
if (k) throw new Error(`缺少入参 ${r} 的测试值`);
|
|
24094
24094
|
return;
|
|
24095
24095
|
}
|
|
24096
24096
|
if (d === "object") {
|
|
24097
|
-
const M = new Set(Array.isArray(
|
|
24098
|
-
return Object.fromEntries(Object.entries(be(
|
|
24097
|
+
const M = new Set(Array.isArray(C.required) ? C.required : []);
|
|
24098
|
+
return Object.fromEntries(Object.entries(be(C.properties) ?? {}).map(([w, c]) => [w, n(c, w, M.has(w))]).filter(([, w]) => w !== void 0));
|
|
24099
24099
|
}
|
|
24100
24100
|
}
|
|
24101
24101
|
const l = be(n(e.metaHeader)), s = be(n(e.metaQuery)), f = be(n(e.metaUri));
|
|
@@ -24268,8 +24268,8 @@ function Wd(e, o, t, a) {
|
|
|
24268
24268
|
"prototype",
|
|
24269
24269
|
"constructor"
|
|
24270
24270
|
].includes(k)) throw new Error("数源参数包含不允许的 KEY");
|
|
24271
|
-
const
|
|
24272
|
-
s[k] =
|
|
24271
|
+
const C = o && Object.hasOwn(o, k) ? o[k] : jd(r.source ?? r.value ?? r.values, t, a);
|
|
24272
|
+
s[k] = C, e.type === "entity" && (s[`${k}.eq:condition-${u}`] = C);
|
|
24273
24273
|
}
|
|
24274
24274
|
for (const u of Object.keys(o ?? {})) if (!Object.hasOwn(s, u)) throw new Error(`数源 ${e.key} 未定义参数 ${u}`);
|
|
24275
24275
|
return s;
|
|
@@ -24284,13 +24284,13 @@ function Zd(e) {
|
|
|
24284
24284
|
if (!Number.isFinite(n) || n <= 0) throw new Error("执行超时必须为正数");
|
|
24285
24285
|
const l = /* @__PURE__ */ new Set();
|
|
24286
24286
|
let s = !1;
|
|
24287
|
-
async function f(k,
|
|
24287
|
+
async function f(k, C, d, v) {
|
|
24288
24288
|
var _M$config;
|
|
24289
|
-
if (v.aborted || s) throw v.reason ?? new
|
|
24289
|
+
if (v.aborted || s) throw v.reason ?? new ze("cancelled", "数源执行已取消");
|
|
24290
24290
|
if (typeof k != "string" || !o.has(k)) throw new Error(`未找到数源:${String(k)}`);
|
|
24291
24291
|
if (d.includes(k)) throw new Error(`数源循环依赖:${[...d, k].join(" → ")}`);
|
|
24292
|
-
if (
|
|
24293
|
-
const M = o.get(k), w = Wd(M,
|
|
24292
|
+
if (C !== void 0 && !bt(C)) throw new Error("覆盖参数必须是对象");
|
|
24293
|
+
const M = o.get(k), w = Wd(M, C, t, a), c = [...d, k], b = (p, R) => u(p, R, c, v);
|
|
24294
24294
|
if (M.type !== "script") {
|
|
24295
24295
|
var _e$adapters;
|
|
24296
24296
|
const p = ((_e$adapters = e.adapters) === null || _e$adapters === void 0 ? void 0 : _e$adapters[M.type]) ?? (await Promise.resolve().then(() => Mc)).defaultQueryAdapters[M.type];
|
|
@@ -24302,16 +24302,16 @@ function Zd(e) {
|
|
|
24302
24302
|
query: b,
|
|
24303
24303
|
instanceId: e.instanceId
|
|
24304
24304
|
});
|
|
24305
|
-
if (v.aborted) throw v.reason ?? new
|
|
24305
|
+
if (v.aborted) throw v.reason ?? new ze("cancelled", "数源执行已取消");
|
|
24306
24306
|
return Sa(M, R);
|
|
24307
24307
|
}
|
|
24308
24308
|
const y = (_M$config = M.config) === null || _M$config === void 0 ? void 0 : _M$config.script;
|
|
24309
24309
|
if (typeof y != "string" || !y.trim()) throw new Error(`数源 ${k} 缺少 JavaScript 脚本`);
|
|
24310
24310
|
return Sa(M, await Gd(y, t, a, b, v));
|
|
24311
24311
|
}
|
|
24312
|
-
async function u(k,
|
|
24312
|
+
async function u(k, C, d, v) {
|
|
24313
24313
|
var _e$observeQuery;
|
|
24314
|
-
const M = (_e$observeQuery = e.observeQuery) === null || _e$observeQuery === void 0 ? void 0 : _e$observeQuery.call(e, k), w = new AbortController(), c = () => v.reason instanceof
|
|
24314
|
+
const M = (_e$observeQuery = e.observeQuery) === null || _e$observeQuery === void 0 ? void 0 : _e$observeQuery.call(e, k), w = new AbortController(), c = () => v.reason instanceof ze ? v.reason : new ze("cancelled", "数源执行已取消"), b = () => w.abort(c());
|
|
24315
24315
|
let y, p;
|
|
24316
24316
|
v.addEventListener("abort", b, { once: !0 });
|
|
24317
24317
|
try {
|
|
@@ -24325,19 +24325,19 @@ function Zd(e) {
|
|
|
24325
24325
|
A();
|
|
24326
24326
|
return;
|
|
24327
24327
|
}
|
|
24328
|
-
y = setTimeout(() => w.abort(new
|
|
24328
|
+
y = setTimeout(() => w.abort(new ze("timeout", `数源 ${k} 执行超时(${z}ms)`)), z), f(k, C, d, w.signal).then(V, O);
|
|
24329
24329
|
});
|
|
24330
24330
|
return M === null || M === void 0 || M.success(T), T;
|
|
24331
24331
|
} catch (R) {
|
|
24332
24332
|
throw M === null || M === void 0 || M.error(R), R;
|
|
24333
24333
|
} finally {
|
|
24334
|
-
clearTimeout(y), p === null || p === void 0 || p(), v.removeEventListener("abort", b), w.abort(new
|
|
24334
|
+
clearTimeout(y), p === null || p === void 0 || p(), v.removeEventListener("abort", b), w.abort(new ze("cancelled", "数源执行已结束"));
|
|
24335
24335
|
}
|
|
24336
24336
|
}
|
|
24337
|
-
function r(k,
|
|
24338
|
-
if (s) return Promise.reject(new
|
|
24337
|
+
function r(k, C) {
|
|
24338
|
+
if (s) return Promise.reject(new ze("cancelled", "数源运行时已释放"));
|
|
24339
24339
|
const d = new AbortController();
|
|
24340
|
-
return l.add(d), u(k,
|
|
24340
|
+
return l.add(d), u(k, C, [], d.signal).finally(() => {
|
|
24341
24341
|
l.delete(d);
|
|
24342
24342
|
});
|
|
24343
24343
|
}
|
|
@@ -24361,14 +24361,14 @@ function Gd(e, o, t, a, n) {
|
|
|
24361
24361
|
return;
|
|
24362
24362
|
}
|
|
24363
24363
|
let r = !1;
|
|
24364
|
-
const k = () =>
|
|
24365
|
-
function
|
|
24364
|
+
const k = () => C(void 0, n.reason instanceof Error ? n.reason : new ze("cancelled", "脚本执行已取消"));
|
|
24365
|
+
function C(d, v) {
|
|
24366
24366
|
r || (r = !0, n.removeEventListener("abort", k), u.terminate(), URL.revokeObjectURL(f), v ? s(v) : l(d));
|
|
24367
24367
|
}
|
|
24368
|
-
n.addEventListener("abort", k, { once: !0 }), u.onerror = (d) =>
|
|
24368
|
+
n.addEventListener("abort", k, { once: !0 }), u.onerror = (d) => C(void 0, new Error(d.message || "脚本执行失败")), u.onmessageerror = () => C(void 0, /* @__PURE__ */ new Error("脚本数据无法传输")), u.onmessage = async ({ data: d }) => {
|
|
24369
24369
|
if (!(r || !bt(d))) {
|
|
24370
|
-
if (d.type === "result")
|
|
24371
|
-
else if (d.type === "error")
|
|
24370
|
+
if (d.type === "result") C(d.result);
|
|
24371
|
+
else if (d.type === "error") C(void 0, new Error(String(d.error)));
|
|
24372
24372
|
else if (d.type === "query") try {
|
|
24373
24373
|
const v = await a(d.key, d.overrides);
|
|
24374
24374
|
r || u.postMessage({
|
|
@@ -24393,7 +24393,7 @@ function Gd(e, o, t, a, n) {
|
|
|
24393
24393
|
form: t
|
|
24394
24394
|
});
|
|
24395
24395
|
} catch (d) {
|
|
24396
|
-
|
|
24396
|
+
C(void 0, d instanceof Error ? d : new Error(String(d)));
|
|
24397
24397
|
}
|
|
24398
24398
|
n.aborted && k();
|
|
24399
24399
|
});
|
|
@@ -24424,7 +24424,7 @@ function Ma(e) {
|
|
|
24424
24424
|
}
|
|
24425
24425
|
function Ra(e) {
|
|
24426
24426
|
return {
|
|
24427
|
-
status: e instanceof
|
|
24427
|
+
status: e instanceof ze ? e.code : "error",
|
|
24428
24428
|
error: e instanceof Error ? e.message : String(e)
|
|
24429
24429
|
};
|
|
24430
24430
|
}
|
|
@@ -24455,7 +24455,7 @@ function zp(e) {
|
|
|
24455
24455
|
});
|
|
24456
24456
|
return b.dispose(), !0;
|
|
24457
24457
|
}
|
|
24458
|
-
function
|
|
24458
|
+
function C(c) {
|
|
24459
24459
|
return k(n.get(c) ?? c);
|
|
24460
24460
|
}
|
|
24461
24461
|
async function d(c, b) {
|
|
@@ -24522,7 +24522,7 @@ function zp(e) {
|
|
|
24522
24522
|
reloadAll: () => Promise.allSettled(e.sources.map((c) => w(c.key))),
|
|
24523
24523
|
states: t,
|
|
24524
24524
|
query: d,
|
|
24525
|
-
cancel:
|
|
24525
|
+
cancel: C,
|
|
24526
24526
|
/** 加载、空结果、失败、取消、超时及释放后均不提供旧结果。 */
|
|
24527
24527
|
getResult(c) {
|
|
24528
24528
|
var _t$c;
|
|
@@ -24533,7 +24533,7 @@ function zp(e) {
|
|
|
24533
24533
|
return s ? Promise.allSettled([...new Set(c)].map(() => Promise.reject(/* @__PURE__ */ new Error("数源管理器已释放")))) : e.canExecute && !e.canExecute() ? Promise.allSettled([...new Set(c)].map(() => Promise.reject(/* @__PURE__ */ new Error("当前模式不允许数源取数")))) : Promise.allSettled([...new Set(c)].map((b) => {
|
|
24534
24534
|
const y = e.sources.find((p) => p.key === b);
|
|
24535
24535
|
if (!y || !fo(y)) {
|
|
24536
|
-
|
|
24536
|
+
C(b), u(b);
|
|
24537
24537
|
const p = `数源 ${b} 不存在或取数时机不支持值变化`;
|
|
24538
24538
|
return o[b] = {
|
|
24539
24539
|
status: "error",
|
|
@@ -24628,7 +24628,7 @@ function Kp(e) {
|
|
|
24628
24628
|
let l = !1, s = !1, f = !1;
|
|
24629
24629
|
const u = ref(0), r = () => {
|
|
24630
24630
|
l || u.value++;
|
|
24631
|
-
}, k = (_e$subscribeForm = e.subscribeForm) === null || _e$subscribeForm === void 0 ? void 0 : _e$subscribeForm.call(e, r),
|
|
24631
|
+
}, k = (_e$subscribeForm = e.subscribeForm) === null || _e$subscribeForm === void 0 ? void 0 : _e$subscribeForm.call(e, r), C = e.fills.flatMap((d) => bf(d, e.fills) ? (o[d.id] = `字段填充存在循环引用:${d.source.fieldKey} → ${d.targetFieldKey}`, []) : [watch(() => {
|
|
24632
24632
|
u.value;
|
|
24633
24633
|
try {
|
|
24634
24634
|
var _e$getContext;
|
|
@@ -24729,7 +24729,7 @@ function Kp(e) {
|
|
|
24729
24729
|
}
|
|
24730
24730
|
},
|
|
24731
24731
|
dispose() {
|
|
24732
|
-
l = !0, k === null || k === void 0 || k(),
|
|
24732
|
+
l = !0, k === null || k === void 0 || k(), C.forEach((d) => d()), t.clear(), a.clear(), n.clear();
|
|
24733
24733
|
}
|
|
24734
24734
|
};
|
|
24735
24735
|
}
|
|
@@ -24780,18 +24780,18 @@ function Xf(e, o) {
|
|
|
24780
24780
|
if (!o) throw new Error("请传入解析规则");
|
|
24781
24781
|
const { separator: n, nullSymbol: l, fieldList: s } = yo(JSON.parse(o));
|
|
24782
24782
|
return e.split(n).reduce((u, r, k) => {
|
|
24783
|
-
const
|
|
24784
|
-
if (
|
|
24783
|
+
const C = s[k];
|
|
24784
|
+
if (C) {
|
|
24785
24785
|
let d = l && r === l ? null : r;
|
|
24786
|
-
if (d !== null) switch (
|
|
24786
|
+
if (d !== null) switch (C.type) {
|
|
24787
24787
|
case gt.qty:
|
|
24788
24788
|
d = Number(d);
|
|
24789
24789
|
break;
|
|
24790
24790
|
case gt.expiration:
|
|
24791
|
-
d = dayjs(d,
|
|
24791
|
+
d = dayjs(d, C.format).format("YYYY-MM-DD HH:mm:ss");
|
|
24792
24792
|
break;
|
|
24793
24793
|
}
|
|
24794
|
-
u[
|
|
24794
|
+
u[C.key] = d;
|
|
24795
24795
|
}
|
|
24796
24796
|
return u;
|
|
24797
24797
|
}, {});
|
|
@@ -24928,7 +24928,7 @@ function j2(e, o, t) {
|
|
|
24928
24928
|
function Wp$1() {
|
|
24929
24929
|
ua.closeAll();
|
|
24930
24930
|
}
|
|
24931
|
-
var ie, oa, Pa, ja, on, G$1, ut, rl, il, ul, cl, fl, ae, Pe, Yl, es, ts, as, ns, ls, Wt, Et, Cs, Ss, Os, Ts, qs, et, Rr, Ar, Or, Tr, qr, Vr, $r, Br, zr, Fr, wa, Dr, ka, Ur, Ca, Hr, Pr, jr, Wr, Zr, Gr, Xr, Jr, Qr, Yr, ei, ti, ai, na, Fi, Ni, Di, Ui, Ii, Ki, Ei, Hi, Pi, ji, Zt, Zi, Gi, Xi, Ji, ve, Yi, tu, We, Ye, yt, au, ou, ct, lu, su, ru, iu, uu, cu, du, fu, pu, mu, vu, yu, gu, _u, hu, bu, wu, ku, Cu, xu, Su, Mu, Ru, Ou, Tu, qu, Vu, Lu, $u, Bu, zu, Fu, Nu, Du, Uu, Iu, Ku, Eu, Hu, ju, Zu, Gu, Xu, Ju, Qu, Yu, ec, tc, oc, lc, sc, rc, ic, uc, cc, dc, fc, pc, vc, yc, gc, _c, hc, bc, wc, Cc, xc, oo, no, so, ro, io, Mc, Ac, Oc, qc, Vc, $c, zc, Nc, Dc, Uc, Ic, Kc, Ec, Pc, jc, Yc, ed, td, ad, od, nd, ld, sd, rd, id, ud, cd, dd, fd, pd, md, vd, yd, Gt, _d, hd, bd, wd, kd, Cd, xd, Sd, Md, Rd, Ad, Od, Td, qd, Vd, Ld, $d, Bd, zd, Fd, Nd, Dd, Ud, Id, Kd, Ed, Bp, Pd,
|
|
24931
|
+
var ie, oa, Pa, ja, on, G$1, ut, rl, il, ul, cl, fl, ae, Pe, Yl, es, ts, as, ns, ls, Wt, Et, Cs, Ss, Os, Ts, qs, et, Rr, Ar, Or, Tr, qr, Vr, $r, Br, zr, Fr, wa, Dr, ka, Ur, Ca, Hr, Pr, jr, Wr, Zr, Gr, Xr, Jr, Qr, Yr, ei, ti, ai, na, Fi, Ni, Di, Ui, Ii, Ki, Ei, Hi, Pi, ji, Zt, Zi, Gi, Xi, Ji, ve, Yi, tu, We, Ye, yt, au, ou, ct, lu, su, ru, iu, uu, cu, du, fu, pu, mu, vu, yu, gu, _u, hu, bu, wu, ku, Cu, xu, Su, Mu, Ru, Ou, Tu, qu, Vu, Lu, $u, Bu, zu, Fu, Nu, Du, Uu, Iu, Ku, Eu, Hu, ju, Zu, Gu, Xu, Ju, Qu, Yu, ec, tc, oc, lc, sc, rc, ic, uc, cc, dc, fc, pc, vc, yc, gc, _c, hc, bc, wc, Cc, xc, oo, no, so, ro, io, Mc, Ac, Oc, qc, Vc, $c, zc, Nc, Dc, Uc, Ic, Kc, Ec, Pc, jc, Yc, ed, td, ad, od, nd, ld, sd, rd, id, ud, cd, dd, fd, pd, md, vd, yd, Gt, _d, hd, bd, wd, kd, Cd, xd, Sd, Md, Rd, Ad, Od, Td, qd, Vd, Ld, $d, Bd, zd, Fd, Nd, Dd, Ud, Id, Kd, Ed, Bp, Pd, ze, Qd, Yd, Fp, tf, af, of, nf, lf, sf, rf, uf, cf, df, ff, pf, mf, vf, Dp, gf, Xt, wf, kf, Cf, xf, Sf, Mf, Rf, wt, ra, Jt, Of, Tf, lt, qf, Vf, Lf, $f, mo, Oa, Ff, vo, Df, Uf, If, Kf, Hf, Pf, Wf, gt, Zf, Yf, e2, t2, a2, o2, n2, l2, s2, r2, i2, u2, go, d2, f2, p2, m2, y2, g2, _2, b2, w2, k2, C2, x2, M2, R2, O2, T2, L2, _o, Ta, st, P2, ua, jp;
|
|
24932
24932
|
var init_index_es = __esmMin((() => {
|
|
24933
24933
|
init_ResizeObserver_es();
|
|
24934
24934
|
init_vue_color();
|
|
@@ -25316,10 +25316,10 @@ var init_index_es = __esmMin((() => {
|
|
|
25316
25316
|
r.remaining = r.duration, t.push(r), r.duration > 0 && n(r);
|
|
25317
25317
|
}
|
|
25318
25318
|
function u(r) {
|
|
25319
|
-
const k = t.findIndex((
|
|
25319
|
+
const k = t.findIndex((C) => C.id === r);
|
|
25320
25320
|
if (k !== -1) {
|
|
25321
|
-
const
|
|
25322
|
-
|
|
25321
|
+
const C = t[k];
|
|
25322
|
+
C !== null && C !== void 0 && C.timer && clearTimeout(C.timer), t.splice(k, 1);
|
|
25323
25323
|
}
|
|
25324
25324
|
}
|
|
25325
25325
|
return o({
|
|
@@ -25330,18 +25330,18 @@ var init_index_es = __esmMin((() => {
|
|
|
25330
25330
|
tag: "div",
|
|
25331
25331
|
class: "message-list"
|
|
25332
25332
|
}, {
|
|
25333
|
-
default: withCtx(() => [(openBlock(!0), createElementBlock(Fragment, null, renderList(t, (
|
|
25334
|
-
key:
|
|
25335
|
-
class: normalizeClass(["message", `message--${
|
|
25336
|
-
onMouseenter: (d) => l(
|
|
25337
|
-
onMouseleave: (d) => s(
|
|
25333
|
+
default: withCtx(() => [(openBlock(!0), createElementBlock(Fragment, null, renderList(t, (C) => (openBlock(), createElementBlock("div", {
|
|
25334
|
+
key: C.id,
|
|
25335
|
+
class: normalizeClass(["message", `message--${C.type}`]),
|
|
25336
|
+
onMouseenter: (d) => l(C),
|
|
25337
|
+
onMouseleave: (d) => s(C)
|
|
25338
25338
|
}, [
|
|
25339
|
-
createElementVNode("i", { class: normalizeClass(["message-icon icon iconfont", a[
|
|
25340
|
-
createElementVNode("div", ts, toDisplayString(
|
|
25341
|
-
|
|
25339
|
+
createElementVNode("i", { class: normalizeClass(["message-icon icon iconfont", a[C.type]]) }, null, 2),
|
|
25340
|
+
createElementVNode("div", ts, toDisplayString(C.message), 1),
|
|
25341
|
+
C.closeable ? (openBlock(), createElementBlock("i", {
|
|
25342
25342
|
key: 0,
|
|
25343
25343
|
class: "message-close icon iconfont icon-guanbi",
|
|
25344
|
-
onClick: (d) => u(
|
|
25344
|
+
onClick: (d) => u(C.id)
|
|
25345
25345
|
}, null, 8, as)) : createCommentVNode("", !0)
|
|
25346
25346
|
], 42, es))), 128))]),
|
|
25347
25347
|
_: 1
|
|
@@ -25408,7 +25408,7 @@ var init_index_es = __esmMin((() => {
|
|
|
25408
25408
|
const w = (Math.abs(d.target.getBoundingClientRect()[n.value.direction] - d[n.value.client]) - t.value[n.value.offset] / 2) * 100 / (o === null || o === void 0 || (_o$vnode$el = o.vnode.el) === null || _o$vnode$el === void 0 ? void 0 : _o$vnode$el[n.value.offset]);
|
|
25409
25409
|
a.value[n.value.scroll] = w * a.value[n.value.scrollSize] / 100;
|
|
25410
25410
|
}, r = (d) => {
|
|
25411
|
-
d.stopImmediatePropagation(), s.value = !0, ha(document, "mousemove", k), ha(document, "mouseup",
|
|
25411
|
+
d.stopImmediatePropagation(), s.value = !0, ha(document, "mousemove", k), ha(document, "mouseup", C), document.onselectstart = () => !1;
|
|
25412
25412
|
}, k = (d) => {
|
|
25413
25413
|
var _o$vnode$el2, _o$vnode$el3;
|
|
25414
25414
|
if (s.value === !1) return;
|
|
@@ -25417,11 +25417,11 @@ var init_index_es = __esmMin((() => {
|
|
|
25417
25417
|
const c = (((o === null || o === void 0 || (_o$vnode$el2 = o.vnode.el) === null || _o$vnode$el2 === void 0 ? void 0 : _o$vnode$el2.getBoundingClientRect()[n.value.direction]) - d[n.value.client]) * -1 - (t.value[n.value.offset] - v)) * 100 / (o === null || o === void 0 || (_o$vnode$el3 = o.vnode.el) === null || _o$vnode$el3 === void 0 ? void 0 : _o$vnode$el3[n.value.offset]);
|
|
25418
25418
|
a.value[n.value.scroll] = c * a.value[n.value.scrollSize] / 100;
|
|
25419
25419
|
};
|
|
25420
|
-
function
|
|
25420
|
+
function C() {
|
|
25421
25421
|
s.value = !1, l.value[n.value.axis] = 0, ba(document, "mousemove", k), document.onselectstart = null;
|
|
25422
25422
|
}
|
|
25423
25423
|
return onUnmounted(() => {
|
|
25424
|
-
ba(document, "mouseup",
|
|
25424
|
+
ba(document, "mouseup", C);
|
|
25425
25425
|
}), () => h("div", {
|
|
25426
25426
|
class: ["scrollbar__bar", "is-" + n.value.key],
|
|
25427
25427
|
onMousedown: u
|
|
@@ -25483,7 +25483,7 @@ var init_index_es = __esmMin((() => {
|
|
|
25483
25483
|
}, k = (d) => {
|
|
25484
25484
|
const v = unref(l);
|
|
25485
25485
|
v && (typeof d == "number" ? v.scrollTop = d : v.scrollTo(d));
|
|
25486
|
-
},
|
|
25486
|
+
}, C = (d) => {
|
|
25487
25487
|
const v = unref(l);
|
|
25488
25488
|
v && (v.scrollTop = d);
|
|
25489
25489
|
};
|
|
@@ -25502,7 +25502,7 @@ var init_index_es = __esmMin((() => {
|
|
|
25502
25502
|
update: r,
|
|
25503
25503
|
handleScroll: u,
|
|
25504
25504
|
scrollTo: k,
|
|
25505
|
-
setScrollTop:
|
|
25505
|
+
setScrollTop: C
|
|
25506
25506
|
};
|
|
25507
25507
|
}
|
|
25508
25508
|
});
|
|
@@ -25560,7 +25560,7 @@ var init_index_es = __esmMin((() => {
|
|
|
25560
25560
|
f.value || a("select", t.node);
|
|
25561
25561
|
}
|
|
25562
25562
|
return (r, k) => {
|
|
25563
|
-
const
|
|
25563
|
+
const C = resolveComponent("RdoTreeSelectNode", !0);
|
|
25564
25564
|
return openBlock(), createElementBlock("div", Ar, [createElementVNode("div", {
|
|
25565
25565
|
class: normalizeClass(["rdo-tree-select-node__row", {
|
|
25566
25566
|
selected: s.value,
|
|
@@ -25579,7 +25579,7 @@ var init_index_es = __esmMin((() => {
|
|
|
25579
25579
|
color: "#212528",
|
|
25580
25580
|
size: "13",
|
|
25581
25581
|
version: "v2"
|
|
25582
|
-
})], 2)) : (openBlock(), createElementBlock("span", Or)), createElementVNode("span", Tr, [createElementVNode("span", qr, toDisplayString(e.node.title), 1), e.node.isDefault && !n.value ? (openBlock(), createElementBlock("span", Vr, "默认")) : createCommentVNode("", !0)])], 6), n.value && l.value ? (openBlock(!0), createElementBlock(Fragment, { key: 0 }, renderList(e.node.children, (d) => (openBlock(), createBlock(
|
|
25582
|
+
})], 2)) : (openBlock(), createElementBlock("span", Or)), createElementVNode("span", Tr, [createElementVNode("span", qr, toDisplayString(e.node.title), 1), e.node.isDefault && !n.value ? (openBlock(), createElementBlock("span", Vr, "默认")) : createCommentVNode("", !0)])], 6), n.value && l.value ? (openBlock(!0), createElementBlock(Fragment, { key: 0 }, renderList(e.node.children, (d) => (openBlock(), createBlock(C, {
|
|
25583
25583
|
key: d.key,
|
|
25584
25584
|
node: d,
|
|
25585
25585
|
level: e.level + 1,
|
|
@@ -25879,7 +25879,7 @@ var init_index_es = __esmMin((() => {
|
|
|
25879
25879
|
"change"
|
|
25880
25880
|
],
|
|
25881
25881
|
setup(e, { emit: o }) {
|
|
25882
|
-
const t = e, a = o, n = ref(), l = ref(), s = ref(), f = ref(), u = ref(!1), r = ref(!1), k = ref(!1),
|
|
25882
|
+
const t = e, a = o, n = ref(), l = ref(), s = ref(), f = ref(), u = ref(!1), r = ref(!1), k = ref(!1), C = ref({}), d = ref(!1), v = ref([]), M = ref(1), w = ref(""), c = ref(""), b = ref({ text: "" }), { treeData: y, loadOptions: p, ensureSelectedNode: R, getNodeDisplay: L, initByValue: z, findChildNode: T, findParentNode: V, resetTreeData: O } = Er({
|
|
25883
25883
|
modelKey: t.modelKey,
|
|
25884
25884
|
modelCategory: t.modelCategory,
|
|
25885
25885
|
getQueryData: () => t.queryData
|
|
@@ -25940,7 +25940,7 @@ var init_index_es = __esmMin((() => {
|
|
|
25940
25940
|
function Q() {
|
|
25941
25941
|
if (!n.value) return;
|
|
25942
25942
|
const Y = n.value.getBoundingClientRect(), se = t.popperWidth ?? Y.width;
|
|
25943
|
-
|
|
25943
|
+
C.value = {
|
|
25944
25944
|
position: "fixed",
|
|
25945
25945
|
top: `${Y.bottom + 4}px`,
|
|
25946
25946
|
left: `${Y.left}px`,
|
|
@@ -26080,7 +26080,7 @@ var init_index_es = __esmMin((() => {
|
|
|
26080
26080
|
ref_key: "searchDropdownRef",
|
|
26081
26081
|
ref: s,
|
|
26082
26082
|
class: "rdo-tree-select__dropdown",
|
|
26083
|
-
style: normalizeStyle(
|
|
26083
|
+
style: normalizeStyle(C.value),
|
|
26084
26084
|
onMousedown: se[3] || (se[3] = withModifiers(() => {}, ["prevent"]))
|
|
26085
26085
|
}, [createVNode(wa, {
|
|
26086
26086
|
"display-tree-data": J.value,
|
|
@@ -26369,14 +26369,14 @@ var init_index_es = __esmMin((() => {
|
|
|
26369
26369
|
pagination: !1,
|
|
26370
26370
|
class: "field-map-table"
|
|
26371
26371
|
}, {
|
|
26372
|
-
headerCell: withCtx(({ column:
|
|
26373
|
-
bodyCell: withCtx(({ column:
|
|
26372
|
+
headerCell: withCtx(({ column: C }) => [C.key === "name" && e.renamable ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [f[0] || (f[0] = createElementVNode("b", null, "*", -1)), f[1] || (f[1] = createTextVNode(" 字段名称", -1))], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [createTextVNode(toDisplayString(C.title), 1)], 64))]),
|
|
26373
|
+
bodyCell: withCtx(({ column: C, record: d, index: v }) => {
|
|
26374
26374
|
var _d$name;
|
|
26375
|
-
return [
|
|
26375
|
+
return [C.key === "name" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [e.renamable ? (openBlock(), createElementBlock("div", au, [createVNode(u, {
|
|
26376
26376
|
value: d.name,
|
|
26377
26377
|
"onUpdate:value": (M) => d.name = M,
|
|
26378
26378
|
placeholder: "请输入"
|
|
26379
|
-
}, null, 8, ["value", "onUpdate:value"]), e.showValidation && !((_d$name = d.name) === null || _d$name === void 0 ? void 0 : _d$name.trim()) ? (openBlock(), createElementBlock("span", ou, "请输入字段名称")) : createCommentVNode("", !0)])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [createTextVNode(toDisplayString(d.name), 1)], 64))], 64)) :
|
|
26379
|
+
}, null, 8, ["value", "onUpdate:value"]), e.showValidation && !((_d$name = d.name) === null || _d$name === void 0 ? void 0 : _d$name.trim()) ? (openBlock(), createElementBlock("span", ou, "请输入字段名称")) : createCommentVNode("", !0)])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [createTextVNode(toDisplayString(d.name), 1)], 64))], 64)) : C.key === "key" ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [createTextVNode(toDisplayString(d.key), 1)], 64)) : C.key === "type" ? renderSlot(s.$slots, "type", { field: d }, () => [createTextVNode(toDisplayString(unref(Wa)(d.type)), 1)], !0, 2) : C.key === "action" ? (openBlock(), createBlock(r, {
|
|
26380
26380
|
key: 3,
|
|
26381
26381
|
type: "link",
|
|
26382
26382
|
danger: "",
|
|
@@ -26439,7 +26439,7 @@ var init_index_es = __esmMin((() => {
|
|
|
26439
26439
|
function k(d) {
|
|
26440
26440
|
l.value = r(d) ? l.value.filter((v) => v !== d) : [...l.value, d];
|
|
26441
26441
|
}
|
|
26442
|
-
function
|
|
26442
|
+
function C() {
|
|
26443
26443
|
const d = t.fields.filter((v) => l.value.includes(v.value)).map((v) => ({
|
|
26444
26444
|
name: v.label,
|
|
26445
26445
|
key: v.value,
|
|
@@ -26506,7 +26506,7 @@ var init_index_es = __esmMin((() => {
|
|
|
26506
26506
|
}), createVNode(b, {
|
|
26507
26507
|
type: "primary",
|
|
26508
26508
|
disabled: !l.value.length,
|
|
26509
|
-
onClick:
|
|
26509
|
+
onClick: C
|
|
26510
26510
|
}, {
|
|
26511
26511
|
default: withCtx(() => [...v[9] || (v[9] = [createTextVNode("确认", -1)])]),
|
|
26512
26512
|
_: 1
|
|
@@ -26560,7 +26560,7 @@ var init_index_es = __esmMin((() => {
|
|
|
26560
26560
|
});
|
|
26561
26561
|
const u = ref([]), r = ref(!1);
|
|
26562
26562
|
let k = 0;
|
|
26563
|
-
function
|
|
26563
|
+
function C($, U) {
|
|
26564
26564
|
return String((U === null || U === void 0 ? void 0 : U.label) ?? "").toLowerCase().includes($.toLowerCase());
|
|
26565
26565
|
}
|
|
26566
26566
|
function d($) {
|
|
@@ -26722,7 +26722,7 @@ var init_index_es = __esmMin((() => {
|
|
|
26722
26722
|
}]
|
|
26723
26723
|
}, {
|
|
26724
26724
|
default: withCtx(() => [createVNode(E, {
|
|
26725
|
-
"get-popup-container": unref(
|
|
26725
|
+
"get-popup-container": unref(Ne),
|
|
26726
26726
|
value: unref(a).sourceType,
|
|
26727
26727
|
"onUpdate:value": U[2] || (U[2] = (ue) => unref(a).sourceType = ue),
|
|
26728
26728
|
placeholder: "请选择来源类型",
|
|
@@ -26753,14 +26753,14 @@ var init_index_es = __esmMin((() => {
|
|
|
26753
26753
|
}]
|
|
26754
26754
|
}, {
|
|
26755
26755
|
default: withCtx(() => [createVNode(X, {
|
|
26756
|
-
"get-popup-container": unref(
|
|
26756
|
+
"get-popup-container": unref(Ne),
|
|
26757
26757
|
value: unref(a).templateId,
|
|
26758
26758
|
"onUpdate:value": U[3] || (U[3] = (ue) => unref(a).templateId = ue),
|
|
26759
26759
|
placeholder: "请选择",
|
|
26760
26760
|
"show-search": "",
|
|
26761
26761
|
options: u.value,
|
|
26762
26762
|
loading: r.value,
|
|
26763
|
-
"filter-option":
|
|
26763
|
+
"filter-option": C,
|
|
26764
26764
|
onChange: v
|
|
26765
26765
|
}, null, 8, [
|
|
26766
26766
|
"get-popup-container",
|
|
@@ -26821,7 +26821,7 @@ var init_index_es = __esmMin((() => {
|
|
|
26821
26821
|
}]
|
|
26822
26822
|
}, {
|
|
26823
26823
|
default: withCtx(() => [createVNode(X, {
|
|
26824
|
-
"get-popup-container": unref(
|
|
26824
|
+
"get-popup-container": unref(Ne),
|
|
26825
26825
|
value: ue.values,
|
|
26826
26826
|
"onUpdate:value": (Se) => ue.values = Se,
|
|
26827
26827
|
mode: "multiple",
|
|
@@ -26900,9 +26900,9 @@ var init_index_es = __esmMin((() => {
|
|
|
26900
26900
|
const n = t.source.fetchPolicy ?? (t.source.fetchPolicy = {});
|
|
26901
26901
|
n.timing ??= "init", t.source.returnType ??= "object";
|
|
26902
26902
|
const l = ref(), s = ref([]), f = ref(!1), u = ref(!1), r = ref(""), k = ref("");
|
|
26903
|
-
let
|
|
26903
|
+
let C = 0, d = !0;
|
|
26904
26904
|
async function v() {
|
|
26905
|
-
const y = typeof a.serviceId == "string" ? a.serviceId : "", p = ++
|
|
26905
|
+
const y = typeof a.serviceId == "string" ? a.serviceId : "", p = ++C;
|
|
26906
26906
|
if (k.value = "", r.value = "", !y) {
|
|
26907
26907
|
u.value = !1;
|
|
26908
26908
|
return;
|
|
@@ -26910,23 +26910,23 @@ var init_index_es = __esmMin((() => {
|
|
|
26910
26910
|
u.value = !0;
|
|
26911
26911
|
try {
|
|
26912
26912
|
const R = await ie.apaas.onlineForm.getDataInitProtocolFieldMeta({ protocolKey: y });
|
|
26913
|
-
if (!d || p !==
|
|
26913
|
+
if (!d || p !== C) return;
|
|
26914
26914
|
t.source.returnFields = (R ?? []).flatMap((L) => L.key ? [{
|
|
26915
26915
|
key: L.key,
|
|
26916
26916
|
name: L.name || L.key,
|
|
26917
26917
|
type: L.type
|
|
26918
26918
|
}] : []), k.value = y;
|
|
26919
26919
|
} catch {
|
|
26920
|
-
d && p ===
|
|
26920
|
+
d && p === C && (r.value = "加载业务服务返回字段失败,请重新加载");
|
|
26921
26921
|
} finally {
|
|
26922
|
-
d && p ===
|
|
26922
|
+
d && p === C && (u.value = !1);
|
|
26923
26923
|
}
|
|
26924
26924
|
}
|
|
26925
26925
|
function M() {
|
|
26926
26926
|
t.source.returnFields = [], t.source.returnType = "object", delete a.testBindings, v();
|
|
26927
26927
|
}
|
|
26928
26928
|
onBeforeUnmount(() => {
|
|
26929
|
-
d = !1,
|
|
26929
|
+
d = !1, C++;
|
|
26930
26930
|
});
|
|
26931
26931
|
function w(y, p) {
|
|
26932
26932
|
return String((p === null || p === void 0 ? void 0 : p.label) ?? "").toLowerCase().includes(y.toLowerCase());
|
|
@@ -27007,7 +27007,7 @@ var init_index_es = __esmMin((() => {
|
|
|
27007
27007
|
}]
|
|
27008
27008
|
}, {
|
|
27009
27009
|
default: withCtx(() => [createVNode(z, {
|
|
27010
|
-
"get-popup-container": unref(
|
|
27010
|
+
"get-popup-container": unref(Ne),
|
|
27011
27011
|
value: unref(a).serviceId,
|
|
27012
27012
|
"onUpdate:value": p[2] || (p[2] = (S) => unref(a).serviceId = S),
|
|
27013
27013
|
placeholder: "请选择业务服务",
|
|
@@ -27125,7 +27125,7 @@ var init_index_es = __esmMin((() => {
|
|
|
27125
27125
|
}
|
|
27126
27126
|
});
|
|
27127
27127
|
const r = computed(() => Array.isArray(a.entityFields) ? a.entityFields : []), k = ref(!1);
|
|
27128
|
-
let
|
|
27128
|
+
let C = 0;
|
|
27129
27129
|
onMounted(() => {
|
|
27130
27130
|
v(a.modelKey);
|
|
27131
27131
|
});
|
|
@@ -27136,12 +27136,12 @@ var init_index_es = __esmMin((() => {
|
|
|
27136
27136
|
}], v(p);
|
|
27137
27137
|
}
|
|
27138
27138
|
async function v(p) {
|
|
27139
|
-
const R = ++
|
|
27139
|
+
const R = ++C;
|
|
27140
27140
|
if (a.entityFields = [], t.source.returnFields = [], k.value = !1, !(typeof p != "string" || !p)) {
|
|
27141
27141
|
k.value = !0;
|
|
27142
27142
|
try {
|
|
27143
27143
|
const L = await ie.apaas.fieldMeta.getList({ modelKey: p });
|
|
27144
|
-
if (R !==
|
|
27144
|
+
if (R !== C) return;
|
|
27145
27145
|
a.entityFields = (L ?? []).flatMap((z) => z.key ? [{
|
|
27146
27146
|
label: `${z.name || z.key} (${z.key})`,
|
|
27147
27147
|
value: z.key
|
|
@@ -27151,9 +27151,9 @@ var init_index_es = __esmMin((() => {
|
|
|
27151
27151
|
type: z.type
|
|
27152
27152
|
}] : []);
|
|
27153
27153
|
} catch {
|
|
27154
|
-
R ===
|
|
27154
|
+
R === C && message.error("加载实体模型字段失败,请重新选择实体模型");
|
|
27155
27155
|
} finally {
|
|
27156
|
-
R ===
|
|
27156
|
+
R === C && (k.value = !1);
|
|
27157
27157
|
}
|
|
27158
27158
|
}
|
|
27159
27159
|
}
|
|
@@ -27226,7 +27226,7 @@ var init_index_es = __esmMin((() => {
|
|
|
27226
27226
|
}]
|
|
27227
27227
|
}, {
|
|
27228
27228
|
default: withCtx(() => [createVNode(T, {
|
|
27229
|
-
"get-popup-container": unref(
|
|
27229
|
+
"get-popup-container": unref(Ne),
|
|
27230
27230
|
value: unref(a).modelKey,
|
|
27231
27231
|
"onUpdate:value": R[2] || (R[2] = (A) => unref(a).modelKey = A),
|
|
27232
27232
|
placeholder: "请选择实体模型",
|
|
@@ -27267,7 +27267,7 @@ var init_index_es = __esmMin((() => {
|
|
|
27267
27267
|
}]
|
|
27268
27268
|
}, {
|
|
27269
27269
|
default: withCtx(() => [createVNode(T, {
|
|
27270
|
-
"get-popup-container": unref(
|
|
27270
|
+
"get-popup-container": unref(Ne),
|
|
27271
27271
|
value: A.field,
|
|
27272
27272
|
"onUpdate:value": ($) => A.field = $,
|
|
27273
27273
|
placeholder: "请选择字段",
|
|
@@ -27397,7 +27397,7 @@ var init_index_es = __esmMin((() => {
|
|
|
27397
27397
|
u.value = !1;
|
|
27398
27398
|
}
|
|
27399
27399
|
});
|
|
27400
|
-
const k = computed(() => Array.isArray(a.parameters) ? a.parameters : []),
|
|
27400
|
+
const k = computed(() => Array.isArray(a.parameters) ? a.parameters : []), C = computed(() => t.source.returnFields), d = computed(() => !!String(a.sql ?? "").trim());
|
|
27401
27401
|
async function v() {
|
|
27402
27402
|
if (!(s.value || !d.value)) {
|
|
27403
27403
|
s.value = !0;
|
|
@@ -27423,7 +27423,7 @@ var init_index_es = __esmMin((() => {
|
|
|
27423
27423
|
return n.value = !0, (await ((_l$value12 = l.value) === null || _l$value12 === void 0 ? void 0 : _l$value12.validate().then(() => !0).catch(() => !1)) ?? !1) && k.value.every((c) => {
|
|
27424
27424
|
var _c$name, _c$value;
|
|
27425
27425
|
return !!(((_c$name = c.name) === null || _c$name === void 0 ? void 0 : _c$name.trim()) && ((_c$value = c.value) === null || _c$value === void 0 ? void 0 : _c$value.trim()));
|
|
27426
|
-
}) &&
|
|
27426
|
+
}) && C.value.every((c) => {
|
|
27427
27427
|
var _c$name2;
|
|
27428
27428
|
return !!((_c$name2 = c.name) === null || _c$name2 === void 0 ? void 0 : _c$name2.trim());
|
|
27429
27429
|
});
|
|
@@ -27508,7 +27508,7 @@ var init_index_es = __esmMin((() => {
|
|
|
27508
27508
|
}]
|
|
27509
27509
|
}, {
|
|
27510
27510
|
default: withCtx(() => [createVNode(L, {
|
|
27511
|
-
"get-popup-container": unref(
|
|
27511
|
+
"get-popup-container": unref(Ne),
|
|
27512
27512
|
value: unref(a).connectionKey,
|
|
27513
27513
|
"onUpdate:value": c[3] || (c[3] = (O) => unref(a).connectionKey = O),
|
|
27514
27514
|
placeholder: "请选择数据连接",
|
|
@@ -27621,7 +27621,7 @@ var init_index_es = __esmMin((() => {
|
|
|
27621
27621
|
default: withCtx(() => [...c[13] || (c[13] = [createTextVNode("返回字段", -1)])]),
|
|
27622
27622
|
_: 1
|
|
27623
27623
|
}), createVNode(ct, {
|
|
27624
|
-
fields:
|
|
27624
|
+
fields: C.value,
|
|
27625
27625
|
renamable: "",
|
|
27626
27626
|
"show-validation": n.value
|
|
27627
27627
|
}, null, 8, ["fields", "show-validation"])])
|
|
@@ -27655,7 +27655,7 @@ var init_index_es = __esmMin((() => {
|
|
|
27655
27655
|
onBeforeUnmount(() => {
|
|
27656
27656
|
u = !1;
|
|
27657
27657
|
});
|
|
27658
|
-
const r = ref(), k = ref(!1),
|
|
27658
|
+
const r = ref(), k = ref(!1), C = ref([]), d = ref(!1);
|
|
27659
27659
|
function v(b, y) {
|
|
27660
27660
|
return String((y === null || y === void 0 ? void 0 : y.label) ?? "").toLowerCase().includes(b.toLowerCase());
|
|
27661
27661
|
}
|
|
@@ -27670,7 +27670,7 @@ var init_index_es = __esmMin((() => {
|
|
|
27670
27670
|
transferToConfig: b
|
|
27671
27671
|
}, p = await ie.ipaas.flow.getListOnline({}, y);
|
|
27672
27672
|
if (!u) return;
|
|
27673
|
-
|
|
27673
|
+
C.value = (p ?? []).flatMap((R) => R.fuuid ? [{
|
|
27674
27674
|
label: R.name ?? R.fuuid,
|
|
27675
27675
|
value: R.fuuid
|
|
27676
27676
|
}] : []);
|
|
@@ -27780,12 +27780,12 @@ var init_index_es = __esmMin((() => {
|
|
|
27780
27780
|
}]
|
|
27781
27781
|
}, {
|
|
27782
27782
|
default: withCtx(() => [createVNode(L, {
|
|
27783
|
-
"get-popup-container": unref(
|
|
27783
|
+
"get-popup-container": unref(Ne),
|
|
27784
27784
|
value: unref(a).flowId,
|
|
27785
27785
|
"onUpdate:value": y[2] || (y[2] = (S) => unref(a).flowId = S),
|
|
27786
27786
|
placeholder: "请选择连接流",
|
|
27787
27787
|
"show-search": "",
|
|
27788
|
-
options:
|
|
27788
|
+
options: C.value,
|
|
27789
27789
|
loading: d.value,
|
|
27790
27790
|
"filter-option": v
|
|
27791
27791
|
}, null, 8, [
|
|
@@ -27950,7 +27950,7 @@ return { batchNo: $ctx.batchNo, equipName: equip.equipName };`;
|
|
|
27950
27950
|
n.value = !1;
|
|
27951
27951
|
}
|
|
27952
27952
|
}
|
|
27953
|
-
async function
|
|
27953
|
+
async function C() {
|
|
27954
27954
|
var _l$value13;
|
|
27955
27955
|
if (a.value = !0, !(await ((_l$value13 = l.value) === null || _l$value13 === void 0 ? void 0 : _l$value13.validate().then(() => !0).catch(() => !1)) ?? !1)) return !1;
|
|
27956
27956
|
try {
|
|
@@ -27964,7 +27964,7 @@ return { batchNo: $ctx.batchNo, equipName: equip.equipName };`;
|
|
|
27964
27964
|
return !!((_v$name = v.name) === null || _v$name === void 0 ? void 0 : _v$name.trim());
|
|
27965
27965
|
});
|
|
27966
27966
|
}
|
|
27967
|
-
return o({ validate:
|
|
27967
|
+
return o({ validate: C }), (d, v) => {
|
|
27968
27968
|
const M = resolveComponent("a-input"), w = resolveComponent("a-form-item"), c = resolveComponent("a-textarea"), b = resolveComponent("a-button"), y = resolveComponent("a-form");
|
|
27969
27969
|
return openBlock(), createBlock(y, {
|
|
27970
27970
|
ref_key: "formRef",
|
|
@@ -28160,9 +28160,9 @@ return { batchNo: $ctx.batchNo, equipName: equip.equipName };`;
|
|
|
28160
28160
|
n.forEach((u, r) => {
|
|
28161
28161
|
const k = u === null || u === void 0 ? void 0 : u.field;
|
|
28162
28162
|
if (typeof k != "string" || !k) throw new Error("缺少实体筛选字段");
|
|
28163
|
-
const
|
|
28164
|
-
if (
|
|
28165
|
-
s[`${k}.eq:condition-${r}`] = ao(l.type, k,
|
|
28163
|
+
const C = o[`${k}.eq:condition-${r}`];
|
|
28164
|
+
if (C == null || C === "") throw new Error(`实体筛选字段 ${k} 缺少值`);
|
|
28165
|
+
s[`${k}.eq:condition-${r}`] = ao(l.type, k, C);
|
|
28166
28166
|
});
|
|
28167
28167
|
return lo(await ie.apaas.onlineForm.postBizBizServiceSummary({
|
|
28168
28168
|
bsKey: l.type === "RDO" ? "rdoListAllVersion" : "listAll",
|
|
@@ -28212,16 +28212,16 @@ return { batchNo: $ctx.batchNo, equipName: equip.equipName };`;
|
|
|
28212
28212
|
model: e.source,
|
|
28213
28213
|
layout: "vertical"
|
|
28214
28214
|
}, {
|
|
28215
|
-
default: withCtx(() => [(openBlock(!0), createElementBlock(Fragment, null, renderList(unref(a), (
|
|
28216
|
-
key:
|
|
28215
|
+
default: withCtx(() => [(openBlock(!0), createElementBlock(Fragment, null, renderList(unref(a), (C, d) => (openBlock(), createElementBlock("div", {
|
|
28216
|
+
key: C.key,
|
|
28217
28217
|
class: "data-source-form-test__condition"
|
|
28218
28218
|
}, [
|
|
28219
28219
|
createVNode(f, {
|
|
28220
|
-
value:
|
|
28220
|
+
value: C.label,
|
|
28221
28221
|
readonly: ""
|
|
28222
28222
|
}, null, 8, ["value"]),
|
|
28223
28223
|
s[0] || (s[0] = createElementVNode("span", { class: "data-source-form-test__operator" }, "=", -1)),
|
|
28224
|
-
|
|
28224
|
+
C.kind !== "status" ? (openBlock(), createBlock(u, {
|
|
28225
28225
|
key: 0,
|
|
28226
28226
|
name: [
|
|
28227
28227
|
"config",
|
|
@@ -28237,8 +28237,8 @@ return { batchNo: $ctx.batchNo, equipName: equip.equipName };`;
|
|
|
28237
28237
|
}]
|
|
28238
28238
|
}, {
|
|
28239
28239
|
default: withCtx(() => [createVNode(f, {
|
|
28240
|
-
value:
|
|
28241
|
-
"onUpdate:value": (v) =>
|
|
28240
|
+
value: C.value,
|
|
28241
|
+
"onUpdate:value": (v) => C.value = v,
|
|
28242
28242
|
placeholder: "请输入批次号"
|
|
28243
28243
|
}, null, 8, ["value", "onUpdate:value"])]),
|
|
28244
28244
|
_: 2
|
|
@@ -28259,9 +28259,9 @@ return { batchNo: $ctx.batchNo, equipName: equip.equipName };`;
|
|
|
28259
28259
|
}]
|
|
28260
28260
|
}, {
|
|
28261
28261
|
default: withCtx(() => [createVNode(r, {
|
|
28262
|
-
"get-popup-container": unref(
|
|
28263
|
-
value:
|
|
28264
|
-
"onUpdate:value": (v) =>
|
|
28262
|
+
"get-popup-container": unref(Ne),
|
|
28263
|
+
value: C.values,
|
|
28264
|
+
"onUpdate:value": (v) => C.values = v,
|
|
28265
28265
|
mode: "multiple",
|
|
28266
28266
|
placeholder: "请选择实例状态",
|
|
28267
28267
|
options: unref(yt)
|
|
@@ -28385,7 +28385,7 @@ return { batchNo: $ctx.batchNo, equipName: equip.equipName };`;
|
|
|
28385
28385
|
model: e.source,
|
|
28386
28386
|
layout: "vertical"
|
|
28387
28387
|
}, {
|
|
28388
|
-
default: withCtx(() => [(openBlock(!0), createElementBlock(Fragment, null, renderList(unref(a), (k,
|
|
28388
|
+
default: withCtx(() => [(openBlock(!0), createElementBlock(Fragment, null, renderList(unref(a), (k, C) => (openBlock(), createElementBlock("div", {
|
|
28389
28389
|
key: k.key,
|
|
28390
28390
|
class: "data-source-biz-test__condition"
|
|
28391
28391
|
}, [
|
|
@@ -28395,7 +28395,7 @@ return { batchNo: $ctx.batchNo, equipName: equip.equipName };`;
|
|
|
28395
28395
|
name: [
|
|
28396
28396
|
"config",
|
|
28397
28397
|
"testBindings",
|
|
28398
|
-
|
|
28398
|
+
C,
|
|
28399
28399
|
"value"
|
|
28400
28400
|
],
|
|
28401
28401
|
rules: [{
|
|
@@ -28441,11 +28441,11 @@ return { batchNo: $ctx.batchNo, equipName: equip.equipName };`;
|
|
|
28441
28441
|
model: e.source,
|
|
28442
28442
|
layout: "vertical"
|
|
28443
28443
|
}, {
|
|
28444
|
-
default: withCtx(() => [(openBlock(!0), createElementBlock(Fragment, null, renderList(unref(a), (
|
|
28445
|
-
key:
|
|
28444
|
+
default: withCtx(() => [(openBlock(!0), createElementBlock(Fragment, null, renderList(unref(a), (C, d) => (openBlock(), createElementBlock("div", {
|
|
28445
|
+
key: C.key,
|
|
28446
28446
|
class: "data-source-ipaas-test__condition"
|
|
28447
28447
|
}, [
|
|
28448
|
-
createElementVNode("span", null, toDisplayString(
|
|
28448
|
+
createElementVNode("span", null, toDisplayString(C.label), 1),
|
|
28449
28449
|
f[0] || (f[0] = createElementVNode("span", { class: "data-source-ipaas-test__operator" }, "=", -1)),
|
|
28450
28450
|
createVNode(r, {
|
|
28451
28451
|
name: [
|
|
@@ -28455,15 +28455,15 @@ return { batchNo: $ctx.batchNo, equipName: equip.equipName };`;
|
|
|
28455
28455
|
"value"
|
|
28456
28456
|
],
|
|
28457
28457
|
rules: [{
|
|
28458
|
-
required:
|
|
28458
|
+
required: C.required,
|
|
28459
28459
|
whitespace: !0,
|
|
28460
28460
|
message: "请输入",
|
|
28461
28461
|
trigger: "change"
|
|
28462
28462
|
}]
|
|
28463
28463
|
}, {
|
|
28464
28464
|
default: withCtx(() => [createVNode(u, {
|
|
28465
|
-
value:
|
|
28466
|
-
"onUpdate:value": (v) =>
|
|
28465
|
+
value: C.value,
|
|
28466
|
+
"onUpdate:value": (v) => C.value = v,
|
|
28467
28467
|
placeholder: "请输入"
|
|
28468
28468
|
}, null, 8, ["value", "onUpdate:value"])]),
|
|
28469
28469
|
_: 2
|
|
@@ -28637,7 +28637,7 @@ return { batchNo: $ctx.batchNo, equipName: equip.equipName };`;
|
|
|
28637
28637
|
timing: "init"
|
|
28638
28638
|
},
|
|
28639
28639
|
config: {}
|
|
28640
|
-
}), r = reactive(u()), k = computed(() => t.mode === "create" ? "新建数源" : "编辑数源"),
|
|
28640
|
+
}), r = reactive(u()), k = computed(() => t.mode === "create" ? "新建数源" : "编辑数源"), C = computed(() => r.type === "script" ? ["选择来源类型", "配置查询"] : [
|
|
28641
28641
|
"选择来源类型",
|
|
28642
28642
|
"配置查询",
|
|
28643
28643
|
"测试 & 参数映射"
|
|
@@ -28741,7 +28741,7 @@ return { batchNo: $ctx.batchNo, equipName: equip.equipName };`;
|
|
|
28741
28741
|
onClick: V[0] || (V[0] = (S) => n("cancel"))
|
|
28742
28742
|
}, [createVNode(unref(CloseOutlined))])])]),
|
|
28743
28743
|
default: withCtx(() => [createElementVNode("div", ed, [
|
|
28744
|
-
createElementVNode("div", td, [(openBlock(!0), createElementBlock(Fragment, null, renderList(
|
|
28744
|
+
createElementVNode("div", td, [(openBlock(!0), createElementBlock(Fragment, null, renderList(C.value, (S, $) => (openBlock(), createElementBlock(Fragment, { key: S }, [createElementVNode("div", { class: normalizeClass(y($)) }, [createElementVNode("span", null, [$ < l.value ? (openBlock(), createElementBlock("i", ad)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [createTextVNode(toDisplayString($ + 1), 1)], 64))]), createElementVNode("i", null, toDisplayString(S), 1)], 2), $ < C.value.length - 1 ? (openBlock(), createElementBlock("span", od)) : createCommentVNode("", !0)], 64))), 128))]),
|
|
28745
28745
|
l.value === 0 ? (openBlock(), createElementBlock("div", nd, [(openBlock(), createElementBlock(Fragment, null, renderList(a, (S) => createElementVNode("button", {
|
|
28746
28746
|
key: S.value,
|
|
28747
28747
|
type: "button",
|
|
@@ -28779,7 +28779,7 @@ return { batchNo: $ctx.batchNo, equipName: equip.equipName };`;
|
|
|
28779
28779
|
default: withCtx(() => [...V[4] || (V[4] = [createTextVNode("上一步", -1)])]),
|
|
28780
28780
|
_: 1
|
|
28781
28781
|
}, 8, ["disabled"])) : createCommentVNode("", !0),
|
|
28782
|
-
l.value <
|
|
28782
|
+
l.value < C.value.length - 1 ? (openBlock(), createBlock(O, {
|
|
28783
28783
|
key: 1,
|
|
28784
28784
|
type: "primary",
|
|
28785
28785
|
onClick: p
|
|
@@ -29002,7 +29002,7 @@ return { batchNo: $ctx.batchNo, equipName: equip.equipName };`;
|
|
|
29002
29002
|
}), f = ref(!l.value), u = computed(() => {
|
|
29003
29003
|
var _a$runtimeManager2;
|
|
29004
29004
|
return l.value ? ((_a$runtimeManager2 = a.runtimeManager) === null || _a$runtimeManager2 === void 0 ? void 0 : _a$runtimeManager2.getSources()) ?? [] : a.modelValue;
|
|
29005
|
-
}), r = ref(!1), k = ref("create"),
|
|
29005
|
+
}), r = ref(!1), k = ref("create"), C = ref(), d = ref(/* @__PURE__ */ new Set());
|
|
29006
29006
|
function v(E) {
|
|
29007
29007
|
if (E === void 0) return "--";
|
|
29008
29008
|
if (E === null) return "null";
|
|
@@ -29102,17 +29102,17 @@ return { batchNo: $ctx.batchNo, equipName: equip.equipName };`;
|
|
|
29102
29102
|
return uo(E);
|
|
29103
29103
|
}
|
|
29104
29104
|
function $() {
|
|
29105
|
-
k.value = "create",
|
|
29105
|
+
k.value = "create", C.value = void 0, r.value = !0;
|
|
29106
29106
|
}
|
|
29107
29107
|
function U(E) {
|
|
29108
|
-
k.value = "edit",
|
|
29108
|
+
k.value = "edit", C.value = cloneDeep(E), r.value = !0;
|
|
29109
29109
|
}
|
|
29110
29110
|
function J(E) {
|
|
29111
29111
|
const X = u.value.slice();
|
|
29112
29112
|
if (k.value === "edit") {
|
|
29113
29113
|
const le = X.findIndex((me) => {
|
|
29114
|
-
var
|
|
29115
|
-
return me.key === ((
|
|
29114
|
+
var _C$value3;
|
|
29115
|
+
return me.key === ((_C$value3 = C.value) === null || _C$value3 === void 0 ? void 0 : _C$value3.key);
|
|
29116
29116
|
});
|
|
29117
29117
|
if (le >= 0) {
|
|
29118
29118
|
const me = X[le].key;
|
|
@@ -29287,7 +29287,7 @@ return { batchNo: $ctx.batchNo, equipName: equip.equipName };`;
|
|
|
29287
29287
|
key: 2,
|
|
29288
29288
|
visible: r.value,
|
|
29289
29289
|
mode: k.value,
|
|
29290
|
-
value:
|
|
29290
|
+
value: C.value,
|
|
29291
29291
|
list: u.value,
|
|
29292
29292
|
onConfirm: J,
|
|
29293
29293
|
onCancel: X[1] || (X[1] = (Q) => r.value = !1)
|
|
@@ -29331,7 +29331,7 @@ onmessage = async ({ data }) => {
|
|
|
29331
29331
|
}
|
|
29332
29332
|
};
|
|
29333
29333
|
`;
|
|
29334
|
-
|
|
29334
|
+
ze = class extends Error {
|
|
29335
29335
|
constructor(o, t) {
|
|
29336
29336
|
super(t), this.code = o, this.name = "DataSourceRuntimeError";
|
|
29337
29337
|
}
|
|
@@ -29353,45 +29353,53 @@ onmessage = async ({ data }) => {
|
|
|
29353
29353
|
},
|
|
29354
29354
|
emits: ["update:modelValue"],
|
|
29355
29355
|
setup(e, { emit: o }) {
|
|
29356
|
-
const t = e, a = o
|
|
29357
|
-
|
|
29358
|
-
|
|
29359
|
-
}
|
|
29360
|
-
|
|
29361
|
-
|
|
29356
|
+
const t = e, a = o;
|
|
29357
|
+
function n(k) {
|
|
29358
|
+
return k.ownerDocument.body;
|
|
29359
|
+
}
|
|
29360
|
+
const l = computed(() => t.dataSources.filter(fo)), s = computed(() => t.modelValue.filter((k) => !l.value.some((C) => C.key === k))), f = computed(() => [...l.value.map((k) => ({
|
|
29361
|
+
value: k.key,
|
|
29362
|
+
label: `${k.name || k.key}(${k.key})`
|
|
29363
|
+
})), ...s.value.map((k) => ({
|
|
29364
|
+
value: k,
|
|
29365
|
+
label: `${k}(不可用)`
|
|
29362
29366
|
}))]);
|
|
29363
|
-
function
|
|
29364
|
-
return String((
|
|
29367
|
+
function u(k, C) {
|
|
29368
|
+
return String((C === null || C === void 0 ? void 0 : C.label) ?? "").toLowerCase().includes(k.toLowerCase());
|
|
29365
29369
|
}
|
|
29366
|
-
function
|
|
29367
|
-
Array.isArray(
|
|
29370
|
+
function r(k) {
|
|
29371
|
+
Array.isArray(k) && a("update:modelValue", [...new Set(k.filter((C) => typeof C == "string"))]);
|
|
29368
29372
|
}
|
|
29369
|
-
return (
|
|
29370
|
-
const
|
|
29373
|
+
return (k, C) => {
|
|
29374
|
+
const d = resolveComponent("a-select");
|
|
29371
29375
|
return openBlock(), createElementBlock("div", Qd, [
|
|
29372
|
-
createVNode(
|
|
29373
|
-
"get-popup-container":
|
|
29376
|
+
createVNode(d, {
|
|
29377
|
+
"get-popup-container": n,
|
|
29378
|
+
"dropdown-class-name": "data-source-change-event__dropdown",
|
|
29379
|
+
"dropdown-style": {
|
|
29380
|
+
boxShadow: "0 3px 6px -4px rgb(0 0 0 / 12%), 0 6px 16px rgb(0 0 0 / 8%), 0 9px 28px 8px rgb(0 0 0 / 5%)",
|
|
29381
|
+
borderRadius: "4px"
|
|
29382
|
+
},
|
|
29374
29383
|
mode: "multiple",
|
|
29375
29384
|
value: e.modelValue,
|
|
29376
|
-
options:
|
|
29385
|
+
options: f.value,
|
|
29377
29386
|
disabled: e.disabled,
|
|
29378
|
-
"filter-option":
|
|
29387
|
+
"filter-option": u,
|
|
29379
29388
|
placeholder: "选择值变化时查询的数源",
|
|
29380
29389
|
"show-search": "",
|
|
29381
29390
|
style: { width: "100%" },
|
|
29382
|
-
onChange:
|
|
29391
|
+
onChange: r
|
|
29383
29392
|
}, null, 8, [
|
|
29384
|
-
"get-popup-container",
|
|
29385
29393
|
"value",
|
|
29386
29394
|
"options",
|
|
29387
29395
|
"disabled"
|
|
29388
29396
|
]),
|
|
29389
|
-
|
|
29390
|
-
|
|
29397
|
+
C[0] || (C[0] = createElementVNode("p", null, "字段值变化时查询所选数源,可选择多个。表单模型、内置业务和实体模型需将取数时机设为“值变化”。", -1)),
|
|
29398
|
+
s.value.length ? (openBlock(), createElementBlock("p", Yd, toDisplayString(s.value.join("、")) + " 已删除或取数时机已变更,请移除后重新选择。 ", 1)) : createCommentVNode("", !0)
|
|
29391
29399
|
]);
|
|
29392
29400
|
};
|
|
29393
29401
|
}
|
|
29394
|
-
}), [["__scopeId", "data-v-
|
|
29402
|
+
}), [["__scopeId", "data-v-08966180"]]);
|
|
29395
29403
|
tf = { class: "field-fill-editor" };
|
|
29396
29404
|
af = { class: "field-fill-editor__header" };
|
|
29397
29405
|
of = { class: "field-fill-editor__header-actions" };
|
|
@@ -29438,7 +29446,7 @@ onmessage = async ({ data }) => {
|
|
|
29438
29446
|
};
|
|
29439
29447
|
});
|
|
29440
29448
|
}
|
|
29441
|
-
const
|
|
29449
|
+
const C = computed({
|
|
29442
29450
|
get: () => l.targetFieldKey || void 0,
|
|
29443
29451
|
set: (y) => {
|
|
29444
29452
|
l.targetFieldKey = y;
|
|
@@ -29543,8 +29551,8 @@ onmessage = async ({ data }) => {
|
|
|
29543
29551
|
rules: v
|
|
29544
29552
|
}, {
|
|
29545
29553
|
default: withCtx(() => [createVNode(L, {
|
|
29546
|
-
value:
|
|
29547
|
-
"onUpdate:value": p[2] || (p[2] = (U) =>
|
|
29554
|
+
value: C.value,
|
|
29555
|
+
"onUpdate:value": p[2] || (p[2] = (U) => C.value = U),
|
|
29548
29556
|
"tree-data": d.value,
|
|
29549
29557
|
"show-search": "",
|
|
29550
29558
|
"tree-node-filter-prop": "title",
|
|
@@ -29654,7 +29662,7 @@ onmessage = async ({ data }) => {
|
|
|
29654
29662
|
function k() {
|
|
29655
29663
|
s.value = "create", f.value = void 0, l.value = !0;
|
|
29656
29664
|
}
|
|
29657
|
-
function
|
|
29665
|
+
function C(M) {
|
|
29658
29666
|
s.value = "edit", f.value = cloneDeep(M), l.value = !0;
|
|
29659
29667
|
}
|
|
29660
29668
|
function d(M) {
|
|
@@ -29687,7 +29695,7 @@ onmessage = async ({ data }) => {
|
|
|
29687
29695
|
class: "field-fills__action field-fills__action--edit",
|
|
29688
29696
|
title: "编辑填充",
|
|
29689
29697
|
"aria-label": "编辑填充",
|
|
29690
|
-
onClick: (p) =>
|
|
29698
|
+
onClick: (p) => C(y)
|
|
29691
29699
|
}, [createVNode(unref(EditOutlined))], 8, mf), createVNode(c, {
|
|
29692
29700
|
title: "确认删除该字段填充?",
|
|
29693
29701
|
onConfirm: (p) => v(y.id)
|
|
@@ -29787,7 +29795,7 @@ onmessage = async ({ data }) => {
|
|
|
29787
29795
|
y: 0
|
|
29788
29796
|
});
|
|
29789
29797
|
let f = 0, u = 0, r = 0, k = 0;
|
|
29790
|
-
const
|
|
29798
|
+
const C = computed(() => [
|
|
29791
29799
|
"gct-form-base-modal",
|
|
29792
29800
|
n.wrapClassName,
|
|
29793
29801
|
t.mask ? "" : "gct-form-base-modal--maskless",
|
|
@@ -29836,7 +29844,7 @@ onmessage = async ({ data }) => {
|
|
|
29836
29844
|
}, d.value, {
|
|
29837
29845
|
visible: e.visible,
|
|
29838
29846
|
mask: e.mask,
|
|
29839
|
-
"wrap-class-name":
|
|
29847
|
+
"wrap-class-name": C.value,
|
|
29840
29848
|
onCancel: R[1] || (R[1] = (L) => a("cancel", L)),
|
|
29841
29849
|
onOk: R[2] || (R[2] = (L) => a("ok", L)),
|
|
29842
29850
|
onAfterClose: R[3] || (R[3] = (L) => a("afterClose"))
|
|
@@ -29901,7 +29909,7 @@ onmessage = async ({ data }) => {
|
|
|
29901
29909
|
}),
|
|
29902
29910
|
emits: ["update:formState"],
|
|
29903
29911
|
setup(e) {
|
|
29904
|
-
const o = e, t = useModel(e, "formState"), a = ref([]), n = ref([]), l = ref([]), s = ref(!1), f = ref({}), u = /* @__PURE__ */ new WeakMap(), r = ref({}), k = ref(!1),
|
|
29912
|
+
const o = e, t = useModel(e, "formState"), a = ref([]), n = ref([]), l = ref([]), s = ref(!1), f = ref({}), u = /* @__PURE__ */ new WeakMap(), r = ref({}), k = ref(!1), C = ref(!1), d = ref(!1), v = ref({}), M = ref({});
|
|
29905
29913
|
let w = !1, c, b = !1, y, p = !1;
|
|
29906
29914
|
function R(I) {
|
|
29907
29915
|
return [...new Set((I ?? "").split(",").map((P) => P.trim()).filter(Boolean))];
|
|
@@ -30018,7 +30026,7 @@ onmessage = async ({ data }) => {
|
|
|
30018
30026
|
async function Q() {
|
|
30019
30027
|
if (y) return y;
|
|
30020
30028
|
if (!b) {
|
|
30021
|
-
|
|
30029
|
+
C.value = !0, y = (async () => {
|
|
30022
30030
|
const I = await ie.apaas.modelComprehensive.postBizServiceModelCategoryModelKeyBsKey({
|
|
30023
30031
|
modelCategory: lt,
|
|
30024
30032
|
modelKey: "em_shopfloor",
|
|
@@ -30034,7 +30042,7 @@ onmessage = async ({ data }) => {
|
|
|
30034
30042
|
try {
|
|
30035
30043
|
await y;
|
|
30036
30044
|
} finally {
|
|
30037
|
-
y = void 0,
|
|
30045
|
+
y = void 0, C.value = !1;
|
|
30038
30046
|
}
|
|
30039
30047
|
}
|
|
30040
30048
|
}
|
|
@@ -30383,7 +30391,7 @@ onmessage = async ({ data }) => {
|
|
|
30383
30391
|
"filter-option": O,
|
|
30384
30392
|
placeholder: I.$t("sys.chooseText"),
|
|
30385
30393
|
options: S(Me),
|
|
30386
|
-
loading:
|
|
30394
|
+
loading: C.value,
|
|
30387
30395
|
disabled: t.value.consume_source_config_ === "follow_common_policy",
|
|
30388
30396
|
onFocus: St,
|
|
30389
30397
|
onChange: () => Ct(Me)
|
|
@@ -30576,7 +30584,7 @@ onmessage = async ({ data }) => {
|
|
|
30576
30584
|
}, {
|
|
30577
30585
|
default: withCtx(() => [createVNode(s, {
|
|
30578
30586
|
value: o.value.qty_validation_enabled_,
|
|
30579
|
-
"onUpdate:value": n[0] || (n[0] = (
|
|
30587
|
+
"onUpdate:value": n[0] || (n[0] = (C) => o.value.qty_validation_enabled_ = C)
|
|
30580
30588
|
}, {
|
|
30581
30589
|
default: withCtx(() => [createVNode(l, { value: !0 }, {
|
|
30582
30590
|
default: withCtx(() => [createTextVNode(toDisplayString(a.$t("sys.true")), 1)]),
|
|
@@ -30597,7 +30605,7 @@ onmessage = async ({ data }) => {
|
|
|
30597
30605
|
}, {
|
|
30598
30606
|
default: withCtx(() => [createVNode(u, {
|
|
30599
30607
|
value: o.value.qty_validation_rule_,
|
|
30600
|
-
"onUpdate:value": n[1] || (n[1] = (
|
|
30608
|
+
"onUpdate:value": n[1] || (n[1] = (C) => o.value.qty_validation_rule_ = C),
|
|
30601
30609
|
placeholder: a.$t("sys.chooseText"),
|
|
30602
30610
|
options: t
|
|
30603
30611
|
}, null, 8, ["value", "placeholder"])]),
|
|
@@ -30618,11 +30626,11 @@ onmessage = async ({ data }) => {
|
|
|
30618
30626
|
}, {
|
|
30619
30627
|
default: withCtx(() => [createVNode(Oa, {
|
|
30620
30628
|
value: o.value.max_value_,
|
|
30621
|
-
"onUpdate:value": n[2] || (n[2] = (
|
|
30629
|
+
"onUpdate:value": n[2] || (n[2] = (C) => o.value.max_value_ = C),
|
|
30622
30630
|
"model-key": "em_material_consume",
|
|
30623
30631
|
mode: unref(Jt).FIELD_DISPLAY,
|
|
30624
30632
|
"disabled-return-type": !0,
|
|
30625
|
-
"filter-func": (
|
|
30633
|
+
"filter-func": (C) => C.key === "qty_required_"
|
|
30626
30634
|
}, null, 8, [
|
|
30627
30635
|
"value",
|
|
30628
30636
|
"mode",
|
|
@@ -30639,11 +30647,11 @@ onmessage = async ({ data }) => {
|
|
|
30639
30647
|
}, {
|
|
30640
30648
|
default: withCtx(() => [createVNode(Oa, {
|
|
30641
30649
|
value: o.value.min_value_,
|
|
30642
|
-
"onUpdate:value": n[3] || (n[3] = (
|
|
30650
|
+
"onUpdate:value": n[3] || (n[3] = (C) => o.value.min_value_ = C),
|
|
30643
30651
|
"model-key": "em_material_consume",
|
|
30644
30652
|
mode: unref(Jt).FIELD_DISPLAY,
|
|
30645
30653
|
"disabled-return-type": !0,
|
|
30646
|
-
"filter-func": (
|
|
30654
|
+
"filter-func": (C) => C.key === "qty_required_"
|
|
30647
30655
|
}, null, 8, [
|
|
30648
30656
|
"value",
|
|
30649
30657
|
"mode",
|
|
@@ -30718,7 +30726,7 @@ onmessage = async ({ data }) => {
|
|
|
30718
30726
|
await ((_n$value9 = n.value) === null || _n$value9 === void 0 ? void 0 : _n$value9.validate());
|
|
30719
30727
|
}
|
|
30720
30728
|
return o({ validate: f }), (u, r) => {
|
|
30721
|
-
const k = resolveComponent("a-select"),
|
|
30729
|
+
const k = resolveComponent("a-select"), C = resolveComponent("a-form-item"), d = resolveComponent("a-switch"), v = resolveComponent("a-radio"), M = resolveComponent("a-radio-group"), w = resolveComponent("a-form");
|
|
30722
30730
|
return openBlock(), createElementBlock("div", null, [createVNode(unref(ve), null, {
|
|
30723
30731
|
default: withCtx(() => [...r[5] || (r[5] = [createTextVNode("用料策略", -1)])]),
|
|
30724
30732
|
_: 1
|
|
@@ -30728,7 +30736,7 @@ onmessage = async ({ data }) => {
|
|
|
30728
30736
|
model: a.value,
|
|
30729
30737
|
rules: s.value
|
|
30730
30738
|
}, {
|
|
30731
|
-
default: withCtx(() => [createVNode(
|
|
30739
|
+
default: withCtx(() => [createVNode(C, {
|
|
30732
30740
|
name: "material_consumption_pattern_",
|
|
30733
30741
|
required: ""
|
|
30734
30742
|
}, {
|
|
@@ -30740,7 +30748,7 @@ onmessage = async ({ data }) => {
|
|
|
30740
30748
|
options: l.value
|
|
30741
30749
|
}, null, 8, ["value", "options"])]),
|
|
30742
30750
|
_: 1
|
|
30743
|
-
}), e.hasBomCofig ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [createVNode(
|
|
30751
|
+
}), e.hasBomCofig ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [createVNode(C, {
|
|
30744
30752
|
name: "personal_bom_enabled_",
|
|
30745
30753
|
label: "自定义用料策略"
|
|
30746
30754
|
}, {
|
|
@@ -30750,7 +30758,7 @@ onmessage = async ({ data }) => {
|
|
|
30750
30758
|
}, null, 8, ["checked"])])]),
|
|
30751
30759
|
_: 1
|
|
30752
30760
|
}), a.value.personal_bom_enabled_ ? (openBlock(), createElementBlock("div", Uf, [
|
|
30753
|
-
createVNode(
|
|
30761
|
+
createVNode(C, {
|
|
30754
30762
|
name: "type_",
|
|
30755
30763
|
required: ""
|
|
30756
30764
|
}, {
|
|
@@ -30858,7 +30866,7 @@ onmessage = async ({ data }) => {
|
|
|
30858
30866
|
title: "默认值",
|
|
30859
30867
|
slots: { default: "value_default" }
|
|
30860
30868
|
}]
|
|
30861
|
-
}), k = computed(() => !!t.bizOptions.editingItem),
|
|
30869
|
+
}), k = computed(() => !!t.bizOptions.editingItem), C = computed(() => !!Object.keys(u.value.parseRuleProps || {}).length), d = computed(() => t.bizOptions.objectFields.filter((p) => {
|
|
30862
30870
|
var _t$bizOptions$configu, _t$bizOptions$configu2;
|
|
30863
30871
|
return k.value || !((_t$bizOptions$configu = t.bizOptions.configuredItems) === null || _t$bizOptions$configu === void 0 ? void 0 : _t$bizOptions$configu.length) ? !0 : !((_t$bizOptions$configu2 = t.bizOptions.configuredItems) === null || _t$bizOptions$configu2 === void 0 ? void 0 : _t$bizOptions$configu2.find((R) => R.objectField === p.key));
|
|
30864
30872
|
}).map((p) => ({
|
|
@@ -31012,11 +31020,11 @@ onmessage = async ({ data }) => {
|
|
|
31012
31020
|
}, 8, ["rules"])) : (openBlock(), createBlock(V, {
|
|
31013
31021
|
key: 0,
|
|
31014
31022
|
block: "",
|
|
31015
|
-
ghost: !
|
|
31023
|
+
ghost: !C.value,
|
|
31016
31024
|
type: "primary",
|
|
31017
31025
|
onClick: c
|
|
31018
31026
|
}, {
|
|
31019
|
-
default: withCtx(() => [createTextVNode(toDisplayString(
|
|
31027
|
+
default: withCtx(() => [createTextVNode(toDisplayString(C.value ? "编辑" : "添加") + "规则 ", 1)]),
|
|
31020
31028
|
_: 1
|
|
31021
31029
|
}, 8, ["ghost"]))]),
|
|
31022
31030
|
_: 1
|
|
@@ -31117,7 +31125,7 @@ onmessage = async ({ data }) => {
|
|
|
31117
31125
|
})));
|
|
31118
31126
|
const k = () => {
|
|
31119
31127
|
console.log("change", r.fillMapArr), n("update:fillMapArr", l(r.fillMapArr));
|
|
31120
|
-
},
|
|
31128
|
+
}, C = async (c) => {
|
|
31121
31129
|
if (!c) {
|
|
31122
31130
|
u.value = [], n("ruleConfigChange", void 0);
|
|
31123
31131
|
return;
|
|
@@ -31134,7 +31142,7 @@ onmessage = async ({ data }) => {
|
|
|
31134
31142
|
}, d = (c) => {
|
|
31135
31143
|
if (a.disabled) return;
|
|
31136
31144
|
const b = c ?? void 0;
|
|
31137
|
-
b !== r.parsingRuleId && (r.parsingRuleId = b, r.fillMapArr = [], n("update:parsingRuleId", b), n("update:fillMapArr", []),
|
|
31145
|
+
b !== r.parsingRuleId && (r.parsingRuleId = b, r.fillMapArr = [], n("update:parsingRuleId", b), n("update:fillMapArr", []), C(b));
|
|
31138
31146
|
}, v = () => {
|
|
31139
31147
|
a.disabled || (r.fillMapArr.push({ formFields: [] }), k());
|
|
31140
31148
|
}, M = (c) => {
|
|
@@ -31144,7 +31152,7 @@ onmessage = async ({ data }) => {
|
|
|
31144
31152
|
return y ? b.label.toLowerCase().includes(y) || String(b.value ?? "").toLowerCase().includes(y) : !0;
|
|
31145
31153
|
};
|
|
31146
31154
|
return onMounted(() => {
|
|
31147
|
-
r.parsingRuleId &&
|
|
31155
|
+
r.parsingRuleId && C(r.parsingRuleId);
|
|
31148
31156
|
}), o({ validate: () => {
|
|
31149
31157
|
var _s$value6;
|
|
31150
31158
|
return (_s$value6 = s.value) === null || _s$value6 === void 0 ? void 0 : _s$value6.validate();
|
|
@@ -31300,33 +31308,33 @@ onmessage = async ({ data }) => {
|
|
|
31300
31308
|
parsingRuleId: (_t$bizOptions$scanRul = t.bizOptions.scanRules) === null || _t$bizOptions$scanRul === void 0 ? void 0 : _t$bizOptions$scanRul.parsingRuleId,
|
|
31301
31309
|
fillMapArr: cloneDeep((_t$bizOptions$scanRul2 = t.bizOptions.scanRules) === null || _t$bizOptions$scanRul2 === void 0 ? void 0 : _t$bizOptions$scanRul2.fillMapArr) ?? []
|
|
31302
31310
|
}), f = ref();
|
|
31303
|
-
function u(
|
|
31304
|
-
n.value =
|
|
31311
|
+
function u(C) {
|
|
31312
|
+
n.value = C;
|
|
31305
31313
|
}
|
|
31306
|
-
const r = (
|
|
31307
|
-
f.value =
|
|
31314
|
+
const r = (C) => {
|
|
31315
|
+
f.value = C;
|
|
31308
31316
|
}, k = async () => {
|
|
31309
31317
|
if (!f.value && !t.bizOptions.scanParam) {
|
|
31310
31318
|
message.error($t("sys.edhr.mcTable.scanRuleNotFound"));
|
|
31311
31319
|
return;
|
|
31312
31320
|
}
|
|
31313
|
-
let
|
|
31321
|
+
let C, d = {};
|
|
31314
31322
|
const v = s.value.fillMapArr;
|
|
31315
|
-
f.value ?
|
|
31323
|
+
f.value ? C = Xf(s.value.str, JSON.stringify(f.value)) : t.bizOptions.scanParam && (C = { [t.bizOptions.scanParam]: s.value.str }), v !== null && v !== void 0 && v.length && C && (d = Qf(C, v));
|
|
31316
31324
|
const M = {
|
|
31317
31325
|
str: s.value.str,
|
|
31318
|
-
parsedValue:
|
|
31326
|
+
parsedValue: C,
|
|
31319
31327
|
transformedData: d,
|
|
31320
31328
|
type: t.bizOptions.showScanAdjustBtn ? n.value : void 0
|
|
31321
31329
|
}, w = await t.bizOptions.onScan(M);
|
|
31322
31330
|
s.value.str = "", w && t.modalInst.cancel();
|
|
31323
31331
|
};
|
|
31324
|
-
return (
|
|
31332
|
+
return (C, d) => {
|
|
31325
31333
|
const v = resolveComponent("a-input"), M = resolveComponent("a-form-item"), w = resolveComponent("a-form"), c = resolveComponent("a-divider");
|
|
31326
31334
|
return openBlock(), createBlock(wt, mergeProps(t.modalProps, {
|
|
31327
31335
|
class: "gct-form-base-modal-common-scan",
|
|
31328
31336
|
visible: t.modalVisible,
|
|
31329
|
-
title: t.bizOptions.title ||
|
|
31337
|
+
title: t.bizOptions.title || C.$t("sys.edhr.mcTable.scanEntry"),
|
|
31330
31338
|
width: 460,
|
|
31331
31339
|
mask: !1,
|
|
31332
31340
|
"mask-closable": !1,
|
|
@@ -31356,7 +31364,7 @@ onmessage = async ({ data }) => {
|
|
|
31356
31364
|
value: s.value.str,
|
|
31357
31365
|
"onUpdate:value": d[2] || (d[2] = (b) => s.value.str = b),
|
|
31358
31366
|
size: "large",
|
|
31359
|
-
placeholder:
|
|
31367
|
+
placeholder: C.$t("sys.edhr.mcTable.pleaseScanEntry"),
|
|
31360
31368
|
onKeyup: withKeys(k, ["enter"])
|
|
31361
31369
|
}, {
|
|
31362
31370
|
prefix: withCtx(() => [createElementVNode("img", {
|
|
@@ -31482,7 +31490,7 @@ onmessage = async ({ data }) => {
|
|
|
31482
31490
|
product_spec_: void 0
|
|
31483
31491
|
};
|
|
31484
31492
|
}
|
|
31485
|
-
function
|
|
31493
|
+
function C() {
|
|
31486
31494
|
var _o$form;
|
|
31487
31495
|
const w = (t.value.substitute_material_entries_ ?? []).map((c, b) => [
|
|
31488
31496
|
"substitute_material_entries_",
|
|
@@ -31492,7 +31500,7 @@ onmessage = async ({ data }) => {
|
|
|
31492
31500
|
if (w.length) return (_o$form = o.form) === null || _o$form === void 0 ? void 0 : _o$form.validateFields(w).catch(() => {});
|
|
31493
31501
|
}
|
|
31494
31502
|
function d(w, c, b) {
|
|
31495
|
-
Object.assign(w, k(c ?? null, b)), nextTick(() =>
|
|
31503
|
+
Object.assign(w, k(c ?? null, b)), nextTick(() => C());
|
|
31496
31504
|
}
|
|
31497
31505
|
function v() {
|
|
31498
31506
|
t.value.substitute_material_entries_.push({
|
|
@@ -31506,10 +31514,10 @@ onmessage = async ({ data }) => {
|
|
|
31506
31514
|
});
|
|
31507
31515
|
}
|
|
31508
31516
|
function M(w) {
|
|
31509
|
-
t.value.substitute_material_entries_.splice(w, 1), nextTick(() =>
|
|
31517
|
+
t.value.substitute_material_entries_.splice(w, 1), nextTick(() => C());
|
|
31510
31518
|
}
|
|
31511
31519
|
return watch(() => t.value.product_id_, () => {
|
|
31512
|
-
nextTick(() =>
|
|
31520
|
+
nextTick(() => C());
|
|
31513
31521
|
}), (w, c) => {
|
|
31514
31522
|
const b = resolveComponent("a-radio"), y = resolveComponent("a-radio-group"), p = resolveComponent("a-form-item"), R = resolveComponent("a-select"), L = resolveComponent("a-col"), z = resolveComponent("a-row"), T = resolveComponent("a-button"), V = resolveComponent("a-table");
|
|
31515
31523
|
return openBlock(), createElementBlock(Fragment, null, [createVNode(p, {
|
|
@@ -31715,7 +31723,7 @@ onmessage = async ({ data }) => {
|
|
|
31715
31723
|
message: $t("sys.pleaseInputSth", { sth: $t("sys.edhr.mcTable.lotMixingTimes") })
|
|
31716
31724
|
}])), T;
|
|
31717
31725
|
});
|
|
31718
|
-
function
|
|
31726
|
+
function C(T) {
|
|
31719
31727
|
const V = (T === null || T === void 0 ? void 0 : T._info) ?? {}, O = ((T === null || T === void 0 ? void 0 : T.displayLabel) || "").split(":"), A = O.length > 1 ? O[0] : typeof (T === null || T === void 0 ? void 0 : T.title) == "string" ? T.title : "";
|
|
31720
31728
|
return {
|
|
31721
31729
|
product_code_: V.code_ ?? "",
|
|
@@ -31727,7 +31735,7 @@ onmessage = async ({ data }) => {
|
|
|
31727
31735
|
function d(T, V) {
|
|
31728
31736
|
return T ? {
|
|
31729
31737
|
product_id_: T,
|
|
31730
|
-
...
|
|
31738
|
+
...C(V)
|
|
31731
31739
|
} : {
|
|
31732
31740
|
product_id_: void 0,
|
|
31733
31741
|
product_code_: void 0,
|
|
@@ -32010,15 +32018,15 @@ onmessage = async ({ data }) => {
|
|
|
32010
32018
|
if (t.bizOptions.readonly) return;
|
|
32011
32019
|
try {
|
|
32012
32020
|
var _n$value11;
|
|
32013
|
-
const
|
|
32014
|
-
|
|
32021
|
+
const C = (_n$value11 = n.value) === null || _n$value11 === void 0 ? void 0 : _n$value11.validate;
|
|
32022
|
+
C && await C();
|
|
32015
32023
|
} catch {
|
|
32016
32024
|
return;
|
|
32017
32025
|
}
|
|
32018
32026
|
const k = u() ? void 0 : cloneDeep(toRaw(l));
|
|
32019
32027
|
t.modalInst.confirm(k);
|
|
32020
32028
|
};
|
|
32021
|
-
return (k,
|
|
32029
|
+
return (k, C) => (openBlock(), createBlock(wt, mergeProps(f.value, {
|
|
32022
32030
|
class: "gct-form-base-modal-parse-rule",
|
|
32023
32031
|
visible: t.modalVisible,
|
|
32024
32032
|
title: s.value,
|
|
@@ -32026,7 +32034,7 @@ onmessage = async ({ data }) => {
|
|
|
32026
32034
|
draggable: "",
|
|
32027
32035
|
onCancel: t.modalInst.cancel,
|
|
32028
32036
|
onOk: r,
|
|
32029
|
-
onAfterClose:
|
|
32037
|
+
onAfterClose: C[2] || (C[2] = (d) => a("afterClose"))
|
|
32030
32038
|
}), {
|
|
32031
32039
|
default: withCtx(() => {
|
|
32032
32040
|
var _e$bizOptions;
|
|
@@ -32034,9 +32042,9 @@ onmessage = async ({ data }) => {
|
|
|
32034
32042
|
ref_key: "fieldMappingRef",
|
|
32035
32043
|
ref: n,
|
|
32036
32044
|
"parsing-rule-id": l.parsingRuleId,
|
|
32037
|
-
"onUpdate:parsingRuleId":
|
|
32045
|
+
"onUpdate:parsingRuleId": C[0] || (C[0] = (d) => l.parsingRuleId = d),
|
|
32038
32046
|
"fill-map-arr": l.fillMapArr,
|
|
32039
|
-
"onUpdate:fillMapArr":
|
|
32047
|
+
"onUpdate:fillMapArr": C[1] || (C[1] = (d) => l.fillMapArr = d),
|
|
32040
32048
|
bordered: "",
|
|
32041
32049
|
"tip-placement": "before",
|
|
32042
32050
|
"rule-tip": t.bizOptions.ruleTip,
|
|
@@ -32121,7 +32129,7 @@ onmessage = async ({ data }) => {
|
|
|
32121
32129
|
}, {}, { production_identification_id_: d });
|
|
32122
32130
|
return `该物料批次已被锁定;锁定人:${M.lock_user_id_[v.lock_user_id_]};锁定原因:${v.lock_reason_}`;
|
|
32123
32131
|
}
|
|
32124
|
-
const
|
|
32132
|
+
const C = async () => {
|
|
32125
32133
|
if (!s.value) {
|
|
32126
32134
|
message.error("请选择一条数据");
|
|
32127
32135
|
return;
|
|
@@ -32141,7 +32149,7 @@ onmessage = async ({ data }) => {
|
|
|
32141
32149
|
width: 800,
|
|
32142
32150
|
fullscreen: !1,
|
|
32143
32151
|
onCancel: n.modalInst.cancel,
|
|
32144
|
-
onOk:
|
|
32152
|
+
onOk: C,
|
|
32145
32153
|
onAfterClose: v[0] || (v[0] = (M) => l("afterClose"))
|
|
32146
32154
|
}), {
|
|
32147
32155
|
default: withCtx(() => [createElementVNode("div", T2, [createVNode(unref(VxeGrid), mergeProps({
|
|
@@ -32372,9 +32380,9 @@ onmessage = async ({ data }) => {
|
|
|
32372
32380
|
zIndex: a.zIndex ?? 1e3 + ++this.zIndexSeed * 2
|
|
32373
32381
|
};
|
|
32374
32382
|
return new Promise((u, r) => {
|
|
32375
|
-
let k = !1,
|
|
32383
|
+
let k = !1, C = !1, d = !1, v;
|
|
32376
32384
|
const M = (p) => {
|
|
32377
|
-
k || (k = !0,
|
|
32385
|
+
k || (k = !0, C = !0, s.visible = !1, u(p));
|
|
32378
32386
|
}, w = {
|
|
32379
32387
|
id: l,
|
|
32380
32388
|
confirm(p) {
|
|
@@ -32409,7 +32417,7 @@ onmessage = async ({ data }) => {
|
|
|
32409
32417
|
this.modalMap.set(l, {
|
|
32410
32418
|
id: l,
|
|
32411
32419
|
cancel: w.cancel,
|
|
32412
|
-
isClosing: () =>
|
|
32420
|
+
isClosing: () => C
|
|
32413
32421
|
});
|
|
32414
32422
|
try {
|
|
32415
32423
|
v = H2(y, this.appContext, l);
|
|
@@ -32439,7 +32447,7 @@ onmessage = async ({ data }) => {
|
|
|
32439
32447
|
} };
|
|
32440
32448
|
}));
|
|
32441
32449
|
//#endregion
|
|
32442
|
-
//#region ../../node_modules/.pnpm/@gct-paas+form-base@0.1.6-beta.
|
|
32450
|
+
//#region ../../node_modules/.pnpm/@gct-paas+form-base@0.1.6-beta.4_@gct-paas+api@6.2.0-dev.2_axios@1.13.2__@vueuse+core@1_6af62c8b8c0918c3d541804ba44c065c/node_modules/@gct-paas/form-base/dist/form-base.css
|
|
32443
32451
|
init_TriggerUtil();
|
|
32444
32452
|
init_index_es();
|
|
32445
32453
|
//#endregion
|