2 lines
7.5 KiB
JavaScript
2 lines
7.5 KiB
JavaScript
|
import{_ as e}from"./index.CBNqQO86.js";import{bI as t,ag as a,bX as o,D as l,b6 as r,be as n,c as s,e as p,N as i,w as c,l as d,n as u,t as _,al as m,O as h,E as g,an as b,g as v,bN as w,bu as y,b0 as f}from"./index.DG1b0LNd.js";import j from"./taobao-order-operate-template.VPAAi4lg.js";import F from"./order-taobao-top-info.B4fbEPuE.js";import{p as S,q as C}from"./account.DbwhDcZV.js";import{d as k,e as x,g as N,f as T,h as D}from"./commonOptions.CGtEh-7_.js";import"./el-col.Cwn-ee09.js";import"./el-card.DmulmdFb.js";import"./el-tab-pane.DWDl6xpK.js";import"./service.BrcuK4-C.js";import"./dropdown.Dvepra3S.js";import"./deposit.sn6J1HeO.js";import"./merchant.BKx6lhNu.js";const E={key:0},A={key:1},z={__name:"order-taobao-list",props:{channel_id:{type:[Number,String],default:""}},setup(z){const{copy:I}=t({legacy:!0});let O=[],R=[],U=[],q=[],B=[];const G=z,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:q},{label:"通知状态",type:"select",prop:"notify_status",value:"",options:B},{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});l(()=>G.channel_id,e=>{const t=K.searchFields.findIndex(e=>"channel_name"==e.prop);-1!==t&&(K.searchFields[t].value=e)},{immediate:!0});const P=e=>{K.seletedCloums=e},X=()=>{f.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(()=>{y.success("批量补发通知成功"),M(),K.loading=!1}).catch(()=>{K.loading=!1})})},H=e=>{I(e).then
|