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
3.4KB

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