sf_web_dist/js/single_fee_set.CNwyj9VP.js
2025-08-07 16:35:41 +08:00

2 lines
2.0 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{D as e,ag as a,r as t,m as l,e as o,w as s,l as n,N as r,g as p,am as i,t as d,an as c,O as m,aX as u}from"./index.aKQDzHIr.js";import{_ as g}from"./index.39Mm1eZ3.js";/* empty css */import"./el-col.nXkQqG5X.js";const h={class:"dialog-footer"},_={__name:"single_fee_set",props:{showSingleFeeSet:{type:Boolean,default:!1}},emits:["update:showSingleFeeSet"],setup(_,{emit:w}){const S=_;e(()=>S.showSingleFeeSet,e=>{});const y=a({columns:[{label:"通道编号",prop:"pay_type",slot:"name_slot"},{label:"通道名称",prop:"pay_type",slot:"name_slot"},{label:"批量费率",prop:"rate"},{label:"定制费率",prop:"rate",slot:"rate_slot"}],searchFields:[{label:"通道编号/名称",prop:"pay_type",type:"input"}],tableData:[],loading:!1,selectData:[]});t([]);const F=w,b=()=>{F("update:showSingleFeeSet",!1)},f=()=>{F("update:showSingleFeeSet",!1)},j=()=>{y.loading=!0;let e={limit:y.per_page,page:y.page,type:4,shop_id:S.currentRow.shop_id},a=convertArrayToObject(y.searchFields);getAccountRecord(Object.assign(e,a)).then(e=>{y.tableData=e.data,y.total=e.total,y.loading=!1}).catch(()=>{y.loading=!1})};return(e,a)=>{const t=i,w=g,S=c,F=u;return o(),l(F,{"model-value":_.showSingleFeeSet,title:"费率设置",width:"60vw",onClose:b},{footer:s(()=>[n("div",h,[r(S,{type:"primary",onClick:f},{default:s(()=>a[1]||(a[1]=[m(" 提交保存 ")])),_:1,__:[1]})])]),default:s(()=>[a[2]||(a[2]=n("div",null,"注费率为千分位例如千分之一则填0.001",-1)),r(w,{type:"export",columns:p(y).columns,searchFields:p(y).searchFields,"onUpdate:searchFields":a[0]||(a[0]=e=>p(y).searchFields=e),data:p(y).tableData,onGetTableData:j,loading:p(y).loading,showSelection:!1,showRightRefreshSlot:!1},{name_slot:s(({row:e})=>[n("span",null,d(e.name),1)]),rate_slot:s(({row:e})=>[r(t,{modelValue:e.rate,"onUpdate:modelValue":a=>e.rate=a,placeholder:"请输入费率"},null,8,["modelValue","onUpdate:modelValue"])]),_:1},8,["columns","searchFields","data","loading"])]),_:1,__:[2]},8,["model-value"])}}};export{_ as default};