import{aa as y,d as k,a6 as w,b as E,p as D,c as d,e as m,f as g,u as o,h as e,i as t,g as _,a2 as S,A as b,t as z,k as P,m as n,E as B,_ as U}from"./index.0308b213.js";import{u as N}from"./useInstance.233fbdde.js";import{A as q}from"./index.1d26a072.js";import{g as I,s as O}from"./other.947188b2.js";import"./install.524ae6f2.js";import"./useAgent.c0cb1751.js";import"./list.5526c7ef.js";const T=p=>y({url:"agent/merchant.complaint/lists",params:p}),j=p=>y({url:"agent/merchant.complaint/setComplaintStatus",method:"POST",data:p}),L={key:0,class:"filter-form"},M={style:{display:"flex"}},$=n("\u4E0D\u9650"),G=n("\u5DF2\u5904\u7406"),H=n("\u672A\u5904\u7406"),J=n("\u4E0D\u9650"),K=n("\u4E00\u5468\u5185"),Q=n("\u534A\u6708\u5185"),R=n("\u4E00\u6708\u5185"),W=n("\u4E09\u6708\u5185"),X={class:"data"},Y={class:"table"},Z={class:"store-name"},ee={key:0,class:"store-name"},te={key:1,class:"store-name"},ae={class:""},oe={class:"top"},le=n("\u8BBE\u4E3A\u5DF2\u5904\u7406"),se={class:"pagination"},ue=k({setup(p){N();const{OpPlatform:h}=w(),c=E({list:[],count:0}),l=E({page:1,limit:10,agentid:"",status:-1,days:0}),f=()=>{h.value==="agent"?T(l).then(u=>{c.list=u.list,c.count=u.count}):I(l).then(u=>{c.list=u.list,c.count=u.count})};f();const A=u=>{h.value==="agent"?j({id:u}).then(s=>{B({message:s.msg,type:"success"}),f()}):O({id:u}).then(s=>{B({message:s.msg,type:"success"}),f()})};return D(()=>l,()=>{f()},{deep:!0}),(u,s)=>{const C=d("el-form-item"),i=d("el-radio"),v=d("el-radio-group"),r=d("el-table-column"),V=d("el-button"),x=d("el-table"),F=d("el-pagination");return m(),g("div",null,[o(h)==="shangpu"?(m(),g("div",L,[e(o(S),{model:o(l),"label-width":"90px"},{default:t(()=>[e(C,{label:"\u9009\u62E9\u4EE3\u7406"},{default:t(()=>[_("div",M,[e(o(q),{modelValue:o(l).agentid,"onUpdate:modelValue":s[0]||(s[0]=a=>o(l).agentid=a)},null,8,["modelValue"])])]),_:1}),e(C,{label:"\u72B6\u6001"},{default:t(()=>[e(v,{modelValue:o(l).status,"onUpdate:modelValue":s[1]||(s[1]=a=>o(l).status=a)},{default:t(()=>[e(i,{border:!0,label:-1},{default:t(()=>[$]),_:1}),e(i,{border:!0,label:1},{default:t(()=>[G]),_:1}),e(i,{border:!0,label:0},{default:t(()=>[H]),_:1})]),_:1},8,["modelValue"])]),_:1}),e(C,{label:"\u65E5\u671F\u8303\u56F4"},{default:t(()=>[e(v,{modelValue:o(l).days,"onUpdate:modelValue":s[2]||(s[2]=a=>o(l).days=a)},{default:t(()=>[e(i,{border:!0,label:0},{default:t(()=>[J]),_:1}),e(i,{border:!0,label:7},{default:t(()=>[K]),_:1}),e(i,{border:!0,label:14},{default:t(()=>[Q]),_:1}),e(i,{border:!0,label:30},{default:t(()=>[R]),_:1}),e(i,{border:!0,label:90},{default:t(()=>[W]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model"])])):b("",!0),_("div",X,[_("div",Y,[e(x,{data:o(c).list},{default:t(()=>[e(r,{fixed:"",label:"\u6295\u8BC9\u5546\u5BB6",prop:"store_title",align:"center"}),e(r,{fixed:"",label:"\u6295\u8BC9\u4EBA\u624B\u673A\u53F7",prop:"mobile",align:"center"}),e(r,{fixed:"",label:"\u6295\u8BC9\u5185\u5BB9",prop:"title",align:"center"}),e(r,{label:"\u6240\u5C5E\u57CE\u5E02"},{default:t(a=>[_("div",Z,z(a.row.agent_title),1)]),_:1}),e(r,{label:"\u5904\u7406\u72B6\u6001"},{default:t(a=>[a.row.status==0?(m(),g("div",ee,"\u672A\u5904\u7406")):b("",!0),a.row.status==1?(m(),g("div",te,"\u5DF2\u5904\u7406")):b("",!0)]),_:1}),e(r,{label:"\u6295\u8BC9\u65F6\u95F4",prop:"complaint_time",align:"center"}),e(r,{label:"\u64CD\u4F5C",width:"auto"},{default:t(a=>[_("div",ae,[_("div",oe,[a.row.status==0?(m(),P(V,{key:0,size:"small",onClick:ne=>A(a.row.id)},{default:t(()=>[le]),_:2},1032,["onClick"])):b("",!0)])])]),_:1})]),_:1},8,["data"])])]),_("div",se,[e(F,{currentPage:o(l).page,"onUpdate:currentPage":s[3]||(s[3]=a=>o(l).page=a),"page-size":o(l).limit,"onUpdate:page-size":s[4]||(s[4]=a=>o(l).limit=a),"page-sizes":[10,20,30,40],layout:"total, sizes, prev, pager, next, jumper",total:o(c).count},null,8,["currentPage","page-size","total"])])])}}});const fe=U(ue,[["__scopeId","data-v-925c0f43"]]);export{fe as default};
