|
- import{h as ge,f as ye,b as G,c as Ce}from"./uploadAction-3962500e.js";import{E as Ie,x as Ae,y as He,r as _,a as we,o as Ve,C as xe,b as m,c as b,d as R,e as d,f as s,h as a,L as w,F as N,H as W,i as r,t as f,j as S,u as I,k as ke,s as Re}from"./index-dd5fae99.js";import{i as F}from"./index-b861e656.js";import{s as Ne}from"./finalInspectionDeclare-e797bcb5.js";import{p as Ue}from"./projectStore-30136ff6.js";import Pe from"./actualPerformanceIndicatorsDialog-e85a7f90.js";const De={class:"uploadInitfinalAcceptanceMaterials footerPage"},$e={class:"pb-24"},Me={class:"pl-24"},he={class:"font-semibold text-14 mb-16"},qe={class:"text-primary"},Le={class:"p-16"},Se=["onClick"],Fe=["onClick"],Oe={class:"text-right w-full mt-8"},Be={class:"collapse-title"},je={class:"footer"},Je=ke({name:"declarationFinal"}),Xe=Object.assign(Je,{setup(ze){const K=Ie.dictStore.uploadUrl,U=Ae(),{proxy:Q}=Re(),O=He(),B=["1","2","3","4","5","6","7"],j=_(),p=_({finalAcceptanceMaterials:[{title:"一、项目前期材料",data:[{name:"信息化项目立项批复文件",isHave:!0,files:[],reason:""},{name:"市政府采购计划表",isHave:!0,files:[],reason:""},{name:"采购需求",isHave:!0,files:[],reason:""},{name:"中标通知书",isHave:!0,files:[],reason:""},{name:"技术(软件、系统等)开发合同(协议)",isHave:!0,files:[],reason:""},{name:"设备采购合同(协议)含采购内容清单、以及合同上规定交付的所有文档",isHave:!0,files:[],reason:""},{name:"第三方监理合同(协议)",isHave:!0,files:[],reason:""},{name:"其他前期资料(含中标单位营业执照、工程相关资质等)",isHave:!0,files:[],reason:""}]},{title:"二、项目开工资料",data:[{name:"工程开工报告单(工程名称、建设单位、承建单位、施工单位、计划开工和完工日期、工程实施主要内容、建设单位审批意见及盖章日期,承建单位、施工单位盖章日期)",isHave:!0,files:[],reason:""},{name:"软件类系统开发、部署等功能介绍",isHave:!0,files:[],reason:""},{name:"隐蔽工程类设计图、材料选材、施工计划等(可另作图册)",isHave:!0,files:[],reason:""},{name:"购置到位的设备产品证书、开箱证明、序列号等(可另附成册)",isHave:!0,files:[],reason:""},{name:"项目组名单及人员介绍资料",isHave:!0,files:[],reason:""}]},{title:"三、项目实施过程资料",data:[{name:"设备安装时间、位置一览表等",isHave:!0,files:[],reason:""},{name:"软件类系统开发、部署等完成情况对照表",isHave:!0,required:!0,files:[],reason:""},{name:"历次多方讨论会议记录表、项目变更单等原始凭证",isHave:!0,files:[],reason:""},{name:"信息安全等级保护测评报告",isHave:!0,required:!0,files:[],reason:""},{name:"商业密码应用评估报告",isHave:!0,files:[],reason:""},{name:"财务审计报告",isHave:!0,files:[],reason:""},{name:"变更申请单",isHave:!0,files:[],reason:""},{name:"变更批复文件",isHave:!0,files:[],reason:""}]},{title:"四、项目试运行资料",data:[{name:"试运行报告及整改情况(建设单位)",isHave:!0,files:[],reason:""},{name:"试运行情况业主单位意见(领导签字、单位盖章)",isHave:!0,files:[],reason:""},{name:"历次巡检流程及记录表等原始凭证",isHave:!0,files:[],reason:""},{name:"用户使用报告",isHave:!0,required:!0,files:[],reason:""},{name:"IRS应用试运行报告",isHave:!0,required:!0,files:[],reason:""}]},{title:"五、项目完工资料",data:[{name:"工程类竣工报告(建设单位)",isHave:!0,files:[],reason:""},{name:"完工整体运行情况报告",isHave:!0,files:[],reason:""},{name:"监理总结报告",isHave:!0,files:[],reason:""},{name:"第三方项目评测报告(另册)",isHave:!0,files:[],reason:""},{name:"业主单位组织的初验专家意见及名单,整改情况",isHave:!0,files:[],reason:""},{name:"各类系统、场地、设备使用的管理手册、操作手册、维护手册(可另册)",isHave:!0,files:[],reason:""},{name:"售后服务承诺等(建设单位)",isHave:!0,files:[],reason:""},{name:"终验意见",isHave:!0,required:!0,files:[],reason:""}]}]}),X=[{label:"序号",type:"index",width:"60"},{label:"材料名称",key:"name",prop:"name"},{label:"是否有材料",key:"isHave",slot:"isHave",width:100},{label:"附件/说明(支持扩展名:.doc .docx .pdf)",key:"files",slot:"files"}],A=_([{name:"应用1",status:"运行中",memoryRate:11,cpuRate:33,cpRate:44},{name:"应用2",status:"运行中",memoryRate:68,cpuRate:43,cpRate:30}]),u=_({});let P,D,$;const Y=_(),Z=_(),ee=_(),M=(o,e,g)=>{const n=[e,"rgba(0, 0, 0, 0.1)"];return{legend:{show:!1},graphic:[{type:"text",left:"center",top:"48%",style:{text:`${o}%`,fill:"#333333",fontSize:16,fontWeight:"bold",fontFamily:"DINAlternate-Bold, DINAlternate"}},{type:"text",left:"center",bottom:"0",style:{text:`${g}`,fill:"#333333",fontSize:12}}],series:[{type:"pie",radius:["58%","75%"],center:["50%","50%"],avoidLabelOverlap:!1,data:[{value:o},{value:100-o}],itemStyle:{color:function(i){return n[i.dataIndex]}},labelLine:{show:!1}}]}},ae=()=>{P||(P=F(Y.value));const o=M(u.value.memoryRate,"#5ADE92","近三个月内存平均使用率");P.setOption(o)},le=()=>{D||(D=F(Z.value));const o=M(u.value.cpuRate,"#0967FD","近三个月CPU平均使用率");D.setOption(o)},te=()=>{$||($=F(ee.value));const o=M(u.value.cpRate,"#ffae00","近三个月磁盘平均使用率");$.setOption(o)},se=()=>{ae(),le(),te()},h=_(0),ne=o=>{h.value=o,u.value=A.value[o],se()},V=_(!1),oe=async o=>{o&&o.validate(async(e,g)=>{if(e){V.value=!0;const n={id:U.query.id,isCompletedLogCollection:p.value.isCompletedLogCollection,finalAcceptanceMaterials:JSON.stringify(p.value.finalAcceptanceMaterials),actualPerformanceIndicators:p.value.actualPerformanceIndicators&&JSON.stringify(p.value.actualPerformanceIndicators)||void 0};try{await Ne(U.name==="declarationFinal"?1:2,{projectInfo:n}),V.value=!1,Q.$message.success("提交成功"),O.go(-1)}catch{V.value=!1}}else console.log(g)})},re=async()=>{var e,g;const o=await Ue(U.query.id);p.value={isCompletedLogCollection:o.data.isCompletedLogCollection,finalAcceptanceMaterials:o.data.finalAcceptanceMaterials&&JSON.parse(o.data.finalAcceptanceMaterials)||o.data.preliminaryInspectionMaterials&&JSON.parse(o.data.preliminaryInspectionMaterials),actualPerformanceIndicators:o.data.actualPerformanceIndicators&&JSON.parse(o.data.actualPerformanceIndicators)||o.data.actualPerformanceIndicators&&JSON.parse(o.data.actualPerformanceIndicators)},p.value.finalAcceptanceMaterials=p.value.finalAcceptanceMaterials.map(n=>({...n,data:n.data.map(i=>({...i,isHave:["软件类系统开发、部署等完成情况对照表","信息安全等级保护测评报告","用户使用报告","IRS应用试运行报告","终验意见"].includes(i.name)?!0:i.isHave,required:["软件类系统开发、部署等完成情况对照表","信息安全等级保护测评报告","用户使用报告","IRS应用试运行报告","终验意见"].includes(i.name)?!0:i.required}))})),(e=o.data.projectApplications)!=null&&e.length&&(o.data.projectApplications.map(n=>n.secrecyGrade).includes(3)||o.data.projectApplications.map(n=>n.secrecyGrade).includes(4)||o.data.projectApplications.map(n=>n.secrecyGrade).includes(5))&&(p.value.finalAcceptanceMaterials=p.value.finalAcceptanceMaterials.map(n=>({...n,data:n.data.map(i=>({...i,isHave:["商业密码应用评估报告"].includes(i.name)?!0:i.isHave,required:["商业密码应用评估报告"].includes(i.name)?!0:i.required}))}))),A.value=((g=o.data.projectApplications)==null?void 0:g.map((n,i)=>({name:n.applicationName||n.relatedExistsApplication,status:"运行中",finalIrsApps:o.data.finalIrsApps[i]})))||[],u.value=A.value[0]},ie=[{label:"核心业务",prop:"businessName",key:"businessName"},{label:"实际成效指标",prop:"name",key:"name"},{label:"数值",prop:"nums",key:"nums"},{label:"单位",prop:"unit",key:"unit"},{label:"操作",slot:"action",key:"action"}],H=we({visible:!1,data:void 0}),q=_(),J=(o,e)=>{H.data=o,H.visible=!0,q.value=e},ue=o=>{var e;q.value===void 0?p.value.actualPerformanceIndicators=(e=p.value.actualPerformanceIndicators)!=null&&e.length?[...p.value.actualPerformanceIndicators,...o]:o:p.value.actualPerformanceIndicators[q.value]=o[0]},de=o=>{p.value.actualPerformanceIndicators.splice(o,1)};return Ve(async()=>{await xe(),re()}),(o,e)=>{const g=m("el-tab-pane"),n=m("el-descriptions-item"),i=m("el-descriptions"),y=m("el-col"),z=m("el-row"),pe=m("el-tabs"),L=m("el-collapse-item"),E=m("el-radio"),fe=m("el-radio-group"),x=m("el-form-item"),T=m("table-list"),k=m("el-button"),me=m("el-switch"),ce=m("el-upload"),ve=m("el-input"),_e=m("el-collapse"),be=m("el-form");return b(),R(N,null,[d("div",De,[s(be,{ref_key:"formRef",ref:j,model:p.value,"label-position":"right","label-width":"90px","label-suffix":":","scroll-to-error":"",class:"table-form"},{default:a(()=>[s(_e,{modelValue:B,"onUpdate:modelValue":e[3]||(e[3]=C=>B=C)},{default:a(()=>{var C;return[(C=A.value)!=null&&C.length?(b(),w(L,{key:0,name:"1",class:"mb-16"},{title:a(()=>e[7]||(e[7]=[d("div",{class:"collapse-title"},"关联的应用信息",-1)])),default:a(()=>[d("div",$e,[s(pe,{modelValue:h.value,"onUpdate:modelValue":e[0]||(e[0]=l=>h.value=l),"tab-position":"left",onTabChange:ne},{default:a(()=>[(b(!0),R(N,null,W(A.value,(l,t)=>(b(),w(g,{key:t,label:l.name,name:t},null,8,["label","name"]))),128)),d("div",Me,[d("p",he,[e[8]||(e[8]=r("应用状态:")),d("span",qe,f(u.value.status),1)]),e[23]||(e[23]=d("p",{class:"font-semibold text-14"},"资源概览",-1)),d("div",Le,[s(z,{class:"mb-16"},{default:a(()=>[s(y,{span:12},{default:a(()=>[e[10]||(e[10]=d("p",{class:"mb-8"},"云资源使用情况",-1)),s(i,{column:1,border:""},{default:a(()=>[s(n,{label:"云资源实例使用数"},{default:a(()=>{var l,t;return[r(f((t=(l=u.value)==null?void 0:l.finalIrsApps)==null?void 0:t.cloudResourceUsage.instancesNum),1)]}),_:1}),s(n,{label:"云资源产品"},{default:a(()=>e[9]||(e[9]=[r(" 暂无 ")])),_:1}),s(n,{label:"云资源利用率"},{default:a(()=>{var l,t;return[r(f((t=(l=u.value)==null?void 0:l.finalIrsApps)==null?void 0:t.cloudResourceUsage.utilizationRate),1)]}),_:1})]),_:1})]),_:1})]),_:1}),s(z,{gutter:24},{default:a(()=>[s(y,{span:12,class:"mb-16"},{default:a(()=>[e[11]||(e[11]=d("p",{class:"mb-8"},"数据使用情况",-1)),s(i,{column:1,border:""},{default:a(()=>[s(n,{label:"数据共享申请量"},{default:a(()=>{var l,t;return[r(f((t=(l=u.value)==null?void 0:l.finalIrsApps)==null?void 0:t.dataUsage.sharedApplicationVolume),1)]}),_:1}),s(n,{label:"数据共享使用量"},{default:a(()=>{var l,t;return[r(f((t=(l=u.value)==null?void 0:l.finalIrsApps)==null?void 0:t.dataUsage.sharedUsage),1)]}),_:1})]),_:1})]),_:1}),s(y,{span:12,class:"mb-16"},{default:a(()=>[e[12]||(e[12]=d("p",{class:"mb-31"},null,-1)),s(i,{column:1,border:""},{default:a(()=>[s(n,{label:"协同接口调用量"},{default:a(()=>{var l,t;return[r(f((t=(l=u.value)==null?void 0:l.finalIrsApps)==null?void 0:t.dataUsage.collaborativeInterfaceCallVolume),1)]}),_:1}),s(n,{label:"数据共享调用量"},{default:a(()=>{var l,t;return[r(f((t=(l=u.value)==null?void 0:l.finalIrsApps)==null?void 0:t.dataUsage.sharedInterfaceCallVolume),1)]}),_:1})]),_:1})]),_:1}),s(y,{span:12,class:"mb-16"},{default:a(()=>[e[13]||(e[13]=d("p",{class:"mb-8"},"组件使用情况",-1)),s(i,{column:1,border:""},{default:a(()=>[s(n,{label:"组件申请量"},{default:a(()=>{var l,t;return[r(f((t=(l=u.value)==null?void 0:l.finalIrsApps)==null?void 0:t.componentUsage.applicationVolume),1)]}),_:1}),s(n,{label:"组件调用量"},{default:a(()=>{var l,t;return[r(f((t=(l=u.value)==null?void 0:l.finalIrsApps)==null?void 0:t.componentUsage.callVolume),1)]}),_:1}),s(n,{label:"组件使用量"},{default:a(()=>{var l,t;return[r(f((t=(l=u.value)==null?void 0:l.finalIrsApps)==null?void 0:t.componentUsage.useVolume),1)]}),_:1})]),_:1})]),_:1}),s(y,{span:12,class:"mb-16"},{default:a(()=>[e[16]||(e[16]=d("p",{class:"mb-31"},null,-1)),s(i,{column:1,border:""},{default:a(()=>[s(n,{label:"统一组件调用量"},{default:a(()=>{var l,t;return[r(f((t=(l=u.value)==null?void 0:l.finalIrsApps)==null?void 0:t.componentUsage.unifyCallolVolume),1)]}),_:1}),s(n,{label:"使用组件"},{default:a(()=>e[14]||(e[14]=[r(" 暂无 ")])),_:1}),s(n,{label:"使用强制类组件"},{default:a(()=>e[15]||(e[15]=[r(" 暂无 ")])),_:1})]),_:1})]),_:1}),s(y,{span:12,class:"mb-16"},{default:a(()=>[e[18]||(e[18]=d("p",{class:"mb-8"},"产生数据",-1)),s(i,{column:1,border:""},{default:a(()=>[s(n,{label:"产生数据量"},{default:a(()=>{var l,t;return[r(f((t=(l=u.value)==null?void 0:l.finalIrsApps)==null?void 0:t.generateData.volume),1)]}),_:1}),s(n,{label:"产生数据共享使用量"},{default:a(()=>{var l,t;return[r(f((t=(l=u.value)==null?void 0:l.finalIrsApps)==null?void 0:t.generateData.sharedUseVolume),1)]}),_:1}),s(n,{label:"数据接口被调用量"},{default:a(()=>{var l,t;return[r(f((t=(l=u.value)==null?void 0:l.finalIrsApps)==null?void 0:t.generateData.dataInterfaceCallsVolume),1)]}),_:1}),s(n,{label:"使用批量数据"},{default:a(()=>e[17]||(e[17]=[r(" 暂无 ")])),_:1})]),_:1})]),_:1}),s(y,{span:12,class:"mb-16"},{default:a(()=>[e[20]||(e[20]=d("p",{class:"mb-31"},null,-1)),s(i,{column:1,border:""},{default:a(()=>[s(n,{label:"产生数据共享申请量"},{default:a(()=>{var l,t;return[r(f((t=(l=u.value)==null?void 0:l.finalIrsApps)==null?void 0:t.generateData.sharedApplicationVolume),1)]}),_:1}),s(n,{label:"产生数据审批通过率"},{default:a(()=>{var l,t;return[r(f((t=(l=u.value)==null?void 0:l.finalIrsApps)==null?void 0:t.generateData.approvalPassRate),1)]}),_:1}),s(n,{label:"协同接口被调用量"},{default:a(()=>{var l,t;return[r(f((t=(l=u.value)==null?void 0:l.finalIrsApps)==null?void 0:t.generateData.collaborativeInterfaceCallVolume),1)]}),_:1}),s(n,{label:"使用共享接口"},{default:a(()=>e[19]||(e[19]=[r(" 暂无 ")])),_:1})]),_:1})]),_:1}),s(y,{span:12},{default:a(()=>[e[21]||(e[21]=d("p",{class:"mb-8"},"试运行报告",-1)),s(i,{column:1,border:""},{default:a(()=>[s(n,{label:"试运行报告通过率"},{default:a(()=>{var l,t;return[r(f((t=(l=u.value)==null?void 0:l.finalIrsApps)==null?void 0:t.operationReport.passRate),1)]}),_:1})]),_:1})]),_:1})]),_:1})]),S("",!0)])]),_:1},8,["modelValue"])])]),_:1})):S("",!0),s(L,{name:"7",class:"mb-16"},{title:a(()=>e[24]||(e[24]=[d("div",{class:"collapse-title"},"实施信息",-1)])),default:a(()=>[s(x,{label:"是否完成日志数据归集","label-width":"170",prop:"isCompletedLogCollection",rules:[{required:!0,message:"请选择"}]},{default:a(()=>[s(fe,{modelValue:p.value.isCompletedLogCollection,"onUpdate:modelValue":e[1]||(e[1]=l=>p.value.isCompletedLogCollection=l)},{default:a(()=>[s(E,{label:!0},{default:a(()=>e[25]||(e[25]=[r("是")])),_:1}),s(E,{label:!1},{default:a(()=>e[26]||(e[26]=[r("否")])),_:1})]),_:1},8,["modelValue"])]),_:1}),s(x,{label:"实际成效指标","label-width":"170",prop:"actualPerformanceIndicators",rules:[{required:!0,message:"请选择"}]},{default:a(()=>[s(T,{pagination:!1,style:{width:"100%"},column:ie,data:p.value.actualPerformanceIndicators,"empty-temp":!1},{action:a(({scope:l})=>[d("a",{onClick:t=>J(l.row,l.$index)},"编辑",8,Se),d("a",{class:"text-danger",onClick:t=>de(l.$index)},"删除",8,Fe)]),_:1},8,["data"]),d("p",Oe,[s(k,{type:"primary",class:"w-full",plain:"",icon:"Plus",onClick:e[2]||(e[2]=()=>J())},{default:a(()=>e[27]||(e[27]=[r("添加")])),_:1})])]),_:1})]),_:1}),(b(!0),R(N,null,W(p.value.finalAcceptanceMaterials,(l,t)=>(b(),w(L,{key:t,name:t+2+"",class:"mb-16"},{title:a(()=>[d("div",Be,f(l.title),1)]),default:a(()=>[s(T,{ref_for:!0,ref:"tableListRef",column:X,data:l.data,pagination:!1,"empty-temp":!1},{isHave:a(({scope:c})=>[s(me,{modelValue:c.row.isHave,"onUpdate:modelValue":v=>c.row.isHave=v,disabled:c.row.required},null,8,["modelValue","onUpdate:modelValue","disabled"])]),files:a(({scope:c})=>[c.$index>=0?(b(),R(N,{key:0},[c.row.isHave?(b(),w(x,{key:0,prop:`finalAcceptanceMaterials[${t}].data[${c.$index}].files`,rules:[{required:!0,message:"请上传"}],"label-width":"0",style:{"margin-bottom":"0"},class:"uploadFormItem"},{default:a(()=>[s(ce,{"file-list":c.row.files,"onUpdate:fileList":v=>c.row.files=v,class:"w-full table-upload",action:I(K),"on-success":v=>I(ge)(v,c.row.files),"before-upload":v=>I(ye)(v,{types:I(G)}),accept:I(G).map(v=>`.${v}`).join(","),"on-preview":I(Ce)},{default:a(()=>[s(k,{type:"primary",plain:"",size:"small"},{default:a(()=>e[28]||(e[28]=[r("选择文件")])),_:1})]),_:2},1032,["file-list","onUpdate:fileList","action","on-success","before-upload","accept","on-preview"])]),_:2},1032,["prop"])):(b(),w(x,{key:1,prop:`finalAcceptanceMaterials[${t}].data[${c.$index}].reason`,rules:[{required:!0,message:"请输入"}],"label-width":"0",style:{"margin-bottom":"0"}},{default:a(()=>[s(ve,{modelValue:c.row.reason,"onUpdate:modelValue":v=>c.row.reason=v,placeholder:"请填写缺少该材料的原因",maxlength:"50"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["prop"]))],64)):S("",!0)]),_:2},1032,["data"])]),_:2},1032,["name"]))),128))]}),_:1})]),_:1},8,["model"]),d("div",je,[s(k,{onClick:e[4]||(e[4]=C=>I(O).go(-1))},{default:a(()=>e[29]||(e[29]=[r(" 返回 ")])),_:1}),s(k,{type:"primary",loading:V.value,onClick:e[5]||(e[5]=C=>oe(j.value))},{default:a(()=>e[30]||(e[30]=[r(" 提交 ")])),_:1},8,["loading"])])]),s(Pe,{visible:H.visible,data:H.data,onSetContent:ue,onClose:e[6]||(e[6]=C=>H.visible=!1)},null,8,["visible","data"])],64)}}});export{Xe as default};
|