cnhis-design-vue 3.2.19-beta.5 → 3.2.19-beta.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/es/components/ai-chat/index.d.ts +17 -146
  2. package/es/components/ai-chat/src/Index.vue.d.ts +17 -146
  3. package/es/components/ai-chat/src/Index.vue2.js +1 -1
  4. package/es/components/ai-chat/src/components/ChatCard.js +1 -1
  5. package/es/components/ai-chat/src/components/ChatFooter.vue.d.ts +2 -54
  6. package/es/components/ai-chat/src/components/ChatFooter.vue2.js +1 -1
  7. package/es/components/ai-chat/src/components/ChatMain.d.ts +7 -1
  8. package/es/components/ai-chat/src/components/ChatMain.js +1 -1
  9. package/es/components/ai-chat/src/utils/index.d.ts +0 -1
  10. package/es/components/ai-chat/src/utils/index.js +1 -1
  11. package/es/components/ai-chat/style/index.css +1 -1
  12. package/es/components/audio-sdk/src/audioSDK.d.ts +7 -6
  13. package/es/components/audio-sdk/src/audioSDK.js +1 -1
  14. package/es/components/audio-sdk/src/utils/recordingModal.d.ts +1 -2
  15. package/es/components/audio-sdk/src/utils/recordingModal.js +1 -1
  16. package/es/components/button-print/src/components/OldPrintComponent.vue2.js +1 -1
  17. package/es/components/editor/src/Editor.js +1 -1
  18. package/es/components/editor/style/index.css +0 -1
  19. package/es/components/fabric-chart/src/hooks/temperature/useCenter.js +1 -1
  20. package/es/components/fabric-chart/src/hooks/temperature/useLeft.js +1 -1
  21. package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +1 -1
  22. package/es/components/fabric-chart/src/interface.d.ts +2 -0
  23. package/es/components/index.css +1 -1
  24. package/es/components/shortcut-provider/src/hooks/useShortcuts.js +1 -1
  25. package/es/components/shortcut-provider/src/types/index.d.ts +1 -0
  26. package/es/shared/package.json.js +1 -1
  27. package/package.json +2 -2
  28. package/es/components/ai-chat/src/api/index.d.ts +0 -6
  29. package/es/components/ai-chat/src/api/index.js +0 -1
  30. package/es/components/ai-chat/src/components/ChatAudio.vue.d.ts +0 -43
  31. package/es/components/ai-chat/src/components/ChatAudio.vue.js +0 -1
  32. package/es/components/ai-chat/src/components/ChatAudio.vue2.js +0 -1
  33. package/es/components/ai-chat/src/components/ChatMainInner.d.ts +0 -2
  34. package/es/components/ai-chat/src/components/ChatMainInner.js +0 -1
  35. package/es/components/ai-chat/src/components/ChatRight.vue.d.ts +0 -56
  36. package/es/components/ai-chat/src/components/ChatRight.vue.js +0 -1
  37. package/es/components/ai-chat/src/components/ChatRight.vue2.js +0 -1
  38. package/es/components/ai-chat/src/components/card/JsonCard.d.ts +0 -25
  39. package/es/components/ai-chat/src/components/card/JsonCard.js +0 -1
  40. package/es/components/ai-chat/src/components/card/SelectIcon.d.ts +0 -14
  41. package/es/components/ai-chat/src/components/card/SelectIcon.js +0 -1
  42. package/es/components/ai-chat/src/hooks/useProgram.d.ts +0 -6
  43. package/es/components/ai-chat/src/hooks/useProgram.js +0 -1
  44. package/es/components/ai-chat/src/hooks/useWebsocket.d.ts +0 -2
  45. package/es/components/ai-chat/src/hooks/useWebsocket.js +0 -1
  46. package/es/shared/assets/img/file-emr.png.js +0 -1
  47. package/es/shared/assets/img/file.png.js +0 -1
  48. 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,21 @@ 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;
