cnhis-design-vue 3.1.45 → 3.1.46-beta.1

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 (123) hide show
  1. package/es/components/base-search/index.d.ts +11 -7
  2. package/es/components/base-search/src/index.vue.d.ts +11 -7
  3. package/es/components/base-search/src/index.vue2.js +1 -1
  4. package/es/components/base-search/style/index.css +1 -1
  5. package/es/components/button-print/src/utils/print.d.ts +1 -1
  6. package/es/components/button-print/src/utils/print.js +1 -1
  7. package/es/components/classification/index.d.ts +219 -18
  8. package/es/components/classification/src/components/search-filter/index.vue.d.ts +219 -18
  9. package/es/components/classification/src/components/search-filter/index.vue2.js +1 -1
  10. package/es/components/classification/src/components/set-classification/index.vue.d.ts +219 -18
  11. package/es/components/classification/src/index.vue.d.ts +219 -18
  12. package/es/components/field-set/src/FieldSet.vue2.js +1 -1
  13. package/es/components/field-set/style/index.css +1 -1
  14. package/es/components/form-render/src/components/renderer/dist/levelSearchCascader.d.ts +77 -0
  15. package/es/components/form-render/src/components/renderer/dist/searchCascade.d.ts +93 -0
  16. package/es/components/form-render/src/components/renderer/select.js +1 -1
  17. package/es/components/form-render/style/index.css +1 -1
  18. package/es/components/iho-table/src/plugins/dist/highLightSetPlugin.d.ts +3 -0
  19. package/es/components/iho-table/src/plugins/filterRenderPlugin/dist/index.d.ts +3 -0
  20. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/dist/index.d.ts +3 -0
  21. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/dist/defaultRendererPlugin.d.ts +3 -0
  22. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/dist/seqRendererPlugin.d.ts +3 -0
  23. package/es/components/iho-table/src/plugins/varialbleHeightPlugin/dist/index.d.ts +3 -0
  24. package/es/components/iho-table/src/utils/dist/index.d.ts +44 -0
  25. package/es/components/index.css +1 -1
  26. package/es/components/quick-search/index.d.ts +14 -6
  27. package/es/components/quick-search/src/index.vue.d.ts +14 -6
  28. package/es/components/quick-search/src/index.vue2.js +1 -1
  29. package/es/components/quick-search/style/index.css +1 -1
  30. package/es/components/scale-view/src/components/formitem/dist/r-address.d.ts +36 -0
  31. package/es/components/scale-view/src/components/formitem/dist/r-sign.d.ts +36 -0
  32. package/es/components/scale-view/src/components/formitem/dist/standard-modal.d.ts +82 -0
  33. package/es/components/search-cascader/index.d.ts +2 -0
  34. package/es/components/search-cascader/src/SearchCascader.vue.d.ts +2 -0
  35. package/es/components/search-cascader/src/SearchCascader.vue2.js +1 -1
  36. package/es/components/search-cascader/src/components/SearchMenu.js +1 -1
  37. package/es/components/search-cascader/src/components/dist/SearchMenu.d.ts +57 -0
  38. package/es/components/search-cascader/src/components/dist/SearchMenu1.d.ts +57 -0
  39. package/es/components/search-cascader/style/index.css +1 -1
  40. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +219 -17
  41. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue2.js +1 -1
  42. package/es/components/table-filter/src/components/classify-filter/components/Date.vue.d.ts +17 -1
  43. package/es/components/table-filter/src/components/classify-filter/components/Date.vue2.js +1 -1
  44. package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts +19 -0
  45. package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue2.js +1 -1
  46. package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic.vue.d.ts +178 -11
  47. package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic.vue2.js +1 -1
  48. package/es/components/table-filter/src/components/classify-filter/components/SelectFilter.vue.d.ts +1 -5
  49. package/es/components/table-filter/src/components/classify-filter/components/SelectFilter.vue2.js +1 -1
  50. package/es/components/table-filter/src/components/classify-filter/components/SelectLabel.vue.d.ts +2 -1
  51. package/es/components/table-filter/src/components/classify-filter/components/SelectLabel.vue2.js +1 -1
  52. package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +217 -17
  53. package/es/components/table-filter/src/components/classify-filter/hooks/useFilterConditions.js +1 -1
  54. package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +219 -17
  55. package/es/components/table-filter/src/components/classify-filter/index.vue2.js +1 -1
  56. package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.d.ts +218 -0
  57. package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.js +1 -0
  58. package/es/components/table-filter/src/components/render-widget/components/DateInner.vue2.js +1 -0
  59. package/es/components/table-filter/src/components/render-widget/components/{Date.vue.d.ts → DateOut.vue.d.ts} +21 -2
  60. package/es/components/table-filter/src/components/render-widget/components/DateOut.vue.js +1 -0
  61. package/es/components/table-filter/src/components/render-widget/components/DateOut.vue2.js +1 -0
  62. package/es/components/table-filter/src/components/render-widget/components/DateQuickBtn/index.vue.d.ts +71 -0
  63. package/es/components/table-filter/src/components/render-widget/components/DateQuickBtn/index.vue.js +1 -0
  64. package/es/components/table-filter/src/components/render-widget/components/DateQuickBtn/index.vue2.js +1 -0
  65. package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue.d.ts +99 -5
  66. package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue2.js +1 -1
  67. package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue.d.ts +13 -9
  68. package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue2.js +1 -1
  69. package/es/components/table-filter/src/components/render-widget/components/LabelInner.vue.d.ts +8 -6
  70. package/es/components/table-filter/src/components/render-widget/components/LabelInner.vue2.js +1 -1
  71. package/es/components/table-filter/src/components/render-widget/components/LabelOut.vue.d.ts +7 -6
  72. package/es/components/table-filter/src/components/render-widget/components/LabelOut.vue2.js +1 -1
  73. package/es/components/table-filter/src/components/render-widget/components/Select.vue.d.ts +19 -25
  74. package/es/components/table-filter/src/components/render-widget/components/Select.vue2.js +1 -1
  75. package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue.d.ts +223 -0
  76. package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue.js +1 -0
  77. package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue2.js +1 -0
  78. package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue.d.ts +158 -0
  79. package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue.js +1 -0
  80. package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue2.js +1 -0
  81. package/es/components/table-filter/src/components/render-widget/components/index.d.ts +580 -33
  82. package/es/components/table-filter/src/components/render-widget/components/index.js +1 -1
  83. package/es/components/table-filter/src/components/render-widget/enums.d.ts +10 -3
  84. package/es/components/table-filter/src/components/render-widget/enums.js +1 -1
  85. package/es/components/table-filter/src/components/render-widget/helpers/dateDisabled.d.ts +27 -0
  86. package/es/components/table-filter/src/components/render-widget/helpers/dateDisabled.js +1 -0
  87. package/es/components/table-filter/src/components/render-widget/helpers/dateExtraMap.d.ts +55 -0
  88. package/es/components/table-filter/src/components/render-widget/helpers/dateExtraMap.js +1 -0
  89. package/es/components/table-filter/src/components/render-widget/helpers/enums.d.ts +56 -0
  90. package/es/components/table-filter/src/components/render-widget/helpers/enums.js +1 -0
  91. package/es/components/table-filter/src/components/render-widget/helpers/presetValToTimestamp.d.ts +2 -6
  92. package/es/components/table-filter/src/components/render-widget/helpers/presetValToTimestamp.js +1 -1
  93. package/es/components/table-filter/src/components/render-widget/helpers/selectExtraMap.d.ts +4 -0
  94. package/es/components/table-filter/src/components/render-widget/helpers/selectExtraMap.js +1 -0
  95. package/es/components/table-filter/src/components/render-widget/helpers/setDefaultValue.d.ts +4 -0
  96. package/es/components/table-filter/src/components/render-widget/helpers/setDefaultValue.js +1 -0
  97. package/es/components/table-filter/src/components/render-widget/index.vue.d.ts +1 -3
  98. package/es/components/table-filter/src/components/render-widget/index.vue.js +1 -1
  99. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +608 -32
  100. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.js +1 -1
  101. package/es/components/table-filter/src/constants/index.d.ts +3 -1
  102. package/es/components/table-filter/src/constants/index.js +1 -1
  103. package/es/components/table-filter/src/hooks/useAdvanced.d.ts +8 -4
  104. package/es/components/table-filter/src/hooks/useAdvanced.js +1 -1
  105. package/es/components/table-filter/src/hooks/useAsyncData.d.ts +4 -0
  106. package/es/components/table-filter/src/hooks/useAsyncData.js +1 -0
  107. package/es/components/table-filter/src/hooks/useRenderWidget.d.ts +2 -2
  108. package/es/components/table-filter/src/hooks/useRenderWidget.js +1 -1
  109. package/es/components/table-filter/src/tool/baseOptions.d.ts +0 -8
  110. package/es/components/table-filter/src/tool/baseOptions.js +1 -1
  111. package/es/components/table-filter/src/tool/transformData.d.ts +0 -1
  112. package/es/components/table-filter/src/tool/transformData.js +1 -1
  113. package/es/components/table-filter/src/types/enums.d.ts +3 -0
  114. package/es/components/table-filter/src/types/enums.js +1 -1
  115. package/es/components/table-filter/src/types/index.d.ts +6 -0
  116. package/es/shared/package.json.js +1 -1
  117. package/package.json +2 -2
  118. package/es/components/table-filter/src/components/render-widget/basicData.d.ts +0 -4
  119. package/es/components/table-filter/src/components/render-widget/basicData.js +0 -1
  120. package/es/components/table-filter/src/components/render-widget/components/Date.vue.js +0 -1
  121. package/es/components/table-filter/src/components/render-widget/components/Date.vue2.js +0 -1
  122. package/es/components/table-filter/src/tool/generateDefOptions.d.ts +0 -7
  123. package/es/components/table-filter/src/tool/generateDefOptions.js +0 -1
