cnhis-design-vue 3.1.43-beta.0 → 3.1.43-beta.10

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 (122) hide show
  1. package/es/components/base-search/index.d.ts +46 -114
  2. package/es/components/base-search/src/index.vue.d.ts +46 -114
  3. package/es/components/base-search/src/index.vue.js +1 -1
  4. package/es/components/base-search/style/index.css +1 -1
  5. package/es/components/big-table/src/hooks/useEdit.d.ts +26 -26
  6. package/es/components/big-table/src/utils.js +1 -1
  7. package/es/components/button-print/src/components/IdentityVerification.vue.d.ts +1 -1
  8. package/es/components/button-print/src/utils/print.d.ts +2 -0
  9. package/es/components/button-print/src/utils/print.js +1 -1
  10. package/es/components/classification/index.d.ts +7 -6
  11. package/es/components/classification/src/components/search-filter/index.vue.d.ts +1 -0
  12. package/es/components/classification/src/components/set-classification/index.vue.d.ts +6 -5
  13. package/es/components/classification/src/components/set-classification/index.vue.js +1 -1
  14. package/es/components/classification/src/components/table-modal/index.vue.d.ts +2 -2
  15. package/es/components/classification/src/index.vue.d.ts +7 -6
  16. package/es/components/date-picker/index.d.ts +27 -2
  17. package/es/components/date-picker/src/DatePicker.vue.d.ts +27 -2
  18. package/es/components/date-picker/src/DatePicker.vue.js +1 -1
  19. package/es/components/fabric-chart/index.d.ts +1 -1
  20. package/es/components/fabric-chart/src/FabricChart.vue.d.ts +2 -2
  21. package/es/components/fabric-chart/src/hooks/useBirthProcess.d.ts +1 -1
  22. package/es/components/fabric-chart/src/hooks/useBirthProcessChart.d.ts +2 -1
  23. package/es/components/fabric-chart/src/hooks/useCenter.d.ts +4 -4
  24. package/es/components/fabric-chart/src/hooks/useCumputedPoint.js +1 -1
  25. package/es/components/fabric-chart/src/hooks/useEvent.d.ts +1 -1
  26. package/es/components/fabric-chart/src/hooks/useEvent.js +1 -1
  27. package/es/components/fabric-chart/src/hooks/useLeft.d.ts +1 -1
  28. package/es/components/fabric-chart/src/hooks/useTemperatureChart.d.ts +3 -2
  29. package/es/components/form-config/index.d.ts +72 -0
  30. package/es/components/form-config/src/FormConfig.vue.d.ts +72 -0
  31. package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +21 -20
  32. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +43 -0
  33. package/es/components/form-config/src/components/renderer/ComplexNode.vue.d.ts +1 -1
  34. package/es/components/form-config/src/components/renderer/DefaultNode.vue.d.ts +1 -1
  35. package/es/components/form-render/index.d.ts +1 -0
  36. package/es/components/form-render/src/FormRender.vue.d.ts +1 -0
  37. package/es/components/form-render/src/FormRender.vue.js +1 -1
  38. package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +1 -0
  39. package/es/components/form-render/src/hooks/useChangeContext.d.ts +1 -1
  40. package/es/components/form-render/src/hooks/useFormRenderOptions.js +1 -1
  41. package/es/components/form-render/src/hooks/useLowCodeEvent.d.ts +6 -0
  42. package/es/components/form-render/src/hooks/useLowCodeEvent.js +1 -0
  43. package/es/components/form-render/src/hooks/useLowCodeReactions.js +1 -1
  44. package/es/components/form-render/src/types/fieldItem.d.ts +2 -127
  45. package/es/components/form-render/src/types/index.d.ts +1 -2
  46. package/es/components/iho-table/index.d.ts +15 -5
  47. package/es/components/iho-table/src/IhoTable.vue.d.ts +15 -5
  48. package/es/components/iho-table/src/IhoTable.vue.js +1 -1
  49. package/es/components/iho-table/src/hooks/tapHooks/useDataHooks.d.ts +2 -2
  50. package/es/components/iho-table/src/hooks/useTableContext.d.ts +1 -1
  51. package/es/components/iho-table/src/plugins/anchorPlugin/tableAnchor.js +1 -1
  52. package/es/components/iho-table/src/plugins/anchorPlugin/useAnchor.d.ts +4 -1
  53. package/es/components/iho-table/src/plugins/anchorPlugin/useAnchor.js +1 -1
  54. package/es/components/iho-table/src/plugins/fieldConnectionPlugin/index.js +1 -1
  55. package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/filter.vue.d.ts +28 -3
  56. package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/index.js +1 -1
  57. package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue.d.ts +3 -11
  58. package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue.js +1 -1
  59. package/es/components/iho-table/src/plugins/filterRenderPlugin/index.js +1 -1
  60. package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index.js +1 -1
  61. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +27 -2
  62. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +1 -1
  63. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.d.ts +1 -0
  64. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.js +1 -1
  65. package/es/components/iho-table/src/plugins/rendererPlugins/widgets/defaultRendererPlugin.js +1 -1
  66. package/es/components/iho-table/src/plugins/varialbleHeightPlugin/index.js +1 -1
  67. package/es/components/iho-table/src/types/index.d.ts +11 -25
  68. package/es/components/iho-table/src/types/pluginType.d.ts +18 -21
  69. package/es/components/iho-table/style/iconfont.ttf +0 -0
  70. package/es/components/iho-table/style/index.css +1 -1
  71. package/es/components/index.css +1 -1
  72. package/es/components/index.d.ts +1 -0
  73. package/es/components/info-header/index.d.ts +2 -0
  74. package/es/components/info-header/src/InfoHeader.vue.d.ts +2 -0
  75. package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +4 -4
  76. package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +1 -0
  77. package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +21 -20
  78. package/es/components/keyboard/src/components/InputNumber.vue.js +1 -1
  79. package/es/components/quick-search/index.d.ts +54 -224
  80. package/es/components/quick-search/src/index.vue.d.ts +54 -224
  81. package/es/components/quick-search/src/index.vue.js +1 -1
  82. package/es/components/quick-search/style/index.css +1 -1
  83. package/es/components/scale-view/src/hooks/use-component.d.ts +1 -1
  84. package/es/components/select-person/index.d.ts +13 -0
  85. package/es/components/select-person/src/SelectPerson.vue.d.ts +13 -0
  86. package/es/components/select-person/src/SelectPerson.vue2.js +1 -1
  87. package/es/components/select-person/src/utils/index.d.ts +1 -1
  88. package/es/components/select-person/src/utils/index.js +1 -1
  89. package/es/components/shortcut-setter/index.d.ts +15 -0
  90. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +15 -0
  91. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +1 -0
  92. package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +1 -0
  93. package/es/components/table-filter/src/components/render-widget/components/Date.vue.d.ts +109 -0
  94. package/es/components/table-filter/src/components/render-widget/components/Date.vue.js +1 -0
  95. package/es/components/table-filter/src/components/render-widget/components/InputNumberGroup.vue.d.ts +67 -0
  96. package/es/components/table-filter/src/components/render-widget/components/InputNumberGroup.vue.js +1 -0
  97. package/es/components/table-filter/src/components/render-widget/components/Select.vue.d.ts +27 -7
  98. package/es/components/table-filter/src/components/render-widget/components/Select.vue.js +1 -1
  99. package/es/components/table-filter/src/components/render-widget/components/index.d.ts +3 -2
  100. package/es/components/table-filter/src/components/render-widget/components/index.js +1 -1
  101. package/es/components/table-filter/src/components/render-widget/index.vue.d.ts +13 -3
  102. package/es/components/table-filter/src/components/render-widget/index.vue.js +1 -1
  103. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +134 -15
  104. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.js +1 -1
  105. package/es/components/table-filter/src/hooks/useAdvanced.d.ts +6 -2
  106. package/es/components/table-filter/src/hooks/useAdvanced.js +1 -1
  107. package/es/components/table-filter/src/hooks/useRenderWidget.js +1 -1
  108. package/es/components/table-filter/src/types/enums.d.ts +1 -0
  109. package/es/components/table-filter/src/types/enums.js +1 -1
  110. package/es/components/table-filter/src/types/index.d.ts +26 -87
  111. package/es/shared/hooks/useDateTime.js +1 -1
  112. package/es/shared/package.json.js +1 -1
  113. package/es/shared/types/business.d.ts +16 -0
  114. package/es/shared/types/business.js +1 -0
  115. package/es/shared/types/index.d.ts +1 -1
  116. package/es/shared/utils/business.d.ts +11 -0
  117. package/es/shared/utils/business.js +1 -0
  118. package/es/shared/utils/index.d.ts +1 -5
  119. package/es/shared/utils/index.js +1 -1
  120. package/package.json +65 -65
  121. package/es/components/iho-table/src/plugins/fieldConnectionPlugin/fieldConnectionUtils.d.ts +0 -11
  122. package/es/components/iho-table/src/plugins/fieldConnectionPlugin/fieldConnectionUtils.js +0 -1
@@ -194,11 +194,11 @@ export declare const comps: {
194
194
  }>;
