import{_ as v}from"./BaseForm.vue_vue_type_script_setup_true_lang-c0d35219-1782111760424v=1.0.0.js";import{u as y,g as b}from"./specialWorkTypeApi-a0f59548-1782111760424v=1.0.0.js";import{u as C}from"./useFormEdit-61a257a4-1782111760424v=1.0.0.js";import{a as k}from"./index-996f931c-1782111760424v=1.0.0.js";import{E as l}from"./eleVendor-99a45232-1782111760424v=1.0.0.js";import{m as p,a as u,e as w,ai as x,p as E,M as F,O as P,U as S,u as m,D as c}from"./vendor-7f807b9d-1782111760424v=1.0.0.js";import"./tabs-cb939388-1782111760424v=1.0.0.js";const T=p({name:"specialWorkTypeEdit"}),$=p({...T,setup(q){const{closeCurrent:i}=C(),f=u(null),s=u({name:"",dictType:"",isEnable:""}),a=u(!1),d=()=>{i()},g=async t=>{a.value=!0;try{let e=y,r="\u66F4\u65B0\u6210\u529F",o=await e(t);o.code==0?l({type:"success",message:`${r}!`}):l.warning(o.msg),a.value=!1,i()}catch{a.value=!1}},n=k(),_=async t=>{let e=await b(t);if(e.code!=0){l.warning(e.msg);return}s.value=e.data};return w(()=>{n.query.id&&(f.value=n.query.id,_(n.query.id))}),(t,e)=>{const r=x("PaIndexPage");return E(),F(r,null,{default:P(()=>[S(v,{value:m(s),"onUpdate:value":e[0]||(e[0]=o=>c(s)?s.value=o:null),loading:m(a),"onUpdate:loading":e[1]||(e[1]=o=>c(a)?a.value=o:null),onCancel:d,onSubmit:g},null,8,["value","loading"])]),_:1})}}});export{$ as default};
