PageSourceSearch

https://mhtclouding.com/tongying/assets/index-D_GnBNTs.js

js mhtclouding.com collected 2026-10-02 16:02:58 UTC 6,573 bytes, 1 lines download raw bytes

1import{a as ce,u as de,r,M as pe,Q as me,C as fe,Y as T,d as s,F as B,o as u,c as h,G as p,P as F,f as n,h as a,x as i,l as _e,H as I,I as V,m as c,p as f,e as Q,A as z,N as ve,v as ye}from"./index-uGWb9Yh4.js";import{l as ge,b as he,d as be}from"./client--wdBgmOq.js";import{l as we}from"./level-5Cit4iud.js";/* empty css                                                              */const Ce={class:"app-container"},Ie=ve({name:"Client"}),Le=Object.assign(Ie,{setup(Ve){const{proxy:b}=ye(),k=ce();de();const D=r([]),E=r([]),S=r([]),x=r([]),O=r([]),R=r([]);r(!1);const U=r(!0),N=r(!0),q=r([]),G=r(!0),K=r(!0),P=r(0);r("");const M=pe({form:{},queryParams:{pageNum:1,pageSize:10,clientName:null,levelId:null,status:null,ownerUserId:null,creatorUserId:null,lastFollowUpTime:null,lastOrderTime:null,clientSource:null,flowToPoolReason:null,companyName:null,clientType:null,clientAddress:null,clientCode:null,mobile:null,wechatId:null,email:null}}),{queryParams:o,form:ke,rules:Se}=me(M);function v(){U.value=!0,ge(o.value).then(t=>{R.value=t.rows,P.value=t.total,U.value=!1})}function L(){o.value.pageNum=1,v()}function j(){b.resetForm("queryRef"),o.value.deptId=void 0,L()}function H(){he().then(t=>{D.value=t.data||[]})}function Y(t){q.value=t.map(l=>l.clientId),G.value=t.length!=1,K.value=!t.length}function J(){k.push("/client/clientinsert")}function W(t){const l=t.clientId;k.push({path:"/client/clientupdate",query:{clientId:l}})}function X(t){const l=t.clientId;k.push({path:"/client/clientInfo",query:{clientId:l}})}fe(()=>{T("customer_type").then(t=>{S.value=t.data}),T("client_plan").then(t=>{x.value=t.data}),T("client_source").then(t=>{O.value=t.data})});function Z(t){const l=t.clientId||q.value;b.$modal.confirm('是否确认删除客户编号为"'+l+'"的数据项?').then(function(){return be(l)}).then(()=>{v(),b.$modal.msgSuccess("删除成功")}).catch(()=>{})}function ee(){b.download("system/client/export",{...o.value},`client_${new Date().getTime()}.xlsx`)}function le(){we().then(t=>{E.value=t.rows})}const te=t=>{const l=S.value.find(y=>y.dictValue===t);return l?l.dictLabel:t},ne=t=>{const l=x.value.find(y=>y.dictValue===t);return l?l.dictLabel:t};return H(),le(),v(),(t,l)=>{const y=s("el-input"),_=s("el-form-item"),w=s("el-option"),C=s("el-select"),m=s("el-button"),ae=s("el-form"),$=s("el-col"),oe=s("right-toolbar"),ue=s("el-row"),d=s("el-table-column"),ie=s("el-table"),re=s("pagination"),g=B("hasPermi"),se=B("loading");return u(),h("div",Ce,[p(n(ae,{model:i(o),ref:"queryRef",inline:!0,"label-width":"68px"},{default:a(()=>[n(_,{label:"公司名称",prop:"companyName"},{default:a(()=>[n(y,{style:{width:"180px"},modelValue:i(o).companyName,"onUpdate:modelValue":l[0]||(l[0]=e=>i(o).companyName=e),placeholder:"请输入客户公司名称",clearable:"",onKeyup:_e(L,["enter"])},null,8,["modelValue"])]),_:1}),n(_,{label:"负责人",prop:"ownerUserId"},{default:a(()=>[n(C,{modelValue:i(o).ownerUserId,"onUpdate:modelValue":l[1]||(l[1]=e=>i(o).ownerUserId=e),style:{width:"180px"},placeholder:"请选择负责人"},{default:a(()=>[(u(!0),h(I,null,V(D.value,e=>(u(),c(w,{key:e.userId,label:e.nickName,value:e.userId},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),n(_,{label:"来源",prop:"clientSource"},{default:a(()=>[n(C,{modelValue:i(o).clientSource,"onUpdate:modelValue":l[2]||(l[2]=e=>i(o).clientSource=e),style:{width:"180px"},placeholder:"请选择客户来源"},{default:a(()=>[(u(!0),h(I,null,V(O.value,e=>(u(),c(w,{key:e.value,label:e.dictLabel,value:e.dictValue},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),n(_,{label:"客户进度",prop:"clientPlan"},{default:a(()=>[n(C,{modelValue:i(o).clientPlan,"onUpdate:modelValue":l[3]||(l[3]=e=>i(o).clientPlan=e),style:{width:"180px"},placeholder:"请选择客户进度"},{default:a(()=>[(u(!0),h(I,null,V(x.value,e=>(u(),c(w,{key:e.value,label:e.dictLabel,value:e.dictValue},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),n(_,{label:"类型",prop:"customerType"},{default:a(()=>[n(C,{modelValue:i(o).clientType,"onUpdate:modelValue":l[4]||(l[4]=e=>i(o).clientType=e),style:{width:"180px"},placeholder:"请选择客户类型"},{default:a(()=>[(u(!0),h(I,null,V(S.value,e=>(u(),c(w,{key:e.value,label:e.dictLabel,value:e.dictValue},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),n(_,null,{default:a(()=>[n(m,{type:"primary",icon:"Search",onClick:L},{default:a(()=>[f("搜索")]),_:1}),n(m,{icon:"Refresh",onClick:j},{default:a(()=>[f("重置")]),_:1})]),_:1})]),_:1},8,["model"]),[[F,N.value]]),n(ue,{gutter:10,class:"mb8"},{default:a(()=>[n($,{span:1.5},{default:a(()=>[p((u(),c(m,{type:"primary",plain:"",icon:"Plus",onClick:J},{default:a(()=>[f("新增")]),_:1})),[[g,["client:clientinsert:insert"]]])]),_:1}),n($,{span:1.5},{default:a(()=>[p((u(),c(m,{type:"warning",plain:"",icon:"Download",onClick:ee},{default:a(()=>[f("导出")]),_:1})),[[g,["system:client:export"]]])]),_:1}),n(oe,{showSearch:N.value,"onUpdate:showSearch":l[5]||(l[5]=e=>N.value=e),onQueryTable:v},null,8,["showSearch"])]),_:1}),p((u(),c(ie,{data:R.value,onSelectionChange:Y},{default:a(()=>[n(d,{type:"selection",width:"55",align:"center"}),n(d,{label:"公司名称",align:"center",prop:"companyName"}),n(d,{label:"客户编号",align:"center",prop:"clientCode"}),n(d,{label:"客户进度",align:"center"},{default:a(({row:e})=>[Q("span",null,z(ne(e.clientPlan)),1)]),_:1}),n(d,{label:"总订单金额",align:"center",prop:"aggregateAmount"}),n(d,{label:"来源",align:"center",prop:"clientSource"}),n(d,{label:"客户地址",align:"center",prop:"clientAddress"}),n(d,{label:"客户类型",align:"center"},{default:a(({row:e})=>[Q("span",null,z(te(e.clientType)),1)]),_:1}),n(d,{label:"操作",align:"center","class-name":"small-padding fixed-width"},{default:a(e=>[p((u(),c(m,{link:"",type:"primary",icon:"Edit",onClick:A=>W(e.row)},{default:a(()=>[f("修改")]),_:2},1032,["onClick"])),[[g,["system:client:edit"]]]),p((u(),c(m,{link:"",type:"primary",icon:"Grid",onClick:A=>X(e.row)},{default:a(()=>[f("详情")]),_:2},1032,["onClick"])),[[g,["system:clientInfo:list"]]]),p((u(),c(m,{link:"",type:"primary",icon:"Delete",onClick:A=>Z(e.row)},{default:a(()=>[f("删除")]),_:2},1032,["onClick"])),[[g,["system:client:remove"]]])]),_:1})]),_:1},8,["data"])),[[se,U.value]]),p(n(re,{total:P.value,page:i(o).pageNum,"onUpdate:page":l[6]||(l[6]=e=>
1i(o).pageNum=e),limit:i(o).pageSize,"onUpdate:limit":l[7]||(l[7]=e=>i(o).pageSize=e),onPagination:v},null,8,["total","page","limit"]),[[F,P.value>0]])])}}});export{Le as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.