import{_ as xe,V as ve,o as y,c as D,e,f as n,E as b,j as m,k as V,q as B,h as i,a as C,t as r,n as Te,g as ke,d as J,F as H,r as j,m as L,Q as Ve,a2 as he,T as W}from"./index-C1KISTGN.js";const we={class:"pending-bidding-library"},Pe={class:"card-header"},Ne={class:"sort-control",style:{"margin-bottom":"15px"}},Ce={key:0,style:{color:"#409EFF"}},qe={key:1,style:{color:"#999"}},Se={key:1,style:{color:"#999"}},Ae={key:0,style:{"margin-top":"10px"}},Oe=["onClick"],Ue={key:0},Ie={key:1,style:{color:"#999"}},Me={__name:"PendingBiddingLibrary",setup(Be){const q=V(!1),E=V(""),A=V(null),I=V([]),O=V(!1),T=B({id:null,name:"",expectedTime:""}),x=B({name:"",expectedTime:""}),U=V("time"),a=B({name:"",type:"",budget:0,expectedTime:"",bidDocumentFee:0,biddingMethod:"",bankName:"",bankAccount:"",contactPerson:"",contactPhone:"",registrationDeadline:"",openingDate:"",openingAddress:"",expectedOpeningTime:"",description:"",qualificationRequirements:"",documents:[]}),Q={name:[{required:!0,message:"请输入项目名称",trigger:"blur"}],type:[{required:!0,message:"请选择招标类型",trigger:"change"}],budget:[{required:!0,message:"请输入预算金额",trigger:"blur"}],expectedTime:[{required:!0,message:"请选择预计招标时间",trigger:"change"}],contactPerson:[{required:!0,message:"请输入联系人",trigger:"blur"}],contactPhone:[{required:!0,message:"请输入联系电话",trigger:"blur"}],description:[{required:!0,message:"请输入项目描述",trigger:"blur"}]},S=B({page:1,size:20,total:0}),F=V([]),h=async()=>{try{localStorage.removeItem("pendingBiddings");const d=localStorage.getItem("pendingBiddings");let t=d?JSON.parse(d):[];t.length<10&&(t=[{id:1,code:"PENDING2024000001",name:"医疗设备采购项目",type:"公开招标",budget:500,expectedTime:"2024-07-15 09:00:00",biddingMethod:"公开招标",bankName:"中国工商银行市分行",bankAccount:"6222021234567890123",publishDate:"",enrollCount:0,status:0,description:"采购超声诊断仪、心电图机等医疗设备",qualificationRequirements:"具有医疗器械经营许可证",contactPerson:"陈建国",contactPhone:"13800138001",registrationDeadline:"",openingDate:"",openingAddress:"",expectedOpeningTime:"2024-07-15 09:30:00",createTime:"2024-06-01 10:00:00",documents:[{name:"医疗设备采购需求.pdf",url:"/medical-equipment.pdf"}]},{id:2,code:"PENDING2024000002",name:"办公用品年度采购",type:"询价采购",budget:100,expectedTime:"2024-06-20 14:00:00",biddingMethod:"询价采购",bankName:"中国建设银行市分行",bankAccount:"6217001234567890123",publishDate:"",enrollCount:0,status:0,description:"办公文具、纸张等用品年度采购",qualificationRequirements:"无特殊要求",contactPerson:"李敏",contactPhone:"13800138002",registrationDeadline:"",openingDate:"",openingAddress:"",expectedOpeningTime:"2024-06-20 15:00:00",createTime:"2024-06-02 09:30:00",documents:[{name:"办公用品采购需求.docx",url:"/office-supplies.pdf"}]},{id:3,code:"PENDING2024000003",name:"信息化系统升级项目",type:"竞争性谈判",budget:300,expectedTime:"2024-07-01 10:00:00",biddingMethod:"竞争性谈判",bankName:"中国农业银行市分行",bankAccount:"6228481234567890123",publishDate:"",enrollCount:0,status:0,description:"HIS系统、LIS系统升级改造项目",qualificationRequirements:"具有软件开发资质",contactPerson:"王涛",contactPhone:"13800138003",registrationDeadline:"",openingDate:"",openingAddress:"",expectedOpeningTime:"2024-07-01 14:00:00",createTime:"2024-06-03 14:00:00",documents:[]},{id:4,code:"PENDING2024000004",name:"安保服务外包项目",type:"邀请招标",budget:150,expectedTime:"2024-06-25 09:00:00",biddingMethod:"邀请招标",bankName:"中国银行市分行",bankAccount:"6013821234567890123",publishDate:"",enrollCount:0,status:0,description:"医院安保服务外包项目",qualificationRequirements:"具有保安服务许可证",contactPerson:"赵强",contactPhone:"13800138004",registrationDeadline:"",openingDate:"",openingAddress:"",expectedOpeningTime:"2024-06-25 10:00:00",createTime:"2024-06-04 11:00:00",documents:[{name:"安保服务需求.pdf",url:"/security-service.pdf"}]},{id:5,code:"PENDING2024000005",name:"医疗废物处理项目",type:"公开招标",budget:80,expectedTime:"2024-07-05 14:00:00",biddingMethod:"公开招标",bankName:"交通银行市分行",bankAccount:"6222621234567890123",publishDate:"",enrollCount:0,status:0,description:"医疗废物收集、运输、处理服务",qualificationRequirements:"具有危险废物经营许可证",contactPerson:"孙华",contactPhone:"13800138005",registrationDeadline:"",openingDate:"",openingAddress:"",expectedOpeningTime:"2024-07-05 15:30:00",createTime:"2024-06-05 16:00:00",documents:[]},{id:6,code:"PENDING2024000006",name:"空调系统维护项目",type:"竞争性谈判",budget:60,expectedTime:"2024-06-30 10:00:00",biddingMethod:"竞争性谈判",bankName:"招商银行市分行",bankAccount:"6225881234567890123",publishDate:"",enrollCount:0,status:0,description:"中央空调系统年度维护保养",qualificationRequirements:"具有空调维修资质",contactPerson:"周梅",contactPhone:"13800138006",registrationDeadline:"",openingDate:"",openingAddress:"",expectedOpeningTime:"2024-06-30 14:00:00",createTime:"2024-06-06 08:30:00",documents:[{name:"空调维护需求.pdf",url:"/ac-maintenance.pdf"}]},{id:7,code:"PENDING2024000007",name:"电梯维保服务项目",type:"公开招标",budget:35,expectedTime:"2024-07-10 09:00:00",biddingMethod:"公开招标",bankName:"中国工商银行市分行",bankAccount:"6222021234567890124",publishDate:"",enrollCount:0,status:0,description:"医院电梯日常维护保养",qualificationRequirements:"具有电梯维修资质",contactPerson:"朱刚",contactPhone:"13800138007",registrationDeadline:"",openingDate:"",openingAddress:"",expectedOpeningTime:"2024-07-10 10:30:00",createTime:"2024-06-07 10:00:00",documents:[]},{id:8,code:"PENDING2024000008",name:"绿化养护服务项目",type:"邀请招标",budget:25,expectedTime:"2024-06-28 14:00:00",biddingMethod:"邀请招标",bankName:"中国农业银行市分行",bankAccount:"6228481234567890124",publishDate:"",enrollCount:0,status:0,description:"医院绿化养护、景观维护",qualificationRequirements:"具有园林绿化资质",contactPerson:"林慧",contactPhone:"13800138008",registrationDeadline:"",openingDate:"",openingAddress:"",expectedOpeningTime:"2024-06-28 15:00:00",createTime:"2024-06-08 14:30:00",documents:[{name:"绿化养护需求.docx",url:"/landscaping.pdf"}]},{id:9,code:"PENDING2024000009",name:"网络设备升级项目",type:"公开招标",budget:120,expectedTime:"2024-07-08 10:00:00",biddingMethod:"公开招标",bankName:"中国建设银行市分行",bankAccount:"6217001234567890124",publishDate:"",enrollCount:0,status:0,description:"网络设备升级改造",qualificationRequirements:"具有网络系统集成资质",contactPerson:"刘平",contactPhone:"13800138009",registrationDeadline:"",openingDate:"",openingAddress:"",expectedOpeningTime:"2024-07-08 14:00:00",createTime:"2024-06-09 09:30:00",documents:[]},{id:10,code:"PENDING2024000010",name:"食堂食材配送服务",type:"询价采购",budget:90,expectedTime:"2024-06-15 09:00:00",biddingMethod:"询价采购",bankName:"交通银行市分行",bankAccount:"6222621234567890124",publishDate:"",enrollCount:0,status:0,description:"医院食堂食材配送服务",qualificationRequirements:"具有食品经营许可证",contactPerson:"黄强",contactPhone:"13800138010",registrationDeadline:"",openingDate:"",openingAddress:"",expectedOpeningTime:"2024-06-15 10:00:00",createTime:"2024-06-10 11:30:00",documents:[{name:"食材配送需求.pdf",url:"/food-delivery.pdf"}]}],localStorage.setItem("pendingBiddings",JSON.stringify(t)));const s=o=>{if(!o)return null;const g=new Date,P=new Date(o)-g;return Math.ceil(P/(1e3*60*60*24))};t=t.map(o=>({...o,daysUntilOpening:s(o.expectedTime)}));let u=[...t];U.value==="time"?u.sort((o,g)=>{const v=new Date(o.expectedTime||"9999-12-31");return new Date(g.expectedTime||"9999-12-31")-v}):U.value==="name"?u.sort((o,g)=>o.name.localeCompare(g.name)):U.value==="create"&&u.sort((o,g)=>{const v=new Date(o.createTime||"9999-12-31");return new Date(g.createTime||"9999-12-31")-v}),x.name&&(u=u.filter(o=>o.name.includes(x.name))),x.expectedTime&&(u=u.filter(o=>o.expectedTime&&o.expectedTime.startsWith(x.expectedTime))),F.value=u,S.total=u.length}catch{b.error("加载数据失败")}},K=async()=>{await h()},X=d=>d===0?"#F56C6C":d>0&&d<=7?"#E6A23C":d>7&&d<=30?"#409EFF":"#67C23A";ve(()=>{h()});const Z=async()=>{await h(),b.success("查询成功")},ee=()=>{x.name="",x.expectedTime="",h()},te=()=>{E.value="创建招标",a.name="",a.type="",a.budget=0,a.expectedTime="",a.bidDocumentFee=0,a.biddingMethod="",a.bankName="",a.bankAccount="",a.contactPerson="",a.contactPhone="",a.registrationDeadline="",a.openingDate="",a.openingAddress="",a.expectedOpeningTime="",a.description="",a.qualificationRequirements="",a.documents=[],q.value=!0,A.value&&A.value.clearValidate()},ne=d=>{a.documents.push({name:d.name,url:"/zcxq.pdf"})},le=d=>{a.documents.splice(d,1)},ae=d=>{window.open(d.url||"/zcxq.pdf","_blank")},M=V(!1),p=V({}),oe=d=>{p.value=d,M.value=!0},ie=d=>{E.value="编辑招标",Object.assign(a,d),q.value=!0},de=async d=>{W.confirm("确认发布该招标项目吗?","提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(async()=>{try{const t=localStorage.getItem("pendingBiddings"),s=t?JSON.parse(t):[],u=s.findIndex(o=>o.id===d.id);u!==-1&&(s[u].status=1,s[u].publishDate=new Date().toISOString().split("T")[0],localStorage.setItem("pendingBiddings",JSON.stringify(s)),b.success("发布成功"),await h())}catch{b.error("发布失败")}}).catch(()=>{b.info("已取消发布")})},se=async d=>{try{await W.confirm("确定要删除这个招标项目吗?","确认删除",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"});const t=localStorage.getItem("pendingBiddings");let s=t?JSON.parse(t):[];s=s.filter(u=>u.id!==d.id),localStorage.setItem("pendingBiddings",JSON.stringify(s)),b.success("删除成功"),await h()}catch(t){t!=="cancel"&&b.error("删除失败")}},ue=d=>{I.value=d},re=()=>{if(I.value.length!==1){b.warning("请选择一条记录");return}const d=I.value[0];T.id=d.id,T.name=d.name,T.expectedTime=d.expectedTime,O.value=!0},pe=async()=>{try{const d=localStorage.getItem("pendingBiddings"),t=d?JSON.parse(d):[],s=t.findIndex(u=>u.id===T.id);s!==-1&&(t[s].expectedTime=T.expectedTime,localStorage.setItem("pendingBiddings",JSON.stringify(t)),b.success("保存成功"),O.value=!1,await h())}catch{b.error("保存失败")}},me=()=>{if(!A.value){b.warning("表单未初始化");return}A.value.validate(async d=>{if(d)try{const t=localStorage.getItem("pendingBiddings"),s=t?JSON.parse(t):[],u=new Date().getFullYear(),o={...a,id:a.id||Date.now(),code:a.code||`PENDING${u}${String(s.length+1).padStart(6,"0")}`,status:0,enrollCount:0,publishDate:"",createTime:a.createTime||new Date().toISOString().replace("T"," ").substring(0,19),registrationDeadline:a.registrationDeadline||"",openingDate:a.openingDate||""};if(a.id){const g=s.findIndex(v=>v.id===a.id);g!==-1&&(s[g]=o)}else s.push(o);localStorage.setItem("pendingBiddings",JSON.stringify(s)),b.success("保存成功"),q.value=!1,await h()}catch{b.error("保存失败")}else return b.error("请填写完整信息"),!1})};return(d,t)=>{const s=m("el-button"),u=m("el-input"),o=m("el-form-item"),g=m("el-date-picker"),v=m("el-form"),P=m("el-radio-button"),Y=m("el-radio-group"),_=m("el-table-column"),ce=m("el-table"),ge=m("el-pagination"),fe=m("el-card"),f=m("el-col"),k=m("el-option"),z=m("el-select"),N=m("el-row"),$=m("el-input-number"),be=m("el-upload"),G=m("el-icon"),R=m("el-dialog"),c=m("el-descriptions-item"),ye=m("el-link"),_e=m("el-descriptions");return y(),D("div",we,[e(fe,null,{header:n(()=>[C("div",Pe,[t[30]||(t[30]=C("span",{style:{"font-size":"16px","font-weight":"bold"}},"待招标库",-1)),C("div",null,[e(s,{type:"primary",disabled:I.value.length!==1,onClick:re},{default:n(()=>[...t[28]||(t[28]=[i("编辑预计招标时间",-1)])]),_:1},8,["disabled"]),e(s,{type:"primary",onClick:te},{default:n(()=>[...t[29]||(t[29]=[i("创建招标",-1)])]),_:1})])])]),default:n(()=>[e(v,{inline:!0,model:x,class:"search-form"},{default:n(()=>[e(o,{label:"项目名称"},{default:n(()=>[e(u,{modelValue:x.name,"onUpdate:modelValue":t[0]||(t[0]=l=>x.name=l),placeholder:"请输入项目名称",clearable:""},null,8,["modelValue"])]),_:1}),e(o,{label:"预计招标时间"},{default:n(()=>[e(g,{modelValue:x.expectedTime,"onUpdate:modelValue":t[1]||(t[1]=l=>x.expectedTime=l),type:"datetime",placeholder:"选择预计招标时间",style:{width:"220px"},"value-format":"YYYY-MM-DD HH:mm:ss",clearable:""},null,8,["modelValue"])]),_:1}),e(o,null,{default:n(()=>[e(s,{type:"primary",onClick:Z},{default:n(()=>[...t[31]||(t[31]=[i("查询",-1)])]),_:1}),e(s,{onClick:ee},{default:n(()=>[...t[32]||(t[32]=[i("重置",-1)])]),_:1})]),_:1})]),_:1},8,["model"]),C("div",Ne,[e(Y,{modelValue:U.value,"onUpdate:modelValue":t[2]||(t[2]=l=>U.value=l),size:"small",onChange:K},{default:n(()=>[e(P,{label:"time"},{default:n(()=>[...t[33]||(t[33]=[i("按预计招标时间倒序",-1)])]),_:1}),e(P,{label:"name"},{default:n(()=>[...t[34]||(t[34]=[i("按项目名称",-1)])]),_:1}),e(P,{label:"create"},{default:n(()=>[...t[35]||(t[35]=[i("按创建时间",-1)])]),_:1})]),_:1},8,["modelValue"])]),e(ce,{data:F.value,border:"",onSelectionChange:ue},{default:n(()=>[e(_,{type:"selection",width:"55",align:"center"}),e(_,{type:"index",label:"序号",width:"60",align:"center"}),e(_,{prop:"code",label:"项目编号",width:"150"}),e(_,{prop:"name",label:"项目名称","min-width":"200","show-overflow-tooltip":""}),e(_,{prop:"type",label:"招标类型",width:"100"}),e(_,{prop:"budget",label:"预算金额(万元)",width:"130",align:"right"},{default:n(({row:l})=>[i(r(l.budget||"0.00"),1)]),_:1}),e(_,{prop:"expectedTime",label:"预计招标时间",width:"180",align:"center"},{default:n(({row:l})=>[l.expectedTime?(y(),D("span",Ce,r(l.expectedTime),1)):(y(),D("span",qe,"-"))]),_:1}),e(_,{prop:"daysUntilOpening",label:"距开标(天)",width:"100",align:"center"},{default:n(({row:l})=>[l.daysUntilOpening!==null?(y(),D("span",{key:0,style:Te({color:X(l.daysUntilOpening)})},r(l.daysUntilOpening>0?`+${l.daysUntilOpening}`:l.daysUntilOpening),5)):(y(),D("span",Se,"-"))]),_:1}),e(_,{prop:"contactPerson",label:"联系人",width:"100"}),e(_,{prop:"contactPhone",label:"联系电话",width:"120"}),e(_,{prop:"createTime",label:"创建时间",width:"160",align:"center"},{default:n(({row:l})=>[i(r(l.createTime||"-"),1)]),_:1}),e(_,{label:"操作",width:"200",fixed:"right"},{default:n(({row:l})=>[e(s,{link:"",type:"primary",onClick:w=>oe(l)},{default:n(()=>[...t[36]||(t[36]=[i("查看",-1)])]),_:1},8,["onClick"]),e(s,{link:"",type:"primary",onClick:w=>ie(l)},{default:n(()=>[...t[37]||(t[37]=[i("编辑",-1)])]),_:1},8,["onClick"]),l.status===0?(y(),ke(s,{key:0,link:"",type:"success",onClick:w=>de(l)},{default:n(()=>[...t[38]||(t[38]=[i("发布",-1)])]),_:1},8,["onClick"])):J("",!0),e(s,{link:"",type:"danger",onClick:w=>se(l)},{default:n(()=>[...t[39]||(t[39]=[i("删除",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1},8,["data"]),e(ge,{"current-page":S.page,"onUpdate:currentPage":t[3]||(t[3]=l=>S.page=l),"page-size":S.size,"onUpdate:pageSize":t[4]||(t[4]=l=>S.size=l),total:S.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(R,{modelValue:q.value,"onUpdate:modelValue":t[22]||(t[22]=l=>q.value=l),title:E.value,width:"900px"},{footer:n(()=>[e(s,{onClick:t[21]||(t[21]=l=>q.value=!1)},{default:n(()=>[...t[42]||(t[42]=[i("取消",-1)])]),_:1}),e(s,{type:"primary",onClick:me},{default:n(()=>[...t[43]||(t[43]=[i("保存",-1)])]),_:1})]),default:n(()=>[e(v,{model:a,rules:Q,ref_key:"formRef",ref:A,"label-width":"120px"},{default:n(()=>[e(N,{gutter:20},{default:n(()=>[e(f,{span:12},{default:n(()=>[e(o,{label:"项目名称",prop:"name"},{default:n(()=>[e(u,{modelValue:a.name,"onUpdate:modelValue":t[5]||(t[5]=l=>a.name=l),placeholder:"请输入项目名称"},null,8,["modelValue"])]),_:1})]),_:1}),e(f,{span:12},{default:n(()=>[e(o,{label:"招标类型",prop:"type"},{default:n(()=>[e(z,{modelValue:a.type,"onUpdate:modelValue":t[6]||(t[6]=l=>a.type=l),placeholder:"请选择"},{default:n(()=>[e(k,{label:"公开招标",value:"公开招标"}),e(k,{label:"邀请招标",value:"邀请招标"}),e(k,{label:"竞争性谈判",value:"竞争性谈判"}),e(k,{label:"询价采购",value:"询价采购"})]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1}),e(N,{gutter:20},{default:n(()=>[e(f,{span:12},{default:n(()=>[e(o,{label:"预算金额(万元)",prop:"budget"},{default:n(()=>[e($,{modelValue:a.budget,"onUpdate:modelValue":t[7]||(t[7]=l=>a.budget=l),min:0,precision:2,style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),e(f,{span:12},{default:n(()=>[e(o,{label:"预计招标时间",prop:"expectedTime"},{default:n(()=>[e(g,{modelValue:a.expectedTime,"onUpdate:modelValue":t[8]||(t[8]=l=>a.expectedTime=l),type:"datetime",placeholder:"选择预计招标时间",style:{width:"100%"},"value-format":"YYYY-MM-DD HH:mm:ss"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),e(N,{gutter:20},{default:n(()=>[e(f,{span:12},{default:n(()=>[e(o,{label:"标书购买费(元)",prop:"bidDocumentFee"},{default:n(()=>[e($,{modelValue:a.bidDocumentFee,"onUpdate:modelValue":t[9]||(t[9]=l=>a.bidDocumentFee=l),min:0,precision:2,style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),e(f,{span:12},{default:n(()=>[e(o,{label:"招标方式",prop:"biddingMethod"},{default:n(()=>[e(z,{modelValue:a.biddingMethod,"onUpdate:modelValue":t[10]||(t[10]=l=>a.biddingMethod=l),placeholder:"请选择"},{default:n(()=>[e(k,{label:"公开招标",value:"公开招标"}),e(k,{label:"邀请招标",value:"邀请招标"}),e(k,{label:"竞争性谈判",value:"竞争性谈判"}),e(k,{label:"询价采购",value:"询价采购"}),e(k,{label:"单一来源",value:"单一来源"})]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1}),e(N,{gutter:20},{default:n(()=>[e(f,{span:12},{default:n(()=>[e(o,{label:"开户行",prop:"bankName"},{default:n(()=>[e(u,{modelValue:a.bankName,"onUpdate:modelValue":t[11]||(t[11]=l=>a.bankName=l),placeholder:"请输入开户行"},null,8,["modelValue"])]),_:1})]),_:1}),e(f,{span:12},{default:n(()=>[e(o,{label:"银行账号",prop:"bankAccount"},{default:n(()=>[e(u,{modelValue:a.bankAccount,"onUpdate:modelValue":t[12]||(t[12]=l=>a.bankAccount=l),placeholder:"请输入银行账号"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),e(N,{gutter:20},{default:n(()=>[e(f,{span:12},{default:n(()=>[e(o,{label:"联系人",prop:"contactPerson"},{default:n(()=>[e(u,{modelValue:a.contactPerson,"onUpdate:modelValue":t[13]||(t[13]=l=>a.contactPerson=l),placeholder:"请输入联系人"},null,8,["modelValue"])]),_:1})]),_:1}),e(f,{span:12},{default:n(()=>[e(o,{label:"联系电话",prop:"contactPhone"},{default:n(()=>[e(u,{modelValue:a.contactPhone,"onUpdate:modelValue":t[14]||(t[14]=l=>a.contactPhone=l),placeholder:"请输入联系电话"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),e(N,{gutter:20},{default:n(()=>[e(f,{span:12},{default:n(()=>[e(o,{label:"报名截止日期",prop:"registrationDeadline"},{default:n(()=>[e(g,{modelValue:a.registrationDeadline,"onUpdate:modelValue":t[15]||(t[15]=l=>a.registrationDeadline=l),type:"datetime",placeholder:"选择日期时间",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),e(f,{span:12},{default:n(()=>[e(o,{label:"开标日期",prop:"openingDate"},{default:n(()=>[e(g,{modelValue:a.openingDate,"onUpdate:modelValue":t[16]||(t[16]=l=>a.openingDate=l),type:"datetime",placeholder:"选择日期时间",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),e(N,{gutter:20},{default:n(()=>[e(f,{span:12},{default:n(()=>[e(o,{label:"开标地址",prop:"openingAddress"},{default:n(()=>[e(u,{modelValue:a.openingAddress,"onUpdate:modelValue":t[17]||(t[17]=l=>a.openingAddress=l),placeholder:"请输入开标地址"},null,8,["modelValue"])]),_:1})]),_:1}),e(f,{span:12},{default:n(()=>[e(o,{label:"预计开标时间",prop:"expectedOpeningTime"},{default:n(()=>[e(g,{modelValue:a.expectedOpeningTime,"onUpdate:modelValue":t[18]||(t[18]=l=>a.expectedOpeningTime=l),type:"datetime",placeholder:"选择预计开标时间",style:{width:"100%"},"value-format":"YYYY-MM-DD HH:mm:ss"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),e(o,{label:"项目描述",prop:"description"},{default:n(()=>[e(u,{modelValue:a.description,"onUpdate:modelValue":t[19]||(t[19]=l=>a.description=l),type:"textarea",rows:4,placeholder:"请输入项目描述"},null,8,["modelValue"])]),_:1}),e(o,{label:"投标人资格要求"},{default:n(()=>[e(u,{modelValue:a.qualificationRequirements,"onUpdate:modelValue":t[20]||(t[20]=l=>a.qualificationRequirements=l),type:"textarea",rows:3,placeholder:"请输入投标人资格要求"},null,8,["modelValue"])]),_:1}),e(o,{label:"招标文件"},{default:n(()=>[e(be,{action:"#","auto-upload":!1,accept:".pdf,.doc,.docx",multiple:"","on-change":ne,"show-file-list":!1},{tip:n(()=>[...t[41]||(t[41]=[C("div",{style:{color:"#999","font-size":"12px"}},"支持PDF、Word格式",-1)])]),default:n(()=>[e(s,{type:"primary"},{default:n(()=>[...t[40]||(t[40]=[i("上传文件",-1)])]),_:1})]),_:1}),a.documents.length>0?(y(),D("div",Ae,[(y(!0),D(H,null,j(a.documents,(l,w)=>(y(),D("div",{key:w,style:{display:"flex","align-items":"center",padding:"8px",border:"1px solid #ddd","border-radius":"4px","margin-bottom":"8px"}},[e(G,{style:{"margin-right":"8px"},color:"#409EFF"},{default:n(()=>[e(L(Ve))]),_:1}),C("span",{style:{flex:"1",cursor:"pointer"},onClick:De=>ae(l)},r(l.name),9,Oe),e(G,{style:{cursor:"pointer"},onClick:De=>le(w)},{default:n(()=>[e(L(he))]),_:1},8,["onClick"])]))),128))])):J("",!0)]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue","title"]),e(R,{modelValue:O.value,"onUpdate:modelValue":t[25]||(t[25]=l=>O.value=l),title:"编辑预计招标时间",width:"400px"},{footer:n(()=>[e(s,{onClick:t[24]||(t[24]=l=>O.value=!1)},{default:n(()=>[...t[44]||(t[44]=[i("取消",-1)])]),_:1}),e(s,{type:"primary",onClick:pe},{default:n(()=>[...t[45]||(t[45]=[i("保存",-1)])]),_:1})]),default:n(()=>[e(v,{model:T,"label-width":"120px"},{default:n(()=>[e(o,{label:"项目名称"},{default:n(()=>[C("span",null,r(T.name),1)]),_:1}),e(o,{label:"预计招标时间"},{default:n(()=>[e(g,{modelValue:T.expectedTime,"onUpdate:modelValue":t[23]||(t[23]=l=>T.expectedTime=l),type:"datetime",placeholder:"选择预计招标时间",style:{width:"100%"},"value-format":"YYYY-MM-DD HH:mm:ss"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"]),e(R,{modelValue:M.value,"onUpdate:modelValue":t[27]||(t[27]=l=>M.value=l),title:"招标详情",width:"800px"},{footer:n(()=>[e(s,{onClick:t[26]||(t[26]=l=>M.value=!1)},{default:n(()=>[...t[46]||(t[46]=[i("关闭",-1)])]),_:1})]),default:n(()=>[e(_e,{column:2,border:""},{default:n(()=>[e(c,{label:"项目编号"},{default:n(()=>[i(r(p.value.code),1)]),_:1}),e(c,{label:"项目名称"},{default:n(()=>[i(r(p.value.name),1)]),_:1}),e(c,{label:"招标类型"},{default:n(()=>[i(r(p.value.type),1)]),_:1}),e(c,{label:"预算金额"},{default:n(()=>[i(r(p.value.budget||"0.00")+" 万元",1)]),_:1}),e(c,{label:"预计招标时间"},{default:n(()=>[i(r(p.value.expectedTime||"-"),1)]),_:1}),e(c,{label:"招标方式"},{default:n(()=>[i(r(p.value.biddingMethod||"-"),1)]),_:1}),e(c,{label:"标书购买费"},{default:n(()=>[i(r(p.value.bidDocumentFee||"0")+" 元",1)]),_:1}),e(c,{label:"开户行"},{default:n(()=>[i(r(p.value.bankName||"-"),1)]),_:1}),e(c,{label:"银行账号",span:2},{default:n(()=>[i(r(p.value.bankAccount||"-"),1)]),_:1}),e(c,{label:"联系人"},{default:n(()=>[i(r(p.value.contactPerson||"-"),1)]),_:1}),e(c,{label:"联系电话"},{default:n(()=>[i(r(p.value.contactPhone||"-"),1)]),_:1}),e(c,{label:"报名截止日期"},{default:n(()=>[i(r(p.value.registrationDeadline||"-"),1)]),_:1}),e(c,{label:"开标日期"},{default:n(()=>[i(r(p.value.openingDate||"-"),1)]),_:1}),e(c,{label:"开标地址",span:2},{default:n(()=>[i(r(p.value.openingAddress||"-"),1)]),_:1}),e(c,{label:"预计开标时间",span:2},{default:n(()=>[i(r(p.value.expectedOpeningTime||"-"),1)]),_:1}),e(c,{label:"发布日期"},{default:n(()=>[i(r(p.value.publishDate||"-"),1)]),_:1}),e(c,{label:"报名数"},{default:n(()=>[i(r(p.value.enrollCount||"0"),1)]),_:1}),e(c,{label:"创建时间",span:2},{default:n(()=>[i(r(p.value.createTime||"-"),1)]),_:1}),e(c,{label:"项目描述",span:2},{default:n(()=>[i(r(p.value.description||"-"),1)]),_:1}),e(c,{label:"投标人资格要求",span:2},{default:n(()=>[i(r(p.value.qualificationRequirements||"-"),1)]),_:1}),e(c,{label:"招标文件",span:2},{default:n(()=>[p.value.documents&&p.value.documents.length>0?(y(),D("div",Ue,[(y(!0),D(H,null,j(p.value.documents,(l,w)=>(y(),D("div",{key:w,style:{"margin-bottom":"8px"}},[e(ye,{type:"primary",href:l.url,target:"_blank"},{default:n(()=>[i(r(l.name),1)]),_:2},1032,["href"])]))),128))])):(y(),D("span",Ie,"暂无文件"))]),_:1})]),_:1})]),_:1},8,["modelValue"])])}}},Re=xe(Me,[["__scopeId","data-v-44f3afbb"]]);export{Re as default};