(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-633ab780"],{bb8d:function(t,e,a){"use strict";a("bd01")},bd01:function(t,e,a){},d01e:function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[a("el-select",{model:{value:t.searchParams.state,callback:function(e){t.$set(t.searchParams,"state",e)},expression:"searchParams.state"}},[a("el-option",{attrs:{label:"全部",value:""}}),t._v(" "),a("el-option",{attrs:{label:"未审核",value:0}}),t._v(" "),a("el-option",{attrs:{label:"已通过",value:1}}),t._v(" "),a("el-option",{attrs:{label:"已驳回",value:2}})],1),t._v(" "),a("el-input",{staticStyle:{width:"230px"},attrs:{type:"text",placeholder:"客户昵称/手机号",clearable:""},on:{keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.search(e)}},model:{value:t.searchParams.search_name,callback:function(e){t.$set(t.searchParams,"search_name",e)},expression:"searchParams.search_name"}}),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.search}},[t._v("搜索")]),t._v(" "),a("el-table",{staticClass:"tableBorder",staticStyle:{margin:"20px 0"},attrs:{data:t.list,"header-cell-style":{background:"#f8fbfc"},border:"",stripe:""}},[a("el-table-column",{attrs:{prop:"headimgurl",label:"头像",align:"center",width:"80"},scopedSlots:t._u([{key:"default",fn:function(t){var e=t.row;return[a("el-image",{staticClass:"hoverImg",attrs:{src:e.avatar,fit:"contain"}})]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"nickname",label:"申请人昵称",align:"center",width:"140"},scopedSlots:t._u([{key:"default",fn:function(e){var s=e.row;return[a("el-button",{attrs:{type:"text"},on:{click:function(e){return t.getOtherInfo(s.user_id)}}},[t._v(t._s(s.nickname.slice(0,5)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"nickname",label:"手机号",align:"center",width:"160"},scopedSlots:t._u([{key:"default",fn:function(e){var s=e.row;return[a("span",[t._v(t._s(s.mobile))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"agent",label:"申请时间",align:"center",width:"200"},scopedSlots:t._u([{key:"default",fn:function(e){var s=e.row;return[a("span",[t._v(t._s(s.created_at))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"agent",label:"举办时间",width:"180",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){var s=e.row;return[s.start_at||s.start_at?a("div",[a("div",[t._v(t._s(t._f("str")(s.start_at&&s.start_at))+" 至")]),t._v(" "),a("div",[t._v(t._s(t._f("str")(s.end_at&&s.end_at)))])]):t._e()]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"agent",label:"举办地址",align:"center",width:"330","show-overflow-tooltip":!0},scopedSlots:t._u([{key:"default",fn:function(e){var s=e.row;return[a("span",[t._v(t._s(s.province+s.city+s.area+s.address))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"agent",label:"预期参加人数",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){var s=e.row;return[a("span",[t._v(t._s(s.except_num))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"agent",label:"状态",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){var s=e.row;return[a("el-tag",{attrs:{type:0==s.state?"warniing":1==s.state?"success":"danger"}},[t._v("\n "+t._s(0==s.state?"未审核":1==s.state?"已通过":"已驳回")+"\n ")]),a("br"),t._v(" "),a("el-popover",{attrs:{placement:"top",title:"标题",width:"200",trigger:"click",content:s.reason}},[2===s.state?a("el-button",{attrs:{slot:"reference",type:"text",size:"medium"},slot:"reference"},[t._v("查看驳回原因")]):t._e()],1)]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"agent",label:"沙龙数据(活动结束后上传)",align:"center",width:"150"},scopedSlots:t._u([{key:"default",fn:function(e){var s=e.row;return[1==s.state&&s.sale_num?a("el-button",{attrs:{type:"text"},on:{click:function(e){return t.getImg(s)}}},[t._v("查看数据")]):a("span",[t._v("暂无数据 ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center",width:"180"},scopedSlots:t._u([{key:"default",fn:function(e){var s=e.row;return[0===s.state?a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(e){return t.examineSuccess(s.id)}}},[t._v("通过")]):t._e(),t._v(" "),0===s.state?a("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(e){t.dialogBack=!0,t.id=s.id}}},[t._v("驳回")]):t._e(),t._v(" "),t.getTime(s)?a("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(e){return t.cancel(s.id)}}},[t._v("撤销")]):t._e()]}}])})],1),t._v(" "),a("el-drawer",{attrs:{title:t.memberInfo.realname+" - "+t.levelStatus(t.memberInfo.level).name,visible:t.visible.memberInfo,direction:"rtl",size:t.isH?"80%":"600px"},on:{"update:visible":function(e){return t.$set(t.visible,"memberInfo",e)}}},[a("MemberInfo",{attrs:{info:t.memberInfo,"team-type":!0,"show-num":t.roles.includes(6)||"root"===t.user.role_name},on:{getOtherInfo:t.changeOtherInfo}})],1),t._v(" "),a("pagination",{staticStyle:{margin:"0 0 20px 0"},attrs:{total:t.total,limit:t.searchParams.page_size,page:t.searchParams.page_index},on:{pagination:t.changePagination,"update:limit":t.changePagination}}),t._v(" "),a("el-dialog",{attrs:{title:"沙龙数据",visible:t.dialogSalon,width:"30%","destroy-on-close":!0},on:{"update:visible":function(e){t.dialogSalon=e}}},[a("div",{staticClass:"salon"},[a("div",{staticClass:"salon_item"},[a("span",{staticClass:"salontitle"},[t._v(" 举办日期:")]),t._v(t._s(t._f("str")(t.salonForm.start_at&&t.salonForm.start_at))+" 至 "+t._s(t._f("str")(t.salonForm.end_at&&t.salonForm.end_at)))]),t._v(" "),a("div",{staticClass:"salon_item"},[a("span",{staticClass:"salontitle"},[t._v("举办地址:")]),t._v(t._s(t.salonForm.province+t.salonForm.city+t.salonForm.area+t.salonForm.address))]),t._v(" "),a("div",{staticClass:"salon_item"},[a("span",{staticClass:"salontitle"},[t._v("参加人数:")]),a("span",{staticClass:"span"},[t._v(t._s(t.salonForm.actual_num))]),t._v("人")]),t._v(" "),a("div",{staticClass:"salon_item"},[a("span",{staticClass:"salontitle"},[t._v("招客户人数:")]),a("span",{staticClass:"span"},[t._v(t._s(t.salonForm.agent_num))]),t._v("人")]),t._v(" "),a("div",{staticClass:"salon_item"},[a("span",{staticClass:"salontitle"},[t._v("零售数量:")]),a("span",{staticClass:"span"},[t._v(t._s(t.salonForm.sale_num))])]),t._v(" "),a("div",{staticClass:"salon_item"},[a("span",{staticClass:"salontitle"},[t._v("收款凭证:")]),t._v(" "),a("div",{staticStyle:{display:"flex","flex-flow":"wrap",margin:"15px 0"}},t._l(t.collectionImg,(function(e,s){return a("div",{key:s,staticStyle:{"margin-right":"10px"}},[a("el-image",{staticStyle:{width:"100px",height:"100px"},attrs:{src:e,"preview-src-list":t.collectionImg,"z-index":1e4}},[a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"})])],1)})),0)]),t._v(" "),a("div",{staticClass:"salon_item"},[a("span",{staticClass:"salontitle"},[t._v("沙龙现场照片:")]),t._v(" "),a("div",{staticStyle:{display:"flex","flex-flow":"wrap",margin:"15px 0"}},t._l(t.sharonImg,(function(e,s){return a("div",{key:s,staticStyle:{"margin-right":"10px"}},[a("el-image",{staticStyle:{width:"100px",height:"100px"},attrs:{src:e,"preview-src-list":t.sharonImg,"z-index":1e4}},[a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"})])],1)})),0)])])]),t._v(" "),a("el-dialog",{attrs:{title:"驳回",visible:t.dialogBack,width:"30%"},on:{"update:visible":function(e){t.dialogBack=e}}},[a("el-form",[a("el-form-item",{attrs:{label:"驳回原因:"}},[a("el-input",{attrs:{type:"textarea",rows:6,placeholder:"请输入内容"},model:{value:t.reason,callback:function(e){t.reason=e},expression:"reason"}})],1)],1),t._v(" "),a("template",{slot:"footer"},[a("el-button",{on:{click:function(e){t.reason="",t.dialogBack=!1}}},[t._v("取消")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.toSubmitBack}},[t._v("驳回")])],1)],2)],1)},n=[],i=a("c7eb"),r=(a("96cf"),a("1da1")),l=(a("ac6a"),a("5530")),o=a("2223"),c=a("8e44"),u=a("44f1"),m=a("2f62"),d=a("f72b"),_=a("ed08"),p={components:{MemberInfo:d["default"]},filters:{str:function(t){if(t)return t.slice(0,16)}},data:function(){var t=this.$route.meta.buttonAuthList?this.$route.meta.buttonAuthList:[];return{id:"",roles:t,dialogSalon:!1,screenWidth:"",item:{},isH:!1,searchParams:{page_index:1,page_size:10,state:"",search_name:""},salonForm:{sale_num:"",agent_num:"",actual_num:""},collectionImg:[],sharonImg:[],dialogBack:!1,reason:"",list:[],total:0,memberInfo:{realname:"",level:""},visible:{memberInfo:!1}}},computed:Object(l["a"])({},Object(m["c"])(["user"])),created:function(){Object(_["e"])()||(this.isH=!0),this.levelStatus=u["c"],this.getList()},methods:{getImg:function(t){var e=[],a=[];t.img.forEach((function(t){1===t.type?e.push(t.img):a.push(t.img)})),this.collectionImg=e,this.sharonImg=a,this.dialogSalon=!0,this.salonForm=t},getTime:function(t){var e=new Date(t.end_at),a=e.getTime(),s=(new Date).getTime();return 1===t.state&&s