import{S as n,cc as p,c$ as r}from"./index.e80c366d.js";import{c as l}from"./createRequset.bf5f5380.js";import{i as c}from"./isBeyondTime.e174d920.js";const o=n(new Date),i=o.format("YYYY-MM-DD"),d=o.subtract(29,"days").format("YYYY-MM-DD"),f={formItems:[{field:"date",type:"date_picker",trigger:"change",defaultValue:[d,i],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"}}]},D=[{prop:"cat_1",label:"\u4E00\u7EA7\u5206\u7C7B"},{prop:"cat_2",label:"\u4E8C\u7EA7\u5206\u7C7B"},{prop:"cat_3",label:"\u4E09\u7EA7\u5206\u7C7B"},{prop:"tag_1",label:"\u5E93\u5B58\u54C1"},{prop:"tag_2",label:"\u975E\u5E93\u5B58\u54C1"},{prop:"tag_3",label:"\u54A8\u8BE2\u91C7\u53CD"},{prop:"tag_supplier",label:"\u4F9B\u5E94\u5546\u53D1\u8D27"},{prop:"tag_person",label:"\u8D1F\u8D23\u4EBA\u53D1\u8D27"},{prop:"tag_logistics",label:"\u7269\u6D41\u5C97\u53D1\u8D27"}],g={columns:D,root:!0,notPagination:!0,superUserNoAction:!1,notNeedCompanyFilter:!0,beforeRequestList(t){const{start_date:e,end_date:a}=t;return!e||!a?(p.warning("\u8BF7\u9009\u62E9\u4E00\u4E2A\u65F6\u95F4\u533A\u95F4 "),r.EMPTY):c({message:"\u65F6\u95F4\u533A\u95F4\u4E0D\u80FD\u8D85\u8FC7 30 \u5929",start:e,end:a,len:30})?r.EMPTY:r.NEXT},handleData(t){if(!t)return[];const e=Object.keys(t).reduce((u,s)=>[...u,t[s]],[]),a=e.findIndex(({name:u})=>u==="\u603B\u8BA1");if(a!==-1){const u=e.splice(a,1);e.push(...u)}return e},apis:{httpList:l("oom")}};export{g as c,f as s};
