@gct-paas/word 0.1.52-beta.6 → 0.1.52-beta.8
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/core/data/DataManager.d.ts +5 -0
- package/dist/core/utils/expand.d.ts +1 -1
- package/dist/domain/field/field-type.d.ts +16 -1
- package/dist/domain/table/business/warehouse/warehouse-allocate/profile/field-keys.d.ts +1 -1
- package/dist/domain/table/business/warehouse/warehouse-inventory/runtime/scan-config.d.ts +7 -0
- package/dist/domain/table/design/sub-model-matcher.d.ts +5 -0
- package/dist/index.es.js +1645 -958
- package/dist/runtime/designer/ribbon/components/sub-table-form-modal.vue.d.ts +1 -0
- package/dist/sdk/doc-runtime/check-table/index.d.ts +2 -2
- package/dist/sdk/doc-runtime/check-table/map-check-table-item-infos.d.ts +2 -6
- package/dist/sdk/doc-runtime/check-table/resolve-check-table-item-infos.d.ts +5 -5
- package/dist/sdk/doc-runtime/check-table/types.d.ts +1 -1
- package/dist/suites/edhr/panel-schema/check-table/CheckTablePanel.vue.d.ts +8 -0
- package/dist/suites/edhr/panel-schema/check-table/add-ds-btn.vue.d.ts +14 -0
- package/dist/suites/edhr/panel-schema/check-table/types.d.ts +20 -0
- package/dist/utils/TriggerUtil.d.ts +1 -1
- package/dist/word.css +59 -30
- package/package.json +2 -2
|
@@ -123,6 +123,11 @@ export declare class DataManager {
|
|
|
123
123
|
getHref<T = string>(path: JsonPath): T | null | undefined;
|
|
124
124
|
/** 子表数组路径下未软删行数 */
|
|
125
125
|
countActiveSubtableRows(arrayPath: JsonPath): number;
|
|
126
|
+
/**
|
|
127
|
+
* 统计 defaults 中按 `$.subFieldKey[i].*` 展开的检验项行数。
|
|
128
|
+
* 检验表纵向轴配置只进 defaults,rawData 可能尚未物化多行。
|
|
129
|
+
*/
|
|
130
|
+
countDefaultsIndexedRows(subFieldKey: string): number;
|
|
126
131
|
/** 版面可见行下标 → rawData 数组实际下标 */
|
|
127
132
|
resolveSubtableVisibleIndex(arrayPath: JsonPath, visibleIndex: number): number;
|
|
128
133
|
private assignField;
|
|
@@ -124,7 +124,7 @@ export declare class TableExpander {
|
|
|
124
124
|
*/
|
|
125
125
|
private applyCheckTableYDataIndex;
|
|
126
126
|
private resolveCheckTableYDataIndex;
|
|
127
|
-
/**
|
|
127
|
+
/** 检验表主体数据条数 */
|
|
128
128
|
private getCheckTableDataCount;
|
|
129
129
|
/** 单条数据占用的主体模板行数(接口预扩行后由「扩后行数 / 数据条数」反推) */
|
|
130
130
|
private getCheckTableTemplateBodyRowStride;
|
|
@@ -332,9 +332,24 @@ export declare enum FIELD_TYPE {
|
|
|
332
332
|
* 物料批次(生产标识)
|
|
333
333
|
*/
|
|
334
334
|
PRODUCTION_IDENTIFIER = "production_identifier",
|
|
335
|
+
/**
|
|
336
|
+
* 对象
|
|
337
|
+
*/
|
|
335
338
|
OBJECT_TYPE = "object_type",
|
|
339
|
+
/**
|
|
340
|
+
* 物料消耗对象
|
|
341
|
+
*/
|
|
336
342
|
MATERIAL_CONSUME = "material_consume",
|
|
343
|
+
/**
|
|
344
|
+
* 数量
|
|
345
|
+
*/
|
|
337
346
|
QTY = "qty",
|
|
347
|
+
/**
|
|
348
|
+
* 消耗数量
|
|
349
|
+
*/
|
|
338
350
|
QTY_CONSUMED = "qty_consumed",
|
|
339
|
-
|
|
351
|
+
/**
|
|
352
|
+
* 需求数量
|
|
353
|
+
*/
|
|
354
|
+
QTY_REQUIRED = "qty_required"
|
|
340
355
|
}
|
|
@@ -24,4 +24,4 @@ export declare const F: {
|
|
|
24
24
|
};
|
|
25
25
|
export type AllocateFieldKey = (typeof F)[keyof typeof F];
|
|
26
26
|
/** runtimeRules:始终只读的信息字段 */
|
|
27
|
-
export declare const READONLY_INFO_FIELDS: readonly ["product_id_name_", "product_id_code_", "product_id_spec_", "stock_num_", "validity_"];
|
|
27
|
+
export declare const READONLY_INFO_FIELDS: readonly ["product_id_name_", "product_id_code_", "product_id_spec_", "production_identification_id_", "stock_num_", "validity_", "origin_warehouse_id_", "origin_location_id_"];
|
|
@@ -13,6 +13,13 @@ export interface WarehouseInventoryScanInput {
|
|
|
13
13
|
type: WarehouseInventoryScanAdjustType;
|
|
14
14
|
}
|
|
15
15
|
export declare const SCAN_QTY_ASSIGN_STRATEGY: ScanQtyAssignStrategy;
|
|
16
|
+
/** 单次扫码内的 qty 写入状态(跨物料组共享) */
|
|
17
|
+
export interface ScanQtyAssignState {
|
|
18
|
+
qtyAssignedOnScan: boolean;
|
|
19
|
+
qtyAssignedRowIndexes: Set<number>;
|
|
20
|
+
}
|
|
21
|
+
export declare function createScanQtyAssignState(): ScanQtyAssignState;
|
|
22
|
+
export declare function markScanQtyAssigned(state: ScanQtyAssignState, rowIndex: number): void;
|
|
16
23
|
export declare function shouldAssignScanQty(options: {
|
|
17
24
|
strategy: ScanQtyAssignStrategy;
|
|
18
25
|
assignScanQty: boolean;
|
|
@@ -7,6 +7,11 @@ import { DropdownOption } from '../../../base';
|
|
|
7
7
|
* @param usedKeys 文档中已占用的子模型 field key(不可重复绑定)
|
|
8
8
|
*/
|
|
9
9
|
export declare function getSubModelOptions(tableTypeOrRibbonAction: string, fields: FieldMeta[], usedKeys?: string[]): DropdownOption[];
|
|
10
|
+
/**
|
|
11
|
+
* 动态关联模型下拉选项
|
|
12
|
+
* 仅可选普通子模型
|
|
13
|
+
*/
|
|
14
|
+
export declare function getDynamicLinkSubModelOptions(fields: FieldMeta[], usedKeys?: string[]): DropdownOption[];
|
|
10
15
|
/**
|
|
11
16
|
* 创建子表前兜底校验
|
|
12
17
|
* @throws 子模型与表类型不匹配时抛出 Error
|