1 |
- /* empty css *//* empty css */import{_ as e}from"./index-dacbbfd3.js";import{_ as a}from"./index.vue_vue_type_script_setup_true_lang-316a77f9.js";/* empty css *//* empty css *//* empty css */import"./el-tooltip-4ed993c7.js";/* empty css *//* empty css *//* empty css */import{_ as l}from"./add.vue_vue_type_script_setup_true_lang-bd0874f1.js";import{_ as t}from"./search.vue_vue_type_script_setup_true_lang-5ef34ee7.js";/* empty css *//* empty css *//* empty css */import{_ as o}from"./create.vue_vue_type_script_setup_true_lang-0782116b.js";import s from"./note-f99629a7.js";import{u as r}from"./useGetList-4db82530.js";import{o as p}from"./index-1f6b2c94.js";import{d as i,m,p as u,x as d,an as n,o as _,c,e as b,a as y,w as f,f as v,F as j,y as V,l as g,W as h,b as x,a2 as k,a3 as w,A as C,B as U,a7 as q,S as z,a8 as F,$ as P}from"./index-f181b510.js";/* empty css *//* empty css */import"./index-cb8dac27.js";/* empty css */import"./index-ac0f352c.js";import"./http-fe2c0cad.js";/* empty css *//* empty css *//* empty css */const T={class:"flex flex-col justify-between w-full sm:flex-row"},W={class:"w-full"},A={class:"table-default"},B=i({__name:"index",setup(i){const B=m(!1),D=m({}),E=m(!1),G=m({}),I=m([]),J=m([]),{data:L,query:M,search:N,reset:S,loading:$}=r("manage/payConfig/list"),H=u((()=>{var e;return null==(e=L.value)?void 0:e.data})),K=(e,a)=>{switch(e){case"noteVisible":B.value=!0,D.value=a;break;case"createVisible":E.value=!0,G.value=a}},O=e=>{switch(e){case"noteVisible":B.value=!1;break;case"createVisible":E.value=!1}N()};return d((()=>{p().then((e=>{I.value=e.data.payType,J.value=e.data.miniprogramType})),N()})),(r,p)=>{const i=k,m=w,u=C,d=U,L=t,Q=l,R=q,X=z,Y=F,Z=a,ee=e,ae=n("action"),le=P;return _(),c("div",T,[b("div",W,[y(L,{search:v(N),reset:v(S)},{body:f((()=>[y(m,{label:"支付名称"},{default:f((()=>[y(i,{modelValue:v(M).name,"onUpdate:modelValue":p[0]||(p[0]=e=>v(M).name=e),placeholder:"请输入支付名称",clearable:""},null,8,["modelValue"])])),_:1}),y(m,{label:"支付商户号"},{default:f((()=>[y(i,{modelValue:v(M).pay_appid,"onUpdate:modelValue":p[1]||(p[1]=e=>v(M).pay_appid=e),placeholder:"请输入支付商户号",clearable:""},null,8,["modelValue"])])),_:1}),y(m,{label:"备注"},{default:f((()=>[y(i,{modelValue:v(M).remark,"onUpdate:modelValue":p[2]||(p[2]=e=>v(M).remark=e),placeholder:"请输入备注",clearable:""},null,8,["modelValue"])])),_:1}),y(m,{label:"支付方式"},{default:f((()=>[y(d,{modelValue:v(M).pay_type,"onUpdate:modelValue":p[3]||(p[3]=e=>v(M).pay_type=e),clearable:"",filterable:"",placeholder:"请选择支付方式"},{default:f((()=>[(_(!0),c(j,null,V(I.value,((e,a)=>(_(),g(u,{key:a,label:e.label,value:e.value},null,8,["label","value"])))),128))])),_:1},8,["modelValue"])])),_:1}),y(m,{label:"小程序类型"},{default:f((()=>[y(d,{modelValue:v(M).miniprogram_type,"onUpdate:modelValue":p[4]||(p[4]=e=>v(M).miniprogram_type=e),clearable:"",filterable:"",placeholder:"请选择小程序类型"},{default:f((()=>[(_(!0),c(j,null,V(J.value,((e,a)=>(_(),g(u,{key:a,label:e.label,value:e.value},null,8,["label","value"])))),128))])),_:1},8,["modelValue"])])),_:1})])),_:1},8,["search","reset"]),b("div",A,[h(y(Q,{class:"mt-5 ml-2",onClick:p[5]||(p[5]=e=>K("createVisible",null))},null,512),[[ae,"manage.PayConfig.addConfig"]]),h((_(),g(Y,{data:v(H),class:"mt-3"},{default:f((()=>[y(R,{prop:"id",label:"ID"}),y(R,{prop:"name",label:"支付名称"}),y(R,{prop:"pay_type_str",label:"支付方式"}),y(R,{prop:"payee_name",label:"收款主体"}),y(R,{prop:"pay_appid",label:"支付商户号"}),y(R,{prop:"miniprogram_type_str",label:"小程序类型"}),y(R,{prop:"pay_common_params",label:"公用支付参数"}),y(R,{prop:"remark",label:"备注"}),y(R,{label:"操作",width:"200"},{default:f((e=>[h((_(),g(X,{link:"",type:"primary",size:"small",onClick:a=>K("noteVisible",e.row)},{default:f((()=>[x("备注")])),_:2},1032,["onClick"])),[[ae,"manage.PayConfig.remark"]])])),_:1})])),_:1},8,["data"])),[[le,v($)]]),y(Z)]),y(ee,{width:"800px",modelValue:B.value,"onUpdate:modelValue":p[7]||(p[7]=e=>B.value=e),title:"备注","destroy-on-close":""},{default:f((()=>[y(s,{onClose:p[6]||(p[6]=e=>O("noteVisible")),primary:D.value},null,8,["primary"])])),_:1},8,["modelValue"]),y(ee,{modelValue:E.value,"onUpdate:modelValue":p[9]||(p[9]=e=>E.value=e),title:"新增","destroy-on-close":""},{default:f((()=>[y(o,{onClose:p[8]||(p[8]=e=>O("createVisible")),primary:G.value},null,8,["primary"])])),_:1},8,["modelValue"])])])}}});export{B as default};
|