@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.
Files changed (102) hide show
  1. package/dist/{BaseComponent-BcxRArl9.js → BaseComponent-Dfx-Xuv4.js} +2 -2
  2. package/dist/{VueVideoPlayer-DjIr6Duj.js → VueVideoPlayer-DHqhqgGs.js} +2 -2
  3. package/dist/{align-editor-99-Qs6Pu.js → align-editor-hvllGvX8.js} +1 -1
  4. package/dist/{barcode-design-BSkeINVU.js → barcode-design-CzlfYJ3s.js} +2 -2
  5. package/dist/base/index.es.js +207 -76
  6. package/dist/{diagonal-design-CR7fiPt_.js → diagonal-design-DCVidBZD.js} +2 -2
  7. package/dist/{dynamic-table-action-D8JTGNuH.js → dynamic-table-action-Dn_iw4tV.js} +6 -6
  8. 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
  9. package/dist/{edit.utils-CXmmCnxE-5YnG7Mod.js → edit.utils-CXmmCnxE-BUEfsAZ3.js} +1 -1
  10. package/dist/excel.css +370 -267
  11. package/dist/{exceljs.min-Ckn1GGo5.js → exceljs.min-9FX7NALn.js} +2 -2
  12. package/dist/{font-editor-CIv2e95b.js → font-editor-ClqMOFPr.js} +3 -3
  13. package/dist/{image-design-Bg1m0JLl.js → image-design-Cx1YIea4.js} +2 -2
  14. package/dist/{index-Cjor8DKp.js → index-B3KkYxiX.js} +2 -2
  15. package/dist/{index-k_OAhCop.js → index-B4c_0M_d.js} +2 -2
  16. package/dist/{index-DHvbmtBs.js → index-B9xwdsWY.js} +4 -4
  17. package/dist/{index-mxtsA6kq.js → index-BKnroXXX.js} +3 -3
  18. package/dist/{index-CeCk3V8r.js → index-BLrixMsM.js} +2 -2
  19. package/dist/{index-BzdZIihy.js → index-BM1sPB29.js} +1 -1
  20. package/dist/{index-OHHmkknK.js → index-BRc6frrP.js} +2 -2
  21. package/dist/{index-DbXQsLWI.js → index-BWHnHAjs.js} +1 -1
  22. package/dist/{index-BA_C4l6u.js → index-BdYI71iy.js} +2 -2
  23. package/dist/{index-DZxTtwzU.js → index-BgzCdSQH.js} +3 -3
  24. package/dist/{index-BIraya7K.js → index-BjSWHyj1.js} +1 -1
  25. package/dist/{index-DG8I3apA.js → index-BkoKoZbl.js} +1 -1
  26. package/dist/{index-CzgWwoNs.js → index-CG5LAGQp.js} +2 -2
  27. package/dist/{index-0kZW-sd4.js → index-COmm7d4j.js} +1 -1
  28. package/dist/{index-rYGo3i42.js → index-CVG3Z6rp.js} +3 -3
  29. package/dist/{index-DgRCrbjc.js → index-CWjwF2wn.js} +2 -2
  30. package/dist/{index-BunphFuS.js → index-CcB9d0A-.js} +2 -2
  31. package/dist/{index-DN83FHdO.js → index-CjCFTTI3.js} +1 -1
  32. package/dist/{index-C7oAVon1.js → index-Cj_t_73x.js} +1 -1
  33. package/dist/{index-CeMM7qev.js → index-Cl_94fZQ.js} +2 -2
  34. package/dist/{index-DtwSR71M.js → index-CyPwg8fV.js} +1 -1
  35. package/dist/{index-BZQrpoEw.js → index-D4zDlgqU.js} +1 -1
  36. package/dist/{index-CUPuw1ng.js → index-D7ZzvopL.js} +2 -2
  37. package/dist/{index-DFJ19IKk.js → index-DCv60fUG.js} +2 -2
  38. package/dist/{index-C8H-5Adw.js → index-DYyVGkv3.js} +2 -2
  39. package/dist/{index-CRLydLMf.js → index-DkXBzlUL.js} +2 -2
  40. package/dist/{index-Do1A3RoM.js → index-Dp2q7ZPo.js} +2 -2
  41. package/dist/{index-CTyszA6m.js → index-Dru8lW-_.js} +1 -1
  42. package/dist/{index-B4XMnrfl.js → index-NJZaG-sl.js} +2 -2
  43. package/dist/{index-6wZ6Y0W3.js → index-NqYSNDX9.js} +2 -2
  44. package/dist/{index-CsIKJvLT.js → index-a6chYhIK.js} +2 -2
  45. package/dist/{index-DprbnBOa.js → index-lf11EIvP.js} +2 -2
  46. package/dist/{index-DLZKDd1x.js → index-mCrtpdq2.js} +539 -460
  47. package/dist/{index-D7DYLntD.js → index-q_pMlfx9.js} +4 -4
  48. package/dist/{index-CYb8lY4k.js → index-vEKEZcff.js} +2 -2
  49. package/dist/index.es.js +2 -2
  50. package/dist/{mb-render-BW27j2qa.js → mb-render-DjSdDuaL.js} +8 -2
  51. 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
  52. package/dist/{pagination-design-C59mi1du.js → pagination-design-DJEw5vlL.js} +2 -2
  53. package/dist/paper-widget-design-C3rm4SzP.js +4 -0
  54. package/dist/{print-runtime-instance-CT3EaCDJ.js → print-runtime-instance-BtxZfq51.js} +1 -1
  55. package/dist/{print-snapshot-renderer-Bm-fpHUt.js → print-snapshot-renderer-0D5MUsR6.js} +3 -3
  56. package/dist/{qrcode-design-Brx73IFy.js → qrcode-design-9jPH-S8z.js} +1 -1
  57. package/dist/{revo-grid.entry-CREHbVNI.js → revo-grid.entry-BhCFcCVS.js} +1 -1
  58. package/dist/{revogr-attribution_7.entry-CBUFDouS.js → revogr-attribution_7.entry-icpuI3V8.js} +3 -3
  59. package/dist/{revogr-clipboard_3.entry-C9D5KQdr.js → revogr-clipboard_3.entry-Dm2_h2RL.js} +2 -2
  60. package/dist/{revogr-data_4.entry-DpskbAdh.js → revogr-data_4.entry-DlVEyI7J.js} +2 -2
  61. package/dist/{revogr-filter-panel.entry-CqdNtCzb.js → revogr-filter-panel.entry-MJr7PMnd.js} +1 -1
  62. package/dist/seal-design-CtzWGxnH.js +4 -0
  63. package/dist/{serialnumber-design-CJM0MP9w.js → serialnumber-design-BsfJH6Kp.js} +1 -1
  64. package/dist/shared/index.es.js +10 -8
  65. package/dist/{single-field-drop-B82L3Pe3.js → single-field-drop-DXjppxDh.js} +2 -2
  66. package/dist/{size-editor-CybxvVWn.js → size-editor-DzQdRb-7.js} +1 -1
  67. package/dist/src/nocode-base/src/hooks/form-model/form-model-controller.d.ts +2 -0
  68. package/dist/src/nocode-base/src/hooks/inspection-module-qty.d.ts +4 -0
  69. package/dist/src/nocode-base/src/hooks/material-consume-object/initialize-autofill.d.ts +17 -0
  70. package/dist/src/nocode-base/src/hooks/render-page/initialize-runtime.d.ts +2 -7
  71. package/dist/src/nocode-base/src/hooks/render-page/types.d.ts +4 -1
  72. package/dist/src/nocode-base/src/hooks/useRenderPageFactory.d.ts +4 -6
  73. package/dist/src/nocode-base/src/interface/render.d.ts +3 -1
  74. package/dist/src/nocode-base/src/interface/transform.d.ts +9 -1
  75. package/dist/src/nocode-base/src/runtime/runtime-field-initializer.d.ts +1 -0
  76. package/dist/src/online-form/src/views/__cell_widgets__/cell-widget-design.vue.d.ts +1 -0
  77. package/dist/src/online-form/src/views/__cell_widgets__/fake-field/fake-option-select.vue.d.ts +1 -0
  78. package/dist/src/shared/enum/field-type.d.ts +2 -2
  79. package/dist/src/shared/enum/index.d.ts +2 -0
  80. package/dist/src/shared/enum/product-type.d.ts +9 -0
  81. package/dist/src/shared/enum/production-identification.d.ts +19 -0
  82. package/dist/{sub-table-factory-BrwMeqWM.js → sub-table-factory-Ddx70uYs.js} +4 -4
  83. package/dist/{text-design-Qem3wirw.js → text-design-DmLrMqdk.js} +2 -2
  84. package/dist/{throttle-Cpk1LoGk-Bm1w1voP.js → throttle-Cpk1LoGk-DLVGpnFw.js} +1 -1
  85. package/dist/{timediff-design-CiGukjs9.js → timediff-design-CYqz1SKQ.js} +1 -1
  86. package/dist/{trace-like-wrapper-DrUDJDgX.js → trace-like-wrapper-CVl0Vm8r.js} +2 -2
  87. 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
  88. package/dist/web-render/index.es.js +3 -3
  89. package/dist/{widget-barcode-DH30z4yi.js → widget-barcode-DwYihxgd.js} +4 -4
  90. package/dist/{widget-diagonal-Bv-Eb2Fi.js → widget-diagonal-DWdxDYVl.js} +3 -3
  91. package/dist/{widget-image-67Q9gRCG.js → widget-image-D1SXIbMU.js} +5 -5
  92. package/dist/{widget-line-DP3dKXNd.js → widget-line-BNTbSFkx.js} +2 -2
  93. package/dist/{widget-pagination-B66PcWXU.js → widget-pagination-25CKNe-i.js} +5 -5
  94. package/dist/{widget-power-yRy8897o.js → widget-power-BSjWdgM3.js} +3 -3
  95. package/dist/{widget-qrcode-DN3R8N41.js → widget-qrcode-Kbe9Skrd.js} +3 -3
  96. package/dist/{widget-rangelimit-zWZZMPvn.js → widget-rangelimit-TWPoG8DX.js} +3 -3
  97. package/dist/{widget-serialnumber-p7wB7-Bz.js → widget-serialnumber-uNkQzBIT.js} +1 -1
  98. package/dist/{widget-text-BQO0Rf5A.js → widget-text-DH4r60jo.js} +5 -5
  99. package/dist/{widget-timediff-C1VxWKle.js → widget-timediff-Bv8VCgrv.js} +2 -2
  100. package/package.json +2 -2
  101. package/dist/paper-widget-design-BNmIT8FC.js +0 -4
  102. package/dist/seal-design-XhQfBjxE.js +0 -4
