(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-c36d4822"],{"11b8":function(t,e,n){"use strict";n.d(e,"g",(function(){return a})),n.d(e,"b",(function(){return u})),n.d(e,"v",(function(){return o})),n.d(e,"i",(function(){return c})),n.d(e,"h",(function(){return i})),n.d(e,"m",(function(){return s})),n.d(e,"n",(function(){return l})),n.d(e,"u",(function(){return d})),n.d(e,"d",(function(){return f})),n.d(e,"c",(function(){return m})),n.d(e,"t",(function(){return p})),n.d(e,"r",(function(){return h})),n.d(e,"k",(function(){return b})),n.d(e,"f",(function(){return g})),n.d(e,"l",(function(){return _})),n.d(e,"w",(function(){return v})),n.d(e,"s",(function(){return y})),n.d(e,"p",(function(){return j})),n.d(e,"a",(function(){return O})),n.d(e,"o",(function(){return w})),n.d(e,"q",(function(){return k})),n.d(e,"j",(function(){return G})),n.d(e,"e",(function(){return x}));var r=n("b775");function a(t){return Object(r["a"])({url:"/ReturnGood/GetApplyList",method:"get",params:t})}function u(t){return Object(r["a"])({url:"/ReturnGood/CheckIn",method:"post",data:t})}function o(t){return Object(r["a"])({url:"/user/getuserlist",method:"get",params:t})}function c(t){return Object(r["a"])({url:"/ReturnGood/GetInfo",method:"get",params:t})}function i(t){return Object(r["a"])({url:"/ReturnGood/GetExpressInfo",method:"get",params:t})}function s(t){return Object(r["a"])({url:"/ReturnGood/SureMoney",method:"get",params:t})}function l(t){return Object(r["a"])({url:"/ReturnGood/SureMoneyNew",method:"get",params:t})}function d(t){return Object(r["a"])({url:"/ReturnGood/UserSign",method:"post",data:t})}function f(t){return Object(r["a"])({url:"/ReturnGood/CrownMoneySign",method:"post",data:t})}function m(t){return Object(r["a"])({url:"/ReturnGood/CrownLookMoneySign",method:"post",data:t})}function p(t){return Object(r["a"])({url:"/ReturnGood/UserConfirmMoneySign",method:"post",data:t})}function h(t){return Object(r["a"])({url:"/ReturnGood/UploadImg",method:"post",data:t})}function b(t){return Object(r["a"])({url:"/ReturnGood/GetStatus",method:"get",params:t})}function g(t){return Object(r["a"])({url:"/ReturnGood/EditExpressInfo",method:"post",data:t})}function _(t){return Object(r["a"])({url:"/ReturnGood/NewGoodDetail",method:"post",data:t})}function v(t){return Object(r["a"])({url:"/ReturnGood/GoodDetail",method:"get",params:t})}function y(t){return Object(r["a"])({url:"/ReturnGood/UploadMoneyImg",method:"post",data:t})}function j(t){return Object(r["a"])({url:"/ReturnGood/UpdateReturnMoney",method:"get",params:t})}function O(t){return Object(r["a"])({url:"/ReturnGood/AddReturnMoney",method:"post",data:t})}function w(t){return Object(r["a"])({url:"/ReturnGood/UpdateApplyInfo",method:"post",data:t})}function k(t){return Object(r["a"])({url:"/ReturnGood/UploadImage",method:"post",data:t})}function G(t){return Object(r["a"])({url:"/ReturnGood/GetQrCode",method:"post",data:t})}function x(t){return Object(r["a"])({url:"/ReturnGood/DownloadTable",method:"post",data:t})}},"1a1e":function(t,e,n){},"2c71":function(t,e,n){"use strict";n.d(e,"D",(function(){return a})),n.d(e,"A",(function(){return u})),n.d(e,"o",(function(){return o})),n.d(e,"u",(function(){return c})),n.d(e,"q",(function(){return i})),n.d(e,"z",(function(){return s})),n.d(e,"E",(function(){return l})),n.d(e,"F",(function(){return d})),n.d(e,"r",(function(){return f})),n.d(e,"G",(function(){return m})),n.d(e,"B",(function(){return p})),n.d(e,"H",(function(){return h})),n.d(e,"x",(function(){return b})),n.d(e,"w",(function(){return g})),n.d(e,"v",(function(){return _})),n.d(e,"n",(function(){return v})),n.d(e,"s",(function(){return y})),n.d(e,"m",(function(){return j})),n.d(e,"p",(function(){return O})),n.d(e,"a",(function(){return w})),n.d(e,"h",(function(){return k})),n.d(e,"k",(function(){return G})),n.d(e,"J",(function(){return x})),n.d(e,"l",(function(){return S})),n.d(e,"i",(function(){return R})),n.d(e,"c",(function(){return F})),n.d(e,"g",(function(){return C})),n.d(e,"d",(function(){return A})),n.d(e,"y",(function(){return I})),n.d(e,"e",(function(){return $})),n.d(e,"f",(function(){return L})),n.d(e,"j",(function(){return T})),n.d(e,"b",(function(){return U})),n.d(e,"I",(function(){return Q})),n.d(e,"t",(function(){return z})),n.d(e,"C",(function(){return E}));var r=n("b775");function a(t){return Object(r["a"])({url:"/user/getuserlist",method:"get",params:t})}function u(t){return Object(r["a"])({url:"/user/updatemobile",method:"post",data:t})}function o(t){return Object(r["a"])({url:"/user/uploaduser",method:"post",data:t})}function c(t){return Object(r["a"])({url:"/user/destoryuser",method:"post",data:t})}function i(t){return Object(r["a"])({url:"/user/shelveduser",method:"post",data:t})}function s(t){return Object(r["a"])({url:"/user/updateagentlevel",method:"post",data:t})}function l(t){return Object(r["a"])({url:"/user/getagentgoodsnum",method:"get",params:t})}function d(){return Object(r["a"])({url:"/warea/getwarealistinfos",method:"get"})}function f(t){return Object(r["a"])({url:"/user/crownselectwarea",method:"post",data:t})}function m(t){return Object(r["a"])({url:"/user/editagentpassword",method:"post",data:t})}function p(t){return Object(r["a"])({url:"/user/exportuserlist",method:"get",params:t})}function h(t){return Object(r["a"])({url:"/user/update_user",method:"post",data:t})}function b(t){return Object(r["a"])({url:"/user/destroy_upload_img",method:"post",data:t})}function g(t){return Object(r["a"])({url:"/user/destroy_upload_audio",method:"post",data:t})}function _(t){return Object(r["a"])({url:"/user/get_del_cause",method:"get",params:t})}function v(t){return Object(r["a"])({url:"/user/add_del_cause",method:"get",params:t})}function y(t){return Object(r["a"])({url:"/user/destory_del_cause",method:"get",params:t})}function j(t){return Object(r["a"])({url:"/user/addtestuser",method:"post",data:t})}function O(t){return Object(r["a"])({url:"/user/canceltestuser",method:"post",data:t})}function w(t){return Object(r["a"])({url:"/user/Cancel_status",method:"get",params:t})}function k(t){return Object(r["a"])({url:"/user/UnbindWechat",method:"get",params:t})}function G(t){return Object(r["a"])({url:"/user/UpdateWarea",method:"get",params:t})}function x(t){return Object(r["a"])({url:"/UserImg/uploadImage",method:"post",data:t})}function S(t){return Object(r["a"])({url:"/WareaApply/Apply",method:"get",params:t})}function R(t){return Object(r["a"])({url:"/WareaApply/UpdateApply",method:"get",params:t})}function F(t){return Object(r["a"])({url:"/WareaApply/GetApplyList",method:"get",params:t})}function C(t){return Object(r["a"])({url:"/WareaApply/RejectAccept",method:"get",params:t})}function A(t){return Object(r["a"])({url:"/WareaApply/GetApplyListCount",method:"get",params:t})}function I(t){return Object(r["a"])({url:"/WareaApply/destroy",method:"get",params:t})}function $(t){return Object(r["a"])({url:"/WareaApply/GetUserInfo",method:"get",params:t})}function L(t){return Object(r["a"])({url:"/user/GetShareList",method:"post",data:t})}function T(t){return Object(r["a"])({url:"/user/UpdateShare",method:"post",data:t})}function U(t){return Object(r["a"])({url:"/user/DelShare",method:"post",data:t})}function Q(t){return Object(r["a"])({url:"/user/uploadAgeLimitFile",method:"post",data:t})}function z(t){return Object(r["a"])({url:"/user/deleteAgeLimitFile",method:"post",data:t})}function E(t){return Object(r["a"])({url:"/user/getAgeLimitFile",method:"get",params:t})}},"44f1":function(t,e,n){"use strict";n.d(e,"d",(function(){return r})),n.d(e,"e",(function(){return a})),n.d(e,"f",(function(){return u})),n.d(e,"a",(function(){return o})),n.d(e,"c",(function(){return c})),n.d(e,"b",(function(){return i})),n.d(e,"h",(function(){return s})),n.d(e,"g",(function(){return l}));n("c5f6"),n("a481"),n("ac6a");function r(t){switch(+t){case-2:return{name:"已取消",color:"#F56C6C"};case-1:return{name:"待收款确认",color:"#4da5a5"};case 0:return{name:"待订单审核",color:"#f97547"};case 1:return{name:"待财务审核",color:"#13c19f"};case 2:return{name:"待发货审核",color:"#ffaa1d"};case 3:return{name:"待收货",color:"#409EFF"};case 4:return{name:"已完成",color:"#74a2e6"};case 5:return{name:"已驳回(客服)",color:"#67C23A"};case 6:return{name:"已驳回(财务)",color:"#67C23A"};case 7:return{name:"已驳回(物流)",color:"#67C23A"};default:return{name:"未知订单状态",color:"#909399"}}}function a(t){switch(+t){case-1:return{name:"已删除",color:"#4da5a5"};case 0:return{name:"订单未审核",color:"#f97547"};case 1:return{name:"财务未审核",color:"#13c19f"};case 2:return{name:"未发货审核",color:"#ffaa1d"};case 3:return{name:"待收货",color:"#409EFF"};case 4:return{name:"已完成",color:"#74a2e6"}}}function u(t){switch(+t){case 0:return{name:"未付款",color:"#f96b6b"};case 1:return{name:"部分付款",color:"#f96b6b"};case 2:return{name:"已付款",color:"#415161"};case 3:return{name:"待退款",color:"#f96b6b"};default:return{name:"未知支付状态",color:"#909399"}}}function o(t){var e;switch(t){case 0:e="销售未实名认证";break;case 1:e="等待分享人审核";break;case 2:e="等待上级批发商审核";break;case 3:e="等待用户确认";break;case 4:e="分享人审核驳回";break;case 5:e="上级批发商审核驳回";break;case 6:e="授权成功";break;default:e=t}return e}function c(t){if(!t&&0!==t)return{name:"类别待定",color:"#909399"};var e;switch(t){case 3:e={name:"批发商",color:"#f0a637"};break;case 2:e={name:"经销商",color:"#67c23a"};break;case 1:e={name:"销售员",color:"#1fd3c2"};break;default:e={name:"公司",color:"#409eff"}}return e}function i(t,e){if(!t)return 0;var n=e?t:parseFloat(t);return String(n).replace(/(\d{1,3})(?=(\d{3})+(?:$|\.))/g,"$1,")}function s(t){if("0"===t)return 0;var e=Number(100*t).toFixed()+"%";return e}function l(t){switch(+t){case 0:return{name:"未审核",color:"#f96b6b"};case 1:return{name:"已通过",color:"#13c19f"};case 2:return{name:"已驳回",color:"#f30"};default:return{name:"已删除",color:"#999"}}}},e933:function(t,e,n){"use strict";n("1a1e")},fd78:function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"app-container",attrs:{id:"nav"}},[n("div",{directives:[{name:"loading",rawName:"v-loading.fullscreen.lock",value:t.loadingFull,expression:"loadingFull",modifiers:{fullscreen:!0,lock:!0}}]}),t._v(" "),n("div",{staticClass:"search-container"},[n("el-input",{staticClass:"input-with-select",staticStyle:{width:"250px"},attrs:{placeholder:"姓名/昵称/手机号","suffix-icon":"el-icon-search",clearable:""},nativeOn:{keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleSearch(e)}},model:{value:t.listQuery.search_name,callback:function(e){t.$set(t.listQuery,"search_name",e)},expression:"listQuery.search_name"}}),t._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:t.handleSearch}},[t._v("搜索")])],1),t._v(" "),n("div",{staticClass:"table-wrapper"},[n("el-table",{ref:"listTable",attrs:{id:"table",height:t.tableHeight+"px",data:t.table,"header-cell-style":{background:"#f8fbfc"},border:"",stripe:""}},[n("el-table-column",{attrs:{prop:"phone",label:"用户手机号",align:"center"}}),t._v(" "),n("el-table-column",{attrs:{prop:"headimgurl",label:"分享人头像",align:"center"},scopedSlots:t._u([{key:"default",fn:function(t){var e=t.row;return[n("el-image",{staticStyle:{width:"70px"},attrs:{src:e.user&&e.user.headimgurl,fit:"contain"}})]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"customer_name",label:"分享人昵称",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.row;return[t._v("\n "+t._s(n.user&&n.user.nickname)+"\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"customer_name",label:"分享人手机号",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.row;return[t._v("\n "+t._s(n.user&&n.user.mobile)+"\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"customer_name",label:"用户状态",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){var r=e.row;return[n("el-tag",{attrs:{type:0===r.status?"info":1===r.status||2===r.status?"":"success"}},[t._v("\n "+t._s(0===r.status?"未注册":1===r.status?"批发商审核":2===r.status?"客户审核":"正常")+"\n ")])]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"操作",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){var r=e.row;return[n("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(e){return t.changeShare(r.uuid)}}},[t._v(" 更换分享人 ")]),t._v(" "),n("el-button",{directives:[{name:"show",rawName:"v-show",value:0===r.status,expression:"row.status === 0"}],attrs:{type:"danger",size:"mini"},on:{click:function(e){return t.delth(r)}}},[t._v(" 删除 ")])]}}])})],1)],1),t._v(" "),n("pagination",{attrs:{total:t.tableTotal,limit:t.listQuery.page_size,page:t.listQuery.page_index},on:{pagination:t.changePagination,"update:limit":t.changePagination}}),t._v(" "),n("el-drawer",{attrs:{title:"更换分享人",visible:t.drawer,direction:"rtl",size:t.isH?"60%":"85%"},on:{"update:visible":function(e){t.drawer=e}}},[n("div",{staticStyle:{padding:"20px"}},[n("div",{staticStyle:{"margin-bottom":"10px"}},[n("el-input",{staticClass:"input-with-select",staticStyle:{width:"250px"},attrs:{placeholder:"姓名/昵称/手机号","suffix-icon":"el-icon-search",clearable:""},nativeOn:{keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.Getshare(e)}},model:{value:t.search.search_name,callback:function(e){t.$set(t.search,"search_name",e)},expression:"search.search_name"}}),t._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:t.Getshare}},[t._v("搜索")])],1),t._v(" "),n("el-table",{staticClass:"tableBorder",attrs:{data:t.userlist,"header-cell-style":{background:"#f8fbfc"},border:"",stripe:""}},[n("el-table-column",{attrs:{type:"index",label:"单选",align:"center",width:"50"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-radio",{attrs:{label:e.row.id},on:{change:function(n){return t.changeRedio(n,e.row)}},model:{value:t.currentRowId,callback:function(e){t.currentRowId=e},expression:"currentRowId"}},[t._v(" ")])]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"headimgurl",label:"头像",align:"center",width:"60"},scopedSlots:t._u([{key:"default",fn:function(t){var e=t.row;return[n("el-image",{staticClass:"hoverImg",attrs:{src:e.headimgurl,fit:"contain"}})]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"nickname",label:"昵称",align:"center"}}),t._v(" "),n("el-table-column",{attrs:{prop:"realname",align:"center",label:"真实姓名",width:"130"}}),t._v(" "),n("el-table-column",{attrs:{prop:"mobile",align:"center",label:"电话号"}}),t._v(" "),n("el-table-column",{attrs:{prop:"level",align:"center",label:"客户类别",width:"100"},scopedSlots:t._u([{key:"default",fn:function(e){var r=e.row;return[n("el-tag",{staticStyle:{color:"#ffffff"},attrs:{color:t.levelStatus(r.level).color}},[t._v("\n "+t._s(t.levelStatus(r.level).name)+"\n ")])]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"所在服务",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){var r=e.row.warea;return n("span",{},[t._v(t._s(r&&r.admin_name))])}}])}),t._v(" "),n("el-table-column",{attrs:{label:"客服",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){var r=e.row.warea;return n("span",{},[t._v(t._s(r&&r.admin_name))])}}])})],1),t._v(" "),n("pagination",{staticStyle:{"margin-top":"20 !important"},attrs:{total:t.tableTotals,limit:t.search.page_size,page:t.search.page_index},on:{pagination:t.changePaginations,"update:limit":t.changePaginations}})],1)])],1)},a=[],u=n("c7eb"),o=(n("96cf"),n("1da1")),c=(n("386d"),n("ed08")),i=n("2c71"),s=n("44f1"),l=n("11b8"),d={data:function(){return{userlist:[],currentRowId:"",search:{search_name:"",page_index:1,page_size:10,info_select:"1",commissar:"",warea_id:"",start_time:"",end_time:"",level:"all"},listQuery:{page_index:1,page_size:20,search_name:""},loadingFull:!1,tableTotals:0,drawer:!1,form:{uuid:"",user_id:""},isH:!1,tableTotal:0,table:[],tableHeight:0}},mounted:function(){var t=this;Object(c["e"])()?this.isH=!0:this.isH=!1,this.$nextTick((function(){t.tableHeight=document.getElementsByClassName("table-wrapper")[0].offsetHeight,t.getList()}))},methods:{changeShare:function(t){this.form.uuid=t,this.userlist=[],this.search.page_index=1,this.search.search_name="",this.drawer=!0},levelStatus:function(t){return Object(s["c"])(t)},Getshare:function(){var t=this;""!==this.search.search_name?(this.loadingFull=!0,Object(l["v"])(this.search).then((function(e){if(t.loadingFull=!1,200===e.code){if(0===e.data.list.length)return t.$message.error("未查询到客户"),!1;t.userlist=e.data.list,t.tableTotals=e.data.total}else t.$message.error(e.message)})).catch((function(e){t.loadingFull=!1}))):this.$message.error("请输入搜索内容")},delth:function(t){var e=this;this.$confirm("确定要删除手机号为".concat(t.phone,"的用户吗 ?"),"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){e.loadingFull=!0,Object(i["b"])({uuid:t.uuid}).then((function(t){e.loadingFull=!1,200===t.code?(e.$message.success("操作成功"),e.getList()):e.$message.error(t.message||"操作失败")})).catch((function(t){e.loadingFull=!1}))})).catch((function(){}))},changeRedio:function(t,e){var n=this;this.$confirm("确定要更换分享人吗 ?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){n.loadingFull=!0,n.form.user_id=e.id,Object(i["j"])(n.form).then((function(t){n.loadingFull=!1,200===t.code?(n.$message.success("操作成功"),n.drawer=!1,n.getList()):n.$message.error(t.message)})).catch((function(t){n.loadingFull=!1}))})).catch((function(){}))},getList:function(){var t=Object(o["a"])(Object(u["a"])().mark((function t(){var e,n,r,a,o,c;return Object(u["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.loadingFull=!0,t.next=3,Object(i["f"])(this.listQuery);case 3:e=t.sent;try{n=e.message,r=e.code,200===r?(a=e.data,o=a.list,c=a.total,this.tableTotal=c,this.table=o):this.$message.error(n),this.loadingFull=!1}catch(u){console.log("获取列表失败:".concat(u)),this.loadingFull=!1}case 5:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),changePagination:function(t){var e=t.page,n=t.limit;this.listQuery.page_size=n,this.listQuery.page_index=e,this.getList()},changePaginations:function(t){var e=t.page,n=t.limit;this.search.page_size=n,this.listQuery.page_index=e,this.Getshare()},handleSearch:function(){this.listQuery.page_index=1,this.getList()}}},f=d,m=(n("e933"),n("2877")),p=Object(m["a"])(f,r,a,!1,null,"367180b8",null);e["default"]=p.exports}}]);