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