Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

2 lignes
4.5KB

  1. import{E as G}from"./index.edcc92b7.js";import{l as R}from"./performanceApprove.5b97f103.js";import{d as W,r as m,D as q,b as F,c as n,e as V,I as C,i as t,h as e,g as i,j as S,n as D,t as N,k as I,a0 as c}from"./index.622ee9e7.js";const H={class:"flex"},J={class:"flex items-center"},K=["onClick"],Q=W({name:"evaluatePlanApprove"}),le=Object.assign(Q,{setup(X){const d=m("1"),{operationTypeOptions:b}=q.dictStore.globalDicts||{},s=F({name:void 0,times:void 0}),g={1:"\u9879\u76EE",2:"\u5E94\u7528"},Y=[{label:"\u5E8F\u53F7",type:"index",width:"60"},{label:"\u8BA1\u5212\u540D\u79F0",key:"name",prop:"name"},{label:"\u8BC4\u4EF7\u5BF9\u8C61",key:"target",prop:"target",render:a=>c("span",a.target.split(",").map(o=>g[o]).join("\uFF0C")),width:100},{label:"\u63D0\u4EA4\u5BA1\u6838\u65F6\u95F4",key:"createOn",prop:"createOn"},{label:"\u5BA1\u6838\u64CD\u4F5C",key:"operationType",prop:"operationType",render:a=>c("span",b[a.operationType]||"-")},{label:"\u64CD\u4F5C",slot:"action",fixed:"right",width:80}],O=[{label:"\u5E8F\u53F7",type:"index",width:"60"},{label:"\u8BA1\u5212\u540D\u79F0",key:"name",prop:"name"},{label:"\u8BC4\u4EF7\u5BF9\u8C61",key:"target",prop:"target",render:a=>c("span",a.target.split(",").map(o=>g[o]).join("\uFF0C")),width:100},{label:"\u63D0\u4EA4\u5BA1\u6838\u65F6\u95F4",key:"createOn",prop:"createOn"},{label:"\u5BA1\u6838\u64CD\u4F5C",key:"operationType",prop:"operationType",render:a=>c("span",b[a.operationType]||"-")},{label:"\u5BA1\u6838\u72B6\u6001",slot:"auditStatusName",prop:"auditStatusName"},{label:"\u64CD\u4F5C",slot:"action",fixed:"right",width:80}],y=m(0),v=m([]),_=m(),p=async(a=_.value.pageParams)=>{var r,u;const o=await R({...a,...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=o.data.records,y.value=o.data.total},M=()=>{p()},h=()=>{s.name=void 0,s.times=void 0,p()},j=a=>{s.regionCode=a.regionLevel===3?a.regionCode:void 0,_.value.pageParams.pageNumber=1,p()},$=a=>{d.value=a,h()};return(a,o)=>{const r=n("el-col"),u=n("el-input"),f=n("el-form-item"),B=n("el-date-picker"),w=n("el-button"),k=n("el-row"),L=n("el-form"),T=n("el-card"),x=n("el-tab-pane"),P=n("el-tabs"),U=n("Warning"),z=n("el-icon"),A=n("el-tooltip"),E=n("table-list");return V(),C(k,null,{default:t(()=>[e(r,{style:{"padding-right":"16px"},span:4},{default:t(()=>[e(G,{onGetTree:j})]),_:1}),e(r,{span:20},{default:t(()=>[e(T,{class:"w-full search"},{default:t(()=>[e(L,{model:s,size:"small","label-suffix":":"},{default:t(()=>[e(k,{gutter:16},{default:t(()=>[e(r,{span:8},{default:t(()=>[e(f,{label:"\u8BA1\u5212\u540D\u79F0"},{default:t(()=>[e(u,{modelValue:s.name,"onUpdate:modelValue":o[0]||(o[0]=l=>s.name=l),placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),e(r,{span:9},{default:t(()=>[e(f,{label:"\u521B\u5EFA\u65F6\u95F4"},{default:t(()=>[e(B,{modelValue:s.times,"onUpdate:modelValue":o[1]||(o[1]=l=>s.times=l),type:"daterange",editable:!1,format:"YYYY-MM-DD","value-format":"YYYY-MM-DD","range-separator":"-","start-placeholder":"\u5F00\u59CB\u65F6\u95F4","end-placeholder":"\u7ED3\u675F\u65F6\u95F4"},null,8,["modelValue"])]),_:1})]),_:1}),e(r,{span:7},{default:t(()=>[e(f,{class:"btn"},{default:t(()=>[i("div",H,[e(w,{type:"primary",onClick:M},{default:t(()=>[S("\u67E5\u8BE2")]),_:1}),e(w,{onClick:h},{default:t(()=>[S("\u91CD\u7F6E")]),_:1})])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),e(T,{class:"tab-card mt-8"},{header:t(()=>[e(P,{modelValue:d.value,"onUpdate:modelValue":o[2]||(o[2]=l=>d.value=l),onTabChange:$},{default:t(()=>[e(x,{name:"1",label:"\u5F85\u5BA1\u6838\u5217\u8868"}),e(x,{name:"2",label:"\u5BA1\u6838\u8BB0\u5F55"})]),_:1},8,["modelValue"])]),default:t(()=>[e(E,{ref_key:"tableListRef",ref:_,column:d.value==="1"?Y:O,data:v.value,total:y.value,onGetTableData:p},{auditStatusName:t(({scope:l})=>[i("div",J,[i("span",{class:D(`dot mr-4 ${l.row.auditStatus===1?"bg-warning":l.row.auditStatus===2?"bg-success":"bg-danger"}`)},null,2),i("span",{class:D(`${l.row.auditStatus===1?"text-warning":l.row.auditStatus===2?"text-success":"text-danger"}`)},N(l.row.auditStatusName),3),l.row.auditStatus===3?(V(),C(A,{key:0,content:l.row.auditMessage,placement:"bottom",effect:"light"},{default:t(()=>[e(z,{class:"ml-4"},{default:t(()=>[e(U)]),_:1})]),_:2},1032,["content"])):I("",!0)])]),action:t(({scope:l})=>[i("a",{onClick:Z=>a.$router.push({name:"planApproveDetail",query:{id:l.row.id}})},N(d.value==="1"?"\u5BA1\u6838":"\u67E5\u770B"),9,K)]),_:1},8,["column","data","total"])]),_:1})]),_:1})]),_:1})}}});export{le as default};