2025-08-12 17:35:56 +08:00
|
|
|
import{_ as e}from"./index.BIdAWoPq.js";import{bt as a,ag as l,b4 as t,aZ as o,c as r,e as s,N as p,w as i,m as n,al as c,an as d,O as u,E as _,t as g,g as h,bB as m,l as y,aO as b}from"./index.CgRhte5Z.js";import{E as f}from"./el-text.CoVJHjsP.js";import{b as w}from"./payee-order.0OA-J8om.js";import{s as k}from"./staticData.8wZxkmL4.js";import{g as D,a as v}from"./payee-channel.DnoeBrkm.js";import x from"./viewdetail.DyjX_JF4.js";import C from"./callbacklog.Z2k72Xg3.js";/* empty css */import"./el-col.BAwB3vyn.js";const R={class:"statistics-box"},j={key:0},z={key:1},F={__name:"all-order",setup(F){const{copy:E}=a({legacy:!0});let L=[],T=[];const U=l({columns:[{prop:"id",label:"ID",align:"center",width:"80px"},{prop:"order_no",label:"系统订单号",align:"center",width:"220px"},{prop:"shop_order_no",label:"下游订单号",align:"center",width:"220px"},{prop:"shop_id",label:"商户编码",align:"center",width:"120px"},{prop:"shop_name",label:"商户名称",align:"center"},{prop:"pay_name",label:"支付通道",align:"center"},{prop:"fee",label:"手续费",align:"center",width:"120px"},{prop:"money",label:"交易金额",align:"center",width:"120px"},{prop:"expire_time",label:"状态",align:"center",width:"160px",slot:"status_slot",tooltip:!1},{prop:"create_time",label:"提交时间",align:"center"},{prop:"succ_time ",label:"成功时间",align:"center"},{prop:"supplier_name",label:"供应商",align:"center"},{prop:"api_name",label:"入金渠道",align:"center",width:"120px"},{prop:"pay_money",label:"实际金额",align:"center",width:"120px"},{prop:"three_fee",label:"成本",align:"center",width:"120px"},{prop:"remark",label:"备注",align:"center"},{prop:"operate",label:"状态",align:"center",slot:"operate_slot",fixed:"right",width:"240px",tooltip:!1}],tableData:[],searchFields:[{label:"商户编码/商户名称",prop:"shop_id",type:"input",labelWidth:"120px",value:""},{label:"系统订单号",prop:"order_no",type:"input",value:""},{label:"下游订单号订单号",prop:"shop_order_no",type:"input",value:""},{prop:"created_time",label:"提交时间",type:"date",dateType:"datetimerange",startPlaceholder:"提交起始时间",endPlaceholder:"提交结束时间",value:[]},{prop:"succ_time",label:"成功时间",type:"date",dateType:"datetimerange",startPlaceholder:"成功起始时间",endPlaceholder:"成功结束时间",value:[]},{label:"支付通道",type:"select",prop:"pay_id",value:"",options:L},{label:"入金渠道",type:"select",prop:"api_id",value:"",options:T},{label:"状态",type:"select",prop:"status",value:"",options:k.orderStatus},{label:"最大金额",prop:"max_amount",type:"input",value:""},{label:"最小金额",prop:"min_amount",type:"input",value:""}],total:0,page:1,per_page:10,loading:!1,showDetailDialog:!1,currentRow:{},showCallbackLogDialog:!1}),P=e=>{E(e).then(()=>{b.success("复制成功")})},S=()=>{U.searchFields.forEach(e=>{"datetimerange"==e.dateType?e.value=[]:e.value=""}),O()};t(async()=>{let e=await D({saiType:"all"}),a=await v({saiType:"all"});L=e.map(e=>({label:e.name,value:e.id})),T=a.map(e=>({label:e.name,value:e.id})),U.searchFields.forEach(e=>{"api_id"==e.prop&&(e.options=L),"pay_id"==e.prop&&(e.options=T)}),O()});const O=()=>{U.loading=!0;let e={limit:U.per_page,page:U.page},a=function(e){const a={};return e.forEach(e=>{e.prop&&void 0!==e.value&&(a[e.prop]=e.value)}),a}(U.searchFields);w(Object.assign(e,a)).then(e=>{U.tableData=e.data,U.total=e.total,U.loading=!1}).catch(()=>{U.loading=!1})},B=()=>{},G=e=>{switch(e){case 0:case 1:return"danger";case 2:return"primary";case 3:return"success";default:return"warning"}};return(a,l)=>{const t=d,b=m,w=f,D=o("DocumentCopy"),v=_,F=e;return s(),r("div",null,[p(F,{type:"export",columns:h(U).columns,searchFields:h(U).searchFields,"onUpdate:searchFields":l[0]||(l[0]=e=>h(U).searchFields=e),data:h(U).tableData,per_page:h(U).per_page,"onUpdate:per_page":l[1]||(l[1]=e=>h(U).per_page=e),page:h(U).page,"onUpdate:page":l[2]||(l[2]=e=>h(U).page=e),total:h(U).total,onGetTableData:O,onResetForm:S,loading:h(U).loading,showSelection:!1,showR
|