Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

empMaterials-24a89892.js 17KB

1
  1. import{r as j,h as _,i as P,f as w,b as r,c as N,e as C}from"./uploadAction-3962500e.js";import{E as ie,r as Y,a as te,B as H,b as k,c,d as ne,f as n,h as l,L as v,i as m,e as b,u as e,t as O,j as B,F as oe,k as re}from"./index-dd5fae99.js";import pe from"./actualPerformanceIndicatorsDialog-e85a7f90.js";const ue=["onClick"],de=["onClick"],me={class:"text-right w-full mt-8"},be=["onClick"],fe=["onClick"],ce={class:"text-right w-full mt-8"},Fe={class:"el-upload__tip"},ve={class:"el-upload__tip"},ye={class:"el-upload__tip"},ge={class:"el-upload__tip"},Se={class:"el-upload__tip"},_e={class:"el-upload__tip"},Pe={class:"el-upload__tip"},we={class:"el-upload__tip"},Ce={class:"el-upload__tip"},Oe={class:"el-upload__tip"},je={class:"el-upload__tip"},ke={class:"el-upload__tip"},Ae={class:"el-upload__tip"},Le={class:"el-upload__tip"},Ee=re({name:"empMaterials"}),xe=Object.assign(Ee,{props:{detail:{type:Object},data:{type:Object},basicInfoData:{type:Object},approvalInfoData:{type:Object},baseProjSetYear:{type:String,default:""}},setup(u,{expose:se}){const q=u,S=ie.dictStore.uploadUrl,R=Y(),i=Y({feasibilityStudyReport:[],approvedFile:[],purchaseFile:[],acceptanceLetter:[],purchaseContract:[],acceptanceReport:[],changeApprovalDoc:[],baseBusinessMetrics:[]}),p=[{required:!0,message:"请选择文件"}],z=Y({baseInitialOpinionFile:p,baseInforLevelFile:p,basePasswAssessFile:p,baseThirdAcceptFile:p,baseCheckFile:p,baseFinanlAuditFile:p,baseUserConsFile:p,baseEstaSummFile:p,baseOperatMaintenSummFile:p,baseFinalExpertOpinionFile:p,baseEngineerPostpoFile:p,baseEngineerAlterFile:p,baseChanFile:p,baseBusinessMetrics:[{required:!0,message:"请添加"}],baseLogAggregation:[{required:!0,message:"请选择"}]}),K=[{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"}],E=te({visible:!1,data:void 0}),G=Y(),J=(o,s)=>{E.data=o,E.visible=!0,G.value=s},ae=o=>{G.value===void 0?i.value.baseBusinessMetrics=[...i.value.baseBusinessMetrics,...o]:i.value.baseBusinessMetrics[G.value]=o[0]},Q=o=>{i.value.baseBusinessMetrics.splice(o,1)};return se({formRef:R,formData:i}),H(()=>q.basicInfoData,o=>{o.baseProjIsConfidentiality==="02"||(o==null?void 0:o.baseProjSetProg)==="00"?z.value={}:z.value={baseInitialOpinionFile:p,baseInforLevelFile:p,basePasswAssessFile:p,baseThirdAcceptFile:p,baseCheckFile:p,baseFinanlAuditFile:p,baseUserConsFile:p,baseEstaSummFile:p,baseOperatMaintenSummFile:p,baseFinalExpertOpinionFile:p,baseEngineerPostpoFile:p,baseEngineerAlterFile:p,baseChanFile:p,baseBusinessMetrics:[{required:!0,message:"请添加"}],baseLogAggregation:[{required:!0,message:"请选择"}]},R.value.clearValidate()},{deep:!0}),H(()=>q.detail,o=>{var s,A,I,d,y,U,f,F,T,V,L,M,x,$,D;o&&(i.value={...o.mimplement,baseInitialOpinionFile:(s=o.mimplement)!=null&&s.baseInitialOpinionFile?j(JSON.parse(o.mimplement.baseInitialOpinionFile)):[],baseInforLevelFile:(A=o.mimplement)!=null&&A.baseInforLevelFile?j(JSON.parse(o.mimplement.baseInforLevelFile)):[],basePasswAssessFile:(I=o.mimplement)!=null&&I.basePasswAssessFile?j(JSON.parse(o.mimplement.basePasswAssessFile)):[],baseThirdAcceptFile:(d=o.mimplement)!=null&&d.baseThirdAcceptFile?j(JSON.parse(o.mimplement.baseThirdAcceptFile)):[],baseCheckFile:(y=o.mimplement)!=null&&y.baseCheckFile?j(JSON.parse(o.mimplement.baseCheckFile)):[],baseFinanlAuditFile:(U=o.mimplement)!=null&&U.baseFinanlAuditFile?j(JSON.parse(o.mimplement.baseFinanlAuditFile)):[],baseUserConsFile:(f=o.mimplement)!=null&&f.baseUserConsFile?j(JSON.parse(o.mimplement.baseUserConsFile)):[],baseEstaSummFile:(F=o.mimplement)!=null&&F.baseEstaSummFile?j(JSON.parse(o.mimplement.baseEstaSummFile)):[],baseOperatMaintenSummFile:(T=o.mimplement)!=null&&T.baseOperatMaintenSummFile?j(JSON.parse(o.mimplement.baseOperatMaintenSummFile)):[],baseFinalExpertOpinionFile:(V=o.mimplement)!=null&&V.baseFinalExpertOpinionFile?j(JSON.parse(o.mimplement.baseFinalExpertOpinionFile)):[],baseEngineerPostpoFile:(L=o.mimplement)!=null&&L.baseEngineerPostpoFile?j(JSON.parse(o.mimplement.baseEngineerPostpoFile)):[],baseEngineerAlterFile:(M=o.mimplement)!=null&&M.baseEngineerAlterFile?j(JSON.parse(o.mimplement.baseEngineerAlterFile)):[],baseChanFile:(x=o.mimplement)!=null&&x.baseChanFile?j(JSON.parse(o.mimplement.baseChanFile)):[],baseBusinessMetrics:(($=o.mimplement)==null?void 0:$.baseBusinessMetrics)&&JSON.parse((D=o.mimplement)==null?void 0:D.baseBusinessMetrics)||[]})}),H(()=>q.data,o=>{},{immediate:!0,deep:!0}),(o,s)=>{const A=k("el-radio"),I=k("el-radio-group"),d=k("el-form-item"),y=k("el-col"),U=k("table-list"),f=k("el-button"),F=k("el-upload"),T=k("el-row"),V=k("el-form");return c(),ne(oe,null,[n(V,{ref_key:"formRef",ref:R,model:i.value,rules:z.value,"label-position":"top","label-suffix":":","scroll-to-error":"","validate-on-rule-change":!1},{default:l(()=>[n(T,{gutter:40},{default:l(()=>{var L,M,x,$,D,W,X,Z,h;return[n(y,{span:24},{default:l(()=>[u.baseProjSetYear*1>=2024?(c(),v(d,{key:0,label:"是否完成日志数据归集","label-width":"170",prop:"baseLogAggregation"},{default:l(()=>[n(I,{modelValue:i.value.baseLogAggregation,"onUpdate:modelValue":s[0]||(s[0]=a=>i.value.baseLogAggregation=a)},{default:l(()=>[n(A,{label:"1"},{default:l(()=>s[19]||(s[19]=[m("是")])),_:1}),n(A,{label:"2"},{default:l(()=>s[20]||(s[20]=[m("否")])),_:1})]),_:1},8,["modelValue"])]),_:1})):(c(),v(d,{key:1,label:"是否完成日志数据归集","label-width":"170"},{default:l(()=>[n(I,{modelValue:i.value.baseLogAggregation,"onUpdate:modelValue":s[1]||(s[1]=a=>i.value.baseLogAggregation=a)},{default:l(()=>[n(A,{label:"1"},{default:l(()=>s[21]||(s[21]=[m("是")])),_:1}),n(A,{label:"2"},{default:l(()=>s[22]||(s[22]=[m("否")])),_:1})]),_:1},8,["modelValue"])]),_:1}))]),_:1}),n(y,{span:24},{default:l(()=>[u.baseProjSetYear*1>=2024?(c(),v(d,{key:0,label:"实际成效指标","label-width":"170",prop:"baseBusinessMetrics"},{default:l(()=>[n(U,{pagination:!1,style:{width:"100%"},column:K,data:i.value.baseBusinessMetrics,"empty-temp":!1},{action:l(({scope:a})=>[b("a",{onClick:t=>J(a.row,a.$index)},"编辑",8,ue),b("a",{class:"text-danger",onClick:t=>Q(a.$index)},"删除",8,de)]),_:1},8,["data"]),b("p",me,[n(f,{type:"primary",class:"w-full",plain:"",icon:"Plus",onClick:s[2]||(s[2]=()=>J())},{default:l(()=>s[23]||(s[23]=[m("添加")])),_:1})])]),_:1})):(c(),v(d,{key:1,label:"实际成效指标","label-width":"170"},{default:l(()=>[n(U,{pagination:!1,style:{width:"100%"},column:K,data:i.value.baseBusinessMetrics,"empty-temp":!1},{action:l(({scope:a})=>[b("a",{onClick:t=>J(a.row,a.$index)},"编辑",8,be),b("a",{class:"text-danger",onClick:t=>Q(a.$index)},"删除",8,fe)]),_:1},8,["data"]),b("p",ce,[n(f,{type:"primary",class:"w-full",plain:"",icon:"Plus",onClick:s[3]||(s[3]=()=>J())},{default:l(()=>s[24]||(s[24]=[m("添加")])),_:1})])]),_:1}))]),_:1}),["05","06","07","00"].includes((L=u.basicInfoData)==null?void 0:L.baseProjSetProg)&&((x=(M=u.basicInfoData)==null?void 0:M.baseConstructionType)!=null&&x.includes("01"))||!((D=($=u.basicInfoData)==null?void 0:$.baseConstructionType)!=null&&D.includes("01"))?(c(),v(y,{key:0,span:8},{default:l(()=>{var a,t,ee,le;return[((a=u.basicInfoData)==null?void 0:a.baseProjSetProg)==="07"&&((ee=(t=u.basicInfoData)==null?void 0:t.baseConstructionType)!=null&&ee.includes("01"))&&["03","04","05"].includes((le=u.approvalInfoData)==null?void 0:le.equalProtectionLevel)?(c(),v(d,{key:0,label:"信息安全等级保护测评报告",prop:"baseInforLevelFile"},{default:l(()=>[n(F,{"file-list":i.value.baseInforLevelFile,"onUpdate:fileList":s[4]||(s[4]=g=>i.value.baseInforLevelFile=g),class:"w-full",action:e(S),"on-success":g=>e(_)(g,i.value.baseInforLevelFile),"on-error":e(P),"before-upload":g=>e(w)(g,{types:e(r)}),accept:e(r).map(g=>`.${g}`).join(","),multiple:"","on-preview":e(N)},{tip:l(()=>[b("div",Fe,"支持"+O(e(C))+"文件",1)]),default:l(()=>[n(f,{type:"primary",class:"mr-4",plain:""},{default:l(()=>s[25]||(s[25]=[m("上传文件")])),_:1})]),_:1},8,["file-list","action","on-success","on-error","before-upload","accept","on-preview"])]),_:1})):(c(),v(d,{key:1,label:"信息安全等级保护测评报告"},{default:l(()=>[n(F,{"file-list":i.value.baseInforLevelFile,"onUpdate:fileList":s[5]||(s[5]=g=>i.value.baseInforLevelFile=g),class:"w-full",action:e(S),"on-success":g=>e(_)(g,i.value.baseInforLevelFile),"on-error":e(P),"before-upload":g=>e(w)(g,{types:e(r)}),accept:e(r).map(g=>`.${g}`).join(","),multiple:"","on-preview":e(N)},{tip:l(()=>[b("div",ve,"支持"+O(e(C))+"文件",1)]),default:l(()=>[n(f,{type:"primary",class:"mr-4",plain:""},{default:l(()=>s[26]||(s[26]=[m("上传文件")])),_:1})]),_:1},8,["file-list","action","on-success","on-error","before-upload","accept","on-preview"])]),_:1}))]}),_:1})):B("",!0),!["01","02","03"].includes((W=u.basicInfoData)==null?void 0:W.baseProjSetProg)||u.baseProjSetYear*1<2023?(c(),v(y,{key:1,span:8},{default:l(()=>{var a;return[["01","02"].includes((a=u.approvalInfoData)==null?void 0:a.equalProtectionLevel)||u.baseProjSetYear*1<2023?(c(),v(d,{key:0,label:"商业密码应用评估报告"},{default:l(()=>[n(F,{"file-list":i.value.basePasswAssessFile,"onUpdate:fileList":s[6]||(s[6]=t=>i.value.basePasswAssessFile=t),class:"w-full",action:e(S),"on-success":t=>e(_)(t,i.value.basePasswAssessFile),"on-error":e(P),"before-upload":t=>e(w)(t,{types:e(r)}),accept:e(r).map(t=>`.${t}`).join(","),multiple:"","on-preview":e(N)},{tip:l(()=>[b("div",ye,"支持"+O(e(C))+"文件",1)]),default:l(()=>[n(f,{type:"primary",class:"mr-4",plain:""},{default:l(()=>s[27]||(s[27]=[m("上传文件")])),_:1})]),_:1},8,["file-list","action","on-success","on-error","before-upload","accept","on-preview"])]),_:1})):(c(),v(d,{key:1,label:"商业密码应用评估报告",prop:"basePasswAssessFile"},{default:l(()=>[n(F,{"file-list":i.value.basePasswAssessFile,"onUpdate:fileList":s[7]||(s[7]=t=>i.value.basePasswAssessFile=t),class:"w-full",action:e(S),"on-success":t=>e(_)(t,i.value.basePasswAssessFile),"on-error":e(P),"before-upload":t=>e(w)(t,{types:e(r)}),accept:e(r).map(t=>`.${t}`).join(","),multiple:"","on-preview":e(N)},{tip:l(()=>[b("div",ge,"支持"+O(e(C))+"文件",1)]),default:l(()=>[n(f,{type:"primary",class:"mr-4",plain:""},{default:l(()=>s[28]||(s[28]=[m("上传文件")])),_:1})]),_:1},8,["file-list","action","on-success","on-error","before-upload","accept","on-preview"])]),_:1}))]}),_:1})):B("",!0),n(y,{span:8},{default:l(()=>[n(d,{label:"第三方验收测试报告"},{default:l(()=>[n(F,{"file-list":i.value.baseThirdAcceptFile,"onUpdate:fileList":s[8]||(s[8]=a=>i.value.baseThirdAcceptFile=a),class:"w-full",action:e(S),"on-success":a=>e(_)(a,i.value.baseThirdAcceptFile),"on-error":e(P),"before-upload":a=>e(w)(a,{types:e(r)}),accept:e(r).map(a=>`.${a}`).join(","),multiple:"","on-preview":e(N)},{tip:l(()=>[b("div",Se,"支持"+O(e(C))+"文件",1)]),default:l(()=>[n(f,{type:"primary",class:"mr-4",plain:""},{default:l(()=>s[29]||(s[29]=[m("上传文件")])),_:1})]),_:1},8,["file-list","action","on-success","on-error","before-upload","accept","on-preview"])]),_:1})]),_:1}),!["01","02","03","04"].includes((X=u.basicInfoData)==null?void 0:X.baseProjSetProg)||u.baseProjSetYear*1<2023?(c(),v(y,{key:2,span:8},{default:l(()=>{var a;return[u.baseProjSetYear*1<2023||["05","06","07"].includes((a=u.basicInfoData)==null?void 0:a.baseProjSetProg)?(c(),v(d,{key:0,label:"用户使用报告"},{default:l(()=>[n(F,{"file-list":i.value.baseUserConsFile,"onUpdate:fileList":s[9]||(s[9]=t=>i.value.baseUserConsFile=t),class:"w-full",action:e(S),"on-success":t=>e(_)(t,i.value.baseUserConsFile),"on-error":e(P),"before-upload":t=>e(w)(t,{types:e(r)}),accept:e(r).map(t=>`.${t}`).join(","),multiple:""},{tip:l(()=>[b("div",_e,"支持"+O(e(C))+"文件",1)]),default:l(()=>[n(f,{type:"primary",class:"mr-4",plain:""},{default:l(()=>s[30]||(s[30]=[m("上传文件")])),_:1})]),_:1},8,["file-list","action","on-success","on-error","before-upload","accept"])]),_:1})):(c(),v(d,{key:1,label:"用户使用报告",prop:"baseUserConsFile"},{default:l(()=>[n(F,{"file-list":i.value.baseUserConsFile,"onUpdate:fileList":s[10]||(s[10]=t=>i.value.baseUserConsFile=t),class:"w-full",action:e(S),"on-success":t=>e(_)(t,i.value.baseUserConsFile),"on-error":e(P),"before-upload":t=>e(w)(t,{types:e(r)}),accept:e(r).map(t=>`.${t}`).join(","),multiple:""},{tip:l(()=>[b("div",Pe,"支持"+O(e(C))+"文件",1)]),default:l(()=>[n(f,{type:"primary",class:"mr-4",plain:""},{default:l(()=>s[31]||(s[31]=[m("上传文件")])),_:1})]),_:1},8,["file-list","action","on-success","on-error","before-upload","accept"])]),_:1}))]}),_:1})):B("",!0),n(y,{span:8},{default:l(()=>[n(d,{label:"监理总结报告"},{default:l(()=>[n(F,{"file-list":i.value.baseEstaSummFile,"onUpdate:fileList":s[11]||(s[11]=a=>i.value.baseEstaSummFile=a),class:"w-full",action:e(S),"on-success":a=>e(_)(a,i.value.baseEstaSummFile),"on-error":e(P),"before-upload":a=>e(w)(a,{types:e(r)}),accept:e(r).map(a=>`.${a}`).join(","),multiple:""},{tip:l(()=>[b("div",we,"支持"+O(e(C))+"文件",1)]),default:l(()=>[n(f,{type:"primary",class:"mr-4",plain:""},{default:l(()=>s[32]||(s[32]=[m("上传文件")])),_:1})]),_:1},8,["file-list","action","on-success","on-error","before-upload","accept"])]),_:1})]),_:1}),!["01","02","03","04"].includes((Z=u.basicInfoData)==null?void 0:Z.baseProjSetProg)||u.baseProjSetYear*1<2023?(c(),v(y,{key:3,span:8},{default:l(()=>{var a;return[((a=u.basicInfoData)==null?void 0:a.baseProjSetProg)==="07"&&u.baseProjSetYear*1>=2023?(c(),v(d,{key:0,label:"运维总结报告",prop:"baseOperatMaintenSummFile"},{default:l(()=>[n(F,{"file-list":i.value.baseOperatMaintenSummFile,"onUpdate:fileList":s[12]||(s[12]=t=>i.value.baseOperatMaintenSummFile=t),class:"w-full",action:e(S),"on-success":t=>e(_)(t,i.value.baseOperatMaintenSummFile),"on-error":e(P),"before-upload":t=>e(w)(t,{types:e(r)}),accept:e(r).map(t=>`.${t}`).join(","),multiple:""},{tip:l(()=>[b("div",Ce,"支持"+O(e(C))+"文件",1)]),default:l(()=>[n(f,{type:"primary",class:"mr-4",plain:""},{default:l(()=>s[33]||(s[33]=[m("上传文件")])),_:1})]),_:1},8,["file-list","action","on-success","on-error","before-upload","accept"])]),_:1})):(c(),v(d,{key:1,label:"运维总结报告"},{default:l(()=>[n(F,{"file-list":i.value.baseOperatMaintenSummFile,"onUpdate:fileList":s[13]||(s[13]=t=>i.value.baseOperatMaintenSummFile=t),class:"w-full",action:e(S),"on-success":t=>e(_)(t,i.value.baseOperatMaintenSummFile),"on-error":e(P),"before-upload":t=>e(w)(t,{types:e(r)}),accept:e(r).map(t=>`.${t}`).join(","),multiple:""},{tip:l(()=>[b("div",Oe,"支持"+O(e(C))+"文件",1)]),default:l(()=>[n(f,{type:"primary",class:"mr-4",plain:""},{default:l(()=>s[34]||(s[34]=[m("上传文件")])),_:1})]),_:1},8,["file-list","action","on-success","on-error","before-upload","accept"])]),_:1}))]}),_:1})):B("",!0),((h=u.basicInfoData)==null?void 0:h.baseProjSetProg)==="07"?(c(),v(y,{key:4,span:8},{default:l(()=>[n(d,{label:"终验意见",prop:"baseFinalExpertOpinionFile"},{default:l(()=>[n(F,{"file-list":i.value.baseFinalExpertOpinionFile,"onUpdate:fileList":s[14]||(s[14]=a=>i.value.baseFinalExpertOpinionFile=a),class:"w-full",action:e(S),"on-success":a=>e(_)(a,i.value.baseFinalExpertOpinionFile),"on-error":e(P),"before-upload":a=>e(w)(a,{types:e(r)}),accept:e(r).map(a=>`.${a}`).join(","),multiple:""},{tip:l(()=>[b("div",je,"支持"+O(e(C))+"文件",1)]),default:l(()=>[n(f,{type:"primary",class:"mr-4",plain:""},{default:l(()=>s[35]||(s[35]=[m("上传文件")])),_:1})]),_:1},8,["file-list","action","on-success","on-error","before-upload","accept"])]),_:1})]),_:1})):B("",!0),n(y,{span:8},{default:l(()=>[n(d,{label:"项目延期申请表"},{default:l(()=>[n(F,{"file-list":i.value.baseEngineerPostpoFile,"onUpdate:fileList":s[15]||(s[15]=a=>i.value.baseEngineerPostpoFile=a),class:"w-full",action:e(S),"on-success":a=>e(_)(a,i.value.baseEngineerPostpoFile),"on-error":e(P),"before-upload":a=>e(w)(a,{types:e(r)}),accept:e(r).map(a=>`.${a}`).join(","),multiple:""},{tip:l(()=>[b("div",ke,"支持"+O(e(C))+"文件",1)]),default:l(()=>[n(f,{type:"primary",class:"mr-4",plain:""},{default:l(()=>s[36]||(s[36]=[m("上传文件")])),_:1})]),_:1},8,["file-list","action","on-success","on-error","before-upload","accept"])]),_:1})]),_:1}),n(y,{span:8},{default:l(()=>[n(d,{label:"变更报告"},{default:l(()=>[n(F,{"file-list":i.value.baseEngineerAlterFile,"onUpdate:fileList":s[16]||(s[16]=a=>i.value.baseEngineerAlterFile=a),class:"w-full",action:e(S),"on-success":a=>e(_)(a,i.value.baseEngineerAlterFile),"on-error":e(P),"before-upload":a=>e(w)(a,{types:e(r)}),accept:e(r).map(a=>`.${a}`).join(","),multiple:""},{tip:l(()=>[b("div",Ae,"支持"+O(e(C))+"文件",1)]),default:l(()=>[n(f,{type:"primary",class:"mr-4",plain:""},{default:l(()=>s[37]||(s[37]=[m("上传文件")])),_:1})]),_:1},8,["file-list","action","on-success","on-error","before-upload","accept"])]),_:1})]),_:1}),n(y,{span:8},{default:l(()=>[n(d,{label:"变更批复文件"},{default:l(()=>[n(F,{"file-list":i.value.baseChanFile,"onUpdate:fileList":s[17]||(s[17]=a=>i.value.baseChanFile=a),class:"w-full",action:e(S),"on-success":a=>e(_)(a,i.value.baseChanFile),"on-error":e(P),"before-upload":a=>e(w)(a,{types:e(r)}),accept:e(r).map(a=>`.${a}`).join(","),multiple:""},{tip:l(()=>[b("div",Le,"支持"+O(e(C))+"文件",1)]),default:l(()=>[n(f,{type:"primary",class:"mr-4",plain:""},{default:l(()=>s[38]||(s[38]=[m("上传文件")])),_:1})]),_:1},8,["file-list","action","on-success","on-error","before-upload","accept"])]),_:1})]),_:1})]}),_:1})]),_:1},8,["model","rules"]),n(pe,{visible:E.visible,data:E.data,onSetContent:ae,onClose:s[18]||(s[18]=L=>E.visible=!1)},null,8,["visible","data"])],64)}}});export{xe as default};