1 |
- import{S as n,ce as p,d2 as a}from"./index.56449854.js";import{c as l}from"./createRequset.5439599c.js";import{i}from"./isBeyondTime.ddc44ee0.js";const o=n(new Date),d=o.format("YYYY-MM-DD"),c=o.subtract(29,"days").format("YYYY-MM-DD"),f={formItems:[{field:"date",type:"date_picker",trigger:"change",defaultValue:[c,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"}},{field:"supplierNo",placeholder:"\u4F9B\u5E94\u5546\u7F16\u7801",trigger:"change",type:"input"},{field:"supplier_name",placeholder:"\u4F9B\u5E94\u5546\u540D\u79F0",trigger:"change",type:"input"}]},D=[{prop:"supplier_name",label:"\u91C7\u8D2D\u65B9",_slot_:"name"},{prop:"total_cgd",label:"\u91C7\u8D2D\u8BA2\u5355\u603B\u91CF"},{prop:"tag_1",label:"\u7EBF\u4E0A\u5E93\u5B58\u54C1\u91C7\u8D2D\u5355",width:"130px"},{prop:"tag_2",label:"\u7EBF\u4E0A\u975E\u5E93\u5B58\u54C1\u91C7\u8D2D\u5355",width:"130px"},{prop:"tag_c",label:"ToC\u91C7\u8D2D\u5355"},{prop:"tag_b",label:"ToB\u91C7\u8D2D\u5355"},{prop:"tag_zx",label:"\u54A8\u8BE2\u91C7\u8FD4\u91C7\u8D2D\u5355",width:"120px"}],E={columns:D,root:!0,notPagination:!0,superUserNoAction:!1,notNeedCompanyFilter:!0,beforeRequestList(t){const{start_date:e,end_date:r}=t;return!e||!r?(p.warning("\u8BF7\u9009\u62E9\u4E00\u4E2A\u65F6\u95F4\u533A\u95F4 "),a.EMPTY):i({message:"\u65F6\u95F4\u533A\u95F4\u4E0D\u80FD\u8D85\u8FC7 30 \u5929",start:e,end:r,len:30})?a.EMPTY:a.NEXT},handleData(t){if(!t)return[];const e=Object.keys(t).reduce((u,s)=>[...u,t[s]],[]),r=e.findIndex(({name:u})=>u==="\u603B\u8BA1");if(r!==-1){const u=e.splice(r,1);e.push(...u)}return e},apis:{httpList:l("pom")}};export{E as c,f as s};
|