25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

2 satır
16KB

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