/* empty css                  *//* empty css                     *//* empty css                    *//* empty css               *//* empty css                  *//* empty css                  *//* empty css                 */import{d as w,r as x,I as U,c as f,a as n,b as o,w as t,i as h,R as B,o as y,e as r,E as I,u as g,S as F,V as P,f as R,W as S,X as q,F as N,h as D,A as L,t as $,Y as z,$ as H,H as M,a0 as O,_ as T}from"./index-hZHbf6Qq.js";const W={class:"quota-apply-container"},X={class:"page-header"},Y={class:"form-row"},j={class:"form-row"},G={class:"category-tags"},J=["onClick"],K={class:"upload-content"},Q={class:"form-actions"},Z=w({__name:"apply",setup(ee){const p=M(),m=x(),a=U({monthAmount:"",yearAmount:"",creditAmount:"",accountPeriod:"",category:"办公耗材",otherCategory:""}),v=["办公耗材","办公设备","数码设备","办公日用","办公日用","办公日用","办公日用","办公日用","办公日用"],V={monthAmount:[{required:!0,message:"请输入月度采购金额",trigger:"blur"}],creditAmount:[{required:!0,message:"请输入申请信用金额",trigger:"blur"}]},c=()=>{p.back()},b=async()=>{var e;await((e=m.value)==null?void 0:e.validate())&&(O.success("申请提交成功"),p.back())};return(A,e)=>{const _=I,u=h,d=R,s=P,i=q,k=S,C=z,E=B;return y(),f("div",W,[n("div",X,[o(u,{type:"primary",link:"",onClick:c},{default:t(()=>[o(_,null,{default:t(()=>[o(g(F))]),_:1}),e[5]||(e[5]=r("返回",-1))]),_:1}),e[6]||(e[6]=n("span",{class:"page-title"},"额度申请",-1))]),o(E,{ref_key:"formRef",ref:m,model:a,rules:V,"label-position":"top",class:"apply-form"},{default:t(()=>[n("div",Y,[o(s,{label:"月度采购金额",prop:"monthAmount"},{default:t(()=>[o(d,{modelValue:a.monthAmount,"onUpdate:modelValue":e[0]||(e[0]=l=>a.monthAmount=l),placeholder:"请输入"},{suffix:t(()=>[...e[7]||(e[7]=[r("元",-1)])]),_:1},8,["modelValue"])]),_:1}),o(s,{label:"年度采购金额",prop:"yearAmount"},{default:t(()=>[o(d,{modelValue:a.yearAmount,"onUpdate:modelValue":e[1]||(e[1]=l=>a.yearAmount=l),placeholder:"请输入"},{suffix:t(()=>[...e[8]||(e[8]=[r("元",-1)])]),_:1},8,["modelValue"])]),_:1})]),n("div",j,[o(s,{label:"申请信用金额",prop:"creditAmount"},{default:t(()=>[o(d,{modelValue:a.creditAmount,"onUpdate:modelValue":e[2]||(e[2]=l=>a.creditAmount=l),placeholder:"请输入"},{suffix:t(()=>[...e[9]||(e[9]=[r("元",-1)])]),_:1},8,["modelValue"])]),_:1}),o(s,{label:"账期时间",prop:"accountPeriod"},{default:t(()=>[o(k,{modelValue:a.accountPeriod,"onUpdate:modelValue":e[3]||(e[3]=l=>a.accountPeriod=l),placeholder:"请选择",style:{width:"100%"}},{default:t(()=>[o(i,{label:"30天",value:"30"}),o(i,{label:"60天",value:"60"}),o(i,{label:"90天",value:"90"})]),_:1},8,["modelValue"])]),_:1})]),o(s,{label:"主要办公采购类目",prop:"category"},{default:t(()=>[n("div",G,[(y(),f(N,null,D(v,l=>n("div",{key:l,class:L(["tag-item",{active:a.category===l}]),onClick:oe=>a.category=l},$(l),11,J)),64))])]),_:1}),o(s,{label:"其他采购类目",prop:"otherCategory"},{default:t(()=>[o(d,{modelValue:a.otherCategory,"onUpdate:modelValue":e[4]||(e[4]=l=>a.otherCategory=l),type:"textarea",rows:2,placeholder:"请输入",maxlength:"50","show-word-limit":""},null,8,["modelValue"])]),_:1}),o(s,{label:"上传合作协议",prop:"agreement"},{default:t(()=>[o(C,{action:"#","auto-upload":!1,limit:1,"list-type":"picture-card"},{default:t(()=>[n("div",K,[o(_,null,{default:t(()=>[o(g(H))]),_:1}),e[10]||(e[10]=n("span",null,"上传",-1))])]),_:1})]),_:1}),n("div",Q,[o(u,{type:"danger",onClick:b},{default:t(()=>[...e[11]||(e[11]=[r("保存",-1)])]),_:1}),o(u,{onClick:c},{default:t(()=>[...e[12]||(e[12]=[r("取消",-1)])]),_:1})])]),_:1},8,["model"])])}}}),ie=T(Z,[["__scopeId","data-v-1cb41463"]]);export{ie as default};
