@gct-paas/render-web 0.1.6-dev.19 → 0.1.6-dev.20

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.
Files changed (38) hide show
  1. package/dist/index.min.css +1 -1
  2. package/dist/loader.esm.min.js +3 -2
  3. package/es/components/collapse-detail/components/collapse-list.vue_vue_type_script_setup_true_lang.mjs +2 -2
  4. package/es/components/collapse-detail/index.vue.d.ts +9 -1
  5. package/es/components/collapse-detail/index.vue.mjs +2 -2
  6. package/es/components/collapse-detail/index.vue_vue_type_script_setup_true_name_collapse-detail_lang.mjs +4 -3
  7. package/es/components/collapse-detail/{index.vue_vue_type_style_index_0_scoped_53e7e2bf_lang.css → index.vue_vue_type_style_index_0_scoped_b4b9903c_lang.css} +19 -19
  8. package/es/components/field-search-cascader/field-cascader.vue.d.ts +17 -0
  9. package/es/components/field-search-cascader/field-cascader.vue.mjs +8 -0
  10. package/es/components/field-search-cascader/field-cascader.vue_vue_type_script_setup_true_lang.mjs +297 -0
  11. package/es/components/field-search-cascader/field-cascader.vue_vue_type_style_index_0_scoped_cb5e4d67_lang.css +52 -0
  12. package/es/components/field-search-cascader/field-cascader.vue_vue_type_style_index_1_lang.css +3 -0
  13. package/es/components/field-search-cascader/index.d.ts +2 -0
  14. package/es/components/field-search-cascader/index.mjs +1 -0
  15. package/es/components/index.d.ts +2 -0
  16. package/es/components/index.mjs +4 -0
  17. package/es/components/rich-editor/index.d.ts +2 -0
  18. package/es/components/rich-editor/index.mjs +1 -0
  19. package/es/components/rich-editor/rich-editor.vue.d.ts +22 -0
  20. package/es/components/rich-editor/rich-editor.vue.mjs +5 -0
  21. package/es/components/rich-editor/rich-editor.vue_vue_type_script_setup_true_lang.mjs +150 -0
  22. package/es/components/rich-editor/style.css +747 -0
  23. package/es/constants/xlsx-parser.d.ts +15 -0
  24. package/es/constants/xlsx-parser.mjs +58 -0
  25. package/es/enums/xlsx-parser.d.ts +293 -0
  26. package/es/enums/xlsx-parser.mjs +36 -0
  27. package/es/index.d.ts +1 -0
  28. package/es/index.mjs +5 -1
  29. package/es/interface/xlsx-parser/base.d.ts +151 -0
  30. package/es/interface/xlsx-parser/index.d.ts +246 -0
  31. package/es/types/shims-modules.d.ts +11 -0
  32. package/es/utils/cell-border.d.ts +73 -0
  33. package/es/utils/cell-border.mjs +203 -0
  34. package/es/utils/index.d.ts +1 -0
  35. package/es/utils/index.mjs +1 -0
  36. package/es/utils/xlsx-parser.d.ts +141 -0
  37. package/es/utils/xlsx-parser.mjs +262 -0
  38. package/package.json +16 -11
