sf_web_dist/js/all-order.BRHO3XSt.js

2 lines
7.9 KiB
JavaScript
Raw Normal View History

2025-08-20 17:14:45 +08:00
import{_ as e}from"./index.C_fhKCQj.js";import{bs as a,ag as t,b4 as l,aZ as o,c as s,e as r,N as i,O as p,w as n,m as d,al as c,an as u,E as _,t as g,g as h,bB as m,l as f,aO as w}from"./index.D_vjI327.js";import{E as y}from"./el-text.DklPqZMJ.js";import{b}from"./payee-order.C0VJmosr.js";import{s as D}from"./staticData.8wZxkmL4.js";import{g as k,a as v}from"./payee-channel.BNWBEWrB.js";import x from"./viewdetail.B_7WvRHU.js";import C from"./callbacklog.9pkRL_gE.js";import O from"./orderset.2PmpSpQa.js";import R from"./testOrder.CbtD5dy7.js";/* empty css */import"./el-col.kFcZ-o3R.js";const j={class:"statistics-box"},T={key:0},z={key:1},F={__name:"all-order",setup(F,{expose:S}){const{copy:L}=a({legacy:!0});let U=[],E=[];const P=t({columns:[{prop:"id",label:"ID",align:"left",width:"80px"},{prop:"order_no",label:"系统订单号",align:"left",width:"210px"},{prop:"shop_order_no",label:"下游订单号",align:"left",width:"160px"},{prop:"shop_id",label:"商户编码",align:"left",width:"100px"},{prop:"shop_name",label:"商户名称",align:"left"},{prop:"pay_name",label:"支付通道",align:"left"},{prop:"fee",label:"手续费",align:"left",width:"120px"},{prop:"money",label:"交易金额",align:"left",width:"120px"},{prop:"expire_time",label:"状态",align:"left",width:"160px",slot:"status_slot",tooltip:!1},{prop:"create_time",label:"提交时间",align:"left"},{prop:"succ_time",label:"成功时间",align:"left"},{prop:"supplier_name",label:"供应商",align:"left"},{prop:"api_name",label:"入金渠道",align:"left",width:"120px"},{prop:"pay_money",label:"实际金额",align:"left",width:"120px"},{prop:"three_fee",label:"成本",align:"left",width:"120px"},{prop:"remark",label:"备注",align:"left"},{prop:"operate",label:"状态",align:"left",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:"create_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:U},{label:"入金渠道",type:"select",prop:"api_id",value:"",options:E},{label:"状态",type:"select",prop:"status",value:"",options:D.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,showOrderSetDialog:!1,showOrderTestDialog:!1}),W=e=>{L(e).then(()=>{w.success("复制成功")})},Z=()=>{P.searchFields.forEach(e=>{"datetimerange"==e.dateType?e.value=[]:e.value=""}),B()};l(async()=>{let e=await k({saiType:"all"}),a=await v({saiType:"all"});U=e.map(e=>({label:e.name,value:e.id})),E=a.map(e=>({label:e.name,value:e.id})),P.searchFields.forEach(e=>{"api_id"==e.prop&&(e.options=U),"pay_id"==e.prop&&(e.options=E)}),B()});const B=()=>{P.loading=!0;let e={limit:P.per_page,page:P.page},a=function(e){const a={};return e.forEach(e=>{e.prop&&void 0!==e.value&&(a[e.prop]=e.value)}),a}(P.searchFields);5!=a.status&&4!=a.status||(a.is_test=5==a.status?1:"",a.is_repay=4==a.status?1:"",delete a.status),a.money_range=[a.min_amount,a.max_amount],b(Object.assign(e,a)).then(e=>{P.tableData=e.data,P.total=e.total,P.loading=!1}).catch(()=>{P.loading=!1})},G=()=>{},I=e=>{switch(e){case 0:case 2:return"warning";case 1:return"danger";case 3:return"success";default:return"info"}};return S({getWarningOrderList:()=>{P.page=1,P.searchFields.forEach(e=>{"status"==e.prop&&(e.value=2)})}}),(a,t)=>{const l=u,w=m,b=y,k=o("DocumentCopy"),v=_,F=e;return r(),s("div",null,[i(F,{type:"export",columns:h(P).columns,search