您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

expertReviewInfo.0039d2f1.js 3.6KB

1
  1. import{e as A}from"./projectStore.93a92252.js";import S from"./memberOpinion.5dc61cfd.js";import{N as B}from"./index.0c2b3f6e.js";import{_ as C}from"./index.b8af1d9b.js";import{d as U,r as D,o as $,c as f,e as d,f as T,h as i,i as r,j as V,t as O,F as R,H as j,G as g}from"./index.88314652.js";const E=U({name:"approvalInfo"}),z=Object.assign(E,{props:{detailData:Object},setup(c){const F=c,k=D([]),v=D(),M=async()=>{var n,u;const N=await A(F.detailData.projectCode);v.value=(u=(n=N.data)==null?void 0:n.reviews)==null?void 0:u.map(p=>{var _,y;return{...p,finalReview:[{...p.finalReview,reviewTemplateOptions:((y=(_=p.finalReview)==null?void 0:_.reviewTemplateOptions)==null?void 0:y.map(t=>{var a,e;const m=N.data.templates.find(l=>p.finalReview.templateId===l.templateId).templates;return{...t,title:(a=m.find(l=>l.serialNo===t.questionSerialNo))==null?void 0:a.title,optionsValue:(e=m.find(l=>l.serialNo===t.questionSerialNo))==null?void 0:e.options.filter(l=>t.optionSerialNo.includes(l.serialNo)).map(l=>l.option).join("\u3001")}}))||[]}],teamMemberReviews:p.teamMemberReviews.map(t=>{var m;return{...t,reviewTemplateOptions:((m=t==null?void 0:t.reviewTemplateOptions)==null?void 0:m.map(a=>{var l,w;const e=N.data.templates.find(o=>t.templateId===o.templateId).templates;return{...a,title:(l=e.find(o=>o.serialNo===a.questionSerialNo))==null?void 0:l.title,optionsValue:(w=e.find(o=>o.serialNo===a.questionSerialNo))==null?void 0:w.options.filter(o=>a.optionSerialNo.includes(o.serialNo)).map(o=>o.option).join("\u3001")}}))||[]}})}})},b=D(new Array(4).fill("\u6700\u7EC8\u610F\u89C1")),q=["\u521D\u6B65\u65B9\u6848\u8BC4\u5BA1","\u90E8\u95E8\u8054\u5BA1","\u5EFA\u8BBE\u65B9\u6848\u8BC4\u5BA1","\u9A8C\u6536\u8BC4\u5BA1"];return $(()=>{M()}),(N,n)=>{const u=f("el-descriptions-item"),p=f("el-descriptions"),_=f("el-radio-button"),y=f("el-radio-group"),t=f("el-collapse-item"),m=f("el-collapse");return d(),T(R,null,[i(p,{column:2,border:"",class:"mb-16"},{default:r(()=>[i(u,{label:"\u5EFA\u8BAE\u603B\u6295\u8D44"},{default:r(()=>[V(O(c.detailData.proposeTotalInvest||"-")+"\u4E07\u5143 ",1)]),_:1}),i(u,{label:"\u5EFA\u8BAE\u5E74\u5EA6\u9884\u7B97"},{default:r(()=>[V(O(c.detailData.proposeAnnualBudget||"-")+"\u4E07\u5143 ",1)]),_:1}),i(u,{label:"\u8BC4\u5BA1\u610F\u89C1\u9644\u4EF6",span:2},{default:r(()=>[(d(!0),T(R,null,j(c.detailData.proposeAttachFiles&&JSON.parse(c.detailData.proposeAttachFiles),(a,e)=>(d(),T("p",{key:e,class:"mb-4"},[i(C,{"file-name":a.originalFileName,"file-id":a.id,"is-down-load":!0},null,8,["file-name","file-id"])]))),128))]),_:1})]),_:1}),i(m,{modelValue:k.value,"onUpdate:modelValue":n[0]||(n[0]=a=>k.value=a)},{default:r(()=>[(d(),T(R,null,j(q,(a,e)=>i(t,{key:e,name:a,title:a},{default:r(()=>{var l,w,o,I;return[i(y,{modelValue:b.value[e],"onUpdate:modelValue":s=>b.value[e]=s,class:"mb-16"},{default:r(()=>[i(_,{label:"\u6700\u7EC8\u610F\u89C1"},{default:r(()=>n[1]||(n[1]=[V("\u6700\u7EC8\u610F\u89C1")])),_:1}),i(_,{label:"\u7EC4\u5458\u610F\u89C1"},{default:r(()=>n[2]||(n[2]=[V("\u7EC4\u5458\u610F\u89C1")])),_:1})]),_:2},1032,["modelValue","onUpdate:modelValue"]),((l=v.value)==null?void 0:l.find(s=>s.reviewType===e+1))&&b.value[e]==="\u6700\u7EC8\u610F\u89C1"?(d(),g(S,{key:0,"member-opinions":(w=v.value)==null?void 0:w.find(s=>s.reviewType===e+1).finalReview},null,8,["member-opinions"])):((o=v.value)==null?void 0:o.find(s=>s.reviewType===e+1))&&b.value[e]==="\u7EC4\u5458\u610F\u89C1"?(d(),g(S,{key:1,"member-opinions":(I=v.value)==null?void 0:I.find(s=>s.reviewType===e+1).teamMemberReviews},null,8,["member-opinions"])):(d(),g(B,{key:2}))]}),_:2},1032,["name","title"])),64))]),_:1},8,["modelValue"])],64)}}});export{z as default};