index-026c6ce1.js 12 KB

1
  1. import{d as le,P as ae,r as y,x as V,b as ce,a3 as oe,o as t,c as F,f as l,A as c,a,a4 as te,F as N,Q as ne,C as r,D as A,k as P,a8 as re,U as ie,R as se,S as _e,I as de,_ as ue,J as pe,V as fe,W as ke,cC as me,X as ye,Y as Ce,__tla as Ae}from"./index-1f518666.js";import{_ as we,__tla as he}from"./index.vue_vue_type_script_setup_true_lang-cf2a6735.js";import{_ as Pe,__tla as ge}from"./ContentWrap.vue_vue_type_script_setup_true_lang-a4de6de9.js";import{a as be,D as Le,__tla as Ie}from"./dict-167d9193.js";import{a as Ye,b as ve,d as We,__tla as Ue}from"./index-b1b54812.js";import{_ as xe,__tla as Re}from"./AppForm.vue_vue_type_script_setup_true_lang-67c65072.js";import{b as o,C as g}from"./constants-c811e5ff.js";import{_ as Xe,__tla as Be}from"./AlipayChannelForm.vue_vue_type_script_setup_true_lang-ac19a816.js";import{_ as Oe,__tla as Ee}from"./WeixinChannelForm.vue_vue_type_script_setup_true_lang-401b9275.js";import{_ as Se,__tla as Te}from"./FuYouWeixinChannelForm.vue_vue_type_script_setup_true_lang-20196fb0.js";import{_ as Ve,__tla as Fe}from"./MockChannelForm.vue_vue_type_script_setup_true_lang-6aa37b1a.js";import{_ as Ne,__tla as De}from"./WalletChannelForm.vue_vue_type_script_setup_true_lang-343322d5.js";import{u as Me,__tla as Qe}from"./useMessage-633c11d2.js";import{__tla as Ke}from"./index-a37b14c7.js";import{__tla as ze}from"./el-card-955661ed.js";import{__tla as He}from"./Dialog-4c960d8c.js";import"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as Je}from"./index-344bea30.js";let D,je=Promise.all([(()=>{try{return Ae}catch{}})(),(()=>{try{return he}catch{}})(),(()=>{try{return ge}catch{}})(),(()=>{try{return Ie}catch{}})(),(()=>{try{return Ue}catch{}})(),(()=>{try{return Re}catch{}})(),(()=>{try{return Be}catch{}})(),(()=>{try{return Ee}catch{}})(),(()=>{try{return Te}catch{}})(),(()=>{try{return Fe}catch{}})(),(()=>{try{return De}catch{}})(),(()=>{try{return Qe}catch{}})(),(()=>{try{return Ke}catch{}})(),(()=>{try{return ze}catch{}})(),(()=>{try{return He}catch{}})(),(()=>{try{return Je}catch{}})()]).then(async()=>{D=le({name:"PayApp",__name:"index",setup(qe){const w=Me(),{t:M}=ae(),b=y(!0),v=y(0),W=y([]),f=V({pageNo:1,pageSize:10,name:void 0,status:void 0,remark:void 0,payNotifyUrl:void 0,refundNotifyUrl:void 0,createTime:[]}),U=y(),m=async()=>{b.value=!0;try{const p=await Ye(f);W.value=p.list,v.value=p.total}finally{b.value=!1}},L=()=>{f.pageNo=1,m()},Q=()=>{U.value.resetFields(),L()},x=y(),R=(p,i)=>{x.value.open(p,i)},k=(p,i)=>!!p&&p.indexOf(i)!==-1,X=y(),B=y(),O=y(),I=y(),K=y(),E=V({appId:null,payCode:null}),d=async(p,i)=>{E.appId=p.id,E.payCode=i,i.indexOf("alipay_")!==0?i.indexOf("wx_")!==0?(i.indexOf("mock")===0&&I.value.open(p.id,i),i.indexOf("wallet")===0&&I.value.open(p.id,i),i.indexOf("JSAPI")===0&&O.value.open(p.id,i)):B.value.open(p.id,i):X.value.open(p.id,i)};return ce(async()=>{await m()}),(p,i)=>{const z=re,h=ie,H=se,J=_e,j=de,_=ue,n=pe,q=fe,S=Pe,u=ke,G=me,Z=ye,$=we,Y=oe("hasPermi"),ee=Ce;return t(),F(N,null,[l(S,null,{default:c(()=>[l(q,{class:"-mb-15px",model:a(f),ref_key:"queryFormRef",ref:U,inline:!0,"label-width":"68px"},{default:c(()=>[l(h,{label:"\u5E94\u7528\u540D",prop:"name"},{default:c(()=>[l(z,{modelValue:a(f).name,"onUpdate:modelValue":i[0]||(i[0]=e=>a(f).name=e),placeholder:"\u8BF7\u8F93\u5165\u5E94\u7528\u540D",clearable:"",onKeyup:te(L,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),l(h,{label:"\u5F00\u542F\u72B6\u6001",prop:"status"},{default:c(()=>[l(J,{modelValue:a(f).status,"onUpdate:modelValue":i[1]||(i[1]=e=>a(f).status=e),placeholder:"\u8BF7\u9009\u62E9\u5F00\u542F\u72B6\u6001",clearable:"",class:"!w-240px"},{default:c(()=>[(t(!0),F(N,null,ne(a(be)(a(Le).COMMON_STATUS),e=>(t(),r(H,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),l(h,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime"},{default:c(()=>[l(j,{modelValue:a(f).createTime,"onUpdate:modelValue":i[2]||(i[2]=e=>a(f).createTime=e),"value-format":"YYYY-MM-DD HH:mm:ss",type:"daterange","start-placeholder":"\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u7ED3\u675F\u65E5\u671F","default-time":[new Date("1 00:00:00"),new Date("1 23:59:59")],class:"!w-240px"},null,8,["modelValue","default-time"])]),_:1}),l(h,null,{default:c(()=>[l(n,{onClick:L},{default:c(()=>[l(_,{icon:"ep:search",class:"mr-5px"}),A("\u641C\u7D22 ")]),_:1}),l(n,{onClick:Q},{default:c(()=>[l(_,{icon:"ep:refresh",class:"mr-5px"}),A("\u91CD\u7F6E ")]),_:1}),P((t(),r(n,{type:"primary",plain:"",onClick:i[3]||(i[3]=e=>R("create"))},{default:c(()=>[l(_,{icon:"ep:plus",class:"mr-5px"}),A(" \u65B0\u589E ")]),_:1})),[[Y,["pay:app:create"]]])]),_:1})]),_:1},8,["model"])]),_:1}),l(S,null,{default:c(()=>[P((t(),r(Z,{data:a(W)},{default:c(()=>[l(u,{label:"\u5E94\u7528\u7F16\u53F7",align:"center",prop:"id"}),l(u,{label:"\u5E94\u7528\u540D",align:"center",prop:"name"}),l(u,{label:"\u5F00\u542F\u72B6\u6001",align:"center",prop:"status"},{default:c(e=>[l(G,{modelValue:e.row.status,"onUpdate:modelValue":s=>e.row.status=s,"active-value":0,"inactive-value":1,onChange:s=>(async C=>{let T=C.status===g.ENABLE?"\u542F\u7528":"\u505C\u7528";try{await w.confirm('\u786E\u8BA4\u8981"'+T+'""'+C.name+'"\u5E94\u7528\u5417?'),await ve({id:C.id,status:C.status}),w.success(T+"\u6210\u529F")}catch{C.status=C.status===g.ENABLE?g.DISABLE:g.ENABLE}})(e.row)},null,8,["modelValue","onUpdate:modelValue","onChange"])]),_:1}),l(u,{label:"\u652F\u4ED8\u5B9D\u914D\u7F6E",align:"center"},{default:c(()=>[l(u,{label:a(o).ALIPAY_APP.name,align:"center"},{default:c(e=>[k(e.row.channelCodes,a(o).ALIPAY_APP.code)?(t(),r(n,{key:0,type:"success",onClick:s=>d(e.row,a(o).ALIPAY_APP.code),circle:""},{default:c(()=>[l(_,{icon:"ep:check"})]),_:2},1032,["onClick"])):(t(),r(n,{key:1,type:"danger",circle:"",onClick:s=>d(e.row,a(o).ALIPAY_APP.code)},{default:c(()=>[l(_,{icon:"ep:close"})]),_:2},1032,["onClick"]))]),_:1},8,["label"]),l(u,{label:a(o).ALIPAY_PC.name,align:"center"},{default:c(e=>[k(e.row.channelCodes,a(o).ALIPAY_PC.code)?(t(),r(n,{key:0,type:"success",circle:"",onClick:s=>d(e.row,a(o).ALIPAY_PC.code)},{default:c(()=>[l(_,{icon:"ep:check"})]),_:2},1032,["onClick"])):(t(),r(n,{key:1,type:"danger",circle:"",onClick:s=>d(e.row,a(o).ALIPAY_PC.code)},{default:c(()=>[l(_,{icon:"ep:close"})]),_:2},1032,["onClick"]))]),_:1},8,["label"]),l(u,{label:a(o).ALIPAY_WAP.name,align:"center"},{default:c(e=>[k(e.row.channelCodes,a(o).ALIPAY_WAP.code)?(t(),r(n,{key:0,type:"success",circle:"",onClick:s=>d(e.row,a(o).ALIPAY_WAP.code)},{default:c(()=>[l(_,{icon:"ep:check"})]),_:2},1032,["onClick"])):(t(),r(n,{key:1,type:"danger",circle:"",onClick:s=>d(e.row,a(o).ALIPAY_WAP.code)},{default:c(()=>[l(_,{icon:"ep:close"})]),_:2},1032,["onClick"]))]),_:1},8,["label"]),l(u,{label:a(o).ALIPAY_QR.name,align:"center"},{default:c(e=>[k(e.row.channelCodes,a(o).ALIPAY_QR.code)?(t(),r(n,{key:0,type:"success",circle:"",onClick:s=>d(e.row,a(o).ALIPAY_QR.code)},{default:c(()=>[l(_,{icon:"ep:check"})]),_:2},1032,["onClick"])):(t(),r(n,{key:1,type:"danger",circle:"",onClick:s=>d(e.row,a(o).ALIPAY_QR.code)},{default:c(()=>[l(_,{icon:"ep:close"})]),_:2},1032,["onClick"]))]),_:1},8,["label"]),l(u,{label:a(o).ALIPAY_BAR.name,align:"center"},{default:c(e=>[k(e.row.channelCodes,a(o).ALIPAY_BAR.code)?(t(),r(n,{key:0,type:"success",circle:"",onClick:s=>d(e.row,a(o).ALIPAY_BAR.code)},{default:c(()=>[l(_,{icon:"ep:check"})]),_:2},1032,["onClick"])):(t(),r(n,{key:1,type:"danger",circle:"",onClick:s=>d(e.row,a(o).ALIPAY_BAR.code)},{default:c(()=>[l(_,{icon:"ep:close"})]),_:2},1032,["onClick"]))]),_:1},8,["label"])]),_:1}),l(u,{label:"\u5FAE\u4FE1\u914D\u7F6E",align:"center"},{default:c(()=>[l(u,{label:a(o).WX_LITE.name,align:"center"},{default:c(e=>[k(e.row.channelCodes,a(o).WX_LITE.code)?(t(),r(n,{key:0,type:"success",circle:"",onClick:s=>d(e.row,a(o).WX_LITE.code)},{default:c(()=>[l(_,{icon:"ep:check"})]),_:2},1032,["onClick"])):(t(),r(n,{key:1,type:"danger",circle:"",onClick:s=>d(e.row,a(o).WX_LITE.code)},{default:c(()=>[l(_,{icon:"ep:close"})]),_:2},1032,["onClick"]))]),_:1},8,["label"]),l(u,{label:a(o).WX_PUB.name,align:"center"},{default:c(e=>[k(e.row.channelCodes,a(o).WX_PUB.code)?(t(),r(n,{key:0,type:"success",circle:"",onClick:s=>d(e.row,a(o).WX_PUB.code)},{default:c(()=>[l(_,{icon:"ep:check"})]),_:2},1032,["onClick"])):(t(),r(n,{key:1,type:"danger",circle:"",onClick:s=>d(e.row,a(o).WX_PUB.code)},{default:c(()=>[l(_,{icon:"ep:close"})]),_:2},1032,["onClick"]))]),_:1},8,["label"]),l(u,{label:a(o).WX_APP.name,align:"center"},{default:c(e=>[k(e.row.channelCodes,a(o).WX_APP.code)?(t(),r(n,{key:0,type:"success",circle:"",onClick:s=>d(e.row,a(o).WX_APP.code)},{default:c(()=>[l(_,{icon:"ep:check"})]),_:2},1032,["onClick"])):(t(),r(n,{key:1,type:"danger",circle:"",onClick:s=>d(e.row,a(o).WX_APP.code)},{default:c(()=>[l(_,{icon:"ep:close"})]),_:2},1032,["onClick"]))]),_:1},8,["label"]),l(u,{label:a(o).WX_BAR.name,align:"center"},{default:c(e=>[k(e.row.channelCodes,a(o).WX_BAR.code)?(t(),r(n,{key:0,type:"success",circle:"",onClick:s=>d(e.row,a(o).WX_BAR.code)},{default:c(()=>[l(_,{icon:"ep:check"})]),_:2},1032,["onClick"])):(t(),r(n,{key:1,type:"danger",circle:"",onClick:s=>d(e.row,a(o).WX_BAR.code)},{default:c(()=>[l(_,{icon:"ep:close"})]),_:2},1032,["onClick"]))]),_:1},8,["label"])]),_:1}),l(u,{label:"\u94B1\u5305\u652F\u4ED8\u914D\u7F6E",align:"center"},{default:c(()=>[l(u,{label:a(o).WALLET.name,align:"center"},{default:c(e=>[k(e.row.channelCodes,a(o).WALLET.code)?(t(),r(n,{key:0,type:"success",circle:"",onClick:s=>d(e.row,a(o).WALLET.code)},{default:c(()=>[l(_,{icon:"ep:check"})]),_:2},1032,["onClick"])):(t(),r(n,{key:1,type:"danger",circle:"",onClick:s=>d(e.row,a(o).WALLET.code)},{default:c(()=>[l(_,{icon:"ep:close"})]),_:2},1032,["onClick"]))]),_:1},8,["label"])]),_:1}),l(u,{label:"\u6A21\u62DF\u652F\u4ED8\u914D\u7F6E",align:"center"},{default:c(()=>[l(u,{label:a(o).MOCK.name,align:"center"},{default:c(e=>[k(e.row.channelCodes,a(o).MOCK.code)?(t(),r(n,{key:0,type:"success",circle:"",onClick:s=>d(e.row,a(o).MOCK.code)},{default:c(()=>[l(_,{icon:"ep:check"})]),_:2},1032,["onClick"])):(t(),r(n,{key:1,type:"danger",circle:"",onClick:s=>d(e.row,a(o).MOCK.code)},{default:c(()=>[l(_,{icon:"ep:close"})]),_:2},1032,["onClick"]))]),_:1},8,["label"])]),_:1}),l(u,{label:"\u5BCC\u53CB\u652F\u4ED8\u914D\u7F6E",align:"center"},{default:c(()=>[l(u,{label:a(o).FUYOU.name,align:"center"},{default:c(e=>[k(e.row.channelCodes,a(o).FUYOU.code)?(t(),r(n,{key:0,type:"success",circle:"",onClick:s=>d(e.row,a(o).FUYOU.code)},{default:c(()=>[l(_,{icon:"ep:check"})]),_:2},1032,["onClick"])):(t(),r(n,{key:1,type:"danger",circle:"",onClick:s=>d(e.row,a(o).FUYOU.code)},{default:c(()=>[l(_,{icon:"ep:close"})]),_:2},1032,["onClick"]))]),_:1},8,["label"])]),_:1}),l(u,{label:"\u64CD\u4F5C",align:"center","min-width":"110",fixed:"right"},{default:c(e=>[P((t(),r(n,{link:"",type:"primary",onClick:s=>R("update",e.row.id)},{default:c(()=>[A(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[Y,["pay:app:update"]]]),P((t(),r(n,{link:"",type:"danger",onClick:s=>(async C=>{try{await w.delConfirm(),await We(C),w.success(M("common.delSuccess")),await m()}catch{}})(e.row.id)},{default:c(()=>[A(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[Y,["pay:app:delete"]]])]),_:1})]),_:1},8,["data"])),[[ee,a(b)]]),l($,{total:a(v),page:a(f).pageNo,"onUpdate:page":i[4]||(i[4]=e=>a(f).pageNo=e),limit:a(f).pageSize,"onUpdate:limit":i[5]||(i[5]=e=>a(f).pageSize=e),onPagination:m},null,8,["total","page","limit"])]),_:1}),l(xe,{ref_key:"formRef",ref:x,onSuccess:m},null,512),l(Xe,{ref_key:"alipayFormRef",ref:X,onSuccess:m},null,512),l(Oe,{ref_key:"weixinFormRef",ref:B,onSuccess:m},null,512),l(Se,{ref_key:"fuyouweixinFormRef",ref:O,onSuccess:m},null,512),l(Ve,{ref_key:"mockFormRef",ref:I,onSuccess:m},null,512),l(Ne,{ref_key:"walletFormRef",ref:K,onSuccess:m},null,512)],64)}}})});export{je as __tla,D as default};