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.6KB

  1. import{E as X}from"./index-29b4120c.js";import{r as m,y as F,a as R,$ as j,o as q,b as p,c as _,L as b,h as a,u as c,f as e,j as z,d as W,F as $,H,E as J,e as h,i as V,t as K,k as Q}from"./index-dd5fae99.js";import{a as Y}from"./expertVerify-436f4e27.js";import{g as N,a as Z}from"./getIsShowRegionTree-21a24141.js";const ee={class:"flex"},ae=["onClick"],te=Q({name:"expertVerify"}),se=Object.assign(te,{setup(le){const d=m(),x=F(),t=R({expertName:void 0,companyName:void 0,expertType:void 0,applyStatusList:["pending_review"],maxDeclareAmount:void 0,maxApprovalAmount:void 0}),v=m(0),D=R([{label:"序号",type:"index",width:"60"},{label:"专家姓名",key:"name",prop:"name",minWidth:"80",showOverflowTooltip:!0},{label:"工作单位",key:"company",prop:"company",minWidth:"150",showOverflowTooltip:!0},{label:"手机号码",key:"phoneNo",prop:"phoneNo",width:"120"},{label:"专家类型",key:"expertType",prop:"expertType",width:"80",render:o=>{var l;return j("span",((l=o==null?void 0:o.expertType)==null?void 0:l[0].dictionaryName)||"-")}},{label:"报名时间",key:"applyTime",prop:"applyTime",width:"180"},{label:"操作",slot:"action",width:"200",fixed:"right"}]),g=m([]),w=m(),I=o=>{t.expertRegionInfo={regionCode:o.regionCode,regionLevel:o.regionLevel},d.value.pageParams.pageNumber=1,s()},s=async(o=d.value.pageParams)=>{var r,u;const l=await Y({...o,...t,year:t.year*1||void 0,maxDeclareAmount:t.maxDeclareAmount*1||void 0,maxApprovalAmount:t.maxApprovalAmount*1||void 0,startTime:((r=t.times)==null?void 0:r[0])||void 0,endTime:((u=t.times)==null?void 0:u[1])||void 0,areaCode:w.value||void 0});g.value=l.data.records,v.value=l.data.total},i=m("待审核"),C=()=>{s()},M=()=>{t.expertName=void 0,t.companyName=void 0,t.expertType=void 0,t.maxDeclareAmount=void 0,t.maxApprovalAmount=void 0,d.value.pageParams.pageNumber=1,d.value.pageParams.pageSize=10,s()},P=o=>{i.value==="待审核"?x.push({name:"expertVerifyAction",query:{applyId:o.id,applyType:o.applyType}}):x.push({name:"verifyDetail",query:{applyId:o.id}})},S=({props:{name:o}})=>{o==="待审核"?(t.applyStatusList=["pending_review"],s()):(t.applyStatusList=["passed","refused","revoked"],s())};return q(()=>{N(["SUPER_ADMIN","REGION_MANAGER","EXPERT_ADMIN"])||s()}),(o,l)=>{const r=p("el-col"),u=p("el-input"),f=p("el-form-item"),G=p("el-option"),L=p("el-select"),y=p("el-row"),A=p("el-button"),U=p("el-form"),T=p("el-card"),E=p("el-tab-pane"),O=p("el-tabs"),B=p("table-list");return _(),b(y,null,{default:a(()=>[c(N)(["SUPER_ADMIN","REGION_MANAGER","EXPERT_ADMIN"])?(_(),b(r,{key:0,style:{"padding-right":"16px"},span:4},{default:a(()=>[e(X,{params:c(Z)({SUPER_ADMIN:!1,REGION_MANAGER:!1,EXPERT_ADMIN:!1}),onGetTree:I},null,8,["params"])]),_:1})):z("",!0),e(r,{span:c(N)(["SUPER_ADMIN","REGION_MANAGER","EXPERT_ADMIN"])?20:24},{default:a(()=>[e(T,{class:"w-full search"},{default:a(()=>[e(U,{model:t,size:"small","label-suffix":":"},{default:a(()=>[e(y,{gutter:16,class:"mb-16"},{default:a(()=>[e(r,{span:8},{default:a(()=>[e(f,{label:"专家姓名"},{default:a(()=>[e(u,{modelValue:t.expertName,"onUpdate:modelValue":l[0]||(l[0]=n=>t.expertName=n),placeholder:"请输入"},null,8,["modelValue"])]),_:1})]),_:1}),e(r,{span:8},{default:a(()=>[e(f,{label:"工作单位"},{default:a(()=>[e(u,{modelValue:t.companyName,"onUpdate:modelValue":l[1]||(l[1]=n=>t.companyName=n),placeholder:"请输入"},null,8,["modelValue"])]),_:1})]),_:1}),e(r,{span:8},{default:a(()=>[e(f,{label:"专家类型"},{default:a(()=>[e(L,{modelValue:t.expertType,"onUpdate:modelValue":l[2]||(l[2]=n=>t.expertType=n),placeholder:"全部",class:"w-full","value-key":"dictionaryCode"},{default:a(()=>[(_(!0),W($,null,H(c(J).dictStore.expertTypeDict,(n,k)=>(_(),b(G,{key:k,label:n.dictionaryName,value:n},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1}),e(y,{gutter:16},{default:a(()=>[e(r,{span:24},{default:a(()=>[e(f,{class:"btn"},{default:a(()=>[h("div",ee,[e(A,{type:"primary",onClick:C},{default:a(()=>l[4]||(l[4]=[V("查询")])),_:1}),e(A,{onClick:M},{default:a(()=>l[5]||(l[5]=[V("重置")])),_:1})])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),e(T,{class:"w-full mt-8 tab-card"},{header:a(()=>[e(O,{modelValue:i.value,"onUpdate:modelValue":l[3]||(l[3]=n=>i.value=n),class:"demo-tabs",onTabClick:S},{default:a(()=>[e(E,{label:"待审核",name:"待审核"}),e(E,{label:"已审核",name:"已审核"})]),_:1},8,["modelValue"])]),default:a(()=>[e(B,{ref_key:"tableListRef",ref:d,column:D,data:g.value,total:v.value,onGetTableData:s},{action:a(({scope:n})=>[h("a",{onClick:k=>P(n.row)},K(i.value==="待审核"?"处理":"详情"),9,ae)]),_:1},8,["column","data","total"])]),_:1})]),_:1},8,["span"])]),_:1})}}});export{se as default};