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