1 |
- import{Z as n,au as p,bh as r}from"./index.1d5f2f42.js";import{c as l}from"./createRequset.a71f3020.js";import{i as c}from"./isBeyondTime.8b05db81.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:u,end_date:a}=t;return!u||!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:u,end:a,len:30})?r.EMPTY:r.NEXT},handleData(t){if(!t)return[];const u=Object.keys(t).reduce((e,s)=>[...e,t[s]],[]),a=u.findIndex(({name:e})=>e==="\u603B\u8BA1");if(a!==-1){const e=u.splice(a,1);u.push(...e)}return u},apis:{httpList:l("oom")}};export{g as c,f as s};
|