import{d as g,r as a,G as B,a0 as U,b as k,e as C,o as u,f as s,w as j,g as m,h as o,H as n,p as y,I as x}from"./index-17740f03-1778929502341v=1.0.0.js";import b from"./SelectProjectForm-17cb554f-1778929502341v=1.0.0.js";import E from"./WriteProjectInfo-0696674f-1778929502341v=1.0.0.js";import R from"./PositionCondition-64498e85-1778929502341v=1.0.0.js";import{u as V}from"./useFormEdit-1c6a5713-1778929502341v=1.0.0.js";import"./project-d8b2e0b3-1778929502341v=1.0.0.js";import"./MoneyOrigin-b0c5bfb6-1778929502341v=1.0.0.js";import"./CardContainer-c82d3266-1778929502341v=1.0.0.js";import"./UploadFile-1ac5cfb7-1778929502341v=1.0.0.js";import"./BaseInfo.vue_vue_type_script_setup_true_lang-94d01b89-1778929502341v=1.0.0.js";import"./options-6ad40925-1778929502341v=1.0.0.js";import"./AddressInfo.vue_vue_type_script_setup_true_lang-940c1110-1778929502341v=1.0.0.js";import"./SpecialInfo.vue_vue_type_script_setup_true_lang-b5f024d3-1778929502341v=1.0.0.js";import"./FormItem.vue_vue_type_script_setup_true_lang-f90a1eeb-1778929502341v=1.0.0.js";import"./MediaData-a59910ed-1778929502341v=1.0.0.js";import"./fileManage-21b3e25f-1778929502341v=1.0.0.js";import"./addProject-ef818039-1778929502341v=1.0.0.js";import"./tagManage-07146c77-1778929502341v=1.0.0.js";import"./RelatedUnit-24c40f3a-1778929502341v=1.0.0.js";import"./LocationInfo.vue_vue_type_script_setup_true_lang-1740f2d2-1778929502341v=1.0.0.js";import"./tabs-07c00c0d-1778929502341v=1.0.0.js";const h=g({__name:"edit",setup(q){const{closeCurrent:d}=V();let e=a(1),f=a({type_id:"",name:""}),i=a(null);const I=a(null),p=a(""),l=B(),_=c=>{f.value=c};return U(e,()=>{try{I.value.tableMainRef.scrollTo({top:0,behavior:"smooth"})}catch{}}),k(()=>{l.query.project_id&&(p.value=String(l.query.project_id)),l.query.type_id&&(i.value=Number(l.query.type_id))}),(c,r)=>{const v=C("el-step"),P=C("el-steps");return u(),s(x,{class:"default-form",ref_key:"indexPageProVueRef",ref:I},{default:j(()=>[m(P,{active:o(e),"align-center":"",class:"mt16 mb32"},{default:j(()=>[m(v,{title:"\u9879\u76EE\u7C7B\u578B"}),m(v,{title:"\u9879\u76EE\u60C5\u51B5"}),m(v,{title:"\u70B9\u4F4D\u60C5\u51B5"})]),_:1},8,["active"]),o(e)==1?(u(),s(b,{key:0,active:o(e),"onUpdate:active":r[0]||(r[0]=t=>n(e)?e.value=t:e=t),onCancel:o(d),typeId:o(i),"onUpdate:typeId":r[1]||(r[1]=t=>n(i)?i.value=t:i=t),projectId:o(p),"onUpdate:projectId":r[2]||(r[2]=t=>n(p)?p.value=t:null),onGetType:_},null,8,["active","onCancel","typeId","projectId"])):y("v-if",!0),o(e)==2?(u(),s(E,{key:1,active:o(e),"onUpdate:active":r[3]||(r[3]=t=>n(e)?e.value=t:e=t),onCancel:o(d),projectId:o(p),"onUpdate:projectId":r[4]||(r[4]=t=>n(p)?p.value=t:null),typeInfo:o(f)},null,8,["active","onCancel","projectId","typeInfo"])):y("v-if",!0),o(e)==3?(u(),s(R,{key:2,active:o(e),"onUpdate:active":r[5]||(r[5]=t=>n(e)?e.value=t:e=t),onCancel:o(d),projectId:o(p),"onUpdate:projectId":r[6]||(r[6]=t=>n(p)?p.value=t:null),typeInfo:o(f)},null,8,["active","onCancel","projectId","typeInfo"])):y("v-if",!0)]),_:1},512)}}});export{h as default};
