2 lines
14 KiB
JavaScript
2 lines
14 KiB
JavaScript
|
|
import{b3 as e,r as t,bu as a,ag as l,b5 as o,dh as n,dn as s,bS as r,a_ as i,c as p,e as u,N as d,w as c,l as h,dp as m,an as w,O as _,m as g,al as C,a7 as y,a8 as f,bD as b,t as v,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.1761035337526CukrA7sh.js";import{_ as A}from"./index.1761035337526Dc1I89Yc.js";/* empty css */import{E as O}from"./el-text.17610353375263EbuF_3d.js";import E from"./add-channel.1761035337526DYtVE-Ef.js";import z from"./channel-code.1761035337526p-gwdGeE.js";import $ from"./single_fee.1761035337526BEeWjj4l.js";import N from"./test_channel.1761035337526D-LEzpnd.js";import I from"./fee-risk.17610353375264munA9KF.js";import J from"./copy-channel.1761035337526JeZ3S5LM.js";import L from"./sub-channel.1761035337526yH38uZcB.js";import P from"./channel-fee.1761035337526DdUccUV6.js";import q from"./channel-risk.1761035337526Cbs1chem.js";import{g as H}from"./payee-suppiler.1761035337526D53X2-_n.js";import{s as M}from"./staticData.1761035337526ieVX5Cz9.js";import{p as G}from"./common.1761035337526CCwWzMi9.js";/* empty css */import"./el-col.1761035337526BQRWNHYt.js";import"./el-link.1761035337526CB3dT9vX.js";import"./el-time-select.1761035337526BOITE8M8.js";import"./el-card.1761035337526BZ4HQZ1E.js";import"./sub-channel-add.1761035337526BlN75O43.js";import"./sub-channel-fee.1761035337526DJSawHRL.js";import"./sub-channel-risk.1761035337526Bb1Tvj7M.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"},{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.push({label:t[
|