@gct-paas/excel 0.1.27 → 0.1.28-beta.0

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 (216) hide show
  1. package/dist/{VueVideoPlayer-D5r4RRnv.js → VueVideoPlayer-DoCV5anE.js} +2 -2
  2. package/dist/{agg-design-BVxNAUfK.js → agg-design-FWqhGZMN.js} +1 -1
  3. package/dist/{agg-props-BM1V7-82.js → agg-props-Demj2zwb.js} +1 -1
  4. package/dist/{agg-style-bu1csor3.js → agg-style-0D2plP6P.js} +1 -1
  5. package/dist/{align-editor-D2IrDyiX.js → align-editor-BT_0oTzG.js} +1 -1
  6. package/dist/{attach-fields-editor-cbkBKnao.js → attach-fields-editor-Bh-SLSaJ.js} +5 -5
  7. package/dist/{barcode-design-BRx1bmVT.js → barcode-design-B6DeTtec.js} +2 -2
  8. package/dist/base/index.es.js +396 -552
  9. package/dist/{base-font-editor-DvxGgHGz.js → base-font-editor-rUy04_I5.js} +2 -2
  10. package/dist/{boolean-design-bh0IRiJd.js → boolean-design-s-0j811G.js} +2 -2
  11. package/dist/{boolean-props-CblOGRwR.js → boolean-props-BKDCL1yv.js} +3 -3
  12. package/dist/{boolean-style-DwRYZG46.js → boolean-style-z1WMMTXQ.js} +4 -4
  13. package/dist/{cell-upload-C-xtn3eM.js → cell-upload-DIfLFlqF.js} +1 -1
  14. package/dist/{date-range-editor-DgRj3qWq.js → date-range-editor-Bl5qPmvu.js} +2 -2
  15. package/dist/{date-time-design-CmzyZZ0f.js → date-time-design-BTNkgPAM.js} +1 -1
  16. package/dist/{date-time-props-D2g7OYyD.js → date-time-props-DiVxg9n4.js} +3 -3
  17. package/dist/{date-time-style-D1hsou32.js → date-time-style-yt5pO1dc.js} +1 -1
  18. package/dist/{decimal-design-mtrsEocu.js → decimal-design-BW5UQRTH.js} +1 -1
  19. package/dist/{decimal-display-mode-DBBORdt8.js → decimal-display-mode-BWR1rZ3-.js} +2 -2
  20. package/dist/{decimal-props-BAnCY6iG.js → decimal-props-S3vHwaWf.js} +4 -4
  21. package/dist/{decimal-style-B_3SjSrk.js → decimal-style-6q9_KbIT.js} +1 -1
  22. package/dist/{default-value-editor.vue_vue_type_script_setup_true_name_default-value-editor_lang-CaXarLgm.js → default-value-editor.vue_vue_type_script_setup_true_name_default-value-editor_lang-B51R6Kdt.js} +2 -2
  23. package/dist/{diagonal-design-CcD7fvfW.js → diagonal-design-BKuv-KYn.js} +2 -2
  24. package/dist/{double-design-7vcqNVyg.js → double-design-CrnloQ6U.js} +1 -1
  25. package/dist/{double-props-B-y0KH2n.js → double-props-CIqRhF3C.js} +4 -4
  26. package/dist/{double-style-CA5tNsrD.js → double-style-BRXKv9Tt.js} +1 -1
  27. package/dist/{dynamic-table-action-C2GfKCbJ.js → dynamic-table-action-B3_wsebH.js} +8 -10
  28. package/dist/{dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-Dti3Kjh8.js → dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-_s66osEc.js} +2147 -392
  29. package/dist/{edit.utils-CXmmCnxE-Ca3Pb0IU.js → edit.utils-CXmmCnxE-C1IiqVhe.js} +1 -1
  30. package/dist/{enum-design-QV-rTgR9.js → enum-design-4iAQqQWj.js} +2 -2
  31. package/dist/{enum-props-75ShzzCh.js → enum-props-BTNED9Yi.js} +3 -3
  32. package/dist/{enum-style-BMtWgRC6.js → enum-style-BKunBcCU.js} +3 -3
  33. package/dist/excel.css +150 -148
  34. package/dist/{exceljs.min-0mQdhEhP.js → exceljs.min-DqUfJ7Zu.js} +2 -2
  35. package/dist/{expression-design-E4gBR1RY.js → expression-design-Avbzm2SR.js} +1 -1
  36. package/dist/{expression-props-BwPz0GJc.js → expression-props-BJ2AaS83.js} +1 -1
  37. package/dist/{expression-style-D7o1udLl.js → expression-style-Cf0ZciKB.js} +1 -1
  38. package/dist/{file-design-CY5qOoTr.js → file-design-DXTNk70M.js} +1 -1
  39. package/dist/{file-props-zXWQ1bVe.js → file-props-GieYTgUG.js} +2 -2
  40. package/dist/{file-style-BxiYD3KK.js → file-style-CLDdPXPd.js} +1 -1
  41. package/dist/{font-editor-Dvzk8M-U.js → font-editor-DFkc4KNc.js} +3 -3
  42. package/dist/{image-design-lVRSbqr7.js → image-design-DWY2Pn2m.js} +2 -2
  43. package/dist/{image-design-BhK2hIpf.js → image-design-J45gqUS9.js} +1 -1
  44. package/dist/{image-props-BzWQmFnm.js → image-props-DZmoqEbT.js} +1 -1
  45. package/dist/{image-style-COx37YQA.js → image-style-C41-zdmF.js} +1 -1
  46. package/dist/{index-JMdllXCQ.js → index-5k7C2AD1.js} +1 -1
  47. package/dist/{index-gZDQm5ZQ.js → index-B-UBLtsV.js} +1 -1
  48. package/dist/{index-Xo3mSme0.js → index-B3D6zOat.js} +1 -1
  49. package/dist/{index-BQkzdAys.js → index-B9nlN0jW.js} +1 -1
  50. package/dist/{index-CvgNTIj3.js → index-BHIdTmFi.js} +1346 -1286
  51. package/dist/{index-D4c8S3QX.js → index-BNn5fobS.js} +1 -1
  52. package/dist/{index-D_EbV20_.js → index-BlnMSgZL.js} +2 -2
  53. package/dist/{index-DX751NRk.js → index-BsOmgpN3.js} +1 -1
  54. package/dist/{index-Cv8PAOND.js → index-Bs_2N-BE.js} +1 -1
  55. package/dist/{index-BZUfZUe_.js → index-BtUdO868.js} +1 -1
  56. package/dist/{index-DQUYeRO2.js → index-C0K1pWGN.js} +1 -1
  57. package/dist/{index-BKcbh7wy.js → index-C4hw1NhV.js} +1 -1
  58. package/dist/{index-n08cOEu4.js → index-C6-vGm0H.js} +1 -1
  59. package/dist/{index-BKl3sdLV.js → index-CR7wxW9-.js} +1 -1
  60. package/dist/{index-xAiRicc_.js → index-CYKuotDL.js} +27 -22
  61. package/dist/{index-CLiI_jbj.js → index-Cir8zmM7.js} +1 -1
  62. package/dist/{index-CvnUTiu5.js → index-D-uEhZUx.js} +5 -3
  63. package/dist/{index-C3vFg5YC.js → index-DIknXBmB.js} +2 -2
  64. package/dist/{index-sDAMzgHy.js → index-DRfeEqsi.js} +11 -1
  65. package/dist/{index-D1eAo-Nu.js → index-DXZ9-91Q.js} +1 -1
  66. package/dist/{index-BxJDx07D.js → index-Dlcg-_u1.js} +1 -1
  67. package/dist/{index-7I61fuwY.js → index-DpPM2hsI.js} +1 -1
  68. package/dist/{index-_sBfWkw5.js → index-DsVq6bop.js} +1 -1
  69. package/dist/{index-LPi5gPDc.js → index-DxfrB4yU.js} +2 -2
  70. package/dist/{index-BfFR4_sj.js → index-DyTI4fVG.js} +1 -1
  71. package/dist/{index-uPWALfQF.js → index-FJf8yRGg.js} +1 -1
  72. package/dist/{index-C8YcRZdY.js → index-Iri9iQ7A.js} +1 -1
  73. package/dist/{index-BcFJ5NMo.js → index-Izpo3y-u.js} +1 -1
  74. package/dist/{index-FsRMnSH6.js → index-Kc67z3Sn.js} +1 -1
  75. package/dist/{index-Bnw3rp6T.js → index-O2psifaU.js} +5 -3
  76. package/dist/{index--0Kpxacn.js → index-ZKvvKhlF.js} +1 -1
  77. package/dist/{index-BOJ1qa5y.js → index-s5kgaRm2.js} +1 -1
  78. package/dist/{index-DJMQPKtC.js → index-vDKWJHdv.js} +1 -1
  79. package/dist/index.es.js +45 -45
  80. package/dist/{integer-design-B4_XsKZo.js → integer-design-oIq4PZgB.js} +1 -1
  81. package/dist/{integer-props-C6PM1TRQ.js → integer-props-Dv0CFbj2.js} +4 -4
  82. package/dist/{integer-style-BEQYgQr6.js → integer-style-CQsFEa78.js} +1 -1
  83. package/dist/{mb-render-Cuhqw431.js → mb-render-13-1F66x.js} +12 -1
  84. package/dist/{number-input-ex-C-lDRF5x.js → number-input-ex-b3jwWBec.js} +1 -1
  85. package/dist/{org-props-COEjPBZu.js → org-props-CP6UEZUk.js} +2 -2
  86. package/dist/{org-style-BCAm4c-t.js → org-style-CVX9tnGL.js} +1 -1
  87. package/dist/{pagination-design-BCbcTaoL.js → pagination-design-CzI3BVnu.js} +2 -2
  88. package/dist/paper-widget-design-DMIGXtG2.js +4 -0
  89. package/dist/{qrcode-design-DsWOsTMb.js → qrcode-design-eO4Bd2-V.js} +1 -1
  90. package/dist/{ref-autofill-editor-M4SwZwAT.js → ref-autofill-editor-DXDYy7g2.js} +7 -6
  91. package/dist/{ref-props-z-4FJ63a.js → ref-props-Aiwbx2BA.js} +3 -3
  92. package/dist/{ref-style-Cd4xxgki.js → ref-style-BYC5yPHt.js} +1 -1
  93. package/dist/{regex-editor-Clq3qEOM.js → regex-editor-DWglxD2y.js} +2 -2
  94. package/dist/{revo-grid.entry-mK396nD_.js → revo-grid.entry-DxhjfysT.js} +1 -1
  95. package/dist/{revogr-attribution_7.entry-CVFYs2_S.js → revogr-attribution_7.entry-ChJzXX9c.js} +3 -3
  96. package/dist/{revogr-clipboard_3.entry-CXob_C6H.js → revogr-clipboard_3.entry-CTfO-vHs.js} +2 -2
  97. package/dist/{revogr-data_4.entry-DdIOstSg.js → revogr-data_4.entry-DpsZq5Vu.js} +2 -2
  98. package/dist/{revogr-filter-panel.entry-CbN2tKV5.js → revogr-filter-panel.entry-CkNGH07B.js} +1 -1
  99. package/dist/{select-render-type-editor.vue_vue_type_script_setup_true_lang-BRaJttUU.js → select-render-type-editor.vue_vue_type_script_setup_true_lang-D36XgznF.js} +2 -2
  100. package/dist/{serialnumber-design-lwuR-KrB.js → serialnumber-design-cvNqTdU4.js} +1 -1
  101. package/dist/shared/index.es.js +29 -29
  102. package/dist/{signature-design-CWKOqjMe.js → signature-design-CxYVBP9N.js} +1 -1
  103. package/dist/{signature-props-B4yndn4q.js → signature-props-Cs3PONrq.js} +3 -3
  104. package/dist/{signature-style-5DImPCv-.js → signature-style-CAa92-pw.js} +1 -1
  105. package/dist/{single-field-drop-C0IXAiGz.js → single-field-drop-BXX5wlj_.js} +2 -2
  106. package/dist/{size-editor-DKIp_UFV.js → size-editor-B4aRo4sR.js} +1 -1
  107. package/dist/src/assets/svgs/table/index.d.ts +4 -0
  108. package/dist/src/domain/suite/suite-features.d.ts +14 -0
  109. package/dist/src/domain/table/business/preprocess/pretreatment-list/index.d.ts +2 -1
  110. package/dist/src/domain/table/business/preprocess/pretreatment-list/profile/field-keys.d.ts +187 -0
  111. package/dist/src/domain/table/business/preprocess/pretreatment-list/profile/fields.d.ts +2 -0
  112. package/dist/src/domain/table/business/preprocess/pretreatment-list/runtime/register-handlers.d.ts +1 -0
  113. package/dist/src/domain/table/business/preprocess/pretreatment-list/runtime/row-change-handlers.d.ts +26 -0
  114. package/dist/src/domain/table/business/warehouse/device-part-consume/index.d.ts +2 -0
  115. package/dist/src/domain/table/business/warehouse/device-part-consume/profile/field-keys.d.ts +65 -0
  116. package/dist/src/domain/table/business/warehouse/device-part-consume/profile/fields.d.ts +2 -0
  117. package/dist/src/domain/table/business/warehouse/device-part-consume/profile/index.d.ts +3 -0
  118. package/dist/src/domain/table/business/warehouse/device-part-consume/runtime/register-handlers.d.ts +1 -0
  119. package/dist/src/domain/table/business/warehouse/device-part-consume/runtime/row-change-handlers.d.ts +6 -0
  120. package/dist/src/domain/table/business/warehouse/part-stocktake/index.d.ts +2 -0
  121. package/dist/src/domain/table/business/warehouse/part-stocktake/profile/field-keys.d.ts +70 -0
  122. package/dist/src/domain/table/business/warehouse/part-stocktake/profile/fields.d.ts +2 -0
  123. package/dist/src/domain/table/business/warehouse/part-stocktake/profile/index.d.ts +3 -0
  124. package/dist/src/domain/table/business/warehouse/part-stocktake/runtime/register-handlers.d.ts +1 -0
  125. package/dist/src/domain/table/business/warehouse/part-stocktake/runtime/row-change-handlers.d.ts +10 -0
  126. package/dist/src/domain/table/business/warehouse/warehouse-allocate/index.d.ts +2 -1
  127. package/dist/src/domain/table/business/warehouse/warehouse-allocate/profile/field-keys.d.ts +87 -0
  128. package/dist/src/domain/table/business/warehouse/warehouse-allocate/profile/fields.d.ts +2 -0
  129. package/dist/src/domain/table/business/warehouse/warehouse-allocate/runtime/register-handlers.d.ts +1 -0
  130. package/dist/src/domain/table/business/warehouse/warehouse-allocate/runtime/row-change-handlers.d.ts +7 -0
  131. package/dist/src/domain/table/business/warehouse/warehouse-in/index.d.ts +1 -0
  132. package/dist/src/domain/table/business/warehouse/warehouse-in/profile/field-keys.d.ts +39 -0
  133. package/dist/src/domain/table/business/warehouse/warehouse-in/profile/fields.d.ts +2 -0
  134. package/dist/src/domain/table/business/warehouse/warehouse-in/runtime/register-handlers.d.ts +1 -0
  135. package/dist/src/domain/table/business/warehouse/warehouse-in/runtime/row-change-handlers.d.ts +6 -0
  136. package/dist/src/domain/table/business/warehouse/warehouse-inbound/index.d.ts +2 -0
  137. package/dist/src/domain/table/business/warehouse/warehouse-inbound/profile/field-keys.d.ts +33 -0
  138. package/dist/src/domain/table/business/warehouse/warehouse-inbound/profile/fields.d.ts +2 -0
  139. package/dist/src/domain/table/business/warehouse/warehouse-inbound/profile/index.d.ts +3 -0
  140. package/dist/src/domain/table/business/warehouse/warehouse-inbound/runtime/register-handlers.d.ts +1 -0
  141. package/dist/src/domain/table/business/warehouse/warehouse-inbound/runtime/row-change-handlers.d.ts +6 -0
  142. package/dist/src/domain/table/business/warehouse/warehouse-inventory/index.d.ts +2 -1
  143. package/dist/src/domain/table/business/warehouse/warehouse-inventory/profile/field-keys.d.ts +114 -0
  144. package/dist/src/domain/table/business/warehouse/warehouse-inventory/profile/fields.d.ts +2 -0
  145. package/dist/src/domain/table/business/warehouse/warehouse-inventory/runtime/register-handlers.d.ts +1 -0
  146. package/dist/src/domain/table/business/warehouse/warehouse-inventory/runtime/row-change-handlers.d.ts +11 -0
  147. package/dist/src/domain/table/business/warehouse/warehouse-out/index.d.ts +1 -0
  148. package/dist/src/domain/table/business/warehouse/warehouse-out/profile/field-keys.d.ts +84 -0
  149. package/dist/src/domain/table/business/warehouse/warehouse-out/profile/fields.d.ts +2 -0
  150. package/dist/src/domain/table/business/warehouse/warehouse-out/runtime/register-handlers.d.ts +1 -0
  151. package/dist/src/domain/table/business/warehouse/warehouse-out/runtime/row-change-handlers.d.ts +6 -0
  152. package/dist/src/domain/table/business/warehouse/warehouse-outbound/index.d.ts +2 -0
  153. package/dist/src/domain/table/business/warehouse/warehouse-outbound/profile/field-keys.d.ts +64 -0
  154. package/dist/src/domain/table/business/warehouse/warehouse-outbound/profile/fields.d.ts +2 -0
  155. package/dist/src/domain/table/business/warehouse/warehouse-outbound/profile/index.d.ts +3 -0
  156. package/dist/src/domain/table/business/warehouse/warehouse-outbound/runtime/register-handlers.d.ts +1 -0
  157. package/dist/src/domain/table/business/warehouse/warehouse-outbound/runtime/row-change-handlers.d.ts +6 -0
  158. package/dist/src/domain/table/design/autofill-expander.d.ts +19 -0
  159. package/dist/src/domain/table/design/hooks/on-field-attach.d.ts +13 -0
  160. package/dist/src/domain/table/index.d.ts +4 -0
  161. package/dist/src/domain/table/runtime/apply-profile.d.ts +16 -0
  162. package/dist/src/domain/table/runtime/runtime-handlers.d.ts +9 -0
  163. package/dist/src/domain/table/types.d.ts +61 -2
  164. package/dist/src/nocode-base/src/constant/index.d.ts +9 -1
  165. package/dist/src/nocode-base/src/core/sub-table/allocate-table-core.d.ts +12 -7
  166. package/dist/src/nocode-base/src/core/sub-table/index.d.ts +1 -0
  167. package/dist/src/nocode-base/src/core/sub-table/pretreatment-list-table-core.d.ts +12 -5
  168. package/dist/src/nocode-base/src/core/sub-table/profile-driven-sub-table-core.d.ts +58 -0
  169. package/dist/src/nocode-base/src/core/sub-table/stocktake-table-core.d.ts +17 -19
  170. package/dist/src/nocode-base/src/core/sub-table/utils/pretreatment/field-keys.d.ts +2 -117
  171. package/dist/src/nocode-base/src/core/sub-table/utils/stocktake/field-keys.d.ts +2 -60
  172. package/dist/src/nocode-base/src/hooks/app-info/index.d.ts +4 -0
  173. package/dist/src/nocode-base/src/hooks/form-model/form-model-controller.d.ts +6 -1
  174. package/dist/src/nocode-base/src/hooks/form-model/types.d.ts +5 -0
  175. package/dist/src/nocode-base/src/hooks/material-date/material-date.d.ts +44 -0
  176. package/dist/src/nocode-base/src/hooks/material-date/service.d.ts +4 -0
  177. package/dist/src/nocode-base/src/hooks/material-date/use-material-date.d.ts +2 -0
  178. package/dist/src/nocode-base/src/interface/render.d.ts +2 -1
  179. package/dist/src/nocode-base/src/types/business/allocate.d.ts +8 -0
  180. package/dist/src/nocode-base/src/types/widgets/i-paper.d.ts +14 -0
  181. package/dist/src/nocode-web-render/src/render/sub-table/common/scan-modal.vue.d.ts +2 -3
  182. package/dist/src/online-form/src/views/__cell_widgets__/common/input-prop-editor/input-prop-editor.vue.d.ts +2 -0
  183. package/dist/src/online-form/src/views/designer/constants/index.d.ts +1 -0
  184. package/dist/src/online-form/src/views/designer/enums/index.d.ts +5 -1
  185. package/dist/src/online-form/src/views/designer/hooks/useAllSpreadSheets.d.ts +8 -0
  186. package/dist/src/online-form/src/views/designer/hooks/useSpreadSheet.d.ts +11 -17
  187. package/dist/src/online-form/src/views/designer/modules/panel/sub-table/comps/use-dynamic-sub-table-panel.d.ts +4 -0
  188. package/dist/src/shared/enum/field-type.d.ts +10 -4
  189. package/dist/src/shared/enum/online-form.d.ts +9 -1
  190. package/dist/{text-design-Buv9yt9S.js → text-design-DbDDDCTT.js} +2 -2
  191. package/dist/{text-design-Cvkrx7Ay.js → text-design-vFgsAOs6.js} +2 -2
  192. package/dist/{text-props-CkVBSTXP.js → text-props-LQ8JxfCA.js} +4 -4
  193. package/dist/{text-style-ByQS_L5l.js → text-style-CKBIm6Y6.js} +1 -1
  194. package/dist/{throttle-Cpk1LoGk-G-XhI3O-.js → throttle-Cpk1LoGk-CJfuMBhT.js} +1 -1
  195. package/dist/{timediff-design-DDoTcrkV.js → timediff-design-C7qKjT0h.js} +1 -1
  196. package/dist/{trace-design-BCzk8EyB.js → trace-design-DdHPN-JX.js} +2 -2
  197. package/dist/{trace-props-BL3L-jup.js → trace-props-BSRELXnc.js} +6 -6
  198. package/dist/{trace-style-BlpFFb55.js → trace-style-BOx3LU4R.js} +1 -1
  199. package/dist/{user-props-B-vYJaSq.js → user-props-DCy_CVdE.js} +2 -2
  200. package/dist/{user-style-CbvEdi3Y.js → user-style-BbXij2Ui.js} +1 -1
  201. package/dist/{value-editor.vue_vue_type_style_index_0_lang-s8AB671m.js → value-editor.vue_vue_type_style_index_0_lang-DqIfRgzS.js} +2 -2
  202. package/dist/{version-select-CgXKULuu.js → version-select--5mTgIzw.js} +1 -1
  203. package/dist/web-render/index.es.js +2 -2
  204. package/dist/{widget-barcode-DSSIOMEn.js → widget-barcode-BYZx9koE.js} +4 -4
  205. package/dist/{widget-diagonal-Ce7X4BVB.js → widget-diagonal-CbEoMTV6.js} +3 -3
  206. package/dist/{widget-image-B07sa8Hv.js → widget-image-Bgb0W9tX.js} +5 -5
  207. package/dist/{widget-line-gfOAwJ73.js → widget-line-xBvHpkdt.js} +2 -2
  208. package/dist/{widget-pagination-DQT0Hcnv.js → widget-pagination-BjH75g8_.js} +5 -5
  209. package/dist/{widget-power-DB41Q7HC.js → widget-power-Bvr05ltd.js} +3 -3
  210. package/dist/{widget-qrcode-DPMDGtjU.js → widget-qrcode-Bj-ntq_n.js} +3 -3
  211. package/dist/{widget-rangelimit-BpxO9qfT.js → widget-rangelimit-BHa420t4.js} +3 -3
  212. package/dist/{widget-serialnumber-CM-Lm2mW.js → widget-serialnumber-BoYlmag6.js} +1 -1
  213. package/dist/{widget-text-DnHhMcYh.js → widget-text-_Q96wqKl.js} +5 -5
  214. package/dist/{widget-timediff-CHA6cLPN.js → widget-timediff-DtoWALwY.js} +2 -2
  215. package/package.json +1 -1
  216. package/dist/paper-widget-design-B1eAfVY6.js +0 -4
