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.eae9bae1.js";import{d as F,r as m,y as j,b as R,Z as q,o as z,c as p,e as _,G as b,i as a,u as c,h as e,k as W,f as H,F as Z,H as $,B as J,g as h,j as V,t as K}from"./index.13afb401.js";import{a as Q}from"./expertVerify.d91d7dc4.js";import{g as N,a as Y}from"./getIsShowRegionTree.5f31a4ed.js";const ee={class:"flex"},ae=["onClick"],te=F({name:"expertVerify"}),se=Object.assign(te,{setup(le){const d=m(),x=j(),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:"\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:o=>{var l;return q("span",((l=o==null?void 0:o.expertType)==null?void 0:l[0].dictionaryName)||"-")}},{label:"\u62A5\u540D\u65F6\u95F4",key:"applyTime",prop:"applyTime",width:"180"},{label:"\u64CD\u4F5C",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 Q({...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("\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=o=>{i.value==="\u5F85\u5BA1\u6838"?x.push({name:"expertVerifyAction",query:{applyId:o.id,applyType:o.applyType}}):x.push({name:"verifyDetail",query:{applyId:o.id}})},G=({props:{name:o}})=>{o==="\u5F85\u5BA1\u6838"?(t.applyStatusList=["pending_review"],s()):(t.applyStatusList=["passed","refused","revoked"],s())};return z(()=>{N(["SUPER_ADMIN","REGION_MANAGER","EXPERT_ADMIN"])||s()}),(o,l)=>{const r=p("el-col"),u=p("el-input"),f=p("el-form-item"),S=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(Y)({SUPER_ADMIN:!1,REGION_MANAGER:!1,EXPERT_ADMIN:!1}),onGetTree:I},null,8,["params"])]),_:1})):W("",!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:"\u4E13\u5BB6\u59D3\u540D"},{default:a(()=>[e(u,{modelValue:t.expertName,"onUpdate:modelValue":l[0]||(l[0]=n=>t.expertName=n),placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),e(r,{span:8},{default:a(()=>[e(f,{label:"\u5DE5\u4F5C\u5355\u4F4D"},{default:a(()=>[e(u,{modelValue:t.companyName,"onUpdate:modelValue":l[1]||(l[1]=n=>t.companyName=n),placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),e(r,{span:8},{default:a(()=>[e(f,{label:"\u4E13\u5BB6\u7C7B\u578B"},{default:a(()=>[e(L,{modelValue:t.expertType,"onUpdate:modelValue":l[2]||(l[2]=n=>t.expertType=n),placeholder:"\u5168\u90E8",class:"w-full","value-key":"dictionaryCode"},{default:a(()=>[(_(!0),H(Z,null,$(c(J).dictStore.expertTypeDict,(n,k)=>(_(),b(S,{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("\u67E5\u8BE2")])),_:1}),e(A,{onClick:M},{default:a(()=>l[5]||(l[5]=[V("\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":l[3]||(l[3]=n=>i.value=n),class:"demo-tabs",onTabClick:G},{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:D,data:g.value,total:v.value,onGetTableData:s},{action:a(({scope:n})=>[h("a",{onClick:k=>P(n.row)},K(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};