|
- import{h as v,f as F,c as r,b as y,e as b,r as s}from"./uploadAction.da8c1cf8.js";import{d as S,B as k,r as A,c as h,e as D,G as j,i as l,h as n,u as t,g as w,t as P,j as g,k as p}from"./index.149277cd.js";const O={class:"el-upload__tip"};const $={class:"el-upload__tip"},B={class:"el-upload__tip"},U={class:"el-upload__tip"},J={class:"el-upload__tip"},L={class:"el-upload__tip"},q=S({name:"accessory"}),E=Object.assign(q,{props:{detailData:{type:Object,default:()=>({})},projectType:{type:String,default:""},declareAmount:{type:Number}},setup(c,{expose:R}){const u=k.dictStore.uploadUrl,o=A({constructionPlanFile:[],preliminaryPlanFile:[],mainResponsibilitiesApplicantFile:[],supportingMaterialsFile:[],calculationTotalInvestmentFile:[],projectApplicationForm:[],mainAccusationDoc:[]}),N=A(),T={preliminaryPlanFile:[{required:!0,message:"\u9879\u76EE\u7533\u62A5\u4E66",trigger:"blur"}],supportingMaterialsFile:[{required:!0,message:"\u8BF7\u4E0A\u4F20\u4F50\u8BC1\u6750\u6599",trigger:"blur"}],calculationTotalInvestmentFile:[{required:!0,message:"\u8BF7\u4E0A\u4F20\u9879\u76EE\u603B\u6295\u8D44\u6D4B\u7B97\u660E\u7EC6",trigger:"blur"}],mainResponsibilitiesApplicantFile:[{required:!0,message:"\u8BF7\u4E0A\u4F20\u7533\u62A5\u5355\u4F4D\u4E3B\u8981\u804C\u8D23(\u5355\u4F4D\u4E09\u5B9A\u65B9\u6848)",trigger:"blur"}],projectApplicationForm:[{required:!0,message:"\u8BF7\u4E0A\u4F20\u9879\u76EE\u7533\u62A5\u4E66"}],baseResearchReportFile:[{required:!0,message:"\u8BF7\u4E0A\u4F20\u53EF\u884C\u6027\u7814\u7A76\u62A5\u544A"}],operationPlan:[{required:!0,message:"\u8BF7\u4E0A\u4F20\u8FD0\u7EF4\u65B9\u6848"}],constructionPlanFile:[{required:!0,message:"\u8BF7\u4E0A\u4F20\u5EFA\u8BBE\u65B9\u6848"}],mainAccusationDoc:[{required:!0,message:"\u8BF7\u4E0A\u4F20\u7533\u62A5\u5355\u4F4D\u4E3B\u8981\u804C\u8D23(\u5355\u4F4D\u4E09\u5B9A\u65B9\u6848)",trigger:"blur"}]};return R({validForm:a=>{N.value.validate(i=>{a(i)})},formData:o,setFormData:a=>{o.value={constructionPlanFile:a.constructionPlanFile?s(JSON.parse(a.constructionPlanFile)):[],preliminaryPlanFile:a.preliminaryPlanFile?s(JSON.parse(a.preliminaryPlanFile)):[],mainResponsibilitiesApplicantFile:a.mainResponsibilitiesApplicantFile?s(JSON.parse(a.mainResponsibilitiesApplicantFile)):[],supportingMaterialsFile:a.supportingMaterialsFile?s(JSON.parse(a.supportingMaterialsFile)):[],baseResearchReportFile:a.baseResearchReportFile?s(JSON.parse(a.baseResearchReportFile)):[],operationPlan:a.operationPlan?s(JSON.parse(a.operationPlan)):[],calculationTotalInvestmentFile:a.calculationTotalInvestmentFile?s(JSON.parse(a.calculationTotalInvestmentFile)):[],projectApplicationForm:a.projectApplicationForm?s(JSON.parse(a.projectApplicationForm)):[],baseProjOtherFile:a.baseProjOtherFile?s(JSON.parse(a.baseProjOtherFile)):[],mainAccusationDoc:a.mainAccusationDoc?s(JSON.parse(a.mainAccusationDoc)):[]}}}),(a,i)=>{const f=h("el-button"),m=h("el-upload"),d=h("el-form-item"),_=h("el-col"),V=h("el-row"),C=h("el-form");return D(),j(C,{ref_key:"formRef",ref:N,model:o.value,rules:T,"label-position":"right","label-width":"180px","label-suffix":":","scroll-to-error":""},{default:l(()=>[n(V,{gutter:40},{default:l(()=>{var x;return[n(_,{span:12},{default:l(()=>[n(d,{label:"\u9879\u76EE\u7533\u62A5\u4E66",prop:"preliminaryPlanFile"},{default:l(()=>[n(m,{"file-list":o.value.preliminaryPlanFile,"onUpdate:fileList":i[0]||(i[0]=e=>o.value.preliminaryPlanFile=e),class:"w-full",action:t(u),limit:1,"on-success":e=>t(v)(e,o.value.preliminaryPlanFile,!0),"before-upload":e=>t(F)(e,{types:t(r)}),accept:t(r).map(e=>`.${e}`).join(","),"on-preview":t(y)},{tip:l(()=>[w("div",O," \u652F\u6301"+P(t(b))+"\u6587\u4EF6 ",1)]),default:l(()=>[n(f,{type:"primary",plain:""},{default:l(()=>i[10]||(i[10]=[g("\u9009\u62E9\u6587\u4EF6")])),_:1})]),_:1},8,["file-list","action","on-success","before-upload","accept","on-preview"])]),_:1})]),_:1}),p("",!0),p("",!0),p("",!0),(c.projectType,p("",!0)),c.projectType!=="04"&&c.projectType!=="05"?(D(),j(_,{key:4,span:12},{default:l(()=>[n(d,{label:"\u53EF\u884C\u6027\u7814\u7A76\u62A5\u544A",prop:"baseResearchReportFile"},{default:l(()=>[n(m,{"file-list":o.value.baseResearchReportFile,"onUpdate:fileList":i[5]||(i[5]=e=>o.value.baseResearchReportFile=e),class:"w-full",action:t(u),limit:1,"on-success":e=>t(v)(e,o.value.baseResearchReportFile,!0),"before-upload":e=>t(F)(e,{types:t(r)}),accept:t(r).map(e=>`.${e}`).join(","),"on-preview":t(y)},{tip:l(()=>[w("div",$," \u652F\u6301"+P(t(b))+"\u6587\u4EF6 ",1)]),default:l(()=>[n(f,{type:"primary",plain:""},{default:l(()=>i[15]||(i[15]=[g("\u9009\u62E9\u6587\u4EF6")])),_:1})]),_:1},8,["file-list","action","on-success","before-upload","accept","on-preview"])]),_:1})]),_:1})):p("",!0),c.projectType==="04"||c.projectType==="05"?(D(),j(_,{key:5,span:12},{default:l(()=>[n(d,{label:"\u8FD0\u7EF4\u65B9\u6848",prop:"operationPlan"},{default:l(()=>[n(m,{"file-list":o.value.operationPlan,"onUpdate:fileList":i[6]||(i[6]=e=>o.value.operationPlan=e),class:"w-full",action:t(u),limit:1,"on-success":e=>t(v)(e,o.value.operationPlan,!0),"before-upload":e=>t(F)(e,{types:t(r)}),accept:t(r).map(e=>`.${e}`).join(","),"on-preview":t(y)},{tip:l(()=>[w("div",B," \u652F\u6301"+P(t(b))+"\u6587\u4EF6 ",1)]),default:l(()=>[n(f,{type:"primary",plain:""},{default:l(()=>i[16]||(i[16]=[g("\u9009\u62E9\u6587\u4EF6")])),_:1})]),_:1},8,["file-list","action","on-success","before-upload","accept","on-preview"])]),_:1})]),_:1})):p("",!0),a.$route.name==="declarePlan"||[10012,10013,10016].includes((x=c.detailData)==null?void 0:x.status)?(D(),j(_,{key:6,span:12},{default:l(()=>[n(d,{label:"\u5EFA\u8BBE\u65B9\u6848",prop:"constructionPlanFile"},{default:l(()=>[n(m,{"file-list":o.value.constructionPlanFile,"onUpdate:fileList":i[7]||(i[7]=e=>o.value.constructionPlanFile=e),class:"w-full",action:t(u),limit:1,"on-success":e=>t(v)(e,o.value.constructionPlanFile,!0),"before-upload":e=>t(F)(e,{types:t(r)}),accept:t(r).map(e=>`.${e}`).join(","),"on-preview":t(y)},{tip:l(()=>[w("div",U," \u652F\u6301"+P(t(b))+"\u6587\u4EF6 ",1)]),default:l(()=>[n(f,{type:"primary",plain:""},{default:l(()=>i[17]||(i[17]=[g("\u9009\u62E9\u6587\u4EF6")])),_:1})]),_:1},8,["file-list","action","on-success","before-upload","accept","on-preview"])]),_:1})]),_:1})):p("",!0),n(_,{span:12},{default:l(()=>[n(d,{label:"\u5176\u4ED6\u9644\u4EF6"},{default:l(()=>[n(m,{ref:"baseProjOtherFileRef","file-list":o.value.baseProjOtherFile,"onUpdate:fileList":i[8]||(i[8]=e=>o.value.baseProjOtherFile=e),class:"upload-demo",action:t(u),multiple:"","on-success":e=>t(v)(e,o.value.baseProjOtherFile),"before-upload":e=>t(F)(e,{types:t(r)}),accept:t(r).map(e=>`.${e}`).join(","),limit:10,"on-preview":t(y)},{tip:l(()=>[w("div",J," \u652F\u6301"+P(t(b))+"\u6587\u4EF6 ",1)]),default:l(()=>[n(f,{plain:"",type:"primary"},{default:l(()=>i[18]||(i[18]=[g("\u9009\u62E9\u6587\u4EF6")])),_:1})]),_:1},8,["file-list","action","on-success","before-upload","accept","on-preview"])]),_:1})]),_:1}),n(_,{span:12},{default:l(()=>[c.declareAmount>=1e3?(D(),j(d,{key:0,label:"\u7533\u62A5\u5355\u4F4D\u4E3B\u8981\u804C\u8D23\u6587\u4EF6\uFF08\u5355\u4F4D\u4E09\u5B9A\u804C\u8D23\uFF09",prop:"mainAccusationDoc"},{default:l(()=>[n(m,{ref:"mainAccusationDocRef","file-list":o.value.mainAccusationDoc,"onUpdate:fileList":i[9]||(i[9]=e=>o.value.mainAccusationDoc=e),class:"upload-demo",action:t(u),multiple:"","on-success":e=>t(v)(e,o.value.mainAccusationDoc),"before-upload":e=>t(F)(e,{types:t(r)}),accept:t(r).map(e=>`.${e}`).join(","),limit:10,"on-preview":t(y)},{tip:l(()=>[w("div",L," \u652F\u6301"+P(t(b))+"\u6587\u4EF6 ",1)]),default:l(()=>[n(f,{plain:"",type:"primary"},{default:l(()=>i[19]||(i[19]=[g("\u9009\u62E9\u6587\u4EF6")])),_:1})]),_:1},8,["file-list","action","on-success","before-upload","accept","on-preview"])]),_:1})):p("",!0)]),_:1})]}),_:1})]),_:1},8,["model"])}}});export{E as default};
|