@@ -1,11 +1,11 @@
1
- import { aC as fetchHistoryConsume, aD as isBomGranted, F as FIELD_TYPE, i as api, ar as getParseRuleInfo, as as getParseRuleValue, aE as calcFillData, aF as extractKeywordFromQueryData, w as FormTypeEnum, aG as transformUtils, g as SubTableType, ao as NCB_PROVIDE, aH as settleAndValidateDisplay, aI as unregisterValidationContext, aJ as clearFormRules, aK as registerValidationContext, e as ComponentTypeEnum, aw as RenderModeEnum, aL as requestFullValidation, aM as requestDisplayValidation, aN as closeValidatorPopovers, aO as baseDataUtils, aP as getRawFormRuleMeta, aQ as enrichFormChangeRowDetails, aR as settleAfterModeSwitch, aS as calcUtils, a7 as CheckDsTypeEnum, al as renderUtils, H as PlatformEnum, aT as uuid2, aU as normalizeToArray, aV as safeParseArray, aW as BpmnNodeTypeEnum, aX as mergeByMultiKey, aB as useNocodeEmitter, aY as commonUtils, a6 as EntityModelCategoryEnum, aZ as getRowId, a_ as collectFormChangeFieldLocations, a$ as nextFormChangeRowViewHistoryId } from "../dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-Dti3Kjh8.js";
2
- import { aa, ac, am, z, b0, b1, B, b2, h, J, b3, b4, b5, ak, an, ab, a8, a9, K, N, b6, ay, Z, b7, a4, ae, y, M, L, b8, b9, O, b, P, a5, a, n, ad, ba, bb, av, E, A, D, G, bc, T, V, W, bd, be, bf, bg, bh, bi, bj, bk, bl, bm, bn, bo, bp, au, bq, br, bs, bt, bu, bv, bw, bx, by, bz, bA, bB, bC, bD, bE, ap, bF, bG, bH, aq, bI, bJ, bK, bL, Q, bM, bN, ai, bO, ah, af, bP, o, at, ax, aj, bQ, u, ag } from "../dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-Dti3Kjh8.js";
3
- import { M as MaterialConsumptionPatternEnum, e as MaterialConsumeTableController, f as SubTableCore, g as SubTableActionMenuTypeEnum, h as getMenuByAction, i as SubTableActionEnum, j as getCopySubMenu, k as getInsertSubMenu, l as useMaterialBalance, v as validate } from "../dynamic-table-action-C2GfKCbJ.js";
4
- import { B as B2, m, D as D2, _, n as n2, c, o as o2, d, F, p, I, q, O as O2, u as u2, a as a2, b as b10 } from "../dynamic-table-action-C2GfKCbJ.js";
1
+ import { aW as fetchHistoryConsume, aX as isBomGranted, F as FIELD_TYPE, w as api, c as getProfileByTableType, b as isBusinessSubTableProfile, aY as runRowHandler, aZ as F$1, a_ as FILL_FROM_INVENTORY_OPTION, a$ as F$2, b0 as INVENTORY_BASE_FIELDS, b1 as WAREHOUSE_IDENTITY_GROUP_KEYS, b2 as SCAN_MERGE_GROUP_KEYS, b3 as AUTO_LOAD_READONLY_SELECT_FIELDS, aH as getParseRuleInfo, b4 as FILL_FROM_INVENTORY_OPTION$1, aI as getParseRuleValue, b5 as F$3, b6 as FILL_FROM_INVENTORY_OPTION$2, b7 as calcFillData, b8 as extractKeywordFromQueryData, b9 as F$4, ba as isProductManuallyEditable, bb as applyFillFromMfgOrderOption, bc as applyFillFromOption$1, bd as applyFillFromProductOption, be as CLEAR_ON_MATERIAL_CONTAINER_SELECT, M as FormTypeEnum, bf as transformUtils, d as SubTableType, aE as NCB_PROVIDE, bg as settleAndValidateDisplay, bh as unregisterValidationContext, bi as clearFormRules, bj as registerValidationContext, m as ComponentTypeEnum, aM as RenderModeEnum, bk as requestFullValidation, bl as requestDisplayValidation, bm as closeValidatorPopovers, bn as baseDataUtils, bo as getRawFormRuleMeta, bp as enrichFormChangeRowDetails, bq as settleAfterModeSwitch, br as calcUtils, an as CheckDsTypeEnum, aB as renderUtils, Y as PlatformEnum, bs as uuid2, bt as normalizeToArray, bu as safeParseArray, bv as BpmnNodeTypeEnum, bw as mergeByMultiKey, aV as useNocodeEmitter, bx as commonUtils, am as EntityModelCategoryEnum, by as getRowId, bz as collectFormChangeFieldLocations, bA as nextFormChangeRowViewHistoryId } from "../dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-_s66osEc.js";
2
+ import { aq, as, aC, R, bB, bC, B, bD, t, a0, bE, bF, bG, aA, aD, ar, ao, ap, a1, a5, bH, aO, ae, bI, ak, au, Q, a3, L, bJ, bK, O, j, P, al, h, G, at, bL, bM, aL, W, T, V, X, bN, a4, a8, a2, bO, bP, bQ, bR, bS, bT, bU, bV, bW, bX, bY, bZ, b_, aK, b$, c0, c1, c2, c3, c4, c5, c6, c7, c8, c9, ca, cb, cc, cd, aF, ce, cf, cg, aG, ch, ci, cj, ck, a6, cl, cm, ay, cn, ax, av, co, H, aJ, aN, az, cp, u, aw } from "../dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-_s66osEc.js";
3
+ import { M as MaterialConsumptionPatternEnum, e as MaterialConsumeTableController, f as SubTableCore, g as SubTableActionMenuTypeEnum, h as getMenuByAction, i as SubTableActionEnum, j as getCopySubMenu, k as getInsertSubMenu, l as useMaterialBalance, v as validate } from "../dynamic-table-action-B3_wsebH.js";
4
+ import { B as B2, m, D, _, n, c, o, d, F, p, I, q, O as O2, u as u2, a, b } from "../dynamic-table-action-B3_wsebH.js";
5
5
  import { ref, provide, watch, computed, onBeforeMount } from "vue";
