cnhis-design-vue 3.3.3-beta.7 → 3.3.3-release.7

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 (177) hide show
  1. package/README.md +87 -87
  2. package/es/components/audio-sdk/index.d.ts +13 -11
  3. package/es/components/audio-sdk/src/Index.vue.d.ts +13 -11
  4. package/es/components/audio-sdk/src/Index.vue2.js +36 -4
  5. package/es/components/audio-sdk/src/components/recording-modal.vue.d.ts +1 -1
  6. package/es/components/audio-sdk/src/components/recording.vue.d.ts +1 -1
  7. package/es/components/audio-sdk/src/components/recording.vue2.js +17 -3
  8. package/es/components/base-search/index.d.ts +3 -0
  9. package/es/components/base-search/src/index.vue.d.ts +3 -0
  10. package/es/components/big-table/src/components/NoData.vue2.js +8 -1
  11. package/es/components/big-table/src/hooks/useTableParse.js +8 -1
  12. package/es/components/button-print/src/components/NewPrintComponent.vue2.js +3 -0
  13. package/es/components/callback/src/components/render/popupMaps.d.ts +13 -0
  14. package/es/components/card-reader-sdk-cn/src/henan/index.js +8 -1
  15. package/es/components/classification/index.d.ts +56 -6
  16. package/es/components/classification/src/components/search-filter/index.vue.d.ts +56 -6
  17. package/es/components/classification/src/components/set-classification/index.vue.d.ts +56 -6
  18. package/es/components/classification/src/components/table-modal/index.vue.d.ts +0 -3
  19. package/es/components/classification/src/index.vue.d.ts +56 -6
  20. package/es/components/expand-field/index.d.ts +792 -1
  21. package/es/components/expand-field/src/components/FormItemPerson.vue.d.ts +792 -1
  22. package/es/components/expand-field/src/components/PersonModal.vue.d.ts +792 -1
  23. package/es/components/expand-field/src/components/form.vue.d.ts +792 -1
  24. package/es/components/expand-field/src/components/form.vue2.js +8 -1
  25. package/es/components/expand-field/src/index.vue.d.ts +792 -1
  26. package/es/components/field-editor/index.d.ts +13 -0
  27. package/es/components/field-editor/src/FieldEditor.vue.d.ts +13 -0
  28. package/es/components/field-editor/src/FieldEditor.vue2.js +2 -1
  29. package/es/components/field-editor/src/fields.d.ts +1 -0
  30. package/es/components/field-editor/src/fields.js +6 -0
  31. package/es/components/field-set/src/FieldColor.vue.d.ts +3 -3
  32. package/es/components/field-set/src/FieldFilter.vue.d.ts +3 -3
  33. package/es/components/field-set/src/FieldSet.vue.d.ts +35 -4
  34. package/es/components/field-set/src/FieldSet.vue2.js +112 -65
  35. package/es/components/field-set/src/Index.vue2.js +8 -3
  36. package/es/components/field-set/src/TableStyle.vue2.js +2 -2
  37. package/es/components/field-set/src/components/table-row.vue.d.ts +3 -3
  38. package/es/components/field-set/src/constants/index.d.ts +1 -1
  39. package/es/components/field-set/style/index.css +1 -1
  40. package/es/components/form-config/index.d.ts +39 -0
  41. package/es/components/form-config/src/FormConfig.vue.d.ts +39 -0
  42. package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +13 -0
  43. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +13 -0
  44. package/es/components/form-config/src/components/FormConfigEventSetting.vue.d.ts +13 -0
  45. package/es/components/form-config/src/components/FormConfigEventSetting.vue2.js +8 -1
  46. package/es/components/form-render/index.d.ts +13 -0
  47. package/es/components/form-render/src/FormRender.vue.d.ts +13 -0
  48. package/es/components/form-render/src/FormRender.vue2.js +4 -0
  49. package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +13 -0
  50. package/es/components/form-render/src/components/renderer/formItem.js +8 -1
  51. package/es/components/form-render/src/hooks/useBusinessBinding.d.ts +12 -3
  52. package/es/components/form-render/src/hooks/useBusinessBinding.js +7 -7
  53. package/es/components/form-render/src/hooks/useFormContext.js +1 -1
  54. package/es/components/form-render/src/hooks/useFormValidator.js +8 -1
  55. package/es/components/form-render/src/utils/business.d.ts +3 -1
  56. package/es/components/form-render/src/utils/business.js +7 -1
  57. package/es/components/iho-chat/index.d.ts +18 -1
  58. package/es/components/iho-chat/src/Index.vue.d.ts +18 -1
  59. package/es/components/iho-chat/src/components/ChatFooter.vue.d.ts +2 -1
  60. package/es/components/iho-chat/src/components/ChatFooter.vue2.js +22 -10
  61. package/es/components/iho-chat/src/components/ChatHeader.vue2.js +3 -2
  62. package/es/components/iho-chat/src/components/MultipleVideo.vue.d.ts +16 -0
  63. package/es/components/iho-chat/src/components/MultipleVideo.vue2.js +112 -53
  64. package/es/components/iho-chat/src/components/PersonProfile.vue2.js +1 -1
  65. package/es/components/iho-chat/src/hooks/index.d.ts +1 -0
  66. package/es/components/iho-chat/src/hooks/index.js +1 -0
  67. package/es/components/iho-chat/src/hooks/useDraggable.d.ts +25 -0
  68. package/es/components/iho-chat/src/hooks/useDraggable.js +151 -0
  69. package/es/components/iho-chat/style/index.css +1 -1
  70. package/es/components/index.css +1 -1
  71. package/es/components/info-header/index.d.ts +26 -0
  72. package/es/components/info-header/src/InfoHeader.vue.d.ts +26 -0
  73. package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +13 -0
  74. package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +13 -0
  75. package/es/components/info-header/src/components/patientInfo/index.vue2.js +16 -2
  76. package/es/components/quick-search/index.d.ts +2 -0
  77. package/es/components/quick-search/src/index.vue.d.ts +2 -0
  78. package/es/components/scale-view/index.d.ts +53 -3
  79. package/es/components/scale-view/src/ScaleView.vue.d.ts +56 -5
  80. package/es/components/scale-view/src/ScaleView.vue2.js +79 -4
  81. package/es/components/scale-view/src/components/AnswerParse.vue.d.ts +5 -0
  82. package/es/components/scale-view/src/components/AnswerParse.vue2.js +74 -8
  83. package/es/components/scale-view/src/components/EvaluateCountdown.vue.d.ts +3 -0
  84. package/es/components/scale-view/src/components/EvaluateCountdown.vue2.js +26 -2
  85. package/es/components/scale-view/src/components/EvaluatePage.vue.d.ts +3 -0
  86. package/es/components/scale-view/src/components/EvaluatePage.vue2.js +27 -6
  87. package/es/components/scale-view/src/components/NoData.vue2.js +9 -3
  88. package/es/components/scale-view/src/components/ScaleScore.d.ts +1 -1
  89. package/es/components/scale-view/src/components/ScaleScore.js +45 -3
  90. package/es/components/scale-view/src/components/formitem/r-checkbox.js +16 -2
  91. package/es/components/scale-view/src/components/formitem/r-sign.js +32 -4
  92. package/es/components/scale-view/src/components/formitem/r-upload.js +65 -7
  93. package/es/components/scale-view/src/components/formitem/sign-com.js +8 -1
  94. package/es/components/scale-view/src/hooks/scaleview-computed.js +18 -3
  95. package/es/components/scale-view/src/hooks/scaleview-init.js +24 -3
  96. package/es/components/scale-view/src/hooks/scaleview-methods.js +40 -5
  97. package/es/components/scale-view/src/hooks/scaleview-props.d.ts +8 -0
  98. package/es/components/scale-view/src/hooks/scaleview-props.js +8 -0
  99. package/es/components/scale-view/src/hooks/scaleview-submit.d.ts +2 -1
  100. package/es/components/scale-view/src/hooks/scaleview-submit.js +64 -8
  101. package/es/components/scale-view/src/hooks/scaleview-validate.d.ts +1 -1
  102. package/es/components/scale-view/src/hooks/scaleview-validate.js +157 -24
  103. package/es/components/scale-view/src/hooks/use-evaluate.js +16 -2
  104. package/es/components/scale-view/src/hooks/use-noData.js +33 -5
  105. package/es/components/scale-view/src/utils/judge-types.d.ts +2 -1
  106. package/es/components/scale-view/src/utils/judge-types.js +10 -10
  107. package/es/components/scale-view/src/utils/watch-form-change.d.ts +13 -0
  108. package/es/components/scale-view/src/utils/watch-form-change.js +71 -0
  109. package/es/components/select-person/index.d.ts +792 -1
  110. package/es/components/select-person/src/SelectPerson.vue.d.ts +433 -273
  111. package/es/components/select-person/src/SelectPerson.vue.js +6 -0
  112. package/es/components/select-person/src/SelectPerson.vue2.js +788 -0
  113. package/es/components/select-person/src/SelectPersonRole.vue.js +2 -2
  114. package/es/components/select-person/src/components/GroupItem.vue.d.ts +19 -0
  115. package/es/components/select-person/src/components/GroupItem.vue.js +6 -0
  116. package/es/components/select-person/src/components/GroupItem.vue2.js +37 -0
  117. package/es/components/select-person/src/components/SearchGroupList.vue.d.ts +214 -0
  118. package/es/components/select-person/src/components/SearchGroupList.vue.js +6 -0
  119. package/es/components/select-person/src/components/SearchGroupList.vue2.js +145 -0
  120. package/es/components/select-person/src/components/SearchMultiple.vue2.js +1 -1
  121. package/es/components/select-person/src/components/SearchOrgAndStaff.vue2.js +21 -12
  122. package/es/components/select-person/src/components/TagItem.vue.d.ts +43 -0
  123. package/es/components/select-person/src/components/TagItem.vue.js +6 -0
  124. package/es/components/select-person/src/components/TagItem.vue2.js +40 -0
  125. package/es/components/select-person/src/index.vue.d.ts +793 -1
  126. package/es/components/select-person/src/index.vue2.js +21 -4
  127. package/es/components/select-person/src/types/index.d.ts +35 -0
  128. package/es/components/select-person/src/types/index.js +1 -0
  129. package/es/components/select-person/src/utils/index.d.ts +3 -0
  130. package/es/components/select-person/src/utils/index.js +25 -2
  131. package/es/components/select-person/style/index.css +1 -1
  132. package/es/components/shortcut-setter/index.d.ts +13 -0
  133. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +13 -0
  134. package/es/components/table-filter/src/components/bi-filter/ValueCfg.vue.d.ts +1 -0
  135. package/es/components/table-filter/src/components/bi-filter/components/SelectFilter.vue.d.ts +1 -0
  136. package/es/components/table-filter/src/components/bi-filter/components/index.d.ts +1 -0
  137. package/es/components/table-filter/src/components/bi-filter/index.vue.d.ts +1 -0
  138. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +54 -6
  139. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue2.js +26 -10
  140. package/es/components/table-filter/src/components/classify-filter/components/Date.vue.d.ts +17 -2
  141. package/es/components/table-filter/src/components/classify-filter/components/Date.vue2.js +37 -2
  142. package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts +18 -2
  143. package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue2.js +44 -1
  144. package/es/components/table-filter/src/components/classify-filter/components/SelectFilter.vue.d.ts +1 -0
  145. package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +36 -4
  146. package/es/components/table-filter/src/components/classify-filter/hooks/useFilterConditions.js +2 -1
  147. package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +55 -6
  148. package/es/components/table-filter/src/components/classify-filter/index.vue2.js +6 -3
  149. package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.d.ts +1 -1
  150. package/es/components/table-filter/src/components/render-widget/components/DateOut.vue2.js +12 -1
  151. package/es/components/table-filter/src/components/render-widget/components/DateQuickBtn/index.vue.d.ts +1 -1
  152. package/es/components/table-filter/src/components/render-widget/components/DateQuickBtn/index.vue2.js +25 -6
  153. package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue.d.ts +1 -1
  154. package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue2.js +12 -1
  155. package/es/components/table-filter/src/components/render-widget/components/index.d.ts +2 -2
  156. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +2 -2
  157. package/es/components/table-filter/src/hooks/useAdvanced.d.ts +2 -0
  158. package/es/components/table-filter/src/hooks/useAdvanced.js +20 -3
  159. package/es/components/table-filter/src/hooks/useRenderWidget.js +4 -0
  160. package/es/components/table-filter/src/tool/date.d.ts +3 -0
  161. package/es/components/table-filter/src/tool/date.js +139 -0
  162. package/es/components/table-filter/src/tool/transformData.d.ts +1 -0
  163. package/es/components/table-filter/src/tool/transformData.js +11 -8
  164. package/es/components/table-filter/src/types/enums.d.ts +1 -0
  165. package/es/components/table-filter/src/types/enums.js +2 -1
  166. package/es/components/table-filter/src/types/index.d.ts +12 -0
  167. package/es/components/vod-chunk-upload/index.d.ts +3 -0
  168. package/es/components/vod-chunk-upload/src/chunk-upload-new.vue.d.ts +1 -29
  169. package/es/components/vod-chunk-upload/src/chunk-upload-new.vue2.js +109 -11
  170. package/es/components/vod-chunk-upload/src/hooks/upload-computed.js +15 -1
  171. package/es/components/vod-chunk-upload/src/hooks/upload-data.js +72 -9
  172. package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue.d.ts +3 -0
  173. package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue2.js +75 -9
  174. package/es/env.d.ts +25 -25
  175. package/es/shared/hooks/selectHooks/useSearchContent.js +1 -1
  176. package/es/shared/package.json.js +1 -1
  177. package/package.json +2 -2
