@gct-paas/excel 0.1.40-beta.11 → 0.1.40-beta.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (95) hide show
  1. package/dist/{BaseComponent-gj20uBnJ.js → BaseComponent-BNYlBwRp.js} +2 -2
  2. package/dist/{VueVideoPlayer-BeylL5J6.js → VueVideoPlayer-CA8iKJQb.js} +2 -2
  3. package/dist/{align-editor-r0dHXFka.js → align-editor-BLoPPjyE.js} +1 -1
  4. package/dist/{barcode-design-CYvf_EAE.js → barcode-design-Dqvxi5NV.js} +2 -2
  5. package/dist/base/index.es.js +189 -177
  6. package/dist/{diagonal-design-oDhnFV7y.js → diagonal-design-DG-Dx4ts.js} +2 -2
  7. package/dist/{dynamic-table-action-DQwZUD0_.js → dynamic-table-action-Bank1QhA.js} +713 -133
  8. package/dist/{dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-8yB6zly8.js → dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-CMUJIaqF.js} +507 -1096
  9. package/dist/{edit.utils-CXmmCnxE-Cu6obgSA.js → edit.utils-CXmmCnxE-CjdKEddt.js} +1 -1
  10. package/dist/excel.css +127 -84
  11. package/dist/{exceljs.min-Cw2hDE6L.js → exceljs.min-UvFp3sV4.js} +2 -2
  12. package/dist/{font-editor-B_0EZdyd.js → font-editor-DnMEr3MH.js} +3 -3
  13. package/dist/{image-design-FDLY6DFg.js → image-design-CwtJAv3F.js} +2 -2
  14. package/dist/{index-C4ZaFHIk.js → index-3MWFMn8S.js} +3 -3
  15. package/dist/{index-D1QJAMGR.js → index-Aza4NNmK.js} +2 -2
  16. package/dist/{index-DEHsGK91.js → index-B5OUUXeo.js} +1 -1
  17. package/dist/{index-BdFPuj12.js → index-B9lsZxiJ.js} +1 -1
  18. package/dist/{index-BuAaPDLl.js → index-BBn6MJSx.js} +2 -2
  19. package/dist/{index-CRIhEnfm.js → index-BKQuT0fA.js} +1 -1
  20. package/dist/{index-CQTRWLPa.js → index-BPY-u_dg.js} +3 -2
  21. package/dist/{index-Go0PUrqy.js → index-BQYnbcBb.js} +1 -1
  22. package/dist/{index-CFVecFFb.js → index-BVs40sek.js} +2 -2
  23. package/dist/{index-DcjvPNF5.js → index-B_XnofhV.js} +2 -2
  24. package/dist/{index-BCsDTwbK.js → index-BeVxjuh9.js} +1 -1
  25. package/dist/{index-Z9jq6KeM.js → index-BggSZyva.js} +2 -2
  26. package/dist/{index-KxrgWfEL.js → index-BqKnOPo_.js} +1 -1
  27. package/dist/{index-B2bvlNJo.js → index-BtRVxr4g.js} +2 -2
  28. package/dist/{index-BZd3wYPr.js → index-C5Ldbkko.js} +2 -2
  29. package/dist/{index-D3xW5qOp.js → index-CGZ_QXnT.js} +2 -2
  30. package/dist/{index-73QPpTaL.js → index-CHKEoI0-.js} +3 -3
  31. package/dist/{index-C0TsnxJJ.js → index-CJiS8qwY.js} +2 -2
  32. package/dist/{index-Dyfxs8FQ.js → index-CKRFb60x.js} +2 -2
  33. package/dist/{index-CxcaWxbW.js → index-C_Yhjehy.js} +2 -2
  34. package/dist/{index-7u6Pmaax.js → index-CaT3CiHe.js} +1 -1
  35. package/dist/{index-CdKmjzHb.js → index-Cd_mJxU6.js} +3 -3
  36. package/dist/{index-DOmpZ2Vn.js → index-Cq-XyRHo.js} +2 -2
  37. package/dist/{index-DGODLCja.js → index-CszU9umD.js} +1 -1
  38. package/dist/{index-DgLLlaiF.js → index-CwADS2FU.js} +1 -1
  39. package/dist/{index-CiCgngBb.js → index-D29NlAJu.js} +2 -2
  40. package/dist/{index-BtTM4eCk.js → index-D5aotGHm.js} +2 -2
  41. package/dist/{index-ZJQMS_Ik.js → index-DFSzmsEj.js} +2 -2
  42. package/dist/{index-xJJRBQFw.js → index-DLjQtnue.js} +1745 -1644
  43. package/dist/{index-C1EtpaAY.js → index-D_SKDlr_.js} +2 -2
  44. package/dist/{index-4cLi3g2p.js → index-DyW4nBh7.js} +2 -2
  45. package/dist/{index-xeRTb7EG.js → index-VbBHe0-r.js} +3 -3
  46. package/dist/{index-Bh8Vsmje.js → index-XT4AMdYd.js} +4 -4
  47. package/dist/{index-Cg1LuaLW.js → index-bu7pivuw.js} +2 -2
  48. package/dist/{index-DJiuJgNx.js → index-d8vCiBu7.js} +1 -1
  49. package/dist/index.es.js +2 -2
  50. package/dist/{mb-render-_IUbyYCY.js → mb-render-CAIFQRQe.js} +1 -1
  51. package/dist/{online-form-model-select.vue_vue_type_script_setup_true_name_online-form-model-select_lang-CnQiVFDN.js → online-form-model-select.vue_vue_type_script_setup_true_name_online-form-model-select_lang-Mtk2wCxy.js} +1 -1
  52. package/dist/{pagination-design-BpXq_uV5.js → pagination-design-BEykgAvG.js} +2 -2
  53. package/dist/paper-widget-design-ooxHgZry.js +4 -0
  54. package/dist/{print-runtime-instance-MOb76qZn.js → print-runtime-instance-4ZDfLM5V.js} +1 -1
  55. package/dist/{print-snapshot-renderer-oKcwQUgc.js → print-snapshot-renderer-zOa_XHc0.js} +3 -3
  56. package/dist/{qrcode-design-CkkXDXcD.js → qrcode-design-CvYHvmMW.js} +1 -1
  57. package/dist/{revo-grid.entry-BZADj2ve.js → revo-grid.entry-CAz8pEMB.js} +1 -1
  58. package/dist/{revogr-attribution_7.entry-DbQASE7d.js → revogr-attribution_7.entry-RBj_kk6o.js} +3 -3
  59. package/dist/{revogr-clipboard_3.entry-BUDhUelS.js → revogr-clipboard_3.entry-B_WeVhDK.js} +2 -2
  60. package/dist/{revogr-data_4.entry-0V57Lz9p.js → revogr-data_4.entry-VaYdG5rT.js} +2 -2
  61. package/dist/{revogr-filter-panel.entry-BJEYteeW.js → revogr-filter-panel.entry-BCwmMUrv.js} +1 -1
  62. package/dist/seal-design-CG41_ii2.js +4 -0
  63. package/dist/{serialnumber-design-BbjW4gnZ.js → serialnumber-design-DHQVyTpR.js} +1 -1
  64. package/dist/shared/index.es.js +22 -22
  65. package/dist/{single-field-drop-DBjHYyMO.js → single-field-drop-D9h6cfEW.js} +2 -2
  66. package/dist/{size-editor-CcYZKUn5.js → size-editor-CYH_vGEJ.js} +1 -1
  67. package/dist/src/nocode-base/src/hooks/material-consume-object/initialize-autofill.d.ts +3 -1
  68. package/dist/src/nocode-base/src/runtime/multi-sheet-runtime.d.ts +3 -1
  69. package/dist/src/nocode-base/src/runtime/runtime-context.d.ts +4 -0
  70. package/dist/src/online-form/src/views/__cell_widgets__/common/quick-search-editor/quick-search.util.d.ts +8 -0
  71. package/dist/src/online-form/src/views/designer/hooks/useAllSpreadSheets.d.ts +11 -0
  72. package/dist/src/online-form/src/views/designer/modules/base/designer-wrapper.vue.d.ts +1 -0
  73. package/dist/src/online-form/src/views/designer/modules/duplicate-field-notice.vue.d.ts +2 -0
  74. package/dist/src/online-form/src/views/designer/types/sheets.d.ts +2 -0
  75. package/dist/{sub-table-factory-CUn9Ys8U.js → sub-table-factory-B0zWW-QG.js} +2 -2
  76. package/dist/{text-design-CJ-LzwEP.js → text-design-DOQAiCNS.js} +2 -2
  77. package/dist/{throttle-Cpk1LoGk-BVommE6v.js → throttle-Cpk1LoGk-CMJVKhfH.js} +1 -1
  78. package/dist/{timediff-design-DLlIUaqv.js → timediff-design-BpVtGq2d.js} +1 -1
  79. package/dist/{trace-like-wrapper-3MK6tjpN.js → trace-like-wrapper-CfQ-z7OG.js} +2 -2
  80. package/dist/{value-editor.vue_vue_type_style_index_0_lang-CmqBS9Ol.js → value-editor.vue_vue_type_style_index_0_lang-dI4Svbwa.js} +2 -2
  81. package/dist/web-render/index.es.js +3 -3
  82. package/dist/{widget-barcode-BzrOK6u9.js → widget-barcode-Q35uB5iK.js} +4 -4
  83. package/dist/{widget-diagonal-DXnNY3TR.js → widget-diagonal-DqhdnkvW.js} +3 -3
  84. package/dist/{widget-image-qlZU5zfL.js → widget-image-BXD0sEE3.js} +5 -5
  85. package/dist/{widget-line-BkFVTPZE.js → widget-line-DH-692Ln.js} +2 -2
  86. package/dist/{widget-pagination-BI7Vtnio.js → widget-pagination-fIAO2QPA.js} +5 -5
  87. package/dist/{widget-power-CQaD6Z_a.js → widget-power-DWVhbXTd.js} +3 -3
  88. package/dist/{widget-qrcode-DNpnyMCx.js → widget-qrcode-Bo1KSkKG.js} +3 -3
  89. package/dist/{widget-rangelimit-DE7-MYZD.js → widget-rangelimit-BFKtZq_w.js} +3 -3
  90. package/dist/{widget-serialnumber-CyMnA-nP.js → widget-serialnumber-DZqKmj9h.js} +1 -1
  91. package/dist/{widget-text-BpZ7YJtP.js → widget-text-CY_4aox8.js} +5 -5
  92. package/dist/{widget-timediff-DSEwFrr9.js → widget-timediff-CPMbymXT.js} +2 -2
  93. package/package.json +2 -2
  94. package/dist/paper-widget-design-CSOyFSja.js +0 -4
  95. package/dist/seal-design-BMrCPheX.js +0 -4
