cnhis-design-vue 3.1.48-beta.12 → 3.1.48-beta.13

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 (42) hide show
  1. package/README.md +87 -87
  2. package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
  3. package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +1 -0
  4. package/es/components/bpmn-workflow/types/ModelingModule.d.ts +1 -0
  5. package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +1 -0
  6. package/es/components/card-reader-sdk/src/cardReaderSDK.d.ts +23 -20
  7. package/es/components/card-reader-sdk/src/cardReaderSDK.js +1 -1
  8. package/es/components/card-reader-sdk/src/constants/index.d.ts +60 -168
  9. package/es/components/card-reader-sdk/src/constants/index.js +1 -1
  10. package/es/components/card-reader-sdk/src/insuranceSDK.d.ts +1 -6
  11. package/es/components/card-reader-sdk/src/insuranceSDK.js +1 -1
  12. package/es/components/card-reader-sdk/src/types/index.d.ts +10 -10
  13. package/es/components/card-reader-sdk/src/utils/index.d.ts +1 -1
  14. package/es/components/card-reader-sdk/src/utils/index.js +1 -1
  15. package/es/components/form-render/src/hooks/useBusinessBinding.d.ts +1 -1
  16. package/es/components/form-render/src/hooks/useBusinessBinding.js +1 -1
  17. package/es/components/form-render/src/types/index.d.ts +1 -0
  18. package/es/components/iho-table/src/plugins/rowGroupSettingPlugin/rowGroupUtils.js +1 -1
  19. package/es/components/index.css +1 -1
  20. package/es/components/info-header/style/index.css +1 -1
  21. package/es/components/scale-view/src/ScaleView.vue2.js +1 -1
  22. package/es/components/select-label/src/LabelFormContent.vue2.js +1 -1
  23. package/es/components/select-person/src/SearchMultiple.vue.d.ts +0 -6
  24. package/es/components/table-export-field/src/components/ExportModal.vue.d.ts +3 -0
  25. package/es/env.d.ts +25 -25
  26. package/es/shared/assets/img/failure.png.js +1 -1
  27. package/es/shared/assets/img/no-permission.png.js +1 -1
  28. package/es/shared/assets/img/nodata.png.js +1 -1
  29. package/es/shared/assets/img/notfound.png.js +1 -1
  30. package/es/shared/assets/img/qr.png.js +1 -1
  31. package/es/shared/assets/img/success.png.js +1 -1
  32. package/es/shared/assets/img/video.png.js +1 -1
  33. package/es/shared/assets/img/video_default_cover.png.js +1 -1
  34. package/es/shared/assets/img/xb_big.png.js +1 -1
  35. package/es/shared/assets/img/xb_small.png.js +1 -1
  36. package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +86 -0
  37. package/es/shared/package.json.js +1 -1
  38. package/es/shared/utils/fabricjs/index.d.ts +6823 -0
  39. package/es/shared/utils/tapable/index.d.ts +139 -0
  40. package/es/shared/utils/tapableLess.d.ts +28 -0
  41. package/es/shared/utils/tapableLess.js +1 -0
  42. package/package.json +2 -2
@@ -5,5 +5,5 @@ export declare function getTranstime(): string;
5
5
  export declare function pad2(n: number): string | number;
6
6
  export declare function generateTimeRequestNumber(): string;
7
7
  export declare function insuranceLog(...messages: any[]): any;
8
- export declare function getErrorMessageByType(type?: string): string;
8
+ export declare function getErrorMessageByType(code?: number): string;
9
9
  export declare function getDataMessageByData(_data: string | AnyObject, configMap?: typeof CONFIG_MAP): any;
