index-154f710b.js 11 KB

1
  1. import{d as le,P as ae,r as y,x as V,b as ce,a4 as oe,o as t,c as F,f as l,A as c,a,a5 as te,F as N,R as ne,C as r,D as A,k as P,a9 as re,V as ie,S as se,U as de,I as _e,Q as ue,J as pe,W as fe,X as me,cJ as ke,Y as ye,Z as Ce,_ as Ae,__tla as we}from"./index-286756b9.js";import{_ as he,__tla as Pe}from"./index-ed6c67a8.js";import{_ as ge,__tla as be}from"./ContentWrap-83998678.js";import{a as Le,D as Ie,__tla as Ye}from"./dict-82dca549.js";import{a as ve,b as We,d as xe,__tla as Ue}from"./index-57b25c15.js";import Re,{__tla as Xe}from"./AppForm-2e5fa999.js";import{a as o,C as g}from"./constants-637baed6.js";import Be,{__tla as Oe}from"./AlipayChannelForm-0e892423.js";import Ee,{__tla as Se}from"./WeixinChannelForm-10875f9b.js";import Te,{__tla as Ve}from"./FuYouWeixinChannelForm-5a990c3c.js";import Fe,{__tla as Ne}from"./MockChannelForm-31ebff51.js";import De,{__tla as Me}from"./WalletChannelForm-e334ec08.js";import{u as ze,__tla as Ke}from"./useMessage-084b1e70.js";import{__tla as Qe}from"./index-fb47c94c.js";import{__tla as Je}from"./el-card-d3d5a654.js";import{__tla as He}from"./Dialog-4c2de357.js";import{__tla as je}from"./index-c58bce26.js";let D,qe=Promise.all([(()=>{try{return we}catch{}})(),(()=>{try{return Pe}catch{}})(),(()=>{try{return be}catch{}})(),(()=>{try{return Ye}catch{}})(),(()=>{try{return Ue}catch{}})(),(()=>{try{return Xe}catch{}})(),(()=>{try{return Oe}catch{}})(),(()=>{try{return Se}catch{}})(),(()=>{try{return Ve}catch{}})(),(()=>{try{return Ne}catch{}})(),(()=>{try{return Me}catch{}})(),(()=>{try{return Ke}catch{}})(),(()=>{try{return Qe}catch{}})(),(()=>{try{return Je}catch{}})(),(()=>{try{return He}catch{}})(),(()=>{try{return je}catch{}})()]).then(async()=>{D=Ae(le({name:"PayApp",__name:"index",setup(Ze){const w=ze(),{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:[]}),x=y(),k=async()=>{b.value=!0;try{const p=await ve(f);W.value=p.list,v.value=p.total}finally{b.value=!1}},L=()=>{f.pageNo=1,k()},z=()=>{x.value.resetFields(),L()},U=y(),R=(p,i)=>{U.value.open(p,i)},m=(p,i)=>!!p&&p.indexOf(i)!==-1,X=y(),B=y(),O=y(),I=y(),K=y(),E=V({appId:null,payCode:null}),_=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 k()}),(p,i)=>{const Q=re,h=ie,J=se,H=de,j=_e,d=ue,n=pe,q=fe,S=ge,u=me,Z=ke,G=ye,$=he,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:x,inline:!0,"label-width":"68px"},{default:c(()=>[l(h,{label:"\u5E94\u7528\u540D",prop:"name"},{default:c(()=>[l(Q,{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(H,{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(Le)(a(Ie).COMMON_STATUS),e=>(t(),r(J,{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(d,{icon:"ep:search",class:"mr-5px"}),A("\u641C\u7D22 ")]),_:1}),l(n,{onClick:z},{default:c(()=>[l(d,{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(d,{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(G,{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(Z,{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 We({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=>[m(e.row.channelCodes,a(o).ALIPAY_APP.code)?(t(),r(n,{key:0,type:"success",onClick:s=>_(e.row,a(o).ALIPAY_APP.code),circle:""},{default:c(()=>[l(d,{icon:"ep:check"})]),_:2},1032,["onClick"])):(t(),r(n,{key:1,type:"danger",circle:"",onClick:s=>_(e.row,a(o).ALIPAY_APP.code)},{default:c(()=>[l(d,{icon:"ep:close"})]),_:2},1032,["onClick"]))]),_:1},8,["label"]),l(u,{label:a(o).ALIPAY_PC.name,align:"center"},{default:c(e=>[m(e.row.channelCodes,a(o).ALIPAY_PC.code)?(t(),r(n,{key:0,type:"success",circle:"",onClick:s=>_(e.row,a(o).ALIPAY_PC.code)},{default:c(()=>[l(d,{icon:"ep:check"})]),_:2},1032,["onClick"])):(t(),r(n,{key:1,type:"danger",circle:"",onClick:s=>_(e.row,a(o).ALIPAY_PC.code)},{default:c(()=>[l(d,{icon:"ep:close"})]),_:2},1032,["onClick"]))]),_:1},8,["label"]),l(u,{label:a(o).ALIPAY_WAP.name,align:"center"},{default:c(e=>[m(e.row.channelCodes,a(o).ALIPAY_WAP.code)?(t(),r(n,{key:0,type:"success",circle:"",onClick:s=>_(e.row,a(o).ALIPAY_WAP.code)},{default:c(()=>[l(d,{icon:"ep:check"})]),_:2},1032,["onClick"])):(t(),r(n,{key:1,type:"danger",circle:"",onClick:s=>_(e.row,a(o).ALIPAY_WAP.code)},{default:c(()=>[l(d,{icon:"ep:close"})]),_:2},1032,["onClick"]))]),_:1},8,["label"]),l(u,{label:a(o).ALIPAY_QR.name,align:"center"},{default:c(e=>[m(e.row.channelCodes,a(o).ALIPAY_QR.code)?(t(),r(n,{key:0,type:"success",circle:"",onClick:s=>_(e.row,a(o).ALIPAY_QR.code)},{default:c(()=>[l(d,{icon:"ep:check"})]),_:2},1032,["onClick"])):(t(),r(n,{key:1,type:"danger",circle:"",onClick:s=>_(e.row,a(o).ALIPAY_QR.code)},{default:c(()=>[l(d,{icon:"ep:close"})]),_:2},1032,["onClick"]))]),_:1},8,["label"]),l(u,{label:a(o).ALIPAY_BAR.name,align:"center"},{default:c(e=>[m(e.row.channelCodes,a(o).ALIPAY_BAR.code)?(t(),r(n,{key:0,type:"success",circle:"",onClick:s=>_(e.row,a(o).ALIPAY_BAR.code)},{default:c(()=>[l(d,{icon:"ep:check"})]),_:2},1032,["onClick"])):(t(),r(n,{key:1,type:"danger",circle:"",onClick:s=>_(e.row,a(o).ALIPAY_BAR.code)},{default:c(()=>[l(d,{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=>[m(e.row.channelCodes,a(o).WX_LITE.code)?(t(),r(n,{key:0,type:"success",circle:"",onClick:s=>_(e.row,a(o).WX_LITE.code)},{default:c(()=>[l(d,{icon:"ep:check"})]),_:2},1032,["onClick"])):(t(),r(n,{key:1,type:"danger",circle:"",onClick:s=>_(e.row,a(o).WX_LITE.code)},{default:c(()=>[l(d,{icon:"ep:close"})]),_:2},1032,["onClick"]))]),_:1},8,["label"]),l(u,{label:a(o).WX_PUB.name,align:"center"},{default:c(e=>[m(e.row.channelCodes,a(o).WX_PUB.code)?(t(),r(n,{key:0,type:"success",circle:"",onClick:s=>_(e.row,a(o).WX_PUB.code)},{default:c(()=>[l(d,{icon:"ep:check"})]),_:2},1032,["onClick"])):(t(),r(n,{key:1,type:"danger",circle:"",onClick:s=>_(e.row,a(o).WX_PUB.code)},{default:c(()=>[l(d,{icon:"ep:close"})]),_:2},1032,["onClick"]))]),_:1},8,["label"]),l(u,{label:a(o).WX_APP.name,align:"center"},{default:c(e=>[m(e.row.channelCodes,a(o).WX_APP.code)?(t(),r(n,{key:0,type:"success",circle:"",onClick:s=>_(e.row,a(o).WX_APP.code)},{default:c(()=>[l(d,{icon:"ep:check"})]),_:2},1032,["onClick"])):(t(),r(n,{key:1,type:"danger",circle:"",onClick:s=>_(e.row,a(o).WX_APP.code)},{default:c(()=>[l(d,{icon:"ep:close"})]),_:2},1032,["onClick"]))]),_:1},8,["label"]),l(u,{label:a(o).WX_BAR.name,align:"center"},{default:c(e=>[m(e.row.channelCodes,a(o).WX_BAR.code)?(t(),r(n,{key:0,type:"success",circle:"",onClick:s=>_(e.row,a(o).WX_BAR.code)},{default:c(()=>[l(d,{icon:"ep:check"})]),_:2},1032,["onClick"])):(t(),r(n,{key:1,type:"danger",circle:"",onClick:s=>_(e.row,a(o).WX_BAR.code)},{default:c(()=>[l(d,{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=>[m(e.row.channelCodes,a(o).WALLET.code)?(t(),r(n,{key:0,type:"success",circle:"",onClick:s=>_(e.row,a(o).WALLET.code)},{default:c(()=>[l(d,{icon:"ep:check"})]),_:2},1032,["onClick"])):(t(),r(n,{key:1,type:"danger",circle:"",onClick:s=>_(e.row,a(o).WALLET.code)},{default:c(()=>[l(d,{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=>[m(e.row.channelCodes,a(o).MOCK.code)?(t(),r(n,{key:0,type:"success",circle:"",onClick:s=>_(e.row,a(o).MOCK.code)},{default:c(()=>[l(d,{icon:"ep:check"})]),_:2},1032,["onClick"])):(t(),r(n,{key:1,type:"danger",circle:"",onClick:s=>_(e.row,a(o).MOCK.code)},{default:c(()=>[l(d,{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=>[m(e.row.channelCodes,a(o).FUYOU.code)?(t(),r(n,{key:0,type:"success",circle:"",onClick:s=>_(e.row,a(o).FUYOU.code)},{default:c(()=>[l(d,{icon:"ep:check"})]),_:2},1032,["onClick"])):(t(),r(n,{key:1,type:"danger",circle:"",onClick:s=>_(e.row,a(o).FUYOU.code)},{default:c(()=>[l(d,{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 xe(C),w.success(M("common.delSuccess")),await k()}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:k},null,8,["total","page","limit"])]),_:1}),l(Re,{ref_key:"formRef",ref:U,onSuccess:k},null,512),l(Be,{ref_key:"alipayFormRef",ref:X,onSuccess:k},null,512),l(Ee,{ref_key:"weixinFormRef",ref:B,onSuccess:k},null,512),l(Te,{ref_key:"fuyouweixinFormRef",ref:O,onSuccess:k},null,512),l(Fe,{ref_key:"mockFormRef",ref:I,onSuccess:k},null,512),l(De,{ref_key:"walletFormRef",ref:K,onSuccess:k},null,512)],64)}}}),[["__file","D:/zx/mall-newfeifan-zx-admin/src/views/pay/app/index.vue"]])});export{qe as __tla,D as default};