@gct-paas/word 0.2.24-beta.2 → 0.2.24-beta.3
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
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @gct-paas/word v0.2.24-beta.
|
|
1
|
+
/*! @gct-paas/word v0.2.24-beta.3 */
|
|
2
2
|
import { Fragment, Suspense, Teleport, Transition, TransitionGroup, cloneVNode, computed, createApp, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createStaticVNode, createTextVNode, createVNode, defineAsyncComponent, defineComponent, getCurrentInstance, getCurrentScope, guardReactiveProps, h, inject, isRef, isVNode, markRaw, mergeModels, mergeProps, nextTick, normalizeClass, normalizeProps, normalizeStyle, onBeforeMount, onBeforeUnmount, onMounted, onScopeDispose, onUnmounted, openBlock, provide, reactive, readonly, ref, render, renderList, renderSlot, resolveComponent, resolveDynamicComponent, shallowReactive, shallowRef, toDisplayString, toHandlers, toRaw, toRef, toValue, unref, useAttrs, useCssVars, useModel, useSlots, vModelRadio, vModelSelect, vModelText, vShow, watch, watchEffect, withCtx, withDirectives, withKeys, withModifiers } from "vue";
|
|
3
3
|
import fa, { PopperWrapper } from "floating-vue";
|
|
4
4
|
import VueKonva from "vue-konva";
|
|
@@ -9486,7 +9486,7 @@ var init_base$2 = __esmMin((() => {
|
|
|
9486
9486
|
//#region ../../node_modules/.pnpm/floating-vue@5.2.2_vue@3.5.24_typescript@5.9.3_/node_modules/floating-vue/dist/style.css
|
|
9487
9487
|
var init_style = __esmMin((() => {}));
|
|
9488
9488
|
//#endregion
|
|
9489
|
-
//#region ../../node_modules/.pnpm/@gct-paas+form-base@0.1.6-beta.
|
|
9489
|
+
//#region ../../node_modules/.pnpm/@gct-paas+form-base@0.1.6-beta.2_@gct-paas+api@6.2.0-dev.2_axios@1.13.2__@vueuse+core@1_6a1ae50cf028719a9f9d87a9352ec69c/node_modules/@gct-paas/form-base/dist/_commonjsHelpers-DaMA6jEr.js
|
|
9490
9490
|
function l$1(e) {
|
|
9491
9491
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
9492
9492
|
}
|
|
@@ -9495,7 +9495,7 @@ var init__commonjsHelpers_DaMA6jEr = __esmMin((() => {
|
|
|
9495
9495
|
o = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
9496
9496
|
}));
|
|
9497
9497
|
//#endregion
|
|
9498
|
-
//#region ../../node_modules/.pnpm/@gct-paas+form-base@0.1.6-beta.
|
|
9498
|
+
//#region ../../node_modules/.pnpm/@gct-paas+form-base@0.1.6-beta.2_@gct-paas+api@6.2.0-dev.2_axios@1.13.2__@vueuse+core@1_6a1ae50cf028719a9f9d87a9352ec69c/node_modules/@gct-paas/form-base/dist/mysql-xjL-BUMC.js
|
|
9499
9499
|
var mysql_xjL_BUMC_exports = /* @__PURE__ */ __exportAll({ m: () => Iy });
|
|
9500
9500
|
function Ey(Cr, Qt) {
|
|
9501
9501
|
for (var ue = 0; ue < Qt.length; ue++) {
|
|
@@ -18612,7 +18612,7 @@ var init_mysql_xjL_BUMC = __esmMin((() => {
|
|
|
18612
18612
|
Iy = /* @__PURE__ */ Ey({ __proto__: null }, [gy()]);
|
|
18613
18613
|
}));
|
|
18614
18614
|
//#endregion
|
|
18615
|
-
//#region ../../node_modules/.pnpm/@gct-paas+form-base@0.1.6-beta.
|
|
18615
|
+
//#region ../../node_modules/.pnpm/@gct-paas+form-base@0.1.6-beta.2_@gct-paas+api@6.2.0-dev.2_axios@1.13.2__@vueuse+core@1_6a1ae50cf028719a9f9d87a9352ec69c/node_modules/@gct-paas/form-base/dist/script-parser-DwzD37Rn.js
|
|
18616
18616
|
var script_parser_DwzD37Rn_exports = /* @__PURE__ */ __exportAll({
|
|
18617
18617
|
parseScriptReturnFields: () => Cs$1,
|
|
18618
18618
|
validateScriptSyntax: () => ws
|
|
@@ -23612,7 +23612,7 @@ var init_script_parser_DwzD37Rn = __esmMin((() => {
|
|
|
23612
23612
|
]);
|
|
23613
23613
|
}));
|
|
23614
23614
|
//#endregion
|
|
23615
|
-
//#region ../../node_modules/.pnpm/@gct-paas+form-base@0.1.6-beta.
|
|
23615
|
+
//#region ../../node_modules/.pnpm/@gct-paas+form-base@0.1.6-beta.2_@gct-paas+api@6.2.0-dev.2_axios@1.13.2__@vueuse+core@1_6a1ae50cf028719a9f9d87a9352ec69c/node_modules/@gct-paas/form-base/dist/index.es.js
|
|
23616
23616
|
function Ho() {
|
|
23617
23617
|
if (typeof globalThis < "u") {
|
|
23618
23618
|
const e = globalThis._api;
|
|
@@ -24422,7 +24422,7 @@ function Ra(e) {
|
|
|
24422
24422
|
error: e instanceof Error ? e.message : String(e)
|
|
24423
24423
|
};
|
|
24424
24424
|
}
|
|
24425
|
-
function
|
|
24425
|
+
function Bp(e) {
|
|
24426
24426
|
const o = shallowReactive(/* @__PURE__ */ Object.create(null)), t = readonly(o);
|
|
24427
24427
|
for (const c of e.sources) o[c.key] = { status: "idle" };
|
|
24428
24428
|
const a = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map(), l = /* @__PURE__ */ new Map();
|
|
@@ -24560,7 +24560,7 @@ function nt(e, o) {
|
|
|
24560
24560
|
"prototype"
|
|
24561
24561
|
].includes(t) && a !== void 0 && (e[t] = a);
|
|
24562
24562
|
}
|
|
24563
|
-
function
|
|
24563
|
+
function Fp(e) {
|
|
24564
24564
|
const o = Qe(e.instance), t = Qe(e.template ?? (o.tmplId || o.tmpl_id_ ? void 0 : o)), a = Qe(o.params ?? o.params_), n = e.parameters ?? {}, l = {};
|
|
24565
24565
|
for (const f of Vt()) o[f.key] !== void 0 && (l[f.key] = o[f.key]);
|
|
24566
24566
|
return nt(l, {
|
|
@@ -24571,12 +24571,12 @@ function Bp(e) {
|
|
|
24571
24571
|
materialNo: o.materialNo ?? o.material_no_
|
|
24572
24572
|
}), nt(l, a), nt(l, Qe(o.txnConfig)), nt(l, Qe(a.txnConfig)), nt(l, Qe(n.txnConfig)), nt(l, n), l.batchNo === void 0 && l.materialNo !== void 0 && (l.batchNo = l.materialNo), l;
|
|
24573
24573
|
}
|
|
24574
|
-
function
|
|
24574
|
+
function gf(e, o) {
|
|
24575
24575
|
if (!Array.isArray(e)) return;
|
|
24576
24576
|
const t = e.filter((a) => !(a === null || a === void 0 ? void 0 : a.deleted_)).map((a) => get(a, o));
|
|
24577
24577
|
return t.every(yf) ? void 0 : t;
|
|
24578
24578
|
}
|
|
24579
|
-
function
|
|
24579
|
+
function _f(e, o, t, a = !1) {
|
|
24580
24580
|
const n = Array.isArray(e) ? cloneDeep(e) : [], l = a && Array.isArray(t) ? t : [t], s = n.flatMap((f, i) => f.deleted_ ? [] : [i]);
|
|
24581
24581
|
return l.forEach((f, i) => {
|
|
24582
24582
|
const r = s[i] ?? n.length, k = n[r] ?? {};
|
|
@@ -24598,18 +24598,31 @@ function fo(e, o) {
|
|
|
24598
24598
|
return Array.isArray(i) ? i : [];
|
|
24599
24599
|
}) : a.map((f) => get(f, n));
|
|
24600
24600
|
}
|
|
24601
|
-
function
|
|
24601
|
+
function Np(e, o, t) {
|
|
24602
|
+
if (!Array.isArray(o) || o.some((n) => !n || typeof n != "object" || Array.isArray(n) || Object.getPrototypeOf(n) !== Object.prototype)) throw new Error("子表填充来源必须是对象数组");
|
|
24603
|
+
let a = Array.isArray(e) ? cloneDeep(e) : [];
|
|
24604
|
+
if (!o.length) return a;
|
|
24605
|
+
for (const [n, l] of t) {
|
|
24606
|
+
const s = o.map((f) => Object.hasOwn(f, n) ? f[n] : void 0);
|
|
24607
|
+
s.some((f) => f !== void 0) && (a = _f(a, l, s, !0));
|
|
24608
|
+
}
|
|
24609
|
+
return a;
|
|
24610
|
+
}
|
|
24611
|
+
function Up(e, o) {
|
|
24612
|
+
return [...o.values()].every((t) => gf(e, t) === void 0) ? void 0 : e;
|
|
24613
|
+
}
|
|
24614
|
+
function hf(e, o) {
|
|
24602
24615
|
if (e.source.type !== "form" || e.trigger !== "sourceChange") return !1;
|
|
24603
24616
|
const t = o.filter((s) => s.source.type === "form" && s.trigger === "sourceChange"), a = (s, f) => s === f || s.startsWith(`${f}.`) || f.startsWith(`${s}.`), n = /* @__PURE__ */ new Set(), l = (s) => a(s, e.source.fieldKey) ? !0 : n.has(s) ? !1 : (n.add(s), t.some((f) => a(f.source.fieldKey, s) && l(f.targetFieldKey)));
|
|
24604
24617
|
return l(e.targetFieldKey);
|
|
24605
24618
|
}
|
|
24606
|
-
function
|
|
24619
|
+
function Ip(e) {
|
|
24607
24620
|
var _e$subscribeForm;
|
|
24608
24621
|
const o = shallowReactive(/* @__PURE__ */ Object.create(null)), t = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set();
|
|
24609
24622
|
let l = !1, s = !1, f = !1;
|
|
24610
24623
|
const i = ref(0), r = () => {
|
|
24611
24624
|
l || i.value++;
|
|
24612
|
-
}, k = (_e$subscribeForm = e.subscribeForm) === null || _e$subscribeForm === void 0 ? void 0 : _e$subscribeForm.call(e, r), x = e.fills.flatMap((d) =>
|
|
24625
|
+
}, k = (_e$subscribeForm = e.subscribeForm) === null || _e$subscribeForm === void 0 ? void 0 : _e$subscribeForm.call(e, r), x = e.fills.flatMap((d) => hf(d, e.fills) ? (o[d.id] = `字段填充存在循环引用:${d.source.fieldKey} → ${d.targetFieldKey}`, []) : [watch(() => {
|
|
24613
24626
|
i.value;
|
|
24614
24627
|
try {
|
|
24615
24628
|
var _e$getContext;
|
|
@@ -24714,14 +24727,14 @@ function Np(e) {
|
|
|
24714
24727
|
}
|
|
24715
24728
|
};
|
|
24716
24729
|
}
|
|
24717
|
-
function
|
|
24730
|
+
function Kp(e) {
|
|
24718
24731
|
const o = /* @__PURE__ */ new Set();
|
|
24719
24732
|
for (const t of e.paramsMapList ?? []) t.field && o.add(t.subModel && t.subFieldKey ? `${t.subFieldKey}.${t.field}` : t.field);
|
|
24720
24733
|
for (const t of e.parameterMapping ?? []) for (const a of t.toFields ?? []) a.field && o.add(t.subModel && t.subFieldKey ? `${t.subFieldKey}.${a.field}` : a.field);
|
|
24721
24734
|
for (const t of e.customDataSource ?? []) for (const a of t.onFieldMap ?? []) for (const n of a.fields ?? []) n.leftFieldKey && o.add(a.subModel && a.subFieldKey ? `${a.subFieldKey}.${n.leftFieldKey}` : n.leftFieldKey);
|
|
24722
24735
|
return o;
|
|
24723
24736
|
}
|
|
24724
|
-
function
|
|
24737
|
+
function Ep(e, o, t = (a) => a) {
|
|
24725
24738
|
const a = (l) => toPath(t(l).replace(/^\$\.?/, "")), n = a(e);
|
|
24726
24739
|
if (!n.length) return !0;
|
|
24727
24740
|
for (const l of o) {
|
|
@@ -24742,8 +24755,8 @@ function Ze(e, o) {
|
|
|
24742
24755
|
for (let l = 0; l < e; l++) a[l] = t[0 | Math.random() * n];
|
|
24743
24756
|
return a.join("");
|
|
24744
24757
|
}
|
|
24745
|
-
async function
|
|
24746
|
-
return (await
|
|
24758
|
+
async function Zf(e) {
|
|
24759
|
+
return (await Wf({
|
|
24747
24760
|
bsKey: "rdoGetVersionById",
|
|
24748
24761
|
modelKey: "em_barcode_parsing_rules",
|
|
24749
24762
|
modelCategory: "entity"
|
|
@@ -24757,7 +24770,7 @@ function vo(e) {
|
|
|
24757
24770
|
o.key || (o.key = o.type === gt.other ? Ze(32) : o.type);
|
|
24758
24771
|
}), e;
|
|
24759
24772
|
}
|
|
24760
|
-
function
|
|
24773
|
+
function Gf(e, o) {
|
|
24761
24774
|
if (!o) throw new Error("请传入解析规则");
|
|
24762
24775
|
const { separator: n, nullSymbol: l, fieldList: s } = vo(JSON.parse(o));
|
|
24763
24776
|
return e.split(n).reduce((i, r, k) => {
|
|
@@ -24777,11 +24790,11 @@ function Wf(e, o) {
|
|
|
24777
24790
|
return i;
|
|
24778
24791
|
}, {});
|
|
24779
24792
|
}
|
|
24780
|
-
async function
|
|
24781
|
-
const o = await
|
|
24793
|
+
async function Xf(e) {
|
|
24794
|
+
const o = await Zf({ id: e });
|
|
24782
24795
|
if (o === null || o === void 0 ? void 0 : o.rules_) return vo(JSON.parse(o.rules_));
|
|
24783
24796
|
}
|
|
24784
|
-
function
|
|
24797
|
+
function Jf(e, o) {
|
|
24785
24798
|
const t = {};
|
|
24786
24799
|
return o !== null && o !== void 0 && o.length && o.forEach((a) => {
|
|
24787
24800
|
const n = a.barcodeField;
|
|
@@ -24803,7 +24816,7 @@ function _o(e, o = "") {
|
|
|
24803
24816
|
}
|
|
24804
24817
|
return t;
|
|
24805
24818
|
}
|
|
24806
|
-
function
|
|
24819
|
+
function F2(e = "zh-CN") {
|
|
24807
24820
|
const o = {};
|
|
24808
24821
|
for (const [t, a] of Object.entries(go)) {
|
|
24809
24822
|
const n = t.match(/^\.\/(?:([^/]+)\/)?([^/]+)\.ts$/);
|
|
@@ -24813,14 +24826,14 @@ function B2(e = "zh-CN") {
|
|
|
24813
24826
|
}
|
|
24814
24827
|
return o;
|
|
24815
24828
|
}
|
|
24816
|
-
function
|
|
24829
|
+
function D2(e, o) {
|
|
24817
24830
|
return !o || typeof o != "object" ? e : Object.keys(o).reduce((t, a) => t.replace(new RegExp(`\\{${a}\\}`, "g"), String(o[a])), e);
|
|
24818
24831
|
}
|
|
24819
24832
|
function ia(e = "zh-CN", o) {
|
|
24820
|
-
const t =
|
|
24833
|
+
const t = F2(e);
|
|
24821
24834
|
return (a, ...n) => {
|
|
24822
24835
|
const l = n[0] && typeof n[0] == "object" ? n[0] : void 0, s = t[a];
|
|
24823
|
-
if (s != null) return
|
|
24836
|
+
if (s != null) return D2(s, l);
|
|
24824
24837
|
if (o) {
|
|
24825
24838
|
const f = o(a, ...n);
|
|
24826
24839
|
if (f != null && f !== a) return String(f);
|
|
@@ -24845,7 +24858,7 @@ function bo(e, o = "zh-CN") {
|
|
|
24845
24858
|
const a = ia(o, typeof window.$t == "function" ? window.$t.bind(window) : null);
|
|
24846
24859
|
return window.$t = a, e.config.globalProperties.$t = a, a;
|
|
24847
24860
|
}
|
|
24848
|
-
function
|
|
24861
|
+
function N2(e, o = "zh-CN") {
|
|
24849
24862
|
var _e$config5;
|
|
24850
24863
|
const t = e === null || e === void 0 || (_e$config5 = e.config) === null || _e$config5 === void 0 ? void 0 : _e$config5.globalProperties;
|
|
24851
24864
|
if (typeof (t === null || t === void 0 ? void 0 : t.$t) == "function") return typeof window.$t != "function" && (window.$t = t.$t), t.$t;
|
|
@@ -24864,7 +24877,7 @@ function ko(e) {
|
|
|
24864
24877
|
function Co(e) {
|
|
24865
24878
|
ko(e._context) || e.use(Ha);
|
|
24866
24879
|
}
|
|
24867
|
-
function
|
|
24880
|
+
function U2(e) {
|
|
24868
24881
|
if (ko(e)) return;
|
|
24869
24882
|
const o = {
|
|
24870
24883
|
component(t, a) {
|
|
@@ -24879,17 +24892,17 @@ function D2(e) {
|
|
|
24879
24892
|
};
|
|
24880
24893
|
Ha.install(o);
|
|
24881
24894
|
}
|
|
24882
|
-
function
|
|
24895
|
+
function I2(e, o) {
|
|
24883
24896
|
return (e === null || e === void 0 ? void 0 : e.closest(".ant-modal-content")) || (typeof o == "function" ? o(e) : document.body);
|
|
24884
24897
|
}
|
|
24885
|
-
function
|
|
24898
|
+
function K2() {
|
|
24886
24899
|
return st || (st = createApp({ name: "FormBaseModalFallbackApp" }), bo(st), wo(st), Co(st)), st._context;
|
|
24887
24900
|
}
|
|
24888
|
-
function
|
|
24901
|
+
function E2(e, o, t) {
|
|
24889
24902
|
const a = document.createElement("div");
|
|
24890
24903
|
a.className = "gct-form-base-modal-node", t && (a.dataset.modalId = t), document.body.appendChild(a);
|
|
24891
|
-
const n = createVNode(e), l = o ??
|
|
24892
|
-
|
|
24904
|
+
const n = createVNode(e), l = o ?? K2();
|
|
24905
|
+
N2(l), U2(l), n.appContext = l, render(n, a);
|
|
24893
24906
|
let s = !1, f = !1;
|
|
24894
24907
|
async function i() {
|
|
24895
24908
|
if (!(s || f)) {
|
|
@@ -24903,13 +24916,13 @@ function I2(e, o, t) {
|
|
|
24903
24916
|
}
|
|
24904
24917
|
return { destroy: i };
|
|
24905
24918
|
}
|
|
24906
|
-
function
|
|
24919
|
+
function P2(e, o, t) {
|
|
24907
24920
|
return ua.open(e, o, t);
|
|
24908
24921
|
}
|
|
24909
|
-
function
|
|
24922
|
+
function jp() {
|
|
24910
24923
|
ua.closeAll();
|
|
24911
24924
|
}
|
|
24912
|
-
var ie, oa, Pa, ja, an, G$1, ut, sl, rl, il, ul, dl, ae, Pe, Ql, Yl, es, ts, os, ns, Wt, Et, ks, xs, As, Os, Ts, et, Mr, Rr, Ar, Or, Tr, qr, Lr, $r, Br, zr, wa, Dr, ka, Nr, Ca, Er, Hr, Pr, jr, Wr, Zr, Gr, Xr, Jr, Qr, Yr, ei, ti, na, zi, Fi, Di, Ni, Ui, Ii, Ki, Ei, Hi, Pi, Zt, Wi, Zi, Gi, Xi, ve, Qi, eu, We, Ye, yt, tu, au, ct, nu, lu, su, ru, iu, uu, cu, du, fu, pu, mu, vu, yu, gu, _u, hu, bu, wu, ku, Cu, xu, Su, Mu, Au, Ou, Tu, qu, Vu, Lu, $u, Bu, zu, Fu, Du, Nu, Uu, Iu, Ku, Eu, Pu, Wu, Zu, Gu, Xu, Ju, Qu, Yu, ec, ac, nc, lc, sc, rc, ic, uc, cc, dc, fc, mc, vc, yc, gc, _c, hc, bc, kc, Cc, ao, oo, lo, so, ro, Sc, Rc, Ac, Tc, qc, Lc, Bc, Fc, Dc, Nc, Uc, Ic, Kc, Hc, Pc, Qc, Yc, ed, td, ad, od, nd, ld, sd, rd, id, ud, cd, dd, fd, pd, md, vd, Gt, gd, _d, hd, bd, wd, kd, Cd, xd, Sd, Md, Rd, Ad, Od, Td, qd, Vd, Ld, $d, Bd, zd, Fd, Dd, Nd, Ud, Id, Kd,
|
|
24925
|
+
var ie, oa, Pa, ja, an, G$1, ut, sl, rl, il, ul, dl, ae, Pe, Ql, Yl, es, ts, os, ns, Wt, Et, ks, xs, As, Os, Ts, et, Mr, Rr, Ar, Or, Tr, qr, Lr, $r, Br, zr, wa, Dr, ka, Nr, Ca, Er, Hr, Pr, jr, Wr, Zr, Gr, Xr, Jr, Qr, Yr, ei, ti, na, zi, Fi, Di, Ni, Ui, Ii, Ki, Ei, Hi, Pi, Zt, Wi, Zi, Gi, Xi, ve, Qi, eu, We, Ye, yt, tu, au, ct, nu, lu, su, ru, iu, uu, cu, du, fu, pu, mu, vu, yu, gu, _u, hu, bu, wu, ku, Cu, xu, Su, Mu, Au, Ou, Tu, qu, Vu, Lu, $u, Bu, zu, Fu, Du, Nu, Uu, Iu, Ku, Eu, Pu, Wu, Zu, Gu, Xu, Ju, Qu, Yu, ec, ac, nc, lc, sc, rc, ic, uc, cc, dc, fc, mc, vc, yc, gc, _c, hc, bc, kc, Cc, ao, oo, lo, so, ro, Sc, Rc, Ac, Tc, qc, Lc, Bc, Fc, Dc, Nc, Uc, Ic, Kc, Hc, Pc, Qc, Yc, ed, td, ad, od, nd, ld, sd, rd, id, ud, cd, dd, fd, pd, md, vd, Gt, gd, _d, hd, bd, wd, kd, Cd, xd, Sd, Md, Rd, Ad, Od, Td, qd, Vd, Ld, $d, Bd, zd, Fd, Dd, Nd, Ud, Id, Kd, $p, Hd, Fe, ef, tf, af, of, nf, lf, sf, rf, uf, cf, df, ff, pf, mf, Dp, yf, Xt, bf, wf, kf, Cf, xf, Sf, Mf, wt, ra, Jt, Af, Of, lt, Tf, qf, Vf, Lf, po, Oa, zf, mo, Df, Nf, Uf, If, Ef, Hf, jf, gt, Wf, Qf, Yf, e2, t2, a2, o2, n2, l2, s2, r2, i2, yo, c2, d2, f2, p2, v2, y2, g2, h2, b2, w2, k2, C2, S2, M2, A2, O2, V2, go, Ta, st, H2, ua, Pp;
|
|
24913
24926
|
var init_index_es = __esmMin((() => {
|
|
24914
24927
|
init_ResizeObserver_es();
|
|
24915
24928
|
init_vue_color();
|
|
@@ -28994,7 +29007,7 @@ return { batchNo: $ctx.batchNo, equipName: equip.equipName };`;
|
|
|
28994
29007
|
key: 1,
|
|
28995
29008
|
class: "data-sources__empty"
|
|
28996
29009
|
};
|
|
28997
|
-
|
|
29010
|
+
$p = /* @__PURE__ */ G$1(/* @__PURE__ */ defineComponent({
|
|
28998
29011
|
__name: "data-sources",
|
|
28999
29012
|
props: {
|
|
29000
29013
|
modelValue: { default: () => [] },
|
|
@@ -29389,7 +29402,7 @@ onmessage = async ({ data }) => {
|
|
|
29389
29402
|
return {
|
|
29390
29403
|
title: L.label,
|
|
29391
29404
|
value: z.join("."),
|
|
29392
|
-
selectable: !
|
|
29405
|
+
selectable: !0,
|
|
29393
29406
|
disabled: T,
|
|
29394
29407
|
isLeaf: !V,
|
|
29395
29408
|
children: V
|
|
@@ -29591,7 +29604,7 @@ onmessage = async ({ data }) => {
|
|
|
29591
29604
|
title: "删除",
|
|
29592
29605
|
"aria-label": "删除"
|
|
29593
29606
|
};
|
|
29594
|
-
|
|
29607
|
+
Dp = /* @__PURE__ */ G$1(/* @__PURE__ */ defineComponent({
|
|
29595
29608
|
__name: "field-fills",
|
|
29596
29609
|
props: {
|
|
29597
29610
|
modelValue: { default: () => [] },
|
|
@@ -29687,13 +29700,13 @@ onmessage = async ({ data }) => {
|
|
|
29687
29700
|
}), [["__scopeId", "data-v-28eadccf"]]);
|
|
29688
29701
|
yf = (e) => e == null || e === "" || Array.isArray(e) && e.length === 0 || typeof e == "object" && Object.getPrototypeOf(e) === Object.prototype && !Object.keys(e).length;
|
|
29689
29702
|
Xt = /* @__PURE__ */ ((e) => (e.Lot = "lot", e.UniqueCode = "uniqueCode", e))(Xt || {});
|
|
29690
|
-
|
|
29691
|
-
|
|
29692
|
-
|
|
29693
|
-
|
|
29694
|
-
kf = ["src"];
|
|
29695
|
-
Cf = ["title"];
|
|
29703
|
+
bf = "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";
|
|
29704
|
+
wf = "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";
|
|
29705
|
+
kf = "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";
|
|
29706
|
+
Cf = { class: "form-base-modal__title" };
|
|
29696
29707
|
xf = ["src"];
|
|
29708
|
+
Sf = ["title"];
|
|
29709
|
+
Mf = ["src"];
|
|
29697
29710
|
wt = /* @__PURE__ */ defineComponent({
|
|
29698
29711
|
inheritAttrs: !1,
|
|
29699
29712
|
__name: "modal-wrapper",
|
|
@@ -29799,12 +29812,12 @@ onmessage = async ({ data }) => {
|
|
|
29799
29812
|
onOk: R[2] || (R[2] = (L) => a("ok", L)),
|
|
29800
29813
|
onAfterClose: R[3] || (R[3] = (L) => a("afterClose"))
|
|
29801
29814
|
}), createSlots({
|
|
29802
|
-
title: withCtx(() => [createElementVNode("div",
|
|
29815
|
+
title: withCtx(() => [createElementVNode("div", Cf, [
|
|
29803
29816
|
e.draggable ? (openBlock(), createElementBlock("img", {
|
|
29804
29817
|
key: 0,
|
|
29805
|
-
src: unref(
|
|
29818
|
+
src: unref(kf),
|
|
29806
29819
|
class: "title-draggable"
|
|
29807
|
-
}, null, 8,
|
|
29820
|
+
}, null, 8, xf)) : createCommentVNode("", !0),
|
|
29808
29821
|
renderSlot(p.$slots, "title", {}, () => [createTextVNode(toDisplayString(unref(n).title), 1)]),
|
|
29809
29822
|
e.fullscreen ? (openBlock(), createElementBlock("button", {
|
|
29810
29823
|
key: 1,
|
|
@@ -29814,9 +29827,9 @@ onmessage = async ({ data }) => {
|
|
|
29814
29827
|
onMousedown: R[0] || (R[0] = withModifiers(() => {}, ["stop"])),
|
|
29815
29828
|
onClick: withModifiers(w, ["stop"])
|
|
29816
29829
|
}, [createElementVNode("img", {
|
|
29817
|
-
src: l.value ? unref(
|
|
29830
|
+
src: l.value ? unref(wf) : unref(bf),
|
|
29818
29831
|
alt: ""
|
|
29819
|
-
}, null, 8,
|
|
29832
|
+
}, null, 8, Mf)], 40, Sf)) : createCommentVNode("", !0)
|
|
29820
29833
|
])]),
|
|
29821
29834
|
modalRender: withCtx(({ originVNode: L }) => [createElementVNode("div", {
|
|
29822
29835
|
class: normalizeClass(["form-base-modal__render", { "form-base-modal__render--draggable": e.draggable && !l.value }]),
|
|
@@ -29841,16 +29854,16 @@ onmessage = async ({ data }) => {
|
|
|
29841
29854
|
FIELD_DISPLAY: 1,
|
|
29842
29855
|
ONLINE_FORM_FIELD_FORMULA: 13
|
|
29843
29856
|
};
|
|
29844
|
-
|
|
29845
|
-
|
|
29857
|
+
Af = { FIELD: "field" };
|
|
29858
|
+
Of = { Number: "number" };
|
|
29846
29859
|
lt = "entity";
|
|
29847
|
-
|
|
29860
|
+
Tf = {
|
|
29848
29861
|
key: 0,
|
|
29849
29862
|
class: "consume-policy-item__nested"
|
|
29850
29863
|
};
|
|
29851
|
-
|
|
29852
|
-
|
|
29853
|
-
|
|
29864
|
+
qf = { class: "consume-policy-item__special-header" };
|
|
29865
|
+
Vf = { class: "consume-policy-item__special-title" };
|
|
29866
|
+
Lf = ["onClick"];
|
|
29854
29867
|
po = /* @__PURE__ */ G$1(/* @__PURE__ */ defineComponent({
|
|
29855
29868
|
__name: "consume-item",
|
|
29856
29869
|
props: /* @__PURE__ */ mergeModels({ form: {} }, {
|
|
@@ -29886,13 +29899,13 @@ onmessage = async ({ data }) => {
|
|
|
29886
29899
|
const we = f.value[I.__key], _e = (we === null || we === void 0 ? void 0 : we.shopfloorId) === I.shopfloor_id_ ? we.warehouses : P.filter((Ke) => Ke.shopfloorIds.includes(I.shopfloor_id_)), Je = P.filter((Ke) => !Ke.shopfloorIds.length);
|
|
29887
29900
|
ne = [...new Map([..._e, ...Je].map((Ke) => [Ke.id_, Ke])).values()].map(V);
|
|
29888
29901
|
}
|
|
29889
|
-
const
|
|
29902
|
+
const ge = z.value.get(I.warehouse_id_), de = ge ? V(ge) : a.value.find((we) => we.value === I.warehouse_id_);
|
|
29890
29903
|
return de ? E(ne, [de]) : ne;
|
|
29891
29904
|
}
|
|
29892
29905
|
function S(I) {
|
|
29893
29906
|
var _z$value$get;
|
|
29894
|
-
const P = ((_z$value$get = z.value.get(I.warehouse_id_)) === null || _z$value$get === void 0 ? void 0 : _z$value$get.shopfloorIds) ?? [], ne = n.value.filter((de) => de.enabled && (!P.length || P.includes(de.value))),
|
|
29895
|
-
return
|
|
29907
|
+
const P = ((_z$value$get = z.value.get(I.warehouse_id_)) === null || _z$value$get === void 0 ? void 0 : _z$value$get.shopfloorIds) ?? [], ne = n.value.filter((de) => de.enabled && (!P.length || P.includes(de.value))), ge = n.value.find((de) => de.value === I.shopfloor_id_);
|
|
29908
|
+
return ge ? E(ne, [ge]) : ne;
|
|
29896
29909
|
}
|
|
29897
29910
|
function $(I) {
|
|
29898
29911
|
const P = (i.get(I) ?? 0) + 1;
|
|
@@ -29900,11 +29913,11 @@ onmessage = async ({ data }) => {
|
|
|
29900
29913
|
}
|
|
29901
29914
|
async function U(I, P, ne) {
|
|
29902
29915
|
if (await nextTick(), p || !ne()) return;
|
|
29903
|
-
const
|
|
29904
|
-
if (
|
|
29916
|
+
const ge = t.value.consume_storage_entries_.indexOf(I), de = o.form;
|
|
29917
|
+
if (ge < 0 || !de || !P.length) return;
|
|
29905
29918
|
const we = P.map((_e) => [
|
|
29906
29919
|
"consume_storage_entries_",
|
|
29907
|
-
|
|
29920
|
+
ge,
|
|
29908
29921
|
_e
|
|
29909
29922
|
]);
|
|
29910
29923
|
await de.validateFields(we).catch(() => {});
|
|
@@ -29943,14 +29956,14 @@ onmessage = async ({ data }) => {
|
|
|
29943
29956
|
}
|
|
29944
29957
|
function E(I, P) {
|
|
29945
29958
|
const ne = /* @__PURE__ */ new Map();
|
|
29946
|
-
return [...I, ...P].forEach((
|
|
29947
|
-
(
|
|
29959
|
+
return [...I, ...P].forEach((ge) => {
|
|
29960
|
+
(ge === null || ge === void 0 ? void 0 : ge.value) != null && ne.set(String(ge.value), ge);
|
|
29948
29961
|
}), Array.from(ne.values());
|
|
29949
29962
|
}
|
|
29950
29963
|
async function X(I, P, ne) {
|
|
29951
|
-
const
|
|
29952
|
-
if (!
|
|
29953
|
-
return E(P, await oe(I,
|
|
29964
|
+
const ge = [...new Set(ne.filter(Boolean))].filter((we) => !P.some((_e) => _e.value === we));
|
|
29965
|
+
if (!ge.length) return P;
|
|
29966
|
+
return E(P, await oe(I, ge));
|
|
29954
29967
|
}
|
|
29955
29968
|
function le() {
|
|
29956
29969
|
return [t.value.default_warehouse_id_, ...(t.value.consume_storage_entries_ ?? []).map((I) => I.warehouse_id_)];
|
|
@@ -30081,7 +30094,7 @@ onmessage = async ({ data }) => {
|
|
|
30081
30094
|
async function Ct(I) {
|
|
30082
30095
|
const P = $(I), ne = I.shopfloor_id_;
|
|
30083
30096
|
if (ne) try {
|
|
30084
|
-
const [,
|
|
30097
|
+
const [, ge] = await Promise.all([Mt(), ie.apaas.modelComprehensive.postBizServiceModelCategoryModelKeyBsKey({
|
|
30085
30098
|
modelCategory: lt,
|
|
30086
30099
|
modelKey: "em_warehouse",
|
|
30087
30100
|
bsKey: "listAll"
|
|
@@ -30090,7 +30103,7 @@ onmessage = async ({ data }) => {
|
|
|
30090
30103
|
"shopfloor_ids_.containAny": [ne]
|
|
30091
30104
|
} })]);
|
|
30092
30105
|
if (!P()) return;
|
|
30093
|
-
const de = ((
|
|
30106
|
+
const de = ((ge === null || ge === void 0 ? void 0 : ge.data) ?? []).filter((_e) => _e.operating_state_ === !0 && R(_e.shopfloor_ids_).includes(ne));
|
|
30094
30107
|
f.value[I.__key] = {
|
|
30095
30108
|
shopfloorId: ne,
|
|
30096
30109
|
warehouses: de
|
|
@@ -30121,8 +30134,8 @@ onmessage = async ({ data }) => {
|
|
|
30121
30134
|
try {
|
|
30122
30135
|
var _z$value$get2;
|
|
30123
30136
|
if (await Promise.all([Mt(), Q()]), !P()) return;
|
|
30124
|
-
const
|
|
30125
|
-
if (
|
|
30137
|
+
const ge = ((_z$value$get2 = z.value.get(ne)) === null || _z$value$get2 === void 0 ? void 0 : _z$value$get2.shopfloorIds) ?? [];
|
|
30138
|
+
if (ge.length && (ge.includes(I.shopfloor_id_) || (I.shopfloor_id_ = ge[0]), await U(I, ["shopfloor_id_"], P), !P())) return;
|
|
30126
30139
|
ne && await Se("", ne);
|
|
30127
30140
|
} catch {
|
|
30128
30141
|
P() && message.error("加载仓库关联数据失败,请重试");
|
|
@@ -30201,13 +30214,13 @@ onmessage = async ({ data }) => {
|
|
|
30201
30214
|
}), onBeforeUnmount(() => {
|
|
30202
30215
|
p = !0, Ie.cancel(), kt.cancel();
|
|
30203
30216
|
}), (I, P) => {
|
|
30204
|
-
const ne = resolveComponent("a-radio"),
|
|
30217
|
+
const ne = resolveComponent("a-radio"), ge = resolveComponent("a-radio-group"), de = resolveComponent("a-form-item"), we = resolveComponent("a-select"), _e = resolveComponent("a-col"), Je = resolveComponent("a-row"), da = resolveComponent("a-button"), Ke = resolveComponent("a-table");
|
|
30205
30218
|
return openBlock(), createElementBlock(Fragment, null, [createVNode(de, {
|
|
30206
30219
|
label: I.$t("sys.edhr.mcTable.consumeEnabled"),
|
|
30207
30220
|
name: "consume_enabled_",
|
|
30208
30221
|
rules: [unref(Te)(I.$t("sys.edhr.mcTable.consumeEnabled"))]
|
|
30209
30222
|
}, {
|
|
30210
|
-
default: withCtx(() => [createVNode(
|
|
30223
|
+
default: withCtx(() => [createVNode(ge, {
|
|
30211
30224
|
value: t.value.consume_enabled_,
|
|
30212
30225
|
"onUpdate:value": P[0] || (P[0] = (ke) => t.value.consume_enabled_ = ke),
|
|
30213
30226
|
onChange: So
|
|
@@ -30222,7 +30235,7 @@ onmessage = async ({ data }) => {
|
|
|
30222
30235
|
_: 1
|
|
30223
30236
|
}, 8, ["value"])]),
|
|
30224
30237
|
_: 1
|
|
30225
|
-
}, 8, ["label", "rules"]), t.value.consume_enabled_ ? (openBlock(), createElementBlock("div",
|
|
30238
|
+
}, 8, ["label", "rules"]), t.value.consume_enabled_ ? (openBlock(), createElementBlock("div", Tf, [
|
|
30226
30239
|
createVNode(Je, { gutter: 16 }, {
|
|
30227
30240
|
default: withCtx(() => [createVNode(_e, { span: 12 }, {
|
|
30228
30241
|
default: withCtx(() => [createVNode(de, {
|
|
@@ -30302,7 +30315,7 @@ onmessage = async ({ data }) => {
|
|
|
30302
30315
|
})]),
|
|
30303
30316
|
_: 1
|
|
30304
30317
|
}),
|
|
30305
|
-
createElementVNode("div",
|
|
30318
|
+
createElementVNode("div", qf, [createElementVNode("span", Vf, toDisplayString(I.$t("sys.edhr.mcTable.consumeSpecialConfig")), 1), t.value.consume_source_config_ !== "follow_common_policy" ? (openBlock(), createBlock(da, {
|
|
30306
30319
|
key: 0,
|
|
30307
30320
|
type: "link",
|
|
30308
30321
|
class: "consume-policy-item__add-row",
|
|
@@ -30427,7 +30440,7 @@ onmessage = async ({ data }) => {
|
|
|
30427
30440
|
class: normalizeClass(["error-gct consume-policy-item__delete", { "is-disabled": t.value.consume_source_config_ === "follow_common_policy" }]),
|
|
30428
30441
|
href: "javascript:;",
|
|
30429
30442
|
onClick: withModifiers((Ee) => t.value.consume_source_config_ !== "follow_common_policy" && se(Rt), ["prevent"])
|
|
30430
|
-
}, toDisplayString(I.$t("sys.delete")), 11,
|
|
30443
|
+
}, toDisplayString(I.$t("sys.delete")), 11, Lf)) : createCommentVNode("", !0)]),
|
|
30431
30444
|
_: 1
|
|
30432
30445
|
}, 8, ["data-source", "locale"])
|
|
30433
30446
|
])) : createCommentVNode("", !0)], 64);
|
|
@@ -30462,10 +30475,10 @@ onmessage = async ({ data }) => {
|
|
|
30462
30475
|
}
|
|
30463
30476
|
const f = await n.openFormulaEditor({
|
|
30464
30477
|
expr: a.value.expr,
|
|
30465
|
-
returnType: o.returnType ||
|
|
30478
|
+
returnType: o.returnType || Of.Number,
|
|
30466
30479
|
disabledReturnType: o.disabledReturnType,
|
|
30467
30480
|
mode: o.mode ?? Jt.ONLINE_FORM_FIELD_FORMULA,
|
|
30468
|
-
identifiers: { [
|
|
30481
|
+
identifiers: { [Af.FIELD]: await s() }
|
|
30469
30482
|
});
|
|
30470
30483
|
if (!f) return;
|
|
30471
30484
|
const { expr: i, exprEcho: r } = f;
|
|
@@ -30495,7 +30508,7 @@ onmessage = async ({ data }) => {
|
|
|
30495
30508
|
};
|
|
30496
30509
|
}
|
|
30497
30510
|
}), [["__scopeId", "data-v-8f400877"]]);
|
|
30498
|
-
|
|
30511
|
+
zf = {
|
|
30499
30512
|
key: 0,
|
|
30500
30513
|
class: "qty-policy-item__nested"
|
|
30501
30514
|
};
|
|
@@ -30546,7 +30559,7 @@ onmessage = async ({ data }) => {
|
|
|
30546
30559
|
_: 1
|
|
30547
30560
|
}, 8, ["value"])]),
|
|
30548
30561
|
_: 1
|
|
30549
|
-
}, 8, ["label", "rules"]), o.value.qty_validation_enabled_ ? (openBlock(), createElementBlock("div",
|
|
30562
|
+
}, 8, ["label", "rules"]), o.value.qty_validation_enabled_ ? (openBlock(), createElementBlock("div", zf, [createVNode(k, { gutter: 16 }, {
|
|
30550
30563
|
default: withCtx(() => [createVNode(r, { span: 12 }, {
|
|
30551
30564
|
default: withCtx(() => [createVNode(f, {
|
|
30552
30565
|
label: a.$t("sys.edhr.mcTable.qtyValidationRule"),
|
|
@@ -30616,14 +30629,14 @@ onmessage = async ({ data }) => {
|
|
|
30616
30629
|
};
|
|
30617
30630
|
}
|
|
30618
30631
|
}), [["__scopeId", "data-v-c069421a"]]);
|
|
30619
|
-
|
|
30620
|
-
|
|
30621
|
-
|
|
30632
|
+
Df = { style: { "margin-top": "4px" } };
|
|
30633
|
+
Nf = { key: 0 };
|
|
30634
|
+
Uf = `BOM模式:可读取工单BOM的用料策略,支持库存扣减;
|
|
30622
30635
|
记录模式:不支持库存扣减。`;
|
|
30623
|
-
|
|
30636
|
+
If = `当选择按批次上料时,上料时必须记录批次/SN和数量;
|
|
30624
30637
|
当选择按数量上料时只记录数量;
|
|
30625
30638
|
当选择物料查看时不需要记录批次/SN和数量,只做查看。`;
|
|
30626
|
-
|
|
30639
|
+
Ef = /* @__PURE__ */ G$1(/* @__PURE__ */ defineComponent({
|
|
30627
30640
|
__name: "material-strategy",
|
|
30628
30641
|
props: /* @__PURE__ */ mergeModels({
|
|
30629
30642
|
showConsumePolicy: { type: Boolean },
|
|
@@ -30690,7 +30703,7 @@ onmessage = async ({ data }) => {
|
|
|
30690
30703
|
name: "material_consumption_pattern_",
|
|
30691
30704
|
required: ""
|
|
30692
30705
|
}, {
|
|
30693
|
-
label: withCtx(() => [r[6] || (r[6] = createElementVNode("span", null, "物料消耗模式", -1)), createVNode(unref(Zt), { info: e.hasBomCofig ?
|
|
30706
|
+
label: withCtx(() => [r[6] || (r[6] = createElementVNode("span", null, "物料消耗模式", -1)), createVNode(unref(Zt), { info: e.hasBomCofig ? Uf : "记录模式:不支持库存扣减。" }, null, 8, ["info"])]),
|
|
30694
30707
|
default: withCtx(() => [createVNode(k, {
|
|
30695
30708
|
value: a.value.material_consumption_pattern_,
|
|
30696
30709
|
"onUpdate:value": r[0] || (r[0] = (c) => a.value.material_consumption_pattern_ = c),
|
|
@@ -30702,17 +30715,17 @@ onmessage = async ({ data }) => {
|
|
|
30702
30715
|
name: "personal_bom_enabled_",
|
|
30703
30716
|
label: "自定义用料策略"
|
|
30704
30717
|
}, {
|
|
30705
|
-
default: withCtx(() => [createElementVNode("div",
|
|
30718
|
+
default: withCtx(() => [createElementVNode("div", Df, [createVNode(d, {
|
|
30706
30719
|
checked: a.value.personal_bom_enabled_,
|
|
30707
30720
|
"onUpdate:checked": r[1] || (r[1] = (c) => a.value.personal_bom_enabled_ = c)
|
|
30708
30721
|
}, null, 8, ["checked"])])]),
|
|
30709
30722
|
_: 1
|
|
30710
|
-
}), a.value.personal_bom_enabled_ ? (openBlock(), createElementBlock("div",
|
|
30723
|
+
}), a.value.personal_bom_enabled_ ? (openBlock(), createElementBlock("div", Nf, [
|
|
30711
30724
|
createVNode(x, {
|
|
30712
30725
|
name: "type_",
|
|
30713
30726
|
required: ""
|
|
30714
30727
|
}, {
|
|
30715
|
-
label: withCtx(() => [r[7] || (r[7] = createElementVNode("span", null, "上料方式", -1)), createVNode(unref(Zt), { info:
|
|
30728
|
+
label: withCtx(() => [r[7] || (r[7] = createElementVNode("span", null, "上料方式", -1)), createVNode(unref(Zt), { info: If })]),
|
|
30716
30729
|
default: withCtx(() => [createVNode(M, {
|
|
30717
30730
|
value: a.value.type_,
|
|
30718
30731
|
"onUpdate:value": r[2] || (r[2] = (c) => a.value.type_ = c),
|
|
@@ -30752,8 +30765,8 @@ onmessage = async ({ data }) => {
|
|
|
30752
30765
|
};
|
|
30753
30766
|
}
|
|
30754
30767
|
}), [["__scopeId", "data-v-039aa529"]]);
|
|
30755
|
-
|
|
30756
|
-
|
|
30768
|
+
Hf = { key: 0 };
|
|
30769
|
+
jf = /* @__PURE__ */ G$1(/* @__PURE__ */ defineComponent({
|
|
30757
30770
|
__name: "modal",
|
|
30758
30771
|
props: {
|
|
30759
30772
|
modalVisible: { type: Boolean },
|
|
@@ -30832,7 +30845,7 @@ onmessage = async ({ data }) => {
|
|
|
30832
30845
|
[y]: p
|
|
30833
30846
|
};
|
|
30834
30847
|
}, c = () => {
|
|
30835
|
-
|
|
30848
|
+
P2("PARSE_RULE_MODAL", {
|
|
30836
30849
|
config: i.value.parseRuleProps,
|
|
30837
30850
|
formFieldOptions: v.value.map((y) => ({
|
|
30838
30851
|
label: y.name,
|
|
@@ -30906,7 +30919,7 @@ onmessage = async ({ data }) => {
|
|
|
30906
30919
|
})]),
|
|
30907
30920
|
_: 1
|
|
30908
30921
|
}, 8, ["model"]),
|
|
30909
|
-
i.value.objectField ? (openBlock(), createElementBlock("div",
|
|
30922
|
+
i.value.objectField ? (openBlock(), createElementBlock("div", Hf, [createVNode(unref(ve), null, {
|
|
30910
30923
|
default: withCtx(() => [...p[5] || (p[5] = [createTextVNode("默认值", -1)])]),
|
|
30911
30924
|
_: 1
|
|
30912
30925
|
}), createVNode(unref(VxeGrid), mergeProps({
|
|
@@ -30979,7 +30992,7 @@ onmessage = async ({ data }) => {
|
|
|
30979
30992
|
}, 8, ["ghost"]))]),
|
|
30980
30993
|
_: 1
|
|
30981
30994
|
}, 8, ["model"])]),
|
|
30982
|
-
createVNode(
|
|
30995
|
+
createVNode(Ef, {
|
|
30983
30996
|
ref_key: "materialStrategyRef",
|
|
30984
30997
|
ref: l,
|
|
30985
30998
|
"form-state": i.value,
|
|
@@ -30998,30 +31011,30 @@ onmessage = async ({ data }) => {
|
|
|
30998
31011
|
}
|
|
30999
31012
|
}), [["__scopeId", "data-v-5090e14e"]]);
|
|
31000
31013
|
gt = /* @__PURE__ */ ((e) => (e.materialCode = "materialCode", e.lot = "lot", e.qty = "qty", e.expiration = "expiration", e.deviceCode = "deviceCode", e.other = "other", e))(gt || {});
|
|
31001
|
-
|
|
31002
|
-
|
|
31003
|
-
|
|
31014
|
+
Wf = ie.apaas.modelComprehensive.getBizServiceModelCategoryModelKeyBsKey;
|
|
31015
|
+
Qf = { class: "field-mapping__rule-control" };
|
|
31016
|
+
Yf = {
|
|
31004
31017
|
key: 0,
|
|
31005
31018
|
class: "field-mapping__tip"
|
|
31006
31019
|
};
|
|
31007
|
-
|
|
31008
|
-
|
|
31020
|
+
e2 = { class: "field-mapping__subtitle" };
|
|
31021
|
+
t2 = {
|
|
31009
31022
|
key: 1,
|
|
31010
31023
|
class: "field-mapping__tip"
|
|
31011
31024
|
};
|
|
31012
|
-
|
|
31013
|
-
|
|
31025
|
+
a2 = { class: "field-mapping__map" };
|
|
31026
|
+
o2 = {
|
|
31014
31027
|
key: 0,
|
|
31015
31028
|
class: "field-mapping__row field-mapping__row--header"
|
|
31016
31029
|
};
|
|
31017
|
-
|
|
31018
|
-
|
|
31019
|
-
|
|
31020
|
-
|
|
31030
|
+
n2 = { class: "field-mapping__barcodeField field-mapping__col-label is-required" };
|
|
31031
|
+
l2 = { class: "field-mapping__formFields field-mapping__col-label is-required" };
|
|
31032
|
+
s2 = { class: "field-mapping__row--content" };
|
|
31033
|
+
r2 = {
|
|
31021
31034
|
key: 0,
|
|
31022
31035
|
class: "field-mapping__actions"
|
|
31023
31036
|
};
|
|
31024
|
-
|
|
31037
|
+
i2 = ["title", "onClick"];
|
|
31025
31038
|
yo = /* @__PURE__ */ G$1(/* @__PURE__ */ defineComponent({
|
|
31026
31039
|
__name: "field-mapping",
|
|
31027
31040
|
props: {
|
|
@@ -31080,7 +31093,7 @@ onmessage = async ({ data }) => {
|
|
|
31080
31093
|
i.value = [], n("ruleConfigChange", void 0);
|
|
31081
31094
|
return;
|
|
31082
31095
|
}
|
|
31083
|
-
const b = await
|
|
31096
|
+
const b = await Xf(c);
|
|
31084
31097
|
if (!b) {
|
|
31085
31098
|
i.value = [], n("ruleConfigChange", void 0);
|
|
31086
31099
|
return;
|
|
@@ -31119,7 +31132,7 @@ onmessage = async ({ data }) => {
|
|
|
31119
31132
|
label: c.$t("sys.edhr.mcTable.parseRule") + ":",
|
|
31120
31133
|
name: "parsingRuleId"
|
|
31121
31134
|
}, {
|
|
31122
|
-
default: withCtx(() => [createElementVNode("div",
|
|
31135
|
+
default: withCtx(() => [createElementVNode("div", Qf, [createVNode(unref(na), {
|
|
31123
31136
|
"model-value": r.parsingRuleId,
|
|
31124
31137
|
"model-key": "em_barcode_parsing_rules",
|
|
31125
31138
|
"show-search": "",
|
|
@@ -31134,20 +31147,20 @@ onmessage = async ({ data }) => {
|
|
|
31134
31147
|
}, [createTextVNode(toDisplayString(f.value ? c.$t("sys.collapseConfig") : c.$t("sys.expandConfig")) + " ", 1), createElementVNode("i", { class: normalizeClass(["iconfont ml4px", f.value ? "icon-arrow_up_pad" : "icon-arrow_down_pad"]) }, null, 2)])) : createCommentVNode("", !0)])]),
|
|
31135
31148
|
_: 1
|
|
31136
31149
|
}, 8, ["label"]), withDirectives(createElementVNode("div", null, [
|
|
31137
|
-
e.ruleTip && e.tipPlacement === "before" ? (openBlock(), createElementBlock("div",
|
|
31150
|
+
e.ruleTip && e.tipPlacement === "before" ? (openBlock(), createElementBlock("div", Yf, [createVNode(p, {
|
|
31138
31151
|
message: e.ruleTip,
|
|
31139
31152
|
type: "info",
|
|
31140
31153
|
"show-icon": ""
|
|
31141
31154
|
}, null, 8, ["message"])])) : createCommentVNode("", !0),
|
|
31142
|
-
createElementVNode("div",
|
|
31143
|
-
e.ruleTip && e.tipPlacement === "after" ? (openBlock(), createElementBlock("div",
|
|
31155
|
+
createElementVNode("div", e2, toDisplayString(c.$t("sys.onlineForm.fieldMapping")), 1),
|
|
31156
|
+
e.ruleTip && e.tipPlacement === "after" ? (openBlock(), createElementBlock("div", t2, [createVNode(p, {
|
|
31144
31157
|
message: e.ruleTip,
|
|
31145
31158
|
type: "info",
|
|
31146
31159
|
"show-icon": ""
|
|
31147
31160
|
}, null, 8, ["message"])])) : createCommentVNode("", !0),
|
|
31148
|
-
createElementVNode("div",
|
|
31149
|
-
r.fillMapArr.length ? (openBlock(), createElementBlock("div",
|
|
31150
|
-
createElementVNode("div",
|
|
31161
|
+
createElementVNode("div", a2, [
|
|
31162
|
+
r.fillMapArr.length ? (openBlock(), createElementBlock("div", o2, [createElementVNode("div", n2, toDisplayString(c.$t("sys.onlineForm.barcodeField")), 1), createElementVNode("div", l2, toDisplayString(e.formFieldsLabel || c.$t("sys.onlineForm.formFields")), 1)])) : createCommentVNode("", !0),
|
|
31163
|
+
createElementVNode("div", s2, [(openBlock(!0), createElementBlock(Fragment, null, renderList(r.fillMapArr, (T, V) => (openBlock(), createElementBlock("div", {
|
|
31151
31164
|
key: V,
|
|
31152
31165
|
class: "field-mapping__row"
|
|
31153
31166
|
}, [
|
|
@@ -31214,11 +31227,11 @@ onmessage = async ({ data }) => {
|
|
|
31214
31227
|
])]),
|
|
31215
31228
|
_: 2
|
|
31216
31229
|
}, 1032, ["name", "rules"]),
|
|
31217
|
-
e.disabled ? createCommentVNode("", !0) : (openBlock(), createElementBlock("div",
|
|
31230
|
+
e.disabled ? createCommentVNode("", !0) : (openBlock(), createElementBlock("div", r2, [createElementVNode("i", {
|
|
31218
31231
|
class: "field-mapping__remove-btn iconfont icon-shanchu1",
|
|
31219
31232
|
title: c.$t("sys.delete"),
|
|
31220
31233
|
onClick: (O) => M(V)
|
|
31221
|
-
}, null, 8,
|
|
31234
|
+
}, null, 8, i2)]))
|
|
31222
31235
|
]))), 128))]),
|
|
31223
31236
|
e.disabled ? createCommentVNode("", !0) : (openBlock(), createBlock(L, {
|
|
31224
31237
|
key: 1,
|
|
@@ -31236,14 +31249,14 @@ onmessage = async ({ data }) => {
|
|
|
31236
31249
|
};
|
|
31237
31250
|
}
|
|
31238
31251
|
}), [["__scopeId", "data-v-08ab3025"]]);
|
|
31239
|
-
|
|
31240
|
-
|
|
31241
|
-
|
|
31252
|
+
c2 = "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";
|
|
31253
|
+
d2 = { class: "scan-modal__content" };
|
|
31254
|
+
f2 = {
|
|
31242
31255
|
key: 0,
|
|
31243
31256
|
class: "bg-radio"
|
|
31244
31257
|
};
|
|
31245
|
-
|
|
31246
|
-
|
|
31258
|
+
p2 = ["src"];
|
|
31259
|
+
v2 = /* @__PURE__ */ G$1(/* @__PURE__ */ defineComponent({
|
|
31247
31260
|
__name: "modal",
|
|
31248
31261
|
props: {
|
|
31249
31262
|
modalVisible: { type: Boolean },
|
|
@@ -31270,7 +31283,7 @@ onmessage = async ({ data }) => {
|
|
|
31270
31283
|
}
|
|
31271
31284
|
let x, d = {};
|
|
31272
31285
|
const v = s.value.fillMapArr;
|
|
31273
|
-
f.value ? x =
|
|
31286
|
+
f.value ? x = Gf(s.value.str, JSON.stringify(f.value)) : t.bizOptions.scanParam && (x = { [t.bizOptions.scanParam]: s.value.str }), v !== null && v !== void 0 && v.length && x && (d = Jf(x, v));
|
|
31274
31287
|
const M = {
|
|
31275
31288
|
str: s.value.str,
|
|
31276
31289
|
parsedValue: x,
|
|
@@ -31293,8 +31306,8 @@ onmessage = async ({ data }) => {
|
|
|
31293
31306
|
onCancel: t.modalInst.cancel,
|
|
31294
31307
|
onAfterClose: d[5] || (d[5] = (b) => a("afterClose"))
|
|
31295
31308
|
}), {
|
|
31296
|
-
default: withCtx(() => [createElementVNode("div",
|
|
31297
|
-
l.value ? (openBlock(), createElementBlock("div",
|
|
31309
|
+
default: withCtx(() => [createElementVNode("div", d2, [
|
|
31310
|
+
l.value ? (openBlock(), createElementBlock("div", f2, [createElementVNode("div", {
|
|
31298
31311
|
class: normalizeClass(["bg-radio-item", [n.value === "add" && "active"]]),
|
|
31299
31312
|
onClick: d[0] || (d[0] = (b) => i("add"))
|
|
31300
31313
|
}, [...d[6] || (d[6] = [createElementVNode("i", { class: "iconfont icon-chuangjian" }, null, -1), createTextVNode(" " + toDisplayString("添加实盘数量"), -1)])], 2), createElementVNode("div", {
|
|
@@ -31318,10 +31331,10 @@ onmessage = async ({ data }) => {
|
|
|
31318
31331
|
onKeyup: withKeys(k, ["enter"])
|
|
31319
31332
|
}, {
|
|
31320
31333
|
prefix: withCtx(() => [createElementVNode("img", {
|
|
31321
|
-
src: unref(
|
|
31334
|
+
src: unref(c2),
|
|
31322
31335
|
width: "24",
|
|
31323
31336
|
height: "24"
|
|
31324
|
-
}, null, 8,
|
|
31337
|
+
}, null, 8, p2)]),
|
|
31325
31338
|
_: 1
|
|
31326
31339
|
}, 8, ["value", "placeholder"])]),
|
|
31327
31340
|
_: 1
|
|
@@ -31360,12 +31373,12 @@ onmessage = async ({ data }) => {
|
|
|
31360
31373
|
};
|
|
31361
31374
|
}
|
|
31362
31375
|
}), [["__scopeId", "data-v-99dc42ea"]]);
|
|
31363
|
-
|
|
31376
|
+
y2 = {
|
|
31364
31377
|
key: 0,
|
|
31365
31378
|
class: "substitute-policy-item__nested"
|
|
31366
31379
|
};
|
|
31367
|
-
|
|
31368
|
-
|
|
31380
|
+
g2 = { class: "substitute-policy-item__sub-toolbar" };
|
|
31381
|
+
h2 = /* @__PURE__ */ G$1(/* @__PURE__ */ defineComponent({
|
|
31369
31382
|
__name: "substitute-item",
|
|
31370
31383
|
props: /* @__PURE__ */ mergeModels({
|
|
31371
31384
|
hasIds: {},
|
|
@@ -31489,7 +31502,7 @@ onmessage = async ({ data }) => {
|
|
|
31489
31502
|
_: 1
|
|
31490
31503
|
}, 8, ["value"])]),
|
|
31491
31504
|
_: 1
|
|
31492
|
-
}, 8, ["label", "rules"]), t.value.substitute_material_enabled_ ? (openBlock(), createElementBlock("div",
|
|
31505
|
+
}, 8, ["label", "rules"]), t.value.substitute_material_enabled_ ? (openBlock(), createElementBlock("div", y2, [
|
|
31493
31506
|
createVNode(z, { gutter: 16 }, {
|
|
31494
31507
|
default: withCtx(() => [createVNode(L, { span: 12 }, {
|
|
31495
31508
|
default: withCtx(() => [createVNode(p, {
|
|
@@ -31509,7 +31522,7 @@ onmessage = async ({ data }) => {
|
|
|
31509
31522
|
})]),
|
|
31510
31523
|
_: 1
|
|
31511
31524
|
}),
|
|
31512
|
-
createElementVNode("div",
|
|
31525
|
+
createElementVNode("div", g2, [createVNode(T, {
|
|
31513
31526
|
type: "link",
|
|
31514
31527
|
class: "substitute-policy-item__add-row",
|
|
31515
31528
|
onClick: v
|
|
@@ -31566,14 +31579,14 @@ onmessage = async ({ data }) => {
|
|
|
31566
31579
|
};
|
|
31567
31580
|
}
|
|
31568
31581
|
}), [["__scopeId", "data-v-7c384024"]]);
|
|
31569
|
-
|
|
31570
|
-
|
|
31571
|
-
|
|
31572
|
-
|
|
31582
|
+
b2 = { class: "bom-entry-modal__content" };
|
|
31583
|
+
w2 = { class: "bom-entry-modal__section-title" };
|
|
31584
|
+
k2 = { class: "bom-entry-modal__section-title" };
|
|
31585
|
+
C2 = {
|
|
31573
31586
|
key: 0,
|
|
31574
31587
|
class: "bom-entry-modal__nested"
|
|
31575
31588
|
};
|
|
31576
|
-
|
|
31589
|
+
S2 = /* @__PURE__ */ G$1(/* @__PURE__ */ defineComponent({
|
|
31577
31590
|
__name: "modal",
|
|
31578
31591
|
props: {
|
|
31579
31592
|
modalVisible: { type: Boolean },
|
|
@@ -31766,14 +31779,14 @@ onmessage = async ({ data }) => {
|
|
|
31766
31779
|
onOk: z,
|
|
31767
31780
|
onAfterClose: V[8] || (V[8] = (E) => a("afterClose"))
|
|
31768
31781
|
}), {
|
|
31769
|
-
default: withCtx(() => [createElementVNode("div",
|
|
31782
|
+
default: withCtx(() => [createElementVNode("div", b2, [createVNode(oe, {
|
|
31770
31783
|
ref_key: "formRef",
|
|
31771
31784
|
ref: l,
|
|
31772
31785
|
model: unref(r),
|
|
31773
31786
|
rules: k.value
|
|
31774
31787
|
}, {
|
|
31775
31788
|
default: withCtx(() => [
|
|
31776
|
-
createElementVNode("div",
|
|
31789
|
+
createElementVNode("div", w2, toDisplayString(T.$t("sys.appDesigner.basicInformation")), 1),
|
|
31777
31790
|
createVNode($, { gutter: 16 }, {
|
|
31778
31791
|
default: withCtx(() => [createVNode(A, { span: 12 }, {
|
|
31779
31792
|
default: withCtx(() => [createVNode(O, {
|
|
@@ -31819,7 +31832,7 @@ onmessage = async ({ data }) => {
|
|
|
31819
31832
|
})]),
|
|
31820
31833
|
_: 1
|
|
31821
31834
|
}),
|
|
31822
|
-
createElementVNode("div",
|
|
31835
|
+
createElementVNode("div", k2, toDisplayString(T.$t("sys.edhr.mcTable.materialStrategyConfig")), 1),
|
|
31823
31836
|
createVNode(O, {
|
|
31824
31837
|
name: "type_",
|
|
31825
31838
|
required: ""
|
|
@@ -31879,7 +31892,7 @@ onmessage = async ({ data }) => {
|
|
|
31879
31892
|
_: 1
|
|
31880
31893
|
}, 8, ["value"])]),
|
|
31881
31894
|
_: 1
|
|
31882
|
-
}, 8, ["label"]), unref(r).lot_mixing_enabled_ ? (openBlock(), createElementBlock("div",
|
|
31895
|
+
}, 8, ["label"]), unref(r).lot_mixing_enabled_ ? (openBlock(), createElementBlock("div", C2, [createVNode($, { gutter: 16 }, {
|
|
31883
31896
|
default: withCtx(() => [createVNode(A, { span: 12 }, {
|
|
31884
31897
|
default: withCtx(() => [createVNode(O, {
|
|
31885
31898
|
label: T.$t("sys.edhr.mcTable.lotMixingTimes"),
|
|
@@ -31900,7 +31913,7 @@ onmessage = async ({ data }) => {
|
|
|
31900
31913
|
})]),
|
|
31901
31914
|
_: 1
|
|
31902
31915
|
})])) : createCommentVNode("", !0)], 64)) : createCommentVNode("", !0),
|
|
31903
|
-
unref(r).type_ !== "view" ? (openBlock(), createBlock(
|
|
31916
|
+
unref(r).type_ !== "view" ? (openBlock(), createBlock(h2, {
|
|
31904
31917
|
key: 3,
|
|
31905
31918
|
"form-state": unref(r),
|
|
31906
31919
|
"onUpdate:formState": V[6] || (V[6] = (E) => isRef(r) ? r.value = E : r = E),
|
|
@@ -31942,8 +31955,8 @@ onmessage = async ({ data }) => {
|
|
|
31942
31955
|
};
|
|
31943
31956
|
}
|
|
31944
31957
|
}), [["__scopeId", "data-v-253977da"]]);
|
|
31945
|
-
|
|
31946
|
-
|
|
31958
|
+
M2 = { class: "parse-rule-modal__content" };
|
|
31959
|
+
A2 = /* @__PURE__ */ G$1(/* @__PURE__ */ defineComponent({
|
|
31947
31960
|
__name: "modal",
|
|
31948
31961
|
props: {
|
|
31949
31962
|
modalVisible: { type: Boolean },
|
|
@@ -31988,7 +32001,7 @@ onmessage = async ({ data }) => {
|
|
|
31988
32001
|
}), {
|
|
31989
32002
|
default: withCtx(() => {
|
|
31990
32003
|
var _e$bizOptions;
|
|
31991
|
-
return [createElementVNode("div",
|
|
32004
|
+
return [createElementVNode("div", M2, [createVNode(unref(yo), {
|
|
31992
32005
|
ref_key: "fieldMappingRef",
|
|
31993
32006
|
ref: n,
|
|
31994
32007
|
"parsing-rule-id": l.parsingRuleId,
|
|
@@ -32018,12 +32031,12 @@ onmessage = async ({ data }) => {
|
|
|
32018
32031
|
]));
|
|
32019
32032
|
}
|
|
32020
32033
|
}), [["__scopeId", "data-v-85539b18"]]);
|
|
32021
|
-
|
|
32022
|
-
|
|
32023
|
-
MATERIAL_CONSUME_OBJECT_CONFIG:
|
|
32024
|
-
COMMON_SCAN:
|
|
32025
|
-
BOM_ENTRY_MODAL:
|
|
32026
|
-
PARSE_RULE_MODAL:
|
|
32034
|
+
O2 = { class: "scan-multi-rows-modal__content" };
|
|
32035
|
+
V2 = {
|
|
32036
|
+
MATERIAL_CONSUME_OBJECT_CONFIG: jf,
|
|
32037
|
+
COMMON_SCAN: v2,
|
|
32038
|
+
BOM_ENTRY_MODAL: S2,
|
|
32039
|
+
PARSE_RULE_MODAL: A2,
|
|
32027
32040
|
SCAN_MULTI_ROWS_MODAL: /* @__PURE__ */ G$1(/* @__PURE__ */ defineComponent({
|
|
32028
32041
|
__name: "modal",
|
|
32029
32042
|
props: {
|
|
@@ -32102,7 +32115,7 @@ onmessage = async ({ data }) => {
|
|
|
32102
32115
|
onOk: x,
|
|
32103
32116
|
onAfterClose: v[0] || (v[0] = (M) => l("afterClose"))
|
|
32104
32117
|
}), {
|
|
32105
|
-
default: withCtx(() => [createElementVNode("div",
|
|
32118
|
+
default: withCtx(() => [createElementVNode("div", O2, [createVNode(unref(VxeGrid), mergeProps({
|
|
32106
32119
|
class: "scan-multi-rows-modal__grid default vxetable",
|
|
32107
32120
|
data: f.value,
|
|
32108
32121
|
"max-height": "420px"
|
|
@@ -32293,7 +32306,7 @@ onmessage = async ({ data }) => {
|
|
|
32293
32306
|
"gct-tooltip-dark": { $extend: "tooltip" },
|
|
32294
32307
|
"gct-popconfirm": { $extend: "dropdown" }
|
|
32295
32308
|
};
|
|
32296
|
-
|
|
32309
|
+
H2 = class {
|
|
32297
32310
|
constructor() {
|
|
32298
32311
|
this.modalMap = /* @__PURE__ */ new Map(), this.idSeed = 0, this.zIndexSeed = 0;
|
|
32299
32312
|
}
|
|
@@ -32302,7 +32315,7 @@ onmessage = async ({ data }) => {
|
|
|
32302
32315
|
const o = ((_this$antdConfigGette = this.antdConfigGetter) === null || _this$antdConfigGette === void 0 ? void 0 : _this$antdConfigGette.call(this)) ?? {};
|
|
32303
32316
|
return {
|
|
32304
32317
|
...o,
|
|
32305
|
-
getPopupContainer: (t) =>
|
|
32318
|
+
getPopupContainer: (t) => I2(t, o.getPopupContainer)
|
|
32306
32319
|
};
|
|
32307
32320
|
}
|
|
32308
32321
|
/**
|
|
@@ -32323,7 +32336,7 @@ onmessage = async ({ data }) => {
|
|
|
32323
32336
|
bo(o), wo(o), Co(o), t !== null && t !== void 0 && t.getAntdConfig && !this.antdConfigGetter && (this.antdConfigGetter = t.getAntdConfig), this.appContext || (this.appContext = o._context);
|
|
32324
32337
|
}
|
|
32325
32338
|
open(o, t, a = {}) {
|
|
32326
|
-
const n =
|
|
32339
|
+
const n = V2[o];
|
|
32327
32340
|
if (!n) return Promise.reject(/* @__PURE__ */ new Error(`[FormBaseModal] 未找到弹框组件:${String(o)}`));
|
|
32328
32341
|
const l = `form-base-modal-${++this.idSeed}`, s = reactive({ visible: !0 }), f = {
|
|
32329
32342
|
...a,
|
|
@@ -32370,7 +32383,7 @@ onmessage = async ({ data }) => {
|
|
|
32370
32383
|
isClosing: () => x
|
|
32371
32384
|
});
|
|
32372
32385
|
try {
|
|
32373
|
-
v =
|
|
32386
|
+
v = E2(y, this.appContext, l);
|
|
32374
32387
|
} catch (p) {
|
|
32375
32388
|
this.modalMap.delete(l), r(p);
|
|
32376
32389
|
}
|
|
@@ -32391,13 +32404,13 @@ onmessage = async ({ data }) => {
|
|
|
32391
32404
|
return this.modalMap.size;
|
|
32392
32405
|
}
|
|
32393
32406
|
};
|
|
32394
|
-
ua = new
|
|
32395
|
-
|
|
32407
|
+
ua = new H2();
|
|
32408
|
+
Pp = { install(e, o) {
|
|
32396
32409
|
ua.install(e, o);
|
|
32397
32410
|
} };
|
|
32398
32411
|
}));
|
|
32399
32412
|
//#endregion
|
|
32400
|
-
//#region ../../node_modules/.pnpm/@gct-paas+form-base@0.1.6-beta.
|
|
32413
|
+
//#region ../../node_modules/.pnpm/@gct-paas+form-base@0.1.6-beta.2_@gct-paas+api@6.2.0-dev.2_axios@1.13.2__@vueuse+core@1_6a1ae50cf028719a9f9d87a9352ec69c/node_modules/@gct-paas/form-base/dist/form-base.css
|
|
32401
32414
|
init_TriggerUtil();
|
|
32402
32415
|
init_index_es();
|
|
32403
32416
|
//#endregion
|
|
@@ -32595,7 +32608,7 @@ function setupPlatformAdapters(options) {
|
|
|
32595
32608
|
*/
|
|
32596
32609
|
function setupVueRuntime(options) {
|
|
32597
32610
|
const { app } = options;
|
|
32598
|
-
app.use(
|
|
32611
|
+
app.use(Pp);
|
|
32599
32612
|
app.use(fa, { themes: {
|
|
32600
32613
|
"gct-tooltip": {
|
|
32601
32614
|
$extend: "tooltip",
|
|
@@ -122600,7 +122613,7 @@ async function openScanWithParseRule(options) {
|
|
|
122600
122613
|
const parseRuleProps = toParseRuleConfig$1(barcodeParsingRulesId);
|
|
122601
122614
|
scanningRegionIds.add(regionId);
|
|
122602
122615
|
try {
|
|
122603
|
-
await
|
|
122616
|
+
await P2("COMMON_SCAN", {
|
|
122604
122617
|
ruleTip: "扫码解析后按字段映射写入表单",
|
|
122605
122618
|
formFieldOptions: formFieldOptions ?? [],
|
|
122606
122619
|
scanRules: parseRuleProps,
|
|
@@ -122670,7 +122683,7 @@ async function matchProductionIdentificationScanRecords(parsed) {
|
|
|
122670
122683
|
/** 多条候选 → 公共多选弹框 */
|
|
122671
122684
|
async function pickProductionIdentificationScanRecord(records) {
|
|
122672
122685
|
if (records.length === 1) return records[0];
|
|
122673
|
-
const { success, result } = await
|
|
122686
|
+
const { success, result } = await P2("SCAN_MULTI_ROWS_MODAL", { rows: records.map((record) => ({
|
|
122674
122687
|
...record,
|
|
122675
122688
|
productId: record.product_id_name_ ?? record.product_id_code_,
|
|
122676
122689
|
materialNo: record.material_no_ ?? record.name_
|
|
@@ -122773,7 +122786,7 @@ async function matchInventoryScanRecords(parsed, warehouseId) {
|
|
|
122773
122786
|
async function pickInventoryScanRecord(records) {
|
|
122774
122787
|
if (!records.length) return void 0;
|
|
122775
122788
|
if (records.length === 1) return records[0];
|
|
122776
|
-
const { success, result } = await
|
|
122789
|
+
const { success, result } = await P2("SCAN_MULTI_ROWS_MODAL", {
|
|
122777
122790
|
rows: records.map((record) => ({
|
|
122778
122791
|
...record,
|
|
122779
122792
|
productId: record.product_id_name_ ?? record.product_id_code_,
|
|
@@ -149932,7 +149945,7 @@ var init_material_consume_table_controller = __esmMin((() => {
|
|
|
149932
149945
|
}
|
|
149933
149946
|
let materialData = arr[0];
|
|
149934
149947
|
if (arr.length > 1) {
|
|
149935
|
-
const { success, result } = await
|
|
149948
|
+
const { success, result } = await P2("SCAN_MULTI_ROWS_MODAL", { rows: arr });
|
|
149936
149949
|
if (!success) return;
|
|
149937
149950
|
materialData = result;
|
|
149938
149951
|
} else if (materialData === null || materialData === void 0 ? void 0 : materialData.productionIdentificationIsLocked) {
|
|
@@ -149985,7 +149998,7 @@ var init_material_consume_table_controller = __esmMin((() => {
|
|
|
149985
149998
|
async openScanModal(title, option) {
|
|
149986
149999
|
if (this.isScanOpen) return;
|
|
149987
150000
|
this.isScanOpen = true;
|
|
149988
|
-
await
|
|
150001
|
+
await P2("COMMON_SCAN", {
|
|
149989
150002
|
title,
|
|
149990
150003
|
ruleTip: "扫码解析后按字段映射写入表单",
|
|
149991
150004
|
formFieldOptions: option.subFieldOptions,
|
|
@@ -160682,6 +160695,98 @@ async function finalizeDesignModelImport(doc, docModel) {
|
|
|
160682
160695
|
});
|
|
160683
160696
|
}
|
|
160684
160697
|
//#endregion
|
|
160698
|
+
//#region src/sdk/doc-runtime/factories/runtime-data-sources.ts
|
|
160699
|
+
init_hydrate_utils();
|
|
160700
|
+
init_index_es();
|
|
160701
|
+
/** 为单份 Word 文档绑定数源与字段填充;初始化和释放由文档生命周期调度。 */
|
|
160702
|
+
function createRuntimeDataSourceBinding(options) {
|
|
160703
|
+
var _doc$model, _doc$model2;
|
|
160704
|
+
const { doc, canExecute, getContext, getInstanceId, adapters } = options;
|
|
160705
|
+
let fieldFillRuntime;
|
|
160706
|
+
const dataInit = (_doc$model = doc.model) === null || _doc$model === void 0 || (_doc$model = _doc$model.document.config) === null || _doc$model === void 0 ? void 0 : _doc$model.dataInit;
|
|
160707
|
+
const sources = dataInit === null || dataInit === void 0 ? void 0 : dataInit.dataSources;
|
|
160708
|
+
const fills = (dataInit === null || dataInit === void 0 ? void 0 : dataInit.fieldFills) ?? [];
|
|
160709
|
+
const manager = Bp({
|
|
160710
|
+
canExecute,
|
|
160711
|
+
initializeOnEnable: true,
|
|
160712
|
+
sources: sources ?? [],
|
|
160713
|
+
eventDisabled: true,
|
|
160714
|
+
onManualLoad: (key) => fieldFillRuntime === null || fieldFillRuntime === void 0 ? void 0 : fieldFillRuntime.reapplyDataSource(key),
|
|
160715
|
+
getContext,
|
|
160716
|
+
getInstanceId,
|
|
160717
|
+
getForm: () => doc.dataManager.getRawData(),
|
|
160718
|
+
adapters
|
|
160719
|
+
});
|
|
160720
|
+
const protectedTargets = Kp(dataInit ?? {});
|
|
160721
|
+
const targets = /* @__PURE__ */ new Map();
|
|
160722
|
+
const subTargets = /* @__PURE__ */ new Map();
|
|
160723
|
+
for (const widget of ((_doc$model2 = doc.model) === null || _doc$model2 === void 0 ? void 0 : _doc$model2.getWidgetInstances()) ?? []) {
|
|
160724
|
+
var _meta$props2;
|
|
160725
|
+
if (!("widgetMeta" in widget) || !("valuePath" in widget)) continue;
|
|
160726
|
+
const meta = widget.widgetMeta;
|
|
160727
|
+
if (!meta || !widget.valuePath) continue;
|
|
160728
|
+
const field = meta === null || meta === void 0 ? void 0 : meta.field;
|
|
160729
|
+
if ((field === null || field === void 0 ? void 0 : field.fieldLink) && (field.subFieldKey || field.modelLink === doc.mainModelKey)) {
|
|
160730
|
+
var _meta$props;
|
|
160731
|
+
const key = field.subFieldKey ? `${field.subFieldKey}.${field.fieldLink}` : field.fieldLink;
|
|
160732
|
+
targets.set(key, field.subFieldKey ? `$.${key}` : widget.valuePath);
|
|
160733
|
+
if (field.subFieldKey) {
|
|
160734
|
+
const prefix = `$.${field.subFieldKey}[`;
|
|
160735
|
+
const rowEnd = widget.valuePath.indexOf("].", prefix.length);
|
|
160736
|
+
subTargets.set(key, {
|
|
160737
|
+
table: field.subFieldKey,
|
|
160738
|
+
field: widget.valuePath.startsWith(prefix) && rowEnd >= 0 ? widget.valuePath.slice(rowEnd + 2) : field.fieldLink
|
|
160739
|
+
});
|
|
160740
|
+
}
|
|
160741
|
+
if ((_meta$props = meta.props) === null || _meta$props === void 0 || (_meta$props = _meta$props.componentDependency) === null || _meta$props === void 0 || (_meta$props = _meta$props.configDependency) === null || _meta$props === void 0 || (_meta$props = _meta$props.assignment) === null || _meta$props === void 0 ? void 0 : _meta$props.expression) protectedTargets.add(key);
|
|
160742
|
+
}
|
|
160743
|
+
if ((meta === null || meta === void 0 || (_meta$props2 = meta.props) === null || _meta$props2 === void 0 ? void 0 : _meta$props2.autofillEnabled) !== false) {
|
|
160744
|
+
var _meta$props3;
|
|
160745
|
+
for (const rule of (meta === null || meta === void 0 || (_meta$props3 = meta.props) === null || _meta$props3 === void 0 ? void 0 : _meta$props3.autofillRules) ?? []) if (rule.toField) protectedTargets.add(rule.toSubModel && rule.toSubFieldKey ? `${rule.toSubFieldKey}.${rule.toField}` : rule.toField);
|
|
160746
|
+
}
|
|
160747
|
+
}
|
|
160748
|
+
const tableColumns = /* @__PURE__ */ new Map();
|
|
160749
|
+
for (const [key, target] of subTargets) {
|
|
160750
|
+
const columns = tableColumns.get(target.table) ?? /* @__PURE__ */ new Map();
|
|
160751
|
+
columns.set(key.slice(target.table.length + 1), target.field);
|
|
160752
|
+
tableColumns.set(target.table, columns);
|
|
160753
|
+
}
|
|
160754
|
+
for (const table of tableColumns.keys()) targets.set(table, `$.${table}`);
|
|
160755
|
+
fieldFillRuntime = Ip({
|
|
160756
|
+
preserveExistingValues: true,
|
|
160757
|
+
fills,
|
|
160758
|
+
manager,
|
|
160759
|
+
getContext,
|
|
160760
|
+
getForm: () => doc.dataManager.getRawData(),
|
|
160761
|
+
getFormField: (key) => {
|
|
160762
|
+
const columns = tableColumns.get(key);
|
|
160763
|
+
if (columns) return Up(doc.dataManager.get(`$.${key}`), columns);
|
|
160764
|
+
const target = subTargets.get(key);
|
|
160765
|
+
return target ? gf(doc.dataManager.get(`$.${target.table}`), target.field) : doc.dataManager.get(targets.get(key) ?? `$.${key}`);
|
|
160766
|
+
},
|
|
160767
|
+
hasTargetField: (key) => targets.has(key),
|
|
160768
|
+
subscribeForm: (onChange) => doc.dataManager.subscribe("$", onChange),
|
|
160769
|
+
canWrite: (key) => canExecute() && targets.has(key) && !Ep(key, protectedTargets, (field) => targets.get(field) ?? `$.${field}`),
|
|
160770
|
+
setField: (key, value, collection) => {
|
|
160771
|
+
const target = subTargets.get(key);
|
|
160772
|
+
const path = target ? `$.${target.table}` : targets.get(key);
|
|
160773
|
+
const columns = tableColumns.get(key);
|
|
160774
|
+
const next = columns ? Np(doc.dataManager.get(path), value, columns) : target ? _f(doc.dataManager.get(path), target.field, value, collection) : value;
|
|
160775
|
+
if (!doc.dataManager.set(path, next, "hydrate")) throw new Error(`字段填充失败:${key}`);
|
|
160776
|
+
if (target || columns) hydrateSubtableRowLabels(doc, (target === null || target === void 0 ? void 0 : target.table) ?? key, Array.from({ length: next.length }, (_, index) => index));
|
|
160777
|
+
}
|
|
160778
|
+
});
|
|
160779
|
+
return {
|
|
160780
|
+
manager,
|
|
160781
|
+
refresh: () => fieldFillRuntime === null || fieldFillRuntime === void 0 ? void 0 : fieldFillRuntime.refresh(),
|
|
160782
|
+
dispose() {
|
|
160783
|
+
fieldFillRuntime === null || fieldFillRuntime === void 0 || fieldFillRuntime.dispose();
|
|
160784
|
+
fieldFillRuntime = void 0;
|
|
160785
|
+
manager.dispose();
|
|
160786
|
+
}
|
|
160787
|
+
};
|
|
160788
|
+
}
|
|
160789
|
+
//#endregion
|
|
160685
160790
|
//#region src/sdk/doc-runtime/factories/useDocumentFactory.ts
|
|
160686
160791
|
init_seal_runtime();
|
|
160687
160792
|
init_core();
|
|
@@ -160699,13 +160804,11 @@ function useDocumentFactory(props, payload) {
|
|
|
160699
160804
|
const finisher = ref(0);
|
|
160700
160805
|
const docIns = shallowRef(null);
|
|
160701
160806
|
const dataSourceManager = shallowRef();
|
|
160702
|
-
let
|
|
160807
|
+
let dataSourceBinding;
|
|
160703
160808
|
let documentLoadVersion = 0;
|
|
160704
160809
|
function disposeDataSources() {
|
|
160705
|
-
|
|
160706
|
-
|
|
160707
|
-
fieldFillRuntime = void 0;
|
|
160708
|
-
(_dataSourceManager$va = dataSourceManager.value) === null || _dataSourceManager$va === void 0 || _dataSourceManager$va.dispose();
|
|
160810
|
+
dataSourceBinding === null || dataSourceBinding === void 0 || dataSourceBinding.dispose();
|
|
160811
|
+
dataSourceBinding = void 0;
|
|
160709
160812
|
dataSourceManager.value = void 0;
|
|
160710
160813
|
}
|
|
160711
160814
|
const docInfo = ref(snapshotDocInfo());
|
|
@@ -160733,7 +160836,7 @@ function useDocumentFactory(props, payload) {
|
|
|
160733
160836
|
clear();
|
|
160734
160837
|
return;
|
|
160735
160838
|
}
|
|
160736
|
-
if (docIns.value)
|
|
160839
|
+
if (docIns.value) jp();
|
|
160737
160840
|
try {
|
|
160738
160841
|
const response = await runFetchDocument(newRequestId);
|
|
160739
160842
|
if (!response) return;
|
|
@@ -160779,77 +160882,22 @@ function useDocumentFactory(props, payload) {
|
|
|
160779
160882
|
lastExecute.value = result;
|
|
160780
160883
|
const isDetailPage = typeof payload.isDetailPage === "function" ? payload.isDetailPage() : payload.isDetailPage;
|
|
160781
160884
|
if (payload.factoryType === "instance" && !payload.isMockReport && !payload.isPreview && !isDetailPage && !payload.isRefer) {
|
|
160782
|
-
var _doc$model, _doc$model2;
|
|
160783
160885
|
const doc = initialized.doc;
|
|
160784
|
-
const
|
|
160785
|
-
const sources = dataInit === null || dataInit === void 0 ? void 0 : dataInit.dataSources;
|
|
160786
|
-
const fills = (dataInit === null || dataInit === void 0 ? void 0 : dataInit.fieldFills) ?? [];
|
|
160787
|
-
const getContext = () => Bp({
|
|
160886
|
+
const getContext = () => Fp({
|
|
160788
160887
|
parameters: doc.paramsConfig ?? {},
|
|
160789
160888
|
instance: doc.docRuntimeMeta ?? result.requestInfo
|
|
160790
160889
|
});
|
|
160791
160890
|
const canExecute = () => docIns.value === doc && docInfo.value.mode === DocModeTypeConst.Fill && doc.isInFillMode() && !(typeof payload.isDetailPage === "function" ? payload.isDetailPage() : payload.isDetailPage);
|
|
160792
|
-
const
|
|
160891
|
+
const binding = createRuntimeDataSourceBinding({
|
|
160892
|
+
doc,
|
|
160793
160893
|
canExecute,
|
|
160794
|
-
initializeOnEnable: true,
|
|
160795
|
-
sources: sources ?? [],
|
|
160796
|
-
eventDisabled: true,
|
|
160797
|
-
onManualLoad: (key) => fieldFillRuntime === null || fieldFillRuntime === void 0 ? void 0 : fieldFillRuntime.reapplyDataSource(key),
|
|
160798
160894
|
getContext,
|
|
160799
160895
|
getInstanceId: () => result.id,
|
|
160800
|
-
getForm: () => doc.dataManager.getRawData(),
|
|
160801
160896
|
adapters: payload.dataSourceAdapters
|
|
160802
160897
|
});
|
|
160803
|
-
|
|
160804
|
-
|
|
160805
|
-
|
|
160806
|
-
const subTargets = /* @__PURE__ */ new Map();
|
|
160807
|
-
for (const widget of ((_doc$model2 = doc.model) === null || _doc$model2 === void 0 ? void 0 : _doc$model2.getWidgetInstances()) ?? []) {
|
|
160808
|
-
var _meta$props2;
|
|
160809
|
-
if (!("widgetMeta" in widget) || !("valuePath" in widget)) continue;
|
|
160810
|
-
const meta = widget.widgetMeta;
|
|
160811
|
-
if (!meta || !widget.valuePath) continue;
|
|
160812
|
-
const field = meta === null || meta === void 0 ? void 0 : meta.field;
|
|
160813
|
-
if ((field === null || field === void 0 ? void 0 : field.fieldLink) && (field.subFieldKey || field.modelLink === doc.mainModelKey)) {
|
|
160814
|
-
var _meta$props;
|
|
160815
|
-
const key = field.subFieldKey ? `${field.subFieldKey}.${field.fieldLink}` : field.fieldLink;
|
|
160816
|
-
targets.set(key, field.subFieldKey ? `$.${key}` : widget.valuePath);
|
|
160817
|
-
if (field.subFieldKey) {
|
|
160818
|
-
const prefix = `$.${field.subFieldKey}[`;
|
|
160819
|
-
const rowEnd = widget.valuePath.indexOf("].", prefix.length);
|
|
160820
|
-
subTargets.set(key, {
|
|
160821
|
-
table: field.subFieldKey,
|
|
160822
|
-
field: widget.valuePath.startsWith(prefix) && rowEnd >= 0 ? widget.valuePath.slice(rowEnd + 2) : field.fieldLink
|
|
160823
|
-
});
|
|
160824
|
-
}
|
|
160825
|
-
if ((_meta$props = meta.props) === null || _meta$props === void 0 || (_meta$props = _meta$props.componentDependency) === null || _meta$props === void 0 || (_meta$props = _meta$props.configDependency) === null || _meta$props === void 0 || (_meta$props = _meta$props.assignment) === null || _meta$props === void 0 ? void 0 : _meta$props.expression) protectedTargets.add(key);
|
|
160826
|
-
}
|
|
160827
|
-
if ((meta === null || meta === void 0 || (_meta$props2 = meta.props) === null || _meta$props2 === void 0 ? void 0 : _meta$props2.autofillEnabled) !== false) {
|
|
160828
|
-
var _meta$props3;
|
|
160829
|
-
for (const rule of (meta === null || meta === void 0 || (_meta$props3 = meta.props) === null || _meta$props3 === void 0 ? void 0 : _meta$props3.autofillRules) ?? []) if (rule.toField) protectedTargets.add(rule.toSubModel && rule.toSubFieldKey ? `${rule.toSubFieldKey}.${rule.toField}` : rule.toField);
|
|
160830
|
-
}
|
|
160831
|
-
}
|
|
160832
|
-
fieldFillRuntime = Np({
|
|
160833
|
-
preserveExistingValues: true,
|
|
160834
|
-
fills,
|
|
160835
|
-
manager,
|
|
160836
|
-
getContext,
|
|
160837
|
-
getForm: () => doc.dataManager.getRawData(),
|
|
160838
|
-
getFormField: (key) => {
|
|
160839
|
-
const target = subTargets.get(key);
|
|
160840
|
-
return target ? Fp(doc.dataManager.get(`$.${target.table}`), target.field) : doc.dataManager.get(targets.get(key) ?? `$.${key}`);
|
|
160841
|
-
},
|
|
160842
|
-
hasTargetField: (key) => targets.has(key),
|
|
160843
|
-
subscribeForm: (onChange) => doc.dataManager.subscribe("$", onChange),
|
|
160844
|
-
canWrite: (key) => canExecute() && targets.has(key) && !Ip(key, protectedTargets, (field) => targets.get(field) ?? `$.${field}`),
|
|
160845
|
-
setField: (key, value, collection) => {
|
|
160846
|
-
const target = subTargets.get(key);
|
|
160847
|
-
const path = target ? `$.${target.table}` : targets.get(key);
|
|
160848
|
-
const next = target ? Dp(doc.dataManager.get(path), target.field, value, collection) : value;
|
|
160849
|
-
if (!doc.dataManager.set(path, next, "hydrate")) throw new Error(`字段填充失败:${key}`);
|
|
160850
|
-
}
|
|
160851
|
-
});
|
|
160852
|
-
await manager.initialize();
|
|
160898
|
+
dataSourceBinding = binding;
|
|
160899
|
+
dataSourceManager.value = binding.manager;
|
|
160900
|
+
await binding.manager.initialize();
|
|
160853
160901
|
if (version === documentLoadVersion) await waitForDataManagerSettle(doc);
|
|
160854
160902
|
}
|
|
160855
160903
|
}
|
|
@@ -160869,7 +160917,7 @@ function useDocumentFactory(props, payload) {
|
|
|
160869
160917
|
if (!doc || !execute || !requestId) return;
|
|
160870
160918
|
isRefreshingData.value = true;
|
|
160871
160919
|
try {
|
|
160872
|
-
var _doc$
|
|
160920
|
+
var _doc$model, _doc$model2, _doc$model3, _doc$model4;
|
|
160873
160921
|
const freshExecute = await processDocumentRequest(props, payload, requestId);
|
|
160874
160922
|
if (!freshExecute) return;
|
|
160875
160923
|
lastExecute.value = freshExecute;
|
|
@@ -160903,8 +160951,8 @@ function useDocumentFactory(props, payload) {
|
|
|
160903
160951
|
payload,
|
|
160904
160952
|
materialNo,
|
|
160905
160953
|
query,
|
|
160906
|
-
instances: ((_doc$
|
|
160907
|
-
subTableInfoList: ((_doc$
|
|
160954
|
+
instances: ((_doc$model = doc.model) === null || _doc$model === void 0 ? void 0 : _doc$model.getWidgetInstances()) ?? [],
|
|
160955
|
+
subTableInfoList: ((_doc$model2 = doc.model) === null || _doc$model2 === void 0 ? void 0 : _doc$model2.getSubTableInfoList()) ?? [],
|
|
160908
160956
|
fieldList,
|
|
160909
160957
|
masterSlaveList
|
|
160910
160958
|
});
|
|
@@ -160916,9 +160964,9 @@ function useDocumentFactory(props, payload) {
|
|
|
160916
160964
|
paramsConfig,
|
|
160917
160965
|
processFieldPermission: requestInfo.processFieldPermission || "[]",
|
|
160918
160966
|
instanceId: requestId,
|
|
160919
|
-
instances: ((_doc$
|
|
160967
|
+
instances: ((_doc$model3 = doc.model) === null || _doc$model3 === void 0 ? void 0 : _doc$model3.getWidgetInstances()) ?? [],
|
|
160920
160968
|
payload,
|
|
160921
|
-
subTableInfoList: ((_doc$
|
|
160969
|
+
subTableInfoList: ((_doc$model4 = doc.model) === null || _doc$model4 === void 0 ? void 0 : _doc$model4.getSubTableInfoList()) ?? [],
|
|
160922
160970
|
requestInfo,
|
|
160923
160971
|
initializeValues: false
|
|
160924
160972
|
}));
|
|
@@ -160926,7 +160974,7 @@ function useDocumentFactory(props, payload) {
|
|
|
160926
160974
|
doc.dataManager.setRuntimeSpecificConfig(runtimeConfigCache);
|
|
160927
160975
|
await finalizeAfterRawDataReplace(doc, payload.ctx);
|
|
160928
160976
|
syncInitRawDataSnapshot(doc);
|
|
160929
|
-
|
|
160977
|
+
dataSourceBinding === null || dataSourceBinding === void 0 || dataSourceBinding.refresh();
|
|
160930
160978
|
} finally {
|
|
160931
160979
|
await waitForDataManagerSettle(doc);
|
|
160932
160980
|
isRefreshingData.value = false;
|
|
@@ -160936,7 +160984,7 @@ function useDocumentFactory(props, payload) {
|
|
|
160936
160984
|
const hasData = computed(() => docIns.value !== null);
|
|
160937
160985
|
function clear() {
|
|
160938
160986
|
disposeDataSources();
|
|
160939
|
-
|
|
160987
|
+
jp();
|
|
160940
160988
|
docIns.value = null;
|
|
160941
160989
|
docInfo.value = snapshotDocInfo();
|
|
160942
160990
|
}
|
|
@@ -160944,7 +160992,7 @@ function useDocumentFactory(props, payload) {
|
|
|
160944
160992
|
documentLoadVersion++;
|
|
160945
160993
|
invalidateFetch();
|
|
160946
160994
|
disposeDataSources();
|
|
160947
|
-
|
|
160995
|
+
jp();
|
|
160948
160996
|
});
|
|
160949
160997
|
return {
|
|
160950
160998
|
dataSourceManager,
|
|
@@ -168916,7 +168964,7 @@ var init_overlay_render_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
168916
168964
|
const objectBom = tmplBomCRef === null || tmplBomCRef === void 0 || (_tmplBomCRef$value = tmplBomCRef.value) === null || _tmplBomCRef$value === void 0 || (_tmplBomCRef$value = _tmplBomCRef$value.formInstBom) === null || _tmplBomCRef$value === void 0 || (_tmplBomCRef$value = _tmplBomCRef$value.formTmplObjectBomList) === null || _tmplBomCRef$value === void 0 ? void 0 : _tmplBomCRef$value.find((item) => item.object_key_ === belongingObject);
|
|
168917
168965
|
const scanRules = !!((_objectBom$value = objectBom.value) === null || _objectBom$value === void 0 ? void 0 : _objectBom$value.disable_barcode_parsing_) ? void 0 : toParseRuleConfig((_objectBom$value2 = objectBom.value) === null || _objectBom$value2 === void 0 ? void 0 : _objectBom$value2.barcode_parsing_rules_id_);
|
|
168918
168966
|
const objectFields = fieldList.value.filter((item) => item.belongingObject === belongingObject);
|
|
168919
|
-
await
|
|
168967
|
+
await P2("COMMON_SCAN", {
|
|
168920
168968
|
title: "扫码录入",
|
|
168921
168969
|
ruleTip: "扫码解析后按字段映射写入表单",
|
|
168922
168970
|
scanRules,
|
|
@@ -168945,7 +168993,7 @@ var init_overlay_render_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
168945
168993
|
if (!rows.length) throw new Error("匹配不到对应物料,请按规则上料或新增物料");
|
|
168946
168994
|
let material = rows[0];
|
|
168947
168995
|
if (rows.length > 1) {
|
|
168948
|
-
const selected = await
|
|
168996
|
+
const selected = await P2("SCAN_MULTI_ROWS_MODAL", { rows: rows.map((e) => {
|
|
168949
168997
|
return {
|
|
168950
168998
|
...e,
|
|
168951
168999
|
productId: e.materialName
|
|
@@ -189249,7 +189297,7 @@ var parse_rule_add_btn_vue_vue_type_script_setup_true_name_parse_rule_add_btn_la
|
|
|
189249
189297
|
label: name,
|
|
189250
189298
|
value: key
|
|
189251
189299
|
}));
|
|
189252
|
-
|
|
189300
|
+
P2("PARSE_RULE_MODAL", {
|
|
189253
189301
|
config: props.modelValue,
|
|
189254
189302
|
formFieldOptions: subFieldOptions,
|
|
189255
189303
|
ruleTip: "默认条码映射字段:条码批次映射批次字段,条码物料编码映射物料编码字段,条码有效期映射有效期字段"
|
|
@@ -189435,7 +189483,7 @@ var bom_entry_editor_vue_vue_type_script_setup_true_name_bom_entry_editor_lang_d
|
|
|
189435
189483
|
};
|
|
189436
189484
|
/** 编辑 */
|
|
189437
189485
|
const edit = async (data) => {
|
|
189438
|
-
|
|
189486
|
+
P2("BOM_ENTRY_MODAL", {
|
|
189439
189487
|
data: cloneDeep(data),
|
|
189440
189488
|
hasIds: calcHasProductIds(data),
|
|
189441
189489
|
openFormulaEditor,
|
|
@@ -189446,7 +189494,7 @@ var bom_entry_editor_vue_vue_type_script_setup_true_name_bom_entry_editor_lang_d
|
|
|
189446
189494
|
};
|
|
189447
189495
|
/** 添加 */
|
|
189448
189496
|
const add = async () => {
|
|
189449
|
-
|
|
189497
|
+
P2("BOM_ENTRY_MODAL", {
|
|
189450
189498
|
hasIds: calcHasProductIds(),
|
|
189451
189499
|
openFormulaEditor,
|
|
189452
189500
|
showConsumePolicy: showConsumePolicy.value
|
|
@@ -192333,7 +192381,7 @@ var object_init_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defi
|
|
|
192333
192381
|
return;
|
|
192334
192382
|
}
|
|
192335
192383
|
const { allFields, objectFields } = baseParam.value;
|
|
192336
|
-
|
|
192384
|
+
P2("MATERIAL_CONSUME_OBJECT_CONFIG", {
|
|
192337
192385
|
allFields,
|
|
192338
192386
|
objectFields: objectFields.filter((f) => !filledObjectFieldKeys.value.includes(f.key)),
|
|
192339
192387
|
RenderFieldWrapper,
|
|
@@ -192350,7 +192398,7 @@ var object_init_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defi
|
|
|
192350
192398
|
console.error("未找到字段渲染组件");
|
|
192351
192399
|
return;
|
|
192352
192400
|
}
|
|
192353
|
-
|
|
192401
|
+
P2("MATERIAL_CONSUME_OBJECT_CONFIG", {
|
|
192354
192402
|
...baseParam.value,
|
|
192355
192403
|
editingItem: obj,
|
|
192356
192404
|
RenderFieldWrapper,
|
|
@@ -192750,7 +192798,7 @@ var DataInitPanel_vue_vue_type_script_setup_true_name_panel_data_init_lang_defau
|
|
|
192750
192798
|
class: "panel-collapse",
|
|
192751
192799
|
title: "数据获取"
|
|
192752
192800
|
}, {
|
|
192753
|
-
default: withCtx(() => [createElementVNode("div", _hoisted_4$21, [createVNode(unref(
|
|
192801
|
+
default: withCtx(() => [createElementVNode("div", _hoisted_4$21, [createVNode(unref($p), {
|
|
192754
192802
|
modelValue: formState.value.dataSources,
|
|
192755
192803
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => formState.value.dataSources = $event),
|
|
192756
192804
|
"context-fields": contextFields.value,
|
|
@@ -192762,7 +192810,7 @@ var DataInitPanel_vue_vue_type_script_setup_true_name_panel_data_init_lang_defau
|
|
|
192762
192810
|
class: "panel-collapse",
|
|
192763
192811
|
title: "字段填充"
|
|
192764
192812
|
}, {
|
|
192765
|
-
default: withCtx(() => [createElementVNode("div", _hoisted_5$16, [createVNode(unref(
|
|
192813
|
+
default: withCtx(() => [createElementVNode("div", _hoisted_5$16, [createVNode(unref(Dp), {
|
|
192766
192814
|
modelValue: formState.value.fieldFills,
|
|
192767
192815
|
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => formState.value.fieldFills = $event),
|
|
192768
192816
|
"data-sources": formState.value.dataSources,
|
|
@@ -204990,4 +205038,4 @@ function registerSuite(plugin) {
|
|
|
204990
205038
|
plugin.install();
|
|
204991
205039
|
}
|
|
204992
205040
|
//#endregion
|
|
204993
|
-
export { BuiltinComponentTypeConst,
|
|
205041
|
+
export { BuiltinComponentTypeConst, $p as DataSources, doc_design_layout_default as DocDesignLayout, DocModeTypeConst, doc_render_layout_default as DocRenderLayout, layout_default as GctLayout, PaperSizeConst, calcUsedFieldsFromRuntimeJson, edhrSuitePlugin, eqmSuitePlugin, getPlacedFieldsByType, getPlacedSealFields, registerPanelSchemas, registerSuite, setupPlatformAdapters, setupVueRuntime, useDocController, useDocOperations, useDocRuntimeProvider, useDocSuite, useDocumentFactory, useFormTmplAndModelInit, useWord };
|