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
5.0KB

  1. import{d as z,G as X,D as j,A as F,b as T,r as y,o as W,c as r,e as x,I as b,i as e,u as p,h as t,k as J,f as H,F as K,J as Q,g as d,j as N,x as Y}from"./index.d340e473.js";import{E as Z}from"./index.af6ebbed.js";import{c as ee,d as te}from"./expertStore.5c886727.js";import{g as E,a as ae}from"./getIsShowRegionTree.26f6f682.js";const oe={class:"flex"},le={class:"flex justify-between"},ne=d("span",null,"\u5217\u8868",-1),re=["onClick"],se=["onClick"],de=["onClick"],ie=["onClick"],pe=z({name:"expertStore"}),ye=Object.assign(pe,{setup(ue){const{dictList:h}=X(j.dictStore),u=F(),{proxy:v}=Y(),l=T({expertName:void 0,company:void 0,expertTypeDictionaryCode:void 0,status:void 0,maxDeclareAmount:void 0,maxApprovalAmount:void 0}),c=y(),k=y(0),D=T([{label:"\u5E8F\u53F7",type:"index",width:"60"},{label:"\u4E13\u5BB6\u59D3\u540D",key:"expertName",prop:"expertName",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[0].dictionaryName",prop:"expertType[0].dictionaryName",width:"80"},{label:"\u521B\u5EFA\u65F6\u95F4",key:"createTime",prop:"createTime",width:"180"},{label:"\u64CD\u4F5C",slot:"action",width:"240",fixed:"right"}]),w=y([]),I=y(),P=a=>{l.intentionRegionInfo={regionCode:a.regionCode,regionLevel:a.regionLevel},c.value.pageParams.pageNumber=1,i()},i=async(a=c.value.pageParams)=>{const n=await ee({...a,...l,year:l.year*1||void 0,areaCode:I.value||void 0});w.value=n.data.records,k.value=n.data.total},M=()=>{i()},V=()=>{l.expertName=void 0,l.company=void 0,l.expertTypeDictionaryCode=void 0,c.value.pageParams.pageNumber=1,c.value.pageParams.pageSize=10,i()},C=a=>{a.userId?u.push({name:"addOrEditExpert",query:{id:a.userId}}):u.push({name:"addOrEditExpert"})},G=a=>{u.push({name:"expertDetail",query:{id:a.userId}})},O=a=>{u.push({name:"deputyActivityRecord",query:{id:a.userId,name:a.expertName}})},L=()=>{const a=new Date().getTime(),n=window.btoa(a),s=u.resolve({name:"expertEnroll",query:{time:n}});window.open(s.href,"_blank")},S=a=>{v.$messageBox.confirm(`\u786E\u5B9A\u8981\u5220\u9664${a.expertName}\u4E13\u5BB6\u5417?`,"\u63D0\u793A\uFF01",{type:"warning"}).then(async()=>{await te(a.userId),v.$message.success("\u5220\u9664\u6210\u529F"),i()})};return W(()=>{E(["SUPER_ADMIN","REGION_MANAGER","EXPERT_ADMIN"])||i()}),(a,n)=>{const s=r("el-col"),A=r("el-input"),_=r("el-form-item"),U=r("el-option"),$=r("el-select"),g=r("el-row"),f=r("el-button"),B=r("el-form"),R=r("el-card"),q=r("table-list");return x(),b(g,null,{default:e(()=>[p(E)(["SUPER_ADMIN","REGION_MANAGER","EXPERT_ADMIN"])?(x(),b(s,{key:0,style:{"padding-right":"16px"},span:4},{default:e(()=>[t(Z,{params:p(ae)({SUPER_ADMIN:!1,REGION_MANAGER:!1,EXPERT_ADMIN:!1}),onGetTree:P},null,8,["params"])]),_:1})):J("",!0),t(s,{span:p(E)(["SUPER_ADMIN","REGION_MANAGER","EXPERT_ADMIN"])?20:24},{default:e(()=>[t(R,{class:"w-full search"},{default:e(()=>[t(B,{model:l,size:"small","label-suffix":":"},{default:e(()=>[t(g,{gutter:16,class:"mb-16"},{default:e(()=>[t(s,{span:8},{default:e(()=>[t(_,{label:"\u4E13\u5BB6\u59D3\u540D"},{default:e(()=>[t(A,{modelValue:l.expertName,"onUpdate:modelValue":n[0]||(n[0]=o=>l.expertName=o),placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),t(s,{span:8},{default:e(()=>[t(_,{label:"\u5DE5\u4F5C\u5355\u4F4D"},{default:e(()=>[t(A,{modelValue:l.company,"onUpdate:modelValue":n[1]||(n[1]=o=>l.company=o),placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),t(s,{span:8},{default:e(()=>[t(_,{label:"\u4E13\u5BB6\u7C7B\u578B"},{default:e(()=>[t($,{modelValue:l.expertTypeDictionaryCode,"onUpdate:modelValue":n[2]||(n[2]=o=>l.expertTypeDictionaryCode=o),placeholder:"\u5168\u90E8",class:"w-full"},{default:e(()=>[(x(!0),H(K,null,Q(p(h)&&p(h).length&&p(h).find(o=>o.dictionaryName==="expert_type").dictionaryList,(o,m)=>(x(),b(U,{key:m,label:o.describe,value:o.dictionaryCode},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1}),t(g,null,{default:e(()=>[t(s,{span:24},{default:e(()=>[t(_,{class:"btn"},{default:e(()=>[d("div",oe,[t(f,{type:"primary",onClick:M},{default:e(()=>[N("\u67E5\u8BE2")]),_:1}),t(f,{onClick:V},{default:e(()=>[N("\u91CD\u7F6E")]),_:1})])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),t(R,{class:"w-full mt-8"},{header:e(()=>[d("div",le,[ne,d("div",null,[t(f,{type:"primary",plain:"",size:"small",icon:"Plus",onClick:C},{default:e(()=>[N("\u65B0\u589E\u4E13\u5BB6")]),_:1}),t(f,{type:"primary",size:"small",onClick:L},{default:e(()=>[N("\u4E13\u5BB6\u62A5\u540D")]),_:1})])])]),default:e(()=>[t(q,{ref_key:"tableListRef",ref:c,column:D,data:w.value,total:k.value,onGetTableData:i},{action:e(({scope:o})=>[d("a",{onClick:m=>C(o.row)},"\u7F16\u8F91",8,re),d("a",{onClick:m=>G(o.row)},"\u8BE6\u60C5",8,se),d("a",{onClick:m=>O(o.row)},"\u5C65\u804C\u8BB0\u5F55",8,de),d("a",{class:"text-danger",onClick:m=>S(o.row)},"\u5220\u9664",8,ie)]),_:1},8,["column","data","total"])]),_:1})]),_:1},8,["span"])]),_:1})}}});export{ye as default};