import{_ as D,d as I,c as d,e as o,f as p,F as m,J as j,I as b,j as e,i as a,k as l,t as n}from"./index.2939355b.js";const k=I({name:"safeInfo"}),x=Object.assign(k,{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"),i=d("el-descriptions");return o(),p(m,null,[y(s.detailData.safetyInputDescribe)?(o(!0),p(m,{key:0},j(JSON.parse(s.detailData.safetyInputDescribe),(r,f)=>(o(),b(i,{key:f,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(i,{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(i,{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((f,_)=>f+_.safetyInputAmount,0))/s.detailData.declareAmount*100).toFixed(2))+"% ",1)]}),_:1})]),_:1})],64)}}}),g=D(x,[["__file","/Users/chenlixin/Documents/work/NDKJ/MyProject/ls-project-v2.0/src/pages/projectStoreManage/projectStore/projectDetail/components/safeInfo.vue"]]);export{g as default};
