mer-tradescreen/yusi/assets/finance-pOJTCfwZ.js

6 lines
14 KiB
JavaScript

import{_ as V,a as Y,i as B,r as p,o as z,j as L,b as s,f as r,d as t,q as y,h as b,F,g as N,c as k,k as P,w as H,T as X,n as a,t as c,y as q,z as J}from"./index-WCpniRK8.js";import{_ as M}from"./TABBG-WY6uizpD.js";import{_ as O}from"./Bill-nxM5oQvl.js";import{x as U,y as S,z as W,A as K,B as Q,C as ee}from"./api-35LGPZsU.js";import"./axios-QLjAsgXu.js";const te="/yusi/assets/TC-V-mBZomo.png",C=w=>(q("data-v-c57eba8c"),w=w(),J(),w),ie={class:"box"},le={class:"img-cls"},ae=C(()=>t("img",{src:M,style:{width:"100%",height:"100%",position:"absolute"},alt:""},null,-1)),ne={class:"content"},ce={class:"btns"},oe={style:{display:"flex"}},se={style:{"margin-right":"0vw"}},de={key:0,style:{display:"flex",color:"white","justify-content":"flex-end","margin-right":"5vw",cursor:"pointer"}},re={key:0,class:"bill"},he={key:1,class:"table"},ue={key:0,class:"pop"},ge=C(()=>t("img",{src:te,alt:"",style:{width:"35vw",height:"40vh",position:"absolute",top:"50%",left:"50%",transform:"translate(-50%,-50%)"}},null,-1)),ve={class:"pop-content"},pe={class:"pop-content-head"},be={class:"gradient-text"},_e={style:{"font-size":"10px"}},xe={class:"pop-li"},ye={style:{margin:"0 .5vw"}},we={class:"price"},fe={style:{display:"flex","justify-content":"space-between"},class:"pop-li"},ke={style:{margin:"0 .5vw"}},me={class:"price",style:{color:"white"}},$e={class:"pop-li",style:{"margin-top":"3vh"}},Be={style:{margin:"0 2vw"}},Ce={class:"price"},De={class:"pop-li",style:{"margin-top":"3vh"}},Ee={style:{margin:"0 2vw"}},Ie={class:"price"},Ge={style:{display:"flex","justify-content":"space-between"},class:"pop-li"},Te={style:{margin:"0 .5vw"}},Ae={class:"price",style:{color:"white"}},Fe={style:{margin:"0 .5vw"}},Ne={class:"price",style:{color:"white"}},Se={style:{margin:"0 1vw"}},je={class:"price",style:{color:"white"}},Re={style:{display:"flex","justify-content":"space-between"},class:"pop-li"},Ze={style:{margin:"0 .5vw"}},Ve={class:"price",style:{color:"white"}},Ye={style:{margin:"0 .5vw"}},ze={class:"price",style:{color:"white"}},Le=C(()=>t("div",{style:{opacity:"0"}},[a(" 返回手续费 "),t("span",{style:{margin:"0 1vw"}},[t("span",{class:"price",style:{color:"white"}},"16.6"),a("元")]),t("span",null,"2笔")],-1)),Pe={class:"pop-li",style:{"margin-top":"3vh"}},He={class:"price"},Xe={__name:"finance",setup(w){const h=Y(),_=B(1),D=i=>{_.value=i,x(2,i)},E=p([{icon:"DD",text:"订单总金额收入",num:1245},{icon:"CZ",text:"退款支出金额",num:1245},{icon:"YJ",text:"佣金支出金额",num:1245},{icon:"PT",text:"平台手续费",num:1245},{icon:"CZ",text:"充值金额",num:1245},{icon:"CZXF",text:"充值消费金额",num:1245},{icon:"CS",text:"产生交易的商户数",num:1245},{icon:"YH",text:"优惠券",num:1245},{icon:"CS",text:"入口商户金额",num:1245},{icon:"YC",text:"云仓库佣金",num:1245},{icon:"XZ",text:"小组服务佣金",num:1245},{icon:"CY",text:"村佣金",num:1245},{icon:"ZY",text:"镇佣金",num:1245},{icon:"PT",text:"平台剩余手续费",num:1245}]);U({...h.area}).then(i=>{i.data.stat.forEach((e,l)=>{E[l].num=e.count})});const x=(i,e)=>{i==0&&(v.data.splice(0,v.data.length),W({...h.area,limit:50}).then(l=>{f(l.data.list)})),i==1&&(u.data.splice(0,u.data.length),K({...h.area,limit:50}).then(l=>{f(l.data.list)})),i==2&&(g.data.splice(0,g.data.length),S({...h.area,limit:50,type:e}).then(l=>{m=l.data.list,f(l.data.list)})),o.value=i,A()},j=i=>{i.columnIndex==10},I=i=>{if(i==0)return"银行卡";if(i==1)return"支付宝";if(i==2)return"微信";if(i==3)return"零钱"},G=i=>{if(i==-1)return"未通过";if(i==0)return"审核中";if(i==1)return"已提现"},f=i=>{i.reverse().forEach((e,l)=>{o.value==0&&(l%2==0?v.data.push([`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #02243D;'>${l+1}</div>`,`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #02243D;'>
<img src=${e.extract_pic} style='width:30px;height:30px'>
</div>`,`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #02243D;' >${e.real_name}</div>`,`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #02243D;'>${e.uid}</div>`,`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #02243D;'>${e.real_name}</div>`,`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #02243D;'>${e.extract_price}</div>`,`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #02243D;'>${I(e.extract_type)}</div>`,"<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #02243D;'>--</div>",`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #02243D;'>${e.bank_code}</div>`,`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #02243D;'>${G(e.status)}</div>`,`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #102B3E;'>${e.fail_msg||"--"}</div>`,`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #102B3E;'>${e.create_time||"--"}</div>`]):v.data.push([`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #102B3E;'>${e.uid}</div>`,`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #102B3E;'>
<img src=${e.extract_pic} style='width:30px;height:30px'>
</div>`,`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #102B3E;'>${e.real_name}</div>`,`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #102B3E;'>${e.uid}</div>`,`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #102B3E;'>${e.real_name}</div>`,`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #102B3E;'>${e.extract_price}</div>`,`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #102B3E;'>${I(e.extract_type)}</div>`,"<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #102B3E;'>--</div>",`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #102B3E;'>${e.bank_code}</div>`,`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #102B3E;'>${G(e.status)}</div>`,`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #102B3E;'>${e.fail_msg||"--"}</div>`,`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #102B3E;'>${e.create_time||"--"}</div>`])),o.value==1&&(l%2==0?u.data.push([`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #02243D;'>${e.uid}</div>`,`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #02243D;' >${e.nickname}</div>`,`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #02243D;'>${e.number}</div>`,`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #02243D;'>${e.title}</div>`,`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #02243D;'>${e.mark}</div>`,`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #02243D;'>${e.create_time}</div>`]):u.data.push([`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #102B3E;'>${e.uid}</div>`,`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #102B3E;'>${e.nickname}</div>`,`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #102B3E;'>${e.number}</div>`,`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #102B3E;'>${e.title}</div>`,`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #102B3E;'>${e.mark}</div>`,`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #102B3E;'>${e.create_time}</div>`])),o.value==2&&(l%2==0?g.data.push([`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #02243D;'>${l+1}</div>`,`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #02243D;' >${e.time}</div>`,`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #02243D;'>${e.income}</div>`,`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #02243D;'>${e.expend}</div>`,`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #02243D;'>${e.charge}</div>`,"<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #02243D;color:#59D7F3;cursor: pointer;'>详情</div>"]):g.data.push([`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #102B3E;'>${l+1}</div>`,`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #102B3E;'>${e.time}</div>`,`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #102B3E;'>${e.income}</div>`,`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #102B3E;'>${e.expend}</div>`,`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #102B3E;'>${e.charge}</div>`,"<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: #102B3E;color:#59D7F3;cursor: pointer;'>详情</div>"]))})},v=p({headerBGC:"linear-gradient(to right, #ff0000, #00ff00)",oddRowBGC:"",evenRowBGC:"",rowNum:20,columnWidth:[],header:[],data:[]}),u=p({headerBGC:"linear-gradient(to right, #ff0000, #00ff00)",oddRowBGC:"",evenRowBGC:"",rowNum:20,header:[],data:[]}),g=p({headerBGC:"linear-gradient(to right, #ff0000, #00ff00)",oddRowBGC:"",evenRowBGC:"",rowNum:20,header:[],data:[]}),o=B(0),T=p([v,u,g]),R=[["序号","二维码","用户信息","用户UID","户名","提现金额","提现方式","银行名称","账号","审核状态","拒绝原因","添加时间"],["会员ID","昵称","金额","明细类型","备注","创建时间"],["序号","日期","账期内收入","账期内支出","平台入账金额","操作"]],A=()=>{T[o.value].header.splice(0,9999),R[o.value].forEach(i=>{T[o.value].header.push(`<div style='width: 100%;text-align: center; height: 100%; color: aliceblue; background: linear-gradient(#002841, #007092);'>${i}</div>`)})};let m=[];const $=B(!1),n=p({}),Z=i=>{i.columnIndex==5&&(_.value==1&&Q({...h.area,date:m[i.rowIndex].time}).then(e=>{for(let l in e.data)n[l]=e.data[l]}),_.value==2&&ee({...h.area,date:m[i.rowIndex].time}).then(e=>{for(let l in e.data)n[l]=e.data[l]}),$.value=!0)};return z(()=>{x(0),A(),S({...h.area,limit:50}).then(i=>{f(i.data.list)})}),(i,e)=>{const l=L("dv-scroll-board");return s(),r("div",ie,[t("div",le,[ae,t("div",ne,[t("div",ce,[t("div",oe,[t("div",{class:y(["btn",o.value==0?"act-btn":""]),onClick:e[0]||(e[0]=d=>x(0))},"提现记录",2),t("div",{class:y(["btn",o.value==1?"act-btn":""]),onClick:e[1]||(e[1]=d=>x(1))},"资金记录",2),t("div",{class:y(["btn",o.value==2?"act-btn":""]),onClick:e[2]||(e[2]=d=>x(2,1))},"账单管理",2)]),t("div",se,[o.value==2?(s(),r("div",de,[t("div",{class:y(["manageBtn",{actmanageBtn:_.value==1}]),onClick:e[3]||(e[3]=d=>D(1))},"日账单 ",2),t("div",{class:y(["manageBtn",{actmanageBtn:_.value==2}]),onClick:e[4]||(e[4]=d=>D(2))},"月账单",2)])):b("",!0)])]),o.value==2?(s(),r("div",re,[(s(!0),r(F,null,N(E,(d,qe)=>(s(),k(O,{key:i.index,data:d},null,8,["data"]))),128))])):b("",!0),(s(),r("div",he,[o.value==0?(s(),k(l,{key:0,config:v,onClick:j,style:{width:"95vw",height:"78vh"}},null,8,["config"])):b("",!0),o.value==1&&u.data.length?(s(),k(l,{key:1,config:u,style:{width:"95vw",height:"78vh"}},null,8,["config"])):b("",!0),o.value==2&&g.data.length?(s(),k(l,{key:2,config:g,onClick:Z,style:{width:"95vw",height:"68vh"}},null,8,["config"])):b("",!0)])),P(X,null,{default:H(()=>[$.value?(s(),r("div",ue,[ge,t("div",ve,[t("div",pe,[t("span",be,[a("日账单 "),t("span",_e,c(n.date),1)]),t("span",{class:"off",onClick:e[5]||(e[5]=d=>$.value=!1)}," 关闭")]),t("div",xe,[a(" 订单收入总金额: "),t("span",ye,[t("span",we,c(n.income.number),1),a("元")]),t("span",null,c(n.income.count),1)]),t("div",fe,[(s(!0),r(F,null,N(n.income.data,d=>(s(),r("div",null,[a(c(d[0])+" ",1),t("span",ke,[t("span",me,c(d[1].slice(0,-1)),1),a("元")]),t("span",null,c(d[2]),1)]))),256))]),t("div",$e,[a(" 充值金额: "),t("span",Be,[t("span",Ce,c(n.bill.number),1),a("元")]),a(),t("span",null,c(n.bill.count),1)]),t("div",De,[a(" 支出总金额: "),t("span",Ee,[t("span",Ie,c(n.expend.number),1),a("元")]),a(),t("span",null,c(n.expend.count),1)]),t("div",Ge,[t("div",null,[a(" 应付商户金额 "),t("span",Te,[t("span",Ae,c(n.expend.data[0][1].slice(0,-1)),1),a("元")]),t("span",null,c(n.expend.data[0][2]),1)]),t("div",null,[a(" 佣金 "),t("span",Fe,[t("span",Ne,c(n.expend.data[1][1].slice(0,-1)),1),a("元")]),t("span",null,c(n.expend.data[1][2]),1)]),t("div",null,[a(" 返回手续费 "),t("span",Se,[t("span",je,c(n.expend.data[2][1].slice(0,-1)),1),a("元")]),t("span",null,c(n.expend.data[2][2]),1)])]),t("div",Re,[t("div",null,[a(" 优惠券补贴 "),t("span",Ze,[t("span",Ve,c(n.expend.data[3][1].slice(0,-1)),1),a("元")]),t("span",null,c(n.expend.data[3][2]),1)]),t("div",null,[a(" 会员优惠券补贴 "),t("span",Ye,[t("span",ze,c(n.expend.data[4][1].slice(0,-1)),1),a("元")]),t("span",null,c(n.expend.data[4][2]),1)]),Le]),t("div",Pe,[a(" 平台手续费收入总金额: "),t("span",He,c(n.charge.number),1),a(" 元 ")])])])):b("",!0)]),_:1})])])])}}},Ke=V(Xe,[["__scopeId","data-v-c57eba8c"]]);export{Ke as default};