You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 lines
11KB

  1. import{h as Z,f as ee,b as q,c as ae}from"./uploadAction-3962500e.js";import{E as te,x as le,y as se,r as H,a as ne,o as oe,b as u,c as m,d as b,e as c,f as l,h as a,F as I,H as S,L as w,j as h,i as f,t as re,u as v,k as ie,s as ue}from"./index-dd5fae99.js";import{p as de,s as pe}from"./initialInspectionRecord-91d7760d.js";import me from"./actualPerformanceIndicatorsDialog-e85a7f90.js";import{p as ce}from"./projectStore-30136ff6.js";const fe={class:"uploadInitpreliminaryInspectionMaterials footerPage"},ve={class:"p-24"},_e=["onClick"],ye=["onClick"],be=["onClick"],ge={class:"text-right w-full mt-8"},He={class:"collapse-title"},Ie={class:"footer"},we=ie({name:"uploadInitpreliminaryInspectionMaterials"}),Me=Object.assign(we,{setup(Pe){const D=te.dictStore.uploadUrl,V=le(),{proxy:L}=ue(),$=se(),x=["1","2","3","4","5","6","7"],M=H(),s=H({acceptancePersons:[{personName:"",unit:""}],actualPerformanceIndicators:[],preliminaryInspectionMaterials:[{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,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:"IRS应用试运行报告",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:""},{name:"各类系统、场地、设备使用的管理手册、操作手册、维护手册(可另册)",isHave:!0,files:[],reason:""},{name:"售后服务承诺等(建设单位)",isHave:!0,files:[],reason:""},{name:"终验意见",isHave:!0,files:[],reason:""}]}]}),O=()=>{s.value.acceptancePersons.push({})},F=t=>{s.value.acceptancePersons.splice(t,1)},J=[{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"}],R=async()=>{var e,o;const t=await de(V.query.id);t.data&&(s.value={...t.data,acceptancePersons:t.data.acceptancePersons?t.data.acceptancePersons:[{personName:"",unit:""}],actualPerformanceIndicators:t.data.actualPerformanceIndicators&&((e=JSON.parse(t.data.actualPerformanceIndicators))!=null&&e.length)?JSON.parse(t.data.actualPerformanceIndicators):s.value.actualPerformanceIndicators,preliminaryInspectionMaterials:t.data.preliminaryInspectionMaterials&&((o=JSON.parse(t.data.preliminaryInspectionMaterials))!=null&&o.length)?JSON.parse(t.data.preliminaryInspectionMaterials):s.value.preliminaryInspectionMaterials})},g=H(!1),A=async t=>{t&&t.validate(async(e,o)=>{if(e){g.value=!0;const d={...s.value,actualPerformanceIndicators:s.value.actualPerformanceIndicators&&JSON.stringify(s.value.actualPerformanceIndicators),preliminaryInspectionMaterials:JSON.stringify(s.value.preliminaryInspectionMaterials)};try{await pe(d),g.value=!1,L.$message.success("提交成功"),$.go(-1)}catch{g.value=!1}}else console.log(o)})},B=[{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"}],_=ne({visible:!1,data:void 0}),P=H(),N=(t,e)=>{_.data=t,_.visible=!0,P.value=e},G=t=>{P.value===void 0?s.value.actualPerformanceIndicators=[...s.value.actualPerformanceIndicators,...t]:s.value.actualPerformanceIndicators[P.value]=t[0]},z=t=>{s.value.actualPerformanceIndicators.splice(t,1)},T=async()=>{var e;const t=await ce(V.query.id);(e=t.data.projectApplications)!=null&&e.length&&(t.data.projectApplications.map(o=>o.secrecyGrade).includes(3)||t.data.projectApplications.map(o=>o.secrecyGrade).includes(4)||t.data.projectApplications.map(o=>o.secrecyGrade).includes(5))&&(s.value.preliminaryInspectionMaterials=s.value.preliminaryInspectionMaterials.map(o=>({...o,data:o.data.map(d=>({...d,required:d.name==="商业密码应用评估报告"?!0:d.required}))})))};return oe(()=>{R(),T()}),(t,e)=>{const o=u("el-input"),d=u("el-form-item"),k=u("el-col"),E=u("el-row"),y=u("el-button"),C=u("el-collapse-item"),U=u("el-radio"),K=u("el-radio-group"),j=u("table-list"),Q=u("el-switch"),W=u("el-upload"),X=u("el-collapse"),Y=u("el-form");return m(),b(I,null,[c("div",fe,[l(Y,{ref_key:"formRef",ref:M,model:s.value,"label-position":"right","label-width":"90px","label-suffix":":","scroll-to-error":"",class:"table-form"},{default:a(()=>[l(X,{modelValue:x,"onUpdate:modelValue":e[2]||(e[2]=n=>x=n)},{default:a(()=>[l(C,{name:"1",class:"mb-16"},{title:a(()=>e[6]||(e[6]=[c("div",{class:"collapse-title"},"验收人员信息",-1)])),default:a(()=>[c("div",ve,[(m(!0),b(I,null,S(s.value.acceptancePersons,(n,p)=>(m(),w(E,{key:p,gutter:40},{default:a(()=>{var r;return[l(k,{span:12},{default:a(()=>[l(d,{label:"验收人员",prop:`acceptancePersons[${p}].personName`,rules:[{required:!0,message:"请输入"}]},{default:a(()=>[l(o,{modelValue:n.personName,"onUpdate:modelValue":i=>n.personName=i,placeholder:"请填写姓名",maxlength:"50"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["prop"])]),_:2},1024),l(k,{span:12},{default:a(()=>[l(d,{label:"所在单位",prop:`acceptancePersons[${p}].unit`,rules:[{required:!0,message:"请输入"}]},{default:a(()=>[l(o,{modelValue:n.unit,"onUpdate:modelValue":i=>n.unit=i,placeholder:"请填写单位",maxlength:"50"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["prop"])]),_:2},1024),((r=s.value.acceptancePersons)==null?void 0:r.length)>1?(m(),b("a",{key:0,class:"text-danger absolute top-4",style:{right:"-12px"},onClick:i=>F(p)},"删除",8,_e)):h("",!0)]}),_:2},1024))),128)),l(y,{type:"primary",plain:"",icon:"Plus",size:"small",onClick:O},{default:a(()=>e[7]||(e[7]=[f("增加")])),_:1})])]),_:1}),l(C,{name:"7",class:"mb-16"},{title:a(()=>e[8]||(e[8]=[c("div",{class:"collapse-title"},"实施信息",-1)])),default:a(()=>[l(d,{label:"是否完成日志数据归集","label-width":"170",prop:"isCompletedLogCollection",rules:[{required:!0,message:"请选择"}]},{default:a(()=>[l(K,{modelValue:s.value.isCompletedLogCollection,"onUpdate:modelValue":e[0]||(e[0]=n=>s.value.isCompletedLogCollection=n)},{default:a(()=>[l(U,{label:!0},{default:a(()=>e[9]||(e[9]=[f("是")])),_:1}),l(U,{label:!1},{default:a(()=>e[10]||(e[10]=[f("否")])),_:1})]),_:1},8,["modelValue"])]),_:1}),l(d,{label:"实际成效指标","label-width":"170",prop:"actualPerformanceIndicators",rules:[{required:!0,message:"请选择"}]},{default:a(()=>[l(j,{pagination:!1,style:{width:"100%"},column:B,data:s.value.actualPerformanceIndicators,"empty-temp":!1},{action:a(({scope:n})=>[c("a",{onClick:p=>N(n.row,n.$index)},"编辑",8,ye),c("a",{class:"text-danger",onClick:p=>z(n.$index)},"删除",8,be)]),_:1},8,["data"]),c("p",ge,[l(y,{type:"primary",class:"w-full",plain:"",icon:"Plus",onClick:e[1]||(e[1]=()=>N())},{default:a(()=>e[11]||(e[11]=[f("添加")])),_:1})])]),_:1})]),_:1}),(m(!0),b(I,null,S(s.value.preliminaryInspectionMaterials,(n,p)=>(m(),w(C,{key:p,name:p+2+"",class:"mb-16"},{title:a(()=>[c("div",He,re(n.title),1)]),default:a(()=>[l(j,{ref_for:!0,ref:"tableListRef",column:J,data:n.data,pagination:!1,"empty-temp":!1},{isHave:a(({scope:r})=>[l(Q,{modelValue:r.row.isHave,"onUpdate:modelValue":i=>r.row.isHave=i,disabled:r.row.required},null,8,["modelValue","onUpdate:modelValue","disabled"])]),files:a(({scope:r})=>[r.$index>=0?(m(),b(I,{key:0},[r.row.isHave?(m(),w(d,{key:0,prop:`preliminaryInspectionMaterials[${p}].data[${r.$index}].files`,rules:[{required:!0,message:"请上传"}],"label-width":"0",style:{"margin-bottom":"0"},class:"uploadFormItem"},{default:a(()=>[l(W,{"file-list":r.row.files,"onUpdate:fileList":i=>r.row.files=i,class:"w-full table-upload",action:v(D),"on-success":i=>v(Z)(i,r.row.files),"before-upload":i=>v(ee)(i,{types:v(q)}),accept:v(q).map(i=>`.${i}`).join(","),"on-preview":v(ae)},{default:a(()=>[l(y,{type:"primary",plain:"",size:"small"},{default:a(()=>e[12]||(e[12]=[f("选择文件")])),_:1})]),_:2},1032,["file-list","onUpdate:fileList","action","on-success","before-upload","accept","on-preview"])]),_:2},1032,["prop"])):(m(),w(d,{key:1,prop:`preliminaryInspectionMaterials[${p}].data[${r.$index}].reason`,rules:[{required:!0,message:"请输入"}],"label-width":"0",style:{"margin-bottom":"0"}},{default:a(()=>[l(o,{modelValue:r.row.reason,"onUpdate:modelValue":i=>r.row.reason=i,placeholder:"请填写缺少该材料的原因",maxlength:"50"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["prop"]))],64)):h("",!0)]),_:2},1032,["data"])]),_:2},1032,["name"]))),128))]),_:1})]),_:1},8,["model"]),c("div",Ie,[l(y,{onClick:e[3]||(e[3]=n=>v($).go(-1))},{default:a(()=>e[13]||(e[13]=[f(" 返回 ")])),_:1}),l(y,{type:"primary",loading:g.value,onClick:e[4]||(e[4]=n=>A(M.value))},{default:a(()=>e[14]||(e[14]=[f(" 提交 ")])),_:1},8,["loading"])])]),l(me,{visible:_.visible,data:_.data,onSetContent:G,onClose:e[5]||(e[5]=n=>_.visible=!1)},null,8,["visible","data"])],64)}}});export{Me as default};