sf_web_dist/js/platform-channel-my.1760603367117CHnHyNLm.js

2 lines
19 KiB
JavaScript
Raw Normal View History

2025-10-16 16:32:05 +08:00
import{b3 as e,ag as a,bn as l,r as t,a_ as o,c as u,e as r,N as n,w as d,l as s,O as m,E as _,t as c,n as i,bc as p,g as f,an as v,cf as h,ca as D,bq as V,br as b,am as y,al as g,bY as w,bZ as U,aX as k,bS as F,a$ as C,aO as x}from"./index.1760603367117D9PuCFz_.js";import{_ as T}from"./index.1760603367117CcEhDGPQ.js";import{c as S,f as j,h as P,i as R,j as q,k as N}from"./channel.1760603367117C_0j7hMj.js";/* empty css */import"./el-col.1760603367117Z9y4o3dV.js";const $={class:"cell-btn cl-2"},L={class:"operate"},E=["onClick"],M=["onClick"],O={key:0,class:"more"},X={key:0,class:"more"},B={key:0,class:"more"},I={key:0,class:"more"},G={key:0,class:"more"},Y={class:"dialog-footer"},Z=e({__name:"platform-channel-my",setup(e){const Z=a({columns:[{prop:"id",label:"编号",width:80,align:"center"},{prop:"channel_code",label:"通道编码",align:"center"},{prop:"channel_name",label:"通道名称",align:"center"},{prop:"product",label:"产品",align:"center",slot:"product"},{prop:"service_rate",label:"系统服务费率",align:"center",formatter:e=>{if(!e)return"-";let a=e.toString().split(",");return a=a.map(e=>`${Number(100*e).toFixed(2)}%`),a.join(",")}},{prop:"status",label:"状态",align:"center",slot:"status"},{prop:"auto_type",label:"类型",width:120,align:"center",slot:"auto_type"},{prop:"remark",label:"备注",align:"center"},{prop:"create_time",label:"创建时间",width:180,align:"center",formatter:function(e){return F(1e3*e)}},{prop:"operate",label:"操作",width:220,align:"center",slot:"operate",fixed:"right"}],tableData:[],searchFields:[{label:"产品",type:"select",prop:"pay_product_id",value:"",options:[]},{label:"通道名称",type:"input",prop:"channel_name",value:""},{label:"通道代码",type:"input",prop:"channel_code",value:""},{label:"状态",type:"select",prop:"status",value:"",options:[{label:"启用",value:1},{label:"禁用",value:2}]}],total:0,page:1,limit:10,loading:!1,productForm:{title:"添加平台通道",fields:[{label:"产品",prop:"pay_product_id",type:"select",value:"",placeholder:"请选择产品",options:[]},{label:"通道代码",prop:"channel_code",type:"input",placeholder:"请输入通道代码"},{label:"通道名称",prop:"channel_name",type:"input",placeholder:"请输入通道名称"},{label:"排序",prop:"sort",type:"input",placeholder:"排序值越大越靠前"},{label:"备注",prop:"remark",type:"input",placeholder:"请输入备注"}],rules:{pay_product_id:[{required:!0,message:"请选择产品",trigger:"change"}],channel_name:[{required:!0,message:"请输入通道名称",trigger:"blur"}],channel_code:[{required:!0,message:"请输入通道代码",trigger:"blur"}]},values:{pay_product_id:"",channel_name:"",channel_code:"",remark:"",sort:""}},editRow:{},showProductDialog:!1,selectList:[],productList:[],showSetDialog:!1,formData:{id:"主键ID",pay_product_id:"产品id",channel_name:"渠道名称",channel_code:"渠道代码",order_float_amount_status:"订单金额浮动开关(1:开启2:关闭)",order_float_amount:"订单浮动金额(上浮用正数表示下浮用负数表示order_float_amount_status开启时有效)",accept_order_off:"接单自动下码1:是 2:否)",success_order_off:"订单成功自动下码1:是 2:否)",auto_open_status:"开启自动 (1:是 2:否)",auto_off_time:"码过期时间( 分钟数 auto_off_status 字段开启时有效)",accept_order_lock:"开启接单锁码(1: 是 2: 否)",accept_order_only_one:"开启一个码 只接一单1:是 2:否)",accept_order_same_one:"开启同金额只接一单 1:是 2:否)",ms_timeout_num_off_status:"COMMENT '开启连续X个超时未确认自动下码(1:是 2:否)",ms_timeout_num_off:"码商连续N个超时未确认自动下码数值是次数限制0表示不限制。 ms_timeout_num_off_status开启时有效",mer_order_timeout_time:"订单超时时间(分钟)商户超时未打开支付页面0表示永不过期",ms_order_timeout_time:"码商后台订单未确认N分钟则超时0表示永不超时",min_amount:"最小接单金额",max_amount:"<EFBFBD><EFBFBD>