cnhis-design-vue 3.1.48-release.3 → 3.1.48-release.4
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/README.md +87 -87
- package/es/components/base-search/index.d.ts +13 -0
- package/es/components/base-search/src/index.vue.d.ts +13 -0
- package/es/components/base-search/src/index.vue2.js +1 -1
- package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
- package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +1 -0
- package/es/components/bpmn-workflow/types/ModelingModule.d.ts +1 -0
- package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +1 -0
- package/es/components/card-reader-sdk/src/cardReaderSDK.d.ts +29 -21
- package/es/components/card-reader-sdk/src/cardReaderSDK.js +1 -1
- package/es/components/card-reader-sdk/src/components/readCardDialog.vue.d.ts +19 -0
- package/es/components/card-reader-sdk/src/components/readCardDialog.vue2.js +1 -1
- package/es/components/card-reader-sdk/src/constants/index.d.ts +60 -168
- package/es/components/card-reader-sdk/src/constants/index.js +1 -1
- package/es/components/card-reader-sdk/src/insuranceSDK.d.ts +1 -6
- package/es/components/card-reader-sdk/src/insuranceSDK.js +1 -1
- package/es/components/card-reader-sdk/src/types/index.d.ts +11 -11
- package/es/components/card-reader-sdk/src/utils/index.d.ts +1 -1
- package/es/components/card-reader-sdk/src/utils/index.js +1 -1
- package/es/components/card-reader-sdk/src/utils/readHealthCard.d.ts +6 -1
- package/es/components/card-reader-sdk/src/utils/readHealthCard.js +1 -1
- package/es/components/fabric-chart/src/constants/index.d.ts +4 -0
- package/es/components/fabric-chart/src/constants/index.js +1 -1
- package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +1 -1
- package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcessChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.d.ts +7 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useLeft.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useOther.d.ts +7 -2
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useOther.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useBottom.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useCenter.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useLeft.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useOther.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useTop.js +1 -1
- package/es/components/fabric-chart/src/utils/index.d.ts +6 -0
- package/es/components/fabric-chart/src/utils/index.js +1 -1
- package/es/components/form-config/index.d.ts +28 -0
- package/es/components/form-config/src/FormConfig.vue.d.ts +28 -0
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +12 -0
- package/es/components/form-render/src/components/renderer/radio&checkbox.d.ts +13 -0
- package/es/components/form-render/src/components/renderer/radio_checkbox.js +1 -1
- package/es/components/form-render/src/components/renderer/select.d.ts +3 -0
- package/es/components/form-render/src/components/renderer/select.js +1 -1
- package/es/components/form-render/src/hooks/useBusinessBinding.d.ts +1 -1
- package/es/components/form-render/src/hooks/useBusinessBinding.js +1 -1
- package/es/components/form-render/src/hooks/useComplexOptions.d.ts +9 -6
- package/es/components/form-render/src/hooks/useComplexOptions.js +1 -1
- package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -1
- package/es/components/form-render/src/hooks/useFieldNormalize.js +1 -1
- package/es/components/form-render/src/hooks/useFormRenderOptions.d.ts +4 -0
- package/es/components/form-render/src/hooks/useFormRenderOptions.js +1 -1
- package/es/components/form-render/src/types/fieldItem.d.ts +5 -0
- package/es/components/form-render/src/types/index.d.ts +1 -0
- package/es/components/form-render/style/index.css +1 -1
- package/es/components/iho-table/index.d.ts +8 -3
- package/es/components/iho-table/src/IhoTable.vue.d.ts +8 -3
- package/es/components/iho-table/src/constants/index.d.ts +4 -5
- package/es/components/iho-table/src/constants/index.js +1 -1
- package/es/components/iho-table/src/hooks/tapHooks/index.d.ts +1 -0
- package/es/components/iho-table/src/hooks/tapHooks/useEventHooks.d.ts +2 -1
- package/es/components/iho-table/src/hooks/tapHooks/useEventHooks.js +1 -1
- package/es/components/iho-table/src/hooks/useColumnConfigAdaptor.js +1 -1
- package/es/components/iho-table/src/plugins/highLightSetPlugin.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.d.ts +9 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/editSeparate.vue.d.ts +2 -2
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/editSeparate.vue2.js +1 -1
- package/es/components/iho-table/src/plugins/rowGroupSettingPlugin/rowGroupUtils.js +1 -1
- package/es/components/iho-table/src/plugins/virtualTreePlugin/index.js +1 -1
- package/es/components/iho-table/src/types/index.d.ts +3 -1
- package/es/components/iho-table/src/types/pluginType.d.ts +5 -3
- package/es/components/index.css +1 -1
- package/es/components/info-header/style/index.css +1 -1
- package/es/components/scale-view/src/ScaleView.vue2.js +1 -1
- package/es/components/select-label/src/LabelFormContent.vue2.js +1 -1
- package/es/components/select-person/src/SearchMultiple.vue.d.ts +0 -6
- package/es/components/shortcut-setter/index.d.ts +4 -0
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +4 -0
- package/es/components/table-export-field/src/components/ExportModal.vue.d.ts +3 -0
- package/es/env.d.ts +25 -25
- package/es/shared/assets/img/failure.png.js +1 -1
- package/es/shared/assets/img/no-permission.png.js +1 -1
- package/es/shared/assets/img/nodata.png.js +1 -1
- package/es/shared/assets/img/notfound.png.js +1 -1
- package/es/shared/assets/img/qr.png.js +1 -1
- package/es/shared/assets/img/success.png.js +1 -1
- package/es/shared/assets/img/video.png.js +1 -1
- package/es/shared/assets/img/video_default_cover.png.js +1 -1
- package/es/shared/assets/img/xb_big.png.js +1 -1
- package/es/shared/assets/img/xb_small.png.js +1 -1
- package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +86 -0
- package/es/shared/package.json.js +1 -1
- package/es/shared/utils/fabricjs/index.d.ts +6823 -0
- package/es/shared/utils/tapable/index.d.ts +139 -0
- package/es/shared/utils/tapableLess.d.ts +28 -0
- package/es/shared/utils/tapableLess.js +1 -0
- 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
|
+
```
|
|
@@ -18,6 +18,10 @@ declare const CBaseSearch: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
18
18
|
filterApiConfig: {
|
|
19
19
|
type: ObjectConstructor;
|
|
20
20
|
};
|
|
21
|
+
appendValueConfig: {
|
|
22
|
+
type: ObjectConstructor;
|
|
23
|
+
default: () => {};
|
|
24
|
+
};
|
|
21
25
|
}, {
|
|
22
26
|
outQuickSearchFn: {
|
|
23
27
|
handlerInitSearchItem(arr: import("..").ISearchType[]): void;
|
|
@@ -87,6 +91,10 @@ declare const CBaseSearch: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
87
91
|
filterApiConfig: {
|
|
88
92
|
type: ObjectConstructor;
|
|
89
93
|
};
|
|
94
|
+
appendValueConfig: {
|
|
95
|
+
type: ObjectConstructor;
|
|
96
|
+
default: () => {};
|
|
97
|
+
};
|
|
90
98
|
}>> & {
|
|
91
99
|
onFoldQuickSearch?: ((...args: any[]) => any) | undefined;
|
|
92
100
|
onOnFilterSearch?: ((...args: any[]) => any) | undefined;
|
|
@@ -199,6 +207,10 @@ declare const CBaseSearch: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
199
207
|
filterApiConfig: {
|
|
200
208
|
type: ObjectConstructor;
|
|
201
209
|
};
|
|
210
|
+
appendValueConfig: {
|
|
211
|
+
type: ObjectConstructor;
|
|
212
|
+
default: () => {};
|
|
213
|
+
};
|
|
202
214
|
}>> & {
|
|
203
215
|
onFoldQuickSearch?: ((...args: any[]) => any) | undefined;
|
|
204
216
|
onOnFilterSearch?: ((...args: any[]) => any) | undefined;
|
|
@@ -208,5 +220,6 @@ declare const CBaseSearch: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
208
220
|
showSettings: import("..").IsettingsType;
|
|
209
221
|
searchFieldList: import("..").IApiServerType[];
|
|
210
222
|
qqConObjCount: number;
|
|
223
|
+
appendValueConfig: Record<string, any>;
|
|
211
224
|
}>>;
|
|
212
225
|
export default CBaseSearch;
|
|
@@ -19,6 +19,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
19
19
|
filterApiConfig: {
|
|
20
20
|
type: ObjectConstructor;
|
|
21
21
|
};
|
|
22
|
+
appendValueConfig: {
|
|
23
|
+
type: ObjectConstructor;
|
|
24
|
+
default: () => {};
|
|
25
|
+
};
|
|
22
26
|
}, {
|
|
23
27
|
outQuickSearchFn: {
|
|
24
28
|
handlerInitSearchItem(arr: ISearchType[]): void;
|
|
@@ -88,6 +92,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
88
92
|
filterApiConfig: {
|
|
89
93
|
type: ObjectConstructor;
|
|
90
94
|
};
|
|
95
|
+
appendValueConfig: {
|
|
96
|
+
type: ObjectConstructor;
|
|
97
|
+
default: () => {};
|
|
98
|
+
};
|
|
91
99
|
}>> & {
|
|
92
100
|
onFoldQuickSearch?: ((...args: any[]) => any) | undefined;
|
|
93
101
|
onOnFilterSearch?: ((...args: any[]) => any) | undefined;
|
|
@@ -200,6 +208,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
200
208
|
filterApiConfig: {
|
|
201
209
|
type: ObjectConstructor;
|
|
202
210
|
};
|
|
211
|
+
appendValueConfig: {
|
|
212
|
+
type: ObjectConstructor;
|
|
213
|
+
default: () => {};
|
|
214
|
+
};
|
|
203
215
|
}>> & {
|
|
204
216
|
onFoldQuickSearch?: ((...args: any[]) => any) | undefined;
|
|
205
217
|
onOnFilterSearch?: ((...args: any[]) => any) | undefined;
|
|
@@ -209,5 +221,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
209
221
|
showSettings: IsettingsType;
|
|
210
222
|
searchFieldList: IApiServerType[];
|
|
211
223
|
qqConObjCount: number;
|
|
224
|
+
appendValueConfig: Record<string, any>;
|
|
212
225
|
}>;
|
|
213
226
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,ref as t,provide as l,computed as i,watch as a,openBlock as n,createElementBlock as r,createElementVNode as s,createCommentVNode as o,renderSlot as u,unref as c,createVNode as f,withCtx as d,createTextVNode as
|
|
1
|
+
import{defineComponent as e,ref as t,provide as l,computed as i,watch as a,openBlock as n,createElementBlock as r,createElementVNode as s,createCommentVNode as o,renderSlot as u,unref as c,createVNode as f,withCtx as d,createTextVNode as m,toDisplayString as h,Fragment as p,renderList as v}from"vue";import b from"../../table-filter/src/components/render-widget/index.vue.js";import g from"../../table-filter/src/hooks/useMixins.js";import y from"../../table-filter/src/hooks/useAdvanced.js";import C from"../../table-filter/src/hooks/useRenderWidget.js";import{NButton as k,NIcon as j}from"naive-ui";import{Search as S}from"@vicons/ionicons5";import{isObject as x,cloneDeep as O}from"lodash-es";import{InjectionFilterApiConfig as q,InjectionFilterSearchConfig as R}from"../../table-filter/src/constants/index.js";const A={class:"base-search-block"},F={class:"base-container"},V={class:"bease-left"},Q={class:"base-ul"},_={key:0,class:"baseli showQuickBtn"},w=s("i",{class:"iconfont-table-filter icon-table-filter-shaixuan",style:{color:"inherit","margin-right":"6px"}},null,-1),I={key:0,class:"qqConObjCount"},N={key:1,class:"baseli"},B={key:2,class:"baseli"},E=s("i",{class:"iconfont-table-filter icon-table-filter-reset",style:{"margin-right":"6px"}},null,-1);var D=e({__name:"index",props:{showSettings:{type:Object,default:()=>({hideQuickSearch:0,hideResetBtn:0})},searchFieldList:{type:Array,default:()=>[]},qqConObjCount:{type:Number,default:0},filterApiConfig:{type:Object},appendValueConfig:{type:Object,default:()=>({})}},emits:["foldQuickSearch","onFilterSearch","handleReset","getFilterParam"],setup(e,{expose:D,emit:L}){const P=e,{outQuickSearchFn:W}=g(),{isRender:U,getRenderSearchConObj:$,isExistDefValByRenderWidget:z,resetRenderWidgetValue:M}=C(),{transformData:T,transformParams:G}=y(),H=t([]),J=t(!1),K=t([]);l(q,P.filterApiConfig),l(R,K);const X=i((()=>Z("hideQuickSearch"))),Y=i((()=>Z("hideResetBtn")));function Z(e){return 0==P.showSettings[e]}function ee(){L("foldQuickSearch",!0)}function te(e={}){const t=le()||[];!function(e,t,l=!1,i={}){let a=[];K.value.length>0&&(a=O(K.value));L("onFilterSearch",e,t,l,a,i)}(t,G(t),!0,e)}function le(){return function(e){if(!Array.isArray(e))return[];let t=[];for(let l=0;l<e.length;l++){let i=e[l];const a=$(i);a&&t.push(a)}return t.filter((e=>e.value))}(K.value)}function ie(){!function(e){if(!Array.isArray(e))return;e.forEach((e=>{M(e)})),W.handlerInitSearchItem(e)}(K.value),L("handleReset",{targetType:"outQuickSearchReset"})}return a((()=>P.searchFieldList),(e=>{e&&e.length>0&&function(){K.value=[];let e=O(T(P.searchFieldList,{_filterApiConfig:P.filterApiConfig})).filter((e=>1==e.isShowSearch&&1==e.filterExplicit));K.value=e,W.handlerInitSearchItem(K.value),K.value.some((e=>U(e)?z(e):!!e.explicitDefaultVal))}()}),{immediate:!0,deep:!0}),a((()=>P.qqConObjCount),(e=>{const t=H.value.length||0;J.value=t+Number(e)>0&&Y.value}),{immediate:!0}),a((()=>K),(()=>{H.value=le()||[];const e=G(H.value);J.value=H.value.length+Number(P.qqConObjCount)>0&&Y.value,L("getFilterParam",H.value,e)}),{immediate:!0,deep:!0}),a((()=>P.appendValueConfig),(e=>{if(x(e)&&Object.keys(e).length>0){const t=Object.keys(e);K.value.forEach((l=>{t.includes(l.columnName)&&(l.value=e[l.columnName])}))}}),{immediate:!0,deep:!0}),D({handleReset:ie}),(t,l)=>(n(),r("div",A,[s("div",F,[s("div",V,[s("ul",Q,[o(" 筛选分类插槽 "),u(t.$slots,"classification"),c(X)?(n(),r("li",_,[f(c(k),{class:"search-default",type:"default",onClick:ee},{default:d((()=>[w,m(" 筛选"),e.qqConObjCount?(n(),r("span",I,"("+h(e.qqConObjCount)+")",1)):o("v-if",!0)])),_:1})])):o("v-if",!0),o(" start--筛选外显--start "),(n(!0),r(p,null,v(K.value,(e=>(n(),r(p,null,[e.isRender?(n(),r("li",{class:"baseli outQuickSearch-li",key:e._frontId},[f(b,{cfg:e,modelValue:e.value,"onUpdate:modelValue":t=>e.value=t,onOutFilterChange:te},null,8,["cfg","modelValue","onUpdate:modelValue"])])):o("v-if",!0)],64)))),256)),o(" end--筛选外显--end "),o(" 查询按钮 "),K.value&&K.value.length>0?(n(),r("li",N,[f(c(k),{type:"primary",onClick:te},{default:d((()=>[f(c(j),{component:c(S),size:"16",style:{"margin-right":"6px"}},null,8,["component"]),m(" 查询 ")])),_:1})])):o("v-if",!0),o(" 重置按钮 "),J.value?(n(),r("li",B,[f(c(k),{onClick:ie},{default:d((()=>[E,m(" 重置 ")])),_:1})])):o("v-if",!0),o(" 业务按钮插槽 "),u(t.$slots,"buttons")])])])]))}});export{D as default};
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
declare module 'bpmn-js/lib/Viewer';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
declare module 'bpmn-js/lib/features/modeling';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
declare module 'diagram-js/lib/navigation/movecanvas';
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
+
import { AnyObject } from '../../../../es/shared/types';
|
|
1
2
|
import { ComponentInternalInstance } from 'vue';
|
|
3
|
+
import { TRANS_CMD } from './constants';
|
|
2
4
|
import { InsuranceType } from './types';
|
|
3
5
|
export default class CardReaderSDK {
|
|
4
6
|
private options;
|
|
7
|
+
static version: number;
|
|
8
|
+
static TRANS_CMD: typeof TRANS_CMD;
|
|
5
9
|
private loading;
|
|
6
10
|
private readHealthCardDialog;
|
|
7
11
|
private insurance;
|
|
@@ -9,36 +13,40 @@ export default class CardReaderSDK {
|
|
|
9
13
|
private get basicParamsRes();
|
|
10
14
|
static create(options?: InsuranceType.CardReadOptions): CardReaderSDK;
|
|
11
15
|
destroy(): void;
|
|
12
|
-
|
|
16
|
+
private createParams;
|
|
17
|
+
private checkLoading;
|
|
18
|
+
private checkResCodeAndLoading;
|
|
19
|
+
readHealthCard(instance?: ComponentInternalInstance, options?: {
|
|
20
|
+
inputProps?: AnyObject;
|
|
21
|
+
modalProps?: AnyObject;
|
|
22
|
+
}): Promise<string>;
|
|
13
23
|
readIdCard(params?: InsuranceType.CardReadParams): Promise<Partial<{
|
|
14
24
|
personinfo: Record<"sex" | "age" | "address" | "birthday" | "location" | "cardnum" | "cardpwd" | "folk" | "idnumber" | "ownpay" | "ptname" | "pttype" | "recordid" | "updateflag", string>;
|
|
15
|
-
cardinfo:
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
25
|
+
cardinfo: Partial<Record<"name" | "sex" | "age" | "address" | "birthday" | "idnumber" | "cardno" | "cardid" | "sex_code" | "nation_name" | "nation_code" | "idtype" | "issuer" | "issuedate" | "expirydate" | "hasphoto" | "telphone" | "companyname" | "age_code" | "age_name" | "ages", string>>;
|
|
26
|
+
iar1: Record<"acf01" | "iaa01" | "iab02" | "iac03" | "iad04" | "iai03" | "iak04" | "iak05" | "iak06" | "iak22" | "iar01" | "iar10" | "iar11" | "iar12" | "iar13" | "iar14" | "iar15" | "iar16" | "iar17" | "iar18" | "iar19" | "iar20" | "iar21" | "iar22" | "iar23" | "iar24" | "iar25" | "iar26" | "iar27" | "iar28" | "iar29" | "iar30" | "iar31" | "iar32" | "iar33" | "iar34" | "iar35" | "iar36" | "iar37" | "iar38" | "iar39" | "iar40" | "iar41" | "iar42" | "iar43" | "iar44" | "iar45" | "iar46" | "iar47" | "iar48" | "iar49" | "iar50" | "iar51" | "iar52" | "iar53" | "iar54" | "iar55" | "iar56" | "iar57" | "iar58" | "iar59" | "iar60" | "iar61" | "iar62" | "iar63" | "iar64" | "iar65" | "iar66" | "iar67" | "iar68" | "iar69" | "iar70" | "iar71" | "iar72" | "iar73" | "iar74" | "iar75", string>;
|
|
27
|
+
}> | undefined>;
|
|
28
|
+
readMemberCard(params?: InsuranceType.CardReadParams): Promise<Partial<{
|
|
29
|
+
personinfo: Record<"sex" | "age" | "address" | "birthday" | "location" | "cardnum" | "cardpwd" | "folk" | "idnumber" | "ownpay" | "ptname" | "pttype" | "recordid" | "updateflag", string>;
|
|
30
|
+
cardinfo: Partial<Record<"name" | "sex" | "age" | "address" | "birthday" | "idnumber" | "cardno" | "cardid" | "sex_code" | "nation_name" | "nation_code" | "idtype" | "issuer" | "issuedate" | "expirydate" | "hasphoto" | "telphone" | "companyname" | "age_code" | "age_name" | "ages", string>>;
|
|
31
|
+
iar1: Record<"acf01" | "iaa01" | "iab02" | "iac03" | "iad04" | "iai03" | "iak04" | "iak05" | "iak06" | "iak22" | "iar01" | "iar10" | "iar11" | "iar12" | "iar13" | "iar14" | "iar15" | "iar16" | "iar17" | "iar18" | "iar19" | "iar20" | "iar21" | "iar22" | "iar23" | "iar24" | "iar25" | "iar26" | "iar27" | "iar28" | "iar29" | "iar30" | "iar31" | "iar32" | "iar33" | "iar34" | "iar35" | "iar36" | "iar37" | "iar38" | "iar39" | "iar40" | "iar41" | "iar42" | "iar43" | "iar44" | "iar45" | "iar46" | "iar47" | "iar48" | "iar49" | "iar50" | "iar51" | "iar52" | "iar53" | "iar54" | "iar55" | "iar56" | "iar57" | "iar58" | "iar59" | "iar60" | "iar61" | "iar62" | "iar63" | "iar64" | "iar65" | "iar66" | "iar67" | "iar68" | "iar69" | "iar70" | "iar71" | "iar72" | "iar73" | "iar74" | "iar75", string>;
|
|
20
32
|
}> | undefined>;
|
|
21
|
-
|
|
33
|
+
writeMemberCard(params?: InsuranceType.CardReadParams): Promise<Partial<{
|
|
22
34
|
personinfo: Record<"sex" | "age" | "address" | "birthday" | "location" | "cardnum" | "cardpwd" | "folk" | "idnumber" | "ownpay" | "ptname" | "pttype" | "recordid" | "updateflag", string>;
|
|
23
|
-
cardinfo:
|
|
24
|
-
|
|
25
|
-
cardno: string;
|
|
26
|
-
};
|
|
27
|
-
iar1: Record<"iaa01" | "acf01" | "iab02" | "iac03" | "iad04" | "iai03" | "iak04" | "iak05" | "iak06" | "iak22" | "iar01" | "iar10" | "iar11" | "iar12" | "iar13" | "iar14" | "iar15" | "iar16" | "iar17" | "iar18" | "iar19" | "iar20" | "iar21" | "iar22" | "iar23" | "iar24" | "iar25" | "iar26" | "iar27" | "iar28" | "iar29" | "iar30" | "iar31" | "iar32" | "iar33" | "iar34" | "iar35" | "iar36" | "iar37" | "iar38" | "iar39" | "iar40" | "iar41" | "iar42" | "iar43" | "iar44" | "iar45" | "iar46" | "iar47" | "iar48" | "iar49" | "iar50" | "iar51" | "iar52" | "iar53" | "iar54" | "iar55" | "iar56" | "iar57" | "iar58" | "iar59" | "iar60" | "iar61" | "iar62" | "iar63" | "iar64" | "iar65" | "iar66" | "iar67" | "iar68" | "iar69" | "iar70" | "iar71" | "iar72" | "iar73" | "iar74" | "iar75", string>;
|
|
35
|
+
cardinfo: Partial<Record<"name" | "sex" | "age" | "address" | "birthday" | "idnumber" | "cardno" | "cardid" | "sex_code" | "nation_name" | "nation_code" | "idtype" | "issuer" | "issuedate" | "expirydate" | "hasphoto" | "telphone" | "companyname" | "age_code" | "age_name" | "ages", string>>;
|
|
36
|
+
iar1: Record<"acf01" | "iaa01" | "iab02" | "iac03" | "iad04" | "iai03" | "iak04" | "iak05" | "iak06" | "iak22" | "iar01" | "iar10" | "iar11" | "iar12" | "iar13" | "iar14" | "iar15" | "iar16" | "iar17" | "iar18" | "iar19" | "iar20" | "iar21" | "iar22" | "iar23" | "iar24" | "iar25" | "iar26" | "iar27" | "iar28" | "iar29" | "iar30" | "iar31" | "iar32" | "iar33" | "iar34" | "iar35" | "iar36" | "iar37" | "iar38" | "iar39" | "iar40" | "iar41" | "iar42" | "iar43" | "iar44" | "iar45" | "iar46" | "iar47" | "iar48" | "iar49" | "iar50" | "iar51" | "iar52" | "iar53" | "iar54" | "iar55" | "iar56" | "iar57" | "iar58" | "iar59" | "iar60" | "iar61" | "iar62" | "iar63" | "iar64" | "iar65" | "iar66" | "iar67" | "iar68" | "iar69" | "iar70" | "iar71" | "iar72" | "iar73" | "iar74" | "iar75", string>;
|
|
28
37
|
}> | undefined>;
|
|
29
|
-
|
|
38
|
+
readInsuranceCard(params?: InsuranceType.CardReadParams & {
|
|
30
39
|
iai03?: string;
|
|
31
40
|
bdp02?: string;
|
|
32
41
|
vaa05?: string;
|
|
33
42
|
}): Promise<Partial<{
|
|
34
43
|
personinfo: Record<"sex" | "age" | "address" | "birthday" | "location" | "cardnum" | "cardpwd" | "folk" | "idnumber" | "ownpay" | "ptname" | "pttype" | "recordid" | "updateflag", string>;
|
|
35
|
-
cardinfo:
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
44
|
+
cardinfo: Partial<Record<"name" | "sex" | "age" | "address" | "birthday" | "idnumber" | "cardno" | "cardid" | "sex_code" | "nation_name" | "nation_code" | "idtype" | "issuer" | "issuedate" | "expirydate" | "hasphoto" | "telphone" | "companyname" | "age_code" | "age_name" | "ages", string>>;
|
|
45
|
+
iar1: Record<"acf01" | "iaa01" | "iab02" | "iac03" | "iad04" | "iai03" | "iak04" | "iak05" | "iak06" | "iak22" | "iar01" | "iar10" | "iar11" | "iar12" | "iar13" | "iar14" | "iar15" | "iar16" | "iar17" | "iar18" | "iar19" | "iar20" | "iar21" | "iar22" | "iar23" | "iar24" | "iar25" | "iar26" | "iar27" | "iar28" | "iar29" | "iar30" | "iar31" | "iar32" | "iar33" | "iar34" | "iar35" | "iar36" | "iar37" | "iar38" | "iar39" | "iar40" | "iar41" | "iar42" | "iar43" | "iar44" | "iar45" | "iar46" | "iar47" | "iar48" | "iar49" | "iar50" | "iar51" | "iar52" | "iar53" | "iar54" | "iar55" | "iar56" | "iar57" | "iar58" | "iar59" | "iar60" | "iar61" | "iar62" | "iar63" | "iar64" | "iar65" | "iar66" | "iar67" | "iar68" | "iar69" | "iar70" | "iar71" | "iar72" | "iar73" | "iar74" | "iar75", string>;
|
|
46
|
+
}> | undefined>;
|
|
47
|
+
generalRequest(params?: InsuranceType.CardReadParams): Promise<Partial<{
|
|
48
|
+
personinfo: Record<"sex" | "age" | "address" | "birthday" | "location" | "cardnum" | "cardpwd" | "folk" | "idnumber" | "ownpay" | "ptname" | "pttype" | "recordid" | "updateflag", string>;
|
|
49
|
+
cardinfo: Partial<Record<"name" | "sex" | "age" | "address" | "birthday" | "idnumber" | "cardno" | "cardid" | "sex_code" | "nation_name" | "nation_code" | "idtype" | "issuer" | "issuedate" | "expirydate" | "hasphoto" | "telphone" | "companyname" | "age_code" | "age_name" | "ages", string>>;
|
|
50
|
+
iar1: Record<"acf01" | "iaa01" | "iab02" | "iac03" | "iad04" | "iai03" | "iak04" | "iak05" | "iak06" | "iak22" | "iar01" | "iar10" | "iar11" | "iar12" | "iar13" | "iar14" | "iar15" | "iar16" | "iar17" | "iar18" | "iar19" | "iar20" | "iar21" | "iar22" | "iar23" | "iar24" | "iar25" | "iar26" | "iar27" | "iar28" | "iar29" | "iar30" | "iar31" | "iar32" | "iar33" | "iar34" | "iar35" | "iar36" | "iar37" | "iar38" | "iar39" | "iar40" | "iar41" | "iar42" | "iar43" | "iar44" | "iar45" | "iar46" | "iar47" | "iar48" | "iar49" | "iar50" | "iar51" | "iar52" | "iar53" | "iar54" | "iar55" | "iar56" | "iar57" | "iar58" | "iar59" | "iar60" | "iar61" | "iar62" | "iar63" | "iar64" | "iar65" | "iar66" | "iar67" | "iar68" | "iar69" | "iar70" | "iar71" | "iar72" | "iar73" | "iar74" | "iar75", string>;
|
|
40
51
|
}> | undefined>;
|
|
41
|
-
private createBasicParams;
|
|
42
|
-
private checkLoading;
|
|
43
|
-
private checkResCodeAndLoading;
|
|
44
52
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{isFunction as a}from"lodash-es";import e
|
|
1
|
+
import{isFunction as a}from"lodash-es";import{TRANS_CMD as e}from"./constants/index.js";import t from"./insuranceSDK.js";import{ReadHealthCard as r}from"./utils/readHealthCard.js";let s=null;const n=class{constructor(a){if(this.options=a,this.loading=!1,this.readHealthCardDialog=new r,s)return s;s=this,this.insurance=new t}get basicParamsRes(){return a(this.options.basicParams)?this.options.basicParams():this.options.basicParams}static create(a={}){return new n(a)}destroy(){this.insurance.destroy()}createParams(a,e,t){var r,s;const{operatorname:n,operatorcode:i,...o}=this.basicParamsRes||{};return{transcmd:a,operatorname:null!=(r=e.operatorname)?r:n,operatorcode:null!=(s=e.operatorcode)?s:i,...o,...t}}checkLoading(){if(this.loading)return Promise.reject("请勿重复操作")}async checkResCodeAndLoading(a){try{this.loading=!0;const e=await a;return 3===e.returncode||"3"===e.returncode?Promise.reject(`${e.returnmsg||"操作失败"}`):e.returndata}finally{this.loading=!1}}async readHealthCard(a,e){return await this.checkLoading(),this.readHealthCardDialog.show({instance:a,...e})}async readIdCard(a={}){await this.checkLoading();const t=this.createParams(e.ID_CARD_READ,a,{transtype:"IDCARD",interfaceid:"0",transdata:{readtype:"2"}});return this.checkResCodeAndLoading(this.insurance.getInsuranceInfoPromise(t))}async readMemberCard(a={}){await this.checkLoading();const t=this.createParams(e.MEMBER_CARD_READ,a,{transsystem:"10",transtype:"IDCARD",interfaceid:"0",transdata:{readtype:"1"}});return this.checkResCodeAndLoading(this.insurance.getInsuranceInfoPromise(t))}async writeMemberCard(a={}){await this.checkLoading();const t=this.createParams(e.MEMBER_CARD_WRITE,a,{transsystem:"10",transtype:"IDCARD",interfaceid:"0"});return this.checkResCodeAndLoading(this.insurance.getInsuranceInfoPromise(t))}async readInsuranceCard(a={}){var t,r;await this.checkLoading();const s=this.createParams(e.NS_GETPERSONALINFO,a,{transchannel:"101",interfaceid:a.interfaceid,transtype:"YB0000",transdata:{...a.transdata,iar1:{...(null==(t=a.transdata)?void 0:t.iar1)||{acf01:"0",iak22:"0"}},personinfo:{...(null==(r=a.transdata)?void 0:r.personinfo)||{location:0,ownpay:"0"}}}});return this.checkResCodeAndLoading(this.insurance.getInsuranceInfoPromise(s))}async generalRequest(a={}){await this.checkLoading();const t=this.createParams(e.NS_GETPERSONALINFO,a);return this.checkResCodeAndLoading(this.insurance.getInsuranceInfoPromise(t))}};let i=n;i.version=1,i.TRANS_CMD=e;export{i as default};
|
|
@@ -1,11 +1,22 @@
|
|
|
1
|
+
import { AnyObject } from '../../../../../es/shared/types';
|
|
1
2
|
declare const _default: import("vue").DefineComponent<{
|
|
2
3
|
show: {
|
|
3
4
|
type: BooleanConstructor;
|
|
4
5
|
required: true;
|
|
5
6
|
};
|
|
7
|
+
inputProps: {
|
|
8
|
+
type: null;
|
|
9
|
+
required: true;
|
|
10
|
+
};
|
|
11
|
+
modalProps: {
|
|
12
|
+
type: null;
|
|
13
|
+
required: true;
|
|
14
|
+
};
|
|
6
15
|
}, {
|
|
7
16
|
props: {
|
|
8
17
|
show: boolean;
|
|
18
|
+
inputProps: AnyObject;
|
|
19
|
+
modalProps: AnyObject;
|
|
9
20
|
};
|
|
10
21
|
inputRef: import("vue").Ref<{
|
|
11
22
|
focus: () => void;
|
|
@@ -21,6 +32,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
21
32
|
type: BooleanConstructor;
|
|
22
33
|
required: true;
|
|
23
34
|
};
|
|
35
|
+
inputProps: {
|
|
36
|
+
type: null;
|
|
37
|
+
required: true;
|
|
38
|
+
};
|
|
39
|
+
modalProps: {
|
|
40
|
+
type: null;
|
|
41
|
+
required: true;
|
|
42
|
+
};
|
|
24
43
|
}>> & {
|
|
25
44
|
onClose?: ((...args: any[]) => any) | undefined;
|
|
26
45
|
onConfirm?: ((...args: any[]) => any) | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as
|
|
1
|
+
import{defineComponent as o,watch as e,nextTick as t,ref as n,openBlock as l,createBlock as s,unref as a,mergeProps as u,withCtx as r,createVNode as i,withKeys as p,withModifiers as c}from"vue";import{NModal as v,NInput as d}from"naive-ui";var f=o({__name:"readCardDialog",props:{show:{type:Boolean},inputProps:null,modalProps:null},emits:["update:show","confirm","close"],setup(o,{emit:f}){const m=o;e((()=>m.show),(async o=>{var e;o&&(await t(),null==(e=w.value)||e.focus())}));const w=n(),h=n("");function y(){f("update:show",!1),f("close")}function P(){f("confirm",h.value)}return(e,t)=>(l(),s(a(v),u({preset:"dialog",title:"扫码电子健康卡",show:o.show,"close-on-esc":!1,"show-icon":!1,"positive-text":"确认"},o.modalProps,{"trap-focus":!1,onClose:y,onPositiveClick:P}),{default:r((()=>[i(a(d),u({value:h.value,"onUpdate:value":t[0]||(t[0]=o=>h.value=o),ref_key:"inputRef",ref:w,placeholder:"请输入健康卡号"},o.inputProps,{onKeydown:p(c(P,["prevent","stop"]),["enter"])}),null,16,["value","onKeydown"])])),_:1},16,["show"]))}});export{f as default};
|