@@ -64959,140 +64959,238 @@ function resolveFieldRenderComponent(props) {
64959
64959
  }
64960
64960
  return resolveRenderComponent(props.bizType, props.fieldType);
64961
64961
  }
64962
- function getCurrentFormData(_rule, options) {
64963
- if (!_rule._subtableFieldId) return options?.formData;
64964
- return findRuntimeTableRow(options?.formData?.[_rule._subtableFieldId], _rule._rowKey);
64965
- }
64966
- function isSameOptionValue(current, expected) {
64967
- if (typeof expected === "boolean") {
64968
- return renderUtils.getBoolValue(current) === expected;
64969
- }
64970
- if (current === void 0 || current === null || current === "") {
64971
- return false;
64972
- }
64973
- return String(current) === String(expected);
64974
- }
64975
- function isAttachFieldActive(attach, formData) {
64976
- if (attach?.parent && !isAttachFieldActive(attach.parent, formData)) return false;
64977
- if (!attach?.belongFieldId || isNil(attach.optionValue)) {
64978
- return true;
64979
- }
64980
- const row = attach.subtableFieldId ? findRuntimeTableRow(formData?.[attach.subtableFieldId], attach.rowKey) : formData;
64981
- if (attach.subtableFieldId && (!attach.rowKey || !row || row === formData)) {
64982
- return false;
64983
- }
64984
- const raw = row?.[attach.belongFieldId];
64985
- if (attach.multiple) {
64986
- const current = renderUtils.getValue(raw, true);
64987
- if (!Array.isArray(current)) return false;
64988
- return current.some((v) => isSameOptionValue(v, attach.optionValue));
64989
- }
64990
- return isSameOptionValue(raw, attach.optionValue);
64962
+ const getApi$1 = api.apaas.modelComprehensive.getBizServiceModelCategoryModelKeyBsKey;
64963
+ const postApi = api.apaas.modelComprehensive.postBizServiceModelCategoryModelKeyBsKey;
64964
+ async function materialCheck(params) {
64965
+ const res = await postApi(
64966
+ {
64967
+ bsKey: "biz_single_material_check",
64968
+ modelKey: "em_material_loading",
64969
+ modelCategory: "entity"
64970
+ },
64971
+ {},
64972
+ params
64973
+ );
64974
+ return res;
64991
64975
  }
64992
- function isReferenceOptionActive(referenceInfo, rowFormData) {
64993
- if (!referenceInfo?.belongFieldId || isNil(referenceInfo.optionValue)) {
64994
- return true;
64995
- }
64996
- return isAttachFieldActive(
64976
+ async function stockCheck(params) {
64977
+ await postApi(
64997
64978
  {
64998
- belongFieldId: referenceInfo.belongFieldId,
64999
- optionValue: referenceInfo.optionValue,
65000
- multiple: referenceInfo.multiple
64979
+ bsKey: "biz_form_single_confirm",
64980
+ modelKey: "em_material_loading",
64981
+ modelCategory: "entity"
65001
64982
  },
65002
- rowFormData
64983
+ {},
64984
+ {
64985
+ entry: params.entry,
64986
+ material_id_: params.row.product_id_,
64987
+ production_identification_name_: params.row.material_no_,
64988
+ qty_: params.row.qty_,
64989
+ operation_id_: params.row.routing_operation_id_,
64990
+ main_material_no_: params.mainMaterialNo
64991
+ }
65003
64992
  );
65004
64993
  }
65005
- const stampKeys = [
65006
- "sealId",
65007
- "sealName",
65008
- "sealType",
65009
- "sealImage",
65010
- "sealUserId",
65011
- "sealUserName",
65012
- "sealUserTime"
65013
- ];
65014
- function isSealPosition(value) {
65015
- if (!value || typeof value !== "object") return false;
65016
- const p2 = value;
65017
- return typeof p2.sheetId === "string" && !!p2.sheetId && Number.isInteger(p2.pageIndex) && p2.pageIndex >= 0 && Number.isFinite(p2.leftMm) && p2.leftMm >= 0 && Number.isFinite(p2.topMm) && p2.topMm >= 0;
64994
+ async function fetchHistoryConsume(params) {
64995
+ const res = await postApi(
64996
+ {
64997
+ bsKey: "listAll",
64998
+ modelKey: "em_material_consume",
64999
+ modelCategory: "entity"
65000
+ },
65001
+ {},
65002
+ {
65003
+ query: params
65004
+ }
65005
+ );
65006
+ console.log("查询历史消耗数据", res);
65007
+ const arr = res.data ?? [];
65008
+ arr.map((i2) => {
65009
+ i2.qty_ = i2.qty_consumed_;
65010
+ });
65011
+ return arr;
65018
65012
  }
65019
- function readSealValue(raw, fallback) {
65020
- let parsed = {};
65021
- try {
65022
- const value = typeof raw === "string" ? JSON.parse(raw || "{}") : raw;
65023
- if (value && typeof value === "object" && !Array.isArray(value)) parsed = value;
65024
- } catch {
65025
- }
65026
- const stamp = Object.fromEntries(
65027
- stampKeys.map((key) => [key, typeof parsed[key] === "string" ? parsed[key] : ""])
65013
+ async function judgeUnique(opts) {
65014
+ const res = await postApi(
65015
+ {
65016
+ bsKey: "biz_form_unique",
65017
+ modelKey: "em_material_loading",
65018
+ modelCategory: "entity"
65019
+ },
65020
+ {},
65021
+ {
65022
+ model_key_: opts.modelKey,
65023
+ datas_: opts.data
65024
+ }
65028
65025
  );
65029
- return {
65030
- ...stamp,
65031
- sealPosition: { ...isSealPosition(parsed.sealPosition) ? parsed.sealPosition : fallback }
65032
- };
65026
+ return res;
65033
65027
  }
65034
- function isSealStamped(raw) {
65028
+ async function isBomGranted() {
65035
65029
  try {
65036
- const value = typeof raw === "string" ? JSON.parse(raw || "{}") : raw;
65037
- return !!value && typeof value.sealId === "string" && !!value.sealId && typeof value.sealImage === "string" && !!value.sealImage;
65038
- } catch {
65030
+ const res = await getApi$1(
65031
+ {
65032
+ modelKey: "em_product_bom",
65033
+ bsKey: "biz_bom_granted",
65034
+ modelCategory: "entity"
65035
+ },
65036
+ {},
65037
+ {}
65038
+ );
65039
+ return res ?? false;
65040
+ } catch (error) {
65041
+ console.log("");
65039
65042
  return false;
65040
65043
  }
65041
65044
  }
65042
- function isValidSealValue(raw) {
65043
- try {
65044
- const value = typeof raw === "string" ? JSON.parse(raw || "{}") : raw;
65045
- return !!value && stampKeys.every((key) => typeof value[key] === "string") && isSealPosition(value.sealPosition) && (stampKeys.every((key) => !value[key]) || stampKeys.every((key) => !!value[key]));
65046
- } catch {
65047
- return false;
65045
+ async function getReinspectionDate(params) {
65046
+ if (!params.material_no_id_ && !params.material_no_) return;
65047
+ ({
65048
+ "product_id_.versionIn": [params.product_id_.split(":").pop()]
65049
+ });
65050
+ if (params.material_no_id_) {
65051
+ params.material_no_id_;
65052
+ } else {
65053
+ params.material_no_;
65048
65054
  }
65055
+ const res = await postApi(
65056
+ {
65057
+ modelCategory: "entity",
65058
+ modelKey: "em_production_identification",
65059
+ bsKey: "getOne"
65060
+ },
65061
+ {},
65062
+ {
65063
+ query: {
65064
+ name_: params.material_no_,
65065
+ id_: params.material_no_id_,
65066
+ "product_id_.versionEq": params.product_id_
65067
+ }
65068
+ }
65069
+ );
65070
+ const record = res?.data?.[0] ?? res?.data;
65071
+ const raw = record?.re_inspection_date_ ?? record?.retest_date_;
65072
+ if (raw == null || raw === "") return;
65073
+ const parsed = dayjs(raw);
65074
+ if (!parsed.isValid()) return;
65075
+ return parsed.format("YYYY-MM-DD");
65049
65076
  }
65050
- function moveSealValue(raw, fallback, position) {
65051
- return JSON.stringify({ ...readSealValue(raw, fallback), sealPosition: { ...position } });
65052
- }
65053
- function stampSealValue(raw, fallback, stamp) {
65054
- const current = readSealValue(raw, fallback);
65055
- const next = readSealValue({ ...stamp, sealPosition: current.sealPosition }, fallback);
65056
- return JSON.stringify(next);
65077
+ async function validateReinspectionDate(opts) {
65078
+ if (!opts.product_id_ || !opts.material_no_ && !opts.material_no_id_) return;
65079
+ const date = await getReinspectionDate({
65080
+ product_id_: opts.product_id_,
65081
+ material_no_: opts.material_no_,
65082
+ material_no_id_: opts.material_no_id_
65083
+ });
65084
+ if (!date) return;
65085
+ if (dayjs(date).isBefore(dayjs(), "day")) {
65086
+ throw new Error($t("sys.retestDateErrorTip"));
65087
+ }
65057
65088
  }
65058
- function clearSealValue(raw, fallback) {
65059
- return JSON.stringify(
65060
- readSealValue({ sealPosition: readSealValue(raw, fallback).sealPosition }, fallback)
65089
+ async function getLotLockedReason(production_identification_id_) {
65090
+ const { data = {}, dict = {} } = await postApi(
65091
+ {
65092
+ modelCategory: "entity",
65093
+ modelKey: "em_production_identification_lock_record",
65094
+ bsKey: "biz_get_one_lock_record"
65095
+ },
65096
+ {},
65097
+ {
65098
+ production_identification_id_
65099
+ }
65061
65100
  );
65101
+ return $t("sys.lotLockedReason", {
65102
+ name: dict.lock_user_id_[data.lock_user_id_],
65103
+ reason: data.lock_reason_
65104
+ });
65062
65105
  }
65063
- function normalizeSealDiameter(value) {
65064
- const diameter = Number(value);
65065
- return Number.isFinite(diameter) && diameter > 0 ? Math.min(diameter, 200) : 42;
65106
+ var Config_Fields = /* @__PURE__ */ ((Config_Fields2) => {
65107
+ Config_Fields2["materialCode"] = "materialCode";
65108
+ Config_Fields2["lot"] = "lot";
65109
+ Config_Fields2["qty"] = "qty";
65110
+ Config_Fields2["expiration"] = "expiration";
65111
+ Config_Fields2["deviceCode"] = "deviceCode";
65112
+ Config_Fields2["other"] = "other";
65113
+ return Config_Fields2;
65114
+ })(Config_Fields || {});
65115
+ const getApi = api.apaas.modelComprehensive.getBizServiceModelCategoryModelKeyBsKey;
65116
+ async function getParseRuleInfo(params) {
65117
+ const res = await getApi(
65118
+ {
65119
+ bsKey: "rdoGetVersionById",
65120
+ modelKey: "em_barcode_parsing_rules",
65121
+ modelCategory: "entity"
65122
+ },
65123
+ params
65124
+ );
65125
+ return res.data;
65066
65126
  }
65067
- function clampSealPosition(position, widthMm, heightMm, diameterMm) {
65068
- return {
65069
- ...position,
65070
- leftMm: Math.max(0, Math.min(position.leftMm, Math.max(0, widthMm - diameterMm))),
65071
- topMm: Math.max(0, Math.min(position.topMm, Math.max(0, heightMm - diameterMm)))
65072
- };
65127
+ function handleOldConfig(config) {
65128
+ if (config.list && !config.fieldList) {
65129
+ config.fieldList = config.list.map((type) => {
65130
+ return {
65131
+ type,
65132
+ key: type === Config_Fields.other ? uuid2(32) : type
65133
+ };
65134
+ });
65135
+ delete config.list;
65136
+ }
65137
+ config.fieldList.forEach((item) => {
65138
+ if (!item.key) {
65139
+ item.key = item.type === Config_Fields.other ? uuid2(32) : item.type;
65140
+ }
65141
+ });
65142
+ return config;
65073
65143
  }
65074
- function initializeSealFields(fields2, formData) {
65075
- for (const { props } of fields2) {
65076
- if (!props.field || props.isFieldModel || props.subFieldKey) continue;
65077
- const raw = formData[props.field];
65078
- if (raw == null || raw === "") {
65079
- formData[props.field] = JSON.stringify(readSealValue("", props.sealPosition));
65080
- continue;
65144
+ function getParseRuleValue(labelStr, labelRule) {
65145
+ if (!labelRule) {
65146
+ throw new Error("请传入解析规则");
65147
+ }
65148
+ const ruleObj = JSON.parse(labelRule);
65149
+ const ruleConfig = handleOldConfig(ruleObj);
65150
+ const { separator, nullSymbol, fieldList } = ruleConfig;
65151
+ const labelArr = labelStr.split(separator);
65152
+ return labelArr.reduce((obj, e, idx) => {
65153
+ const field = fieldList[idx];
65154
+ if (field) {
65155
+ let val = nullSymbol && e === nullSymbol ? null : e;
65156
+ if (val !== null) {
65157
+ switch (field.type) {
65158
+ case Config_Fields.qty:
65159
+ val = Number(val);
65160
+ break;
65161
+ case Config_Fields.expiration:
65162
+ val = dayjs(val, field.format).format("YYYY-MM-DD HH:mm:ss");
65163
+ break;
65164
+ }
65165
+ }
65166
+ obj[field.key] = val;
65081
65167
  }
65082
- try {
65083
- const parsed = typeof raw === "string" ? JSON.parse(raw) : raw;
65084
- if (!parsed || typeof parsed !== "object" || Array.isArray(parsed)) continue;
65085
- if (!isSealPosition(parsed.sealPosition)) {
65086
- formData[props.field] = JSON.stringify({
65087
- ...parsed,
65088
- sealPosition: { ...props.sealPosition }
65168
+ return obj;
65169
+ }, {});
65170
+ }
65171
+ async function getParseRuleConfig(id) {
65172
+ const res = await getParseRuleInfo({ id });
65173
+ if (res?.rules_) {
65174
+ const ruleObj = JSON.parse(res.rules_);
65175
+ const ruleConfig = handleOldConfig(ruleObj);
65176
+ return ruleConfig;
65177
+ }
65178
+ }
65179
+ function calcFillData(data, fillMapArr) {
65180
+ const obj = {};
65181
+ if (fillMapArr?.length) {
65182
+ fillMapArr.forEach((i2) => {
65183
+ const fromKey = i2.barcodeField;
65184
+ if (fromKey && fromKey in data) {
65185
+ const val = data[fromKey];
65186
+ i2.formFields?.forEach((key) => {
65187
+ const toKey2 = key.split(".")[1];
65188
+ obj[toKey2] = val;
65089
65189
  });
65090
- } else if (typeof raw !== "string") {
65091
- formData[props.field] = JSON.stringify(parsed);
65092
65190
  }
65093
- } catch {
65094
- }
65191
+ });
65095
65192
  }
65193
+ return obj;
65096
65194
  }
65097
65195
  var isNumeric = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i, mathceil = Math.ceil, mathfloor = Math.floor, bignumberError = "[BigNumber Error] ", tooManyDigits = bignumberError + "Number primitive has more than 15 significant digits: ", BASE = 1e14, LOG_BASE = 14, MAX_SAFE_INTEGER$2 = 9007199254740991, POWS_TEN = [1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13], SQRT_BASE = 1e7, MAX = 1e9;
65098
65196
  function clone(configObject) {
@@ -66425,674 +66523,6 @@ function toFixedPoint(str, e, z) {
66425
66523
  return str;
66426
66524
  }
66427
66525
  var BigNumber = clone();
66428
- const { identify, calculate } = {
66429
- identify: (expression) => window.NocodeAdapter.utils?.formulaIdentify?.(expression) ?? [],
66430
- calculate: (expression, data) => window.NocodeAdapter.utils?.formulaCalculate?.(expression, data)
66431
- };
66432
- const getFieldDataValue = (parseInfo, formData) => {
66433
- const getTextValue = (processedKey, value) => {
66434
- const textValue = value ?? formData?.[processedKey] ?? "";
66435
- return Array.isArray(textValue) ? textValue.join() : textValue;
66436
- };
66437
- const { type, processed, hashValue } = parseInfo;
66438
- if (type === "hash") {
66439
- const tableData = toRaw(formData?.[hashValue] || []);
66440
- return tableData.filter((d) => !d.deleted_).map((row) => getTextValue(processed, row?.[processed])).filter((i2) => !isNil(i2));
66441
- }
66442
- return getTextValue(processed, formData?.[processed]);
66443
- };
66444
- const parseFormulaVar = (formulaVar) => {
66445
- const result = {
66446
- original: formulaVar,
66447
- type: "",
66448
- processed: "",
66449
- hashValue: "",
66450
- dataType: ""
66451
- };
66452
- if (/^\$([^$]+)\$\.(.+)$/.test(formulaVar)) {
66453
- const match = formulaVar.match(/^\$([^$]+)\$\.(.+)$/);
66454
- result.type = "hash";
66455
- result.processed = match[2];
66456
- result.hashValue = match[1];
66457
- result.dataType = "globType";
66458
- } else if (/^_\.(.+)$/.test(formulaVar)) {
66459
- const match = formulaVar.match(/^_\.(.+)$/);
66460
- result.type = "underscore";
66461
- result.processed = match[1];
66462
- result.dataType = "currentRowType";
66463
- } else {
66464
- result.type = "plain";
66465
- result.processed = formulaVar;
66466
- result.dataType = "globType";
66467
- }
66468
- return result;
66469
- };
66470
- const getParseFormulaVarInfos = (expr) => {
66471
- const rowArgs = expr ? identify(expr) : [];
66472
- return {
66473
- rowArgs,
66474
- parseInfos: rowArgs.map((curr) => parseFormulaVar(curr))
66475
- };
66476
- };
66477
- const calculateFormula = async (expr, formData, instanceFormState) => {
66478
- const rowArgs = identify(expr);
66479
- const formulaData = isEmpty(rowArgs) ? {} : rowArgs.reduce((total, curr) => {
66480
- const parseInfo = parseFormulaVar(curr);
66481
- total[curr] = getFieldDataValue(
66482
- parseInfo,
66483
- parseInfo.dataType === "currentRowType" ? formData : instanceFormState
66484
- );
66485
- return total;
66486
- }, {});
66487
- return calculate(expr, formulaData);
66488
- };
66489
- const isEmptyValue = (value) => {
66490
- return value === void 0 || value === null || typeof value === "string" && value.trim() === "" || Array.isArray(value) && value.length === 0;
66491
- };
66492
- const compareByOp = (left, right, op) => {
66493
- switch (op) {
66494
- case RangeCompareOp.LT:
66495
- return left < right;
66496
- case RangeCompareOp.LE:
66497
- return left <= right;
66498
- case RangeCompareOp.GT:
66499
- return left > right;
66500
- case RangeCompareOp.GE:
66501
- default:
66502
- return left >= right;
66503
- }
66504
- };
66505
- const rangeCompareMessage = (op, val) => {
66506
- switch (op) {
66507
- case RangeCompareOp.LT:
66508
- return $t("sys.fieldValueNotGreaterOrEqual", { val });
66509
- case RangeCompareOp.LE:
66510
- return $t("sys.fieldValueNoMoreThan", { val });
66511
- case RangeCompareOp.GT:
66512
- return $t("sys.fieldValueNotLessOrEqual", { val });
66513
- case RangeCompareOp.GE:
66514
- default:
66515
- return $t("sys.fieldValueNotLessThan", { val });
66516
- }
66517
- };
66518
- const toUnixTimestamp = (input) => {
66519
- if (isNil(input) || input === "") return null;
66520
- const asNumber = typeof input === "number" || typeof input === "string" && /^-?\d+(\.\d+)?$/.test(input.trim());
66521
- if (asNumber) {
66522
- const n = Number(input);
66523
- if (Number.isNaN(n)) return null;
66524
- const parsed2 = n > 1e12 ? dayjs(n) : dayjs.unix(n);
66525
- return parsed2.isValid() ? parsed2.unix() : null;
66526
- }
66527
- const parsed = dayjs(input);
66528
- return parsed.isValid() ? parsed.unix() : null;
66529
- };
66530
- const buildError = (validatorInfo, message2) => JSON.stringify({ ...validatorInfo, message: message2 });
66531
- function areValidationCommentsEqual(left, right) {
66532
- const serialize = (comments) => JSON.stringify(
66533
- comments,
66534
- (_key, value) => value && typeof value === "object" && "message" in value ? { ...value, message: value.message } : value
66535
- );
66536
- return serialize(left) === serialize(right);
66537
- }
66538
- const createRule = (validator, message2, trigger = "change") => ({
66539
- required: true,
66540
- validator,
66541
- message: message2,
66542
- trigger
66543
- });
66544
- function relocateDeletedRowsToEnd(rows = []) {
66545
- const active = [];
66546
- const deleted = [];
66547
- for (const row of rows) {
66548
- if (row?.deleted_) deleted.push(row);
66549
- else active.push(row);
66550
- }
66551
- return [...active, ...deleted];
66552
- }
66553
- const MAX_NUMERIC_DIGITS = 15;
66554
- const NUMERIC_FIELD_TYPES = /* @__PURE__ */ new Set([
66555
- FIELD_TYPE.INTEGER,
66556
- FIELD_TYPE.LONG,
66557
- FIELD_TYPE.DOUBLE,
66558
- FIELD_TYPE.DECIMAL
66559
- ]);
66560
- function filterRulesByTrigger(rules, trigger) {
66561
- return rules.filter((rule) => {
66562
- const ruleTrigger = rule.trigger;
66563
- if (!ruleTrigger) return trigger === "change";
66564
- if (trigger === "blur") {
66565
- return ruleTrigger === "blur" || ruleTrigger === "change";
66566
- }
66567
- return ruleTrigger === trigger;
66568
- });
66569
- }
66570
- function assembleRules(input) {
66571
- const { showRequired, fieldType, validatorInfo, props } = input;
66572
- const {
66573
- minlength,
66574
- maxlength,
66575
- regex,
66576
- regexHint,
66577
- validateTrue,
66578
- validateFalse,
66579
- enableRangeValidate,
66580
- maxValidateMode,
66581
- minValidateMode,
66582
- maxCompareOp,
66583
- minCompareOp,
66584
- minValue,
66585
- maxValue,
66586
- minFormulaExpr,
66587
- maxFormulaExpr,
66588
- minDate,
66589
- maxDate,
66590
- minDateFormulaExpr,
66591
- maxDateFormulaExpr,
66592
- maxDateValidateMode,
66593
- minDateValidateMode
66594
- } = props;
66595
- const resolvedMaxCompareOp = maxCompareOp ?? RangeCompareOp.LE;
66596
- const resolvedMinCompareOp = minCompareOp ?? RangeCompareOp.GE;
66597
- const RuleProps = [];
66598
- if (props.bizType === FIELD_TYPE.SEAL) {
66599
- if (showRequired) {
66600
- RuleProps.push(
66601
- createRule(
66602
- (_rule, value) => isSealStamped(value),
66603
- buildError(
66604
- { ...validatorInfo, validationCode: "seal-required" },
66605
- $t("sys.fieldRequired")
66606
- ),
66607
- "manual"
66608
- )
66609
- );
66610
- }
66611
- RuleProps.push(createRule((_rule, value) => isEmptyValue(value) || isValidSealValue(value), buildError(validatorInfo, $t("sys.seal.invalid"))));
66612
- return RuleProps;
66613
- }
66614
- if (showRequired) {
66615
- RuleProps.push(
66616
- createRule(
66617
- (_rule, value) => !isEmptyValue(value),
66618
- buildError(validatorInfo, $t("sys.fieldRequired")),
66619
- "manual"
66620
- )
66621
- );
66622
- }
66623
- if (!isNil(minlength)) {
66624
- RuleProps.push(
66625
- createRule((_rule, value) => {
66626
- if (isEmptyValue(value)) return true;
66627
- return String(value).length >= minlength;
66628
- }, buildError(validatorInfo, $t("sys.fieldLengthNotLessThan", { len: minlength })))
66629
- );
66630
- }
66631
- const effectiveMaxlength = isNil(maxlength) && fieldType === FIELD_TYPE.TEXT ? 1024 : maxlength;
66632
- if (!isNil(effectiveMaxlength)) {
66633
- RuleProps.push(
66634
- createRule((_rule, value) => {
66635
- if (isEmptyValue(value)) return true;
66636
- return String(value).length <= effectiveMaxlength;
66637
- }, buildError(validatorInfo, $t("sys.fieldLengthNoMoreThan", { len: effectiveMaxlength })))
66638
- );
66639
- }
66640
- if (regex) {
66641
- RuleProps.push(
66642
- createRule((_rule, value) => {
66643
- if (isEmptyValue(value)) return true;
66644
- return new RegExp(regex).test(value);
66645
- }, buildError(validatorInfo, regexHint ?? $t("sys.fieldFormatError")))
66646
- );
66647
- }
66648
- if (validateTrue) {
66649
- RuleProps.push({
66650
- required: true,
66651
- trigger: "manual",
66652
- validator: (_rule, value) => value === true,
66653
- message: buildError(validatorInfo, $t("sys.fieldValueNeedTrue"))
66654
- });
66655
- }
66656
- if (validateFalse) {
66657
- RuleProps.push({
66658
- required: true,
66659
- trigger: "manual",
66660
- validator: (_rule, value) => value === false,
66661
- message: buildError(validatorInfo, $t("sys.fieldValueNeedFalse"))
66662
- });
66663
- }
66664
- const maxMode = maxValidateMode ?? RangeValidateMode.No_Validate;
66665
- const minMode = minValidateMode ?? RangeValidateMode.No_Validate;
66666
- const shouldValidateNumericLength = !enableRangeValidate || maxMode === RangeValidateMode.No_Validate || minMode === RangeValidateMode.No_Validate;
66667
- if (shouldValidateNumericLength && NUMERIC_FIELD_TYPES.has(fieldType ?? "")) {
66668
- RuleProps.push(
66669
- createRule((_rule, value) => {
66670
- if (isEmptyValue(value)) return true;
66671
- const raw = String(value).trim();
66672
- const text = /e/i.test(raw) ? new BigNumber(raw).toFixed() : raw;
66673
- return text.replace(/[+\-.]/g, "").length <= MAX_NUMERIC_DIGITS;
66674
- }, buildError(validatorInfo, $t("sys.fieldNumericDigitsNoMoreThan")))
66675
- );
66676
- }
66677
- const configuredMinCoversZero = enableRangeValidate && minValidateMode === RangeValidateMode.Fixed_Number && !isEmptyValue(minValue) && Number(minValue) >= 0 && (resolvedMinCompareOp === RangeCompareOp.GE || resolvedMinCompareOp === RangeCompareOp.GT);
66678
- if (input.defaultMinValue === 0 && !configuredMinCoversZero) {
66679
- RuleProps.push(
66680
- createRule(
66681
- (_rule, value) => isEmptyValue(value) || Number(value) >= 0,
66682
- buildError(validatorInfo, rangeCompareMessage(RangeCompareOp.GE, 0))
66683
- )
66684
- );
66685
- }
66686
- if (!enableRangeValidate) {
66687
- return RuleProps;
66688
- }
66689
- if (minValidateMode === RangeValidateMode.Fixed_Number && !isEmptyValue(minValue)) {
66690
- RuleProps.push(
66691
- createRule((_rule, value) => {
66692
- if (isEmptyValue(value)) return true;
66693
- return compareByOp(Number(value), Number(minValue), resolvedMinCompareOp);
66694
- }, buildError(validatorInfo, rangeCompareMessage(resolvedMinCompareOp, minValue)))
66695
- );
66696
- }
66697
- if (minValidateMode === RangeValidateMode.Variable_Validate && minFormulaExpr) {
66698
- RuleProps.push({
66699
- required: true,
66700
- trigger: "change",
66701
- validator: async (_rule, value, _callback, _source, options) => {
66702
- const currentFormData = getCurrentFormData(_rule, options);
66703
- const formulaValue = await calculateFormula(
66704
- minFormulaExpr,
66705
- currentFormData,
66706
- options?.formData
66707
- );
66708
- if (isEmptyValue(formulaValue)) {
66709
- return Promise.resolve();
66710
- }
66711
- const parsedMin = parseFloat(formulaValue);
66712
- if (!isNaN(parsedMin)) {
66713
- if (isEmptyValue(value)) {
66714
- return Promise.resolve();
66715
- }
66716
- if (!compareByOp(Number(value), parsedMin, resolvedMinCompareOp)) {
66717
- return Promise.reject(
66718
- new Error(
66719
- buildError(validatorInfo, rangeCompareMessage(resolvedMinCompareOp, parsedMin))
66720
- )
66721
- );
66722
- }
66723
- }
66724
- return Promise.resolve();
66725
- }
66726
- });
66727
- }
66728
- if (maxValidateMode === RangeValidateMode.Fixed_Number && !isEmptyValue(maxValue)) {
66729
- RuleProps.push(
66730
- createRule((_rule, value) => {
66731
- if (isEmptyValue(value)) return true;
66732
- return compareByOp(Number(value), Number(maxValue), resolvedMaxCompareOp);
66733
- }, buildError(validatorInfo, rangeCompareMessage(resolvedMaxCompareOp, maxValue)))
66734
- );
66735
- }
66736
- if (maxValidateMode === RangeValidateMode.Variable_Validate && maxFormulaExpr) {
66737
- RuleProps.push({
66738
- required: true,
66739
- trigger: "change",
66740
- validator: async (_rule, value, _callback, _source, options) => {
66741
- const currentFormData = getCurrentFormData(_rule, options);
66742
- const formulaValue = await calculateFormula(
66743
- maxFormulaExpr,
66744
- currentFormData,
66745
- options?.formData
66746
- );
66747
- if (isEmptyValue(formulaValue)) {
66748
- return Promise.resolve();
66749
- }
66750
- const parsedMax = parseFloat(formulaValue);
66751
- if (!isNaN(parsedMax)) {
66752
- if (isEmptyValue(value)) {
66753
- return Promise.resolve();
66754
- }
66755
- if (!compareByOp(Number(value), parsedMax, resolvedMaxCompareOp)) {
66756
- return Promise.reject(
66757
- new Error(
66758
- buildError(validatorInfo, rangeCompareMessage(resolvedMaxCompareOp, parsedMax))
66759
- )
66760
- );
66761
- }
66762
- }
66763
- return Promise.resolve();
66764
- }
66765
- });
66766
- }
66767
- if (minDateValidateMode === RangeValidateMode.Fixed_Number && minDate) {
66768
- RuleProps.push(
66769
- createRule((_rule, value) => {
66770
- if (isEmptyValue(value)) return true;
66771
- const inputTime = dayjs(value).unix();
66772
- const minTimestamp = dayjs(minDate).unix();
66773
- if (!dayjs(value).isValid() || !dayjs(minDate).isValid()) return true;
66774
- return compareByOp(inputTime, minTimestamp, resolvedMinCompareOp);
66775
- }, buildError(validatorInfo, rangeCompareMessage(resolvedMinCompareOp, minDate)))
66776
- );
66777
- }
66778
- if (maxDateValidateMode === RangeValidateMode.Fixed_Number && maxDate) {
66779
- RuleProps.push(
66780
- createRule((_rule, value) => {
66781
- if (isEmptyValue(value)) return true;
66782
- const inputTime = dayjs(value).unix();
66783
- const maxTimestamp = dayjs(maxDate).unix();
66784
- if (!dayjs(value).isValid() || !dayjs(maxDate).isValid()) return true;
66785
- return compareByOp(inputTime, maxTimestamp, resolvedMaxCompareOp);
66786
- }, buildError(validatorInfo, rangeCompareMessage(resolvedMaxCompareOp, maxDate)))
66787
- );
66788
- }
66789
- if (minDateValidateMode === RangeValidateMode.Variable_Validate && minDateFormulaExpr) {
66790
- RuleProps.push({
66791
- required: true,
66792
- trigger: "change",
66793
- validator: async (_rule, value, _callback, _source, options) => {
66794
- const currentFormData = getCurrentFormData(_rule, options);
66795
- const formulaValue = await calculateFormula(
66796
- minDateFormulaExpr,
66797
- currentFormData,
66798
- options?.formData
66799
- );
66800
- const limitTime = toUnixTimestamp(formulaValue);
66801
- if (limitTime !== null) {
66802
- if (isEmptyValue(value)) {
66803
- return Promise.resolve();
66804
- }
66805
- if (!dayjs(value).isValid()) {
66806
- return Promise.resolve();
66807
- }
66808
- const inputTime = dayjs(value).unix();
66809
- const fmt = fieldType === FIELD_TYPE.DATE_TIME ? "YYYY-MM-DD HH:mm:ss" : "YYYY-MM-DD";
66810
- if (!compareByOp(inputTime, limitTime, resolvedMinCompareOp)) {
66811
- return Promise.reject(
66812
- new Error(
66813
- buildError(
66814
- validatorInfo,
66815
- rangeCompareMessage(resolvedMinCompareOp, dayjs.unix(limitTime).format(fmt))
66816
- )
66817
- )
66818
- );
66819
- }
66820
- }
66821
- return Promise.resolve();
66822
- }
66823
- });
66824
- }
66825
- if (maxDateValidateMode === RangeValidateMode.Variable_Validate && maxDateFormulaExpr) {
66826
- RuleProps.push({
66827
- required: true,
66828
- trigger: "change",
66829
- validator: async (_rule, value, _callback, _source, options) => {
66830
- const currentFormData = getCurrentFormData(_rule, options);
66831
- const formulaValue = await calculateFormula(
66832
- maxDateFormulaExpr,
66833
- currentFormData,
66834
- options?.formData
66835
- );
66836
- const limitTime = toUnixTimestamp(formulaValue);
66837
- if (limitTime !== null) {
66838
- if (isEmptyValue(value)) {
66839
- return Promise.resolve();
66840
- }
66841
- if (!dayjs(value).isValid()) {
66842
- return Promise.resolve();
66843
- }
66844
- const inputTime = dayjs(value).unix();
66845
- const fmt = fieldType === FIELD_TYPE.DATE_TIME ? "YYYY-MM-DD HH:mm:ss" : "YYYY-MM-DD";
66846
- if (!compareByOp(inputTime, limitTime, resolvedMaxCompareOp)) {
66847
- return Promise.reject(
66848
- new Error(
66849
- buildError(
66850
- validatorInfo,
66851
- rangeCompareMessage(resolvedMaxCompareOp, dayjs.unix(limitTime).format(fmt))
66852
- )
66853
- )
66854
- );
66855
- }
66856
- }
66857
- return Promise.resolve();
66858
- }
66859
- });
66860
- }
66861
- return RuleProps;
66862
- }
66863
- const getApi$1 = api.apaas.modelComprehensive.getBizServiceModelCategoryModelKeyBsKey;
66864
- const postApi = api.apaas.modelComprehensive.postBizServiceModelCategoryModelKeyBsKey;
66865
- async function materialCheck(params) {
66866
- const res = await postApi(
66867
- {
66868
- bsKey: "biz_single_material_check",
66869
- modelKey: "em_material_loading",
66870
- modelCategory: "entity"
66871
- },
66872
- {},
66873
- params
66874
- );
66875
- return res;
66876
- }
66877
- async function stockCheck(params) {
66878
- await postApi(
66879
- {
66880
- bsKey: "biz_form_single_confirm",
66881
- modelKey: "em_material_loading",
66882
- modelCategory: "entity"
66883
- },
66884
- {},
66885
- {
66886
- entry: params.entry,
66887
- material_id_: params.row.product_id_,
66888
- production_identification_name_: params.row.material_no_,
66889
- qty_: params.row.qty_,
66890
- operation_id_: params.row.routing_operation_id_,
66891
- main_material_no_: params.mainMaterialNo
66892
- }
66893
- );
66894
- }
66895
- async function fetchHistoryConsume(params) {
66896
- const res = await postApi(
66897
- {
66898
- bsKey: "listAll",
66899
- modelKey: "em_material_consume",
66900
- modelCategory: "entity"
66901
- },
66902
- {},
66903
- {
66904
- query: params
66905
- }
66906
- );
66907
- console.log("查询历史消耗数据", res);
66908
- const arr = res.data ?? [];
66909
- arr.map((i2) => {
66910
- i2.qty_ = i2.qty_consumed_;
66911
- });
66912
- return arr;
66913
- }
66914
- async function judgeUnique(opts) {
66915
- const res = await postApi(
66916
- {
66917
- bsKey: "biz_form_unique",
66918
- modelKey: "em_material_loading",
66919
- modelCategory: "entity"
66920
- },
66921
- {},
66922
- {
66923
- model_key_: opts.modelKey,
66924
- datas_: opts.data
66925
- }
66926
- );
66927
- return res;
66928
- }
66929
- async function isBomGranted() {
66930
- try {
66931
- const res = await getApi$1(
66932
- {
66933
- modelKey: "em_product_bom",
66934
- bsKey: "biz_bom_granted",
66935
- modelCategory: "entity"
66936
- },
66937
- {},
66938
- {}
66939
- );
66940
- return res ?? false;
66941
- } catch (error) {
66942
- console.log("");
66943
- return false;
66944
- }
66945
- }
66946
- async function getReinspectionDate(params) {
66947
- if (!params.material_no_id_ && !params.material_no_) return;
66948
- ({
66949
- "product_id_.versionIn": [params.product_id_.split(":").pop()]
66950
- });
66951
- if (params.material_no_id_) {
66952
- params.material_no_id_;
66953
- } else {
66954
- params.material_no_;
66955
- }
66956
- const res = await postApi(
66957
- {
66958
- modelCategory: "entity",
66959
- modelKey: "em_production_identification",
66960
- bsKey: "getOne"
66961
- },
66962
- {},
66963
- {
66964
- query: {
66965
- name_: params.material_no_,
66966
- id_: params.material_no_id_,
66967
- "product_id_.versionEq": params.product_id_
66968
- }
66969
- }
66970
- );
66971
- const record = res?.data?.[0] ?? res?.data;
66972
- const raw = record?.re_inspection_date_ ?? record?.retest_date_;
66973
- if (raw == null || raw === "") return;
66974
- const parsed = dayjs(raw);
66975
- if (!parsed.isValid()) return;
66976
- return parsed.format("YYYY-MM-DD");
66977
- }
66978
- async function validateReinspectionDate(opts) {
66979
- if (!opts.product_id_ || !opts.material_no_ && !opts.material_no_id_) return;
66980
- const date = await getReinspectionDate({
66981
- product_id_: opts.product_id_,
66982
- material_no_: opts.material_no_,
66983
- material_no_id_: opts.material_no_id_
66984
- });
66985
- if (!date) return;
66986
- if (dayjs(date).isBefore(dayjs(), "day")) {
66987
- throw new Error($t("sys.retestDateErrorTip"));
66988
- }
66989
- }
66990
- async function getLotLockedReason(production_identification_id_) {
66991
- const { data = {}, dict = {} } = await postApi(
66992
- {
66993
- modelCategory: "entity",
66994
- modelKey: "em_production_identification_lock_record",
66995
- bsKey: "biz_get_one_lock_record"
66996
- },
66997
- {},
66998
- {
66999
- production_identification_id_
67000
- }
67001
- );
67002
- return $t("sys.lotLockedReason", {
67003
- name: dict.lock_user_id_[data.lock_user_id_],
67004
- reason: data.lock_reason_
67005
- });
67006
- }
67007
- var Config_Fields = /* @__PURE__ */ ((Config_Fields2) => {
67008
- Config_Fields2["materialCode"] = "materialCode";
67009
- Config_Fields2["lot"] = "lot";
67010
- Config_Fields2["qty"] = "qty";
67011
- Config_Fields2["expiration"] = "expiration";
67012
- Config_Fields2["deviceCode"] = "deviceCode";
67013
- Config_Fields2["other"] = "other";
67014
- return Config_Fields2;
67015
- })(Config_Fields || {});
67016
- const getApi = api.apaas.modelComprehensive.getBizServiceModelCategoryModelKeyBsKey;
67017
- async function getParseRuleInfo(params) {
67018
- const res = await getApi(
67019
- {
67020
- bsKey: "rdoGetVersionById",
67021
- modelKey: "em_barcode_parsing_rules",
67022
- modelCategory: "entity"
67023
- },
67024
- params
67025
- );
67026
- return res.data;
67027
- }
67028
- function handleOldConfig(config) {
67029
- if (config.list && !config.fieldList) {
67030
- config.fieldList = config.list.map((type) => {
67031
- return {
67032
- type,
67033
- key: type === Config_Fields.other ? uuid2(32) : type
67034
- };
67035
- });
67036
- delete config.list;
67037
- }
67038
- config.fieldList.forEach((item) => {
67039
- if (!item.key) {
67040
- item.key = item.type === Config_Fields.other ? uuid2(32) : item.type;
67041
- }
67042
- });
67043
- return config;
67044
- }
67045
- function getParseRuleValue(labelStr, labelRule) {
67046
- if (!labelRule) {
67047
- throw new Error("请传入解析规则");
67048
- }
67049
- const ruleObj = JSON.parse(labelRule);
67050
- const ruleConfig = handleOldConfig(ruleObj);
67051
- const { separator, nullSymbol, fieldList } = ruleConfig;
67052
- const labelArr = labelStr.split(separator);
67053
- return labelArr.reduce((obj, e, idx) => {
67054
- const field = fieldList[idx];
67055
- if (field) {
67056
- let val = nullSymbol && e === nullSymbol ? null : e;
67057
- if (val !== null) {
67058
- switch (field.type) {
67059
- case Config_Fields.qty:
67060
- val = Number(val);
67061
- break;
67062
- case Config_Fields.expiration:
67063
- val = dayjs(val, field.format).format("YYYY-MM-DD HH:mm:ss");
67064
- break;
67065
- }
67066
- }
67067
- obj[field.key] = val;
67068
- }
67069
- return obj;
67070
- }, {});
67071
- }
67072
- async function getParseRuleConfig(id) {
67073
- const res = await getParseRuleInfo({ id });
67074
- if (res?.rules_) {
67075
- const ruleObj = JSON.parse(res.rules_);
67076
- const ruleConfig = handleOldConfig(ruleObj);
67077
- return ruleConfig;
67078
- }
67079
- }
67080
- function calcFillData(data, fillMapArr) {
67081
- const obj = {};
67082
- if (fillMapArr?.length) {
67083
- fillMapArr.forEach((i2) => {
67084
- const fromKey = i2.barcodeField;
67085
- if (fromKey && fromKey in data) {
67086
- const val = data[fromKey];
67087
- i2.formFields?.forEach((key) => {
67088
- const toKey2 = key.split(".")[1];
67089
- obj[toKey2] = val;
67090
- });
67091
- }
67092
- });
67093
- }
67094
- return obj;
67095
- }
67096
66526
  const NUMBER_FIELD_TYPES = /* @__PURE__ */ new Set([
67097
66527
  FIELD_TYPE.INTEGER,
67098
66528
  FIELD_TYPE.LONG,
@@ -67556,27 +66986,27 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
67556
66986
  case "revo-grid":
67557
66987
  return import(
67558
66988
  /* webpackMode: "lazy" */
67559
- "./revo-grid.entry-BZADj2ve.js"
66989
+ "./revo-grid.entry-CAz8pEMB.js"
67560
66990
  ).then(processMod, consoleError);
67561
66991
  case "revogr-filter-panel":
67562
66992
  return import(
67563
66993
  /* webpackMode: "lazy" */
67564
- "./revogr-filter-panel.entry-BJEYteeW.js"
66994
+ "./revogr-filter-panel.entry-BCwmMUrv.js"
67565
66995
  ).then(processMod, consoleError);
67566
66996
  case "revogr-attribution_7":
67567
66997
  return import(
67568
66998
  /* webpackMode: "lazy" */
67569
- "./revogr-attribution_7.entry-DbQASE7d.js"
66999
+ "./revogr-attribution_7.entry-RBj_kk6o.js"
67570
67000
  ).then(processMod, consoleError);
67571
67001
  case "revogr-clipboard_3":
67572
67002
  return import(
67573
67003
  /* webpackMode: "lazy" */
67574
- "./revogr-clipboard_3.entry-BUDhUelS.js"
67004
+ "./revogr-clipboard_3.entry-B_WeVhDK.js"
67575
67005
  ).then(processMod, consoleError);
67576
67006
  case "revogr-data_4":
67577
67007
  return import(
67578
67008
  /* webpackMode: "lazy" */
67579
- "./revogr-data_4.entry-0V57Lz9p.js"
67009
+ "./revogr-data_4.entry-VaYdG5rT.js"
67580
67010
  ).then(processMod, consoleError);
67581
67011
  }
67582
67012
  }
@@ -77812,7 +77242,7 @@ function groupFixedTableRows(rows, options) {
77812
77242
  return result;
77813
77243
  }
77814
77244
  export {
77815
- isDateObjectField as $,
77245
+ PlatformEnum as $,
77816
77246
  CellType as A,
77817
77247
  BwipCodeType as B,
77818
77248
  ComponentTypeEnum as C,
@@ -77833,323 +77263,304 @@ export {
77833
77263
  PaperWidgeValueType as R,
77834
77264
  SUB_TABLE_PANEL_TYPE_NAME as S,
77835
77265
  TRACE_FIELD_TYPES as T,
77836
- getParseFormulaVarInfos as U,
77837
- onlineFormMasterModelTypeEnum as V,
77266
+ onlineFormMasterModelTypeEnum as U,
77267
+ UniqueConstraintType as V,
77838
77268
  WAREHOUSE_FIELD_TYPES as W,
77839
- UniqueConstraintType as X,
77840
- FieldDefaultValueTypeEnum as Y,
77841
- FormTypeEnum as Z,
77842
- mitt as _,
77269
+ FieldDefaultValueTypeEnum as X,
77270
+ FormTypeEnum as Y,
77271
+ mitt as Z,
77272
+ isDateObjectField as _,
77843
77273
  getProfile as a,
77844
- validateReinspectionDate as a$,
77845
- PlatformEnum as a0,
77846
- LabelPosition as a1,
77847
- BooleanShowMode as a2,
77848
- SignatureImageDirectionEnum as a3,
77849
- FallbackSignTypeEnum as a4,
77850
- SignatureNumberTypeEnum as a5,
77851
- SignatureTimeTypeEnum as a6,
77852
- SignShowTypeEnum as a7,
77853
- SignatureTypeEnum as a8,
77854
- _export_sfc as a9,
77855
- getSubTableTypeByRefModelType as aA,
77856
- findFieldMain as aB,
77857
- DecimalDisplayMode as aC,
77858
- ImageDisplayModeEnum as aD,
77859
- FormDesignEnum as aE,
77860
- BASIC_FIELD_TYPES as aF,
77861
- getAllTableProfiles as aG,
77862
- transformUtils as aH,
77863
- EmptySymbol as aI,
77864
- ASSIGNMENTSTRATEGY_ENUM as aJ,
77865
- Dependency_ENUM as aK,
77866
- EntityModelCategoryEnum as aL,
77867
- resolveLotDisplayLabel as aM,
77868
- CheckDsTypeEnum as aN,
77869
- DeviceLink as aO,
77870
- DeviceParamsTypeTitle as aP,
77871
- AITooltips as aQ,
77872
- DenoiseMethodOptions as aR,
77873
- BinarizeMethodOptions as aS,
77874
- DateFormat as aT,
77875
- withRequestCache as aU,
77876
- LOT_CONTAINER_ROLE as aV,
77877
- buildLotSnListQuery as aW,
77878
- renderUtils as aX,
77879
- resolveLotRecordByValue as aY,
77880
- materialCheck as aZ,
77881
- getLotLockedReason as a_,
77882
- normalizeFieldType as aa,
77883
- PaperSizeMap as ab,
77884
- clampSealPosition as ac,
77885
- normalizeSealDiameter as ad,
77886
- getFieldMain as ae,
77887
- buildUUID as af,
77888
- FieldIconMap as ag,
77889
- BigNumber as ah,
77890
- FieldSysVarDefaultValueEnum as ai,
77891
- CellWidgetViewState as aj,
77892
- DiagonalDirection as ak,
77893
- WidgetImageSizeMode as al,
77894
- LineDirection as am,
77895
- TimeDiffFormat as an,
77896
- DiagonalVertex as ao,
77897
- resolveDiagonalVertex as ap,
77898
- getThemeColorByTableType as aq,
77899
- ViewTypeEnum as ar,
77900
- isDynamicSubTablePanelType as as,
77901
- isFixedSubTablePanelType as at,
77902
- ExpressionModeEnum as au,
77903
- ReturnTypeEnum as av,
77904
- ExpressionTabEnum as aw,
77905
- RangeValidateMode as ax,
77906
- RangeCompareOp as ay,
77907
- getExclusiveBusinessTypeTokens as az,
77274
+ getParseRuleInfo as a$,
77275
+ LabelPosition as a0,
77276
+ BooleanShowMode as a1,
77277
+ SignatureImageDirectionEnum as a2,
77278
+ FallbackSignTypeEnum as a3,
77279
+ SignatureNumberTypeEnum as a4,
77280
+ SignatureTimeTypeEnum as a5,
77281
+ SignShowTypeEnum as a6,
77282
+ SignatureTypeEnum as a7,
77283
+ _export_sfc as a8,
77284
+ normalizeFieldType as a9,
77285
+ ImageDisplayModeEnum as aA,
77286
+ FormDesignEnum as aB,
77287
+ BASIC_FIELD_TYPES as aC,
77288
+ getAllTableProfiles as aD,
77289
+ transformUtils as aE,
77290
+ EmptySymbol as aF,
77291
+ ASSIGNMENTSTRATEGY_ENUM as aG,
77292
+ Dependency_ENUM as aH,
77293
+ EntityModelCategoryEnum as aI,
77294
+ resolveLotDisplayLabel as aJ,
77295
+ CheckDsTypeEnum as aK,
77296
+ DeviceLink as aL,
77297
+ DeviceParamsTypeTitle as aM,
77298
+ AITooltips as aN,
77299
+ DenoiseMethodOptions as aO,
77300
+ BinarizeMethodOptions as aP,
77301
+ DateFormat as aQ,
77302
+ withRequestCache as aR,
77303
+ LOT_CONTAINER_ROLE as aS,
77304
+ buildLotSnListQuery as aT,
77305
+ renderUtils as aU,
77306
+ resolveLotRecordByValue as aV,
77307
+ materialCheck as aW,
77308
+ getLotLockedReason as aX,
77309
+ validateReinspectionDate as aY,
77310
+ ProductionIdentificationTypeEnum as aZ,
77311
+ BindCmpStyleEnum as a_,
77312
+ PaperSizeMap as aa,
77313
+ getFieldMain as ab,
77314
+ buildUUID as ac,
77315
+ FieldIconMap as ad,
77316
+ BigNumber as ae,
77317
+ FieldSysVarDefaultValueEnum as af,
77318
+ CellWidgetViewState as ag,
77319
+ DiagonalDirection as ah,
77320
+ WidgetImageSizeMode as ai,
77321
+ LineDirection as aj,
77322
+ TimeDiffFormat as ak,
77323
+ DiagonalVertex as al,
77324
+ resolveDiagonalVertex as am,
77325
+ getThemeColorByTableType as an,
77326
+ ViewTypeEnum as ao,
77327
+ isDynamicSubTablePanelType as ap,
77328
+ isFixedSubTablePanelType as aq,
77329
+ ExpressionModeEnum as ar,
77330
+ ReturnTypeEnum as as,
77331
+ ExpressionTabEnum as at,
77332
+ RangeValidateMode as au,
77333
+ RangeCompareOp as av,
77334
+ getExclusiveBusinessTypeTokens as aw,
77335
+ getSubTableTypeByRefModelType as ax,
77336
+ findFieldMain as ay,
77337
+ DecimalDisplayMode as az,
77908
77338
  isBusinessSubTableProfile as b,
77909
- RUNTIME_COLUMN_ROW_KEY as b$,
77910
- ProductionIdentificationTypeEnum as b0,
77911
- BindCmpStyleEnum as b1,
77912
- getParseRuleInfo as b2,
77913
- getParseRuleValue as b3,
77914
- normalizeRefLoaderResult as b4,
77915
- STOCKTAKE_DIMENSION as b5,
77916
- F$8 as b6,
77917
- resolveStocktakeSelectApi as b7,
77918
- readSealValue as b8,
77919
- isSealStamped as b9,
77920
- isBomGranted as bA,
77921
- parseFrontConfig as bB,
77922
- baseDataUtils as bC,
77923
- initializeSealFields as bD,
77924
- normalizeToArray as bE,
77925
- safeParseArray as bF,
77926
- BpmnNodeTypeEnum as bG,
77927
- mergeByMultiKey as bH,
77928
- evaluateInspectionDecisionRule as bI,
77929
- areValidationCommentsEqual as bJ,
77930
- useNocodeEmitter as bK,
77931
- commonUtils as bL,
77932
- BpmnSignatureTypeEnum as bM,
77933
- ButtonTypeEnum as bN,
77934
- CHECK_TABLE_MEDPRO_PROTOCOL_KEY as bO,
77935
- CodeRunner as bP,
77936
- Config_Fields as bQ,
77937
- ControlStatusEnum as bR,
77938
- DEVICE_SEARCH_API as bS,
77939
- DeviceStatus as bT,
77940
- EBR_PROVIDE_ENUM as bU,
77941
- EFieldBizTypeEnum as bV,
77942
- JoinModelTypeEum as bW,
77943
- MAX_FRONT_ROW_KEY_LENGTH as bX,
77944
- MobileFillTypeEnum as bY,
77945
- OfficeTypeEnum as bZ,
77946
- PosEnum as b_,
77947
- stampSealValue as ba,
77948
- isValidSealValue as bb,
77949
- clearSealValue as bc,
77950
- normalizeProductionContainerOptions as bd,
77951
- buildProductionLotListQuery as be,
77952
- refUtils as bf,
77953
- buildInspectionLotListQuery as bg,
77954
- buildDeviceFilterQuery as bh,
77955
- DEVICE_GROUP_QUERY_KEY as bi,
77956
- getRowId as bj,
77957
- findRuntimeTableRow as bk,
77958
- calculateFormula as bl,
77959
- RenderModeEnum as bm,
77960
- findRuntimeParentRow as bn,
77961
- useOnlineFormTransformField2Component as bo,
77962
- FormulaRuleFieldKeyEnum as bp,
77963
- formulaRuleFieldDict as bq,
77964
- resolveDesignPanelFeatures as br,
77965
- BIZ_TABLE_CONFIG_SEED_TYPES as bs,
77966
- STOCKTAKE_DIMENSION_OPTIONS as bt,
77967
- isRepeatingSubTablePanelType as bu,
77968
- moveSealValue as bv,
77969
- uuid2 as bw,
77970
- assembleRules as bx,
77971
- isAttachFieldActive as by,
77972
- fetchHistoryConsume as bz,
77339
+ fetchCustomCheckDsData as b$,
77340
+ getParseRuleValue as b0,
77341
+ normalizeRefLoaderResult as b1,
77342
+ STOCKTAKE_DIMENSION as b2,
77343
+ F$8 as b3,
77344
+ resolveStocktakeSelectApi as b4,
77345
+ normalizeProductionContainerOptions as b5,
77346
+ buildProductionLotListQuery as b6,
77347
+ refUtils as b7,
77348
+ buildInspectionLotListQuery as b8,
77349
+ buildDeviceFilterQuery as b9,
77350
+ CHECK_TABLE_MEDPRO_PROTOCOL_KEY as bA,
77351
+ CodeRunner as bB,
77352
+ Config_Fields as bC,
77353
+ ControlStatusEnum as bD,
77354
+ DEVICE_SEARCH_API as bE,
77355
+ DeviceStatus as bF,
77356
+ EBR_PROVIDE_ENUM as bG,
77357
+ EFieldBizTypeEnum as bH,
77358
+ JoinModelTypeEum as bI,
77359
+ MAX_FRONT_ROW_KEY_LENGTH as bJ,
77360
+ MobileFillTypeEnum as bK,
77361
+ OfficeTypeEnum as bL,
77362
+ PosEnum as bM,
77363
+ RUNTIME_COLUMN_ROW_KEY as bN,
77364
+ SummaryApproveHisTypeEnum as bO,
77365
+ applyCheckDsDataToRuntime as bP,
77366
+ applyMedProCheckDsDataToRuntime as bQ,
77367
+ bindRuntimeTableColumns as bR,
77368
+ buildDeviceBaseQuery as bS,
77369
+ calcFillData as bT,
77370
+ calcUtils as bU,
77371
+ decodeTableCellRowKey as bV,
77372
+ encodeTableCellRowKey as bW,
77373
+ ensureFrontRowKey as bX,
77374
+ ensureTableRowKeys as bY,
77375
+ extractKeywordFromQueryData as bZ,
77376
+ fetchCheckDsDataForTable as b_,
77377
+ DEVICE_GROUP_QUERY_KEY as ba,
77378
+ getRowId as bb,
77379
+ findRuntimeTableRow as bc,
77380
+ RenderModeEnum as bd,
77381
+ findRuntimeParentRow as be,
77382
+ useOnlineFormTransformField2Component as bf,
77383
+ FormulaRuleFieldKeyEnum as bg,
77384
+ formulaRuleFieldDict as bh,
77385
+ resolveDesignPanelFeatures as bi,
77386
+ BIZ_TABLE_CONFIG_SEED_TYPES as bj,
77387
+ STOCKTAKE_DIMENSION_OPTIONS as bk,
77388
+ isRepeatingSubTablePanelType as bl,
77389
+ uuid2 as bm,
77390
+ fetchHistoryConsume as bn,
77391
+ isBomGranted as bo,
77392
+ parseFrontConfig as bp,
77393
+ baseDataUtils as bq,
77394
+ normalizeToArray as br,
77395
+ safeParseArray as bs,
77396
+ BpmnNodeTypeEnum as bt,
77397
+ mergeByMultiKey as bu,
77398
+ evaluateInspectionDecisionRule as bv,
77399
+ useNocodeEmitter as bw,
77400
+ commonUtils as bx,
77401
+ BpmnSignatureTypeEnum as by,
77402
+ ButtonTypeEnum as bz,
77973
77403
  getProfileByTableType as c,
77974
- FILL_FROM_PART_OPTION as c$,
77975
- SummaryApproveHisTypeEnum as c0,
77976
- applyCheckDsDataToRuntime as c1,
77977
- applyMedProCheckDsDataToRuntime as c2,
77978
- bindRuntimeTableColumns as c3,
77979
- buildDeviceBaseQuery as c4,
77980
- calcFillData as c5,
77981
- calcUtils as c6,
77982
- decodeTableCellRowKey as c7,
77983
- encodeTableCellRowKey as c8,
77984
- ensureFrontRowKey as c9,
77985
- isReferenceOptionActive as cA,
77986
- FRONT_ROW_KEY as cB,
77987
- filterRulesByTrigger as cC,
77988
- isEmptyValue as cD,
77989
- buildError as cE,
77990
- resetTableRowIdentity as cF,
77991
- q as cG,
77992
- QUICK_FILL_ALLOWED_FIELDS as cH,
77993
- groupFixedTableRows as cI,
77994
- processQuickFillRows as cJ,
77995
- getIsGroupEmpty as cK,
77996
- getAugmentedNamespace as cL,
77997
- CardControlEnum as cM,
77998
- EntityModelTypeEnum as cN,
77999
- RecordNoGenerateEnum as cO,
78000
- TagTypeEnum as cP,
78001
- F$3 as cQ,
78002
- FILL_FROM_TARGET_PRODUCT_OPTION as cR,
78003
- F$6 as cS,
78004
- SCAN_ROW_CONTENT_FIELDS as cT,
78005
- F$7 as cU,
78006
- runRowHandler as cV,
78007
- F$a as cW,
78008
- F$9 as cX,
78009
- FILL_FROM_SOURCE_PRODUCT_OPTION as cY,
78010
- FILL_FROM_TARGET_MATERIAL_NO_OPTION as cZ,
78011
- FILL_FROM_INVENTORY_OPTION$2 as c_,
78012
- ensureTableRowKeys as ca,
78013
- extractKeywordFromQueryData as cb,
78014
- fetchCheckDsDataForTable as cc,
78015
- fetchCustomCheckDsData as cd,
78016
- fetchMedProCheckDsData as ce,
78017
- findRuntimeTableCell as cf,
78018
- getCheckTableSnapshotKey as cg,
78019
- getParseRuleConfig as ch,
78020
- getReinspectionDate as ci,
78021
- getRenderedRuntimeTableCell as cj,
78022
- handleOldConfig as ck,
78023
- hasAnyCheckTableSnapshot as cl,
78024
- hasByTableCheckTableSnapshot as cm,
78025
- hasSharedCheckTableSnapshot as cn,
78026
- isMedProSuite as co,
78027
- isTableRowKeyMatch as cp,
78028
- jsonSchemaUtils as cq,
78029
- judgeUnique as cr,
78030
- migrateDiagonalDirectionToVertex as cs,
78031
- relocateDeletedRowsToEnd as ct,
78032
- requestMedProCheckDsData as cu,
78033
- requestNonMedProCheckDsData as cv,
78034
- sqlUtils as cw,
78035
- stockCheck as cx,
78036
- useOnlineFormActionButton as cy,
78037
- getFieldPlaceholder as cz,
77404
+ F$c as c$,
77405
+ fetchMedProCheckDsData as c0,
77406
+ findRuntimeTableCell as c1,
77407
+ getCheckTableSnapshotKey as c2,
77408
+ getParseRuleConfig as c3,
77409
+ getReinspectionDate as c4,
77410
+ getRenderedRuntimeTableCell as c5,
77411
+ handleOldConfig as c6,
77412
+ hasAnyCheckTableSnapshot as c7,
77413
+ hasByTableCheckTableSnapshot as c8,
77414
+ hasSharedCheckTableSnapshot as c9,
77415
+ SCAN_ROW_CONTENT_FIELDS as cA,
77416
+ F$7 as cB,
77417
+ runRowHandler as cC,
77418
+ F$a as cD,
77419
+ F$9 as cE,
77420
+ FILL_FROM_SOURCE_PRODUCT_OPTION as cF,
77421
+ FILL_FROM_TARGET_MATERIAL_NO_OPTION as cG,
77422
+ FILL_FROM_INVENTORY_OPTION$2 as cH,
77423
+ FILL_FROM_PART_OPTION as cI,
77424
+ FILL_FROM_INVENTORY_OPTION$3 as cJ,
77425
+ TABLE_TYPE$b as cK,
77426
+ FILL_FROM_INVENTORY_OPTION$1 as cL,
77427
+ INVENTORY_BASE_FIELDS as cM,
77428
+ resolveGroupByWarehouse as cN,
77429
+ AUTO_LOAD_READONLY_SELECT_FIELDS as cO,
77430
+ buildFillFromInventoryOption as cP,
77431
+ resolveStocktakeInventoryApi as cQ,
77432
+ F$5 as cR,
77433
+ FILL_FROM_INVENTORY_OPTION as cS,
77434
+ LOCKED_INPUT_FIELDS as cT,
77435
+ composeProductionLotListQuery as cU,
77436
+ F as cV,
77437
+ isProductManuallyEditable as cW,
77438
+ applyFillFromMfgOrderOption as cX,
77439
+ applyFillFromOption as cY,
77440
+ applyFillFromProductOption as cZ,
77441
+ MATERIAL_CONTAINER_ID as c_,
77442
+ isMedProSuite as ca,
77443
+ isTableRowKeyMatch as cb,
77444
+ jsonSchemaUtils as cc,
77445
+ judgeUnique as cd,
77446
+ migrateDiagonalDirectionToVertex as ce,
77447
+ requestMedProCheckDsData as cf,
77448
+ requestNonMedProCheckDsData as cg,
77449
+ sqlUtils as ch,
77450
+ stockCheck as ci,
77451
+ useOnlineFormActionButton as cj,
77452
+ getFieldPlaceholder as ck,
77453
+ FRONT_ROW_KEY as cl,
77454
+ resetTableRowIdentity as cm,
77455
+ q as cn,
77456
+ QUICK_FILL_ALLOWED_FIELDS as co,
77457
+ groupFixedTableRows as cp,
77458
+ processQuickFillRows as cq,
77459
+ getIsGroupEmpty as cr,
77460
+ getAugmentedNamespace as cs,
77461
+ CardControlEnum as ct,
77462
+ EntityModelTypeEnum as cu,
77463
+ RecordNoGenerateEnum as cv,
77464
+ TagTypeEnum as cw,
77465
+ F$3 as cx,
77466
+ FILL_FROM_TARGET_PRODUCT_OPTION as cy,
77467
+ F$6 as cz,
78038
77468
  getBusinessProfileByRefModelType as d,
78039
- nextCell as d$,
78040
- FILL_FROM_INVENTORY_OPTION$3 as d0,
78041
- TABLE_TYPE$b as d1,
78042
- FILL_FROM_INVENTORY_OPTION$1 as d2,
78043
- INVENTORY_BASE_FIELDS as d3,
78044
- resolveGroupByWarehouse as d4,
78045
- AUTO_LOAD_READONLY_SELECT_FIELDS as d5,
78046
- buildFillFromInventoryOption as d6,
78047
- resolveStocktakeInventoryApi as d7,
78048
- F$5 as d8,
78049
- FILL_FROM_INVENTORY_OPTION as d9,
78050
- isStretchPlugin as dA,
78051
- AutoSizeColumnPlugin as dB,
78052
- FilterPlugin as dC,
78053
- ExportFilePlugin as dD,
78054
- SortingPlugin as dE,
78055
- ColumnMovePlugin as dF,
78056
- ThemeService as dG,
78057
- h as dH,
78058
- Host as dI,
78059
- getElement as dJ,
78060
- BasePlugin as dK,
78061
- reduce as dL,
78062
- columnTypes as dM,
78063
- debounce$1 as dN,
78064
- RESIZE_INTERVAL as dO,
78065
- DimensionStore as dP,
78066
- gatherTrimmedItems as dQ,
78067
- getColumnSizes as dR,
78068
- getItemByIndex as dS,
78069
- DataStore as dT,
78070
- getSourceItem as dU,
78071
- getSourceItemVirtualIndexByProp as dV,
78072
- getColumnType as dW,
78073
- setSourceByPhysicalIndex as dX,
78074
- setSourceByVirtualIndex as dY,
78075
- SelectionStore as dZ,
78076
- cropCellToMax as d_,
78077
- LOCKED_INPUT_FIELDS as da,
78078
- composeProductionLotListQuery as db,
78079
- F as dc,
78080
- isProductManuallyEditable as dd,
78081
- applyFillFromMfgOrderOption as de,
78082
- applyFillFromOption as df,
78083
- applyFillFromProductOption as dg,
78084
- MATERIAL_CONTAINER_ID as dh,
78085
- F$c as di,
78086
- PRODUCT_QUICK_SEARCH_FIELDS as dj,
78087
- PRODUCT_QUICK_SEARCH_EXP as dk,
78088
- isProductManuallyEditable$1 as dl,
78089
- applyFillFromMaterialNoOption as dm,
78090
- applyFillFromProductOption$1 as dn,
78091
- F$b as dp,
78092
- FILL_FROM_INVENTORY_OPTION$4 as dq,
78093
- registerInstance as dr,
78094
- createEvent as ds,
78095
- getColumnByProp as dt,
78096
- timeout as du,
78097
- getVisibleSourceItem as dv,
78098
- getColumns as dw,
78099
- rowTypes as dx,
78100
- GroupingRowPlugin as dy,
78101
- StretchColumn as dz,
77469
+ CELL_HANDLER_CLASS as d$,
77470
+ PRODUCT_QUICK_SEARCH_FIELDS as d0,
77471
+ PRODUCT_QUICK_SEARCH_EXP as d1,
77472
+ isProductManuallyEditable$1 as d2,
77473
+ applyFillFromMaterialNoOption as d3,
77474
+ applyFillFromProductOption$1 as d4,
77475
+ F$b as d5,
77476
+ FILL_FROM_INVENTORY_OPTION$4 as d6,
77477
+ registerInstance as d7,
77478
+ createEvent as d8,
77479
+ getColumnByProp as d9,
77480
+ DataStore as dA,
77481
+ getSourceItem as dB,
77482
+ getSourceItemVirtualIndexByProp as dC,
77483
+ getColumnType as dD,
77484
+ setSourceByPhysicalIndex as dE,
77485
+ setSourceByVirtualIndex as dF,
77486
+ SelectionStore as dG,
77487
+ cropCellToMax as dH,
77488
+ nextCell as dI,
77489
+ isRowType as dJ,
77490
+ ViewportStore as dK,
77491
+ AndOrButton as dL,
77492
+ ReorderButton as dM,
77493
+ TrashButton as dN,
77494
+ isFilterBtn as dO,
77495
+ ColumnService as dP,
77496
+ MOBILE_CLASS as dQ,
77497
+ SELECTION_BORDER_CLASS as dR,
77498
+ getCellData as dS,
77499
+ getCellEditor as dT,
77500
+ getRange as dU,
77501
+ isRangeSingleCell as dV,
77502
+ codesLetter as dW,
77503
+ calculateRowHeaderSize as dX,
77504
+ ROW_HEADER_TYPE as dY,
77505
+ getScrollbarSize as dZ,
77506
+ FOCUS_CLASS as d_,
77507
+ timeout as da,
77508
+ getVisibleSourceItem as db,
77509
+ getColumns as dc,
77510
+ rowTypes as dd,
77511
+ GroupingRowPlugin as de,
77512
+ StretchColumn as df,
77513
+ isStretchPlugin as dg,
77514
+ AutoSizeColumnPlugin as dh,
77515
+ FilterPlugin as di,
77516
+ ExportFilePlugin as dj,
77517
+ SortingPlugin as dk,
77518
+ ColumnMovePlugin as dl,
77519
+ ThemeService as dm,
77520
+ h as dn,
77521
+ Host as dp,
77522
+ getElement as dq,
77523
+ BasePlugin as dr,
77524
+ reduce as ds,
77525
+ columnTypes as dt,
77526
+ debounce$1 as du,
77527
+ RESIZE_INTERVAL as dv,
77528
+ DimensionStore as dw,
77529
+ gatherTrimmedItems as dx,
77530
+ getColumnSizes as dy,
77531
+ getItemByIndex as dz,
78102
77532
  expandAutofillTemplates as e,
78103
- isRowType as e0,
78104
- ViewportStore as e1,
78105
- AndOrButton as e2,
78106
- ReorderButton as e3,
78107
- TrashButton as e4,
78108
- isFilterBtn as e5,
78109
- ColumnService as e6,
78110
- MOBILE_CLASS as e7,
78111
- SELECTION_BORDER_CLASS as e8,
78112
- getCellData as e9,
78113
- isRowDragService as eA,
78114
- DRAG_ICON_CLASS as eB,
78115
- DRAGGABLE_CLASS as eC,
78116
- getCellDataParsed as eD,
78117
- GROUP_EXPAND_EVENT as eE,
78118
- isGrouping as eF,
78119
- HEADER_ROW_CLASS as eG,
78120
- HEADER_ACTUAL_ROW_CLASS as eH,
78121
- ROW_FOCUSED_CLASS as eI,
78122
- HEADER_SORTABLE_CLASS as eJ,
78123
- MIN_COL_SIZE as eK,
78124
- FilterButton as eL,
78125
- HeaderCellRenderer as eM,
78126
- HEADER_CLASS as eN,
78127
- getCellEditor as ea,
78128
- getRange as eb,
78129
- isRangeSingleCell as ec,
78130
- codesLetter as ed,
78131
- calculateRowHeaderSize as ee,
78132
- ROW_HEADER_TYPE as ef,
78133
- getScrollbarSize as eg,
78134
- FOCUS_CLASS as eh,
78135
- CELL_HANDLER_CLASS as ei,
78136
- TMP_SELECTION_BG_CLASS as ej,
78137
- getItemByPosition as ek,
78138
- EDIT_INPUT_WR as el,
78139
- keyValues as em,
78140
- isObject as en,
78141
- DRAGG_TEXT as eo,
78142
- PSEUDO_GROUP_ITEM as ep,
78143
- GROUP_EXPANDED as eq,
78144
- GROUP_DEPTH as er,
78145
- GROUP_EXPAND_BTN as es,
78146
- DATA_ROW as et,
78147
- isGroupingColumn as eu,
78148
- GROUP_COLUMN_PROP as ev,
78149
- getCellRaw as ew,
78150
- DATA_COL as ex,
78151
- CELL_CLASS as ey,
78152
- Build as ez,
77533
+ TMP_SELECTION_BG_CLASS as e0,
77534
+ getItemByPosition as e1,
77535
+ EDIT_INPUT_WR as e2,
77536
+ keyValues as e3,
77537
+ isObject as e4,
77538
+ DRAGG_TEXT as e5,
77539
+ PSEUDO_GROUP_ITEM as e6,
77540
+ GROUP_EXPANDED as e7,
77541
+ GROUP_DEPTH as e8,
77542
+ GROUP_EXPAND_BTN as e9,
77543
+ DATA_ROW as ea,
77544
+ isGroupingColumn as eb,
77545
+ GROUP_COLUMN_PROP as ec,
77546
+ getCellRaw as ed,
77547
+ DATA_COL as ee,
77548
+ CELL_CLASS as ef,
77549
+ Build as eg,
77550
+ isRowDragService as eh,
77551
+ DRAG_ICON_CLASS as ei,
77552
+ DRAGGABLE_CLASS as ej,
77553
+ getCellDataParsed as ek,
77554
+ GROUP_EXPAND_EVENT as el,
77555
+ isGrouping as em,
77556
+ HEADER_ROW_CLASS as en,
77557
+ HEADER_ACTUAL_ROW_CLASS as eo,
77558
+ ROW_FOCUSED_CLASS as ep,
77559
+ HEADER_SORTABLE_CLASS as eq,
77560
+ MIN_COL_SIZE as er,
77561
+ FilterButton as es,
77562
+ HeaderCellRenderer as et,
77563
+ HEADER_CLASS as eu,
78153
77564
  resolveAutofillToField as f,
78154
77565
  getAllDataProfiles as g,
78155
77566
  SubTableType as h,