@gct-paas/excel 0.1.37-beta.0 → 0.1.37-beta.2
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-DQaCGLeT.js → BaseComponent-DN5v-Q_h.js} +4 -3
- package/dist/{VueVideoPlayer-C6a9Wt23.js → VueVideoPlayer-C49th9G_.js} +2 -2
- package/dist/{align-editor-BIgxBb3c.js → align-editor-CpscpDxA.js} +1 -1
- package/dist/{barcode-design-6urZiVEU.js → barcode-design-B7AoHzux.js} +3 -2
- package/dist/base/index.es.js +150 -10
- package/dist/{diagonal-design-Dmvh3iV7.js → diagonal-design-CeYHDi2e.js} +3 -2
- package/dist/{dynamic-table-action-CIQHe0dS.js → dynamic-table-action-zR6VwiFi.js} +32 -15
- package/dist/{dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-CfpxTsKR.js → dynamic-table-action.vue_vue_type_style_index_0_scoped_53d7e66c_lang-BDkKB_4N.js} +13 -6
- package/dist/{edit.utils-CXmmCnxE-BSdD_tOR.js → edit.utils-CXmmCnxE-evcsspEJ.js} +1 -1
- package/dist/excel.css +15 -15
- package/dist/{exceljs.min-CLghjkvN.js → exceljs.min-DYYU4xe-.js} +2 -2
- package/dist/{font-editor-Bergh2R4.js → font-editor-hpUeXFv_.js} +3 -3
- package/dist/{image-design-CE8RmqGR.js → image-design-BnDK5Jwf.js} +2 -2
- package/dist/{index-D1_SYDPv.js → index-3n5gOxbD.js} +3 -2
- package/dist/{index-BXSzJMT7.js → index-557u9lSs.js} +2 -1
- package/dist/{index-C7TEXlbZ.js → index-B8tTsX2y.js} +3 -2
- package/dist/{index-DnZq1s_3.js → index-B9q2iVJw.js} +4 -3
- package/dist/{index-Dgu35iIj.js → index-BEyidTCC.js} +2 -1
- package/dist/{index-BGpCYZm4.js → index-BWvyGnI_.js} +3 -2
- package/dist/{index-BJdOVQGJ.js → index-BY7_uLSS.js} +2 -1
- package/dist/{index-DA5PXti2.js → index-BaC0Py3z.js} +254 -171
- package/dist/{index-D-HlMlRd.js → index-BboAW45l.js} +4 -3
- package/dist/{index-Byh0Vmlz.js → index-BcfmxYW-.js} +3 -2
- package/dist/{index-BfHBvOdP.js → index-BezxcVwZ.js} +3 -2
- package/dist/{index-DwKg7b0U.js → index-Bfrtgjub.js} +3 -2
- package/dist/{index-BCxnsShs.js → index-Bxgg0txy.js} +2 -1
- package/dist/{index-Dqr0oBlM.js → index-CA25B2UR.js} +3 -2
- package/dist/{index-D-Jbq4My.js → index-CLyowrpG.js} +3 -2
- package/dist/{index-geVnq_KD.js → index-CRj08TWu.js} +3 -2
- package/dist/{index-C2olS5vJ.js → index-CUhR3L97.js} +4 -3
- package/dist/{index-bX1S8t3o.js → index-CUhlQ0aK.js} +4 -3
- package/dist/{index-D6Z8-FC9.js → index-CXBwY7ba.js} +2 -2
- package/dist/{index-DqOxVJR-.js → index-CZv8lo_f.js} +3 -2
- package/dist/{index-DyHrkuGj.js → index-Crs2UUiJ.js} +3 -2
- package/dist/{index-KcZJqM3I.js → index-D1C_tY7a.js} +2 -1
- package/dist/{index-Dw7SQNDy.js → index-D3t6B-9k.js} +2 -1
- package/dist/{index-Chu6332Q.js → index-D6T0GkNc.js} +3 -2
- package/dist/{index-BVcJPSOs.js → index-D9pfqRAP.js} +5 -4
- package/dist/{index-DuyXEchF.js → index-DKAk8Fzf.js} +3 -2
- package/dist/{index-CA6CWt8y.js → index-DP1WApp-.js} +2 -1
- package/dist/{index-BDeyH_2H.js → index-DPiPri6e.js} +3 -2
- package/dist/{index-ROHlRUFD.js → index-DULgJ5M_.js} +2 -1
- package/dist/{index-D6udXzjh.js → index-DX1Nqubf.js} +3 -2
- package/dist/{index-CuZvl7YB.js → index-Dfs0gE3N.js} +3 -2
- package/dist/{index-CNzY1FwH.js → index-HNE-yLqK.js} +3 -2
- package/dist/{index-BVxo9GHy.js → index-YuHHwSzv.js} +2 -1
- package/dist/{index-m0iGs0bS.js → index-sQI9wXhV.js} +2 -1
- package/dist/{index-a3Y8FZwA.js → index-tRVTXeIS.js} +3 -2
- package/dist/index.es.js +4 -2
- package/dist/{mb-render-DhKkFfcm.js → mb-render-jAsNtPqY.js} +1 -1
- package/dist/{online-form-model-select.vue_vue_type_script_setup_true_name_online-form-model-select_lang-DhTO6jGt.js → online-form-model-select.vue_vue_type_script_setup_true_name_online-form-model-select_lang-Cxs9ZecX.js} +2 -1
- package/dist/{pagination-design-D9hm70UW.js → pagination-design-lgUGQHWo.js} +3 -2
- package/dist/paper-widget-design-B6GKQFw2.js +4 -0
- package/dist/{print-runtime-instance-CXj_GS84.js → print-runtime-instance-MxA8-bHV.js} +1 -1
- package/dist/{print-snapshot-renderer-BK2XvbLK.js → print-snapshot-renderer-D6sRzdVe.js} +3 -3
- package/dist/{qrcode-design-BrEZ2nXO.js → qrcode-design-DCgtf75a.js} +1 -1
- package/dist/{revo-grid.entry-BBZIZgKP.js → revo-grid.entry-Bygattd8.js} +1 -1
- package/dist/{revogr-attribution_7.entry-rfjINVxu.js → revogr-attribution_7.entry-BqzhD1hP.js} +3 -3
- package/dist/{revogr-clipboard_3.entry-Bg3AuwfG.js → revogr-clipboard_3.entry-Wr7KhnJ_.js} +2 -2
- package/dist/{revogr-data_4.entry-C8O2Iv2n.js → revogr-data_4.entry-CrFW39f1.js} +2 -2
- package/dist/{revogr-filter-panel.entry-uQBhKoSX.js → revogr-filter-panel.entry-9khS41SL.js} +1 -1
- package/dist/seal-design-CJO9Kmm0.js +4 -0
- package/dist/{serialnumber-design-DCkPTZFe.js → serialnumber-design-eXgfrjw9.js} +1 -1
- package/dist/shared/index.es.js +2 -2
- package/dist/{single-field-drop-BL43JC5V.js → single-field-drop-rKr_LXW8.js} +2 -2
- package/dist/{size-editor-BKqS03Gi.js → size-editor-OEPrJU0W.js} +1 -1
- package/dist/src/index.d.ts +6 -0
- package/dist/src/nocode-base/src/hooks/render-page/runtime-data-sources.d.ts +45 -0
- package/dist/src/nocode-base/src/hooks/render-page/types.d.ts +3 -0
- package/dist/src/nocode-base/src/hooks/useEbrWikiFactoryV2.d.ts +224 -0
- package/dist/src/nocode-base/src/hooks/useRenderPageFactory.d.ts +39 -0
- package/dist/src/nocode-base/src/hooks/useRuntimeInstanceServices.d.ts +21 -0
- package/dist/src/nocode-base/src/hooks/validation/merge.d.ts +3 -2
- package/dist/src/nocode-base/src/runtime/conversions/v1-runtime.d.ts +1 -1
- package/dist/src/nocode-base/src/runtime/runtime-instance-registry.d.ts +5 -5
- package/dist/src/nocode-base/src/types/common/base.d.ts +2 -0
- package/dist/src/online-form/src/components/device/device-select.vue.d.ts +1 -1
- package/dist/src/online-form/src/views/designer/hooks/useAllSpreadSheets.d.ts +124 -0
- package/dist/src/online-form/src/views/designer/hooks/useSpreadSheet.d.ts +66 -0
- package/dist/src/online-form/src/views/designer/modules/panel/sub-table/comps/use-dynamic-sub-table-panel.d.ts +6 -0
- package/dist/src/online-form/src/views/designer/types/index.d.ts +5 -0
- package/dist/src/online-form/src/views/render/__components__/_field_/_base_/cell/cell-media.vue.d.ts +1 -1
- package/dist/src/online-form/src/views/render/__components__/_field_/seal/index.d.ts +1 -0
- package/dist/src/shared/components/Seal/seal-positioned.vue.d.ts +3 -1
- package/dist/src/shared/components/field-transfer/hooks/useModelField.d.ts +5 -0
- package/dist/{sub-table-factory-BxnZRD5d.js → sub-table-factory-DLXJkTHY.js} +2 -2
- package/dist/{text-design-LpqAAdUy.js → text-design-Dd5uT-hc.js} +3 -2
- package/dist/{throttle-Cpk1LoGk-Ci963h-N.js → throttle-Cpk1LoGk-DxTostCa.js} +1 -1
- package/dist/{timediff-design-DAD_BKWH.js → timediff-design-DhxYymPd.js} +2 -1
- package/dist/{trace-like-wrapper-Bq4-R_-a.js → trace-like-wrapper-CczUTJwp.js} +3 -2
- package/dist/{value-editor.vue_vue_type_style_index_0_lang-DWP8nFsa.js → value-editor.vue_vue_type_style_index_0_lang-BzAhq5rc.js} +3 -2
- package/dist/web-render/index.es.js +4 -3
- package/dist/{widget-barcode-7jbXypLa.js → widget-barcode-BrLmLnCd.js} +5 -4
- package/dist/{widget-diagonal-CAhF4RdS.js → widget-diagonal-CIg1Yn3D.js} +4 -3
- package/dist/{widget-image-fajmaZZL.js → widget-image-bPGudw8R.js} +5 -5
- package/dist/{widget-line-BnpVz3Cw.js → widget-line-Dw1mkN0H.js} +3 -2
- package/dist/{widget-pagination-CBRrI8Gg.js → widget-pagination-C2ylpEkR.js} +6 -5
- package/dist/{widget-power-CeJ_lpsq.js → widget-power-Ceni1m5s.js} +4 -3
- package/dist/{widget-qrcode-DJDwbHFC.js → widget-qrcode-dHuN8ZTP.js} +4 -3
- package/dist/{widget-rangelimit-BfMODXDL.js → widget-rangelimit-DkZwe6ix.js} +3 -3
- package/dist/{widget-serialnumber-C7B10sEv.js → widget-serialnumber-Dz2_gK_C.js} +1 -1
- package/dist/{widget-text-1XmDP1ym.js → widget-text-BIMT_dmX.js} +5 -5
- package/dist/{widget-timediff-CXke343Y.js → widget-timediff-LoUQBpX7.js} +3 -2
- package/package.json +2 -2
- package/dist/paper-widget-design-zve0OviL.js +0 -4
- package/dist/seal-design-B42sQwSF.js +0 -4
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { IBasicInfoItem } from '../../types';
|
|
2
|
+
import { RuntimeInstanceRecord, RuntimeInstanceRegistry } from '../../runtime';
|
|
3
|
+
import { IPayload, RuntimeSelfInfo } from './types';
|
|
4
|
+
export declare function createRuntimeDataSourceBinding(registry: RuntimeInstanceRegistry, payload: IPayload): {
|
|
5
|
+
dataSourceManagerMap: import('vue').ShallowRef<Record<string, {
|
|
6
|
+
getSources: () => import('@gct-paas/form-base').DataSourceConfig[];
|
|
7
|
+
getContext: () => Record<string, unknown>;
|
|
8
|
+
canExecute: () => boolean;
|
|
9
|
+
reload: (key: string) => Promise<unknown>;
|
|
10
|
+
reloadAll: () => Promise<PromiseSettledResult<unknown>[]>;
|
|
11
|
+
states: {
|
|
12
|
+
readonly [x: string]: {
|
|
13
|
+
readonly status: import('@gct-paas/form-base').DataSourceQueryStatus;
|
|
14
|
+
readonly data?: Readonly<unknown> | undefined;
|
|
15
|
+
readonly error?: string | undefined;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
query: (key: string, parameters?: import('@gct-paas/form-base').DataSourceParameters) => Promise<unknown>;
|
|
19
|
+
cancel: (key: string) => boolean;
|
|
20
|
+
getResult(key: string): unknown;
|
|
21
|
+
initialize: () => Promise<PromiseSettledResult<unknown>[]>;
|
|
22
|
+
queryOnValueChange(keys: readonly string[]): Promise<PromiseSettledResult<unknown>[]>;
|
|
23
|
+
dispose(): void;
|
|
24
|
+
}>, Record<string, {
|
|
25
|
+
getSources: () => import('@gct-paas/form-base').DataSourceConfig[];
|
|
26
|
+
getContext: () => Record<string, unknown>;
|
|
27
|
+
canExecute: () => boolean;
|
|
28
|
+
reload: (key: string) => Promise<unknown>;
|
|
29
|
+
reloadAll: () => Promise<PromiseSettledResult<unknown>[]>;
|
|
30
|
+
states: {
|
|
31
|
+
readonly [x: string]: {
|
|
32
|
+
readonly status: import('@gct-paas/form-base').DataSourceQueryStatus;
|
|
33
|
+
readonly data?: Readonly<unknown> | undefined;
|
|
34
|
+
readonly error?: string | undefined;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
query: (key: string, parameters?: import('@gct-paas/form-base').DataSourceParameters) => Promise<unknown>;
|
|
38
|
+
cancel: (key: string) => boolean;
|
|
39
|
+
getResult(key: string): unknown;
|
|
40
|
+
initialize: () => Promise<PromiseSettledResult<unknown>[]>;
|
|
41
|
+
queryOnValueChange(keys: readonly string[]): Promise<PromiseSettledResult<unknown>[]>;
|
|
42
|
+
dispose(): void;
|
|
43
|
+
}>>;
|
|
44
|
+
bindDataSources: (record: RuntimeInstanceRecord, info: IBasicInfoItem, selfInfo: RuntimeSelfInfo) => Promise<void>;
|
|
45
|
+
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { RenderModeEnum, PlatformEnum, BpmnNodeTypeEnum } from '../../constant';
|
|
2
2
|
import { baseDataUtils } from '../../interface';
|
|
3
3
|
import { RuntimeFormStateStore } from '../../runtime';
|
|
4
|
+
import { DataSourceManagerOptions } from '@gct-paas/form-base';
|
|
4
5
|
export interface IProps {
|
|
5
6
|
/** 模板实例id或者模板id */
|
|
6
7
|
selfId: string | string[] | undefined;
|
|
@@ -32,6 +33,8 @@ interface IDeviceConfig {
|
|
|
32
33
|
export interface IPayload extends ITemplatePayload, IInstancePayload {
|
|
33
34
|
/** 工厂类型 */
|
|
34
35
|
factoryType: 'template' | 'instance' | 'batchInstance' | 'batchTemplate';
|
|
36
|
+
/** 表单、实体和业务数源的宿主查询适配器。 */
|
|
37
|
+
dataSourceAdapters?: DataSourceManagerOptions['adapters'];
|
|
35
38
|
/** 请求接口函数 */
|
|
36
39
|
requestCallback: (...args: any[]) => any;
|
|
37
40
|
/** 平台参数类型 */
|
|
@@ -92,11 +92,14 @@ export declare function useEbrWikiFactoryV2(props: IProps, payload: IPayload): {
|
|
|
92
92
|
productId?: string | undefined;
|
|
93
93
|
productName?: string | undefined;
|
|
94
94
|
productVersion?: string | undefined;
|
|
95
|
+
qty?: number | undefined;
|
|
96
|
+
relatedParentName?: string | undefined;
|
|
95
97
|
serialNo?: string | undefined;
|
|
96
98
|
spec?: string | undefined;
|
|
97
99
|
tmplId?: string | undefined;
|
|
98
100
|
tmplName?: string | undefined;
|
|
99
101
|
tmplVersion?: string | undefined;
|
|
102
|
+
udi?: string | undefined;
|
|
100
103
|
}[] | undefined;
|
|
101
104
|
edhrInstanceStatus?: string | undefined;
|
|
102
105
|
exceptionFlag?: boolean | undefined;
|
|
@@ -108,14 +111,67 @@ export declare function useEbrWikiFactoryV2(props: IProps, payload: IPayload): {
|
|
|
108
111
|
formInstBom?: {
|
|
109
112
|
bomEntries?: object[] | undefined;
|
|
110
113
|
formTmplBomList?: object[] | undefined;
|
|
114
|
+
formTmplObjectBomList?: object[] | undefined;
|
|
111
115
|
productionIdentificationId?: string | undefined;
|
|
112
116
|
qty?: number | undefined;
|
|
113
117
|
sequenceEntries?: object[] | undefined;
|
|
114
118
|
} | undefined;
|
|
115
119
|
formType?: string | undefined;
|
|
120
|
+
frontConfig?: string | undefined;
|
|
116
121
|
height?: number | undefined;
|
|
117
122
|
id?: string | undefined;
|
|
123
|
+
inspectionParamList?: {
|
|
124
|
+
attachmentValue?: string | undefined;
|
|
125
|
+
boolValue?: number | undefined;
|
|
126
|
+
checkResult?: string | undefined;
|
|
127
|
+
createOrgId?: string | undefined;
|
|
128
|
+
createTime?: string | undefined;
|
|
129
|
+
createUserId?: string | undefined;
|
|
130
|
+
createUserName?: string | undefined;
|
|
131
|
+
customFieldKey?: string | undefined;
|
|
132
|
+
customFieldName?: string | undefined;
|
|
133
|
+
customFieldType?: string | undefined;
|
|
134
|
+
dataVersion?: number | undefined;
|
|
135
|
+
dateTimeValue?: string | undefined;
|
|
136
|
+
dateValue?: string | undefined;
|
|
137
|
+
decimalValue?: number | undefined;
|
|
138
|
+
doubleValue?: number | undefined;
|
|
139
|
+
id?: string | undefined;
|
|
140
|
+
imageValue?: string | undefined;
|
|
141
|
+
intValue?: number | undefined;
|
|
142
|
+
interconnectParam?: string | undefined;
|
|
143
|
+
longTextValue?: string | undefined;
|
|
144
|
+
longValue?: number | undefined;
|
|
145
|
+
lowerLimit?: number | undefined;
|
|
146
|
+
modifyOrgId?: string | undefined;
|
|
147
|
+
modifyTime?: string | undefined;
|
|
148
|
+
modifyUserId?: string | undefined;
|
|
149
|
+
modifyUserName?: string | undefined;
|
|
150
|
+
orgMultiValue?: string | undefined;
|
|
151
|
+
orgValue?: string | undefined;
|
|
152
|
+
originId?: string | undefined;
|
|
153
|
+
processId?: string | undefined;
|
|
154
|
+
refFieldKey?: string | undefined;
|
|
155
|
+
refMasterId?: string | undefined;
|
|
156
|
+
refModelKey?: string | undefined;
|
|
157
|
+
referenceValue?: number | undefined;
|
|
158
|
+
remark?: string | undefined;
|
|
159
|
+
routingOperationId?: string | undefined;
|
|
160
|
+
sortNum?: number | undefined;
|
|
161
|
+
targetValue?: number | undefined;
|
|
162
|
+
tenantId?: string | undefined;
|
|
163
|
+
textValue?: string | undefined;
|
|
164
|
+
timeValue?: {
|
|
165
|
+
hour?: number | undefined;
|
|
166
|
+
minute?: number | undefined;
|
|
167
|
+
nano?: number | undefined;
|
|
168
|
+
second?: number | undefined;
|
|
169
|
+
} | undefined;
|
|
170
|
+
txnInstId?: string | undefined;
|
|
171
|
+
upperLimit?: number | undefined;
|
|
172
|
+
}[] | undefined;
|
|
118
173
|
instanceStatus?: string | undefined;
|
|
174
|
+
isRef?: boolean | undefined;
|
|
119
175
|
materialNo?: string | undefined;
|
|
120
176
|
materialStatus?: string | undefined;
|
|
121
177
|
mfgOrderCode?: string | undefined;
|
|
@@ -157,6 +213,7 @@ export declare function useEbrWikiFactoryV2(props: IProps, payload: IPayload): {
|
|
|
157
213
|
forkConfig?: string | undefined;
|
|
158
214
|
id?: string | undefined;
|
|
159
215
|
key?: string | undefined;
|
|
216
|
+
messageTmplConfig?: string | undefined;
|
|
160
217
|
mobilePageKey?: string | undefined;
|
|
161
218
|
mobileViewPageKey?: string | undefined;
|
|
162
219
|
modifyTime?: string | undefined;
|
|
@@ -191,10 +248,64 @@ export declare function useEbrWikiFactoryV2(props: IProps, payload: IPayload): {
|
|
|
191
248
|
productName?: string | undefined;
|
|
192
249
|
productionMaterialNo?: string | undefined;
|
|
193
250
|
recordNo?: string | undefined;
|
|
251
|
+
refillApproveStatus?: string | undefined;
|
|
194
252
|
relatedMaterialNo?: string | undefined;
|
|
195
253
|
relatedMaterialNos?: string[] | undefined;
|
|
254
|
+
relatedMfgOrderCodes?: string | undefined;
|
|
255
|
+
relatedMfgOrderIds?: string[] | undefined;
|
|
256
|
+
relatedParentName?: string | undefined;
|
|
196
257
|
relationId?: string | undefined;
|
|
197
258
|
resend?: number | undefined;
|
|
259
|
+
routingParamList?: {
|
|
260
|
+
attachmentValue?: string | undefined;
|
|
261
|
+
boolValue?: number | undefined;
|
|
262
|
+
checkResult?: string | undefined;
|
|
263
|
+
createOrgId?: string | undefined;
|
|
264
|
+
createTime?: string | undefined;
|
|
265
|
+
createUserId?: string | undefined;
|
|
266
|
+
createUserName?: string | undefined;
|
|
267
|
+
customFieldKey?: string | undefined;
|
|
268
|
+
customFieldName?: string | undefined;
|
|
269
|
+
customFieldType?: string | undefined;
|
|
270
|
+
dataVersion?: number | undefined;
|
|
271
|
+
dateTimeValue?: string | undefined;
|
|
272
|
+
dateValue?: string | undefined;
|
|
273
|
+
decimalValue?: number | undefined;
|
|
274
|
+
doubleValue?: number | undefined;
|
|
275
|
+
id?: string | undefined;
|
|
276
|
+
imageValue?: string | undefined;
|
|
277
|
+
intValue?: number | undefined;
|
|
278
|
+
interconnectParam?: string | undefined;
|
|
279
|
+
longTextValue?: string | undefined;
|
|
280
|
+
longValue?: number | undefined;
|
|
281
|
+
lowerLimit?: number | undefined;
|
|
282
|
+
modifyOrgId?: string | undefined;
|
|
283
|
+
modifyTime?: string | undefined;
|
|
284
|
+
modifyUserId?: string | undefined;
|
|
285
|
+
modifyUserName?: string | undefined;
|
|
286
|
+
orgMultiValue?: string | undefined;
|
|
287
|
+
orgValue?: string | undefined;
|
|
288
|
+
originId?: string | undefined;
|
|
289
|
+
processId?: string | undefined;
|
|
290
|
+
refFieldKey?: string | undefined;
|
|
291
|
+
refMasterId?: string | undefined;
|
|
292
|
+
refModelKey?: string | undefined;
|
|
293
|
+
referenceValue?: number | undefined;
|
|
294
|
+
remark?: string | undefined;
|
|
295
|
+
routingOperationId?: string | undefined;
|
|
296
|
+
sortNum?: number | undefined;
|
|
297
|
+
targetValue?: number | undefined;
|
|
298
|
+
tenantId?: string | undefined;
|
|
299
|
+
textValue?: string | undefined;
|
|
300
|
+
timeValue?: {
|
|
301
|
+
hour?: number | undefined;
|
|
302
|
+
minute?: number | undefined;
|
|
303
|
+
nano?: number | undefined;
|
|
304
|
+
second?: number | undefined;
|
|
305
|
+
} | undefined;
|
|
306
|
+
txnInstId?: string | undefined;
|
|
307
|
+
upperLimit?: number | undefined;
|
|
308
|
+
}[] | undefined;
|
|
198
309
|
runtimeJson?: string | undefined;
|
|
199
310
|
serialNo?: string | undefined;
|
|
200
311
|
sourceMaterialNo?: string | undefined;
|
|
@@ -205,6 +316,7 @@ export declare function useEbrWikiFactoryV2(props: IProps, payload: IPayload): {
|
|
|
205
316
|
tmplId?: string | undefined;
|
|
206
317
|
tmplName?: string | undefined;
|
|
207
318
|
tmplVersion?: string | undefined;
|
|
319
|
+
txnConfig?: string | undefined;
|
|
208
320
|
txnInstId?: string | undefined;
|
|
209
321
|
type?: string | undefined;
|
|
210
322
|
viewType?: string | undefined;
|
|
@@ -248,11 +360,14 @@ export declare function useEbrWikiFactoryV2(props: IProps, payload: IPayload): {
|
|
|
248
360
|
productId?: string | undefined;
|
|
249
361
|
productName?: string | undefined;
|
|
250
362
|
productVersion?: string | undefined;
|
|
363
|
+
qty?: number | undefined;
|
|
364
|
+
relatedParentName?: string | undefined;
|
|
251
365
|
serialNo?: string | undefined;
|
|
252
366
|
spec?: string | undefined;
|
|
253
367
|
tmplId?: string | undefined;
|
|
254
368
|
tmplName?: string | undefined;
|
|
255
369
|
tmplVersion?: string | undefined;
|
|
370
|
+
udi?: string | undefined;
|
|
256
371
|
}[] | undefined;
|
|
257
372
|
edhrInstanceStatus?: string | undefined;
|
|
258
373
|
exceptionFlag?: boolean | undefined;
|
|
@@ -264,14 +379,67 @@ export declare function useEbrWikiFactoryV2(props: IProps, payload: IPayload): {
|
|
|
264
379
|
formInstBom?: {
|
|
265
380
|
bomEntries?: object[] | undefined;
|
|
266
381
|
formTmplBomList?: object[] | undefined;
|
|
382
|
+
formTmplObjectBomList?: object[] | undefined;
|
|
267
383
|
productionIdentificationId?: string | undefined;
|
|
268
384
|
qty?: number | undefined;
|
|
269
385
|
sequenceEntries?: object[] | undefined;
|
|
270
386
|
} | undefined;
|
|
271
387
|
formType?: string | undefined;
|
|
388
|
+
frontConfig?: string | undefined;
|
|
272
389
|
height?: number | undefined;
|
|
273
390
|
id?: string | undefined;
|
|
391
|
+
inspectionParamList?: {
|
|
392
|
+
attachmentValue?: string | undefined;
|
|
393
|
+
boolValue?: number | undefined;
|
|
394
|
+
checkResult?: string | undefined;
|
|
395
|
+
createOrgId?: string | undefined;
|
|
396
|
+
createTime?: string | undefined;
|
|
397
|
+
createUserId?: string | undefined;
|
|
398
|
+
createUserName?: string | undefined;
|
|
399
|
+
customFieldKey?: string | undefined;
|
|
400
|
+
customFieldName?: string | undefined;
|
|
401
|
+
customFieldType?: string | undefined;
|
|
402
|
+
dataVersion?: number | undefined;
|
|
403
|
+
dateTimeValue?: string | undefined;
|
|
404
|
+
dateValue?: string | undefined;
|
|
405
|
+
decimalValue?: number | undefined;
|
|
406
|
+
doubleValue?: number | undefined;
|
|
407
|
+
id?: string | undefined;
|
|
408
|
+
imageValue?: string | undefined;
|
|
409
|
+
intValue?: number | undefined;
|
|
410
|
+
interconnectParam?: string | undefined;
|
|
411
|
+
longTextValue?: string | undefined;
|
|
412
|
+
longValue?: number | undefined;
|
|
413
|
+
lowerLimit?: number | undefined;
|
|
414
|
+
modifyOrgId?: string | undefined;
|
|
415
|
+
modifyTime?: string | undefined;
|
|
416
|
+
modifyUserId?: string | undefined;
|
|
417
|
+
modifyUserName?: string | undefined;
|
|
418
|
+
orgMultiValue?: string | undefined;
|
|
419
|
+
orgValue?: string | undefined;
|
|
420
|
+
originId?: string | undefined;
|
|
421
|
+
processId?: string | undefined;
|
|
422
|
+
refFieldKey?: string | undefined;
|
|
423
|
+
refMasterId?: string | undefined;
|
|
424
|
+
refModelKey?: string | undefined;
|
|
425
|
+
referenceValue?: number | undefined;
|
|
426
|
+
remark?: string | undefined;
|
|
427
|
+
routingOperationId?: string | undefined;
|
|
428
|
+
sortNum?: number | undefined;
|
|
429
|
+
targetValue?: number | undefined;
|
|
430
|
+
tenantId?: string | undefined;
|
|
431
|
+
textValue?: string | undefined;
|
|
432
|
+
timeValue?: {
|
|
433
|
+
hour?: number | undefined;
|
|
434
|
+
minute?: number | undefined;
|
|
435
|
+
nano?: number | undefined;
|
|
436
|
+
second?: number | undefined;
|
|
437
|
+
} | undefined;
|
|
438
|
+
txnInstId?: string | undefined;
|
|
439
|
+
upperLimit?: number | undefined;
|
|
440
|
+
}[] | undefined;
|
|
274
441
|
instanceStatus?: string | undefined;
|
|
442
|
+
isRef?: boolean | undefined;
|
|
275
443
|
materialNo?: string | undefined;
|
|
276
444
|
materialStatus?: string | undefined;
|
|
277
445
|
mfgOrderCode?: string | undefined;
|
|
@@ -313,6 +481,7 @@ export declare function useEbrWikiFactoryV2(props: IProps, payload: IPayload): {
|
|
|
313
481
|
forkConfig?: string | undefined;
|
|
314
482
|
id?: string | undefined;
|
|
315
483
|
key?: string | undefined;
|
|
484
|
+
messageTmplConfig?: string | undefined;
|
|
316
485
|
mobilePageKey?: string | undefined;
|
|
317
486
|
mobileViewPageKey?: string | undefined;
|
|
318
487
|
modifyTime?: string | undefined;
|
|
@@ -347,10 +516,64 @@ export declare function useEbrWikiFactoryV2(props: IProps, payload: IPayload): {
|
|
|
347
516
|
productName?: string | undefined;
|
|
348
517
|
productionMaterialNo?: string | undefined;
|
|
349
518
|
recordNo?: string | undefined;
|
|
519
|
+
refillApproveStatus?: string | undefined;
|
|
350
520
|
relatedMaterialNo?: string | undefined;
|
|
351
521
|
relatedMaterialNos?: string[] | undefined;
|
|
522
|
+
relatedMfgOrderCodes?: string | undefined;
|
|
523
|
+
relatedMfgOrderIds?: string[] | undefined;
|
|
524
|
+
relatedParentName?: string | undefined;
|
|
352
525
|
relationId?: string | undefined;
|
|
353
526
|
resend?: number | undefined;
|
|
527
|
+
routingParamList?: {
|
|
528
|
+
attachmentValue?: string | undefined;
|
|
529
|
+
boolValue?: number | undefined;
|
|
530
|
+
checkResult?: string | undefined;
|
|
531
|
+
createOrgId?: string | undefined;
|
|
532
|
+
createTime?: string | undefined;
|
|
533
|
+
createUserId?: string | undefined;
|
|
534
|
+
createUserName?: string | undefined;
|
|
535
|
+
customFieldKey?: string | undefined;
|
|
536
|
+
customFieldName?: string | undefined;
|
|
537
|
+
customFieldType?: string | undefined;
|
|
538
|
+
dataVersion?: number | undefined;
|
|
539
|
+
dateTimeValue?: string | undefined;
|
|
540
|
+
dateValue?: string | undefined;
|
|
541
|
+
decimalValue?: number | undefined;
|
|
542
|
+
doubleValue?: number | undefined;
|
|
543
|
+
id?: string | undefined;
|
|
544
|
+
imageValue?: string | undefined;
|
|
545
|
+
intValue?: number | undefined;
|
|
546
|
+
interconnectParam?: string | undefined;
|
|
547
|
+
longTextValue?: string | undefined;
|
|
548
|
+
longValue?: number | undefined;
|
|
549
|
+
lowerLimit?: number | undefined;
|
|
550
|
+
modifyOrgId?: string | undefined;
|
|
551
|
+
modifyTime?: string | undefined;
|
|
552
|
+
modifyUserId?: string | undefined;
|
|
553
|
+
modifyUserName?: string | undefined;
|
|
554
|
+
orgMultiValue?: string | undefined;
|
|
555
|
+
orgValue?: string | undefined;
|
|
556
|
+
originId?: string | undefined;
|
|
557
|
+
processId?: string | undefined;
|
|
558
|
+
refFieldKey?: string | undefined;
|
|
559
|
+
refMasterId?: string | undefined;
|
|
560
|
+
refModelKey?: string | undefined;
|
|
561
|
+
referenceValue?: number | undefined;
|
|
562
|
+
remark?: string | undefined;
|
|
563
|
+
routingOperationId?: string | undefined;
|
|
564
|
+
sortNum?: number | undefined;
|
|
565
|
+
targetValue?: number | undefined;
|
|
566
|
+
tenantId?: string | undefined;
|
|
567
|
+
textValue?: string | undefined;
|
|
568
|
+
timeValue?: {
|
|
569
|
+
hour?: number | undefined;
|
|
570
|
+
minute?: number | undefined;
|
|
571
|
+
nano?: number | undefined;
|
|
572
|
+
second?: number | undefined;
|
|
573
|
+
} | undefined;
|
|
574
|
+
txnInstId?: string | undefined;
|
|
575
|
+
upperLimit?: number | undefined;
|
|
576
|
+
}[] | undefined;
|
|
354
577
|
runtimeJson?: string | undefined;
|
|
355
578
|
serialNo?: string | undefined;
|
|
356
579
|
sourceMaterialNo?: string | undefined;
|
|
@@ -361,6 +584,7 @@ export declare function useEbrWikiFactoryV2(props: IProps, payload: IPayload): {
|
|
|
361
584
|
tmplId?: string | undefined;
|
|
362
585
|
tmplName?: string | undefined;
|
|
363
586
|
tmplVersion?: string | undefined;
|
|
587
|
+
txnConfig?: string | undefined;
|
|
364
588
|
txnInstId?: string | undefined;
|
|
365
589
|
type?: string | undefined;
|
|
366
590
|
viewType?: string | undefined;
|
|
@@ -3,6 +3,45 @@ import { RuntimeInstanceRegistry } from '../runtime';
|
|
|
3
3
|
import { IProps, IPayload } from './render-page/types';
|
|
4
4
|
export type { IProps, IPayload } from './render-page/types';
|
|
5
5
|
export declare function useRenderPageFactory(props: IProps, payload: IPayload): {
|
|
6
|
+
dataSourceManagerMap: import('vue').ShallowRef<Record<string, {
|
|
7
|
+
getSources: () => import('@gct-paas/form-base').DataSourceConfig[];
|
|
8
|
+
getContext: () => Record<string, unknown>;
|
|
9
|
+
canExecute: () => boolean;
|
|
10
|
+
reload: (key: string) => Promise<unknown>;
|
|
11
|
+
reloadAll: () => Promise<PromiseSettledResult<unknown>[]>;
|
|
12
|
+
states: {
|
|
13
|
+
readonly [x: string]: {
|
|
14
|
+
readonly status: import('@gct-paas/form-base').DataSourceQueryStatus;
|
|
15
|
+
readonly data?: Readonly<unknown> | undefined;
|
|
16
|
+
readonly error?: string | undefined;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
query: (key: string, parameters?: import('@gct-paas/form-base').DataSourceParameters) => Promise<unknown>;
|
|
20
|
+
cancel: (key: string) => boolean;
|
|
21
|
+
getResult(key: string): unknown;
|
|
22
|
+
initialize: () => Promise<PromiseSettledResult<unknown>[]>;
|
|
23
|
+
queryOnValueChange(keys: readonly string[]): Promise<PromiseSettledResult<unknown>[]>;
|
|
24
|
+
dispose(): void;
|
|
25
|
+
}>, Record<string, {
|
|
26
|
+
getSources: () => import('@gct-paas/form-base').DataSourceConfig[];
|
|
27
|
+
getContext: () => Record<string, unknown>;
|
|
28
|
+
canExecute: () => boolean;
|
|
29
|
+
reload: (key: string) => Promise<unknown>;
|
|
30
|
+
reloadAll: () => Promise<PromiseSettledResult<unknown>[]>;
|
|
31
|
+
states: {
|
|
32
|
+
readonly [x: string]: {
|
|
33
|
+
readonly status: import('@gct-paas/form-base').DataSourceQueryStatus;
|
|
34
|
+
readonly data?: Readonly<unknown> | undefined;
|
|
35
|
+
readonly error?: string | undefined;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
query: (key: string, parameters?: import('@gct-paas/form-base').DataSourceParameters) => Promise<unknown>;
|
|
39
|
+
cancel: (key: string) => boolean;
|
|
40
|
+
getResult(key: string): unknown;
|
|
41
|
+
initialize: () => Promise<PromiseSettledResult<unknown>[]>;
|
|
42
|
+
queryOnValueChange(keys: readonly string[]): Promise<PromiseSettledResult<unknown>[]>;
|
|
43
|
+
dispose(): void;
|
|
44
|
+
}>>;
|
|
6
45
|
counter: import('vue').Ref<number, number>;
|
|
7
46
|
finisher: import('vue').Ref<number, number>;
|
|
8
47
|
loading: import('vue').ComputedRef<boolean>;
|
|
@@ -9,6 +9,27 @@ export declare function useRuntimeInstanceServices(uniqueIdSource?: RuntimeInsta
|
|
|
9
9
|
instance: import('vue').ComputedRef<import('..').RuntimeInstanceRecord | undefined>;
|
|
10
10
|
/** 控制器负责 Sheet 切换、编辑器收口和提交;尚未挂载时为空。 */
|
|
11
11
|
controller: import('vue').ComputedRef<import('..').RuntimeInstanceController | undefined>;
|
|
12
|
+
/** 全部 Sheet 共享的数源管理器,随实例注册与销毁。 */
|
|
13
|
+
dataSourceManager: import('vue').ComputedRef<{
|
|
14
|
+
getSources: () => import('@gct-paas/form-base').DataSourceConfig[];
|
|
15
|
+
getContext: () => Record<string, unknown>;
|
|
16
|
+
canExecute: () => boolean;
|
|
17
|
+
reload: (key: string) => Promise<unknown>;
|
|
18
|
+
reloadAll: () => Promise<PromiseSettledResult<unknown>[]>;
|
|
19
|
+
states: {
|
|
20
|
+
readonly [x: string]: {
|
|
21
|
+
readonly status: import('@gct-paas/form-base').DataSourceQueryStatus;
|
|
22
|
+
readonly data?: Readonly<unknown> | undefined;
|
|
23
|
+
readonly error?: string | undefined;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
query: (key: string, parameters?: import('@gct-paas/form-base').DataSourceParameters) => Promise<unknown>;
|
|
27
|
+
cancel: (key: string) => boolean;
|
|
28
|
+
getResult(key: string): unknown;
|
|
29
|
+
initialize: () => Promise<PromiseSettledResult<unknown>[]>;
|
|
30
|
+
queryOnValueChange(keys: readonly string[]): Promise<PromiseSettledResult<unknown>[]>;
|
|
31
|
+
dispose(): void;
|
|
32
|
+
} | undefined>;
|
|
12
33
|
/** 表单级配置独立于 Sheet 的 paper;实例未注册时提供空配置。 */
|
|
13
34
|
formConfig: import('vue').ComputedRef<Record<string, any>>;
|
|
14
35
|
/** 实例切换时重新取对应 Store;读取数据使用 .value.state,写入使用 Store 方法。 */
|
|
@@ -18,7 +18,8 @@ export declare function mergeSubmitValidation(current: ValidationCommentMap, sub
|
|
|
18
18
|
/** 子表结构变更后,去掉已失效 path 的错误态 */
|
|
19
19
|
export declare function pruneValidationComments(current: ValidationCommentMap, validPaths: Set<string>): ValidationCommentMap;
|
|
20
20
|
/**
|
|
21
|
-
* display 合并:按本轮 validatedPaths 更新;清掉已卸载 path
|
|
21
|
+
* display 合并:按本轮 validatedPaths 更新;清掉已卸载 path。
|
|
22
|
+
* 可编辑字段的必填错误由提交校验产生,空值在 display/change 模式下不会重跑 manual 规则。
|
|
22
23
|
*/
|
|
23
|
-
export declare function mergeDisplayValidation(current: ValidationCommentMap, displayResult: ValidationCommentMap, ruleKeys: string[], validatedPaths: string[]): ValidationCommentMap;
|
|
24
|
+
export declare function mergeDisplayValidation(current: ValidationCommentMap, displayResult: ValidationCommentMap, ruleKeys: string[], validatedPaths: string[], resolvePayload: ResolvePayload): ValidationCommentMap;
|
|
24
25
|
export {};
|
|
@@ -3,7 +3,7 @@ import { NormalizedRuntimeDocument, RuntimeNodeMap } from '../multi-sheet-runtim
|
|
|
3
3
|
export declare const LEGACY_RUNTIME_SHEET_ID = "__legacy_sheet__";
|
|
4
4
|
export declare const LEGACY_RUNTIME_SHEET_TITLE = "\u5DE5\u4F5C\u8868 1";
|
|
5
5
|
/** 历史 runtimeJson 中存放在 paper.props、实际属于整份实例的配置。 */
|
|
6
|
-
export declare const LEGACY_RUNTIME_FORM_CONFIG_KEYS: readonly ["globalParams", "paramsMapList", "unitConversionRules", "inspectionDecisionRule", "customDataSource", "objectInitialValues", "javascript", "checkSignatureConfig", "keepExceptionHighlight", "objectFieldList", "dateObjects"];
|
|
6
|
+
export declare const LEGACY_RUNTIME_FORM_CONFIG_KEYS: readonly ["globalParams", "paramsMapList", "unitConversionRules", "inspectionDecisionRule", "customDataSource", "dataSources", "fieldFills", "objectInitialValues", "javascript", "checkSignatureConfig", "keepExceptionHighlight", "objectFieldList", "dateObjects"];
|
|
7
7
|
/** 历史运行时:paper 和所有节点都直接放在文档顶层。 */
|
|
8
8
|
export interface RuntimeDocumentV1 extends RuntimeNodeMap {
|
|
9
9
|
schemaVersion?: 1;
|
|
@@ -11,6 +11,7 @@ import { RuntimeFieldRegistry, RuntimeFieldMetadata } from './runtime-field-regi
|
|
|
11
11
|
import { RuntimeSheetService } from './runtime-sheet-service';
|
|
12
12
|
import { RuntimePersistenceCoordinator } from './runtime-persistence-coordinator';
|
|
13
13
|
import { RuntimeInstanceEventBus } from './runtime-instance-event-bus';
|
|
14
|
+
import { DataSourceManager } from '@gct-paas/form-base';
|
|
14
15
|
export interface RuntimeInstanceRecord {
|
|
15
16
|
/** 实例配置、业务索引和各 Sheet 的响应式状态;数据只由下方 Store 持有 */
|
|
16
17
|
context: RuntimeInstanceContext;
|
|
@@ -23,6 +24,8 @@ export interface RuntimeInstanceRecord {
|
|
|
23
24
|
ruleCompiler?: RuntimeRuleCompiler;
|
|
24
25
|
/** 业务默认值随实例及动态行初始化,不依赖控件挂载。 */
|
|
25
26
|
fieldInitializer?: RuntimeFieldInitializer;
|
|
27
|
+
/** 整份表单共享的数源管理器;字段事件通过当前实例取用。 */
|
|
28
|
+
dataSourceManager?: DataSourceManager;
|
|
26
29
|
/** 实例唯一的数据写入口,生成 revision、dirty 和字段变更路径 */
|
|
27
30
|
formState: RuntimeFormStateStore;
|
|
28
31
|
/** 整份表单共享的脚本执行器,字段通过运行时记录调用,销毁由注册表负责。 */
|
|
@@ -71,10 +74,7 @@ export declare class RuntimeInstanceRegistry {
|
|
|
71
74
|
loading: boolean;
|
|
72
75
|
error: Error | undefined;
|
|
73
76
|
}>;
|
|
74
|
-
/**
|
|
75
|
-
* 顶层对象使用浅响应式:实例新增、删除需要驱动 Vue 更新;record 内的服务类
|
|
76
|
-
* 不需要被 Vue 深度代理,各自内部负责自己的响应式状态和生命周期
|
|
77
|
-
*/
|
|
77
|
+
/** 顶层容器和记录都只做浅响应式;服务类仍保持原始引用。 */
|
|
78
78
|
private readonly records;
|
|
79
79
|
/**
|
|
80
80
|
* 统一托管订阅、watch 和编译结果的取消函数
|
|
@@ -87,7 +87,7 @@ export declare class RuntimeInstanceRegistry {
|
|
|
87
87
|
* 此方法只创建实例级基础设施,不负责请求模板和业务数据。相同 uniqueId
|
|
88
88
|
* 再次注册时会先完整销毁旧记录,确保不会残留订阅或异步任务
|
|
89
89
|
*/
|
|
90
|
-
register(context: RuntimeInstanceContext, options: RegisterRuntimeInstanceOptions): RuntimeInstanceRecord
|
|
90
|
+
register(context: RuntimeInstanceContext, options: RegisterRuntimeInstanceOptions): import('vue').ShallowReactive<RuntimeInstanceRecord>;
|
|
91
91
|
/**
|
|
92
92
|
* 在页面回调准备完成后挂载实例控制器
|
|
93
93
|
* Sheet 服务的导航入口依赖控制器切换 Sheet,所以两者必须在这里建立连接
|
|
@@ -106,6 +106,8 @@ export declare namespace BaseCoreComponent {
|
|
|
106
106
|
* 组件依赖
|
|
107
107
|
*/
|
|
108
108
|
componentDependency?: DisplayProps;
|
|
109
|
+
/** 字段值变化时查询的数源 KEY。 */
|
|
110
|
+
valueChangeDataSourceKeys?: string[];
|
|
109
111
|
/** 是否是物料消耗表的字段 */
|
|
110
112
|
isMaterialConsumeField?: boolean;
|
|
111
113
|
/** 自定义组件的绘制标记 */
|
|
@@ -13,8 +13,8 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
13
13
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
14
14
|
"onSelected-change"?: ((value: DeviceInterconnectionResponse) => any) | undefined;
|
|
15
15
|
}>, {
|
|
16
|
-
modelValue: string;
|
|
17
16
|
trigger: Array<"click" | "hover" | "contextmenu">;
|
|
17
|
+
modelValue: string;
|
|
18
18
|
showColumns: Array<keyof DeviceLink.IDeviceLinkParams>;
|
|
19
19
|
styleMode: "button" | "link";
|
|
20
20
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|