package/README.md CHANGED
@@ -1,87 +1,87 @@
1
- # 安装
2
-
3
- ```shell
4
- npm i cnhis-design-vue@[版本号]
5
- # or
6
- yarn add cnhis-design-vue@[版本号] #推荐
7
- ```
8
-
9
- ## 1.全局引入
10
-
11
- ```typescript
12
- // main.ts
13
- import { createApp } from 'vue';
14
- import App from './App.vue';
15
- import 'cnhis-design-vue/es/packages/index.css';
16
- import cui from 'cnhis-design-vue';
17
-
18
- const app = createApp(App);
19
- app.use(cui).mount('#app');
20
- ```
21
-
22
- ## 2. 按需引入
23
-
24
- 组件现在支持了自动按需引入, 但是样式文件需要额外的处理
25
-
26
- ### 2.1 样式处理方式1 (按需引入样式)
27
-
28
- ```shell
29
- # 安装自动导入样式的插件
30
- npm i -d vite-plugin-style-import
31
- ```
32
-
33
- ```typescript
34
- // vite.config.ts
35
- import { defineConfig } from 'vite';
36
- import { createStyleImportPlugin } from 'vite-plugin-style-import';
37
-
38
- export default defineConfig({
39
- plugins: [
40
- // ...otherPlugins
41
- createStyleImportPlugin({
42
- libs: [
43
- {
44
- libraryName: 'cnhis-design-vue',
45
- esModule: true,
46
- ensureStyleFile: true,
47
- resolveStyle: name => {
48
- return `cnhis-design-vue/es/components/${ name.slice(2) }/style/index.css`;
49
- }
50
- }
51
- ]
52
- })
53
- ]
54
- });
55
- ```
56
-
57
- ### 2.2 样式处理方式2 (全局引入样式)
58
-
59
- ```typescript
60
- // main.ts
61
- import 'cnhis-design-vue/es/components/index.css';
62
- ```
63
-
64
- ## 3.FAQ
65
-
66
- ### 3.1 项目打包后样式丢失
67
-
68
- 处理方法, 将 cnhis-design-vue 从 vendor 包中移除 (没有出现此问题则不需要)
69
-
70
- ```typescript
71
- // vite.config.ts
72
- import { defineConfig } from 'vite';
73
-
74
- export default defineConfig({
75
- build: {
76
- rollupOptions: {
77
- // ..otherOptions
78
- output: {
79
- dir: './dist',
80
- manualChunks: {
81
- 'cnhis-vendor': ['cnhis-design-vue']
82
- }
83
- }
84
- }
85
- }
86
- });
87
- ```
1
+ # 安装
2
+
3
+ ```shell
4
+ npm i cnhis-design-vue@[版本号]
5
+ # or
6
+ yarn add cnhis-design-vue@[版本号] #推荐
7
+ ```
8
+
9
+ ## 1.全局引入
10
+
11
+ ```typescript
12
+ // main.ts
13
+ import { createApp } from 'vue';
14
+ import App from './App.vue';
15
+ import 'cnhis-design-vue/es/packages/index.css';
16
+ import cui from 'cnhis-design-vue';
17
+
18
+ const app = createApp(App);
19
+ app.use(cui).mount('#app');
20
+ ```
21
+
22
+ ## 2. 按需引入
23
+
24
+ 组件现在支持了自动按需引入, 但是样式文件需要额外的处理
25
+
26
+ ### 2.1 样式处理方式1 (按需引入样式)
27
+
28
+ ```shell
29
+ # 安装自动导入样式的插件
30
+ npm i -d vite-plugin-style-import
31
+ ```
32
+
33
+ ```typescript
34
+ // vite.config.ts
35
+ import { defineConfig } from 'vite';
36
+ import { createStyleImportPlugin } from 'vite-plugin-style-import';
37
+
38
+ export default defineConfig({
39
+ plugins: [
40
+ // ...otherPlugins
41
+ createStyleImportPlugin({
42
+ libs: [
43
+ {
44
+ libraryName: 'cnhis-design-vue',
45
+ esModule: true,
46
+ ensureStyleFile: true,
47
+ resolveStyle: name => {
48
+ return `cnhis-design-vue/es/components/${ name.slice(2) }/style/index.css`;
49
+ }
50
+ }
51
+ ]
52
+ })
53
+ ]
54
+ });
55
+ ```
56
+
57
+ ### 2.2 样式处理方式2 (全局引入样式)
58
+
59
+ ```typescript
60
+ // main.ts
61
+ import 'cnhis-design-vue/es/components/index.css';
62
+ ```
63
+
64
+ ## 3.FAQ
65
+
66
+ ### 3.1 项目打包后样式丢失
67
+
68
+ 处理方法, 将 cnhis-design-vue 从 vendor 包中移除 (没有出现此问题则不需要)
69
+
70
+ ```typescript
71
+ // vite.config.ts
72
+ import { defineConfig } from 'vite';
73
+
74
+ export default defineConfig({
75
+ build: {
76
+ rollupOptions: {
77
+ // ..otherOptions
78
+ output: {
79
+ dir: './dist',
80
+ manualChunks: {
81
+ 'cnhis-vendor': ['cnhis-design-vue']
82
+ }
83
+ }
84
+ }
85
+ }
86
+ });
87
+ ```
@@ -8,9 +8,6 @@ declare const AudioSdk: SFCWithInstall<import("vue").DefineComponent<{
8
8
  type: NumberConstructor;
9
9
  default: number;
10
10
  };
