2025-10-16 18:25:16 +08:00
|
|
|
import{b3 as e,ag as a,a9 as l,bu as t,b5 as o,r as n,a_ as r,aV as m,c as i,e as s,N as d,w as u,l as c,n as p,t as h,bc as _,O as g,E as F,g as f,bq as b,a7 as v,a8 as w,m as y,br as I,al as D,am as k,bY as x,bZ as C,b_ as T,R as q,an as V,aX as L,ca as U,cf as $,bS as R,a$ as A,aO as B}from"./index.1760610250010Dq9RNfpE.js";/* empty css */import{a as Y,E as j,b as E}from"./el-dropdown.1760610250010B0Z88hlh.js";import{_ as P}from"./index.1760610250010CyNivo-T.js";import{g as N,a as M,e as G,o as K,t as z,r as S,c as Z,b as O,d as X,f as H,h as J,i as Q,j as W,k as ee,l as ae,m as le,n as te,p as oe,q as ne}from"./merchant.1760610250010DHIqYyA9.js";import{a as re}from"./config.1760610250010CHm3f-A1.js";import"./dropdown.1760610250010CvOaOLZn.js";/* empty css */import"./el-col.1760610250010p35WrljF.js";const me={class:"operate"},ie=["onClick"],se=["onClick"],de={class:"cell-btn"},ue={class:"cell-btn cl-1"},ce=["onClick"],pe={class:"cell-btn cl-2"},he={class:"dialog-footer"},_e={class:"operate"},ge=["onClick"],Fe=["onClick"],fe={class:"tab-content"},be={class:"item"},ve={class:"item"},we={class:"item"},ye={class:"item"},Ie={class:"item"},De={class:"dialog-footer"},ke=e({__name:"mer",setup(e){function ke(e){return R(1e3*e)}const xe=e=>`${Number(e).toFixed(2)}`,Ce=a({columns:[{prop:"id",label:"编号",width:80},{prop:"mer_name",label:"商户名称",width:100},{prop:"nick_name",label:"昵称",width:100},{prop:"usable_amount",label:"余额",width:140,slot:"usable_amount",align:"right",formatter:xe},{prop:"frozen_amount",label:"冻结余额",width:140,formatter:xe},{prop:"status",label:"账号状态",width:90,slot:"status"},{prop:"allow_df",label:"代付状态",width:90,slot:"allow_df"},{prop:"google_check",label:"谷歌状态",width:90,slot:"google_check"},{prop:"secret_key",label:"商户KEY"},{prop:"df_one_fee",label:"单笔手续费",formatter:xe,width:100},{prop:"df_rate",label:"代付费率%",formatter:xe,width:100},{prop:"df_min_amount",label:"最小金额",formatter:xe,width:90},{prop:"df_max_amount",label:"最大金额",formatter:xe,width:90},{prop:"remark",label:"备注",width:140},{prop:"create_time",label:"创建时间",width:150,formatter:ke},{prop:"last_login_time",label:"最后登录时间",width:150,formatter:ke},{prop:"operate",label:"操作",width:220,slot:"operate",fixed:"right"}],tableData:[],searchFields:[{label:"商户ID",type:"input",prop:"id",value:""},{prop:"mer_name",label:"商户名称",type:"input",value:""},{prop:"status",label:"账号状态",type:"select",options:[{label:"启用",value:1},{label:"禁用",value:2}],value:null}],addForm:{title:"添加商户",fileds:[{label:"商户名称",prop:"mer_name",type:"input",value:""},{label:"商户昵称",prop:"nick_name",type:"input",value:""},{label:"单笔手续费",prop:"df_one_fee",type:"input",value:""},{label:"代付费率%",prop:"df_rate",type:"input",value:""},{label:"代付最小订单金额",prop:"df_min_amount",type:"input",value:""},{label:"代付最大订单金额",prop:"df_max_amount",type:"input",value:""},{label:"备注",prop:"remark",type:"input",value:""}],rules:{mer_name:[{required:!0,message:"请输入代理账号",trigger:"blur"}]},values:{mer_name:"",nick_name:"",remark:"",df_one_fee:0,df_rate:0,df_min_amount:0,df_max_amount:0}},editForm:{},total:0,page:1,limit:10,amount:0,loading:!1,showAddDialog:!1,showEditDialog:!1,editIndex:-1,channelForm:{title:"一键新增通道",fields:[{label:"通道",prop:"channel_id",type:"select",options:[],value:null,placeholder:"请选择通道"},{label:"返点%",prop:"rate",type:"input",placeholder:"请输入返点"},{label:"金额类型",prop:"limit_type",type:"select",options:[{label:"区间金额",value:1},{label:"固定金额",value:2}],value:null,placeholder:"请选择金额类型"},{label:"最小接单金额",prop:"min_amount",type:"input",placeholder:"0表示无限制",unshow:!0},{label:"最大接单金额",prop:"max_amount",type:"input",placeholder:"0表示无限制",unshow:!0},{label:"固码金额",prop:"fixed_amount",typ
|