import{p as e,l}from"./options-1de98036-1780912037814v=1.0.0.js";import{d as a,r as d,s as o,a as u,b as t,h as n,e as r,w as p,f as s,F as i,i as m,c as f,j as _,H as b}from"./index-d052b22f-1780912037814v=1.0.0.js";const c=a({__name:"BaseInfo",props:{info:{type:Object,default:()=>{}},initBuildProgress:{type:Number,default:-1}},emits:["update:info"],setup(a,{emit:c}){const V=a,v=c;d("");const Y=o((()=>{const l=JSON.parse(JSON.stringify(e)),a=[6,7,1,2,3,4,5],d=V.initBuildProgress;if(d){const e=a.indexOf(d),o=-1===e?[]:a.slice(0,e);l.forEach(((e,a)=>{e.children.forEach(((e,d)=>{o.includes(e.value)&&(l[a].children[d].disabled=!0)}))}))}return l})),g=o({get:()=>[y.value.progress,y.value.build_progress],set:e=>{(e||e.length)&&(y.value.progress=e[0],y.value.build_progress=e[1])}}),h={expandTrigger:"hover"},y=o({get:()=>V.info,set:e=>{v("update:info",e)}});return(e,a)=>{const d=u("el-input"),o=u("el-form-item"),c=u("FormCol"),V=u("el-option"),v=u("el-select"),D=u("el-radio"),M=u("el-radio-group"),U=u("el-date-picker"),k=u("el-cascader"),j=u("FormRow");return t(),n("div",null,[r(j,null,{default:p((()=>[r(c,null,{default:p((()=>[r(o,{label:"编号：",prop:"no"},{default:p((()=>[r(d,{modelValue:s(y).no,"onUpdate:modelValue":a[0]||(a[0]=e=>s(y).no=e),disabled:!0,placeholder:"请输入编号"},null,8,["modelValue"])])),_:1})])),_:1}),r(c,null,{default:p((()=>[r(o,{label:"项目类型：",prop:"type_id"},{default:p((()=>[r(d,{modelValue:s(y).type_name,"onUpdate:modelValue":a[1]||(a[1]=e=>s(y).type_name=e),placeholder:"请输入编号",disabled:""},null,8,["modelValue"])])),_:1})])),_:1}),r(c,null,{default:p((()=>[r(o,{label:"项目名称：",prop:"name"},{default:p((()=>[r(d,{modelValue:s(y).name,"onUpdate:modelValue":a[2]||(a[2]=e=>s(y).name=e),placeholder:"请输入项目名称"},null,8,["modelValue"])])),_:1})])),_:1}),r(c,null,{default:p((()=>[r(o,{label:"项目级别：",prop:"level"},{default:p((()=>[r(v,{modelValue:s(y).level,"onUpdate:modelValue":a[3]||(a[3]=e=>s(y).level=e),placeholder:"请选择项目级别",clearable:""},{default:p((()=>[(t(!0),n(i,null,m(s(l),((e,l)=>(t(),f(V,{key:l,label:e.label,value:e.value},null,8,["label","value"])))),128))])),_:1},8,["modelValue"])])),_:1})])),_:1}),r(c,null,{default:p((()=>[r(o,{label:"项目性质：",prop:"kind"},{default:p((()=>[r(M,{modelValue:s(y).kind,"onUpdate:modelValue":a[4]||(a[4]=e=>s(y).kind=e)},{default:p((()=>[r(D,{label:1},{default:p((()=>a[8]||(a[8]=[_("新建")]))),_:1}),r(D,{label:2},{default:p((()=>a[9]||(a[9]=[_("改/扩建")]))),_:1})])),_:1},8,["modelValue"])])),_:1})])),_:1}),r(c,null,{default:p((()=>[r(o,{label:"开工（预计）时间：",prop:"start_time"},{default:p((()=>[r(U,{modelValue:s(y).start_time,"onUpdate:modelValue":a[5]||(a[5]=e=>s(y).start_time=e),type:"date",format:"YYYY-MM-DD","value-format":"YYYY-MM-DD",placeholder:"请选择开工（预计）时间："},null,8,["modelValue"])])),_:1})])),_:1}),r(c,null,{default:p((()=>[r(o,{label:"完工（预计）时间：",prop:"build_time"},{default:p((()=>[r(U,{modelValue:s(y).build_time,"onUpdate:modelValue":a[6]||(a[6]=e=>s(y).build_time=e),type:"date",format:"YYYY-MM-DD","value-format":"YYYY-MM-DD",placeholder:"请选择完工（预计）时间："},null,8,["modelValue"])])),_:1})])),_:1}),r(c,null,{default:p((()=>[r(o,{label:"项目进展阶段：",prop:"build_progress"},{default:p((()=>[r(k,{modelValue:s(g),"onUpdate:modelValue":a[7]||(a[7]=e=>b(g)?g.value=e:null),options:s(Y),props:h},null,8,["modelValue","options"])])),_:1})])),_:1})])),_:1})])}}});export{c as _};
