index-5dbb4a7b.js 11 KB

1
  1. import{d as ee,h as ae,r as y,e as S,k as le,P as ce,o,c as N,f as a,w as c,a as l,Q as te,F as O,n as oe,q as r,m as A,v as P,U as ne,z as re,x as ie,y as se,A as _e,_ as de,B as ue,C as pe,D as fe,d2 as me,G as ke,H as ye,__tla as Ce}from"./index-2eab2d23.js";import{_ as Ae,__tla as we}from"./index.vue_vue_type_script_setup_true_lang-5730b053.js";import{_ as he,__tla as Pe}from"./ContentWrap.vue_vue_type_script_setup_true_lang-5a63038a.js";import{a as ge,D as be,__tla as Le}from"./dict-1ad71b6f.js";import{a as Ie,b as ve,d as We,__tla as Ye}from"./index-63a96a9e.js";import{_ as xe,__tla as Be}from"./AppForm.vue_vue_type_script_setup_true_lang-2ce0fd99.js";import{b as t,C as g}from"./constants-40f13f5e.js";import{_ as Re,__tla as Xe}from"./AlipayChannelForm.vue_vue_type_script_setup_true_lang-dd4536f8.js";import{_ as Ee,__tla as Ue}from"./WeixinChannelForm.vue_vue_type_script_setup_true_lang-ac78940b.js";import{_ as Te,__tla as Ve}from"./MockChannelForm.vue_vue_type_script_setup_true_lang-a7858a39.js";import{_ as Se,__tla as Ne}from"./WalletChannelForm.vue_vue_type_script_setup_true_lang-723dd1e5.js";import{u as Oe,__tla as De}from"./useMessage-171aa63e.js";import{__tla as Me}from"./index-cc63c3c4.js";import{__tla as Fe}from"./el-card-c558f0ec.js";import{__tla as Ke}from"./Dialog-c2716df6.js";import"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as Qe}from"./index-bd4834a1.js";let D,ze=Promise.all([(()=>{try{return Ce}catch{}})(),(()=>{try{return we}catch{}})(),(()=>{try{return Pe}catch{}})(),(()=>{try{return Le}catch{}})(),(()=>{try{return Ye}catch{}})(),(()=>{try{return Be}catch{}})(),(()=>{try{return Xe}catch{}})(),(()=>{try{return Ue}catch{}})(),(()=>{try{return Ve}catch{}})(),(()=>{try{return Ne}catch{}})(),(()=>{try{return De}catch{}})(),(()=>{try{return Me}catch{}})(),(()=>{try{return Fe}catch{}})(),(()=>{try{return Ke}catch{}})(),(()=>{try{return Qe}catch{}})()]).then(async()=>{D=ee({name:"PayApp",__name:"index",setup(He){const w=Oe(),{t:M}=ae(),b=y(!0),W=y(0),Y=y([]),f=S({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);Y.value=p.list,W.value=p.total}finally{b.value=!1}},L=()=>{f.pageNo=1,k()},F=()=>{x.value.resetFields(),L()},B=y(),R=(p,i)=>{B.value.open(p,i)},m=(p,i)=>!!p&&p.indexOf(i)!==-1,X=y(),E=y(),I=y(),K=y(),U=S({appId:null,payCode:null}),d=async(p,i)=>{U.appId=p.id,U.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)):E.value.open(p.id,i):X.value.open(p.id,i)};return le(async()=>{await k()}),(p,i)=>{const Q=ne,h=re,z=ie,H=se,q=_e,_=de,n=ue,G=pe,T=he,u=fe,j=me,J=ke,Z=Ae,v=ce("hasPermi"),$=ye;return o(),N(O,null,[a(T,null,{default:c(()=>[a(G,{class:"-mb-15px",model:l(f),ref_key:"queryFormRef",ref:x,inline:!0,"label-width":"68px"},{default:c(()=>[a(h,{label:"\u5E94\u7528\u540D",prop:"name"},{default:c(()=>[a(Q,{modelValue:l(f).name,"onUpdate:modelValue":i[0]||(i[0]=e=>l(f).name=e),placeholder:"\u8BF7\u8F93\u5165\u5E94\u7528\u540D",clearable:"",onKeyup:te(L,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),a(h,{label:"\u5F00\u542F\u72B6\u6001",prop:"status"},{default:c(()=>[a(H,{modelValue:l(f).status,"onUpdate:modelValue":i[1]||(i[1]=e=>l(f).status=e),placeholder:"\u8BF7\u9009\u62E9\u5F00\u542F\u72B6\u6001",clearable:"",class:"!w-240px"},{default:c(()=>[(o(!0),N(O,null,oe(l(ge)(l(be).COMMON_STATUS),e=>(o(),r(z,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),a(h,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime"},{default:c(()=>[a(q,{modelValue:l(f).createTime,"onUpdate:modelValue":i[2]||(i[2]=e=>l(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}),a(h,null,{default:c(()=>[a(n,{onClick:L},{default:c(()=>[a(_,{icon:"ep:search",class:"mr-5px"}),A("\u641C\u7D22 ")]),_:1}),a(n,{onClick:F},{default:c(()=>[a(_,{icon:"ep:refresh",class:"mr-5px"}),A("\u91CD\u7F6E ")]),_:1}),P((o(),r(n,{type:"primary",plain:"",onClick:i[3]||(i[3]=e=>R("create"))},{default:c(()=>[a(_,{icon:"ep:plus",class:"mr-5px"}),A(" \u65B0\u589E ")]),_:1})),[[v,["pay:app:create"]]])]),_:1})]),_:1},8,["model"])]),_:1}),a(T,null,{default:c(()=>[P((o(),r(J,{data:l(Y)},{default:c(()=>[a(u,{label:"\u5E94\u7528\u7F16\u53F7",align:"center",prop:"id"}),a(u,{label:"\u5E94\u7528\u540D",align:"center",prop:"name"}),a(u,{label:"\u5F00\u542F\u72B6\u6001",align:"center",prop:"status"},{default:c(e=>[a(j,{modelValue:e.row.status,"onUpdate:modelValue":s=>e.row.status=s,"active-value":0,"inactive-value":1,onChange:s=>(async C=>{let V=C.status===g.ENABLE?"\u542F\u7528":"\u505C\u7528";try{await w.confirm('\u786E\u8BA4\u8981"'+V+'""'+C.name+'"\u5E94\u7528\u5417?'),await ve({id:C.id,status:C.status}),w.success(V+"\u6210\u529F")}catch{C.status=C.status===g.ENABLE?g.DISABLE:g.ENABLE}})(e.row)},null,8,["modelValue","onUpdate:modelValue","onChange"])]),_:1}),a(u,{label:"\u652F\u4ED8\u5B9D\u914D\u7F6E",align:"center"},{default:c(()=>[a(u,{label:l(t).ALIPAY_APP.name,align:"center"},{default:c(e=>[m(e.row.channelCodes,l(t).ALIPAY_APP.code)?(o(),r(n,{key:0,type:"success",onClick:s=>d(e.row,l(t).ALIPAY_APP.code),circle:""},{default:c(()=>[a(_,{icon:"ep:check"})]),_:2},1032,["onClick"])):(o(),r(n,{key:1,type:"danger",circle:"",onClick:s=>d(e.row,l(t).ALIPAY_APP.code)},{default:c(()=>[a(_,{icon:"ep:close"})]),_:2},1032,["onClick"]))]),_:1},8,["label"]),a(u,{label:l(t).ALIPAY_PC.name,align:"center"},{default:c(e=>[m(e.row.channelCodes,l(t).ALIPAY_PC.code)?(o(),r(n,{key:0,type:"success",circle:"",onClick:s=>d(e.row,l(t).ALIPAY_PC.code)},{default:c(()=>[a(_,{icon:"ep:check"})]),_:2},1032,["onClick"])):(o(),r(n,{key:1,type:"danger",circle:"",onClick:s=>d(e.row,l(t).ALIPAY_PC.code)},{default:c(()=>[a(_,{icon:"ep:close"})]),_:2},1032,["onClick"]))]),_:1},8,["label"]),a(u,{label:l(t).ALIPAY_WAP.name,align:"center"},{default:c(e=>[m(e.row.channelCodes,l(t).ALIPAY_WAP.code)?(o(),r(n,{key:0,type:"success",circle:"",onClick:s=>d(e.row,l(t).ALIPAY_WAP.code)},{default:c(()=>[a(_,{icon:"ep:check"})]),_:2},1032,["onClick"])):(o(),r(n,{key:1,type:"danger",circle:"",onClick:s=>d(e.row,l(t).ALIPAY_WAP.code)},{default:c(()=>[a(_,{icon:"ep:close"})]),_:2},1032,["onClick"]))]),_:1},8,["label"]),a(u,{label:l(t).ALIPAY_QR.name,align:"center"},{default:c(e=>[m(e.row.channelCodes,l(t).ALIPAY_QR.code)?(o(),r(n,{key:0,type:"success",circle:"",onClick:s=>d(e.row,l(t).ALIPAY_QR.code)},{default:c(()=>[a(_,{icon:"ep:check"})]),_:2},1032,["onClick"])):(o(),r(n,{key:1,type:"danger",circle:"",onClick:s=>d(e.row,l(t).ALIPAY_QR.code)},{default:c(()=>[a(_,{icon:"ep:close"})]),_:2},1032,["onClick"]))]),_:1},8,["label"]),a(u,{label:l(t).ALIPAY_BAR.name,align:"center"},{default:c(e=>[m(e.row.channelCodes,l(t).ALIPAY_BAR.code)?(o(),r(n,{key:0,type:"success",circle:"",onClick:s=>d(e.row,l(t).ALIPAY_BAR.code)},{default:c(()=>[a(_,{icon:"ep:check"})]),_:2},1032,["onClick"])):(o(),r(n,{key:1,type:"danger",circle:"",onClick:s=>d(e.row,l(t).ALIPAY_BAR.code)},{default:c(()=>[a(_,{icon:"ep:close"})]),_:2},1032,["onClick"]))]),_:1},8,["label"])]),_:1}),a(u,{label:"\u5FAE\u4FE1\u914D\u7F6E",align:"center"},{default:c(()=>[a(u,{label:l(t).WX_LITE.name,align:"center"},{default:c(e=>[m(e.row.channelCodes,l(t).WX_LITE.code)?(o(),r(n,{key:0,type:"success",circle:"",onClick:s=>d(e.row,l(t).WX_LITE.code)},{default:c(()=>[a(_,{icon:"ep:check"})]),_:2},1032,["onClick"])):(o(),r(n,{key:1,type:"danger",circle:"",onClick:s=>d(e.row,l(t).WX_LITE.code)},{default:c(()=>[a(_,{icon:"ep:close"})]),_:2},1032,["onClick"]))]),_:1},8,["label"]),a(u,{label:l(t).WX_PUB.name,align:"center"},{default:c(e=>[m(e.row.channelCodes,l(t).WX_PUB.code)?(o(),r(n,{key:0,type:"success",circle:"",onClick:s=>d(e.row,l(t).WX_PUB.code)},{default:c(()=>[a(_,{icon:"ep:check"})]),_:2},1032,["onClick"])):(o(),r(n,{key:1,type:"danger",circle:"",onClick:s=>d(e.row,l(t).WX_PUB.code)},{default:c(()=>[a(_,{icon:"ep:close"})]),_:2},1032,["onClick"]))]),_:1},8,["label"]),a(u,{label:l(t).WX_APP.name,align:"center"},{default:c(e=>[m(e.row.channelCodes,l(t).WX_APP.code)?(o(),r(n,{key:0,type:"success",circle:"",onClick:s=>d(e.row,l(t).WX_APP.code)},{default:c(()=>[a(_,{icon:"ep:check"})]),_:2},1032,["onClick"])):(o(),r(n,{key:1,type:"danger",circle:"",onClick:s=>d(e.row,l(t).WX_APP.code)},{default:c(()=>[a(_,{icon:"ep:close"})]),_:2},1032,["onClick"]))]),_:1},8,["label"]),a(u,{label:l(t).WX_BAR.name,align:"center"},{default:c(e=>[m(e.row.channelCodes,l(t).WX_BAR.code)?(o(),r(n,{key:0,type:"success",circle:"",onClick:s=>d(e.row,l(t).WX_BAR.code)},{default:c(()=>[a(_,{icon:"ep:check"})]),_:2},1032,["onClick"])):(o(),r(n,{key:1,type:"danger",circle:"",onClick:s=>d(e.row,l(t).WX_BAR.code)},{default:c(()=>[a(_,{icon:"ep:close"})]),_:2},1032,["onClick"]))]),_:1},8,["label"])]),_:1}),a(u,{label:"\u94B1\u5305\u652F\u4ED8\u914D\u7F6E",align:"center"},{default:c(()=>[a(u,{label:l(t).WALLET.name,align:"center"},{default:c(e=>[m(e.row.channelCodes,l(t).WALLET.code)?(o(),r(n,{key:0,type:"success",circle:"",onClick:s=>d(e.row,l(t).WALLET.code)},{default:c(()=>[a(_,{icon:"ep:check"})]),_:2},1032,["onClick"])):(o(),r(n,{key:1,type:"danger",circle:"",onClick:s=>d(e.row,l(t).WALLET.code)},{default:c(()=>[a(_,{icon:"ep:close"})]),_:2},1032,["onClick"]))]),_:1},8,["label"])]),_:1}),a(u,{label:"\u6A21\u62DF\u652F\u4ED8\u914D\u7F6E",align:"center"},{default:c(()=>[a(u,{label:l(t).MOCK.name,align:"center"},{default:c(e=>[m(e.row.channelCodes,l(t).MOCK.code)?(o(),r(n,{key:0,type:"success",circle:"",onClick:s=>d(e.row,l(t).MOCK.code)},{default:c(()=>[a(_,{icon:"ep:check"})]),_:2},1032,["onClick"])):(o(),r(n,{key:1,type:"danger",circle:"",onClick:s=>d(e.row,l(t).MOCK.code)},{default:c(()=>[a(_,{icon:"ep:close"})]),_:2},1032,["onClick"]))]),_:1},8,["label"])]),_:1}),a(u,{label:"\u64CD\u4F5C",align:"center","min-width":"110",fixed:"right"},{default:c(e=>[P((o(),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((o(),r(n,{link:"",type:"danger",onClick:s=>(async C=>{try{await w.delConfirm(),await We(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"])),[[$,l(b)]]),a(Z,{total:l(W),page:l(f).pageNo,"onUpdate:page":i[4]||(i[4]=e=>l(f).pageNo=e),limit:l(f).pageSize,"onUpdate:limit":i[5]||(i[5]=e=>l(f).pageSize=e),onPagination:k},null,8,["total","page","limit"])]),_:1}),a(xe,{ref_key:"formRef",ref:B,onSuccess:k},null,512),a(Re,{ref_key:"alipayFormRef",ref:X,onSuccess:k},null,512),a(Ee,{ref_key:"weixinFormRef",ref:E,onSuccess:k},null,512),a(Te,{ref_key:"mockFormRef",ref:I,onSuccess:k},null,512),a(Se,{ref_key:"walletFormRef",ref:K,onSuccess:k},null,512)],64)}}})});export{ze as __tla,D as default};