@gct-paas/excel 0.1.48-beta.0 → 0.1.49

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 (209) hide show
  1. package/README.md +4 -3
  2. package/dist/AntdIcon-DCIaV352.js +1108 -0
  3. package/dist/{BaseComponent-CuX5xLFK.js → BaseComponent-BujOt502.js} +3 -4
  4. package/dist/{VueVideoPlayer-CBBB12Hj.js → VueVideoPlayer-B8GR2HPo.js} +2 -2
  5. package/dist/{align-editor-Df9gS31T.js → align-editor--BUxJjPg.js} +1 -1
  6. package/dist/{barcode-design-B34-4xJ9.js → barcode-design-DGX6Ol4t.js} +2 -3
  7. package/dist/base/index.es.js +228 -519
  8. package/dist/{diagonal-design-D0HXMI8w.js → diagonal-design-oiPfvxr7.js} +2 -3
  9. package/dist/{dynamic-table-action-9sxv3gW5.js → dynamic-table-action-Bhkrp7KE.js} +353 -460
  10. package/dist/{dynamic-table-action.vue_vue_type_style_index_0_scoped_8710052f_lang-YSIO0k9J.js → dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-CidYX2eX.js} +597 -2298
  11. package/dist/{edit.utils-CXmmCnxE-0uJiCs33.js → edit.utils-CXmmCnxE-BXlWf2Zf.js} +1 -1
  12. package/dist/excel.css +723 -611
  13. package/dist/{exceljs.min-Doeyz39_.js → exceljs.min-Ta0dJQqu.js} +2 -2
  14. package/dist/{font-editor-B8A9tDhO.js → font-editor-Dmj2hu7T.js} +3 -3
  15. package/dist/{image-design-CVyCbbef.js → image-design-C3yJcthI.js} +8 -3
  16. package/dist/{index-Bb3Ugl3c.js → index-1kD3Vcrg.js} +2 -3
  17. package/dist/{index-DA7GAWZ1.js → index-B0Qf1-mt.js} +3 -4
  18. package/dist/{index-ucaRXWE8.js → index-B2VHOqo4.js} +2 -3
  19. package/dist/{index-D_hAd0MQ.js → index-B4ZpSIPH.js} +3 -4
  20. package/dist/{index-CMmaJ4Ss.js → index-B4hIBKZ6.js} +2 -3
  21. package/dist/index-B6csmYLK.js +4353 -0
  22. package/dist/{index-R95URjcc.js → index-BDr7t7vL.js} +1 -2
  23. package/dist/{index-D0VBKmKt.js → index-BEEhGWk7.js} +2 -3
  24. package/dist/{index-CS1tP-l0.js → index-BOMuRlHQ.js} +2 -3
  25. package/dist/{index-FCg2Jzvu.js → index-Bd15pfRH.js} +1 -2
  26. package/dist/{index-Uy8bXkuC.js → index-BlCF32GJ.js} +3 -4
  27. package/dist/{index-hDsTasdu.js → index-BtAlyN0W.js} +2 -3
  28. package/dist/{index-CDObWZ7G.js → index-BwuwoFQQ.js} +2 -3
  29. package/dist/{index-TeozNhWH.js → index-C4SreE7Q.js} +2 -3
  30. package/dist/{index-B7Yt5TSq.js → index-C6WDE2xc.js} +1 -2
  31. package/dist/{index-dUCz8OdV.js → index-CEYSrHod.js} +2 -3
  32. package/dist/{index-CzztJ4fH.js → index-CMN1t7G7.js} +3 -4
  33. package/dist/{index-BLJdXkdZ.js → index-CUTV5Yr2.js} +4 -5
  34. package/dist/{index-BwyHByzZ.js → index-CZo7qVZK.js} +1 -2
  35. package/dist/{index-DKKIL32g.js → index-CaLRSpkL.js} +2 -3
  36. package/dist/{index-BOO2K9Vu.js → index-D9lmC_sX.js} +3 -4
  37. package/dist/{index-Bj2qRb0q.js → index-DBSvao2o.js} +1 -2
  38. package/dist/{index-DMVIENZW.js → index-DF8n1Gru.js} +3 -4
  39. package/dist/{index-DuuvFB0e.js → index-DLTES9Zq.js} +2 -3
  40. package/dist/{index-CGU3uK4z.js → index-DMAuxwlt.js} +1 -2
  41. package/dist/{index-XE84LVO7.js → index-DQC7zJRO.js} +1 -2
  42. package/dist/{index-RG23XjoT.js → index-DRKCOV3w.js} +1 -2
  43. package/dist/{index-VrLq9hAc.js → index-DdOpcuy6.js} +3736 -8994
  44. package/dist/{index-vEZ4Yr2u.js → index-GIYmXP7h.js} +2 -3
  45. package/dist/{index-CNmwpU3G.js → index-IOqBW_eS.js} +3 -7
  46. package/dist/{index-PSQkEXxq.js → index-KQqw3i9h.js} +2 -3
  47. package/dist/{index-7VROqGqR.js → index-L7CRRS4N.js} +2 -3
  48. package/dist/{index-B3hu8heh.js → index-OwTnsnnd.js} +2 -3
  49. package/dist/{index-Cn_bmfoD.js → index-UnwowxL3.js} +1 -2
  50. package/dist/{index-DU4dWvY6.js → index-wKwGHLnP.js} +1 -2
  51. package/dist/index.es.js +46 -52
  52. package/dist/mb-render-CQlqaMrC.js +276 -0
  53. package/dist/{online-form-model-select.vue_vue_type_script_setup_true_name_online-form-model-select_lang-ApLSXGFP.js → online-form-model-select.vue_vue_type_script_setup_true_name_online-form-model-select_lang-219qzsVL.js} +3 -27
  54. package/dist/{pagination-design-B5DxwV5F.js → pagination-design-CNML3qGx.js} +2 -3
  55. package/dist/paper-widget-design-B8WyX87-.js +4 -0
  56. package/dist/{print-runtime-instance-BDM-anCd.js → print-runtime-instance-DKR1MX8-.js} +1 -1
  57. package/dist/{print-snapshot-renderer-kB1Bw7A_.js → print-snapshot-renderer-BIWDQkSC.js} +3 -3
  58. package/dist/{qrcode-design-bN48s3rk.js → qrcode-design-CUQ4gaJ0.js} +1 -1
  59. package/dist/{revo-grid.entry-BXEGtAbW.js → revo-grid.entry-Be5Mx_h7.js} +1 -1
  60. package/dist/{revogr-attribution_7.entry-CImeTxBl.js → revogr-attribution_7.entry-DmJFrubR.js} +3 -3
  61. package/dist/{revogr-clipboard_3.entry-DqcrJ6zB.js → revogr-clipboard_3.entry-COcvqK0w.js} +2 -2
  62. package/dist/{revogr-data_4.entry-Ccdsy3nO.js → revogr-data_4.entry-Dc4luGHv.js} +2 -2
  63. package/dist/{revogr-filter-panel.entry-B2xM2jvB.js → revogr-filter-panel.entry-B1l-ouo-.js} +1 -1
  64. package/dist/seal-design-Q8W8Umib.js +4 -0
  65. package/dist/{serialnumber-design-BGTOIn2S.js → serialnumber-design-hcI8TwmS.js} +1 -1
  66. package/dist/shared/index.es.js +28 -29
  67. package/dist/{single-field-drop-b2b71HAk.js → single-field-drop-CnuMgeEW.js} +3 -2
  68. package/dist/{size-editor-DtX2f2CF.js → size-editor-D4ZNlV-c.js} +1 -1
  69. package/dist/src/adapter/adapter.d.ts +1 -1
  70. package/dist/src/adapter/index.d.ts +0 -2
  71. package/dist/src/domain/table/business/material/material-substitution/profile/field-keys.d.ts +1 -37
  72. package/dist/src/domain/table/business/material/material-substitution/runtime/row-change-handlers.d.ts +0 -7
  73. package/dist/src/domain/table/design/autofill-expander.d.ts +0 -2
  74. package/dist/src/domain/table/design/hooks/on-field-attach.d.ts +0 -6
  75. package/dist/src/domain/table/index.d.ts +1 -1
  76. package/dist/src/domain/table/types.d.ts +0 -2
  77. package/dist/src/index.d.ts +0 -8
  78. package/dist/src/nocode-base/src/components/document-sub-table-action/dynamic-table-action.vue.d.ts +2 -0
  79. package/dist/src/nocode-base/src/components/document-sub-table-action/sub-table-action.vue.d.ts +3 -0
  80. package/dist/src/nocode-base/src/components/document-sub-table-action/type.d.ts +4 -0
  81. package/dist/src/nocode-base/src/components/material-consume/types.d.ts +5 -1
  82. package/dist/src/nocode-base/src/core/sub-table/profile-driven-sub-table-core.d.ts +4 -4
  83. package/dist/src/nocode-base/src/core/sub-table/sub-table-core.d.ts +4 -1
  84. package/dist/src/nocode-base/src/core/sub-table/utils/sterilize/field-keys.d.ts +2 -1
  85. package/dist/src/nocode-base/src/hooks/material-consume/material-consume-table-controller.d.ts +6 -0
  86. package/dist/src/nocode-base/src/hooks/material-consume/mc-render.d.ts +28 -1
  87. package/dist/src/nocode-base/src/hooks/render-page/initialize-runtime.d.ts +8 -9
  88. package/dist/src/nocode-base/src/hooks/render-page/types.d.ts +1 -7
  89. package/dist/src/nocode-base/src/hooks/useCalcFunction.d.ts +2 -8
  90. package/dist/src/nocode-base/src/hooks/useRenderPageFactory.d.ts +6 -55
  91. package/dist/src/nocode-base/src/hooks/useRuntimeInstanceServices.d.ts +0 -24
  92. package/dist/src/nocode-base/src/interface/ref-loader.d.ts +1 -12
  93. package/dist/src/nocode-base/src/interface/render.d.ts +1 -2
  94. package/dist/src/nocode-base/src/interface/transform.d.ts +0 -3
  95. package/dist/src/nocode-base/src/runtime/conversions/v1-runtime.d.ts +1 -1
  96. package/dist/src/nocode-base/src/runtime/runtime-field-initializer.d.ts +0 -1
  97. package/dist/src/nocode-base/src/runtime/runtime-field-state.d.ts +2 -5
  98. package/dist/src/nocode-base/src/runtime/runtime-form-state-store.d.ts +2 -0
  99. package/dist/src/nocode-base/src/runtime/runtime-instance-registry.d.ts +5 -8
  100. package/dist/src/nocode-base/src/runtime/runtime-persistence-coordinator.d.ts +7 -2
  101. package/dist/src/nocode-base/src/types/common/base.d.ts +2 -8
  102. package/dist/src/nocode-base/src/types/render/mc-render.d.ts +15 -2
  103. package/dist/src/nocode-base/src/types/render/sub-table-render.d.ts +10 -0
  104. package/dist/src/nocode-web-render/src/components/print-fill-background-selector.vue.d.ts +2 -0
  105. package/dist/src/nocode-web-render/src/hooks/index.d.ts +2 -0
  106. package/dist/src/{shared → nocode-web-render/src}/hooks/useWebUpload.d.ts +1 -1
  107. package/dist/src/nocode-web-render/src/hooks/userFormPrint.d.ts +15 -0
  108. package/dist/src/nocode-web-render/src/index.d.ts +6 -0
  109. package/dist/src/nocode-web-render/src/logic/index.d.ts +1 -0
  110. package/dist/src/nocode-web-render/src/render/common/index.d.ts +2 -0
  111. package/dist/src/nocode-web-render/src/render/common/modal-manager.d.ts +20 -0
  112. package/dist/src/{adapter/web → nocode-web-render/src/render/common}/open-util.d.ts +1 -1
  113. package/dist/src/nocode-web-render/src/render/index.d.ts +10 -0
  114. package/dist/src/{online-form/src/views/designer/modules/panel/sub-table/comps → nocode-web-render/src/render/parse-rule}/add-rule-btn.vue.d.ts +1 -1
  115. package/dist/src/nocode-web-render/src/render/parse-rule/index.d.ts +3 -0
  116. package/dist/src/nocode-web-render/src/render/parse-rule/parse-rule-modal.vue.d.ts +15 -0
  117. package/dist/src/nocode-web-render/src/render/sub-table/allocate/allocate-web-render.d.ts +4 -0
  118. package/dist/src/nocode-web-render/src/render/sub-table/allocate/index.d.ts +1 -0
  119. package/dist/src/{adapter/web → nocode-web-render/src/render/sub-table/common}/inventory-scan-columns.d.ts +1 -1
  120. package/dist/src/nocode-web-render/src/render/sub-table/common/multi-rows-modal.vue.d.ts +15 -0
  121. package/dist/src/nocode-web-render/src/render/sub-table/common/scan-modal.vue.d.ts +19 -0
  122. package/dist/src/{adapter/web → nocode-web-render/src/render/sub-table/common}/sub-table-render.d.ts +5 -2
  123. package/dist/src/nocode-web-render/src/render/sub-table/index.d.ts +3 -0
  124. package/dist/src/nocode-web-render/src/render/sub-table/material-balance/index.d.ts +1 -0
  125. package/dist/src/{adapter/web → nocode-web-render/src/render/sub-table/material-balance}/material-consume-modal.vue.d.ts +1 -1
  126. package/dist/src/{adapter/web/material-balance-render.d.ts → nocode-web-render/src/render/sub-table/material-balance/mb-web-render.d.ts} +1 -1
  127. package/dist/src/nocode-web-render/src/render/sub-table/material-consume/bom-modal.vue.d.ts +11 -0
  128. package/dist/src/nocode-web-render/src/render/sub-table/material-consume/index.d.ts +4 -0
  129. package/dist/src/nocode-web-render/src/render/sub-table/material-consume/mc-web-render.d.ts +42 -0
  130. package/dist/src/nocode-web-render/src/render/sub-table/stocktake/index.d.ts +2 -0
  131. package/dist/src/{adapter/web/stocktake-render.d.ts → nocode-web-render/src/render/sub-table/stocktake/stocktake-web-render.d.ts} +2 -2
  132. package/dist/src/nocode-web-render/src/types/hooks/index.d.ts +1 -0
  133. package/dist/src/nocode-web-render/src/types/index.d.ts +1 -0
  134. package/dist/src/online-form/src/components/device/device-select.vue.d.ts +1 -1
  135. package/dist/src/online-form/src/views/__cell_widgets__/common/default-value-rdo-editor/base-vxe-table.vue.d.ts +1 -1
  136. package/dist/src/online-form/src/views/__cell_widgets__/common/default-value-rdo-editor/default-value-rdo-editor.vue.d.ts +4 -4
  137. package/dist/src/online-form/src/views/__cell_widgets__/common/default-value-rdo-editor/rdo-table-dropdown.vue.d.ts +3 -3
  138. package/dist/src/online-form/src/views/designer/constants/index.d.ts +0 -1
  139. package/dist/src/online-form/src/views/designer/hooks/useAllSpreadSheets.d.ts +0 -144
  140. package/dist/src/online-form/src/views/designer/hooks/useSpreadSheet.d.ts +4 -87
  141. package/dist/src/online-form/src/views/designer/modules/panel/sub-table/comps/use-dynamic-sub-table-panel.d.ts +0 -6
  142. package/dist/src/online-form/src/views/designer/modules/panel/sub-table/panel-check-table/select-check-ds-modal.vue.d.ts +3 -3
  143. package/dist/src/online-form/src/views/designer/types/index.d.ts +1 -12
  144. package/dist/src/online-form/src/views/render/__components__/_field_/_base_/cell/cell-auto-complete.vue.d.ts +2 -2
  145. package/dist/src/online-form/src/views/render/__components__/_field_/_base_/cell/cell-date-picker.vue.d.ts +2 -2
  146. package/dist/src/online-form/src/views/render/__components__/_field_/_base_/cell/cell-media.vue.d.ts +1 -1
  147. package/dist/src/online-form/src/views/render/__components__/_field_/_base_/cell/cell-text-input.vue.d.ts +2 -2
  148. package/dist/src/online-form/src/views/render/__components__/_field_/_base_/cell/cell-textarea.vue.d.ts +2 -2
  149. package/dist/src/online-form/src/views/render/__components__/_field_/seal/component/seal-floating-field.vue.d.ts +1 -0
  150. package/dist/src/online-form/src/views/render/__components__/_field_/seal/component/seal-runtime-layer.vue.d.ts +1 -0
  151. package/dist/src/online-form/src/views/render/__components__/_field_/seal/component/use-seal-stamp.d.ts +4 -1
  152. package/dist/src/online-form/src/views/render/__components__/_field_/seal/index.d.ts +0 -1
  153. package/dist/src/online-form/src/views/render/__components__/_field_/trace/common/base-vxe-table.vue.d.ts +1 -1
  154. package/dist/src/shared/components/ColorPicker/src/ColorPicker.vue.d.ts +1 -1
  155. package/dist/src/shared/components/DoubleInput/double-input.vue.d.ts +2 -162
  156. package/dist/src/shared/components/Signature/logic/index.d.ts +0 -14
  157. package/dist/src/shared/enum/field-type.d.ts +3 -8
  158. package/dist/src/shared/index.d.ts +0 -1
  159. package/dist/src/shared/types/index.d.ts +0 -1
  160. package/dist/{sub-table-factory-DoEvzrVN.js → sub-table-factory-Df_Z-LYK.js} +89 -276
  161. package/dist/{text-design-BQVBFcI0.js → text-design-gySXbKUQ.js} +2 -3
  162. package/dist/{throttle-Cpk1LoGk-DR_8z9qq.js → throttle-Cpk1LoGk-DEDsjc1B.js} +1 -1
  163. package/dist/{timediff-design-DioTJEvx.js → timediff-design-BHLUYM_L.js} +1 -2
  164. package/dist/{trace-like-wrapper-CjxBkfYK.js → trace-like-wrapper-CD0q7Bpg.js} +2 -3
  165. package/dist/{value-editor.vue_vue_type_style_index_0_lang-DpfdcyX_.js → value-editor.vue_vue_type_style_index_0_lang-Dp_NLPcS.js} +2 -3
  166. package/dist/web-render/index.d.ts +1 -0
  167. package/dist/web-render/index.es.js +595 -0
  168. package/dist/{widget-barcode-CEn3AYG0.js → widget-barcode-Dho-QBc4.js} +4 -5
  169. package/dist/{widget-diagonal-DbOhaNpW.js → widget-diagonal-LOzS5LGZ.js} +4 -4
  170. package/dist/{widget-image-BGP2w2mj.js → widget-image-CE9y7lzB.js} +7 -5
  171. package/dist/{widget-line-CkSPcw5A.js → widget-line-DK-tRBi0.js} +2 -3
  172. package/dist/{widget-pagination-BH0VtWHT.js → widget-pagination-JLrTk_QY.js} +5 -6
  173. package/dist/{widget-power-DuTIvdpR.js → widget-power-B136JrJ6.js} +4 -4
  174. package/dist/{widget-qrcode-CJJjPnwn.js → widget-qrcode-CQ79eZwR.js} +3 -4
  175. package/dist/{widget-rangelimit-828JH1wm.js → widget-rangelimit-DORQgXtz.js} +4 -3
  176. package/dist/{widget-serialnumber-CIjY3I-t.js → widget-serialnumber-BvhwTK5N.js} +1 -1
  177. package/dist/{widget-text-C_Ja4yWN.js → widget-text-D6au0tli.js} +5 -5
  178. package/dist/{widget-timediff-CjmATkLS.js → widget-timediff-C3SAIS2-.js} +2 -3
  179. package/package.json +6 -2
  180. package/dist/paper-widget-design-A55mbwYv.js +0 -4
  181. package/dist/seal-design-B3FBumLr.js +0 -4
  182. package/dist/src/adapter/web/material-consume-render.d.ts +0 -25
  183. package/dist/src/domain/document-business/business/product-release/profile.d.ts +0 -2
  184. package/dist/src/domain/document-business/business/product-release/service.d.ts +0 -2
  185. package/dist/src/domain/document-business/index.d.ts +0 -2
  186. package/dist/src/domain/document-business/registry.d.ts +0 -2
  187. package/dist/src/domain/document-business/runtime/field-query-runtime.d.ts +0 -4
  188. package/dist/src/domain/document-business/types.d.ts +0 -24
  189. package/dist/src/domain/field/number/product-release-qty-manifest.d.ts +0 -2
  190. package/dist/src/domain/field/query-filter.d.ts +0 -15
  191. package/dist/src/domain/table/business/material/material-substitution/runtime/select-loaders.d.ts +0 -12
  192. package/dist/src/domain/table/business/sterilize/entrust-steril-batch-list/profile/field-keys.d.ts +0 -2
  193. package/dist/src/domain/table/business/warehouse/shared/autofill-source-labels.d.ts +0 -19
  194. package/dist/src/nocode-base/src/hooks/formula-params-cache.d.ts +0 -15
  195. package/dist/src/nocode-base/src/hooks/inspection-module-qty.d.ts +0 -4
  196. package/dist/src/nocode-base/src/hooks/render-page/initial-value-data-sources.d.ts +0 -3
  197. package/dist/src/nocode-base/src/hooks/render-page/runtime-data-sources.d.ts +0 -51
  198. package/dist/src/nocode-base/src/hooks/render-page/sterilization-date.d.ts +0 -3
  199. package/dist/src/nocode-base/src/runtime/designer-default-values.d.ts +0 -23
  200. package/dist/src/nocode-base/src/runtime/runtime-default-value-validation.d.ts +0 -23
  201. package/dist/src/online-form/src/views/designer/modules/panel/panel-rule-config/message-rule-config/rule-modal.vue.d.ts +0 -32
  202. package/dist/src/online-form/src/views/designer/utils/placed-fields.d.ts +0 -9
  203. package/dist/src/online-form/src/views/designer/utils/template-placed-fields.d.ts +0 -7
  204. package/dist/src/shared/components/LimitedNumberInput/limited-number-input.vue.d.ts +0 -41
  205. package/dist/src/shared/components/LimitedNumberInput/number-input-rules.d.ts +0 -16
  206. package/dist/src/shared/types/upload.d.ts +0 -11
  207. package/dist/src/shared/utils/withRequestCache.d.ts +0 -27
  208. /package/dist/src/{adapter/web/setup.d.ts → nocode-web-render/src/adapter/index.d.ts} +0 -0
  209. /package/dist/src/{adapter/web/upload.d.ts → nocode-web-render/src/logic/utils.d.ts} +0 -0
