|
- import{E as pe,r as C,B as O,b as v,c as r,L as n,h as l,f as s,d as A,F as N,H as Y,j as f,u as o,e as S,t as B,i as b,N as L,k as de}from"./index-dd5fae99.js";import{r as U,h as F,i as V,f as I,b as j,c as te,e as _}from"./uploadAction-3962500e.js";const me={class:"el-upload__tip"},fe={class:"el-upload__tip"},be={class:"el-upload__tip"},ve=de({name:"projectApprovalInfo"}),ge=Object.assign(ve,{props:{detail:{type:Object},basicInfoData:{type:Object},dictionaryList:{type:Array,default:()=>[]}},emits:["getApprovalInfoData"],setup(u,{expose:oe,emit:ie}){const J=u,g=pe.dictStore.uploadUrl,E=C(),a=C({}),T=C([]);oe({formRef:E,formData:a}),O(()=>J.detail,d=>{var e,D,P,p;d&&(a.value={...d.approve,baseReviewCommentsFile:((e=d.approve)==null?void 0:e.baseReviewCommentsFile)&&U(JSON.parse(d.approve.baseReviewCommentsFile))||[],approvalFile:((D=d.approve)==null?void 0:D.approvalFile)&&U(JSON.parse(d.approve.approvalFile))||[],preliminaryDesignScheme:((P=d.approve)==null?void 0:P.preliminaryDesignScheme)&&U(JSON.parse(d.approve.preliminaryDesignScheme))||[],preliminaryDesignFile:((p=d.approve)==null?void 0:p.preliminaryDesignFile)&&U(JSON.parse(d.approve.preliminaryDesignFile))||[]})});const M=[{required:!0,message:"请上传"}],se=ie;return O(()=>J.basicInfoData,d=>{var e;(d==null?void 0:d.baseProjIsConfidentiality)==="02"?T.value={}:T.value={baseReviewResults:[{required:!0,message:"请选择评审结果"}],equalProtectionLevel:[{required:!0,message:"请选择等保定级"}],baseReviewOpinion:[{required:!0,message:"请填写评审意见"}],baseReviewCommentsFile:M,approvalFile:M,baseExpertTotalMoney:[{required:!0,message:"请填写建议总投资"}],baseExpertYearMoney:[{required:!0,message:"请填写建议年度预算"}],baseInitialReviewTotalMoney:[{required:!0,message:"请填写建议批复总投资"}],baseProjReplyAmount:[{required:!0,message:"请填写建议批复年度预算"}],releaseYearMoney:[{required:!0,message:"请填写年度预算下达金额"}],preliminaryDesignScheme:M,preliminaryDesignFile:M},(e=E.value)==null||e.clearValidate()},{deep:!0,immediate:!0}),O(()=>a.value,d=>{se("getApprovalInfoData",d)},{deep:!0}),(d,e)=>{const D=v("el-option"),P=v("el-select"),p=v("el-form-item"),m=v("el-col"),re=v("el-input"),w=v("el-button"),R=v("el-upload"),k=v("el-input-number"),ne=v("el-row"),ue=v("el-form");return r(),n(ue,{ref_key:"formRef",ref:E,model:a.value,rules:T.value,"label-position":"top","label-suffix":":","scroll-to-error":"","validate-on-rule-change":!1},{default:l(()=>[s(ne,{gutter:40},{default:l(()=>{var $,G,Q,H,W,z,K,X,Z,h,ee,le,ae;return[(($=u.basicInfoData)==null?void 0:$.baseProjSetProg)!=="01"?(r(),n(m,{key:0,span:8},{default:l(()=>[s(p,{label:"评审结果",prop:"baseReviewResults"},{default:l(()=>[s(P,{modelValue:a.value.baseReviewResults,"onUpdate:modelValue":e[0]||(e[0]=t=>a.value.baseReviewResults=t),class:"w-full"},{default:l(()=>{var t;return[(r(!0),A(N,null,Y((t=u.dictionaryList)==null?void 0:t.filter(i=>i.type==="REVIEW_RESULTS"),(i,x)=>(r(),n(D,{key:x,label:i.label,value:i.value},null,8,["label","value"]))),128))]}),_:1},8,["modelValue"])]),_:1})]),_:1})):f("",!0),((G=u.basicInfoData)==null?void 0:G.baseProjIsConfidentiality)==="01"&&!["01","02","03"].includes((Q=u.basicInfoData)==null?void 0:Q.baseProjSetProg)?(r(),n(m,{key:1,span:8},{default:l(()=>{var t,i,x;return[(i=(t=u.basicInfoData)==null?void 0:t.baseConstructionType)!=null&&i.includes("01")&&((x=u.basicInfoData)==null?void 0:x.baseProjSetProg)!=="04"?(r(),n(p,{key:"equalProtectionLevel1",label:"等保定级",prop:"equalProtectionLevel"},{default:l(()=>[s(P,{modelValue:a.value.equalProtectionLevel,"onUpdate:modelValue":e[1]||(e[1]=y=>a.value.equalProtectionLevel=y),class:"w-full"},{default:l(()=>{var y;return[(r(!0),A(N,null,Y((y=u.dictionaryList)==null?void 0:y.filter(c=>c.type==="EQUAL_PROTECTION_RATING"),(c,q)=>(r(),n(D,{key:q,label:c.label,value:c.value},null,8,["label","value"]))),128))]}),_:1},8,["modelValue"])]),_:1})):(r(),n(p,{key:"equalProtectionLevel2",label:"等保定级"},{default:l(()=>[s(P,{modelValue:a.value.equalProtectionLevel,"onUpdate:modelValue":e[2]||(e[2]=y=>a.value.equalProtectionLevel=y),class:"w-full"},{default:l(()=>{var y;return[(r(!0),A(N,null,Y((y=u.dictionaryList)==null?void 0:y.filter(c=>c.type==="EQUAL_PROTECTION_RATING"),(c,q)=>(r(),n(D,{key:q,label:c.label,value:c.value},null,8,["label","value"]))),128))]}),_:1},8,["modelValue"])]),_:1}))]}),_:1})):f("",!0),((H=u.basicInfoData)==null?void 0:H.baseProjSetProg)!=="01"?(r(),n(m,{key:2,span:24},{default:l(()=>[s(p,{label:"评审意见",prop:"baseReviewOpinion"},{default:l(()=>[s(re,{modelValue:a.value.baseReviewOpinion,"onUpdate:modelValue":e[3]||(e[3]=t=>a.value.baseReviewOpinion=t),type:"textarea","show-word-limit":"",maxlength:500,placeholder:"请填写"},null,8,["modelValue"])]),_:1})]),_:1})):f("",!0),((W=u.basicInfoData)==null?void 0:W.baseProjSetProg)!=="01"?(r(),n(m,{key:3,span:8},{default:l(()=>[s(p,{label:"评审意见附件",prop:"baseReviewCommentsFile"},{default:l(()=>[s(R,{"file-list":a.value.baseReviewCommentsFile,"onUpdate:fileList":e[4]||(e[4]=t=>a.value.baseReviewCommentsFile=t),class:"w-full",action:o(g),"on-success":t=>o(F)(t,a.value.baseReviewCommentsFile),"on-error":o(V),"before-upload":t=>o(I)(t,{types:o(j)}),accept:o(j).map(t=>`.${t}`).join(","),multiple:"",limit:10,"on-preview":o(te)},{tip:l(()=>[S("div",me,"支持"+B(o(_))+"文件",1)]),default:l(()=>[s(w,{type:"primary",class:"mr-4"},{default:l(()=>e[20]||(e[20]=[b("上传文件")])),_:1})]),_:1},8,["file-list","action","on-success","on-error","before-upload","accept","on-preview"])]),_:1})]),_:1})):f("",!0),["01","02","03"].includes((z=u.basicInfoData)==null?void 0:z.baseProjSetProg)?f("",!0):(r(),n(m,{key:4,span:8},{default:l(()=>[s(p,{label:"立项批复文件",prop:"approvalFile"},{default:l(()=>[s(R,{"file-list":a.value.approvalFile,"onUpdate:fileList":e[5]||(e[5]=t=>a.value.approvalFile=t),class:"w-full",action:o(g),"on-success":t=>o(F)(t,a.value.approvalFile),"on-error":o(V),"before-upload":t=>o(I)(t,{types:o(j)}),accept:o(j).map(t=>`.${t}`).join(","),multiple:"",limit:10,"on-preview":o(te)},{tip:l(()=>[S("div",fe,"支持"+B(o(_))+"文件",1)]),default:l(()=>[s(w,{type:"primary",class:"mr-4"},{default:l(()=>e[21]||(e[21]=[b("上传文件")])),_:1})]),_:1},8,["file-list","action","on-success","on-error","before-upload","accept","on-preview"])]),_:1})]),_:1})),["01","03"].includes((K=u.basicInfoData)==null?void 0:K.baseProjSetProg)?f("",!0):(r(),n(m,{key:5,span:8},{default:l(()=>[s(p,{label:"建议总投资",prop:"baseExpertTotalMoney"},{default:l(()=>[s(k,{modelValue:a.value.baseExpertTotalMoney,"onUpdate:modelValue":e[6]||(e[6]=t=>a.value.baseExpertTotalMoney=t),class:"input-amount",placeholder:"请填写",min:1e-6,controls:!1,onMousewheel:e[7]||(e[7]=L(()=>{},["prevent"]))},{suffix:l(()=>e[22]||(e[22]=[b("万元")])),_:1},8,["modelValue"])]),_:1})]),_:1})),["01","03"].includes((X=u.basicInfoData)==null?void 0:X.baseProjSetProg)?f("",!0):(r(),n(m,{key:6,span:8},{default:l(()=>[s(p,{label:"建议年度预算",prop:"baseExpertYearMoney"},{default:l(()=>[s(k,{modelValue:a.value.baseExpertYearMoney,"onUpdate:modelValue":e[8]||(e[8]=t=>a.value.baseExpertYearMoney=t),class:"input-amount",placeholder:"请填写",min:1e-6,controls:!1,onMousewheel:e[9]||(e[9]=L(()=>{},["prevent"]))},{suffix:l(()=>e[23]||(e[23]=[b("万元")])),_:1},8,["modelValue"])]),_:1})]),_:1})),["01","02","03"].includes((Z=u.basicInfoData)==null?void 0:Z.baseProjSetProg)?f("",!0):(r(),n(m,{key:7,span:8},{default:l(()=>[s(p,{label:"建议批复总投资",prop:"baseInitialReviewTotalMoney"},{default:l(()=>[s(k,{modelValue:a.value.baseInitialReviewTotalMoney,"onUpdate:modelValue":e[10]||(e[10]=t=>a.value.baseInitialReviewTotalMoney=t),class:"input-amount",placeholder:"请填写",min:1e-6,controls:!1,onMousewheel:e[11]||(e[11]=L(()=>{},["prevent"]))},{suffix:l(()=>e[24]||(e[24]=[b("万元")])),_:1},8,["modelValue"])]),_:1})]),_:1})),["01","02","03"].includes((h=u.basicInfoData)==null?void 0:h.baseProjSetProg)?f("",!0):(r(),n(m,{key:8,span:8},{default:l(()=>[s(p,{label:"建议批复年度预算",prop:"baseProjReplyAmount"},{default:l(()=>[s(k,{modelValue:a.value.baseProjReplyAmount,"onUpdate:modelValue":e[12]||(e[12]=t=>a.value.baseProjReplyAmount=t),class:"input-amount",placeholder:"请填写",min:1e-6,controls:!1,onMousewheel:e[13]||(e[13]=L(()=>{},["prevent"]))},{suffix:l(()=>e[25]||(e[25]=[b("万元")])),_:1},8,["modelValue"])]),_:1})]),_:1})),["05","06","07","00"].includes((ee=u.basicInfoData)==null?void 0:ee.baseProjSetProg)?(r(),n(m,{key:9,span:8},{default:l(()=>[s(p,{label:"年度预算下达金额",prop:"releaseYearMoney"},{default:l(()=>[s(k,{modelValue:a.value.releaseYearMoney,"onUpdate:modelValue":e[14]||(e[14]=t=>a.value.releaseYearMoney=t),class:"input-amount",placeholder:"请填写",min:1e-6,controls:!1,onMousewheel:e[15]||(e[15]=L(()=>{},["prevent"]))},{suffix:l(()=>e[26]||(e[26]=[b("万元")])),_:1},8,["modelValue"])]),_:1})]),_:1})):f("",!0),a.value.baseProjReplyAmount>=5e3&&["04","05","06","07","00"].includes((le=u.basicInfoData)==null?void 0:le.baseProjSetProg)?(r(),n(m,{key:10,span:8},{default:l(()=>{var t;return[((t=u.basicInfoData)==null?void 0:t.baseProjSetProg)!=="04"?(r(),n(p,{key:"preliminaryDesignScheme1",label:"初步设计方案",prop:"preliminaryDesignScheme"},{default:l(()=>[s(R,{"file-list":a.value.preliminaryDesignScheme,"onUpdate:fileList":e[16]||(e[16]=i=>a.value.preliminaryDesignScheme=i),class:"w-full",action:o(g),"on-success":i=>o(F)(i,a.value.preliminaryDesignScheme),"on-error":o(V),"before-upload":i=>o(I)(i,{types:o(j)}),accept:o(j).map(i=>`.${i}`).join(","),multiple:"",limit:10},{tip:l(()=>[S("div",be,"支持"+B(o(_))+"文件",1)]),default:l(()=>[s(w,{type:"primary",class:"mr-4"},{default:l(()=>e[27]||(e[27]=[b("上传文件")])),_:1})]),_:1},8,["file-list","action","on-success","on-error","before-upload","accept"])]),_:1})):(r(),n(p,{key:"preliminaryDesignScheme2",label:"初步设计方案"},{default:l(()=>[s(R,{"file-list":a.value.preliminaryDesignScheme,"onUpdate:fileList":e[17]||(e[17]=i=>a.value.preliminaryDesignScheme=i),class:"w-full",action:o(g),"on-success":i=>o(F)(i,a.value.preliminaryDesignScheme),"on-error":o(V),"before-upload":i=>o(I)(i,{types:["application/pdf"]}),accept:".pdf",multiple:"",limit:10},{tip:l(()=>e[29]||(e[29]=[S("div",{class:"el-upload__tip"},"支持格式:pdf",-1)])),default:l(()=>[s(w,{type:"primary",class:"mr-4"},{default:l(()=>e[28]||(e[28]=[b("上传文件")])),_:1})]),_:1},8,["file-list","action","on-success","on-error","before-upload"])]),_:1}))]}),_:1})):f("",!0),a.value.baseProjReplyAmount>=5e3&&["04","05","06","07","00"].includes((ae=u.basicInfoData)==null?void 0:ae.baseProjSetProg)?(r(),n(m,{key:11,span:8},{default:l(()=>{var t;return[((t=u.basicInfoData)==null?void 0:t.baseProjSetProg)!=="04"?(r(),n(p,{key:"preliminaryDesignFile1",label:"初步设计方案批复函",prop:"preliminaryDesignFile"},{default:l(()=>[s(R,{"file-list":a.value.preliminaryDesignFile,"onUpdate:fileList":e[18]||(e[18]=i=>a.value.preliminaryDesignFile=i),class:"w-full",action:o(g),"on-success":i=>o(F)(i,a.value.preliminaryDesignFile),"on-error":o(V),"before-upload":i=>o(I)(i,{types:["application/pdf"]}),accept:".pdf",multiple:"",limit:10},{tip:l(()=>e[31]||(e[31]=[S("div",{class:"el-upload__tip"},"支持格式:pdf",-1)])),default:l(()=>[s(w,{type:"primary",class:"mr-4"},{default:l(()=>e[30]||(e[30]=[b("上传文件")])),_:1})]),_:1},8,["file-list","action","on-success","on-error","before-upload"])]),_:1})):(r(),n(p,{key:"preliminaryDesignFile2",label:"初步设计方案批复函"},{default:l(()=>[s(R,{"file-list":a.value.preliminaryDesignFile,"onUpdate:fileList":e[19]||(e[19]=i=>a.value.preliminaryDesignFile=i),class:"w-full",action:o(g),"on-success":i=>o(F)(i,a.value.preliminaryDesignFile),"on-error":o(V),"before-upload":i=>o(I)(i,{types:["application/pdf"]}),accept:".pdf",multiple:"",limit:10},{tip:l(()=>e[33]||(e[33]=[S("div",{class:"el-upload__tip"},"支持格式:pdf",-1)])),default:l(()=>[s(w,{type:"primary",class:"mr-4"},{default:l(()=>e[32]||(e[32]=[b("上传文件")])),_:1})]),_:1},8,["file-list","action","on-success","on-error","before-upload"])]),_:1}))]}),_:1})):f("",!0)]}),_:1})]),_:1},8,["model","rules"])}}});export{ge as default};
|