cnhis-design-vue 3.1.53-beta.1 → 3.1.53-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/es/components/annotation-edit/src/AnnotationEdit.js +1 -1
- package/es/components/big-table/src/components/edit-form/edit-separate.vue.d.ts +4 -4
- package/es/components/big-table/src/hooks/useEdit.d.ts +4 -4
- package/es/components/big-table/src/hooks/useSeparateRow.d.ts +4 -4
- package/es/components/button-print/src/ButtonPrint.vue.d.ts +3 -1
- package/es/components/button-print/src/utils/dialog.d.ts +2 -2
- package/es/components/button-print/src/utils/print.d.ts +14 -13
- package/es/components/button-print/src/utils/print.js +1 -1
- package/es/components/callback/src/components/render/popupMaps.d.ts +44 -5
- package/es/components/card-reader-sdk/src/types/index.d.ts +3 -3
- package/es/components/date-picker/src/DatePicker.vue2.js +1 -1
- package/es/components/form-config/index.d.ts +24 -24
- package/es/components/form-config/src/FormConfig.vue.d.ts +25 -25
- package/es/components/form-config/src/FormConfig.vue2.js +1 -1
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +5 -5
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +11 -11
- package/es/components/form-config/src/components/FormConfigEventSetting.vue2.js +1 -1
- package/es/components/form-render/index.d.ts +5 -5
- package/es/components/form-render/index.js +1 -1
- package/es/components/form-render/src/FormRender.vue.d.ts +6 -6
- package/es/components/form-render/src/FormRender.vue2.js +1 -1
- package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +6 -6
- package/es/components/form-render/src/components/renderer/inputNumber.d.ts +5 -5
- package/es/components/form-render/src/components/renderer/levelSearchCascader/index.d.ts +2 -4
- package/es/components/form-render/src/components/renderer/levelSearchCascader/index.js +1 -1
- package/es/components/form-render/src/components/renderer/searchCascade.d.ts +3 -3
- package/es/components/form-render/src/components/renderer/select.d.ts +3 -3
- package/es/components/form-render/src/components/renderer/select.js +1 -1
- package/es/components/form-render/src/constants/index.d.ts +3 -2
- package/es/components/form-render/src/hooks/index.d.ts +0 -2
- package/es/components/form-render/src/hooks/index.js +1 -1
- package/es/components/form-render/src/hooks/useAnchor.d.ts +3 -3
- package/es/components/form-render/src/hooks/useCommonInjection.d.ts +2 -2
- package/es/components/form-render/src/hooks/useFieldNormalize.d.ts +2 -2
- package/es/components/form-render/src/hooks/useFormContext.d.ts +3 -3
- package/es/components/form-render/src/hooks/useFormContext.js +1 -1
- package/es/components/form-render/src/hooks/useFormItemDeps.d.ts +3 -3
- package/es/components/form-render/src/hooks/useFormRenderOptions.d.ts +5 -4
- package/es/components/form-render/src/hooks/useFormRenderOptions.js +1 -1
- package/es/components/form-render/src/types/fieldItem.d.ts +3 -2
- package/es/components/form-render/src/types/index.d.ts +2 -13
- package/es/components/form-render/src/utils/index.d.ts +1 -2
- package/es/components/form-render/src/utils/index.js +1 -1
- package/es/components/form-render/src/utils/schema.d.ts +2 -2
- package/es/components/guide/src/renderer.js +1 -1
- package/es/components/iho-table/index.d.ts +39 -0
- package/es/components/iho-table/src/IhoTable.vue.d.ts +40 -0
- package/es/components/iho-table/src/IhoTable.vue2.js +1 -1
- package/es/components/iho-table/src/constants/index.d.ts +4 -1
- package/es/components/iho-table/src/constants/index.js +1 -1
- package/es/components/iho-table/src/hooks/tapHooks/useEventHooks.d.ts +2 -2
- package/es/components/iho-table/src/hooks/tapHooks/useExposeHooks.d.ts +2 -2
- package/es/components/iho-table/src/plugins/defaultConfigPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +2 -2
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useAutoFocus.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/levelSearchCascadePlugin/index.d.ts +1 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/levelSearchCascadePlugin/index.js +1 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/levelSearchCascadePlugin/levelSearchCascade.vue.d.ts +552 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/levelSearchCascadePlugin/levelSearchCascade.vue.js +1 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/levelSearchCascadePlugin/levelSearchCascade.vue2.js +1 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/editSeparate.vue.d.ts +2 -2
- package/es/components/iho-table/src/types/index.d.ts +5 -2
- package/es/components/iho-table/src/types/pluginType.d.ts +3 -3
- package/es/components/index.d.ts +1 -0
- package/es/components/index.js +1 -1
- package/es/components/info-header/index.d.ts +27 -27
- package/es/components/info-header/src/InfoHeader.vue.d.ts +28 -28
- package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +5 -5
- package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +6 -6
- package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +12 -12
- package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +5 -5
- package/es/components/keyboard/src/Keyboard.vue2.js +1 -1
- package/es/components/search-cascader/index.d.ts +23 -3
- package/es/components/search-cascader/src/SearchCascader.vue.d.ts +24 -4
- package/es/components/search-cascader/src/SearchCascader.vue2.js +1 -1
- package/es/components/search-cascader/src/components/ClearIcon.vue.js +1 -0
- package/es/components/shortcut-setter/index.d.ts +8 -8
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +9 -9
- package/es/components/steps-wheel/src/StepsWheel.vue2.js +1 -1
- package/es/components/time-picker/src/TimePicker.vue2.js +1 -1
- package/es/shared/components/InputNumberSlash/InputNumberSlash.d.ts +4 -4
- package/es/shared/components/SlotRender/SlotRender.d.ts +5 -5
- package/es/shared/hooks/index.d.ts +2 -0
- package/es/shared/hooks/index.js +1 -1
- package/es/shared/hooks/{useAsyncQueue.d.ts → useAsyncQueue/index.d.ts} +7 -15
- package/es/shared/hooks/useAsyncQueue/index.js +1 -0
- package/es/shared/hooks/useAsyncQueue/types.d.ts +20 -0
- package/es/shared/hooks/useAsyncQueue/types.js +1 -0
- package/es/shared/hooks/useDateTime.d.ts +2 -2
- package/es/shared/hooks/useFormRequest/index.d.ts +24 -0
- package/es/shared/hooks/useFormRequest/index.js +1 -0
- package/es/shared/hooks/useFormRequest/types.d.ts +39 -0
- package/es/shared/hooks/useFormRequest/types.js +1 -0
- package/es/shared/hooks/useLevelSearchCascader.d.ts +31 -0
- package/es/shared/hooks/useLevelSearchCascader.js +1 -0
- package/es/shared/package.json.js +1 -1
- package/es/shared/types/index.d.ts +1 -1
- package/package.json +2 -2
- package/es/components/form-render/src/components/renderer/levelSearchCascader/utils.d.ts +0 -23
- package/es/components/form-render/src/components/renderer/levelSearchCascader/utils.js +0 -1
- package/es/components/form-render/src/hooks/useFormAsyncQueue.d.ts +0 -16
- package/es/components/form-render/src/hooks/useFormAsyncQueue.js +0 -1
- package/es/components/form-render/src/hooks/useFormRequest.d.ts +0 -26
- package/es/components/form-render/src/hooks/useFormRequest.js +0 -1
- package/es/shared/hooks/useAsyncQueue.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,computed as o,ref as a,onDeactivated as t,createVNode as l,unref as u,createTextVNode as n}from"vue";import{useTheme as i}from"../../../shared/hooks/useTheme.js";import"@vueuse/core";import"date-fns";import{isString as r,isObject as s,isFunction as m}from"lodash-es";import{FileTrayFull as d,FileTray as v}from"@vicons/ionicons5";import{NPopover as c,NDivider as p,NEllipsis as f,NIcon as
|
|
1
|
+
import{defineComponent as e,computed as o,ref as a,onDeactivated as t,createVNode as l,unref as u,createTextVNode as n}from"vue";import{useTheme as i}from"../../../shared/hooks/useTheme.js";import"@vueuse/core";import"date-fns";import{isString as r,isObject as s,isFunction as m}from"lodash-es";import"@vue/shared";import"../../../shared/utils/index.js";import{FileTrayFull as d,FileTray as v}from"@vicons/ionicons5";import{NPopover as c,NDivider as p,NEllipsis as f,NIcon as h,NInput as V}from"naive-ui";var g=e({props:{modelValue:{type:[String,Object],default:""}},emits:["update:modelValue"],setup(e,{emit:g}){const w=i(),x=o({get:()=>r(e.modelValue)?e.modelValue:s(e.modelValue)&&e.modelValue.content||"",set(o){let a=o;s(e.modelValue)&&(a={...e.modelValue,content:o}),g("update:modelValue",a)}}),T=a(!1),k=o({get:()=>T.value,async set(e){T.value=e,!e&&b.value&&(await new Promise((e=>setTimeout(e,200))),b.value=!1)}}),b=a(!1);let y,_;function P(e){e.stopPropagation(),clearTimeout(y),k.value&&b.value?k.value=!1:u(x)||(y=setTimeout((()=>{b.value=k.value=!0}),200))}function M(e){e.stopPropagation(),clearTimeout(y),u(x)&&(k.value=!0,b.value=!0)}function R(e){e.stopPropagation(),clearTimeout(_),u(x)&&(k.value=!0)}function j(e){e.stopPropagation(),clearTimeout(_),u(x)&&!b.value&&(_=setTimeout((()=>{k.value=!1}),300))}return t((()=>{k.value=!1})),function(){return l("section",{class:["annotation-edit",{"is-active":!!u(x)}],style:{"--icon-right":"-5",...w.value},"annotation-hover-show":!u(x)&&!b.value},[l(c,{"keep-alive-on-hover":!0,style:{maxWidth:"360px",wordBreak:"break-all"},show:k.value,"onUpdate:show":e=>k.value=e,trigger:"manual",duration:100,onClickoutside:P},{default:function(){return l("section",{onMouseleave:j,onMouseenter:R},[l("div",null,[b.value?l(V,{resizable:!1,autosize:{minRows:3,maxRows:5},"show-count":!0,class:"annotation-edit__textarea",type:"textarea",value:x.value,"onUpdate:value":e=>x.value=e},null):l("span",null,[u(x)])]),s(e.modelValue)?[l(p,{style:{margin:"4px 0",minWidth:"360px"}},null),l("section",{class:"annotation-edit__footer"},[m(e.modelValue.footerRender)?e.modelValue.footerRender(e.modelValue):[l(f,null,{default:()=>{var o;return[null!=(o=e.modelValue.authorLabel)?o:"质控人",n(": "),e.modelValue.author]}}),l(f,null,{default:()=>{var o;return[null!=(o=e.modelValue.dateLabel)?o:"质控时间",n(": "),e.modelValue.date]}})]])]:null])},trigger:function(){return l("div",{class:"annotation-edit__icon",onMouseleave:j,onMouseenter:R,onDblclick:M,onClick:P},[l(h,{component:u(x)?d:v},null)])}})])}}});export{g as default};
|
|
@@ -60,19 +60,19 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
60
60
|
style: CSSProperties;
|
|
61
61
|
SlotRender: import("vue").DefineComponent<{
|
|
62
62
|
renderer: {
|
|
63
|
-
type: PropType<string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("../../../../../../es/shared/types").
|
|
63
|
+
type: PropType<string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("../../../../../../es/shared/types").AnyFn<any[], any>>;
|
|
64
64
|
required: true;
|
|
65
65
|
};
|
|
66
66
|
rootSlots: {
|
|
67
|
-
type: PropType<Record<string, import("../../../../../../es/shared/types").
|
|
67
|
+
type: PropType<Record<string, import("../../../../../../es/shared/types").AnyFn<any[], any>>>;
|
|
68
68
|
};
|
|
69
69
|
}, () => any, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
70
70
|
renderer: {
|
|
71
|
-
type: PropType<string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("../../../../../../es/shared/types").
|
|
71
|
+
type: PropType<string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("../../../../../../es/shared/types").AnyFn<any[], any>>;
|
|
72
72
|
required: true;
|
|
73
73
|
};
|
|
74
74
|
rootSlots: {
|
|
75
|
-
type: PropType<Record<string, import("../../../../../../es/shared/types").
|
|
75
|
+
type: PropType<Record<string, import("../../../../../../es/shared/types").AnyFn<any[], any>>>;
|
|
76
76
|
};
|
|
77
77
|
}>>, {}>;
|
|
78
78
|
NPopover: any;
|
|
@@ -252,19 +252,19 @@ export declare const comps: {
|
|
|
252
252
|
style: import("vue").CSSProperties;
|
|
253
253
|
SlotRender: import("vue").DefineComponent<{
|
|
254
254
|
renderer: {
|
|
255
|
-
type: import("vue").PropType<string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("../../..").
|
|
255
|
+
type: import("vue").PropType<string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("../../..").AnyFn<any[], any>>;
|
|
256
256
|
required: true;
|
|
257
257
|
};
|
|
258
258
|
rootSlots: {
|
|
259
|
-
type: import("vue").PropType<Record<string, import("../../..").
|
|
259
|
+
type: import("vue").PropType<Record<string, import("../../..").AnyFn<any[], any>>>;
|
|
260
260
|
};
|
|
261
261
|
}, () => any, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
262
262
|
renderer: {
|
|
263
|
-
type: import("vue").PropType<string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("../../..").
|
|
263
|
+
type: import("vue").PropType<string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("../../..").AnyFn<any[], any>>;
|
|
264
264
|
required: true;
|
|
265
265
|
};
|
|
266
266
|
rootSlots: {
|
|
267
|
-
type: import("vue").PropType<Record<string, import("../../..").
|
|
267
|
+
type: import("vue").PropType<Record<string, import("../../..").AnyFn<any[], any>>>;
|
|
268
268
|
};
|
|
269
269
|
}>>, {}>;
|
|
270
270
|
NPopover: any;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { AnyObject,
|
|
1
|
+
import { AnyObject, AnyFn } from '../../../../../es/shared/types';
|
|
2
2
|
import { Ref } from 'vue';
|
|
3
3
|
import { VxeTableEvents, VxeTableInstance } from 'vxe-table';
|
|
4
4
|
import { VxeTablePropTypes } from 'vxe-table/types/table';
|
|
5
5
|
export declare class SeparateHandle {
|
|
6
|
-
callbacks: Set<
|
|
7
|
-
add(cb:
|
|
8
|
-
remove(cb:
|
|
6
|
+
callbacks: Set<AnyFn<any[], any>>;
|
|
7
|
+
add(cb: AnyFn): void;
|
|
8
|
+
remove(cb: AnyFn): void;
|
|
9
9
|
clear(): void;
|
|
10
10
|
trigger(): void;
|
|
11
11
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AnyFn } from '../../../../../es/shared/types';
|
|
2
2
|
import { ComponentInternalInstance } from 'vue';
|
|
3
3
|
export declare class IdentityVerificationDialog {
|
|
4
4
|
rendered: boolean;
|
|
5
5
|
static createMsg(message: string): string;
|
|
6
|
-
show(instance: ComponentInternalInstance, title: string, api:
|
|
6
|
+
show(instance: ComponentInternalInstance, title: string, api: AnyFn, formatId?: string, templateId?: string): Promise<string>;
|
|
7
7
|
}
|
|
8
8
|
export declare class PreviewDialog {
|
|
9
9
|
rendered: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AnyObject,
|
|
1
|
+
import { AnyObject, AnyFn } from '../../../../../es/shared/types';
|
|
2
2
|
import { IdentityVerificationDialog, PreviewDialog } from '../../../../../es/components/button-print/src/utils/dialog';
|
|
3
3
|
export declare class Print {
|
|
4
4
|
private readonly webview;
|
|
@@ -26,15 +26,15 @@ export declare class Print {
|
|
|
26
26
|
_queryServicesPrint(params: AnyObject): Promise<any>;
|
|
27
27
|
_callPrintWithFile(queryParams: AnyObject): Promise<any>;
|
|
28
28
|
_handleMonitorNotify(message: string | unknown): void;
|
|
29
|
-
_handleResult(data: AnyObject, errorCallbackFn?:
|
|
30
|
-
_handleResultTest(result: unknown, errorCallbackFn?:
|
|
31
|
-
_handleEventQueryPrintData(templateId: string, formatId: string, params: AnyObject, messageTimeout: number, errorCallbackFn?:
|
|
29
|
+
_handleResult(data: AnyObject, errorCallbackFn?: AnyFn): false | AnyObject;
|
|
30
|
+
_handleResultTest(result: unknown, errorCallbackFn?: AnyFn): boolean;
|
|
31
|
+
_handleEventQueryPrintData(templateId: string, formatId: string, params: AnyObject, messageTimeout: number, errorCallbackFn?: AnyFn): Promise<false | {
|
|
32
32
|
file: any;
|
|
33
33
|
printerName: any;
|
|
34
34
|
pageCount: any;
|
|
35
35
|
formatId: string;
|
|
36
36
|
}>;
|
|
37
|
-
_handleQueryPrintDataResult(printData: AnyObject, formatId: string, errorCallbackFn?:
|
|
37
|
+
_handleQueryPrintDataResult(printData: AnyObject, formatId: string, errorCallbackFn?: AnyFn): false | {
|
|
38
38
|
file: any;
|
|
39
39
|
printerName: any;
|
|
40
40
|
pageCount: any;
|
|
@@ -45,21 +45,22 @@ export declare class Print {
|
|
|
45
45
|
_queryProxyOrigin(): Promise<void>;
|
|
46
46
|
_queryPrintFile(formatId: string, params?: string): Promise<any>;
|
|
47
47
|
_browserPrint(result: AnyObject, mode: string): Promise<string | void>;
|
|
48
|
-
preview({ templateId, formatId, params, signature, btnprint, messageTimeout }: AnyObject, successCallbackFn?:
|
|
49
|
-
|
|
48
|
+
preview({ templateId, formatId, params, signature, btnprint, messageTimeout }: AnyObject, successCallbackFn?: AnyFn, errorCallbackFn?: AnyFn): Promise<any>;
|
|
49
|
+
printSync(data: AnyObject[], successCallbackFn: AnyFn, errorCallbackFn: AnyFn): Promise<void>;
|
|
50
|
+
printDirect({ templateId, formatId, params, print, signature, printdlgshow, nobillnode, isDownloadFile, messageTimeout }: AnyObject, successCallbackFn: AnyFn, errorCallbackFn: AnyFn, mode?: string): Promise<any>;
|
|
50
51
|
private _downloadPDF;
|
|
51
52
|
/**
|
|
52
53
|
* 下载pdf
|
|
53
54
|
*/
|
|
54
|
-
downloadPDF(params: AnyObject, onResolve:
|
|
55
|
-
print({ templateId, formatId, params, messageTimeout }: AnyObject, successCallbackFn?:
|
|
56
|
-
queryPrintData({ templateId, formatId, params, messageTimeout }: AnyObject, successCallbackFn?:
|
|
55
|
+
downloadPDF(params: AnyObject, onResolve: AnyFn, onReject: AnyFn): void;
|
|
56
|
+
print({ templateId, formatId, params, messageTimeout }: AnyObject, successCallbackFn?: AnyFn, errorCallbackFn?: AnyFn): Promise<false | undefined>;
|
|
57
|
+
queryPrintData({ templateId, formatId, params, messageTimeout }: AnyObject, successCallbackFn?: AnyFn, errorCallbackFn?: AnyFn): Promise<false | {
|
|
57
58
|
file: any;
|
|
58
59
|
printerName: any;
|
|
59
60
|
pageCount: any;
|
|
60
61
|
formatId: string;
|
|
61
62
|
}>;
|
|
62
|
-
printFileData({ formatId, file, printerName }: AnyObject, successCallbackFn?:
|
|
63
|
-
editPrintFormat({ templateId, formatId, params, token, messageTimeout }: AnyObject, successCallbackFn?:
|
|
64
|
-
addPrintFormat({ templateId, params, token }: AnyObject, successCallbackFn?:
|
|
63
|
+
printFileData({ formatId, file, printerName }: AnyObject, successCallbackFn?: AnyFn, errorCallbackFn?: AnyFn): Promise<false | AnyObject>;
|
|
64
|
+
editPrintFormat({ templateId, formatId, params, token, messageTimeout }: AnyObject, successCallbackFn?: AnyFn, errorCallbackFn?: AnyFn): Promise<false | undefined>;
|
|
65
|
+
addPrintFormat({ templateId, params, token }: AnyObject, successCallbackFn?: AnyFn, errorCallbackFn?: AnyFn): Promise<false | undefined>;
|
|
65
66
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import t from"axios";import{isArray as e}from"lodash-es";import{IdentityVerificationDialog as i,PreviewDialog as s}from"./dialog.js";import{getFileUrl as n,useBrowserPrint as r,isIReport as a}from"./browserPrint.js";import{getCurrentInstance as o}from"vue";import{uuidGenerator as l}from"../../../../shared/utils/index.js";import{format as d}from"date-fns";const h=t.create({timeout:1e3,withCredentials:!1}),m=`${window.location.protocol}//${window.location.host}`,u=`${m}/fdp-api/print/assembly/printIReport`,c=`${m}/bi-api/reprot/print/open/client/getRemote`,p=`${m}/printService/file`;let w=null;class f{constructor(){var t,e,n;if(this.webview=null,this.dialog=new i,this.dialogPreview=new s,this.instance=null,this.downloadPath="",this.printOrigin="http://127.0.0.1:11111",this.isRemote=!1,this.CMonitor=null,this.messageHandlerQueue=[],w)return w;w=this;const r=window;this.CMonitor=r.$CMonitor;try{this.webview=r.top?null==(t=r.top.chrome)?void 0:t.webview:null==(e=r.chrome)?void 0:e.webview}catch(t){console.log(t),this.webview=null==(n=r.chrome)?void 0:n.webview}if(this.webview){this.currentMessageHandler=this.messageHandler.bind(this),this.webview.addEventListener("message",this.currentMessageHandler);try{this.webview.postMessage({exec:"config",data:""})}catch(t){const e="当前浏览器版本不支持获取配置接口";this._handleMonitorNotify(e),console.log("非封装浏览器或者"+e)}}}messageHandler(t){var e;if(console.log("打印事件message",t),!t)return this._handleMonitorNotify("接收到空的浏览器事件,"+t),console.log("当前回执",t,"接收到空的浏览器事件");let i;try{i=JSON.parse(t.data||"{}")}catch(e){console.log("解析e.data失败,"+e),this._handleMonitorNotify("解析e.data失败,"+t)}if(["print","pdf"].includes(null==i?void 0:i.cmd)){console.log("打印命令执行了",i);const e=this.messageHandlerQueue.shift();if(!e)return console.log("当前回执",t,"没有可用的handler");const{resolve:s,reject:n}=e;try{s(i.res||"")}catch(t){n(t)}}else"config"===(null==i?void 0:i.exec)&&(this.downloadPath=(null==(e=i.res)?void 0:e.downloadpath)||"")}async postMessage(t,e=0){if(!this.webview)return Promise.reject();const i=l();return e&&e>0?this.messageCollectAndNotifyFail(i,t,e):this.messageCollect(i,t)}messageCollect(t,e){return new Promise(((i,s)=>{this.messageHandlerQueue.push({resolve:i,reject:s,id:t}),this.webview.postMessage(e)}))}messageCollectAndNotifyFail(t,e,i){return Promise.race([new Promise(((i,s)=>{this.messageHandlerQueue.push({resolve:i,reject:s,id:t}),this.webview.postMessage(e)})),new Promise(((e,s)=>{setTimeout((()=>{const e=this.messageHandlerQueue.findIndex((e=>e.id===t));e>-1&&this.messageHandlerQueue.splice(e,1),s({type:"timeout"})}),i)}))])}destroy(){}show(...t){return this.dialog.show(...t)}showPreview(...t){return this.dialogPreview.show(...t)}_testConnection(){return this.webview?Promise.resolve(!0):new Promise((t=>{h({url:`${this.printOrigin}/test`,method:"get",withCredentials:!1,params:{inputdata:{result:"success"}}}).then((({data:e})=>{"success"===e.result?t(!0):t(!1)})).catch((e=>{t(!1)}))}))}_queryServicesPrint(e){return this.webview?this.postMessage({exec:"print",data:{inputData:e}},null==e?void 0:e.messageTimeout):t({url:this.printOrigin+"/services/print",method:"get",params:{inputData:JSON.stringify(e)}}).then((({data:t})=>t))}_callPrintWithFile(t){const e={cmdid:"7",flag:"1"},i={inputData:JSON.stringify(Object.assign({},e,t))};return this.webview?this.postMessage({exec:"print",data:s(i)}):h({url:this.printOrigin+"/PrintLocal",method:"post",data:i,transformRequest:[s]}).then((({data:t})=>t));function s(t){let e="";for(const i in t)e+=encodeURIComponent(i)+"="+encodeURIComponent(t[i])+"&";return e=e.slice(0,-1),e}}_handleMonitorNotify(t){var e,i;null==(i=null==(e=this.CMonitor)?void 0:e.notify)||i.call(e,{name:"custom_info",message:t,businessName:"打印sdk"})}_handleResult(t,e){if(!t){const t="打印命令返回空数据";return this._handleMonitorNotify(""),null==e||e({type:"printError",message:t,result:!1,errinfo:t}),!1}if("success"!==t.result){const i=t.message||t.Message;this._handleMonitorNotify(i);const s={type:"printError",message:i,result:t.result,errinfo:t.errinfo};return null==e||e(s),!1}return t}_handleResultTest(t,e){return!!t||(console.log("notInstalledApp"),null==e||e({type:"notInstalledApp",message:"请打开打印服务器插件"}),!1)}async _handleEventQueryPrintData(t,e,i,s,n){const r={templateId:t,formatId:e,params:i,cmdid:"7",messageTimeout:s},a=await this._queryServicesPrint(r);return this._handleQueryPrintDataResult(a,e,n)}_handleQueryPrintDataResult(t,e,i){if(!(null==t?void 0:t.file)){try{const e=t.message||t.Message;console.log(e),null==i||i({type:"queryPrintDataFailure",message:e})}catch(t){console.log(t)}return!1}return{file:t.file,printerName:t.defprinter,pageCount:t.pagecount,formatId:e}}async _handleEventDirect({templateId:t,formatId:e,params:i,cmdid:s,print:n,signature:r,printdlgshow:a="0",nobillnode:o="1",btnprint:l="1",messageTimeout:h=0}){const m={templateId:t,formatId:e,params:i,cmdid:s,nobillnode:o,printdlgshow:a,btnprint:l,messageTimeout:h,...r?{signature:r}:{}};if(n){try{n=JSON.parse(n)}catch(t){}m.print=n}else if(this.isRemote){const t=d(new Date,"yyyyMMddHHmmss");m.print={print:"1",type:"1",zip:"0",filename:`F:\\WorkSpace\\crmweb\\web\\${t}\\${t}`}}return await this._queryServicesPrint(m)}async _handleEventEditFormat({templateId:t,formatId:e="",params:i="",token:s,messageTimeout:n=0}){const r={};let a={};try{a=Object.assign({},r,JSON.parse(i))}catch(t){a=r}const o={templateId:t,formatId:e,cmdid:"9",token:s,params:JSON.stringify(a),messageTimeout:n};return await this._queryServicesPrint(o)}async _queryProxyOrigin(){if(this.isRemote)return;const{data:t}=await h({method:"get",url:c})||{},{map:e={}}=t;e.isRemote&&(this.printOrigin=m+"/printService",this.isRemote=!0)}async _queryPrintFile(t,e=""){const{data:i}=await h({method:"post",url:u,responseType:"blob",params:{formatId:t.split("_")[1],params:e}})||{};return i}async _browserPrint(t,e){if(this.isRemote){const{filedir:i}=t,s=JSON.parse(i)[0].replace(/\\/g,"/").split("/"),a=s[s.length-2],o=s[s.length-1],l=await n(`${p}/${a}/${o}`),d=r(null,e,l);if("preview"===e)return d}}async preview({templateId:t,formatId:e,params:i="",signature:s,btnprint:n,messageTimeout:l=0},d,h){if(a(e)){const t=await this._queryPrintFile(e,i);if(!t)return null==h?void 0:h("获取文件失败!");const s=r(t,"preview");return this.instance||(this.instance=o()),this.showPreview(this.instance,s),void(null==d||d({file:t}))}await this._queryProxyOrigin();const m=await this._testConnection();if(!this._handleResultTest(m,h))return!1;try{const r=await this._handleEventDirect({templateId:t,formatId:e,params:i,cmdid:this.isRemote?"7":"8",signature:s,btnprint:n,messageTimeout:l}),a=this._handleResult(r,h);if(!a)return!1;if(this.isRemote){const t=await this._browserPrint(a,"preview");this.instance||(this.instance=o()),this.showPreview(this.instance,t)}null==d||d(a)}catch(t){const e="预览失败",i="timeout"===(null==t?void 0:t.type)?{...t,message:e}:{message:e};null==h||h(i),this._handleMonitorNotify(i)}}async printDirect({templateId:t,formatId:e,params:i="",print:s,signature:n,printdlgshow:o,nobillnode:l,isDownloadFile:d=!0,messageTimeout:h=0},m,u,c="printDirect"){if(a(e)){const t=await this._queryPrintFile(e,i);return t?(r(t,c),void(null==m||m({file:t}))):null==u?void 0:u("获取文件失败!")}await this._queryProxyOrigin();const p=await this._testConnection();if(!this._handleResultTest(p,u))return!1;try{const r=await this._handleEventDirect({templateId:t,formatId:e,params:i,cmdid:"7",print:s,signature:n,printdlgshow:o,nobillnode:l,messageTimeout:h}),a=this._handleResult(r,u);if(!a)return!1;d&&["downloadPDF"].includes(c)&&await this._browserPrint(a,c),null==m||m(a)}catch(t){const e="printDirect"===c?"打印失败":"下载失败",i="timeout"===(null==t?void 0:t.type)?{...t,message:e}:{message:e};null==u||u(i),this._handleMonitorNotify(i)}}_downloadPDF(t){return this.webview?this.postMessage({exec:"pdf",data:{file:t}}):h.get(this.printOrigin+"/download",{params:{inputData:t}}).then((({data:t})=>t))}downloadPDF(t,i,s){if(this.webview&&this.downloadPath&&(Reflect.has(t,"print")||Reflect.set(t,"print",{print:"1",type:"1"}),!t.print.filename)){const e=d(new Date,"yyyy-MM-dd"),i=l(),s=d(new Date,"yyyyMMddHHmmss")+i;t.print.filename=`${this.downloadPath}/${e}/${s}/${s}`.replace(/\\/g,"/")}this.printDirect(t,(async n=>{if(n||s(null),a(t.formatId))return i(n);const r=this,o=await async function(t){const i=[],s=JSON.parse(t);if(!e(s))return await r._downloadPDF("");if(1===s.length)return await r._downloadPDF(s[0]||"");for(let t=0,e=s.length;t<e;t++)i.push(await r._downloadPDF(s[t]||""));return i}(n.filedir);i(o,n)}),(t=>s(t)),"downloadPDF")}async print({templateId:t,formatId:e,params:i="",messageTimeout:s=0},n,r){const a=await this._testConnection();if(!this._handleResultTest(a,r))return!1;const o=await this.queryPrintData({templateId:t,formatId:e,params:i,messageTimeout:s},void 0,r);if(!o)return!1;const l=this.printFileData({formatId:e,file:o.file,printerName:o.printerName},void 0,r);if(!l)return!1;n&&n(l)}async queryPrintData({templateId:t,formatId:e,params:i="",messageTimeout:s=0},n,r){const a=await this._testConnection();if(!this._handleResultTest(a,r))return!1;const o=await this._handleEventQueryPrintData(t,e,i,s,r);return!!o&&(n&&n(o),o)}async printFileData({formatId:t,file:e,printerName:i="Default"},s,n){const r=await this._testConnection();if(!this._handleResultTest(r,n))return!1;const a=await this._callPrintWithFile({formatId:t,printname:i,file:e}),o=this._handleResult(a,n);return!!o&&(s&&s(o),o)}async editPrintFormat({templateId:t,formatId:e,params:i,token:s,messageTimeout:n=0},r,a){const o=await this._testConnection();if(!this._handleResultTest(o,a))return!1;const l=await this._handleEventEditFormat({templateId:t,formatId:e,params:i,token:s,messageTimeout:n}),d=this._handleResult(l,a);if(!d)return!1;r&&r(d)}async addPrintFormat({templateId:t,params:e,token:i},s,n){const r=await this._testConnection();if(!this._handleResultTest(r,n))return!1;const a=await this._handleEventEditFormat({templateId:t,params:e,token:i}),o=this._handleResult(a,n);if(!o)return!1;s&&s(o)}}export{f as Print};
|
|
1
|
+
import t from"axios";import{isArray as e}from"lodash-es";import{IdentityVerificationDialog as i,PreviewDialog as s}from"./dialog.js";import{getFileUrl as n,useBrowserPrint as r,isIReport as a}from"./browserPrint.js";import{getCurrentInstance as o}from"vue";import{uuidGenerator as l}from"../../../../shared/utils/index.js";import{format as d}from"date-fns";const h=t.create({timeout:1e3,withCredentials:!1}),c=`${window.location.protocol}//${window.location.host}`,u=`${c}/fdp-api/print/assembly/printIReport`,m=`${c}/bi-api/reprot/print/open/client/getRemote`,p=`${c}/printService/file`;let w=null;class f{constructor(){var t,e,n;if(this.webview=null,this.dialog=new i,this.dialogPreview=new s,this.instance=null,this.downloadPath="",this.printOrigin="http://127.0.0.1:11111",this.isRemote=!1,this.CMonitor=null,this.messageHandlerQueue=[],w)return w;w=this;const r=window;this.CMonitor=r.$CMonitor;try{this.webview=r.top?null==(t=r.top.chrome)?void 0:t.webview:null==(e=r.chrome)?void 0:e.webview}catch(t){console.log(t),this.webview=null==(n=r.chrome)?void 0:n.webview}if(this.webview){this.currentMessageHandler=this.messageHandler.bind(this),this.webview.addEventListener("message",this.currentMessageHandler);try{this.webview.postMessage({exec:"config",data:""})}catch(t){const e="当前浏览器版本不支持获取配置接口";this._handleMonitorNotify(e),console.log("非封装浏览器或者"+e)}}}messageHandler(t){var e;if(console.log("打印事件message",t),!t)return this._handleMonitorNotify("接收到空的浏览器事件,"+t),console.log("当前回执",t,"接收到空的浏览器事件");let i;try{i=JSON.parse(t.data||"{}")}catch(e){console.log("解析e.data失败,"+e),this._handleMonitorNotify("解析e.data失败,"+t)}if(["print","pdf"].includes(null==i?void 0:i.cmd)){console.log("打印命令执行了",i);const e=this.messageHandlerQueue.shift();if(!e)return console.log("当前回执",t,"没有可用的handler");const{resolve:s,reject:n}=e;try{s(i.res||"")}catch(t){n(t)}}else"config"===(null==i?void 0:i.exec)&&(this.downloadPath=(null==(e=i.res)?void 0:e.downloadpath)||"")}async postMessage(t,e=0){if(!this.webview)return Promise.reject();const i=l();return e&&e>0?this.messageCollectAndNotifyFail(i,t,e):this.messageCollect(i,t)}messageCollect(t,e){return new Promise(((i,s)=>{this.messageHandlerQueue.push({resolve:i,reject:s,id:t}),this.webview.postMessage(e)}))}messageCollectAndNotifyFail(t,e,i){return Promise.race([new Promise(((i,s)=>{this.messageHandlerQueue.push({resolve:i,reject:s,id:t}),this.webview.postMessage(e)})),new Promise(((e,s)=>{setTimeout((()=>{const e=this.messageHandlerQueue.findIndex((e=>e.id===t));e>-1&&this.messageHandlerQueue.splice(e,1),s({type:"timeout"})}),i)}))])}destroy(){}show(...t){return this.dialog.show(...t)}showPreview(...t){return this.dialogPreview.show(...t)}_testConnection(){return this.webview?Promise.resolve(!0):new Promise((t=>{h({url:`${this.printOrigin}/test`,method:"get",withCredentials:!1,params:{inputdata:{result:"success"}}}).then((({data:e})=>{"success"===e.result?t(!0):t(!1)})).catch((e=>{t(!1)}))}))}_queryServicesPrint(e){return this.webview?this.postMessage({exec:"print",data:{inputData:e}},null==e?void 0:e.messageTimeout):t({url:this.printOrigin+"/services/print",method:"get",params:{inputData:JSON.stringify(e)}}).then((({data:t})=>t))}_callPrintWithFile(t){const e={cmdid:"7",flag:"1"},i={inputData:JSON.stringify(Object.assign({},e,t))};return this.webview?this.postMessage({exec:"print",data:s(i)}):h({url:this.printOrigin+"/PrintLocal",method:"post",data:i,transformRequest:[s]}).then((({data:t})=>t));function s(t){let e="";for(const i in t)e+=encodeURIComponent(i)+"="+encodeURIComponent(t[i])+"&";return e=e.slice(0,-1),e}}_handleMonitorNotify(t){var e,i;null==(i=null==(e=this.CMonitor)?void 0:e.notify)||i.call(e,{name:"custom_info",message:t,businessName:"打印sdk"})}_handleResult(t,e){if(!t){const t="打印命令返回空数据";return this._handleMonitorNotify(""),null==e||e({type:"printError",message:t,result:!1,errinfo:t}),!1}if("success"!==t.result){const i=t.message||t.Message;this._handleMonitorNotify(i);const s={type:"printError",message:i,result:t.result,errinfo:t.errinfo};return null==e||e(s),!1}return t}_handleResultTest(t,e){return!!t||(console.log("notInstalledApp"),null==e||e({type:"notInstalledApp",message:"请打开打印服务器插件"}),!1)}async _handleEventQueryPrintData(t,e,i,s,n){const r={templateId:t,formatId:e,params:i,cmdid:"7",messageTimeout:s},a=await this._queryServicesPrint(r);return this._handleQueryPrintDataResult(a,e,n)}_handleQueryPrintDataResult(t,e,i){if(!(null==t?void 0:t.file)){try{const e=t.message||t.Message;console.log(e),null==i||i({type:"queryPrintDataFailure",message:e})}catch(t){console.log(t)}return!1}return{file:t.file,printerName:t.defprinter,pageCount:t.pagecount,formatId:e}}async _handleEventDirect({templateId:t,formatId:e,params:i,cmdid:s,print:n,signature:r,printdlgshow:a="0",nobillnode:o="1",btnprint:l="1",messageTimeout:h=0}){const c={templateId:t,formatId:e,params:i,cmdid:s,nobillnode:o,printdlgshow:a,btnprint:l,messageTimeout:h,...r?{signature:r}:{}};if(n){try{n=JSON.parse(n)}catch(t){}c.print=n}else if(this.isRemote){const t=d(new Date,"yyyyMMddHHmmss");c.print={print:"1",type:"1",zip:"0",filename:`F:\\WorkSpace\\crmweb\\web\\${t}\\${t}`}}return await this._queryServicesPrint(c)}async _handleEventEditFormat({templateId:t,formatId:e="",params:i="",token:s,messageTimeout:n=0}){const r={};let a={};try{a=Object.assign({},r,JSON.parse(i))}catch(t){a=r}const o={templateId:t,formatId:e,cmdid:"9",token:s,params:JSON.stringify(a),messageTimeout:n};return await this._queryServicesPrint(o)}async _queryProxyOrigin(){if(this.isRemote)return;const{data:t}=await h({method:"get",url:m})||{},{map:e={}}=t;e.isRemote&&(this.printOrigin=c+"/printService",this.isRemote=!0)}async _queryPrintFile(t,e=""){const{data:i}=await h({method:"post",url:u,responseType:"blob",params:{formatId:t.split("_")[1],params:e}})||{};return i}async _browserPrint(t,e){if(this.isRemote){const{filedir:i}=t,s=JSON.parse(i)[0].replace(/\\/g,"/").split("/"),a=s[s.length-2],o=s[s.length-1],l=await n(`${p}/${a}/${o}`),d=r(null,e,l);if("preview"===e)return d}}async preview({templateId:t,formatId:e,params:i="",signature:s,btnprint:n,messageTimeout:l=0},d,h){if(a(e)){const t=await this._queryPrintFile(e,i);if(!t)return null==h?void 0:h("获取文件失败!");const s=r(t,"preview");return this.instance||(this.instance=o()),this.showPreview(this.instance,s),void(null==d||d({file:t}))}await this._queryProxyOrigin();const c=await this._testConnection();if(!this._handleResultTest(c,h))return!1;try{const r=await this._handleEventDirect({templateId:t,formatId:e,params:i,cmdid:this.isRemote?"7":"8",signature:s,btnprint:n,messageTimeout:l}),a=this._handleResult(r,h);if(!a)return!1;if(this.isRemote){const t=await this._browserPrint(a,"preview");this.instance||(this.instance=o()),this.showPreview(this.instance,t)}null==d||d(a)}catch(t){const e="预览失败",i="timeout"===(null==t?void 0:t.type)?{...t,message:e}:{message:e};null==h||h(i),this._handleMonitorNotify(i)}}async printSync(t,e,i){const s=t.map((t=>{const e={params:"",printdlgshow:"0",nobillnode:"1",btnprint:"1",...t,cmdid:"7",...t.signature?{signature:t.signature}:{}};if(e.print)try{e.print=JSON.parse(e.print)}catch(t){}return{inputData:e}}));try{const t=l(),n=await this.messageCollect(t,{exec:"printA",data:s});if(n&&Array.isArray(n)){n.some((t=>"success"===t.res.result))?null==e||e(n):(null==i||i(n),this._handleMonitorNotify(n))}else{const t="打印命令返回无效数据";this._handleMonitorNotify(n||""),null==i||i({type:"printError",message:t,result:!1,errinfo:t})}}catch(t){const e={error:t,message:"打印失败"};null==i||i(e),this._handleMonitorNotify(e)}}async printDirect({templateId:t,formatId:e,params:i="",print:s,signature:n,printdlgshow:o,nobillnode:l,isDownloadFile:d=!0,messageTimeout:h=0},c,u,m="printDirect"){if(a(e)){const t=await this._queryPrintFile(e,i);return t?(r(t,m),void(null==c||c({file:t}))):null==u?void 0:u("获取文件失败!")}await this._queryProxyOrigin();const p=await this._testConnection();if(!this._handleResultTest(p,u))return!1;try{const r=await this._handleEventDirect({templateId:t,formatId:e,params:i,cmdid:"7",print:s,signature:n,printdlgshow:o,nobillnode:l,messageTimeout:h}),a=this._handleResult(r,u);if(!a)return!1;d&&["downloadPDF"].includes(m)&&await this._browserPrint(a,m),null==c||c(a)}catch(t){const e="printDirect"===m?"打印失败":"下载失败",i="timeout"===(null==t?void 0:t.type)?{...t,message:e}:{message:e};null==u||u(i),this._handleMonitorNotify(i)}}_downloadPDF(t){return this.webview?this.postMessage({exec:"pdf",data:{file:t}}):h.get(this.printOrigin+"/download",{params:{inputData:t}}).then((({data:t})=>t))}downloadPDF(t,i,s){if(this.webview&&this.downloadPath&&(Reflect.has(t,"print")||Reflect.set(t,"print",{print:"1",type:"1"}),!t.print.filename)){const e=d(new Date,"yyyy-MM-dd"),i=l(),s=d(new Date,"yyyyMMddHHmmss")+i;t.print.filename=`${this.downloadPath}/${e}/${s}/${s}`.replace(/\\/g,"/")}this.printDirect(t,(async n=>{if(n||s(null),a(t.formatId))return i(n);const r=this,o=await async function(t){const i=[],s=JSON.parse(t);if(!e(s))return await r._downloadPDF("");if(1===s.length)return await r._downloadPDF(s[0]||"");for(let t=0,e=s.length;t<e;t++)i.push(await r._downloadPDF(s[t]||""));return i}(n.filedir);i(o,n)}),(t=>s(t)),"downloadPDF")}async print({templateId:t,formatId:e,params:i="",messageTimeout:s=0},n,r){const a=await this._testConnection();if(!this._handleResultTest(a,r))return!1;const o=await this.queryPrintData({templateId:t,formatId:e,params:i,messageTimeout:s},void 0,r);if(!o)return!1;const l=this.printFileData({formatId:e,file:o.file,printerName:o.printerName},void 0,r);if(!l)return!1;n&&n(l)}async queryPrintData({templateId:t,formatId:e,params:i="",messageTimeout:s=0},n,r){const a=await this._testConnection();if(!this._handleResultTest(a,r))return!1;const o=await this._handleEventQueryPrintData(t,e,i,s,r);return!!o&&(n&&n(o),o)}async printFileData({formatId:t,file:e,printerName:i="Default"},s,n){const r=await this._testConnection();if(!this._handleResultTest(r,n))return!1;const a=await this._callPrintWithFile({formatId:t,printname:i,file:e}),o=this._handleResult(a,n);return!!o&&(s&&s(o),o)}async editPrintFormat({templateId:t,formatId:e,params:i,token:s,messageTimeout:n=0},r,a){const o=await this._testConnection();if(!this._handleResultTest(o,a))return!1;const l=await this._handleEventEditFormat({templateId:t,formatId:e,params:i,token:s,messageTimeout:n}),d=this._handleResult(l,a);if(!d)return!1;r&&r(d)}async addPrintFormat({templateId:t,params:e,token:i},s,n){const r=await this._testConnection();if(!this._handleResultTest(r,n))return!1;const a=await this._handleEventEditFormat({templateId:t,params:e,token:i}),o=this._handleResult(a,n);if(!o)return!1;s&&s(o)}}export{f as Print};
|
|
@@ -121,7 +121,7 @@ export declare const CallbackMaps: Map<string, {
|
|
|
121
121
|
}>>;
|
|
122
122
|
};
|
|
123
123
|
requestInstance: {
|
|
124
|
-
type: import("vue").PropType<import("
|
|
124
|
+
type: import("vue").PropType<import("../../../..").FormRequestDefine.RequestInstance>;
|
|
125
125
|
};
|
|
126
126
|
enterToNextWidget: {
|
|
127
127
|
type: import("vue").PropType<boolean | ((fieldItem: import("../../../../../../es/components/form-render").FieldItem) => boolean | void)>;
|
|
@@ -266,7 +266,7 @@ export declare const CallbackMaps: Map<string, {
|
|
|
266
266
|
}>>;
|
|
267
267
|
};
|
|
268
268
|
requestInstance: {
|
|
269
|
-
type: import("vue").PropType<import("
|
|
269
|
+
type: import("vue").PropType<import("../../../..").FormRequestDefine.RequestInstance>;
|
|
270
270
|
};
|
|
271
271
|
enterToNextWidget: {
|
|
272
272
|
type: import("vue").PropType<boolean | ((fieldItem: import("../../../../../../es/components/form-render").FieldItem) => boolean | void)>;
|
|
@@ -320,7 +320,7 @@ export declare const CallbackMaps: Map<string, {
|
|
|
320
320
|
changeContextCollector: import("../../../../../../es/components/form-render").ContextCollector;
|
|
321
321
|
formUUID: string;
|
|
322
322
|
anchorBarRef: import("vue").Ref<{
|
|
323
|
-
syncBarPosition: import("../../../..").
|
|
323
|
+
syncBarPosition: import("../../../..").AnyFn<any[], any>;
|
|
324
324
|
} | undefined>;
|
|
325
325
|
currentAnchor: import("vue").WritableComputedRef<string>;
|
|
326
326
|
updateAnchorList: (field: import("@formily/core").GeneralField) => void;
|
|
@@ -433,7 +433,7 @@ export declare const CallbackMaps: Map<string, {
|
|
|
433
433
|
afterOptionInit(fieldKey: string, options: import("../../../..").AnyObject[], payload?: import("../../../..").AnyObject | undefined): void;
|
|
434
434
|
}>;
|
|
435
435
|
businessFormatter: import("../../../../../../es/components/form-render").FormBusinessFormatter;
|
|
436
|
-
requestInstance: import("
|
|
436
|
+
requestInstance: import("../../../..").FormRequestDefine.RequestInstance;
|
|
437
437
|
enterToNextWidget: boolean | ((fieldItem: import("../../../../../../es/components/form-render").FieldItem) => boolean | void);
|
|
438
438
|
lowCodeReactions: import("../../../..").FormLowCodeReactions.Config[];
|
|
439
439
|
linebarAutoHidden: boolean;
|
|
@@ -841,7 +841,7 @@ export declare const CallbackMaps: Map<string, {
|
|
|
841
841
|
}>>;
|
|
842
842
|
};
|
|
843
843
|
requestInstance: {
|
|
844
|
-
type: import("vue").PropType<import("
|
|
844
|
+
type: import("vue").PropType<import("../../../..").FormRequestDefine.RequestInstance>;
|
|
845
845
|
};
|
|
846
846
|
enterToNextWidget: {
|
|
847
847
|
type: import("vue").PropType<boolean | ((fieldItem: import("../../../../../../es/components/form-render").FieldItem) => boolean | void)>;
|
|
@@ -915,6 +915,17 @@ export declare const CallbackMaps: Map<string, {
|
|
|
915
915
|
annotation: {
|
|
916
916
|
type: import("vue").PropType<Record<string, import("../../../../annotation-edit/src/type").AnnotationItem>>;
|
|
917
917
|
};
|
|
918
|
+
requestInstance: {
|
|
919
|
+
type: import("vue").PropType<import("../../../..").FormRequestDefine.RequestInstance>;
|
|
920
|
+
};
|
|
921
|
+
uniqueCacheData: {
|
|
922
|
+
type: BooleanConstructor;
|
|
923
|
+
default: boolean;
|
|
924
|
+
};
|
|
925
|
+
parallelism: {
|
|
926
|
+
type: NumberConstructor;
|
|
927
|
+
default: number;
|
|
928
|
+
};
|
|
918
929
|
}, {
|
|
919
930
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
920
931
|
tableConfig: {
|
|
@@ -932,6 +943,17 @@ export declare const CallbackMaps: Map<string, {
|
|
|
932
943
|
annotation: {
|
|
933
944
|
type: import("vue").PropType<Record<string, import("../../../../annotation-edit/src/type").AnnotationItem>>;
|
|
934
945
|
};
|
|
946
|
+
requestInstance: {
|
|
947
|
+
type: import("vue").PropType<import("../../../..").FormRequestDefine.RequestInstance>;
|
|
948
|
+
};
|
|
949
|
+
uniqueCacheData: {
|
|
950
|
+
type: BooleanConstructor;
|
|
951
|
+
default: boolean;
|
|
952
|
+
};
|
|
953
|
+
parallelism: {
|
|
954
|
+
type: NumberConstructor;
|
|
955
|
+
default: number;
|
|
956
|
+
};
|
|
935
957
|
}>> & {
|
|
936
958
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
|
937
959
|
onCopy?: ((...args: any[]) => any) | undefined;
|
|
@@ -1006,6 +1028,10 @@ export declare const CallbackMaps: Map<string, {
|
|
|
1006
1028
|
}>;
|
|
1007
1029
|
eventListener: import("../../../../iho-table/src/hooks/tapHooks/useEventHooks").IhoTableEventListener;
|
|
1008
1030
|
emits: (event: "toggleRowExpand" | "toggleTreeExpand" | "copy" | "scroll" | "formChange" | "settingClick" | "formClick" | "keyboard" | "rowDrag" | "cut" | "paste" | "keydown" | "keydownStart" | "keydownEnd" | "currentChange" | "radioChange" | "checkboxChange" | "checkboxAll" | "checkboxRangeStart" | "checkboxRangeChange" | "checkboxRangeEnd" | "cellClick" | "cellDblclick" | "cellMenu" | "cellMouseenter" | "cellMouseleave" | "headerCellClick" | "headerCellDblclick" | "headerCellMenu" | "footerCellClick" | "footerCellDblclick" | "footerCellMenu" | "sortChange" | "filterChange" | "filterVisible" | "resizableChange" | "menuClick" | "editClosed" | "editActived" | "editDisabled" | "validError" | "custom" | "openFnr" | "fnrChange" | "fnrFind" | "fnrFindAll" | "fnrReplace" | "fnrReplaceAll" | "cellAreaCopy" | "cellAreaCut" | "cellAreaPaste" | "cellAreaMerge" | "clearCellAreaMerge" | "headerCellAreaSelection" | "cellAreaSelectionStart" | "cellAreaSelectionDrag" | "cellAreaSelectionEnd" | "cellAreaExtensionStart" | "cellAreaExtensionDrag" | "cellAreaExtensionEnd" | "cellAreaArrowsStart" | "cellAreaArrowsEnd" | "activeCellChangeStart" | "activeCellChangeEnd" | "pageChange", ...args: any[]) => void;
|
|
1031
|
+
asyncQueue: import("../../../..").AsyncQueue<import("../../../..").FormRequestDefine.AsyncQueueItem, any, {
|
|
1032
|
+
label: string;
|
|
1033
|
+
value: unknown;
|
|
1034
|
+
}[]>;
|
|
1009
1035
|
hooks: Readonly<{
|
|
1010
1036
|
configHooks: import("../../../../../../es/components/iho-table").AbstractConfigHooks;
|
|
1011
1037
|
fieldHooks: import("../../../../../../es/components/iho-table").AbstractFieldHooks;
|
|
@@ -5557,6 +5583,17 @@ export declare const CallbackMaps: Map<string, {
|
|
|
5557
5583
|
annotation: {
|
|
5558
5584
|
type: import("vue").PropType<Record<string, import("../../../../annotation-edit/src/type").AnnotationItem>>;
|
|
5559
5585
|
};
|
|
5586
|
+
requestInstance: {
|
|
5587
|
+
type: import("vue").PropType<import("../../../..").FormRequestDefine.RequestInstance>;
|
|
5588
|
+
};
|
|
5589
|
+
uniqueCacheData: {
|
|
5590
|
+
type: BooleanConstructor;
|
|
5591
|
+
default: boolean;
|
|
5592
|
+
};
|
|
5593
|
+
parallelism: {
|
|
5594
|
+
type: NumberConstructor;
|
|
5595
|
+
default: number;
|
|
5596
|
+
};
|
|
5560
5597
|
}>> & {
|
|
5561
5598
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
|
5562
5599
|
onCopy?: ((...args: any[]) => any) | undefined;
|
|
@@ -5625,6 +5662,8 @@ export declare const CallbackMaps: Map<string, {
|
|
|
5625
5662
|
onRowDrag?: ((...args: any[]) => any) | undefined;
|
|
5626
5663
|
}, {
|
|
5627
5664
|
fieldList: import("../../../../../../es/components/iho-table").LowCodeTableFieldItem[];
|
|
5665
|
+
parallelism: number;
|
|
5666
|
+
uniqueCacheData: boolean;
|
|
5628
5667
|
tableConfig: import("../../../../../../es/components/iho-table").IhoTableConfig;
|
|
5629
5668
|
tableData: import("../../../..").AnyObject[];
|
|
5630
5669
|
}>>;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { AnyObject,
|
|
1
|
+
import { AnyObject, AnyFn, NumberRange } from '../../../../../es/shared/types';
|
|
2
2
|
import { TRANS_CMD } from '../../../../../es/components/card-reader-sdk/src/constants';
|
|
3
3
|
export declare namespace InsuranceType {
|
|
4
4
|
export type ExecType = 'hisyb' | 'login';
|
|
5
5
|
export type IHOWindow = Window & {
|
|
6
6
|
chrome: {
|
|
7
7
|
webview: {
|
|
8
|
-
addEventListener: (type: string, handler:
|
|
9
|
-
removeEventListener: (type: string, handler:
|
|
8
|
+
addEventListener: (type: string, handler: AnyFn) => void;
|
|
9
|
+
removeEventListener: (type: string, handler: AnyFn) => void;
|
|
10
10
|
postMessage: (payload: any) => void;
|
|
11
11
|
};
|
|
12
12
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,useAttrs as a,ref as t,computed as l,watch as n,openBlock as u,createBlock as r,unref as o,isRef as d,createSlots as i,renderList as s,withCtx as
|
|
1
|
+
import{defineComponent as e,useAttrs as a,ref as t,computed as l,watch as n,openBlock as u,createBlock as r,unref as o,isRef as d,createSlots as i,renderList as s,withCtx as p,renderSlot as f,nextTick as m}from"vue";import{NDatePicker as v}from"naive-ui";import"../../../shared/utils/index.js";import{isString as c,isArray as y}from"lodash-es";import{useDateTime as h}from"../../../shared/hooks/useDateTime.js";import"@vue/shared";import{format as g}from"date-fns";var V=e({__name:"DatePicker",props:{updateUnchangedValue:{type:Boolean},onConfirm:{type:Function},formattedValue:{type:[String,Array]},placeholder:{type:String},allowedInvalidValue:{type:String}},emits:["update:formatted-value"],setup(e,{expose:V,emit:w}){const I=e,R=a(),D=t(null),M=t(null),k=t(),C=l({get:()=>j(I.formattedValue)?null:I.formattedValue,set(e){w("update:formatted-value",e,c(e)?Date.parse(e):y(e)?[Date.parse(e[0]),Date.parse(e[1])]:null)}}),E=l((()=>{const e=Reflect.get(R,"type")||"";return["datetime","datetimerange"].includes(e)})),P=l((()=>{if(Reflect.get(R,"format"))return R.format;const e=R.type||"";return E.value?"yyyy-MM-dd HH:mm:ss":"month"===e?"yyyy-MM":"year"===e?"yyyy":"yyyy-MM-dd"})),S=l((()=>E.value?P.value.split(" "):"")),{focus:U,blur:$,handleConfirm:_}=h(D,{formatRef:P,attrs:R,emit:w,allowedInvalidValue:I.allowedInvalidValue});function b(e){e&&E.value&&m((()=>{var e;M.value=null==(e=D.value)?void 0:e.panelInstRef,h(M,{formatRef:S,attrs:R,isPanel:!0})}))}async function x(...e){var a,t,l,n,u,r;const o=Reflect.get(R,"type")||"",d=null==(n=null==(l=null==(t=null==(a=D.value)?void 0:a.inputInstRef)?void 0:t.$el)?void 0:l.querySelector)?void 0:n.call(l,"input");if(o.includes("range")?null==(u=I.onConfirm)||u.call(I,...e):(await m(),d.focus(),_(d),d.blur(),null==(r=I.onConfirm)||r.call(I,Date.parse(d.value),d.value)),!(null==d?void 0:d.value)||!I.updateUnchangedValue||o.includes("range"))return;const i=d.value;d.value=g(new Date,P.value),d.dispatchEvent(new InputEvent("input")),d.value=i,d.dispatchEvent(new InputEvent("input"))}function j(e){return I.allowedInvalidValue&&I.allowedInvalidValue===e}return n((()=>I.formattedValue),(e=>{k.value=j(e)?e:I.placeholder?I.placeholder:"选择日期时间"}),{immediate:!0}),V({$datePicker:D,focus:U,blur:$}),(e,a)=>(u(),r(o(v),{ref_key:"datePickerRef",ref:D,"onUpdate:show":b,onConfirm:x,placeholder:k.value,"formatted-value":o(C),"onUpdate:formatted-value":a[0]||(a[0]=e=>d(C)?C.value=e:null)},i({_:2},[s(e.$slots,((a,t)=>({name:t,fn:p((()=>[f(e.$slots,t)]))})))]),1032,["placeholder","formatted-value"]))}});export{V as default};
|
|
@@ -96,7 +96,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
96
96
|
afterOptionInit(fieldKey: string, options: import("../../../es/shared/types").AnyObject[], payload?: import("../../../es/shared/types").AnyObject | undefined): void;
|
|
97
97
|
}>;
|
|
98
98
|
businessFormatter: import("..").FormBusinessFormatter;
|
|
99
|
-
requestInstance: import("..").RequestInstance;
|
|
99
|
+
requestInstance: import("..").FormRequestDefine.RequestInstance;
|
|
100
100
|
enterToNextWidget: boolean | ((fieldItem: import("..").FieldItem) => boolean | void);
|
|
101
101
|
lowCodeReactions: import("../../../es/shared/types").FormLowCodeReactions.Config[];
|
|
102
102
|
linebarAutoHidden: boolean;
|
|
@@ -203,7 +203,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
203
203
|
afterOptionInit(fieldKey: string, options: import("../../../es/shared/types").AnyObject[], payload?: import("../../../es/shared/types").AnyObject | undefined): void;
|
|
204
204
|
}>;
|
|
205
205
|
businessFormatter: import("..").FormBusinessFormatter;
|
|
206
|
-
requestInstance: import("..").RequestInstance;
|
|
206
|
+
requestInstance: import("..").FormRequestDefine.RequestInstance;
|
|
207
207
|
enterToNextWidget: boolean | ((fieldItem: import("..").FieldItem) => boolean | void);
|
|
208
208
|
lowCodeReactions: import("../../../es/shared/types").FormLowCodeReactions.Config[];
|
|
209
209
|
linebarAutoHidden: boolean;
|
|
@@ -345,7 +345,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
345
345
|
urlConfig?: {
|
|
346
346
|
[x: string]: any;
|
|
347
347
|
url: string;
|
|
348
|
-
method?: import("..").
|
|
348
|
+
method?: import("..").FormRequestDefine.RequestType | undefined;
|
|
349
349
|
nameKey?: string | undefined;
|
|
350
350
|
valueKey?: string | undefined;
|
|
351
351
|
showKey?: string | undefined;
|
|
@@ -2092,7 +2092,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2092
2092
|
urlConfig?: {
|
|
2093
2093
|
[x: string]: any;
|
|
2094
2094
|
url: string;
|
|
2095
|
-
method?: import("..").
|
|
2095
|
+
method?: import("..").FormRequestDefine.RequestType | undefined;
|
|
2096
2096
|
nameKey?: string | undefined;
|
|
2097
2097
|
valueKey?: string | undefined;
|
|
2098
2098
|
showKey?: string | undefined;
|
|
@@ -3758,7 +3758,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
3758
3758
|
parsedTextFormatter: import("./src/types").FormConfigTextFormatter;
|
|
3759
3759
|
currentEditField: import("vue").Ref<import("./src/types").FormConfigItem | undefined>;
|
|
3760
3760
|
formConfigEditRef: import("vue").Ref<{
|
|
3761
|
-
validate: import("../../../es/shared/types").
|
|
3761
|
+
validate: import("../../../es/shared/types").AnyFn<any[], any>;
|
|
3762
3762
|
} | undefined>;
|
|
3763
3763
|
transform: (fieldList: import("./src/types").FormConfigItem[]) => import("./src/types").FormConfigItem[];
|
|
3764
3764
|
inverseTransform: (fieldList: import("./src/types").FormConfigItem[], withOriginalSetting: boolean, otherConfig?: Partial<import("./src/types").FormConfigItem> | undefined) => import("./src/types").FormConfigItem[];
|
|
@@ -3876,7 +3876,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
3876
3876
|
urlConfig?: {
|
|
3877
3877
|
[x: string]: any;
|
|
3878
3878
|
url: string;
|
|
3879
|
-
method?: import("..").
|
|
3879
|
+
method?: import("..").FormRequestDefine.RequestType | undefined;
|
|
3880
3880
|
nameKey?: string | undefined;
|
|
3881
3881
|
valueKey?: string | undefined;
|
|
3882
3882
|
showKey?: string | undefined;
|
|
@@ -5623,7 +5623,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
5623
5623
|
urlConfig?: {
|
|
5624
5624
|
[x: string]: any;
|
|
5625
5625
|
url: string;
|
|
5626
|
-
method?: import("..").
|
|
5626
|
+
method?: import("..").FormRequestDefine.RequestType | undefined;
|
|
5627
5627
|
nameKey?: string | undefined;
|
|
5628
5628
|
valueKey?: string | undefined;
|
|
5629
5629
|
showKey?: string | undefined;
|
|
@@ -7467,7 +7467,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
7467
7467
|
}>>;
|
|
7468
7468
|
};
|
|
7469
7469
|
requestInstance: {
|
|
7470
|
-
type: import("vue").PropType<import("..").RequestInstance>;
|
|
7470
|
+
type: import("vue").PropType<import("..").FormRequestDefine.RequestInstance>;
|
|
7471
7471
|
};
|
|
7472
7472
|
enterToNextWidget: {
|
|
7473
7473
|
type: import("vue").PropType<boolean | ((fieldItem: import("..").FieldItem) => boolean | void)>;
|
|
@@ -7612,7 +7612,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
7612
7612
|
}>>;
|
|
7613
7613
|
};
|
|
7614
7614
|
requestInstance: {
|
|
7615
|
-
type: import("vue").PropType<import("..").RequestInstance>;
|
|
7615
|
+
type: import("vue").PropType<import("..").FormRequestDefine.RequestInstance>;
|
|
7616
7616
|
};
|
|
7617
7617
|
enterToNextWidget: {
|
|
7618
7618
|
type: import("vue").PropType<boolean | ((fieldItem: import("..").FieldItem) => boolean | void)>;
|
|
@@ -7666,7 +7666,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
7666
7666
|
changeContextCollector: import("..").ContextCollector;
|
|
7667
7667
|
formUUID: string;
|
|
7668
7668
|
anchorBarRef: import("vue").Ref<{
|
|
7669
|
-
syncBarPosition: import("../../../es/shared/types").
|
|
7669
|
+
syncBarPosition: import("../../../es/shared/types").AnyFn<any[], any>;
|
|
7670
7670
|
} | undefined>;
|
|
7671
7671
|
currentAnchor: import("vue").WritableComputedRef<string>;
|
|
7672
7672
|
updateAnchorList: (field: import("@formily/core").GeneralField) => void;
|
|
@@ -7779,7 +7779,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
7779
7779
|
afterOptionInit(fieldKey: string, options: import("../../../es/shared/types").AnyObject[], payload?: import("../../../es/shared/types").AnyObject | undefined): void;
|
|
7780
7780
|
}>;
|
|
7781
7781
|
businessFormatter: import("..").FormBusinessFormatter;
|
|
7782
|
-
requestInstance: import("..").RequestInstance;
|
|
7782
|
+
requestInstance: import("..").FormRequestDefine.RequestInstance;
|
|
7783
7783
|
enterToNextWidget: boolean | ((fieldItem: import("..").FieldItem) => boolean | void);
|
|
7784
7784
|
lowCodeReactions: import("../../../es/shared/types").FormLowCodeReactions.Config[];
|
|
7785
7785
|
linebarAutoHidden: boolean;
|
|
@@ -8187,7 +8187,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
8187
8187
|
}>>;
|
|
8188
8188
|
};
|
|
8189
8189
|
requestInstance: {
|
|
8190
|
-
type: import("vue").PropType<import("..").RequestInstance>;
|
|
8190
|
+
type: import("vue").PropType<import("..").FormRequestDefine.RequestInstance>;
|
|
8191
8191
|
};
|
|
8192
8192
|
enterToNextWidget: {
|
|
8193
8193
|
type: import("vue").PropType<boolean | ((fieldItem: import("..").FieldItem) => boolean | void)>;
|
|
@@ -8432,7 +8432,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
8432
8432
|
afterOptionInit(fieldKey: string, options: import("../../../es/shared/types").AnyObject[], payload?: import("../../../es/shared/types").AnyObject | undefined): void;
|
|
8433
8433
|
}>;
|
|
8434
8434
|
businessFormatter: import("..").FormBusinessFormatter;
|
|
8435
|
-
requestInstance: import("..").RequestInstance;
|
|
8435
|
+
requestInstance: import("..").FormRequestDefine.RequestInstance;
|
|
8436
8436
|
enterToNextWidget: boolean | ((fieldItem: import("..").FieldItem) => boolean | void);
|
|
8437
8437
|
lowCodeReactions: import("../../../es/shared/types").FormLowCodeReactions.Config[];
|
|
8438
8438
|
linebarAutoHidden: boolean;
|
|
@@ -8530,7 +8530,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
8530
8530
|
afterOptionInit(fieldKey: string, options: import("../../../es/shared/types").AnyObject[], payload?: import("../../../es/shared/types").AnyObject | undefined): void;
|
|
8531
8531
|
}>;
|
|
8532
8532
|
businessFormatter: import("..").FormBusinessFormatter;
|
|
8533
|
-
requestInstance: import("..").RequestInstance;
|
|
8533
|
+
requestInstance: import("..").FormRequestDefine.RequestInstance;
|
|
8534
8534
|
enterToNextWidget: boolean | ((fieldItem: import("..").FieldItem) => boolean | void);
|
|
8535
8535
|
lowCodeReactions: import("../../../es/shared/types").FormLowCodeReactions.Config[];
|
|
8536
8536
|
linebarAutoHidden: boolean;
|
|
@@ -8642,7 +8642,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
8642
8642
|
urlConfig?: {
|
|
8643
8643
|
[x: string]: any;
|
|
8644
8644
|
url: string;
|
|
8645
|
-
method?: import("..").
|
|
8645
|
+
method?: import("..").FormRequestDefine.RequestType | undefined;
|
|
8646
8646
|
nameKey?: string | undefined;
|
|
8647
8647
|
valueKey?: string | undefined;
|
|
8648
8648
|
showKey?: string | undefined;
|
|
@@ -10400,7 +10400,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
10400
10400
|
urlConfig?: {
|
|
10401
10401
|
[x: string]: any;
|
|
10402
10402
|
url: string;
|
|
10403
|
-
method?: import("..").
|
|
10403
|
+
method?: import("..").FormRequestDefine.RequestType | undefined;
|
|
10404
10404
|
nameKey?: string | undefined;
|
|
10405
10405
|
valueKey?: string | undefined;
|
|
10406
10406
|
showKey?: string | undefined;
|
|
@@ -12131,7 +12131,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
12131
12131
|
urlConfig?: {
|
|
12132
12132
|
[x: string]: any;
|
|
12133
12133
|
url: string;
|
|
12134
|
-
method?: import("..").
|
|
12134
|
+
method?: import("..").FormRequestDefine.RequestType | undefined;
|
|
12135
12135
|
nameKey?: string | undefined;
|
|
12136
12136
|
valueKey?: string | undefined;
|
|
12137
12137
|
showKey?: string | undefined;
|
|
@@ -13893,7 +13893,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
13893
13893
|
}>>;
|
|
13894
13894
|
};
|
|
13895
13895
|
requestInstance: {
|
|
13896
|
-
type: import("vue").PropType<import("..").RequestInstance>;
|
|
13896
|
+
type: import("vue").PropType<import("..").FormRequestDefine.RequestInstance>;
|
|
13897
13897
|
};
|
|
13898
13898
|
enterToNextWidget: {
|
|
13899
13899
|
type: import("vue").PropType<boolean | ((fieldItem: import("..").FieldItem) => boolean | void)>;
|
|
@@ -14038,7 +14038,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
14038
14038
|
}>>;
|
|
14039
14039
|
};
|
|
14040
14040
|
requestInstance: {
|
|
14041
|
-
type: import("vue").PropType<import("..").RequestInstance>;
|
|
14041
|
+
type: import("vue").PropType<import("..").FormRequestDefine.RequestInstance>;
|
|
14042
14042
|
};
|
|
14043
14043
|
enterToNextWidget: {
|
|
14044
14044
|
type: import("vue").PropType<boolean | ((fieldItem: import("..").FieldItem) => boolean | void)>;
|
|
@@ -14092,7 +14092,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
14092
14092
|
changeContextCollector: import("..").ContextCollector;
|
|
14093
14093
|
formUUID: string;
|
|
14094
14094
|
anchorBarRef: import("vue").Ref<{
|
|
14095
|
-
syncBarPosition: import("../../../es/shared/types").
|
|
14095
|
+
syncBarPosition: import("../../../es/shared/types").AnyFn<any[], any>;
|
|
14096
14096
|
} | undefined>;
|
|
14097
14097
|
currentAnchor: import("vue").WritableComputedRef<string>;
|
|
14098
14098
|
updateAnchorList: (field: import("@formily/core").GeneralField) => void;
|
|
@@ -14205,7 +14205,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
14205
14205
|
afterOptionInit(fieldKey: string, options: import("../../../es/shared/types").AnyObject[], payload?: import("../../../es/shared/types").AnyObject | undefined): void;
|
|
14206
14206
|
}>;
|
|
14207
14207
|
businessFormatter: import("..").FormBusinessFormatter;
|
|
14208
|
-
requestInstance: import("..").RequestInstance;
|
|
14208
|
+
requestInstance: import("..").FormRequestDefine.RequestInstance;
|
|
14209
14209
|
enterToNextWidget: boolean | ((fieldItem: import("..").FieldItem) => boolean | void);
|
|
14210
14210
|
lowCodeReactions: import("../../../es/shared/types").FormLowCodeReactions.Config[];
|
|
14211
14211
|
linebarAutoHidden: boolean;
|
|
@@ -14613,7 +14613,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
14613
14613
|
}>>;
|
|
14614
14614
|
};
|
|
14615
14615
|
requestInstance: {
|
|
14616
|
-
type: import("vue").PropType<import("..").RequestInstance>;
|
|
14616
|
+
type: import("vue").PropType<import("..").FormRequestDefine.RequestInstance>;
|
|
14617
14617
|
};
|
|
14618
14618
|
enterToNextWidget: {
|
|
14619
14619
|
type: import("vue").PropType<boolean | ((fieldItem: import("..").FieldItem) => boolean | void)>;
|
|
@@ -14748,7 +14748,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
14748
14748
|
afterOptionInit(fieldKey: string, options: import("../../../es/shared/types").AnyObject[], payload?: import("../../../es/shared/types").AnyObject | undefined): void;
|
|
14749
14749
|
}>;
|
|
14750
14750
|
businessFormatter: import("..").FormBusinessFormatter;
|
|
14751
|
-
requestInstance: import("..").RequestInstance;
|
|
14751
|
+
requestInstance: import("..").FormRequestDefine.RequestInstance;
|
|
14752
14752
|
enterToNextWidget: boolean | ((fieldItem: import("..").FieldItem) => boolean | void);
|
|
14753
14753
|
lowCodeReactions: import("../../../es/shared/types").FormLowCodeReactions.Config[];
|
|
14754
14754
|
linebarAutoHidden: boolean;
|
|
@@ -15017,7 +15017,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
15017
15017
|
afterOptionInit(fieldKey: string, options: import("../../../es/shared/types").AnyObject[], payload?: import("../../../es/shared/types").AnyObject | undefined): void;
|
|
15018
15018
|
}>;
|
|
15019
15019
|
businessFormatter: import("..").FormBusinessFormatter;
|
|
15020
|
-
requestInstance: import("..").RequestInstance;
|
|
15020
|
+
requestInstance: import("..").FormRequestDefine.RequestInstance;
|
|
15021
15021
|
enterToNextWidget: boolean | ((fieldItem: import("..").FieldItem) => boolean | void);
|
|
15022
15022
|
lowCodeReactions: import("../../../es/shared/types").FormLowCodeReactions.Config[];
|
|
15023
15023
|
linebarAutoHidden: boolean;
|