@@ -1,6 +1,6 @@
1
1
  import { shallowReactive } from "vue";
2
- import { a$ as SubTableActionMenuTypeEnum, b0 as getMenuByAction, b1 as SubTableActionEnum, b2 as resolveScanFillData, b3 as resolveScanParsedValue, aG as SubTableCore, b4 as buildDefaultMapFromProfile, b5 as buildFieldStatusFromProfile, b6 as getRowHandlersForFieldChange, b7 as getInsertSubMenu, b8 as resolveScanAdjustType, b9 as resolveScanQty, ba as toDateOnly, bb as hasSubtableBusinessData, bc as getCopySubMenu, bd as isProductBatchEmptyRow } from "./dynamic-table-action-9sxv3gW5.js";
3
- import { p as api, cO as F$1, aS as resolveLotDisplayLabel, cP as FILL_FROM_TARGET_PRODUCT_OPTION, b4 as resolveLotRecordByValue, b9 as ProductionIdentificationTypeEnum, b2 as buildLotSnListQuery, cQ as F$2, cR as SCAN_ROW_CONTENT_FIELDS, cS as F$3, cT as runRowHandler, c as getProfileByTableType, b as isBusinessSubTableProfile, cU as F$4, cV as F$5, cW as FILL_FROM_SOURCE_PRODUCT_OPTION, cX as FILL_FROM_TARGET_MATERIAL_NO_OPTION, cY as FILL_FROM_INVENTORY_OPTION, cZ as FILL_FROM_PART_OPTION, c_ as FILL_FROM_INVENTORY_OPTION$1, c$ as TABLE_TYPE, d0 as FILL_FROM_INVENTORY_OPTION$2, bf as F$6, d1 as INVENTORY_BASE_FIELDS, d2 as resolveGroupByWarehouse, d3 as AUTO_LOAD_READONLY_SELECT_FIELDS, be as STOCKTAKE_DIMENSION, bb as getParseRuleInfo, d4 as buildFillFromInventoryOption, c7 as calcFillData, d5 as resolveStocktakeInventoryApi, bc as getParseRuleValue, d6 as F$7, d7 as FILL_FROM_INVENTORY_OPTION$3, d8 as LOCKED_INPUT_FIELDS, cd as extractKeywordFromQueryData, d9 as composeProductionLotListQuery, da as F$8, db as isProductManuallyEditable, dc as applyFillFromMfgOrderOption, dd as applyFillFromOption$1, de as applyFillFromProductOption, df as mergeQueryFilters, dg as composeMaterialLotListQuery, b1 as LOT_CONTAINER_ROLE, dh as MATERIAL_CONTAINER_ID, di as F$9, dj as PRODUCT_QUICK_SEARCH_FIELDS, dk as PRODUCT_QUICK_SEARCH_EXP, dl as isProductManuallyEditable$1, dm as applyFillFromMaterialNoOption, dn as applyFillFromProductOption$1, dp as F$a, dq as FILL_FROM_INVENTORY_OPTION$4, a1 as FormTypeEnum, d as getBusinessProfileByRefModelType, aN as transformUtils, h as SubTableType } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_8710052f_lang-YSIO0k9J.js";
2
+ import { a_ as SubTableActionMenuTypeEnum, a$ as getMenuByAction, b0 as SubTableActionEnum, b1 as resolveScanFillData, aF as SubTableCore, b2 as buildDefaultMapFromProfile, b3 as buildFieldStatusFromProfile, b4 as getRowHandlersForFieldChange, b5 as getInsertSubMenu, b6 as resolveScanAdjustType, b7 as resolveScanQty, b8 as toDateOnly, b9 as hasSubtableBusinessData, ba as getCopySubMenu, bb as resolveScanParsedValue, bc as isProductBatchEmptyRow } from "./dynamic-table-action-Bhkrp7KE.js";
3
+ import { E as api, cx as F$1, cy as SCAN_ROW_CONTENT_FIELDS, cz as F$2, cA as F$3, cB as runRowHandler, c as getProfileByTableType, b as isBusinessSubTableProfile, cC as F$4, cD as F$5, cE as FILL_FROM_SOURCE_PRODUCT_OPTION, cF as FILL_FROM_TARGET_MATERIAL_NO_OPTION, cG as FILL_FROM_INVENTORY_OPTION, cH as FILL_FROM_PART_OPTION, cI as FILL_FROM_INVENTORY_OPTION$1, cJ as TABLE_TYPE, cK as FILL_FROM_INVENTORY_OPTION$2, b4 as F$6, cL as INVENTORY_BASE_FIELDS, cM as resolveGroupByWarehouse, cN as AUTO_LOAD_READONLY_SELECT_FIELDS, b3 as STOCKTAKE_DIMENSION, b0 as getParseRuleInfo, cO as buildFillFromInventoryOption, bT as calcFillData, cP as resolveStocktakeInventoryApi, b1 as getParseRuleValue, cQ as F$7, cR as FILL_FROM_INVENTORY_OPTION$3, bZ as extractKeywordFromQueryData, cS as composeProductionLotListQuery, aI as resolveLotDisplayLabel, cT as F$8, cU as isProductManuallyEditable, cV as applyFillFromMfgOrderOption, cW as applyFillFromOption$1, cX as applyFillFromProductOption, a_ as ProductionIdentificationTypeEnum, cY as mergeQueryFilters, cZ as composeMaterialLotListQuery, aS as LOT_CONTAINER_ROLE, c_ as MATERIAL_CONTAINER_ID, c$ as F$9, d0 as PRODUCT_QUICK_SEARCH_FIELDS, d1 as PRODUCT_QUICK_SEARCH_EXP, d2 as isProductManuallyEditable$1, d3 as applyFillFromMaterialNoOption, d4 as applyFillFromProductOption$1, d5 as F$a, d6 as FILL_FROM_INVENTORY_OPTION$4, X as FormTypeEnum, d as getBusinessProfileByRefModelType, aD as transformUtils, f as SubTableType } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-CidYX2eX.js";
4
4
  import { has, merge } from "lodash-es";
