@gct-paas/word 0.1.74-beta.30 → 0.1.74-beta.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +1074 -1005
- package/dist/word.css +1 -1
- package/package.json +2 -2
package/dist/index.es.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
/*! @gct-paas/word v0.1.74-beta.
|
|
1
|
+
/*! @gct-paas/word v0.1.74-beta.31 */
|
|
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
|
-
import
|
|
3
|
+
import St, { PopperWrapper } from "floating-vue";
|
|
4
4
|
import VueKonva from "vue-konva";
|
|
5
5
|
import { HttpUtil, api } from "@gct-paas/api";
|
|
6
6
|
import dayjs from "dayjs";
|
|
7
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
|
-
import
|
|
10
|
+
import Ft, { ConfigProvider, Modal, message } from "ant-design-vue";
|
|
11
11
|
import { PlusOutlined } from "@ant-design/icons-vue";
|
|
12
12
|
import Konva from "konva";
|
|
13
13
|
import exifr from "exifr";
|
|
@@ -7463,7 +7463,7 @@ function Xe(e) {
|
|
|
7463
7463
|
g: 0,
|
|
7464
7464
|
b: 0
|
|
7465
7465
|
}, t = 1, r = null, l = null, n = null, i = !1, o = !1;
|
|
7466
|
-
return typeof e == "string" && (e = ht$1(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
|
|
7466
|
+
return typeof e == "string" && (e = ht$1(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$1(e.h, r, n), i = !0, o = "hsl"), e.hasOwnProperty("a") && (t = e.a)), t = Te(t), {
|
|
7467
7467
|
ok: i,
|
|
7468
7468
|
format: e.format || o,
|
|
7469
7469
|
r: Math.min(255, Math.max(a.r, 0)),
|
|
@@ -7502,7 +7502,7 @@ function Me(e, a, t) {
|
|
|
7502
7502
|
l: o
|
|
7503
7503
|
};
|
|
7504
7504
|
}
|
|
7505
|
-
function qe(e, a, t) {
|
|
7505
|
+
function qe$1(e, a, t) {
|
|
7506
7506
|
var r, l, n;
|
|
7507
7507
|
e = L$1(e, 360), a = L$1(a, 100), t = L$1(t, 100);
|
|
7508
7508
|
function i(s, u, b) {
|
|
@@ -7519,7 +7519,7 @@ function qe(e, a, t) {
|
|
|
7519
7519
|
b: n * 255
|
|
7520
7520
|
};
|
|
7521
7521
|
}
|
|
7522
|
-
function Re
|
|
7522
|
+
function Re(e, a, t) {
|
|
7523
7523
|
e = L$1(e, 255), a = L$1(a, 255), t = L$1(t, 255);
|
|
7524
7524
|
var r = Math.max(e, a, t), l = Math.min(e, a, t), n, i, o = r, f = r - l;
|
|
7525
7525
|
if (i = r === 0 ? 0 : f / r, r == l) n = 0;
|
|
@@ -7541,7 +7541,7 @@ function Re$1(e, a, t) {
|
|
|
7541
7541
|
v: o
|
|
7542
7542
|
};
|
|
7543
7543
|
}
|
|
7544
|
-
function We
|
|
7544
|
+
function We(e, a, t) {
|
|
7545
7545
|
e = L$1(e, 360) * 6, a = L$1(a, 100), t = L$1(t, 100);
|
|
7546
7546
|
var r = Math.floor(e), l = e - r, n = t * (1 - a), i = t * (1 - l * a), o = t * (1 - (1 - l) * a), f = r % 6, s = [
|
|
7547
7547
|
t,
|
|
@@ -7571,7 +7571,7 @@ function We$1(e, a, t) {
|
|
|
7571
7571
|
b: b * 255
|
|
7572
7572
|
};
|
|
7573
7573
|
}
|
|
7574
|
-
function He(e, a, t, r) {
|
|
7574
|
+
function He$1(e, a, t, r) {
|
|
7575
7575
|
var l = [
|
|
7576
7576
|
z$1(Math.round(e).toString(16)),
|
|
7577
7577
|
z$1(Math.round(a).toString(16)),
|
|
@@ -7713,7 +7713,7 @@ function Y$1(e) {
|
|
|
7713
7713
|
return !!K$1.CSS_UNIT.exec(e);
|
|
7714
7714
|
}
|
|
7715
7715
|
function ht$1(e) {
|
|
7716
|
-
e = e.replace(ze
|
|
7716
|
+
e = e.replace(ze, "").replace(je, "").toLowerCase();
|
|
7717
7717
|
var a = !1;
|
|
7718
7718
|
if (xe$1[e]) e = xe$1[e], a = !0;
|
|
7719
7719
|
else if (e == "transparent") return {
|
|
@@ -7813,9 +7813,9 @@ function Ht$1() {
|
|
|
7813
7813
|
const e = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
|
|
7814
7814
|
return e.charAt(Math.floor(Math.random() * 62)) + e.charAt(Math.floor(Math.random() * 62));
|
|
7815
7815
|
}
|
|
7816
|
-
var ze
|
|
7816
|
+
var ze, je, xe$1, ut, K$1, Ee, ye, ve, I$1, Ue, bt$1, Pe, Fe$1, Ge, gt$1, mt, N$1, Se$1, $e$1, _t, yt$1, Ct$1, q$1, le, pe, oe, Ft$1, St$1, At, M, De, fe$1, se, Vt$1, Bt$1, Lt, Et$1, Dt$1, Nt$1, Tt$1, It, Ut$1, Pt, Gt, Ot$1, Kt, zt$1, jt, Xt$1, Yt$1, qt$1, Wt, Zt, Jt, Qt$1, ea$1, ta$1, gn;
|
|
7817
7817
|
var init_vue_color = __esmMin((() => {
|
|
7818
|
-
ze
|
|
7818
|
+
ze = /^\s+/;
|
|
7819
7819
|
je = /\s+$/;
|
|
7820
7820
|
g.prototype = {
|
|
7821
7821
|
isDark: function() {
|
|
@@ -7848,7 +7848,7 @@ var init_vue_color = __esmMin((() => {
|
|
|
7848
7848
|
return this._a = Te(a), this._roundA = Math.round(100 * this._a) / 100, this;
|
|
7849
7849
|
},
|
|
7850
7850
|
toHsv: function() {
|
|
7851
|
-
var a = Re
|
|
7851
|
+
var a = Re(this._r, this._g, this._b);
|
|
7852
7852
|
return {
|
|
7853
7853
|
h: a.h * 360,
|
|
7854
7854
|
s: a.s,
|
|
@@ -7857,7 +7857,7 @@ var init_vue_color = __esmMin((() => {
|
|
|
7857
7857
|
};
|
|
7858
7858
|
},
|
|
7859
7859
|
toHsvString: function() {
|
|
7860
|
-
var a = Re
|
|
7860
|
+
var a = Re(this._r, this._g, this._b), t = Math.round(a.h * 360), r = Math.round(a.s * 100), l = Math.round(a.v * 100);
|
|
7861
7861
|
return this._a == 1 ? "hsv(" + t + ", " + r + "%, " + l + "%)" : "hsva(" + t + ", " + r + "%, " + l + "%, " + this._roundA + ")";
|
|
7862
7862
|
},
|
|
7863
7863
|
toHsl: function() {
|
|
@@ -7874,7 +7874,7 @@ var init_vue_color = __esmMin((() => {
|
|
|
7874
7874
|
return this._a == 1 ? "hsl(" + t + ", " + r + "%, " + l + "%)" : "hsla(" + t + ", " + r + "%, " + l + "%, " + this._roundA + ")";
|
|
7875
7875
|
},
|
|
7876
7876
|
toHex: function(a) {
|
|
7877
|
-
return He(this._r, this._g, this._b, a);
|
|
7877
|
+
return He$1(this._r, this._g, this._b, a);
|
|
7878
7878
|
},
|
|
7879
7879
|
toHexString: function(a) {
|
|
7880
7880
|
return "#" + this.toHex(a);
|
|
@@ -7908,7 +7908,7 @@ var init_vue_color = __esmMin((() => {
|
|
|
7908
7908
|
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 + ")";
|
|
7909
7909
|
},
|
|
7910
7910
|
toName: function() {
|
|
7911
|
-
return this._a === 0 ? "transparent" : this._a < 1 ? !1 : ut[He(this._r, this._g, this._b, !0)] || !1;
|
|
7911
|
+
return this._a === 0 ? "transparent" : this._a < 1 ? !1 : ut[He$1(this._r, this._g, this._b, !0)] || !1;
|
|
7912
7912
|
},
|
|
7913
7913
|
toFilter: function(a) {
|
|
7914
7914
|
var t = "#" + Ve(this._r, this._g, this._b, this._a), r = t, l = this._gradientType ? "GradientType = 1, " : "";
|
|
@@ -8230,14 +8230,14 @@ var init_vue_color = __esmMin((() => {
|
|
|
8230
8230
|
};
|
|
8231
8231
|
return e instanceof MouseEvent && (a.x = e.pageX, a.y = e.pageY), typeof TouchEvent < "u" && e instanceof TouchEvent && (a.x = ((_e$touches = e.touches) === null || _e$touches === void 0 ? void 0 : _e$touches[0]) ? e.touches[0].pageX : ((_e$changedTouches = e.changedTouches) === null || _e$changedTouches === void 0 ? void 0 : _e$changedTouches[0]) ? e.changedTouches[0].pageX : 0, a.y = ((_e$touches2 = e.touches) === null || _e$touches2 === void 0 ? void 0 : _e$touches2[0]) ? e.touches[0].pageY : ((_e$changedTouches2 = e.changedTouches) === null || _e$changedTouches2 === void 0 ? void 0 : _e$changedTouches2[0]) ? e.changedTouches[0].pageY : 0), a;
|
|
8232
8232
|
};
|
|
8233
|
-
bt = () => {
|
|
8233
|
+
bt$1 = () => {
|
|
8234
8234
|
return {
|
|
8235
8235
|
x: window.scrollX || window.pageXOffset || document.documentElement.scrollLeft || 0,
|
|
8236
8236
|
y: window.scrollY || window.pageYOffset || document.documentElement.scrollTop || 0
|
|
8237
8237
|
};
|
|
8238
8238
|
};
|
|
8239
8239
|
Pe = (e) => {
|
|
8240
|
-
const { x: a, y: t } = bt(), r = e.getBoundingClientRect();
|
|
8240
|
+
const { x: a, y: t } = bt$1(), r = e.getBoundingClientRect();
|
|
8241
8241
|
return {
|
|
8242
8242
|
x: r.left + a,
|
|
8243
8243
|
y: r.top + t
|
|
@@ -8562,9 +8562,9 @@ var init_vue_color = __esmMin((() => {
|
|
|
8562
8562
|
}, 8, ["modelValue"]));
|
|
8563
8563
|
}
|
|
8564
8564
|
}), [["__scopeId", "data-v-07dd346b"]]);
|
|
8565
|
-
Ft = { class: "vc-editable-input" };
|
|
8566
|
-
St = ["value", "aria-label"];
|
|
8567
|
-
At
|
|
8565
|
+
Ft$1 = { class: "vc-editable-input" };
|
|
8566
|
+
St$1 = ["value", "aria-label"];
|
|
8567
|
+
At = {
|
|
8568
8568
|
key: 0,
|
|
8569
8569
|
class: "vc-input-desc",
|
|
8570
8570
|
"aria-hidden": "true"
|
|
@@ -8611,7 +8611,7 @@ var init_vue_color = __esmMin((() => {
|
|
|
8611
8611
|
c === "up" && (i((b + _).toFixed(m)), u.preventDefault()), c === "down" && (i((b - _).toFixed(m)), u.preventDefault());
|
|
8612
8612
|
}
|
|
8613
8613
|
}
|
|
8614
|
-
return (u, b) => (openBlock(), createElementBlock("div", Ft, [
|
|
8614
|
+
return (u, b) => (openBlock(), createElementBlock("div", Ft$1, [
|
|
8615
8615
|
createElementVNode("input", {
|
|
8616
8616
|
class: "vc-input-input",
|
|
8617
8617
|
value: t.value,
|
|
@@ -8620,13 +8620,13 @@ var init_vue_color = __esmMin((() => {
|
|
|
8620
8620
|
onBlur: f,
|
|
8621
8621
|
"aria-label": unref(l),
|
|
8622
8622
|
id: n
|
|
8623
|
-
}, null, 40, St),
|
|
8623
|
+
}, null, 40, St$1),
|
|
8624
8624
|
createElementVNode("label", {
|
|
8625
8625
|
for: n,
|
|
8626
8626
|
class: "vc-input-label",
|
|
8627
8627
|
"aria-hidden": "true"
|
|
8628
8628
|
}, toDisplayString(t.label), 1),
|
|
8629
|
-
u.desc ? (openBlock(), createElementBlock("span", At
|
|
8629
|
+
u.desc ? (openBlock(), createElementBlock("span", At, toDisplayString(u.desc), 1)) : createCommentVNode("", !0)
|
|
8630
8630
|
]));
|
|
8631
8631
|
}
|
|
8632
8632
|
}), [["__scopeId", "data-v-9c267b2b"]]);
|
|
@@ -8694,8 +8694,8 @@ var init_vue_color = __esmMin((() => {
|
|
|
8694
8694
|
Vt$1 = { class: "saturation" };
|
|
8695
8695
|
Bt$1 = { class: "body" };
|
|
8696
8696
|
Lt = { class: "controls" };
|
|
8697
|
-
Et = { class: "color-wrap" };
|
|
8698
|
-
Dt = ["aria-label"];
|
|
8697
|
+
Et$1 = { class: "color-wrap" };
|
|
8698
|
+
Dt$1 = ["aria-label"];
|
|
8699
8699
|
Nt$1 = { class: "sliders" };
|
|
8700
8700
|
Tt$1 = { class: "hue-wrap" };
|
|
8701
8701
|
It = {
|
|
@@ -8711,14 +8711,14 @@ var init_vue_color = __esmMin((() => {
|
|
|
8711
8711
|
key: 0,
|
|
8712
8712
|
class: "fields"
|
|
8713
8713
|
};
|
|
8714
|
-
Gt
|
|
8714
|
+
Gt = { class: "field" };
|
|
8715
8715
|
Ot$1 = { class: "field" };
|
|
8716
8716
|
Kt = { class: "field" };
|
|
8717
8717
|
zt$1 = {
|
|
8718
8718
|
key: 0,
|
|
8719
8719
|
class: "field"
|
|
8720
8720
|
};
|
|
8721
|
-
jt
|
|
8721
|
+
jt = {
|
|
8722
8722
|
key: 1,
|
|
8723
8723
|
class: "fields"
|
|
8724
8724
|
};
|
|
@@ -8730,7 +8730,7 @@ var init_vue_color = __esmMin((() => {
|
|
|
8730
8730
|
qt$1 = { class: "field" };
|
|
8731
8731
|
Wt = { class: "field" };
|
|
8732
8732
|
Zt = { class: "field" };
|
|
8733
|
-
Jt
|
|
8733
|
+
Jt = {
|
|
8734
8734
|
key: 0,
|
|
8735
8735
|
class: "field"
|
|
8736
8736
|
};
|
|
@@ -8833,13 +8833,13 @@ var init_vue_color = __esmMin((() => {
|
|
|
8833
8833
|
tinyColor: unref(l),
|
|
8834
8834
|
"onUpdate:tinyColor": x[0] || (x[0] = (F) => isRef(l) ? l.value = F : null),
|
|
8835
8835
|
hue: unref(n)
|
|
8836
|
-
}, null, 8, ["tinyColor", "hue"])]), createElementVNode("div", Bt$1, [createElementVNode("div", Lt, [createElementVNode("div", Et, [createElementVNode("div", {
|
|
8836
|
+
}, null, 8, ["tinyColor", "hue"])]), createElementVNode("div", Bt$1, [createElementVNode("div", Lt, [createElementVNode("div", Et$1, [createElementVNode("div", {
|
|
8837
8837
|
class: "active-color",
|
|
8838
8838
|
style: normalizeStyle({ backgroundColor: s.value }),
|
|
8839
8839
|
role: "presentation",
|
|
8840
8840
|
"aria-live": "polite",
|
|
8841
8841
|
"aria-label": `Current color is ${s.value}`
|
|
8842
|
-
}, null, 12, Dt), t.disableAlpha ? createCommentVNode("", !0) : (openBlock(), createBlock(pe, { key: 0 }))]), createElementVNode("div", Nt$1, [createElementVNode("div", Tt$1, [createVNode(le, {
|
|
8842
|
+
}, null, 12, Dt$1), t.disableAlpha ? createCommentVNode("", !0) : (openBlock(), createBlock(pe, { key: 0 }))]), createElementVNode("div", Nt$1, [createElementVNode("div", Tt$1, [createVNode(le, {
|
|
8843
8843
|
modelValue: unref(n),
|
|
8844
8844
|
"onUpdate:modelValue": unref(i)
|
|
8845
8845
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])]), t.disableAlpha ? createCommentVNode("", !0) : (openBlock(), createElementBlock("div", It, [createVNode(oe, {
|
|
@@ -8847,7 +8847,7 @@ var init_vue_color = __esmMin((() => {
|
|
|
8847
8847
|
"onUpdate:tinyColor": x[1] || (x[1] = (F) => isRef(l) ? l.value = F : null)
|
|
8848
8848
|
}, null, 8, ["tinyColor"])]))])]), S.value ? (openBlock(), createElementBlock("div", Ut$1, [
|
|
8849
8849
|
k("rgb") ? withDirectives((openBlock(), createElementBlock("div", Pt, [
|
|
8850
|
-
createElementVNode("div", Gt
|
|
8850
|
+
createElementVNode("div", Gt, [createVNode(M, {
|
|
8851
8851
|
label: "r",
|
|
8852
8852
|
value: b.value.r,
|
|
8853
8853
|
onChange: x[2] || (x[2] = (F) => h("r", F)),
|
|
@@ -8874,7 +8874,7 @@ var init_vue_color = __esmMin((() => {
|
|
|
8874
8874
|
a11y: { label: "Transparency" }
|
|
8875
8875
|
}, null, 8, ["value"])]))
|
|
8876
8876
|
], 512)), [[vShow, o.value === V("rgb")]]) : createCommentVNode("", !0),
|
|
8877
|
-
k("hex") ? withDirectives((openBlock(), createElementBlock("div", jt
|
|
8877
|
+
k("hex") ? withDirectives((openBlock(), createElementBlock("div", jt, [createElementVNode("div", Xt$1, [createVNode(fe$1, {
|
|
8878
8878
|
type: _.value === 1 ? "hex" : "hex8",
|
|
8879
8879
|
label: "hex",
|
|
8880
8880
|
value: unref(l).toHex8String(),
|
|
@@ -8900,7 +8900,7 @@ var init_vue_color = __esmMin((() => {
|
|
|
8900
8900
|
onChange: x[8] || (x[8] = (F) => v("l", F)),
|
|
8901
8901
|
a11y: { label: "Lightness" }
|
|
8902
8902
|
}, null, 8, ["value"])]),
|
|
8903
|
-
R.disableAlpha ? createCommentVNode("", !0) : (openBlock(), createElementBlock("div", Jt
|
|
8903
|
+
R.disableAlpha ? createCommentVNode("", !0) : (openBlock(), createElementBlock("div", Jt, [createVNode(M, {
|
|
8904
8904
|
label: "a",
|
|
8905
8905
|
value: _.value,
|
|
8906
8906
|
step: .01,
|
|
@@ -9468,8 +9468,8 @@ function preloadDocumentFonts() {
|
|
|
9468
9468
|
//#region ../../node_modules/.pnpm/floating-vue@5.2.2_vue@3.5.24_typescript@5.9.3_/node_modules/floating-vue/dist/style.css
|
|
9469
9469
|
var init_style = __esmMin((() => {}));
|
|
9470
9470
|
//#endregion
|
|
9471
|
-
//#region ../../node_modules/.pnpm/@gct-paas+form-base@0.1.1-beta.
|
|
9472
|
-
function
|
|
9471
|
+
//#region ../../node_modules/.pnpm/@gct-paas+form-base@0.1.1-beta.7_@gct-paas+api@0.1.0-word.11_axios@1.13.2__@vueuse+core_c73adcd47be639871007a6ae93e0abb7/node_modules/@gct-paas/form-base/dist/index.es.js
|
|
9472
|
+
function Ra() {
|
|
9473
9473
|
if (typeof globalThis < "u") {
|
|
9474
9474
|
const e = globalThis._api;
|
|
9475
9475
|
if (e) return e;
|
|
@@ -9478,10 +9478,10 @@ function Sa() {
|
|
|
9478
9478
|
}
|
|
9479
9479
|
function Wn() {
|
|
9480
9480
|
pt = document.createElement("div"), document.body.appendChild(pt);
|
|
9481
|
-
const e = createVNode(
|
|
9481
|
+
const e = createVNode(Pn);
|
|
9482
9482
|
render(e, pt), vt = e.component.exposed;
|
|
9483
9483
|
}
|
|
9484
|
-
function
|
|
9484
|
+
function Ln(e) {
|
|
9485
9485
|
return typeof e == "function" ? e() : (isVNode(e), e);
|
|
9486
9486
|
}
|
|
9487
9487
|
function xe(e) {
|
|
@@ -9490,12 +9490,12 @@ function xe(e) {
|
|
|
9490
9490
|
vt.add({
|
|
9491
9491
|
id: o,
|
|
9492
9492
|
type: e.type ?? "info",
|
|
9493
|
-
message:
|
|
9493
|
+
message: Ln(e.message),
|
|
9494
9494
|
closeable: e.closeable ?? !1,
|
|
9495
9495
|
duration: e.duration ?? 2e3
|
|
9496
9496
|
});
|
|
9497
9497
|
}
|
|
9498
|
-
function
|
|
9498
|
+
function ll(e) {
|
|
9499
9499
|
for (const o of e) {
|
|
9500
9500
|
const t = o.target.__resizeListeners__ || [];
|
|
9501
9501
|
t.length && t.forEach((a) => {
|
|
@@ -9503,33 +9503,33 @@ function nl(e) {
|
|
|
9503
9503
|
});
|
|
9504
9504
|
}
|
|
9505
9505
|
}
|
|
9506
|
-
function At(e, o) {
|
|
9507
|
-
ol || (e.__resizeListeners__ || (e.__resizeListeners__ = [], e.__ro__ = new index$1(nl), e.__ro__.observe(e)), e.__resizeListeners__.push(o));
|
|
9508
|
-
}
|
|
9509
9506
|
function Ot(e, o) {
|
|
9507
|
+
nl || (e.__resizeListeners__ || (e.__resizeListeners__ = [], e.__ro__ = new index$1(ll), e.__ro__.observe(e)), e.__resizeListeners__.push(o));
|
|
9508
|
+
}
|
|
9509
|
+
function Vt(e, o) {
|
|
9510
9510
|
!e || !e.__resizeListeners__ || (e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(o), 1), e.__resizeListeners__.length || e.__ro__.disconnect());
|
|
9511
9511
|
}
|
|
9512
|
-
function
|
|
9512
|
+
function il({ move: e, size: o, bar: t }) {
|
|
9513
9513
|
const a = {}, n = `translate${t.axis}(${e}%)`;
|
|
9514
9514
|
return a[t.size] = o, a.transform = n, a.msTransform = n, a.webkitTransform = n, a;
|
|
9515
9515
|
}
|
|
9516
|
-
function
|
|
9516
|
+
function rl(e, o) {
|
|
9517
9517
|
return Object.assign(e, o);
|
|
9518
9518
|
}
|
|
9519
|
-
function
|
|
9519
|
+
function ul(e) {
|
|
9520
9520
|
const o = {};
|
|
9521
|
-
for (let t = 0; t < e.length; t++) e[t] &&
|
|
9521
|
+
for (let t = 0; t < e.length; t++) e[t] && rl(o, e[t]);
|
|
9522
9522
|
return o;
|
|
9523
9523
|
}
|
|
9524
|
-
function
|
|
9524
|
+
function Tt(e, o, t) {
|
|
9525
9525
|
e && o && t && e.addEventListener(o, t, !1);
|
|
9526
9526
|
}
|
|
9527
|
-
function
|
|
9527
|
+
function qt(e, o, t) {
|
|
9528
9528
|
e && o && t && e.removeEventListener(o, t, !1);
|
|
9529
9529
|
}
|
|
9530
|
-
function
|
|
9530
|
+
function fl(e, o, t, a, n, l) {
|
|
9531
9531
|
const s = resolveComponent("bar");
|
|
9532
|
-
return openBlock(), createElementBlock("div",
|
|
9532
|
+
return openBlock(), createElementBlock("div", pl, [createElementVNode("div", {
|
|
9533
9533
|
ref: "wrap",
|
|
9534
9534
|
class: normalizeClass([
|
|
9535
9535
|
e.wrapClass,
|
|
@@ -9537,7 +9537,7 @@ function pl(e, o, t, a, n, l) {
|
|
|
9537
9537
|
e.native ? "" : "scrollbar__wrap--hidden-default"
|
|
9538
9538
|
]),
|
|
9539
9539
|
style: normalizeStyle(e.style),
|
|
9540
|
-
onScroll: o[0] || (o[0] = (...
|
|
9540
|
+
onScroll: o[0] || (o[0] = (...d) => e.handleScroll && e.handleScroll(...d))
|
|
9541
9541
|
}, [(openBlock(), createBlock(resolveDynamicComponent(e.tag), {
|
|
9542
9542
|
ref: "resize",
|
|
9543
9543
|
class: normalizeClass(["scrollbar__view", e.viewClass]),
|
|
@@ -9554,59 +9554,59 @@ function pl(e, o, t, a, n, l) {
|
|
|
9554
9554
|
size: e.sizeHeight
|
|
9555
9555
|
}, null, 8, ["move", "size"])], 64))]);
|
|
9556
9556
|
}
|
|
9557
|
-
function
|
|
9557
|
+
function ns(e) {
|
|
9558
9558
|
return e && (e.__LABEL__ || e.version_ || e.name_) || "";
|
|
9559
9559
|
}
|
|
9560
|
-
function
|
|
9560
|
+
function Qt(e, o) {
|
|
9561
9561
|
return {
|
|
9562
9562
|
text: `${e}:${o}`,
|
|
9563
9563
|
showDefaultTag: !1
|
|
9564
9564
|
};
|
|
9565
9565
|
}
|
|
9566
|
-
function
|
|
9566
|
+
function ls(e) {
|
|
9567
9567
|
return {
|
|
9568
9568
|
text: e,
|
|
9569
9569
|
showDefaultTag: !0
|
|
9570
9570
|
};
|
|
9571
9571
|
}
|
|
9572
|
-
function
|
|
9572
|
+
function Yt(e, o, t) {
|
|
9573
9573
|
const [a, n] = e.split(":");
|
|
9574
9574
|
if (!a || !n) return null;
|
|
9575
9575
|
const l = t(a), s = o(e);
|
|
9576
|
-
return !l || !s ? null :
|
|
9576
|
+
return !l || !s ? null : Qt(l.title, s.title);
|
|
9577
9577
|
}
|
|
9578
|
-
function
|
|
9578
|
+
function ss(e, o, t, a, n) {
|
|
9579
9579
|
var _o$children;
|
|
9580
|
-
const [l, s] = e.split(":"),
|
|
9580
|
+
const [l, s] = e.split(":"), d = !!((_o$children = o.children) === null || _o$children === void 0 ? void 0 : _o$children.length);
|
|
9581
9581
|
if (l && s) {
|
|
9582
|
-
const u =
|
|
9582
|
+
const u = Yt(e, t, a);
|
|
9583
9583
|
if (u) return u;
|
|
9584
9584
|
}
|
|
9585
|
-
if (
|
|
9586
|
-
if (
|
|
9587
|
-
const u =
|
|
9588
|
-
if (u) return
|
|
9585
|
+
if (d && !n) return ls(o.title);
|
|
9586
|
+
if (d && n && o._info) {
|
|
9587
|
+
const u = ns(o._info);
|
|
9588
|
+
if (u) return Qt(o.title, u);
|
|
9589
9589
|
}
|
|
9590
9590
|
return o.displayLabel ? {
|
|
9591
9591
|
text: o.displayLabel,
|
|
9592
|
-
showDefaultTag: !n && !!o.showDefaultTag &&
|
|
9592
|
+
showDefaultTag: !n && !!o.showDefaultTag && d
|
|
9593
9593
|
} : {
|
|
9594
9594
|
text: o.title || e,
|
|
9595
9595
|
showDefaultTag: !1
|
|
9596
9596
|
};
|
|
9597
9597
|
}
|
|
9598
|
-
function
|
|
9598
|
+
function ks(e) {
|
|
9599
9599
|
const o = e === null || e === void 0 ? void 0 : e.trim();
|
|
9600
9600
|
return o ? {
|
|
9601
|
-
query:
|
|
9602
|
-
exp: `OR(${
|
|
9601
|
+
query: Ht.reduce((a, n) => (a[n] = o, a), {}),
|
|
9602
|
+
exp: `OR(${Ht.join(",")})`
|
|
9603
9603
|
} : {
|
|
9604
9604
|
query: {},
|
|
9605
9605
|
exp: ""
|
|
9606
9606
|
};
|
|
9607
9607
|
}
|
|
9608
|
-
async function
|
|
9609
|
-
const { query: a, exp: n } =
|
|
9608
|
+
async function Cs(e, o, t) {
|
|
9609
|
+
const { query: a, exp: n } = ks(t.keyword);
|
|
9610
9610
|
return ke$1.apaas.modelComprehensive.postBizServiceModelCategoryModelKeyBsKey({
|
|
9611
9611
|
bsKey: "rdoListByPage",
|
|
9612
9612
|
modelKey: e,
|
|
@@ -9621,130 +9621,130 @@ async function ks(e, o, t) {
|
|
|
9621
9621
|
pageSize: t.pageSize
|
|
9622
9622
|
});
|
|
9623
9623
|
}
|
|
9624
|
-
async function
|
|
9624
|
+
async function Nt(e, o, t, a, n) {
|
|
9625
9625
|
return ke$1.apaas.modelComprehensive.postBizServiceModelCategoryModelKeyBsKey({
|
|
9626
9626
|
bsKey: e,
|
|
9627
9627
|
modelKey: o,
|
|
9628
9628
|
modelCategory: t
|
|
9629
9629
|
}, n, a);
|
|
9630
9630
|
}
|
|
9631
|
-
function
|
|
9632
|
-
const o = e.modelCategory ??
|
|
9631
|
+
function xs(e) {
|
|
9632
|
+
const o = e.modelCategory ?? ws, t = ref([]), a = ref(/* @__PURE__ */ new Map());
|
|
9633
9633
|
function n(h) {
|
|
9634
9634
|
var _h$children;
|
|
9635
9635
|
h.rawValue && a.value.set(String(h.rawValue), h), (_h$children = h.children) === null || _h$children === void 0 || _h$children.forEach(n);
|
|
9636
9636
|
}
|
|
9637
9637
|
function l(h, p, _) {
|
|
9638
|
-
const
|
|
9638
|
+
const y = _.__LABEL__ || _.version_, V = `${p}:${_.id_}`, U = {
|
|
9639
9639
|
key: V,
|
|
9640
|
-
title:
|
|
9641
|
-
displayLabel: `${h}:${
|
|
9640
|
+
title: y,
|
|
9641
|
+
displayLabel: `${h}:${y}`,
|
|
9642
9642
|
rawValue: V,
|
|
9643
9643
|
_info: _,
|
|
9644
9644
|
isDefault: !!_.default_
|
|
9645
9645
|
};
|
|
9646
|
-
return n(
|
|
9646
|
+
return n(U), U;
|
|
9647
9647
|
}
|
|
9648
9648
|
function s(h = []) {
|
|
9649
9649
|
return h.map((p) => {
|
|
9650
9650
|
var _p$__CHILDREN__;
|
|
9651
|
-
const _ = p.__LABEL__ || p.name_,
|
|
9651
|
+
const _ = p.__LABEL__ || p.name_, y = (_p$__CHILDREN__ = p.__CHILDREN__) === null || _p$__CHILDREN__ === void 0 ? void 0 : _p$__CHILDREN__.find((U) => U.default_), V = {
|
|
9652
9652
|
key: p.id_,
|
|
9653
9653
|
title: _,
|
|
9654
9654
|
displayLabel: _,
|
|
9655
9655
|
rawValue: p.id_,
|
|
9656
|
-
_info:
|
|
9657
|
-
showDefaultTag: !!
|
|
9656
|
+
_info: y,
|
|
9657
|
+
showDefaultTag: !!y,
|
|
9658
9658
|
disabled: !0,
|
|
9659
|
-
children: (p.__CHILDREN__ || []).map((
|
|
9659
|
+
children: (p.__CHILDREN__ || []).map((U) => l(_, p.id_, U))
|
|
9660
9660
|
};
|
|
9661
9661
|
return n(V), V;
|
|
9662
9662
|
});
|
|
9663
9663
|
}
|
|
9664
|
-
async function
|
|
9664
|
+
async function d(h = {}) {
|
|
9665
9665
|
var _h$keyword, _e$getQueryData;
|
|
9666
|
-
const p = h.pageNo ?? 1, _ = h.pageSize ?? 30,
|
|
9666
|
+
const p = h.pageNo ?? 1, _ = h.pageSize ?? 30, y = ((_h$keyword = h.keyword) === null || _h$keyword === void 0 ? void 0 : _h$keyword.trim()) || void 0, V = (_e$getQueryData = e.getQueryData) === null || _e$getQueryData === void 0 ? void 0 : _e$getQueryData.call(e), U = await Bt.handleRequest(`rdo-tree-list:${e.modelKey}`, {
|
|
9667
9667
|
pageNo: p,
|
|
9668
9668
|
pageSize: _,
|
|
9669
9669
|
modelCategory: o,
|
|
9670
|
-
keyword:
|
|
9670
|
+
keyword: y,
|
|
9671
9671
|
queryData: V
|
|
9672
|
-
}, () =>
|
|
9672
|
+
}, () => Cs(e.modelKey, o, {
|
|
9673
9673
|
pageNo: p,
|
|
9674
9674
|
pageSize: _,
|
|
9675
|
-
keyword:
|
|
9675
|
+
keyword: y,
|
|
9676
9676
|
queryData: V
|
|
9677
9677
|
}), 3e5);
|
|
9678
9678
|
return {
|
|
9679
|
-
complete: (
|
|
9680
|
-
nodes: s((
|
|
9679
|
+
complete: (U === null || U === void 0 ? void 0 : U.totalPage) ? U.totalPage <= p : !0,
|
|
9680
|
+
nodes: s((U === null || U === void 0 ? void 0 : U.data) || [])
|
|
9681
9681
|
};
|
|
9682
9682
|
}
|
|
9683
9683
|
async function u(h) {
|
|
9684
|
-
var _await$
|
|
9684
|
+
var _await$Bt$handleReque;
|
|
9685
9685
|
const [p] = h.split(":");
|
|
9686
9686
|
if (!p) return null;
|
|
9687
|
-
const
|
|
9687
|
+
const y = (_await$Bt$handleReque = await Bt.handleRequest(`rdo-tree-version:${e.modelKey}:${h}`, { id: h }, () => Nt("rdoListVersionByRefIdsWithParent", e.modelKey, o, { foreignFields: [] }, {
|
|
9688
9688
|
refIds: h,
|
|
9689
9689
|
includeDeleted: 1
|
|
9690
|
-
}), 3e5)) === null || _await$
|
|
9691
|
-
if (!
|
|
9692
|
-
const V =
|
|
9693
|
-
let
|
|
9690
|
+
}), 3e5)) === null || _await$Bt$handleReque === void 0 || (_await$Bt$handleReque = _await$Bt$handleReque.data) === null || _await$Bt$handleReque === void 0 ? void 0 : _await$Bt$handleReque[0];
|
|
9691
|
+
if (!y) return null;
|
|
9692
|
+
const V = y.__LABEL__ || y.name_;
|
|
9693
|
+
let U = [];
|
|
9694
9694
|
try {
|
|
9695
|
-
var _await$
|
|
9696
|
-
|
|
9695
|
+
var _await$Nt;
|
|
9696
|
+
U = (((_await$Nt = await Nt("rdoListVersionById", e.modelKey, o, { foreignFields: [] }, { id: p })) === null || _await$Nt === void 0 ? void 0 : _await$Nt.data) || []).map((A) => l(V, p, A));
|
|
9697
9697
|
} catch {
|
|
9698
|
-
|
|
9698
|
+
U = [];
|
|
9699
9699
|
}
|
|
9700
|
-
const
|
|
9700
|
+
const D = U.find((q) => q.isDefault), O = {
|
|
9701
9701
|
key: p,
|
|
9702
9702
|
title: V,
|
|
9703
9703
|
displayLabel: V,
|
|
9704
9704
|
rawValue: p,
|
|
9705
|
-
_info:
|
|
9706
|
-
showDefaultTag: !!
|
|
9705
|
+
_info: D === null || D === void 0 ? void 0 : D._info,
|
|
9706
|
+
showDefaultTag: !!D,
|
|
9707
9707
|
disabled: !0,
|
|
9708
|
-
children:
|
|
9708
|
+
children: U
|
|
9709
9709
|
};
|
|
9710
9710
|
return n(O), O;
|
|
9711
9711
|
}
|
|
9712
|
-
async function
|
|
9712
|
+
async function r(h = {}) {
|
|
9713
9713
|
var _t$value$at;
|
|
9714
|
-
const p = h.pageNo ?? 1, { complete: _, nodes:
|
|
9715
|
-
p > 1 ? ((_t$value$at = t.value.at(-1)) !== null && _t$value$at !== void 0 && _t$value$at.isLoadMore && t.value.pop(), t.value.push(...
|
|
9714
|
+
const p = h.pageNo ?? 1, { complete: _, nodes: y } = await d(h);
|
|
9715
|
+
p > 1 ? ((_t$value$at = t.value.at(-1)) !== null && _t$value$at !== void 0 && _t$value$at.isLoadMore && t.value.pop(), t.value.push(...y)) : t.value = y, _ || t.value.push({
|
|
9716
9716
|
key: `__load_more__:${p}`,
|
|
9717
9717
|
title: "加载更多...",
|
|
9718
9718
|
isLoadMore: !0,
|
|
9719
9719
|
disabled: !1
|
|
9720
9720
|
});
|
|
9721
9721
|
}
|
|
9722
|
-
async function
|
|
9722
|
+
async function S(h) {
|
|
9723
9723
|
if (!h) return;
|
|
9724
9724
|
const [p] = h.split(":");
|
|
9725
9725
|
if (a.value.has(h) || t.value.some((V) => V.key === p)) return;
|
|
9726
|
-
const
|
|
9727
|
-
|
|
9726
|
+
const y = await u(h);
|
|
9727
|
+
y && t.value.unshift(y);
|
|
9728
9728
|
}
|
|
9729
9729
|
function R(h) {
|
|
9730
9730
|
return a.value.get(h) || t.value.find((p) => String(p.key) === h);
|
|
9731
9731
|
}
|
|
9732
|
-
function
|
|
9732
|
+
function C(h) {
|
|
9733
9733
|
var _children;
|
|
9734
9734
|
const [p] = h.split(":"), _ = R(p || "");
|
|
9735
|
-
return a.value.get(h) || (_ === null || _ === void 0 || (_children = _.children) === null || _children === void 0 ? void 0 : _children.find((
|
|
9735
|
+
return a.value.get(h) || (_ === null || _ === void 0 || (_children = _.children) === null || _children === void 0 ? void 0 : _children.find((y) => String(y.rawValue) === h));
|
|
9736
9736
|
}
|
|
9737
|
-
function
|
|
9737
|
+
function w(h, p = !1) {
|
|
9738
9738
|
if (!h) return { text: "" };
|
|
9739
|
-
const [_,
|
|
9740
|
-
if (_ &&
|
|
9741
|
-
const
|
|
9742
|
-
if (
|
|
9743
|
-
}
|
|
9744
|
-
if (_ && !
|
|
9745
|
-
const
|
|
9746
|
-
if (
|
|
9747
|
-
text:
|
|
9739
|
+
const [_, y] = h.split(":");
|
|
9740
|
+
if (_ && y) {
|
|
9741
|
+
const U = Yt(h, C, R);
|
|
9742
|
+
if (U) return U;
|
|
9743
|
+
}
|
|
9744
|
+
if (_ && !y && !p) {
|
|
9745
|
+
const U = R(_);
|
|
9746
|
+
if (U) return {
|
|
9747
|
+
text: U.title,
|
|
9748
9748
|
showDefaultTag: !0
|
|
9749
9749
|
};
|
|
9750
9750
|
}
|
|
@@ -9758,27 +9758,27 @@ function Cs(e) {
|
|
|
9758
9758
|
};
|
|
9759
9759
|
}
|
|
9760
9760
|
async function g(h, p = 9999, _ = !1) {
|
|
9761
|
-
if (h) return t.value.length || await
|
|
9761
|
+
if (h) return t.value.length || await r({
|
|
9762
9762
|
pageNo: 1,
|
|
9763
9763
|
pageSize: p
|
|
9764
|
-
}), await
|
|
9764
|
+
}), await S(h), w(h, _);
|
|
9765
9765
|
}
|
|
9766
|
-
function
|
|
9766
|
+
function b() {
|
|
9767
9767
|
t.value = [], a.value = /* @__PURE__ */ new Map();
|
|
9768
9768
|
}
|
|
9769
9769
|
return {
|
|
9770
9770
|
treeData: t,
|
|
9771
|
-
loadOptions:
|
|
9772
|
-
ensureSelectedNode:
|
|
9773
|
-
getNodeDisplay:
|
|
9771
|
+
loadOptions: r,
|
|
9772
|
+
ensureSelectedNode: S,
|
|
9773
|
+
getNodeDisplay: w,
|
|
9774
9774
|
initByValue: g,
|
|
9775
|
-
findChildNode:
|
|
9775
|
+
findChildNode: C,
|
|
9776
9776
|
findParentNode: R,
|
|
9777
|
-
resetTreeData:
|
|
9777
|
+
resetTreeData: b
|
|
9778
9778
|
};
|
|
9779
9779
|
}
|
|
9780
|
-
function
|
|
9781
|
-
return openBlock(), createElementBlock("div",
|
|
9780
|
+
function Mi(e, o) {
|
|
9781
|
+
return openBlock(), createElementBlock("div", xi, [renderSlot(e.$slots, "default", {}, void 0, !0)]);
|
|
9782
9782
|
}
|
|
9783
9783
|
function fe(e) {
|
|
9784
9784
|
return {
|
|
@@ -9787,51 +9787,51 @@ function fe(e) {
|
|
|
9787
9787
|
message: $t("sys.pleaseSelectSth", { sth: e })
|
|
9788
9788
|
};
|
|
9789
9789
|
}
|
|
9790
|
-
function
|
|
9790
|
+
function Ae(e, o) {
|
|
9791
9791
|
const t = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""), a = [], n = t.length;
|
|
9792
9792
|
for (let l = 0; l < e; l++) a[l] = t[0 | Math.random() * n];
|
|
9793
9793
|
return a.join("");
|
|
9794
9794
|
}
|
|
9795
|
-
async function
|
|
9796
|
-
return (await
|
|
9795
|
+
async function er(e) {
|
|
9796
|
+
return (await Yi({
|
|
9797
9797
|
bsKey: "rdoGetVersionById",
|
|
9798
9798
|
modelKey: "em_barcode_parsing_rules",
|
|
9799
9799
|
modelCategory: "entity"
|
|
9800
9800
|
}, e)).data;
|
|
9801
9801
|
}
|
|
9802
|
-
function
|
|
9802
|
+
function oa(e) {
|
|
9803
9803
|
return e.list && !e.fieldList && (e.fieldList = e.list.map((o) => ({
|
|
9804
9804
|
type: o,
|
|
9805
|
-
key: o === Fe.other ?
|
|
9805
|
+
key: o === Fe.other ? Ae(32) : o
|
|
9806
9806
|
})), delete e.list), e.fieldList.forEach((o) => {
|
|
9807
|
-
o.key || (o.key = o.type === Fe.other ?
|
|
9807
|
+
o.key || (o.key = o.type === Fe.other ? Ae(32) : o.type);
|
|
9808
9808
|
}), e;
|
|
9809
9809
|
}
|
|
9810
|
-
function
|
|
9810
|
+
function tr(e, o) {
|
|
9811
9811
|
if (!o) throw new Error("请传入解析规则");
|
|
9812
|
-
const { separator: n, nullSymbol: l, fieldList: s } =
|
|
9813
|
-
return e.split(n).reduce((u,
|
|
9814
|
-
const R = s[
|
|
9812
|
+
const { separator: n, nullSymbol: l, fieldList: s } = oa(JSON.parse(o));
|
|
9813
|
+
return e.split(n).reduce((u, r, S) => {
|
|
9814
|
+
const R = s[S];
|
|
9815
9815
|
if (R) {
|
|
9816
|
-
let
|
|
9817
|
-
if (
|
|
9816
|
+
let C = l && r === l ? null : r;
|
|
9817
|
+
if (C !== null) switch (R.type) {
|
|
9818
9818
|
case Fe.qty:
|
|
9819
|
-
|
|
9819
|
+
C = Number(C);
|
|
9820
9820
|
break;
|
|
9821
9821
|
case Fe.expiration:
|
|
9822
|
-
|
|
9822
|
+
C = dayjs(C, R.format).format("YYYY-MM-DD HH:mm:ss");
|
|
9823
9823
|
break;
|
|
9824
9824
|
}
|
|
9825
|
-
u[R.key] =
|
|
9825
|
+
u[R.key] = C;
|
|
9826
9826
|
}
|
|
9827
9827
|
return u;
|
|
9828
9828
|
}, {});
|
|
9829
9829
|
}
|
|
9830
|
-
async function
|
|
9831
|
-
const o = await
|
|
9832
|
-
if (o === null || o === void 0 ? void 0 : o.rules_) return
|
|
9830
|
+
async function ar(e) {
|
|
9831
|
+
const o = await er({ id: e });
|
|
9832
|
+
if (o === null || o === void 0 ? void 0 : o.rules_) return oa(JSON.parse(o.rules_));
|
|
9833
9833
|
}
|
|
9834
|
-
function
|
|
9834
|
+
function or(e, o) {
|
|
9835
9835
|
const t = {};
|
|
9836
9836
|
return o !== null && o !== void 0 && o.length && o.forEach((a) => {
|
|
9837
9837
|
const n = a.barcodeField;
|
|
@@ -9839,83 +9839,83 @@ function ar(e, o) {
|
|
|
9839
9839
|
var _a$formFields;
|
|
9840
9840
|
const l = e[n];
|
|
9841
9841
|
(_a$formFields = a.formFields) === null || _a$formFields === void 0 || _a$formFields.forEach((s) => {
|
|
9842
|
-
const
|
|
9843
|
-
t[
|
|
9842
|
+
const d = s.split(".")[1];
|
|
9843
|
+
t[d] = l;
|
|
9844
9844
|
});
|
|
9845
9845
|
}
|
|
9846
9846
|
}), t;
|
|
9847
9847
|
}
|
|
9848
|
-
function
|
|
9848
|
+
function sa(e, o = "") {
|
|
9849
9849
|
const t = {};
|
|
9850
9850
|
for (const [a, n] of Object.entries(e)) {
|
|
9851
9851
|
const l = o ? `${o}.${a}` : a;
|
|
9852
|
-
n != null && typeof n == "object" && !Array.isArray(n) ? Object.assign(t,
|
|
9852
|
+
n != null && typeof n == "object" && !Array.isArray(n) ? Object.assign(t, sa(n, l)) : n != null && (t[l] = String(n));
|
|
9853
9853
|
}
|
|
9854
9854
|
return t;
|
|
9855
9855
|
}
|
|
9856
|
-
function
|
|
9856
|
+
function Lr(e = "zh-CN") {
|
|
9857
9857
|
const o = {};
|
|
9858
|
-
for (const [t, a] of Object.entries(
|
|
9858
|
+
for (const [t, a] of Object.entries(la)) {
|
|
9859
9859
|
const n = t.match(/^\.\/(?:([^/]+)\/)?([^/]+)\.ts$/);
|
|
9860
9860
|
if (!n || !(a === null || a === void 0 ? void 0 : a.default)) continue;
|
|
9861
9861
|
const l = n[1] || "zh-CN", s = n[2];
|
|
9862
|
-
l === e && Object.assign(o,
|
|
9862
|
+
l === e && Object.assign(o, sa(a.default, s));
|
|
9863
9863
|
}
|
|
9864
9864
|
return o;
|
|
9865
9865
|
}
|
|
9866
|
-
function
|
|
9866
|
+
function Ir(e, o) {
|
|
9867
9867
|
return !o || typeof o != "object" ? e : Object.keys(o).reduce((t, a) => t.replace(new RegExp(`\\{${a}\\}`, "g"), String(o[a])), e);
|
|
9868
9868
|
}
|
|
9869
|
-
function
|
|
9870
|
-
const t =
|
|
9869
|
+
function xt(e = "zh-CN", o) {
|
|
9870
|
+
const t = Lr(e);
|
|
9871
9871
|
return (a, ...n) => {
|
|
9872
9872
|
const l = n[0] && typeof n[0] == "object" ? n[0] : void 0, s = t[a];
|
|
9873
|
-
if (s != null) return
|
|
9873
|
+
if (s != null) return Ir(s, l);
|
|
9874
9874
|
if (o) {
|
|
9875
|
-
const
|
|
9876
|
-
if (
|
|
9875
|
+
const d = o(a, ...n);
|
|
9876
|
+
if (d != null && d !== a) return String(d);
|
|
9877
9877
|
}
|
|
9878
9878
|
return a;
|
|
9879
9879
|
};
|
|
9880
9880
|
}
|
|
9881
|
-
function
|
|
9881
|
+
function ia(e = {}) {
|
|
9882
9882
|
var _window;
|
|
9883
9883
|
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;
|
|
9884
9884
|
if (typeof (a === null || a === void 0 ? void 0 : a.autoRegisterLocale) == "function") {
|
|
9885
|
-
a.autoRegisterLocale(
|
|
9885
|
+
a.autoRegisterLocale(la);
|
|
9886
9886
|
return;
|
|
9887
9887
|
}
|
|
9888
9888
|
if (o) {
|
|
9889
9889
|
const n = typeof window.$t == "function" ? window.$t.bind(window) : null;
|
|
9890
|
-
window.$t =
|
|
9890
|
+
window.$t = xt(t, n);
|
|
9891
9891
|
}
|
|
9892
9892
|
}
|
|
9893
|
-
function
|
|
9894
|
-
|
|
9895
|
-
const a =
|
|
9893
|
+
function ra(e, o = "zh-CN") {
|
|
9894
|
+
ia({ useLocalFallback: !1 });
|
|
9895
|
+
const a = xt(o, typeof window.$t == "function" ? window.$t.bind(window) : null);
|
|
9896
9896
|
return window.$t = a, e.config.globalProperties.$t = a, a;
|
|
9897
9897
|
}
|
|
9898
|
-
function
|
|
9898
|
+
function jr(e, o = "zh-CN") {
|
|
9899
9899
|
var _e$config;
|
|
9900
9900
|
const t = e === null || e === void 0 || (_e$config = e.config) === null || _e$config === void 0 ? void 0 : _e$config.globalProperties;
|
|
9901
9901
|
if (typeof (t === null || t === void 0 ? void 0 : t.$t) == "function") return typeof window.$t != "function" && (window.$t = t.$t), t.$t;
|
|
9902
|
-
|
|
9903
|
-
const n =
|
|
9902
|
+
ia({ useLocalFallback: !1 });
|
|
9903
|
+
const n = xt(o, typeof window.$t == "function" ? window.$t.bind(window) : null);
|
|
9904
9904
|
return window.$t = n, t && (t.$t = n), n;
|
|
9905
9905
|
}
|
|
9906
|
-
function ra(e) {
|
|
9907
|
-
const o = Mt.options.themes ??= {};
|
|
9908
|
-
Object.assign(o, Ut), e.use(Mt, { themes: { ...Ut } });
|
|
9909
|
-
}
|
|
9910
9906
|
function ua(e) {
|
|
9907
|
+
const o = St.options.themes ??= {};
|
|
9908
|
+
Object.assign(o, Dt), e.use(St, { themes: { ...Dt } });
|
|
9909
|
+
}
|
|
9910
|
+
function da(e) {
|
|
9911
9911
|
const o = e.components;
|
|
9912
9912
|
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"]));
|
|
9913
9913
|
}
|
|
9914
9914
|
function ca(e) {
|
|
9915
|
-
|
|
9915
|
+
da(e._context) || e.use(Ft);
|
|
9916
9916
|
}
|
|
9917
|
-
function
|
|
9918
|
-
if (
|
|
9917
|
+
function Fr(e) {
|
|
9918
|
+
if (da(e)) return;
|
|
9919
9919
|
const o = {
|
|
9920
9920
|
component(t, a) {
|
|
9921
9921
|
(e.components ??= {})[t] = a;
|
|
@@ -9927,25 +9927,25 @@ function jr(e) {
|
|
|
9927
9927
|
config: e.config,
|
|
9928
9928
|
_context: e
|
|
9929
9929
|
};
|
|
9930
|
-
|
|
9930
|
+
Ft.install(o);
|
|
9931
9931
|
}
|
|
9932
|
-
function
|
|
9933
|
-
return (e === null || e === void 0 ? void 0 : e.closest(".ant-modal"))
|
|
9932
|
+
function Gr(e, o) {
|
|
9933
|
+
return (e === null || e === void 0 ? void 0 : e.closest(".ant-modal-content")) || (typeof o == "function" ? o(e) : document.body);
|
|
9934
9934
|
}
|
|
9935
|
-
function
|
|
9936
|
-
return
|
|
9935
|
+
function Xr() {
|
|
9936
|
+
return He || (He = createApp({ name: "FormBaseModalFallbackApp" }), ra(He), ua(He), ca(He)), He._context;
|
|
9937
9937
|
}
|
|
9938
|
-
function
|
|
9938
|
+
function Er(e, o, t) {
|
|
9939
9939
|
const a = document.createElement("div");
|
|
9940
9940
|
a.className = "gct-form-base-modal-node", t && (a.dataset.modalId = t), document.body.appendChild(a);
|
|
9941
|
-
const n = createVNode(e), l = o ??
|
|
9942
|
-
|
|
9943
|
-
let s = !1,
|
|
9941
|
+
const n = createVNode(e), l = o ?? Xr();
|
|
9942
|
+
jr(l), Fr(l), n.appContext = l, render(n, a);
|
|
9943
|
+
let s = !1, d = !1;
|
|
9944
9944
|
async function u() {
|
|
9945
|
-
if (!(s ||
|
|
9945
|
+
if (!(s || d)) {
|
|
9946
9946
|
s = !0;
|
|
9947
9947
|
try {
|
|
9948
|
-
await Promise.resolve(), await nextTick(), render(null, a), a.remove(),
|
|
9948
|
+
await Promise.resolve(), await nextTick(), render(null, a), a.remove(), d = !0;
|
|
9949
9949
|
} finally {
|
|
9950
9950
|
s = !1;
|
|
9951
9951
|
}
|
|
@@ -9953,29 +9953,29 @@ function Xr(e, o, t) {
|
|
|
9953
9953
|
}
|
|
9954
9954
|
return { destroy: u };
|
|
9955
9955
|
}
|
|
9956
|
-
function
|
|
9957
|
-
return
|
|
9956
|
+
function Zr(e, o, t) {
|
|
9957
|
+
return Mt.open(e, o, t);
|
|
9958
9958
|
}
|
|
9959
|
-
function
|
|
9960
|
-
|
|
9959
|
+
function Lu() {
|
|
9960
|
+
Mt.closeAll();
|
|
9961
9961
|
}
|
|
9962
|
-
var ke$1,
|
|
9962
|
+
var ke$1, Xt, Et, F$15, Ke, Z$1, Se, Bn, Hn, Nn, Un, Pn, Kn, vt, pt, nl, sl, dl, cl, pl, qe, rs, us, ds, cs, ps, fs, vs, gs, hs, ys, zt, _s, Bt, ws, Ht, Ms, Ss, Rs, As, Os, Vs, Ts, qs, zs, Bs, Hs, Ns, Us, Ct, yi, bi, _i, wi, gt, Ci, xi, ht, yt, Si, Ri, Ai, Oi, Vi, Ti, qi, $e, ea, bt, Bi, Hi, Ye, Ni, Ui, Di, Pi, ta, Ut, Li, aa, ji, Fi, Gi, Xi, $i, Zi, Qi, Fe, Yi, nr, lr, sr, ir, rr, ur, dr, cr, pr, fr, mr, na, gr, hr, yr, _r, wr, kr, xr, Mr, Sr, Rr, Ar, Vr, Tr, zr, Br, Ur, la, Dt, He, $r, Mt, Wu;
|
|
9963
9963
|
var init_index_es = __esmMin((() => {
|
|
9964
9964
|
init_ResizeObserver_es();
|
|
9965
9965
|
init_vue_color();
|
|
9966
9966
|
init_style();
|
|
9967
9967
|
ke$1 = new Proxy(api, { get(e, o) {
|
|
9968
|
-
const t =
|
|
9968
|
+
const t = Ra();
|
|
9969
9969
|
return Reflect.get(t, o, t);
|
|
9970
9970
|
} });
|
|
9971
|
-
|
|
9972
|
-
|
|
9971
|
+
Xt = /* @__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))(Xt || {});
|
|
9972
|
+
Et = /* @__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))(Et || {});
|
|
9973
9973
|
F$15 = (e, o) => {
|
|
9974
9974
|
const t = e.__vccOpts || e;
|
|
9975
9975
|
for (const [a, n] of o) t[a] = n;
|
|
9976
9976
|
return t;
|
|
9977
9977
|
};
|
|
9978
|
-
|
|
9978
|
+
Ke = {
|
|
9979
9979
|
...PopperWrapper,
|
|
9980
9980
|
name: "GctDropdown",
|
|
9981
9981
|
vPopperTheme: "gct-dropdown"
|
|
@@ -10073,8 +10073,8 @@ var init_index_es = __esmMin((() => {
|
|
|
10073
10073
|
const s = new Image();
|
|
10074
10074
|
s.crossOrigin = "Anonymous", s.onload = () => {
|
|
10075
10075
|
this.imageCache.set(t, s), n(s);
|
|
10076
|
-
}, s.onerror = (
|
|
10077
|
-
console.error("[AssetHelper] 图片加载失败", t), l(
|
|
10076
|
+
}, s.onerror = (d) => {
|
|
10077
|
+
console.error("[AssetHelper] 图片加载失败", t), l(d);
|
|
10078
10078
|
}, s.src = t;
|
|
10079
10079
|
});
|
|
10080
10080
|
}
|
|
@@ -10103,20 +10103,20 @@ var init_index_es = __esmMin((() => {
|
|
|
10103
10103
|
l.fillStyle = "#ffffff", l.fillRect(0, 0, t, a);
|
|
10104
10104
|
let s = Math.floor(a / 3);
|
|
10105
10105
|
l.font = `${s}px Arial`;
|
|
10106
|
-
const
|
|
10107
|
-
const h =
|
|
10106
|
+
const d = (w, g, b) => {
|
|
10107
|
+
const h = w.split(""), p = [];
|
|
10108
10108
|
let _ = "";
|
|
10109
|
-
for (const
|
|
10110
|
-
const V = _ +
|
|
10111
|
-
|
|
10109
|
+
for (const y of h) {
|
|
10110
|
+
const V = _ + y;
|
|
10111
|
+
b.measureText(V).width > g && _ ? (p.push(_), _ = y) : _ = V;
|
|
10112
10112
|
}
|
|
10113
10113
|
return _ && p.push(_), p;
|
|
10114
10114
|
}, u = t * .9;
|
|
10115
|
-
let
|
|
10116
|
-
for (;
|
|
10117
|
-
const
|
|
10118
|
-
return l.fillStyle = "#000", l.textAlign = "center", l.textBaseline = "middle",
|
|
10119
|
-
l.fillText(
|
|
10115
|
+
let r = d(o, u, l), S = s * 1.2;
|
|
10116
|
+
for (; r.length * S > a && s > 10;) s--, S = s * 1.2, l.font = `${s}px Arial`, r = d(o, u, l);
|
|
10117
|
+
const C = (a - r.length * S) / 2 + S / 2;
|
|
10118
|
+
return l.fillStyle = "#000", l.textAlign = "center", l.textBaseline = "middle", r.forEach((w, g) => {
|
|
10119
|
+
l.fillText(w, t / 2, C + g * S);
|
|
10120
10120
|
}), n.toDataURL("image/png");
|
|
10121
10121
|
}
|
|
10122
10122
|
static clear() {
|
|
@@ -10167,11 +10167,11 @@ var init_index_es = __esmMin((() => {
|
|
|
10167
10167
|
}
|
|
10168
10168
|
};
|
|
10169
10169
|
Se.minioBasePath = "/minio", Se.transfer = null, Se.uploadFn = null, Se.fileUrlMap = /* @__PURE__ */ new Map(), Se.imageCache = /* @__PURE__ */ new Map(), Se.fileSizeCache = /* @__PURE__ */ new Map();
|
|
10170
|
-
|
|
10171
|
-
|
|
10172
|
-
|
|
10173
|
-
|
|
10174
|
-
|
|
10170
|
+
Bn = { class: "message-wrapper" };
|
|
10171
|
+
Hn = ["onMouseenter", "onMouseleave"];
|
|
10172
|
+
Nn = { class: "message-message" };
|
|
10173
|
+
Un = ["onClick"];
|
|
10174
|
+
Pn = /* @__PURE__ */ F$15(/* @__PURE__ */ defineComponent({
|
|
10175
10175
|
__name: "Message",
|
|
10176
10176
|
setup(e, { expose: o }) {
|
|
10177
10177
|
const t = reactive([]), a = {
|
|
@@ -10180,34 +10180,34 @@ var init_index_es = __esmMin((() => {
|
|
|
10180
10180
|
warning: "icon-jinggao1",
|
|
10181
10181
|
error: "icon-cuowu2"
|
|
10182
10182
|
};
|
|
10183
|
-
function n(
|
|
10184
|
-
|
|
10185
|
-
u(
|
|
10186
|
-
},
|
|
10183
|
+
function n(r) {
|
|
10184
|
+
r.duration <= 0 || (r.startTime = Date.now(), r.timer = window.setTimeout(() => {
|
|
10185
|
+
u(r.id);
|
|
10186
|
+
}, r.remaining));
|
|
10187
10187
|
}
|
|
10188
|
-
function l(
|
|
10189
|
-
if (!
|
|
10190
|
-
clearTimeout(
|
|
10191
|
-
const
|
|
10192
|
-
|
|
10188
|
+
function l(r) {
|
|
10189
|
+
if (!r.timer) return;
|
|
10190
|
+
clearTimeout(r.timer), r.timer = void 0;
|
|
10191
|
+
const S = Date.now() - (r.startTime || 0);
|
|
10192
|
+
r.remaining = r.remaining - S;
|
|
10193
10193
|
}
|
|
10194
|
-
function s(
|
|
10195
|
-
|
|
10194
|
+
function s(r) {
|
|
10195
|
+
r.timer || r.remaining <= 0 || n(r);
|
|
10196
10196
|
}
|
|
10197
|
-
function
|
|
10198
|
-
|
|
10197
|
+
function d(r) {
|
|
10198
|
+
r.remaining = r.duration, t.push(r), r.duration > 0 && n(r);
|
|
10199
10199
|
}
|
|
10200
|
-
function u(
|
|
10201
|
-
const
|
|
10202
|
-
if (
|
|
10203
|
-
const R = t[
|
|
10204
|
-
R !== null && R !== void 0 && R.timer && clearTimeout(R.timer), t.splice(
|
|
10200
|
+
function u(r) {
|
|
10201
|
+
const S = t.findIndex((R) => R.id === r);
|
|
10202
|
+
if (S !== -1) {
|
|
10203
|
+
const R = t[S];
|
|
10204
|
+
R !== null && R !== void 0 && R.timer && clearTimeout(R.timer), t.splice(S, 1);
|
|
10205
10205
|
}
|
|
10206
10206
|
}
|
|
10207
10207
|
return o({
|
|
10208
|
-
add:
|
|
10208
|
+
add: d,
|
|
10209
10209
|
remove: u
|
|
10210
|
-
}), (
|
|
10210
|
+
}), (r, S) => (openBlock(), createElementBlock("div", Bn, [createVNode(TransitionGroup, {
|
|
10211
10211
|
name: "message",
|
|
10212
10212
|
tag: "div",
|
|
10213
10213
|
class: "message-list"
|
|
@@ -10215,17 +10215,17 @@ var init_index_es = __esmMin((() => {
|
|
|
10215
10215
|
default: withCtx(() => [(openBlock(!0), createElementBlock(Fragment, null, renderList(t, (R) => (openBlock(), createElementBlock("div", {
|
|
10216
10216
|
key: R.id,
|
|
10217
10217
|
class: normalizeClass(["message", `message--${R.type}`]),
|
|
10218
|
-
onMouseenter: (
|
|
10219
|
-
onMouseleave: (
|
|
10218
|
+
onMouseenter: (C) => l(R),
|
|
10219
|
+
onMouseleave: (C) => s(R)
|
|
10220
10220
|
}, [
|
|
10221
10221
|
createElementVNode("i", { class: normalizeClass(["message-icon icon iconfont", a[R.type]]) }, null, 2),
|
|
10222
|
-
createElementVNode("div",
|
|
10222
|
+
createElementVNode("div", Nn, toDisplayString(R.message), 1),
|
|
10223
10223
|
R.closeable ? (openBlock(), createElementBlock("i", {
|
|
10224
10224
|
key: 0,
|
|
10225
10225
|
class: "message-close icon iconfont icon-guanbi",
|
|
10226
|
-
onClick: (
|
|
10227
|
-
}, null, 8,
|
|
10228
|
-
], 42,
|
|
10226
|
+
onClick: (C) => u(R.id)
|
|
10227
|
+
}, null, 8, Un)) : createCommentVNode("", !0)
|
|
10228
|
+
], 42, Hn))), 128))]),
|
|
10229
10229
|
_: 1
|
|
10230
10230
|
})]));
|
|
10231
10231
|
}
|
|
@@ -10251,8 +10251,8 @@ var init_index_es = __esmMin((() => {
|
|
|
10251
10251
|
type: "info",
|
|
10252
10252
|
message: e
|
|
10253
10253
|
});
|
|
10254
|
-
|
|
10255
|
-
|
|
10254
|
+
nl = typeof window > "u";
|
|
10255
|
+
sl = {
|
|
10256
10256
|
vertical: {
|
|
10257
10257
|
offset: "offsetHeight",
|
|
10258
10258
|
scroll: "scrollTop",
|
|
@@ -10274,7 +10274,7 @@ var init_index_es = __esmMin((() => {
|
|
|
10274
10274
|
direction: "left"
|
|
10275
10275
|
}
|
|
10276
10276
|
};
|
|
10277
|
-
|
|
10277
|
+
dl = defineComponent({
|
|
10278
10278
|
name: "Bar",
|
|
10279
10279
|
props: {
|
|
10280
10280
|
vertical: Boolean,
|
|
@@ -10282,36 +10282,36 @@ var init_index_es = __esmMin((() => {
|
|
|
10282
10282
|
move: Number
|
|
10283
10283
|
},
|
|
10284
10284
|
setup(e) {
|
|
10285
|
-
const o = getCurrentInstance(), t = ref(), a = inject("scroll-bar-wrap", {}), n = computed(() =>
|
|
10285
|
+
const o = getCurrentInstance(), t = ref(), a = inject("scroll-bar-wrap", {}), n = computed(() => sl[e.vertical ? "vertical" : "horizontal"]), l = ref({}), s = ref(), d = (C) => {
|
|
10286
10286
|
var _window$getSelection;
|
|
10287
|
-
|
|
10288
|
-
}, u = (
|
|
10287
|
+
C.ctrlKey || C.button === 2 || ((_window$getSelection = window.getSelection()) === null || _window$getSelection === void 0 || _window$getSelection.removeAllRanges(), r(C), l.value[n.value.axis] = C.currentTarget[n.value.offset] - (C[n.value.client] - C.currentTarget.getBoundingClientRect()[n.value.direction]));
|
|
10288
|
+
}, u = (C) => {
|
|
10289
10289
|
var _o$vnode$el;
|
|
10290
|
-
const
|
|
10291
|
-
a.value[n.value.scroll] =
|
|
10292
|
-
},
|
|
10293
|
-
|
|
10294
|
-
},
|
|
10290
|
+
const b = (Math.abs(C.target.getBoundingClientRect()[n.value.direction] - C[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]);
|
|
10291
|
+
a.value[n.value.scroll] = b * a.value[n.value.scrollSize] / 100;
|
|
10292
|
+
}, r = (C) => {
|
|
10293
|
+
C.stopImmediatePropagation(), s.value = !0, Tt(document, "mousemove", S), Tt(document, "mouseup", R), document.onselectstart = () => !1;
|
|
10294
|
+
}, S = (C) => {
|
|
10295
10295
|
var _o$vnode$el2, _o$vnode$el3;
|
|
10296
10296
|
if (s.value === !1) return;
|
|
10297
|
-
const
|
|
10298
|
-
if (!
|
|
10299
|
-
const h = (((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]) -
|
|
10297
|
+
const w = l.value[n.value.axis];
|
|
10298
|
+
if (!w) return;
|
|
10299
|
+
const h = (((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]) - C[n.value.client]) * -1 - (t.value[n.value.offset] - w)) * 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]);
|
|
10300
10300
|
a.value[n.value.scroll] = h * a.value[n.value.scrollSize] / 100;
|
|
10301
10301
|
};
|
|
10302
10302
|
function R() {
|
|
10303
|
-
s.value = !1, l.value[n.value.axis] = 0,
|
|
10303
|
+
s.value = !1, l.value[n.value.axis] = 0, qt(document, "mousemove", S), document.onselectstart = null;
|
|
10304
10304
|
}
|
|
10305
10305
|
return onUnmounted(() => {
|
|
10306
|
-
|
|
10306
|
+
qt(document, "mouseup", R);
|
|
10307
10307
|
}), () => h("div", {
|
|
10308
10308
|
class: ["scrollbar__bar", "is-" + n.value.key],
|
|
10309
10309
|
onMousedown: u
|
|
10310
10310
|
}, h("div", {
|
|
10311
10311
|
ref: t,
|
|
10312
10312
|
class: "scrollbar__thumb",
|
|
10313
|
-
onMousedown:
|
|
10314
|
-
style:
|
|
10313
|
+
onMousedown: d,
|
|
10314
|
+
style: il({
|
|
10315
10315
|
size: e.size,
|
|
10316
10316
|
move: e.move,
|
|
10317
10317
|
bar: n.value
|
|
@@ -10321,7 +10321,7 @@ var init_index_es = __esmMin((() => {
|
|
|
10321
10321
|
});
|
|
10322
10322
|
cl = defineComponent({
|
|
10323
10323
|
name: "Scrollbar",
|
|
10324
|
-
components: { Bar:
|
|
10324
|
+
components: { Bar: dl },
|
|
10325
10325
|
props: {
|
|
10326
10326
|
native: {
|
|
10327
10327
|
type: Boolean,
|
|
@@ -10356,42 +10356,42 @@ var init_index_es = __esmMin((() => {
|
|
|
10356
10356
|
setup(e) {
|
|
10357
10357
|
const o = ref("0"), t = ref("0"), a = ref(0), n = ref(0), l = ref(), s = ref();
|
|
10358
10358
|
provide("scroll-bar-wrap", l);
|
|
10359
|
-
const
|
|
10359
|
+
const d = computed(() => Array.isArray(e.wrapStyle) ? ul(e.wrapStyle) : e.wrapStyle), u = () => {
|
|
10360
10360
|
e.native || (n.value = unref(l).scrollTop * 100 / unref(l).clientHeight, a.value = unref(l).scrollLeft * 100 / unref(l).clientWidth);
|
|
10361
|
-
},
|
|
10361
|
+
}, r = () => {
|
|
10362
10362
|
if (!unref(l)) return;
|
|
10363
|
-
const
|
|
10364
|
-
t.value =
|
|
10365
|
-
},
|
|
10366
|
-
const
|
|
10367
|
-
|
|
10368
|
-
}, R = (
|
|
10369
|
-
const
|
|
10370
|
-
|
|
10363
|
+
const C = unref(l).clientHeight * 100 / unref(l).scrollHeight, w = unref(l).clientWidth * 100 / unref(l).scrollWidth;
|
|
10364
|
+
t.value = C < 100 ? C + "%" : "", o.value = w < 100 ? w + "%" : "";
|
|
10365
|
+
}, S = (C) => {
|
|
10366
|
+
const w = unref(l);
|
|
10367
|
+
w && (typeof C == "number" ? w.scrollTop = C : w.scrollTo(C));
|
|
10368
|
+
}, R = (C) => {
|
|
10369
|
+
const w = unref(l);
|
|
10370
|
+
w && (w.scrollTop = C);
|
|
10371
10371
|
};
|
|
10372
10372
|
return onMounted(() => {
|
|
10373
|
-
e.native || (nextTick(
|
|
10373
|
+
e.native || (nextTick(r), e.noresize || (Ot(unref(s), r), Ot(unref(l), r), addEventListener("resize", r)));
|
|
10374
10374
|
}), onBeforeUnmount(() => {
|
|
10375
|
-
e.native || e.noresize || (
|
|
10375
|
+
e.native || e.noresize || (Vt(unref(s), r), Vt(unref(l), r), removeEventListener("resize", r));
|
|
10376
10376
|
}), {
|
|
10377
10377
|
moveX: a,
|
|
10378
10378
|
moveY: n,
|
|
10379
10379
|
sizeWidth: o,
|
|
10380
10380
|
sizeHeight: t,
|
|
10381
|
-
style:
|
|
10381
|
+
style: d,
|
|
10382
10382
|
wrap: l,
|
|
10383
10383
|
resize: s,
|
|
10384
|
-
update:
|
|
10384
|
+
update: r,
|
|
10385
10385
|
handleScroll: u,
|
|
10386
|
-
scrollTo:
|
|
10386
|
+
scrollTo: S,
|
|
10387
10387
|
setScrollTop: R
|
|
10388
10388
|
};
|
|
10389
10389
|
}
|
|
10390
10390
|
});
|
|
10391
|
-
|
|
10392
|
-
|
|
10391
|
+
pl = { class: "scrollbar" };
|
|
10392
|
+
qe = /* @__PURE__ */ F$15(cl, [["render", fl]]);
|
|
10393
10393
|
({ ...PopperWrapper });
|
|
10394
|
-
|
|
10394
|
+
rs = /* @__PURE__ */ F$15(/* @__PURE__ */ defineComponent({
|
|
10395
10395
|
__name: "rdo-tree-select-more",
|
|
10396
10396
|
emits: ["load-more"],
|
|
10397
10397
|
setup(e, { emit: o }) {
|
|
@@ -10410,18 +10410,18 @@ var init_index_es = __esmMin((() => {
|
|
|
10410
10410
|
}, [...s[0] || (s[0] = [createElementVNode("span", { class: "rdo-tree-select-more__text" }, "加载更多", -1)])], 512));
|
|
10411
10411
|
}
|
|
10412
10412
|
}), [["__scopeId", "data-v-48b5d502"]]);
|
|
10413
|
-
|
|
10414
|
-
|
|
10413
|
+
us = { class: "rdo-tree-select-node" };
|
|
10414
|
+
ds = {
|
|
10415
10415
|
key: 1,
|
|
10416
10416
|
class: "rdo-tree-select-node__switcher placeholder"
|
|
10417
10417
|
};
|
|
10418
10418
|
cs = { class: "rdo-tree-select-node__title" };
|
|
10419
|
-
|
|
10420
|
-
|
|
10419
|
+
ps = { class: "rdo-tree-select-node__label" };
|
|
10420
|
+
fs = {
|
|
10421
10421
|
key: 0,
|
|
10422
10422
|
class: "rdo-tree-select-node__tag"
|
|
10423
10423
|
};
|
|
10424
|
-
|
|
10424
|
+
vs = /* @__PURE__ */ F$15(/* @__PURE__ */ defineComponent({
|
|
10425
10425
|
name: "RdoTreeSelectNode",
|
|
10426
10426
|
__name: "rdo-tree-select-node",
|
|
10427
10427
|
props: {
|
|
@@ -10437,16 +10437,16 @@ var init_index_es = __esmMin((() => {
|
|
|
10437
10437
|
const t = e, a = o, n = computed(() => {
|
|
10438
10438
|
var _t$node$children2;
|
|
10439
10439
|
return !!((_t$node$children2 = t.node.children) === null || _t$node$children2 === void 0 ? void 0 : _t$node$children2.length);
|
|
10440
|
-
}), l = computed(() => t.expandedKeys.includes(t.node.key)), s = computed(() => t.selectedKey === String(t.node.rawValue ?? t.node.key)),
|
|
10440
|
+
}), 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);
|
|
10441
10441
|
function u() {
|
|
10442
|
-
|
|
10442
|
+
d.value || a("select", t.node);
|
|
10443
10443
|
}
|
|
10444
|
-
return (
|
|
10444
|
+
return (r, S) => {
|
|
10445
10445
|
const R = resolveComponent("RdoTreeSelectNode", !0);
|
|
10446
|
-
return openBlock(), createElementBlock("div",
|
|
10446
|
+
return openBlock(), createElementBlock("div", us, [createElementVNode("div", {
|
|
10447
10447
|
class: normalizeClass(["rdo-tree-select-node__row", {
|
|
10448
10448
|
selected: s.value,
|
|
10449
|
-
disabled:
|
|
10449
|
+
disabled: d.value,
|
|
10450
10450
|
"is-parent": n.value,
|
|
10451
10451
|
"is-child": !n.value && e.level > 0
|
|
10452
10452
|
}]),
|
|
@@ -10455,22 +10455,22 @@ var init_index_es = __esmMin((() => {
|
|
|
10455
10455
|
}, [n.value ? (openBlock(), createElementBlock("span", {
|
|
10456
10456
|
key: 0,
|
|
10457
10457
|
class: normalizeClass(["rdo-tree-select-node__switcher", { expanded: l.value }]),
|
|
10458
|
-
onClick:
|
|
10458
|
+
onClick: S[0] || (S[0] = withModifiers((C) => a("toggle", e.node.key), ["stop"]))
|
|
10459
10459
|
}, [createVNode(unref(Z$1), {
|
|
10460
10460
|
icon: "icon-arrow_zhankai",
|
|
10461
10461
|
color: "#212528",
|
|
10462
10462
|
size: "13",
|
|
10463
10463
|
version: "v2"
|
|
10464
|
-
})], 2)) : (openBlock(), createElementBlock("span",
|
|
10465
|
-
key:
|
|
10466
|
-
node:
|
|
10464
|
+
})], 2)) : (openBlock(), createElementBlock("span", ds)), createElementVNode("span", cs, [createElementVNode("span", ps, toDisplayString(e.node.title), 1), e.node.isDefault && !n.value ? (openBlock(), createElementBlock("span", fs, "默认")) : createCommentVNode("", !0)])], 6), n.value && l.value ? (openBlock(!0), createElementBlock(Fragment, { key: 0 }, renderList(e.node.children, (C) => (openBlock(), createBlock(R, {
|
|
10465
|
+
key: C.key,
|
|
10466
|
+
node: C,
|
|
10467
10467
|
level: e.level + 1,
|
|
10468
10468
|
"expanded-keys": e.expandedKeys,
|
|
10469
10469
|
"selected-key": e.selectedKey,
|
|
10470
10470
|
"disabled-parent": e.disabledParent,
|
|
10471
10471
|
"parent-to-default": e.parentToDefault,
|
|
10472
|
-
onToggle:
|
|
10473
|
-
onSelect:
|
|
10472
|
+
onToggle: S[1] || (S[1] = (w) => a("toggle", w)),
|
|
10473
|
+
onSelect: S[2] || (S[2] = (w) => a("select", w))
|
|
10474
10474
|
}, null, 8, [
|
|
10475
10475
|
"node",
|
|
10476
10476
|
"level",
|
|
@@ -10482,16 +10482,16 @@ var init_index_es = __esmMin((() => {
|
|
|
10482
10482
|
};
|
|
10483
10483
|
}
|
|
10484
10484
|
}), [["__scopeId", "data-v-c86f09fa"]]);
|
|
10485
|
-
|
|
10486
|
-
|
|
10485
|
+
gs = { class: "rdo-tree-select__tree-inner" };
|
|
10486
|
+
hs = {
|
|
10487
10487
|
key: 0,
|
|
10488
10488
|
class: "rdo-tree-select__empty"
|
|
10489
10489
|
};
|
|
10490
|
-
|
|
10490
|
+
ys = {
|
|
10491
10491
|
key: 1,
|
|
10492
10492
|
class: "rdo-tree-select__empty"
|
|
10493
10493
|
};
|
|
10494
|
-
|
|
10494
|
+
zt = /* @__PURE__ */ F$15(/* @__PURE__ */ defineComponent({
|
|
10495
10495
|
__name: "rdo-tree-select-panel",
|
|
10496
10496
|
props: {
|
|
10497
10497
|
displayTreeData: {},
|
|
@@ -10509,14 +10509,14 @@ var init_index_es = __esmMin((() => {
|
|
|
10509
10509
|
],
|
|
10510
10510
|
setup(e, { emit: o }) {
|
|
10511
10511
|
const t = o;
|
|
10512
|
-
return (a, n) => (openBlock(), createBlock(unref(
|
|
10512
|
+
return (a, n) => (openBlock(), createBlock(unref(qe), {
|
|
10513
10513
|
class: "rdo-tree-select__scrollbar",
|
|
10514
10514
|
"wrap-style": { maxHeight: "280px" }
|
|
10515
10515
|
}, {
|
|
10516
|
-
default: withCtx(() => [createElementVNode("div",
|
|
10516
|
+
default: withCtx(() => [createElementVNode("div", gs, [(openBlock(!0), createElementBlock(Fragment, null, renderList(e.displayTreeData, (l) => (openBlock(), createElementBlock(Fragment, { key: l.key }, [l.isLoadMore ? (openBlock(), createBlock(rs, {
|
|
10517
10517
|
key: 0,
|
|
10518
10518
|
onLoadMore: n[0] || (n[0] = (s) => t("load-more"))
|
|
10519
|
-
})) : (openBlock(), createBlock(
|
|
10519
|
+
})) : (openBlock(), createBlock(vs, {
|
|
10520
10520
|
key: 1,
|
|
10521
10521
|
node: l,
|
|
10522
10522
|
level: 0,
|
|
@@ -10533,12 +10533,12 @@ var init_index_es = __esmMin((() => {
|
|
|
10533
10533
|
"disabled-parent",
|
|
10534
10534
|
"parent-to-default",
|
|
10535
10535
|
"onSelect"
|
|
10536
|
-
]))], 64))), 128)), e.loading ? (openBlock(), createElementBlock("div",
|
|
10536
|
+
]))], 64))), 128)), e.loading ? (openBlock(), createElementBlock("div", hs, "加载中...")) : e.displayTreeData.length ? createCommentVNode("", !0) : (openBlock(), createElementBlock("div", ys, toDisplayString(e.emptyText || "暂无数据"), 1))])]),
|
|
10537
10537
|
_: 1
|
|
10538
10538
|
}));
|
|
10539
10539
|
}
|
|
10540
10540
|
}), [["__scopeId", "data-v-8fb9cbf1"]]);
|
|
10541
|
-
|
|
10541
|
+
_s = class {
|
|
10542
10542
|
constructor(o = {}) {
|
|
10543
10543
|
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;
|
|
10544
10544
|
}
|
|
@@ -10559,20 +10559,20 @@ var init_index_es = __esmMin((() => {
|
|
|
10559
10559
|
* @returns 请求结果
|
|
10560
10560
|
*/
|
|
10561
10561
|
async handleRequest(o, t, a, n) {
|
|
10562
|
-
const l = this.getKey(o, t), s = Date.now(),
|
|
10562
|
+
const l = this.getKey(o, t), s = Date.now(), d = n ?? this.defaultTTL;
|
|
10563
10563
|
this.cleanupExpiredCache();
|
|
10564
10564
|
const u = this.cacheMap.get(l);
|
|
10565
10565
|
if (u && u.expireAt > s) return this.log("info", `[cache] 命中缓存: ${l}`), u.data;
|
|
10566
10566
|
if (u && this.cacheMap.delete(l), this.pendingMap.has(l)) return this.log("warn", `[pending] 返回进行中的 Promise: ${l}`), this.pendingMap.get(l);
|
|
10567
|
-
const
|
|
10568
|
-
data:
|
|
10569
|
-
expireAt: Date.now() +
|
|
10570
|
-
}),
|
|
10571
|
-
throw this.log("error", `[request] 请求失败: ${l}`,
|
|
10567
|
+
const r = a(t).then((S) => (this.cacheMap.size >= this.maxCacheSize && (this.log("debug", "[cache] 缓存已满,执行清理"), this.clearExpiredFirst()), this.cacheMap.set(l, {
|
|
10568
|
+
data: S,
|
|
10569
|
+
expireAt: Date.now() + d
|
|
10570
|
+
}), S)).catch((S) => {
|
|
10571
|
+
throw this.log("error", `[request] 请求失败: ${l}`, S), S;
|
|
10572
10572
|
}).finally(() => {
|
|
10573
10573
|
this.pendingMap.delete(l);
|
|
10574
10574
|
});
|
|
10575
|
-
return this.pendingMap.set(l,
|
|
10575
|
+
return this.pendingMap.set(l, r), r;
|
|
10576
10576
|
}
|
|
10577
10577
|
/**
|
|
10578
10578
|
* 清空全部缓存
|
|
@@ -10671,60 +10671,60 @@ var init_index_es = __esmMin((() => {
|
|
|
10671
10671
|
}
|
|
10672
10672
|
}
|
|
10673
10673
|
};
|
|
10674
|
-
|
|
10674
|
+
Bt = new _s({
|
|
10675
10675
|
defaultTTL: 12e4,
|
|
10676
10676
|
maxCacheSize: 100,
|
|
10677
10677
|
enableLogging: !0
|
|
10678
10678
|
});
|
|
10679
|
-
|
|
10680
|
-
|
|
10681
|
-
|
|
10679
|
+
ws = "entity";
|
|
10680
|
+
Ht = ["name_.iLike", "code_.iLike"];
|
|
10681
|
+
Ms = {
|
|
10682
10682
|
key: 0,
|
|
10683
10683
|
class: "rdo-tree-select__input-wrap"
|
|
10684
10684
|
};
|
|
10685
|
-
|
|
10685
|
+
Ss = {
|
|
10686
10686
|
key: 0,
|
|
10687
10687
|
class: "rdo-tree-select__input-mirror",
|
|
10688
10688
|
"aria-hidden": "true"
|
|
10689
10689
|
};
|
|
10690
|
-
|
|
10691
|
-
|
|
10690
|
+
Rs = { class: "rdo-tree-select__mirror-text" };
|
|
10691
|
+
As = {
|
|
10692
10692
|
key: 0,
|
|
10693
10693
|
class: "rdo-tree-select__value-tag"
|
|
10694
10694
|
};
|
|
10695
|
-
|
|
10695
|
+
Os = [
|
|
10696
10696
|
"value",
|
|
10697
10697
|
"placeholder",
|
|
10698
10698
|
"disabled",
|
|
10699
10699
|
"onKeydown"
|
|
10700
10700
|
];
|
|
10701
|
-
|
|
10701
|
+
Vs = {
|
|
10702
10702
|
key: 1,
|
|
10703
10703
|
class: "rdo-tree-select__value"
|
|
10704
10704
|
};
|
|
10705
|
-
|
|
10705
|
+
Ts = {
|
|
10706
10706
|
key: 0,
|
|
10707
10707
|
class: "rdo-tree-select__value-tag"
|
|
10708
10708
|
};
|
|
10709
|
-
|
|
10709
|
+
qs = {
|
|
10710
10710
|
key: 1,
|
|
10711
10711
|
class: "rdo-tree-select__suffix-icon"
|
|
10712
10712
|
};
|
|
10713
|
-
|
|
10713
|
+
zs = {
|
|
10714
10714
|
key: 2,
|
|
10715
10715
|
class: "rdo-tree-select__suffix-icon"
|
|
10716
10716
|
};
|
|
10717
|
-
|
|
10718
|
-
|
|
10719
|
-
|
|
10717
|
+
Bs = ["title"];
|
|
10718
|
+
Hs = { class: "rdo-tree-select__value-text" };
|
|
10719
|
+
Ns = {
|
|
10720
10720
|
key: 0,
|
|
10721
10721
|
class: "rdo-tree-select__value-tag"
|
|
10722
10722
|
};
|
|
10723
|
-
|
|
10723
|
+
Us = {
|
|
10724
10724
|
key: 1,
|
|
10725
10725
|
class: "rdo-tree-select__placeholder"
|
|
10726
10726
|
};
|
|
10727
|
-
|
|
10727
|
+
Ct = /* @__PURE__ */ F$15(/* @__PURE__ */ defineComponent({
|
|
10728
10728
|
__name: "rdo-tree-select",
|
|
10729
10729
|
props: {
|
|
10730
10730
|
modelValue: {},
|
|
@@ -10761,11 +10761,11 @@ var init_index_es = __esmMin((() => {
|
|
|
10761
10761
|
"change"
|
|
10762
10762
|
],
|
|
10763
10763
|
setup(e, { emit: o }) {
|
|
10764
|
-
const t = e, a = o, n = ref(), l = ref(), s = ref(),
|
|
10764
|
+
const t = e, a = o, n = ref(), l = ref(), s = ref(), d = ref(), u = ref(!1), r = ref(!1), S = ref(!1), R = ref({}), C = ref(!1), w = ref([]), g = ref(1), b = ref(""), h = ref(""), p = ref({ text: "" }), { treeData: _, loadOptions: y, ensureSelectedNode: V, getNodeDisplay: U, initByValue: D, findChildNode: O, findParentNode: q, resetTreeData: A } = xs({
|
|
10765
10765
|
modelKey: t.modelKey,
|
|
10766
10766
|
modelCategory: t.modelCategory,
|
|
10767
10767
|
getQueryData: () => t.queryData
|
|
10768
|
-
}),
|
|
10768
|
+
}), M = computed(() => t.modelValue || void 0), m = computed(() => p.value.text || ""), H = computed(() => t.allowClear && !t.disabled && !u.value && m.value && S.value ? "clear" : u.value ? "search" : "arrow"), L = computed(() => t.allowClear && !t.disabled && M.value && S.value ? "clear" : "arrow"), Y = computed(() => t.disabledParent ? _.value : _.value.map((I) => ({
|
|
10769
10769
|
...I,
|
|
10770
10770
|
disabled: !1
|
|
10771
10771
|
})));
|
|
@@ -10773,51 +10773,51 @@ var init_index_es = __esmMin((() => {
|
|
|
10773
10773
|
p.value = I;
|
|
10774
10774
|
}
|
|
10775
10775
|
function Q() {
|
|
10776
|
-
if (!
|
|
10776
|
+
if (!M.value) {
|
|
10777
10777
|
ne({
|
|
10778
10778
|
text: "",
|
|
10779
10779
|
showDefaultTag: !1
|
|
10780
10780
|
});
|
|
10781
10781
|
return;
|
|
10782
10782
|
}
|
|
10783
|
-
const I =
|
|
10783
|
+
const I = U(M.value, t.parentToDefault);
|
|
10784
10784
|
I.text && ne({
|
|
10785
10785
|
text: I.text,
|
|
10786
10786
|
showDefaultTag: I.showDefaultTag ?? !1
|
|
10787
10787
|
});
|
|
10788
10788
|
}
|
|
10789
|
-
function
|
|
10790
|
-
|
|
10789
|
+
function Oe() {
|
|
10790
|
+
w.value = Y.value.filter((I) => !I.isLoadMore).map((I) => I.key);
|
|
10791
10791
|
}
|
|
10792
|
-
async function
|
|
10793
|
-
if (!
|
|
10792
|
+
async function We() {
|
|
10793
|
+
if (!M.value) {
|
|
10794
10794
|
ne({
|
|
10795
10795
|
text: "",
|
|
10796
10796
|
showDefaultTag: !1
|
|
10797
10797
|
});
|
|
10798
10798
|
return;
|
|
10799
10799
|
}
|
|
10800
|
-
const I = await
|
|
10800
|
+
const I = await D(M.value, t.pageSize, t.parentToDefault);
|
|
10801
10801
|
if (I === null || I === void 0 ? void 0 : I.text) {
|
|
10802
10802
|
ne(I);
|
|
10803
10803
|
return;
|
|
10804
10804
|
}
|
|
10805
10805
|
Q();
|
|
10806
10806
|
}
|
|
10807
|
-
async function
|
|
10808
|
-
|
|
10807
|
+
async function Ve(I = !0) {
|
|
10808
|
+
C.value = !0;
|
|
10809
10809
|
try {
|
|
10810
|
-
I && (g.value = 1), await
|
|
10810
|
+
I && (g.value = 1), await y({
|
|
10811
10811
|
pageNo: g.value,
|
|
10812
10812
|
pageSize: t.pageSize,
|
|
10813
10813
|
keyword: t.showSearch && h.value || void 0
|
|
10814
|
-
}), I &&
|
|
10814
|
+
}), I && Oe(), Q();
|
|
10815
10815
|
} finally {
|
|
10816
|
-
|
|
10816
|
+
C.value = !1;
|
|
10817
10817
|
}
|
|
10818
10818
|
}
|
|
10819
|
-
const
|
|
10820
|
-
h.value =
|
|
10819
|
+
const ze = debounce(() => {
|
|
10820
|
+
h.value = b.value.trim(), Ve(!0);
|
|
10821
10821
|
}, 300);
|
|
10822
10822
|
function Ze() {
|
|
10823
10823
|
if (!n.value) return;
|
|
@@ -10833,33 +10833,33 @@ var init_index_es = __esmMin((() => {
|
|
|
10833
10833
|
async function Je(I = {}) {
|
|
10834
10834
|
const { forceRefresh: J = !1 } = I;
|
|
10835
10835
|
if (h.value) {
|
|
10836
|
-
await
|
|
10836
|
+
await Ve(!0), await V(M.value), Q();
|
|
10837
10837
|
return;
|
|
10838
10838
|
}
|
|
10839
10839
|
if (J) {
|
|
10840
|
-
A(), await
|
|
10840
|
+
A(), await Ve(!0), await V(M.value), Q();
|
|
10841
10841
|
return;
|
|
10842
10842
|
}
|
|
10843
10843
|
if (!_.value.length) {
|
|
10844
|
-
await
|
|
10844
|
+
await Ve(!0), await V(M.value), Q();
|
|
10845
10845
|
return;
|
|
10846
10846
|
}
|
|
10847
|
-
|
|
10847
|
+
Oe(), Q(), await V(M.value), Q();
|
|
10848
10848
|
}
|
|
10849
10849
|
async function st() {
|
|
10850
10850
|
var _l$value8;
|
|
10851
|
-
t.disabled || (Ze(), u.value = !0,
|
|
10851
|
+
t.disabled || (Ze(), u.value = !0, b.value = "", h.value = "", await Je({ forceRefresh: !0 }), await nextTick(), (_l$value8 = l.value) === null || _l$value8 === void 0 || _l$value8.focus());
|
|
10852
10852
|
}
|
|
10853
10853
|
function _e() {
|
|
10854
|
-
|
|
10854
|
+
ze.cancel(), u.value = !1, b.value = "", h.value = "";
|
|
10855
10855
|
}
|
|
10856
10856
|
function it() {
|
|
10857
10857
|
t.disabled || u.value || st();
|
|
10858
10858
|
}
|
|
10859
|
-
function
|
|
10860
|
-
|
|
10859
|
+
function P(I) {
|
|
10860
|
+
b.value = I.target.value, ze();
|
|
10861
10861
|
}
|
|
10862
|
-
function
|
|
10862
|
+
function X() {
|
|
10863
10863
|
se(), _e();
|
|
10864
10864
|
}
|
|
10865
10865
|
function le(I) {
|
|
@@ -10868,21 +10868,21 @@ var init_index_es = __esmMin((() => {
|
|
|
10868
10868
|
const J = I.target;
|
|
10869
10869
|
(_n$value2 = n.value) !== null && _n$value2 !== void 0 && _n$value2.contains(J) || (_s$value2 = s.value) !== null && _s$value2 !== void 0 && _s$value2.contains(J) || _e();
|
|
10870
10870
|
}
|
|
10871
|
-
function
|
|
10871
|
+
function de() {
|
|
10872
10872
|
u.value && Ze();
|
|
10873
10873
|
}
|
|
10874
10874
|
async function ie() {
|
|
10875
|
-
|
|
10875
|
+
r.value = !0, await Je();
|
|
10876
10876
|
}
|
|
10877
10877
|
function ve() {
|
|
10878
|
-
|
|
10878
|
+
r.value = !1;
|
|
10879
10879
|
}
|
|
10880
10880
|
async function we() {
|
|
10881
|
-
g.value += 1, await
|
|
10881
|
+
g.value += 1, await Ve(!1);
|
|
10882
10882
|
}
|
|
10883
10883
|
function Le(I) {
|
|
10884
|
-
const J = new Set(
|
|
10885
|
-
J.has(I) ? J.delete(I) : J.add(I),
|
|
10884
|
+
const J = new Set(w.value);
|
|
10885
|
+
J.has(I) ? J.delete(I) : J.add(I), w.value = Array.from(J);
|
|
10886
10886
|
}
|
|
10887
10887
|
function rt(I) {
|
|
10888
10888
|
var _I$_info;
|
|
@@ -10890,7 +10890,7 @@ var init_index_es = __esmMin((() => {
|
|
|
10890
10890
|
return t.parentToDefault && !re && ((_I$_info = I._info) === null || _I$_info === void 0 ? void 0 : _I$_info.id_) ? `${J}:${I._info.id_}` : J;
|
|
10891
10891
|
}
|
|
10892
10892
|
function Qe(I) {
|
|
10893
|
-
var
|
|
10893
|
+
var _d$value, _d$value$hide;
|
|
10894
10894
|
if (I.isLoadMore) {
|
|
10895
10895
|
we();
|
|
10896
10896
|
return;
|
|
@@ -10898,11 +10898,11 @@ var init_index_es = __esmMin((() => {
|
|
|
10898
10898
|
if (I.disabled && t.disabledParent) return;
|
|
10899
10899
|
const J = rt(I);
|
|
10900
10900
|
if (!J.includes(":") && t.disabledParent) return;
|
|
10901
|
-
const re =
|
|
10902
|
-
ne(re), a("update:modelValue", J), a("update:fullPathValue", J), a("change", J, I, re), t.showSearch ? _e() : (
|
|
10901
|
+
const re = ss(J, I, O, q, t.parentToDefault);
|
|
10902
|
+
ne(re), a("update:modelValue", J), a("update:fullPathValue", J), a("change", J, I, re), 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);
|
|
10903
10903
|
}
|
|
10904
10904
|
function se() {
|
|
10905
|
-
|
|
10905
|
+
ze.cancel(), b.value = "", h.value = "", ne({
|
|
10906
10906
|
text: "",
|
|
10907
10907
|
showDefaultTag: !1
|
|
10908
10908
|
}), a("update:modelValue", null), a("update:fullPathValue", null), a("change", null);
|
|
@@ -10912,14 +10912,14 @@ var init_index_es = __esmMin((() => {
|
|
|
10912
10912
|
ne({
|
|
10913
10913
|
text: "",
|
|
10914
10914
|
showDefaultTag: !1
|
|
10915
|
-
}),
|
|
10915
|
+
}), b.value = "";
|
|
10916
10916
|
return;
|
|
10917
10917
|
}
|
|
10918
|
-
(t.showSearch ? u.value :
|
|
10918
|
+
(t.showSearch ? u.value : r.value) || We();
|
|
10919
10919
|
}), onMounted(() => {
|
|
10920
|
-
|
|
10920
|
+
M.value && We(), t.showSearch && (document.addEventListener("click", le, !0), window.addEventListener("resize", de), window.addEventListener("scroll", de, !0));
|
|
10921
10921
|
}), onBeforeUnmount(() => {
|
|
10922
|
-
t.showSearch && (document.removeEventListener("click", le, !0), window.removeEventListener("resize",
|
|
10922
|
+
t.showSearch && (document.removeEventListener("click", le, !0), window.removeEventListener("resize", de), window.removeEventListener("scroll", de, !0));
|
|
10923
10923
|
}), (I, J) => e.showSearch ? (openBlock(), createElementBlock("div", {
|
|
10924
10924
|
key: 0,
|
|
10925
10925
|
ref_key: "rootRef",
|
|
@@ -10928,32 +10928,32 @@ var init_index_es = __esmMin((() => {
|
|
|
10928
10928
|
}, [createElementVNode("div", {
|
|
10929
10929
|
class: normalizeClass(["rdo-tree-select__trigger rdo-tree-select__trigger--searchable", { open: u.value }]),
|
|
10930
10930
|
onClick: it,
|
|
10931
|
-
onMouseenter: J[1] || (J[1] = (re) =>
|
|
10932
|
-
onMouseleave: J[2] || (J[2] = (re) =>
|
|
10933
|
-
}, [createElementVNode("div", { class: normalizeClass(["rdo-tree-select__field", { "is-open": u.value }]) }, [u.value ? (openBlock(), createElementBlock("div",
|
|
10931
|
+
onMouseenter: J[1] || (J[1] = (re) => S.value = !0),
|
|
10932
|
+
onMouseleave: J[2] || (J[2] = (re) => S.value = !1)
|
|
10933
|
+
}, [createElementVNode("div", { class: normalizeClass(["rdo-tree-select__field", { "is-open": u.value }]) }, [u.value ? (openBlock(), createElementBlock("div", Ms, [m.value && !b.value ? (openBlock(), createElementBlock("div", Ss, [createElementVNode("span", Rs, toDisplayString(m.value), 1), p.value.showDefaultTag ? (openBlock(), createElementBlock("span", As, "默认")) : createCommentVNode("", !0)])) : createCommentVNode("", !0), createElementVNode("input", {
|
|
10934
10934
|
ref_key: "inputRef",
|
|
10935
10935
|
ref: l,
|
|
10936
|
-
class: normalizeClass(["rdo-tree-select__input", { "has-mirror": !!
|
|
10936
|
+
class: normalizeClass(["rdo-tree-select__input", { "has-mirror": !!m.value && !b.value }]),
|
|
10937
10937
|
type: "text",
|
|
10938
|
-
value:
|
|
10939
|
-
placeholder:
|
|
10938
|
+
value: b.value,
|
|
10939
|
+
placeholder: m.value ? "" : e.placeholder,
|
|
10940
10940
|
disabled: e.disabled,
|
|
10941
|
-
onInput:
|
|
10941
|
+
onInput: P,
|
|
10942
10942
|
onKeydown: [withKeys(withModifiers(_e, ["stop"]), ["esc"]), withKeys(_e, ["tab"])]
|
|
10943
|
-
}, null, 42,
|
|
10943
|
+
}, null, 42, Os)])) : (openBlock(), createElementBlock("span", Vs, [createElementVNode("span", { class: normalizeClass(["rdo-tree-select__value-text", { "is-placeholder": !m.value }]) }, toDisplayString(m.value || e.placeholder), 3), p.value.showDefaultTag ? (openBlock(), createElementBlock("span", Ts, "默认")) : createCommentVNode("", !0)]))], 2), H.value === "clear" ? (openBlock(), createElementBlock("span", {
|
|
10944
10944
|
key: 0,
|
|
10945
10945
|
class: "rdo-tree-select__clear",
|
|
10946
10946
|
onMousedown: J[0] || (J[0] = withModifiers(() => {}, ["prevent"])),
|
|
10947
|
-
onClick: withModifiers(
|
|
10947
|
+
onClick: withModifiers(X, ["stop"])
|
|
10948
10948
|
}, [createVNode(unref(Z$1), {
|
|
10949
10949
|
icon: "icon-cuowu2",
|
|
10950
10950
|
color: "rgba(0, 0, 0, 0.25)",
|
|
10951
10951
|
size: "14"
|
|
10952
|
-
})], 32)) : H.value === "search" ? (openBlock(), createElementBlock("span",
|
|
10952
|
+
})], 32)) : H.value === "search" ? (openBlock(), createElementBlock("span", qs, [createVNode(unref(Z$1), {
|
|
10953
10953
|
icon: "icon-sousuo",
|
|
10954
10954
|
color: "rgba(0, 0, 0, 0.45)",
|
|
10955
10955
|
size: "14"
|
|
10956
|
-
})])) : (openBlock(), createElementBlock("span",
|
|
10956
|
+
})])) : (openBlock(), createElementBlock("span", zs, [createVNode(unref(Z$1), {
|
|
10957
10957
|
icon: "icon-arrow_zhankai",
|
|
10958
10958
|
color: "#6b6b6b",
|
|
10959
10959
|
version: "v2"
|
|
@@ -10964,11 +10964,11 @@ var init_index_es = __esmMin((() => {
|
|
|
10964
10964
|
class: "rdo-tree-select__dropdown",
|
|
10965
10965
|
style: normalizeStyle(R.value),
|
|
10966
10966
|
onMousedown: J[3] || (J[3] = withModifiers(() => {}, ["prevent"]))
|
|
10967
|
-
}, [createVNode(
|
|
10967
|
+
}, [createVNode(zt, {
|
|
10968
10968
|
"display-tree-data": Y.value,
|
|
10969
|
-
"expanded-keys":
|
|
10970
|
-
"inner-value":
|
|
10971
|
-
loading:
|
|
10969
|
+
"expanded-keys": w.value,
|
|
10970
|
+
"inner-value": M.value,
|
|
10971
|
+
loading: C.value,
|
|
10972
10972
|
"disabled-parent": e.disabledParent,
|
|
10973
10973
|
"parent-to-default": e.parentToDefault,
|
|
10974
10974
|
"empty-text": h.value ? "暂无搜索" : "暂无数据",
|
|
@@ -10986,9 +10986,9 @@ var init_index_es = __esmMin((() => {
|
|
|
10986
10986
|
])], 36)) : createCommentVNode("", !0)]))], 2)) : (openBlock(), createElementBlock("div", {
|
|
10987
10987
|
key: 1,
|
|
10988
10988
|
class: normalizeClass(["rdo-tree-select", { disabled: e.disabled }])
|
|
10989
|
-
}, [createVNode(unref(
|
|
10989
|
+
}, [createVNode(unref(Ke), {
|
|
10990
10990
|
ref_key: "dropdownRef",
|
|
10991
|
-
ref:
|
|
10991
|
+
ref: d,
|
|
10992
10992
|
distance: 4,
|
|
10993
10993
|
placement: "bottom-start",
|
|
10994
10994
|
disabled: e.disabled,
|
|
@@ -10998,11 +10998,11 @@ var init_index_es = __esmMin((() => {
|
|
|
10998
10998
|
popper: withCtx(() => [createElementVNode("div", {
|
|
10999
10999
|
class: "rdo-tree-select__popper",
|
|
11000
11000
|
style: normalizeStyle({ width: `${e.popperWidth}px` })
|
|
11001
|
-
}, [createVNode(
|
|
11001
|
+
}, [createVNode(zt, {
|
|
11002
11002
|
"display-tree-data": Y.value,
|
|
11003
|
-
"expanded-keys":
|
|
11004
|
-
"inner-value":
|
|
11005
|
-
loading:
|
|
11003
|
+
"expanded-keys": w.value,
|
|
11004
|
+
"inner-value": M.value,
|
|
11005
|
+
loading: C.value,
|
|
11006
11006
|
"disabled-parent": e.disabledParent,
|
|
11007
11007
|
"parent-to-default": e.parentToDefault,
|
|
11008
11008
|
onToggle: Le,
|
|
@@ -11017,14 +11017,14 @@ var init_index_es = __esmMin((() => {
|
|
|
11017
11017
|
"parent-to-default"
|
|
11018
11018
|
])], 4)]),
|
|
11019
11019
|
default: withCtx(() => [createElementVNode("div", {
|
|
11020
|
-
class: normalizeClass(["rdo-tree-select__trigger", { active:
|
|
11021
|
-
onMouseenter: J[5] || (J[5] = (re) =>
|
|
11022
|
-
onMouseleave: J[6] || (J[6] = (re) =>
|
|
11020
|
+
class: normalizeClass(["rdo-tree-select__trigger", { active: r.value }]),
|
|
11021
|
+
onMouseenter: J[5] || (J[5] = (re) => S.value = !0),
|
|
11022
|
+
onMouseleave: J[6] || (J[6] = (re) => S.value = !1)
|
|
11023
11023
|
}, [p.value.text ? (openBlock(), createElementBlock("span", {
|
|
11024
11024
|
key: 0,
|
|
11025
11025
|
class: "rdo-tree-select__value",
|
|
11026
11026
|
title: p.value.text
|
|
11027
|
-
}, [createElementVNode("span",
|
|
11027
|
+
}, [createElementVNode("span", Hs, toDisplayString(p.value.text), 1), p.value.showDefaultTag ? (openBlock(), createElementBlock("span", Ns, "默认")) : createCommentVNode("", !0)], 8, Bs)) : (openBlock(), createElementBlock("span", Us, toDisplayString(e.placeholder), 1)), L.value === "clear" ? (openBlock(), createElementBlock("span", {
|
|
11028
11028
|
key: 2,
|
|
11029
11029
|
class: "rdo-tree-select__clear",
|
|
11030
11030
|
onMousedown: J[4] || (J[4] = withModifiers(() => {}, ["prevent"])),
|
|
@@ -11035,7 +11035,7 @@ var init_index_es = __esmMin((() => {
|
|
|
11035
11035
|
size: "14"
|
|
11036
11036
|
})], 32)) : (openBlock(), createElementBlock("span", {
|
|
11037
11037
|
key: 3,
|
|
11038
|
-
class: normalizeClass(["rdo-tree-select__suffix-icon", { active:
|
|
11038
|
+
class: normalizeClass(["rdo-tree-select__suffix-icon", { active: r.value }])
|
|
11039
11039
|
}, [createVNode(unref(Z$1), {
|
|
11040
11040
|
icon: "icon-arrow_zhankai",
|
|
11041
11041
|
color: "#6b6b6b",
|
|
@@ -11045,10 +11045,10 @@ var init_index_es = __esmMin((() => {
|
|
|
11045
11045
|
}, 8, ["disabled"])], 2));
|
|
11046
11046
|
}
|
|
11047
11047
|
}), [["__scopeId", "data-v-a25fa33d"]]);
|
|
11048
|
-
|
|
11049
|
-
|
|
11050
|
-
|
|
11051
|
-
|
|
11048
|
+
yi = "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";
|
|
11049
|
+
bi = ["innerHTML"];
|
|
11050
|
+
_i = { class: "gct-form-base-common-help" };
|
|
11051
|
+
wi = ["src"];
|
|
11052
11052
|
gt = /* @__PURE__ */ F$15(/* @__PURE__ */ defineComponent({
|
|
11053
11053
|
__name: "Help",
|
|
11054
11054
|
props: { info: {} },
|
|
@@ -11063,23 +11063,24 @@ var init_index_es = __esmMin((() => {
|
|
|
11063
11063
|
},
|
|
11064
11064
|
innerHTML: e.info.replaceAll(`
|
|
11065
11065
|
`, "<br>")
|
|
11066
|
-
}, null, 8,
|
|
11067
|
-
default: withCtx(() => [createElementVNode("div",
|
|
11066
|
+
}, null, 8, bi)]),
|
|
11067
|
+
default: withCtx(() => [createElementVNode("div", _i, [createElementVNode("img", { src: unref(yi) }, null, 8, wi)])]),
|
|
11068
11068
|
_: 1
|
|
11069
11069
|
});
|
|
11070
11070
|
};
|
|
11071
11071
|
}
|
|
11072
11072
|
}), [["__scopeId", "data-v-202c135e"]]);
|
|
11073
|
-
|
|
11074
|
-
|
|
11075
|
-
ht = /* @__PURE__ */ F$15(
|
|
11076
|
-
|
|
11077
|
-
Si = "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='
|
|
11078
|
-
Ri = "data:image/svg+xml,%3csvg%20width='
|
|
11079
|
-
Ai =
|
|
11080
|
-
Oi =
|
|
11081
|
-
Vi = ["
|
|
11082
|
-
Ti = ["
|
|
11073
|
+
Ci = {};
|
|
11074
|
+
xi = { class: "gct-form-base-common-title" };
|
|
11075
|
+
ht = /* @__PURE__ */ F$15(Ci, [["render", Mi], ["__scopeId", "data-v-d1e6f131"]]);
|
|
11076
|
+
yt = /* @__PURE__ */ ((e) => (e.Lot = "lot", e.UniqueCode = "uniqueCode", e))(yt || {});
|
|
11077
|
+
Si = "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";
|
|
11078
|
+
Ri = "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";
|
|
11079
|
+
Ai = "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";
|
|
11080
|
+
Oi = { class: "form-base-modal__title" };
|
|
11081
|
+
Vi = ["src"];
|
|
11082
|
+
Ti = ["title"];
|
|
11083
|
+
qi = ["src"];
|
|
11083
11084
|
$e = /* @__PURE__ */ defineComponent({
|
|
11084
11085
|
inheritAttrs: !1,
|
|
11085
11086
|
__name: "modal-wrapper",
|
|
@@ -11130,33 +11131,33 @@ var init_index_es = __esmMin((() => {
|
|
|
11130
11131
|
x: 0,
|
|
11131
11132
|
y: 0
|
|
11132
11133
|
});
|
|
11133
|
-
let
|
|
11134
|
+
let d = 0, u = 0, r = 0, S = 0;
|
|
11134
11135
|
const R = computed(() => [
|
|
11135
11136
|
"gct-form-base-modal",
|
|
11136
11137
|
n.wrapClassName,
|
|
11137
11138
|
t.mask ? "" : "gct-form-base-modal--maskless",
|
|
11138
11139
|
l.value ? "gct-form-base-modal--fullscreen" : ""
|
|
11139
|
-
].filter(Boolean).join(" ")),
|
|
11140
|
-
const { title:
|
|
11141
|
-
return
|
|
11142
|
-
}),
|
|
11140
|
+
].filter(Boolean).join(" ")), C = computed(() => {
|
|
11141
|
+
const { title: y, wrapClassName: V, ...U } = n;
|
|
11142
|
+
return U;
|
|
11143
|
+
}), w = computed(() => {
|
|
11143
11144
|
if (!(!t.draggable || l.value) && !(s.x === 0 && s.y === 0)) return { transform: `translate(${s.x}px, ${s.y}px)` };
|
|
11144
11145
|
});
|
|
11145
11146
|
function g() {
|
|
11146
11147
|
s.x = 0, s.y = 0;
|
|
11147
11148
|
}
|
|
11148
|
-
function
|
|
11149
|
+
function b() {
|
|
11149
11150
|
t.fullscreen && (l.value = !l.value, g());
|
|
11150
11151
|
}
|
|
11151
|
-
function h(
|
|
11152
|
-
s.x =
|
|
11152
|
+
function h(y) {
|
|
11153
|
+
s.x = r + y.clientX - d, s.y = S + y.clientY - u;
|
|
11153
11154
|
}
|
|
11154
11155
|
function p() {
|
|
11155
11156
|
document.removeEventListener("mousemove", h), document.removeEventListener("mouseup", p);
|
|
11156
11157
|
}
|
|
11157
|
-
function _(
|
|
11158
|
-
if (!t.draggable || l.value ||
|
|
11159
|
-
const V =
|
|
11158
|
+
function _(y) {
|
|
11159
|
+
if (!t.draggable || l.value || y.button !== 0) return;
|
|
11160
|
+
const V = y.target;
|
|
11160
11161
|
V.closest(".ant-modal-header") && (V.closest([
|
|
11161
11162
|
"button",
|
|
11162
11163
|
"a",
|
|
@@ -11164,56 +11165,56 @@ var init_index_es = __esmMin((() => {
|
|
|
11164
11165
|
"textarea",
|
|
11165
11166
|
"select",
|
|
11166
11167
|
"[role=\"button\"]"
|
|
11167
|
-
].join(",")) || (
|
|
11168
|
+
].join(",")) || (d = y.clientX, u = y.clientY, r = s.x, S = s.y, document.addEventListener("mousemove", h), document.addEventListener("mouseup", p), y.preventDefault()));
|
|
11168
11169
|
}
|
|
11169
|
-
return watch(() => t.fullscreen, (
|
|
11170
|
-
|
|
11171
|
-
}), watch(() => t.visible, (
|
|
11172
|
-
|
|
11170
|
+
return watch(() => t.fullscreen, (y) => {
|
|
11171
|
+
y || (l.value = !1, g());
|
|
11172
|
+
}), watch(() => t.visible, (y) => {
|
|
11173
|
+
y && (l.value = !1, g());
|
|
11173
11174
|
}), onBeforeUnmount(() => {
|
|
11174
11175
|
p();
|
|
11175
|
-
}), (
|
|
11176
|
+
}), (y, V) => (openBlock(), createBlock(unref(Modal), mergeProps({
|
|
11176
11177
|
centered: "",
|
|
11177
11178
|
"ok-text": "确定",
|
|
11178
11179
|
"cancel-text": "取消",
|
|
11179
11180
|
width: 640
|
|
11180
|
-
},
|
|
11181
|
+
}, C.value, {
|
|
11181
11182
|
visible: e.visible,
|
|
11182
11183
|
mask: e.mask,
|
|
11183
11184
|
"wrap-class-name": R.value,
|
|
11184
|
-
onCancel: V[1] || (V[1] = (
|
|
11185
|
-
onOk: V[2] || (V[2] = (
|
|
11186
|
-
onAfterClose: V[3] || (V[3] = (
|
|
11185
|
+
onCancel: V[1] || (V[1] = (U) => a("cancel", U)),
|
|
11186
|
+
onOk: V[2] || (V[2] = (U) => a("ok", U)),
|
|
11187
|
+
onAfterClose: V[3] || (V[3] = (U) => a("afterClose"))
|
|
11187
11188
|
}), createSlots({
|
|
11188
|
-
title: withCtx(() => [createElementVNode("div",
|
|
11189
|
+
title: withCtx(() => [createElementVNode("div", Oi, [
|
|
11189
11190
|
e.draggable ? (openBlock(), createElementBlock("img", {
|
|
11190
11191
|
key: 0,
|
|
11191
|
-
src: unref(
|
|
11192
|
+
src: unref(Ai),
|
|
11192
11193
|
class: "title-draggable"
|
|
11193
|
-
}, null, 8,
|
|
11194
|
-
renderSlot(
|
|
11194
|
+
}, null, 8, Vi)) : createCommentVNode("", !0),
|
|
11195
|
+
renderSlot(y.$slots, "title", {}, () => [createTextVNode(toDisplayString(unref(n).title), 1)]),
|
|
11195
11196
|
e.fullscreen ? (openBlock(), createElementBlock("button", {
|
|
11196
11197
|
key: 1,
|
|
11197
11198
|
type: "button",
|
|
11198
11199
|
class: "form-base-modal__fullscreen",
|
|
11199
11200
|
title: l.value ? "退出全屏" : "全屏",
|
|
11200
11201
|
onMousedown: V[0] || (V[0] = withModifiers(() => {}, ["stop"])),
|
|
11201
|
-
onClick: withModifiers(
|
|
11202
|
+
onClick: withModifiers(b, ["stop"])
|
|
11202
11203
|
}, [createElementVNode("img", {
|
|
11203
|
-
src: l.value ? unref(
|
|
11204
|
+
src: l.value ? unref(Ri) : unref(Si),
|
|
11204
11205
|
alt: ""
|
|
11205
|
-
}, null, 8,
|
|
11206
|
+
}, null, 8, qi)], 40, Ti)) : createCommentVNode("", !0)
|
|
11206
11207
|
])]),
|
|
11207
|
-
modalRender: withCtx(({ originVNode:
|
|
11208
|
+
modalRender: withCtx(({ originVNode: U }) => [createElementVNode("div", {
|
|
11208
11209
|
class: normalizeClass(["form-base-modal__render", { "form-base-modal__render--draggable": e.draggable && !l.value }]),
|
|
11209
|
-
style: normalizeStyle(
|
|
11210
|
+
style: normalizeStyle(w.value),
|
|
11210
11211
|
onMousedown: _
|
|
11211
|
-
}, [(openBlock(), createBlock(resolveDynamicComponent(
|
|
11212
|
-
default: withCtx(() => [renderSlot(
|
|
11212
|
+
}, [(openBlock(), createBlock(resolveDynamicComponent(U)))], 38)]),
|
|
11213
|
+
default: withCtx(() => [renderSlot(y.$slots, "default")]),
|
|
11213
11214
|
_: 2
|
|
11214
|
-
}, [
|
|
11215
|
+
}, [y.$slots.footer ? {
|
|
11215
11216
|
name: "footer",
|
|
11216
|
-
fn: withCtx(() => [renderSlot(
|
|
11217
|
+
fn: withCtx(() => [renderSlot(y.$slots, "footer")]),
|
|
11217
11218
|
key: "0"
|
|
11218
11219
|
} : void 0]), 1040, [
|
|
11219
11220
|
"visible",
|
|
@@ -11222,22 +11223,22 @@ var init_index_es = __esmMin((() => {
|
|
|
11222
11223
|
]));
|
|
11223
11224
|
}
|
|
11224
11225
|
});
|
|
11225
|
-
|
|
11226
|
-
|
|
11226
|
+
ea = "BOM_ENTRY_MODAL_BIZ";
|
|
11227
|
+
bt = {
|
|
11227
11228
|
FIELD_DISPLAY: 1,
|
|
11228
11229
|
ONLINE_FORM_FIELD_FORMULA: 13
|
|
11229
11230
|
};
|
|
11230
|
-
|
|
11231
|
-
|
|
11231
|
+
Bi = { FIELD: "field" };
|
|
11232
|
+
Hi = { Number: "number" };
|
|
11232
11233
|
Ye = "entity";
|
|
11233
|
-
|
|
11234
|
+
Ni = {
|
|
11234
11235
|
key: 0,
|
|
11235
11236
|
class: "consume-policy-item__nested"
|
|
11236
11237
|
};
|
|
11237
|
-
|
|
11238
|
-
|
|
11239
|
-
|
|
11240
|
-
|
|
11238
|
+
Ui = { class: "consume-policy-item__special-header" };
|
|
11239
|
+
Di = { class: "consume-policy-item__special-title" };
|
|
11240
|
+
Pi = ["onClick"];
|
|
11241
|
+
ta = /* @__PURE__ */ F$15(/* @__PURE__ */ defineComponent({
|
|
11241
11242
|
__name: "consume-item",
|
|
11242
11243
|
props: {
|
|
11243
11244
|
formState: { required: !0 },
|
|
@@ -11245,18 +11246,18 @@ var init_index_es = __esmMin((() => {
|
|
|
11245
11246
|
},
|
|
11246
11247
|
emits: ["update:formState"],
|
|
11247
11248
|
setup(e) {
|
|
11248
|
-
const o = useModel(e, "formState"), t = ref([]), a = ref([]), n = ref({}), l = ref(!1), s = ref(!1),
|
|
11249
|
-
async function
|
|
11250
|
-
var
|
|
11251
|
-
const
|
|
11252
|
-
return
|
|
11249
|
+
const o = useModel(e, "formState"), t = ref([]), a = ref([]), n = ref({}), l = ref(!1), s = ref(!1), d = ref(!1), u = ref({}), r = ref({});
|
|
11250
|
+
async function S(P) {
|
|
11251
|
+
var _P$keyword, _ref;
|
|
11252
|
+
const X = (_P$keyword = P.keyword) === null || _P$keyword === void 0 ? void 0 : _P$keyword.trim(), le = { ...P.extraQuery ?? {} };
|
|
11253
|
+
return X && (le["name_.like"] = X, le["code_.like"] = X), (((_ref = await ke$1.apaas.modelComprehensive.postBizServiceModelCategoryModelKeyBsKey({
|
|
11253
11254
|
modelCategory: Ye,
|
|
11254
|
-
modelKey:
|
|
11255
|
+
modelKey: P.modelKey,
|
|
11255
11256
|
bsKey: "listByPage"
|
|
11256
11257
|
}, {}, {
|
|
11257
11258
|
pageNo: 1,
|
|
11258
11259
|
pageSize: 99,
|
|
11259
|
-
...
|
|
11260
|
+
...X ? { exp: "OR(name_.like,code_.like)" } : {},
|
|
11260
11261
|
query: {
|
|
11261
11262
|
...le,
|
|
11262
11263
|
"operating_state_.eq": !0
|
|
@@ -11266,101 +11267,101 @@ var init_index_es = __esmMin((() => {
|
|
|
11266
11267
|
value: ie.id_
|
|
11267
11268
|
}));
|
|
11268
11269
|
}
|
|
11269
|
-
async function R(
|
|
11270
|
+
async function R(P, X) {
|
|
11270
11271
|
var _ref2;
|
|
11271
|
-
const le = [...new Set(
|
|
11272
|
+
const le = [...new Set(X.filter(Boolean))];
|
|
11272
11273
|
return le.length ? (((_ref2 = await ke$1.apaas.modelComprehensive.getBizServiceModelCategoryModelKeyBsKey({
|
|
11273
11274
|
modelCategory: Ye,
|
|
11274
|
-
modelKey:
|
|
11275
|
+
modelKey: P,
|
|
11275
11276
|
bsKey: "listByIds"
|
|
11276
11277
|
}, { ids: le.join(",") }) || {}) === null || _ref2 === void 0 ? void 0 : _ref2.data) ?? []).map((ie) => ({
|
|
11277
11278
|
label: ie.name_ || ie.code_,
|
|
11278
11279
|
value: ie.id_
|
|
11279
11280
|
})) : [];
|
|
11280
11281
|
}
|
|
11281
|
-
function
|
|
11282
|
+
function C(P, X) {
|
|
11282
11283
|
const le = /* @__PURE__ */ new Map();
|
|
11283
|
-
return [...
|
|
11284
|
-
(
|
|
11284
|
+
return [...P, ...X].forEach((de) => {
|
|
11285
|
+
(de === null || de === void 0 ? void 0 : de.value) != null && le.set(String(de.value), de);
|
|
11285
11286
|
}), Array.from(le.values());
|
|
11286
11287
|
}
|
|
11287
|
-
async function
|
|
11288
|
-
const
|
|
11289
|
-
if (!
|
|
11290
|
-
return
|
|
11288
|
+
async function w(P, X, le) {
|
|
11289
|
+
const de = [...new Set(le.filter(Boolean))].filter((ve) => !X.some((we) => we.value === ve));
|
|
11290
|
+
if (!de.length) return X;
|
|
11291
|
+
return C(X, await R(P, de));
|
|
11291
11292
|
}
|
|
11292
11293
|
function g() {
|
|
11293
|
-
return [o.value.default_warehouse_id_, ...(o.value.consume_storage_entries_ ?? []).map((
|
|
11294
|
+
return [o.value.default_warehouse_id_, ...(o.value.consume_storage_entries_ ?? []).map((P) => P.warehouse_id_)];
|
|
11294
11295
|
}
|
|
11295
|
-
function
|
|
11296
|
-
return (o.value.consume_storage_entries_ ?? []).map((
|
|
11296
|
+
function b() {
|
|
11297
|
+
return (o.value.consume_storage_entries_ ?? []).map((P) => P.shopfloor_id_);
|
|
11297
11298
|
}
|
|
11298
|
-
function h(
|
|
11299
|
-
const
|
|
11300
|
-
return o.value.default_warehouse_id_ ===
|
|
11301
|
-
le.warehouse_id_ ===
|
|
11302
|
-
}),
|
|
11299
|
+
function h(P) {
|
|
11300
|
+
const X = [];
|
|
11301
|
+
return o.value.default_warehouse_id_ === P && X.push(o.value.default_location_id_), (o.value.consume_storage_entries_ ?? []).forEach((le) => {
|
|
11302
|
+
le.warehouse_id_ === P && X.push(le.location_id_);
|
|
11303
|
+
}), X;
|
|
11303
11304
|
}
|
|
11304
|
-
async function p(
|
|
11305
|
+
async function p(P) {
|
|
11305
11306
|
l.value = !0;
|
|
11306
11307
|
try {
|
|
11307
|
-
const
|
|
11308
|
+
const X = await S({
|
|
11308
11309
|
modelKey: "em_warehouse",
|
|
11309
|
-
keyword:
|
|
11310
|
+
keyword: P
|
|
11310
11311
|
});
|
|
11311
|
-
t.value = await
|
|
11312
|
+
t.value = await w("em_warehouse", X, g());
|
|
11312
11313
|
} finally {
|
|
11313
11314
|
l.value = !1;
|
|
11314
11315
|
}
|
|
11315
11316
|
}
|
|
11316
|
-
async function _(
|
|
11317
|
+
async function _(P) {
|
|
11317
11318
|
s.value = !0;
|
|
11318
11319
|
try {
|
|
11319
|
-
const
|
|
11320
|
+
const X = await S({
|
|
11320
11321
|
modelKey: "em_shopfloor",
|
|
11321
|
-
keyword:
|
|
11322
|
+
keyword: P
|
|
11322
11323
|
});
|
|
11323
|
-
a.value = await
|
|
11324
|
+
a.value = await w("em_shopfloor", X, b());
|
|
11324
11325
|
} finally {
|
|
11325
11326
|
s.value = !1;
|
|
11326
11327
|
}
|
|
11327
11328
|
}
|
|
11328
|
-
async function
|
|
11329
|
-
if (
|
|
11330
|
-
|
|
11329
|
+
async function y(P, X) {
|
|
11330
|
+
if (X) {
|
|
11331
|
+
d.value = !0;
|
|
11331
11332
|
try {
|
|
11332
|
-
const le = await
|
|
11333
|
+
const le = await S({
|
|
11333
11334
|
modelKey: "em_location",
|
|
11334
|
-
keyword:
|
|
11335
|
-
extraQuery: { "warehouse_id_.eq":
|
|
11335
|
+
keyword: P,
|
|
11336
|
+
extraQuery: { "warehouse_id_.eq": X }
|
|
11336
11337
|
});
|
|
11337
11338
|
n.value = {
|
|
11338
11339
|
...n.value,
|
|
11339
|
-
[
|
|
11340
|
+
[X]: await w("em_location", le, h(X))
|
|
11340
11341
|
};
|
|
11341
11342
|
} finally {
|
|
11342
|
-
|
|
11343
|
+
d.value = !1;
|
|
11343
11344
|
}
|
|
11344
11345
|
}
|
|
11345
11346
|
}
|
|
11346
11347
|
async function V() {
|
|
11347
11348
|
await Promise.all([p(), _()]);
|
|
11348
|
-
const
|
|
11349
|
-
await Promise.all(
|
|
11349
|
+
const P = [...new Set(g().filter(Boolean))];
|
|
11350
|
+
await Promise.all(P.map((X) => y("", X)));
|
|
11350
11351
|
}
|
|
11351
|
-
const
|
|
11352
|
-
function A(
|
|
11353
|
-
return n.value[
|
|
11352
|
+
const U = debounce((P) => p(P), 300), D = debounce((P) => _(P), 300), O = debounce((P, X) => y(P, X), 300), q = computed(() => n.value[o.value.default_warehouse_id_ ?? ""] ?? []);
|
|
11353
|
+
function A(P) {
|
|
11354
|
+
return n.value[P.warehouse_id_ ?? ""] ?? [];
|
|
11354
11355
|
}
|
|
11355
|
-
function
|
|
11356
|
+
function M(P) {
|
|
11356
11357
|
return [{
|
|
11357
11358
|
required: !0,
|
|
11358
|
-
message: $t("sys.pleaseSelectSth", { sth:
|
|
11359
|
+
message: $t("sys.pleaseSelectSth", { sth: P })
|
|
11359
11360
|
}];
|
|
11360
11361
|
}
|
|
11361
|
-
function
|
|
11362
|
-
const
|
|
11363
|
-
return
|
|
11362
|
+
function m(P) {
|
|
11363
|
+
const X = P.warehouse_id_;
|
|
11364
|
+
return X && r.value[X] === !1 ? [] : M($t("sys.pageDesigner.fieldCmp.location"));
|
|
11364
11365
|
}
|
|
11365
11366
|
const H = [{
|
|
11366
11367
|
value: "follow_common_policy",
|
|
@@ -11368,7 +11369,7 @@ var init_index_es = __esmMin((() => {
|
|
|
11368
11369
|
}, {
|
|
11369
11370
|
value: "custom",
|
|
11370
11371
|
label: $t("sys.edhr.mcTable.consumeSourceCustom")
|
|
11371
|
-
}],
|
|
11372
|
+
}], L = [
|
|
11372
11373
|
{
|
|
11373
11374
|
title: $t("sys.edhr.mcTable.shopfloor"),
|
|
11374
11375
|
key: "shopfloor_id_",
|
|
@@ -11397,49 +11398,49 @@ var init_index_es = __esmMin((() => {
|
|
|
11397
11398
|
}
|
|
11398
11399
|
];
|
|
11399
11400
|
function Y() {
|
|
11400
|
-
o.value.default_location_id_ = void 0, o.value.default_warehouse_id_ &&
|
|
11401
|
+
o.value.default_location_id_ = void 0, o.value.default_warehouse_id_ && y("", o.value.default_warehouse_id_);
|
|
11401
11402
|
}
|
|
11402
|
-
function ne(
|
|
11403
|
-
|
|
11403
|
+
function ne(P) {
|
|
11404
|
+
P.location_id_ = void 0, P.warehouse_id_ && y("", P.warehouse_id_);
|
|
11404
11405
|
}
|
|
11405
11406
|
function Q() {
|
|
11406
11407
|
o.value.consume_storage_entries_.push({
|
|
11407
|
-
__key:
|
|
11408
|
+
__key: Ae(8),
|
|
11408
11409
|
shopfloor_id_: void 0,
|
|
11409
11410
|
warehouse_id_: void 0,
|
|
11410
11411
|
location_id_: void 0
|
|
11411
11412
|
});
|
|
11412
11413
|
}
|
|
11413
|
-
function
|
|
11414
|
-
o.value.consume_storage_entries_.splice(
|
|
11414
|
+
function Oe(P) {
|
|
11415
|
+
o.value.consume_storage_entries_.splice(P, 1);
|
|
11415
11416
|
}
|
|
11416
|
-
function
|
|
11417
|
-
|
|
11417
|
+
function We(P) {
|
|
11418
|
+
U(P);
|
|
11418
11419
|
}
|
|
11419
|
-
function
|
|
11420
|
-
|
|
11420
|
+
function Ve(P) {
|
|
11421
|
+
D(P);
|
|
11421
11422
|
}
|
|
11422
|
-
function
|
|
11423
|
-
O(
|
|
11423
|
+
function ze(P, X) {
|
|
11424
|
+
O(P, X);
|
|
11424
11425
|
}
|
|
11425
11426
|
async function Ze() {
|
|
11426
|
-
const
|
|
11427
|
+
const P = await ke$1.apaas.modelComprehensive.postBizServiceModelCategoryModelKeyBsKey({
|
|
11427
11428
|
modelCategory: Ye,
|
|
11428
11429
|
modelKey: "em_material_loading_policy_global",
|
|
11429
11430
|
bsKey: "getOne"
|
|
11430
11431
|
}, { includeSubModel: 1 }, { query: {} });
|
|
11431
|
-
u.value =
|
|
11432
|
+
u.value = P.data || {}, o.value.consume_enabled_ && o.value.consume_source_config_ === "follow_common_policy" && _e();
|
|
11432
11433
|
}
|
|
11433
|
-
function Je(
|
|
11434
|
-
|
|
11434
|
+
function Je(P) {
|
|
11435
|
+
P && (o.value.consume_source_config_ = "follow_common_policy", _e());
|
|
11435
11436
|
}
|
|
11436
|
-
function st(
|
|
11437
|
-
|
|
11437
|
+
function st(P) {
|
|
11438
|
+
P === "follow_common_policy" && _e();
|
|
11438
11439
|
}
|
|
11439
11440
|
function _e() {
|
|
11440
|
-
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((
|
|
11441
|
-
...
|
|
11442
|
-
__key:
|
|
11441
|
+
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((P) => ({
|
|
11442
|
+
...P,
|
|
11443
|
+
__key: P.__key || Ae(8)
|
|
11443
11444
|
})), V();
|
|
11444
11445
|
}
|
|
11445
11446
|
async function it() {
|
|
@@ -11448,46 +11449,46 @@ var init_index_es = __esmMin((() => {
|
|
|
11448
11449
|
modelCategory: Ye,
|
|
11449
11450
|
modelKey: "em_warehouse",
|
|
11450
11451
|
bsKey: "listAll"
|
|
11451
|
-
}, {}, {})) === null || _await$ke$apaas$model === void 0 || (_await$ke$apaas$model = _await$ke$apaas$model.data) === null || _await$ke$apaas$model === void 0 || _await$ke$apaas$model.forEach((
|
|
11452
|
-
|
|
11452
|
+
}, {}, {})) === null || _await$ke$apaas$model === void 0 || (_await$ke$apaas$model = _await$ke$apaas$model.data) === null || _await$ke$apaas$model === void 0 || _await$ke$apaas$model.forEach((X) => {
|
|
11453
|
+
r.value[X.id_] = X.location_management_enabled_;
|
|
11453
11454
|
});
|
|
11454
11455
|
}
|
|
11455
11456
|
return onMounted(() => {
|
|
11456
11457
|
Ze(), it(), V();
|
|
11457
|
-
}), (
|
|
11458
|
-
const le = resolveComponent("a-radio"),
|
|
11458
|
+
}), (P, X) => {
|
|
11459
|
+
const le = resolveComponent("a-radio"), de = resolveComponent("a-radio-group"), ie = resolveComponent("a-form-item"), ve = resolveComponent("a-select"), we = resolveComponent("a-col"), Le = resolveComponent("a-row"), rt = resolveComponent("a-button"), Qe = resolveComponent("a-table");
|
|
11459
11460
|
return openBlock(), createElementBlock(Fragment, null, [createVNode(ie, {
|
|
11460
|
-
label:
|
|
11461
|
+
label: P.$t("sys.edhr.mcTable.consumeEnabled"),
|
|
11461
11462
|
name: "consume_enabled_",
|
|
11462
|
-
rules: [unref(fe)(
|
|
11463
|
+
rules: [unref(fe)(P.$t("sys.edhr.mcTable.consumeEnabled"))]
|
|
11463
11464
|
}, {
|
|
11464
|
-
default: withCtx(() => [createVNode(
|
|
11465
|
+
default: withCtx(() => [createVNode(de, {
|
|
11465
11466
|
value: o.value.consume_enabled_,
|
|
11466
|
-
"onUpdate:value":
|
|
11467
|
+
"onUpdate:value": X[0] || (X[0] = (se) => o.value.consume_enabled_ = se),
|
|
11467
11468
|
onChange: Je
|
|
11468
11469
|
}, {
|
|
11469
11470
|
default: withCtx(() => [createVNode(le, { value: !0 }, {
|
|
11470
|
-
default: withCtx(() => [createTextVNode(toDisplayString(
|
|
11471
|
+
default: withCtx(() => [createTextVNode(toDisplayString(P.$t("sys.true")), 1)]),
|
|
11471
11472
|
_: 1
|
|
11472
11473
|
}), createVNode(le, { value: !1 }, {
|
|
11473
|
-
default: withCtx(() => [createTextVNode(toDisplayString(
|
|
11474
|
+
default: withCtx(() => [createTextVNode(toDisplayString(P.$t("sys.false")), 1)]),
|
|
11474
11475
|
_: 1
|
|
11475
11476
|
})]),
|
|
11476
11477
|
_: 1
|
|
11477
11478
|
}, 8, ["value"])]),
|
|
11478
11479
|
_: 1
|
|
11479
|
-
}, 8, ["label", "rules"]), o.value.consume_enabled_ ? (openBlock(), createElementBlock("div",
|
|
11480
|
+
}, 8, ["label", "rules"]), o.value.consume_enabled_ ? (openBlock(), createElementBlock("div", Ni, [
|
|
11480
11481
|
createVNode(Le, { gutter: 16 }, {
|
|
11481
11482
|
default: withCtx(() => [createVNode(we, { span: 12 }, {
|
|
11482
11483
|
default: withCtx(() => [createVNode(ie, {
|
|
11483
|
-
label:
|
|
11484
|
+
label: P.$t("sys.edhr.mcTable.consumeSourceConfig"),
|
|
11484
11485
|
name: "consume_source_config_",
|
|
11485
11486
|
required: ""
|
|
11486
11487
|
}, {
|
|
11487
11488
|
default: withCtx(() => [createVNode(ve, {
|
|
11488
11489
|
value: o.value.consume_source_config_,
|
|
11489
|
-
"onUpdate:value":
|
|
11490
|
-
placeholder:
|
|
11490
|
+
"onUpdate:value": X[1] || (X[1] = (se) => o.value.consume_source_config_ = se),
|
|
11491
|
+
placeholder: P.$t("sys.chooseText"),
|
|
11491
11492
|
options: H,
|
|
11492
11493
|
onChange: st
|
|
11493
11494
|
}, null, 8, ["value", "placeholder"])]),
|
|
@@ -11500,21 +11501,21 @@ var init_index_es = __esmMin((() => {
|
|
|
11500
11501
|
createVNode(Le, { gutter: 16 }, {
|
|
11501
11502
|
default: withCtx(() => [createVNode(we, { span: 12 }, {
|
|
11502
11503
|
default: withCtx(() => [createVNode(ie, {
|
|
11503
|
-
label:
|
|
11504
|
+
label: P.$t("sys.edhr.mcTable.defaultWarehouse"),
|
|
11504
11505
|
name: "default_warehouse_id_",
|
|
11505
11506
|
required: ""
|
|
11506
11507
|
}, {
|
|
11507
11508
|
default: withCtx(() => [createVNode(ve, {
|
|
11508
11509
|
value: o.value.default_warehouse_id_,
|
|
11509
|
-
"onUpdate:value":
|
|
11510
|
+
"onUpdate:value": X[2] || (X[2] = (se) => o.value.default_warehouse_id_ = se),
|
|
11510
11511
|
"show-search": "",
|
|
11511
11512
|
"allow-clear": "",
|
|
11512
11513
|
"filter-option": !1,
|
|
11513
|
-
placeholder:
|
|
11514
|
+
placeholder: P.$t("sys.chooseText"),
|
|
11514
11515
|
options: t.value,
|
|
11515
11516
|
loading: l.value,
|
|
11516
11517
|
disabled: o.value.consume_source_config_ === "follow_common_policy",
|
|
11517
|
-
onSearch:
|
|
11518
|
+
onSearch: We,
|
|
11518
11519
|
onChange: Y
|
|
11519
11520
|
}, null, 8, [
|
|
11520
11521
|
"value",
|
|
@@ -11528,21 +11529,21 @@ var init_index_es = __esmMin((() => {
|
|
|
11528
11529
|
_: 1
|
|
11529
11530
|
}), createVNode(we, { span: 12 }, {
|
|
11530
11531
|
default: withCtx(() => [createVNode(ie, {
|
|
11531
|
-
label:
|
|
11532
|
+
label: P.$t("sys.edhr.mcTable.defaultLocation"),
|
|
11532
11533
|
name: "default_location_id_"
|
|
11533
11534
|
}, {
|
|
11534
11535
|
default: withCtx(() => [createVNode(ve, {
|
|
11535
11536
|
value: o.value.default_location_id_,
|
|
11536
|
-
"onUpdate:value":
|
|
11537
|
+
"onUpdate:value": X[3] || (X[3] = (se) => o.value.default_location_id_ = se),
|
|
11537
11538
|
"show-search": "",
|
|
11538
11539
|
"allow-clear": "",
|
|
11539
11540
|
"filter-option": !1,
|
|
11540
|
-
placeholder:
|
|
11541
|
-
options:
|
|
11542
|
-
loading:
|
|
11541
|
+
placeholder: P.$t("sys.chooseText"),
|
|
11542
|
+
options: q.value,
|
|
11543
|
+
loading: d.value,
|
|
11543
11544
|
disabled: o.value.consume_source_config_ === "follow_common_policy" || !o.value.default_warehouse_id_,
|
|
11544
|
-
onSearch:
|
|
11545
|
-
onFocus:
|
|
11545
|
+
onSearch: X[4] || (X[4] = (se) => ze(se, o.value.default_warehouse_id_)),
|
|
11546
|
+
onFocus: X[5] || (X[5] = () => y("", o.value.default_warehouse_id_))
|
|
11546
11547
|
}, null, 8, [
|
|
11547
11548
|
"value",
|
|
11548
11549
|
"placeholder",
|
|
@@ -11556,26 +11557,26 @@ var init_index_es = __esmMin((() => {
|
|
|
11556
11557
|
})]),
|
|
11557
11558
|
_: 1
|
|
11558
11559
|
}),
|
|
11559
|
-
createElementVNode("div",
|
|
11560
|
+
createElementVNode("div", Ui, [createElementVNode("span", Di, toDisplayString(P.$t("sys.edhr.mcTable.consumeSpecialConfig")), 1), o.value.consume_source_config_ !== "follow_common_policy" ? (openBlock(), createBlock(rt, {
|
|
11560
11561
|
key: 0,
|
|
11561
11562
|
type: "link",
|
|
11562
11563
|
class: "consume-policy-item__add-row",
|
|
11563
11564
|
onClick: Q
|
|
11564
11565
|
}, {
|
|
11565
|
-
default: withCtx(() => [createVNode(unref(PlusOutlined)), createTextVNode(" " + toDisplayString(
|
|
11566
|
+
default: withCtx(() => [createVNode(unref(PlusOutlined)), createTextVNode(" " + toDisplayString(P.$t("sys.edhr.addRow")), 1)]),
|
|
11566
11567
|
_: 1
|
|
11567
11568
|
})) : createCommentVNode("", !0)]),
|
|
11568
11569
|
createVNode(Qe, {
|
|
11569
11570
|
class: "consume-policy-item__storage-table",
|
|
11570
11571
|
"data-source": o.value.consume_storage_entries_,
|
|
11571
|
-
columns:
|
|
11572
|
+
columns: L,
|
|
11572
11573
|
pagination: !1,
|
|
11573
11574
|
size: "small",
|
|
11574
11575
|
"row-key": "__key",
|
|
11575
|
-
locale: { emptyText:
|
|
11576
|
+
locale: { emptyText: P.$t("sys.noData") },
|
|
11576
11577
|
"table-layout": "fixed"
|
|
11577
11578
|
}, {
|
|
11578
|
-
headerCell: withCtx(({ column: se }) => [se.required ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
11579
|
+
headerCell: withCtx(({ column: se }) => [se.required ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [X[7] || (X[7] = createElementVNode("span", { class: "consume-policy-item__required-mark" }, "*", -1)), createTextVNode(" " + toDisplayString(se.title), 1)], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [createTextVNode(toDisplayString(se.title), 1)], 64))]),
|
|
11579
11580
|
bodyCell: withCtx(({ column: se, record: I, index: J }) => [se.key === "shopfloor_id_" ? (openBlock(), createBlock(ie, {
|
|
11580
11581
|
key: 0,
|
|
11581
11582
|
class: "consume-policy-item__table-item",
|
|
@@ -11584,7 +11585,7 @@ var init_index_es = __esmMin((() => {
|
|
|
11584
11585
|
J,
|
|
11585
11586
|
"shopfloor_id_"
|
|
11586
11587
|
],
|
|
11587
|
-
rules:
|
|
11588
|
+
rules: M(P.$t("sys.edhr.mcTable.shopfloor"))
|
|
11588
11589
|
}, {
|
|
11589
11590
|
default: withCtx(() => [createVNode(ve, {
|
|
11590
11591
|
value: I.shopfloor_id_,
|
|
@@ -11593,12 +11594,12 @@ var init_index_es = __esmMin((() => {
|
|
|
11593
11594
|
"show-search": "",
|
|
11594
11595
|
"allow-clear": "",
|
|
11595
11596
|
"filter-option": !1,
|
|
11596
|
-
placeholder:
|
|
11597
|
+
placeholder: P.$t("sys.chooseText"),
|
|
11597
11598
|
options: a.value,
|
|
11598
11599
|
loading: s.value,
|
|
11599
11600
|
disabled: o.value.consume_source_config_ === "follow_common_policy",
|
|
11600
|
-
onSearch:
|
|
11601
|
-
onFocus:
|
|
11601
|
+
onSearch: Ve,
|
|
11602
|
+
onFocus: X[6] || (X[6] = () => _())
|
|
11602
11603
|
}, null, 8, [
|
|
11603
11604
|
"value",
|
|
11604
11605
|
"onUpdate:value",
|
|
@@ -11616,7 +11617,7 @@ var init_index_es = __esmMin((() => {
|
|
|
11616
11617
|
J,
|
|
11617
11618
|
"warehouse_id_"
|
|
11618
11619
|
],
|
|
11619
|
-
rules:
|
|
11620
|
+
rules: M(P.$t("sys.model.warehouse"))
|
|
11620
11621
|
}, {
|
|
11621
11622
|
default: withCtx(() => [createVNode(ve, {
|
|
11622
11623
|
value: I.warehouse_id_,
|
|
@@ -11625,11 +11626,11 @@ var init_index_es = __esmMin((() => {
|
|
|
11625
11626
|
"show-search": "",
|
|
11626
11627
|
"allow-clear": "",
|
|
11627
11628
|
"filter-option": !1,
|
|
11628
|
-
placeholder:
|
|
11629
|
+
placeholder: P.$t("sys.chooseText"),
|
|
11629
11630
|
options: t.value,
|
|
11630
11631
|
loading: l.value,
|
|
11631
11632
|
disabled: o.value.consume_source_config_ === "follow_common_policy",
|
|
11632
|
-
onSearch:
|
|
11633
|
+
onSearch: We,
|
|
11633
11634
|
onChange: () => ne(I)
|
|
11634
11635
|
}, null, 8, [
|
|
11635
11636
|
"value",
|
|
@@ -11649,7 +11650,7 @@ var init_index_es = __esmMin((() => {
|
|
|
11649
11650
|
J,
|
|
11650
11651
|
"location_id_"
|
|
11651
11652
|
],
|
|
11652
|
-
rules:
|
|
11653
|
+
rules: m(I)
|
|
11653
11654
|
}, {
|
|
11654
11655
|
default: withCtx(() => [createVNode(ve, {
|
|
11655
11656
|
value: I.location_id_,
|
|
@@ -11658,12 +11659,12 @@ var init_index_es = __esmMin((() => {
|
|
|
11658
11659
|
"show-search": "",
|
|
11659
11660
|
"allow-clear": "",
|
|
11660
11661
|
"filter-option": !1,
|
|
11661
|
-
placeholder:
|
|
11662
|
+
placeholder: P.$t("sys.chooseText"),
|
|
11662
11663
|
options: A(I),
|
|
11663
|
-
loading:
|
|
11664
|
-
disabled: o.value.consume_source_config_ === "follow_common_policy" || !I.warehouse_id_ || !
|
|
11665
|
-
onSearch: (re) =>
|
|
11666
|
-
onFocus: () =>
|
|
11664
|
+
loading: d.value,
|
|
11665
|
+
disabled: o.value.consume_source_config_ === "follow_common_policy" || !I.warehouse_id_ || !r.value[I.warehouse_id_],
|
|
11666
|
+
onSearch: (re) => ze(re, I.warehouse_id_),
|
|
11667
|
+
onFocus: () => y("", I.warehouse_id_)
|
|
11667
11668
|
}, null, 8, [
|
|
11668
11669
|
"value",
|
|
11669
11670
|
"onUpdate:value",
|
|
@@ -11679,15 +11680,15 @@ var init_index_es = __esmMin((() => {
|
|
|
11679
11680
|
key: 3,
|
|
11680
11681
|
class: normalizeClass(["error-gct consume-policy-item__delete", { "is-disabled": o.value.consume_source_config_ === "follow_common_policy" }]),
|
|
11681
11682
|
href: "javascript:;",
|
|
11682
|
-
onClick: withModifiers((re) => o.value.consume_source_config_ !== "follow_common_policy" &&
|
|
11683
|
-
}, toDisplayString(
|
|
11683
|
+
onClick: withModifiers((re) => o.value.consume_source_config_ !== "follow_common_policy" && Oe(J), ["prevent"])
|
|
11684
|
+
}, toDisplayString(P.$t("sys.delete")), 11, Pi)) : createCommentVNode("", !0)]),
|
|
11684
11685
|
_: 1
|
|
11685
11686
|
}, 8, ["data-source", "locale"])
|
|
11686
11687
|
])) : createCommentVNode("", !0)], 64);
|
|
11687
11688
|
};
|
|
11688
11689
|
}
|
|
11689
11690
|
}), [["__scopeId", "data-v-3b8c9402"]]);
|
|
11690
|
-
|
|
11691
|
+
Ut = /* @__PURE__ */ F$15(/* @__PURE__ */ defineComponent({
|
|
11691
11692
|
__name: "bom-formula-editor",
|
|
11692
11693
|
props: {
|
|
11693
11694
|
mode: {},
|
|
@@ -11700,48 +11701,48 @@ var init_index_es = __esmMin((() => {
|
|
|
11700
11701
|
},
|
|
11701
11702
|
emits: ["update:expr", "update:exprEcho"],
|
|
11702
11703
|
setup(e, { emit: o }) {
|
|
11703
|
-
const t = e, a = o, n = inject(
|
|
11704
|
+
const t = e, a = o, n = inject(ea, { hasIds: [] }), l = async () => {
|
|
11704
11705
|
if (!n.openFormulaEditor) {
|
|
11705
11706
|
console.warn("[BomFormulaEditor] openFormulaEditor 未注入");
|
|
11706
11707
|
return;
|
|
11707
11708
|
}
|
|
11708
|
-
const
|
|
11709
|
+
const d = await n.openFormulaEditor({
|
|
11709
11710
|
expr: t.expr,
|
|
11710
|
-
returnType: t.returnType ||
|
|
11711
|
+
returnType: t.returnType || Hi.Number,
|
|
11711
11712
|
disabledReturnType: t.disabledReturnType,
|
|
11712
|
-
mode: t.mode ??
|
|
11713
|
-
identifiers: { [
|
|
11713
|
+
mode: t.mode ?? bt.ONLINE_FORM_FIELD_FORMULA,
|
|
11714
|
+
identifiers: { [Bi.FIELD]: await s() }
|
|
11714
11715
|
});
|
|
11715
|
-
if (!
|
|
11716
|
-
const { expr: u, exprEcho:
|
|
11717
|
-
a("update:expr", u),
|
|
11716
|
+
if (!d) return;
|
|
11717
|
+
const { expr: u, exprEcho: r } = d;
|
|
11718
|
+
a("update:expr", u), r != null && a("update:exprEcho", r);
|
|
11718
11719
|
};
|
|
11719
11720
|
async function s() {
|
|
11720
11721
|
if (!t.modelKey) return [];
|
|
11721
11722
|
let u = await ke$1.apaas.fieldMeta.getList({ modelKey: t.modelKey }) ?? [];
|
|
11722
|
-
return t.filterFunc && (u = u.reduce((
|
|
11723
|
-
id:
|
|
11724
|
-
name:
|
|
11725
|
-
valueType:
|
|
11723
|
+
return t.filterFunc && (u = u.reduce((r, S) => (t.filterFunc(S) && r.push(S), r), [])), u.map((r) => ({
|
|
11724
|
+
id: r.key,
|
|
11725
|
+
name: r.name,
|
|
11726
|
+
valueType: r.type
|
|
11726
11727
|
}));
|
|
11727
11728
|
}
|
|
11728
|
-
return (
|
|
11729
|
-
const
|
|
11730
|
-
return openBlock(), createBlock(
|
|
11729
|
+
return (d, u) => {
|
|
11730
|
+
const r = resolveComponent("a-input");
|
|
11731
|
+
return openBlock(), createBlock(r, {
|
|
11731
11732
|
class: "bom-formula-editor",
|
|
11732
11733
|
readonly: "",
|
|
11733
|
-
placeholder:
|
|
11734
|
+
placeholder: d.$t("sys.inputText"),
|
|
11734
11735
|
value: e.exprEcho || e.expr,
|
|
11735
11736
|
onClick: l
|
|
11736
11737
|
}, null, 8, ["placeholder", "value"]);
|
|
11737
11738
|
};
|
|
11738
11739
|
}
|
|
11739
11740
|
}), [["__scopeId", "data-v-276eb7f4"]]);
|
|
11740
|
-
|
|
11741
|
+
Li = {
|
|
11741
11742
|
key: 0,
|
|
11742
11743
|
class: "qty-policy-item__nested"
|
|
11743
11744
|
};
|
|
11744
|
-
|
|
11745
|
+
aa = /* @__PURE__ */ F$15(/* @__PURE__ */ defineComponent({
|
|
11745
11746
|
__name: "qty-item",
|
|
11746
11747
|
props: {
|
|
11747
11748
|
formState: { required: !0 },
|
|
@@ -11768,36 +11769,36 @@ var init_index_es = __esmMin((() => {
|
|
|
11768
11769
|
}
|
|
11769
11770
|
];
|
|
11770
11771
|
return (l, s) => {
|
|
11771
|
-
const
|
|
11772
|
-
return openBlock(), createElementBlock(Fragment, null, [createVNode(
|
|
11772
|
+
const d = resolveComponent("a-radio"), u = resolveComponent("a-radio-group"), r = resolveComponent("a-form-item"), S = resolveComponent("a-select"), R = resolveComponent("a-col"), C = resolveComponent("a-row");
|
|
11773
|
+
return openBlock(), createElementBlock(Fragment, null, [createVNode(r, {
|
|
11773
11774
|
label: l.$t("sys.edhr.mcTable.qtyValidationEnabled"),
|
|
11774
11775
|
name: "qty_validation_enabled_",
|
|
11775
11776
|
rules: [unref(fe)(l.$t("sys.edhr.mcTable.qtyValidationEnabled"))]
|
|
11776
11777
|
}, {
|
|
11777
11778
|
default: withCtx(() => [createVNode(u, {
|
|
11778
11779
|
value: o.value.qty_validation_enabled_,
|
|
11779
|
-
"onUpdate:value": s[0] || (s[0] = (
|
|
11780
|
+
"onUpdate:value": s[0] || (s[0] = (w) => o.value.qty_validation_enabled_ = w)
|
|
11780
11781
|
}, {
|
|
11781
|
-
default: withCtx(() => [createVNode(
|
|
11782
|
+
default: withCtx(() => [createVNode(d, { value: !0 }, {
|
|
11782
11783
|
default: withCtx(() => [createTextVNode(toDisplayString(l.$t("sys.true")), 1)]),
|
|
11783
11784
|
_: 1
|
|
11784
|
-
}), createVNode(
|
|
11785
|
+
}), createVNode(d, { value: !1 }, {
|
|
11785
11786
|
default: withCtx(() => [createTextVNode(toDisplayString(l.$t("sys.false")), 1)]),
|
|
11786
11787
|
_: 1
|
|
11787
11788
|
})]),
|
|
11788
11789
|
_: 1
|
|
11789
11790
|
}, 8, ["value"])]),
|
|
11790
11791
|
_: 1
|
|
11791
|
-
}, 8, ["label", "rules"]), o.value.qty_validation_enabled_ ? (openBlock(), createElementBlock("div",
|
|
11792
|
+
}, 8, ["label", "rules"]), o.value.qty_validation_enabled_ ? (openBlock(), createElementBlock("div", Li, [createVNode(C, { gutter: 16 }, {
|
|
11792
11793
|
default: withCtx(() => [createVNode(R, { span: 12 }, {
|
|
11793
|
-
default: withCtx(() => [createVNode(
|
|
11794
|
+
default: withCtx(() => [createVNode(r, {
|
|
11794
11795
|
label: l.$t("sys.edhr.mcTable.qtyValidationRule"),
|
|
11795
11796
|
name: "qty_validation_rule_",
|
|
11796
11797
|
required: ""
|
|
11797
11798
|
}, {
|
|
11798
|
-
default: withCtx(() => [createVNode(
|
|
11799
|
+
default: withCtx(() => [createVNode(S, {
|
|
11799
11800
|
value: o.value.qty_validation_rule_,
|
|
11800
|
-
"onUpdate:value": s[1] || (s[1] = (
|
|
11801
|
+
"onUpdate:value": s[1] || (s[1] = (w) => o.value.qty_validation_rule_ = w),
|
|
11801
11802
|
placeholder: l.$t("sys.chooseText"),
|
|
11802
11803
|
options: n
|
|
11803
11804
|
}, null, 8, ["value", "placeholder"])]),
|
|
@@ -11806,25 +11807,25 @@ var init_index_es = __esmMin((() => {
|
|
|
11806
11807
|
_: 1
|
|
11807
11808
|
})]),
|
|
11808
11809
|
_: 1
|
|
11809
|
-
}), o.value.qty_validation_rule_ === "bounds" ? (openBlock(), createBlock(
|
|
11810
|
+
}), o.value.qty_validation_rule_ === "bounds" ? (openBlock(), createBlock(C, {
|
|
11810
11811
|
key: 0,
|
|
11811
11812
|
gutter: 16
|
|
11812
11813
|
}, {
|
|
11813
11814
|
default: withCtx(() => [createVNode(R, { span: 12 }, {
|
|
11814
|
-
default: withCtx(() => [createVNode(
|
|
11815
|
+
default: withCtx(() => [createVNode(r, {
|
|
11815
11816
|
label: l.$t("sys.edhr.mcTable.qtyValidationMax"),
|
|
11816
11817
|
name: "max_value_",
|
|
11817
11818
|
required: ""
|
|
11818
11819
|
}, {
|
|
11819
|
-
default: withCtx(() => [createVNode(
|
|
11820
|
+
default: withCtx(() => [createVNode(Ut, {
|
|
11820
11821
|
expr: o.value.max_value_,
|
|
11821
|
-
"onUpdate:expr": s[2] || (s[2] = (
|
|
11822
|
+
"onUpdate:expr": s[2] || (s[2] = (w) => o.value.max_value_ = w),
|
|
11822
11823
|
"expr-echo": t.value,
|
|
11823
|
-
"onUpdate:exprEcho": s[3] || (s[3] = (
|
|
11824
|
+
"onUpdate:exprEcho": s[3] || (s[3] = (w) => t.value = w),
|
|
11824
11825
|
"model-key": "em_material_consume",
|
|
11825
|
-
mode: unref(
|
|
11826
|
+
mode: unref(bt).FIELD_DISPLAY,
|
|
11826
11827
|
"disabled-return-type": !0,
|
|
11827
|
-
"filter-func": (
|
|
11828
|
+
"filter-func": (w) => w.key === "qty_required_"
|
|
11828
11829
|
}, null, 8, [
|
|
11829
11830
|
"expr",
|
|
11830
11831
|
"expr-echo",
|
|
@@ -11835,20 +11836,20 @@ var init_index_es = __esmMin((() => {
|
|
|
11835
11836
|
}, 8, ["label"])]),
|
|
11836
11837
|
_: 1
|
|
11837
11838
|
}), createVNode(R, { span: 12 }, {
|
|
11838
|
-
default: withCtx(() => [createVNode(
|
|
11839
|
+
default: withCtx(() => [createVNode(r, {
|
|
11839
11840
|
label: l.$t("sys.edhr.mcTable.qtyValidationMin"),
|
|
11840
11841
|
name: "min_value_",
|
|
11841
11842
|
required: ""
|
|
11842
11843
|
}, {
|
|
11843
|
-
default: withCtx(() => [createVNode(
|
|
11844
|
+
default: withCtx(() => [createVNode(Ut, {
|
|
11844
11845
|
expr: o.value.min_value_,
|
|
11845
|
-
"onUpdate:expr": s[4] || (s[4] = (
|
|
11846
|
+
"onUpdate:expr": s[4] || (s[4] = (w) => o.value.min_value_ = w),
|
|
11846
11847
|
"expr-echo": a.value,
|
|
11847
|
-
"onUpdate:exprEcho": s[5] || (s[5] = (
|
|
11848
|
+
"onUpdate:exprEcho": s[5] || (s[5] = (w) => a.value = w),
|
|
11848
11849
|
"model-key": "em_material_consume",
|
|
11849
|
-
mode: unref(
|
|
11850
|
+
mode: unref(bt).FIELD_DISPLAY,
|
|
11850
11851
|
"disabled-return-type": !0,
|
|
11851
|
-
"filter-func": (
|
|
11852
|
+
"filter-func": (w) => w.key === "qty_required_"
|
|
11852
11853
|
}, null, 8, [
|
|
11853
11854
|
"expr",
|
|
11854
11855
|
"expr-echo",
|
|
@@ -11864,14 +11865,14 @@ var init_index_es = __esmMin((() => {
|
|
|
11864
11865
|
};
|
|
11865
11866
|
}
|
|
11866
11867
|
}), [["__scopeId", "data-v-38484add"]]);
|
|
11867
|
-
|
|
11868
|
-
|
|
11869
|
-
|
|
11868
|
+
ji = { style: { "margin-top": "4px" } };
|
|
11869
|
+
Fi = { key: 0 };
|
|
11870
|
+
Gi = `BOM模式:可读取工单BOM的用料策略,支持库存扣减;
|
|
11870
11871
|
记录模式:不支持库存扣减。`;
|
|
11871
|
-
|
|
11872
|
+
Xi = `当选择按批次上料时,上料时必须记录批次/SN和数量;
|
|
11872
11873
|
当选择按数量上料时只记录数量;
|
|
11873
11874
|
当选择物料查看时不需要记录批次/SN和数量,只做查看。`;
|
|
11874
|
-
|
|
11875
|
+
$i = /* @__PURE__ */ F$15(/* @__PURE__ */ defineComponent({
|
|
11875
11876
|
__name: "material-strategy",
|
|
11876
11877
|
props: /* @__PURE__ */ mergeModels({ showConsumePolicy: { type: Boolean } }, {
|
|
11877
11878
|
formState: { required: !0 },
|
|
@@ -11886,39 +11887,39 @@ var init_index_es = __esmMin((() => {
|
|
|
11886
11887
|
label: "记录模式",
|
|
11887
11888
|
value: "record"
|
|
11888
11889
|
}], l = computed(() => {
|
|
11889
|
-
const
|
|
11890
|
+
const d = {
|
|
11890
11891
|
material_consumption_pattern_: [{
|
|
11891
11892
|
required: !0,
|
|
11892
11893
|
message: "请选择物料消耗模式"
|
|
11893
11894
|
}],
|
|
11894
11895
|
personal_bom_enabled_: [fe("自定义用料策略")]
|
|
11895
11896
|
};
|
|
11896
|
-
return t.value.personal_bom_enabled_ && (
|
|
11897
|
+
return t.value.personal_bom_enabled_ && (d.type_ = [{
|
|
11897
11898
|
required: !0,
|
|
11898
11899
|
message: "请选择上料方式"
|
|
11899
|
-
}], t.value.material_consumption_pattern_ === "bom" && t.value.type_ === "by_lot" && (
|
|
11900
|
+
}], t.value.material_consumption_pattern_ === "bom" && t.value.type_ === "by_lot" && (d.consume_enabled_ = [fe("是否消耗库存")], t.value.consume_enabled_ && (d.consume_source_config_ = [{
|
|
11900
11901
|
required: !0,
|
|
11901
11902
|
message: "请选择物料消耗来源配置"
|
|
11902
|
-
}], t.value.consume_source_config_ === "custom" && (
|
|
11903
|
+
}], t.value.consume_source_config_ === "custom" && (d.default_warehouse_id_ = [{
|
|
11903
11904
|
required: !0,
|
|
11904
11905
|
message: "请选择默认仓库"
|
|
11905
|
-
}]))), t.value.type_ !== "view" && (
|
|
11906
|
+
}]))), t.value.type_ !== "view" && (d.qty_validation_enabled_ = [fe("是否启用数量校验")], t.value.qty_validation_enabled_ && (d.qty_validation_rule_ = [{
|
|
11906
11907
|
required: !0,
|
|
11907
11908
|
message: "请选择数量校验规则"
|
|
11908
|
-
}], t.value.qty_validation_rule_ === "bounds" && (
|
|
11909
|
+
}], t.value.qty_validation_rule_ === "bounds" && (d.max_value_ = [{
|
|
11909
11910
|
required: !0,
|
|
11910
11911
|
message: "请填写最大值"
|
|
11911
|
-
}],
|
|
11912
|
+
}], d.min_value_ = [{
|
|
11912
11913
|
required: !0,
|
|
11913
11914
|
message: "请填写最小值"
|
|
11914
|
-
}])))),
|
|
11915
|
+
}])))), d;
|
|
11915
11916
|
});
|
|
11916
11917
|
async function s() {
|
|
11917
11918
|
var _a$value;
|
|
11918
11919
|
await ((_a$value = a.value) === null || _a$value === void 0 ? void 0 : _a$value.validate());
|
|
11919
11920
|
}
|
|
11920
|
-
return o({ validate: s }), (
|
|
11921
|
-
const
|
|
11921
|
+
return o({ validate: s }), (d, u) => {
|
|
11922
|
+
const r = resolveComponent("a-select"), S = resolveComponent("a-form-item"), R = resolveComponent("a-switch"), C = resolveComponent("a-radio"), w = resolveComponent("a-radio-group"), g = resolveComponent("a-form");
|
|
11922
11923
|
return openBlock(), createElementBlock("div", null, [createVNode(unref(ht), null, {
|
|
11923
11924
|
default: withCtx(() => [...u[5] || (u[5] = [createTextVNode("用料策略", -1)])]),
|
|
11924
11925
|
_: 1
|
|
@@ -11929,50 +11930,50 @@ var init_index_es = __esmMin((() => {
|
|
|
11929
11930
|
rules: l.value
|
|
11930
11931
|
}, {
|
|
11931
11932
|
default: withCtx(() => [
|
|
11932
|
-
createVNode(
|
|
11933
|
+
createVNode(S, {
|
|
11933
11934
|
name: "material_consumption_pattern_",
|
|
11934
11935
|
required: ""
|
|
11935
11936
|
}, {
|
|
11936
|
-
label: withCtx(() => [u[6] || (u[6] = createElementVNode("span", null, "物料消耗模式", -1)), createVNode(unref(gt), { info:
|
|
11937
|
-
default: withCtx(() => [createVNode(
|
|
11937
|
+
label: withCtx(() => [u[6] || (u[6] = createElementVNode("span", null, "物料消耗模式", -1)), createVNode(unref(gt), { info: Gi })]),
|
|
11938
|
+
default: withCtx(() => [createVNode(r, {
|
|
11938
11939
|
value: t.value.material_consumption_pattern_,
|
|
11939
|
-
"onUpdate:value": u[0] || (u[0] = (
|
|
11940
|
+
"onUpdate:value": u[0] || (u[0] = (b) => t.value.material_consumption_pattern_ = b),
|
|
11940
11941
|
placeholder: "请选择",
|
|
11941
11942
|
options: n
|
|
11942
11943
|
}, null, 8, ["value"])]),
|
|
11943
11944
|
_: 1
|
|
11944
11945
|
}),
|
|
11945
|
-
createVNode(
|
|
11946
|
+
createVNode(S, {
|
|
11946
11947
|
name: "personal_bom_enabled_",
|
|
11947
11948
|
label: "自定义用料策略"
|
|
11948
11949
|
}, {
|
|
11949
|
-
default: withCtx(() => [createElementVNode("div",
|
|
11950
|
+
default: withCtx(() => [createElementVNode("div", ji, [createVNode(R, {
|
|
11950
11951
|
checked: t.value.personal_bom_enabled_,
|
|
11951
|
-
"onUpdate:checked": u[1] || (u[1] = (
|
|
11952
|
+
"onUpdate:checked": u[1] || (u[1] = (b) => t.value.personal_bom_enabled_ = b)
|
|
11952
11953
|
}, null, 8, ["checked"])])]),
|
|
11953
11954
|
_: 1
|
|
11954
11955
|
}),
|
|
11955
|
-
t.value.personal_bom_enabled_ ? (openBlock(), createElementBlock("div",
|
|
11956
|
-
createVNode(
|
|
11956
|
+
t.value.personal_bom_enabled_ ? (openBlock(), createElementBlock("div", Fi, [
|
|
11957
|
+
createVNode(S, {
|
|
11957
11958
|
name: "type_",
|
|
11958
11959
|
required: ""
|
|
11959
11960
|
}, {
|
|
11960
|
-
label: withCtx(() => [u[7] || (u[7] = createElementVNode("span", null, "上料方式", -1)), createVNode(unref(gt), { info:
|
|
11961
|
-
default: withCtx(() => [createVNode(
|
|
11961
|
+
label: withCtx(() => [u[7] || (u[7] = createElementVNode("span", null, "上料方式", -1)), createVNode(unref(gt), { info: Xi })]),
|
|
11962
|
+
default: withCtx(() => [createVNode(w, {
|
|
11962
11963
|
value: t.value.type_,
|
|
11963
|
-
"onUpdate:value": u[2] || (u[2] = (
|
|
11964
|
+
"onUpdate:value": u[2] || (u[2] = (b) => t.value.type_ = b),
|
|
11964
11965
|
name: "radioGroup1"
|
|
11965
11966
|
}, {
|
|
11966
11967
|
default: withCtx(() => [
|
|
11967
|
-
createVNode(
|
|
11968
|
+
createVNode(C, { value: "view" }, {
|
|
11968
11969
|
default: withCtx(() => [...u[8] || (u[8] = [createTextVNode("仅查看", -1)])]),
|
|
11969
11970
|
_: 1
|
|
11970
11971
|
}),
|
|
11971
|
-
createVNode(
|
|
11972
|
+
createVNode(C, { value: "by_number" }, {
|
|
11972
11973
|
default: withCtx(() => [...u[9] || (u[9] = [createTextVNode("按数量上料", -1)])]),
|
|
11973
11974
|
_: 1
|
|
11974
11975
|
}),
|
|
11975
|
-
createVNode(
|
|
11976
|
+
createVNode(C, { value: "by_lot" }, {
|
|
11976
11977
|
default: withCtx(() => [...u[10] || (u[10] = [createTextVNode("按批次上料", -1)])]),
|
|
11977
11978
|
_: 1
|
|
11978
11979
|
})
|
|
@@ -11981,15 +11982,15 @@ var init_index_es = __esmMin((() => {
|
|
|
11981
11982
|
}, 8, ["value"])]),
|
|
11982
11983
|
_: 1
|
|
11983
11984
|
}),
|
|
11984
|
-
t.value.material_consumption_pattern_ === "bom" && t.value.type_ === "by_lot" && e.showConsumePolicy ? (openBlock(), createBlock(
|
|
11985
|
+
t.value.material_consumption_pattern_ === "bom" && t.value.type_ === "by_lot" && e.showConsumePolicy ? (openBlock(), createBlock(ta, {
|
|
11985
11986
|
key: 0,
|
|
11986
11987
|
"form-state": t.value,
|
|
11987
|
-
"onUpdate:formState": u[3] || (u[3] = (
|
|
11988
|
+
"onUpdate:formState": u[3] || (u[3] = (b) => t.value = b)
|
|
11988
11989
|
}, null, 8, ["form-state"])) : createCommentVNode("", !0),
|
|
11989
|
-
t.value.type_ !== "view" ? (openBlock(), createBlock(
|
|
11990
|
+
t.value.type_ !== "view" ? (openBlock(), createBlock(aa, {
|
|
11990
11991
|
key: 1,
|
|
11991
11992
|
"form-state": t.value,
|
|
11992
|
-
"onUpdate:formState": u[4] || (u[4] = (
|
|
11993
|
+
"onUpdate:formState": u[4] || (u[4] = (b) => t.value = b)
|
|
11993
11994
|
}, null, 8, ["form-state"])) : createCommentVNode("", !0)
|
|
11994
11995
|
])) : createCommentVNode("", !0)
|
|
11995
11996
|
]),
|
|
@@ -11998,8 +11999,8 @@ var init_index_es = __esmMin((() => {
|
|
|
11998
11999
|
};
|
|
11999
12000
|
}
|
|
12000
12001
|
}), [["__scopeId", "data-v-7b5cf648"]]);
|
|
12001
|
-
|
|
12002
|
-
|
|
12002
|
+
Zi = { key: 0 };
|
|
12003
|
+
Qi = /* @__PURE__ */ F$15(/* @__PURE__ */ defineComponent({
|
|
12003
12004
|
__name: "modal",
|
|
12004
12005
|
props: {
|
|
12005
12006
|
modalVisible: { type: Boolean },
|
|
@@ -12013,7 +12014,7 @@ var init_index_es = __esmMin((() => {
|
|
|
12013
12014
|
required: !0,
|
|
12014
12015
|
message: "请选择对象字段"
|
|
12015
12016
|
}] };
|
|
12016
|
-
function
|
|
12017
|
+
function d() {
|
|
12017
12018
|
return {
|
|
12018
12019
|
objectField: void 0,
|
|
12019
12020
|
objectFieldName: void 0,
|
|
@@ -12031,10 +12032,12 @@ var init_index_es = __esmMin((() => {
|
|
|
12031
12032
|
qty_validation_enabled_: !1,
|
|
12032
12033
|
qty_validation_rule_: "eq",
|
|
12033
12034
|
max_value_: void 0,
|
|
12034
|
-
min_value_: void 0
|
|
12035
|
+
min_value_: void 0,
|
|
12036
|
+
disableBarcodeParsing: !1,
|
|
12037
|
+
scanParamType: yt.Lot
|
|
12035
12038
|
};
|
|
12036
12039
|
}
|
|
12037
|
-
const u = ref(
|
|
12040
|
+
const u = ref(d()), r = ref({
|
|
12038
12041
|
border: !0,
|
|
12039
12042
|
round: !0,
|
|
12040
12043
|
showHeaderOverflow: !0,
|
|
@@ -12058,25 +12061,25 @@ var init_index_es = __esmMin((() => {
|
|
|
12058
12061
|
title: "默认值",
|
|
12059
12062
|
slots: { default: "value_default" }
|
|
12060
12063
|
}]
|
|
12061
|
-
}),
|
|
12064
|
+
}), S = computed(() => !!t.bizOptions.editingItem), R = computed(() => !!Object.keys(u.value.parseRuleProps || {}).length), C = computed(() => t.bizOptions.objectFields.filter((y) => {
|
|
12062
12065
|
var _t$bizOptions$configu, _t$bizOptions$configu2;
|
|
12063
|
-
return
|
|
12064
|
-
}).map((
|
|
12065
|
-
label:
|
|
12066
|
-
value:
|
|
12067
|
-
}))),
|
|
12066
|
+
return S.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((V) => V.objectField === y.key));
|
|
12067
|
+
}).map((y) => ({
|
|
12068
|
+
label: y.name,
|
|
12069
|
+
value: y.key
|
|
12070
|
+
}))), w = computed(() => u.value.objectField ? t.bizOptions.allFields.filter((_) => _.type === Xt.REF && _.bizType === Et.BOM_ENTRY_ID ? !1 : _.belongingObject === u.value.objectField) : []), g = computed(() => w.value.map((_) => ({
|
|
12068
12071
|
key: _.key,
|
|
12069
12072
|
name: _.name,
|
|
12070
12073
|
field: _
|
|
12071
|
-
}))),
|
|
12074
|
+
}))), b = (_, y) => {
|
|
12072
12075
|
u.value.values = {
|
|
12073
12076
|
...u.value.values,
|
|
12074
|
-
[_]:
|
|
12077
|
+
[_]: y
|
|
12075
12078
|
};
|
|
12076
12079
|
}, h = () => {
|
|
12077
|
-
|
|
12080
|
+
Zr("PARSE_RULE_MODAL", {
|
|
12078
12081
|
config: u.value.parseRuleProps,
|
|
12079
|
-
formFieldOptions:
|
|
12082
|
+
formFieldOptions: w.value.map((_) => ({
|
|
12080
12083
|
label: _.name,
|
|
12081
12084
|
value: _.key
|
|
12082
12085
|
})),
|
|
@@ -12087,17 +12090,17 @@ var init_index_es = __esmMin((() => {
|
|
|
12087
12090
|
};
|
|
12088
12091
|
watch(() => t.bizOptions.editingItem, (_) => {
|
|
12089
12092
|
if (!_) return;
|
|
12090
|
-
const
|
|
12093
|
+
const y = d(), V = cloneDeep(_);
|
|
12091
12094
|
u.value = {
|
|
12092
|
-
...
|
|
12095
|
+
...y,
|
|
12093
12096
|
...V,
|
|
12094
|
-
values: V.values ??
|
|
12095
|
-
parseRuleProps: V.parseRuleProps ??
|
|
12096
|
-
consume_source_config_: V.consume_source_config_ ??
|
|
12097
|
-
qty_validation_rule_: V.qty_validation_rule_ ??
|
|
12098
|
-
consume_storage_entries_: (V.consume_storage_entries_ ?? []).map((
|
|
12099
|
-
...
|
|
12100
|
-
__key:
|
|
12097
|
+
values: V.values ?? y.values,
|
|
12098
|
+
parseRuleProps: V.parseRuleProps ?? y.parseRuleProps,
|
|
12099
|
+
consume_source_config_: V.consume_source_config_ ?? y.consume_source_config_,
|
|
12100
|
+
qty_validation_rule_: V.qty_validation_rule_ ?? y.qty_validation_rule_,
|
|
12101
|
+
consume_storage_entries_: (V.consume_storage_entries_ ?? []).map((U) => ({
|
|
12102
|
+
...U,
|
|
12103
|
+
__key: U.__key || Ae(8)
|
|
12101
12104
|
}))
|
|
12102
12105
|
};
|
|
12103
12106
|
}, { immediate: !0 });
|
|
@@ -12108,36 +12111,36 @@ var init_index_es = __esmMin((() => {
|
|
|
12108
12111
|
} catch {
|
|
12109
12112
|
return;
|
|
12110
12113
|
}
|
|
12111
|
-
const _ = t.bizOptions.objectFields.find((
|
|
12114
|
+
const _ = t.bizOptions.objectFields.find((y) => y.key === u.value.objectField);
|
|
12112
12115
|
u.value.objectFieldName = _ === null || _ === void 0 ? void 0 : _.name, u.value.objectBizType = _ === null || _ === void 0 ? void 0 : _.bizType, t.modalInst.confirm(u.value);
|
|
12113
12116
|
};
|
|
12114
|
-
return (_,
|
|
12115
|
-
const V = resolveComponent("a-select"),
|
|
12117
|
+
return (_, y) => {
|
|
12118
|
+
const V = resolveComponent("a-select"), U = resolveComponent("a-form-item"), D = resolveComponent("a-form"), O = resolveComponent("a-switch"), q = resolveComponent("a-button"), A = resolveComponent("a-select-option");
|
|
12116
12119
|
return openBlock(), createBlock($e, mergeProps(e.modalProps, {
|
|
12117
12120
|
visible: e.modalVisible,
|
|
12118
12121
|
onCancel: e.modalInst.cancel,
|
|
12119
12122
|
onOk: p,
|
|
12120
|
-
onAfterClose:
|
|
12123
|
+
onAfterClose: y[4] || (y[4] = (M) => a("afterClose"))
|
|
12121
12124
|
}), {
|
|
12122
12125
|
default: withCtx(() => [
|
|
12123
|
-
createVNode(
|
|
12126
|
+
createVNode(D, {
|
|
12124
12127
|
ref_key: "objectFieldFormRef",
|
|
12125
12128
|
ref: n,
|
|
12126
12129
|
layout: "vertical",
|
|
12127
12130
|
model: u.value,
|
|
12128
12131
|
rules: s
|
|
12129
12132
|
}, {
|
|
12130
|
-
default: withCtx(() => [createVNode(
|
|
12133
|
+
default: withCtx(() => [createVNode(U, {
|
|
12131
12134
|
label: "对象字段",
|
|
12132
12135
|
name: "objectField",
|
|
12133
12136
|
required: ""
|
|
12134
12137
|
}, {
|
|
12135
12138
|
default: withCtx(() => [createVNode(V, {
|
|
12136
12139
|
value: u.value.objectField,
|
|
12137
|
-
"onUpdate:value":
|
|
12140
|
+
"onUpdate:value": y[0] || (y[0] = (M) => u.value.objectField = M),
|
|
12138
12141
|
placeholder: "请选择",
|
|
12139
|
-
options:
|
|
12140
|
-
disabled:
|
|
12142
|
+
options: C.value,
|
|
12143
|
+
disabled: S.value
|
|
12141
12144
|
}, null, 8, [
|
|
12142
12145
|
"value",
|
|
12143
12146
|
"options",
|
|
@@ -12147,18 +12150,18 @@ var init_index_es = __esmMin((() => {
|
|
|
12147
12150
|
})]),
|
|
12148
12151
|
_: 1
|
|
12149
12152
|
}, 8, ["model"]),
|
|
12150
|
-
u.value.objectField ? (openBlock(), createElementBlock("div",
|
|
12151
|
-
default: withCtx(() => [...
|
|
12153
|
+
u.value.objectField ? (openBlock(), createElementBlock("div", Zi, [createVNode(unref(ht), null, {
|
|
12154
|
+
default: withCtx(() => [...y[5] || (y[5] = [createTextVNode("默认值", -1)])]),
|
|
12152
12155
|
_: 1
|
|
12153
12156
|
}), createVNode(unref(VxeGrid), mergeProps({
|
|
12154
12157
|
class: "object-table",
|
|
12155
12158
|
data: g.value
|
|
12156
|
-
},
|
|
12157
|
-
value_default: withCtx(({ row:
|
|
12159
|
+
}, r.value), {
|
|
12160
|
+
value_default: withCtx(({ row: M }) => [e.bizOptions.RenderFieldWrapper ? (openBlock(), createBlock(resolveDynamicComponent(e.bizOptions.RenderFieldWrapper), {
|
|
12158
12161
|
key: 0,
|
|
12159
|
-
field:
|
|
12160
|
-
modelValue: u.value.values[
|
|
12161
|
-
"onUpdate:modelValue": (
|
|
12162
|
+
field: M.field,
|
|
12163
|
+
modelValue: u.value.values[M.key],
|
|
12164
|
+
"onUpdate:modelValue": (m) => b(M.key, m)
|
|
12162
12165
|
}, null, 8, [
|
|
12163
12166
|
"field",
|
|
12164
12167
|
"modelValue",
|
|
@@ -12167,22 +12170,64 @@ var init_index_es = __esmMin((() => {
|
|
|
12167
12170
|
_: 1
|
|
12168
12171
|
}, 16, ["data"])])) : createCommentVNode("", !0),
|
|
12169
12172
|
createElementVNode("div", null, [createVNode(unref(ht), null, {
|
|
12170
|
-
default: withCtx(() => [...
|
|
12173
|
+
default: withCtx(() => [...y[6] || (y[6] = [createTextVNode("条码解析规则", -1)])]),
|
|
12171
12174
|
_: 1
|
|
12172
|
-
}), createVNode(
|
|
12173
|
-
|
|
12174
|
-
|
|
12175
|
-
|
|
12176
|
-
onClick: h
|
|
12175
|
+
}), createVNode(D, {
|
|
12176
|
+
ref: "barcodeRulesFormRef",
|
|
12177
|
+
model: u.value,
|
|
12178
|
+
layout: "horizontal"
|
|
12177
12179
|
}, {
|
|
12178
|
-
default: withCtx(() => [
|
|
12180
|
+
default: withCtx(() => [createVNode(U, {
|
|
12181
|
+
label: "是否启用条码解析规则",
|
|
12182
|
+
name: "disableBarcodeParsing"
|
|
12183
|
+
}, {
|
|
12184
|
+
default: withCtx(() => [createVNode(O, {
|
|
12185
|
+
size: "small",
|
|
12186
|
+
checked: !u.value.disableBarcodeParsing,
|
|
12187
|
+
onChange: y[1] || (y[1] = (M) => u.value.disableBarcodeParsing = !u.value.disableBarcodeParsing)
|
|
12188
|
+
}, null, 8, ["checked"])]),
|
|
12189
|
+
_: 1
|
|
12190
|
+
}), u.value.disableBarcodeParsing ? (openBlock(), createBlock(U, {
|
|
12191
|
+
key: 1,
|
|
12192
|
+
label: "参数",
|
|
12193
|
+
name: "scanParamType",
|
|
12194
|
+
rules: [{
|
|
12195
|
+
required: !!u.value.disableBarcodeParsing,
|
|
12196
|
+
message: "请选择参数"
|
|
12197
|
+
}]
|
|
12198
|
+
}, {
|
|
12199
|
+
default: withCtx(() => [createVNode(V, {
|
|
12200
|
+
value: u.value.scanParamType,
|
|
12201
|
+
"onUpdate:value": y[2] || (y[2] = (M) => u.value.scanParamType = M),
|
|
12202
|
+
placeholder: _.$t("sys.chooseText")
|
|
12203
|
+
}, {
|
|
12204
|
+
default: withCtx(() => [(openBlock(!0), createElementBlock(Fragment, null, renderList(Object.values(unref(yt)), (M) => (openBlock(), createBlock(A, {
|
|
12205
|
+
key: M,
|
|
12206
|
+
value: M
|
|
12207
|
+
}, {
|
|
12208
|
+
default: withCtx(() => [createTextVNode(toDisplayString(_.$t(`sys.ScanParamType.${M}`)), 1)]),
|
|
12209
|
+
_: 2
|
|
12210
|
+
}, 1032, ["value"]))), 128))]),
|
|
12211
|
+
_: 1
|
|
12212
|
+
}, 8, ["value", "placeholder"])]),
|
|
12213
|
+
_: 1
|
|
12214
|
+
}, 8, ["rules"])) : (openBlock(), createBlock(q, {
|
|
12215
|
+
key: 0,
|
|
12216
|
+
block: "",
|
|
12217
|
+
ghost: !R.value,
|
|
12218
|
+
type: "primary",
|
|
12219
|
+
onClick: h
|
|
12220
|
+
}, {
|
|
12221
|
+
default: withCtx(() => [createTextVNode(toDisplayString(R.value ? "编辑" : "添加") + "规则 ", 1)]),
|
|
12222
|
+
_: 1
|
|
12223
|
+
}, 8, ["ghost"]))]),
|
|
12179
12224
|
_: 1
|
|
12180
|
-
}, 8, ["
|
|
12181
|
-
createVNode(
|
|
12225
|
+
}, 8, ["model"])]),
|
|
12226
|
+
createVNode($i, {
|
|
12182
12227
|
ref_key: "materialStrategyRef",
|
|
12183
12228
|
ref: l,
|
|
12184
12229
|
"form-state": u.value,
|
|
12185
|
-
"onUpdate:formState":
|
|
12230
|
+
"onUpdate:formState": y[3] || (y[3] = (M) => u.value = M),
|
|
12186
12231
|
showConsumePolicy: e.bizOptions.showConsumePolicy
|
|
12187
12232
|
}, null, 8, ["form-state", "showConsumePolicy"])
|
|
12188
12233
|
]),
|
|
@@ -12190,30 +12235,33 @@ var init_index_es = __esmMin((() => {
|
|
|
12190
12235
|
}, 16, ["visible", "onCancel"]);
|
|
12191
12236
|
};
|
|
12192
12237
|
}
|
|
12193
|
-
}), [["__scopeId", "data-v-
|
|
12238
|
+
}), [["__scopeId", "data-v-5692f8e6"]]);
|
|
12194
12239
|
Fe = /* @__PURE__ */ ((e) => (e.materialCode = "materialCode", e.lot = "lot", e.qty = "qty", e.expiration = "expiration", e.deviceCode = "deviceCode", e.other = "other", e))(Fe || {});
|
|
12195
|
-
|
|
12196
|
-
|
|
12197
|
-
|
|
12240
|
+
Yi = ke$1.apaas.modelComprehensive.getBizServiceModelCategoryModelKeyBsKey;
|
|
12241
|
+
nr = { class: "field-mapping__rule-control" };
|
|
12242
|
+
lr = {
|
|
12198
12243
|
key: 0,
|
|
12199
12244
|
class: "field-mapping__tip"
|
|
12200
12245
|
};
|
|
12201
|
-
|
|
12202
|
-
|
|
12246
|
+
sr = { class: "field-mapping__subtitle" };
|
|
12247
|
+
ir = {
|
|
12203
12248
|
key: 1,
|
|
12204
12249
|
class: "field-mapping__tip"
|
|
12205
12250
|
};
|
|
12206
|
-
|
|
12207
|
-
|
|
12251
|
+
rr = { class: "field-mapping__map" };
|
|
12252
|
+
ur = {
|
|
12208
12253
|
key: 0,
|
|
12209
12254
|
class: "field-mapping__row field-mapping__row--header"
|
|
12210
12255
|
};
|
|
12211
|
-
|
|
12256
|
+
dr = { class: "field-mapping__barcodeField field-mapping__col-label is-required" };
|
|
12212
12257
|
cr = { class: "field-mapping__formFields field-mapping__col-label is-required" };
|
|
12213
|
-
|
|
12214
|
-
|
|
12215
|
-
|
|
12216
|
-
|
|
12258
|
+
pr = { class: "field-mapping__row--content" };
|
|
12259
|
+
fr = {
|
|
12260
|
+
key: 0,
|
|
12261
|
+
class: "field-mapping__actions"
|
|
12262
|
+
};
|
|
12263
|
+
mr = ["title", "onClick"];
|
|
12264
|
+
na = /* @__PURE__ */ F$15(/* @__PURE__ */ defineComponent({
|
|
12217
12265
|
__name: "field-mapping",
|
|
12218
12266
|
props: {
|
|
12219
12267
|
parsingRuleId: {},
|
|
@@ -12233,6 +12281,10 @@ var init_index_es = __esmMin((() => {
|
|
|
12233
12281
|
defaultExpanded: {
|
|
12234
12282
|
type: Boolean,
|
|
12235
12283
|
default: !1
|
|
12284
|
+
},
|
|
12285
|
+
disabled: {
|
|
12286
|
+
type: Boolean,
|
|
12287
|
+
default: !1
|
|
12236
12288
|
}
|
|
12237
12289
|
},
|
|
12238
12290
|
emits: [
|
|
@@ -12248,90 +12300,92 @@ var init_index_es = __esmMin((() => {
|
|
|
12248
12300
|
formFields: [..._.formFields ?? []]
|
|
12249
12301
|
}));
|
|
12250
12302
|
}
|
|
12251
|
-
const s = ref(),
|
|
12303
|
+
const s = ref(), d = ref(a.defaultExpanded), u = ref([]), r = reactive({
|
|
12252
12304
|
parsingRuleId: a.parsingRuleId,
|
|
12253
12305
|
fillMapArr: l(a.fillMapArr)
|
|
12254
12306
|
});
|
|
12255
12307
|
watch(() => a.parsingRuleId, (p) => {
|
|
12256
|
-
|
|
12308
|
+
r.parsingRuleId = p;
|
|
12257
12309
|
}), watch(() => a.fillMapArr, (p) => {
|
|
12258
|
-
|
|
12310
|
+
r.fillMapArr = l(p);
|
|
12259
12311
|
});
|
|
12260
|
-
const
|
|
12312
|
+
const S = computed(() => (a.formFieldOptions ?? []).map((p) => ({
|
|
12261
12313
|
...p,
|
|
12262
12314
|
label: `${p.label}[${p.value}]`
|
|
12263
12315
|
}))), R = () => {
|
|
12264
|
-
console.log("change",
|
|
12265
|
-
},
|
|
12316
|
+
console.log("change", r.fillMapArr), n("update:fillMapArr", l(r.fillMapArr));
|
|
12317
|
+
}, C = async (p) => {
|
|
12266
12318
|
if (!p) {
|
|
12267
12319
|
u.value = [], n("ruleConfigChange", void 0);
|
|
12268
12320
|
return;
|
|
12269
12321
|
}
|
|
12270
|
-
const _ = await
|
|
12322
|
+
const _ = await ar(p);
|
|
12271
12323
|
if (!_) {
|
|
12272
12324
|
u.value = [], n("ruleConfigChange", void 0);
|
|
12273
12325
|
return;
|
|
12274
12326
|
}
|
|
12275
|
-
u.value = _.fieldList.map((
|
|
12276
|
-
label:
|
|
12277
|
-
value:
|
|
12327
|
+
u.value = _.fieldList.map((y) => ({
|
|
12328
|
+
label: y.alias ?? $t(`sys.edhr.labelConfigFields.${y.type}`),
|
|
12329
|
+
value: y.key
|
|
12278
12330
|
})), n("ruleConfigChange", _);
|
|
12279
|
-
},
|
|
12331
|
+
}, w = (p) => {
|
|
12332
|
+
if (a.disabled) return;
|
|
12280
12333
|
const _ = p ?? void 0;
|
|
12281
|
-
_ !==
|
|
12334
|
+
_ !== r.parsingRuleId && (r.parsingRuleId = _, r.fillMapArr = [], n("update:parsingRuleId", _), n("update:fillMapArr", []), C(_));
|
|
12282
12335
|
}, g = () => {
|
|
12283
|
-
|
|
12284
|
-
},
|
|
12285
|
-
|
|
12336
|
+
a.disabled || (r.fillMapArr.push({ formFields: [] }), R());
|
|
12337
|
+
}, b = (p) => {
|
|
12338
|
+
a.disabled || (r.fillMapArr.splice(p, 1), R());
|
|
12286
12339
|
}, h = (p, _) => _.label.toLowerCase().includes(p.toLowerCase());
|
|
12287
12340
|
return onMounted(() => {
|
|
12288
|
-
|
|
12341
|
+
r.parsingRuleId && C(r.parsingRuleId);
|
|
12289
12342
|
}), o({ validate: () => {
|
|
12290
12343
|
var _s$value3;
|
|
12291
12344
|
return (_s$value3 = s.value) === null || _s$value3 === void 0 ? void 0 : _s$value3.validate();
|
|
12292
12345
|
} }), (p, _) => {
|
|
12293
|
-
const
|
|
12346
|
+
const y = resolveComponent("a-form-item"), V = resolveComponent("a-alert"), U = resolveComponent("a-select"), D = resolveComponent("a-button"), O = resolveComponent("a-form");
|
|
12294
12347
|
return openBlock(), createElementBlock("div", { class: normalizeClass(["field-mapping", { "field-mapping--bordered": e.bordered }]) }, [createVNode(O, {
|
|
12295
12348
|
ref_key: "formRef",
|
|
12296
12349
|
ref: s,
|
|
12297
|
-
model:
|
|
12350
|
+
model: r,
|
|
12298
12351
|
layout: "vertical"
|
|
12299
12352
|
}, {
|
|
12300
|
-
default: withCtx(() => [createVNode(
|
|
12353
|
+
default: withCtx(() => [createVNode(y, {
|
|
12301
12354
|
class: "field-mapping__rule",
|
|
12302
12355
|
label: p.$t("sys.edhr.mcTable.parseRule") + ":",
|
|
12303
12356
|
name: "parsingRuleId"
|
|
12304
12357
|
}, {
|
|
12305
|
-
default: withCtx(() => [createElementVNode("div",
|
|
12306
|
-
"model-value":
|
|
12358
|
+
default: withCtx(() => [createElementVNode("div", nr, [createVNode(unref(Ct), {
|
|
12359
|
+
"model-value": r.parsingRuleId,
|
|
12307
12360
|
"model-key": "em_barcode_parsing_rules",
|
|
12308
12361
|
"show-search": "",
|
|
12309
|
-
|
|
12310
|
-
|
|
12362
|
+
disabled: e.disabled,
|
|
12363
|
+
"onUpdate:modelValue": w
|
|
12364
|
+
}, null, 8, ["model-value", "disabled"]), e.collapsible ? (openBlock(), createElementBlock("div", {
|
|
12311
12365
|
key: 0,
|
|
12312
12366
|
class: "field-mapping__expand primary-gct",
|
|
12313
|
-
onClick: _[0] || (_[0] = (
|
|
12314
|
-
}, [createTextVNode(toDisplayString(
|
|
12367
|
+
onClick: _[0] || (_[0] = (q) => d.value = !d.value)
|
|
12368
|
+
}, [createTextVNode(toDisplayString(d.value ? p.$t("sys.collapseConfig") : p.$t("sys.expandConfig")) + " ", 1), createElementVNode("i", { class: normalizeClass(["iconfont ml4px", d.value ? "icon-arrow_up_pad" : "icon-arrow_down_pad"]) }, null, 2)])) : createCommentVNode("", !0)])]),
|
|
12315
12369
|
_: 1
|
|
12316
12370
|
}, 8, ["label"]), withDirectives(createElementVNode("div", null, [
|
|
12317
|
-
e.ruleTip && e.tipPlacement === "before" ? (openBlock(), createElementBlock("div",
|
|
12371
|
+
e.ruleTip && e.tipPlacement === "before" ? (openBlock(), createElementBlock("div", lr, [createVNode(V, {
|
|
12318
12372
|
message: e.ruleTip,
|
|
12319
12373
|
type: "info",
|
|
12320
12374
|
"show-icon": ""
|
|
12321
12375
|
}, null, 8, ["message"])])) : createCommentVNode("", !0),
|
|
12322
|
-
createElementVNode("div",
|
|
12323
|
-
e.ruleTip && e.tipPlacement === "after" ? (openBlock(), createElementBlock("div",
|
|
12376
|
+
createElementVNode("div", sr, toDisplayString(p.$t("sys.onlineForm.fieldMapping")), 1),
|
|
12377
|
+
e.ruleTip && e.tipPlacement === "after" ? (openBlock(), createElementBlock("div", ir, [createVNode(V, {
|
|
12324
12378
|
message: e.ruleTip,
|
|
12325
12379
|
type: "info",
|
|
12326
12380
|
"show-icon": ""
|
|
12327
12381
|
}, null, 8, ["message"])])) : createCommentVNode("", !0),
|
|
12328
|
-
createElementVNode("div",
|
|
12329
|
-
|
|
12330
|
-
createElementVNode("div",
|
|
12382
|
+
createElementVNode("div", rr, [
|
|
12383
|
+
r.fillMapArr.length ? (openBlock(), createElementBlock("div", ur, [createElementVNode("div", dr, toDisplayString(p.$t("sys.onlineForm.barcodeField")), 1), createElementVNode("div", cr, toDisplayString(e.formFieldsLabel || p.$t("sys.onlineForm.formFields")), 1)])) : createCommentVNode("", !0),
|
|
12384
|
+
createElementVNode("div", pr, [(openBlock(!0), createElementBlock(Fragment, null, renderList(r.fillMapArr, (q, A) => (openBlock(), createElementBlock("div", {
|
|
12331
12385
|
key: A,
|
|
12332
12386
|
class: "field-mapping__row"
|
|
12333
12387
|
}, [
|
|
12334
|
-
createVNode(
|
|
12388
|
+
createVNode(y, {
|
|
12335
12389
|
class: "field-mapping__barcodeField",
|
|
12336
12390
|
name: [
|
|
12337
12391
|
"fillMapArr",
|
|
@@ -12343,22 +12397,24 @@ var init_index_es = __esmMin((() => {
|
|
|
12343
12397
|
message: p.$t("sys.chooseText")
|
|
12344
12398
|
}]
|
|
12345
12399
|
}, {
|
|
12346
|
-
default: withCtx(() => [createVNode(
|
|
12347
|
-
value:
|
|
12348
|
-
"onUpdate:value": (
|
|
12400
|
+
default: withCtx(() => [createVNode(U, {
|
|
12401
|
+
value: q.barcodeField,
|
|
12402
|
+
"onUpdate:value": (M) => q.barcodeField = M,
|
|
12349
12403
|
placeholder: p.$t("sys.chooseText"),
|
|
12350
12404
|
options: u.value,
|
|
12405
|
+
disabled: e.disabled,
|
|
12351
12406
|
onChange: R
|
|
12352
12407
|
}, null, 8, [
|
|
12353
12408
|
"value",
|
|
12354
12409
|
"onUpdate:value",
|
|
12355
12410
|
"placeholder",
|
|
12356
|
-
"options"
|
|
12411
|
+
"options",
|
|
12412
|
+
"disabled"
|
|
12357
12413
|
])]),
|
|
12358
12414
|
_: 2
|
|
12359
12415
|
}, 1032, ["name", "rules"]),
|
|
12360
12416
|
_[1] || (_[1] = createElementVNode("div", { class: "field-mapping__divider" }, [createElementVNode("i", { class: "gct-iconfont icon-lianjie field-mapping__link-icon" })], -1)),
|
|
12361
|
-
createVNode(
|
|
12417
|
+
createVNode(y, {
|
|
12362
12418
|
class: "field-mapping__formFields",
|
|
12363
12419
|
name: [
|
|
12364
12420
|
"fillMapArr",
|
|
@@ -12372,49 +12428,52 @@ var init_index_es = __esmMin((() => {
|
|
|
12372
12428
|
message: p.$t("sys.chooseText")
|
|
12373
12429
|
}]
|
|
12374
12430
|
}, {
|
|
12375
|
-
default: withCtx(() => [createVNode(
|
|
12376
|
-
value:
|
|
12377
|
-
"onUpdate:value": (
|
|
12431
|
+
default: withCtx(() => [createVNode(U, {
|
|
12432
|
+
value: q.formFields,
|
|
12433
|
+
"onUpdate:value": (M) => q.formFields = M,
|
|
12378
12434
|
mode: "multiple",
|
|
12379
12435
|
"allow-clear": "",
|
|
12380
12436
|
"show-search": "",
|
|
12381
12437
|
placeholder: p.$t("sys.chooseText"),
|
|
12382
|
-
options:
|
|
12438
|
+
options: S.value,
|
|
12383
12439
|
"filter-option": h,
|
|
12440
|
+
disabled: e.disabled,
|
|
12384
12441
|
onChange: R
|
|
12385
12442
|
}, null, 8, [
|
|
12386
12443
|
"value",
|
|
12387
12444
|
"onUpdate:value",
|
|
12388
12445
|
"placeholder",
|
|
12389
|
-
"options"
|
|
12446
|
+
"options",
|
|
12447
|
+
"disabled"
|
|
12390
12448
|
])]),
|
|
12391
12449
|
_: 2
|
|
12392
12450
|
}, 1032, ["name", "rules"]),
|
|
12393
|
-
|
|
12451
|
+
e.disabled ? createCommentVNode("", !0) : (openBlock(), createElementBlock("div", fr, [createElementVNode("i", {
|
|
12394
12452
|
class: "field-mapping__remove-btn iconfont icon-shanchu1",
|
|
12395
12453
|
title: p.$t("sys.delete"),
|
|
12396
|
-
onClick: (
|
|
12397
|
-
}, null, 8,
|
|
12454
|
+
onClick: (M) => b(A)
|
|
12455
|
+
}, null, 8, mr)]))
|
|
12398
12456
|
]))), 128))]),
|
|
12399
|
-
|
|
12457
|
+
e.disabled ? createCommentVNode("", !0) : (openBlock(), createBlock(D, {
|
|
12458
|
+
key: 1,
|
|
12400
12459
|
class: "field-mapping__add-btn",
|
|
12401
12460
|
type: "link",
|
|
12402
12461
|
onClick: g
|
|
12403
12462
|
}, {
|
|
12404
12463
|
default: withCtx(() => [_[2] || (_[2] = createElementVNode("i", { class: "iconfont icon-tianjia" }, null, -1)), createTextVNode(" " + toDisplayString(p.$t("sys.onlineForm.addFieldMapping")), 1)]),
|
|
12405
12464
|
_: 1
|
|
12406
|
-
})
|
|
12465
|
+
}))
|
|
12407
12466
|
])
|
|
12408
|
-
], 512), [[vShow, !e.collapsible ||
|
|
12467
|
+
], 512), [[vShow, !e.collapsible || d.value]])]),
|
|
12409
12468
|
_: 1
|
|
12410
12469
|
}, 8, ["model"])], 2);
|
|
12411
12470
|
};
|
|
12412
12471
|
}
|
|
12413
|
-
}), [["__scopeId", "data-v-
|
|
12414
|
-
|
|
12415
|
-
|
|
12416
|
-
|
|
12417
|
-
|
|
12472
|
+
}), [["__scopeId", "data-v-4fbcfe00"]]);
|
|
12473
|
+
gr = "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";
|
|
12474
|
+
hr = { class: "scan-modal__content" };
|
|
12475
|
+
yr = ["src"];
|
|
12476
|
+
_r = /* @__PURE__ */ F$15(/* @__PURE__ */ defineComponent({
|
|
12418
12477
|
__name: "modal",
|
|
12419
12478
|
props: {
|
|
12420
12479
|
modalVisible: { type: Boolean },
|
|
@@ -12430,23 +12489,23 @@ var init_index_es = __esmMin((() => {
|
|
|
12430
12489
|
fillMapArr: cloneDeep((_t$bizOptions$scanRul2 = t.bizOptions.scanRules) === null || _t$bizOptions$scanRul2 === void 0 ? void 0 : _t$bizOptions$scanRul2.fillMapArr) ?? []
|
|
12431
12490
|
}), l = ref(), s = (u) => {
|
|
12432
12491
|
l.value = u;
|
|
12433
|
-
},
|
|
12492
|
+
}, d = async () => {
|
|
12434
12493
|
if (!l.value && !t.bizOptions.scanParam) {
|
|
12435
12494
|
message.error($t("sys.edhr.mcTable.scanRuleNotFound"));
|
|
12436
12495
|
return;
|
|
12437
12496
|
}
|
|
12438
|
-
let u,
|
|
12439
|
-
const
|
|
12440
|
-
l.value ? u =
|
|
12497
|
+
let u, r = {};
|
|
12498
|
+
const S = n.value.fillMapArr;
|
|
12499
|
+
l.value ? u = tr(n.value.str, JSON.stringify(l.value)) : t.bizOptions.scanParam && (u = { [t.bizOptions.scanParam]: n.value.str }), S !== null && S !== void 0 && S.length && u && (r = or(u, S));
|
|
12441
12500
|
const R = {
|
|
12442
12501
|
str: n.value.str,
|
|
12443
12502
|
parsedValue: u,
|
|
12444
|
-
transformedData:
|
|
12445
|
-
},
|
|
12446
|
-
n.value.str = "",
|
|
12503
|
+
transformedData: r
|
|
12504
|
+
}, C = await t.bizOptions.onScan(R);
|
|
12505
|
+
n.value.str = "", C && t.modalInst.cancel();
|
|
12447
12506
|
};
|
|
12448
|
-
return (u,
|
|
12449
|
-
const
|
|
12507
|
+
return (u, r) => {
|
|
12508
|
+
const S = resolveComponent("a-input"), R = resolveComponent("a-form-item"), C = resolveComponent("a-form"), w = resolveComponent("a-divider");
|
|
12450
12509
|
return openBlock(), createBlock($e, mergeProps(t.modalProps, {
|
|
12451
12510
|
class: "gct-form-base-modal-common-scan",
|
|
12452
12511
|
visible: t.modalVisible,
|
|
@@ -12457,10 +12516,10 @@ var init_index_es = __esmMin((() => {
|
|
|
12457
12516
|
footer: !1,
|
|
12458
12517
|
draggable: "",
|
|
12459
12518
|
onCancel: t.modalInst.cancel,
|
|
12460
|
-
onAfterClose:
|
|
12519
|
+
onAfterClose: r[3] || (r[3] = (g) => a("afterClose"))
|
|
12461
12520
|
}), {
|
|
12462
|
-
default: withCtx(() => [createElementVNode("div",
|
|
12463
|
-
createVNode(
|
|
12521
|
+
default: withCtx(() => [createElementVNode("div", hr, [
|
|
12522
|
+
createVNode(C, {
|
|
12464
12523
|
ref: "formRef",
|
|
12465
12524
|
model: n.value,
|
|
12466
12525
|
layout: "horizontal"
|
|
@@ -12469,34 +12528,34 @@ var init_index_es = __esmMin((() => {
|
|
|
12469
12528
|
required: "",
|
|
12470
12529
|
class: "scan-form-item"
|
|
12471
12530
|
}, {
|
|
12472
|
-
default: withCtx(() => [createVNode(
|
|
12531
|
+
default: withCtx(() => [createVNode(S, {
|
|
12473
12532
|
value: n.value.str,
|
|
12474
|
-
"onUpdate:value":
|
|
12533
|
+
"onUpdate:value": r[0] || (r[0] = (g) => n.value.str = g),
|
|
12475
12534
|
size: "large",
|
|
12476
12535
|
placeholder: u.$t("sys.edhr.mcTable.pleaseScanEntry"),
|
|
12477
|
-
onKeyup: withKeys(
|
|
12536
|
+
onKeyup: withKeys(d, ["enter"])
|
|
12478
12537
|
}, {
|
|
12479
12538
|
prefix: withCtx(() => [createElementVNode("img", {
|
|
12480
|
-
src: unref(
|
|
12539
|
+
src: unref(gr),
|
|
12481
12540
|
width: "24",
|
|
12482
12541
|
height: "24"
|
|
12483
|
-
}, null, 8,
|
|
12542
|
+
}, null, 8, yr)]),
|
|
12484
12543
|
_: 1
|
|
12485
12544
|
}, 8, ["value", "placeholder"])]),
|
|
12486
12545
|
_: 1
|
|
12487
12546
|
})]),
|
|
12488
12547
|
_: 1
|
|
12489
12548
|
}, 8, ["model"]),
|
|
12490
|
-
createVNode(
|
|
12549
|
+
createVNode(w, { style: {
|
|
12491
12550
|
width: "calc(100% + 48px)",
|
|
12492
12551
|
margin: "28px 0 16px -24px",
|
|
12493
12552
|
"border-color": "#E0E3EB"
|
|
12494
12553
|
} }),
|
|
12495
|
-
createVNode(unref(
|
|
12554
|
+
createVNode(unref(na), {
|
|
12496
12555
|
"parsing-rule-id": n.value.parsingRuleId,
|
|
12497
|
-
"onUpdate:parsingRuleId":
|
|
12556
|
+
"onUpdate:parsingRuleId": r[1] || (r[1] = (g) => n.value.parsingRuleId = g),
|
|
12498
12557
|
"fill-map-arr": n.value.fillMapArr,
|
|
12499
|
-
"onUpdate:fillMapArr":
|
|
12558
|
+
"onUpdate:fillMapArr": r[2] || (r[2] = (g) => n.value.fillMapArr = g),
|
|
12500
12559
|
collapsible: "",
|
|
12501
12560
|
"form-field-options": t.bizOptions.formFieldOptions,
|
|
12502
12561
|
"rule-tip": t.bizOptions.ruleTip,
|
|
@@ -12517,12 +12576,12 @@ var init_index_es = __esmMin((() => {
|
|
|
12517
12576
|
};
|
|
12518
12577
|
}
|
|
12519
12578
|
}), [["__scopeId", "data-v-bb2f9201"]]);
|
|
12520
|
-
|
|
12579
|
+
wr = {
|
|
12521
12580
|
key: 0,
|
|
12522
12581
|
class: "substitute-policy-item__nested"
|
|
12523
12582
|
};
|
|
12524
|
-
|
|
12525
|
-
|
|
12583
|
+
kr = { class: "substitute-policy-item__sub-toolbar" };
|
|
12584
|
+
xr = /* @__PURE__ */ F$15(/* @__PURE__ */ defineComponent({
|
|
12526
12585
|
__name: "substitute-item",
|
|
12527
12586
|
props: /* @__PURE__ */ mergeModels({ hasIds: {} }, {
|
|
12528
12587
|
formState: { required: !0 },
|
|
@@ -12556,36 +12615,36 @@ var init_index_es = __esmMin((() => {
|
|
|
12556
12615
|
function l(g) {
|
|
12557
12616
|
return g ? g.split(":")[0] : "";
|
|
12558
12617
|
}
|
|
12559
|
-
function s(g,
|
|
12560
|
-
return !g || !
|
|
12618
|
+
function s(g, b) {
|
|
12619
|
+
return !g || !b ? !1 : g === b ? !0 : l(g) === l(b);
|
|
12561
12620
|
}
|
|
12562
|
-
function
|
|
12621
|
+
function d(g, b) {
|
|
12563
12622
|
var _o$hasIds;
|
|
12564
|
-
const h =
|
|
12623
|
+
const h = b ?? g.product_id_;
|
|
12565
12624
|
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((_) => _.__key !== g.__key && s(_.product_id_, h)) ? $t("sys.edhr.mcTable.substituteMaterialDuplicated") : "" : "";
|
|
12566
12625
|
}
|
|
12567
12626
|
function u(g) {
|
|
12568
12627
|
return [{
|
|
12569
12628
|
required: !0,
|
|
12570
12629
|
message: $t("sys.pleaseSelectSth", { sth: $t("sys.material") })
|
|
12571
|
-
}, { validator: async (
|
|
12572
|
-
const p =
|
|
12630
|
+
}, { validator: async (b, h) => {
|
|
12631
|
+
const p = d(g, h);
|
|
12573
12632
|
if (p) return Promise.reject(p);
|
|
12574
12633
|
} }];
|
|
12575
12634
|
}
|
|
12576
|
-
function
|
|
12577
|
-
const
|
|
12635
|
+
function r(g) {
|
|
12636
|
+
const b = (g === null || g === void 0 ? void 0 : g._info) ?? {}, h = ((g === null || g === void 0 ? void 0 : g.displayLabel) || "").split(":"), p = h.length > 1 ? h[0] : typeof (g === null || g === void 0 ? void 0 : g.title) == "string" ? g.title : "";
|
|
12578
12637
|
return {
|
|
12579
|
-
product_code_:
|
|
12580
|
-
product_name_:
|
|
12581
|
-
product_version_:
|
|
12582
|
-
product_spec_:
|
|
12638
|
+
product_code_: b.code_ ?? "",
|
|
12639
|
+
product_name_: b.name_ ?? p ?? "",
|
|
12640
|
+
product_version_: b.version_ ?? b.__LABEL__ ?? "",
|
|
12641
|
+
product_spec_: b.spec_ ?? b.specification_ ?? ""
|
|
12583
12642
|
};
|
|
12584
12643
|
}
|
|
12585
|
-
function
|
|
12644
|
+
function S(g, b) {
|
|
12586
12645
|
return g ? {
|
|
12587
12646
|
product_id_: g,
|
|
12588
|
-
...
|
|
12647
|
+
...r(b)
|
|
12589
12648
|
} : {
|
|
12590
12649
|
product_id_: void 0,
|
|
12591
12650
|
product_code_: void 0,
|
|
@@ -12594,12 +12653,12 @@ var init_index_es = __esmMin((() => {
|
|
|
12594
12653
|
product_spec_: void 0
|
|
12595
12654
|
};
|
|
12596
12655
|
}
|
|
12597
|
-
function R(g,
|
|
12598
|
-
Object.assign(g,
|
|
12656
|
+
function R(g, b, h) {
|
|
12657
|
+
Object.assign(g, S(b ?? null, h));
|
|
12599
12658
|
}
|
|
12600
|
-
function
|
|
12659
|
+
function C() {
|
|
12601
12660
|
t.value.substitute_material_entries_.push({
|
|
12602
|
-
__key:
|
|
12661
|
+
__key: Ae(8),
|
|
12603
12662
|
product_id_: void 0,
|
|
12604
12663
|
product_code_: "",
|
|
12605
12664
|
product_name_: "",
|
|
@@ -12608,11 +12667,11 @@ var init_index_es = __esmMin((() => {
|
|
|
12608
12667
|
qty_required_: t.value.qty_required_ ?? 0
|
|
12609
12668
|
});
|
|
12610
12669
|
}
|
|
12611
|
-
function
|
|
12670
|
+
function w(g) {
|
|
12612
12671
|
t.value.substitute_material_entries_.splice(g, 1);
|
|
12613
12672
|
}
|
|
12614
|
-
return (g,
|
|
12615
|
-
const h = resolveComponent("a-radio"), p = resolveComponent("a-radio-group"), _ = resolveComponent("a-form-item"),
|
|
12673
|
+
return (g, b) => {
|
|
12674
|
+
const h = resolveComponent("a-radio"), p = resolveComponent("a-radio-group"), _ = resolveComponent("a-form-item"), y = resolveComponent("a-select"), V = resolveComponent("a-col"), U = resolveComponent("a-row"), D = resolveComponent("a-button"), O = resolveComponent("a-table");
|
|
12616
12675
|
return openBlock(), createElementBlock(Fragment, null, [createVNode(_, {
|
|
12617
12676
|
label: g.$t("sys.edhr.mcTable.substituteMaterialEnabled"),
|
|
12618
12677
|
name: "substitute_material_enabled_",
|
|
@@ -12620,7 +12679,7 @@ var init_index_es = __esmMin((() => {
|
|
|
12620
12679
|
}, {
|
|
12621
12680
|
default: withCtx(() => [createVNode(p, {
|
|
12622
12681
|
value: t.value.substitute_material_enabled_,
|
|
12623
|
-
"onUpdate:value":
|
|
12682
|
+
"onUpdate:value": b[0] || (b[0] = (q) => t.value.substitute_material_enabled_ = q)
|
|
12624
12683
|
}, {
|
|
12625
12684
|
default: withCtx(() => [createVNode(h, { value: !0 }, {
|
|
12626
12685
|
default: withCtx(() => [createTextVNode(toDisplayString(g.$t("sys.true")), 1)]),
|
|
@@ -12632,17 +12691,17 @@ var init_index_es = __esmMin((() => {
|
|
|
12632
12691
|
_: 1
|
|
12633
12692
|
}, 8, ["value"])]),
|
|
12634
12693
|
_: 1
|
|
12635
|
-
}, 8, ["label", "rules"]), t.value.substitute_material_enabled_ ? (openBlock(), createElementBlock("div",
|
|
12636
|
-
createVNode(
|
|
12694
|
+
}, 8, ["label", "rules"]), t.value.substitute_material_enabled_ ? (openBlock(), createElementBlock("div", wr, [
|
|
12695
|
+
createVNode(U, { gutter: 16 }, {
|
|
12637
12696
|
default: withCtx(() => [createVNode(V, { span: 12 }, {
|
|
12638
12697
|
default: withCtx(() => [createVNode(_, {
|
|
12639
12698
|
label: g.$t("sys.edhr.mcTable.substitutePolicy"),
|
|
12640
12699
|
name: "substitute_policy_",
|
|
12641
12700
|
required: ""
|
|
12642
12701
|
}, {
|
|
12643
|
-
default: withCtx(() => [createVNode(
|
|
12702
|
+
default: withCtx(() => [createVNode(y, {
|
|
12644
12703
|
value: t.value.substitute_policy_,
|
|
12645
|
-
"onUpdate:value":
|
|
12704
|
+
"onUpdate:value": b[1] || (b[1] = (q) => t.value.substitute_policy_ = q),
|
|
12646
12705
|
placeholder: g.$t("sys.chooseText"),
|
|
12647
12706
|
options: a
|
|
12648
12707
|
}, null, 8, ["value", "placeholder"])]),
|
|
@@ -12652,10 +12711,10 @@ var init_index_es = __esmMin((() => {
|
|
|
12652
12711
|
})]),
|
|
12653
12712
|
_: 1
|
|
12654
12713
|
}),
|
|
12655
|
-
createElementVNode("div",
|
|
12714
|
+
createElementVNode("div", kr, [createVNode(D, {
|
|
12656
12715
|
type: "link",
|
|
12657
12716
|
class: "substitute-policy-item__add-row",
|
|
12658
|
-
onClick:
|
|
12717
|
+
onClick: C
|
|
12659
12718
|
}, {
|
|
12660
12719
|
default: withCtx(() => [createVNode(unref(PlusOutlined)), createTextVNode(" " + toDisplayString(g.$t("sys.edhr.addRow")), 1)]),
|
|
12661
12720
|
_: 1
|
|
@@ -12668,20 +12727,20 @@ var init_index_es = __esmMin((() => {
|
|
|
12668
12727
|
"row-key": "__key",
|
|
12669
12728
|
locale: { emptyText: g.$t("sys.noData") }
|
|
12670
12729
|
}, {
|
|
12671
|
-
headerCell: withCtx(({ column:
|
|
12672
|
-
bodyCell: withCtx(({ column:
|
|
12730
|
+
headerCell: withCtx(({ column: q }) => [q.key === "product_id_" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [b[2] || (b[2] = createElementVNode("span", { class: "substitute-policy-item__required-mark" }, "*", -1)), createTextVNode(" " + toDisplayString(q.title), 1)], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [createTextVNode(toDisplayString(q.title), 1)], 64))]),
|
|
12731
|
+
bodyCell: withCtx(({ column: q, record: A, index: M }) => [q.key === "index" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [createTextVNode(toDisplayString(M + 1), 1)], 64)) : q.key === "product_id_" ? (openBlock(), createBlock(_, {
|
|
12673
12732
|
key: 1,
|
|
12674
12733
|
class: "substitute-policy-item__table-item",
|
|
12675
12734
|
name: [
|
|
12676
12735
|
"substitute_material_entries_",
|
|
12677
|
-
|
|
12736
|
+
M,
|
|
12678
12737
|
"product_id_"
|
|
12679
12738
|
],
|
|
12680
12739
|
rules: u(A),
|
|
12681
|
-
"validate-status":
|
|
12682
|
-
help:
|
|
12740
|
+
"validate-status": d(A) ? "error" : void 0,
|
|
12741
|
+
help: d(A) || void 0
|
|
12683
12742
|
}, {
|
|
12684
|
-
default: withCtx(() => [createVNode(unref(
|
|
12743
|
+
default: withCtx(() => [createVNode(unref(Ct), {
|
|
12685
12744
|
"model-value": A.product_id_ || void 0,
|
|
12686
12745
|
"model-key": "em_product",
|
|
12687
12746
|
placeholder: g.$t("sys.chooseText"),
|
|
@@ -12689,7 +12748,7 @@ var init_index_es = __esmMin((() => {
|
|
|
12689
12748
|
"disabled-parent": !1,
|
|
12690
12749
|
"show-search": !0,
|
|
12691
12750
|
"query-data": { "product_type_.ne": "finishedProduct" },
|
|
12692
|
-
onChange: (
|
|
12751
|
+
onChange: (m, H) => R(A, m, H)
|
|
12693
12752
|
}, null, 8, [
|
|
12694
12753
|
"model-value",
|
|
12695
12754
|
"placeholder",
|
|
@@ -12701,11 +12760,11 @@ var init_index_es = __esmMin((() => {
|
|
|
12701
12760
|
"rules",
|
|
12702
12761
|
"validate-status",
|
|
12703
12762
|
"help"
|
|
12704
|
-
])) :
|
|
12763
|
+
])) : q.key === "action" ? (openBlock(), createBlock(D, {
|
|
12705
12764
|
key: 2,
|
|
12706
12765
|
type: "link",
|
|
12707
12766
|
danger: "",
|
|
12708
|
-
onClick: (
|
|
12767
|
+
onClick: (m) => w(M)
|
|
12709
12768
|
}, {
|
|
12710
12769
|
default: withCtx(() => [createTextVNode(toDisplayString(g.$t("sys.delete")), 1)]),
|
|
12711
12770
|
_: 1
|
|
@@ -12716,14 +12775,14 @@ var init_index_es = __esmMin((() => {
|
|
|
12716
12775
|
};
|
|
12717
12776
|
}
|
|
12718
12777
|
}), [["__scopeId", "data-v-4e83748b"]]);
|
|
12719
|
-
|
|
12720
|
-
Mr = { class: "bom-entry-modal__section-title" };
|
|
12778
|
+
Mr = { class: "bom-entry-modal__content" };
|
|
12721
12779
|
Sr = { class: "bom-entry-modal__section-title" };
|
|
12722
|
-
Rr = {
|
|
12780
|
+
Rr = { class: "bom-entry-modal__section-title" };
|
|
12781
|
+
Ar = {
|
|
12723
12782
|
key: 0,
|
|
12724
12783
|
class: "bom-entry-modal__nested"
|
|
12725
12784
|
};
|
|
12726
|
-
|
|
12785
|
+
Vr = /* @__PURE__ */ F$15(/* @__PURE__ */ defineComponent({
|
|
12727
12786
|
__name: "modal",
|
|
12728
12787
|
props: {
|
|
12729
12788
|
modalVisible: { type: Boolean },
|
|
@@ -12735,7 +12794,7 @@ var init_index_es = __esmMin((() => {
|
|
|
12735
12794
|
setup(e, { emit: o }) {
|
|
12736
12795
|
var _t$bizOptions$data, _t$bizOptions$data2;
|
|
12737
12796
|
const t = e, a = o;
|
|
12738
|
-
provide(
|
|
12797
|
+
provide(ea, t.bizOptions);
|
|
12739
12798
|
const n = computed(() => t.bizOptions.data ? $t("sys.edit") : $t("sys.add")), l = ref();
|
|
12740
12799
|
function s() {
|
|
12741
12800
|
return {
|
|
@@ -12763,32 +12822,32 @@ var init_index_es = __esmMin((() => {
|
|
|
12763
12822
|
force_loading_enabled_: !0
|
|
12764
12823
|
};
|
|
12765
12824
|
}
|
|
12766
|
-
function
|
|
12767
|
-
return (O ?? []).map((
|
|
12768
|
-
...cloneDeep(
|
|
12769
|
-
__key:
|
|
12825
|
+
function d(O) {
|
|
12826
|
+
return (O ?? []).map((q) => ({
|
|
12827
|
+
...cloneDeep(q),
|
|
12828
|
+
__key: Ae(8)
|
|
12770
12829
|
}));
|
|
12771
12830
|
}
|
|
12772
12831
|
function u(O) {
|
|
12773
|
-
return (O ?? []).map((
|
|
12774
|
-
...cloneDeep(
|
|
12775
|
-
__key:
|
|
12832
|
+
return (O ?? []).map((q) => ({
|
|
12833
|
+
...cloneDeep(q),
|
|
12834
|
+
__key: Ae(8)
|
|
12776
12835
|
}));
|
|
12777
12836
|
}
|
|
12778
|
-
let
|
|
12837
|
+
let r = reactive({
|
|
12779
12838
|
...s(),
|
|
12780
12839
|
...t.bizOptions.data ? cloneDeep(t.bizOptions.data) : {},
|
|
12781
|
-
substitute_material_entries_:
|
|
12840
|
+
substitute_material_entries_: d((_t$bizOptions$data = t.bizOptions.data) === null || _t$bizOptions$data === void 0 ? void 0 : _t$bizOptions$data.substitute_material_entries_),
|
|
12782
12841
|
consume_storage_entries_: u((_t$bizOptions$data2 = t.bizOptions.data) === null || _t$bizOptions$data2 === void 0 ? void 0 : _t$bizOptions$data2.consume_storage_entries_)
|
|
12783
12842
|
});
|
|
12784
|
-
const
|
|
12843
|
+
const S = computed(() => {
|
|
12785
12844
|
const O = {
|
|
12786
12845
|
product_id_: [{
|
|
12787
12846
|
required: !0,
|
|
12788
12847
|
message: $t("sys.pleaseSelectSth", { sth: $t("sys.material") })
|
|
12789
|
-
}, { validator: async (
|
|
12790
|
-
const
|
|
12791
|
-
if (
|
|
12848
|
+
}, { validator: async (q, A) => {
|
|
12849
|
+
const M = h(A);
|
|
12850
|
+
if (M) return Promise.reject(M);
|
|
12792
12851
|
} }],
|
|
12793
12852
|
qty_required_: [{
|
|
12794
12853
|
required: !0,
|
|
@@ -12800,42 +12859,42 @@ var init_index_es = __esmMin((() => {
|
|
|
12800
12859
|
}],
|
|
12801
12860
|
force_loading_enabled_: [fe($t("sys.edhr.mcTable.forceLoadingEnabled"))]
|
|
12802
12861
|
};
|
|
12803
|
-
return
|
|
12862
|
+
return r.type_ !== "view" && (O.consume_enabled_ = [fe($t("sys.edhr.mcTable.consumeEnabled"))], r.consume_enabled_ && (O.consume_source_config_ = [{
|
|
12804
12863
|
required: !0,
|
|
12805
12864
|
message: $t("sys.pleaseSelectSth", { sth: $t("sys.edhr.mcTable.consumeSourceConfig") })
|
|
12806
|
-
}],
|
|
12865
|
+
}], r.consume_source_config_ === "custom" && (O.default_warehouse_id_ = [{
|
|
12807
12866
|
required: !0,
|
|
12808
12867
|
message: $t("sys.pleaseSelectSth", { sth: $t("sys.edhr.mcTable.defaultWarehouse") })
|
|
12809
|
-
}])), O.qty_validation_enabled_ = [fe($t("sys.edhr.mcTable.qtyValidationEnabled"))],
|
|
12868
|
+
}])), O.qty_validation_enabled_ = [fe($t("sys.edhr.mcTable.qtyValidationEnabled"))], r.qty_validation_enabled_ && (O.qty_validation_rule_ = [{
|
|
12810
12869
|
required: !0,
|
|
12811
12870
|
message: $t("sys.pleaseSelectSth", { sth: $t("sys.edhr.mcTable.qtyValidationRule") })
|
|
12812
|
-
}],
|
|
12871
|
+
}], r.qty_validation_rule_ === "bounds" && (O.max_value_ = [{
|
|
12813
12872
|
required: !0,
|
|
12814
12873
|
message: $t("sys.pleaseInputSth", { sth: $t("sys.edhr.mcTable.qtyValidationMax") })
|
|
12815
12874
|
}], O.min_value_ = [{
|
|
12816
12875
|
required: !0,
|
|
12817
12876
|
message: $t("sys.pleaseInputSth", { sth: $t("sys.edhr.mcTable.qtyValidationMin") })
|
|
12818
|
-
}])), O.substitute_material_enabled_ = [fe($t("sys.edhr.mcTable.substituteMaterialEnabled"))],
|
|
12877
|
+
}])), O.substitute_material_enabled_ = [fe($t("sys.edhr.mcTable.substituteMaterialEnabled"))], r.substitute_material_enabled_ && (O.substitute_policy_ = [{
|
|
12819
12878
|
required: !0,
|
|
12820
12879
|
message: $t("sys.pleaseSelectSth", { sth: $t("sys.edhr.mcTable.substitutePolicy") })
|
|
12821
|
-
}])),
|
|
12880
|
+
}])), r.type_ === "by_lot" && (O.lot_mixing_enabled_ = [fe($t("sys.edhr.mcTable.lotMixingEnabled"))], r.lot_mixing_enabled_ && (O.lot_mixing_times_ = [{
|
|
12822
12881
|
required: !0,
|
|
12823
12882
|
message: $t("sys.pleaseInputSth", { sth: $t("sys.edhr.mcTable.lotMixingTimes") })
|
|
12824
12883
|
}])), O;
|
|
12825
12884
|
});
|
|
12826
12885
|
function R(O) {
|
|
12827
|
-
const
|
|
12886
|
+
const q = (O === null || O === void 0 ? void 0 : O._info) ?? {}, A = ((O === null || O === void 0 ? void 0 : O.displayLabel) || "").split(":"), M = A.length > 1 ? A[0] : typeof (O === null || O === void 0 ? void 0 : O.title) == "string" ? O.title : "";
|
|
12828
12887
|
return {
|
|
12829
|
-
product_code_:
|
|
12830
|
-
product_name_:
|
|
12831
|
-
product_version_:
|
|
12832
|
-
product_spec_:
|
|
12888
|
+
product_code_: q.code_ ?? "",
|
|
12889
|
+
product_name_: q.name_ ?? M ?? "",
|
|
12890
|
+
product_version_: q.version_ ?? q.__LABEL__ ?? "",
|
|
12891
|
+
product_spec_: q.spec_ ?? q.specification_ ?? ""
|
|
12833
12892
|
};
|
|
12834
12893
|
}
|
|
12835
|
-
function
|
|
12894
|
+
function C(O, q) {
|
|
12836
12895
|
return O ? {
|
|
12837
12896
|
product_id_: O,
|
|
12838
|
-
...R(
|
|
12897
|
+
...R(q)
|
|
12839
12898
|
} : {
|
|
12840
12899
|
product_id_: void 0,
|
|
12841
12900
|
product_code_: void 0,
|
|
@@ -12844,64 +12903,64 @@ var init_index_es = __esmMin((() => {
|
|
|
12844
12903
|
product_spec_: void 0
|
|
12845
12904
|
};
|
|
12846
12905
|
}
|
|
12847
|
-
function
|
|
12906
|
+
function w(O) {
|
|
12848
12907
|
return O ? O.split(":")[0] : "";
|
|
12849
12908
|
}
|
|
12850
|
-
function g(O,
|
|
12851
|
-
return !O || !
|
|
12909
|
+
function g(O, q) {
|
|
12910
|
+
return !O || !q ? !1 : O === q ? !0 : w(O) === w(q);
|
|
12852
12911
|
}
|
|
12853
|
-
function
|
|
12854
|
-
return O ? (t.bizOptions.hasIds ?? []).some((
|
|
12912
|
+
function b(O) {
|
|
12913
|
+
return O ? (t.bizOptions.hasIds ?? []).some((q) => g(q, O)) : !1;
|
|
12855
12914
|
}
|
|
12856
12915
|
function h(O) {
|
|
12857
|
-
const
|
|
12858
|
-
return
|
|
12916
|
+
const q = O ?? r.product_id_;
|
|
12917
|
+
return q && b(q) ? $t("sys.edhr.mcTable.materialAlreadyExists") : "";
|
|
12859
12918
|
}
|
|
12860
|
-
function p(O,
|
|
12861
|
-
Object.assign(
|
|
12919
|
+
function p(O, q) {
|
|
12920
|
+
Object.assign(r, C(O ?? null, q));
|
|
12862
12921
|
}
|
|
12863
12922
|
function _(O = []) {
|
|
12864
|
-
return O.map((
|
|
12865
|
-
const { __key: A, ...
|
|
12923
|
+
return O.map((q) => {
|
|
12924
|
+
const { __key: A, ...M } = q;
|
|
12866
12925
|
return {
|
|
12867
|
-
...
|
|
12868
|
-
qty_required_:
|
|
12926
|
+
...M,
|
|
12927
|
+
qty_required_: r.qty_required_ ?? M.qty_required_ ?? 0
|
|
12869
12928
|
};
|
|
12870
12929
|
});
|
|
12871
12930
|
}
|
|
12872
|
-
function
|
|
12873
|
-
return O.map((
|
|
12874
|
-
const { __key: A, ...
|
|
12875
|
-
return
|
|
12931
|
+
function y(O = []) {
|
|
12932
|
+
return O.map((q) => {
|
|
12933
|
+
const { __key: A, ...M } = q;
|
|
12934
|
+
return M;
|
|
12876
12935
|
});
|
|
12877
12936
|
}
|
|
12878
12937
|
function V(O) {
|
|
12879
12938
|
O.consume_enabled_ = !1, O.consume_source_config_ = void 0, O.default_warehouse_id_ = void 0, O.default_location_id_ = void 0, O.consume_storage_entries_ = [];
|
|
12880
12939
|
}
|
|
12881
|
-
function
|
|
12882
|
-
const { substitute_material_entries_:
|
|
12883
|
-
...
|
|
12940
|
+
function U() {
|
|
12941
|
+
const { substitute_material_entries_: q = [], consume_storage_entries_: A = [], ...M } = cloneDeep(r), m = {
|
|
12942
|
+
...M,
|
|
12884
12943
|
substitute_material_entries_: [],
|
|
12885
12944
|
consume_storage_entries_: []
|
|
12886
12945
|
};
|
|
12887
|
-
return
|
|
12946
|
+
return m.type_ === "view" ? (m.qty_validation_enabled_ = !1, m.qty_validation_rule_ = "eq", m.max_value_ = void 0, m.min_value_ = void 0, m.lot_mixing_enabled_ = !1, m.lot_mixing_times_ = 1, m.substitute_material_enabled_ = !1, m.substitute_policy_ = "only_one", m.substitute_material_entries_ = [], V(m), m) : (m.consume_enabled_ ? m.consume_source_config_ !== "custom" ? (m.default_warehouse_id_ = void 0, m.default_location_id_ = void 0, m.consume_storage_entries_ = []) : m.consume_storage_entries_ = y(A) : (V(m), m.consume_enabled_ = !1), m.qty_validation_enabled_ ? m.qty_validation_rule_ !== "bounds" && (m.max_value_ = void 0, m.min_value_ = void 0) : (m.qty_validation_rule_ = "eq", m.max_value_ = void 0, m.min_value_ = void 0), m.substitute_material_enabled_ ? m.substitute_material_entries_ = _(q) : (m.substitute_policy_ = "only_one", m.substitute_material_entries_ = []), m.type_ !== "by_lot" ? (m.lot_mixing_enabled_ = !1, m.lot_mixing_times_ = 1) : m.lot_mixing_enabled_ || (m.lot_mixing_times_ = 1), m);
|
|
12888
12947
|
}
|
|
12889
|
-
const
|
|
12890
|
-
var
|
|
12948
|
+
const D = async () => {
|
|
12949
|
+
var _r$substitute_materia;
|
|
12891
12950
|
try {
|
|
12892
12951
|
var _l$value12;
|
|
12893
12952
|
await ((_l$value12 = l.value) === null || _l$value12 === void 0 ? void 0 : _l$value12.validate());
|
|
12894
12953
|
} catch {
|
|
12895
12954
|
return;
|
|
12896
12955
|
}
|
|
12897
|
-
if (
|
|
12956
|
+
if (r.type_ !== "view" && r.substitute_material_enabled_ && !((_r$substitute_materia = r.substitute_material_entries_) === null || _r$substitute_materia === void 0 ? void 0 : _r$substitute_materia.length)) {
|
|
12898
12957
|
message.warning($t("sys.edhr.mcTable.substituteMaterialRequired"));
|
|
12899
12958
|
return;
|
|
12900
12959
|
}
|
|
12901
|
-
t.modalInst.confirm(
|
|
12960
|
+
t.modalInst.confirm(U());
|
|
12902
12961
|
};
|
|
12903
|
-
return (O,
|
|
12904
|
-
const A = resolveComponent("a-form-item"),
|
|
12962
|
+
return (O, q) => {
|
|
12963
|
+
const A = resolveComponent("a-form-item"), M = resolveComponent("a-col"), m = resolveComponent("a-input-number"), H = resolveComponent("a-row"), L = resolveComponent("a-radio"), Y = resolveComponent("a-radio-group"), ne = resolveComponent("a-form");
|
|
12905
12964
|
return openBlock(), createBlock($e, mergeProps(t.modalProps, {
|
|
12906
12965
|
class: "gct-form-base-modal-bom-entry-modal",
|
|
12907
12966
|
visible: t.modalVisible,
|
|
@@ -12913,19 +12972,19 @@ var init_index_es = __esmMin((() => {
|
|
|
12913
12972
|
overflow: "hidden"
|
|
12914
12973
|
},
|
|
12915
12974
|
onCancel: t.modalInst.cancel,
|
|
12916
|
-
onOk:
|
|
12917
|
-
onAfterClose:
|
|
12975
|
+
onOk: D,
|
|
12976
|
+
onAfterClose: q[8] || (q[8] = (Q) => a("afterClose"))
|
|
12918
12977
|
}), {
|
|
12919
|
-
default: withCtx(() => [createElementVNode("div",
|
|
12978
|
+
default: withCtx(() => [createElementVNode("div", Mr, [createVNode(ne, {
|
|
12920
12979
|
ref_key: "formRef",
|
|
12921
12980
|
ref: l,
|
|
12922
|
-
model: unref(
|
|
12923
|
-
rules:
|
|
12981
|
+
model: unref(r),
|
|
12982
|
+
rules: S.value
|
|
12924
12983
|
}, {
|
|
12925
12984
|
default: withCtx(() => [
|
|
12926
|
-
createElementVNode("div",
|
|
12985
|
+
createElementVNode("div", Sr, toDisplayString(O.$t("sys.appDesigner.basicInformation")), 1),
|
|
12927
12986
|
createVNode(H, { gutter: 16 }, {
|
|
12928
|
-
default: withCtx(() => [createVNode(
|
|
12987
|
+
default: withCtx(() => [createVNode(M, { span: 12 }, {
|
|
12929
12988
|
default: withCtx(() => [createVNode(A, {
|
|
12930
12989
|
label: O.$t("sys.material"),
|
|
12931
12990
|
name: "product_id_",
|
|
@@ -12933,8 +12992,8 @@ var init_index_es = __esmMin((() => {
|
|
|
12933
12992
|
"validate-status": h() ? "error" : void 0,
|
|
12934
12993
|
help: h() || void 0
|
|
12935
12994
|
}, {
|
|
12936
|
-
default: withCtx(() => [createVNode(unref(
|
|
12937
|
-
"model-value": unref(
|
|
12995
|
+
default: withCtx(() => [createVNode(unref(Ct), {
|
|
12996
|
+
"model-value": unref(r).product_id_ || void 0,
|
|
12938
12997
|
"model-key": "em_product",
|
|
12939
12998
|
placeholder: O.$t("sys.chooseText"),
|
|
12940
12999
|
"parent-to-default": !1,
|
|
@@ -12950,15 +13009,15 @@ var init_index_es = __esmMin((() => {
|
|
|
12950
13009
|
"help"
|
|
12951
13010
|
])]),
|
|
12952
13011
|
_: 1
|
|
12953
|
-
}), createVNode(
|
|
13012
|
+
}), createVNode(M, { span: 12 }, {
|
|
12954
13013
|
default: withCtx(() => [createVNode(A, {
|
|
12955
13014
|
label: O.$t("sys.edhr.unitQty"),
|
|
12956
13015
|
name: "qty_required_",
|
|
12957
13016
|
required: ""
|
|
12958
13017
|
}, {
|
|
12959
|
-
default: withCtx(() => [createVNode(
|
|
12960
|
-
value: unref(
|
|
12961
|
-
"onUpdate:value":
|
|
13018
|
+
default: withCtx(() => [createVNode(m, {
|
|
13019
|
+
value: unref(r).qty_required_,
|
|
13020
|
+
"onUpdate:value": q[0] || (q[0] = (Q) => unref(r).qty_required_ = Q),
|
|
12962
13021
|
style: { width: "100%" },
|
|
12963
13022
|
placeholder: O.$t("sys.inputText"),
|
|
12964
13023
|
min: 0
|
|
@@ -12969,7 +13028,7 @@ var init_index_es = __esmMin((() => {
|
|
|
12969
13028
|
})]),
|
|
12970
13029
|
_: 1
|
|
12971
13030
|
}),
|
|
12972
|
-
createElementVNode("div",
|
|
13031
|
+
createElementVNode("div", Rr, toDisplayString(O.$t("sys.edhr.mcTable.materialStrategyConfig")), 1),
|
|
12973
13032
|
createVNode(A, {
|
|
12974
13033
|
name: "type_",
|
|
12975
13034
|
required: ""
|
|
@@ -12979,19 +13038,19 @@ var init_index_es = __esmMin((() => {
|
|
|
12979
13038
|
info: O.$t("sys.edhr.mcTable.loadingTypeTip")
|
|
12980
13039
|
}, null, 8, ["info"])]),
|
|
12981
13040
|
default: withCtx(() => [createVNode(Y, {
|
|
12982
|
-
value: unref(
|
|
12983
|
-
"onUpdate:value":
|
|
13041
|
+
value: unref(r).type_,
|
|
13042
|
+
"onUpdate:value": q[1] || (q[1] = (Q) => unref(r).type_ = Q)
|
|
12984
13043
|
}, {
|
|
12985
13044
|
default: withCtx(() => [
|
|
12986
|
-
createVNode(
|
|
13045
|
+
createVNode(L, { value: "view" }, {
|
|
12987
13046
|
default: withCtx(() => [createTextVNode(toDisplayString(O.$t("sys.edhr.mcTable.loadingTypeView")), 1)]),
|
|
12988
13047
|
_: 1
|
|
12989
13048
|
}),
|
|
12990
|
-
createVNode(
|
|
13049
|
+
createVNode(L, { value: "by_number" }, {
|
|
12991
13050
|
default: withCtx(() => [createTextVNode(toDisplayString(O.$t("sys.edhr.mcTable.loadingTypeByNumber")), 1)]),
|
|
12992
13051
|
_: 1
|
|
12993
13052
|
}),
|
|
12994
|
-
createVNode(
|
|
13053
|
+
createVNode(L, { value: "by_lot" }, {
|
|
12995
13054
|
default: withCtx(() => [createTextVNode(toDisplayString(O.$t("sys.edhr.mcTable.loadingTypeByLot")), 1)]),
|
|
12996
13055
|
_: 1
|
|
12997
13056
|
})
|
|
@@ -13000,44 +13059,44 @@ var init_index_es = __esmMin((() => {
|
|
|
13000
13059
|
}, 8, ["value"])]),
|
|
13001
13060
|
_: 1
|
|
13002
13061
|
}),
|
|
13003
|
-
unref(
|
|
13062
|
+
unref(r).type_ !== "view" && e.bizOptions.showConsumePolicy ? (openBlock(), createBlock(ta, {
|
|
13004
13063
|
key: 0,
|
|
13005
|
-
"form-state": unref(
|
|
13006
|
-
"onUpdate:formState":
|
|
13064
|
+
"form-state": unref(r),
|
|
13065
|
+
"onUpdate:formState": q[2] || (q[2] = (Q) => isRef(r) ? r.value = Q : r = Q)
|
|
13007
13066
|
}, null, 8, ["form-state"])) : createCommentVNode("", !0),
|
|
13008
|
-
unref(
|
|
13067
|
+
unref(r).type_ !== "view" ? (openBlock(), createBlock(aa, {
|
|
13009
13068
|
key: 1,
|
|
13010
|
-
"form-state": unref(
|
|
13011
|
-
"onUpdate:formState":
|
|
13069
|
+
"form-state": unref(r),
|
|
13070
|
+
"onUpdate:formState": q[3] || (q[3] = (Q) => isRef(r) ? r.value = Q : r = Q)
|
|
13012
13071
|
}, null, 8, ["form-state"])) : createCommentVNode("", !0),
|
|
13013
|
-
unref(
|
|
13072
|
+
unref(r).type_ === "by_lot" ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [createVNode(A, {
|
|
13014
13073
|
label: O.$t("sys.edhr.mcTable.lotMixingEnabled"),
|
|
13015
13074
|
name: "lot_mixing_enabled_"
|
|
13016
13075
|
}, {
|
|
13017
13076
|
default: withCtx(() => [createVNode(Y, {
|
|
13018
|
-
value: unref(
|
|
13019
|
-
"onUpdate:value":
|
|
13077
|
+
value: unref(r).lot_mixing_enabled_,
|
|
13078
|
+
"onUpdate:value": q[4] || (q[4] = (Q) => unref(r).lot_mixing_enabled_ = Q)
|
|
13020
13079
|
}, {
|
|
13021
|
-
default: withCtx(() => [createVNode(
|
|
13080
|
+
default: withCtx(() => [createVNode(L, { value: !0 }, {
|
|
13022
13081
|
default: withCtx(() => [createTextVNode(toDisplayString(O.$t("sys.true")), 1)]),
|
|
13023
13082
|
_: 1
|
|
13024
|
-
}), createVNode(
|
|
13083
|
+
}), createVNode(L, { value: !1 }, {
|
|
13025
13084
|
default: withCtx(() => [createTextVNode(toDisplayString(O.$t("sys.false")), 1)]),
|
|
13026
13085
|
_: 1
|
|
13027
13086
|
})]),
|
|
13028
13087
|
_: 1
|
|
13029
13088
|
}, 8, ["value"])]),
|
|
13030
13089
|
_: 1
|
|
13031
|
-
}, 8, ["label"]), unref(
|
|
13032
|
-
default: withCtx(() => [createVNode(
|
|
13090
|
+
}, 8, ["label"]), unref(r).lot_mixing_enabled_ ? (openBlock(), createElementBlock("div", Ar, [createVNode(H, { gutter: 16 }, {
|
|
13091
|
+
default: withCtx(() => [createVNode(M, { span: 12 }, {
|
|
13033
13092
|
default: withCtx(() => [createVNode(A, {
|
|
13034
13093
|
label: O.$t("sys.edhr.mcTable.lotMixingTimes"),
|
|
13035
13094
|
name: "lot_mixing_times_",
|
|
13036
13095
|
required: ""
|
|
13037
13096
|
}, {
|
|
13038
|
-
default: withCtx(() => [createVNode(
|
|
13039
|
-
value: unref(
|
|
13040
|
-
"onUpdate:value":
|
|
13097
|
+
default: withCtx(() => [createVNode(m, {
|
|
13098
|
+
value: unref(r).lot_mixing_times_,
|
|
13099
|
+
"onUpdate:value": q[5] || (q[5] = (Q) => unref(r).lot_mixing_times_ = Q),
|
|
13041
13100
|
style: { width: "100%" },
|
|
13042
13101
|
placeholder: O.$t("sys.inputText"),
|
|
13043
13102
|
min: 1,
|
|
@@ -13049,10 +13108,10 @@ var init_index_es = __esmMin((() => {
|
|
|
13049
13108
|
})]),
|
|
13050
13109
|
_: 1
|
|
13051
13110
|
})])) : createCommentVNode("", !0)], 64)) : createCommentVNode("", !0),
|
|
13052
|
-
unref(
|
|
13111
|
+
unref(r).type_ !== "view" ? (openBlock(), createBlock(xr, {
|
|
13053
13112
|
key: 3,
|
|
13054
|
-
"form-state": unref(
|
|
13055
|
-
"onUpdate:formState":
|
|
13113
|
+
"form-state": unref(r),
|
|
13114
|
+
"onUpdate:formState": q[6] || (q[6] = (Q) => isRef(r) ? r.value = Q : r = Q),
|
|
13056
13115
|
hasIds: t.bizOptions.hasIds
|
|
13057
13116
|
}, null, 8, ["form-state", "hasIds"])) : createCommentVNode("", !0),
|
|
13058
13117
|
createVNode(A, {
|
|
@@ -13060,13 +13119,13 @@ var init_index_es = __esmMin((() => {
|
|
|
13060
13119
|
name: "force_loading_enabled_"
|
|
13061
13120
|
}, {
|
|
13062
13121
|
default: withCtx(() => [createVNode(Y, {
|
|
13063
|
-
value: unref(
|
|
13064
|
-
"onUpdate:value":
|
|
13122
|
+
value: unref(r).force_loading_enabled_,
|
|
13123
|
+
"onUpdate:value": q[7] || (q[7] = (Q) => unref(r).force_loading_enabled_ = Q)
|
|
13065
13124
|
}, {
|
|
13066
|
-
default: withCtx(() => [createVNode(
|
|
13125
|
+
default: withCtx(() => [createVNode(L, { value: !0 }, {
|
|
13067
13126
|
default: withCtx(() => [createTextVNode(toDisplayString(O.$t("sys.true")), 1)]),
|
|
13068
13127
|
_: 1
|
|
13069
|
-
}), createVNode(
|
|
13128
|
+
}), createVNode(L, { value: !1 }, {
|
|
13070
13129
|
default: withCtx(() => [createTextVNode(toDisplayString(O.$t("sys.false")), 1)]),
|
|
13071
13130
|
_: 1
|
|
13072
13131
|
})]),
|
|
@@ -13086,8 +13145,8 @@ var init_index_es = __esmMin((() => {
|
|
|
13086
13145
|
};
|
|
13087
13146
|
}
|
|
13088
13147
|
}), [["__scopeId", "data-v-f3c2d7ab"]]);
|
|
13089
|
-
|
|
13090
|
-
|
|
13148
|
+
Tr = { class: "parse-rule-modal__content" };
|
|
13149
|
+
zr = /* @__PURE__ */ F$15(/* @__PURE__ */ defineComponent({
|
|
13091
13150
|
__name: "modal",
|
|
13092
13151
|
props: {
|
|
13093
13152
|
modalVisible: { type: Boolean },
|
|
@@ -13101,49 +13160,55 @@ var init_index_es = __esmMin((() => {
|
|
|
13101
13160
|
const t = e, a = o, n = ref(), l = reactive({
|
|
13102
13161
|
parsingRuleId: (_t$bizOptions$config = t.bizOptions.config) === null || _t$bizOptions$config === void 0 ? void 0 : _t$bizOptions$config.parsingRuleId,
|
|
13103
13162
|
fillMapArr: cloneDeep((_t$bizOptions$config2 = t.bizOptions.config) === null || _t$bizOptions$config2 === void 0 ? void 0 : _t$bizOptions$config2.fillMapArr) ?? []
|
|
13104
|
-
}), s = computed(() => t.bizOptions.title ? t.bizOptions.title : (t.bizOptions.config ? $t("sys.edit") : $t("sys.add")) + $t("sys.onlineForm.barcodeParsing"))
|
|
13105
|
-
|
|
13163
|
+
}), s = computed(() => t.bizOptions.title ? t.bizOptions.title : (t.bizOptions.config ? $t("sys.edit") : $t("sys.add")) + $t("sys.onlineForm.barcodeParsing")), d = computed(() => ({
|
|
13164
|
+
...t.modalProps,
|
|
13165
|
+
...t.bizOptions.readonly ? { okButtonProps: { disabled: !0 } } : {}
|
|
13166
|
+
}));
|
|
13167
|
+
function u() {
|
|
13106
13168
|
return !l.parsingRuleId && l.fillMapArr.length === 0;
|
|
13107
13169
|
}
|
|
13108
|
-
const
|
|
13170
|
+
const r = async () => {
|
|
13171
|
+
if (t.bizOptions.readonly) return;
|
|
13109
13172
|
try {
|
|
13110
13173
|
var _n$value9;
|
|
13111
|
-
const
|
|
13112
|
-
|
|
13174
|
+
const R = (_n$value9 = n.value) === null || _n$value9 === void 0 ? void 0 : _n$value9.validate;
|
|
13175
|
+
R && await R();
|
|
13113
13176
|
} catch {
|
|
13114
13177
|
return;
|
|
13115
13178
|
}
|
|
13116
|
-
const
|
|
13117
|
-
t.modalInst.confirm(
|
|
13179
|
+
const S = u() ? void 0 : cloneDeep(toRaw(l));
|
|
13180
|
+
t.modalInst.confirm(S);
|
|
13118
13181
|
};
|
|
13119
|
-
return (
|
|
13182
|
+
return (S, R) => (openBlock(), createBlock($e, mergeProps(d.value, {
|
|
13120
13183
|
class: "gct-form-base-modal-parse-rule",
|
|
13121
13184
|
visible: t.modalVisible,
|
|
13122
13185
|
title: s.value,
|
|
13123
13186
|
width: 800,
|
|
13124
13187
|
draggable: "",
|
|
13125
13188
|
onCancel: t.modalInst.cancel,
|
|
13126
|
-
onOk:
|
|
13127
|
-
onAfterClose:
|
|
13189
|
+
onOk: r,
|
|
13190
|
+
onAfterClose: R[2] || (R[2] = (C) => a("afterClose"))
|
|
13128
13191
|
}), {
|
|
13129
|
-
default: withCtx(() => [createElementVNode("div",
|
|
13192
|
+
default: withCtx(() => [createElementVNode("div", Tr, [createVNode(unref(na), {
|
|
13130
13193
|
ref_key: "fieldMappingRef",
|
|
13131
13194
|
ref: n,
|
|
13132
13195
|
"parsing-rule-id": l.parsingRuleId,
|
|
13133
|
-
"onUpdate:parsingRuleId":
|
|
13196
|
+
"onUpdate:parsingRuleId": R[0] || (R[0] = (C) => l.parsingRuleId = C),
|
|
13134
13197
|
"fill-map-arr": l.fillMapArr,
|
|
13135
|
-
"onUpdate:fillMapArr":
|
|
13198
|
+
"onUpdate:fillMapArr": R[1] || (R[1] = (C) => l.fillMapArr = C),
|
|
13136
13199
|
bordered: "",
|
|
13137
13200
|
"tip-placement": "before",
|
|
13138
13201
|
"rule-tip": t.bizOptions.ruleTip,
|
|
13139
13202
|
"form-field-options": t.bizOptions.formFieldOptions,
|
|
13140
|
-
"form-fields-label":
|
|
13203
|
+
"form-fields-label": S.$t("sys.onlineForm.objectFields"),
|
|
13204
|
+
disabled: !!t.bizOptions.readonly
|
|
13141
13205
|
}, null, 8, [
|
|
13142
13206
|
"parsing-rule-id",
|
|
13143
13207
|
"fill-map-arr",
|
|
13144
13208
|
"rule-tip",
|
|
13145
13209
|
"form-field-options",
|
|
13146
|
-
"form-fields-label"
|
|
13210
|
+
"form-fields-label",
|
|
13211
|
+
"disabled"
|
|
13147
13212
|
])])]),
|
|
13148
13213
|
_: 1
|
|
13149
13214
|
}, 16, [
|
|
@@ -13152,13 +13217,13 @@ var init_index_es = __esmMin((() => {
|
|
|
13152
13217
|
"onCancel"
|
|
13153
13218
|
]));
|
|
13154
13219
|
}
|
|
13155
|
-
}), [["__scopeId", "data-v-
|
|
13156
|
-
|
|
13157
|
-
|
|
13158
|
-
MATERIAL_CONSUME_OBJECT_CONFIG:
|
|
13159
|
-
COMMON_SCAN:
|
|
13160
|
-
BOM_ENTRY_MODAL:
|
|
13161
|
-
PARSE_RULE_MODAL:
|
|
13220
|
+
}), [["__scopeId", "data-v-5de0eafd"]]);
|
|
13221
|
+
Br = { class: "scan-multi-rows-modal__content" };
|
|
13222
|
+
Ur = {
|
|
13223
|
+
MATERIAL_CONSUME_OBJECT_CONFIG: Qi,
|
|
13224
|
+
COMMON_SCAN: _r,
|
|
13225
|
+
BOM_ENTRY_MODAL: Vr,
|
|
13226
|
+
PARSE_RULE_MODAL: zr,
|
|
13162
13227
|
SCAN_MULTI_ROWS_MODAL: /* @__PURE__ */ F$15(/* @__PURE__ */ defineComponent({
|
|
13163
13228
|
__name: "modal",
|
|
13164
13229
|
props: {
|
|
@@ -13169,9 +13234,9 @@ var init_index_es = __esmMin((() => {
|
|
|
13169
13234
|
},
|
|
13170
13235
|
emits: ["afterClose"],
|
|
13171
13236
|
setup(e, { emit: o }) {
|
|
13172
|
-
const t = e, a = o, n = ref(), l = computed(() => (t.bizOptions.rows ?? []).map((
|
|
13173
|
-
...
|
|
13174
|
-
_rowKey: `${
|
|
13237
|
+
const t = e, a = o, n = ref(), l = computed(() => (t.bizOptions.rows ?? []).map((S, R) => ({
|
|
13238
|
+
...S,
|
|
13239
|
+
_rowKey: `${S.materialId ?? ""}_${S.productionIdentificationId ?? ""}_${R}`
|
|
13175
13240
|
}))), s = reactive({
|
|
13176
13241
|
round: !0,
|
|
13177
13242
|
maxHeight: 420,
|
|
@@ -13201,51 +13266,51 @@ var init_index_es = __esmMin((() => {
|
|
|
13201
13266
|
minWidth: 160
|
|
13202
13267
|
}
|
|
13203
13268
|
]
|
|
13204
|
-
}),
|
|
13205
|
-
n.value =
|
|
13269
|
+
}), d = { radioChange({ row: S }) {
|
|
13270
|
+
n.value = S;
|
|
13206
13271
|
} };
|
|
13207
|
-
async function u(
|
|
13208
|
-
const { data: R = {}, dict:
|
|
13272
|
+
async function u(S) {
|
|
13273
|
+
const { data: R = {}, dict: C = {} } = await ke$1.apaas.modelComprehensive.postBizServiceModelCategoryModelKeyBsKey({
|
|
13209
13274
|
modelCategory: "entity",
|
|
13210
13275
|
modelKey: "em_production_identification_lock_record",
|
|
13211
13276
|
bsKey: "biz_get_one_lock_record"
|
|
13212
|
-
}, {}, { production_identification_id_:
|
|
13213
|
-
return `该物料批次已被锁定;锁定人:${
|
|
13277
|
+
}, {}, { production_identification_id_: S });
|
|
13278
|
+
return `该物料批次已被锁定;锁定人:${C.lock_user_id_[R.lock_user_id_]};锁定原因:${R.lock_reason_}`;
|
|
13214
13279
|
}
|
|
13215
|
-
const
|
|
13280
|
+
const r = async () => {
|
|
13216
13281
|
if (!n.value) {
|
|
13217
13282
|
message.error("请选择一条数据");
|
|
13218
13283
|
return;
|
|
13219
13284
|
}
|
|
13220
|
-
const { _rowKey:
|
|
13285
|
+
const { _rowKey: S, productionIdentificationIsLocked: R, productionIdentificationId: C, ...w } = n.value;
|
|
13221
13286
|
if (R) {
|
|
13222
|
-
const g = await u(
|
|
13287
|
+
const g = await u(C);
|
|
13223
13288
|
message.error(g);
|
|
13224
13289
|
return;
|
|
13225
13290
|
}
|
|
13226
|
-
t.modalInst.confirm(
|
|
13291
|
+
t.modalInst.confirm(w);
|
|
13227
13292
|
};
|
|
13228
|
-
return (
|
|
13293
|
+
return (S, R) => (openBlock(), createBlock($e, mergeProps(t.modalProps, {
|
|
13229
13294
|
class: "gct-form-base-modal-scan-multi-rows",
|
|
13230
13295
|
visible: t.modalVisible,
|
|
13231
13296
|
title: "选择物料",
|
|
13232
13297
|
width: 800,
|
|
13233
13298
|
fullscreen: !1,
|
|
13234
13299
|
onCancel: t.modalInst.cancel,
|
|
13235
|
-
onOk:
|
|
13236
|
-
onAfterClose: R[0] || (R[0] = (
|
|
13300
|
+
onOk: r,
|
|
13301
|
+
onAfterClose: R[0] || (R[0] = (C) => a("afterClose"))
|
|
13237
13302
|
}), {
|
|
13238
|
-
default: withCtx(() => [createElementVNode("div",
|
|
13303
|
+
default: withCtx(() => [createElementVNode("div", Br, [createVNode(unref(VxeGrid), mergeProps({
|
|
13239
13304
|
class: "scan-multi-rows-modal__grid default vxetable",
|
|
13240
13305
|
data: l.value,
|
|
13241
13306
|
"max-height": "420px"
|
|
13242
|
-
}, s, toHandlers(
|
|
13307
|
+
}, s, toHandlers(d)), null, 16, ["data"])])]),
|
|
13243
13308
|
_: 1
|
|
13244
13309
|
}, 16, ["visible", "onCancel"]));
|
|
13245
13310
|
}
|
|
13246
13311
|
}), [["__scopeId", "data-v-e048f073"]])
|
|
13247
13312
|
};
|
|
13248
|
-
|
|
13313
|
+
la = /* @__PURE__ */ Object.assign({
|
|
13249
13314
|
"./en-US/sys.ts": /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
13250
13315
|
__proto__: null,
|
|
13251
13316
|
default: {
|
|
@@ -13411,17 +13476,21 @@ var init_index_es = __esmMin((() => {
|
|
|
13411
13476
|
barcodeParsing: "条码解析"
|
|
13412
13477
|
},
|
|
13413
13478
|
model: { warehouse: "仓库" },
|
|
13414
|
-
pageDesigner: { fieldCmp: { location: "库位" } }
|
|
13479
|
+
pageDesigner: { fieldCmp: { location: "库位" } },
|
|
13480
|
+
ScanParamType: {
|
|
13481
|
+
lot: "批次",
|
|
13482
|
+
uniqueCode: "唯一码"
|
|
13483
|
+
}
|
|
13415
13484
|
}
|
|
13416
13485
|
}, Symbol.toStringTag, { value: "Module" }))
|
|
13417
13486
|
});
|
|
13418
|
-
|
|
13487
|
+
Dt = {
|
|
13419
13488
|
"gct-dropdown": { $extend: "dropdown" },
|
|
13420
13489
|
"gct-tooltip": { $extend: "tooltip" },
|
|
13421
13490
|
"gct-tooltip-dark": { $extend: "tooltip" },
|
|
13422
13491
|
"gct-popconfirm": { $extend: "dropdown" }
|
|
13423
13492
|
};
|
|
13424
|
-
|
|
13493
|
+
$r = class {
|
|
13425
13494
|
constructor() {
|
|
13426
13495
|
this.modalMap = /* @__PURE__ */ new Map(), this.idSeed = 0, this.zIndexSeed = 0;
|
|
13427
13496
|
}
|
|
@@ -13430,7 +13499,7 @@ var init_index_es = __esmMin((() => {
|
|
|
13430
13499
|
const o = ((_this$antdConfigGette = this.antdConfigGetter) === null || _this$antdConfigGette === void 0 ? void 0 : _this$antdConfigGette.call(this)) ?? {};
|
|
13431
13500
|
return {
|
|
13432
13501
|
...o,
|
|
13433
|
-
getPopupContainer: o.getPopupContainer
|
|
13502
|
+
getPopupContainer: (t) => Gr(t, o.getPopupContainer)
|
|
13434
13503
|
};
|
|
13435
13504
|
}
|
|
13436
13505
|
/**
|
|
@@ -13448,25 +13517,25 @@ var init_index_es = __esmMin((() => {
|
|
|
13448
13517
|
* overlay 短命 app 再次 install 时不覆盖首次写入的 context / getAntdConfig。
|
|
13449
13518
|
*/
|
|
13450
13519
|
install(o, t) {
|
|
13451
|
-
|
|
13520
|
+
ra(o), ua(o), ca(o), t !== null && t !== void 0 && t.getAntdConfig && !this.antdConfigGetter && (this.antdConfigGetter = t.getAntdConfig), this.appContext || (this.appContext = o._context);
|
|
13452
13521
|
}
|
|
13453
13522
|
open(o, t, a = {}) {
|
|
13454
|
-
const n =
|
|
13523
|
+
const n = Ur[o];
|
|
13455
13524
|
if (!n) return Promise.reject(/* @__PURE__ */ new Error(`[FormBaseModal] 未找到弹框组件:${String(o)}`));
|
|
13456
|
-
const l = `form-base-modal-${++this.idSeed}`, s = reactive({ visible: !0 }),
|
|
13525
|
+
const l = `form-base-modal-${++this.idSeed}`, s = reactive({ visible: !0 }), d = {
|
|
13457
13526
|
...a,
|
|
13458
13527
|
zIndex: a.zIndex ?? 1e3 + ++this.zIndexSeed * 2
|
|
13459
13528
|
};
|
|
13460
|
-
return new Promise((u,
|
|
13461
|
-
let
|
|
13462
|
-
const g = (
|
|
13463
|
-
|
|
13464
|
-
},
|
|
13529
|
+
return new Promise((u, r) => {
|
|
13530
|
+
let S = !1, R = !1, C = !1, w;
|
|
13531
|
+
const g = (y) => {
|
|
13532
|
+
S || (S = !0, R = !0, s.visible = !1, u(y));
|
|
13533
|
+
}, b = {
|
|
13465
13534
|
id: l,
|
|
13466
|
-
confirm(
|
|
13535
|
+
confirm(y) {
|
|
13467
13536
|
g({
|
|
13468
13537
|
success: !0,
|
|
13469
|
-
result:
|
|
13538
|
+
result: y
|
|
13470
13539
|
});
|
|
13471
13540
|
},
|
|
13472
13541
|
cancel() {
|
|
@@ -13476,17 +13545,17 @@ var init_index_es = __esmMin((() => {
|
|
|
13476
13545
|
});
|
|
13477
13546
|
}
|
|
13478
13547
|
}, h$2 = async () => {
|
|
13479
|
-
if (
|
|
13480
|
-
|
|
13481
|
-
const
|
|
13482
|
-
|
|
13548
|
+
if (C) return;
|
|
13549
|
+
C = !0, this.modalMap.delete(l);
|
|
13550
|
+
const y = w;
|
|
13551
|
+
w = void 0, y && await y.destroy();
|
|
13483
13552
|
}, p = () => this.resolveAntdConfig(), _ = defineComponent({
|
|
13484
13553
|
name: "FormBaseModalRoot",
|
|
13485
13554
|
setup() {
|
|
13486
13555
|
return () => h(ConfigProvider, p(), { default: () => h(n, {
|
|
13487
13556
|
modalVisible: s.visible,
|
|
13488
|
-
modalProps:
|
|
13489
|
-
modalInst:
|
|
13557
|
+
modalProps: d,
|
|
13558
|
+
modalInst: b,
|
|
13490
13559
|
bizOptions: t,
|
|
13491
13560
|
onAfterClose: h$2
|
|
13492
13561
|
}) });
|
|
@@ -13494,13 +13563,13 @@ var init_index_es = __esmMin((() => {
|
|
|
13494
13563
|
});
|
|
13495
13564
|
this.modalMap.set(l, {
|
|
13496
13565
|
id: l,
|
|
13497
|
-
cancel:
|
|
13566
|
+
cancel: b.cancel,
|
|
13498
13567
|
isClosing: () => R
|
|
13499
13568
|
});
|
|
13500
13569
|
try {
|
|
13501
|
-
|
|
13502
|
-
} catch (
|
|
13503
|
-
this.modalMap.delete(l),
|
|
13570
|
+
w = Er(_, this.appContext, l);
|
|
13571
|
+
} catch (y) {
|
|
13572
|
+
this.modalMap.delete(l), r(y);
|
|
13504
13573
|
}
|
|
13505
13574
|
});
|
|
13506
13575
|
}
|
|
@@ -13519,13 +13588,13 @@ var init_index_es = __esmMin((() => {
|
|
|
13519
13588
|
return this.modalMap.size;
|
|
13520
13589
|
}
|
|
13521
13590
|
};
|
|
13522
|
-
|
|
13591
|
+
Mt = new $r();
|
|
13523
13592
|
Wu = { install(e, o) {
|
|
13524
|
-
|
|
13593
|
+
Mt.install(e, o);
|
|
13525
13594
|
} };
|
|
13526
13595
|
}));
|
|
13527
13596
|
//#endregion
|
|
13528
|
-
//#region ../../node_modules/.pnpm/@gct-paas+form-base@0.1.1-beta.
|
|
13597
|
+
//#region ../../node_modules/.pnpm/@gct-paas+form-base@0.1.1-beta.7_@gct-paas+api@0.1.0-word.11_axios@1.13.2__@vueuse+core_c73adcd47be639871007a6ae93e0abb7/node_modules/@gct-paas/form-base/dist/form-base.css
|
|
13529
13598
|
init_index_es();
|
|
13530
13599
|
//#endregion
|
|
13531
13600
|
//#region src/sdk/setup.ts
|
|
@@ -13589,7 +13658,7 @@ function setupVueRuntime(options) {
|
|
|
13589
13658
|
const { app } = options;
|
|
13590
13659
|
preloadDocumentFonts();
|
|
13591
13660
|
app.use(Wu);
|
|
13592
|
-
app.use(
|
|
13661
|
+
app.use(St, { themes: {
|
|
13593
13662
|
"gct-tooltip": {
|
|
13594
13663
|
$extend: "tooltip",
|
|
13595
13664
|
$resetCss: true
|
|
@@ -102367,7 +102436,7 @@ async function openScanWithParseRule(options) {
|
|
|
102367
102436
|
const parseRuleProps = toParseRuleConfig$1(barcodeParsingRulesId);
|
|
102368
102437
|
scanningRegionIds.add(regionId);
|
|
102369
102438
|
try {
|
|
102370
|
-
await
|
|
102439
|
+
await Zr("COMMON_SCAN", {
|
|
102371
102440
|
title: title || "操作",
|
|
102372
102441
|
ruleTip: "扫码解析后按字段映射写入表单",
|
|
102373
102442
|
formFieldOptions: formFieldOptions ?? [],
|
|
@@ -102430,7 +102499,7 @@ async function matchProductionIdentificationScanRecords(parsed) {
|
|
|
102430
102499
|
/** 多条候选 → 公共多选弹框 */
|
|
102431
102500
|
async function pickProductionIdentificationScanRecord(records) {
|
|
102432
102501
|
if (records.length === 1) return records[0];
|
|
102433
|
-
const { success, result } = await
|
|
102502
|
+
const { success, result } = await Zr("SCAN_MULTI_ROWS_MODAL", { rows: records.map((record) => ({
|
|
102434
102503
|
...record,
|
|
102435
102504
|
productId: record.product_id_name_ ?? record.product_id_code_,
|
|
102436
102505
|
materialNo: record.material_no_ ?? record.name_
|
|
@@ -102476,7 +102545,7 @@ async function matchInventoryScanRecords(parsed, warehouseId) {
|
|
|
102476
102545
|
/** 多条候选 → 公共多选弹框 */
|
|
102477
102546
|
async function pickInventoryScanRecord(records) {
|
|
102478
102547
|
if (records.length === 1) return records[0];
|
|
102479
|
-
const { success, result } = await
|
|
102548
|
+
const { success, result } = await Zr("SCAN_MULTI_ROWS_MODAL", { rows: records.map((record) => ({
|
|
102480
102549
|
...record,
|
|
102481
102550
|
productId: record.product_id_name_ ?? record.product_id_code_,
|
|
102482
102551
|
materialNo: record.material_no_ ?? record.name_
|
|
@@ -126297,7 +126366,7 @@ var init_material_consume_table_controller = __esmMin((() => {
|
|
|
126297
126366
|
}
|
|
126298
126367
|
let materialData = arr[0];
|
|
126299
126368
|
if (arr.length > 1) {
|
|
126300
|
-
const { success, result } = await
|
|
126369
|
+
const { success, result } = await Zr("SCAN_MULTI_ROWS_MODAL", { rows: arr });
|
|
126301
126370
|
if (!success) return;
|
|
126302
126371
|
materialData = result;
|
|
126303
126372
|
} else if (materialData === null || materialData === void 0 ? void 0 : materialData.productionIdentificationIsLocked) {
|
|
@@ -126331,7 +126400,7 @@ var init_material_consume_table_controller = __esmMin((() => {
|
|
|
126331
126400
|
async openScanModal(title, option) {
|
|
126332
126401
|
if (this.isScanOpen) return;
|
|
126333
126402
|
this.isScanOpen = true;
|
|
126334
|
-
await
|
|
126403
|
+
await Zr("COMMON_SCAN", {
|
|
126335
126404
|
title,
|
|
126336
126405
|
ruleTip: "扫码解析后按字段映射写入表单",
|
|
126337
126406
|
formFieldOptions: option.subFieldOptions,
|
|
@@ -135062,7 +135131,7 @@ function useDocumentFactory(props, payload) {
|
|
|
135062
135131
|
clear();
|
|
135063
135132
|
return;
|
|
135064
135133
|
}
|
|
135065
|
-
if (docIns.value)
|
|
135134
|
+
if (docIns.value) Lu();
|
|
135066
135135
|
try {
|
|
135067
135136
|
const response = await runFetchDocument(newRequestId);
|
|
135068
135137
|
if (!response) return;
|
|
@@ -135175,12 +135244,12 @@ function useDocumentFactory(props, payload) {
|
|
|
135175
135244
|
}
|
|
135176
135245
|
const hasData = computed(() => docIns.value !== null);
|
|
135177
135246
|
function clear() {
|
|
135178
|
-
|
|
135247
|
+
Lu();
|
|
135179
135248
|
docIns.value = null;
|
|
135180
135249
|
docInfo.value = snapshotDocInfo();
|
|
135181
135250
|
}
|
|
135182
135251
|
onBeforeUnmount(() => {
|
|
135183
|
-
|
|
135252
|
+
Lu();
|
|
135184
135253
|
});
|
|
135185
135254
|
return {
|
|
135186
135255
|
docIns,
|
|
@@ -142007,7 +142076,7 @@ var init_overlay_render_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
142007
142076
|
objectParseRules = { parsingRuleId: objectBom.barcode_parsing_rules_id_ };
|
|
142008
142077
|
}
|
|
142009
142078
|
const objectFields = fieldList.value.filter((item) => item.belongingObject === belongingObject);
|
|
142010
|
-
await
|
|
142079
|
+
await Zr("COMMON_SCAN", {
|
|
142011
142080
|
title: "扫码录入",
|
|
142012
142081
|
ruleTip: "扫码解析后按字段映射写入表单",
|
|
142013
142082
|
scanRules: objectParseRules,
|
|
@@ -142034,7 +142103,7 @@ var init_overlay_render_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
142034
142103
|
if (!rows.length) throw new Error("匹配不到对应物料,请按规则上料或新增物料");
|
|
142035
142104
|
let material = rows[0];
|
|
142036
142105
|
if (rows.length > 1) {
|
|
142037
|
-
const selected = await
|
|
142106
|
+
const selected = await Zr("SCAN_MULTI_ROWS_MODAL", { rows });
|
|
142038
142107
|
if (!selected.success) return;
|
|
142039
142108
|
material = selected.result;
|
|
142040
142109
|
} else if (material.productionIdentificationIsLocked) throw new Error(await getLotLockedReason(material.productionIdentificationId));
|
|
@@ -160406,7 +160475,7 @@ var parse_rule_add_btn_vue_vue_type_script_setup_true_name_parse_rule_add_btn_la
|
|
|
160406
160475
|
label: name,
|
|
160407
160476
|
value: key
|
|
160408
160477
|
}));
|
|
160409
|
-
|
|
160478
|
+
Zr("PARSE_RULE_MODAL", {
|
|
160410
160479
|
config: props.modelValue,
|
|
160411
160480
|
formFieldOptions: subFieldOptions,
|
|
160412
160481
|
ruleTip: "默认条码映射字段:条码批次映射批次字段,条码物料编码映射物料编码字段,条码有效期映射有效期字段"
|
|
@@ -160590,7 +160659,7 @@ var bom_entry_editor_vue_vue_type_script_setup_true_name_bom_entry_editor_lang_d
|
|
|
160590
160659
|
};
|
|
160591
160660
|
/** 编辑 */
|
|
160592
160661
|
const edit = async (data) => {
|
|
160593
|
-
|
|
160662
|
+
Zr("BOM_ENTRY_MODAL", {
|
|
160594
160663
|
data: cloneDeep(data),
|
|
160595
160664
|
hasIds: calcHasProductIds(data),
|
|
160596
160665
|
openFormulaEditor,
|
|
@@ -160601,7 +160670,7 @@ var bom_entry_editor_vue_vue_type_script_setup_true_name_bom_entry_editor_lang_d
|
|
|
160601
160670
|
};
|
|
160602
160671
|
/** 添加 */
|
|
160603
160672
|
const add = async () => {
|
|
160604
|
-
|
|
160673
|
+
Zr("BOM_ENTRY_MODAL", {
|
|
160605
160674
|
hasIds: calcHasProductIds(),
|
|
160606
160675
|
openFormulaEditor,
|
|
160607
160676
|
showConsumePolicy: showConsumePolicy.value
|
|
@@ -163423,7 +163492,7 @@ var object_init_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defi
|
|
|
163423
163492
|
return;
|
|
163424
163493
|
}
|
|
163425
163494
|
const { allFields, objectFields } = baseParam.value;
|
|
163426
|
-
|
|
163495
|
+
Zr("MATERIAL_CONSUME_OBJECT_CONFIG", {
|
|
163427
163496
|
allFields,
|
|
163428
163497
|
objectFields: objectFields.filter((f) => !filledObjectFieldKeys.value.includes(f.key)),
|
|
163429
163498
|
RenderFieldWrapper,
|
|
@@ -163438,7 +163507,7 @@ var object_init_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defi
|
|
|
163438
163507
|
console.error("未找到字段渲染组件");
|
|
163439
163508
|
return;
|
|
163440
163509
|
}
|
|
163441
|
-
|
|
163510
|
+
Zr("MATERIAL_CONSUME_OBJECT_CONFIG", {
|
|
163442
163511
|
...baseParam.value,
|
|
163443
163512
|
editingItem: obj,
|
|
163444
163513
|
RenderFieldWrapper,
|