2 lines
9.3 KiB
JavaScript
2 lines
9.3 KiB
JavaScript
|
import{_ as e}from"./index.17606090725985gYAagaP.js";import{b3 as a,bu as t,r as l,ag as o,de as s,b5 as r,dh as i,dF as p,a_ as d,c as n,e as c,N as u,w as _,m as g,al as m,an as h,O as f,E as w,t as y,l as b,$ as D,g as k,bD as x,aO as v}from"./index.1760609072598q9Sy2noV.js";import{E as O}from"./el-text.1760609072598TqgxdMdI.js";import{c as C,n as F}from"./payee-order.1760609072598CLyIInga.js";import{s as R}from"./staticData.1760609072598ieVX5Cz9.js";import Y from"./viewdetail.1760609072598kphAD75W.js";import z from"./callbacklog.1760609072598DF8hSVpy.js";import j from"./orderset.1760609072598CYB-tDGd.js";import T from"./testOrder.1760609072598JFo3V8I7.js";import{p as L}from"./common.1760609072598CCwWzMi9.js";/* empty css */import"./el-col.1760609072598DqRLSgPN.js";const S={class:"statistics-box"},E={class:"status-box"},H={key:0},M={key:1},U=a({__name:"all-order",setup(a,{expose:U}){const{copy:P}=t({legacy:!0});let A=[],I=[];const W=l(!1),q=l(!1),G=o({sum_data:[],columns:[{prop:"id",label:"ID",align:"left",width:"60px"},{prop:"order_no",label:"系统订单号",align:"left",width:"210px"},{prop:"shop_order_no",label:"下游订单号",align:"left",width:"260px"},{prop:"shop_id",label:"商户编码",align:"left",width:"90px"},{prop:"shop_name",label:"商户名称",align:"left",width:"90px"},{prop:"fee",label:"手续费",align:"left",width:"80px"},{prop:"pay_name",label:"支付通道",align:"left",width:"100px"},{prop:"money",label:"交易金额",align:"left",width:"90px"},{prop:"expire_time",label:"状态",align:"left",width:"124px",slot:"status_slot",tooltip:!1},{prop:"create_time",label:"提交时间",align:"left"},{prop:"succ_time",label:"成功时间",align:"left"},{prop:"supplier_name",label:"供应商",align:"left",width:"120px"},{prop:"api_name",label:"入金渠道",align:"left",width:"120px"},{prop:"pay_money",label:"实际金额",align:"left",width:"100px"},{prop:"three_fee",label:"成本",align:"left",width:"100px"},{prop:"remark",label:"备注",align:"left"},{prop:"operate",label:"状态",align:"left",slot:"operate_slot",fixed:"right",width:"200px",tooltip:!1}],tableData:[],searchFields:[{label:"商户编码/商户名称",prop:"shop_query",type:"input",labelWidth:"120px",value:""},{label:"系统订单号",prop:"order_no",type:"input",value:""},{label:"下游订单号订单号",prop:"shop_order_no",type:"input",value:""},{label:"最小金额",prop:"min_amount",type:"input",value:""},{prop:"create_time",label:"提交时间",type:"date",dateType:"datetimerange",startPlaceholder:"提交起始时间",endPlaceholder:"提交结束时间",value:[s().startOf("day").format("YYYY-MM-DD HH:mm:ss"),s().endOf("day").format("YYYY-MM-DD HH:mm:ss")]},{prop:"succ_time",label:"成功时间",type:"date",dateType:"datetimerange",startPlaceholder:"成功起始时间",endPlaceholder:"成功结束时间",value:[]},{label:"入金渠道",type:"select",prop:"api_id",value:"",options:I},{label:"支付通道",type:"select",prop:"pay_id",value:"",options:A},{label:"状态",type:"select",prop:"status",value:"",options:R.orderStatus},{label:"最大金额",prop:"max_amount",type:"input",value:""}],total:0,page:1,per_page:100,loading:!1,showDetailDialog:!1,currentRow:{},showCallbackLogDialog:!1,showOrderSetDialog:!1,showOrderTestDialog:!1}),N=e=>{P(e).then(()=>{v.success("复制成功")})},$=()=>{G.searchFields.forEach(e=>{"datetimerange"==e.dateType?e.value=[]:e.value=""}),B()};r(async()=>{let e=await i({saiType:"all"}),a=await p({saiType:"all"});A=e.map(e=>({label:e.name,value:e.id})),I=a.map(e=>({label:e.name,value:e.id})),G.searchFields.forEach(e=>{"api_id"==e.prop&&(e.options=A),"pay_id"==e.prop&&(e.options=I)}),B()});const B=()=>{G.searchFields.forEach(e=>{"create_time"!=e.prop||e.value||(e.value=[s().startOf("day").format("YYYY-MM-DD HH:mm:ss"),s().endOf("day").format("YYYY-MM-DD HH:mm:ss")])}),G.loading=!0;let e={limit:G.per_page,page:G.page},a=function(e){const a={};return e.forEach(e=>{e.prop&&void 0!==e.value&&(a[e.prop]=e.value)}),a}(G.searchFields);5!=a.status&&4!=a.status||(a.is_test=5==a.st
|