11
- realTimeRecognition: {
12
- type: BooleanConstructor;
13
- };
14
11
  allowPunctuationMark: {
15
12
  type: BooleanConstructor;
16
13
  default: boolean;
@@ -32,8 +29,12 @@ declare const AudioSdk: SFCWithInstall<import("vue").DefineComponent<{
32
29
  type: StringConstructor;
33
30
  default: string;
34
31
  };
32
+ appCode: {
33
+ type: StringConstructor;
34
+ };
35
35
  }, {
36
36
  consultationRecordUrl: string;
37
+ chatBoxinit: string;
37
38
  cssVars: import("vue").ComputedRef<import("../../shared/types").AnyObject>;
38
39
  audioSdk: AudioSDK;
39
40
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
@@ -41,9 +42,6 @@ declare const AudioSdk: SFCWithInstall<import("vue").DefineComponent<{
41
42
  type: NumberConstructor;
42
43
  default: number;
43
44
  };
44
- realTimeRecognition: {
45
- type: BooleanConstructor;
46
- };
47
45
  allowPunctuationMark: {
48
46
  type: BooleanConstructor;
49
47
  default: boolean;
@@ -65,6 +63,9 @@ declare const AudioSdk: SFCWithInstall<import("vue").DefineComponent<{
65
63
  type: StringConstructor;
66
64
  default: string;
67
65
  };
66
+ appCode: {
67
+ type: StringConstructor;
68
+ };
68
69
  }>> & {
69
70
  onSuccess?: ((...args: any[]) => any) | undefined;
70
71
  onClose?: ((...args: any[]) => any) | undefined;
@@ -79,6 +80,7 @@ declare const AudioSdk: SFCWithInstall<import("vue").DefineComponent<{
79
80
  recordingRef: import("vue").Ref<any>;
80
81
  isRecording: import("vue").Ref<boolean>;
81
82
  loading: import("vue").Ref<boolean>;
83
+ audioType: import("vue").Ref<"websocket" | "http" | undefined>;
82
84
  content: any;
83
85
  wsConnected: import("vue").ComputedRef<boolean | undefined>;
84
86
  recorderStatus: import("vue").ComputedRef<"" | "fail">;
@@ -101,6 +103,7 @@ declare const AudioSdk: SFCWithInstall<import("vue").DefineComponent<{
101
103
  onPause: () => void;
102
104
  onResume: () => void;
103
105
  handleToAnalyzing: (obj?: import("../../shared/types").AnyObject) => Promise<void>;
106
+ getAudioType: () => Promise<void>;
104
107
  createMedicalRecord: () => Promise<void>;
105
108
  CRecording: import("vue").DefineComponent<{
106
109
  content: {
@@ -204,8 +207,8 @@ declare const AudioSdk: SFCWithInstall<import("vue").DefineComponent<{
204
207
  audioChartRef: import("vue").Ref<HTMLDivElement | undefined>;
205
208
  audioChartSamllRef: import("vue").Ref<HTMLDivElement | undefined>;
206
209
  contentScrollRef: import("vue").Ref<HTMLDivElement | undefined>;
207
- isActive: import("vue").Ref<boolean>;
208
210
  isWarning: import("vue").Ref<boolean>;
211
+ isActive: import("vue").Ref<boolean>;
209
212
  formattedTime: import("vue").ComputedRef<string>;
210
213
  isCountFinished: import("vue").Ref<boolean>;
211
214
  isCountActive: import("vue").Ref<boolean>;
@@ -343,9 +346,6 @@ declare const AudioSdk: SFCWithInstall<import("vue").DefineComponent<{
343
346
  type: NumberConstructor;
344
347
  default: number;
345
348
  };
346
- realTimeRecognition: {
347
- type: BooleanConstructor;
348
- };
349
349
  allowPunctuationMark: {
350
350
  type: BooleanConstructor;
351
351
  default: boolean;
@@ -367,6 +367,9 @@ declare const AudioSdk: SFCWithInstall<import("vue").DefineComponent<{
367
367
  type: StringConstructor;
368
368
  default: string;
369
369
  };
370
+ appCode: {
371
+ type: StringConstructor;
372
+ };
370
373
  }>> & {
371
374
  onSuccess?: ((...args: any[]) => any) | undefined;
372
375
  onClose?: ((...args: any[]) => any) | undefined;
@@ -374,7 +377,6 @@ declare const AudioSdk: SFCWithInstall<import("vue").DefineComponent<{
374
377
  onRecordingHeightChange?: ((...args: any[]) => any) | undefined;
375
378
  }, {
376
379
  timed: number;
377
- realTimeRecognition: boolean;
378
380
  allowPunctuationMark: boolean;
379
381
  useSource: string;
380
382
  textPrefix: string;
@@ -6,9 +6,6 @@ declare const _default: import("vue").DefineComponent<{
6
6
  type: NumberConstructor;
7
7
  default: number;
8
8
  };
9
- realTimeRecognition: {
10
- type: BooleanConstructor;
11
- };
12
9
  allowPunctuationMark: {
13
10
  type: BooleanConstructor;
14
11
  default: boolean;
@@ -30,8 +27,12 @@ declare const _default: import("vue").DefineComponent<{
30
27
  type: StringConstructor;
31
28
  default: string;
32
29
  };
30
+ appCode: {
31
+ type: StringConstructor;
32
+ };
33
33
  }, {
34
34
  consultationRecordUrl: string;
35
+ chatBoxinit: string;
35
36
  cssVars: import("vue").ComputedRef<AnyObject>;
36
37
  audioSdk: AudioSDK;
37
38
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
@@ -39,9 +40,6 @@ declare const _default: import("vue").DefineComponent<{
39
40
  type: NumberConstructor;
40
41
  default: number;
41
42
  };
42
- realTimeRecognition: {
43
- type: BooleanConstructor;
44
- };
45
43
  allowPunctuationMark: {
46
44
  type: BooleanConstructor;
47
45
  default: boolean;
@@ -63,6 +61,9 @@ declare const _default: import("vue").DefineComponent<{
63
61
  type: StringConstructor;
64
62
  default: string;
65
63
  };
64
+ appCode: {
65
+ type: StringConstructor;
66
+ };
66
67
  }>> & {
67
68
  onSuccess?: ((...args: any[]) => any) | undefined;
68
69
  onClose?: ((...args: any[]) => any) | undefined;
@@ -77,6 +78,7 @@ declare const _default: import("vue").DefineComponent<{
77
78
  recordingRef: import("vue").Ref<any>;
78
79
  isRecording: import("vue").Ref<boolean>;
79
80
  loading: import("vue").Ref<boolean>;
81
+ audioType: import("vue").Ref<"websocket" | "http" | undefined>;
80
82
  content: any;
81
83
  wsConnected: import("vue").ComputedRef<boolean | undefined>;
82
84
  recorderStatus: import("vue").ComputedRef<"" | "fail">;
@@ -99,6 +101,7 @@ declare const _default: import("vue").DefineComponent<{
99
101
  onPause: () => void;
100
102
  onResume: () => void;
101
103
  handleToAnalyzing: (obj?: AnyObject) => Promise<void>;
104
+ getAudioType: () => Promise<void>;
102
105
  createMedicalRecord: () => Promise<void>;
103
106
  CRecording: import("vue").DefineComponent<{
104
107
  content: {
@@ -202,8 +205,8 @@ declare const _default: import("vue").DefineComponent<{
202
205
  audioChartRef: import("vue").Ref<HTMLDivElement | undefined>;
203
206
  audioChartSamllRef: import("vue").Ref<HTMLDivElement | undefined>;
204
207
  contentScrollRef: import("vue").Ref<HTMLDivElement | undefined>;
205
- isActive: import("vue").Ref<boolean>;
206
208
  isWarning: import("vue").Ref<boolean>;
209
+ isActive: import("vue").Ref<boolean>;
207
210
  formattedTime: import("vue").ComputedRef<string>;
208
211
  isCountFinished: import("vue").Ref<boolean>;
209
212
  isCountActive: import("vue").Ref<boolean>;
@@ -341,9 +344,6 @@ declare const _default: import("vue").DefineComponent<{
341
344
  type: NumberConstructor;
342
345
  default: number;
343
346
  };
344
- realTimeRecognition: {
345
- type: BooleanConstructor;
346
- };
347
347
  allowPunctuationMark: {
348
348
  type: BooleanConstructor;
349
349
  default: boolean;
@@ -365,6 +365,9 @@ declare const _default: import("vue").DefineComponent<{
365
365
  type: StringConstructor;
366
366
  default: string;
367
367
  };
368
+ appCode: {
369
+ type: StringConstructor;
370
+ };
368
371
  }>> & {
369
372
  onSuccess?: ((...args: any[]) => any) | undefined;
370
373
  onClose?: ((...args: any[]) => any) | undefined;
@@ -372,7 +375,6 @@ declare const _default: import("vue").DefineComponent<{
372
375
  onRecordingHeightChange?: ((...args: any[]) => any) | undefined;
373
376
  }, {
374
377
  timed: number;
375
- realTimeRecognition: boolean;
376
378
  allowPunctuationMark: boolean;
377
379
  useSource: string;
378
380
  textPrefix: string;
@@ -21,9 +21,6 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
21
21
  type: Number,
22
22
  default: 5
23
23
  },
24
- realTimeRecognition: {
25
- type: Boolean
26
- },
27
24
  allowPunctuationMark: {
28
25
  type: Boolean,
29
26
  default: true
@@ -44,6 +41,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
44
41
  textPrefix: {
45
42
  type: String,
46
43
  default: ""
44
+ },
45
+ appCode: {
46
+ type: String
47
47
  }
48
48
  },
49
49
  emits: ["close", "success", "fail", "recordingHeightChange"],
@@ -53,6 +53,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
53
53
  }) {
54
54
  const props = __props;
55
55
  const consultationRecordUrl = "/flow/openApi/consultationRecord";
56
+ const chatBoxinit = "/flow/ai/api/chatBoxInit";
56
57
  const cssVars = useTheme();
57
58
  const audioSdk = AudioSDK.create();
58
59
  const attrs = useAttrs();
@@ -60,10 +61,15 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
60
61
  const recordingRef = ref();
61
62
  const isRecording = ref(false);
62
63
  const loading = ref(false);
64
+ const audioType = ref();
63
65
  const content = computed(() => {
64
66
  return audioSdk.contentRef.value;
65
67
  });
66
- const wsConnected = computed(() => audioSdk.wsConnected.value);
68
+ const wsConnected = computed(() => {
69
+ if (audioType.value === "http")
70
+ return true;
71
+ return audioSdk.wsConnected.value;
72
+ });
67
73
  const recorderStatus = computed(() => audioSdk.recorderStatus.value);
68
74
  const recordingProps = computed(() => {
69
75
  return {
@@ -157,10 +163,36 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
157
163
  isRecording.value = false;
158
164
  }
159
165
  };
166
+ const getAudioType = async () => {
167
+ if (!props.appCode || !props.token)
168
+ return;
169
+ try {
170
+ const {
171
+ data
172
+ } = await axios.post(chatBoxinit, {
173
+ appCode: props.appCode,
174
+ configs: props.configs || {}
175
+ }, {
176
+ headers: {
177
+ authorization: props.token
178
+ }
179
+ });
180
+ if (!(data == null ? void 0 : data.success))
181
+ return;
182
+ if (Reflect.has((data == null ? void 0 : data.data) || {}, "voiceStreamFlag")) {
183
+ audioType.value = data.data.voiceStreamFlag ? "websocket" : "http";
184
+ }
185
+ } catch (error) {
186
+ }
187
+ };
160
188
  const createMedicalRecord = async () => {
189
+ var _a;
161
190
  isRecording.value = true;
162
191
  try {
192
+ if (!audioType.value)
193
+ await getAudioType();
163
194
  const res = await audioSdk.start({
195
+ type: (_a = audioType.value) != null ? _a : "websocket",
164
196
  ...props,
165
197
  ...attrs
166
198
  });
@@ -114,8 +114,8 @@ declare const _default: import("vue").DefineComponent<{
114
114
  audioChartRef: import("vue").Ref<HTMLDivElement | undefined>;
115
115
  audioChartSamllRef: import("vue").Ref<HTMLDivElement | undefined>;
116
116
  contentScrollRef: import("vue").Ref<HTMLDivElement | undefined>;
117
- isActive: import("vue").Ref<boolean>;
118
117
  isWarning: import("vue").Ref<boolean>;
118
+ isActive: import("vue").Ref<boolean>;
119
119
  formattedTime: import("vue").ComputedRef<string>;
120
120
  isCountFinished: import("vue").Ref<boolean>;
121
121
  isCountActive: import("vue").Ref<boolean>;
@@ -102,8 +102,8 @@ declare const _default: import("vue").DefineComponent<{
102
102
  audioChartRef: import("vue").Ref<HTMLDivElement | undefined>;
103
103
  audioChartSamllRef: import("vue").Ref<HTMLDivElement | undefined>;
104
104
  contentScrollRef: import("vue").Ref<HTMLDivElement | undefined>;
105
- isActive: import("vue").Ref<boolean>;
106
105
  isWarning: import("vue").Ref<boolean>;
106
+ isActive: import("vue").Ref<boolean>;
107
107
  formattedTime: import("vue").ComputedRef<string>;
108
108
  isCountFinished: import("vue").Ref<boolean>;
109
109
  isCountActive: import("vue").Ref<boolean>;
@@ -24,7 +24,14 @@ const _hoisted_3 = {
24
24
  const _hoisted_4 = {
25
25
  class: "tip-small"
26
26
  };
27
- const _hoisted_5 = /* @__PURE__ */ createElementVNode("span", null, "\u6682\u505C", -1);
27
+ const _hoisted_5 = /* @__PURE__ */ createElementVNode("span", null, function() {
28
+ var _a, _b, _c;
29
+ try {
30
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.630")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.630")) || "\u6682\u505C";
31
+ } catch (e) {
32
+ return "\u6682\u505C";
33
+ }
34
+ }(), -1);
28
35
  const _hoisted_6 = /* @__PURE__ */ createElementVNode("span", null, "\u7EE7\u7EED", -1);
29
36
  const _hoisted_7 = /* @__PURE__ */ createElementVNode("span", null, function() {
30
37
  var _a, _b, _c;
@@ -120,9 +127,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
120
127
  const audioChartRef = ref();
121
128
  const audioChartSamllRef = ref();
122
129
  const contentScrollRef = ref();
130
+ const isWarning = ref(false);
123
131
  const {
124
132
  isActive,
125
- isWarning,
126
133
  formattedTime,
127
134
  isCountFinished,
128
135
  isCountActive,
@@ -322,7 +329,14 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
322
329
  disabled: unref(btnDisabled),
323
330
  onClick: unref(onPause)
324
331
  }, {
325
- default: withCtx(() => [createTextVNode("\u6682\u505C")]),
332
+ default: withCtx(() => [createTextVNode(function() {
333
+ var _a, _b, _c;
334
+ try {
335
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.630")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.630")) || "\u6682\u505C";
336
+ } catch (e) {
337
+ return "\u6682\u505C";
338
+ }
339
+ }())]),
326
340
  _: 1
327
341
  }, 8, ["disabled", "onClick"]), [[vShow, unref(isActive)]]), withDirectives(createVNode(unref(NButton), {
328
342
  size: "large",
@@ -53,6 +53,7 @@ declare const CBaseSearch: SFCWithInstall<import("vue").DefineComponent<{
53
53
  defaultValue: any;
54
54
  defValueUnit: any;
55
55
  optionSetting: string | undefined;
56
+ dateShortcuts: any[] | undefined;
56
57
  multiple: boolean;
57
58
  manualMapping: boolean | null | undefined;
58
59
  showWholeOption: boolean | undefined;
@@ -76,6 +77,7 @@ declare const CBaseSearch: SFCWithInstall<import("vue").DefineComponent<{
76
77
  accurateSearch: any;
77
78
  extendKey: string;
78
79
  extendType: string;
80
+ dateShortcuts: any[];
79
81
  }[];
80
82
  transformParams: (paramsList: any[]) => any;
81
83
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
@@ -120,6 +122,7 @@ declare const CBaseSearch: SFCWithInstall<import("vue").DefineComponent<{
120
122
  unit: "custom" | null;
121
123
  widgetType?: string | undefined;
122
124
  dynamicBaseList?: any[] | undefined;
125
+ dateShortcuts?: any[] | undefined;
123
126
  isAccurateSearch?: boolean | undefined;
124
127
  accurateSearchKey?: string | undefined;
125
128
  }[]>;
@@ -54,6 +54,7 @@ declare const _default: import("vue").DefineComponent<{
54
54
  defaultValue: any;
55
55
  defValueUnit: any;
56
56
  optionSetting: string | undefined;
57
+ dateShortcuts: any[] | undefined;
57
58
  multiple: boolean;
58
59
  manualMapping: boolean | null | undefined;
59
60
  showWholeOption: boolean | undefined;
@@ -77,6 +78,7 @@ declare const _default: import("vue").DefineComponent<{
77
78
  accurateSearch: any;
78
79
  extendKey: string;
79
80
  extendType: string;
81
+ dateShortcuts: any[];
80
82
  }[];
81
83
  transformParams: (paramsList: any[]) => any;
82
84
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
@@ -121,6 +123,7 @@ declare const _default: import("vue").DefineComponent<{
121
123
  unit: "custom" | null;
122
124
  widgetType?: string | undefined;
123
125
  dynamicBaseList?: any[] | undefined;
126
+ dateShortcuts?: any[] | undefined;
124
127
  isAccurateSearch?: boolean | undefined;
125
128
  accurateSearchKey?: string | undefined;
126
129
  }[]>;
@@ -58,7 +58,14 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
58
58
  let res = "";
59
59
  switch (props.noDataImg) {
60
60
  case "no-permission":
61
- res = "\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458";
61
+ res = function() {
62
+ var _a, _b, _c;
63
+ try {
64
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.622")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.622")) || "\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458";
65
+ } catch (e) {
66
+ return "\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458";
67
+ }
68
+ }();
62
69
  break;
63
70
  case "failure":
64
71
  res = function() {
@@ -25,7 +25,14 @@ const useTableParse = (formatData) => {
25
25
  const du = hu * 24;
26
26
  if (value < du) {
27
27
  const v2 = Math.floor(value / 60) % 60;
28
- return `${Math.floor(value / hu)}\u5C0F\u65F6${v2 ? v2 + "\u5206" : ""}`;
28
+ return `${Math.floor(value / hu)}\u5C0F\u65F6${v2 ? v2 + function() {
29
+ var _a, _b, _c;
30
+ try {
31
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.611")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.611")) || "\u5206";
32
+ } catch (e) {
33
+ return "\u5206";
34
+ }
35
+ }() : ""}`;
29
36
  }
30
37
  const MU = du * 30;
31
38
  if (value < MU) {
@@ -1159,6 +1159,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
1159
1159
  immediate: true
1160
1160
  });
1161
1161
  async function directPrint() {
1162
+ encapBrowserLog({
1163
+ type: "\u4E3B\u52A8\u8C03\u7528\u6253\u5370\u65B9\u6CD5"
1164
+ }, "PRINT-SDK");
1162
1165
  await handleClickBtn(false);
1163
1166
  handleClickPrintAll();
1164
1167
  }
@@ -35,6 +35,10 @@ export declare const CallbackMaps: Map<string, {
35
35
  businessFormatter: {
36
36
  type: import("vue").PropType<import("../../../../../components/form-render").FormBusinessFormatter>;
37
37
  };
38
+ nominalAge: {
39
+ type: BooleanConstructor;
40
+ default: boolean;
41
+ };
38
42
  schema: {
39
43
  type: import("vue").PropType<import("@formily/json-schema").Stringify<{
40
44
  [key: symbol]: any;
@@ -239,6 +243,10 @@ export declare const CallbackMaps: Map<string, {
239
243
  businessFormatter: {
240
244
  type: import("vue").PropType<import("../../../../../components/form-render").FormBusinessFormatter>;
241
245
  };
246
+ nominalAge: {
247
+ type: BooleanConstructor;
248
+ default: boolean;
249
+ };
242
250
  schema: {
243
251
  type: import("vue").PropType<import("@formily/json-schema").Stringify<{
244
252
  [key: symbol]: any;
@@ -804,6 +812,10 @@ export declare const CallbackMaps: Map<string, {
804
812
  businessFormatter: {
805
813
  type: import("vue").PropType<import("../../../../../components/form-render").FormBusinessFormatter>;
806
814
  };
815
+ nominalAge: {
816
+ type: BooleanConstructor;
817
+ default: boolean;
818
+ };
807
819
  schema: {
808
820
  type: import("vue").PropType<import("@formily/json-schema").Stringify<{
809
821
  [key: symbol]: any;
@@ -1010,6 +1022,7 @@ export declare const CallbackMaps: Map<string, {
1010
1022
  feedbackType: "default" | "tooltip";
1011
1023
  fixMemoLeak: boolean;
1012
1024
  lazyRender: boolean;
1025
+ nominalAge: boolean;
1013
1026
  operationalFormInit: boolean;
1014
1027
  incrementalRender: boolean;
1015
1028
  }>;
@@ -208,7 +208,14 @@ const ageCodeMap = {
208
208
  return "\u5468";
209
209
  }
210
210
  }(),
211
- N: "\u5206\u949F"
211
+ N: function() {
212
+ var _a, _b, _c;
213
+ try {
214
+ return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.638")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.638")) || "\u5206\u949F";
215
+ } catch (e) {
216
+ return "\u5206\u949F";
217
+ }
218
+ }()
212
219
  };
213
220
  function birthdayToAge(birthday) {
214
221
  const {