content.config.f62e23ed.js 1.9 KB

1
  1. import{S as s,ce as n,d2 as r}from"./index.56449854.js";import{c as p}from"./createRequset.5439599c.js";import{i}from"./isBeyondTime.ddc44ee0.js";const o=s(new Date),c=o.format("YYYY-MM-DD"),d=o.subtract(29,"days").format("YYYY-MM-DD"),m={formItems:[{field:"date",type:"date_picker",trigger:"change",defaultValue:[d,c],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:"flag",type:"select",defaultValue:"",trigger:"change",options:[{value:"",label:"\u5168\u9009"},{value:"1",label:"\u5F00\u901A\u8D26\u53F7\u7684\u4F9B\u5E94\u5546"},{value:"2",label:"\u672A\u5F00\u901A\u8D26\u53F7\u7684\u4F9B\u5E94\u5546"}]},{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:"person",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"},{prop:"tag_2",label:"\u7EBF\u4E0A\u975E\u5E93\u5B58\u54C1\u91C7\u8D2D\u5355"},{prop:"tag_c",label:"ToC\u91C7\u8D2D\u5355"},{prop:"tag_b",label:"ToB\u8D2D\u5355"},{prop:"tag_zx",label:"\u54A8\u8BE2\u91C7\u8FD4\u91C7\u8D2D\u5355"}],E={columns:D,root:!0,notPagination:!0,superUserNoAction:!1,notNeedCompanyFilter:!0,beforeRequestList(t){const{start_date:u,end_date:a}=t;return!u||!a?(n.warning("\u8BF7\u9009\u62E9\u4E00\u4E2A\u65F6\u95F4\u533A\u95F4 "),r.EMPTY):i({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,l)=>[...e,t[l]],[]),a=u.findIndex(({name:e})=>e==="\u603B\u8BA1");if(a!==-1){const e=u.splice(a,1);u.push(...e)}return u},apis:{httpList:p("popm")}};export{E as c,m as s};