import{d as pe,B as de,r as E,J as O,c as v,e as r,G as n,i as l,h as s,f as A,F as N,H as Y,k as f,u as o,g as S,t as B,j as b,T as L}from"./index.88314652.js";import{r as U,h as F,i as V,f as I,c as j,b as te,e as J}from"./uploadAction.a771741b.js";const me={class:"el-upload__tip"},fe={class:"el-upload__tip"},be={class:"el-upload__tip"},ve=pe({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 _=u,g=de.dictStore.uploadUrl,T=E(),a=E({}),q=E([]);oe({formRef:T,formData:a}),O(()=>_.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:"\u8BF7\u4E0A\u4F20"}],se=ie;return O(()=>_.basicInfoData,d=>{var e;(d==null?void 0:d.baseProjIsConfidentiality)==="02"?q.value={}:q.value={baseReviewResults:[{required:!0,message:"\u8BF7\u9009\u62E9\u8BC4\u5BA1\u7ED3\u679C"}],equalProtectionLevel:[{required:!0,message:"\u8BF7\u9009\u62E9\u7B49\u4FDD\u5B9A\u7EA7"}],baseReviewOpinion:[{required:!0,message:"\u8BF7\u586B\u5199\u8BC4\u5BA1\u610F\u89C1"}],baseReviewCommentsFile:M,approvalFile:M,baseExpertTotalMoney:[{required:!0,message:"\u8BF7\u586B\u5199\u5EFA\u8BAE\u603B\u6295\u8D44"}],baseExpertYearMoney:[{required:!0,message:"\u8BF7\u586B\u5199\u5EFA\u8BAE\u5E74\u5EA6\u9884\u7B97"}],baseInitialReviewTotalMoney:[{required:!0,message:"\u8BF7\u586B\u5199\u5EFA\u8BAE\u6279\u590D\u603B\u6295\u8D44"}],baseProjReplyAmount:[{required:!0,message:"\u8BF7\u586B\u5199\u5EFA\u8BAE\u6279\u590D\u5E74\u5EA6\u9884\u7B97"}],releaseYearMoney:[{required:!0,message:"\u8BF7\u586B\u5199\u5E74\u5EA6\u9884\u7B97\u4E0B\u8FBE\u91D1\u989D"}],preliminaryDesignScheme:M,preliminaryDesignFile:M},(e=T.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:T,model:a.value,rules:q.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[((G=u.basicInfoData)==null?void 0:G.baseProjSetProg)!=="01"?(r(),n(m,{key:0,span:8},{default:l(()=>[s(p,{label:"\u8BC4\u5BA1\u7ED3\u679C",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),(($=u.basicInfoData)==null?void 0:$.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?void 0:i.includes("01"))&&((x=u.basicInfoData)==null?void 0:x.baseProjSetProg)!=="04"?(r(),n(p,{key:"equalProtectionLevel1",label:"\u7B49\u4FDD\u5B9A\u7EA7",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,C)=>(r(),n(D,{key:C,label:c.label,value:c.value},null,8,["label","value"]))),128))]}),_:1},8,["modelValue"])]),_:1})):(r(),n(p,{key:"equalProtectionLevel2",label:"\u7B49\u4FDD\u5B9A\u7EA7"},{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,C)=>(r(),n(D,{key:C,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:"\u8BC4\u5BA1\u610F\u89C1",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:"\u8BF7\u586B\u5199"},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:"\u8BC4\u5BA1\u610F\u89C1\u9644\u4EF6",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,"\u652F\u6301"+B(o(J))+"\u6587\u4EF6",1)]),default:l(()=>[s(w,{type:"primary",class:"mr-4"},{default:l(()=>e[20]||(e[20]=[b("\u4E0A\u4F20\u6587\u4EF6")])),_: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:"\u7ACB\u9879\u6279\u590D\u6587\u4EF6",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,"\u652F\u6301"+B(o(J))+"\u6587\u4EF6",1)]),default:l(()=>[s(w,{type:"primary",class:"mr-4"},{default:l(()=>e[21]||(e[21]=[b("\u4E0A\u4F20\u6587\u4EF6")])),_: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:"\u5EFA\u8BAE\u603B\u6295\u8D44",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:"\u8BF7\u586B\u5199",min:1e-6,controls:!1,onMousewheel:e[7]||(e[7]=L(()=>{},["prevent"]))},{suffix:l(()=>e[22]||(e[22]=[b("\u4E07\u5143")])),_: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:"\u5EFA\u8BAE\u5E74\u5EA6\u9884\u7B97",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:"\u8BF7\u586B\u5199",min:1e-6,controls:!1,onMousewheel:e[9]||(e[9]=L(()=>{},["prevent"]))},{suffix:l(()=>e[23]||(e[23]=[b("\u4E07\u5143")])),_: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:"\u5EFA\u8BAE\u6279\u590D\u603B\u6295\u8D44",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:"\u8BF7\u586B\u5199",min:1e-6,controls:!1,onMousewheel:e[11]||(e[11]=L(()=>{},["prevent"]))},{suffix:l(()=>e[24]||(e[24]=[b("\u4E07\u5143")])),_: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:"\u5EFA\u8BAE\u6279\u590D\u5E74\u5EA6\u9884\u7B97",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:"\u8BF7\u586B\u5199",min:1e-6,controls:!1,onMousewheel:e[13]||(e[13]=L(()=>{},["prevent"]))},{suffix:l(()=>e[25]||(e[25]=[b("\u4E07\u5143")])),_: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:"\u5E74\u5EA6\u9884\u7B97\u4E0B\u8FBE\u91D1\u989D",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:"\u8BF7\u586B\u5199",min:1e-6,controls:!1,onMousewheel:e[15]||(e[15]=L(()=>{},["prevent"]))},{suffix:l(()=>e[26]||(e[26]=[b("\u4E07\u5143")])),_: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:"\u521D\u6B65\u8BBE\u8BA1\u65B9\u6848",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,"\u652F\u6301"+B(o(J))+"\u6587\u4EF6",1)]),default:l(()=>[s(w,{type:"primary",class:"mr-4"},{default:l(()=>e[27]||(e[27]=[b("\u4E0A\u4F20\u6587\u4EF6")])),_:1})]),_:1},8,["file-list","action","on-success","on-error","before-upload","accept"])]),_:1})):(r(),n(p,{key:"preliminaryDesignScheme2",label:"\u521D\u6B65\u8BBE\u8BA1\u65B9\u6848"},{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"},"\u652F\u6301\u683C\u5F0F\uFF1Apdf",-1)])),default:l(()=>[s(w,{type:"primary",class:"mr-4"},{default:l(()=>e[28]||(e[28]=[b("\u4E0A\u4F20\u6587\u4EF6")])),_: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:"\u521D\u6B65\u8BBE\u8BA1\u65B9\u6848\u6279\u590D\u51FD",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"},"\u652F\u6301\u683C\u5F0F\uFF1Apdf",-1)])),default:l(()=>[s(w,{type:"primary",class:"mr-4"},{default:l(()=>e[30]||(e[30]=[b("\u4E0A\u4F20\u6587\u4EF6")])),_:1})]),_:1},8,["file-list","action","on-success","on-error","before-upload"])]),_:1})):(r(),n(p,{key:"preliminaryDesignFile2",label:"\u521D\u6B65\u8BBE\u8BA1\u65B9\u6848\u6279\u590D\u51FD"},{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"},"\u652F\u6301\u683C\u5F0F\uFF1Apdf",-1)])),default:l(()=>[s(w,{type:"primary",class:"mr-4"},{default:l(()=>e[32]||(e[32]=[b("\u4E0A\u4F20\u6587\u4EF6")])),_: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};