@gct-paas/excel 0.1.26 → 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.
- package/dist/{VueVideoPlayer-0DuOfiQX.js → VueVideoPlayer-DoCV5anE.js} +2 -2
- package/dist/{agg-design-Bs7uvazc.js → agg-design-FWqhGZMN.js} +1 -1
- package/dist/{agg-props-Bp3BzB8p.js → agg-props-Demj2zwb.js} +1 -1
- package/dist/{agg-style-5rib-2BW.js → agg-style-0D2plP6P.js} +1 -1
- package/dist/{align-editor-DQ8dFN7Z.js → align-editor-BT_0oTzG.js} +1 -1
- package/dist/{attach-fields-editor-C96vYS5i.js → attach-fields-editor-Bh-SLSaJ.js} +5 -5
- package/dist/{barcode-design-GARKK2E6.js → barcode-design-B6DeTtec.js} +2 -2
- package/dist/base/index.es.js +437 -586
- package/dist/{base-font-editor-D1Yhc2dM.js → base-font-editor-rUy04_I5.js} +2 -2
- package/dist/{boolean-design-E8aTzvqE.js → boolean-design-s-0j811G.js} +2 -2
- package/dist/{boolean-props-DXxrp-m9.js → boolean-props-BKDCL1yv.js} +3 -3
- package/dist/{boolean-style-CL0DlbC0.js → boolean-style-z1WMMTXQ.js} +4 -4
- package/dist/{cell-upload-Mt9EhaFR.js → cell-upload-DIfLFlqF.js} +1 -1
- package/dist/{date-range-editor-CWD3tYMA.js → date-range-editor-Bl5qPmvu.js} +2 -2
- package/dist/{date-time-design-DxEvgEi8.js → date-time-design-BTNkgPAM.js} +1 -1
- package/dist/{date-time-props-B5Xtc7-X.js → date-time-props-DiVxg9n4.js} +3 -3
- package/dist/{date-time-style-CH-mslF5.js → date-time-style-yt5pO1dc.js} +1 -1
- package/dist/{decimal-design-DvIA4NX0.js → decimal-design-BW5UQRTH.js} +1 -1
- package/dist/{decimal-display-mode-DZwDd5fU.js → decimal-display-mode-BWR1rZ3-.js} +2 -2
- package/dist/{decimal-props-BKRzrJ-r.js → decimal-props-S3vHwaWf.js} +4 -4
- package/dist/{decimal-style-DMFs7IFs.js → decimal-style-6q9_KbIT.js} +1 -1
- package/dist/{default-value-editor.vue_vue_type_script_setup_true_name_default-value-editor_lang-BLCWBDOv.js → default-value-editor.vue_vue_type_script_setup_true_name_default-value-editor_lang-B51R6Kdt.js} +2 -2
- package/dist/{diagonal-design-COpzJE_o.js → diagonal-design-BKuv-KYn.js} +2 -2
- package/dist/{double-design-BTJtq1hk.js → double-design-CrnloQ6U.js} +1 -1
- package/dist/{double-props-Bq3vZziK.js → double-props-CIqRhF3C.js} +4 -4
- package/dist/{double-style-DiufxslF.js → double-style-BRXKv9Tt.js} +1 -1
- package/dist/{dynamic-table-action-Dqp3OJDg.js → dynamic-table-action-B3_wsebH.js} +1359 -1077
- package/dist/{dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-CvVlP70-.js → dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-_s66osEc.js} +3396 -621
- package/dist/{edit.utils-CXmmCnxE-W27Whv1y.js → edit.utils-CXmmCnxE-C1IiqVhe.js} +1 -1
- package/dist/{enum-design-BcF4g87b.js → enum-design-4iAQqQWj.js} +2 -2
- package/dist/{enum-props-C7JjTMv4.js → enum-props-BTNED9Yi.js} +3 -3
- package/dist/{enum-style-CyAkQvzE.js → enum-style-BKunBcCU.js} +3 -3
- package/dist/excel.css +1120 -797
- package/dist/{exceljs.min-D-ILZl-Z.js → exceljs.min-DqUfJ7Zu.js} +2 -2
- package/dist/{expression-design-CjzPxio0.js → expression-design-Avbzm2SR.js} +1 -1
- package/dist/{expression-props-mAVBd5Lq.js → expression-props-BJ2AaS83.js} +1 -1
- package/dist/{expression-style-CrRd3CZN.js → expression-style-Cf0ZciKB.js} +1 -1
- package/dist/{file-design-BvSmEEHz.js → file-design-DXTNk70M.js} +1 -1
- package/dist/{file-props-CmbLCylK.js → file-props-GieYTgUG.js} +2 -2
- package/dist/{file-style-ouUREdJB.js → file-style-CLDdPXPd.js} +1 -1
- package/dist/{font-editor-5O8-WS9U.js → font-editor-DFkc4KNc.js} +3 -3
- package/dist/{image-design-DOdX4Ejf.js → image-design-DWY2Pn2m.js} +2 -2
- package/dist/{image-design-D5Avl99X.js → image-design-J45gqUS9.js} +1 -1
- package/dist/{image-props-DS7B2haQ.js → image-props-DZmoqEbT.js} +1 -1
- package/dist/{image-style-BdC16P3Z.js → image-style-C41-zdmF.js} +1 -1
- package/dist/{index-CqvvTfDm.js → index-5k7C2AD1.js} +1 -1
- package/dist/{index-CZB6MFo2.js → index-B-UBLtsV.js} +1 -1
- package/dist/{index-tVnYGnyM.js → index-B3D6zOat.js} +1 -1
- package/dist/{index-DZWPjTfD.js → index-B9nlN0jW.js} +1 -1
- package/dist/{index--x-rjhUN.js → index-BHIdTmFi.js} +3697 -3053
- package/dist/{index-Bg7RbNAd.js → index-BNn5fobS.js} +1 -1
- package/dist/{index-DjO3xXoL.js → index-BlnMSgZL.js} +2 -2
- package/dist/{index-7Z0q-sUY.js → index-BsOmgpN3.js} +1 -1
- package/dist/{index-u0UnKD61.js → index-Bs_2N-BE.js} +1 -1
- package/dist/{index-Ul5I5n2Y.js → index-BtUdO868.js} +1 -1
- package/dist/{index-DeHhItHR.js → index-C0K1pWGN.js} +1 -1
- package/dist/{index-COPdP22U.js → index-C4hw1NhV.js} +1 -1
- package/dist/{index-Bs5CmUJ6.js → index-C6-vGm0H.js} +1 -1
- package/dist/{index-BA1e8Zw5.js → index-CR7wxW9-.js} +1 -1
- package/dist/{index-Bgz9h2Ur.js → index-CYKuotDL.js} +217 -98
- package/dist/{index-BGwmxIrV.js → index-Cir8zmM7.js} +1 -1
- package/dist/{index-nDINH7fF.js → index-D-uEhZUx.js} +5 -3
- package/dist/{index-DWlCnH_H.js → index-DIknXBmB.js} +2 -2
- package/dist/{index-DPFhljcW.js → index-DRfeEqsi.js} +12 -1
- package/dist/{index-CF4GPHX_.js → index-DXZ9-91Q.js} +1 -1
- package/dist/{index-DAVr0Puy.js → index-Dlcg-_u1.js} +1 -1
- package/dist/{index-B6YwjnNP.js → index-DpPM2hsI.js} +1 -1
- package/dist/{index-POh3kOtN.js → index-DsVq6bop.js} +1 -1
- package/dist/{index-CUDme4M_.js → index-DxfrB4yU.js} +2 -2
- package/dist/{index-OD0V6QZx.js → index-DyTI4fVG.js} +4 -2
- package/dist/{index-upoyI1QX.js → index-FJf8yRGg.js} +1 -1
- package/dist/{index-CO9M5kpu.js → index-Iri9iQ7A.js} +1 -1
- package/dist/{index-B4uW2dJ0.js → index-Izpo3y-u.js} +1 -1
- package/dist/{index-CMM4w3Dw.js → index-Kc67z3Sn.js} +1 -1
- package/dist/{index-mEVrSKb2.js → index-O2psifaU.js} +5 -3
- package/dist/{index-B9bcnmUU.js → index-ZKvvKhlF.js} +1 -1
- package/dist/{index-BqzGUi2w.js → index-s5kgaRm2.js} +1 -1
- package/dist/{index-BP7lVop7.js → index-vDKWJHdv.js} +1 -1
- package/dist/index.es.js +3 -3
- package/dist/{integer-design-XoAOklHI.js → integer-design-oIq4PZgB.js} +1 -1
- package/dist/{integer-props-UG7rgL98.js → integer-props-Dv0CFbj2.js} +4 -4
- package/dist/{integer-style-BwF6P-1M.js → integer-style-CQsFEa78.js} +1 -1
- package/dist/mb-render-13-1F66x.js +263 -0
- package/dist/{number-input-ex-BUhgQIz_.js → number-input-ex-b3jwWBec.js} +1 -1
- package/dist/{org-props-BYIR1Qja.js → org-props-CP6UEZUk.js} +2 -2
- package/dist/{org-style-DXX3gSuh.js → org-style-CVX9tnGL.js} +1 -1
- package/dist/{pagination-design-BVFW-spw.js → pagination-design-CzI3BVnu.js} +2 -2
- package/dist/paper-widget-design-DMIGXtG2.js +4 -0
- package/dist/{qrcode-design-CoFoYXe2.js → qrcode-design-eO4Bd2-V.js} +1 -1
- package/dist/{ref-autofill-editor-8-T3_HNa.js → ref-autofill-editor-DXDYy7g2.js} +7 -6
- package/dist/{ref-props-CkbU8Sr5.js → ref-props-Aiwbx2BA.js} +3 -3
- package/dist/{ref-style-BUqCIl-S.js → ref-style-BYC5yPHt.js} +1 -1
- package/dist/{regex-editor-BAfv4Tt4.js → regex-editor-DWglxD2y.js} +2 -2
- package/dist/{revo-grid.entry-RWcWTs8I.js → revo-grid.entry-DxhjfysT.js} +1 -1
- package/dist/{revogr-attribution_7.entry-BCSuWj1U.js → revogr-attribution_7.entry-ChJzXX9c.js} +3 -3
- package/dist/{revogr-clipboard_3.entry-BTpzs_Rr.js → revogr-clipboard_3.entry-CTfO-vHs.js} +2 -2
- package/dist/{revogr-data_4.entry-DYkSdHom.js → revogr-data_4.entry-DpsZq5Vu.js} +2 -2
- package/dist/{revogr-filter-panel.entry-DOqtLQay.js → revogr-filter-panel.entry-CkNGH07B.js} +1 -1
- package/dist/{select-render-type-editor.vue_vue_type_script_setup_true_lang-D26X3WBX.js → select-render-type-editor.vue_vue_type_script_setup_true_lang-D36XgznF.js} +2 -2
- package/dist/{serialnumber-design-Bx6oAxgA.js → serialnumber-design-cvNqTdU4.js} +1 -1
- package/dist/shared/index.es.js +29 -29
- package/dist/{signature-design-BYwB_lgz.js → signature-design-CxYVBP9N.js} +1 -1
- package/dist/{signature-props-SNM8PS89.js → signature-props-Cs3PONrq.js} +3 -3
- package/dist/{signature-style-BqZ2DAS6.js → signature-style-CAa92-pw.js} +1 -1
- package/dist/{single-field-drop-BwCKh5bM.js → single-field-drop-BXX5wlj_.js} +2 -2
- package/dist/{size-editor-DUazmEj_.js → size-editor-B4aRo4sR.js} +1 -1
- package/dist/src/assets/svgs/table/index.d.ts +38 -0
- package/dist/src/domain/index.d.ts +1 -0
- package/dist/src/domain/suite/suite-features.d.ts +14 -0
- package/dist/src/domain/table/business/check/check-table/index.d.ts +1 -0
- package/dist/src/domain/table/business/check/check-table/profile/index.d.ts +3 -0
- package/dist/src/domain/table/business/material/material-balance/index.d.ts +1 -0
- package/dist/src/domain/table/business/material/material-balance/profile/index.d.ts +3 -0
- package/dist/src/domain/table/business/material/material-consume/index.d.ts +1 -0
- package/dist/src/domain/table/business/material/material-consume/profile/index.d.ts +3 -0
- package/dist/src/domain/table/business/preprocess/pretreatment-list/index.d.ts +2 -0
- package/dist/src/domain/table/business/preprocess/pretreatment-list/profile/field-keys.d.ts +187 -0
- package/dist/src/domain/table/business/preprocess/pretreatment-list/profile/fields.d.ts +2 -0
- package/dist/src/domain/table/business/preprocess/pretreatment-list/profile/index.d.ts +3 -0
- package/dist/src/domain/table/business/preprocess/pretreatment-list/runtime/register-handlers.d.ts +1 -0
- package/dist/src/domain/table/business/preprocess/pretreatment-list/runtime/row-change-handlers.d.ts +26 -0
- package/dist/src/domain/table/business/sterilize/entrust-steril-batch-list/index.d.ts +1 -0
- package/dist/src/domain/table/business/sterilize/entrust-steril-batch-list/profile/index.d.ts +3 -0
- package/dist/src/domain/table/business/warehouse/device-part-consume/index.d.ts +2 -0
- package/dist/src/domain/table/business/warehouse/device-part-consume/profile/field-keys.d.ts +65 -0
- package/dist/src/domain/table/business/warehouse/device-part-consume/profile/fields.d.ts +2 -0
- package/dist/src/domain/table/business/warehouse/device-part-consume/profile/index.d.ts +3 -0
- package/dist/src/domain/table/business/warehouse/device-part-consume/runtime/register-handlers.d.ts +1 -0
- package/dist/src/domain/table/business/warehouse/device-part-consume/runtime/row-change-handlers.d.ts +6 -0
- package/dist/src/domain/table/business/warehouse/part-stocktake/index.d.ts +2 -0
- package/dist/src/domain/table/business/warehouse/part-stocktake/profile/field-keys.d.ts +70 -0
- package/dist/src/domain/table/business/warehouse/part-stocktake/profile/fields.d.ts +2 -0
- package/dist/src/domain/table/business/warehouse/part-stocktake/profile/index.d.ts +3 -0
- package/dist/src/domain/table/business/warehouse/part-stocktake/runtime/register-handlers.d.ts +1 -0
- package/dist/src/domain/table/business/warehouse/part-stocktake/runtime/row-change-handlers.d.ts +10 -0
- package/dist/src/domain/table/business/warehouse/warehouse-allocate/index.d.ts +2 -0
- package/dist/src/domain/table/business/warehouse/warehouse-allocate/profile/field-keys.d.ts +87 -0
- package/dist/src/domain/table/business/warehouse/warehouse-allocate/profile/fields.d.ts +2 -0
- package/dist/src/domain/table/business/warehouse/warehouse-allocate/profile/index.d.ts +3 -0
- package/dist/src/domain/table/business/warehouse/warehouse-allocate/runtime/register-handlers.d.ts +1 -0
- package/dist/src/domain/table/business/warehouse/warehouse-allocate/runtime/row-change-handlers.d.ts +7 -0
- package/dist/src/domain/table/business/warehouse/warehouse-in/index.d.ts +2 -0
- package/dist/src/domain/table/business/warehouse/warehouse-in/profile/field-keys.d.ts +39 -0
- package/dist/src/domain/table/business/warehouse/warehouse-in/profile/fields.d.ts +2 -0
- package/dist/src/domain/table/business/warehouse/warehouse-in/profile/index.d.ts +3 -0
- package/dist/src/domain/table/business/warehouse/warehouse-in/runtime/register-handlers.d.ts +1 -0
- package/dist/src/domain/table/business/warehouse/warehouse-in/runtime/row-change-handlers.d.ts +6 -0
- package/dist/src/domain/table/business/warehouse/warehouse-in-out/index.d.ts +1 -0
- package/dist/src/domain/table/business/warehouse/warehouse-in-out/profile/index.d.ts +3 -0
- package/dist/src/domain/table/business/warehouse/warehouse-inbound/index.d.ts +2 -0
- package/dist/src/domain/table/business/warehouse/warehouse-inbound/profile/field-keys.d.ts +33 -0
- package/dist/src/domain/table/business/warehouse/warehouse-inbound/profile/fields.d.ts +2 -0
- package/dist/src/domain/table/business/warehouse/warehouse-inbound/profile/index.d.ts +3 -0
- package/dist/src/domain/table/business/warehouse/warehouse-inbound/runtime/register-handlers.d.ts +1 -0
- package/dist/src/domain/table/business/warehouse/warehouse-inbound/runtime/row-change-handlers.d.ts +6 -0
- package/dist/src/domain/table/business/warehouse/warehouse-inventory/index.d.ts +2 -0
- package/dist/src/domain/table/business/warehouse/warehouse-inventory/profile/field-keys.d.ts +114 -0
- package/dist/src/domain/table/business/warehouse/warehouse-inventory/profile/fields.d.ts +2 -0
- package/dist/src/domain/table/business/warehouse/warehouse-inventory/profile/index.d.ts +3 -0
- package/dist/src/domain/table/business/warehouse/warehouse-inventory/runtime/register-handlers.d.ts +1 -0
- package/dist/src/domain/table/business/warehouse/warehouse-inventory/runtime/row-change-handlers.d.ts +11 -0
- package/dist/src/domain/table/business/warehouse/warehouse-out/index.d.ts +2 -0
- package/dist/src/domain/table/business/warehouse/warehouse-out/profile/field-keys.d.ts +84 -0
- package/dist/src/domain/table/business/warehouse/warehouse-out/profile/fields.d.ts +2 -0
- package/dist/src/domain/table/business/warehouse/warehouse-out/profile/index.d.ts +3 -0
- package/dist/src/domain/table/business/warehouse/warehouse-out/runtime/register-handlers.d.ts +1 -0
- package/dist/src/domain/table/business/warehouse/warehouse-out/runtime/row-change-handlers.d.ts +6 -0
- package/dist/src/domain/table/business/warehouse/warehouse-outbound/index.d.ts +2 -0
- package/dist/src/domain/table/business/warehouse/warehouse-outbound/profile/field-keys.d.ts +64 -0
- package/dist/src/domain/table/business/warehouse/warehouse-outbound/profile/fields.d.ts +2 -0
- package/dist/src/domain/table/business/warehouse/warehouse-outbound/profile/index.d.ts +3 -0
- package/dist/src/domain/table/business/warehouse/warehouse-outbound/runtime/register-handlers.d.ts +1 -0
- package/dist/src/domain/table/business/warehouse/warehouse-outbound/runtime/row-change-handlers.d.ts +6 -0
- package/dist/src/domain/table/data/dynamic-table/index.d.ts +1 -0
- package/dist/src/domain/table/data/dynamic-table/profile/index.d.ts +3 -0
- package/dist/src/domain/table/data/fixed-table/index.d.ts +1 -0
- package/dist/src/domain/table/data/fixed-table/profile/index.d.ts +3 -0
- package/dist/src/domain/table/data/two-d-table/index.d.ts +1 -0
- package/dist/src/domain/table/data/two-d-table/profile/index.d.ts +3 -0
- package/dist/src/domain/table/design/autofill-expander.d.ts +19 -0
- package/dist/src/domain/table/design/create-subtable.d.ts +14 -0
- package/dist/src/domain/table/design/hooks/on-field-attach.d.ts +13 -0
- package/dist/src/domain/table/design/index.d.ts +6 -0
- package/dist/src/domain/table/design/label.d.ts +3 -0
- package/dist/src/domain/table/design/panel-features.d.ts +16 -0
- package/dist/src/domain/table/design/panel-type.d.ts +6 -0
- package/dist/src/domain/table/design/ribbon-options.d.ts +38 -0
- package/dist/src/domain/table/design/sub-model-matcher.d.ts +10 -0
- package/dist/src/domain/table/index.d.ts +12 -0
- package/dist/src/domain/table/registry.d.ts +27 -0
- package/dist/src/domain/table/runtime/apply-profile.d.ts +16 -0
- package/dist/src/domain/table/runtime/runtime-handlers.d.ts +9 -0
- package/dist/src/domain/table/types.d.ts +137 -0
- package/dist/src/index.d.ts +2 -2
- package/dist/src/nocode-base/src/components/document-quick-fill/quick-fill.util.d.ts +0 -1
- package/dist/src/nocode-base/src/components/document-sub-table-action/type.d.ts +3 -1
- package/dist/src/nocode-base/src/constant/index.d.ts +18 -2
- package/dist/src/nocode-base/src/core/sub-table/allocate-table-core.d.ts +12 -7
- package/dist/src/nocode-base/src/core/sub-table/index.d.ts +1 -0
- package/dist/src/nocode-base/src/core/sub-table/pretreatment-list-table-core.d.ts +12 -5
- package/dist/src/nocode-base/src/core/sub-table/profile-driven-sub-table-core.d.ts +58 -0
- package/dist/src/nocode-base/src/core/sub-table/stocktake-table-core.d.ts +17 -19
- package/dist/src/nocode-base/src/core/sub-table/utils/pretreatment/field-keys.d.ts +2 -117
- package/dist/src/nocode-base/src/core/sub-table/utils/stocktake/field-keys.d.ts +2 -60
- package/dist/src/nocode-base/src/hooks/app-info/index.d.ts +4 -0
- package/dist/src/nocode-base/src/hooks/device-link/controller.d.ts +6 -0
- package/dist/src/nocode-base/src/hooks/device-link/types.d.ts +10 -0
- package/dist/src/nocode-base/src/hooks/form-model/form-model-controller.d.ts +6 -1
- package/dist/src/nocode-base/src/hooks/form-model/types.d.ts +5 -0
- package/dist/src/nocode-base/src/hooks/form-tmpl-config/form-tmpl-config-controller.d.ts +16 -0
- package/dist/src/nocode-base/src/hooks/material-consume/bom-validator.d.ts +140 -18
- package/dist/src/nocode-base/src/hooks/material-consume/index.d.ts +1 -0
- package/dist/src/nocode-base/src/hooks/material-consume/material-consume-group-merge.d.ts +20 -0
- package/dist/src/nocode-base/src/hooks/material-consume/material-consume-table-controller.d.ts +50 -8
- package/dist/src/nocode-base/src/hooks/material-consume/mc-render.d.ts +8 -0
- package/dist/src/nocode-base/src/hooks/material-consume/product-id-query.d.ts +31 -0
- package/dist/src/nocode-base/src/hooks/material-consume/scan-fill.d.ts +10 -0
- package/dist/src/nocode-base/src/hooks/material-consume/scan-validator.d.ts +192 -0
- package/dist/src/nocode-base/src/hooks/material-consume/service.d.ts +2 -0
- package/dist/src/nocode-base/src/hooks/material-consume/types.d.ts +9 -0
- package/dist/src/nocode-base/src/hooks/material-date/material-date.d.ts +44 -0
- package/dist/src/nocode-base/src/hooks/material-date/service.d.ts +4 -0
- package/dist/src/nocode-base/src/hooks/material-date/use-material-date.d.ts +2 -0
- package/dist/src/nocode-base/src/hooks/useDependency.d.ts +2 -3
- package/dist/src/nocode-base/src/interface/render.d.ts +3 -1
- package/dist/src/nocode-base/src/types/business/allocate.d.ts +8 -0
- package/dist/src/nocode-base/src/types/fields/i-trace.d.ts +4 -0
- package/dist/src/nocode-base/src/types/render/mc-render.d.ts +8 -0
- package/dist/src/nocode-base/src/types/widgets/i-paper.d.ts +16 -0
- package/dist/src/nocode-base/src/types/widgets/i-serialnumber.d.ts +4 -0
- package/dist/src/nocode-web-render/src/render/index.d.ts +2 -1
- package/dist/src/nocode-web-render/src/render/sub-table/common/multi-rows-modal.vue.d.ts +15 -0
- package/dist/src/nocode-web-render/src/render/sub-table/common/scan-modal.vue.d.ts +2 -3
- package/dist/src/nocode-web-render/src/render/sub-table/material-consume/mc-web-render.d.ts +4 -0
- package/dist/src/online-form/src/components/device/device-select.vue.d.ts +1 -1
- package/dist/src/online-form/src/views/__cell_widgets__/common/assoc-filter-editor/assoc-filter.util.d.ts +1 -1
- package/dist/src/online-form/src/views/__cell_widgets__/common/input-prop-editor/input-prop-editor.vue.d.ts +2 -0
- package/dist/src/online-form/src/views/designer/constants/index.d.ts +2 -0
- package/dist/src/online-form/src/views/designer/enums/index.d.ts +8 -1
- package/dist/src/online-form/src/views/designer/hooks/useAllSpreadSheets.d.ts +48 -0
- package/dist/src/online-form/src/views/designer/hooks/useSpreadSheet.d.ts +66 -17
- package/dist/src/online-form/src/views/designer/modules/panel/panel-data-init-config/common/add-ipaas/parameter-struct/json-expression-editor.vue.d.ts +1 -1
- package/dist/src/online-form/src/views/designer/modules/panel/panel-tmpl-config/ai-tmpl/ai-tmpl-card.vue.d.ts +12 -0
- package/dist/src/online-form/src/views/designer/modules/panel/panel-tmpl-config/ai-tmpl/ai-tmpl-editor.vue.d.ts +19 -2
- package/dist/src/online-form/src/views/designer/modules/panel/panel-tmpl-config/ai-tmpl/identify-param-card.vue.d.ts +10 -0
- package/dist/src/online-form/src/views/designer/modules/panel/sub-table/comps/repeating-sub-table-config.vue.d.ts +2 -0
- package/dist/src/online-form/src/views/designer/modules/panel/sub-table/comps/sub-table-panel-shell.vue.d.ts +24 -0
- package/dist/src/online-form/src/views/designer/modules/panel/sub-table/comps/use-dynamic-sub-table-panel.d.ts +1533 -0
- package/dist/src/online-form/src/views/designer/modules/panel/{material-consumption → sub-table/material-consumption}/bom-entry-editor.vue.d.ts +1 -1
- package/dist/src/online-form/src/views/designer/modules/panel/{material-consumption → sub-table/material-consumption}/bom-modal.vue.d.ts +1 -1
- package/dist/src/online-form/src/views/designer/modules/panel/{panel-check-table → sub-table/panel-check-table}/select-check-ds-modal.vue.d.ts +1 -1
- package/dist/src/online-form/src/views/designer/modules/toolkit/model-field/add-field-btn.vue.d.ts +2 -0
- package/dist/src/online-form/src/views/inline-cell/use-inline-icon-catalog.d.ts +5 -1
- package/dist/src/shared/components/Scrollbar/src/Scrollbar.vue.d.ts +1 -1
- package/dist/src/shared/components/Signature/logic/index.d.ts +4 -0
- package/dist/src/shared/enum/field-type.d.ts +17 -5
- package/dist/src/shared/enum/index.d.ts +4 -2
- package/dist/src/shared/enum/online-form.d.ts +14 -2
- package/dist/{text-design-Wz4yRq1g.js → text-design-DbDDDCTT.js} +2 -2
- package/dist/{text-design-DN3i2RFW.js → text-design-vFgsAOs6.js} +2 -2
- package/dist/{text-props-B00HIRMS.js → text-props-LQ8JxfCA.js} +4 -5
- package/dist/{text-style-fu30umvT.js → text-style-CKBIm6Y6.js} +1 -1
- package/dist/{throttle-Cpk1LoGk-Fx3LWSEd.js → throttle-Cpk1LoGk-CJfuMBhT.js} +1 -1
- package/dist/{timediff-design-B-4vNIoK.js → timediff-design-C7qKjT0h.js} +1 -1
- package/dist/{trace-design-DtHxTSsv.js → trace-design-DdHPN-JX.js} +2 -2
- package/dist/{trace-props-Rg7mqGt_.js → trace-props-BSRELXnc.js} +60 -48
- package/dist/{trace-style-mCgCCGMz.js → trace-style-BOx3LU4R.js} +1 -1
- package/dist/{user-props-DonrdBsi.js → user-props-DCy_CVdE.js} +2 -2
- package/dist/{user-style-CumTeI-A.js → user-style-BbXij2Ui.js} +1 -1
- package/dist/{value-editor.vue_vue_type_style_index_0_lang-DRQFluA7.js → value-editor.vue_vue_type_style_index_0_lang-DqIfRgzS.js} +2 -2
- package/dist/{version-select-DZOffw2U.js → version-select--5mTgIzw.js} +1 -1
- package/dist/web-render/index.es.js +6 -5
- package/dist/{widget-barcode-Djaec1i2.js → widget-barcode-BYZx9koE.js} +4 -4
- package/dist/{widget-diagonal-Dw5Q9iRl.js → widget-diagonal-CbEoMTV6.js} +3 -3
- package/dist/{widget-image-Dq6zxwLm.js → widget-image-Bgb0W9tX.js} +5 -5
- package/dist/{widget-line-Csab5i9z.js → widget-line-xBvHpkdt.js} +2 -2
- package/dist/{widget-pagination-BmsUSsKm.js → widget-pagination-BjH75g8_.js} +5 -5
- package/dist/{widget-power-DtPCy7UV.js → widget-power-Bvr05ltd.js} +3 -3
- package/dist/{widget-qrcode-BAMbK-3b.js → widget-qrcode-Bj-ntq_n.js} +3 -3
- package/dist/{widget-rangelimit-Bx9qfojs.js → widget-rangelimit-BHa420t4.js} +3 -3
- package/dist/{widget-serialnumber-Bz6EQZR_.js → widget-serialnumber-BoYlmag6.js} +1 -1
- package/dist/{widget-text-CkXtxU3r.js → widget-text-_Q96wqKl.js} +5 -5
- package/dist/{widget-timediff-wqTd7OZs.js → widget-timediff-DtoWALwY.js} +2 -2
- package/package.json +8 -7
- package/dist/mb-render-CRA1gDau.js +0 -449
- package/dist/paper-widget-design-DFOElS47.js +0 -4
- package/dist/src/online-form/src/views/designer/modules/panel/panel-material-balance-table.vue.d.ts +0 -2
- package/dist/src/online-form/src/views/designer/modules/panel/panel-material-stocktake-table.vue.d.ts +0 -2
- package/dist/src/online-form/src/views/designer/modules/panel/panel-pretreatment-table.vue.d.ts +0 -2
- package/dist/src/online-form/src/views/designer/modules/panel/panel-sterilize-batch-table.vue.d.ts +0 -2
- package/dist/src/online-form/src/views/designer/modules/panel/panel-tmpl-config/common/add-tmpl-btn.vue.d.ts +0 -7
- /package/dist/src/online-form/src/views/designer/modules/panel/{material-consumption → sub-table/material-consumption}/edit-parse-rule.vue.d.ts +0 -0
- /package/dist/src/online-form/src/views/designer/modules/panel/{material-consumption → sub-table/material-consumption}/panel-material-consumption-table.vue.d.ts +0 -0
- /package/dist/src/online-form/src/views/designer/modules/panel/{material-consumption → sub-table/material-consumption}/translate-span.vue.d.ts +0 -0
- /package/dist/src/online-form/src/views/designer/modules/panel/{material-consumption → sub-table/material-consumption}/use-product-translate.d.ts +0 -0
- /package/dist/src/online-form/src/views/designer/modules/panel/{panel-check-table → sub-table/panel-check-table}/add-ds-btn.vue.d.ts +0 -0
- /package/dist/src/online-form/src/views/designer/modules/panel/{panel-check-table → sub-table/panel-check-table}/right-list.vue.d.ts +0 -0
- /package/dist/src/online-form/src/views/designer/modules/panel/{panel-check-table.vue.d.ts → sub-table/panel-check-table.vue.d.ts} +0 -0
- /package/dist/src/online-form/src/views/designer/modules/panel/{panel-data-group-2d.vue.d.ts → sub-table/panel-data-group-2d.vue.d.ts} +0 -0
- /package/dist/src/online-form/src/views/designer/modules/panel/{panel-data-group.vue.d.ts → sub-table/panel-data-group.vue.d.ts} +0 -0
- /package/dist/src/online-form/src/views/designer/modules/panel/{panel-fixed-table.vue.d.ts → sub-table/panel-fixed-table.vue.d.ts} +0 -0
- /package/dist/src/online-form/src/views/designer/modules/panel/{panel-dynamic-table.vue.d.ts → sub-table/panel-repeating-sub-table.vue.d.ts} +0 -0
package/dist/base/index.es.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { M as MaterialConsumptionPatternEnum,
|
|
4
|
-
import { B as B2,
|
|
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,
|
|
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
|
|
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((
|
|
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) {
|
|
@@ -469,7 +569,7 @@ function shouldAssignScanQty(options) {
|
|
|
469
569
|
function resolveScanRecords(groupByWarehouse, records) {
|
|
470
570
|
const row = { ...records[0] };
|
|
471
571
|
if (!groupByWarehouse) {
|
|
472
|
-
const allLocationIds = records.map((
|
|
572
|
+
const allLocationIds = records.map((e) => e[F$2.location]);
|
|
473
573
|
row[F$2.location] = allLocationIds.length > 1 ? void 0 : allLocationIds[0];
|
|
474
574
|
row[F$2.inventoryLocationIds] = allLocationIds;
|
|
475
575
|
} else {
|
|
@@ -501,7 +601,7 @@ async function getStockData({
|
|
|
501
601
|
);
|
|
502
602
|
return res || [];
|
|
503
603
|
}
|
|
504
|
-
class StocktakeTableCore extends
|
|
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
|
|
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
|
|
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
|
-
}
|
|
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 ===
|
|
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) {
|
|
@@ -598,30 +699,25 @@ class StocktakeTableCore extends SubTableCore {
|
|
|
598
699
|
}
|
|
599
700
|
if (this.isDataProcessed || !autoLoadStock || !this.paramsWarehouseId) return;
|
|
600
701
|
const res = await getStockData({ warehouse_id_: this.paramsWarehouseId });
|
|
601
|
-
this.initData = groupInventoryToStocktakeRows(res, this.isGroupByWarehouse).map((
|
|
602
|
-
calcRowData(
|
|
603
|
-
|
|
604
|
-
return
|
|
702
|
+
this.initData = groupInventoryToStocktakeRows(res, this.isGroupByWarehouse).map((e) => {
|
|
703
|
+
calcRowData(e);
|
|
704
|
+
e.row_source_ = "auto";
|
|
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
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
if (field === F$2.product) {
|
|
618
|
-
|
|
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
|
-
|
|
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,11 +732,10 @@ 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
|
-
const visibleRows = this.tableData.filter((
|
|
643
|
-
const deletedRows = this.tableData.filter((
|
|
737
|
+
const visibleRows = this.tableData.filter((e) => !e.deleted_);
|
|
738
|
+
const deletedRows = this.tableData.filter((e) => e.deleted_);
|
|
644
739
|
const warningList = [];
|
|
645
740
|
for (let i = 0; i < materialGroups.length; i += 1) {
|
|
646
741
|
const groupRecords = materialGroups[i];
|
|
@@ -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;
|
|
@@ -664,8 +758,8 @@ class StocktakeTableCore extends SubTableCore {
|
|
|
664
758
|
});
|
|
665
759
|
}
|
|
666
760
|
if (warningList.length) {
|
|
667
|
-
warningList.forEach((
|
|
668
|
-
this.warning({ content:
|
|
761
|
+
warningList.forEach((e) => {
|
|
762
|
+
this.warning({ content: e });
|
|
669
763
|
});
|
|
670
764
|
}
|
|
671
765
|
if (!mergedIndexes.length) {
|
|
@@ -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
|
|
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 ===
|
|
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 ===
|
|
943
|
+
if (field === F$3.location) {
|
|
875
944
|
return {
|
|
876
|
-
"warehouse_id_.eq": rowData.
|
|
945
|
+
"warehouse_id_.eq": rowData[F$3.warehouse]
|
|
877
946
|
};
|
|
878
|
-
}
|
|
947
|
+
}
|
|
948
|
+
if (field === F$3.originLocation) {
|
|
879
949
|
return {
|
|
880
|
-
"warehouse_id_.eq": rowData.
|
|
950
|
+
"warehouse_id_.eq": rowData[F$3.originWarehouse]
|
|
881
951
|
};
|
|
882
|
-
}
|
|
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
|
|
974
|
+
handleChange(params) {
|
|
975
|
+
super.handleChange(params);
|
|
917
976
|
const { field, value, option, rowData } = params;
|
|
918
|
-
|
|
919
|
-
|
|
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
|
|
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
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
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
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
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
|
|
1084
|
+
const fillFromOption = [
|
|
1026
1085
|
{
|
|
1027
|
-
optionField:
|
|
1028
|
-
toField:
|
|
1086
|
+
optionField: F3.product,
|
|
1087
|
+
toField: F3.product
|
|
1029
1088
|
},
|
|
1030
1089
|
{
|
|
1031
|
-
optionField:
|
|
1032
|
-
toField:
|
|
1090
|
+
optionField: F3.productName,
|
|
1091
|
+
toField: F3.productName
|
|
1033
1092
|
},
|
|
1034
1093
|
{
|
|
1035
|
-
optionField:
|
|
1036
|
-
toField:
|
|
1094
|
+
optionField: F3.productCode,
|
|
1095
|
+
toField: F3.productCode
|
|
1037
1096
|
},
|
|
1038
1097
|
{
|
|
1039
|
-
optionField:
|
|
1040
|
-
toField:
|
|
1098
|
+
optionField: F3.productSpec,
|
|
1099
|
+
toField: F3.productSpec
|
|
1041
1100
|
},
|
|
1042
1101
|
{
|
|
1043
|
-
optionField:
|
|
1044
|
-
toField:
|
|
1102
|
+
optionField: F3.mfgOrder,
|
|
1103
|
+
toField: F3.mfgOrder
|
|
1045
1104
|
},
|
|
1046
1105
|
{
|
|
1047
|
-
optionField:
|
|
1106
|
+
optionField: F3.mfgOrderCode,
|
|
1048
1107
|
//工单号
|
|
1049
|
-
toField:
|
|
1108
|
+
toField: F3.mfgOrderCode
|
|
1050
1109
|
},
|
|
1051
1110
|
{
|
|
1052
1111
|
optionField: "real_start_date_",
|
|
1053
1112
|
//生产日期
|
|
1054
|
-
toField:
|
|
1113
|
+
toField: F3.productionDate
|
|
1055
1114
|
},
|
|
1056
1115
|
{
|
|
1057
|
-
optionField:
|
|
1058
|
-
toField:
|
|
1116
|
+
optionField: F3.qty,
|
|
1117
|
+
toField: F3.qty
|
|
1059
1118
|
}
|
|
1060
1119
|
];
|
|
1061
|
-
function applyFillFromOption
|
|
1062
|
-
const writableA =
|
|
1063
|
-
fillFromOption
|
|
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
|
|
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 ===
|
|
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 !==
|
|
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 !==
|
|
1293
|
+
if (field !== F3.productionContainer) return;
|
|
1235
1294
|
if (option) {
|
|
1236
1295
|
console.log(option);
|
|
1237
|
-
applyFillFromOption
|
|
1296
|
+
applyFillFromOption(rowData, option);
|
|
1238
1297
|
return;
|
|
1239
1298
|
}
|
|
1240
1299
|
if (value == null || value === "") {
|
|
1241
|
-
CLEAR_ON_PROD_CONTAINER_EMPTY
|
|
1300
|
+
CLEAR_ON_PROD_CONTAINER_EMPTY.forEach((key) => {
|
|
1242
1301
|
rowData[key] = void 0;
|
|
1243
1302
|
});
|
|
1244
1303
|
}
|
|
@@ -1267,191 +1326,9 @@ class SterilizeBatchTableCore extends SubTableCore {
|
|
|
1267
1326
|
return;
|
|
1268
1327
|
}
|
|
1269
1328
|
const merged = { ...data, ...containerInfo };
|
|
1270
|
-
this.tableData = [...this.showTableData, applyFillFromOption
|
|
1329
|
+
this.tableData = [...this.showTableData, applyFillFromOption({}, merged)];
|
|
1271
1330
|
}
|
|
1272
1331
|
}
|
|
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__;
|
|
1452
|
-
}
|
|
1453
|
-
return A2;
|
|
1454
|
-
}
|
|
1455
1332
|
function mapRefRowsToOptions(data = [], labelKey = "name_") {
|
|
1456
1333
|
return data.map((item) => ({
|
|
1457
1334
|
label: item.__LABEL__ ?? item[labelKey] ?? String(item.id_ ?? item.id ?? ""),
|
|
@@ -1631,7 +1508,10 @@ function normalizeContainerResult(res) {
|
|
|
1631
1508
|
if (typeof data === "object") return data;
|
|
1632
1509
|
return void 0;
|
|
1633
1510
|
}
|
|
1634
|
-
|
|
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 (
|
|
1694
|
-
result.disabled =
|
|
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 ===
|
|
1706
|
-
if (field ===
|
|
1707
|
-
if (field ===
|
|
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
|
|
1574
|
+
handleChange(params) {
|
|
1575
|
+
super.handleChange(params);
|
|
1710
1576
|
const { field, option, value, rowData } = params;
|
|
1711
|
-
|
|
1712
|
-
const
|
|
1713
|
-
if (field ===
|
|
1714
|
-
|
|
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 ===
|
|
1744
|
-
|
|
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 ===
|
|
1759
|
-
|
|
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,8 +1631,19 @@ function getClassByType(type) {
|
|
|
1808
1631
|
return SterilizeBatchTableCore;
|
|
1809
1632
|
case SubTableType.PRETREATMENT_LIST:
|
|
1810
1633
|
return PretreatmentListTableCore;
|
|
1811
|
-
case SubTableType.
|
|
1812
|
-
return
|
|
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 迁移
|
|
1813
1647
|
default:
|
|
1814
1648
|
return SubTableCore;
|
|
1815
1649
|
}
|
|
@@ -2347,6 +2181,8 @@ function useRenderPageFactory(props, payload) {
|
|
|
2347
2181
|
// 原mfgOrderCode后端给的不是 Id,但工单号字段绑的是id,所以导致数据回显会有问题,新加了mfgOrderId字段,这里做兼容处理
|
|
2348
2182
|
mainMfgOrderId: paramsConfig?._gct_nocode_mfg_order_id_ || paramsConfig?.mfgOrderId || paramsConfig?.mfgOrderCode,
|
|
2349
2183
|
mainWarehouseId: paramsConfig?.warehouseId,
|
|
2184
|
+
mainLotSnId: paramsConfig?.lotSnId,
|
|
2185
|
+
mainProductQty: paramsConfig?.productQty,
|
|
2350
2186
|
mainSterilizationLot: paramsConfig?.sterilizationLot,
|
|
2351
2187
|
mainSterilizationLotId: paramsConfig?.sterilizationLotId,
|
|
2352
2188
|
defaultUserId: payload?.deviceConfig?.defaultUserId,
|
|
@@ -2387,8 +2223,8 @@ function useRenderPageFactory(props, payload) {
|
|
|
2387
2223
|
paramsConfig,
|
|
2388
2224
|
instanceId: id,
|
|
2389
2225
|
subTableInfo
|
|
2390
|
-
}).catch((
|
|
2391
|
-
console.error("Error in requestCustomSourceData:",
|
|
2226
|
+
}).catch((e) => {
|
|
2227
|
+
console.error("Error in requestCustomSourceData:", e);
|
|
2392
2228
|
return null;
|
|
2393
2229
|
}),
|
|
2394
2230
|
transformUtils.getEventInitDataLoad({
|
|
@@ -2403,8 +2239,8 @@ function useRenderPageFactory(props, payload) {
|
|
|
2403
2239
|
findBasicInsInfo,
|
|
2404
2240
|
findFormInsInfo
|
|
2405
2241
|
}
|
|
2406
|
-
}).catch((
|
|
2407
|
-
console.error("Error in getEventInitDataLoad:",
|
|
2242
|
+
}).catch((e) => {
|
|
2243
|
+
console.error("Error in getEventInitDataLoad:", e);
|
|
2408
2244
|
return null;
|
|
2409
2245
|
})
|
|
2410
2246
|
]);
|
|
@@ -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
|
|
2538
|
-
const
|
|
2539
|
-
return JSON.stringify(
|
|
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();
|
|
@@ -3294,7 +3130,7 @@ function useFormulaExpWatcher(options) {
|
|
|
3294
3130
|
const v = await onCalculateFormula("min");
|
|
3295
3131
|
if (myId !== calcReqId) return;
|
|
3296
3132
|
onMinComputed?.(getValue(v));
|
|
3297
|
-
} catch (
|
|
3133
|
+
} catch (e) {
|
|
3298
3134
|
}
|
|
3299
3135
|
}
|
|
3300
3136
|
if (needMaxValidateCalc) {
|
|
@@ -3302,7 +3138,7 @@ function useFormulaExpWatcher(options) {
|
|
|
3302
3138
|
const v = await onCalculateFormula("max");
|
|
3303
3139
|
if (myId !== calcReqId) return;
|
|
3304
3140
|
onMaxComputed?.(getValue(v));
|
|
3305
|
-
} catch (
|
|
3141
|
+
} catch (e) {
|
|
3306
3142
|
}
|
|
3307
3143
|
}
|
|
3308
3144
|
}
|
|
@@ -3311,17 +3147,17 @@ function useFormulaExpWatcher(options) {
|
|
|
3311
3147
|
const hashRowStops = /* @__PURE__ */ new Map();
|
|
3312
3148
|
const clearAllStops = () => {
|
|
3313
3149
|
while (topStops.length) {
|
|
3314
|
-
const
|
|
3150
|
+
const s = topStops.shift();
|
|
3315
3151
|
try {
|
|
3316
|
-
|
|
3317
|
-
} catch (
|
|
3152
|
+
s && s();
|
|
3153
|
+
} catch (e) {
|
|
3318
3154
|
}
|
|
3319
3155
|
}
|
|
3320
3156
|
for (const [, rowMap] of hashRowStops) {
|
|
3321
3157
|
for (const stop2 of rowMap.values()) {
|
|
3322
3158
|
try {
|
|
3323
3159
|
stop2 && stop2();
|
|
3324
|
-
} catch (
|
|
3160
|
+
} catch (e) {
|
|
3325
3161
|
}
|
|
3326
3162
|
}
|
|
3327
3163
|
}
|
|
@@ -3378,11 +3214,11 @@ function useFormulaExpWatcher(options) {
|
|
|
3378
3214
|
}
|
|
3379
3215
|
}
|
|
3380
3216
|
const existingIds = new Set(arr.map(getRowId));
|
|
3381
|
-
for (const
|
|
3382
|
-
if (!existingIds.has(
|
|
3383
|
-
const rid = `${
|
|
3384
|
-
const
|
|
3385
|
-
|
|
3217
|
+
for (const r of Array.from(rowMap.keys())) {
|
|
3218
|
+
if (!existingIds.has(r)) {
|
|
3219
|
+
const rid = `${r}_${processed}`;
|
|
3220
|
+
const s = rowMap.get(rid);
|
|
3221
|
+
s && s();
|
|
3386
3222
|
rowMap.delete(rid);
|
|
3387
3223
|
}
|
|
3388
3224
|
}
|
|
@@ -3515,9 +3351,9 @@ class FormAnnotationController {
|
|
|
3515
3351
|
const items = this.normalizeAllResponse(res);
|
|
3516
3352
|
this.applyAnnotationItems(items, () => true);
|
|
3517
3353
|
return items;
|
|
3518
|
-
} catch (
|
|
3519
|
-
console.error("加载所有批注信息 error",
|
|
3520
|
-
throw
|
|
3354
|
+
} catch (e) {
|
|
3355
|
+
console.error("加载所有批注信息 error", e);
|
|
3356
|
+
throw e;
|
|
3521
3357
|
}
|
|
3522
3358
|
};
|
|
3523
3359
|
handleOpenAnnotation = async () => {
|
|
@@ -3580,8 +3416,8 @@ function useMaterialStocktake() {
|
|
|
3580
3416
|
}
|
|
3581
3417
|
}
|
|
3582
3418
|
);
|
|
3583
|
-
return stocktakeTables.reduce((obj,
|
|
3584
|
-
obj[
|
|
3419
|
+
return stocktakeTables.reduce((obj, e) => {
|
|
3420
|
+
obj[e.masterSubField] = res?.data;
|
|
3585
3421
|
return obj;
|
|
3586
3422
|
}, {});
|
|
3587
3423
|
}
|
|
@@ -3594,172 +3430,187 @@ function useMaterialStocktake() {
|
|
|
3594
3430
|
};
|
|
3595
3431
|
}
|
|
3596
3432
|
export {
|
|
3597
|
-
|
|
3433
|
+
aq as AITooltips,
|
|
3598
3434
|
AllocateTableCore,
|
|
3599
3435
|
B3 as BaseFormModelFetcher,
|
|
3600
|
-
|
|
3601
|
-
|
|
3602
|
-
|
|
3436
|
+
as as BinarizeMethodOptions,
|
|
3437
|
+
aC as BindCmpStyleEnum,
|
|
3438
|
+
R as BooleanShowMode,
|
|
3603
3439
|
B2 as BorderTD,
|
|
3604
3440
|
BpmnNodeTypeEnum,
|
|
3605
|
-
|
|
3606
|
-
|
|
3441
|
+
bB as BpmnSignatureTypeEnum,
|
|
3442
|
+
bC as ButtonTypeEnum,
|
|
3607
3443
|
B as BwipCodeType,
|
|
3608
|
-
|
|
3609
|
-
|
|
3610
|
-
|
|
3444
|
+
bD as CHECK_TABLE_MEDPRO_PROTOCOL_KEY,
|
|
3445
|
+
t as CellType,
|
|
3446
|
+
a0 as CellWidgetViewState,
|
|
3611
3447
|
CheckDsTypeEnum,
|
|
3612
|
-
|
|
3448
|
+
bE as CodeRunner,
|
|
3613
3449
|
ComponentTypeEnum,
|
|
3614
|
-
|
|
3615
|
-
|
|
3616
|
-
|
|
3617
|
-
|
|
3618
|
-
|
|
3619
|
-
|
|
3620
|
-
|
|
3621
|
-
|
|
3622
|
-
|
|
3623
|
-
|
|
3624
|
-
|
|
3450
|
+
bF as Config_Fields,
|
|
3451
|
+
bG as ControlStatusEnum,
|
|
3452
|
+
aA as DateFormat,
|
|
3453
|
+
aD as DecimalDisplayMode,
|
|
3454
|
+
ar as DenoiseMethodOptions,
|
|
3455
|
+
m as DeviceConnector,
|
|
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
|
-
|
|
3627
|
-
|
|
3628
|
-
|
|
3629
|
-
|
|
3630
|
-
|
|
3631
|
-
|
|
3632
|
-
|
|
3633
|
-
|
|
3463
|
+
n as DocumentLoading,
|
|
3464
|
+
c as DocumentPaper,
|
|
3465
|
+
o as DynamicQuickFillModal,
|
|
3466
|
+
d as DynamicTableAction,
|
|
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,
|
|
3637
3474
|
F2 as FormModelController,
|
|
3638
3475
|
FormTmplBomController,
|
|
3639
|
-
|
|
3476
|
+
p as FormTmplConfigController,
|
|
3640
3477
|
FormTypeEnum,
|
|
3641
|
-
|
|
3642
|
-
|
|
3643
|
-
|
|
3644
|
-
|
|
3645
|
-
|
|
3478
|
+
ak as ImageDisplayModeEnum,
|
|
3479
|
+
I as InstanceStatusValues,
|
|
3480
|
+
au as JoinModelTypeEum,
|
|
3481
|
+
Q as LabelPosition,
|
|
3482
|
+
a3 as LineDirection,
|
|
3646
3483
|
L as LineType,
|
|
3647
|
-
|
|
3648
|
-
|
|
3649
|
-
|
|
3484
|
+
M as MBRender,
|
|
3485
|
+
q as MCDataUtil,
|
|
3486
|
+
a7 as MCRender,
|
|
3650
3487
|
MaterialConsumeTableController,
|
|
3651
3488
|
MaterialConsumptionPatternEnum,
|
|
3652
3489
|
MaterialStatusEnum,
|
|
3653
|
-
|
|
3490
|
+
bJ as MobileFillTypeEnum,
|
|
3654
3491
|
NCB_PROVIDE,
|
|
3655
|
-
|
|
3492
|
+
O2 as OCR_MODEL_PRECISION_ENUM_KEY,
|
|
3493
|
+
bK as OfficeTypeEnum,
|
|
3656
3494
|
O as Orientation,
|
|
3657
|
-
|
|
3495
|
+
j as PageSizeEnum,
|
|
3658
3496
|
P as PaginationFormat,
|
|
3659
|
-
|
|
3660
|
-
|
|
3661
|
-
|
|
3662
|
-
|
|
3497
|
+
al as PaperSizeMap,
|
|
3498
|
+
h as PaperWidgeType,
|
|
3499
|
+
G as PaperWidgeValueType,
|
|
3500
|
+
at as ParamModelTypeEnum,
|
|
3501
|
+
PartStocktakeTableCore,
|
|
3663
3502
|
PlatformEnum,
|
|
3664
|
-
|
|
3503
|
+
bL as PosEnum,
|
|
3665
3504
|
PretreatmentListTableCore,
|
|
3666
|
-
|
|
3667
|
-
|
|
3505
|
+
ProfileDrivenSubTableCore,
|
|
3506
|
+
bM as RangeCompareOp,
|
|
3507
|
+
aL as RangeValidateMode,
|
|
3668
3508
|
RenderModeEnum,
|
|
3669
|
-
|
|
3670
|
-
|
|
3671
|
-
|
|
3672
|
-
|
|
3509
|
+
W as SignShowTypeEnum,
|
|
3510
|
+
T as SignatureNumberTypeEnum,
|
|
3511
|
+
V as SignatureTimeTypeEnum,
|
|
3512
|
+
X as SignatureTypeEnum,
|
|
3673
3513
|
SterilizeBatchTableCore,
|
|
3674
3514
|
StocktakeTableCore,
|
|
3675
3515
|
SubTableCore,
|
|
3676
3516
|
SubTableCoreFactory,
|
|
3677
3517
|
SubTableType,
|
|
3678
|
-
|
|
3679
|
-
|
|
3680
|
-
|
|
3681
|
-
|
|
3682
|
-
|
|
3683
|
-
|
|
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,
|
|
3684
3528
|
baseDataUtils,
|
|
3685
|
-
|
|
3686
|
-
|
|
3529
|
+
bQ as buildFormChangeDisplayRows,
|
|
3530
|
+
bR as buildStableFieldLocation,
|
|
3687
3531
|
calcFillData,
|
|
3688
3532
|
calcUtils,
|
|
3689
3533
|
clearFormRules,
|
|
3690
3534
|
collectAnnotationItemsByLocation,
|
|
3691
3535
|
collectFormChangeFieldLocations,
|
|
3692
3536
|
commonUtils,
|
|
3693
|
-
|
|
3694
|
-
|
|
3537
|
+
bS as deleteSubtableRow,
|
|
3538
|
+
bT as detailsHaveFormChangeRowOps,
|
|
3695
3539
|
enrichFormChangeRowDetails,
|
|
3696
|
-
|
|
3540
|
+
bU as extractFormChangeRowDetails,
|
|
3697
3541
|
extractKeywordFromQueryData,
|
|
3698
|
-
|
|
3699
|
-
|
|
3700
|
-
|
|
3542
|
+
bV as fetchCheckDsDataForTable,
|
|
3543
|
+
bW as fetchCustomCheckDsData,
|
|
3544
|
+
fetchHistoryConsume,
|
|
3545
|
+
bX as fetchMedProCheckDsData,
|
|
3701
3546
|
filterAnnotationItemsUpToCurrent,
|
|
3702
3547
|
getAppInfo,
|
|
3703
|
-
|
|
3704
|
-
|
|
3705
|
-
|
|
3706
|
-
|
|
3548
|
+
bY as getCheckTableSnapshotKey,
|
|
3549
|
+
bZ as getFormChangeRowKey,
|
|
3550
|
+
b_ as getFormChangeRowOp,
|
|
3551
|
+
aK as getLotLockedReason,
|
|
3552
|
+
b$ as getParseRuleConfig,
|
|
3707
3553
|
getParseRuleInfo,
|
|
3708
3554
|
getParseRuleValue,
|
|
3709
|
-
|
|
3555
|
+
c0 as getSubTableQuickFillInfo,
|
|
3710
3556
|
getSuiteKey,
|
|
3711
|
-
|
|
3712
|
-
|
|
3713
|
-
|
|
3714
|
-
|
|
3715
|
-
|
|
3716
|
-
|
|
3557
|
+
c1 as handleOldConfig,
|
|
3558
|
+
c2 as hasAnyCheckTableSnapshot,
|
|
3559
|
+
c3 as hasByTableCheckTableSnapshot,
|
|
3560
|
+
c4 as hasSharedCheckTableSnapshot,
|
|
3561
|
+
c5 as insertSubtableRows,
|
|
3562
|
+
c6 as isAnnLocationSelected,
|
|
3563
|
+
isBomGranted,
|
|
3717
3564
|
isEdhrSuite,
|
|
3718
|
-
|
|
3719
|
-
|
|
3720
|
-
|
|
3721
|
-
|
|
3722
|
-
|
|
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,
|
|
3723
3573
|
nextFormChangeRowViewHistoryId,
|
|
3724
|
-
|
|
3725
|
-
|
|
3726
|
-
|
|
3727
|
-
|
|
3728
|
-
|
|
3574
|
+
aF as normalizeRefLoaderResult,
|
|
3575
|
+
ce as parseFrontConfig,
|
|
3576
|
+
cf as recordSubtableRowAdd,
|
|
3577
|
+
cg as recordSubtableRowDelete,
|
|
3578
|
+
aG as refUtils,
|
|
3729
3579
|
registerValidationContext,
|
|
3730
|
-
|
|
3580
|
+
ch as relocateDeletedRowsToEnd,
|
|
3731
3581
|
renderUtils,
|
|
3732
3582
|
requestDisplayValidation,
|
|
3733
3583
|
requestFullValidation,
|
|
3734
|
-
|
|
3735
|
-
|
|
3736
|
-
|
|
3737
|
-
|
|
3738
|
-
|
|
3739
|
-
|
|
3740
|
-
|
|
3741
|
-
|
|
3742
|
-
|
|
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,
|
|
3743
3593
|
settleAndValidateDisplay,
|
|
3744
|
-
|
|
3594
|
+
av as sqlUtils,
|
|
3595
|
+
co as stockCheck,
|
|
3745
3596
|
transformUtils,
|
|
3746
3597
|
unregisterValidationContext,
|
|
3747
|
-
|
|
3748
|
-
|
|
3749
|
-
|
|
3598
|
+
H as useCalculateFormula,
|
|
3599
|
+
aJ as useCurrentPageFormState,
|
|
3600
|
+
aN as useDependency,
|
|
3750
3601
|
useEbrWikiFactoryV2,
|
|
3751
|
-
|
|
3752
|
-
|
|
3602
|
+
u3 as useFormModel,
|
|
3603
|
+
u2 as useFormTmplConfig,
|
|
3753
3604
|
useFormulaExpWatcher,
|
|
3754
3605
|
useMaterialBalance,
|
|
3755
3606
|
useMaterialStocktake,
|
|
3756
3607
|
useNocodeEmitter,
|
|
3757
|
-
|
|
3758
|
-
|
|
3608
|
+
az as useNocodeFormWidget,
|
|
3609
|
+
cp as useOnlineFormActionButton,
|
|
3759
3610
|
u as useOnlineFormTransformField2Component,
|
|
3760
3611
|
useRenderPageFactory,
|
|
3761
|
-
|
|
3762
|
-
|
|
3763
|
-
|
|
3612
|
+
a as useStyles,
|
|
3613
|
+
b as useValidator,
|
|
3614
|
+
aw as useWidgetStaticAttrs,
|
|
3764
3615
|
validate
|
|
3765
3616
|
};
|