@gct-paas/excel 0.1.39-beta.4 → 0.1.39-beta.41
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-B8_qg2he.js → BaseComponent-hWfUDepU.js} +2 -2
- package/dist/{VueVideoPlayer-B-X9Kvhp.js → VueVideoPlayer-CTtss6-e.js} +2 -2
- package/dist/{align-editor-1IbAiPBg.js → align-editor-0EJDQ9xk.js} +1 -1
- package/dist/{barcode-design-DCm1U-OU.js → barcode-design-CH7C0nTV.js} +2 -2
- package/dist/base/index.es.js +545 -244
- package/dist/{diagonal-design-DBk2s8UD.js → diagonal-design-CKLfmzt9.js} +2 -2
- package/dist/{dynamic-table-action-JSevwsex.js → dynamic-table-action-Dhx1ZQSa.js} +948 -303
- 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-vRTNdchM.js} +636 -1140
- package/dist/{edit.utils-CXmmCnxE-88-QvdIv.js → edit.utils-CXmmCnxE-Cj0XviBc.js} +1 -1
- package/dist/excel.css +589 -338
- package/dist/{exceljs.min-M28cAz_z.js → exceljs.min-BNsMIPFn.js} +2 -2
- package/dist/{font-editor-nCQk5D1K.js → font-editor-CHZPtUHX.js} +3 -3
- package/dist/{image-design-B84grap7.js → image-design-AOi1nT_M.js} +2 -2
- package/dist/{index-jRA6sXVY.js → index-2SyQ6xAT.js} +1 -1
- package/dist/{index-UCNknVxk.js → index-B1JboJFx.js} +1 -1
- package/dist/{index-DEl0sxMk.js → index-B863k7Jl.js} +6 -5
- package/dist/{index-_-ORWa-m.js → index-BFhX3ACB.js} +1 -1
- package/dist/{index-CGsTW2E9.js → index-BNKKUueq.js} +2 -2
- package/dist/{index-ZEwe0MJj.js → index-BTr11l_g.js} +2 -2
- package/dist/{index-DPOE78Jf.js → index-BVSnhxY1.js} +2 -2
- package/dist/{index-I2HpU1BP.js → index-BZPA_AiO.js} +3 -3
- package/dist/{index-ChncMTkv.js → index-BeFJ_RCt.js} +1 -1
- package/dist/{index-DEN3-esb.js → index-BfIS3NOa.js} +6 -3
- package/dist/{index-BSXafKJS.js → index-BgV92L3Y.js} +2 -2
- package/dist/{index-CCsNdL4I.js → index-Bj3c4vZy.js} +2 -2
- package/dist/{index-CBiaZr1j.js → index-Bua1ArJ5.js} +2 -2
- package/dist/{index-BrkoN2-J.js → index-CDRNOYDd.js} +6 -5
- package/dist/{index-D0Q-6EtG.js → index-CDhZoiEf.js} +1 -1
- package/dist/{index-CCp6-NXH.js → index-C__SKZMl.js} +3 -3
- package/dist/{index-tZd-Us4e.js → index-Ca0fy776.js} +2 -2
- package/dist/{index-CKWcaJGI.js → index-CbXJ1XDJ.js} +5 -7
- package/dist/{index-CUHfI8cg.js → index-Cfe2Q-hG.js} +1 -1
- package/dist/{index-H_BLk7PI.js → index-CfvZdYSY.js} +2 -2
- package/dist/{index-Co1E4H0G.js → index-CiqInN9G.js} +2 -2
- package/dist/{index-CX6LqGJP.js → index-Cld2wf77.js} +1 -1
- package/dist/{index-D7IBmbmp.js → index-Cy4bHDfG.js} +2 -2
- package/dist/{index-bfXiwTE7.js → index-D1bE-oJR.js} +2047 -1745
- package/dist/{index-DT87VrvR.js → index-D7kir0tU.js} +2 -2
- package/dist/{index-B53fgzJo.js → index-DR6T7C4O.js} +2 -2
- package/dist/{index-DCzL4GOP.js → index-DThgFjEo.js} +53 -5
- package/dist/{index-BvJ7ZgvI.js → index-DnM4LcB4.js} +2 -2
- package/dist/{index-DkvjFyW6.js → index-DnOwWeey.js} +2 -2
- package/dist/{index-wcY1RYL_.js → index-ICNCCzD2.js} +2 -2
- package/dist/{index-CFjE5779.js → index-LVofttI7.js} +3 -2
- package/dist/{index-Doz8Gf_5.js → index-SXIZsVts.js} +1 -1
- package/dist/{index-XBuNXPu0.js → index-cnZ4ogvg.js} +2 -2
- package/dist/{index-DHHyy4mL.js → index-n97S5YRD.js} +1 -1
- package/dist/{index-MJFci9IB.js → index-nl7I1bLi.js} +1 -1
- package/dist/index.es.js +2 -2
- package/dist/{mb-render-BZDgmpm9.js → mb-render-FUO_-FXR.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-DOYhOffQ.js} +8 -1
- package/dist/{pagination-design-BYqVZGdA.js → pagination-design-BjxLbj93.js} +2 -2
- package/dist/paper-widget-design-Cy2MxlCk.js +4 -0
- package/dist/{print-runtime-instance-D3BJGzia.js → print-runtime-instance-THb92xUW.js} +1 -1
- package/dist/{print-snapshot-renderer-MzkjvlA8.js → print-snapshot-renderer-4jQFaAjJ.js} +3 -3
- package/dist/{qrcode-design-B0YGEijA.js → qrcode-design-DM9kEawx.js} +1 -1
- package/dist/{revo-grid.entry-DdE6cuGJ.js → revo-grid.entry-DKvA7bUR.js} +1 -1
- package/dist/{revogr-attribution_7.entry-Er1fVrov.js → revogr-attribution_7.entry-C2PtJ_Tj.js} +3 -3
- package/dist/{revogr-clipboard_3.entry-COq2SN-B.js → revogr-clipboard_3.entry-BM7_JY0U.js} +2 -2
- package/dist/{revogr-data_4.entry--CfGDdVK.js → revogr-data_4.entry-CdMQPL7I.js} +2 -2
- package/dist/{revogr-filter-panel.entry-DoNXkBy6.js → revogr-filter-panel.entry-BJiGVhcw.js} +1 -1
- package/dist/seal-design-C5P3oQIa.js +4 -0
- package/dist/{serialnumber-design-fMRSi9jn.js → serialnumber-design-QaDIsxYT.js} +1 -1
- package/dist/shared/index.es.js +23 -21
- package/dist/{single-field-drop-BycxT2Kf.js → single-field-drop-BAiIyb2u.js} +2 -2
- package/dist/{size-editor-BKJfYgbR.js → size-editor-BV0KrQ37.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 +3 -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/designer/hooks/useAllSpreadSheets.d.ts +11 -0
- package/dist/src/online-form/src/views/designer/modules/base/designer-wrapper.vue.d.ts +1 -0
- package/dist/src/online-form/src/views/designer/modules/duplicate-field-notice.vue.d.ts +2 -0
- package/dist/src/online-form/src/views/designer/modules/xlsx-import-summary.vue.d.ts +11 -0
- package/dist/src/online-form/src/views/designer/types/sheets.d.ts +2 -0
- package/dist/src/online-form/src/views/designer/utils/cell-field-placements.d.ts +12 -0
- package/dist/src/online-form/src/views/designer/utils/xlsx-parser.d.ts +9 -3
- package/dist/src/online-form/src/views/render/__components__/_field_/trace/utils/use-rule-props.d.ts +0 -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/src/shared/utils/cell-wrap.d.ts +9 -0
- package/dist/src/shared/utils/grid-size.d.ts +2 -0
- package/dist/{sub-table-factory-BxG7QiiX.js → sub-table-factory-_mm1iwau.js} +19 -7
- package/dist/{text-design-BQKYk7aD.js → text-design-DfdH_3_b.js} +5 -4
- package/dist/{throttle-Cpk1LoGk-BI0wP2Le.js → throttle-Cpk1LoGk-HQvkISS4.js} +1 -1
- package/dist/{timediff-design-O1IfzLVD.js → timediff-design-CKjl56qS.js} +1 -1
- package/dist/{trace-like-wrapper-CdKGpstE.js → trace-like-wrapper-D6lJ8e-H.js} +5 -2
- package/dist/{value-editor.vue_vue_type_style_index_0_lang-CCv0wmKI.js → value-editor.vue_vue_type_style_index_0_lang-BmQGrlz8.js} +2 -2
- package/dist/web-render/index.es.js +3 -3
- package/dist/{widget-barcode-CK68yjvd.js → widget-barcode-By9P2d-R.js} +4 -4
- package/dist/{widget-diagonal-9F-6feRM.js → widget-diagonal-DMNfA-Tt.js} +3 -3
- package/dist/{widget-image-2GcRCaIf.js → widget-image-YM9YaMb-.js} +5 -5
- package/dist/{widget-line-flwy9kew.js → widget-line-Dl3TIfBO.js} +2 -2
- package/dist/{widget-pagination-pxpEH1UB.js → widget-pagination-9XxvQDIw.js} +5 -5
- package/dist/{widget-power-pFQ7lwCW.js → widget-power-A96VVJDG.js} +3 -3
- package/dist/{widget-qrcode-D_Ri0RG2.js → widget-qrcode-DWseHVIM.js} +3 -3
- package/dist/{widget-rangelimit-DB97heRc.js → widget-rangelimit-DK8oOmC_.js} +3 -3
- package/dist/{widget-serialnumber-I35Sov0R.js → widget-serialnumber-pue8WfA9.js} +1 -1
- package/dist/{widget-text-C93W0WWM.js → widget-text-B9O9UYK7.js} +5 -5
- package/dist/{widget-timediff-S4X81H7c.js → widget-timediff-PwNxXBrF.js} +2 -2
- package/package.json +2 -2
- package/dist/paper-widget-design-BcSUNaAF.js +0 -4
- package/dist/seal-design-CHOawN-k.js +0 -4
|
@@ -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,3 +1,4 @@
|
|
|
1
|
+
import { FormTypeEnum } from '../constant';
|
|
1
2
|
/** 当前真实多 Sheet 运行时格式版本。缺少版本号的历史数据按 v1 解析。 */
|
|
2
3
|
export declare const MULTI_SHEET_SCHEMA_VERSION: 2;
|
|
3
4
|
export declare const MAX_RUNTIME_SHEETS = 100;
|
|
@@ -30,10 +31,11 @@ export interface NormalizedRuntimeDocument {
|
|
|
30
31
|
* 将历史 v1 和真实多 Sheet v2 统一为同一种读取结构。
|
|
31
32
|
*
|
|
32
33
|
* - v1:顶层 paper + nodes,包装成一个固定标识的虚拟 Sheet。
|
|
34
|
+
* - 文件表单:历史空模板补一个内存中的空根节点,以复用实例 Store 和提交服务。
|
|
33
35
|
* - v2:读取有序 sheets,并为现有单 Sheet 渲染器组装 dataCenter。
|
|
34
36
|
* - 未知版本:直接报错,避免旧客户端误写更高版本数据。
|
|
35
37
|
*/
|
|
36
|
-
export declare function normalizeRuntime(runtime: unknown): NormalizedRuntimeDocument;
|
|
38
|
+
export declare function normalizeRuntime(runtime: unknown, formType?: FormTypeEnum): NormalizedRuntimeDocument;
|
|
37
39
|
/**
|
|
38
40
|
* 将各 Sheet 独立编译得到的旧式 dataCenter 封装为 v2 文档。
|
|
39
41
|
* 保存前复用统一解析器,保证整份模板的节点唯一性和引用完整性。
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { IPageData } from '../types';
|
|
2
|
+
import { FormTypeEnum } from '../constant';
|
|
2
3
|
import { NormalizedRuntimeDocument, RuntimeNodeMap } from './multi-sheet-runtime';
|
|
3
4
|
import { SubTableCoreFactory } from '../core/factory/sub-table-factory';
|
|
4
5
|
import { FormTmplBomController } from '../hooks/material-consume/tmpl-bom-controller';
|
|
@@ -100,6 +101,8 @@ export interface RuntimeInstanceContext {
|
|
|
100
101
|
uniqueId: string;
|
|
101
102
|
instanceId: string;
|
|
102
103
|
templateId: string;
|
|
104
|
+
/** 文件表单由 PDF 组件分页,不参与工作表布局计算。 */
|
|
105
|
+
formType?: FormTypeEnum;
|
|
103
106
|
schemaVersion: NormalizedRuntimeDocument['schemaVersion'];
|
|
104
107
|
formConfig: Record<string, any>;
|
|
105
108
|
defaultData: Record<string, any>;
|
|
@@ -116,6 +119,7 @@ export interface CreateRuntimeInstanceContextOptions {
|
|
|
116
119
|
uniqueId: string;
|
|
117
120
|
instanceId: string;
|
|
118
121
|
templateId: string;
|
|
122
|
+
formType?: FormTypeEnum;
|
|
119
123
|
runtime: NormalizedRuntimeDocument;
|
|
120
124
|
defaultData: Record<string, any>;
|
|
121
125
|
activeSheetId?: string;
|
|
@@ -17,7 +17,7 @@ export declare class RuntimeFieldInitializer {
|
|
|
17
17
|
private scheduled;
|
|
18
18
|
private readonly unsubscribe;
|
|
19
19
|
constructor(record: RuntimeInstanceRecord, info: IBasicInfoItem, metadata: InitializerMetadata);
|
|
20
|
-
/**
|
|
20
|
+
/** 初次加载等待全部目标;默认值请求失败保留在任务中心供诊断,但不阻止提交。 */
|
|
21
21
|
initialize(): Promise<void>;
|
|
22
22
|
private request;
|
|
23
23
|
private readDefault;
|
|
@@ -36,6 +36,7 @@ export declare class RuntimeValidationService {
|
|
|
36
36
|
requestLive(trigger?: 'change' | 'blur', immediate?: boolean): void;
|
|
37
37
|
private flushLive;
|
|
38
38
|
requestDisplay(immediate?: boolean): void;
|
|
39
|
+
private logBackgroundError;
|
|
39
40
|
pruneComments(): void;
|
|
40
41
|
settleAfterModeSwitch(runChangeLive?: boolean): Promise<void>;
|
|
41
42
|
private cancelScheduled;
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { FormModelController } from '../../hooks/form-model';
|
|
2
2
|
import { ParseRuleProps, ScanParamType } from '../../types/common/base';
|
|
3
|
+
/** 不传 scene 时保持默认列 */
|
|
4
|
+
export interface ScanRecordPickerOptions {
|
|
5
|
+
scene?: 'inventory';
|
|
6
|
+
}
|
|
3
7
|
/**
|
|
4
8
|
* 子表绘制的基类
|
|
5
9
|
*/
|
|
@@ -33,7 +37,7 @@ export interface ISubTableRender {
|
|
|
33
37
|
/**
|
|
34
38
|
* 扫码多条候选时选择一行
|
|
35
39
|
*/
|
|
36
|
-
openMultiRowsModal(opts: {
|
|
40
|
+
openMultiRowsModal(opts: ScanRecordPickerOptions & {
|
|
37
41
|
rows: any[];
|
|
38
42
|
title?: string;
|
|
39
43
|
}): Promise<any | undefined>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ScanRecordPickerOptions } from '../../../../../nocode-base/src';
|
|
2
|
+
import { VxeGridPropTypes } from 'vxe-table';
|
|
3
|
+
type ScanPickerScene = NonNullable<ScanRecordPickerOptions['scene']>;
|
|
4
|
+
/** 未指定场景时使用弹窗默认列。 */
|
|
5
|
+
export declare function getScanColumns(scene?: ScanPickerScene): VxeGridPropTypes.Columns | undefined;
|
|
6
|
+
export {};
|
|
@@ -2,7 +2,7 @@ import { FormModelController, MCRender, ParseRuleProps } from '../../../../../no
|
|
|
2
2
|
import { IOverlayContainer } from '../../../../../shared/types';
|
|
3
3
|
import { ScanParamType } from '../../../../../nocode-base/src/types/common/base.ts';
|
|
4
4
|
export declare class McWebRender extends MCRender {
|
|
5
|
-
/**
|
|
5
|
+
/** overlay 弹层按实例记录,form-base 弹层通过其全局管理器关闭。 */
|
|
6
6
|
modals: Array<{
|
|
7
7
|
ownerId?: string;
|
|
8
8
|
modal: IOverlayContainer;
|
|
@@ -3,6 +3,7 @@ import { IBindField } from '../../../../nocode-base/src';
|
|
|
3
3
|
type __VLS_Props = {
|
|
4
4
|
fieldWidget: CellWidget.BasicSchema;
|
|
5
5
|
fieldMeta: IBindField;
|
|
6
|
+
autoLineBreak?: boolean;
|
|
6
7
|
};
|
|
7
8
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
8
9
|
export default _default;
|
|
@@ -5,13 +5,13 @@ export interface IDisplayField {
|
|
|
5
5
|
_dfUnremovable?: boolean;
|
|
6
6
|
[key: string]: any;
|
|
7
7
|
}
|
|
8
|
-
/**
|
|
8
|
+
/** 物料字段的设计端默认显示列。 */
|
|
9
9
|
export declare const DEFAULT_DISPLAY_FIELDS_MAP: Record<string, string[]>;
|
|
10
10
|
interface DefaultDisplayFieldConfig {
|
|
11
11
|
keys: string[];
|
|
12
12
|
unremovableKeys: string[];
|
|
13
13
|
}
|
|
14
|
-
export declare const getDefaultDisplayFieldConfig: (
|
|
14
|
+
export declare const getDefaultDisplayFieldConfig: (fieldType?: string) => DefaultDisplayFieldConfig;
|
|
15
15
|
/** 仅保留设备及批次类字段从历史搜索配置初始化显示列的行为。 */
|
|
16
16
|
export declare const retainsLegacyDisplayFields: (fieldType?: string) => boolean;
|
|
17
17
|
export declare function getDisplayFieldKey(item?: {
|
|
@@ -14,3 +14,11 @@ export declare const resolveQuickSearchConfig: (fieldMeta: IBindField & {
|
|
|
14
14
|
searchable: boolean;
|
|
15
15
|
fields: string[];
|
|
16
16
|
};
|
|
17
|
+
/** 为缺失或为空的运行时搜索配置补齐默认字段及表达式。 */
|
|
18
|
+
export declare const resolveRuntimeQuickSearchProps: <T extends IBindField & {
|
|
19
|
+
quickSearchField?: string[];
|
|
20
|
+
quickSearchExp?: string;
|
|
21
|
+
}>(props: T) => T & {
|
|
22
|
+
quickSearchField: string[];
|
|
23
|
+
quickSearchExp: string | undefined;
|
|
24
|
+
};
|
package/dist/src/online-form/src/views/__cell_widgets__/fake-field/fake-option-select.vue.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ type __VLS_Props = {
|
|
|
6
6
|
fieldMeta?: IBindField;
|
|
7
7
|
design?: FieldDesignComponent;
|
|
8
8
|
disabled?: boolean;
|
|
9
|
+
autoLineBreak?: boolean;
|
|
9
10
|
};
|
|
10
11
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
11
12
|
export default _default;
|
|
@@ -3,6 +3,7 @@ import { DesignerSheets, ISheet } from '../types/sheets';
|
|
|
3
3
|
import { PanelType, SubTableType } from '../enums';
|
|
4
4
|
import { CellType, IFormTmplBom } from '../../../../../nocode-base/src';
|
|
5
5
|
import { FIELD_TYPE } from '../../../../../shared/enum';
|
|
6
|
+
declare function dismissDuplicateFieldNotice(): void;
|
|
6
7
|
export declare const useAllSpreadSheets: () => {
|
|
7
8
|
designerConfig: import('vue').Ref<{
|
|
8
9
|
schemaVersion?: number | undefined;
|
|
@@ -178,6 +179,7 @@ export declare const useAllSpreadSheets: () => {
|
|
|
178
179
|
} | undefined;
|
|
179
180
|
mainModelKey?: string | undefined;
|
|
180
181
|
modelMetaMap?: import('./useModelFields').IModelMetaMap | undefined;
|
|
182
|
+
duplicateFieldNoticeDismissed?: boolean | undefined;
|
|
181
183
|
sheets?: {
|
|
182
184
|
sheetId: string;
|
|
183
185
|
title: string;
|
|
@@ -1044,6 +1046,7 @@ export declare const useAllSpreadSheets: () => {
|
|
|
1044
1046
|
} | undefined;
|
|
1045
1047
|
mainModelKey?: string | undefined;
|
|
1046
1048
|
modelMetaMap?: import('./useModelFields').IModelMetaMap | undefined;
|
|
1049
|
+
duplicateFieldNoticeDismissed?: boolean | undefined;
|
|
1047
1050
|
sheets?: {
|
|
1048
1051
|
sheetId: string;
|
|
1049
1052
|
title: string;
|
|
@@ -3459,6 +3462,13 @@ export declare const useAllSpreadSheets: () => {
|
|
|
3459
3462
|
}[] | undefined;
|
|
3460
3463
|
};
|
|
3461
3464
|
}[]>;
|
|
3465
|
+
placedFieldKeys: import('vue').ComputedRef<Set<string>>;
|
|
3466
|
+
duplicateFieldSummary: import('vue').ComputedRef<{
|
|
3467
|
+
fieldCount: number;
|
|
3468
|
+
placementCount: number;
|
|
3469
|
+
}>;
|
|
3470
|
+
showDuplicateFieldNotice: import('vue').ComputedRef<boolean>;
|
|
3471
|
+
dismissDuplicateFieldNotice: typeof dismissDuplicateFieldNotice;
|
|
3462
3472
|
activeSheetId: import('vue').Ref<string | undefined, string | undefined>;
|
|
3463
3473
|
activeSheet: import('vue').Ref<any, any>;
|
|
3464
3474
|
setSheetMaps: (maps: DesignerSheets | ILegacyPaper | null | undefined, info: any) => void;
|
|
@@ -3493,3 +3503,4 @@ export declare const useAllSpreadSheets: () => {
|
|
|
3493
3503
|
modelKey: string;
|
|
3494
3504
|
}) => void;
|
|
3495
3505
|
};
|
|
3506
|
+
export {};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
sheets: Array<{
|
|
3
|
+
title: string;
|
|
4
|
+
rows: number;
|
|
5
|
+
cols: number;
|
|
6
|
+
fields: number;
|
|
7
|
+
}>;
|
|
8
|
+
warnings: string[];
|
|
9
|
+
};
|
|
10
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { IBindField } from '../../../../../nocode-base/src';
|
|
2
|
+
import { ICell, IPaper } from '../types';
|
|
3
|
+
interface CellFieldPlacement {
|
|
4
|
+
cell: ICell;
|
|
5
|
+
content: ICell | NonNullable<ICell['multiFieldsContent']>[number];
|
|
6
|
+
hidden: boolean;
|
|
7
|
+
}
|
|
8
|
+
/** 合并区域仅左上角是实际填报位置,覆盖的字段保留供拆分恢复。 */
|
|
9
|
+
export declare function getCellFieldPlacements(paper: IPaper): CellFieldPlacement[];
|
|
10
|
+
/** 重新拖入被合并覆盖的字段时释放旧位置,防止拆分后恢复成重复绑定。 */
|
|
11
|
+
export declare function clearHiddenCellFieldPlacements(paper: IPaper, field: IBindField): void;
|
|
12
|
+
export {};
|
|
@@ -18,15 +18,21 @@ export type ImportedFieldMeta = {
|
|
|
18
18
|
type PaperViewportRange = [string, string];
|
|
19
19
|
export declare class XlsxParser {
|
|
20
20
|
static extractPaperFields(paper: IPaper | null, fields: ImportedFieldMeta[] | null): CellField[];
|
|
21
|
-
static xlsx2Sheets(file: any, keyList?: string[]
|
|
21
|
+
static xlsx2Sheets(file: any, keyList?: string[], options?: {
|
|
22
|
+
withFields?: boolean;
|
|
23
|
+
}): Promise<{
|
|
22
24
|
sheets: {
|
|
23
25
|
title: string;
|
|
24
26
|
paper: IPaper;
|
|
25
27
|
paperFields: CellField[];
|
|
26
28
|
}[];
|
|
27
29
|
fields: ImportedFieldMeta[] | null;
|
|
30
|
+
warnings: string[];
|
|
28
31
|
}>;
|
|
29
|
-
static sheetToPaper(paperSheet: any, xlsxData: any
|
|
32
|
+
static sheetToPaper(paperSheet: any, xlsxData: any, size?: {
|
|
33
|
+
rows: number;
|
|
34
|
+
cols: number;
|
|
35
|
+
}): {
|
|
30
36
|
floatingFields?: import('../types').FloatingSealField[];
|
|
31
37
|
sheetId: string;
|
|
32
38
|
orientation: import('../../../../../nocode-base/src').Orientation;
|
|
@@ -62,7 +68,7 @@ export declare class XlsxParser {
|
|
|
62
68
|
* @param sheet
|
|
63
69
|
* @returns
|
|
64
70
|
*/
|
|
65
|
-
static sheetToFields(sheet: any, keyList: string[]): ImportedFieldMeta[];
|
|
71
|
+
static sheetToFields(sheet: any, keyList: string[], warnings?: string[]): ImportedFieldMeta[];
|
|
66
72
|
/**
|
|
67
73
|
* 字段信息转换为元数据
|
|
68
74
|
* @param field
|
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,6 +1,8 @@
|
|
|
1
1
|
import { FIELD_TYPE } from './field-type';
|
|
2
2
|
export { Platform, ButtonStyle, ButtonSize, ButtonType, ButtonType_vant, ButtonOpeEnum, } from './button';
|
|
3
3
|
export { SignatureTypeEnum } from './signature';
|
|
4
|
+
export { ProductTypeEnum } from './product-type';
|
|
5
|
+
export { ProductionIdentificationTypeEnum } from './production-identification';
|
|
4
6
|
export { CardControlEnum, onlineFormMasterModelTypeEnum, RecordNoGenerateEnum, } from './online-form';
|
|
5
7
|
export { SEARCH_SEVICE } from './search';
|
|
6
8
|
export { GctMqttTopsEnum } from './mqtt';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/** 生产标识类型(production_identification_type_) */
|
|
2
|
+
export declare enum ProductionIdentificationTypeEnum {
|
|
3
|
+
/** 物料批 */
|
|
4
|
+
MATERIAL = "MATERIAL",
|
|
5
|
+
/** 生产批次 */
|
|
6
|
+
LOT = "LOT",
|
|
7
|
+
/** 生产序列号 */
|
|
8
|
+
SN = "SN",
|
|
9
|
+
/** 灭菌批 */
|
|
10
|
+
STERILIZATION = "STERILIZATION",
|
|
11
|
+
/** 检验批 */
|
|
12
|
+
INSPECTION_CONTAINER = "INSPECTION_CONTAINER",
|
|
13
|
+
/** 旧检验批取值 */
|
|
14
|
+
LEGACY_INSPECTION = "inspection",
|
|
15
|
+
/** 包装箱 */
|
|
16
|
+
PACK_BOX = "PACK_BOX",
|
|
17
|
+
/** 医疗器械唯一标识 */
|
|
18
|
+
UDI = "UDI"
|
|
19
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
type CellWrapStyle = {
|
|
2
|
+
whiteSpace?: unknown;
|
|
3
|
+
wordBreak?: unknown;
|
|
4
|
+
'white-space'?: unknown;
|
|
5
|
+
'word-break'?: unknown;
|
|
6
|
+
};
|
|
7
|
+
/** 新模板使用 pre-wrap + break-all;旧模板的 pre-line 同样表示已开启换行。 */
|
|
8
|
+
export declare function isCellAutoLineBreak(style?: CellWrapStyle | null): boolean;
|
|
9
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { shallowReactive } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
import { E as api,
|
|
2
|
+
import { aX as SubTableActionMenuTypeEnum, aY as getMenuByAction, aZ as SubTableActionEnum, a_ as resolveScanFillData, aC as SubTableCore, a$ as getInsertSubMenu, b0 as resolveScanAdjustType, b1 as resolveScanQty, b2 as toDateOnly, b3 as hasSubtableBusinessData, b4 as getCopySubMenu, b5 as resolveScanParsedValue, b6 as isProductBatchEmptyRow } from "./dynamic-table-action-Dhx1ZQSa.js";
|
|
3
|
+
import { E as api, cu as F$1, cv as SCAN_ROW_CONTENT_FIELDS, cw as F$2, cx as F$3, cy as runRowHandler, c as getProfileByTableType, b as isBusinessSubTableProfile, cz as F$4, cA as F$5, cB as FILL_FROM_SOURCE_PRODUCT_OPTION, cC as FILL_FROM_TARGET_MATERIAL_NO_OPTION, cD as FILL_FROM_INVENTORY_OPTION, cE as FILL_FROM_PART_OPTION, cF as FILL_FROM_INVENTORY_OPTION$1, cG as TABLE_TYPE, cH as FILL_FROM_INVENTORY_OPTION$2, b2 as F$6, cI as INVENTORY_BASE_FIELDS, cJ as resolveGroupByWarehouse, cK as AUTO_LOAD_READONLY_SELECT_FIELDS, b1 as STOCKTAKE_DIMENSION, a_ as getParseRuleInfo, cL as buildFillFromInventoryOption, bR as calcFillData, cM as resolveStocktakeInventoryApi, a$ as getParseRuleValue, cN as F$7, cO as FILL_FROM_INVENTORY_OPTION$3, bX as extractKeywordFromQueryData, cP as composeProductionLotListQuery, aH as resolveLotDisplayLabel, cQ as F$8, cR as isProductManuallyEditable, cS as applyFillFromMfgOrderOption, cT as applyFillFromOption$1, cU as applyFillFromProductOption, aY as ProductionIdentificationTypeEnum, aR as LOT_CONTAINER_ROLE, cV as MATERIAL_CONTAINER_ID, cW as F$9, cX as PRODUCT_QUICK_SEARCH_FIELDS, cY as PRODUCT_QUICK_SEARCH_EXP, cZ as isProductManuallyEditable$1, c_ as applyFillFromMaterialNoOption, c$ as applyFillFromProductOption$1, d0 as F$a, d1 as FILL_FROM_INVENTORY_OPTION$4, X as FormTypeEnum, aC as transformUtils, f as SubTableType } from "./dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-vRTNdchM.js";
|
|
4
4
|
import { has, merge } from "lodash-es";
|
|
5
5
|
function isBlank$4(value) {
|
|
6
6
|
return value === void 0 || value === null || value === "";
|
|
@@ -968,7 +968,9 @@ class StocktakeTableCore extends ProfileDrivenSubTableCore {
|
|
|
968
968
|
this.error({ content: SCAN_NOT_FOUND_MSG$2 });
|
|
969
969
|
return;
|
|
970
970
|
}
|
|
971
|
-
const selected = await this.pickScanRecord(records
|
|
971
|
+
const selected = await this.pickScanRecord(records, {
|
|
972
|
+
scene: "inventory"
|
|
973
|
+
});
|
|
972
974
|
if (!selected) return;
|
|
973
975
|
const scanAdjustType = resolveScanAdjustType(input);
|
|
974
976
|
const scanQty = resolveScanQty(parsed.qty, selected.qty_);
|
|
@@ -1053,6 +1055,12 @@ class AllocateTableCore extends ProfileDrivenSubTableCore {
|
|
|
1053
1055
|
get warehouseId() {
|
|
1054
1056
|
return this.factory.ctx.paramsConfig?.warehouseId;
|
|
1055
1057
|
}
|
|
1058
|
+
isEmptyScanRow(row) {
|
|
1059
|
+
return !hasSubtableBusinessData({
|
|
1060
|
+
[F$7.product]: row[F$7.product],
|
|
1061
|
+
[F$7.batch]: row[F$7.batch]
|
|
1062
|
+
});
|
|
1063
|
+
}
|
|
1056
1064
|
handleFieldTd = (params) => {
|
|
1057
1065
|
const { field, tdHandler } = params;
|
|
1058
1066
|
if (field === F$7.product) {
|
|
@@ -1134,7 +1142,9 @@ class AllocateTableCore extends ProfileDrivenSubTableCore {
|
|
|
1134
1142
|
this.error({ content: SCAN_NOT_FOUND_MSG$2 });
|
|
1135
1143
|
return;
|
|
1136
1144
|
}
|
|
1137
|
-
const selected = await this.pickScanRecord(records
|
|
1145
|
+
const selected = await this.pickScanRecord(records, {
|
|
1146
|
+
scene: "inventory"
|
|
1147
|
+
});
|
|
1138
1148
|
if (!selected) return;
|
|
1139
1149
|
const row = buildAllocateScanRow(selected, parsed, resolveScanFillData(input));
|
|
1140
1150
|
this.appendOrFillScanRow(row);
|
|
@@ -1524,7 +1534,7 @@ function createMaterialContainerLoader() {
|
|
|
1524
1534
|
const { mode, queryData = {}, pageNo = 1, pageSize = 100, ids = [] } = loaderParams;
|
|
1525
1535
|
const query = {
|
|
1526
1536
|
...queryData,
|
|
1527
|
-
"production_identification_type_.eq":
|
|
1537
|
+
"production_identification_type_.eq": ProductionIdentificationTypeEnum.MATERIAL,
|
|
1528
1538
|
"production_identification_type_.isNull": null,
|
|
1529
1539
|
"container_role_.ne": LOT_CONTAINER_ROLE.RELATED_PARENT
|
|
1530
1540
|
};
|
|
@@ -1584,7 +1594,7 @@ function normalizeProductionDate(row) {
|
|
|
1584
1594
|
const SCAN_NOT_FOUND_MSG = "扫描的批次/物料不存在";
|
|
1585
1595
|
function isProductionLotOrSn(record) {
|
|
1586
1596
|
const type = record.production_identification_type_;
|
|
1587
|
-
return type ===
|
|
1597
|
+
return type === ProductionIdentificationTypeEnum.LOT || type === ProductionIdentificationTypeEnum.SN;
|
|
1588
1598
|
}
|
|
1589
1599
|
function buildProductionContainerRow(record, parsed, fillData) {
|
|
1590
1600
|
return normalizeProductionDate({
|
|
@@ -1944,7 +1954,9 @@ class WarehouseOutTableCore extends ProfileDrivenSubTableCore {
|
|
|
1944
1954
|
this.error({ content: SCAN_NOT_FOUND_MSG$2 });
|
|
1945
1955
|
return;
|
|
1946
1956
|
}
|
|
1947
|
-
const selected = await this.pickScanRecord(records
|
|
1957
|
+
const selected = await this.pickScanRecord(records, {
|
|
1958
|
+
scene: "inventory"
|
|
1959
|
+
});
|
|
1948
1960
|
if (!selected) return;
|
|
1949
1961
|
const scanQty = resolveScanQty(parsed.qty, selected.qty_);
|
|
1950
1962
|
const fillData = resolveScanFillData(input);
|