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 line
3.2KB

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