import{d as V,r as Y,l as g,C as k,a as n,o as N,i as A,e as o,f as m,b as r,u as s,j as u,ap as w,_ as D}from"./index-8184dd63-1780045603901v=1.0.0.js";const E={class:"form\u2014container"},I={class:"el-dialog__footer"},O={class:"dialog-footer"},J=V({__name:"SetForm",props:{value:Object,loading:{type:Boolean,default:!1}},emits:["update:value","update:loading","cancel","submit"],setup(b,{emit:v}){Y(!1);const p=Y(),{proxy:a}=w();let f=b;const l=v,d=g({get(){return x(f.value)},set(e){l("update:value",e)}}),C=g({get(){return f.loading},set(e){l("update:loading",e)}}),j=async e=>{e.validate(async(t,_)=>{if(t){let i=$();l("submit",i)}})},F=()=>{l("cancel")};k(()=>{});const x=e=>e,$=()=>{let e=JSON.parse(JSON.stringify(d.value));return e.year=a.$dayjs(e.year).format("YYYY"),e.reporting_year_start_date=a.$dayjs(e.reporting_year[0]).format("YYYY"),e.reporting_year_end_date=a.$dayjs(e.reporting_year[1]).format("YYYY"),e.plan_year_start_date=a.$dayjs(e.plan_year[0]).format("YYYY"),e.plan_year_end_date=a.$dayjs(e.plan_year[1]).format("YYYY"),e.submit_audit_start_date=a.$dayjs(e.submit_audit[0]).format("YYYY"),e.submit_audit_end_date=a.$dayjs(e.submit_audit[1]).format("YYYY"),e};return(e,t)=>{const _=n("el-radio"),i=n("el-radio-group"),B=n("el-form-item"),y=n("el-button"),S=n("el-form");return N(),A(S,{model:s(d),ref_key:"ruleFormRef",ref:p,"label-position":"right","label-width":"180px",class:"default-form"},{default:o(()=>[m("div",E,[r(B,{label:"\u6570\u636E\u4E0A\u62A5\u662F\u5426\u9700\u8981\u5BA1\u6838",prop:"year"},{default:o(()=>[r(i,{modelValue:s(d).year,"onUpdate:modelValue":t[0]||(t[0]=c=>s(d).year=c)},{default:o(()=>[r(_,{label:"1"},{default:o(()=>[...t[2]||(t[2]=[u("\u662F",-1)])]),_:1}),r(_,{label:"2"},{default:o(()=>[...t[3]||(t[3]=[u("\u5426",-1)])]),_:1})]),_:1},8,["modelValue"])]),_:1})]),m("div",I,[m("span",O,[r(y,{onClick:F},{default:o(()=>[...t[4]||(t[4]=[u("\u53D6\u6D88",-1)])]),_:1}),r(y,{type:"primary",loading:s(C),onClick:t[1]||(t[1]=c=>j(s(p)))},{default:o(()=>[...t[5]||(t[5]=[u(" \u786E\u8BA4 ",-1)])]),_:1},8,["loading"])])])]),_:1},8,["model"])}}});const R=D(J,[["__scopeId","data-v-e9faac46"],["__file","D:/desktop/yunNan/vue-area-submit/src/views/systemManage/components/SetForm.vue"]]);export{R as default};
