@gct-paas/word 0.2.7 → 0.2.8
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/base/calendar/src/calendar.vue.d.ts +1 -1
- package/dist/base/rdo-tree-select/src/rdo-tree-select.vue.d.ts +1 -1
- package/dist/base/scrollbar/src/scrollbar.vue.d.ts +1 -1
- package/dist/core/data/enrichers/companion-enricher.d.ts +2 -0
- package/dist/domain/constants/enum/index.d.ts +2 -0
- package/dist/domain/constants/enum/product.d.ts +9 -0
- package/dist/domain/constants/enum/production-identification.d.ts +19 -0
- package/dist/domain/field/material-lot-validation.d.ts +2 -0
- package/dist/index.es.js +1198 -1100
- package/dist/runtime/renderer/dropdowns/components/tables/table-option-dropdown.vue.d.ts +2 -2
- package/dist/word.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @gct-paas/word v0.2.
|
|
1
|
+
/*! @gct-paas/word v0.2.8 */
|
|
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, shallowRef, toDisplayString, toHandlers, toRaw, toRef, toValue, unref, useAttrs, useCssVars, useModel, useSlots, vModelRadio, vModelText, vShow, watch, watchEffect, withCtx, withDirectives, withKeys, withModifiers } from "vue";
|
|
3
3
|
import Zt, { PopperWrapper } from "floating-vue";
|
|
4
4
|
import VueKonva from "vue-konva";
|
|
@@ -8,7 +8,7 @@ import BigNumber from "bignumber.js";
|
|
|
8
8
|
import { cloneDeep, debounce, defaults, get, groupBy, has, isBoolean, isEmpty, isEqual, isNil, isNumber, keyBy, merge, omit, pick, pickBy, range, set } from "lodash-es";
|
|
9
9
|
import { VxeGrid } from "vxe-table";
|
|
10
10
|
import { PlusOutlined } from "@ant-design/icons-vue";
|
|
11
|
-
import
|
|
11
|
+
import Ma, { ConfigProvider, Modal, message } from "ant-design-vue";
|
|
12
12
|
import Konva from "konva";
|
|
13
13
|
import exifr from "exifr";
|
|
14
14
|
import CryptoJS from "crypto-js";
|
|
@@ -7617,16 +7617,16 @@ function be(e) {
|
|
|
7617
7617
|
function g(e, a) {
|
|
7618
7618
|
if (e = e || "", a = a || {}, e instanceof g) return e;
|
|
7619
7619
|
if (!(this instanceof g)) return new g(e, a);
|
|
7620
|
-
var t = Xe(e);
|
|
7620
|
+
var t = Xe$1(e);
|
|
7621
7621
|
this._originalInput = e, this._r = t.r, this._g = t.g, this._b = t.b, this._a = t.a, this._roundA = Math.round(100 * this._a) / 100, this._format = a.format || t.format, this._gradientType = a.gradientType, this._r < 1 && (this._r = Math.round(this._r)), this._g < 1 && (this._g = Math.round(this._g)), this._b < 1 && (this._b = Math.round(this._b)), this._ok = t.ok;
|
|
7622
7622
|
}
|
|
7623
|
-
function Xe(e) {
|
|
7623
|
+
function Xe$1(e) {
|
|
7624
7624
|
var a = {
|
|
7625
7625
|
r: 0,
|
|
7626
7626
|
g: 0,
|
|
7627
7627
|
b: 0
|
|
7628
7628
|
}, t = 1, r = null, l = null, n = null, i = !1, o = !1;
|
|
7629
|
-
return typeof e == "string" && (e = ht(e)), be(e) == "object" && (Y$1(e.r) && Y$1(e.g) && Y$1(e.b) ? (a = Ye(e.r, e.g, e.b), i = !0, o = String(e.r).substr(-1) === "%" ? "prgb" : "rgb") : Y$1(e.h) && Y$1(e.s) && Y$1(e.v) ? (r = ue(e.s), l = ue(e.v), a = We(e.h, r, l), i = !0, o = "hsv") : Y$1(e.h) && Y$1(e.s) && Y$1(e.l) && (r = ue(e.s), n = ue(e.l), a = qe(e.h, r, n), i = !0, o = "hsl"), e.hasOwnProperty("a") && (t = e.a)), t = Te(t), {
|
|
7629
|
+
return typeof e == "string" && (e = ht(e)), be(e) == "object" && (Y$1(e.r) && Y$1(e.g) && Y$1(e.b) ? (a = Ye$1(e.r, e.g, e.b), i = !0, o = String(e.r).substr(-1) === "%" ? "prgb" : "rgb") : Y$1(e.h) && Y$1(e.s) && Y$1(e.v) ? (r = ue(e.s), l = ue(e.v), a = We(e.h, r, l), i = !0, o = "hsv") : Y$1(e.h) && Y$1(e.s) && Y$1(e.l) && (r = ue(e.s), n = ue(e.l), a = qe(e.h, r, n), i = !0, o = "hsl"), e.hasOwnProperty("a") && (t = e.a)), t = Te(t), {
|
|
7630
7630
|
ok: i,
|
|
7631
7631
|
format: e.format || o,
|
|
7632
7632
|
r: Math.min(255, Math.max(a.r, 0)),
|
|
@@ -7635,7 +7635,7 @@ function Xe(e) {
|
|
|
7635
7635
|
a: t
|
|
7636
7636
|
};
|
|
7637
7637
|
}
|
|
7638
|
-
function Ye(e, a, t) {
|
|
7638
|
+
function Ye$1(e, a, t) {
|
|
7639
7639
|
return {
|
|
7640
7640
|
r: L$1(e, 255) * 255,
|
|
7641
7641
|
g: L$1(a, 255) * 255,
|
|
@@ -7734,7 +7734,7 @@ function We(e, a, t) {
|
|
|
7734
7734
|
b: b * 255
|
|
7735
7735
|
};
|
|
7736
7736
|
}
|
|
7737
|
-
function He(e, a, t, r) {
|
|
7737
|
+
function He$1(e, a, t, r) {
|
|
7738
7738
|
var l = [
|
|
7739
7739
|
z$1(Math.round(e).toString(16)),
|
|
7740
7740
|
z$1(Math.round(a).toString(16)),
|
|
@@ -7742,18 +7742,18 @@ function He(e, a, t, r) {
|
|
|
7742
7742
|
];
|
|
7743
7743
|
return r && l[0].charAt(0) == l[0].charAt(1) && l[1].charAt(0) == l[1].charAt(1) && l[2].charAt(0) == l[2].charAt(1) ? l[0].charAt(0) + l[1].charAt(0) + l[2].charAt(0) : l.join("");
|
|
7744
7744
|
}
|
|
7745
|
-
function Ze
|
|
7745
|
+
function Ze(e, a, t, r, l) {
|
|
7746
7746
|
var n = [
|
|
7747
7747
|
z$1(Math.round(e).toString(16)),
|
|
7748
7748
|
z$1(Math.round(a).toString(16)),
|
|
7749
7749
|
z$1(Math.round(t).toString(16)),
|
|
7750
|
-
z$1(Ie(r))
|
|
7750
|
+
z$1(Ie$1(r))
|
|
7751
7751
|
];
|
|
7752
7752
|
return l && n[0].charAt(0) == n[0].charAt(1) && n[1].charAt(0) == n[1].charAt(1) && n[2].charAt(0) == n[2].charAt(1) && n[3].charAt(0) == n[3].charAt(1) ? n[0].charAt(0) + n[1].charAt(0) + n[2].charAt(0) + n[3].charAt(0) : n.join("");
|
|
7753
7753
|
}
|
|
7754
7754
|
function Ve(e, a, t, r) {
|
|
7755
7755
|
return [
|
|
7756
|
-
z$1(Ie(r)),
|
|
7756
|
+
z$1(Ie$1(r)),
|
|
7757
7757
|
z$1(Math.round(e).toString(16)),
|
|
7758
7758
|
z$1(Math.round(a).toString(16)),
|
|
7759
7759
|
z$1(Math.round(t).toString(16))
|
|
@@ -7764,7 +7764,7 @@ function Je(e, a) {
|
|
|
7764
7764
|
var t = g(e).toHsl();
|
|
7765
7765
|
return t.s -= a / 100, t.s = ge(t.s), g(t);
|
|
7766
7766
|
}
|
|
7767
|
-
function Qe
|
|
7767
|
+
function Qe(e, a) {
|
|
7768
7768
|
a = a === 0 ? 0 : a || 10;
|
|
7769
7769
|
var t = g(e).toHsl();
|
|
7770
7770
|
return t.s += a / 100, t.s = ge(t.s), g(t);
|
|
@@ -7777,7 +7777,7 @@ function tt(e, a) {
|
|
|
7777
7777
|
var t = g(e).toHsl();
|
|
7778
7778
|
return t.l += a / 100, t.l = ge(t.l), g(t);
|
|
7779
7779
|
}
|
|
7780
|
-
function at
|
|
7780
|
+
function at(e, a) {
|
|
7781
7781
|
a = a === 0 ? 0 : a || 10;
|
|
7782
7782
|
var t = g(e).toRgb();
|
|
7783
7783
|
return t.r = Math.max(0, Math.min(255, t.r - Math.round(255 * -(a / 100)))), t.g = Math.max(0, Math.min(255, t.g - Math.round(255 * -(a / 100)))), t.b = Math.max(0, Math.min(255, t.b - Math.round(255 * -(a / 100)))), g(t);
|
|
@@ -7804,7 +7804,7 @@ function Be(e, a) {
|
|
|
7804
7804
|
}));
|
|
7805
7805
|
return r;
|
|
7806
7806
|
}
|
|
7807
|
-
function ot(e) {
|
|
7807
|
+
function ot$1(e) {
|
|
7808
7808
|
var a = g(e).toHsl(), t = a.h;
|
|
7809
7809
|
return [
|
|
7810
7810
|
g(e),
|
|
@@ -7844,7 +7844,7 @@ function Te(e) {
|
|
|
7844
7844
|
return e = parseFloat(e), (isNaN(e) || e < 0 || e > 1) && (e = 1), e;
|
|
7845
7845
|
}
|
|
7846
7846
|
function L$1(e, a) {
|
|
7847
|
-
ct(e) && (e = "100%");
|
|
7847
|
+
ct$1(e) && (e = "100%");
|
|
7848
7848
|
var t = ft(e);
|
|
7849
7849
|
return e = Math.min(a, Math.max(0, parseFloat(e))), t && (e = parseInt(e * a, 10) / 100), Math.abs(e - a) < 1e-6 ? 1 : e % a / parseFloat(a);
|
|
7850
7850
|
}
|
|
@@ -7854,7 +7854,7 @@ function ge(e) {
|
|
|
7854
7854
|
function P$2(e) {
|
|
7855
7855
|
return parseInt(e, 16);
|
|
7856
7856
|
}
|
|
7857
|
-
function ct(e) {
|
|
7857
|
+
function ct$1(e) {
|
|
7858
7858
|
return typeof e == "string" && e.indexOf(".") != -1 && parseFloat(e) === 1;
|
|
7859
7859
|
}
|
|
7860
7860
|
function ft(e) {
|
|
@@ -7866,7 +7866,7 @@ function z$1(e) {
|
|
|
7866
7866
|
function ue(e) {
|
|
7867
7867
|
return e <= 1 && (e = e * 100 + "%"), e;
|
|
7868
7868
|
}
|
|
7869
|
-
function Ie(e) {
|
|
7869
|
+
function Ie$1(e) {
|
|
7870
7870
|
return Math.round(parseFloat(e) * 255).toString(16);
|
|
7871
7871
|
}
|
|
7872
7872
|
function Le(e) {
|
|
@@ -7938,7 +7938,7 @@ function ht(e) {
|
|
|
7938
7938
|
format: a ? "name" : "hex"
|
|
7939
7939
|
} : !1;
|
|
7940
7940
|
}
|
|
7941
|
-
function vt
|
|
7941
|
+
function vt(e) {
|
|
7942
7942
|
var a, t;
|
|
7943
7943
|
return e = e || {
|
|
7944
7944
|
level: "AA",
|
|
@@ -7965,7 +7965,7 @@ function U$1(e, a, t) {
|
|
|
7965
7965
|
};
|
|
7966
7966
|
return n;
|
|
7967
7967
|
}
|
|
7968
|
-
function pt
|
|
7968
|
+
function pt(e) {
|
|
7969
7969
|
const a = e.toString();
|
|
7970
7970
|
return a.indexOf(".") !== -1 ? a.split(".")[1].length : 0;
|
|
7971
7971
|
}
|
|
@@ -7976,7 +7976,7 @@ function Ht() {
|
|
|
7976
7976
|
const e = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
|
|
7977
7977
|
return e.charAt(Math.floor(Math.random() * 62)) + e.charAt(Math.floor(Math.random() * 62));
|
|
7978
7978
|
}
|
|
7979
|
-
var ze, je, xe, ut
|
|
7979
|
+
var ze, je, xe, ut, K$1, Ee, ye, ve, I$1, Ue, bt, Pe, Fe$1, Ge, gt, mt$1, N$1, Se, $e, _t, yt$1, Ct, q$1, le, pe, oe, Ft, St, At, M, De, fe, se, Vt$1, Bt$1, Lt, Et, Dt, Nt, Tt, It$1, Ut, Pt$1, Gt, Ot, Kt, zt$1, jt$1, Xt, Yt$1, qt$1, Wt$1, Zt$1, Jt, Qt, ea$1, ta$1, gn;
|
|
7980
7980
|
var init_vue_color = __esmMin((() => {
|
|
7981
7981
|
ze = /^\s+/;
|
|
7982
7982
|
je = /\s+$/;
|
|
@@ -8037,13 +8037,13 @@ var init_vue_color = __esmMin((() => {
|
|
|
8037
8037
|
return this._a == 1 ? "hsl(" + t + ", " + r + "%, " + l + "%)" : "hsla(" + t + ", " + r + "%, " + l + "%, " + this._roundA + ")";
|
|
8038
8038
|
},
|
|
8039
8039
|
toHex: function(a) {
|
|
8040
|
-
return He(this._r, this._g, this._b, a);
|
|
8040
|
+
return He$1(this._r, this._g, this._b, a);
|
|
8041
8041
|
},
|
|
8042
8042
|
toHexString: function(a) {
|
|
8043
8043
|
return "#" + this.toHex(a);
|
|
8044
8044
|
},
|
|
8045
8045
|
toHex8: function(a) {
|
|
8046
|
-
return Ze
|
|
8046
|
+
return Ze(this._r, this._g, this._b, this._a, a);
|
|
8047
8047
|
},
|
|
8048
8048
|
toHex8String: function(a) {
|
|
8049
8049
|
return "#" + this.toHex8(a);
|
|
@@ -8071,7 +8071,7 @@ var init_vue_color = __esmMin((() => {
|
|
|
8071
8071
|
return this._a == 1 ? "rgb(" + Math.round(L$1(this._r, 255) * 100) + "%, " + Math.round(L$1(this._g, 255) * 100) + "%, " + Math.round(L$1(this._b, 255) * 100) + "%)" : "rgba(" + Math.round(L$1(this._r, 255) * 100) + "%, " + Math.round(L$1(this._g, 255) * 100) + "%, " + Math.round(L$1(this._b, 255) * 100) + "%, " + this._roundA + ")";
|
|
8072
8072
|
},
|
|
8073
8073
|
toName: function() {
|
|
8074
|
-
return this._a === 0 ? "transparent" : this._a < 1 ? !1 : ut$1
|
|
8074
|
+
return this._a === 0 ? "transparent" : this._a < 1 ? !1 : ut[He$1(this._r, this._g, this._b, !0)] || !1;
|
|
8075
8075
|
},
|
|
8076
8076
|
toFilter: function(a) {
|
|
8077
8077
|
var t = "#" + Ve(this._r, this._g, this._b, this._a), r = t, l = this._gradientType ? "GradientType = 1, " : "";
|
|
@@ -8098,7 +8098,7 @@ var init_vue_color = __esmMin((() => {
|
|
|
8098
8098
|
return this._applyModification(tt, arguments);
|
|
8099
8099
|
},
|
|
8100
8100
|
brighten: function() {
|
|
8101
|
-
return this._applyModification(at
|
|
8101
|
+
return this._applyModification(at, arguments);
|
|
8102
8102
|
},
|
|
8103
8103
|
darken: function() {
|
|
8104
8104
|
return this._applyModification(lt, arguments);
|
|
@@ -8107,7 +8107,7 @@ var init_vue_color = __esmMin((() => {
|
|
|
8107
8107
|
return this._applyModification(Je, arguments);
|
|
8108
8108
|
},
|
|
8109
8109
|
saturate: function() {
|
|
8110
|
-
return this._applyModification(Qe
|
|
8110
|
+
return this._applyModification(Qe, arguments);
|
|
8111
8111
|
},
|
|
8112
8112
|
greyscale: function() {
|
|
8113
8113
|
return this._applyModification(et, arguments);
|
|
@@ -8128,7 +8128,7 @@ var init_vue_color = __esmMin((() => {
|
|
|
8128
8128
|
return this._applyCombination(it, arguments);
|
|
8129
8129
|
},
|
|
8130
8130
|
splitcomplement: function() {
|
|
8131
|
-
return this._applyCombination(ot, arguments);
|
|
8131
|
+
return this._applyCombination(ot$1, arguments);
|
|
8132
8132
|
},
|
|
8133
8133
|
triad: function() {
|
|
8134
8134
|
return this._applyCombination(Be, [3]);
|
|
@@ -8171,7 +8171,7 @@ var init_vue_color = __esmMin((() => {
|
|
|
8171
8171
|
};
|
|
8172
8172
|
g.isReadable = function(e, a, t) {
|
|
8173
8173
|
var r = g.readability(e, a), l, n;
|
|
8174
|
-
switch (n = !1, l = vt
|
|
8174
|
+
switch (n = !1, l = vt(t), l.level + l.size) {
|
|
8175
8175
|
case "AAsmall":
|
|
8176
8176
|
case "AAAlarge":
|
|
8177
8177
|
n = r >= 4.5;
|
|
@@ -8343,7 +8343,7 @@ var init_vue_color = __esmMin((() => {
|
|
|
8343
8343
|
yellow: "ff0",
|
|
8344
8344
|
yellowgreen: "9acd32"
|
|
8345
8345
|
};
|
|
8346
|
-
ut
|
|
8346
|
+
ut = g.hexNames = dt(xe);
|
|
8347
8347
|
K$1 = function() {
|
|
8348
8348
|
var t = "(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)", r = "[\\s|\\(]+(" + t + ")[,|\\s]+(" + t + ")[,|\\s]+(" + t + ")\\s*\\)?", l = "[\\s|\\(]+(" + t + ")[,|\\s]+(" + t + ")[,|\\s]+(" + t + ")[,|\\s]+(" + t + ")\\s*\\)?";
|
|
8349
8349
|
return {
|
|
@@ -8385,7 +8385,7 @@ var init_vue_color = __esmMin((() => {
|
|
|
8385
8385
|
"update:modelValue",
|
|
8386
8386
|
"input"
|
|
8387
8387
|
];
|
|
8388
|
-
Ue
|
|
8388
|
+
Ue = (e) => {
|
|
8389
8389
|
var _e$touches, _e$changedTouches, _e$touches2, _e$changedTouches2;
|
|
8390
8390
|
const a = {
|
|
8391
8391
|
x: 0,
|
|
@@ -8416,7 +8416,7 @@ var init_vue_color = __esmMin((() => {
|
|
|
8416
8416
|
};
|
|
8417
8417
|
};
|
|
8418
8418
|
gt = ["aria-valuetext"];
|
|
8419
|
-
mt = /* @__PURE__ */ defineComponent({
|
|
8419
|
+
mt$1 = /* @__PURE__ */ defineComponent({
|
|
8420
8420
|
__name: "SaturationSlider",
|
|
8421
8421
|
props: {
|
|
8422
8422
|
hue: {},
|
|
@@ -8430,7 +8430,7 @@ var init_vue_color = __esmMin((() => {
|
|
|
8430
8430
|
function _(h) {
|
|
8431
8431
|
const v = b.value;
|
|
8432
8432
|
if (!v) return;
|
|
8433
|
-
const B = v.clientWidth, Z = v.clientHeight, { x: ne, y: R } = Pe(v), { x, y: F } = Ue
|
|
8433
|
+
const B = v.clientWidth, Z = v.clientHeight, { x: ne, y: R } = Pe(v), { x, y: F } = Ue(h), he = Ce(x - ne, 0, B), ie = Ce(F - R, 0, Z), Ae = he / B, Oe = Ce(1 - ie / Z, 0, 1);
|
|
8434
8434
|
l.value = Ae;
|
|
8435
8435
|
let me = Math.round(Ae * 100), _e = Math.round(Oe * 100);
|
|
8436
8436
|
me === 1 && (me = .01), _e === 1 && (_e = .01), m({
|
|
@@ -8526,10 +8526,10 @@ var init_vue_color = __esmMin((() => {
|
|
|
8526
8526
|
for (const [r, l] of a) t[r] = l;
|
|
8527
8527
|
return t;
|
|
8528
8528
|
};
|
|
8529
|
-
Se = /* @__PURE__ */ N$1(mt, [["__scopeId", "data-v-4d048d6e"]]);
|
|
8530
|
-
$e
|
|
8529
|
+
Se = /* @__PURE__ */ N$1(mt$1, [["__scopeId", "data-v-4d048d6e"]]);
|
|
8530
|
+
$e = (e) => typeof e < "u";
|
|
8531
8531
|
_t = { class: "vc-base-slider" };
|
|
8532
|
-
yt = {
|
|
8532
|
+
yt$1 = {
|
|
8533
8533
|
key: 0,
|
|
8534
8534
|
class: "background"
|
|
8535
8535
|
};
|
|
@@ -8555,12 +8555,12 @@ var init_vue_color = __esmMin((() => {
|
|
|
8555
8555
|
return t.direction === "vertical" && (c = 1 - c), 100 * c + "%";
|
|
8556
8556
|
}), i = ref(null);
|
|
8557
8557
|
function o(c) {
|
|
8558
|
-
$e
|
|
8558
|
+
$e(c) && (r("input", c), r("update:modelValue", c));
|
|
8559
8559
|
}
|
|
8560
8560
|
function f(c) {
|
|
8561
8561
|
const { direction: S, max: k } = t, V = i.value;
|
|
8562
8562
|
if (!V) return;
|
|
8563
|
-
const $ = V.clientWidth, h = V.clientHeight, { x: v, y: B } = Pe(V), { x: Z, y: ne } = Ue
|
|
8563
|
+
const $ = V.clientWidth, h = V.clientHeight, { x: v, y: B } = Pe(V), { x: Z, y: ne } = Ue(c), R = Z - v, x = ne - B;
|
|
8564
8564
|
let F;
|
|
8565
8565
|
S === "vertical" ? x < 0 ? F = k : x > h ? F = 0 : F = (1 - x / h) * k : R < 0 ? F = 0 : R > $ ? F = k : F = R / $ * k, o(F);
|
|
8566
8566
|
}
|
|
@@ -8599,7 +8599,7 @@ var init_vue_color = __esmMin((() => {
|
|
|
8599
8599
|
}
|
|
8600
8600
|
return onUnmounted(() => {
|
|
8601
8601
|
_();
|
|
8602
|
-
}), (c, S) => (openBlock(), createElementBlock("div", _t, [c.$slots.background ? (openBlock(), createElementBlock("div", yt, [renderSlot(c.$slots, "background", {}, void 0, !0)])) : createCommentVNode("", !0), createElementVNode("div", {
|
|
8602
|
+
}), (c, S) => (openBlock(), createElementBlock("div", _t, [c.$slots.background ? (openBlock(), createElementBlock("div", yt$1, [renderSlot(c.$slots, "background", {}, void 0, !0)])) : createCommentVNode("", !0), createElementVNode("div", {
|
|
8603
8603
|
class: normalizeClass({
|
|
8604
8604
|
slider: !0,
|
|
8605
8605
|
horizontal: c.direction === "horizontal",
|
|
@@ -8749,11 +8749,11 @@ var init_vue_color = __esmMin((() => {
|
|
|
8749
8749
|
const t = e, r = a, l = ((_t$a11y = t.a11y) === null || _t$a11y === void 0 ? void 0 : _t$a11y.label) ?? t.label, n = `input__label__${l}__${Math.random().toString().slice(2, 5)}`;
|
|
8750
8750
|
function i(u) {
|
|
8751
8751
|
const { min: b, max: _ } = t;
|
|
8752
|
-
if ($e
|
|
8752
|
+
if ($e(_) && +u > _) {
|
|
8753
8753
|
r("change", _);
|
|
8754
8754
|
return;
|
|
8755
8755
|
}
|
|
8756
|
-
if ($e
|
|
8756
|
+
if ($e(b) && +u < b) {
|
|
8757
8757
|
r("change", b);
|
|
8758
8758
|
return;
|
|
8759
8759
|
}
|
|
@@ -8770,7 +8770,7 @@ var init_vue_color = __esmMin((() => {
|
|
|
8770
8770
|
let b = Number(t.value);
|
|
8771
8771
|
if (!isNaN(b)) {
|
|
8772
8772
|
let _ = t.step;
|
|
8773
|
-
const m = pt
|
|
8773
|
+
const m = pt(_), c = Fe$1(u);
|
|
8774
8774
|
c === "up" && (i((b + _).toFixed(m)), u.preventDefault()), c === "down" && (i((b - _).toFixed(m)), u.preventDefault());
|
|
8775
8775
|
}
|
|
8776
8776
|
}
|
|
@@ -8854,14 +8854,14 @@ var init_vue_color = __esmMin((() => {
|
|
|
8854
8854
|
}
|
|
8855
8855
|
};
|
|
8856
8856
|
};
|
|
8857
|
-
Vt = { class: "saturation" };
|
|
8857
|
+
Vt$1 = { class: "saturation" };
|
|
8858
8858
|
Bt$1 = { class: "body" };
|
|
8859
8859
|
Lt = { class: "controls" };
|
|
8860
8860
|
Et = { class: "color-wrap" };
|
|
8861
8861
|
Dt = ["aria-label"];
|
|
8862
8862
|
Nt = { class: "sliders" };
|
|
8863
|
-
Tt
|
|
8864
|
-
It = {
|
|
8863
|
+
Tt = { class: "hue-wrap" };
|
|
8864
|
+
It$1 = {
|
|
8865
8865
|
key: 0,
|
|
8866
8866
|
class: "alpha-wrap"
|
|
8867
8867
|
};
|
|
@@ -8876,7 +8876,7 @@ var init_vue_color = __esmMin((() => {
|
|
|
8876
8876
|
};
|
|
8877
8877
|
Gt = { class: "field" };
|
|
8878
8878
|
Ot = { class: "field" };
|
|
8879
|
-
Kt
|
|
8879
|
+
Kt = { class: "field" };
|
|
8880
8880
|
zt$1 = {
|
|
8881
8881
|
key: 0,
|
|
8882
8882
|
class: "field"
|
|
@@ -8992,7 +8992,7 @@ var init_vue_color = __esmMin((() => {
|
|
|
8992
8992
|
role: "application",
|
|
8993
8993
|
"aria-label": "Chrome Color Picker",
|
|
8994
8994
|
class: normalizeClass(["vc-chrome-picker", R.disableAlpha ? "alpha-disabled" : ""])
|
|
8995
|
-
}, [createElementVNode("div", Vt, [createVNode(Se, {
|
|
8995
|
+
}, [createElementVNode("div", Vt$1, [createVNode(Se, {
|
|
8996
8996
|
tinyColor: unref(l),
|
|
8997
8997
|
"onUpdate:tinyColor": x[0] || (x[0] = (F) => isRef(l) ? l.value = F : null),
|
|
8998
8998
|
hue: unref(n)
|
|
@@ -9002,10 +9002,10 @@ var init_vue_color = __esmMin((() => {
|
|
|
9002
9002
|
role: "presentation",
|
|
9003
9003
|
"aria-live": "polite",
|
|
9004
9004
|
"aria-label": `Current color is ${s.value}`
|
|
9005
|
-
}, null, 12, Dt), t.disableAlpha ? createCommentVNode("", !0) : (openBlock(), createBlock(pe, { key: 0 }))]), createElementVNode("div", Nt, [createElementVNode("div", Tt
|
|
9005
|
+
}, null, 12, Dt), t.disableAlpha ? createCommentVNode("", !0) : (openBlock(), createBlock(pe, { key: 0 }))]), createElementVNode("div", Nt, [createElementVNode("div", Tt, [createVNode(le, {
|
|
9006
9006
|
modelValue: unref(n),
|
|
9007
9007
|
"onUpdate:modelValue": unref(i)
|
|
9008
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue"])]), t.disableAlpha ? createCommentVNode("", !0) : (openBlock(), createElementBlock("div", It, [createVNode(oe, {
|
|
9008
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue"])]), t.disableAlpha ? createCommentVNode("", !0) : (openBlock(), createElementBlock("div", It$1, [createVNode(oe, {
|
|
9009
9009
|
tinyColor: unref(l),
|
|
9010
9010
|
"onUpdate:tinyColor": x[1] || (x[1] = (F) => isRef(l) ? l.value = F : null)
|
|
9011
9011
|
}, null, 8, ["tinyColor"])]))])]), S.value ? (openBlock(), createElementBlock("div", Ut, [
|
|
@@ -9022,7 +9022,7 @@ var init_vue_color = __esmMin((() => {
|
|
|
9022
9022
|
onChange: x[3] || (x[3] = (F) => h("g", F)),
|
|
9023
9023
|
a11y: { label: "Green" }
|
|
9024
9024
|
}, null, 8, ["value"])]),
|
|
9025
|
-
createElementVNode("div", Kt
|
|
9025
|
+
createElementVNode("div", Kt, [createVNode(M, {
|
|
9026
9026
|
label: "b",
|
|
9027
9027
|
value: b.value.b,
|
|
9028
9028
|
onChange: x[4] || (x[4] = (F) => h("b", F)),
|
|
@@ -9346,34 +9346,34 @@ var init_base$2 = __esmMin((() => {
|
|
|
9346
9346
|
//#region ../../node_modules/.pnpm/floating-vue@5.2.2_vue@3.5.24_typescript@5.9.3_/node_modules/floating-vue/dist/style.css
|
|
9347
9347
|
var init_style = __esmMin((() => {}));
|
|
9348
9348
|
//#endregion
|
|
9349
|
-
//#region ../../node_modules/.pnpm/@gct-paas+form-base@0.1.2-beta.
|
|
9350
|
-
function
|
|
9349
|
+
//#region ../../node_modules/.pnpm/@gct-paas+form-base@0.1.2-beta.3_@gct-paas+api@6.2.0-dev.2_axios@1.13.2__@vueuse+core@1_b3d73132a1f3de725f4fc2504b1cca96/node_modules/@gct-paas/form-base/dist/index.es.js
|
|
9350
|
+
function Co() {
|
|
9351
9351
|
if (typeof globalThis < "u") {
|
|
9352
9352
|
const e = globalThis._api;
|
|
9353
9353
|
if (e) return e;
|
|
9354
9354
|
}
|
|
9355
9355
|
return api;
|
|
9356
9356
|
}
|
|
9357
|
-
function
|
|
9358
|
-
|
|
9359
|
-
const e = createVNode(
|
|
9360
|
-
render(e,
|
|
9357
|
+
function Dl() {
|
|
9358
|
+
Rt = document.createElement("div"), document.body.appendChild(Rt);
|
|
9359
|
+
const e = createVNode(zl);
|
|
9360
|
+
render(e, Rt), qt = e.component.exposed;
|
|
9361
9361
|
}
|
|
9362
|
-
function
|
|
9362
|
+
function Nl(e) {
|
|
9363
9363
|
return typeof e == "function" ? e() : (isVNode(e), e);
|
|
9364
9364
|
}
|
|
9365
|
-
function
|
|
9366
|
-
|
|
9367
|
-
const o = ++
|
|
9368
|
-
|
|
9365
|
+
function Ne(e) {
|
|
9366
|
+
qt || Dl();
|
|
9367
|
+
const o = ++Fl;
|
|
9368
|
+
qt.add({
|
|
9369
9369
|
id: o,
|
|
9370
9370
|
type: e.type ?? "info",
|
|
9371
|
-
message:
|
|
9371
|
+
message: Nl(e.message),
|
|
9372
9372
|
closeable: e.closeable ?? !1,
|
|
9373
9373
|
duration: e.duration ?? 2e3
|
|
9374
9374
|
});
|
|
9375
9375
|
}
|
|
9376
|
-
function
|
|
9376
|
+
function as(e) {
|
|
9377
9377
|
for (const o of e) {
|
|
9378
9378
|
const t = o.target.__resizeListeners__ || [];
|
|
9379
9379
|
t.length && t.forEach((a) => {
|
|
@@ -9382,21 +9382,21 @@ function Yl(e) {
|
|
|
9382
9382
|
}
|
|
9383
9383
|
}
|
|
9384
9384
|
function Yt(e, o) {
|
|
9385
|
-
|
|
9385
|
+
ts || (e.__resizeListeners__ || (e.__resizeListeners__ = [], e.__ro__ = new index$1(as), e.__ro__.observe(e)), e.__resizeListeners__.push(o));
|
|
9386
9386
|
}
|
|
9387
9387
|
function ea(e, o) {
|
|
9388
9388
|
!e || !e.__resizeListeners__ || (e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(o), 1), e.__resizeListeners__.length || e.__ro__.disconnect());
|
|
9389
9389
|
}
|
|
9390
|
-
function
|
|
9390
|
+
function ns({ move: e, size: o, bar: t }) {
|
|
9391
9391
|
const a = {}, n = `translate${t.axis}(${e}%)`;
|
|
9392
9392
|
return a[t.size] = o, a.transform = n, a.msTransform = n, a.webkitTransform = n, a;
|
|
9393
9393
|
}
|
|
9394
|
-
function
|
|
9394
|
+
function ls(e, o) {
|
|
9395
9395
|
return Object.assign(e, o);
|
|
9396
9396
|
}
|
|
9397
|
-
function
|
|
9397
|
+
function ss(e) {
|
|
9398
9398
|
const o = {};
|
|
9399
|
-
for (let t = 0; t < e.length; t++) e[t] &&
|
|
9399
|
+
for (let t = 0; t < e.length; t++) e[t] && ls(o, e[t]);
|
|
9400
9400
|
return o;
|
|
9401
9401
|
}
|
|
9402
9402
|
function ta(e, o, t) {
|
|
@@ -9405,9 +9405,9 @@ function ta(e, o, t) {
|
|
|
9405
9405
|
function aa(e, o, t) {
|
|
9406
9406
|
e && o && t && e.removeEventListener(o, t, !1);
|
|
9407
9407
|
}
|
|
9408
|
-
function
|
|
9408
|
+
function cs(e, o, t, a, n, l) {
|
|
9409
9409
|
const s = resolveComponent("bar");
|
|
9410
|
-
return openBlock(), createElementBlock("div",
|
|
9410
|
+
return openBlock(), createElementBlock("div", us, [createElementVNode("div", {
|
|
9411
9411
|
ref: "wrap",
|
|
9412
9412
|
class: normalizeClass([
|
|
9413
9413
|
e.wrapClass,
|
|
@@ -9432,38 +9432,38 @@ function rs(e, o, t, a, n, l) {
|
|
|
9432
9432
|
size: e.sizeHeight
|
|
9433
9433
|
}, null, 8, ["move", "size"])], 64))]);
|
|
9434
9434
|
}
|
|
9435
|
-
function
|
|
9435
|
+
function tr(e) {
|
|
9436
9436
|
return e && (e.__LABEL__ || e.version_ || e.name_) || "";
|
|
9437
9437
|
}
|
|
9438
|
-
function
|
|
9438
|
+
function La(e, o) {
|
|
9439
9439
|
return {
|
|
9440
9440
|
text: `${e}:${o}`,
|
|
9441
9441
|
showDefaultTag: !1
|
|
9442
9442
|
};
|
|
9443
9443
|
}
|
|
9444
|
-
function
|
|
9444
|
+
function ar(e) {
|
|
9445
9445
|
return {
|
|
9446
9446
|
text: e,
|
|
9447
9447
|
showDefaultTag: !0
|
|
9448
9448
|
};
|
|
9449
9449
|
}
|
|
9450
|
-
function
|
|
9450
|
+
function $a(e, o, t) {
|
|
9451
9451
|
const [a, n] = e.split(":");
|
|
9452
9452
|
if (!a || !n) return null;
|
|
9453
9453
|
const l = t(a), s = o(e);
|
|
9454
|
-
return !l || !s ? null :
|
|
9454
|
+
return !l || !s ? null : La(l.title, s.title);
|
|
9455
9455
|
}
|
|
9456
|
-
function
|
|
9456
|
+
function or(e, o, t, a, n) {
|
|
9457
9457
|
var _o$children;
|
|
9458
9458
|
const [l, s] = e.split(":"), d = !!((_o$children = o.children) === null || _o$children === void 0 ? void 0 : _o$children.length);
|
|
9459
9459
|
if (l && s) {
|
|
9460
|
-
const
|
|
9461
|
-
if (
|
|
9460
|
+
const u = $a(e, t, a);
|
|
9461
|
+
if (u) return u;
|
|
9462
9462
|
}
|
|
9463
|
-
if (d && !n) return
|
|
9463
|
+
if (d && !n) return ar(o.title);
|
|
9464
9464
|
if (d && n && o._info) {
|
|
9465
|
-
const
|
|
9466
|
-
if (
|
|
9465
|
+
const u = tr(o._info);
|
|
9466
|
+
if (u) return La(o.title, u);
|
|
9467
9467
|
}
|
|
9468
9468
|
return o.displayLabel ? {
|
|
9469
9469
|
text: o.displayLabel,
|
|
@@ -9473,7 +9473,7 @@ function er(e, o, t, a, n) {
|
|
|
9473
9473
|
showDefaultTag: !1
|
|
9474
9474
|
};
|
|
9475
9475
|
}
|
|
9476
|
-
function
|
|
9476
|
+
function hr(e) {
|
|
9477
9477
|
const o = e === null || e === void 0 ? void 0 : e.trim();
|
|
9478
9478
|
return o ? {
|
|
9479
9479
|
query: la.reduce((a, n) => (a[n] = o, a), {}),
|
|
@@ -9483,8 +9483,8 @@ function yr(e) {
|
|
|
9483
9483
|
exp: ""
|
|
9484
9484
|
};
|
|
9485
9485
|
}
|
|
9486
|
-
async function
|
|
9487
|
-
const { query: a, exp: n } =
|
|
9486
|
+
async function br(e, o, t) {
|
|
9487
|
+
const { query: a, exp: n } = hr(t.keyword);
|
|
9488
9488
|
return ie.apaas.modelComprehensive.postBizServiceModelCategoryModelKeyBsKey({
|
|
9489
9489
|
bsKey: "rdoListByPage",
|
|
9490
9490
|
modelKey: e,
|
|
@@ -9506,153 +9506,153 @@ async function sa(e, o, t, a, n) {
|
|
|
9506
9506
|
modelCategory: t
|
|
9507
9507
|
}, n, a);
|
|
9508
9508
|
}
|
|
9509
|
-
function
|
|
9510
|
-
const o = e.modelCategory ??
|
|
9511
|
-
function n(
|
|
9512
|
-
var
|
|
9513
|
-
|
|
9509
|
+
function wr(e) {
|
|
9510
|
+
const o = e.modelCategory ?? _r, t = ref([]), a = ref(/* @__PURE__ */ new Map());
|
|
9511
|
+
function n(c) {
|
|
9512
|
+
var _c$children;
|
|
9513
|
+
c.rawValue && a.value.set(String(c.rawValue), c), (_c$children = c.children) === null || _c$children === void 0 || _c$children.forEach(n);
|
|
9514
9514
|
}
|
|
9515
|
-
function l(
|
|
9516
|
-
const
|
|
9515
|
+
function l(c, h, y) {
|
|
9516
|
+
const m = y.__LABEL__ || y.version_, R = `${h}:${y.id_}`, $ = {
|
|
9517
9517
|
key: R,
|
|
9518
|
-
title:
|
|
9519
|
-
displayLabel: `${
|
|
9518
|
+
title: m,
|
|
9519
|
+
displayLabel: `${c}:${m}`,
|
|
9520
9520
|
rawValue: R,
|
|
9521
|
-
_info:
|
|
9522
|
-
isDefault: !!
|
|
9521
|
+
_info: y,
|
|
9522
|
+
isDefault: !!y.default_
|
|
9523
9523
|
};
|
|
9524
9524
|
return n($), $;
|
|
9525
9525
|
}
|
|
9526
|
-
function s(
|
|
9527
|
-
return
|
|
9528
|
-
var
|
|
9529
|
-
const
|
|
9530
|
-
key:
|
|
9531
|
-
title:
|
|
9532
|
-
displayLabel:
|
|
9533
|
-
rawValue:
|
|
9534
|
-
_info:
|
|
9535
|
-
showDefaultTag: !!
|
|
9526
|
+
function s(c = []) {
|
|
9527
|
+
return c.map((h) => {
|
|
9528
|
+
var _h$__CHILDREN__;
|
|
9529
|
+
const y = h.__LABEL__ || h.name_, m = (_h$__CHILDREN__ = h.__CHILDREN__) === null || _h$__CHILDREN__ === void 0 ? void 0 : _h$__CHILDREN__.find(($) => $.default_), R = {
|
|
9530
|
+
key: h.id_,
|
|
9531
|
+
title: y,
|
|
9532
|
+
displayLabel: y,
|
|
9533
|
+
rawValue: h.id_,
|
|
9534
|
+
_info: m,
|
|
9535
|
+
showDefaultTag: !!m,
|
|
9536
9536
|
disabled: !0,
|
|
9537
|
-
children: (
|
|
9537
|
+
children: (h.__CHILDREN__ || []).map(($) => l(y, h.id_, $))
|
|
9538
9538
|
};
|
|
9539
9539
|
return n(R), R;
|
|
9540
9540
|
});
|
|
9541
9541
|
}
|
|
9542
|
-
async function d(
|
|
9543
|
-
var
|
|
9544
|
-
const
|
|
9545
|
-
pageNo:
|
|
9546
|
-
pageSize:
|
|
9542
|
+
async function d(c = {}) {
|
|
9543
|
+
var _c$keyword, _e$getQueryData;
|
|
9544
|
+
const h = c.pageNo ?? 1, y = c.pageSize ?? 30, m = ((_c$keyword = c.keyword) === null || _c$keyword === void 0 ? void 0 : _c$keyword.trim()) || void 0, R = (_e$getQueryData = e.getQueryData) === null || _e$getQueryData === void 0 ? void 0 : _e$getQueryData.call(e), $ = await na.handleRequest(`rdo-tree-list:${e.modelKey}`, {
|
|
9545
|
+
pageNo: h,
|
|
9546
|
+
pageSize: y,
|
|
9547
9547
|
modelCategory: o,
|
|
9548
|
-
keyword:
|
|
9548
|
+
keyword: m,
|
|
9549
9549
|
queryData: R
|
|
9550
|
-
}, () =>
|
|
9551
|
-
pageNo:
|
|
9552
|
-
pageSize:
|
|
9553
|
-
keyword:
|
|
9550
|
+
}, () => br(e.modelKey, o, {
|
|
9551
|
+
pageNo: h,
|
|
9552
|
+
pageSize: y,
|
|
9553
|
+
keyword: m,
|
|
9554
9554
|
queryData: R
|
|
9555
9555
|
}), 3e5);
|
|
9556
9556
|
return {
|
|
9557
|
-
complete: ($ === null || $ === void 0 ? void 0 : $.totalPage) ? $.totalPage <=
|
|
9557
|
+
complete: ($ === null || $ === void 0 ? void 0 : $.totalPage) ? $.totalPage <= h : !0,
|
|
9558
9558
|
nodes: s(($ === null || $ === void 0 ? void 0 : $.data) || [])
|
|
9559
9559
|
};
|
|
9560
9560
|
}
|
|
9561
|
-
async function c
|
|
9561
|
+
async function u(c) {
|
|
9562
9562
|
var _await$na$handleReque;
|
|
9563
|
-
const [
|
|
9564
|
-
if (!
|
|
9565
|
-
const
|
|
9566
|
-
refIds:
|
|
9563
|
+
const [h] = c.split(":");
|
|
9564
|
+
if (!h) return null;
|
|
9565
|
+
const m = (_await$na$handleReque = await na.handleRequest(`rdo-tree-version:${e.modelKey}:${c}`, { id: c }, () => sa("rdoListVersionByRefIdsWithParent", e.modelKey, o, { foreignFields: [] }, {
|
|
9566
|
+
refIds: c,
|
|
9567
9567
|
includeDeleted: 1
|
|
9568
9568
|
}), 3e5)) === null || _await$na$handleReque === void 0 || (_await$na$handleReque = _await$na$handleReque.data) === null || _await$na$handleReque === void 0 ? void 0 : _await$na$handleReque[0];
|
|
9569
|
-
if (!
|
|
9570
|
-
const R =
|
|
9569
|
+
if (!m) return null;
|
|
9570
|
+
const R = m.__LABEL__ || m.name_;
|
|
9571
9571
|
let $ = [];
|
|
9572
9572
|
try {
|
|
9573
9573
|
var _await$sa;
|
|
9574
|
-
$ = (((_await$sa = await sa("rdoListVersionById", e.modelKey, o, { foreignFields: [] }, { id:
|
|
9574
|
+
$ = (((_await$sa = await sa("rdoListVersionById", e.modelKey, o, { foreignFields: [] }, { id: h })) === null || _await$sa === void 0 ? void 0 : _await$sa.data) || []).map((O) => l(R, h, O));
|
|
9575
9575
|
} catch {
|
|
9576
9576
|
$ = [];
|
|
9577
9577
|
}
|
|
9578
|
-
const
|
|
9579
|
-
key:
|
|
9578
|
+
const F = $.find((V) => V.isDefault), T = {
|
|
9579
|
+
key: h,
|
|
9580
9580
|
title: R,
|
|
9581
9581
|
displayLabel: R,
|
|
9582
|
-
rawValue:
|
|
9583
|
-
_info:
|
|
9584
|
-
showDefaultTag: !!
|
|
9582
|
+
rawValue: h,
|
|
9583
|
+
_info: F === null || F === void 0 ? void 0 : F._info,
|
|
9584
|
+
showDefaultTag: !!F,
|
|
9585
9585
|
disabled: !0,
|
|
9586
9586
|
children: $
|
|
9587
9587
|
};
|
|
9588
9588
|
return n(T), T;
|
|
9589
9589
|
}
|
|
9590
|
-
async function
|
|
9590
|
+
async function i(c = {}) {
|
|
9591
9591
|
var _t$value$at;
|
|
9592
|
-
const
|
|
9593
|
-
|
|
9594
|
-
key: `__load_more__:${
|
|
9592
|
+
const h = c.pageNo ?? 1, { complete: y, nodes: m } = await d(c);
|
|
9593
|
+
h > 1 ? ((_t$value$at = t.value.at(-1)) !== null && _t$value$at !== void 0 && _t$value$at.isLoadMore && t.value.pop(), t.value.push(...m)) : t.value = m, y || t.value.push({
|
|
9594
|
+
key: `__load_more__:${h}`,
|
|
9595
9595
|
title: "加载更多...",
|
|
9596
9596
|
isLoadMore: !0,
|
|
9597
9597
|
disabled: !1
|
|
9598
9598
|
});
|
|
9599
9599
|
}
|
|
9600
|
-
async function k(
|
|
9601
|
-
if (!
|
|
9602
|
-
const [
|
|
9603
|
-
if (a.value.has(
|
|
9604
|
-
const
|
|
9605
|
-
|
|
9600
|
+
async function k(c) {
|
|
9601
|
+
if (!c) return;
|
|
9602
|
+
const [h] = c.split(":");
|
|
9603
|
+
if (a.value.has(c) || t.value.some((R) => R.key === h)) return;
|
|
9604
|
+
const m = await u(c);
|
|
9605
|
+
m && t.value.unshift(m);
|
|
9606
9606
|
}
|
|
9607
|
-
function _(
|
|
9608
|
-
return a.value.get(
|
|
9607
|
+
function _(c) {
|
|
9608
|
+
return a.value.get(c) || t.value.find((h) => String(h.key) === c);
|
|
9609
9609
|
}
|
|
9610
|
-
function f(
|
|
9611
|
-
var
|
|
9612
|
-
const [
|
|
9613
|
-
return a.value.get(
|
|
9610
|
+
function f(c) {
|
|
9611
|
+
var _y$children;
|
|
9612
|
+
const [h] = c.split(":"), y = _(h || "");
|
|
9613
|
+
return a.value.get(c) || (y === null || y === void 0 || (_y$children = y.children) === null || _y$children === void 0 ? void 0 : _y$children.find((m) => String(m.rawValue) === c));
|
|
9614
9614
|
}
|
|
9615
|
-
function g(
|
|
9616
|
-
if (!
|
|
9617
|
-
const [
|
|
9618
|
-
if (
|
|
9619
|
-
const $ =
|
|
9615
|
+
function g(c, h = !1) {
|
|
9616
|
+
if (!c) return { text: "" };
|
|
9617
|
+
const [y, m] = c.split(":");
|
|
9618
|
+
if (y && m) {
|
|
9619
|
+
const $ = $a(c, f, _);
|
|
9620
9620
|
if ($) return $;
|
|
9621
9621
|
}
|
|
9622
|
-
if (
|
|
9623
|
-
const $ = _(
|
|
9622
|
+
if (y && !m && !h) {
|
|
9623
|
+
const $ = _(y);
|
|
9624
9624
|
if ($) return {
|
|
9625
9625
|
text: $.title,
|
|
9626
9626
|
showDefaultTag: !0
|
|
9627
9627
|
};
|
|
9628
9628
|
}
|
|
9629
|
-
const R = a.value.get(
|
|
9629
|
+
const R = a.value.get(c);
|
|
9630
9630
|
return (R === null || R === void 0 ? void 0 : R.displayLabel) ? {
|
|
9631
9631
|
text: R.displayLabel,
|
|
9632
|
-
showDefaultTag: !
|
|
9632
|
+
showDefaultTag: !h && !!R.showDefaultTag
|
|
9633
9633
|
} : {
|
|
9634
|
-
text:
|
|
9634
|
+
text: c,
|
|
9635
9635
|
showDefaultTag: !1
|
|
9636
9636
|
};
|
|
9637
9637
|
}
|
|
9638
|
-
async function M(
|
|
9639
|
-
if (
|
|
9638
|
+
async function M(c, h = 9999, y = !1) {
|
|
9639
|
+
if (c) return t.value.length || await i({
|
|
9640
9640
|
pageNo: 1,
|
|
9641
|
-
pageSize:
|
|
9642
|
-
}), await k(
|
|
9641
|
+
pageSize: h
|
|
9642
|
+
}), await k(c), g(c, y);
|
|
9643
9643
|
}
|
|
9644
|
-
function
|
|
9644
|
+
function C() {
|
|
9645
9645
|
t.value = [], a.value = /* @__PURE__ */ new Map();
|
|
9646
9646
|
}
|
|
9647
9647
|
return {
|
|
9648
9648
|
treeData: t,
|
|
9649
|
-
loadOptions:
|
|
9649
|
+
loadOptions: i,
|
|
9650
9650
|
ensureSelectedNode: k,
|
|
9651
9651
|
getNodeDisplay: g,
|
|
9652
9652
|
initByValue: M,
|
|
9653
9653
|
findChildNode: f,
|
|
9654
9654
|
findParentNode: _,
|
|
9655
|
-
resetTreeData:
|
|
9655
|
+
resetTreeData: C
|
|
9656
9656
|
};
|
|
9657
9657
|
}
|
|
9658
9658
|
function Re(e) {
|
|
@@ -9662,51 +9662,51 @@ function Re(e) {
|
|
|
9662
9662
|
message: $t("sys.pleaseSelectSth", { sth: e })
|
|
9663
9663
|
};
|
|
9664
9664
|
}
|
|
9665
|
-
function
|
|
9665
|
+
function He(e, o) {
|
|
9666
9666
|
const t = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""), a = [], n = t.length;
|
|
9667
9667
|
for (let l = 0; l < e; l++) a[l] = t[0 | Math.random() * n];
|
|
9668
9668
|
return a.join("");
|
|
9669
9669
|
}
|
|
9670
|
-
async function
|
|
9671
|
-
return (await
|
|
9670
|
+
async function x2(e) {
|
|
9671
|
+
return (await C2({
|
|
9672
9672
|
bsKey: "rdoGetVersionById",
|
|
9673
9673
|
modelKey: "em_barcode_parsing_rules",
|
|
9674
9674
|
modelCategory: "entity"
|
|
9675
9675
|
}, e)).data;
|
|
9676
9676
|
}
|
|
9677
|
-
function
|
|
9677
|
+
function Xa(e) {
|
|
9678
9678
|
return e.list && !e.fieldList && (e.fieldList = e.list.map((o) => ({
|
|
9679
9679
|
type: o,
|
|
9680
|
-
key: o ===
|
|
9680
|
+
key: o === ct.other ? He(32) : o
|
|
9681
9681
|
})), delete e.list), e.fieldList.forEach((o) => {
|
|
9682
|
-
o.key || (o.key = o.type ===
|
|
9682
|
+
o.key || (o.key = o.type === ct.other ? He(32) : o.type);
|
|
9683
9683
|
}), e;
|
|
9684
9684
|
}
|
|
9685
|
-
function
|
|
9685
|
+
function S2(e, o) {
|
|
9686
9686
|
if (!o) throw new Error("请传入解析规则");
|
|
9687
|
-
const { separator: n, nullSymbol: l, fieldList: s } =
|
|
9688
|
-
return e.split(n).reduce((
|
|
9687
|
+
const { separator: n, nullSymbol: l, fieldList: s } = Xa(JSON.parse(o));
|
|
9688
|
+
return e.split(n).reduce((u, i, k) => {
|
|
9689
9689
|
const _ = s[k];
|
|
9690
9690
|
if (_) {
|
|
9691
|
-
let f = l &&
|
|
9691
|
+
let f = l && i === l ? null : i;
|
|
9692
9692
|
if (f !== null) switch (_.type) {
|
|
9693
|
-
case
|
|
9693
|
+
case ct.qty:
|
|
9694
9694
|
f = Number(f);
|
|
9695
9695
|
break;
|
|
9696
|
-
case
|
|
9696
|
+
case ct.expiration:
|
|
9697
9697
|
f = dayjs(f, _.format).format("YYYY-MM-DD HH:mm:ss");
|
|
9698
9698
|
break;
|
|
9699
9699
|
}
|
|
9700
|
-
|
|
9700
|
+
u[_.key] = f;
|
|
9701
9701
|
}
|
|
9702
|
-
return
|
|
9702
|
+
return u;
|
|
9703
9703
|
}, {});
|
|
9704
9704
|
}
|
|
9705
|
-
async function
|
|
9706
|
-
const o = await
|
|
9707
|
-
if (o === null || o === void 0 ? void 0 : o.rules_) return
|
|
9705
|
+
async function M2(e) {
|
|
9706
|
+
const o = await x2({ id: e });
|
|
9707
|
+
if (o === null || o === void 0 ? void 0 : o.rules_) return Xa(JSON.parse(o.rules_));
|
|
9708
9708
|
}
|
|
9709
|
-
function
|
|
9709
|
+
function R2(e, o) {
|
|
9710
9710
|
const t = {};
|
|
9711
9711
|
return o !== null && o !== void 0 && o.length && o.forEach((a) => {
|
|
9712
9712
|
const n = a.barcodeField;
|
|
@@ -9720,32 +9720,32 @@ function C2(e, o) {
|
|
|
9720
9720
|
}
|
|
9721
9721
|
}), t;
|
|
9722
9722
|
}
|
|
9723
|
-
function
|
|
9723
|
+
function Ya(e, o = "") {
|
|
9724
9724
|
const t = {};
|
|
9725
9725
|
for (const [a, n] of Object.entries(e)) {
|
|
9726
9726
|
const l = o ? `${o}.${a}` : a;
|
|
9727
|
-
n != null && typeof n == "object" && !Array.isArray(n) ? Object.assign(t,
|
|
9727
|
+
n != null && typeof n == "object" && !Array.isArray(n) ? Object.assign(t, Ya(n, l)) : n != null && (t[l] = String(n));
|
|
9728
9728
|
}
|
|
9729
9729
|
return t;
|
|
9730
9730
|
}
|
|
9731
|
-
function
|
|
9731
|
+
function mf(e = "zh-CN") {
|
|
9732
9732
|
const o = {};
|
|
9733
|
-
for (const [t, a] of Object.entries(
|
|
9733
|
+
for (const [t, a] of Object.entries(Qa)) {
|
|
9734
9734
|
const n = t.match(/^\.\/(?:([^/]+)\/)?([^/]+)\.ts$/);
|
|
9735
9735
|
if (!n || !(a === null || a === void 0 ? void 0 : a.default)) continue;
|
|
9736
9736
|
const l = n[1] || "zh-CN", s = n[2];
|
|
9737
|
-
l === e && Object.assign(o,
|
|
9737
|
+
l === e && Object.assign(o, Ya(a.default, s));
|
|
9738
9738
|
}
|
|
9739
9739
|
return o;
|
|
9740
9740
|
}
|
|
9741
|
-
function
|
|
9741
|
+
function vf(e, o) {
|
|
9742
9742
|
return !o || typeof o != "object" ? e : Object.keys(o).reduce((t, a) => t.replace(new RegExp(`\\{${a}\\}`, "g"), String(o[a])), e);
|
|
9743
9743
|
}
|
|
9744
9744
|
function jt(e = "zh-CN", o) {
|
|
9745
|
-
const t =
|
|
9745
|
+
const t = mf(e);
|
|
9746
9746
|
return (a, ...n) => {
|
|
9747
9747
|
const l = n[0] && typeof n[0] == "object" ? n[0] : void 0, s = t[a];
|
|
9748
|
-
if (s != null) return
|
|
9748
|
+
if (s != null) return vf(s, l);
|
|
9749
9749
|
if (o) {
|
|
9750
9750
|
const d = o(a, ...n);
|
|
9751
9751
|
if (d != null && d !== a) return String(d);
|
|
@@ -9753,11 +9753,11 @@ function jt(e = "zh-CN", o) {
|
|
|
9753
9753
|
return a;
|
|
9754
9754
|
};
|
|
9755
9755
|
}
|
|
9756
|
-
function
|
|
9756
|
+
function eo(e = {}) {
|
|
9757
9757
|
var _window;
|
|
9758
9758
|
const { useLocalFallback: o = !0, locale: t = "zh-CN" } = e, a = (_window = window) === null || _window === void 0 || (_window = _window._gct) === null || _window === void 0 ? void 0 : _window.i18nUtil;
|
|
9759
9759
|
if (typeof (a === null || a === void 0 ? void 0 : a.autoRegisterLocale) == "function") {
|
|
9760
|
-
a.autoRegisterLocale(
|
|
9760
|
+
a.autoRegisterLocale(Qa);
|
|
9761
9761
|
return;
|
|
9762
9762
|
}
|
|
9763
9763
|
if (o) {
|
|
@@ -9765,32 +9765,32 @@ function Qa(e = {}) {
|
|
|
9765
9765
|
window.$t = jt(t, n);
|
|
9766
9766
|
}
|
|
9767
9767
|
}
|
|
9768
|
-
function
|
|
9769
|
-
|
|
9768
|
+
function to(e, o = "zh-CN") {
|
|
9769
|
+
eo({ useLocalFallback: !1 });
|
|
9770
9770
|
const a = jt(o, typeof window.$t == "function" ? window.$t.bind(window) : null);
|
|
9771
9771
|
return window.$t = a, e.config.globalProperties.$t = a, a;
|
|
9772
9772
|
}
|
|
9773
|
-
function
|
|
9773
|
+
function yf(e, o = "zh-CN") {
|
|
9774
9774
|
var _e$config5;
|
|
9775
9775
|
const t = e === null || e === void 0 || (_e$config5 = e.config) === null || _e$config5 === void 0 ? void 0 : _e$config5.globalProperties;
|
|
9776
9776
|
if (typeof (t === null || t === void 0 ? void 0 : t.$t) == "function") return typeof window.$t != "function" && (window.$t = t.$t), t.$t;
|
|
9777
|
-
|
|
9777
|
+
eo({ useLocalFallback: !1 });
|
|
9778
9778
|
const n = jt(o, typeof window.$t == "function" ? window.$t.bind(window) : null);
|
|
9779
9779
|
return window.$t = n, t && (t.$t = n), n;
|
|
9780
9780
|
}
|
|
9781
|
-
function
|
|
9781
|
+
function ao(e) {
|
|
9782
9782
|
const o = Zt.options.themes ??= {};
|
|
9783
|
-
Object.assign(o,
|
|
9783
|
+
Object.assign(o, fa), e.use(Zt, { themes: { ...fa } });
|
|
9784
9784
|
}
|
|
9785
|
-
function
|
|
9785
|
+
function oo(e) {
|
|
9786
9786
|
const o = e.components;
|
|
9787
9787
|
return !!((o === null || o === void 0 ? void 0 : o.AButton) || (o === null || o === void 0 ? void 0 : o.Button) || (o === null || o === void 0 ? void 0 : o["a-button"]));
|
|
9788
9788
|
}
|
|
9789
|
-
function
|
|
9790
|
-
|
|
9789
|
+
function no(e) {
|
|
9790
|
+
oo(e._context) || e.use(Ma);
|
|
9791
9791
|
}
|
|
9792
|
-
function
|
|
9793
|
-
if (
|
|
9792
|
+
function gf(e) {
|
|
9793
|
+
if (oo(e)) return;
|
|
9794
9794
|
const o = {
|
|
9795
9795
|
component(t, a) {
|
|
9796
9796
|
(e.components ??= {})[t] = a;
|
|
@@ -9802,21 +9802,21 @@ function pf(e) {
|
|
|
9802
9802
|
config: e.config,
|
|
9803
9803
|
_context: e
|
|
9804
9804
|
};
|
|
9805
|
-
|
|
9805
|
+
Ma.install(o);
|
|
9806
9806
|
}
|
|
9807
|
-
function
|
|
9807
|
+
function _f(e, o) {
|
|
9808
9808
|
return (e === null || e === void 0 ? void 0 : e.closest(".ant-modal-content")) || (typeof o == "function" ? o(e) : document.body);
|
|
9809
9809
|
}
|
|
9810
|
-
function
|
|
9811
|
-
return
|
|
9810
|
+
function hf() {
|
|
9811
|
+
return Ye || (Ye = createApp({ name: "FormBaseModalFallbackApp" }), to(Ye), ao(Ye), no(Ye)), Ye._context;
|
|
9812
9812
|
}
|
|
9813
|
-
function
|
|
9813
|
+
function bf(e, o, t) {
|
|
9814
9814
|
const a = document.createElement("div");
|
|
9815
9815
|
a.className = "gct-form-base-modal-node", t && (a.dataset.modalId = t), document.body.appendChild(a);
|
|
9816
|
-
const n = createVNode(e), l = o ??
|
|
9817
|
-
|
|
9816
|
+
const n = createVNode(e), l = o ?? hf();
|
|
9817
|
+
yf(l), gf(l), n.appContext = l, render(n, a);
|
|
9818
9818
|
let s = !1, d = !1;
|
|
9819
|
-
async function
|
|
9819
|
+
async function u() {
|
|
9820
9820
|
if (!(s || d)) {
|
|
9821
9821
|
s = !0;
|
|
9822
9822
|
try {
|
|
@@ -9826,26 +9826,26 @@ function yf(e, o, t) {
|
|
|
9826
9826
|
}
|
|
9827
9827
|
}
|
|
9828
9828
|
}
|
|
9829
|
-
return { destroy:
|
|
9829
|
+
return { destroy: u };
|
|
9830
9830
|
}
|
|
9831
|
-
function
|
|
9831
|
+
function kf(e, o, t) {
|
|
9832
9832
|
return Wt.open(e, o, t);
|
|
9833
9833
|
}
|
|
9834
|
-
function
|
|
9834
|
+
function Cp() {
|
|
9835
9835
|
Wt.closeAll();
|
|
9836
9836
|
}
|
|
9837
|
-
var ie,
|
|
9837
|
+
var ie, Ra, Aa, Oa, Bo, Z$1, ot, ae, Ie, ql, Vl, Ll, $l, zl, Fl, qt, Rt, ts, os, rs, is, us, Xe, lr, sr, rr, ir, ur, cr, fr, pr, mr, vr, oa, gr, na, _r, la, kr, Cr, xr, Sr, Mr, Rr, Ar, Or, Tr, qr, Vr, Lr, $r, It, wi, ki, Ci, xi, Vt, Mi, Ri, Ai, Oi, de, Bt, Xd, Jd, Qd, Yd, e2, t2, a2, mt, Pt, zt, n2, l2, yt, s2, r2, i2, u2, Za, da, f2, Ga, m2, v2, y2, g2, h2, b2, k2, ct, C2, A2, O2, T2, q2, V2, L2, $2, B2, z2, F2, D2, Ja, U2, K2, I2, E2, P2, j2, W2, G2, X2, J2, Q2, Y2, tf, af, nf, lf, uf, Qa, fa, Ye, wf, Wt, kp;
|
|
9838
9838
|
var init_index_es = __esmMin((() => {
|
|
9839
9839
|
init_ResizeObserver_es();
|
|
9840
9840
|
init_vue_color();
|
|
9841
9841
|
init_style();
|
|
9842
9842
|
ie = new Proxy(api, { get(e, o) {
|
|
9843
|
-
const t =
|
|
9843
|
+
const t = Co();
|
|
9844
9844
|
return Reflect.get(t, o, t);
|
|
9845
9845
|
} });
|
|
9846
|
-
|
|
9847
|
-
|
|
9848
|
-
|
|
9846
|
+
Ra = /* @__PURE__ */ ((e) => (e.PRIMARY_KEY = "primary_key", e.ASSOCIATED_PRIMARY_KEY = "associated_primary_key", e.TEXT = "text", e.LONG_TEXT = "long_text", e.INTEGER = "integer", e.LONG = "long", e.DOUBLE = "double", e.DECIMAL = "decimal", e.BOOLEAN = "boolean", e.DATE = "date", e.TIME = "time", e.DATE_TIME = "date_time", e.IMAGE = "image", e.ATTACHMENT = "attachment", e.SERIAL = "serial_number", e.MASTERSLAVE = "master_slave", e.USER = "user", e.USER_MULTI = "user_multi", e.ORG = "org", e.ORG_MULTI = "org_multi", e.ENUM = "enum", e.ENUM_MULTI = "enum_multi", e.OPTION = "option", e.OPTION_MULTI = "option_multi", e.REF = "ref", e.REF_MULTI = "ref_multi", e.RDO_REF = "rdo_ref", e.EXPRESSION = "expression", e.EXPRESSION_CONDITION = "expression_condition", e.FUNCTION = "function", e.AGG = "agg", e.ESOP = "esop", e.TRANSACTION = "transaction", e.LABEL_TEMPLATE = "label_template", e.LABEL_TEMPLATE_REF = "label_template_ref", e.DOCUMENT_TEMPLATE = "document_template", e.SERIALRULE = "serial_number_rule", e.PRINTER = "printer", e.MESSAGE_TMPL = "message_tmpl", e.RANGE_USER = "range_user", e.SIGNATURE = "electronic_signature", e.ONLINE_FORM_TEMPLATE = "online_form_tmpl", e.E_DHR_TEMPLATE = "edhr_tmpl", e.DATA_TABLE_FORMULA = "data_table_formula", e.READONLYCMP = "readonlycmp", e.MATERIAL_NO = "material_no", e.STERILIZE_LOT = "sterilization_container", e.MATERIAL_LOT = "material_container", e.RELATED_LOT_NO = "related_lot_no", e.PRODUCT = "product", e.DEVICE = "device", e.Biz_Process = "biz_process", e.Approval_Process = "approval_process", e.MFG_ORDER = "mfg_order", e.RECORD_NO = "record_no", e.TRACE_DATE = "trace_date", e.ORDER_NO = "order_no", e.ROUTING_OPERATION = "routing_operation", e.GOOD_QTY = "good_qty", e.NOT_GOOD_QTY = "not_good_qty", e.REPORT_START_TIME = "report_start_time", e.REPORT_END_TIME = "report_end_time", e.WORK_HOURS = "work_hours", e.PRODUCTION_DATE = "production_date", e.REPORTER = "reporter", e.NOT_GOOD_REASON = "not_good_reason", e.NOT_GOOD_GROUP = "not_good_group", e.SCRAP_REASON = "scrap_reason", e.SCRAP_GROUP = "scrap_group", e.SCRAP_QTY = "scrap_qty", e.SCRAP_MATERIAL = "scrap_material", e.SCRAP_MATERIAL_NO = "scrap_material_no", e.DESTRUCTIVE_TEST_QTY = "destructive_test_qty", e.PRODUCT_CHECK_QTY = "product_check_qty", e.MATERIAL_CHECK_QTY = "material_check_qty", e.OF_INST_NUM = "of_inst_num", e.DEVICE_REF = "device_ref", e.DEVICE_REF_MULTI = "device_ref_multi", e.PRODUCT_FAMILY = "product_family", e.WAREHOUSE_RECEIPT_NO = "warehouse_receipt_no", e.WAREHOUSE_RECEIPT_DATE = "warehouse_receipt_date", e.WAREHOUSE_MANAGER = "warehouse_manager", e.WAREHOUSE_IN_OUT = "warehouse_in_out", e.STOCKTAKE = "stocktake", e.ALLOCATE = "allocate", e.STERILIZE_BATCH = "sterilize_batch", e.PRETREATMENT_LIST = "pretreatment_list", e.INSPECTION = "inspection", e.WAREHOUSE = "warehouse", e.LOCATION = "location", e.QTY_REQUIRED = "qty_required", e.QTY_CONSUMED = "qty_consumed", e.QTY = "qty", e.MODEL_RELATION = "model_relation", e.EXTERNAL_REF_NO = "external_reference_no", e.OBJECT_TYPE = "object_type", e.MATERIAL_CONSUME = "material_consume", e.MATERIAL_CONSUME_TABLE = "material_consume_table", e.MATERIAL_BALANCE_TABLE = "material_balance_table", e.SHOPFLOOR = "shopfloor", e.E_SOP = "e_sop", e.E_SOP_VERSION = "e_sop_version", e))(Ra || {});
|
|
9847
|
+
Aa = /* @__PURE__ */ ((e) => (e.MATERIAL_CONSUME = "material_consume", e.EXTERNAL_REF_NO = "external_reference_no", e.WAREHOUSE = "warehouse", e.MODEL_RELATION = "model_relation", e.QTY = "qty", e.QTY_CONSUMED = "qty_consumed", e.QTY_REQUIRED = "qty_required", e.PRODUCT = "product", e.MATERIAL_NO = "material_no", e.ROUTING_OPERATION = "routing_operation", e.OPERATION = "operation", e.BOM_ENTRY_ID = "bom_entry_id", e))(Aa || {});
|
|
9848
|
+
Oa = {
|
|
9849
9849
|
na: "N/A",
|
|
9850
9850
|
primary_key: "主键",
|
|
9851
9851
|
associated_primary_key: "关联主键",
|
|
@@ -9955,16 +9955,16 @@ var init_index_es = __esmMin((() => {
|
|
|
9955
9955
|
array: "集合",
|
|
9956
9956
|
binary: "二进制流"
|
|
9957
9957
|
};
|
|
9958
|
-
|
|
9958
|
+
Bo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9959
9959
|
__proto__: null,
|
|
9960
|
-
default:
|
|
9960
|
+
default: Oa
|
|
9961
9961
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
9962
9962
|
Z$1 = (e, o) => {
|
|
9963
9963
|
const t = e.__vccOpts || e;
|
|
9964
9964
|
for (const [a, n] of o) t[a] = n;
|
|
9965
9965
|
return t;
|
|
9966
9966
|
};
|
|
9967
|
-
|
|
9967
|
+
ot = {
|
|
9968
9968
|
...PopperWrapper,
|
|
9969
9969
|
name: "GctDropdown",
|
|
9970
9970
|
vPopperTheme: "gct-dropdown"
|
|
@@ -9988,7 +9988,7 @@ var init_index_es = __esmMin((() => {
|
|
|
9988
9988
|
}, [createElementVNode("i", { class: normalizeClass([t.value, e.icon]) }, null, 2)], 4));
|
|
9989
9989
|
}
|
|
9990
9990
|
}), [["__scopeId", "data-v-ec82362b"]]);
|
|
9991
|
-
|
|
9991
|
+
Ie = class Ie {
|
|
9992
9992
|
static init(o) {
|
|
9993
9993
|
this.transfer = o.transfer, o.upload && (this.uploadFn = o.upload);
|
|
9994
9994
|
}
|
|
@@ -10092,19 +10092,19 @@ var init_index_es = __esmMin((() => {
|
|
|
10092
10092
|
l.fillStyle = "#ffffff", l.fillRect(0, 0, t, a);
|
|
10093
10093
|
let s = Math.floor(a / 3);
|
|
10094
10094
|
l.font = `${s}px Arial`;
|
|
10095
|
-
const d = (g, M,
|
|
10096
|
-
const
|
|
10097
|
-
let
|
|
10098
|
-
for (const
|
|
10099
|
-
const R =
|
|
10100
|
-
|
|
10101
|
-
}
|
|
10102
|
-
return
|
|
10103
|
-
},
|
|
10104
|
-
let
|
|
10105
|
-
for (;
|
|
10106
|
-
const f = (a -
|
|
10107
|
-
return l.fillStyle = "#000", l.textAlign = "center", l.textBaseline = "middle",
|
|
10095
|
+
const d = (g, M, C) => {
|
|
10096
|
+
const c = g.split(""), h = [];
|
|
10097
|
+
let y = "";
|
|
10098
|
+
for (const m of c) {
|
|
10099
|
+
const R = y + m;
|
|
10100
|
+
C.measureText(R).width > M && y ? (h.push(y), y = m) : y = R;
|
|
10101
|
+
}
|
|
10102
|
+
return y && h.push(y), h;
|
|
10103
|
+
}, u = t * .9;
|
|
10104
|
+
let i = d(o, u, l), k = s * 1.2;
|
|
10105
|
+
for (; i.length * k > a && s > 10;) s--, k = s * 1.2, l.font = `${s}px Arial`, i = d(o, u, l);
|
|
10106
|
+
const f = (a - i.length * k) / 2 + k / 2;
|
|
10107
|
+
return l.fillStyle = "#000", l.textAlign = "center", l.textBaseline = "middle", i.forEach((g, M) => {
|
|
10108
10108
|
l.fillText(g, t / 2, f + M * k);
|
|
10109
10109
|
}), n.toDataURL("image/png");
|
|
10110
10110
|
}
|
|
@@ -10155,12 +10155,12 @@ var init_index_es = __esmMin((() => {
|
|
|
10155
10155
|
return Number.isFinite(t) && t > 0 ? t : void 0;
|
|
10156
10156
|
}
|
|
10157
10157
|
};
|
|
10158
|
-
|
|
10159
|
-
|
|
10160
|
-
|
|
10161
|
-
|
|
10162
|
-
|
|
10163
|
-
|
|
10158
|
+
Ie.minioBasePath = "/minio", Ie.transfer = null, Ie.uploadFn = null, Ie.fileUrlMap = /* @__PURE__ */ new Map(), Ie.imageCache = /* @__PURE__ */ new Map(), Ie.fileSizeCache = /* @__PURE__ */ new Map();
|
|
10159
|
+
ql = { class: "message-wrapper" };
|
|
10160
|
+
Vl = ["onMouseenter", "onMouseleave"];
|
|
10161
|
+
Ll = { class: "message-message" };
|
|
10162
|
+
$l = ["onClick"];
|
|
10163
|
+
zl = /* @__PURE__ */ Z$1(/* @__PURE__ */ defineComponent({
|
|
10164
10164
|
__name: "Message",
|
|
10165
10165
|
setup(e, { expose: o }) {
|
|
10166
10166
|
const t = reactive([]), a = {
|
|
@@ -10169,25 +10169,25 @@ var init_index_es = __esmMin((() => {
|
|
|
10169
10169
|
warning: "icon-jinggao1",
|
|
10170
10170
|
error: "icon-cuowu2"
|
|
10171
10171
|
};
|
|
10172
|
-
function n(
|
|
10173
|
-
|
|
10174
|
-
|
|
10175
|
-
},
|
|
10172
|
+
function n(i) {
|
|
10173
|
+
i.duration <= 0 || (i.startTime = Date.now(), i.timer = window.setTimeout(() => {
|
|
10174
|
+
u(i.id);
|
|
10175
|
+
}, i.remaining));
|
|
10176
10176
|
}
|
|
10177
|
-
function l(
|
|
10178
|
-
if (!
|
|
10179
|
-
clearTimeout(
|
|
10180
|
-
const k = Date.now() - (
|
|
10181
|
-
|
|
10177
|
+
function l(i) {
|
|
10178
|
+
if (!i.timer) return;
|
|
10179
|
+
clearTimeout(i.timer), i.timer = void 0;
|
|
10180
|
+
const k = Date.now() - (i.startTime || 0);
|
|
10181
|
+
i.remaining = i.remaining - k;
|
|
10182
10182
|
}
|
|
10183
|
-
function s(
|
|
10184
|
-
|
|
10183
|
+
function s(i) {
|
|
10184
|
+
i.timer || i.remaining <= 0 || n(i);
|
|
10185
10185
|
}
|
|
10186
|
-
function d(
|
|
10187
|
-
|
|
10186
|
+
function d(i) {
|
|
10187
|
+
i.remaining = i.duration, t.push(i), i.duration > 0 && n(i);
|
|
10188
10188
|
}
|
|
10189
|
-
function
|
|
10190
|
-
const k = t.findIndex((_) => _.id ===
|
|
10189
|
+
function u(i) {
|
|
10190
|
+
const k = t.findIndex((_) => _.id === i);
|
|
10191
10191
|
if (k !== -1) {
|
|
10192
10192
|
const _ = t[k];
|
|
10193
10193
|
_ !== null && _ !== void 0 && _.timer && clearTimeout(_.timer), t.splice(k, 1);
|
|
@@ -10195,8 +10195,8 @@ var init_index_es = __esmMin((() => {
|
|
|
10195
10195
|
}
|
|
10196
10196
|
return o({
|
|
10197
10197
|
add: d,
|
|
10198
|
-
remove:
|
|
10199
|
-
}), (
|
|
10198
|
+
remove: u
|
|
10199
|
+
}), (i, k) => (openBlock(), createElementBlock("div", ql, [createVNode(TransitionGroup, {
|
|
10200
10200
|
name: "message",
|
|
10201
10201
|
tag: "div",
|
|
10202
10202
|
class: "message-list"
|
|
@@ -10208,40 +10208,40 @@ var init_index_es = __esmMin((() => {
|
|
|
10208
10208
|
onMouseleave: (f) => s(_)
|
|
10209
10209
|
}, [
|
|
10210
10210
|
createElementVNode("i", { class: normalizeClass(["message-icon icon iconfont", a[_.type]]) }, null, 2),
|
|
10211
|
-
createElementVNode("div",
|
|
10211
|
+
createElementVNode("div", Ll, toDisplayString(_.message), 1),
|
|
10212
10212
|
_.closeable ? (openBlock(), createElementBlock("i", {
|
|
10213
10213
|
key: 0,
|
|
10214
10214
|
class: "message-close icon iconfont icon-guanbi",
|
|
10215
|
-
onClick: (f) =>
|
|
10216
|
-
}, null, 8,
|
|
10217
|
-
], 42,
|
|
10215
|
+
onClick: (f) => u(_.id)
|
|
10216
|
+
}, null, 8, $l)) : createCommentVNode("", !0)
|
|
10217
|
+
], 42, Vl))), 128))]),
|
|
10218
10218
|
_: 1
|
|
10219
10219
|
})]));
|
|
10220
10220
|
}
|
|
10221
10221
|
}), [["__scopeId", "data-v-54e31352"]]);
|
|
10222
|
-
|
|
10223
|
-
|
|
10222
|
+
Fl = 0;
|
|
10223
|
+
Ne.success = (e, o = {}) => Ne({
|
|
10224
10224
|
...o,
|
|
10225
10225
|
type: "success",
|
|
10226
10226
|
message: e
|
|
10227
10227
|
});
|
|
10228
|
-
|
|
10228
|
+
Ne.error = (e, o = {}) => Ne({
|
|
10229
10229
|
...o,
|
|
10230
10230
|
type: "error",
|
|
10231
10231
|
message: e
|
|
10232
10232
|
});
|
|
10233
|
-
|
|
10233
|
+
Ne.warning = (e, o = {}) => Ne({
|
|
10234
10234
|
...o,
|
|
10235
10235
|
type: "warning",
|
|
10236
10236
|
message: e
|
|
10237
10237
|
});
|
|
10238
|
-
|
|
10238
|
+
Ne.info = (e, o = {}) => Ne({
|
|
10239
10239
|
...o,
|
|
10240
10240
|
type: "info",
|
|
10241
10241
|
message: e
|
|
10242
10242
|
});
|
|
10243
|
-
|
|
10244
|
-
|
|
10243
|
+
ts = typeof window > "u";
|
|
10244
|
+
os = {
|
|
10245
10245
|
vertical: {
|
|
10246
10246
|
offset: "offsetHeight",
|
|
10247
10247
|
scroll: "scrollTop",
|
|
@@ -10263,7 +10263,7 @@ var init_index_es = __esmMin((() => {
|
|
|
10263
10263
|
direction: "left"
|
|
10264
10264
|
}
|
|
10265
10265
|
};
|
|
10266
|
-
|
|
10266
|
+
rs = defineComponent({
|
|
10267
10267
|
name: "Bar",
|
|
10268
10268
|
props: {
|
|
10269
10269
|
vertical: Boolean,
|
|
@@ -10271,22 +10271,22 @@ var init_index_es = __esmMin((() => {
|
|
|
10271
10271
|
move: Number
|
|
10272
10272
|
},
|
|
10273
10273
|
setup(e) {
|
|
10274
|
-
const o = getCurrentInstance(), t = ref(), a = inject("scroll-bar-wrap", {}), n = computed(() =>
|
|
10274
|
+
const o = getCurrentInstance(), t = ref(), a = inject("scroll-bar-wrap", {}), n = computed(() => os[e.vertical ? "vertical" : "horizontal"]), l = ref({}), s = ref(), d = (f) => {
|
|
10275
10275
|
var _window$getSelection;
|
|
10276
|
-
f.ctrlKey || f.button === 2 || ((_window$getSelection = window.getSelection()) === null || _window$getSelection === void 0 || _window$getSelection.removeAllRanges(),
|
|
10277
|
-
},
|
|
10276
|
+
f.ctrlKey || f.button === 2 || ((_window$getSelection = window.getSelection()) === null || _window$getSelection === void 0 || _window$getSelection.removeAllRanges(), i(f), l.value[n.value.axis] = f.currentTarget[n.value.offset] - (f[n.value.client] - f.currentTarget.getBoundingClientRect()[n.value.direction]));
|
|
10277
|
+
}, u = (f) => {
|
|
10278
10278
|
var _o$vnode$el;
|
|
10279
|
-
const
|
|
10280
|
-
a.value[n.value.scroll] =
|
|
10281
|
-
},
|
|
10279
|
+
const C = (Math.abs(f.target.getBoundingClientRect()[n.value.direction] - f[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]);
|
|
10280
|
+
a.value[n.value.scroll] = C * a.value[n.value.scrollSize] / 100;
|
|
10281
|
+
}, i = (f) => {
|
|
10282
10282
|
f.stopImmediatePropagation(), s.value = !0, ta(document, "mousemove", k), ta(document, "mouseup", _), document.onselectstart = () => !1;
|
|
10283
10283
|
}, k = (f) => {
|
|
10284
10284
|
var _o$vnode$el2, _o$vnode$el3;
|
|
10285
10285
|
if (s.value === !1) return;
|
|
10286
10286
|
const g = l.value[n.value.axis];
|
|
10287
10287
|
if (!g) return;
|
|
10288
|
-
const
|
|
10289
|
-
a.value[n.value.scroll] =
|
|
10288
|
+
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]) - f[n.value.client]) * -1 - (t.value[n.value.offset] - g)) * 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]);
|
|
10289
|
+
a.value[n.value.scroll] = c * a.value[n.value.scrollSize] / 100;
|
|
10290
10290
|
};
|
|
10291
10291
|
function _() {
|
|
10292
10292
|
s.value = !1, l.value[n.value.axis] = 0, aa(document, "mousemove", k), document.onselectstart = null;
|
|
@@ -10295,12 +10295,12 @@ var init_index_es = __esmMin((() => {
|
|
|
10295
10295
|
aa(document, "mouseup", _);
|
|
10296
10296
|
}), () => h("div", {
|
|
10297
10297
|
class: ["scrollbar__bar", "is-" + n.value.key],
|
|
10298
|
-
onMousedown:
|
|
10298
|
+
onMousedown: u
|
|
10299
10299
|
}, h("div", {
|
|
10300
10300
|
ref: t,
|
|
10301
10301
|
class: "scrollbar__thumb",
|
|
10302
10302
|
onMousedown: d,
|
|
10303
|
-
style:
|
|
10303
|
+
style: ns({
|
|
10304
10304
|
size: e.size,
|
|
10305
10305
|
move: e.move,
|
|
10306
10306
|
bar: n.value
|
|
@@ -10308,9 +10308,9 @@ var init_index_es = __esmMin((() => {
|
|
|
10308
10308
|
}));
|
|
10309
10309
|
}
|
|
10310
10310
|
});
|
|
10311
|
-
|
|
10311
|
+
is = defineComponent({
|
|
10312
10312
|
name: "Scrollbar",
|
|
10313
|
-
components: { Bar:
|
|
10313
|
+
components: { Bar: rs },
|
|
10314
10314
|
props: {
|
|
10315
10315
|
native: {
|
|
10316
10316
|
type: Boolean,
|
|
@@ -10345,9 +10345,9 @@ var init_index_es = __esmMin((() => {
|
|
|
10345
10345
|
setup(e) {
|
|
10346
10346
|
const o = ref("0"), t = ref("0"), a = ref(0), n = ref(0), l = ref(), s = ref();
|
|
10347
10347
|
provide("scroll-bar-wrap", l);
|
|
10348
|
-
const d = computed(() => Array.isArray(e.wrapStyle) ?
|
|
10348
|
+
const d = computed(() => Array.isArray(e.wrapStyle) ? ss(e.wrapStyle) : e.wrapStyle), u = () => {
|
|
10349
10349
|
e.native || (n.value = unref(l).scrollTop * 100 / unref(l).clientHeight, a.value = unref(l).scrollLeft * 100 / unref(l).clientWidth);
|
|
10350
|
-
},
|
|
10350
|
+
}, i = () => {
|
|
10351
10351
|
if (!unref(l)) return;
|
|
10352
10352
|
const f = unref(l).clientHeight * 100 / unref(l).scrollHeight, g = unref(l).clientWidth * 100 / unref(l).scrollWidth;
|
|
10353
10353
|
t.value = f < 100 ? f + "%" : "", o.value = g < 100 ? g + "%" : "";
|
|
@@ -10359,9 +10359,9 @@ var init_index_es = __esmMin((() => {
|
|
|
10359
10359
|
g && (g.scrollTop = f);
|
|
10360
10360
|
};
|
|
10361
10361
|
return onMounted(() => {
|
|
10362
|
-
e.native || (nextTick(
|
|
10362
|
+
e.native || (nextTick(i), e.noresize || (Yt(unref(s), i), Yt(unref(l), i), addEventListener("resize", i)));
|
|
10363
10363
|
}), onBeforeUnmount(() => {
|
|
10364
|
-
e.native || e.noresize || (ea(unref(s),
|
|
10364
|
+
e.native || e.noresize || (ea(unref(s), i), ea(unref(l), i), removeEventListener("resize", i));
|
|
10365
10365
|
}), {
|
|
10366
10366
|
moveX: a,
|
|
10367
10367
|
moveY: n,
|
|
@@ -10370,17 +10370,17 @@ var init_index_es = __esmMin((() => {
|
|
|
10370
10370
|
style: d,
|
|
10371
10371
|
wrap: l,
|
|
10372
10372
|
resize: s,
|
|
10373
|
-
update:
|
|
10374
|
-
handleScroll:
|
|
10373
|
+
update: i,
|
|
10374
|
+
handleScroll: u,
|
|
10375
10375
|
scrollTo: k,
|
|
10376
10376
|
setScrollTop: _
|
|
10377
10377
|
};
|
|
10378
10378
|
}
|
|
10379
10379
|
});
|
|
10380
|
-
|
|
10381
|
-
|
|
10380
|
+
us = { class: "scrollbar" };
|
|
10381
|
+
Xe = /* @__PURE__ */ Z$1(is, [["render", cs]]);
|
|
10382
10382
|
({ ...PopperWrapper });
|
|
10383
|
-
|
|
10383
|
+
lr = /* @__PURE__ */ Z$1(/* @__PURE__ */ defineComponent({
|
|
10384
10384
|
__name: "rdo-tree-select-more",
|
|
10385
10385
|
emits: ["load-more"],
|
|
10386
10386
|
setup(e, { emit: o }) {
|
|
@@ -10399,18 +10399,18 @@ var init_index_es = __esmMin((() => {
|
|
|
10399
10399
|
}, [...s[0] || (s[0] = [createElementVNode("span", { class: "rdo-tree-select-more__text" }, "加载更多", -1)])], 512));
|
|
10400
10400
|
}
|
|
10401
10401
|
}), [["__scopeId", "data-v-48b5d502"]]);
|
|
10402
|
-
|
|
10403
|
-
|
|
10402
|
+
sr = { class: "rdo-tree-select-node" };
|
|
10403
|
+
rr = {
|
|
10404
10404
|
key: 1,
|
|
10405
10405
|
class: "rdo-tree-select-node__switcher placeholder"
|
|
10406
10406
|
};
|
|
10407
|
-
|
|
10408
|
-
|
|
10409
|
-
|
|
10407
|
+
ir = { class: "rdo-tree-select-node__title" };
|
|
10408
|
+
ur = { class: "rdo-tree-select-node__label" };
|
|
10409
|
+
cr = {
|
|
10410
10410
|
key: 0,
|
|
10411
10411
|
class: "rdo-tree-select-node__tag"
|
|
10412
10412
|
};
|
|
10413
|
-
|
|
10413
|
+
fr = /* @__PURE__ */ Z$1(/* @__PURE__ */ defineComponent({
|
|
10414
10414
|
name: "RdoTreeSelectNode",
|
|
10415
10415
|
__name: "rdo-tree-select-node",
|
|
10416
10416
|
props: {
|
|
@@ -10427,12 +10427,12 @@ var init_index_es = __esmMin((() => {
|
|
|
10427
10427
|
var _t$node$children2;
|
|
10428
10428
|
return !!((_t$node$children2 = t.node.children) === null || _t$node$children2 === void 0 ? void 0 : _t$node$children2.length);
|
|
10429
10429
|
}), l = computed(() => t.expandedKeys.includes(t.node.key)), s = computed(() => t.selectedKey === String(t.node.rawValue ?? t.node.key)), d = computed(() => t.node.disabled ? !0 : t.disabledParent ? n.value : !1);
|
|
10430
|
-
function
|
|
10430
|
+
function u() {
|
|
10431
10431
|
d.value || a("select", t.node);
|
|
10432
10432
|
}
|
|
10433
|
-
return (
|
|
10433
|
+
return (i, k) => {
|
|
10434
10434
|
const _ = resolveComponent("RdoTreeSelectNode", !0);
|
|
10435
|
-
return openBlock(), createElementBlock("div",
|
|
10435
|
+
return openBlock(), createElementBlock("div", sr, [createElementVNode("div", {
|
|
10436
10436
|
class: normalizeClass(["rdo-tree-select-node__row", {
|
|
10437
10437
|
selected: s.value,
|
|
10438
10438
|
disabled: d.value,
|
|
@@ -10440,7 +10440,7 @@ var init_index_es = __esmMin((() => {
|
|
|
10440
10440
|
"is-child": !n.value && e.level > 0
|
|
10441
10441
|
}]),
|
|
10442
10442
|
style: normalizeStyle({ paddingLeft: `${e.level * 20 + 8}px` }),
|
|
10443
|
-
onClick: withModifiers(
|
|
10443
|
+
onClick: withModifiers(u, ["stop"])
|
|
10444
10444
|
}, [n.value ? (openBlock(), createElementBlock("span", {
|
|
10445
10445
|
key: 0,
|
|
10446
10446
|
class: normalizeClass(["rdo-tree-select-node__switcher", { expanded: l.value }]),
|
|
@@ -10450,7 +10450,7 @@ var init_index_es = __esmMin((() => {
|
|
|
10450
10450
|
color: "#212528",
|
|
10451
10451
|
size: "13",
|
|
10452
10452
|
version: "v2"
|
|
10453
|
-
})], 2)) : (openBlock(), createElementBlock("span",
|
|
10453
|
+
})], 2)) : (openBlock(), createElementBlock("span", rr)), createElementVNode("span", ir, [createElementVNode("span", ur, toDisplayString(e.node.title), 1), e.node.isDefault && !n.value ? (openBlock(), createElementBlock("span", cr, "默认")) : createCommentVNode("", !0)])], 6), n.value && l.value ? (openBlock(!0), createElementBlock(Fragment, { key: 0 }, renderList(e.node.children, (f) => (openBlock(), createBlock(_, {
|
|
10454
10454
|
key: f.key,
|
|
10455
10455
|
node: f,
|
|
10456
10456
|
level: e.level + 1,
|
|
@@ -10471,12 +10471,12 @@ var init_index_es = __esmMin((() => {
|
|
|
10471
10471
|
};
|
|
10472
10472
|
}
|
|
10473
10473
|
}), [["__scopeId", "data-v-c86f09fa"]]);
|
|
10474
|
-
|
|
10475
|
-
|
|
10474
|
+
pr = { class: "rdo-tree-select__tree-inner" };
|
|
10475
|
+
mr = {
|
|
10476
10476
|
key: 0,
|
|
10477
10477
|
class: "rdo-tree-select__empty"
|
|
10478
10478
|
};
|
|
10479
|
-
|
|
10479
|
+
vr = {
|
|
10480
10480
|
key: 1,
|
|
10481
10481
|
class: "rdo-tree-select__empty"
|
|
10482
10482
|
};
|
|
@@ -10498,14 +10498,14 @@ var init_index_es = __esmMin((() => {
|
|
|
10498
10498
|
],
|
|
10499
10499
|
setup(e, { emit: o }) {
|
|
10500
10500
|
const t = o;
|
|
10501
|
-
return (a, n) => (openBlock(), createBlock(unref(
|
|
10501
|
+
return (a, n) => (openBlock(), createBlock(unref(Xe), {
|
|
10502
10502
|
class: "rdo-tree-select__scrollbar",
|
|
10503
10503
|
"wrap-style": { maxHeight: "280px" }
|
|
10504
10504
|
}, {
|
|
10505
|
-
default: withCtx(() => [createElementVNode("div",
|
|
10505
|
+
default: withCtx(() => [createElementVNode("div", pr, [(openBlock(!0), createElementBlock(Fragment, null, renderList(e.displayTreeData, (l) => (openBlock(), createElementBlock(Fragment, { key: l.key }, [l.isLoadMore ? (openBlock(), createBlock(lr, {
|
|
10506
10506
|
key: 0,
|
|
10507
10507
|
onLoadMore: n[0] || (n[0] = (s) => t("load-more"))
|
|
10508
|
-
})) : (openBlock(), createBlock(
|
|
10508
|
+
})) : (openBlock(), createBlock(fr, {
|
|
10509
10509
|
key: 1,
|
|
10510
10510
|
node: l,
|
|
10511
10511
|
level: 0,
|
|
@@ -10522,12 +10522,12 @@ var init_index_es = __esmMin((() => {
|
|
|
10522
10522
|
"disabled-parent",
|
|
10523
10523
|
"parent-to-default",
|
|
10524
10524
|
"onSelect"
|
|
10525
|
-
]))], 64))), 128)), e.loading ? (openBlock(), createElementBlock("div",
|
|
10525
|
+
]))], 64))), 128)), e.loading ? (openBlock(), createElementBlock("div", mr, "加载中...")) : e.displayTreeData.length ? createCommentVNode("", !0) : (openBlock(), createElementBlock("div", vr, toDisplayString(e.emptyText || "暂无数据"), 1))])]),
|
|
10526
10526
|
_: 1
|
|
10527
10527
|
}));
|
|
10528
10528
|
}
|
|
10529
10529
|
}), [["__scopeId", "data-v-8fb9cbf1"]]);
|
|
10530
|
-
|
|
10530
|
+
gr = class {
|
|
10531
10531
|
constructor(o = {}) {
|
|
10532
10532
|
this.pendingMap = /* @__PURE__ */ new Map(), this.cacheMap = /* @__PURE__ */ new Map(), this.defaultTTL = o.defaultTTL ?? 12e4, this.maxCacheSize = o.maxCacheSize ?? 100, this.enableLogging = o.enableLogging ?? !0;
|
|
10533
10533
|
}
|
|
@@ -10550,10 +10550,10 @@ var init_index_es = __esmMin((() => {
|
|
|
10550
10550
|
async handleRequest(o, t, a, n) {
|
|
10551
10551
|
const l = this.getKey(o, t), s = Date.now(), d = n ?? this.defaultTTL;
|
|
10552
10552
|
this.cleanupExpiredCache();
|
|
10553
|
-
const
|
|
10554
|
-
if (
|
|
10555
|
-
if (
|
|
10556
|
-
const
|
|
10553
|
+
const u = this.cacheMap.get(l);
|
|
10554
|
+
if (u && u.expireAt > s) return this.log("info", `[cache] 命中缓存: ${l}`), u.data;
|
|
10555
|
+
if (u && this.cacheMap.delete(l), this.pendingMap.has(l)) return this.log("warn", `[pending] 返回进行中的 Promise: ${l}`), this.pendingMap.get(l);
|
|
10556
|
+
const i = a(t).then((k) => (this.cacheMap.size >= this.maxCacheSize && (this.log("debug", "[cache] 缓存已满,执行清理"), this.clearExpiredFirst()), this.cacheMap.set(l, {
|
|
10557
10557
|
data: k,
|
|
10558
10558
|
expireAt: Date.now() + d
|
|
10559
10559
|
}), k)).catch((k) => {
|
|
@@ -10561,7 +10561,7 @@ var init_index_es = __esmMin((() => {
|
|
|
10561
10561
|
}).finally(() => {
|
|
10562
10562
|
this.pendingMap.delete(l);
|
|
10563
10563
|
});
|
|
10564
|
-
return this.pendingMap.set(l,
|
|
10564
|
+
return this.pendingMap.set(l, i), i;
|
|
10565
10565
|
}
|
|
10566
10566
|
/**
|
|
10567
10567
|
* 清空全部缓存
|
|
@@ -10660,60 +10660,60 @@ var init_index_es = __esmMin((() => {
|
|
|
10660
10660
|
}
|
|
10661
10661
|
}
|
|
10662
10662
|
};
|
|
10663
|
-
na = new
|
|
10663
|
+
na = new gr({
|
|
10664
10664
|
defaultTTL: 12e4,
|
|
10665
10665
|
maxCacheSize: 100,
|
|
10666
10666
|
enableLogging: !0
|
|
10667
10667
|
});
|
|
10668
|
-
|
|
10668
|
+
_r = "entity";
|
|
10669
10669
|
la = ["name_.iLike", "code_.iLike"];
|
|
10670
|
-
|
|
10670
|
+
kr = {
|
|
10671
10671
|
key: 0,
|
|
10672
10672
|
class: "rdo-tree-select__input-wrap"
|
|
10673
10673
|
};
|
|
10674
|
-
|
|
10674
|
+
Cr = {
|
|
10675
10675
|
key: 0,
|
|
10676
10676
|
class: "rdo-tree-select__input-mirror",
|
|
10677
10677
|
"aria-hidden": "true"
|
|
10678
10678
|
};
|
|
10679
|
-
|
|
10680
|
-
|
|
10679
|
+
xr = { class: "rdo-tree-select__mirror-text" };
|
|
10680
|
+
Sr = {
|
|
10681
10681
|
key: 0,
|
|
10682
10682
|
class: "rdo-tree-select__value-tag"
|
|
10683
10683
|
};
|
|
10684
|
-
|
|
10684
|
+
Mr = [
|
|
10685
10685
|
"value",
|
|
10686
10686
|
"placeholder",
|
|
10687
10687
|
"disabled",
|
|
10688
10688
|
"onKeydown"
|
|
10689
10689
|
];
|
|
10690
|
-
|
|
10690
|
+
Rr = {
|
|
10691
10691
|
key: 1,
|
|
10692
10692
|
class: "rdo-tree-select__value"
|
|
10693
10693
|
};
|
|
10694
|
-
|
|
10694
|
+
Ar = {
|
|
10695
10695
|
key: 0,
|
|
10696
10696
|
class: "rdo-tree-select__value-tag"
|
|
10697
10697
|
};
|
|
10698
|
-
|
|
10698
|
+
Or = {
|
|
10699
10699
|
key: 1,
|
|
10700
10700
|
class: "rdo-tree-select__suffix-icon"
|
|
10701
10701
|
};
|
|
10702
|
-
|
|
10702
|
+
Tr = {
|
|
10703
10703
|
key: 2,
|
|
10704
10704
|
class: "rdo-tree-select__suffix-icon"
|
|
10705
10705
|
};
|
|
10706
|
-
|
|
10707
|
-
|
|
10708
|
-
|
|
10706
|
+
qr = ["title"];
|
|
10707
|
+
Vr = { class: "rdo-tree-select__value-text" };
|
|
10708
|
+
Lr = {
|
|
10709
10709
|
key: 0,
|
|
10710
10710
|
class: "rdo-tree-select__value-tag"
|
|
10711
10711
|
};
|
|
10712
|
-
|
|
10712
|
+
$r = {
|
|
10713
10713
|
key: 1,
|
|
10714
10714
|
class: "rdo-tree-select__placeholder"
|
|
10715
10715
|
};
|
|
10716
|
-
|
|
10716
|
+
It = /* @__PURE__ */ Z$1(/* @__PURE__ */ defineComponent({
|
|
10717
10717
|
__name: "rdo-tree-select",
|
|
10718
10718
|
props: {
|
|
10719
10719
|
modelValue: {},
|
|
@@ -10750,220 +10750,220 @@ var init_index_es = __esmMin((() => {
|
|
|
10750
10750
|
"change"
|
|
10751
10751
|
],
|
|
10752
10752
|
setup(e, { emit: o }) {
|
|
10753
|
-
const t = e, a = o, n = ref(), l = ref(), s = ref(), d = ref(),
|
|
10753
|
+
const t = e, a = o, n = ref(), l = ref(), s = ref(), d = ref(), u = ref(!1), i = ref(!1), k = ref(!1), _ = ref({}), f = ref(!1), g = ref([]), M = ref(1), C = ref(""), c = ref(""), h = ref({ text: "" }), { treeData: y, loadOptions: m, ensureSelectedNode: R, getNodeDisplay: $, initByValue: F, findChildNode: T, findParentNode: V, resetTreeData: O } = wr({
|
|
10754
10754
|
modelKey: t.modelKey,
|
|
10755
10755
|
modelCategory: t.modelCategory,
|
|
10756
10756
|
getQueryData: () => t.queryData
|
|
10757
|
-
}), A = computed(() => t.modelValue || void 0),
|
|
10758
|
-
...
|
|
10757
|
+
}), A = computed(() => t.modelValue || void 0), S = computed(() => h.value.text || ""), L = computed(() => t.allowClear && !t.disabled && !u.value && S.value && k.value ? "clear" : u.value ? "search" : "arrow"), U = computed(() => t.allowClear && !t.disabled && A.value && k.value ? "clear" : "arrow"), G = computed(() => t.disabledParent ? y.value : y.value.map((J) => ({
|
|
10758
|
+
...J,
|
|
10759
10759
|
disabled: !1
|
|
10760
10760
|
})));
|
|
10761
|
-
function
|
|
10762
|
-
|
|
10761
|
+
function oe(J) {
|
|
10762
|
+
h.value = J;
|
|
10763
10763
|
}
|
|
10764
|
-
function
|
|
10764
|
+
function I() {
|
|
10765
10765
|
if (!A.value) {
|
|
10766
|
-
|
|
10766
|
+
oe({
|
|
10767
10767
|
text: "",
|
|
10768
10768
|
showDefaultTag: !1
|
|
10769
10769
|
});
|
|
10770
10770
|
return;
|
|
10771
10771
|
}
|
|
10772
|
-
const
|
|
10773
|
-
|
|
10774
|
-
text:
|
|
10775
|
-
showDefaultTag:
|
|
10772
|
+
const J = $(A.value, t.parentToDefault);
|
|
10773
|
+
J.text && oe({
|
|
10774
|
+
text: J.text,
|
|
10775
|
+
showDefaultTag: J.showDefaultTag ?? !1
|
|
10776
10776
|
});
|
|
10777
10777
|
}
|
|
10778
|
-
function
|
|
10779
|
-
g.value =
|
|
10778
|
+
function X() {
|
|
10779
|
+
g.value = G.value.filter((J) => !J.isLoadMore).map((J) => J.key);
|
|
10780
10780
|
}
|
|
10781
|
-
async function
|
|
10781
|
+
async function se() {
|
|
10782
10782
|
if (!A.value) {
|
|
10783
|
-
|
|
10783
|
+
oe({
|
|
10784
10784
|
text: "",
|
|
10785
10785
|
showDefaultTag: !1
|
|
10786
10786
|
});
|
|
10787
10787
|
return;
|
|
10788
10788
|
}
|
|
10789
|
-
const
|
|
10790
|
-
if (
|
|
10791
|
-
|
|
10789
|
+
const J = await F(A.value, t.pageSize, t.parentToDefault);
|
|
10790
|
+
if (J === null || J === void 0 ? void 0 : J.text) {
|
|
10791
|
+
oe(J);
|
|
10792
10792
|
return;
|
|
10793
10793
|
}
|
|
10794
|
-
|
|
10794
|
+
I();
|
|
10795
10795
|
}
|
|
10796
|
-
async function
|
|
10796
|
+
async function fe(J = !0) {
|
|
10797
10797
|
f.value = !0;
|
|
10798
10798
|
try {
|
|
10799
|
-
|
|
10799
|
+
J && (M.value = 1), await m({
|
|
10800
10800
|
pageNo: M.value,
|
|
10801
10801
|
pageSize: t.pageSize,
|
|
10802
|
-
keyword: t.showSearch &&
|
|
10803
|
-
}),
|
|
10802
|
+
keyword: t.showSearch && c.value || void 0
|
|
10803
|
+
}), J && X(), I();
|
|
10804
10804
|
} finally {
|
|
10805
10805
|
f.value = !1;
|
|
10806
10806
|
}
|
|
10807
10807
|
}
|
|
10808
|
-
const
|
|
10809
|
-
|
|
10808
|
+
const ce = debounce(() => {
|
|
10809
|
+
c.value = C.value.trim(), fe(!0);
|
|
10810
10810
|
}, 300);
|
|
10811
10811
|
function Q() {
|
|
10812
10812
|
if (!n.value) return;
|
|
10813
|
-
const
|
|
10813
|
+
const J = n.value.getBoundingClientRect(), ne = t.popperWidth ?? J.width;
|
|
10814
10814
|
_.value = {
|
|
10815
10815
|
position: "fixed",
|
|
10816
|
-
top: `${
|
|
10817
|
-
left: `${
|
|
10818
|
-
width: `${
|
|
10816
|
+
top: `${J.bottom + 4}px`,
|
|
10817
|
+
left: `${J.left}px`,
|
|
10818
|
+
width: `${ne}px`,
|
|
10819
10819
|
zIndex: "2147483647"
|
|
10820
10820
|
};
|
|
10821
10821
|
}
|
|
10822
|
-
async function
|
|
10823
|
-
const { forceRefresh:
|
|
10824
|
-
if (
|
|
10825
|
-
await
|
|
10822
|
+
async function Oe(J = {}) {
|
|
10823
|
+
const { forceRefresh: ne = !1 } = J;
|
|
10824
|
+
if (c.value) {
|
|
10825
|
+
await fe(!0), await R(A.value), I();
|
|
10826
10826
|
return;
|
|
10827
10827
|
}
|
|
10828
|
-
if (
|
|
10829
|
-
O(), await
|
|
10828
|
+
if (ne) {
|
|
10829
|
+
O(), await fe(!0), await R(A.value), I();
|
|
10830
10830
|
return;
|
|
10831
10831
|
}
|
|
10832
|
-
if (!
|
|
10833
|
-
await
|
|
10832
|
+
if (!y.value.length) {
|
|
10833
|
+
await fe(!0), await R(A.value), I();
|
|
10834
10834
|
return;
|
|
10835
10835
|
}
|
|
10836
|
-
|
|
10836
|
+
X(), I(), await R(A.value), I();
|
|
10837
10837
|
}
|
|
10838
|
-
async function
|
|
10838
|
+
async function re() {
|
|
10839
10839
|
var _l$value8;
|
|
10840
|
-
t.disabled || (Q(),
|
|
10840
|
+
t.disabled || (Q(), u.value = !0, C.value = "", c.value = "", await Oe({ forceRefresh: !0 }), await nextTick(), (_l$value8 = l.value) === null || _l$value8 === void 0 || _l$value8.focus());
|
|
10841
10841
|
}
|
|
10842
|
-
function
|
|
10843
|
-
|
|
10842
|
+
function $e() {
|
|
10843
|
+
ce.cancel(), u.value = !1, C.value = "", c.value = "";
|
|
10844
10844
|
}
|
|
10845
|
-
function
|
|
10846
|
-
t.disabled ||
|
|
10845
|
+
function kt() {
|
|
10846
|
+
t.disabled || u.value || re();
|
|
10847
10847
|
}
|
|
10848
|
-
function j(
|
|
10849
|
-
|
|
10848
|
+
function j(J) {
|
|
10849
|
+
C.value = J.target.value, ce();
|
|
10850
10850
|
}
|
|
10851
|
-
function
|
|
10852
|
-
|
|
10851
|
+
function Y() {
|
|
10852
|
+
ge(), $e();
|
|
10853
10853
|
}
|
|
10854
|
-
function
|
|
10854
|
+
function ye(J) {
|
|
10855
10855
|
var _n$value2, _s$value2;
|
|
10856
|
-
if (!
|
|
10857
|
-
const
|
|
10858
|
-
(_n$value2 = n.value) !== null && _n$value2 !== void 0 && _n$value2.contains(
|
|
10856
|
+
if (!u.value) return;
|
|
10857
|
+
const ne = J.target;
|
|
10858
|
+
(_n$value2 = n.value) !== null && _n$value2 !== void 0 && _n$value2.contains(ne) || (_s$value2 = s.value) !== null && _s$value2 !== void 0 && _s$value2.contains(ne) || $e();
|
|
10859
10859
|
}
|
|
10860
10860
|
function Ce() {
|
|
10861
|
-
|
|
10861
|
+
u.value && Q();
|
|
10862
10862
|
}
|
|
10863
|
-
async function
|
|
10864
|
-
|
|
10863
|
+
async function he() {
|
|
10864
|
+
i.value = !0, await Oe();
|
|
10865
10865
|
}
|
|
10866
|
-
function
|
|
10867
|
-
|
|
10866
|
+
function Te() {
|
|
10867
|
+
i.value = !1;
|
|
10868
10868
|
}
|
|
10869
|
-
async function
|
|
10870
|
-
M.value += 1, await
|
|
10869
|
+
async function Be() {
|
|
10870
|
+
M.value += 1, await fe(!1);
|
|
10871
10871
|
}
|
|
10872
|
-
function
|
|
10873
|
-
const
|
|
10874
|
-
|
|
10872
|
+
function lt(J) {
|
|
10873
|
+
const ne = new Set(g.value);
|
|
10874
|
+
ne.has(J) ? ne.delete(J) : ne.add(J), g.value = Array.from(ne);
|
|
10875
10875
|
}
|
|
10876
|
-
function
|
|
10877
|
-
var
|
|
10878
|
-
const
|
|
10879
|
-
return t.parentToDefault && !be && ((
|
|
10876
|
+
function Ct(J) {
|
|
10877
|
+
var _J$_info;
|
|
10878
|
+
const ne = String(J.rawValue ?? J.key), [, be] = ne.split(":");
|
|
10879
|
+
return t.parentToDefault && !be && ((_J$_info = J._info) === null || _J$_info === void 0 ? void 0 : _J$_info.id_) ? `${ne}:${J._info.id_}` : ne;
|
|
10880
10880
|
}
|
|
10881
|
-
function
|
|
10881
|
+
function vt(J) {
|
|
10882
10882
|
var _d$value, _d$value$hide;
|
|
10883
|
-
if (
|
|
10884
|
-
|
|
10883
|
+
if (J.isLoadMore) {
|
|
10884
|
+
Be();
|
|
10885
10885
|
return;
|
|
10886
10886
|
}
|
|
10887
|
-
if (
|
|
10888
|
-
const
|
|
10889
|
-
if (!
|
|
10890
|
-
const be =
|
|
10891
|
-
|
|
10887
|
+
if (J.disabled && t.disabledParent) return;
|
|
10888
|
+
const ne = Ct(J);
|
|
10889
|
+
if (!ne.includes(":") && t.disabledParent) return;
|
|
10890
|
+
const be = or(ne, J, T, V, t.parentToDefault);
|
|
10891
|
+
oe(be), a("update:modelValue", ne), a("update:fullPathValue", ne), a("change", ne, J, be), t.showSearch ? $e() : (_d$value = d.value) === null || _d$value === void 0 || (_d$value$hide = _d$value.hide) === null || _d$value$hide === void 0 || _d$value$hide.call(_d$value);
|
|
10892
10892
|
}
|
|
10893
|
-
function
|
|
10894
|
-
|
|
10893
|
+
function ge() {
|
|
10894
|
+
ce.cancel(), C.value = "", c.value = "", oe({
|
|
10895
10895
|
text: "",
|
|
10896
10896
|
showDefaultTag: !1
|
|
10897
10897
|
}), a("update:modelValue", null), a("update:fullPathValue", null), a("change", null);
|
|
10898
10898
|
}
|
|
10899
|
-
return watch(() => t.modelValue, (
|
|
10900
|
-
if (!
|
|
10901
|
-
|
|
10899
|
+
return watch(() => t.modelValue, (J) => {
|
|
10900
|
+
if (!J) {
|
|
10901
|
+
oe({
|
|
10902
10902
|
text: "",
|
|
10903
10903
|
showDefaultTag: !1
|
|
10904
|
-
}),
|
|
10904
|
+
}), C.value = "";
|
|
10905
10905
|
return;
|
|
10906
10906
|
}
|
|
10907
|
-
(t.showSearch ?
|
|
10907
|
+
(t.showSearch ? u.value : i.value) || se();
|
|
10908
10908
|
}), onMounted(() => {
|
|
10909
|
-
A.value &&
|
|
10909
|
+
A.value && se(), t.showSearch && (document.addEventListener("click", ye, !0), window.addEventListener("resize", Ce), window.addEventListener("scroll", Ce, !0));
|
|
10910
10910
|
}), onBeforeUnmount(() => {
|
|
10911
|
-
t.showSearch && (document.removeEventListener("click",
|
|
10912
|
-
}), (
|
|
10911
|
+
t.showSearch && (document.removeEventListener("click", ye, !0), window.removeEventListener("resize", Ce), window.removeEventListener("scroll", Ce, !0));
|
|
10912
|
+
}), (J, ne) => e.showSearch ? (openBlock(), createElementBlock("div", {
|
|
10913
10913
|
key: 0,
|
|
10914
10914
|
ref_key: "rootRef",
|
|
10915
10915
|
ref: n,
|
|
10916
10916
|
class: normalizeClass(["rdo-tree-select rdo-tree-select--searchable", { disabled: e.disabled }])
|
|
10917
10917
|
}, [createElementVNode("div", {
|
|
10918
|
-
class: normalizeClass(["rdo-tree-select__trigger rdo-tree-select__trigger--searchable", { open:
|
|
10919
|
-
onClick:
|
|
10920
|
-
onMouseenter:
|
|
10921
|
-
onMouseleave:
|
|
10922
|
-
}, [createElementVNode("div", { class: normalizeClass(["rdo-tree-select__field", { "is-open":
|
|
10918
|
+
class: normalizeClass(["rdo-tree-select__trigger rdo-tree-select__trigger--searchable", { open: u.value }]),
|
|
10919
|
+
onClick: kt,
|
|
10920
|
+
onMouseenter: ne[1] || (ne[1] = (be) => k.value = !0),
|
|
10921
|
+
onMouseleave: ne[2] || (ne[2] = (be) => k.value = !1)
|
|
10922
|
+
}, [createElementVNode("div", { class: normalizeClass(["rdo-tree-select__field", { "is-open": u.value }]) }, [u.value ? (openBlock(), createElementBlock("div", kr, [S.value && !C.value ? (openBlock(), createElementBlock("div", Cr, [createElementVNode("span", xr, toDisplayString(S.value), 1), h.value.showDefaultTag ? (openBlock(), createElementBlock("span", Sr, "默认")) : createCommentVNode("", !0)])) : createCommentVNode("", !0), createElementVNode("input", {
|
|
10923
10923
|
ref_key: "inputRef",
|
|
10924
10924
|
ref: l,
|
|
10925
|
-
class: normalizeClass(["rdo-tree-select__input", { "has-mirror": !!
|
|
10925
|
+
class: normalizeClass(["rdo-tree-select__input", { "has-mirror": !!S.value && !C.value }]),
|
|
10926
10926
|
type: "text",
|
|
10927
|
-
value:
|
|
10928
|
-
placeholder:
|
|
10927
|
+
value: C.value,
|
|
10928
|
+
placeholder: S.value ? "" : e.placeholder,
|
|
10929
10929
|
disabled: e.disabled,
|
|
10930
10930
|
onInput: j,
|
|
10931
|
-
onKeydown: [withKeys(withModifiers(
|
|
10932
|
-
}, null, 42,
|
|
10931
|
+
onKeydown: [withKeys(withModifiers($e, ["stop"]), ["esc"]), withKeys($e, ["tab"])]
|
|
10932
|
+
}, null, 42, Mr)])) : (openBlock(), createElementBlock("span", Rr, [createElementVNode("span", { class: normalizeClass(["rdo-tree-select__value-text", { "is-placeholder": !S.value }]) }, toDisplayString(S.value || e.placeholder), 3), h.value.showDefaultTag ? (openBlock(), createElementBlock("span", Ar, "默认")) : createCommentVNode("", !0)]))], 2), L.value === "clear" ? (openBlock(), createElementBlock("span", {
|
|
10933
10933
|
key: 0,
|
|
10934
10934
|
class: "rdo-tree-select__clear",
|
|
10935
|
-
onMousedown:
|
|
10936
|
-
onClick: withModifiers(
|
|
10935
|
+
onMousedown: ne[0] || (ne[0] = withModifiers(() => {}, ["prevent"])),
|
|
10936
|
+
onClick: withModifiers(Y, ["stop"])
|
|
10937
10937
|
}, [createVNode(unref(ae), {
|
|
10938
10938
|
icon: "icon-cuowu2",
|
|
10939
10939
|
color: "rgba(0, 0, 0, 0.25)",
|
|
10940
10940
|
size: "14"
|
|
10941
|
-
})], 32)) :
|
|
10941
|
+
})], 32)) : L.value === "search" ? (openBlock(), createElementBlock("span", Or, [createVNode(unref(ae), {
|
|
10942
10942
|
icon: "icon-sousuo",
|
|
10943
10943
|
color: "rgba(0, 0, 0, 0.45)",
|
|
10944
10944
|
size: "14"
|
|
10945
|
-
})])) : (openBlock(), createElementBlock("span",
|
|
10945
|
+
})])) : (openBlock(), createElementBlock("span", Tr, [createVNode(unref(ae), {
|
|
10946
10946
|
icon: "icon-arrow_zhankai",
|
|
10947
10947
|
color: "#6b6b6b",
|
|
10948
10948
|
version: "v2"
|
|
10949
|
-
})]))], 34), (openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
10949
|
+
})]))], 34), (openBlock(), createBlock(Teleport, { to: "body" }, [u.value ? (openBlock(), createElementBlock("div", {
|
|
10950
10950
|
key: 0,
|
|
10951
10951
|
ref_key: "searchDropdownRef",
|
|
10952
10952
|
ref: s,
|
|
10953
10953
|
class: "rdo-tree-select__dropdown",
|
|
10954
10954
|
style: normalizeStyle(_.value),
|
|
10955
|
-
onMousedown:
|
|
10955
|
+
onMousedown: ne[3] || (ne[3] = withModifiers(() => {}, ["prevent"]))
|
|
10956
10956
|
}, [createVNode(oa, {
|
|
10957
|
-
"display-tree-data":
|
|
10957
|
+
"display-tree-data": G.value,
|
|
10958
10958
|
"expanded-keys": g.value,
|
|
10959
10959
|
"inner-value": A.value,
|
|
10960
10960
|
loading: f.value,
|
|
10961
10961
|
"disabled-parent": e.disabledParent,
|
|
10962
10962
|
"parent-to-default": e.parentToDefault,
|
|
10963
|
-
"empty-text":
|
|
10964
|
-
onToggle:
|
|
10965
|
-
onSelect:
|
|
10966
|
-
onLoadMore:
|
|
10963
|
+
"empty-text": c.value ? "暂无搜索" : "暂无数据",
|
|
10964
|
+
onToggle: lt,
|
|
10965
|
+
onSelect: vt,
|
|
10966
|
+
onLoadMore: Be
|
|
10967
10967
|
}, null, 8, [
|
|
10968
10968
|
"display-tree-data",
|
|
10969
10969
|
"expanded-keys",
|
|
@@ -10975,28 +10975,28 @@ var init_index_es = __esmMin((() => {
|
|
|
10975
10975
|
])], 36)) : createCommentVNode("", !0)]))], 2)) : (openBlock(), createElementBlock("div", {
|
|
10976
10976
|
key: 1,
|
|
10977
10977
|
class: normalizeClass(["rdo-tree-select", { disabled: e.disabled }])
|
|
10978
|
-
}, [createVNode(unref(
|
|
10978
|
+
}, [createVNode(unref(ot), {
|
|
10979
10979
|
ref_key: "dropdownRef",
|
|
10980
10980
|
ref: d,
|
|
10981
10981
|
distance: 4,
|
|
10982
10982
|
placement: "bottom-start",
|
|
10983
10983
|
disabled: e.disabled,
|
|
10984
|
-
onShow:
|
|
10985
|
-
onHide:
|
|
10984
|
+
onShow: he,
|
|
10985
|
+
onHide: Te
|
|
10986
10986
|
}, {
|
|
10987
10987
|
popper: withCtx(() => [createElementVNode("div", {
|
|
10988
10988
|
class: "rdo-tree-select__popper",
|
|
10989
10989
|
style: normalizeStyle({ width: `${e.popperWidth}px` })
|
|
10990
10990
|
}, [createVNode(oa, {
|
|
10991
|
-
"display-tree-data":
|
|
10991
|
+
"display-tree-data": G.value,
|
|
10992
10992
|
"expanded-keys": g.value,
|
|
10993
10993
|
"inner-value": A.value,
|
|
10994
10994
|
loading: f.value,
|
|
10995
10995
|
"disabled-parent": e.disabledParent,
|
|
10996
10996
|
"parent-to-default": e.parentToDefault,
|
|
10997
|
-
onToggle:
|
|
10998
|
-
onSelect:
|
|
10999
|
-
onLoadMore:
|
|
10997
|
+
onToggle: lt,
|
|
10998
|
+
onSelect: vt,
|
|
10999
|
+
onLoadMore: Be
|
|
11000
11000
|
}, null, 8, [
|
|
11001
11001
|
"display-tree-data",
|
|
11002
11002
|
"expanded-keys",
|
|
@@ -11006,25 +11006,25 @@ var init_index_es = __esmMin((() => {
|
|
|
11006
11006
|
"parent-to-default"
|
|
11007
11007
|
])], 4)]),
|
|
11008
11008
|
default: withCtx(() => [createElementVNode("div", {
|
|
11009
|
-
class: normalizeClass(["rdo-tree-select__trigger", { active:
|
|
11010
|
-
onMouseenter:
|
|
11011
|
-
onMouseleave:
|
|
11012
|
-
}, [
|
|
11009
|
+
class: normalizeClass(["rdo-tree-select__trigger", { active: i.value }]),
|
|
11010
|
+
onMouseenter: ne[5] || (ne[5] = (be) => k.value = !0),
|
|
11011
|
+
onMouseleave: ne[6] || (ne[6] = (be) => k.value = !1)
|
|
11012
|
+
}, [h.value.text ? (openBlock(), createElementBlock("span", {
|
|
11013
11013
|
key: 0,
|
|
11014
11014
|
class: "rdo-tree-select__value",
|
|
11015
|
-
title:
|
|
11016
|
-
}, [createElementVNode("span",
|
|
11015
|
+
title: h.value.text
|
|
11016
|
+
}, [createElementVNode("span", Vr, toDisplayString(h.value.text), 1), h.value.showDefaultTag ? (openBlock(), createElementBlock("span", Lr, "默认")) : createCommentVNode("", !0)], 8, qr)) : (openBlock(), createElementBlock("span", $r, toDisplayString(e.placeholder), 1)), U.value === "clear" ? (openBlock(), createElementBlock("span", {
|
|
11017
11017
|
key: 2,
|
|
11018
11018
|
class: "rdo-tree-select__clear",
|
|
11019
|
-
onMousedown:
|
|
11020
|
-
onClick: withModifiers(
|
|
11019
|
+
onMousedown: ne[4] || (ne[4] = withModifiers(() => {}, ["prevent"])),
|
|
11020
|
+
onClick: withModifiers(ge, ["stop"])
|
|
11021
11021
|
}, [createVNode(unref(ae), {
|
|
11022
11022
|
icon: "icon-cuowu2",
|
|
11023
11023
|
color: "rgba(0, 0, 0, 0.25)",
|
|
11024
11024
|
size: "14"
|
|
11025
11025
|
})], 32)) : (openBlock(), createElementBlock("span", {
|
|
11026
11026
|
key: 3,
|
|
11027
|
-
class: normalizeClass(["rdo-tree-select__suffix-icon", { active:
|
|
11027
|
+
class: normalizeClass(["rdo-tree-select__suffix-icon", { active: i.value }])
|
|
11028
11028
|
}, [createVNode(unref(ae), {
|
|
11029
11029
|
icon: "icon-arrow_zhankai",
|
|
11030
11030
|
color: "#6b6b6b",
|
|
@@ -11034,11 +11034,11 @@ var init_index_es = __esmMin((() => {
|
|
|
11034
11034
|
}, 8, ["disabled"])], 2));
|
|
11035
11035
|
}
|
|
11036
11036
|
}), [["__scopeId", "data-v-a25fa33d"]]);
|
|
11037
|
-
|
|
11038
|
-
|
|
11039
|
-
|
|
11040
|
-
|
|
11041
|
-
|
|
11037
|
+
wi = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M7.99992%2014.1048C9.68573%2014.1048%2011.212%2013.4215%2012.3167%2012.3167C13.4215%2011.212%2014.1048%209.68573%2014.1048%207.99992C14.1048%206.31411%2013.4215%204.78789%2012.3167%203.6831C11.212%202.57833%209.68573%201.89502%207.99992%201.89502C6.31411%201.89502%204.78789%202.57833%203.6831%203.6831C2.57833%204.78789%201.89502%206.31411%201.89502%207.99992C1.89502%209.68573%202.57833%2011.212%203.6831%2012.3167C4.78789%2013.4215%206.31411%2014.1048%207.99992%2014.1048Z'%20stroke='%23A6A6A6'%20stroke-width='1.2'%20stroke-linejoin='round'/%3e%3cpath%20d='M7.99993%209.45338V8.54954C9.01142%208.54954%209.8314%207.72956%209.8314%206.71807C9.8314%205.70658%209.01142%204.8866%207.99993%204.8866C6.98844%204.8866%206.16846%205.70658%206.16846%206.71807'%20stroke='%23A6A6A6'%20stroke-width='1.2'%20stroke-linejoin='round'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M7.99993%2011.5063C8.42138%2011.5063%208.76304%2011.1647%208.76304%2010.7432C8.76304%2010.3218%208.42138%209.9801%207.99993%209.9801C7.57848%209.9801%207.23682%2010.3218%207.23682%2010.7432C7.23682%2011.1647%207.57848%2011.5063%207.99993%2011.5063Z'%20fill='%23A6A6A6'/%3e%3c/svg%3e";
|
|
11038
|
+
ki = ["innerHTML"];
|
|
11039
|
+
Ci = { class: "gct-form-base-common-help" };
|
|
11040
|
+
xi = ["src"];
|
|
11041
|
+
Vt = /* @__PURE__ */ Z$1(/* @__PURE__ */ defineComponent({
|
|
11042
11042
|
__name: "Help",
|
|
11043
11043
|
props: { info: {} },
|
|
11044
11044
|
setup(e) {
|
|
@@ -11052,20 +11052,20 @@ var init_index_es = __esmMin((() => {
|
|
|
11052
11052
|
},
|
|
11053
11053
|
innerHTML: e.info.replaceAll(`
|
|
11054
11054
|
`, "<br>")
|
|
11055
|
-
}, null, 8,
|
|
11056
|
-
default: withCtx(() => [createElementVNode("div",
|
|
11055
|
+
}, null, 8, ki)]),
|
|
11056
|
+
default: withCtx(() => [createElementVNode("div", Ci, [createElementVNode("img", { src: unref(wi) }, null, 8, xi)])]),
|
|
11057
11057
|
_: 1
|
|
11058
11058
|
});
|
|
11059
11059
|
};
|
|
11060
11060
|
}
|
|
11061
11061
|
}), [["__scopeId", "data-v-202c135e"]]);
|
|
11062
|
-
|
|
11063
|
-
|
|
11064
|
-
|
|
11062
|
+
Mi = { class: "gct-form-base-common-title" };
|
|
11063
|
+
Ri = { class: "gct-form-base-common-title__content" };
|
|
11064
|
+
Ai = {
|
|
11065
11065
|
key: 0,
|
|
11066
11066
|
class: "gct-form-base-common-title__description"
|
|
11067
11067
|
};
|
|
11068
|
-
|
|
11068
|
+
Oi = {
|
|
11069
11069
|
key: 0,
|
|
11070
11070
|
class: "gct-form-base-common-title__right"
|
|
11071
11071
|
};
|
|
@@ -11073,18 +11073,18 @@ var init_index_es = __esmMin((() => {
|
|
|
11073
11073
|
__name: "Title",
|
|
11074
11074
|
props: { description: {} },
|
|
11075
11075
|
setup(e) {
|
|
11076
|
-
return (o, t) => (openBlock(), createElementBlock("div",
|
|
11076
|
+
return (o, t) => (openBlock(), createElementBlock("div", Mi, [createElementVNode("div", Ri, [renderSlot(o.$slots, "default", {}, void 0, !0), e.description ? (openBlock(), createElementBlock("span", Ai, toDisplayString(e.description), 1)) : createCommentVNode("", !0)]), o.$slots.right ? (openBlock(), createElementBlock("div", Oi, [renderSlot(o.$slots, "right", {}, void 0, !0)])) : createCommentVNode("", !0)]));
|
|
11077
11077
|
}
|
|
11078
11078
|
}), [["__scopeId", "data-v-8aa5da31"]]);
|
|
11079
11079
|
Bt = /* @__PURE__ */ ((e) => (e.Lot = "lot", e.UniqueCode = "uniqueCode", e))(Bt || {});
|
|
11080
|
-
|
|
11081
|
-
|
|
11082
|
-
|
|
11083
|
-
|
|
11084
|
-
|
|
11085
|
-
|
|
11086
|
-
|
|
11087
|
-
|
|
11080
|
+
Xd = "data:image/svg+xml,%3csvg%20width='1em'%20height='1em'%20fill='currentColor'%20aria-hidden='true'%20viewBox='64%2064%20896%20896'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M290%20236.4l43.9-43.9a8.01%208.01%200%2000-4.7-13.6L169%20160c-5.1-.6-9.5%203.7-8.9%208.9L179%20329.1c.8%206.6%208.9%209.4%2013.6%204.7l43.7-43.7L370%20423.7c3.1%203.1%208.2%203.1%2011.3%200l42.4-42.3c3.1-3.1%203.1-8.2%200-11.3L290%20236.4zm352.7%20187.3c3.1%203.1%208.2%203.1%2011.3%200l133.7-133.6%2043.7%2043.7a8.01%208.01%200%200013.6-4.7L863.9%20169c.6-5.1-3.7-9.5-8.9-8.9L694.8%20179c-6.6.8-9.4%208.9-4.7%2013.6l43.9%2043.9L600.3%20370a8.03%208.03%200%20000%2011.3l42.4%2042.4zM845%20694.9c-.8-6.6-8.9-9.4-13.6-4.7l-43.7%2043.7L654%20600.3a8.03%208.03%200%2000-11.3%200l-42.4%2042.3a8.03%208.03%200%20000%2011.3L734%20787.6l-43.9%2043.9a8.01%208.01%200%20004.7%2013.6L855%20864c5.1.6%209.5-3.7%208.9-8.9L845%20694.9zm-463.7-94.6a8.03%208.03%200%2000-11.3%200L236.3%20733.9l-43.7-43.7a8.01%208.01%200%2000-13.6%204.7L160.1%20855c-.6%205.1%203.7%209.5%208.9%208.9L329.2%20845c6.6-.8%209.4-8.9%204.7-13.6L290%20787.6%20423.7%20654c3.1-3.1%203.1-8.2%200-11.3l-42.4-42.4z'%3e%3c/path%3e%3c/svg%3e";
|
|
11081
|
+
Jd = "data:image/svg+xml,%3csvg%20width='1em'%20height='1em'%20fill='currentColor'%20aria-hidden='true'%20viewBox='64%2064%20896%20896'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M391%20240.9c-.8-6.6-8.9-9.4-13.6-4.7l-43.7%2043.7L200%20146.3a8.03%208.03%200%2000-11.3%200l-42.4%2042.3a8.03%208.03%200%20000%2011.3L280%20333.6l-43.9%2043.9a8.01%208.01%200%20004.7%2013.6L401%20410c5.1.6%209.5-3.7%208.9-8.9L391%20240.9zm10.1%20373.2L240.8%20633c-6.6.8-9.4%208.9-4.7%2013.6l43.9%2043.9L146.3%20824a8.03%208.03%200%20000%2011.3l42.4%2042.3c3.1%203.1%208.2%203.1%2011.3%200L333.7%20744l43.7%2043.7A8.01%208.01%200%2000391%20783l18.9-160.1c.6-5.1-3.7-9.4-8.8-8.8zm221.8-204.2L783.2%20391c6.6-.8%209.4-8.9%204.7-13.6L744%20333.6%20877.7%20200c3.1-3.1%203.1-8.2%200-11.3l-42.4-42.3a8.03%208.03%200%2000-11.3%200L690.3%20279.9l-43.7-43.7a8.01%208.01%200%2000-13.6%204.7L614.1%20401c-.6%205.2%203.7%209.5%208.8%208.9zM744%20690.4l43.9-43.9a8.01%208.01%200%2000-4.7-13.6L623%20614c-5.1-.6-9.5%203.7-8.9%208.9L633%20783.1c.8%206.6%208.9%209.4%2013.6%204.7l43.7-43.7L824%20877.7c3.1%203.1%208.2%203.1%2011.3%200l42.4-42.3c3.1-3.1%203.1-8.2%200-11.3L744%20690.4z'%3e%3c/path%3e%3c/svg%3e";
|
|
11082
|
+
Qd = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M5%2010.6001C5.55228%2010.6001%206%2011.0478%206%2011.6001C5.99987%2012.1523%205.5522%2012.6001%205%2012.6001C4.4478%2012.6001%204.00013%2012.1523%204%2011.6001C4%2011.0478%204.44772%2010.6001%205%2010.6001ZM9%2010.6001C9.55228%2010.6001%2010%2011.0478%2010%2011.6001C9.99987%2012.1523%209.5522%2012.6001%209%2012.6001C8.4478%2012.6001%208.00013%2012.1523%208%2011.6001C8%2011.0478%208.44772%2010.6001%209%2010.6001ZM5%205.99951C5.55216%205.99951%205.9998%206.4474%206%206.99951C6%207.5518%205.55228%207.99951%205%207.99951C4.44772%207.99951%204%207.5518%204%206.99951C4.0002%206.4474%204.44784%205.99951%205%205.99951ZM9%205.99951C9.55216%205.99951%209.9998%206.4474%2010%206.99951C10%207.5518%209.55228%207.99951%209%207.99951C8.44772%207.99951%208%207.5518%208%206.99951C8.0002%206.4474%208.44784%205.99951%209%205.99951ZM5%201.3999C5.55228%201.3999%206%201.84762%206%202.3999C6%202.95219%205.55228%203.3999%205%203.3999C4.44772%203.3999%204%202.95219%204%202.3999C4%201.84762%204.44772%201.3999%205%201.3999ZM9%201.3999C9.55228%201.3999%2010%201.84762%2010%202.3999C10%202.95219%209.55228%203.3999%209%203.3999C8.44772%203.3999%208%202.95219%208%202.3999C8%201.84762%208.44772%201.3999%209%201.3999Z'%20fill='%238B8B8B'/%3e%3c/svg%3e";
|
|
11083
|
+
Yd = { class: "form-base-modal__title" };
|
|
11084
|
+
e2 = ["src"];
|
|
11085
|
+
t2 = ["title"];
|
|
11086
|
+
a2 = ["src"];
|
|
11087
|
+
mt = /* @__PURE__ */ defineComponent({
|
|
11088
11088
|
inheritAttrs: !1,
|
|
11089
11089
|
__name: "modal-wrapper",
|
|
11090
11090
|
props: {
|
|
@@ -11134,14 +11134,14 @@ var init_index_es = __esmMin((() => {
|
|
|
11134
11134
|
x: 0,
|
|
11135
11135
|
y: 0
|
|
11136
11136
|
});
|
|
11137
|
-
let d = 0,
|
|
11137
|
+
let d = 0, u = 0, i = 0, k = 0;
|
|
11138
11138
|
const _ = computed(() => [
|
|
11139
11139
|
"gct-form-base-modal",
|
|
11140
11140
|
n.wrapClassName,
|
|
11141
11141
|
t.mask ? "" : "gct-form-base-modal--maskless",
|
|
11142
11142
|
l.value ? "gct-form-base-modal--fullscreen" : ""
|
|
11143
11143
|
].filter(Boolean).join(" ")), f = computed(() => {
|
|
11144
|
-
const { title:
|
|
11144
|
+
const { title: m, wrapClassName: R, ...$ } = n;
|
|
11145
11145
|
return $;
|
|
11146
11146
|
}), g = computed(() => {
|
|
11147
11147
|
if (!(!t.draggable || l.value) && !(s.x === 0 && s.y === 0)) return { transform: `translate(${s.x}px, ${s.y}px)` };
|
|
@@ -11149,18 +11149,18 @@ var init_index_es = __esmMin((() => {
|
|
|
11149
11149
|
function M() {
|
|
11150
11150
|
s.x = 0, s.y = 0;
|
|
11151
11151
|
}
|
|
11152
|
-
function
|
|
11152
|
+
function C() {
|
|
11153
11153
|
t.fullscreen && (l.value = !l.value, M());
|
|
11154
11154
|
}
|
|
11155
|
-
function
|
|
11156
|
-
s.x =
|
|
11155
|
+
function c(m) {
|
|
11156
|
+
s.x = i + m.clientX - d, s.y = k + m.clientY - u;
|
|
11157
11157
|
}
|
|
11158
|
-
function
|
|
11159
|
-
document.removeEventListener("mousemove",
|
|
11158
|
+
function h() {
|
|
11159
|
+
document.removeEventListener("mousemove", c), document.removeEventListener("mouseup", h);
|
|
11160
11160
|
}
|
|
11161
|
-
function
|
|
11162
|
-
if (!t.draggable || l.value ||
|
|
11163
|
-
const R =
|
|
11161
|
+
function y(m) {
|
|
11162
|
+
if (!t.draggable || l.value || m.button !== 0) return;
|
|
11163
|
+
const R = m.target;
|
|
11164
11164
|
R.closest(".ant-modal-header") && (R.closest([
|
|
11165
11165
|
"button",
|
|
11166
11166
|
"a",
|
|
@@ -11168,15 +11168,15 @@ var init_index_es = __esmMin((() => {
|
|
|
11168
11168
|
"textarea",
|
|
11169
11169
|
"select",
|
|
11170
11170
|
"[role=\"button\"]"
|
|
11171
|
-
].join(",")) || (d =
|
|
11171
|
+
].join(",")) || (d = m.clientX, u = m.clientY, i = s.x, k = s.y, document.addEventListener("mousemove", c), document.addEventListener("mouseup", h), m.preventDefault()));
|
|
11172
11172
|
}
|
|
11173
|
-
return watch(() => t.fullscreen, (
|
|
11174
|
-
|
|
11175
|
-
}), watch(() => t.visible, (
|
|
11176
|
-
|
|
11173
|
+
return watch(() => t.fullscreen, (m) => {
|
|
11174
|
+
m || (l.value = !1, M());
|
|
11175
|
+
}), watch(() => t.visible, (m) => {
|
|
11176
|
+
m && (l.value = !1, M());
|
|
11177
11177
|
}), onBeforeUnmount(() => {
|
|
11178
|
-
|
|
11179
|
-
}), (
|
|
11178
|
+
h();
|
|
11179
|
+
}), (m, R) => (openBlock(), createBlock(unref(Modal), mergeProps({
|
|
11180
11180
|
centered: "",
|
|
11181
11181
|
"ok-text": "确定",
|
|
11182
11182
|
"cancel-text": "取消",
|
|
@@ -11189,35 +11189,35 @@ var init_index_es = __esmMin((() => {
|
|
|
11189
11189
|
onOk: R[2] || (R[2] = ($) => a("ok", $)),
|
|
11190
11190
|
onAfterClose: R[3] || (R[3] = ($) => a("afterClose"))
|
|
11191
11191
|
}), createSlots({
|
|
11192
|
-
title: withCtx(() => [createElementVNode("div",
|
|
11192
|
+
title: withCtx(() => [createElementVNode("div", Yd, [
|
|
11193
11193
|
e.draggable ? (openBlock(), createElementBlock("img", {
|
|
11194
11194
|
key: 0,
|
|
11195
|
-
src: unref(
|
|
11195
|
+
src: unref(Qd),
|
|
11196
11196
|
class: "title-draggable"
|
|
11197
|
-
}, null, 8,
|
|
11198
|
-
renderSlot(
|
|
11197
|
+
}, null, 8, e2)) : createCommentVNode("", !0),
|
|
11198
|
+
renderSlot(m.$slots, "title", {}, () => [createTextVNode(toDisplayString(unref(n).title), 1)]),
|
|
11199
11199
|
e.fullscreen ? (openBlock(), createElementBlock("button", {
|
|
11200
11200
|
key: 1,
|
|
11201
11201
|
type: "button",
|
|
11202
11202
|
class: "form-base-modal__fullscreen",
|
|
11203
11203
|
title: l.value ? "退出全屏" : "全屏",
|
|
11204
11204
|
onMousedown: R[0] || (R[0] = withModifiers(() => {}, ["stop"])),
|
|
11205
|
-
onClick: withModifiers(
|
|
11205
|
+
onClick: withModifiers(C, ["stop"])
|
|
11206
11206
|
}, [createElementVNode("img", {
|
|
11207
|
-
src: l.value ? unref(
|
|
11207
|
+
src: l.value ? unref(Jd) : unref(Xd),
|
|
11208
11208
|
alt: ""
|
|
11209
|
-
}, null, 8,
|
|
11209
|
+
}, null, 8, a2)], 40, t2)) : createCommentVNode("", !0)
|
|
11210
11210
|
])]),
|
|
11211
11211
|
modalRender: withCtx(({ originVNode: $ }) => [createElementVNode("div", {
|
|
11212
11212
|
class: normalizeClass(["form-base-modal__render", { "form-base-modal__render--draggable": e.draggable && !l.value }]),
|
|
11213
11213
|
style: normalizeStyle(g.value),
|
|
11214
|
-
onMousedown:
|
|
11214
|
+
onMousedown: y
|
|
11215
11215
|
}, [(openBlock(), createBlock(resolveDynamicComponent($)))], 38)]),
|
|
11216
|
-
default: withCtx(() => [renderSlot(
|
|
11216
|
+
default: withCtx(() => [renderSlot(m.$slots, "default")]),
|
|
11217
11217
|
_: 2
|
|
11218
|
-
}, [
|
|
11218
|
+
}, [m.$slots.footer ? {
|
|
11219
11219
|
name: "footer",
|
|
11220
|
-
fn: withCtx(() => [renderSlot(
|
|
11220
|
+
fn: withCtx(() => [renderSlot(m.$slots, "footer")]),
|
|
11221
11221
|
key: "0"
|
|
11222
11222
|
} : void 0]), 1040, [
|
|
11223
11223
|
"visible",
|
|
@@ -11231,17 +11231,17 @@ var init_index_es = __esmMin((() => {
|
|
|
11231
11231
|
FIELD_DISPLAY: 1,
|
|
11232
11232
|
ONLINE_FORM_FIELD_FORMULA: 13
|
|
11233
11233
|
};
|
|
11234
|
-
|
|
11235
|
-
|
|
11236
|
-
|
|
11237
|
-
|
|
11234
|
+
n2 = { FIELD: "field" };
|
|
11235
|
+
l2 = { Number: "number" };
|
|
11236
|
+
yt = "entity";
|
|
11237
|
+
s2 = {
|
|
11238
11238
|
key: 0,
|
|
11239
11239
|
class: "consume-policy-item__nested"
|
|
11240
11240
|
};
|
|
11241
|
-
|
|
11242
|
-
|
|
11243
|
-
|
|
11244
|
-
|
|
11241
|
+
r2 = { class: "consume-policy-item__special-header" };
|
|
11242
|
+
i2 = { class: "consume-policy-item__special-title" };
|
|
11243
|
+
u2 = ["onClick"];
|
|
11244
|
+
Za = /* @__PURE__ */ Z$1(/* @__PURE__ */ defineComponent({
|
|
11245
11245
|
__name: "consume-item",
|
|
11246
11246
|
props: {
|
|
11247
11247
|
formState: { required: !0 },
|
|
@@ -11249,98 +11249,98 @@ var init_index_es = __esmMin((() => {
|
|
|
11249
11249
|
},
|
|
11250
11250
|
emits: ["update:formState"],
|
|
11251
11251
|
setup(e) {
|
|
11252
|
-
const o = useModel(e, "formState"), t = ref([]), a = ref([]), n = ref({}), l = ref(!1), s = ref(!1), d = ref(!1),
|
|
11252
|
+
const o = useModel(e, "formState"), t = ref([]), a = ref([]), n = ref({}), l = ref(!1), s = ref(!1), d = ref(!1), u = ref({}), i = ref({});
|
|
11253
11253
|
async function k(j) {
|
|
11254
11254
|
var _j$keyword, _ref;
|
|
11255
|
-
const
|
|
11256
|
-
return
|
|
11257
|
-
modelCategory:
|
|
11255
|
+
const Y = (_j$keyword = j.keyword) === null || _j$keyword === void 0 ? void 0 : _j$keyword.trim(), ye = { ...j.extraQuery ?? {} };
|
|
11256
|
+
return Y && (ye["name_.like"] = Y, ye["code_.like"] = Y), (((_ref = await ie.apaas.modelComprehensive.postBizServiceModelCategoryModelKeyBsKey({
|
|
11257
|
+
modelCategory: yt,
|
|
11258
11258
|
modelKey: j.modelKey,
|
|
11259
11259
|
bsKey: "listByPage"
|
|
11260
11260
|
}, {}, {
|
|
11261
11261
|
pageNo: 1,
|
|
11262
11262
|
pageSize: 99,
|
|
11263
|
-
...
|
|
11263
|
+
...Y ? { exp: "OR(name_.like,code_.like)" } : {},
|
|
11264
11264
|
query: {
|
|
11265
|
-
...
|
|
11265
|
+
...ye,
|
|
11266
11266
|
"operating_state_.eq": !0
|
|
11267
11267
|
}
|
|
11268
|
-
}) || {}) === null || _ref === void 0 ? void 0 : _ref.data) ?? []).map((
|
|
11269
|
-
label:
|
|
11270
|
-
value:
|
|
11268
|
+
}) || {}) === null || _ref === void 0 ? void 0 : _ref.data) ?? []).map((he) => ({
|
|
11269
|
+
label: he.name_ || he.code_,
|
|
11270
|
+
value: he.id_
|
|
11271
11271
|
}));
|
|
11272
11272
|
}
|
|
11273
|
-
async function _(j,
|
|
11273
|
+
async function _(j, Y) {
|
|
11274
11274
|
var _ref2;
|
|
11275
|
-
const
|
|
11276
|
-
return
|
|
11277
|
-
modelCategory:
|
|
11275
|
+
const ye = [...new Set(Y.filter(Boolean))];
|
|
11276
|
+
return ye.length ? (((_ref2 = await ie.apaas.modelComprehensive.getBizServiceModelCategoryModelKeyBsKey({
|
|
11277
|
+
modelCategory: yt,
|
|
11278
11278
|
modelKey: j,
|
|
11279
11279
|
bsKey: "listByIds"
|
|
11280
|
-
}, { ids:
|
|
11281
|
-
label:
|
|
11282
|
-
value:
|
|
11280
|
+
}, { ids: ye.join(",") }) || {}) === null || _ref2 === void 0 ? void 0 : _ref2.data) ?? []).map((he) => ({
|
|
11281
|
+
label: he.name_ || he.code_,
|
|
11282
|
+
value: he.id_
|
|
11283
11283
|
})) : [];
|
|
11284
11284
|
}
|
|
11285
|
-
function f(j,
|
|
11286
|
-
const
|
|
11287
|
-
return [...j, ...
|
|
11288
|
-
(Ce === null || Ce === void 0 ? void 0 : Ce.value) != null &&
|
|
11289
|
-
}), Array.from(
|
|
11285
|
+
function f(j, Y) {
|
|
11286
|
+
const ye = /* @__PURE__ */ new Map();
|
|
11287
|
+
return [...j, ...Y].forEach((Ce) => {
|
|
11288
|
+
(Ce === null || Ce === void 0 ? void 0 : Ce.value) != null && ye.set(String(Ce.value), Ce);
|
|
11289
|
+
}), Array.from(ye.values());
|
|
11290
11290
|
}
|
|
11291
|
-
async function g(j,
|
|
11292
|
-
const Ce = [...new Set(
|
|
11293
|
-
if (!Ce.length) return
|
|
11294
|
-
return f(
|
|
11291
|
+
async function g(j, Y, ye) {
|
|
11292
|
+
const Ce = [...new Set(ye.filter(Boolean))].filter((Te) => !Y.some((Be) => Be.value === Te));
|
|
11293
|
+
if (!Ce.length) return Y;
|
|
11294
|
+
return f(Y, await _(j, Ce));
|
|
11295
11295
|
}
|
|
11296
11296
|
function M() {
|
|
11297
11297
|
return [o.value.default_warehouse_id_, ...(o.value.consume_storage_entries_ ?? []).map((j) => j.warehouse_id_)];
|
|
11298
11298
|
}
|
|
11299
|
-
function
|
|
11299
|
+
function C() {
|
|
11300
11300
|
return (o.value.consume_storage_entries_ ?? []).map((j) => j.shopfloor_id_);
|
|
11301
11301
|
}
|
|
11302
|
-
function
|
|
11303
|
-
const
|
|
11304
|
-
return o.value.default_warehouse_id_ === j &&
|
|
11305
|
-
|
|
11306
|
-
}),
|
|
11302
|
+
function c(j) {
|
|
11303
|
+
const Y = [];
|
|
11304
|
+
return o.value.default_warehouse_id_ === j && Y.push(o.value.default_location_id_), (o.value.consume_storage_entries_ ?? []).forEach((ye) => {
|
|
11305
|
+
ye.warehouse_id_ === j && Y.push(ye.location_id_);
|
|
11306
|
+
}), Y;
|
|
11307
11307
|
}
|
|
11308
|
-
async function
|
|
11308
|
+
async function h(j) {
|
|
11309
11309
|
l.value = !0;
|
|
11310
11310
|
try {
|
|
11311
|
-
const
|
|
11311
|
+
const Y = await k({
|
|
11312
11312
|
modelKey: "em_warehouse",
|
|
11313
11313
|
keyword: j
|
|
11314
11314
|
});
|
|
11315
|
-
t.value = await g("em_warehouse",
|
|
11315
|
+
t.value = await g("em_warehouse", Y, M());
|
|
11316
11316
|
} finally {
|
|
11317
11317
|
l.value = !1;
|
|
11318
11318
|
}
|
|
11319
11319
|
}
|
|
11320
|
-
async function
|
|
11320
|
+
async function y(j) {
|
|
11321
11321
|
s.value = !0;
|
|
11322
11322
|
try {
|
|
11323
|
-
const
|
|
11323
|
+
const Y = await k({
|
|
11324
11324
|
modelKey: "em_shopfloor",
|
|
11325
11325
|
keyword: j
|
|
11326
11326
|
});
|
|
11327
|
-
a.value = await g("em_shopfloor",
|
|
11327
|
+
a.value = await g("em_shopfloor", Y, C());
|
|
11328
11328
|
} finally {
|
|
11329
11329
|
s.value = !1;
|
|
11330
11330
|
}
|
|
11331
11331
|
}
|
|
11332
|
-
async function
|
|
11333
|
-
if (
|
|
11332
|
+
async function m(j, Y) {
|
|
11333
|
+
if (Y) {
|
|
11334
11334
|
d.value = !0;
|
|
11335
11335
|
try {
|
|
11336
|
-
const
|
|
11336
|
+
const ye = await k({
|
|
11337
11337
|
modelKey: "em_location",
|
|
11338
11338
|
keyword: j,
|
|
11339
|
-
extraQuery: { "warehouse_id_.eq":
|
|
11339
|
+
extraQuery: { "warehouse_id_.eq": Y }
|
|
11340
11340
|
});
|
|
11341
11341
|
n.value = {
|
|
11342
11342
|
...n.value,
|
|
11343
|
-
[
|
|
11343
|
+
[Y]: await g("em_location", ye, c(Y))
|
|
11344
11344
|
};
|
|
11345
11345
|
} finally {
|
|
11346
11346
|
d.value = !1;
|
|
@@ -11348,11 +11348,11 @@ var init_index_es = __esmMin((() => {
|
|
|
11348
11348
|
}
|
|
11349
11349
|
}
|
|
11350
11350
|
async function R() {
|
|
11351
|
-
await Promise.all([
|
|
11351
|
+
await Promise.all([h(), y()]);
|
|
11352
11352
|
const j = [...new Set(M().filter(Boolean))];
|
|
11353
|
-
await Promise.all(j.map((
|
|
11353
|
+
await Promise.all(j.map((Y) => m("", Y)));
|
|
11354
11354
|
}
|
|
11355
|
-
const $ = debounce((j) =>
|
|
11355
|
+
const $ = debounce((j) => h(j), 300), F = debounce((j) => y(j), 300), T = debounce((j, Y) => m(j, Y), 300), V = computed(() => n.value[o.value.default_warehouse_id_ ?? ""] ?? []);
|
|
11356
11356
|
function O(j) {
|
|
11357
11357
|
return n.value[j.warehouse_id_ ?? ""] ?? [];
|
|
11358
11358
|
}
|
|
@@ -11362,17 +11362,17 @@ var init_index_es = __esmMin((() => {
|
|
|
11362
11362
|
message: $t("sys.pleaseSelectSth", { sth: j })
|
|
11363
11363
|
}];
|
|
11364
11364
|
}
|
|
11365
|
-
function
|
|
11366
|
-
const
|
|
11367
|
-
return
|
|
11365
|
+
function S(j) {
|
|
11366
|
+
const Y = j.warehouse_id_;
|
|
11367
|
+
return Y && i.value[Y] === !1 ? [] : A($t("sys.pageDesigner.fieldCmp.location"));
|
|
11368
11368
|
}
|
|
11369
|
-
const
|
|
11369
|
+
const L = [{
|
|
11370
11370
|
value: "follow_common_policy",
|
|
11371
11371
|
label: $t("sys.edhr.mcTable.consumeSourceFollowCommon")
|
|
11372
11372
|
}, {
|
|
11373
11373
|
value: "custom",
|
|
11374
11374
|
label: $t("sys.edhr.mcTable.consumeSourceCustom")
|
|
11375
|
-
}],
|
|
11375
|
+
}], U = [
|
|
11376
11376
|
{
|
|
11377
11377
|
title: $t("sys.edhr.mcTable.shopfloor"),
|
|
11378
11378
|
key: "shopfloor_id_",
|
|
@@ -11400,100 +11400,100 @@ var init_index_es = __esmMin((() => {
|
|
|
11400
11400
|
width: 80
|
|
11401
11401
|
}
|
|
11402
11402
|
];
|
|
11403
|
-
function
|
|
11404
|
-
o.value.default_location_id_ = void 0, o.value.default_warehouse_id_ &&
|
|
11403
|
+
function G() {
|
|
11404
|
+
o.value.default_location_id_ = void 0, o.value.default_warehouse_id_ && m("", o.value.default_warehouse_id_);
|
|
11405
11405
|
}
|
|
11406
|
-
function
|
|
11407
|
-
j.location_id_ = void 0, j.warehouse_id_ &&
|
|
11406
|
+
function oe(j) {
|
|
11407
|
+
j.location_id_ = void 0, j.warehouse_id_ && m("", j.warehouse_id_);
|
|
11408
11408
|
}
|
|
11409
|
-
function
|
|
11409
|
+
function I() {
|
|
11410
11410
|
o.value.consume_storage_entries_.push({
|
|
11411
|
-
__key:
|
|
11411
|
+
__key: He(8),
|
|
11412
11412
|
shopfloor_id_: void 0,
|
|
11413
11413
|
warehouse_id_: void 0,
|
|
11414
11414
|
location_id_: void 0
|
|
11415
11415
|
});
|
|
11416
11416
|
}
|
|
11417
|
-
function
|
|
11417
|
+
function X(j) {
|
|
11418
11418
|
o.value.consume_storage_entries_.splice(j, 1);
|
|
11419
11419
|
}
|
|
11420
|
-
function
|
|
11420
|
+
function se(j) {
|
|
11421
11421
|
$(j);
|
|
11422
11422
|
}
|
|
11423
|
-
function
|
|
11424
|
-
|
|
11423
|
+
function fe(j) {
|
|
11424
|
+
F(j);
|
|
11425
11425
|
}
|
|
11426
|
-
function
|
|
11427
|
-
T(j,
|
|
11426
|
+
function ce(j, Y) {
|
|
11427
|
+
T(j, Y);
|
|
11428
11428
|
}
|
|
11429
11429
|
async function Q() {
|
|
11430
11430
|
const j = await ie.apaas.modelComprehensive.postBizServiceModelCategoryModelKeyBsKey({
|
|
11431
|
-
modelCategory:
|
|
11431
|
+
modelCategory: yt,
|
|
11432
11432
|
modelKey: "em_material_loading_policy_global",
|
|
11433
11433
|
bsKey: "getOne"
|
|
11434
11434
|
}, { includeSubModel: 1 }, { query: {} });
|
|
11435
|
-
|
|
11435
|
+
u.value = j.data || {}, o.value.consume_enabled_ && o.value.consume_source_config_ === "follow_common_policy" && $e();
|
|
11436
11436
|
}
|
|
11437
|
-
function
|
|
11438
|
-
j && (o.value.consume_source_config_ = "follow_common_policy",
|
|
11437
|
+
function Oe(j) {
|
|
11438
|
+
j && (o.value.consume_source_config_ = "follow_common_policy", $e());
|
|
11439
11439
|
}
|
|
11440
|
-
function
|
|
11441
|
-
j === "follow_common_policy" &&
|
|
11440
|
+
function re(j) {
|
|
11441
|
+
j === "follow_common_policy" && $e();
|
|
11442
11442
|
}
|
|
11443
|
-
function
|
|
11444
|
-
o.value.default_warehouse_id_ =
|
|
11443
|
+
function $e() {
|
|
11444
|
+
o.value.default_warehouse_id_ = u.value.default_warehouse_id_, o.value.default_location_id_ = u.value.default_location_id_, o.value.consume_storage_entries_ = (u.value.consume_storage_entries_ || []).map((j) => ({
|
|
11445
11445
|
...j,
|
|
11446
|
-
__key: j.__key ||
|
|
11446
|
+
__key: j.__key || He(8)
|
|
11447
11447
|
})), R();
|
|
11448
11448
|
}
|
|
11449
|
-
async function
|
|
11449
|
+
async function kt() {
|
|
11450
11450
|
var _await$ie$apaas$model;
|
|
11451
11451
|
(_await$ie$apaas$model = await ie.apaas.modelComprehensive.postBizServiceModelCategoryModelKeyBsKey({
|
|
11452
|
-
modelCategory:
|
|
11452
|
+
modelCategory: yt,
|
|
11453
11453
|
modelKey: "em_warehouse",
|
|
11454
11454
|
bsKey: "listAll"
|
|
11455
|
-
}, {}, {})) === null || _await$ie$apaas$model === void 0 || (_await$ie$apaas$model = _await$ie$apaas$model.data) === null || _await$ie$apaas$model === void 0 || _await$ie$apaas$model.forEach((
|
|
11456
|
-
|
|
11455
|
+
}, {}, {})) === null || _await$ie$apaas$model === void 0 || (_await$ie$apaas$model = _await$ie$apaas$model.data) === null || _await$ie$apaas$model === void 0 || _await$ie$apaas$model.forEach((Y) => {
|
|
11456
|
+
i.value[Y.id_] = Y.location_management_enabled_;
|
|
11457
11457
|
});
|
|
11458
11458
|
}
|
|
11459
11459
|
return onMounted(() => {
|
|
11460
|
-
Q(),
|
|
11461
|
-
}), (j,
|
|
11462
|
-
const
|
|
11463
|
-
return openBlock(), createElementBlock(Fragment, null, [createVNode(
|
|
11460
|
+
Q(), kt(), R();
|
|
11461
|
+
}), (j, Y) => {
|
|
11462
|
+
const ye = resolveComponent("a-radio"), Ce = resolveComponent("a-radio-group"), he = resolveComponent("a-form-item"), Te = resolveComponent("a-select"), Be = resolveComponent("a-col"), lt = resolveComponent("a-row"), Ct = resolveComponent("a-button"), vt = resolveComponent("a-table");
|
|
11463
|
+
return openBlock(), createElementBlock(Fragment, null, [createVNode(he, {
|
|
11464
11464
|
label: j.$t("sys.edhr.mcTable.consumeEnabled"),
|
|
11465
11465
|
name: "consume_enabled_",
|
|
11466
11466
|
rules: [unref(Re)(j.$t("sys.edhr.mcTable.consumeEnabled"))]
|
|
11467
11467
|
}, {
|
|
11468
11468
|
default: withCtx(() => [createVNode(Ce, {
|
|
11469
11469
|
value: o.value.consume_enabled_,
|
|
11470
|
-
"onUpdate:value":
|
|
11471
|
-
onChange:
|
|
11470
|
+
"onUpdate:value": Y[0] || (Y[0] = (ge) => o.value.consume_enabled_ = ge),
|
|
11471
|
+
onChange: Oe
|
|
11472
11472
|
}, {
|
|
11473
|
-
default: withCtx(() => [createVNode(
|
|
11473
|
+
default: withCtx(() => [createVNode(ye, { value: !0 }, {
|
|
11474
11474
|
default: withCtx(() => [createTextVNode(toDisplayString(j.$t("sys.true")), 1)]),
|
|
11475
11475
|
_: 1
|
|
11476
|
-
}), createVNode(
|
|
11476
|
+
}), createVNode(ye, { value: !1 }, {
|
|
11477
11477
|
default: withCtx(() => [createTextVNode(toDisplayString(j.$t("sys.false")), 1)]),
|
|
11478
11478
|
_: 1
|
|
11479
11479
|
})]),
|
|
11480
11480
|
_: 1
|
|
11481
11481
|
}, 8, ["value"])]),
|
|
11482
11482
|
_: 1
|
|
11483
|
-
}, 8, ["label", "rules"]), o.value.consume_enabled_ ? (openBlock(), createElementBlock("div",
|
|
11484
|
-
createVNode(
|
|
11485
|
-
default: withCtx(() => [createVNode(
|
|
11486
|
-
default: withCtx(() => [createVNode(
|
|
11483
|
+
}, 8, ["label", "rules"]), o.value.consume_enabled_ ? (openBlock(), createElementBlock("div", s2, [
|
|
11484
|
+
createVNode(lt, { gutter: 16 }, {
|
|
11485
|
+
default: withCtx(() => [createVNode(Be, { span: 12 }, {
|
|
11486
|
+
default: withCtx(() => [createVNode(he, {
|
|
11487
11487
|
label: j.$t("sys.edhr.mcTable.consumeSourceConfig"),
|
|
11488
11488
|
name: "consume_source_config_",
|
|
11489
11489
|
required: ""
|
|
11490
11490
|
}, {
|
|
11491
|
-
default: withCtx(() => [createVNode(
|
|
11491
|
+
default: withCtx(() => [createVNode(Te, {
|
|
11492
11492
|
value: o.value.consume_source_config_,
|
|
11493
|
-
"onUpdate:value":
|
|
11493
|
+
"onUpdate:value": Y[1] || (Y[1] = (ge) => o.value.consume_source_config_ = ge),
|
|
11494
11494
|
placeholder: j.$t("sys.chooseText"),
|
|
11495
|
-
options:
|
|
11496
|
-
onChange:
|
|
11495
|
+
options: L,
|
|
11496
|
+
onChange: re
|
|
11497
11497
|
}, null, 8, ["value", "placeholder"])]),
|
|
11498
11498
|
_: 1
|
|
11499
11499
|
}, 8, ["label"])]),
|
|
@@ -11501,16 +11501,16 @@ var init_index_es = __esmMin((() => {
|
|
|
11501
11501
|
})]),
|
|
11502
11502
|
_: 1
|
|
11503
11503
|
}),
|
|
11504
|
-
createVNode(
|
|
11505
|
-
default: withCtx(() => [createVNode(
|
|
11506
|
-
default: withCtx(() => [createVNode(
|
|
11504
|
+
createVNode(lt, { gutter: 16 }, {
|
|
11505
|
+
default: withCtx(() => [createVNode(Be, { span: 12 }, {
|
|
11506
|
+
default: withCtx(() => [createVNode(he, {
|
|
11507
11507
|
label: j.$t("sys.edhr.mcTable.defaultWarehouse"),
|
|
11508
11508
|
name: "default_warehouse_id_",
|
|
11509
11509
|
required: ""
|
|
11510
11510
|
}, {
|
|
11511
|
-
default: withCtx(() => [createVNode(
|
|
11511
|
+
default: withCtx(() => [createVNode(Te, {
|
|
11512
11512
|
value: o.value.default_warehouse_id_,
|
|
11513
|
-
"onUpdate:value":
|
|
11513
|
+
"onUpdate:value": Y[2] || (Y[2] = (ge) => o.value.default_warehouse_id_ = ge),
|
|
11514
11514
|
"show-search": "",
|
|
11515
11515
|
"allow-clear": "",
|
|
11516
11516
|
"filter-option": !1,
|
|
@@ -11518,8 +11518,8 @@ var init_index_es = __esmMin((() => {
|
|
|
11518
11518
|
options: t.value,
|
|
11519
11519
|
loading: l.value,
|
|
11520
11520
|
disabled: o.value.consume_source_config_ === "follow_common_policy",
|
|
11521
|
-
onSearch:
|
|
11522
|
-
onChange:
|
|
11521
|
+
onSearch: se,
|
|
11522
|
+
onChange: G
|
|
11523
11523
|
}, null, 8, [
|
|
11524
11524
|
"value",
|
|
11525
11525
|
"placeholder",
|
|
@@ -11530,23 +11530,23 @@ var init_index_es = __esmMin((() => {
|
|
|
11530
11530
|
_: 1
|
|
11531
11531
|
}, 8, ["label"])]),
|
|
11532
11532
|
_: 1
|
|
11533
|
-
}), createVNode(
|
|
11534
|
-
default: withCtx(() => [createVNode(
|
|
11533
|
+
}), createVNode(Be, { span: 12 }, {
|
|
11534
|
+
default: withCtx(() => [createVNode(he, {
|
|
11535
11535
|
label: j.$t("sys.edhr.mcTable.defaultLocation"),
|
|
11536
11536
|
name: "default_location_id_"
|
|
11537
11537
|
}, {
|
|
11538
|
-
default: withCtx(() => [createVNode(
|
|
11538
|
+
default: withCtx(() => [createVNode(Te, {
|
|
11539
11539
|
value: o.value.default_location_id_,
|
|
11540
|
-
"onUpdate:value":
|
|
11540
|
+
"onUpdate:value": Y[3] || (Y[3] = (ge) => o.value.default_location_id_ = ge),
|
|
11541
11541
|
"show-search": "",
|
|
11542
11542
|
"allow-clear": "",
|
|
11543
11543
|
"filter-option": !1,
|
|
11544
11544
|
placeholder: j.$t("sys.chooseText"),
|
|
11545
|
-
options:
|
|
11545
|
+
options: V.value,
|
|
11546
11546
|
loading: d.value,
|
|
11547
|
-
disabled: o.value.consume_source_config_ === "follow_common_policy" || !o.value.default_warehouse_id_ || !
|
|
11548
|
-
onSearch:
|
|
11549
|
-
onFocus:
|
|
11547
|
+
disabled: o.value.consume_source_config_ === "follow_common_policy" || !o.value.default_warehouse_id_ || !i.value[o.value.default_warehouse_id_],
|
|
11548
|
+
onSearch: Y[4] || (Y[4] = (ge) => ce(ge, o.value.default_warehouse_id_)),
|
|
11549
|
+
onFocus: Y[5] || (Y[5] = () => m("", o.value.default_warehouse_id_))
|
|
11550
11550
|
}, null, 8, [
|
|
11551
11551
|
"value",
|
|
11552
11552
|
"placeholder",
|
|
@@ -11560,39 +11560,39 @@ var init_index_es = __esmMin((() => {
|
|
|
11560
11560
|
})]),
|
|
11561
11561
|
_: 1
|
|
11562
11562
|
}),
|
|
11563
|
-
createElementVNode("div",
|
|
11563
|
+
createElementVNode("div", r2, [createElementVNode("span", i2, toDisplayString(j.$t("sys.edhr.mcTable.consumeSpecialConfig")), 1), o.value.consume_source_config_ !== "follow_common_policy" ? (openBlock(), createBlock(Ct, {
|
|
11564
11564
|
key: 0,
|
|
11565
11565
|
type: "link",
|
|
11566
11566
|
class: "consume-policy-item__add-row",
|
|
11567
|
-
onClick:
|
|
11567
|
+
onClick: I
|
|
11568
11568
|
}, {
|
|
11569
11569
|
default: withCtx(() => [createVNode(unref(PlusOutlined)), createTextVNode(" " + toDisplayString(j.$t("sys.edhr.addRow")), 1)]),
|
|
11570
11570
|
_: 1
|
|
11571
11571
|
})) : createCommentVNode("", !0)]),
|
|
11572
|
-
createVNode(
|
|
11572
|
+
createVNode(vt, {
|
|
11573
11573
|
class: "consume-policy-item__storage-table",
|
|
11574
11574
|
"data-source": o.value.consume_storage_entries_,
|
|
11575
|
-
columns:
|
|
11575
|
+
columns: U,
|
|
11576
11576
|
pagination: !1,
|
|
11577
11577
|
size: "small",
|
|
11578
11578
|
"row-key": "__key",
|
|
11579
11579
|
locale: { emptyText: j.$t("sys.noData") },
|
|
11580
11580
|
"table-layout": "fixed"
|
|
11581
11581
|
}, {
|
|
11582
|
-
headerCell: withCtx(({ column:
|
|
11583
|
-
bodyCell: withCtx(({ column:
|
|
11582
|
+
headerCell: withCtx(({ column: ge }) => [ge.required ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [Y[7] || (Y[7] = createElementVNode("span", { class: "consume-policy-item__required-mark" }, "*", -1)), createTextVNode(" " + toDisplayString(ge.title), 1)], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [createTextVNode(toDisplayString(ge.title), 1)], 64))]),
|
|
11583
|
+
bodyCell: withCtx(({ column: ge, record: J, index: ne }) => [ge.key === "shopfloor_id_" ? (openBlock(), createBlock(he, {
|
|
11584
11584
|
key: 0,
|
|
11585
11585
|
class: "consume-policy-item__table-item",
|
|
11586
11586
|
name: [
|
|
11587
11587
|
"consume_storage_entries_",
|
|
11588
|
-
|
|
11588
|
+
ne,
|
|
11589
11589
|
"shopfloor_id_"
|
|
11590
11590
|
],
|
|
11591
11591
|
rules: A(j.$t("sys.edhr.mcTable.shopfloor"))
|
|
11592
11592
|
}, {
|
|
11593
|
-
default: withCtx(() => [createVNode(
|
|
11594
|
-
value:
|
|
11595
|
-
"onUpdate:value": (be) =>
|
|
11593
|
+
default: withCtx(() => [createVNode(Te, {
|
|
11594
|
+
value: J.shopfloor_id_,
|
|
11595
|
+
"onUpdate:value": (be) => J.shopfloor_id_ = be,
|
|
11596
11596
|
class: "consume-policy-item__table-select",
|
|
11597
11597
|
"show-search": "",
|
|
11598
11598
|
"allow-clear": "",
|
|
@@ -11601,8 +11601,8 @@ var init_index_es = __esmMin((() => {
|
|
|
11601
11601
|
options: a.value,
|
|
11602
11602
|
loading: s.value,
|
|
11603
11603
|
disabled: o.value.consume_source_config_ === "follow_common_policy",
|
|
11604
|
-
onSearch:
|
|
11605
|
-
onFocus:
|
|
11604
|
+
onSearch: fe,
|
|
11605
|
+
onFocus: Y[6] || (Y[6] = () => y())
|
|
11606
11606
|
}, null, 8, [
|
|
11607
11607
|
"value",
|
|
11608
11608
|
"onUpdate:value",
|
|
@@ -11612,19 +11612,19 @@ var init_index_es = __esmMin((() => {
|
|
|
11612
11612
|
"disabled"
|
|
11613
11613
|
])]),
|
|
11614
11614
|
_: 2
|
|
11615
|
-
}, 1032, ["name", "rules"])) :
|
|
11615
|
+
}, 1032, ["name", "rules"])) : ge.key === "warehouse_id_" ? (openBlock(), createBlock(he, {
|
|
11616
11616
|
key: 1,
|
|
11617
11617
|
class: "consume-policy-item__table-item",
|
|
11618
11618
|
name: [
|
|
11619
11619
|
"consume_storage_entries_",
|
|
11620
|
-
|
|
11620
|
+
ne,
|
|
11621
11621
|
"warehouse_id_"
|
|
11622
11622
|
],
|
|
11623
11623
|
rules: A(j.$t("sys.model.warehouse"))
|
|
11624
11624
|
}, {
|
|
11625
|
-
default: withCtx(() => [createVNode(
|
|
11626
|
-
value:
|
|
11627
|
-
"onUpdate:value": (be) =>
|
|
11625
|
+
default: withCtx(() => [createVNode(Te, {
|
|
11626
|
+
value: J.warehouse_id_,
|
|
11627
|
+
"onUpdate:value": (be) => J.warehouse_id_ = be,
|
|
11628
11628
|
class: "consume-policy-item__table-select",
|
|
11629
11629
|
"show-search": "",
|
|
11630
11630
|
"allow-clear": "",
|
|
@@ -11633,8 +11633,8 @@ var init_index_es = __esmMin((() => {
|
|
|
11633
11633
|
options: t.value,
|
|
11634
11634
|
loading: l.value,
|
|
11635
11635
|
disabled: o.value.consume_source_config_ === "follow_common_policy",
|
|
11636
|
-
onSearch:
|
|
11637
|
-
onChange: () =>
|
|
11636
|
+
onSearch: se,
|
|
11637
|
+
onChange: () => oe(J)
|
|
11638
11638
|
}, null, 8, [
|
|
11639
11639
|
"value",
|
|
11640
11640
|
"onUpdate:value",
|
|
@@ -11645,29 +11645,29 @@ var init_index_es = __esmMin((() => {
|
|
|
11645
11645
|
"onChange"
|
|
11646
11646
|
])]),
|
|
11647
11647
|
_: 2
|
|
11648
|
-
}, 1032, ["name", "rules"])) :
|
|
11648
|
+
}, 1032, ["name", "rules"])) : ge.key === "location_id_" ? (openBlock(), createBlock(he, {
|
|
11649
11649
|
key: 2,
|
|
11650
11650
|
class: "consume-policy-item__table-item",
|
|
11651
11651
|
name: [
|
|
11652
11652
|
"consume_storage_entries_",
|
|
11653
|
-
|
|
11653
|
+
ne,
|
|
11654
11654
|
"location_id_"
|
|
11655
11655
|
],
|
|
11656
|
-
rules:
|
|
11656
|
+
rules: S(J)
|
|
11657
11657
|
}, {
|
|
11658
|
-
default: withCtx(() => [createVNode(
|
|
11659
|
-
value:
|
|
11660
|
-
"onUpdate:value": (be) =>
|
|
11658
|
+
default: withCtx(() => [createVNode(Te, {
|
|
11659
|
+
value: J.location_id_,
|
|
11660
|
+
"onUpdate:value": (be) => J.location_id_ = be,
|
|
11661
11661
|
class: "consume-policy-item__table-select",
|
|
11662
11662
|
"show-search": "",
|
|
11663
11663
|
"allow-clear": "",
|
|
11664
11664
|
"filter-option": !1,
|
|
11665
11665
|
placeholder: j.$t("sys.chooseText"),
|
|
11666
|
-
options: O(
|
|
11666
|
+
options: O(J),
|
|
11667
11667
|
loading: d.value,
|
|
11668
|
-
disabled: o.value.consume_source_config_ === "follow_common_policy" || !
|
|
11669
|
-
onSearch: (be) =>
|
|
11670
|
-
onFocus: () =>
|
|
11668
|
+
disabled: o.value.consume_source_config_ === "follow_common_policy" || !J.warehouse_id_ || !i.value[J.warehouse_id_],
|
|
11669
|
+
onSearch: (be) => ce(be, J.warehouse_id_),
|
|
11670
|
+
onFocus: () => m("", J.warehouse_id_)
|
|
11671
11671
|
}, null, 8, [
|
|
11672
11672
|
"value",
|
|
11673
11673
|
"onUpdate:value",
|
|
@@ -11679,19 +11679,19 @@ var init_index_es = __esmMin((() => {
|
|
|
11679
11679
|
"onFocus"
|
|
11680
11680
|
])]),
|
|
11681
11681
|
_: 2
|
|
11682
|
-
}, 1032, ["name", "rules"])) :
|
|
11682
|
+
}, 1032, ["name", "rules"])) : ge.key === "action" ? (openBlock(), createElementBlock("a", {
|
|
11683
11683
|
key: 3,
|
|
11684
11684
|
class: normalizeClass(["error-gct consume-policy-item__delete", { "is-disabled": o.value.consume_source_config_ === "follow_common_policy" }]),
|
|
11685
11685
|
href: "javascript:;",
|
|
11686
|
-
onClick: withModifiers((be) => o.value.consume_source_config_ !== "follow_common_policy" &&
|
|
11687
|
-
}, toDisplayString(j.$t("sys.delete")), 11,
|
|
11686
|
+
onClick: withModifiers((be) => o.value.consume_source_config_ !== "follow_common_policy" && X(ne), ["prevent"])
|
|
11687
|
+
}, toDisplayString(j.$t("sys.delete")), 11, u2)) : createCommentVNode("", !0)]),
|
|
11688
11688
|
_: 1
|
|
11689
11689
|
}, 8, ["data-source", "locale"])
|
|
11690
11690
|
])) : createCommentVNode("", !0)], 64);
|
|
11691
11691
|
};
|
|
11692
11692
|
}
|
|
11693
11693
|
}), [["__scopeId", "data-v-722f00dd"]]);
|
|
11694
|
-
|
|
11694
|
+
da = /* @__PURE__ */ Z$1(/* @__PURE__ */ defineComponent({
|
|
11695
11695
|
__name: "bom-formula-editor",
|
|
11696
11696
|
props: /* @__PURE__ */ mergeModels({
|
|
11697
11697
|
mode: {},
|
|
@@ -11719,30 +11719,30 @@ var init_index_es = __esmMin((() => {
|
|
|
11719
11719
|
}
|
|
11720
11720
|
const d = await n.openFormulaEditor({
|
|
11721
11721
|
expr: a.value.expr,
|
|
11722
|
-
returnType: o.returnType ||
|
|
11722
|
+
returnType: o.returnType || l2.Number,
|
|
11723
11723
|
disabledReturnType: o.disabledReturnType,
|
|
11724
11724
|
mode: o.mode ?? zt.ONLINE_FORM_FIELD_FORMULA,
|
|
11725
|
-
identifiers: { [
|
|
11725
|
+
identifiers: { [n2.FIELD]: await s() }
|
|
11726
11726
|
});
|
|
11727
11727
|
if (!d) return;
|
|
11728
|
-
const { expr:
|
|
11728
|
+
const { expr: u, exprEcho: i } = d;
|
|
11729
11729
|
t.value = JSON.stringify({
|
|
11730
|
-
expr:
|
|
11731
|
-
exprEcho:
|
|
11730
|
+
expr: u,
|
|
11731
|
+
exprEcho: i
|
|
11732
11732
|
});
|
|
11733
11733
|
};
|
|
11734
11734
|
async function s() {
|
|
11735
11735
|
if (!o.modelKey) return [];
|
|
11736
|
-
let
|
|
11737
|
-
return o.filterFunc && (
|
|
11738
|
-
id:
|
|
11739
|
-
name:
|
|
11740
|
-
valueType:
|
|
11736
|
+
let u = await ie.apaas.fieldMeta.getList({ modelKey: o.modelKey }) ?? [];
|
|
11737
|
+
return o.filterFunc && (u = u.reduce((i, k) => (o.filterFunc(k) && i.push(k), i), [])), u.map((i) => ({
|
|
11738
|
+
id: i.key,
|
|
11739
|
+
name: i.name,
|
|
11740
|
+
valueType: i.type
|
|
11741
11741
|
}));
|
|
11742
11742
|
}
|
|
11743
|
-
return (d,
|
|
11744
|
-
const
|
|
11745
|
-
return openBlock(), createBlock(
|
|
11743
|
+
return (d, u) => {
|
|
11744
|
+
const i = resolveComponent("a-input");
|
|
11745
|
+
return openBlock(), createBlock(i, {
|
|
11746
11746
|
class: "bom-formula-editor",
|
|
11747
11747
|
readonly: "",
|
|
11748
11748
|
placeholder: d.$t("sys.inputText"),
|
|
@@ -11752,11 +11752,11 @@ var init_index_es = __esmMin((() => {
|
|
|
11752
11752
|
};
|
|
11753
11753
|
}
|
|
11754
11754
|
}), [["__scopeId", "data-v-8f400877"]]);
|
|
11755
|
-
|
|
11755
|
+
f2 = {
|
|
11756
11756
|
key: 0,
|
|
11757
11757
|
class: "qty-policy-item__nested"
|
|
11758
11758
|
};
|
|
11759
|
-
|
|
11759
|
+
Ga = /* @__PURE__ */ Z$1(/* @__PURE__ */ defineComponent({
|
|
11760
11760
|
__name: "qty-item",
|
|
11761
11761
|
props: {
|
|
11762
11762
|
formState: { required: !0 },
|
|
@@ -11783,7 +11783,7 @@ var init_index_es = __esmMin((() => {
|
|
|
11783
11783
|
}
|
|
11784
11784
|
];
|
|
11785
11785
|
return (a, n) => {
|
|
11786
|
-
const l = resolveComponent("a-radio"), s = resolveComponent("a-radio-group"), d = resolveComponent("a-form-item"),
|
|
11786
|
+
const l = resolveComponent("a-radio"), s = resolveComponent("a-radio-group"), d = resolveComponent("a-form-item"), u = resolveComponent("a-select"), i = resolveComponent("a-col"), k = resolveComponent("a-row");
|
|
11787
11787
|
return openBlock(), createElementBlock(Fragment, null, [createVNode(d, {
|
|
11788
11788
|
label: a.$t("sys.edhr.mcTable.qtyValidationEnabled"),
|
|
11789
11789
|
name: "qty_validation_enabled_",
|
|
@@ -11803,14 +11803,14 @@ var init_index_es = __esmMin((() => {
|
|
|
11803
11803
|
_: 1
|
|
11804
11804
|
}, 8, ["value"])]),
|
|
11805
11805
|
_: 1
|
|
11806
|
-
}, 8, ["label", "rules"]), o.value.qty_validation_enabled_ ? (openBlock(), createElementBlock("div",
|
|
11807
|
-
default: withCtx(() => [createVNode(
|
|
11806
|
+
}, 8, ["label", "rules"]), o.value.qty_validation_enabled_ ? (openBlock(), createElementBlock("div", f2, [createVNode(k, { gutter: 16 }, {
|
|
11807
|
+
default: withCtx(() => [createVNode(i, { span: 12 }, {
|
|
11808
11808
|
default: withCtx(() => [createVNode(d, {
|
|
11809
11809
|
label: a.$t("sys.edhr.mcTable.qtyValidationRule"),
|
|
11810
11810
|
name: "qty_validation_rule_",
|
|
11811
11811
|
required: ""
|
|
11812
11812
|
}, {
|
|
11813
|
-
default: withCtx(() => [createVNode(
|
|
11813
|
+
default: withCtx(() => [createVNode(u, {
|
|
11814
11814
|
value: o.value.qty_validation_rule_,
|
|
11815
11815
|
"onUpdate:value": n[1] || (n[1] = (_) => o.value.qty_validation_rule_ = _),
|
|
11816
11816
|
placeholder: a.$t("sys.chooseText"),
|
|
@@ -11825,13 +11825,13 @@ var init_index_es = __esmMin((() => {
|
|
|
11825
11825
|
key: 0,
|
|
11826
11826
|
gutter: 16
|
|
11827
11827
|
}, {
|
|
11828
|
-
default: withCtx(() => [createVNode(
|
|
11828
|
+
default: withCtx(() => [createVNode(i, { span: 12 }, {
|
|
11829
11829
|
default: withCtx(() => [createVNode(d, {
|
|
11830
11830
|
label: a.$t("sys.edhr.mcTable.qtyValidationMax"),
|
|
11831
11831
|
name: "max_value_",
|
|
11832
11832
|
required: ""
|
|
11833
11833
|
}, {
|
|
11834
|
-
default: withCtx(() => [createVNode(
|
|
11834
|
+
default: withCtx(() => [createVNode(da, {
|
|
11835
11835
|
value: o.value.max_value_,
|
|
11836
11836
|
"onUpdate:value": n[2] || (n[2] = (_) => o.value.max_value_ = _),
|
|
11837
11837
|
"model-key": "em_material_consume",
|
|
@@ -11846,13 +11846,13 @@ var init_index_es = __esmMin((() => {
|
|
|
11846
11846
|
_: 1
|
|
11847
11847
|
}, 8, ["label"])]),
|
|
11848
11848
|
_: 1
|
|
11849
|
-
}), createVNode(
|
|
11849
|
+
}), createVNode(i, { span: 12 }, {
|
|
11850
11850
|
default: withCtx(() => [createVNode(d, {
|
|
11851
11851
|
label: a.$t("sys.edhr.mcTable.qtyValidationMin"),
|
|
11852
11852
|
name: "min_value_",
|
|
11853
11853
|
required: ""
|
|
11854
11854
|
}, {
|
|
11855
|
-
default: withCtx(() => [createVNode(
|
|
11855
|
+
default: withCtx(() => [createVNode(da, {
|
|
11856
11856
|
value: o.value.min_value_,
|
|
11857
11857
|
"onUpdate:value": n[3] || (n[3] = (_) => o.value.min_value_ = _),
|
|
11858
11858
|
"model-key": "em_material_consume",
|
|
@@ -11873,14 +11873,14 @@ var init_index_es = __esmMin((() => {
|
|
|
11873
11873
|
};
|
|
11874
11874
|
}
|
|
11875
11875
|
}), [["__scopeId", "data-v-c069421a"]]);
|
|
11876
|
-
|
|
11877
|
-
|
|
11878
|
-
|
|
11876
|
+
m2 = { style: { "margin-top": "4px" } };
|
|
11877
|
+
v2 = { key: 0 };
|
|
11878
|
+
y2 = `BOM模式:可读取工单BOM的用料策略,支持库存扣减;
|
|
11879
11879
|
记录模式:不支持库存扣减。`;
|
|
11880
|
-
|
|
11880
|
+
g2 = `当选择按批次上料时,上料时必须记录批次/SN和数量;
|
|
11881
11881
|
当选择按数量上料时只记录数量;
|
|
11882
11882
|
当选择物料查看时不需要记录批次/SN和数量,只做查看。`;
|
|
11883
|
-
|
|
11883
|
+
h2 = /* @__PURE__ */ Z$1(/* @__PURE__ */ defineComponent({
|
|
11884
11884
|
__name: "material-strategy",
|
|
11885
11885
|
props: /* @__PURE__ */ mergeModels({ showConsumePolicy: { type: Boolean } }, {
|
|
11886
11886
|
formState: { required: !0 },
|
|
@@ -11926,10 +11926,10 @@ var init_index_es = __esmMin((() => {
|
|
|
11926
11926
|
var _a$value;
|
|
11927
11927
|
await ((_a$value = a.value) === null || _a$value === void 0 ? void 0 : _a$value.validate());
|
|
11928
11928
|
}
|
|
11929
|
-
return o({ validate: s }), (d,
|
|
11930
|
-
const
|
|
11929
|
+
return o({ validate: s }), (d, u) => {
|
|
11930
|
+
const i = resolveComponent("a-select"), k = resolveComponent("a-form-item"), _ = resolveComponent("a-switch"), f = resolveComponent("a-radio"), g = resolveComponent("a-radio-group"), M = resolveComponent("a-form");
|
|
11931
11931
|
return openBlock(), createElementBlock("div", null, [createVNode(unref(de), null, {
|
|
11932
|
-
default: withCtx(() => [...
|
|
11932
|
+
default: withCtx(() => [...u[5] || (u[5] = [createTextVNode("用料策略", -1)])]),
|
|
11933
11933
|
_: 1
|
|
11934
11934
|
}), createVNode(M, {
|
|
11935
11935
|
ref_key: "formRef",
|
|
@@ -11942,10 +11942,10 @@ var init_index_es = __esmMin((() => {
|
|
|
11942
11942
|
name: "material_consumption_pattern_",
|
|
11943
11943
|
required: ""
|
|
11944
11944
|
}, {
|
|
11945
|
-
label: withCtx(() => [
|
|
11946
|
-
default: withCtx(() => [createVNode(
|
|
11945
|
+
label: withCtx(() => [u[6] || (u[6] = createElementVNode("span", null, "物料消耗模式", -1)), createVNode(unref(Vt), { info: y2 })]),
|
|
11946
|
+
default: withCtx(() => [createVNode(i, {
|
|
11947
11947
|
value: t.value.material_consumption_pattern_,
|
|
11948
|
-
"onUpdate:value":
|
|
11948
|
+
"onUpdate:value": u[0] || (u[0] = (C) => t.value.material_consumption_pattern_ = C),
|
|
11949
11949
|
placeholder: "请选择",
|
|
11950
11950
|
options: n
|
|
11951
11951
|
}, null, 8, ["value"])]),
|
|
@@ -11955,34 +11955,34 @@ var init_index_es = __esmMin((() => {
|
|
|
11955
11955
|
name: "personal_bom_enabled_",
|
|
11956
11956
|
label: "自定义用料策略"
|
|
11957
11957
|
}, {
|
|
11958
|
-
default: withCtx(() => [createElementVNode("div",
|
|
11958
|
+
default: withCtx(() => [createElementVNode("div", m2, [createVNode(_, {
|
|
11959
11959
|
checked: t.value.personal_bom_enabled_,
|
|
11960
|
-
"onUpdate:checked":
|
|
11960
|
+
"onUpdate:checked": u[1] || (u[1] = (C) => t.value.personal_bom_enabled_ = C)
|
|
11961
11961
|
}, null, 8, ["checked"])])]),
|
|
11962
11962
|
_: 1
|
|
11963
11963
|
}),
|
|
11964
|
-
t.value.personal_bom_enabled_ ? (openBlock(), createElementBlock("div",
|
|
11964
|
+
t.value.personal_bom_enabled_ ? (openBlock(), createElementBlock("div", v2, [
|
|
11965
11965
|
createVNode(k, {
|
|
11966
11966
|
name: "type_",
|
|
11967
11967
|
required: ""
|
|
11968
11968
|
}, {
|
|
11969
|
-
label: withCtx(() => [
|
|
11969
|
+
label: withCtx(() => [u[7] || (u[7] = createElementVNode("span", null, "上料方式", -1)), createVNode(unref(Vt), { info: g2 })]),
|
|
11970
11970
|
default: withCtx(() => [createVNode(g, {
|
|
11971
11971
|
value: t.value.type_,
|
|
11972
|
-
"onUpdate:value":
|
|
11972
|
+
"onUpdate:value": u[2] || (u[2] = (C) => t.value.type_ = C),
|
|
11973
11973
|
name: "radioGroup1"
|
|
11974
11974
|
}, {
|
|
11975
11975
|
default: withCtx(() => [
|
|
11976
11976
|
createVNode(f, { value: "view" }, {
|
|
11977
|
-
default: withCtx(() => [...
|
|
11977
|
+
default: withCtx(() => [...u[8] || (u[8] = [createTextVNode("仅查看", -1)])]),
|
|
11978
11978
|
_: 1
|
|
11979
11979
|
}),
|
|
11980
11980
|
createVNode(f, { value: "by_number" }, {
|
|
11981
|
-
default: withCtx(() => [...
|
|
11981
|
+
default: withCtx(() => [...u[9] || (u[9] = [createTextVNode("按数量上料", -1)])]),
|
|
11982
11982
|
_: 1
|
|
11983
11983
|
}),
|
|
11984
11984
|
createVNode(f, { value: "by_lot" }, {
|
|
11985
|
-
default: withCtx(() => [...
|
|
11985
|
+
default: withCtx(() => [...u[10] || (u[10] = [createTextVNode("按批次上料", -1)])]),
|
|
11986
11986
|
_: 1
|
|
11987
11987
|
})
|
|
11988
11988
|
]),
|
|
@@ -11990,15 +11990,15 @@ var init_index_es = __esmMin((() => {
|
|
|
11990
11990
|
}, 8, ["value"])]),
|
|
11991
11991
|
_: 1
|
|
11992
11992
|
}),
|
|
11993
|
-
t.value.material_consumption_pattern_ === "bom" && t.value.type_ === "by_lot" && e.showConsumePolicy ? (openBlock(), createBlock(
|
|
11993
|
+
t.value.material_consumption_pattern_ === "bom" && t.value.type_ === "by_lot" && e.showConsumePolicy ? (openBlock(), createBlock(Za, {
|
|
11994
11994
|
key: 0,
|
|
11995
11995
|
"form-state": t.value,
|
|
11996
|
-
"onUpdate:formState":
|
|
11996
|
+
"onUpdate:formState": u[3] || (u[3] = (C) => t.value = C)
|
|
11997
11997
|
}, null, 8, ["form-state"])) : createCommentVNode("", !0),
|
|
11998
|
-
t.value.type_ !== "view" ? (openBlock(), createBlock(
|
|
11998
|
+
t.value.type_ !== "view" ? (openBlock(), createBlock(Ga, {
|
|
11999
11999
|
key: 1,
|
|
12000
12000
|
"form-state": t.value,
|
|
12001
|
-
"onUpdate:formState":
|
|
12001
|
+
"onUpdate:formState": u[4] || (u[4] = (C) => t.value = C)
|
|
12002
12002
|
}, null, 8, ["form-state"])) : createCommentVNode("", !0)
|
|
12003
12003
|
])) : createCommentVNode("", !0)
|
|
12004
12004
|
]),
|
|
@@ -12007,8 +12007,8 @@ var init_index_es = __esmMin((() => {
|
|
|
12007
12007
|
};
|
|
12008
12008
|
}
|
|
12009
12009
|
}), [["__scopeId", "data-v-7b5cf648"]]);
|
|
12010
|
-
|
|
12011
|
-
|
|
12010
|
+
b2 = { key: 0 };
|
|
12011
|
+
k2 = /* @__PURE__ */ Z$1(/* @__PURE__ */ defineComponent({
|
|
12012
12012
|
__name: "modal",
|
|
12013
12013
|
props: {
|
|
12014
12014
|
modalVisible: { type: Boolean },
|
|
@@ -12047,7 +12047,7 @@ var init_index_es = __esmMin((() => {
|
|
|
12047
12047
|
scanParamType: Bt.Lot
|
|
12048
12048
|
};
|
|
12049
12049
|
}
|
|
12050
|
-
const
|
|
12050
|
+
const u = ref(d()), i = ref({
|
|
12051
12051
|
border: !0,
|
|
12052
12052
|
round: !0,
|
|
12053
12053
|
showHeaderOverflow: !0,
|
|
@@ -12071,74 +12071,74 @@ var init_index_es = __esmMin((() => {
|
|
|
12071
12071
|
title: "默认值",
|
|
12072
12072
|
slots: { default: "value_default" }
|
|
12073
12073
|
}]
|
|
12074
|
-
}), k = computed(() => !!t.bizOptions.editingItem), _ = computed(() => !!Object.keys(
|
|
12074
|
+
}), k = computed(() => !!t.bizOptions.editingItem), _ = computed(() => !!Object.keys(u.value.parseRuleProps || {}).length), f = computed(() => t.bizOptions.objectFields.filter((m) => {
|
|
12075
12075
|
var _t$bizOptions$configu, _t$bizOptions$configu2;
|
|
12076
|
-
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 ===
|
|
12077
|
-
}).map((
|
|
12078
|
-
label:
|
|
12079
|
-
value:
|
|
12080
|
-
}))), g = computed(() =>
|
|
12081
|
-
key:
|
|
12082
|
-
name:
|
|
12083
|
-
field:
|
|
12084
|
-
}))),
|
|
12085
|
-
|
|
12086
|
-
...
|
|
12087
|
-
[
|
|
12076
|
+
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 === m.key));
|
|
12077
|
+
}).map((m) => ({
|
|
12078
|
+
label: m.name,
|
|
12079
|
+
value: m.key
|
|
12080
|
+
}))), g = computed(() => u.value.objectField ? t.bizOptions.allFields.filter((y) => y.type === Ra.REF && y.bizType === Aa.BOM_ENTRY_ID ? !1 : y.belongingObject === u.value.objectField) : []), M = computed(() => g.value.map((y) => ({
|
|
12081
|
+
key: y.key,
|
|
12082
|
+
name: y.name,
|
|
12083
|
+
field: y
|
|
12084
|
+
}))), C = (y, m) => {
|
|
12085
|
+
u.value.values = {
|
|
12086
|
+
...u.value.values,
|
|
12087
|
+
[y]: m
|
|
12088
12088
|
};
|
|
12089
|
-
},
|
|
12090
|
-
|
|
12091
|
-
config:
|
|
12092
|
-
formFieldOptions: g.value.map((
|
|
12093
|
-
label:
|
|
12094
|
-
value:
|
|
12089
|
+
}, c = () => {
|
|
12090
|
+
kf("PARSE_RULE_MODAL", {
|
|
12091
|
+
config: u.value.parseRuleProps,
|
|
12092
|
+
formFieldOptions: g.value.map((y) => ({
|
|
12093
|
+
label: y.name,
|
|
12094
|
+
value: y.key
|
|
12095
12095
|
})),
|
|
12096
12096
|
formFieldsLabel: "对象字段",
|
|
12097
12097
|
ruleTip: "默认条码映射字段:条码批次映射批次字段,条码物料编码映射物料编码字段,条码有效期映射有效期字段"
|
|
12098
|
-
}).then((
|
|
12099
|
-
|
|
12098
|
+
}).then((y) => {
|
|
12099
|
+
y.success && (u.value.parseRuleProps = y.result ?? {});
|
|
12100
12100
|
});
|
|
12101
12101
|
};
|
|
12102
|
-
watch(() => t.bizOptions.editingItem, (
|
|
12103
|
-
if (!
|
|
12104
|
-
const
|
|
12105
|
-
|
|
12106
|
-
...
|
|
12102
|
+
watch(() => t.bizOptions.editingItem, (y) => {
|
|
12103
|
+
if (!y) return;
|
|
12104
|
+
const m = d(), R = cloneDeep(y);
|
|
12105
|
+
u.value = {
|
|
12106
|
+
...m,
|
|
12107
12107
|
...R,
|
|
12108
|
-
values: R.values ??
|
|
12109
|
-
parseRuleProps: R.parseRuleProps ??
|
|
12110
|
-
consume_source_config_: R.consume_source_config_ ??
|
|
12111
|
-
qty_validation_rule_: R.qty_validation_rule_ ??
|
|
12108
|
+
values: R.values ?? m.values,
|
|
12109
|
+
parseRuleProps: R.parseRuleProps ?? m.parseRuleProps,
|
|
12110
|
+
consume_source_config_: R.consume_source_config_ ?? m.consume_source_config_,
|
|
12111
|
+
qty_validation_rule_: R.qty_validation_rule_ ?? m.qty_validation_rule_,
|
|
12112
12112
|
consume_storage_entries_: (R.consume_storage_entries_ ?? []).map(($) => ({
|
|
12113
12113
|
...$,
|
|
12114
|
-
__key: $.__key ||
|
|
12114
|
+
__key: $.__key || He(8)
|
|
12115
12115
|
}))
|
|
12116
12116
|
};
|
|
12117
12117
|
}, { immediate: !0 });
|
|
12118
|
-
const
|
|
12118
|
+
const h = async () => {
|
|
12119
12119
|
try {
|
|
12120
12120
|
var _n$value9, _l$value15;
|
|
12121
12121
|
await Promise.all([(_n$value9 = n.value) === null || _n$value9 === void 0 ? void 0 : _n$value9.validate(), (_l$value15 = l.value) === null || _l$value15 === void 0 ? void 0 : _l$value15.validate()]);
|
|
12122
12122
|
} catch {
|
|
12123
12123
|
return;
|
|
12124
12124
|
}
|
|
12125
|
-
const
|
|
12126
|
-
|
|
12125
|
+
const y = t.bizOptions.objectFields.find((m) => m.key === u.value.objectField);
|
|
12126
|
+
u.value.objectFieldName = y === null || y === void 0 ? void 0 : y.name, u.value.objectBizType = y === null || y === void 0 ? void 0 : y.bizType, t.modalInst.confirm(u.value);
|
|
12127
12127
|
};
|
|
12128
|
-
return (
|
|
12129
|
-
const R = resolveComponent("a-select"), $ = resolveComponent("a-form-item"),
|
|
12130
|
-
return openBlock(), createBlock(
|
|
12128
|
+
return (y, m) => {
|
|
12129
|
+
const R = resolveComponent("a-select"), $ = resolveComponent("a-form-item"), F = resolveComponent("a-form"), T = resolveComponent("a-switch"), V = resolveComponent("a-button"), O = resolveComponent("a-select-option");
|
|
12130
|
+
return openBlock(), createBlock(mt, mergeProps(e.modalProps, {
|
|
12131
12131
|
visible: e.modalVisible,
|
|
12132
12132
|
onCancel: e.modalInst.cancel,
|
|
12133
|
-
onOk:
|
|
12134
|
-
onAfterClose:
|
|
12133
|
+
onOk: h,
|
|
12134
|
+
onAfterClose: m[4] || (m[4] = (A) => a("afterClose"))
|
|
12135
12135
|
}), {
|
|
12136
12136
|
default: withCtx(() => [
|
|
12137
|
-
createVNode(
|
|
12137
|
+
createVNode(F, {
|
|
12138
12138
|
ref_key: "objectFieldFormRef",
|
|
12139
12139
|
ref: n,
|
|
12140
12140
|
layout: "vertical",
|
|
12141
|
-
model:
|
|
12141
|
+
model: u.value,
|
|
12142
12142
|
rules: s
|
|
12143
12143
|
}, {
|
|
12144
12144
|
default: withCtx(() => [createVNode($, {
|
|
@@ -12147,8 +12147,8 @@ var init_index_es = __esmMin((() => {
|
|
|
12147
12147
|
required: ""
|
|
12148
12148
|
}, {
|
|
12149
12149
|
default: withCtx(() => [createVNode(R, {
|
|
12150
|
-
value:
|
|
12151
|
-
"onUpdate:value":
|
|
12150
|
+
value: u.value.objectField,
|
|
12151
|
+
"onUpdate:value": m[0] || (m[0] = (A) => u.value.objectField = A),
|
|
12152
12152
|
placeholder: "请选择",
|
|
12153
12153
|
options: f.value,
|
|
12154
12154
|
disabled: k.value
|
|
@@ -12161,18 +12161,18 @@ var init_index_es = __esmMin((() => {
|
|
|
12161
12161
|
})]),
|
|
12162
12162
|
_: 1
|
|
12163
12163
|
}, 8, ["model"]),
|
|
12164
|
-
|
|
12165
|
-
default: withCtx(() => [...
|
|
12164
|
+
u.value.objectField ? (openBlock(), createElementBlock("div", b2, [createVNode(unref(de), null, {
|
|
12165
|
+
default: withCtx(() => [...m[5] || (m[5] = [createTextVNode("默认值", -1)])]),
|
|
12166
12166
|
_: 1
|
|
12167
12167
|
}), createVNode(unref(VxeGrid), mergeProps({
|
|
12168
12168
|
class: "object-table",
|
|
12169
12169
|
data: M.value
|
|
12170
|
-
},
|
|
12170
|
+
}, i.value), {
|
|
12171
12171
|
value_default: withCtx(({ row: A }) => [e.bizOptions.RenderFieldWrapper ? (openBlock(), createBlock(resolveDynamicComponent(e.bizOptions.RenderFieldWrapper), {
|
|
12172
12172
|
key: 0,
|
|
12173
12173
|
field: A.field,
|
|
12174
|
-
modelValue:
|
|
12175
|
-
"onUpdate:modelValue": (
|
|
12174
|
+
modelValue: u.value.values[A.key],
|
|
12175
|
+
"onUpdate:modelValue": (S) => C(A.key, S)
|
|
12176
12176
|
}, null, 8, [
|
|
12177
12177
|
"field",
|
|
12178
12178
|
"modelValue",
|
|
@@ -12181,11 +12181,11 @@ var init_index_es = __esmMin((() => {
|
|
|
12181
12181
|
_: 1
|
|
12182
12182
|
}, 16, ["data"])])) : createCommentVNode("", !0),
|
|
12183
12183
|
createElementVNode("div", null, [createVNode(unref(de), null, {
|
|
12184
|
-
default: withCtx(() => [...
|
|
12184
|
+
default: withCtx(() => [...m[6] || (m[6] = [createTextVNode("条码解析规则", -1)])]),
|
|
12185
12185
|
_: 1
|
|
12186
|
-
}), createVNode(
|
|
12186
|
+
}), createVNode(F, {
|
|
12187
12187
|
ref: "barcodeRulesFormRef",
|
|
12188
|
-
model:
|
|
12188
|
+
model: u.value,
|
|
12189
12189
|
layout: "horizontal"
|
|
12190
12190
|
}, {
|
|
12191
12191
|
default: withCtx(() => [createVNode($, {
|
|
@@ -12194,52 +12194,52 @@ var init_index_es = __esmMin((() => {
|
|
|
12194
12194
|
}, {
|
|
12195
12195
|
default: withCtx(() => [createVNode(T, {
|
|
12196
12196
|
size: "small",
|
|
12197
|
-
checked: !
|
|
12198
|
-
onChange:
|
|
12197
|
+
checked: !u.value.disableBarcodeParsing,
|
|
12198
|
+
onChange: m[1] || (m[1] = (A) => u.value.disableBarcodeParsing = !u.value.disableBarcodeParsing)
|
|
12199
12199
|
}, null, 8, ["checked"])]),
|
|
12200
12200
|
_: 1
|
|
12201
|
-
}),
|
|
12201
|
+
}), u.value.disableBarcodeParsing ? (openBlock(), createBlock($, {
|
|
12202
12202
|
key: 1,
|
|
12203
12203
|
label: "参数",
|
|
12204
12204
|
name: "scanParamType",
|
|
12205
12205
|
rules: [{
|
|
12206
|
-
required: !!
|
|
12206
|
+
required: !!u.value.disableBarcodeParsing,
|
|
12207
12207
|
message: "请选择参数"
|
|
12208
12208
|
}]
|
|
12209
12209
|
}, {
|
|
12210
12210
|
default: withCtx(() => [createVNode(R, {
|
|
12211
|
-
value:
|
|
12212
|
-
"onUpdate:value":
|
|
12213
|
-
placeholder:
|
|
12211
|
+
value: u.value.scanParamType,
|
|
12212
|
+
"onUpdate:value": m[2] || (m[2] = (A) => u.value.scanParamType = A),
|
|
12213
|
+
placeholder: y.$t("sys.chooseText")
|
|
12214
12214
|
}, {
|
|
12215
12215
|
default: withCtx(() => [(openBlock(!0), createElementBlock(Fragment, null, renderList(Object.values(unref(Bt)), (A) => (openBlock(), createBlock(O, {
|
|
12216
12216
|
key: A,
|
|
12217
12217
|
value: A
|
|
12218
12218
|
}, {
|
|
12219
|
-
default: withCtx(() => [createTextVNode(toDisplayString(
|
|
12219
|
+
default: withCtx(() => [createTextVNode(toDisplayString(y.$t(`sys.ScanParamType.${A}`)), 1)]),
|
|
12220
12220
|
_: 2
|
|
12221
12221
|
}, 1032, ["value"]))), 128))]),
|
|
12222
12222
|
_: 1
|
|
12223
12223
|
}, 8, ["value", "placeholder"])]),
|
|
12224
12224
|
_: 1
|
|
12225
|
-
}, 8, ["rules"])) : (openBlock(), createBlock(
|
|
12225
|
+
}, 8, ["rules"])) : (openBlock(), createBlock(V, {
|
|
12226
12226
|
key: 0,
|
|
12227
12227
|
block: "",
|
|
12228
12228
|
ghost: !_.value,
|
|
12229
12229
|
type: "primary",
|
|
12230
|
-
onClick:
|
|
12230
|
+
onClick: c
|
|
12231
12231
|
}, {
|
|
12232
12232
|
default: withCtx(() => [createTextVNode(toDisplayString(_.value ? "编辑" : "添加") + "规则 ", 1)]),
|
|
12233
12233
|
_: 1
|
|
12234
12234
|
}, 8, ["ghost"]))]),
|
|
12235
12235
|
_: 1
|
|
12236
12236
|
}, 8, ["model"])]),
|
|
12237
|
-
e.bizOptions.showMaterialStrategy ? (openBlock(), createBlock(
|
|
12237
|
+
e.bizOptions.showMaterialStrategy ? (openBlock(), createBlock(h2, {
|
|
12238
12238
|
key: 1,
|
|
12239
12239
|
ref_key: "materialStrategyRef",
|
|
12240
12240
|
ref: l,
|
|
12241
|
-
"form-state":
|
|
12242
|
-
"onUpdate:formState":
|
|
12241
|
+
"form-state": u.value,
|
|
12242
|
+
"onUpdate:formState": m[3] || (m[3] = (A) => u.value = A),
|
|
12243
12243
|
showConsumePolicy: e.bizOptions.showConsumePolicy
|
|
12244
12244
|
}, null, 8, ["form-state", "showConsumePolicy"])) : createCommentVNode("", !0)
|
|
12245
12245
|
]),
|
|
@@ -12248,32 +12248,32 @@ var init_index_es = __esmMin((() => {
|
|
|
12248
12248
|
};
|
|
12249
12249
|
}
|
|
12250
12250
|
}), [["__scopeId", "data-v-bd414f64"]]);
|
|
12251
|
-
|
|
12252
|
-
|
|
12253
|
-
|
|
12254
|
-
|
|
12251
|
+
ct = /* @__PURE__ */ ((e) => (e.materialCode = "materialCode", e.lot = "lot", e.qty = "qty", e.expiration = "expiration", e.deviceCode = "deviceCode", e.other = "other", e))(ct || {});
|
|
12252
|
+
C2 = ie.apaas.modelComprehensive.getBizServiceModelCategoryModelKeyBsKey;
|
|
12253
|
+
A2 = { class: "field-mapping__rule-control" };
|
|
12254
|
+
O2 = {
|
|
12255
12255
|
key: 0,
|
|
12256
12256
|
class: "field-mapping__tip"
|
|
12257
12257
|
};
|
|
12258
|
-
|
|
12259
|
-
|
|
12258
|
+
T2 = { class: "field-mapping__subtitle" };
|
|
12259
|
+
q2 = {
|
|
12260
12260
|
key: 1,
|
|
12261
12261
|
class: "field-mapping__tip"
|
|
12262
12262
|
};
|
|
12263
|
-
|
|
12264
|
-
|
|
12263
|
+
V2 = { class: "field-mapping__map" };
|
|
12264
|
+
L2 = {
|
|
12265
12265
|
key: 0,
|
|
12266
12266
|
class: "field-mapping__row field-mapping__row--header"
|
|
12267
12267
|
};
|
|
12268
|
-
|
|
12269
|
-
|
|
12270
|
-
|
|
12271
|
-
|
|
12268
|
+
$2 = { class: "field-mapping__barcodeField field-mapping__col-label is-required" };
|
|
12269
|
+
B2 = { class: "field-mapping__formFields field-mapping__col-label is-required" };
|
|
12270
|
+
z2 = { class: "field-mapping__row--content" };
|
|
12271
|
+
F2 = {
|
|
12272
12272
|
key: 0,
|
|
12273
12273
|
class: "field-mapping__actions"
|
|
12274
12274
|
};
|
|
12275
|
-
|
|
12276
|
-
|
|
12275
|
+
D2 = ["title", "onClick"];
|
|
12276
|
+
Ja = /* @__PURE__ */ Z$1(/* @__PURE__ */ defineComponent({
|
|
12277
12277
|
__name: "field-mapping",
|
|
12278
12278
|
props: {
|
|
12279
12279
|
parsingRuleId: {},
|
|
@@ -12306,72 +12306,72 @@ var init_index_es = __esmMin((() => {
|
|
|
12306
12306
|
],
|
|
12307
12307
|
setup(e, { expose: o, emit: t }) {
|
|
12308
12308
|
const a = e, n = t;
|
|
12309
|
-
function l(
|
|
12310
|
-
return (
|
|
12311
|
-
...
|
|
12312
|
-
formFields: [...
|
|
12309
|
+
function l(c) {
|
|
12310
|
+
return (c ?? []).map((h) => ({
|
|
12311
|
+
...h,
|
|
12312
|
+
formFields: [...h.formFields ?? []]
|
|
12313
12313
|
}));
|
|
12314
12314
|
}
|
|
12315
|
-
const s = ref(), d = ref(a.defaultExpanded),
|
|
12315
|
+
const s = ref(), d = ref(a.defaultExpanded), u = ref([]), i = reactive({
|
|
12316
12316
|
parsingRuleId: a.parsingRuleId,
|
|
12317
12317
|
fillMapArr: l(a.fillMapArr)
|
|
12318
12318
|
});
|
|
12319
|
-
watch(() => a.parsingRuleId, (
|
|
12320
|
-
|
|
12321
|
-
}), watch(() => a.fillMapArr, (
|
|
12322
|
-
|
|
12323
|
-
}), computed(() => (a.formFieldOptions ?? []).map((
|
|
12324
|
-
...
|
|
12325
|
-
label: `${
|
|
12319
|
+
watch(() => a.parsingRuleId, (c) => {
|
|
12320
|
+
i.parsingRuleId = c;
|
|
12321
|
+
}), watch(() => a.fillMapArr, (c) => {
|
|
12322
|
+
i.fillMapArr = l(c);
|
|
12323
|
+
}), computed(() => (a.formFieldOptions ?? []).map((c) => ({
|
|
12324
|
+
...c,
|
|
12325
|
+
label: `${c.label}[${c.value}]`
|
|
12326
12326
|
})));
|
|
12327
12327
|
const k = () => {
|
|
12328
|
-
console.log("change",
|
|
12329
|
-
}, _ = async (
|
|
12330
|
-
if (!
|
|
12331
|
-
|
|
12328
|
+
console.log("change", i.fillMapArr), n("update:fillMapArr", l(i.fillMapArr));
|
|
12329
|
+
}, _ = async (c) => {
|
|
12330
|
+
if (!c) {
|
|
12331
|
+
u.value = [], n("ruleConfigChange", void 0);
|
|
12332
12332
|
return;
|
|
12333
12333
|
}
|
|
12334
|
-
const
|
|
12335
|
-
if (!
|
|
12336
|
-
|
|
12334
|
+
const h = await M2(c);
|
|
12335
|
+
if (!h) {
|
|
12336
|
+
u.value = [], n("ruleConfigChange", void 0);
|
|
12337
12337
|
return;
|
|
12338
12338
|
}
|
|
12339
|
-
|
|
12340
|
-
label:
|
|
12341
|
-
value:
|
|
12342
|
-
})), n("ruleConfigChange",
|
|
12343
|
-
}, f = (
|
|
12339
|
+
u.value = h.fieldList.map((y) => ({
|
|
12340
|
+
label: y.alias ?? $t(`sys.edhr.labelConfigFields.${y.type}`),
|
|
12341
|
+
value: y.key
|
|
12342
|
+
})), n("ruleConfigChange", h);
|
|
12343
|
+
}, f = (c) => {
|
|
12344
12344
|
if (a.disabled) return;
|
|
12345
|
-
const
|
|
12346
|
-
|
|
12345
|
+
const h = c ?? void 0;
|
|
12346
|
+
h !== i.parsingRuleId && (i.parsingRuleId = h, i.fillMapArr = [], n("update:parsingRuleId", h), n("update:fillMapArr", []), _(h));
|
|
12347
12347
|
}, g = () => {
|
|
12348
|
-
a.disabled || (
|
|
12349
|
-
}, M = (
|
|
12350
|
-
a.disabled || (
|
|
12351
|
-
},
|
|
12352
|
-
const
|
|
12353
|
-
return
|
|
12348
|
+
a.disabled || (i.fillMapArr.push({ formFields: [] }), k());
|
|
12349
|
+
}, M = (c) => {
|
|
12350
|
+
a.disabled || (i.fillMapArr.splice(c, 1), k());
|
|
12351
|
+
}, C = (c, h) => {
|
|
12352
|
+
const y = c.trim().toLowerCase();
|
|
12353
|
+
return y ? h.label.toLowerCase().includes(y) || String(h.value ?? "").toLowerCase().includes(y) : !0;
|
|
12354
12354
|
};
|
|
12355
12355
|
return onMounted(() => {
|
|
12356
|
-
|
|
12356
|
+
i.parsingRuleId && _(i.parsingRuleId);
|
|
12357
12357
|
}), o({ validate: () => {
|
|
12358
12358
|
var _s$value5;
|
|
12359
12359
|
return (_s$value5 = s.value) === null || _s$value5 === void 0 ? void 0 : _s$value5.validate();
|
|
12360
|
-
} }), (
|
|
12361
|
-
const
|
|
12362
|
-
return openBlock(), createElementBlock("div", { class: normalizeClass(["field-mapping", { "field-mapping--bordered": e.bordered }]) }, [createVNode(
|
|
12360
|
+
} }), (c, h) => {
|
|
12361
|
+
const y = resolveComponent("a-form-item"), m = resolveComponent("a-alert"), R = resolveComponent("a-select"), $ = resolveComponent("a-button"), F = resolveComponent("a-form");
|
|
12362
|
+
return openBlock(), createElementBlock("div", { class: normalizeClass(["field-mapping", { "field-mapping--bordered": e.bordered }]) }, [createVNode(F, {
|
|
12363
12363
|
ref_key: "formRef",
|
|
12364
12364
|
ref: s,
|
|
12365
|
-
model:
|
|
12365
|
+
model: i,
|
|
12366
12366
|
layout: "horizontal"
|
|
12367
12367
|
}, {
|
|
12368
|
-
default: withCtx(() => [createVNode(
|
|
12368
|
+
default: withCtx(() => [createVNode(y, {
|
|
12369
12369
|
class: "field-mapping__rule",
|
|
12370
|
-
label:
|
|
12370
|
+
label: c.$t("sys.edhr.mcTable.parseRule") + ":",
|
|
12371
12371
|
name: "parsingRuleId"
|
|
12372
12372
|
}, {
|
|
12373
|
-
default: withCtx(() => [createElementVNode("div",
|
|
12374
|
-
"model-value":
|
|
12373
|
+
default: withCtx(() => [createElementVNode("div", A2, [createVNode(unref(It), {
|
|
12374
|
+
"model-value": i.parsingRuleId,
|
|
12375
12375
|
"model-key": "em_barcode_parsing_rules",
|
|
12376
12376
|
"show-search": "",
|
|
12377
12377
|
disabled: e.disabled,
|
|
@@ -12381,44 +12381,44 @@ var init_index_es = __esmMin((() => {
|
|
|
12381
12381
|
}, null, 8, ["model-value", "disabled"]), e.collapsible ? (openBlock(), createElementBlock("div", {
|
|
12382
12382
|
key: 0,
|
|
12383
12383
|
class: "field-mapping__expand primary-gct",
|
|
12384
|
-
onClick:
|
|
12385
|
-
}, [createTextVNode(toDisplayString(d.value ?
|
|
12384
|
+
onClick: h[0] || (h[0] = (T) => d.value = !d.value)
|
|
12385
|
+
}, [createTextVNode(toDisplayString(d.value ? c.$t("sys.collapseConfig") : c.$t("sys.expandConfig")) + " ", 1), createElementVNode("i", { class: normalizeClass(["iconfont ml4px", d.value ? "icon-arrow_up_pad" : "icon-arrow_down_pad"]) }, null, 2)])) : createCommentVNode("", !0)])]),
|
|
12386
12386
|
_: 1
|
|
12387
12387
|
}, 8, ["label"]), withDirectives(createElementVNode("div", null, [
|
|
12388
|
-
e.ruleTip && e.tipPlacement === "before" ? (openBlock(), createElementBlock("div",
|
|
12388
|
+
e.ruleTip && e.tipPlacement === "before" ? (openBlock(), createElementBlock("div", O2, [createVNode(m, {
|
|
12389
12389
|
message: e.ruleTip,
|
|
12390
12390
|
type: "info",
|
|
12391
12391
|
"show-icon": ""
|
|
12392
12392
|
}, null, 8, ["message"])])) : createCommentVNode("", !0),
|
|
12393
|
-
createElementVNode("div",
|
|
12394
|
-
e.ruleTip && e.tipPlacement === "after" ? (openBlock(), createElementBlock("div",
|
|
12393
|
+
createElementVNode("div", T2, toDisplayString(c.$t("sys.onlineForm.fieldMapping")), 1),
|
|
12394
|
+
e.ruleTip && e.tipPlacement === "after" ? (openBlock(), createElementBlock("div", q2, [createVNode(m, {
|
|
12395
12395
|
message: e.ruleTip,
|
|
12396
12396
|
type: "info",
|
|
12397
12397
|
"show-icon": ""
|
|
12398
12398
|
}, null, 8, ["message"])])) : createCommentVNode("", !0),
|
|
12399
|
-
createElementVNode("div",
|
|
12400
|
-
|
|
12401
|
-
createElementVNode("div",
|
|
12402
|
-
key:
|
|
12399
|
+
createElementVNode("div", V2, [
|
|
12400
|
+
i.fillMapArr.length ? (openBlock(), createElementBlock("div", L2, [createElementVNode("div", $2, toDisplayString(c.$t("sys.onlineForm.barcodeField")), 1), createElementVNode("div", B2, toDisplayString(e.formFieldsLabel || c.$t("sys.onlineForm.formFields")), 1)])) : createCommentVNode("", !0),
|
|
12401
|
+
createElementVNode("div", z2, [(openBlock(!0), createElementBlock(Fragment, null, renderList(i.fillMapArr, (T, V) => (openBlock(), createElementBlock("div", {
|
|
12402
|
+
key: V,
|
|
12403
12403
|
class: "field-mapping__row"
|
|
12404
12404
|
}, [
|
|
12405
|
-
createVNode(
|
|
12405
|
+
createVNode(y, {
|
|
12406
12406
|
class: "field-mapping__barcodeField",
|
|
12407
12407
|
name: [
|
|
12408
12408
|
"fillMapArr",
|
|
12409
|
-
|
|
12409
|
+
V,
|
|
12410
12410
|
"barcodeField"
|
|
12411
12411
|
],
|
|
12412
12412
|
rules: [{
|
|
12413
12413
|
required: !0,
|
|
12414
|
-
message:
|
|
12414
|
+
message: c.$t("sys.chooseText")
|
|
12415
12415
|
}]
|
|
12416
12416
|
}, {
|
|
12417
12417
|
default: withCtx(() => [createVNode(R, {
|
|
12418
12418
|
value: T.barcodeField,
|
|
12419
12419
|
"onUpdate:value": (O) => T.barcodeField = O,
|
|
12420
|
-
placeholder:
|
|
12421
|
-
options:
|
|
12420
|
+
placeholder: c.$t("sys.chooseText"),
|
|
12421
|
+
options: u.value,
|
|
12422
12422
|
disabled: e.disabled,
|
|
12423
12423
|
onChange: k
|
|
12424
12424
|
}, null, 8, [
|
|
@@ -12430,19 +12430,19 @@ var init_index_es = __esmMin((() => {
|
|
|
12430
12430
|
])]),
|
|
12431
12431
|
_: 2
|
|
12432
12432
|
}, 1032, ["name", "rules"]),
|
|
12433
|
-
|
|
12434
|
-
createVNode(
|
|
12433
|
+
h[1] || (h[1] = createElementVNode("div", { class: "field-mapping__divider" }, [createElementVNode("i", { class: "gct-iconfont icon-lianjie field-mapping__link-icon" })], -1)),
|
|
12434
|
+
createVNode(y, {
|
|
12435
12435
|
class: "field-mapping__formFields",
|
|
12436
12436
|
name: [
|
|
12437
12437
|
"fillMapArr",
|
|
12438
|
-
|
|
12438
|
+
V,
|
|
12439
12439
|
"formFields"
|
|
12440
12440
|
],
|
|
12441
12441
|
rules: [{
|
|
12442
12442
|
required: !0,
|
|
12443
12443
|
type: "array",
|
|
12444
12444
|
min: 1,
|
|
12445
|
-
message:
|
|
12445
|
+
message: c.$t("sys.chooseText")
|
|
12446
12446
|
}]
|
|
12447
12447
|
}, {
|
|
12448
12448
|
default: withCtx(() => [createVNode(R, {
|
|
@@ -12451,9 +12451,9 @@ var init_index_es = __esmMin((() => {
|
|
|
12451
12451
|
mode: "multiple",
|
|
12452
12452
|
"allow-clear": "",
|
|
12453
12453
|
"show-search": "",
|
|
12454
|
-
placeholder:
|
|
12454
|
+
placeholder: c.$t("sys.chooseText"),
|
|
12455
12455
|
options: e.formFieldOptions,
|
|
12456
|
-
"filter-option":
|
|
12456
|
+
"filter-option": C,
|
|
12457
12457
|
disabled: e.disabled,
|
|
12458
12458
|
onChange: k
|
|
12459
12459
|
}, null, 8, [
|
|
@@ -12465,11 +12465,11 @@ var init_index_es = __esmMin((() => {
|
|
|
12465
12465
|
])]),
|
|
12466
12466
|
_: 2
|
|
12467
12467
|
}, 1032, ["name", "rules"]),
|
|
12468
|
-
e.disabled ? createCommentVNode("", !0) : (openBlock(), createElementBlock("div",
|
|
12468
|
+
e.disabled ? createCommentVNode("", !0) : (openBlock(), createElementBlock("div", F2, [createElementVNode("i", {
|
|
12469
12469
|
class: "field-mapping__remove-btn iconfont icon-shanchu1",
|
|
12470
|
-
title:
|
|
12471
|
-
onClick: (O) => M(
|
|
12472
|
-
}, null, 8,
|
|
12470
|
+
title: c.$t("sys.delete"),
|
|
12471
|
+
onClick: (O) => M(V)
|
|
12472
|
+
}, null, 8, D2)]))
|
|
12473
12473
|
]))), 128))]),
|
|
12474
12474
|
e.disabled ? createCommentVNode("", !0) : (openBlock(), createBlock($, {
|
|
12475
12475
|
key: 1,
|
|
@@ -12477,7 +12477,7 @@ var init_index_es = __esmMin((() => {
|
|
|
12477
12477
|
type: "link",
|
|
12478
12478
|
onClick: g
|
|
12479
12479
|
}, {
|
|
12480
|
-
default: withCtx(() => [
|
|
12480
|
+
default: withCtx(() => [h[2] || (h[2] = createElementVNode("i", { class: "iconfont icon-tianjia" }, null, -1)), createTextVNode(" " + toDisplayString(c.$t("sys.onlineForm.addFieldMapping")), 1)]),
|
|
12481
12481
|
_: 1
|
|
12482
12482
|
}))
|
|
12483
12483
|
])
|
|
@@ -12487,14 +12487,14 @@ var init_index_es = __esmMin((() => {
|
|
|
12487
12487
|
};
|
|
12488
12488
|
}
|
|
12489
12489
|
}), [["__scopeId", "data-v-08ab3025"]]);
|
|
12490
|
-
|
|
12491
|
-
|
|
12492
|
-
|
|
12490
|
+
U2 = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_401_32653)'%3e%3cpath%20d='M8.41026%205.53845H6.03849C5.76236%205.53845%205.5385%205.7623%205.5385%206.03844L5.53847%207.26153V8.41025'%20stroke='%231A1D23'%20stroke-width='1.5'%20stroke-linecap='square'/%3e%3cpath%20d='M8.41026%2018.4615H6.03849C5.76236%2018.4615%205.5385%2018.2377%205.5385%2017.9616L5.53847%2016.7385V15.5898'%20stroke='%231A1D23'%20stroke-width='1.5'%20stroke-linecap='square'/%3e%3cpath%20d='M15.5897%205.53845H17.9615C18.2376%205.53845%2018.4615%205.76231%2018.4615%206.03845L18.4615%208.41025'%20stroke='%231A1D23'%20stroke-width='1.5'%20stroke-linecap='square'/%3e%3cpath%20d='M15.5897%2018.4615H17.9615C18.2376%2018.4615%2018.4615%2018.2377%2018.4615%2017.9616L18.4615%2016.7385V15.5898'%20stroke='%231A1D23'%20stroke-width='1.5'%20stroke-linecap='square'/%3e%3cpath%20d='M23.8461%2012H0.153809'%20stroke='url(%23paint0_linear_401_32653)'%20stroke-width='2'%20stroke-linecap='square'/%3e%3c/g%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_401_32653'%20x1='0.153809'%20y1='12.5'%20x2='23.8461'%20y2='12.5'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23026AC8'%20stop-opacity='0'/%3e%3cstop%20offset='0.5'%20stop-color='%23026AC8'/%3e%3cstop%20offset='1'%20stop-color='%23026AC8'%20stop-opacity='0'/%3e%3c/linearGradient%3e%3cclipPath%20id='clip0_401_32653'%3e%3crect%20width='24'%20height='24'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e";
|
|
12491
|
+
K2 = { class: "scan-modal__content" };
|
|
12492
|
+
I2 = {
|
|
12493
12493
|
key: 0,
|
|
12494
12494
|
class: "bg-radio"
|
|
12495
12495
|
};
|
|
12496
|
-
|
|
12497
|
-
|
|
12496
|
+
E2 = ["src"];
|
|
12497
|
+
P2 = /* @__PURE__ */ Z$1(/* @__PURE__ */ defineComponent({
|
|
12498
12498
|
__name: "modal",
|
|
12499
12499
|
props: {
|
|
12500
12500
|
modalVisible: { type: Boolean },
|
|
@@ -12509,10 +12509,10 @@ var init_index_es = __esmMin((() => {
|
|
|
12509
12509
|
parsingRuleId: (_t$bizOptions$scanRul = t.bizOptions.scanRules) === null || _t$bizOptions$scanRul === void 0 ? void 0 : _t$bizOptions$scanRul.parsingRuleId,
|
|
12510
12510
|
fillMapArr: cloneDeep((_t$bizOptions$scanRul2 = t.bizOptions.scanRules) === null || _t$bizOptions$scanRul2 === void 0 ? void 0 : _t$bizOptions$scanRul2.fillMapArr) ?? []
|
|
12511
12511
|
}), d = ref();
|
|
12512
|
-
function
|
|
12512
|
+
function u(_) {
|
|
12513
12513
|
n.value = _;
|
|
12514
12514
|
}
|
|
12515
|
-
const
|
|
12515
|
+
const i = (_) => {
|
|
12516
12516
|
d.value = _;
|
|
12517
12517
|
}, k = async () => {
|
|
12518
12518
|
if (!d.value && !t.bizOptions.scanParam) {
|
|
@@ -12521,18 +12521,18 @@ var init_index_es = __esmMin((() => {
|
|
|
12521
12521
|
}
|
|
12522
12522
|
let _, f = {};
|
|
12523
12523
|
const g = s.value.fillMapArr;
|
|
12524
|
-
d.value ? _ =
|
|
12524
|
+
d.value ? _ = S2(s.value.str, JSON.stringify(d.value)) : t.bizOptions.scanParam && (_ = { [t.bizOptions.scanParam]: s.value.str }), g !== null && g !== void 0 && g.length && _ && (f = R2(_, g));
|
|
12525
12525
|
const M = {
|
|
12526
12526
|
str: s.value.str,
|
|
12527
12527
|
parsedValue: _,
|
|
12528
12528
|
transformedData: f,
|
|
12529
12529
|
type: t.bizOptions.showScanAdjustBtn ? n.value : void 0
|
|
12530
|
-
},
|
|
12531
|
-
s.value.str = "",
|
|
12530
|
+
}, C = await t.bizOptions.onScan(M);
|
|
12531
|
+
s.value.str = "", C && t.modalInst.cancel();
|
|
12532
12532
|
};
|
|
12533
12533
|
return (_, f) => {
|
|
12534
|
-
const g = resolveComponent("a-input"), M = resolveComponent("a-form-item"),
|
|
12535
|
-
return openBlock(), createBlock(
|
|
12534
|
+
const g = resolveComponent("a-input"), M = resolveComponent("a-form-item"), C = resolveComponent("a-form"), c = resolveComponent("a-divider");
|
|
12535
|
+
return openBlock(), createBlock(mt, mergeProps(t.modalProps, {
|
|
12536
12536
|
class: "gct-form-base-modal-common-scan",
|
|
12537
12537
|
visible: t.modalVisible,
|
|
12538
12538
|
title: t.bizOptions.title || _.$t("sys.edhr.mcTable.scanEntry"),
|
|
@@ -12542,17 +12542,17 @@ var init_index_es = __esmMin((() => {
|
|
|
12542
12542
|
footer: !1,
|
|
12543
12543
|
draggable: "",
|
|
12544
12544
|
onCancel: t.modalInst.cancel,
|
|
12545
|
-
onAfterClose: f[5] || (f[5] = (
|
|
12545
|
+
onAfterClose: f[5] || (f[5] = (h) => a("afterClose"))
|
|
12546
12546
|
}), {
|
|
12547
|
-
default: withCtx(() => [createElementVNode("div",
|
|
12548
|
-
l.value ? (openBlock(), createElementBlock("div",
|
|
12547
|
+
default: withCtx(() => [createElementVNode("div", K2, [
|
|
12548
|
+
l.value ? (openBlock(), createElementBlock("div", I2, [createElementVNode("div", {
|
|
12549
12549
|
class: normalizeClass(["bg-radio-item", [n.value === "add" && "active"]]),
|
|
12550
|
-
onClick: f[0] || (f[0] = (
|
|
12550
|
+
onClick: f[0] || (f[0] = (h) => u("add"))
|
|
12551
12551
|
}, [...f[6] || (f[6] = [createElementVNode("i", { class: "iconfont icon-chuangjian" }, null, -1), createTextVNode(" " + toDisplayString("添加实盘数量"), -1)])], 2), createElementVNode("div", {
|
|
12552
12552
|
class: normalizeClass(["bg-radio-item", [n.value === "minus" && "active"]]),
|
|
12553
|
-
onClick: f[1] || (f[1] = (
|
|
12553
|
+
onClick: f[1] || (f[1] = (h) => u("minus"))
|
|
12554
12554
|
}, [...f[7] || (f[7] = [createElementVNode("i", { class: "iconfont icon-jiantouxia_arrow-down" }, null, -1), createTextVNode(" " + toDisplayString("减去实盘数量"), -1)])], 2)])) : createCommentVNode("", !0),
|
|
12555
|
-
createVNode(
|
|
12555
|
+
createVNode(C, {
|
|
12556
12556
|
ref: "formRef",
|
|
12557
12557
|
model: s.value,
|
|
12558
12558
|
layout: "horizontal"
|
|
@@ -12563,37 +12563,37 @@ var init_index_es = __esmMin((() => {
|
|
|
12563
12563
|
}, {
|
|
12564
12564
|
default: withCtx(() => [createVNode(g, {
|
|
12565
12565
|
value: s.value.str,
|
|
12566
|
-
"onUpdate:value": f[2] || (f[2] = (
|
|
12566
|
+
"onUpdate:value": f[2] || (f[2] = (h) => s.value.str = h),
|
|
12567
12567
|
size: "large",
|
|
12568
12568
|
placeholder: _.$t("sys.edhr.mcTable.pleaseScanEntry"),
|
|
12569
12569
|
onKeyup: withKeys(k, ["enter"])
|
|
12570
12570
|
}, {
|
|
12571
12571
|
prefix: withCtx(() => [createElementVNode("img", {
|
|
12572
|
-
src: unref(
|
|
12572
|
+
src: unref(U2),
|
|
12573
12573
|
width: "24",
|
|
12574
12574
|
height: "24"
|
|
12575
|
-
}, null, 8,
|
|
12575
|
+
}, null, 8, E2)]),
|
|
12576
12576
|
_: 1
|
|
12577
12577
|
}, 8, ["value", "placeholder"])]),
|
|
12578
12578
|
_: 1
|
|
12579
12579
|
})]),
|
|
12580
12580
|
_: 1
|
|
12581
12581
|
}, 8, ["model"]),
|
|
12582
|
-
createVNode(
|
|
12582
|
+
createVNode(c, { style: {
|
|
12583
12583
|
width: "calc(100% + 48px)",
|
|
12584
12584
|
margin: "28px 0 16px -24px",
|
|
12585
12585
|
"border-color": "#E0E3EB"
|
|
12586
12586
|
} }),
|
|
12587
|
-
createVNode(unref(
|
|
12587
|
+
createVNode(unref(Ja), {
|
|
12588
12588
|
"parsing-rule-id": s.value.parsingRuleId,
|
|
12589
|
-
"onUpdate:parsingRuleId": f[3] || (f[3] = (
|
|
12589
|
+
"onUpdate:parsingRuleId": f[3] || (f[3] = (h) => s.value.parsingRuleId = h),
|
|
12590
12590
|
"fill-map-arr": s.value.fillMapArr,
|
|
12591
|
-
"onUpdate:fillMapArr": f[4] || (f[4] = (
|
|
12591
|
+
"onUpdate:fillMapArr": f[4] || (f[4] = (h) => s.value.fillMapArr = h),
|
|
12592
12592
|
collapsible: "",
|
|
12593
12593
|
"form-field-options": t.bizOptions.formFieldOptions,
|
|
12594
12594
|
"form-fields-label": t.bizOptions.formFieldsLabel,
|
|
12595
12595
|
"rule-tip": t.bizOptions.ruleTip,
|
|
12596
|
-
onRuleConfigChange:
|
|
12596
|
+
onRuleConfigChange: i
|
|
12597
12597
|
}, null, 8, [
|
|
12598
12598
|
"parsing-rule-id",
|
|
12599
12599
|
"fill-map-arr",
|
|
@@ -12611,12 +12611,12 @@ var init_index_es = __esmMin((() => {
|
|
|
12611
12611
|
};
|
|
12612
12612
|
}
|
|
12613
12613
|
}), [["__scopeId", "data-v-99dc42ea"]]);
|
|
12614
|
-
|
|
12614
|
+
j2 = {
|
|
12615
12615
|
key: 0,
|
|
12616
12616
|
class: "substitute-policy-item__nested"
|
|
12617
12617
|
};
|
|
12618
|
-
|
|
12619
|
-
|
|
12618
|
+
W2 = { class: "substitute-policy-item__sub-toolbar" };
|
|
12619
|
+
G2 = /* @__PURE__ */ Z$1(/* @__PURE__ */ defineComponent({
|
|
12620
12620
|
__name: "substitute-item",
|
|
12621
12621
|
props: /* @__PURE__ */ mergeModels({
|
|
12622
12622
|
hasIds: {},
|
|
@@ -12650,39 +12650,39 @@ var init_index_es = __esmMin((() => {
|
|
|
12650
12650
|
width: 88
|
|
12651
12651
|
}
|
|
12652
12652
|
];
|
|
12653
|
-
function l(
|
|
12654
|
-
return
|
|
12653
|
+
function l(C) {
|
|
12654
|
+
return C ? C.split(":")[0] : "";
|
|
12655
12655
|
}
|
|
12656
|
-
function s(
|
|
12657
|
-
return !
|
|
12656
|
+
function s(C, c) {
|
|
12657
|
+
return !C || !c ? !1 : C === c ? !0 : l(C) === l(c);
|
|
12658
12658
|
}
|
|
12659
|
-
function d(
|
|
12659
|
+
function d(C, c) {
|
|
12660
12660
|
var _o$hasIds;
|
|
12661
|
-
const
|
|
12662
|
-
return
|
|
12661
|
+
const h = c ?? C.product_id_;
|
|
12662
|
+
return h ? ((_o$hasIds = o.hasIds) === null || _o$hasIds === void 0 ? void 0 : _o$hasIds.includes(h)) ? $t("sys.edhr.mcTable.materialAlreadyExists") : s(h, t.value.product_id_) ? $t("sys.edhr.mcTable.substituteContainsMainMaterial") : (t.value.substitute_material_entries_ ?? []).some((m) => m.__key !== C.__key && s(m.product_id_, h)) ? $t("sys.edhr.mcTable.substituteMaterialDuplicated") : "" : "";
|
|
12663
12663
|
}
|
|
12664
|
-
function
|
|
12664
|
+
function u(C) {
|
|
12665
12665
|
return [{
|
|
12666
12666
|
required: !0,
|
|
12667
12667
|
message: $t("sys.pleaseSelectSth", { sth: $t("sys.material") })
|
|
12668
|
-
}, { validator: async (
|
|
12669
|
-
const
|
|
12670
|
-
if (
|
|
12668
|
+
}, { validator: async (c, h) => {
|
|
12669
|
+
const y = d(C, h);
|
|
12670
|
+
if (y) return Promise.reject(y);
|
|
12671
12671
|
} }];
|
|
12672
12672
|
}
|
|
12673
|
-
function
|
|
12674
|
-
const
|
|
12673
|
+
function i(C) {
|
|
12674
|
+
const c = (C === null || C === void 0 ? void 0 : C._info) ?? {}, h = ((C === null || C === void 0 ? void 0 : C.displayLabel) || "").split(":"), y = h.length > 1 ? h[0] : typeof (C === null || C === void 0 ? void 0 : C.title) == "string" ? C.title : "";
|
|
12675
12675
|
return {
|
|
12676
|
-
product_code_:
|
|
12677
|
-
product_name_:
|
|
12678
|
-
product_version_:
|
|
12679
|
-
product_spec_:
|
|
12676
|
+
product_code_: c.code_ ?? "",
|
|
12677
|
+
product_name_: c.name_ ?? y ?? "",
|
|
12678
|
+
product_version_: c.version_ ?? c.__LABEL__ ?? "",
|
|
12679
|
+
product_spec_: c.spec_ ?? c.specification_ ?? ""
|
|
12680
12680
|
};
|
|
12681
12681
|
}
|
|
12682
|
-
function k(
|
|
12683
|
-
return
|
|
12684
|
-
product_id_:
|
|
12685
|
-
...
|
|
12682
|
+
function k(C, c) {
|
|
12683
|
+
return C ? {
|
|
12684
|
+
product_id_: C,
|
|
12685
|
+
...i(c)
|
|
12686
12686
|
} : {
|
|
12687
12687
|
product_id_: void 0,
|
|
12688
12688
|
product_code_: void 0,
|
|
@@ -12693,19 +12693,19 @@ var init_index_es = __esmMin((() => {
|
|
|
12693
12693
|
}
|
|
12694
12694
|
function _() {
|
|
12695
12695
|
var _o$form;
|
|
12696
|
-
const
|
|
12696
|
+
const C = (t.value.substitute_material_entries_ ?? []).map((c, h) => [
|
|
12697
12697
|
"substitute_material_entries_",
|
|
12698
|
-
|
|
12698
|
+
h,
|
|
12699
12699
|
"product_id_"
|
|
12700
12700
|
]);
|
|
12701
|
-
if (
|
|
12701
|
+
if (C.length) return (_o$form = o.form) === null || _o$form === void 0 ? void 0 : _o$form.validateFields(C).catch(() => {});
|
|
12702
12702
|
}
|
|
12703
|
-
function f(
|
|
12704
|
-
Object.assign(
|
|
12703
|
+
function f(C, c, h) {
|
|
12704
|
+
Object.assign(C, k(c ?? null, h)), nextTick(() => _());
|
|
12705
12705
|
}
|
|
12706
12706
|
function g() {
|
|
12707
12707
|
t.value.substitute_material_entries_.push({
|
|
12708
|
-
__key:
|
|
12708
|
+
__key: He(8),
|
|
12709
12709
|
product_id_: void 0,
|
|
12710
12710
|
product_code_: "",
|
|
12711
12711
|
product_name_: "",
|
|
@@ -12714,44 +12714,44 @@ var init_index_es = __esmMin((() => {
|
|
|
12714
12714
|
qty_required_: t.value.qty_required_ ?? 0
|
|
12715
12715
|
});
|
|
12716
12716
|
}
|
|
12717
|
-
function M(
|
|
12718
|
-
t.value.substitute_material_entries_.splice(
|
|
12717
|
+
function M(C) {
|
|
12718
|
+
t.value.substitute_material_entries_.splice(C, 1), nextTick(() => _());
|
|
12719
12719
|
}
|
|
12720
12720
|
return watch(() => t.value.product_id_, () => {
|
|
12721
12721
|
nextTick(() => _());
|
|
12722
|
-
}), (
|
|
12723
|
-
const
|
|
12724
|
-
return openBlock(), createElementBlock(Fragment, null, [createVNode(
|
|
12725
|
-
label:
|
|
12722
|
+
}), (C, c) => {
|
|
12723
|
+
const h = resolveComponent("a-radio"), y = resolveComponent("a-radio-group"), m = resolveComponent("a-form-item"), R = resolveComponent("a-select"), $ = resolveComponent("a-col"), F = resolveComponent("a-row"), T = resolveComponent("a-button"), V = resolveComponent("a-table");
|
|
12724
|
+
return openBlock(), createElementBlock(Fragment, null, [createVNode(m, {
|
|
12725
|
+
label: C.$t("sys.edhr.mcTable.substituteMaterialEnabled"),
|
|
12726
12726
|
name: "substitute_material_enabled_",
|
|
12727
|
-
rules: [unref(Re)(
|
|
12727
|
+
rules: [unref(Re)(C.$t("sys.edhr.mcTable.substituteMaterialEnabled"))]
|
|
12728
12728
|
}, {
|
|
12729
|
-
default: withCtx(() => [createVNode(
|
|
12729
|
+
default: withCtx(() => [createVNode(y, {
|
|
12730
12730
|
value: t.value.substitute_material_enabled_,
|
|
12731
|
-
"onUpdate:value":
|
|
12731
|
+
"onUpdate:value": c[0] || (c[0] = (O) => t.value.substitute_material_enabled_ = O)
|
|
12732
12732
|
}, {
|
|
12733
|
-
default: withCtx(() => [createVNode(
|
|
12734
|
-
default: withCtx(() => [createTextVNode(toDisplayString(
|
|
12733
|
+
default: withCtx(() => [createVNode(h, { value: !0 }, {
|
|
12734
|
+
default: withCtx(() => [createTextVNode(toDisplayString(C.$t("sys.true")), 1)]),
|
|
12735
12735
|
_: 1
|
|
12736
|
-
}), createVNode(
|
|
12737
|
-
default: withCtx(() => [createTextVNode(toDisplayString(
|
|
12736
|
+
}), createVNode(h, { value: !1 }, {
|
|
12737
|
+
default: withCtx(() => [createTextVNode(toDisplayString(C.$t("sys.false")), 1)]),
|
|
12738
12738
|
_: 1
|
|
12739
12739
|
})]),
|
|
12740
12740
|
_: 1
|
|
12741
12741
|
}, 8, ["value"])]),
|
|
12742
12742
|
_: 1
|
|
12743
|
-
}, 8, ["label", "rules"]), t.value.substitute_material_enabled_ ? (openBlock(), createElementBlock("div",
|
|
12744
|
-
createVNode(
|
|
12743
|
+
}, 8, ["label", "rules"]), t.value.substitute_material_enabled_ ? (openBlock(), createElementBlock("div", j2, [
|
|
12744
|
+
createVNode(F, { gutter: 16 }, {
|
|
12745
12745
|
default: withCtx(() => [createVNode($, { span: 12 }, {
|
|
12746
|
-
default: withCtx(() => [createVNode(
|
|
12747
|
-
label:
|
|
12746
|
+
default: withCtx(() => [createVNode(m, {
|
|
12747
|
+
label: C.$t("sys.edhr.mcTable.substitutePolicy"),
|
|
12748
12748
|
name: "substitute_policy_",
|
|
12749
12749
|
required: ""
|
|
12750
12750
|
}, {
|
|
12751
12751
|
default: withCtx(() => [createVNode(R, {
|
|
12752
12752
|
value: t.value.substitute_policy_,
|
|
12753
|
-
"onUpdate:value":
|
|
12754
|
-
placeholder:
|
|
12753
|
+
"onUpdate:value": c[1] || (c[1] = (O) => t.value.substitute_policy_ = O),
|
|
12754
|
+
placeholder: C.$t("sys.chooseText"),
|
|
12755
12755
|
options: a
|
|
12756
12756
|
}, null, 8, ["value", "placeholder"])]),
|
|
12757
12757
|
_: 1
|
|
@@ -12760,42 +12760,42 @@ var init_index_es = __esmMin((() => {
|
|
|
12760
12760
|
})]),
|
|
12761
12761
|
_: 1
|
|
12762
12762
|
}),
|
|
12763
|
-
createElementVNode("div",
|
|
12763
|
+
createElementVNode("div", W2, [createVNode(T, {
|
|
12764
12764
|
type: "link",
|
|
12765
12765
|
class: "substitute-policy-item__add-row",
|
|
12766
12766
|
onClick: g
|
|
12767
12767
|
}, {
|
|
12768
|
-
default: withCtx(() => [createVNode(unref(PlusOutlined)), createTextVNode(" " + toDisplayString(
|
|
12768
|
+
default: withCtx(() => [createVNode(unref(PlusOutlined)), createTextVNode(" " + toDisplayString(C.$t("sys.edhr.addRow")), 1)]),
|
|
12769
12769
|
_: 1
|
|
12770
12770
|
})]),
|
|
12771
|
-
createVNode(
|
|
12771
|
+
createVNode(V, {
|
|
12772
12772
|
"data-source": t.value.substitute_material_entries_,
|
|
12773
12773
|
columns: n,
|
|
12774
12774
|
pagination: !1,
|
|
12775
12775
|
size: "small",
|
|
12776
12776
|
"row-key": "__key",
|
|
12777
|
-
locale: { emptyText:
|
|
12777
|
+
locale: { emptyText: C.$t("sys.noData") }
|
|
12778
12778
|
}, {
|
|
12779
|
-
headerCell: withCtx(({ column: O }) => [O.key === "product_id_" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
12780
|
-
bodyCell: withCtx(({ column: O, record: A, index:
|
|
12779
|
+
headerCell: withCtx(({ column: O }) => [O.key === "product_id_" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [c[2] || (c[2] = createElementVNode("span", { class: "substitute-policy-item__required-mark" }, "*", -1)), createTextVNode(" " + toDisplayString(O.title), 1)], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [createTextVNode(toDisplayString(O.title), 1)], 64))]),
|
|
12780
|
+
bodyCell: withCtx(({ column: O, record: A, index: S }) => [O.key === "index" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [createTextVNode(toDisplayString(S + 1), 1)], 64)) : O.key === "product_id_" ? (openBlock(), createBlock(m, {
|
|
12781
12781
|
key: 1,
|
|
12782
12782
|
class: "substitute-policy-item__table-item",
|
|
12783
12783
|
name: [
|
|
12784
12784
|
"substitute_material_entries_",
|
|
12785
|
-
|
|
12785
|
+
S,
|
|
12786
12786
|
"product_id_"
|
|
12787
12787
|
],
|
|
12788
|
-
rules:
|
|
12788
|
+
rules: u(A)
|
|
12789
12789
|
}, {
|
|
12790
|
-
default: withCtx(() => [createVNode(unref(
|
|
12790
|
+
default: withCtx(() => [createVNode(unref(It), {
|
|
12791
12791
|
"model-value": A.product_id_ || void 0,
|
|
12792
12792
|
"model-key": "em_product",
|
|
12793
|
-
placeholder:
|
|
12793
|
+
placeholder: C.$t("sys.chooseText"),
|
|
12794
12794
|
"parent-to-default": !1,
|
|
12795
12795
|
"disabled-parent": !1,
|
|
12796
12796
|
"show-search": !0,
|
|
12797
12797
|
"query-data": { "product_type_.ne": "finishedProduct" },
|
|
12798
|
-
onChange: (
|
|
12798
|
+
onChange: (L, U) => f(A, L, U)
|
|
12799
12799
|
}, null, 8, [
|
|
12800
12800
|
"model-value",
|
|
12801
12801
|
"placeholder",
|
|
@@ -12806,9 +12806,9 @@ var init_index_es = __esmMin((() => {
|
|
|
12806
12806
|
key: 2,
|
|
12807
12807
|
type: "link",
|
|
12808
12808
|
danger: "",
|
|
12809
|
-
onClick: (
|
|
12809
|
+
onClick: (L) => M(S)
|
|
12810
12810
|
}, {
|
|
12811
|
-
default: withCtx(() => [createTextVNode(toDisplayString(
|
|
12811
|
+
default: withCtx(() => [createTextVNode(toDisplayString(C.$t("sys.delete")), 1)]),
|
|
12812
12812
|
_: 1
|
|
12813
12813
|
}, 8, ["onClick"])) : createCommentVNode("", !0)]),
|
|
12814
12814
|
_: 1
|
|
@@ -12817,14 +12817,14 @@ var init_index_es = __esmMin((() => {
|
|
|
12817
12817
|
};
|
|
12818
12818
|
}
|
|
12819
12819
|
}), [["__scopeId", "data-v-7c384024"]]);
|
|
12820
|
-
|
|
12821
|
-
|
|
12822
|
-
|
|
12823
|
-
|
|
12820
|
+
X2 = { class: "bom-entry-modal__content" };
|
|
12821
|
+
J2 = { class: "bom-entry-modal__section-title" };
|
|
12822
|
+
Q2 = { class: "bom-entry-modal__section-title" };
|
|
12823
|
+
Y2 = {
|
|
12824
12824
|
key: 0,
|
|
12825
12825
|
class: "bom-entry-modal__nested"
|
|
12826
12826
|
};
|
|
12827
|
-
|
|
12827
|
+
tf = /* @__PURE__ */ Z$1(/* @__PURE__ */ defineComponent({
|
|
12828
12828
|
__name: "modal",
|
|
12829
12829
|
props: {
|
|
12830
12830
|
modalVisible: { type: Boolean },
|
|
@@ -12865,30 +12865,30 @@ var init_index_es = __esmMin((() => {
|
|
|
12865
12865
|
};
|
|
12866
12866
|
}
|
|
12867
12867
|
function d(T) {
|
|
12868
|
-
return (T ?? []).map((
|
|
12869
|
-
...cloneDeep(
|
|
12870
|
-
__key:
|
|
12868
|
+
return (T ?? []).map((V) => ({
|
|
12869
|
+
...cloneDeep(V),
|
|
12870
|
+
__key: He(8)
|
|
12871
12871
|
}));
|
|
12872
12872
|
}
|
|
12873
|
-
function
|
|
12874
|
-
return (T ?? []).map((
|
|
12875
|
-
...cloneDeep(
|
|
12876
|
-
__key:
|
|
12873
|
+
function u(T) {
|
|
12874
|
+
return (T ?? []).map((V) => ({
|
|
12875
|
+
...cloneDeep(V),
|
|
12876
|
+
__key: He(8)
|
|
12877
12877
|
}));
|
|
12878
12878
|
}
|
|
12879
|
-
let
|
|
12879
|
+
let i = reactive({
|
|
12880
12880
|
...s(),
|
|
12881
12881
|
...t.bizOptions.data ? cloneDeep(t.bizOptions.data) : {},
|
|
12882
12882
|
substitute_material_entries_: d((_t$bizOptions$data = t.bizOptions.data) === null || _t$bizOptions$data === void 0 ? void 0 : _t$bizOptions$data.substitute_material_entries_),
|
|
12883
|
-
consume_storage_entries_:
|
|
12883
|
+
consume_storage_entries_: u((_t$bizOptions$data2 = t.bizOptions.data) === null || _t$bizOptions$data2 === void 0 ? void 0 : _t$bizOptions$data2.consume_storage_entries_)
|
|
12884
12884
|
});
|
|
12885
12885
|
const k = computed(() => {
|
|
12886
12886
|
const T = {
|
|
12887
12887
|
product_id_: [{
|
|
12888
12888
|
required: !0,
|
|
12889
12889
|
message: $t("sys.pleaseSelectSth", { sth: $t("sys.material") })
|
|
12890
|
-
}, { validator: async (
|
|
12891
|
-
const A =
|
|
12890
|
+
}, { validator: async (V, O) => {
|
|
12891
|
+
const A = c(O);
|
|
12892
12892
|
if (A) return Promise.reject(A);
|
|
12893
12893
|
} }],
|
|
12894
12894
|
qty_required_: [{
|
|
@@ -12901,42 +12901,42 @@ var init_index_es = __esmMin((() => {
|
|
|
12901
12901
|
}],
|
|
12902
12902
|
force_loading_enabled_: [Re($t("sys.edhr.mcTable.forceLoadingEnabled"))]
|
|
12903
12903
|
};
|
|
12904
|
-
return
|
|
12904
|
+
return i.type_ !== "view" && (T.consume_enabled_ = [Re($t("sys.edhr.mcTable.consumeEnabled"))], i.consume_enabled_ && (T.consume_source_config_ = [{
|
|
12905
12905
|
required: !0,
|
|
12906
12906
|
message: $t("sys.pleaseSelectSth", { sth: $t("sys.edhr.mcTable.consumeSourceConfig") })
|
|
12907
|
-
}],
|
|
12907
|
+
}], i.consume_source_config_ === "custom" && (T.default_warehouse_id_ = [{
|
|
12908
12908
|
required: !0,
|
|
12909
12909
|
message: $t("sys.pleaseSelectSth", { sth: $t("sys.edhr.mcTable.defaultWarehouse") })
|
|
12910
|
-
}])), T.qty_validation_enabled_ = [Re($t("sys.edhr.mcTable.qtyValidationEnabled"))],
|
|
12910
|
+
}])), T.qty_validation_enabled_ = [Re($t("sys.edhr.mcTable.qtyValidationEnabled"))], i.qty_validation_enabled_ && (T.qty_validation_rule_ = [{
|
|
12911
12911
|
required: !0,
|
|
12912
12912
|
message: $t("sys.pleaseSelectSth", { sth: $t("sys.edhr.mcTable.qtyValidationRule") })
|
|
12913
|
-
}],
|
|
12913
|
+
}], i.qty_validation_rule_ === "bounds" && (T.max_value_ = [{
|
|
12914
12914
|
required: !0,
|
|
12915
12915
|
message: $t("sys.pleaseInputSth", { sth: $t("sys.edhr.mcTable.qtyValidationMax") })
|
|
12916
12916
|
}], T.min_value_ = [{
|
|
12917
12917
|
required: !0,
|
|
12918
12918
|
message: $t("sys.pleaseInputSth", { sth: $t("sys.edhr.mcTable.qtyValidationMin") })
|
|
12919
|
-
}])), T.substitute_material_enabled_ = [Re($t("sys.edhr.mcTable.substituteMaterialEnabled"))],
|
|
12919
|
+
}])), T.substitute_material_enabled_ = [Re($t("sys.edhr.mcTable.substituteMaterialEnabled"))], i.substitute_material_enabled_ && (T.substitute_policy_ = [{
|
|
12920
12920
|
required: !0,
|
|
12921
12921
|
message: $t("sys.pleaseSelectSth", { sth: $t("sys.edhr.mcTable.substitutePolicy") })
|
|
12922
|
-
}])),
|
|
12922
|
+
}])), i.type_ === "by_lot" && (T.lot_mixing_enabled_ = [Re($t("sys.edhr.mcTable.lotMixingEnabled"))], i.lot_mixing_enabled_ && (T.lot_mixing_times_ = [{
|
|
12923
12923
|
required: !0,
|
|
12924
12924
|
message: $t("sys.pleaseInputSth", { sth: $t("sys.edhr.mcTable.lotMixingTimes") })
|
|
12925
12925
|
}])), T;
|
|
12926
12926
|
});
|
|
12927
12927
|
function _(T) {
|
|
12928
|
-
const
|
|
12928
|
+
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 : "";
|
|
12929
12929
|
return {
|
|
12930
|
-
product_code_:
|
|
12931
|
-
product_name_:
|
|
12932
|
-
product_version_:
|
|
12933
|
-
product_spec_:
|
|
12930
|
+
product_code_: V.code_ ?? "",
|
|
12931
|
+
product_name_: V.name_ ?? A ?? "",
|
|
12932
|
+
product_version_: V.version_ ?? V.__LABEL__ ?? "",
|
|
12933
|
+
product_spec_: V.spec_ ?? V.specification_ ?? ""
|
|
12934
12934
|
};
|
|
12935
12935
|
}
|
|
12936
|
-
function f(T,
|
|
12936
|
+
function f(T, V) {
|
|
12937
12937
|
return T ? {
|
|
12938
12938
|
product_id_: T,
|
|
12939
|
-
..._(
|
|
12939
|
+
..._(V)
|
|
12940
12940
|
} : {
|
|
12941
12941
|
product_id_: void 0,
|
|
12942
12942
|
product_code_: void 0,
|
|
@@ -12948,31 +12948,31 @@ var init_index_es = __esmMin((() => {
|
|
|
12948
12948
|
function g(T) {
|
|
12949
12949
|
return T ? T.split(":")[0] : "";
|
|
12950
12950
|
}
|
|
12951
|
-
function M(T,
|
|
12952
|
-
return !T || !
|
|
12951
|
+
function M(T, V) {
|
|
12952
|
+
return !T || !V ? !1 : T === V ? !0 : g(T) === g(V);
|
|
12953
12953
|
}
|
|
12954
|
-
function
|
|
12955
|
-
return T ? (t.bizOptions.hasIds ?? []).some((
|
|
12954
|
+
function C(T) {
|
|
12955
|
+
return T ? (t.bizOptions.hasIds ?? []).some((V) => M(V, T)) : !1;
|
|
12956
12956
|
}
|
|
12957
|
-
function
|
|
12958
|
-
const
|
|
12959
|
-
return
|
|
12957
|
+
function c(T) {
|
|
12958
|
+
const V = T ?? i.product_id_;
|
|
12959
|
+
return V && C(V) ? $t("sys.edhr.mcTable.materialAlreadyExists") : "";
|
|
12960
12960
|
}
|
|
12961
|
-
function
|
|
12962
|
-
Object.assign(
|
|
12961
|
+
function h(T, V) {
|
|
12962
|
+
Object.assign(i, f(T ?? null, V));
|
|
12963
12963
|
}
|
|
12964
|
-
function
|
|
12965
|
-
return T.map((
|
|
12966
|
-
const { __key: O, ...A } =
|
|
12964
|
+
function y(T = []) {
|
|
12965
|
+
return T.map((V) => {
|
|
12966
|
+
const { __key: O, ...A } = V;
|
|
12967
12967
|
return {
|
|
12968
12968
|
...A,
|
|
12969
|
-
qty_required_:
|
|
12969
|
+
qty_required_: i.qty_required_ ?? A.qty_required_ ?? 0
|
|
12970
12970
|
};
|
|
12971
12971
|
});
|
|
12972
12972
|
}
|
|
12973
|
-
function
|
|
12974
|
-
return T.map((
|
|
12975
|
-
const { __key: O, ...A } =
|
|
12973
|
+
function m(T = []) {
|
|
12974
|
+
return T.map((V) => {
|
|
12975
|
+
const { __key: O, ...A } = V;
|
|
12976
12976
|
return A;
|
|
12977
12977
|
});
|
|
12978
12978
|
}
|
|
@@ -12980,30 +12980,30 @@ var init_index_es = __esmMin((() => {
|
|
|
12980
12980
|
T.consume_enabled_ = !1, T.consume_source_config_ = void 0, T.default_warehouse_id_ = void 0, T.default_location_id_ = void 0, T.consume_storage_entries_ = [];
|
|
12981
12981
|
}
|
|
12982
12982
|
function $() {
|
|
12983
|
-
const { substitute_material_entries_:
|
|
12983
|
+
const { substitute_material_entries_: V = [], consume_storage_entries_: O = [], ...A } = cloneDeep(i), S = {
|
|
12984
12984
|
...A,
|
|
12985
12985
|
substitute_material_entries_: [],
|
|
12986
12986
|
consume_storage_entries_: []
|
|
12987
12987
|
};
|
|
12988
|
-
return
|
|
12988
|
+
return S.type_ === "view" ? (S.qty_validation_enabled_ = !1, S.qty_validation_rule_ = "eq", S.max_value_ = void 0, S.min_value_ = void 0, S.lot_mixing_enabled_ = !1, S.lot_mixing_times_ = 1, S.substitute_material_enabled_ = !1, S.substitute_policy_ = "only_one", S.substitute_material_entries_ = [], R(S), S) : (S.consume_enabled_ ? S.consume_source_config_ !== "custom" ? (S.default_warehouse_id_ = void 0, S.default_location_id_ = void 0, S.consume_storage_entries_ = []) : S.consume_storage_entries_ = m(O) : (R(S), S.consume_enabled_ = !1), S.qty_validation_enabled_ ? S.qty_validation_rule_ !== "bounds" && (S.max_value_ = void 0, S.min_value_ = void 0) : (S.qty_validation_rule_ = "eq", S.max_value_ = void 0, S.min_value_ = void 0), S.substitute_material_enabled_ ? S.substitute_material_entries_ = y(V) : (S.substitute_policy_ = "only_one", S.substitute_material_entries_ = []), S.type_ !== "by_lot" ? (S.lot_mixing_enabled_ = !1, S.lot_mixing_times_ = 1) : S.lot_mixing_enabled_ || (S.lot_mixing_times_ = 1), S);
|
|
12989
12989
|
}
|
|
12990
|
-
const
|
|
12991
|
-
var
|
|
12990
|
+
const F = async () => {
|
|
12991
|
+
var _i$substitute_materia;
|
|
12992
12992
|
try {
|
|
12993
12993
|
var _l$value16;
|
|
12994
12994
|
await ((_l$value16 = l.value) === null || _l$value16 === void 0 ? void 0 : _l$value16.validate());
|
|
12995
12995
|
} catch {
|
|
12996
12996
|
return;
|
|
12997
12997
|
}
|
|
12998
|
-
if (
|
|
12998
|
+
if (i.type_ !== "view" && i.substitute_material_enabled_ && !((_i$substitute_materia = i.substitute_material_entries_) === null || _i$substitute_materia === void 0 ? void 0 : _i$substitute_materia.length)) {
|
|
12999
12999
|
message.warning($t("sys.edhr.mcTable.substituteMaterialRequired"));
|
|
13000
13000
|
return;
|
|
13001
13001
|
}
|
|
13002
13002
|
t.modalInst.confirm($());
|
|
13003
13003
|
};
|
|
13004
|
-
return (T,
|
|
13005
|
-
const O = resolveComponent("a-form-item"), A = resolveComponent("a-col"),
|
|
13006
|
-
return openBlock(), createBlock(
|
|
13004
|
+
return (T, V) => {
|
|
13005
|
+
const O = resolveComponent("a-form-item"), A = resolveComponent("a-col"), S = resolveComponent("a-input-number"), L = resolveComponent("a-row"), U = resolveComponent("a-radio"), G = resolveComponent("a-radio-group"), oe = resolveComponent("a-form");
|
|
13006
|
+
return openBlock(), createBlock(mt, mergeProps(t.modalProps, {
|
|
13007
13007
|
class: "gct-form-base-modal-bom-entry-modal",
|
|
13008
13008
|
visible: t.modalVisible,
|
|
13009
13009
|
title: n.value,
|
|
@@ -13014,35 +13014,35 @@ var init_index_es = __esmMin((() => {
|
|
|
13014
13014
|
overflow: "hidden"
|
|
13015
13015
|
},
|
|
13016
13016
|
onCancel: t.modalInst.cancel,
|
|
13017
|
-
onOk:
|
|
13018
|
-
onAfterClose:
|
|
13017
|
+
onOk: F,
|
|
13018
|
+
onAfterClose: V[8] || (V[8] = (I) => a("afterClose"))
|
|
13019
13019
|
}), {
|
|
13020
|
-
default: withCtx(() => [createElementVNode("div",
|
|
13020
|
+
default: withCtx(() => [createElementVNode("div", X2, [createVNode(oe, {
|
|
13021
13021
|
ref_key: "formRef",
|
|
13022
13022
|
ref: l,
|
|
13023
|
-
model: unref(
|
|
13023
|
+
model: unref(i),
|
|
13024
13024
|
rules: k.value
|
|
13025
13025
|
}, {
|
|
13026
13026
|
default: withCtx(() => [
|
|
13027
|
-
createElementVNode("div",
|
|
13028
|
-
createVNode(
|
|
13027
|
+
createElementVNode("div", J2, toDisplayString(T.$t("sys.appDesigner.basicInformation")), 1),
|
|
13028
|
+
createVNode(L, { gutter: 16 }, {
|
|
13029
13029
|
default: withCtx(() => [createVNode(A, { span: 12 }, {
|
|
13030
13030
|
default: withCtx(() => [createVNode(O, {
|
|
13031
13031
|
label: T.$t("sys.material"),
|
|
13032
13032
|
name: "product_id_",
|
|
13033
13033
|
required: "",
|
|
13034
|
-
"validate-status":
|
|
13035
|
-
help:
|
|
13034
|
+
"validate-status": c() ? "error" : void 0,
|
|
13035
|
+
help: c() || void 0
|
|
13036
13036
|
}, {
|
|
13037
|
-
default: withCtx(() => [createVNode(unref(
|
|
13038
|
-
"model-value": unref(
|
|
13037
|
+
default: withCtx(() => [createVNode(unref(It), {
|
|
13038
|
+
"model-value": unref(i).product_id_ || void 0,
|
|
13039
13039
|
"model-key": "em_product",
|
|
13040
13040
|
placeholder: T.$t("sys.chooseText"),
|
|
13041
13041
|
"parent-to-default": !1,
|
|
13042
13042
|
"disabled-parent": !1,
|
|
13043
13043
|
"show-search": !0,
|
|
13044
13044
|
"query-data": { "product_type_.ne": "finishedProduct" },
|
|
13045
|
-
onChange:
|
|
13045
|
+
onChange: h
|
|
13046
13046
|
}, null, 8, ["model-value", "placeholder"])]),
|
|
13047
13047
|
_: 1
|
|
13048
13048
|
}, 8, [
|
|
@@ -13057,9 +13057,9 @@ var init_index_es = __esmMin((() => {
|
|
|
13057
13057
|
name: "qty_required_",
|
|
13058
13058
|
required: ""
|
|
13059
13059
|
}, {
|
|
13060
|
-
default: withCtx(() => [createVNode(
|
|
13061
|
-
value: unref(
|
|
13062
|
-
"onUpdate:value":
|
|
13060
|
+
default: withCtx(() => [createVNode(S, {
|
|
13061
|
+
value: unref(i).qty_required_,
|
|
13062
|
+
"onUpdate:value": V[0] || (V[0] = (I) => unref(i).qty_required_ = I),
|
|
13063
13063
|
style: { width: "100%" },
|
|
13064
13064
|
placeholder: T.$t("sys.inputText"),
|
|
13065
13065
|
min: 0
|
|
@@ -13070,29 +13070,29 @@ var init_index_es = __esmMin((() => {
|
|
|
13070
13070
|
})]),
|
|
13071
13071
|
_: 1
|
|
13072
13072
|
}),
|
|
13073
|
-
createElementVNode("div",
|
|
13073
|
+
createElementVNode("div", Q2, toDisplayString(T.$t("sys.edhr.mcTable.materialStrategyConfig")), 1),
|
|
13074
13074
|
createVNode(O, {
|
|
13075
13075
|
name: "type_",
|
|
13076
13076
|
required: ""
|
|
13077
13077
|
}, {
|
|
13078
|
-
label: withCtx(() => [createElementVNode("span", null, toDisplayString(T.$t("sys.edhr.mcTable.loadingType")), 1), createVNode(unref(
|
|
13078
|
+
label: withCtx(() => [createElementVNode("span", null, toDisplayString(T.$t("sys.edhr.mcTable.loadingType")), 1), createVNode(unref(Vt), {
|
|
13079
13079
|
class: "bom-entry-modal__label-tip",
|
|
13080
13080
|
info: T.$t("sys.edhr.mcTable.loadingTypeTip")
|
|
13081
13081
|
}, null, 8, ["info"])]),
|
|
13082
|
-
default: withCtx(() => [createVNode(
|
|
13083
|
-
value: unref(
|
|
13084
|
-
"onUpdate:value":
|
|
13082
|
+
default: withCtx(() => [createVNode(G, {
|
|
13083
|
+
value: unref(i).type_,
|
|
13084
|
+
"onUpdate:value": V[1] || (V[1] = (I) => unref(i).type_ = I)
|
|
13085
13085
|
}, {
|
|
13086
13086
|
default: withCtx(() => [
|
|
13087
|
-
createVNode(
|
|
13087
|
+
createVNode(U, { value: "view" }, {
|
|
13088
13088
|
default: withCtx(() => [createTextVNode(toDisplayString(T.$t("sys.edhr.mcTable.loadingTypeView")), 1)]),
|
|
13089
13089
|
_: 1
|
|
13090
13090
|
}),
|
|
13091
|
-
createVNode(
|
|
13091
|
+
createVNode(U, { value: "by_number" }, {
|
|
13092
13092
|
default: withCtx(() => [createTextVNode(toDisplayString(T.$t("sys.edhr.mcTable.loadingTypeByNumber")), 1)]),
|
|
13093
13093
|
_: 1
|
|
13094
13094
|
}),
|
|
13095
|
-
createVNode(
|
|
13095
|
+
createVNode(U, { value: "by_lot" }, {
|
|
13096
13096
|
default: withCtx(() => [createTextVNode(toDisplayString(T.$t("sys.edhr.mcTable.loadingTypeByLot")), 1)]),
|
|
13097
13097
|
_: 1
|
|
13098
13098
|
})
|
|
@@ -13101,44 +13101,44 @@ var init_index_es = __esmMin((() => {
|
|
|
13101
13101
|
}, 8, ["value"])]),
|
|
13102
13102
|
_: 1
|
|
13103
13103
|
}),
|
|
13104
|
-
unref(
|
|
13104
|
+
unref(i).type_ !== "view" && e.bizOptions.showConsumePolicy ? (openBlock(), createBlock(Za, {
|
|
13105
13105
|
key: 0,
|
|
13106
|
-
"form-state": unref(
|
|
13107
|
-
"onUpdate:formState":
|
|
13106
|
+
"form-state": unref(i),
|
|
13107
|
+
"onUpdate:formState": V[2] || (V[2] = (I) => isRef(i) ? i.value = I : i = I)
|
|
13108
13108
|
}, null, 8, ["form-state"])) : createCommentVNode("", !0),
|
|
13109
|
-
unref(
|
|
13109
|
+
unref(i).type_ !== "view" ? (openBlock(), createBlock(Ga, {
|
|
13110
13110
|
key: 1,
|
|
13111
|
-
"form-state": unref(
|
|
13112
|
-
"onUpdate:formState":
|
|
13111
|
+
"form-state": unref(i),
|
|
13112
|
+
"onUpdate:formState": V[3] || (V[3] = (I) => isRef(i) ? i.value = I : i = I)
|
|
13113
13113
|
}, null, 8, ["form-state"])) : createCommentVNode("", !0),
|
|
13114
|
-
unref(
|
|
13114
|
+
unref(i).type_ === "by_lot" ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [createVNode(O, {
|
|
13115
13115
|
label: T.$t("sys.edhr.mcTable.lotMixingEnabled"),
|
|
13116
13116
|
name: "lot_mixing_enabled_"
|
|
13117
13117
|
}, {
|
|
13118
|
-
default: withCtx(() => [createVNode(
|
|
13119
|
-
value: unref(
|
|
13120
|
-
"onUpdate:value":
|
|
13118
|
+
default: withCtx(() => [createVNode(G, {
|
|
13119
|
+
value: unref(i).lot_mixing_enabled_,
|
|
13120
|
+
"onUpdate:value": V[4] || (V[4] = (I) => unref(i).lot_mixing_enabled_ = I)
|
|
13121
13121
|
}, {
|
|
13122
|
-
default: withCtx(() => [createVNode(
|
|
13122
|
+
default: withCtx(() => [createVNode(U, { value: !0 }, {
|
|
13123
13123
|
default: withCtx(() => [createTextVNode(toDisplayString(T.$t("sys.true")), 1)]),
|
|
13124
13124
|
_: 1
|
|
13125
|
-
}), createVNode(
|
|
13125
|
+
}), createVNode(U, { value: !1 }, {
|
|
13126
13126
|
default: withCtx(() => [createTextVNode(toDisplayString(T.$t("sys.false")), 1)]),
|
|
13127
13127
|
_: 1
|
|
13128
13128
|
})]),
|
|
13129
13129
|
_: 1
|
|
13130
13130
|
}, 8, ["value"])]),
|
|
13131
13131
|
_: 1
|
|
13132
|
-
}, 8, ["label"]), unref(
|
|
13132
|
+
}, 8, ["label"]), unref(i).lot_mixing_enabled_ ? (openBlock(), createElementBlock("div", Y2, [createVNode(L, { gutter: 16 }, {
|
|
13133
13133
|
default: withCtx(() => [createVNode(A, { span: 12 }, {
|
|
13134
13134
|
default: withCtx(() => [createVNode(O, {
|
|
13135
13135
|
label: T.$t("sys.edhr.mcTable.lotMixingTimes"),
|
|
13136
13136
|
name: "lot_mixing_times_",
|
|
13137
13137
|
required: ""
|
|
13138
13138
|
}, {
|
|
13139
|
-
default: withCtx(() => [createVNode(
|
|
13140
|
-
value: unref(
|
|
13141
|
-
"onUpdate:value":
|
|
13139
|
+
default: withCtx(() => [createVNode(S, {
|
|
13140
|
+
value: unref(i).lot_mixing_times_,
|
|
13141
|
+
"onUpdate:value": V[5] || (V[5] = (I) => unref(i).lot_mixing_times_ = I),
|
|
13142
13142
|
style: { width: "100%" },
|
|
13143
13143
|
placeholder: T.$t("sys.inputText"),
|
|
13144
13144
|
min: 1,
|
|
@@ -13150,10 +13150,10 @@ var init_index_es = __esmMin((() => {
|
|
|
13150
13150
|
})]),
|
|
13151
13151
|
_: 1
|
|
13152
13152
|
})])) : createCommentVNode("", !0)], 64)) : createCommentVNode("", !0),
|
|
13153
|
-
unref(
|
|
13153
|
+
unref(i).type_ !== "view" ? (openBlock(), createBlock(G2, {
|
|
13154
13154
|
key: 3,
|
|
13155
|
-
"form-state": unref(
|
|
13156
|
-
"onUpdate:formState":
|
|
13155
|
+
"form-state": unref(i),
|
|
13156
|
+
"onUpdate:formState": V[6] || (V[6] = (I) => isRef(i) ? i.value = I : i = I),
|
|
13157
13157
|
form: l.value,
|
|
13158
13158
|
hasIds: t.bizOptions.hasIds
|
|
13159
13159
|
}, null, 8, [
|
|
@@ -13165,14 +13165,14 @@ var init_index_es = __esmMin((() => {
|
|
|
13165
13165
|
label: T.$t("sys.edhr.mcTable.forceLoadingEnabled"),
|
|
13166
13166
|
name: "force_loading_enabled_"
|
|
13167
13167
|
}, {
|
|
13168
|
-
default: withCtx(() => [createVNode(
|
|
13169
|
-
value: unref(
|
|
13170
|
-
"onUpdate:value":
|
|
13168
|
+
default: withCtx(() => [createVNode(G, {
|
|
13169
|
+
value: unref(i).force_loading_enabled_,
|
|
13170
|
+
"onUpdate:value": V[7] || (V[7] = (I) => unref(i).force_loading_enabled_ = I)
|
|
13171
13171
|
}, {
|
|
13172
|
-
default: withCtx(() => [createVNode(
|
|
13172
|
+
default: withCtx(() => [createVNode(U, { value: !0 }, {
|
|
13173
13173
|
default: withCtx(() => [createTextVNode(toDisplayString(T.$t("sys.true")), 1)]),
|
|
13174
13174
|
_: 1
|
|
13175
|
-
}), createVNode(
|
|
13175
|
+
}), createVNode(U, { value: !1 }, {
|
|
13176
13176
|
default: withCtx(() => [createTextVNode(toDisplayString(T.$t("sys.false")), 1)]),
|
|
13177
13177
|
_: 1
|
|
13178
13178
|
})]),
|
|
@@ -13192,8 +13192,8 @@ var init_index_es = __esmMin((() => {
|
|
|
13192
13192
|
};
|
|
13193
13193
|
}
|
|
13194
13194
|
}), [["__scopeId", "data-v-e6b6adfd"]]);
|
|
13195
|
-
|
|
13196
|
-
|
|
13195
|
+
af = { class: "parse-rule-modal__content" };
|
|
13196
|
+
nf = /* @__PURE__ */ Z$1(/* @__PURE__ */ defineComponent({
|
|
13197
13197
|
__name: "modal",
|
|
13198
13198
|
props: {
|
|
13199
13199
|
modalVisible: { type: Boolean },
|
|
@@ -13211,10 +13211,10 @@ var init_index_es = __esmMin((() => {
|
|
|
13211
13211
|
...t.modalProps,
|
|
13212
13212
|
...t.bizOptions.readonly ? { okButtonProps: { disabled: !0 } } : {}
|
|
13213
13213
|
}));
|
|
13214
|
-
function
|
|
13214
|
+
function u() {
|
|
13215
13215
|
return !l.parsingRuleId && l.fillMapArr.length === 0;
|
|
13216
13216
|
}
|
|
13217
|
-
const
|
|
13217
|
+
const i = async () => {
|
|
13218
13218
|
if (t.bizOptions.readonly) return;
|
|
13219
13219
|
try {
|
|
13220
13220
|
var _n$value10;
|
|
@@ -13223,22 +13223,22 @@ var init_index_es = __esmMin((() => {
|
|
|
13223
13223
|
} catch {
|
|
13224
13224
|
return;
|
|
13225
13225
|
}
|
|
13226
|
-
const k =
|
|
13226
|
+
const k = u() ? void 0 : cloneDeep(toRaw(l));
|
|
13227
13227
|
t.modalInst.confirm(k);
|
|
13228
13228
|
};
|
|
13229
|
-
return (k, _) => (openBlock(), createBlock(
|
|
13229
|
+
return (k, _) => (openBlock(), createBlock(mt, mergeProps(d.value, {
|
|
13230
13230
|
class: "gct-form-base-modal-parse-rule",
|
|
13231
13231
|
visible: t.modalVisible,
|
|
13232
13232
|
title: s.value,
|
|
13233
13233
|
width: 800,
|
|
13234
13234
|
draggable: "",
|
|
13235
13235
|
onCancel: t.modalInst.cancel,
|
|
13236
|
-
onOk:
|
|
13236
|
+
onOk: i,
|
|
13237
13237
|
onAfterClose: _[2] || (_[2] = (f) => a("afterClose"))
|
|
13238
13238
|
}), {
|
|
13239
13239
|
default: withCtx(() => {
|
|
13240
13240
|
var _e$bizOptions;
|
|
13241
|
-
return [createElementVNode("div",
|
|
13241
|
+
return [createElementVNode("div", af, [createVNode(unref(Ja), {
|
|
13242
13242
|
ref_key: "fieldMappingRef",
|
|
13243
13243
|
ref: n,
|
|
13244
13244
|
"parsing-rule-id": l.parsingRuleId,
|
|
@@ -13268,12 +13268,12 @@ var init_index_es = __esmMin((() => {
|
|
|
13268
13268
|
]));
|
|
13269
13269
|
}
|
|
13270
13270
|
}), [["__scopeId", "data-v-85539b18"]]);
|
|
13271
|
-
|
|
13272
|
-
|
|
13273
|
-
MATERIAL_CONSUME_OBJECT_CONFIG:
|
|
13274
|
-
COMMON_SCAN:
|
|
13275
|
-
BOM_ENTRY_MODAL:
|
|
13276
|
-
PARSE_RULE_MODAL:
|
|
13271
|
+
lf = { class: "scan-multi-rows-modal__content" };
|
|
13272
|
+
uf = {
|
|
13273
|
+
MATERIAL_CONSUME_OBJECT_CONFIG: k2,
|
|
13274
|
+
COMMON_SCAN: P2,
|
|
13275
|
+
BOM_ENTRY_MODAL: tf,
|
|
13276
|
+
PARSE_RULE_MODAL: nf,
|
|
13277
13277
|
SCAN_MULTI_ROWS_MODAL: /* @__PURE__ */ Z$1(/* @__PURE__ */ defineComponent({
|
|
13278
13278
|
__name: "modal",
|
|
13279
13279
|
props: {
|
|
@@ -13303,7 +13303,7 @@ var init_index_es = __esmMin((() => {
|
|
|
13303
13303
|
}], n = e, l = o, s = ref(), d = computed(() => (n.bizOptions.rows ?? []).map((f, g) => ({
|
|
13304
13304
|
...f,
|
|
13305
13305
|
_rowKey: `${f.materialId ?? ""}_${f.productionIdentificationId ?? ""}_${g}`
|
|
13306
|
-
}))),
|
|
13306
|
+
}))), u = computed(() => {
|
|
13307
13307
|
var _n$bizOptions$columns;
|
|
13308
13308
|
return {
|
|
13309
13309
|
round: !0,
|
|
@@ -13318,7 +13318,7 @@ var init_index_es = __esmMin((() => {
|
|
|
13318
13318
|
},
|
|
13319
13319
|
columns: [t, ...((_n$bizOptions$columns = n.bizOptions.columns) === null || _n$bizOptions$columns === void 0 ? void 0 : _n$bizOptions$columns.filter((f) => f.type !== "radio")) ?? a]
|
|
13320
13320
|
};
|
|
13321
|
-
}),
|
|
13321
|
+
}), i = { radioChange({ row: f }) {
|
|
13322
13322
|
s.value = f;
|
|
13323
13323
|
} };
|
|
13324
13324
|
async function k(f) {
|
|
@@ -13334,15 +13334,15 @@ var init_index_es = __esmMin((() => {
|
|
|
13334
13334
|
message.error("请选择一条数据");
|
|
13335
13335
|
return;
|
|
13336
13336
|
}
|
|
13337
|
-
const { _rowKey: f, productionIdentificationIsLocked: g, productionIdentificationId: M, ...
|
|
13337
|
+
const { _rowKey: f, productionIdentificationIsLocked: g, productionIdentificationId: M, ...C } = s.value;
|
|
13338
13338
|
if (g) {
|
|
13339
|
-
const
|
|
13340
|
-
message.error(
|
|
13339
|
+
const c = await k(M);
|
|
13340
|
+
message.error(c);
|
|
13341
13341
|
return;
|
|
13342
13342
|
}
|
|
13343
|
-
n.modalInst.confirm(
|
|
13343
|
+
n.modalInst.confirm(C);
|
|
13344
13344
|
};
|
|
13345
|
-
return (f, g) => (openBlock(), createBlock(
|
|
13345
|
+
return (f, g) => (openBlock(), createBlock(mt, mergeProps(n.modalProps, {
|
|
13346
13346
|
class: "gct-form-base-modal-scan-multi-rows",
|
|
13347
13347
|
visible: n.modalVisible,
|
|
13348
13348
|
title: "选择物料",
|
|
@@ -13352,17 +13352,17 @@ var init_index_es = __esmMin((() => {
|
|
|
13352
13352
|
onOk: _,
|
|
13353
13353
|
onAfterClose: g[0] || (g[0] = (M) => l("afterClose"))
|
|
13354
13354
|
}), {
|
|
13355
|
-
default: withCtx(() => [createElementVNode("div",
|
|
13355
|
+
default: withCtx(() => [createElementVNode("div", lf, [createVNode(unref(VxeGrid), mergeProps({
|
|
13356
13356
|
class: "scan-multi-rows-modal__grid default vxetable",
|
|
13357
13357
|
data: d.value,
|
|
13358
13358
|
"max-height": "420px"
|
|
13359
|
-
},
|
|
13359
|
+
}, u.value, toHandlers(i)), null, 16, ["data"])])]),
|
|
13360
13360
|
_: 1
|
|
13361
13361
|
}, 16, ["visible", "onCancel"]));
|
|
13362
13362
|
}
|
|
13363
13363
|
}), [["__scopeId", "data-v-29e2d09d"]])
|
|
13364
13364
|
};
|
|
13365
|
-
|
|
13365
|
+
Qa = /* @__PURE__ */ Object.assign({
|
|
13366
13366
|
"./en-US/sys.ts": /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
13367
13367
|
__proto__: null,
|
|
13368
13368
|
default: {
|
|
@@ -13447,7 +13447,7 @@ var init_index_es = __esmMin((() => {
|
|
|
13447
13447
|
pageDesigner: { fieldCmp: { location: "Location" } }
|
|
13448
13448
|
}
|
|
13449
13449
|
}, Symbol.toStringTag, { value: "Module" })),
|
|
13450
|
-
"./fieldTypes.ts":
|
|
13450
|
+
"./fieldTypes.ts": Bo,
|
|
13451
13451
|
"./sys.ts": /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
13452
13452
|
__proto__: null,
|
|
13453
13453
|
default: {
|
|
@@ -13537,13 +13537,13 @@ var init_index_es = __esmMin((() => {
|
|
|
13537
13537
|
}
|
|
13538
13538
|
}, Symbol.toStringTag, { value: "Module" }))
|
|
13539
13539
|
});
|
|
13540
|
-
|
|
13540
|
+
fa = {
|
|
13541
13541
|
"gct-dropdown": { $extend: "dropdown" },
|
|
13542
13542
|
"gct-tooltip": { $extend: "tooltip" },
|
|
13543
13543
|
"gct-tooltip-dark": { $extend: "tooltip" },
|
|
13544
13544
|
"gct-popconfirm": { $extend: "dropdown" }
|
|
13545
13545
|
};
|
|
13546
|
-
|
|
13546
|
+
wf = class {
|
|
13547
13547
|
constructor() {
|
|
13548
13548
|
this.modalMap = /* @__PURE__ */ new Map(), this.idSeed = 0, this.zIndexSeed = 0;
|
|
13549
13549
|
}
|
|
@@ -13552,7 +13552,7 @@ var init_index_es = __esmMin((() => {
|
|
|
13552
13552
|
const o = ((_this$antdConfigGette = this.antdConfigGetter) === null || _this$antdConfigGette === void 0 ? void 0 : _this$antdConfigGette.call(this)) ?? {};
|
|
13553
13553
|
return {
|
|
13554
13554
|
...o,
|
|
13555
|
-
getPopupContainer: (t) =>
|
|
13555
|
+
getPopupContainer: (t) => _f(t, o.getPopupContainer)
|
|
13556
13556
|
};
|
|
13557
13557
|
}
|
|
13558
13558
|
/**
|
|
@@ -13570,25 +13570,25 @@ var init_index_es = __esmMin((() => {
|
|
|
13570
13570
|
* overlay 短命 app 再次 install 时不覆盖首次写入的 context / getAntdConfig。
|
|
13571
13571
|
*/
|
|
13572
13572
|
install(o, t) {
|
|
13573
|
-
|
|
13573
|
+
to(o), ao(o), no(o), t !== null && t !== void 0 && t.getAntdConfig && !this.antdConfigGetter && (this.antdConfigGetter = t.getAntdConfig), this.appContext || (this.appContext = o._context);
|
|
13574
13574
|
}
|
|
13575
13575
|
open(o, t, a = {}) {
|
|
13576
|
-
const n =
|
|
13576
|
+
const n = uf[o];
|
|
13577
13577
|
if (!n) return Promise.reject(/* @__PURE__ */ new Error(`[FormBaseModal] 未找到弹框组件:${String(o)}`));
|
|
13578
13578
|
const l = `form-base-modal-${++this.idSeed}`, s = reactive({ visible: !0 }), d = {
|
|
13579
13579
|
...a,
|
|
13580
13580
|
zIndex: a.zIndex ?? 1e3 + ++this.zIndexSeed * 2
|
|
13581
13581
|
};
|
|
13582
|
-
return new Promise((
|
|
13582
|
+
return new Promise((u, i) => {
|
|
13583
13583
|
let k = !1, _ = !1, f = !1, g;
|
|
13584
|
-
const M = (
|
|
13585
|
-
k || (k = !0, _ = !0, s.visible = !1,
|
|
13586
|
-
},
|
|
13584
|
+
const M = (m) => {
|
|
13585
|
+
k || (k = !0, _ = !0, s.visible = !1, u(m));
|
|
13586
|
+
}, C = {
|
|
13587
13587
|
id: l,
|
|
13588
|
-
confirm(
|
|
13588
|
+
confirm(m) {
|
|
13589
13589
|
M({
|
|
13590
13590
|
success: !0,
|
|
13591
|
-
result:
|
|
13591
|
+
result: m
|
|
13592
13592
|
});
|
|
13593
13593
|
},
|
|
13594
13594
|
cancel() {
|
|
@@ -13597,32 +13597,32 @@ var init_index_es = __esmMin((() => {
|
|
|
13597
13597
|
result: void 0
|
|
13598
13598
|
});
|
|
13599
13599
|
}
|
|
13600
|
-
},
|
|
13600
|
+
}, c = async () => {
|
|
13601
13601
|
if (f) return;
|
|
13602
13602
|
f = !0, this.modalMap.delete(l);
|
|
13603
|
-
const
|
|
13604
|
-
g = void 0,
|
|
13605
|
-
},
|
|
13603
|
+
const m = g;
|
|
13604
|
+
g = void 0, m && await m.destroy();
|
|
13605
|
+
}, h$2 = () => this.resolveAntdConfig(), y = defineComponent({
|
|
13606
13606
|
name: "FormBaseModalRoot",
|
|
13607
13607
|
setup() {
|
|
13608
|
-
return () => h(ConfigProvider,
|
|
13608
|
+
return () => h(ConfigProvider, h$2(), { default: () => h(n, {
|
|
13609
13609
|
modalVisible: s.visible,
|
|
13610
13610
|
modalProps: d,
|
|
13611
|
-
modalInst:
|
|
13611
|
+
modalInst: C,
|
|
13612
13612
|
bizOptions: t,
|
|
13613
|
-
onAfterClose:
|
|
13613
|
+
onAfterClose: c
|
|
13614
13614
|
}) });
|
|
13615
13615
|
}
|
|
13616
13616
|
});
|
|
13617
13617
|
this.modalMap.set(l, {
|
|
13618
13618
|
id: l,
|
|
13619
|
-
cancel:
|
|
13619
|
+
cancel: C.cancel,
|
|
13620
13620
|
isClosing: () => _
|
|
13621
13621
|
});
|
|
13622
13622
|
try {
|
|
13623
|
-
g =
|
|
13624
|
-
} catch (
|
|
13625
|
-
this.modalMap.delete(l),
|
|
13623
|
+
g = bf(y, this.appContext, l);
|
|
13624
|
+
} catch (m) {
|
|
13625
|
+
this.modalMap.delete(l), i(m);
|
|
13626
13626
|
}
|
|
13627
13627
|
});
|
|
13628
13628
|
}
|
|
@@ -13641,13 +13641,13 @@ var init_index_es = __esmMin((() => {
|
|
|
13641
13641
|
return this.modalMap.size;
|
|
13642
13642
|
}
|
|
13643
13643
|
};
|
|
13644
|
-
Wt = new
|
|
13645
|
-
|
|
13644
|
+
Wt = new wf();
|
|
13645
|
+
kp = { install(e, o) {
|
|
13646
13646
|
Wt.install(e, o);
|
|
13647
13647
|
} };
|
|
13648
13648
|
}));
|
|
13649
13649
|
//#endregion
|
|
13650
|
-
//#region ../../node_modules/.pnpm/@gct-paas+form-base@0.1.2-beta.
|
|
13650
|
+
//#region ../../node_modules/.pnpm/@gct-paas+form-base@0.1.2-beta.3_@gct-paas+api@6.2.0-dev.2_axios@1.13.2__@vueuse+core@1_b3d73132a1f3de725f4fc2504b1cca96/node_modules/@gct-paas/form-base/dist/form-base.css
|
|
13651
13651
|
init_TriggerUtil();
|
|
13652
13652
|
init_index_es();
|
|
13653
13653
|
//#endregion
|
|
@@ -13710,7 +13710,7 @@ function setupPlatformAdapters(options) {
|
|
|
13710
13710
|
*/
|
|
13711
13711
|
function setupVueRuntime(options) {
|
|
13712
13712
|
const { app } = options;
|
|
13713
|
-
app.use(
|
|
13713
|
+
app.use(kp);
|
|
13714
13714
|
app.use(Zt, { themes: {
|
|
13715
13715
|
"gct-tooltip": {
|
|
13716
13716
|
$extend: "tooltip",
|
|
@@ -18340,6 +18340,44 @@ var init_lot = __esmMin((() => {
|
|
|
18340
18340
|
};
|
|
18341
18341
|
}));
|
|
18342
18342
|
//#endregion
|
|
18343
|
+
//#region src/domain/constants/enum/product.ts
|
|
18344
|
+
var ProductTypeEnum;
|
|
18345
|
+
var init_product = __esmMin((() => {
|
|
18346
|
+
ProductTypeEnum = /* @__PURE__ */ function(ProductTypeEnum) {
|
|
18347
|
+
/** 原材料 */
|
|
18348
|
+
ProductTypeEnum["RAW_MATERIAL"] = "rawMaterial";
|
|
18349
|
+
/** 半成品 */
|
|
18350
|
+
ProductTypeEnum["SEMI_FINISHED_PRODUCT"] = "semiFinishedProduct";
|
|
18351
|
+
/** 产成品 */
|
|
18352
|
+
ProductTypeEnum["FINISHED_PRODUCT"] = "finishedProduct";
|
|
18353
|
+
return ProductTypeEnum;
|
|
18354
|
+
}({});
|
|
18355
|
+
}));
|
|
18356
|
+
//#endregion
|
|
18357
|
+
//#region src/domain/constants/enum/production-identification.ts
|
|
18358
|
+
var ProductionIdentificationTypeEnum;
|
|
18359
|
+
var init_production_identification = __esmMin((() => {
|
|
18360
|
+
ProductionIdentificationTypeEnum = /* @__PURE__ */ function(ProductionIdentificationTypeEnum) {
|
|
18361
|
+
/** 物料批 */
|
|
18362
|
+
ProductionIdentificationTypeEnum["MATERIAL"] = "MATERIAL";
|
|
18363
|
+
/** 生产批次 */
|
|
18364
|
+
ProductionIdentificationTypeEnum["LOT"] = "LOT";
|
|
18365
|
+
/** 生产序列号 */
|
|
18366
|
+
ProductionIdentificationTypeEnum["SN"] = "SN";
|
|
18367
|
+
/** 灭菌批 */
|
|
18368
|
+
ProductionIdentificationTypeEnum["STERILIZATION"] = "STERILIZATION";
|
|
18369
|
+
/** 检验批 */
|
|
18370
|
+
ProductionIdentificationTypeEnum["INSPECTION_CONTAINER"] = "INSPECTION_CONTAINER";
|
|
18371
|
+
/** 旧检验批取值 */
|
|
18372
|
+
ProductionIdentificationTypeEnum["LEGACY_INSPECTION"] = "inspection";
|
|
18373
|
+
/** 包装箱 */
|
|
18374
|
+
ProductionIdentificationTypeEnum["PACK_BOX"] = "PACK_BOX";
|
|
18375
|
+
/** 医疗器械唯一标识 */
|
|
18376
|
+
ProductionIdentificationTypeEnum["UDI"] = "UDI";
|
|
18377
|
+
return ProductionIdentificationTypeEnum;
|
|
18378
|
+
}({});
|
|
18379
|
+
}));
|
|
18380
|
+
//#endregion
|
|
18343
18381
|
//#region src/domain/constants/enum/index.ts
|
|
18344
18382
|
var init_enum = __esmMin((() => {
|
|
18345
18383
|
init_view();
|
|
@@ -18349,6 +18387,8 @@ var init_enum = __esmMin((() => {
|
|
|
18349
18387
|
init_widget$1();
|
|
18350
18388
|
init_device$1();
|
|
18351
18389
|
init_lot();
|
|
18390
|
+
init_product();
|
|
18391
|
+
init_production_identification();
|
|
18352
18392
|
}));
|
|
18353
18393
|
//#endregion
|
|
18354
18394
|
//#region src/domain/field/form-value.ts
|
|
@@ -99391,7 +99431,7 @@ var init_selectStrategy = __esmMin((() => {
|
|
|
99391
99431
|
displayRelatedParent: true,
|
|
99392
99432
|
buildQuery({ keyword, extraParams }) {
|
|
99393
99433
|
return buildLikeQuery(["name_", "related_parent_name_"], keyword, {
|
|
99394
|
-
"production_identification_type_.in": [
|
|
99434
|
+
"production_identification_type_.in": [ProductionIdentificationTypeEnum.LOT, ProductionIdentificationTypeEnum.SN],
|
|
99395
99435
|
is_rework_: 0,
|
|
99396
99436
|
"container_role_.ne": ContainerRoleConst.RELATED_PARENT,
|
|
99397
99437
|
...extraParams
|
|
@@ -99412,7 +99452,7 @@ var init_selectStrategy = __esmMin((() => {
|
|
|
99412
99452
|
"product_id_name_",
|
|
99413
99453
|
"spec_"
|
|
99414
99454
|
], keyword, {
|
|
99415
|
-
"production_identification_type_.eq":
|
|
99455
|
+
"production_identification_type_.eq": ProductionIdentificationTypeEnum.MATERIAL,
|
|
99416
99456
|
"production_identification_type_.isNull": null,
|
|
99417
99457
|
"container_role_.ne": ContainerRoleConst.RELATED_PARENT,
|
|
99418
99458
|
__orExpKeys: ["production_identification_type_.eq", "production_identification_type_.isNull"],
|
|
@@ -99429,7 +99469,7 @@ var init_selectStrategy = __esmMin((() => {
|
|
|
99429
99469
|
displayRelatedParent: false,
|
|
99430
99470
|
buildQuery({ keyword, extraParams }) {
|
|
99431
99471
|
return buildLikeQuery(["name_"], keyword, {
|
|
99432
|
-
production_identification_type_:
|
|
99472
|
+
production_identification_type_: ProductionIdentificationTypeEnum.STERILIZATION,
|
|
99433
99473
|
"container_role_.ne": ContainerRoleConst.RELATED_PARENT,
|
|
99434
99474
|
...extraParams
|
|
99435
99475
|
});
|
|
@@ -99923,6 +99963,7 @@ function createCompanionEnricher(reg, config) {
|
|
|
99923
99963
|
valuePathTemplate,
|
|
99924
99964
|
match,
|
|
99925
99965
|
enrich: async (path, value, ctx) => {
|
|
99966
|
+
var _config$buildResolved;
|
|
99926
99967
|
const dataManager = doc.dataManager;
|
|
99927
99968
|
const companionPath = config.getCompanionPath(path);
|
|
99928
99969
|
if (config.preserveOnHydrate && shouldPreservePersistedCompanion(dataManager, path, config.getCompanionPath, ctx)) return;
|
|
@@ -99930,7 +99971,9 @@ function createCompanionEnricher(reg, config) {
|
|
|
99930
99971
|
if (config.skipWhenCompanionPresent && isPresent(dataManager.get(companionPath))) return;
|
|
99931
99972
|
const cacheKey = config.buildCacheKey(path, value, doc);
|
|
99932
99973
|
const resolved = await withRequestCache.handleRequest(config.cacheNamespace, cacheKey, () => config.resolveCompanion(path, value, doc, cacheKey), 3e4);
|
|
99933
|
-
|
|
99974
|
+
if (!Object.is(dataManager.get(path), value)) return;
|
|
99975
|
+
if (config.skipWhenCompanionPresent && isPresent(dataManager.get(companionPath))) return;
|
|
99976
|
+
return ((_config$buildResolved = config.buildResolvedUpdates) === null || _config$buildResolved === void 0 ? void 0 : _config$buildResolved.call(config, resolved, path, value, companionPath)) ?? { [companionPath]: resolved };
|
|
99934
99977
|
}
|
|
99935
99978
|
};
|
|
99936
99979
|
}
|
|
@@ -99976,6 +100019,28 @@ var init_hyperlink_enricher = __esmMin((() => {
|
|
|
99976
100019
|
init_companion_enricher();
|
|
99977
100020
|
}));
|
|
99978
100021
|
//#endregion
|
|
100022
|
+
//#region src/domain/field/material-lot-validation.ts
|
|
100023
|
+
/** 查询到的生产标识能否作为物料批使用;返回非空文案表示不能使用。 */
|
|
100024
|
+
function getInvalidMaterialLotReason(record, keyword) {
|
|
100025
|
+
const type = String(record.production_identification_type_ ?? "").toUpperCase();
|
|
100026
|
+
const batch = `批次「${keyword}」`;
|
|
100027
|
+
switch (type) {
|
|
100028
|
+
case "":
|
|
100029
|
+
case ProductionIdentificationTypeEnum.MATERIAL: return null;
|
|
100030
|
+
case ProductionIdentificationTypeEnum.LOT:
|
|
100031
|
+
case ProductionIdentificationTypeEnum.SN: return record.product_type_ === ProductTypeEnum.FINISHED_PRODUCT ? `${batch}为成品批,不能用作物料批` : null;
|
|
100032
|
+
case ProductionIdentificationTypeEnum.STERILIZATION: return `${batch}为灭菌批,不能用作物料批`;
|
|
100033
|
+
case ProductionIdentificationTypeEnum.INSPECTION_CONTAINER:
|
|
100034
|
+
case ProductionIdentificationTypeEnum.LEGACY_INSPECTION.toUpperCase(): return `${batch}为检验批,不能用作物料批`;
|
|
100035
|
+
case ProductionIdentificationTypeEnum.PACK_BOX: return `${batch}为包装箱,不能用作物料批`;
|
|
100036
|
+
case ProductionIdentificationTypeEnum.UDI: return `${batch}为UDI,不能用作物料批`;
|
|
100037
|
+
default: return `${batch}类型为「${record.production_identification_type_}」,不能用作物料批`;
|
|
100038
|
+
}
|
|
100039
|
+
}
|
|
100040
|
+
var init_material_lot_validation = __esmMin((() => {
|
|
100041
|
+
init_enum();
|
|
100042
|
+
}));
|
|
100043
|
+
//#endregion
|
|
99979
100044
|
//#region src/core/data/enrichers/id-enricher.ts
|
|
99980
100045
|
/**
|
|
99981
100046
|
* 解析接口所需 product_id_(仅 id 为空需反查时使用):
|
|
@@ -99994,6 +100059,16 @@ function resolveProductId(doc, path) {
|
|
|
99994
100059
|
const fromParams = ((_doc$paramsConfig = doc.paramsConfig) === null || _doc$paramsConfig === void 0 ? void 0 : _doc$paramsConfig.productId) ?? ((_doc$paramsConfig2 = doc.paramsConfig) === null || _doc$paramsConfig2 === void 0 ? void 0 : _doc$paramsConfig2.product_id_);
|
|
99995
100060
|
return fromParams != null && fromParams !== "" ? String(fromParams) : void 0;
|
|
99996
100061
|
}
|
|
100062
|
+
/** 兼容单条查询返回原始记录或 data 包装。 */
|
|
100063
|
+
function unwrapProductionIdentification(result) {
|
|
100064
|
+
if (Array.isArray(result)) return result[0] ?? null;
|
|
100065
|
+
if (result && typeof result === "object" && "data" in result) {
|
|
100066
|
+
const data = result.data;
|
|
100067
|
+
if (Array.isArray(data)) return data[0] ?? null;
|
|
100068
|
+
if (data != null) return data;
|
|
100069
|
+
}
|
|
100070
|
+
return result;
|
|
100071
|
+
}
|
|
99997
100072
|
/** 从接口响应中取出有效 id */
|
|
99998
100073
|
function extractCompanionId(result) {
|
|
99999
100074
|
if (result == null || result === "" || result === false) return null;
|
|
@@ -100006,12 +100081,12 @@ function extractCompanionId(result) {
|
|
|
100006
100081
|
return null;
|
|
100007
100082
|
}
|
|
100008
100083
|
/**
|
|
100009
|
-
* 根据批次号 + product_id_
|
|
100084
|
+
* 根据批次号 + product_id_ 查询生产标识记录
|
|
100010
100085
|
*/
|
|
100011
|
-
async function
|
|
100086
|
+
async function resolveLotRecord(_path, value, productId) {
|
|
100012
100087
|
if (value == null || value === "") return null;
|
|
100013
100088
|
try {
|
|
100014
|
-
return
|
|
100089
|
+
return unwrapProductionIdentification(await api$1.apaas.modelComprehensive.postBizServiceModelCategoryModelKeyBsKey({
|
|
100015
100090
|
bsKey: "biz_get_single_production_identification",
|
|
100016
100091
|
modelKey: "em_production_identification",
|
|
100017
100092
|
modelCategory: "entity"
|
|
@@ -100024,6 +100099,8 @@ async function resolveLotCompanionId(_path, value, productId) {
|
|
|
100024
100099
|
}
|
|
100025
100100
|
}
|
|
100026
100101
|
function createIdEnricher(reg) {
|
|
100102
|
+
var _reg$widgetMeta$field;
|
|
100103
|
+
const isMaterialContainer = ((_reg$widgetMeta$field = reg.widgetMeta.field) === null || _reg$widgetMeta$field === void 0 ? void 0 : _reg$widgetMeta$field.fieldType) === FIELD_TYPE.MATERIAL_CONTAINER;
|
|
100027
100104
|
return createCompanionEnricher(reg, {
|
|
100028
100105
|
cacheNamespace: "id_enrich_resolve",
|
|
100029
100106
|
defaultIdPrefix: "id:",
|
|
@@ -100035,7 +100112,20 @@ function createIdEnricher(reg) {
|
|
|
100035
100112
|
value,
|
|
100036
100113
|
productId: resolveProductId(doc, path)
|
|
100037
100114
|
}),
|
|
100038
|
-
resolveCompanion: (path, value,
|
|
100115
|
+
resolveCompanion: (path, value, _doc, cacheKey) => resolveLotRecord(path, value, cacheKey.productId),
|
|
100116
|
+
buildResolvedUpdates: (resolved, path, value, companionPath) => {
|
|
100117
|
+
if (isMaterialContainer && resolved && typeof resolved === "object") {
|
|
100118
|
+
const reason = getInvalidMaterialLotReason(resolved, String(value));
|
|
100119
|
+
if (reason) {
|
|
100120
|
+
GctMessage.error(reason);
|
|
100121
|
+
return {
|
|
100122
|
+
[path]: null,
|
|
100123
|
+
[companionPath]: null
|
|
100124
|
+
};
|
|
100125
|
+
}
|
|
100126
|
+
}
|
|
100127
|
+
return { [companionPath]: extractCompanionId(resolved) };
|
|
100128
|
+
}
|
|
100039
100129
|
});
|
|
100040
100130
|
}
|
|
100041
100131
|
var init_id_enricher = __esmMin((() => {
|
|
@@ -100043,6 +100133,9 @@ var init_id_enricher = __esmMin((() => {
|
|
|
100043
100133
|
init_core$1();
|
|
100044
100134
|
init_field_paths();
|
|
100045
100135
|
init_companion_enricher();
|
|
100136
|
+
init_message();
|
|
100137
|
+
init_field_type();
|
|
100138
|
+
init_material_lot_validation();
|
|
100046
100139
|
}));
|
|
100047
100140
|
//#endregion
|
|
100048
100141
|
//#region src/domain/field/field-props-schema-type.ts
|
|
@@ -102981,7 +103074,7 @@ async function openScanWithParseRule(options) {
|
|
|
102981
103074
|
const parseRuleProps = toParseRuleConfig$1(barcodeParsingRulesId);
|
|
102982
103075
|
scanningRegionIds.add(regionId);
|
|
102983
103076
|
try {
|
|
102984
|
-
await
|
|
103077
|
+
await kf("COMMON_SCAN", {
|
|
102985
103078
|
ruleTip: "扫码解析后按字段映射写入表单",
|
|
102986
103079
|
formFieldOptions: formFieldOptions ?? [],
|
|
102987
103080
|
scanRules: parseRuleProps,
|
|
@@ -103051,7 +103144,7 @@ async function matchProductionIdentificationScanRecords(parsed) {
|
|
|
103051
103144
|
/** 多条候选 → 公共多选弹框 */
|
|
103052
103145
|
async function pickProductionIdentificationScanRecord(records) {
|
|
103053
103146
|
if (records.length === 1) return records[0];
|
|
103054
|
-
const { success, result } = await
|
|
103147
|
+
const { success, result } = await kf("SCAN_MULTI_ROWS_MODAL", { rows: records.map((record) => ({
|
|
103055
103148
|
...record,
|
|
103056
103149
|
productId: record.product_id_name_ ?? record.product_id_code_,
|
|
103057
103150
|
materialNo: record.material_no_ ?? record.name_
|
|
@@ -103103,7 +103196,7 @@ async function matchInventoryScanRecords(parsed, warehouseId) {
|
|
|
103103
103196
|
/** 多条候选 → 公共多选弹框 */
|
|
103104
103197
|
async function pickInventoryScanRecord(records) {
|
|
103105
103198
|
if (records.length === 1) return records[0];
|
|
103106
|
-
const { success, result } = await
|
|
103199
|
+
const { success, result } = await kf("SCAN_MULTI_ROWS_MODAL", { rows: records.map((record) => ({
|
|
103107
103200
|
...record,
|
|
103108
103201
|
productId: record.product_id_name_ ?? record.product_id_code_,
|
|
103109
103202
|
materialNo: record.material_no_ ?? record.name_
|
|
@@ -106225,7 +106318,7 @@ var init_fields$3 = __esmMin((() => {
|
|
|
106225
106318
|
columnsKey: "biz-material-container",
|
|
106226
106319
|
searchFields: ["name_"],
|
|
106227
106320
|
baseQuery: {
|
|
106228
|
-
"production_identification_type_.eq":
|
|
106321
|
+
"production_identification_type_.eq": ProductionIdentificationTypeEnum.MATERIAL,
|
|
106229
106322
|
"production_identification_type_.isNull": null,
|
|
106230
106323
|
"container_role_.ne": ContainerRoleConst.RELATED_PARENT,
|
|
106231
106324
|
__orExpKeys: ["production_identification_type_.eq", "production_identification_type_.isNull"]
|
|
@@ -106501,7 +106594,7 @@ var init_register_handlers$2 = __esmMin((() => {
|
|
|
106501
106594
|
//#region src/domain/table/business/preprocess/pretreatment-list/actions/scan.ts
|
|
106502
106595
|
function isProductionLotOrSn(record) {
|
|
106503
106596
|
const type = record.production_identification_type_;
|
|
106504
|
-
return type ===
|
|
106597
|
+
return type === ProductionIdentificationTypeEnum.LOT || type === ProductionIdentificationTypeEnum.SN;
|
|
106505
106598
|
}
|
|
106506
106599
|
/** 生产批次/SN → 回填生产LOT/SN字段,并互斥清空物料批号/工单 */
|
|
106507
106600
|
function buildProductionContainerRow(record, parsed, fillData) {
|
|
@@ -106544,6 +106637,7 @@ var init_scan$1 = __esmMin((() => {
|
|
|
106544
106637
|
init_scan_action();
|
|
106545
106638
|
init_production_identification_scan_api();
|
|
106546
106639
|
init_field_keys$2();
|
|
106640
|
+
init_enum();
|
|
106547
106641
|
SCAN_NOT_FOUND_MSG$1 = "扫描的批次/物料不存在";
|
|
106548
106642
|
handlePretreatmentListScan = async (ctx, input) => {
|
|
106549
106643
|
const { doc, subFieldKey } = ctx;
|
|
@@ -127547,6 +127641,10 @@ var init_material_consume_table_controller = __esmMin((() => {
|
|
|
127547
127641
|
if (this.enableSequenceLoading) this.bomEntriesValidator.hasEditingGroup(this.actualTableData);
|
|
127548
127642
|
const isRecordPattern = this.mcPattern === MaterialConsumptionPatternEnum.RECORD && !this.tmplBom.personal_bom_enabled_;
|
|
127549
127643
|
console.log("parseScanStr", data);
|
|
127644
|
+
if (!data.lot && !data.uniqueCode) {
|
|
127645
|
+
this.error("无效条码,批次、唯一码至少要有一个");
|
|
127646
|
+
return;
|
|
127647
|
+
}
|
|
127550
127648
|
const arr = await materialCheck({
|
|
127551
127649
|
material_no_: data.materialCode,
|
|
127552
127650
|
production_identification_name_: data.lot,
|
|
@@ -127563,7 +127661,7 @@ var init_material_consume_table_controller = __esmMin((() => {
|
|
|
127563
127661
|
}
|
|
127564
127662
|
let materialData = arr[0];
|
|
127565
127663
|
if (arr.length > 1) {
|
|
127566
|
-
const { success, result } = await
|
|
127664
|
+
const { success, result } = await kf("SCAN_MULTI_ROWS_MODAL", { rows: arr });
|
|
127567
127665
|
if (!success) return;
|
|
127568
127666
|
materialData = result;
|
|
127569
127667
|
} else if (materialData === null || materialData === void 0 ? void 0 : materialData.productionIdentificationIsLocked) {
|
|
@@ -127607,7 +127705,7 @@ var init_material_consume_table_controller = __esmMin((() => {
|
|
|
127607
127705
|
async openScanModal(title, option) {
|
|
127608
127706
|
if (this.isScanOpen) return;
|
|
127609
127707
|
this.isScanOpen = true;
|
|
127610
|
-
await
|
|
127708
|
+
await kf("COMMON_SCAN", {
|
|
127611
127709
|
title,
|
|
127612
127710
|
ruleTip: "扫码解析后按字段映射写入表单",
|
|
127613
127711
|
formFieldOptions: option.subFieldOptions,
|
|
@@ -137425,7 +137523,7 @@ function useDocumentFactory(props, payload) {
|
|
|
137425
137523
|
clear();
|
|
137426
137524
|
return;
|
|
137427
137525
|
}
|
|
137428
|
-
if (docIns.value)
|
|
137526
|
+
if (docIns.value) Cp();
|
|
137429
137527
|
try {
|
|
137430
137528
|
const response = await runFetchDocument(newRequestId);
|
|
137431
137529
|
if (!response) return;
|
|
@@ -137538,12 +137636,12 @@ function useDocumentFactory(props, payload) {
|
|
|
137538
137636
|
}
|
|
137539
137637
|
const hasData = computed(() => docIns.value !== null);
|
|
137540
137638
|
function clear() {
|
|
137541
|
-
|
|
137639
|
+
Cp();
|
|
137542
137640
|
docIns.value = null;
|
|
137543
137641
|
docInfo.value = snapshotDocInfo();
|
|
137544
137642
|
}
|
|
137545
137643
|
onBeforeUnmount(() => {
|
|
137546
|
-
|
|
137644
|
+
Cp();
|
|
137547
137645
|
});
|
|
137548
137646
|
return {
|
|
137549
137647
|
docIns,
|
|
@@ -145356,7 +145454,7 @@ var init_overlay_render_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
145356
145454
|
const objectBom = tmplBomCRef === null || tmplBomCRef === void 0 || (_tmplBomCRef$value = tmplBomCRef.value) === null || _tmplBomCRef$value === void 0 || (_tmplBomCRef$value = _tmplBomCRef$value.formInstBom) === null || _tmplBomCRef$value === void 0 || (_tmplBomCRef$value = _tmplBomCRef$value.formTmplObjectBomList) === null || _tmplBomCRef$value === void 0 ? void 0 : _tmplBomCRef$value.find((item) => item.object_key_ === belongingObject);
|
|
145357
145455
|
const scanRules = !!((_objectBom$value = objectBom.value) === null || _objectBom$value === void 0 ? void 0 : _objectBom$value.disable_barcode_parsing_) ? void 0 : toParseRuleConfig((_objectBom$value2 = objectBom.value) === null || _objectBom$value2 === void 0 ? void 0 : _objectBom$value2.barcode_parsing_rules_id_);
|
|
145358
145456
|
const objectFields = fieldList.value.filter((item) => item.belongingObject === belongingObject);
|
|
145359
|
-
await
|
|
145457
|
+
await kf("COMMON_SCAN", {
|
|
145360
145458
|
title: "扫码录入",
|
|
145361
145459
|
ruleTip: "扫码解析后按字段映射写入表单",
|
|
145362
145460
|
scanRules,
|
|
@@ -145385,7 +145483,7 @@ var init_overlay_render_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
145385
145483
|
if (!rows.length) throw new Error("匹配不到对应物料,请按规则上料或新增物料");
|
|
145386
145484
|
let material = rows[0];
|
|
145387
145485
|
if (rows.length > 1) {
|
|
145388
|
-
const selected = await
|
|
145486
|
+
const selected = await kf("SCAN_MULTI_ROWS_MODAL", { rows: rows.map((e) => {
|
|
145389
145487
|
return {
|
|
145390
145488
|
...e,
|
|
145391
145489
|
productId: e.materialName
|
|
@@ -164247,7 +164345,7 @@ var parse_rule_add_btn_vue_vue_type_script_setup_true_name_parse_rule_add_btn_la
|
|
|
164247
164345
|
label: name,
|
|
164248
164346
|
value: key
|
|
164249
164347
|
}));
|
|
164250
|
-
|
|
164348
|
+
kf("PARSE_RULE_MODAL", {
|
|
164251
164349
|
config: props.modelValue,
|
|
164252
164350
|
formFieldOptions: subFieldOptions,
|
|
164253
164351
|
ruleTip: "默认条码映射字段:条码批次映射批次字段,条码物料编码映射物料编码字段,条码有效期映射有效期字段"
|
|
@@ -164433,7 +164531,7 @@ var bom_entry_editor_vue_vue_type_script_setup_true_name_bom_entry_editor_lang_d
|
|
|
164433
164531
|
};
|
|
164434
164532
|
/** 编辑 */
|
|
164435
164533
|
const edit = async (data) => {
|
|
164436
|
-
|
|
164534
|
+
kf("BOM_ENTRY_MODAL", {
|
|
164437
164535
|
data: cloneDeep(data),
|
|
164438
164536
|
hasIds: calcHasProductIds(data),
|
|
164439
164537
|
openFormulaEditor,
|
|
@@ -164444,7 +164542,7 @@ var bom_entry_editor_vue_vue_type_script_setup_true_name_bom_entry_editor_lang_d
|
|
|
164444
164542
|
};
|
|
164445
164543
|
/** 添加 */
|
|
164446
164544
|
const add = async () => {
|
|
164447
|
-
|
|
164545
|
+
kf("BOM_ENTRY_MODAL", {
|
|
164448
164546
|
hasIds: calcHasProductIds(),
|
|
164449
164547
|
openFormulaEditor,
|
|
164450
164548
|
showConsumePolicy: showConsumePolicy.value
|
|
@@ -167256,7 +167354,7 @@ var object_init_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defi
|
|
|
167256
167354
|
return;
|
|
167257
167355
|
}
|
|
167258
167356
|
const { allFields, objectFields } = baseParam.value;
|
|
167259
|
-
|
|
167357
|
+
kf("MATERIAL_CONSUME_OBJECT_CONFIG", {
|
|
167260
167358
|
allFields,
|
|
167261
167359
|
objectFields: objectFields.filter((f) => !filledObjectFieldKeys.value.includes(f.key)),
|
|
167262
167360
|
RenderFieldWrapper,
|
|
@@ -167272,7 +167370,7 @@ var object_init_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defi
|
|
|
167272
167370
|
console.error("未找到字段渲染组件");
|
|
167273
167371
|
return;
|
|
167274
167372
|
}
|
|
167275
|
-
|
|
167373
|
+
kf("MATERIAL_CONSUME_OBJECT_CONFIG", {
|
|
167276
167374
|
...baseParam.value,
|
|
167277
167375
|
editingItem: obj,
|
|
167278
167376
|
RenderFieldWrapper,
|