import{aX as U,aU as A,m as L,_ as V}from"./index-design-C8wrC2s6.js";/* empty css                    */import{a as j,u as q}from"./vue-router-3s92ZBQp.js";import{a7 as B,a1 as M,u as O,l as F,m as G,A as H,B as Q,C as X}from"./element-plus-DXXGg0hD.js";import{d as Y,f as g,r as f,D as K,X as $,O as J,Y as a,a4 as e,ab as n,$ as i,R as d,p as W}from"./vue-BQyCGvUQ.js";import"./svg-icons-register-D2E0-Ytb.js";import"./pinia-vendor-Dca3jG8Z.js";import"./x2js-CcPE71Wh.js";import"./spark-md5-D1K1GNLF.js";import"./bpmn-js-vendor-CmbY3e_O.js";import"./element-plus/icons-vue-W2FFUolX.js";import"./feelin-BX8uiLPw.js";import"./tiny-svg-DwrM6wVX.js";import"./axios-Bz4la0P9.js";import"./vueuse-DpVqiu7V.js";import"./echarts-Sg1_iEix.js";import"./dragula-CfHszRTf.js";import"./vuedraggable-DggeXcQm.js";import"./tui-image-editor-vendor-DBxMdFCh.js";import"./fabric-Cm_BIpEs.js";import"./qrcode-DgLtAz-0.js";const Z=Y({__name:"review-result",setup(ee){const b=j();q();const h=b?.query?.productId,k=b?.query?.checkId;W("zxlPrdId",h);const v=g(["base","review-detail-list","review-detail-suggestion"]),o=f({}),x=async()=>{try{const t=await A({url:"/zxl_pm/check.svc",method:"get",params:{cmd:"getDetail",checkId:k}});console.log(t),t&&t.checkId&&Object.keys(t).forEach(l=>{o[l]=t[l]})}catch(m){L({type:"error",message:m||"获取数据失败！"})}};K(()=>{x()});const S=g([]),p=f({currentPage:1,pageSize:10,total:0}),w=g(!1),c=async()=>{w.value=!0,w.value=!1},C=(m,t,l)=>{l([{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"}])},y=g([]),u=f({loading:!1,currentPage:1,pageSize:10,total:0}),T={REQUEST_AUDIT:"需求评审",2:"原型评审",3:"测试",ACCEPTANCE_CHECK:"验收"},I={CREATED:"已创建",REQUEST_AUDITED:"需求已评审",PROTOTYPE_AUDITED:"原型已评审",FINISHED:"已完成"};return(m,t)=>{const l=G,P=F,_=O,r=Q,z=H,E=U,R=M,D=B,N=X;return J(),$(N,{class:"app-container review-result"},{default:a(()=>[e(D,null,{default:a(()=>[e(R,{modelValue:v.value,"onUpdate:modelValue":t[4]||(t[4]=s=>v.value=s)},{default:a(()=>[e(_,{name:"base"},{title:a(()=>[...t[5]||(t[5]=[d("h1",null,"1、 概要",-1)])]),default:a(()=>[e(P,{class:"indent"},{default:a(()=>[e(l,{label:"评审编号："},{default:a(()=>[n(i(o.checkNo),1)]),_:1}),e(l,{label:"版本："},{default:a(()=>[n(i(o.userVersionNo),1)]),_:1}),e(l,{label:"类型："},{default:a(()=>[n(i(o.checkType&&T[o.checkType]||""),1)]),_:1}),e(l,{label:"状态："},{default:a(()=>[n(i(o.checkStatus&&I[o.checkStatus]||""),1)]),_:1}),e(l,{label:"创建人："},{default:a(()=>[n(i(o.createUserName),1)]),_:1}),e(l,{label:"创建日期："},{default:a(()=>[n(i(o.createTime),1)]),_:1}),e(l,{label:"结束人："},{default:a(()=>[n(i(o.principalName),1)]),_:1}),e(l,{label:"结束日期："},{default:a(()=>[n(i(o.finishTime),1)]),_:1}),e(l,{label:"标题："},{default:a(()=>[n(i(o.checkTitle),1)]),_:1}),e(l,{label:"说明："},{default:a(()=>[n(i(o.checkContent),1)]),_:1})]),_:1})]),_:1}),e(_,{name:"review-detail-list"},{title:a(()=>[...t[6]||(t[6]=[d("h1",null,"2、 评审清单",-1)])]),default:a(()=>[e(z,{data:S.value,"row-key":"id",lazy:"",load:C,"tree-props":{children:"children",hasChildren:"hasChildren"}},{default:a(()=>[e(r,{prop:"",label:"对象ID/类型/名称"},{default:a(({row:s})=>[...t[7]||(t[7]=[d("div",{class:"flex flex-row flex-wrap justify-center"},null,-1)])]),_:1}),e(r,{prop:"result",label:"结果"}),e(r,{prop:"name",label:"评审人"}),e(r,{prop:"date",label:"评审时间"})]),_:1},8,["data"]),e(E,{"current-page":p.currentPage,"onUpdate:currentPage":t[0]||(t[0]=s=>p.currentPage=s),"page-size":p.pageSize,"onUpdate:pageSize":t[1]||(t[1]=s=>p.pageSize=s),"page-sizes":[10,20,50,100],background:!0,layout:"total, sizes, prev, pager, next, jumper",total:p.total,onSizeChange:c,onCurrentChange:c},null,8,["current-page","page-size","total"])]),_:1}),e(_,{name:"review-detail-suggestion"},{title:a(()=>[...t[8]||(t[8]=[d("h1",null,"3、 评审意见",-1)])]),default:a(()=>[e(z,{data:y.value,"row-key":"id",lazy:"",load:C,"tree-props":{children:"children",hasChildren:"hasChildren"}},{default:a(()=>[e(r,{prop:"",label:"ID"},{default:a(({row:s})=>[...t[9]||(t[9]=[d("div",{class:"flex flex-row flex-wrap justify-center"},null,-1)])]),_:1}),e(r,{prop:"result",label:"创建人"}),e(r,{prop:"date",label:"创建时间"}),e(r,{prop:"result",label:"对象来源"}),e(r,{prop:"result",label:"对象编号/名称"}),e(r,{prop:"result",label:"评审内容"}),e(r,{prop:"name",label:"状态"})]),_:1},8,["data"]),e(E,{"current-page":u.currentPage,"onUpdate:currentPage":t[2]||(t[2]=s=>u.currentPage=s),"page-size":u.pageSize,"onUpdate:pageSize":t[3]||(t[3]=s=>u.pageSize=s),"page-sizes":[10,20,50,100],background:!0,layout:"total, sizes, prev, pager, next, jumper",total:u.total,onSizeChange:c,onCurrentChange:c},null,8,["current-page","page-size","total"])]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1})}}}),Ee=V(Z,[["__scopeId","data-v-6b6463c8"]]);export{Ee as default};
