sf_web_dist/js/user-info.Ct6Y3SlF.js

2 lines
13 KiB
JavaScript
Raw Normal View History

2025-08-11 13:38:58 +08:00
import{a$ as e,r as o,ag as a,b4 as t,c as l,e as s,N as i,O as r,w as n,t as p,l as d,d8 as c,an as u,bb as _,g as w,c8 as h,a_ as g,aO as m}from"./index.Cuf3nwJJ.js";import{_ as y}from"./index.DPDqvMvc.js";/* empty css */import{E as f}from"./el-text.DYsuRYIo.js";import D from"./modify_deposit.B5cmjLEZ.js";import v from"./modify_deposit_log.CMCkF8Um.js";import b from"./single_channel_set.DOpdEc8A.js";import C from"./single_fee_set.IiWfJLLA.js";import F from"./modify_password.B8S_0x4z.js";import k from"./clear_account.By28LUVO.js";import R from"./aircraft.BXUU-7zP.js";import S from"./user_gorup.BG_tke2E.js";import j from"./detail.AmmhCT_i.js";import U from"./account_total.BYTm-Roq.js";import{a as x,c as B,b as A,d as M}from"./payee-user.DuMPrSiL.js";import{s as T}from"./staticData.8wZxkmL4.js";/* empty css */import"./el-col.C84cYJBf.js";import"./payee-order.C6PUj1pS.js";import"./el-card.LCSWvbUi.js";import"./settlement_log.CLJS7gDv.js";import"./select_channel.9B-8uduk.js";import"./payee-channel.CZ2EqnHL.js";import"./handle_balance.DW09Ewph.js";import"./freeze_balance.CxqCdcQA.js";import"./freeze_money_management.BDTRwbDL.js";import"./freeze_balance_management.CrHFuXjR.js";const z={class:"statistics-box"},P=["onClick"],L={style:{"margin-top":"4px"}},G={style:{"margin-top":"4px"}},I={__name:"user-info",setup(I,{expose:V}){const O=e(),E=T.userType,W=o([]);o("日切清账"),o("warning"),o("init");const $=a({columns:[{prop:"shop_id",label:"商户号",align:"center",width:"100"},{prop:"username",label:"用户名",align:"center",slot:"username_slot",width:"100"},{prop:"group",label:"分组",align:"center",width:"100px"},{prop:"",label:"预付操作",align:"center",slot:"modify_deposit_slot",width:"120"},{prop:"",label:"预付",align:"center"},{prop:"",label:"账号总额",align:"center",slot:"account_total_slot"},{prop:"",label:"通道",align:"center",slot:"channel_slot",width:"100px"},{prop:"",label:"费率",align:"center",slot:"fee_slot",width:"100px"},{prop:"",label:"状态",align:"center",slot:"status_slot"},{prop:"created_at",label:"回调IP",align:"center"},{prop:"",label:"操作",align:"center",slot:"operate_slot",width:"240"},{prop:"create_time",label:"注册时间",align:"center"},{prop:"login_time",label:"最后登录时间",align:"center",slot:"login_time_slot"}],tableData:[],searchFields:[{label:"商户号",prop:"shop_id",type:"input",value:""},{label:"用户名称",type:"input",prop:"username",value:""},{label:"用户定制类型",prop:"user_type",type:"select",value:"",options:E},{label:"用户分组",type:"input",prop:"user_group",value:"",options:W}],total:0,page:1,per_page:10,loading:!1,selectData:[],showAddDialog:!1,btnLoading:!1,addForm:{title:"新增用户",fields:[{label:"用户名称",prop:"username",type:"input",value:""},{label:"登录密码",prop:"password",type:"password"},{label:"登录IP白名单",prop:"login_white_ip",type:"textarea",value:""},{label:"回调IP白名单",prop:"callback_white_ip",type:"textarea",value:"",placeholder:"商户的回调IP管理员有IP池建议每个商户独立IP若是包网则改为批量切记线下一定要记录每个商户的IP若IP被打则及时变更不影响其他商户用英文逗号隔开"}],rules:{},values:{username:"",name:"",user_type:"",password:"",login_white_ip:"",callback_white_ip:"",id:""}},showBatchChannel:!1,showBatchFee:!1,showWrongAccount:!1,showRepairRecord:!1,showModifyDeposit:!1,showModifyDepositLog:!1,showSingleChannelSet:!1,showSingleFeeSet:!1,showModifyPassword:!1,showClearAccount:!1,showBindAircraftDialog:!1,showUserGroupDialog:!1,showDetailDialog:!1,showTotalDetailDialog:!1,currentRow:{}}),K=(e,o)=>{let a="";return(0===o?type_options:pay_type_options).some(o=>{if(o.value===e)return a=o.label,!0}),a},N=()=>{$.searchFields.forEach(e=>{"datetimerange"==e.dateType?e.value=[]:e.value=""}),Z()};function Q(e){const o={};return e.forEach(e=>{e.prop&&void 0!==e.value&&(o[e.prop]=e.value)}),o}t(()=>{Z()});const Z=()=>{$.loading=!0;let e={limit:$.per_page,page:$.page},o=Q($.searchFi