6
- import { defaults, pick, merge, has, isEmpty, cloneDeep, debounce } from "lodash-es";
6
+ import { defaults, has, merge, isEmpty, cloneDeep, debounce } from "lodash-es";
7
7
  import dayjs from "dayjs";
8
- import { B as B3, F as F2, M as M2, a as a3, u as u3 } from "../mb-render-Cuhqw431.js";
8
+ import { B as B3, F as F2, M, a as a7, u as u3 } from "../mb-render-13-1F66x.js";
9
9
  var MaterialStatusEnum = /* @__PURE__ */ ((MaterialStatusEnum2) => {
10
10
  MaterialStatusEnum2["LOT"] = "LOT";
11
11
  MaterialStatusEnum2["SN"] = "SN";
@@ -189,7 +189,7 @@ class FormTmplBomController {
189
189
  }
190
190
  async submitValidate() {
191
191
  const results = await Promise.allSettled(
192
- Object.values(this.tableControllers).map((c2) => c2.submitValidate())
192
+ Object.values(this.tableControllers).map((c10) => c10.submitValidate())
193
193
  );
194
194
  const successful = results.filter((result) => result.status === "fulfilled").map((result) => result.value);
195
195
  const fieldArr = successful.filter(Boolean);
@@ -219,6 +219,10 @@ async function isEdhrSuite() {
219
219
  const suiteKey = await getSuiteKey();
220
220
  return suiteKey === "eDHR";
221
221
  }
222
+ async function isEqmSuite() {
223
+ const suiteKey = await getSuiteKey();
224
+ return suiteKey === "EQM";
225
+ }
222
226
  async function getModelQueries(opts) {
223
227
  const isEdhr = await isEdhrSuite();
224
228
  if (!isEdhr || !opts.mainMaterialNo) {
@@ -238,6 +242,145 @@ async function getModelQueries(opts) {
238
242
  console.log("getModelQueries", res);
239
243
  return res;
240
244
  }
245
+ function isBlank$2(value) {
246
+ return value === void 0 || value === null || value === "";
247
+ }
248
+ function matchFieldKey(match, fieldKey) {
249
+ if (!match.fieldKey) return false;
250
+ const keys = Array.isArray(match.fieldKey) ? match.fieldKey : [match.fieldKey];
251
+ return keys.includes(fieldKey);
252
+ }
253
+ function findFieldProfile(profile, fieldKey) {
254
+ return profile?.fields?.find((item) => matchFieldKey(item.match, fieldKey));
255
+ }
256
+ function buildDefaultMapFromProfile(profile, paramsConfig) {
257
+ const result = {};
258
+ if (!profile?.contextAssignments?.length) return result;
259
+ const assignments = profile.contextAssignments.filter(
260
+ (item) => item.when === "onRowInit"
261
+ );
262
+ for (const assignment of assignments) {
263
+ const value = paramsConfig?.[assignment.paramKey];
264
+ if (isBlank$2(value)) continue;
265
+ result[assignment.fieldKey] = value;
266
+ }
267
+ return result;
268
+ }
269
+ function buildFieldStatusFromProfile(params) {
270
+ const { profile, field } = params;
271
+ const result = {};
272
+ if (!profile) return result;
273
+ const fieldProfile = findFieldProfile(profile, field);
274
+ if (fieldProfile?.defaultProps) {
275
+ if (fieldProfile.defaultProps.disabled === true || fieldProfile.defaultProps.fieldDisabled === true) {
276
+ result.disabled = true;
277
+ }
278
+ if (fieldProfile.defaultProps.readonly === true || fieldProfile.defaultProps.fieldReadonly === true) {
279
+ result.readonly = true;
280
+ }
281
+ if (fieldProfile.defaultProps.required === false) {
282
+ result.required = false;
283
+ }
284
+ }
285
+ const rules = (profile.runtimeRules ?? []).filter(
286
+ (rule) => !rule.when || rule.when === "always" || rule.when === "onRowInit"
287
+ );
288
+ for (const rule of rules) {
289
+ if (!rule.fields.includes(field)) continue;
290
+ if (rule.effect.readonly) result.readonly = true;
291
+ if (rule.effect.disabled) result.disabled = true;
292
+ if (rule.effect.required !== void 0) result.required = rule.effect.required;
293
+ }
294
+ return result;
295
+ }
296
+ function getRowHandlersForFieldChange(profile, changedField) {
297
+ if (!profile?.rowHandlers?.length) return [];
298
+ return profile.rowHandlers.filter((item) => item.when === "onFieldChange").filter((item) => !item.watch?.length || item.watch.includes(changedField)).map((item) => item.handler);
299
+ }
300
+ class ProfileDrivenSubTableCore extends SubTableCore {
301
+ get profile() {
302
+ const profile = getProfileByTableType(this.ctx.widget.props.tableType);
303
+ return profile && isBusinessSubTableProfile(profile) ? profile : void 0;
304
+ }
305
+ calcDefaultMap() {
306
+ return {
307
+ ...super.calcDefaultMap(),
308
+ ...buildDefaultMapFromProfile(this.profile, this.pageCtx?.paramsConfig)
309
+ };
310
+ }
311
+ calcFieldStatus(params) {
312
+ const result = super.calcFieldStatus(params);
313
+ const fromProfile = buildFieldStatusFromProfile({
314
+ profile: this.profile,
315
+ field: params.field
316
+ });
317
+ return {
318
+ ...result,
319
+ ...fromProfile
320
+ };
321
+ }
322
+ handleChange(params) {
323
+ const profileType = this.profile?.type;
324
+ if (profileType) {
325
+ for (const handlerName of getRowHandlersForFieldChange(this.profile, params.field)) {
326
+ runRowHandler(profileType, handlerName, {
327
+ rowData: params.rowData,
328
+ changedField: params.field
329
+ });
330
+ }
331
+ }
332
+ super.handleChange(params);
333
+ }
334
+ }
335
+ class WarehouseInTableCore extends ProfileDrivenSubTableCore {
336
+ }
337
+ class WarehouseInboundTableCore extends ProfileDrivenSubTableCore {
338
+ }
339
+ class WarehouseOutTableCore extends ProfileDrivenSubTableCore {
340
+ get warehouseId() {
341
+ return this.factory.ctx.paramsConfig?.warehouseId;
342
+ }
343
+ handleFieldTd = (params) => {
344
+ const { field, tdHandler } = params;
345
+ if (field === F$1.product) {
346
+ tdHandler.mergeTd({
347
+ cellWidget: {
348
+ props: {
349
+ customRenderTag: "allocateProduct",
350
+ newSpecificConfig: {
351
+ newOptions: []
352
+ }
353
+ }
354
+ }
355
+ });
356
+ }
357
+ super.handleFieldTd(params);
358
+ };
359
+ calcFieldQuery = (params) => {
360
+ const { field } = params;
361
+ if (field === F$1.product) {
362
+ return {
363
+ warehouse_id_: this.warehouseId
364
+ };
365
+ }
366
+ };
367
+ handleChange(params) {
368
+ super.handleChange(params);
369
+ const { field, value, option, rowData } = params;
370
+ if (field !== F$1.product || !option || value === void 0 || value === null || value === "") {
371
+ return;
372
+ }
373
+ for (const { optionField, toField } of FILL_FROM_INVENTORY_OPTION) {
374
+ rowData[toField] = option[optionField];
375
+ }
376
+ }
377
+ }
378
+ class WarehouseOutboundTableCore extends ProfileDrivenSubTableCore {
379
+ }
380
+ class PartStocktakeTableCore extends ProfileDrivenSubTableCore {
381
+ }
382
+ class DevicePartConsumeTableCore extends ProfileDrivenSubTableCore {
383
+ }
241
384
  var WarehouseInventoryRowSource = /* @__PURE__ */ ((WarehouseInventoryRowSource2) => {
242
385
  WarehouseInventoryRowSource2["MANUAL"] = "manual";
243
386
  WarehouseInventoryRowSource2["AUTO"] = "auto";
@@ -250,49 +393,6 @@ const STOCKTAKE_STATUS = {
250
393
  loss: "sys.edhr.stocktakeStatusEnum.loss",
251
394
  equals: "sys.edhr.stocktakeStatusEnum.equals"
252
395
  };
253
- const F$2 = {
254
- batch: "production_identification_id_",
255
- batchLb: "production_identification_id__lb_",
256
- product: "product_id_",
257
- productLb: "product_id__lb_",
258
- productName: "product_id_name_",
259
- productCode: "product_id_code_",
260
- productSpec: "product_id_spec_",
261
- warehouse: "warehouse_id_",
262
- location: "location_id_",
263
- locationLb: "location_id__lb_",
264
- stock: "stock_num_",
265
- stocktake: "stocktake_num_",
266
- diff: "diff_num_",
267
- stocktakeStatus: "stocktake_status_",
268
- stocktakeStatusLb: "stocktake_status__lb_",
269
- matno: "material_no_",
270
- matcode: "product_code_",
271
- locationAutoResolved: "_location_auto_resolved_",
272
- inventoryLocationIds: "_inventory_location_ids_",
273
- rowSource: "row_source_"
274
- };
275
- const INVENTORY_INFO_APPLY_FIELDS = [
276
- F$2.batch,
277
- // F.product,
278
- F$2.productName,
279
- F$2.productCode,
280
- F$2.productSpec,
281
- F$2.warehouse,
282
- F$2.location,
283
- F$2.stock
284
- ];
285
- const AUTO_LOAD_READONLY_SELECT_FIELDS = [F$2.product, F$2.batch, F$2.location];
286
- const WAREHOUSE_IDENTITY_GROUP_KEYS = [F$2.batch, F$2.product, F$2.warehouse];
287
- const SCAN_MERGE_GROUP_KEYS = [F$2.batch, F$2.product, F$2.warehouse, F$2.location];
288
- const INVENTORY_BASE_FIELDS = [
289
- F$2.batch,
290
- F$2.product,
291
- F$2.productName,
292
- F$2.productCode,
293
- F$2.productSpec,
294
- F$2.warehouse
295
- ];
296
396
  function buildRowGroupKey(row, fieldKeys, separator = "|") {
297
397
  return fieldKeys.map((key) => String(row[key] ?? "")).join(separator);
298
398
  }
@@ -300,7 +400,7 @@ function toNumber(value, fallback = 0) {
300
400
  const num = Number(value);
301
401
  return Number.isNaN(num) ? fallback : num;
302
402
  }
303
- function isBlank(value) {
403
+ function isBlank$1(value) {
304
404
  return value == null || value === "";
305
405
  }
306
406
  function pickInventoryBase(record) {
@@ -342,7 +442,7 @@ function groupByWarehouseIdentity(records) {
342
442
  return groups;
343
443
  }
344
444
  function getStocktakeDiff(stocktakeNum, stockNum) {
345
- if (isBlank(stocktakeNum)) {
445
+ if (isBlank$1(stocktakeNum)) {
346
446
  return void 0;
347
447
  }
348
448
  const stocktake = toNumber(stocktakeNum);
@@ -384,12 +484,12 @@ function dispositionScanRecord(record, visibleRows, groupByWarehouse) {
384
484
  for (let i = 0; i < visibleRows.length; i++) {
385
485
  const row = visibleRows[i];
386
486
  if (buildScanMergeKey(row) === scanKey) {
387
- if (isBlank(row[F$2.location])) {
487
+ if (isBlank$1(row[F$2.location])) {
388
488
  return { kind: "skip-location-not-selected" };
389
489
  }
390
490
  return { kind: "accumulate", index: i };
391
491
  }
392
- if (!hasWaitingRow && buildWarehouseGroupKey(row) === warehouseKey && isBlank(row[F$2.location])) {
492
+ if (!hasWaitingRow && buildWarehouseGroupKey(row) === warehouseKey && isBlank$1(row[F$2.location])) {
393
493
  hasWaitingRow = true;
394
494
  }
395
495
  }
@@ -416,14 +516,14 @@ function pickRecordsForNewScanRow(unprocessed, groupByWarehouse) {
416
516
  };
417
517
  }
418
518
  function applyScanQtyToStocktake(current, scanQty, type) {
419
- if (isBlank(scanQty)) {
519
+ if (isBlank$1(scanQty)) {
420
520
  return current;
421
521
  }
422
522
  const qtyNum = toNumber(scanQty);
423
523
  if (Number.isNaN(qtyNum)) {
424
524
  return current;
425
525
  }
426
- const base = isBlank(current) ? 0 : toNumber(current);
526
+ const base = isBlank$1(current) ? 0 : toNumber(current);
427
527
  return base + (type === "minus" ? -qtyNum : qtyNum);
428
528
  }
429
529
  function accumulateScanQtyOnRow(visibleRows, rowIndex, scanQty, type) {
@@ -501,7 +601,7 @@ async function getStockData({
501
601
  );
502
602
  return res || [];
503
603
  }
504
- class StocktakeTableCore extends SubTableCore {
604
+ class StocktakeTableCore extends ProfileDrivenSubTableCore {
505
605
  initData = [];
506
606
  get isGroupByWarehouse() {
507
607
  return !!this.ctx.widget?.props?.isGroupByWarehouse;
@@ -509,7 +609,6 @@ class StocktakeTableCore extends SubTableCore {
509
609
  get paramsWarehouseId() {
510
610
  return (this.pageCtx?.paramsConfig || {}).warehouseId;
511
611
  }
512
- /** 绘制UI相关工具 */
513
612
  get render() {
514
613
  return window.NocodeAdapter.stocktakeRender;
515
614
  }
@@ -517,11 +616,15 @@ class StocktakeTableCore extends SubTableCore {
517
616
  super.compUnmount();
518
617
  this.render.destroyAllModals();
519
618
  }
619
+ /**
620
+ * 运行态禁用优先按 row_source_(manual / auto / scan),
621
+ * Profile READONLY_INFO_FIELDS 作为基线由 super 合并。
622
+ */
520
623
  calcFieldStatus(params) {
521
624
  const result = super.calcFieldStatus(params);
522
625
  const { field, rowData } = params;
523
626
  const { row_source_: source } = rowData;
524
- if (field == F$2.stocktake) return result;
627
+ if (field === F$2.stocktake) return result;
525
628
  if (!Object.values(F$2).includes(field)) return result;
526
629
  if (source === WarehouseInventoryRowSource.SCAN) {
527
630
  result.disabled = F$2.location !== field;
@@ -529,7 +632,9 @@ class StocktakeTableCore extends SubTableCore {
529
632
  result.disabled = true;
530
633
  } else if (!source || source === WarehouseInventoryRowSource.MANUAL) {
531
634
  result.disabled = !AUTO_LOAD_READONLY_SELECT_FIELDS.includes(field);
532
- } else result.disabled = true;
635
+ } else {
636
+ result.disabled = true;
637
+ }
533
638
  return result;
534
639
  }
535
640
  calcFieldQuery = (params) => {
@@ -538,7 +643,8 @@ class StocktakeTableCore extends SubTableCore {
538
643
  return {
539
644
  "id_.in": rowData[F$2.inventoryLocationIds]
540
645
  };
541
- } else if (field === F$2.product) {
646
+ }
647
+ if (field === F$2.product) {
542
648
  return {
543
649
  warehouse_id_: this.paramsWarehouseId
544
650
  };
@@ -546,14 +652,13 @@ class StocktakeTableCore extends SubTableCore {
546
652
  };
547
653
  handleFieldTd = (params) => {
548
654
  const { field, tdHandler } = params;
549
- if (field === "product_id_") {
655
+ if (field === F$2.product) {
550
656
  tdHandler.mergeTd({
551
657
  cellWidget: {
552
658
  props: {
553
659
  customRenderTag: "allocateProduct",
554
660
  newSpecificConfig: {
555
661
  newOptions: []
556
- //禁用初始选项
557
662
  }
558
663
  }
559
664
  }
@@ -577,7 +682,6 @@ class StocktakeTableCore extends SubTableCore {
577
682
  label: $t("sys.edhr.editRow")
578
683
  },
579
684
  getMenuByAction(SubTableActionEnum.Insert1RowAfter),
580
- // getInsertSubMenu(),
581
685
  ...params.showDelBtn ? [
582
686
  {
583
687
  type: SubTableActionMenuTypeEnum.DIVIDER
@@ -587,9 +691,6 @@ class StocktakeTableCore extends SubTableCore {
587
691
  ];
588
692
  return menus;
589
693
  };
590
- /**
591
- * 初始化时,需要执行的异步方法
592
- */
593
694
  async init() {
594
695
  const { autoLoadStock, barcodeParsingRules } = this.bizTableConfig || {};
595
696
  if (barcodeParsingRules) {
@@ -604,24 +705,19 @@ class StocktakeTableCore extends SubTableCore {
604
705
  return e;
605
706
  });
606
707
  }
607
- /**
608
- * @param params 初始化塞默认数据,不能用异步,只有未填报时才会执行
609
- * @returns
610
- */
611
- handleInitializeFormState(params) {
708
+ handleInitializeFormState(_params) {
612
709
  return this.initData;
613
710
  }
614
- handleChange = async (params) => {
615
- const { field, rowData, value, option } = params;
616
- console.log("params-----change", params, pick(option, INVENTORY_INFO_APPLY_FIELDS));
617
- if (field === F$2.product) {
618
- merge(rowData, pick(option, INVENTORY_INFO_APPLY_FIELDS));
711
+ handleChange(params) {
712
+ super.handleChange(params);
713
+ const { field, value, option, rowData } = params;
714
+ if (field === F$2.product && option && value !== void 0 && value !== null && value !== "") {
715
+ for (const { optionField, toField } of FILL_FROM_INVENTORY_OPTION$1) {
716
+ rowData[toField] = option[optionField];
717
+ }
718
+ calcRowData(rowData);
619
719
  }
620
- calcRowData(rowData);
621
- };
622
- /**
623
- * 解析扫码的数据
624
- */
720
+ }
625
721
  async onScan({ barcode, type }) {
626
722
  const { lot, materialCode, qty = 0 } = getParseRuleValue(barcode, this.scanRuleInfo.rules_);
627
723
  if (!lot) {
@@ -636,7 +732,6 @@ class StocktakeTableCore extends SubTableCore {
636
732
  if (res?.length) {
637
733
  const materialGroups = groupRecordsByInventoryIdentity(res);
638
734
  const assignScanQty = materialGroups.length === 1;
639
- console.log("materialGroups========", materialGroups);
640
735
  const mergedIndexes = [];
641
736
  let totalSkippedForLocation = 0;
642
737
  const visibleRows = this.tableData.filter((e) => !e.deleted_);
@@ -652,7 +747,6 @@ class StocktakeTableCore extends SubTableCore {
652
747
  scanAdjustType: type,
653
748
  assignScanQty
654
749
  });
655
- console.log("result========", result);
656
750
  this.tableData = [...result.rows, ...deletedRows];
657
751
  mergedIndexes.push(...result.mergedIndexes);
658
752
  totalSkippedForLocation += result.skippedForLocation;
@@ -742,7 +836,6 @@ function processScanRecordGroup(options) {
742
836
  });
743
837
  visibleRows = appended.rows;
744
838
  const appendedCount = appended.mergedIndex != null ? 1 : 0;
745
- if (appendedCount > 0 && appended.appendMeta) ;
746
839
  if (appended.mergedIndex != null) {
747
840
  mergedIndexes.push(appended.mergedIndex);
748
841
  }
@@ -766,7 +859,6 @@ function appendUnresolvedScanRecords(options) {
766
859
  const rowData = buildRowFromResolve(
767
860
  resolveScanRecords(groupByWarehouse, recordsForNewRow),
768
861
  scanQty,
769
- // 多库位候选时 records 多条,但条码 qty 仍应写入新建行
770
862
  assignScanQty,
771
863
  scanAdjustType
772
864
  );
@@ -817,7 +909,7 @@ async function fetchInventoryInfo({
817
909
  );
818
910
  return res || [];
819
911
  }
820
- class AllocateTableCore extends SubTableCore {
912
+ class AllocateTableCore extends ProfileDrivenSubTableCore {
821
913
  /** 绘制UI相关工具 */
822
914
  get render() {
823
915
  return window.NocodeAdapter.allocateRender;
@@ -830,21 +922,15 @@ class AllocateTableCore extends SubTableCore {
830
922
  super.compUnmount();
831
923
  this.render.destroyAllModals();
832
924
  }
833
- calcDefaultMap = () => {
834
- return {
835
- origin_warehouse_id_: this.warehouseId
836
- };
837
- };
838
925
  handleFieldTd = (params) => {
839
926
  const { field, tdHandler } = params;
840
- if (field === "product_id_") {
927
+ if (field === F$3.product) {
841
928
  tdHandler.mergeTd({
842
929
  cellWidget: {
843
930
  props: {
844
931
  customRenderTag: "allocateProduct",
845
932
  newSpecificConfig: {
846
933
  newOptions: []
847
- //禁用初始选项
848
934
  }
849
935
  }
850
936
  }
@@ -852,34 +938,19 @@ class AllocateTableCore extends SubTableCore {
852
938
  }
853
939
  super.handleFieldTd(params);
854
940
  };
855
- calcFieldStatus = (params) => {
856
- const result = super.calcFieldStatus(params);
857
- const { field } = params;
858
- if ([
859
- "product_id_name_",
860
- "product_id_code_",
861
- "product_id_spec_",
862
- "stock_num_",
863
- "validity_",
864
- "origin_warehouse_id_",
865
- "origin_location_id_",
866
- "production_identification_id_"
867
- ].includes(field)) {
868
- result.disabled = true;
869
- }
870
- return result;
871
- };
872
941
  calcFieldQuery = (params) => {
873
942
  const { field, rowData } = params;
874
- if (field === "location_id_") {
943
+ if (field === F$3.location) {
875
944
  return {
876
- "warehouse_id_.eq": rowData.warehouse_id_
945
+ "warehouse_id_.eq": rowData[F$3.warehouse]
877
946
  };
878
- } else if (field === "origin_location_id_") {
947
+ }
948
+ if (field === F$3.originLocation) {
879
949
  return {
880
- "warehouse_id_.eq": rowData.origin_warehouse_id_
950
+ "warehouse_id_.eq": rowData[F$3.originWarehouse]
881
951
  };
882
- } else if (field === "product_id_") {
952
+ }
953
+ if (field === F$3.product) {
883
954
  return {
884
955
  warehouse_id_: this.warehouseId
885
956
  };
@@ -888,19 +959,6 @@ class AllocateTableCore extends SubTableCore {
888
959
  calcSubTableActionMenu = (params) => {
889
960
  const { showDelBtn } = params;
890
961
  const menus = [
891
- // {
892
- // type: SubTableActionMenuTypeEnum.SUBTITLE,
893
- // label: '业务操作',
894
- // },
895
- // getMenuByAction(SubTableActionEnum.SCAN),
896
- // getMenuByAction(SubTableActionEnum.CHANGE_PARSE_RULE),
897
- // {
898
- // type: SubTableActionMenuTypeEnum.DIVIDER,
899
- // },
900
- // {
901
- // type: SubTableActionMenuTypeEnum.SUBTITLE,
902
- // label: '行编辑',
903
- // },
904
962
  getMenuByAction(SubTableActionEnum.Insert1RowAfter),
905
963
  getCopySubMenu(),
906
964
  getInsertSubMenu(),
@@ -913,21 +971,16 @@ class AllocateTableCore extends SubTableCore {
913
971
  ].filter(Boolean);
914
972
  return menus;
915
973
  };
916
- handleChange = (params) => {
974
+ handleChange(params) {
975
+ super.handleChange(params);
917
976
  const { field, value, option, rowData } = params;
918
- const _rowData = rowData;
919
- if (field === "product_id_") {
920
- console.log("物料变更", option);
921
- _rowData.product_id_name_ = option?.product_id_name_;
922
- _rowData.product_id_code_ = option?.product_id_code_;
923
- _rowData.product_id_spec_ = option?.product_id_spec_;
924
- _rowData.production_identification_id_ = option?.production_identification_id_;
925
- _rowData.origin_warehouse_id_ = option?.warehouse_id_;
926
- _rowData.origin_location_id_ = option?.location_id_;
927
- _rowData.stock_num_ = option?.stock_num_;
928
- _rowData.validity_ = option?.validate_;
977
+ if (field !== F$3.product || !option || value === void 0 || value === null || value === "") {
978
+ return;
929
979
  }
930
- };
980
+ for (const { optionField, toField } of FILL_FROM_INVENTORY_OPTION$2) {
981
+ rowData[toField] = option[optionField];
982
+ }
983
+ }
931
984
  async onScan({ str }) {
932
985
  const data = getParseRuleValue(str, this.scanRuleInfo.rules_);
933
986
  console.log("parseScanStr", data);
@@ -948,10 +1001,16 @@ class AllocateTableCore extends SubTableCore {
948
1001
  production_identification_id_: info.production_identification_id_,
949
1002
  origin_location_id_: info.location_id_,
950
1003
  origin_warehouse_id_: info.warehouse_id_,
951
- stock_num_: info.stock_num_
1004
+ stock_num_: info.stock_num_,
1005
+ inventory_id_: info.id_,
1006
+ mfg_order_id_: info.mfg_order_id_,
1007
+ lot_sn_id_: info.lot_sn_id_,
1008
+ re_inspection_date_: info.re_inspection_date_
952
1009
  };
953
1010
  if (data.expiration) {
954
1011
  row.validity_ = dayjs(data.expiration).format("YYYY-MM-DD");
1012
+ } else if (info.validate_) {
1013
+ row.validity_ = info.validate_;
955
1014
  }
956
1015
  if (this.scanRuleProps?.fillMapArr?.length) {
957
1016
  const fillData = calcFillData(data, this.scanRuleProps.fillMapArr);
@@ -978,7 +1037,7 @@ class AllocateTableCore extends SubTableCore {
978
1037
  }
979
1038
  };
980
1039
  }
981
- const F$1 = {
1040
+ const F3 = {
982
1041
  /** 产品 */
983
1042
  product: "product_id_",
984
1043
  /** 产品标签 */
@@ -1003,69 +1062,69 @@ const F$1 = {
1003
1062
  productionDate: "production_date_"
1004
1063
  };
1005
1064
  const STERILIZE_ALWAYS_DISABLED_FIELDS = [
1006
- F$1.product,
1007
- F$1.productCode,
1008
- F$1.productSpec,
1009
- F$1.productName,
1010
- F$1.mfgOrderCode,
1011
- F$1.mfgOrder
1065
+ F3.product,
1066
+ F3.productCode,
1067
+ F3.productSpec,
1068
+ F3.productName,
1069
+ F3.mfgOrderCode,
1070
+ F3.mfgOrder
1012
1071
  ];
1013
- const CLEAR_ON_PROD_CONTAINER_EMPTY$1 = [
1014
- F$1.product,
1015
- F$1.productLb,
1016
- F$1.productName,
1017
- F$1.productCode,
1018
- F$1.productSpec,
1019
- F$1.qty,
1020
- F$1.mfgOrderCode,
1021
- F$1.mfgOrder,
1022
- F$1.mfgOrderLb,
1023
- F$1.productionDate
1072
+ const CLEAR_ON_PROD_CONTAINER_EMPTY = [
1073
+ F3.product,
1074
+ F3.productLb,
1075
+ F3.productName,
1076
+ F3.productCode,
1077
+ F3.productSpec,
1078
+ F3.qty,
1079
+ F3.mfgOrderCode,
1080
+ F3.mfgOrder,
1081
+ F3.mfgOrderLb,
1082
+ F3.productionDate
1024
1083
  ];
1025
- const fillFromOption$1 = [
1084
+ const fillFromOption = [
1026
1085
  {
1027
- optionField: F$1.product,
1028
- toField: F$1.product
1086
+ optionField: F3.product,
1087
+ toField: F3.product
1029
1088
  },
1030
1089
  {
1031
- optionField: F$1.productName,
1032
- toField: F$1.productName
1090
+ optionField: F3.productName,
1091
+ toField: F3.productName
1033
1092
  },
1034
1093
  {
1035
- optionField: F$1.productCode,
1036
- toField: F$1.productCode
1094
+ optionField: F3.productCode,
1095
+ toField: F3.productCode
1037
1096
  },
1038
1097
  {
1039
- optionField: F$1.productSpec,
1040
- toField: F$1.productSpec
1098
+ optionField: F3.productSpec,
1099
+ toField: F3.productSpec
1041
1100
  },
1042
1101
  {
1043
- optionField: F$1.mfgOrder,
1044
- toField: F$1.mfgOrder
1102
+ optionField: F3.mfgOrder,
1103
+ toField: F3.mfgOrder
1045
1104
  },
1046
1105
  {
1047
- optionField: F$1.mfgOrderCode,
1106
+ optionField: F3.mfgOrderCode,
1048
1107
  //工单号
1049
- toField: F$1.mfgOrderCode
1108
+ toField: F3.mfgOrderCode
1050
1109
  },
1051
1110
  {
1052
1111
  optionField: "real_start_date_",
1053
1112
  //生产日期
1054
- toField: F$1.productionDate
1113
+ toField: F3.productionDate
1055
1114
  },
1056
1115
  {
1057
- optionField: F$1.qty,
1058
- toField: F$1.qty
1116
+ optionField: F3.qty,
1117
+ toField: F3.qty
1059
1118
  }
1060
1119
  ];
1061
- function applyFillFromOption$1(A2, B4) {
1062
- const writableA = A2;
1063
- fillFromOption$1.forEach(({ optionField, toField }) => {
1120
+ function applyFillFromOption(A, B4) {
1121
+ const writableA = A;
1122
+ fillFromOption.forEach(({ optionField, toField }) => {
1064
1123
  if (has(B4, optionField)) {
1065
1124
  writableA[toField] = B4[optionField];
1066
1125
  }
1067
1126
  });
1068
- return A2;
1127
+ return A;
1069
1128
  }
1070
1129
  function mapContainerRowsToOptions(data = []) {
1071
1130
  return data.map((item) => ({
@@ -1155,7 +1214,7 @@ class SterilizeBatchTableCore extends SubTableCore {
1155
1214
  }
1156
1215
  handleFieldTd = (params) => {
1157
1216
  const { field, tdHandler } = params;
1158
- if (field === F$1.productionContainer) {
1217
+ if (field === F3.productionContainer) {
1159
1218
  tdHandler.mergeTd({
1160
1219
  cellWidget: {
1161
1220
  props: {
@@ -1178,7 +1237,7 @@ class SterilizeBatchTableCore extends SubTableCore {
1178
1237
  }
1179
1238
  calcFieldDataSource = (params) => {
1180
1239
  const { field } = params;
1181
- if (field !== F$1.productionContainer) return;
1240
+ if (field !== F3.productionContainer) return;
1182
1241
  const loader = async (loaderParams) => {
1183
1242
  const { mode, queryData = {}, pageNo = 1, pageSize = 100, ids = [] } = loaderParams;
1184
1243
  const query = {
@@ -1231,14 +1290,14 @@ class SterilizeBatchTableCore extends SubTableCore {
1231
1290
  };
1232
1291
  handleChange = (params) => {
1233
1292
  const { field, option, value, rowData } = params;
1234
- if (field !== F$1.productionContainer) return;
1293
+ if (field !== F3.productionContainer) return;
1235
1294
  if (option) {
1236
1295
  console.log(option);
1237
- applyFillFromOption$1(rowData, option);
1296
+ applyFillFromOption(rowData, option);
1238
1297
  return;
1239
1298
  }
1240
1299
  if (value == null || value === "") {
1241
- CLEAR_ON_PROD_CONTAINER_EMPTY$1.forEach((key) => {
1300
+ CLEAR_ON_PROD_CONTAINER_EMPTY.forEach((key) => {
1242
1301
  rowData[key] = void 0;
1243
1302
  });
1244
1303
  }
@@ -1267,190 +1326,8 @@ class SterilizeBatchTableCore extends SubTableCore {
1267
1326
  return;
1268
1327
  }
1269
1328
  const merged = { ...data, ...containerInfo };
1270
- this.tableData = [...this.showTableData, applyFillFromOption$1({}, merged)];
1271
- }
1272
- }
1273
- const F3 = {
1274
- /** 物料 */
1275
- product: "product_id_",
1276
- /** 物料名称 */
1277
- productName: "product_id_name_",
1278
- /** 编码 */
1279
- productCode: "product_id_code_",
1280
- /** 规格 */
1281
- productSpec: "product_id_spec_",
1282
- /** 生产批次号 */
1283
- productionContainer: "production_container_id_",
1284
- /** 数量 */
1285
- qty: "qty_",
1286
- /** 工单号 */
1287
- mfgOrderCode: "mfg_order_code_",
1288
- /** 工单 */
1289
- mfgOrder: "mfg_order_id_",
1290
- /** 生产日期 */
1291
- productionDate: "production_date_",
1292
- /** 物料批号 */
1293
- materialContainerNo: "material_container_no_",
1294
- /** 物料批号 ID */
1295
- materialContainerNoId: "material_container_no__id_"
1296
- };
1297
- const PRETREATMENT_ALWAYS_DISABLED_FIELDS = [
1298
- F3.productCode,
1299
- F3.productSpec,
1300
- F3.productName
1301
- ];
1302
- const CLEAR_ON_MFG_ORDER_EMPTY = [
1303
- F3.mfgOrderCode,
1304
- F3.product,
1305
- F3.productName,
1306
- F3.productCode,
1307
- F3.productSpec,
1308
- F3.qty,
1309
- F3.productionDate
1310
- ];
1311
- const CLEAR_ON_PROD_CONTAINER_EMPTY = [
1312
- F3.product,
1313
- F3.productName,
1314
- F3.productCode,
1315
- F3.productSpec,
1316
- F3.qty,
1317
- F3.mfgOrderCode,
1318
- F3.mfgOrder,
1319
- F3.productionDate
1320
- ];
1321
- const CLEAR_ON_MATERIAL_CONTAINER_EMPTY = [
1322
- F3.product,
1323
- F3.productName,
1324
- F3.productCode,
1325
- F3.productSpec,
1326
- F3.qty,
1327
- F3.mfgOrderCode,
1328
- F3.mfgOrder,
1329
- F3.productionDate,
1330
- F3.materialContainerNoId,
1331
- F3.productionContainer
1332
- ];
1333
- const CLEAR_ON_MFG_ORDER_SELECT = [
1334
- F3.productionContainer,
1335
- F3.materialContainerNo,
1336
- F3.materialContainerNoId
1337
- ];
1338
- const CLEAR_ON_PROD_CONTAINER_SELECT = [
1339
- F3.mfgOrder,
1340
- F3.mfgOrderCode,
1341
- F3.materialContainerNo,
1342
- F3.materialContainerNoId
1343
- ];
1344
- const CLEAR_ON_MATERIAL_CONTAINER_SELECT = [
1345
- F3.productionContainer,
1346
- F3.mfgOrder,
1347
- F3.mfgOrderCode
1348
- ];
1349
- const fillFromOption = [
1350
- {
1351
- optionField: F3.product,
1352
- toField: F3.product
1353
- },
1354
- {
1355
- optionField: F3.productName,
1356
- toField: F3.productName
1357
- },
1358
- {
1359
- optionField: F3.productCode,
1360
- toField: F3.productCode
1361
- },
1362
- {
1363
- optionField: F3.productSpec,
1364
- toField: F3.productSpec
1365
- },
1366
- {
1367
- optionField: F3.mfgOrder,
1368
- toField: F3.mfgOrder
1369
- },
1370
- {
1371
- optionField: F3.mfgOrderCode,
1372
- toField: F3.mfgOrderCode
1373
- },
1374
- {
1375
- optionField: "real_start_date_",
1376
- toField: F3.productionDate
1377
- },
1378
- {
1379
- optionField: F3.qty,
1380
- toField: F3.qty
1381
- }
1382
- ];
1383
- const fillFromMfgOrderOption = [
1384
- {
1385
- optionField: "id_",
1386
- toField: F3.mfgOrder
1387
- },
1388
- {
1389
- optionField: "code_",
1390
- toField: F3.mfgOrderCode
1391
- },
1392
- {
1393
- optionField: F3.product,
1394
- toField: F3.product
1395
- },
1396
- {
1397
- optionField: F3.productName,
1398
- toField: F3.productName
1399
- },
1400
- {
1401
- optionField: F3.productCode,
1402
- toField: F3.productCode
1403
- },
1404
- {
1405
- optionField: F3.productSpec,
1406
- toField: F3.productSpec
1407
- },
1408
- {
1409
- optionField: "real_start_date_",
1410
- toField: F3.productionDate
1411
- },
1412
- {
1413
- optionField: F3.qty,
1414
- toField: F3.qty
1415
- }
1416
- ];
1417
- const fillFromProductOption = [
1418
- {
1419
- optionField: "name_",
1420
- toField: F3.productName
1421
- },
1422
- {
1423
- optionField: "code_",
1424
- toField: F3.productCode
1425
- },
1426
- {
1427
- optionField: "spec_",
1428
- toField: F3.productSpec
1429
- }
1430
- ];
1431
- const CLEAR_ON_PRODUCT_EMPTY = [F3.productName, F3.productCode, F3.productSpec];
1432
- function applyFillFromMapping(A2, B4, mapping) {
1433
- const writableA = A2;
1434
- mapping.forEach(({ optionField, toField }) => {
1435
- if (has(B4, optionField)) {
1436
- writableA[toField] = B4[optionField];
1437
- }
1438
- });
1439
- return A2;
1440
- }
1441
- function applyFillFromOption(A2, B4) {
1442
- return applyFillFromMapping(A2, B4, fillFromOption);
1443
- }
1444
- function applyFillFromProductOption(A2, B4) {
1445
- return applyFillFromMapping(A2, B4, fillFromProductOption);
1446
- }
1447
- function applyFillFromMfgOrderOption(A2, B4) {
1448
- applyFillFromMapping(A2, B4, fillFromMfgOrderOption);
1449
- const writableA = A2;
1450
- if (!has(B4, "code_") && (B4.label != null || B4.__LABEL__ != null)) {
1451
- writableA[F3.mfgOrderCode] = B4.label ?? B4.__LABEL__;
1329
+ this.tableData = [...this.showTableData, applyFillFromOption({}, merged)];
1452
1330
  }
1453
- return A2;
1454
1331
  }
1455
1332
  function mapRefRowsToOptions(data = [], labelKey = "name_") {
1456
1333
  return data.map((item) => ({
@@ -1631,7 +1508,10 @@ function normalizeContainerResult(res) {
1631
1508
  if (typeof data === "object") return data;
1632
1509
  return void 0;
1633
1510
  }
1634
- class PretreatmentListTableCore extends SubTableCore {
1511
+ function isBlank(value) {
1512
+ return value === void 0 || value === null || value === "";
1513
+ }
1514
+ class PretreatmentListTableCore extends ProfileDrivenSubTableCore {
1635
1515
  /** 触发扫码时的目标行 */
1636
1516
  scanTargetRow;
1637
1517
  /** 绘制UI相关工具,一期复用调拨表扫码弹窗 */
@@ -1652,16 +1532,6 @@ class PretreatmentListTableCore extends SubTableCore {
1652
1532
  calcSubTableActionMenu = (params) => {
1653
1533
  const { showDelBtn } = params;
1654
1534
  return [
1655
- // 一期暂不支持扫码
1656
- // {
1657
- // type: SubTableActionMenuTypeEnum.SUBTITLE,
1658
- // label: $t('sys.edhr.bizOperation'),
1659
- // },
1660
- // getMenuByAction(SubTableActionEnum.SCAN),
1661
- // getMenuByAction(SubTableActionEnum.CHANGE_PARSE_RULE),
1662
- // {
1663
- // type: SubTableActionMenuTypeEnum.DIVIDER,
1664
- // },
1665
1535
  {
1666
1536
  type: SubTableActionMenuTypeEnum.SUBTITLE,
1667
1537
  label: $t("sys.edhr.editRow")
@@ -1690,81 +1560,34 @@ class PretreatmentListTableCore extends SubTableCore {
1690
1560
  calcFieldStatus(params) {
1691
1561
  const result = super.calcFieldStatus(params);
1692
1562
  const { field, rowData } = params;
1693
- if (PRETREATMENT_ALWAYS_DISABLED_FIELDS.includes(field)) {
1694
- result.disabled = true;
1695
- }
1696
- if (field === F3.product) {
1697
- const hasNo = rowData[F3.materialContainerNo] != null && rowData[F3.materialContainerNo] !== "";
1698
- const idEmpty = rowData[F3.materialContainerNoId] == null || rowData[F3.materialContainerNoId] === "";
1699
- result.disabled = !(hasNo && idEmpty);
1563
+ if (field === F$4.product) {
1564
+ result.disabled = !isProductManuallyEditable(rowData);
1700
1565
  }
1701
1566
  return result;
1702
1567
  }
1703
1568
  calcFieldDataSource = (params) => {
1704
1569
  const { field } = params;
1705
- if (field === F3.productionContainer) return createProductionContainerLoader();
1706
- if (field === F3.mfgOrder) return createMfgOrderLoader();
1707
- if (field === F3.materialContainerNo) return createMaterialContainerLoader();
1570
+ if (field === F$4.productionContainer) return createProductionContainerLoader();
1571
+ if (field === F$4.mfgOrder) return createMfgOrderLoader();
1572
+ if (field === F$4.materialContainerNo) return createMaterialContainerLoader();
1708
1573
  };
1709
- handleChange = (params) => {
1574
+ handleChange(params) {
1575
+ super.handleChange(params);
1710
1576
  const { field, option, value, rowData } = params;
1711
- const writable = rowData;
1712
- const hasValue = value != null && value !== "";
1713
- if (field === F3.mfgOrder) {
1714
- if (option) {
1715
- applyFillFromMfgOrderOption(rowData, option._item ?? option);
1716
- }
1717
- if (hasValue) {
1718
- CLEAR_ON_MFG_ORDER_SELECT.forEach((key) => {
1719
- writable[key] = void 0;
1720
- });
1721
- } else {
1722
- CLEAR_ON_MFG_ORDER_EMPTY.forEach((key) => {
1723
- writable[key] = void 0;
1724
- });
1725
- }
1726
- return;
1727
- }
1728
- if (field === F3.productionContainer) {
1729
- if (option) {
1730
- applyFillFromOption(rowData, option._item ?? option);
1731
- }
1732
- if (hasValue) {
1733
- CLEAR_ON_PROD_CONTAINER_SELECT.forEach((key) => {
1734
- writable[key] = void 0;
1735
- });
1736
- } else {
1737
- CLEAR_ON_PROD_CONTAINER_EMPTY.forEach((key) => {
1738
- writable[key] = void 0;
1739
- });
1740
- }
1577
+ if (!option || isBlank(value)) return;
1578
+ const source = option._item ?? option;
1579
+ if (field === F$4.mfgOrder) {
1580
+ applyFillFromMfgOrderOption(rowData, source);
1741
1581
  return;
1742
1582
  }
1743
- if (field === F3.materialContainerNo) {
1744
- if (option) {
1745
- applyFillFromOption(rowData, option._item ?? option);
1746
- }
1747
- if (hasValue) {
1748
- CLEAR_ON_MATERIAL_CONTAINER_SELECT.forEach((key) => {
1749
- writable[key] = void 0;
1750
- });
1751
- } else {
1752
- CLEAR_ON_MATERIAL_CONTAINER_EMPTY.forEach((key) => {
1753
- writable[key] = void 0;
1754
- });
1755
- }
1583
+ if (field === F$4.productionContainer || field === F$4.materialContainerNo) {
1584
+ applyFillFromOption$1(rowData, source);
1756
1585
  return;
1757
1586
  }
1758
- if (field === F3.product) {
1759
- if (option) {
1760
- applyFillFromProductOption(rowData, option._item ?? option);
1761
- } else if (!hasValue) {
1762
- CLEAR_ON_PRODUCT_EMPTY.forEach((key) => {
1763
- writable[key] = void 0;
1764
- });
1765
- }
1587
+ if (field === F$4.product) {
1588
+ applyFillFromProductOption(rowData, source);
1766
1589
  }
1767
- };
1590
+ }
1768
1591
  async onScan({ str }) {
1769
1592
  if (!this.scanRuleInfo) {
1770
1593
  this.error({ content: $t("sys.edhr.mcTable.scanRuleNotFound") });
@@ -1789,7 +1612,7 @@ class PretreatmentListTableCore extends SubTableCore {
1789
1612
  }
1790
1613
  const merged = { ...data, ...containerInfo };
1791
1614
  const applyScanFill = (row) => {
1792
- applyFillFromOption(row, merged);
1615
+ applyFillFromOption$1(row, merged);
1793
1616
  CLEAR_ON_MATERIAL_CONTAINER_SELECT.forEach((key) => {
1794
1617
  row[key] = void 0;
1795
1618
  });
@@ -1808,7 +1631,19 @@ function getClassByType(type) {
1808
1631
  return SterilizeBatchTableCore;
1809
1632
  case SubTableType.PRETREATMENT_LIST:
1810
1633
  return PretreatmentListTableCore;
1811
- // 出入库 / 入库 / 出库:渲染端暂走通用 SubTableCore,设计态 Profile 单独演进后再迁
1634
+ case SubTableType.WAREHOUSE_IN:
1635
+ return WarehouseInTableCore;
1636
+ case SubTableType.WAREHOUSE_OUT:
1637
+ return WarehouseOutTableCore;
1638
+ case SubTableType.WAREHOUSE_INBOUND:
1639
+ return WarehouseInboundTableCore;
1640
+ case SubTableType.WAREHOUSE_OUTBOUND:
1641
+ return WarehouseOutboundTableCore;
1642
+ case SubTableType.PART_STOCKTAKE:
1643
+ return PartStocktakeTableCore;
1644
+ case SubTableType.DEVICE_PART_CONSUME:
1645
+ return DevicePartConsumeTableCore;
1646
+ // 出入库:渲染端暂走通用 SubTableCore,后续按 Profile 迁移
1812
1647
  default:
1813
1648
  return SubTableCore;
1814
1649
  }
@@ -2346,6 +2181,7 @@ function useRenderPageFactory(props, payload) {
2346
2181
  // 原mfgOrderCode后端给的不是 Id,但工单号字段绑的是id,所以导致数据回显会有问题,新加了mfgOrderId字段,这里做兼容处理
2347
2182
  mainMfgOrderId: paramsConfig?._gct_nocode_mfg_order_id_ || paramsConfig?.mfgOrderId || paramsConfig?.mfgOrderCode,
2348
2183
  mainWarehouseId: paramsConfig?.warehouseId,
2184
+ mainLotSnId: paramsConfig?.lotSnId,
2349
2185
  mainProductQty: paramsConfig?.productQty,
2350
2186
  mainSterilizationLot: paramsConfig?.sterilizationLot,
2351
2187
  mainSterilizationLotId: paramsConfig?.sterilizationLotId,
@@ -2534,9 +2370,9 @@ function useRenderPageFactory(props, payload) {
2534
2370
  const prevMap = info.validatorMessageMap ?? {};
2535
2371
  const sameLocations = prevLocations.length === nextLocations.length && nextLocations.every((k, i) => k === prevLocations[i]);
2536
2372
  const sameMessages = sameLocations && nextLocations.every((k) => {
2537
- const a6 = prevMap[k];
2538
- const b11 = map[k];
2539
- return JSON.stringify(a6) === JSON.stringify(b11);
2373
+ const a9 = prevMap[k];
2374
+ const b2 = map[k];
2375
+ return JSON.stringify(a9) === JSON.stringify(b2);
2540
2376
  });
2541
2377
  if (sameMessages) return;
2542
2378
  closeValidatorPopovers();
@@ -3594,43 +3430,44 @@ function useMaterialStocktake() {
3594
3430
  };
3595
3431
  }
3596
3432
  export {
3597
- aa as AITooltips,
3433
+ aq as AITooltips,
3598
3434
  AllocateTableCore,
3599
3435
  B3 as BaseFormModelFetcher,
3600
- ac as BinarizeMethodOptions,
3601
- am as BindCmpStyleEnum,
3602
- z as BooleanShowMode,
3436
+ as as BinarizeMethodOptions,
3437
+ aC as BindCmpStyleEnum,
3438
+ R as BooleanShowMode,
3603
3439
  B2 as BorderTD,
3604
3440
  BpmnNodeTypeEnum,
3605
- b0 as BpmnSignatureTypeEnum,
3606
- b1 as ButtonTypeEnum,
3441
+ bB as BpmnSignatureTypeEnum,
3442
+ bC as ButtonTypeEnum,
3607
3443
  B as BwipCodeType,
3608
- b2 as CHECK_TABLE_MEDPRO_PROTOCOL_KEY,
3609
- h as CellType,
3610
- J as CellWidgetViewState,
3444
+ bD as CHECK_TABLE_MEDPRO_PROTOCOL_KEY,
3445
+ t as CellType,
3446
+ a0 as CellWidgetViewState,
3611
3447
  CheckDsTypeEnum,
3612
- b3 as CodeRunner,
3448
+ bE as CodeRunner,
3613
3449
  ComponentTypeEnum,
3614
- b4 as Config_Fields,
3615
- b5 as ControlStatusEnum,
3616
- ak as DateFormat,
3617
- an as DecimalDisplayMode,
3618
- ab as DenoiseMethodOptions,
3450
+ bF as Config_Fields,
3451
+ bG as ControlStatusEnum,
3452
+ aA as DateFormat,
3453
+ aD as DecimalDisplayMode,
3454
+ ar as DenoiseMethodOptions,
3619
3455
  m as DeviceConnector,
3620
- a8 as DeviceLink,
3621
- D2 as DeviceLinkTmplUtil,
3622
- a9 as DeviceParamsTypeTitle,
3623
- K as DiagonalDirection,
3624
- N as DiagonalVertex,
3456
+ ao as DeviceLink,
3457
+ D as DeviceLinkTmplUtil,
3458
+ ap as DeviceParamsTypeTitle,
3459
+ DevicePartConsumeTableCore,
3460
+ a1 as DiagonalDirection,
3461
+ a5 as DiagonalVertex,
3625
3462
  _ as DocumentLayout,
3626
- n2 as DocumentLoading,
3463
+ n as DocumentLoading,
3627
3464
  c as DocumentPaper,
3628
- o2 as DynamicQuickFillModal,
3465
+ o as DynamicQuickFillModal,
3629
3466
  d as DynamicTableAction,
3630
- b6 as EBR_PROVIDE_ENUM,
3631
- ay as EFieldBizTypeEnum,
3632
- Z as EmptySymbol,
3633
- b7 as FieldSysVarDefaultValueEnum,
3467
+ bH as EBR_PROVIDE_ENUM,
3468
+ aO as EFieldBizTypeEnum,
3469
+ ae as EmptySymbol,
3470
+ bI as FieldSysVarDefaultValueEnum,
3634
3471
  FillingTypeEnum,
3635
3472
  F as FixedQuickFillModal,
3636
3473
  FormAnnotationController,
@@ -3638,122 +3475,129 @@ export {
3638
3475
  FormTmplBomController,
3639
3476
  p as FormTmplConfigController,
3640
3477
  FormTypeEnum,
3641
- a4 as ImageDisplayModeEnum,
3478
+ ak as ImageDisplayModeEnum,
3642
3479
  I as InstanceStatusValues,
3643
- ae as JoinModelTypeEum,
3644
- y as LabelPosition,
3645
- M as LineDirection,
3480
+ au as JoinModelTypeEum,
3481
+ Q as LabelPosition,
3482
+ a3 as LineDirection,
3646
3483
  L as LineType,
3647
- M2 as MBRender,
3484
+ M as MBRender,
3648
3485
  q as MCDataUtil,
3649
- a3 as MCRender,
3486
+ a7 as MCRender,
3650
3487
  MaterialConsumeTableController,
3651
3488
  MaterialConsumptionPatternEnum,
3652
3489
  MaterialStatusEnum,
3653
- b8 as MobileFillTypeEnum,
3490
+ bJ as MobileFillTypeEnum,
3654
3491
  NCB_PROVIDE,
3655
3492
  O2 as OCR_MODEL_PRECISION_ENUM_KEY,
3656
- b9 as OfficeTypeEnum,
3493
+ bK as OfficeTypeEnum,
3657
3494
  O as Orientation,
3658
- b as PageSizeEnum,
3495
+ j as PageSizeEnum,
3659
3496
  P as PaginationFormat,
3660
- a5 as PaperSizeMap,
3661
- a as PaperWidgeType,
3662
- n as PaperWidgeValueType,
3663
- ad as ParamModelTypeEnum,
3497
+ al as PaperSizeMap,
3498
+ h as PaperWidgeType,
3499
+ G as PaperWidgeValueType,
3500
+ at as ParamModelTypeEnum,
3501
+ PartStocktakeTableCore,
3664
3502
  PlatformEnum,
3665
- ba as PosEnum,
3503
+ bL as PosEnum,
3666
3504
  PretreatmentListTableCore,
3667
- bb as RangeCompareOp,
3668
- av as RangeValidateMode,
3505
+ ProfileDrivenSubTableCore,
3506
+ bM as RangeCompareOp,
3507
+ aL as RangeValidateMode,
3669
3508
  RenderModeEnum,
3670
- E as SignShowTypeEnum,
3671
- A as SignatureNumberTypeEnum,
3672
- D as SignatureTimeTypeEnum,
3673
- G as SignatureTypeEnum,
3509
+ W as SignShowTypeEnum,
3510
+ T as SignatureNumberTypeEnum,
3511
+ V as SignatureTimeTypeEnum,
3512
+ X as SignatureTypeEnum,
3674
3513
  SterilizeBatchTableCore,
3675
3514
  StocktakeTableCore,
3676
3515
  SubTableCore,
3677
3516
  SubTableCoreFactory,
3678
3517
  SubTableType,
3679
- bc as SummaryApproveHisTypeEnum,
3680
- T as TimeDiffFormat,
3681
- V as ViewTypeEnum,
3682
- W as WidgetImageSizeMode,
3683
- bd as applyCheckDsDataToRuntime,
3684
- be as applyMedProCheckDsDataToRuntime,
3518
+ bN as SummaryApproveHisTypeEnum,
3519
+ a4 as TimeDiffFormat,
3520
+ a8 as ViewTypeEnum,
3521
+ WarehouseInTableCore,
3522
+ WarehouseInboundTableCore,
3523
+ WarehouseOutTableCore,
3524
+ WarehouseOutboundTableCore,
3525
+ a2 as WidgetImageSizeMode,
3526
+ bO as applyCheckDsDataToRuntime,
3527
+ bP as applyMedProCheckDsDataToRuntime,
3685
3528
  baseDataUtils,
3686
- bf as buildFormChangeDisplayRows,
3687
- bg as buildStableFieldLocation,
3529
+ bQ as buildFormChangeDisplayRows,
3530
+ bR as buildStableFieldLocation,
3688
3531
  calcFillData,
3689
3532
  calcUtils,
3690
3533
  clearFormRules,
3691
3534
  collectAnnotationItemsByLocation,
3692
3535
  collectFormChangeFieldLocations,
3693
3536
  commonUtils,
3694
- bh as deleteSubtableRow,
3695
- bi as detailsHaveFormChangeRowOps,
3537
+ bS as deleteSubtableRow,
3538
+ bT as detailsHaveFormChangeRowOps,
3696
3539
  enrichFormChangeRowDetails,
3697
- bj as extractFormChangeRowDetails,
3540
+ bU as extractFormChangeRowDetails,
3698
3541
  extractKeywordFromQueryData,
3699
- bk as fetchCheckDsDataForTable,
3700
- bl as fetchCustomCheckDsData,
3542
+ bV as fetchCheckDsDataForTable,
3543
+ bW as fetchCustomCheckDsData,
3701
3544
  fetchHistoryConsume,
3702
- bm as fetchMedProCheckDsData,
3545
+ bX as fetchMedProCheckDsData,
3703
3546
  filterAnnotationItemsUpToCurrent,
3704
3547
  getAppInfo,
3705
- bn as getCheckTableSnapshotKey,
3706
- bo as getFormChangeRowKey,
3707
- bp as getFormChangeRowOp,
3708
- au as getLotLockedReason,
3709
- bq as getParseRuleConfig,
3548
+ bY as getCheckTableSnapshotKey,
3549
+ bZ as getFormChangeRowKey,
3550
+ b_ as getFormChangeRowOp,
3551
+ aK as getLotLockedReason,
3552
+ b$ as getParseRuleConfig,
3710
3553
  getParseRuleInfo,
3711
3554
  getParseRuleValue,
3712
- br as getSubTableQuickFillInfo,
3555
+ c0 as getSubTableQuickFillInfo,
3713
3556
  getSuiteKey,
3714
- bs as handleOldConfig,
3715
- bt as hasAnyCheckTableSnapshot,
3716
- bu as hasByTableCheckTableSnapshot,
3717
- bv as hasSharedCheckTableSnapshot,
3718
- bw as insertSubtableRows,
3719
- bx as isAnnLocationSelected,
3557
+ c1 as handleOldConfig,
3558
+ c2 as hasAnyCheckTableSnapshot,
3559
+ c3 as hasByTableCheckTableSnapshot,
3560
+ c4 as hasSharedCheckTableSnapshot,
3561
+ c5 as insertSubtableRows,
3562
+ c6 as isAnnLocationSelected,
3720
3563
  isBomGranted,
3721
3564
  isEdhrSuite,
3722
- by as isFormChangeGhostRow,
3723
- bz as isMedProSuite,
3724
- bA as isRowAddedInCurrentFormChange,
3725
- bB as jsonSchemaUtils,
3726
- bC as judgeUnique,
3727
- bD as materialCheck,
3728
- bE as migrateDiagonalDirectionToVertex,
3565
+ isEqmSuite,
3566
+ c7 as isFormChangeGhostRow,
3567
+ c8 as isMedProSuite,
3568
+ c9 as isRowAddedInCurrentFormChange,
3569
+ ca as jsonSchemaUtils,
3570
+ cb as judgeUnique,
3571
+ cc as materialCheck,
3572
+ cd as migrateDiagonalDirectionToVertex,
3729
3573
  nextFormChangeRowViewHistoryId,
3730
- ap as normalizeRefLoaderResult,
3731
- bF as parseFrontConfig,
3732
- bG as recordSubtableRowAdd,
3733
- bH as recordSubtableRowDelete,
3734
- aq as refUtils,
3574
+ aF as normalizeRefLoaderResult,
3575
+ ce as parseFrontConfig,
3576
+ cf as recordSubtableRowAdd,
3577
+ cg as recordSubtableRowDelete,
3578
+ aG as refUtils,
3735
3579
  registerValidationContext,
3736
- bI as relocateDeletedRowsToEnd,
3580
+ ch as relocateDeletedRowsToEnd,
3737
3581
  renderUtils,
3738
3582
  requestDisplayValidation,
3739
3583
  requestFullValidation,
3740
- bJ as requestMedProCheckDsData,
3741
- bK as requestNonMedProCheckDsData,
3742
- bL as resolveAnnotationFieldLocation,
3743
- Q as resolveDiagonalVertex,
3744
- bM as resolveFormChangeRowUi,
3745
- bN as resolveRowFormChangeMark,
3746
- ai as setSelectAnnotationId,
3747
- bO as setSelectMobileTdId,
3748
- ah as setSelectValidatorId,
3584
+ ci as requestMedProCheckDsData,
3585
+ cj as requestNonMedProCheckDsData,
3586
+ ck as resolveAnnotationFieldLocation,
3587
+ a6 as resolveDiagonalVertex,
3588
+ cl as resolveFormChangeRowUi,
3589
+ cm as resolveRowFormChangeMark,
3590
+ ay as setSelectAnnotationId,
3591
+ cn as setSelectMobileTdId,
3592
+ ax as setSelectValidatorId,
3749
3593
  settleAndValidateDisplay,
3750
- af as sqlUtils,
3751
- bP as stockCheck,
3594
+ av as sqlUtils,
3595
+ co as stockCheck,
3752
3596
  transformUtils,
3753
3597
  unregisterValidationContext,
3754
- o as useCalculateFormula,
3755
- at as useCurrentPageFormState,
3756
- ax as useDependency,
3598
+ H as useCalculateFormula,
3599
+ aJ as useCurrentPageFormState,
3600
+ aN as useDependency,
3757
3601
  useEbrWikiFactoryV2,
3758
3602
  u3 as useFormModel,
3759
3603
  u2 as useFormTmplConfig,
@@ -3761,12 +3605,12 @@ export {
3761
3605
  useMaterialBalance,
3762
3606
  useMaterialStocktake,
3763
3607
  useNocodeEmitter,
3764
- aj as useNocodeFormWidget,
3765
- bQ as useOnlineFormActionButton,
3608
+ az as useNocodeFormWidget,
3609
+ cp as useOnlineFormActionButton,
3766
3610
  u as useOnlineFormTransformField2Component,
3767
3611
  useRenderPageFactory,
3768
- a2 as useStyles,
3769
- b10 as useValidator,
3770
- ag as useWidgetStaticAttrs,
3612
+ a as useStyles,
3613
+ b as useValidator,
3614
+ aw as useWidgetStaticAttrs,
3771
3615
  validate
3772
3616
  };