cnhis-design-vue 3.1.51-beta.23 → 3.1.51-beta.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/components/annotation-edit/src/type.d.ts +1 -1
- package/es/components/callback/src/components/render/popupMaps.d.ts +3 -3
- package/es/components/card-reader-sdk/src/cardReaderSDK.js +1 -1
- package/es/components/iho-table/index.d.ts +3 -3
- package/es/components/iho-table/src/IhoTable.vue.d.ts +4 -3
- package/es/components/iho-table/src/constants/index.d.ts +3 -2
- package/es/components/iho-table/src/types/index.d.ts +7 -0
- package/es/shared/package.json.js +1 -1
- package/package.json +2 -2
|
@@ -910,7 +910,7 @@ export declare const CallbackMaps: Map<string, {
|
|
|
910
910
|
default: () => never[];
|
|
911
911
|
};
|
|
912
912
|
annotation: {
|
|
913
|
-
type: import("vue").PropType<import("
|
|
913
|
+
type: import("vue").PropType<Record<string, import("../../../../annotation-edit/src/type").AnnotationItem>>;
|
|
914
914
|
};
|
|
915
915
|
}, {
|
|
916
916
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -927,7 +927,7 @@ export declare const CallbackMaps: Map<string, {
|
|
|
927
927
|
default: () => never[];
|
|
928
928
|
};
|
|
929
929
|
annotation: {
|
|
930
|
-
type: import("vue").PropType<import("
|
|
930
|
+
type: import("vue").PropType<Record<string, import("../../../../annotation-edit/src/type").AnnotationItem>>;
|
|
931
931
|
};
|
|
932
932
|
}>> & {
|
|
933
933
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
|
@@ -5548,7 +5548,7 @@ export declare const CallbackMaps: Map<string, {
|
|
|
5548
5548
|
default: () => never[];
|
|
5549
5549
|
};
|
|
5550
5550
|
annotation: {
|
|
5551
|
-
type: import("vue").PropType<import("
|
|
5551
|
+
type: import("vue").PropType<Record<string, import("../../../../annotation-edit/src/type").AnnotationItem>>;
|
|
5552
5552
|
};
|
|
5553
5553
|
}>> & {
|
|
5554
5554
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{isFunction as a}from"lodash-es";import{TRANS_CMD as t}from"./constants/index.js";import e 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 e}get basicParamsRes(){return a(this.options.basicParams)?this.options.basicParams():this.options.basicParams}static create(a={}){return new n(a)}static destroy(){null==s||s.destroy(),s=null}destroy(){this.insurance.destroy()}createParams(a,t,e){var r,s;const{operatorname:n,operatorcode:i,...o}=this.basicParamsRes||{};return{transcmd:a,operatorname:null!=(r=t.operatorname)?r:n,operatorcode:null!=(s=t.operatorcode)?s:i,...o,...e}}checkLoading(){if(this.loading)return Promise.reject("请勿重复操作")}async checkResCodeAndLoading(a){try{this.loading=!0;const t=await a;return 3===t.returncode||"3"===t.returncode?Promise.reject(`${t.returnmsg||"操作失败"}`):t.returndata}finally{this.loading=!1}}async readHealthCard(a,t){return await this.checkLoading(),this.readHealthCardDialog.show({instance:a,...t})}async readIdCard(a={}){await this.checkLoading();const e=this.createParams(t.ID_CARD_READ,a,{transtype:"IDCARD",interfaceid:"0",...a,transdata:{readtype:"2",...a.transdata}});return this.checkResCodeAndLoading(this.insurance.getInsuranceInfoPromise(e))}async readMemberCard(a={}){await this.checkLoading();const e=this.createParams(t.MEMBER_CARD_READ,a,{transsystem:"10",transtype:"IDCARD",interfaceid:"0",...a,transdata:{readtype:"1",...a.transdata}});return this.checkResCodeAndLoading(this.insurance.getInsuranceInfoPromise(e))}async writeMemberCard(a={}){await this.checkLoading();const e=this.createParams(t.MEMBER_CARD_WRITE,a,{transsystem:"10",transtype:"IDCARD",interfaceid:"0",...a,transdata:{readtype:"1",...a.transdata}});return this.checkResCodeAndLoading(this.insurance.getInsuranceInfoPromise(e))}async readInsuranceCard(a={}){var e,r;await this.checkLoading();const s=this.createParams(t.NS_GETPERSONALINFO,a,{transchannel:"101",interfaceid:a.interfaceid,transtype:"YB0000",transdata:{...a.transdata,iar1:{
|
|
1
|
+
import{isFunction as a}from"lodash-es";import{TRANS_CMD as t}from"./constants/index.js";import e 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 e}get basicParamsRes(){return a(this.options.basicParams)?this.options.basicParams():this.options.basicParams}static create(a={}){return new n(a)}static destroy(){null==s||s.destroy(),s=null}destroy(){this.insurance.destroy()}createParams(a,t,e){var r,s;const{operatorname:n,operatorcode:i,...o}=this.basicParamsRes||{};return{transcmd:a,operatorname:null!=(r=t.operatorname)?r:n,operatorcode:null!=(s=t.operatorcode)?s:i,...o,...e}}checkLoading(){if(this.loading)return Promise.reject("请勿重复操作")}async checkResCodeAndLoading(a){try{this.loading=!0;const t=await a;return 3===t.returncode||"3"===t.returncode?Promise.reject(`${t.returnmsg||"操作失败"}`):t.returndata}finally{this.loading=!1}}async readHealthCard(a,t){return await this.checkLoading(),this.readHealthCardDialog.show({instance:a,...t})}async readIdCard(a={}){await this.checkLoading();const e=this.createParams(t.ID_CARD_READ,a,{transtype:"IDCARD",interfaceid:"0",...a,transdata:{readtype:"2",...a.transdata}});return this.checkResCodeAndLoading(this.insurance.getInsuranceInfoPromise(e))}async readMemberCard(a={}){await this.checkLoading();const e=this.createParams(t.MEMBER_CARD_READ,a,{transsystem:"10",transtype:"IDCARD",interfaceid:"0",...a,transdata:{readtype:"1",...a.transdata}});return this.checkResCodeAndLoading(this.insurance.getInsuranceInfoPromise(e))}async writeMemberCard(a={}){await this.checkLoading();const e=this.createParams(t.MEMBER_CARD_WRITE,a,{transsystem:"10",transtype:"IDCARD",interfaceid:"0",...a,transdata:{readtype:"1",...a.transdata}});return this.checkResCodeAndLoading(this.insurance.getInsuranceInfoPromise(e))}async readInsuranceCard(a={}){var e,r;await this.checkLoading();const s=this.createParams(t.NS_GETPERSONALINFO,a,{transchannel:"101",interfaceid:a.interfaceid,transtype:"YB0000",transdata:{...a.transdata,iar1:{acf01:"0",iak22:"0",...null==(e=a.transdata)?void 0:e.iar1},personinfo:{location:0,ownpay:"0",...null==(r=a.transdata)?void 0:r.iar1}}});return this.checkResCodeAndLoading(this.insurance.getInsuranceInfoPromise(s))}async generalRequest(a={}){await this.checkLoading();const e=this.createParams(t.NS_GETPERSONALINFO,a);return this.checkResCodeAndLoading(this.insurance.getInsuranceInfoPromise(e))}};let i=n;i.version=1,i.TRANS_CMD=t;export{i as default};
|
|
@@ -17,7 +17,7 @@ declare const IhoTable: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
17
17
|
default: () => never[];
|
|
18
18
|
};
|
|
19
19
|
annotation: {
|
|
20
|
-
type: import("vue").PropType<import("
|
|
20
|
+
type: import("vue").PropType<Record<string, import("../annotation-edit/src/type").AnnotationItem>>;
|
|
21
21
|
};
|
|
22
22
|
}, {
|
|
23
23
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -34,7 +34,7 @@ declare const IhoTable: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
34
34
|
default: () => never[];
|
|
35
35
|
};
|
|
36
36
|
annotation: {
|
|
37
|
-
type: import("vue").PropType<import("
|
|
37
|
+
type: import("vue").PropType<Record<string, import("../annotation-edit/src/type").AnnotationItem>>;
|
|
38
38
|
};
|
|
39
39
|
}>> & {
|
|
40
40
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
|
@@ -4655,7 +4655,7 @@ declare const IhoTable: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
4655
4655
|
default: () => never[];
|
|
4656
4656
|
};
|
|
4657
4657
|
annotation: {
|
|
4658
|
-
type: import("vue").PropType<import("
|
|
4658
|
+
type: import("vue").PropType<Record<string, import("../annotation-edit/src/type").AnnotationItem>>;
|
|
4659
4659
|
};
|
|
4660
4660
|
}>> & {
|
|
4661
4661
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { AnyObject } from '../../../../es/shared/types';
|
|
2
2
|
import { PropType } from 'vue';
|
|
3
3
|
import { VxeTableInstance } from 'vxe-table';
|
|
4
|
+
import { AnnotationItem } from '../../../../es/components/annotation-edit/src/type';
|
|
4
5
|
import { IhoTableConfig, IhoTableHandler, LowCodeTableFieldItem } from '../../../../es/components/iho-table/src/types';
|
|
5
6
|
declare const _default: import("vue").DefineComponent<{
|
|
6
7
|
tableConfig: {
|
|
@@ -16,7 +17,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
16
17
|
default: () => never[];
|
|
17
18
|
};
|
|
18
19
|
annotation: {
|
|
19
|
-
type: PropType<
|
|
20
|
+
type: PropType<Record<string, AnnotationItem>>;
|
|
20
21
|
};
|
|
21
22
|
}, {
|
|
22
23
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -33,7 +34,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
33
34
|
default: () => never[];
|
|
34
35
|
};
|
|
35
36
|
annotation: {
|
|
36
|
-
type: PropType<
|
|
37
|
+
type: PropType<Record<string, AnnotationItem>>;
|
|
37
38
|
};
|
|
38
39
|
}>> & {
|
|
39
40
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
|
@@ -4654,7 +4655,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
4654
4655
|
default: () => never[];
|
|
4655
4656
|
};
|
|
4656
4657
|
annotation: {
|
|
4657
|
-
type: PropType<
|
|
4658
|
+
type: PropType<Record<string, AnnotationItem>>;
|
|
4658
4659
|
};
|
|
4659
4660
|
}>> & {
|
|
4660
4661
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Nullable, UndefinedAble } from '../../../../../es/shared/types';
|
|
2
2
|
import { ComputedRef, InjectionKey, Ref } from 'vue';
|
|
3
3
|
import { VxeTableInstance } from 'vxe-table';
|
|
4
|
+
import { AnnotationItem } from '../../../../../es/components/annotation-edit/src/type';
|
|
4
5
|
import { IhoTableConfig, IhoTableEmits, IhoTableEventTypes, IhoTableFieldItem, IhoTableHandler } from '../../../../../es/components/iho-table';
|
|
5
6
|
import { IhoTableEventListener } from '../../../../../es/components/iho-table/src/hooks/tapHooks/useEventHooks';
|
|
6
7
|
export declare enum WIDGET_TYPE {
|
|
@@ -75,7 +76,7 @@ export declare const IhoTableEventNameTuple: readonly ["formChange", "settingCli
|
|
|
75
76
|
export declare const InjectionIhoTableConfig: InjectionKey<Ref<IhoTableConfig>>;
|
|
76
77
|
export declare const InjectionIhoTableFieldList: InjectionKey<Ref<IhoTableFieldItem[]>>;
|
|
77
78
|
export declare const InjectionIhoTableEmits: InjectionKey<IhoTableEmits>;
|
|
78
|
-
export declare const InjectionIhoTableAnnotation: InjectionKey<ComputedRef<Nullable<
|
|
79
|
+
export declare const InjectionIhoTableAnnotation: InjectionKey<ComputedRef<Nullable<Record<string, AnnotationItem>>>>;
|
|
79
80
|
export declare const InjectionIhoTableUUID: InjectionKey<string>;
|
|
80
81
|
export declare const InjectionIhoTableInstance: InjectionKey<Ref<UndefinedAble<VxeTableInstance>>>;
|
|
81
82
|
export declare const InjectionIhoTableHandler: InjectionKey<IhoTableHandler>;
|
|
@@ -2,6 +2,7 @@ import { AnyObject, ArrayAble, BindEventSettingItem, FormOperationalConfig, Func
|
|
|
2
2
|
import { VxeTableProps, VxeTableDefines, VxeTableInstance, VxeColumnPropTypes, VxeTablePropTypes, VxeTableConstructor } from 'vxe-table';
|
|
3
3
|
import { VxePagerEventProps } from 'vxe-table/types/pager';
|
|
4
4
|
import { VxeTableEventProps, VxeTableListeners, VxeTablePrivateMethods } from 'vxe-table/types/table';
|
|
5
|
+
import { AnnotationItem } from '../../../../../es/components/annotation-edit/src/type';
|
|
5
6
|
import { IHO_TABLE_STRING_STATUS, IhoTableEventNameTuple, IhoTableRowGroupSequence } from '../../../../../es/components/iho-table/src/constants';
|
|
6
7
|
import Sortable from 'sortablejs';
|
|
7
8
|
export * from './pluginType';
|
|
@@ -182,3 +183,9 @@ export declare type IhoTableSeparateInfo = {
|
|
|
182
183
|
separateLength: number;
|
|
183
184
|
ihoTableHandler?: IhoTableHandler;
|
|
184
185
|
};
|
|
186
|
+
export declare type IhoTableProps = Partial<{
|
|
187
|
+
tableConfig: IhoTableConfig;
|
|
188
|
+
fieldList: IhoTableFieldItem[];
|
|
189
|
+
tableData: AnyObject[];
|
|
190
|
+
annotation: Record<string, AnnotationItem>;
|
|
191
|
+
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var e="@cnhis-design-vue/shared",i="3.1.51-beta.
|
|
1
|
+
var e="@cnhis-design-vue/shared",i="3.1.51-beta.24",s="index.ts",n={"naive-ui":"^2.30.0",vue:"^3.2.0"},a={"@vicons/ionicons5":"^0.12.0","lodash-es":"^4.17.21",moment:"^2.29.1","video.js":"^7.19.2","videojs-contrib-hls":"^5.15.0",viewerjs:"^1.10.5","xe-utils":"^3.5.4"},d={name:e,version:"3.1.51-beta.24",private:!0,main:"index.ts",peerDependencies:n,dependencies:a};export{d as default,a as dependencies,s as main,e as name,n as peerDependencies,i as version};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cnhis-design-vue",
|
|
3
|
-
"version": "3.1.51-beta.
|
|
3
|
+
"version": "3.1.51-beta.24",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"module": "./es/components/index.js",
|
|
6
6
|
"main": "./es/components/index.js",
|
|
@@ -63,5 +63,5 @@
|
|
|
63
63
|
"iOS 7",
|
|
64
64
|
"last 3 iOS versions"
|
|
65
65
|
],
|
|
66
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "d4452f8537e878f43e6bdd2abc175a908e026e07"
|
|
67
67
|
}
|