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
13KB

  1. import{d as pe,D as de,r as C,L as E,c as b,e as r,I as n,i as e,h as s,f as O,F as A,J as N,k as f,u as o,g as I,t as Y,j as c,V as k}from"./index.ce13ff81.js";import{r as x,h as _,i as S,f as F,c as V,b as te,e as J}from"./uploadAction.f62a56f0.js";const me={class:"el-upload__tip"},fe={class:"el-upload__tip"},ce={class:"el-upload__tip"},be=I("div",{class:"el-upload__tip"},"\u652F\u6301\u683C\u5F0F\uFF1Apdf",-1),ve=I("div",{class:"el-upload__tip"},"\u652F\u6301\u683C\u5F0F\uFF1Apdf",-1),ye=I("div",{class:"el-upload__tip"},"\u652F\u6301\u683C\u5F0F\uFF1Apdf",-1),ge=pe({name:"projectApprovalInfo"}),we=Object.assign(ge,{props:{detail:{type:Object},basicInfoData:{type:Object},dictionaryList:{type:Array,default:()=>[]}},emits:["getApprovalInfoData"],setup(u,{expose:oe,emit:ie}){const B=u,g=de.dictStore.uploadUrl,U=C(),a=C({}),T=C([]);oe({formRef:U,formData:a}),E(()=>B.detail,d=>{var l,D,P,p;d&&(a.value={...d.approve,baseReviewCommentsFile:((l=d.approve)==null?void 0:l.baseReviewCommentsFile)&&x(JSON.parse(d.approve.baseReviewCommentsFile))||[],approvalFile:((D=d.approve)==null?void 0:D.approvalFile)&&x(JSON.parse(d.approve.approvalFile))||[],preliminaryDesignScheme:((P=d.approve)==null?void 0:P.preliminaryDesignScheme)&&x(JSON.parse(d.approve.preliminaryDesignScheme))||[],preliminaryDesignFile:((p=d.approve)==null?void 0:p.preliminaryDesignFile)&&x(JSON.parse(d.approve.preliminaryDesignFile))||[]})});const L=[{required:!0,message:"\u8BF7\u4E0A\u4F20"}],se=ie;return E(()=>B.basicInfoData,d=>{var l;(d==null?void 0:d.baseProjIsConfidentiality)==="02"?T.value={}:T.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:L,approvalFile:L,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:L,preliminaryDesignFile:L},(l=U.value)==null||l.clearValidate()},{deep:!0,immediate:!0}),E(()=>a.value,d=>{se("getApprovalInfoData",d)},{deep:!0}),(d,l)=>{const D=b("el-option"),P=b("el-select"),p=b("el-form-item"),m=b("el-col"),re=b("el-input"),w=b("el-button"),R=b("el-upload"),j=b("el-input-number"),ne=b("el-row"),ue=b("el-form");return r(),n(ue,{ref_key:"formRef",ref:U,model:a.value,rules:T.value,"label-position":"top","label-suffix":":","scroll-to-error":"","validate-on-rule-change":!1},{default:e(()=>[s(ne,{gutter:40},{default:e(()=>{var $,h,G,Q,W,z,H,K,X,Z,ee,le,ae;return[(($=u.basicInfoData)==null?void 0:$.baseProjSetProg)!=="01"?(r(),n(m,{key:0,span:8},{default:e(()=>[s(p,{label:"\u8BC4\u5BA1\u7ED3\u679C",prop:"baseReviewResults"},{default:e(()=>[s(P,{modelValue:a.value.baseReviewResults,"onUpdate:modelValue":l[0]||(l[0]=t=>a.value.baseReviewResults=t),class:"w-full"},{default:e(()=>{var t;return[(r(!0),O(A,null,N((t=u.dictionaryList)==null?void 0:t.filter(i=>i.type==="REVIEW_RESULTS"),(i,M)=>(r(),n(D,{key:M,label:i.label,value:i.value},null,8,["label","value"]))),128))]}),_:1},8,["modelValue"])]),_:1})]),_:1})):f("",!0),((h=u.basicInfoData)==null?void 0:h.baseProjIsConfidentiality)==="01"&&!["01","02","03"].includes((G=u.basicInfoData)==null?void 0:G.baseProjSetProg)?(r(),n(m,{key:1,span:8},{default:e(()=>{var t,i,M;return[((i=(t=u.basicInfoData)==null?void 0:t.baseConstructionType)==null?void 0:i.includes("01"))&&((M=u.basicInfoData)==null?void 0:M.baseProjSetProg)!=="04"?(r(),n(p,{key:"equalProtectionLevel1",label:"\u7B49\u4FDD\u5B9A\u7EA7",prop:"equalProtectionLevel"},{default:e(()=>[s(P,{modelValue:a.value.equalProtectionLevel,"onUpdate:modelValue":l[1]||(l[1]=v=>a.value.equalProtectionLevel=v),class:"w-full"},{default:e(()=>{var v;return[(r(!0),O(A,null,N((v=u.dictionaryList)==null?void 0:v.filter(y=>y.type==="EQUAL_PROTECTION_RATING"),(y,q)=>(r(),n(D,{key:q,label:y.label,value:y.value},null,8,["label","value"]))),128))]}),_:1},8,["modelValue"])]),_:1})):(r(),n(p,{key:"equalProtectionLevel2",label:"\u7B49\u4FDD\u5B9A\u7EA7"},{default:e(()=>[s(P,{modelValue:a.value.equalProtectionLevel,"onUpdate:modelValue":l[2]||(l[2]=v=>a.value.equalProtectionLevel=v),class:"w-full"},{default:e(()=>{var v;return[(r(!0),O(A,null,N((v=u.dictionaryList)==null?void 0:v.filter(y=>y.type==="EQUAL_PROTECTION_RATING"),(y,q)=>(r(),n(D,{key:q,label:y.label,value:y.value},null,8,["label","value"]))),128))]}),_:1},8,["modelValue"])]),_:1}))]}),_:1})):f("",!0),((Q=u.basicInfoData)==null?void 0:Q.baseProjSetProg)!=="01"?(r(),n(m,{key:2,span:24},{default:e(()=>[s(p,{label:"\u8BC4\u5BA1\u610F\u89C1",prop:"baseReviewOpinion"},{default:e(()=>[s(re,{modelValue:a.value.baseReviewOpinion,"onUpdate:modelValue":l[3]||(l[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:e(()=>[s(p,{label:"\u8BC4\u5BA1\u610F\u89C1\u9644\u4EF6",prop:"baseReviewCommentsFile"},{default:e(()=>[s(R,{"file-list":a.value.baseReviewCommentsFile,"onUpdate:fileList":l[4]||(l[4]=t=>a.value.baseReviewCommentsFile=t),class:"w-full",action:o(g),"on-success":t=>o(_)(t,a.value.baseReviewCommentsFile),"on-error":o(S),"before-upload":t=>o(F)(t,{types:o(V)}),accept:o(V).map(t=>`.${t}`).join(","),multiple:"",limit:10,"on-preview":o(te)},{tip:e(()=>[I("div",me,"\u652F\u6301"+Y(o(J))+"\u6587\u4EF6",1)]),default:e(()=>[s(w,{type:"primary",class:"mr-4"},{default:e(()=>[c("\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:e(()=>[s(p,{label:"\u7ACB\u9879\u6279\u590D\u6587\u4EF6",prop:"approvalFile"},{default:e(()=>[s(R,{"file-list":a.value.approvalFile,"onUpdate:fileList":l[5]||(l[5]=t=>a.value.approvalFile=t),class:"w-full",action:o(g),"on-success":t=>o(_)(t,a.value.approvalFile),"on-error":o(S),"before-upload":t=>o(F)(t,{types:o(V)}),accept:o(V).map(t=>`.${t}`).join(","),multiple:"",limit:10,"on-preview":o(te)},{tip:e(()=>[I("div",fe,"\u652F\u6301"+Y(o(J))+"\u6587\u4EF6",1)]),default:e(()=>[s(w,{type:"primary",class:"mr-4"},{default:e(()=>[c("\u4E0A\u4F20\u6587\u4EF6")]),_:1})]),_:1},8,["file-list","action","on-success","on-error","before-upload","accept","on-preview"])]),_:1})]),_:1})),["01","03"].includes((H=u.basicInfoData)==null?void 0:H.baseProjSetProg)?f("",!0):(r(),n(m,{key:5,span:8},{default:e(()=>[s(p,{label:"\u5EFA\u8BAE\u603B\u6295\u8D44",prop:"baseExpertTotalMoney"},{default:e(()=>[s(j,{modelValue:a.value.baseExpertTotalMoney,"onUpdate:modelValue":l[6]||(l[6]=t=>a.value.baseExpertTotalMoney=t),class:"input-amount",placeholder:"\u8BF7\u586B\u5199",min:1e-6,controls:!1,onMousewheel:l[7]||(l[7]=k(()=>{},["prevent"]))},{suffix:e(()=>[c("\u4E07\u5143")]),_:1},8,["modelValue"])]),_:1})]),_:1})),["01","03"].includes((K=u.basicInfoData)==null?void 0:K.baseProjSetProg)?f("",!0):(r(),n(m,{key:6,span:8},{default:e(()=>[s(p,{label:"\u5EFA\u8BAE\u5E74\u5EA6\u9884\u7B97",prop:"baseExpertYearMoney"},{default:e(()=>[s(j,{modelValue:a.value.baseExpertYearMoney,"onUpdate:modelValue":l[8]||(l[8]=t=>a.value.baseExpertYearMoney=t),class:"input-amount",placeholder:"\u8BF7\u586B\u5199",min:1e-6,controls:!1,onMousewheel:l[9]||(l[9]=k(()=>{},["prevent"]))},{suffix:e(()=>[c("\u4E07\u5143")]),_:1},8,["modelValue"])]),_:1})]),_:1})),["01","02","03"].includes((X=u.basicInfoData)==null?void 0:X.baseProjSetProg)?f("",!0):(r(),n(m,{key:7,span:8},{default:e(()=>[s(p,{label:"\u5EFA\u8BAE\u6279\u590D\u603B\u6295\u8D44",prop:"baseInitialReviewTotalMoney"},{default:e(()=>[s(j,{modelValue:a.value.baseInitialReviewTotalMoney,"onUpdate:modelValue":l[10]||(l[10]=t=>a.value.baseInitialReviewTotalMoney=t),class:"input-amount",placeholder:"\u8BF7\u586B\u5199",min:1e-6,controls:!1,onMousewheel:l[11]||(l[11]=k(()=>{},["prevent"]))},{suffix:e(()=>[c("\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:8,span:8},{default:e(()=>[s(p,{label:"\u5EFA\u8BAE\u6279\u590D\u5E74\u5EA6\u9884\u7B97",prop:"baseProjReplyAmount"},{default:e(()=>[s(j,{modelValue:a.value.baseProjReplyAmount,"onUpdate:modelValue":l[12]||(l[12]=t=>a.value.baseProjReplyAmount=t),class:"input-amount",placeholder:"\u8BF7\u586B\u5199",min:1e-6,controls:!1,onMousewheel:l[13]||(l[13]=k(()=>{},["prevent"]))},{suffix:e(()=>[c("\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:e(()=>[s(p,{label:"\u5E74\u5EA6\u9884\u7B97\u4E0B\u8FBE\u91D1\u989D",prop:"releaseYearMoney"},{default:e(()=>[s(j,{modelValue:a.value.releaseYearMoney,"onUpdate:modelValue":l[14]||(l[14]=t=>a.value.releaseYearMoney=t),class:"input-amount",placeholder:"\u8BF7\u586B\u5199",min:1e-6,controls:!1,onMousewheel:l[15]||(l[15]=k(()=>{},["prevent"]))},{suffix:e(()=>[c("\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:e(()=>{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:e(()=>[s(R,{"file-list":a.value.preliminaryDesignScheme,"onUpdate:fileList":l[16]||(l[16]=i=>a.value.preliminaryDesignScheme=i),class:"w-full",action:o(g),"on-success":i=>o(_)(i,a.value.preliminaryDesignScheme),"on-error":o(S),"before-upload":i=>o(F)(i,{types:o(V)}),accept:o(V).map(i=>`.${i}`).join(","),multiple:"",limit:10},{tip:e(()=>[I("div",ce,"\u652F\u6301"+Y(o(J))+"\u6587\u4EF6",1)]),default:e(()=>[s(w,{type:"primary",class:"mr-4"},{default:e(()=>[c("\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:e(()=>[s(R,{"file-list":a.value.preliminaryDesignScheme,"onUpdate:fileList":l[17]||(l[17]=i=>a.value.preliminaryDesignScheme=i),class:"w-full",action:o(g),"on-success":i=>o(_)(i,a.value.preliminaryDesignScheme),"on-error":o(S),"before-upload":i=>o(F)(i,{types:["application/pdf"]}),accept:".pdf",multiple:"",limit:10},{tip:e(()=>[be]),default:e(()=>[s(w,{type:"primary",class:"mr-4"},{default:e(()=>[c("\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:e(()=>{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:e(()=>[s(R,{"file-list":a.value.preliminaryDesignFile,"onUpdate:fileList":l[18]||(l[18]=i=>a.value.preliminaryDesignFile=i),class:"w-full",action:o(g),"on-success":i=>o(_)(i,a.value.preliminaryDesignFile),"on-error":o(S),"before-upload":i=>o(F)(i,{types:["application/pdf"]}),accept:".pdf",multiple:"",limit:10},{tip:e(()=>[ve]),default:e(()=>[s(w,{type:"primary",class:"mr-4"},{default:e(()=>[c("\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:e(()=>[s(R,{"file-list":a.value.preliminaryDesignFile,"onUpdate:fileList":l[19]||(l[19]=i=>a.value.preliminaryDesignFile=i),class:"w-full",action:o(g),"on-success":i=>o(_)(i,a.value.preliminaryDesignFile),"on-error":o(S),"before-upload":i=>o(F)(i,{types:["application/pdf"]}),accept:".pdf",multiple:"",limit:10},{tip:e(()=>[ye]),default:e(()=>[s(w,{type:"primary",class:"mr-4"},{default:e(()=>[c("\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{we as default};