@gct-paas/excel 0.1.19 → 0.1.21
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-Bt1Le9qP.js → VueVideoPlayer-Bf0x69CJ.js} +2 -2
- package/dist/{agg-design-B_5evAJ0.js → agg-design-CLSOm6QJ.js} +1 -1
- package/dist/{agg-props-C62Ecenu.js → agg-props-4nnDqWtf.js} +1 -1
- package/dist/{agg-style-Q0xSL8Ye.js → agg-style-FHSkeH5u.js} +1 -1
- package/dist/{align-editor-D_LtYlh3.js → align-editor-Bf391dfO.js} +1 -1
- package/dist/{attach-fields-editor-3v3VNOfe.js → attach-fields-editor-U0Vg4ar8.js} +3 -2
- package/dist/{barcode-design-lusKmMnv.js → barcode-design-XLuURxqD.js} +2 -2
- package/dist/base/index.es.js +352 -177
- package/dist/{base-font-editor-DmasOst9.js → base-font-editor-adnb7ShQ.js} +3 -2
- package/dist/{boolean-design-BqGJVhKn.js → boolean-design-Bk3jIc2m.js} +2 -2
- package/dist/{boolean-props-DS7J4GHS.js → boolean-props-D1C7P7oX.js} +3 -3
- package/dist/{boolean-style-C9FslVV7.js → boolean-style-CWmep9-Y.js} +4 -4
- package/dist/{cell-upload-BFw5Yg_j.js → cell-upload-wzPF8ovv.js} +3 -2
- package/dist/{date-range-editor-PmJBHc8i.js → date-range-editor-CGCLkDFp.js} +3 -2
- package/dist/{date-time-design-DQ_Z-xUx.js → date-time-design-CG6fhsBd.js} +1 -1
- package/dist/{date-time-props-DfZoJukN.js → date-time-props-DGa4XIFD.js} +3 -3
- package/dist/{date-time-style-Doye-MHk.js → date-time-style-C5xs_HQX.js} +1 -1
- package/dist/{decimal-design-Bg-tdrtL.js → decimal-design-Dg2PWB7J.js} +1 -1
- package/dist/{decimal-display-mode-D_K6_XX1.js → decimal-display-mode-B5nxWZnK.js} +2 -2
- package/dist/{decimal-props-4QveEdf3.js → decimal-props-BUduwEu5.js} +4 -4
- package/dist/{decimal-style-B-n8SfAy.js → decimal-style-CW6QyMh0.js} +1 -1
- package/dist/{default-value-editor.vue_vue_type_script_setup_true_name_default-value-editor_lang-B3GvGAje.js → default-value-editor.vue_vue_type_script_setup_true_name_default-value-editor_lang-BlQSjkvP.js} +3 -2
- package/dist/{diagonal-design-B_l3lV5s.js → diagonal-design-xlveiCza.js} +2 -2
- package/dist/{double-design-BaWZXLjK.js → double-design-Dkzgoo0g.js} +1 -1
- package/dist/{double-props-sDsBpAER.js → double-props-DwI5z-Mz.js} +4 -4
- package/dist/{double-style--oSjQw07.js → double-style-B09n2Oup.js} +1 -1
- package/dist/{dynamic-table-action-zLjamAaN.js → dynamic-table-action-KwzaoPBC.js} +130 -271
- package/dist/{dynamic-table-action.vue_vue_type_style_index_0_scoped_94e9d614_lang-UooIxEeL.js → dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-ByU7Owiw.js} +436 -306
- package/dist/{edit.utils-CXmmCnxE-BrwRVXLT.js → edit.utils-CXmmCnxE-Do4weQUL.js} +1 -1
- package/dist/{enum-design-BgVuHvvu.js → enum-design-D_hYB8q2.js} +2 -2
- package/dist/{enum-props-DYN6LsLg.js → enum-props-SHpVl7is.js} +4 -4
- package/dist/{enum-style-D56_-gMw.js → enum-style-zTZKj6Li.js} +3 -3
- package/dist/excel.css +10119 -10237
- package/dist/{exceljs.min-DQkwXbni.js → exceljs.min-Dy4OavkS.js} +2 -2
- package/dist/{expression-design-CIMwIArR.js → expression-design-DH37JCnd.js} +1 -1
- package/dist/{expression-props--l3LwKAM.js → expression-props-D4aZ2FzY.js} +1 -1
- package/dist/{expression-style-CjM5oro9.js → expression-style-Bj0tEmqJ.js} +1 -1
- package/dist/{file-design-BYcXA55B.js → file-design-hV82bwcT.js} +1 -1
- package/dist/{file-props-DvsQZUcL.js → file-props-BR0xOn8f.js} +2 -2
- package/dist/{file-style-BiWmCsMZ.js → file-style-CPXRGFCR.js} +1 -1
- package/dist/{font-editor-BaRVmXey.js → font-editor-QrOFLcNA.js} +3 -3
- package/dist/{image-design-Bad-BXel.js → image-design-B3FASJvR.js} +2 -2
- package/dist/{image-design-Dr_w89Hq.js → image-design-WqYFe8Hz.js} +2 -2
- package/dist/{image-props-4lKEAwDq.js → image-props-DZ0lHvNN.js} +1 -1
- package/dist/{image-style-LoHD1zvr.js → image-style-D3jSU46p.js} +1 -1
- package/dist/{index--Bxx_VqV.js → index-4aWfyi4S.js} +2 -2
- package/dist/{index-pPTh0-mL.js → index-B2JfWmQ5.js} +1 -1
- package/dist/{index-D4Yb4Urx.js → index-BCRANZ6N.js} +1 -1
- package/dist/index-BYFfjfXo.js +4198 -0
- package/dist/{index-Bsjegt_0.js → index-BYnhPyxm.js} +1 -1
- package/dist/{index-Vx5npC-J.js → index-B_bGf5j3.js} +2 -2
- package/dist/{index-DRYxbbtG.js → index-BgJenclY.js} +1 -1
- package/dist/{index-CH--dgZ4.js → index-BocrGDq2.js} +1 -1
- package/dist/{index-3qfB5NN-.js → index-BpacgAuY.js} +1 -1
- package/dist/{index-DDnUeBCP.js → index-C9uva5U9.js} +1 -1
- package/dist/{index-D-mFMP7t.js → index-CAp9OIUg.js} +2 -2
- package/dist/{index-COiTpNXf.js → index-CVsM5Bam.js} +1 -1
- package/dist/{index-Ce0SltjH.js → index-Cblyq6yH.js} +1 -1
- package/dist/{index-ByXwQO9g.js → index-ChFaMPeg.js} +2 -2
- package/dist/{index-CqjhgxKH.js → index-Cqh9EW_d.js} +9 -3
- package/dist/{index-B-2N8GeG.js → index-CquVE9ii.js} +1 -1
- package/dist/{index-Dk-CUvB9.js → index-CsLZerBY.js} +42714 -4640
- package/dist/{index-CQ7Hcly4.js → index-D8uy8whi.js} +1 -1
- package/dist/{index-CEufXc_2.js → index-DKR79OBc.js} +1 -1
- package/dist/{index-C7KdVTwU.js → index-DNHA-joo.js} +1 -1
- package/dist/{index-Bki98NXv.js → index-DU3SF4eg.js} +1 -1
- package/dist/{index-CcLTIQGc.js → index-DVaUctcz.js} +1 -1
- package/dist/{index-B9IMST50.js → index-DegtNz07.js} +1 -1
- package/dist/{index-B_VejD7m.js → index-DpFPYL8b.js} +1 -1
- package/dist/{index-BSfbsA-W.js → index-Dvp79b5b.js} +1 -1
- package/dist/{index-CP099vf_.js → index-DxgKf-wy.js} +1 -1
- package/dist/{index-BZYuG4zS.js → index-Jz0_ApK0.js} +1 -1
- package/dist/{index-C6mtZJIQ.js → index-Ol6_R1tg.js} +1 -1
- package/dist/{index-B3YoA1vo.js → index-RY064UmV.js} +1 -1
- package/dist/{index-BsUkUBZV.js → index-dECIkP6q.js} +1 -1
- package/dist/{index-DpPrrfLV.js → index-iGA3l7nd.js} +5 -1
- package/dist/{index-D9CHdykS.js → index-pMF19I7H.js} +1 -1
- package/dist/{index-Dq72GFzs.js → index-wmbtcxzT.js} +2 -2
- package/dist/index.es.js +45 -45
- package/dist/{integer-design-C2EkL0hc.js → integer-design-_-oIGMZi.js} +1 -1
- package/dist/{integer-props-Cs-CvjQS.js → integer-props-CbhqGTWT.js} +5 -4
- package/dist/{integer-style-BtAfQCAn.js → integer-style-CRDDq2e1.js} +1 -1
- package/dist/{mb-render-CsWNoQnS.js → mb-render-Bh6EegbE.js} +1 -30
- package/dist/{number-input-ex-eza87s5O.js → number-input-ex-n0MRaA8Z.js} +2 -1
- package/dist/{org-props-BJ6FKaVj.js → org-props-B_ED1XJd.js} +2 -2
- package/dist/{org-style-LRy5QsV5.js → org-style-P7mL2u1-.js} +1 -1
- package/dist/{pagination-design-sA-kbILI.js → pagination-design-CC2ZvE5K.js} +2 -2
- package/dist/paper-widget-design-CvvM0OZ2.js +4 -0
- package/dist/{qrcode-design-BsWJrsvD.js → qrcode-design-C_G8R7Lo.js} +1 -1
- package/dist/ref-autofill-editor-DdUMjliQ.js +2333 -0
- package/dist/{ref-props-BInJu7PN.js → ref-props-CCwA0E2w.js} +17 -9
- package/dist/{ref-style-Dgc_9tko.js → ref-style-C3Qy3L2V.js} +1 -1
- package/dist/{regex-editor-C09XpMhm.js → regex-editor-CswiNY9l.js} +3 -2
- package/dist/{revo-grid.entry-BIm5A5wM.js → revo-grid.entry-fhJrZlXs.js} +1 -1
- package/dist/{revogr-attribution_7.entry-B06XF5B_.js → revogr-attribution_7.entry-BxX5Aax7.js} +3 -3
- package/dist/{revogr-clipboard_3.entry-C8dVJYtR.js → revogr-clipboard_3.entry-B84Mg6_S.js} +2 -2
- package/dist/{revogr-data_4.entry-Dgp6vYqe.js → revogr-data_4.entry-BSSMKH9X.js} +2 -2
- package/dist/{revogr-filter-panel.entry-xo_juIUc.js → revogr-filter-panel.entry-xjYp1Z8c.js} +1 -1
- package/dist/{select-render-type-editor.vue_vue_type_script_setup_true_lang-vIUGBOWr.js → select-render-type-editor.vue_vue_type_script_setup_true_lang-JwULnnUe.js} +2 -2
- package/dist/{serialnumber-design-mWcys6hI.js → serialnumber-design-qdEzFAi4.js} +1 -1
- package/dist/shared/index.es.js +26 -27
- package/dist/{signature-design-Dl-Lv5Z5.js → signature-design-DyLTKEwS.js} +1 -1
- package/dist/{signature-props-DSzpO-_r.js → signature-props-CXwqrh0H.js} +3 -3
- package/dist/{signature-style-Bk34vOsk.js → signature-style-ibNQSAPQ.js} +1 -1
- package/dist/{single-field-drop-CiPUMT9B.js → single-field-drop-BSdWy-C4.js} +3 -2
- package/dist/{size-editor-B5aunbUM.js → size-editor-8C1AxONY.js} +1 -1
- package/dist/src/nocode-base/src/components/document-quick-fill/fixed-quick-fill-modal.vue.d.ts +5 -1
- package/dist/src/nocode-base/src/components/document-quick-fill/quick-fill.util.d.ts +11 -6
- package/dist/src/nocode-base/src/components/document-sub-table-action/fixed-table-action.vue.d.ts +4 -0
- package/dist/src/nocode-base/src/hooks/annotation/form-annotation-controller.d.ts +14 -148
- package/dist/src/nocode-base/src/hooks/annotation/index.d.ts +0 -1
- package/dist/src/nocode-base/src/types/fields/i-select.d.ts +4 -0
- package/dist/src/nocode-base/src/types/fields/i-trace.d.ts +7 -0
- package/dist/src/nocode-web-render/src/index.d.ts +0 -1
- package/dist/src/online-form/src/views/__cell_widgets__/common/display-fields-editor/display-fields-editor.vue.d.ts +15 -0
- package/dist/src/online-form/src/views/__cell_widgets__/common/display-fields-editor/display-fields.util.d.ts +11 -0
- package/dist/src/online-form/src/views/__cell_widgets__/common/display-fields-editor/index.d.ts +3 -0
- package/dist/src/online-form/src/views/__cell_widgets__/common/quick-search-editor/index.d.ts +3 -0
- package/dist/src/online-form/src/views/__cell_widgets__/common/quick-search-editor/quick-search-editor.vue.d.ts +15 -0
- package/dist/src/online-form/src/views/__cell_widgets__/common/quick-search-editor/quick-search.util.d.ts +14 -0
- package/dist/src/online-form/src/views/designer/modules/panel/comps/quick-fill-config.vue.d.ts +1 -0
- package/dist/src/online-form/src/views/designer/modules/panel/panel-data-init-config/common/data-source-title.vue.d.ts +2 -2
- package/dist/src/online-form/src/views/render/__components__/_field_/_base_/common-select.util.d.ts +47 -0
- package/dist/src/shared/components/Signature/ui/sign-editor.vue.d.ts +2 -2
- package/dist/src/shared/components/field-transfer/components/field-transfer-modal.vue.d.ts +30 -0
- package/dist/src/shared/components/field-transfer/components/modal-wrapper.vue.d.ts +65 -0
- package/dist/src/shared/components/field-transfer/hooks/useModelField.d.ts +169 -0
- package/dist/src/shared/components/field-transfer/hooks/useTreeData.d.ts +139 -0
- package/dist/src/shared/components/field-transfer/index.d.ts +21 -0
- package/dist/src/shared/components/field-transfer/useFieldTransfer.d.ts +47 -0
- package/dist/src/shared/components/field-transfer/utils/enum.d.ts +6 -0
- package/dist/src/shared/components/field-transfer/utils/i18n.d.ts +1 -0
- package/dist/src/shared/components/field-transfer/utils/tree-tool.d.ts +6 -0
- package/dist/src/shared/components/version-select/version-select.vue.d.ts +2 -2
- package/dist/{text-design-BIFz5gw1.js → text-design-BzDtceUO.js} +2 -2
- package/dist/{text-design-C0dORvkP.js → text-design-Di-2lpQC.js} +2 -2
- package/dist/{text-props-ClHI-4aM.js → text-props-YXtd9DCt.js} +5 -5
- package/dist/{text-style-DANM5fvy.js → text-style-BtclwHUQ.js} +1 -1
- package/dist/{throttle-Cpk1LoGk-Da5HSLWc.js → throttle-Cpk1LoGk-BFMM5iqm.js} +1 -1
- package/dist/{timediff-design-BDCsQIal.js → timediff-design-DPDNHC4C.js} +1 -1
- package/dist/{trace-design-CKqq1WH_.js → trace-design-B2tffMF2.js} +2 -2
- package/dist/{trace-props-BI24XFMc.js → trace-props-CWTXFYZ9.js} +24 -16
- package/dist/{trace-style-CX1f7oZH.js → trace-style-AmSVnHXF.js} +1 -1
- package/dist/use-namespace-qtLS8nEh.js +88 -0
- package/dist/{user-props-gF7KPnP8.js → user-props-hR1saiG7.js} +2 -2
- package/dist/{user-style-DIouAMWa.js → user-style-BsMfhFHo.js} +1 -1
- package/dist/{value-editor.vue_vue_type_style_index_0_lang-DHj-zNxm.js → value-editor.vue_vue_type_style_index_0_lang-zAPZ-2E_.js} +2 -2
- package/dist/{version-select-CL3QQGND.js → version-select-CeQP0Bne.js} +1041 -4
- package/dist/web-render/index.es.js +12 -955
- package/dist/{widget-barcode-DZiCyrQW.js → widget-barcode-DPdsvAF5.js} +4 -4
- package/dist/{widget-diagonal-D_Oz8te1.js → widget-diagonal-BfjZGony.js} +4 -3
- package/dist/{widget-image-TL_SLOap.js → widget-image-D_E_0ZEd.js} +5 -5
- package/dist/{widget-line-BQ-qcBUA.js → widget-line-SDiSxrzr.js} +2 -2
- package/dist/{widget-pagination-DciJE9qC.js → widget-pagination-DdIoe9Yy.js} +5 -5
- package/dist/{widget-power-B9KTIpwA.js → widget-power-hifeC3T0.js} +4 -3
- package/dist/{widget-qrcode-DRoj5rSy.js → widget-qrcode-DBEsM1iE.js} +3 -3
- package/dist/{widget-rangelimit-Ckgx3i4r.js → widget-rangelimit-clQ84tvq.js} +4 -3
- package/dist/{widget-serialnumber-aUkR-0yC.js → widget-serialnumber-BXvzHCYR.js} +1 -1
- package/dist/{widget-text-CJIT-hY3.js → widget-text-CPojsb_9.js} +5 -5
- package/dist/{widget-timediff-x-RQMdNg.js → widget-timediff-DGBZsme_.js} +2 -2
- package/package.json +1 -1
- package/dist/AntdIcon-C3RMq2zm.js +0 -1040
- package/dist/form-annotation-controller-Zw6OoPLe.js +0 -707
- package/dist/index-Bm6Hdoud.js +0 -41849
- package/dist/paper-widget-design-BGY5qu-K.js +0 -4
- package/dist/ref-autofill-editor-BbozAOcm.js +0 -673
- package/dist/src/nocode-base/src/hooks/annotation/types.d.ts +0 -16
- package/dist/src/nocode-web-render/src/annotation/form-abandon-medpro-modal.vue.d.ts +0 -15
- package/dist/src/nocode-web-render/src/annotation/form-abandon-modal.vue.d.ts +0 -15
- package/dist/src/nocode-web-render/src/annotation/form-abandon-v2-modal.vue.d.ts +0 -11
- package/dist/src/nocode-web-render/src/annotation/index.d.ts +0 -2
- package/dist/src/nocode-web-render/src/annotation/submit-form-change-modal.vue.d.ts +0 -104
- package/dist/src/nocode-web-render/src/annotation/use-annotation.d.ts +0 -37
package/dist/base/index.es.js
CHANGED
|
@@ -1,12 +1,29 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { M as MaterialConsumptionPatternEnum, g as MaterialConsumeTableController, S as SubTableCore, h as SubTableActionMenuTypeEnum, i as getMenuByAction, j as SubTableActionEnum, k as getCopySubMenu, l as getInsertSubMenu, m as useMaterialBalance, v as validate, n as commonUtils } from "../dynamic-table-action-
|
|
4
|
-
import { B as B2, o, D as D2, _, p, e, q, f, F, r, s, c, a as
|
|
5
|
-
import { ref, provide, watch, computed } from "vue";
|
|
1
|
+
import { at as fetchHistoryConsume, au as isBomGranted, F as FIELD_TYPE, i as api, ak as getParseRuleInfo, al as getParseRuleValue, av as calcFillData, aw as extractKeywordFromQueryData, t as FormTypeEnum, ax as transformUtils, g as SubTableType, ah as NCB_PROVIDE, ay as settleAndValidateDisplay, az as unregisterValidationContext, aA as clearFormRules, aB as registerValidationContext, e as ComponentTypeEnum, ao as RenderModeEnum, aC as requestFullValidation, aD as requestDisplayValidation, aE as closeValidatorPopovers, aF as baseDataUtils, aG as getRawFormRuleMeta, aH as enrichFormChangeRowDetails, aI as settleAfterModeSwitch, aJ as calcUtils, a0 as CheckDsTypeEnum, ae as renderUtils, E as PlatformEnum, aK as uuid2, aL as normalizeToArray, aM as safeParseArray, aN as BpmnNodeTypeEnum, aO as mergeByMultiKey, as as useNocodeEmitter, $ as EntityModelCategoryEnum, aP as getRowId, aQ as collectFormChangeFieldLocations, aR as nextFormChangeRowViewHistoryId } from "../dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-ByU7Owiw.js";
|
|
2
|
+
import { a3, a5, af, x, aS, aT, B, aU, h, H, aV, aW, aX, ad, ag, a4, a1, a2, I, aY, ap, K, aZ, Y, a7, w, J, L, a_, a$, O, b, P, Z, a, m, a6, b0, b1, an, A, y, z, D, b2, T, V, W, b3, b4, b5, b6, b7, b8, b9, ba, bb, bc, bd, be, bf, bg, bh, bi, bj, bk, bl, bm, bn, ai, bo, bp, aj, bq, br, bs, bt, bu, ab, bv, aa, a8, u, am, ac, a9 } from "../dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-ByU7Owiw.js";
|
|
3
|
+
import { M as MaterialConsumptionPatternEnum, g as MaterialConsumeTableController, S as SubTableCore, h as SubTableActionMenuTypeEnum, i as getMenuByAction, j as SubTableActionEnum, k as getCopySubMenu, l as getInsertSubMenu, m as useMaterialBalance, v as validate, n as commonUtils } from "../dynamic-table-action-KwzaoPBC.js";
|
|
4
|
+
import { B as B2, o, D as D2, _, p, e, q, f, F, r, I as I2, s, c, a as a10, t, u as u2, b as b10, d } from "../dynamic-table-action-KwzaoPBC.js";
|
|
5
|
+
import { ref, provide, watch, computed, onBeforeMount } from "vue";
|
|
6
6
|
import { defaults, pick, merge, has, isEmpty, cloneDeep, debounce } from "lodash-es";
|
|
7
7
|
import dayjs from "dayjs";
|
|
8
|
-
import { B as B3,
|
|
9
|
-
|
|
8
|
+
import { B as B3, F as F2, M, b as b11, u as u3 } from "../mb-render-Bh6EegbE.js";
|
|
9
|
+
var MaterialStatusEnum = /* @__PURE__ */ ((MaterialStatusEnum2) => {
|
|
10
|
+
MaterialStatusEnum2["LOT"] = "LOT";
|
|
11
|
+
MaterialStatusEnum2["SN"] = "SN";
|
|
12
|
+
MaterialStatusEnum2["FORM"] = "FORM";
|
|
13
|
+
MaterialStatusEnum2["PRODUCT_RELEASE"] = "PRODUCT_RELEASE";
|
|
14
|
+
MaterialStatusEnum2["LOT_SN_APPEND"] = "LOT_SN_APPEND";
|
|
15
|
+
MaterialStatusEnum2["TXN"] = "TXN";
|
|
16
|
+
MaterialStatusEnum2["DHR"] = "DHR";
|
|
17
|
+
MaterialStatusEnum2["NOTEBOOK"] = "NOTEBOOK";
|
|
18
|
+
MaterialStatusEnum2["REWORK"] = "REWORK";
|
|
19
|
+
return MaterialStatusEnum2;
|
|
20
|
+
})(MaterialStatusEnum || {});
|
|
21
|
+
var FillingTypeEnum = /* @__PURE__ */ ((FillingTypeEnum2) => {
|
|
22
|
+
FillingTypeEnum2["UNFILLED"] = "UNFILLED";
|
|
23
|
+
FillingTypeEnum2["CREATED"] = "CREATED";
|
|
24
|
+
FillingTypeEnum2["COMPLETED"] = "COMPLETED";
|
|
25
|
+
return FillingTypeEnum2;
|
|
26
|
+
})(FillingTypeEnum || {});
|
|
10
27
|
function useLatestRequest(execFn) {
|
|
11
28
|
let lastReqId = 0;
|
|
12
29
|
const loading = ref(false);
|
|
@@ -172,7 +189,7 @@ class FormTmplBomController {
|
|
|
172
189
|
}
|
|
173
190
|
async submitValidate() {
|
|
174
191
|
const results = await Promise.allSettled(
|
|
175
|
-
Object.values(this.tableControllers).map((
|
|
192
|
+
Object.values(this.tableControllers).map((c2) => c2.submitValidate())
|
|
176
193
|
);
|
|
177
194
|
const successful = results.filter((result) => result.status === "fulfilled").map((result) => result.value);
|
|
178
195
|
const fieldArr = successful.filter(Boolean);
|
|
@@ -1041,11 +1058,11 @@ const fillFromOption$1 = [
|
|
|
1041
1058
|
toField: F$1.qty
|
|
1042
1059
|
}
|
|
1043
1060
|
];
|
|
1044
|
-
function applyFillFromOption$1(A2,
|
|
1061
|
+
function applyFillFromOption$1(A2, B4) {
|
|
1045
1062
|
const writableA = A2;
|
|
1046
1063
|
fillFromOption$1.forEach(({ optionField, toField }) => {
|
|
1047
|
-
if (has(
|
|
1048
|
-
writableA[toField] =
|
|
1064
|
+
if (has(B4, optionField)) {
|
|
1065
|
+
writableA[toField] = B4[optionField];
|
|
1049
1066
|
}
|
|
1050
1067
|
});
|
|
1051
1068
|
return A2;
|
|
@@ -1253,7 +1270,7 @@ class SterilizeBatchTableCore extends SubTableCore {
|
|
|
1253
1270
|
this.tableData = [...this.showTableData, applyFillFromOption$1({}, merged)];
|
|
1254
1271
|
}
|
|
1255
1272
|
}
|
|
1256
|
-
const
|
|
1273
|
+
const F3 = {
|
|
1257
1274
|
/** 物料 */
|
|
1258
1275
|
product: "product_id_",
|
|
1259
1276
|
/** 物料名称 */
|
|
@@ -1278,160 +1295,160 @@ const F4 = {
|
|
|
1278
1295
|
materialContainerNoId: "material_container_no__id_"
|
|
1279
1296
|
};
|
|
1280
1297
|
const PRETREATMENT_ALWAYS_DISABLED_FIELDS = [
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1298
|
+
F3.productCode,
|
|
1299
|
+
F3.productSpec,
|
|
1300
|
+
F3.productName
|
|
1284
1301
|
];
|
|
1285
1302
|
const CLEAR_ON_MFG_ORDER_EMPTY = [
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1303
|
+
F3.mfgOrderCode,
|
|
1304
|
+
F3.product,
|
|
1305
|
+
F3.productName,
|
|
1306
|
+
F3.productCode,
|
|
1307
|
+
F3.productSpec,
|
|
1308
|
+
F3.qty,
|
|
1309
|
+
F3.productionDate
|
|
1293
1310
|
];
|
|
1294
1311
|
const CLEAR_ON_PROD_CONTAINER_EMPTY = [
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1312
|
+
F3.product,
|
|
1313
|
+
F3.productName,
|
|
1314
|
+
F3.productCode,
|
|
1315
|
+
F3.productSpec,
|
|
1316
|
+
F3.qty,
|
|
1317
|
+
F3.mfgOrderCode,
|
|
1318
|
+
F3.mfgOrder,
|
|
1319
|
+
F3.productionDate
|
|
1303
1320
|
];
|
|
1304
1321
|
const CLEAR_ON_MATERIAL_CONTAINER_EMPTY = [
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
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
|
|
1315
1332
|
];
|
|
1316
1333
|
const CLEAR_ON_MFG_ORDER_SELECT = [
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1334
|
+
F3.productionContainer,
|
|
1335
|
+
F3.materialContainerNo,
|
|
1336
|
+
F3.materialContainerNoId
|
|
1320
1337
|
];
|
|
1321
1338
|
const CLEAR_ON_PROD_CONTAINER_SELECT = [
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1339
|
+
F3.mfgOrder,
|
|
1340
|
+
F3.mfgOrderCode,
|
|
1341
|
+
F3.materialContainerNo,
|
|
1342
|
+
F3.materialContainerNoId
|
|
1326
1343
|
];
|
|
1327
1344
|
const CLEAR_ON_MATERIAL_CONTAINER_SELECT = [
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1345
|
+
F3.productionContainer,
|
|
1346
|
+
F3.mfgOrder,
|
|
1347
|
+
F3.mfgOrderCode
|
|
1331
1348
|
];
|
|
1332
1349
|
const fillFromOption = [
|
|
1333
1350
|
{
|
|
1334
|
-
optionField:
|
|
1335
|
-
toField:
|
|
1351
|
+
optionField: F3.product,
|
|
1352
|
+
toField: F3.product
|
|
1336
1353
|
},
|
|
1337
1354
|
{
|
|
1338
|
-
optionField:
|
|
1339
|
-
toField:
|
|
1355
|
+
optionField: F3.productName,
|
|
1356
|
+
toField: F3.productName
|
|
1340
1357
|
},
|
|
1341
1358
|
{
|
|
1342
|
-
optionField:
|
|
1343
|
-
toField:
|
|
1359
|
+
optionField: F3.productCode,
|
|
1360
|
+
toField: F3.productCode
|
|
1344
1361
|
},
|
|
1345
1362
|
{
|
|
1346
|
-
optionField:
|
|
1347
|
-
toField:
|
|
1363
|
+
optionField: F3.productSpec,
|
|
1364
|
+
toField: F3.productSpec
|
|
1348
1365
|
},
|
|
1349
1366
|
{
|
|
1350
|
-
optionField:
|
|
1351
|
-
toField:
|
|
1367
|
+
optionField: F3.mfgOrder,
|
|
1368
|
+
toField: F3.mfgOrder
|
|
1352
1369
|
},
|
|
1353
1370
|
{
|
|
1354
|
-
optionField:
|
|
1355
|
-
toField:
|
|
1371
|
+
optionField: F3.mfgOrderCode,
|
|
1372
|
+
toField: F3.mfgOrderCode
|
|
1356
1373
|
},
|
|
1357
1374
|
{
|
|
1358
1375
|
optionField: "real_start_date_",
|
|
1359
|
-
toField:
|
|
1376
|
+
toField: F3.productionDate
|
|
1360
1377
|
},
|
|
1361
1378
|
{
|
|
1362
|
-
optionField:
|
|
1363
|
-
toField:
|
|
1379
|
+
optionField: F3.qty,
|
|
1380
|
+
toField: F3.qty
|
|
1364
1381
|
}
|
|
1365
1382
|
];
|
|
1366
1383
|
const fillFromMfgOrderOption = [
|
|
1367
1384
|
{
|
|
1368
1385
|
optionField: "id_",
|
|
1369
|
-
toField:
|
|
1386
|
+
toField: F3.mfgOrder
|
|
1370
1387
|
},
|
|
1371
1388
|
{
|
|
1372
1389
|
optionField: "code_",
|
|
1373
|
-
toField:
|
|
1390
|
+
toField: F3.mfgOrderCode
|
|
1374
1391
|
},
|
|
1375
1392
|
{
|
|
1376
|
-
optionField:
|
|
1377
|
-
toField:
|
|
1393
|
+
optionField: F3.product,
|
|
1394
|
+
toField: F3.product
|
|
1378
1395
|
},
|
|
1379
1396
|
{
|
|
1380
|
-
optionField:
|
|
1381
|
-
toField:
|
|
1397
|
+
optionField: F3.productName,
|
|
1398
|
+
toField: F3.productName
|
|
1382
1399
|
},
|
|
1383
1400
|
{
|
|
1384
|
-
optionField:
|
|
1385
|
-
toField:
|
|
1401
|
+
optionField: F3.productCode,
|
|
1402
|
+
toField: F3.productCode
|
|
1386
1403
|
},
|
|
1387
1404
|
{
|
|
1388
|
-
optionField:
|
|
1389
|
-
toField:
|
|
1405
|
+
optionField: F3.productSpec,
|
|
1406
|
+
toField: F3.productSpec
|
|
1390
1407
|
},
|
|
1391
1408
|
{
|
|
1392
1409
|
optionField: "real_start_date_",
|
|
1393
|
-
toField:
|
|
1410
|
+
toField: F3.productionDate
|
|
1394
1411
|
},
|
|
1395
1412
|
{
|
|
1396
|
-
optionField:
|
|
1397
|
-
toField:
|
|
1413
|
+
optionField: F3.qty,
|
|
1414
|
+
toField: F3.qty
|
|
1398
1415
|
}
|
|
1399
1416
|
];
|
|
1400
1417
|
const fillFromProductOption = [
|
|
1401
1418
|
{
|
|
1402
1419
|
optionField: "name_",
|
|
1403
|
-
toField:
|
|
1420
|
+
toField: F3.productName
|
|
1404
1421
|
},
|
|
1405
1422
|
{
|
|
1406
1423
|
optionField: "code_",
|
|
1407
|
-
toField:
|
|
1424
|
+
toField: F3.productCode
|
|
1408
1425
|
},
|
|
1409
1426
|
{
|
|
1410
1427
|
optionField: "spec_",
|
|
1411
|
-
toField:
|
|
1428
|
+
toField: F3.productSpec
|
|
1412
1429
|
}
|
|
1413
1430
|
];
|
|
1414
|
-
const CLEAR_ON_PRODUCT_EMPTY = [
|
|
1415
|
-
function applyFillFromMapping(A2,
|
|
1431
|
+
const CLEAR_ON_PRODUCT_EMPTY = [F3.productName, F3.productCode, F3.productSpec];
|
|
1432
|
+
function applyFillFromMapping(A2, B4, mapping) {
|
|
1416
1433
|
const writableA = A2;
|
|
1417
1434
|
mapping.forEach(({ optionField, toField }) => {
|
|
1418
|
-
if (has(
|
|
1419
|
-
writableA[toField] =
|
|
1435
|
+
if (has(B4, optionField)) {
|
|
1436
|
+
writableA[toField] = B4[optionField];
|
|
1420
1437
|
}
|
|
1421
1438
|
});
|
|
1422
1439
|
return A2;
|
|
1423
1440
|
}
|
|
1424
|
-
function applyFillFromOption(A2,
|
|
1425
|
-
return applyFillFromMapping(A2,
|
|
1441
|
+
function applyFillFromOption(A2, B4) {
|
|
1442
|
+
return applyFillFromMapping(A2, B4, fillFromOption);
|
|
1426
1443
|
}
|
|
1427
|
-
function applyFillFromProductOption(A2,
|
|
1428
|
-
return applyFillFromMapping(A2,
|
|
1444
|
+
function applyFillFromProductOption(A2, B4) {
|
|
1445
|
+
return applyFillFromMapping(A2, B4, fillFromProductOption);
|
|
1429
1446
|
}
|
|
1430
|
-
function applyFillFromMfgOrderOption(A2,
|
|
1431
|
-
applyFillFromMapping(A2,
|
|
1447
|
+
function applyFillFromMfgOrderOption(A2, B4) {
|
|
1448
|
+
applyFillFromMapping(A2, B4, fillFromMfgOrderOption);
|
|
1432
1449
|
const writableA = A2;
|
|
1433
|
-
if (!has(
|
|
1434
|
-
writableA[
|
|
1450
|
+
if (!has(B4, "code_") && (B4.label != null || B4.__LABEL__ != null)) {
|
|
1451
|
+
writableA[F3.mfgOrderCode] = B4.label ?? B4.__LABEL__;
|
|
1435
1452
|
}
|
|
1436
1453
|
return A2;
|
|
1437
1454
|
}
|
|
@@ -1676,24 +1693,24 @@ class PretreatmentListTableCore extends SubTableCore {
|
|
|
1676
1693
|
if (PRETREATMENT_ALWAYS_DISABLED_FIELDS.includes(field)) {
|
|
1677
1694
|
result.disabled = true;
|
|
1678
1695
|
}
|
|
1679
|
-
if (field ===
|
|
1680
|
-
const hasNo = rowData[
|
|
1681
|
-
const idEmpty = rowData[
|
|
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] === "";
|
|
1682
1699
|
result.disabled = !(hasNo && idEmpty);
|
|
1683
1700
|
}
|
|
1684
1701
|
return result;
|
|
1685
1702
|
}
|
|
1686
1703
|
calcFieldDataSource = (params) => {
|
|
1687
1704
|
const { field } = params;
|
|
1688
|
-
if (field ===
|
|
1689
|
-
if (field ===
|
|
1690
|
-
if (field ===
|
|
1705
|
+
if (field === F3.productionContainer) return createProductionContainerLoader();
|
|
1706
|
+
if (field === F3.mfgOrder) return createMfgOrderLoader();
|
|
1707
|
+
if (field === F3.materialContainerNo) return createMaterialContainerLoader();
|
|
1691
1708
|
};
|
|
1692
1709
|
handleChange = (params) => {
|
|
1693
1710
|
const { field, option, value, rowData } = params;
|
|
1694
1711
|
const writable = rowData;
|
|
1695
1712
|
const hasValue = value != null && value !== "";
|
|
1696
|
-
if (field ===
|
|
1713
|
+
if (field === F3.mfgOrder) {
|
|
1697
1714
|
if (option) {
|
|
1698
1715
|
applyFillFromMfgOrderOption(rowData, option._item ?? option);
|
|
1699
1716
|
}
|
|
@@ -1708,7 +1725,7 @@ class PretreatmentListTableCore extends SubTableCore {
|
|
|
1708
1725
|
}
|
|
1709
1726
|
return;
|
|
1710
1727
|
}
|
|
1711
|
-
if (field ===
|
|
1728
|
+
if (field === F3.productionContainer) {
|
|
1712
1729
|
if (option) {
|
|
1713
1730
|
applyFillFromOption(rowData, option._item ?? option);
|
|
1714
1731
|
}
|
|
@@ -1723,7 +1740,7 @@ class PretreatmentListTableCore extends SubTableCore {
|
|
|
1723
1740
|
}
|
|
1724
1741
|
return;
|
|
1725
1742
|
}
|
|
1726
|
-
if (field ===
|
|
1743
|
+
if (field === F3.materialContainerNo) {
|
|
1727
1744
|
if (option) {
|
|
1728
1745
|
applyFillFromOption(rowData, option._item ?? option);
|
|
1729
1746
|
}
|
|
@@ -1738,7 +1755,7 @@ class PretreatmentListTableCore extends SubTableCore {
|
|
|
1738
1755
|
}
|
|
1739
1756
|
return;
|
|
1740
1757
|
}
|
|
1741
|
-
if (field ===
|
|
1758
|
+
if (field === F3.product) {
|
|
1742
1759
|
if (option) {
|
|
1743
1760
|
applyFillFromProductOption(rowData, option._item ?? option);
|
|
1744
1761
|
} else if (!hasValue) {
|
|
@@ -3382,6 +3399,166 @@ function useFormulaExpWatcher(options) {
|
|
|
3382
3399
|
stop
|
|
3383
3400
|
};
|
|
3384
3401
|
}
|
|
3402
|
+
class FormAnnotationController {
|
|
3403
|
+
formIns;
|
|
3404
|
+
basicIns;
|
|
3405
|
+
formRef;
|
|
3406
|
+
paramExtraProps;
|
|
3407
|
+
onVisibleChange;
|
|
3408
|
+
constructor(params) {
|
|
3409
|
+
Object.assign(this, params);
|
|
3410
|
+
this.showAnnotation.value = this.paramExtraProps?._gct_default_annotation_status_ || false;
|
|
3411
|
+
const { emitter, EmitterEnum } = useNocodeEmitter();
|
|
3412
|
+
onBeforeMount(() => {
|
|
3413
|
+
emitter.on(EmitterEnum.__on__open_single_annotation_detail_, (params2) => {
|
|
3414
|
+
console.log("打开单个批注详情 aaaa", params2);
|
|
3415
|
+
this.selectedCell.value = params2.cellLocation;
|
|
3416
|
+
});
|
|
3417
|
+
});
|
|
3418
|
+
watch(
|
|
3419
|
+
[this.ready, this.showAnnotation],
|
|
3420
|
+
async ([isReady, visible]) => {
|
|
3421
|
+
if (!isReady) {
|
|
3422
|
+
return;
|
|
3423
|
+
}
|
|
3424
|
+
const uniqueId = this.basicIns.value?.uniqueId ?? "";
|
|
3425
|
+
if (!visible) {
|
|
3426
|
+
this.selectedCell.value = void 0;
|
|
3427
|
+
this.rowViewHistoryId.value = void 0;
|
|
3428
|
+
await this.formRef.setAnnotationViewStatus(uniqueId, false, []);
|
|
3429
|
+
return;
|
|
3430
|
+
}
|
|
3431
|
+
await this.loadAnnotationHistory();
|
|
3432
|
+
this.rowViewHistoryId.value = void 0;
|
|
3433
|
+
await this.formRef.setAnnotationViewStatus(uniqueId, true, {
|
|
3434
|
+
locations: this.allCellLocation.value,
|
|
3435
|
+
rowDetails: []
|
|
3436
|
+
});
|
|
3437
|
+
},
|
|
3438
|
+
{
|
|
3439
|
+
immediate: true
|
|
3440
|
+
}
|
|
3441
|
+
);
|
|
3442
|
+
}
|
|
3443
|
+
/** 批注显隐 */
|
|
3444
|
+
showAnnotation = ref(false);
|
|
3445
|
+
/** 所有的父级批注数据 */
|
|
3446
|
+
annotationList = ref([]);
|
|
3447
|
+
/** 所有的修改过的单元格位置 */
|
|
3448
|
+
allCellLocation = ref();
|
|
3449
|
+
/** 当前展开行级展示的变更记录 id */
|
|
3450
|
+
rowViewHistoryId = ref();
|
|
3451
|
+
/** 是否已经加载过批注数据 */
|
|
3452
|
+
hasLoadedHistory = ref(false);
|
|
3453
|
+
//! 变更相关变量
|
|
3454
|
+
/** 选中单元格 */
|
|
3455
|
+
selectedCell = ref();
|
|
3456
|
+
//! 表单相关变量
|
|
3457
|
+
/** 是否就绪 */
|
|
3458
|
+
ready = computed(() => {
|
|
3459
|
+
return this.basicIns.value && this.basicIns.value.uniqueId;
|
|
3460
|
+
});
|
|
3461
|
+
/**
|
|
3462
|
+
* 弹出提示警告信息
|
|
3463
|
+
*/
|
|
3464
|
+
/**
|
|
3465
|
+
* 加载批注历史(默认全量;套件可 override 为审批历史等)
|
|
3466
|
+
*/
|
|
3467
|
+
loadAnnotationHistory = async () => {
|
|
3468
|
+
return this.fetchAllFormChangeHistory();
|
|
3469
|
+
};
|
|
3470
|
+
normalizeAllResponse = (res) => {
|
|
3471
|
+
if (!res) return [];
|
|
3472
|
+
return Array.isArray(res) ? res : res.data ?? [];
|
|
3473
|
+
};
|
|
3474
|
+
applyAnnotationItems = (items, callback) => {
|
|
3475
|
+
const scoped = this.scopeAnnotationItems(items || []);
|
|
3476
|
+
this.annotationList.value = scoped;
|
|
3477
|
+
const fieldItems = scoped.filter(
|
|
3478
|
+
(item) => item.changeType === "Form" && item.details?.length && callback?.(item)
|
|
3479
|
+
);
|
|
3480
|
+
this.allCellLocation.value = collectFormChangeFieldLocations(fieldItems);
|
|
3481
|
+
};
|
|
3482
|
+
/**
|
|
3483
|
+
* 按场景裁剪批注列表(套件可 override:审批处理页/详情页)
|
|
3484
|
+
*/
|
|
3485
|
+
scopeAnnotationItems(items) {
|
|
3486
|
+
return items || [];
|
|
3487
|
+
}
|
|
3488
|
+
toggleFormChangeRowView = async (historyId) => {
|
|
3489
|
+
const uniqueId = this.basicIns.value?.uniqueId ?? "";
|
|
3490
|
+
const next = nextFormChangeRowViewHistoryId(
|
|
3491
|
+
this.rowViewHistoryId.value,
|
|
3492
|
+
historyId,
|
|
3493
|
+
this.annotationList.value
|
|
3494
|
+
);
|
|
3495
|
+
this.rowViewHistoryId.value = next.historyId;
|
|
3496
|
+
await this.formRef.setFormChangeRowViewDetails?.(
|
|
3497
|
+
uniqueId,
|
|
3498
|
+
next.rowDetails.length ? next.rowDetails : null,
|
|
3499
|
+
next.historyId
|
|
3500
|
+
);
|
|
3501
|
+
};
|
|
3502
|
+
fetchAllFormChangeHistory = async () => {
|
|
3503
|
+
if (isEmpty(this.formIns.value)) {
|
|
3504
|
+
throw new Error($t("sys.onlineForm.formInstanceIsEmpty"));
|
|
3505
|
+
}
|
|
3506
|
+
try {
|
|
3507
|
+
const res = await api.apaas.onlineFormChangeHistory.getList({
|
|
3508
|
+
instanceId: this.formIns.value.id,
|
|
3509
|
+
tmplId: this.formIns.value.tmplId
|
|
3510
|
+
});
|
|
3511
|
+
const items = this.normalizeAllResponse(res);
|
|
3512
|
+
this.applyAnnotationItems(items, () => true);
|
|
3513
|
+
return items;
|
|
3514
|
+
} catch (e2) {
|
|
3515
|
+
console.error("加载所有批注信息 error", e2);
|
|
3516
|
+
throw e2;
|
|
3517
|
+
}
|
|
3518
|
+
};
|
|
3519
|
+
handleOpenAnnotation = async () => {
|
|
3520
|
+
this.showAnnotation.value = true;
|
|
3521
|
+
if (this.onVisibleChange && typeof this.onVisibleChange === "function") {
|
|
3522
|
+
this.onVisibleChange(false);
|
|
3523
|
+
}
|
|
3524
|
+
};
|
|
3525
|
+
handleCloseAnnotation = async () => {
|
|
3526
|
+
this.showAnnotation.value = false;
|
|
3527
|
+
this.selectedCell.value = void 0;
|
|
3528
|
+
};
|
|
3529
|
+
}
|
|
3530
|
+
function collectAnnotationItemsByLocation(map, cellLocation, fallback = []) {
|
|
3531
|
+
if (cellLocation == null || cellLocation === "") return fallback;
|
|
3532
|
+
const locs = Array.isArray(cellLocation) ? cellLocation : [cellLocation];
|
|
3533
|
+
const merged = [];
|
|
3534
|
+
const seen = /* @__PURE__ */ new Set();
|
|
3535
|
+
locs.forEach((loc) => {
|
|
3536
|
+
(map.get(loc) || []).forEach((item) => {
|
|
3537
|
+
if (seen.has(item.id)) return;
|
|
3538
|
+
seen.add(item.id);
|
|
3539
|
+
merged.push(item);
|
|
3540
|
+
});
|
|
3541
|
+
});
|
|
3542
|
+
return merged;
|
|
3543
|
+
}
|
|
3544
|
+
function annotationItemTime(item) {
|
|
3545
|
+
return Date.parse(item.time || item.createTime || "");
|
|
3546
|
+
}
|
|
3547
|
+
function filterAnnotationItemsUpToCurrent(items) {
|
|
3548
|
+
if (!items?.length) return [];
|
|
3549
|
+
const current = items.find((item) => item.isCurrentChange);
|
|
3550
|
+
if (!current) return items;
|
|
3551
|
+
const currentTs = annotationItemTime(current);
|
|
3552
|
+
if (Number.isNaN(currentTs)) {
|
|
3553
|
+
return items.filter((item) => item.isCurrentChange);
|
|
3554
|
+
}
|
|
3555
|
+
return items.filter((item) => {
|
|
3556
|
+
if (item.isCurrentChange) return true;
|
|
3557
|
+
const ts = annotationItemTime(item);
|
|
3558
|
+
if (Number.isNaN(ts)) return false;
|
|
3559
|
+
return ts <= currentTs;
|
|
3560
|
+
});
|
|
3561
|
+
}
|
|
3385
3562
|
function useMaterialStocktake() {
|
|
3386
3563
|
async function getStockDataByWarehouse({ cloneRuntimeJson, warehouseId, locationId }) {
|
|
3387
3564
|
const stocktakeTables = cloneRuntimeJson?.paper?.props?.materialStocktakeList;
|
|
@@ -3413,83 +3590,81 @@ function useMaterialStocktake() {
|
|
|
3413
3590
|
};
|
|
3414
3591
|
}
|
|
3415
3592
|
export {
|
|
3416
|
-
|
|
3593
|
+
a3 as AITooltips,
|
|
3417
3594
|
AllocateTableCore,
|
|
3418
|
-
|
|
3419
|
-
|
|
3420
|
-
|
|
3421
|
-
|
|
3595
|
+
B3 as BaseFormModelFetcher,
|
|
3596
|
+
a5 as BinarizeMethodOptions,
|
|
3597
|
+
af as BindCmpStyleEnum,
|
|
3598
|
+
x as BooleanShowMode,
|
|
3422
3599
|
B2 as BorderTD,
|
|
3423
3600
|
BpmnNodeTypeEnum,
|
|
3424
3601
|
aS as BpmnSignatureTypeEnum,
|
|
3425
|
-
B3 as BuiltinAction,
|
|
3426
3602
|
aT as ButtonTypeEnum,
|
|
3427
3603
|
B as BwipCodeType,
|
|
3428
3604
|
aU as CHECK_TABLE_MEDPRO_PROTOCOL_KEY,
|
|
3429
3605
|
h as CellType,
|
|
3430
|
-
|
|
3431
|
-
C as ChangeType,
|
|
3606
|
+
H as CellWidgetViewState,
|
|
3432
3607
|
CheckDsTypeEnum,
|
|
3433
3608
|
aV as CodeRunner,
|
|
3434
3609
|
ComponentTypeEnum,
|
|
3435
3610
|
aW as Config_Fields,
|
|
3436
3611
|
aX as ControlStatusEnum,
|
|
3437
|
-
|
|
3438
|
-
|
|
3439
|
-
|
|
3612
|
+
ad as DateFormat,
|
|
3613
|
+
ag as DecimalDisplayMode,
|
|
3614
|
+
a4 as DenoiseMethodOptions,
|
|
3440
3615
|
o as DeviceConnector,
|
|
3441
|
-
|
|
3616
|
+
a1 as DeviceLink,
|
|
3442
3617
|
D2 as DeviceLinkTmplUtil,
|
|
3443
|
-
|
|
3444
|
-
|
|
3618
|
+
a2 as DeviceParamsTypeTitle,
|
|
3619
|
+
I as DiagonalDirection,
|
|
3445
3620
|
_ as DocumentLayout,
|
|
3446
3621
|
p as DocumentLoading,
|
|
3447
3622
|
e as DocumentPaper,
|
|
3448
3623
|
q as DynamicQuickFillModal,
|
|
3449
3624
|
f as DynamicTableAction,
|
|
3450
3625
|
aY as EBR_PROVIDE_ENUM,
|
|
3451
|
-
|
|
3452
|
-
|
|
3626
|
+
ap as EFieldBizTypeEnum,
|
|
3627
|
+
K as EmptySymbol,
|
|
3453
3628
|
aZ as FieldSysVarDefaultValueEnum,
|
|
3454
|
-
|
|
3629
|
+
FillingTypeEnum,
|
|
3455
3630
|
F as FixedQuickFillModal,
|
|
3456
|
-
|
|
3457
|
-
|
|
3631
|
+
FormAnnotationController,
|
|
3632
|
+
F2 as FormModelController,
|
|
3458
3633
|
FormTmplBomController,
|
|
3459
3634
|
r as FormTmplConfigController,
|
|
3460
3635
|
FormTypeEnum,
|
|
3461
|
-
|
|
3462
|
-
|
|
3463
|
-
|
|
3464
|
-
|
|
3465
|
-
|
|
3636
|
+
Y as ImageDisplayModeEnum,
|
|
3637
|
+
I2 as InstanceStatusValues,
|
|
3638
|
+
a7 as JoinModelTypeEum,
|
|
3639
|
+
w as LabelPosition,
|
|
3640
|
+
J as LineDirection,
|
|
3466
3641
|
L as LineType,
|
|
3467
|
-
|
|
3642
|
+
M as MBRender,
|
|
3468
3643
|
s as MCDataUtil,
|
|
3469
3644
|
b11 as MCRender,
|
|
3470
3645
|
MaterialConsumeTableController,
|
|
3471
3646
|
MaterialConsumptionPatternEnum,
|
|
3472
|
-
|
|
3647
|
+
MaterialStatusEnum,
|
|
3473
3648
|
a_ as MobileFillTypeEnum,
|
|
3474
3649
|
NCB_PROVIDE,
|
|
3475
3650
|
a$ as OfficeTypeEnum,
|
|
3476
3651
|
O as Orientation,
|
|
3477
3652
|
b as PageSizeEnum,
|
|
3478
3653
|
P as PaginationFormat,
|
|
3479
|
-
|
|
3654
|
+
Z as PaperSizeMap,
|
|
3480
3655
|
a as PaperWidgeType,
|
|
3481
3656
|
m as PaperWidgeValueType,
|
|
3482
|
-
|
|
3657
|
+
a6 as ParamModelTypeEnum,
|
|
3483
3658
|
PlatformEnum,
|
|
3484
3659
|
b0 as PosEnum,
|
|
3485
3660
|
PretreatmentListTableCore,
|
|
3486
3661
|
b1 as RangeCompareOp,
|
|
3487
|
-
|
|
3662
|
+
an as RangeValidateMode,
|
|
3488
3663
|
RenderModeEnum,
|
|
3489
|
-
|
|
3490
|
-
|
|
3491
|
-
|
|
3492
|
-
|
|
3664
|
+
A as SignShowTypeEnum,
|
|
3665
|
+
y as SignatureNumberTypeEnum,
|
|
3666
|
+
z as SignatureTimeTypeEnum,
|
|
3667
|
+
D as SignatureTypeEnum,
|
|
3493
3668
|
SterilizeBatchTableCore,
|
|
3494
3669
|
StocktakeTableCore,
|
|
3495
3670
|
SubTableCore,
|
|
@@ -3507,71 +3682,71 @@ export {
|
|
|
3507
3682
|
calcFillData,
|
|
3508
3683
|
calcUtils,
|
|
3509
3684
|
clearFormRules,
|
|
3510
|
-
|
|
3511
|
-
|
|
3685
|
+
collectAnnotationItemsByLocation,
|
|
3686
|
+
collectFormChangeFieldLocations,
|
|
3512
3687
|
commonUtils,
|
|
3513
|
-
|
|
3514
|
-
|
|
3688
|
+
b7 as deleteSubtableRow,
|
|
3689
|
+
b8 as detailsHaveFormChangeRowOps,
|
|
3515
3690
|
enrichFormChangeRowDetails,
|
|
3516
|
-
|
|
3691
|
+
b9 as extractFormChangeRowDetails,
|
|
3517
3692
|
extractKeywordFromQueryData,
|
|
3518
|
-
|
|
3519
|
-
|
|
3520
|
-
|
|
3521
|
-
|
|
3693
|
+
ba as fetchCheckDsDataForTable,
|
|
3694
|
+
bb as fetchCustomCheckDsData,
|
|
3695
|
+
bc as fetchMedProCheckDsData,
|
|
3696
|
+
filterAnnotationItemsUpToCurrent,
|
|
3522
3697
|
getAppInfo,
|
|
3523
|
-
|
|
3524
|
-
|
|
3525
|
-
|
|
3698
|
+
bd as getFormChangeRowKey,
|
|
3699
|
+
be as getFormChangeRowOp,
|
|
3700
|
+
bf as getParseRuleConfig,
|
|
3526
3701
|
getParseRuleInfo,
|
|
3527
3702
|
getParseRuleValue,
|
|
3528
|
-
|
|
3703
|
+
bg as getSubTableQuickFillInfo,
|
|
3529
3704
|
getSuiteKey,
|
|
3530
|
-
|
|
3531
|
-
|
|
3532
|
-
|
|
3705
|
+
bh as handleOldConfig,
|
|
3706
|
+
bi as insertSubtableRows,
|
|
3707
|
+
bj as isAnnLocationSelected,
|
|
3533
3708
|
isEdhrSuite,
|
|
3534
|
-
|
|
3535
|
-
|
|
3536
|
-
|
|
3537
|
-
|
|
3538
|
-
|
|
3539
|
-
|
|
3540
|
-
|
|
3541
|
-
|
|
3542
|
-
|
|
3709
|
+
bk as isFormChangeGhostRow,
|
|
3710
|
+
bl as isMedProSuite,
|
|
3711
|
+
bm as isRowAddedInCurrentFormChange,
|
|
3712
|
+
bn as jsonSchemaUtils,
|
|
3713
|
+
nextFormChangeRowViewHistoryId,
|
|
3714
|
+
ai as normalizeRefLoaderResult,
|
|
3715
|
+
bo as recordSubtableRowAdd,
|
|
3716
|
+
bp as recordSubtableRowDelete,
|
|
3717
|
+
aj as refUtils,
|
|
3543
3718
|
registerValidationContext,
|
|
3544
|
-
|
|
3719
|
+
bq as relocateDeletedRowsToEnd,
|
|
3545
3720
|
renderUtils,
|
|
3546
3721
|
requestDisplayValidation,
|
|
3547
3722
|
requestFullValidation,
|
|
3548
|
-
|
|
3549
|
-
|
|
3550
|
-
|
|
3551
|
-
|
|
3552
|
-
|
|
3553
|
-
|
|
3554
|
-
|
|
3723
|
+
br as requestNonMedProCheckDsData,
|
|
3724
|
+
bs as resolveAnnotationFieldLocation,
|
|
3725
|
+
bt as resolveFormChangeRowUi,
|
|
3726
|
+
bu as resolveRowFormChangeMark,
|
|
3727
|
+
ab as setSelectAnnotationId,
|
|
3728
|
+
bv as setSelectMobileTdId,
|
|
3729
|
+
aa as setSelectValidatorId,
|
|
3555
3730
|
settleAndValidateDisplay,
|
|
3556
|
-
|
|
3731
|
+
a8 as sqlUtils,
|
|
3557
3732
|
transformUtils,
|
|
3558
3733
|
unregisterValidationContext,
|
|
3559
|
-
|
|
3560
|
-
|
|
3734
|
+
u as useCalculateFormula,
|
|
3735
|
+
am as useCurrentPageFormState,
|
|
3561
3736
|
c as useDependency,
|
|
3562
3737
|
useEbrWikiFactoryV2,
|
|
3563
|
-
|
|
3564
|
-
|
|
3738
|
+
u3 as useFormModel,
|
|
3739
|
+
a10 as useFormTmplConfig,
|
|
3565
3740
|
useFormulaExpWatcher,
|
|
3566
3741
|
useMaterialBalance,
|
|
3567
3742
|
useMaterialStocktake,
|
|
3568
3743
|
useNocodeEmitter,
|
|
3569
|
-
|
|
3744
|
+
ac as useNocodeFormWidget,
|
|
3570
3745
|
t as useOnlineFormActionButton,
|
|
3571
|
-
|
|
3746
|
+
u2 as useOnlineFormTransformField2Component,
|
|
3572
3747
|
useRenderPageFactory,
|
|
3573
3748
|
b10 as useStyles,
|
|
3574
3749
|
d as useValidator,
|
|
3575
|
-
|
|
3750
|
+
a9 as useWidgetStaticAttrs,
|
|
3576
3751
|
validate
|
|
3577
3752
|
};
|