import{d as w,r as f,c as u,e as A,I as g,i as t,h as o,V as d}from"./index.5bb861d3.js";const b=w({name:"fundsAllocation"}),D=Object.assign(b,{setup(h,{expose:i}){const l=f({}),p=f(),_={softwareDevelopmentAmount:[{required:!0,message:"\u8BF7\u8F93\u5165\u8F6F\u4EF6\u5F00\u53D1",trigger:"blur"}],cloudHardwarePurchaseAmount:[{required:!0,message:"\u8BF7\u8F93\u5165\u4E91\u8D44\u6E90\u3001\u786C\u4EF6\u914D\u7F6E",trigger:"blur"}],thirdPartyAmount:[{required:!0,message:"\u8BF7\u8F93\u5165\u7B2C\u4E09\u65B9\u670D\u52A1",trigger:"blur"}]};return i({validForm:r=>{p.value.validate(e=>{r(e)})},formData:l,setFormData:r=>{l.value={softwareDevelopmentAmount:r.softwareDevelopmentAmount,cloudHardwarePurchaseAmount:r.cloudHardwarePurchaseAmount,thirdPartyAmount:r.thirdPartyAmount}}}),(r,e)=>{const n=u("el-input-number"),m=u("el-form-item"),s=u("el-col"),v=u("el-row"),c=u("el-form");return A(),g(c,{ref_key:"formRef",ref:p,model:l.value,rules:_,"label-position":"right","label-width":"180px","label-suffix":":","scroll-to-error":""},{default:t(()=>[o(v,{gutter:40},{default:t(()=>[o(s,{span:8},{default:t(()=>[o(m,{label:"\u8F6F\u4EF6\u5F00\u53D1",prop:"softwareDevelopmentAmount"},{default:t(()=>[o(n,{modelValue:l.value.softwareDevelopmentAmount,"onUpdate:modelValue":e[0]||(e[0]=a=>l.value.softwareDevelopmentAmount=a),placeholder:"\u8BF7\u586B\u5199",min:0,controls:!1,onMousewheel:e[1]||(e[1]=d(()=>{},["prevent"]))},null,8,["modelValue"])]),_:1})]),_:1}),o(s,{span:8},{default:t(()=>[o(m,{label:"\u4E91\u8D44\u6E90\u3001\u786C\u4EF6\u914D\u7F6E",prop:"cloudHardwarePurchaseAmount"},{default:t(()=>[o(n,{modelValue:l.value.cloudHardwarePurchaseAmount,"onUpdate:modelValue":e[2]||(e[2]=a=>l.value.cloudHardwarePurchaseAmount=a),placeholder:"\u8BF7\u586B\u5199",min:0,controls:!1,onMousewheel:e[3]||(e[3]=d(()=>{},["prevent"]))},null,8,["modelValue"])]),_:1})]),_:1}),o(s,{span:8},{default:t(()=>[o(m,{label:"\u7B2C\u4E09\u65B9\u670D\u52A1",prop:"thirdPartyAmount"},{default:t(()=>[o(n,{modelValue:l.value.thirdPartyAmount,"onUpdate:modelValue":e[4]||(e[4]=a=>l.value.thirdPartyAmount=a),placeholder:"\u8BF7\u586B\u5199",min:0,controls:!1,onMousewheel:e[5]||(e[5]=d(()=>{},["prevent"]))},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])}}});export{D as default};