@@ -1 +1 @@
1
- import{isString as e}from"lodash-es";function n(){function e(){return(65536*(1+Math.random())|0).toString(16).substring(1)}return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()}function t(){return o()+parseInt(1e3*Math.random()+"")}function r(e){return e<10?"0"+e:e}function o(){const e=new Date;return e.getFullYear().toString()+r(e.getMonth()+1)+r(e.getDate())+r(e.getHours())+r(e.getMinutes())+r(e.getSeconds())}function a(...e){return console.log("[INSURANCE-SDK]: ",...e),e.reduce(((e,n)=>e+n))}const d={fastReport:"打印服务异常",newdsfz:"身份证读卡接口服务异常",newdhyk:"会员读卡接口服务异常",pos:"pos接口服务异常"};function u(e){return e&&d[e]||"请检查医保服务是否正常"}function s(n,t){var r;e(n)&&(n=JSON.parse(n));const o=n,{type:a="",returncodes:d=[]}=t||{};if(d.includes(null!=(r=o.returncode)?r:"")){if("newdhyk"===a)return o.returndata.cardinfo&&o.returndata.cardinfo.cardno?o.returndata.cardinfo:Promise.reject("未获取到卡号");if("newdsfz"===a){let n=null,t=null;return e(o.returndata)?(n=JSON.parse(o.returndata),t=n.cardinfo):t=o.returndata.cardinfo,t={...t,Sex:t.sex,Sex_Code:t.sex_code,Name:t.name,Age:t.age,Age_Code:t.age_code,Age_Name:t.age_name,BirthDate:t.birthdate,Nation_Name:t.nation_name,Nation_Code:t.nation_code,Address:t.address,CardNo:t.cardno,HasPhoto:t.hasphoto},t}return o}return Promise.reject(a+"--"+o.returnmsg)}export{o as generateTimeRequestNumber,s as getDataMessageByData,u as getErrorMessageByType,n as getSerialNumber,t as getTranstime,a as insuranceLog,r as pad2};
1
+ import{jsonParse as e}from"../../../../shared/utils/index.js";import{isString as t}from"lodash-es";import{TRANS_CMD as n}from"../constants/index.js";function r(){function e(){return(65536*(1+Math.random())|0).toString(16).substring(1)}return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()}function o(){return d()+parseInt(1e3*Math.random()+"")}function a(e){return e<10?"0"+e:e}function d(){const e=new Date;return e.getFullYear().toString()+a(e.getMonth()+1)+a(e.getDate())+a(e.getHours())+a(e.getMinutes())+a(e.getSeconds())}function i(...e){return console.log("[INSURANCE-SDK]: ",...e),e.reduce(((e,t)=>e+t))}const s={[n.ID_CARD_READ]:"身份证读卡接口服务异常",[n.MEMBER_CARD_READ]:"会员读卡接口服务异常",[n.FAST_REPORT_OR_POS]:"打印或pos接口服务异常"};function u(e){return e&&s[e]||"请检查医保服务是否正常"}function c(r,o){var a;t(r)&&(r=JSON.parse(r));const d=r,{transcmd:i=n.NS_GETPERSONALINFO}=o||{};if(["0","1"].includes(null!=(a=d.returncode)?a:"")){if(i===n.NS_GETPERSONALINFO)return d.returndata.cardinfo&&d.returndata.cardinfo.cardno?d.returndata.cardinfo:Promise.reject("未获取到卡号");if(i===n.ID_CARD_READ){const n=t(d.returndata)?e(d.returndata).cardinfo:d.returndata.cardinfo;return Object.assign(n,{Sex:n.sex,Sex_Code:n.sex_code,Name:n.name,Age:n.age,Age_Code:n.age_code,Age_Name:n.age_name,BirthDate:n.birthdate,Nation_Name:n.nation_name,Nation_Code:n.nation_code,Address:n.address,CardNo:n.cardno,HasPhoto:n.hasphoto}),n}return d}return Promise.reject(d.returnmsg)}export{d as generateTimeRequestNumber,c as getDataMessageByData,u as getErrorMessageByType,r as getSerialNumber,o as getTranstime,i as insuranceLog,a as pad2};
@@ -15,7 +15,7 @@ export declare class BusinessCollector {
15
15
  private getType;
16
16
  private getValueByField;
17
17
  getValueByType(formModel: Form, type: FIELD_BUSINESS_TYPE): unknown;
18
- setValueByType(formModel: Form, type: FIELD_BUSINESS_TYPE, value: unknown): void;
18
+ setValueByType(formModel: Form, type: FIELD_BUSINESS_TYPE, value: unknown, from: FIELD_BUSINESS_TYPE): void;
19
19
  registerChangeBusiness(type: FIELD_BUSINESS_TYPE, handler: (formModel: Form) => void): this;
20
20
  private changeHandlerMap;
21
21
  trigger(formModel: Form, fieldName: string, triggerType?: 'change' | 'blur'): Map<FIELD_BUSINESS_TYPE, number> | undefined;
@@ -1 +1 @@
1
- import{isField as e}from"@formily/core";import{isString as t}from"@vueuse/core";import{format as s}from"date-fns";import{isFunction as i,isNumber as r}from"lodash-es";import{FIELD_BUSINESS_TYPE as n}from"../constants/index.js";import"vue";import"../../../../shared/utils/index.js";import"@formily/path";import"@vue/shared";import"../../index.js";import{isIdCard as a,parseIdCard as l,parseAgeFromContext as o,parseBirthday as u,parseAge2Birthday as h}from"../utils/business.js";class y{constructor(e){this.businessFormatter=e,this.triggerLock=!1,this.typeLockMap=new Map,this.typeCollector=new Map,this.fieldNameCollector=new Map,this.changeHandlerMap=new Map([])}formatter(...e){return i(this.businessFormatter)?this.businessFormatter(...e):e[0].value}collect(e,t){this.typeCollector.set(e,t),this.fieldNameCollector.set(t.val_key,e)}getField(e){return this.typeCollector.get(e)}getFieldInstanceByType(e,t){const s=this.getField(t);return s?e.query(s.val_key).take():null}getType(e){return this.fieldNameCollector.get(e)}getValueByField(t,s){const i=t.query(s).take();return e(i)?i.value:null}getValueByType(e,t){const s=this.getField(t);return s?this.getValueByField(e,s.val_key):null}setValueByType(e,t,s){const i=this.getField(t);i&&e.setFieldState(i.val_key,(e=>{if(e.value===s)return;const n=this.typeLockMap.get(t);this.typeLockMap.set(t,r(n)?n+1:1),e.value=this.formatter({value:s,type:t,fieldKey:i.val_key})}))}registerChangeBusiness(e,t){return this.changeHandlerMap.set(e,t),this}trigger(e,t,s="change"){var i;if(this.triggerLock)return;const r=this.getType(t);if(!r)return;if("change"===s&&this.typeLockMap.get(r)>0)return this.typeLockMap.set(r,this.typeLockMap.get(r)-1);const n="change"===s?this.changeHandlerMap:null;n&&(null==(i=n.get(r))||i.call(this,e))}}function c(){function e(){var e;const t=this.getField(n.BIRTHDAY);return null!=(e=null==t?void 0:t.date_format)?e:"yyyy-MM-dd HH:mm"}function i(i){const r=this.getValueByType(i,n.ID_CARD);if(!r||!t(r)||!a(r))return;const u=l(r),{age:h,ageUnit:y}=o(u);this.setValueByType(i,n.AGE_UNIT,y),this.setValueByType(i,n.AGE,h),this.setValueByType(i,n.SEX,u.sex),this.setValueByType(i,n.BIRTHDAY,s(new Date(u.birthday),e.call(this)))}function c(e){const s=this.getValueByType(e,n.BIRTHDAY);if(!t(s))return;const{age:i,ageUnit:r}=o(u(s));this.setValueByType(e,n.AGE_UNIT,r),this.setValueByType(e,n.AGE,i)}function p(s){const i=this.getValueByType(s,n.AGE),a=this.getValueByType(s,n.AGE_UNIT);(t(i)||r(i))&&""!==i&&t(a)&&""!==a&&this.setValueByType(s,n.BIRTHDAY,h(+i,a,e.call(this)))}return{create:function(e){return new y(e).registerChangeBusiness(n.ID_CARD,i).registerChangeBusiness(n.AGE_UNIT,p).registerChangeBusiness(n.AGE,p).registerChangeBusiness(n.BIRTHDAY,c)}}}export{y as BusinessCollector,c as useBusinessBinding};
1
+ import{isField as e}from"@formily/core";import{isString as t}from"@vueuse/core";import{format as s}from"date-fns";import{isFunction as i,isNumber as r}from"lodash-es";import{FIELD_BUSINESS_TYPE as n}from"../constants/index.js";import"vue";import"../../../../shared/utils/index.js";import"@formily/path";import"@vue/shared";import"../../index.js";import{isIdCard as a,parseIdCard as l,parseAgeFromContext as o,parseBirthday as u,parseAge2Birthday as h}from"../utils/business.js";class y{constructor(e){this.businessFormatter=e,this.triggerLock=!1,this.typeLockMap=new Map,this.typeCollector=new Map,this.fieldNameCollector=new Map,this.changeHandlerMap=new Map([])}formatter(...e){return i(this.businessFormatter)?this.businessFormatter(...e):e[0].value}collect(e,t){this.typeCollector.set(e,t),this.fieldNameCollector.set(t.val_key,e)}getField(e){return this.typeCollector.get(e)}getFieldInstanceByType(e,t){const s=this.getField(t);return s?e.query(s.val_key).take():null}getType(e){return this.fieldNameCollector.get(e)}getValueByField(t,s){const i=t.query(s).take();return e(i)?i.value:null}getValueByType(e,t){const s=this.getField(t);return s?this.getValueByField(e,s.val_key):null}setValueByType(e,t,s,i){const n=this.getField(t);n&&e.setFieldState(n.val_key,(e=>{if(e.value===s)return;const a=this.typeLockMap.get(t);this.typeLockMap.set(t,r(a)?a+1:1),e.value=this.formatter({value:s,type:t,fieldKey:n.val_key,from:i})}))}registerChangeBusiness(e,t){return this.changeHandlerMap.set(e,t),this}trigger(e,t,s="change"){var i;if(this.triggerLock)return;const r=this.getType(t);if(!r)return;if("change"===s&&this.typeLockMap.get(r)>0)return this.typeLockMap.set(r,this.typeLockMap.get(r)-1);const n="change"===s?this.changeHandlerMap:null;n&&(null==(i=n.get(r))||i.call(this,e))}}function c(){function e(){var e;const t=this.getField(n.BIRTHDAY);return null!=(e=null==t?void 0:t.date_format)?e:"yyyy-MM-dd HH:mm"}function i(i){const r=this.getValueByType(i,n.ID_CARD);if(!r||!t(r)||!a(r))return;const u=l(r),{age:h,ageUnit:y}=o(u);this.setValueByType(i,n.AGE_UNIT,y,n.ID_CARD),this.setValueByType(i,n.AGE,h,n.ID_CARD),this.setValueByType(i,n.SEX,u.sex,n.ID_CARD),this.setValueByType(i,n.BIRTHDAY,s(new Date(u.birthday),e.call(this)),n.ID_CARD)}function c(e){const s=this.getValueByType(e,n.BIRTHDAY);if(!t(s))return;const{age:i,ageUnit:r}=o(u(s));this.setValueByType(e,n.AGE_UNIT,r,n.BIRTHDAY),this.setValueByType(e,n.AGE,i,n.BIRTHDAY)}function p(s){return function(i){const a=this.getValueByType(i,n.AGE),l=this.getValueByType(i,n.AGE_UNIT);(t(a)||r(a))&&""!==a&&t(l)&&""!==l&&this.setValueByType(i,n.BIRTHDAY,h(+a,l,e.call(this)),s)}}return{create:function(e){return new y(e).registerChangeBusiness(n.ID_CARD,i).registerChangeBusiness(n.AGE_UNIT,p(n.AGE_UNIT)).registerChangeBusiness(n.AGE,p(n.AGE)).registerChangeBusiness(n.BIRTHDAY,c)}}}export{y as BusinessCollector,c as useBusinessBinding};
@@ -147,6 +147,7 @@ export declare type FormBusinessFormatter = (payload: {
147
147
  fieldKey: string;
148
148
  value: unknown;
149
149
  type: FIELD_BUSINESS_TYPE;
150
+ from: FIELD_BUSINESS_TYPE;
150
151
  }) => unknown;
151
152
  export declare namespace FormLowCodeReactions {
152
153
  type ConObj = {
@@ -1 +1 @@
1
- import{isObject as e}from"@vue/shared";import{isArray as n,isString as t}from"lodash-es";import{IhoTableRowGroupSequence as r}from"../../constants/index.js";function i(t,i,o=(e=>e.field)){const s=i.map((e=>o(e)));return r.some((r=>{const i=t[r];if(!n(i))return!0;i.forEach((t=>{if(!n(t.list)||!t.list.length)return;const r=[];let i=null;t.list.forEach(((n,o)=>{const c=function(n,t,r){return t.findIndex((t=>t!==r&&(e(t)?t.fieldName:t)===n))}(n,s,i);~c&&(r.push(s[c]),0===o?s.splice(c,1,i={fieldName:t.title,children:r}):s.splice(c,1))}))}))})),s}function o(n,r){return n.reduce(((n,i)=>{if(t(i)){const e=r(i);e&&n.push(e)}if(e(i)&&i.children){const e=r(i.fieldName,!0);e&&(e.children=o(i.children,r),n.push(e))}return n}),[])}export{i as createRowGroupList,o as groupTraverser};
1
+ import{isObject as e}from"@vue/shared";import{isArray as n,isString as t}from"lodash-es";import{IhoTableRowGroupSequence as r}from"../../constants/index.js";function i(t,i,o=(e=>e.field)){const s=i.map((e=>o(e)));return r.some((r=>{const i=t[r];if(!n(i))return!0;i.forEach((t=>{if(!n(t.list)||!t.list.length)return;const r=[];let i=null,o=0;t.list.forEach(((n,c)=>{const l=function(n,t,r){return t.findIndex((t=>t!==r&&(e(t)?t.fieldName:t)===n))}(n,s,i);~l?(r.push(s[l]),c===o?s.splice(l,1,i={fieldName:t.title,children:r}):s.splice(l,1)):c===o&&o++}))}))})),s}function o(n,r){return n.reduce(((n,i)=>{if(t(i)){const e=r(i);e&&n.push(e)}if(e(i)&&i.children){const e=r(i.fieldName,!0);e&&(e.children=o(i.children,r),n.push(e))}return n}),[])}export{i as createRowGroupList,o as groupTraverser};