import{_ as c}from"./index.6288621d.js";import{d as F}from"./securityPersonnelControl.7b75ece1.js";import{d as I,B as O,r as Q,J as R,c as w,e as l,G as j,i as m,g as u,h as r,f as p,F as y,H as b,t as _,j as D,u as J}from"./index.b0d60c48.js";const q=I({name:"detailDialog"}),$=Object.assign(q,{props:{visible:{type:Boolean,default:!1,required:!0},data:Object},emits:["close"],setup(v,{emit:N}){const{insuranceLevel:S}=O.dictStore.globalDicts||{},g=v,x=N,P=[{label:"\u5E8F\u53F7",type:"index",width:"60"},{label:"\u9879\u76EE\u5B89\u5168\u8D1F\u8D23\u4EBA",key:"username",prop:"username"},{label:"\u8054\u7CFB\u65B9\u5F0F",key:"contactInfo",prop:"contactInfo"},{label:"\u9879\u76EE\u4FDD\u9669\u534F\u8BAE",key:"investigationReport",slot:"investigationReport"}],B=[{label:"\u5E8F\u53F7",type:"index",width:"60"},{label:"\u5382\u5546\u4EBA\u5458\u59D3\u540D",key:"username",prop:"username"},{label:"\u8054\u7CFB\u65B9\u5F0F",key:"contactInfo",prop:"contactInfo"},{label:"\u4FDD\u5BC6\u534F\u8BAE",key:"safetyProtocol",slot:"safetyProtocol"}],C=[{label:"\u7C7B\u578B",key:"type",prop:"type"},{label:"\u7CFB\u7EDF\u83B7\u53D6\u7EA7\u522B",key:"level",slot:"level"}],o=Q({});return R(()=>g.visible,async k=>{var e,i,f,s;if(k){const n=await F(g.data.projectCode);o.value=n.data,o.value.grades=[{type:"\u7B49\u4FDD\u7EA7\u522B",level:(i=(e=n.data)==null?void 0:e.equalProtection)==null?void 0:i.secrecyGrade},{type:"\u5BC6\u7801\u6D4B\u8BC4\u7EA7\u522B",level:(s=(f=n.data)==null?void 0:f.equalProtection)==null?void 0:s.passwordGrade}]}}),(k,e)=>{const i=w("table-list"),f=w("el-dialog");return l(),j(f,{"model-value":v.visible,title:"\u8BE6\u60C5",width:"700px","destroy-on-close":"",onClose:e[0]||(e[0]=s=>x("close"))},{default:m(()=>{var s,n;return[e[1]||(e[1]=u("p",{class:"font-bold mb-8"},"\u5B89\u5168\u4EBA\u5458\u4FE1\u606F",-1)),r(i,{pagination:!1,column:P,data:o.value.personSafetyInfo,"empty-temp":!1,class:"mb-24"},{investigationReport:m(({scope:a})=>[(l(!0),p(y,null,b(a.row.investigationReport&&JSON.parse(a.row.investigationReport),(t,d)=>(l(),p("p",{key:d,class:"mb-4"},[r(c,{"file-name":t.originalFileName,"file-id":t.id},null,8,["file-name","file-id"])]))),128))]),_:1},8,["data"]),e[2]||(e[2]=u("p",{class:"font-bold mb-8"},"\u4F9B\u5E94\u5546\u5B89\u5168\u8D44\u8D28",-1)),u("p",null,"\u4F9B\u5E94\u5546\u540D\u79F0\uFF1A"+_(((n=(s=o.value.supplierSafetyQualification)==null?void 0:s[0])==null?void 0:n.supplierName)||"-"),1),r(i,{pagination:!1,column:B,data:o.value.supplierSafetyQualification,"empty-temp":!1,class:"mb-24"},{safetyQualification:m(({scope:a})=>[(l(!0),p(y,null,b(a.row.safetyQualification&&JSON.parse(a.row.safetyQualification),(t,d)=>(l(),p("p",{key:d,class:"mb-4"},[r(c,{"file-name":t.originalFileName,"file-id":t.id},null,8,["file-name","file-id"])]))),128))]),safetyProtocol:m(({scope:a})=>[(l(!0),p(y,null,b(a.row.safetyProtocol&&JSON.parse(a.row.safetyProtocol),(t,d)=>(l(),p("p",{key:d,class:"mb-4"},[r(c,{"file-name":t.originalFileName,"file-id":t.id},null,8,["file-name","file-id"])]))),128))]),_:1},8,["data"]),e[3]||(e[3]=u("p",{class:"font-bold mb-8"},"\u7B49\u7EA7\u8BE6\u60C5",-1)),r(i,{pagination:!1,column:C,data:o.value.grades,"empty-temp":!1,class:"mb-24"},{level:m(({scope:a})=>[D(_(J(S)[a.row.level]),1)]),_:1},8,["data"])]}),_:1},8,["model-value"])}}});export{$ as default};