content.config.45171125.js 1.7 KB

1
  1. import{S as p,d2 as u}from"./index.56449854.js";import{c as i}from"./createRequset.56e9fc42.js";import{i as m}from"./isBeyondTime.ddc44ee0.js";import{a as r}from"./calc.f00124e1.js";const n=p(new Date).format("YYYY-MM-DD"),E={formItems:[{field:"date",type:"date_picker",defaultValue:[n,n],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"}]},c="admin/report/";var f={list:i(`${c}dzListByManager`),businessList:i("")};const h=[{prop:"manager",label:"\u4E1A\u52A1\u7ECF\u7406",minWidth:"155px"},{prop:"department",label:"\u6240\u5728\u90E8\u95E8",minWidth:"155px"},{prop:"orderNum",label:"\u8BA2\u5355\u6570\u91CF",minWidth:"100px"},{prop:"totalPrice",label:"\u9500\u552E\u91D1\u989D",minWidth:"100px"},{prop:"th_fee",label:"\u9000\u8D27\u91D1\u989D",minWidth:"100px"},{prop:"realTotal",label:"\u5B9E\u9645\u91D1\u989D",minWidth:"100px"}],N={columns:h,responseCode:0,notPagination:!0,superUserNoAction:!1,beforeRequestList(t){const{start:e,end:a}=t;return m({name:"\u4E0B\u5355\u65F6\u95F4",len:30,start:e,end:a})?u.EMPTY:u.NEXT},tableRowClassName({rowIndex:t}){if(t===0)return"warning-row"},handleData(t){const e={manager:"\u5408\u8BA1",department:"--",orderNum:0,totalPrice:0,th_fee:0,realTotal:0};return t.forEach(a=>{const{orderNum:o,totalPrice:s,th_fee:l,realTotal:d}=a;e.orderNum=Number(r(e.orderNum,o)).toFixed(0),e.totalPrice=Number(r(e.totalPrice,s)).toFixed(2),e.th_fee=Number(r(e.th_fee,l)).toFixed(2),e.realTotal=Number(r(e.realTotal,d)).toFixed(2)}),[e,...t]},apis:{httpList:f.list}};export{f as a,N as c,E as s};