2025-10-21 16:53:20 +08:00
|
|
|
import{b3 as e,r as t,bu as a,ag as l,b5 as o,dh as n,dn as s,bS as i,a_ as r,c as p,e as d,N as u,w as h,l as c,dp as m,an as w,O as _,m as g,al as C,a7 as y,a8 as v,bD as f,t as b,g as k,E as R,cg as x,bc as F,ca as j,a$ as S,dI as D,aO as B,dJ as U,dK as T,dL as V}from"./index.1761036717994Dr4DJAaG.js";import{_ as A}from"./index.1761036717994B9Jb88vh.js";/* empty css */import{E as O}from"./el-text.1761036717994CR9X5YPN.js";import E from"./add-channel.1761036717994Ch7HqhMk.js";import z from"./channel-code.1761036717994CgtqCl3B.js";import $ from"./single_fee.1761036717994B07rpV6S.js";import N from"./test_channel.1761036717994Dyd2xv8X.js";import I from"./fee-risk.1761036717994D94QsN02.js";import J from"./copy-channel.1761036717994CxlRhIRh.js";import L from"./sub-channel.1761036717994Bfz6xOlv.js";import P from"./channel-fee.1761036717994a80aeXuL.js";import q from"./channel-risk.1761036717994OqVQnerj.js";import{g as H}from"./payee-suppiler.1761036717994Cy-vuT5y.js";import{s as M}from"./staticData.1761036717994ieVX5Cz9.js";import{p as G}from"./common.1761036717994CCwWzMi9.js";/* empty css */import"./el-col.1761036717994BzAN2t1n.js";import"./el-link.1761036717994DVWHIf1E.js";import"./el-time-select.176103671799439ALmJRx.js";import"./el-card.1761036717994_tJjIFMn.js";import"./sub-channel-add.1761036717994DWT7vCmw.js";import"./sub-channel-fee.1761036717994CGBmGUDN.js";import"./sub-channel-risk.1761036717994gq0TXnHy.js";const K={key:0},W={key:1},Y={key:2},Q={key:1,class:"shop-list"},X={class:"operate-btn"},Z=e({__name:"deposit-channels-set",props:{currentRow:{type:Object,default:{}}},setup(e,{expose:Z}){t("status"),t("1"),a({legacy:!0});let ee=t([]);const te=l({columns:[{prop:"id",label:"ID",align:"center",width:"60px"},{prop:"shop_id",label:"供应商编码",align:"center",width:"80px"},{prop:"shop_id",label:"供应商名称",align:"center",slot:"shop_name_slot",width:"100px"},{prop:"name",label:"渠道名称",align:"center",width:"300px"},{prop:"code",label:"渠道代码",align:"center",width:"100px"},{prop:"",label:"跑量",align:"center",slot:"run_num_slot",width:"100px",sortable:"custom"},{prop:"",label:"成功率",align:"center",slot:"success_rate_slot",sortable:"custom",width:"80px"},{prop:"status",label:"接口状态",align:"center",slot:"status_slot",width:"100px"},{prop:"pr",label:"费率",align:"center",slot:"pr_slot",width:"80px"},{prop:"limit",label:"金额限制",align:"center",slot:"limit_slot"},{prop:"limit",label:"商户限制",align:"center",slot:"shop_limit_slot",width:"160px"},{prop:"notify_time",label:"操作",slot:"operate_slot",width:"200px"}],tableData:[],searchFields:[{label:"渠道名称",prop:"api_query",type:"input",value:""},{label:"供应商",prop:"shop_id",type:"select",options:ee.value,value:""},{label:"是否开启",type:"select",prop:"status",value:"",options:M.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}),ae=()=>{te.searchFields.forEach(e=>{"datetimerange"==e.dateType?e.value=[]:e.value=""}),oe()},le=t([]);o(async()=>{oe(),pe();let e=(await n({saiType:"all"})).map(e=>({label:e.name,value:e.name}));te.searchFields.forEach(t=>{"name"==t.prop&&(t.options=e)});let t=await s({saiType:"all"});le.value=[],Object.keys(t).forEach(e=>{t[e].id&&le.value.
|