import{_ as D,d as I,f as d,g as o,h as p,G as m,L as g,K as b,m as e,l as a,p as l,t as n}from"./index.9fabe127.js";const j=I({name:"safeInfo"}),k=Object.assign(j,{props:{detailData:Object},setup(s){const y=c=>{if(typeof c=="string")try{var u=JSON.parse(c);return!!(typeof u=="object"&&u)}catch(t){return!1}};return(c,u)=>{const t=d("el-descriptions-item"),f=d("el-descriptions");return o(),p(m,null,[y(s.detailData.safetyInputDescribe)?(o(!0),p(m,{key:0},g(JSON.parse(s.detailData.safetyInputDescribe),(r,i)=>(o(),b(f,{key:i,column:1,border:"",class:"mb-16"},{default:e(()=>[a(t,{label:"\u6295\u5165\u9879"},{default:e(()=>[l(n(r.safetyInputTitle||"-"),1)]),_:2},1024),a(t,{label:"\u5185\u5BB9\u63CF\u8FF0\uFF1A"},{default:e(()=>[l(n(r.safetyInputDescribe||"-"),1)]),_:2},1024),a(t,{label:"\u91D1\u989D\uFF08\u4E07\u5143\uFF09\uFF1A"},{default:e(()=>[l(n(r.safetyInputAmount),1)]),_:2},1024)]),_:2},1024))),128)):(o(),b(f,{key:1,column:1,border:"",class:"mb-16"},{default:e(()=>[a(t,{label:"\u6295\u5165\u9879"},{default:e(()=>[l(n(s.detailData.safetyInputTitle||"-"),1)]),_:1}),a(t,{label:"\u5185\u5BB9\u63CF\u8FF0\uFF1A"},{default:e(()=>[l(n(s.detailData.safetyInputDescribe||"-"),1)]),_:1}),a(t,{label:"\u91D1\u989D\uFF08\u4E07\u5143\uFF09\uFF1A"},{default:e(()=>[l(n(s.detailData.safetyInputAmount),1)]),_:1})]),_:1})),a(f,{column:1,border:"",class:"mb-16"},{default:e(()=>[a(t,{label:"\u5B89\u5168\u6295\u5165\u5360\u6BD4\uFF1A"},{default:e(()=>{var r;return[l(n((((r=JSON.parse(s.detailData.safetyInputDescribe))==null?void 0:r.reduce((i,_)=>i+_.safetyInputAmount,0))/s.detailData.declareAmount*100).toFixed(2))+"% ",1)]}),_:1})]),_:1})],64)}}}),S=D(k,[["__file","/Users/chenlixin/Documents/work/NDKJ/MyProject/ls-project-v2.0/src/pages/projectStoreManage/projectStore/projectDetail/components/safeInfo.vue"]]);export{S as default};
