import{_ as q,g as L,d as M}from"./EditDialog.vue_vue_type_script_setup_true_lang.c1bf74f7.js";import{A as R}from"./index.1d26a072.js";import{d as $,r as c,b as D,p as j,c as p,at as O,e as C,f as G,g as t,h as a,i as s,u as n,w as H,k as B,m as l,t as o,q as J,A as K,F as Q,y,N as W,E as X,R as Y,S as Z,_ as w}from"./index.0308b213.js";import"./install.524ae6f2.js";import"./useAgent.c0cb1751.js";import"./list.5526c7ef.js";const u=g=>(Y("data-v-8205dd4f"),g=g(),Z(),g),ee={class:"filter-form"},te=l("\u67E5\u8BE2"),le={class:"data"},ne={class:"operation-container"},ae={class:"operation-btn"},oe=l("\u6DFB\u52A0"),ue={class:"table"},se=u(()=>t("br",null,null,-1)),ie=u(()=>t("br",null,null,-1)),de=u(()=>t("br",null,null,-1)),_e=u(()=>t("br",null,null,-1)),ce=u(()=>t("br",null,null,-1)),re=u(()=>t("br",null,null,-1)),pe=u(()=>t("br",null,null,-1)),me=u(()=>t("br",null,null,-1)),ge=u(()=>t("br",null,null,-1)),fe=u(()=>t("br",null,null,-1)),he=u(()=>t("br",null,null,-1)),be=u(()=>t("br",null,null,-1)),ve={class:"table-operation-btn"},Ee={class:"top"},Fe=l("\u7F16\u8F91"),De=l("\u5220\u9664"),Ce={class:"bottom"},ye={class:"pagination"},xe=$({setup(g){let E=c(!1);const i=D({page:1,limit:10,customer_number:""});D({store:[]});const f=D({list:[],count:0});c([]);const m=()=>{E.value=!0,L(i).then(_=>{f.list=_.list,f.count=_.count,E.value=!1})};m(),c(!1),c(!1),j(()=>[i.page,i.limit],()=>{m()});const A=()=>{m()};let r=c(!1),h=c(!1),b=c(0);const k=()=>{b.value=0,h.value=!0,y(()=>{r.value=!0})},V=_=>{b.value=_,h.value=!0,y(()=>{r.value=!0})},z=()=>{b.value=0,y(()=>{h.value=!1}),m()},S=_=>{W.alert("\u786E\u5B9A\u9700\u8981\u5220\u9664\u6570\u636E\u5417?","\u63D0\u793A",{confirmButtonText:"\u786E\u8BA4",showCancelButton:!0,cancelButtonText:"\u53D6\u6D88"}).then(()=>{M({id:_}).then(()=>{X({message:"\u5220\u9664\u6210\u529F",type:"success"}),m()})}).catch(()=>{})};return(_,d)=>{const x=p("el-form-item"),v=p("el-button"),I=p("el-form"),F=p("el-table-column"),N=p("el-table"),T=p("el-pagination"),U=O("loading");return C(),G(Q,null,[t("div",ee,[a(I,{model:n(i),"label-width":"90px"},{default:s(()=>[a(x,{class:"tn-el-form-item",label:"\u4EE3\u7406\u533A\u57DF"},{default:s(()=>[a(n(R),{modelValue:n(i).agentid,"onUpdate:modelValue":d[0]||(d[0]=e=>n(i).agentid=e)},null,8,["modelValue"])]),_:1}),a(x,null,{default:s(()=>[a(v,{class:"tn-el-form-item--item tn-button tn-button--blue",onClick:A},{default:s(()=>[te]),_:1})]),_:1})]),_:1},8,["model"])]),t("div",le,[t("div",ne,[t("div",ae,[a(v,{class:"btn",type:"primary",onClick:k},{default:s(()=>[oe]),_:1})])]),t("div",ue,[H((C(),B(N,{data:n(f).list},{default:s(()=>[a(F,{label:"\u672C\u5E73\u53F0"},{default:s(({row:e})=>[l(" \u5E73\u53F0id:"+o(e.uniacid),1),se,l(" \u5E73\u53F0\u540D\u79F0:"+o(e.account_name),1),ie,l(" \u4EE3\u7406id:"+o(e.agentid),1),de,l(" \u4EE3\u7406\u540D\u79F0:"+o(e.agent_title),1),_e,l(" \u9A91\u624Bid:"+o(e.deliveryer_id),1),ce,l(" \u9A91\u624B\u540D\u79F0:"+o(e.deliveryer_title),1),re]),_:1}),a(F,{label:"\u6620\u5C04\u5E73\u53F0"},{default:s(({row:e})=>[l(" \u5E73\u53F0id:"+o(e.mapping_uniacid),1),pe,l(" \u5E73\u53F0\u540D\u79F0:"+o(e.mapping_account_name),1),me,l(" \u4EE3\u7406id:"+o(e.mapping_agentid),1),ge,l(" \u4EE3\u7406\u540D\u79F0:"+o(e.mapping_agent_title),1),fe,l(" \u9A91\u624Bid:"+o(e.mapping_deliveryer_id),1),he,l(" \u9A91\u624B\u540D\u79F0:"+o(e.mapping_deliveryer_title),1),be]),_:1}),a(F,{fixed:"right",label:"\u64CD\u4F5C",width:"290px"},{default:s(({row:e})=>[t("div",ve,[t("div",Ee,[a(v,{size:"small",type:"primary",onClick:P=>V(e.id)},{default:s(()=>[Fe]),_:2},1032,["onClick"]),a(v,{size:"small",type:"danger",onClick:P=>S(e.id)},{default:s(()=>[De]),_:2},1032,["onClick"])])])]),_:1})]),_:1},8,["data"])),[[U,n(E)]])])]),t("div",Ce,[t("div",ye,[a(T,{currentPage:n(i).page,"onUpdate:currentPage":d[1]||(d[1]=e=>n(i).page=e),"page-size":n(i).limit,"onUpdate:page-size":d[2]||(d[2]=e=>n(i).limit=e),"page-sizes":[10,20,30,40],layout:"total, sizes, prev, pager, next, jumper",total:n(f).count},null,8,["currentPage","page-size","total"])])]),n(h)?(C(),B(q,{key:0,modelValue:n(r),"onUpdate:modelValue":d[3]||(d[3]=e=>J(r)?r.value=e:r=e),id:n(b),onOnClose:z},null,8,["modelValue","id"])):K("",!0)],64)}}});const Ie=w(xe,[["__scopeId","data-v-8205dd4f"]]);export{Ie as default};
