@gct-paas/excel 0.1.39-beta.16 → 0.1.39-beta.18
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-BukKy-Ta.js → BaseComponent-DlErT5t9.js} +1 -1
- package/dist/{barcode-design-CHZzFsEC.js → barcode-design-ejpO4TWN.js} +1 -1
- package/dist/base/index.es.js +198 -43
- package/dist/{diagonal-design-OOMfRYA4.js → diagonal-design-Bs9gWcVz.js} +1 -1
- package/dist/excel.css +7 -32
- package/dist/{exceljs.min-qTeeIg1c.js → exceljs.min-Cr5_l7GW.js} +1 -1
- package/dist/{font-editor-DxwZPPcW.js → font-editor-CpisAVLZ.js} +1 -1
- package/dist/{index-BDal31rR.js → index-265Zuy2Y.js} +1 -1
- package/dist/{index-xEEcgELT.js → index-50OBRcTM.js} +1 -1
- package/dist/{index-CiRn_aRr.js → index-9S_12I_m.js} +1 -1
- package/dist/{index-DNTr3TAQ.js → index-B0_PuKlp.js} +1 -1
- package/dist/{index-CuNImaHo.js → index-B9mMKdWV.js} +1 -1
- package/dist/{index-CBZ8lhDg.js → index-BDQQZex8.js} +1 -1
- package/dist/{index-BLfLEJTY.js → index-BDXjjYXb.js} +57 -139
- package/dist/{index-CzmRYqq8.js → index-BHmTVYqD.js} +3 -3
- package/dist/{index-CzQ0z_Gd.js → index-BK1OplGc.js} +1 -1
- package/dist/{index-BzWTFxln.js → index-BLFfeKcf.js} +1 -1
- package/dist/{index-CLE6hZJS.js → index-BO6dvJRn.js} +1 -1
- package/dist/{index-DP10nlTM.js → index-BQGtju-p.js} +1 -1
- package/dist/{index-Cis2UVwi.js → index-BaQfzPpW.js} +1 -1
- package/dist/{index-oPtrKoRH.js → index-BhRaNTnf.js} +1 -1
- package/dist/{index-HLHblia-.js → index-BkEEB8UX.js} +2 -2
- package/dist/{index-CKqMs7mS.js → index-Bq15nkZU.js} +1 -1
- package/dist/{index-ZYhlGCsX.js → index-CSinNyyL.js} +1 -1
- package/dist/{index-BAHY8J4O.js → index-CabjW1sn.js} +2 -2
- package/dist/{index-BEVwLj0C.js → index-DAxqwkuO.js} +1 -1
- package/dist/{index-DU9LUfhQ.js → index-DQhVTdNc.js} +1 -1
- package/dist/{index-Jq1d5kcw.js → index-Dg5modjI.js} +2 -2
- package/dist/{index-cd2rFLa1.js → index-UMo1va8T.js} +1 -1
- package/dist/{index-C2tzE0Pa.js → index-_y43fj3W.js} +2 -2
- package/dist/{index-BQ7NWxQc.js → index-em0rzOJO.js} +1 -1
- package/dist/index.es.js +1 -1
- package/dist/{pagination-design-CrHZBsDW.js → pagination-design-D_QjDeiL.js} +1 -1
- package/dist/paper-widget-design-BuH_G9AK.js +4 -0
- package/dist/{print-runtime-instance-Bvde5aY8.js → print-runtime-instance-BVl0QFuC.js} +1 -1
- package/dist/{print-snapshot-renderer-RSs6kMHp.js → print-snapshot-renderer-CwlqVc2E.js} +3 -3
- package/dist/{qrcode-design-CHT6_pT-.js → qrcode-design-DlAjNGZV.js} +1 -1
- package/dist/seal-design-CFxljXVw.js +4 -0
- package/dist/{single-field-drop-CpKHTM2p.js → single-field-drop-CILrDdkn.js} +1 -1
- package/dist/src/nocode-base/src/hooks/material-consume-object/object-validation-controller.d.ts +24 -0
- package/dist/src/online-form/src/views/render/__components__/_field_/trace/utils/use-rule-props.d.ts +0 -3
- package/dist/{sub-table-factory-DtG-HO2a.js → sub-table-factory-CGAWlYDu.js} +1 -1
- package/dist/{text-design-Yi24e6iF.js → text-design-DaLE4WYR.js} +1 -1
- package/dist/{trace-like-wrapper-DayZkwvZ.js → trace-like-wrapper-C4E9e2Je.js} +1 -1
- package/dist/{value-editor.vue_vue_type_style_index_0_lang-EiOW4b3N.js → value-editor.vue_vue_type_style_index_0_lang-C5hFF1Ud.js} +1 -1
- package/dist/{widget-barcode-BrN3dVIE.js → widget-barcode-D8sXBO3u.js} +2 -2
- package/dist/{widget-diagonal-DKD-DBzk.js → widget-diagonal-CoiPow-N.js} +2 -2
- package/dist/{widget-image-CgaOXQWN.js → widget-image-CkfwiupS.js} +1 -1
- package/dist/{widget-line-DMT-WUJa.js → widget-line-BHHhjt39.js} +1 -1
- package/dist/{widget-pagination-G1-plSoL.js → widget-pagination-2D_pMT3X.js} +2 -2
- package/dist/{widget-power-4broQpTr.js → widget-power-BWjDuOSj.js} +2 -2
- package/dist/{widget-qrcode-GQ83IJo5.js → widget-qrcode-DxARlp5Q.js} +2 -2
- package/dist/{widget-rangelimit-CoDlaJyU.js → widget-rangelimit-DUyFFT_x.js} +2 -2
- package/dist/{widget-serialnumber-CUYfiN4D.js → widget-serialnumber-CeQt5Nwg.js} +1 -1
- package/dist/{widget-text-BTh60jMy.js → widget-text-Ci9WHuOm.js} +3 -3
- package/dist/{widget-timediff-3Xg2As8I.js → widget-timediff-BNrCLWLE.js} +1 -1
- package/package.json +1 -1
- package/dist/paper-widget-design-CRwvgntz.js +0 -4
- package/dist/seal-design-O8r6naAH.js +0 -4
- package/dist/{dynamic-table-action-B-Tw4RYj.js → dynamic-table-action-BXNnUUIX.js} +144 -144
|
@@ -3,8 +3,8 @@ import { C as ComponentTypeEnum, F as FIELD_TYPE } from "./dynamic-table-action.
|
|
|
3
3
|
import "vue";
|
|
4
4
|
import "dayjs";
|
|
5
5
|
import "ant-design-vue";
|
|
6
|
-
import { B as BaseComponent } from "./BaseComponent-
|
|
7
|
-
import { i as isSterilizationLotField, a as getSterilizationLotDisplayFields, b as isInventoryProductField, s as showDisplayAndSearchConfig, r as resolveQuickSearchConfig, I as INVENTORY_QUICK_SEARCH_FIELDS } from "./index-
|
|
6
|
+
import { B as BaseComponent } from "./BaseComponent-DlErT5t9.js";
|
|
7
|
+
import { i as isSterilizationLotField, a as getSterilizationLotDisplayFields, b as isInventoryProductField, s as showDisplayAndSearchConfig, r as resolveQuickSearchConfig, I as INVENTORY_QUICK_SEARCH_FIELDS } from "./index-BDXjjYXb.js";
|
|
8
8
|
class Select extends BaseComponent {
|
|
9
9
|
component = ComponentTypeEnum.Select;
|
|
10
10
|
wrapperCmpConfig({ data }) {
|
|
@@ -3,7 +3,7 @@ import { C as ComponentTypeEnum, F as FIELD_TYPE, ax as RangeCompareOp, aw as Ra
|
|
|
3
3
|
import "vue";
|
|
4
4
|
import "dayjs";
|
|
5
5
|
import "ant-design-vue";
|
|
6
|
-
import { B as BaseComponent } from "./BaseComponent-
|
|
6
|
+
import { B as BaseComponent } from "./BaseComponent-DlErT5t9.js";
|
|
7
7
|
class DateTimepicker extends BaseComponent {
|
|
8
8
|
component = ComponentTypeEnum.DateTimepicker;
|
|
9
9
|
wrapperCmpConfig({ data }) {
|
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { G, H, J, K, M, N, O, Q, U, B, W, X, Y, Z, $, a0, a1, a2, a3, a4, a5, a6, a7, a8, x, a9, aa, y, ab, P, ac, ad, ae, af, ag, ah, ai, aj, ak, al, am, an, ao, ap, aq, ar, as, at, h } from "./index-
|
|
1
|
+
import { G, H, J, K, M, N, O, Q, U, B, W, X, Y, Z, $, a0, a1, a2, a3, a4, a5, a6, a7, a8, x, a9, aa, y, ab, P, ac, ad, ae, af, ag, ah, ai, aj, ak, al, am, an, ao, ap, aq, ar, as, at, h } from "./index-BDXjjYXb.js";
|
|
2
2
|
import { O as O2, _, V } from "./online-form-model-select.vue_vue_type_script_setup_true_name_online-form-model-select_lang-CtYTpCF6.js";
|
|
3
3
|
export {
|
|
4
4
|
G as AiTmplEditor,
|
|
@@ -3,7 +3,7 @@ import { P as PaginationFormat } from "./dynamic-table-action.vue_vue_type_style
|
|
|
3
3
|
import "lodash-es";
|
|
4
4
|
import "dayjs";
|
|
5
5
|
import "ant-design-vue";
|
|
6
|
-
import { j as calcText } from "./index-
|
|
6
|
+
import { j as calcText } from "./index-BDXjjYXb.js";
|
|
7
7
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
8
|
__name: "pagination-design",
|
|
9
9
|
props: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as captureRuntimePrintSnapshot, w as waitPrintFonts, e as waitPrintImages, p as printPagesInIframe } from "./index-
|
|
1
|
+
import { d as captureRuntimePrintSnapshot, w as waitPrintFonts, e as waitPrintImages, p as printPagesInIframe } from "./index-BDXjjYXb.js";
|
|
2
2
|
async function printRuntimeInstance(record, basicInfo, renderSnapshot, signal, options = {}) {
|
|
3
3
|
if (!record.controller) throw new Error("表单尚未完成初始化,暂时无法打印");
|
|
4
4
|
const snapshot = await record.controller.preparePrintSnapshot(
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, provide, ref, onErrorCaptured, onBeforeUnmount, openBlock, createBlock, unref } from "vue";
|
|
2
|
-
import { R as RuntimeFormStateStore, I as RuntimeInstanceRegistry, N as NCB_PROVIDE } from "./dynamic-table-action-
|
|
3
|
-
import { S as SubTableCoreFactory, R as RuntimeInstanceController } from "./sub-table-factory-
|
|
4
|
-
import { _ as _sfc_main$1 } from "./index-
|
|
2
|
+
import { R as RuntimeFormStateStore, I as RuntimeInstanceRegistry, N as NCB_PROVIDE } from "./dynamic-table-action-BXNnUUIX.js";
|
|
3
|
+
import { S as SubTableCoreFactory, R as RuntimeInstanceController } from "./sub-table-factory-CGAWlYDu.js";
|
|
4
|
+
import { _ as _sfc_main$1 } from "./index-BDXjjYXb.js";
|
|
5
5
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
6
|
__name: "print-snapshot-renderer",
|
|
7
7
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, watch, openBlock, createElementBlock, normalizeClass, createElementVNode } from "vue";
|
|
2
|
-
import { B as BwipCodeTypeOptions, l as loadBwip } from "./index-
|
|
2
|
+
import { B as BwipCodeTypeOptions, l as loadBwip } from "./index-BDXjjYXb.js";
|
|
3
3
|
const _hoisted_1 = ["src"];
|
|
4
4
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
5
|
__name: "qrcode-design",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, computed, openBlock, createBlock, unref, normalizeClass } from "vue";
|
|
2
2
|
import { a as useNamespace } from "./AntdIcon-DCIaV352.js";
|
|
3
|
-
import { m as useDrop, T as TransferType, h as useModelFields, o as getFieldIcon, S as SingleDrop } from "./index-
|
|
3
|
+
import { m as useDrop, T as TransferType, h as useModelFields, o as getFieldIcon, S as SingleDrop } from "./index-BDXjjYXb.js";
|
|
4
4
|
import { a8 as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BmECtuSE.js";
|
|
5
5
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
6
|
__name: "single-field-drop",
|
package/dist/src/nocode-base/src/hooks/material-consume-object/object-validation-controller.d.ts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { IBasicInfoItem, ValidateFieldErrorMap } from '../../types';
|
|
2
|
+
import { RuntimeInstanceRecord } from '../../runtime';
|
|
3
|
+
type Options = {
|
|
4
|
+
record: RuntimeInstanceRecord;
|
|
5
|
+
getInfo(): IBasicInfoItem | undefined;
|
|
6
|
+
isCurrent(): boolean;
|
|
7
|
+
shouldSkip(): boolean;
|
|
8
|
+
applyComments(fields: ValidateFieldErrorMap): void;
|
|
9
|
+
};
|
|
10
|
+
type Result = {
|
|
11
|
+
isValid: boolean;
|
|
12
|
+
fields?: ValidateFieldErrorMap;
|
|
13
|
+
};
|
|
14
|
+
/** 实例级对象错误展示与刷新;数据变化由已有 Store 订阅传入。 */
|
|
15
|
+
export declare function createMaterialConsumeObjectValidation(options: Options): {
|
|
16
|
+
validate: (live?: boolean) => Promise<Result | undefined>;
|
|
17
|
+
requestLive: () => void;
|
|
18
|
+
replaceTableFields: (fields?: ValidateFieldErrorMap) => void;
|
|
19
|
+
clear: () => void;
|
|
20
|
+
beginSubmit(): void;
|
|
21
|
+
endSubmit(): void;
|
|
22
|
+
dispose(): void;
|
|
23
|
+
};
|
|
24
|
+
export {};
|
package/dist/src/online-form/src/views/render/__components__/_field_/trace/utils/use-rule-props.d.ts
CHANGED
|
@@ -7,8 +7,5 @@ export declare function useRuleProps({ props, selectByCode, }: {
|
|
|
7
7
|
/** 根据编码查询对象,并设置选中,有匹配的项则返回true */
|
|
8
8
|
selectByCode: (code: string, signal: AbortSignal) => Promise<boolean>;
|
|
9
9
|
}): {
|
|
10
|
-
mode: import('vue').Ref<"scan" | "dropdown", "scan" | "dropdown">;
|
|
11
|
-
allowSwitch: import('vue').ComputedRef<boolean>;
|
|
12
|
-
handleEnter: (val: any) => void;
|
|
13
10
|
handleSearchScan: (value: string, isCurrent?: () => boolean) => Promise<boolean>;
|
|
14
11
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { shallowReactive } from "vue";
|
|
2
|
-
import { aG as SubTableActionMenuTypeEnum, aH as getMenuByAction, aI as SubTableActionEnum, aJ as resolveScanFillData, am as SubTableCore, aK as getInsertSubMenu, aL as resolveScanAdjustType, aM as resolveScanQty, aN as toDateOnly, aO as getCopySubMenu, aP as resolveScanParsedValue, aQ as isProductBatchEmptyRow } from "./dynamic-table-action-
|
|
2
|
+
import { aG as SubTableActionMenuTypeEnum, aH as getMenuByAction, aI as SubTableActionEnum, aJ as resolveScanFillData, am as SubTableCore, aK as getInsertSubMenu, aL as resolveScanAdjustType, aM as resolveScanQty, aN as toDateOnly, aO as getCopySubMenu, aP as resolveScanParsedValue, aQ as isProductBatchEmptyRow } from "./dynamic-table-action-BXNnUUIX.js";
|
|
3
3
|
import { E as api, cN as F$1, cO as SCAN_ROW_CONTENT_FIELDS, cP as F$2, cQ as F$3, cR as runRowHandler, c as getProfileByTableType, b as isBusinessSubTableProfile, cS as F$4, cT as F$5, cU as FILL_FROM_SOURCE_PRODUCT_OPTION, cV as FILL_FROM_TARGET_MATERIAL_NO_OPTION, cW as FILL_FROM_INVENTORY_OPTION, cX as FILL_FROM_PART_OPTION, cY as FILL_FROM_INVENTORY_OPTION$1, cZ as TABLE_TYPE, c_ as FILL_FROM_INVENTORY_OPTION$2, b5 as F$6, c$ as INVENTORY_BASE_FIELDS, d0 as resolveGroupByWarehouse, d1 as AUTO_LOAD_READONLY_SELECT_FIELDS, b4 as STOCKTAKE_DIMENSION, b1 as getParseRuleInfo, d2 as buildFillFromInventoryOption, c3 as calcFillData, d3 as resolveStocktakeInventoryApi, b2 as getParseRuleValue, d4 as F$7, d5 as FILL_FROM_INVENTORY_OPTION$3, c9 as extractKeywordFromQueryData, d6 as composeProductionLotListQuery, aK as resolveLotDisplayLabel, d7 as F$8, d8 as isProductManuallyEditable, d9 as applyFillFromMfgOrderOption, da as applyFillFromOption$1, db as applyFillFromProductOption, a$ as ProductionIdentificationTypeEnum, aU as LOT_CONTAINER_ROLE, dc as MATERIAL_CONTAINER_ID, dd as F$9, de as PRODUCT_QUICK_SEARCH_FIELDS, df as PRODUCT_QUICK_SEARCH_EXP, dg as isProductManuallyEditable$1, dh as applyFillFromMaterialNoOption, di as applyFillFromProductOption$1, dj as F$a, dk as FILL_FROM_INVENTORY_OPTION$4, Y as FormTypeEnum, aF as transformUtils, f as SubTableType } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BmECtuSE.js";
|
|
4
4
|
import { has, merge } from "lodash-es";
|
|
5
5
|
function isBlank$4(value) {
|
|
@@ -3,7 +3,7 @@ import { pick } from "lodash-es";
|
|
|
3
3
|
import { Q as PaperWidgeValueType, a8 as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BmECtuSE.js";
|
|
4
4
|
import "dayjs";
|
|
5
5
|
import "ant-design-vue";
|
|
6
|
-
import { u as useSpreadSheet, h as useModelFields } from "./index-
|
|
6
|
+
import { u as useSpreadSheet, h as useModelFields } from "./index-BDXjjYXb.js";
|
|
7
7
|
const _hoisted_1 = { class: "ws-pre-wrap" };
|
|
8
8
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
9
9
|
__name: "text-design",
|
|
@@ -3,7 +3,7 @@ import { F as FIELD_TYPE, b0 as BindCmpStyleEnum } from "./dynamic-table-action.
|
|
|
3
3
|
import "vue";
|
|
4
4
|
import "dayjs";
|
|
5
5
|
import "ant-design-vue";
|
|
6
|
-
import { i as isSterilizationLotField, a as getSterilizationLotDisplayFields, s as showDisplayAndSearchConfig, r as resolveQuickSearchConfig } from "./index-
|
|
6
|
+
import { i as isSterilizationLotField, a as getSterilizationLotDisplayFields, s as showDisplayAndSearchConfig, r as resolveQuickSearchConfig } from "./index-BDXjjYXb.js";
|
|
7
7
|
function getTraceLikeSelectProps(data) {
|
|
8
8
|
const isSubtableMfgOrder = !!data.info.subModelKey && (data.info.bizType === FIELD_TYPE.MFG_ORDER || data.info.fieldType === FIELD_TYPE.MFG_ORDER);
|
|
9
9
|
const displayFields = (() => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, computed, resolveComponent, openBlock, createElementBlock, createVNode, withCtx, Fragment, renderList, createBlock, createTextVNode, toDisplayString, createElementVNode, unref, createCommentVNode } from "vue";
|
|
2
2
|
import { pick } from "lodash-es";
|
|
3
|
-
import { h as useModelFields, u as useSpreadSheet, m as useDrop, P as PanelType, T as TransferType, V as ValueEditorFieldDropBoxId, S as SingleDrop, o as getFieldIcon } from "./index-
|
|
3
|
+
import { h as useModelFields, u as useSpreadSheet, m as useDrop, P as PanelType, T as TransferType, V as ValueEditorFieldDropBoxId, S as SingleDrop, o as getFieldIcon } from "./index-BDXjjYXb.js";
|
|
4
4
|
import { Q as PaperWidgeValueType, at as ExpressionModeEnum, av as ExpressionTabEnum } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BmECtuSE.js";
|
|
5
5
|
import "dayjs";
|
|
6
6
|
import "ant-design-vue";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, computed, resolveComponent, openBlock, createElementBlock, Fragment, createVNode, withCtx, renderList, createBlock, createTextVNode, toDisplayString, createElementVNode } from "vue";
|
|
2
|
-
import { u as useSpreadSheet, B as BwipCodeTypeOptions, F as FormItem } from "./index-
|
|
3
|
-
import { _ as _sfc_main$1 } from "./value-editor.vue_vue_type_style_index_0_lang-
|
|
2
|
+
import { u as useSpreadSheet, B as BwipCodeTypeOptions, F as FormItem } from "./index-BDXjjYXb.js";
|
|
3
|
+
import { _ as _sfc_main$1 } from "./value-editor.vue_vue_type_style_index_0_lang-C5hFF1Ud.js";
|
|
4
4
|
import { o as PaperWidgeType } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BmECtuSE.js";
|
|
5
5
|
import "lodash-es";
|
|
6
6
|
import "dayjs";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent, computed, resolveComponent, openBlock, createBlock, normalizeClass, unref, withCtx, createElementVNode, toDisplayString, createVNode, watch, createElementBlock, Fragment, createCommentVNode } from "vue";
|
|
2
|
-
import { F as FormItem, q as SelectEx } from "./index-
|
|
2
|
+
import { F as FormItem, q as SelectEx } from "./index-BDXjjYXb.js";
|
|
3
3
|
import { defaults } from "lodash-es";
|
|
4
4
|
import { F as FIELD_TYPE, a8 as _export_sfc, aj as DiagonalDirection, an as DiagonalVertex, cq as migrateDiagonalDirectionToVertex } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BmECtuSE.js";
|
|
5
5
|
import "dayjs";
|
|
6
6
|
import { message } from "ant-design-vue";
|
|
7
7
|
import { a as useNamespace } from "./AntdIcon-DCIaV352.js";
|
|
8
|
-
import { S as SingleFieldDrop } from "./single-field-drop-
|
|
8
|
+
import { S as SingleFieldDrop } from "./single-field-drop-CILrDdkn.js";
|
|
9
9
|
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
10
10
|
__name: "diagonal-name-editor",
|
|
11
11
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, reactive, ref, computed, watchEffect, createVNode, unref, createTextVNode, render, resolveComponent, openBlock, createElementBlock, Fragment, withCtx, createElementVNode, withModifiers, createCommentVNode, toDisplayString, renderList, createBlock } from "vue";
|
|
2
|
-
import { L as LeftOutlined, R as RightOutlined, t as isClient, u as useSpreadSheet, F as FormItem, v as ImgParser } from "./index-
|
|
2
|
+
import { L as LeftOutlined, R as RightOutlined, t as isClient, u as useSpreadSheet, F as FormItem, v as ImgParser } from "./index-BDXjjYXb.js";
|
|
3
3
|
import { S as SizeEditor } from "./size-editor-DQJIuZCE.js";
|
|
4
4
|
import { message } from "ant-design-vue";
|
|
5
5
|
import { ak as WidgetImageSizeMode, a8 as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BmECtuSE.js";
|
|
@@ -3,7 +3,7 @@ import { al as LineDirection } from "./dynamic-table-action.vue_vue_type_style_i
|
|
|
3
3
|
import "lodash-es";
|
|
4
4
|
import "dayjs";
|
|
5
5
|
import "ant-design-vue";
|
|
6
|
-
import { F as FormItem, x as LineStyleOptions, C as ColorPicker } from "./index-
|
|
6
|
+
import { F as FormItem, x as LineStyleOptions, C as ColorPicker } from "./index-BDXjjYXb.js";
|
|
7
7
|
const _hoisted_1 = { class: "ks-row-middle" };
|
|
8
8
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
9
9
|
__name: "widget-line",
|
|
@@ -3,10 +3,10 @@ import { P as PaginationFormat } from "./dynamic-table-action.vue_vue_type_style
|
|
|
3
3
|
import "lodash-es";
|
|
4
4
|
import "dayjs";
|
|
5
5
|
import "ant-design-vue";
|
|
6
|
-
import { F as FormItem, y as PaginationFormatOptions } from "./index-
|
|
6
|
+
import { F as FormItem, y as PaginationFormatOptions } from "./index-BDXjjYXb.js";
|
|
7
7
|
import { S as SizeEditor } from "./size-editor-DQJIuZCE.js";
|
|
8
8
|
import { A as AlignEditor } from "./align-editor-wPpZ_4zH.js";
|
|
9
|
-
import { F as FontEditor } from "./font-editor-
|
|
9
|
+
import { F as FontEditor } from "./font-editor-CpisAVLZ.js";
|
|
10
10
|
const _hoisted_1 = { class: "pl-6px" };
|
|
11
11
|
const _hoisted_2 = { class: "pl-6px" };
|
|
12
12
|
const DefaultCustomFormat = "Page ${no} / ${total}";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, computed, resolveComponent, openBlock, createElementBlock, normalizeClass, unref, createVNode, withCtx, createTextVNode, toDisplayString } from "vue";
|
|
2
|
-
import { u as useSpreadSheet, E as useReverseModeling, F as FormItem } from "./index-
|
|
3
|
-
import { S as SingleFieldDrop } from "./single-field-drop-
|
|
2
|
+
import { u as useSpreadSheet, E as useReverseModeling, F as FormItem } from "./index-BDXjjYXb.js";
|
|
3
|
+
import { S as SingleFieldDrop } from "./single-field-drop-CILrDdkn.js";
|
|
4
4
|
import { a as useNamespace } from "./AntdIcon-DCIaV352.js";
|
|
5
5
|
import { F as FIELD_TYPE, a8 as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BmECtuSE.js";
|
|
6
6
|
import { message } from "ant-design-vue";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, computed, resolveComponent, openBlock, createElementBlock, Fragment, createVNode, withCtx, renderList, createBlock, createTextVNode, toDisplayString } from "vue";
|
|
2
|
-
import { u as useSpreadSheet, B as BwipCodeTypeOptions, F as FormItem } from "./index-
|
|
3
|
-
import { _ as _sfc_main$1 } from "./value-editor.vue_vue_type_style_index_0_lang-
|
|
2
|
+
import { u as useSpreadSheet, B as BwipCodeTypeOptions, F as FormItem } from "./index-BDXjjYXb.js";
|
|
3
|
+
import { _ as _sfc_main$1 } from "./value-editor.vue_vue_type_style_index_0_lang-C5hFF1Ud.js";
|
|
4
4
|
import { o as PaperWidgeType } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BmECtuSE.js";
|
|
5
5
|
import "lodash-es";
|
|
6
6
|
import "dayjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, computed, resolveComponent, openBlock, createElementBlock, normalizeClass, unref, Fragment, renderList, createVNode, withCtx } from "vue";
|
|
2
|
-
import { F as FormItem } from "./index-
|
|
3
|
-
import { S as SingleFieldDrop } from "./single-field-drop-
|
|
2
|
+
import { F as FormItem } from "./index-BDXjjYXb.js";
|
|
3
|
+
import { S as SingleFieldDrop } from "./single-field-drop-CILrDdkn.js";
|
|
4
4
|
import { a as useNamespace } from "./AntdIcon-DCIaV352.js";
|
|
5
5
|
import { F as FIELD_TYPE, a8 as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BmECtuSE.js";
|
|
6
6
|
import { message } from "ant-design-vue";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, computed, resolveComponent, openBlock, createElementBlock, Fragment, createVNode, withCtx } from "vue";
|
|
2
|
-
import { F as FormItem } from "./index-
|
|
2
|
+
import { F as FormItem } from "./index-BDXjjYXb.js";
|
|
3
3
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
4
|
__name: "widget-serialnumber",
|
|
5
5
|
props: {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent, computed, openBlock, createElementBlock, Fragment, createVNode, withCtx, createElementVNode } from "vue";
|
|
2
|
-
import { u as useSpreadSheet, F as FormItem } from "./index-
|
|
3
|
-
import { _ as _sfc_main$1 } from "./value-editor.vue_vue_type_style_index_0_lang-
|
|
2
|
+
import { u as useSpreadSheet, F as FormItem } from "./index-BDXjjYXb.js";
|
|
3
|
+
import { _ as _sfc_main$1 } from "./value-editor.vue_vue_type_style_index_0_lang-C5hFF1Ud.js";
|
|
4
4
|
import { S as SizeEditor } from "./size-editor-DQJIuZCE.js";
|
|
5
5
|
import { A as AlignEditor } from "./align-editor-wPpZ_4zH.js";
|
|
6
|
-
import { F as FontEditor } from "./font-editor-
|
|
6
|
+
import { F as FontEditor } from "./font-editor-CpisAVLZ.js";
|
|
7
7
|
const _hoisted_1 = { class: "pl-6px" };
|
|
8
8
|
const _hoisted_2 = { class: "pl-6px" };
|
|
9
9
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, computed, watch, resolveComponent, openBlock, createElementBlock, Fragment, createVNode, withCtx, renderList, unref, createBlock, createTextVNode, toDisplayString, createElementVNode } from "vue";
|
|
2
|
-
import { u as useSpreadSheet, h as useModelFields, F as FormItem } from "./index-
|
|
2
|
+
import { u as useSpreadSheet, h as useModelFields, F as FormItem } from "./index-BDXjjYXb.js";
|
|
3
3
|
import { F as FIELD_TYPE, am as TimeDiffFormat } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BmECtuSE.js";
|
|
4
4
|
import "lodash-es";
|
|
5
5
|
import "dayjs";
|
package/package.json
CHANGED
|
@@ -7022,150 +7022,6 @@ async function validateObjectBomQtyOnSubmit(opts) {
|
|
|
7022
7022
|
}
|
|
7023
7023
|
return errors;
|
|
7024
7024
|
}
|
|
7025
|
-
function isBlank(value) {
|
|
7026
|
-
return value == null || value === "";
|
|
7027
|
-
}
|
|
7028
|
-
function pickPresent(preferred, fallback) {
|
|
7029
|
-
return isBlank(preferred) ? fallback : preferred;
|
|
7030
|
-
}
|
|
7031
|
-
function resolveObjectFieldKeys(opts) {
|
|
7032
|
-
const obj = opts.objectFieldList?.find((item) => item.objectField === opts.belongingObject);
|
|
7033
|
-
const fromList = obj?.subFields ? pickObjectFieldKeys(obj.subFields, opts.belongingObject) : {};
|
|
7034
|
-
const fromFallback = pickObjectFieldKeys(opts.fallbackFields, opts.belongingObject, {
|
|
7035
|
-
requireUsed: false
|
|
7036
|
-
});
|
|
7037
|
-
return {
|
|
7038
|
-
productKey: pickPresent(fromList.productKey, fromFallback.productKey),
|
|
7039
|
-
productFieldName: fromList.productFieldName ?? fromFallback.productFieldName,
|
|
7040
|
-
materialNoKey: pickPresent(fromList.materialNoKey, fromFallback.materialNoKey),
|
|
7041
|
-
materialNoFieldName: fromList.materialNoFieldName ?? fromFallback.materialNoFieldName,
|
|
7042
|
-
qtyKey: pickPresent(fromList.qtyKey, fromFallback.qtyKey),
|
|
7043
|
-
qtyRequiredKey: pickPresent(fromList.qtyRequiredKey, fromFallback.qtyRequiredKey),
|
|
7044
|
-
qtyFieldName: fromList.qtyFieldName ?? fromFallback.qtyFieldName,
|
|
7045
|
-
bomEntryIdKey: pickPresent(fromList.bomEntryIdKey, fromFallback.bomEntryIdKey)
|
|
7046
|
-
};
|
|
7047
|
-
}
|
|
7048
|
-
function buildObjectLotExtraQuery(productId) {
|
|
7049
|
-
if (isBlank(productId)) return {};
|
|
7050
|
-
const versionId = String(productId).split(":").pop();
|
|
7051
|
-
if (!versionId) return {};
|
|
7052
|
-
return { "product_id_.versionEq": versionId };
|
|
7053
|
-
}
|
|
7054
|
-
function clearedLotFields(materialNoKey) {
|
|
7055
|
-
if (!materialNoKey) return {};
|
|
7056
|
-
return {
|
|
7057
|
-
[materialNoKey]: void 0,
|
|
7058
|
-
[`${materialNoKey}_id_`]: void 0,
|
|
7059
|
-
[`${materialNoKey}_lb_`]: void 0
|
|
7060
|
-
};
|
|
7061
|
-
}
|
|
7062
|
-
function shouldClearLotOnProductChange(opts) {
|
|
7063
|
-
const { prevProduct, nextProduct, lotValue } = opts;
|
|
7064
|
-
if (isBlank(prevProduct) && isBlank(nextProduct)) return false;
|
|
7065
|
-
if (prevProduct === nextProduct) return false;
|
|
7066
|
-
if (isBlank(prevProduct) && !isBlank(nextProduct) && !isBlank(lotValue)) {
|
|
7067
|
-
return false;
|
|
7068
|
-
}
|
|
7069
|
-
return true;
|
|
7070
|
-
}
|
|
7071
|
-
let fillingProduct = false;
|
|
7072
|
-
function runWithFillProduct(fn) {
|
|
7073
|
-
fillingProduct = true;
|
|
7074
|
-
try {
|
|
7075
|
-
fn();
|
|
7076
|
-
} finally {
|
|
7077
|
-
nextTick(() => {
|
|
7078
|
-
fillingProduct = false;
|
|
7079
|
-
});
|
|
7080
|
-
}
|
|
7081
|
-
}
|
|
7082
|
-
function resolveLotValidateParams(keys, formData, option) {
|
|
7083
|
-
return {
|
|
7084
|
-
product_id_: option?.product_id_ ?? option?._item?.product_id_ ?? (keys.productKey ? formData[keys.productKey] : void 0),
|
|
7085
|
-
material_no_: option?.name_ ?? option?.__VALUE__ ?? (keys.materialNoKey ? formData[keys.materialNoKey] : void 0),
|
|
7086
|
-
material_no_id_: option?.id_ ?? (keys.materialNoKey ? formData[`${keys.materialNoKey}_id_`] : void 0)
|
|
7087
|
-
};
|
|
7088
|
-
}
|
|
7089
|
-
async function applyConsumeObjectTraceChange(opts) {
|
|
7090
|
-
const { belongingObject, role, formData } = opts;
|
|
7091
|
-
if (!belongingObject || !formData) return {};
|
|
7092
|
-
const keys = resolveObjectFieldKeys({
|
|
7093
|
-
belongingObject,
|
|
7094
|
-
objectFieldList: opts.objectFieldList,
|
|
7095
|
-
fallbackFields: opts.fallbackFields
|
|
7096
|
-
});
|
|
7097
|
-
if (role === FIELD_TYPE.PRODUCT) {
|
|
7098
|
-
if (!("prevProduct" in opts) || fillingProduct) return {};
|
|
7099
|
-
const values = {};
|
|
7100
|
-
if (shouldClearLotOnProductChange({
|
|
7101
|
-
prevProduct: opts.prevProduct,
|
|
7102
|
-
nextProduct: opts.nextValue,
|
|
7103
|
-
lotValue: keys.materialNoKey ? formData[keys.materialNoKey] : void 0
|
|
7104
|
-
})) {
|
|
7105
|
-
Object.assign(values, clearedLotFields(keys.materialNoKey));
|
|
7106
|
-
}
|
|
7107
|
-
if (keys.bomEntryIdKey) {
|
|
7108
|
-
values[keys.bomEntryIdKey] = null;
|
|
7109
|
-
if (!isBlank(opts.nextValue) && opts.formInstBom) {
|
|
7110
|
-
const entry = resolveObjectBomEntry({
|
|
7111
|
-
formInstBom: opts.formInstBom,
|
|
7112
|
-
belongingObject,
|
|
7113
|
-
productId: String(opts.nextValue)
|
|
7114
|
-
});
|
|
7115
|
-
if (entry) values[keys.bomEntryIdKey] = entry.id_;
|
|
7116
|
-
}
|
|
7117
|
-
}
|
|
7118
|
-
opts.rowWriter.patchRow(values, "autofill");
|
|
7119
|
-
const lotValue = keys.materialNoKey ? formData[keys.materialNoKey] : void 0;
|
|
7120
|
-
if (!isBlank(opts.nextValue) && !isBlank(lotValue)) {
|
|
7121
|
-
try {
|
|
7122
|
-
await validateReinspectionDate({
|
|
7123
|
-
product_id_: String(opts.nextValue),
|
|
7124
|
-
material_no_: lotValue,
|
|
7125
|
-
material_no_id_: keys.materialNoKey ? formData[`${keys.materialNoKey}_id_`] : void 0
|
|
7126
|
-
});
|
|
7127
|
-
} catch (e) {
|
|
7128
|
-
return { abortReinspection: e?.message || String(e) };
|
|
7129
|
-
}
|
|
7130
|
-
}
|
|
7131
|
-
return {};
|
|
7132
|
-
}
|
|
7133
|
-
if (role === FIELD_TYPE.MATERIAL_NO) {
|
|
7134
|
-
if (opts.option?.is_locked_) {
|
|
7135
|
-
opts.rowWriter.patchRow(clearedLotFields(keys.materialNoKey), "autofill");
|
|
7136
|
-
return { abortLocked: opts.option.id_ };
|
|
7137
|
-
}
|
|
7138
|
-
const params = resolveLotValidateParams(keys, formData, opts.option);
|
|
7139
|
-
if (isBlank(params.material_no_) && isBlank(params.material_no_id_)) return {};
|
|
7140
|
-
try {
|
|
7141
|
-
await validateReinspectionDate(params);
|
|
7142
|
-
} catch (e) {
|
|
7143
|
-
opts.rowWriter.patchRow(clearedLotFields(keys.materialNoKey), "async");
|
|
7144
|
-
return { abortReinspection: e?.message || String(e) };
|
|
7145
|
-
}
|
|
7146
|
-
const values = {};
|
|
7147
|
-
const productId = opts.option?.product_id_ ?? opts.option?._item?.product_id_;
|
|
7148
|
-
if (keys.productKey && !isBlank(productId)) values[keys.productKey] = productId;
|
|
7149
|
-
if (keys.bomEntryIdKey && opts.formInstBom) {
|
|
7150
|
-
if (!isBlank(productId)) {
|
|
7151
|
-
const entry = resolveObjectBomEntry({
|
|
7152
|
-
formInstBom: opts.formInstBom,
|
|
7153
|
-
belongingObject,
|
|
7154
|
-
productId: String(productId)
|
|
7155
|
-
});
|
|
7156
|
-
if (entry) values[keys.bomEntryIdKey] = entry.id_;
|
|
7157
|
-
}
|
|
7158
|
-
}
|
|
7159
|
-
const patchRelatedFields = () => opts.rowWriter.patchRow(values, "autofill");
|
|
7160
|
-
if (keys.productKey && !isBlank(productId)) {
|
|
7161
|
-
runWithFillProduct(patchRelatedFields);
|
|
7162
|
-
} else {
|
|
7163
|
-
patchRelatedFields();
|
|
7164
|
-
}
|
|
7165
|
-
return {};
|
|
7166
|
-
}
|
|
7167
|
-
return {};
|
|
7168
|
-
}
|
|
7169
7025
|
function useRuntimeRowState(rowSource) {
|
|
7170
7026
|
const { formStateStore } = useRuntimeInstanceServices();
|
|
7171
7027
|
function requireStore() {
|
|
@@ -7912,6 +7768,150 @@ function useFormTmplConfig() {
|
|
|
7912
7768
|
injectController
|
|
7913
7769
|
};
|
|
7914
7770
|
}
|
|
7771
|
+
function isBlank(value) {
|
|
7772
|
+
return value == null || value === "";
|
|
7773
|
+
}
|
|
7774
|
+
function pickPresent(preferred, fallback) {
|
|
7775
|
+
return isBlank(preferred) ? fallback : preferred;
|
|
7776
|
+
}
|
|
7777
|
+
function resolveObjectFieldKeys(opts) {
|
|
7778
|
+
const obj = opts.objectFieldList?.find((item) => item.objectField === opts.belongingObject);
|
|
7779
|
+
const fromList = obj?.subFields ? pickObjectFieldKeys(obj.subFields, opts.belongingObject) : {};
|
|
7780
|
+
const fromFallback = pickObjectFieldKeys(opts.fallbackFields, opts.belongingObject, {
|
|
7781
|
+
requireUsed: false
|
|
7782
|
+
});
|
|
7783
|
+
return {
|
|
7784
|
+
productKey: pickPresent(fromList.productKey, fromFallback.productKey),
|
|
7785
|
+
productFieldName: fromList.productFieldName ?? fromFallback.productFieldName,
|
|
7786
|
+
materialNoKey: pickPresent(fromList.materialNoKey, fromFallback.materialNoKey),
|
|
7787
|
+
materialNoFieldName: fromList.materialNoFieldName ?? fromFallback.materialNoFieldName,
|
|
7788
|
+
qtyKey: pickPresent(fromList.qtyKey, fromFallback.qtyKey),
|
|
7789
|
+
qtyRequiredKey: pickPresent(fromList.qtyRequiredKey, fromFallback.qtyRequiredKey),
|
|
7790
|
+
qtyFieldName: fromList.qtyFieldName ?? fromFallback.qtyFieldName,
|
|
7791
|
+
bomEntryIdKey: pickPresent(fromList.bomEntryIdKey, fromFallback.bomEntryIdKey)
|
|
7792
|
+
};
|
|
7793
|
+
}
|
|
7794
|
+
function buildObjectLotExtraQuery(productId) {
|
|
7795
|
+
if (isBlank(productId)) return {};
|
|
7796
|
+
const versionId = String(productId).split(":").pop();
|
|
7797
|
+
if (!versionId) return {};
|
|
7798
|
+
return { "product_id_.versionEq": versionId };
|
|
7799
|
+
}
|
|
7800
|
+
function clearedLotFields(materialNoKey) {
|
|
7801
|
+
if (!materialNoKey) return {};
|
|
7802
|
+
return {
|
|
7803
|
+
[materialNoKey]: void 0,
|
|
7804
|
+
[`${materialNoKey}_id_`]: void 0,
|
|
7805
|
+
[`${materialNoKey}_lb_`]: void 0
|
|
7806
|
+
};
|
|
7807
|
+
}
|
|
7808
|
+
function shouldClearLotOnProductChange(opts) {
|
|
7809
|
+
const { prevProduct, nextProduct, lotValue } = opts;
|
|
7810
|
+
if (isBlank(prevProduct) && isBlank(nextProduct)) return false;
|
|
7811
|
+
if (prevProduct === nextProduct) return false;
|
|
7812
|
+
if (isBlank(prevProduct) && !isBlank(nextProduct) && !isBlank(lotValue)) {
|
|
7813
|
+
return false;
|
|
7814
|
+
}
|
|
7815
|
+
return true;
|
|
7816
|
+
}
|
|
7817
|
+
let fillingProduct = false;
|
|
7818
|
+
function runWithFillProduct(fn) {
|
|
7819
|
+
fillingProduct = true;
|
|
7820
|
+
try {
|
|
7821
|
+
fn();
|
|
7822
|
+
} finally {
|
|
7823
|
+
nextTick(() => {
|
|
7824
|
+
fillingProduct = false;
|
|
7825
|
+
});
|
|
7826
|
+
}
|
|
7827
|
+
}
|
|
7828
|
+
function resolveLotValidateParams(keys, formData, option) {
|
|
7829
|
+
return {
|
|
7830
|
+
product_id_: option?.product_id_ ?? option?._item?.product_id_ ?? (keys.productKey ? formData[keys.productKey] : void 0),
|
|
7831
|
+
material_no_: option?.name_ ?? option?.__VALUE__ ?? (keys.materialNoKey ? formData[keys.materialNoKey] : void 0),
|
|
7832
|
+
material_no_id_: option?.id_ ?? (keys.materialNoKey ? formData[`${keys.materialNoKey}_id_`] : void 0)
|
|
7833
|
+
};
|
|
7834
|
+
}
|
|
7835
|
+
async function applyConsumeObjectTraceChange(opts) {
|
|
7836
|
+
const { belongingObject, role, formData } = opts;
|
|
7837
|
+
if (!belongingObject || !formData) return {};
|
|
7838
|
+
const keys = resolveObjectFieldKeys({
|
|
7839
|
+
belongingObject,
|
|
7840
|
+
objectFieldList: opts.objectFieldList,
|
|
7841
|
+
fallbackFields: opts.fallbackFields
|
|
7842
|
+
});
|
|
7843
|
+
if (role === FIELD_TYPE.PRODUCT) {
|
|
7844
|
+
if (!("prevProduct" in opts) || fillingProduct) return {};
|
|
7845
|
+
const values = {};
|
|
7846
|
+
if (shouldClearLotOnProductChange({
|
|
7847
|
+
prevProduct: opts.prevProduct,
|
|
7848
|
+
nextProduct: opts.nextValue,
|
|
7849
|
+
lotValue: keys.materialNoKey ? formData[keys.materialNoKey] : void 0
|
|
7850
|
+
})) {
|
|
7851
|
+
Object.assign(values, clearedLotFields(keys.materialNoKey));
|
|
7852
|
+
}
|
|
7853
|
+
if (keys.bomEntryIdKey) {
|
|
7854
|
+
values[keys.bomEntryIdKey] = null;
|
|
7855
|
+
if (!isBlank(opts.nextValue) && opts.formInstBom) {
|
|
7856
|
+
const entry = resolveObjectBomEntry({
|
|
7857
|
+
formInstBom: opts.formInstBom,
|
|
7858
|
+
belongingObject,
|
|
7859
|
+
productId: String(opts.nextValue)
|
|
7860
|
+
});
|
|
7861
|
+
if (entry) values[keys.bomEntryIdKey] = entry.id_;
|
|
7862
|
+
}
|
|
7863
|
+
}
|
|
7864
|
+
opts.rowWriter.patchRow(values, "autofill");
|
|
7865
|
+
const lotValue = keys.materialNoKey ? formData[keys.materialNoKey] : void 0;
|
|
7866
|
+
if (!isBlank(opts.nextValue) && !isBlank(lotValue)) {
|
|
7867
|
+
try {
|
|
7868
|
+
await validateReinspectionDate({
|
|
7869
|
+
product_id_: String(opts.nextValue),
|
|
7870
|
+
material_no_: lotValue,
|
|
7871
|
+
material_no_id_: keys.materialNoKey ? formData[`${keys.materialNoKey}_id_`] : void 0
|
|
7872
|
+
});
|
|
7873
|
+
} catch (e) {
|
|
7874
|
+
return { abortReinspection: e?.message || String(e) };
|
|
7875
|
+
}
|
|
7876
|
+
}
|
|
7877
|
+
return {};
|
|
7878
|
+
}
|
|
7879
|
+
if (role === FIELD_TYPE.MATERIAL_NO) {
|
|
7880
|
+
if (opts.option?.is_locked_) {
|
|
7881
|
+
opts.rowWriter.patchRow(clearedLotFields(keys.materialNoKey), "autofill");
|
|
7882
|
+
return { abortLocked: opts.option.id_ };
|
|
7883
|
+
}
|
|
7884
|
+
const params = resolveLotValidateParams(keys, formData, opts.option);
|
|
7885
|
+
if (isBlank(params.material_no_) && isBlank(params.material_no_id_)) return {};
|
|
7886
|
+
try {
|
|
7887
|
+
await validateReinspectionDate(params);
|
|
7888
|
+
} catch (e) {
|
|
7889
|
+
opts.rowWriter.patchRow(clearedLotFields(keys.materialNoKey), "async");
|
|
7890
|
+
return { abortReinspection: e?.message || String(e) };
|
|
7891
|
+
}
|
|
7892
|
+
const values = {};
|
|
7893
|
+
const productId = opts.option?.product_id_ ?? opts.option?._item?.product_id_;
|
|
7894
|
+
if (keys.productKey && !isBlank(productId)) values[keys.productKey] = productId;
|
|
7895
|
+
if (keys.bomEntryIdKey && opts.formInstBom) {
|
|
7896
|
+
if (!isBlank(productId)) {
|
|
7897
|
+
const entry = resolveObjectBomEntry({
|
|
7898
|
+
formInstBom: opts.formInstBom,
|
|
7899
|
+
belongingObject,
|
|
7900
|
+
productId: String(productId)
|
|
7901
|
+
});
|
|
7902
|
+
if (entry) values[keys.bomEntryIdKey] = entry.id_;
|
|
7903
|
+
}
|
|
7904
|
+
}
|
|
7905
|
+
const patchRelatedFields = () => opts.rowWriter.patchRow(values, "autofill");
|
|
7906
|
+
if (keys.productKey && !isBlank(productId)) {
|
|
7907
|
+
runWithFillProduct(patchRelatedFields);
|
|
7908
|
+
} else {
|
|
7909
|
+
patchRelatedFields();
|
|
7910
|
+
}
|
|
7911
|
+
return {};
|
|
7912
|
+
}
|
|
7913
|
+
return {};
|
|
7914
|
+
}
|
|
7915
7915
|
const _hoisted_1$5 = ["data-merge", "data-fill-direction"];
|
|
7916
7916
|
const _hoisted_2$1 = {
|
|
7917
7917
|
key: 0,
|