2 lines
10 KiB
JavaScript
2 lines
10 KiB
JavaScript
|
import{b1 as e,aU as a,ag as t,D as l,r as o,b6 as p,bN as n,be as s,bW as i,c as d,e as r,N as c,bB as u,w as _,l as m,O as h,E as g,m as b,al as v,an as y,bd as f,t as w,g as k,R as F,bY as x,bZ as D,b0 as C,bu as q}from"./index.BG10Ectv.js";import{_ as T}from"./index.Dav7UILY.js";import{j,s as U,k as V,l as I,p as L}from"./service.DDCNBvvB.js";import{m as A,n as R,o as z}from"./commonOptions.CzpIGj8_.js";import"./el-col.DtmozZ-n.js";import"./deposit.DEOA2mQ7.js";import"./merchant.DpbzK-42.js";import"./account.DmuBvOWj.js";const B={class:"operate"},E={__name:"channel-taobao-shop-list",props:{channel_id:{type:[Number,String],default:""}},setup(E){const N=e(),O=a(),S=E,G=[{label:"禁用",value:0},{label:"正常",value:1}];let K=[],W=[],M=[];const P=t({columns:[],tableData:[],searchFields:[{label:"ID",prop:"id",type:"input",value:""},{label:"店铺唯一标识",prop:"shop_unique_code",type:"input",value:""},{label:"接单状态",type:"select",prop:"order_status",value:"",options:G},{label:"有效状态",type:"select",prop:"status",value:"",options:G},{prop:"created_at",label:"创建时间",type:"date",dateType:"datetimerange",value:[]},{prop:"updated_at",label:"更新时间",type:"date",dateType:"datetimerange",value:[]}],total:0,page:1,per_page:10,loading:!1,addForm:{title:"新增",fields:[{label:"淘宝登录账户",prop:"name",type:"input",value:""},{label:"店铺唯一标识",prop:"shop_unique_code",type:"input",value:""},{label:"店铺类型",prop:"shop_type",type:"select",options:M},{label:"页面",prop:"page",type:"select",options:W},{label:"协议类型",prop:"protocol_type",type:"select",options:K,value:""},{label:"备注",prop:"shop_remark",type:"input",value:""},{label:"token",prop:"token",type:"input",value:""},{label:"CK",prop:"cookie",type:"input",value:""},{label:"app链接",prop:"link",type:"password",value:"",htmlTxt:'<div style="color: #e6a23c;">跳转店铺首页这里要写</div><div style="color: #e6a23c;">格式:taobao://店铺特有地址,自己去淘宝看.tmall.com</div>'},{label:"每日收款笔数上限",prop:"daily_limit_count",type:"number",value:"",htmlTxt:'<span style="color: #e6a23c;">每日收款笔数上限(0不限)</span>'},{label:"每日收款金额上限",prop:"daily_limit_amount",type:"number",value:"",htmlTxt:'<span style="color: #e6a23c;">每日每日收款金额上限(0不限)</span>'}],rules:{shop_unique_code:[{required:!0,message:"请输入店铺唯一标识",trigger:"blur"}],page:[{required:!0,message:"请选择页面",trigger:"blur"}],shop_type:[{required:!0,message:"请选择店铺类型",trigger:"blur"}]},values:{shop_unique_code:"",link:"",shop_remark:"",token:"",cookie:"",page:0,shop_type:0,daily_limit_count:0,daily_limit_amount:0,channel_id:S.channel_id,protocol_type:3}},btnLoading:!1,showAddDialog:!1});l(()=>S.channel_id,e=>{P.columns=[{prop:"id",label:"ID",width:60,align:"center"},{prop:"service",label:"服务商名称",width:120,align:"center",slot:"service_name_slot"},{prop:"shop_type",label:"店铺类型",width:100,align:"center",slot:"shop_type_slot"},{prop:"shop_remark",label:"店铺备注",width:100,align:"center"},{prop:"name",label:"淘宝登录账户",width:120,align:"center"},{prop:"shop_unique_code",label:"店铺唯一标识",width:120,align:"center"},{prop:"total_count",label:"今日总笔数",width:100,align:"center"},{prop:"success_count",label:"今日成功笔数",width:110,align:"center"},{prop:"total_amount",label:"今日总跑量",width:100,align:"center"},{prop:"total_profit",label:"今日总收益",width:100,align:"center"},{prop:"success_rate",label:"今日成功率",width:100,align:"center"},{prop:"order_status",label:"接单状态",width:130,align:"center",slot:"order_status_slot"},{prop:"status",label:"有效状态",width:130,align:"center",slot:"status_slot"},{prop:"created_at",label:"创建时间",width:160,align:"center"},{prop:"updated_at",label:"更新时间",width:160,align:"center"}],e&&P.columns.push({prop:"operate",label:"操作",width:430,align:"center",slot:"operate",fixed:"right"})},{deep:!0,immediate:!0});const Y=e=>{let a="";ret
|