You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 lines
4.8KB

  1. import{E as X}from"./index.311d4c6f.js";import{d as F,r as m,A as j,b as k,a0 as q,o as z,c as p,e as _,I as b,i as a,u as f,h as e,k as W,f as J,F as $,J as H,D as K,g as R,j as D,t as Q}from"./index.121be81f.js";import{a as Y}from"./expertVerify.815bf711.js";import{g as N,a as Z}from"./getIsShowRegionTree.711795cd.js";const ee={class:"flex"},ae=["onClick"],te=F({name:"expertVerify"}),se=Object.assign(te,{setup(le){const d=m(),x=j(),t=k({expertName:void 0,companyName:void 0,expertType:void 0,applyStatusList:["pending_review"],maxDeclareAmount:void 0,maxApprovalAmount:void 0}),v=m(0),V=k([{label:"\u5E8F\u53F7",type:"index",width:"60"},{label:"\u4E13\u5BB6\u59D3\u540D",key:"name",prop:"name",minWidth:"80",showOverflowTooltip:!0},{label:"\u5DE5\u4F5C\u5355\u4F4D",key:"company",prop:"company",minWidth:"150",showOverflowTooltip:!0},{label:"\u624B\u673A\u53F7\u7801",key:"phoneNo",prop:"phoneNo",width:"120"},{label:"\u4E13\u5BB6\u7C7B\u578B",key:"expertType",prop:"expertType",width:"80",render:l=>{var o;return q("span",((o=l==null?void 0:l.expertType)==null?void 0:o[0].dictionaryName)||"-")}},{label:"\u62A5\u540D\u65F6\u95F4",key:"applyTime",prop:"applyTime",width:"180"},{label:"\u64CD\u4F5C",slot:"action",width:"200",fixed:"right"}]),g=m([]),I=m(),w=l=>{t.expertRegionInfo={regionCode:l.regionCode,regionLevel:l.regionLevel},d.value.pageParams.pageNumber=1,s()},s=async(l=d.value.pageParams)=>{var r,u;const o=await Y({...l,...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:I.value||void 0});g.value=o.data.records,v.value=o.data.total},i=m("\u5F85\u5BA1\u6838"),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=l=>{i.value==="\u5F85\u5BA1\u6838"?x.push({name:"expertVerifyAction",query:{applyId:l.id,applyType:l.applyType}}):x.push({name:"verifyDetail",query:{applyId:l.id}})},S=({props:{name:l}})=>{l==="\u5F85\u5BA1\u6838"?(t.applyStatusList=["pending_review"],s()):(t.applyStatusList=["passed","refused","revoked"],s())};return z(()=>{N(["SUPER_ADMIN","REGION_MANAGER","EXPERT_ADMIN"])||s()}),(l,o)=>{const r=p("el-col"),u=p("el-input"),c=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(()=>[f(N)(["SUPER_ADMIN","REGION_MANAGER","EXPERT_ADMIN"])?(_(),b(r,{key:0,style:{"padding-right":"16px"},span:4},{default:a(()=>[e(X,{params:f(Z)({SUPER_ADMIN:!1,REGION_MANAGER:!1,EXPERT_ADMIN:!1}),onGetTree:w},null,8,["params"])]),_:1})):W("",!0),e(r,{span:f(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(c,{label:"\u4E13\u5BB6\u59D3\u540D"},{default:a(()=>[e(u,{modelValue:t.expertName,"onUpdate:modelValue":o[0]||(o[0]=n=>t.expertName=n),placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),e(r,{span:8},{default:a(()=>[e(c,{label:"\u5DE5\u4F5C\u5355\u4F4D"},{default:a(()=>[e(u,{modelValue:t.companyName,"onUpdate:modelValue":o[1]||(o[1]=n=>t.companyName=n),placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),e(r,{span:8},{default:a(()=>[e(c,{label:"\u4E13\u5BB6\u7C7B\u578B"},{default:a(()=>[e(L,{modelValue:t.expertType,"onUpdate:modelValue":o[2]||(o[2]=n=>t.expertType=n),placeholder:"\u5168\u90E8",class:"w-full","value-key":"dictionaryCode"},{default:a(()=>[(_(!0),J($,null,H(f(K).dictStore.expertTypeDict,(n,h)=>(_(),b(G,{key:h,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(c,{class:"btn"},{default:a(()=>[R("div",ee,[e(A,{type:"primary",onClick:C},{default:a(()=>[D("\u67E5\u8BE2")]),_:1}),e(A,{onClick:M},{default:a(()=>[D("\u91CD\u7F6E")]),_: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":o[3]||(o[3]=n=>i.value=n),class:"demo-tabs",onTabClick:S},{default:a(()=>[e(E,{label:"\u5F85\u5BA1\u6838",name:"\u5F85\u5BA1\u6838"}),e(E,{label:"\u5DF2\u5BA1\u6838",name:"\u5DF2\u5BA1\u6838"})]),_:1},8,["modelValue"])]),default:a(()=>[e(B,{ref_key:"tableListRef",ref:d,column:V,data:g.value,total:v.value,onGetTableData:s},{action:a(({scope:n})=>[R("a",{onClick:h=>P(n.row)},Q(i.value==="\u5F85\u5BA1\u6838"?"\u5904\u7406":"\u8BE6\u60C5"),9,ae)]),_:1},8,["column","data","total"])]),_:1})]),_:1},8,["span"])]),_:1})}}});export{se as default};