import{S as d,c$ as l}from"./index.e80c366d.js";import{c as s}from"./createRequset.60472412.js";import{i as c}from"./isBeyondTime.e174d920.js";import{a}from"./calc.3602fe08.js";const h=new Date,r=d(h).format("YYYY-MM-DD"),B={formItems:[{field:"date",type:"date_picker",defaultValue:[r,r],trigger:"change",otherOptions:{type:"daterange",startPlaceholder:"\u4E0B\u5355\u5F00\u59CB\u65F6\u95F4",endPlaceholder:"\u4E0B\u5355\u7ED3\u675F\u65F6\u95F4",valueFormat:"YYYY-MM-DD",startProp:"start",endProp:"end"}},{field:"depart_id",type:"depart-query",trigger:"change"}]},b="purchease/sale/";var F={list:s(`${b}orderInfoBySaler`),businessList:s("")};const f=[{prop:"sale_name",label:"\u9500\u552E\u5458",minWidth:"155px"},{prop:"depart_name",label:"\u6240\u5728\u90E8\u95E8",minWidth:"155px"},{prop:"consult_num",label:"\u7ADE\u4EF7\u5355\u6570\u91CF",minWidth:"155px"},{prop:"consult_total",label:"\u7ADE\u4EF7\u5355\u603B\u91D1\u989D",minWidth:"155px"},{prop:"sale_num",label:"\u8BA2\u5355\u6570\u91CF",minWidth:"155px"},{prop:"sale_total",label:"\u9500\u552E\u91D1\u989D",minWidth:"155px"},{prop:"th_total",label:"\u9000\u8D27\u91D1\u989D",minWidth:"155px"},{prop:"sale_real_total",label:"\u5B9E\u9645\u91D1\u989D",minWidth:"155px"}],y={columns:f,showTitle:!1,notPagination:!0,superUserNoAction:!1,beforeRequestList(e){const{start:t,end:o}=e;return c({name:"\u4E0B\u5355\u65F6\u95F4",len:30,start:t,end:o})?l.EMPTY:l.NEXT},tableRowClassName({rowIndex:e}){if(e===0)return"warning-row"},handleData(e){const t={sale_name:"\u5408\u8BA1",depart_name:"--",consult_num:0,consult_total:0,sale_total:0,th_total:0,sale_real_total:0,sale_num:0};return e.forEach(o=>{const{consult_num:u,consult_total:n,sale_total:i,th_total:m,sale_real_total:p,sale_num:_}=o;t.consult_num=Number(a(t.consult_num,u)).toFixed(0),t.consult_total=Number(a(t.consult_total,n)).toFixed(2),t.sale_total=Number(a(t.sale_total,i)).toFixed(2),t.th_total=Number(a(t.th_total,m)).toFixed(2),t.sale_real_total=Number(a(t.sale_real_total,p)).toFixed(2),t.sale_num=Number(a(t.sale_num,_)).toFixed(0)}),[t,...e]},apis:{httpList:F.list}};export{F as a,y as c,B as s};