128
- 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<{}>>, {}>;
110
+ NMessageProvider: any;
111
+ ChatMain: import("vue").DefineComponent<Readonly<import("vue").ComponentPropsOptions<{
112
+ [x: string]: unknown;
113
+ }>>, () => JSX.Element[], unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, never[], never, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<readonly string[] | import("vue").ExtractPropTypes<Readonly<import("vue").ComponentObjectPropsOptions<{
114
+ [x: string]: unknown;
115
+ }>>>> & {}, {
116
+ readonly [x: number]: string;
117
+ } | {}>;
129
118
  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
119
  cssVars: import("vue").ComputedRef<import("../../shared/types").AnyObject>;
137
120
  audioSdk: import("..").CAudioSDK;
138
121
  emit: (event: string, ...args: any[]) => void;
@@ -141,8 +124,6 @@ declare const AiChat: SFCWithInstall<import("vue").DefineComponent<{
141
124
  isSmall: any;
142
125
  audioTimed: any;
143
126
  commandList: any;
144
- isInner: any;
145
- patientInfo: any;
146
127
  inputRef: import("vue").Ref<any>;
147
128
  showPopover: import("vue").Ref<boolean>;
148
129
  breadcrumb: import("vue").Ref<{
@@ -162,16 +143,13 @@ declare const AiChat: SFCWithInstall<import("vue").DefineComponent<{
162
143
  showPrompt: import("vue").Ref<boolean>;
163
144
  currentShortcutId: import("vue").Ref<string>;
164
145
  showPatient: import("vue").Ref<boolean>;
165
- showAudio: import("vue").Ref<boolean>;
166
- placeholder: import("vue").ComputedRef<"请向我提问,Shift+Enter换行" | "请向我提问或输入\"/\"查看指令" | "请向我提问或输入\"/\"查看指令,Shift+Enter换行">;
146
+ placeholder: import("vue").ComputedRef<"请向我提问或输入\"/\"查看指令" | "请向我提问或输入\"/\"查看指令,Shift+Enter换行">;
167
147
  btnDisabled: import("vue").ComputedRef<any>;
168
148
  showMagicWand: import("vue").ComputedRef<boolean>;
169
149
  patient: import("vue").ComputedRef<string>;
170
- currentShortcutList: import("vue").ComputedRef<any>;
171
- isAllDisabled: import("vue").ComputedRef<any>;
172
150
  recorderStart: () => Promise<void>;
173
151
  getShortcutName: (item: string | import("../../shared/types").AnyObject) => any;
174
- handleShortcut: (item: string | import("../../shared/types").AnyObject) => Promise<void>;
152
+ handleShortcut: (item: string | import("../../shared/types").AnyObject) => void;
175
153
  resetCurrentCommand: () => void;
176
154
  handleKeyDown: (event: KeyboardEvent) => void;
177
155
  isWrap: (event: KeyboardEvent) => boolean;
@@ -291,102 +269,6 @@ declare const AiChat: SFCWithInstall<import("vue").DefineComponent<{
291
269
  }, {
292
270
  show: boolean;
293
271
  }>;
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
- start: () => Promise<void>;
319
- handlePause: () => void;
320
- handlePlay: () => void;
321
- handleEnd: (trigger?: string | undefined) => Promise<void>;
322
- NSpace: any;
323
- NButton: any;
324
- NIcon: any;
325
- 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<{}>>, {}>;
326
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:show"[], "update:show", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
327
- show: {
328
- type: BooleanConstructor;
329
- };
330
- }>> & {
331
- "onUpdate:show"?: ((...args: any[]) => any) | undefined;
332
- }, {
333
- show: boolean;
334
- }>;
335
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
336
- 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<{}>>, {}>;
337
- ChatRight: import("vue").DefineComponent<{}, {
338
- medicalLabel: {
339
- key: string;
340
- title: string;
341
- }[];
342
- state: any;
343
- patientInfo: any;
344
- toolbarConfig: {
345
- toolbarKeys: never[];
346
- };
347
- content: import("vue").Ref<string>;
348
- key: import("vue").Ref<string>;
349
- handleSave: () => Promise<void>;
350
- createMedicalRecord: () => void;
351
- extractContentByTitle: () => import("../../shared/types").AnyObject;
352
- NIcon: any;
353
- NSpace: any;
354
- NButton: any;
355
- Editor: SFCWithInstall<import("vue").DefineComponent<{
356
- editorConfig: {
357
- type: ObjectConstructor;
358
- };
359
- toolbarConfig: {
360
- type: ObjectConstructor;
361
- };
362
- uploadImgUrl: {
363
- type: StringConstructor;
364
- };
365
- isDisabled: {
366
- type: BooleanConstructor;
367
- default: boolean;
368
- };
369
- }, {
370
- editorRef: import("vue").ShallowRef<any>;
371
- renderVN: () => JSX.Element;
372
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, never[], never, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
373
- editorConfig: {
374
- type: ObjectConstructor;
375
- };
376
- toolbarConfig: {
377
- type: ObjectConstructor;
378
- };
379
- uploadImgUrl: {
380
- type: StringConstructor;
381
- };
382
- isDisabled: {
383
- type: BooleanConstructor;
384
- default: boolean;
385
- };
386
- }>> & {}, {
387
- isDisabled: boolean;
388
- }>>;
389
- 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<{}>>, {}>;
390
272
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
391
273
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "button-click"[], "button-click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
392
274
  token: {
@@ -404,16 +286,17 @@ declare const AiChat: SFCWithInstall<import("vue").DefineComponent<{
404
286
  };
405
287
  queryData: {
406
288
  type: import("vue").PropType<import("./src/types").QueryData>;
289
+ reuired: boolean;
407
290
  };
408
291
  queryRecord: {
409
292
  type: import("vue").PropType<import("./src/types").QueryRecord>;
293
+ reuired: boolean;
410
294
  };
411
295
  hideInput: {
412
296
  type: BooleanConstructor;
413
297
  };
414
298
  uiStyle: {
415
299
  type: StringConstructor;
416
- default: string;
417
300
  };
418
301
  audioTimed: {
419
302
  type: NumberConstructor;
@@ -437,22 +320,10 @@ declare const AiChat: SFCWithInstall<import("vue").DefineComponent<{
437
320
  appId: {
438
321
  type: StringConstructor;
439
322
  };
440
- orgId: {
441
- type: StringConstructor;
442
- };
443
- userId: {
444
- type: StringConstructor;
445
- };
446
- immediatelyRecording: {
447
- type: BooleanConstructor;
448
- default: boolean;
449
- };
450
323
  }>> & {
451
324
  "onButton-click"?: ((...args: any[]) => any) | undefined;
452
325
  }, {
453
326
  hideInput: boolean;
454
- uiStyle: string;
455
327
  audioTimed: number;
456
- immediatelyRecording: boolean;
457
328
  }>>;
458
329
  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,21 @@ 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;
130
- 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<{}>>, {}>;
112
+ NMessageProvider: any;
113
+ ChatMain: import("vue").DefineComponent<Readonly<import("vue").ComponentPropsOptions<{
114
+ [x: string]: unknown;
115
+ }>>, () => JSX.Element[], unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, never[], never, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<readonly string[] | import("vue").ExtractPropTypes<Readonly<import("vue").ComponentObjectPropsOptions<{
116
+ [x: string]: unknown;
117
+ }>>>> & {}, {
118
+ readonly [x: number]: string;
119
+ } | {}>;
131
120
  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
121
  cssVars: import("vue").ComputedRef<AnyObject>;
139
122
  audioSdk: import("../..").CAudioSDK;
140
123
  emit: (event: string, ...args: any[]) => void;
@@ -143,8 +126,6 @@ declare const _default: import("vue").DefineComponent<{
143
126
  isSmall: any;
144
127
  audioTimed: any;
145
128
  commandList: any;
146
- isInner: any;
147
- patientInfo: any;
148
129
  inputRef: import("vue").Ref<any>;
149
130
  showPopover: import("vue").Ref<boolean>;
150
131
  breadcrumb: import("vue").Ref<{
@@ -164,16 +145,13 @@ declare const _default: import("vue").DefineComponent<{
164
145
  showPrompt: import("vue").Ref<boolean>;
165
146
  currentShortcutId: import("vue").Ref<string>;
166
147
  showPatient: import("vue").Ref<boolean>;
167
- showAudio: import("vue").Ref<boolean>;
168
- placeholder: import("vue").ComputedRef<"请向我提问,Shift+Enter换行" | "请向我提问或输入\"/\"查看指令" | "请向我提问或输入\"/\"查看指令,Shift+Enter换行">;
148
+ placeholder: import("vue").ComputedRef<"请向我提问或输入\"/\"查看指令" | "请向我提问或输入\"/\"查看指令,Shift+Enter换行">;
169
149
  btnDisabled: import("vue").ComputedRef<any>;
170
150
  showMagicWand: import("vue").ComputedRef<boolean>;
171
151
  patient: import("vue").ComputedRef<string>;
172
- currentShortcutList: import("vue").ComputedRef<any>;
173
- isAllDisabled: import("vue").ComputedRef<any>;
174
152
  recorderStart: () => Promise<void>;
175
153
  getShortcutName: (item: string | AnyObject) => any;
176
- handleShortcut: (item: string | AnyObject) => Promise<void>;
154
+ handleShortcut: (item: string | AnyObject) => void;
177
155
  resetCurrentCommand: () => void;
178
156
  handleKeyDown: (event: KeyboardEvent) => void;
179
157
  isWrap: (event: KeyboardEvent) => boolean;
@@ -293,102 +271,6 @@ declare const _default: import("vue").DefineComponent<{
293
271
  }, {
294
272
  show: boolean;
295
273
  }>;
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
- start: () => Promise<void>;
321
- handlePause: () => void;
322
- handlePlay: () => void;
323
- handleEnd: (trigger?: string | undefined) => Promise<void>;
324
- NSpace: any;
325
- NButton: any;
326
- NIcon: any;
327
- 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<{}>>, {}>;
328
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:show"[], "update:show", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
329
- show: {
330
- type: BooleanConstructor;
331
- };
332
- }>> & {
333
- "onUpdate:show"?: ((...args: any[]) => any) | undefined;
334
- }, {
335
- show: boolean;
336
- }>;
337
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
338
- 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<{}>>, {}>;
339
- ChatRight: import("vue").DefineComponent<{}, {
340
- medicalLabel: {
341
- key: string;
342
- title: string;
343
- }[];
344
- state: any;
345
- patientInfo: any;
346
- toolbarConfig: {
347
- toolbarKeys: never[];
348
- };
349
- content: import("vue").Ref<string>;
350
- key: import("vue").Ref<string>;
351
- handleSave: () => Promise<void>;
352
- createMedicalRecord: () => void;
353
- extractContentByTitle: () => AnyObject;
354
- NIcon: any;
355
- NSpace: any;
356
- NButton: any;
357
- Editor: import("../../../shared/types").SFCWithInstall<import("vue").DefineComponent<{
358
- editorConfig: {
359
- type: ObjectConstructor;
360
- };
361
- toolbarConfig: {
362
- type: ObjectConstructor;
363
- };
364
- uploadImgUrl: {
365
- type: StringConstructor;
366
- };
367
- isDisabled: {
368
- type: BooleanConstructor;
369
- default: boolean;
370
- };
371
- }, {
372
- editorRef: import("vue").ShallowRef<any>;
373
- renderVN: () => JSX.Element;
374
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, never[], never, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
375
- editorConfig: {
376
- type: ObjectConstructor;
377
- };
378
- toolbarConfig: {
379
- type: ObjectConstructor;
380
- };
381
- uploadImgUrl: {
382
- type: StringConstructor;
383
- };
384
- isDisabled: {
385
- type: BooleanConstructor;
386
- default: boolean;
387
- };
388
- }>> & {}, {
389
- isDisabled: boolean;
390
- }>>;
391
- 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<{}>>, {}>;
392
274
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
393
275
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "button-click"[], "button-click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
394
276
  token: {
@@ -406,16 +288,17 @@ declare const _default: import("vue").DefineComponent<{
406
288
  };
407
289
  queryData: {
408
290
  type: PropType<QueryData>;
291
+ reuired: boolean;
409
292
  };
410
293
  queryRecord: {
411
294
  type: PropType<QueryRecord>;
295
+ reuired: boolean;
412
296
  };
413
297
  hideInput: {
414
298
  type: BooleanConstructor;
415
299
  };
416
300
  uiStyle: {
417
301
  type: StringConstructor;
418
- default: string;
419
302
  };
420
303
  audioTimed: {
421
304
  type: NumberConstructor;
@@ -439,22 +322,10 @@ declare const _default: import("vue").DefineComponent<{
439
322
  appId: {
440
323
  type: StringConstructor;
441
324
  };
442
- orgId: {
443
- type: StringConstructor;
444
- };
445
- userId: {
446
- type: StringConstructor;
447
- };
448
- immediatelyRecording: {
449
- type: BooleanConstructor;
450
- default: boolean;
451
- };
452
325
  }>> & {
453
326
  "onButton-click"?: ((...args: any[]) => any) | undefined;
454
327
  }, {
455
328
  hideInput: boolean;
456
- uiStyle: string;
457
329
  audioTimed: number;
458
- immediatelyRecording: boolean;
459
330
  }>;
460
331
  export default _default;
@@ -1 +1 @@
1
- import{defineComponent as e,computed as t,reactive as i,provide as n,toRefs as o,openBlock as r,createElementBlock as a,normalizeStyle as s,unref as l,createElementVNode as u,normalizeClass as p,createBlock as d,createCommentVNode as m}from"vue";import c from"./components/ChatMain.js";import y from"./components/ChatFooter.vue.js";import h from"./components/ChatMainInner.js";import f from"./components/ChatRight.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"naive-ui";import"../../../shared/hooks/useScrollLoading.js";import{InjectionAIChat as g,InjectionAIChatEmits as k}from"./types/index.js";import{instanceAxios as j}from"./api/index.js";import{useWebsocket as I}from"./hooks/useWebsocket.js";const x=["id"];var C=e({__name:"Index",props:{token:{type:String,required:!0},userAvatar:{type:String},defaultShortcutList:{type:Array},shortcutList:{type:Array},queryData:{type:Function},queryRecord:{type:Function},hideInput:{type:Boolean},uiStyle:{type:String,default:"big"},audioTimed:{type:Number,default:10},commandList:{type:Array},queryPrompt:{type:Function},patientInfo:{type:Object},appId:{type:String},orgId:{type:String},userId:{type:String},immediatelyRecording:{type:Boolean,default:!1}},emits:["button-click"],setup(e,{expose:C,emit:P}){const _=e,b=v();j.defaults.headers.Authorization="bearer "+_.token,"inner"!==_.uiStyle&&(j.defaults.timeout=5e3,j.interceptors.response.use((e=>{var t;return(null==(t=e.data)?void 0:t.success)?e.data:{success:!1,data:[]}})));const A=t((()=>["small","inner"].includes(_.uiStyle))),F=i({id:"ai-chat-"+S(),loading:!1,loadingText:"",sending:!1,sendContent:"",selectedCommand:null,selectedPrompt:null,externalData:null,selectedPatient:null,selectedPatientLabel:"",selectedPatientForm:null,showPatient:!1,showRight:!1,consultationContent:null,params:{},reportContent:null,refreshMedical:!1});return n(g,{...o(_),state:F,isSmall:t((()=>"small"===_.uiStyle)),isInner:t((()=>"inner"===_.uiStyle)),vaa07:t((()=>{var e,t;return null==(t=null==(e=_.patientInfo)?void 0:e.info)?void 0:t.vaa07}))}),n(k,P),"inner"===_.uiStyle&&I(_,F),C({pushMessage:e=>{F.externalData=e},updatePatientInfo:e=>{F.selectedPatient=e}}),(t,i)=>(r(),a("div",{class:"ai-chat",style:s(l(b))},[u("div",{id:F.id,class:p(["ai-chat__main",l(A)?"ai-chat__main--small":"","inner"===e.uiStyle?"ai-chat__main--inner":""])},["inner"===e.uiStyle?(r(),d(l(h),{key:0})):(r(),d(l(c),{key:1})),e.hideInput?m("v-if",!0):(r(),d(y,{key:2}))],10,x),"inner"===e.uiStyle?(r(),d(f,{key:0})):m("v-if",!0)],4))}});export{C as default};
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 b,ChevronForward as h}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{instanceAxios as E}from"../api/index.js";import I from"../../../form-render/index.js";import k from"../../../card-render/index.js";var x=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:x,slots:_,emit:C}){const T={TEXT:"INPUT",NUMBER:"INPUT_NUMBER",DATETIME:"DATE",MULTI_SELECT:"REMOTE_SEARCH",SELECT:"REMOTE_SEARCH"},P=y(),{patientInfo:w,state:O,isSmall:S,appId:j}=t(v),M=a([]),R=a(),L=a(),N=l({vaa05:""}),q=a(),A=n((()=>{var t,a;return!!(null==(a=null==(t=e.msgItem)?void 0:t.content)?void 0:a.body)})),F=e.msgItem.content,H={},B=l(p(F.data||{})),K={beforeRequest(e,t,a){(null==t?void 0:t.params)&&(t.params.vaa05=L.value.selectedPatient.vaa01),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(A.value){const t=F.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[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=w.value.info||O.selectedPatient),t.dependencies){const e=t.dependencies.split(",");i.urlConfig.dependKey=e,e.includes("vaa05")&&(i.urlConfig.params.params={vaa05:""})}}return i})).filter((e=>!!e))}function J(){var t;if(!L.value)return null;function a(){e.msgItem.disabled||(O.showPatient=!0)}return i(s,{class:"form-render",ref:q,"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:b},null)})]}})]})}async function z(t,a){var l,n;try{const o=a||R.value.getFormValues();await(null==(l=R.value)?void 0:l.validate()),F.body.items.forEach((e=>{var t;"vaa05"===e.code?(e._value=O.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])})),O.loading=!0,C("button-click",{values:o,buttonInfo:t,patient:(null==(n=L.value)?void 0:n.selectedPatient)||e.configs,isForm:!0})}catch(e){O.loading=!1}}function V(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=F.settings)?void 0:e.id)||!F.data)return null;const t=JSON.parse(F.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(F.data[l])||JSON.parse(F.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:P.value["--c-primary-color"],style:"margin-top: 10px",onClick:X},{icon:()=>i(d,{component:h},null),default:()=>"查看更多"}))}return o((()=>O.showPatient),(t=>{!e.msgItem.disabled&&A.value&&!t&&O.selectedPatientLabel&&L.value&&(N.vaa05=O.selectedPatientLabel,L.value.selectedPatient={...O.selectedPatientForm})})),()=>{var t;return i("div",{class:"card"},[A.value?[i("p",null,[F.title||F.header.title]),i("div",{class:"form-box"},[[J(),i(I,{"request-instance":{get:E.get,post:E.post},"life-cycle":K,column:12,ref:R,"field-list":M.value,onFormChange:V},null)]]),F.footer.buttons.map((t=>function(t){const a={width:"100%","--n-height":"36px",fontSize:"15px",marginTop:"10px"},l=A.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(A.value){if(!R.value)return;try{L.value?null==(e=q.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 z(t,e)}})):await z(t)}catch(e){}}else C("button-click")}},{default:()=>[A.value?null==t?void 0:t.text:F.buttonName]})}(t)))]:[i(k,{config:g(null==(t=F.settings)?void 0:t.setting)?JSON.parse(F.settings.setting):null,data:B,"onModule-click":U,"onButton-click":D},null),G()]])}}});export{x as default};
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};