1 |
- import{_ as S,d as P,cp as I,m as A,cs as $,cl as T,Q as U,w as W,r as N,o as F,A as b,x as l,u as h,h as x,H as w,G as g,a as C,S as c}from"./index.56449854.js";import{a as k,s as R}from"./apis.3d789891.js";import{a as t,d as V}from"./calc.f00124e1.js";import{u as j}from"./use-page-search.59eb5443.js";import{f as z}from"./export.a2ce61c0.js";import"./createRequset.56e9fc42.js";import"./xlsx.ed122d16.js";const H=[{label:"\u4E1A\u52A1\u516C\u53F8",prop:"depart",cellRenderer({row:e}){return e.depart==="\u603B\u8BA1"?e.depart:e.depart.split("@")[1]}},{label:"\u5E73\u53F0\u516C\u53F8",prop:"companyName",width:" 140px"},{label:"\u5E94\u6536\u8D26\u6B3E",prop:"wpay_fee",cellRenderer({row:e}){return Number(e.wpay_fee).toFixed(2)}},{label:"\u5DF2\u5F00\u7968",prop:"ainv_fee",cellRenderer({row:e}){return Number(e.ainv_fee).toFixed(2)}},{label:"\u5DF2\u56DE\u6B3E",prop:"apay_fee",cellRenderer({row:e}){return Number(e.apay_fee).toFixed(2)}},{label:"\u5DF2\u5F00\u7968-\u5DF2\u56DE\u6B3E",prop:"ainv_apay_fee",cellRenderer({row:e}){return Number(e.ainv_apay_fee).toFixed(2)}},{label:"\u672A\u5F00\u7968",prop:"winv_fee",cellRenderer({row:e}){return Number(e.winv_fee).toFixed(2)}},{label:"\u5F85\u5F00\u7968",prop:"inv_fee",cellRenderer({row:e}){return Number(e.inv_fee).toFixed(2)}},{label:"\u5DF2\u53D1\u8D27\u672A\u5F00\u7968",prop:"winv_asend_fee",cellRenderer({row:e}){return Number(e.winv_asend_fee).toFixed(2)}},{label:"\u672A\u53D1\u8D27",prop:"wpay_send_fee",cellRenderer({row:e}){return Number(e.wpay_send_fee).toFixed(2)}},{label:"\u8D8560\u5929\u5DF2\u53D1\u8D27\u672A\u5F00\u7968",prop:"winv_two_month",cellRenderer({row:e}){return Number(e.winv_two_month).toFixed(2)}},{label:"\u8D85180\u5929\u5E94\u6536\u8D26\u6B3E",prop:"wpay_six_month",cellRenderer({row:e}){return Number(e.wpay_six_month).toFixed(2)}}],B={columns:H,responseCode:0,root:!0,handleData(e=[]){const s=[];return new Promise(p=>{e.map(f=>{const u=f.reduce((a,n)=>({depart:"\u603B\u8BA1",companyName:n.companyName,wpay_fee:Number(t(n.wpay_fee,a.wpay_fee)).toFixed(2),wpay_ainv_fee:Number(t(n.wpay_ainv_fee,a.wpay_ainv_fee)).toFixed(2),ainv_fee:Number(t(n.ainv_fee,a.ainv_fee)).toFixed(2),apay_fee:Number(t(n.apay_fee,a.apay_fee)).toFixed(2),ainv_apay_fee:Number(t(n.ainv_apay_fee,a.ainv_apay_fee)).toFixed(2),wpay_send_fee:Number(t(n.wpay_send_fee,a.wpay_send_fee)).toFixed(2),winv_fee:Number(t(n.winv_fee,a.winv_fee)).toFixed(2),inv_fee:Number(t(n.inv_fee,a.inv_fee)).toFixed(2),winv_asend_fee:Number(t(n.winv_asend_fee,a.winv_asend_fee)).toFixed(2),winv_two_month:Number(t(n.winv_two_month,a.winv_two_month)).toFixed(2),wpay_six_month:Number(t(n.wpay_six_month,a.wpay_six_month)).toFixed(2)}),{depart:"",companyName:"",wpay_fee:0,wpay_ainv_fee:0,ainv_fee:0,apay_fee:0,ainv_apay_fee:0,wpay_send_fee:0,winv_fee:0,inv_fee:0,winv_asend_fee:0,winv_two_month:0,wpay_six_month:0});s.push(u,...f)}),p(s)})},tableRowClassName(e){if(e.row.depart==="\u603B\u8BA1")return"warning-row"},superUserNoAction:!1,apis:{httpList:k.list}};function i(e){return e==="NaN"||Number(e)===0?"0":e<1e3&&e>0||e<0&&e>-1e3?e:V(e,1e4).toFixed(2)+"W"}const L=[{label:"\u4E1A\u52A1\u516C\u53F8",prop:"depart",cellRenderer({row:e}){return e.depart.indexOf("@")===-1?e.depart:e.depart.split("@")[1]}},{label:"\u5E73\u53F0\u516C\u53F8",prop:"companyName",width:" 140px"},{label:"\u5E94\u6536\u8D26\u6B3E",prop:"wpay_fee",controller:!0,cellRenderer({row:e}){return i(e.wpay_fee)}},{label:"\u5DF2\u5F00\u7968",prop:"ainv_fee",controller:!0,cellRenderer({row:e}){return i(e.ainv_fee)}},{label:"\u5DF2\u56DE\u6B3E",prop:"apay_fee",controller:!0,cellRenderer({row:e}){return i(e.apay_fee)}},{label:"\u5DF2\u5F00\u7968-\u5DF2\u56DE\u6B3E",prop:"ainv_apay_fee",controller:!0,cellRenderer({row:e}){return i(e.ainv_apay_fee)}},{label:"\u672A\u5F00\u7968",prop:"winv_fee",controller:!0,cellRenderer({row:e}){return i(e.winv_fee)}},{label:"\u5F85\u5F00\u7968",prop:"inv_fee",controller:!0,cellRenderer({row:e}){return i(e.inv_fee)}},{label:"\u5DF2\u53D1\u8D27\u672A\u5F00\u7968",prop:"winv_asend_fee",controller:!0,cellRenderer({row:e}){return i(e.winv_asend_fee)}},{label:"\u672A\u53D1\u8D27",prop:"wpay_send_fee",controller:!0,cellRenderer({row:e}){return i(e.wpay_send_fee)}},{label:"\u8D8560\u5929\u5DF2\u53D1\u8D27\u672A\u5F00\u7968",prop:"winv_two_month",controller:!0,cellRenderer({row:e}){return i(e.winv_two_month)}},{label:"\u8D85180\u5929\u5E94\u6536\u8D26\u6B3E",prop:"wpay_six_month",controller:!0,cellRenderer({row:e}){return i(e.wpay_six_month)}}],Y={columns:L,responseCode:0,root:!0,handleData(e=[]){const s=[];return new Promise(p=>{e.map(f=>{const u=f.reduce((a,n)=>({depart:"\u603B\u8BA1",companyName:n.companyName,wpay_fee:Number(t(n.wpay_fee,a.wpay_fee)).toFixed(2),wpay_ainv_fee:Number(t(n.wpay_ainv_fee,a.wpay_ainv_fee)).toFixed(2),ainv_fee:Number(t(n.ainv_fee,a.ainv_fee)).toFixed(2),apay_fee:Number(t(n.apay_fee,a.apay_fee)).toFixed(2),ainv_apay_fee:Number(t(n.ainv_apay_fee,a.ainv_apay_fee)).toFixed(2),wpay_send_fee:Number(t(n.wpay_send_fee,a.wpay_send_fee)).toFixed(2),winv_fee:Number(t(n.winv_fee,a.winv_fee)).toFixed(2),inv_fee:Number(t(n.inv_fee,a.inv_fee)).toFixed(2),winv_asend_fee:Number(t(n.winv_asend_fee,a.winv_asend_fee)).toFixed(2),winv_two_month:Number(t(n.winv_two_month,a.winv_two_month)).toFixed(2),wpay_six_month:Number(t(n.wpay_six_month,a.wpay_six_month)).toFixed(2)}),{depart:"",companyName:"",wpay_fee:0,wpay_ainv_fee:0,ainv_fee:0,apay_fee:0,ainv_apay_fee:0,wpay_send_fee:0,winv_fee:0,inv_fee:0,winv_asend_fee:0,winv_two_month:0,wpay_six_month:0});s.push(u,...f)}),p(s)})},tableRowClassName(e){if(e.row.depart==="\u603B\u8BA1")return"warning-row"},superUserNoAction:!1,apis:{httpList:k.list}},D="receivableWanyu",G=P({__name:"detail",setup(e){const{hasPermissionWithCode:s}=I(D),p=A(null),f=$(),u=T(1),a=U(()=>u.value===1?Y:B);async function n(){const d=p.value.getData();z({columns:Y.columns,name:"\u4E07\u5B87\u5E94\u6536(\u4E1A\u52A1\u516C\u53F8).xlsx",data:d})}const E={pageSearchHook:()=>j(d=>{const{date:o,...r}=d,m=c(o).format("YYYY-MM-DD"),y=c(o).daysInMonth(),_=c(m).subtract(-(y-1),"days").format("YYYY-MM-DD");return{result:{start:m+" 00:00:00",end:_+" 23:59:59",plat_type:"1",dz_type:"2",...r},deleteProps:["date"]}},d=>{const{date:o,depart_id:r}=d,m=c(o).format("YYYY-MM-DD"),y=c(o).daysInMonth(),_=c(m).subtract(-(y-1),"days").format("YYYY-MM-DD");return{result:{start:m+" 00:00:00",end:_+" 23:59:59",plat_type:"1",dz_type:"2",depart_id:r},deleteProps:["date"]}},R)},M=A(R);return W(()=>f.level,d=>{const{formItems:o}=M.value;o.findIndex(({field:r})=>r==="depart_id"),f.info},{immediate:!0}),(d,o)=>{const r=N("el-button"),m=N("page-container"),y=N("page-auth");return F(),b(y,{"page-name":D},{default:l(()=>[u.value===0?(F(),b(m,{key:0,hooks:E,"page-name":D,"get-content-ref":_=>p.value=_,"content-config":h(B)},{content_header:l(()=>[x(r,{onClick:o[0]||(o[0]=_=>u.value=u.value===1?0:1)},{default:l(()=>[w(g(u.value===1?"\u663E\u793A\u5177\u4F53\u91D1\u989D":"\u663E\u793A\u4E07\u5143\u4EE5\u4E0A"),1)]),_:1}),x(r,{onClick:o[1]||(o[1]=_=>{var v;return(v=p.value)==null?void 0:v.onSearch()})},{default:l(()=>[w("\u5237\u65B0")]),_:1}),h(s)("9")?(F(),b(r,{key:0,type:"primary",onClick:n},{default:l(()=>[w("\u5BFC\u51FA")]),_:1})):C("v-if",!0)]),_:1},8,["get-content-ref","content-config"])):(F(),b(m,{key:1,hooks:E,"page-name":D,"get-content-ref":_=>p.value=_,"content-config":a.value},{content_header:l(()=>[x(r,{onClick:o[2]||(o[2]=_=>u.value=u.value===1?0:1)},{default:l(()=>[w(g(u.value===1?"\u663E\u793A\u5177\u4F53\u91D1\u989D":"\u663E\u793A\u4E07\u5143\u4EE5\u4E0A"),1)]),_:1}),x(r,{onClick:o[3]||(o[3]=_=>{var v;return(v=p.value)==null?void 0:v.onSearch()})},{default:l(()=>[w("\u5237\u65B0")]),_:1}),h(s)("9")?(F(),b(r,{key:0,type:"primary",onClick:n},{default:l(()=>[w("\u5BFC\u51FA")]),_:1})):C("v-if",!0)]),_:1},8,["get-content-ref","content-config"]))]),_:1})}}});var ee=S(G,[["__file","C:/Users/89793/Desktop/projects/report-v3/src/views/time/receivableWanyu/components/detail.vue"]]);export{ee as default};
|