@@ -32,27 +32,31 @@ declare const CBaseSearch: SFCWithInstall<import("vue").DefineComponent<{
32
32
  } | null;
33
33
  isExistDefValByRenderWidget: (cfg: import("..").ISearchType) => boolean;
34
34
  resetRenderWidgetValue: (cfg: import("..").ISearchType) => any;
35
- transformData: (advancedFilterData: import("..").IApiServerType[]) => {
35
+ transformData: (advancedFilterData: import("..").IApiServerType[], extendData: import("..").IExtendConfigurationType) => {
36
36
  fieldType: string;
37
37
  columnName: string;
38
38
  settingObj: {};
39
39
  setting: string;
40
40
  widgetCfg: {
41
41
  isRender: boolean;
42
- isInit: boolean;
43
42
  widgetType: string | null;
43
+ originType: string | null;
44
44
  valueList: {
45
45
  value: any;
46
46
  label: any;
47
47
  }[] | undefined;
48
48
  defaultValue: any;
49
49
  defValueUnit: any;
50
+ optionSetting: string | undefined;
50
51
  multiple: boolean;
51
52
  manualMapping: boolean | null | undefined;
53
+ showWholeOption: boolean | undefined;
52
54
  dynamicOptionInfo: import("..").dynamicOptionInfoType | {} | undefined;
53
55
  classifyStr: string | undefined;
56
+ linkageFieldKeys: string[];
54
57
  };
55
58
  rangeFilter: boolean | undefined;
59
+ _extendData: import("..").IExtendConfigurationType;
56
60
  title: string;
57
61
  alias: string | undefined;
58
62
  isShowSearch: number;
@@ -62,7 +66,7 @@ declare const CBaseSearch: SFCWithInstall<import("vue").DefineComponent<{
62
66
  placeholder: string | undefined;
63
67
  advanceColWidth: number | null | undefined;
64
68
  }[];
65
- transformParams: (paramsList: any) => {};
69
+ transformParams: (paramsList: any[]) => {};
66
70
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
67
71
  showSettings: {
68
72
  type: import("vue").PropType<import("..").IsettingsType>;
@@ -111,6 +115,9 @@ declare const CBaseSearch: SFCWithInstall<import("vue").DefineComponent<{
111
115
  setting?: any;
112
116
  widgetCfg?: any;
113
117
  rangeFilter?: boolean | undefined;
118
+ _extendData?: {
119
+ _filterApiConfig: any;
120
+ } | undefined;
114
121
  _frontId?: any;
115
122
  isRender?: boolean | undefined;
116
123
  widgetType?: any;
@@ -126,7 +133,6 @@ declare const CBaseSearch: SFCWithInstall<import("vue").DefineComponent<{
126
133
  isShowSetting: (v: string) => boolean;
127
134
  foldQuickSearch: () => void;
128
135
  outFilterChange: (config?: {}) => void;
129
- handleChangeInit: (_frontId: string, bool: boolean) => void;
130
136
  getConObjParams: () => any;
131
137
  getConObj: (arr: any) => any;
132
138
  onFilterSearch: (obj: import("..").ISearchParamsType[], transResult: object, isOutFilter?: boolean, config?: {}) => void;
@@ -154,8 +160,7 @@ declare const CBaseSearch: SFCWithInstall<import("vue").DefineComponent<{
154
160
  [key: string]: any;
155
161
  }> | null;
156
162
  handleUpdate(val: any): void;
157
- handleChangeInitState(_frontId: any, bool: any): void;
158
- }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "outFilterChange" | "changeInit")[], "update:modelValue" | "outFilterChange" | "changeInit", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
163
+ }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "outFilterChange")[], "update:modelValue" | "outFilterChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
159
164
  cfg: {
160
165
  type: ObjectConstructor;
161
166
  required: true;
@@ -166,7 +171,6 @@ declare const CBaseSearch: SFCWithInstall<import("vue").DefineComponent<{
166
171
  }>> & {
167
172
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
168
173
  onOutFilterChange?: ((...args: any[]) => any) | undefined;
169
- onChangeInit?: ((...args: any[]) => any) | undefined;
170
174
  }, {}>;
171
175
  NIcon: any;
172
176
  NButton: any;
@@ -33,27 +33,31 @@ declare const _default: import("vue").DefineComponent<{
33
33
  } | null;
34
34
  isExistDefValByRenderWidget: (cfg: ISearchType) => boolean;
35
35
  resetRenderWidgetValue: (cfg: ISearchType) => any;
36
- transformData: (advancedFilterData: IApiServerType[]) => {
36
+ transformData: (advancedFilterData: IApiServerType[], extendData: import("../../../../es/components/table-filter/src/types").IExtendConfigurationType) => {
37
37
  fieldType: string;
38
38
  columnName: string;
39
39
  settingObj: {};
40
40
  setting: string;
41
41
  widgetCfg: {
42
42
  isRender: boolean;
43
- isInit: boolean;
44
43
  widgetType: string | null;
44
+ originType: string | null;
45
45
  valueList: {
46
46
  value: any;
47
47
  label: any;
48
48
  }[] | undefined;
49
49
  defaultValue: any;
50
50
  defValueUnit: any;
51
+ optionSetting: string | undefined;
51
52
  multiple: boolean;
52
53
  manualMapping: boolean | null | undefined;
54
+ showWholeOption: boolean | undefined;
53
55
  dynamicOptionInfo: import("../../../../es/components/table-filter/src/types").dynamicOptionInfoType | {} | undefined;
54
56
  classifyStr: string | undefined;
57
+ linkageFieldKeys: string[];
55
58
  };
56
59
  rangeFilter: boolean | undefined;
60
+ _extendData: import("../../../../es/components/table-filter/src/types").IExtendConfigurationType;
57
61
  title: string;
58
62
  alias: string | undefined;
59
63
  isShowSearch: number;
@@ -63,7 +67,7 @@ declare const _default: import("vue").DefineComponent<{
63
67
  placeholder: string | undefined;
64
68
  advanceColWidth: number | null | undefined;
65
69
  }[];
66
- transformParams: (paramsList: any) => {};
70
+ transformParams: (paramsList: any[]) => {};
67
71
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
68
72
  showSettings: {
69
73
  type: PropType<IsettingsType>;
@@ -112,6 +116,9 @@ declare const _default: import("vue").DefineComponent<{
112
116
  setting?: any;
113
117
  widgetCfg?: any;
114
118
  rangeFilter?: boolean | undefined;
119
+ _extendData?: {
120
+ _filterApiConfig: any;
121
+ } | undefined;
115
122
  _frontId?: any;
116
123
  isRender?: boolean | undefined;
117
124
  widgetType?: any;
@@ -127,7 +134,6 @@ declare const _default: import("vue").DefineComponent<{
127
134
  isShowSetting: (v: string) => boolean;
128
135
  foldQuickSearch: () => void;
129
136
  outFilterChange: (config?: {}) => void;
130
- handleChangeInit: (_frontId: string, bool: boolean) => void;
131
137
  getConObjParams: () => any;
132
138
  getConObj: (arr: any) => any;
133
139
  onFilterSearch: (obj: ISearchParamsType[], transResult: object, isOutFilter?: boolean, config?: {}) => void;
@@ -155,8 +161,7 @@ declare const _default: import("vue").DefineComponent<{
155
161
  [key: string]: any;
156
162
  }> | null;
157
163
  handleUpdate(val: any): void;
158
- handleChangeInitState(_frontId: any, bool: any): void;
159
- }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "outFilterChange" | "changeInit")[], "update:modelValue" | "outFilterChange" | "changeInit", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
164
+ }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "outFilterChange")[], "update:modelValue" | "outFilterChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
160
165
  cfg: {
161
166
  type: ObjectConstructor;
162
167
  required: true;
@@ -167,7 +172,6 @@ declare const _default: import("vue").DefineComponent<{
167
172
  }>> & {
168
173
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
169
174
  onOutFilterChange?: ((...args: any[]) => any) | undefined;
170
- onChangeInit?: ((...args: any[]) => any) | undefined;
171
175
  }, {}>;
172
176
  NIcon: any;
173
177
  NButton: any;
@@ -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 h,toDisplayString as m,Fragment as v,renderList as p}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 S}from"naive-ui";import{Search as j}from"@vicons/ionicons5";import{cloneDeep as x}from"lodash-es";import{InjectionFilterApiConfig as q}from"../../table-filter/src/constants/index.js";const R={class:"base-search-block"},O={class:"base-container"},F={class:"bease-left"},A={class:"base-ul"},I={key:0,class:"baseli showQuickBtn"},Q=s("i",{class:"iconfont-table-filter icon-table-filter-shaixuan",style:{color:"inherit","margin-right":"6px"}},null,-1),V={key:0,class:"qqConObjCount"},_={key:1,class:"baseli"},w={key:2,class:"baseli"},B=s("i",{class:"iconfont-table-filter icon-table-filter-reset",style:{"margin-right":"6px"}},null,-1);var E=e({__name:"index",props:{showSettings:{type:Object,default:()=>({hideQuickSearch:0,hideResetBtn:0})},searchFieldList:{type:Array,default:()=>[]},qqConObjCount:{type:Number,default:0},filterApiConfig:{type:Object}},emits:["foldQuickSearch","onFilterSearch","handleReset","getFilterParam"],setup(e,{expose:E,emit:D}){const L=e,{outQuickSearchFn:N}=g(),{isRender:P,getRenderSearchConObj:W,isExistDefValByRenderWidget:U,resetRenderWidgetValue:$}=C(),{transformData:z,transformParams:M}=y(),T=t([]),G=t(!1),H=t([]);l(q,L.filterApiConfig);const J=i((()=>X("hideQuickSearch"))),K=i((()=>X("hideResetBtn")));function X(e){return 0==L.showSettings[e]}function Y(){D("foldQuickSearch",!0)}function Z(e={}){const t=te()||[];!function(e,t,l=!1,i={}){let a=[];H.value.length>0&&(a=x(H.value));D("onFilterSearch",e,t,l,a,i)}(t,M(t),!0,e)}function ee(e,t){H.value.forEach((l=>{l._frontId===e&&(l.widgetCfg.isInit=t)}))}function te(){return function(e){if(!Array.isArray(e))return[];let t=[];for(let l=0;l<e.length;l++){let i=e[l];const a=W(i);a&&t.push(a)}return t.filter((e=>e.value))}(H.value)}function le(){!function(e){if(!Array.isArray(e))return;e.forEach((e=>{$(e)})),N.handlerInitSearchItem(e)}(H.value),D("handleReset",{targetType:"outQuickSearchReset"})}return a((()=>L.searchFieldList),(e=>{e&&e.length>0&&function(){H.value=[];let e=x(z(L.searchFieldList)).filter((e=>1==e.isShowSearch&&1==e.filterExplicit));H.value=e,N.handlerInitSearchItem(H.value),H.value.some((e=>P(e)?U(e):!!e.explicitDefaultVal))}()}),{immediate:!0,deep:!0}),a((()=>L.qqConObjCount),(e=>{const t=T.value.length||0;G.value=t+Number(e)>0&&K.value}),{immediate:!0}),a((()=>H),(()=>{T.value=te()||[];const e=M(T.value);G.value=T.value.length+Number(L.qqConObjCount)>0&&K.value,D("getFilterParam",T.value,e)}),{immediate:!0,deep:!0}),E({handleReset:le}),(t,l)=>(n(),r("div",R,[s("div",O,[s("div",F,[s("ul",A,[o(" 筛选分类插槽 "),u(t.$slots,"classification"),c(J)?(n(),r("li",I,[f(c(k),{class:"search-default",type:"default",onClick:Y},{default:d((()=>[Q,h(" 筛选"),e.qqConObjCount?(n(),r("span",V,"("+m(e.qqConObjCount)+")",1)):o("v-if",!0)])),_:1})])):o("v-if",!0),o(" start--筛选外显--start "),(n(!0),r(v,null,p(H.value,(e=>(n(),r(v,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:Z,onChangeInit:ee},null,8,["cfg","modelValue","onUpdate:modelValue"])])):o("v-if",!0)],64)))),256)),o(" end--筛选外显--end "),o(" 查询按钮 "),H.value&&H.value.length>0?(n(),r("li",_,[f(c(k),{type:"primary",onClick:Z},{default:d((()=>[f(c(S),{component:c(j),size:"16",style:{"margin-right":"6px"}},null,8,["component"]),h(" 查询 ")])),_:1})])):o("v-if",!0),o(" 重置按钮 "),G.value?(n(),r("li",w,[f(c(k),{onClick:le},{default:d((()=>[B,h(" 重置 ")])),_:1})])):o("v-if",!0),o(" 业务按钮插槽 "),u(t.$slots,"buttons")])])])]))}});export{E as default};
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 h,toDisplayString as m,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 S}from"naive-ui";import{Search as j}from"@vicons/ionicons5";import{cloneDeep as x}from"lodash-es";import{InjectionFilterApiConfig as q,InjectionFilterSearchConfig as R}from"../../table-filter/src/constants/index.js";const A={class:"base-search-block"},O={class:"base-container"},F={class:"bease-left"},Q={class:"base-ul"},V={key:0,class:"baseli showQuickBtn"},_=s("i",{class:"iconfont-table-filter icon-table-filter-shaixuan",style:{color:"inherit","margin-right":"6px"}},null,-1),w={key:0,class:"qqConObjCount"},I={key:1,class:"baseli"},B={key:2,class:"baseli"},D=s("i",{class:"iconfont-table-filter icon-table-filter-reset",style:{"margin-right":"6px"}},null,-1);var E=e({__name:"index",props:{showSettings:{type:Object,default:()=>({hideQuickSearch:0,hideResetBtn:0})},searchFieldList:{type:Array,default:()=>[]},qqConObjCount:{type:Number,default:0},filterApiConfig:{type:Object}},emits:["foldQuickSearch","onFilterSearch","handleReset","getFilterParam"],setup(e,{expose:E,emit:L}){const N=e,{outQuickSearchFn:P}=g(),{isRender:W,getRenderSearchConObj:U,isExistDefValByRenderWidget:$,resetRenderWidgetValue:z}=C(),{transformData:M,transformParams:T}=y(),G=t([]),H=t(!1),J=t([]);l(q,N.filterApiConfig),l(R,J);const K=i((()=>Y("hideQuickSearch"))),X=i((()=>Y("hideResetBtn")));function Y(e){return 0==N.showSettings[e]}function Z(){L("foldQuickSearch",!0)}function ee(e={}){const t=te()||[];!function(e,t,l=!1,i={}){let a=[];J.value.length>0&&(a=x(J.value));L("onFilterSearch",e,t,l,a,i)}(t,T(t),!0,e)}function te(){return function(e){if(!Array.isArray(e))return[];let t=[];for(let l=0;l<e.length;l++){let i=e[l];const a=U(i);a&&t.push(a)}return t.filter((e=>e.value))}(J.value)}function le(){!function(e){if(!Array.isArray(e))return;e.forEach((e=>{z(e)})),P.handlerInitSearchItem(e)}(J.value),L("handleReset",{targetType:"outQuickSearchReset"})}return a((()=>N.searchFieldList),(e=>{e&&e.length>0&&function(){J.value=[];let e=x(M(N.searchFieldList,{_filterApiConfig:N.filterApiConfig})).filter((e=>1==e.isShowSearch&&1==e.filterExplicit));J.value=e,P.handlerInitSearchItem(J.value),J.value.some((e=>W(e)?$(e):!!e.explicitDefaultVal))}()}),{immediate:!0,deep:!0}),a((()=>N.qqConObjCount),(e=>{const t=G.value.length||0;H.value=t+Number(e)>0&&X.value}),{immediate:!0}),a((()=>J),(()=>{G.value=te()||[];const e=T(G.value);H.value=G.value.length+Number(N.qqConObjCount)>0&&X.value,L("getFilterParam",G.value,e)}),{immediate:!0,deep:!0}),E({handleReset:le}),(t,l)=>(n(),r("div",A,[s("div",O,[s("div",F,[s("ul",Q,[o(" 筛选分类插槽 "),u(t.$slots,"classification"),c(K)?(n(),r("li",V,[f(c(k),{class:"search-default",type:"default",onClick:Z},{default:d((()=>[_,h(" 筛选"),e.qqConObjCount?(n(),r("span",w,"("+m(e.qqConObjCount)+")",1)):o("v-if",!0)])),_:1})])):o("v-if",!0),o(" start--筛选外显--start "),(n(!0),r(p,null,v(J.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:ee},null,8,["cfg","modelValue","onUpdate:modelValue"])])):o("v-if",!0)],64)))),256)),o(" end--筛选外显--end "),o(" 查询按钮 "),J.value&&J.value.length>0?(n(),r("li",I,[f(c(k),{type:"primary",onClick:ee},{default:d((()=>[f(c(S),{component:c(j),size:"16",style:{"margin-right":"6px"}},null,8,["component"]),h(" 查询 ")])),_:1})])):o("v-if",!0),o(" 重置按钮 "),H.value?(n(),r("li",B,[f(c(k),{onClick:le},{default:d((()=>[D,h(" 重置 ")])),_:1})])):o("v-if",!0),o(" 业务按钮插槽 "),u(t.$slots,"buttons")])])])]))}});export{E as default};
@@ -1 +1 @@
1
- @font-face{font-family:base-search-iconfont;src:url(base-search-iconfont.ttf) format("truetype")}.iconfont-table-filter{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:base-search-iconfont!important;font-size:14px;font-style:normal}.icon-table-filter-menzhenyishengzhananniuqingchu:before{content:"\e74e"}.icon-table-filter-menzhenyishengzhananniushanchu2:before{content:"\e757"}.icon-table-filter-menzhenyishengzhanxitongtubiaoguanbi:before{content:"\e76e"}.icon-table-filter-menzhenyishengzhanxitongtubiaozuixiaohua2:before{content:"\e778"}.icon-table-filter-menzhenyishengzhanxitongtubiaozuidahua:before{content:"\e779"}.icon-table-filter-reset:before{content:"\e611"}.icon-table-filter-shaixuan:before{content:"\e64b"}.render-widget-input-number-group{align-items:center;display:flex}.render-widget-input-number-group .divider{text-align:center;width:24px}.n-base-select-option__content{width:100%}.n-base-select-option__content .select-widget-dynamic-option{display:flex;flex-wrap:nowrap;width:100%}.n-base-select-option__content .select-widget-dynamic-option .select-widget-dynamic-item{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.render-widget-date-range{align-items:center;display:flex;flex-wrap:nowrap;width:100%}.render-widget-date-range .radio-date-group{border:1px solid #d9d9d9;display:flex;min-width:720px}.render-widget-date-range .radio-date-group .radio-date-item{border-left:1px solid #d9d9d9;cursor:pointer;height:30px;line-height:30px;padding:0 8px}.render-widget-date-range .radio-date-group .radio-date-item:first-child{border:none}.render-widget-date-range .radio-date-group .radio-date-item.radio-date-item-active{background:#3e65cf;border-color:#3e65cf;color:#fff}.render-widget-date-range .select-date-left{margin-left:16px}.render-widget-date-range .select-date-right{margin-right:16px}.render-widget-date-range .date-detail-range{display:flex;flex-wrap:nowrap}.render-widget-date-range .date-detail-range .divider{text-align:center;width:10px}.label-attr-filter-container .edit-f-label{font-size:14px;line-height:32px;padding-left:0}.label-attr-filter-container .edit-f-content.label-select-height{flex:none;height:74px;overflow:hidden}.label-attr-filter-container .edit-f-content .label-f-content{display:flex;flex-wrap:wrap}.label-attr-filter-container .edit-f-content .label-f-content .n-tag{border:1px solid #e0e0e6;height:32px;margin:0 8px 8px 0;max-width:108px;text-align:center}.label-attr-filter-container .edit-f-content .label-f-content .n-tag .n-tag__content{align-items:center;display:inline-flex}.label-attr-filter-container .edit-f-content .label-f-content .n-tag .n-tag__content span{display:inline-block;height:100%;line-height:30px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:80px}.label-attr-filter-container .label-f-unfold-btn{margin:8px 0}.label-attr-filter-container .label-f-unfold-btn .operate-btn{align-items:center;cursor:pointer;display:flex}.label-attr-filter-container .label-f-unfold-btn .operate-btn .n-icon{margin-left:6px}.base-search-block .base-container{display:flex;justify-content:space-between;text-align:left}.base-search-block .base-container .bease-left{align-items:flex-start;display:flex;flex:1;justify-content:flex-start}.base-search-block .base-container .bease-left .base-ul{align-items:center;display:flex;flex-wrap:wrap;margin-top:0}.base-search-block .base-container .bease-left .base-ul .baseli{display:flex;margin-bottom:8px;margin-right:8px}.base-search-block .base-container .bease-left .base-ul .baseli .search-default{height:32px;line-height:32px}
1
+ @font-face{font-family:base-search-iconfont;src:url(base-search-iconfont.ttf) format("truetype")}.iconfont-table-filter{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:base-search-iconfont!important;font-size:14px;font-style:normal}.icon-table-filter-menzhenyishengzhananniuqingchu:before{content:"\e74e"}.icon-table-filter-menzhenyishengzhananniushanchu2:before{content:"\e757"}.icon-table-filter-menzhenyishengzhanxitongtubiaoguanbi:before{content:"\e76e"}.icon-table-filter-menzhenyishengzhanxitongtubiaozuixiaohua2:before{content:"\e778"}.icon-table-filter-menzhenyishengzhanxitongtubiaozuidahua:before{content:"\e779"}.icon-table-filter-reset:before{content:"\e611"}.icon-table-filter-shaixuan:before{content:"\e64b"}.render-widget-input-number-group{align-items:center;display:flex}.render-widget-input-number-group .divider{text-align:center;width:24px}.render-widget-date-range{align-items:center;display:flex;flex-wrap:nowrap;width:100%}.render-widget-date-range .radio-date-group{border:1px solid #d9d9d9;display:flex}.render-widget-date-range .radio-date-group .radio-date-item{border-left:1px solid #d9d9d9;cursor:pointer;height:30px;line-height:30px;padding:0 8px}.render-widget-date-range .radio-date-group .radio-date-item:first-child{border:none}.render-widget-date-range .radio-date-group .radio-date-item.radio-date-item-active{background:#3e65cf;border-color:#3e65cf;color:#fff}.render-widget-date-range .select-date-left{margin-left:16px}.render-widget-date-range .select-date-right{margin-right:16px}.render-widget-date-range .date-detail-range{display:flex;flex-wrap:nowrap}.render-widget-date-range .date-detail-range .divider{text-align:center;width:10px}.label-attr-filter-container .edit-f-label{font-size:14px;line-height:32px;padding-left:0}.label-attr-filter-container .edit-f-content.label-select-height{flex:none;height:74px;overflow:hidden}.label-attr-filter-container .edit-f-content .label-f-content{display:flex;flex-wrap:wrap}.label-attr-filter-container .edit-f-content .label-f-content .n-tag{border:1px solid #e0e0e6;height:32px;margin:0 8px 8px 0;max-width:108px;text-align:center}.label-attr-filter-container .edit-f-content .label-f-content .n-tag .n-tag__content{align-items:center;display:inline-flex}.label-attr-filter-container .edit-f-content .label-f-content .n-tag .n-tag__content span{display:inline-block;height:100%;line-height:30px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:80px}.label-attr-filter-container .label-f-unfold-btn{margin:8px 0}.label-attr-filter-container .label-f-unfold-btn .operate-btn{align-items:center;cursor:pointer;display:flex}.label-attr-filter-container .label-f-unfold-btn .operate-btn .n-icon{margin-left:6px}.select-dynamic-popover .n-base-select-menu__empty{justify-content:left;padding:0}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options{background:#fff;box-shadow:0 0 6px rgba(0,0,0,.2);display:flex;flex-direction:column;justify-content:left}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .n-empty{padding:12px 32px}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .mixins-options-active{background:#f1f1f1}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .dynamic-header{display:flex}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .dynamic-header .name{align-items:center;display:flex;flex:1;font-weight:700;height:34px;padding:0 12px}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .dynamic-content{list-style:none;margin:0;max-height:250px;outline:none;overflow:auto;padding-left:0}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .dynamic-content li{color:rgba(0,0,0,.65);cursor:pointer;display:flex;font-size:14px;line-height:22px;text-overflow:ellipsis;transition:background .3s ease;white-space:nowrap}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .dynamic-content li.actived{color:#5585f5}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .dynamic-content li:hover{background:#f1f1f1}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .dynamic-content li .content{flex:1;overflow:hidden;padding:5px 12px;text-overflow:ellipsis;white-space:nowrap}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .dynamic-pagination{width:100%}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .dynamic-pagination .n-button-group{display:flex}.select-dynamic-popover .n-base-select-menu__empty .select-dynamic-options .dynamic-pagination .n-button-group .n-button{flex:1}.base-search-block .base-container{display:flex;justify-content:space-between;text-align:left}.base-search-block .base-container .bease-left{align-items:flex-start;display:flex;flex:1;justify-content:flex-start}.base-search-block .base-container .bease-left .base-ul{align-items:center;display:flex;flex-wrap:wrap;margin-top:0}.base-search-block .base-container .bease-left .base-ul .baseli{display:flex;margin-bottom:8px;margin-right:8px}.base-search-block .base-container .bease-left .base-ul .baseli .search-default{height:32px;line-height:32px}
@@ -23,7 +23,7 @@ export declare class Print {
23
23
  _testConnection(): Promise<unknown>;
24
24
  _queryServicesPrint(params: AnyObject): Promise<any>;
25
25
  _callPrintWithFile(queryParams: AnyObject): Promise<any>;
26
- _handleMonitorNotify(message: string): void;
26
+ _handleMonitorNotify(message: string | unknown): void;
27
27
  _handleResult(data: AnyObject, errorCallbackFn?: Func): false | AnyObject;
28
28
  _handleResultTest(result: unknown, errorCallbackFn?: Func): boolean;
29
29
  _handleEventQueryPrintData(templateId: string, formatId: string, params: AnyObject, errorCallbackFn?: Func): Promise<false | {
@@ -1 +1 @@
1
- import t from"axios";import{isArray as e}from"lodash-es";import{IdentityVerificationDialog as i,PreviewDialog as n}from"./dialog.js";import{getFileUrl as s,useBrowserPrint as r,isIReport as a}from"./browserPrint.js";import{getCurrentInstance as o}from"vue";import{format as l}from"date-fns";const d=t.create({timeout:1e3,withCredentials:!1}),h=`${window.location.protocol}//${window.location.host}`,c=`${h}/fdp-api/print/assembly/printIReport`,p=`${h}/bi-api/reprot/print/open/client/getRemote`,u=`${h}/printService/file`;let m=null;class w{constructor(){var t;if(this.webview=null,this.dialog=new i,this.dialogPreview=new n,this.instance=null,this.downloadPath="",this.printOrigin="http://127.0.0.1:11111",this.isRemote=!1,this.CMonitor=null,this.messageHandlerQueue=[],m)return m;m=this;const e=window;if(this.CMonitor=e.$CMonitor,this.webview=null==(t=e.chrome)?void 0:t.webview,this.webview){this.currentMessageHandler=this.messageHandler.bind(this),this.webview.addEventListener("message",this.currentMessageHandler);try{this.postMessage({exec:"config",data:""})}catch(t){this._handleMonitorNotify("当前浏览器版本不支持获取配置接口"),console.log("非封装浏览器或者当前版本不支持获取配置接口")}}}messageHandler(t){var e;const i=this.messageHandlerQueue.shift();if(!i)return console.log("当前回执",t,"没有可用的handler");const{resolve:n,reject:s}=i;try{console.log(t);const i=JSON.parse(t.data||"{}");"config"===i.exec&&(this.downloadPath=(null==(e=i.res)?void 0:e.downloadpath)||""),n(i.res||"")}catch(t){s(t)}}async postMessage(t){return this.webview?new Promise(((e,i)=>{this.messageHandlerQueue.push({resolve:e,reject:i}),this.webview.postMessage(t)})):Promise.reject()}destroy(){this.webview&&this.currentMessageHandler&&(this.webview.removeEventListener("message",this.currentMessageHandler),this.currentMessageHandler=void 0)}show(...t){return this.dialog.show(...t)}showPreview(...t){return this.dialogPreview.show(...t)}_testConnection(){return this.webview?Promise.resolve(!0):new Promise((t=>{d({url:`${this.printOrigin}/test`,method:"get",withCredentials:!1,params:{inputdata:{result:"success"}}}).then((({data:e})=>{"success"===e.result?t(!0):t(!1)})).catch((e=>{t(!1)}))}))}_queryServicesPrint(e){return this.webview?this.postMessage({exec:"print",data:{inputData:e}}):t({url:this.printOrigin+"/services/print",method:"get",params:{inputData:JSON.stringify(e)}}).then((({data:t})=>t))}_callPrintWithFile(t){const e={cmdid:"7",flag:"1"},i={inputData:JSON.stringify(Object.assign({},e,t))};return this.webview?this.postMessage({exec:"print",data:n(i)}):d({url:this.printOrigin+"/PrintLocal",method:"post",data:i,transformRequest:[n]}).then((({data:t})=>t));function n(t){let e="";for(const i in t)e+=encodeURIComponent(i)+"="+encodeURIComponent(t[i])+"&";return e=e.slice(0,-1),e}}_handleMonitorNotify(t){var e,i;null==(i=null==(e=this.CMonitor)?void 0:e.notify)||i.call(e,{name:"打印sdk错误收集",message:t,businessName:"打印sdk"})}_handleResult(t,e){if(!t)return this._handleMonitorNotify("打印命令未返回信息"),null==e||e({type:"printError",message:"打印命令未返回信息",result:!1,errinfo:"打印命令未返回信息"}),!1;if("success"!==t.result){const i=t.message||t.Message;this._handleMonitorNotify(i);const n={type:"printError",message:i,result:t.result,errinfo:t.errinfo};return null==e||e(n),!1}return t}_handleResultTest(t,e){return!!t||(console.log("notInstalledApp"),null==e||e({type:"notInstalledApp",message:"请打开打印服务器插件"}),!1)}async _handleEventQueryPrintData(t,e,i,n){const s={templateId:t,formatId:e,params:i,cmdid:"7"},r=await this._queryServicesPrint(s);return this._handleQueryPrintDataResult(r,e,n)}_handleQueryPrintDataResult(t,e,i){if(!(null==t?void 0:t.file)){try{const e=t.message||t.Message;console.log(e),null==i||i({type:"queryPrintDataFailure",message:e})}catch(t){console.log(t)}return!1}return{file:t.file,printerName:t.defprinter,pageCount:t.pagecount,formatId:e}}async _handleEventDirect({templateId:t,formatId:e,params:i,cmdid:n,print:s,printdlgshow:r="1",nobillnode:a="1",btnprint:o="1"}){const d={templateId:t,formatId:e,params:i,cmdid:n,nobillnode:a,printdlgshow:r,btnprint:o};if(s){try{s=JSON.parse(s)}catch(t){}d.print=s}else if(this.isRemote){const t=l(new Date,"yyyyMMddHHmmss");d.print={print:"1",type:"1",zip:"0",filename:`F:\\WorkSpace\\crmweb\\web\\${t}\\${t}`}}return await this._queryServicesPrint(d)}async _handleEventEditFormat({templateId:t,formatId:e="",params:i="",token:n}){const s={};let r={};try{r=Object.assign({},s,JSON.parse(i))}catch(t){r=s}const a={templateId:t,formatId:e,cmdid:"9",token:n,params:JSON.stringify(r)};return await this._queryServicesPrint(a)}async _queryProxyOrigin(){if(this.isRemote)return;const{data:t}=await d({method:"get",url:p})||{},{map:e={}}=t;e.isRemote&&(this.printOrigin=h+"/printService",this.isRemote=!0)}async _queryPrintFile(t,e=""){const{data:i}=await d({method:"post",url:c,responseType:"blob",params:{formatId:t.split("_")[1],params:e}})||{};return i}async _browserPrint(t,e){if(this.isRemote){const{filedir:i}=t,n=JSON.parse(i)[0].replace(/\\/g,"/").split("/"),a=n[n.length-2],o=n[n.length-1],l=await s(`${u}/${a}/${o}`),d=r(null,e,l);if("preview"===e)return d}}async preview({templateId:t,formatId:e,params:i="",btnprint:n},s,l){if(a(e)){const t=await this._queryPrintFile(e,i);if(!t)return null==l?void 0:l("获取文件失败!");const n=r(t,"preview");return this.instance||(this.instance=o()),this.showPreview(this.instance,n),void(null==s||s({file:t}))}await this._queryProxyOrigin();const d=await this._testConnection();if(!this._handleResultTest(d,l))return!1;const h=await this._handleEventDirect({templateId:t,formatId:e,params:i,cmdid:this.isRemote?"7":"8",btnprint:n}),c=this._handleResult(h,l);if(!c)return!1;if(this.isRemote){const t=await this._browserPrint(c,"preview");this.instance||(this.instance=o()),this.showPreview(this.instance,t)}s&&s(c)}async printDirect({templateId:t,formatId:e,params:i="",print:n,printdlgshow:s,nobillnode:o,isDownloadFile:l=!0},d,h,c="printDirect"){if(a(e)){const t=await this._queryPrintFile(e,i);return t?(r(t,c),void(null==d||d({file:t}))):null==h?void 0:h("获取文件失败!")}await this._queryProxyOrigin();const p=await this._testConnection();if(!this._handleResultTest(p,h))return!1;const u=await this._handleEventDirect({templateId:t,formatId:e,params:i,cmdid:"7",print:n,printdlgshow:s,nobillnode:o}),m=this._handleResult(u,h);if(!m)return!1;l&&["downloadPDF"].includes(c)&&await this._browserPrint(m,c),null==d||d(m)}_downloadPDF(t){return this.webview?this.postMessage({exec:"pdf",data:{file:t}}):d.get(this.printOrigin+"/download",{params:{inputData:t}}).then((({data:t})=>t))}downloadPDF(t,i,n){this.webview&&this.downloadPath&&(t.print.filename=this.downloadPath.replace(/\\/g,"/")),this.printDirect(t,(async s=>{if(s||n(null),a(t.formatId))return i(s);const r=this,o=await async function(t){const i=[],n=JSON.parse(t);if(!e(n))return await r._downloadPDF("");if(1===n.length)return await r._downloadPDF(n[0]||"");for(let t=0,e=n.length;t<e;t++)i.push(await r._downloadPDF(n[t]||""));return i}(s.filedir);i(o,s)}),(t=>n(t)),"downloadPDF")}async print({templateId:t,formatId:e,params:i=""},n,s){const r=await this._testConnection();if(!this._handleResultTest(r,s))return!1;const a=await this.queryPrintData({templateId:t,formatId:e,params:i},void 0,s);if(!a)return!1;const o=this.printFileData({formatId:e,file:a.file,printerName:a.printerName},void 0,s);if(!o)return!1;n&&n(o)}async queryPrintData({templateId:t,formatId:e,params:i=""},n,s){const r=await this._testConnection();if(!this._handleResultTest(r,s))return!1;const a=await this._handleEventQueryPrintData(t,e,i,s);return!!a&&(n&&n(a),a)}async printFileData({formatId:t,file:e,printerName:i="Default"},n,s){const r=await this._testConnection();if(!this._handleResultTest(r,s))return!1;const a=await this._callPrintWithFile({formatId:t,printname:i,file:e}),o=this._handleResult(a,s);return!!o&&(n&&n(o),o)}async editPrintFormat({templateId:t,formatId:e,params:i,token:n},s,r){const a=await this._testConnection();if(!this._handleResultTest(a,r))return!1;const o=await this._handleEventEditFormat({templateId:t,formatId:e,params:i,token:n}),l=this._handleResult(o,r);if(!l)return!1;s&&s(l)}async addPrintFormat({templateId:t,params:e,token:i},n,s){const r=await this._testConnection();if(!this._handleResultTest(r,s))return!1;const a=await this._handleEventEditFormat({templateId:t,params:e,token:i}),o=this._handleResult(a,s);if(!o)return!1;n&&n(o)}}export{w as Print};
1
+ import t from"axios";import{isArray as e}from"lodash-es";import{IdentityVerificationDialog as i,PreviewDialog as n}from"./dialog.js";import{getFileUrl as s,useBrowserPrint as r,isIReport as a}from"./browserPrint.js";import{getCurrentInstance as o}from"vue";import{format as l}from"date-fns";const d=t.create({timeout:1e3,withCredentials:!1}),h=`${window.location.protocol}//${window.location.host}`,c=`${h}/fdp-api/print/assembly/printIReport`,p=`${h}/bi-api/reprot/print/open/client/getRemote`,u=`${h}/printService/file`;let m=null;class w{constructor(){var t;if(this.webview=null,this.dialog=new i,this.dialogPreview=new n,this.instance=null,this.downloadPath="",this.printOrigin="http://127.0.0.1:11111",this.isRemote=!1,this.CMonitor=null,this.messageHandlerQueue=[],m)return m;m=this;const e=window;if(this.CMonitor=e.$CMonitor,this.webview=null==(t=e.chrome)?void 0:t.webview,this.webview){this.currentMessageHandler=this.messageHandler.bind(this),this.webview.addEventListener("message",this.currentMessageHandler);try{this.webview.postMessage({exec:"config",data:""})}catch(t){this._handleMonitorNotify("当前浏览器版本不支持获取配置接口"),console.log("非封装浏览器或者当前版本不支持获取配置接口")}}}messageHandler(t){var e;if(!t)return console.log("当前回执",t,"接收到空的浏览器事件");let i;try{i=JSON.parse(t.data||"{}")}catch(t){console.log("解析e.data失败,"+t)}if(["print","pdf"].includes(null==i?void 0:i.cmd)){const e=this.messageHandlerQueue.shift();if(!e)return console.log("当前回执",t,"没有可用的handler");const{resolve:n,reject:s}=e;try{n(i.res||"")}catch(t){s(t)}}else"config"===(null==i?void 0:i.exec)&&(this.downloadPath=(null==(e=i.res)?void 0:e.downloadpath)||"")}async postMessage(t){return this.webview?new Promise(((e,i)=>{this.messageHandlerQueue.push({resolve:e,reject:i}),this.webview.postMessage(t)})):Promise.reject()}destroy(){this.webview&&this.currentMessageHandler&&(this.webview.removeEventListener("message",this.currentMessageHandler),this.currentMessageHandler=void 0)}show(...t){return this.dialog.show(...t)}showPreview(...t){return this.dialogPreview.show(...t)}_testConnection(){return this.webview?Promise.resolve(!0):new Promise((t=>{d({url:`${this.printOrigin}/test`,method:"get",withCredentials:!1,params:{inputdata:{result:"success"}}}).then((({data:e})=>{"success"===e.result?t(!0):t(!1)})).catch((e=>{t(!1)}))}))}_queryServicesPrint(e){return this.webview?this.postMessage({exec:"print",data:{inputData:e}}):t({url:this.printOrigin+"/services/print",method:"get",params:{inputData:JSON.stringify(e)}}).then((({data:t})=>t))}_callPrintWithFile(t){const e={cmdid:"7",flag:"1"},i={inputData:JSON.stringify(Object.assign({},e,t))};return this.webview?this.postMessage({exec:"print",data:n(i)}):d({url:this.printOrigin+"/PrintLocal",method:"post",data:i,transformRequest:[n]}).then((({data:t})=>t));function n(t){let e="";for(const i in t)e+=encodeURIComponent(i)+"="+encodeURIComponent(t[i])+"&";return e=e.slice(0,-1),e}}_handleMonitorNotify(t){var e,i;null==(i=null==(e=this.CMonitor)?void 0:e.notify)||i.call(e,{name:"custom_info",message:t,businessName:"打印sdk"})}_handleResult(t,e){if(!t)return this._handleMonitorNotify("打印命令未返回信息"),null==e||e({type:"printError",message:"打印命令未返回信息",result:!1,errinfo:"打印命令未返回信息"}),!1;if("success"!==t.result){const i=t.message||t.Message;this._handleMonitorNotify(i);const n={type:"printError",message:i,result:t.result,errinfo:t.errinfo};return null==e||e(n),!1}return t}_handleResultTest(t,e){return!!t||(console.log("notInstalledApp"),null==e||e({type:"notInstalledApp",message:"请打开打印服务器插件"}),!1)}async _handleEventQueryPrintData(t,e,i,n){const s={templateId:t,formatId:e,params:i,cmdid:"7"},r=await this._queryServicesPrint(s);return this._handleQueryPrintDataResult(r,e,n)}_handleQueryPrintDataResult(t,e,i){if(!(null==t?void 0:t.file)){try{const e=t.message||t.Message;console.log(e),null==i||i({type:"queryPrintDataFailure",message:e})}catch(t){console.log(t)}return!1}return{file:t.file,printerName:t.defprinter,pageCount:t.pagecount,formatId:e}}async _handleEventDirect({templateId:t,formatId:e,params:i,cmdid:n,print:s,printdlgshow:r="1",nobillnode:a="1",btnprint:o="1"}){const d={templateId:t,formatId:e,params:i,cmdid:n,nobillnode:a,printdlgshow:r,btnprint:o};if(s){try{s=JSON.parse(s)}catch(t){}d.print=s}else if(this.isRemote){const t=l(new Date,"yyyyMMddHHmmss");d.print={print:"1",type:"1",zip:"0",filename:`F:\\WorkSpace\\crmweb\\web\\${t}\\${t}`}}return await this._queryServicesPrint(d)}async _handleEventEditFormat({templateId:t,formatId:e="",params:i="",token:n}){const s={};let r={};try{r=Object.assign({},s,JSON.parse(i))}catch(t){r=s}const a={templateId:t,formatId:e,cmdid:"9",token:n,params:JSON.stringify(r)};return await this._queryServicesPrint(a)}async _queryProxyOrigin(){if(this.isRemote)return;const{data:t}=await d({method:"get",url:p})||{},{map:e={}}=t;e.isRemote&&(this.printOrigin=h+"/printService",this.isRemote=!0)}async _queryPrintFile(t,e=""){const{data:i}=await d({method:"post",url:c,responseType:"blob",params:{formatId:t.split("_")[1],params:e}})||{};return i}async _browserPrint(t,e){if(this.isRemote){const{filedir:i}=t,n=JSON.parse(i)[0].replace(/\\/g,"/").split("/"),a=n[n.length-2],o=n[n.length-1],l=await s(`${u}/${a}/${o}`),d=r(null,e,l);if("preview"===e)return d}}async preview({templateId:t,formatId:e,params:i="",btnprint:n},s,l){if(a(e)){const t=await this._queryPrintFile(e,i);if(!t)return null==l?void 0:l("获取文件失败!");const n=r(t,"preview");return this.instance||(this.instance=o()),this.showPreview(this.instance,n),void(null==s||s({file:t}))}await this._queryProxyOrigin();const d=await this._testConnection();if(!this._handleResultTest(d,l))return!1;try{const r=await this._handleEventDirect({templateId:t,formatId:e,params:i,cmdid:this.isRemote?"7":"8",btnprint:n}),a=this._handleResult(r,l);if(!a)return!1;if(this.isRemote){const t=await this._browserPrint(a,"preview");this.instance||(this.instance=o()),this.showPreview(this.instance,t)}null==s||s(a)}catch(t){const e="预览失败";null==l||l(e),this._handleMonitorNotify(e)}}async printDirect({templateId:t,formatId:e,params:i="",print:n,printdlgshow:s,nobillnode:o,isDownloadFile:l=!0},d,h,c="printDirect"){if(a(e)){const t=await this._queryPrintFile(e,i);return t?(r(t,c),void(null==d||d({file:t}))):null==h?void 0:h("获取文件失败!")}await this._queryProxyOrigin();const p=await this._testConnection();if(!this._handleResultTest(p,h))return!1;try{const r=await this._handleEventDirect({templateId:t,formatId:e,params:i,cmdid:"7",print:n,printdlgshow:s,nobillnode:o}),a=this._handleResult(r,h);if(!a)return!1;l&&["downloadPDF"].includes(c)&&await this._browserPrint(a,c),null==d||d(a)}catch(t){const e="printDirect"===c?"打印失败":"下载失败";null==h||h(e),this._handleMonitorNotify(e)}}_downloadPDF(t){return this.webview?this.postMessage({exec:"pdf",data:{file:t}}):d.get(this.printOrigin+"/download",{params:{inputData:t}}).then((({data:t})=>t))}downloadPDF(t,i,n){this.webview&&this.downloadPath&&(Reflect.has(t,"print")||Reflect.set(t,"print",{print:"1",type:"1"}),t.print.filename=this.downloadPath.replace(/\\/g,"/")),this.printDirect(t,(async s=>{if(s||n(null),a(t.formatId))return i(s);const r=this,o=await async function(t){const i=[],n=JSON.parse(t);if(!e(n))return await r._downloadPDF("");if(1===n.length)return await r._downloadPDF(n[0]||"");for(let t=0,e=n.length;t<e;t++)i.push(await r._downloadPDF(n[t]||""));return i}(s.filedir);i(o,s)}),(t=>n(t)),"downloadPDF")}async print({templateId:t,formatId:e,params:i=""},n,s){const r=await this._testConnection();if(!this._handleResultTest(r,s))return!1;const a=await this.queryPrintData({templateId:t,formatId:e,params:i},void 0,s);if(!a)return!1;const o=this.printFileData({formatId:e,file:a.file,printerName:a.printerName},void 0,s);if(!o)return!1;n&&n(o)}async queryPrintData({templateId:t,formatId:e,params:i=""},n,s){const r=await this._testConnection();if(!this._handleResultTest(r,s))return!1;const a=await this._handleEventQueryPrintData(t,e,i,s);return!!a&&(n&&n(a),a)}async printFileData({formatId:t,file:e,printerName:i="Default"},n,s){const r=await this._testConnection();if(!this._handleResultTest(r,s))return!1;const a=await this._callPrintWithFile({formatId:t,printname:i,file:e}),o=this._handleResult(a,s);return!!o&&(n&&n(o),o)}async editPrintFormat({templateId:t,formatId:e,params:i,token:n},s,r){const a=await this._testConnection();if(!this._handleResultTest(a,r))return!1;const o=await this._handleEventEditFormat({templateId:t,formatId:e,params:i,token:n}),l=this._handleResult(o,r);if(!l)return!1;s&&s(l)}async addPrintFormat({templateId:t,params:e,token:i},n,s){const r=await this._testConnection();if(!this._handleResultTest(r,s))return!1;const a=await this._handleEventEditFormat({templateId:t,params:e,token:i}),o=this._handleResult(a,s);if(!o)return!1;n&&n(o)}}export{w as Print};
@@ -566,7 +566,6 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
566
566
  bodyStyle: import("vue").Ref<{
567
567
  maxHeight: string;
568
568
  height: string;
569
- overflowY: string;
570
569
  }>;
571
570
  conditionApiRef: any;
572
571
  filterTimer: any;
@@ -735,6 +734,9 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
735
734
  presetValCp: import("vue").WritableComputedRef<string>;
736
735
  widgetType: import("vue").ComputedRef<any>;
737
736
  Date: import("vue").DefineComponent<{
737
+ componentCfg: {
738
+ type: ObjectConstructor;
739
+ };
738
740
  paramCfg: {
739
741
  type: ObjectConstructor;
740
742
  default: null;
@@ -749,6 +751,9 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
749
751
  };
750
752
  }, {
751
753
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
754
+ componentCfg: {
755
+ type: ObjectConstructor;
756
+ };
752
757
  paramCfg: {
753
758
  type: ObjectConstructor;
754
759
  default: null;
@@ -771,11 +776,17 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
771
776
  dateType: any;
772
777
  valueFormat: import("vue").ComputedRef<string>;
773
778
  compType: import("vue").ComputedRef<any>;
774
- mappingConfig: import("vue").ComputedRef<any>;
779
+ optionSetting: import("vue").ComputedRef<any>;
775
780
  widgetOptions: import("vue").ComputedRef<{
776
781
  label: string;
777
782
  value: string;
778
783
  }[]>;
784
+ isDateDisabled: (ts: number) => boolean;
785
+ timeDisabled: (ts: number) => {
786
+ isHourDisabled(hour: number): boolean | undefined;
787
+ isMinuteDisabled(minute: number, hour: number | null): boolean | undefined;
788
+ isSecondDisabled(second: number, minute: number | null, hour: number | null): boolean | undefined;
789
+ };
779
790
  CDatePicker: SFCWithInstall<import("vue").DefineComponent<{
780
791
  updateUnchangedValue: {
781
792
  type: BooleanConstructor;
@@ -819,6 +830,7 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
819
830
  WidgetValEnums: {
820
831
  CUSTOM: string;
821
832
  FIRST_VAL: string;
833
+ WHOLE: string;
822
834
  NOW: string;
823
835
  TODAY: string;
824
836
  TODAY_START: string;
@@ -847,6 +859,9 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
847
859
  LAST_YEAR: string;
848
860
  };
849
861
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:presetVal")[], "update:modelValue" | "update:presetVal", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
862
+ componentCfg: {
863
+ type: ObjectConstructor;
864
+ };
850
865
  paramCfg: {
851
866
  type: ObjectConstructor;
852
867
  default: null;
@@ -954,11 +969,7 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
954
969
  emit: (event: "update:modelValue", ...args: any[]) => void;
955
970
  valueCp: import("vue").WritableComputedRef<any>;
956
971
  optionSetting: import("vue").ComputedRef<any>;
957
- mappingConfig: import("vue").ComputedRef<any>;
958
- widgetOptions: import("vue").ComputedRef<{
959
- label: string;
960
- value: string;
961
- }[]>;
972
+ widgetOptions: import("vue").ComputedRef<any>;
962
973
  NSelect: any;
963
974
  WidgetOptionEnums: {
964
975
  RADIO: string;
@@ -998,6 +1009,7 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
998
1009
  default: null;
999
1010
  };
1000
1011
  }, {
1012
+ message: import("naive-ui").MessageApi;
1001
1013
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
1002
1014
  paramCfg: {
1003
1015
  type: ObjectConstructor;
@@ -1010,28 +1022,195 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
1010
1022
  }>> & {
1011
1023
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
1012
1024
  }>>;
1013
- handleGetConfigApi: (params: any, key: string, config: {} | undefined, filterApiConfigVal: any) => Promise<any>;
1014
- $attrs: {
1015
- [x: string]: unknown;
1016
- };
1025
+ getDynamicSelectData: (params: any, filterApiConfig: any) => Promise<any>;
1017
1026
  emit: (event: "update:modelValue", ...args: any[]) => void;
1018
- selectOptions: import("vue").Ref<any[]>;
1019
1027
  isLoading: import("vue").Ref<boolean>;
1020
1028
  filterApiConfig: import("../../../es/shared/types").AnyObject;
1021
- valueCp: import("vue").WritableComputedRef<any>;
1029
+ classifyFilterList: import("vue").Ref<import("../../../es/shared/types").AnyObject[]>;
1030
+ totalPage: import("vue").Ref<number>;
1031
+ menuProps: {
1032
+ class: string;
1033
+ };
1034
+ curPage: import("vue").Ref<number>;
1035
+ fieldTitleList: import("vue").Ref<any>;
1036
+ selectOptions: import("vue").Ref<any[]>;
1037
+ keywordVal: import("vue").Ref<any>;
1022
1038
  optionSetting: import("vue").ComputedRef<any>;
1023
1039
  isMultiple: import("vue").ComputedRef<boolean>;
1024
- searchOptions: (keyword: string) => Promise<any>;
1040
+ dynamicOptionInfos: import("vue").ComputedRef<any>;
1041
+ isLastPage: import("vue").ComputedRef<boolean>;
1042
+ valueCp: import("vue").ComputedRef<string | number | any[]>;
1043
+ isInitRequest: import("vue").ComputedRef<boolean>;
1044
+ setOptionActive: (selectIds: string[]) => void;
1045
+ handleUpdateSelect: (value: string[] | null) => void;
1046
+ handleUpdatePage: (page: number) => Promise<void>;
1047
+ getOptionsData: (keyword: string, curPage: number) => Promise<any>;
1048
+ isWhole: (value: string) => boolean;
1025
1049
  _handleSearch: (query: string) => Promise<void>;
1026
1050
  handleSearch: (query: string) => Promise<void>;
1027
1051
  handleInitData: () => Promise<void>;
1028
- renderLabel: (option: import("naive-ui").SelectOption) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
1029
- [key: string]: any;
1030
- }>;
1052
+ handleClear: () => Promise<void>;
1053
+ handleUpdateShow: (show: boolean) => void;
1031
1054
  renderTag: ({ option, handleClose }: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
1032
1055
  [key: string]: any;
1033
1056
  }>;
1057
+ init: () => void;
1034
1058
  NSelect: any;
1059
+ SelectDynamicOption: import("vue").DefineComponent<{
1060
+ dynamicOptionInfo: {
1061
+ type: import("vue").PropType<import("../../../es/shared/types").AnyObject>;
1062
+ default: () => {};
1063
+ };
1064
+ fieldTitleList: {
1065
+ type: import("vue").PropType<import("../../../es/shared/types").AnyObject[]>;
1066
+ default: () => never[];
1067
+ };
1068
+ optionList: {
1069
+ type: import("vue").PropType<import("../../../es/shared/types").AnyObject[]>;
1070
+ default: () => never[];
1071
+ };
1072
+ isMultiple: {
1073
+ type: BooleanConstructor;
1074
+ default: boolean;
1075
+ };
1076
+ curPage: {
1077
+ type: NumberConstructor;
1078
+ default: number;
1079
+ };
1080
+ isLastPage: {
1081
+ type: BooleanConstructor;
1082
+ default: boolean;
1083
+ };
1084
+ isShowWhole: {
1085
+ type: BooleanConstructor;
1086
+ default: boolean;
1087
+ };
1088
+ }, {
1089
+ selectMinWidth: number;
1090
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
1091
+ dynamicOptionInfo: {
1092
+ type: import("vue").PropType<import("../../../es/shared/types").AnyObject>;
1093
+ default: () => {};
1094
+ };
1095
+ fieldTitleList: {
1096
+ type: import("vue").PropType<import("../../../es/shared/types").AnyObject[]>;
1097
+ default: () => never[];
1098
+ };
1099
+ optionList: {
1100
+ type: import("vue").PropType<import("../../../es/shared/types").AnyObject[]>;
1101
+ default: () => never[];
1102
+ };
1103
+ isMultiple: {
1104
+ type: BooleanConstructor;
1105
+ default: boolean;
1106
+ };
1107
+ curPage: {
1108
+ type: NumberConstructor;
1109
+ default: number;
1110
+ };
1111
+ isLastPage: {
1112
+ type: BooleanConstructor;
1113
+ default: boolean;
1114
+ };
1115
+ isShowWhole: {
1116
+ type: BooleanConstructor;
1117
+ default: boolean;
1118
+ };
1119
+ }>> & {
1120
+ onUpdateSelect?: ((...args: any[]) => any) | undefined;
1121
+ onUpdatePage?: ((...args: any[]) => any) | undefined;
1122
+ }>>;
1123
+ emit: (event: "updateSelect" | "updatePage", ...args: any[]) => void;
1124
+ dragEndWidth: import("vue").Ref<number>;
1125
+ showKeys: import("vue").ComputedRef<any>;
1126
+ titleList: import("vue").ComputedRef<string[]>;
1127
+ handleSelect: (option: any) => void;
1128
+ searchByPage: (onePage: number) => void;
1129
+ changeWidth: ({ distance }: any) => void;
1130
+ saveWidth: () => void;
1131
+ NEmpty: any;
1132
+ NButtonGroup: any;
1133
+ NButton: any;
1134
+ NIcon: any;
1135
+ NPopover: any;
1136
+ vFlexibleResize: {
1137
+ mounted(el: any, { value }: any): void;
1138
+ beforeUnmount(el: any): void;
1139
+ };
1140
+ WidgetValEnums: {
1141
+ CUSTOM: string;
1142
+ FIRST_VAL: string;
1143
+ WHOLE: string;
1144
+ NOW: string;
1145
+ TODAY: string;
1146
+ TODAY_START: string;
1147
+ TODAY_END: string;
1148
+ TOMORROW: string;
1149
+ TOMORROW_START: string;
1150
+ TOMORROW_END: string;
1151
+ YESTERDAY: string;
1152
+ YESTERDAY_START: string;
1153
+ YESTERDAY_END: string;
1154
+ THIS_WEEK: string;
1155
+ WEEK_START: string;
1156
+ WEEK_END: string;
1157
+ NEXT_WEEK: string;
1158
+ LAST_WEEK: string;
1159
+ THIS_MONTH: string;
1160
+ MONTH_START: string;
1161
+ MONTH_END: string;
1162
+ NEXT_MONTH: string;
1163
+ LAST_MONTH: string;
1164
+ THIS_QUARTER: string;
1165
+ NEXT_QUARTER: string;
1166
+ LAST_QUARTER: string;
1167
+ THIS_YEAR: string;
1168
+ NEXT_YEAR: string;
1169
+ LAST_YEAR: string;
1170
+ };
1171
+ ArrowBack: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
1172
+ ArrowForward: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
1173
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("updateSelect" | "updatePage")[], "updateSelect" | "updatePage", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
1174
+ dynamicOptionInfo: {
1175
+ type: import("vue").PropType<import("../../../es/shared/types").AnyObject>;
1176
+ default: () => {};
1177
+ };
1178
+ fieldTitleList: {
1179
+ type: import("vue").PropType<import("../../../es/shared/types").AnyObject[]>;
1180
+ default: () => never[];
1181
+ };
1182
+ optionList: {
1183
+ type: import("vue").PropType<import("../../../es/shared/types").AnyObject[]>;
1184
+ default: () => never[];
1185
+ };
1186
+ isMultiple: {
1187
+ type: BooleanConstructor;
1188
+ default: boolean;
1189
+ };
1190
+ curPage: {
1191
+ type: NumberConstructor;
1192
+ default: number;
1193
+ };
1194
+ isLastPage: {
1195
+ type: BooleanConstructor;
1196
+ default: boolean;
1197
+ };
1198
+ isShowWhole: {
1199
+ type: BooleanConstructor;
1200
+ default: boolean;
1201
+ };
1202
+ }>> & {
1203
+ onUpdateSelect?: ((...args: any[]) => any) | undefined;
1204
+ onUpdatePage?: ((...args: any[]) => any) | undefined;
1205
+ }, {
1206
+ dynamicOptionInfo: import("../../../es/shared/types").AnyObject;
1207
+ fieldTitleList: import("../../../es/shared/types").AnyObject[];
1208
+ optionList: import("../../../es/shared/types").AnyObject[];
1209
+ isMultiple: boolean;
1210
+ curPage: number;
1211
+ isLastPage: boolean;
1212
+ isShowWhole: boolean;
1213
+ }>;
1035
1214
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
1036
1215
  paramCfg: {
1037
1216
  type: ObjectConstructor;
@@ -1137,8 +1316,15 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
1137
1316
  valueFormat: import("vue").ComputedRef<string>;
1138
1317
  dateFormat: import("vue").ComputedRef<string>;
1139
1318
  compType: import("vue").ComputedRef<any>;
1319
+ optionSetting: import("vue").ComputedRef<any>;
1320
+ isPastTime: import("vue").ComputedRef<boolean>;
1321
+ isFutureTime: import("vue").ComputedRef<boolean>;
1140
1322
  startPlaceholder: import("vue").ComputedRef<"初始日期" | "初始时间">;
1141
1323
  endPlaceholder: import("vue").ComputedRef<"截止日期" | "截止时间">;
1324
+ startDefault: import("vue").ComputedRef<string>;
1325
+ endDefault: import("vue").ComputedRef<string>;
1326
+ startDateFormat: import("vue").ComputedRef<string | null>;
1327
+ endDateFormat: import("vue").ComputedRef<string | null>;
1142
1328
  dateType: any;
1143
1329
  widgetOptions: import("vue").ComputedRef<{
1144
1330
  label: string;
@@ -1147,8 +1333,19 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
1147
1333
  presetValCp: import("vue").WritableComputedRef<string>;
1148
1334
  handleChange: (val: any, type: "end" | "start") => void;
1149
1335
  isStartDateDisabled: (ts: number) => boolean;
1336
+ timeStartDisabled: (ts: number) => {
1337
+ isHourDisabled(hour: number): boolean | 0;
1338
+ isMinuteDisabled(minute: number, hour: number | null): boolean | 0;
1339
+ isSecondDisabled(second: number, minute: number | null, hour: number | null): boolean | 0;
1340
+ };
1150
1341
  isEndDateDisabled: (ts: number) => boolean;
1342
+ timeEndDisabled: (ts: number) => {
1343
+ isHourDisabled(hour: number): boolean | 0;
1344
+ isMinuteDisabled(minute: number, hour: number | null): boolean | 0;
1345
+ isSecondDisabled(second: number, minute: number | null, hour: number | null): boolean | 0;
1346
+ };
1151
1347
  NSelect: any;
1348
+ NPopover: any;
1152
1349
  CDatePicker: SFCWithInstall<import("vue").DefineComponent<{
1153
1350
  updateUnchangedValue: {
1154
1351
  type: BooleanConstructor;
@@ -1191,6 +1388,7 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
1191
1388
  WidgetValEnums: {
1192
1389
  CUSTOM: string;
1193
1390
  FIRST_VAL: string;
1391
+ WHOLE: string;
1194
1392
  NOW: string;
1195
1393
  TODAY: string;
1196
1394
  TODAY_START: string;
@@ -1249,7 +1447,8 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
1249
1447
  default: null;
1250
1448
  };
1251
1449
  }, {
1252
- handleGetConfigApi: (params: any, key: string, config: {} | undefined, filterApiConfigVal: any) => Promise<any>;
1450
+ getDynamicLabelData: (params: any, filterApiConfig: any) => Promise<any>;
1451
+ message: import("naive-ui").MessageApi;
1253
1452
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
1254
1453
  paramCfg: {
1255
1454
  type: ObjectConstructor;
@@ -1289,7 +1488,9 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
1289
1488
  INPUT: string;
1290
1489
  SELECT: string;
1291
1490
  DATE: string;
1491
+ DATE_OUT: string;
1292
1492
  DATE_TIME: string;
1493
+ DATETIME_OUT: string;
1293
1494
  CHECKBOX_GROUP: string;
1294
1495
  INPUTNUMBER_RANGE: string;
1295
1496
  DATE_RANGE_OUT: string;