import{S as l,cc as p,c$ as a}from"./index.e80c366d.js";import{c}from"./createRequset.bf5f5380.js";import{i as m}from"./isBeyondTime.e174d920.js";const i=l(new Date),d=i.format("YYYY-MM-DD"),F=i.subtract(29,"days").format("YYYY-MM-DD"),h={formItems:[{field:"date",type:"date_picker",trigger:"change",defaultValue:[F,d],otherOptions:{type:"daterange",startPlaceholder:"\u53D1\u8D77\u5F00\u59CB\u65F6\u95F4",endPlaceholder:"\u53D1\u8D77\u7ED3\u675F\u65F6\u95F4",valueFormat:"YYYY-MM-DD",startProp:"start_date",endProp:"end_date"}}]},f=[{prop:"addtime",label:"\u7ADE\u4EF7\u65F6\u95F4",minWidth:"155px"},{prop:"name",label:"\u4E1A\u52A1\u90E8\u95E8",minWidth:"155px"},{prop:"total",label:"\u7ADE\u4EF7\u6570\u91CF",minWidth:"155px"}];function D(e,t){const u=Array.isArray(e)?e.length:0;if(u>0){let n=0,s=e[0][t];const o=[1];for(let r=1;r<u;r++)e[r][t]==s?(o[n]+=1,o[r]=0):(n=r,o[r]=1,s=e[r][t]);return o}else return[0]}const y={columns:f,root:!0,notPagination:!0,superUserNoAction:!1,notNeedCompanyFilter:!0,spanMethod({rowIndex:e,columnIndex:t},u){if(t==0)return{rowspan:D(u,"addtime")[e],colspan:1}},beforeRequestList(e){const{start_date:t,end_date:u}=e;return!t||!u?(p.warning("\u8BF7\u9009\u62E9\u4E00\u4E2A\u65F6\u95F4\u533A\u95F4 "),a.EMPTY):m({message:"\u65F6\u95F4\u533A\u95F4\u4E0D\u80FD\u8D85\u8FC7 30 \u5929",start:t,end:u,len:30})?a.EMPTY:a.NEXT},apis:{httpList:c("reportzixuntotal")}};export{y as c,h as s};
