import{S as l,c$ as r,cc as m}from"./index.e80c366d.js";import{c as d}from"./createRequset.60472412.js";import{a as t}from"./calc.3602fe08.js";const _=l(new Date).format("YYYY-MM"),b={formItems:[{field:"date",type:"date_picker",trigger:"change",defaultValue:_,label:"\u4E0B\u5355\u6708\u4EFD:",otherOptions:{type:"month",valueFormat:"YYYY-MM",format:"YYYY-MM",clearable:!1}},{field:"depart_id",type:"depart-query",trigger:"change"}]},c="admin/report/";var E={list:d(`${c}dzListByUser`)};const y=[{prop:"manager",label:"\u4E1A\u52A1\u7ECF\u7406",minWidth:"155px"},{prop:"department",label:"\u6240\u5728\u90E8\u95E8",minWidth:"155px"},{prop:"wpay_fee",label:"\u672A\u56DE\u6B3E\u603B\u989D",minWidth:"155px"},{prop:"pay_fee",label:"\u56DE\u6B3E\u8FDB\u884C\u4E2D\u603B\u989D",minWidth:"155px"},{prop:"apay_fee",label:"\u5DF2\u56DE\u6B3E\u603B\u989D",minWidth:"155px"},{prop:"winv_fee",label:"\u672A\u5F00\u7968\u603B\u989D",minWidth:"155px"},{prop:"inv_fee",label:"\u5F00\u7968\u8FDB\u884C\u4E2D\u603B\u989D",minWidth:"155px"},{prop:"ainv_fee",label:"\u5DF2\u5F00\u7968\u603B\u989D",minWidth:"155px"}],v={columns:y,title:"\u4EC5\u7EDF\u8BA1toB\u8BA2\u5355",responseCode:0,notPagination:!0,superUserNoAction:!1,tableRowClassName({rowIndex:a}){if(a===0)return"warning-row"},beforeRequestList(a){const{start:e,end:u}=a;return e&&u?r.NEXT:(m.warning("\u8BF7\u9009\u62E9\u4E0B\u5355\u6708\u4EFD"),r.EMPTY)},handleData(a){const e={manager:"\u5408\u8BA1",department:"--",wpay_fee:0,pay_fee:0,apay_fee:0,winv_fee:0,inv_fee:0,ainv_fee:0};return a.forEach(u=>{const{wpay_fee:i,pay_fee:n,apay_fee:p,winv_fee:o,inv_fee:f,ainv_fee:s}=u;e.wpay_fee=Number(t(e.wpay_fee,i)).toFixed(2),e.pay_fee=Number(t(e.pay_fee,n)).toFixed(2),e.apay_fee=Number(t(e.apay_fee,p)).toFixed(2),e.winv_fee=Number(t(e.winv_fee,o)).toFixed(2),e.inv_fee=Number(t(e.inv_fee,f)).toFixed(2),e.ainv_fee=Number(t(e.ainv_fee,s)).toFixed(2)}),[e,...a]},apis:{httpList:E.list}};export{E as a,v as c,b as s};
