2 lines
7.3 KiB
JavaScript
2 lines
7.3 KiB
JavaScript
|
import{_ as e}from"./index.CVahJ6cj.js";import{bI as t,ag as a,bX as o,b6 as l,be as r,c as n,e as s,N as p,w as i,l as c,n as d,t as u,al as _,O as m,E as h,an as g,g as b,bN as v,bu as w,b0 as y}from"./index.C53BMGYI.js";import f from"./taobao-order-operate-template.B107RJIy.js";import j from"./order-taobao-top-info.BswN-MtB.js";import{n as S,p as C}from"./account.zSZ61CCV.js";import{d as k,e as F,g as N,f as x,h as T}from"./commonOptions.CnCt112W.js";import"./el-col.D5ewE1tG.js";import"./el-card.BxB-_Vhw.js";import"./el-tab-pane.qOCb9Cvn.js";import"./service.DTLCfyTT.js";import"./dropdown.Ccm8TwA1.js";import"./deposit.DGXJEymT.js";import"./merchant.CYPj_gFF.js";const D={key:0},E={key:1},A={__name:"order-taobao-list",props:{channel_id:{type:[Number,String],default:""}},setup(A){const{copy:z}=t({legacy:!0});let O=[],R=[],U=[],B=[],G=[];const I=A,K=a({seletedCloums:[],columns:[{prop:"channel",label:"通道名称",width:100,align:"center",slot:"channelNameSolt"},{prop:"taobao_id",label:"淘宝单号",width:260,align:"center"},{prop:"recharge_account",label:"充值账号",align:"center"},{prop:"order_no",label:"系统单号/商户单号",width:320,align:"center",slot:"order_no_slot"},{prop:"merchant",label:"商户名称",width:100,align:"center",slot:"merchantNameSolt"},{prop:"service",label:"服务商名称",width:100,align:"center",slot:"serviceNameSolt"},{prop:"product_name",label:"商品名称",width:100,align:"center"},{prop:"order_amount",label:"订单金额",width:90,align:"center"},{prop:"actual_amount",label:"实收金额",width:90,align:"center"},{prop:"status",label:"订单状态",width:100,align:"center",slot:"status_slot"},{prop:"notify_status",label:"通知状态",width:100,align:"center",slot:"notify_status_slot"},{prop:"created_at",label:"下单时间",width:150,align:"center"},{prop:"completed_at",label:"完成时间",width:150,align:"center"},{prop:"notify_time",label:"通知时间",width:150,align:"center"},{prop:"remark",label:"备注",width:100,align:"center"},{prop:"merchant_fee",label:"商户手续费",width:100,align:"center"},{prop:"merchant_actual",label:"商户实收",width:90,align:"center"},{prop:"shop",label:"收款店铺",width:100,align:"center",slot:"shop_name_slot"},{prop:"recharge_account_remark",label:"收款账号备注",width:120,align:"center"},{prop:"service",label:"上级服务商",width:100,align:"center",slot:"parent_service_name_slot"},{prop:"user_ip",label:"用户IP",width:100,align:"center"},{prop:"payment_link",label:"付款链接",width:100,align:"center"},{prop:"operate",label:"操作",width:440,align:"center",slot:"operate",fixed:"right"}],tableData:[],searchFields:[{label:"通道名称",type:"select",prop:"channel_name",value:"",options:O},{label:"商户名称",type:"select",prop:"merchant_id",value:"",options:R},{label:"服务商名称",type:"select",prop:"service_id",value:"",options:U},{prop:"created_at",label:"下单时间",type:"date",dateType:"datetimerange",value:o()},{prop:"completed_at",label:"完成时间",type:"date",dateType:"datetimerange",value:[]},{label:"订单状态",type:"select",prop:"status",value:"",options:B},{label:"通知状态",type:"select",prop:"notify_status",value:"",options:G},{label:"系统单号",prop:"order_no",type:"input",value:""},{label:"商户单号",prop:"merchant_order_no",type:"input",value:""},{label:"淘宝单号",prop:"taobao_id",type:"input",value:""},{label:"商品名称",prop:"product_name",type:"input",value:""},{label:"充值账号",prop:"recharge_account",type:"input",value:""}],total:0,page:1,per_page:10,loading:!1}),q=e=>{K.seletedCloums=e},P=()=>{y.confirm("是否确认批量补发通知?","系统提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{K.loading=!0;const e=K.seletedCloums.map(e=>e.id).filter(e=>void 0!==e);C({id:e}).then(()=>{w.success("批量补发通知成功"),L(),K.loading=!1}).catch(()=>{K.loading=!1})})},X=e=>{z(e).then(()=>{w.success("复制成功")})},H=(e,t)=>{let a="";return(1==t?B:G).some(t=>{if(t.value==e)return a=t.label,!0}),a},J=()=>{K.searchFields.forEach(
|