zcui/frontend/dist/assets/AwardNotice-CR2iqB-s.js

2 lines
11 KiB
JavaScript
Raw Normal View History

import{_ as te,V as ae,o as r,c as D,e as l,f as t,j as p,k as S,q as le,g as f,d as V,F as $,r as ne,a as i,t as s,h as o,m as j,af as O,L as oe,i as se,E as J}from"./index-C1KISTGN.js";const ie={class:"award-notice"},re={class:"card-header"},de={class:"notice-card__header"},ue={class:"notice-card__title"},pe={class:"notice-card__body"},ce={class:"notice-card__winner"},fe={key:0,class:"notice-card__congrats"},me={class:"notice-card__footer"},ge={style:{color:"#67c23a","font-weight":"bold","font-size":"16px"}},_e={style:{color:"#67c23a","font-weight":"bold","font-size":"16px"}},ve={key:1,style:{"font-weight":"bold"}},be={style:{"font-weight":"bold"}},ye={style:{color:"#409EFF","font-weight":"bold"}},we={style:{"font-size":"13px",color:"#409EFF","margin-right":"8px"}},ke={__name:"AwardNotice",setup(xe){const A=S(""),m=le({page:1,size:10,total:0}),q=()=>{const n=["山东迈瑞医疗器械有限公司","国药控股山东有限公司","山东信息技术有限公司","西门子医疗系统有限公司","晨光文具股份有限公司","山东银座超市有限公司","山东七兵堂保安服务有限公司","济南市园林绿化工程有限公司","东软医疗系统有限公司","齐鲁制药有限公司","山东省医疗器械有限公司","山东威高集团医用高分子制品股份有限公司"],e=["公开招标","邀请招标","竞争性谈判","单一来源"],k=["价格合理,技术方案优秀,综合评分最高","产品质量符合要求,服务方案完善,综合表现最佳","投标价格适中,技术实力强,售后服务承诺到位","企业资质齐全,产品性能优越,综合评分领先","报价合理,交货期有保障,综合竞争力最强"],x=[{name:"年度医用耗材集中采购项目",budget:85.5},{name:"办公物资集中采购项目",budget:35.2},{name:"药品采购项目(第一季度)",budget:120.8},{name:"医疗设备维保服务采购",budget:48.6},{name:"后勤物资采购项目",budget:22.5},{name:"信息化设备采购项目",budget:95.4},{name:"办公用品定点采购项目",budget:68.3},{name:"医疗器械采购项目",budget:156.7},{name:"后勤服务外包项目",budget:42.1},{name:"食堂食材采购项目",budget:78.9},{name:"医用耗材补充采购项目",budget:55.8},{name:"办公家具采购项目",budget:32.6},{name:"医疗设备配件采购",budget:28.4},{name:"季度办公物资采购",budget:18.9},{name:"年度药品集中采购",budget:200.5}],z=[],_=new Date,v=0;for(let c=1;c<=25;c++){const F=x[c%x.length],u=new Date(_.getFullYear(),Math.floor((c-1)/5),(c-1)%5*6+5),N=new Date(u);N.setDate(N.getDate()+2);const g=(c+v)%n.length,R=g===v,W=(F.budget*(.85+Math.random()*.1)).toFixed(2),w=[];[...n].sort(()=>Math.random()-.5).slice(0,5).forEach((b,I)=>{const L=b===n[g]?88:75+Math.random()*10;w.push({rank:I+1,supplierName:b,totalScore:L.toFixed(2),priceScore:(L*.4+Math.random()*5).toFixed(2),techScore:(L*.35+Math.random()*5).toFixed(2),serviceScore:(L*.25+Math.random()*5).toFixed(2)})}),w.sort((b,I)=>parseFloat(I.totalScore)-parseFloat(b.totalScore)),w.forEach((b,I)=>{b.rank=I+1});const E=!R&&c<=15,a=E?null:c>20?2:null;z.push({id:c,code:`ZC2024${String(c).padStart(4,"0")}`,name:F.name,budget:F.budget,type:e[c%e.length],winnerName:n[g],winnerPrice:W,winnerScore:w.find(b=>b.rank===1).totalScore,winnerReason:k[c%k.length],openDate:u.toISOString().split("T")[0],announceDate:N.toISOString().split("T")[0],isWinner:R,canAppeal:E,appealStatus:a,scoreRanks:w})}return z},y=S([]),P=se(()=>{let n=y.value;if(A.value){const x=A.value.toLowerCase();n=n.filter(z=>z.name.toLowerCase().includes(x)||z.code.toLowerCase().includes(x))}m.total=n.length;const e=(m.page-1)*m.size,k=e+m.size;return n.slice(e,k)});ae(()=>{const n=localStorage.getItem("awardNotices");n?y.value=JSON.parse(n):(y.value=q(),localStorage.setItem("awardNotices",JSON.stringify(y.value))),m.total=y.value.length});const K=()=>{m.page=1},M=S(!1),d=S(null),Y=n=>{d.value={...n,scoreRanks:[...n.scoreRanks]},M.value=!0},Z=n=>({0:"申诉待处理",1:"申诉已受理",2:"申诉已驳回"})[n]??"—",G=n=>({0:"warning"