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.

safeInfo-bfc18b84.js 1.5KB

1
  1. import{b as f,c,d as b,F as m,H as _,L as p,h as e,f as a,i as s,t as n,k as I}from"./index-dd5fae99.js";const k=I({name:"safeInfo"}),N=Object.assign(k,{props:{detailData:Object},setup(l){const y=u=>{if(typeof u=="string")try{var o=JSON.parse(u);return!!(typeof o=="object"&&o)}catch{return!1}};return(u,o)=>{const t=f("el-descriptions-item"),i=f("el-descriptions");return c(),b(m,null,[y(l.detailData.safetyInputDescribe)?(c(!0),b(m,{key:0},_(JSON.parse(l.detailData.safetyInputDescribe),(r,d)=>(c(),p(i,{key:d,column:1,border:"",class:"mb-16"},{default:e(()=>[a(t,{label:"投入项"},{default:e(()=>[s(n(r.safetyInputTitle||"-"),1)]),_:2},1024),a(t,{label:"内容描述:"},{default:e(()=>[s(n(r.safetyInputDescribe||"-"),1)]),_:2},1024),a(t,{label:"金额(万元):"},{default:e(()=>[s(n(r.safetyInputAmount),1)]),_:2},1024)]),_:2},1024))),128)):(c(),p(i,{key:1,column:1,border:"",class:"mb-16"},{default:e(()=>[a(t,{label:"投入项"},{default:e(()=>[s(n(l.detailData.safetyInputTitle||"-"),1)]),_:1}),a(t,{label:"内容描述:"},{default:e(()=>[s(n(l.detailData.safetyInputDescribe||"-"),1)]),_:1}),a(t,{label:"金额(万元):"},{default:e(()=>[s(n(l.detailData.safetyInputAmount),1)]),_:1})]),_:1})),a(i,{column:1,border:"",class:"mb-16"},{default:e(()=>[a(t,{label:"安全投入占比:"},{default:e(()=>{var r;return[s(n((((r=JSON.parse(l.detailData.safetyInputDescribe))==null?void 0:r.reduce((d,D)=>d+D.safetyInputAmount,0))/l.detailData.declareAmount*100).toFixed(2))+"% ",1)]}),_:1})]),_:1})],64)}}});export{N as default};