cnhis-design-vue 3.3.1-beta.0 → 3.3.1-beta.10
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/ai-chat/index.d.ts +10 -146
- package/es/components/ai-chat/src/Index.vue.d.ts +10 -146
- package/es/components/ai-chat/src/Index.vue2.js +1 -1
- package/es/components/ai-chat/src/components/ChatCard.js +1 -1
- package/es/components/ai-chat/src/components/ChatFooter.vue.d.ts +2 -55
- package/es/components/ai-chat/src/components/ChatFooter.vue2.js +1 -1
- package/es/components/ai-chat/src/utils/index.d.ts +0 -1
- package/es/components/ai-chat/src/utils/index.js +1 -1
- package/es/components/ai-chat/style/index.css +1 -1
- package/es/components/audio-sdk/index.d.ts +304 -2
- package/es/components/audio-sdk/index.js +1 -1
- package/es/components/audio-sdk/src/Index.vue.d.ts +304 -0
- package/es/components/audio-sdk/src/Index.vue.js +1 -0
- package/es/components/audio-sdk/src/Index.vue2.js +1 -0
- package/es/components/audio-sdk/src/audioSDK.d.ts +5 -8
- package/es/components/audio-sdk/src/audioSDK.js +1 -1
- package/es/components/audio-sdk/src/components/form.vue.d.ts +51 -0
- package/es/components/audio-sdk/src/components/form.vue.js +1 -0
- package/es/components/audio-sdk/src/components/form.vue2.js +1 -0
- package/es/components/audio-sdk/src/components/recording-modal.vue.d.ts +91 -0
- package/es/components/audio-sdk/src/components/recording-modal.vue.js +1 -0
- package/es/components/audio-sdk/src/components/recording-modal.vue2.js +1 -0
- package/es/components/audio-sdk/src/components/recording.vue.d.ts +43 -4
- package/es/components/audio-sdk/src/components/recording.vue2.js +1 -1
- package/es/components/audio-sdk/src/utils/index.d.ts +4 -0
- package/es/components/audio-sdk/src/utils/index.js +1 -0
- package/es/components/audio-sdk/src/utils/recordingModal.d.ts +7 -4
- package/es/components/audio-sdk/src/utils/recordingModal.js +1 -1
- package/es/components/audio-sdk/style/index.css +1 -1
- package/es/components/callback/src/components/render/popupMaps.d.ts +7 -1
- package/es/components/date-picker/src/DatePicker.vue2.js +1 -1
- package/es/components/editor/src/Editor.js +1 -1
- package/es/components/editor/style/index.css +0 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useOther.js +1 -1
- package/es/components/field-editor/index.d.ts +7 -1
- package/es/components/field-editor/src/FieldEditor.vue.d.ts +7 -1
- package/es/components/form-config/index.d.ts +38 -3
- package/es/components/form-config/src/FormConfig.vue.d.ts +39 -4
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +7 -1
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +17 -1
- package/es/components/form-config/src/components/FormConfigEventSetting.vue.d.ts +8 -1
- package/es/components/form-render/index.d.ts +7 -1
- package/es/components/form-render/index.js +1 -1
- package/es/components/form-render/src/FormRender.vue.d.ts +7 -1
- package/es/components/form-render/src/FormRender.vue2.js +1 -1
- package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +7 -1
- package/es/components/form-render/src/components/renderer/date.d.ts +2 -0
- package/es/components/form-render/src/components/renderer/date.js +1 -1
- package/es/components/form-render/src/components/renderer/formItem.d.ts +2 -0
- package/es/components/form-render/src/components/renderer/formItem.js +1 -1
- package/es/components/form-render/src/components/renderer/input.d.ts +5 -0
- package/es/components/form-render/src/components/renderer/input.js +1 -1
- package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue.d.ts +14 -1
- package/es/components/form-render/src/components/renderer/lineBar/index.d.ts +14 -1
- package/es/components/form-render/src/components/renderer/select.d.ts +5 -0
- package/es/components/form-render/src/components/renderer/select.js +1 -1
- package/es/components/form-render/src/components/tooltipMessage.vue.d.ts +12 -1
- package/es/components/form-render/src/components/tooltipMessage.vue2.js +1 -1
- package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -1
- package/es/components/form-render/src/hooks/useFieldNormalize.d.ts +4 -0
- package/es/components/form-render/src/types/fieldItem.d.ts +1 -0
- package/es/components/form-render/src/types/index.d.ts +2 -0
- package/es/components/form-render/src/utils/index.d.ts +1 -0
- package/es/components/form-render/src/utils/index.js +1 -1
- package/es/components/form-render/style/index.css +1 -1
- package/es/components/iho-table/src/IhoTable.vue2.js +1 -1
- package/es/components/iho-table/src/hooks/tapHooks/index.d.ts +1 -1
- package/es/components/iho-table/src/hooks/tapHooks/index.js +1 -1
- package/es/components/iho-table/src/hooks/tapHooks/useDataHooks.d.ts +3 -3
- package/es/components/iho-table/src/hooks/tapHooks/useDataHooks.js +1 -1
- package/es/components/iho-table/src/plugins/filterRenderPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/highLightSetPlugin.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useSelectOption.d.ts +7 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useSelectOption.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.d.ts +1 -2
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/checkRendererPlugin.js +1 -1
- package/es/components/iho-table/src/plugins/stickyFixedPlugin.js +1 -1
- package/es/components/iho-table/src/plugins/varialbleHeightPlugin.js +1 -1
- package/es/components/iho-table/src/plugins/verticalTablePlugin/src/utils.js +1 -1
- package/es/components/iho-table/src/types/index.d.ts +1 -0
- package/es/components/iho-table/src/types/pluginType.d.ts +2 -2
- package/es/components/index.css +1 -1
- package/es/components/index.d.ts +2 -1
- package/es/components/index.js +1 -1
- package/es/components/info-header/index.d.ts +24 -2
- package/es/components/info-header/src/InfoHeader.vue.d.ts +24 -2
- package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +2 -0
- package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +2 -0
- package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +9 -1
- package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +7 -1
- package/es/components/scale-view/index.d.ts +3 -2
- package/es/components/scale-view/src/ScaleView.vue.d.ts +3 -2
- package/es/components/scale-view/src/ScaleView.vue2.js +1 -1
- package/es/components/scale-view/src/hooks/scaleview-init.d.ts +3 -1
- package/es/components/scale-view/src/hooks/scaleview-init.js +1 -1
- package/es/components/scale-view/src/hooks/use-component.d.ts +1 -2189
- package/es/components/shortcut-setter/index.d.ts +8 -1
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +8 -1
- package/es/shared/components/ArrowIcon/ArrowIcon.vue.js +1 -0
- package/es/shared/components/ArrowIcon/index.d.ts +2 -0
- package/es/shared/components/ArrowIcon/index.js +1 -0
- package/es/shared/components/DateIcon/DateIcon.vue.js +1 -0
- package/es/shared/components/DateIcon/index.d.ts +2 -0
- package/es/shared/components/DateIcon/index.js +1 -0
- package/es/shared/package.json.js +1 -1
- package/package.json +2 -2
- package/es/components/ai-chat/src/api/index.d.ts +0 -6
- package/es/components/ai-chat/src/api/index.js +0 -1
- package/es/components/ai-chat/src/components/ChatAudio.vue.d.ts +0 -44
- package/es/components/ai-chat/src/components/ChatAudio.vue.js +0 -1
- package/es/components/ai-chat/src/components/ChatAudio.vue2.js +0 -1
- package/es/components/ai-chat/src/components/ChatMainInner.d.ts +0 -2
- package/es/components/ai-chat/src/components/ChatMainInner.js +0 -1
- package/es/components/ai-chat/src/components/ChatRight.vue.d.ts +0 -56
- package/es/components/ai-chat/src/components/ChatRight.vue.js +0 -1
- package/es/components/ai-chat/src/components/ChatRight.vue2.js +0 -1
- package/es/components/ai-chat/src/components/card/JsonCard.d.ts +0 -25
- package/es/components/ai-chat/src/components/card/JsonCard.js +0 -1
- package/es/components/ai-chat/src/components/card/SelectIcon.d.ts +0 -14
- package/es/components/ai-chat/src/components/card/SelectIcon.js +0 -1
- package/es/components/ai-chat/src/hooks/useProgram.d.ts +0 -6
- package/es/components/ai-chat/src/hooks/useProgram.js +0 -1
- package/es/components/ai-chat/src/hooks/useWebsocket.d.ts +0 -2
- package/es/components/ai-chat/src/hooks/useWebsocket.js +0 -1
- package/es/shared/assets/img/file-emr.png.js +0 -1
- package/es/shared/assets/img/file.png.js +0 -1
- package/es/shared/assets/img/use.png.js +0 -1
@@ -15,16 +15,17 @@ declare const AiChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
15
15
|
};
|
16
16
|
queryData: {
|
17
17
|
type: import("vue").PropType<import("./src/types").QueryData>;
|
18
|
+
reuired: boolean;
|
18
19
|
};
|
19
20
|
queryRecord: {
|
20
21
|
type: import("vue").PropType<import("./src/types").QueryRecord>;
|
22
|
+
reuired: boolean;
|
21
23
|
};
|
22
24
|
hideInput: {
|
23
25
|
type: BooleanConstructor;
|
24
26
|
};
|
25
27
|
uiStyle: {
|
26
28
|
type: StringConstructor;
|
27
|
-
default: string;
|
28
29
|
};
|
29
30
|
audioTimed: {
|
30
31
|
type: NumberConstructor;
|
@@ -48,16 +49,6 @@ declare const AiChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
48
49
|
appId: {
|
49
50
|
type: StringConstructor;
|
50
51
|
};
|
51
|
-
orgId: {
|
52
|
-
type: StringConstructor;
|
53
|
-
};
|
54
|
-
userId: {
|
55
|
-
type: StringConstructor;
|
56
|
-
};
|
57
|
-
immediatelyRecording: {
|
58
|
-
type: BooleanConstructor;
|
59
|
-
default: boolean;
|
60
|
-
};
|
61
52
|
}, {
|
62
53
|
cssVars: import("vue").ComputedRef<import("../../shared/types").AnyObject>;
|
63
54
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
@@ -76,16 +67,17 @@ declare const AiChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
76
67
|
};
|
77
68
|
queryData: {
|
78
69
|
type: import("vue").PropType<import("./src/types").QueryData>;
|
70
|
+
reuired: boolean;
|
79
71
|
};
|
80
72
|
queryRecord: {
|
81
73
|
type: import("vue").PropType<import("./src/types").QueryRecord>;
|
74
|
+
reuired: boolean;
|
82
75
|
};
|
83
76
|
hideInput: {
|
84
77
|
type: BooleanConstructor;
|
85
78
|
};
|
86
79
|
uiStyle: {
|
87
80
|
type: StringConstructor;
|
88
|
-
default: string;
|
89
81
|
};
|
90
82
|
audioTimed: {
|
91
83
|
type: NumberConstructor;
|
@@ -109,30 +101,15 @@ declare const AiChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
109
101
|
appId: {
|
110
102
|
type: StringConstructor;
|
111
103
|
};
|
112
|
-
orgId: {
|
113
|
-
type: StringConstructor;
|
114
|
-
};
|
115
|
-
userId: {
|
116
|
-
type: StringConstructor;
|
117
|
-
};
|
118
|
-
immediatelyRecording: {
|
119
|
-
type: BooleanConstructor;
|
120
|
-
default: boolean;
|
121
|
-
};
|
122
104
|
}>> & {
|
123
105
|
"onButton-click"?: ((...args: any[]) => any) | undefined;
|
124
106
|
}>>;
|
107
|
+
axiosInstance: import("axios").AxiosInstance;
|
125
108
|
emit: (event: "button-click", ...args: any[]) => void;
|
126
|
-
showSmallStyle: import("vue").ComputedRef<boolean>;
|
127
109
|
state: import("../../shared/types").AnyObject;
|
110
|
+
NMessageProvider: any;
|
128
111
|
ChatMain: import("vue").DefineComponent<{}, () => JSX.Element[], {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
129
112
|
ChatFooter: import("vue").DefineComponent<{}, {
|
130
|
-
innerDefaultShortcutList: {
|
131
|
-
key: string;
|
132
|
-
value: string;
|
133
|
-
}[];
|
134
|
-
programMethod: (bpmnProcessId: string, params: import("../../shared/types").AnyObject) => Promise<any>;
|
135
|
-
MedicalOrderId: string;
|
136
113
|
cssVars: import("vue").ComputedRef<import("../../shared/types").AnyObject>;
|
137
114
|
audioSdk: import("..").CAudioSDK;
|
138
115
|
emit: (event: string, ...args: any[]) => void;
|
@@ -141,8 +118,6 @@ declare const AiChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
141
118
|
isSmall: any;
|
142
119
|
audioTimed: any;
|
143
120
|
commandList: any;
|
144
|
-
isInner: any;
|
145
|
-
patientInfo: any;
|
146
121
|
inputRef: import("vue").Ref<any>;
|
147
122
|
showPopover: import("vue").Ref<boolean>;
|
148
123
|
breadcrumb: import("vue").Ref<{
|
@@ -162,16 +137,13 @@ declare const AiChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
162
137
|
showPrompt: import("vue").Ref<boolean>;
|
163
138
|
currentShortcutId: import("vue").Ref<string>;
|
164
139
|
showPatient: import("vue").Ref<boolean>;
|
165
|
-
|
166
|
-
placeholder: import("vue").ComputedRef<"请向我提问,Shift+Enter换行" | "请向我提问或输入\"/\"查看指令" | "请向我提问或输入\"/\"查看指令,Shift+Enter换行">;
|
140
|
+
placeholder: import("vue").ComputedRef<"请向我提问或输入\"/\"查看指令" | "请向我提问或输入\"/\"查看指令,Shift+Enter换行">;
|
167
141
|
btnDisabled: import("vue").ComputedRef<any>;
|
168
142
|
showMagicWand: import("vue").ComputedRef<boolean>;
|
169
143
|
patient: import("vue").ComputedRef<string>;
|
170
|
-
currentShortcutList: import("vue").ComputedRef<any>;
|
171
|
-
isAllDisabled: import("vue").ComputedRef<any>;
|
172
144
|
recorderStart: () => Promise<void>;
|
173
145
|
getShortcutName: (item: string | import("../../shared/types").AnyObject) => any;
|
174
|
-
handleShortcut: (item: string | import("../../shared/types").AnyObject) =>
|
146
|
+
handleShortcut: (item: string | import("../../shared/types").AnyObject) => void;
|
175
147
|
resetCurrentCommand: () => void;
|
176
148
|
handleKeyDown: (event: KeyboardEvent) => void;
|
177
149
|
isWrap: (event: KeyboardEvent) => boolean;
|
@@ -291,103 +263,6 @@ declare const AiChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
291
263
|
}, {
|
292
264
|
show: boolean;
|
293
265
|
}>;
|
294
|
-
ChatAudio: import("vue").DefineComponent<{
|
295
|
-
show: {
|
296
|
-
type: BooleanConstructor;
|
297
|
-
};
|
298
|
-
}, {
|
299
|
-
audioSdk: import("..").CAudioSDK;
|
300
|
-
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
301
|
-
show: {
|
302
|
-
type: BooleanConstructor;
|
303
|
-
};
|
304
|
-
}>> & {
|
305
|
-
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
306
|
-
}>>;
|
307
|
-
emit: (event: "update:show", ...args: any[]) => void;
|
308
|
-
state: any;
|
309
|
-
vaa07: any;
|
310
|
-
immediatelyRecording: any;
|
311
|
-
time: import("vue").Ref<number>;
|
312
|
-
endType: string;
|
313
|
-
pause: import("@vueuse/shared").Fn;
|
314
|
-
resume: import("@vueuse/shared").Fn;
|
315
|
-
isActive: import("vue").Ref<boolean>;
|
316
|
-
tip: import("vue").ComputedRef<"正在录音中..." | "录音已暂停">;
|
317
|
-
formattedTime: import("vue").ComputedRef<string>;
|
318
|
-
checkEnvironment: () => boolean;
|
319
|
-
start: () => Promise<void>;
|
320
|
-
handlePause: () => void;
|
321
|
-
handlePlay: () => void;
|
322
|
-
handleEnd: (trigger?: string | undefined) => Promise<void>;
|
323
|
-
NSpace: any;
|
324
|
-
NButton: any;
|
325
|
-
NIcon: any;
|
326
|
-
StopCircleOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
327
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:show"[], "update:show", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
328
|
-
show: {
|
329
|
-
type: BooleanConstructor;
|
330
|
-
};
|
331
|
-
}>> & {
|
332
|
-
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
333
|
-
}, {
|
334
|
-
show: boolean;
|
335
|
-
}>;
|
336
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
337
|
-
ChatMainInner: import("vue").DefineComponent<{}, () => JSX.Element[], {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
338
|
-
ChatRight: import("vue").DefineComponent<{}, {
|
339
|
-
medicalLabel: {
|
340
|
-
key: string;
|
341
|
-
title: string;
|
342
|
-
}[];
|
343
|
-
state: any;
|
344
|
-
patientInfo: any;
|
345
|
-
toolbarConfig: {
|
346
|
-
toolbarKeys: never[];
|
347
|
-
};
|
348
|
-
content: import("vue").Ref<string>;
|
349
|
-
key: import("vue").Ref<string>;
|
350
|
-
handleSave: () => Promise<void>;
|
351
|
-
createMedicalRecord: () => void;
|
352
|
-
extractContentByTitle: () => import("../../shared/types").AnyObject;
|
353
|
-
NIcon: any;
|
354
|
-
NSpace: any;
|
355
|
-
NButton: any;
|
356
|
-
Editor: SFCWithInstall<import("vue").DefineComponent<{
|
357
|
-
editorConfig: {
|
358
|
-
type: ObjectConstructor;
|
359
|
-
};
|
360
|
-
toolbarConfig: {
|
361
|
-
type: ObjectConstructor;
|
362
|
-
};
|
363
|
-
uploadImgUrl: {
|
364
|
-
type: StringConstructor;
|
365
|
-
};
|
366
|
-
isDisabled: {
|
367
|
-
type: BooleanConstructor;
|
368
|
-
default: boolean;
|
369
|
-
};
|
370
|
-
}, {
|
371
|
-
editorRef: import("vue").ShallowRef<any>;
|
372
|
-
renderVN: () => JSX.Element;
|
373
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, never[], never, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
374
|
-
editorConfig: {
|
375
|
-
type: ObjectConstructor;
|
376
|
-
};
|
377
|
-
toolbarConfig: {
|
378
|
-
type: ObjectConstructor;
|
379
|
-
};
|
380
|
-
uploadImgUrl: {
|
381
|
-
type: StringConstructor;
|
382
|
-
};
|
383
|
-
isDisabled: {
|
384
|
-
type: BooleanConstructor;
|
385
|
-
default: boolean;
|
386
|
-
};
|
387
|
-
}>> & {}, {
|
388
|
-
isDisabled: boolean;
|
389
|
-
}>>;
|
390
|
-
CloseOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
391
266
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
392
267
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "button-click"[], "button-click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
393
268
|
token: {
|
@@ -405,16 +280,17 @@ declare const AiChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
405
280
|
};
|
406
281
|
queryData: {
|
407
282
|
type: import("vue").PropType<import("./src/types").QueryData>;
|
283
|
+
reuired: boolean;
|
408
284
|
};
|
409
285
|
queryRecord: {
|
410
286
|
type: import("vue").PropType<import("./src/types").QueryRecord>;
|
287
|
+
reuired: boolean;
|
411
288
|
};
|
412
289
|
hideInput: {
|
413
290
|
type: BooleanConstructor;
|
414
291
|
};
|
415
292
|
uiStyle: {
|
416
293
|
type: StringConstructor;
|
417
|
-
default: string;
|
418
294
|
};
|
419
295
|
audioTimed: {
|
420
296
|
type: NumberConstructor;
|
@@ -438,22 +314,10 @@ declare const AiChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
438
314
|
appId: {
|
439
315
|
type: StringConstructor;
|
440
316
|
};
|
441
|
-
orgId: {
|
442
|
-
type: StringConstructor;
|
443
|
-
};
|
444
|
-
userId: {
|
445
|
-
type: StringConstructor;
|
446
|
-
};
|
447
|
-
immediatelyRecording: {
|
448
|
-
type: BooleanConstructor;
|
449
|
-
default: boolean;
|
450
|
-
};
|
451
317
|
}>> & {
|
452
318
|
"onButton-click"?: ((...args: any[]) => any) | undefined;
|
453
319
|
}, {
|
454
320
|
hideInput: boolean;
|
455
|
-
uiStyle: string;
|
456
321
|
audioTimed: number;
|
457
|
-
immediatelyRecording: boolean;
|
458
322
|
}>>;
|
459
323
|
export default AiChat;
|
@@ -17,16 +17,17 @@ declare const _default: import("vue").DefineComponent<{
|
|
17
17
|
};
|
18
18
|
queryData: {
|
19
19
|
type: PropType<QueryData>;
|
20
|
+
reuired: boolean;
|
20
21
|
};
|
21
22
|
queryRecord: {
|
22
23
|
type: PropType<QueryRecord>;
|
24
|
+
reuired: boolean;
|
23
25
|
};
|
24
26
|
hideInput: {
|
25
27
|
type: BooleanConstructor;
|
26
28
|
};
|
27
29
|
uiStyle: {
|
28
30
|
type: StringConstructor;
|
29
|
-
default: string;
|
30
31
|
};
|
31
32
|
audioTimed: {
|
32
33
|
type: NumberConstructor;
|
@@ -50,16 +51,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
50
51
|
appId: {
|
51
52
|
type: StringConstructor;
|
52
53
|
};
|
53
|
-
orgId: {
|
54
|
-
type: StringConstructor;
|
55
|
-
};
|
56
|
-
userId: {
|
57
|
-
type: StringConstructor;
|
58
|
-
};
|
59
|
-
immediatelyRecording: {
|
60
|
-
type: BooleanConstructor;
|
61
|
-
default: boolean;
|
62
|
-
};
|
63
54
|
}, {
|
64
55
|
cssVars: import("vue").ComputedRef<AnyObject>;
|
65
56
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
@@ -78,16 +69,17 @@ declare const _default: import("vue").DefineComponent<{
|
|
78
69
|
};
|
79
70
|
queryData: {
|
80
71
|
type: PropType<QueryData>;
|
72
|
+
reuired: boolean;
|
81
73
|
};
|
82
74
|
queryRecord: {
|
83
75
|
type: PropType<QueryRecord>;
|
76
|
+
reuired: boolean;
|
84
77
|
};
|
85
78
|
hideInput: {
|
86
79
|
type: BooleanConstructor;
|
87
80
|
};
|
88
81
|
uiStyle: {
|
89
82
|
type: StringConstructor;
|
90
|
-
default: string;
|
91
83
|
};
|
92
84
|
audioTimed: {
|
93
85
|
type: NumberConstructor;
|
@@ -111,30 +103,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
111
103
|
appId: {
|
112
104
|
type: StringConstructor;
|
113
105
|
};
|
114
|
-
orgId: {
|
115
|
-
type: StringConstructor;
|
116
|
-
};
|
117
|
-
userId: {
|
118
|
-
type: StringConstructor;
|
119
|
-
};
|
120
|
-
immediatelyRecording: {
|
121
|
-
type: BooleanConstructor;
|
122
|
-
default: boolean;
|
123
|
-
};
|
124
106
|
}>> & {
|
125
107
|
"onButton-click"?: ((...args: any[]) => any) | undefined;
|
126
108
|
}>>;
|
109
|
+
axiosInstance: import("axios").AxiosInstance;
|
127
110
|
emit: (event: "button-click", ...args: any[]) => void;
|
128
|
-
showSmallStyle: import("vue").ComputedRef<boolean>;
|
129
111
|
state: AnyObject;
|
112
|
+
NMessageProvider: any;
|
130
113
|
ChatMain: import("vue").DefineComponent<{}, () => JSX.Element[], {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
131
114
|
ChatFooter: import("vue").DefineComponent<{}, {
|
132
|
-
innerDefaultShortcutList: {
|
133
|
-
key: string;
|
134
|
-
value: string;
|
135
|
-
}[];
|
136
|
-
programMethod: (bpmnProcessId: string, params: AnyObject) => Promise<any>;
|
137
|
-
MedicalOrderId: string;
|
138
115
|
cssVars: import("vue").ComputedRef<AnyObject>;
|
139
116
|
audioSdk: import("../..").CAudioSDK;
|
140
117
|
emit: (event: string, ...args: any[]) => void;
|
@@ -143,8 +120,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
143
120
|
isSmall: any;
|
144
121
|
audioTimed: any;
|
145
122
|
commandList: any;
|
146
|
-
isInner: any;
|
147
|
-
patientInfo: any;
|
148
123
|
inputRef: import("vue").Ref<any>;
|
149
124
|
showPopover: import("vue").Ref<boolean>;
|
150
125
|
breadcrumb: import("vue").Ref<{
|
@@ -164,16 +139,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
164
139
|
showPrompt: import("vue").Ref<boolean>;
|
165
140
|
currentShortcutId: import("vue").Ref<string>;
|
166
141
|
showPatient: import("vue").Ref<boolean>;
|
167
|
-
|
168
|
-
placeholder: import("vue").ComputedRef<"请向我提问,Shift+Enter换行" | "请向我提问或输入\"/\"查看指令" | "请向我提问或输入\"/\"查看指令,Shift+Enter换行">;
|
142
|
+
placeholder: import("vue").ComputedRef<"请向我提问或输入\"/\"查看指令" | "请向我提问或输入\"/\"查看指令,Shift+Enter换行">;
|
169
143
|
btnDisabled: import("vue").ComputedRef<any>;
|
170
144
|
showMagicWand: import("vue").ComputedRef<boolean>;
|
171
145
|
patient: import("vue").ComputedRef<string>;
|
172
|
-
currentShortcutList: import("vue").ComputedRef<any>;
|
173
|
-
isAllDisabled: import("vue").ComputedRef<any>;
|
174
146
|
recorderStart: () => Promise<void>;
|
175
147
|
getShortcutName: (item: string | AnyObject) => any;
|
176
|
-
handleShortcut: (item: string | AnyObject) =>
|
148
|
+
handleShortcut: (item: string | AnyObject) => void;
|
177
149
|
resetCurrentCommand: () => void;
|
178
150
|
handleKeyDown: (event: KeyboardEvent) => void;
|
179
151
|
isWrap: (event: KeyboardEvent) => boolean;
|
@@ -293,103 +265,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
293
265
|
}, {
|
294
266
|
show: boolean;
|
295
267
|
}>;
|
296
|
-
ChatAudio: import("vue").DefineComponent<{
|
297
|
-
show: {
|
298
|
-
type: BooleanConstructor;
|
299
|
-
};
|
300
|
-
}, {
|
301
|
-
audioSdk: import("../..").CAudioSDK;
|
302
|
-
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
303
|
-
show: {
|
304
|
-
type: BooleanConstructor;
|
305
|
-
};
|
306
|
-
}>> & {
|
307
|
-
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
308
|
-
}>>;
|
309
|
-
emit: (event: "update:show", ...args: any[]) => void;
|
310
|
-
state: any;
|
311
|
-
vaa07: any;
|
312
|
-
immediatelyRecording: any;
|
313
|
-
time: import("vue").Ref<number>;
|
314
|
-
endType: string;
|
315
|
-
pause: import("@vueuse/shared").Fn;
|
316
|
-
resume: import("@vueuse/shared").Fn;
|
317
|
-
isActive: import("vue").Ref<boolean>;
|
318
|
-
tip: import("vue").ComputedRef<"正在录音中..." | "录音已暂停">;
|
319
|
-
formattedTime: import("vue").ComputedRef<string>;
|
320
|
-
checkEnvironment: () => boolean;
|
321
|
-
start: () => Promise<void>;
|
322
|
-
handlePause: () => void;
|
323
|
-
handlePlay: () => void;
|
324
|
-
handleEnd: (trigger?: string | undefined) => Promise<void>;
|
325
|
-
NSpace: any;
|
326
|
-
NButton: any;
|
327
|
-
NIcon: any;
|
328
|
-
StopCircleOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
329
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:show"[], "update:show", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
330
|
-
show: {
|
331
|
-
type: BooleanConstructor;
|
332
|
-
};
|
333
|
-
}>> & {
|
334
|
-
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
335
|
-
}, {
|
336
|
-
show: boolean;
|
337
|
-
}>;
|
338
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
339
|
-
ChatMainInner: import("vue").DefineComponent<{}, () => JSX.Element[], {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
340
|
-
ChatRight: import("vue").DefineComponent<{}, {
|
341
|
-
medicalLabel: {
|
342
|
-
key: string;
|
343
|
-
title: string;
|
344
|
-
}[];
|
345
|
-
state: any;
|
346
|
-
patientInfo: any;
|
347
|
-
toolbarConfig: {
|
348
|
-
toolbarKeys: never[];
|
349
|
-
};
|
350
|
-
content: import("vue").Ref<string>;
|
351
|
-
key: import("vue").Ref<string>;
|
352
|
-
handleSave: () => Promise<void>;
|
353
|
-
createMedicalRecord: () => void;
|
354
|
-
extractContentByTitle: () => AnyObject;
|
355
|
-
NIcon: any;
|
356
|
-
NSpace: any;
|
357
|
-
NButton: any;
|
358
|
-
Editor: import("../../../shared/types").SFCWithInstall<import("vue").DefineComponent<{
|
359
|
-
editorConfig: {
|
360
|
-
type: ObjectConstructor;
|
361
|
-
};
|
362
|
-
toolbarConfig: {
|
363
|
-
type: ObjectConstructor;
|
364
|
-
};
|
365
|
-
uploadImgUrl: {
|
366
|
-
type: StringConstructor;
|
367
|
-
};
|
368
|
-
isDisabled: {
|
369
|
-
type: BooleanConstructor;
|
370
|
-
default: boolean;
|
371
|
-
};
|
372
|
-
}, {
|
373
|
-
editorRef: import("vue").ShallowRef<any>;
|
374
|
-
renderVN: () => JSX.Element;
|
375
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, never[], never, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
376
|
-
editorConfig: {
|
377
|
-
type: ObjectConstructor;
|
378
|
-
};
|
379
|
-
toolbarConfig: {
|
380
|
-
type: ObjectConstructor;
|
381
|
-
};
|
382
|
-
uploadImgUrl: {
|
383
|
-
type: StringConstructor;
|
384
|
-
};
|
385
|
-
isDisabled: {
|
386
|
-
type: BooleanConstructor;
|
387
|
-
default: boolean;
|
388
|
-
};
|
389
|
-
}>> & {}, {
|
390
|
-
isDisabled: boolean;
|
391
|
-
}>>;
|
392
|
-
CloseOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
393
268
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
394
269
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "button-click"[], "button-click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
395
270
|
token: {
|
@@ -407,16 +282,17 @@ declare const _default: import("vue").DefineComponent<{
|
|
407
282
|
};
|
408
283
|
queryData: {
|
409
284
|
type: PropType<QueryData>;
|
285
|
+
reuired: boolean;
|
410
286
|
};
|
411
287
|
queryRecord: {
|
412
288
|
type: PropType<QueryRecord>;
|
289
|
+
reuired: boolean;
|
413
290
|
};
|
414
291
|
hideInput: {
|
415
292
|
type: BooleanConstructor;
|
416
293
|
};
|
417
294
|
uiStyle: {
|
418
295
|
type: StringConstructor;
|
419
|
-
default: string;
|
420
296
|
};
|
421
297
|
audioTimed: {
|
422
298
|
type: NumberConstructor;
|
@@ -440,22 +316,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
440
316
|
appId: {
|
441
317
|
type: StringConstructor;
|
442
318
|
};
|
443
|
-
orgId: {
|
444
|
-
type: StringConstructor;
|
445
|
-
};
|
446
|
-
userId: {
|
447
|
-
type: StringConstructor;
|
448
|
-
};
|
449
|
-
immediatelyRecording: {
|
450
|
-
type: BooleanConstructor;
|
451
|
-
default: boolean;
|
452
|
-
};
|
453
319
|
}>> & {
|
454
320
|
"onButton-click"?: ((...args: any[]) => any) | undefined;
|
455
321
|
}, {
|
456
322
|
hideInput: boolean;
|
457
|
-
uiStyle: string;
|
458
323
|
audioTimed: number;
|
459
|
-
immediatelyRecording: boolean;
|
460
324
|
}>;
|
461
325
|
export default _default;
|
@@ -1 +1 @@
|
|
1
|
-
import{defineComponent as e,
|
1
|
+
import{defineComponent as e,reactive as t,provide as o,toRefs as r,computed as s,openBlock as a,createElementBlock as i,normalizeClass as n,normalizeStyle as u,unref as l,createVNode as p,withCtx as d,createBlock as m,createCommentVNode as c}from"vue";import{NMessageProvider as h}from"naive-ui";import y from"./components/ChatMain.js";import f from"./components/ChatFooter.vue.js";import{useTheme as v}from"../../../shared/hooks/useTheme.js";import"@vueuse/core";import"date-fns";import"lodash-es";import"@vue/shared";import{uuidGenerator as S}from"../../../shared/utils/index.js";import"@vueuse/shared";import"../../../shared/hooks/selectHooks/useSearchContent.js";import"@vicons/ionicons5";import"../../../shared/hooks/useScrollLoading.js";import{InjectionAIChat as x,InjectionAIChatEmits as g}from"./types/index.js";import j from"axios";const k=["id"];var P=e({__name:"Index",props:{token:{type:String,required:!0},userAvatar:{type:String},defaultShortcutList:{type:Array},shortcutList:{type:Array},queryData:{type:Function,reuired:!0},queryRecord:{type:Function,reuired:!0},hideInput:{type:Boolean},uiStyle:{type:String},audioTimed:{type:Number,default:10},commandList:{type:Array},queryPrompt:{type:Function},patientInfo:{type:Object},appId:{type:String}},emits:["button-click"],setup(e,{expose:P,emit:I}){const b=e,A=v(),C=j.create({headers:{Authorization:"bearer "+b.token}});C.interceptors.response.use((e=>{var t;return(null==(t=e.data)?void 0:t.success)?e.data:{success:!1,data:[]}}));const F=t({id:"ai-chat-"+S(),loading:!1,sending:!1,sendContent:"",selectedCommand:null,selectedPrompt:null,externalData:null,selectedPatient:null,selectedPatientLabel:"",selectedPatientForm:null,showPatient:!1});return o(x,{...r(b),state:F,isSmall:s((()=>"small"===b.uiStyle)),axiosInstance:C}),o(g,I),P({pushMessage:e=>{F.externalData=e},updatePatientInfo:e=>{F.selectedPatient=e}}),(t,o)=>(a(),i("div",{id:F.id,class:n(["ai-chat","small"===e.uiStyle?"ai-chat--small":""]),style:u(l(A))},[p(l(h),null,{default:d((()=>[p(l(y)),e.hideInput?c("v-if",!0):(a(),m(f,{key:0}))])),_:1})],14,k))}});export{P as default};
|
@@ -1 +1 @@
|
|
1
|
-
import{defineComponent as e,inject as t,ref as a,reactive as l,computed as n,watch as o,createVNode as i}from"vue";import{NForm as s,NFormItem as r,NInput as u,NIcon as d,NButton as c}from"naive-ui";import{InjectionAIChat as v}from"../types/index.js";import"../../../index.js";import{cloneDeep as p,isArray as m,omit as f}from"lodash-es";import{isValidJSON as g}from"../utils/index.js";import{ChevronDown as h,ChevronForward as b}from"@vicons/ionicons5";import{useTheme as y}from"../../../../shared/hooks/useTheme.js";import"@vueuse/core";import"date-fns";import"@vue/shared";import"../../../../shared/utils/index.js";import"@vueuse/shared";import"../../../../shared/hooks/selectHooks/useSearchContent.js";import"../../../../shared/hooks/useScrollLoading.js";import
|
1
|
+
import{defineComponent as e,inject as t,ref as a,reactive as l,computed as n,watch as o,createVNode as i}from"vue";import{NForm as s,NFormItem as r,NInput as u,NIcon as d,NButton as c}from"naive-ui";import{InjectionAIChat as v}from"../types/index.js";import"../../../index.js";import{cloneDeep as p,isArray as m,omit as f}from"lodash-es";import{isValidJSON as g}from"../utils/index.js";import{ChevronDown as h,ChevronForward as b}from"@vicons/ionicons5";import{useTheme as y}from"../../../../shared/hooks/useTheme.js";import"@vueuse/core";import"date-fns";import"@vue/shared";import"../../../../shared/utils/index.js";import"@vueuse/shared";import"../../../../shared/hooks/selectHooks/useSearchContent.js";import"../../../../shared/hooks/useScrollLoading.js";import E from"../../../form-render/index.js";import I from"../../../card-render/index.js";var k=e({name:"ChatCard",inheritAttrs:!1,props:{msgItem:{type:Object,default:()=>({})},selectParams:{type:Object},configs:{type:Object},msgId:{type:String}},emits:["button-click"],setup(e,{attrs:k,slots:x,emit:C}){const _={TEXT:"INPUT",NUMBER:"INPUT_NUMBER",DATETIME:"DATE",MULTI_SELECT:"REMOTE_SEARCH",SELECT:"REMOTE_SEARCH"},T=y(),{patientInfo:P,state:w,axiosInstance:O,isSmall:S,appId:j}=t(v),M=a([]),R=a(),L=a(),N=l({vaa05:""}),F=a(),q=n((()=>{var t,a;return!!(null==(a=null==(t=e.msgItem)?void 0:t.content)?void 0:a.body)})),A=e.msgItem.content,H={},B=l(p(A.data||{})),K={beforeRequest(e,t,a){var l,n;if(null==t?void 0:t.params){const{items:e=[]}=A.body||{},a=null==(n=(l=R.value).getFormValues)?void 0:n.call(l);Object.keys(t.params).forEach((l=>{const n=e.find((e=>e.code===l));"vaa05"===l?t.params.vaa05=L.value.selectedPatient.vaa01:Reflect.has(a,l)?t.params[l]=a[l]:n&&(t.params[l]=n.value)}))}t&&Reflect.has(t,"configs")&&(t.configs=L.value.selectedPatient)}};function U(e){const{eventName:t,data:a}=e;t&&C("button-click",{buttonInfo:a,isBI:!0})}function D(e){B[e.button.id+"Disabled"]="1",C("button-click",{buttonInfo:{...f(e.button,["props"]),data:e.data}})}if(q.value){const t=A.body.items||[],a=t.some((e=>"vaa05"===e.code));M.value=t.filter((e=>e.showFlag)).map((t=>{var l,n,o;if("vaa05"===t.code&&!S.value)return L.value={...t},t._value?N.vaa05=t._value:(null==(l=t.options)?void 0:l.length)&&t.value&&(N.vaa05=null==(n=t.options.find((e=>e.value===t.value)))?void 0:n.label,L.value.selectedPatient=e.configs),null;const i={html_type:_[t.type]||t.type,val_key:t.code,name:t.name,elem_width:12,default_val:t.value,lazyRequest:!0,requestCache:!0,urlConfig:{nameKey:null!=(o=t.labelField)?o:"label"},option:[],is_null:t.required?"0":"1",is_edit:e.msgItem.disabled?"0":"1",componentProps:{},multi_select:"MULTI_SELECT"===t.type?"0":"1"};if("DATETIME"===t.type&&(i.date_format="yyyy-MM-dd HH:mm:ss"),"REMOTE_SEARCH"===i.html_type){if(i.componentProps={fallbackOption:!1},i.option=t.options||[],i.default_val=null,t.value&&m(t.options)&&t.options.length>0){t.options.find((e=>(null==e?void 0:e.value)===t.value))&&(i.default_val=t.value)}if(Object.assign(i.urlConfig,{url:"/flow/api/instruction/parameter/getOptionsValues",method:"post",params:{...e.selectParams,code:t.code,source:S.value?"inner":"global",...S.value?{appId:j.value}:{}},dependKey:[]}),a&&(i.urlConfig.params.configs=P.value.info||w.selectedPatient),t.dependencies){const e=t.dependencies.split(",");i.urlConfig.dependKey=e,i.urlConfig.params.params={},e.forEach((e=>{i.urlConfig.params.params[e]=""}))}}return i})).filter((e=>!!e))}function J(){var t;if(!L.value)return null;function a(){e.msgItem.disabled||(w.showPatient=!0)}return i(s,{class:"form-render",ref:F,"require-mark-placement":"left",disabled:e.msgItem.disabled,model:N,rules:{vaa05:{required:L.value.required,message:L.value.name+((null==(t=window.getLanguageByCode)?void 0:t.call(window,"10010.1.146"))||"为必填"),trigger:["input"]}}},{default:()=>[i(r,{label:L.value.name,path:"vaa05",class:"form-render__formItem",style:"--n-feedback-height: 16px; --n-feedback-padding: 0px; --n-feedback-font-size: 12px"},{default:()=>{var e;return[i(u,{style:"--n-text-color-disabled: #000; --n-placeholder-color-disabled: #000;--n-padding-left: 8px; --n-padding-right: 8px",readonly:!0,value:N.vaa05,placeholder:(null==(e=window.getLanguageByCode)?void 0:e.call(window,"10010.1.147"))||"请选择",onClick:a},{suffix:()=>i(d,{color:"#c2c2c2",component:h},null)})]}})]})}async function V(t,a){var l,n;try{const o=a||R.value.getFormValues();await(null==(l=R.value)?void 0:l.validate()),A.body.items.forEach((e=>{var t;"vaa05"===e.code?(e._value=w.selectedPatientLabel,e.value=L.value.selectedPatient.vaa01||e.value):o[e.code]&&(e.value=o[e.code]),e.showFlag||(o[e.code]=e.value),(null==(t=H[e.code])?void 0:t[0])&&(e.options=H[e.code])})),w.loading=!0,C("button-click",{values:o,buttonInfo:t,patient:(null==(n=L.value)?void 0:n.selectedPatient)||e.configs,isForm:!0})}catch(e){w.loading=!1}}function z(e){const{fieldInstance:t,context:a,value:l,fieldKey:n}=e;"REMOTE_SEARCH"===t.componentType&&(null==l?void 0:l.length)&&(H[n]=[null==a?void 0:a.currentOption])}function X(){C("button-click",{showMore:!0})}function G(){var e;if("1834043761964638208"!==(null==(e=A.settings)?void 0:e.id)||!A.data)return null;const t=JSON.parse(A.settings.setting),a=e=>{var t;let l="";for(let n=0;n<e.length;n++){const o=e[n];if(o.setting.scopeKey){l=o.setting.scopeKey;break}if((null==(t=o.childrens)?void 0:t.length)&&(l=a(o.childrens),l))break}return l},l=a(t.templates);return!l||!g(A.data[l])||JSON.parse(A.data[l]).length<=5?null:(g(B[l])&&(B[l]=JSON.parse(B[l]).slice(0,5)),i(c,{block:!0,text:!0,"icon-placement":"right",color:T.value["--c-primary-color"],style:"margin-top: 10px",onClick:X},{icon:()=>i(d,{component:b},null),default:()=>"查看更多"}))}return o((()=>w.showPatient),(t=>{!e.msgItem.disabled&&q.value&&!t&&w.selectedPatientLabel&&L.value&&(N.vaa05=w.selectedPatientLabel,L.value.selectedPatient={...w.selectedPatientForm})})),()=>{var t;return i("div",{class:"card"},[q.value?[i("p",null,[A.title||A.header.title]),i("div",{class:"form-box"},[[J(),i(E,{"request-instance":{get:O.get,post:O.post},"life-cycle":K,column:12,ref:R,"field-list":M.value,onFormChange:z},null)]]),A.footer.buttons.map((t=>function(t){const a={width:"100%","--n-height":"36px",fontSize:"15px",marginTop:"10px"},l=q.value?{...a,marginTop:"0"}:a;return i(c,{id:e.msgId,style:l,secondary:!0,class:"gradient",disabled:e.msgItem.disabled,onClick:async function(){var e;if(q.value){if(!R.value)return;try{L.value?null==(e=F.value)||e.validate((async e=>{var a,l;if(!e){const e=null==(l=(a=R.value).getFormValues)?void 0:l.call(a);Object.assign(e,{vaa05:L.value.selectedPatient.vaa01}),await V(t,e)}})):await V(t)}catch(e){}}else C("button-click")}},{default:()=>[q.value?null==t?void 0:t.text:A.buttonName]})}(t)))]:[i(I,{config:g(null==(t=A.settings)?void 0:t.setting)?JSON.parse(A.settings.setting):null,data:B,"onModule-click":U,"onButton-click":D},null),G()]])}}});export{k as default};
|