5
5
  class RuntimeInstanceController {
6
6
  context;
@@ -268,9 +268,6 @@ function unwrapBizServiceList(result) {
268
268
  const data = result.data;
269
269
  if (Array.isArray(data)) return data;
270
270
  if (data && typeof data === "object") return [data];
271
- if (typeof result === "object" && "product_id_" in result) {
272
- return [result];
273
- }
274
271
  return [];
275
272
  }
276
273
  async function matchProductionIdentificationScanRecords(parsed) {
@@ -287,196 +284,6 @@ async function matchProductionIdentificationScanRecords(parsed) {
287
284
  );
288
285
  return unwrapBizServiceList(result);
289
286
  }
290
- function isBlank$4(value) {
291
- return value === void 0 || value === null || value === "";
292
- }
293
- function flattenMaterialConsumeRecord(item) {
294
- const result = { ...item };
295
- for (const field of ["product_id_.name_", "product_id_.code_", "product_id_.spec_"]) {
296
- result[field] = item[field] ?? item._OPCT?.[field] ?? item.__FOREIGN__?.[field];
297
- }
298
- return result;
299
- }
300
- function normalizeMaterialSubstitutionRecord(item) {
301
- const result = { ...item };
302
- result.name_ = item.name_ ?? item.material_no_;
303
- result.id_ = item.production_identification_id_ ?? item.id_;
304
- for (const key of ["name_", "code_", "spec_"]) {
305
- const field = `product_id_${key}`;
306
- const foreignField = `product_id_.${key}`;
307
- result[field] = item[field] ?? item[`product_${key}`] ?? item[foreignField] ?? item.__FOREIGN__?.[foreignField] ?? item._OPCT?.[foreignField];
308
- }
309
- return result;
310
- }
311
- const emptyResult = () => ({ data: [], options: [], finished: true, totalCount: 0, totalPage: 0 });
312
- function buildSourceMaterialScanPatch(record) {
313
- const material = normalizeMaterialSubstitutionRecord(record);
314
- const label = resolveLotDisplayLabel(material);
315
- return {
316
- [F$1.sourceProduct]: material.product_id_,
317
- [F$1.sourceProductLb]: material.product_id_name_ ? JSON.stringify([material.product_id_name_]) : void 0,
318
- [F$1.sourceMaterialNo]: material.name_,
319
- [F$1.sourceMaterialNoLb]: label ? JSON.stringify([label]) : void 0,
320
- [F$1.sourceProductName]: material.product_id_name_,
321
- [F$1.sourceProductCode]: material.product_id_code_,
322
- [F$1.sourceProductSpec]: material.product_id_spec_
323
- };
324
- }
325
- function buildTargetMaterialSelectionPatch(record) {
326
- record = normalizeMaterialSubstitutionRecord(record);
327
- const hasBatch = !isBlank$4(record.name_);
328
- const label = hasBatch ? resolveLotDisplayLabel(record) : "";
329
- return {
330
- ...Object.fromEntries(
331
- FILL_FROM_TARGET_PRODUCT_OPTION.map(({ optionField, toField }) => [
332
- toField,
333
- record[optionField]
334
- ])
335
- ),
336
- [F$1.targetMaterialNoId]: hasBatch ? record.id_ : void 0,
337
- [F$1.targetMaterialNoLb]: label ? JSON.stringify([label]) : void 0
338
- };
339
- }
340
- function createMaterialConsumeHistoryLoader(rowData, fieldName = "SN") {
341
- const beforeOpen = async () => {
342
- const value = rowData[F$1.productionContainer];
343
- if (isBlank$4(value)) {
344
- return {
345
- allowed: false,
346
- message: window.$t("sys.pageDesigner.pleaseSelectFirstSth", { sth: fieldName })
347
- };
348
- }
349
- const record = await resolveLotRecordByValue({ id: value });
350
- if (rowData[F$1.productionContainer] !== value) return { allowed: false };
351
- const type = record?.production_identification_type_;
352
- const message = type === ProductionIdentificationTypeEnum.SN ? "" : type === ProductionIdentificationTypeEnum.LOT ? `${fieldName}选择的是 LOT 类型的批次,请选择 SN 类型的批次` : `无法确认${fieldName}的批次信息,请重新选择`;
353
- return { allowed: !message, message };
354
- };
355
- const loader = async ({
356
- mode,
357
- queryData = {},
358
- pageNo = 1,
359
- pageSize = 20,
360
- ids = []
361
- }) => {
362
- if (mode === "byIds" && ids.length === 1 && ids[0] === rowData[F$1.sourceProduct] && !isBlank$4(rowData[F$1.sourceProductName])) {
363
- const item = {
364
- product_id_: rowData[F$1.sourceProduct],
365
- material_name_: rowData[F$1.sourceMaterialNo],
366
- qty_consumed_: rowData[F$1.sourceQtyConsumed],
367
- "product_id_.name_": rowData[F$1.sourceProductName],
368
- "product_id_.code_": rowData[F$1.sourceProductCode],
369
- "product_id_.spec_": rowData[F$1.sourceProductSpec]
370
- };
371
- return {
372
- data: [item],
373
- options: [{ label: item["product_id_.name_"], value: item.product_id_, _item: item }],
374
- finished: true,
375
- totalCount: 1,
376
- totalPage: 1
377
- };
378
- }
379
- const value = rowData[F$1.productionContainer];
380
- const operation = rowData[F$1.routingOperation];
381
- if (isBlank$4(value)) return emptyResult();
382
- const validation = await beforeOpen();
383
- const isCurrent = () => rowData[F$1.productionContainer] === value && rowData[F$1.routingOperation] === operation;
384
- if (!validation.allowed || !isCurrent()) return emptyResult();
385
- const query = Object.fromEntries(
386
- Object.entries(queryData).filter(
387
- ([, item]) => Array.isArray(item) ? item.length > 0 : !isBlank$4(item)
388
- )
389
- );
390
- query["production_identification_id_.eq"] = value;
391
- delete query["routing_operation_id_.eq"];
392
- if (!isBlank$4(operation)) query["routing_operation_id_.eq"] = operation;
393
- if (mode === "byIds" && ids.length) query["product_id_.in"] = ids;
394
- const keys = Object.keys(query);
395
- const res = await api.apaas.modelComprehensive.postBizServiceModelCategoryModelKeyBsKey(
396
- { modelCategory: "entity", modelKey: "em_material_consume", bsKey: "listByPage" },
397
- {},
398
- {
399
- foreignFields: ["product_id_.spec_", "product_id_.code_", "product_id_.name_"],
400
- query,
401
- exp: keys.length > 1 ? `AND(${keys.join(",")})` : keys[0] ?? "",
402
- pageNo,
403
- pageSize
404
- }
405
- );
406
- if (!isCurrent()) return emptyResult();
407
- const rows = (Array.isArray(res) ? res : res?.data ?? []).map(flattenMaterialConsumeRecord);
408
- const totalCount = Number(res?.totalCount ?? rows.length);
409
- const totalPage = Number(res?.totalPage ?? Math.max(1, Math.ceil(totalCount / pageSize)));
410
- return {
411
- data: rows,
412
- options: rows.map((item) => ({
413
- label: item["product_id_.name_"] ?? item.material_name_ ?? String(item.product_id_ ?? ""),
414
- value: item.product_id_,
415
- disabled: !!item.deleted_,
416
- _item: item
417
- })),
418
- finished: mode === "byIds" || pageNo >= totalPage,
419
- totalCount,
420
- totalPage
421
- };
422
- };
423
- loader.beforeOpen = beforeOpen;
424
- return loader;
425
- }
426
- function createTargetMaterialLoader(rowData) {
427
- const loader = async ({
428
- mode,
429
- queryData = {},
430
- pageNo = 1,
431
- pageSize = 20,
432
- ids = []
433
- }) => {
434
- const keyword = queryData["name_.iLike"] ?? queryData["name_.like"] ?? "";
435
- const filters = Object.fromEntries(
436
- Object.entries(queryData).filter(
437
- ([key, value]) => !key.endsWith(".like") && !key.endsWith(".iLike") && !isBlank$4(value) && (!Array.isArray(value) || value.length > 0)
438
- )
439
- );
440
- if (mode === "byIds" && ids.length) {
441
- if (!isBlank$4(rowData[F$1.targetMaterialNoId])) {
442
- filters["id_.eq"] = rowData[F$1.targetMaterialNoId];
443
- } else {
444
- filters["product_id_.in"] = ids;
445
- }
446
- }
447
- const { queryData: query, exp } = buildLotSnListQuery(keyword, filters);
448
- const res = await api.apaas.modelComprehensive.postBizServiceModelCategoryModelKeyBsKey(
449
- {
450
- modelCategory: "entity",
451
- modelKey: "em_production_identification",
452
- bsKey: "biz_get_production_identification"
453
- },
454
- {},
455
- { query, exp, pageNo, pageSize }
456
- );
457
- const rows = (Array.isArray(res) ? res : res?.data ?? []).map(
458
- normalizeMaterialSubstitutionRecord
459
- );
460
- const totalCount = Number(res?.totalCount ?? rows.length);
461
- const totalPage = Number(res?.totalPage ?? Math.max(1, Math.ceil(totalCount / pageSize)));
462
- return {
463
- data: rows,
464
- options: rows.map((item) => ({
465
- label: item.product_id_name_ ?? String(item.product_id_ ?? ""),
466
- value: item.product_id_,
467
- disabled: !!item.deleted_,
468
- _item: item
469
- })),
470
- finished: mode === "byIds" || pageNo >= totalPage,
471
- totalCount,
472
- totalPage
473
- };
474
- };
475
- loader.getSelectedKey = () => rowData[F$1.targetMaterialNoId];
476
- loader.getOptionKey = (option) => option._item?.id_ ?? option.value;
477
- loader.getSelectionPatch = buildTargetMaterialSelectionPatch;
478
- return loader;
479
- }
480
287
  class ProfileDrivenSubTableCore extends SubTableCore {
481
288
  get profile() {
482
289
  const profile = getProfileByTableType(this.ctx.widget.props.tableType);
@@ -538,6 +345,64 @@ const MATERIAL_CONSUME_HISTORY_DISPLAY_FIELDS = [
538
345
  { key: "material_name_", name: "物料批号" },
539
346
  { key: "qty_consumed_", name: "已消耗数量" }
540
347
  ];
348
+ function getForeignProductValue(item, field) {
349
+ return item[field] ?? item._OPCT?.[field] ?? item.__FOREIGN__?.[field];
350
+ }
351
+ function flattenMaterialConsumeRecord(item) {
352
+ return {
353
+ ...item,
354
+ "product_id_.name_": getForeignProductValue(item, "product_id_.name_"),
355
+ "product_id_.code_": getForeignProductValue(item, "product_id_.code_"),
356
+ "product_id_.spec_": getForeignProductValue(item, "product_id_.spec_")
357
+ };
358
+ }
359
+ function hasQueryValue(value) {
360
+ if (Array.isArray(value)) return value.length > 0;
361
+ return !isBlank$3(value);
362
+ }
363
+ function createMaterialConsumeHistoryLoader() {
364
+ return async ({ mode, queryData = {}, pageNo = 1, pageSize = 20, ids = [] }) => {
365
+ const query = Object.fromEntries(
366
+ Object.entries(queryData).filter(([, value]) => hasQueryValue(value))
367
+ );
368
+ if (mode === "byIds" && ids.length) {
369
+ query["product_id_.in"] = ids;
370
+ }
371
+ const queryKeys = Object.keys(query);
372
+ const exp = queryKeys.length > 1 ? `AND(${queryKeys.join(",")})` : queryKeys.length === 1 ? queryKeys[0] : "";
373
+ const res = await api.apaas.modelComprehensive.postBizServiceModelCategoryModelKeyBsKey(
374
+ {
375
+ modelCategory: "entity",
376
+ modelKey: "em_material_consume",
377
+ bsKey: "listByPage"
378
+ },
379
+ {},
380
+ {
381
+ foreignFields: ["product_id_.spec_", "product_id_.code_", "product_id_.name_"],
382
+ query,
383
+ exp,
384
+ pageNo,
385
+ pageSize
386
+ }
387
+ );
388
+ const rows = (Array.isArray(res) ? res : res?.data ?? []).map(flattenMaterialConsumeRecord);
389
+ const totalCount = Number(res?.totalCount ?? rows.length);
390
+ const totalPage = Number(res?.totalPage ?? Math.max(1, Math.ceil(totalCount / pageSize)));
391
+ const options = rows.map((item) => ({
392
+ label: getForeignProductValue(item, "product_id_.name_") ?? item.material_name_ ?? String(item.product_id_ ?? ""),
393
+ value: item.product_id_,
394
+ disabled: !!item.deleted_,
395
+ _item: item
396
+ }));
397
+ return {
398
+ data: rows,
399
+ options,
400
+ finished: mode === "byIds" || pageNo >= totalPage,
401
+ totalCount,
402
+ totalPage
403
+ };
404
+ };
405
+ }
541
406
  function applyAllocatePartTd(params, partField, mode, inventoryBinding) {
542
407
  const { field, tdHandler } = params;
543
408
  if (field !== partField) return;
@@ -621,21 +486,21 @@ class DevicePartConsumeTableCore extends ProfileDrivenSubTableCore {
621
486
  return this.factory.ctx.paramsConfig?.warehouseId;
622
487
  }
623
488
  handleFieldTd = (params) => {
624
- applyAllocatePartTd(params, F$2.part, "inventory", {
625
- formField: F$2.inventory,
489
+ applyAllocatePartTd(params, F$1.part, "inventory", {
490
+ formField: F$1.inventory,
626
491
  optionField: "id_"
627
492
  });
628
493
  super.handleFieldTd(params);
629
494
  };
630
495
  calcFieldQuery = (params) => {
631
- if (params.field === F$2.part) {
496
+ if (params.field === F$1.part) {
632
497
  return { warehouse_id_: this.warehouseId };
633
498
  }
634
499
  };
635
500
  handleChange(params) {
636
501
  super.handleChange(params);
637
502
  const { field, value, option, rowData } = params;
638
- if (field !== F$2.part || isBlank$3(value) || !option) return;
503
+ if (field !== F$1.part || isBlank$3(value) || !option) return;
639
504
  applyOptionFill(rowData, option, FILL_FROM_INVENTORY_OPTION$2);
640
505
  }
641
506
  }
@@ -647,38 +512,14 @@ class MaterialSubstitutionTableCore extends ProfileDrivenSubTableCore {
647
512
  }
648
513
  handleFieldTd = (params) => {
649
514
  const { field, tdHandler } = params;
650
- if (field === F$1.targetProduct) {
651
- const rules = tdHandler.td.cellWidget.props.autofillRules;
652
- if (rules) {
653
- tdHandler.mergeTd({
654
- cellWidget: {
655
- props: {
656
- autofillRules: rules.filter(
657
- (rule) => rule.fromField !== "qty_consumed_" || rule.toField !== F$1.targetQtyConsumed
658
- )
659
- }
660
- }
661
- });
662
- }
663
- }
664
- if (field === F$1.sourceProduct || field === F$1.targetProduct) {
515
+ if (field === F$2.sourceProduct) {
665
516
  tdHandler.mergeTd({
666
517
  cellWidget: {
667
518
  props: {
668
- displayFields: field === F$1.sourceProduct ? MATERIAL_CONSUME_HISTORY_DISPLAY_FIELDS : [
669
- { key: "name_", name: "LOT/SN" },
670
- { key: "product_id_code_", name: "物料编码" },
671
- { key: "product_id_name_", name: "物料名称" },
672
- { key: "product_id_spec_", name: "物料规格" }
673
- ],
519
+ displayFields: MATERIAL_CONSUME_HISTORY_DISPLAY_FIELDS,
674
520
  quickSearchable: true,
675
- quickSearchField: field === F$1.sourceProduct ? ["material_name_.iLike"] : [
676
- "name_.iLike",
677
- "related_parent_name_.iLike",
678
- "product_id_code_.iLike",
679
- "product_id_name_.iLike",
680
- "spec_.iLike"
681
- ],
521
+ quickSearchField: ["material_name_.like"],
522
+ quickSearchExp: "OR(material_name_.like)",
682
523
  customRefTableMode: "flat",
683
524
  newSpecificConfig: { newOptions: [] }
684
525
  }
@@ -688,22 +529,20 @@ class MaterialSubstitutionTableCore extends ProfileDrivenSubTableCore {
688
529
  super.handleFieldTd(params);
689
530
  };
690
531
  calcFieldQuery = ({ field, rowData }) => {
691
- if (field !== F$1.sourceProduct) return;
532
+ if (field !== F$2.sourceProduct) return;
692
533
  const query = {};
693
- if (!isBlank$3(rowData[F$1.productionContainer])) {
694
- query["production_identification_id_.eq"] = rowData[F$1.productionContainer];
534
+ if (!isBlank$3(rowData[F$2.productionContainer])) {
535
+ query["production_identification_id_.eq"] = rowData[F$2.productionContainer];
695
536
  }
696
- if (!isBlank$3(rowData[F$1.routingOperation])) {
697
- query["routing_operation_id_.eq"] = rowData[F$1.routingOperation];
537
+ if (!isBlank$3(rowData[F$2.routingOperation])) {
538
+ query["routing_operation_id_.eq"] = rowData[F$2.routingOperation];
698
539
  }
699
540
  return query;
700
541
  };
701
- calcFieldDataSource = ({ field, rowData }) => {
702
- if (field === F$1.sourceProduct) {
703
- const fieldName = this.formModelController?.getSubModelFields(this.subModelKey)?.find((item) => item.key === F$1.productionContainer)?.name;
704
- return createMaterialConsumeHistoryLoader(rowData, fieldName);
542
+ calcFieldDataSource = ({ field }) => {
543
+ if (field === F$2.sourceProduct) {
544
+ return createMaterialConsumeHistoryLoader();
705
545
  }
706
- if (field === F$1.targetProduct) return createTargetMaterialLoader(rowData);
707
546
  };
708
547
  handleChange(params) {
709
548
  super.handleChange(params);
@@ -711,7 +550,7 @@ class MaterialSubstitutionTableCore extends ProfileDrivenSubTableCore {
711
550
  if (isBlank$3(value) || !option) return;
712
551
  const source = resolveOptionRecord$1(option);
713
552
  if (!source) return;
714
- if (field === F$1.sourceProduct) {
553
+ if (field === F$2.sourceProduct) {
715
554
  applyOptionFill(
716
555
  rowData,
717
556
  flattenMaterialConsumeRecord(source),
@@ -719,16 +558,8 @@ class MaterialSubstitutionTableCore extends ProfileDrivenSubTableCore {
719
558
  );
720
559
  return;
721
560
  }
722
- if (field === F$1.targetProduct) {
723
- Object.assign(rowData, buildTargetMaterialSelectionPatch(source));
724
- return;
725
- }
726
- if (field === F$1.targetMaterialNo) {
727
- applyOptionFill(
728
- rowData,
729
- normalizeMaterialSubstitutionRecord(source),
730
- FILL_FROM_TARGET_MATERIAL_NO_OPTION
731
- );
561
+ if (field === F$2.targetMaterialNo) {
562
+ applyOptionFill(rowData, source, FILL_FROM_TARGET_MATERIAL_NO_OPTION);
732
563
  }
733
564
  }
734
565
  calcSubTableActionMenu = ({ showDelBtn }) => [
@@ -753,36 +584,11 @@ class MaterialSubstitutionTableCore extends ProfileDrivenSubTableCore {
753
584
  ] : []
754
585
  ];
755
586
  async onScan(input) {
756
- const fillData = { ...resolveScanFillData(input) };
587
+ const fillData = resolveScanFillData(input);
757
588
  if (!Object.keys(fillData).length) {
758
589
  this.warning({ content: "未配置条码字段映射" });
759
590
  return;
760
591
  }
761
- const parsed = resolveScanParsedValue(input);
762
- if (!parsed || !hasProductionIdentificationScanKey(parsed)) {
763
- this.error({ content: PRODUCTION_IDENTIFICATION_SCAN_LOT_OR_UNIQUE_REQUIRED_MSG });
764
- return;
765
- }
766
- const records = await matchProductionIdentificationScanRecords(parsed);
767
- if (!records.length) {
768
- this.error({ content: PRODUCTION_IDENTIFICATION_SCAN_NOT_FOUND_MSG });
769
- return;
770
- }
771
- const selected = await this.pickScanRecord(records.map(normalizeMaterialSubstitutionRecord));
772
- if (!selected) return;
773
- if (isBlank$3(selected.product_id_)) {
774
- this.error({ content: PRODUCTION_IDENTIFICATION_SCAN_NOT_FOUND_MSG });
775
- return;
776
- }
777
- if (F$1.sourceMaterialNo in fillData || F$1.sourceProduct in fillData) {
778
- Object.assign(fillData, buildSourceMaterialScanPatch(selected));
779
- }
780
- if (F$1.targetMaterialNo in fillData || F$1.targetProduct in fillData) {
781
- Object.assign(fillData, buildTargetMaterialSelectionPatch(selected), {
782
- [F$1.targetProduct]: selected.product_id_,
783
- [F$1.targetProductLb]: selected.product_id_name_ ? JSON.stringify([selected.product_id_name_]) : void 0
784
- });
785
- }
786
592
  this.appendOrFillScanRow(fillData);
787
593
  }
788
594
  }
@@ -1330,6 +1136,14 @@ const F = {
1330
1136
  /** 生产日期 */
1331
1137
  productionDate: "production_date_"
1332
1138
  };
1139
+ const STERILIZE_ALWAYS_DISABLED_FIELDS = [
1140
+ F.product,
1141
+ F.productCode,
1142
+ F.productSpec,
1143
+ F.productName,
1144
+ F.mfgOrderCode,
1145
+ F.mfgOrder
1146
+ ];
1333
1147
  const CLEAR_ON_PROD_CONTAINER_EMPTY = [
1334
1148
  F.product,
1335
1149
  F.productLb,
@@ -1464,9 +1278,8 @@ class SterilizeBatchTableCore extends SubTableCore {
1464
1278
  };
1465
1279
  calcFieldStatus(params) {
1466
1280
  const result = super.calcFieldStatus(params);
1467
- if (LOCKED_INPUT_FIELDS.includes(params.field)) {
1281
+ if (STERILIZE_ALWAYS_DISABLED_FIELDS.includes(params.field)) {
1468
1282
  result.disabled = true;
1469
- result.required = true;
1470
1283
  }
1471
1284
  return result;
1472
1285
  }
@@ -1,10 +1,9 @@
1
1
  import { defineComponent, computed, openBlock, createElementBlock, normalizeStyle, normalizeClass, createCommentVNode, createElementVNode, toDisplayString } from "vue";
2
2
  import { pick } from "lodash-es";
3
- import { Y as PaperWidgeValueType, ae as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_8710052f_lang-YSIO0k9J.js";
3
+ import { Q as PaperWidgeValueType, a7 as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-CidYX2eX.js";
4
4
  import "dayjs";
5
- import "@gct-paas/form-base";
6
5
  import "ant-design-vue";
7
- import { u as useSpreadSheet, h as useModelFields } from "./index-VrLq9hAc.js";
6
+ import { u as useSpreadSheet, h as useModelFields } from "./index-DdOpcuy6.js";
8
7
  const _hoisted_1 = { class: "ws-pre-wrap" };
9
8
  const _sfc_main = /* @__PURE__ */ defineComponent({
10
9
  __name: "text-design",
@@ -1,5 +1,5 @@
1
1
  import { g as getScrollDimension } from "./viewport.helpers-CoCAvmZs-D_JddDC6.js";
2
- import { en as isObject, dN as debounce } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_8710052f_lang-YSIO0k9J.js";
2
+ import { e4 as isObject, du as debounce } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-CidYX2eX.js";
3
3
  const initialParams = {
4
4
  contentSize: 0,
5
5
  clientSize: 0,
@@ -1,8 +1,7 @@
1
1
  import { defineComponent, openBlock, createElementBlock, toDisplayString, unref } from "vue";
2
- import { aq as TimeDiffFormat } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_8710052f_lang-YSIO0k9J.js";
2
+ import { aj as TimeDiffFormat } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-CidYX2eX.js";
3
3
  import "lodash-es";
4
4
  import "dayjs";
5
- import "@gct-paas/form-base";
6
5
  import "ant-design-vue";
7
6
  const _sfc_main = /* @__PURE__ */ defineComponent({
8
7
  __name: "timediff-design",
@@ -1,10 +1,9 @@
1
1
  import { get, pick } from "lodash-es";
2
- import { F as FIELD_TYPE, ba as BindCmpStyleEnum } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_8710052f_lang-YSIO0k9J.js";
2
+ import { F as FIELD_TYPE, a$ as BindCmpStyleEnum } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-CidYX2eX.js";
3
3
  import "vue";
4
4
  import "dayjs";
5
- import "@gct-paas/form-base";
6
5
  import "ant-design-vue";
7
- import { i as isSterilizationLotField, a as getSterilizationLotDisplayFields, s as showDisplayAndSearchConfig, r as resolveQuickSearchConfig } from "./index-VrLq9hAc.js";
6
+ import { i as isSterilizationLotField, a as getSterilizationLotDisplayFields, s as showDisplayAndSearchConfig, r as resolveQuickSearchConfig } from "./index-DdOpcuy6.js";
8
7
  function getTraceLikeSelectProps(data) {
9
8
  const isSubtableMfgOrder = !!data.info.subModelKey && (data.info.bizType === FIELD_TYPE.MFG_ORDER || data.info.fieldType === FIELD_TYPE.MFG_ORDER);
10
9
  const displayFields = (() => {
@@ -1,9 +1,8 @@
1
1
  import { defineComponent, computed, resolveComponent, openBlock, createElementBlock, createVNode, withCtx, Fragment, renderList, createBlock, createTextVNode, toDisplayString, createElementVNode, unref, createCommentVNode } from "vue";
2
2
  import { pick } from "lodash-es";
3
- import { h as useModelFields, u as useSpreadSheet, m as useDrop, P as PanelType, T as TransferType, V as ValueEditorFieldDropBoxId, S as SingleDrop, o as getFieldIcon } from "./index-VrLq9hAc.js";
4
- import { Y as PaperWidgeValueType, ax as ExpressionModeEnum, az as ExpressionTabEnum } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_8710052f_lang-YSIO0k9J.js";
3
+ import { h as useModelFields, u as useSpreadSheet, m as useDrop, P as PanelType, T as TransferType, V as ValueEditorFieldDropBoxId, S as SingleDrop, o as getFieldIcon } from "./index-DdOpcuy6.js";
4
+ import { Q as PaperWidgeValueType, aq as ExpressionModeEnum, as as ExpressionTabEnum } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-CidYX2eX.js";
5
5
  import "dayjs";
6
- import "@gct-paas/form-base";
7
6
  import "ant-design-vue";
8
7
  const _hoisted_1 = { class: "mt-4px" };
9
8
  const _hoisted_2 = ["id"];
@@ -0,0 +1 @@
1
+ export * from '../src/nocode-web-render/src/index';