import{$ as e,O as t,S as n,St as r,T as i,Y as a,cn as o,dt as s,j as c,k as l,kt as u}from"./vue.runtime.esm-bundler-DpGzKKN4.js";import"./GxPagination-DOexUzbO.js";import{Ot as d}from"./vnode-DU8g6Rf7.js";import{n as f}from"./table-C_Bpc8FZ.js";import{t as p}from"./button-CHjzS7b0.js";import{n as m,t as h}from"./css--CcZutYI.js";import{t as g}from"./dialog-BLJqz3g4.js";import"./css-AklKJXcX.js";import"./css-BrGVMe3H.js";import{t as _}from"./Data_Table-Do6EiT1s.js";import{t as v}from"./Project_Form_Info-DrOtUCxt.js";import{n as y,t as b}from"./Project_Form_Product_List-LbNeS5UW.js";var x={class:`app-container`},S=c({__name:`project_list`,setup(c){let S={未启动:`#BFBFBF`,进行中:`#00A854`,暂停中:`#FFBF00`,已终止:`#F04134`,已完成:`#0E77D1`},C=r(`all`),w=r(!1),T=r(!1),E=r(!1),D=r(!1),O=r({}),k=r({}),A=r({}),j=r({});return(r,c)=>{let M=e(`Plus`),N=f,P=e(`Promotion`),F=h;return a(),i(`div`,x,[n(`div`,null,[l(u(p),{type:`primary`,size:`default`,onClick:c[0]||=e=>(w.value=!0,O.value={})},{default:s(()=>[l(u(d),null,{default:s(()=>[l(M)]),_:1}),c[10]||=n(`span`,{style:{"margin-left":`0.6em`}},` 创建项目 `,-1)]),_:1})]),c[17]||=n(`br`,null,null,-1),l(u(m),{modelValue:C.value,"onUpdate:modelValue":c[1]||=e=>C.value=e,class:`demo-tabs`},{default:s(()=>[l(F,{label:`公司自有项目`,name:`all`},{default:s(()=>[l(_,{"load-url":`/zxl_pm/project/project_ds.svc`},{default:s(()=>[l(N,{prop:`projectId`,label:`项目编号`}),l(N,{prop:`projectName`,label:`项目名称`}),l(N,{prop:`principalUserName`,label:`负责人`}),l(N,{prop:`customerId`,label:`客户id`}),l(N,{prop:`prjStatusName`,label:`状态`},{default:s(e=>[l(u(d),{color:S[e.row.prjStatusName]},{default:s(()=>[l(P)]),_:1},8,[`color`]),t(` `+o(e.row.prjStatusName),1)]),_:1}),l(N,{label:`邀请日期`,prop:`createDate`},{default:s(e=>[t(o(e.row.createDate.split(` `)[0]),1)]),_:1}),l(N,{label:`操作`,width:`240`},{default:s(e=>[l(u(p),{link:``,type:`primary`,onClick:t=>(E.value=!0,k.value=e.row)},{default:s(()=>[...c[11]||=[t(`详情`,-1)]]),_:1},8,[`onClick`]),l(u(p),{link:``,type:`primary`,onClick:t=>(T.value=!0,A.value=e.row)},{default:s(()=>[...c[12]||=[t(`修改`,-1)]]),_:1},8,[`onClick`]),l(u(p),{link:``,type:`primary`,onClick:t=>(D.value=!0,j.value=e.row)},{default:s(()=>[...c[13]||=[t(`需求列表`,-1)]]),_:1},8,[`onClick`])]),_:1})]),_:1})]),_:1}),l(F,{label:`参与项目`,name:`my`},{default:s(()=>[l(_,{"load-url":`/zxl_pm/project/project_participate_ds.svc`},{default:s(()=>[l(N,{prop:`projectId`,label:`项目编号`}),l(N,{prop:`projectName`,label:`项目名称`}),l(N,{prop:`principalUserName`,label:`负责人`}),l(N,{prop:`customerId`,label:`客户id`}),l(N,{prop:`prjStatusName`,label:`状态`},{default:s(e=>[l(u(d),{color:S[e.row.prjStatusName]},{default:s(()=>[l(P)]),_:1},8,[`color`]),t(` `+o(e.row.prjStatusName),1)]),_:1}),l(N,{label:`创建日期`,prop:`createDate`},{default:s(e=>[t(o(e.row.createDate.split(` `)[0]),1)]),_:1}),l(N,{label:`操作`,width:`240`},{default:s(e=>[l(u(p),{link:``,type:`primary`,onClick:t=>(E.value=!0,k.value=e.row)},{default:s(()=>[...c[14]||=[t(`详情`,-1)]]),_:1},8,[`onClick`]),l(u(p),{link:``,type:`primary`,onClick:t=>(T.value=!0,A.value=e.row)},{default:s(()=>[...c[15]||=[t(`修改`,-1)]]),_:1},8,[`onClick`]),l(u(p),{link:``,type:`primary`,onClick:t=>(D.value=!0,j.value=e.row)},{default:s(()=>[...c[16]||=[t(`需求列表`,-1)]]),_:1},8,[`onClick`])]),_:1})]),_:1})]),_:1})]),_:1},8,[`modelValue`]),l(u(g),{modelValue:w.value,"onUpdate:modelValue":c[3]||=e=>w.value=e,title:`创建项目`},{default:s(()=>[l(y,{ref:`ref_create_project`,row:O.value,onDone:c[2]||=e=>w.value=!1},null,8,[`row`])]),_:1},8,[`modelValue`]),l(u(g),{modelValue:T.value,"onUpdate:modelValue":c[5]||=e=>T.value=e,width:`700px`,title:`修改   ${A.value?.projectName||``}`},{default:s(()=>[l(y,{row:A.value,onDone:c[4]||=e=>T.value=!1},null,8,[`row`])]),_:1},8,[`modelValue`,`title`]),l(u(g),{modelValue:E.value,"onUpdate:modelValue":c[7]||=e=>E.value=e,width:`700px`,title:`       ${k.value?.projectName||``} 详情`},{default:s(()=>[l(v,{row:k.value,onDone:c[6]||=e=>E.value=!1},null,8,[`row`])]),_:1},8,[`modelValue`,`title`]),l(u(g),{modelValue:D.value,"onUpdate:modelValue":c[9]||=e=>D.value=e,width:`700px`,title:`       ${j.value?.projectName||``} 需求列表`},{default:s(()=>[l(b,{row:j.value,onDone:c[8]||=e=>D.value=!1},null,8,[`row`])]),_:1},8,[`modelValue`,`title`])])}}});export{S as default};