|
- import{r as v,b as d,c as _,L as b,h as a,f as e,N as s,k as V}from"./index-dd5fae99.js";const w=V({name:"annualPaymentPlan"}),k=Object.assign(w,{setup(F,{expose:f}){const l=v({}),p=v(),r=(t,n,o)=>{n||o(),/^\d+(\.\d{1,6})?$/.test(n)?n*1>=1e8?o("请输入正确格式,小于100000000"):o():o("请输入正确格式,最多保留六位小数")},g={annualPlanAmount:[{required:!0,message:"请输入年度支付金额",trigger:"blur"},{validator:r,trigger:"blur"}],annualPlanHaveAmount:[{required:!0,message:"请输入自有资金",trigger:"blur"},{validator:r,trigger:"blur"}],annualPlanGovOwnFinanceAmount:[{required:!0,message:"请输入政府投资-本级财政资金",trigger:"blur"},{validator:r,trigger:"blur"}],annualPlanGovSuperiorFinanceAmount:[{required:!0,message:"请输入政府投资-上级补助资金",trigger:"blur"},{validator:r,trigger:"blur"}],annualPlanBankLendingAmount:[{required:!0,message:"请输入银行贷款",trigger:"blur"},{validator:r,trigger:"blur"}],annualPlanOtherAmount:[{required:!0,message:"请输入其他",trigger:"blur"},{validator:r,trigger:"blur"}]};return f({validForm:t=>{p.value.validate(n=>{t(n)})},formData:l,setFormData:t=>{l.value={annualPlanAmount:t.annualPlanAmount,annualPlanHaveAmount:t.annualPlanHaveAmount,annualPlanGovOwnFinanceAmount:t.annualPlanGovOwnFinanceAmount,annualPlanGovSuperiorFinanceAmount:t.annualPlanGovSuperiorFinanceAmount,annualPlanBankLendingAmount:t.annualPlanBankLendingAmount,annualPlanOtherAmount:t.annualPlanOtherAmount}}}),(t,n)=>{const o=d("el-input-number"),m=d("el-form-item"),i=d("el-col"),P=d("el-row"),A=d("el-form");return _(),b(A,{ref_key:"formRef",ref:p,model:l.value,rules:g,"label-position":"right","label-width":"180px","label-suffix":":","scroll-to-error":""},{default:a(()=>[e(P,{gutter:40},{default:a(()=>[e(i,{span:24},{default:a(()=>[e(m,{label:"年度支付金额",prop:"annualPlanAmount"},{default:a(()=>[e(o,{modelValue:l.value.annualPlanAmount,"onUpdate:modelValue":n[0]||(n[0]=u=>l.value.annualPlanAmount=u),placeholder:"请填写",min:0,controls:!1,onMousewheel:n[1]||(n[1]=s(()=>{},["prevent"]))},null,8,["modelValue"])]),_:1})]),_:1}),e(i,{span:12},{default:a(()=>[e(m,{label:"自有资金",prop:"annualPlanHaveAmount"},{default:a(()=>[e(o,{modelValue:l.value.annualPlanHaveAmount,"onUpdate:modelValue":n[2]||(n[2]=u=>l.value.annualPlanHaveAmount=u),placeholder:"请填写",min:0,controls:!1,onMousewheel:n[3]||(n[3]=s(()=>{},["prevent"]))},null,8,["modelValue"])]),_:1})]),_:1}),e(i,{span:12},{default:a(()=>[e(m,{label:"政府投资-本级财政资金",prop:"annualPlanGovOwnFinanceAmount"},{default:a(()=>[e(o,{modelValue:l.value.annualPlanGovOwnFinanceAmount,"onUpdate:modelValue":n[4]||(n[4]=u=>l.value.annualPlanGovOwnFinanceAmount=u),placeholder:"请填写",min:0,controls:!1,onMousewheel:n[5]||(n[5]=s(()=>{},["prevent"]))},null,8,["modelValue"])]),_:1})]),_:1}),e(i,{span:12},{default:a(()=>[e(m,{label:"政府投资-上级补助资金",prop:"annualPlanGovSuperiorFinanceAmount"},{default:a(()=>[e(o,{modelValue:l.value.annualPlanGovSuperiorFinanceAmount,"onUpdate:modelValue":n[6]||(n[6]=u=>l.value.annualPlanGovSuperiorFinanceAmount=u),placeholder:"请填写",min:0,controls:!1,onMousewheel:n[7]||(n[7]=s(()=>{},["prevent"]))},null,8,["modelValue"])]),_:1})]),_:1}),e(i,{span:12},{default:a(()=>[e(m,{label:"银行贷款",prop:"annualPlanBankLendingAmount"},{default:a(()=>[e(o,{modelValue:l.value.annualPlanBankLendingAmount,"onUpdate:modelValue":n[8]||(n[8]=u=>l.value.annualPlanBankLendingAmount=u),placeholder:"请填写",min:0,controls:!1,onMousewheel:n[9]||(n[9]=s(()=>{},["prevent"]))},null,8,["modelValue"])]),_:1})]),_:1}),e(i,{span:12},{default:a(()=>[e(m,{label:"其他",prop:"annualPlanOtherAmount"},{default:a(()=>[e(o,{modelValue:l.value.annualPlanOtherAmount,"onUpdate:modelValue":n[10]||(n[10]=u=>l.value.annualPlanOtherAmount=u),placeholder:"请填写",min:0,controls:!1,onMousewheel:n[11]||(n[11]=s(()=>{},["prevent"]))},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])}}});export{k as default};
|