import{_ as k,d as U,H as q,r as f,N as B,f as a,g as d,K as _,m as o,l as t,$ as g,p as b,h as D,G as M,L as N,k as E}from"./index.9fabe127.js";const I=U({name:"projectCollectionEnterBudgetInfo"}),O=Object.assign(I,{props:{detail:{type:Object}},setup(v,{expose:V}){const{budgetSourceOptions:Y}=q.dictStore.globalDicts||{},j=v,m=f(),c=(u,e,n)=>{e||n(),/^\d+(\.\d{1,6})?$/.test(e)?e*1>=1e8?n("\u8BF7\u8F93\u5165\u6B63\u786E\u683C\u5F0F\uFF0C\u5C0F\u4E8E100000000"):n():n("\u8BF7\u8F93\u5165\u6B63\u786E\u683C\u5F0F\uFF0C\u6700\u591A\u4FDD\u7559\u516D\u4F4D\u5C0F\u6570")},l=f({}),A={declareAmount:[{required:!0,message:"\u8BF7\u586B\u5199\u7533\u62A5\u91D1\u989D",trigger:"blur"},{validator:c,trigger:"blur"}],approvalAmount:[{required:!0,message:"\u8BF7\u586B\u5199\u6279\u590D\u91D1\u989D",trigger:"blur"},{validator:c,trigger:"blur"}],budgetSource:[{required:!0,message:"\u8BF7\u9009\u62E9\u9884\u7B97\u6765\u6E90",trigger:"change"}],projectYear:[{required:!0,message:"\u8BF7\u9009\u62E9\u9884\u7B97\u5E74\u5EA6",trigger:"blur"}]};return V({formRef:m,formData:l}),B(()=>j.detail,u=>{u&&(l.value={declareAmount:u.declareAmount,approvalAmount:u.approvalAmount,budgetSource:u.budgetSource,projectYear:`${u.projectYear}`})}),(u,e)=>{const n=a("el-input-number"),s=a("el-form-item"),p=a("el-col"),x=a("el-option"),w=a("el-select"),S=a("el-date-picker"),y=a("el-row"),C=a("el-form");return d(),_(C,{ref_key:"formRef",ref:m,model:l.value,rules:A,"label-position":"top","label-suffix":":","scroll-to-error":""},{default:o(()=>[t(y,{gutter:40},{default:o(()=>[t(p,{span:6},{default:o(()=>[t(s,{label:"\u7533\u62A5\u91D1\u989D",prop:"declareAmount"},{default:o(()=>[t(n,{modelValue:l.value.declareAmount,"onUpdate:modelValue":e[0]||(e[0]=r=>l.value.declareAmount=r),class:"input-amount",placeholder:"\u8BF7\u586B\u5199",min:1e-6,controls:!1,onMousewheel:e[1]||(e[1]=g(()=>{},["prevent"]))},{suffix:o(()=>[b("\u4E07\u5143")]),_:1},8,["modelValue"])]),_:1})]),_:1}),t(p,{span:6},{default:o(()=>[t(s,{label:"\u6279\u590D\u91D1\u989D",prop:"approvalAmount"},{default:o(()=>[t(n,{modelValue:l.value.approvalAmount,"onUpdate:modelValue":e[2]||(e[2]=r=>l.value.approvalAmount=r),class:"input-amount",placeholder:"\u8BF7\u586B\u5199",min:1e-6,controls:!1,onMousewheel:e[3]||(e[3]=g(()=>{},["prevent"]))},{suffix:o(()=>[b("\u4E07\u5143")]),_:1},8,["modelValue"])]),_:1})]),_:1}),t(p,{span:6},{default:o(()=>[t(s,{label:"\u9884\u7B97\u6765\u6E90",prop:"budgetSource"},{default:o(()=>[t(w,{modelValue:l.value.budgetSource,"onUpdate:modelValue":e[4]||(e[4]=r=>l.value.budgetSource=r),placeholder:"\u8BF7\u9009\u62E9",class:"w-full"},{default:o(()=>[(d(!0),D(M,null,N(E(Y),(r,i)=>(d(),_(x,{key:i,label:r,value:i*1},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),t(p,{span:6},{default:o(()=>[t(s,{label:"\u9884\u7B97\u5E74\u5EA6",prop:"projectYear"},{default:o(()=>[t(S,{modelValue:l.value.projectYear,"onUpdate:modelValue":e[5]||(e[5]=r=>l.value.projectYear=r),type:"year",placeholder:"\u8BF7\u9009\u62E9",format:"YYYY","value-format":"YYYY"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])}}}),K=k(O,[["__file","/Users/chenlixin/Documents/work/NDKJ/MyProject/ls-project-v2.0/src/pages/projectCollection/projectCollectionEnter/components/budgetInfo.vue"]]);export{K as default};