@@ -0,0 +1,15 @@
1
+ import { IPaper } from '../interface/xlsx-parser/index';
2
+ import { FIELD_TYPE } from '@gct-paas/core';
3
+ export declare const DEFAULT_ROW_HEIGHT = 30;
4
+ export declare const DEFAULT_COL_WIDTH = 75;
5
+ export declare const DefaultPaper: IPaper;
6
+ /**
7
+ * 导入用
8
+ * 字段属性与文本映射
9
+ */
10
+ export declare const FIELD_PROP_LABEL_MAP: Record<string, string>;
11
+ /**
12
+ * 导入用
13
+ * 字段类型与文本映射
14
+ */
15
+ export declare const FIELD_TYPE_LABEL_MAP: Partial<Record<FIELD_TYPE, string>>;
@@ -0,0 +1,58 @@
1
+ import { Orientation } from "../enums/xlsx-parser.mjs";
2
+ import { FIELD_TYPE, t } from "@gct-paas/core";
3
+ var DefaultPaper = {
4
+ sheetId: "1",
5
+ padding: {
6
+ t: 10,
7
+ r: 10,
8
+ b: 10,
9
+ l: 10
10
+ },
11
+ orientation: Orientation.Portrait,
12
+ cols: Array(10).fill("").map(() => ({ width: 75 })),
13
+ rows: Array(20).fill("").map(() => ({ height: 30 })),
14
+ cells: Array(20).fill("").map(() => Array(12).fill("").map(() => ({}))),
15
+ mergedCells: []
16
+ };
17
+ /**
18
+ * 导入用
19
+ * 字段属性与文本映射
20
+ */
21
+ var FIELD_PROP_LABEL_MAP = {
22
+ key: t("sys.onlineForm.fieldKey"),
23
+ name: t("sys.FieldName"),
24
+ type: t("sys.bi.fieldType"),
25
+ required: t("sys.requiredOrNot"),
26
+ uniqueConstraint: t("sys.model.uniqueOrNot"),
27
+ disabled: t("sys.onlineForm.disabledStatus")
28
+ };
29
+ /**
30
+ * 导入用
31
+ * 字段类型与文本映射
32
+ */
33
+ var FIELD_TYPE_LABEL_MAP = {
34
+ [FIELD_TYPE.TEXT]: t("sys.text"),
35
+ [FIELD_TYPE.LONG_TEXT]: t("sys.component.dataConnection.modelField.long_text"),
36
+ [FIELD_TYPE.INTEGER]: t("sys.component.dataConnection.modelField.integer"),
37
+ [FIELD_TYPE.LONG]: t("sys.component.dataConnection.modelField.long"),
38
+ [FIELD_TYPE.DOUBLE]: t("sys.component.dataConnection.modelField.double"),
39
+ [FIELD_TYPE.DECIMAL]: t("sys.component.dataConnection.modelField.decimal"),
40
+ [FIELD_TYPE.BOOLEAN]: t("sys.component.dataConnection.modelField.boolean"),
41
+ [FIELD_TYPE.DATE]: t("sys.component.dataConnection.modelField.date"),
42
+ [FIELD_TYPE.TIME]: t("sys.tableColumnDate"),
43
+ [FIELD_TYPE.DATE_TIME]: t("sys.component.dataConnection.modelField.date_time"),
44
+ [FIELD_TYPE.IMAGE]: t("sys.appDesigner.appLogoImage"),
45
+ [FIELD_TYPE.ATTACHMENT]: t("sys.component.dataConnection.modelField.attachment"),
46
+ [FIELD_TYPE.USER]: t("sys.component.dataConnection.modelField.user"),
47
+ [FIELD_TYPE.USER_MULTI]: t("sys.component.dataConnection.modelField.user_multi"),
48
+ [FIELD_TYPE.ORG]: t("sys.component.dataConnection.modelField.org"),
49
+ [FIELD_TYPE.ORG_MULTI]: t("sys.component.dataConnection.modelField.org_multi"),
50
+ [FIELD_TYPE.OPTION]: t("sys.model.option"),
51
+ [FIELD_TYPE.OPTION_MULTI]: t("sys.component.dataConnection.modelField.enum_multi"),
52
+ [FIELD_TYPE.SIGNATURE]: t("sys.signatureImage"),
53
+ [FIELD_TYPE.MATERIAL_NO]: "LOT/SN",
54
+ [FIELD_TYPE.PRODUCT]: t("sys.model.product"),
55
+ [FIELD_TYPE.DEVICE]: t("sys.developer.devive.index")
56
+ };
57
+ //#endregion
58
+ export { DefaultPaper, FIELD_PROP_LABEL_MAP, FIELD_TYPE_LABEL_MAP };
@@ -0,0 +1,293 @@
1
+ /** 排列方式 */
2
+ export declare enum Orientation {
3
+ /**
4
+ * 纵
5
+ */
6
+ Portrait = "portrait",// 纵
7
+ /**
8
+ * 横
9
+ */
10
+ Landscape = "landscape"
11
+ }
12
+ /** 文字前后位置 */
13
+ export declare enum LabelPosition {
14
+ /**
15
+ * 文字在前
16
+ */
17
+ Before = "before",
18
+ /**
19
+ * 文字在后
20
+ */
21
+ After = "after"
22
+ }
23
+ /** 单元格内容类型 */
24
+ export declare enum CellType {
25
+ /** 默认 */
26
+ Default = "Default",
27
+ /** 组件 */
28
+ Widget = "Widget",
29
+ /** 字段 */
30
+ Field = "Field"
31
+ }
32
+ /**
33
+ * 子表类型
34
+ */
35
+ export declare enum SubTableType {
36
+ DEFAULT = "DEFAULT",
37
+ _2D = "2D",
38
+ CHECK = "CHECK",
39
+ FIXED = "FIXED",
40
+ /** 物料消耗表 */
41
+ MATERIAL_CONSUMPTION = "MATERIAL_CONSUMPTION",
42
+ /** 物料平衡表 */
43
+ MATERIAL_BALANCE = "MATERIAL_BALANCE"
44
+ }
45
+ export declare enum ParamModelTypeEnum {
46
+ /** 组件参数 */
47
+ CompParam = "comp_param",
48
+ /** 内置参数 */
49
+ BuiltinParam = "builtin_param"
50
+ }
51
+ /**
52
+ * 电子表单 子表模型类型
53
+ */
54
+ export declare enum onlineFormMasterModelTypeEnum {
55
+ /** 基础模型 */
56
+ BASE = "BASE",
57
+ /** 动态表单 */
58
+ DYNAMIC_FORM = "DYNAMIC_FORM",
59
+ /** 物料消耗 */
60
+ MATERIAL_CONSUME = "MATERIAL_CONSUME",
61
+ /** 物料余额 */
62
+ MATERIAL_BALANCE = "MATERIAL_BALANCE",
63
+ /** 检验 */
64
+ INSPECTION = "INSPECTION"
65
+ }
66
+ /** 查看时渲染方式 */
67
+ export declare enum CellWidgetViewState {
68
+ /** 文本显示 */
69
+ Readonly = "readonly",
70
+ /** 组件显示-禁用 */
71
+ Disabled = "disabled",
72
+ /** 组件显示-跟随设计 */
73
+ Auto = "auto"
74
+ }
75
+ /** 字段的上下限校验模式 */
76
+ export declare enum RangeValidateMode {
77
+ /** 不校验 */
78
+ No_Validate = "NoValidate",
79
+ /** 固定输入校验 */
80
+ Fixed_Number = "FixedNumber",
81
+ /** 变量校验 */
82
+ Variable_Validate = "VariableValidate"
83
+ }
84
+ /**
85
+ * 小数显示模式
86
+ */
87
+ export declare enum DecimalDisplayMode {
88
+ /** 显示百分比(%) */
89
+ PERCENT = "percent",
90
+ /** 显示原始数值 */
91
+ ORIGIN = "origin"
92
+ }
93
+ /** 布尔显示方式 */
94
+ export declare enum BooleanShowMode {
95
+ /**
96
+ * 只显示真
97
+ */
98
+ OnlyTrue = "onlyTrue",
99
+ /**
100
+ * 只显示真
101
+ */
102
+ OnlyFalse = "onlyFalse",
103
+ /**
104
+ * 同时显示真和假
105
+ */
106
+ Both = "both"
107
+ }
108
+ /** 签名显示方式 */
109
+ export declare enum SignShowTypeEnum {
110
+ /** 垂直显示 */
111
+ VERTICAL = "vertical",
112
+ /** 水平显示 */
113
+ HORIZONTAL = "horizontal"
114
+ }
115
+ /** 签名日期配置 */
116
+ export declare enum SignatureTimeTypeEnum {
117
+ /** 跟随签名 */
118
+ FOLLOW_SIGNATURE = "follow_signature",
119
+ /** 填充新字段 */
120
+ POPULATE_FIELD = "populate_field"
121
+ }
122
+ /** 图片显示模式 */
123
+ export declare enum ImageDisplayModeEnum {
124
+ /** 自定义 */
125
+ CUSTOM = "CUSTOM",
126
+ /** 自适应 */
127
+ ADAPTIVE = "ADAPTIVE"
128
+ }
129
+ /** 签名人数配置 */
130
+ export declare enum SignatureNumberTypeEnum {
131
+ /** 单人签名 */
132
+ SIGNATURE_SINGLE = "signature_single",
133
+ /** 多人签名 */
134
+ SIGNATURE_MULTIPLE = "signature_multiple"
135
+ }
136
+ /**
137
+ * 页面组件值类型
138
+ */
139
+ export declare enum PaperWidgeValueType {
140
+ Fixed = "fixed",
141
+ Field = "field",
142
+ Formula = "formula"
143
+ }
144
+ export declare enum BwipCodeType {
145
+ Code39 = "code39",
146
+ Code128 = "code128",
147
+ QRCode = "qrcode",
148
+ GS1DataMatrix = "gs1datamatrix"
149
+ }
150
+ /** 分栏的方向 */
151
+ export declare enum DiagonalDirection {
152
+ /** 从左上到右下 \ */
153
+ Forward = "forward",
154
+ /** 从右上到左下 / */
155
+ Backward = "backward"
156
+ }
157
+ /**
158
+ * 图片组件高宽呈现模式
159
+ */
160
+ export declare enum WidgetImageSizeMode {
161
+ /**
162
+ * 自适应,响应式的适应外层容器的大小
163
+ */
164
+ RESPONSIVE = "responsive",
165
+ /**
166
+ * 固定值,高宽设了多少就是多少
167
+ */
168
+ FIXED = "fixed"
169
+ }
170
+ /** 线条类型 */
171
+ export declare enum LineType {
172
+ /** 实线 */
173
+ Solid = "solid",
174
+ /** 虚线 */
175
+ Dashed = "dashed",
176
+ /** 点线 */
177
+ Dotted = "dotted"
178
+ }
179
+ /** 线条方向 */
180
+ export declare enum LineDirection {
181
+ /**纵向 */
182
+ vertical = "vertical",
183
+ /**横向 */
184
+ horizontal = "horizontal"
185
+ }
186
+ /**
187
+ * 页面组件类型
188
+ */
189
+ export declare enum PaperWidgeType {
190
+ Text = "text",
191
+ Image = "image",
192
+ Barcode = "barcode",
193
+ Qrcode = "qrcode",
194
+ Pagination = "pagination",
195
+ Watermark = "watermark",
196
+ Diagonal = "diagonal",
197
+ RangeLimit = "rangelimit",
198
+ Line = "line",
199
+ Serialnumber = "serialnumber",
200
+ Power = "power",
201
+ TimeDiff = "timediff"
202
+ }
203
+ export declare enum CellWidgetCategory {
204
+ Text = "text",
205
+ DateTime = "date-time",
206
+ Integer = "integer",
207
+ Double = "double",
208
+ Decimal = "decimal",
209
+ Boolean = "boolean",
210
+ File = "file",
211
+ Image = "image",
212
+ Enum = "enum",
213
+ Signature = "signature",
214
+ User = "user",
215
+ Org = "org",
216
+ Expression = "expression",
217
+ Agg = "agg",
218
+ Ref = "ref",
219
+ /** 追溯字段 */
220
+ Trace = "trace"
221
+ }
222
+ export declare enum CellWidgetRenderComp {
223
+ Input = "input",
224
+ Textarea = "textarea",
225
+ Radio = "radio",
226
+ Checkbox = "checkbox",
227
+ Switch = "switch",
228
+ Select = "select",
229
+ DateTime = "date-time",
230
+ Image = "image",
231
+ Attachment = "attachment",
232
+ Integer = "integer",
233
+ Double = "double",
234
+ Decimal = "decimal",
235
+ Enum = "enum",
236
+ Signature = "signature",
237
+ User = "user",
238
+ Org = "org",
239
+ Expression = "expression",
240
+ Agg = "agg",
241
+ Ref = "ref"
242
+ }
243
+ export declare enum PanelType {
244
+ Paper = 0,
245
+ Cell = 1,
246
+ PaperHeader = 2,
247
+ PaperFooter = 3,
248
+ PaperHeaderWidget = 4,
249
+ PaperFooterWidget = 5,
250
+ DynamicTable = 6,
251
+ _2DTable = 7,
252
+ FixedTable = 8,
253
+ CheckTable = 9,
254
+ DataGroup = 10,
255
+ DataGroup2D = 11,
256
+ TableHeader = 12,
257
+ GlobalConfig = 13,
258
+ DataInitConfig = 14,
259
+ TmplConfig = 15,
260
+ MaterialConsumptionTable = 16,
261
+ MaterialBalanceTable = 17
262
+ }
263
+ export declare enum TimeDiffFormat {
264
+ D_H_MIN_S = "D_H_MIN_S",// 默认值
265
+ Y_M_D_H_MIN_S = "Y_M_D_H_MIN_S",
266
+ H_MIN_S = "H_MIN_S",
267
+ Y = "Y",
268
+ M = "M",
269
+ D = "D",
270
+ H = "H",
271
+ MIN = "MIN",
272
+ S = "S"
273
+ }
274
+ export declare enum FIELD_TYPE_BUSINESS {
275
+ ROUTING_OPERATION = "routing_operation",
276
+ GOOD_QTY = "good_qty",
277
+ NOT_GOOD_QTY = "not_good_qty",
278
+ REPORT_START_TIME = "report_start_time",
279
+ REPORT_END_TIME = "report_end_time",
280
+ WORK_HOURS = "work_hours",
281
+ PRODUCTION_DATE = "production_date",
282
+ REPORTER = "reporter",
283
+ NOT_GOOD_REASON = "not_good_reason",
284
+ NOT_GOOD_GROUP = "not_good_group",
285
+ SCRAP_REASON = "scrap_reason",
286
+ SCRAP_GROUP = "scrap_group",
287
+ SCRAP_QTY = "scrap_qty",
288
+ SCRAP_MATERIAL = "scrap_material",
289
+ SCRAP_MATERIAL_NO = "scrap_material_no",
290
+ DESTRUCTIVE_TEST_QTY = "destructive_test_qty",
291
+ PRODUCT_CHECK_QTY = "product_check_qty",
292
+ MATERIAL_CHECK_QTY = "material_check_qty"
293
+ }
@@ -0,0 +1,36 @@
1
+ //#region src/enums/xlsx-parser.ts
2
+ /** 排列方式 */
3
+ var Orientation = /* @__PURE__ */ function(Orientation) {
4
+ /**
5
+ * 纵
6
+ */
7
+ Orientation["Portrait"] = "portrait";
8
+ /**
9
+ * 横
10
+ */
11
+ Orientation["Landscape"] = "landscape";
12
+ return Orientation;
13
+ }({});
14
+ var FIELD_TYPE_BUSINESS = /* @__PURE__ */ function(FIELD_TYPE_BUSINESS) {
15
+ FIELD_TYPE_BUSINESS["ROUTING_OPERATION"] = "routing_operation";
16
+ FIELD_TYPE_BUSINESS["GOOD_QTY"] = "good_qty";
17
+ FIELD_TYPE_BUSINESS["NOT_GOOD_QTY"] = "not_good_qty";
18
+ FIELD_TYPE_BUSINESS["REPORT_START_TIME"] = "report_start_time";
19
+ FIELD_TYPE_BUSINESS["REPORT_END_TIME"] = "report_end_time";
20
+ FIELD_TYPE_BUSINESS["WORK_HOURS"] = "work_hours";
21
+ FIELD_TYPE_BUSINESS["PRODUCTION_DATE"] = "production_date";
22
+ FIELD_TYPE_BUSINESS["REPORTER"] = "reporter";
23
+ FIELD_TYPE_BUSINESS["NOT_GOOD_REASON"] = "not_good_reason";
24
+ FIELD_TYPE_BUSINESS["NOT_GOOD_GROUP"] = "not_good_group";
25
+ FIELD_TYPE_BUSINESS["SCRAP_REASON"] = "scrap_reason";
26
+ FIELD_TYPE_BUSINESS["SCRAP_GROUP"] = "scrap_group";
27
+ FIELD_TYPE_BUSINESS["SCRAP_QTY"] = "scrap_qty";
28
+ FIELD_TYPE_BUSINESS["SCRAP_MATERIAL"] = "scrap_material";
29
+ FIELD_TYPE_BUSINESS["SCRAP_MATERIAL_NO"] = "scrap_material_no";
30
+ FIELD_TYPE_BUSINESS["DESTRUCTIVE_TEST_QTY"] = "destructive_test_qty";
31
+ FIELD_TYPE_BUSINESS["PRODUCT_CHECK_QTY"] = "product_check_qty";
32
+ FIELD_TYPE_BUSINESS["MATERIAL_CHECK_QTY"] = "material_check_qty";
33
+ return FIELD_TYPE_BUSINESS;
34
+ }({});
35
+ //#endregion
36
+ export { FIELD_TYPE_BUSINESS, Orientation };
package/es/index.d.ts CHANGED
@@ -2,4 +2,5 @@ export { setupPageEvent, usePageEvent, type ContextPcType, type EventsPC, } from
2
2
  export * from './components/index';
