Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

2 Zeilen
4.5KB

  1. import{E}from"./index.c05b3fd0.js";import{l as R}from"./performanceApprove.969ff3ea.js";import{d as W,r as m,B as q,b as F,c as o,e as V,G as C,i as t,h as e,g as i,j as S,n as N,t as D,k as Z,Z as c}from"./index.1cbb0c88.js";const H={class:"flex"},I={class:"flex items-center"},J=["onClick"],K=W({name:"evaluatePlanApprove"}),le=Object.assign(K,{setup(Q){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:l=>c("span",l.target.split(",").map(a=>g[a]).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:l=>c("span",b[l.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:l=>c("span",l.target.split(",").map(a=>g[a]).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:l=>c("span",b[l.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(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()},j=l=>{s.regionCode=l.regionLevel===3?l.regionCode:void 0,_.value.pageParams.pageNumber=1,p()},B=l=>{d.value=l,w()};return(l,a)=>{const r=o("el-col"),u=o("el-input"),f=o("el-form-item"),$=o("el-date-picker"),k=o("el-button"),h=o("el-row"),G=o("el-form"),T=o("el-card"),x=o("el-tab-pane"),L=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(E,{onGetTree:j})]),_:1}),e(r,{span:20},{default:t(()=>[e(T,{class:"w-full search"},{default:t(()=>[e(G,{model:s,size:"small","label-suffix":":"},{default:t(()=>[e(h,{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":a[0]||(a[0]=n=>s.name=n),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($,{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":"\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(k,{type:"primary",onClick:M},{default:t(()=>a[3]||(a[3]=[S("\u67E5\u8BE2")])),_:1}),e(k,{onClick:w},{default:t(()=>a[4]||(a[4]=[S("\u91CD\u7F6E")])),_:1})])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),e(T,{class:"tab-card mt-8"},{header:t(()=>[e(L,{modelValue:d.value,"onUpdate:modelValue":a[2]||(a[2]=n=>d.value=n),onTabChange:B},{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(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",I,[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"])):Z("",!0)])]),action:t(({scope:n})=>[i("a",{onClick:X=>l.$router.push({name:"planApproveDetail",query:{id:n.row.id}})},D(d.value==="1"?"\u5BA1\u6838":"\u67E5\u770B"),9,J)]),_:1},8,["column","data","total"])]),_:1})]),_:1})]),_:1})}}});export{le as default};