2 lines
5.4 KiB
JavaScript
2 lines
5.4 KiB
JavaScript
import{o as j,O as w,w as K,P as O,L as G,I as H,Q as J}from"./element-plus.9c2fdfa8.js";import{_ as W}from"./index.vue_vue_type_script_setup_true_lang.261df48b.js";import{u as X}from"./vue-router.e2f4a118.js";import{u as Y}from"./usePaging.c22e2b6f.js";import{k,f as x,d as Z}from"./index.b57b84f0.js";import{c as ee,s as te}from"./consumer.ed84615b.js";import{p as ue}from"./company.da0ac536.js";import{d as I,$ as oe,r as B,b8 as ae,a4 as se,af as ne,o,c as F,U as u,L as t,M as l,u as a,K as n,R as r,T as re,Q as _,k as q,a as D,bf as ie,be as le}from"./@vue.53f8d7c3.js";import"./@vueuse.038954e7.js";import"./@element-plus.37f92579.js";import"./lodash-es.29c53eac.js";import"./dayjs.e873ead7.js";import"./@amap.8a62addd.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./lodash.5512e984.js";import"./axios.92474d72.js";import"./pinia.bd103f5d.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.ee641d3d.js";import"./color.cbc2f3a9.js";import"./clone.7fddbad2.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.a7d78d4d.js";import"./ms.a9ae1d6d.js";import"./nprogress.f73355d0.js";import"./vue-clipboard3.dca5bca3.js";import"./clipboard.16e4491b.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.9cf3e967.js";const ce=f=>(ie("data-v-d35ef51e"),f=f(),le(),f),pe=ce(()=>D("h1",null,"\u91CD\u8981\u63D0\u9192",-1)),me={key:0,class:"content"},de={key:1,class:"content"},_e={class:"btn_menu"},fe={class:"flex justify-end mt-4"},Ee=I({name:"consumerLists"}),ye=I({...Ee,setup(f){const g=X(),b=oe({phone:"",nickname:"",status:""});g.query.company_id&&(b.company_id=g.query.company_id);const c=B(0),i=B(!1),E=B(!1),y=()=>{i.value=!1,E.value=!1},L=()=>{console.log(c.value),ee({id:c.value}).then(()=>{x.msgSuccess("\u53D1\u9001\u6210\u529F")}),y()},z=()=>{te({id:c.value}).then(S=>{x.msgSuccess("\u53D1\u9001\u6210\u529F")}),y()},{pager:p,getLists:v,resetPage:Ce,resetParams:Fe}=Y({fetchFun:ue,params:b});return ae(()=>{v()}),v(),(S,C)=>{const N=j,m=w,h=se("router-link"),s=K,R=O,T=G,U=W,$=H,d=ne("perms"),M=J;return o(),F("div",null,[u($,{class:"!border-none mt-4",shadow:"never"},{default:t(()=>[l((o(),n(R,{size:"large",data:a(p).lists},{default:t(()=>[u(m,{label:"\u5934\u50CF","min-width":"100"},{default:t(({row:e})=>[u(N,{src:e.avatar,size:50},null,8,["src"])]),_:1}),u(m,{label:"\u8D26\u53F7",prop:"phone","min-width":"120"}),u(m,{label:"\u59D3\u540D",prop:"nickname","min-width":"100"}),u(m,{label:"\u8054\u7CFB\u65B9\u5F0F",prop:"phone","min-width":"120"}),u(m,{label:"\u64CD\u4F5C","min-width":"200",align:"center",fixed:"right"},{default:t(({row:e})=>{var A,V,P;return[l((o(),n(s,{type:"primary",link:""},{default:t(()=>[u(h,{to:{path:a(k)("company/userdetail"),query:{id:e.id}}},{default:t(()=>[r(" \u8BE6\u60C5 ")]),_:2},1032,["to"])]),_:2},1024)),[[d,["user.user/detail"]]]),e.is_contract==0?(o(),F(re,{key:0},[e.contract?_("",!0):l((o(),n(s,{key:0,type:"primary",link:""},{default:t(()=>[u(h,{to:{path:a(k)("user.user/detail"),query:{id:e.id,mode:"initiate"}}},{default:t(()=>[r(" \u751F\u6210\u5408\u540C ")]),_:2},1032,["to"])]),_:2},1024)),[[d,["user.user/launch"]]]),((A=e.contract)==null?void 0:A.check_status)==1?l((o(),n(s,{key:1,type:"primary",link:""},{default:t(()=>[u(h,{to:{path:a(k)("user.user/detail"),query:{id:e.id,mode:"uplode",mdoeid:e.contract.id}}},{default:t(()=>[r(" \u4E0A\u4F20\u5408\u540C ")]),_:2},1032,["to"])]),_:2},1024)),[[d,["user.user/uplode"]]]):_("",!0),((V=e.contract)==null?void 0:V.check_status)==2?l((o(),n(s,{key:2,type:"primary",link:"",onClick:Q=>{i.value=!0,E.value=!0,c.value=e.id}},{default:t(()=>[r("\u53D1\u9001\u5408\u540C")]),_:2},1032,["onClick"])),[[d,["user.user/launch"]]]):_("",!0),e.is_contract==0&&((P=e.contract)==null?void 0:P.check_status)==3?l((o(),n(s,{key:3,type:"primary",link:"",onClick:Q=>{i.value=!0,c.value=e.id}},{default:t(()=>[r("\u91CD\u65B0\u53D1\u9001\u77ED\u4FE1")]),_:2},1032,["onClick"])),[[d,["user.user/launch"]]]):_("",!0)],64)):_("",!0)]}),_:1})]),_:1},8,["data"])),[[M,a(p).loading]]),u(T,{modelValue:a(i),"onUpdate:modelValue":C[0]||(C[0]=e=>q(i)?i.value=e:null),onClose:y},{default:t(()=>[pe,a(E)?(o(),F("div",me," \u8BF7\u786E\u8BA4\u4FE1\u606F\u662F\u5426\u6709\u8BEF,\u53D1\u9001\u5408\u540C,\u8BF7\u786E\u8BA4\u4FE1\u606F\u662F\u5426\u6709\u8BEF,\u53D1\u9001\u7535\u5B50\u5408\u540C\u540E\u77ED\u65F6\u95F4\u5185\u5C06\u4E0D\u53EF\u518D\u6B21\u53D1\u9001. ")):(o(),F("div",de," \u786E\u8BA4\u7B7E\u7EA6\u77ED\u4FE1\u5C06\u572860\u79D2\u540E\u53D1\u9001,\u8BF7\u6CE8\u610F\u67E5\u6536,\u5E76\u70B9\u51FB\u77ED\u4FE1\u94FE\u63A5\u8FDB\u884C\u7EBF\u4E0A\u5408\u540C\u7B7E\u7EA6 ")),D("p",_e,[a(E)?(o(),n(s,{key:0,type:"primary",size:"large",onClick:L},{default:t(()=>[r("\u786E\u8BA4\u521B\u5EFA")]),_:1})):(o(),n(s,{key:1,type:"primary",size:"large",onClick:z},{default:t(()=>[r("\u786E\u8BA4")]),_:1})),u(s,{type:"info",size:"large",onClick:y},{default:t(()=>[r("\u8FD4\u56DE")]),_:1})])]),_:1},8,["modelValue"]),D("div",fe,[u(U,{modelValue:a(p),"onUpdate:modelValue":C[1]||(C[1]=e=>q(p)?p.value=e:null),onChange:a(v)},null,8,["modelValue","onChange"])])]),_:1})])}}});const st=Z(ye,[["__scopeId","data-v-d35ef51e"]]);export{st as default};
|