2026-07-01 16:11:39 +08:00
|
|
|
|
import{_ as ie,V as re,o as m,c as x,e as t,f as n,E as U,j as d,k as b,a5 as ue,h as i,t as c,n as pe,g as z,d as I,a as h,F as E,r as X,q as de}from"./index-C1KISTGN.js";import{a as T}from"./index-42ANG6Sg.js";const ce={class:"evaluation-manage"},me={key:1},fe={class:"supplier-title"},ye={style:{"font-weight":"bold",color:"#409EFF"}},ge={class:"score-summary"},be={style:{color:"#67c23a"}},ve={style:{"margin-bottom":"12px",color:"#606266","font-size":"13px",padding:"0 4px"}},_e={style:{color:"#0052D9"}},xe={__name:"Evaluation",setup(he){const q=b([]),D=b(!1),j=b(null),g=de({count:3,specialties:[]}),V=b([]),S=b("form"),B=b(!1),Y=["医疗设备","药品采购","信息化系统","工程建设","财务审计","法律合规","后勤管理"],R=[{name:"王建国",title:"主任医师",specialty:"医疗设备",unit:"山东省立医院",phone:"13800138001"},{name:"李秀梅",title:"副主任医师",specialty:"药品采购",unit:"齐鲁医院",phone:"13900139002"},{name:"张志远",title:"高级工程师",specialty:"信息化系统",unit:"山东大学",phone:"13700137003"},{name:"刘晓燕",title:"注册会计师",specialty:"财务审计",unit:"山东省审计厅",phone:"13600136004"},{name:"陈伟华",title:"高级工程师",specialty:"工程建设",unit:"山东建筑大学",phone:"13500135005"},{name:"赵明亮",title:"主任药师",specialty:"药品采购",unit:"山东省药品监督管理局",phone:"18600186006"},{name:"孙丽娜",title:"律师",specialty:"法律合规",unit:"山东众成清泰律师事务所",phone:"18800188007"},{name:"周国强",title:"高级工程师",specialty:"医疗设备",unit:"山东医疗器械研究所",phone:"15900159008"},{name:"吴雪峰",title:"副教授",specialty:"信息化系统",unit:"山东师范大学",phone:"15800158009"},{name:"郑海燕",title:"主任护师",specialty:"医疗设备",unit:"山东省肿瘤医院",phone:"15700157010"},{name:"马文博",title:"高级经济师",specialty:"财务审计",unit:"山东省财政厅",phone:"15600156011"},{name:"徐晓东",title:"高级工程师",specialty:"工程建设",unit:"山东省建设厅",phone:"15000150012"},{name:"林静怡",title:"主任药师",specialty:"药品采购",unit:"山东省立医院药剂科",phone:"15100151013"},{name:"黄志强",title:"副教授",specialty:"法律合规",unit:"山东大学法学院",phone:"15200152014"},{name:"谢美玲",title:"高级工程师",specialty:"后勤管理",unit:"山东省后勤管理协会",phone:"15300153015"}],Z=l=>{if(l.openingDate){const e=new Date(l.openingDate).getTime(),r=Date.now(),s=e-r,u=4*24*60*60*1e3;if(s>u){U.warning("离开标大于4天,暂不允许抽取专家");return}}j.value=l,g.count=3,g.specialties=[],V.value=[],S.value="form",D.value=!0},A=()=>{let l=R;if(g.specialties.length){const r=R.filter(s=>g.specialties.includes(s.specialty));l=r.length>=g.count?r:R}const e=[...l].sort(()=>Math.random()-.5);V.value=e.slice(0,g.count),S.value="result"},ee=async()=>{B.value=!0;try{await T.post("/api/bidding/extract-experts",{projectId:j.value.id,experts:V.value})}catch{}j.value.expertCount=g.count,U.success("专家抽取成功"),D.value=!1,B.value=!1},N=b(""),F=async()=>{var l,e;try{const[r,s]=await Promise.all([T.get("/api/bidding/enrollment-summary"),T.get("/api/bidding/list")]),u=((l=s.data)==null?void 0:l.data)||[],k=((e=r.data)==null?void 0:e.data)||[],C=Object.fromEntries(k.map(o=>[o.id,o]));q.value=u.filter(o=>N.value?o.name.includes(N.value):!0).map((o,_)=>{const y={...o,...C[o.id]},p=[1,10,3,7,2,15,5,20,4,8],w=new Date;return w.setDate(w.getDate()+p[_%p.length]),y.openingDate=w.toISOString().replace("T"," ").substring(0,19),(_===0||_===1)&&(y.status=2,y.expertCount=0),y})}catch{U.error("加载数据失败")}};re(F);const M=b(!1),v=b(null),$=b([]),te=async l=>{var e,r,s;v.value=l,$.value=[];try{const k=((e=(await T.get(`/api/bidding/${l.id}`)).data)==null?void 0:e.data)||{},C=k.enrollments||[],_=(((r=(await T.get("/api/bidding/evaluations")).data)==null?void 0:r.data)||[]).filter(p=>p.projectCode===l.code),y={};for(const p of C)y[p.supplierId]={supplierId:p.supplierId,supplie
|