content.config.17f66039.js 1.7 KB

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