(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2f3f22ad"],{4863:function(e,t,n){},9715:function(e,t,n){"use strict";n("4863")},bf25:function(e,t,n){"use strict";n.d(t,"y",(function(){return i})),n.d(t,"x",(function(){return s})),n.d(t,"B",(function(){return r})),n.d(t,"A",(function(){return o})),n.d(t,"z",(function(){return l})),n.d(t,"a",(function(){return c})),n.d(t,"i",(function(){return u})),n.d(t,"d",(function(){return d})),n.d(t,"l",(function(){return f})),n.d(t,"g",(function(){return m})),n.d(t,"q",(function(){return p})),n.d(t,"c",(function(){return h})),n.d(t,"e",(function(){return _})),n.d(t,"o",(function(){return g})),n.d(t,"j",(function(){return y})),n.d(t,"f",(function(){return v})),n.d(t,"w",(function(){return b})),n.d(t,"D",(function(){return k})),n.d(t,"h",(function(){return w})),n.d(t,"n",(function(){return O})),n.d(t,"t",(function(){return x})),n.d(t,"C",(function(){return C})),n.d(t,"v",(function(){return $})),n.d(t,"u",(function(){return j})),n.d(t,"m",(function(){return P})),n.d(t,"p",(function(){return S})),n.d(t,"k",(function(){return A})),n.d(t,"b",(function(){return T})),n.d(t,"s",(function(){return L})),n.d(t,"r",(function(){return R}));var a=n("b775");function i(e){return Object(a["a"])({method:"get",url:"/signup/download",params:e})}function s(e){return Object(a["a"])({method:"get",url:"/signup/user_all",params:e})}function r(e){return Object(a["a"])({method:"get",url:"/signup/user_update",params:e})}function o(e){return Object(a["a"])({method:"get",url:"/pay/send_code",params:e})}function l(e){return Object(a["a"])({method:"post",url:"/pay/refunds",params:e})}function c(e){return Object(a["a"])({method:"post",url:"/cause/AddCause",params:e})}function u(e){return Object(a["a"])({method:"get",url:"/cause/GetCause",params:e})}function d(e){return Object(a["a"])({method:"post",url:"/pay/CheckStatus",params:e})}function f(e){return Object(a["a"])({method:"get",url:"/signup/GetQueueList",params:e})}function m(e){return Object(a["a"])({method:"get",url:"/signup/ExportQueueList",params:e})}function p(e){return Object(a["a"])({method:"post",url:"/signup/UpdateQueueStatus",params:e})}function h(e){return Object(a["a"])({method:"post",url:"/pay/Allrefunds",params:e})}function _(e){return Object(a["a"])({method:"post",url:"/pay/CheckStatuses",params:e})}function g(e){return Object(a["a"])({method:"get",url:"/signup/TagSignStatus",params:e})}function y(e){return Object(a["a"])({url:"/ActivityOnline/EnrollList",method:"get",params:e})}function v(e){return Object(a["a"])({url:"/ActivityOnline/Export",method:"get",params:e})}function b(e){return Object(a["a"])({url:"/pay/sendOnline",method:"get",params:e})}function k(e){return Object(a["a"])({url:"/ActivityOnline/Import",method:"post",data:e})}function w(e){return Object(a["a"])({url:"/ActivityOnline/GetActivity",method:"get",params:e})}function O(e){return Object(a["a"])({url:"/ActivityOnline/list",method:"get",params:e})}function x(e){return Object(a["a"])({url:"/ActivityOnline/Add",method:"post",data:e})}function C(e){return Object(a["a"])({url:"/ActivityOnline/Update",method:"post",data:e})}function $(e){return Object(a["a"])({url:"/signup/facedownload",method:"get",params:e})}function j(e){return Object(a["a"])({url:"/signup/down_excel_faceimg",method:"get",params:e})}function P(e){return Object(a["a"])({url:"/ws/IsOnLine",method:"get",params:e})}function S(e){return Object(a["a"])({url:"/ws/UpdateFaceInfo",method:"get",params:e})}function A(e){return Object(a["a"])({url:"/ws/GetFaceInfo",method:"get",params:e})}function T(e){return Object(a["a"])({url:"/ws/AgainSend",method:"get",params:e})}function L(e){return Object(a["a"])({url:"/ws/UploadFaceInfo",method:"post",data:e})}function R(e){return Object(a["a"])({url:"/ActivityOnline/UpdateUserAddress",method:"post",data:e})}},e52a:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"zbssignupmanage"},[n("div",{staticClass:"header"},[n("el-select",{staticStyle:{width:"330px"},model:{value:e.searchParams.season,callback:function(t){e.$set(e.searchParams,"season",t)},expression:"searchParams.season"}},e._l(e.season_list,(function(e){return n("el-option",{key:e.season,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),n("el-select",{model:{value:e.searchParams.type,callback:function(t){e.$set(e.searchParams,"type",t)},expression:"searchParams.type"}},[n("el-option",{attrs:{value:"1",label:"排队中"}}),e._v(" "),n("el-option",{attrs:{value:"2",label:"已成功"}}),e._v(" "),n("el-option",{attrs:{value:"3",label:"失败"}}),e._v(" "),n("el-option",{attrs:{value:"4",label:"已退款"}})],1),e._v(" "),n("el-input",{attrs:{clearable:"",maxlength:"11",placeholder:"输入手机号 / 用户昵称搜索","prefix-icon":"el-icon-search"},nativeOn:{keyup:function(t){if(!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter"))return null;e.searchParams.page_index=1,e.getList()}},model:{value:e.searchParams.search_name,callback:function(t){e.$set(e.searchParams,"search_name",t)},expression:"searchParams.search_name"}}),e._v(" "),n("el-button",{attrs:{type:"primary",icon:"el-icon-search",loading:e.loading},on:{click:function(t){e.searchParams.page_index=1,e.getList()}}},[e._v("搜索/刷新")]),e._v(" "),n("el-button",{staticStyle:{margin:"0 20px"},on:{click:e.download}},[n("i",{staticClass:"el-icon-document"}),e._v(" 导出排队名单")])],1),e._v(" "),n("div",{staticClass:"btn",staticStyle:{display:"flex"}},[n("el-button",{attrs:{type:"primary"},on:{click:e.batch}},[e._v("批量设为报名")]),e._v(" "),n("el-button",{attrs:{type:"success"},on:{click:e.allTui}},[e._v("批量退款")])],1),e._v(" "),n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"multipleTable",staticStyle:{width:"100%"},attrs:{border:"",stripe:"",data:e.list,"tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange}},[n("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),n("el-table-column",{attrs:{label:"序号",type:"index",width:"60",index:function(t){return e.searchParams.page_size*(e.searchParams.page_index-1)+t+1}}}),e._v(" "),n("el-table-column",{staticStyle:{padding:"0"},attrs:{label:"头像",width:"60",align:"center"},scopedSlots:e._u([{key:"default",fn:function(e){var t=e.row.user;return[n("img",{attrs:{width:"34",height:"34",src:t.avatar}})]}}])}),e._v(" "),n("el-table-column",{attrs:{label:"昵称",align:"center",width:"200"},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.row.user;return[e._v("\n "+e._s(n.nickname||"")+"\n ")]}}])}),e._v(" "),n("el-table-column",{attrs:{label:"姓名",align:"center",width:"120"},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.row.user;return[e._v("\n "+e._s(n.realname||"")+"\n ")]}}])}),e._v(" "),n("el-table-column",{attrs:{label:"手机号",align:"center",width:"130"},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.row.user;return[e._v("\n "+e._s(n.phone||"")+"\n ")]}}])}),e._v(" "),n("el-table-column",{attrs:{label:"销售类别",align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row.user;return[n("el-tag",{staticStyle:{color:"#ffffff"},attrs:{color:e.levelName(a.level).color}},[e._v("\n "+e._s(e.levelName(a.level).name)+"\n ")])]}}])}),e._v(" "),n("el-table-column",{attrs:{label:"团队老大",prop:"crown",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{label:"服务名称",prop:"war_name",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{label:"排队时间",prop:"created_at",align:"center",width:"160"}},[n("template",{slot:"header"},[n("span",{staticStyle:{cursor:"pointer"},on:{click:function(t){e.searchParams.sort=Number(!e.searchParams.sort)}}},[e._v("排队时间"),n("i",{staticClass:"el-icon-d-caret"})])])],2),e._v(" "),n("el-table-column",{attrs:{label:"微信付款流水号",prop:"trade_no",align:"center",width:"260"}}),e._v(" "),e.$store.state.user.BP.includes("BP2")||e.$store.state.user.BP.includes("*")?[4!==+e.oldType?n("el-table-column",{attrs:{label:"微信退款",prop:"refund",align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[1===a.is_referee?n("el-button",{attrs:{type:"primary",size:"small"}},[e._v("裁判")]):n("el-button",{attrs:{type:"danger",size:"small"},on:{click:function(t){return e.handleRefund(a)}}},[e._v("退款")])]}}],null,!1,2616368848)}):e._e()]:e._e(),e._v(" "),4===+e.oldType?n("el-table-column",{attrs:{label:"退款原因",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.row;return[e._v("\n "+e._s(n.refund_desc)+"\n ")]}}],null,!1,3354876063)}):e._e(),e._v(" "),4===+e.oldType?n("el-table-column",{attrs:{label:"退款时间",align:"center",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.row;return[e._v("\n "+e._s(n.refund_time)+"\n ")]}}],null,!1,2794512347)}):e._e(),e._v(" "),4===+e.oldType?n("el-table-column",{attrs:{label:"操作人",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.row;return[e._v("\n "+e._s(n.op_name)+"\n ")]}}],null,!1,1395664376)}):e._e(),e._v(" "),n("el-table-column",{attrs:{label:"操作",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[n("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(t){return e.batchd(a.id)}}},[e._v("设为报名")])]}}])})],2),e._v(" "),n("pagination",{attrs:{total:e.total,page:e.searchParams.page_index,limit:e.searchParams.page_size},on:{"update:page":function(t){return e.$set(e.searchParams,"page_index",t)},"update:limit":function(t){return e.$set(e.searchParams,"page_size",t)},pagination:e.changePagination}}),e._v(" "),n("el-dialog",{attrs:{title:"请输入验证码确认退款",visible:e.dialogRefundAll,"close-on-click-modal":!1,width:"520px"},on:{"update:visible":function(t){e.dialogRefundAll=t}}},[n("el-form",{attrs:{model:e.form,autocomplete:"off"}},[n("el-form-item",{attrs:{label:"验证码","label-width":"98px"}},[n("div",{staticClass:"identify"},[e._v(e._s(e.identify_code))])]),e._v(" "),n("el-form-item",{attrs:{label:"请输入验证码","label-width":"98px"}},[n("el-input",{staticStyle:{width:"220px"},attrs:{placeholder:"请输入验证码"},model:{value:e.identify_input,callback:function(t){e.identify_input=t},expression:"identify_input"}})],1)],1),e._v(" "),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.dialogRefundAll=!1}}},[e._v("取 消")]),e._v(" "),n("el-button",{attrs:{type:"danger"},on:{click:e.refundAll}},[e._v("退款")])],1)],1),e._v(" "),n("el-dialog",{attrs:{title:"请输入验证码确认退款",visible:e.dialogRefund,"close-on-click-modal":!1,width:"520px"},on:{"update:visible":function(t){e.dialogRefund=t}}},[n("el-dialog",{attrs:{title:"添加退款原因",visible:e.addCauseVis,"before-close":e.addCauseClose,"close-on-click-modal":!1,width:"520px","append-to-body":""},on:{"update:visible":function(t){e.addCauseVis=t}}},[n("el-form",{ref:"addCause",attrs:{"label-width":"100px",model:e.addCause,rules:e.rulesCause}},[n("el-form-item",{attrs:{label:"退款原因: ",prop:"cause"}},[n("el-input",{attrs:{type:"textarea",rows:6},model:{value:e.addCause.cause,callback:function(t){e.$set(e.addCause,"cause",t)},expression:"addCause.cause"}})],1),e._v(" "),n("el-form-item",[n("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submitAddCause("addCause")}}},[e._v("添加")]),e._v(" "),n("el-button",{on:{click:e.addCauseClose}},[e._v("取消")])],1)],1)],1),e._v(" "),n("el-form",{attrs:{model:e.form,autocomplete:"off"}},[n("el-form-item",{attrs:{label:"验证码","label-width":"98px"}},[n("div",{staticClass:"identify"},[e._v(e._s(e.identify_code))])]),e._v(" "),n("el-form-item",{attrs:{label:"请输入验证码","label-width":"98px"}},[n("el-input",{staticStyle:{width:"220px"},attrs:{placeholder:"请输入验证码"},model:{value:e.identify_input,callback:function(t){e.identify_input=t},expression:"identify_input"}})],1),e._v(" "),n("el-form-item",{attrs:{label:"退款原因","label-width":"98px"}},[n("el-select",{staticStyle:{width:"220px"},attrs:{placeholder:"请选择退款原因"},model:{value:e.identify_reason,callback:function(t){e.identify_reason=t},expression:"identify_reason"}},e._l(e.cause_list,(function(e){return n("el-option",{key:e.id,attrs:{label:e.cause,value:e.cause}})})),1),e._v(" "),n("i",{staticClass:"el-icon-circle-plus-outline icon",on:{click:function(t){e.addCauseVis=!0}}})],1)],1),e._v(" "),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.dialogRefund=!1}}},[e._v("取 消")]),e._v(" "),n("el-button",{attrs:{type:"danger"},on:{click:e.refund}},[e._v("退款")])],1)],1)],1)},i=[],s=(n("7f7f"),n("bf25")),r={name:"ZbsSignupManage",data:function(){return{dialogRefundAll:!1,multipleSelection:[],ids:[],total:0,page:1,list:[],downloadList:[],loading:!1,addCauseVis:!1,dialogRefund:!1,dialogFormVisible:!1,identify_key:"",identify_code:"",identify_input:"",identify_reason:"",form:{id:"",nickname:"",phone:"",level_name:""},name:"",summary:{code_no_num:0,code_num:0,enroll_num:0,refund_num:0},cause_list:[],searchParams:{page_index:1,page_size:10,type:"1",search_name:"",season:"",sort:0},addCause:{cause:""},rulesCause:{cause:[{required:!0,message:"请输入退款原因",trigger:"blur"}]},oldType:"1"}},watch:{"searchParams.sort":function(){this.searchParams.page_index=1,this.getList()}},computed:{season_list:function(){return this.$store.state.user.season_list}},mounted:function(){this.searchParams.season=this.$store.state.user.season_list[0].id;var e=this.season_list[0];this.name="第".concat(e.season,"届").concat(0===e.type?"实战营":"密训营"),this.getList(),this.getCause()},methods:{batch:function(){var e=this;if(""==this.multipleSelection)return this.$message.error("请选择需要批量设为报名的人员!"),!1;this.$confirm("确定要设为报名吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var t=e.multipleSelection;Object(s["q"])({id:t}).then((function(t){200==t.code?(e.$message.success("设置成功"),e.getList()):e.$message.error(t.message||"设置失败")}))})).catch((function(){e.$refs.multipleTable.clearSelection()}))},batchd:function(e){var t=this;this.ids=[e],this.$confirm("确定要设为报名吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var e=t.ids;Object(s["q"])({id:e}).then((function(e){200==e.code?(t.$message.success("设置成功"),t.getList()):t.$message.error(e.message||"设置失败")}))})).catch((function(){}))},handleSelectionChange:function(e){this.ids=this.multipleSelection=e.map((function(e){return e.user_id})),this.multipleSelection=e.map((function(e){return e.id}))},allTui:function(){var e=this;if(0===this.multipleSelection.length)return this.$message.error("请选择需要批量退款的客户!"),!1;Object(s["A"])().then((function(t){200===t.code?(e.dialogRefundAll=!0,e.identify_key=t.data.verify_key,e.identify_code=t.data.verify_code.toUpperCase()):e.$alert({message:"退款失败!"})})).finally((function(){e.loading=!1}))},refundAll:function(){var e=this;this.identify_input.toUpperCase()===this.identify_code?Object(s["e"])({id:this.ids,activity_id:this.searchParams.season}).then((function(t){200==t.code?(e.loading=!0,Object(s["c"])({ids:e.ids,activity_id:e.searchParams.season,op_name:e.$store.state.user.name,verify_key:e.identify_key,verify_code:e.identify_code}).then((function(){e.identify_code="",e.identify_input="",e.identify_reason="",e.dialogRefundAll=!1,e.getList(),e.$message.success("退款成功")})).catch((function(){e.loading=!1,e.$message.error("退款失败")}))):e.$confirm(t.message,"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(s["c"])({ids:e.ids,activity_id:e.searchParams.season,op_name:e.$store.state.user.name,verify_key:e.identify_key,verify_code:e.identify_code}).then((function(){e.identify_code="",e.identify_input="",e.identify_reason="",e.dialogRefundAll=!1,e.getList(),e.$message.success("退款成功")})).catch((function(){e.loading=!1,e.$message.error("退款失败")}))}))})):this.$message.error("验证码输入错误")},getCause:function(){var e=this;Object(s["i"])().then((function(t){e.cause_list=t.data}))},getList:function(){var e=this;this.loading=!0,this.oldType=this.searchParams.type,Object(s["l"])(this.searchParams).then((function(t){e.loading=!1,200===t.code?(e.total=t.data.total,e.list=t.data.list):e.$message.error(t.message||"获取报名列表失败")})).catch((function(){e.loading=!1,e.$message.error("获取报名列表失败")}))},switchseason:function(e){this.searchParams.season=this.season_list[e].id;var t=this.season_list[e];this.name="第".concat(t.season,"届").concat(0===t.type?"实战营":"密训营"),this.getList()},changePagination:function(e){var t=e.page,n=e.limit;this.searchParams.page_size=n,this.searchParams.page_index=t,this.getList()},levelName:function(e){if(!e&&0!==e)return{name:"类别待定",color:"#909399"};var t;switch(e){case 3:t={name:"批发商",color:"#f0a637"};break;case 2:t={name:"经销商",color:"#67c23a"};break;case 1:t={name:"销售员",color:"#1fd3c2"};break;default:t={name:"公司",color:"#409eff"}}return t},submitAddCause:function(e){var t=this;this.$refs[e].validate((function(e){if(!e)return!1;Object(s["a"])(t.addCause).then((function(e){200===e.code?(t.$message.success("添加成功"),t.addCauseVis=!1,t.getCause()):t.$message.error(e.message||"添加失败")})).catch((function(){t.$message.error("添加失败")}))}))},handleRefund:function(e){var t=this;this.getList(),this.form.id=e.user_id,this.loading=!0,Object(s["A"])().then((function(e){200===e.code?(t.dialogRefund=!0,t.identify_key=e.data.verify_key,t.identify_code=e.data.verify_code.toUpperCase()):t.$alert({message:"退款失败!"})})).finally((function(){t.loading=!1}))},addCauseClose:function(){this.$refs.addCause.resetFields(),this.addCauseVis=!1},refund:function(){var e=this;this.identify_input.toUpperCase()===this.identify_code?""!=this.identify_reason?Object(s["d"])({id:this.form.id,activity_id:this.searchParams.season}).then((function(t){200==t.code?(e.loading=!0,Object(s["z"])({id:e.form.id,season:e.searchParams.season,name:e.$store.state.user.name,remark:e.identify_reason,verify_key:e.identify_key,verify_code:e.identify_code}).then((function(){e.identify_code="",e.identify_input="",e.identify_reason="",e.dialogRefund=!1,e.getList(),e.$message.success("退款成功")})).catch((function(){e.loading=!1,e.$message.error("退款失败")}))):e.$confirm(t.message,"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(s["z"])({id:e.form.id,season:e.searchParams.season,name:e.$store.state.user.name,remark:e.identify_reason,verify_key:e.identify_key,verify_code:e.identify_code}).then((function(){e.identify_code="",e.identify_input="",e.identify_reason="",e.dialogRefund=!1,e.getList(),e.$message.success("退款成功")})).catch((function(){e.loading=!1,e.$message.error("退款失败")}))}))})):this.$message.error("退款原因不能为空"):this.$message.error("验证码输入错误")},download:function(){var e=this;this.loading=!0,Object(s["g"])(this.searchParams).then((function(t){if(e.loading=!1,200===t.code){if(0===t.data.list.length)return e.$message.error("没有可导出数据"),!1;var a=t.data.list;n.e("chunk-2c21b5a5").then(n.bind(null,"4bf8d")).then((function(t){var n=["序号","昵称","姓名","手机号","销售类别","服务名称","团队老大","排队时间","微信付款流水号","支付金额"],i=["index","user_nickname","user_realname","user_phone","usera_level","war_name","crown","created_at","trade_no","money"];4===+e.searchParams.type&&(n.push("退款原因"),i.push("refund_desc"),n.push("退款时间"),i.push("refund_time"),n.push("操作人"),i.push("op_name"));var s=a.map((function(t,n){var a={index:n+1,user_realname:t.user.realname||"",created_at:t.created_at,user_nickname:t.user.nickname||"",user_phone:t.user.phone||"",usera_level:e.levelName(t.user.level).name||"",crown:t.crown,trade_no:t.trade_no,money:t.money,war_name:t.war_name||""};return 4===+e.searchParams.type&&(a["refund_desc"]=t.refund_desc,a["refund_time"]=t.refund_time,a["op_name"]=t.op_name),a})),r=s.map((function(e){return i.map((function(t){return e[t]}))}));t.export_json_to_excel({header:n,data:r,filename:"排队名单-"+e.name,autoWidth:!0,bookType:"xlsx"})}))}else e.$message.error(t.message||"导出失败")})).catch((function(){e.loading=!1,e.$message.error(res.message||"导出失败")}))}}},o=r,l=(n("9715"),n("2877")),c=Object(l["a"])(o,a,i,!1,null,"77b29be2",null);t["default"]=c.exports}}]);