import{d as B,q as f,U as F,r as a,l as v,C as y,o as A,i as D,e as C,b as E,u as _,_ as h}from"./index-8184dd63-1780045603901v=1.0.0.js";import{I as b}from"./IndexPagePro-13c09835-1780045603901v=1.0.0.js";import g from"./TrainDetail-82e2028f-1780045603901v=1.0.0.js";import{i as x}from"./areaSupply-2a8dcd36-1780045603901v=1.0.0.js";import"./index-36c5e320-1780045603901v=1.0.0.js";import"./base64-db2ecc3a-1780045603901v=1.0.0.js";const q=B({__name:"detail",setup(k){const e=f(),o=F(),c=a(e.query.edit_id),s=a(e.query.report_type),p=v(()=>[`\u586B\u62A5\u5185\u5BB9\uFF1A${s.value==1?o.reporting_year:o.plan_year} \u4F53\u80B2\u57F9\u8BAD${s.value==1?"\u5B9E\u9645\u60C5\u51B5":"\u8BA1\u5212\u60C5\u51B5"}`,"\u8BF4\u660E\uFF1A\u5728\u4F53\u80B2\u573A\u9986\u6838\u5FC3\u533A\u4E3E\u529E\u514D\u8D39\u6216\u4F4E\u6536\u8D39\u4F53\u80B2\u8D5B\u4E8B\u6D3B\u52A8\u540D\u79F0\u548C\u53C2\u52A0\u4EBA\u6B21"]),i=a(),m=async()=>{let l={sports_train_report_id:c.value},u=(await x(l)).data,n=[];if(u.train_cover_url&&(u.train_cover_url.map(t=>{n.push(t.full_url)}),u.train_cover_list=n),u.contract_document.length>0){let t=[];u.contract_document.map(r=>{t.push({url:r.full_url,file_path:r.url,name:r.name})}),u.contract_document_list=t}i.value=u};return y(()=>{e.query.edit_id&&m()}),(l,d)=>(A(),D(b,null,{default:C(()=>[E(g,{alertList:_(p),baseForm:_(i)},null,8,["alertList","baseForm"])]),_:1}))}}),S=h(q,[["__file","D:/desktop/yunNan/vue-area-submit/src/views/stadium/supply/train/detail.vue"]]);export{S as default};
