@gct-paas/excel 0.1.39-beta.3 → 0.1.39-beta.30
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-MsYFQjlq.js → BaseComponent-BkwxLOiM.js} +2 -2
- package/dist/{VueVideoPlayer-B-X9Kvhp.js → VueVideoPlayer-DmZ_P4Cp.js} +2 -2
- package/dist/{align-editor-1IbAiPBg.js → align-editor-C1Fj-34U.js} +1 -1
- package/dist/{barcode-design-DPH8Uh2K.js → barcode-design-D90bLWOL.js} +2 -2
- package/dist/base/index.es.js +498 -195
- package/dist/{diagonal-design-AJOcMvxo.js → diagonal-design-YbEx-5SA.js} +2 -2
- package/dist/{dynamic-table-action-Bi7RdYoy.js → dynamic-table-action-DXlLVZZF.js} +349 -265
- package/dist/{dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-ClcBVLO0.js → dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-DlcK-wt_.js} +375 -299
- package/dist/{edit.utils-CXmmCnxE-88-QvdIv.js → edit.utils-CXmmCnxE-BMWwEMfe.js} +1 -1
- package/dist/excel.css +522 -332
- package/dist/{exceljs.min-D7RI5VAg.js → exceljs.min-B-mYUB0l.js} +2 -2
- package/dist/{font-editor-ttnkgG9j.js → font-editor-D0dV4bEL.js} +3 -3
- package/dist/{image-design-B84grap7.js → image-design-DkQBDv9K.js} +2 -2
- package/dist/{index-BbDITMyp.js → index-8GDKkzhT.js} +2 -2
- package/dist/{index-Db-ix7hC.js → index-B-hm9GED.js} +2 -2
- package/dist/{index-_h9yoejq.js → index-BEkX75av.js} +2 -2
- package/dist/{index-MJFci9IB.js → index-BKmJ_uM2.js} +1 -1
- package/dist/{index-CUHfI8cg.js → index-BPvsxMaD.js} +1 -1
- package/dist/{index-UCNknVxk.js → index-BYpPubsS.js} +1 -1
- package/dist/{index-Doz8Gf_5.js → index-BgL2ciTw.js} +1 -1
- package/dist/{index-_ZsA68LD.js → index-Boj1Babg.js} +2 -2
- package/dist/{index-BKBn7Evl.js → index-C0gB21qk.js} +2 -2
- package/dist/{index-7YbJRzdP.js → index-CHv965Bj.js} +2 -2
- package/dist/{index-DgdosgZd.js → index-CNSt1kk7.js} +2 -2
- package/dist/{index-CLL_9LZB.js → index-CVPJGks5.js} +2 -2
- package/dist/{index-ChncMTkv.js → index-CaKVMIWJ.js} +1 -1
- package/dist/{index-Bb41zgXE.js → index-CfLLsSW6.js} +2 -2
- package/dist/{index-CuGZ6C7l.js → index-CiyvJops.js} +2 -2
- package/dist/{index-CR2Qyh5l.js → index-CrnlU1jr.js} +6 -5
- package/dist/{index-DCzL4GOP.js → index-D19ggbiC.js} +53 -5
- package/dist/{index-D9xmHJZc.js → index-D9BcQ25Q.js} +2 -2
- package/dist/{index-CX6LqGJP.js → index-DOGxYpwq.js} +1 -1
- package/dist/{index-D0Q-6EtG.js → index-DWrIPK_U.js} +1 -1
- package/dist/{index-89I_eBZ-.js → index-DZYpzeZM.js} +3 -3
- package/dist/{index-jRA6sXVY.js → index-Dgs95dud.js} +1 -1
- package/dist/{index-C_FegWKd.js → index-DlfthBvr.js} +2 -2
- package/dist/{index-DBT8-Qit.js → index-DsS5smhd.js} +3 -3
- package/dist/{index-DAN58pC9.js → index-DyLoooUC.js} +2 -2
- package/dist/{index-IRXUwksU.js → index-DzmKXFwH.js} +2 -2
- package/dist/{index-DNmbm6HV.js → index-K9yUIBxc.js} +6 -5
- package/dist/{index-DHHyy4mL.js → index-V3FsjgC2.js} +1 -1
- package/dist/{index-C90vW_gE.js → index-VBBgqHqv.js} +3 -3
- package/dist/{index-ab9KSEKp.js → index-Zr4W3H4i.js} +2 -2
- package/dist/{index-DmBNvVlZ.js → index-jfKiyRsE.js} +1327 -1111
- package/dist/{index-EhaPjLBG.js → index-lSMZmF7U.js} +2 -2
- package/dist/{index-B5NG2ONv.js → index-rDv1Pb8y.js} +2 -2
- package/dist/{index-n1HZa-Ar.js → index-ulVZgzRz.js} +2 -2
- package/dist/{index-_-ORWa-m.js → index-w1Oz-JSm.js} +1 -1
- package/dist/index.es.js +2 -2
- package/dist/{mb-render-BZDgmpm9.js → mb-render-Dc2J-VKn.js} +9 -3
- package/dist/{online-form-model-select.vue_vue_type_script_setup_true_name_online-form-model-select_lang-Ciue53Ue.js → online-form-model-select.vue_vue_type_script_setup_true_name_online-form-model-select_lang-D60Qjkgq.js} +8 -1
- package/dist/{pagination-design-DU2ZuaY4.js → pagination-design-J5Xr1H6H.js} +2 -2
- package/dist/paper-widget-design-mppU2AMx.js +4 -0
- package/dist/{print-runtime-instance-ydLRVd0y.js → print-runtime-instance-CkGherFi.js} +1 -1
- package/dist/{print-snapshot-renderer-C3fEtvNI.js → print-snapshot-renderer-BxrmKmGQ.js} +3 -3
- package/dist/{qrcode-design-BXlQ5QTm.js → qrcode-design-DJciYm3W.js} +1 -1
- package/dist/{revo-grid.entry-DdE6cuGJ.js → revo-grid.entry-D2XU7yfg.js} +1 -1
- package/dist/{revogr-attribution_7.entry-Er1fVrov.js → revogr-attribution_7.entry-DiKuD6Oj.js} +3 -3
- package/dist/{revogr-clipboard_3.entry-COq2SN-B.js → revogr-clipboard_3.entry-BaU8s-5o.js} +2 -2
- package/dist/{revogr-data_4.entry--CfGDdVK.js → revogr-data_4.entry-D6AqE208.js} +2 -2
- package/dist/{revogr-filter-panel.entry-DoNXkBy6.js → revogr-filter-panel.entry-B0-_hrSZ.js} +1 -1
- package/dist/seal-design-FsL7H3e7.js +4 -0
- package/dist/{serialnumber-design-fMRSi9jn.js → serialnumber-design-BfeGFYY4.js} +1 -1
- package/dist/shared/index.es.js +10 -8
- package/dist/{single-field-drop-CYcOH6mT.js → single-field-drop-wg47buz7.js} +2 -2
- package/dist/{size-editor-BKJfYgbR.js → size-editor-hnWquuM2.js} +1 -1
- package/dist/src/domain/table/business/material/material-balance/profile/fields.d.ts +2 -0
- package/dist/src/domain/table/business/preprocess/pretreatment-list/profile/field-keys.d.ts +1 -7
- package/dist/src/domain/table/business/sterilize/entrust-steril-batch-list/profile/fields.d.ts +2 -0
- package/dist/src/nocode-base/src/core/sub-table/allocate-table-core.d.ts +2 -1
- package/dist/src/nocode-base/src/core/sub-table/sub-table-core.d.ts +2 -1
- package/dist/src/nocode-base/src/hooks/form-model/form-model-controller.d.ts +2 -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/material-consume-object/bom-validator.d.ts +4 -3
- package/dist/src/nocode-base/src/hooks/material-consume-object/initialize-autofill.d.ts +19 -0
- package/dist/src/nocode-base/src/hooks/material-consume-object/object-validation-controller.d.ts +24 -0
- package/dist/src/nocode-base/src/interface/render.d.ts +3 -1
- package/dist/src/nocode-base/src/interface/transform.d.ts +9 -1
- package/dist/src/nocode-base/src/runtime/async-task-coordinator.d.ts +6 -2
- package/dist/src/nocode-base/src/runtime/multi-sheet-runtime.d.ts +5 -1
- package/dist/src/nocode-base/src/runtime/runtime-context.d.ts +4 -0
- package/dist/src/nocode-base/src/runtime/runtime-field-initializer.d.ts +1 -1
- package/dist/src/nocode-base/src/runtime/runtime-validation-service.d.ts +1 -0
- package/dist/src/nocode-base/src/types/render/mc-render.d.ts +1 -1
- 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/nocode-web-render/src/render/sub-table/material-consume/mc-web-render.d.ts +1 -1
- package/dist/src/online-form/src/views/__cell_widgets__/cell-widget-design.vue.d.ts +1 -0
- package/dist/src/online-form/src/views/__cell_widgets__/common/display-fields-editor/display-fields.util.d.ts +2 -2
- package/dist/src/online-form/src/views/__cell_widgets__/common/quick-search-editor/quick-search.util.d.ts +8 -0
- package/dist/src/online-form/src/views/__cell_widgets__/fake-field/fake-option-select.vue.d.ts +1 -0
- package/dist/src/online-form/src/views/designer/conversions/normalize-paper-grid.d.ts +3 -0
- package/dist/src/online-form/src/views/render/__components__/_field_/trace/utils/use-rule-props.d.ts +0 -3
- package/dist/src/online-form/src/views/render/sheet-tab-bar.vue.d.ts +5 -3
- package/dist/src/shared/enum/field-type.d.ts +2 -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-DxM8KQoS.js → sub-table-factory-DCjl5fld.js} +19 -7
- package/dist/{text-design-8Za9qOSI.js → text-design-BQqBHcG3.js} +2 -2
- package/dist/{throttle-Cpk1LoGk-BI0wP2Le.js → throttle-Cpk1LoGk-C-bCLTWf.js} +1 -1
- package/dist/{timediff-design-O1IfzLVD.js → timediff-design-DzNFXX0B.js} +1 -1
- package/dist/{trace-like-wrapper-BPNmxIDn.js → trace-like-wrapper-BO9GpUUT.js} +2 -2
- package/dist/{value-editor.vue_vue_type_style_index_0_lang-CQ0YP-OF.js → value-editor.vue_vue_type_style_index_0_lang-NrJ6BC4L.js} +2 -2
- package/dist/web-render/index.es.js +3 -3
- package/dist/{widget-barcode-C38yawCK.js → widget-barcode-CqFwMMNr.js} +4 -4
- package/dist/{widget-diagonal-abcgVyu4.js → widget-diagonal-Bv7rOoCE.js} +3 -3
- package/dist/{widget-image-DcSNslZ-.js → widget-image-C7uAoxCn.js} +5 -5
- package/dist/{widget-line-CttlnK7g.js → widget-line-DjEbtHhc.js} +2 -2
- package/dist/{widget-pagination-BNG9Rszh.js → widget-pagination-Dc4pC9a8.js} +5 -5
- package/dist/{widget-power-DaC1id-m.js → widget-power-9LyPBlNG.js} +3 -3
- package/dist/{widget-qrcode-BRFsOH44.js → widget-qrcode-wY0Htp8v.js} +3 -3
- package/dist/{widget-rangelimit-fA6YF2E2.js → widget-rangelimit-CT9yqbbL.js} +3 -3
- package/dist/{widget-serialnumber-mnpGMXuB.js → widget-serialnumber-CChK8wrF.js} +1 -1
- package/dist/{widget-text-gHJcpS1w.js → widget-text-mWwms2HC.js} +5 -5
- package/dist/{widget-timediff-ByHm9Dg3.js → widget-timediff-GSd_w8qO.js} +2 -2
- package/package.json +2 -2
- package/dist/paper-widget-design-BE_wOTpv.js +0 -4
- package/dist/seal-design-7aKsQ6RT.js +0 -4
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { get, pick } from "lodash-es";
|
|
2
|
-
import { C as ComponentTypeEnum, F as FIELD_TYPE, ax as RangeCompareOp, aw as RangeValidateMode } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-
|
|
2
|
+
import { C as ComponentTypeEnum, F as FIELD_TYPE, ax as RangeCompareOp, aw as RangeValidateMode } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-DlcK-wt_.js";
|
|
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-BkwxLOiM.js";
|
|
7
7
|
class DateTimepicker extends BaseComponent {
|
|
8
8
|
component = ComponentTypeEnum.DateTimepicker;
|
|
9
9
|
wrapperCmpConfig({ data }) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { f as fontStyleAttrs } from "./config.enum-B8UZQTON.js";
|
|
2
|
-
import { C as ComponentTypeEnum, o as PaperWidgeType } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-
|
|
2
|
+
import { C as ComponentTypeEnum, o as PaperWidgeType } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-DlcK-wt_.js";
|
|
3
3
|
import "vue";
|
|
4
4
|
import { pick } from "lodash-es";
|
|
5
5
|
import "dayjs";
|
|
6
6
|
import "ant-design-vue";
|
|
7
|
-
import { n as normalizeSpacerWidth, g as getFieldWidget } from "./index-
|
|
7
|
+
import { n as normalizeSpacerWidth, g as getFieldWidget } from "./index-jfKiyRsE.js";
|
|
8
8
|
class CombineFields {
|
|
9
9
|
component = ComponentTypeEnum.CombineFields;
|
|
10
10
|
wrapperCmpConfig({ data }) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { get } from "lodash-es";
|
|
2
|
-
import { C as ComponentTypeEnum, O as Orientation, a1 as BooleanShowMode, a0 as LabelPosition } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-
|
|
2
|
+
import { C as ComponentTypeEnum, O as Orientation, a1 as BooleanShowMode, a0 as LabelPosition } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-DlcK-wt_.js";
|
|
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-BkwxLOiM.js";
|
|
7
7
|
class DynValue extends BaseComponent {
|
|
8
8
|
component = ComponentTypeEnum.DynValue;
|
|
9
9
|
wrapperCmpConfig({ data }) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as PageSizeEnum, C as ComponentTypeEnum } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-
|
|
1
|
+
import { p as PageSizeEnum, C as ComponentTypeEnum } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-DlcK-wt_.js";
|
|
2
2
|
import "vue";
|
|
3
3
|
import { cloneDeep, has, isNil, isEmpty } from "lodash-es";
|
|
4
4
|
import "dayjs";
|
package/dist/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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-
|
|
2
|
-
import { O as O2, _, V } from "./online-form-model-select.vue_vue_type_script_setup_true_name_online-form-model-select_lang-
|
|
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-jfKiyRsE.js";
|
|
2
|
+
import { O as O2, _, V } from "./online-form-model-select.vue_vue_type_script_setup_true_name_online-form-model-select_lang-D60Qjkgq.js";
|
|
3
3
|
export {
|
|
4
4
|
G as AiTmplEditor,
|
|
5
5
|
H as AiTmplModal,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { reactive, inject, provide } from "vue";
|
|
2
|
-
import { E as api, F as FIELD_TYPE, H as CreateType } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-
|
|
2
|
+
import { E as api, F as FIELD_TYPE, H as CreateType } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-DlcK-wt_.js";
|
|
3
3
|
class MCRender {
|
|
4
4
|
/**
|
|
5
5
|
* 提示信息
|
|
@@ -55,7 +55,7 @@ class MCRender {
|
|
|
55
55
|
/**
|
|
56
56
|
* 销毁所有固定的模态
|
|
57
57
|
*/
|
|
58
|
-
//
|
|
58
|
+
// overlay 弹层按实例销毁;form-base 弹层通过其全局关闭接口清理。
|
|
59
59
|
destroyAllModals(_ownerId) {
|
|
60
60
|
throw new Error("Function destroyAllModals not implemented.");
|
|
61
61
|
}
|
|
@@ -162,7 +162,9 @@ class FormModelController {
|
|
|
162
162
|
*/
|
|
163
163
|
getFormFieldOptions(subModelKey) {
|
|
164
164
|
const fields = subModelKey ? this.getSubModelFields(subModelKey) : this.masterModel?.fields;
|
|
165
|
-
return (fields ?? []).filter(
|
|
165
|
+
return (fields ?? []).filter(
|
|
166
|
+
(field) => !this.isSystemField(field) && !this.isSubField(field) && !this.isObjectField(field)
|
|
167
|
+
).map((field) => ({
|
|
166
168
|
...field,
|
|
167
169
|
label: `${field.name}`,
|
|
168
170
|
value: `${field.modelKey}.${field.key}`
|
|
@@ -215,6 +217,10 @@ class FormModelController {
|
|
|
215
217
|
isSystemField(field) {
|
|
216
218
|
return field.createType === CreateType.SYSTEM;
|
|
217
219
|
}
|
|
220
|
+
/** 是否是对象字段类型 */
|
|
221
|
+
isObjectField(field) {
|
|
222
|
+
return field.type === FIELD_TYPE.OBJECT_TYPE;
|
|
223
|
+
}
|
|
218
224
|
/**
|
|
219
225
|
* 获取主模型里子表字段对应的子模型key
|
|
220
226
|
*
|
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
import { createVNode, defineComponent, computed, openBlock, createElementBlock, normalizeStyle, normalizeClass, unref, Fragment, createElementVNode, createTextVNode, toDisplayString, renderList, createBlock, createCommentVNode, ref, onMounted, resolveComponent, nextTick, watch, withCtx, withKeys, mergeProps, h, toRaw, withModifiers } from "vue";
|
|
2
2
|
import { I as Icon, a as useNamespace } from "./AntdIcon-DCIaV352.js";
|
|
3
|
-
import { Y as FormTypeEnum, a8 as _export_sfc, aA as FormDesignEnum, E as api, J as useModal,
|
|
3
|
+
import { Y as FormTypeEnum, a8 as _export_sfc, aA as FormDesignEnum, E as api, J as useModal, bQ as ControlStatusEnum } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-DlcK-wt_.js";
|
|
4
4
|
import { isArray, cloneDeep, orderBy } from "lodash-es";
|
|
5
5
|
import "dayjs";
|
|
6
6
|
import { Form } from "ant-design-vue";
|
|
7
7
|
import { VxeTable, VxeColumn } from "vxe-table";
|
|
8
|
+
var ProductTypeEnum = /* @__PURE__ */ ((ProductTypeEnum2) => {
|
|
9
|
+
ProductTypeEnum2["RAW_MATERIAL"] = "rawMaterial";
|
|
10
|
+
ProductTypeEnum2["SEMI_FINISHED_PRODUCT"] = "semiFinishedProduct";
|
|
11
|
+
ProductTypeEnum2["FINISHED_PRODUCT"] = "finishedProduct";
|
|
12
|
+
return ProductTypeEnum2;
|
|
13
|
+
})(ProductTypeEnum || {});
|
|
8
14
|
var SEARCH_SEVICE = /* @__PURE__ */ ((SEARCH_SEVICE2) => {
|
|
9
15
|
SEARCH_SEVICE2["EQ"] = "eq";
|
|
10
16
|
SEARCH_SEVICE2["IEQ"] = "iEq";
|
|
@@ -1270,6 +1276,7 @@ export {
|
|
|
1270
1276
|
CloseOutlined as C,
|
|
1271
1277
|
EmptyImg as E,
|
|
1272
1278
|
OnlineFormModelModal as O,
|
|
1279
|
+
ProductTypeEnum as P,
|
|
1273
1280
|
SEARCH_SEVICE as S,
|
|
1274
1281
|
VersionSelect as V,
|
|
1275
1282
|
_sfc_main as _
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent, computed, openBlock, createElementBlock, normalizeStyle, toDisplayString } from "vue";
|
|
2
|
-
import { P as PaginationFormat } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-
|
|
2
|
+
import { P as PaginationFormat } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-DlcK-wt_.js";
|
|
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-jfKiyRsE.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-jfKiyRsE.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,
|
|
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-DXlLVZZF.js";
|
|
3
|
+
import { S as SubTableCoreFactory, R as RuntimeInstanceController } from "./sub-table-factory-DCjl5fld.js";
|
|
4
|
+
import { _ as _sfc_main$1 } from "./index-jfKiyRsE.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-jfKiyRsE.js";
|
|
3
3
|
const _hoisted_1 = ["src"];
|
|
4
4
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
5
|
__name: "qrcode-design",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { dl as registerInstance, dm as createEvent, dn as getColumnByProp, dp as timeout, dq as getVisibleSourceItem, dr as getColumns, ds as rowTypes, dt as GroupingRowPlugin, du as StretchColumn, dv as isStretchPlugin, dw as AutoSizeColumnPlugin, dx as FilterPlugin, dy as ExportFilePlugin, dz as SortingPlugin, dA as ColumnMovePlugin, dB as ThemeService, dC as h, dD as Host, dE as getElement, dF as BasePlugin, dG as reduce, dH as columnTypes, dI as debounce, dJ as RESIZE_INTERVAL, dK as DimensionStore, dL as gatherTrimmedItems, dM as getColumnSizes, dN as getItemByIndex, dO as DataStore, dP as getSourceItem, dQ as getSourceItemVirtualIndexByProp, dR as getColumnType, dS as setSourceByPhysicalIndex, dT as setSourceByVirtualIndex, dU as SelectionStore, dV as cropCellToMax, dW as nextCell, dX as isRowType, dY as ViewportStore } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-DlcK-wt_.js";
|
|
2
2
|
import { H as HEADER_SLOT, D as DATA_SLOT, g as getScrollDimension, v as viewportDataPartition, F as FOOTER_SLOT, C as CONTENT_SLOT } from "./viewport.helpers-CoCAvmZs-D_JddDC6.js";
|
|
3
3
|
import { g as getPropertyFromEvent } from "./events-BvSmBueA-VK7djXcC.js";
|
|
4
4
|
class ColumnDataProvider {
|
package/dist/{revogr-attribution_7.entry-Er1fVrov.js → revogr-attribution_7.entry-DiKuD6Oj.js}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { dl as registerInstance, dC as h, dD as Host, dm as createEvent, dP as getSourceItem, dE as getElement, e1 as ColumnService, e2 as MOBILE_CLASS, e3 as SELECTION_BORDER_CLASS, e4 as getCellData, e5 as getCellEditor, e6 as getRange, e7 as isRangeSingleCell, e8 as codesLetter, dY as ViewportStore, dO as DataStore, e9 as calculateRowHeaderSize, ea as ROW_HEADER_TYPE, eb as getScrollbarSize, ec as FOCUS_CLASS, dN as getItemByIndex, dp as timeout, ed as CELL_HANDLER_CLASS, dI as debounce, ee as TMP_SELECTION_BG_CLASS, dJ as RESIZE_INTERVAL, ef as getItemByPosition } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-DlcK-wt_.js";
|
|
2
2
|
import { v as verifyTouchTarget, g as getPropertyFromEvent } from "./events-BvSmBueA-VK7djXcC.js";
|
|
3
|
-
import { i as isEditInput, a as isShortcutModifier, b as isClear, c as isTab, d as isEnterKeyValue, e as isCopy, f as isCut, g as isPaste, h as isAll } from "./edit.utils-CXmmCnxE-
|
|
3
|
+
import { i as isEditInput, a as isShortcutModifier, b as isClear, c as isTab, d as isEnterKeyValue, e as isCopy, f as isCut, g as isPaste, h as isAll } from "./edit.utils-CXmmCnxE-BMWwEMfe.js";
|
|
4
4
|
import { H as HEADER_SLOT } from "./viewport.helpers-CoCAvmZs-D_JddDC6.js";
|
|
5
|
-
import { L as LocalScrollTimer, a as LocalScrollService, g as getContentSize, t as throttle } from "./throttle-Cpk1LoGk-
|
|
5
|
+
import { L as LocalScrollTimer, a as LocalScrollService, g as getContentSize, t as throttle } from "./throttle-Cpk1LoGk-C-bCLTWf.js";
|
|
6
6
|
const Attribution = class {
|
|
7
7
|
constructor(hostRef) {
|
|
8
8
|
registerInstance(this, hostRef);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { d as isEnterKeyValue, c as isTab, j as isEditorCtrConstructible } from "./edit.utils-CXmmCnxE-
|
|
1
|
+
import { dp as timeout, dl as registerInstance, dm as createEvent, dC as h, eg as EDIT_INPUT_WR, dD as Host, dE as getElement, dI as debounce, ej as DRAGG_TEXT, dP as getSourceItem, ef as getItemByPosition } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-DlcK-wt_.js";
|
|
2
|
+
import { d as isEnterKeyValue, c as isTab, j as isEditorCtrConstructible } from "./edit.utils-CXmmCnxE-BMWwEMfe.js";
|
|
3
3
|
class TextEditor {
|
|
4
4
|
constructor(data, saveCallback) {
|
|
5
5
|
this.data = data;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { L as LocalScrollTimer, a as LocalScrollService, g as getContentSize, t as throttle } from "./throttle-Cpk1LoGk-
|
|
1
|
+
import { ek as PSEUDO_GROUP_ITEM, el as GROUP_EXPANDED, em as GROUP_DEPTH, dC as h, en as GROUP_EXPAND_BTN, eo as DATA_ROW, dP as getSourceItem, ep as isGroupingColumn, eq as GROUP_COLUMN_PROP, er as getCellRaw, es as DATA_COL, et as CELL_CLASS, eu as Build, ev as isRowDragService, ew as DRAG_ICON_CLASS, ex as DRAGGABLE_CLASS, ey as getCellDataParsed, ez as GROUP_EXPAND_EVENT, dl as registerInstance, dm as createEvent, e1 as ColumnService, eA as isGrouping, dD as Host, dE as getElement, dN as getItemByIndex, eB as HEADER_ROW_CLASS, eC as HEADER_ACTUAL_ROW_CLASS, eD as ROW_FOCUSED_CLASS, eE as HEADER_SORTABLE_CLASS, eF as MIN_COL_SIZE, ec as FOCUS_CLASS, eG as FilterButton, eH as HeaderCellRenderer, eI as HEADER_CLASS } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-DlcK-wt_.js";
|
|
2
|
+
import { L as LocalScrollTimer, a as LocalScrollService, g as getContentSize, t as throttle } from "./throttle-Cpk1LoGk-C-bCLTWf.js";
|
|
3
3
|
import { H as HEADER_SLOT, C as CONTENT_SLOT, F as FOOTER_SLOT } from "./viewport.helpers-CoCAvmZs-D_JddDC6.js";
|
|
4
4
|
const SortingSign = ({ column }) => {
|
|
5
5
|
var _a;
|
package/dist/{revogr-filter-panel.entry-DoNXkBy6.js → revogr-filter-panel.entry-B0-_hrSZ.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { dl as registerInstance, dm as createEvent, dI as debounce, dC as h, dZ as AndOrButton, d_ as ReorderButton, d$ as TrashButton, e0 as isFilterBtn, dD as Host, dE as getElement } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-DlcK-wt_.js";
|
|
2
2
|
(function closest() {
|
|
3
3
|
if (!Element.prototype.matches) {
|
|
4
4
|
Element.prototype.matches = Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, openBlock, createElementBlock, createElementVNode, toDisplayString } from "vue";
|
|
2
|
-
import { a8 as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-
|
|
2
|
+
import { a8 as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-DlcK-wt_.js";
|
|
3
3
|
const _hoisted_1 = { class: "absolute top-0px left-0px h-full w-full serialnumber-area" };
|
|
4
4
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
5
|
__name: "serialnumber-design",
|
package/dist/shared/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { aH, aB, q,
|
|
2
|
-
import { O, _, S, V as V2 } from "../online-form-model-select.vue_vue_type_script_setup_true_name_online-form-model-select_lang-
|
|
1
|
+
import { aH, aB, q, cJ, H, aI, aJ, cK, at, av, F, X, af, G, aA, bo, a$, cL, au, T, cM, V, W, bp, a9, U } from "../dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-DlcK-wt_.js";
|
|
2
|
+
import { O, _, P, S, V as V2 } from "../online-form-model-select.vue_vue_type_script_setup_true_name_online-form-model-select_lang-D60Qjkgq.js";
|
|
3
3
|
var Platform = /* @__PURE__ */ ((Platform2) => {
|
|
4
4
|
Platform2["WEB"] = "web";
|
|
5
5
|
Platform2["MOBILE"] = "mobile";
|
|
@@ -57,11 +57,11 @@ export {
|
|
|
57
57
|
ButtonStyle,
|
|
58
58
|
ButtonType,
|
|
59
59
|
ButtonType_vant,
|
|
60
|
-
|
|
60
|
+
cJ as CardControlEnum,
|
|
61
61
|
H as CreateType,
|
|
62
62
|
aI as Dependency_ENUM,
|
|
63
63
|
aJ as EntityModelCategoryEnum,
|
|
64
|
-
|
|
64
|
+
cK as EntityModelTypeEnum,
|
|
65
65
|
at as ExpressionModeEnum,
|
|
66
66
|
av as ExpressionTabEnum,
|
|
67
67
|
F as FIELD_TYPE,
|
|
@@ -69,21 +69,23 @@ export {
|
|
|
69
69
|
af as FieldIconMap,
|
|
70
70
|
G as FieldTypeToJs,
|
|
71
71
|
aA as FormDesignEnum,
|
|
72
|
-
|
|
72
|
+
bo as FormulaRuleFieldKeyEnum,
|
|
73
73
|
GctMqttTopsEnum,
|
|
74
74
|
O as OnlineFormModelModal,
|
|
75
75
|
_ as OnlineFormModelSelect,
|
|
76
76
|
Platform,
|
|
77
|
-
|
|
77
|
+
P as ProductTypeEnum,
|
|
78
|
+
a$ as ProductionIdentificationTypeEnum,
|
|
79
|
+
cL as RecordNoGenerateEnum,
|
|
78
80
|
au as ReturnTypeEnum,
|
|
79
81
|
S as SEARCH_SEVICE,
|
|
80
82
|
SignatureTypeEnum,
|
|
81
83
|
T as TRACE_FIELD_TYPES,
|
|
82
|
-
|
|
84
|
+
cM as TagTypeEnum,
|
|
83
85
|
V as UniqueConstraintType,
|
|
84
86
|
V2 as VersionSelect,
|
|
85
87
|
W as WAREHOUSE_FIELD_TYPES,
|
|
86
|
-
|
|
88
|
+
bp as formulaRuleFieldDict,
|
|
87
89
|
a9 as normalizeFieldType,
|
|
88
90
|
U as onlineFormMasterModelTypeEnum
|
|
89
91
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
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-
|
|
4
|
-
import { a8 as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-
|
|
3
|
+
import { m as useDrop, T as TransferType, h as useModelFields, o as getFieldIcon, S as SingleDrop } from "./index-jfKiyRsE.js";
|
|
4
|
+
import { a8 as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-DlcK-wt_.js";
|
|
5
5
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
6
|
__name: "single-field-drop",
|
|
7
7
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, computed, resolveComponent, openBlock, createElementBlock, createElementVNode, toDisplayString, createVNode } from "vue";
|
|
2
|
-
import { a8 as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-
|
|
2
|
+
import { a8 as _export_sfc } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-DlcK-wt_.js";
|
|
3
3
|
const _hoisted_1 = { class: "row" };
|
|
4
4
|
const _hoisted_2 = { class: "row mt-6px" };
|
|
5
5
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -51,7 +51,7 @@ export declare const CLEAR_ON_MATERIAL_CONTAINER_SELECT: readonly ["production_c
|
|
|
51
51
|
export declare const CLEAR_ON_PRODUCT_EMPTY: readonly ["product_id_name_", "product_id_code_", "product_id_spec_"];
|
|
52
52
|
/** 相关字段变更时需重算物料禁用态 */
|
|
53
53
|
export declare const PRODUCT_EDITABILITY_WATCH: readonly ["material_container_no_", "material_container_no__id_", "mfg_order_id_", "production_container_id_"];
|
|
54
|
-
/** 生产批次 /
|
|
54
|
+
/** 生产批次 / 物料批选项回填:仅带出工单号,工单选择项保持互斥 */
|
|
55
55
|
export declare const FILL_FROM_CONTAINER_OPTION: readonly [{
|
|
56
56
|
readonly optionField: "product_id_";
|
|
57
57
|
readonly toField: "product_id_";
|
|
@@ -64,9 +64,6 @@ export declare const FILL_FROM_CONTAINER_OPTION: readonly [{
|
|
|
64
64
|
}, {
|
|
65
65
|
readonly optionField: "product_id_spec_";
|
|
66
66
|
readonly toField: "product_id_spec_";
|
|
67
|
-
}, {
|
|
68
|
-
readonly optionField: "mfg_order_id_";
|
|
69
|
-
readonly toField: "mfg_order_id_";
|
|
70
67
|
}, {
|
|
71
68
|
readonly optionField: "mfg_order_code_";
|
|
72
69
|
readonly toField: "mfg_order_code_";
|
|
@@ -127,9 +124,6 @@ export declare const fillFromOption: readonly [{
|
|
|
127
124
|
}, {
|
|
128
125
|
readonly optionField: "product_id_spec_";
|
|
129
126
|
readonly toField: "product_id_spec_";
|
|
130
|
-
}, {
|
|
131
|
-
readonly optionField: "mfg_order_id_";
|
|
132
|
-
readonly toField: "mfg_order_id_";
|
|
133
127
|
}, {
|
|
134
128
|
readonly optionField: "mfg_order_code_";
|
|
135
129
|
readonly toField: "mfg_order_code_";
|
|
@@ -5,13 +5,14 @@ import { ScanModalInput } from './utils/scan';
|
|
|
5
5
|
* 库存调拨表 Core
|
|
6
6
|
* - Profile:禁用字段 / 行默认值 / 物料清空
|
|
7
7
|
* - 物料走库存选择(allocateProduct)+ FILL_FROM_INVENTORY_OPTION
|
|
8
|
-
* -
|
|
8
|
+
* - 扫码:库存匹配,优先填充物料和批次均为空的行,否则新增一行
|
|
9
9
|
*/
|
|
10
10
|
export declare class AllocateTableCore extends ProfileDrivenSubTableCore {
|
|
11
11
|
/** 绘制UI相关工具 */
|
|
12
12
|
get render(): import('../..').ISubTableRender;
|
|
13
13
|
/** 指定的仓库id */
|
|
14
14
|
get warehouseId(): any;
|
|
15
|
+
protected isEmptyScanRow(row: Record<string, unknown>): boolean;
|
|
15
16
|
handleFieldTd: SubTableCore['handleFieldTd'];
|
|
16
17
|
calcFieldQuery: SubTableCore['calcFieldQuery'];
|
|
17
18
|
calcSubTableActionMenu: SubTableCore['calcSubTableActionMenu'];
|
|
@@ -3,6 +3,7 @@ import { SubTableActionEnum } from '../../components/document-sub-table-action';
|
|
|
3
3
|
import { IDefaultValueMap, IFieldStatus, IRuntimeSubTableCtx } from '../types';
|
|
4
4
|
import { TdHandler } from '../utils/td-handler';
|
|
5
5
|
import { SubTableCoreFactory } from '../factory/sub-table-factory';
|
|
6
|
+
import { ScanRecordPickerOptions } from '../../types/render/sub-table-render';
|
|
6
7
|
import { FormModelController } from '../../hooks/form-model';
|
|
7
8
|
import { RefCustomLoader } from '../../interface/ref-loader';
|
|
8
9
|
/**
|
|
@@ -187,7 +188,7 @@ export declare class SubTableCore {
|
|
|
187
188
|
/**
|
|
188
189
|
* 扫码多条候选时选择一行(1 条自动选中)
|
|
189
190
|
*/
|
|
190
|
-
protected pickScanRecord(records: Record<string, unknown>[]): Promise<Record<string, unknown> | undefined>;
|
|
191
|
+
protected pickScanRecord(records: Record<string, unknown>[], options?: ScanRecordPickerOptions): Promise<Record<string, unknown> | undefined>;
|
|
191
192
|
/**
|
|
192
193
|
* 处理扫码弹窗回调
|
|
193
194
|
* 参数由扫码弹窗决定
|
|
@@ -53,6 +53,8 @@ export declare class FormModelController {
|
|
|
53
53
|
isPresetField(field: FieldMetaDTO): boolean;
|
|
54
54
|
/** 是否是系统字段 */
|
|
55
55
|
isSystemField(field: FieldMetaDTO): boolean;
|
|
56
|
+
/** 是否是对象字段类型 */
|
|
57
|
+
isObjectField(field: FieldMetaDTO): boolean;
|
|
56
58
|
/**
|
|
57
59
|
* 获取主模型里子表字段对应的子模型key
|
|
58
60
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IBomEntry, IFormTmplBom, IMaterialConsumeData } from './types';
|
|
2
|
-
import { BaseCoreComponent } from '../../types';
|
|
2
|
+
import { BaseCoreComponent, IMaterialConsumeTableInfo } from '../../types';
|
|
3
3
|
import { MaterialConsumeTableController } from './material-consume-table-controller';
|
|
4
4
|
import { FormInstBomResponse } from '@gct-paas/api/apaas';
|
|
5
5
|
import { MaterialConsumptionPatternEnum } from '../../constant';
|
|
@@ -25,6 +25,10 @@ export declare class FormTmplBomController {
|
|
|
25
25
|
field2TableMap: Record<string, string>;
|
|
26
26
|
/** 默认物料消耗模式 */
|
|
27
27
|
defaultMCPattern: MaterialConsumptionPatternEnum;
|
|
28
|
+
/** 表单实例身份与 BOM 数据是否存在无关,模板展示也会创建完整控制器。 */
|
|
29
|
+
hasFormInstance: boolean;
|
|
30
|
+
/** 按页面中的表解析后的配置,页面与打印共用。 */
|
|
31
|
+
private resolvedTmplBomList;
|
|
28
32
|
constructor();
|
|
29
33
|
/**
|
|
30
34
|
* 创建独立的打印展示控制器:不请求 BOM/历史消耗,不初始化或修正已填报行。
|
|
@@ -57,13 +61,14 @@ export declare class FormTmplBomController {
|
|
|
57
61
|
* @readonly
|
|
58
62
|
*/
|
|
59
63
|
get enableSequenceLoading(): boolean;
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
*/
|
|
64
|
+
private createDefaultConfig;
|
|
65
|
+
/** 有实例时读取实例配置,无实例时仅创建默认展示控制器。 */
|
|
63
66
|
init(data: {
|
|
64
|
-
formInstBom
|
|
65
|
-
|
|
66
|
-
|
|
67
|
+
formInstBom?: FormInstBomResponse | null;
|
|
68
|
+
materialConsumeTableList: IMaterialConsumeTableInfo[];
|
|
69
|
+
hasFormInstance: boolean;
|
|
70
|
+
operationId?: string;
|
|
71
|
+
materialNo?: string;
|
|
67
72
|
productQty?: number;
|
|
68
73
|
}): Promise<void>;
|
|
69
74
|
/**
|
|
@@ -62,9 +62,10 @@ export declare function getObjectBomMaterialLotQuery(opts: {
|
|
|
62
62
|
} | null;
|
|
63
63
|
/**
|
|
64
64
|
* 表单提交:校验所有物料消耗对象(失败打在对应单元格,收集全部错误)
|
|
65
|
-
* -
|
|
66
|
-
* -
|
|
67
|
-
* -
|
|
65
|
+
* - 物料范围:无配置 / 人为指定 / 记录模式,不校验物料是否属于 BOM
|
|
66
|
+
* - 记录模式:仅开启人为指定时,继续执行数量校验
|
|
67
|
+
* - BOM 模式未开人为指定:有物料则必须在实例 BOM 中
|
|
68
|
+
* - 数量与需求数量均有值、非查看类型且开启数量校验时,执行数量规则
|
|
68
69
|
* - 人为指定:用 objectBom.entries_[0];否则用 bomEntries 中与对象物料匹配的明细
|
|
69
70
|
*/
|
|
70
71
|
export declare function validateObjectBomQtyOnSubmit(opts: {
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export interface ObjectProductDefault {
|
|
2
|
+
value: unknown;
|
|
3
|
+
sourceData?: Record<string, any>;
|
|
4
|
+
}
|
|
5
|
+
/** 准备数据和生成默认值使用同一份字段列表,按字段对象隔离不同对象的默认值。 */
|
|
6
|
+
export type ObjectProductDefaultMap = WeakMap<object, ObjectProductDefault>;
|
|
7
|
+
interface Options {
|
|
8
|
+
enabled: boolean;
|
|
9
|
+
fields: readonly unknown[];
|
|
10
|
+
objectInitialValues?: readonly {
|
|
11
|
+
objectField: string;
|
|
12
|
+
objectFieldName?: string;
|
|
13
|
+
values?: Record<string, any>;
|
|
14
|
+
}[];
|
|
15
|
+
onWarning?: (message: string) => void;
|
|
16
|
+
}
|
|
17
|
+
/** 只解析对象物料默认值、查询对应详情;赋值和填充统一由默认值入口执行。 */
|
|
18
|
+
export declare function prepareObjectProductDefaults({ enabled, fields, objectInitialValues, onWarning, }: Options): Promise<ObjectProductDefaultMap>;
|
|
19
|
+
export {};
|
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 {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { FormTypeEnum } from '../constant';
|
|
2
2
|
import { FormTmplBomController } from '../hooks';
|
|
3
3
|
import { RuntimeFieldMetadata } from '../runtime/runtime-field-registry';
|
|
4
|
+
import { ObjectProductDefault } from '../hooks/material-consume-object/initialize-autofill';
|
|
4
5
|
/** 渲染端公共类 */
|
|
5
6
|
export declare const renderUtils: {
|
|
6
7
|
getValue: (modelValue: any, multiple: any) => any;
|
|
@@ -90,8 +91,9 @@ export declare const renderUtils: {
|
|
|
90
91
|
/** 提前设置值给widget */
|
|
91
92
|
setRequestInfo2DataCenter: (dataCenters: any, modelKeys: any, platformType: any, isMockReport: any, formType: FormTypeEnum, paramsConfig: any, useSignFields: any, useClsReasonDataLink: any, useClsGroupDataLink: any, tmplBomC: FormTmplBomController, modelQueries: any) => Promise<void>;
|
|
92
93
|
/** 获取默认值集合 */
|
|
93
|
-
getDefaultValueMapByField: ({ defaultValueFields, mainMaterialNo, mainRelatedLotNo, mainProductName, mainRoutingOperation, mainMfgOrderId, mainWarehouseId, mainLotSnId, mainProductQty, mainSterilizationLot, mainSterilizationLotId, defaultUserId, defaultOrgId, operationData, productData, mfgOrderData, sopList, ESOPData, materialNoData, relatedLotNoData, sterilizeLotData, warehouseData, }: {
|
|
94
|
+
getDefaultValueMapByField: ({ defaultValueFields, objectProductDefaults, mainMaterialNo, mainRelatedLotNo, mainProductName, mainRoutingOperation, mainMfgOrderId, mainWarehouseId, mainLotSnId, mainProductQty, mainSterilizationLot, mainSterilizationLotId, defaultUserId, defaultOrgId, operationData, productData, mfgOrderData, sopList, ESOPData, materialNoData, relatedLotNoData, sterilizeLotData, warehouseData, }: {
|
|
94
95
|
defaultValueFields: any;
|
|
96
|
+
objectProductDefaults?: WeakMap<object, ObjectProductDefault> | undefined;
|
|
95
97
|
mainMaterialNo?: undefined;
|
|
96
98
|
mainRelatedLotNo?: undefined;
|
|
97
99
|
mainProductName?: undefined;
|
|
@@ -90,6 +90,14 @@ export declare const transformUtils: {
|
|
|
90
90
|
viewMode: RenderModeEnum;
|
|
91
91
|
ofCtx: any;
|
|
92
92
|
}) => Promise<any>;
|
|
93
|
+
/** 数据加载完成事件;全部 Sheet 的数据合并后、创建 Store 和分页前只执行一次。 */
|
|
94
|
+
getEventInitDataLoaded: (payload: {
|
|
95
|
+
formConfig: Record<string, any>;
|
|
96
|
+
formState: any;
|
|
97
|
+
viewMode: RenderModeEnum;
|
|
98
|
+
dataStatus?: string;
|
|
99
|
+
ofCtx: any;
|
|
100
|
+
}) => Promise<void>;
|
|
93
101
|
/** 创建字段事件执行器;注册后由 RuntimeInstanceRecord 持有,全部 Sheet 共用。 */
|
|
94
102
|
createScriptRunner: (payload: {
|
|
95
103
|
formConfig: Record<string, any>;
|
|
@@ -143,6 +151,6 @@ export declare const transformUtils: {
|
|
|
143
151
|
checkTable2DList?: any[];
|
|
144
152
|
materialConsumeTableList?: any[];
|
|
145
153
|
}) => Partial<{}>;
|
|
146
|
-
getFormDataIdsMap: (formData: any, preserveKeys?: string[]) => any;
|
|
154
|
+
getFormDataIdsMap: (formData: any, preserveKeys?: string[], shouldPreserveField?: (path: string) => boolean) => any;
|
|
147
155
|
};
|
|
148
156
|
export {};
|
|
@@ -13,6 +13,8 @@ export interface RuntimeAsyncTaskSnapshot {
|
|
|
13
13
|
sheetId?: string;
|
|
14
14
|
/** 提交是否必须等待此任务完成。 */
|
|
15
15
|
required: boolean;
|
|
16
|
+
/** 任务失败后是否阻止提交;仅对 required 任务生效。 */
|
|
17
|
+
blockOnFailure: boolean;
|
|
16
18
|
status: RuntimeAsyncTaskStatus;
|
|
17
19
|
/** rejected 状态对应的原始错误。 */
|
|
18
20
|
error?: unknown;
|
|
@@ -24,8 +26,10 @@ export interface RunRuntimeAsyncTaskOptions {
|
|
|
24
26
|
fieldIdentity?: BusinessFieldIdentity;
|
|
25
27
|
/** 任务对应的工作表。 */
|
|
26
28
|
sheetId?: string;
|
|
27
|
-
/** 默认 true;为 true
|
|
29
|
+
/** 默认 true;为 true 时提交事务会等待它结束。 */
|
|
28
30
|
required?: boolean;
|
|
31
|
+
/** 默认 true;设为 false 时仍等待任务结束,但失败不阻止后续提交。 */
|
|
32
|
+
blockOnFailure?: boolean;
|
|
29
33
|
/** 默认 true;同 key 新任务开始前是否主动终止旧任务。 */
|
|
30
34
|
replace?: boolean;
|
|
31
35
|
}
|
|
@@ -56,7 +60,7 @@ export declare class RuntimeAsyncTaskCoordinator {
|
|
|
56
60
|
* 等待全部 required 任务达到稳定状态。
|
|
57
61
|
*
|
|
58
62
|
* 一轮任务完成后的字段回填可能触发新的公式或远程任务,因此这里循环读取任务表,直到
|
|
59
|
-
* 没有新的 pending required
|
|
63
|
+
* 没有新的 pending required 任务。稳定后只检查需要阻断提交的失败项。
|
|
60
64
|
*/
|
|
61
65
|
waitForRequired(keyPrefix?: string): Promise<void>;
|
|
62
66
|
/** 返回只读用途的任务快照,避免外部代码操作内部 Promise 和 AbortController。 */
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
+
import { FormTypeEnum } from '../constant';
|
|
1
2
|
/** 当前真实多 Sheet 运行时格式版本。缺少版本号的历史数据按 v1 解析。 */
|
|
2
3
|
export declare const MULTI_SHEET_SCHEMA_VERSION: 2;
|
|
4
|
+
export declare const MAX_RUNTIME_SHEETS = 100;
|
|
5
|
+
export declare const MAX_RUNTIME_SHEET_TITLE_LENGTH = 255;
|
|
3
6
|
export type RuntimeNodeMap = Record<string, any>;
|
|
4
7
|
export interface RuntimeSheetV2 {
|
|
5
8
|
sheetId: string;
|
|
@@ -28,10 +31,11 @@ export interface NormalizedRuntimeDocument {
|
|
|
28
31
|
* 将历史 v1 和真实多 Sheet v2 统一为同一种读取结构。
|
|
29
32
|
*
|
|
30
33
|
* - v1:顶层 paper + nodes,包装成一个固定标识的虚拟 Sheet。
|
|
34
|
+
* - 文件表单:历史空模板补一个内存中的空根节点,以复用实例 Store 和提交服务。
|
|
31
35
|
* - v2:读取有序 sheets,并为现有单 Sheet 渲染器组装 dataCenter。
|
|
32
36
|
* - 未知版本:直接报错,避免旧客户端误写更高版本数据。
|
|
33
37
|
*/
|
|
34
|
-
export declare function normalizeRuntime(runtime: unknown): NormalizedRuntimeDocument;
|
|
38
|
+
export declare function normalizeRuntime(runtime: unknown, formType?: FormTypeEnum): NormalizedRuntimeDocument;
|
|
35
39
|
/**
|
|
36
40
|
* 将各 Sheet 独立编译得到的旧式 dataCenter 封装为 v2 文档。
|
|
37
41
|
* 保存前复用统一解析器,保证整份模板的节点唯一性和引用完整性。
|