@gct-paas/excel 0.1.40-beta.3 → 0.1.40-beta.5
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/{BaseComponent-B9o59n-h.js → BaseComponent-BlDgF4NL.js} +2 -2
- package/dist/{VueVideoPlayer-CAWYWBHi.js → VueVideoPlayer-abpwAqu3.js} +2 -2
- package/dist/{align-editor-a4DQt4Un.js → align-editor-BdF6r-Gs.js} +1 -1
- package/dist/{barcode-design-CBqUEPYu.js → barcode-design-Dqzu8TED.js} +2 -2
- package/dist/base/index.es.js +291 -205
- package/dist/{diagonal-design-u23896Ky.js → diagonal-design-OOLJ1YWE.js} +2 -2
- package/dist/{dynamic-table-action-BWI4Gaqi.js → dynamic-table-action-C__4AVW6.js} +175 -95
- package/dist/{dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BvrrN6te.js → dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BAl7OidW.js} +654 -405
- package/dist/{edit.utils-CXmmCnxE-XxpC8ALV.js → edit.utils-CXmmCnxE-CaVD32MC.js} +1 -1
- package/dist/excel.css +345 -178
- package/dist/{exceljs.min-DfbB110X.js → exceljs.min-C3uJ_Ieg.js} +2 -2
- package/dist/{font-editor-BtSCLMrM.js → font-editor-BZvGZaYO.js} +3 -3
- package/dist/{image-design-CtE-Lw7N.js → image-design-Dt_97Q--.js} +2 -2
- package/dist/{index-Ca9TLzUh.js → index--9zZnmyE.js} +1 -1
- package/dist/{index-ixQwAcB1.js → index-6_pgVPOb.js} +860 -488
- package/dist/{index-CPTGioxl.js → index-B2xCe29Z.js} +1 -1
- package/dist/{index-DdWefZMa.js → index-BDvLu-0F.js} +2 -2
- package/dist/{index-DeHX7rte.js → index-BGHQz2Uj.js} +50 -3
- package/dist/{index-CAdDeEzJ.js → index-BOehk-Mo.js} +2 -2
- package/dist/{index-BRQkrFQ9.js → index-BcSq5laa.js} +2 -2
- package/dist/{index-CL9K9orM.js → index-Bes3atoZ.js} +2 -2
- package/dist/{index-BfBuxgcp.js → index-Bn4BqmG_.js} +2 -2
- package/dist/{index-51LtNdZ2.js → index-Bxdq78c9.js} +1 -1
- package/dist/{index-I1r5pfu5.js → index-C-wSYnoD.js} +2 -2
- package/dist/{index-BGAcYDx-.js → index-CD04dkRd.js} +1 -1
- package/dist/{index-CeEhYXl9.js → index-CKnArHCM.js} +2 -2
- package/dist/{index-CIa37rQm.js → index-CMzci3SX.js} +2 -2
- package/dist/{index-BC8hQ4vo.js → index-CVJadZzs.js} +2 -2
- package/dist/{index-CpPk8P3L.js → index-Cvj6_0dy.js} +1 -1
- package/dist/{index-Bnb70qEi.js → index-CwvVx_5V.js} +3 -3
- package/dist/{index-BKXb3VJc.js → index-Cy17m87b.js} +2 -2
- package/dist/{index-7aS5L4ot.js → index-Cy3658Zd.js} +3 -3
- package/dist/{index-Bc61F6Hm.js → index-D2bXGJMB.js} +2 -2
- package/dist/{index-Dyomjz3y.js → index-D4lTMizD.js} +2 -2
- package/dist/{index-731OYkrc.js → index-DF5OI_Xj.js} +3 -3
- package/dist/{index-CdHVHaxO.js → index-DJqTfkOe.js} +2 -2
- package/dist/{index-BP-LhXXV.js → index-DLx-4gQ_.js} +4 -4
- package/dist/{index-DVEe11uM.js → index-DMVoiSyn.js} +1 -1
- package/dist/{index-IVc1dOet.js → index-DVFXRZRw.js} +3 -3
- package/dist/{index-9S48hpoJ.js → index-DbN8jrOK.js} +2 -2
- package/dist/{index-CVsoaxTR.js → index-DfAWRc7u.js} +2 -2
- package/dist/{index-B0cdcIWq.js → index-DgvOxMoA.js} +2 -2
- package/dist/{index-BFg5eUdY.js → index-DhJQOZHh.js} +1 -1
- package/dist/{index-BMoz_QhA.js → index-DiZHDEas.js} +1 -1
- package/dist/{index-CYLAVQfT.js → index-DzAPpHun.js} +2 -2
- package/dist/{index-aNV9T6LI.js → index-Lrse9db3.js} +2 -2
- package/dist/{index-3WwCV4xR.js → index-NiQurze3.js} +1 -1
- package/dist/{index-DNj0vFvx.js → index-ZBaLDzvn.js} +1 -1
- package/dist/index.es.js +12 -10
- package/dist/{mb-render-Bs9S9oFn.js → mb-render-CDFmykM_.js} +1 -1
- package/dist/{online-form-model-select.vue_vue_type_script_setup_true_name_online-form-model-select_lang-CRyGHP7k.js → online-form-model-select.vue_vue_type_script_setup_true_name_online-form-model-select_lang-Db5Hce6z.js} +8 -1
- package/dist/{pagination-design-CmbsdlMe.js → pagination-design-Dz7y8YKu.js} +2 -2
- package/dist/paper-widget-design-BlIbv2tj.js +4 -0
- package/dist/{print-runtime-instance-DQysbz5n.js → print-runtime-instance-Bq1p758u.js} +1 -1
- package/dist/{print-snapshot-renderer-DWHjMsOC.js → print-snapshot-renderer-BWVZ-Lql.js} +3 -3
- package/dist/{qrcode-design-CX0_2mLC.js → qrcode-design-Dq0tczvD.js} +1 -1
- package/dist/{revo-grid.entry-DbmWFi7p.js → revo-grid.entry-BKZT_dju.js} +1 -1
- package/dist/{revogr-attribution_7.entry-BWQDu7fq.js → revogr-attribution_7.entry-CXdkYl1q.js} +3 -3
- package/dist/{revogr-clipboard_3.entry-BtTYHFZi.js → revogr-clipboard_3.entry-Dq9k6E4q.js} +2 -2
- package/dist/{revogr-data_4.entry-CWPXyZ7g.js → revogr-data_4.entry-CpBkj9S_.js} +2 -2
- package/dist/{revogr-filter-panel.entry-5gYct0XI.js → revogr-filter-panel.entry-Bu5hYWK7.js} +1 -1
- package/dist/seal-design-LHZWDjEb.js +4 -0
- package/dist/{serialnumber-design-aSqL4gX6.js → serialnumber-design-DUqW6M9C.js} +1 -1
- package/dist/shared/index.es.js +26 -24
- package/dist/{single-field-drop-C67wLHxK.js → single-field-drop-MXmkrdjF.js} +2 -2
- package/dist/{size-editor-BHGTPLir.js → size-editor-DCVa84rA.js} +1 -1
- package/dist/src/domain/table/business/material/material-balance/profile/fields.d.ts +2 -0
- package/dist/src/domain/table/business/material/material-consume/profile/fields.d.ts +2 -0
- package/dist/src/domain/table/business/material/material-substitution/profile/field-keys.d.ts +13 -0
- package/dist/src/domain/table/business/warehouse/shared/autofill-source-labels.d.ts +19 -0
- package/dist/src/domain/table/design/autofill-expander.d.ts +2 -0
- package/dist/src/domain/table/design/hooks/on-field-attach.d.ts +6 -0
- package/dist/src/domain/table/index.d.ts +1 -1
- package/dist/src/domain/table/types.d.ts +2 -0
- package/dist/src/index.d.ts +2 -0
- package/dist/src/nocode-base/src/core/sub-table/sub-table-core.d.ts +2 -1
- package/dist/src/nocode-base/src/hooks/inspection-module-qty.d.ts +4 -0
- package/dist/src/nocode-base/src/hooks/material-consume/material-consume-table-controller.d.ts +1 -0
- package/dist/src/nocode-base/src/hooks/material-consume/tmpl-bom-controller.d.ts +12 -7
- package/dist/src/nocode-base/src/hooks/render-page/initialize-runtime.d.ts +2 -7
- package/dist/src/nocode-base/src/hooks/render-page/types.d.ts +4 -1
- package/dist/src/nocode-base/src/hooks/useRenderPageFactory.d.ts +4 -6
- package/dist/src/nocode-base/src/hooks/validation/createValidateFactory.d.ts +1 -0
- package/dist/src/nocode-base/src/runtime/runtime-field-initializer.d.ts +1 -0
- package/dist/src/nocode-base/src/types/render/sub-table-render.d.ts +5 -1
- package/dist/src/nocode-web-render/src/render/sub-table/common/inventory-scan-columns.d.ts +6 -0
- package/dist/src/online-form/src/views/designer/conversions/normalize-paper-grid.d.ts +3 -0
- package/dist/src/online-form/src/views/designer/utils/placed-fields.d.ts +9 -0
- package/dist/src/online-form/src/views/designer/utils/template-placed-fields.d.ts +7 -0
- package/dist/src/shared/components/Signature/logic/index.d.ts +14 -0
- package/dist/src/shared/enum/index.d.ts +2 -0
- package/dist/src/shared/enum/product-type.d.ts +9 -0
- package/dist/src/shared/enum/production-identification.d.ts +19 -0
- package/dist/{sub-table-factory-DTtDvr17.js → sub-table-factory-BBiAj7oz.js} +13 -62
- package/dist/{text-design-Dz0Qf2O3.js → text-design-BfXr3TcH.js} +2 -2
- package/dist/{throttle-Cpk1LoGk-CgtsG2CV.js → throttle-Cpk1LoGk-BtY6yO1U.js} +1 -1
- package/dist/{timediff-design-D9JfNqH8.js → timediff-design-BF-mVD2d.js} +1 -1
- package/dist/{trace-like-wrapper-BXgr0Uv3.js → trace-like-wrapper-2AsEoSS7.js} +2 -2
- package/dist/{value-editor.vue_vue_type_style_index_0_lang-doohzADY.js → value-editor.vue_vue_type_style_index_0_lang-D8_zt9JM.js} +2 -2
- package/dist/web-render/index.es.js +3 -3
- package/dist/{widget-barcode-XF3nCU9v.js → widget-barcode-BMnwSzpx.js} +4 -4
- package/dist/{widget-diagonal-DSym7fks.js → widget-diagonal-iuAFZn-R.js} +3 -3
- package/dist/{widget-image-CmjwkVs7.js → widget-image-sZeIt4K6.js} +5 -5
- package/dist/{widget-line-BX64xVfU.js → widget-line-izrJUAAT.js} +2 -2
- package/dist/{widget-pagination-BV89Lvjt.js → widget-pagination-CTANdU2l.js} +5 -5
- package/dist/{widget-power-DoSfQv92.js → widget-power-OZD7bTxW.js} +3 -3
- package/dist/{widget-qrcode-UGcRLC56.js → widget-qrcode-xvyklot3.js} +3 -3
- package/dist/{widget-rangelimit-CUHD__1H.js → widget-rangelimit-BZhTuRkT.js} +3 -3
- package/dist/{widget-serialnumber-CAkZR5Xl.js → widget-serialnumber-BwUHV475.js} +1 -1
- package/dist/{widget-text-DtYVTThu.js → widget-text-B8MzTxa3.js} +5 -5
- package/dist/{widget-timediff-DX_IoCMO.js → widget-timediff-YAH8bbso.js} +2 -2
- package/package.json +1 -1
- package/dist/paper-widget-design-DIhsk1I9.js +0 -4
- package/dist/seal-design-BhzgwVju.js +0 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, computed, openBlock, createBlock } from "vue";
|
|
2
|
-
import { h as useModelFields, D as Diagonal } from "./index-
|
|
3
|
-
import {
|
|
2
|
+
import { h as useModelFields, D as Diagonal } from "./index-6_pgVPOb.js";
|
|
3
|
+
import { ap as resolveDiagonalVertex, a9 as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BAl7OidW.js";
|
|
4
4
|
import "lodash-es";
|
|
5
5
|
import "dayjs";
|
|
6
6
|
import "@gct-paas/form-base";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { reactive, toRaw, computed, watch, onScopeDispose, inject, h, shallowReactive, markRaw, ref, nextTick, toRef, provide, defineComponent, openBlock, createElementBlock, mergeProps, unref, createElementVNode, normalizeClass, renderSlot, createCommentVNode, createVNode, toDisplayString, Fragment, renderList, onUnmounted, isVNode, onMounted, onBeforeMount, resolveComponent, createBlock, withCtx, createTextVNode } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { aj as CellWidgetViewState, F as FIELD_TYPE, b9 as RenderModeEnum, Z as FormTypeEnum, bF as BpmnNodeTypeEnum, cy as getFieldPlaceholder, bX as MobileFillTypeEnum, C as ComponentTypeEnum, a0 as PlatformEnum, cz as isReferenceOptionActive, p as api, bv as uuid2, c5 as calcUtils, bk as findRuntimeTableRow, c9 as ensureTableRowKeys, c2 as bindRuntimeTableColumns, bj as getRowId, cA as FRONT_ROW_KEY, co as isTableRowKeyMatch, bx as isAttachFieldActive, cB as filterRulesByTrigger, cC as isEmptyValue$1, c6 as decodeTableCellRowKey, c8 as ensureFrontRowKey, b1 as getParseRuleInfo, aH as transformUtils, aY as materialCheck, aZ as getLotLockedReason, a_ as validateReinspectionDate, bo as FormulaRuleFieldKeyEnum, h as SubTableType, b2 as getParseRuleValue, cD as buildError, I as CreateType, bm as findRuntimeParentRow, aK as Dependency_ENUM, aJ as ASSIGNMENTSTRATEGY_ENUM, bK as commonUtils, aO as DeviceLink, a9 as _export_sfc, ci as getRenderedRuntimeTableCell, A as CellType, cs as relocateDeletedRowsToEnd, cE as resetTableRowIdentity, K as useModal, cF as q, cG as QUICK_FILL_ALLOWED_FIELDS, cH as groupFixedTableRows, cI as processQuickFillRows, cJ as getIsGroupEmpty } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BAl7OidW.js";
|
|
3
3
|
import { cloneDeep, isEmpty, has, pickBy, isNil, mergeWith, omit, last, pick, merge } from "lodash-es";
|
|
4
4
|
import dayjs from "dayjs";
|
|
5
5
|
import { a as useNamespace, I as Icon } from "./AntdIcon-DCIaV352.js";
|
|
6
6
|
import "@gct-paas/form-base";
|
|
7
7
|
import { Modal, message } from "ant-design-vue";
|
|
8
|
-
import { u as useFormModel } from "./mb-render-
|
|
8
|
+
import { u as useFormModel } from "./mb-render-CDFmykM_.js";
|
|
9
9
|
var MaterialConsumptionPatternEnum = /* @__PURE__ */ ((MaterialConsumptionPatternEnum2) => {
|
|
10
10
|
MaterialConsumptionPatternEnum2["RECORD"] = "record";
|
|
11
11
|
MaterialConsumptionPatternEnum2["BOM"] = "bom";
|
|
@@ -18,6 +18,61 @@ function normalizeFieldWidth(value, fallback = DEFAULT_FIELD_WIDTH) {
|
|
|
18
18
|
const width = Number(value);
|
|
19
19
|
return Number.isFinite(width) && width >= 0 ? width : fallback;
|
|
20
20
|
}
|
|
21
|
+
function isBlank$1(value) {
|
|
22
|
+
return value === void 0 || value === null || value === "";
|
|
23
|
+
}
|
|
24
|
+
function matchFieldKey(match, fieldKey) {
|
|
25
|
+
if (!match.fieldKey) return false;
|
|
26
|
+
const keys = Array.isArray(match.fieldKey) ? match.fieldKey : [match.fieldKey];
|
|
27
|
+
return keys.includes(fieldKey);
|
|
28
|
+
}
|
|
29
|
+
function findFieldProfile(profile, fieldKey) {
|
|
30
|
+
return profile?.fields?.find((item) => matchFieldKey(item.match, fieldKey));
|
|
31
|
+
}
|
|
32
|
+
function buildDefaultMapFromProfile(profile, paramsConfig) {
|
|
33
|
+
const result = {};
|
|
34
|
+
if (!profile?.contextAssignments?.length) return result;
|
|
35
|
+
const assignments = profile.contextAssignments.filter(
|
|
36
|
+
(item) => item.when === "onRowInit"
|
|
37
|
+
);
|
|
38
|
+
for (const assignment of assignments) {
|
|
39
|
+
const value = paramsConfig?.[assignment.paramKey];
|
|
40
|
+
if (isBlank$1(value)) continue;
|
|
41
|
+
result[assignment.fieldKey] = value;
|
|
42
|
+
}
|
|
43
|
+
return result;
|
|
44
|
+
}
|
|
45
|
+
function buildFieldStatusFromProfile(params) {
|
|
46
|
+
const { profile, field } = params;
|
|
47
|
+
const result = {};
|
|
48
|
+
if (!profile) return result;
|
|
49
|
+
const fieldProfile = findFieldProfile(profile, field);
|
|
50
|
+
if (fieldProfile?.defaultProps) {
|
|
51
|
+
if (fieldProfile.defaultProps.disabled === true || fieldProfile.defaultProps.fieldDisabled === true) {
|
|
52
|
+
result.disabled = true;
|
|
53
|
+
}
|
|
54
|
+
if (fieldProfile.defaultProps.readonly === true || fieldProfile.defaultProps.fieldReadonly === true) {
|
|
55
|
+
result.readonly = true;
|
|
56
|
+
}
|
|
57
|
+
if (fieldProfile.defaultProps.required === false) {
|
|
58
|
+
result.required = false;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
const rules2 = (profile.runtimeRules ?? []).filter(
|
|
62
|
+
(rule) => !rule.when || rule.when === "always" || rule.when === "onRowInit"
|
|
63
|
+
);
|
|
64
|
+
for (const rule of rules2) {
|
|
65
|
+
if (!rule.fields.includes(field)) continue;
|
|
66
|
+
if (rule.effect.readonly) result.readonly = true;
|
|
67
|
+
if (rule.effect.disabled) result.disabled = true;
|
|
68
|
+
if (rule.effect.required !== void 0) result.required = rule.effect.required;
|
|
69
|
+
}
|
|
70
|
+
return result;
|
|
71
|
+
}
|
|
72
|
+
function getRowHandlersForFieldChange(profile, changedField) {
|
|
73
|
+
if (!profile?.rowHandlers?.length) return [];
|
|
74
|
+
return profile.rowHandlers.filter((item) => item.when === "onFieldChange").filter((item) => !item.watch?.length || item.watch.includes(changedField)).map((item) => item.handler);
|
|
75
|
+
}
|
|
21
76
|
function hasSignatureValue(value) {
|
|
22
77
|
if (value === void 0 || value === null) return false;
|
|
23
78
|
if (typeof value !== "string") {
|
|
@@ -5260,7 +5315,8 @@ class MaterialConsumeTableController {
|
|
|
5260
5315
|
constructor(tmplBomController, tmplBom, options = {}) {
|
|
5261
5316
|
this.tmplBomController = tmplBomController;
|
|
5262
5317
|
this.tmplBom = tmplBom;
|
|
5263
|
-
if (!options.printOnly
|
|
5318
|
+
if (!options.printOnly && this.hasFormInstance)
|
|
5319
|
+
this.initScanRule(this.tmplBom.barcode_parsing_rules_id_);
|
|
5264
5320
|
this.scanParamType = this.tmplBom.scan_param_type_;
|
|
5265
5321
|
markRaw(this);
|
|
5266
5322
|
this.bomEntriesValidator = new BomEntriesValidator(
|
|
@@ -5323,6 +5379,9 @@ class MaterialConsumeTableController {
|
|
|
5323
5379
|
get mcPattern() {
|
|
5324
5380
|
return this.tmplBom.material_consumption_pattern_ ?? this.tmplBomController.defaultMCPattern;
|
|
5325
5381
|
}
|
|
5382
|
+
get hasFormInstance() {
|
|
5383
|
+
return this.tmplBomController.hasFormInstance;
|
|
5384
|
+
}
|
|
5326
5385
|
/**
|
|
5327
5386
|
* 解析规则数据对象
|
|
5328
5387
|
*/
|
|
@@ -5575,6 +5634,10 @@ class MaterialConsumeTableController {
|
|
|
5575
5634
|
}
|
|
5576
5635
|
const isRecordPattern = this.mcPattern === MaterialConsumptionPatternEnum.RECORD && !this.tmplBom.personal_bom_enabled_;
|
|
5577
5636
|
console.log("parseScanStr", data);
|
|
5637
|
+
if (!data.lot && !data.uniqueCode) {
|
|
5638
|
+
this.error($t("sys.edhr.mcTable.lotOrUniqueCodeRequired"));
|
|
5639
|
+
return;
|
|
5640
|
+
}
|
|
5578
5641
|
const arr = await materialCheck({
|
|
5579
5642
|
material_no_: data.materialCode,
|
|
5580
5643
|
production_identification_name_: data.lot,
|
|
@@ -6069,7 +6132,16 @@ class MaterialConsumeTableController {
|
|
|
6069
6132
|
this.error(msg);
|
|
6070
6133
|
return;
|
|
6071
6134
|
}
|
|
6072
|
-
if (!value)
|
|
6135
|
+
if (!value) {
|
|
6136
|
+
if (row.product_id_ && !this.isCustomRequiredQty) {
|
|
6137
|
+
const util = this.bomEntriesValidator.findUtilByProductId(row.product_id_);
|
|
6138
|
+
if (util) {
|
|
6139
|
+
row.qty_required_ = util.total;
|
|
6140
|
+
}
|
|
6141
|
+
}
|
|
6142
|
+
this.updateDerivedQtyFields();
|
|
6143
|
+
return;
|
|
6144
|
+
}
|
|
6073
6145
|
try {
|
|
6074
6146
|
await validateReinspectionDate({
|
|
6075
6147
|
product_id_: option.product_id_ ?? row.product_id_,
|
|
@@ -6093,6 +6165,7 @@ class MaterialConsumeTableController {
|
|
|
6093
6165
|
const qty = oldGroupId && row.bom_entry_id_ === oldGroupId ? oldRequiredQty : this.getCustomGroupRequiredQty(row);
|
|
6094
6166
|
this.setCustomGroupRequiredQty(row, qty);
|
|
6095
6167
|
}
|
|
6168
|
+
this.updateDerivedQtyFields();
|
|
6096
6169
|
} else if (field === "qty_") {
|
|
6097
6170
|
this.updateDerivedQtyFields();
|
|
6098
6171
|
}
|
|
@@ -6727,11 +6800,12 @@ class SubTableCore {
|
|
|
6727
6800
|
/**
|
|
6728
6801
|
* 扫码多条候选时选择一行(1 条自动选中)
|
|
6729
6802
|
*/
|
|
6730
|
-
async pickScanRecord(records) {
|
|
6803
|
+
async pickScanRecord(records, options = {}) {
|
|
6731
6804
|
if (!records.length) return void 0;
|
|
6732
6805
|
if (records.length === 1) return records[0];
|
|
6733
6806
|
return this.render.openMultiRowsModal({
|
|
6734
|
-
rows: mapScanRecordsForPicker(records)
|
|
6807
|
+
rows: mapScanRecordsForPicker(records),
|
|
6808
|
+
...options
|
|
6735
6809
|
});
|
|
6736
6810
|
}
|
|
6737
6811
|
/**
|
|
@@ -9006,6 +9080,7 @@ const MaterialConsumeTable = /* @__PURE__ */ defineComponent({
|
|
|
9006
9080
|
}));
|
|
9007
9081
|
};
|
|
9008
9082
|
const handleAction = (action, rowData) => {
|
|
9083
|
+
if (!tableController.hasFormInstance) return;
|
|
9009
9084
|
switch (action) {
|
|
9010
9085
|
case MaterialConsumeActionType.CONFIRM:
|
|
9011
9086
|
tableController.confirm(rowData);
|
|
@@ -9078,6 +9153,7 @@ const MaterialConsumeTable = /* @__PURE__ */ defineComponent({
|
|
|
9078
9153
|
key,
|
|
9079
9154
|
actionValue
|
|
9080
9155
|
}) => {
|
|
9156
|
+
if (!tableController.hasFormInstance) return;
|
|
9081
9157
|
switch (key) {
|
|
9082
9158
|
case "rowEdit":
|
|
9083
9159
|
await tableController.editRow(rowData);
|
|
@@ -10350,112 +10426,116 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
10350
10426
|
});
|
|
10351
10427
|
const DynamicTableAction = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-53d7e66c"]]);
|
|
10352
10428
|
export {
|
|
10353
|
-
|
|
10354
|
-
|
|
10429
|
+
setFormulaParamsConfig as $,
|
|
10430
|
+
getObjectBomProductQuery as A,
|
|
10355
10431
|
BorderTD as B,
|
|
10356
|
-
|
|
10432
|
+
normalizeHistoricalAutofillRow as C,
|
|
10357
10433
|
DEFAULT_BOOLEAN_FIELD_WIDTH as D,
|
|
10358
10434
|
EMPTY_PRODUCT_VERSION_ID as E,
|
|
10359
|
-
|
|
10360
|
-
|
|
10361
|
-
|
|
10362
|
-
|
|
10363
|
-
|
|
10364
|
-
|
|
10365
|
-
|
|
10435
|
+
parseRuntimeFieldPath as F,
|
|
10436
|
+
useStyles as G,
|
|
10437
|
+
useDependency as H,
|
|
10438
|
+
useFieldPresentation as I,
|
|
10439
|
+
useRuntimeEditorFlusher as J,
|
|
10440
|
+
createRuntimeInstanceContext as K,
|
|
10441
|
+
RuntimeInstanceRegistry as L,
|
|
10366
10442
|
MAX_RUNTIME_SHEETS as M,
|
|
10367
10443
|
NCB_PROVIDE as N,
|
|
10368
|
-
|
|
10369
|
-
|
|
10370
|
-
|
|
10444
|
+
RequiredQtyCalcRule as O,
|
|
10445
|
+
DocumentPaper as P,
|
|
10446
|
+
DynamicTableAction as Q,
|
|
10371
10447
|
RuntimeFormStateStore as R,
|
|
10372
10448
|
ScanParamType as S,
|
|
10373
|
-
|
|
10374
|
-
|
|
10375
|
-
|
|
10376
|
-
|
|
10377
|
-
|
|
10378
|
-
|
|
10379
|
-
|
|
10449
|
+
getRuntimeDataFieldId as T,
|
|
10450
|
+
buildRuntimeFieldPath as U,
|
|
10451
|
+
resolveRuntimeFieldProps as V,
|
|
10452
|
+
resolveRuntimeFieldState as W,
|
|
10453
|
+
getRuntimeDependencyOutputKey as X,
|
|
10454
|
+
isRowAddedInCurrentFormChange as Y,
|
|
10455
|
+
MaterialConsumeTableController as Z,
|
|
10380
10456
|
_sfc_main$5 as _,
|
|
10381
10457
|
MAX_RUNTIME_SHEET_TITLE_LENGTH as a,
|
|
10382
|
-
|
|
10383
|
-
|
|
10384
|
-
|
|
10385
|
-
|
|
10386
|
-
|
|
10387
|
-
|
|
10388
|
-
|
|
10389
|
-
|
|
10390
|
-
|
|
10391
|
-
|
|
10392
|
-
|
|
10393
|
-
|
|
10394
|
-
|
|
10395
|
-
|
|
10396
|
-
|
|
10397
|
-
|
|
10398
|
-
|
|
10399
|
-
|
|
10400
|
-
|
|
10401
|
-
|
|
10402
|
-
|
|
10403
|
-
|
|
10404
|
-
|
|
10405
|
-
|
|
10406
|
-
|
|
10407
|
-
|
|
10408
|
-
|
|
10409
|
-
|
|
10410
|
-
|
|
10411
|
-
|
|
10412
|
-
|
|
10413
|
-
|
|
10414
|
-
|
|
10415
|
-
|
|
10416
|
-
|
|
10417
|
-
|
|
10418
|
-
|
|
10419
|
-
|
|
10420
|
-
|
|
10421
|
-
|
|
10422
|
-
|
|
10423
|
-
|
|
10424
|
-
|
|
10425
|
-
|
|
10426
|
-
|
|
10427
|
-
|
|
10428
|
-
|
|
10429
|
-
|
|
10430
|
-
|
|
10431
|
-
|
|
10432
|
-
|
|
10433
|
-
|
|
10434
|
-
|
|
10435
|
-
|
|
10458
|
+
normalizeRuntime as a0,
|
|
10459
|
+
RuntimeSheetService as a1,
|
|
10460
|
+
validateObjectBomQtyOnSubmit as a2,
|
|
10461
|
+
closeValidatorPopovers as a3,
|
|
10462
|
+
enrichFormChangeRowDetails as a4,
|
|
10463
|
+
useMaterialBalance as a5,
|
|
10464
|
+
collectFormChangeFieldLocations as a6,
|
|
10465
|
+
nextFormChangeRowViewHistoryId as a7,
|
|
10466
|
+
DeviceConnector as a8,
|
|
10467
|
+
DocumentLoading as a9,
|
|
10468
|
+
pickObjectFieldKeys as aA,
|
|
10469
|
+
recordSubtableRowAdd as aB,
|
|
10470
|
+
recordSubtableRowDelete as aC,
|
|
10471
|
+
resolveAnnotationFieldLocation as aD,
|
|
10472
|
+
resolveFormChangeRowUi as aE,
|
|
10473
|
+
resolveRowFormChangeMark as aF,
|
|
10474
|
+
setSelectMobileTdId as aG,
|
|
10475
|
+
stripLegacyFormConfigFromPaper as aH,
|
|
10476
|
+
SubTableActionMenuTypeEnum as aI,
|
|
10477
|
+
getMenuByAction as aJ,
|
|
10478
|
+
SubTableActionEnum as aK,
|
|
10479
|
+
resolveScanFillData as aL,
|
|
10480
|
+
buildDefaultMapFromProfile as aM,
|
|
10481
|
+
buildFieldStatusFromProfile as aN,
|
|
10482
|
+
getRowHandlersForFieldChange as aO,
|
|
10483
|
+
getInsertSubMenu as aP,
|
|
10484
|
+
resolveScanAdjustType as aQ,
|
|
10485
|
+
resolveScanQty as aR,
|
|
10486
|
+
toDateOnly as aS,
|
|
10487
|
+
getCopySubMenu as aT,
|
|
10488
|
+
resolveScanParsedValue as aU,
|
|
10489
|
+
isProductBatchEmptyRow as aV,
|
|
10490
|
+
DynamicQuickFillModal as aa,
|
|
10491
|
+
FixedQuickFillModal as ab,
|
|
10492
|
+
FormTmplConfigController as ac,
|
|
10493
|
+
LEGACY_RUNTIME_FORM_CONFIG_KEYS as ad,
|
|
10494
|
+
LEGACY_RUNTIME_SHEET_ID as ae,
|
|
10495
|
+
LEGACY_RUNTIME_SHEET_TITLE as af,
|
|
10496
|
+
MCDataUtil as ag,
|
|
10497
|
+
OCR_MODEL_PRECISION_ENUM_KEY as ah,
|
|
10498
|
+
RuntimeAsyncTaskCoordinator as ai,
|
|
10499
|
+
RuntimeDependencyService as aj,
|
|
10500
|
+
RuntimeFieldRegistry as ak,
|
|
10501
|
+
RuntimeInstanceEventBus as al,
|
|
10502
|
+
RuntimePersistenceCoordinator as am,
|
|
10503
|
+
RuntimeValidationService as an,
|
|
10504
|
+
SubTableCore as ao,
|
|
10505
|
+
buildFormChangeDisplayRows as ap,
|
|
10506
|
+
convertV1Runtime as aq,
|
|
10507
|
+
detailsHaveFormChangeRowOps as ar,
|
|
10508
|
+
extractFormChangeRowDetails as as,
|
|
10509
|
+
getFormChangeRowKey as at,
|
|
10510
|
+
getFormChangeRowOp as au,
|
|
10511
|
+
getSubTableQuickFillInfo as av,
|
|
10512
|
+
isAnnLocationSelected as aw,
|
|
10513
|
+
isBlank as ax,
|
|
10514
|
+
isFormChangeGhostRow as ay,
|
|
10515
|
+
normalizeHistoricalFieldConfig as az,
|
|
10436
10516
|
bindFormulaCacheInvalidation as b,
|
|
10437
10517
|
currentParamsConfig as c,
|
|
10438
10518
|
MULTI_SHEET_SCHEMA_VERSION as d,
|
|
10439
10519
|
createRuntimeDocumentV2 as e,
|
|
10440
|
-
|
|
10520
|
+
findFieldProfile as f,
|
|
10441
10521
|
getBusinessFieldKey as g,
|
|
10442
|
-
|
|
10443
|
-
|
|
10444
|
-
|
|
10445
|
-
|
|
10446
|
-
|
|
10447
|
-
|
|
10522
|
+
normalizeHistoricalBusinessRow as h,
|
|
10523
|
+
DeviceLinkTmplUtil as i,
|
|
10524
|
+
normalizeAIOcrTmpl as j,
|
|
10525
|
+
useWidgetStaticAttrs as k,
|
|
10526
|
+
useRuntimeInstanceServices as l,
|
|
10527
|
+
setSelectAnnotationId as m,
|
|
10448
10528
|
normalizeFieldWidth as n,
|
|
10449
|
-
|
|
10450
|
-
|
|
10451
|
-
|
|
10529
|
+
useRuntimeRowState as o,
|
|
10530
|
+
getObjectBomMaterialLotQuery as p,
|
|
10531
|
+
buildObjectLotExtraQuery as q,
|
|
10452
10532
|
resolveObjectFieldKeys as r,
|
|
10453
10533
|
setSelectValidatorId as s,
|
|
10454
|
-
|
|
10534
|
+
MaterialConsumptionPatternEnum as t,
|
|
10455
10535
|
useFormTmplConfig as u,
|
|
10456
10536
|
validateObjectBomForScan as v,
|
|
10457
|
-
|
|
10458
|
-
|
|
10459
|
-
|
|
10460
|
-
|
|
10537
|
+
resolveObjectBomEntry as w,
|
|
10538
|
+
runWithFillProduct as x,
|
|
10539
|
+
useNocodeFormWidget as y,
|
|
10540
|
+
applyConsumeObjectTraceChange as z
|
|
10461
10541
|
};
|