import{C as e,K as t,O as n,S as r,St as i,X as a,Y as o,bt as s,cn as c,dt as l,j as u,k as d}from"./vue.runtime.esm-bundler-DpGzKKN4.js";import{a as f,i as p}from"./vue-router-BU7Z_qXI.js";import{t as m}from"./GxPagination-DOexUzbO.js";import{n as h,t as g}from"./table-C_Bpc8FZ.js";import{n as _,t as v}from"./form-Bb1_iOEA.js";import{n as y,t as b}from"./collapse-B9-372uV.js";import{a as x,n as S}from"./css-BYms2pL-.js";import{t as C}from"./_plugin-vue_export-helper-CnS4QQza.js";import"./css-CvqL1q4I.js";import{Zo as w}from"./stores-BWYw2E2w.js";import"./css-j23UczC-.js";import{a as T}from"./validate-CTyV86Nm.js";import"./css-ropEN6qH.js";import"./css-BrGVMe3H.js";import"./css-70Wp40ko.js";import"./css-YIqg8Ucx.js";var E=C(u({__name:`review-result`,setup(u){let C=p();f();let E=C?.query?.productId,D=C?.query?.checkId;a(`zxlPrdId`,E);let O=i([`base`,`review-detail-list`,`review-detail-suggestion`]),k=s({}),A=async()=>{try{let e=await w({url:`/zxl_pm/check.svc`,method:`get`,params:{cmd:`getDetail`,checkId:D}});console.log(e),e&&e.checkId&&Object.keys(e).forEach(t=>{k[t]=e[t]})}catch(e){T({type:`error`,message:e||`获取数据失败！`})}};t(()=>{A()});let j=i([]),M=s({currentPage:1,pageSize:10,total:0}),N=i(!1),P=async()=>{N.value=!0,N.value=!1},F=(e,t,n)=>{n([{id:31,date:`2016-05-01`,name:`wangxiaohu`,address:`No. 189, Grove St, Los Angeles`},{id:32,date:`2016-05-01`,name:`wangxiaohu`,address:`No. 189, Grove St, Los Angeles`}])},I=i([]),L=s({loading:!1,currentPage:1,pageSize:10,total:0}),R={REQUEST_AUDIT:`需求评审`,2:`原型评审`,3:`测试`,ACCEPTANCE_CHECK:`验收`},z={CREATED:`已创建`,REQUEST_AUDITED:`需求已评审`,PROTOTYPE_AUDITED:`原型已评审`,FINISHED:`已完成`};return(t,i)=>{let a=_,s=v,u=y,f=h,p=g,C=m,w=b,T=x,E=S;return o(),e(E,{class:`app-container review-result`},{default:l(()=>[d(T,null,{default:l(()=>[d(w,{modelValue:O.value,"onUpdate:modelValue":i[4]||=e=>O.value=e},{default:l(()=>[d(u,{name:`base`},{title:l(()=>[...i[5]||=[r(`h1`,null,`1、 概要`,-1)]]),default:l(()=>[d(s,{class:`indent`},{default:l(()=>[d(a,{label:`评审编号：`},{default:l(()=>[n(c(k.checkNo),1)]),_:1}),d(a,{label:`版本：`},{default:l(()=>[n(c(k.userVersionNo),1)]),_:1}),d(a,{label:`类型：`},{default:l(()=>[n(c(k.checkType&&R[k.checkType]||``),1)]),_:1}),d(a,{label:`状态：`},{default:l(()=>[n(c(k.checkStatus&&z[k.checkStatus]||``),1)]),_:1}),d(a,{label:`创建人：`},{default:l(()=>[n(c(k.createUserName),1)]),_:1}),d(a,{label:`创建日期：`},{default:l(()=>[n(c(k.createTime),1)]),_:1}),d(a,{label:`结束人：`},{default:l(()=>[n(c(k.principalName),1)]),_:1}),d(a,{label:`结束日期：`},{default:l(()=>[n(c(k.finishTime),1)]),_:1}),d(a,{label:`标题：`},{default:l(()=>[n(c(k.checkTitle),1)]),_:1}),d(a,{label:`说明：`},{default:l(()=>[n(c(k.checkContent),1)]),_:1})]),_:1})]),_:1}),d(u,{name:`review-detail-list`},{title:l(()=>[...i[6]||=[r(`h1`,null,`2、 评审清单`,-1)]]),default:l(()=>[d(p,{data:j.value,"row-key":`id`,lazy:``,load:F,"tree-props":{children:`children`,hasChildren:`hasChildren`}},{default:l(()=>[d(f,{prop:``,label:`对象ID/类型/名称`},{default:l(({row:e})=>[...i[7]||=[r(`div`,{class:`flex flex-row flex-wrap justify-center`},null,-1)]]),_:1}),d(f,{prop:`result`,label:`结果`}),d(f,{prop:`name`,label:`评审人`}),d(f,{prop:`date`,label:`评审时间`})]),_:1},8,[`data`]),d(C,{"current-page":M.currentPage,"onUpdate:currentPage":i[0]||=e=>M.currentPage=e,"page-size":M.pageSize,"onUpdate:pageSize":i[1]||=e=>M.pageSize=e,"page-sizes":[10,20,50,100],background:!0,layout:`total, sizes, prev, pager, next, jumper`,total:M.total,onSizeChange:P,onCurrentChange:P},null,8,[`current-page`,`page-size`,`total`])]),_:1}),d(u,{name:`review-detail-suggestion`},{title:l(()=>[...i[8]||=[r(`h1`,null,`3、 评审意见`,-1)]]),default:l(()=>[d(p,{data:I.value,"row-key":`id`,lazy:``,load:F,"tree-props":{children:`children`,hasChildren:`hasChildren`}},{default:l(()=>[d(f,{prop:``,label:`ID`},{default:l(({row:e})=>[...i[9]||=[r(`div`,{class:`flex flex-row flex-wrap justify-center`},null,-1)]]),_:1}),d(f,{prop:`result`,label:`创建人`}),d(f,{prop:`date`,label:`创建时间`}),d(f,{prop:`result`,label:`对象来源`}),d(f,{prop:`result`,label:`对象编号/名称`}),d(f,{prop:`result`,label:`评审内容`}),d(f,{prop:`name`,label:`状态`})]),_:1},8,[`data`]),d(C,{"current-page":L.currentPage,"onUpdate:currentPage":i[2]||=e=>L.currentPage=e,"page-size":L.pageSize,"onUpdate:pageSize":i[3]||=e=>L.pageSize=e,"page-sizes":[10,20,50,100],background:!0,layout:`total, sizes, prev, pager, next, jumper`,total:L.total,onSizeChange:P,onCurrentChange:P},null,8,[`current-page`,`page-size`,`total`])]),_:1})]),_:1},8,[`modelValue`])]),_:1})]),_:1})}}}),[[`__scopeId`,`data-v-6b6463c8`]]);export{E as default};