195
195
  separate: import("vue").DefineComponent<{
196
196
  col: {
197
- type: import("vue").PropType<import("../../../../shared/types").AnyObject>;
197
+ type: import("vue").PropType<import("../../..").AnyObject>;
198
198
  required: true;
199
199
  };
200
200
  row: {
201
- type: import("vue").PropType<import("../../../../shared/types").AnyObject>;
201
+ type: import("vue").PropType<import("../../..").AnyObject>;
202
202
  required: true;
203
203
  };
204
204
  index: {
@@ -208,11 +208,11 @@ export declare const comps: {
208
208
  }, {
209
209
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
210
210
  col: {
211
- type: import("vue").PropType<import("../../../../shared/types").AnyObject>;
211
+ type: import("vue").PropType<import("../../..").AnyObject>;
212
212
  required: true;
213
213
  };
214
214
  row: {
215
- type: import("vue").PropType<import("../../../../shared/types").AnyObject>;
215
+ type: import("vue").PropType<import("../../..").AnyObject>;
216
216
  required: true;
217
217
  };
218
218
  index: {
@@ -227,93 +227,93 @@ export declare const comps: {
227
227
  setShow: (v: boolean) => void;
228
228
  emit: (event: "formChange", ...args: any[]) => void;
229
229
  editContent: import("vue").Ref<any>;
230
- getRowData: (row: import("../../../../shared/types").AnyObject) => {
230
+ getRowData: (row: import("../../..").AnyObject) => {
231
231
  separateData: Record<string, string>;
232
232
  index: number;
233
- rawRow: import("../../../../shared/types").AnyObject;
234
- row: import("../../../../shared/types").AnyObject;
233
+ rawRow: import("../../..").AnyObject;
234
+ row: import("../../..").AnyObject;
235
235
  colspans?: Record<string, number> | undefined;
236
236
  } | undefined;
237
237
  onShow: (target: {
238
238
  separateData: Record<string, string>;
239
239
  index: number;
240
- rawRow: import("../../../../shared/types").AnyObject;
241
- row: import("../../../../shared/types").AnyObject;
240
+ rawRow: import("../../..").AnyObject;
241
+ row: import("../../..").AnyObject;
242
242
  colspans?: Record<string, number> | undefined;
243
243
  } | undefined) => Promise<void>;
244
244
  onClose: (target: {
245
245
  separateData: Record<string, string>;
246
246
  index: number;
247
- rawRow: import("../../../../shared/types").AnyObject;
248
- row: import("../../../../shared/types").AnyObject;
247
+ rawRow: import("../../..").AnyObject;
248
+ row: import("../../..").AnyObject;
249
249
  colspans?: Record<string, number> | undefined;
250
250
  } | undefined) => Promise<void>;
251
251
  updateShow: (show: boolean) => void;
252
252
  style: import("vue").CSSProperties;
253
253
  SlotRender: import("vue").DefineComponent<{
254
254
  renderer: {
255
- type: import("vue").PropType<string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("../../../../shared/types").Func<any[], any>>;
255
+ type: import("vue").PropType<string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("../../..").Func<any[], any>>;
256
256
  required: true;
257
257
  };
258
258
  rootSlots: {
259
- type: import("vue").PropType<Record<string, import("../../../../shared/types").Func<any[], any>>>;
259
+ type: import("vue").PropType<Record<string, import("../../..").Func<any[], any>>>;
260
260
  };
261
261
  }, () => any, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
262
262
  renderer: {
263
- type: import("vue").PropType<string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("../../../../shared/types").Func<any[], any>>;
263
+ type: import("vue").PropType<string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("../../..").Func<any[], any>>;
264
264
  required: true;
265
265
  };
266
266
  rootSlots: {
267
- type: import("vue").PropType<Record<string, import("../../../../shared/types").Func<any[], any>>>;
267
+ type: import("vue").PropType<Record<string, import("../../..").Func<any[], any>>>;
268
268
  };
269
269
  }>>, {}>;
270
270
  NPopover: any;
271
271
  NInput: any;
272
272
  Separate: import("vue").DefineComponent<{
273
273
  col: {
274
- type: import("vue").PropType<import("../../../../shared/types").AnyObject>;
274
+ type: import("vue").PropType<import("../../..").AnyObject>;
275
275
  required: true;
276
276
  };
277
277
  row: {
278
- type: import("vue").PropType<import("../../../../shared/types").AnyObject>;
278
+ type: import("vue").PropType<import("../../..").AnyObject>;
279
279
  required: true;
280
280
  };
281
281
  }, {
282
282
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
283
283
  col: {
284
- type: import("vue").PropType<import("../../../../shared/types").AnyObject>;
284
+ type: import("vue").PropType<import("../../..").AnyObject>;
285
285
  required: true;
286
286
  };
287
287
  row: {
288
- type: import("vue").PropType<import("../../../../shared/types").AnyObject>;
288
+ type: import("vue").PropType<import("../../..").AnyObject>;
289
289
  required: true;
290
290
  };
291
291
  }>> & {}>>;
292
- separateDataMap: import("vue").Ref<WeakMap<import("../../../../shared/types").AnyObject, {
292
+ separateDataMap: import("vue").Ref<WeakMap<import("../../..").AnyObject, {
293
293
  separateData: Record<string, string>;
294
294
  index: number;
295
- rawRow: import("../../../../shared/types").AnyObject;
296
- row: import("../../../../shared/types").AnyObject;
295
+ rawRow: import("../../..").AnyObject;
296
+ row: import("../../..").AnyObject;
297
297
  colspans?: Record<string, number> | undefined;
298
298
  }>>;
299
299
  displayContent: import("vue").ComputedRef<string>;
300
300
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
301
301
  col: {
302
- type: import("vue").PropType<import("../../../../shared/types").AnyObject>;
302
+ type: import("vue").PropType<import("../../..").AnyObject>;
303
303
  required: true;
304
304
  };
305
305
  row: {
306
- type: import("vue").PropType<import("../../../../shared/types").AnyObject>;
306
+ type: import("vue").PropType<import("../../..").AnyObject>;
307
307
  required: true;
308
308
  };
309
309
  }>>, {}>;
310
310
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "formChange"[], "formChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
311
311
  col: {
312
- type: import("vue").PropType<import("../../../../shared/types").AnyObject>;
312
+ type: import("vue").PropType<import("../../..").AnyObject>;
313
313
  required: true;
314
314
  };
315
315
  row: {
316
- type: import("vue").PropType<import("../../../../shared/types").AnyObject>;
316
+ type: import("vue").PropType<import("../../..").AnyObject>;
317
317
  required: true;
318
318
  };
319
319
  index: {
@@ -1 +1 @@
1
- import e from"../../../shared/assets/img/xb_small.png.js";import"xe-utils";import"moment";import t from"../../../shared/utils/vexutilsExpand.js";import{nextTick as i}from"vue";import{groupTraverser as n,createRowGroupList as r}from"../../iho-table/src/plugins/rowGroupSettingPlugin/rowGroupUtils.js";const l=e=>{if("string"==typeof e)try{const t=JSON.parse(e);return!("object"!=typeof t||!t)}catch(e){return!1}return!1},s=(e,t)=>{const i=e[t.columnName];if(l(i)){const e=JSON.parse(i);return e.star?`${e.star}星`:""}return i},o=(e,t)=>{const i=e[t.columnName];if(l(i)){return JSON.parse(i).address||""}return i},a=(e,t)=>{const i=e[t.columnName];if(l(i)){const e=JSON.parse(i),t=e.days||0;if(!(t>0))return"";if(t<91)return`${t} 天`;if(90<t&&t<365)return`${Math.floor(t/30)} 个月`;if(365<t&&t<1095)return`${e.year} 岁 ${e.month} 月`;if(1095<t)return`${e.year}岁`}return i||""},d=()=>{const e=document.querySelectorAll(".big-table-filter-wrap"),t=e[e.length-1].querySelector(".js-checkbox-wrap"),n=t.scrollTop;i((()=>{t.scrollTop=n}))},c=(e,t,i,n,r)=>{var l,s,o,a,d,c;if(n.isInlineOperating)return!1;const u=i.target,h=document.body,{left:f,right:g,top:p,width:m}=u.getBoundingClientRect();e.left="initial",e.right="initial",e.top="initial";if(f+400>h.clientWidth){const t=(null==h?void 0:h.getBoundingClientRect().right)||0;e.right=t-g-m/2+"px"}else e.left=f+"px";e.top=p+20+(n.filterTopOffset||0)+"px",e.visible=!e.visible;const v=null==(l=r.filterFields[t])?void 0:l.CONVERT.length;e.checkAll=v===(null==(o=null==(s=r.filterFields[t])?void 0:s.filterItems)?void 0:o.length),e.indeterminate=!!v&&v!==((null==(d=null==(a=e.setting)?void 0:a.showSetting)?void 0:d.length)||(null==(c=e.options)?void 0:c.length)),e.searchFilterText=""},u=(e,t)=>{const{rowGroupSetting:i}=t;return n(r(i,e,(e=>e.columnName||e.type)),((t,i)=>i?{field:t,title:t,align:"center"}:function(e,t){return t.find((t=>(t.columnName||t.type)===e))}(t,e)))},h=e=>{var t;return 1!=(e.notParticipatingSearch||"")&&["search","select","radio","checkbox"].includes(e.formType)&&(null==(t=e.options)?void 0:t.length)},f=(e,i)=>{Array.isArray(e)&&e.forEach((e=>{var n;if(i)e.CONVERT=[];else{if(e.setting){if(e.setting="string"==typeof e.setting?JSON.parse(e.setting):e.setting,!t.isEmpty(e.setting.wordbook))return e.con="QUOTE",e.dataSource=[],void(e.QUOTE=[]);if(e.setting.showSetting&&e.setting.showSetting.length>0)return e.con="CONVERT",e.setting.showSetting.forEach((e=>{e.label=e.change_text,e.value=JSON.stringify(e.filter)})),void(e.CONVERT=[])}(null==(n=e.fieldType)?void 0:n.includes("DATE"))?e.settingObj&&"BIRTHDAY"==e.settingObj.attr?(e.con="BIRTHDAY",e.showDate=!1,e.marginx="ml"):(e.con="DATE",e.showDate=!1,e.marginx="ml",e.DATE={con:null,start_val:null,end_val:null}):"TEXT"==e.fieldType?(e.con="CL",e.CL=""):("NUMBER"==e.fieldType||"JSONB"==e.fieldType)&&(e.con="EQ",e.EQ=""),"LABEL"===e.setting.attr&&(e.con="EQ",e.LABELAttr=!0,e.labelSelectList=[]),"EVALUATE"===e.setting.attr&&(e.con="CL",e.selecteds=[],e.EVALUATEAttr=!0)}}))},g=e=>{if("operatorColumn"!==e.columnName)return{name:"EditInput",enabled:1==e.isEdit}},p=(e,i,n)=>{const{groupCountMap:r}=n,l=[];return n.groupCountFields.forEach((e=>{const s=e.tips,o=e.color||"#000",a=e.unit||"";let d=e.defaultValue||0;if("all"==e.range)d=r[e.key];else if("page"==e.range){const{sum:r=0,count:l=0}=((e,i,n=[],r)=>{let l=0,s=0;const{fieldList:o=[]}=r.columnConfig;return e.forEach((e=>{m(e,(e=>{var a,d;if(!e.childrenList||!e.childrenList.length){let c=!0;if(n.length){const i={table:e,form:{},sys:(null==(d=null==(a=null==r?void 0:r.userInfo)?void 0:a.map)?void 0:d.sysParams)||{}};c=t.parseCondition(n,i,o)}if(c){const t=e[i]||0;l+=Number(t),++s}}}))})),{sum:l,count:s}})(i,e.field,e.conObj,n);d=l,"avg"==e.method?d=r/l||0:"sum"==e.method&&(d=r)}d=t.round(d,4),l.push(`<span style="color: ${o}">${s}:${d}${a}</span>`)})),l.join("、")},m=(e,t)=>{if(!e)return;const i=[e];for(;i.length>0;){const e=i.shift();e&&t(e),e.childrenList&&e.childrenList.reverse().forEach((e=>{i.unshift(e)}))}},v=({row:e})=>!e.forbiddenBatchSelect,y=({row:e})=>!e.$__SEPARATE,T=e=>{const t=[],i=(e,n)=>{e.length>0&&e.forEach((e=>{e.qianduan_id||(e.qianduan_id=e.theUniqueKey||window.crypto.getRandomValues(new Uint32Array(1))[0]),e.qianduan_parent_id=n||null,e.childrenList&&i(e.childrenList,e.qianduan_id),t.push(e)}))};return i(e),t},E=(e,t,i,n)=>{t.push(e),i.push(e[n]),e.childrenList&&e.childrenList.length&&e.childrenList.forEach((e=>{e.childrenList&&e.childrenList.length?E(e,t,i,n):(i.push(e[n]),t.push(e))}))},A=(e,t,i)=>{const n=[];if(!e.length)return 1;if(e.forEach((e=>n.push(e[i]))),!n.length)return 1;if(n.length!==t.length)return 1;return n.filter((e=>{t.includes(e)})).length},b=e=>{1!=e.checkedRows.length||v({row:e.checkedRows[0]})||e.checkedRows.pop()},_=(e,t)=>{if(!e.filterFields||!Object.keys(e.filterFields).length)return;const i=t.quickSearchConfig;if(!i||!i.length){return Object.keys(e.filterFields).forEach((t=>{e.filterFields[t].CONVERT=[]})),!1}for(const t in e.filterFields){const i=e.filterFields[t];i&&(i.CONVERT=[])}i.forEach((t=>{if(t.field_key in e.filterFields){if(!e.filterFields[t.field_key])return e.filterFields[t.field_key].CONVERT=[],!1;const i=t.value;e.filterFields[t.field_key].CONVERT=i}}))},O=({row:e})=>{if(e.rowColor){const i=t.hexToRGBA(e.rowColor,.2);return`background-color:${`rgba(${i.r}, ${i.g}, ${i.b}, ${i.a})`}`}return null},R=(e,t)=>{var i,n;if(!t.isNestTable)return t.height;const r=(null==(i=t.styleSetting)?void 0:i.tableHeight)||"table-simple",l=(null==(n=t.data)?void 0:n.length)||1;return`${e.checkWidth[r]*l+90}px`},N=(e,t="name")=>e.alias||e[t],D=(t,i,n)=>("HEADPORTRAIT"===i&&(t||(t=e)),n(t)),w=(e,t,i)=>{if(!t||!t.length)return e;const n=t.find((e=>e.type===i));if(!n)return e;if(n.suffix)return e+n.suffix;let r=n.h;const l=n.w;"adaptive"===n.h&&"adaptive"!=n.w&&(r=n.w),"adaptive"===n.w&&"adaptive"!=n.h&&(r=n.h);return e+`_${r}x${l}`},L=(e,i,n)=>{if(!e||!e.length)return{display:"inline-block",maxWidth:"100%",maxheight:n};const r=e.find((e=>e.type===i));if(!r)return{display:"inline-block",height:n};return t.handleImageSize(r,n)},C=(e,i)=>{var n;const r=e[i.columnName];if(t.isJSON(r)){const e=r.includes("user_name"),t=JSON.parse(r);if(Array.isArray(t)){const i=t.length;if(i>1)return`已选${i}人`;if(1===i)return e&&(null==(n=t[0])?void 0:n.user_name)||`已选${i}人`}}},B=(e,t)=>{var i,n;const{settingObj:r={},fieldSetting:l={}}=t,{mergedFeildExpression:s}=l;let o=e[t.field];if(s){const t=/#{(.+?)\}/g;o=s.replace(t,((t,i)=>e[i]||""))}const a={content:o};return{btnName:null==(i=null==r?void 0:r.qrCode)?void 0:i.name,trigger_id:null==(n=null==r?void 0:r.qrCode)?void 0:n.id,params:a}},S=(e,t)=>{var i;return(null==(i=e[t])?void 0:i.length)?e[t].filter((e=>"EDIT_ROW"===e.settingObj[0].trigger_type)):[]},k=(e,t)=>t[e.columnName]&&e.fieldSetting&&1==e.fieldSetting.fontContentCopy,I=(e,t,i)=>{if(!e||0===e.length)return document.body.style.setProperty("--table-image-height",i),void document.body.style.setProperty("--table-image-width","auto");const n=e.find((e=>e.type===t));if(!n)return document.body.style.setProperty("--table-image-height",i),void document.body.style.setProperty("--table-image-width","auto");let r=i,l="auto";n.h&&(r="adaptive"===n.h?"auto":n.h+"px"),n.w&&(l="adaptive"===n.w?"auto":n.w+"px"),document.body.style.setProperty("--table-image-height",r),document.body.style.setProperty("--table-image-width",l)},Y=(e,t,i={})=>{const n=i[e];return{[t.name]:(r=n,r&&"string"==typeof r&&r.startsWith("###")&&(r=r.slice(3),r=(r=JSON.parse(r)).tooltip||r.value),r)};var r},H=(e,t)=>{Object.values(e.filterFields).forEach((e=>{e.visible=!1})),_(e,t)},j=(e,i)=>{const n=Object.values(e.filterFields),r=Object.keys(e.filterFields),l=((e,i)=>{var n;if(!Array.isArray(e))return[];const r=[];for(let l=0;l<e.length;l++){const s=e[l];let o=0,a="";if(s.EQ||s.CL)o=s.EQ||s.CL,"PERCENTAGE"===(null==(n=s.settingObj)?void 0:n.attr)&&(o=Number(o)/100),s.EVALUATEAttr&&(o=s.selecteds.join("|#|"));else if(t.isEmpty(s.QUOTE))if(t.isEmpty(s.CONVERT))if(s.DATE)(s.DATE.start_val||s.DATE.end_val)&&(s.DATE.con="IN"),s.tempCon=s.DATE.con,s.start_val=s.DATE.start_val?s.DATE.start_val.format("YYYY-MM-DD HH:mm:ss"):"",s.end_val=s.DATE.end_val?s.DATE.end_val.format("YYYY-MM-DD HH:mm:ss"):"";else if(s.BIRTHDAY){let e=!1;if((s.BIRTHDAY.limit_date.length>0||s.BIRTHDAY.start_val||s.BIRTHDAY.end_val)&&(s.BIRTHDAY.con="IN"),s.tempCon=s.BIRTHDAY.con,e=!(!s.BIRTHDAY.start_val&&!s.BIRTHDAY.end_val),s.BIRTHDAY.start_val&&!t.validateBirthday(s.BIRTHDAY.start_val,s.title,s.BIRTHDAY.unit))return;if(s.BIRTHDAY.end_val&&!t.validateBirthday(s.BIRTHDAY.end_val,s.title,s.BIRTHDAY.unit))return;if(+s.BIRTHDAY.start_val>+s.BIRTHDAY.end_val)return void window.$message.warning(`${s.title}请输入有效范围`,2);a=i.limit_date||"",s.unit=e&&s.BIRTHDAY.unit||"",s.start_val=s.BIRTHDAY.start_val||"",s.end_val=s.BIRTHDAY.end_val||""}else if(s.LABELAttr){const e=[];s.labelSelectList.forEach((t=>{e.push(t.labelName)})),o=e.join("|#|")}else s.EVALUATEAttr&&(o=s.selecteds.join("|#|"));else o=s.CONVERT.map((e=>["string","number"].includes(typeof e)?e:JSON.parse(e)));else o=s.QUOTE.join("|#|");const d={field_key:s.columnName,con:s.DATE||s.BIRTHDAY?s.tempCon:s.con,value:o,limit_date:a||"",start_val:s.start_val||"",end_val:s.end_val||"",unit:s.unit||""};r.push(d)}return r.filter((e=>e.value||e.limit_date||e.start_val||e.end_val))})(n,e),s=[...l];return(i.tableParams.qqConObj?JSON.parse(i.tableParams.qqConObj):[]).forEach((e=>{r.includes(e.field_key)||s.push(e)})),s},x=(e,t,i)=>{var n;return t.clickFieldKey==t.columnName||"field"==e.relatedItems.triggerMethodPc&&t.columnName==e.relatedItems.triggerMethodField||t.isbtnLink&&i.btnLinks&&(null==(n=i.btnLinks)?void 0:n.includes(t.columnName))},$=(e,t)=>{t.showButtonTop=e.showButtonTop,t.isTree=e.isTree,t.openOnly=e.openOnly,t.isExpand=e.spreadAllBtn,t.levelLazyLoadSetting=Object.assign({},e.levelLazyLoadSetting),t.checkWidth=Object.assign({},t.checkWidth,e.checkWidth)},F=(e,i,n)=>{e.forEach((e=>{t.has(e,"childrenList")&&F(e.childrenList,i,n),t.has(e,n)&&(e[i]=e[n])}))},V=(e,t,i)=>{if(t.isNestTable)return;if(1==e.isTree)return e.visibleCheckAllWrap=!1,!1;e.visibleCheckAllWrap=i.length>1;const n=i.length>=e.curAbleCheckedLen,r=t.pageVO.pageSize===t.pageVO.total,l=i.length>e.currentPageSelectedLength;e.visibleCheckAllWrapMore=l||n&&!r};export{v as checkMethod,E as flattenRow,g as generateEditRender,C as getCandidateComponents,s as getEvaluate,p as getFooterGroup,S as getInlineEditBtn,o as getMapVal,O as getRowStyle,a as getageShowType,u as handleGroupColums,D as handleImgArr,w as handleImgSrc,N as handleName,B as handleQrCodeContent,R as handleTableHeight,I as handleTableImageSize,f as handlerInitSearchItem,H as hideFilterWrap,A as intersectRow,k as isCopy,h as isFilterItem,x as isLink,j as mergeConObjFn,L as modalDetailImage,d as reScrollFilterWrap,b as removeCheckedDisabledRows,Y as setDefaultFormData,_ as setFilterStatus,$ as setTableConfig,F as setTreeGroupTitle,V as setVisibleCheckAllWrap,c as showFilter,T as treeToList,y as visibleMethod};
1
+ import e from"../../../shared/assets/img/xb_small.png.js";import"xe-utils";import"moment";import t from"../../../shared/utils/vexutilsExpand.js";import{nextTick as i}from"vue";import{groupTraverser as n,createRowGroupList as r}from"../../iho-table/src/plugins/rowGroupSettingPlugin/rowGroupUtils.js";const l=e=>{if("string"==typeof e)try{const t=JSON.parse(e);return!("object"!=typeof t||!t)}catch(e){return!1}return!1},s=(e,t)=>{const i=e[t.columnName];if(l(i)){const e=JSON.parse(i);return e.star?`${e.star}星`:""}return i},o=(e,t)=>{const i=e[t.columnName];if(l(i)){return JSON.parse(i).address||""}return i},a=(e,t)=>{const i=e[t.columnName];if(l(i)){const e=JSON.parse(i),t=e.days||0;if(!(t>0))return"";if(t<91)return`${t} 天`;if(90<t&&t<365)return`${Math.floor(t/30)} 个月`;if(365<t&&t<1095)return`${e.year} 岁 ${e.month} 月`;if(1095<t)return`${e.year}岁`}return i||""},d=()=>{const e=document.querySelectorAll(".big-table-filter-wrap"),t=e[e.length-1].querySelector(".js-checkbox-wrap"),n=t.scrollTop;i((()=>{t.scrollTop=n}))},c=(e,t,i,n,r)=>{var l,s,o,a,d,c;if(n.isInlineOperating)return!1;const u=i.target,h=document.body,{left:f,right:g,top:p,width:m}=u.getBoundingClientRect();e.left="initial",e.right="initial",e.top="initial";if(f+400>h.clientWidth){const t=(null==h?void 0:h.getBoundingClientRect().right)||0;e.right=t-g-m/2+"px"}else e.left=f+"px";e.top=p+20+(n.filterTopOffset||0)+"px",e.visible=!e.visible;const v=null==(l=r.filterFields[t])?void 0:l.CONVERT.length;e.checkAll=v===(null==(o=null==(s=r.filterFields[t])?void 0:s.filterItems)?void 0:o.length),e.indeterminate=!!v&&v!==((null==(d=null==(a=e.setting)?void 0:a.showSetting)?void 0:d.length)||(null==(c=e.options)?void 0:c.length)),e.searchFilterText=""},u=(e,t)=>{const{rowGroupSetting:i}=t;return n(r(i,e,(e=>e.columnName||e.type)),((t,i)=>i?{field:t,title:t,align:"center"}:function(e,t){return t.find((t=>(t.columnName||t.type)===e))}(t,e)))},h=e=>{var t;return 1!=(e.notParticipatingSearch||"")&&["search","select","radio","checkbox"].includes(e.formType)&&(null==(t=e.options)?void 0:t.length)},f=(e,i)=>{Array.isArray(e)&&e.forEach((e=>{var n;if(i)e.CONVERT=[];else{if(e.setting){if(e.setting="string"==typeof e.setting?JSON.parse(e.setting):e.setting,!t.isEmpty(e.setting.wordbook))return e.con="QUOTE",e.dataSource=[],void(e.QUOTE=[]);if(e.setting.showSetting&&e.setting.showSetting.length>0)return e.con="CONVERT",e.setting.showSetting.forEach((e=>{e.label=e.change_text,e.value=JSON.stringify(e.filter)})),void(e.CONVERT=[])}(null==(n=e.fieldType)?void 0:n.includes("DATE"))?e.settingObj&&"BIRTHDAY"==e.settingObj.attr?(e.con="BIRTHDAY",e.showDate=!1,e.marginx="ml"):(e.con="DATE",e.showDate=!1,e.marginx="ml",e.DATE={con:null,start_val:null,end_val:null}):"TEXT"==e.fieldType?(e.con="CL",e.CL=""):("NUMBER"==e.fieldType||"JSONB"==e.fieldType)&&(e.con="EQ",e.EQ=""),"LABEL"===e.setting.attr&&(e.con="EQ",e.LABELAttr=!0,e.labelSelectList=[]),"EVALUATE"===e.setting.attr&&(e.con="CL",e.selecteds=[],e.EVALUATEAttr=!0)}}))},g=e=>{if("operatorColumn"!==e.columnName)return{name:"EditInput",enabled:1==e.isEdit}},p=(e,i,n)=>{const{groupCountMap:r}=n,l=[];return n.groupCountFields.forEach((e=>{const s=e.tips,o=e.color||"#000",a=e.unit||"";let d=e.defaultValue||0;if("all"==e.range)d=r[e.key];else if("page"==e.range){const{sum:r=0,count:l=0}=((e,i,n=[],r)=>{let l=0,s=0;const{fieldList:o=[]}=r.columnConfig;return e.forEach((e=>{m(e,(e=>{var a,d;if(!e.childrenList||!e.childrenList.length){let c=!0;if(n.length){const i={table:e,form:{},sys:(null==(d=null==(a=null==r?void 0:r.userInfo)?void 0:a.map)?void 0:d.sysParams)||{}};c=t.parseCondition(n,i,o)}if(c){const t=e[i]||0;l+=Number(t),++s}}}))})),{sum:l,count:s}})(i,e.field,e.conObj,n);d=l,"avg"==e.method?d=r/l||0:"sum"==e.method&&(d=r)}d=t.round(d,4),l.push(`<span style="color: ${o}">${s}:${d}${a}</span>`)})),l.join("、")},m=(e,t)=>{if(!e)return;const i=[e];for(;i.length>0;){const e=i.shift();e&&t(e),e.childrenList&&e.childrenList.reverse().forEach((e=>{i.unshift(e)}))}},v=({row:e})=>!e.forbiddenBatchSelect,y=({row:e})=>!e.$__SEPARATE,T=e=>{const t=[],i=(e,n)=>{e.length>0&&e.forEach((e=>{e.qianduan_id||(e.qianduan_id=e.theUniqueKey||window.crypto.getRandomValues(new Uint32Array(1))[0]),e.qianduan_parent_id=n||null,e.childrenList&&i(e.childrenList,e.qianduan_id),t.push(e)}))};return i(e),t},E=(e,t,i,n)=>{t.push(e),i.push(e[n]),e.childrenList&&e.childrenList.length&&e.childrenList.forEach((e=>{e.childrenList&&e.childrenList.length?E(e,t,i,n):(i.push(e[n]),t.push(e))}))},A=(e,t,i)=>{const n=[];if(!e.length)return 1;if(e.forEach((e=>n.push(e[i]))),!n.length)return 1;if(n.length!==t.length)return 1;return n.filter((e=>{t.includes(e)})).length},b=e=>{1!=e.checkedRows.length||v({row:e.checkedRows[0]})||e.checkedRows.pop()},_=(e,t)=>{if(!e.filterFields||!Object.keys(e.filterFields).length)return;const i=t.quickSearchConfig;if(!i||!i.length){return Object.keys(e.filterFields).forEach((t=>{e.filterFields[t].CONVERT=[]})),!1}for(const t in e.filterFields){const i=e.filterFields[t];i&&(i.CONVERT=[])}i.forEach((t=>{if(t.field_key in e.filterFields){if(!e.filterFields[t.field_key])return e.filterFields[t.field_key].CONVERT=[],!1;const i=t.value;e.filterFields[t.field_key].CONVERT=i}}))},O=({row:e})=>{if(e.rowColor){const i=t.hexToRGBA(e.rowColor,.2)||{};return`background-color:${`rgba(${i.r}, ${i.g}, ${i.b}, ${i.a})`}`}return null},R=(e,t)=>{var i,n;if(!t.isNestTable)return t.height;const r=(null==(i=t.styleSetting)?void 0:i.tableHeight)||"table-simple",l=(null==(n=t.data)?void 0:n.length)||1;return`${e.checkWidth[r]*l+90}px`},N=(e,t="name")=>e.alias||e[t],D=(t,i,n)=>("HEADPORTRAIT"===i&&(t||(t=e)),n(t)),w=(e,t,i)=>{if(!t||!t.length)return e;const n=t.find((e=>e.type===i));if(!n)return e;if(n.suffix)return e+n.suffix;let r=n.h;const l=n.w;"adaptive"===n.h&&"adaptive"!=n.w&&(r=n.w),"adaptive"===n.w&&"adaptive"!=n.h&&(r=n.h);return e+`_${r}x${l}`},L=(e,i,n)=>{if(!e||!e.length)return{display:"inline-block",maxWidth:"100%",maxheight:n};const r=e.find((e=>e.type===i));if(!r)return{display:"inline-block",height:n};return t.handleImageSize(r,n)},C=(e,i)=>{var n;const r=e[i.columnName];if(t.isJSON(r)){const e=r.includes("user_name"),t=JSON.parse(r);if(Array.isArray(t)){const i=t.length;if(i>1)return`已选${i}人`;if(1===i)return e&&(null==(n=t[0])?void 0:n.user_name)||`已选${i}人`}}},B=(e,t)=>{var i,n;const{settingObj:r={},fieldSetting:l={}}=t,{mergedFeildExpression:s}=l;let o=e[t.field];if(s){const t=/#{(.+?)\}/g;o=s.replace(t,((t,i)=>e[i]||""))}const a={content:o};return{btnName:null==(i=null==r?void 0:r.qrCode)?void 0:i.name,trigger_id:null==(n=null==r?void 0:r.qrCode)?void 0:n.id,params:a}},S=(e,t)=>{var i;return(null==(i=e[t])?void 0:i.length)?e[t].filter((e=>"EDIT_ROW"===e.settingObj[0].trigger_type)):[]},k=(e,t)=>t[e.columnName]&&e.fieldSetting&&1==e.fieldSetting.fontContentCopy,I=(e,t,i)=>{if(!e||0===e.length)return document.body.style.setProperty("--table-image-height",i),void document.body.style.setProperty("--table-image-width","auto");const n=e.find((e=>e.type===t));if(!n)return document.body.style.setProperty("--table-image-height",i),void document.body.style.setProperty("--table-image-width","auto");let r=i,l="auto";n.h&&(r="adaptive"===n.h?"auto":n.h+"px"),n.w&&(l="adaptive"===n.w?"auto":n.w+"px"),document.body.style.setProperty("--table-image-height",r),document.body.style.setProperty("--table-image-width",l)},Y=(e,t,i={})=>{const n=i[e];return{[t.name]:(r=n,r&&"string"==typeof r&&r.startsWith("###")&&(r=r.slice(3),r=(r=JSON.parse(r)).tooltip||r.value),r)};var r},H=(e,t)=>{Object.values(e.filterFields).forEach((e=>{e.visible=!1})),_(e,t)},j=(e,i)=>{const n=Object.values(e.filterFields),r=Object.keys(e.filterFields),l=((e,i)=>{var n;if(!Array.isArray(e))return[];const r=[];for(let l=0;l<e.length;l++){const s=e[l];let o=0,a="";if(s.EQ||s.CL)o=s.EQ||s.CL,"PERCENTAGE"===(null==(n=s.settingObj)?void 0:n.attr)&&(o=Number(o)/100),s.EVALUATEAttr&&(o=s.selecteds.join("|#|"));else if(t.isEmpty(s.QUOTE))if(t.isEmpty(s.CONVERT))if(s.DATE)(s.DATE.start_val||s.DATE.end_val)&&(s.DATE.con="IN"),s.tempCon=s.DATE.con,s.start_val=s.DATE.start_val?s.DATE.start_val.format("YYYY-MM-DD HH:mm:ss"):"",s.end_val=s.DATE.end_val?s.DATE.end_val.format("YYYY-MM-DD HH:mm:ss"):"";else if(s.BIRTHDAY){let e=!1;if((s.BIRTHDAY.limit_date.length>0||s.BIRTHDAY.start_val||s.BIRTHDAY.end_val)&&(s.BIRTHDAY.con="IN"),s.tempCon=s.BIRTHDAY.con,e=!(!s.BIRTHDAY.start_val&&!s.BIRTHDAY.end_val),s.BIRTHDAY.start_val&&!t.validateBirthday(s.BIRTHDAY.start_val,s.title,s.BIRTHDAY.unit))return;if(s.BIRTHDAY.end_val&&!t.validateBirthday(s.BIRTHDAY.end_val,s.title,s.BIRTHDAY.unit))return;if(+s.BIRTHDAY.start_val>+s.BIRTHDAY.end_val)return void window.$message.warning(`${s.title}请输入有效范围`,2);a=i.limit_date||"",s.unit=e&&s.BIRTHDAY.unit||"",s.start_val=s.BIRTHDAY.start_val||"",s.end_val=s.BIRTHDAY.end_val||""}else if(s.LABELAttr){const e=[];s.labelSelectList.forEach((t=>{e.push(t.labelName)})),o=e.join("|#|")}else s.EVALUATEAttr&&(o=s.selecteds.join("|#|"));else o=s.CONVERT.map((e=>["string","number"].includes(typeof e)?e:JSON.parse(e)));else o=s.QUOTE.join("|#|");const d={field_key:s.columnName,con:s.DATE||s.BIRTHDAY?s.tempCon:s.con,value:o,limit_date:a||"",start_val:s.start_val||"",end_val:s.end_val||"",unit:s.unit||""};r.push(d)}return r.filter((e=>e.value||e.limit_date||e.start_val||e.end_val))})(n,e),s=[...l];return(i.tableParams.qqConObj?JSON.parse(i.tableParams.qqConObj):[]).forEach((e=>{r.includes(e.field_key)||s.push(e)})),s},x=(e,t,i)=>{var n;return t.clickFieldKey==t.columnName||"field"==e.relatedItems.triggerMethodPc&&t.columnName==e.relatedItems.triggerMethodField||t.isbtnLink&&i.btnLinks&&(null==(n=i.btnLinks)?void 0:n.includes(t.columnName))},$=(e,t)=>{t.showButtonTop=e.showButtonTop,t.isTree=e.isTree,t.openOnly=e.openOnly,t.isExpand=e.spreadAllBtn,t.levelLazyLoadSetting=Object.assign({},e.levelLazyLoadSetting),t.checkWidth=Object.assign({},t.checkWidth,e.checkWidth)},F=(e,i,n)=>{e.forEach((e=>{t.has(e,"childrenList")&&F(e.childrenList,i,n),t.has(e,n)&&(e[i]=e[n])}))},V=(e,t,i)=>{if(t.isNestTable)return;if(1==e.isTree)return e.visibleCheckAllWrap=!1,!1;e.visibleCheckAllWrap=i.length>1;const n=i.length>=e.curAbleCheckedLen,r=t.pageVO.pageSize===t.pageVO.total,l=i.length>e.currentPageSelectedLength;e.visibleCheckAllWrapMore=l||n&&!r};export{v as checkMethod,E as flattenRow,g as generateEditRender,C as getCandidateComponents,s as getEvaluate,p as getFooterGroup,S as getInlineEditBtn,o as getMapVal,O as getRowStyle,a as getageShowType,u as handleGroupColums,D as handleImgArr,w as handleImgSrc,N as handleName,B as handleQrCodeContent,R as handleTableHeight,I as handleTableImageSize,f as handlerInitSearchItem,H as hideFilterWrap,A as intersectRow,k as isCopy,h as isFilterItem,x as isLink,j as mergeConObjFn,L as modalDetailImage,d as reScrollFilterWrap,b as removeCheckedDisabledRows,Y as setDefaultFormData,_ as setFilterStatus,$ as setTableConfig,F as setTreeGroupTitle,V as setVisibleCheckAllWrap,c as showFilter,T as treeToList,y as visibleMethod};
@@ -419,7 +419,7 @@ declare const _default: import("vue").DefineComponent<{
419
419
  file: import("naive-ui").UploadFileInfo;
420
420
  fileList: import("naive-ui").UploadFileInfo[];
421
421
  }) => Promise<unknown>;
422
- submit: (datas: import("../../../../shared/types").AnyObject) => Promise<unknown>;
422
+ submit: (datas: import("../../..").AnyObject) => Promise<unknown>;
423
423
  validateFormat: () => boolean;
424
424
  NForm: any;
425
425
  NFormItem: import("vue").DefineComponent<{
@@ -9,6 +9,7 @@ export declare class Print {
9
9
  private downloadPath;
10
10
  private printOrigin;
11
11
  private isRemote;
12
+ private CMonitor;
12
13
  constructor();
13
14
  private readonly messageHandlerQueue;
14
15
  private messageHandler;
@@ -22,6 +23,7 @@ export declare class Print {
22
23
  _testConnection(): Promise<unknown>;
23
24
  _queryServicesPrint(params: AnyObject): Promise<any>;
24
25
  _callPrintWithFile(queryParams: AnyObject): Promise<any>;
26
+ _handleMonitorNotify(message: string): void;
25
27
  _handleResult(data: AnyObject, errorCallbackFn?: Func): false | AnyObject;
26
28
  _handleResultTest(result: unknown, errorCallbackFn?: Func): boolean;
27
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.messageHandlerQueue=[],m)return m;m=this;const e=window;if(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){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}}_handleResult(t,e){if(!t)return null==e||e({type:"printError",message:"打印命令未返回信息",result:!1,errinfo:"打印命令未返回信息"}),!1;if("success"!==t.result){const i={type:"printError",message:t.message||t.Message,result:t.result,errinfo:t.errinfo};return null==e||e(i),!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.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};
@@ -270,12 +270,12 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
270
270
  oneSave: (value: any) => Promise<void>;
271
271
  oneCancel: () => void;
272
272
  hanleAdd: () => void;
273
- edit: (item: import("..").IClassifyListType, name: string) => void;
274
- copy: (item: import("..").IClassifyListType, name: string) => void;
273
+ edit: (item: import("..").IClassifyListType) => void;
274
+ copy: (item: import("..").IClassifyListType) => void;
275
275
  saveAdd: (params: any) => Promise<void>;
276
276
  cancelSaveAdd: () => void;
277
277
  changeData: (data: any, checkedItemVal: any) => void;
278
- delItem: (checkedItemVal: any, name: string) => Promise<void>;
278
+ delItem: (checkedItemVal: any) => Promise<void>;
279
279
  setOneVisible: (flag: boolean) => void;
280
280
  resetPopconfirm: () => Promise<void>;
281
281
  oneVisible: import("vue").ComputedRef<boolean>;
@@ -380,8 +380,8 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
380
380
  resetChangeWindow: () => void;
381
381
  dragEnd: () => void;
382
382
  clickli: (item: import("..").IClassifyListType) => void;
383
- clickChecked: (item: import("..").IClassifyListType, name: string) => void;
384
- changeSwitch: (item: import("..").IClassifyListType, name: string) => void;
383
+ clickChecked: (item: import("..").IClassifyListType) => void;
384
+ changeSwitch: (item: import("..").IClassifyListType) => void;
385
385
  changecommonSwitch: (item: import("..").IClassifyListType) => void;
386
386
  formatParams: (type: string) => {
387
387
  id: string;
@@ -766,6 +766,7 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
766
766
  DATE: string;
767
767
  DATE_TIME: string;
768
768
  CHECKBOX_GROUP: string;
769
+ INPUTNUMBER_GROUP: string;
769
770
  };
770
771
  WidgetValEnums: {
771
772
  CUSTOM: string;
@@ -982,8 +983,8 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
982
983
  onGetQuickSearchListObj?: ((...args: any[]) => any) | undefined;
983
984
  }, {
984
985
  searchFieldList: any[];
985
- tableId: string;
986
986
  filterApiConfig: Record<string, any>;
987
+ tableId: string;
987
988
  conditionMap: import("..").IConditionMapType;
988
989
  conditionSid: string[];
989
990
  curClassificationIndex: number;
@@ -236,6 +236,7 @@ declare const _default: import("vue").DefineComponent<{
236
236
  DATE: string;
237
237
  DATE_TIME: string;
238
238
  CHECKBOX_GROUP: string;
239
+ INPUTNUMBER_GROUP: string;
239
240
  };
240
241
  WidgetValEnums: {
241
242
  CUSTOM: string;
@@ -57,12 +57,12 @@ declare const _default: import("vue").DefineComponent<{
57
57
  oneSave: (value: any) => Promise<void>;
58
58
  oneCancel: () => void;
59
59
  hanleAdd: () => void;
60
- edit: (item: IClassifyListType, name: string) => void;
61
- copy: (item: IClassifyListType, name: string) => void;
60
+ edit: (item: IClassifyListType) => void;
61
+ copy: (item: IClassifyListType) => void;
62
62
  saveAdd: (params: any) => Promise<void>;
63
63
  cancelSaveAdd: () => void;
64
64
  changeData: (data: any, checkedItemVal: any) => void;
65
- delItem: (checkedItemVal: any, name: string) => Promise<void>;
65
+ delItem: (checkedItemVal: any) => Promise<void>;
66
66
  setOneVisible: (flag: boolean) => void;
67
67
  resetPopconfirm: () => Promise<void>;
68
68
  oneVisible: import("vue").ComputedRef<boolean>;
@@ -167,8 +167,8 @@ declare const _default: import("vue").DefineComponent<{
167
167
  resetChangeWindow: () => void;
168
168
  dragEnd: () => void;
169
169
  clickli: (item: IClassifyListType) => void;
170
- clickChecked: (item: IClassifyListType, name: string) => void;
171
- changeSwitch: (item: IClassifyListType, name: string) => void;
170
+ clickChecked: (item: IClassifyListType) => void;
171
+ changeSwitch: (item: IClassifyListType) => void;
172
172
  changecommonSwitch: (item: IClassifyListType) => void;
173
173
  formatParams: (type: string) => {
174
174
  id: string;
@@ -553,6 +553,7 @@ declare const _default: import("vue").DefineComponent<{
553
553
  DATE: string;
554
554
  DATE_TIME: string;
555
555
  CHECKBOX_GROUP: string;
556
+ INPUTNUMBER_GROUP: string;
556
557
  };
557
558
  WidgetValEnums: {
558
559
  CUSTOM: string;
@@ -1 +1 @@
1
- import{defineComponent as e,ref as i,useAttrs as t,computed as n,watch as a,openBlock as o,createElementBlock as l,createVNode as s,mergeProps as r,unref as c,withCtx as d,createTextVNode as f}from"vue";import{useMessage as u,NButton as p}from"naive-ui";import v from"../table-modal/index.vue.js";import g from"../search-filter/index.vue.js";import C from"../../../../table-filter/src/hooks/useMixins.js";import y from"../../../../../_virtual/plugin-vue_export-helper.js";const m={class:"search"};var b=y(e({__name:"index",props:{searchFieldList:{type:Array,default:()=>[]},conditionList:{type:Array,default:()=>[]},settingId:String,filterApiConfig:{type:Object,default:()=>({})},classifyModal:{type:Boolean,default:!1}},emits:["CondiTionListInit","saveGetTableCondiTionList","setClassifyModal"],setup(e,{emit:y}){const b=e,h=u(),{handleGetConfigApi:A}=C();let L=i(b.conditionList),I=i(),T=i(!1),S=i({}),_=i([]),j=i(!1);const O=i(null),x=t();async function F(e){try{let i=Object.assign(e,{id:b.settingId,tableId:x.tableId});await A(i,"requestSaveTableCondiTionSetting",{},b.filterApiConfig)&&(y("CondiTionListInit"),H(!1))}catch(e){console.log(e)}}function k(){H(!1),L.value.forEach((e=>{e.checked=!1}))}function w(){T.value=!0}function G(e,i){T.value=!0,S.value=Object.assign(e,{from:"edit"})}function M(e,i){T.value=!0,S.value=Object.assign(e,{from:"copy"})}async function q(e){try{if(Object.assign(e,{tableId:x.tableId,conditionList:JSON.stringify(L.value)}),j.value=!0,!await A(e,"requestSaveTableCondiTion",{},b.filterApiConfig))return;O.value&&O.value.cancelSaveAdd(),y("saveGetTableCondiTionList"),T.value=!1}catch(e){console.log(e)}finally{j.value=!1}}function R(){T.value=!1,S.value={}}function D(e,i){L.value=e,I.value=i}async function E(e,i){if(e)try{let i={id:e.sid};if(!await A(i,"requestDeleteTableCondiTion",{},b.filterApiConfig))return;h.success("删除成功"),y("saveGetTableCondiTionList",{type:"delete",item:e})}catch(e){console.log(e)}else h.info("请选择行")}function H(e){y("setClassifyModal",e)}async function K(){try{let e={id:b.settingId,tableId:x.tableId,type:"SEARCH_CATEGORY"};await A(e,"requestResetDefaultSetting",{},b.filterApiConfig)&&(y("CondiTionListInit"),H(!1))}catch(e){console.log(e)}}let N=n((()=>b.classifyModal));return a((()=>x.searchKey),(()=>{x.selectKeys=[x.searchKey||"all"]})),a((()=>b.searchFieldList),(e=>{e&&e.length>0&&(_.value=e.filter((e=>"operatorColumn"!==e.columnName)))}),{immediate:!0,deep:!0}),a((()=>b.conditionList),(e=>{L.value=e}),{immediate:!0,deep:!0}),a((()=>T),(e=>{e||(S.value={})})),(i,t)=>(o(),l("div",m,[s(v,r({dataSource:c(L),visibleIn:c(N)},i.$attrs,{onHandleOk:F,onClose:k,onChangeData:D,onResetPopconfirm:K,edit:G,copy:M,delItem:E,type:"search",filterApiConfig:e.filterApiConfig}),{add:d((()=>[s(c(p),{type:"info",onClick:w},{default:d((()=>[f("新增")])),_:1})])),_:1},16,["dataSource","visibleIn","filterApiConfig"]),s(g,r({ref_key:"searchFilter",ref:O},i.$attrs,{visible:c(T),loading:c(j),conditionList:c(L),actionList_prop:c(S),searchFieldList:c(_),isInSearch:!0,isCnHis:!0,showCompareField:!0,filterApiConfig:e.filterApiConfig,onSaveAdd:q,onCancelSaveAdd:R}),null,16,["visible","loading","conditionList","actionList_prop","searchFieldList","filterApiConfig"])]))}}),[["__file","index.vue"]]);export{b as default};
1
+ import{defineComponent as e,ref as i,useAttrs as t,computed as n,watch as a,openBlock as o,createElementBlock as l,createVNode as s,mergeProps as r,unref as c,withCtx as d,createTextVNode as f}from"vue";import{useMessage as u,NButton as p}from"naive-ui";import v from"../table-modal/index.vue.js";import g from"../search-filter/index.vue.js";import C from"../../../../table-filter/src/hooks/useMixins.js";import y from"../../../../../_virtual/plugin-vue_export-helper.js";const m={class:"search"};var b=y(e({__name:"index",props:{searchFieldList:{type:Array,default:()=>[]},conditionList:{type:Array,default:()=>[]},settingId:String,filterApiConfig:{type:Object,default:()=>({})},classifyModal:{type:Boolean,default:!1}},emits:["CondiTionListInit","saveGetTableCondiTionList","setClassifyModal"],setup(e,{emit:y}){const b=e,h=u(),{handleGetConfigApi:A}=C();let L=i(b.conditionList),I=i(),T=i(!1),S=i({}),_=i([]),j=i(!1);const O=i(null),x=t();async function F(e){try{let i=Object.assign(e,{id:b.settingId,tableId:x.tableId});await A(i,"requestSaveTableCondiTionSetting",{},b.filterApiConfig)&&(y("CondiTionListInit"),H(!1))}catch(e){console.log(e)}}function k(){H(!1),L.value.forEach((e=>{e.checked=!1}))}function w(){T.value=!0}function G(e){T.value=!0,S.value=Object.assign(e,{from:"edit"})}function M(e){T.value=!0,S.value=Object.assign(e,{from:"copy"})}async function q(e){try{if(Object.assign(e,{tableId:x.tableId,conditionList:JSON.stringify(L.value)}),j.value=!0,!await A(e,"requestSaveTableCondiTion",{},b.filterApiConfig))return;O.value&&O.value.cancelSaveAdd(),y("saveGetTableCondiTionList"),T.value=!1}catch(e){console.log(e)}finally{j.value=!1}}function R(){T.value=!1,S.value={}}function D(e,i){L.value=e,I.value=i}async function E(e){if(e)try{let i={id:e.sid};if(!await A(i,"requestDeleteTableCondiTion",{},b.filterApiConfig))return;h.success("删除成功"),y("saveGetTableCondiTionList",{type:"delete",item:e})}catch(e){console.log(e)}else h.info("请选择行")}function H(e){y("setClassifyModal",e)}async function K(){try{let e={id:b.settingId,tableId:x.tableId,type:"SEARCH_CATEGORY"};await A(e,"requestResetDefaultSetting",{},b.filterApiConfig)&&(y("CondiTionListInit"),H(!1))}catch(e){console.log(e)}}let N=n((()=>b.classifyModal));return a((()=>x.searchKey),(()=>{x.selectKeys=[x.searchKey||"all"]})),a((()=>b.searchFieldList),(e=>{e&&e.length>0&&(_.value=e.filter((e=>"operatorColumn"!==e.columnName)))}),{immediate:!0,deep:!0}),a((()=>b.conditionList),(e=>{L.value=e}),{immediate:!0,deep:!0}),a((()=>T),(e=>{e||(S.value={})})),(i,t)=>(o(),l("div",m,[s(v,r({dataSource:c(L),visibleIn:c(N)},i.$attrs,{onHandleOk:F,onClose:k,onChangeData:D,onResetPopconfirm:K,edit:G,copy:M,delItem:E,type:"search",filterApiConfig:e.filterApiConfig}),{add:d((()=>[s(c(p),{type:"info",onClick:w},{default:d((()=>[f("新增")])),_:1})])),_:1},16,["dataSource","visibleIn","filterApiConfig"]),s(g,r({ref_key:"searchFilter",ref:O},i.$attrs,{visible:c(T),loading:c(j),conditionList:c(L),actionList_prop:c(S),searchFieldList:c(_),isInSearch:!0,isCnHis:!0,showCompareField:!0,filterApiConfig:e.filterApiConfig,onSaveAdd:q,onCancelSaveAdd:R}),null,16,["visible","loading","conditionList","actionList_prop","searchFieldList","filterApiConfig"])]))}}),[["__file","index.vue"]]);export{b as default};
@@ -99,8 +99,8 @@ declare const _default: import("vue").DefineComponent<{
99
99
  resetChangeWindow: () => void;
100
100
  dragEnd: () => void;
101
101
  clickli: (item: IClassifyListType) => void;
102
- clickChecked: (item: IClassifyListType, name: string) => void;
103
- changeSwitch: (item: IClassifyListType, name: string) => void;
102
+ clickChecked: (item: IClassifyListType) => void;
103
+ changeSwitch: (item: IClassifyListType) => void;
104
104
  changecommonSwitch: (item: IClassifyListType) => void;
105
105
  formatParams: (type: string) => {
106
106
  id: string;
@@ -271,12 +271,12 @@ declare const _default: import("vue").DefineComponent<{
271
271
  oneSave: (value: any) => Promise<void>;
272
272
  oneCancel: () => void;
273
273
  hanleAdd: () => void;
274
- edit: (item: IClassifyListType, name: string) => void;
275
- copy: (item: IClassifyListType, name: string) => void;
274
+ edit: (item: IClassifyListType) => void;
275
+ copy: (item: IClassifyListType) => void;
276
276
  saveAdd: (params: any) => Promise<void>;
277
277
  cancelSaveAdd: () => void;
278
278
  changeData: (data: any, checkedItemVal: any) => void;
279
- delItem: (checkedItemVal: any, name: string) => Promise<void>;
279
+ delItem: (checkedItemVal: any) => Promise<void>;
280
280
  setOneVisible: (flag: boolean) => void;
281
281
  resetPopconfirm: () => Promise<void>;
282
282
  oneVisible: import("vue").ComputedRef<boolean>;
@@ -381,8 +381,8 @@ declare const _default: import("vue").DefineComponent<{
381
381
  resetChangeWindow: () => void;
382
382
  dragEnd: () => void;
383
383
  clickli: (item: IClassifyListType) => void;
384
- clickChecked: (item: IClassifyListType, name: string) => void;
385
- changeSwitch: (item: IClassifyListType, name: string) => void;
384
+ clickChecked: (item: IClassifyListType) => void;
385
+ changeSwitch: (item: IClassifyListType) => void;
386
386
  changecommonSwitch: (item: IClassifyListType) => void;
387
387
  formatParams: (type: string) => {
388
388
  id: string;
@@ -767,6 +767,7 @@ declare const _default: import("vue").DefineComponent<{
767
767
  DATE: string;
768
768
  DATE_TIME: string;
769
769
  CHECKBOX_GROUP: string;
770
+ INPUTNUMBER_GROUP: string;
770
771
  };
771
772
  WidgetValEnums: {
772
773
  CUSTOM: string;
@@ -983,8 +984,8 @@ declare const _default: import("vue").DefineComponent<{
983
984
  onGetQuickSearchListObj?: ((...args: any[]) => any) | undefined;
984
985
  }, {
985
986
  searchFieldList: any[];
986
- tableId: string;
987
987
  filterApiConfig: Record<string, any>;
988
+ tableId: string;
988
989
  conditionMap: IConditionMapType;
989
990
  conditionSid: string[];
990
991
  curClassificationIndex: number;
@@ -1,8 +1,23 @@
1
1
  import { SFCWithInstall } from '../../../es/shared/types';
2
- declare const DatePicker: SFCWithInstall<import("vue").DefineComponent<{}, {
2
+ declare const DatePicker: SFCWithInstall<import("vue").DefineComponent<{
3
+ updateUnchangedValue: {
4
+ type: BooleanConstructor;
5
+ };
6
+ onConfirm: {
7
+ type: FunctionConstructor;
8
+ };
9
+ }, {
3
10
  attrs: {
4
11
  [x: string]: unknown;
5
12
  };
13
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
14
+ updateUnchangedValue: {
15
+ type: BooleanConstructor;
16
+ };
17
+ onConfirm: {
18
+ type: FunctionConstructor;
19
+ };
20
+ }>> & {}>>;
6
21
  datePickerRef: import("vue").Ref<import("../../../es/shared/types").AnyObject | null>;
7
22
  panelInstRef: import("vue").Ref<null>;
8
23
  isDateTime: import("vue").ComputedRef<boolean>;
@@ -11,6 +26,16 @@ declare const DatePicker: SFCWithInstall<import("vue").DefineComponent<{}, {
11
26
  focus: () => any;
12
27
  blur: () => any;
13
28
  onUpdateShow: (show: boolean) => void;
29
+ onConfirm: (...args: any[]) => void;
14
30
  NDatePicker: any;
15
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
31
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
32
+ updateUnchangedValue: {
33
+ type: BooleanConstructor;
34
+ };
35
+ onConfirm: {
36
+ type: FunctionConstructor;
37
+ };
38
+ }>>, {
39
+ updateUnchangedValue: boolean;
40
+ }>>;
16
41
  export default DatePicker;
@@ -1,8 +1,23 @@
1
1
  import { AnyObject } from '../../../../es/shared/types';
2
- declare const _default: import("vue").DefineComponent<{}, {
2
+ declare const _default: import("vue").DefineComponent<{
3
+ updateUnchangedValue: {
4
+ type: BooleanConstructor;
5
+ };
6
+ onConfirm: {
7
+ type: FunctionConstructor;
8
+ };
9
+ }, {
3
10
  attrs: {
4
11
  [x: string]: unknown;
5
12
  };
13
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
14
+ updateUnchangedValue: {
15
+ type: BooleanConstructor;
16
+ };
17
+ onConfirm: {
18
+ type: FunctionConstructor;
19
+ };
20
+ }>> & {}>>;
6
21
  datePickerRef: import("vue").Ref<AnyObject | null>;
7
22
  panelInstRef: import("vue").Ref<null>;
8
23
  isDateTime: import("vue").ComputedRef<boolean>;
@@ -11,6 +26,16 @@ declare const _default: import("vue").DefineComponent<{}, {
11
26
  focus: () => any;
12
27
  blur: () => any;
13
28
  onUpdateShow: (show: boolean) => void;
29
+ onConfirm: (...args: any[]) => void;
14
30
  NDatePicker: any;
15
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
31
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
32
+ updateUnchangedValue: {
33
+ type: BooleanConstructor;
34
+ };
35
+ onConfirm: {
36
+ type: FunctionConstructor;
37
+ };
38
+ }>>, {
39
+ updateUnchangedValue: boolean;
40
+ }>;
16
41
  export default _default;
@@ -1 +1 @@
1
- import{defineComponent as e,useAttrs as t,ref as r,computed as a,openBlock as o,createBlock as s,unref as u,mergeProps as l,createSlots as i,renderList as n,withCtx as m,renderSlot as y,nextTick as f}from"vue";import{NDatePicker as p}from"naive-ui";import"../../../shared/utils/index.js";import"lodash-es";import{useDateTime as d}from"../../../shared/hooks/useDateTime.js";import v from"../../../_virtual/plugin-vue_export-helper.js";var c=v(e({__name:"DatePicker",setup(e,{expose:v}){const c=t(),_=r(null),h=r(null),k=a((()=>{const e=Reflect.get(c,"type")||"";return["datetime","datetimerange"].includes(e)})),M=a((()=>{if(Reflect.get(c,"format"))return c.format;const e=c.type||"";return k.value?"yyyy-MM-dd HH:mm:ss":"month"===e?"yyyy-MM":"year"===e?"yyyy":"yyyy-MM-dd"})),g=a((()=>k.value?M.value.split(" "):"")),{focus:x,blur:P}=d(_,M,c);function R(e){e&&k.value&&f((()=>{var e;h.value=null==(e=_.value)?void 0:e.panelInstRef,d(h,g,c)}))}return v({$datePicker:_,focus:x,blur:P}),(e,t)=>(o(),s(u(p),l({ref_key:"datePickerRef",ref:_},e.$attrs,{"onUpdate:show":R}),i({_:2},[n(e.$slots,((t,r)=>({name:r,fn:m((()=>[y(e.$slots,r)]))})))]),1040))}}),[["__file","DatePicker.vue"]]);export{c as default};
1
+ import{defineComponent as e,useAttrs as t,ref as n,computed as l,openBlock as u,createBlock as a,unref as o,mergeProps as r,createSlots as i,renderList as s,withCtx as p,renderSlot as v,nextTick as d}from"vue";import{NDatePicker as f}from"naive-ui";import"../../../shared/utils/index.js";import"lodash-es";import{useDateTime as c}from"../../../shared/hooks/useDateTime.js";import{format as m}from"date-fns";import y from"../../../_virtual/plugin-vue_export-helper.js";var h=y(e({__name:"DatePicker",props:{updateUnchangedValue:{type:Boolean},onConfirm:{type:Function}},setup(e,{expose:y}){const h=e,g=t(),_=n(null),k=n(null),M=l((()=>{const e=Reflect.get(g,"type")||"";return["datetime","datetimerange"].includes(e)})),R=l((()=>{if(Reflect.get(g,"format"))return g.format;const e=g.type||"";return M.value?"yyyy-MM-dd HH:mm:ss":"month"===e?"yyyy-MM":"year"===e?"yyyy":"yyyy-MM-dd"})),$=l((()=>M.value?R.value.split(" "):"")),{focus:w,blur:x}=c(_,R,g);function D(e){e&&M.value&&d((()=>{var e;k.value=null==(e=_.value)?void 0:e.panelInstRef,c(k,$,g)}))}function E(...e){var t,n,l,u,a;null==(t=h.onConfirm)||t.call(h,...e);const o=Reflect.get(g,"type")||"",r=null==(a=null==(u=null==(l=null==(n=_.value)?void 0:n.inputInstRef)?void 0:l.$el)?void 0:u.querySelector)?void 0:a.call(u,"input");if(!(null==r?void 0:r.value)||!h.updateUnchangedValue||o.includes("range"))return;const i=r.value;r.value=m(new Date,R.value),r.dispatchEvent(new InputEvent("input")),r.value=i,r.dispatchEvent(new InputEvent("input"))}return y({$datePicker:_,focus:w,blur:x}),(e,t)=>(u(),a(o(f),r({ref_key:"datePickerRef",ref:_},e.$attrs,{"onUpdate:show":D,onConfirm:E}),i({_:2},[s(e.$slots,((t,n)=>({name:n,fn:p((()=>[v(e.$slots,n)]))})))]),1040))}}),[["__file","DatePicker.vue"]]);export{h as default};
@@ -32,7 +32,7 @@ declare const FabricChart: SFCWithInstall<import("vue").DefineComponent<{
32
32
  }>>;
33
33
  emits: (event: "select" | "add" | "change" | "remove", ...args: any[]) => void;
34
34
  isTemperature: import("vue").ComputedRef<boolean>;
35
- canvasRef: any;
35
+ canvasRef: import("vue").Ref<HTMLCanvasElement | null>;
36
36
  canvas: import("vue").Ref<any>;
37
37
  propItems: any;
38
38
  redrawPoints: import("vue").Ref<any>;
@@ -1,4 +1,4 @@
1
- import { PropType } from 'vue';
1
+ import { type PropType } from 'vue';
2
2
  import { IType } from './interface';
3
3
  import { AnyObject } from '../../../../es/shared/types';
4
4
  declare const _default: import("vue").DefineComponent<{
@@ -34,7 +34,7 @@ declare const _default: import("vue").DefineComponent<{
34
34
  }>>;
35
35
  emits: (event: "select" | "add" | "change" | "remove", ...args: any[]) => void;
36
36
  isTemperature: import("vue").ComputedRef<boolean>;
37
- canvasRef: any;
37
+ canvasRef: import("vue").Ref<HTMLCanvasElement | null>;
38
38
  canvas: import("vue").Ref<any>;
39
39
  propItems: any;
40
40
  redrawPoints: import("vue").Ref<any>;
@@ -1,7 +1,7 @@
1
1
  import { Ref } from 'vue';
2
2
  import { fabric } from '../utils';
3
3
  import { AnyObject } from '../../../../../es/shared/types';
4
- export declare function useBirthProcess(canvas: Ref<fabric.Canvas>, propItems: AnyObject, emits: any, pointTipProps: any, pointMenuProps: any, commonFunc: AnyObject): {
4
+ export declare function useBirthProcess(canvas: Ref<fabric.Canvas>, propItems: AnyObject, emits: Function, pointTipProps: AnyObject, pointMenuProps: AnyObject, commonFunc: AnyObject): {
5
5
  clickMenu: ({ item, target }: {
6
6
  item: any;
7
7
  target: any;
@@ -1,6 +1,7 @@
1
1
  import { Ref } from 'vue';
2
2
  import { fabric } from '../utils';
3
- export default function useBirthProcessChart(canvas: Ref<fabric.Canvas>, props: any, emits: any, canvasRef: Ref<any>): {
3
+ import { AnyObject } from '../../../../../es/shared/types';
4
+ export default function useBirthProcessChart(canvas: Ref<fabric.Canvas>, props: AnyObject, emits: Function, canvasRef: Ref<HTMLCanvasElement | null>): {
4
5
  propItems: any;
5
6
  redrawPoints: Ref<any>;
6
7
  select: Ref<any>;
@@ -1,10 +1,10 @@
1
- import { Ref } from 'vue';
1
+ import { type Ref } from 'vue';
2
2
  import { fabric } from '../utils';
3
3
  import { IPropItems } from '../interface';
4
4
  import { AnyObject } from '../../../../../es/shared/types';
5
- export declare function useCenter(canvas: Ref<fabric.Canvas>, propItems: IPropItems, emits: any, cumputedX: Function, cumputedY: Function, getXValue: Function, getYValue: Function, addRenderItem: Function | undefined, pointTipProps: any, pointMenuProps: any, commonFunc: AnyObject): {
6
- pointTipProps: any;
7
- pointMenuProps: any;
5
+ export declare function useCenter(canvas: Ref<fabric.Canvas>, propItems: IPropItems, emits: Function, cumputedX: Function, cumputedY: Function, getXValue: Function, getYValue: Function, addRenderItem: Function | undefined, pointTipProps: AnyObject, pointMenuProps: AnyObject, commonFunc: AnyObject): {
6
+ pointTipProps: AnyObject;
7
+ pointMenuProps: AnyObject;
8
8
  clickMenu: ({ item, target }: {
9
9
  item: any;
10
10
  target: any;