sf_web_dist/js/deposit-channels-set.1760951033397D5fDB8W9.js

2 lines
13 KiB
JavaScript
Raw Normal View History

2025-10-20 17:04:56 +08:00
import{b3 as e,r as t,bu as a,ag as o,b5 as l,dh as n,bS as s,a_ as r,c as i,e as u,N as c,w as p,l as d,dp as h,an as m,O as w,m as _,al as g,t as C,g as y,E as f,cg as b,bc as v,ca as k,a$ as R,dI as F,aO as x,dJ as j,dK as S,dL as D}from"./index.1760951033397DkciTaBu.js";import{_ as B}from"./index.1760951033397ddktKltv.js";/* empty css */import{E as U}from"./el-text.1760951033397BDEcsA1s.js";import T from"./add-channel.1760951033397qw5x_EAQ.js";import V from"./channel-code.1760951033397D_yWWNuw.js";import A from"./single_fee.1760951033397ByvBEDRm.js";import E from"./test_channel.1760951033397Br4oKzee.js";import z from"./fee-risk.1760951033397GJb3LYWg.js";import O from"./copy-channel.1760951033397CgbXM8wl.js";import $ from"./sub-channel.1760951033397cXOFxmIU.js";import I from"./channel-fee.1760951033397CZwwhGqM.js";import L from"./channel-risk.1760951033397CJnotlJm.js";import{g as P}from"./payee-suppiler.1760951033397BF7LrcN4.js";import{s as q}from"./staticData.1760951033397ieVX5Cz9.js";import{p as H}from"./common.1760951033397CCwWzMi9.js";/* empty css */import"./el-col.1760951033397-rTOfC7Z.js";import"./el-link.1760951033397CDtQ4T4O.js";import"./el-time-select.1760951033397BOmgmBjp.js";import"./el-card.1760951033397mbcAsi-d.js";import"./sub-channel-add.1760951033397BnkMaB8E.js";import"./sub-channel-fee.1760951033397BPBy63Qa.js";import"./sub-channel-risk.1760951033397DHkiEWjY.js";const N={key:0},J={key:1},M={key:2},G={class:"operate-btn"},K=e({__name:"deposit-channels-set",props:{currentRow:{type:Object,default:{}}},setup(e,{expose:K}){t("status"),t("1"),a({legacy:!0});let W=t([]);const Y=o({columns:[{prop:"id",label:"ID",align:"center",width:"80"},{prop:"shop_id",label:"供应商编码",align:"center",width:"100"},{prop:"shop_id",label:"供应商名称",align:"center",slot:"shop_name_slot",width:"100"},{prop:"name",label:"渠道名称",align:"center",width:"320px"},{prop:"code",label:"渠道代码",align:"center",width:"100"},{prop:"",label:"跑量",align:"center",slot:"run_num_slot",sortable:"custom"},{prop:"",label:"成功率",align:"center",slot:"success_rate_slot",sortable:"custom",width:"100"},{prop:"status",label:"接口状态",align:"center",slot:"status_slot",width:"100"},{prop:"pr",label:"费率",align:"center",slot:"pr_slot"},{prop:"limit",label:"风控限额",align:"center",slot:"limit_slot"},{prop:"notify_time",label:"操作",slot:"operate_slot",width:"280px"}],tableData:[],searchFields:[{label:"渠道名称",prop:"api_query",type:"input",value:""},{label:"供应商",prop:"shop_id",type:"select",options:W.value,value:""},{label:"是否开启",type:"select",prop:"status",value:"",options:q.status}],total:0,page:1,per_page:50,loading:!1,showBatchSettingDialog:!1,batchSetting:{title:"批量设置",fields:[{label:"设置",type:"radio",prop:"status",options:[{label:"开启",value:1},{label:"关闭",value:0}]}],rules:{status:[{required:!0,message:"请选择设置",trigger:"blur"}]},values:{status:""}},showRiskControlDialog:!1,riskControl:{title:"风控实况",fields:[],rules:{},values:{}},riskControlColumns:[{label:"通道名称/子账号",prop:"channelName"},{label:"交易时间",prop:"channelCode"},{label:"今天交易金额/可交易金额",prop:"status"},{label:"上线请款",prop:"description"}],riskControlSearchFields:[],riskControlData:[],showAddChannel:!1,batchSettingType:"1",showProduct:!1,productData:{},currentRow:{},channelVisible:!1,showFeeRisk:!1,showCopyChannel:!1,showSubChannel:!1,showChannelCode:!1}),Q=()=>{Y.searchFields.forEach(e=>{"datetimerange"==e.dateType?e.value=[]:e.value=""}),X()};l(async()=>{X(),oe();let e=(await n({saiType:"all"})).map(e=>({label:e.name,value:e.name}));Y.searchFields.forEach(t=>{"name"==t.prop&&(t.options=e)})});const X=()=>{var e,t;Y.loading=!0;let a={limit:Y.per_page,page:Y.page},o=function(e){const t={};return e.forEach(e=>{e.prop&&void 0!==e.value&&(t[e.prop]=e.value)}),t}(Y.searchFields);(null==(e=o.created_at)?void 0:e.length)>0&&(o.created_at_start=o.created_at[0]?s(o.created_at[0]):"",o.