@gct-paas/excel 0.1.20 → 0.1.22
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-DePpm38H.js → VueVideoPlayer-dfgekKID.js} +2 -2
- package/dist/{agg-design-hreKYp5a.js → agg-design-yDLZkVkR.js} +1 -1
- package/dist/{agg-props-CCDh2o6E.js → agg-props-DrXyaNCT.js} +1 -1
- package/dist/{agg-style-Bh8vdJvs.js → agg-style-D_6r9Myg.js} +1 -1
- package/dist/{align-editor-DpDuDOMr.js → align-editor-D5Ra4SB6.js} +1 -1
- package/dist/{attach-fields-editor-BeGxW6de.js → attach-fields-editor-C4JBi-p_.js} +3 -2
- package/dist/{barcode-design-CFVTZNAy.js → barcode-design-D3JH5Afi.js} +2 -2
- package/dist/base/index.es.js +350 -172
- package/dist/{base-font-editor-laOkjBe1.js → base-font-editor-B6J_Ts2T.js} +3 -2
- package/dist/{boolean-design-DIlM9Nrt.js → boolean-design-DQvGDcd9.js} +2 -2
- package/dist/{boolean-props-CGuFs72-.js → boolean-props-BPxPHLqI.js} +3 -3
- package/dist/{boolean-style-BUz6sBUN.js → boolean-style-BSc1-meP.js} +4 -4
- package/dist/{cell-upload-Dw3t7ZKJ.js → cell-upload-CiWekXUb.js} +3 -2
- package/dist/{date-range-editor-rXaru-8n.js → date-range-editor-DPt8-LqQ.js} +3 -2
- package/dist/{date-time-design-HfjWK3SA.js → date-time-design-Dv4dW-Iy.js} +1 -1
- package/dist/{date-time-props-C_cG-6wI.js → date-time-props-Cs4GVKqC.js} +3 -3
- package/dist/{date-time-style-BeCDP5TE.js → date-time-style-iSIC_SNA.js} +1 -1
- package/dist/{decimal-design-DzLpjX9N.js → decimal-design-C-GvHZPx.js} +1 -1
- package/dist/{decimal-display-mode-BhD1cOOe.js → decimal-display-mode-C_ooE9xL.js} +2 -2
- package/dist/{decimal-props-C6f22071.js → decimal-props-Vv8GsEHC.js} +4 -4
- package/dist/{decimal-style-XN3rLM2j.js → decimal-style-CY-zOSpD.js} +1 -1
- package/dist/{default-value-editor.vue_vue_type_script_setup_true_name_default-value-editor_lang-CJC4kBNh.js → default-value-editor.vue_vue_type_script_setup_true_name_default-value-editor_lang-Bw0TkvW-.js} +3 -2
- package/dist/{diagonal-design-Dh0qhgSq.js → diagonal-design-DS1kXGt1.js} +16 -4
- package/dist/{double-design-XHHlqmEp.js → double-design-DAz8wmRS.js} +1 -1
- package/dist/{double-props-Cvi36aBN.js → double-props-e76nS4qi.js} +4 -4
- package/dist/{double-style-Dkoth54S.js → double-style-kWIo_xYy.js} +1 -1
- package/dist/{dynamic-table-action-mGrBO_bn.js → dynamic-table-action-CbHoY76E.js} +42 -3
- package/dist/{dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-OPdk2I5p.js → dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BfGYCqH5.js} +205 -266
- package/dist/{edit.utils-CXmmCnxE-DeDBtyJd.js → edit.utils-CXmmCnxE-CLCBDG4R.js} +1 -1
- package/dist/{enum-design-CAOAFdI6.js → enum-design-DVoXOTIU.js} +2 -2
- package/dist/{enum-props-CBN-AvBS.js → enum-props-DgsIc2Fz.js} +4 -4
- package/dist/{enum-style-cOiK44Ae.js → enum-style-C4r86NqC.js} +3 -3
- package/dist/excel.css +9781 -10010
- package/dist/{exceljs.min-pnja99MZ.js → exceljs.min-D-mqoZsC.js} +2 -2
- package/dist/{expression-design-CqgcK8eO.js → expression-design-D7PiPYQJ.js} +1 -1
- package/dist/{expression-props-wXQOIrMY.js → expression-props-DDcg6alT.js} +1 -1
- package/dist/{expression-style-BzavnOux.js → expression-style-C0GgXqbp.js} +1 -1
- package/dist/{file-design-BSQknhnY.js → file-design-CeAmaBow.js} +1 -1
- package/dist/{file-props-CwiuBVHW.js → file-props-e06WxwTc.js} +2 -2
- package/dist/{file-style-CG4a3THb.js → file-style-FigMgXwH.js} +1 -1
- package/dist/{font-editor--CgwL-wF.js → font-editor-DYBI1FXx.js} +3 -3
- package/dist/{image-design-D1D0SN5W.js → image-design-CcHGCTJH.js} +2 -2
- package/dist/{image-design-CwPjfDxf.js → image-design-DxKCuSrx.js} +2 -2
- package/dist/{image-props-C4E9gMsG.js → image-props-Co5Kp-ZH.js} +1 -1
- package/dist/{image-style-CIb1mi13.js → image-style-D6I5jBAk.js} +1 -1
- package/dist/{index-BJYSmTeW.js → index-8-tnvhRC.js} +1 -1
- package/dist/{index-0mxMA4vZ.js → index-B2Rk7ex6.js} +1 -1
- package/dist/{index-Drf0Arr4.js → index-BC-Zhsm-.js} +1 -1
- package/dist/{index-D9tUJAeF.js → index-BZfGHVOt.js} +1 -1
- package/dist/{index-B7DDYlzm.js → index-Bsabb65u.js} +1 -1
- package/dist/{index-DOj318_B.js → index-C7EF3bU6.js} +2 -2
- package/dist/{index-CeMBvNee.js → index-CRcKdyyr.js} +1 -1
- package/dist/{index-DLoQlQk6.js → index-CTEoW7C9.js} +2 -2
- package/dist/{index-ZrNXSw4w.js → index-CgDvaY3D.js} +1 -1
- package/dist/{index-CcmNFTia.js → index-CpsQzaA9.js} +2 -2
- package/dist/{index-CIl6oWcB.js → index-CwwHZhmI.js} +1 -1
- package/dist/{index-CKqLoN9r.js → index-D3H3AjqQ.js} +1 -1
- package/dist/{index-B2ZNkbGm.js → index-D51-PvAq.js} +1 -1
- package/dist/{index-BAlLZmfu.js → index-D6YzCpCw.js} +2 -1
- package/dist/{index-Dl2FIifp.js → index-D7DRfQTh.js} +1 -1
- package/dist/{index-PWmkKVZV.js → index-DFGBKBau.js} +1 -1
- package/dist/{index-BG_CEaW0.js → index-DJdI2Xy_.js} +41808 -3703
- package/dist/{index-A2MbCZtS.js → index-DSSHWwFD.js} +4 -1
- package/dist/{index-D0XkCn_x.js → index-DXtJ-139.js} +1 -1
- package/dist/index-Dacbq4L4.js +4420 -0
- package/dist/{index-D0n65ya-.js → index-DgBJVPsK.js} +1 -1
- package/dist/{index-BKoXo3Ha.js → index-Dku5Txlf.js} +1 -1
- package/dist/{index-PMDIMwwL.js → index-DsBusJ7S.js} +1 -1
- package/dist/{index-BneV2tbp.js → index-Dx6OiqW2.js} +1 -1
- package/dist/{index-Cgka0WmQ.js → index-E-flWZFi.js} +1 -1
- package/dist/{index-B2tFXR--.js → index-GGZRPnYe.js} +2 -2
- package/dist/{index-Bi4hE4Ye.js → index-H9YwRWK1.js} +2 -2
- package/dist/{index-CGSTq7zN.js → index-J1Nf5wgV.js} +1 -1
- package/dist/{index-BSHUFede.js → index-OK49_noi.js} +1 -1
- package/dist/{index-HHF5iK-6.js → index-UeWlvtDf.js} +1 -1
- package/dist/{index-UUDS4nmS.js → index-l3TfFIxY.js} +1 -1
- package/dist/{index-ByTKu8n6.js → index-xg8BpbDL.js} +1 -1
- package/dist/{index-Hg59RKKE.js → index-yclgXrqJ.js} +1 -1
- package/dist/index.es.js +45 -45
- package/dist/{integer-design-Cy9c0fzI.js → integer-design-DJ4aKAz0.js} +1 -1
- package/dist/{integer-props-DFDOIb2a.js → integer-props-CaSOySHa.js} +5 -4
- package/dist/{integer-style-CfIX5ReH.js → integer-style-CCLqQ4ys.js} +1 -1
- package/dist/{mb-render-D_uumPQr.js → mb-render-JGHghp5L.js} +1 -30
- package/dist/{number-input-ex-CWci0pCj.js → number-input-ex-CtHpEamV.js} +2 -1
- package/dist/{org-props-B5dk289u.js → org-props-CRAmwHlJ.js} +2 -2
- package/dist/{org-style-BoSDPuw9.js → org-style-BWj_AEnP.js} +1 -1
- package/dist/{pagination-design-Ci4wxUIk.js → pagination-design-BGUqZKxh.js} +2 -2
- package/dist/paper-widget-design-CgmZ8LSm.js +4 -0
- package/dist/{qrcode-design-CJ9R5DIn.js → qrcode-design-CjN0UWN3.js} +1 -1
- package/dist/{ref-autofill-editor-B4KDvHhR.js → ref-autofill-editor-BKYPW69A.js} +2 -3
- package/dist/{ref-props-CwDGepT3.js → ref-props-M99PRlsI.js} +3 -3
- package/dist/{ref-style-B35CsOQO.js → ref-style-BCeprSYg.js} +1 -1
- package/dist/{regex-editor-CIVvr_Lx.js → regex-editor-BGaFYbF4.js} +3 -2
- package/dist/{revo-grid.entry-DeWzC35s.js → revo-grid.entry-Bokapeoj.js} +1 -1
- package/dist/{revogr-attribution_7.entry-BJZ-twfj.js → revogr-attribution_7.entry-D7WJHpFT.js} +3 -3
- package/dist/{revogr-clipboard_3.entry-DkgRA8qw.js → revogr-clipboard_3.entry-Bk1SGzbF.js} +2 -2
- package/dist/{revogr-data_4.entry-BZLzvcbo.js → revogr-data_4.entry-2v7X9qHp.js} +2 -2
- package/dist/{revogr-filter-panel.entry-zGvhshno.js → revogr-filter-panel.entry-DXaW46ts.js} +1 -1
- package/dist/{select-render-type-editor.vue_vue_type_script_setup_true_lang-Asn5-ZRz.js → select-render-type-editor.vue_vue_type_script_setup_true_lang-ygXwKc_C.js} +2 -2
- package/dist/{serialnumber-design-CYFU5TVt.js → serialnumber-design-Bo13RmJa.js} +1 -1
- package/dist/shared/index.es.js +18 -19
- package/dist/{signature-design-Cwi0cZOI.js → signature-design-DT5T5nus.js} +1 -1
- package/dist/{signature-props-cQRB8U8x.js → signature-props-cW9R4qcY.js} +3 -3
- package/dist/{signature-style-C90NsLxg.js → signature-style-XPxgyfzG.js} +1 -1
- package/dist/{single-field-drop-BFhQs-3z.js → single-field-drop-CjK8KjfH.js} +3 -2
- package/dist/{size-editor-Dx3y_otg.js → size-editor-aLyY3Bsr.js} +1 -1
- package/dist/src/nocode-base/src/constant/index.d.ts +16 -1
- 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/hooks/material-consume/material-consume-table-controller.d.ts +3 -1
- package/dist/src/nocode-base/src/hooks/material-consume/mc-render.d.ts +8 -1
- package/dist/src/nocode-base/src/hooks/material-consume/types.d.ts +13 -0
- package/dist/src/nocode-base/src/types/common/base.d.ts +8 -0
- package/dist/src/nocode-base/src/types/fields/i-trace.d.ts +6 -0
- package/dist/src/nocode-base/src/types/render/mc-render.d.ts +8 -1
- package/dist/src/nocode-base/src/types/render/sub-table-render.d.ts +8 -1
- package/dist/src/nocode-base/src/types/widgets/i-diagonal.d.ts +4 -2
- package/dist/src/nocode-web-render/src/index.d.ts +0 -1
- package/dist/src/nocode-web-render/src/render/sub-table/common/scan-modal.vue.d.ts +12 -1
- package/dist/src/nocode-web-render/src/render/sub-table/common/sub-table-render.d.ts +8 -1
- package/dist/src/nocode-web-render/src/render/sub-table/material-consume/mc-web-render.d.ts +7 -0
- package/dist/src/online-form/src/views/__cell_widgets__/common/assoc-filter-editor/assoc-filter-editor.vue.d.ts +20 -0
- package/dist/src/online-form/src/views/__cell_widgets__/common/assoc-filter-editor/assoc-filter.util.d.ts +30 -0
- package/dist/src/online-form/src/views/__cell_widgets__/common/assoc-filter-editor/assoc-source-field-select.vue.d.ts +22 -0
- package/dist/src/online-form/src/views/__cell_widgets__/common/assoc-filter-editor/index.d.ts +3 -0
- package/dist/src/online-form/src/views/designer/hooks/useAllSpreadSheets.d.ts +40 -0
- package/dist/src/online-form/src/views/designer/hooks/useSpreadSheet.d.ts +55 -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_/trace/composables/assoc-filter.d.ts +11 -0
- package/dist/src/shared/components/Signature/ui/sign-editor.vue.d.ts +2 -2
- package/dist/src/shared/components/version-select/version-select.vue.d.ts +2 -2
- package/dist/{text-design-TEheiKQx.js → text-design-DIR_98fe.js} +2 -2
- package/dist/{text-design-jMPxIgZW.js → text-design-Dz8pIESR.js} +2 -2
- package/dist/{text-props-CrkSvg6D.js → text-props-BxirdX2V.js} +5 -5
- package/dist/{text-style-DmwTt8KQ.js → text-style-MPmJRVRg.js} +1 -1
- package/dist/{throttle-Cpk1LoGk-DTkhEkFR.js → throttle-Cpk1LoGk-C22z7VFi.js} +1 -1
- package/dist/{timediff-design-D_if-K1S.js → timediff-design-Pud7SFpe.js} +1 -1
- package/dist/{trace-design-oN7pgtab.js → trace-design-DNVZ_y9D.js} +2 -2
- package/dist/trace-props-LPvWrrti.js +610 -0
- package/dist/{trace-style-TNnFcvfw.js → trace-style-DnaicSRA.js} +1 -1
- package/dist/use-namespace-qtLS8nEh.js +88 -0
- package/dist/{user-props-Ce-ilCmU.js → user-props-DdTpHX3B.js} +2 -2
- package/dist/{user-style-4rp0jKYP.js → user-style-6SWgJi8d.js} +1 -1
- package/dist/{value-editor.vue_vue_type_style_index_0_lang-DMuR0u4j.js → value-editor.vue_vue_type_style_index_0_lang-DKeZWlc0.js} +2 -2
- package/dist/{version-select-DSFIlYgX.js → version-select-CXWtI4W-.js} +1041 -4
- package/dist/web-render/index.es.js +12 -955
- package/dist/{widget-barcode-Du7LOaiy.js → widget-barcode-iBjDv4NF.js} +4 -4
- package/dist/{widget-diagonal-D-q7WK6T.js → widget-diagonal-4ZMgaI9y.js} +73 -17
- package/dist/{widget-image-Da5mvgMm.js → widget-image-B63wZzz4.js} +5 -5
- package/dist/{widget-line-oIFH8P04.js → widget-line-CIG-L--W.js} +2 -2
- package/dist/{widget-pagination-CSonelt_.js → widget-pagination-CAmhXECi.js} +5 -5
- package/dist/{widget-power-CWczWA7K.js → widget-power-CsiguFSe.js} +4 -3
- package/dist/{widget-qrcode-MQ-cSphb.js → widget-qrcode-BuEayrLO.js} +3 -3
- package/dist/{widget-rangelimit-CFDeRJIf.js → widget-rangelimit-CqaLvV8n.js} +4 -3
- package/dist/{widget-serialnumber-DlE2-jvp.js → widget-serialnumber-C_wAw0TS.js} +1 -1
- package/dist/{widget-text-B1SnpOGN.js → widget-text-CRApo2EO.js} +5 -5
- package/dist/{widget-timediff-DeyJbqRE.js → widget-timediff-D1q5VNhe.js} +2 -2
- package/package.json +1 -1
- package/dist/AntdIcon-C3RMq2zm.js +0 -1040
- package/dist/form-annotation-controller-DDDyHAwe.js +0 -707
- package/dist/index-CWpratsK.js +0 -41850
- package/dist/paper-widget-design-BilYU9rh.js +0 -4
- 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/trace-props-BFnUk6kv.js +0 -275
package/dist/base/index.es.js
CHANGED
|
@@ -1,12 +1,29 @@
|
|
|
1
|
-
import { av as fetchHistoryConsume, aw as isBomGranted, F as FIELD_TYPE, i as api, am as getParseRuleInfo, an as getParseRuleValue, ax as calcFillData, ay as extractKeywordFromQueryData,
|
|
2
|
-
import { a5, a7, ah,
|
|
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 a2, t, u, b as b10, d } from "../dynamic-table-action-
|
|
5
|
-
import { ref, provide, watch, computed } from "vue";
|
|
1
|
+
import { av as fetchHistoryConsume, aw as isBomGranted, F as FIELD_TYPE, i as api, am as getParseRuleInfo, an as getParseRuleValue, ax as calcFillData, ay as extractKeywordFromQueryData, t as FormTypeEnum, az as transformUtils, g as SubTableType, aj as NCB_PROVIDE, aA as settleAndValidateDisplay, aB as unregisterValidationContext, aC as clearFormRules, aD as registerValidationContext, e as ComponentTypeEnum, aq as RenderModeEnum, aE as requestFullValidation, aF as requestDisplayValidation, aG as closeValidatorPopovers, aH as baseDataUtils, aI as getRawFormRuleMeta, aJ as enrichFormChangeRowDetails, aK as settleAfterModeSwitch, aL as calcUtils, a2 as CheckDsTypeEnum, ag as renderUtils, E as PlatformEnum, aM as uuid2, aN as normalizeToArray, aO as safeParseArray, aP as BpmnNodeTypeEnum, aQ as mergeByMultiKey, au as useNocodeEmitter, a1 as EntityModelCategoryEnum, aR as getRowId, aS as collectFormChangeFieldLocations, aT as nextFormChangeRowViewHistoryId } from "../dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BfGYCqH5.js";
|
|
2
|
+
import { a5, a7, ah, x, aU, aV, B, aW, h, H, aX, aY, aZ, af, ai, a6, a3, a4, I, K, a_, ar, N, a$, $, a9, w, J, L, b0, b1, O, b, P, a0, a, m, a8, b2, b3, ap, A, y, z, D, b4, T, V, W, b5, b6, b7, b8, b9, ba, bb, bc, bd, be, bf, bg, bh, bi, bj, bk, bl, bm, bn, bo, bp, bq, ak, br, bs, al, bt, bu, bv, M, bw, bx, ad, by, ac, aa, u, ao, ae, ab } from "../dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BfGYCqH5.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-CbHoY76E.js";
|
|
4
|
+
import { B as B2, o, D as D2, _, p, e, q, f, F, r, I as I2, s, c, a as a2, t, u as u2, b as b10, d } from "../dynamic-table-action-CbHoY76E.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 as M2, b as b11, u as u3 } from "../mb-render-JGHghp5L.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) {
|
|
@@ -2513,9 +2530,9 @@ function useRenderPageFactory(props, payload) {
|
|
|
2513
2530
|
const prevMap = info.validatorMessageMap ?? {};
|
|
2514
2531
|
const sameLocations = prevLocations.length === nextLocations.length && nextLocations.every((k, i) => k === prevLocations[i]);
|
|
2515
2532
|
const sameMessages = sameLocations && nextLocations.every((k) => {
|
|
2516
|
-
const
|
|
2533
|
+
const a10 = prevMap[k];
|
|
2517
2534
|
const b12 = map[k];
|
|
2518
|
-
return JSON.stringify(
|
|
2535
|
+
return JSON.stringify(a10) === JSON.stringify(b12);
|
|
2519
2536
|
});
|
|
2520
2537
|
if (sameMessages) return;
|
|
2521
2538
|
closeValidatorPopovers();
|
|
@@ -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;
|
|
@@ -3415,25 +3592,23 @@ function useMaterialStocktake() {
|
|
|
3415
3592
|
export {
|
|
3416
3593
|
a5 as AITooltips,
|
|
3417
3594
|
AllocateTableCore,
|
|
3418
|
-
|
|
3595
|
+
B3 as BaseFormModelFetcher,
|
|
3419
3596
|
a7 as BinarizeMethodOptions,
|
|
3420
3597
|
ah as BindCmpStyleEnum,
|
|
3421
|
-
|
|
3598
|
+
x as BooleanShowMode,
|
|
3422
3599
|
B2 as BorderTD,
|
|
3423
3600
|
BpmnNodeTypeEnum,
|
|
3424
|
-
|
|
3425
|
-
|
|
3426
|
-
aT as ButtonTypeEnum,
|
|
3601
|
+
aU as BpmnSignatureTypeEnum,
|
|
3602
|
+
aV as ButtonTypeEnum,
|
|
3427
3603
|
B as BwipCodeType,
|
|
3428
|
-
|
|
3604
|
+
aW 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
|
+
aX as CodeRunner,
|
|
3434
3609
|
ComponentTypeEnum,
|
|
3435
|
-
|
|
3436
|
-
|
|
3610
|
+
aY as Config_Fields,
|
|
3611
|
+
aZ as ControlStatusEnum,
|
|
3437
3612
|
af as DateFormat,
|
|
3438
3613
|
ai as DecimalDisplayMode,
|
|
3439
3614
|
a6 as DenoiseMethodOptions,
|
|
@@ -3441,38 +3616,39 @@ export {
|
|
|
3441
3616
|
a3 as DeviceLink,
|
|
3442
3617
|
D2 as DeviceLinkTmplUtil,
|
|
3443
3618
|
a4 as DeviceParamsTypeTitle,
|
|
3444
|
-
|
|
3619
|
+
I as DiagonalDirection,
|
|
3620
|
+
K as DiagonalVertex,
|
|
3445
3621
|
_ as DocumentLayout,
|
|
3446
3622
|
p as DocumentLoading,
|
|
3447
3623
|
e as DocumentPaper,
|
|
3448
3624
|
q as DynamicQuickFillModal,
|
|
3449
3625
|
f as DynamicTableAction,
|
|
3450
|
-
|
|
3626
|
+
a_ as EBR_PROVIDE_ENUM,
|
|
3451
3627
|
ar as EFieldBizTypeEnum,
|
|
3452
3628
|
N as EmptySymbol,
|
|
3453
|
-
|
|
3454
|
-
|
|
3629
|
+
a$ as FieldSysVarDefaultValueEnum,
|
|
3630
|
+
FillingTypeEnum,
|
|
3455
3631
|
F as FixedQuickFillModal,
|
|
3456
|
-
|
|
3457
|
-
|
|
3632
|
+
FormAnnotationController,
|
|
3633
|
+
F2 as FormModelController,
|
|
3458
3634
|
FormTmplBomController,
|
|
3459
3635
|
r as FormTmplConfigController,
|
|
3460
3636
|
FormTypeEnum,
|
|
3461
3637
|
$ as ImageDisplayModeEnum,
|
|
3462
|
-
|
|
3638
|
+
I2 as InstanceStatusValues,
|
|
3463
3639
|
a9 as JoinModelTypeEum,
|
|
3464
|
-
|
|
3465
|
-
|
|
3640
|
+
w as LabelPosition,
|
|
3641
|
+
J as LineDirection,
|
|
3466
3642
|
L as LineType,
|
|
3467
|
-
|
|
3643
|
+
M2 as MBRender,
|
|
3468
3644
|
s as MCDataUtil,
|
|
3469
3645
|
b11 as MCRender,
|
|
3470
3646
|
MaterialConsumeTableController,
|
|
3471
3647
|
MaterialConsumptionPatternEnum,
|
|
3472
|
-
|
|
3473
|
-
|
|
3648
|
+
MaterialStatusEnum,
|
|
3649
|
+
b0 as MobileFillTypeEnum,
|
|
3474
3650
|
NCB_PROVIDE,
|
|
3475
|
-
|
|
3651
|
+
b1 as OfficeTypeEnum,
|
|
3476
3652
|
O as Orientation,
|
|
3477
3653
|
b as PageSizeEnum,
|
|
3478
3654
|
P as PaginationFormat,
|
|
@@ -3481,86 +3657,88 @@ export {
|
|
|
3481
3657
|
m as PaperWidgeValueType,
|
|
3482
3658
|
a8 as ParamModelTypeEnum,
|
|
3483
3659
|
PlatformEnum,
|
|
3484
|
-
|
|
3660
|
+
b2 as PosEnum,
|
|
3485
3661
|
PretreatmentListTableCore,
|
|
3486
|
-
|
|
3662
|
+
b3 as RangeCompareOp,
|
|
3487
3663
|
ap as RangeValidateMode,
|
|
3488
3664
|
RenderModeEnum,
|
|
3489
|
-
|
|
3490
|
-
|
|
3491
|
-
|
|
3492
|
-
|
|
3665
|
+
A as SignShowTypeEnum,
|
|
3666
|
+
y as SignatureNumberTypeEnum,
|
|
3667
|
+
z as SignatureTimeTypeEnum,
|
|
3668
|
+
D as SignatureTypeEnum,
|
|
3493
3669
|
SterilizeBatchTableCore,
|
|
3494
3670
|
StocktakeTableCore,
|
|
3495
3671
|
SubTableCore,
|
|
3496
3672
|
SubTableCoreFactory,
|
|
3497
3673
|
SubTableType,
|
|
3498
|
-
|
|
3674
|
+
b4 as SummaryApproveHisTypeEnum,
|
|
3499
3675
|
T as TimeDiffFormat,
|
|
3500
3676
|
V as ViewTypeEnum,
|
|
3501
3677
|
W as WidgetImageSizeMode,
|
|
3502
|
-
|
|
3503
|
-
|
|
3678
|
+
b5 as applyCheckDsDataToRuntime,
|
|
3679
|
+
b6 as applyMedProCheckDsDataToRuntime,
|
|
3504
3680
|
baseDataUtils,
|
|
3505
|
-
|
|
3506
|
-
|
|
3681
|
+
b7 as buildFormChangeDisplayRows,
|
|
3682
|
+
b8 as buildStableFieldLocation,
|
|
3507
3683
|
calcFillData,
|
|
3508
3684
|
calcUtils,
|
|
3509
3685
|
clearFormRules,
|
|
3510
|
-
|
|
3511
|
-
|
|
3686
|
+
collectAnnotationItemsByLocation,
|
|
3687
|
+
collectFormChangeFieldLocations,
|
|
3512
3688
|
commonUtils,
|
|
3513
|
-
|
|
3514
|
-
|
|
3689
|
+
b9 as deleteSubtableRow,
|
|
3690
|
+
ba as detailsHaveFormChangeRowOps,
|
|
3515
3691
|
enrichFormChangeRowDetails,
|
|
3516
|
-
|
|
3692
|
+
bb as extractFormChangeRowDetails,
|
|
3517
3693
|
extractKeywordFromQueryData,
|
|
3518
|
-
|
|
3519
|
-
|
|
3520
|
-
|
|
3521
|
-
|
|
3694
|
+
bc as fetchCheckDsDataForTable,
|
|
3695
|
+
bd as fetchCustomCheckDsData,
|
|
3696
|
+
be as fetchMedProCheckDsData,
|
|
3697
|
+
filterAnnotationItemsUpToCurrent,
|
|
3522
3698
|
getAppInfo,
|
|
3523
|
-
|
|
3524
|
-
|
|
3525
|
-
|
|
3699
|
+
bf as getFormChangeRowKey,
|
|
3700
|
+
bg as getFormChangeRowOp,
|
|
3701
|
+
bh as getParseRuleConfig,
|
|
3526
3702
|
getParseRuleInfo,
|
|
3527
3703
|
getParseRuleValue,
|
|
3528
|
-
|
|
3704
|
+
bi as getSubTableQuickFillInfo,
|
|
3529
3705
|
getSuiteKey,
|
|
3530
|
-
|
|
3531
|
-
|
|
3532
|
-
|
|
3706
|
+
bj as handleOldConfig,
|
|
3707
|
+
bk as insertSubtableRows,
|
|
3708
|
+
bl as isAnnLocationSelected,
|
|
3533
3709
|
isEdhrSuite,
|
|
3534
|
-
|
|
3535
|
-
|
|
3536
|
-
|
|
3537
|
-
|
|
3538
|
-
|
|
3710
|
+
bm as isFormChangeGhostRow,
|
|
3711
|
+
bn as isMedProSuite,
|
|
3712
|
+
bo as isRowAddedInCurrentFormChange,
|
|
3713
|
+
bp as jsonSchemaUtils,
|
|
3714
|
+
bq as migrateDiagonalDirectionToVertex,
|
|
3715
|
+
nextFormChangeRowViewHistoryId,
|
|
3539
3716
|
ak as normalizeRefLoaderResult,
|
|
3540
|
-
|
|
3541
|
-
|
|
3717
|
+
br as recordSubtableRowAdd,
|
|
3718
|
+
bs as recordSubtableRowDelete,
|
|
3542
3719
|
al as refUtils,
|
|
3543
3720
|
registerValidationContext,
|
|
3544
|
-
|
|
3721
|
+
bt as relocateDeletedRowsToEnd,
|
|
3545
3722
|
renderUtils,
|
|
3546
3723
|
requestDisplayValidation,
|
|
3547
3724
|
requestFullValidation,
|
|
3548
|
-
|
|
3549
|
-
|
|
3550
|
-
|
|
3551
|
-
bw as
|
|
3725
|
+
bu as requestNonMedProCheckDsData,
|
|
3726
|
+
bv as resolveAnnotationFieldLocation,
|
|
3727
|
+
M as resolveDiagonalVertex,
|
|
3728
|
+
bw as resolveFormChangeRowUi,
|
|
3729
|
+
bx as resolveRowFormChangeMark,
|
|
3552
3730
|
ad as setSelectAnnotationId,
|
|
3553
|
-
|
|
3731
|
+
by as setSelectMobileTdId,
|
|
3554
3732
|
ac as setSelectValidatorId,
|
|
3555
3733
|
settleAndValidateDisplay,
|
|
3556
3734
|
aa as sqlUtils,
|
|
3557
3735
|
transformUtils,
|
|
3558
3736
|
unregisterValidationContext,
|
|
3559
|
-
|
|
3737
|
+
u as useCalculateFormula,
|
|
3560
3738
|
ao as useCurrentPageFormState,
|
|
3561
3739
|
c as useDependency,
|
|
3562
3740
|
useEbrWikiFactoryV2,
|
|
3563
|
-
|
|
3741
|
+
u3 as useFormModel,
|
|
3564
3742
|
a2 as useFormTmplConfig,
|
|
3565
3743
|
useFormulaExpWatcher,
|
|
3566
3744
|
useMaterialBalance,
|
|
@@ -3568,7 +3746,7 @@ export {
|
|
|
3568
3746
|
useNocodeEmitter,
|
|
3569
3747
|
ae as useNocodeFormWidget,
|
|
3570
3748
|
t as useOnlineFormActionButton,
|
|
3571
|
-
|
|
3749
|
+
u2 as useOnlineFormTransformField2Component,
|
|
3572
3750
|
useRenderPageFactory,
|
|
3573
3751
|
b10 as useStyles,
|
|
3574
3752
|
d as useValidator,
|