sf_web_dist/js/mer.W0SZRs9-.js

2 lines
32 KiB
JavaScript
Raw Normal View History

2025-08-07 14:40:47 +08:00
import{b2 as e,ag as a,a9 as l,bs 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,bo as b,a7 as v,a8 as w,m as y,bp as I,al as D,am as k,bW as x,bX as C,bY as T,R as q,an as V,aX as L,c8 as U,cd as $,bQ as R,a_ as A,aO as B}from"./index.LLJPcjTr.js";/* empty css */import{a as j,E,b as Y}from"./el-dropdown.BcFKzGq9.js";import{_ as N}from"./index.DiuV7oFn.js";import{g as P,a as M,e as G,o as K,t as z,r as O,c as X,b as Z,d as Q,f as S,h as H,i as W,j as J,k as ee,l as ae,m as le,n as te,p as oe,q as ne}from"./merchant.BpmoMyKe.js";import{a as re}from"./config.CHm3f-A1.js";import"./dropdown.HxrFxVON.js";/* empty css */import"./el-col.DfQfSnxQ.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:"input",placeholder:"请输入固定金额,多个以英文逗号隔开",unshow:!0},{label:"备注",prop:"remark",type:"i