import{d as E,q as g,U as f,r as e,l as A,C as B,o as C,i as D,e as v,b as L,u as a,_ as b}from"./index-8184dd63-1780045603901v=1.0.0.js";import{I as w}from"./IndexPagePro-13c09835-1780045603901v=1.0.0.js";import x from"./AreaDetail-3e6fdb16-1780045603901v=1.0.0.js";import{g as q}from"./areaSupply-2a8dcd36-1780045603901v=1.0.0.js";import"./notData-5e24f986-1780045603901v=1.0.0.js";import"./index-36c5e320-1780045603901v=1.0.0.js";import"./base64-db2ecc3a-1780045603901v=1.0.0.js";const k=E({__name:"detail",setup(S){const i=g(),s=f(),y=e(i.query.edit_id),o=e(i.query.report_type),c=A(()=>[`\u586B\u62A5\u5185\u5BB9\uFF1A${o.value==1?s.reporting_year:s.plan_year} \u573A\u5730${o.value==1?"\u5B9E\u9645\u5F00\u653E\u60C5\u51B5":"\u8BA1\u5212\u5F00\u653E\u60C5\u51B5"}`,"\u8BF4\u660E\uFF1A\u514D\u8D39\uFF08\u4F4E\u6536\u8D39\uFF09\u5F00\u653E\u7684\u573A\u5730\u548C\u9879\u76EE\uFF0C\u6307\u8BE5\u573A\u9986\u514D\u8D39\u6216\u4F4E\u6536\u8D39\u5411\u793E\u4F1A\u5F00\u653E\u7684\u8FD0\u52A8\u573A\u5730\u53CA\u9879\u76EE\u540D\u79F0\uFF0C\u6309\u987A\u5E8F\u7F57\u5217\u6240\u6709\u5F00\u653E\u573A\u5730\u53CA\u5BF9\u5E94\u9879\u76EE\u540D\u79F0\uFF0C\u5E76\u586B\u5199\u6BCF\u5929\u5F00\u653E\u65F6\u95F4\u53CA\u65F6\u6BB5"]),r=e({}),_=e([]),n=e([]),m=async()=>{let l={site_opening_report_id:y.value},t=(await q(l)).data;t.public_status_str=t.public_status==1?"\u516C\u5F00":"\u975E\u516C\u5F00",t.is_distinguish_holiday_str=t.is_distinguish_holiday==1?"\u662F":"\u5426";let d=[],p=[];t.site_open_situation.length>0&&t.site_open_situation.map(u=>{let F={open_situation_type:u.open_situation_type,charge_type_str:u.charge_type_str,holiday_type_str:u.holiday_type_str,daily_open:u.daily_open_start+"\u81F3"+u.daily_open_end,daily_open_hours:u.daily_open_hours,down_charging_standard:u.down_charging_standard,normal_charging_standard:u.normal_charging_standard};u.open_situation_type==1&&p.push(F),u.open_situation_type==2&&d.push(F)}),_.value=d,n.value=p,r.value=t};return B(()=>{i.query.edit_id&&m()}),(l,h)=>(C(),D(w,null,{default:v(()=>[L(x,{alertList:a(c),baseForm:a(r),dailyList:a(_),holidayList:a(n)},null,8,["alertList","baseForm","dailyList","holidayList"])]),_:1}))}}),j=b(k,[["__file","D:/desktop/yunNan/vue-area-submit/src/views/stadium/supply/area/detail.vue"]]);export{j as default};
