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