import{r as i,E as x,d as V,a as p,o as S,i as k,e as r,b as f,u as s,m as v,f as b,j as E,_ as w}from"./index-8184dd63-1780045603901v=1.0.0.js";import{I as A}from"./IndexPagePro-13c09835-1780045603901v=1.0.0.js";import T from"./SetForm-47427cbc-1780045603901v=1.0.0.js";import{c as I,u as N}from"./tagManage-1b66d64b-1780045603901v=1.0.0.js";const D=()=>{const u=i(!1),a=i(""),_=i("\u7CFB\u7EDF\u8BBE\u7F6E"),t=i(""),g=()=>{l.value={year:"",reporting_year:[],plan_year:[],submit_audit:[]},a.value=_.value,t.value="",u.value=!0},d=e=>{let o={year:"",reporting_year:[],plan_year:[],submit_audit:[]};t.value=e.tag_id,l.value=o,a.value=_.value,u.value=!0},l=i({name:"",logo:"",imagesList:[],status:1,des:"",tag_group_id:""}),n=i(!1);return{dialogVisible:u,dialogTitle:a,handleAdd:g,handleEdit:d,baseform:l,baseformLoading:n,baseformCancel:()=>{u.value=!1},baseformSubmit:async e=>{n.value=!0;try{let o=I,c="\u65B0\u589E\u6210\u529F";t.value&&(e.tag_id=t.value,o=N,c="\u66F4\u65B0\u6210\u529F"),(await o(e)).code==200&&(x({type:"success",message:`${c}!`}),u.value=!1),n.value=!1}catch{n.value=!1}},currenEditId:t}},L={class:"form-section--hd"},U={class:"form-section--bd"},h=V({__name:"set",setup(u){const{dialogVisible:a,dialogTitle:_,handleAdd:t,handleEdit:g,baseform:d,baseformLoading:l,baseformCancel:n,baseformSubmit:y}=D();return(B,e)=>{const o=p("el-button"),c=p("el-form-item"),F=p("el-form"),C=p("el-dialog");return S(),k(A,null,{dialog:r(()=>[f(C,{modelValue:s(a),"onUpdate:modelValue":e[2]||(e[2]=m=>v(a)?a.value=m:null),title:s(_),width:"650px",top:"10vh"},{default:r(()=>[f(T,{value:s(d),"onUpdate:value":e[0]||(e[0]=m=>v(d)?d.value=m:null),loading:s(l),"onUpdate:loading":e[1]||(e[1]=m=>v(l)?l.value=m:null),onCancel:s(n),onSubmit:s(y)},null,8,["value","loading","onCancel","onSubmit"])]),_:1},8,["modelValue","title"])]),default:r(()=>[b("div",L,[e[4]||(e[4]=b("h4",null,"\u7CFB\u7EDF\u8BBE\u7F6E",-1)),f(o,{link:"",type:"primary",onClick:s(t)},{default:r(()=>[...e[3]||(e[3]=[E(" \u7F16\u8F91",-1)])]),_:1},8,["onClick"])]),b("div",U,[f(F,{"label-position":"left","label-width":"180px",class:"default-form"},{default:r(()=>[f(c,{label:"\u6570\u636E\u4E0A\u62A5\u662F\u5426\u9700\u8981\u5BA1\u6838"},{default:r(()=>[...e[5]||(e[5]=[E(" \u662F ",-1)])]),_:1})]),_:1})])]),_:1})}}});const $=w(h,[["__scopeId","data-v-32995749"],["__file","D:/desktop/yunNan/vue-area-submit/src/views/systemManage/set.vue"]]);export{$ as default};