3
3
  export * from './hooks';
4
4
  export { renderWebSetupApp } from './setup-app';
5
+ export * from './utils';
5
6
  export declare function run(): void;
package/es/index.mjs CHANGED
@@ -15,11 +15,15 @@ import FieldRadio_default from "./components/form-component/FieldRadio.mjs";
15
15
  import FieldCheckbox_default from "./components/form-component/FieldCheckbox.mjs";
16
16
  import multi_field_display_default from "./components/multi-field/multi-field-display.vue.mjs";
17
17
  import collapse_detail_default from "./components/collapse-detail/index.vue.mjs";
18
+ import field_cascader_default from "./components/field-search-cascader/field-cascader.vue.mjs";
19
+ import rich_editor_default from "./components/rich-editor/rich-editor.vue.mjs";
18
20
  import "./components/index.mjs";
19
21
  import { renderWebSetupApp } from "./setup-app.mjs";
22
+ import { XlsxParser } from "./utils/xlsx-parser.mjs";
23
+ import "./utils/index.mjs";
20
24
  //#region src/index.ts
21
25
  function run() {
22
26
  console.log("Hello World!");
23
27
  }
24
28
  //#endregion
25
- export { basic_page_default as BasicPage, basic_page_render_default as BasicPageRender, CardViewRender, collapse_detail_default as CollapseDetail, FieldCheckbox_default as FieldCheckbox, FieldRadio_default as FieldRadio, FieldSelect_default as FieldSelect, multi_field_display_default as MultiFieldDisplay, tag_span_default as Tag, field_readonly_default as fieldReadonly, getDataByModelType, ref_card_label_render_default as refCardLabelRender, renderWebSetupApp, run, selectTag_default as selectTag, setupPageEvent, tag_label_default as taglabel, useGetRefCard, usePageEvent, useQuickNext, useRefCardData, useSearchEvent };
29
+ export { basic_page_default as BasicPage, basic_page_render_default as BasicPageRender, CardViewRender, collapse_detail_default as CollapseDetail, FieldCheckbox_default as FieldCheckbox, FieldRadio_default as FieldRadio, field_cascader_default as FieldSearchCascader, FieldSelect_default as FieldSelect, multi_field_display_default as MultiFieldDisplay, rich_editor_default as RichEditor, tag_span_default as Tag, XlsxParser, field_readonly_default as fieldReadonly, getDataByModelType, ref_card_label_render_default as refCardLabelRender, renderWebSetupApp, run, selectTag_default as selectTag, setupPageEvent, tag_label_default as taglabel, useGetRefCard, usePageEvent, useQuickNext, useRefCardData, useSearchEvent };
@@ -0,0 +1,151 @@
1
+ import { CreateType, FIELD_TYPE } from '@gct-paas/core';
2
+ import { FieldMetaDTO } from '@gct-paas/api/apaas';
3
+ import { onlineFormMasterModelTypeEnum } from '../../enums/xlsx-parser';
4
+ export interface IBindField {
5
+ /** 字段key */
6
+ field?: string;
7
+ /** 字段类型 */
8
+ fieldType?: FIELD_TYPE;
9
+ /** 字段所属模型 */
10
+ model?: string;
11
+ /** 模型链路 */
12
+ modelLink?: string;
13
+ /** 字段链路 */
14
+ fieldLink?: string;
15
+ /** 是否是关联模型字段 */
16
+ isFieldModel?: boolean;
17
+ /** 子表模型key */
18
+ subModelKey?: string;
19
+ /** 子表模型类型 */
20
+ subModelType?: string;
21
+ /** 子表字段key */
22
+ subFieldKey?: string;
23
+ /** 字段来源 */
24
+ createType?: CreateType;
25
+ /** 引用的模型key */
26
+ refModelKey?: string;
27
+ }
28
+ export interface IToFieldItem {
29
+ /** 字段key */
30
+ field: string | undefined;
31
+ /** 字段类型 */
32
+ fieldType: string | undefined;
33
+ /** 字段来源 */
34
+ createType?: CreateType;
35
+ }
36
+ export interface ICellBorder {
37
+ left?: boolean;
38
+ top?: boolean;
39
+ right?: boolean;
40
+ bottom?: boolean;
41
+ bold?: boolean;
42
+ boldLeft?: boolean;
43
+ boldTop?: boolean;
44
+ boldRight?: boolean;
45
+ boldBottom?: boolean;
46
+ }
47
+ /** bom明细对象 */
48
+ export interface IBomEntry {
49
+ /** 明细id */
50
+ id_: string;
51
+ /** 排序字段 */
52
+ sort_num_: number;
53
+ /** 物料id */
54
+ product_id_: string;
55
+ /** 物料编码 */
56
+ product_code_: string;
57
+ /** 物料名称 */
58
+ product_name_: string;
59
+ /** 物料版本 */
60
+ product_version_: string;
61
+ /** 规格型号 */
62
+ product_spec_: string;
63
+ /** 单位用量 */
64
+ qty_required_: number;
65
+ /** 删除标记 */
66
+ deleted_?: boolean;
67
+ /** 上料方式 */
68
+ type_: 'by_lot' | 'by_number' | 'view';
69
+ /** 是否启用替代料 */
70
+ substitute_material_enabled_: boolean;
71
+ /** 替代策略 */
72
+ substitute_policy_: 'only_one' | 'mixing';
73
+ /** 替代料配置 */
74
+ substitute_material_entries_: {
75
+ /** 物料标识 */
76
+ product_id_: string;
77
+ /** 物料编码 */
78
+ product_code_: string;
79
+ /** 单位用量 */
80
+ qty_required_: number;
81
+ /** 物料名称 */
82
+ product_name_: string;
83
+ /** 物料版本 */
84
+ product_version_: string;
85
+ /** 规格型号 */
86
+ product_spec_: string;
87
+ }[];
88
+ /** 是否启用混批的校验 */
89
+ lot_mixing_enabled_: boolean;
90
+ /** 混批次数 */
91
+ lot_mixing_times_: number;
92
+ /** 是否启用数量校验 */
93
+ qty_validation_enabled_: boolean;
94
+ /** 数量校验规则 */
95
+ qty_validation_rule_: 'eq' | 'gte' | 'lte';
96
+ /** 顺序 */
97
+ operation_sort_num_?: number;
98
+ }
99
+ /** 物料消耗表业务配置 */
100
+ export interface IFormTmplBom {
101
+ /** 唯一标识 */
102
+ id_?: string;
103
+ /** 表单模板id */
104
+ form_tmpl_id_?: string;
105
+ /** 表单里物料消耗表的id */
106
+ table_key_: string;
107
+ /** 是否启用上下料模式 */
108
+ material_loading_model_enabled_: boolean;
109
+ /** 条码解析规则 */
110
+ barcode_parsing_rules_id_?: string;
111
+ /** 从BOM初始化 */
112
+ bom_init_enabled_?: boolean;
113
+ /** 人为指定物料 */
114
+ personal_bom_enabled_?: boolean;
115
+ /** 按顺序上料 */
116
+ sequence_loading_enabled_?: boolean;
117
+ /** bom明细 */
118
+ entries_: IBomEntry[];
119
+ /** 删除标记 */
120
+ deleted_?: boolean;
121
+ }
122
+ export interface IModel {
123
+ key?: string;
124
+ name?: string;
125
+ subModel?: number;
126
+ /**
127
+ *
128
+ */
129
+ subModelType?: onlineFormMasterModelTypeEnum;
130
+ }
131
+ /** 表单里所有模型信息 */
132
+ export type IModelMetaMap = Record<string, {
133
+ meta: IModel;
134
+ fields: FieldMetaDTO[];
135
+ }>;
136
+ export interface CellField {
137
+ x: number;
138
+ y: number;
139
+ fieldKey?: string;
140
+ fieldName?: string;
141
+ fieldType: string;
142
+ }
143
+ export interface ImportedFieldMeta {
144
+ key?: string;
145
+ tmpOldKey?: string;
146
+ name: string;
147
+ type: string;
148
+ required: string;
149
+ uniqueConstraint: any;
150
+ disabled: string;
151
+ }