2 lines
13 KiB
JavaScript
2 lines
13 KiB
JavaScript
import{b2 as e,bt as l,ag as a,bT as t,bm as i,aZ as n,c as s,e as d,N as o,w as r,l as u,O as c,E as v,t as p,g as m,n as _,al as f,R as b,bO as y,bR as h,aO as g}from"./index.1758705418851CdmBKQ2N.js";import{E as I}from"./el-drawer.1758705418851grrOG4WF.js";import{E as w}from"./el-popover.1758705418851CelAJetR.js";import{_ as k}from"./index.1758705418851Z_vhPJoE.js";import{b as $,f as P,i as C,e as L}from"./order.1758705418851C5vD8YNC.js";import"./dropdown.1758705418851DIEsEXzG.js";/* empty css */import"./el-col.1758705418851Bs1zq0om.js";const F={key:0},j={key:0},O={key:0},S={class:"cell-btn cl-3"},T={class:"cell-btn cl-3"},x={class:"check"},D=["src"],E={class:"operate"},z=["onClick"],N={class:"tab-content","element-loading-background":"rgba(122, 122, 122, 0.8)"},U={class:"item"},R={class:"item"},V={class:"item"},Z={class:"item"},q={class:"item"},G={class:"btn"},A={key:0,class:"red"},B={class:"item"},H={key:0},J={class:"item"},K={class:"item"},M={class:"btn"},Q={class:"green"},W={class:"item"},X={class:"btn"},Y={class:"item"},ee={class:"btn"},le={class:"item"},ae={class:"btn"},te={class:"item"},ie={class:"blue"},ne={class:"item"},se={key:0,class:"red"},de={key:0,class:"item"},oe={class:"blue"},re={key:1,class:"item"},ue={class:"blue"},ce={class:"item"},ve={key:0,class:"blue"},pe={class:"item"},me={class:"item"},_e={class:"item"},fe={class:"item"},be={class:"item"},ye={class:"item"},he={class:"item"},ge={class:"item"},Ie=e({__name:"pay-order-workinig",setup(e){const{copy:Ie}=l({legacy:!0}),we=e=>{Ie(e).then(()=>{g.success("复制成功")})};function ke(e){return h(1e3*e)}const $e=e=>`${Number(e).toFixed(2)}`,Pe=(e,l)=>{let a="";return e.forEach(e=>{e.value==l&&(a=e.label)}),a},Ce=a({columns:[{prop:"id",label:"编号",width:60,align:"center"},{prop:"order_sn",label:"系统订单号",width:160,slot:"order_sn"},{prop:"mer_order_sn",label:"商户订单号",slot:"mer_order_sn",width:160},{prop:"mer_name",label:"商户账号",width:120,align:"center",slot:"mer_name"},{prop:"ms_name",label:"代理账号",width:120,align:"center",slot:"ms_name"},{prop:"pay_channel_id",label:"通道",width:120,align:"center",slot:"pay_channel_id"},{prop:"payment_info",label:"付款信息",width:180,align:"center"},{prop:"pass",label:"验证码",width:120,align:"center"},{prop:"sk_info",label:"收款信息",width:180,align:"center"},{prop:"amount",label:"订单金额",width:100,align:"center",formatter:$e},{prop:"real_pay_amount",label:"实到金额",width:100,align:"center",formatter:$e},{prop:"rate",label:"分佣费率",width:100,align:"center"},{prop:"ms_profit",label:"代理分佣",width:100,align:"center",formatter:$e},{prop:"return_status",label:"通知状态",width:120,align:"center",slot:"return_status"},{prop:"ip",label:"访问IP",width:160,align:"center"},{prop:"create_time",label:"创建时间",width:180,align:"center",formatter:ke},{prop:"viewing_time",label:"查看时间",width:180,align:"center",formatter:ke},{prop:"operate",label:"操作",width:80,slot:"operate",align:"center",fixed:"right"}],tableData:[],searchFields:[{label:"系统订单号",type:"input",prop:"order_sn",value:""},{prop:"mer_order_sn",label:"商户订单号",type:"input",value:""},{prop:"mer_id",label:"商户号",type:"input",value:""},{prop:"mer_name",label:"商户账号",type:"input",value:""},{prop:"ms_id",label:"代理ID",type:"input",value:""},{prop:"ms_name",label:"代理账号",type:"input",value:""},{prop:"real_pay_amount",label:"实付金额",type:"input",value:""},{prop:"pay_channel_id",label:"通道",type:"select",value:"",options:[]},{prop:"pass",label:"验证码",type:"input",value:""},{prop:"payee_info_name",label:"收款码名称",type:"input",value:""},{prop:"return_status",label:"通知回调状态",type:"select",value:"",options:[]},{prop:"ip",label:"访问IP",type:"input",value:""},{prop:"create_time",label:"创建时间",type:"date",dateType:"datetimerange",value:t()}],total:0,page:1,limit:10,amount:0,loading:!1,channelList:[],orderStatusList:[],orderCallbackStatusList:[],drawer:!1,detailInfo:{},detailLoading:!1}),Le=()=>{Ce.searchFields.forEach(e=>{"datetimerange"==e.dateType?e.value=t():e.value=""}),Oe()};i(()=>{Oe(),Fe(),je()});const Fe=()=>{P({}).then(e=>{let l=e.map(e=>({id:e.id,label:e.channel_name,value:e.id}));Ce.searchFields[7].options=l,Ce.channelList=l})},je=()=>{C({}).then(e=>{Ce.orderStatusList=Object.keys(e.order_status).map(l=>({label:e.order_status[l],value:l})),Ce.searchFields[11].options=Ce.orderStatusList,Ce.orderCallbackStatusList=Object.keys(e.order_callback_status).map(l=>({label:e.order_callback_status[l],value:l})),Ce.searchFields[10].options=Ce.orderCallbackStatusList})};const Oe=()=>{var e,l,a,t,i;Ce.loading=!0;let n={limit:Ce.limit,page:Ce.page},s=function(e){const l={};return e.forEach(e=>{e.prop&&void 0!==e.value&&(l[e.prop]=e.value)}),l}(Ce.searchFields);(null==(e=s.create_time)?void 0:e.length)>0&&(s.create_time_start=(null==(l=s.create_time[0])?void 0:l.getTime())?(null==(a=s.create_time[0])?void 0:a.getTime())/1e3:"",s.create_time_end=(null==(t=s.create_time[1])?void 0:t.getTime())?(null==(i=s.create_time[1])?void 0:i.getTime())/1e3:""),L(Object.assign(n,s)).then(e=>{Ce.tableData=e.list,Ce.total=e.count,Ce.loading=!1}).catch(()=>{Ce.loading=!1})};return(e,l)=>{const a=n("DocumentCopy"),t=v,i=w,h=n("InfoFilled"),g=I,P=y;return d(),s("div",null,[o(k,{type:"pay-order",columns:m(Ce).columns,searchFields:m(Ce).searchFields,"onUpdate:searchFields":l[0]||(l[0]=e=>m(Ce).searchFields=e),data:m(Ce).tableData,limit:m(Ce).limit,"onUpdate:limit":l[1]||(l[1]=e=>m(Ce).limit=e),page:m(Ce).page,"onUpdate:page":l[2]||(l[2]=e=>m(Ce).page=e),total:m(Ce).total,onGetTableData:Oe,onResetForm:Le,loading:m(Ce).loading},{mer_name:r(({row:e})=>{var l,a;return[c(p(`[${null==(l=e.merchant)?void 0:l.id}]${null==(a=e.merchant)?void 0:a.mer_name}`),1)]}),pay_channel_id:r(({row:e})=>{var l,a;return[c(p(`[${null==(l=e.payChannel)?void 0:l.id}]${null==(a=e.payChannel)?void 0:a.channel_name}`),1)]}),ms_name:r(({row:e})=>{var l,a;return[e.ms?(d(),s("div",F,p(`[${null==(l=e.ms)?void 0:l.id}]${null==(a=e.ms)?void 0:a.ms_name}`),1)):f("",!0)]}),order_sn:r(({row:e})=>[e.order_sn?(d(),s("div",j,[o(t,{onClick:l=>we(e.order_sn),size:16,color:"#5f80c7"},{default:r(()=>[o(a)]),_:2},1032,["onClick"]),c(" "+p(`${e.order_sn}`),1)])):f("",!0)]),mer_order_sn:r(({row:e})=>[e.mer_order_sn?(d(),s("div",O,[o(t,{onClick:l=>we(e.mer_order_sn),size:16,color:"#5f80c7"},{default:r(()=>[o(a)]),_:2},1032,["onClick"]),c(" "+p(`${e.mer_order_sn}`),1)])):f("",!0)]),status:r(({row:e})=>[u("div",S,[u("div",{class:_(1==e.status?"blue":2==e.status||999==e.status?"green":"red")},p(Pe(m(Ce).orderStatusList,e.status)),3)])]),return_status:r(({row:e})=>[u("div",T,[u("div",{class:_(1==e.return_status?"blue":2==e.return_status?"green":"red")},p(Pe(m(Ce).orderCallbackStatusList,e.return_status)),3)])]),msPayeeInfo:r(({row:e})=>{var a,t,n;return[c(p(`[${null==(a=e.msPayeeInfo)?void 0:a.id}]${null==(t=e.msPayeeInfo)?void 0:t.name}`)+" ",1),u("div",x,[o(i,{placement:"bottom",width:200,trigger:"click"},{reference:r(()=>l[4]||(l[4]=[c(" 查看二维码 ")])),_:1}),u("img",{src:m("/api")+(null==(n=e.msPayeeInfo)?void 0:n.qr_code),alt:""},null,8,D)])]}),payment_info:r(({row:e})=>{var l;return[c(p(`[${null==(l=e.orderPay)?void 0:l.id}]${e.payment_info}`),1)]}),operate:r(({row:e})=>[u("div",E,[u("div",{class:"blue",onClick:l=>{return a=e,Ce.detailInfo={},Ce.drawer=!0,Ce.detailLoading=!0,void $({order_id:a.id}).then(e=>{Ce.detailInfo=e,Ce.detailLoading=!1}).catch(()=>{Ce.detailLoading=!1});var a}},[o(t,null,{default:r(()=>[o(h)]),_:1}),l[5]||(l[5]=c("详情 "))],8,z)])]),_:1},8,["columns","searchFields","data","limit","page","total","loading"]),o(g,{modelValue:m(Ce).drawer,"onUpdate:modelValue":l[3]||(l[3]=e=>m(Ce).drawer=e),title:"订单详情",direction:"rtl"},{default:r(()=>{var e,a,t,i,n,o,r,v,y,h,g,I,w,k,$,C,L,F,j,O,S,T,x,D,E,z,Ie,we,Pe,Le,Fe,je,Oe,Se,Te,xe,De,Ee,ze,Ne,Ue,Re,Ve,Ze,qe,Ge,Ae,Be,He;return[b((d(),s("div",N,[u("div",U,[l[6]||(l[6]=u("div",{class:"title"},"系统订单号",-1)),u("div",null,p(null==(e=m(Ce).detailInfo)?void 0:e.order_sn),1)]),u("div",R,[l[7]||(l[7]=u("div",{class:"title"},"商户订单号",-1)),u("div",null,p(null==(a=m(Ce).detailInfo)?void 0:a.mer_order_sn),1)]),u("div",V,[l[8]||(l[8]=u("div",{class:"title"},"商户账号",-1)),u("div",null,p(`[${null==(t=m(Ce).detailInfo)?void 0:t.mer_id}]${null==(i=m(Ce).detailInfo)?void 0:i.mer_name}`),1)]),u("div",Z,[l[9]||(l[9]=u("div",{class:"title"},"代理账号",-1)),u("div",null,p(`[${null==(n=m(Ce).detailInfo)?void 0:n.ms_id}]${null==(o=m(Ce).detailInfo)?void 0:o.ms_name}`),1)]),u("div",q,[l[10]||(l[10]=u("div",{class:"title"},"通道名称",-1)),u("div",G,[(null==(r=m(Ce).detailInfo)?void 0:r.payChannel)?(d(),s("div",A,p(`[${null==(y=null==(v=m(Ce).detailInfo)?void 0:v.payChannel)?void 0:y.id}]${null==(g=null==(h=m(Ce).detailInfo)?void 0:h.payChannel)?void 0:g.channel_name}`),1)):f("",!0)])]),u("div",B,[l[11]||(l[11]=u("div",{class:"title"},"产品类型",-1)),u("div",null,[(null==(I=m(Ce).detailInfo)?void 0:I.payProduct)?(d(),s("div",H,p(`[${null==(k=null==(w=m(Ce).detailInfo)?void 0:w.payProduct)?void 0:k.id}]${null==(C=null==($=m(Ce).detailInfo)?void 0:$.payProduct)?void 0:C.pro_name}`),1)):f("",!0)])]),u("div",J,[l[12]||(l[12]=u("div",{class:"title"},"订单金额",-1)),u("div",null,p($e(null==(L=m(Ce).detailInfo)?void 0:L.amount)),1)]),u("div",K,[l[13]||(l[13]=u("div",{class:"title"},"实付金额",-1)),u("div",M,[u("div",Q,p($e(null==(F=m(Ce).detailInfo)?void 0:F.real_pay_amount)),1)])]),u("div",W,[l[14]||(l[14]=u("div",{class:"title"},"支付状态",-1)),u("div",X,[u("div",{class:_(1==(null==(j=m(Ce).detailInfo)?void 0:j.status)?"blue":2==(null==(O=m(Ce).detailInfo)?void 0:O.status)||999==(null==(S=m(Ce).detailInfo)?void 0:S.status)?"green":"red")},p(null==(T=m(Ce).detailInfo)?void 0:T.status_name),3)])]),u("div",Y,[l[15]||(l[15]=u("div",{class:"title"},"回调状态",-1)),u("div",ee,[u("div",{class:_(1==(null==(x=m(Ce).detailInfo)?void 0:x.return_status)?"blue":2==(null==(D=m(Ce).detailInfo)?void 0:D.return_status)?"green":"red")},p(null==(E=m(Ce).detailInfo)?void 0:E.return_status_name),3)])]),u("div",le,[l[16]||(l[16]=u("div",{class:"title"},"结算状态",-1)),u("div",ae,[u("div",{class:_(1==(null==(z=m(Ce).detailInfo)?void 0:z.is_settlement)?"green":"red")},p(1==(null==(Ie=m(Ce).detailInfo)?void 0:Ie.is_settlement)?"已结算":"未结算"),3)])]),u("div",te,[l[17]||(l[17]=u("div",{class:"title"},"提交信息",-1)),u("div",ie,p(null==(we=m(Ce).detailInfo)?void 0:we.payment_info),1)]),u("div",ne,[l[19]||(l[19]=u("div",{class:"title"},"收款码信息",-1)),u("div",null,[l[18]||(l[18]=c(" 收款码名称:")),(null==(Pe=m(Ce).detailInfo)?void 0:Pe.msPayeeInfo)?(d(),s("span",se,p(null==(Le=m(Ce).detailInfo)?void 0:Le.msPayeeInfo.name),1)):f("",!0)])]),m(Ce).detailInfo.hasOwnProperty("kzk_account_number")?(d(),s("div",de,[l[20]||(l[20]=u("div",{class:"title"},"卡卡账号",-1)),u("div",oe,p(null==(Fe=m(Ce).detailInfo)?void 0:Fe.kzk_account_number),1)])):f("",!0),m(Ce).detailInfo.hasOwnProperty("cnyNumber_account_number")?(d(),s("div",re,[l[21]||(l[21]=u("div",{class:"title"},"收款钱包账号",-1)),u("div",ue,p(null==(je=m(Ce).detailInfo)?void 0:je.cnyNumber_account_number),1)])):f("",!0),u("div",ce,[l[22]||(l[22]=u("div",{class:"title"},"收款手机号",-1)),u("div",null,[(null==(Se=null==(Oe=m(Ce).detailInfo)?void 0:Oe.msPayeeInfo)?void 0:Se.phone)?(d(),s("span",ve,p(null==(Te=m(Ce).detailInfo)?void 0:Te.msPayeeInfo.phone),1)):f("",!0)])]),u("div",pe,[l[23]||(l[23]=u("div",{class:"title"},"平台费用",-1)),u("div",null,p((null==(xe=m(Ce).detailInfo)?void 0:xe.plat_fee)?`${$e(null==(De=m(Ce).detailInfo)?void 0:De.plat_fee)}/${$e(null==(Ee=m(Ce).detailInfo)?void 0:Ee.plat_fee_rate)}%`:""),1)]),u("div",me,[l[24]||(l[24]=u("div",{class:"title"},"商户费用",-1)),u("div",null,p((null==(ze=m(Ce).detailInfo)?void 0:ze.mer_service_fee)?`${$e(null==(Ne=m(Ce).detailInfo)?void 0:Ne.mer_service_fee)}/${$e(null==(Ue=m(Ce).detailInfo)?void 0:Ue.mer_service_rate)}%`:""),1)]),u("div",_e,[l[25]||(l[25]=u("div",{class:"title"},"代理佣金",-1)),u("div",null,p((null==(Re=m(Ce).detailInfo)?void 0:Re.ms_profit)?`${$e(null==(Ve=m(Ce).detailInfo)?void 0:Ve.ms_profit)}/${null==(Ze=m(Ce).detailInfo)?void 0:Ze.rate}`:""),1)]),u("div",fe,[l[26]||(l[26]=u("div",{class:"title"},"下单时间",-1)),u("div",null,p(ke(null==(qe=m(Ce).detailInfo)?void 0:qe.create_time)),1)]),u("div",be,[l[27]||(l[27]=u("div",{class:"title"},"接单时间",-1)),u("div",null,p(ke(null==(Ge=m(Ce).detailInfo)?void 0:Ge.receive_time)),1)]),u("div",ye,[l[28]||(l[28]=u("div",{class:"title"},"支付时间",-1)),u("div",null,p(ke(null==(Ae=m(Ce).detailInfo)?void 0:Ae.success_time)),1)]),u("div",he,[l[29]||(l[29]=u("div",{class:"title"},"回调时间",-1)),u("div",null,p(ke(null==(Be=m(Ce).detailInfo)?void 0:Be.return_time)),1)]),u("div",ge,[l[30]||(l[30]=u("div",{class:"title"},"IP",-1)),u("div",null,p(null==(He=m(Ce).detailInfo)?void 0:He.create_order_ip),1)])])),[[P,m(Ce).detailLoading]])]}),_:1},8,["modelValue"])])}}},[["__scopeId","data-v-54ebd86e"]]);export{Ie as default};
|