sf_web_dist/js/sub-channel-fee.1760684407034BFbKroeh.js
2025-10-17 15:04:51 +08:00

2 lines
3.2 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import{r as e,ag as l,m as a,e as d,w as o,N as t,bq as u,g as n,al as m,br as p,bQ as s,d5 as r,O as f,am as _,l as c,an as b,aX as h}from"./index.1760684407034EXjP1S1r.js";import{E as i}from"./el-card.1760684407034C0Pm0SfJ.js";const V={class:"dialog-footer"},y={__name:"sub-channel-fee",props:{showSubChannelFee:{type:Boolean,default:!1},currentRow:{type:Object,default:{}}},emits:["update:showSubChannelFee"],setup(y,{emit:v}){e([]),e([]);const w=l({fee_type:"0",risk_type:"0"});l({columns:[{label:"通道ID",prop:"ID"},{label:"通道名称",prop:"name"},{label:"成功率",prop:"name"},{label:"费率",prop:"name"},{label:"权重1-999999999",prop:"name"},{label:"通道ID",prop:"name"}],searchFields:[],tableData:[],selectData:[]});const x=e(),U=v,k=()=>{U("update:showSubChannelFee",!1)},C=()=>{x.value.validate(e=>{e&&U("confirm",x.value.model)})};return(e,l)=>{const v=r,U=s,D=p,F=_,g=i,S=u,j=b,I=h;return d(),a(I,{"model-value":y.showSubChannelFee,title:"添加账号",width:"600px","before-close":k,ref_key:"channelRef",ref:x},{footer:o(()=>[c("div",V,[t(j,{type:"primary",onClick:C},{default:o(()=>l[11]||(l[11]=[f(" 提交保存 ")])),_:1,__:[11]})])]),default:o(()=>[t(S,{model:n(w),"label-width":"auto"},{default:o(()=>[t(D,{label:"费率模式"},{default:o(()=>[t(U,{modelValue:n(w).fee_type,"onUpdate:modelValue":l[0]||(l[0]=e=>n(w).fee_type=e)},{default:o(()=>[t(v,{value:"0"},{default:o(()=>l[7]||(l[7]=[f("继承通道")])),_:1,__:[7]}),t(v,{value:"1"},{default:o(()=>l[8]||(l[8]=[f("自定义")])),_:1,__:[8]})]),_:1},8,["modelValue"])]),_:1}),1==n(w).fee_type?(d(),a(g,{key:0,style:{width:"500px"}},{header:o(()=>l[9]||(l[9]=[c("div",{class:"clearfix"},[c("span",null,"T+0 费率")],-1)])),default:o(()=>[t(D,{label:"运营费率"},{default:o(()=>[t(F,{modelValue:n(w).name,"onUpdate:modelValue":l[1]||(l[1]=e=>n(w).name=e),placeholder:"单位:‰,例如:千分之三填 0.003"},null,8,["modelValue"])]),_:1}),t(D,{label:"封顶手续费"},{default:o(()=>[t(F,{modelValue:n(w).name,"onUpdate:modelValue":l[2]||(l[2]=e=>n(w).name=e),placeholder:"封顶手续费"},null,8,["modelValue"])]),_:1}),t(D,{label:"成本费率"},{default:o(()=>[t(F,{modelValue:n(w).name,"onUpdate:modelValue":l[3]||(l[3]=e=>n(w).name=e),placeholder:"单位:‰,例如:千分之三填 0.003"},null,8,["modelValue"])]),_:1})]),_:1})):m("",!0),1==n(w).fee_type?(d(),a(g,{key:1,style:{width:"500px","margin-top":"12px"}},{header:o(()=>l[10]||(l[10]=[c("div",{class:"clearfix"},[c("span",null,"T+1 费率")],-1)])),default:o(()=>[t(D,{label:"运营费率"},{default:o(()=>[t(F,{modelValue:n(w).name,"onUpdate:modelValue":l[4]||(l[4]=e=>n(w).name=e),placeholder:"单位:‰,例如:千分之三填 0.003"},null,8,["modelValue"])]),_:1}),t(D,{label:"封顶手续费"},{default:o(()=>[t(F,{modelValue:n(w).name,"onUpdate:modelValue":l[5]||(l[5]=e=>n(w).name=e),placeholder:"封顶手续费"},null,8,["modelValue"])]),_:1}),t(D,{label:"成本费率"},{default:o(()=>[t(F,{modelValue:n(w).name,"onUpdate:modelValue":l[6]||(l[6]=e=>n(w).name=e),placeholder:"单位:‰,例如:千分之三填 0.003"},null,8,["modelValue"])]),_:1})]),_:1})):m("",!0)]),_:1},8,["model"])]),_:1},8,["model-value"])}}};export{y as default};