@@ -1,6 +1,6 @@
1
- import { n as normalizeFieldWidth } from "./dynamic-table-action-D8JTGNuH.js";
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-CxqmyuOf.js";
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-CxqmyuOf.js";
3
- import { r as require$$0 } from "./index-CsIKJvLT.js";
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-CxqmyuOf.js";
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-DLZKDd1x.js";
4
- import { R as PaperWidgeValueType, a9 as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-CxqmyuOf.js";
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";
@@ -1,14 +1,14 @@
1
- import { p as api, a0 as PlatformEnum, F as FIELD_TYPE, bi as getRowId, bj as findRuntimeTableRow, b8 as RenderModeEnum, C as ComponentTypeEnum, aB as findFieldMain, c as getProfileByTableType, d as getBusinessProfileByRefModelType, b as isBusinessSubTableProfile, ax as RangeValidateMode, bv as assembleRules, bw as isAttachFieldActive, aK as Dependency_ENUM, bk as calculateFormula, aJ as ASSIGNMENTSTRATEGY_ENUM, U as getParseFormulaVarInfos, bx as fetchHistoryConsume, by as isBomGranted, aW as renderUtils, bu as uuid2, bz as parseFrontConfig, aN as CheckDsTypeEnum, aH as transformUtils, bA as baseDataUtils, bB as initializeSealFields, Z as FormTypeEnum, bC as normalizeToArray, bD as safeParseArray, bE as BpmnNodeTypeEnum, bF as mergeByMultiKey, a9 as _export_sfc, bG as evaluateInspectionDecisionRule, bH as areValidationCommentsEqual, bI as useNocodeEmitter, bJ as commonUtils, aL as EntityModelCategoryEnum } from "../dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-CxqmyuOf.js";
2
- import { aQ, aS, a$, a2, bK, bL, B, bM, A, aj, bN, bO, bP, bh, bQ, aT, aC, aR, aO, aP, bR, ak, ao, bS, bT, aI, a4, ai, aD, bU, a1, am, L, bV, bW, bX, O, s, P, ab, q, R, G, bY, bZ, ay, a7, a3, a5, a6, a8, h, b_, an, ar, al, b$, c0, c1, c2, bg, c3, c4, c5, c6, c7, c8, c9, ca, cb, cc, bl, cd, ce, aZ, cf, b0, b1, cg, ch, ci, cj, ck, cl, cm, cn, co, cp, aY, cq, b2, be, cr, cs, ct, ap, v, cu, cv, cw, bm, a_ } from "../dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-CxqmyuOf.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-D8JTGNuH.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-D8JTGNuH.js";
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-BrwMeqWM.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-BrwMeqWM.js";
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-BW27j2qa.js";
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(() => this.tasks.delete(key));
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().catch((error) => {
270
- this.requests.delete(key);
271
- throw error;
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(newFormState, signatureKeys);
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
- a$ as BindCmpStyleEnum,
3449
+ b0 as BindCmpStyleEnum,
3319
3450
  a2 as BooleanShowMode,
3320
3451
  B2 as BorderTD,
3321
3452
  BpmnNodeTypeEnum,
3322
- bK as BpmnSignatureTypeEnum,
3323
- bL as ButtonTypeEnum,
3453
+ bL as BpmnSignatureTypeEnum,
3454
+ bM as ButtonTypeEnum,
3324
3455
  B as BwipCodeType,
3325
- bM as CHECK_TABLE_MEDPRO_PROTOCOL_KEY,
3456
+ bN as CHECK_TABLE_MEDPRO_PROTOCOL_KEY,
3326
3457
  A as CellType,
3327
3458
  aj as CellWidgetViewState,
3328
3459
  CheckDsTypeEnum,
3329
- bN as CodeRunner,
3460
+ bO as CodeRunner,
3330
3461
  ComponentTypeEnum,
3331
- bO as Config_Fields,
3332
- bP as ControlStatusEnum,
3333
- bh as DEVICE_GROUP_QUERY_KEY,
3334
- bQ as DEVICE_SEARCH_API,
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
- bR as DeviceStatus,
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
- bS as EBR_PROVIDE_ENUM,
3352
- bT as EFieldBizTypeEnum,
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
- bU as JoinModelTypeEum,
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
- bV as MAX_FRONT_ROW_KEY_LENGTH,
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
- bW as MobileFillTypeEnum,
3516
+ bX as MobileFillTypeEnum,
3386
3517
  NCB_PROVIDE,
3387
3518
  ah as OCR_MODEL_PRECISION_ENUM_KEY,
3388
- bX as OfficeTypeEnum,
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
- bY as PosEnum,
3529
+ bZ as PosEnum,
3399
3530
  b as PretreatmentListTableCore,
3400
3531
  c as ProfileDrivenSubTableCore,
3401
- bZ as RUNTIME_COLUMN_ROW_KEY,
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
- b_ as SummaryApproveHisTypeEnum,
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
- b$ as applyCheckDsDataToRuntime,
3565
+ c0 as applyCheckDsDataToRuntime,
3435
3566
  z as applyConsumeObjectTraceChange,
3436
- c0 as applyMedProCheckDsDataToRuntime,
3567
+ c1 as applyMedProCheckDsDataToRuntime,
3437
3568
  baseDataUtils,
3438
- c1 as bindRuntimeTableColumns,
3439
- c2 as buildDeviceBaseQuery,
3440
- bg as buildDeviceFilterQuery,
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
- c3 as calcFillData,
3445
- c4 as calcUtils,
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
- c5 as decodeTableCellRowKey,
3585
+ c6 as decodeTableCellRowKey,
3455
3586
  ar2 as detailsHaveFormChangeRowOps,
3456
- c6 as encodeTableCellRowKey,
3587
+ c7 as encodeTableCellRowKey,
3457
3588
  enrichFormChangeRowDetails,
3458
- c7 as ensureFrontRowKey,
3459
- c8 as ensureTableRowKeys,
3589
+ c8 as ensureFrontRowKey,
3590
+ c9 as ensureTableRowKeys,
3460
3591
  as as extractFormChangeRowDetails,
3461
- c9 as extractKeywordFromQueryData,
3462
- ca as fetchCheckDsDataForTable,
3463
- cb as fetchCustomCheckDsData,
3592
+ ca as extractKeywordFromQueryData,
3593
+ cb as fetchCheckDsDataForTable,
3594
+ cc as fetchCustomCheckDsData,
3464
3595
  fetchHistoryConsume,
3465
- cc as fetchMedProCheckDsData,
3596
+ cd as fetchMedProCheckDsData,
3466
3597
  fetchOperationReceiveQty,
3467
3598
  fetchUdi,
3468
3599
  filterAnnotationItemsUpToCurrent,
3469
- bl as findRuntimeParentRow,
3470
- cd as findRuntimeTableCell,
3600
+ bm as findRuntimeParentRow,
3601
+ ce as findRuntimeTableCell,
3471
3602
  findRuntimeTableRow,
3472
3603
  getAppInfo,
3473
3604
  getBusinessFieldKey,
3474
- ce as getCheckTableSnapshotKey,
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
- cf as getParseRuleConfig,
3482
- b0 as getParseRuleInfo,
3483
- b1 as getParseRuleValue,
3484
- cg as getReinspectionDate,
3485
- ch as getRenderedRuntimeTableCell,
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
- ci as handleOldConfig,
3491
- cj as hasAnyCheckTableSnapshot,
3492
- ck as hasByTableCheckTableSnapshot,
3493
- cl as hasSharedCheckTableSnapshot,
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
- cm as isMedProSuite,
3631
+ cn as isMedProSuite,
3501
3632
  isRowAddedInCurrentFormChange,
3502
- cn as isTableRowKeyMatch,
3503
- co as jsonSchemaUtils,
3504
- cp as judgeUnique,
3633
+ co as isTableRowKeyMatch,
3634
+ cp as jsonSchemaUtils,
3635
+ cq as judgeUnique,
3505
3636
  aY as materialCheck,
3506
- cq as migrateDiagonalDirectionToVertex,
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
- b2 as normalizeRefLoaderResult,
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
- be as refUtils,
3521
- cr as relocateDeletedRowsToEnd,
3651
+ bf as refUtils,
3652
+ cs as relocateDeletedRowsToEnd,
3522
3653
  renderUtils,
3523
- cs as requestMedProCheckDsData,
3524
- ct as requestNonMedProCheckDsData,
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
- cu as sqlUtils,
3538
- cv as stockCheck,
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
- cw as useOnlineFormActionButton,
3550
- bm as useOnlineFormTransformField2Component,
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-DLZKDd1x.js";
3
- import { ap as resolveDiagonalVertex, a9 as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-CxqmyuOf.js";
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, b8 as RenderModeEnum, Z as FormTypeEnum, bE as BpmnNodeTypeEnum, cx as getFieldPlaceholder, bW as MobileFillTypeEnum, C as ComponentTypeEnum, a0 as PlatformEnum, cy as isReferenceOptionActive, p as api, bu as uuid2, c4 as calcUtils, bj as findRuntimeTableRow, c8 as ensureTableRowKeys, c1 as bindRuntimeTableColumns, bi as getRowId, cz as FRONT_ROW_KEY, cn as isTableRowKeyMatch, bw as isAttachFieldActive, cA as filterRulesByTrigger, cB as isEmptyValue$1, c5 as decodeTableCellRowKey, c7 as ensureFrontRowKey, b0 as getParseRuleInfo, aH as transformUtils, aY as materialCheck, aZ as getLotLockedReason, a_ as validateReinspectionDate, bn as FormulaRuleFieldKeyEnum, h as SubTableType, b1 as getParseRuleValue, cC as buildError, I as CreateType, bl as findRuntimeParentRow, aK as Dependency_ENUM, aJ as ASSIGNMENTSTRATEGY_ENUM, bJ as commonUtils, aO as DeviceLink, a9 as _export_sfc, ch as getRenderedRuntimeTableCell, A as CellType, cr as relocateDeletedRowsToEnd, cD as resetTableRowIdentity, K as useModal, cE as q, cF as QUICK_FILL_ALLOWED_FIELDS, cG as groupFixedTableRows, cH as processQuickFillRows, cI as getIsGroupEmpty } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-CxqmyuOf.js";
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-BW27j2qa.js";
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, " 表单中支持快速填报的字段类型:文本、长文本、整数、长整数、小数、精度小数、日期、时间、日期时间、LOT/SN、报废物料批次、枚举单选、枚举多选(选项间以“,”分割) ")
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-b589958f"]]);
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, "表单中支持快速填报的字段类型:文本、长文本、整数、长整数、小数、精度小数、日期、时间、日期时间、LOT/SN、报废物料批次、枚举单选、枚举多选(选项间以“,”分割)"),
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-ae9acd3f"]]);
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: {