You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 line
6.0KB

  1. import{d as B,r as V,c as d,e as v,I as c,i as r,h as l,V as p,j as G,k as _}from"./index.d340e473.js";const k=B({name:"fundsInfo"}),U=Object.assign(k,{props:{detailData:{type:Object,default:()=>({})}},setup(f,{expose:O}){const o=V({}),g=V(),m=(n,e,s)=>{e||s(),/^\d+(\.\d{1,6})?$/.test(e)?e*1>=1e8?s("\u8BF7\u8F93\u5165\u6B63\u786E\u683C\u5F0F\uFF0C\u5C0F\u4E8E100000000"):s():s("\u8BF7\u8F93\u5165\u6B63\u786E\u683C\u5F0F\uFF0C\u6700\u591A\u4FDD\u7559\u516D\u4F4D\u5C0F\u6570")},w={projectYear:[{required:!0,message:"\u8BF7\u9009\u62E9\u9884\u7B97\u5E74\u5EA6"}],declareAmount:[{required:!0,message:"\u8BF7\u8F93\u5165\u7533\u62A5\u91D1\u989D",trigger:"blur"},{validator:m,trigger:"blur"}],declareHaveAmount:[{required:!0,message:"\u8BF7\u8F93\u5165\u81EA\u6709\u8D44\u91D1",trigger:"blur"},{validator:m,trigger:"blur"}],declareGovOwnFinanceAmount:[{required:!0,message:"\u8BF7\u8F93\u5165\u653F\u5E9C\u6295\u8D44-\u672C\u7EA7\u8D22\u653F\u8D44\u91D1",trigger:"blur"},{validator:m,trigger:"blur"}],declareGovSuperiorFinanceAmount:[{required:!0,message:"\u8BF7\u8F93\u5165\u653F\u5E9C\u6295\u8D44-\u4E0A\u7EA7\u8865\u52A9\u8D44\u91D1",trigger:"blur"},{validator:m,trigger:"blur"}],declareBankLendingAmount:[{required:!0,message:"\u8BF7\u8F93\u5165\u94F6\u884C\u8D37\u6B3E",trigger:"blur"},{validator:m,trigger:"blur"}],declareOtherAmount:[{required:!0,message:"\u8BF7\u8F93\u5165\u5176\u4ED6\u8D44\u91D1",trigger:"blur"},{validator:m,trigger:"blur"}],consultancy:[{required:!0,message:"\u8BF7\u586B\u5199\u54A8\u8BE2\u516C\u53F8"}],baseBasisAmountOri:[{required:!0,message:"\u8BF7\u586B\u5199\u9884\u7B97\u6765\u6E90\u8BF4\u660E"}]};return O({validForm:n=>{g.value.validate(e=>{n(e)})},formData:o,setFormData:n=>{o.value={projectYear:n.projectYear?n.projectYear+"":null,declareAmount:n.declareAmount,declareHaveAmount:n.declareHaveAmount,declareGovOwnFinanceAmount:n.declareGovOwnFinanceAmount,declareGovSuperiorFinanceAmount:n.declareGovSuperiorFinanceAmount,declareBankLendingAmount:n.declareBankLendingAmount,declareOtherAmount:n.declareOtherAmount,baseBasisAmountOri:n.baseBasisAmountOri||"",consultancy:n.consultancy||""}}}),(n,e)=>{const s=d("el-date-picker"),t=d("el-form-item"),u=d("el-col"),i=d("el-input-number"),A=d("el-input"),y=d("el-row"),F=d("el-form");return v(),c(F,{ref_key:"formRef",ref:g,model:o.value,rules:w,"label-position":"right","label-width":"180px","label-suffix":":","scroll-to-error":""},{default:r(()=>[l(y,{gutter:40},{default:r(()=>{var b;return[l(u,{span:12},{default:r(()=>[l(t,{label:"\u9884\u7B97\u5E74\u5EA6",prop:"projectYear"},{default:r(()=>{var a;return[l(s,{modelValue:o.value.projectYear,"onUpdate:modelValue":e[0]||(e[0]=Y=>o.value.projectYear=Y),disabled:n.$route.name==="declarePlan"||[10012,10013,10016].includes((a=f.detailData)==null?void 0:a.status),type:"year",placeholder:"\u8BF7\u9009\u62E9",format:"YYYY","value-format":"YYYY"},null,8,["modelValue","disabled"])]}),_:1})]),_:1}),l(u,{span:12},{default:r(()=>[l(t,{label:"\u7533\u62A5\u91D1\u989D",prop:"declareAmount"},{default:r(()=>[l(i,{modelValue:o.value.declareAmount,"onUpdate:modelValue":e[1]||(e[1]=a=>o.value.declareAmount=a),placeholder:"\u8BF7\u586B\u5199",min:1e-6,controls:!1,onMousewheel:e[2]||(e[2]=p(()=>{},["prevent"]))},null,8,["modelValue"])]),_:1})]),_:1}),l(u,{span:12},{default:r(()=>[l(t,{label:"\u81EA\u6709\u8D44\u91D1",prop:"declareHaveAmount"},{default:r(()=>[l(i,{modelValue:o.value.declareHaveAmount,"onUpdate:modelValue":e[3]||(e[3]=a=>o.value.declareHaveAmount=a),placeholder:"\u8BF7\u586B\u5199",min:0,controls:!1,onMousewheel:e[4]||(e[4]=p(()=>{},["prevent"]))},null,8,["modelValue"])]),_:1})]),_:1}),l(u,{span:12},{default:r(()=>[l(t,{label:"\u653F\u5E9C\u6295\u8D44-\u672C\u7EA7\u8D22\u653F\u8D44\u91D1",prop:"declareGovOwnFinanceAmount"},{default:r(()=>[l(i,{modelValue:o.value.declareGovOwnFinanceAmount,"onUpdate:modelValue":e[5]||(e[5]=a=>o.value.declareGovOwnFinanceAmount=a),placeholder:"\u8BF7\u586B\u5199",min:0,controls:!1,onMousewheel:e[6]||(e[6]=p(()=>{},["prevent"]))},null,8,["modelValue"])]),_:1})]),_:1}),l(u,{span:12},{default:r(()=>[l(t,{label:"\u653F\u5E9C\u6295\u8D44-\u4E0A\u7EA7\u8865\u52A9\u8D44\u91D1",prop:"declareGovSuperiorFinanceAmount"},{default:r(()=>[l(i,{modelValue:o.value.declareGovSuperiorFinanceAmount,"onUpdate:modelValue":e[7]||(e[7]=a=>o.value.declareGovSuperiorFinanceAmount=a),placeholder:"\u8BF7\u586B\u5199",min:0,controls:!1,onMousewheel:e[8]||(e[8]=p(()=>{},["prevent"]))},{append:r(()=>[G("\u4E07\u5143")]),_:1},8,["modelValue"])]),_:1})]),_:1}),l(u,{span:12},{default:r(()=>[l(t,{label:"\u94F6\u884C\u8D37\u6B3E",prop:"declareBankLendingAmount"},{default:r(()=>[l(i,{modelValue:o.value.declareBankLendingAmount,"onUpdate:modelValue":e[9]||(e[9]=a=>o.value.declareBankLendingAmount=a),placeholder:"\u8BF7\u586B\u5199",min:0,controls:!1,onMousewheel:e[10]||(e[10]=p(()=>{},["prevent"]))},null,8,["modelValue"])]),_:1})]),_:1}),l(u,{span:12},{default:r(()=>[l(t,{label:"\u5176\u4ED6\u8D44\u91D1",prop:"declareOtherAmount"},{default:r(()=>[l(i,{modelValue:o.value.declareOtherAmount,"onUpdate:modelValue":e[11]||(e[11]=a=>o.value.declareOtherAmount=a),placeholder:"\u8BF7\u586B\u5199",min:0,controls:!1,onMousewheel:e[12]||(e[12]=p(()=>{},["prevent"]))},null,8,["modelValue"])]),_:1})]),_:1}),(n.$route.name==="declarePlan"||[10012,10013,10016].includes((b=f.detailData)==null?void 0:b.status))&&o.value.declareAmount>400?(v(),c(u,{key:0,span:12},{default:r(()=>[l(t,{label:"\u54A8\u8BE2\u516C\u53F8",prop:"consultancy"},{default:r(()=>[l(A,{modelValue:o.value.consultancy,"onUpdate:modelValue":e[13]||(e[13]=a=>o.value.consultancy=a),placeholder:"\u8BF7\u586B\u5199",maxlength:"100"},null,8,["modelValue"])]),_:1})]),_:1})):_("",!0),o.value.declareOtherAmount>0?(v(),c(u,{key:1,span:24},{default:r(()=>[l(t,{label:"\u9884\u7B97\u6765\u6E90\u8BF4\u660E",prop:"baseBasisAmountOri"},{default:r(()=>[l(A,{modelValue:o.value.baseBasisAmountOri,"onUpdate:modelValue":e[14]||(e[14]=a=>o.value.baseBasisAmountOri=a),type:"textarea","show-word-limit":"",placeholder:"\u8BF7\u586B\u5199",maxlength:150},null,8,["modelValue"])]),_:1})]),_:1})):_("",!0)]}),_:1})]),_:1},8,["model"])}}});export{U as default};