@gct-paas/excel 0.1.40-beta.4 → 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-BcxRArl9.js → BaseComponent-BlDgF4NL.js} +2 -2
- package/dist/{VueVideoPlayer-DjIr6Duj.js → VueVideoPlayer-abpwAqu3.js} +2 -2
- package/dist/{align-editor-99-Qs6Pu.js → align-editor-BdF6r-Gs.js} +1 -1
- package/dist/{barcode-design-BSkeINVU.js → barcode-design-Dqzu8TED.js} +2 -2
- package/dist/base/index.es.js +120 -75
- package/dist/{diagonal-design-CR7fiPt_.js → diagonal-design-OOLJ1YWE.js} +2 -2
- package/dist/{dynamic-table-action-D8JTGNuH.js → dynamic-table-action-C__4AVW6.js} +2 -2
- package/dist/{dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-CxqmyuOf.js → dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BAl7OidW.js} +275 -253
- package/dist/{edit.utils-CXmmCnxE-5YnG7Mod.js → edit.utils-CXmmCnxE-CaVD32MC.js} +1 -1
- package/dist/excel.css +20 -20
- package/dist/{exceljs.min-Ckn1GGo5.js → exceljs.min-C3uJ_Ieg.js} +2 -2
- package/dist/{font-editor-CIv2e95b.js → font-editor-BZvGZaYO.js} +3 -3
- package/dist/{image-design-Bg1m0JLl.js → image-design-Dt_97Q--.js} +2 -2
- package/dist/{index-DtwSR71M.js → index--9zZnmyE.js} +1 -1
- package/dist/{index-DLZKDd1x.js → index-6_pgVPOb.js} +92 -69
- package/dist/{index-DG8I3apA.js → index-B2xCe29Z.js} +1 -1
- package/dist/{index-DprbnBOa.js → index-BDvLu-0F.js} +2 -2
- package/dist/{index-CsIKJvLT.js → index-BGHQz2Uj.js} +2 -2
- package/dist/{index-CeMM7qev.js → index-BOehk-Mo.js} +2 -2
- package/dist/{index-BA_C4l6u.js → index-BcSq5laa.js} +2 -2
- package/dist/{index-CzgWwoNs.js → index-Bes3atoZ.js} +2 -2
- package/dist/{index-k_OAhCop.js → index-Bn4BqmG_.js} +2 -2
- package/dist/{index-CTyszA6m.js → index-Bxdq78c9.js} +1 -1
- package/dist/{index-CUPuw1ng.js → index-C-wSYnoD.js} +2 -2
- package/dist/{index-0kZW-sd4.js → index-CD04dkRd.js} +1 -1
- package/dist/{index-CeCk3V8r.js → index-CKnArHCM.js} +2 -2
- package/dist/{index-B4XMnrfl.js → index-CMzci3SX.js} +2 -2
- package/dist/{index-CYb8lY4k.js → index-CVJadZzs.js} +2 -2
- package/dist/{index-DbXQsLWI.js → index-Cvj6_0dy.js} +1 -1
- package/dist/{index-rYGo3i42.js → index-CwvVx_5V.js} +3 -3
- package/dist/{index-C8H-5Adw.js → index-Cy17m87b.js} +2 -2
- package/dist/{index-DZxTtwzU.js → index-Cy3658Zd.js} +3 -3
- package/dist/{index-BunphFuS.js → index-D2bXGJMB.js} +2 -2
- package/dist/{index-OHHmkknK.js → index-D4lTMizD.js} +2 -2
- package/dist/{index-mxtsA6kq.js → index-DF5OI_Xj.js} +3 -3
- package/dist/{index-DgRCrbjc.js → index-DJqTfkOe.js} +2 -2
- package/dist/{index-DHvbmtBs.js → index-DLx-4gQ_.js} +4 -4
- package/dist/{index-BzdZIihy.js → index-DMVoiSyn.js} +1 -1
- package/dist/{index-D7DYLntD.js → index-DVFXRZRw.js} +3 -3
- package/dist/{index-DFJ19IKk.js → index-DbN8jrOK.js} +2 -2
- package/dist/{index-Do1A3RoM.js → index-DfAWRc7u.js} +2 -2
- package/dist/{index-CRLydLMf.js → index-DgvOxMoA.js} +2 -2
- package/dist/{index-BIraya7K.js → index-DhJQOZHh.js} +1 -1
- package/dist/{index-BZQrpoEw.js → index-DiZHDEas.js} +1 -1
- package/dist/{index-Cjor8DKp.js → index-DzAPpHun.js} +2 -2
- package/dist/{index-6wZ6Y0W3.js → index-Lrse9db3.js} +2 -2
- package/dist/{index-C7oAVon1.js → index-NiQurze3.js} +1 -1
- package/dist/{index-DN83FHdO.js → index-ZBaLDzvn.js} +1 -1
- package/dist/index.es.js +2 -2
- package/dist/{mb-render-BW27j2qa.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-JuGFe7ao.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-C59mi1du.js → pagination-design-Dz7y8YKu.js} +2 -2
- package/dist/paper-widget-design-BlIbv2tj.js +4 -0
- package/dist/{print-runtime-instance-CT3EaCDJ.js → print-runtime-instance-Bq1p758u.js} +1 -1
- package/dist/{print-snapshot-renderer-Bm-fpHUt.js → print-snapshot-renderer-BWVZ-Lql.js} +3 -3
- package/dist/{qrcode-design-Brx73IFy.js → qrcode-design-Dq0tczvD.js} +1 -1
- package/dist/{revo-grid.entry-CREHbVNI.js → revo-grid.entry-BKZT_dju.js} +1 -1
- package/dist/{revogr-attribution_7.entry-CBUFDouS.js → revogr-attribution_7.entry-CXdkYl1q.js} +3 -3
- package/dist/{revogr-clipboard_3.entry-C9D5KQdr.js → revogr-clipboard_3.entry-Dq9k6E4q.js} +2 -2
- package/dist/{revogr-data_4.entry-DpskbAdh.js → revogr-data_4.entry-CpBkj9S_.js} +2 -2
- package/dist/{revogr-filter-panel.entry-CqdNtCzb.js → revogr-filter-panel.entry-Bu5hYWK7.js} +1 -1
- package/dist/seal-design-LHZWDjEb.js +4 -0
- package/dist/{serialnumber-design-CJM0MP9w.js → serialnumber-design-DUqW6M9C.js} +1 -1
- package/dist/shared/index.es.js +10 -8
- package/dist/{single-field-drop-B82L3Pe3.js → single-field-drop-MXmkrdjF.js} +2 -2
- package/dist/{size-editor-CybxvVWn.js → size-editor-DCVa84rA.js} +1 -1
- package/dist/src/nocode-base/src/hooks/inspection-module-qty.d.ts +4 -0
- 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/runtime/runtime-field-initializer.d.ts +1 -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-BrwMeqWM.js → sub-table-factory-BBiAj7oz.js} +4 -4
- package/dist/{text-design-Qem3wirw.js → text-design-BfXr3TcH.js} +2 -2
- package/dist/{throttle-Cpk1LoGk-Bm1w1voP.js → throttle-Cpk1LoGk-BtY6yO1U.js} +1 -1
- package/dist/{timediff-design-CiGukjs9.js → timediff-design-BF-mVD2d.js} +1 -1
- package/dist/{trace-like-wrapper-DrUDJDgX.js → trace-like-wrapper-2AsEoSS7.js} +2 -2
- package/dist/{value-editor.vue_vue_type_style_index_0_lang-DXBstCLM.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-DH30z4yi.js → widget-barcode-BMnwSzpx.js} +4 -4
- package/dist/{widget-diagonal-Bv-Eb2Fi.js → widget-diagonal-iuAFZn-R.js} +3 -3
- package/dist/{widget-image-67Q9gRCG.js → widget-image-sZeIt4K6.js} +5 -5
- package/dist/{widget-line-DP3dKXNd.js → widget-line-izrJUAAT.js} +2 -2
- package/dist/{widget-pagination-B66PcWXU.js → widget-pagination-CTANdU2l.js} +5 -5
- package/dist/{widget-power-yRy8897o.js → widget-power-OZD7bTxW.js} +3 -3
- package/dist/{widget-qrcode-DN3R8N41.js → widget-qrcode-xvyklot3.js} +3 -3
- package/dist/{widget-rangelimit-zWZZMPvn.js → widget-rangelimit-BZhTuRkT.js} +3 -3
- package/dist/{widget-serialnumber-p7wB7-Bz.js → widget-serialnumber-BwUHV475.js} +1 -1
- package/dist/{widget-text-BQO0Rf5A.js → widget-text-B8MzTxa3.js} +5 -5
- package/dist/{widget-timediff-C1VxWKle.js → widget-timediff-YAH8bbso.js} +2 -2
- package/package.json +1 -1
- package/dist/paper-widget-design-BNmIT8FC.js +0 -4
- package/dist/seal-design-XhQfBjxE.js +0 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as normalizeFieldWidth } from "./dynamic-table-action-
|
|
1
|
+
import { n as normalizeFieldWidth } from "./dynamic-table-action-C__4AVW6.js";
|
|
2
2
|
import { get, pick } from "lodash-es";
|
|
3
|
-
import { F as FIELD_TYPE } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-
|
|
3
|
+
import { F as FIELD_TYPE } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BAl7OidW.js";
|
|
4
4
|
import { f as fontStyleAttrs } from "./config.enum-B8UZQTON.js";
|
|
5
5
|
const DESIGNER_DEFAULT_TYPES = /* @__PURE__ */ new Set([
|
|
6
6
|
FIELD_TYPE.DEVICE,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, toRaw, shallowRef, computed, ref, readonly, onMounted, watch, normalizeClass, onBeforeUnmount, h as h$1, watchEffect, unref, createVNode, reactive } from "vue";
|
|
2
|
-
import { N as commonjsGlobal, Q as getDefaultExportFromCjs } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-
|
|
3
|
-
import { r as require$$0 } from "./index-
|
|
2
|
+
import { N as commonjsGlobal, Q as getDefaultExportFromCjs } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BAl7OidW.js";
|
|
3
|
+
import { r as require$$0 } from "./index-BGHQz2Uj.js";
|
|
4
4
|
var window_1;
|
|
5
5
|
var hasRequiredWindow;
|
|
6
6
|
function requireWindow() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, computed, resolveComponent, openBlock, createElementBlock, Fragment, renderList, normalizeClass, createVNode, withCtx, createElementVNode, createTextVNode, toDisplayString } from "vue";
|
|
2
|
-
import { a9 as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-
|
|
2
|
+
import { a9 as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BAl7OidW.js";
|
|
3
3
|
const _hoisted_1 = { class: "align-group-box" };
|
|
4
4
|
const _hoisted_2 = ["onClick"];
|
|
5
5
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, watch, openBlock, createElementBlock, normalizeStyle, normalizeClass, createElementVNode, toDisplayString, createCommentVNode } from "vue";
|
|
2
2
|
import { pick } from "lodash-es";
|
|
3
|
-
import { u as useSpreadSheet, h as useModelFields, l as loadBwip } from "./index-
|
|
4
|
-
import { R as PaperWidgeValueType, a9 as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-
|
|
3
|
+
import { u as useSpreadSheet, h as useModelFields, l as loadBwip } from "./index-6_pgVPOb.js";
|
|
4
|
+
import { R as PaperWidgeValueType, a9 as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BAl7OidW.js";
|
|
5
5
|
import "dayjs";
|
|
6
6
|
import "@gct-paas/form-base";
|
|
7
7
|
import "ant-design-vue";
|
package/dist/base/index.es.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { p as api, a0 as PlatformEnum, F as FIELD_TYPE,
|
|
2
|
-
import { aQ, aS,
|
|
3
|
-
import { T as getRuntimeDataFieldId, F as parseRuntimeFieldPath, U as buildRuntimeFieldPath, f as findFieldProfile, V as resolveRuntimeFieldProps, W as resolveRuntimeFieldState, X as getRuntimeDependencyOutputKey, Y as isRowAddedInCurrentFormChange, t as MaterialConsumptionPatternEnum, Z as MaterialConsumeTableController, $ as setFormulaParamsConfig, a0 as normalizeRuntime, K as createRuntimeInstanceContext, R as RuntimeFormStateStore, a1 as RuntimeSheetService, g as getBusinessFieldKey, a2 as validateObjectBomQtyOnSubmit, a3 as closeValidatorPopovers, a4 as enrichFormChangeRowDetails, N as NCB_PROVIDE, L as RuntimeInstanceRegistry, a5 as useMaterialBalance, a6 as collectFormChangeFieldLocations, a7 as nextFormChangeRowViewHistoryId } from "../dynamic-table-action-
|
|
4
|
-
import { B as B2, a8 as a82, i, _, a9, P as P2, aa, Q, E, ab as ab2, ac, ad, ae, af, M, a, ag, d, ah, ai as ai2, aj as aj2, ak as ak2, al as al2, am as am2, an as an2, ao as ao2, z, ap as ap2, q as q2, aq, e, ar as ar2, as, at, au, p, A as A2, av, aw, ax, ay as ay2, j, C, h as h2, az, aA, aB, aC as aC2, aD as aD2, aE, w, r, aF, x, m, aG, s as s2, aH, H, I, u, y, J, l, o, G as G2, k, v as v2 } from "../dynamic-table-action-
|
|
1
|
+
import { p as api, a0 as PlatformEnum, F as FIELD_TYPE, bj as getRowId, bk as findRuntimeTableRow, b9 as RenderModeEnum, C as ComponentTypeEnum, aB as findFieldMain, c as getProfileByTableType, d as getBusinessProfileByRefModelType, b as isBusinessSubTableProfile, ax as RangeValidateMode, bw as assembleRules, bx as isAttachFieldActive, aK as Dependency_ENUM, bl as calculateFormula, aJ as ASSIGNMENTSTRATEGY_ENUM, U as getParseFormulaVarInfos, by as fetchHistoryConsume, bz as isBomGranted, aW as renderUtils, bv as uuid2, bA as parseFrontConfig, aN as CheckDsTypeEnum, aH as transformUtils, bB as baseDataUtils, bC as initializeSealFields, Z as FormTypeEnum, bD as normalizeToArray, bE as safeParseArray, bF as BpmnNodeTypeEnum, bG as mergeByMultiKey, a9 as _export_sfc, bH as evaluateInspectionDecisionRule, bI as areValidationCommentsEqual, bJ as useNocodeEmitter, bK as commonUtils, aL as EntityModelCategoryEnum } from "../dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BAl7OidW.js";
|
|
2
|
+
import { aQ, aS, b0, a2, bL, bM, B, bN, A, aj, bO, bP, bQ, bi, bR, aT, aC, aR, aO, aP, bS, ak, ao, bT, bU, aI, a4, ai, aD, bV, a1, am, L, bW, bX, bY, O, s, P, ab, q, R, G, bZ, b_, ay, a7, a3, a5, a6, a8, h, b$, an, ar, al, c0, c1, c2, c3, bh, c4, c5, c6, c7, c8, c9, ca, cb, cc, cd, bm, ce, cf, aZ, cg, b1, b2, ch, ci, cj, ck, cl, cm, cn, co, cp, cq, aY, cr, b3, bf, cs, ct, cu, ap, v, cv, cw, cx, bn, a_ } from "../dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BAl7OidW.js";
|
|
3
|
+
import { T as getRuntimeDataFieldId, F as parseRuntimeFieldPath, U as buildRuntimeFieldPath, f as findFieldProfile, V as resolveRuntimeFieldProps, W as resolveRuntimeFieldState, X as getRuntimeDependencyOutputKey, Y as isRowAddedInCurrentFormChange, t as MaterialConsumptionPatternEnum, Z as MaterialConsumeTableController, $ as setFormulaParamsConfig, a0 as normalizeRuntime, K as createRuntimeInstanceContext, R as RuntimeFormStateStore, a1 as RuntimeSheetService, g as getBusinessFieldKey, a2 as validateObjectBomQtyOnSubmit, a3 as closeValidatorPopovers, a4 as enrichFormChangeRowDetails, N as NCB_PROVIDE, L as RuntimeInstanceRegistry, a5 as useMaterialBalance, a6 as collectFormChangeFieldLocations, a7 as nextFormChangeRowViewHistoryId } from "../dynamic-table-action-C__4AVW6.js";
|
|
4
|
+
import { B as B2, a8 as a82, i, _, a9, P as P2, aa, Q, E, ab as ab2, ac, ad, ae, af, M, a, ag, d, ah, ai as ai2, aj as aj2, ak as ak2, al as al2, am as am2, an as an2, ao as ao2, z, ap as ap2, q as q2, aq, e, ar as ar2, as, at, au, p, A as A2, av, aw, ax, ay as ay2, j, C, h as h2, az, aA, aB, aC as aC2, aD as aD2, aE, w, r, aF, x, m, aG, s as s2, aH, H, I, u, y, J, l, o, G as G2, k, v as v2 } from "../dynamic-table-action-C__4AVW6.js";
|
|
5
5
|
import { toRaw, watch, toRef, computed, defineComponent, openBlock, createElementBlock, createElementVNode, toDisplayString, shallowRef, markRaw, ref, provide, onUnmounted, reactive, onBeforeUnmount } from "vue";
|
|
6
6
|
import { cloneDeep, defaults, isEmpty, merge, get } from "lodash-es";
|
|
7
7
|
import "dayjs";
|
|
8
|
-
import { S as SubTableCoreFactory, R as RuntimeInstanceController } from "../sub-table-factory-
|
|
9
|
-
import { A as A3, D, M as M2, a as a10, P as P3, b, c, d as d2, e as e2, W, f, g, h as h3 } from "../sub-table-factory-
|
|
8
|
+
import { S as SubTableCoreFactory, R as RuntimeInstanceController } from "../sub-table-factory-BBiAj7oz.js";
|
|
9
|
+
import { A as A3, D, M as M2, a as a10, P as P3, b, c, d as d2, e as e2, W, f, g, h as h3 } from "../sub-table-factory-BBiAj7oz.js";
|
|
10
10
|
import { createDataSourceManager, getLegacyFieldFillTargets, createFieldFillRuntime, buildFieldFillRows, isFieldFillTargetProtected, getFieldFillColumn, buildDataSourceContext } from "@gct-paas/form-base";
|
|
11
|
-
import { B as B3, F, M as M3, a as a11, u as u2 } from "../mb-render-
|
|
11
|
+
import { B as B3, F, M as M3, a as a11, u as u2 } from "../mb-render-CDFmykM_.js";
|
|
12
12
|
const InstanceStatusValues = {
|
|
13
13
|
/** 作废状态 */
|
|
14
14
|
ABANDON: "ABANDON",
|
|
@@ -155,6 +155,32 @@ async function fetchOperationReceiveQty(paramsConfig) {
|
|
|
155
155
|
const num = Number(raw);
|
|
156
156
|
return Number.isNaN(num) ? void 0 : num;
|
|
157
157
|
}
|
|
158
|
+
const INSPECTION_MODULE_QTY_API = {
|
|
159
|
+
modelCategory: "entity",
|
|
160
|
+
modelKey: "em_inspection_list",
|
|
161
|
+
bsKey: "getById"
|
|
162
|
+
};
|
|
163
|
+
function isRecord(value) {
|
|
164
|
+
return value !== null && typeof value === "object" && !Array.isArray(value);
|
|
165
|
+
}
|
|
166
|
+
function parseInspectionModuleQty(res) {
|
|
167
|
+
if (!isRecord(res) || res.ok === false) return void 0;
|
|
168
|
+
const payload = isRecord(res.data) ? res.data : res;
|
|
169
|
+
const row = isRecord(payload.data) ? payload.data : payload;
|
|
170
|
+
const raw = row.inspection_number_;
|
|
171
|
+
if (typeof raw !== "number" && typeof raw !== "string") return void 0;
|
|
172
|
+
if (typeof raw === "string" && raw.trim() === "") return void 0;
|
|
173
|
+
const qty = Number(raw);
|
|
174
|
+
return Number.isFinite(qty) ? qty : void 0;
|
|
175
|
+
}
|
|
176
|
+
async function fetchInspectionModuleQty(txnInstId) {
|
|
177
|
+
if (txnInstId == null || txnInstId === "") return void 0;
|
|
178
|
+
const res = await api.apaas.modelComprehensive.getBizServiceModelCategoryModelKeyBsKey(
|
|
179
|
+
INSPECTION_MODULE_QTY_API,
|
|
180
|
+
{ id: txnInstId }
|
|
181
|
+
);
|
|
182
|
+
return parseInspectionModuleQty(res);
|
|
183
|
+
}
|
|
158
184
|
function listRuntimeFieldRows(record, subFieldKey, targetFieldId) {
|
|
159
185
|
if (!subFieldKey) {
|
|
160
186
|
return [{ row: record.formState.state }];
|
|
@@ -213,7 +239,7 @@ class RuntimeFieldInitializer {
|
|
|
213
239
|
for (const { widget, sheetId, referenceInfo } of this.record.fields.allWidgets()) {
|
|
214
240
|
const props = widget.props;
|
|
215
241
|
const fieldId = getRuntimeDataFieldId(props);
|
|
216
|
-
const kind = props.fieldType === FIELD_TYPE.UDI || props.bizType === FIELD_TYPE.UDI ? "udi" : props.bizType === FIELD_TYPE.OPERATION_RECEIVE_QTY ? "receive" : props.tmplId && [FIELD_TYPE.INTEGER, FIELD_TYPE.LONG].includes(props.fieldType) ? "count" : this.info.isMockReport && props.fieldType === FIELD_TYPE.RECORD_NO && props.newSpecificConfig?.newSnNo ? "recordNo" : void 0;
|
|
242
|
+
const kind = props.fieldType === FIELD_TYPE.UDI || props.bizType === FIELD_TYPE.UDI ? "udi" : props.bizType === FIELD_TYPE.OPERATION_RECEIVE_QTY ? "receive" : props.fieldType === FIELD_TYPE.INSPECTION_MODULE_QTY || props.bizType === FIELD_TYPE.INSPECTION_MODULE_QTY ? "inspection" : props.tmplId && [FIELD_TYPE.INTEGER, FIELD_TYPE.LONG].includes(props.fieldType) ? "count" : this.info.isMockReport && props.fieldType === FIELD_TYPE.RECORD_NO && props.newSpecificConfig?.newSnNo ? "recordNo" : void 0;
|
|
217
243
|
if (!kind || !fieldId || props.isFieldModel) continue;
|
|
218
244
|
for (const { row } of listRuntimeFieldRows(
|
|
219
245
|
this.record,
|
|
@@ -225,11 +251,13 @@ class RuntimeFieldInitializer {
|
|
|
225
251
|
if (this.initialized.get(key) === toRaw(row)) continue;
|
|
226
252
|
this.initialized.set(key, toRaw(row));
|
|
227
253
|
if (props.subFieldKey ? row.id_ : (this.info.instanceStatus ?? this.metadata.instanceStatus) !== InstanceStatusValues.UNFILLED) {
|
|
228
|
-
if (kind !== "recordNo") continue;
|
|
254
|
+
if (kind !== "recordNo" && kind !== "inspection") continue;
|
|
229
255
|
}
|
|
230
256
|
const previous = row[fieldId];
|
|
231
257
|
if (kind === "udi" && isPresent(previous)) continue;
|
|
232
258
|
const path = this.record.formState.getFieldPath(row, fieldId);
|
|
259
|
+
if (kind === "inspection" && (isPresent(previous) || this.record.formState.isUserModified(path)))
|
|
260
|
+
continue;
|
|
233
261
|
this.tasks.add(key);
|
|
234
262
|
const task = this.record.asyncTasks.run(
|
|
235
263
|
key,
|
|
@@ -251,7 +279,11 @@ class RuntimeFieldInitializer {
|
|
|
251
279
|
sheetId,
|
|
252
280
|
blockOnFailure: false
|
|
253
281
|
}
|
|
254
|
-
).finally(() =>
|
|
282
|
+
).finally(() => {
|
|
283
|
+
this.tasks.delete(key);
|
|
284
|
+
if (kind === "inspection" && this.initialized.get(key) === toRaw(row) && !isPresent(row[fieldId]))
|
|
285
|
+
this.initialized.delete(key);
|
|
286
|
+
});
|
|
255
287
|
pending.push(task);
|
|
256
288
|
}
|
|
257
289
|
}
|
|
@@ -263,18 +295,31 @@ class RuntimeFieldInitializer {
|
|
|
263
295
|
}
|
|
264
296
|
await Promise.allSettled(pending);
|
|
265
297
|
}
|
|
266
|
-
request(key, fetch) {
|
|
298
|
+
request(key, fetch, cacheResult = true) {
|
|
267
299
|
const existing = this.requests.get(key);
|
|
268
300
|
if (existing) return existing;
|
|
269
|
-
const task = fetch().
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
301
|
+
const task = fetch().then(
|
|
302
|
+
(value) => {
|
|
303
|
+
if (!cacheResult) this.requests.delete(key);
|
|
304
|
+
return value;
|
|
305
|
+
},
|
|
306
|
+
(error) => {
|
|
307
|
+
this.requests.delete(key);
|
|
308
|
+
throw error;
|
|
309
|
+
}
|
|
310
|
+
);
|
|
273
311
|
this.requests.set(key, task);
|
|
274
312
|
return task;
|
|
275
313
|
}
|
|
276
314
|
async readDefault(kind, props) {
|
|
277
315
|
if (kind === "recordNo") return props.newSpecificConfig.newSnNo;
|
|
316
|
+
if (kind === "inspection") {
|
|
317
|
+
return this.request(
|
|
318
|
+
`inspection:${this.metadata.txnInstId ?? ""}`,
|
|
319
|
+
() => fetchInspectionModuleQty(this.metadata.txnInstId),
|
|
320
|
+
false
|
|
321
|
+
);
|
|
322
|
+
}
|
|
278
323
|
if (kind === "count") {
|
|
279
324
|
const params = { ...JSON.parse(this.metadata.params || "{}"), ...this.info.paramsConfig };
|
|
280
325
|
const name = params.materialNo || this.metadata.materialNo;
|
|
@@ -3315,23 +3360,23 @@ export {
|
|
|
3315
3360
|
A3 as AllocateTableCore,
|
|
3316
3361
|
B3 as BaseFormModelFetcher,
|
|
3317
3362
|
aS as BinarizeMethodOptions,
|
|
3318
|
-
|
|
3363
|
+
b0 as BindCmpStyleEnum,
|
|
3319
3364
|
a2 as BooleanShowMode,
|
|
3320
3365
|
B2 as BorderTD,
|
|
3321
3366
|
BpmnNodeTypeEnum,
|
|
3322
|
-
|
|
3323
|
-
|
|
3367
|
+
bL as BpmnSignatureTypeEnum,
|
|
3368
|
+
bM as ButtonTypeEnum,
|
|
3324
3369
|
B as BwipCodeType,
|
|
3325
|
-
|
|
3370
|
+
bN as CHECK_TABLE_MEDPRO_PROTOCOL_KEY,
|
|
3326
3371
|
A as CellType,
|
|
3327
3372
|
aj as CellWidgetViewState,
|
|
3328
3373
|
CheckDsTypeEnum,
|
|
3329
|
-
|
|
3374
|
+
bO as CodeRunner,
|
|
3330
3375
|
ComponentTypeEnum,
|
|
3331
|
-
|
|
3332
|
-
|
|
3333
|
-
|
|
3334
|
-
|
|
3376
|
+
bP as Config_Fields,
|
|
3377
|
+
bQ as ControlStatusEnum,
|
|
3378
|
+
bi as DEVICE_GROUP_QUERY_KEY,
|
|
3379
|
+
bR as DEVICE_SEARCH_API,
|
|
3335
3380
|
aT as DateFormat,
|
|
3336
3381
|
aC as DecimalDisplayMode,
|
|
3337
3382
|
aR as DenoiseMethodOptions,
|
|
@@ -3340,7 +3385,7 @@ export {
|
|
|
3340
3385
|
i as DeviceLinkTmplUtil,
|
|
3341
3386
|
aP as DeviceParamsTypeTitle,
|
|
3342
3387
|
D as DevicePartConsumeTableCore,
|
|
3343
|
-
|
|
3388
|
+
bS as DeviceStatus,
|
|
3344
3389
|
ak as DiagonalDirection,
|
|
3345
3390
|
ao as DiagonalVertex,
|
|
3346
3391
|
_ as DocumentLayout,
|
|
@@ -3348,8 +3393,8 @@ export {
|
|
|
3348
3393
|
P2 as DocumentPaper,
|
|
3349
3394
|
aa as DynamicQuickFillModal,
|
|
3350
3395
|
Q as DynamicTableAction,
|
|
3351
|
-
|
|
3352
|
-
|
|
3396
|
+
bT as EBR_PROVIDE_ENUM,
|
|
3397
|
+
bU as EFieldBizTypeEnum,
|
|
3353
3398
|
E as EMPTY_PRODUCT_VERSION_ID,
|
|
3354
3399
|
aI as EmptySymbol,
|
|
3355
3400
|
a4 as FallbackSignTypeEnum,
|
|
@@ -3363,14 +3408,14 @@ export {
|
|
|
3363
3408
|
FormTypeEnum,
|
|
3364
3409
|
aD as ImageDisplayModeEnum,
|
|
3365
3410
|
InstanceStatusValues,
|
|
3366
|
-
|
|
3411
|
+
bV as JoinModelTypeEum,
|
|
3367
3412
|
ad as LEGACY_RUNTIME_FORM_CONFIG_KEYS,
|
|
3368
3413
|
ae as LEGACY_RUNTIME_SHEET_ID,
|
|
3369
3414
|
af as LEGACY_RUNTIME_SHEET_TITLE,
|
|
3370
3415
|
a1 as LabelPosition,
|
|
3371
3416
|
am as LineDirection,
|
|
3372
3417
|
L as LineType,
|
|
3373
|
-
|
|
3418
|
+
bW as MAX_FRONT_ROW_KEY_LENGTH,
|
|
3374
3419
|
M as MAX_RUNTIME_SHEETS,
|
|
3375
3420
|
a as MAX_RUNTIME_SHEET_TITLE_LENGTH,
|
|
3376
3421
|
M3 as MBRender,
|
|
@@ -3382,10 +3427,10 @@ export {
|
|
|
3382
3427
|
M2 as MaterialRequisitionTableCore,
|
|
3383
3428
|
MaterialStatusEnum,
|
|
3384
3429
|
a10 as MaterialSubstitutionTableCore,
|
|
3385
|
-
|
|
3430
|
+
bX as MobileFillTypeEnum,
|
|
3386
3431
|
NCB_PROVIDE,
|
|
3387
3432
|
ah as OCR_MODEL_PRECISION_ENUM_KEY,
|
|
3388
|
-
|
|
3433
|
+
bY as OfficeTypeEnum,
|
|
3389
3434
|
O as Orientation,
|
|
3390
3435
|
s as PageSizeEnum,
|
|
3391
3436
|
P as PaginationFormat,
|
|
@@ -3395,10 +3440,10 @@ export {
|
|
|
3395
3440
|
G as ParamModelTypeEnum,
|
|
3396
3441
|
P3 as PartStocktakeTableCore,
|
|
3397
3442
|
PlatformEnum,
|
|
3398
|
-
|
|
3443
|
+
bZ as PosEnum,
|
|
3399
3444
|
b as PretreatmentListTableCore,
|
|
3400
3445
|
c as ProfileDrivenSubTableCore,
|
|
3401
|
-
|
|
3446
|
+
b_ as RUNTIME_COLUMN_ROW_KEY,
|
|
3402
3447
|
ay as RangeCompareOp,
|
|
3403
3448
|
RangeValidateMode,
|
|
3404
3449
|
RenderModeEnum,
|
|
@@ -3423,7 +3468,7 @@ export {
|
|
|
3423
3468
|
ao2 as SubTableCore,
|
|
3424
3469
|
SubTableCoreFactory,
|
|
3425
3470
|
h as SubTableType,
|
|
3426
|
-
|
|
3471
|
+
b$ as SummaryApproveHisTypeEnum,
|
|
3427
3472
|
an as TimeDiffFormat,
|
|
3428
3473
|
ar as ViewTypeEnum,
|
|
3429
3474
|
W as WarehouseInTableCore,
|
|
@@ -3431,18 +3476,18 @@ export {
|
|
|
3431
3476
|
g as WarehouseOutTableCore,
|
|
3432
3477
|
h3 as WarehouseOutboundTableCore,
|
|
3433
3478
|
al as WidgetImageSizeMode,
|
|
3434
|
-
|
|
3479
|
+
c0 as applyCheckDsDataToRuntime,
|
|
3435
3480
|
z as applyConsumeObjectTraceChange,
|
|
3436
|
-
|
|
3481
|
+
c1 as applyMedProCheckDsDataToRuntime,
|
|
3437
3482
|
baseDataUtils,
|
|
3438
|
-
|
|
3439
|
-
|
|
3440
|
-
|
|
3483
|
+
c2 as bindRuntimeTableColumns,
|
|
3484
|
+
c3 as buildDeviceBaseQuery,
|
|
3485
|
+
bh as buildDeviceFilterQuery,
|
|
3441
3486
|
ap2 as buildFormChangeDisplayRows,
|
|
3442
3487
|
q2 as buildObjectLotExtraQuery,
|
|
3443
3488
|
buildRuntimeFieldPath,
|
|
3444
|
-
|
|
3445
|
-
|
|
3489
|
+
c4 as calcFillData,
|
|
3490
|
+
c5 as calcUtils,
|
|
3446
3491
|
calculateFormula,
|
|
3447
3492
|
collectAnnotationItemsByLocation,
|
|
3448
3493
|
collectFormChangeFieldLocations,
|
|
@@ -3451,65 +3496,65 @@ export {
|
|
|
3451
3496
|
aq as convertV1Runtime,
|
|
3452
3497
|
e as createRuntimeDocumentV2,
|
|
3453
3498
|
createRuntimeInstanceContext,
|
|
3454
|
-
|
|
3499
|
+
c6 as decodeTableCellRowKey,
|
|
3455
3500
|
ar2 as detailsHaveFormChangeRowOps,
|
|
3456
|
-
|
|
3501
|
+
c7 as encodeTableCellRowKey,
|
|
3457
3502
|
enrichFormChangeRowDetails,
|
|
3458
|
-
|
|
3459
|
-
|
|
3503
|
+
c8 as ensureFrontRowKey,
|
|
3504
|
+
c9 as ensureTableRowKeys,
|
|
3460
3505
|
as as extractFormChangeRowDetails,
|
|
3461
|
-
|
|
3462
|
-
|
|
3463
|
-
|
|
3506
|
+
ca as extractKeywordFromQueryData,
|
|
3507
|
+
cb as fetchCheckDsDataForTable,
|
|
3508
|
+
cc as fetchCustomCheckDsData,
|
|
3464
3509
|
fetchHistoryConsume,
|
|
3465
|
-
|
|
3510
|
+
cd as fetchMedProCheckDsData,
|
|
3466
3511
|
fetchOperationReceiveQty,
|
|
3467
3512
|
fetchUdi,
|
|
3468
3513
|
filterAnnotationItemsUpToCurrent,
|
|
3469
|
-
|
|
3470
|
-
|
|
3514
|
+
bm as findRuntimeParentRow,
|
|
3515
|
+
ce as findRuntimeTableCell,
|
|
3471
3516
|
findRuntimeTableRow,
|
|
3472
3517
|
getAppInfo,
|
|
3473
3518
|
getBusinessFieldKey,
|
|
3474
|
-
|
|
3519
|
+
cf as getCheckTableSnapshotKey,
|
|
3475
3520
|
at as getFormChangeRowKey,
|
|
3476
3521
|
au as getFormChangeRowOp,
|
|
3477
3522
|
aZ as getLotLockedReason,
|
|
3478
3523
|
p as getObjectBomMaterialLotQuery,
|
|
3479
3524
|
A2 as getObjectBomProductQuery,
|
|
3480
3525
|
getParseFormulaVarInfos,
|
|
3481
|
-
|
|
3482
|
-
|
|
3483
|
-
|
|
3484
|
-
|
|
3485
|
-
|
|
3526
|
+
cg as getParseRuleConfig,
|
|
3527
|
+
b1 as getParseRuleInfo,
|
|
3528
|
+
b2 as getParseRuleValue,
|
|
3529
|
+
ch as getReinspectionDate,
|
|
3530
|
+
ci as getRenderedRuntimeTableCell,
|
|
3486
3531
|
getRuntimeDataFieldId,
|
|
3487
3532
|
getRuntimeDependencyOutputKey,
|
|
3488
3533
|
av as getSubTableQuickFillInfo,
|
|
3489
3534
|
getSuiteKey,
|
|
3490
|
-
|
|
3491
|
-
|
|
3492
|
-
|
|
3493
|
-
|
|
3535
|
+
cj as handleOldConfig,
|
|
3536
|
+
ck as hasAnyCheckTableSnapshot,
|
|
3537
|
+
cl as hasByTableCheckTableSnapshot,
|
|
3538
|
+
cm as hasSharedCheckTableSnapshot,
|
|
3494
3539
|
aw as isAnnLocationSelected,
|
|
3495
3540
|
ax as isBlank,
|
|
3496
3541
|
isBomGranted,
|
|
3497
3542
|
isEdhrSuite,
|
|
3498
3543
|
isEqmSuite,
|
|
3499
3544
|
ay2 as isFormChangeGhostRow,
|
|
3500
|
-
|
|
3545
|
+
cn as isMedProSuite,
|
|
3501
3546
|
isRowAddedInCurrentFormChange,
|
|
3502
|
-
|
|
3503
|
-
|
|
3504
|
-
|
|
3547
|
+
co as isTableRowKeyMatch,
|
|
3548
|
+
cp as jsonSchemaUtils,
|
|
3549
|
+
cq as judgeUnique,
|
|
3505
3550
|
aY as materialCheck,
|
|
3506
|
-
|
|
3551
|
+
cr as migrateDiagonalDirectionToVertex,
|
|
3507
3552
|
nextFormChangeRowViewHistoryId,
|
|
3508
3553
|
j as normalizeAIOcrTmpl,
|
|
3509
3554
|
C as normalizeHistoricalAutofillRow,
|
|
3510
3555
|
h2 as normalizeHistoricalBusinessRow,
|
|
3511
3556
|
az as normalizeHistoricalFieldConfig,
|
|
3512
|
-
|
|
3557
|
+
b3 as normalizeRefLoaderResult,
|
|
3513
3558
|
normalizeRuntime,
|
|
3514
3559
|
parseFrontConfig,
|
|
3515
3560
|
parseRuntimeFieldPath,
|
|
@@ -3517,11 +3562,11 @@ export {
|
|
|
3517
3562
|
aA as pickObjectFieldKeys,
|
|
3518
3563
|
aB as recordSubtableRowAdd,
|
|
3519
3564
|
aC2 as recordSubtableRowDelete,
|
|
3520
|
-
|
|
3521
|
-
|
|
3565
|
+
bf as refUtils,
|
|
3566
|
+
cs as relocateDeletedRowsToEnd,
|
|
3522
3567
|
renderUtils,
|
|
3523
|
-
|
|
3524
|
-
|
|
3568
|
+
ct as requestMedProCheckDsData,
|
|
3569
|
+
cu as requestNonMedProCheckDsData,
|
|
3525
3570
|
aD2 as resolveAnnotationFieldLocation,
|
|
3526
3571
|
ap as resolveDiagonalVertex,
|
|
3527
3572
|
v as resolveFieldRenderComponent,
|
|
@@ -3534,8 +3579,8 @@ export {
|
|
|
3534
3579
|
m as setSelectAnnotationId,
|
|
3535
3580
|
aG as setSelectMobileTdId,
|
|
3536
3581
|
s2 as setSelectValidatorId,
|
|
3537
|
-
|
|
3538
|
-
|
|
3582
|
+
cv as sqlUtils,
|
|
3583
|
+
cw as stockCheck,
|
|
3539
3584
|
aH as stripLegacyFormConfigFromPaper,
|
|
3540
3585
|
transformUtils,
|
|
3541
3586
|
H as useDependency,
|
|
@@ -3546,8 +3591,8 @@ export {
|
|
|
3546
3591
|
useMaterialBalance,
|
|
3547
3592
|
useNocodeEmitter,
|
|
3548
3593
|
y as useNocodeFormWidget,
|
|
3549
|
-
|
|
3550
|
-
|
|
3594
|
+
cx as useOnlineFormActionButton,
|
|
3595
|
+
bn as useOnlineFormTransformField2Component,
|
|
3551
3596
|
useRenderPageFactory,
|
|
3552
3597
|
J as useRuntimeEditorFlusher,
|
|
3553
3598
|
l as useRuntimeInstanceServices,
|
|
@@ -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 { ap as resolveDiagonalVertex, a9 as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-
|
|
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 { aj as CellWidgetViewState, F as FIELD_TYPE,
|
|
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";
|