/* empty css                  *//* empty css                     *//* empty css                       *//* empty css               *//* empty css                 */import{d as S,I as B,c as d,a,b as t,w as l,i as $,R as F,o as r,E as N,u as W,S as G,T as L,U as z,V as D,f as H,e as u,F as p,h as m,A as c,t as _,a2 as M,a3 as j,H as q,a0 as J,_ as K}from"./index-hZHbf6Qq.js";const P={class:"purchase-habit-container"},Q={class:"page-header"},X={class:"page-content"},Y={class:"tag-group"},Z=["onClick"],ee={class:"tag-group"},oe=["onClick"],te={class:"tag-group"},le=["onClick"],se={class:"tag-group"},ae=["onClick"],ne={class:"tag-group"},ue=["onClick"],de={class:"form-footer"},re=S({__name:"index",setup(ie){const x=q(),E=["经济适用","性价比高","大牌商品"],O=["100-500张","500-1000张","1000-3000张","3000张以上"],U=["办公耗材","办公设备","数码设备","办公日用","办公家具","清洁用品","劳保用品","食品饮料"],A=["新年福利","中秋福利","端午福利","生日福利","员工体检","团建活动","节日礼品","年终奖品"],T=["服装定制","礼品定制","包装定制","印刷定制","LOGO定制","文创定制","工艺品定制","其他定制"],s=B({monthlyAmount:"",yearlyAmount:"",productTypes:["经济适用"],printVolume:"100-500张",buyOriginal:"是",techService:"是",categories:["办公耗材"],otherCategory:"",welfares:["新年福利"],otherWelfare:"",customs:["服装定制"],otherCustom:""}),f=(g,o)=>{const v=g.indexOf(o);v>-1?g.splice(v,1):g.push(o)},k=()=>{x.push("/enterprise/companyInfo")},I=()=>{J.success("保存成功"),k()};return(g,o)=>{const v=N,h=$,i=H,n=D,V=z,b=L,y=j,w=M,R=F;return r(),d("div",P,[a("div",Q,[t(h,{link:"",onClick:k},{default:l(()=>[t(v,null,{default:l(()=>[t(W(G))]),_:1}),o[7]||(o[7]=a("span",null,"返回",-1))]),_:1}),o[8]||(o[8]=a("span",{class:"page-title"},"企业采购习惯",-1))]),a("div",X,[t(R,{ref:"formRef",model:s,"label-position":"top"},{default:l(()=>[t(b,{gutter:40},{default:l(()=>[t(V,{span:12},{default:l(()=>[t(n,{label:"月度采购金额"},{default:l(()=>[t(i,{modelValue:s.monthlyAmount,"onUpdate:modelValue":o[0]||(o[0]=e=>s.monthlyAmount=e),placeholder:"请输入"},{suffix:l(()=>[...o[9]||(o[9]=[u("万",-1)])]),_:1},8,["modelValue"])]),_:1})]),_:1}),t(V,{span:12},{default:l(()=>[t(n,{label:"年度采购金额"},{default:l(()=>[t(i,{modelValue:s.yearlyAmount,"onUpdate:modelValue":o[1]||(o[1]=e=>s.yearlyAmount=e),placeholder:"请输入"},{suffix:l(()=>[...o[10]||(o[10]=[u("万",-1)])]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1}),t(n,{label:"产品选型"},{default:l(()=>[a("div",Y,[(r(),d(p,null,m(E,e=>a("div",{key:e,class:c(["tag-item",{active:s.productTypes.includes(e)}]),onClick:C=>f(s.productTypes,e)},_(e),11,Z)),64))])]),_:1}),t(n,{label:"日常打印量"},{default:l(()=>[a("div",ee,[(r(),d(p,null,m(O,e=>a("div",{key:e,class:c(["tag-item",{active:s.printVolume===e}]),onClick:C=>s.printVolume=e},_(e),11,oe)),64))])]),_:1}),t(b,{gutter:40},{default:l(()=>[t(V,{span:12},{default:l(()=>[t(n,{label:"购买原装耗材"},{default:l(()=>[t(w,{modelValue:s.buyOriginal,"onUpdate:modelValue":o[2]||(o[2]=e=>s.buyOriginal=e)},{default:l(()=>[t(y,{value:"是"},{default:l(()=>[...o[11]||(o[11]=[u("是",-1)])]),_:1}),t(y,{value:"否"},{default:l(()=>[...o[12]||(o[12]=[u("否",-1)])]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1}),t(V,{span:12},{default:l(()=>[t(n,{label:"专人进行技术服务"},{default:l(()=>[t(w,{modelValue:s.techService,"onUpdate:modelValue":o[3]||(o[3]=e=>s.techService=e)},{default:l(()=>[t(y,{value:"是"},{default:l(()=>[...o[13]||(o[13]=[u("是",-1)])]),_:1}),t(y,{value:"否"},{default:l(()=>[...o[14]||(o[14]=[u("否",-1)])]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1}),t(n,{label:"主要办公采购类目"},{default:l(()=>[a("div",te,[(r(),d(p,null,m(U,e=>a("div",{key:e,class:c(["tag-item",{active:s.categories.includes(e)}]),onClick:C=>f(s.categories,e)},_(e),11,le)),64))]),t(i,{modelValue:s.otherCategory,"onUpdate:modelValue":o[4]||(o[4]=e=>s.otherCategory=e),placeholder:"其他采购类目",maxlength:"50","show-word-limit":"",class:"other-input"},null,8,["modelValue"])]),_:1}),t(n,{label:"企业福利"},{default:l(()=>[a("div",se,[(r(),d(p,null,m(A,e=>a("div",{key:e,class:c(["tag-item",{active:s.welfares.includes(e)}]),onClick:C=>f(s.welfares,e)},_(e),11,ae)),64))]),t(i,{modelValue:s.otherWelfare,"onUpdate:modelValue":o[5]||(o[5]=e=>s.otherWelfare=e),placeholder:"其他福利",maxlength:"50","show-word-limit":"",class:"other-input"},null,8,["modelValue"])]),_:1}),t(n,{label:"产品定制需求"},{default:l(()=>[a("div",ne,[(r(),d(p,null,m(T,e=>a("div",{key:e,class:c(["tag-item",{active:s.customs.includes(e)}]),onClick:C=>f(s.customs,e)},_(e),11,ue)),64))]),t(i,{modelValue:s.otherCustom,"onUpdate:modelValue":o[6]||(o[6]=e=>s.otherCustom=e),placeholder:"其他需求",maxlength:"50","show-word-limit":"",class:"other-input"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"]),a("div",de,[t(h,{type:"danger",onClick:I},{default:l(()=>[...o[15]||(o[15]=[u("保存",-1)])]),_:1}),t(h,{onClick:k},{default:l(()=>[...o[16]||(o[16]=[u("取消",-1)])]),_:1})])])])}}}),ve=K(re,[["__scopeId","data-v-c1772b50"]]);export{ve as default};
