TmallWeb-dist/js/online-service-providers.CtOUYEBn.js
2025-07-29 17:36:42 +08:00

2 lines
3.6 KiB
JavaScript

import{_ as e}from"./index.B0gQFR-S.js";import{ag as a,b6 as t,m as l,e as n,w as o,l as c,N as r,an as s,O as i,bd as p,g as u}from"./index.Rcdtd26P.js";import"./el-col.BIMVSPBS.js";const d={class:"operate"},g={__name:"online-service-providers",setup(g){const m=[{label:"商户号",value:"1"},{label:"产品编码",value:"2"}],h=a({columns:[{label:"ID",key:"merchantName",width:"200px",align:"center"},{label:"服务商编号",key:"merchantNo",align:"center"},{label:"服务商名称",key:"merchantNo",align:"center"},{label:"通道",key:"merchantNo",align:"center"},{label:"收款码信息",key:"merchantNo",align:"center"},{label:"二维码",key:"merchantNo",align:"center"},{label:"今日收款笔数",key:"merchantNo",align:"center"},{label:"今日总跑量",key:"merchantNo",align:"center"},{label:"昨日收款笔数",key:"merchantNo",align:"center"},{label:"昨日总跑量",key:"merchantNo",align:"center"},{label:"每日限数",key:"merchantNo",align:"center"},{label:"每日限额",key:"merchantNo",align:"center"},{label:"总笔数",key:"merchantNo",align:"center"},{label:"成功笔数",key:"merchantNo",align:"center"},{label:"总跑量",key:"merchantNo",align:"center"},{label:"总收益",key:"merchantNo",align:"center"},{label:"成功率",key:"merchantNo",align:"center"},{label:"接单状态",key:"order_status",align:"center"},{label:"有效状态",key:"effective_status",align:"center"},{label:"创建时间",key:"merchantNo",align:"center"}],tableData:[],searchFields:[{label:"服务商编号",prop:"card_no",type:"input",value:""},{label:"服务商名称",prop:"account_type",type:"select",value:"",options:m},{label:"收款码名称",prop:"card_no",type:"input",value:""},{label:"收款码账号",prop:"card_no",type:"input",value:""},{label:"接单状态",prop:"account_type",type:"select",value:"",options:m},{label:"有效状态",prop:"account_type",type:"select",value:"",options:m},{label:"排序",prop:"account_type",type:"select",value:"",options:m}],total:0,page:1,per_page:10,loading:!1}),y=()=>{h.searchFields.forEach(e=>{"datetimerange"==e.dateType?e.value=[]:e.value=""})};t(()=>{});const b=()=>{};return(a,t)=>{const g=p,m=s,_=e;return n(),l(_,{type:"export",columns:u(h).columns,searchFields:u(h).searchFields,"onUpdate:searchFields":t[0]||(t[0]=e=>u(h).searchFields=e),data:u(h).tableData,per_page:u(h).per_page,"onUpdate:per_page":t[1]||(t[1]=e=>u(h).per_page=e),page:u(h).page,"onUpdate:page":t[2]||(t[2]=e=>u(h).page=e),total:u(h).total,onGetTableData:b,onResetForm:y,loading:u(h).loading,showSelection:!1,showRightRefreshSlot:!1},{order_status:o(({row:e})=>[r(g,{modelValue:e.order_status,"onUpdate:modelValue":a=>e.order_status=a,style:{"--el-switch-on-color":"#337ecc"},"active-value":1,"inactive-value":0,"active-text":"正常","inactive-text":"禁用",onChange:t=>a.handleDifferenceStatusSwitchChange(e,"order_status")},null,8,["modelValue","onUpdate:modelValue","onChange"])]),effective_status:o(({row:e})=>[r(g,{modelValue:e.effective_status,"onUpdate:modelValue":a=>e.effective_status=a,style:{"--el-switch-on-color":"#337ecc"},"active-value":1,"inactive-value":0,"active-text":"正常","inactive-text":"禁用",onChange:t=>a.handleDifferenceStatusSwitchChange(e,"effective_status")},null,8,["modelValue","onUpdate:modelValue","onChange"])]),operate:o(({row:e})=>[c("div",d,[r(m,{size:"small",type:"primary",onClick:t=>a.editAgentFun(e,2)},{default:o(()=>t[3]||(t[3]=[i(" 编辑 ")])),_:2,__:[3]},1032,["onClick"]),r(m,{size:"small",type:"danger",onClick:t=>a.examineFun(e)},{default:o(()=>t[4]||(t[4]=[i(" 删除 ")])),_:2,__:[4]},1032,["onClick"])])]),_:1},8,["columns","searchFields","data","per_page","page","total","loading"])}}};export{g as default};