2025-09-02 17:37:22 +08:00
|
|
|
import{b2 as e,r as t,bs as a,ag as o,b4 as l,bQ as n,aZ as s,c as r,e as i,N as p,w as c,l as h,d9 as u,an as d,O as m,m as w,al as _,t as g,E as C,ce as y,bb as b,g as f,c8 as k,a_ as R,aO as v}from"./index.1756805733068DEMWadOr.js";import{_ as F}from"./index.175680573306891ZTznqy.js";/* empty css */import{E as j}from"./el-text.1756805733068BIxc428v.js";import x from"./add-channel.1756805733068OOuWprrb.js";import D from"./channel-code.1756805733068D_YSzCAS.js";import S from"./single_fee.1756805733068BFlAAqnB.js";import B from"./test_channel.1756805733068BtFiPeWS.js";import U from"./fee-risk.1756805733068gBp3SfxC.js";import T from"./copy-channel.1756805733068JPfj6lTT.js";import V from"./sub-channel.1756805733068DzsbH-x8.js";import A from"./channel-fee.1756805733068D2DeZoC9.js";import E from"./channel-risk.1756805733068a4AyVg0i.js";import{g as z,e as O,d as $,f as P}from"./payee-channel.1756805733068BlSkHJO2.js";import{g as H}from"./payee-suppiler.1756805733068DRL7E03z.js";import{s as I}from"./staticData.17568057330688wZxkmL4.js";/* empty css */import"./el-col.1756805733068DXbnxzFK.js";import"./el-link.1756805733068BdkQFhrY.js";import"./el-time-select.17568057330688Gj5rgh-.js";import"./el-card.1756805733068OVUnE59u.js";import"./sub-channel-add.1756805733068TR4FXd1I.js";import"./sub-channel-fee.1756805733068Dog5VvrR.js";import"./sub-channel-risk.1756805733068DY-uozN1.js";const L={key:0},N={key:1},q={key:2},M={class:"operate-btn"},G=e({__name:"deposit-channels-set",props:{currentRow:{type:Object,default:{}}},setup(e,{expose:G}){t("status"),t("1"),a({legacy:!0});let J=t([]);const Q=o({columns:[{prop:"id",label:"ID",align:"center",width:"80"},{prop:"shop_id",label:"供应商编码",align:"center"},{prop:"shop_id",label:"供应商名称",align:"center",slot:"shop_name_slot"},{prop:"name",label:"渠道名称",align:"center"},{prop:"code",label:"渠道代码",align:"center"},{prop:"",label:"跑量",align:"center",slot:"run_num_slot",sortable:"custom"},{prop:"",label:"成功率",align:"center",slot:"success_rate_slot",sortable:"custom"},{prop:"status",label:"接口状态",align:"center",slot:"status_slot"},{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:"name",type:"select",options:[],value:""},{label:"供应商",prop:"shop_id",type:"select",options:J.value,value:""},{label:"是否开启",type:"select",prop:"status",value:"",options:I.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}),W=()=>{Q.searchFields.forEach(e=>{"datetimerange"==e.dateType?e.value=[]:e.value=""}),Z()};l(async()=>{Z(),te();let e=(await z({saiType:"all"})).map(e=>({label:e.name,value:e.name}));Q.searchFields.forEach(t=>{"name"==t.prop&&(t.options=e)})});const Z=()=>{var e,t;Q.loading=!0;let a={limit:Q.per_page,page:Q.page},o=function(e){const t={};return e.forEach(e=>{e.prop&&void 0!==e.value&&(t[e.prop]=e.value)}),t}(Q.searchFields);(null==(e=o.created_at)?void 0:e.length)>0&&(o.created_at_start=o.created_at[0]?n(o.created_at[0]):"",o.created_at_end=o.created_at[1]?n(o.created_at[1]):""),(null==(t=o.completed_at)
|