1 |
- import{d as le,i as ae,r as y,f as V,l as ce,R as oe,o as t,c as F,g as l,w as c,a,S as te,F as N,v as ne,x as r,n as A,y as P,W as re,B as ie,z as se,A as de,C as _e,q as ue,D as pe,G as fe,H as me,d8 as ke,I as ye,J as Ce,_ as Ae,__tla as we}from"./index-b362e1d5.js";import{_ as he,__tla as Pe}from"./index-ccc64a6d.js";import{_ as ge,__tla as be}from"./ContentWrap-a3bb871b.js";import{a as Le,D as Ye,__tla as ve}from"./dict-9948b178.js";import{a as Ie,b as We,d as xe,__tla as Ue}from"./index-55f69793.js";import Re,{__tla as Be}from"./AppForm-d257870f.js";import{a as o,C as g}from"./constants-637baed6.js";import Oe,{__tla as Xe}from"./AlipayChannelForm-cf3a328e.js";import Ee,{__tla as Se}from"./WeixinChannelForm-246b7e6a.js";import Te,{__tla as Ve}from"./FuYouWeixinChannelForm-f6e78ca4.js";import Fe,{__tla as Ne}from"./MockChannelForm-009cbf54.js";import De,{__tla as Me}from"./WalletChannelForm-09bf8e10.js";import{u as ze,__tla as Ke}from"./useMessage-7c1dd10e.js";import{__tla as Qe}from"./index-39b44010.js";import{__tla as He}from"./el-card-732e29b8.js";import{__tla as qe}from"./Dialog-71bebaff.js";import{__tla as Je}from"./index-d48be86f.js";let D,Ge=Promise.all([(()=>{try{return we}catch{}})(),(()=>{try{return Pe}catch{}})(),(()=>{try{return be}catch{}})(),(()=>{try{return ve}catch{}})(),(()=>{try{return Ue}catch{}})(),(()=>{try{return Be}catch{}})(),(()=>{try{return Xe}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 He}catch{}})(),(()=>{try{return qe}catch{}})(),(()=>{try{return Je}catch{}})()]).then(async()=>{D=Ae(le({name:"PayApp",__name:"index",setup(je){const w=ze(),{t:M}=ae(),b=y(!0),I=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 Ie(f);W.value=p.list,I.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,B=y(),O=y(),X=y(),Y=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&&Y.value.open(p.id,i),i.indexOf("wallet")===0&&Y.value.open(p.id,i),i.indexOf("JSAPI")===0&&X.value.open(p.id,i)):O.value.open(p.id,i):B.value.open(p.id,i)};return ce(async()=>{await k()}),(p,i)=>{const Q=re,h=ie,H=se,q=de,J=_e,d=ue,n=pe,G=fe,S=ge,u=me,j=ke,Z=ye,$=he,v=oe("hasPermi"),ee=Ce;return t(),F(N,null,[l(S,null,{default:c(()=>[l(G,{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(q,{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(Ye).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(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})),[[v,["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(j,{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"])),[[v,["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"])),[[v,["pay:app:delete"]]])]),_:1})]),_:1},8,["data"])),[[ee,a(b)]]),l($,{total:a(I),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(Oe,{ref_key:"alipayFormRef",ref:B,onSuccess:k},null,512),l(Ee,{ref_key:"weixinFormRef",ref:O,onSuccess:k},null,512),l(Te,{ref_key:"fuyouweixinFormRef",ref:X,onSuccess:k},null,512),l(Fe,{ref_key:"mockFormRef",ref:Y,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{Ge as __tla,D as default};
|