zcui/frontend/dist/assets/List-DkVn4vVH.js

2 lines
24 KiB
JavaScript

import{_ as ce,V as me,o as g,c as k,e,f as n,E as b,j as p,k as h,q as B,h as d,g as v,d as I,a as C,F as U,r as L,m as M,Q as ge,t as c,a2 as be,T as fe}from"./index-C1KISTGN.js";import{u as O,w as De}from"./xlsx-DrgRuPKf.js";const _e={class:"bidding-list"},ye={class:"card-header"},ke={key:0,style:{"margin-top":"10px"}},qe=["onClick"],ve={style:{color:"#67c23a","font-weight":"bold","font-size":"16px"}},xe={key:0},Ve={key:1,style:{color:"#999"}},we={__name:"List",setup(Ae){const V=h(!1),F=h(""),S=h(null),f=B({name:"",status:""}),l=B({name:"",type:"",budget:0,bidDocumentFee:0,bankName:"",bankAccount:"",contactPerson:"",contactPhone:"",registrationDeadline:"",openingDate:"",openingAddress:"",description:"",qualificationRequirements:"",documents:[]}),H={name:[{required:!0,message:"请输入项目名称",trigger:"blur"}],type:[{required:!0,message:"请选择招标类型",trigger:"change"}],budget:[{required:!0,message:"请输入预算金额",trigger:"blur"}],contactPerson:[{required:!0,message:"请输入联系人",trigger:"blur"}],contactPhone:[{required:!0,message:"请输入联系电话",trigger:"blur"}],registrationDeadline:[{required:!0,message:"请选择报名截止日期",trigger:"change"}],openingDate:[{required:!0,message:"请选择开标日期",trigger:"change"}],openingAddress:[{required:!0,message:"请输入开标地址",trigger:"blur"}],description:[{required:!0,message:"请输入项目描述",trigger:"blur"}]},w=B({page:1,size:20,total:0}),R=h([]),A=async()=>{try{localStorage.removeItem("biddings");const s=localStorage.getItem("biddings");let t=s?JSON.parse(s):[];t.length<15&&(t=[{id:1,code:"BID2024000001",name:"2024年度医疗设备采购项目",type:"公开招标",budget:500,bidDocumentFee:500,bankName:"中国工商银行市分行",bankAccount:"6222021234567890123",publishDate:"2024-01-15",enrollCount:8,status:1,description:"采购超声诊断仪、心电图机等医疗设备",qualificationRequirements:"具有医疗器械经营许可证",contactPerson:"陈建国",contactPhone:"13800138001",registrationDeadline:"2026-12-10 17:00:00",openingDate:"2024-02-15 09:00:00",openingAddress:"市政府采购中心301会议室",documents:[{name:"zcxq.pdf",url:"/zcxq.pdf"}],winningSupplier:"山东迈瑞医疗器械有限公司",winningAmount:485.5},{id:2,code:"BID2024000002",name:"药品集中采购项目(第一批)",type:"公开招标",budget:300,bidDocumentFee:300,bankName:"中国建设银行市分行",bankAccount:"6217001234567890123",publishDate:"2024-02-01",enrollCount:12,status:1,description:"采购常用药品,包括抗生素、感冒药等",qualificationRequirements:"具有药品经营许可证",contactPerson:"刘晓敏",contactPhone:"13800138002",registrationDeadline:"2026-12-25 17:00:00",openingDate:"2024-03-01 09:00:00",openingAddress:"市政府采购中心302会议室",documents:[{name:"zcxq.pdf",url:"/zcxq.pdf"}],winningSupplier:"国药控股山东有限公司",winningAmount:292.8},{id:3,code:"BID2024000003",name:"医用耗材采购项目",type:"邀请招标",budget:150,bidDocumentFee:200,bankName:"中国农业银行市分行",bankAccount:"6228481234567890123",publishDate:"2024-02-20",enrollCount:6,status:1,description:"采购一次性注射器、输液器等医用耗材",qualificationRequirements:"具有相关资质证明",contactPerson:"王海涛",contactPhone:"13800138003",registrationDeadline:"2026-12-15 17:00:00",openingDate:"2024-03-20 09:00:00",openingAddress:"市政府采购中心303会议室",documents:[{name:"zcxq.pdf",url:"/zcxq.pdf"}]},{id:4,code:"BID2024000004",name:"信息化系统升级改造项目",type:"竞争性谈判",budget:200,bidDocumentFee:300,bankName:"中国银行市分行",bankAccount:"6013821234567890123",publishDate:"2024-03-01",enrollCount:5,status:3,description:"HIS系统、LIS系统升级改造",qualificationRequirements:"具有软件开发资质",contactPerson:"赵文杰",contactPhone:"13800138004",registrationDeadline:"2024-03-28 17:00:00",openingDate:"2024-04-01 09:00:00",openingAddress:"市政府采购中心304会议室",documents:[{name:"zcxq.pdf",url:"/zcxq.pdf"}],winningSupplier:"山东信息技术有限公司",winningAmount:185},{id:5,code:"BID2024000005",name:"医疗废物处理服务采购",type:"公开招标",budget:80,bidDocumentFee:200,bankName:"交通银行市分行",bankAccount:"6222621234567890123",publishDate:"2024-03-10",enrollCount:4,status:1,description:"医疗废物收集、运输、处理服务",qualificationRequirements:"具有危险废物经营许可证",contactPerson:"孙丽华",contactPhone:"13800138005",registrationDeadline:"2024-04-05 17:00:00",openingDate:"2024-04-10 09:00:00",openingAddress:"市政府采购中心305会议室",documents:[{name:"zcxq.pdf",url:"/zcxq.pdf"}]},{id:6,code:"BID2024000006",name:"后勤保洁服务采购",type:"邀请招标",budget:60,bidDocumentFee:150,bankName:"招商银行市分行",bankAccount:"6225881234567890123",publishDate:"2024-03-15",enrollCount:7,status:1,description:"医院日常保洁、消毒服务",qualificationRequirements:"具有保洁服务经验",contactPerson:"周雪梅",contactPhone:"13800138006",registrationDeadline:"2024-04-10 17:00:00",openingDate:"2024-04-15 09:00:00",openingAddress:"市政府采购中心306会议室",documents:[{name:"zcxq.pdf",url:"/zcxq.pdf"}]},{id:7,code:"BID2024000007",name:"医用气体供应系统维护",type:"竞争性谈判",budget:50,bidDocumentFee:150,bankName:"中国工商银行市分行",bankAccount:"6222021234567890124",publishDate:"",enrollCount:0,status:0,description:"氧气、负压吸引等医用气体系统维护",qualificationRequirements:"具有相关维护资质",contactPerson:"吴志强",contactPhone:"13800138007",registrationDeadline:"",openingDate:"",openingAddress:"",documents:[{name:"zcxq.pdf",url:"/zcxq.pdf"}]},{id:8,code:"BID2024000008",name:"检验试剂采购项目",type:"公开招标",budget:180,bidDocumentFee:300,bankName:"中国建设银行市分行",bankAccount:"6217001234567890124",publishDate:"",enrollCount:0,status:0,description:"生化、免疫等检验试剂采购",qualificationRequirements:"具有医疗器械经营许可证",contactPerson:"郑明辉",contactPhone:"13800138008",registrationDeadline:"",openingDate:"",openingAddress:"",documents:[{name:"zcxq.pdf",url:"/zcxq.pdf"}]},{id:9,code:"BID2024000009",name:"医疗设备维保服务",type:"邀请招标",budget:120,bidDocumentFee:200,bankName:"中国农业银行市分行",bankAccount:"6228481234567890124",publishDate:"2024-01-20",enrollCount:5,status:4,description:"CT、MRI等大型设备维保服务",qualificationRequirements:"具有设备维修资质",contactPerson:"钱俊峰",contactPhone:"13800138009",registrationDeadline:"2024-02-15 17:00:00",openingDate:"2024-02-20 09:00:00",openingAddress:"市政府采购中心307会议室",documents:[{name:"zcxq.pdf",url:"/zcxq.pdf"}],winningSupplier:"西门子医疗系统有限公司",winningAmount:115},{id:10,code:"BID2024000010",name:"办公用品采购项目",type:"竞争性谈判",budget:30,bidDocumentFee:100,bankName:"中国银行市分行",bankAccount:"6013821234567890124",publishDate:"2024-02-25",enrollCount:8,status:3,description:"办公文具、纸张等用品采购",qualificationRequirements:"无特殊要求",contactPerson:"陈静雯",contactPhone:"13800138010",registrationDeadline:"2024-03-20 17:00:00",openingDate:"2024-03-25 09:00:00",openingAddress:"市政府采购中心308会议室",documents:[{name:"zcxq.pdf",url:"/zcxq.pdf"}],winningSupplier:"晨光文具股份有限公司",winningAmount:28.5},{id:11,code:"BID2024000011",name:"食堂食材配送服务",type:"公开招标",budget:100,bidDocumentFee:200,bankName:"交通银行市分行",bankAccount:"6222621234567890124",publishDate:"2024-03-05",enrollCount:6,status:3,description:"医院食堂食材配送服务",qualificationRequirements:"具有食品经营许可证",contactPerson:"刘建平",contactPhone:"13800138011",registrationDeadline:"2024-04-01 17:00:00",openingDate:"2024-04-05 09:00:00",openingAddress:"市政府采购中心309会议室",documents:[{name:"zcxq.pdf",url:"/zcxq.pdf"}],winningSupplier:"山东银座超市有限公司",winningAmount:95.8},{id:12,code:"BID2024000012",name:"安保服务采购",type:"邀请招标",budget:90,bidDocumentFee:150,bankName:"招商银行市分行",bankAccount:"6225881234567890124",publishDate:"2024-03-12",enrollCount:4,status:4,description:"医院安保、巡逻服务",qualificationRequirements:"具有保安服务许可证",contactPerson:"黄伟强",contactPhone:"13800138012",registrationDeadline:"2024-04-08 17:00:00",openingDate:"2024-04-12 09:00:00",openingAddress:"市政府采购中心310会议室",documents:[{name:"zcxq.pdf",url:"/zcxq.pdf"}],winningSupplier:"山东七兵堂保安服务有限公司",winningAmount:86.5},{id:13,code:"BID2024000013",name:"空调系统维护保养",type:"竞争性谈判",budget:40,bidDocumentFee:100,bankName:"中国工商银行市分行",bankAccount:"6222021234567890125",publishDate:"",enrollCount:0,status:0,description:"中央空调系统维护保养",qualificationRequirements:"具有空调维修资质",contactPerson:"杨秀芳",contactPhone:"13800138013",registrationDeadline:"",openingDate:"",openingAddress:"",documents:[{name:"zcxq.pdf",url:"/zcxq.pdf"}]},{id:14,code:"BID2024000014",name:"电梯维保服务",type:"公开招标",budget:35,bidDocumentFee:100,bankName:"中国建设银行市分行",bankAccount:"6217001234567890125",publishDate:"",enrollCount:0,status:0,description:"医院电梯日常维护保养",qualificationRequirements:"具有电梯维修资质",contactPerson:"朱永刚",contactPhone:"13800138014",registrationDeadline:"",openingDate:"",openingAddress:"",documents:[{name:"zcxq.pdf",url:"/zcxq.pdf"}]},{id:15,code:"BID2024000015",name:"绿化养护服务",type:"邀请招标",budget:25,bidDocumentFee:100,bankName:"中国农业银行市分行",bankAccount:"6228481234567890125",publishDate:"2024-03-18",enrollCount:3,status:3,description:"医院绿化养护、景观维护",qualificationRequirements:"具有园林绿化资质",contactPerson:"林佳慧",contactPhone:"13800138015",registrationDeadline:"2024-04-15 17:00:00",openingDate:"2024-04-18 09:00:00",openingAddress:"市政府采购中心311会议室",documents:[{name:"zcxq.pdf",url:"/zcxq.pdf"}],winningSupplier:"济南市园林绿化工程有限公司",winningAmount:23.2}],localStorage.setItem("biddings",JSON.stringify(t)));let o=t;f.name&&(o=o.filter(i=>i.name.includes(f.name))),f.status!==""&&(o=o.filter(i=>i.status===Number(f.status))),R.value=o,w.total=o.length}catch{b.error("加载数据失败")}};me(()=>{A()});const Q=async()=>{await A(),b.success("查询成功")},W=()=>{f.name="",f.status="",A()},Y=()=>{F.value="创建招标",l.name="",l.type="",l.budget=0,l.bidDocumentFee=0,l.bankName="",l.bankAccount="",l.contactPerson="",l.contactPhone="",l.registrationDeadline="",l.openingDate="",l.openingAddress="",l.description="",l.qualificationRequirements="",l.documents=[],V.value=!0,S.value&&S.value.clearValidate()},G=s=>{l.documents.push({name:s.name,url:"/zcxq.pdf"})},K=s=>{l.documents.splice(s,1)},X=s=>{window.open(s.url||"/zcxq.pdf","_blank")},z=h(!1),u=h({}),Z=s=>{u.value=s,z.value=!0},ee=s=>{F.value="编辑招标",Object.assign(l,s),V.value=!0},te=async s=>{fe.confirm("确认发布该招标项目吗?","提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(async()=>{try{const t=localStorage.getItem("biddings"),o=t?JSON.parse(t):[],i=o.findIndex(r=>r.id===s.id);i!==-1&&(o[i].status=1,o[i].publishDate=new Date().toISOString().split("T")[0],localStorage.setItem("biddings",JSON.stringify(o)),b.success("发布成功"),await A())}catch{b.error("发布失败")}}).catch(()=>{b.info("已取消发布")})},ne=async s=>{try{const t=localStorage.getItem("biddings");let o=t?JSON.parse(t):[];o=o.filter(i=>i.id!==s.id),localStorage.setItem("biddings",JSON.stringify(o)),b.success("删除成功"),await A()}catch{b.error("删除失败")}},ae=()=>{if(!S.value){b.warning("表单未初始化");return}S.value.validate(async s=>{if(s)try{const t=localStorage.getItem("biddings"),o=t?JSON.parse(t):[],i=new Date().getFullYear(),r={...l,id:l.id||Date.now(),code:l.code||`BID${i}${String(o.length+1).padStart(6,"0")}`,status:0,enrollCount:0,publishDate:"",registrationDeadline:l.registrationDeadline?new Date(l.registrationDeadline).toISOString():"",openingDate:l.openingDate?new Date(l.openingDate).toISOString():""};if(l.id){const D=o.findIndex(N=>N.id===l.id);D!==-1&&(o[D]=r)}else o.push(r);localStorage.setItem("biddings",JSON.stringify(o)),b.success("保存成功"),V.value=!1,await A()}catch{b.error("保存失败")}else return b.error("请填写完整信息"),!1})},le=()=>{const s=R.value.map(i=>({项目编号:i.code,项目名称:i.name,招标类型:i.type,"预算金额(万元)":i.budget,"标书购买费(元)":i.bidDocumentFee,开户行:i.bankName,银行账号:i.bankAccount,联系人:i.contactPerson,联系电话:i.contactPhone,报名截止日期:i.registrationDeadline,开标日期:i.openingDate,开标地址:i.openingAddress,发布日期:i.publishDate,报名数:i.enrollCount,状态:["草稿","报名中","已开标","已定标","已完成"][i.status]})),t=O.json_to_sheet(s),o=O.book_new();O.book_append_sheet(o,t,"招标列表"),De(o,`招标列表_${new Date().toLocaleDateString()}.xlsx`),b.success("导出成功")};return(s,t)=>{const o=p("el-button"),i=p("el-input"),r=p("el-form-item"),D=p("el-option"),N=p("el-select"),$=p("el-form"),x=p("el-tag"),_=p("el-table-column"),oe=p("el-table"),ie=p("el-pagination"),de=p("el-card"),y=p("el-col"),P=p("el-row"),E=p("el-input-number"),J=p("el-date-picker"),ue=p("el-upload"),T=p("el-icon"),j=p("el-dialog"),m=p("el-descriptions-item"),se=p("el-link"),re=p("el-descriptions");return g(),k("div",_e,[e(de,null,{header:n(()=>[C("div",ye,[t[23]||(t[23]=C("span",null,"招标管理",-1)),C("div",null,[e(o,{type:"success",onClick:le},{default:n(()=>[...t[21]||(t[21]=[d("导出Excel",-1)])]),_:1}),e(o,{type:"primary",onClick:Y},{default:n(()=>[...t[22]||(t[22]=[d("创建招标",-1)])]),_:1})])])]),default:n(()=>[e($,{inline:!0,model:f,class:"search-form"},{default:n(()=>[e(r,{label:"项目名称"},{default:n(()=>[e(i,{modelValue:f.name,"onUpdate:modelValue":t[0]||(t[0]=a=>f.name=a),placeholder:"请输入",clearable:""},null,8,["modelValue"])]),_:1}),e(r,{label:"状态"},{default:n(()=>[e(N,{modelValue:f.status,"onUpdate:modelValue":t[1]||(t[1]=a=>f.status=a),placeholder:"请选择",clearable:"",style:{width:"150px"}},{default:n(()=>[e(D,{label:"草稿",value:"0"}),e(D,{label:"报名中",value:"1"}),e(D,{label:"已开标",value:"2"}),e(D,{label:"已定标",value:"3"}),e(D,{label:"已完成",value:"4"})]),_:1},8,["modelValue"])]),_:1}),e(r,null,{default:n(()=>[e(o,{type:"primary",onClick:Q},{default:n(()=>[...t[24]||(t[24]=[d("查询",-1)])]),_:1}),e(o,{onClick:W},{default:n(()=>[...t[25]||(t[25]=[d("重置",-1)])]),_:1})]),_:1})]),_:1},8,["model"]),e(oe,{data:R.value,border:""},{default:n(()=>[e(_,{prop:"status",label:"状态",width:"100"},{default:n(({row:a})=>[a.status===0?(g(),v(x,{key:0,type:"info"},{default:n(()=>[...t[26]||(t[26]=[d("草稿",-1)])]),_:1})):a.status===1?(g(),v(x,{key:1,type:"success"},{default:n(()=>[...t[27]||(t[27]=[d("报名中",-1)])]),_:1})):a.status===2?(g(),v(x,{key:2},{default:n(()=>[...t[28]||(t[28]=[d("已开标",-1)])]),_:1})):a.status===3?(g(),v(x,{key:3,type:"warning"},{default:n(()=>[...t[29]||(t[29]=[d("评标中",-1)])]),_:1})):a.status===4?(g(),v(x,{key:4,type:"primary"},{default:n(()=>[...t[30]||(t[30]=[d("已定标",-1)])]),_:1})):(g(),v(x,{key:5,type:"success"},{default:n(()=>[...t[31]||(t[31]=[d("已完成",-1)])]),_:1}))]),_:1}),e(_,{prop:"code",label:"项目编号",width:"150"}),e(_,{prop:"name",label:"项目名称","min-width":"200"}),e(_,{prop:"type",label:"招标类型",width:"100"}),e(_,{prop:"budget",label:"预算金额(万元)",width:"130"}),e(_,{prop:"contactPerson",label:"联系人",width:"100"}),e(_,{prop:"contactPhone",label:"联系电话",width:"120"}),e(_,{prop:"registrationDeadline",label:"报名截止日期",width:"160"}),e(_,{prop:"publishDate",label:"发布日期",width:"110"}),e(_,{prop:"enrollCount",label:"报名数",width:"80"}),e(_,{label:"操作",width:"200",fixed:"right"},{default:n(({row:a})=>[e(o,{link:"",type:"primary",onClick:q=>Z(a)},{default:n(()=>[...t[32]||(t[32]=[d("查看",-1)])]),_:1},8,["onClick"]),a.status===0?(g(),v(o,{key:0,link:"",type:"primary",onClick:q=>ee(a)},{default:n(()=>[...t[33]||(t[33]=[d("编辑",-1)])]),_:1},8,["onClick"])):I("",!0),a.status===0?(g(),v(o,{key:1,link:"",type:"success",onClick:q=>te(a)},{default:n(()=>[...t[34]||(t[34]=[d("发布",-1)])]),_:1},8,["onClick"])):I("",!0),e(o,{link:"",type:"danger",onClick:q=>ne(a)},{default:n(()=>[...t[35]||(t[35]=[d("删除",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1},8,["data"]),e(ie,{"current-page":w.page,"onUpdate:currentPage":t[2]||(t[2]=a=>w.page=a),"page-size":w.size,"onUpdate:pageSize":t[3]||(t[3]=a=>w.size=a),total:w.total,layout:"total, sizes, prev, pager, next, jumper",style:{"margin-top":"20px","justify-content":"flex-end"}},null,8,["current-page","page-size","total"])]),_:1}),e(j,{modelValue:V.value,"onUpdate:modelValue":t[18]||(t[18]=a=>V.value=a),title:F.value,width:"900px"},{footer:n(()=>[e(o,{onClick:t[17]||(t[17]=a=>V.value=!1)},{default:n(()=>[...t[38]||(t[38]=[d("取消",-1)])]),_:1}),e(o,{type:"primary",onClick:ae},{default:n(()=>[...t[39]||(t[39]=[d("提交",-1)])]),_:1})]),default:n(()=>[e($,{model:l,rules:H,ref_key:"formRef",ref:S,"label-width":"120px"},{default:n(()=>[e(P,{gutter:20},{default:n(()=>[e(y,{span:12},{default:n(()=>[e(r,{label:"项目名称",prop:"name"},{default:n(()=>[e(i,{modelValue:l.name,"onUpdate:modelValue":t[4]||(t[4]=a=>l.name=a),placeholder:"请输入项目名称"},null,8,["modelValue"])]),_:1})]),_:1}),e(y,{span:12},{default:n(()=>[e(r,{label:"招标类型",prop:"type"},{default:n(()=>[e(N,{modelValue:l.type,"onUpdate:modelValue":t[5]||(t[5]=a=>l.type=a),placeholder:"请选择"},{default:n(()=>[e(D,{label:"公开招标",value:"公开招标"}),e(D,{label:"邀请招标",value:"邀请招标"}),e(D,{label:"竞争性谈判",value:"竞争性谈判"})]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1}),e(P,{gutter:20},{default:n(()=>[e(y,{span:12},{default:n(()=>[e(r,{label:"预算金额(万元)",prop:"budget"},{default:n(()=>[e(E,{modelValue:l.budget,"onUpdate:modelValue":t[6]||(t[6]=a=>l.budget=a),min:0,precision:2,style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),e(y,{span:12},{default:n(()=>[e(r,{label:"标书购买费(元)",prop:"bidDocumentFee"},{default:n(()=>[e(E,{modelValue:l.bidDocumentFee,"onUpdate:modelValue":t[7]||(t[7]=a=>l.bidDocumentFee=a),min:0,precision:2,style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),e(P,{gutter:20},{default:n(()=>[e(y,{span:12},{default:n(()=>[e(r,{label:"开户行",prop:"bankName"},{default:n(()=>[e(i,{modelValue:l.bankName,"onUpdate:modelValue":t[8]||(t[8]=a=>l.bankName=a),placeholder:"请输入开户行"},null,8,["modelValue"])]),_:1})]),_:1}),e(y,{span:12},{default:n(()=>[e(r,{label:"银行账号",prop:"bankAccount"},{default:n(()=>[e(i,{modelValue:l.bankAccount,"onUpdate:modelValue":t[9]||(t[9]=a=>l.bankAccount=a),placeholder:"请输入银行账号"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),e(P,{gutter:20},{default:n(()=>[e(y,{span:12},{default:n(()=>[e(r,{label:"联系人",prop:"contactPerson"},{default:n(()=>[e(i,{modelValue:l.contactPerson,"onUpdate:modelValue":t[10]||(t[10]=a=>l.contactPerson=a),placeholder:"请输入联系人"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),e(P,{gutter:20},{default:n(()=>[e(y,{span:12},{default:n(()=>[e(r,{label:"联系电话",prop:"contactPhone"},{default:n(()=>[e(i,{modelValue:l.contactPhone,"onUpdate:modelValue":t[11]||(t[11]=a=>l.contactPhone=a),placeholder:"请输入联系电话"},null,8,["modelValue"])]),_:1})]),_:1}),e(y,{span:12},{default:n(()=>[e(r,{label:"报名截止日期",prop:"registrationDeadline"},{default:n(()=>[e(J,{modelValue:l.registrationDeadline,"onUpdate:modelValue":t[12]||(t[12]=a=>l.registrationDeadline=a),type:"datetime",placeholder:"选择日期时间",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),e(P,{gutter:20},{default:n(()=>[e(y,{span:12},{default:n(()=>[e(r,{label:"开标日期",prop:"openingDate"},{default:n(()=>[e(J,{modelValue:l.openingDate,"onUpdate:modelValue":t[13]||(t[13]=a=>l.openingDate=a),type:"datetime",placeholder:"选择日期时间",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),e(y,{span:12},{default:n(()=>[e(r,{label:"开标地址",prop:"openingAddress"},{default:n(()=>[e(i,{modelValue:l.openingAddress,"onUpdate:modelValue":t[14]||(t[14]=a=>l.openingAddress=a),placeholder:"请输入开标地址"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),e(r,{label:"项目描述",prop:"description"},{default:n(()=>[e(i,{modelValue:l.description,"onUpdate:modelValue":t[15]||(t[15]=a=>l.description=a),type:"textarea",rows:4,placeholder:"请输入项目描述"},null,8,["modelValue"])]),_:1}),e(r,{label:"投标人资格要求"},{default:n(()=>[e(i,{modelValue:l.qualificationRequirements,"onUpdate:modelValue":t[16]||(t[16]=a=>l.qualificationRequirements=a),type:"textarea",rows:3,placeholder:"请输入投标人资格要求"},null,8,["modelValue"])]),_:1}),e(r,{label:"招标文件"},{default:n(()=>[e(ue,{action:"#","auto-upload":!1,accept:".pdf,.doc,.docx",multiple:"","on-change":G,"show-file-list":!1},{tip:n(()=>[...t[37]||(t[37]=[C("div",{style:{color:"#999","font-size":"12px"}},"支持PDF、Word格式",-1)])]),default:n(()=>[e(o,{type:"primary"},{default:n(()=>[...t[36]||(t[36]=[d("上传文件",-1)])]),_:1})]),_:1}),l.documents.length>0?(g(),k("div",ke,[(g(!0),k(U,null,L(l.documents,(a,q)=>(g(),k("div",{key:q,style:{display:"flex","align-items":"center",padding:"8px",border:"1px solid #ddd","border-radius":"4px","margin-bottom":"8px"}},[e(T,{style:{"margin-right":"8px"},color:"#409EFF"},{default:n(()=>[e(M(ge))]),_:1}),C("span",{style:{flex:"1",cursor:"pointer"},onClick:pe=>X(a)},c(a.name),9,qe),e(T,{style:{cursor:"pointer"},onClick:pe=>K(q)},{default:n(()=>[e(M(be))]),_:1},8,["onClick"])]))),128))])):I("",!0)]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue","title"]),e(j,{modelValue:z.value,"onUpdate:modelValue":t[20]||(t[20]=a=>z.value=a),title:"招标详情",width:"800px"},{footer:n(()=>[e(o,{onClick:t[19]||(t[19]=a=>z.value=!1)},{default:n(()=>[...t[41]||(t[41]=[d("关闭",-1)])]),_:1})]),default:n(()=>[e(re,{column:2,border:""},{default:n(()=>[e(m,{label:"项目编号"},{default:n(()=>[d(c(u.value.code),1)]),_:1}),e(m,{label:"项目名称"},{default:n(()=>[d(c(u.value.name),1)]),_:1}),e(m,{label:"招标类型"},{default:n(()=>[d(c(u.value.type),1)]),_:1}),e(m,{label:"预算金额"},{default:n(()=>[d(c(u.value.budget)+" 万元",1)]),_:1}),e(m,{label:"标书购买费"},{default:n(()=>[d(c(u.value.bidDocumentFee)+" 元",1)]),_:1}),e(m,{label:"开户行"},{default:n(()=>[d(c(u.value.bankName),1)]),_:1}),e(m,{label:"银行账号",span:2},{default:n(()=>[d(c(u.value.bankAccount),1)]),_:1}),e(m,{label:"联系人"},{default:n(()=>[d(c(u.value.contactPerson),1)]),_:1}),e(m,{label:"联系电话"},{default:n(()=>[d(c(u.value.contactPhone),1)]),_:1}),e(m,{label:"报名截止日期"},{default:n(()=>[d(c(u.value.registrationDeadline),1)]),_:1}),e(m,{label:"开标日期"},{default:n(()=>[d(c(u.value.openingDate),1)]),_:1}),e(m,{label:"开标地址",span:2},{default:n(()=>[d(c(u.value.openingAddress),1)]),_:1}),e(m,{label:"发布日期"},{default:n(()=>[d(c(u.value.publishDate),1)]),_:1}),e(m,{label:"报名数"},{default:n(()=>[d(c(u.value.enrollCount),1)]),_:1}),e(m,{label:"项目描述",span:2},{default:n(()=>[d(c(u.value.description),1)]),_:1}),e(m,{label:"投标人资格要求",span:2},{default:n(()=>[d(c(u.value.qualificationRequirements),1)]),_:1}),u.value.status>=3?(g(),k(U,{key:0},[e(m,{label:"中标供应商",span:2},{default:n(()=>[e(x,{type:"success"},{default:n(()=>[d(c(u.value.winningSupplier),1)]),_:1})]),_:1}),e(m,{label:"中标金额",span:2},{default:n(()=>[C("span",ve,c(u.value.winningAmount),1),t[40]||(t[40]=d(" 万元 ",-1))]),_:1})],64)):I("",!0),e(m,{label:"招标文件",span:2},{default:n(()=>[u.value.documents&&u.value.documents.length>0?(g(),k("div",xe,[(g(!0),k(U,null,L(u.value.documents,(a,q)=>(g(),k("div",{key:q,style:{"margin-bottom":"8px"}},[e(se,{type:"primary",href:a.url,target:"_blank"},{default:n(()=>[d(c(a.name),1)]),_:2},1032,["href"])]))),128))])):(g(),k("span",Ve,"暂无文件"))]),_:1})]),_:1})]),_:1},8,["modelValue"])])}}},Ce=ce(we,[["__scopeId","data-v-2705e110"]]);export{Ce as default};