zcui/frontend/dist/assets/PendingBiddingAdmin-7k88aR7u.js

4 lines
13 KiB
JavaScript

import{_ as I,o as O,c as F,e as t,f as o,k as u,j as m,h as c,t as w,a as b,i as q}from"./index-C1KISTGN.js";const G={class:"pending-bidding-admin"},H={style:{display:"flex","justify-content":"space-between","align-items":"center"}},J={style:{display:"flex","justify-content":"space-between","align-items":"center"}},K={__name:"PendingBiddingAdmin",setup(Q){const l=u({projectCode:"",projectName:"",biddingMethod:""}),x=u([{id:1,projectCode:"ZB202406001",projectName:"2024年度办公设备采购项目",biddingMethod:"内部招标",bidStartTime:"2024-06-01 09:00",bidEndTime:"2024-06-15 17:00",openingTime:"2024-06-16 09:30",expectedCount:5,signedCount:3},{id:2,projectCode:"ZB202406002",projectName:"医疗器械设备采购项目(第三包)",biddingMethod:"委外招标",bidStartTime:"2024-06-02 09:00",bidEndTime:"2024-06-16 17:00",openingTime:"2024-06-17 09:30",expectedCount:6,signedCount:4},{id:3,projectCode:"ZB202406003",projectName:"信息化系统升级改造项目",biddingMethod:"内部招标",bidStartTime:"2024-06-03 09:00",bidEndTime:"2024-06-17 17:00",openingTime:"2024-06-18 09:30",expectedCount:4,signedCount:2},{id:4,projectCode:"ZB202406004",projectName:"仓库货架及配套设备采购",biddingMethod:"委外招标",bidStartTime:"2024-06-04 09:00",bidEndTime:"2024-06-18 17:00",openingTime:"2024-06-19 09:30",expectedCount:5,signedCount:4},{id:5,projectCode:"ZB202406005",projectName:"年度审计服务项目",biddingMethod:"内部招标",bidStartTime:"2024-06-05 09:00",bidEndTime:"2024-06-19 17:00",openingTime:"2024-06-20 09:30",expectedCount:3,signedCount:2},{id:6,projectCode:"ZB202406006",projectName:"空调设备采购及安装工程",biddingMethod:"委外招标",bidStartTime:"2024-06-06 09:00",bidEndTime:"2024-06-20 17:00",openingTime:"2024-06-21 09:30",expectedCount:6,signedCount:5},{id:7,projectCode:"ZB202406007",projectName:"办公用品年度供应项目",biddingMethod:"内部招标",bidStartTime:"2024-06-07 09:00",bidEndTime:"2024-06-21 17:00",openingTime:"2024-06-22 09:30",expectedCount:5,signedCount:4},{id:8,projectCode:"ZB202406008",projectName:"网络设备采购项目",biddingMethod:"委外招标",bidStartTime:"2024-06-08 09:00",bidEndTime:"2024-06-22 17:00",openingTime:"2024-06-23 09:30",expectedCount:4,signedCount:3},{id:9,projectCode:"ZB202406009",projectName:"安保服务外包项目",biddingMethod:"内部招标",bidStartTime:"2024-06-09 09:00",bidEndTime:"2024-06-23 17:00",openingTime:"2024-06-24 09:30",expectedCount:5,signedCount:4},{id:10,projectCode:"ZB202406010",projectName:"消防设施改造工程",biddingMethod:"委外招标",bidStartTime:"2024-06-10 09:00",bidEndTime:"2024-06-24 17:00",openingTime:"2024-06-25 09:30",expectedCount:6,signedCount:5},{id:11,projectCode:"ZB202406011",projectName:"食堂食材配送服务",bidStartTime:"2024-06-11 09:00",bidEndTime:"2024-06-25 17:00",openingTime:"2024-06-26 09:30",expectedCount:4,signedCount:3},{id:12,projectCode:"ZB202406012",projectName:"电脑及配件采购项目",bidStartTime:"2024-06-12 09:00",bidEndTime:"2024-06-26 17:00",openingTime:"2024-06-27 09:30",expectedCount:5,signedCount:4},{id:13,projectCode:"ZB202406013",projectName:"物业管理服务项目",bidStartTime:"2024-06-13 09:00",bidEndTime:"2024-06-27 17:00",openingTime:"2024-06-28 09:30",expectedCount:3,signedCount:2},{id:14,projectCode:"ZB202406014",projectName:"照明设备采购及安装",bidStartTime:"2024-06-14 09:00",bidEndTime:"2024-06-28 17:00",openingTime:"2024-06-29 09:30",expectedCount:4,signedCount:3},{id:15,projectCode:"ZB202406015",projectName:"清洁用品集中采购项目",bidStartTime:"2024-06-15 09:00",bidEndTime:"2024-06-29 17:00",openingTime:"2024-06-30 09:30",expectedCount:5,signedCount:4},{id:16,projectCode:"ZB202406016",projectName:"法律顾问服务项目",bidStartTime:"2024-06-16 09:00",bidEndTime:"2024-06-30 17:00",openingTime:"2024-07-01 09:30",expectedCount:3,signedCount:2},{id:17,projectCode:"ZB202406017",projectName:"货架扩建工程",bidStartTime:"2024-06-17 09:00",bidEndTime:"2024-07-01 17:00",openingTime:"2024-07-02 09:30",expectedCount:6,signedCount:5},{id:18,projectCode:"ZB202406018",projectName:"劳保用品采购项目",bidStartTime:"2024-06-18 09:00",bidEndTime:"2024-07-02 17:00",openingTime:"2024-07-03 09:30",expectedCount:5,signedCount:4},{id:19,projectCode:"ZB202406019",projectName:"车辆维修保养服务",bidStartTime:"2024-06-19 09:00",bidEndTime:"2024-07-03 17:00",openingTime:"2024-07-04 09:30",expectedCount:4,signedCount:3},{id:20,projectCode:"ZB202406020",projectName:"医疗耗材采购项目",bidStartTime:"2024-06-20 09:00",bidEndTime:"2024-07-04 17:00",openingTime:"2024-07-05 09:30",expectedCount:6,signedCount:5},{id:21,projectCode:"ZB202406021",projectName:"停车场改造工程",bidStartTime:"2024-06-21 09:00",bidEndTime:"2024-07-05 17:00",openingTime:"2024-07-06 09:30",expectedCount:5,signedCount:4},{id:22,projectCode:"ZB202406022",projectName:"印刷服务项目",bidStartTime:"2024-06-22 09:00",bidEndTime:"2024-07-06 17:00",openingTime:"2024-07-07 09:30",expectedCount:3,signedCount:2},{id:23,projectCode:"ZB202406023",projectName:"办公家具采购项目",bidStartTime:"2024-06-23 09:00",bidEndTime:"2024-07-07 17:00",openingTime:"2024-07-08 09:30",expectedCount:4,signedCount:3},{id:24,projectCode:"ZB202406024",projectName:"网络维护服务项目",bidStartTime:"2024-06-24 09:00",bidEndTime:"2024-07-08 17:00",openingTime:"2024-07-09 09:30",expectedCount:5,signedCount:4},{id:25,projectCode:"ZB202406025",projectName:"广告宣传服务项目",bidStartTime:"2024-06-25 09:00",bidEndTime:"2024-07-09 17:00",openingTime:"2024-07-10 09:30",expectedCount:4,signedCount:3},{id:26,projectCode:"ZB202406026",projectName:"标识牌制作安装工程",bidStartTime:"2024-06-26 09:00",bidEndTime:"2024-07-10 17:00",openingTime:"2024-07-11 09:30",expectedCount:6,signedCount:5},{id:27,projectCode:"ZB202406027",projectName:"冬季供暖设备采购项目",bidStartTime:"2024-06-27 09:00",bidEndTime:"2024-07-11 17:00",openingTime:"2024-07-12 09:30",expectedCount:5,signedCount:4},{id:28,projectCode:"ZB202406028",projectName:"绿化养护服务项目",bidStartTime:"2024-06-28 09:00",bidEndTime:"2024-07-12 17:00",openingTime:"2024-07-13 09:30",expectedCount:3,signedCount:2},{id:29,projectCode:"ZB202406029",projectName:"电梯维保服务项目",bidStartTime:"2024-06-29 09:00",bidEndTime:"2024-07-13 17:00",openingTime:"2024-07-14 09:30",expectedCount:4,signedCount:3},{id:30,projectCode:"ZB202406030",projectName:"监控系统升级改造工程",bidStartTime:"2024-06-30 09:00",bidEndTime:"2024-07-14 17:00",openingTime:"2024-07-15 09:30",expectedCount:6,signedCount:5}]),Z=["内部招标","委外招标"];x.value.forEach(d=>{d.biddingMethod||(d.biddingMethod=Z[d.id%2])});const g=u(!1),j=u([]),C=u(!1),f=u([]),T=u(null),M=q(()=>{let d=[...x.value];return l.value.projectCode&&(d=d.filter(e=>e.projectCode.includes(l.value.projectCode))),l.value.projectName&&(d=d.filter(e=>e.projectName.includes(l.value.projectName))),l.value.biddingMethod&&(d=d.filter(e=>e.biddingMethod===l.value.biddingMethod)),d}),y=()=>{},V=()=>{l.value.projectCode="",l.value.projectName="",l.value.biddingMethod=""},h=["济南医疗器械有限公司","山东通达商贸有限公司","青岛电子科技有限公司","淄博网络服务有限公司","潍坊建设工程有限公司","烟台清洁用品有限公司","威海安保服务有限公司","济宁物业管理有限公司","泰安物流配送有限公司","日照印刷服务有限公司","莱芜环保科技有限公司","临沂办公家具有限公司","德州网络维护有限公司","聊城广告传媒有限公司","滨州标识制作有限公司","菏泽供暖设备有限公司","山东绿化工程有限公司","济南电梯服务有限公司","青岛监控系统有限公司","淄博医疗耗材有限公司"],N=["张经理","李主管","王总监","赵主任","刘经理","陈主管","周部长","吴经理","郑队长","冯主管"],_=d=>{const e=[],a=new Set;for(let i=0;i<d;i++){let p;do p=Math.floor(Math.random()*h.length);while(a.has(p));a.add(p),e.push({supplierName:h[p],agent:N[Math.floor(Math.random()*N.length)]})}return e},k=(d,e)=>d.slice(0,e).map((a,i)=>({...a,signTime:`2024-06-16 08:${20+i*5}`})),$=d=>{T.value=d,j.value=_(d.expectedCount),g.value=!0},U=d=>{T.value=d;const e=_(d.expectedCount);f.value=k(e,d.signedCount),C.value=!0},D=()=>{var a;const e=[["序号","供应商名称","委托代理人"].join(","),...j.value.map((i,p)=>`${p+1},${i.supplierName},${i.agent}`)].join(`
`);S(`应签到投标方_${(a=T.value)==null?void 0:a.projectCode}.csv`,e)},R=()=>{var a;const e=[["序号","供应商名称","委托代理人","签到时间"].join(","),...f.value.map((i,p)=>`${p+1},${i.supplierName},${i.agent},${i.signTime}`)].join(`
`);S(`已签到投标方_${(a=T.value)==null?void 0:a.projectCode}.csv`,e)},S=(d,e)=>{const a=new Blob(["\uFEFF"+e],{type:"text/csv;charset=utf-8"}),i=URL.createObjectURL(a),p=document.createElement("a");p.href=i,p.download=d,p.click(),URL.revokeObjectURL(i)};return(d,e)=>{const a=m("el-input"),i=m("el-form-item"),p=m("el-option"),L=m("el-select"),s=m("el-button"),z=m("el-form"),r=m("el-table-column"),B=m("el-link"),v=m("el-table"),P=m("el-card"),E=m("el-dialog");return O(),F("div",G,[t(P,null,{header:o(()=>[...e[7]||(e[7]=[b("span",{style:{"font-size":"16px","font-weight":"bold"}},"待投标项目",-1)])]),default:o(()=>[t(z,{inline:!0,model:l.value,class:"search-form"},{default:o(()=>[t(i,{label:"项目编码"},{default:o(()=>[t(a,{modelValue:l.value.projectCode,"onUpdate:modelValue":e[0]||(e[0]=n=>l.value.projectCode=n),placeholder:"请输入项目编码",clearable:""},null,8,["modelValue"])]),_:1}),t(i,{label:"项目名称"},{default:o(()=>[t(a,{modelValue:l.value.projectName,"onUpdate:modelValue":e[1]||(e[1]=n=>l.value.projectName=n),placeholder:"请输入项目名称",clearable:""},null,8,["modelValue"])]),_:1}),t(i,{label:"招标方式"},{default:o(()=>[t(L,{modelValue:l.value.biddingMethod,"onUpdate:modelValue":e[2]||(e[2]=n=>l.value.biddingMethod=n),placeholder:"请选择招标方式",clearable:"",style:{width:"150px"}},{default:o(()=>[t(p,{label:"内部招标",value:"内部招标"}),t(p,{label:"委外招标",value:"委外招标"})]),_:1},8,["modelValue"])]),_:1}),t(i,null,{default:o(()=>[t(s,{type:"primary",onClick:y},{default:o(()=>[...e[8]||(e[8]=[c("查询",-1)])]),_:1}),t(s,{onClick:V},{default:o(()=>[...e[9]||(e[9]=[c("重置",-1)])]),_:1})]),_:1})]),_:1},8,["model"]),t(v,{data:M.value,border:"",stripe:"",style:{width:"100%"}},{default:o(()=>[t(r,{prop:"projectCode",label:"项目编码",width:"140"}),t(r,{prop:"projectName",label:"项目名称","min-width":"200","show-overflow-tooltip":""}),t(r,{prop:"biddingMethod",label:"招标方式",width:"110"}),t(r,{prop:"bidStartTime",label:"投标开始时间",width:"110",align:"center"}),t(r,{prop:"bidEndTime",label:"投标截止时间",width:"110",align:"center"}),t(r,{prop:"openingTime",label:"开标时间",width:"110",align:"center"}),t(r,{label:"已投标供应商",width:"120",align:"center"},{default:o(({row:n})=>[t(B,{type:"primary",underline:!1,onClick:A=>$(n)},{default:o(()=>[c(w(n.expectedCount)+" 家 ",1)]),_:2},1032,["onClick"])]),_:1}),t(r,{label:"已缴费供应商",width:"120",align:"center"},{default:o(({row:n})=>[t(B,{type:"success",underline:!1,onClick:A=>U(n)},{default:o(()=>[c(w(n.signedCount)+" 家 ",1)]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])]),_:1}),t(E,{modelValue:g.value,"onUpdate:modelValue":e[4]||(e[4]=n=>g.value=n),title:"应签到投标方",width:"700px"},{header:o(()=>[b("div",H,[e[11]||(e[11]=b("span",null,"应签到投标方",-1)),t(s,{size:"small",type:"primary",onClick:D},{default:o(()=>[...e[10]||(e[10]=[c("导出",-1)])]),_:1})])]),footer:o(()=>[t(s,{onClick:e[3]||(e[3]=n=>g.value=!1)},{default:o(()=>[...e[12]||(e[12]=[c("关闭",-1)])]),_:1})]),default:o(()=>[t(v,{data:j.value,border:"",stripe:""},{default:o(()=>[t(r,{type:"index",label:"序号",width:"60",align:"center"}),t(r,{prop:"supplierName",label:"供应商名称","min-width":"180","show-overflow-tooltip":""}),t(r,{prop:"agent",label:"委托代理人",width:"120"})]),_:1},8,["data"])]),_:1},8,["modelValue"]),t(E,{modelValue:C.value,"onUpdate:modelValue":e[6]||(e[6]=n=>C.value=n),title:"已签到投标方",width:"800px"},{header:o(()=>[b("div",J,[e[14]||(e[14]=b("span",null,"已签到投标方",-1)),t(s,{size:"small",type:"primary",onClick:R},{default:o(()=>[...e[13]||(e[13]=[c("导出",-1)])]),_:1})])]),footer:o(()=>[t(s,{onClick:e[5]||(e[5]=n=>C.value=!1)},{default:o(()=>[...e[15]||(e[15]=[c("关闭",-1)])]),_:1})]),default:o(()=>[t(v,{data:f.value,border:"",stripe:""},{default:o(()=>[t(r,{type:"index",label:"序号",width:"60",align:"center"}),t(r,{prop:"supplierName",label:"供应商名称","min-width":"180","show-overflow-tooltip":""}),t(r,{prop:"agent",label:"委托代理人",width:"120"}),t(r,{prop:"signTime",label:"签到时间",width:"150",align:"center"})]),_:1},8,["data"])]),_:1},8,["modelValue"])])}}},X=I(K,[["__scopeId","data-v-e8db19a7"]]);export{X as default};