import{d as U,r,u as w,c as k,o as B,w as l,j as n,i as c,_ as N,aA as T,ee as h,k as S,H as V,B as C,p as j,t as L}from"./index-9PRMimni.js";const R={style:{"margin-left":"80px"}},M=U({__name:"Step1",emits:["nextStep"],setup($,{emit:_}){const i=[{label:"NaiveUiAdmin@163.com",value:1},{label:"NaiveUiAdmin@qq.com",value:2}],d=[{label:"微信",value:1},{label:"支付宝",value:2}],v=_,s=r(null),f=w(),t=r({accountType:1,myAccount:null,account:"xioama@qq.com",money:"1980",name:"Ah jung"}),g={name:{required:!0,message:"请输入收款人姓名",trigger:"blur"},account:{required:!0,message:"请输入收款账户",trigger:"blur"},money:{required:!0,message:"请输入转账金额",trigger:"blur"},myAccount:{required:!0,type:"number",message:"请选择付款账户",trigger:"change"}};function y(){s.value.validate(m=>{m?f.error("验证失败，请填写完整信息"):v("nextStep")})}return(m,e)=>{const p=T,o=N,u=S,b=h,x=C,A=V,q=L;return B(),k(q,{ref_key:"form1Ref",ref:s,"label-width":90,model:t.value,rules:g,"label-placement":"left",style:{"max-width":"500px",margin:"40px auto 0 80px"}},{default:l(()=>[n(o,{label:"付款账户",path:"myAccount"},{default:l(()=>[n(p,{value:t.value.myAccount,"onUpdate:value":e[0]||(e[0]=a=>t.value.myAccount=a),options:i,placeholder:"请选择付款账户"},null,8,["value"])]),_:1}),n(o,{label:"收款账户",path:"account"},{default:l(()=>[n(b,null,{default:l(()=>[n(p,{value:t.value.accountType,"onUpdate:value":e[1]||(e[1]=a=>t.value.accountType=a),options:d,style:{width:"20%"},placeholder:"请选择"},null,8,["value"]),n(u,{value:t.value.account,"onUpdate:value":e[2]||(e[2]=a=>t.value.account=a),style:{width:"80%"},placeholder:"请输入收款账户"},null,8,["value"])]),_:1})]),_:1}),n(o,{label:"收款人姓名",path:"name"},{default:l(()=>[n(u,{value:t.value.name,"onUpdate:value":e[3]||(e[3]=a=>t.value.name=a),placeholder:"请输入收款人姓名"},null,8,["value"])]),_:1}),n(o,{label:"转账金额",path:"money"},{default:l(()=>[n(u,{value:t.value.money,"onUpdate:value":e[4]||(e[4]=a=>t.value.money=a),placeholder:"请输入转账金额"},{prefix:l(()=>e[5]||(e[5]=[c("span",{class:"text-gray-400"},"￥",-1)])),_:1},8,["value"])]),_:1}),c("div",R,[n(A,null,{default:l(()=>[n(x,{type:"primary",onClick:y},{default:l(()=>e[6]||(e[6]=[j("下一步")])),_:1})]),_:1})])]),_:1},8,["model"])}}});export{M as _};
