No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

2 líneas
3.1KB

  1. import{d as B,D as C,r as c,L as U,c as a,e as d,I as _,i as o,h as t,V as g,j as b,f as k,F as D,J as M,u as O}from"./index.0b616ce3.js";const E=B({name:"projectCollectionEnterBudgetInfo"}),I=Object.assign(E,{props:{detail:{type:Object}},setup(v,{expose:V}){const{budgetSourceOptions:Y}=C.dictStore.globalDicts||{},A=v,m=c(),i=(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=c({}),j={declareAmount:[{required:!0,message:"\u8BF7\u586B\u5199\u7533\u62A5\u91D1\u989D",trigger:"blur"},{validator:i,trigger:"blur"}],approvalAmount:[{required:!0,message:"\u8BF7\u586B\u5199\u6279\u590D\u91D1\u989D",trigger:"blur"},{validator:i,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}),U(()=>A.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"),w=a("el-option"),x=a("el-select"),S=a("el-date-picker"),y=a("el-row"),q=a("el-form");return d(),_(q,{ref_key:"formRef",ref:m,model:l.value,rules:j,"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(x,{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),k(D,null,M(O(Y),(r,f)=>(d(),_(w,{key:f,label:r,value:f*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"])}}});export{I as default};