2025-08-12 19:25:40 +08:00
|
|
|
|
import{b1 as e,aU as a,ag as t,D as l,r as o,b6 as r,bX as n,be as s,bV as d,c as p,e as i,N as u,bB as c,w as m,l as _,O as h,E as b,m as g,al as y,an as v,bd as w,t as f,n as F,g as k,R as x,bY as q,bZ as D,b0 as C,bu as T}from"./index.B15cfAC-.js";import{_ as j}from"./index.jIRxhgtO.js";import{j as V,k as A,l as I,m as U,n as L,p as E,q as R}from"./service.C5-0HxTQ.js";import{m as S,n as z,o as B,j as N}from"./commonOptions.Bg5eYzS6.js";import"./el-col.BihFfJBL.js";import"./deposit.DtrRvojR.js";import"./merchant.EQxlzML3.js";import"./account.CkkGrZ3x.js";const O={style:{color:"red"}},G={class:"operate"},K={__name:"channel-taobao-shop-list",props:{channel_id:{type:[Number,String],default:""}},setup(K){const M=e(),P=a(),W=K;let X=[];const Y=[{label:"禁用",value:0},{label:"正常",value:1}];let Z=[],H=[];const J=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:Y},{label:"有效状态",type:"select",prop:"status",value:"",options:Y},{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:H},{label:"页面",prop:"page",type:"select",options:Z},{label:"接单金额",prop:"take_order_type",type:"select",options:X,placeholder:"请选择接单金额"},{label:"最小金额",prop:"balance_min",type:"number",placeholder:"请输入最小金额",unshow:!0},{label:"最大金额",prop:"balance_max",type:"number",placeholder:"请输入最大金额",unshow:!0},{label:"固定金额",prop:"amount",type:"input",placeholder:"请输入固定金额,多个以英文逗号隔开",unshow:!0},{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"}],take_order_type:[{required:!0,message:"请选择入金规则",trigger:"change"}],balance_min:[{required:!1,message:"请输入最小金额",trigger:"blur"}],balance_max:[{required:!1,message:"请输入最大金额",trigger:"blur"}],amount:[{required:!1,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:W.channel_id,amount:"",balance_min:"",balance_max:"",take_order_type:0}},btnLoading:!1,showAddDialog:!1});l(()=>J.addForm.values.take_order_type,e=>{0==e?(J.addForm.fields.forEach(e=>{"balance_min"===e.prop&&(e.unshow=!0),"balance_max"===e.prop&&(e.unshow=!0),"amount"===e.prop&&(e.unshow=!0)}),J.addForm.rules.balance_min[0].required=!1,J.addForm.rules.balance_max[0].required=!1,J.addForm.rules.amount[0].required=!1,J.addForm.values.balance_min="",J.addForm.values.balance_max="",J.addForm.values.amount=""):1==e?(J.addForm.fields.forEach(e=>{"balance_min"===e.prop&&(e.unshow=!1),"balance_max"===
|