2025-09-29 18:08:44 +08:00
|
|
|
import{b2 as e,ag as a,a9 as l,bt as t,b4 as o,r as n,aZ 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,bb as _,O as g,E as F,g as f,bp as b,a7 as v,a8 as w,m as y,bq as I,al as D,am as k,bX as x,bY as C,bZ as T,R as q,an as V,aX as U,c9 as L,ce as $,bR as R,a_ as A,aO as B}from"./index.1759140438764CipgG_TB.js";/* empty css */import{a as j,E,b as Y}from"./el-dropdown.1759140438764QPgn_qDk.js";import{_ as P}from"./index.1759140438764DTXkwKx9.js";import{g as N,a as M,e as G,o as K,t as Z,r as z,c as O,b as S,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.1759140438764DSmYDOU7.js";import{a as re}from"./config.1759140438764CHm3f-A1.js";import"./dropdown.1759140438764CwifMOBJ.js";/* empty css */import"./el-col.1759140438764C2V-vv3Z.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",type:"in
|