zcui/frontend/dist/assets/BiddingNotice-Bd3EPb0k.js

2 lines
13 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import{_ as ie,V as de,o as V,c as P,e as t,f as l,j as r,k as m,q as A,g as T,d as k,F as G,r as re,a as s,t as d,h as i,m as ue,L as pe,i as ce,E as R}from"./index-C1KISTGN.js";const me={class:"bidding-notice"},ge={class:"card-header"},fe={class:"notice-card__header"},ve={class:"notice-card__title"},_e={class:"notice-card__body"},be={class:"notice-card__desc"},ye={class:"notice-card__footer"},Ve={style:{color:"#f56c6c","font-weight":"bold"}},we={class:"detail-content"},xe={style:{color:"#409EFF","font-weight":"bold"}},Ce={style:{color:"#409EFF","font-weight":"bold"}},De={__name:"BiddingNotice",setup(he){const F=m(""),f=A({page:1,size:10,total:0}),K=()=>{const n=["公开招标","邀请招标","竞争性谈判","单一来源"],e=["张伟","李娜","王强","刘芳","陈敏","赵刚","孙丽","周杰"],x=["13800138001","13800138002","13800138003","13800138004","13800138005"],g=["采购部","信息部","后勤部","设备部","医疗部"],w=[{name:"一次性注射器",code:"WL001001",spec:"5ml 带针",unit:"支"},{name:"一次性输液器",code:"WL001002",spec:"Y型 针头0.7mm",unit:"套"},{name:"医用外科口罩",code:"WL001003",spec:"耳挂式 50只/盒",unit:"盒"},{name:"一次性手套",code:"WL001004",spec:"乳胶 M号",unit:"盒"},{name:"医用棉签",code:"WL001005",spec:"100支/包",unit:"包"},{name:"纱布块",code:"WL001006",spec:"8层 10cm×10cm",unit:"包"},{name:"阿莫西林胶囊",code:"YL002001",spec:"0.5g×24粒",unit:"盒"},{name:"布洛芬缓释胶囊",code:"YL002002",spec:"0.3g×20粒",unit:"盒"},{name:"对乙酰氨基酚片",code:"YL002003",spec:"0.5g×20片",unit:"盒"},{name:"维生素C片",code:"YL002004",spec:"100mg×100片",unit:"瓶"},{name:"A4打印纸",code:"BG003001",spec:"70g 500张/包",unit:"包"},{name:"中性笔",code:"BG003002",spec:"0.5mm 黑色 12支/盒",unit:"盒"},{name:"文件夹",code:"BG003003",spec:"蓝色 A4 厚型",unit:"个"},{name:"电脑椅",code:"JJ004001",spec:"人体工学 可调节",unit:"把"},{name:"办公桌",code:"JJ004002",spec:"1.2m×0.6m×0.75m",unit:"张"}],S=[{name:"年度医用耗材集中采购项目",description:"为满足医院日常运营需要,采购一批医用耗材,包括注射器、输液器、手套等物资。要求供应商具备医疗器械经营许可证,产品质量符合国家相关标准。"},{name:"办公物资集中采购项目",description:"采购一批办公用品,包括打印纸、中性笔、文件夹等日常办公所需物资。要求供应商具备稳定的供货能力,产品质量合格。"},{name:"药品采购项目(第一季度)",description:"采购第一季度所需药品,包括抗生素、解热镇痛药、维生素等。要求供应商具备药品经营许可证,药品来源合法,质量符合药典标准。"},{name:"医疗设备维保服务采购",description:"采购医疗设备维保服务包括CT机、超声设备等大型医疗设备的定期维护和故障处理。要求供应商具备相应的技术资质和服务能力。"},{name:"后勤物资采购项目",description:"采购后勤部门所需物资,包括清洁用品、劳保用品等。要求供应商产品符合环保要求,价格合理。"},{name:"信息化设备采购项目",description:"采购信息化设备,包括电脑、打印机、网络设备等。要求供应商提供原厂保修服务,产品质量可靠。"},{name:"办公用品定点采购项目",description:"确定办公用品定点供应商,全年办公用品采购。要求供应商配送及时,价格优惠。"},{name:"医疗器械采购项目",description:"采购一批医疗器械,包括监护仪、输液泵等。要求供应商具备医疗器械经营许可证,产品有注册证。"},{name:"后勤服务外包项目",description:"采购保洁、安保等后勤服务。要求供应商具备相应的服务资质,有良好的服务记录。"},{name:"食堂食材采购项目",description:"采购食堂所需食材,包括蔬菜、肉类、粮油等。要求供应商食材新鲜、安全,配送及时。"}],p=["enrolling","enrolled","expired","completed"],z=[],E=new Date;for(let a=1;a<=30;a++){const L=S[a%S.length],b=p[a%p.length],I=new Date(E.getFullYear(),Math.floor((a-1)/5),(a-1)%5*5+1),y=new Date(I);y.setDate(y.getDate()+15);const c=new Date(y);c.setDate(c.getDate()-3);const h=[],U=3+Math.floor(Math.random()*5);for(let o=0;o<U;o++){const M=w[(a+o)%w.length];h.push({...M,quantity:100+Math.floor(Math.random()*900)})}z.push({id:a,code:`ZC2024${String(a).padStart(4,"0")}`,name:L.name,description:L.description,type:n[a%n.length],budget:(10+Math.random()*100).toFixed(2),department:g[a%g.length],contactPerson:e[a%e.length],contactPhone:x[a%x.length],publishDate:I.toISOString().split("T")[0],openDate:y.toISOString().split("T")[0],registrationDeadline:c.toISOString().split("T")[0],status:b,items:h})}return z},_=m([]),B=ce(()=>{let n=_.value;if(F.value){const g=F.value.toLowerCase();n=n.filter(w=>w.name.toLowerCase().includes(g)||w.code.toLowerCase().includes(g))}f.total=n.length;const e=(f.page-1)*f.size,x=e+f.size;return n.slice(e,x)}),q=n=>({enrolling:{label:"报名中",type:"success"},enrolled:{label:"已报名",type:"primary"},expired:{label:"报名截止",type:"info"},completed:{label:"已完成",type:"warning"}})[n.status]||{label:"未知",type:""};de(()=>{const n=localStorage.getItem("biddingNotices");n?_.value=JSON.parse(n):(_.value=K(),localStorage.setItem("biddingNotices",JSON.stringify(_.value))),f.total=_.value.length});const Z=()=>{f.page=1},N=m(!1),u=m(null),H=n=>{u.value=n,N.value=!0},C=m(!1),J=m(null),W=m(""),$=m(null),v=A({supplierName:"山东迈瑞医疗器械有限公司",creditCode:"91370100MA3C4D5E6F",contact:"张经理",phone:"13800138000",email:"zhang@mirrui.com"}),Q={supplierName:[{required:!0,message:"请输入供应商名称",trigger:"blur"}],creditCode:[{required:!0,message:"请输入统一社会信用代码",trigger:"blur"}],contact:[{required:!0,message:"请输入联系人",trigger:"blur"}],phone:[{required:!0,message:"请输入联系电话",trigger:"blur"}],email:[{required:!0,message:"请输入邮箱",trigger:"blur"},{type:"email",message:"邮箱格式不正确",trigger:"blur"}]},X=()=>{var n;(n=$.value)==null||n.resetFields()},ee=n=>{J.value=n.id,W.value=n.name,C.value=!0},te=()=>{R.success("报名成功,等待审核"),C.value=!1;const n=_.value.findIndex(e=>e.id===J.value);n!==-1&&(_.value[n].status="enrolled",localStorage.setItem("biddingNotices",JSON.stringify(_.value)))},D=m(!1),le=m(null),j=m(""),O=m(null),Y=m(null),oe=n=>{le.value=n.id,j.value=n.name,D.value=!0},ne=n=>{O.value=n},ae=n=>{Y.value=n},se=()=>{R.success("标书上传成功"),D.value=!1,O.value=null,Y.value=null};return(n,e)=>{const x=r("el-icon"),g=r("el-input"),w=r("el-empty"),S=r("el-tag"),p=r("el-button"),z=r("el-pagination"),E=r("el-card"),a=r("el-descriptions-item"),L=r("el-descriptions"),b=r("el-table-column"),I=r("el-table"),y=r("el-dialog"),c=r("el-form-item"),h=r("el-form"),U=r("el-upload");return V(),P("div",me,[t(E,null,{header:l(()=>[s("div",ge,[e[14]||(e[14]=s("span",{style:{"font-size":"16px","font-weight":"bold"}},"招标公告",-1)),t(g,{modelValue:F.value,"onUpdate:modelValue":e[0]||(e[0]=o=>F.value=o),placeholder:"搜索项目名称/编号",clearable:"",style:{width:"250px"},onInput:Z},{prefix:l(()=>[t(x,null,{default:l(()=>[t(ue(pe))]),_:1})]),_:1},8,["modelValue"])])]),default:l(()=>[B.value.length===0?(V(),T(w,{key:0,description:"暂无招标公告"})):k("",!0),(V(!0),P(G,null,re(B.value,o=>(V(),P("div",{key:o.id,class:"notice-card"},[s("div",fe,[s("span",ve,d(o.name),1),t(S,{type:q(o).type,size:"small"},{default:l(()=>[i(d(q(o).label),1)]),_:2},1032,["type"])]),s("div",_e,[s("span",null,"项目编号:"+d(o.code),1),s("span",null,"预算金额:"+d(o.budget)+" 万元",1),s("span",null,"联系人:"+d(o.contactPerson),1),s("span",null,"报名截止:"+d(o.registrationDeadline),1)]),s("div",be,d(o.description),1),s("div",ye,[t(p,{size:"small",type:"primary",onClick:M=>H(o)},{default:l(()=>[...e[15]||(e[15]=[i("查看详情",-1)])]),_:1},8,["onClick"]),o.status==="enrolling"?(V(),T(p,{key:0,size:"small",type:"success",onClick:M=>ee(o)},{default:l(()=>[...e[16]||(e[16]=[i(" 立即报名 ",-1)])]),_:1},8,["onClick"])):k("",!0),o.status==="enrolled"?(V(),T(p,{key:1,size:"small",type:"warning",onClick:M=>oe(o)},{default:l(()=>[...e[17]||(e[17]=[i(" 上传标书 ",-1)])]),_:1},8,["onClick"])):k("",!0)])]))),128)),B.value.length>0?(V(),T(z,{key:1,"current-page":f.page,"onUpdate:currentPage":e[1]||(e[1]=o=>f.page=o),"page-size":f.size,"onUpdate:pageSize":e[2]||(e[2]=o=>f.size=o),total:f.total,layout:"total, prev, pager, next",style:{"margin-top":"20px","justify-content":"center"}},null,8,["current-page","page-size","total"])):k("",!0)]),_:1}),t(y,{modelValue:N.value,"onUpdate:modelValue":e[4]||(e[4]=o=>N.value=o),title:"招标详情",width:"900px"},{footer:l(()=>[t(p,{onClick:e[3]||(e[3]=o=>N.value=!1)},{default:l(()=>[...e[22]||(e[22]=[i("关闭",-1)])]),_:1})]),default:l(()=>[u.value?(V(),P(G,{key:0},[e[19]||(e[19]=s("div",{class:"section-title"},"基本信息",-1)),t(L,{column:2,border:"",style:{"margin-bottom":"20px"}},{default:l(()=>[t(a,{label:"项目编号"},{default:l(()=>[i(d(u.value.code),1)]),_:1}),t(a,{label:"项目名称",span:2},{default:l(()=>[i(d(u.value.name),1)]),_:1}),t(a,{label:"招标方式"},{default:l(()=>[i(d(u.value.type),1)]),_:1}),t(a,{label:"预算金额"},{default:l(()=>[s("span",Ve,d(u.value.budget),1),e[18]||(e[18]=i(" 万元 ",-1))]),_:1}),t(a,{label:"发布日期"},{default:l(()=>[i(d(u.value.publishDate),1)]),_:1}),t(a,{label:"开标日期"},{default:l(()=>[i(d(u.value.openDate),1)]),_:1}),t(a,{label:"报名截止日期",span:2},{default:l(()=>[i(d(u.value.registrationDeadline),1)]),_:1}),t(a,{label:"联系人"},{default:l(()=>[i(d(u.value.contactPerson),1)]),_:1}),t(a,{label:"联系电话"},{default:l(()=>[i(d(u.value.contactPhone),1)]),_:1})]),_:1}),e[20]||(e[20]=s("div",{class:"section-title"},"采购内容",-1)),t(I,{data:u.value.items,border:"",style:{"margin-bottom":"20px"}},{default:l(()=>[t(b,{type:"index",label:"序号",width:"60",align:"center"}),t(b,{prop:"name",label:"物料名称","min-width":"180"}),t(b,{prop:"code",label:"物料编码",width:"130"}),t(b,{prop:"spec",label:"规格型号","min-width":"150"}),t(b,{prop:"quantity",label:"数量",width:"100",align:"center"}),t(b,{prop:"unit",label:"单位",width:"80",align:"center"})]),_:1},8,["data"]),e[21]||(e[21]=s("div",{class:"section-title"},"项目描述",-1)),s("div",we,d(u.value.description),1)],64)):k("",!0)]),_:1},8,["modelValue"]),t(y,{modelValue:C.value,"onUpdate:modelValue":e[11]||(e[11]=o=>C.value=o),title:"项目报名",width:"560px",onClose:X},{footer:l(()=>[t(p,{onClick:e[10]||(e[10]=o=>C.value=!1)},{default:l(()=>[...e[23]||(e[23]=[i("取消",-1)])]),_:1}),t(p,{type:"primary",onClick:te},{default:l(()=>[...e[24]||(e[24]=[i("提交报名",-1)])]),_:1})]),default:l(()=>[t(h,{model:v,rules:Q,ref_key:"enrollFormRef",ref:$,"label-width":"120px"},{default:l(()=>[t(c,{label:"报名项目"},{default:l(()=>[s("span",xe,d(W.value),1)]),_:1}),t(c,{label:"供应商名称",prop:"supplierName"},{default:l(()=>[t(g,{modelValue:v.supplierName,"onUpdate:modelValue":e[5]||(e[5]=o=>v.supplierName=o),placeholder:"请输入供应商名称"},null,8,["modelValue"])]),_:1}),t(c,{label:"统一社会信用代码",prop:"creditCode"},{default:l(()=>[t(g,{modelValue:v.creditCode,"onUpdate:modelValue":e[6]||(e[6]=o=>v.creditCode=o),placeholder:"请输入统一社会信用代码"},null,8,["modelValue"])]),_:1}),t(c,{label:"联系人",prop:"contact"},{default:l(()=>[t(g,{modelValue:v.contact,"onUpdate:modelValue":e[7]||(e[7]=o=>v.contact=o),placeholder:"请输入联系人"},null,8,["modelValue"])]),_:1}),t(c,{label:"联系电话",prop:"phone"},{default:l(()=>[t(g,{modelValue:v.phone,"onUpdate:modelValue":e[8]||(e[8]=o=>v.phone=o),placeholder:"请输入联系电话"},null,8,["modelValue"])]),_:1}),t(c,{label:"邮箱",prop:"email"},{default:l(()=>[t(g,{modelValue:v.email,"onUpdate:modelValue":e[9]||(e[9]=o=>v.email=o),placeholder:"请输入邮箱"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"]),t(y,{modelValue:D.value,"onUpdate:modelValue":e[13]||(e[13]=o=>D.value=o),title:"上传标书",width:"500px"},{footer:l(()=>[t(p,{onClick:e[12]||(e[12]=o=>D.value=!1)},{default:l(()=>[...e[29]||(e[29]=[i("取消",-1)])]),_:1}),t(p,{type:"primary",onClick:se},{default:l(()=>[...e[30]||(e[30]=[i("提交",-1)])]),_:1})]),default:l(()=>[t(h,{"label-width":"100px"},{default:l(()=>[t(c,{label:"投标项目"},{default:l(()=>[s("span",Ce,d(j.value),1)]),_:1}),t(c,{label:"标书文件"},{default:l(()=>[t(U,{"show-file-list":!0,limit:1,"on-change":ne,"auto-upload":!1,accept:".pdf,.doc,.docx"},{tip:l(()=>[...e[26]||(e[26]=[s("div",{style:{"font-size":"12px",color:"#909399","margin-top":"4px"}},"支持 PDF、Word 格式",-1)])]),default:l(()=>[t(p,{type:"primary"},{default:l(()=>[...e[25]||(e[25]=[i("选择文件",-1)])]),_:1})]),_:1})]),_:1}),t(c,{label:"报价文件"},{default:l(()=>[t(U,{"show-file-list":!0,limit:1,"on-change":ae,"auto-upload":!1,accept:".pdf,.xls,.xlsx"},{tip:l(()=>[...e[28]||(e[28]=[s("div",{style:{"font-size":"12px",color:"#909399","margin-top":"4px"}},"支持 PDF、Excel 格式",-1)])]),default:l(()=>[t(p,{type:"primary"},{default:l(()=>[...e[27]||(e[27]=[i("选择文件",-1)])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])])}}},Ne=ie(De,[["__scopeId","data-v-9f9df976"]]);export{Ne as default};