@gct-paas/excel 0.1.40-beta.4 → 0.1.40-beta.6
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/{BaseComponent-BcxRArl9.js → BaseComponent-Dfx-Xuv4.js} +2 -2
- package/dist/{VueVideoPlayer-DjIr6Duj.js → VueVideoPlayer-DHqhqgGs.js} +2 -2
- package/dist/{align-editor-99-Qs6Pu.js → align-editor-hvllGvX8.js} +1 -1
- package/dist/{barcode-design-BSkeINVU.js → barcode-design-CzlfYJ3s.js} +2 -2
- package/dist/base/index.es.js +207 -76
- package/dist/{diagonal-design-CR7fiPt_.js → diagonal-design-DCVidBZD.js} +2 -2
- package/dist/{dynamic-table-action-D8JTGNuH.js → dynamic-table-action-Dn_iw4tV.js} +6 -6
- package/dist/{dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-CxqmyuOf.js → dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-Cz-fpECL.js} +317 -279
- package/dist/{edit.utils-CXmmCnxE-5YnG7Mod.js → edit.utils-CXmmCnxE-BUEfsAZ3.js} +1 -1
- package/dist/excel.css +370 -267
- package/dist/{exceljs.min-Ckn1GGo5.js → exceljs.min-9FX7NALn.js} +2 -2
- package/dist/{font-editor-CIv2e95b.js → font-editor-ClqMOFPr.js} +3 -3
- package/dist/{image-design-Bg1m0JLl.js → image-design-Cx1YIea4.js} +2 -2
- package/dist/{index-Cjor8DKp.js → index-B3KkYxiX.js} +2 -2
- package/dist/{index-k_OAhCop.js → index-B4c_0M_d.js} +2 -2
- package/dist/{index-DHvbmtBs.js → index-B9xwdsWY.js} +4 -4
- package/dist/{index-mxtsA6kq.js → index-BKnroXXX.js} +3 -3
- package/dist/{index-CeCk3V8r.js → index-BLrixMsM.js} +2 -2
- package/dist/{index-BzdZIihy.js → index-BM1sPB29.js} +1 -1
- package/dist/{index-OHHmkknK.js → index-BRc6frrP.js} +2 -2
- package/dist/{index-DbXQsLWI.js → index-BWHnHAjs.js} +1 -1
- package/dist/{index-BA_C4l6u.js → index-BdYI71iy.js} +2 -2
- package/dist/{index-DZxTtwzU.js → index-BgzCdSQH.js} +3 -3
- package/dist/{index-BIraya7K.js → index-BjSWHyj1.js} +1 -1
- package/dist/{index-DG8I3apA.js → index-BkoKoZbl.js} +1 -1
- package/dist/{index-CzgWwoNs.js → index-CG5LAGQp.js} +2 -2
- package/dist/{index-0kZW-sd4.js → index-COmm7d4j.js} +1 -1
- package/dist/{index-rYGo3i42.js → index-CVG3Z6rp.js} +3 -3
- package/dist/{index-DgRCrbjc.js → index-CWjwF2wn.js} +2 -2
- package/dist/{index-BunphFuS.js → index-CcB9d0A-.js} +2 -2
- package/dist/{index-DN83FHdO.js → index-CjCFTTI3.js} +1 -1
- package/dist/{index-C7oAVon1.js → index-Cj_t_73x.js} +1 -1
- package/dist/{index-CeMM7qev.js → index-Cl_94fZQ.js} +2 -2
- package/dist/{index-DtwSR71M.js → index-CyPwg8fV.js} +1 -1
- package/dist/{index-BZQrpoEw.js → index-D4zDlgqU.js} +1 -1
- package/dist/{index-CUPuw1ng.js → index-D7ZzvopL.js} +2 -2
- package/dist/{index-DFJ19IKk.js → index-DCv60fUG.js} +2 -2
- package/dist/{index-C8H-5Adw.js → index-DYyVGkv3.js} +2 -2
- package/dist/{index-CRLydLMf.js → index-DkXBzlUL.js} +2 -2
- package/dist/{index-Do1A3RoM.js → index-Dp2q7ZPo.js} +2 -2
- package/dist/{index-CTyszA6m.js → index-Dru8lW-_.js} +1 -1
- package/dist/{index-B4XMnrfl.js → index-NJZaG-sl.js} +2 -2
- package/dist/{index-6wZ6Y0W3.js → index-NqYSNDX9.js} +2 -2
- package/dist/{index-CsIKJvLT.js → index-a6chYhIK.js} +2 -2
- package/dist/{index-DprbnBOa.js → index-lf11EIvP.js} +2 -2
- package/dist/{index-DLZKDd1x.js → index-mCrtpdq2.js} +539 -460
- package/dist/{index-D7DYLntD.js → index-q_pMlfx9.js} +4 -4
- package/dist/{index-CYb8lY4k.js → index-vEKEZcff.js} +2 -2
- package/dist/index.es.js +2 -2
- package/dist/{mb-render-BW27j2qa.js → mb-render-DjSdDuaL.js} +8 -2
- package/dist/{online-form-model-select.vue_vue_type_script_setup_true_name_online-form-model-select_lang-JuGFe7ao.js → online-form-model-select.vue_vue_type_script_setup_true_name_online-form-model-select_lang-QrM7rL99.js} +8 -1
- package/dist/{pagination-design-C59mi1du.js → pagination-design-DJEw5vlL.js} +2 -2
- package/dist/paper-widget-design-C3rm4SzP.js +4 -0
- package/dist/{print-runtime-instance-CT3EaCDJ.js → print-runtime-instance-BtxZfq51.js} +1 -1
- package/dist/{print-snapshot-renderer-Bm-fpHUt.js → print-snapshot-renderer-0D5MUsR6.js} +3 -3
- package/dist/{qrcode-design-Brx73IFy.js → qrcode-design-9jPH-S8z.js} +1 -1
- package/dist/{revo-grid.entry-CREHbVNI.js → revo-grid.entry-BhCFcCVS.js} +1 -1
- package/dist/{revogr-attribution_7.entry-CBUFDouS.js → revogr-attribution_7.entry-icpuI3V8.js} +3 -3
- package/dist/{revogr-clipboard_3.entry-C9D5KQdr.js → revogr-clipboard_3.entry-Dm2_h2RL.js} +2 -2
- package/dist/{revogr-data_4.entry-DpskbAdh.js → revogr-data_4.entry-DlVEyI7J.js} +2 -2
- package/dist/{revogr-filter-panel.entry-CqdNtCzb.js → revogr-filter-panel.entry-MJr7PMnd.js} +1 -1
- package/dist/seal-design-CtzWGxnH.js +4 -0
- package/dist/{serialnumber-design-CJM0MP9w.js → serialnumber-design-BsfJH6Kp.js} +1 -1
- package/dist/shared/index.es.js +10 -8
- package/dist/{single-field-drop-B82L3Pe3.js → single-field-drop-DXjppxDh.js} +2 -2
- package/dist/{size-editor-CybxvVWn.js → size-editor-DzQdRb-7.js} +1 -1
- package/dist/src/nocode-base/src/hooks/form-model/form-model-controller.d.ts +2 -0
- package/dist/src/nocode-base/src/hooks/inspection-module-qty.d.ts +4 -0
- package/dist/src/nocode-base/src/hooks/material-consume-object/initialize-autofill.d.ts +17 -0
- package/dist/src/nocode-base/src/hooks/render-page/initialize-runtime.d.ts +2 -7
- package/dist/src/nocode-base/src/hooks/render-page/types.d.ts +4 -1
- package/dist/src/nocode-base/src/hooks/useRenderPageFactory.d.ts +4 -6
- package/dist/src/nocode-base/src/interface/render.d.ts +3 -1
- package/dist/src/nocode-base/src/interface/transform.d.ts +9 -1
- package/dist/src/nocode-base/src/runtime/runtime-field-initializer.d.ts +1 -0
- package/dist/src/online-form/src/views/__cell_widgets__/cell-widget-design.vue.d.ts +1 -0
- package/dist/src/online-form/src/views/__cell_widgets__/fake-field/fake-option-select.vue.d.ts +1 -0
- package/dist/src/shared/enum/field-type.d.ts +2 -2
- package/dist/src/shared/enum/index.d.ts +2 -0
- package/dist/src/shared/enum/product-type.d.ts +9 -0
- package/dist/src/shared/enum/production-identification.d.ts +19 -0
- package/dist/{sub-table-factory-BrwMeqWM.js → sub-table-factory-Ddx70uYs.js} +4 -4
- package/dist/{text-design-Qem3wirw.js → text-design-DmLrMqdk.js} +2 -2
- package/dist/{throttle-Cpk1LoGk-Bm1w1voP.js → throttle-Cpk1LoGk-DLVGpnFw.js} +1 -1
- package/dist/{timediff-design-CiGukjs9.js → timediff-design-CYqz1SKQ.js} +1 -1
- package/dist/{trace-like-wrapper-DrUDJDgX.js → trace-like-wrapper-CVl0Vm8r.js} +2 -2
- package/dist/{value-editor.vue_vue_type_style_index_0_lang-DXBstCLM.js → value-editor.vue_vue_type_style_index_0_lang-B0aWEk5D.js} +2 -2
- package/dist/web-render/index.es.js +3 -3
- package/dist/{widget-barcode-DH30z4yi.js → widget-barcode-DwYihxgd.js} +4 -4
- package/dist/{widget-diagonal-Bv-Eb2Fi.js → widget-diagonal-DWdxDYVl.js} +3 -3
- package/dist/{widget-image-67Q9gRCG.js → widget-image-D1SXIbMU.js} +5 -5
- package/dist/{widget-line-DP3dKXNd.js → widget-line-BNTbSFkx.js} +2 -2
- package/dist/{widget-pagination-B66PcWXU.js → widget-pagination-25CKNe-i.js} +5 -5
- package/dist/{widget-power-yRy8897o.js → widget-power-BSjWdgM3.js} +3 -3
- package/dist/{widget-qrcode-DN3R8N41.js → widget-qrcode-Kbe9Skrd.js} +3 -3
- package/dist/{widget-rangelimit-zWZZMPvn.js → widget-rangelimit-TWPoG8DX.js} +3 -3
- package/dist/{widget-serialnumber-p7wB7-Bz.js → widget-serialnumber-uNkQzBIT.js} +1 -1
- package/dist/{widget-text-BQO0Rf5A.js → widget-text-DH4r60jo.js} +5 -5
- package/dist/{widget-timediff-C1VxWKle.js → widget-timediff-Bv8VCgrv.js} +2 -2
- package/package.json +2 -2
- package/dist/paper-widget-design-BNmIT8FC.js +0 -4
- package/dist/seal-design-XhQfBjxE.js +0 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as normalizeFieldWidth } from "./dynamic-table-action-
|
|
1
|
+
import { n as normalizeFieldWidth } from "./dynamic-table-action-Dn_iw4tV.js";
|
|
2
2
|
import { get, pick } from "lodash-es";
|
|
3
|
-
import { F as FIELD_TYPE } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-
|
|
3
|
+
import { F as FIELD_TYPE } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-Cz-fpECL.js";
|
|
4
4
|
import { f as fontStyleAttrs } from "./config.enum-B8UZQTON.js";
|
|
5
5
|
const DESIGNER_DEFAULT_TYPES = /* @__PURE__ */ new Set([
|
|
6
6
|
FIELD_TYPE.DEVICE,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, toRaw, shallowRef, computed, ref, readonly, onMounted, watch, normalizeClass, onBeforeUnmount, h as h$1, watchEffect, unref, createVNode, reactive } from "vue";
|
|
2
|
-
import { N as commonjsGlobal, Q as getDefaultExportFromCjs } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-
|
|
3
|
-
import { r as require$$0 } from "./index-
|
|
2
|
+
import { N as commonjsGlobal, Q as getDefaultExportFromCjs } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-Cz-fpECL.js";
|
|
3
|
+
import { r as require$$0 } from "./index-a6chYhIK.js";
|
|
4
4
|
var window_1;
|
|
5
5
|
var hasRequiredWindow;
|
|
6
6
|
function requireWindow() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, computed, resolveComponent, openBlock, createElementBlock, Fragment, renderList, normalizeClass, createVNode, withCtx, createElementVNode, createTextVNode, toDisplayString } from "vue";
|
|
2
|
-
import { a9 as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-
|
|
2
|
+
import { a9 as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-Cz-fpECL.js";
|
|
3
3
|
const _hoisted_1 = { class: "align-group-box" };
|
|
4
4
|
const _hoisted_2 = ["onClick"];
|
|
5
5
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, watch, openBlock, createElementBlock, normalizeStyle, normalizeClass, createElementVNode, toDisplayString, createCommentVNode } from "vue";
|
|
2
2
|
import { pick } from "lodash-es";
|
|
3
|
-
import { u as useSpreadSheet, h as useModelFields, l as loadBwip } from "./index-
|
|
4
|
-
import { R as PaperWidgeValueType, a9 as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-
|
|
3
|
+
import { u as useSpreadSheet, h as useModelFields, l as loadBwip } from "./index-mCrtpdq2.js";
|
|
4
|
+
import { R as PaperWidgeValueType, a9 as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-Cz-fpECL.js";
|
|
5
5
|
import "dayjs";
|
|
6
6
|
import "@gct-paas/form-base";
|
|
7
7
|
import "ant-design-vue";
|
package/dist/base/index.es.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { p as api, a0 as PlatformEnum, F as FIELD_TYPE,
|
|
2
|
-
import { aQ, aS,
|
|
3
|
-
import { T as getRuntimeDataFieldId, F as parseRuntimeFieldPath, U as buildRuntimeFieldPath, f as findFieldProfile, V as resolveRuntimeFieldProps, W as resolveRuntimeFieldState, X as getRuntimeDependencyOutputKey, Y as isRowAddedInCurrentFormChange, t as MaterialConsumptionPatternEnum, Z as MaterialConsumeTableController, $ as setFormulaParamsConfig, a0 as normalizeRuntime, K as createRuntimeInstanceContext, R as RuntimeFormStateStore, a1 as RuntimeSheetService, g as getBusinessFieldKey, a2 as validateObjectBomQtyOnSubmit, a3 as closeValidatorPopovers, a4 as enrichFormChangeRowDetails, N as NCB_PROVIDE, L as RuntimeInstanceRegistry, a5 as useMaterialBalance, a6 as collectFormChangeFieldLocations, a7 as nextFormChangeRowViewHistoryId } from "../dynamic-table-action-
|
|
4
|
-
import { B as B2, a8 as a82, i, _, a9, P as P2, aa, Q, E, ab as ab2, ac, ad, ae, af, M, a, ag, d, ah, ai as ai2, aj as aj2, ak as ak2, al as al2, am as am2, an as an2, ao as ao2, z, ap as ap2, q as q2, aq, e, ar as ar2, as, at, au, p, A as A2, av, aw, ax, ay as ay2, j, C, h as h2, az, aA, aB, aC as aC2, aD as aD2, aE, w, r, aF, x, m, aG, s as s2, aH, H, I, u, y, J, l, o, G as G2, k, v as v2 } from "../dynamic-table-action-
|
|
1
|
+
import { p as api, a0 as PlatformEnum, F as FIELD_TYPE, bj as getRowId, bk as findRuntimeTableRow, b9 as RenderModeEnum, C as ComponentTypeEnum, aB as findFieldMain, c as getProfileByTableType, d as getBusinessProfileByRefModelType, b as isBusinessSubTableProfile, ax as RangeValidateMode, bw as assembleRules, bx as isAttachFieldActive, aK as Dependency_ENUM, bl as calculateFormula, aJ as ASSIGNMENTSTRATEGY_ENUM, U as getParseFormulaVarInfos, by as fetchHistoryConsume, bz as isBomGranted, aW as renderUtils, bv as uuid2, bA as parseFrontConfig, aN as CheckDsTypeEnum, aH as transformUtils, bB as baseDataUtils, bC as initializeSealFields, Z as FormTypeEnum, bD as normalizeToArray, bE as safeParseArray, bF as BpmnNodeTypeEnum, bG as mergeByMultiKey, a9 as _export_sfc, bH as evaluateInspectionDecisionRule, bI as areValidationCommentsEqual, bJ as useNocodeEmitter, bK as commonUtils, aL as EntityModelCategoryEnum } from "../dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-Cz-fpECL.js";
|
|
2
|
+
import { aQ, aS, b0, a2, bL, bM, B, bN, A, aj, bO, bP, bQ, bi, bR, aT, aC, aR, aO, aP, bS, ak, ao, bT, bU, aI, a4, ai, aD, bV, a1, am, L, bW, bX, bY, O, s, P, ab, q, R, G, bZ, b_, ay, a7, a3, a5, a6, a8, h, b$, an, ar, al, c0, c1, c2, c3, bh, c4, c5, c6, c7, c8, c9, ca, cb, cc, cd, bm, ce, cf, aZ, cg, b1, b2, ch, ci, cj, ck, cl, cm, cn, co, cp, cq, aY, cr, b3, bf, cs, ct, cu, ap, v, cv, cw, cx, bn, a_ } from "../dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-Cz-fpECL.js";
|
|
3
|
+
import { T as getRuntimeDataFieldId, F as parseRuntimeFieldPath, U as buildRuntimeFieldPath, f as findFieldProfile, V as resolveRuntimeFieldProps, W as resolveRuntimeFieldState, X as getRuntimeDependencyOutputKey, Y as isRowAddedInCurrentFormChange, t as MaterialConsumptionPatternEnum, Z as MaterialConsumeTableController, $ as setFormulaParamsConfig, a0 as normalizeRuntime, K as createRuntimeInstanceContext, R as RuntimeFormStateStore, a1 as RuntimeSheetService, g as getBusinessFieldKey, a2 as validateObjectBomQtyOnSubmit, a3 as closeValidatorPopovers, a4 as enrichFormChangeRowDetails, N as NCB_PROVIDE, L as RuntimeInstanceRegistry, a5 as useMaterialBalance, a6 as collectFormChangeFieldLocations, a7 as nextFormChangeRowViewHistoryId } from "../dynamic-table-action-Dn_iw4tV.js";
|
|
4
|
+
import { B as B2, a8 as a82, i, _, a9, P as P2, aa, Q, E, ab as ab2, ac, ad, ae, af, M, a, ag, d, ah, ai as ai2, aj as aj2, ak as ak2, al as al2, am as am2, an as an2, ao as ao2, z, ap as ap2, q as q2, aq, e, ar as ar2, as, at, au, p, A as A2, av, aw, ax, ay as ay2, j, C, h as h2, az, aA, aB, aC as aC2, aD as aD2, aE, w, r, aF, x, m, aG, s as s2, aH, H, I, u, y, J, l, o, G as G2, k, v as v2 } from "../dynamic-table-action-Dn_iw4tV.js";
|
|
5
5
|
import { toRaw, watch, toRef, computed, defineComponent, openBlock, createElementBlock, createElementVNode, toDisplayString, shallowRef, markRaw, ref, provide, onUnmounted, reactive, onBeforeUnmount } from "vue";
|
|
6
6
|
import { cloneDeep, defaults, isEmpty, merge, get } from "lodash-es";
|
|
7
7
|
import "dayjs";
|
|
8
|
-
import { S as SubTableCoreFactory, R as RuntimeInstanceController } from "../sub-table-factory-
|
|
9
|
-
import { A as A3, D, M as M2, a as a10, P as P3, b, c, d as d2, e as e2, W, f, g, h as h3 } from "../sub-table-factory-
|
|
8
|
+
import { S as SubTableCoreFactory, R as RuntimeInstanceController } from "../sub-table-factory-Ddx70uYs.js";
|
|
9
|
+
import { A as A3, D, M as M2, a as a10, P as P3, b, c, d as d2, e as e2, W, f, g, h as h3 } from "../sub-table-factory-Ddx70uYs.js";
|
|
10
10
|
import { createDataSourceManager, getLegacyFieldFillTargets, createFieldFillRuntime, buildFieldFillRows, isFieldFillTargetProtected, getFieldFillColumn, buildDataSourceContext } from "@gct-paas/form-base";
|
|
11
|
-
import { B as B3, F, M as M3, a as a11, u as u2 } from "../mb-render-
|
|
11
|
+
import { B as B3, F, M as M3, a as a11, u as u2 } from "../mb-render-DjSdDuaL.js";
|
|
12
12
|
const InstanceStatusValues = {
|
|
13
13
|
/** 作废状态 */
|
|
14
14
|
ABANDON: "ABANDON",
|
|
@@ -155,6 +155,32 @@ async function fetchOperationReceiveQty(paramsConfig) {
|
|
|
155
155
|
const num = Number(raw);
|
|
156
156
|
return Number.isNaN(num) ? void 0 : num;
|
|
157
157
|
}
|
|
158
|
+
const INSPECTION_MODULE_QTY_API = {
|
|
159
|
+
modelCategory: "entity",
|
|
160
|
+
modelKey: "em_inspection_list",
|
|
161
|
+
bsKey: "getById"
|
|
162
|
+
};
|
|
163
|
+
function isRecord(value) {
|
|
164
|
+
return value !== null && typeof value === "object" && !Array.isArray(value);
|
|
165
|
+
}
|
|
166
|
+
function parseInspectionModuleQty(res) {
|
|
167
|
+
if (!isRecord(res) || res.ok === false) return void 0;
|
|
168
|
+
const payload = isRecord(res.data) ? res.data : res;
|
|
169
|
+
const row = isRecord(payload.data) ? payload.data : payload;
|
|
170
|
+
const raw = row.inspection_number_;
|
|
171
|
+
if (typeof raw !== "number" && typeof raw !== "string") return void 0;
|
|
172
|
+
if (typeof raw === "string" && raw.trim() === "") return void 0;
|
|
173
|
+
const qty = Number(raw);
|
|
174
|
+
return Number.isFinite(qty) ? qty : void 0;
|
|
175
|
+
}
|
|
176
|
+
async function fetchInspectionModuleQty(txnInstId) {
|
|
177
|
+
if (txnInstId == null || txnInstId === "") return void 0;
|
|
178
|
+
const res = await api.apaas.modelComprehensive.getBizServiceModelCategoryModelKeyBsKey(
|
|
179
|
+
INSPECTION_MODULE_QTY_API,
|
|
180
|
+
{ id: txnInstId }
|
|
181
|
+
);
|
|
182
|
+
return parseInspectionModuleQty(res);
|
|
183
|
+
}
|
|
158
184
|
function listRuntimeFieldRows(record, subFieldKey, targetFieldId) {
|
|
159
185
|
if (!subFieldKey) {
|
|
160
186
|
return [{ row: record.formState.state }];
|
|
@@ -213,7 +239,7 @@ class RuntimeFieldInitializer {
|
|
|
213
239
|
for (const { widget, sheetId, referenceInfo } of this.record.fields.allWidgets()) {
|
|
214
240
|
const props = widget.props;
|
|
215
241
|
const fieldId = getRuntimeDataFieldId(props);
|
|
216
|
-
const kind = props.fieldType === FIELD_TYPE.UDI || props.bizType === FIELD_TYPE.UDI ? "udi" : props.bizType === FIELD_TYPE.OPERATION_RECEIVE_QTY ? "receive" : props.tmplId && [FIELD_TYPE.INTEGER, FIELD_TYPE.LONG].includes(props.fieldType) ? "count" : this.info.isMockReport && props.fieldType === FIELD_TYPE.RECORD_NO && props.newSpecificConfig?.newSnNo ? "recordNo" : void 0;
|
|
242
|
+
const kind = props.fieldType === FIELD_TYPE.UDI || props.bizType === FIELD_TYPE.UDI ? "udi" : props.bizType === FIELD_TYPE.OPERATION_RECEIVE_QTY ? "receive" : props.fieldType === FIELD_TYPE.INSPECTION_MODULE_QTY || props.bizType === FIELD_TYPE.INSPECTION_MODULE_QTY ? "inspection" : props.tmplId && [FIELD_TYPE.INTEGER, FIELD_TYPE.LONG].includes(props.fieldType) ? "count" : this.info.isMockReport && props.fieldType === FIELD_TYPE.RECORD_NO && props.newSpecificConfig?.newSnNo ? "recordNo" : void 0;
|
|
217
243
|
if (!kind || !fieldId || props.isFieldModel) continue;
|
|
218
244
|
for (const { row } of listRuntimeFieldRows(
|
|
219
245
|
this.record,
|
|
@@ -225,11 +251,13 @@ class RuntimeFieldInitializer {
|
|
|
225
251
|
if (this.initialized.get(key) === toRaw(row)) continue;
|
|
226
252
|
this.initialized.set(key, toRaw(row));
|
|
227
253
|
if (props.subFieldKey ? row.id_ : (this.info.instanceStatus ?? this.metadata.instanceStatus) !== InstanceStatusValues.UNFILLED) {
|
|
228
|
-
if (kind !== "recordNo") continue;
|
|
254
|
+
if (kind !== "recordNo" && kind !== "inspection") continue;
|
|
229
255
|
}
|
|
230
256
|
const previous = row[fieldId];
|
|
231
257
|
if (kind === "udi" && isPresent(previous)) continue;
|
|
232
258
|
const path = this.record.formState.getFieldPath(row, fieldId);
|
|
259
|
+
if (kind === "inspection" && (isPresent(previous) || this.record.formState.isUserModified(path)))
|
|
260
|
+
continue;
|
|
233
261
|
this.tasks.add(key);
|
|
234
262
|
const task = this.record.asyncTasks.run(
|
|
235
263
|
key,
|
|
@@ -251,7 +279,11 @@ class RuntimeFieldInitializer {
|
|
|
251
279
|
sheetId,
|
|
252
280
|
blockOnFailure: false
|
|
253
281
|
}
|
|
254
|
-
).finally(() =>
|
|
282
|
+
).finally(() => {
|
|
283
|
+
this.tasks.delete(key);
|
|
284
|
+
if (kind === "inspection" && this.initialized.get(key) === toRaw(row) && !isPresent(row[fieldId]))
|
|
285
|
+
this.initialized.delete(key);
|
|
286
|
+
});
|
|
255
287
|
pending.push(task);
|
|
256
288
|
}
|
|
257
289
|
}
|
|
@@ -263,18 +295,31 @@ class RuntimeFieldInitializer {
|
|
|
263
295
|
}
|
|
264
296
|
await Promise.allSettled(pending);
|
|
265
297
|
}
|
|
266
|
-
request(key, fetch) {
|
|
298
|
+
request(key, fetch, cacheResult = true) {
|
|
267
299
|
const existing = this.requests.get(key);
|
|
268
300
|
if (existing) return existing;
|
|
269
|
-
const task = fetch().
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
301
|
+
const task = fetch().then(
|
|
302
|
+
(value) => {
|
|
303
|
+
if (!cacheResult) this.requests.delete(key);
|
|
304
|
+
return value;
|
|
305
|
+
},
|
|
306
|
+
(error) => {
|
|
307
|
+
this.requests.delete(key);
|
|
308
|
+
throw error;
|
|
309
|
+
}
|
|
310
|
+
);
|
|
273
311
|
this.requests.set(key, task);
|
|
274
312
|
return task;
|
|
275
313
|
}
|
|
276
314
|
async readDefault(kind, props) {
|
|
277
315
|
if (kind === "recordNo") return props.newSpecificConfig.newSnNo;
|
|
316
|
+
if (kind === "inspection") {
|
|
317
|
+
return this.request(
|
|
318
|
+
`inspection:${this.metadata.txnInstId ?? ""}`,
|
|
319
|
+
() => fetchInspectionModuleQty(this.metadata.txnInstId),
|
|
320
|
+
false
|
|
321
|
+
);
|
|
322
|
+
}
|
|
278
323
|
if (kind === "count") {
|
|
279
324
|
const params = { ...JSON.parse(this.metadata.params || "{}"), ...this.info.paramsConfig };
|
|
280
325
|
const name = params.materialNo || this.metadata.materialNo;
|
|
@@ -1014,6 +1059,71 @@ class FormTmplBomController {
|
|
|
1014
1059
|
};
|
|
1015
1060
|
}
|
|
1016
1061
|
}
|
|
1062
|
+
async function prepareObjectProductDefaults({
|
|
1063
|
+
enabled,
|
|
1064
|
+
fields,
|
|
1065
|
+
objectInitialValues = []
|
|
1066
|
+
}) {
|
|
1067
|
+
const defaults2 = /* @__PURE__ */ new WeakMap();
|
|
1068
|
+
if (!enabled) return defaults2;
|
|
1069
|
+
const requests = /* @__PURE__ */ new Map();
|
|
1070
|
+
const tasks = [];
|
|
1071
|
+
function fetchProduct(productId) {
|
|
1072
|
+
const existing = requests.get(productId);
|
|
1073
|
+
if (existing) return existing;
|
|
1074
|
+
const request = (async () => {
|
|
1075
|
+
const result = await api.apaas.modelComprehensive.getBizServiceModelCategoryModelKeyBsKey(
|
|
1076
|
+
{
|
|
1077
|
+
modelCategory: "entity",
|
|
1078
|
+
modelKey: "em_product",
|
|
1079
|
+
bsKey: "rdoGetVersionById"
|
|
1080
|
+
},
|
|
1081
|
+
// 沿用现有接口约定,传完整默认值,不拆分版本 ID。
|
|
1082
|
+
{ id: productId }
|
|
1083
|
+
);
|
|
1084
|
+
const product = result?.data;
|
|
1085
|
+
if (!product || typeof product !== "object" || Array.isArray(product) || Object.keys(product).length === 0) {
|
|
1086
|
+
throw new Error(`未找到默认物料详情:${productId}`);
|
|
1087
|
+
}
|
|
1088
|
+
return { ...product, _DICT: result?.dict ?? product._DICT };
|
|
1089
|
+
})();
|
|
1090
|
+
requests.set(productId, request);
|
|
1091
|
+
return request;
|
|
1092
|
+
}
|
|
1093
|
+
for (const entry of fields) {
|
|
1094
|
+
if (!entry || typeof entry !== "object") continue;
|
|
1095
|
+
const field = entry;
|
|
1096
|
+
if (typeof field.fieldId !== "string" || !field.belongingObject || field.fieldType !== FIELD_TYPE.PRODUCT || field.isFieldModel || field.subFieldKey || field.subModelKey) {
|
|
1097
|
+
continue;
|
|
1098
|
+
}
|
|
1099
|
+
const configured = objectInitialValues.find(
|
|
1100
|
+
(item) => item.objectField === field.belongingObject
|
|
1101
|
+
);
|
|
1102
|
+
if (!configured?.values || !Object.prototype.hasOwnProperty.call(configured.values, field.fieldId)) {
|
|
1103
|
+
continue;
|
|
1104
|
+
}
|
|
1105
|
+
const productDefault = {
|
|
1106
|
+
value: configured.values[field.fieldId]
|
|
1107
|
+
};
|
|
1108
|
+
defaults2.set(entry, productDefault);
|
|
1109
|
+
const productId = productDefault.value;
|
|
1110
|
+
const needsAutofill = field.enableAutofill !== false && field.autofillRules?.some((rule) => !!rule.toField);
|
|
1111
|
+
if (!needsAutofill || typeof productId !== "string" || productId === "") continue;
|
|
1112
|
+
tasks.push(
|
|
1113
|
+
fetchProduct(productId).then(
|
|
1114
|
+
(sourceData) => {
|
|
1115
|
+
productDefault.sourceData = sourceData;
|
|
1116
|
+
},
|
|
1117
|
+
(error) => {
|
|
1118
|
+
const reason = error instanceof Error ? error.message : String(error);
|
|
1119
|
+
throw new Error(`对象初始化数据填充失败,字段 ${field.fieldId}:${reason}`);
|
|
1120
|
+
}
|
|
1121
|
+
)
|
|
1122
|
+
);
|
|
1123
|
+
}
|
|
1124
|
+
await Promise.all(tasks);
|
|
1125
|
+
return defaults2;
|
|
1126
|
+
}
|
|
1017
1127
|
async function getModelQueries(opts) {
|
|
1018
1128
|
const isEdhr = await isEdhrSuite();
|
|
1019
1129
|
if (!isEdhr || !opts.mainMaterialNo) {
|
|
@@ -1411,7 +1521,13 @@ function createRuntimeInstanceInitializer(props, payload, getConsumeData) {
|
|
|
1411
1521
|
params: { id: paramsConfig?.warehouseId }
|
|
1412
1522
|
}
|
|
1413
1523
|
]);
|
|
1524
|
+
const objectProductDefaults = await prepareObjectProductDefaults({
|
|
1525
|
+
enabled: fillModeType === RenderModeEnum.FormMode && selfInfo.dataStatus !== "STASH" && selfInfo.dataStatus !== "SUBMIT",
|
|
1526
|
+
fields: fieldInfoMap.useDefaultValueFields,
|
|
1527
|
+
objectInitialValues: runtimeContext.formConfig.objectInitialValues
|
|
1528
|
+
});
|
|
1414
1529
|
const defaultDataMap = renderUtils.getDefaultValueMapByField({
|
|
1530
|
+
objectProductDefaults,
|
|
1415
1531
|
defaultValueFields: fieldInfoMap.useDefaultValueFields,
|
|
1416
1532
|
mainMaterialNo: paramsConfig?.materialNo || selfInfo.materialNo,
|
|
1417
1533
|
mainRelatedLotNo: paramsConfig?.relatedLotNo,
|
|
@@ -1504,6 +1620,15 @@ function createRuntimeInstanceInitializer(props, payload, getConsumeData) {
|
|
|
1504
1620
|
});
|
|
1505
1621
|
initializeSealFields(floatingFields, formState);
|
|
1506
1622
|
}
|
|
1623
|
+
await transformUtils.getEventInitDataLoaded({
|
|
1624
|
+
formConfig: runtimeContext.formConfig,
|
|
1625
|
+
formState,
|
|
1626
|
+
viewMode: fillModeType,
|
|
1627
|
+
dataStatus: selfInfo.dataStatus,
|
|
1628
|
+
ofCtx: { formPrint: payload.formPrint, id: result.id }
|
|
1629
|
+
}).catch((error) => {
|
|
1630
|
+
console.error("Error in getEventInitDataLoaded:", error);
|
|
1631
|
+
});
|
|
1507
1632
|
runtimeFormStateStore = new RuntimeFormStateStore(
|
|
1508
1633
|
formState,
|
|
1509
1634
|
// 子表信息覆盖普通/固定/检验表、二维关联列以及各类业务表;不能只依赖已放置字段。
|
|
@@ -1930,7 +2055,13 @@ function createRuntimePersistenceAccess(runtimeRegistry, props, payload) {
|
|
|
1930
2055
|
const signatureKeys = (runtimeRecord.context.businessIndex.useSignatureFields || []).map(
|
|
1931
2056
|
(item) => item.fieldId
|
|
1932
2057
|
);
|
|
1933
|
-
const idsFormState = transformUtils.getFormDataIdsMap(
|
|
2058
|
+
const idsFormState = transformUtils.getFormDataIdsMap(
|
|
2059
|
+
newFormState,
|
|
2060
|
+
signatureKeys,
|
|
2061
|
+
(path) => runtimeRecord.fields.findByPath(path).some(
|
|
2062
|
+
({ widget, subFieldKey }) => subFieldKey !== path && [FIELD_TYPE.DATE, FIELD_TYPE.DATE_TIME].includes(widget?.props.fieldType)
|
|
2063
|
+
)
|
|
2064
|
+
);
|
|
1934
2065
|
if (saveToken ? !runtimeRecord.persistence.completeSave(saveToken) : requestedRevision !== runtimeRecord.formState.revision) {
|
|
1935
2066
|
return false;
|
|
1936
2067
|
}
|
|
@@ -3315,23 +3446,23 @@ export {
|
|
|
3315
3446
|
A3 as AllocateTableCore,
|
|
3316
3447
|
B3 as BaseFormModelFetcher,
|
|
3317
3448
|
aS as BinarizeMethodOptions,
|
|
3318
|
-
|
|
3449
|
+
b0 as BindCmpStyleEnum,
|
|
3319
3450
|
a2 as BooleanShowMode,
|
|
3320
3451
|
B2 as BorderTD,
|
|
3321
3452
|
BpmnNodeTypeEnum,
|
|
3322
|
-
|
|
3323
|
-
|
|
3453
|
+
bL as BpmnSignatureTypeEnum,
|
|
3454
|
+
bM as ButtonTypeEnum,
|
|
3324
3455
|
B as BwipCodeType,
|
|
3325
|
-
|
|
3456
|
+
bN as CHECK_TABLE_MEDPRO_PROTOCOL_KEY,
|
|
3326
3457
|
A as CellType,
|
|
3327
3458
|
aj as CellWidgetViewState,
|
|
3328
3459
|
CheckDsTypeEnum,
|
|
3329
|
-
|
|
3460
|
+
bO as CodeRunner,
|
|
3330
3461
|
ComponentTypeEnum,
|
|
3331
|
-
|
|
3332
|
-
|
|
3333
|
-
|
|
3334
|
-
|
|
3462
|
+
bP as Config_Fields,
|
|
3463
|
+
bQ as ControlStatusEnum,
|
|
3464
|
+
bi as DEVICE_GROUP_QUERY_KEY,
|
|
3465
|
+
bR as DEVICE_SEARCH_API,
|
|
3335
3466
|
aT as DateFormat,
|
|
3336
3467
|
aC as DecimalDisplayMode,
|
|
3337
3468
|
aR as DenoiseMethodOptions,
|
|
@@ -3340,7 +3471,7 @@ export {
|
|
|
3340
3471
|
i as DeviceLinkTmplUtil,
|
|
3341
3472
|
aP as DeviceParamsTypeTitle,
|
|
3342
3473
|
D as DevicePartConsumeTableCore,
|
|
3343
|
-
|
|
3474
|
+
bS as DeviceStatus,
|
|
3344
3475
|
ak as DiagonalDirection,
|
|
3345
3476
|
ao as DiagonalVertex,
|
|
3346
3477
|
_ as DocumentLayout,
|
|
@@ -3348,8 +3479,8 @@ export {
|
|
|
3348
3479
|
P2 as DocumentPaper,
|
|
3349
3480
|
aa as DynamicQuickFillModal,
|
|
3350
3481
|
Q as DynamicTableAction,
|
|
3351
|
-
|
|
3352
|
-
|
|
3482
|
+
bT as EBR_PROVIDE_ENUM,
|
|
3483
|
+
bU as EFieldBizTypeEnum,
|
|
3353
3484
|
E as EMPTY_PRODUCT_VERSION_ID,
|
|
3354
3485
|
aI as EmptySymbol,
|
|
3355
3486
|
a4 as FallbackSignTypeEnum,
|
|
@@ -3363,14 +3494,14 @@ export {
|
|
|
3363
3494
|
FormTypeEnum,
|
|
3364
3495
|
aD as ImageDisplayModeEnum,
|
|
3365
3496
|
InstanceStatusValues,
|
|
3366
|
-
|
|
3497
|
+
bV as JoinModelTypeEum,
|
|
3367
3498
|
ad as LEGACY_RUNTIME_FORM_CONFIG_KEYS,
|
|
3368
3499
|
ae as LEGACY_RUNTIME_SHEET_ID,
|
|
3369
3500
|
af as LEGACY_RUNTIME_SHEET_TITLE,
|
|
3370
3501
|
a1 as LabelPosition,
|
|
3371
3502
|
am as LineDirection,
|
|
3372
3503
|
L as LineType,
|
|
3373
|
-
|
|
3504
|
+
bW as MAX_FRONT_ROW_KEY_LENGTH,
|
|
3374
3505
|
M as MAX_RUNTIME_SHEETS,
|
|
3375
3506
|
a as MAX_RUNTIME_SHEET_TITLE_LENGTH,
|
|
3376
3507
|
M3 as MBRender,
|
|
@@ -3382,10 +3513,10 @@ export {
|
|
|
3382
3513
|
M2 as MaterialRequisitionTableCore,
|
|
3383
3514
|
MaterialStatusEnum,
|
|
3384
3515
|
a10 as MaterialSubstitutionTableCore,
|
|
3385
|
-
|
|
3516
|
+
bX as MobileFillTypeEnum,
|
|
3386
3517
|
NCB_PROVIDE,
|
|
3387
3518
|
ah as OCR_MODEL_PRECISION_ENUM_KEY,
|
|
3388
|
-
|
|
3519
|
+
bY as OfficeTypeEnum,
|
|
3389
3520
|
O as Orientation,
|
|
3390
3521
|
s as PageSizeEnum,
|
|
3391
3522
|
P as PaginationFormat,
|
|
@@ -3395,10 +3526,10 @@ export {
|
|
|
3395
3526
|
G as ParamModelTypeEnum,
|
|
3396
3527
|
P3 as PartStocktakeTableCore,
|
|
3397
3528
|
PlatformEnum,
|
|
3398
|
-
|
|
3529
|
+
bZ as PosEnum,
|
|
3399
3530
|
b as PretreatmentListTableCore,
|
|
3400
3531
|
c as ProfileDrivenSubTableCore,
|
|
3401
|
-
|
|
3532
|
+
b_ as RUNTIME_COLUMN_ROW_KEY,
|
|
3402
3533
|
ay as RangeCompareOp,
|
|
3403
3534
|
RangeValidateMode,
|
|
3404
3535
|
RenderModeEnum,
|
|
@@ -3423,7 +3554,7 @@ export {
|
|
|
3423
3554
|
ao2 as SubTableCore,
|
|
3424
3555
|
SubTableCoreFactory,
|
|
3425
3556
|
h as SubTableType,
|
|
3426
|
-
|
|
3557
|
+
b$ as SummaryApproveHisTypeEnum,
|
|
3427
3558
|
an as TimeDiffFormat,
|
|
3428
3559
|
ar as ViewTypeEnum,
|
|
3429
3560
|
W as WarehouseInTableCore,
|
|
@@ -3431,18 +3562,18 @@ export {
|
|
|
3431
3562
|
g as WarehouseOutTableCore,
|
|
3432
3563
|
h3 as WarehouseOutboundTableCore,
|
|
3433
3564
|
al as WidgetImageSizeMode,
|
|
3434
|
-
|
|
3565
|
+
c0 as applyCheckDsDataToRuntime,
|
|
3435
3566
|
z as applyConsumeObjectTraceChange,
|
|
3436
|
-
|
|
3567
|
+
c1 as applyMedProCheckDsDataToRuntime,
|
|
3437
3568
|
baseDataUtils,
|
|
3438
|
-
|
|
3439
|
-
|
|
3440
|
-
|
|
3569
|
+
c2 as bindRuntimeTableColumns,
|
|
3570
|
+
c3 as buildDeviceBaseQuery,
|
|
3571
|
+
bh as buildDeviceFilterQuery,
|
|
3441
3572
|
ap2 as buildFormChangeDisplayRows,
|
|
3442
3573
|
q2 as buildObjectLotExtraQuery,
|
|
3443
3574
|
buildRuntimeFieldPath,
|
|
3444
|
-
|
|
3445
|
-
|
|
3575
|
+
c4 as calcFillData,
|
|
3576
|
+
c5 as calcUtils,
|
|
3446
3577
|
calculateFormula,
|
|
3447
3578
|
collectAnnotationItemsByLocation,
|
|
3448
3579
|
collectFormChangeFieldLocations,
|
|
@@ -3451,65 +3582,65 @@ export {
|
|
|
3451
3582
|
aq as convertV1Runtime,
|
|
3452
3583
|
e as createRuntimeDocumentV2,
|
|
3453
3584
|
createRuntimeInstanceContext,
|
|
3454
|
-
|
|
3585
|
+
c6 as decodeTableCellRowKey,
|
|
3455
3586
|
ar2 as detailsHaveFormChangeRowOps,
|
|
3456
|
-
|
|
3587
|
+
c7 as encodeTableCellRowKey,
|
|
3457
3588
|
enrichFormChangeRowDetails,
|
|
3458
|
-
|
|
3459
|
-
|
|
3589
|
+
c8 as ensureFrontRowKey,
|
|
3590
|
+
c9 as ensureTableRowKeys,
|
|
3460
3591
|
as as extractFormChangeRowDetails,
|
|
3461
|
-
|
|
3462
|
-
|
|
3463
|
-
|
|
3592
|
+
ca as extractKeywordFromQueryData,
|
|
3593
|
+
cb as fetchCheckDsDataForTable,
|
|
3594
|
+
cc as fetchCustomCheckDsData,
|
|
3464
3595
|
fetchHistoryConsume,
|
|
3465
|
-
|
|
3596
|
+
cd as fetchMedProCheckDsData,
|
|
3466
3597
|
fetchOperationReceiveQty,
|
|
3467
3598
|
fetchUdi,
|
|
3468
3599
|
filterAnnotationItemsUpToCurrent,
|
|
3469
|
-
|
|
3470
|
-
|
|
3600
|
+
bm as findRuntimeParentRow,
|
|
3601
|
+
ce as findRuntimeTableCell,
|
|
3471
3602
|
findRuntimeTableRow,
|
|
3472
3603
|
getAppInfo,
|
|
3473
3604
|
getBusinessFieldKey,
|
|
3474
|
-
|
|
3605
|
+
cf as getCheckTableSnapshotKey,
|
|
3475
3606
|
at as getFormChangeRowKey,
|
|
3476
3607
|
au as getFormChangeRowOp,
|
|
3477
3608
|
aZ as getLotLockedReason,
|
|
3478
3609
|
p as getObjectBomMaterialLotQuery,
|
|
3479
3610
|
A2 as getObjectBomProductQuery,
|
|
3480
3611
|
getParseFormulaVarInfos,
|
|
3481
|
-
|
|
3482
|
-
|
|
3483
|
-
|
|
3484
|
-
|
|
3485
|
-
|
|
3612
|
+
cg as getParseRuleConfig,
|
|
3613
|
+
b1 as getParseRuleInfo,
|
|
3614
|
+
b2 as getParseRuleValue,
|
|
3615
|
+
ch as getReinspectionDate,
|
|
3616
|
+
ci as getRenderedRuntimeTableCell,
|
|
3486
3617
|
getRuntimeDataFieldId,
|
|
3487
3618
|
getRuntimeDependencyOutputKey,
|
|
3488
3619
|
av as getSubTableQuickFillInfo,
|
|
3489
3620
|
getSuiteKey,
|
|
3490
|
-
|
|
3491
|
-
|
|
3492
|
-
|
|
3493
|
-
|
|
3621
|
+
cj as handleOldConfig,
|
|
3622
|
+
ck as hasAnyCheckTableSnapshot,
|
|
3623
|
+
cl as hasByTableCheckTableSnapshot,
|
|
3624
|
+
cm as hasSharedCheckTableSnapshot,
|
|
3494
3625
|
aw as isAnnLocationSelected,
|
|
3495
3626
|
ax as isBlank,
|
|
3496
3627
|
isBomGranted,
|
|
3497
3628
|
isEdhrSuite,
|
|
3498
3629
|
isEqmSuite,
|
|
3499
3630
|
ay2 as isFormChangeGhostRow,
|
|
3500
|
-
|
|
3631
|
+
cn as isMedProSuite,
|
|
3501
3632
|
isRowAddedInCurrentFormChange,
|
|
3502
|
-
|
|
3503
|
-
|
|
3504
|
-
|
|
3633
|
+
co as isTableRowKeyMatch,
|
|
3634
|
+
cp as jsonSchemaUtils,
|
|
3635
|
+
cq as judgeUnique,
|
|
3505
3636
|
aY as materialCheck,
|
|
3506
|
-
|
|
3637
|
+
cr as migrateDiagonalDirectionToVertex,
|
|
3507
3638
|
nextFormChangeRowViewHistoryId,
|
|
3508
3639
|
j as normalizeAIOcrTmpl,
|
|
3509
3640
|
C as normalizeHistoricalAutofillRow,
|
|
3510
3641
|
h2 as normalizeHistoricalBusinessRow,
|
|
3511
3642
|
az as normalizeHistoricalFieldConfig,
|
|
3512
|
-
|
|
3643
|
+
b3 as normalizeRefLoaderResult,
|
|
3513
3644
|
normalizeRuntime,
|
|
3514
3645
|
parseFrontConfig,
|
|
3515
3646
|
parseRuntimeFieldPath,
|
|
@@ -3517,11 +3648,11 @@ export {
|
|
|
3517
3648
|
aA as pickObjectFieldKeys,
|
|
3518
3649
|
aB as recordSubtableRowAdd,
|
|
3519
3650
|
aC2 as recordSubtableRowDelete,
|
|
3520
|
-
|
|
3521
|
-
|
|
3651
|
+
bf as refUtils,
|
|
3652
|
+
cs as relocateDeletedRowsToEnd,
|
|
3522
3653
|
renderUtils,
|
|
3523
|
-
|
|
3524
|
-
|
|
3654
|
+
ct as requestMedProCheckDsData,
|
|
3655
|
+
cu as requestNonMedProCheckDsData,
|
|
3525
3656
|
aD2 as resolveAnnotationFieldLocation,
|
|
3526
3657
|
ap as resolveDiagonalVertex,
|
|
3527
3658
|
v as resolveFieldRenderComponent,
|
|
@@ -3534,8 +3665,8 @@ export {
|
|
|
3534
3665
|
m as setSelectAnnotationId,
|
|
3535
3666
|
aG as setSelectMobileTdId,
|
|
3536
3667
|
s2 as setSelectValidatorId,
|
|
3537
|
-
|
|
3538
|
-
|
|
3668
|
+
cv as sqlUtils,
|
|
3669
|
+
cw as stockCheck,
|
|
3539
3670
|
aH as stripLegacyFormConfigFromPaper,
|
|
3540
3671
|
transformUtils,
|
|
3541
3672
|
H as useDependency,
|
|
@@ -3546,8 +3677,8 @@ export {
|
|
|
3546
3677
|
useMaterialBalance,
|
|
3547
3678
|
useNocodeEmitter,
|
|
3548
3679
|
y as useNocodeFormWidget,
|
|
3549
|
-
|
|
3550
|
-
|
|
3680
|
+
cx as useOnlineFormActionButton,
|
|
3681
|
+
bn as useOnlineFormTransformField2Component,
|
|
3551
3682
|
useRenderPageFactory,
|
|
3552
3683
|
J as useRuntimeEditorFlusher,
|
|
3553
3684
|
l as useRuntimeInstanceServices,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, computed, openBlock, createBlock } from "vue";
|
|
2
|
-
import { h as useModelFields, D as Diagonal } from "./index-
|
|
3
|
-
import { ap as resolveDiagonalVertex, a9 as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-
|
|
2
|
+
import { h as useModelFields, D as Diagonal } from "./index-mCrtpdq2.js";
|
|
3
|
+
import { ap as resolveDiagonalVertex, a9 as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-Cz-fpECL.js";
|
|
4
4
|
import "lodash-es";
|
|
5
5
|
import "dayjs";
|
|
6
6
|
import "@gct-paas/form-base";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { reactive, toRaw, computed, watch, onScopeDispose, inject, h, shallowReactive, markRaw, ref, nextTick, toRef, provide, defineComponent, openBlock, createElementBlock, mergeProps, unref, createElementVNode, normalizeClass, renderSlot, createCommentVNode, createVNode, toDisplayString, Fragment, renderList, onUnmounted, isVNode, onMounted, onBeforeMount, resolveComponent, createBlock, withCtx, createTextVNode } from "vue";
|
|
2
|
-
import { aj as CellWidgetViewState, F as FIELD_TYPE,
|
|
2
|
+
import { aj as CellWidgetViewState, F as FIELD_TYPE, b9 as RenderModeEnum, Z as FormTypeEnum, bF as BpmnNodeTypeEnum, cy as getFieldPlaceholder, bX as MobileFillTypeEnum, C as ComponentTypeEnum, a0 as PlatformEnum, cz as isReferenceOptionActive, p as api, bv as uuid2, c5 as calcUtils, bk as findRuntimeTableRow, c9 as ensureTableRowKeys, c2 as bindRuntimeTableColumns, bj as getRowId, cA as FRONT_ROW_KEY, co as isTableRowKeyMatch, bx as isAttachFieldActive, cB as filterRulesByTrigger, cC as isEmptyValue$1, c6 as decodeTableCellRowKey, c8 as ensureFrontRowKey, b1 as getParseRuleInfo, aH as transformUtils, aY as materialCheck, aZ as getLotLockedReason, a_ as validateReinspectionDate, bo as FormulaRuleFieldKeyEnum, h as SubTableType, b2 as getParseRuleValue, cD as buildError, I as CreateType, bm as findRuntimeParentRow, aK as Dependency_ENUM, aJ as ASSIGNMENTSTRATEGY_ENUM, bK as commonUtils, aO as DeviceLink, a9 as _export_sfc, ci as getRenderedRuntimeTableCell, A as CellType, cs as relocateDeletedRowsToEnd, cE as resetTableRowIdentity, K as useModal, cF as q, cG as QUICK_FILL_ALLOWED_FIELDS, cH as groupFixedTableRows, cI as processQuickFillRows, cJ as getIsGroupEmpty } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-Cz-fpECL.js";
|
|
3
3
|
import { cloneDeep, isEmpty, has, pickBy, isNil, mergeWith, omit, last, pick, merge } from "lodash-es";
|
|
4
4
|
import dayjs from "dayjs";
|
|
5
5
|
import { a as useNamespace, I as Icon } from "./AntdIcon-DCIaV352.js";
|
|
6
6
|
import "@gct-paas/form-base";
|
|
7
7
|
import { Modal, message } from "ant-design-vue";
|
|
8
|
-
import { u as useFormModel } from "./mb-render-
|
|
8
|
+
import { u as useFormModel } from "./mb-render-DjSdDuaL.js";
|
|
9
9
|
var MaterialConsumptionPatternEnum = /* @__PURE__ */ ((MaterialConsumptionPatternEnum2) => {
|
|
10
10
|
MaterialConsumptionPatternEnum2["RECORD"] = "record";
|
|
11
11
|
MaterialConsumptionPatternEnum2["BOM"] = "bom";
|
|
@@ -9524,7 +9524,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
9524
9524
|
createElementVNode("i", { class: "iconfont icon-zhuyi" }),
|
|
9525
9525
|
createElementVNode("ul", { class: "tips-list" }, [
|
|
9526
9526
|
createElementVNode("li", null, "可将Excel内容粘贴到表格中,支持使用复制、粘贴、删除快捷键"),
|
|
9527
|
-
createElementVNode("li", null, "
|
|
9527
|
+
createElementVNode("li", null, " 表单中支持快速填报的字段类型:文本、长文本、整数、长整数、小数、精度小数、日期、时间、日期时间、批次/SN、报废物料批次、枚举单选、枚举多选(选项间以“,”分割) ")
|
|
9528
9528
|
])
|
|
9529
9529
|
], -1)),
|
|
9530
9530
|
createElementVNode("div", {
|
|
@@ -9549,7 +9549,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
9549
9549
|
};
|
|
9550
9550
|
}
|
|
9551
9551
|
});
|
|
9552
|
-
const FixedQuickFillModal = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-
|
|
9552
|
+
const FixedQuickFillModal = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-58540cb3"]]);
|
|
9553
9553
|
const _hoisted_1$1 = {
|
|
9554
9554
|
key: 1,
|
|
9555
9555
|
class: "sub-table-action__subtitle"
|
|
@@ -10322,7 +10322,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
10322
10322
|
createElementVNode("i", { class: "iconfont icon-zhuyi" }),
|
|
10323
10323
|
createElementVNode("ul", { class: "tips-list" }, [
|
|
10324
10324
|
createElementVNode("li", null, "可将Excel内容粘贴到表格中,支持使用复制、粘贴、删除快捷键"),
|
|
10325
|
-
createElementVNode("li", null, "
|
|
10325
|
+
createElementVNode("li", null, "表单中支持快速填报的字段类型:文本、长文本、整数、长整数、小数、精度小数、日期、时间、日期时间、批次/SN、报废物料批次、枚举单选、枚举多选(选项间以“,”分割)"),
|
|
10326
10326
|
createElementVNode("li", null, "当前快速填报最多支持200行")
|
|
10327
10327
|
])
|
|
10328
10328
|
], -1)),
|
|
@@ -10342,7 +10342,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
10342
10342
|
};
|
|
10343
10343
|
}
|
|
10344
10344
|
});
|
|
10345
|
-
const DynamicQuickFillModal = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-
|
|
10345
|
+
const DynamicQuickFillModal = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-840aca0a"]]);
|
|
10346
10346
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
10347
10347
|
__name: "dynamic-table-action",
|
|
10348
10348
|
props: {
|