No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

2 líneas
4.3KB

  1. import{E as G}from"./index-29b4120c.js";import{l as R}from"./performanceApprove-75a10e75.js";import{r as m,E as W,a as q,b as o,c as V,L as C,h as t,f as e,e as i,i as S,n as N,t as D,j as F,k as H,$ as c}from"./index-dd5fae99.js";const I={class:"flex"},J={class:"flex items-center"},K=["onClick"],Q=H({name:"evaluatePlanApprove"}),le=Object.assign(Q,{setup(X){const d=m("1"),{operationTypeOptions:b}=W.dictStore.globalDicts||{},s=q({name:void 0,times:void 0}),g={1:"项目",2:"应用"},Y=[{label:"序号",type:"index",width:"60"},{label:"计划名称",key:"name",prop:"name"},{label:"评价对象",key:"target",prop:"target",render:l=>c("span",l.target.split(",").map(a=>g[a]).join(",")),width:100},{label:"提交审核时间",key:"createOn",prop:"createOn"},{label:"审核操作",key:"operationType",prop:"operationType",render:l=>c("span",b[l.operationType]||"-")},{label:"操作",slot:"action",fixed:"right",width:80}],O=[{label:"序号",type:"index",width:"60"},{label:"计划名称",key:"name",prop:"name"},{label:"评价对象",key:"target",prop:"target",render:l=>c("span",l.target.split(",").map(a=>g[a]).join(",")),width:100},{label:"提交审核时间",key:"createOn",prop:"createOn"},{label:"审核操作",key:"operationType",prop:"operationType",render:l=>c("span",b[l.operationType]||"-")},{label:"审核状态",slot:"auditStatusName",prop:"auditStatusName"},{label:"操作",slot:"action",fixed:"right",width:80}],y=m(0),v=m([]),_=m(),p=async(l=_.value.pageParams)=>{var r,u;const a=await R({...l,...s,start:((r=s.times)==null?void 0:r[0])||void 0,end:((u=s.times)==null?void 0:u[1])||void 0,times:void 0,auditType:2,auditStatusType:d.value*1});v.value=a.data.records,y.value=a.data.total},M=()=>{p()},w=()=>{s.name=void 0,s.times=void 0,p()},$=l=>{s.regionCode=l.regionLevel===3?l.regionCode:void 0,_.value.pageParams.pageNumber=1,p()},j=l=>{d.value=l,w()};return(l,a)=>{const r=o("el-col"),u=o("el-input"),f=o("el-form-item"),L=o("el-date-picker"),k=o("el-button"),h=o("el-row"),B=o("el-form"),T=o("el-card"),x=o("el-tab-pane"),E=o("el-tabs"),P=o("Warning"),U=o("el-icon"),z=o("el-tooltip"),A=o("table-list");return V(),C(h,null,{default:t(()=>[e(r,{style:{"padding-right":"16px"},span:4},{default:t(()=>[e(G,{onGetTree:$})]),_:1}),e(r,{span:20},{default:t(()=>[e(T,{class:"w-full search"},{default:t(()=>[e(B,{model:s,size:"small","label-suffix":":"},{default:t(()=>[e(h,{gutter:16},{default:t(()=>[e(r,{span:8},{default:t(()=>[e(f,{label:"计划名称"},{default:t(()=>[e(u,{modelValue:s.name,"onUpdate:modelValue":a[0]||(a[0]=n=>s.name=n),placeholder:"请输入"},null,8,["modelValue"])]),_:1})]),_:1}),e(r,{span:9},{default:t(()=>[e(f,{label:"创建时间"},{default:t(()=>[e(L,{modelValue:s.times,"onUpdate:modelValue":a[1]||(a[1]=n=>s.times=n),type:"daterange",editable:!1,format:"YYYY-MM-DD","value-format":"YYYY-MM-DD","range-separator":"-","start-placeholder":"开始时间","end-placeholder":"结束时间"},null,8,["modelValue"])]),_:1})]),_:1}),e(r,{span:7},{default:t(()=>[e(f,{class:"btn"},{default:t(()=>[i("div",I,[e(k,{type:"primary",onClick:M},{default:t(()=>a[3]||(a[3]=[S("查询")])),_:1}),e(k,{onClick:w},{default:t(()=>a[4]||(a[4]=[S("重置")])),_:1})])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),e(T,{class:"tab-card mt-8"},{header:t(()=>[e(E,{modelValue:d.value,"onUpdate:modelValue":a[2]||(a[2]=n=>d.value=n),onTabChange:j},{default:t(()=>[e(x,{name:"1",label:"待审核列表"}),e(x,{name:"2",label:"审核记录"})]),_:1},8,["modelValue"])]),default:t(()=>[e(A,{ref_key:"tableListRef",ref:_,column:d.value==="1"?Y:O,data:v.value,total:y.value,onGetTableData:p},{auditStatusName:t(({scope:n})=>[i("div",J,[i("span",{class:N(`dot mr-4 ${n.row.auditStatus===1?"bg-warning":n.row.auditStatus===2?"bg-success":"bg-danger"}`)},null,2),i("span",{class:N(`${n.row.auditStatus===1?"text-warning":n.row.auditStatus===2?"text-success":"text-danger"}`)},D(n.row.auditStatusName),3),n.row.auditStatus===3?(V(),C(z,{key:0,content:n.row.auditMessage,placement:"bottom",effect:"light"},{default:t(()=>[e(U,{class:"ml-4"},{default:t(()=>[e(P)]),_:1})]),_:2},1032,["content"])):F("",!0)])]),action:t(({scope:n})=>[i("a",{onClick:Z=>l.$router.push({name:"planApproveDetail",query:{id:n.row.id}})},D(d.value==="1"?"审核":"查看"),9,K)]),_:1},8,["column","data","total"])]),_:1})]),_:1})]),_:1})}}});export{le as default};