1 |
- import{ck as d,_ as f,d as b,cl as v,r as p,o as E,A as m,x as F,b as i,G as x,h as w,u as D}from"./index.56449854.js";import{s as B}from"./status.3ccd5ebb.js";import{a as o}from"./calc.f00124e1.js";const h="http://cxinv.api.caixiao365.com/admin/",A=(u={})=>d.request("get",`${h}dzqrd`,{data:u}),y=[{value:"1",label:"\u672A\u56DE\u6B3E"},{value:"2",label:"\u90E8\u5206\u56DE\u6B3E"},{value:"3",label:"\u5DF2\u56DE\u6B3E"}],N=[{value:"1",label:"\u672A\u5F00\u7968"},{value:"2",label:"\u5F00\u7968\u4E2D"},{value:"3",label:"\u5DF2\u5F00\u7968"}],g=[{label:"\u5E8F\u53F7",prop:"index"},{label:"\u786E\u8BA4\u5355\u7F16\u7801",prop:"sequenceNo",width:"115px"},{label:"\u9500\u552E\u8BA2\u5355\u4E3B\u7F16\u53F7",prop:"cxCode",width:"115px"},{label:"\u786E\u8BA4\u5355\u4E0B\u5355\u65F6\u95F4",prop:"createdTime",width:"115px"},{label:"\u5BA2\u6237\u540D\u79F0",prop:"customerName"},{label:"\u4E1A\u52A1\u5458\u90E8\u95E8",prop:"department"},{label:"\u4E1A\u52A1\u5458",prop:"ownerName"},{label:"\u4EA7\u54C1\u540D\u79F0",prop:"goodName"},{label:"\u4E0B\u5355\u6570\u91CF",prop:"goodNum"},{label:"\u9500\u552E\u5355\u4EF7",prop:"goodPrice"},{label:"\u9500\u552E\u603B\u989D",prop:"totalPrice"},{label:"\u5DF2\u56DE\u6B3E",prop:"apay_fee"},{label:"\u672A\u56DE\u6B3E",prop:"wpay_fee"},{label:"\u5DF2\u5F00\u7968",prop:"ainv_fee"},{label:"\u672A\u5F00\u7968",prop:"winv_fee"},{label:"\u5F00\u7968\u8FDB\u884C\u4E2D",prop:"inv_fee"},{label:"\u5DF2\u5F00\u7968\u672A\u56DE\u6B3E",prop:"ainv_wpay",width:"110px"},{label:"\u8D26\u671F",prop:"dz_day"},{label:"\u56DE\u6B3E\u72B6\u6001",prop:"pay_status",cellRenderer({row:u}){var e;return((e=y.find(({value:a})=>a===u.pay_status))==null?void 0:e.label)||"--"}},{label:"\u5F00\u7968\u72B6\u6001",prop:"inv_status",cellRenderer({row:u}){var e;return((e=N.find(({value:a})=>a===u.inv_status))==null?void 0:e.label)||"--"}},{label:"\u53D1\u8D27\u72B6\u6001",prop:"sendStatus",cellRenderer({row:u}){var e;return((e=B.find(({value:a})=>a===u.sendStatus))==null?void 0:e.label)||"--"}}],C={title:"\u8D85\u671F\u5E94\u6536\u8D26\u660E\u7EC6\u8868",superUserNoAction:!1,showTitle:!0,responseCode:0,columns:g,tableRowClassName({rowIndex:u}){if(u===0)return"warning-row"},handleData(u){const e={index:"\u5408\u8BA1",totalPrice:0,apay_fee:0,wpay_fee:0,ainv_fee:0,winv_fee:0,inv_fee:0,ainv_wpay:0};return u.forEach(a=>{const{totalPrice:t,apay_fee:r,wpay_fee:n,ainv_fee:l,winv_fee:s,inv_fee:c,ainv_wpay:_}=a;e.totalPrice=Number(o(e.totalPrice,t)).toFixed(2),e.apay_fee=Number(o(e.apay_fee,r)).toFixed(2),e.wpay_fee=Number(o(e.wpay_fee,n)).toFixed(2),e.ainv_fee=Number(o(e.ainv_fee,l)).toFixed(2),e.winv_fee=Number(o(e.winv_fee,s)).toFixed(2),e.inv_fee=Number(o(e.inv_fee,c)).toFixed(2),e.ainv_wpay=Number(o(e.ainv_wpay,_)).toFixed(2)}),[e,...u.map((a,t)=>({index:t+1,...a}))]},apis:{httpList:A}},P={"w-full":""},R={class:"fixed top-[85px] right-[25px] font-700"},k="accountsReceivableExpired",q=b({__name:"index",setup(u){const e=v(0),a={content:{result:t=>e.value=t?t.length:0}};return(t,r)=>{const n=p("PageContainer"),l=p("PageAuth");return E(),m(l,{pageName:k},{default:F(()=>[i("div",P,[i("div",R," \u5171\u8BA1:"+x(e.value)+" \u6761 ",1),w(n,{contentConfig:D(C),events:a},null,8,["contentConfig"])])]),_:1})}}});var U=f(q,[["__file","C:/Users/89793/Desktop/projects/report-v3/src/views/dashboard/accountsReceivableExpired/index.vue"]]);export{U as default};
|