content.config.95f3cefb.js 2.1 KB

1
  1. import{Z as r,bi as l}from"./index.26d13061.js";import{c as s}from"./isBeyondTime.ae1db9e4.js";import{i as c}from"./isBeyondTime.7ef0c997.js";import{a}from"./calc.3602fe08.js";const n=new Date,h=r(n).format("YYYY-MM-DD"),b=r(n).subtract(30,"days").format("YYYY-MM-DD"),y={formItems:[{field:"date",type:"date_picker",defaultValue:[b,h],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"}]},f="purchease/sale/";var D={list:s(`${f}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"}],B={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:i,sale_total:m,th_total:p,sale_real_total:d,sale_num:_}=o;t.consult_num=Number(a(t.consult_num,u)).toFixed(0),t.consult_total=Number(a(t.consult_total,i)).toFixed(2),t.sale_total=Number(a(t.sale_total,m)).toFixed(2),t.th_total=Number(a(t.th_total,p)).toFixed(2),t.sale_real_total=Number(a(t.sale_real_total,d)).toFixed(2),t.sale_num=Number(a(t.sale_num,_)).toFixed(0)}),[t,...e]},apis:{httpList:D.list}};export{D as a,B as c,y as s};