Commit 842de42c authored by wangwei's avatar wangwei

后台修改

parent 40fbb798
......@@ -12,8 +12,8 @@ module.exports = {
//本地代理设置
proxyTable: {
'/api': {
target: 'http://local.base-api.sing.com', // 接口的域名
// target: 'https://wechat-test.changchangenglish.com/',
// target: 'http://local.base-api.sing.com', // 接口的域名
target: 'https://wechat-test.changchangenglish.com/',
changeOrigin: true, // 如果接口跨域,需要进行这个参数配置
}
},
......
<!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><meta name=referrer content=never><link rel=stylesheet href=https:////at.alicdn.com/t/font_746649_x1rivf5f5.css><link rel=stylesheet href=https://unpkg.com/element-ui@2.4.9/lib/theme-chalk/index.css><title>唱唱启蒙-后台</title></head><body><script src=https://unpkg.com/vue@2.5.17/dist/vue.js></script><script src=https://unpkg.com/vuex@3.0.1/dist/vuex.min.js></script><script src=https://unpkg.com/axios@0.18.0/dist/axios.min.js></script><script src=https://unpkg.com/element-ui@2.4.9/lib/index.js></script><div id=app></div><script type=text/javascript src=/static/js/manifest.994daa76388effbf5c83.js></script><script type=text/javascript src=/static/js/vendor.19b07206259747695190.js></script><script type=text/javascript src=/static/js/app.a66b396d56a4c6f8f7a7.js></script></body><script>let el = document.getElementsByTagName("script");
<!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><meta name=referrer content=never><link rel=stylesheet href=https:////at.alicdn.com/t/font_746649_x1rivf5f5.css><link rel=stylesheet href=https://unpkg.com/element-ui@2.4.9/lib/theme-chalk/index.css><title>唱唱启蒙-后台</title></head><body><script src=https://unpkg.com/vue@2.5.17/dist/vue.js></script><script src=https://unpkg.com/vuex@3.0.1/dist/vuex.min.js></script><script src=https://unpkg.com/axios@0.18.0/dist/axios.min.js></script><script src=https://unpkg.com/element-ui@2.4.9/lib/index.js></script><div id=app></div><script type=text/javascript src=/static/js/manifest.74e3fb33f3831396890c.js></script><script type=text/javascript src=/static/js/vendor.19b07206259747695190.js></script><script type=text/javascript src=/static/js/app.a66b396d56a4c6f8f7a7.js></script></body><script>let el = document.getElementsByTagName("script");
el.onerror = function(a,b,c){
console.log('error:',a,b,c);
};
......
This source diff could not be displayed because it is too large. You can view the blob instead.
webpackJsonp([10],{"24Av":function(n,e,t){var a=t("yWpl");"string"==typeof a&&(a=[[n.i,a,""]]),a.locals&&(n.exports=a.locals);t("rjj0")("6389d74b",a,!1,{})},"3o3x":function(n,e,t){(n.exports=t("FZ+f")(!0)).push([n.i,'\n.search-btn-block[data-v-beb21cdc] {\n margin-left: 20px;\n}\n.search-form[data-v-beb21cdc] {\n background: white;\n padding: 10px;\n margin: 10px 0;\n}\n.new-block[data-v-beb21cdc] {\n margin: 10px;\n text-align: right;\n}\n.fl-r[data-v-beb21cdc] {\n float: right;\n}\n.text-c[data-v-beb21cdc] {\n text-align: center;\n}\n.text-b[data-v-beb21cdc] {\n font-weight: bold;\n}\n.color-b[data-v-beb21cdc] {\n color: #6ba8e6;\n}\n.text-r[data-v-beb21cdc] {\n text-align: right;\n}\n.main-block[data-v-beb21cdc] {\n margin: 5px;\n background: white;\n padding: 5px;\n}\nhtml[data-v-beb21cdc] {\n font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "\\5FAE\\8F6F\\96C5\\9ED1", Arial, sans-serif;\n}\n.clear-both[data-v-beb21cdc]:after {\n content: \'\';\n display: block;\n clear: both;\n}\n[data-v-beb21cdc]::-webkit-scrollbar-track-piece {\n border-radius: 10px;\n}\n[data-v-beb21cdc]::-webkit-scrollbar {\n width: 5px;\n height: 5px;\n}\n[data-v-beb21cdc]::-webkit-scrollbar-thumb {\n background-color: #999;\n border-radius: 10px;\n height: 10px;\n min-height: 10px;\n}\n.avatar[data-v-beb21cdc] {\n width: 50px;\n min-width: 50px;\n height: 50px;\n margin-right: 5px;\n border-radius: 50%;\n}\n',"",{version:3,sources:["D:/myproject/changchang-admin-new/src/components/integral/index.vue"],names:[],mappings:";AACA;EACE,kBAAkB;CACnB;AACD;EACE,kBAAkB;EAClB,cAAc;EACd,eAAe;CAChB;AACD;EACE,aAAa;EACb,kBAAkB;CACnB;AACD;EACE,aAAa;CACd;AACD;EACE,mBAAmB;CACpB;AACD;EACE,kBAAkB;CACnB;AACD;EACE,eAAe;CAChB;AACD;EACE,kBAAkB;CACnB;AACD;EACE,YAAY;EACZ,kBAAkB;EAClB,aAAa;CACd;AACD;EACE,0IAA0H;CAC3H;AACD;EACE,YAAY;EACZ,eAAe;EACf,YAAY;CACb;AACD;EACE,oBAAoB;CACrB;AACD;EACE,WAAW;EACX,YAAY;CACb;AACD;EACE,uBAAuB;EACvB,oBAAoB;EACpB,aAAa;EACb,iBAAiB;CAClB;AACD;EACE,YAAY;EACZ,gBAAgB;EAChB,aAAa;EACb,kBAAkB;EAClB,mBAAmB;CACpB",file:"index.vue",sourcesContent:['\n.search-btn-block[data-v-beb21cdc] {\n margin-left: 20px;\n}\n.search-form[data-v-beb21cdc] {\n background: white;\n padding: 10px;\n margin: 10px 0;\n}\n.new-block[data-v-beb21cdc] {\n margin: 10px;\n text-align: right;\n}\n.fl-r[data-v-beb21cdc] {\n float: right;\n}\n.text-c[data-v-beb21cdc] {\n text-align: center;\n}\n.text-b[data-v-beb21cdc] {\n font-weight: bold;\n}\n.color-b[data-v-beb21cdc] {\n color: #6ba8e6;\n}\n.text-r[data-v-beb21cdc] {\n text-align: right;\n}\n.main-block[data-v-beb21cdc] {\n margin: 5px;\n background: white;\n padding: 5px;\n}\nhtml[data-v-beb21cdc] {\n font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;\n}\n.clear-both[data-v-beb21cdc]:after {\n content: \'\';\n display: block;\n clear: both;\n}\n[data-v-beb21cdc]::-webkit-scrollbar-track-piece {\n border-radius: 10px;\n}\n[data-v-beb21cdc]::-webkit-scrollbar {\n width: 5px;\n height: 5px;\n}\n[data-v-beb21cdc]::-webkit-scrollbar-thumb {\n background-color: #999;\n border-radius: 10px;\n height: 10px;\n min-height: 10px;\n}\n.avatar[data-v-beb21cdc] {\n width: 50px;\n min-width: 50px;\n height: 50px;\n margin-right: 5px;\n border-radius: 50%;\n}\n'],sourceRoot:""}])},CtjZ:function(n,e,t){(n.exports=t("FZ+f")(!0)).push([n.i,"\n.f-c > .cell {\n display: -webkit-box !important;\n display: -ms-flexbox !important;\n display: flex !important;\n -webkit-box-orient: horizontal;\n -webkit-box-direction: normal;\n -ms-flex-flow: row;\n flex-flow: row;\n -webkit-box-pack: start;\n -ms-flex-pack: start;\n justify-content: flex-start;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n}\n","",{version:3,sources:["D:/myproject/changchang-admin-new/src/components/integral/index.vue"],names:[],mappings:";AACA;EACE,gCAAgC;EAChC,gCAAgC;EAChC,yBAAyB;EACzB,+BAA+B;EAC/B,8BAA8B;MAC1B,mBAAmB;UACf,eAAe;EACvB,wBAAwB;MACpB,qBAAqB;UACjB,4BAA4B;EACpC,0BAA0B;MACtB,uBAAuB;UACnB,oBAAoB;CAC7B",file:"index.vue",sourcesContent:["\n.f-c > .cell {\n display: -webkit-box !important;\n display: -ms-flexbox !important;\n display: flex !important;\n -webkit-box-orient: horizontal;\n -webkit-box-direction: normal;\n -ms-flex-flow: row;\n flex-flow: row;\n -webkit-box-pack: start;\n -ms-flex-pack: start;\n justify-content: flex-start;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n}\n"],sourceRoot:""}])},NDyu:function(n,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=t("CCn6"),i=t("+TkF"),r=t("kmJW"),s={name:"newIntegral",props:["newIntegral"],data:function(){var n=[];for(var e in i.i)n.push({id:e,value:i.i[e]});return{is_addOption:n}},methods:{onAdd:function(){this.newIntegral.user_id&&""!==this.newIntegral.user_id?this.newIntegral.is_add&&""!==this.newIntegral.is_add?this.newIntegral.value&&""!==this.newIntegral.value?this.newIntegral.desc&&""!==this.newIntegral.desc?this.$emit("subAdd"):this.$message("请填写描述"):this.$message("请填写积分值"):this.$message("请选择积分类型"):this.$message("请填写用户ID")},showUserList:function(){this.$emit("showUserList")}}},o=function(){var n=this,e=n.$createElement,t=n._self._c||e;return t("el-dialog",{attrs:{visible:n.newIntegral.show,width:"800px",center:"",title:"积分变更"},on:{"update:visible":function(e){n.$set(n.newIntegral,"show",e)}}},[t("el-form",{attrs:{"label-width":"150px"}},[t("el-form-item",{attrs:{label:"用户ID"}},[t("el-row",{attrs:{gutter:20}},[t("el-col",{attrs:{span:14}},[t("el-input",{model:{value:n.newIntegral.user_id,callback:function(e){n.$set(n.newIntegral,"user_id",e)},expression:"newIntegral.user_id"}})],1),n._v(" "),t("el-col",{attrs:{span:6}},[t("el-button",{on:{click:n.showUserList}},[n._v("查询")])],1)],1)],1),n._v(" "),t("el-form-item",{attrs:{label:"积分类型"}},[t("el-row",{attrs:{gutter:20}},[t("el-col",{attrs:{span:20}},[t("el-select",{model:{value:n.newIntegral.is_add,callback:function(e){n.$set(n.newIntegral,"is_add",e)},expression:"newIntegral.is_add"}},n._l(n.is_addOption,function(n,e){return t("el-option",{key:e,attrs:{label:n.value,value:n.id}})}))],1)],1)],1),n._v(" "),t("el-form-item",{attrs:{label:"积分值"}},[t("el-row",{attrs:{gutter:20}},[t("el-col",{attrs:{span:20}},[t("el-input-number",{model:{value:n.newIntegral.value,callback:function(e){n.$set(n.newIntegral,"value",e)},expression:"newIntegral.value"}})],1)],1)],1),n._v(" "),t("el-form-item",{attrs:{label:"描述【用户可见】"}},[t("el-row",{attrs:{gutter:20}},[t("el-col",{attrs:{span:20}},[t("el-input",{model:{value:n.newIntegral.desc,callback:function(e){n.$set(n.newIntegral,"desc",e)},expression:"newIntegral.desc"}})],1)],1)],1)],1),n._v(" "),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{on:{click:function(e){n.newIntegral.show=!1}}},[n._v("取 消")]),n._v(" "),t("el-button",{attrs:{type:"primary"},on:{click:n.onAdd}},[n._v("确 定")])],1)],1)};o._withStripped=!0;var l={render:o,staticRenderFns:[]},c=l;var d=!1;var u=t("VU/8")(s,c,!1,function(n){d||t("24Av")},"data-v-718e312c",null);u.options.__file="src\\components\\integral\\newIntegral.vue";var m=u.exports,b={name:"userList",props:["show"],components:{page:r.a},data:function(){return{userList:[],form:{userId:"",nickName:"",mobile:""},nowPage:1,limit:5,total:0,multipleSelection:null}},methods:{handleCurrentChange:function(n){n&&(this.multipleSelection=n.user_id)},onAdd:function(){this.multipleSelection?this.$emit("addUser",this.multipleSelection):this.$message("请点击选择用户")},onPageChange:function(n){this.nowPage=n,this.getUserList()},onSizeChange:function(n){this.limit=n,this.nowPage=1,this.getUserList()},getUserList:function(){var n=this,e={page:this.nowPage,limit:this.limit};this.form.userId&&(e.user_id=this.form.userId),this.form.nickName&&(e.nickname=this.form.nickName),this.form.mobile&&(e.mobile=this.form.mobile),Object(a._69)(e).then(function(e){n.userList=e.list,n.total=e.total})},initPage:function(){this.multipleSelection=null,this.form={userId:"",nickName:"",mobile:""},this.getUserList()}},watch:{"show.show":function(n){n&&this.initPage()}}},f=function(){var n=this,e=n.$createElement,t=n._self._c||e;return t("el-dialog",{attrs:{visible:n.show.show,width:"700px",center:"",title:"用户列表"},on:{"update:visible":function(e){n.$set(n.show,"show",e)}}},[t("el-form",{attrs:{"label-width":"40px",inline:""}},[t("el-form-item",{attrs:{label:"ID"}},[t("el-input",{model:{value:n.form.userId,callback:function(e){n.$set(n.form,"userId",e)},expression:"form.userId"}})],1),n._v(" "),t("el-form-item",{attrs:{label:"昵称"}},[t("el-input",{model:{value:n.form.nickName,callback:function(e){n.$set(n.form,"nickName",e)},expression:"form.nickName"}})],1),n._v(" "),t("el-form-item",{attrs:{label:"电话"}},[t("el-input",{model:{value:n.form.mobile,callback:function(e){n.$set(n.form,"mobile",e)},expression:"form.mobile"}})],1),n._v(" "),t("el-form-item",[t("el-button",{staticStyle:{float:"right"},attrs:{type:"primary",plain:""},on:{click:n.getUserList}},[n._v("搜索")])],1)],1),n._v(" "),t("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:n.userList,"highlight-current-row":""},on:{"current-change":n.handleCurrentChange}},[t("el-table-column",{attrs:{className:"f-c",label:"用户"},scopedSlots:n._u([{key:"default",fn:function(e){return[t("img",{staticStyle:{"margin-right":"5px",width:"50px",height:"50px","border-radius":"50px"},attrs:{src:e.row.avatar}}),n._v(n._s(e.row.nickname)+"(ID:"+n._s(e.row.user_id)+")\n ")]}}])}),n._v(" "),t("el-table-column",{attrs:{prop:"mobile",label:"手机号"}})],1),n._v(" "),t("page",{attrs:{nowPage:n.nowPage,total:n.total,limit:n.limit},on:{pageChange:n.onPageChange,sizeChange:n.onSizeChange}}),n._v(" "),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{on:{click:function(e){n.show.show=!1}}},[n._v("取 消")]),n._v(" "),t("el-button",{attrs:{type:"primary"},on:{click:n.onAdd}},[n._v("确 定")])],1)],1)};f._withStripped=!0;var h={render:f,staticRenderFns:[]},p=h;var g=!1;var A=t("VU/8")(b,p,!1,function(n){g||t("zDTg")},"data-v-551038f9",null);A.options.__file="src\\components\\integral\\userList.vue";var v=A.exports,w={name:"index",components:{page:r.a,newIntegral:m,userListPage:v},data:function(){var n=[];for(var e in i.i)n.push({id:e,value:i.i[e]});var t=[];for(var a in i.h)t.push({id:a,value:i.h[a]});return{list:[],total:0,newIntegral:{show:!1,user_id:"",is_add:"",value:"",desc:""},is_addOption:n,sourceOption:t,limit:10,userListShow:{show:!1},nowPage:1,form:{is_add:"1",source:"",user_id:"",mobile:"",nickname:""}}},mounted:function(){this.initPage()},filters:{INTEGRALTYPE:function(n){return i.i[n]},INTEGRALFUN:function(n){return i.h[n]}},methods:{subAdd:function(){var n=this,e={user_id:this.newIntegral.user_id,is_add:this.newIntegral.is_add,value:this.newIntegral.value,desc:this.newIntegral.desc};Object(a.v)(e).then(function(e){n.getList(),n.newIntegral.show=!1})},showUserList:function(){this.userListShow.show=!0},addUser:function(n){this.userListShow.show=!1,this.newIntegral.user_id=n},changeUserList:function(){},addIntegral:function(){this.newIntegral={show:!0,user_id:"",is_add:"",value:"",desc:""}},initPage:function(){this.form={is_add:"1",source:"",user_id:"",mobile:"",nickname:""},this.getList()},onPageChange:function(n){this.nowPage=n,this.getList()},onSizeChange:function(n){this.limit=n,this.nowPage=1,this.getList()},getList:function(){var n=this,e={limit:this.limit,page:this.nowPage};""!==this.form.is_add&&(e.is_add=this.form.is_add),""!==this.form.source&&(e.source=this.form.source),""!==this.form.user_id&&(e.user_id=this.form.user_id),""!==this.form.mobile&&(e.mobile=this.form.mobile),""!==this.form.nickname&&(e.nickname=this.form.nickname),Object(a._38)(e).then(function(e){n.list=e.list,n.total=e.total})}}},C=function(){var n=this,e=n.$createElement,t=n._self._c||e;return t("div",{staticClass:"integral-page"},[t("el-form",{ref:"searchFrom",staticStyle:{"padding-top":"20px",background:"white"},attrs:{model:n.form,"label-width":"100px",inline:""}},[t("el-form-item",{attrs:{label:"昵称"}},[t("el-input",{model:{value:n.form.nickname,callback:function(e){n.$set(n.form,"nickname",e)},expression:"form.nickname"}})],1),n._v(" "),t("el-form-item",{attrs:{label:"用户ID"}},[t("el-input",{model:{value:n.form.user_id,callback:function(e){n.$set(n.form,"user_id",e)},expression:"form.user_id"}})],1),n._v(" "),t("el-form-item",{attrs:{label:"手机号"}},[t("el-input",{model:{value:n.form.mobile,callback:function(e){n.$set(n.form,"mobile",e)},expression:"form.mobile"}})],1),n._v(" "),t("el-form-item",{attrs:{label:"获/抵方式"}},[t("el-select",{attrs:{clearable:""},on:{change:n.getList},model:{value:n.form.source,callback:function(e){n.$set(n.form,"source",e)},expression:"form.source"}},n._l(n.sourceOption,function(n,e){return t("el-option",{key:e,attrs:{label:n.value,value:n.id}})}))],1),n._v(" "),t("el-form-item",[t("el-button",{attrs:{type:"primary",plain:""},on:{click:n.getList}},[n._v("搜索")])],1)],1),n._v(" "),n.$store.state.readonly?n._e():t("div",{staticClass:"new-block"},[t("el-button",{attrs:{type:"success",plain:""},on:{click:n.addIntegral}},[n._v("变更用户积分")])],1),n._v(" "),t("el-tabs",{staticStyle:{background:"white","padding-top":"10px"},attrs:{type:"card"},on:{"tab-click":n.getList},model:{value:n.form.is_add,callback:function(e){n.$set(n.form,"is_add",e)},expression:"form.is_add"}},[t("el-tab-pane",{attrs:{label:"添加积分",name:"1"}}),n._v(" "),t("el-tab-pane",{attrs:{label:"减少积分",name:"0"}})],1),n._v(" "),t("el-table",{staticStyle:{width:"100%"},attrs:{data:n.list}},[t("el-table-column",{attrs:{width:"220",className:"f-c",label:"用户"},scopedSlots:n._u([{key:"default",fn:function(e){return[t("img",{staticClass:"avatar",attrs:{src:e.row.avatar}}),n._v(" "+n._s(e.row.nickname)+"(ID:"+n._s(e.row.user_id)+")"),t("br"),n._v("手机:"+n._s(e.row.mobile)+"\n ")]}}])}),n._v(" "),t("el-table-column",{attrs:{label:"来源"},scopedSlots:n._u([{key:"default",fn:function(e){return[n._v("\n "+n._s(n._f("INTEGRALFUN")(e.row.source))+"\n ")]}}])}),n._v(" "),t("el-table-column",{attrs:{prop:"desc",label:"积分变更描述"}}),n._v(" "),t("el-table-column",{attrs:{label:"变更积分值"},scopedSlots:n._u([{key:"default",fn:function(e){return[1===e.row.is_add?t("span",{staticStyle:{color:"green"}},[n._v("+"+n._s(e.row.value))]):n._e(),n._v(" "),0===e.row.is_add?t("span",{staticStyle:{color:"red"}},[n._v("-"+n._s(e.row.value))]):n._e()]}}])}),n._v(" "),t("el-table-column",{attrs:{prop:"last_value",label:"变更后积分值"}}),n._v(" "),t("el-table-column",{attrs:{prop:"created_at",label:"创建时间"}})],1),n._v(" "),t("page",{attrs:{nowPage:n.nowPage,total:n.total,limit:n.limit},on:{pageChange:n.onPageChange,sizeChange:n.onSizeChange}}),n._v(" "),t("new-integral",{attrs:{newIntegral:n.newIntegral},on:{subAdd:n.subAdd,showUserList:n.showUserList}}),n._v(" "),t("user-list-page",{attrs:{show:n.userListShow},on:{addUser:n.addUser}})],1)};C._withStripped=!0;var _={render:C,staticRenderFns:[]},x=_;var k=!1;var B=t("VU/8")(w,x,!1,function(n){k||(t("wk0a"),t("WUeu"))},"data-v-beb21cdc",null);B.options.__file="src\\components\\integral\\index.vue";e.default=B.exports},UrNJ:function(n,e,t){(n.exports=t("FZ+f")(!0)).push([n.i,"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n","",{version:3,sources:[],names:[],mappings:"",file:"userList.vue",sourceRoot:""}])},WUeu:function(n,e,t){var a=t("CtjZ");"string"==typeof a&&(a=[[n.i,a,""]]),a.locals&&(n.exports=a.locals);t("rjj0")("d0ddde46",a,!1,{})},wk0a:function(n,e,t){var a=t("3o3x");"string"==typeof a&&(a=[[n.i,a,""]]),a.locals&&(n.exports=a.locals);t("rjj0")("f41e3bc8",a,!1,{})},yWpl:function(n,e,t){(n.exports=t("FZ+f")(!0)).push([n.i,"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n","",{version:3,sources:[],names:[],mappings:"",file:"newIntegral.vue",sourceRoot:""}])},zDTg:function(n,e,t){var a=t("UrNJ");"string"==typeof a&&(a=[[n.i,a,""]]),a.locals&&(n.exports=a.locals);t("rjj0")("11f77d8c",a,!1,{})}});
\ No newline at end of file
webpackJsonp([13],{"3V9n":function(n,e,t){var a=t("b/O8");"string"==typeof a&&(a=[[n.i,a,""]]),a.locals&&(n.exports=a.locals);t("rjj0")("6af27cf0",a,!1,{})},"4Kgm":function(n,e,t){var a=t("SOnj");"string"==typeof a&&(a=[[n.i,a,""]]),a.locals&&(n.exports=a.locals);t("rjj0")("4c9a8162",a,!1,{})},CvLZ:function(n,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=t("CCn6"),i=t("+TkF"),o=t("kmJW"),s={name:"add",data:function(){return{pickerOptions0:{disabledDate:function(n){return n.getTime()<Date.now()-864e5}}}},props:["newIntegral","goodsList"],methods:{reSetForm:function(){this.$refs.newIntegral.resetFields()},onAdd:function(){var n=this;this.$refs.newIntegral.validate(function(e){e&&(n.newIntegral.id?n.$emit("subEdit"):n.$emit("subAdd"))})}},watch:{"newIntegral.show":function(n){var e=this;n&&!this.newIntegral.id&&this.$nextTick(function(){e.reSetForm()})}}},r=function(){var n=this,e=n.$createElement,t=n._self._c||e;return t("el-dialog",{attrs:{visible:n.newIntegral.show,width:"800px",center:"",title:n.newIntegral.id?"修改兑换码":"生成兑换码"},on:{"update:visible":function(e){n.$set(n.newIntegral,"show",e)}}},[t("el-form",{ref:"newIntegral",attrs:{"label-width":"150px",model:n.newIntegral}},[t("el-form-item",{attrs:{label:"名称",prop:"name",rules:[{required:!0,message:"请输入名称",trigger:"blur"}]}},[t("el-row",{attrs:{gutter:20}},[t("el-col",{attrs:{span:20}},[t("el-input",{model:{value:n.newIntegral.name,callback:function(e){n.$set(n.newIntegral,"name",e)},expression:"newIntegral.name"}})],1)],1)],1),n._v(" "),t("el-form-item",{attrs:{label:"商品",prop:"goods_id",rules:[{required:!0,message:"请选择商品",trigger:"change"}]}},[t("el-row",{attrs:{gutter:20}},[t("el-col",{attrs:{span:20}},[t("el-select",{model:{value:n.newIntegral.goods_id,callback:function(e){n.$set(n.newIntegral,"goods_id",e)},expression:"newIntegral.goods_id"}},n._l(n.goodsList,function(n){return t("el-option",{key:n.id,attrs:{label:"【"+n.id+"】"+n.name,value:n.id}})}))],1)],1)],1),n._v(" "),t("el-form-item",{attrs:{label:"数量",prop:"num",rules:[{required:!0,message:"请输入数量",trigger:"blur"}]}},[t("el-row",{attrs:{gutter:20}},[t("el-col",{attrs:{span:20}},[t("el-input-number",{model:{value:n.newIntegral.num,callback:function(e){n.$set(n.newIntegral,"num",e)},expression:"newIntegral.num"}})],1)],1)],1),n._v(" "),t("el-form-item",{attrs:{label:"失效时间",prop:"expire_at",rules:[{required:!0,message:"请选择失效时间",trigger:"change"}]}},[t("el-row",{attrs:{gutter:20}},[t("el-col",{attrs:{span:20}},[t("el-date-picker",{attrs:{type:"datetime",format:"yyyy-MM-dd HH:mm:ss","value-format":"yyyy-MM-dd HH:mm:ss","picker-options":n.pickerOptions0,placeholder:"选择日期"},model:{value:n.newIntegral.expire_at,callback:function(e){n.$set(n.newIntegral,"expire_at",e)},expression:"newIntegral.expire_at"}})],1)],1)],1),n._v(" "),t("el-form-item",{attrs:{label:"备注",prop:"desc",rules:[{required:!0,message:"请填写备注信息",trigger:"blur"}]}},[t("el-row",{attrs:{gutter:20}},[t("el-col",{attrs:{span:20}},[t("el-input",{model:{value:n.newIntegral.desc,callback:function(e){n.$set(n.newIntegral,"desc",e)},expression:"newIntegral.desc"}})],1)],1)],1)],1),n._v(" "),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{on:{click:function(e){n.newIntegral.show=!1}}},[n._v("取 消")]),n._v(" "),t("el-button",{attrs:{type:"primary"},on:{click:n.onAdd}},[n._v("确 定")])],1)],1)};r._withStripped=!0;var l={render:r,staticRenderFns:[]},d=l;var c=!1;var g=t("VU/8")(s,d,!1,function(n){c||t("a/v8")},"data-v-2582bd58",null);g.options.__file="src\\components\\exchange\\add.vue";var u=g.exports,m={name:"list",components:{page:o.a},props:["detailList"],data:function(){return{limit:10,list:[],form:{user_id:"",exchange_code:"",is_exchange:""},totalPage:0,nowPage:1}},methods:{initPage:function(){this.form={user_id:"",exchange_code:"",is_exchange:""},this.getList()},onPageChange:function(n){this.nowPage=n,this.getList()},onSizeChange:function(n){this.limit=n,this.nowPage=1,this.getList()},exprotList:function(){var n={};""!==this.form.is_exchange&&(n.is_exchange=this.form.is_exchange),""!==this.form.user_id&&(n.user_id=this.form.user_id),Object(a._11)("/api/admin/exchange/export/"+this.detailList.id,n)},getList:function(){var n=this,e={limit:this.limit,page:this.nowPage};""!==this.form.is_exchange&&(e.is_exchange=this.form.is_exchange),""!==this.form.user_id&&(e.user_id=this.form.user_id),""!==this.form.exchange_code&&(e.exchange_code=this.form.exchange_code),Object(a._10)(this.detailList.id,e).then(function(e){n.list=e.list,n.totalPage=e.total})}},watch:{"detailList.show":function(n){n&&this.initPage()}}},p=function(){var n=this,e=n.$createElement,t=n._self._c||e;return t("el-dialog",{attrs:{visible:n.detailList.show,width:"1200px",center:"",title:"详细纪录"},on:{"update:visible":function(e){n.$set(n.detailList,"show",e)}}},[t("el-form",{attrs:{"label-width":"80px",inline:""}},[t("el-form-item",{attrs:{label:"用户ID"}},[t("el-input",{attrs:{size:"small"},model:{value:n.form.user_id,callback:function(e){n.$set(n.form,"user_id",e)},expression:"form.user_id"}})],1),n._v(" "),t("el-form-item",{attrs:{label:"激活码"}},[t("el-input",{attrs:{size:"small"},model:{value:n.form.exchange_code,callback:function(e){n.$set(n.form,"exchange_code",e)},expression:"form.exchange_code"}})],1),n._v(" "),t("el-form-item",{attrs:{label:"是否激活"}},[t("el-select",{attrs:{size:"small"},model:{value:n.form.is_exchange,callback:function(e){n.$set(n.form,"is_exchange",e)},expression:"form.is_exchange"}},[t("el-option",{attrs:{label:"是",value:1}}),n._v(" "),t("el-option",{attrs:{label:"否",value:0}})],1)],1),n._v(" "),t("el-form-item",[t("el-button",{attrs:{size:"small",type:"primary"},on:{click:n.getList}},[n._v("搜索")]),n._v(" "),t("el-button",{attrs:{size:"small",type:"success"},on:{click:n.exprotList}},[n._v("导出")])],1)],1),n._v(" "),t("el-table",{staticStyle:{width:"100%"},attrs:{data:n.list}},[t("el-table-column",{attrs:{label:"用户信息"},scopedSlots:n._u([{key:"default",fn:function(e){return[0===e.row.user_id?t("div",[n._v("暂无")]):n._e(),n._v(" "),0!==e.row.user_id?t("div",{staticStyle:{display:"flex"}},[t("img",{staticStyle:{width:"40px","margin-right":"5px","min-width":"40px",height:"40px","border-radius":"50px"},attrs:{src:e.row.user_avatar}}),n._v(" "+n._s(e.row.user_nickname)+"(ID:"+n._s(e.row.user_id)+")\n "),t("br"),n._v(" Tel:"+n._s(e.row.user_mobile)+"\n ")]):n._e()]}}])}),n._v(" "),t("el-table-column",{attrs:{prop:"exchange_no",label:"兑换码"}}),n._v(" "),t("el-table-column",{attrs:{label:"商品"},scopedSlots:n._u([{key:"default",fn:function(e){return[n._v("\n 【"+n._s(e.row.goods_id)+"】"+n._s(e.row.goods_name)+"\n ")]}}])}),n._v(" "),t("el-table-column",{attrs:{prop:"expire_at",label:"失效时间"}}),n._v(" "),t("el-table-column",{attrs:{prop:"exchange_at",label:"兑换时间"},scopedSlots:n._u([{key:"default",fn:function(e){return["0000-00-00 00:00:00"!==e.row.exchange_at?t("span",[n._v(n._s(e.row.exchange_at))]):n._e(),n._v(" "),"0000-00-00 00:00:00"===e.row.exchange_at?t("span",{staticStyle:{color:"red"}},[n._v("尚未兑换")]):n._e()]}}])})],1),n._v(" "),t("page",{attrs:{nowPage:n.nowPage,total:n.totalPage,limit:n.limit},on:{pageChange:n.onPageChange,sizeChange:n.onSizeChange}})],1)};p._withStripped=!0;var h={render:p,staticRenderFns:[]},f=h;var A=!1;var _=t("VU/8")(m,f,!1,function(n){A||t("4Kgm")},"data-v-27536d77",null);_.options.__file="src\\components\\exchange\\list.vue";var b=_.exports,v={name:"index",components:{page:o.a,addExchange:u,listDetail:b},data:function(){var n=[];for(var e in i.i)n.push({id:e,value:i.i[e]});var t=[];for(var a in i.h)t.push({id:a,value:i.h[a]});return{list:[],total:0,detailList:{show:!1,user_id:"",is_exchange:"",id:null},newIntegral:{show:!1,goods_id:"",num:"",expire_at:"",desc:"",id:null},goodsList:[],is_addOption:n,sourceOption:t,limit:10,userListShow:{show:!1},nowPage:1,form:{name:"",goods_id:""}}},mounted:function(){this.initPage()},methods:{onDetail:function(n){this.detailList={show:!0,user_id:"",is_exchange:"",id:n.id}},onEdit:function(n){this.newIntegral={show:!0,goods_id:n.goods_id,num:n.num,expire_at:n.expire_at,desc:n.desc,name:n.name,id:n.id}},subEdit:function(){var n=this,e={goods_id:this.newIntegral.goods_id,num:this.newIntegral.num,expire_at:this.newIntegral.expire_at,desc:this.newIntegral.desc,name:this.newIntegral.name};Object(a._0)(this.newIntegral.id,e).then(function(e){n.$message({message:"数据修改成功",type:"success"}),n.getList(),n.newIntegral.show=!1})},subAdd:function(){var n=this,e={goods_id:this.newIntegral.goods_id,num:this.newIntegral.num,expire_at:this.newIntegral.expire_at,desc:this.newIntegral.desc,name:this.newIntegral.name};Object(a.i)(e).then(function(e){n.$message({message:"数据添加成功",type:"success"}),n.getList(),n.newIntegral.show=!1})},showUserList:function(){this.userListShow.show=!0},addUser:function(n){this.userListShow.show=!1,this.newIntegral.user_id=n},changeUserList:function(){},addIntegral:function(){this.newIntegral={show:!0,goods_id:"",num:"",expire_at:"",name:"",id:null,desc:""}},initPage:function(){this.form={name:"",goods_id:""},this.getGood(),this.getList()},getGood:function(){var n=this;Object(a._37)({limit:1e3}).then(function(e){n.goodsList=e.list})},onPageChange:function(n){this.nowPage=n,this.getList()},onSizeChange:function(n){this.limit=n,this.nowPage=1,this.getList()},getList:function(){var n=this,e={limit:this.limit,page:this.nowPage};""!==this.form.name&&(e.name=this.form.name),""!==this.form.goods_id&&(e.goods_id=this.form.goods_id),Object(a._35)(e).then(function(e){n.list=e.list,n.total=e.total})}}},w=function(){var n=this,e=n.$createElement,t=n._self._c||e;return t("div",{staticClass:"integral-page"},[t("el-form",{ref:"searchFrom",staticStyle:{"padding-top":"20px",background:"white"},attrs:{model:n.form,"label-width":"100px",inline:""}},[t("el-form-item",{attrs:{label:"标题"}},[t("el-input",{model:{value:n.form.name,callback:function(e){n.$set(n.form,"name",e)},expression:"form.name"}})],1),n._v(" "),t("el-form-item",{attrs:{label:"商品"}},[t("el-select",{model:{value:n.form.goods_id,callback:function(e){n.$set(n.form,"goods_id",e)},expression:"form.goods_id"}},n._l(n.goodsList,function(n){return t("el-option",{key:n.id,attrs:{label:"【"+n.id+"】"+n.name,value:n.id}})}))],1),n._v(" "),t("el-form-item",[t("el-button",{attrs:{type:"primary",plain:""},on:{click:n.getList}},[n._v("搜索")])],1)],1),n._v(" "),n.$store.state.readonly?n._e():t("div",{staticClass:"new-block"},[t("el-button",{attrs:{type:"success",plain:""},on:{click:n.addIntegral}},[n._v("生成兑换码")])],1),n._v(" "),t("el-table",{staticStyle:{width:"100%"},attrs:{data:n.list}},[t("el-table-column",{attrs:{prop:"name",label:"名称"}}),n._v(" "),t("el-table-column",{attrs:{prop:"goods_name",label:"商品"},scopedSlots:n._u([{key:"default",fn:function(e){return[n._v("\n 【"+n._s(e.row.goods_id)+"】"+n._s(e.row.goods_name)+"\n ")]}}])}),n._v(" "),t("el-table-column",{attrs:{prop:"num",label:"数量"}}),n._v(" "),t("el-table-column",{attrs:{prop:"desc",label:"备注"}}),n._v(" "),t("el-table-column",{attrs:{prop:"expire_at",label:"失效时间"}}),n._v(" "),t("el-table-column",{attrs:{prop:"created_at",label:"创建时间"}}),n._v(" "),t("el-table-column",{attrs:{label:"操作",width:"180"},scopedSlots:n._u([{key:"default",fn:function(e){return[t("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){n.onDetail(e.row)}}},[n._v("查看详情")]),n._v(" "),t("el-button",{attrs:{type:"warning",size:"mini"},on:{click:function(t){n.onEdit(e.row)}}},[n._v("编辑")])]}}])})],1),n._v(" "),t("page",{attrs:{nowPage:n.nowPage,total:n.total,limit:n.limit},on:{pageChange:n.onPageChange,sizeChange:n.onSizeChange}}),n._v(" "),t("add-exchange",{ref:"add_page",attrs:{newIntegral:n.newIntegral,goodsList:n.goodsList},on:{subAdd:n.subAdd,subEdit:n.subEdit}}),n._v(" "),t("list-detail",{attrs:{detailList:n.detailList}})],1)};w._withStripped=!0;var x={render:w,staticRenderFns:[]},C=x;var k=!1;var B=t("VU/8")(v,C,!1,function(n){k||(t("3V9n"),t("vRPh"))},"data-v-42e27d6e",null);B.options.__file="src\\components\\exchange\\index.vue";e.default=B.exports},SOnj:function(n,e,t){(n.exports=t("FZ+f")(!0)).push([n.i,"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n","",{version:3,sources:[],names:[],mappings:"",file:"list.vue",sourceRoot:""}])},"a/v8":function(n,e,t){var a=t("ilmF");"string"==typeof a&&(a=[[n.i,a,""]]),a.locals&&(n.exports=a.locals);t("rjj0")("4cb88478",a,!1,{})},"b/O8":function(n,e,t){(n.exports=t("FZ+f")(!0)).push([n.i,'\n.search-btn-block[data-v-42e27d6e] {\n margin-left: 20px;\n}\n.search-form[data-v-42e27d6e] {\n background: white;\n padding: 10px;\n margin: 10px 0;\n}\n.new-block[data-v-42e27d6e] {\n margin: 10px;\n text-align: right;\n}\n.fl-r[data-v-42e27d6e] {\n float: right;\n}\n.text-c[data-v-42e27d6e] {\n text-align: center;\n}\n.text-b[data-v-42e27d6e] {\n font-weight: bold;\n}\n.color-b[data-v-42e27d6e] {\n color: #6ba8e6;\n}\n.text-r[data-v-42e27d6e] {\n text-align: right;\n}\n.main-block[data-v-42e27d6e] {\n margin: 5px;\n background: white;\n padding: 5px;\n}\nhtml[data-v-42e27d6e] {\n font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "\\5FAE\\8F6F\\96C5\\9ED1", Arial, sans-serif;\n}\n.clear-both[data-v-42e27d6e]:after {\n content: \'\';\n display: block;\n clear: both;\n}\n[data-v-42e27d6e]::-webkit-scrollbar-track-piece {\n border-radius: 10px;\n}\n[data-v-42e27d6e]::-webkit-scrollbar {\n width: 5px;\n height: 5px;\n}\n[data-v-42e27d6e]::-webkit-scrollbar-thumb {\n background-color: #999;\n border-radius: 10px;\n height: 10px;\n min-height: 10px;\n}\n.avatar[data-v-42e27d6e] {\n width: 50px;\n min-width: 50px;\n height: 50px;\n margin-right: 5px;\n border-radius: 50%;\n}\n',"",{version:3,sources:["D:/myproject/changchang-admin-new/src/components/exchange/index.vue"],names:[],mappings:";AACA;EACE,kBAAkB;CACnB;AACD;EACE,kBAAkB;EAClB,cAAc;EACd,eAAe;CAChB;AACD;EACE,aAAa;EACb,kBAAkB;CACnB;AACD;EACE,aAAa;CACd;AACD;EACE,mBAAmB;CACpB;AACD;EACE,kBAAkB;CACnB;AACD;EACE,eAAe;CAChB;AACD;EACE,kBAAkB;CACnB;AACD;EACE,YAAY;EACZ,kBAAkB;EAClB,aAAa;CACd;AACD;EACE,0IAA0H;CAC3H;AACD;EACE,YAAY;EACZ,eAAe;EACf,YAAY;CACb;AACD;EACE,oBAAoB;CACrB;AACD;EACE,WAAW;EACX,YAAY;CACb;AACD;EACE,uBAAuB;EACvB,oBAAoB;EACpB,aAAa;EACb,iBAAiB;CAClB;AACD;EACE,YAAY;EACZ,gBAAgB;EAChB,aAAa;EACb,kBAAkB;EAClB,mBAAmB;CACpB",file:"index.vue",sourcesContent:['\n.search-btn-block[data-v-42e27d6e] {\n margin-left: 20px;\n}\n.search-form[data-v-42e27d6e] {\n background: white;\n padding: 10px;\n margin: 10px 0;\n}\n.new-block[data-v-42e27d6e] {\n margin: 10px;\n text-align: right;\n}\n.fl-r[data-v-42e27d6e] {\n float: right;\n}\n.text-c[data-v-42e27d6e] {\n text-align: center;\n}\n.text-b[data-v-42e27d6e] {\n font-weight: bold;\n}\n.color-b[data-v-42e27d6e] {\n color: #6ba8e6;\n}\n.text-r[data-v-42e27d6e] {\n text-align: right;\n}\n.main-block[data-v-42e27d6e] {\n margin: 5px;\n background: white;\n padding: 5px;\n}\nhtml[data-v-42e27d6e] {\n font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;\n}\n.clear-both[data-v-42e27d6e]:after {\n content: \'\';\n display: block;\n clear: both;\n}\n[data-v-42e27d6e]::-webkit-scrollbar-track-piece {\n border-radius: 10px;\n}\n[data-v-42e27d6e]::-webkit-scrollbar {\n width: 5px;\n height: 5px;\n}\n[data-v-42e27d6e]::-webkit-scrollbar-thumb {\n background-color: #999;\n border-radius: 10px;\n height: 10px;\n min-height: 10px;\n}\n.avatar[data-v-42e27d6e] {\n width: 50px;\n min-width: 50px;\n height: 50px;\n margin-right: 5px;\n border-radius: 50%;\n}\n'],sourceRoot:""}])},ilmF:function(n,e,t){(n.exports=t("FZ+f")(!0)).push([n.i,"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n","",{version:3,sources:[],names:[],mappings:"",file:"add.vue",sourceRoot:""}])},uEUG:function(n,e,t){(n.exports=t("FZ+f")(!0)).push([n.i,"\n.f-c > .cell {\n display: -webkit-box !important;\n display: -ms-flexbox !important;\n display: flex !important;\n -webkit-box-orient: horizontal;\n -webkit-box-direction: normal;\n -ms-flex-flow: row;\n flex-flow: row;\n -webkit-box-pack: start;\n -ms-flex-pack: start;\n justify-content: flex-start;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n}\n","",{version:3,sources:["D:/myproject/changchang-admin-new/src/components/exchange/index.vue"],names:[],mappings:";AACA;EACE,gCAAgC;EAChC,gCAAgC;EAChC,yBAAyB;EACzB,+BAA+B;EAC/B,8BAA8B;MAC1B,mBAAmB;UACf,eAAe;EACvB,wBAAwB;MACpB,qBAAqB;UACjB,4BAA4B;EACpC,0BAA0B;MACtB,uBAAuB;UACnB,oBAAoB;CAC7B",file:"index.vue",sourcesContent:["\n.f-c > .cell {\n display: -webkit-box !important;\n display: -ms-flexbox !important;\n display: flex !important;\n -webkit-box-orient: horizontal;\n -webkit-box-direction: normal;\n -ms-flex-flow: row;\n flex-flow: row;\n -webkit-box-pack: start;\n -ms-flex-pack: start;\n justify-content: flex-start;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n}\n"],sourceRoot:""}])},vRPh:function(n,e,t){var a=t("uEUG");"string"==typeof a&&(a=[[n.i,a,""]]),a.locals&&(n.exports=a.locals);t("rjj0")("7af636f1",a,!1,{})}});
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
webpackJsonp([20],{"+P08":function(e,t,a){var n=a("8nR9");"string"==typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);a("rjj0")("1d568812",n,!1,{})},"8nR9":function(e,t,a){(e.exports=a("FZ+f")(!0)).push([e.i,"\n.f-c > .cell {\n display: -webkit-box !important;\n display: -ms-flexbox !important;\n display: flex !important;\n -webkit-box-orient: horizontal;\n -webkit-box-direction: normal;\n -ms-flex-flow: row;\n flex-flow: row;\n -webkit-box-pack: start;\n -ms-flex-pack: start;\n justify-content: flex-start;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n}\n","",{version:3,sources:["D:/myproject/changchang-admin-new/src/components/achievement/dialog.vue"],names:[],mappings:";AACA;EACE,gCAAgC;EAChC,gCAAgC;EAChC,yBAAyB;EACzB,+BAA+B;EAC/B,8BAA8B;MAC1B,mBAAmB;UACf,eAAe;EACvB,wBAAwB;MACpB,qBAAqB;UACjB,4BAA4B;EACpC,0BAA0B;MACtB,uBAAuB;UACnB,oBAAoB;CAC7B",file:"dialog.vue",sourcesContent:["\n.f-c > .cell {\n display: -webkit-box !important;\n display: -ms-flexbox !important;\n display: flex !important;\n -webkit-box-orient: horizontal;\n -webkit-box-direction: normal;\n -ms-flex-flow: row;\n flex-flow: row;\n -webkit-box-pack: start;\n -ms-flex-pack: start;\n justify-content: flex-start;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n}\n"],sourceRoot:""}])},BrLh:function(e,t,a){(e.exports=a("FZ+f")(!0)).push([e.i,"\n.title[data-v-394351a5] {\n font-size: 26px;\n font-weight: 400;\n line-height: 1;\n margin: 40px;\n}\n","",{version:3,sources:["D:/myproject/changchang-admin-new/src/components/achievement/index.vue"],names:[],mappings:";AACA;EACE,gBAAgB;EAChB,iBAAiB;EACjB,eAAe;EACf,aAAa;CACd",file:"index.vue",sourcesContent:["\n.title[data-v-394351a5] {\n font-size: 26px;\n font-weight: 400;\n line-height: 1;\n margin: 40px;\n}\n"],sourceRoot:""}])},Fmgy:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("CCn6"),o={props:["dialogObj"],data:function(){return{nowPage:1,total:0,limit:10,classList:[]}},components:{page:a("kmJW").a},methods:{onPageChange:function(e){this.nowPage=e,this.classListOption()},onSizeChange:function(e){this.limit=e,this.nowPage=1,this.classListOption()},classListOption:function(){var e=this;void 0==this.dialogObj.timeValue[0]&&(this.dialogObj.timeValue[0]=""),void 0==this.dialogObj.timeValue[1]&&(this.dialogObj.timeValue[1]="");var t={page:this.nowPage,limit:this.limit,start_at:this.dialogObj.timeValue[0],end_at:this.dialogObj.timeValue[1]};Object(n._62)(t,this.dialogObj.teacher_id).then(function(t){e.classList=t.list,e.total=t.total})}},watch:{"dialogObj.show":function(e){e&&this.classListOption()}}},r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:e.dialogObj.title,visible:e.dialogObj.show},on:{"update:visible":function(t){e.$set(e.dialogObj,"show",t)}}},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.classList}},[a("el-table-column",{attrs:{label:"购买人",className:"f-c",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("img",{staticClass:"avatar",attrs:{src:t.row.avatar}}),e._v(" "+e._s(t.row.nickname)),a("br"),e._v("(ID:"+e._s(t.row.user_id)+")\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"out_trade_no",label:"交易订单号"}}),e._v(" "),a("el-table-column",{attrs:{prop:"goods_name",label:"商品名字"}}),e._v(" "),a("el-table-column",{attrs:{prop:"money",label:"金额(元)"}}),e._v(" "),a("el-table-column",{attrs:{prop:"pay_at",label:"支付时间"}})],1),e._v(" "),a("page",{attrs:{nowPage:e.nowPage,total:e.total,limit:e.limit},on:{pageChange:e.onPageChange,sizeChange:e.onSizeChange}})],1)};r._withStripped=!0;var i={render:r,staticRenderFns:[]},l=i;var s=!1;var c=a("VU/8")(o,l,!1,function(e){s||(a("vtn1"),a("+P08"))},"data-v-72b08405",null);c.options.__file="src\\components\\achievement\\dialog.vue";var d={name:"index",data:function(){var e=this;return{activeName:"first",firstList:[],secondList:[],searchFirstFrom:{dateValue:[]},today:{text:"今天",onClick:function(){e.searchFirstFrom.dateValue=[e.formatTime(new Date),e.formatTime(new Date)],e.searchSecondFrom.dateValue=[e.formatTime(new Date),e.formatTime(new Date)]}},yesterday:{text:"昨天",onClick:function(){var t=e.formatTime(new Date((new Date).getTime()-864e5));e.searchFirstFrom.dateValue=[t,t],e.searchSecondFrom.dateValue=[t,t]}},last30Day:{text:"过去30天",onClick:function(){var t=e.formatTime(new Date((new Date).getTime()-2592e6));e.searchFirstFrom.dateValue=[t,e.formatTime(new Date)],e.searchSecondFrom.dateValue=[t,e.formatTime(new Date)]}},searchSecondFrom:{dateValue:[]},dialogObj:{show:!1,title:"售卖课程",teacher_id:"",timeValue:[]}}},components:{classDialog:c.exports},mounted:function(){this.defaultTime(),this.searchFirstPage()},methods:{sortMoney:function(e,t){return Number(e.total_money)-Number(t.total_money)},handleClick:function(e){"first"===e.name?this.searchFirstPage():this.searchSecondPage()},searchFirstPage:function(){var e=this,t={};this.searchFirstFrom.dateValue&&(t={start_at:this.searchFirstFrom.dateValue[0],end_at:this.searchFirstFrom.dateValue[1]}),Object(n._66)(t).then(function(t){e.firstList=t})},searchSecondPage:function(){var e=this,t={};this.searchSecondFrom.dateValue&&(t={start_at:this.searchSecondFrom.dateValue[0],end_at:this.searchSecondFrom.dateValue[1]}),Object(n._63)(t).then(function(t){e.secondList=t})},formatTime:function(e){var t=e.getFullYear(),a=e.getMonth()+1;a<10&&(a="0"+a);var n=e.getDate();return n<10&&(n="0"+n),t+"-"+a+"-"+n},defaultTime:function(){var e=new Date,t=e.getFullYear(),a=e.getMonth()+1;a<10&&(a="0"+a);var n=e.getDate();n<10&&(n="0"+n);var o=t+"-"+a+"-01",r=t+"-"+a+"-"+n;this.searchFirstFrom.dateValue=[o,r],this.searchSecondFrom.dateValue=[o,r]},nameClick:function(e,t){this.dialogObj.teacher_id=e.tid,this.dialogObj.timeValue=void 0!=t?t:[e.cur_date,e.cur_date],this.dialogObj.show=!0}}},m=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("h2",{staticClass:"title"},[e._v("班主任业绩排行")]),e._v(" "),a("el-tabs",{attrs:{type:"card"},on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"业绩总排行",name:"first"}},[a("el-form",{ref:"searchFirstFrom",attrs:{inline:"",model:e.searchFirstFrom,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"起止日期"}},[a("el-date-picker",{attrs:{"unlink-panels":"",type:"daterange","picker-options":{shortcuts:[e.today,e.yesterday,e.last30Day]},"value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:e.searchFirstPage},model:{value:e.searchFirstFrom.dateValue,callback:function(t){e.$set(e.searchFirstFrom,"dateValue",t)},expression:"searchFirstFrom.dateValue"}})],1),e._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.searchFirstPage()}}},[e._v("\n 搜索\n ")])],1)],1),e._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.firstList}},[a("el-table-column",{attrs:{label:"班主任姓名"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){e.nameClick(t.row,e.searchFirstFrom.dateValue)}}},[e._v("\n "+e._s(t.row.teacher_name)+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"total_money",label:"销售额","sort-method":e.sortMoney,sortable:!0}}),e._v(" "),a("el-table-column",{attrs:{prop:"three_month",label:"季课",sortable:""}}),e._v(" "),a("el-table-column",{attrs:{prop:"one_year",label:"年课",sortable:""}}),e._v(" "),a("el-table-column",{attrs:{prop:"two_year",label:"2年课",sortable:""}})],1)],1),e._v(" "),a("el-tab-pane",{attrs:{label:"业绩按天排行",name:"second"}},[a("el-form",{ref:"searchSecondFrom",attrs:{inline:"",model:e.searchSecondFrom,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"起止日期"}},[a("el-date-picker",{attrs:{"unlink-panels":"",type:"daterange","value-format":"yyyy-MM-dd","picker-options":{shortcuts:[e.today,e.yesterday,e.last30Day]},"range-separator":"至",shortcuts:[],"start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:e.searchSecondPage},model:{value:e.searchSecondFrom.dateValue,callback:function(t){e.$set(e.searchSecondFrom,"dateValue",t)},expression:"searchSecondFrom.dateValue"}})],1),e._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.searchSecondPage()}}},[e._v("\n 搜索\n ")])],1)],1),e._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.secondList}},[a("el-table-column",{attrs:{prop:"cur_date",label:"时间",sortable:""}}),e._v(" "),a("el-table-column",{attrs:{label:"班主任姓名"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){e.nameClick(t.row)}}},[e._v("\n "+e._s(t.row.teacher_name)+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"total_money",label:"销售额","sort-method":e.sortMoney,sortable:!0}}),e._v(" "),a("el-table-column",{attrs:{prop:"three_month",label:"季课",sortable:""}}),e._v(" "),a("el-table-column",{attrs:{prop:"one_year",label:"年课",sortable:""}}),e._v(" "),a("el-table-column",{attrs:{prop:"two_year",label:"2年课",sortable:""}})],1)],1)],1),e._v(" "),a("class-dialog",{attrs:{dialogObj:e.dialogObj}})],1)};m._withStripped=!0;var u={render:m,staticRenderFns:[]},h=u;var p=!1;var b=a("VU/8")(d,h,!1,function(e){p||a("Pq+S")},"data-v-394351a5",null);b.options.__file="src\\components\\achievement\\index.vue";t.default=b.exports},"Pq+S":function(e,t,a){var n=a("BrLh");"string"==typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);a("rjj0")("5bcb7c41",n,!1,{})},vtn1:function(e,t,a){var n=a("w+Do");"string"==typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);a("rjj0")("2243677e",n,!1,{})},"w+Do":function(e,t,a){(e.exports=a("FZ+f")(!0)).push([e.i,"\n.avatar[data-v-72b08405]{\r\n width: 50px;\r\n min-width: 50px;\r\n height: 50px;\r\n margin-right: 5px;\r\n border-radius: 50%;\n}\n.order[data-v-72b08405] {\r\n padding: 20px 0;\n}\r\n","",{version:3,sources:["D:/myproject/changchang-admin-new/src/components/achievement/dialog.vue"],names:[],mappings:";AACA;EACE,YAAY;EACZ,gBAAgB;EAChB,aAAa;EACb,kBAAkB;EAClB,mBAAmB;CACpB;AACD;EACE,gBAAgB;CACjB",file:"dialog.vue",sourcesContent:["\n.avatar[data-v-72b08405]{\r\n width: 50px;\r\n min-width: 50px;\r\n height: 50px;\r\n margin-right: 5px;\r\n border-radius: 50%;\n}\n.order[data-v-72b08405] {\r\n padding: 20px 0;\n}\r\n"],sourceRoot:""}])}});
\ No newline at end of file
webpackJsonp([3],{"+dYf":function(e,t,i){var a=i("eW9u");"string"==typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);i("rjj0")("e77fce0c",a,!1,{})},"1d8X":function(e,t,i){var a=i("Yg4o");"string"==typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);i("rjj0")("8bc76fe0",a,!1,{})},"2qmY":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=i("CCn6"),r=i("kmJW"),o=i("P0f4"),n=i("xGts"),s={name:"dialogObj",props:["dialogObj"],data:function(){return{}},methods:{handlerAddressChange:function(e){if(e.province&&e.city&&e.district){this.dialogObj.detail=e.detail,this.dialogObj.province=e.province,this.dialogObj.city=e.city,this.dialogObj.receive_mobile=e.mobile,this.dialogObj.receive_name=e.name;var t=n.a.filter(function(t){return t.value===e.province}),i=t[0].children.filter(function(t){return t.value===e.city}),a=i[0].children.filter(function(t){return t.value===e.district});this.dialogObj.province_name=t[0].label,this.dialogObj.city_name=i[0].label,this.dialogObj.district_name=a.length>0?a[0].label:i[0].children[0].label,this.dialogObj.district=a.length>0?a[0].value:i[0].children[0].value}},saveAddress:function(){var e=this;this.$confirm("确定保存?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){var t={province_id:e.dialogObj.province,province_name:e.dialogObj.province_name,city_id:e.dialogObj.city,city:e.dialogObj.city_name,area:e.dialogObj.district_name,area_id:e.dialogObj.district,address:e.dialogObj.detail,receive_name:e.dialogObj.receive_name,receive_mobile:e.dialogObj.receive_mobile};Object(a.T)(e.dialogObj.id,t).then(function(t){e.$message({type:"success",message:"修改成功"}),e.dialogObj.show=!1,e.$emit("reflash")})})}},components:{vueAddress:o.a},mounted:function(){}},l=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{attrs:{title:"编辑收货地址",center:"","append-to-body":"",visible:e.dialogObj.show,width:"800px"},on:{"update:visible":function(t){e.$set(e.dialogObj,"show",t)}}},[i("vue-address",{attrs:{province:e.dialogObj.province,city:e.dialogObj.city,district:e.dialogObj.district,detail:e.dialogObj.detail,mobile:e.dialogObj.receive_mobile,name:e.dialogObj.receive_name},on:{change:e.handlerAddressChange}}),e._v(" "),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(t){e.dialogObj.show=!1}}},[e._v("取 消")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.saveAddress}},[e._v("保 存")])],1)],1)};l._withStripped=!0;var c={render:l,staticRenderFns:[]},d=c;var u=!1;var _=i("VU/8")(s,d,!1,function(e){u||i("ri1l")},"data-v-60e716f4",null);_.options.__file="src\\components\\order\\dialog.vue";var p=_.exports,m=i("O6Rd"),f={name:"dialogObj",props:["dialogObj"],data:function(){return{show:!1,id:"",loading:!0,form:{money:0,refund_type:1,desc:""},rules:{money:[{required:!0,message:"请输入退款金额",trigger:"change"}],desc:[{required:!0,message:"请输入退款原因",trigger:"change"}]}}},methods:{save:function(){var e=this;this.$confirm("确定保存?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){e.dialogObj.id&&e.$refs.form.validate(function(t){if(t){var i={refund_money:100*parseFloat(e.form.money),desc:e.form.desc,refund_type:e.form.refund_type};console.log(i),Object(a._84)(e.dialogObj.id,i).then(function(t){e.$message({type:"success",message:"退款成功!"}),e.$emit("reflash"),e.show=!1})}})})},initDialog:function(){this.show=this.dialogObj.show,this.dialogObj.id&&(this.id=this.dialogObj.id),this.form.money=parseFloat(this.dialogObj.money/100),this.form.desc=this.dialogObj.desc,this.loading=!1}},watch:{dialogObj:{handler:function(){this.initDialog()},deep:!0},show:function(e){this.$emit("changeShow",e)}}},h=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{attrs:{title:"退款",center:"","append-to-body":"",visible:e.show,width:"800px"},on:{"update:visible":function(t){e.show=t}}},[i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[i("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules}},[i("el-row",{attrs:{gutter:20}},[i("el-col",{attrs:{span:4}},[i("label",[e._v("退款金额")])]),e._v(" "),i("el-col",{attrs:{span:8}},[i("el-form-item",{attrs:{prop:"key"}},[i("el-input",{model:{value:e.form.money,callback:function(t){e.$set(e.form,"money",t)},expression:"form.money"}})],1)],1),e._v(" "),i("el-col",{attrs:{span:6}},[i("el-button",{attrs:{type:"success",round:"",size:"small"},on:{click:function(t){e.form.money=100}}},[e._v("¥100")]),e._v(" "),i("el-button",{attrs:{type:"success",round:"",size:"mini"},on:{click:function(t){e.form.money=150}}},[e._v("¥150")])],1)],1),e._v(" "),i("el-row",{attrs:{gutter:20}},[i("el-col",{attrs:{span:4}},[i("label",[e._v("退课")])]),e._v(" "),i("el-col",{attrs:{span:8}},[i("el-form-item",[i("el-switch",{attrs:{"active-value":2,"inactive-value":1},model:{value:e.form.refund_type,callback:function(t){e.$set(e.form,"refund_type",t)},expression:"form.refund_type"}})],1)],1)],1),e._v(" "),i("el-row",{attrs:{gutter:20}},[i("el-col",{attrs:{span:4}},[i("label",[e._v("退款原因")])]),e._v(" "),i("el-col",{attrs:{span:12}},[i("el-form-item",[i("el-input",{attrs:{type:"textarea"},model:{value:e.form.desc,callback:function(t){e.$set(e.form,"desc",t)},expression:"form.desc"}})],1)],1)],1)],1)],1),e._v(" "),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(t){e.show=!1}}},[e._v("取 消")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.save}},[e._v("确 定")])],1)])};h._withStripped=!0;var v={render:h,staticRenderFns:[]},b=v;var g=!1;var y=i("VU/8")(f,b,!1,function(e){g||i("jKuw")},"data-v-7cbba59e",null);y.options.__file="src\\components\\order\\refundDialog.vue";var w=y.exports,A=i("kmsh"),C=i("+TkF"),x={name:"detail",props:["dialogObj"],data:function(){return{detail:{},show:!1}},methods:{initDialog:function(){this.detail=this.dialogObj.detail,this.show=this.dialogObj.show}},filters:{payMentFilter:function(e){return"1"==e?"已付款":"未付款"},courseTypeFilter:function(e){return"1"==e.type?"正式课("+e.duration+"个月)":"试听课("+e.duration+"天)"},inviteType:function(e){return C.j[e]},status:function(e){return C.p[e]},buyType:function(e){return C.b[e]},moneytFilter:function(e){return e/100+"元"}},watch:{dialogObj:{handler:function(){this.initDialog()},deep:!0},show:function(e){this.$emit("changeShow",e)}}},j=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{attrs:{title:"订单详情",center:"",visible:e.dialogObj.show,width:"800px"},on:{"update:visible":function(t){e.$set(e.dialogObj,"show",t)}}},[i("el-row",{attrs:{align:"middle",type:"flex"}},[i("el-col",{attrs:{span:4}},[i("label",[e._v("订单号")])]),e._v(" "),i("el-col",{attrs:{span:8}},[e._v("\n "+e._s(e.detail.out_trade_no)+"\n ")]),e._v(" "),i("el-col",{attrs:{span:4}},[i("label",[e._v("商品名称")])]),e._v(" "),i("el-col",{attrs:{span:8}},[e._v(e._s(e.detail.goods_name))])],1),e._v(" "),i("el-row",{attrs:{align:"middle",type:"flex"}},[i("el-col",{attrs:{span:4}},[i("label",[e._v("用户昵称")])]),e._v(" "),i("el-col",{attrs:{span:8}},[e._v("\n "+e._s(e.detail.user_nickname)+"\n ")]),e._v(" "),i("el-col",{attrs:{span:4}},[i("label",[e._v("用户手机号")])]),e._v(" "),i("el-col",{attrs:{span:8}},[e._v(e._s(e.detail.user_mobile))])],1),e._v(" "),i("el-row",{attrs:{align:"middle",type:"flex"}},[i("el-col",{attrs:{span:4}},[i("label",[e._v("推广人类型")])]),e._v(" "),i("el-col",{attrs:{span:8}},[e._v(e._s(e._f("inviteType")(e.detail.invite_type)))]),e._v(" "),i("el-col",{attrs:{span:4}},[i("label",[e._v("推广人ID")])]),e._v(" "),i("el-col",{attrs:{span:8}},[e._v(e._s(e.detail.invite_id))])],1),e._v(" "),i("el-row",{attrs:{align:"middle",type:"flex"}},[i("el-col",{attrs:{span:4}},[i("label",[e._v("推广人收益")])]),e._v(" "),i("el-col",{attrs:{span:8}},[e._v(e._s(e.detail.invite_earnings?e.detail.invite_earnings/100:0)+"元")]),e._v(" "),2===e.detail.buy_type?[i("el-col",{attrs:{span:4}},[i("label",[e._v("团购信息")])]),e._v(" "),i("el-col",{attrs:{span:8}},[e._v("团ID:"+e._s(e.detail.order_group_id)),i("br"),e._v("是否是团长:"+e._s(0===e.detail.is_captain?"否":"是"))])]:e._e()],2),e._v(" "),i("el-row",[i("el-col",{attrs:{span:4}},[i("label",[e._v("期数ID")])]),e._v(" "),i("el-col",{attrs:{span:8}},[e._v(e._s(e.detail.periods_id))]),e._v(" "),i("el-col",{attrs:{span:4}},[i("label",[e._v("描述")])]),e._v(" "),i("el-col",{attrs:{span:8}},[e._v(e._s(e.detail.desc))])],1),e._v(" "),i("el-row",[i("el-col",{attrs:{span:4}},[i("label",[e._v("收货地址")])]),e._v(" "),i("el-col",{attrs:{span:20}},[e.detail.user_address_id&&e.detail.address_info?[e._v("\n 收货人:"+e._s(e.detail.address_info.receive_name)),i("br"),e._v("\n 手机号:"+e._s(e.detail.address_info.receive_mobile)),i("br"),e._v("\n 收货地址: "+e._s(e.detail.address_info.province_name)+e._s(e.detail.address_info.city)+e._s(e.detail.address_info.area)+e._s(e.detail.address_info.address)+"\n ")]:e._e()],2)],1),e._v(" "),i("el-row",[i("el-col",{attrs:{span:4}},[i("label",[e._v("付款时间")])]),e._v(" "),i("el-col",{attrs:{span:8}},[e._v(e._s(e.detail.pay_at))])],1)],1)};j._withStripped=!0;var O={render:j,staticRenderFns:[]},F=O;var k=!1;var D=i("VU/8")(x,F,!1,function(e){k||i("cCfO")},"data-v-375439e2",null);D.options.__file="src\\components\\order\\detail.vue";var B=D.exports,S=i("G2rA"),E=i("sf/l"),T={name:"index",data:function(){var e=this;return{nowPage:1,total:0,today:{text:"今天",onClick:function(){e.searchFrom.payTime=[e.formatTime(new Date)+" 00:00:00",e.formatTime(new Date)+" 23:59:59"]}},yesterday:{text:"昨天",onClick:function(){var t=e.formatTime(new Date((new Date).getTime()-864e5));e.searchFrom.payTime=[t+" 00:00:00",t+" 23:59:59"]}},last30Day:{text:"过去30天",onClick:function(){var t=e.formatTime(new Date((new Date).getTime()-2592e6));e.searchFrom.payTime=[t+" 00:00:00",e.formatTime(new Date)+" 23:59:59"]}},sourceDialog:{show:!1,out_trade_no:""},couponDetail:{show:!1,order_coupon_id:""},refundDetail:{show:!1,out_trade_no:""},limit:10,searchFrom:{nickname:"",user_id:"",invite_type:"",invite_id:"",buy_type:"",status:[1,4,5],goods_id:"",out_trade_no:"",payTime:[],order_group_id:"",is_captain:""},tableData:[],dialogObj:{show:!1},refundDialogObj:{show:!1,id:"",money:0},dialogDetailObj:{show:!1,detail:{}},goodList:[],inviteTypeOption:C.k,orderStatusOption:C.q,buyTypeOption:C.c,inviteSearchPlaceholder:"",rules:{value:[{required:!0,message:"请输入备注",trigger:"change"}]},promoterDialog:{show:!1,nowPage:1,total:0,limit:100,teacher_id:""},teacherList:[],loading:!1,isLeaderOption:C.m}},methods:{formatTime:function(e){var t=e.getFullYear(),i=e.getMonth()+1;i<10&&(i="0"+i);var a=e.getDate();return a<10&&(a="0"+a),t+"-"+i+"-"+a},showRef:function(e){this.refundDetail.show=!0,this.refundDetail.out_trade_no=e.out_trade_no},showCoupon:function(e){this.couponDetail.show=!0,this.couponDetail.order_coupon_id=e.order_coupon_id},showSource:function(e){this.sourceDialog.show=!0,this.sourceDialog.out_trade_no=e.out_trade_no},changeRow:function(e,t){t.indexOf(e)>-1&&Object(a._54)({out_trade_no:e.out_trade_no}).then(function(t){e.refundList=t.list})},exportTable:function(){var e={};this.searchFrom.nickname&&(e.nickname=this.searchFrom.nickname),this.searchFrom.user_id&&(e.user_id=this.searchFrom.user_id),this.searchFrom.invite_type&&(e.invite_type=this.searchFrom.invite_type),this.searchFrom.invite_id&&(e.invite_id=this.searchFrom.invite_id),this.searchFrom.order_group_id&&(e.order_group_id=this.searchFrom.order_group_id),this.searchFrom.buy_type&&(e.buy_type=this.searchFrom.buy_type),this.searchFrom.status&&(e.status=this.searchFrom.status.toString()),this.searchFrom.goods_id&&(e.goods_id=this.searchFrom.goods_id),this.searchFrom.out_trade_no&&(e.out_trade_no=this.searchFrom.out_trade_no),(this.searchFrom.is_captain||0==this.searchFrom.is_captain)&&(e.is_captain=this.searchFrom.is_captain),this.searchFrom.receive_mobile&&(e.receive_mobile=this.searchFrom.receive_mobile),this.searchFrom.payTime&&this.searchFrom.payTime.length>0&&(e.pay_start_at=E.a.dateFmt(this.searchFrom.payTime[0],"yyyy-MM-dd hh:mm:ss"),e.pay_end_at=E.a.dateFmt(this.searchFrom.payTime[1],"yyyy-MM-dd hh:mm:ss")),e.course_type=1,Object(a._11)("/api/admin/order/export",e)},getGoodsOption:function(){var e=this;Object(a._37)({page:1,limit:100,course_type:1}).then(function(t){e.goodList=t.list})},onInviteTypeChange:function(e){0===e?this.inviteSearchPlaceholder="用户ID":1===e?this.inviteSearchPlaceholder="老师ID":2===e&&(this.inviteSearchPlaceholder="推广人ID"),this.getOrderList()},detail:function(e){var t=e;this.dialogDetailObj={show:!0,detail:t}},editComment:function(e,t){var i=this;this.$prompt("","编辑备注",{confirmButtonText:"确定",cancelButtonText:"取消",inputType:"textarea",inputValue:t||""}).then(function(t){var r=t.value;i.$confirm("确定保存?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(a._4)(e,"order",{desc:r}).then(function(e){i.$message({type:"success",message:"编辑备注成功"}),i.getOrderList()})})})},onPageChange:function(e){this.nowPage=e,this.getOrderList()},onSizeChange:function(e){this.limit=e,this.nowPage=1,this.getOrderList()},getOrderList:function(){var e=this,t={limit:this.limit,page:this.nowPage};this.searchFrom.nickname&&(t.nickname=this.searchFrom.nickname),this.searchFrom.user_id&&(t.user_id=this.searchFrom.user_id),this.searchFrom.invite_type&&(t.invite_type=this.searchFrom.invite_type),this.searchFrom.invite_id&&(t.invite_id=this.searchFrom.invite_id),this.searchFrom.order_group_id&&(t.order_group_id=this.searchFrom.order_group_id),this.searchFrom.buy_type&&(t.buy_type=this.searchFrom.buy_type),this.searchFrom.status&&(t.status=this.searchFrom.status.toString()),this.searchFrom.goods_id&&(t.goods_id=this.searchFrom.goods_id),(this.searchFrom.is_captain||0==this.searchFrom.is_captain)&&(t.is_captain=this.searchFrom.is_captain),this.searchFrom.out_trade_no&&(t.out_trade_no=this.searchFrom.out_trade_no),this.searchFrom.receive_mobile&&(t.receive_mobile=this.searchFrom.receive_mobile),this.searchFrom.payTime&&this.searchFrom.payTime.length>0&&(t.pay_start_at=E.a.dateFmt(this.searchFrom.payTime[0],"yyyy-MM-dd hh:mm:ss"),t.pay_end_at=E.a.dateFmt(this.searchFrom.payTime[1],"yyyy-MM-dd hh:mm:ss")),t.course_type=1,Object(a._47)(t).then(function(t){t.list.forEach(function(e){e.refundList=[]}),e.tableData=t.list,e.total=t.total})},changeDetailShow:function(e){this.dialogDetailObj.show=e},changeShow:function(e){this.refundDialogObj.show=e},onRefund:function(e,t){this.refundDialogObj.id=e,this.refundDialogObj.money=t,this.refundDialogObj.show=!0},onAfterRefund:function(){this.refundDialogObj.show=!1,this.getOrderList()},onUpdateAddress:function(){this.dialogObj.show=!1,this.getOrderList()},editAddress:function(e){if(e.address_info&&e.address_info.province_name){var t=n.a.filter(function(t){return t.label===e.address_info.province_name});if(t&&t.length>0)if(this.dialogObj.province=e.address_info.province_id?e.address_info.province_id:t[0].value,e.address_info.city){var i=t[0].children.filter(function(t){return t.label===e.address_info.city});if(this.dialogObj.city=e.address_info.city_id?e.address_info.city_id:i[0].value,e.address_info.area){var a=i[0].children.filter(function(t){return t.label===e.address_info.area});this.dialogObj.district=e.address_info.area_id?e.address_info.area_id:a[0].value}else this.dialogObj.district=""}else this.dialogObj.city="";else this.dialogObj.province="",this.dialogObj.district="",this.dialogObj.city=""}else this.dialogObj.province="",this.dialogObj.city="",this.dialogObj.district="";this.dialogObj.detail=e.address_info?e.address_info.address:"",this.dialogObj.receive_mobile=e.address_info?e.address_info.receive_mobile:"",this.dialogObj.receive_name=e.address_info?e.address_info.receive_name:"",this.dialogObj.province_name=e.address_info?e.address_info.province_name:"",this.dialogObj.city_name=e.address_info?e.address_info.city:"",this.dialogObj.district_name=e.address_info?e.address_info.area:"",this.dialogObj.id=e.id,this.dialogObj.show=!0},getTeacherList:function(e){var t=this;this.loading=!0;var i={limit:this.promoterDialog.limit,page:this.promoterDialog.nowPage};e&&(i.name=e),Object(a._65)(i).then(function(e){t.teacherList=e.list,t.loading=!1})},handleCurrentTeacherChange:function(e){console.log("handleCurrentTeacherChange",e)},updateTeacher:function(e){this.promoterDialog.show=!0,this.promoterDialog.id=e.id,this.promoterDialog.teacher_id=e.invite_id,this.getTeacherList()},remoteMethod:function(e){""!==e?this.getTeacherList(e):this.getTeacherList()},saveTeacher:function(){var e=this;this.$confirm("此操作将修改推广人?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){console.log("this.promoterDialog.teacher_id",e.promoterDialog),Object(a._103)(e.promoterDialog.id,e.promoterDialog.teacher_id).then(function(t){e.promoterDialog.id="",e.promoterDialog.teacher_id="",e.promoterDialog.show=!1,e.$message({type:"success",message:"修改成功!"}),e.getOrderList()})})}},components:{addressDialog:p,refundDialog:w,detailDialog:B,refundDetail:S.a,sourceDialog:m.a,couponDialog:A.a,page:r.a},mounted:function(){this.$route.query.code&&(this.searchFrom.invite_type=this.$route.query.code),this.getOrderList(),this.getGoodsOption()},watch:{},filters:{isLeader:function(e){return C.l[e]},payMentFilter:function(e){return"1"==e?"已付款":"未付款"},courseTypeFilter:function(e){return"1"==e.type?"正式课("+e.duration+"个月)":"试听课("+e.duration+"天)"},inviteType:function(e){return C.j[e]},status:function(e){return C.p[e]},buyType:function(e){return C.b[e]},moneytFilter:function(e){return e/100+"元"},filterGoods:function(e){return"["+C.g[e.goods_type]+"]["+e.current_price/100+"元]"+e.name}}},$=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"order"},[i("el-form",{ref:"searchFrom",attrs:{model:e.searchFrom,"label-width":"100px",inline:""}},[i("el-form-item",{attrs:{label:"用户ID"}},[i("el-input",{model:{value:e.searchFrom.user_id,callback:function(t){e.$set(e.searchFrom,"user_id",t)},expression:"searchFrom.user_id"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"用户昵称"}},[i("el-input",{model:{value:e.searchFrom.nickname,callback:function(t){e.$set(e.searchFrom,"nickname",t)},expression:"searchFrom.nickname"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"收件人手机号"}},[i("el-input",{model:{value:e.searchFrom.receive_mobile,callback:function(t){e.$set(e.searchFrom,"receive_mobile",t)},expression:"searchFrom.receive_mobile"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"商品名称"}},[i("el-select",{attrs:{placeholder:"请选择",clearable:""},on:{change:e.getOrderList},model:{value:e.searchFrom.goods_id,callback:function(t){e.$set(e.searchFrom,"goods_id",t)},expression:"searchFrom.goods_id"}},e._l(e.goodList,function(t,a){return i("el-option",{key:a,attrs:{label:e._f("filterGoods")(t),value:t.id}})}))],1),e._v(" "),i("el-form-item",{staticClass:"test",attrs:{label:"来源"}},[i("el-input",{attrs:{placeholder:e.inviteSearchPlaceholder},model:{value:e.searchFrom.invite_type,callback:function(t){e.$set(e.searchFrom,"invite_type",t)},expression:"searchFrom.invite_type\t"}},[i("template",{slot:"prepend"},[e._v("CC -")])],2)],1),e._v(" "),i("el-form-item",{attrs:{label:"推广人ID"}},[i("el-input",{attrs:{placeholder:e.inviteSearchPlaceholder},model:{value:e.searchFrom.invite_id,callback:function(t){e.$set(e.searchFrom,"invite_id",t)},expression:"searchFrom.invite_id"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"团ID"}},[i("el-input",{model:{value:e.searchFrom.order_group_id,callback:function(t){e.$set(e.searchFrom,"order_group_id",t)},expression:"searchFrom.order_group_id"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"是否团长"}},[i("el-select",{attrs:{placeholder:"请选择",clearable:""},on:{change:e.getOrderList},model:{value:e.searchFrom.is_captain,callback:function(t){e.$set(e.searchFrom,"is_captain",t)},expression:"searchFrom.is_captain"}},e._l(e.isLeaderOption,function(e){return i("el-option",{key:e.id,attrs:{label:e.value,value:e.id}})}))],1),e._v(" "),i("el-form-item",{attrs:{label:"购买方式"}},[i("el-select",{attrs:{placeholder:"请选择",clearable:""},on:{change:e.getOrderList},model:{value:e.searchFrom.buy_type,callback:function(t){e.$set(e.searchFrom,"buy_type",t)},expression:"searchFrom.buy_type"}},e._l(e.buyTypeOption,function(e){return i("el-option",{key:e.id,attrs:{label:e.value,value:e.id}})}))],1),e._v(" "),i("el-form-item",{attrs:{label:"订单状态"}},[i("el-select",{attrs:{multiple:"",placeholder:"请选择",clearable:""},on:{change:e.getOrderList},model:{value:e.searchFrom.status,callback:function(t){e.$set(e.searchFrom,"status",t)},expression:"searchFrom.status"}},e._l(e.orderStatusOption,function(e){return i("el-option",{key:e.id,attrs:{label:e.value,value:e.id}})}))],1),e._v(" "),i("el-form-item",{attrs:{label:"交易订单号"}},[i("el-input",{model:{value:e.searchFrom.out_trade_no,callback:function(t){e.$set(e.searchFrom,"out_trade_no",t)},expression:"searchFrom.out_trade_no"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"购买时间"}},[i("el-date-picker",{attrs:{type:"datetimerange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":{shortcuts:[e.today,e.yesterday,e.last30Day]},"default-time":["00:00:00","23:59:59"]},on:{change:e.getOrderList},model:{value:e.searchFrom.payTime,callback:function(t){e.$set(e.searchFrom,"payTime",t)},expression:"searchFrom.payTime"}})],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",plain:""},on:{click:e.getOrderList}},[e._v("搜索")]),e._v(" "),i("el-button",{attrs:{type:"primary",plain:""},on:{click:e.exportTable}},[e._v("导出")])],1)],1),e._v(" "),i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData,fixed:""},on:{"expand-change":e.changeRow}},[i("el-table-column",{attrs:{prop:"out_trade_no",label:"订单号",width:"120"}}),e._v(" "),i("el-table-column",{attrs:{label:"购买人",className:"f-c",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("img",{staticClass:"avatar",attrs:{src:t.row.user_avatar}}),e._v(" "+e._s(t.row.user_nickname)),i("br"),e._v("(ID:"+e._s(t.row.user_id)+")"),i("br"),e._v("手机:"+e._s(t.row.user_mobile)+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"periods_title",label:"期数标题"}}),e._v(" "),i("el-table-column",{attrs:{prop:"goods_name",label:"商品名称",width:"160"}}),e._v(" "),i("el-table-column",{attrs:{width:"250",prop:"invite_id",className:"f-c",label:"来源"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.invite_earnings>0&&0!==t.row.invite_id?i("div",{staticStyle:{width:"100%",display:"flex",color:"#409eff",cursor:"pointer"},on:{click:function(i){e.showSource(t.row)}}},[i("img",{staticClass:"avatar",attrs:{src:t.row.invite_avatar}}),e._v(" 类型:"+e._s(t.row.invite_type)+" ("+e._s(t.row.invite_name)+")\n "),i("br"),e._v(" 收益:"+e._s(t.row.invite_earnings/100)+"\n "),i("br"),e._v(" 用户ID:"+e._s(t.row.invite_id)+"\n "),i("br"),e._v(" 昵称:"+e._s(t.row.invite_nickname)+"\n "),i("br"),e._v(" 手机:"+e._s(t.row.invite_mobile)+"\n ")]):e._e(),e._v(" "),0===t.row.invite_earnings&&0!==t.row.invite_id?i("div",{staticStyle:{display:"flex"}},[i("img",{staticClass:"avatar",attrs:{src:t.row.invite_avatar}}),e._v(" 类型:"+e._s(t.row.invite_type)+" ("+e._s(t.row.invite_name)+")\n "),i("br"),e._v(" 收益:"+e._s(t.row.invite_earnings/100)+"\n "),i("br"),e._v(" 用户ID:"+e._s(t.row.invite_id)+"\n "),i("br"),e._v(" 昵称:"+e._s(t.row.invite_nickname)+"\n "),i("br"),e._v(" 手机:"+e._s(t.row.invite_mobile)+"\n ")]):e._e(),e._v(" "),0===t.row.invite_id?i("div",[e._v("\n\n ")]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"order_group_id",label:"团ID",width:"80"}}),e._v(" "),i("el-table-column",{attrs:{label:"是否团长",width:"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("isLeader")(t.row.is_captain))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"优惠活动"},scopedSlots:e._u([{key:"default",fn:function(t){return[0===t.row.order_coupon_id?i("span",[e._v("\n\n ")]):e._e(),e._v(" "),0!==t.row.order_coupon_id?i("el-button",{attrs:{type:"text"},on:{click:function(i){e.showCoupon(t.row)}}},[e._v("\n 优惠券\n ")]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"付款状态",width:"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[5===t.row.status||3===t.row.status?i("el-button",{attrs:{type:"text"},on:{click:function(i){e.showRef(t.row)}}},[e._v(e._s(e._f("status")(t.row.status)))]):e._e(),e._v(" "),5!==t.row.status&&3!==t.row.status?i("div",[e._v(e._s(e._f("status")(t.row.status)))]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"实付金额",width:"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("moneytFilter")(t.row.money))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"收货地址"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.user_address_id&&t.row.address_info?i("div",[e._v("\n "+e._s(t.row.address_info.receive_name)),i("br"),e._v(" "+e._s(t.row.address_info.receive_mobile)+"\n "),i("br"),e._v(" "+e._s(t.row.address_info.province_name)+e._s(t.row.address_info.city)+e._s(t.row.address_info.area)+e._s(t.row.address_info.address)+"\n ")]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"created_at",label:"时间",width:"280"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n 下单时间:"+e._s(t.row.created_at)),i("br"),e._v("\n 购买时间:"+e._s(t.row.pay_at)),i("br"),e._v(" "),1!=t.row.buy_type?i("div",[e._v("\n 成团时间:"+e._s(t.row.group_success_time)),i("br"),e._v("\n 截止时间:"+e._s(t.row.deadline)+"\n ")]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"desc",label:"备注"}}),e._v(" "),e.$store.state.readonly?e._e():i("el-table-column",{attrs:{width:"50",label:"操作",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-popover",{attrs:{placement:"top",width:"400"}},[i("div",{staticStyle:{"text-align":"center"}},[1!=t.row.status&&4!=t.row.status&&5!=t.row.status||!e.$store.state.orderRefund?e._e():i("el-button",{attrs:{type:"warning",plain:"",size:"mini"},on:{click:function(i){e.onRefund(t.row.id,t.row.money)}}},[e._v("\n 退款\n ")]),e._v(" "),i("el-button",{attrs:{type:"info",plain:"",size:"mini"},on:{click:function(i){e.editComment(t.row.id,t.row.desc)}}},[e._v("\n 编辑备注\n ")]),e._v(" "),t.row.user_address_id?i("el-button",{attrs:{plain:"",type:"info",size:"mini"},on:{click:function(i){e.editAddress(t.row)}}},[e._v("\n 编辑收货地址\n ")]):e._e(),e._v(" "),i("el-button",{attrs:{type:"warning",plain:"",size:"mini"},on:{click:function(i){e.updateTeacher(t.row)}}},[e._v("\n 编辑推广人\n ")])],1),e._v(" "),i("el-button",{attrs:{slot:"reference",size:"mini",type:"text"},slot:"reference"},[e._v("操作")])],1)]}}])})],1),e._v(" "),i("address-dialog",{attrs:{dialogObj:e.dialogObj},on:{reflash:e.onUpdateAddress}}),e._v(" "),i("refund-dialog",{attrs:{dialogObj:e.refundDialogObj},on:{reflash:e.onAfterRefund,changeShow:e.changeShow}}),e._v(" "),i("detail-dialog",{attrs:{dialogObj:e.dialogDetailObj},on:{changeShow:e.changeDetailShow}}),e._v(" "),i("source-dialog",{attrs:{dialogObj:e.sourceDialog}}),e._v(" "),i("refund-detail",{attrs:{dialogObj:e.refundDetail}}),e._v(" "),i("coupon-dialog",{attrs:{dialogObj:e.couponDetail}}),e._v(" "),i("el-dialog",{attrs:{title:"修改推广人",center:"","append-to-body":"",visible:e.promoterDialog.show,width:"600"},on:{"update:visible":function(t){e.$set(e.promoterDialog,"show",t)}}},[i("el-form",{ref:"form",attrs:{"label-width":"120px"}},[i("el-form-item",{attrs:{label:"老师"}},[i("el-select",{attrs:{filterable:"",remote:"",clearable:"",placeholder:"请输入名称","remote-method":e.remoteMethod,loading:e.loading},model:{value:e.promoterDialog.teacher_id,callback:function(t){e.$set(e.promoterDialog,"teacher_id",t)},expression:"promoterDialog.teacher_id"}},e._l(e.teacherList,function(e){return i("el-option",{key:e.id,attrs:{label:e.name,value:e.user_id}})}))],1)],1),e._v(" "),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(t){e.promoterDialog.show=!1}}},[e._v("取 消")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.saveTeacher}},[e._v("确 定")])],1)],1),e._v(" "),i("page",{attrs:{nowPage:e.nowPage,total:e.total,limit:e.limit},on:{pageChange:e.onPageChange,sizeChange:e.onSizeChange}})],1)};$._withStripped=!0;var L={render:$,staticRenderFns:[]},R=L;var P=!1;var z=i("VU/8")(T,R,!1,function(e){P||(i("+dYf"),i("1d8X"))},"data-v-e25265f8",null);z.options.__file="src\\components\\order\\index.vue";t.default=z.exports},"6E06":function(e,t,i){(e.exports=i("FZ+f")(!0)).push([e.i,"\n.avatar[data-v-33d21ccc] {\n width:50px;\n height: 50px;\n border-radius: 50%;\n}\n","",{version:3,sources:["D:/myproject/changchang-admin-new/src/components/order/couponDialog.vue"],names:[],mappings:";AACA;EACE,WAAW;EACX,aAAa;EACb,mBAAmB;CACpB",file:"couponDialog.vue",sourcesContent:["\n.avatar[data-v-33d21ccc] {\n width:50px;\n height: 50px;\n border-radius: 50%;\n}\n"],sourceRoot:""}])},"9Wh8":function(e,t,i){var a=i("udiB");"string"==typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);i("rjj0")("3b8e9453",a,!1,{})},"F+JO":function(e,t,i){(e.exports=i("FZ+f")(!0)).push([e.i,"","",{version:3,sources:[],names:[],mappings:"",file:"refundDialog.vue",sourceRoot:""}])},G2rA:function(e,t,i){"use strict";var a=i("CCn6"),r={name:"refundDetail",props:["dialogObj"],data:function(){return{detail:[]}},filters:{filterStatus:function(e){var t="";return 0===e?t="退款中":1===e?t="退款成功":2===e&&(t="退款失败"),t}},methods:{initPage:function(){var e=this,t={out_trade_no:this.dialogObj.out_trade_no,limit:200};Object(a._54)(t).then(function(t){e.detail=t.list})}},watch:{"dialogObj.show":function(e){!0===e&&this.initPage()}}},o=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{attrs:{title:"退款详情",center:"","append-to-body":"",visible:e.dialogObj.show,width:"90%"},on:{"update:visible":function(t){e.$set(e.dialogObj,"show",t)}}},[i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.detail}},[i("el-table-column",{attrs:{prop:"refund_no",label:"退款编号"}}),e._v(" "),i("el-table-column",{attrs:{prop:"out_trade_no",label:"订单号"}}),e._v(" "),i("el-table-column",{attrs:{label:"用户信息","min-width":"140",className:"userInfo"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("img",{staticClass:"avatar",attrs:{src:t.row.user_avatar}}),e._v("\n "+e._s(t.row.user_nickname)+"(ID:"+e._s(t.row.user_id)+")\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"order_money",label:"订单金额"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(parseFloat(t.row.order_money/100))+"元\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"refund_money",label:"退款金额"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(parseFloat(t.row.refund_money/100))+"元\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"desc",label:"备注"}}),e._v(" "),i("el-table-column",{attrs:{label:"退款状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("filterStatus")(t.row.status))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"success_at",label:"退款成功时间"}})],1)],1)};o._withStripped=!0;var n={render:o,staticRenderFns:[]},s=n;var l=!1;var c=i("VU/8")(r,s,!1,function(e){l||i("UAas")},"data-v-dcf5d7b2",null);c.options.__file="src\\components\\order\\refundDetail.vue";t.a=c.exports},O6Rd:function(e,t,i){"use strict";var a=i("CCn6"),r={name:"sourceDialog",props:["dialogObj"],data:function(){return{detail:[]}},filters:{moneyYuan:function(e){return e?(e/100).toFixed(2)+"元":""},filterStatus:function(e){var t="";return 0===e?t="审核中":1===e?t="提现成功":2===e&&(t="提现失败"),t}},methods:{initPage:function(){var e=this,t={out_trade_no:this.dialogObj.out_trade_no,limit:200};Object(a._74)(t).then(function(t){e.detail=t.list})}},watch:{"dialogObj.show":function(e){!0===e&&this.initPage()}}},o=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{attrs:{title:"提现详情",center:"","append-to-body":"",visible:e.dialogObj.show,width:"90%"},on:{"update:visible":function(t){e.$set(e.dialogObj,"show",t)}}},[i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.detail}},[i("el-table-column",{attrs:{prop:"withdraw_no",label:"提现单号"}}),e._v(" "),i("el-table-column",{attrs:{prop:"out_trade_no",label:"订单号"}}),e._v(" "),i("el-table-column",{attrs:{label:"用户",width:"200",className:"f-c"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("img",{staticClass:"avatar",attrs:{src:t.row.user_avatar}}),e._v(" "+e._s(t.row.user_nickname)+"(ID:"+e._s(t.row.user_id)+")\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"user_mobile",label:"手机号"}}),e._v(" "),i("el-table-column",{attrs:{label:"提现金额"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("moneyYuan")(t.row.money))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"提现状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",{class:{status:!0,red:2===t.row.status,green:1===t.row.status}},[e._v("\n "+e._s(e._f("filterStatus")(t.row.status))+"\n ")])]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"提现成功时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.success_at)+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"提现时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.created_at)+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"reason",label:"失败原因"}}),e._v(" "),i("el-table-column",{attrs:{prop:"desc",label:"备注"}})],1)],1)};o._withStripped=!0;var n={render:o,staticRenderFns:[]},s=n;var l=!1;var c=i("VU/8")(r,s,!1,function(e){l||i("9Wh8")},"data-v-dcd002fe",null);c.options.__file="src\\components\\order\\sourceDialog.vue";t.a=c.exports},P0f4:function(e,t,i){"use strict";var a=1;function r(e,t){return e.filter(function(e){return e.value===t})[0].children}var o=i("xGts").a.filter(function(e){return e.type==a}),n={name:"vueAddress",props:["province","city","district","detail","name","mobile"],created:function(){},mounted:function(){this.show=this.showAddressPicker},computed:{cities:function(){return this.form.province?r(o,this.form.province):[]},districts:function(){return this.form.city?r(this.cities,this.form.city):[]}},data:function(){return{rules:{province:[{required:!0,message:"请选择省份",trigger:"change"}],city:[{required:!0,message:"请选择城市",trigger:"change"}],district:[{required:!0,message:"请选择区/县",trigger:"change"}],detail:[{required:!0,message:"请填写详细地址",trigger:"change"}],name:[{required:!0,message:"请填写收货人",trigger:"change"}],mobile:[{required:!0,message:"请填写手机号",trigger:"change"}]},form:{province:this.province,city:this.city,district:this.district,detail:this.detail,name:this.name,mobile:this.mobile},provinces:o}},watch:{form:{handler:function(e){this.$emit("change",e)},deep:!0}},methods:{proChange:function(e,t){t&&(this.form.city="",this.form.district=""),this.form.city=this.cities[0].value,this.form.district=this.districts[0].value},cityChange:function(e,t){this.form.district=this.districts[0].value},districtChange:function(e,t){t&&(this.form.detail="")},detailChange:function(e){console.log(e)}}},s=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"address"},[i("section",{staticStyle:{width:"100%",height:"100%"}},[i("el-form",{ref:"form",staticClass:"demo-ruleForm",attrs:{model:e.form,"label-width":"100px",rules:e.rules}},[i("el-row",{attrs:{gutter:20}},[i("el-col",{attrs:{span:20}},[i("el-form-item",{attrs:{prop:"name",label:"收货人"}},[i("el-input",{model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1)],1)],1),e._v(" "),i("el-row",{attrs:{gutter:20}},[i("el-col",{attrs:{span:20}},[i("el-form-item",{attrs:{prop:"mobile",label:"手机号"}},[i("el-input",{model:{value:e.form.mobile,callback:function(t){e.$set(e.form,"mobile",t)},expression:"form.mobile"}})],1)],1)],1),e._v(" "),i("el-row",{staticClass:"address",attrs:{gutter:20}},[i("el-col",{attrs:{span:20}},[i("el-form-item",{attrs:{prop:"province",label:"省"}},[i("el-select",{attrs:{placeholder:"请选择省"},on:{change:e.proChange},model:{value:e.form.province,callback:function(t){e.$set(e.form,"province",t)},expression:"form.province"}},e._l(e.provinces,function(e){return i("el-option",{key:e.value,attrs:{value:e.value,label:e.label}})}))],1)],1)],1),e._v(" "),i("el-row",{staticClass:"address",attrs:{gutter:20}},[i("el-col",{attrs:{span:20}},[i("el-form-item",{attrs:{prop:"city",label:"市"}},[i("el-select",{attrs:{placeholder:"请选择市"},on:{change:e.cityChange},model:{value:e.form.city,callback:function(t){e.$set(e.form,"city",t)},expression:"form.city"}},e._l(e.cities,function(e){return i("el-option",{key:e.value,attrs:{value:e.value,label:e.label}})}))],1)],1)],1),e._v(" "),i("el-row",{staticClass:"address",attrs:{gutter:20}},[i("el-col",{attrs:{span:20}},[i("el-form-item",{attrs:{prop:"district",label:"县/区"}},[i("el-select",{attrs:{placeholder:"请选择区/县"},on:{change:e.districtChange},model:{value:e.form.district,callback:function(t){e.$set(e.form,"district",t)},expression:"form.district"}},e._l(e.districts,function(e){return i("el-option",{key:e.value,attrs:{value:e.value,label:e.label}})}))],1)],1)],1),e._v(" "),i("el-row",{staticClass:"address",attrs:{gutter:20}},[i("el-col",{attrs:{span:20}},[i("el-form-item",{attrs:{prop:"detail",label:"详细地址"}},[i("el-input",{attrs:{placeholder:"请填写详细地址",number:!0},model:{value:e.form.detail,callback:function(t){e.$set(e.form,"detail",t)},expression:"form.detail"}})],1)],1)],1)],1)],1)])};s._withStripped=!0;var l={render:s,staticRenderFns:[]},c=l;var d=!1;var u=i("VU/8")(n,c,!1,function(e){d||i("VbwD")},"data-v-0fbf8c8d",null);u.options.__file="src\\components\\framework\\address-picker\\Address.vue";t.a=u.exports},TGA0:function(e,t,i){(e.exports=i("FZ+f")(!0)).push([e.i,"\n.el-col[data-v-375439e2] {\n height: 60px;\n}\n.el-col img[data-v-375439e2] {\n width: 50px;\n border-radius: 100px;\n}\n.el-col label[data-v-375439e2] {\n color: #5982e6;\n}\n","",{version:3,sources:["D:/myproject/changchang-admin-new/src/components/order/detail.vue"],names:[],mappings:";AACA;EACE,aAAa;CACd;AACD;EACE,YAAY;EACZ,qBAAqB;CACtB;AACD;EACE,eAAe;CAChB",file:"detail.vue",sourcesContent:["\n.el-col[data-v-375439e2] {\n height: 60px;\n}\n.el-col img[data-v-375439e2] {\n width: 50px;\n border-radius: 100px;\n}\n.el-col label[data-v-375439e2] {\n color: #5982e6;\n}\n"],sourceRoot:""}])},U05e:function(e,t,i){(e.exports=i("FZ+f")(!0)).push([e.i,"\n.dialog-footer[data-v-60e716f4] {\n display: block;\n text-align: center;\n}\n","",{version:3,sources:["D:/myproject/changchang-admin-new/src/components/order/dialog.vue"],names:[],mappings:";AACA;EACE,eAAe;EACf,mBAAmB;CACpB",file:"dialog.vue",sourcesContent:["\n.dialog-footer[data-v-60e716f4] {\n display: block;\n text-align: center;\n}\n"],sourceRoot:""}])},UAas:function(e,t,i){var a=i("hMSk");"string"==typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);i("rjj0")("984d55cc",a,!1,{})},VbwD:function(e,t,i){var a=i("mCCp");"string"==typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);i("rjj0")("20bf94ac",a,!1,{})},Yg4o:function(e,t,i){(e.exports=i("FZ+f")(!0)).push([e.i,"\n.f-c > .cell {\n display: -webkit-box !important;\n display: -ms-flexbox !important;\n display: flex !important;\n -webkit-box-orient: horizontal;\n -webkit-box-direction: normal;\n -ms-flex-flow: row;\n flex-flow: row;\n -webkit-box-pack: start;\n -ms-flex-pack: start;\n justify-content: flex-start;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n}\n","",{version:3,sources:["D:/myproject/changchang-admin-new/src/components/order/index.vue"],names:[],mappings:";AACA;EACE,gCAAgC;EAChC,gCAAgC;EAChC,yBAAyB;EACzB,+BAA+B;EAC/B,8BAA8B;MAC1B,mBAAmB;UACf,eAAe;EACvB,wBAAwB;MACpB,qBAAqB;UACjB,4BAA4B;EACpC,0BAA0B;MACtB,uBAAuB;UACnB,oBAAoB;CAC7B",file:"index.vue",sourcesContent:["\n.f-c > .cell {\n display: -webkit-box !important;\n display: -ms-flexbox !important;\n display: flex !important;\n -webkit-box-orient: horizontal;\n -webkit-box-direction: normal;\n -ms-flex-flow: row;\n flex-flow: row;\n -webkit-box-pack: start;\n -ms-flex-pack: start;\n justify-content: flex-start;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n}\n"],sourceRoot:""}])},cCfO:function(e,t,i){var a=i("TGA0");"string"==typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);i("rjj0")("dc96e79c",a,!1,{})},eCTS:function(e,t,i){var a=i("6E06");"string"==typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);i("rjj0")("de7d4256",a,!1,{})},eW9u:function(e,t,i){(e.exports=i("FZ+f")(!0)).push([e.i,"\n.avatar[data-v-e25265f8] {\n width: 50px;\n min-width: 50px;\n height: 50px;\n margin-right: 5px;\n border-radius: 50%;\n}\n.order[data-v-e25265f8] {\n padding: 20px 0;\n}\n","",{version:3,sources:["D:/myproject/changchang-admin-new/src/components/order/index.vue"],names:[],mappings:";AACA;EACE,YAAY;EACZ,gBAAgB;EAChB,aAAa;EACb,kBAAkB;EAClB,mBAAmB;CACpB;AACD;EACE,gBAAgB;CACjB",file:"index.vue",sourcesContent:["\n.avatar[data-v-e25265f8] {\n width: 50px;\n min-width: 50px;\n height: 50px;\n margin-right: 5px;\n border-radius: 50%;\n}\n.order[data-v-e25265f8] {\n padding: 20px 0;\n}\n"],sourceRoot:""}])},hMSk:function(e,t,i){(e.exports=i("FZ+f")(!0)).push([e.i,"\n.avatar[data-v-dcf5d7b2] {\n width:50px;\n height: 50px;\n border-radius: 50%;\n}\n","",{version:3,sources:["D:/myproject/changchang-admin-new/src/components/order/refundDetail.vue"],names:[],mappings:";AACA;EACE,WAAW;EACX,aAAa;EACb,mBAAmB;CACpB",file:"refundDetail.vue",sourcesContent:["\n.avatar[data-v-dcf5d7b2] {\n width:50px;\n height: 50px;\n border-radius: 50%;\n}\n"],sourceRoot:""}])},jKuw:function(e,t,i){var a=i("F+JO");"string"==typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);i("rjj0")("679c3646",a,!1,{})},kmsh:function(e,t,i){"use strict";var a=i("CCn6"),r={name:"sourceDialog",props:["dialogObj"],data:function(){return{detail:[]}},filters:{filterStatus:function(e){var t="";return 0===e?t="未使用":1===e?t="已使用":2===e&&(t="禁用"),t}},methods:{initPage:function(){var e=this,t={order_coupon_id:this.dialogObj.order_coupon_id,limit:200};Object(a._31)(t).then(function(t){e.detail=t.list})}},watch:{"dialogObj.show":function(e){!0===e&&this.initPage()}}},o=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{attrs:{title:"优惠券详情",center:"","append-to-body":"",visible:e.dialogObj.show,width:"90%"},on:{"update:visible":function(t){e.$set(e.dialogObj,"show",t)}}},[i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.detail}},[i("el-table-column",{attrs:{prop:"coupon_no",label:"优惠券码"}}),e._v(" "),i("el-table-column",{attrs:{prop:"out_trade_no",label:"订单号"}}),e._v(" "),i("el-table-column",{attrs:{label:"用户信息","min-width":"140",className:"userInfo"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("img",{staticClass:"avatar",attrs:{src:t.row.user_avatar}}),e._v("\n "+e._s(t.row.user_nickname)+"(ID:"+e._s(t.row.user_id)+")\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"优惠券金额"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(parseFloat(t.row.money/100))+"元\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"使用状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("filterStatus")(t.row.status))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"use_at",label:"使用时间"}})],1)],1)};o._withStripped=!0;var n={render:o,staticRenderFns:[]},s=n;var l=!1;var c=i("VU/8")(r,s,!1,function(e){l||i("eCTS")},"data-v-33d21ccc",null);c.options.__file="src\\components\\order\\couponDialog.vue";t.a=c.exports},mCCp:function(e,t,i){(e.exports=i("FZ+f")(!0)).push([e.i,"\n.mint-popup[data-v-0fbf8c8d] {\n width: 100%;\n}\n.footer-btn[data-v-0fbf8c8d] {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n position: fixed;\n width: 100%;\n z-index: 2;\n left: 0;\n bottom: 3rem;\n}\n.input[data-v-0fbf8c8d] {\n border: none;\n}\n.padding[data-v-0fbf8c8d] {\n padding: 1.5rem;\n font-size: 1.4rem;\n}\n.float-right[data-v-0fbf8c8d] {\n float: right;\n}\n\n","",{version:3,sources:["D:/myproject/changchang-admin-new/src/components/framework/address-picker/Address.vue"],names:[],mappings:";AACA;EACE,YAAY;CACb;AACD;EACE,+BAA+B;UACvB,uBAAuB;EAC/B,gBAAgB;EAChB,YAAY;EACZ,WAAW;EACX,QAAQ;EACR,aAAa;CACd;AACD;EACE,aAAa;CACd;AACD;EACE,gBAAgB;EAChB,kBAAkB;CACnB;AACD;EACE,aAAa;CACd",file:"Address.vue",sourcesContent:["\n.mint-popup[data-v-0fbf8c8d] {\n width: 100%;\n}\n.footer-btn[data-v-0fbf8c8d] {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n position: fixed;\n width: 100%;\n z-index: 2;\n left: 0;\n bottom: 3rem;\n}\n.input[data-v-0fbf8c8d] {\n border: none;\n}\n.padding[data-v-0fbf8c8d] {\n padding: 1.5rem;\n font-size: 1.4rem;\n}\n.float-right[data-v-0fbf8c8d] {\n float: right;\n}\n\n"],sourceRoot:""}])},ri1l:function(e,t,i){var a=i("U05e");"string"==typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);i("rjj0")("cbfcbdae",a,!1,{})},udiB:function(e,t,i){(e.exports=i("FZ+f")(!0)).push([e.i,"\n.avatar[data-v-dcd002fe] {\n width:50px;\n height: 50px;\n border-radius: 50%;\n}\n","",{version:3,sources:["D:/myproject/changchang-admin-new/src/components/order/sourceDialog.vue"],names:[],mappings:";AACA;EACE,WAAW;EACX,aAAa;EACb,mBAAmB;CACpB",file:"sourceDialog.vue",sourcesContent:["\n.avatar[data-v-dcd002fe] {\n width:50px;\n height: 50px;\n border-radius: 50%;\n}\n"],sourceRoot:""}])}});
\ No newline at end of file
webpackJsonp([4],{"00Mx":function(e,t,o){(e.exports=o("FZ+f")(!0)).push([e.i,"\n.avatar[data-v-444c5fd8]{\n width: 50px;\n min-width: 50px;\n height: 50px;\n margin-right: 5px;\n border-radius: 50%;\n}\n.order[data-v-444c5fd8] {\n padding: 20px 0;\n}\n","",{version:3,sources:["D:/myproject/changchang-admin-new/src/components/monthOrder/index.vue"],names:[],mappings:";AACA;EACE,YAAY;EACZ,gBAAgB;EAChB,aAAa;EACb,kBAAkB;EAClB,mBAAmB;CACpB;AACD;EACE,gBAAgB;CACjB",file:"index.vue",sourcesContent:["\n.avatar[data-v-444c5fd8]{\n width: 50px;\n min-width: 50px;\n height: 50px;\n margin-right: 5px;\n border-radius: 50%;\n}\n.order[data-v-444c5fd8] {\n padding: 20px 0;\n}\n"],sourceRoot:""}])},"3yGV":function(e,t,o){var r=o("YWnz");"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);o("rjj0")("1a4b587a",r,!1,{})},"7BML":function(e,t,o){(e.exports=o("FZ+f")(!0)).push([e.i,"\n.dialog-footer[data-v-60e9d376] {\n display: block;\n text-align: center;\n}\n","",{version:3,sources:["D:/myproject/changchang-admin-new/src/components/monthOrder/dialog.vue"],names:[],mappings:";AACA;EACE,eAAe;EACf,mBAAmB;CACpB",file:"dialog.vue",sourcesContent:["\n.dialog-footer[data-v-60e9d376] {\n display: block;\n text-align: center;\n}\n"],sourceRoot:""}])},"7hmY":function(e,t,o){var r=o("cOPA");"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);o("rjj0")("30c1366f",r,!1,{})},"91gd":function(e,t,o){(e.exports=o("FZ+f")(!0)).push([e.i,"\n.avatar[data-v-0abb7f17] {\n width:50px;\n height: 50px;\n border-radius: 50%;\n}\n","",{version:3,sources:["D:/myproject/changchang-admin-new/src/components/monthOrder/refundDetail.vue"],names:[],mappings:";AACA;EACE,WAAW;EACX,aAAa;EACb,mBAAmB;CACpB",file:"refundDetail.vue",sourcesContent:["\n.avatar[data-v-0abb7f17] {\n width:50px;\n height: 50px;\n border-radius: 50%;\n}\n"],sourceRoot:""}])},D86L:function(e,t,o){var r=o("N3xQ");"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);o("rjj0")("0096fb34",r,!1,{})},FU5t:function(e,t,o){(e.exports=o("FZ+f")(!0)).push([e.i,"\n.dialog-footer[data-v-d1a2db6c] {\n display: block;\n text-align: center;\n}\n","",{version:3,sources:["D:/myproject/changchang-admin-new/src/components/monthOrder/newDialog.vue"],names:[],mappings:";AACA;EACE,eAAe;EACf,mBAAmB;CACpB",file:"newDialog.vue",sourcesContent:["\n.dialog-footer[data-v-d1a2db6c] {\n display: block;\n text-align: center;\n}\n"],sourceRoot:""}])},KuvE:function(e,t,o){var r=o("Ma/F");"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);o("rjj0")("1b8e2cde",r,!1,{})},"Ma/F":function(e,t,o){(e.exports=o("FZ+f")(!0)).push([e.i,"\n.avatar[data-v-a5eef088] {\n width:50px;\n height: 50px;\n border-radius: 50%;\n}\n","",{version:3,sources:["D:/myproject/changchang-admin-new/src/components/monthOrder/couponDialog.vue"],names:[],mappings:";AACA;EACE,WAAW;EACX,aAAa;EACb,mBAAmB;CACpB",file:"couponDialog.vue",sourcesContent:["\n.avatar[data-v-a5eef088] {\n width:50px;\n height: 50px;\n border-radius: 50%;\n}\n"],sourceRoot:""}])},N3xQ:function(e,t,o){(e.exports=o("FZ+f")(!0)).push([e.i,"\n.el-col[data-v-75b341ff] {\n height: 60px;\n}\n.el-col img[data-v-75b341ff] {\n width: 50px;\n border-radius: 100px;\n}\n.el-col label[data-v-75b341ff] {\n color: #5982e6;\n}\n","",{version:3,sources:["D:/myproject/changchang-admin-new/src/components/monthOrder/detail.vue"],names:[],mappings:";AACA;EACE,aAAa;CACd;AACD;EACE,YAAY;EACZ,qBAAqB;CACtB;AACD;EACE,eAAe;CAChB",file:"detail.vue",sourcesContent:["\n.el-col[data-v-75b341ff] {\n height: 60px;\n}\n.el-col img[data-v-75b341ff] {\n width: 50px;\n border-radius: 100px;\n}\n.el-col label[data-v-75b341ff] {\n color: #5982e6;\n}\n"],sourceRoot:""}])},NA7D:function(e,t,o){(e.exports=o("FZ+f")(!0)).push([e.i,"","",{version:3,sources:[],names:[],mappings:"",file:"refundDialog.vue",sourceRoot:""}])},P0f4:function(e,t,o){"use strict";var r=1;function i(e,t){return e.filter(function(e){return e.value===t})[0].children}var a=o("xGts").a.filter(function(e){return e.type==r}),n={name:"vueAddress",props:["province","city","district","detail","name","mobile"],created:function(){},mounted:function(){this.show=this.showAddressPicker},computed:{cities:function(){return this.form.province?i(a,this.form.province):[]},districts:function(){return this.form.city?i(this.cities,this.form.city):[]}},data:function(){return{rules:{province:[{required:!0,message:"请选择省份",trigger:"change"}],city:[{required:!0,message:"请选择城市",trigger:"change"}],district:[{required:!0,message:"请选择区/县",trigger:"change"}],detail:[{required:!0,message:"请填写详细地址",trigger:"change"}],name:[{required:!0,message:"请填写收货人",trigger:"change"}],mobile:[{required:!0,message:"请填写手机号",trigger:"change"}]},form:{province:this.province,city:this.city,district:this.district,detail:this.detail,name:this.name,mobile:this.mobile},provinces:a}},watch:{form:{handler:function(e){this.$emit("change",e)},deep:!0}},methods:{proChange:function(e,t){t&&(this.form.city="",this.form.district=""),this.form.city=this.cities[0].value,this.form.district=this.districts[0].value},cityChange:function(e,t){this.form.district=this.districts[0].value},districtChange:function(e,t){t&&(this.form.detail="")},detailChange:function(e){console.log(e)}}},s=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"address"},[o("section",{staticStyle:{width:"100%",height:"100%"}},[o("el-form",{ref:"form",staticClass:"demo-ruleForm",attrs:{model:e.form,"label-width":"100px",rules:e.rules}},[o("el-row",{attrs:{gutter:20}},[o("el-col",{attrs:{span:20}},[o("el-form-item",{attrs:{prop:"name",label:"收货人"}},[o("el-input",{model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1)],1)],1),e._v(" "),o("el-row",{attrs:{gutter:20}},[o("el-col",{attrs:{span:20}},[o("el-form-item",{attrs:{prop:"mobile",label:"手机号"}},[o("el-input",{model:{value:e.form.mobile,callback:function(t){e.$set(e.form,"mobile",t)},expression:"form.mobile"}})],1)],1)],1),e._v(" "),o("el-row",{staticClass:"address",attrs:{gutter:20}},[o("el-col",{attrs:{span:20}},[o("el-form-item",{attrs:{prop:"province",label:"省"}},[o("el-select",{attrs:{placeholder:"请选择省"},on:{change:e.proChange},model:{value:e.form.province,callback:function(t){e.$set(e.form,"province",t)},expression:"form.province"}},e._l(e.provinces,function(e){return o("el-option",{key:e.value,attrs:{value:e.value,label:e.label}})}))],1)],1)],1),e._v(" "),o("el-row",{staticClass:"address",attrs:{gutter:20}},[o("el-col",{attrs:{span:20}},[o("el-form-item",{attrs:{prop:"city",label:"市"}},[o("el-select",{attrs:{placeholder:"请选择市"},on:{change:e.cityChange},model:{value:e.form.city,callback:function(t){e.$set(e.form,"city",t)},expression:"form.city"}},e._l(e.cities,function(e){return o("el-option",{key:e.value,attrs:{value:e.value,label:e.label}})}))],1)],1)],1),e._v(" "),o("el-row",{staticClass:"address",attrs:{gutter:20}},[o("el-col",{attrs:{span:20}},[o("el-form-item",{attrs:{prop:"district",label:"县/区"}},[o("el-select",{attrs:{placeholder:"请选择区/县"},on:{change:e.districtChange},model:{value:e.form.district,callback:function(t){e.$set(e.form,"district",t)},expression:"form.district"}},e._l(e.districts,function(e){return o("el-option",{key:e.value,attrs:{value:e.value,label:e.label}})}))],1)],1)],1),e._v(" "),o("el-row",{staticClass:"address",attrs:{gutter:20}},[o("el-col",{attrs:{span:20}},[o("el-form-item",{attrs:{prop:"detail",label:"详细地址"}},[o("el-input",{attrs:{placeholder:"请填写详细地址",number:!0},model:{value:e.form.detail,callback:function(t){e.$set(e.form,"detail",t)},expression:"form.detail"}})],1)],1)],1)],1)],1)])};s._withStripped=!0;var l={render:s,staticRenderFns:[]},c=l;var d=!1;var u=o("VU/8")(n,c,!1,function(e){d||o("VbwD")},"data-v-0fbf8c8d",null);u.options.__file="src\\components\\framework\\address-picker\\Address.vue";t.a=u.exports},VbwD:function(e,t,o){var r=o("mCCp");"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);o("rjj0")("20bf94ac",r,!1,{})},YWnz:function(e,t,o){(e.exports=o("FZ+f")(!0)).push([e.i,"\n.avatar[data-v-0ace6971] {\n width:50px;\n height: 50px;\n border-radius: 50%;\n}\n","",{version:3,sources:["D:/myproject/changchang-admin-new/src/components/monthOrder/sourceDialog.vue"],names:[],mappings:";AACA;EACE,WAAW;EACX,aAAa;EACb,mBAAmB;CACpB",file:"sourceDialog.vue",sourcesContent:["\n.avatar[data-v-0ace6971] {\n width:50px;\n height: 50px;\n border-radius: 50%;\n}\n"],sourceRoot:""}])},YziW:function(e,t,o){var r=o("7BML");"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);o("rjj0")("44a51254",r,!1,{})},aXxj:function(e,t,o){var r=o("00Mx");"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);o("rjj0")("536949d2",r,!1,{})},ao7n:function(e,t,o){var r=o("FU5t");"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);o("rjj0")("53df1465",r,!1,{})},cOPA:function(e,t,o){(e.exports=o("FZ+f")(!0)).push([e.i,"\n.f-c > .cell {\n display: -webkit-box !important;\n display: -ms-flexbox !important;\n display: flex !important;\n -webkit-box-orient: horizontal;\n -webkit-box-direction: normal;\n -ms-flex-flow: row;\n flex-flow: row;\n -webkit-box-pack: start;\n -ms-flex-pack: start;\n justify-content: flex-start;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n}\n","",{version:3,sources:["D:/myproject/changchang-admin-new/src/components/monthOrder/index.vue"],names:[],mappings:";AACA;EACE,gCAAgC;EAChC,gCAAgC;EAChC,yBAAyB;EACzB,+BAA+B;EAC/B,8BAA8B;MAC1B,mBAAmB;UACf,eAAe;EACvB,wBAAwB;MACpB,qBAAqB;UACjB,4BAA4B;EACpC,0BAA0B;MACtB,uBAAuB;UACnB,oBAAoB;CAC7B",file:"index.vue",sourcesContent:["\n.f-c > .cell {\n display: -webkit-box !important;\n display: -ms-flexbox !important;\n display: flex !important;\n -webkit-box-orient: horizontal;\n -webkit-box-direction: normal;\n -ms-flex-flow: row;\n flex-flow: row;\n -webkit-box-pack: start;\n -ms-flex-pack: start;\n justify-content: flex-start;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n}\n"],sourceRoot:""}])},jvbJ:function(e,t,o){var r=o("91gd");"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);o("rjj0")("5698d579",r,!1,{})},mCCp:function(e,t,o){(e.exports=o("FZ+f")(!0)).push([e.i,"\n.mint-popup[data-v-0fbf8c8d] {\n width: 100%;\n}\n.footer-btn[data-v-0fbf8c8d] {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n position: fixed;\n width: 100%;\n z-index: 2;\n left: 0;\n bottom: 3rem;\n}\n.input[data-v-0fbf8c8d] {\n border: none;\n}\n.padding[data-v-0fbf8c8d] {\n padding: 1.5rem;\n font-size: 1.4rem;\n}\n.float-right[data-v-0fbf8c8d] {\n float: right;\n}\n\n","",{version:3,sources:["D:/myproject/changchang-admin-new/src/components/framework/address-picker/Address.vue"],names:[],mappings:";AACA;EACE,YAAY;CACb;AACD;EACE,+BAA+B;UACvB,uBAAuB;EAC/B,gBAAgB;EAChB,YAAY;EACZ,WAAW;EACX,QAAQ;EACR,aAAa;CACd;AACD;EACE,aAAa;CACd;AACD;EACE,gBAAgB;EAChB,kBAAkB;CACnB;AACD;EACE,aAAa;CACd",file:"Address.vue",sourcesContent:["\n.mint-popup[data-v-0fbf8c8d] {\n width: 100%;\n}\n.footer-btn[data-v-0fbf8c8d] {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n position: fixed;\n width: 100%;\n z-index: 2;\n left: 0;\n bottom: 3rem;\n}\n.input[data-v-0fbf8c8d] {\n border: none;\n}\n.padding[data-v-0fbf8c8d] {\n padding: 1.5rem;\n font-size: 1.4rem;\n}\n.float-right[data-v-0fbf8c8d] {\n float: right;\n}\n\n"],sourceRoot:""}])},qZVp:function(e,t,o){var r=o("NA7D");"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);o("rjj0")("2871da0e",r,!1,{})},xdzM:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o("CCn6"),i=o("kmJW"),a=o("P0f4"),n=o("xGts"),s={name:"dialogObj",props:["dialogObj"],data:function(){return{}},methods:{handlerAddressChange:function(e){if(e.province&&e.city&&e.district){this.dialogObj.detail=e.detail,this.dialogObj.province=e.province,this.dialogObj.city=e.city,this.dialogObj.receive_mobile=e.mobile,this.dialogObj.receive_name=e.name;var t=n.a.filter(function(t){return t.value===e.province}),o=t[0].children.filter(function(t){return t.value===e.city}),r=o[0].children.filter(function(t){return t.value===e.district});this.dialogObj.province_name=t[0].label,this.dialogObj.city_name=o[0].label,this.dialogObj.district_name=r.length>0?r[0].label:o[0].children[0].label,this.dialogObj.district=r.length>0?r[0].value:o[0].children[0].value}},saveAddress:function(){var e=this;this.$confirm("确定保存?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){var t={province_id:e.dialogObj.province,province_name:e.dialogObj.province_name,city_id:e.dialogObj.city,city:e.dialogObj.city_name,area:e.dialogObj.district_name,area_id:e.dialogObj.district,address:e.dialogObj.detail,receive_name:e.dialogObj.receive_name,receive_mobile:e.dialogObj.receive_mobile};Object(r.T)(e.dialogObj.id,t).then(function(t){e.$message({type:"success",message:"修改成功"}),e.dialogObj.show=!1,e.$emit("reflash")})})}},components:{vueAddress:a.a},mounted:function(){}},l=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("el-dialog",{attrs:{title:"编辑收货地址",center:"","append-to-body":"",visible:e.dialogObj.show,width:"800px"},on:{"update:visible":function(t){e.$set(e.dialogObj,"show",t)}}},[o("vue-address",{attrs:{province:e.dialogObj.province,city:e.dialogObj.city,district:e.dialogObj.district,detail:e.dialogObj.detail,mobile:e.dialogObj.receive_mobile,name:e.dialogObj.receive_name},on:{change:e.handlerAddressChange}}),e._v(" "),o("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[o("el-button",{on:{click:function(t){e.dialogObj.show=!1}}},[e._v("取 消")]),e._v(" "),o("el-button",{attrs:{type:"primary"},on:{click:e.saveAddress}},[e._v("保 存")])],1)],1)};l._withStripped=!0;var c={render:l,staticRenderFns:[]},d=c;var u=!1;var m=o("VU/8")(s,d,!1,function(e){u||o("YziW")},"data-v-60e9d376",null);m.options.__file="src\\components\\monthOrder\\dialog.vue";var p=m.exports,_=o("+TkF"),f=o("sf/l"),h={name:"newdialogObj",props:["newdialogObj"],data:function(){return{rules:{periods_id:[{required:!0,message:"请输入期数名称",trigger:"change"}],goods_id:[{required:!0,message:"请输入商品名称",trigger:"change"}],money:[{required:!0,message:"请输入金额",trigger:"blur"}],user_id:[{required:!0,message:"请输入用户ID",trigger:"blur"}],pay_at:[{required:!0,message:"请选择日期",trigger:"change"}],order_type:[{required:!0,message:"请选择支付类型",trigger:"change"}]},nowPage:1,limit:200,total:0,form:{periods_id:"",goods_id:"",user_id:"",money:"",buy_type:"",invite_id:"",desc:"",province_name:"",city:"",area:"",city_name:"",district_name:"",district:"",province:"",address:"",receive_mobile:"",receive_name:"",order_type:"",pay_at:""},goodsList:[],periodsList:[],pickerOptions1:"",buyWayOptioms:_.e,teacherList:[],addShow:!1,searchFrom:{},userList:[],multipleSelection:[]}},components:{vueAddress:a.a,page:i.a},filters:{filterGoods:function(e){return"["+_.g[e.goods_type]+"]["+e.current_price/100+"元]"+e.name}},methods:{onPageChange:function(e){this.nowPage=e,this.getUser()},onSizeChange:function(e){this.limit=e,this.nowPage=1,this.getUser()},handleSelectionChange:function(e){this.multipleSelection=e},getUser:function(){var e=this,t={page:this.nowPage,limit:5};this.searchFrom.userId&&(t.user_id=this.searchFrom.userId),this.searchFrom.nickName&&(t.nickname=this.searchFrom.nickName),this.searchFrom.mobile&&(t.mobile=this.searchFrom.mobile),Object(r._69)(t).then(function(t){e.userList=t.list,e.total=t.total})},saveAddOrder:function(e){var t=this;this.$refs.form.validate(function(o){if(!o)return console.log("error submit!!"),!1;var i={periods_id:e.periods_id,goods_id:e.goods_id,user_id:e.user_id,money:e.money,province_name:e.province_name,city_id:e.city,city:e.city_name,area:e.district_name,area_id:e.district,province_id:e.province,address:e.address,receive_mobile:e.receive_mobile,receive_name:e.receive_name,order_type:e.order_type};i.money=i.money,e.pay_at&&(i.pay_at=f.a.dateFmt(e.pay_at,"yyyy-MM-dd hh:mm:ss")),t.form.invite_id&&(i.invite_id=t.form.invite_id),t.form.desc&&(i.desc=t.form.desc),i.invite_type="TEACHER",i.province_name&&i.address&&i.receive_mobile&&i.receive_name?Object(r._91)(i).then(function(e){t.newdialogObj.show=!1,t.$emit("reflash"),t.$message({message:"添加成功",type:"success"})}):t.$message({message:"缺少必填项",type:"warning"})})},handlerAddressChange:function(e){if(e.province&&e.city&&e.district){this.form.address=e.detail,this.form.province=e.province,this.form.city=e.city,this.form.receive_mobile=e.mobile,this.form.receive_name=e.name;var t=n.a.filter(function(t){return t.value===e.province}),o=t[0].children.filter(function(t){return t.value===e.city}),r=o[0].children.filter(function(t){return t.value===e.district});this.form.province_name=t[0].label,this.form.city_name=o[0].label,this.form.district_name=r.length>0?r[0].label:o[0].children[0].label,this.form.district=r.length>0?r[0].value:o[0].children[0].value}},getGoodsOption:function(){var e=this;Object(r._37)({page:1,limit:200,course_type:0}).then(function(t){e.goodsList=t.list})},onOptionChange:function(e){var t=this;this.form.periods_id="",Object(r._48)({goods_id:e}).then(function(e){t.periodsList=e.list})},getTeacherList:function(e){var t=this,o={limit:100,page:1};e&&(o.name=e),Object(r._65)(o).then(function(e){t.teacherList=e.list})},remoteMethod:function(e){""!==e?this.getTeacherList(e):this.getTeacherList()},onAddUser:function(){this.addShow=!0,this.getUser()},onAdd:function(){0!==this.multipleSelection.length?1===this.multipleSelection.length?(this.form.user_id=this.multipleSelection[0].user_id,this.addShow=!1):this.$message({type:"error",message:"只能选择一个用户!"}):this.$message({type:"error",message:"请选择用户!"})}},watch:{"newdialogObj.show":function(e){e&&(this.getGoodsOption(),this.getTeacherList())}},mounted:function(){}},v=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("el-dialog",{attrs:{title:"新增订单",center:"","append-to-body":"",visible:e.newdialogObj.show,width:"70%"},on:{"update:visible":function(t){e.$set(e.newdialogObj,"show",t)}}},[o("el-form",{ref:"form",attrs:{model:e.form,"label-width":"120px",rules:e.rules}},[o("el-row",[o("el-col",{attrs:{span:10}},[o("el-form-item",{attrs:{label:"商品名称",prop:"goods_id"}},[o("el-select",{attrs:{placeholder:"请选择"},on:{change:e.onOptionChange},model:{value:e.form.goods_id,callback:function(t){e.$set(e.form,"goods_id",t)},expression:"form.goods_id"}},e._l(e.goodsList,function(t,r){return o("el-option",{key:r,attrs:{label:e._f("filterGoods")(t),value:t.id}})}))],1)],1),e._v(" "),o("el-col",{attrs:{span:10}},[o("el-form-item",{attrs:{label:"期数名称",prop:"periods_id"}},[o("el-select",{attrs:{placeholder:"请选择"},model:{value:e.form.periods_id,callback:function(t){e.$set(e.form,"periods_id",t)},expression:"form.periods_id"}},e._l(e.periodsList,function(e,t){return o("el-option",{key:t,attrs:{label:e.title,value:e.id}})}))],1)],1)],1),e._v(" "),o("el-row",[o("el-col",{attrs:{span:10}},[o("el-form-item",{attrs:{label:"用户ID",prop:"user_id"}},[o("el-input",{model:{value:e.form.user_id,callback:function(t){e.$set(e.form,"user_id",t)},expression:"form.user_id"}}),e._v(" "),o("el-button",{attrs:{type:"success"},on:{click:e.onAddUser}},[e._v("+添加用户")])],1)],1),e._v(" "),o("el-col",{attrs:{span:10}},[o("el-form-item",{attrs:{label:"添加推广人"}},[o("el-select",{attrs:{filterable:"",clearable:"",placeholder:"请输入名称","remote-method":e.remoteMethod},model:{value:e.form.invite_id,callback:function(t){e.$set(e.form,"invite_id",t)},expression:"form.invite_id"}},e._l(e.teacherList,function(e){return o("el-option",{key:e.id,attrs:{label:e.name,value:e.user_id}})}))],1)],1)],1),e._v(" "),o("el-row",[o("el-col",{attrs:{span:10}},[o("el-form-item",{attrs:{label:"支付类型",prop:"order_type"}},[o("el-select",{attrs:{placeholder:"请选择"},model:{value:e.form.order_type,callback:function(t){e.$set(e.form,"order_type",t)},expression:"form.order_type"}},e._l(e.buyWayOptioms,function(e){return o("el-option",{key:e.id,attrs:{label:e.value,value:e.id,disabled:e.disabled}})}))],1)],1),e._v(" "),o("el-col",{attrs:{span:10}},[o("el-form-item",{attrs:{label:"实付金额(元)",prop:"money"}},[o("el-input-number",{model:{value:e.form.money,callback:function(t){e.$set(e.form,"money",t)},expression:"form.money"}})],1)],1)],1),e._v(" "),o("el-row",[o("el-col",{attrs:{span:10}},[o("el-form-item",{attrs:{label:"支付时间",prop:"pay_at"}},[o("el-date-picker",{attrs:{type:"datetime","picker-options":e.pickerOptions1,"default-time":"12:00:00",placeholder:"选择日期时间"},model:{value:e.form.pay_at,callback:function(t){e.$set(e.form,"pay_at",t)},expression:"form.pay_at"}})],1)],1),e._v(" "),o("el-col",{attrs:{span:10}},[o("el-form-item",{attrs:{label:"备注"}},[o("el-input",{attrs:{type:"textarea"},model:{value:e.form.desc,callback:function(t){e.$set(e.form,"desc",t)},expression:"form.desc"}})],1)],1)],1),e._v(" "),o("el-row",[o("el-col",{attrs:{span:12}},[o("vue-address",{attrs:{province:e.form.province_name,city:e.form.city,district:e.form.area,detail:e.form.address,mobile:e.form.receive_mobile,name:e.form.receive_name},on:{change:e.handlerAddressChange}})],1)],1)],1),e._v(" "),o("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[o("el-button",{on:{click:function(t){e.newdialogObj.show=!1}}},[e._v("取 消")]),e._v(" "),o("el-button",{attrs:{type:"primary"},on:{click:function(t){e.saveAddOrder(e.form)}}},[e._v("确定")])],1),e._v(" "),o("el-dialog",{attrs:{modal:!1,visible:e.addShow},on:{"update:visible":function(t){e.addShow=t}}},[o("el-form",{attrs:{"label-width":"90px"}},[o("el-row",[o("el-col",{attrs:{span:8}},[o("el-form-item",{attrs:{label:"ID"}},[o("el-input",{model:{value:e.searchFrom.userId,callback:function(t){e.$set(e.searchFrom,"userId",t)},expression:"searchFrom.userId"}})],1)],1),e._v(" "),o("el-col",{attrs:{span:8}},[o("el-form-item",{attrs:{label:"昵称"}},[o("el-input",{model:{value:e.searchFrom.nickName,callback:function(t){e.$set(e.searchFrom,"nickName",t)},expression:"searchFrom.nickName"}})],1)],1),e._v(" "),o("el-col",{attrs:{span:8}},[o("el-form-item",{attrs:{label:"电话"}},[o("el-input",{model:{value:e.searchFrom.mobile,callback:function(t){e.$set(e.searchFrom,"mobile",t)},expression:"searchFrom.mobile"}})],1)],1)],1),e._v(" "),o("el-row",[o("el-col",{attrs:{span:8,offset:16}},[o("el-form-item",[o("el-button",{staticStyle:{float:"right"},attrs:{type:"primary",plain:""},on:{click:e.getUser}},[e._v("搜索")])],1)],1)],1)],1),e._v(" "),o("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:e.userList},on:{"selection-change":e.handleSelectionChange}},[o("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),o("el-table-column",{attrs:{className:"f-c",label:"用户"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("img",{staticStyle:{"margin-right":"5px",width:"50px",height:"50px","border-radius":"50px"},attrs:{src:t.row.avatar}}),e._v(e._s(t.row.nickname)+"(ID:"+e._s(t.row.user_id)+")\n ")]}}])}),e._v(" "),o("el-table-column",{attrs:{prop:"mobile",label:"手机号"}})],1),e._v(" "),o("page",{attrs:{total:e.total,limit:e.limit},on:{pageChange:e.onPageChange,sizeChange:e.onSizeChange}}),e._v(" "),o("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[o("el-button",{on:{click:function(t){e.addShow=!1}}},[e._v("取 消")]),e._v(" "),o("el-button",{attrs:{type:"primary"},on:{click:e.onAdd}},[e._v("确 定")])],1)],1)],1)};v._withStripped=!0;var g={render:v,staticRenderFns:[]},b=g;var y=!1;var w=o("VU/8")(h,b,!1,function(e){y||o("ao7n")},"data-v-d1a2db6c",null);w.options.__file="src\\components\\monthOrder\\newDialog.vue";var A=w.exports,x={name:"sourceDialog",props:["dialogObj"],data:function(){return{detail:[]}},filters:{moneyYuan:function(e){return e?(e/100).toFixed(2)+"元":""},filterStatus:function(e){var t="";return 0===e?t="审核中":1===e?t="提现成功":2===e&&(t="提现失败"),t}},methods:{initPage:function(){var e=this,t={out_trade_no:this.dialogObj.out_trade_no,limit:200};Object(r._74)(t).then(function(t){e.detail=t.list})}},watch:{"dialogObj.show":function(e){!0===e&&this.initPage()}}},O=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("el-dialog",{attrs:{title:"提现详情",center:"","append-to-body":"",visible:e.dialogObj.show,width:"90%"},on:{"update:visible":function(t){e.$set(e.dialogObj,"show",t)}}},[o("el-table",{staticStyle:{width:"100%"},attrs:{data:e.detail}},[o("el-table-column",{attrs:{prop:"withdraw_no",label:"提现单号"}}),e._v(" "),o("el-table-column",{attrs:{prop:"out_trade_no",label:"订单号"}}),e._v(" "),o("el-table-column",{attrs:{label:"用户",width:"200",className:"f-c"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("img",{staticClass:"avatar",attrs:{src:t.row.user_avatar}}),e._v(" "+e._s(t.row.user_nickname)+"(ID:"+e._s(t.row.user_id)+")\n ")]}}])}),e._v(" "),o("el-table-column",{attrs:{prop:"user_mobile",label:"手机号"}}),e._v(" "),o("el-table-column",{attrs:{label:"提现金额"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("moneyYuan")(t.row.money))+"\n ")]}}])}),e._v(" "),o("el-table-column",{attrs:{label:"提现状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("span",{class:{status:!0,red:2===t.row.status,green:1===t.row.status}},[e._v("\n "+e._s(e._f("filterStatus")(t.row.status))+"\n ")])]}}])}),e._v(" "),o("el-table-column",{attrs:{label:"提现成功时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.success_at)+"\n ")]}}])}),e._v(" "),o("el-table-column",{attrs:{label:"提现时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.created_at)+"\n ")]}}])}),e._v(" "),o("el-table-column",{attrs:{prop:"reason",label:"失败原因"}}),e._v(" "),o("el-table-column",{attrs:{prop:"desc",label:"备注"}})],1)],1)};O._withStripped=!0;var C={render:O,staticRenderFns:[]},j=C;var k=!1;var F=o("VU/8")(x,j,!1,function(e){k||o("3yGV")},"data-v-0ace6971",null);F.options.__file="src\\components\\monthOrder\\sourceDialog.vue";var D=F.exports,B={name:"dialogObj",props:["dialogObj"],data:function(){return{show:!1,id:"",loading:!0,form:{money:0,refund_type:1,desc:""},rules:{money:[{required:!0,message:"请输入退款金额",trigger:"change"}],desc:[{required:!0,message:"请输入退款原因",trigger:"change"}]}}},methods:{save:function(){var e=this;this.$confirm("确定保存?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){e.dialogObj.id&&e.$refs.form.validate(function(t){if(t){var o={refund_money:100*parseFloat(e.form.money),desc:e.form.desc,refund_type:e.form.refund_type};console.log(o),Object(r._84)(e.dialogObj.id,o).then(function(t){e.$message({type:"success",message:"退款成功!"}),e.$emit("reflash"),e.show=!1})}})})},initDialog:function(){this.show=this.dialogObj.show,this.dialogObj.id&&(this.id=this.dialogObj.id),this.form.money=parseFloat(this.dialogObj.money/100),this.form.desc=this.dialogObj.desc,this.loading=!1}},watch:{"dialogObj.show":function(e){e&&this.initDialog()},show:function(e){this.$emit("changeShow",e)}}},S=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("el-dialog",{attrs:{title:"退款",center:"","append-to-body":"",visible:e.show,width:"800px"}},[o("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[o("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules}},[o("el-row",{attrs:{gutter:20}},[o("el-col",{attrs:{span:4}},[o("label",[e._v("退款金额")])]),e._v(" "),o("el-col",{attrs:{span:8}},[o("el-form-item",{attrs:{prop:"key"}},[o("el-input",{model:{value:e.form.money,callback:function(t){e.$set(e.form,"money",t)},expression:"form.money"}})],1)],1),e._v(" "),o("el-col",{attrs:{span:6}},[o("el-button",{attrs:{type:"success",round:"",size:"small"},on:{click:function(t){e.form.money=100}}},[e._v("¥100")]),e._v(" "),o("el-button",{attrs:{type:"success",round:"",size:"mini"},on:{click:function(t){e.form.money=150}}},[e._v("¥150")])],1)],1),e._v(" "),o("el-row",{attrs:{gutter:20}},[o("el-col",{attrs:{span:4}},[o("label",[e._v("退课")])]),e._v(" "),o("el-col",{attrs:{span:8}},[o("el-form-item",[o("el-switch",{attrs:{"active-value":2,"inactive-value":1},model:{value:e.form.refund_type,callback:function(t){e.$set(e.form,"refund_type",t)},expression:"form.refund_type"}})],1)],1)],1),e._v(" "),o("el-row",{attrs:{gutter:20}},[o("el-col",{attrs:{span:4}},[o("label",[e._v("退款原因")])]),e._v(" "),o("el-col",{attrs:{span:12}},[o("el-form-item",[o("el-input",{attrs:{type:"textarea"},model:{value:e.form.desc,callback:function(t){e.$set(e.form,"desc",t)},expression:"form.desc"}})],1)],1)],1)],1)],1),e._v(" "),o("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[o("el-button",{on:{click:function(t){e.show=!1}}},[e._v("取 消")]),e._v(" "),o("el-button",{attrs:{type:"primary"},on:{click:e.save}},[e._v("确 定")])],1)])};S._withStripped=!0;var $={render:S,staticRenderFns:[]},E=$;var T=!1;var L=o("VU/8")(B,E,!1,function(e){T||o("qZVp")},"data-v-141bdee4",null);L.options.__file="src\\components\\monthOrder\\refundDialog.vue";var P=L.exports,R={name:"sourceDialog",props:["dialogObj"],data:function(){return{detail:[]}},filters:{filterStatus:function(e){var t="";return 0===e?t="未使用":1===e?t="已使用":2===e&&(t="禁用"),t}},methods:{initPage:function(){var e=this,t={order_coupon_id:this.dialogObj.order_coupon_id,limit:200};Object(r._31)(t).then(function(t){e.detail=t.list})}},watch:{"dialogObj.show":function(e){!0===e&&this.initPage()}}},z=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("el-dialog",{attrs:{title:"优惠券详情",center:"","append-to-body":"",visible:e.dialogObj.show,width:"90%"},on:{"update:visible":function(t){e.$set(e.dialogObj,"show",t)}}},[o("el-table",{staticStyle:{width:"100%"},attrs:{data:e.detail}},[o("el-table-column",{attrs:{prop:"coupon_no",label:"优惠券码"}}),e._v(" "),o("el-table-column",{attrs:{prop:"out_trade_no",label:"订单号"}}),e._v(" "),o("el-table-column",{attrs:{label:"用户信息","min-width":"140",className:"userInfo"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("img",{staticClass:"avatar",attrs:{src:t.row.user_avatar}}),e._v("\n "+e._s(t.row.user_nickname)+"(ID:"+e._s(t.row.user_id)+")\n ")]}}])}),e._v(" "),o("el-table-column",{attrs:{label:"优惠券金额"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(parseFloat(t.row.money/100))+"元\n ")]}}])}),e._v(" "),o("el-table-column",{attrs:{label:"使用状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("filterStatus")(t.row.status))+"\n ")]}}])}),e._v(" "),o("el-table-column",{attrs:{prop:"use_at",label:"使用时间"}})],1)],1)};z._withStripped=!0;var M={render:z,staticRenderFns:[]},I=M;var q=!1;var U=o("VU/8")(R,I,!1,function(e){q||o("KuvE")},"data-v-a5eef088",null);U.options.__file="src\\components\\monthOrder\\couponDialog.vue";var W=U.exports,Y={name:"detail",props:["dialogObj"],data:function(){return{detail:{},show:!1}},methods:{initDialog:function(){this.detail=this.dialogObj.detail,console.log("this.dialogObj.detail",this.dialogObj.detail),this.show=this.dialogObj.show}},filters:{payMentFilter:function(e){return"1"==e?"已付款":"未付款"},courseTypeFilter:function(e){return"1"==e.type?"正式课("+e.duration+"个月)":"试听课("+e.duration+"天)"},inviteType:function(e){return _.j[e]},status:function(e){return _.p[e]},buyType:function(e){return _.b[e]},moneytFilter:function(e){return e/100+"元"}},watch:{"dialogObj.show":function(e){e&&this.initDialog()},show:function(e){this.$emit("changeShow",e)}}},N=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("el-dialog",{attrs:{title:"订单详情",center:"",visible:e.dialogObj.show,width:"800px"},on:{"update:visible":function(t){e.$set(e.dialogObj,"show",t)}}},[o("el-row",{attrs:{align:"middle",type:"flex"}},[o("el-col",{attrs:{span:4}},[o("label",[e._v("订单号")])]),e._v(" "),o("el-col",{attrs:{span:8}},[e._v("\n "+e._s(e.detail.out_trade_no)+"\n ")]),e._v(" "),o("el-col",{attrs:{span:4}},[o("label",[e._v("商品名称")])]),e._v(" "),o("el-col",{attrs:{span:8}},[e._v(e._s(e.detail.goods_name))])],1),e._v(" "),o("el-row",{attrs:{align:"middle",type:"flex"}},[o("el-col",{attrs:{span:4}},[o("label",[e._v("用户昵称")])]),e._v(" "),o("el-col",{attrs:{span:8}},[e._v("\n "+e._s(e.detail.user_nickname)+"\n ")]),e._v(" "),o("el-col",{attrs:{span:4}},[o("label",[e._v("用户手机号")])]),e._v(" "),o("el-col",{attrs:{span:8}},[e._v(e._s(e.detail.user_mobile))])],1),e._v(" "),o("el-row",{attrs:{align:"middle",type:"flex"}},[o("el-col",{attrs:{span:4}},[o("label",[e._v("推广人类型")])]),e._v(" "),o("el-col",{attrs:{span:8}},[e._v(e._s(e._f("inviteType")(e.detail.invite_type)))]),e._v(" "),o("el-col",{attrs:{span:4}},[o("label",[e._v("推广人ID")])]),e._v(" "),o("el-col",{attrs:{span:8}},[e._v(e._s(e.detail.invite_id))])],1),e._v(" "),o("el-row",{attrs:{align:"middle",type:"flex"}},[o("el-col",{attrs:{span:4}},[o("label",[e._v("推广人收益")])]),e._v(" "),o("el-col",{attrs:{span:8}},[e._v(e._s(e.detail.invite_earnings?e.detail.invite_earnings/100:0)+"元")]),e._v(" "),2===e.detail.buy_type?[o("el-col",{attrs:{span:4}},[o("label",[e._v("团购信息")])]),e._v(" "),o("el-col",{attrs:{span:8}},[e._v("团ID:"+e._s(e.detail.order_group_id)),o("br"),e._v("是否是团长:"+e._s(0===e.detail.is_captain?"否":"是"))])]:e._e()],2),e._v(" "),o("el-row",[o("el-col",{attrs:{span:4}},[o("label",[e._v("期数ID")])]),e._v(" "),o("el-col",{attrs:{span:8}},[e._v(e._s(e.detail.periods_id))]),e._v(" "),o("el-col",{attrs:{span:4}},[o("label",[e._v("描述")])]),e._v(" "),o("el-col",{attrs:{span:8}},[e._v(e._s(e.detail.desc))])],1),e._v(" "),o("el-row",[o("el-col",{attrs:{span:4}},[o("label",[e._v("收货地址")])]),e._v(" "),o("el-col",{attrs:{span:20}},[e.detail.user_address_id&&e.detail.address_info?[e._v("\n 收货人:"+e._s(e.detail.address_info.receive_name)),o("br"),e._v("\n 手机号:"+e._s(e.detail.address_info.receive_mobile)),o("br"),e._v("\n 收货地址: "+e._s(e.detail.address_info.province_name)+e._s(e.detail.address_info.city)+e._s(e.detail.address_info.area)+e._s(e.detail.address_info.address)+"\n ")]:e._e()],2)],1),e._v(" "),o("el-row",[o("el-col",{attrs:{span:4}},[o("label",[e._v("付款时间")])]),e._v(" "),o("el-col",{attrs:{span:8}},[e._v(e._s(e.detail.pay_at))])],1)],1)};N._withStripped=!0;var V={render:N,staticRenderFns:[]},Z=V;var G=!1;var X=o("VU/8")(Y,Z,!1,function(e){G||o("D86L")},"data-v-75b341ff",null);X.options.__file="src\\components\\monthOrder\\detail.vue";var J=X.exports,Q={name:"refundDetail",props:["dialogObj"],data:function(){return{detail:[]}},filters:{filterStatus:function(e){var t="";return 0===e?t="退款中":1===e?t="退款成功":2===e&&(t="退款失败"),t}},methods:{initPage:function(){var e=this,t={out_trade_no:this.dialogObj.out_trade_no,limit:200};Object(r._54)(t).then(function(t){e.detail=t.list})}},watch:{"dialogObj.show":function(e){!0===e&&this.initPage()}}},K=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("el-dialog",{attrs:{title:"退款详情",center:"","append-to-body":"",visible:e.dialogObj.show,width:"90%"},on:{"update:visible":function(t){e.$set(e.dialogObj,"show",t)}}},[o("el-table",{staticStyle:{width:"100%"},attrs:{data:e.detail}},[o("el-table-column",{attrs:{prop:"refund_no",label:"退款编号"}}),e._v(" "),o("el-table-column",{attrs:{prop:"out_trade_no",label:"订单号"}}),e._v(" "),o("el-table-column",{attrs:{label:"用户信息","min-width":"140",className:"userInfo"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("img",{staticClass:"avatar",attrs:{src:t.row.user_avatar}}),e._v("\n "+e._s(t.row.user_nickname)+"(ID:"+e._s(t.row.user_id)+")\n ")]}}])}),e._v(" "),o("el-table-column",{attrs:{prop:"order_money",label:"订单金额"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(parseFloat(t.row.order_money/100))+"元\n ")]}}])}),e._v(" "),o("el-table-column",{attrs:{prop:"refund_money",label:"退款金额"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(parseFloat(t.row.refund_money/100))+"元\n ")]}}])}),e._v(" "),o("el-table-column",{attrs:{prop:"desc",label:"备注"}}),e._v(" "),o("el-table-column",{attrs:{label:"退款状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("filterStatus")(t.row.status))+"\n ")]}}])}),e._v(" "),o("el-table-column",{attrs:{prop:"success_at",label:"退款成功时间"}})],1)],1)};K._withStripped=!0;var H={render:K,staticRenderFns:[]},ee=H;var te=!1;var oe=o("VU/8")(Q,ee,!1,function(e){te||o("jvbJ")},"data-v-0abb7f17",null);oe.options.__file="src\\components\\monthOrder\\refundDetail.vue";var re={name:"index",data:function(){var e=this;return{nowPage:1,total:0,sourceDialog:{show:!1,out_trade_no:""},today:{text:"今天",onClick:function(){e.searchFrom.payTime=[e.formatTime(new Date)+" 00:00:00",e.formatTime(new Date)+" 23:59:59"]}},yesterday:{text:"昨天",onClick:function(){var t=e.formatTime(new Date((new Date).getTime()-864e5));e.searchFrom.payTime=[t+" 00:00:00",t+" 23:59:59"]}},last30Day:{text:"过去30天",onClick:function(){var t=e.formatTime(new Date((new Date).getTime()-2592e6));e.searchFrom.payTime=[t+" 00:00:00",e.formatTime(new Date)+" 23:59:59"]}},couponDetail:{show:!1,order_coupon_id:""},refundDetail:{show:!1,out_trade_no:""},limit:10,searchFrom:{nickname:"",user_id:"",invite_type:"",invite_id:"",buy_type:"",order_type:"",status:[1,4,5],goods_id:"",out_trade_no:"",payTime:[],order_group_id:""},tableData:[],dialogObj:{show:!1},newdialogObj:{show:!1},refundDialogObj:{show:!1,id:"",money:0},dialogDetailObj:{show:!1,detail:{}},goodList:[],inviteTypeOption:_.k,orderStatusOption:_.q,buyTypeOption:_.c,buyWay:_.e,inviteSearchPlaceholder:"",rules:{value:[{required:!0,message:"请输入备注",trigger:"change"}]},promoterDialog:{show:!1,nowPage:1,total:0,limit:100,teacher_id:""},teacherList:[],loading:!1}},methods:{formatTime:function(e){var t=e.getFullYear(),o=e.getMonth()+1;o<10&&(o="0"+o);var r=e.getDate();return r<10&&(r="0"+r),t+"-"+o+"-"+r},showRef:function(e){this.refundDetail.show=!0,this.refundDetail.out_trade_no=e.out_trade_no},showCoupon:function(e){this.couponDetail.show=!0,this.couponDetail.order_coupon_id=e.order_coupon_id},showSource:function(e){this.sourceDialog.show=!0,this.sourceDialog.out_trade_no=e.out_trade_no},changeRow:function(e,t){t.indexOf(e)>-1&&Object(r._54)({out_trade_no:e.out_trade_no}).then(function(t){e.refundList=t.list})},exportTable:function(){var e={};this.searchFrom.nickname&&(e.nickname=this.searchFrom.nickname),this.searchFrom.user_id&&(e.user_id=this.searchFrom.user_id),this.searchFrom.invite_type&&(e.invite_type=this.searchFrom.invite_type),this.searchFrom.invite_id&&(e.invite_id=this.searchFrom.invite_id),this.searchFrom.order_group_id&&(e.order_group_id=this.searchFrom.order_group_id),this.searchFrom.buy_type&&(e.buy_type=this.searchFrom.buy_type),this.searchFrom.order_type&&(e.order_type=this.searchFrom.order_type),this.searchFrom.status&&(e.status=this.searchFrom.status.toString()),this.searchFrom.goods_id&&(e.goods_id=this.searchFrom.goods_id),this.searchFrom.out_trade_no&&(e.out_trade_no=this.searchFrom.out_trade_no),this.searchFrom.receive_mobile&&(e.receive_mobile=this.searchFrom.receive_mobile),this.searchFrom.payTime&&this.searchFrom.payTime.length>0&&(e.pay_start_at=f.a.dateFmt(this.searchFrom.payTime[0],"yyyy-MM-dd hh:mm:ss"),e.pay_end_at=f.a.dateFmt(this.searchFrom.payTime[1],"yyyy-MM-dd hh:mm:ss")),e.course_type=0,Object(r._11)("/api/admin/order/export",e)},getGoodsOption:function(){var e=this;Object(r._37)({page:1,limit:100,course_type:0}).then(function(t){e.goodList=t.list})},onInviteTypeChange:function(e){0===e?this.inviteSearchPlaceholder="用户ID":1===e?this.inviteSearchPlaceholder="老师ID":2===e&&(this.inviteSearchPlaceholder="推广人ID"),this.getOrderList()},detail:function(e){var t=e;this.dialogDetailObj={show:!0,detail:t}},editComment:function(e,t){var o=this;this.$prompt("","编辑备注",{confirmButtonText:"确定",cancelButtonText:"取消",inputType:"textarea",inputValue:t||""}).then(function(t){var i=t.value;o.$confirm("确定保存?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(r._4)(e,"order",{desc:i}).then(function(e){o.$message({type:"success",message:"编辑备注成功"}),o.getOrderList()})})})},onPageChange:function(e){this.nowPage=e,this.getOrderList()},onSizeChange:function(e){this.limit=e,this.nowPage=1,this.getOrderList()},getOrderList:function(){var e=this,t={limit:this.limit,page:this.nowPage};this.searchFrom.nickname&&(t.nickname=this.searchFrom.nickname),this.searchFrom.user_id&&(t.user_id=this.searchFrom.user_id),this.searchFrom.invite_type&&(t.invite_type=this.searchFrom.invite_type),this.searchFrom.invite_id&&(t.invite_id=this.searchFrom.invite_id),this.searchFrom.order_group_id&&(t.order_group_id=this.searchFrom.order_group_id),this.searchFrom.buy_type&&(t.buy_type=this.searchFrom.buy_type),this.searchFrom.order_type&&(t.order_type=this.searchFrom.order_type),this.searchFrom.status&&(t.status=this.searchFrom.status.toString()),this.searchFrom.goods_id&&(t.goods_id=this.searchFrom.goods_id),this.searchFrom.out_trade_no&&(t.out_trade_no=this.searchFrom.out_trade_no),this.searchFrom.receive_mobile&&(t.receive_mobile=this.searchFrom.receive_mobile),this.searchFrom.payTime&&this.searchFrom.payTime.length>0&&(t.pay_start_at=f.a.dateFmt(this.searchFrom.payTime[0],"yyyy-MM-dd hh:mm:ss"),t.pay_end_at=f.a.dateFmt(this.searchFrom.payTime[1],"yyyy-MM-dd hh:mm:ss")),t.course_type=0,Object(r._47)(t).then(function(t){t.list.forEach(function(e){e.refundList=[]}),e.tableData=t.list,e.total=t.total})},changeDetailShow:function(e){this.dialogDetailObj.show=e},changeShow:function(e){this.refundDialogObj.show=e},onRefund:function(e,t){this.refundDialogObj.id=e,this.refundDialogObj.money=t,this.refundDialogObj.show=!0},onAfterRefund:function(){this.refundDialogObj.show=!1,this.getOrderList()},onUpdateAddress:function(){this.dialogObj.show=!1,this.getOrderList()},editAddress:function(e){if(e.address_info&&e.address_info.province_name){var t=n.a.filter(function(t){return t.label===e.address_info.province_name});if(t&&t.length>0)if(this.dialogObj.province=e.address_info.province_id?e.address_info.province_id:t[0].value,e.address_info.city){var o=t[0].children.filter(function(t){return t.label===e.address_info.city});if(this.dialogObj.city=e.address_info.city_id?e.address_info.city_id:o[0].value,e.address_info.area){var r=o[0].children.filter(function(t){return t.label===e.address_info.area});this.dialogObj.district=e.address_info.area_id?e.address_info.area_id:r[0].value}else this.dialogObj.district=""}else this.dialogObj.city="";else this.dialogObj.province="",this.dialogObj.district="",this.dialogObj.city=""}else this.dialogObj.province="",this.dialogObj.city="",this.dialogObj.district="";this.dialogObj.detail=e.address_info?e.address_info.address:"",this.dialogObj.receive_mobile=e.address_info?e.address_info.receive_mobile:"",this.dialogObj.receive_name=e.address_info?e.address_info.receive_name:"",this.dialogObj.province_name=e.address_info?e.address_info.province_name:"",this.dialogObj.city_name=e.address_info?e.address_info.city:"",this.dialogObj.district_name=e.address_info?e.address_info.area:"",this.dialogObj.id=e.id,this.dialogObj.show=!0},getTeacherList:function(e){var t=this;this.loading=!0;var o={limit:this.promoterDialog.limit,page:this.promoterDialog.nowPage};e&&(o.name=e),Object(r._65)(o).then(function(e){t.teacherList=e.list,t.loading=!1})},handleCurrentTeacherChange:function(e){console.log("handleCurrentTeacherChange",e)},updateTeacher:function(e){this.promoterDialog.show=!0,this.promoterDialog.id=e.id,this.promoterDialog.teacher_id=e.invite_id,this.getTeacherList()},remoteMethod:function(e){""!==e?this.getTeacherList(e):this.getTeacherList()},saveTeacher:function(){var e=this;this.$confirm("此操作将修改推广人?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){console.log("this.promoterDialog.teacher_id",e.promoterDialog),Object(r._103)(e.promoterDialog.id,e.promoterDialog.teacher_id).then(function(t){e.promoterDialog.id="",e.promoterDialog.teacher_id="",e.promoterDialog.show=!1,e.$message({type:"success",message:"修改成功!"}),e.getOrderList()})})},add:function(){this.newdialogObj.show=!0}},components:{addressDialog:p,orderDialog:A,refundDialog:P,detailDialog:J,refundDetail:oe.exports,sourceDialog:D,couponDialog:W,page:i.a},mounted:function(){this.$route.query.code&&(this.searchFrom.invite_type=this.$route.query.code),this.getOrderList(),this.getGoodsOption()},watch:{"newdialogObj.show":function(e){e||this.getOrderList()}},filters:{payMentFilter:function(e){return"1"==e?"已付款":"未付款"},courseTypeFilter:function(e){return"1"==e.type?"正式课("+e.duration+"个月)":"试听课("+e.duration+"天)"},inviteType:function(e){return _.j[e]},status:function(e){return _.p[e]},buyType:function(e){return _.b[e]},moneytFilter:function(e){return e/100+"元"},filterGoods:function(e){return"["+_.g[e.goods_type]+"]["+e.current_price/100+"元]"+e.name},buyTypeWay:function(e){return _.d[e]}}},ie=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"order"},[o("el-form",{ref:"searchFrom",attrs:{model:e.searchFrom,"label-width":"100px",inline:""}},[o("el-form-item",{attrs:{label:"用户ID"}},[o("el-input",{model:{value:e.searchFrom.user_id,callback:function(t){e.$set(e.searchFrom,"user_id",t)},expression:"searchFrom.user_id"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"用户昵称"}},[o("el-input",{model:{value:e.searchFrom.nickname,callback:function(t){e.$set(e.searchFrom,"nickname",t)},expression:"searchFrom.nickname"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"收件人手机号"}},[o("el-input",{model:{value:e.searchFrom.receive_mobile,callback:function(t){e.$set(e.searchFrom,"receive_mobile",t)},expression:"searchFrom.receive_mobile"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"商品名称"}},[o("el-select",{attrs:{placeholder:"请选择",clearable:""},on:{change:e.getOrderList},model:{value:e.searchFrom.goods_id,callback:function(t){e.$set(e.searchFrom,"goods_id",t)},expression:"searchFrom.goods_id"}},e._l(e.goodList,function(t,r){return o("el-option",{key:r,attrs:{label:e._f("filterGoods")(t),value:t.id}})}))],1),e._v(" "),o("el-form-item",{staticClass:"test",attrs:{label:"来源"}},[o("el-input",{attrs:{placeholder:e.inviteSearchPlaceholder},model:{value:e.searchFrom.invite_type,callback:function(t){e.$set(e.searchFrom,"invite_type",t)},expression:"searchFrom.invite_type\t"}},[o("template",{slot:"prepend"},[e._v("CC -")])],2)],1),e._v(" "),o("el-form-item",{attrs:{label:"推广人ID"}},[o("el-input",{attrs:{placeholder:e.inviteSearchPlaceholder},model:{value:e.searchFrom.invite_id,callback:function(t){e.$set(e.searchFrom,"invite_id",t)},expression:"searchFrom.invite_id"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"购买方式"}},[o("el-select",{attrs:{placeholder:"请选择",clearable:""},on:{change:e.getOrderList},model:{value:e.searchFrom.buy_type,callback:function(t){e.$set(e.searchFrom,"buy_type",t)},expression:"searchFrom.buy_type"}},e._l(e.buyTypeOption,function(e){return o("el-option",{key:e.id,attrs:{label:e.value,value:e.id}})}))],1),e._v(" "),o("el-form-item",{attrs:{label:"支付类型"}},[o("el-select",{attrs:{placeholder:"请选择",clearable:""},on:{change:e.getOrderList},model:{value:e.searchFrom.order_type,callback:function(t){e.$set(e.searchFrom,"order_type",t)},expression:"searchFrom.order_type"}},e._l(e.buyWay,function(e){return o("el-option",{key:e.id,attrs:{label:e.value,value:e.id}})}))],1),e._v(" "),o("el-form-item",{attrs:{label:"订单状态"}},[o("el-select",{attrs:{multiple:"",placeholder:"请选择",clearable:""},on:{change:e.getOrderList},model:{value:e.searchFrom.status,callback:function(t){e.$set(e.searchFrom,"status",t)},expression:"searchFrom.status"}},e._l(e.orderStatusOption,function(e){return o("el-option",{key:e.id,attrs:{label:e.value,value:e.id}})}))],1),e._v(" "),o("el-form-item",{attrs:{label:"交易订单号"}},[o("el-input",{model:{value:e.searchFrom.out_trade_no,callback:function(t){e.$set(e.searchFrom,"out_trade_no",t)},expression:"searchFrom.out_trade_no"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"购买时间"}},[o("el-date-picker",{attrs:{type:"datetimerange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":{shortcuts:[e.today,e.yesterday,e.last30Day]},"default-time":["00:00:00","23:59:59"]},on:{change:e.getOrderList},model:{value:e.searchFrom.payTime,callback:function(t){e.$set(e.searchFrom,"payTime",t)},expression:"searchFrom.payTime"}})],1),e._v(" "),o("el-form-item",[o("el-button",{attrs:{type:"primary",plain:""},on:{click:e.getOrderList}},[e._v("搜索")]),e._v(" "),o("el-button",{attrs:{type:"primary",plain:""},on:{click:e.exportTable}},[e._v("导出")])],1),e._v(" "),o("el-form-item",{staticStyle:{float:"right"}},[e.$store.state.readonly?e._e():o("el-button",{attrs:{type:"success",plain:""},on:{click:e.add}},[e._v("新增订单")])],1)],1),e._v(" "),o("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData,fixed:""},on:{"expand-change":e.changeRow}},[o("el-table-column",{attrs:{prop:"out_trade_no",label:"订单号"}}),e._v(" "),o("el-table-column",{attrs:{label:"购买人",className:"f-c",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("img",{staticClass:"avatar",attrs:{src:t.row.user_avatar}}),e._v(" "+e._s(t.row.user_nickname)),o("br"),e._v("(ID:"+e._s(t.row.user_id)+")"),o("br"),e._v("手机:"+e._s(t.row.user_mobile)+"\n ")]}}])}),e._v(" "),o("el-table-column",{attrs:{prop:"periods_title",label:"期数标题"}}),e._v(" "),o("el-table-column",{attrs:{prop:"goods_name",label:"商品名称"}}),e._v(" "),o("el-table-column",{attrs:{width:"250",prop:"invite_id",className:"f-c",label:"推广人"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.invite_earnings>0&&0!==t.row.invite_id?o("div",{staticStyle:{width:"100%",display:"flex",color:"#409eff",cursor:"pointer"},on:{click:function(o){e.showSource(t.row)}}},[o("img",{staticClass:"avatar",attrs:{src:t.row.invite_avatar}}),e._v("\n 类型:"+e._s(t.row.invite_type)+" ("+e._s(t.row.invite_name)+")\n "),o("br"),e._v("\n 收益:"+e._s(t.row.invite_earnings/100)+"\n "),o("br"),e._v("\n 用户ID:"+e._s(t.row.invite_id)+"\n "),o("br"),e._v("\n 昵称:"+e._s(t.row.invite_nickname)+"\n "),o("br"),e._v("\n 手机:"+e._s(t.row.invite_mobile)+"\n ")]):e._e(),e._v(" "),0===t.row.invite_earnings&&0!==t.row.invite_id?o("div",{staticStyle:{display:"flex"}},[o("img",{staticClass:"avatar",attrs:{src:t.row.invite_avatar}}),e._v("\n 类型:"+e._s(t.row.invite_type)+" ("+e._s(t.row.invite_name)+")\n "),o("br"),e._v("\n 收益:"+e._s(t.row.invite_earnings/100)+"\n "),o("br"),e._v("\n 用户ID:"+e._s(t.row.invite_id)+"\n "),o("br"),e._v("\n 昵称:"+e._s(t.row.invite_nickname)+"\n "),o("br"),e._v("\n 手机:"+e._s(t.row.invite_mobile)+"\n ")]):e._e(),e._v(" "),0===t.row.invite_id?o("div",[e._v("\n\n ")]):e._e()]}}])}),e._v(" "),o("el-table-column",{attrs:{label:"优惠活动"},scopedSlots:e._u([{key:"default",fn:function(t){return[0===t.row.order_coupon_id?o("span",[e._v("\n\n ")]):e._e(),e._v(" "),0!==t.row.order_coupon_id?o("el-button",{attrs:{type:"text"},on:{click:function(o){e.showCoupon(t.row)}}},[e._v("\n 优惠券\n ")]):e._e()]}}])}),e._v(" "),o("el-table-column",{attrs:{label:"付款状态",width:"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[5===t.row.status||3===t.row.status?o("el-button",{attrs:{type:"text"},on:{click:function(o){e.showRef(t.row)}}},[e._v(e._s(e._f("status")(t.row.status)))]):e._e(),e._v(" "),5!==t.row.status&&3!==t.row.status?o("div",[e._v(e._s(e._f("status")(t.row.status)))]):e._e()]}}])}),e._v(" "),o("el-table-column",{attrs:{label:"实付金额",width:"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("moneytFilter")(t.row.money))+"\n ")]}}])}),e._v(" "),o("el-table-column",{attrs:{label:"支付类型",width:"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("buyTypeWay")(t.row.order_type))+"\n ")]}}])}),e._v(" "),o("el-table-column",{attrs:{label:"收货地址"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.user_address_id&&t.row.address_info?o("div",[e._v("\n "+e._s(t.row.address_info.receive_name)),o("br"),e._v("\n "+e._s(t.row.address_info.receive_mobile)),o("br"),e._v("\n "+e._s(t.row.address_info.province_name)+e._s(t.row.address_info.city)+e._s(t.row.address_info.area)+e._s(t.row.address_info.address)+"\n ")]):e._e()]}}])}),e._v(" "),o("el-table-column",{attrs:{prop:"pay_at",label:"购买时间",sortable:""}}),e._v(" "),o("el-table-column",{attrs:{prop:"created_at",label:"下单时间",sortable:""}}),e._v(" "),o("el-table-column",{attrs:{prop:"desc",label:"备注"}}),e._v(" "),e.$store.state.readonly?e._e():o("el-table-column",{attrs:{width:"50",label:"操作",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("el-popover",{attrs:{placement:"top",width:"400"}},[o("div",{staticStyle:{"text-align":"center"}},[1!=t.row.status&&4!=t.row.status&&5!=t.row.status||!e.$store.state.orderRefund||3==t.row.order_type?e._e():o("el-button",{attrs:{type:"warning",plain:"",size:"mini"},on:{click:function(o){e.onRefund(t.row.id,t.row.money)}}},[e._v("\n 退款\n ")]),e._v(" "),o("el-button",{attrs:{type:"info",plain:"",size:"mini"},on:{click:function(o){e.editComment(t.row.id,t.row.desc)}}},[e._v("\n 编辑备注\n ")]),e._v(" "),t.row.user_address_id?o("el-button",{attrs:{plain:"",type:"info",size:"mini"},on:{click:function(o){e.editAddress(t.row)}}},[e._v("\n 编辑收货地址\n ")]):e._e(),e._v(" "),o("el-button",{attrs:{type:"warning",plain:"",size:"mini"},on:{click:function(o){e.updateTeacher(t.row)}}},[e._v("\n 编辑推广人\n ")])],1),e._v(" "),o("el-button",{attrs:{slot:"reference",size:"mini",type:"text"},slot:"reference"},[e._v("操作")])],1)]}}])})],1),e._v(" "),o("address-dialog",{attrs:{dialogObj:e.dialogObj},on:{reflash:e.onUpdateAddress}}),e._v(" "),o("order-dialog",{attrs:{newdialogObj:e.newdialogObj},on:{reflash:e.getOrderList}}),e._v(" "),o("refund-dialog",{attrs:{dialogObj:e.refundDialogObj},on:{reflash:e.onAfterRefund,changeShow:e.changeShow}}),e._v(" "),o("detail-dialog",{attrs:{dialogObj:e.dialogDetailObj},on:{changeShow:e.changeDetailShow}}),e._v(" "),o("source-dialog",{attrs:{dialogObj:e.sourceDialog}}),e._v(" "),o("refund-detail",{attrs:{dialogObj:e.refundDetail}}),e._v(" "),o("coupon-dialog",{attrs:{dialogObj:e.couponDetail}}),e._v(" "),o("el-dialog",{attrs:{title:"修改推广人",center:"","append-to-body":"",visible:e.promoterDialog.show,width:"600"},on:{"update:visible":function(t){e.$set(e.promoterDialog,"show",t)}}},[o("el-form",{ref:"form",attrs:{"label-width":"120px"}},[o("el-form-item",{attrs:{label:"老师"}},[o("el-select",{attrs:{filterable:"",remote:"",clearable:"",placeholder:"请输入名称","remote-method":e.remoteMethod,loading:e.loading},model:{value:e.promoterDialog.teacher_id,callback:function(t){e.$set(e.promoterDialog,"teacher_id",t)},expression:"promoterDialog.teacher_id"}},e._l(e.teacherList,function(e){return o("el-option",{key:e.id,attrs:{label:e.name,value:e.user_id}})}))],1)],1),e._v(" "),o("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[o("el-button",{on:{click:function(t){e.promoterDialog.show=!1}}},[e._v("取 消")]),e._v(" "),o("el-button",{attrs:{type:"primary"},on:{click:e.saveTeacher}},[e._v("确 定")])],1)],1),e._v(" "),o("page",{attrs:{nowPage:e.nowPage,total:e.total,limit:e.limit},on:{pageChange:e.onPageChange,sizeChange:e.onSizeChange}})],1)};ie._withStripped=!0;var ae={render:ie,staticRenderFns:[]},ne=ae;var se=!1;var le=o("VU/8")(re,ne,!1,function(e){se||(o("aXxj"),o("7hmY"))},"data-v-444c5fd8",null);le.options.__file="src\\components\\monthOrder\\index.vue";t.default=le.exports}});
\ No newline at end of file
webpackJsonp([40],{RjIq:function(e,t,a){var r=a("Wt+1");"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);a("rjj0")("327b2a86",r,!1,{})},"Wt+1":function(e,t,a){(e.exports=a("FZ+f")(!0)).push([e.i,"\n.orderCount[data-v-7ef9545c] {\n padding: 10px;\n}\n","",{version:3,sources:["D:/myproject/changchang-admin-new/src/components/orderCount/dayOrderCount.vue"],names:[],mappings:";AACA;EACE,cAAc;CACf",file:"dayOrderCount.vue",sourcesContent:["\n.orderCount[data-v-7ef9545c] {\n padding: 10px;\n}\n"],sourceRoot:""}])},mjLz:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("CCn6"),n={name:"dayOrderCount",data:function(){var e=this;return{goodsList:[],headList:[],tableData:[],today:{text:"今天",onClick:function(){e.searchFrom.dateValue=[e.formatTime(new Date),e.formatTime(new Date)]}},yesterday:{text:"昨天",onClick:function(){var t=e.formatTime(new Date((new Date).getTime()-864e5));e.searchFrom.dateValue=[t,t]}},last30Day:{text:"过去30天",onClick:function(){var t=e.formatTime(new Date((new Date).getTime()-2592e6));e.searchFrom.dateValue=[t,e.formatTime(new Date)]}},searchFrom:{priceList:[],dateValue:[]}}},mounted:function(){this.defaultTime(),this.initPage()},filters:{toFixed2:function(e){if("number"==typeof e){var t=e.toString().split(".");return t.length>1&&t[1].length>2?Number(e).toFixed(2):e}return e}},methods:{formatTime:function(e){var t=e.getFullYear(),a=e.getMonth()+1;a<10&&(a="0"+a);var r=e.getDate();return r<10&&(r="0"+r),t+"-"+a+"-"+r},initPage:function(){var e=this;Object(r._37)({limit:99999,course_type:1}).then(function(t){t.list.forEach(function(t){e.searchFrom.priceList.push(t.id)}),e.goodsList=t.list,e.searchPage()})},searchPage:function(){var e=this;if(this.searchFrom.dateValue.length<2)this.$message.error("请先选择起止日期");else{var t={start_at:this.searchFrom.dateValue[0],end_at:this.searchFrom.dateValue[1],goods_ids:this.searchFrom.priceList.toString(),course_type:1};Object(r._80)(t).then(function(t){if(t.length>0){var a=t[0];for(var r in e.tableData=t,e.headList=[],a)"cur_date"===r?e.headList.push("时间"):"register_num"===r?e.headList.push("注册数"):"total_money"===r?e.headList.push("总金额"):e.headList.push(r)}})}},defaultTime:function(){var e=new Date,t=e.getFullYear(),a=e.getMonth()+1;a<10&&(a="0"+a);var r=e.getDate();r<10&&(r="0"+r);var n=t+"-"+a+"-01",o=t+"-"+a+"-"+r;this.searchFrom.dateValue=[n,o]}}},o=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"orderCount"},[a("el-form",{ref:"searchFrom",attrs:{inline:"",model:e.searchFrom,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"商品"}},[a("el-select",{staticStyle:{width:"600px"},attrs:{"collapse-tags":"",multiple:"",filterable:"",placeholder:"请选择"},on:{change:e.searchPage},model:{value:e.searchFrom.priceList,callback:function(t){e.$set(e.searchFrom,"priceList",t)},expression:"searchFrom.priceList"}},e._l(e.goodsList,function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}))],1),e._v(" "),a("el-form-item",{attrs:{label:"起止日期"}},[a("el-date-picker",{attrs:{"unlink-panels":"","picker-options":{shortcuts:[e.today,e.yesterday,e.last30Day]},type:"daterange","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:e.searchPage},model:{value:e.searchFrom.dateValue,callback:function(t){e.$set(e.searchFrom,"dateValue",t)},expression:"searchFrom.dateValue"}})],1),e._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.searchPage()}}},[e._v("\n 搜索\n ")])],1)],1),e._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData}},e._l(e.headList,function(t){return a("el-table-column",{key:t,attrs:{label:t},scopedSlots:e._u([{key:"default",fn:function(r){return["时间"===t?a("span",[e._v("\n "+e._s(r.row.cur_date)+"\n ")]):e._e(),e._v(" "),"注册数"===t?a("span",[e._v("\n "+e._s(r.row.register_num)+"\n ")]):e._e(),e._v(" "),"总金额"===t?a("span",[e._v("\n "+e._s(r.row.total_money)+"\n ")]):e._e(),e._v(" "),"时间"!==t&&"注册数"!==t&&"总金额"!==t?a("span",[e._v("\n "+e._s(e._f("toFixed2")(r.row[t]))+"\n ")]):e._e()]}}])})}))],1)};o._withStripped=!0;var s={render:o,staticRenderFns:[]},i=s;var l=!1;var c=a("VU/8")(n,i,!1,function(e){l||a("RjIq")},"data-v-7ef9545c",null);c.options.__file="src\\components\\orderCount\\dayOrderCount.vue";t.default=c.exports}});
\ No newline at end of file
webpackJsonp([48],{"4myw":function(e,t,a){(e.exports=a("FZ+f")(!0)).push([e.i,"\n.orderCount[data-v-2991e276] {\n padding: 10px;\n}\n","",{version:3,sources:["D:/myproject/changchang-admin-new/src/components/orderCount/monthOrderCount.vue"],names:[],mappings:";AACA;EACE,cAAc;CACf",file:"monthOrderCount.vue",sourcesContent:["\n.orderCount[data-v-2991e276] {\n padding: 10px;\n}\n"],sourceRoot:""}])},XnN8:function(e,t,a){var r=a("4myw");"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);a("rjj0")("07fe6388",r,!1,{})},"v/LD":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("CCn6"),n={name:"monthOrderCount",data:function(){var e=this;return{goodsList:[],headList:[],today:{text:"今天",onClick:function(){e.searchFrom.dateValue=[e.formatTime(new Date),e.formatTime(new Date)]}},yesterday:{text:"昨天",onClick:function(){var t=e.formatTime(new Date((new Date).getTime()-864e5));e.searchFrom.dateValue=[t,t]}},last30Day:{text:"过去30天",onClick:function(){var t=e.formatTime(new Date((new Date).getTime()-2592e6));e.searchFrom.dateValue=[t,e.formatTime(new Date)]}},tableData:[],searchFrom:{priceList:[],dateValue:[]}}},mounted:function(){this.defaultTime(),this.initPage()},filters:{toFixed2:function(e){if("number"==typeof e){var t=e.toString().split(".");return t.length>1&&t[1].length>2?Number(e).toFixed(2):e}return e}},methods:{formatTime:function(e){var t=e.getFullYear(),a=e.getMonth()+1;a<10&&(a="0"+a);var r=e.getDate();return r<10&&(r="0"+r),t+"-"+a+"-"+r},initPage:function(){var e=this;Object(r._37)({limit:99999,course_type:0}).then(function(t){t.list.forEach(function(t){e.searchFrom.priceList.push(t.id)}),e.goodsList=t.list,e.searchPage()})},searchPage:function(){var e=this;if(this.searchFrom.dateValue.length<2)this.$message.error("请先选择起止日期");else{var t={start_at:this.searchFrom.dateValue[0],end_at:this.searchFrom.dateValue[1],goods_ids:this.searchFrom.priceList.toString()};Object(r._80)(t).then(function(t){if(t.length>0){var a=t[0];for(var r in e.tableData=t,e.headList=[],a)"cur_date"===r?e.headList.push("时间"):"register_num"===r?e.headList.push("注册数"):"total_money"===r?e.headList.push("总金额"):e.headList.push(r)}})}},defaultTime:function(){var e=new Date,t=e.getFullYear(),a=e.getMonth()+1;a<10&&(a="0"+a);var r=e.getDate();r<10&&(r="0"+r);var n=t+"-"+a+"-01",o=t+"-"+a+"-"+r;this.searchFrom.dateValue=[n,o]}}},o=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"orderCount"},[a("el-form",{ref:"searchFrom",attrs:{inline:"",model:e.searchFrom,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"商品"}},[a("el-select",{staticStyle:{width:"600px"},attrs:{"collapse-tags":"",multiple:"",filterable:"",placeholder:"请选择"},on:{change:e.searchPage},model:{value:e.searchFrom.priceList,callback:function(t){e.$set(e.searchFrom,"priceList",t)},expression:"searchFrom.priceList"}},e._l(e.goodsList,function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}))],1),e._v(" "),a("el-form-item",{attrs:{label:"起止日期"}},[a("el-date-picker",{attrs:{"unlink-panels":"",type:"daterange","picker-options":{shortcuts:[e.today,e.yesterday,e.last30Day]},"value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:e.searchPage},model:{value:e.searchFrom.dateValue,callback:function(t){e.$set(e.searchFrom,"dateValue",t)},expression:"searchFrom.dateValue"}})],1),e._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.searchPage()}}},[e._v("\n 搜索\n ")])],1)],1),e._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData}},e._l(e.headList,function(t){return a("el-table-column",{key:t,attrs:{label:t},scopedSlots:e._u([{key:"default",fn:function(r){return["时间"===t?a("span",[e._v("\n "+e._s(r.row.cur_date)+"\n ")]):e._e(),e._v(" "),"注册数"===t?a("span",[e._v("\n "+e._s(r.row.register_num)+"\n ")]):e._e(),e._v(" "),"总金额"===t?a("span",[e._v("\n "+e._s(r.row.total_money)+"\n ")]):e._e(),e._v(" "),"时间"!==t&&"注册数"!==t&&"总金额"!==t?a("span",[e._v("\n "+e._s(e._f("toFixed2")(r.row[t]))+"\n ")]):e._e()]}}])})}))],1)};o._withStripped=!0;var s={render:o,staticRenderFns:[]},i=s;var l=!1;var c=a("VU/8")(n,i,!1,function(e){l||a("XnN8")},"data-v-2991e276",null);c.options.__file="src\\components\\orderCount\\monthOrderCount.vue";t.default=c.exports}});
\ No newline at end of file
webpackJsonp([6],{"6E06":function(t,e,n){(t.exports=n("FZ+f")(!0)).push([t.i,"\n.avatar[data-v-33d21ccc] {\n width:50px;\n height: 50px;\n border-radius: 50%;\n}\n","",{version:3,sources:["D:/myproject/changchang-admin-new/src/components/order/couponDialog.vue"],names:[],mappings:";AACA;EACE,WAAW;EACX,aAAa;EACb,mBAAmB;CACpB",file:"couponDialog.vue",sourcesContent:["\n.avatar[data-v-33d21ccc] {\n width:50px;\n height: 50px;\n border-radius: 50%;\n}\n"],sourceRoot:""}])},"9PRC":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n("CCn6"),i=n("kmJW"),o=n("O6Rd"),r=n("G2rA"),l=n("kmsh"),s=n("+TkF"),c={props:["dialogObj"],data:function(){return{form:{id:"",teacher_id:""},teacherList:[]}},methods:{initPage:function(){var t=this;Object(a._65)({page:1,limit:200}).then(function(e){t.teacherList=e.list}),this.form={id:this.dialogObj.id,teacher_id:this.dialogObj.teacher_id?this.dialogObj.teacher_id:""}},onSave:function(){var t=this,e={teacher_id:this.form.teacher_id?this.form.teacher_id:0};Object(a.m)(this.form.id,e).then(function(e){t.$message({type:"success",message:"绑定成功!"}),t.$emit("reflash"),t.dialogObj.show=!1})}},watch:{"dialogObj.show":function(t){t&&this.initPage()}}},d=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-dialog",{attrs:{title:t.dialogObj.title,visible:t.dialogObj.show},on:{"update:visible":function(e){t.$set(t.dialogObj,"show",e)}}},[n("el-form",{ref:"form",attrs:{model:t.form,"label-width":"120px"}},[n("el-form-item",{attrs:{label:"老师"}},[n("el-select",{attrs:{placeholder:"请选择"},model:{value:t.form.teacher_id,callback:function(e){t.$set(t.form,"teacher_id",e)},expression:"form.teacher_id"}},t._l(t.teacherList,function(t,e){return n("el-option",{key:e,attrs:{label:t.name,value:t.id}})}))],1)],1),t._v(" "),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(e){t.dialogObj.show=!1}}},[t._v("取 消")]),t._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:t.onSave}},[t._v("确 定")])],1)],1)};d._withStripped=!0;var u={render:d,staticRenderFns:[]},_=u;var p=!1;var v=n("VU/8")(c,_,!1,function(t){p||n("Ikhs")},"data-v-44bd2f68",null);v.options.__file="src\\components\\userDetail\\dialog.vue";var f=v.exports,h=n("0qGg"),g={name:"index",data:function(){return{userList:[],total:0,sourceDialog:{show:!1,out_trade_no:""},couponDetail:{show:!1,order_coupon_id:""},refundDetail:{show:!1,out_trade_no:""},nowPage:1,limit:3,id:"",detail:{},periodList:[],dialogObj:{show:!1,title:"绑定老师",id:0,teacher_id:0},list:[],userObj:{classId:"",title:"",show:!1},privilegeDialog:{show:!1,isAllowView:!1,is_add_teacher:0,weight:0,id:""},descDialog:{show:!1,descList:[],nowPage:1,limit:10,total:0,userInfo:null},lookDetail:{show:!1,loading:!1,list:[],nowPage:1,limit:10,total:0},isAddTeacherList:[{label:"未加好友",value:0},{label:"老师主动添加用户",value:1},{label:"用户主动添加老师",value:2}]}},components:{page:i.a,teacherDialog:f,UserList:h.a,refundDetail:r.a,sourceDialog:o.a,couponDialog:l.a},mounted:function(){this.id=this.$route.params.id,this.getDetail(),this.getUser()},methods:{getUserLook:function(){var t=this;if(this.lookDetail.data){this.lookDetail.show=!0,this.lookDetail.loading=!0;var e={limit:this.lookDetail.limit,page:this.lookDetail.nowPage},n=this.lookDetail.data;Object(a._110)(n.periods_id,n.user_id,e).then(function(e){t.lookDetail.list=e.list,t.lookDetail.loading=!1,t.lookDetail.total=e.total})}},onLookDetailPageChange:function(t){this.lookDetail.nowPage=t,this.getUserLook()},onLookDetailSizeChange:function(t){this.lookDetail.limit=t,this.lookDetail.nowPage=1,this.getUserLook()},onDescDialogPageChange:function(t){this.descDialog.nowPage=t,this.getUserDescList()},onDescDialogSizeChange:function(t){this.descDialog.limit=t,this.descDialog.nowPage=1,this.getUserDescList()},showRef:function(t){this.refundDetail.show=!0,this.refundDetail.out_trade_no=t.out_trade_no},showCoupon:function(t){this.couponDetail.show=!0,this.couponDetail.order_coupon_id=t.order_coupon_id},showSource:function(t){this.sourceDialog.show=!0,this.sourceDialog.out_trade_no=t.out_trade_no},changeRow:function(t,e){var n=this;this.list=[],e.indexOf(t)>-1&&Object(a._49)(t.periods_id).then(function(e){t.arrive_course_rate=e.arrive_course_rate,t.watch_course_rate=e.watch_course_rate,t.over_course_rate=e.over_course_rate,t.work_rate=e.work_rate,t.over_work_rate=e.over_work_rate,t.clock_rate=e.clock_rate,t.over_clock_rate=e.over_clock_rate,t.transform_rate=e.transform_rate,n.list=[t]})},onPageChange:function(t){this.nowPage=t,this.getUser()},onSizeChange:function(t){this.nowPage=1,this.limit=t,this.getUser()},getUser:function(){var t=this,e={user_id:this.id,limit:this.limit,page:this.nowPage,status:"1,4,5"};Object(a._47)(e).then(function(e){e.list.forEach(function(t){t.refundList=[]}),t.userList=e.list,t.total=e.total})},getDetail:function(){var t=this;this.id&&Object(a._68)(this.id).then(function(e){t.detail=e,e.periods_list&&(t.periodList=e.periods_list)})},bindTeacher:function(){var t=this.detail;this.dialogObj={show:!0,title:"绑定老师",id:t.user_id,teacher_id:t.teacher_id}},showUser:function(t){this.userObj={classId:t.class_id,show:!0,title:t.teacher_name+"班级用户列表",teacherId:t.teacher_id,periods_id:t.periods_id,goods_id:t.goods_id}},editPrivilege:function(t){this.privilegeDialog={id:t.id,isAllowView:1===t.is_view_course,is_add_teacher:t.is_add_teacher?t.is_add_teacher:0,weight:t.weight?t.weight:0,show:!0}},onGetUserDescList:function(t){this.descDialog.show=!0,this.descDialog.userInfo={user_id:t.user_id,avatar:this.detail.avatar,nickname:this.detail.nickname},this.descDialog.id=t.id,this.getUserDescList()},getUserDescList:function(){var t=this,e={page:this.descDialog.nowPage,limit:this.descDialog.limit};Object(a._67)(this.descDialog.id,e).then(function(e){t.descDialog.descList=e.list,t.descDialog.total=e.total})},userLook:function(t){var e=this;this.lookDetail.show=!0,this.lookDetail.loading=!0;var n={limit:this.lookDetail.limit,page:this.lookDetail.nowPage};this.lookDetail.data={periods_id:t.periods_id,user_id:t.user_id},Object(a._110)(t.periods_id,t.user_id,n).then(function(t){e.lookDetail.list=t.list,e.lookDetail.loading=!1,e.lookDetail.total=t.total})},editComment:function(t){var e=this;this.$prompt("","添加备注",{confirmButtonText:"确定",cancelButtonText:"取消",inputValue:""}).then(function(n){var i=n.value;Object(a.l)(t,{desc:i}).then(function(t){e.$message({type:"success",message:"编辑备注成功"}),e.getUserDescList()})})},changePrivilegeSub:function(){var t=this;this.$confirm("此操作将修改用户权限?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){var e={is_view_course:t.privilegeDialog.isAllowView?1:0,is_add_teacher:t.privilegeDialog.is_add_teacher,weight:t.privilegeDialog.weight};Object(a._108)(t.privilegeDialog.id,e).then(function(e){t.$message({type:"success",message:"修改成功!"}),t.privilegeDialog.show=!1,t.getDetail()})})}},filters:{payMentFilter:function(t){return"1"==t?"已付款":"未付款"},courseTypeFilter:function(t){return"1"==t.type?"正式课("+t.duration+"个月)":"试听课("+t.duration+"天)"},inviteType:function(t){return s.j[t]},status:function(t){return s.p[t]},buyType:function(t){return s.b[t]},moneytFilter:function(t){return t/100+"元"},percent:function(t){return(100*t).toFixed(2)+"%"}}},b=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"user"},[n("el-card",{staticClass:"user-card"},[n("el-row",{attrs:{gutter:20}},[n("el-col",{staticClass:"title",attrs:{span:24}},[n("a",{attrs:{href:t.detail.avatar,target:"_blank"}},[n("img",{attrs:{src:t.detail.avatar}})]),t._v(" "),n("div",{staticStyle:{"text-align":"center"}},[t._v("\n "+t._s(t.detail.nickname)+" (ID: "+t._s(t.id)+")\n ")])])],1),t._v(" "),n("el-row",{attrs:{gutter:20}},[n("el-col",{attrs:{span:12}},[n("label",[t._v("tel:")]),t._v(t._s(t.detail.mobile)+"\n ")]),t._v(" "),n("el-col",{attrs:{span:12}},[n("label",[t._v("生日:")]),t._v(t._s(t.detail.birthday)+"\n ")]),t._v(" "),n("el-col",{attrs:{span:12}},[n("label",[t._v("等级:")]),t._v(t._s(t.detail.level)+"\n ")]),t._v(" "),n("el-col",{attrs:{span:12}},[n("label",[t._v("邀请类型:")]),t._v(t._s(t._f("inviteType")(t.detail.invite_type))+"\n ")]),t._v(" "),n("el-col",{attrs:{span:12}},[n("label",[t._v("邀请人ID:")]),t._v(t._s(t.detail.invite_user_id?t.detail.invite_user_id:"")+"\n ")]),t._v(" "),n("el-col",{attrs:{span:12}},[n("label",[t._v("已绑定老师:")]),t._v(t._s(t.detail.teacher_name)+"\n ")]),t._v(" "),n("el-col",{attrs:{span:12}},[n("label",[t._v("注册时间:")]),t._v(t._s(t.detail.created_at)+"\n ")]),t._v(" "),n("el-col",{attrs:{span:12}},[n("label",[t._v("最后登录:")]),t._v(t._s(t.detail.last_login_at)+"\n ")])],1)],1),t._v(" "),n("el-tabs",{attrs:{type:"border-card"}},[n("el-tab-pane",{attrs:{label:"期数列表"}},[n("el-table",{staticStyle:{width:"100%"},attrs:{data:t.periodList},on:{"expand-change":t.changeRow}},[n("el-table-column",{attrs:{type:"expand"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-table",{staticStyle:{width:"100%"},attrs:{data:t.list}},[n("el-table-column",{attrs:{label:"到课率"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(t._f("percent")(e.row.arrive_course_rate)))])]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"看课率"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(t._f("percent")(e.row.watch_course_rate)))])]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"完课率"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(t._f("percent")(e.row.over_course_rate)))])]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"作业率"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(t._f("percent")(e.row.work_rate)))])]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"全勤作业率"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(t._f("percent")(e.row.over_work_rate)))])]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"打卡率"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(t._f("percent")(e.row.clock_rate)))])]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"全勤打卡率"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(t._f("percent")(e.row.over_clock_rate)))])]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"转化率"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(t._f("percent")(e.row.transform_rate)))])]}}])})],1)]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"periods_title",label:"期数名称"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("router-link",{attrs:{to:{name:"class",query:{goods_id:e.row.goods_id,periods_id:e.row.periods_id}}}},[t._v("\n "+t._s(e.row.periods_title)+"\n ")])]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"看课权限"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(1===e.row.is_view_course?"是":"否")+"\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{className:"f-c",label:"老师"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("router-link",{attrs:{to:"/teacher/"+e.row.teacher_id}},[n("div",{staticClass:"f-c"},[n("div",[n("img",{staticClass:"avatar",attrs:{src:e.row.teacher_qr}}),t._v(" "+t._s(e.row.teacher_name)+"\n ")])])])]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"join_num",label:"加入人数"}}),t._v(" "),n("el-table-column",{attrs:{prop:"max_join_num",label:"最大加入人数"}}),t._v(" "),n("el-table-column",{attrs:{prop:"start_at",label:"开课时间"}}),t._v(" "),n("el-table-column",{attrs:{prop:"created_at",label:"创建时间"}}),t._v(" "),n("el-table-column",{attrs:{label:"操作",width:"400px"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-button",{attrs:{size:"mini",type:"primary"},on:{click:function(n){t.showUser(e.row)}}},[t._v(" 班级成员")]),t._v(" "),n("el-button",{attrs:{size:"mini",type:"warning"},on:{click:function(n){t.editPrivilege(e.row)}}},[t._v("编辑")]),t._v(" "),n("el-button",{attrs:{size:"mini",type:"primary"},on:{click:function(n){t.onGetUserDescList(e.row)}}},[t._v("备注")]),t._v(" "),n("el-button",{attrs:{size:"mini",type:"primary"},on:{click:function(n){t.userLook(e.row)}}},[t._v("看课情况 ")])]}}])})],1)],1),t._v(" "),n("el-tab-pane",{attrs:{label:"订单列表"}},[n("el-table",{staticStyle:{width:"100%"},attrs:{data:t.userList}},[n("el-table-column",{attrs:{prop:"out_trade_no",label:"订单号"}}),t._v(" "),n("el-table-column",{attrs:{label:"购买人",className:"f-c",width:"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("img",{staticClass:"avatar",attrs:{src:e.row.user_avatar}}),t._v(" "+t._s(e.row.user_nickname)),n("br"),t._v("(ID:"+t._s(e.row.user_id)+")\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"periods_title",label:"期数标题"}}),t._v(" "),n("el-table-column",{attrs:{prop:"goods_name",label:"商品名称"}}),t._v(" "),n("el-table-column",{attrs:{width:"250",prop:"invite_id",className:"f-c",label:"推广人属性"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.invite_earnings>0&&0!==e.row.invite_id?n("div",{staticStyle:{display:"flex",color:"#409eff",cursor:"pointer"},on:{click:function(n){t.showSource(e.row)}}},[n("img",{staticClass:"avatar",attrs:{src:e.row.invite_avatar}}),t._v("\n 类型:"+t._s(e.row.invite_type)+"\n "),n("br"),t._v("\n 收益:"+t._s(e.row.invite_earnings/100)+"\n "),n("br"),t._v("\n 用户ID:"+t._s(e.row.invite_id)+"\n "),n("br"),t._v("\n 昵称:"+t._s(e.row.invite_nickname)+"\n "),n("br"),t._v("\n 手机:"+t._s(e.row.invite_mobile)+"\n ")]):t._e(),t._v(" "),0===e.row.invite_earnings&&0!==e.row.invite_id?n("div",{staticStyle:{display:"flex"}},[n("img",{staticClass:"avatar",attrs:{src:e.row.invite_avatar}}),t._v("\n 类型:"+t._s(e.row.invite_type)+"\n "),n("br"),t._v("\n 收益:"+t._s(e.row.invite_earnings/100)+"\n "),n("br"),t._v("\n 用户ID:"+t._s(e.row.invite_id)+"\n "),n("br"),t._v("\n 昵称:"+t._s(e.row.invite_nickname)+"\n "),n("br"),t._v("\n 手机:"+t._s(e.row.invite_mobile)+"\n ")]):t._e(),t._v(" "),0===e.row.invite_id?n("div",[t._v("\n\n ")]):t._e()]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"优惠活动"},scopedSlots:t._u([{key:"default",fn:function(e){return[0===e.row.order_coupon_id?n("span",[t._v("\n\n ")]):t._e(),t._v(" "),0!==e.row.order_coupon_id?n("el-button",{attrs:{type:"text"},on:{click:function(n){t.showCoupon(e.row)}}},[t._v("\n 优惠券\n ")]):t._e()]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"付款状态",width:"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[5===e.row.status||3===e.row.status?n("el-button",{attrs:{type:"text"},on:{click:function(n){t.showRef(e.row)}}},[t._v(t._s(t._f("status")(e.row.status)))]):t._e(),t._v(" "),5!==e.row.status&&3!==e.row.status?n("div",[t._v(t._s(t._f("status")(e.row.status)))]):t._e()]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"实付金额",width:"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t._f("moneytFilter")(e.row.money))+"\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"收货地址"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.user_address_id&&e.row.address_info?n("div",[t._v("\n "+t._s(e.row.address_info.receive_name)),n("br"),t._v("\n "+t._s(e.row.address_info.receive_mobile)),n("br"),t._v("\n "+t._s(e.row.address_info.province_name)+t._s(e.row.address_info.city)+t._s(e.row.address_info.area)+t._s(e.row.address_info.address)+"\n ")]):t._e()]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"pay_at",label:"购买时间"}}),t._v(" "),n("el-table-column",{attrs:{prop:"created_at",label:"下单时间"}})],1),t._v(" "),n("page",{attrs:{total:t.total,limit:t.limit},on:{pageChange:t.onPageChange,sizeChange:t.onSizeChange}})],1)],1),t._v(" "),n("teacher-dialog",{attrs:{dialogObj:t.dialogObj},on:{reflash:t.getDetail}}),t._v(" "),n("user-list",{attrs:{userObj:t.userObj}}),t._v(" "),n("source-dialog",{attrs:{dialogObj:t.sourceDialog}}),t._v(" "),n("refund-detail",{attrs:{dialogObj:t.refundDetail}}),t._v(" "),n("coupon-dialog",{attrs:{dialogObj:t.couponDetail}}),t._v(" "),n("el-dialog",{attrs:{modal:!1,visible:t.privilegeDialog.show,title:"编辑权限"},on:{"update:visible":function(e){t.$set(t.privilegeDialog,"show",e)}}},[n("el-form",{attrs:{"label-width":"120px"}},[n("el-form-item",{attrs:{label:"是否添加老师"}},[n("el-select",{attrs:{placeholder:"请选择"},model:{value:t.privilegeDialog.is_add_teacher,callback:function(e){t.$set(t.privilegeDialog,"is_add_teacher",e)},expression:"privilegeDialog.is_add_teacher"}},t._l(t.isAddTeacherList,function(t,e){return n("el-option",{key:e,attrs:{label:t.label,value:t.value}})}))],1),t._v(" "),n("el-form-item",{attrs:{label:"看课权限"}},[n("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#ff4949"},model:{value:t.privilegeDialog.isAllowView,callback:function(e){t.$set(t.privilegeDialog,"isAllowView",e)},expression:"privilegeDialog.isAllowView"}})],1),t._v(" "),n("el-form-item",{attrs:{label:"意向等级"}},[n("el-input-number",{attrs:{min:0,step:1},model:{value:t.privilegeDialog.weight,callback:function(e){t.$set(t.privilegeDialog,"weight",e)},expression:"privilegeDialog.weight"}})],1)],1),t._v(" "),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(e){t.privilegeDialog.show=!1}}},[t._v("取 消")]),t._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:function(e){t.changePrivilegeSub()}}},[t._v("确 定")])],1)],1),t._v(" "),n("el-dialog",{attrs:{modal:!1,visible:t.descDialog.show,title:"备注列表",width:"60%"},on:{"update:visible":function(e){t.$set(t.descDialog,"show",e)}}},[n("el-form",{attrs:{"label-width":"90px"}},[n("el-form-item",[n("el-button",{staticStyle:{float:"right"},attrs:{type:"primary",plain:""},on:{click:function(e){t.editComment(t.descDialog.id)}}},[t._v("添加备注")])],1)],1),t._v(" "),n("el-table",{staticStyle:{width:"100%"},attrs:{data:t.descDialog.descList}},[n("el-table-column",{attrs:{label:"用户",className:"f-c","min-width":"150"},scopedSlots:t._u([{key:"default",fn:function(e){return t.descDialog.userInfo?[n("img",{staticStyle:{width:"40px",height:"40px","border-radius":"50px"},attrs:{src:t.descDialog.userInfo.avatar}}),t._v(" "+t._s(t.descDialog.userInfo.nickname)+"(ID:"+t._s(t.descDialog.userInfo.user_id)+")\n ")]:void 0}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"desc",label:"备注"}}),t._v(" "),n("el-table-column",{attrs:{prop:"operator",label:"备注人"}}),t._v(" "),n("el-table-column",{attrs:{prop:"created_at",label:"创建时间"}}),t._v(" "),n("el-table-column",{attrs:{prop:"updated_at",label:"更新时间"}})],1),t._v(" "),n("page",{attrs:{nowPage:t.descDialog.nowPage,total:t.descDialog.total,limit:t.descDialog.limit},on:{pageChange:t.onDescDialogPageChange,sizeChange:t.onDescDialogSizeChange}})],1),t._v(" "),n("el-dialog",{attrs:{modal:!1,visible:t.lookDetail.show},on:{"update:visible":function(e){t.$set(t.lookDetail,"show",e)}}},[n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.lookDetail.loading,expression:"lookDetail.loading"}],staticStyle:{width:"100%"},attrs:{data:t.lookDetail.list}},[n("el-table-column",{attrs:{prop:"start_at",label:"日期"}}),t._v(" "),n("el-table-column",{attrs:{label:"爸妈看一看"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.watch_list&&e.row.watch_list.length>0&&e.row.watch_list.find(function(t){return 1===t.page_id})?n("span",[t._v("\n "+t._s(e.row.watch_list.find(function(t){return 1===t.page_id}).stay_time)+"\n ")]):t._e(),t._v(" "),e.row.watch_list.find(function(t){return 1===t.page_id})?t._e():n("span",[t._v("\n 暂未上课\n ")])]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"宝贝玩一玩"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.watch_list&&e.row.watch_list.length>0&&e.row.watch_list.find(function(t){return 2===t.page_id})?n("span",[t._v("\n "+t._s(e.row.watch_list.find(function(t){return 2===t.page_id}).stay_time)+"\n ")]):t._e(),t._v(" "),e.row.watch_list.find(function(t){return 2===t.page_id})?t._e():n("span",[t._v("\n 暂未上课\n ")])]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"爸妈秀宝贝"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.watch_list&&e.row.watch_list.length>0&&e.row.watch_list.find(function(t){return 3===t.page_id})?n("span",[n("div",{domProps:{innerHTML:t._s(e.row.watch_list.find(function(t){return 3===t.page_id}).learn_report)}})]):t._e(),t._v(" "),e.row.watch_list.find(function(t){return 3===t.page_id})?t._e():n("span",[t._v("\n 暂未秀宝贝\n ")])]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"多元趣味课"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.watch_list&&e.row.watch_list.length>0&&e.row.watch_list.find(function(t){return 5===t.page_id})?n("span",[t._v("\n "+t._s(e.row.watch_list.find(function(t){return 5===t.page_id}).stay_time)+"\n ")]):t._e(),t._v(" "),e.row.watch_list.find(function(t){return 5===t.page_id})?t._e():n("span",[t._v("\n 暂未上课\n ")])]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"分享"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.watch_list&&e.row.watch_list.length>0&&e.row.watch_list.find(function(t){return 4===t.page_id})?n("span",[t._v("\n 已分享\n ")]):t._e(),t._v(" "),e.row.watch_list.find(function(t){return 4===t.page_id})?t._e():n("span",[t._v("\n 暂未分享\n ")])]}}])})],1),t._v(" "),n("page",{attrs:{nowPage:t.lookDetail.nowPage,total:t.lookDetail.total,limit:t.lookDetail.limit},on:{pageChange:t.onLookDetailPageChange,sizeChange:t.onLookDetailSizeChange}})],1)],1)};b._withStripped=!0;var A={render:b,staticRenderFns:[]},m=A;var w=!1;var C=n("VU/8")(g,m,!1,function(t){w||(n("xjRD"),n("ivTY"))},"data-v-61122de2",null);C.options.__file="src\\components\\userDetail\\index.vue";e.default=C.exports},"9Wh8":function(t,e,n){var a=n("udiB");"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n("rjj0")("3b8e9453",a,!1,{})},AxoJ:function(t,e,n){(t.exports=n("FZ+f")(!0)).push([t.i,"\n.f-c > div {\n display: -webkit-box !important;\n display: -ms-flexbox !important;\n display: flex !important;\n -webkit-box-orient: horizontal;\n -webkit-box-direction: normal;\n -ms-flex-flow: row;\n flex-flow: row;\n -webkit-box-pack: start;\n -ms-flex-pack: start;\n justify-content: flex-start;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n}\n","",{version:3,sources:["D:/myproject/changchang-admin-new/src/components/userDetail/index.vue"],names:[],mappings:";AACA;EACE,gCAAgC;EAChC,gCAAgC;EAChC,yBAAyB;EACzB,+BAA+B;EAC/B,8BAA8B;MAC1B,mBAAmB;UACf,eAAe;EACvB,wBAAwB;MACpB,qBAAqB;UACjB,4BAA4B;EACpC,0BAA0B;MACtB,uBAAuB;UACnB,oBAAoB;CAC7B",file:"index.vue",sourcesContent:["\n.f-c > div {\n display: -webkit-box !important;\n display: -ms-flexbox !important;\n display: flex !important;\n -webkit-box-orient: horizontal;\n -webkit-box-direction: normal;\n -ms-flex-flow: row;\n flex-flow: row;\n -webkit-box-pack: start;\n -ms-flex-pack: start;\n justify-content: flex-start;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n}\n"],sourceRoot:""}])},G2rA:function(t,e,n){"use strict";var a=n("CCn6"),i={name:"refundDetail",props:["dialogObj"],data:function(){return{detail:[]}},filters:{filterStatus:function(t){var e="";return 0===t?e="退款中":1===t?e="退款成功":2===t&&(e="退款失败"),e}},methods:{initPage:function(){var t=this,e={out_trade_no:this.dialogObj.out_trade_no,limit:200};Object(a._54)(e).then(function(e){t.detail=e.list})}},watch:{"dialogObj.show":function(t){!0===t&&this.initPage()}}},o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-dialog",{attrs:{title:"退款详情",center:"","append-to-body":"",visible:t.dialogObj.show,width:"90%"},on:{"update:visible":function(e){t.$set(t.dialogObj,"show",e)}}},[n("el-table",{staticStyle:{width:"100%"},attrs:{data:t.detail}},[n("el-table-column",{attrs:{prop:"refund_no",label:"退款编号"}}),t._v(" "),n("el-table-column",{attrs:{prop:"out_trade_no",label:"订单号"}}),t._v(" "),n("el-table-column",{attrs:{label:"用户信息","min-width":"140",className:"userInfo"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("img",{staticClass:"avatar",attrs:{src:e.row.user_avatar}}),t._v("\n "+t._s(e.row.user_nickname)+"(ID:"+t._s(e.row.user_id)+")\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"order_money",label:"订单金额"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(parseFloat(e.row.order_money/100))+"元\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"refund_money",label:"退款金额"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(parseFloat(e.row.refund_money/100))+"元\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"desc",label:"备注"}}),t._v(" "),n("el-table-column",{attrs:{label:"退款状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t._f("filterStatus")(e.row.status))+"\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"success_at",label:"退款成功时间"}})],1)],1)};o._withStripped=!0;var r={render:o,staticRenderFns:[]},l=r;var s=!1;var c=n("VU/8")(i,l,!1,function(t){s||n("UAas")},"data-v-dcf5d7b2",null);c.options.__file="src\\components\\order\\refundDetail.vue";e.a=c.exports},Ikhs:function(t,e,n){var a=n("UoYC");"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n("rjj0")("15060f9d",a,!1,{})},"L+Pp":function(t,e,n){(t.exports=n("FZ+f")(!0)).push([t.i,'\n.search-btn-block[data-v-61122de2] {\n margin-left: 20px;\n}\n.search-form[data-v-61122de2] {\n background: white;\n padding: 10px;\n margin: 10px 0;\n}\n.new-block[data-v-61122de2] {\n margin: 10px;\n text-align: right;\n}\n.fl-r[data-v-61122de2] {\n float: right;\n}\n.text-c[data-v-61122de2] {\n text-align: center;\n}\n.text-b[data-v-61122de2] {\n font-weight: bold;\n}\n.color-b[data-v-61122de2] {\n color: #6ba8e6;\n}\n.text-r[data-v-61122de2] {\n text-align: right;\n}\n.main-block[data-v-61122de2] {\n margin: 5px;\n background: white;\n padding: 5px;\n}\nhtml[data-v-61122de2] {\n font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "\\5FAE\\8F6F\\96C5\\9ED1", Arial, sans-serif;\n}\n.clear-both[data-v-61122de2]:after {\n content: \'\';\n display: block;\n clear: both;\n}\n[data-v-61122de2]::-webkit-scrollbar-track-piece {\n border-radius: 10px;\n}\n[data-v-61122de2]::-webkit-scrollbar {\n width: 5px;\n height: 5px;\n}\n[data-v-61122de2]::-webkit-scrollbar-thumb {\n background-color: #999;\n border-radius: 10px;\n height: 10px;\n min-height: 10px;\n}\n.user-card[data-v-61122de2] {\n margin: 10px;\n width: 800px;\n}\n.user-card label[data-v-61122de2] {\n color: #5982e6;\n width: 100px;\n display: inline-block;\n text-align: right;\n}\n.user-card .el-col[data-v-61122de2] {\n height: 30px;\n line-height: 30px;\n}\n.user-card .title[data-v-61122de2] {\n height: 50px;\n line-height: 60px;\n margin-bottom: 20px;\n}\n.user-card .title a[data-v-61122de2] {\n position: absolute;\n top: -10px;\n left: 5px;\n}\n.user-card .title a img[data-v-61122de2] {\n width: 80px;\n border-radius: 100px;\n}\n.avatar[data-v-61122de2] {\n width: 50px;\n height: 50px;\n border-radius: 50%;\n}\n.user[data-v-61122de2] {\n height: 100%;\n overflow: auto;\n /*padding: 20px 0;*/\n}\n.user .btn-content[data-v-61122de2] {\n text-align: center;\n}\n.header[data-v-61122de2] {\n padding: 0 20px;\n margin-bottom: 20px;\n}\n.header .el-row[data-v-61122de2] {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: start;\n -ms-flex-pack: start;\n justify-content: flex-start;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n color: #666;\n font-size: 16px;\n margin: 25px 0;\n}\n.header .el-row label[data-v-61122de2] {\n margin-right: 10px;\n}\n.header .avatar[data-v-61122de2] {\n margin-right: 10px;\n}\n.b-title[data-v-61122de2] {\n padding: 20px;\n color: #666;\n}\n',"",{version:3,sources:["D:/myproject/changchang-admin-new/src/components/userDetail/index.vue"],names:[],mappings:";AACA;EACE,kBAAkB;CACnB;AACD;EACE,kBAAkB;EAClB,cAAc;EACd,eAAe;CAChB;AACD;EACE,aAAa;EACb,kBAAkB;CACnB;AACD;EACE,aAAa;CACd;AACD;EACE,mBAAmB;CACpB;AACD;EACE,kBAAkB;CACnB;AACD;EACE,eAAe;CAChB;AACD;EACE,kBAAkB;CACnB;AACD;EACE,YAAY;EACZ,kBAAkB;EAClB,aAAa;CACd;AACD;EACE,0IAA0H;CAC3H;AACD;EACE,YAAY;EACZ,eAAe;EACf,YAAY;CACb;AACD;EACE,oBAAoB;CACrB;AACD;EACE,WAAW;EACX,YAAY;CACb;AACD;EACE,uBAAuB;EACvB,oBAAoB;EACpB,aAAa;EACb,iBAAiB;CAClB;AACD;EACE,aAAa;EACb,aAAa;CACd;AACD;EACE,eAAe;EACf,aAAa;EACb,sBAAsB;EACtB,kBAAkB;CACnB;AACD;EACE,aAAa;EACb,kBAAkB;CACnB;AACD;EACE,aAAa;EACb,kBAAkB;EAClB,oBAAoB;CACrB;AACD;EACE,mBAAmB;EACnB,WAAW;EACX,UAAU;CACX;AACD;EACE,YAAY;EACZ,qBAAqB;CACtB;AACD;EACE,YAAY;EACZ,aAAa;EACb,mBAAmB;CACpB;AACD;EACE,aAAa;EACb,eAAe;EACf,oBAAoB;CACrB;AACD;EACE,mBAAmB;CACpB;AACD;EACE,gBAAgB;EAChB,oBAAoB;CACrB;AACD;EACE,qBAAqB;EACrB,qBAAqB;EACrB,cAAc;EACd,wBAAwB;MACpB,qBAAqB;UACjB,4BAA4B;EACpC,0BAA0B;MACtB,uBAAuB;UACnB,oBAAoB;EAC5B,YAAY;EACZ,gBAAgB;EAChB,eAAe;CAChB;AACD;EACE,mBAAmB;CACpB;AACD;EACE,mBAAmB;CACpB;AACD;EACE,cAAc;EACd,YAAY;CACb",file:"index.vue",sourcesContent:['\n.search-btn-block[data-v-61122de2] {\n margin-left: 20px;\n}\n.search-form[data-v-61122de2] {\n background: white;\n padding: 10px;\n margin: 10px 0;\n}\n.new-block[data-v-61122de2] {\n margin: 10px;\n text-align: right;\n}\n.fl-r[data-v-61122de2] {\n float: right;\n}\n.text-c[data-v-61122de2] {\n text-align: center;\n}\n.text-b[data-v-61122de2] {\n font-weight: bold;\n}\n.color-b[data-v-61122de2] {\n color: #6ba8e6;\n}\n.text-r[data-v-61122de2] {\n text-align: right;\n}\n.main-block[data-v-61122de2] {\n margin: 5px;\n background: white;\n padding: 5px;\n}\nhtml[data-v-61122de2] {\n font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;\n}\n.clear-both[data-v-61122de2]:after {\n content: \'\';\n display: block;\n clear: both;\n}\n[data-v-61122de2]::-webkit-scrollbar-track-piece {\n border-radius: 10px;\n}\n[data-v-61122de2]::-webkit-scrollbar {\n width: 5px;\n height: 5px;\n}\n[data-v-61122de2]::-webkit-scrollbar-thumb {\n background-color: #999;\n border-radius: 10px;\n height: 10px;\n min-height: 10px;\n}\n.user-card[data-v-61122de2] {\n margin: 10px;\n width: 800px;\n}\n.user-card label[data-v-61122de2] {\n color: #5982e6;\n width: 100px;\n display: inline-block;\n text-align: right;\n}\n.user-card .el-col[data-v-61122de2] {\n height: 30px;\n line-height: 30px;\n}\n.user-card .title[data-v-61122de2] {\n height: 50px;\n line-height: 60px;\n margin-bottom: 20px;\n}\n.user-card .title a[data-v-61122de2] {\n position: absolute;\n top: -10px;\n left: 5px;\n}\n.user-card .title a img[data-v-61122de2] {\n width: 80px;\n border-radius: 100px;\n}\n.avatar[data-v-61122de2] {\n width: 50px;\n height: 50px;\n border-radius: 50%;\n}\n.user[data-v-61122de2] {\n height: 100%;\n overflow: auto;\n /*padding: 20px 0;*/\n}\n.user .btn-content[data-v-61122de2] {\n text-align: center;\n}\n.header[data-v-61122de2] {\n padding: 0 20px;\n margin-bottom: 20px;\n}\n.header .el-row[data-v-61122de2] {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: start;\n -ms-flex-pack: start;\n justify-content: flex-start;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n color: #666;\n font-size: 16px;\n margin: 25px 0;\n}\n.header .el-row label[data-v-61122de2] {\n margin-right: 10px;\n}\n.header .avatar[data-v-61122de2] {\n margin-right: 10px;\n}\n.b-title[data-v-61122de2] {\n padding: 20px;\n color: #666;\n}\n'],sourceRoot:""}])},O6Rd:function(t,e,n){"use strict";var a=n("CCn6"),i={name:"sourceDialog",props:["dialogObj"],data:function(){return{detail:[]}},filters:{moneyYuan:function(t){return t?(t/100).toFixed(2)+"元":""},filterStatus:function(t){var e="";return 0===t?e="审核中":1===t?e="提现成功":2===t&&(e="提现失败"),e}},methods:{initPage:function(){var t=this,e={out_trade_no:this.dialogObj.out_trade_no,limit:200};Object(a._74)(e).then(function(e){t.detail=e.list})}},watch:{"dialogObj.show":function(t){!0===t&&this.initPage()}}},o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-dialog",{attrs:{title:"提现详情",center:"","append-to-body":"",visible:t.dialogObj.show,width:"90%"},on:{"update:visible":function(e){t.$set(t.dialogObj,"show",e)}}},[n("el-table",{staticStyle:{width:"100%"},attrs:{data:t.detail}},[n("el-table-column",{attrs:{prop:"withdraw_no",label:"提现单号"}}),t._v(" "),n("el-table-column",{attrs:{prop:"out_trade_no",label:"订单号"}}),t._v(" "),n("el-table-column",{attrs:{label:"用户",width:"200",className:"f-c"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("img",{staticClass:"avatar",attrs:{src:e.row.user_avatar}}),t._v(" "+t._s(e.row.user_nickname)+"(ID:"+t._s(e.row.user_id)+")\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"user_mobile",label:"手机号"}}),t._v(" "),n("el-table-column",{attrs:{label:"提现金额"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t._f("moneyYuan")(e.row.money))+"\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"提现状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",{class:{status:!0,red:2===e.row.status,green:1===e.row.status}},[t._v("\n "+t._s(t._f("filterStatus")(e.row.status))+"\n ")])]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"提现成功时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.success_at)+"\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"提现时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.created_at)+"\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"reason",label:"失败原因"}}),t._v(" "),n("el-table-column",{attrs:{prop:"desc",label:"备注"}})],1)],1)};o._withStripped=!0;var r={render:o,staticRenderFns:[]},l=r;var s=!1;var c=n("VU/8")(i,l,!1,function(t){s||n("9Wh8")},"data-v-dcd002fe",null);c.options.__file="src\\components\\order\\sourceDialog.vue";e.a=c.exports},UAas:function(t,e,n){var a=n("hMSk");"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n("rjj0")("984d55cc",a,!1,{})},UoYC:function(t,e,n){(t.exports=n("FZ+f")(!0)).push([t.i,"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n","",{version:3,sources:[],names:[],mappings:"",file:"dialog.vue",sourceRoot:""}])},eCTS:function(t,e,n){var a=n("6E06");"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n("rjj0")("de7d4256",a,!1,{})},hMSk:function(t,e,n){(t.exports=n("FZ+f")(!0)).push([t.i,"\n.avatar[data-v-dcf5d7b2] {\n width:50px;\n height: 50px;\n border-radius: 50%;\n}\n","",{version:3,sources:["D:/myproject/changchang-admin-new/src/components/order/refundDetail.vue"],names:[],mappings:";AACA;EACE,WAAW;EACX,aAAa;EACb,mBAAmB;CACpB",file:"refundDetail.vue",sourcesContent:["\n.avatar[data-v-dcf5d7b2] {\n width:50px;\n height: 50px;\n border-radius: 50%;\n}\n"],sourceRoot:""}])},ivTY:function(t,e,n){var a=n("AxoJ");"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n("rjj0")("5aeada36",a,!1,{})},kmsh:function(t,e,n){"use strict";var a=n("CCn6"),i={name:"sourceDialog",props:["dialogObj"],data:function(){return{detail:[]}},filters:{filterStatus:function(t){var e="";return 0===t?e="未使用":1===t?e="已使用":2===t&&(e="禁用"),e}},methods:{initPage:function(){var t=this,e={order_coupon_id:this.dialogObj.order_coupon_id,limit:200};Object(a._31)(e).then(function(e){t.detail=e.list})}},watch:{"dialogObj.show":function(t){!0===t&&this.initPage()}}},o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-dialog",{attrs:{title:"优惠券详情",center:"","append-to-body":"",visible:t.dialogObj.show,width:"90%"},on:{"update:visible":function(e){t.$set(t.dialogObj,"show",e)}}},[n("el-table",{staticStyle:{width:"100%"},attrs:{data:t.detail}},[n("el-table-column",{attrs:{prop:"coupon_no",label:"优惠券码"}}),t._v(" "),n("el-table-column",{attrs:{prop:"out_trade_no",label:"订单号"}}),t._v(" "),n("el-table-column",{attrs:{label:"用户信息","min-width":"140",className:"userInfo"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("img",{staticClass:"avatar",attrs:{src:e.row.user_avatar}}),t._v("\n "+t._s(e.row.user_nickname)+"(ID:"+t._s(e.row.user_id)+")\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"优惠券金额"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(parseFloat(e.row.money/100))+"元\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"使用状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t._f("filterStatus")(e.row.status))+"\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"use_at",label:"使用时间"}})],1)],1)};o._withStripped=!0;var r={render:o,staticRenderFns:[]},l=r;var s=!1;var c=n("VU/8")(i,l,!1,function(t){s||n("eCTS")},"data-v-33d21ccc",null);c.options.__file="src\\components\\order\\couponDialog.vue";e.a=c.exports},udiB:function(t,e,n){(t.exports=n("FZ+f")(!0)).push([t.i,"\n.avatar[data-v-dcd002fe] {\n width:50px;\n height: 50px;\n border-radius: 50%;\n}\n","",{version:3,sources:["D:/myproject/changchang-admin-new/src/components/order/sourceDialog.vue"],names:[],mappings:";AACA;EACE,WAAW;EACX,aAAa;EACb,mBAAmB;CACpB",file:"sourceDialog.vue",sourcesContent:["\n.avatar[data-v-dcd002fe] {\n width:50px;\n height: 50px;\n border-radius: 50%;\n}\n"],sourceRoot:""}])},xjRD:function(t,e,n){var a=n("L+Pp");"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n("rjj0")("b6267d16",a,!1,{})}});
\ No newline at end of file
!function(e){var c=window.webpackJsonp;window.webpackJsonp=function(a,b,n){for(var r,t,o,i=0,u=[];i<a.length;i++)t=a[i],f[t]&&u.push(f[t][0]),f[t]=0;for(r in b)Object.prototype.hasOwnProperty.call(b,r)&&(e[r]=b[r]);for(c&&c(a,b,n);u.length;)u.shift()();if(n)for(i=0;i<n.length;i++)o=d(d.s=n[i]);return o};var a={},f={54:0};function d(c){if(a[c])return a[c].exports;var f=a[c]={i:c,l:!1,exports:{}};return e[c].call(f.exports,f,f.exports,d),f.l=!0,f.exports}d.e=function(e){var c=f[e];if(0===c)return new Promise(function(e){e()});if(c)return c[2];var a=new Promise(function(a,d){c=f[e]=[a,d]});c[2]=a;var b=document.getElementsByTagName("head")[0],n=document.createElement("script");n.type="text/javascript",n.charset="utf-8",n.async=!0,n.timeout=12e4,d.nc&&n.setAttribute("nonce",d.nc),n.src=d.p+"static/js/"+e+"."+{0:"0e05fe8009a4ebb83b3a",1:"c0d5b8559be5c50bc9e7",2:"123e481b46da7e37b1e2",3:"ad2d415bdca9be4058c2",4:"a065a9be09f00944cc48",5:"6b10b3e75f34b98ebed3",6:"4e4fce8f26087b8b0876",7:"4260d3feb8d39415cc24",8:"3e53d262919f929cbdbe",9:"e1d696af6ef7b4fb7869",10:"97cbf4b76a45c49c84c0",11:"7a44a22eb870d9110c01",12:"19c02c354c209ba9ee02",13:"afae18aeeb27e944a151",14:"5601195c7ecaa850ac1e",15:"26dc61bad2cdfa04b07c",16:"49e325f932e018d2ae1d",17:"710ef12988bf45ba25e6",18:"87d5e32ec7804c785802",19:"c45d65fe5ce700ec630a",20:"58f91245a06aad114861",21:"6d93dbd5ee7844901705",22:"7089f6f1aaa9198a4f9e",23:"aadf7c5d6fe506755d4f",24:"aae231648c9f706180da",25:"402dbb9ae8e0fe0d2405",26:"da520e82f0cee71899a3",27:"3aefe3f3c631dc1e6ade",28:"6b952a0bb5929d1687c8",29:"d0eecb944b6da646b39e",30:"81a5f31c91c4d882cd3f",31:"c82e5bdfda1f915949c3",32:"ebcb28fa60e43c9209f3",33:"dd94ec439525b04bbc26",34:"98768f3425c7971517c7",35:"1f4d11b447a8e75fd3ce",36:"3499abb236cd6dde6fd3",37:"ef550c302d1eaa59a88a",38:"c60be8b7c17da8c033d7",39:"3777a282d94a61434aab",40:"ed6657394dc86b98017e",41:"214a4066837e18c6b95c",42:"342ba2b586d7be7868fe",43:"ec355fc735ca813af86c",44:"cb0d607d3d9215cb6185",45:"f002ee4b50549513cd1e",46:"2f9a89c250898fcef45c",47:"2bcf8a5bef4802e4c816",48:"d08eb2f4b6b6ca6f5a96",49:"88c59ae13d1af27a2b59",50:"999a6f3c70b6de6ecb11",51:"bf1b1bdff5ff58e38d7e"}[e]+".js";var r=setTimeout(t,12e4);function t(){n.onerror=n.onload=null,clearTimeout(r);var c=f[e];0!==c&&(c&&c[1](new Error("Loading chunk "+e+" failed.")),f[e]=void 0)}return n.onerror=n.onload=t,b.appendChild(n),a},d.m=e,d.c=a,d.d=function(e,c,a){d.o(e,c)||Object.defineProperty(e,c,{configurable:!1,enumerable:!0,get:a})},d.n=function(e){var c=e&&e.__esModule?function(){return e.default}:function(){return e};return d.d(c,"a",c),c},d.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},d.p="/",d.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
<!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><meta name=referrer content=never><link rel=stylesheet href=https:////at.alicdn.com/t/font_746649_x1rivf5f5.css><link rel=stylesheet href=https://unpkg.com/element-ui@2.4.9/lib/theme-chalk/index.css><title>唱唱启蒙-后台</title><link href=/static/css/app.b8ed6b6011cd5769d41f6c78fab39540.css rel=stylesheet></head><body><script src=https://unpkg.com/vue@2.5.17/dist/vue.js></script><script src=https://unpkg.com/vuex@3.0.1/dist/vuex.min.js></script><script src=https://unpkg.com/axios@0.18.0/dist/axios.min.js></script><script src=https://unpkg.com/element-ui@2.4.9/lib/index.js></script><div id=app></div><script type=text/javascript src=/static/js/manifest.6c378dd0c34945aad183.js></script><script type=text/javascript src=/static/js/vendor.dabb3afa5856b271bc7f.js></script><script type=text/javascript src=/static/js/app.355fd70dc578bbf3e7a3.js></script></body><script>let el = document.getElementsByTagName("script");
<!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><meta name=referrer content=never><link rel=stylesheet href=https:////at.alicdn.com/t/font_746649_x1rivf5f5.css><link rel=stylesheet href=https://unpkg.com/element-ui@2.4.9/lib/theme-chalk/index.css><title>唱唱启蒙-后台</title><link href=/static/css/app.174568fb01d73a28b268349793cb4684.css rel=stylesheet></head><body><script src=https://unpkg.com/vue@2.5.17/dist/vue.js></script><script src=https://unpkg.com/vuex@3.0.1/dist/vuex.min.js></script><script src=https://unpkg.com/axios@0.18.0/dist/axios.min.js></script><script src=https://unpkg.com/element-ui@2.4.9/lib/index.js></script><div id=app></div><script type=text/javascript src=/static/js/manifest.0606439acc607cac198c.js></script><script type=text/javascript src=/static/js/vendor.dabb3afa5856b271bc7f.js></script><script type=text/javascript src=/static/js/app.c313d06cac117560f0dc.js></script></body><script>let el = document.getElementsByTagName("script");
el.onerror = function(a,b,c){
console.log('error:',a,b,c);
};
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
webpackJsonp([10],{CvLZ:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("CCn6"),a=n("+TkF"),s=n("kmJW"),o={name:"add",data:function(){return{pickerOptions0:{disabledDate:function(e){return e.getTime()<Date.now()-864e5}}}},props:["newIntegral","goodsList"],methods:{reSetForm:function(){this.$refs.newIntegral.resetFields()},onAdd:function(){var e=this;this.$refs.newIntegral.validate(function(t){t&&(e.newIntegral.id?e.$emit("subEdit"):e.$emit("subAdd"))})}},watch:{"newIntegral.show":function(e){var t=this;e&&!this.newIntegral.id&&this.$nextTick(function(){t.reSetForm()})}}},l={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-dialog",{attrs:{visible:e.newIntegral.show,width:"800px",center:"",title:e.newIntegral.id?"修改兑换码":"生成兑换码"},on:{"update:visible":function(t){e.$set(e.newIntegral,"show",t)}}},[n("el-form",{ref:"newIntegral",attrs:{"label-width":"150px",model:e.newIntegral}},[n("el-form-item",{attrs:{label:"名称",prop:"name",rules:[{required:!0,message:"请输入名称",trigger:"blur"}]}},[n("el-row",{attrs:{gutter:20}},[n("el-col",{attrs:{span:20}},[n("el-input",{model:{value:e.newIntegral.name,callback:function(t){e.$set(e.newIntegral,"name",t)},expression:"newIntegral.name"}})],1)],1)],1),e._v(" "),n("el-form-item",{attrs:{label:"商品",prop:"goods_id",rules:[{required:!0,message:"请选择商品",trigger:"change"}]}},[n("el-row",{attrs:{gutter:20}},[n("el-col",{attrs:{span:20}},[n("el-select",{model:{value:e.newIntegral.goods_id,callback:function(t){e.$set(e.newIntegral,"goods_id",t)},expression:"newIntegral.goods_id"}},e._l(e.goodsList,function(e){return n("el-option",{key:e.id,attrs:{label:"【"+e.id+"】"+e.name,value:e.id}})}))],1)],1)],1),e._v(" "),n("el-form-item",{attrs:{label:"数量",prop:"num",rules:[{required:!0,message:"请输入数量",trigger:"blur"}]}},[n("el-row",{attrs:{gutter:20}},[n("el-col",{attrs:{span:20}},[n("el-input-number",{model:{value:e.newIntegral.num,callback:function(t){e.$set(e.newIntegral,"num",t)},expression:"newIntegral.num"}})],1)],1)],1),e._v(" "),n("el-form-item",{attrs:{label:"失效时间",prop:"expire_at",rules:[{required:!0,message:"请选择失效时间",trigger:"change"}]}},[n("el-row",{attrs:{gutter:20}},[n("el-col",{attrs:{span:20}},[n("el-date-picker",{attrs:{type:"datetime",format:"yyyy-MM-dd HH:mm:ss","value-format":"yyyy-MM-dd HH:mm:ss","picker-options":e.pickerOptions0,placeholder:"选择日期"},model:{value:e.newIntegral.expire_at,callback:function(t){e.$set(e.newIntegral,"expire_at",t)},expression:"newIntegral.expire_at"}})],1)],1)],1),e._v(" "),n("el-form-item",{attrs:{label:"备注",prop:"desc",rules:[{required:!0,message:"请填写备注信息",trigger:"blur"}]}},[n("el-row",{attrs:{gutter:20}},[n("el-col",{attrs:{span:20}},[n("el-input",{model:{value:e.newIntegral.desc,callback:function(t){e.$set(e.newIntegral,"desc",t)},expression:"newIntegral.desc"}})],1)],1)],1)],1),e._v(" "),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.newIntegral.show=!1}}},[e._v("取 消")]),e._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:e.onAdd}},[e._v("确 定")])],1)],1)},staticRenderFns:[]};var r=n("VU/8")(o,l,!1,function(e){n("tPpJ")},"data-v-4cef5bac",null).exports,d={name:"list",components:{page:s.a},props:["detailList"],data:function(){return{limit:10,list:[],form:{user_id:"",exchange_code:"",is_exchange:""},totalPage:0,nowPage:1}},methods:{initPage:function(){this.form={user_id:"",exchange_code:"",is_exchange:""},this.getList()},onPageChange:function(e){this.nowPage=e,this.getList()},onSizeChange:function(e){this.limit=e,this.nowPage=1,this.getList()},exprotList:function(){var e={};""!==this.form.is_exchange&&(e.is_exchange=this.form.is_exchange),""!==this.form.user_id&&(e.user_id=this.form.user_id),Object(i._11)("/api/admin/exchange/export/"+this.detailList.id,e)},getList:function(){var e=this,t={limit:this.limit,page:this.nowPage};""!==this.form.is_exchange&&(t.is_exchange=this.form.is_exchange),""!==this.form.user_id&&(t.user_id=this.form.user_id),""!==this.form.exchange_code&&(t.exchange_code=this.form.exchange_code),Object(i._10)(this.detailList.id,t).then(function(t){e.list=t.list,e.totalPage=t.total})}},watch:{"detailList.show":function(e){e&&this.initPage()}}},c={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-dialog",{attrs:{visible:e.detailList.show,width:"1200px",center:"",title:"详细纪录"},on:{"update:visible":function(t){e.$set(e.detailList,"show",t)}}},[n("el-form",{attrs:{"label-width":"80px",inline:""}},[n("el-form-item",{attrs:{label:"用户ID"}},[n("el-input",{attrs:{size:"small"},model:{value:e.form.user_id,callback:function(t){e.$set(e.form,"user_id",t)},expression:"form.user_id"}})],1),e._v(" "),n("el-form-item",{attrs:{label:"激活码"}},[n("el-input",{attrs:{size:"small"},model:{value:e.form.exchange_code,callback:function(t){e.$set(e.form,"exchange_code",t)},expression:"form.exchange_code"}})],1),e._v(" "),n("el-form-item",{attrs:{label:"是否激活"}},[n("el-select",{attrs:{size:"small"},model:{value:e.form.is_exchange,callback:function(t){e.$set(e.form,"is_exchange",t)},expression:"form.is_exchange"}},[n("el-option",{attrs:{label:"是",value:1}}),e._v(" "),n("el-option",{attrs:{label:"否",value:0}})],1)],1),e._v(" "),n("el-form-item",[n("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.getList}},[e._v("搜索")]),e._v(" "),n("el-button",{attrs:{size:"small",type:"success"},on:{click:e.exprotList}},[e._v("导出")])],1)],1),e._v(" "),n("el-table",{staticStyle:{width:"100%"},attrs:{data:e.list}},[n("el-table-column",{attrs:{label:"用户信息"},scopedSlots:e._u([{key:"default",fn:function(t){return[0===t.row.user_id?n("div",[e._v("暂无")]):e._e(),e._v(" "),0!==t.row.user_id?n("div",{staticStyle:{display:"flex"}},[n("img",{staticStyle:{width:"40px","margin-right":"5px","min-width":"40px",height:"40px","border-radius":"50px"},attrs:{src:t.row.user_avatar}}),e._v(" "+e._s(t.row.user_nickname)+"(ID:"+e._s(t.row.user_id)+")\n "),n("br"),e._v(" Tel:"+e._s(t.row.user_mobile)+"\n ")]):e._e()]}}])}),e._v(" "),n("el-table-column",{attrs:{prop:"exchange_no",label:"兑换码"}}),e._v(" "),n("el-table-column",{attrs:{label:"商品"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n 【"+e._s(t.row.goods_id)+"】"+e._s(t.row.goods_name)+"\n ")]}}])}),e._v(" "),n("el-table-column",{attrs:{prop:"expire_at",label:"失效时间"}}),e._v(" "),n("el-table-column",{attrs:{prop:"exchange_at",label:"兑换时间"},scopedSlots:e._u([{key:"default",fn:function(t){return["0000-00-00 00:00:00"!==t.row.exchange_at?n("span",[e._v(e._s(t.row.exchange_at))]):e._e(),e._v(" "),"0000-00-00 00:00:00"===t.row.exchange_at?n("span",{staticStyle:{color:"red"}},[e._v("尚未兑换")]):e._e()]}}])})],1),e._v(" "),n("page",{attrs:{nowPage:e.nowPage,total:e.totalPage,limit:e.limit},on:{pageChange:e.onPageChange,sizeChange:e.onSizeChange}})],1)},staticRenderFns:[]};var u=n("VU/8")(d,c,!1,function(e){n("wj7p")},"data-v-8f0edc68",null).exports,g={name:"index",components:{page:s.a,addExchange:r,listDetail:u},data:function(){var e=[];for(var t in a.i)e.push({id:t,value:a.i[t]});var n=[];for(var i in a.h)n.push({id:i,value:a.h[i]});return{list:[],total:0,detailList:{show:!1,user_id:"",is_exchange:"",id:null},newIntegral:{show:!1,goods_id:"",num:"",expire_at:"",desc:"",id:null},goodsList:[],is_addOption:e,sourceOption:n,limit:10,userListShow:{show:!1},nowPage:1,form:{name:"",goods_id:""}}},mounted:function(){this.initPage()},methods:{onDetail:function(e){this.detailList={show:!0,user_id:"",is_exchange:"",id:e.id}},onEdit:function(e){this.newIntegral={show:!0,goods_id:e.goods_id,num:e.num,expire_at:e.expire_at,desc:e.desc,name:e.name,id:e.id}},subEdit:function(){var e=this,t={goods_id:this.newIntegral.goods_id,num:this.newIntegral.num,expire_at:this.newIntegral.expire_at,desc:this.newIntegral.desc,name:this.newIntegral.name};Object(i._0)(this.newIntegral.id,t).then(function(t){e.$message({message:"数据修改成功",type:"success"}),e.getList(),e.newIntegral.show=!1})},subAdd:function(){var e=this,t={goods_id:this.newIntegral.goods_id,num:this.newIntegral.num,expire_at:this.newIntegral.expire_at,desc:this.newIntegral.desc,name:this.newIntegral.name};Object(i.i)(t).then(function(t){e.$message({message:"数据添加成功",type:"success"}),e.getList(),e.newIntegral.show=!1})},showUserList:function(){this.userListShow.show=!0},addUser:function(e){this.userListShow.show=!1,this.newIntegral.user_id=e},changeUserList:function(){},addIntegral:function(){this.newIntegral={show:!0,goods_id:"",num:"",expire_at:"",name:"",id:null,desc:""}},initPage:function(){this.form={name:"",goods_id:""},this.getGood(),this.getList()},getGood:function(){var e=this;Object(i._37)({limit:1e3}).then(function(t){e.goodsList=t.list})},onPageChange:function(e){this.nowPage=e,this.getList()},onSizeChange:function(e){this.limit=e,this.nowPage=1,this.getList()},getList:function(){var e=this,t={limit:this.limit,page:this.nowPage};""!==this.form.name&&(t.name=this.form.name),""!==this.form.goods_id&&(t.goods_id=this.form.goods_id),Object(i._35)(t).then(function(t){e.list=t.list,e.total=t.total})}}},m={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"integral-page"},[n("el-form",{ref:"searchFrom",staticStyle:{"padding-top":"20px",background:"white"},attrs:{model:e.form,"label-width":"100px",inline:""}},[n("el-form-item",{attrs:{label:"标题"}},[n("el-input",{model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1),e._v(" "),n("el-form-item",{attrs:{label:"商品"}},[n("el-select",{model:{value:e.form.goods_id,callback:function(t){e.$set(e.form,"goods_id",t)},expression:"form.goods_id"}},e._l(e.goodsList,function(e){return n("el-option",{key:e.id,attrs:{label:"【"+e.id+"】"+e.name,value:e.id}})}))],1),e._v(" "),n("el-form-item",[n("el-button",{attrs:{type:"primary",plain:""},on:{click:e.getList}},[e._v("搜索")])],1)],1),e._v(" "),e.$store.state.readonly?e._e():n("div",{staticClass:"new-block"},[n("el-button",{attrs:{type:"success",plain:""},on:{click:e.addIntegral}},[e._v("生成兑换码")])],1),e._v(" "),n("el-table",{staticStyle:{width:"100%"},attrs:{data:e.list}},[n("el-table-column",{attrs:{prop:"name",label:"名称"}}),e._v(" "),n("el-table-column",{attrs:{prop:"goods_name",label:"商品"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n 【"+e._s(t.row.goods_id)+"】"+e._s(t.row.goods_name)+"\n ")]}}])}),e._v(" "),n("el-table-column",{attrs:{prop:"num",label:"数量"}}),e._v(" "),n("el-table-column",{attrs:{prop:"desc",label:"备注"}}),e._v(" "),n("el-table-column",{attrs:{prop:"expire_at",label:"失效时间"}}),e._v(" "),n("el-table-column",{attrs:{prop:"created_at",label:"创建时间"}}),e._v(" "),n("el-table-column",{attrs:{label:"操作",width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(n){e.onDetail(t.row)}}},[e._v("查看详情")]),e._v(" "),n("el-button",{attrs:{type:"warning",size:"mini"},on:{click:function(n){e.onEdit(t.row)}}},[e._v("编辑")])]}}])})],1),e._v(" "),n("page",{attrs:{nowPage:e.nowPage,total:e.total,limit:e.limit},on:{pageChange:e.onPageChange,sizeChange:e.onSizeChange}}),e._v(" "),n("add-exchange",{ref:"add_page",attrs:{newIntegral:e.newIntegral,goodsList:e.goodsList},on:{subAdd:e.subAdd,subEdit:e.subEdit}}),e._v(" "),n("list-detail",{attrs:{detailList:e.detailList}})],1)},staticRenderFns:[]};var _=n("VU/8")(g,m,!1,function(e){n("QWtZ"),n("WKdZ")},"data-v-ba5768d6",null);t.default=_.exports},QWtZ:function(e,t){},WKdZ:function(e,t){},tPpJ:function(e,t){},wj7p:function(e,t){}});
\ No newline at end of file
webpackJsonp([11],{BK22:function(e,t){},"Cao/":function(e,t){},LU4X:function(e,t){},NDyu:function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=s("CCn6"),n=s("+TkF"),a=s("kmJW"),l={name:"newIntegral",props:["newIntegral"],data:function(){var e=[];for(var t in n.i)e.push({id:t,value:n.i[t]});return{is_addOption:e}},methods:{onAdd:function(){this.newIntegral.user_id&&""!==this.newIntegral.user_id?this.newIntegral.is_add&&""!==this.newIntegral.is_add?this.newIntegral.value&&""!==this.newIntegral.value?this.newIntegral.desc&&""!==this.newIntegral.desc?this.$emit("subAdd"):this.$message("请填写描述"):this.$message("请填写积分值"):this.$message("请选择积分类型"):this.$message("请填写用户ID")},showUserList:function(){this.$emit("showUserList")}}},r={render:function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("el-dialog",{attrs:{visible:e.newIntegral.show,width:"800px",center:"",title:"积分变更"},on:{"update:visible":function(t){e.$set(e.newIntegral,"show",t)}}},[s("el-form",{attrs:{"label-width":"150px"}},[s("el-form-item",{attrs:{label:"用户ID"}},[s("el-row",{attrs:{gutter:20}},[s("el-col",{attrs:{span:14}},[s("el-input",{model:{value:e.newIntegral.user_id,callback:function(t){e.$set(e.newIntegral,"user_id",t)},expression:"newIntegral.user_id"}})],1),e._v(" "),s("el-col",{attrs:{span:6}},[s("el-button",{on:{click:e.showUserList}},[e._v("查询")])],1)],1)],1),e._v(" "),s("el-form-item",{attrs:{label:"积分类型"}},[s("el-row",{attrs:{gutter:20}},[s("el-col",{attrs:{span:20}},[s("el-select",{model:{value:e.newIntegral.is_add,callback:function(t){e.$set(e.newIntegral,"is_add",t)},expression:"newIntegral.is_add"}},e._l(e.is_addOption,function(e,t){return s("el-option",{key:t,attrs:{label:e.value,value:e.id}})}))],1)],1)],1),e._v(" "),s("el-form-item",{attrs:{label:"积分值"}},[s("el-row",{attrs:{gutter:20}},[s("el-col",{attrs:{span:20}},[s("el-input-number",{model:{value:e.newIntegral.value,callback:function(t){e.$set(e.newIntegral,"value",t)},expression:"newIntegral.value"}})],1)],1)],1),e._v(" "),s("el-form-item",{attrs:{label:"描述【用户可见】"}},[s("el-row",{attrs:{gutter:20}},[s("el-col",{attrs:{span:20}},[s("el-input",{model:{value:e.newIntegral.desc,callback:function(t){e.$set(e.newIntegral,"desc",t)},expression:"newIntegral.desc"}})],1)],1)],1)],1),e._v(" "),s("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{on:{click:function(t){e.newIntegral.show=!1}}},[e._v("取 消")]),e._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:e.onAdd}},[e._v("确 定")])],1)],1)},staticRenderFns:[]};var o=s("VU/8")(l,r,!1,function(e){s("Cao/")},"data-v-96d950e0",null).exports,u={name:"userList",props:["show"],components:{page:a.a},data:function(){return{userList:[],form:{userId:"",nickName:"",mobile:""},nowPage:1,limit:5,total:0,multipleSelection:null}},methods:{handleCurrentChange:function(e){e&&(this.multipleSelection=e.user_id)},onAdd:function(){this.multipleSelection?this.$emit("addUser",this.multipleSelection):this.$message("请点击选择用户")},onPageChange:function(e){this.nowPage=e,this.getUserList()},onSizeChange:function(e){this.limit=e,this.nowPage=1,this.getUserList()},getUserList:function(){var e=this,t={page:this.nowPage,limit:this.limit};this.form.userId&&(t.user_id=this.form.userId),this.form.nickName&&(t.nickname=this.form.nickName),this.form.mobile&&(t.mobile=this.form.mobile),Object(i._69)(t).then(function(t){e.userList=t.list,e.total=t.total})},initPage:function(){this.multipleSelection=null,this.form={userId:"",nickName:"",mobile:""},this.getUserList()}},watch:{"show.show":function(e){e&&this.initPage()}}},c={render:function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("el-dialog",{attrs:{visible:e.show.show,width:"700px",center:"",title:"用户列表"},on:{"update:visible":function(t){e.$set(e.show,"show",t)}}},[s("el-form",{attrs:{"label-width":"40px",inline:""}},[s("el-form-item",{attrs:{label:"ID"}},[s("el-input",{model:{value:e.form.userId,callback:function(t){e.$set(e.form,"userId",t)},expression:"form.userId"}})],1),e._v(" "),s("el-form-item",{attrs:{label:"昵称"}},[s("el-input",{model:{value:e.form.nickName,callback:function(t){e.$set(e.form,"nickName",t)},expression:"form.nickName"}})],1),e._v(" "),s("el-form-item",{attrs:{label:"电话"}},[s("el-input",{model:{value:e.form.mobile,callback:function(t){e.$set(e.form,"mobile",t)},expression:"form.mobile"}})],1),e._v(" "),s("el-form-item",[s("el-button",{staticStyle:{float:"right"},attrs:{type:"primary",plain:""},on:{click:e.getUserList}},[e._v("搜索")])],1)],1),e._v(" "),s("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:e.userList,"highlight-current-row":""},on:{"current-change":e.handleCurrentChange}},[s("el-table-column",{attrs:{className:"f-c",label:"用户"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("img",{staticStyle:{"margin-right":"5px",width:"50px",height:"50px","border-radius":"50px"},attrs:{src:t.row.avatar}}),e._v(e._s(t.row.nickname)+"(ID:"+e._s(t.row.user_id)+")\n ")]}}])}),e._v(" "),s("el-table-column",{attrs:{prop:"mobile",label:"手机号"}})],1),e._v(" "),s("page",{attrs:{nowPage:e.nowPage,total:e.total,limit:e.limit},on:{pageChange:e.onPageChange,sizeChange:e.onSizeChange}}),e._v(" "),s("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{on:{click:function(t){e.show.show=!1}}},[e._v("取 消")]),e._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:e.onAdd}},[e._v("确 定")])],1)],1)},staticRenderFns:[]};var d=s("VU/8")(u,c,!1,function(e){s("fjV/")},"data-v-9d6936ca",null).exports,m={name:"index",components:{page:a.a,newIntegral:o,userListPage:d},data:function(){var e=[];for(var t in n.i)e.push({id:t,value:n.i[t]});var s=[];for(var i in n.h)s.push({id:i,value:n.h[i]});return{list:[],total:0,newIntegral:{show:!1,user_id:"",is_add:"",value:"",desc:""},is_addOption:e,sourceOption:s,limit:10,userListShow:{show:!1},nowPage:1,form:{is_add:"1",source:"",user_id:"",mobile:"",nickname:""}}},mounted:function(){this.initPage()},filters:{INTEGRALTYPE:function(e){return n.i[e]},INTEGRALFUN:function(e){return n.h[e]}},methods:{subAdd:function(){var e=this,t={user_id:this.newIntegral.user_id,is_add:this.newIntegral.is_add,value:this.newIntegral.value,desc:this.newIntegral.desc};Object(i.v)(t).then(function(t){e.getList(),e.newIntegral.show=!1})},showUserList:function(){this.userListShow.show=!0},addUser:function(e){this.userListShow.show=!1,this.newIntegral.user_id=e},changeUserList:function(){},addIntegral:function(){this.newIntegral={show:!0,user_id:"",is_add:"",value:"",desc:""}},initPage:function(){this.form={is_add:"1",source:"",user_id:"",mobile:"",nickname:""},this.getList()},onPageChange:function(e){this.nowPage=e,this.getList()},onSizeChange:function(e){this.limit=e,this.nowPage=1,this.getList()},getList:function(){var e=this,t={limit:this.limit,page:this.nowPage};""!==this.form.is_add&&(t.is_add=this.form.is_add),""!==this.form.source&&(t.source=this.form.source),""!==this.form.user_id&&(t.user_id=this.form.user_id),""!==this.form.mobile&&(t.mobile=this.form.mobile),""!==this.form.nickname&&(t.nickname=this.form.nickname),Object(i._38)(t).then(function(t){e.list=t.list,e.total=t.total})}}},f={render:function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"integral-page"},[s("el-form",{ref:"searchFrom",staticStyle:{"padding-top":"20px",background:"white"},attrs:{model:e.form,"label-width":"100px",inline:""}},[s("el-form-item",{attrs:{label:"昵称"}},[s("el-input",{model:{value:e.form.nickname,callback:function(t){e.$set(e.form,"nickname",t)},expression:"form.nickname"}})],1),e._v(" "),s("el-form-item",{attrs:{label:"用户ID"}},[s("el-input",{model:{value:e.form.user_id,callback:function(t){e.$set(e.form,"user_id",t)},expression:"form.user_id"}})],1),e._v(" "),s("el-form-item",{attrs:{label:"手机号"}},[s("el-input",{model:{value:e.form.mobile,callback:function(t){e.$set(e.form,"mobile",t)},expression:"form.mobile"}})],1),e._v(" "),s("el-form-item",{attrs:{label:"获/抵方式"}},[s("el-select",{attrs:{clearable:""},on:{change:e.getList},model:{value:e.form.source,callback:function(t){e.$set(e.form,"source",t)},expression:"form.source"}},e._l(e.sourceOption,function(e,t){return s("el-option",{key:t,attrs:{label:e.value,value:e.id}})}))],1),e._v(" "),s("el-form-item",[s("el-button",{attrs:{type:"primary",plain:""},on:{click:e.getList}},[e._v("搜索")])],1)],1),e._v(" "),e.$store.state.readonly?e._e():s("div",{staticClass:"new-block"},[s("el-button",{attrs:{type:"success",plain:""},on:{click:e.addIntegral}},[e._v("变更用户积分")])],1),e._v(" "),s("el-tabs",{staticStyle:{background:"white","padding-top":"10px"},attrs:{type:"card"},on:{"tab-click":e.getList},model:{value:e.form.is_add,callback:function(t){e.$set(e.form,"is_add",t)},expression:"form.is_add"}},[s("el-tab-pane",{attrs:{label:"添加积分",name:"1"}}),e._v(" "),s("el-tab-pane",{attrs:{label:"减少积分",name:"0"}})],1),e._v(" "),s("el-table",{staticStyle:{width:"100%"},attrs:{data:e.list}},[s("el-table-column",{attrs:{width:"220",className:"f-c",label:"用户"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("img",{staticClass:"avatar",attrs:{src:t.row.avatar}}),e._v(" "+e._s(t.row.nickname)+"(ID:"+e._s(t.row.user_id)+")"),s("br"),e._v("手机:"+e._s(t.row.mobile)+"\n ")]}}])}),e._v(" "),s("el-table-column",{attrs:{label:"来源"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("INTEGRALFUN")(t.row.source))+"\n ")]}}])}),e._v(" "),s("el-table-column",{attrs:{prop:"desc",label:"积分变更描述"}}),e._v(" "),s("el-table-column",{attrs:{label:"变更积分值"},scopedSlots:e._u([{key:"default",fn:function(t){return[1===t.row.is_add?s("span",{staticStyle:{color:"green"}},[e._v("+"+e._s(t.row.value))]):e._e(),e._v(" "),0===t.row.is_add?s("span",{staticStyle:{color:"red"}},[e._v("-"+e._s(t.row.value))]):e._e()]}}])}),e._v(" "),s("el-table-column",{attrs:{prop:"last_value",label:"变更后积分值"}}),e._v(" "),s("el-table-column",{attrs:{prop:"created_at",label:"创建时间"}})],1),e._v(" "),s("page",{attrs:{nowPage:e.nowPage,total:e.total,limit:e.limit},on:{pageChange:e.onPageChange,sizeChange:e.onSizeChange}}),e._v(" "),s("new-integral",{attrs:{newIntegral:e.newIntegral},on:{subAdd:e.subAdd,showUserList:e.showUserList}}),e._v(" "),s("user-list-page",{attrs:{show:e.userListShow},on:{addUser:e.addUser}})],1)},staticRenderFns:[]};var h=s("VU/8")(m,f,!1,function(e){s("LU4X"),s("BK22")},"data-v-386b3993",null);t.default=h.exports},"fjV/":function(e,t){}});
\ No newline at end of file
webpackJsonp([12],{"/ubI":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=o("CCn6"),i=o("kmJW"),a=o("CfzE"),r={name:"manageDialog",props:["manageObj"],data:function(){return{sourceTypeList:[],addTypeObj:{title:"来源码类别",show:!1},form:{value:"",desc:"",id:""},rules:{value:[{required:!0,message:"请输入类别",trigger:"change"}],desc:[{message:"请输入描述",trigger:"change"}]}}},methods:{sub:function(){var e=this,t={value:this.form.value,key:"code_rule_type"};this.form.desc&&(t.desc=this.form.desc),this.form.id?this.$refs.form.validate(function(o){o&&e.$confirm("此操作将修改来源码?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(s._99)(e.form.id,t).then(function(t){e.$message({type:"success",message:"修改成功!"}),e.addTypeObj.show=!1,e.sourceTypeOptions()})})}):this.$refs.form.validate(function(o){o&&e.$confirm("此操作将新增来源码?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(s._85)(t).then(function(t){e.$message({type:"success",message:"新增成功!"}),e.addTypeObj.show=!1,e.sourceTypeOptions()})})})},add:function(){this.form.id="",this.form.value="",this.form.desc="",this.addTypeObj.show=!0},sourceTypeOptions:function(){var e=this;Object(s._30)({limit:2e3,page:1,key:"code_rule_type"}).then(function(t){e.sourceTypeList=t.list})},del:function(e){var t=this;this.$confirm("此操作将删除该记录?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(s.P)(e.id).then(function(e){t.$message({type:"success",message:"删除成功!"}),t.sourceTypeOptions()})})},edit:function(e){var t=this;Object(s._29)(e.id).then(function(e){t.addTypeObj.show=!0,t.form.id=e.id,t.form.value=e.value,t.form.desc=e.desc})}},mounted:function(){},watch:{"manageObj.show":function(e){e?this.sourceTypeOptions():this.$emit("reflash")}}},l={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",[o("el-dialog",{attrs:{title:e.manageObj.title,center:"","append-to-body":"",visible:e.manageObj.show,width:"800px"},on:{"update:visible":function(t){e.$set(e.manageObj,"show",t)}}},[o("div",{staticClass:"head clear-both"},[e.$store.state.readonly?e._e():o("el-button",{staticStyle:{float:"right"},attrs:{plain:"",type:"primary"},on:{click:e.add}},[e._v("新增来源码类别")])],1),e._v(" "),o("el-table",{staticStyle:{width:"100%"},attrs:{data:e.sourceTypeList}},[o("el-table-column",{attrs:{prop:"desc",label:"描述"}}),e._v(" "),o("el-table-column",{attrs:{prop:"value",label:"类别"}}),e._v(" "),o("el-table-column",{attrs:{prop:"created_at",label:"创建时间"}}),e._v(" "),e.$store.state.readonly?e._e():o("el-table-column",{attrs:{width:"250",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("el-button",{attrs:{size:"mini",plain:"",type:"warning"},on:{click:function(o){e.edit(t.row)}}},[e._v("\r\n 编辑\r\n ")]),e._v(" "),e.$store.state.deletePermission?o("el-button",{attrs:{size:"mini",plain:"",type:"danger"},on:{click:function(o){e.del(t.row)}}},[e._v("\r\n 删除\r\n ")]):e._e()]}}])})],1)],1),e._v(" "),o("el-dialog",{attrs:{title:e.addTypeObj.title,center:"","append-to-body":"",visible:e.addTypeObj.show,width:"800px"},on:{"update:visible":function(t){e.$set(e.addTypeObj,"show",t)}}},[o("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules}},[o("el-row",[o("el-col",{attrs:{span:4}},[o("label",[e._v("来源码类别")])]),e._v(" "),o("el-col",{attrs:{span:8}},[o("el-form-item",{attrs:{prop:"value"}},[o("el-input",{model:{value:e.form.value,callback:function(t){e.$set(e.form,"value",t)},expression:"form.value"}})],1)],1)],1),e._v(" "),o("el-row",[o("el-col",{attrs:{span:4}},[o("label",[e._v("描述")])]),e._v(" "),o("el-col",{attrs:{span:8}},[o("el-form-item",{attrs:{prop:"desc"}},[o("el-input",{attrs:{type:"textarea"},model:{value:e.form.desc,callback:function(t){e.$set(e.form,"desc",t)},expression:"form.desc"}})],1)],1)],1)],1),e._v(" "),o("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[o("el-button",{on:{click:function(t){e.addTypeObj.show=!1}}},[e._v("取 消")]),e._v(" "),o("el-button",{attrs:{type:"primary"},on:{click:e.sub}},[e._v("确 定")])],1)],1)],1)},staticRenderFns:[]};var n=o("VU/8")(r,l,!1,function(e){o("4uvB")},"data-v-2a5d3fc1",null).exports,c={components:{page:i.a,userPage:i.a,chooseGoodDialog:a.a,manageDialog:n},data:function(){return{nowPage:1,total:0,limit:10,sourceList:[],codeSelect:[{value:"USER",label:"用户"},{value:"TEACHER",label:"老师"}],dialog:{title:"新增来源码",show:!1,rules:{title:[{required:!0,message:"请填写来源码名字",trigger:"change"}],code:[{required:!0,message:"请填写来源码类型",trigger:"change"}],type_id:[{required:!0,message:"请填写来源码类别",trigger:"change"}]},form:{id:"",title:"",code:"",is_withdraw:0,desc:"",no_cash_user:"",type_id:""}},userDialog:{total:0,limit:10,nowPage:1,show:!1},userList:[],searchUserFrom:{type_id:"",title:"",code:""},multipleSelection:[],noCashUserDialog:{total:0,limit:200,nowPage:1,show:!1},noCashUserList:[],chooseGoodDialogObj:{show:!1,code:""},manageObj:{show:!1,title:"来源码类别管理"},searchFrom:{},codeType:[]}},filters:{sourceType:function(e){return"user"===e.toLowerCase()?"用户":"teacher"===e.toLowerCase()?"老师":e},isWithdraw:function(e){return 1===e?"是":"否"}},created:function(){this.getList()},methods:{getList:function(){var e=this,t={limit:this.limit,page:this.nowPage};this.searchFrom.type_id&&(t.type_id=this.searchFrom.type_id),this.searchFrom.title&&(t.title=this.searchFrom.title),this.searchFrom.code&&(t.code=this.searchFrom.code),Object(s._59)(t).then(function(t){t&&(e.sourceList=t.list?t.list:[],e.total=t.total)})},onPageChange:function(e){this.nowPage=e,this.getList()},onSizeChange:function(e){this.nowPage=1,this.limit=e,this.getList()},onSelectUser:function(){this.userDialog.show=!0,this.dialog.form.no_cash_user?this.multipleSelection=this.dialog.form.no_cash_user.split(","):this.multipleSelection=[],this.getUser()},onUserPageChange:function(e){this.userDialog.nowPage=e,this.getUser()},onUserSizeChange:function(e){this.userDialog.nowPage=1,this.userDialog.limit=e,this.getUser()},handleSelectionChange:function(e){this.multipleSelection=e},onConfirm:function(){var e=this.multipleSelection;if(0===e.length);else{var t=[];e.forEach(function(e){t.push(e.user_id)});var o=t;this.dialog.form.no_cash_user&&(o=t.concat(this.stringToInt(this.dialog.form.no_cash_user.split(","))));var s=this.dedupe(o);this.dialog.form.no_cash_user=s.join(","),this.userDialog.show=!1}},stringToInt:function(e){var t=e||[];return t=t.map(function(e){return parseInt(e,10)})},dedupe:function(e){return Array.from(new Set(e))},getUser:function(){var e=this,t={page:this.userDialog.nowPage,limit:this.userDialog.limit};this.searchUserFrom.userId&&(t.user_id=this.searchUserFrom.userId),this.searchUserFrom.nickName&&(t.nickname=this.searchUserFrom.nickName),this.searchUserFrom.mobile&&(t.mobile=this.searchUserFrom.mobile),Object(s._69)(t).then(function(t){e.userList=t.list,e.userDialog.total=t.total})},getNoCashUser:function(e){var t=this,o={page:this.noCashUserDialog.nowPage,limit:this.noCashUserDialog.limit};e&&(o.user_id=e),Object(s._69)(o).then(function(e){t.noCashUserList=e.list,t.noCashUserDialog.total=e.total,t.noCashUserDialog.show=!0})},edit:function(e){this.dialog.show=!0,this.dialog.form.id=e.id,this.dialog.title="编辑来源码",this.dialog.form.title=e.title,this.dialog.form.code=e.code,this.dialog.form.type_id=e.type_id,this.dialog.form.is_withdraw=1===e.is_withdraw,this.dialog.form.desc=e.desc,this.dialog.form.no_cash_user=e.no_cash_user},add:function(){this.dialog.show=!0,this.dialog.form.id="",this.dialog.title="新增来源码",this.dialog.form.title="",this.dialog.form.code="USER",this.dialog.form.type_id="",this.dialog.form.is_withdraw=!1,this.dialog.form.desc="",this.dialog.form.no_cash_user=""},del:function(e){var t=this;this.$confirm("此操作将删除该来源码?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(s.N)(e.id).then(function(e){t.$message({type:"success",message:"删除成功!"}),t.getList()})})},sub:function(){var e=this;this.$refs.form.validate(function(t){if(t){var o=e.dialog;if(o.form.id){var i={title:o.form.title,code:o.form.code,type_id:o.form.type_id,is_withdraw:o.form.is_withdraw?1:0,desc:o.form.desc};o.form.no_cash_user&&(i.no_cash_user=o.form.no_cash_user),e.$confirm("此操作将修改该来源码?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(s._107)(o.form.id,i).then(function(){e.$message({type:"success",message:"修改成功!"}),o.show=!1,e.getList()})})}else{var a={title:o.form.title,code:o.form.code,type_id:o.form.type_id,no_cash_user:o.form.no_cash_user,is_withdraw:o.form.is_withdraw?1:0,desc:o.form.desc};e.$confirm("此操作将添加来源码?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(s.o)(a).then(function(){e.$message({type:"success",message:"添加成功!"}),o.show=!1,e.getList()})})}}})},goToOrder:function(e){this.$router.push("/order?code="+e)},changeShow:function(){this.chooseGoodDialogObj.show=!1,this.chooseGoodDialogObj.code=""},createInviteLink:function(e){this.chooseGoodDialogObj.show=!0,this.chooseGoodDialogObj.code="CC-"+e},sourceOptions:function(){var e=this;Object(s._30)({limit:2e3,page:1,key:"code_rule_type"}).then(function(t){e.codeType=t.list})},changeList:function(){this.sourceOptions(),this.getList()}},mounted:function(){this.sourceOptions()}},u={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"menu"},[o("el-form",{ref:"searchFrom",attrs:{model:e.searchFrom,"label-width":"100px",inline:""}},[o("el-form-item",{attrs:{label:"名字"}},[o("el-input",{model:{value:e.searchFrom.title,callback:function(t){e.$set(e.searchFrom,"title",t)},expression:"searchFrom.title"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"来源CODE"}},[o("el-input",{model:{value:e.searchFrom.code,callback:function(t){e.$set(e.searchFrom,"code",t)},expression:"searchFrom.code"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"来源码类别"}},[o("el-select",{attrs:{placeholder:"请选择",clearable:""},on:{change:e.getList},model:{value:e.searchFrom.type_id,callback:function(t){e.$set(e.searchFrom,"type_id",t)},expression:"searchFrom.type_id"}},e._l(e.codeType,function(e,t){return o("el-option",{key:t,attrs:{label:e.value,value:e.id}})}))],1),e._v(" "),o("el-form-item",[o("el-button",{attrs:{type:"primary",plain:""},on:{click:e.getList}},[e._v("搜索")])],1)],1),e._v(" "),o("div",{staticClass:"head clear-both"},[e.$store.state.readonly?e._e():o("el-button",{staticStyle:{float:"right"},attrs:{plain:"",type:"success"},on:{click:e.add}},[e._v("新增来源码")]),e._v(" "),e.$store.state.orderRefund?o("el-button",{staticStyle:{float:"right","margin-right":"30px"},attrs:{plain:"",type:"primary"},on:{click:function(t){e.manageObj.show=!0}}},[e._v("来源码类别管理")]):e._e()],1),e._v(" "),o("el-table",{staticStyle:{width:"100%"},attrs:{data:e.sourceList}},[o("el-table-column",{attrs:{prop:"title",label:"名字"}}),e._v(" "),o("el-table-column",{attrs:{prop:"code",label:"来源CODE"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("a",{attrs:{href:"javascript:void(0);"},on:{click:function(o){e.goToOrder(t.row.code)}}},[e._v(e._s(t.row.code))])]}}])}),e._v(" "),o("el-table-column",{attrs:{label:"是否可提现"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("isWithdraw")(t.row.is_withdraw))+"\n ")]}}])}),e._v(" "),o("el-table-column",{attrs:{prop:"no_cash_user",label:"不可提现用户"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("a",{attrs:{href:"javascript:void(0);"},on:{click:function(o){e.getNoCashUser(t.row.no_cash_user)}}},[e._v(e._s(t.row.no_cash_user))])]}}])}),e._v(" "),o("el-table-column",{attrs:{prop:"type_id",label:"来源码类别"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.type_name)+"\n ")]}}])}),e._v(" "),o("el-table-column",{attrs:{prop:"desc",label:"备注"}}),e._v(" "),o("el-table-column",{attrs:{prop:"created_at",label:"创建时间",sortable:""}}),e._v(" "),o("el-table-column",{attrs:{label:"操作",width:"250"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.$store.state.readonly?e._e():o("el-button",{attrs:{size:"mini",plain:"",type:"primary"},on:{click:function(o){e.edit(t.row)}}},[e._v("\n 编辑\n ")]),e._v(" "),!e.$store.state.readonly&&e.$store.state.deletePermission?o("el-button",{attrs:{size:"mini",type:"danger",plain:""},on:{click:function(o){e.del(t.row)}}},[e._v("\n 删除\n ")]):e._e(),e._v(" "),o("el-button",{attrs:{size:"mini",plain:"",type:"primary"},on:{click:function(o){e.createInviteLink(t.row.code)}}},[e._v("\n 复制链接\n ")])]}}])})],1),e._v(" "),o("page",{attrs:{nowPage:e.nowPage,total:e.total,limit:e.limit},on:{pageChange:e.onPageChange,sizeChange:e.onSizeChange}}),e._v(" "),o("el-dialog",{attrs:{title:e.dialog.title,center:"","append-to-body":"",visible:e.dialog.show,width:"50%"},on:{"update:visible":function(t){e.$set(e.dialog,"show",t)}}},[o("el-form",{ref:"form",attrs:{rules:e.dialog.rules,model:e.dialog.form,"label-width":"120px"}},[o("el-form-item",{attrs:{label:"名字",prop:"title"}},[o("el-input",{model:{value:e.dialog.form.title,callback:function(t){e.$set(e.dialog.form,"title",t)},expression:"dialog.form.title"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"来源CODE",prop:"code"}},[o("el-input",{model:{value:e.dialog.form.code,callback:function(t){e.$set(e.dialog.form,"code",t)},expression:"dialog.form.code"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"来源码类别",prop:"type_id"}},[o("el-select",{attrs:{placeholder:"请选择",clearable:""},model:{value:e.dialog.form.type_id,callback:function(t){e.$set(e.dialog.form,"type_id",t)},expression:"dialog.form.type_id"}},e._l(e.codeType,function(e,t){return o("el-option",{key:t,attrs:{label:e.value,value:e.id}})}))],1),e._v(" "),o("el-form-item",{attrs:{label:"是否可提现"}},[o("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#eee"},model:{value:e.dialog.form.is_withdraw,callback:function(t){e.$set(e.dialog.form,"is_withdraw",t)},expression:"dialog.form.is_withdraw"}})],1),e._v(" "),o("el-row",[o("el-col",{attrs:{span:16}},[o("el-form-item",{attrs:{label:"不可提现用户ID"}},[o("el-input",{model:{value:e.dialog.form.no_cash_user,callback:function(t){e.$set(e.dialog.form,"no_cash_user",t)},expression:"dialog.form.no_cash_user"}})],1)],1),e._v(" "),o("el-col",{attrs:{span:6,offset:2}},[o("el-button",{attrs:{type:"primary"},on:{click:e.onSelectUser}},[e._v("选择用户")])],1)],1),e._v(" "),o("el-form-item",{attrs:{label:"备注"}},[o("el-input",{model:{value:e.dialog.form.desc,callback:function(t){e.$set(e.dialog.form,"desc",t)},expression:"dialog.form.desc"}})],1)],1),e._v(" "),o("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[o("el-button",{on:{click:function(t){e.dialog.show=!1}}},[e._v("取 消")]),e._v(" "),o("el-button",{attrs:{type:"primary"},on:{click:e.sub}},[e._v("确 定")])],1),e._v(" "),o("el-dialog",{attrs:{visible:e.userDialog.show,"append-to-body":""},on:{"update:visible":function(t){e.$set(e.userDialog,"show",t)}}},[o("el-form",{attrs:{"label-width":"90px"}},[o("el-row",[o("el-col",{attrs:{span:8}},[o("el-form-item",{attrs:{label:"ID"}},[o("el-input",{model:{value:e.searchUserFrom.userId,callback:function(t){e.$set(e.searchUserFrom,"userId",t)},expression:"searchUserFrom.userId"}})],1)],1),e._v(" "),o("el-col",{attrs:{span:8}},[o("el-form-item",{attrs:{label:"昵称"}},[o("el-input",{model:{value:e.searchUserFrom.nickName,callback:function(t){e.$set(e.searchUserFrom,"nickName",t)},expression:"searchUserFrom.nickName"}})],1)],1),e._v(" "),o("el-col",{attrs:{span:8}},[o("el-form-item",{attrs:{label:"电话"}},[o("el-input",{model:{value:e.searchUserFrom.mobile,callback:function(t){e.$set(e.searchUserFrom,"mobile",t)},expression:"searchUserFrom.mobile"}})],1)],1)],1),e._v(" "),o("el-row",[o("el-col",{attrs:{span:8,offset:16}},[o("el-form-item",[o("el-button",{staticStyle:{float:"right"},attrs:{type:"primary",plain:""},on:{click:e.getList}},[e._v("搜索")])],1)],1)],1)],1),e._v(" "),o("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:e.userList},on:{"selection-change":e.handleSelectionChange}},[o("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),o("el-table-column",{attrs:{className:"f-c",label:"用户"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("img",{staticStyle:{"margin-right":"5px",width:"50px",height:"50px","border-radius":"50px"},attrs:{src:t.row.avatar}}),e._v(e._s(t.row.nickname)+"(ID:"+e._s(t.row.user_id)+")\n ")]}}])}),e._v(" "),o("el-table-column",{attrs:{prop:"mobile",label:"手机号"}})],1),e._v(" "),o("user-page",{attrs:{total:e.userDialog.total,limit:e.userDialog.limit},on:{pageChange:e.onUserPageChange,sizeChange:e.onUserSizeChange}}),e._v(" "),o("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[o("el-button",{on:{click:function(t){e.userDialog.show=!1}}},[e._v("取 消")]),e._v(" "),o("el-button",{attrs:{type:"primary"},on:{click:e.onConfirm}},[e._v("确 定")])],1)],1)],1),e._v(" "),o("el-dialog",{attrs:{visible:e.noCashUserDialog.show,"append-to-body":""},on:{"update:visible":function(t){e.$set(e.noCashUserDialog,"show",t)}}},[o("el-table",{staticStyle:{width:"100%"},attrs:{data:e.noCashUserList}},[o("el-table-column",{attrs:{className:"f-c",label:"用户"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("img",{staticStyle:{"margin-right":"5px",width:"50px",height:"50px","border-radius":"50px"},attrs:{src:t.row.avatar}}),e._v(e._s(t.row.nickname)+"(ID:"+e._s(t.row.user_id)+")\n ")]}}])}),e._v(" "),o("el-table-column",{attrs:{prop:"mobile",label:"手机号"}})],1),e._v(" "),o("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[o("el-button",{on:{click:function(t){e.noCashUserDialog.show=!1}}},[e._v("确 定")])],1)],1),e._v(" "),o("choose-good-dialog",{attrs:{dialogObj:e.chooseGoodDialogObj},on:{changeShow:e.changeShow}}),e._v(" "),o("manage-dialog",{attrs:{manageObj:e.manageObj},on:{reflash:e.changeList}})],1)},staticRenderFns:[]};var d=o("VU/8")(c,u,!1,function(e){o("t1bz")},"data-v-3d3552b3",null);t.default=d.exports},"4uvB":function(e,t){},CfzE:function(e,t,o){"use strict";var s=o("CCn6"),i=o("kmJW"),a=o("+TkF"),r={name:"goodsList",props:["dialogObj"],data:function(){return{searchFrom:{name:"",goods_type:"",status:"1",course_id:""},goodsList:[],classList:[],total:0,nowPage:1,limit:10,show:!1,code:""}},components:{page:i.a},filters:{isOrNot:function(e){return a.n[e]},goodsType:function(e){return a.g[e]},lessonType:function(e){return a.o[e]},goodsStatus:function(e){return a.f[e]},goodsDesc:function(e){return JSON.parse(e).desc}},methods:{getList:function(){var e=this,t={limit:this.limit,page:this.nowPage};this.searchFrom.name&&(t.name=this.searchFrom.name),this.searchFrom.goods_type&&(t.goods_type=this.searchFrom.goods_type),this.searchFrom.course_id&&(t.course_id=this.searchFrom.course_id),this.searchFrom.status&&(t.status=this.searchFrom.status),this.searchFrom.current_price&&(t.current_price=100*this.searchFrom.current_price),Object(s._37)(t).then(function(t){e.goodsList=t.list,e.total=t.total})},getClassList:function(){var e=this;Object(s._40)({limit:200,page:1}).then(function(t){console.log(t),e.classList=t.list})},copyUrl:function(e){if(this.code){var t="https://wechat.changchangenglish.com/#/buyDetail?shopId="+e+"&invite_code="+this.code,o=document.createElement("input");o.value=t,document.body.appendChild(o),o.select(),document.execCommand("Copy"),this.$message({message:"已成功复制到剪切板",type:"success"}),o.remove(),this.$emit("changeShow")}},onPageChange:function(e){this.nowPage=e,this.getList()},onSizeChange:function(e){this.limit=e,this.nowPage=1,this.getList()},initDialog:function(){this.show=this.dialogObj.show,this.dialogObj.code&&(this.code=this.dialogObj.code)}},watch:{"dialogObj.show":function(e){e&&(this.initDialog(),this.getClassList(),this.getList())},show:function(e){this.$emit("changeShow",e)}}},l={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("el-dialog",{attrs:{title:"复制链接",visible:e.show,modal:!1,width:"80%"},on:{"update:visible":function(t){e.show=t}}},[o("el-form",{ref:"searchFrom",staticClass:"search-form",attrs:{model:e.searchFrom,"label-width":"100px",inline:""}},[o("el-form-item",{attrs:{label:"商品名称"}},[o("el-input",{model:{value:e.searchFrom.name,callback:function(t){e.$set(e.searchFrom,"name",t)},expression:"searchFrom.name"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"商品类型"}},[o("el-select",{attrs:{placeholder:"请选择"},on:{change:e.getList},model:{value:e.searchFrom.goods_type,callback:function(t){e.$set(e.searchFrom,"goods_type",t)},expression:"searchFrom.goods_type"}},[o("el-option",{attrs:{value:"",label:"请选择"}}),e._v(" "),o("el-option",{attrs:{label:"普通商品",value:1}}),e._v(" "),o("el-option",{attrs:{label:"团购商品",value:2}}),e._v(" "),o("el-option",{attrs:{label:"续课商品",value:3}}),e._v(" "),o("el-option",{attrs:{label:"优惠券商品",value:4}})],1)],1),e._v(" "),o("el-form-item",{attrs:{label:"课程"}},[o("el-select",{attrs:{placeholder:"请选择"},on:{change:e.getList},model:{value:e.searchFrom.course_id,callback:function(t){e.$set(e.searchFrom,"course_id",t)},expression:"searchFrom.course_id"}},[o("el-option",{attrs:{value:"",label:"请选择"}}),e._v(" "),e._l(e.classList,function(e,t){return o("el-option",{key:t,attrs:{label:e.title,value:e.id}})})],2)],1),e._v(" "),o("el-form-item",{attrs:{label:"商品现价/团购价","label-width":"120px"}},[o("el-input-number",{model:{value:e.searchFrom.current_price,callback:function(t){e.$set(e.searchFrom,"current_price",t)},expression:"searchFrom.current_price"}})],1),e._v(" "),o("el-form-item",[o("div",{staticClass:"search-btn-block"},[o("el-button",{attrs:{type:"primary",plain:"",icon:"el-icon-search"},on:{click:e.getList}},[e._v("搜索")])],1)])],1),e._v(" "),o("el-table",{staticStyle:{width:"100%"},attrs:{data:e.goodsList}},[o("el-table-column",{attrs:{prop:"id",width:"50px",label:"编号"}}),e._v(" "),o("el-table-column",{attrs:{prop:"name",label:"名称"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("router-link",{attrs:{to:{name:"periods",query:{goods_id:t.row.id}}}},[e._v("\n "+e._s(t.row.name)+"\n ")])]}}])}),e._v(" "),o("el-table-column",{attrs:{label:"商品类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("goodsType")(t.row.goods_type))+"\n ")]}}])}),e._v(" "),o("el-table-column",{attrs:{label:"商品原价/直购价"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.original_price/100)+"元\n ")]}}])}),e._v(" "),o("el-table-column",{attrs:{label:"商品现价/团购价"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.current_price/100)+"元\n ")]}}])}),e._v(" "),o("el-table-column",{attrs:{prop:"course_title",label:"课程名称"}}),e._v(" "),o("el-table-column",{attrs:{label:"课程类别"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("lessonType")(t.row.course_type))+"\n ")]}}])}),e._v(" "),o("el-table-column",{attrs:{label:"备注"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("goodsDesc")(t.row.desc))+"\n ")]}}])}),e._v(" "),o("el-table-column",{attrs:{width:"100",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("el-button",{attrs:{size:"mini",plain:"",type:"success"},on:{click:function(o){e.copyUrl(t.row.id)}}},[e._v("\n 复制链接\n ")])]}}])})],1),e._v(" "),o("page",{attrs:{total:e.total,limit:e.limit},on:{pageChange:e.onPageChange,sizeChange:e.onSizeChange}})],1)},staticRenderFns:[]};var n=o("VU/8")(r,l,!1,function(e){o("mgcB")},null,null);t.a=n.exports},mgcB:function(e,t){},t1bz:function(e,t){}});
\ No newline at end of file
webpackJsonp([13],{DTuX:function(e,t){},"R/i2":function(e,t){},jFLA:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=a("CCn6"),i=a("kmJW"),s={name:"detail",props:["dialogObj"],data:function(){return{userDetail:{},show:!1}},methods:{getDetail:function(){var e=this;this.dialogObj.id&&Object(l._68)(this.dialogObj.id).then(function(t){e.userDetail=t})},initDialog:function(){this.getDetail(),this.show=this.dialogObj.show}},watch:{"dialogObj.show":function(e){e&&(this.loading=!0,this.initDialog())},show:function(e){this.$emit("changeShow",e)}}},o={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:"用户详情",center:"",visible:e.dialogObj.show,width:"800px"},on:{"update:visible":function(t){e.$set(e.dialogObj,"show",t)}}},[a("el-row",{attrs:{align:"middle",type:"flex"}},[a("el-col",{attrs:{span:4}},[a("label",[e._v("头像")])]),e._v(" "),a("el-col",{attrs:{span:8}},[a("img",{attrs:{src:e.userDetail.avatar}})]),e._v(" "),a("el-col",{attrs:{span:4}},[a("label",[e._v("昵称")])]),e._v(" "),a("el-col",{attrs:{span:8}},[e._v(e._s(e.userDetail.nickname))])],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:4}},[a("label",[e._v("手机号")])]),e._v(" "),a("el-col",{attrs:{span:8}},[e._v(e._s(e.userDetail.mobile))]),e._v(" "),a("el-col",{attrs:{span:4}},[a("label",[e._v("用户ID")])]),e._v(" "),a("el-col",{attrs:{span:8}},[e._v(e._s(e.userDetail.user_id))])],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:4}},[a("label",[e._v("生日")])]),e._v(" "),a("el-col",{attrs:{span:8}},[e._v(e._s(e.userDetail.birthday))]),e._v(" "),a("el-col",{attrs:{span:4}},[a("label",[e._v("邀请类型")])]),e._v(" "),a("el-col",{attrs:{span:8}},[e._v(e._s(e.userDetail.invite_type))])],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:4}},[a("label",[e._v("等级")])]),e._v(" "),a("el-col",{attrs:{span:8}},[e._v(e._s(e.userDetail.level))]),e._v(" "),a("el-col",{attrs:{span:4}},[a("label",[e._v("邀请人ID")])]),e._v(" "),a("el-col",{attrs:{span:8}},[e._v(e._s(e.userDetail.invite_user_id))])],1),e._v(" "),a("el-row",{attrs:{align:"middle",type:"flex"}},[a("el-col",{attrs:{span:4}},[a("label",[e._v("邀请码")])]),e._v(" "),a("el-col",{attrs:{span:8}},[e._v("\n "+e._s(e.userDetail.invite_code)+"\n ")]),e._v(" "),a("el-col",{attrs:{span:4}},[a("label",[e._v("老师ID")])]),e._v(" "),a("el-col",{attrs:{span:8}},[e._v("\n "+e._s(e.userDetail.teacher_id)+"\n ")])],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:4}},[a("label",[e._v("注册时间")])]),e._v(" "),a("el-col",{attrs:{span:8}},[e._v(e._s(e.userDetail.created_at))]),e._v(" "),a("el-col",{attrs:{span:4}},[a("label",[e._v("最后登录")])]),e._v(" "),a("el-col",{attrs:{span:8}},[e._v(e._s(e.userDetail.last_login_at))])],1)],1)},staticRenderFns:[]};var r=a("VU/8")(s,o,!1,function(e){a("m1Nz")},"data-v-df4e0838",null).exports,n={props:["dialogObj"],data:function(){return{form:{id:"",teacher_id:""},teacherList:[]}},methods:{initPage:function(){var e=this;Object(l._65)().then(function(t){e.teacherList=t.list}),this.form={id:this.dialogObj.id,teacher_id:this.dialogObj.teacher_id?this.dialogObj.teacher_id:""}},onSave:function(){var e=this,t={teacher_id:this.form.teacher_id?this.form.teacher_id:0};Object(l.m)(this.form.id,t).then(function(t){e.$message({type:"success",message:"绑定成功!"}),e.$emit("reflash"),e.dialogObj.show=!1})}},watch:{"dialogObj.show":function(e){e&&this.initPage()}}},c={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:e.dialogObj.title,visible:e.dialogObj.show},on:{"update:visible":function(t){e.$set(e.dialogObj,"show",t)}}},[a("el-form",{ref:"form",attrs:{model:e.form,"label-width":"120px"}},[a("el-form-item",{attrs:{label:"老师"}},[a("el-select",{attrs:{placeholder:"请选择"},model:{value:e.form.teacher_id,callback:function(t){e.$set(e.form,"teacher_id",t)},expression:"form.teacher_id"}},e._l(e.teacherList,function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})}))],1)],1),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogObj.show=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.onSave}},[e._v("确 定")])],1)],1)},staticRenderFns:[]};var h=a("VU/8")(n,c,!1,function(e){a("xJtu")},"data-v-1712d2c2",null).exports,d={name:"index",data:function(){return{searchFrom:{nickName:"",mobile:"",level:"",userId:""},userList:[],total:0,nowPage:1,limit:10,showDetail:!1,showId:"",dialogObj:{show:!1,title:"绑定老师",id:0,teacher_id:0},dialogDetailObj:{show:!1,id:""},loading:!1}},components:{page:i.a,detailDialog:r,teacherDialog:h},mounted:function(){this.getUser()},methods:{onPageChange:function(e){this.nowPage=e,this.getUser()},onSizeChange:function(e){this.limit=e,this.nowPage=1,this.getUser()},getUser:function(){var e=this,t={page:this.nowPage,limit:this.limit};this.searchFrom.userId&&(t.user_id=this.searchFrom.userId),this.searchFrom.nickName&&(t.nickname=this.searchFrom.nickName),this.searchFrom.mobile&&(t.mobile=this.searchFrom.mobile),this.searchFrom.level&&(t.level=this.searchFrom.level),Object(l._69)(t).then(function(t){e.userList=t.list,e.total=t.total})},detail:function(e){this.dialogDetailObj={show:!0,id:e.user_id}},changeShow:function(e){this.dialogDetailObj.show=e},bindTeacher:function(e){this.dialogObj={show:!0,title:"绑定老师",id:e.user_id,teacher_id:e.teacher_id}},goToDetail:function(e){this.$router.push("/userDetail/"+e)},syncUser:function(){var e=this;this.loading=!0,Object(l._61)().then(function(t){e.loading=!1,e.$message({showClose:!0,message:"已更新"+t+"条用户数据",type:"success"})}).catch(function(){e.loading=!1})}}},u={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"user"},[a("el-form",{ref:"searchFrom",attrs:{model:e.searchFrom,"label-width":"80px",inline:""}},[a("el-form-item",{attrs:{label:"ID"}},[a("el-input",{model:{value:e.searchFrom.userId,callback:function(t){e.$set(e.searchFrom,"userId",t)},expression:"searchFrom.userId"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"昵称"}},[a("el-input",{model:{value:e.searchFrom.nickName,callback:function(t){e.$set(e.searchFrom,"nickName",t)},expression:"searchFrom.nickName"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"电话"}},[a("el-input",{model:{value:e.searchFrom.mobile,callback:function(t){e.$set(e.searchFrom,"mobile",t)},expression:"searchFrom.mobile"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"等级"}},[a("el-input",{model:{value:e.searchFrom.level,callback:function(t){e.$set(e.searchFrom,"level",t)},expression:"searchFrom.level"}})],1),e._v(" "),a("el-form-item",[a("div",{staticClass:"flexRow"},[a("el-button",{attrs:{type:"primary",plain:""},on:{click:e.getUser}},[e._v("搜索")]),e._v(" "),a("el-button",{attrs:{type:"success",plain:""},on:{click:e.syncUser}},[e._v("同步最新数据")])],1)])],1),e._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.userList}},[a("el-table-column",{attrs:{className:"f-c",label:"用户"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("img",{staticClass:"avatar",attrs:{src:t.row.avatar}}),e._v(e._s(t.row.nickname)+"(ID:"+e._s(t.row.user_id)+")\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"mobile",label:"手机号"}}),e._v(" "),a("el-table-column",{attrs:{prop:"created_at",label:"注册时间",sortable:""}}),e._v(" "),a("el-table-column",{attrs:{prop:"last_login_at",label:"最后登录时间",sortable:""}}),e._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{size:"mini",plain:"",type:"primary"},on:{click:function(a){e.goToDetail(t.row.user_id)}}},[e._v("\n 查看详情\n ")])]}}])})],1),e._v(" "),a("page",{attrs:{total:e.total,limit:e.limit},on:{pageChange:e.onPageChange,sizeChange:e.onSizeChange}}),e._v(" "),a("detail-dialog",{attrs:{dialogObj:e.dialogDetailObj},on:{changeShow:e.changeShow}}),e._v(" "),a("teacher-dialog",{attrs:{dialogObj:e.dialogObj},on:{reflash:e.getUser}})],1)},staticRenderFns:[]};var _=a("VU/8")(d,u,!1,function(e){a("R/i2"),a("DTuX")},"data-v-68d9ccde",null);t.default=_.exports},m1Nz:function(e,t){},xJtu:function(e,t){}});
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
webpackJsonp([20],{"0gIA":function(t,e){},Fmgy:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=a("CCn6"),o={props:["dialogObj"],data:function(){return{nowPage:1,total:0,limit:10,classList:[]}},components:{page:a("kmJW").a},methods:{onPageChange:function(t){this.nowPage=t,this.classListOption()},onSizeChange:function(t){this.limit=t,this.nowPage=1,this.classListOption()},classListOption:function(){var t=this;void 0==this.dialogObj.timeValue[0]&&(this.dialogObj.timeValue[0]=""),void 0==this.dialogObj.timeValue[1]&&(this.dialogObj.timeValue[1]="");var e={page:this.nowPage,limit:this.limit,start_at:this.dialogObj.timeValue[0],end_at:this.dialogObj.timeValue[1]};Object(l._62)(e,this.dialogObj.teacher_id).then(function(e){t.classList=e.list,t.total=e.total})}},watch:{"dialogObj.show":function(t){t&&this.classListOption()}}},r={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{title:t.dialogObj.title,visible:t.dialogObj.show},on:{"update:visible":function(e){t.$set(t.dialogObj,"show",e)}}},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.classList}},[a("el-table-column",{attrs:{label:"购买人",className:"f-c",width:"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("img",{staticClass:"avatar",attrs:{src:e.row.avatar}}),t._v(" "+t._s(e.row.nickname)),a("br"),t._v("(ID:"+t._s(e.row.user_id)+")\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"out_trade_no",label:"交易订单号"}}),t._v(" "),a("el-table-column",{attrs:{prop:"goods_name",label:"商品名字"}}),t._v(" "),a("el-table-column",{attrs:{prop:"money",label:"金额(元)"}}),t._v(" "),a("el-table-column",{attrs:{prop:"pay_at",label:"支付时间"}})],1),t._v(" "),a("page",{attrs:{nowPage:t.nowPage,total:t.total,limit:t.limit},on:{pageChange:t.onPageChange,sizeChange:t.onSizeChange}})],1)},staticRenderFns:[]};var s={name:"index",data:function(){var t=this;return{activeName:"first",firstList:[],secondList:[],searchFirstFrom:{dateValue:[]},today:{text:"今天",onClick:function(){t.searchFirstFrom.dateValue=[t.formatTime(new Date),t.formatTime(new Date)],t.searchSecondFrom.dateValue=[t.formatTime(new Date),t.formatTime(new Date)]}},yesterday:{text:"昨天",onClick:function(){var e=t.formatTime(new Date((new Date).getTime()-864e5));t.searchFirstFrom.dateValue=[e,e],t.searchSecondFrom.dateValue=[e,e]}},last30Day:{text:"过去30天",onClick:function(){var e=t.formatTime(new Date((new Date).getTime()-2592e6));t.searchFirstFrom.dateValue=[e,t.formatTime(new Date)],t.searchSecondFrom.dateValue=[e,t.formatTime(new Date)]}},searchSecondFrom:{dateValue:[]},dialogObj:{show:!1,title:"售卖课程",teacher_id:"",timeValue:[]}}},components:{classDialog:a("VU/8")(o,r,!1,function(t){a("jAlk"),a("0gIA")},"data-v-43828d16",null).exports},mounted:function(){this.defaultTime(),this.searchFirstPage()},methods:{sortMoney:function(t,e){return Number(t.total_money)-Number(e.total_money)},handleClick:function(t){"first"===t.name?this.searchFirstPage():this.searchSecondPage()},searchFirstPage:function(){var t=this,e={};this.searchFirstFrom.dateValue&&(e={start_at:this.searchFirstFrom.dateValue[0],end_at:this.searchFirstFrom.dateValue[1]}),Object(l._66)(e).then(function(e){t.firstList=e})},searchSecondPage:function(){var t=this,e={};this.searchSecondFrom.dateValue&&(e={start_at:this.searchSecondFrom.dateValue[0],end_at:this.searchSecondFrom.dateValue[1]}),Object(l._63)(e).then(function(e){t.secondList=e})},formatTime:function(t){var e=t.getFullYear(),a=t.getMonth()+1;a<10&&(a="0"+a);var l=t.getDate();return l<10&&(l="0"+l),e+"-"+a+"-"+l},defaultTime:function(){var t=new Date,e=t.getFullYear(),a=t.getMonth()+1;a<10&&(a="0"+a);var l=t.getDate();l<10&&(l="0"+l);var o=e+"-"+a+"-01",r=e+"-"+a+"-"+l;this.searchFirstFrom.dateValue=[o,r],this.searchSecondFrom.dateValue=[o,r]},nameClick:function(t,e){this.dialogObj.teacher_id=t.tid,this.dialogObj.timeValue=void 0!=e?e:[t.cur_date,t.cur_date],this.dialogObj.show=!0}}},n={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("h2",{staticClass:"title"},[t._v("班主任业绩排行")]),t._v(" "),a("el-tabs",{attrs:{type:"card"},on:{"tab-click":t.handleClick},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"业绩总排行",name:"first"}},[a("el-form",{ref:"searchFirstFrom",attrs:{inline:"",model:t.searchFirstFrom,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"起止日期"}},[a("el-date-picker",{attrs:{"unlink-panels":"",type:"daterange","picker-options":{shortcuts:[t.today,t.yesterday,t.last30Day]},"value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:t.searchFirstPage},model:{value:t.searchFirstFrom.dateValue,callback:function(e){t.$set(t.searchFirstFrom,"dateValue",e)},expression:"searchFirstFrom.dateValue"}})],1),t._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-button",{attrs:{type:"primary"},on:{click:function(e){t.searchFirstPage()}}},[t._v("\n 搜索\n ")])],1)],1),t._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.firstList}},[a("el-table-column",{attrs:{label:"班主任姓名"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){t.nameClick(e.row,t.searchFirstFrom.dateValue)}}},[t._v("\n "+t._s(e.row.teacher_name)+"\n ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"total_money",label:"销售额","sort-method":t.sortMoney,sortable:!0}}),t._v(" "),a("el-table-column",{attrs:{prop:"three_month",label:"季课",sortable:""}}),t._v(" "),a("el-table-column",{attrs:{prop:"one_year",label:"年课",sortable:""}}),t._v(" "),a("el-table-column",{attrs:{prop:"two_year",label:"2年课",sortable:""}})],1)],1),t._v(" "),a("el-tab-pane",{attrs:{label:"业绩按天排行",name:"second"}},[a("el-form",{ref:"searchSecondFrom",attrs:{inline:"",model:t.searchSecondFrom,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"起止日期"}},[a("el-date-picker",{attrs:{"unlink-panels":"",type:"daterange","value-format":"yyyy-MM-dd","picker-options":{shortcuts:[t.today,t.yesterday,t.last30Day]},"range-separator":"至",shortcuts:[],"start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:t.searchSecondPage},model:{value:t.searchSecondFrom.dateValue,callback:function(e){t.$set(t.searchSecondFrom,"dateValue",e)},expression:"searchSecondFrom.dateValue"}})],1),t._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-button",{attrs:{type:"primary"},on:{click:function(e){t.searchSecondPage()}}},[t._v("\n 搜索\n ")])],1)],1),t._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.secondList}},[a("el-table-column",{attrs:{prop:"cur_date",label:"时间",sortable:""}}),t._v(" "),a("el-table-column",{attrs:{label:"班主任姓名"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){t.nameClick(e.row)}}},[t._v("\n "+t._s(e.row.teacher_name)+"\n ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"total_money",label:"销售额","sort-method":t.sortMoney,sortable:!0}}),t._v(" "),a("el-table-column",{attrs:{prop:"three_month",label:"季课",sortable:""}}),t._v(" "),a("el-table-column",{attrs:{prop:"one_year",label:"年课",sortable:""}}),t._v(" "),a("el-table-column",{attrs:{prop:"two_year",label:"2年课",sortable:""}})],1)],1)],1),t._v(" "),a("class-dialog",{attrs:{dialogObj:t.dialogObj}})],1)},staticRenderFns:[]};var i=a("VU/8")(s,n,!1,function(t){a("oE26")},"data-v-fd690186",null);e.default=i.exports},jAlk:function(t,e){},oE26:function(t,e){}});
\ No newline at end of file
webpackJsonp([4],{"/RlY":function(e,t){},"2qmY":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=i("CCn6"),r=i("kmJW"),o=i("P0f4"),s=i("xGts"),n={name:"dialogObj",props:["dialogObj"],data:function(){return{}},methods:{handlerAddressChange:function(e){if(e.province&&e.city&&e.district){this.dialogObj.detail=e.detail,this.dialogObj.province=e.province,this.dialogObj.city=e.city,this.dialogObj.receive_mobile=e.mobile,this.dialogObj.receive_name=e.name;var t=s.a.filter(function(t){return t.value===e.province}),i=t[0].children.filter(function(t){return t.value===e.city}),a=i[0].children.filter(function(t){return t.value===e.district});this.dialogObj.province_name=t[0].label,this.dialogObj.city_name=i[0].label,this.dialogObj.district_name=a.length>0?a[0].label:i[0].children[0].label,this.dialogObj.district=a.length>0?a[0].value:i[0].children[0].value}},saveAddress:function(){var e=this;this.$confirm("确定保存?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){var t={province_id:e.dialogObj.province,province_name:e.dialogObj.province_name,city_id:e.dialogObj.city,city:e.dialogObj.city_name,area:e.dialogObj.district_name,area_id:e.dialogObj.district,address:e.dialogObj.detail,receive_name:e.dialogObj.receive_name,receive_mobile:e.dialogObj.receive_mobile};Object(a.T)(e.dialogObj.id,t).then(function(t){e.$message({type:"success",message:"修改成功"}),e.dialogObj.show=!1,e.$emit("reflash")})})}},components:{vueAddress:o.a},mounted:function(){}},l={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{attrs:{title:"编辑收货地址",center:"","append-to-body":"",visible:e.dialogObj.show,width:"800px"},on:{"update:visible":function(t){e.$set(e.dialogObj,"show",t)}}},[i("vue-address",{attrs:{province:e.dialogObj.province,city:e.dialogObj.city,district:e.dialogObj.district,detail:e.dialogObj.detail,mobile:e.dialogObj.receive_mobile,name:e.dialogObj.receive_name},on:{change:e.handlerAddressChange}}),e._v(" "),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(t){e.dialogObj.show=!1}}},[e._v("取 消")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.saveAddress}},[e._v("保 存")])],1)],1)},staticRenderFns:[]};var c=i("VU/8")(n,l,!1,function(e){i("SGEf")},"data-v-6c76e69e",null).exports,d=i("O6Rd"),u={name:"dialogObj",props:["dialogObj"],data:function(){return{show:!1,id:"",loading:!0,form:{money:0,refund_type:1,desc:""},rules:{money:[{required:!0,message:"请输入退款金额",trigger:"change"}],desc:[{required:!0,message:"请输入退款原因",trigger:"change"}]}}},methods:{save:function(){var e=this;this.$confirm("确定保存?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){e.dialogObj.id&&e.$refs.form.validate(function(t){if(t){var i={refund_money:100*parseFloat(e.form.money),desc:e.form.desc,refund_type:e.form.refund_type};console.log(i),Object(a._84)(e.dialogObj.id,i).then(function(t){e.$message({type:"success",message:"退款成功!"}),e.$emit("reflash"),e.show=!1})}})})},initDialog:function(){this.show=this.dialogObj.show,this.dialogObj.id&&(this.id=this.dialogObj.id),this.form.money=parseFloat(this.dialogObj.money/100),this.form.desc=this.dialogObj.desc,this.loading=!1}},watch:{dialogObj:{handler:function(){this.initDialog()},deep:!0},show:function(e){this.$emit("changeShow",e)}}},_={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{attrs:{title:"退款",center:"","append-to-body":"",visible:e.show,width:"800px"},on:{"update:visible":function(t){e.show=t}}},[i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[i("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules}},[i("el-row",{attrs:{gutter:20}},[i("el-col",{attrs:{span:4}},[i("label",[e._v("退款金额")])]),e._v(" "),i("el-col",{attrs:{span:8}},[i("el-form-item",{attrs:{prop:"key"}},[i("el-input",{model:{value:e.form.money,callback:function(t){e.$set(e.form,"money",t)},expression:"form.money"}})],1)],1),e._v(" "),i("el-col",{attrs:{span:6}},[i("el-button",{attrs:{type:"success",round:"",size:"small"},on:{click:function(t){e.form.money=100}}},[e._v("¥100")]),e._v(" "),i("el-button",{attrs:{type:"success",round:"",size:"mini"},on:{click:function(t){e.form.money=150}}},[e._v("¥150")])],1)],1),e._v(" "),i("el-row",{attrs:{gutter:20}},[i("el-col",{attrs:{span:4}},[i("label",[e._v("退课")])]),e._v(" "),i("el-col",{attrs:{span:8}},[i("el-form-item",[i("el-switch",{attrs:{"active-value":2,"inactive-value":1},model:{value:e.form.refund_type,callback:function(t){e.$set(e.form,"refund_type",t)},expression:"form.refund_type"}})],1)],1)],1),e._v(" "),i("el-row",{attrs:{gutter:20}},[i("el-col",{attrs:{span:4}},[i("label",[e._v("退款原因")])]),e._v(" "),i("el-col",{attrs:{span:12}},[i("el-form-item",[i("el-input",{attrs:{type:"textarea"},model:{value:e.form.desc,callback:function(t){e.$set(e.form,"desc",t)},expression:"form.desc"}})],1)],1)],1)],1)],1),e._v(" "),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(t){e.show=!1}}},[e._v("取 消")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.save}},[e._v("确 定")])],1)])},staticRenderFns:[]};var m=i("VU/8")(u,_,!1,function(e){i("9eU6")},"data-v-df15906a",null).exports,h=i("kmsh"),f=i("+TkF"),p={name:"detail",props:["dialogObj"],data:function(){return{detail:{},show:!1}},methods:{initDialog:function(){this.detail=this.dialogObj.detail,this.show=this.dialogObj.show}},filters:{payMentFilter:function(e){return"1"==e?"已付款":"未付款"},courseTypeFilter:function(e){return"1"==e.type?"正式课("+e.duration+"个月)":"试听课("+e.duration+"天)"},inviteType:function(e){return f.j[e]},status:function(e){return f.p[e]},buyType:function(e){return f.b[e]},moneytFilter:function(e){return e/100+"元"}},watch:{dialogObj:{handler:function(){this.initDialog()},deep:!0},show:function(e){this.$emit("changeShow",e)}}},v={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{attrs:{title:"订单详情",center:"",visible:e.dialogObj.show,width:"800px"},on:{"update:visible":function(t){e.$set(e.dialogObj,"show",t)}}},[i("el-row",{attrs:{align:"middle",type:"flex"}},[i("el-col",{attrs:{span:4}},[i("label",[e._v("订单号")])]),e._v(" "),i("el-col",{attrs:{span:8}},[e._v("\n "+e._s(e.detail.out_trade_no)+"\n ")]),e._v(" "),i("el-col",{attrs:{span:4}},[i("label",[e._v("商品名称")])]),e._v(" "),i("el-col",{attrs:{span:8}},[e._v(e._s(e.detail.goods_name))])],1),e._v(" "),i("el-row",{attrs:{align:"middle",type:"flex"}},[i("el-col",{attrs:{span:4}},[i("label",[e._v("用户昵称")])]),e._v(" "),i("el-col",{attrs:{span:8}},[e._v("\n "+e._s(e.detail.user_nickname)+"\n ")]),e._v(" "),i("el-col",{attrs:{span:4}},[i("label",[e._v("用户手机号")])]),e._v(" "),i("el-col",{attrs:{span:8}},[e._v(e._s(e.detail.user_mobile))])],1),e._v(" "),i("el-row",{attrs:{align:"middle",type:"flex"}},[i("el-col",{attrs:{span:4}},[i("label",[e._v("推广人类型")])]),e._v(" "),i("el-col",{attrs:{span:8}},[e._v(e._s(e._f("inviteType")(e.detail.invite_type)))]),e._v(" "),i("el-col",{attrs:{span:4}},[i("label",[e._v("推广人ID")])]),e._v(" "),i("el-col",{attrs:{span:8}},[e._v(e._s(e.detail.invite_id))])],1),e._v(" "),i("el-row",{attrs:{align:"middle",type:"flex"}},[i("el-col",{attrs:{span:4}},[i("label",[e._v("推广人收益")])]),e._v(" "),i("el-col",{attrs:{span:8}},[e._v(e._s(e.detail.invite_earnings?e.detail.invite_earnings/100:0)+"元")]),e._v(" "),2===e.detail.buy_type?[i("el-col",{attrs:{span:4}},[i("label",[e._v("团购信息")])]),e._v(" "),i("el-col",{attrs:{span:8}},[e._v("团ID:"+e._s(e.detail.order_group_id)),i("br"),e._v("是否是团长:"+e._s(0===e.detail.is_captain?"否":"是"))])]:e._e()],2),e._v(" "),i("el-row",[i("el-col",{attrs:{span:4}},[i("label",[e._v("期数ID")])]),e._v(" "),i("el-col",{attrs:{span:8}},[e._v(e._s(e.detail.periods_id))]),e._v(" "),i("el-col",{attrs:{span:4}},[i("label",[e._v("描述")])]),e._v(" "),i("el-col",{attrs:{span:8}},[e._v(e._s(e.detail.desc))])],1),e._v(" "),i("el-row",[i("el-col",{attrs:{span:4}},[i("label",[e._v("收货地址")])]),e._v(" "),i("el-col",{attrs:{span:20}},[e.detail.user_address_id&&e.detail.address_info?[e._v("\n 收货人:"+e._s(e.detail.address_info.receive_name)),i("br"),e._v("\n 手机号:"+e._s(e.detail.address_info.receive_mobile)),i("br"),e._v("\n 收货地址: "+e._s(e.detail.address_info.province_name)+e._s(e.detail.address_info.city)+e._s(e.detail.address_info.area)+e._s(e.detail.address_info.address)+"\n ")]:e._e()],2)],1),e._v(" "),i("el-row",[i("el-col",{attrs:{span:4}},[i("label",[e._v("付款时间")])]),e._v(" "),i("el-col",{attrs:{span:8}},[e._v(e._s(e.detail.pay_at))])],1)],1)},staticRenderFns:[]};var b=i("VU/8")(p,v,!1,function(e){i("w+vU")},"data-v-fcd42b82",null).exports,g=i("G2rA"),y=i("sf/l"),w={name:"index",data:function(){var e=this;return{nowPage:1,total:0,today:{text:"今天",onClick:function(){e.searchFrom.payTime=[e.formatTime(new Date)+" 00:00:00",e.formatTime(new Date)+" 23:59:59"]}},yesterday:{text:"昨天",onClick:function(){var t=e.formatTime(new Date((new Date).getTime()-864e5));e.searchFrom.payTime=[t+" 00:00:00",t+" 23:59:59"]}},last30Day:{text:"过去30天",onClick:function(){var t=e.formatTime(new Date((new Date).getTime()-2592e6));e.searchFrom.payTime=[t+" 00:00:00",e.formatTime(new Date)+" 23:59:59"]}},sourceDialog:{show:!1,out_trade_no:""},couponDetail:{show:!1,order_coupon_id:""},refundDetail:{show:!1,out_trade_no:""},limit:10,searchFrom:{nickname:"",user_id:"",invite_type:"",invite_id:"",buy_type:"",status:[1,4,5],goods_id:"",out_trade_no:"",payTime:[],order_group_id:"",is_captain:""},tableData:[],dialogObj:{show:!1},refundDialogObj:{show:!1,id:"",money:0},dialogDetailObj:{show:!1,detail:{}},goodList:[],inviteTypeOption:f.k,orderStatusOption:f.q,buyTypeOption:f.c,inviteSearchPlaceholder:"",rules:{value:[{required:!0,message:"请输入备注",trigger:"change"}]},promoterDialog:{show:!1,nowPage:1,total:0,limit:100,teacher_id:""},teacherList:[],loading:!1,isLeaderOption:f.m}},methods:{formatTime:function(e){var t=e.getFullYear(),i=e.getMonth()+1;i<10&&(i="0"+i);var a=e.getDate();return a<10&&(a="0"+a),t+"-"+i+"-"+a},showRef:function(e){this.refundDetail.show=!0,this.refundDetail.out_trade_no=e.out_trade_no},showCoupon:function(e){this.couponDetail.show=!0,this.couponDetail.order_coupon_id=e.order_coupon_id},showSource:function(e){this.sourceDialog.show=!0,this.sourceDialog.out_trade_no=e.out_trade_no},changeRow:function(e,t){t.indexOf(e)>-1&&Object(a._54)({out_trade_no:e.out_trade_no}).then(function(t){e.refundList=t.list})},exportTable:function(){var e={};this.searchFrom.nickname&&(e.nickname=this.searchFrom.nickname),this.searchFrom.user_id&&(e.user_id=this.searchFrom.user_id),this.searchFrom.invite_type&&(e.invite_type=this.searchFrom.invite_type),this.searchFrom.invite_id&&(e.invite_id=this.searchFrom.invite_id),this.searchFrom.order_group_id&&(e.order_group_id=this.searchFrom.order_group_id),this.searchFrom.buy_type&&(e.buy_type=this.searchFrom.buy_type),this.searchFrom.status&&(e.status=this.searchFrom.status.toString()),this.searchFrom.goods_id&&(e.goods_id=this.searchFrom.goods_id),this.searchFrom.out_trade_no&&(e.out_trade_no=this.searchFrom.out_trade_no),(this.searchFrom.is_captain||0==this.searchFrom.is_captain)&&(e.is_captain=this.searchFrom.is_captain),this.searchFrom.receive_mobile&&(e.receive_mobile=this.searchFrom.receive_mobile),this.searchFrom.payTime&&this.searchFrom.payTime.length>0&&(e.pay_start_at=y.a.dateFmt(this.searchFrom.payTime[0],"yyyy-MM-dd hh:mm:ss"),e.pay_end_at=y.a.dateFmt(this.searchFrom.payTime[1],"yyyy-MM-dd hh:mm:ss")),e.course_type=1,Object(a._11)("/api/admin/order/export",e)},getGoodsOption:function(){var e=this;Object(a._37)({page:1,limit:100,course_type:1}).then(function(t){e.goodList=t.list})},onInviteTypeChange:function(e){0===e?this.inviteSearchPlaceholder="用户ID":1===e?this.inviteSearchPlaceholder="老师ID":2===e&&(this.inviteSearchPlaceholder="推广人ID"),this.getOrderList()},detail:function(e){var t=e;this.dialogDetailObj={show:!0,detail:t}},editComment:function(e,t){var i=this;this.$prompt("","编辑备注",{confirmButtonText:"确定",cancelButtonText:"取消",inputType:"textarea",inputValue:t||""}).then(function(t){var r=t.value;i.$confirm("确定保存?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(a._4)(e,"order",{desc:r}).then(function(e){i.$message({type:"success",message:"编辑备注成功"}),i.getOrderList()})})})},onPageChange:function(e){this.nowPage=e,this.getOrderList()},onSizeChange:function(e){this.limit=e,this.nowPage=1,this.getOrderList()},getOrderList:function(){var e=this,t={limit:this.limit,page:this.nowPage};this.searchFrom.nickname&&(t.nickname=this.searchFrom.nickname),this.searchFrom.user_id&&(t.user_id=this.searchFrom.user_id),this.searchFrom.invite_type&&(t.invite_type=this.searchFrom.invite_type),this.searchFrom.invite_id&&(t.invite_id=this.searchFrom.invite_id),this.searchFrom.order_group_id&&(t.order_group_id=this.searchFrom.order_group_id),this.searchFrom.buy_type&&(t.buy_type=this.searchFrom.buy_type),this.searchFrom.status&&(t.status=this.searchFrom.status.toString()),this.searchFrom.goods_id&&(t.goods_id=this.searchFrom.goods_id),(this.searchFrom.is_captain||0==this.searchFrom.is_captain)&&(t.is_captain=this.searchFrom.is_captain),this.searchFrom.out_trade_no&&(t.out_trade_no=this.searchFrom.out_trade_no),this.searchFrom.receive_mobile&&(t.receive_mobile=this.searchFrom.receive_mobile),this.searchFrom.payTime&&this.searchFrom.payTime.length>0&&(t.pay_start_at=y.a.dateFmt(this.searchFrom.payTime[0],"yyyy-MM-dd hh:mm:ss"),t.pay_end_at=y.a.dateFmt(this.searchFrom.payTime[1],"yyyy-MM-dd hh:mm:ss")),t.course_type=1,Object(a._47)(t).then(function(t){t.list.forEach(function(e){e.refundList=[]}),e.tableData=t.list,e.total=t.total})},changeDetailShow:function(e){this.dialogDetailObj.show=e},changeShow:function(e){this.refundDialogObj.show=e},onRefund:function(e,t){this.refundDialogObj.id=e,this.refundDialogObj.money=t,this.refundDialogObj.show=!0},onAfterRefund:function(){this.refundDialogObj.show=!1,this.getOrderList()},onUpdateAddress:function(){this.dialogObj.show=!1,this.getOrderList()},editAddress:function(e){if(e.address_info&&e.address_info.province_name){var t=s.a.filter(function(t){return t.label===e.address_info.province_name});if(t&&t.length>0)if(this.dialogObj.province=e.address_info.province_id?e.address_info.province_id:t[0].value,e.address_info.city){var i=t[0].children.filter(function(t){return t.label===e.address_info.city});if(this.dialogObj.city=e.address_info.city_id?e.address_info.city_id:i[0].value,e.address_info.area){var a=i[0].children.filter(function(t){return t.label===e.address_info.area});this.dialogObj.district=e.address_info.area_id?e.address_info.area_id:a[0].value}else this.dialogObj.district=""}else this.dialogObj.city="";else this.dialogObj.province="",this.dialogObj.district="",this.dialogObj.city=""}else this.dialogObj.province="",this.dialogObj.city="",this.dialogObj.district="";this.dialogObj.detail=e.address_info?e.address_info.address:"",this.dialogObj.receive_mobile=e.address_info?e.address_info.receive_mobile:"",this.dialogObj.receive_name=e.address_info?e.address_info.receive_name:"",this.dialogObj.province_name=e.address_info?e.address_info.province_name:"",this.dialogObj.city_name=e.address_info?e.address_info.city:"",this.dialogObj.district_name=e.address_info?e.address_info.area:"",this.dialogObj.id=e.id,this.dialogObj.show=!0},getTeacherList:function(e){var t=this;this.loading=!0;var i={limit:this.promoterDialog.limit,page:this.promoterDialog.nowPage};e&&(i.name=e),Object(a._65)(i).then(function(e){t.teacherList=e.list,t.loading=!1})},handleCurrentTeacherChange:function(e){console.log("handleCurrentTeacherChange",e)},updateTeacher:function(e){this.promoterDialog.show=!0,this.promoterDialog.id=e.id,this.promoterDialog.teacher_id=e.invite_id,this.getTeacherList()},remoteMethod:function(e){""!==e?this.getTeacherList(e):this.getTeacherList()},saveTeacher:function(){var e=this;this.$confirm("此操作将修改推广人?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){console.log("this.promoterDialog.teacher_id",e.promoterDialog),Object(a._103)(e.promoterDialog.id,e.promoterDialog.teacher_id).then(function(t){e.promoterDialog.id="",e.promoterDialog.teacher_id="",e.promoterDialog.show=!1,e.$message({type:"success",message:"修改成功!"}),e.getOrderList()})})}},components:{addressDialog:c,refundDialog:m,detailDialog:b,refundDetail:g.a,sourceDialog:d.a,couponDialog:h.a,page:r.a},mounted:function(){this.$route.query.code&&(this.searchFrom.invite_type=this.$route.query.code),this.getOrderList(),this.getGoodsOption()},watch:{},filters:{isLeader:function(e){return f.l[e]},payMentFilter:function(e){return"1"==e?"已付款":"未付款"},courseTypeFilter:function(e){return"1"==e.type?"正式课("+e.duration+"个月)":"试听课("+e.duration+"天)"},inviteType:function(e){return f.j[e]},status:function(e){return f.p[e]},buyType:function(e){return f.b[e]},moneytFilter:function(e){return e/100+"元"},filterGoods:function(e){return"["+f.g[e.goods_type]+"]["+e.current_price/100+"元]"+e.name}}},O={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"order"},[i("el-form",{ref:"searchFrom",attrs:{model:e.searchFrom,"label-width":"100px",inline:""}},[i("el-form-item",{attrs:{label:"用户ID"}},[i("el-input",{model:{value:e.searchFrom.user_id,callback:function(t){e.$set(e.searchFrom,"user_id",t)},expression:"searchFrom.user_id"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"用户昵称"}},[i("el-input",{model:{value:e.searchFrom.nickname,callback:function(t){e.$set(e.searchFrom,"nickname",t)},expression:"searchFrom.nickname"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"收件人手机号"}},[i("el-input",{model:{value:e.searchFrom.receive_mobile,callback:function(t){e.$set(e.searchFrom,"receive_mobile",t)},expression:"searchFrom.receive_mobile"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"商品名称"}},[i("el-select",{attrs:{placeholder:"请选择",clearable:""},on:{change:e.getOrderList},model:{value:e.searchFrom.goods_id,callback:function(t){e.$set(e.searchFrom,"goods_id",t)},expression:"searchFrom.goods_id"}},e._l(e.goodList,function(t,a){return i("el-option",{key:a,attrs:{label:e._f("filterGoods")(t),value:t.id}})}))],1),e._v(" "),i("el-form-item",{staticClass:"test",attrs:{label:"来源"}},[i("el-input",{attrs:{placeholder:e.inviteSearchPlaceholder},model:{value:e.searchFrom.invite_type,callback:function(t){e.$set(e.searchFrom,"invite_type",t)},expression:"searchFrom.invite_type\t"}},[i("template",{slot:"prepend"},[e._v("CC -")])],2)],1),e._v(" "),i("el-form-item",{attrs:{label:"推广人ID"}},[i("el-input",{attrs:{placeholder:e.inviteSearchPlaceholder},model:{value:e.searchFrom.invite_id,callback:function(t){e.$set(e.searchFrom,"invite_id",t)},expression:"searchFrom.invite_id"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"团ID"}},[i("el-input",{model:{value:e.searchFrom.order_group_id,callback:function(t){e.$set(e.searchFrom,"order_group_id",t)},expression:"searchFrom.order_group_id"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"是否团长"}},[i("el-select",{attrs:{placeholder:"请选择",clearable:""},on:{change:e.getOrderList},model:{value:e.searchFrom.is_captain,callback:function(t){e.$set(e.searchFrom,"is_captain",t)},expression:"searchFrom.is_captain"}},e._l(e.isLeaderOption,function(e){return i("el-option",{key:e.id,attrs:{label:e.value,value:e.id}})}))],1),e._v(" "),i("el-form-item",{attrs:{label:"购买方式"}},[i("el-select",{attrs:{placeholder:"请选择",clearable:""},on:{change:e.getOrderList},model:{value:e.searchFrom.buy_type,callback:function(t){e.$set(e.searchFrom,"buy_type",t)},expression:"searchFrom.buy_type"}},e._l(e.buyTypeOption,function(e){return i("el-option",{key:e.id,attrs:{label:e.value,value:e.id}})}))],1),e._v(" "),i("el-form-item",{attrs:{label:"订单状态"}},[i("el-select",{attrs:{multiple:"",placeholder:"请选择",clearable:""},on:{change:e.getOrderList},model:{value:e.searchFrom.status,callback:function(t){e.$set(e.searchFrom,"status",t)},expression:"searchFrom.status"}},e._l(e.orderStatusOption,function(e){return i("el-option",{key:e.id,attrs:{label:e.value,value:e.id}})}))],1),e._v(" "),i("el-form-item",{attrs:{label:"交易订单号"}},[i("el-input",{model:{value:e.searchFrom.out_trade_no,callback:function(t){e.$set(e.searchFrom,"out_trade_no",t)},expression:"searchFrom.out_trade_no"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"购买时间"}},[i("el-date-picker",{attrs:{type:"datetimerange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":{shortcuts:[e.today,e.yesterday,e.last30Day]},"default-time":["00:00:00","23:59:59"]},on:{change:e.getOrderList},model:{value:e.searchFrom.payTime,callback:function(t){e.$set(e.searchFrom,"payTime",t)},expression:"searchFrom.payTime"}})],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",plain:""},on:{click:e.getOrderList}},[e._v("搜索")]),e._v(" "),i("el-button",{attrs:{type:"primary",plain:""},on:{click:e.exportTable}},[e._v("导出")])],1)],1),e._v(" "),i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData,fixed:""},on:{"expand-change":e.changeRow}},[i("el-table-column",{attrs:{prop:"out_trade_no",label:"订单号",width:"120"}}),e._v(" "),i("el-table-column",{attrs:{label:"购买人",className:"f-c",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("img",{staticClass:"avatar",attrs:{src:t.row.user_avatar}}),e._v(" "+e._s(t.row.user_nickname)),i("br"),e._v("(ID:"+e._s(t.row.user_id)+")"),i("br"),e._v("手机:"+e._s(t.row.user_mobile)+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"periods_title",label:"期数标题"}}),e._v(" "),i("el-table-column",{attrs:{prop:"goods_name",label:"商品名称",width:"160"}}),e._v(" "),i("el-table-column",{attrs:{width:"250",prop:"invite_id",className:"f-c",label:"来源"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.invite_earnings>0&&0!==t.row.invite_id?i("div",{staticStyle:{width:"100%",display:"flex",color:"#409eff",cursor:"pointer"},on:{click:function(i){e.showSource(t.row)}}},[i("img",{staticClass:"avatar",attrs:{src:t.row.invite_avatar}}),e._v(" 类型:"+e._s(t.row.invite_type)+" ("+e._s(t.row.invite_name)+")\n "),i("br"),e._v(" 收益:"+e._s(t.row.invite_earnings/100)+"\n "),i("br"),e._v(" 用户ID:"+e._s(t.row.invite_id)+"\n "),i("br"),e._v(" 昵称:"+e._s(t.row.invite_nickname)+"\n "),i("br"),e._v(" 手机:"+e._s(t.row.invite_mobile)+"\n ")]):e._e(),e._v(" "),0===t.row.invite_earnings&&0!==t.row.invite_id?i("div",{staticStyle:{display:"flex"}},[i("img",{staticClass:"avatar",attrs:{src:t.row.invite_avatar}}),e._v(" 类型:"+e._s(t.row.invite_type)+" ("+e._s(t.row.invite_name)+")\n "),i("br"),e._v(" 收益:"+e._s(t.row.invite_earnings/100)+"\n "),i("br"),e._v(" 用户ID:"+e._s(t.row.invite_id)+"\n "),i("br"),e._v(" 昵称:"+e._s(t.row.invite_nickname)+"\n "),i("br"),e._v(" 手机:"+e._s(t.row.invite_mobile)+"\n ")]):e._e(),e._v(" "),0===t.row.invite_id?i("div",[e._v("\n\n ")]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"order_group_id",label:"团ID",width:"80"}}),e._v(" "),i("el-table-column",{attrs:{label:"是否团长",width:"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("isLeader")(t.row.is_captain))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"优惠活动"},scopedSlots:e._u([{key:"default",fn:function(t){return[0===t.row.order_coupon_id?i("span",[e._v("\n\n ")]):e._e(),e._v(" "),0!==t.row.order_coupon_id?i("el-button",{attrs:{type:"text"},on:{click:function(i){e.showCoupon(t.row)}}},[e._v("\n 优惠券\n ")]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"付款状态",width:"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[5===t.row.status||3===t.row.status?i("el-button",{attrs:{type:"text"},on:{click:function(i){e.showRef(t.row)}}},[e._v(e._s(e._f("status")(t.row.status)))]):e._e(),e._v(" "),5!==t.row.status&&3!==t.row.status?i("div",[e._v(e._s(e._f("status")(t.row.status)))]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"实付金额",width:"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("moneytFilter")(t.row.money))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"收货地址"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.user_address_id&&t.row.address_info?i("div",[e._v("\n "+e._s(t.row.address_info.receive_name)),i("br"),e._v(" "+e._s(t.row.address_info.receive_mobile)+"\n "),i("br"),e._v(" "+e._s(t.row.address_info.province_name)+e._s(t.row.address_info.city)+e._s(t.row.address_info.area)+e._s(t.row.address_info.address)+"\n ")]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"created_at",label:"时间",width:"280"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n 下单时间:"+e._s(t.row.created_at)),i("br"),e._v("\n 购买时间:"+e._s(t.row.pay_at)),i("br"),e._v(" "),1!=t.row.buy_type?i("div",[e._v("\n 成团时间:"+e._s(t.row.group_success_time)),i("br"),e._v("\n 截止时间:"+e._s(t.row.deadline)+"\n ")]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"desc",label:"备注"}}),e._v(" "),e.$store.state.readonly?e._e():i("el-table-column",{attrs:{width:"50",label:"操作",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-popover",{attrs:{placement:"top",width:"400"}},[i("div",{staticStyle:{"text-align":"center"}},[1!=t.row.status&&4!=t.row.status&&5!=t.row.status||!e.$store.state.orderRefund?e._e():i("el-button",{attrs:{type:"warning",plain:"",size:"mini"},on:{click:function(i){e.onRefund(t.row.id,t.row.money)}}},[e._v("\n 退款\n ")]),e._v(" "),i("el-button",{attrs:{type:"info",plain:"",size:"mini"},on:{click:function(i){e.editComment(t.row.id,t.row.desc)}}},[e._v("\n 编辑备注\n ")]),e._v(" "),t.row.user_address_id?i("el-button",{attrs:{plain:"",type:"info",size:"mini"},on:{click:function(i){e.editAddress(t.row)}}},[e._v("\n 编辑收货地址\n ")]):e._e(),e._v(" "),i("el-button",{attrs:{type:"warning",plain:"",size:"mini"},on:{click:function(i){e.updateTeacher(t.row)}}},[e._v("\n 编辑推广人\n ")])],1),e._v(" "),i("el-button",{attrs:{slot:"reference",size:"mini",type:"text"},slot:"reference"},[e._v("操作")])],1)]}}])})],1),e._v(" "),i("address-dialog",{attrs:{dialogObj:e.dialogObj},on:{reflash:e.onUpdateAddress}}),e._v(" "),i("refund-dialog",{attrs:{dialogObj:e.refundDialogObj},on:{reflash:e.onAfterRefund,changeShow:e.changeShow}}),e._v(" "),i("detail-dialog",{attrs:{dialogObj:e.dialogDetailObj},on:{changeShow:e.changeDetailShow}}),e._v(" "),i("source-dialog",{attrs:{dialogObj:e.sourceDialog}}),e._v(" "),i("refund-detail",{attrs:{dialogObj:e.refundDetail}}),e._v(" "),i("coupon-dialog",{attrs:{dialogObj:e.couponDetail}}),e._v(" "),i("el-dialog",{attrs:{title:"修改推广人",center:"","append-to-body":"",visible:e.promoterDialog.show,width:"600"},on:{"update:visible":function(t){e.$set(e.promoterDialog,"show",t)}}},[i("el-form",{ref:"form",attrs:{"label-width":"120px"}},[i("el-form-item",{attrs:{label:"老师"}},[i("el-select",{attrs:{filterable:"",remote:"",clearable:"",placeholder:"请输入名称","remote-method":e.remoteMethod,loading:e.loading},model:{value:e.promoterDialog.teacher_id,callback:function(t){e.$set(e.promoterDialog,"teacher_id",t)},expression:"promoterDialog.teacher_id"}},e._l(e.teacherList,function(e){return i("el-option",{key:e.id,attrs:{label:e.name,value:e.user_id}})}))],1)],1),e._v(" "),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(t){e.promoterDialog.show=!1}}},[e._v("取 消")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.saveTeacher}},[e._v("确 定")])],1)],1),e._v(" "),i("page",{attrs:{nowPage:e.nowPage,total:e.total,limit:e.limit},on:{pageChange:e.onPageChange,sizeChange:e.onSizeChange}})],1)},staticRenderFns:[]};var F=i("VU/8")(w,O,!1,function(e){i("aYiV"),i("uU9v")},"data-v-12309f45",null);t.default=F.exports},"6AGP":function(e,t){},"9eU6":function(e,t){},G2rA:function(e,t,i){"use strict";var a=i("CCn6"),r={name:"refundDetail",props:["dialogObj"],data:function(){return{detail:[]}},filters:{filterStatus:function(e){var t="";return 0===e?t="退款中":1===e?t="退款成功":2===e&&(t="退款失败"),t}},methods:{initPage:function(){var e=this,t={out_trade_no:this.dialogObj.out_trade_no,limit:200};Object(a._54)(t).then(function(t){e.detail=t.list})}},watch:{"dialogObj.show":function(e){!0===e&&this.initPage()}}},o={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{attrs:{title:"退款详情",center:"","append-to-body":"",visible:e.dialogObj.show,width:"90%"},on:{"update:visible":function(t){e.$set(e.dialogObj,"show",t)}}},[i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.detail}},[i("el-table-column",{attrs:{prop:"refund_no",label:"退款编号"}}),e._v(" "),i("el-table-column",{attrs:{prop:"out_trade_no",label:"订单号"}}),e._v(" "),i("el-table-column",{attrs:{label:"用户信息","min-width":"140",className:"userInfo"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("img",{staticClass:"avatar",attrs:{src:t.row.user_avatar}}),e._v("\n "+e._s(t.row.user_nickname)+"(ID:"+e._s(t.row.user_id)+")\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"order_money",label:"订单金额"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(parseFloat(t.row.order_money/100))+"元\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"refund_money",label:"退款金额"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(parseFloat(t.row.refund_money/100))+"元\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"desc",label:"备注"}}),e._v(" "),i("el-table-column",{attrs:{label:"退款状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("filterStatus")(t.row.status))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"success_at",label:"退款成功时间"}})],1)],1)},staticRenderFns:[]};var s=i("VU/8")(r,o,!1,function(e){i("6AGP")},"data-v-4a64444c",null);t.a=s.exports},O6Rd:function(e,t,i){"use strict";var a=i("CCn6"),r={name:"sourceDialog",props:["dialogObj"],data:function(){return{detail:[]}},filters:{moneyYuan:function(e){return e?(e/100).toFixed(2)+"元":""},filterStatus:function(e){var t="";return 0===e?t="审核中":1===e?t="提现成功":2===e&&(t="提现失败"),t}},methods:{initPage:function(){var e=this,t={out_trade_no:this.dialogObj.out_trade_no,limit:200};Object(a._74)(t).then(function(t){e.detail=t.list})}},watch:{"dialogObj.show":function(e){!0===e&&this.initPage()}}},o={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{attrs:{title:"提现详情",center:"","append-to-body":"",visible:e.dialogObj.show,width:"90%"},on:{"update:visible":function(t){e.$set(e.dialogObj,"show",t)}}},[i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.detail}},[i("el-table-column",{attrs:{prop:"withdraw_no",label:"提现单号"}}),e._v(" "),i("el-table-column",{attrs:{prop:"out_trade_no",label:"订单号"}}),e._v(" "),i("el-table-column",{attrs:{label:"用户",width:"200",className:"f-c"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("img",{staticClass:"avatar",attrs:{src:t.row.user_avatar}}),e._v(" "+e._s(t.row.user_nickname)+"(ID:"+e._s(t.row.user_id)+")\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"user_mobile",label:"手机号"}}),e._v(" "),i("el-table-column",{attrs:{label:"提现金额"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("moneyYuan")(t.row.money))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"提现状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",{class:{status:!0,red:2===t.row.status,green:1===t.row.status}},[e._v("\n "+e._s(e._f("filterStatus")(t.row.status))+"\n ")])]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"提现成功时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.success_at)+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"提现时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.created_at)+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"reason",label:"失败原因"}}),e._v(" "),i("el-table-column",{attrs:{prop:"desc",label:"备注"}})],1)],1)},staticRenderFns:[]};var s=i("VU/8")(r,o,!1,function(e){i("/RlY")},"data-v-685cba10",null);t.a=s.exports},P0f4:function(e,t,i){"use strict";var a=1;function r(e,t){return e.filter(function(e){return e.value===t})[0].children}var o=i("xGts").a.filter(function(e){return e.type==a}),s={name:"vueAddress",props:["province","city","district","detail","name","mobile"],created:function(){},mounted:function(){this.show=this.showAddressPicker},computed:{cities:function(){return this.form.province?r(o,this.form.province):[]},districts:function(){return this.form.city?r(this.cities,this.form.city):[]}},data:function(){return{rules:{province:[{required:!0,message:"请选择省份",trigger:"change"}],city:[{required:!0,message:"请选择城市",trigger:"change"}],district:[{required:!0,message:"请选择区/县",trigger:"change"}],detail:[{required:!0,message:"请填写详细地址",trigger:"change"}],name:[{required:!0,message:"请填写收货人",trigger:"change"}],mobile:[{required:!0,message:"请填写手机号",trigger:"change"}]},form:{province:this.province,city:this.city,district:this.district,detail:this.detail,name:this.name,mobile:this.mobile},provinces:o}},watch:{form:{handler:function(e){this.$emit("change",e)},deep:!0}},methods:{proChange:function(e,t){t&&(this.form.city="",this.form.district=""),this.form.city=this.cities[0].value,this.form.district=this.districts[0].value},cityChange:function(e,t){this.form.district=this.districts[0].value},districtChange:function(e,t){t&&(this.form.detail="")},detailChange:function(e){console.log(e)}}},n={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"address"},[i("section",{staticStyle:{width:"100%",height:"100%"}},[i("el-form",{ref:"form",staticClass:"demo-ruleForm",attrs:{model:e.form,"label-width":"100px",rules:e.rules}},[i("el-row",{attrs:{gutter:20}},[i("el-col",{attrs:{span:20}},[i("el-form-item",{attrs:{prop:"name",label:"收货人"}},[i("el-input",{model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1)],1)],1),e._v(" "),i("el-row",{attrs:{gutter:20}},[i("el-col",{attrs:{span:20}},[i("el-form-item",{attrs:{prop:"mobile",label:"手机号"}},[i("el-input",{model:{value:e.form.mobile,callback:function(t){e.$set(e.form,"mobile",t)},expression:"form.mobile"}})],1)],1)],1),e._v(" "),i("el-row",{staticClass:"address",attrs:{gutter:20}},[i("el-col",{attrs:{span:20}},[i("el-form-item",{attrs:{prop:"province",label:"省"}},[i("el-select",{attrs:{placeholder:"请选择省"},on:{change:e.proChange},model:{value:e.form.province,callback:function(t){e.$set(e.form,"province",t)},expression:"form.province"}},e._l(e.provinces,function(e){return i("el-option",{key:e.value,attrs:{value:e.value,label:e.label}})}))],1)],1)],1),e._v(" "),i("el-row",{staticClass:"address",attrs:{gutter:20}},[i("el-col",{attrs:{span:20}},[i("el-form-item",{attrs:{prop:"city",label:"市"}},[i("el-select",{attrs:{placeholder:"请选择市"},on:{change:e.cityChange},model:{value:e.form.city,callback:function(t){e.$set(e.form,"city",t)},expression:"form.city"}},e._l(e.cities,function(e){return i("el-option",{key:e.value,attrs:{value:e.value,label:e.label}})}))],1)],1)],1),e._v(" "),i("el-row",{staticClass:"address",attrs:{gutter:20}},[i("el-col",{attrs:{span:20}},[i("el-form-item",{attrs:{prop:"district",label:"县/区"}},[i("el-select",{attrs:{placeholder:"请选择区/县"},on:{change:e.districtChange},model:{value:e.form.district,callback:function(t){e.$set(e.form,"district",t)},expression:"form.district"}},e._l(e.districts,function(e){return i("el-option",{key:e.value,attrs:{value:e.value,label:e.label}})}))],1)],1)],1),e._v(" "),i("el-row",{staticClass:"address",attrs:{gutter:20}},[i("el-col",{attrs:{span:20}},[i("el-form-item",{attrs:{prop:"detail",label:"详细地址"}},[i("el-input",{attrs:{placeholder:"请填写详细地址",number:!0},model:{value:e.form.detail,callback:function(t){e.$set(e.form,"detail",t)},expression:"form.detail"}})],1)],1)],1)],1)],1)])},staticRenderFns:[]};var l=i("VU/8")(s,n,!1,function(e){i("e5ri")},"data-v-02351020",null);t.a=l.exports},RpKh:function(e,t){},SGEf:function(e,t){},aYiV:function(e,t){},e5ri:function(e,t){},kmsh:function(e,t,i){"use strict";var a=i("CCn6"),r={name:"sourceDialog",props:["dialogObj"],data:function(){return{detail:[]}},filters:{filterStatus:function(e){var t="";return 0===e?t="未使用":1===e?t="已使用":2===e&&(t="禁用"),t}},methods:{initPage:function(){var e=this,t={order_coupon_id:this.dialogObj.order_coupon_id,limit:200};Object(a._31)(t).then(function(t){e.detail=t.list})}},watch:{"dialogObj.show":function(e){!0===e&&this.initPage()}}},o={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{attrs:{title:"优惠券详情",center:"","append-to-body":"",visible:e.dialogObj.show,width:"90%"},on:{"update:visible":function(t){e.$set(e.dialogObj,"show",t)}}},[i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.detail}},[i("el-table-column",{attrs:{prop:"coupon_no",label:"优惠券码"}}),e._v(" "),i("el-table-column",{attrs:{prop:"out_trade_no",label:"订单号"}}),e._v(" "),i("el-table-column",{attrs:{label:"用户信息","min-width":"140",className:"userInfo"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("img",{staticClass:"avatar",attrs:{src:t.row.user_avatar}}),e._v("\n "+e._s(t.row.user_nickname)+"(ID:"+e._s(t.row.user_id)+")\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"优惠券金额"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(parseFloat(t.row.money/100))+"元\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"使用状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("filterStatus")(t.row.status))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"use_at",label:"使用时间"}})],1)],1)},staticRenderFns:[]};var s=i("VU/8")(r,o,!1,function(e){i("RpKh")},"data-v-1bce14d4",null);t.a=s.exports},uU9v:function(e,t){},"w+vU":function(e,t){}});
\ No newline at end of file
webpackJsonp([40],{"ju+C":function(e,t){},"v/LD":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("CCn6"),n={name:"monthOrderCount",data:function(){var e=this;return{goodsList:[],headList:[],today:{text:"今天",onClick:function(){e.searchFrom.dateValue=[e.formatTime(new Date),e.formatTime(new Date)]}},yesterday:{text:"昨天",onClick:function(){var t=e.formatTime(new Date((new Date).getTime()-864e5));e.searchFrom.dateValue=[t,t]}},last30Day:{text:"过去30天",onClick:function(){var t=e.formatTime(new Date((new Date).getTime()-2592e6));e.searchFrom.dateValue=[t,e.formatTime(new Date)]}},tableData:[],searchFrom:{priceList:[],dateValue:[]}}},mounted:function(){this.defaultTime(),this.initPage()},filters:{toFixed2:function(e){if("number"==typeof e){var t=e.toString().split(".");return t.length>1&&t[1].length>2?Number(e).toFixed(2):e}return e}},methods:{formatTime:function(e){var t=e.getFullYear(),a=e.getMonth()+1;a<10&&(a="0"+a);var r=e.getDate();return r<10&&(r="0"+r),t+"-"+a+"-"+r},initPage:function(){var e=this;Object(r._37)({limit:99999,course_type:0}).then(function(t){t.list.forEach(function(t){e.searchFrom.priceList.push(t.id)}),e.goodsList=t.list,e.searchPage()})},searchPage:function(){var e=this;if(this.searchFrom.dateValue.length<2)this.$message.error("请先选择起止日期");else{var t={start_at:this.searchFrom.dateValue[0],end_at:this.searchFrom.dateValue[1],goods_ids:this.searchFrom.priceList.toString()};Object(r._80)(t).then(function(t){if(t.length>0){var a=t[0];for(var r in e.tableData=t,e.headList=[],a)"cur_date"===r?e.headList.push("时间"):"register_num"===r?e.headList.push("注册数"):"total_money"===r?e.headList.push("总金额"):e.headList.push(r)}})}},defaultTime:function(){var e=new Date,t=e.getFullYear(),a=e.getMonth()+1;a<10&&(a="0"+a);var r=e.getDate();r<10&&(r="0"+r);var n=t+"-"+a+"-01",s=t+"-"+a+"-"+r;this.searchFrom.dateValue=[n,s]}}},s={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"orderCount"},[a("el-form",{ref:"searchFrom",attrs:{inline:"",model:e.searchFrom,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"商品"}},[a("el-select",{staticStyle:{width:"600px"},attrs:{"collapse-tags":"",multiple:"",filterable:"",placeholder:"请选择"},on:{change:e.searchPage},model:{value:e.searchFrom.priceList,callback:function(t){e.$set(e.searchFrom,"priceList",t)},expression:"searchFrom.priceList"}},e._l(e.goodsList,function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}))],1),e._v(" "),a("el-form-item",{attrs:{label:"起止日期"}},[a("el-date-picker",{attrs:{"unlink-panels":"",type:"daterange","picker-options":{shortcuts:[e.today,e.yesterday,e.last30Day]},"value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:e.searchPage},model:{value:e.searchFrom.dateValue,callback:function(t){e.$set(e.searchFrom,"dateValue",t)},expression:"searchFrom.dateValue"}})],1),e._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.searchPage()}}},[e._v("\n 搜索\n ")])],1)],1),e._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData}},e._l(e.headList,function(t){return a("el-table-column",{key:t,attrs:{label:t},scopedSlots:e._u([{key:"default",fn:function(r){return["时间"===t?a("span",[e._v("\n "+e._s(r.row.cur_date)+"\n ")]):e._e(),e._v(" "),"注册数"===t?a("span",[e._v("\n "+e._s(r.row.register_num)+"\n ")]):e._e(),e._v(" "),"总金额"===t?a("span",[e._v("\n "+e._s(r.row.total_money)+"\n ")]):e._e(),e._v(" "),"时间"!==t&&"注册数"!==t&&"总金额"!==t?a("span",[e._v("\n "+e._s(e._f("toFixed2")(r.row[t]))+"\n ")]):e._e()]}}])})}))],1)},staticRenderFns:[]};var i=a("VU/8")(n,s,!1,function(e){a("ju+C")},"data-v-9e6cc036",null);t.default=i.exports}});
\ No newline at end of file
webpackJsonp([41],{VGyF:function(e,t){},Vt1u:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n("CCn6"),a={components:{page:n("kmJW").a},data:function(){return{nowPage:1,total:0,limit:10,roleList:[],dialog:{title:"新增角色",show:!1,select:[],chooseed:[],rules:{name:[{required:!0,message:"请填写角色名称",trigger:"change"}]},form:{name:"",menu_ids:[],id:""}}}},created:function(){this.getList(),this.getMenuList()},methods:{rowClick:function(e){this.$router.push({name:"admin",query:{roleId:e.id}})},getMenuList:function(){var e=this;Object(o._44)().then(function(t){t&&(t.forEach(function(e){e.children&&e.children.forEach(function(e){e.readonly=!1,e.delete=!1,"月课订单列表"!==e.name&&"日课订单列表"!==e.name&&"来源码管理"!==e.name||(e.refund=!1)})}),e.dialog.select=t)})},onPageChange:function(e){this.nowPage=e,this.getList()},onSizeChange:function(e){this.nowPage=1,this.limit=e,this.getList()},getList:function(){var e=this,t={limit:this.limit,page:this.nowPage};Object(o._56)(t).then(function(t){t&&(e.roleList=t.list,e.total=t.total)})},edit:function(e){var t=this;this.dialog.form.id=e.id,this.dialog.title="编辑角色",Object(o._44)().then(function(n){n&&(n.forEach(function(e){e.children&&e.children.forEach(function(e){e.readonly=!1,e.delete=!1,"月课订单列表"!==e.name&&"日课订单列表"!==e.name&&"来源码管理"!==e.name||(e.refund=!1)})}),t.dialog.select=n,Object(o._55)(e.id).then(function(e){t.dialog.form.name=e.name,t.dialog.form.menu_ids=JSON.parse(e.menu_ids),t.dialog.chooseed=[],t.dialog.form.menu_ids.forEach(function(e){t.dialog.chooseed.push(e.id),t.dialog.select.forEach(function(t){t.children&&t.children.forEach(function(t){t.id===e.id&&(t.readonly=!!e.readonly,t.delete=!!e.delete,"5-1"!==e.cover&&"5-10"!==e.cover&&"10-1"!==e.cover||(t.refund=!!e.refund))})})}),t.dialog.show=!0,t.$nextTick(function(){this.$refs.tree.setCheckedKeys(this.dialog.chooseed)})}))})},add:function(){this.dialog.show=!0,this.dialog.form.id="",this.dialog.title="新增菜单",this.dialog.form.name="",this.dialog.form.menu_ids=[],this.getMenuList()},del:function(e){var t=this;this.$confirm("此操作将删除该角色?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(o.L)(e.id).then(function(e){t.$message({type:"success",message:"删除成功!"}),t.getList()})})},sub:function(){var e=this;this.$refs.form.validate(function(t){if(t){var n=[];e.$refs.tree.getCheckedNodes().forEach(function(e){var t=void 0;!1!==e.readonly&&!0!==e.readonly||(t={id:e.id,cover:e.cover,readonly:e.readonly}),!1!==e.delete&&!0!==e.delete||(t.delete=e.delete),!1!==e.refund&&!0!==e.refund||(t.refund=e.refund),t&&n.push(t)});var a=e.dialog;if(a.form.id){var i={name:a.form.name,menu_ids:JSON.stringify(n)};e.$confirm("此操作将修改该角色?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(o._106)(a.form.id,i).then(function(){e.$message({type:"success",message:"修改成功!"}),a.show=!1,e.getList()})})}else{var l={name:a.form.name,menu_ids:JSON.stringify(n)};e.$confirm("此操作将添加新角色?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(o._88)(l).then(function(){e.$message({type:"success",message:"添加成功!"}),a.show=!1,e.getList()})})}}})}}},i={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"role"},[n("div",{staticClass:"head clear-both"},[e.$store.state.readonly?e._e():n("el-button",{staticStyle:{float:"right"},attrs:{plain:"",type:"success"},on:{click:e.add}},[e._v("新增角色")])],1),e._v(" "),n("el-table",{staticStyle:{width:"100%"},attrs:{data:e.roleList}},[n("el-table-column",{attrs:{prop:"id",label:"角色ID"}}),e._v(" "),n("el-table-column",{attrs:{label:"角色名称"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{attrs:{type:"text"},on:{click:function(n){e.rowClick(t.row)}}},[e._v(" "+e._s(t.row.name))])]}}])}),e._v(" "),n("el-table-column",{attrs:{prop:"created_at",label:"创建时间",sortable:""}}),e._v(" "),e.$store.state.readonly?e._e():n("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.$store.state.readonly?e._e():n("el-button",{attrs:{size:"mini",plain:"",type:"primary"},on:{click:function(n){e.edit(t.row)}}},[e._v("\n 编辑\n ")]),e._v(" "),e.$store.state.deletePermission&&!e.$store.state.readonly?n("el-button",{attrs:{size:"mini",type:"danger",plain:""},on:{click:function(n){e.del(t.row)}}},[e._v("\n 删除\n ")]):e._e()]}}])})],1),e._v(" "),n("page",{attrs:{nowPage:e.nowPage,total:e.total,limit:e.limit},on:{pageChange:e.onPageChange,sizeChange:e.onSizeChange}}),e._v(" "),n("el-dialog",{attrs:{title:e.dialog.title,center:"","append-to-body":"",visible:e.dialog.show,width:"40%"},on:{"update:visible":function(t){e.$set(e.dialog,"show",t)}}},[n("el-form",{ref:"form",attrs:{rules:e.dialog.rules,model:e.dialog.form,"label-width":"100px"}},[n("el-form-item",{attrs:{label:"角色名称",prop:"name"}},[n("el-input",{model:{value:e.dialog.form.name,callback:function(t){e.$set(e.dialog.form,"name",t)},expression:"dialog.form.name"}})],1),e._v(" "),n("el-form-item",{attrs:{label:"菜单选项"}},[n("div",{staticClass:"custom-tree-container"},[n("el-tree",{ref:"tree",attrs:{data:e.dialog.select,"show-checkbox":"","node-key":"id","default-checked-keys":e.dialog.chooseed,"default-expand-all":"","expand-on-click-node":!1,props:{children:"children",label:"name",value:!1}},scopedSlots:e._u([{key:"default",fn:function(t){var o=t.node,a=t.data;return n("span",{staticClass:"custom-tree-node"},[n("span",[e._v(e._s(o.label))]),e._v(" "),0!==a.pid?n("span",["5-1"===a.cover||"5-10"===a.cover?n("el-checkbox",{model:{value:a.refund,callback:function(t){e.$set(a,"refund",t)},expression:"data.refund"}},[e._v("退款")]):e._e(),e._v(" "),"10-1"===a.cover?n("el-checkbox",{model:{value:a.refund,callback:function(t){e.$set(a,"refund",t)},expression:"data.refund"}},[e._v("类别管理")]):e._e(),e._v(" "),n("el-checkbox",{model:{value:a.readonly,callback:function(t){e.$set(a,"readonly",t)},expression:"data.readonly"}},[e._v("只读")]),e._v(" "),n("el-checkbox",{model:{value:a.delete,callback:function(t){e.$set(a,"delete",t)},expression:"data.delete"}},[e._v("删除")])],1):e._e()])}}])})],1)])],1),e._v(" "),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.dialog.show=!1}}},[e._v("取 消")]),e._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:e.sub}},[e._v("确 定")])],1)],1)],1)},staticRenderFns:[]};var l=n("VU/8")(a,i,!1,function(e){n("VGyF")},"data-v-8b0443c6",null);t.default=l.exports}});
\ No newline at end of file
webpackJsonp([42],{"+jTk":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=o("CCn6"),i=o("+TkF"),s=o("kmJW"),l=o("NC6I"),r=o.n(l),n={name:"admin",components:{page:s.a},data:function(){var e=this;return{nowPage:1,total:0,limit:10,adminList:[],searchFrom:{user_name:"",status:"",role_id:""},dialog:{dialogType:0,title:"新增账号",show:!1,select:[{code:0,value:i.a[0]},{code:1,value:i.a[1]}],rules:{username:[{validator:function(t,o,a){""===o&&0===e.dialog.dialogType?a(new Error("请输入账号")):a()},trigger:"blur"}],password:[{validator:function(t,o,a){""!==o||0!==e.dialog.dialogType&&2!==e.dialog.dialogType?(""===e.dialog.form.surePassword||0!==e.dialog.dialogType&&2!==e.dialog.dialogType||e.$refs.form.validateField("surePassword"),a()):a(new Error("请输入密码"))},trigger:"blur"}],surePassword:[{validator:function(t,o,a){0===e.dialog.dialogType||2===e.dialog.dialogType?""===o?a(new Error("请再次输入密码")):o!==e.dialog.form.password?a(new Error("两次输入密码不一致!")):a():a()},trigger:"blur"}],role_id:[{validator:function(t,o,a){0===e.dialog.dialogType||1===e.dialog.dialogType?""===o&&a(new Error("请输入角色")):a()},trigger:"blur"}],desc:[{validator:function(t,o,a){0===e.dialog.dialogType||1===e.dialog.dialogType?""===o&&a(new Error("请输入简述")):a()},trigger:"blur"}]},form:{id:"",username:"",password:"",surePassword:"",role_id:"",status:0,desc:""}},roleList:[]}},filters:{adminStatus:function(e){return i.a[e]}},created:function(){this.$route.query.roleId&&(this.searchFrom.role_id=parseInt(this.$route.query.roleId)),this.getList(),this.getRoleList()},methods:{getRoleList:function(){var e=this;Object(a._56)({page:1,limit:100}).then(function(t){t&&(e.roleList=t.list)})},onPageChange:function(e){this.nowPage=e,this.getList()},onSizeChange:function(e){this.nowPage=1,this.limit=e,this.getList()},getList:function(){var e=this,t={limit:this.limit,page:this.nowPage};this.searchFrom.user_name&&(t.user_name=this.searchFrom.user_name),""!==this.searchFrom.status&&(t.status=this.searchFrom.status),""!==this.searchFrom.role_id&&(t.role_id=this.searchFrom.role_id),Object(a._13)(t).then(function(t){e.adminList=t.list,e.total=Number(t.total),e.$store.commit("mainCanShow")})},editPW:function(e){this.dialog.form.id=e.id,this.dialog.dialogType=2,this.dialog.title="修改密码",this.dialog.form.password="",this.dialog.form.surePassword="",this.dialog.show=!0},edit:function(e){this.dialog.show=!0,this.dialog.dialogType=1,this.dialog.form.id=e.id,this.dialog.title="编辑",this.dialog.form.username=e.user_name,this.dialog.form.password="",this.dialog.form.status=e.status,this.dialog.form.role_id=e.role_id,this.dialog.form.desc=e.desc},add:function(){this.dialog.show=!0,this.dialog.dialogType=0,this.dialog.form.id="",this.dialog.title="新增",this.dialog.form.username="",this.dialog.form.status=0,this.dialog.form.password="",this.dialog.form.role_id="",this.dialog.form.desc=""},del:function(e){var t=this;this.$confirm("此操作将删除该账号?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(a.B)(e.id).then(function(e){t.$message({type:"success",message:"删除成功!"})}),t.getList()})},onSub:function(){var e=this,t=this.dialog;if(1===t.dialogType){var o={role_id:t.form.role_id,desc:t.form.desc,status:t.form.status};this.$confirm("此操作将编辑该账号?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(a.U)(t.form.id,o).then(function(){e.$message({type:"success",message:"修改成功!"}),t.show=!1,e.getList()})})}else if(0===t.dialogType){var i={role_id:t.form.role_id,desc:t.form.desc,passwd:r()(t.form.password),username:t.form.username};this.$confirm("此操作将添加新账号?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(a.a)(i).then(function(){e.$message({type:"success",message:"添加成功!"}),t.show=!1,e.getList()})})}else if(2===t.dialogType){var s={passwd_new:r()(t.form.password)};this.$confirm("此操作将修改此账号密码?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(a._5)(t.form.id,s).then(function(){e.$message({type:"success",message:"修改成功!"}),t.show=!1,e.getList()})})}}}},d={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"admin"},[e.$store.state.readonly?e._e():o("el-button",{staticStyle:{float:"right","margin-bottom":"10px"},attrs:{plain:"",type:"success"},on:{click:e.add}},[e._v("新增角色")]),e._v(" "),o("el-form",{ref:"searchFrom",attrs:{model:e.searchFrom,inline:"","label-width":"80px"}},[o("el-form-item",{attrs:{label:"用户名"}},[o("el-input",{model:{value:e.searchFrom.user_name,callback:function(t){e.$set(e.searchFrom,"user_name",t)},expression:"searchFrom.user_name"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"状态"}},[o("el-select",{attrs:{placeholder:"请选择用户状态"},on:{change:e.getList},model:{value:e.searchFrom.status,callback:function(t){e.$set(e.searchFrom,"status",t)},expression:"searchFrom.status"}},[o("el-option",{attrs:{label:"全部",value:""}}),e._v(" "),o("el-option",{attrs:{label:"启用",value:0}}),e._v(" "),o("el-option",{attrs:{label:"冻结",value:1}})],1)],1),e._v(" "),o("el-form-item",{attrs:{label:"角色"}},[o("el-select",{attrs:{placeholder:"请选择角色类型"},on:{change:e.getList},model:{value:e.searchFrom.role_id,callback:function(t){e.$set(e.searchFrom,"role_id",t)},expression:"searchFrom.role_id"}},[o("el-option",{attrs:{label:"全部",value:""}}),e._v(" "),e._l(e.roleList,function(e){return o("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})],2)],1),e._v(" "),o("el-form-item",[o("el-button",{attrs:{type:"primary",plain:""},on:{click:e.getList}},[e._v("搜索")])],1)],1),e._v(" "),o("el-table",{staticStyle:{width:"100%"},attrs:{data:e.adminList}},[o("el-table-column",{attrs:{prop:"id",label:"账号ID"}}),e._v(" "),o("el-table-column",{attrs:{prop:"user_name",label:"用户名"}}),e._v(" "),o("el-table-column",{attrs:{prop:"role_name",label:"角色"}}),e._v(" "),o("el-table-column",{attrs:{label:"状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("adminStatus")(t.row.status))+"\n ")]}}])}),e._v(" "),o("el-table-column",{attrs:{prop:"desc",label:"备注"}}),e._v(" "),o("el-table-column",{attrs:{prop:"last_login_at",label:"最后登陆时间",sortable:""}}),e._v(" "),e.$store.state.readonly?e._e():o("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("el-popover",{attrs:{placement:"top",width:"280"}},[o("div",{staticStyle:{"text-align":"center"}},[o("el-button",{attrs:{size:"mini",plain:"",type:"primary"},on:{click:function(o){e.edit(t.row)}}},[e._v("\n 编辑\n ")]),e._v(" "),o("el-button",{attrs:{size:"mini",type:"warning",plain:""},on:{click:function(o){e.editPW(t.row)}}},[e._v("\n 修改密码\n ")]),e._v(" "),e.$store.state.deletePermission?o("el-button",{attrs:{size:"mini",type:"danger",plain:""},on:{click:function(o){e.del(t.row)}}},[e._v("\n 删除\n ")]):e._e()],1),e._v(" "),o("el-button",{attrs:{slot:"reference",size:"mini",type:"text"},slot:"reference"},[e._v("操作")])],1)]}}])})],1),e._v(" "),o("page",{attrs:{nowPage:e.nowPage,total:e.total,limit:e.limit},on:{pageChange:e.onPageChange,sizeChange:e.onSizeChange}}),e._v(" "),o("el-dialog",{attrs:{title:e.dialog.title,center:"","append-to-body":"",visible:e.dialog.show,width:"30%"},on:{"update:visible":function(t){e.$set(e.dialog,"show",t)}}},[o("el-form",{ref:"form",attrs:{rules:e.dialog.rules,model:e.dialog.form,"label-width":"80px"}},[0===e.dialog.dialogType?o("el-form-item",{attrs:{label:"账号",prop:"username"}},[o("el-input",{model:{value:e.dialog.form.username,callback:function(t){e.$set(e.dialog.form,"username",t)},expression:"dialog.form.username"}})],1):e._e(),e._v(" "),2===e.dialog.dialogType||0===e.dialog.dialogType?o("el-form-item",{attrs:{label:"密码",prop:"password"}},[o("el-input",{attrs:{type:"password"},model:{value:e.dialog.form.password,callback:function(t){e.$set(e.dialog.form,"password",t)},expression:"dialog.form.password"}})],1):e._e(),e._v(" "),2===e.dialog.dialogType||0===e.dialog.dialogType?o("el-form-item",{attrs:{label:"确认密码",prop:"surePassword"}},[o("el-input",{attrs:{type:"password"},model:{value:e.dialog.form.surePassword,callback:function(t){e.$set(e.dialog.form,"surePassword",t)},expression:"dialog.form.surePassword"}})],1):e._e(),e._v(" "),2!==e.dialog.dialogType?o("el-form-item",{attrs:{label:"角色",prop:"role_id"}},[o("el-select",{attrs:{placeholder:"请选择"},model:{value:e.dialog.form.role_id,callback:function(t){e.$set(e.dialog.form,"role_id",t)},expression:"dialog.form.role_id"}},e._l(e.roleList,function(e){return o("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}))],1):e._e(),e._v(" "),2!==e.dialog.dialogType?o("el-form-item",{attrs:{label:"简述",prop:"desc"}},[o("el-input",{model:{value:e.dialog.form.desc,callback:function(t){e.$set(e.dialog.form,"desc",t)},expression:"dialog.form.desc"}})],1):e._e(),e._v(" "),1===e.dialog.dialogType?o("el-form-item",{attrs:{label:"状态",prop:"status"}},[o("el-select",{attrs:{placeholder:"请选择"},model:{value:e.dialog.form.status,callback:function(t){e.$set(e.dialog.form,"status",t)},expression:"dialog.form.status"}},e._l(e.dialog.select,function(e){return o("el-option",{key:e.code,attrs:{label:e.value,value:e.code}})}))],1):e._e()],1),e._v(" "),o("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[o("el-button",{on:{click:function(t){e.dialog.show=!1}}},[e._v("取 消")]),e._v(" "),o("el-button",{attrs:{type:"primary"},on:{click:e.onSub}},[e._v("确 定")])],1)],1)],1)},staticRenderFns:[]};var c=o("VU/8")(n,d,!1,function(e){o("qbdU")},"data-v-7e29e74f",null);t.default=c.exports},qbdU:function(e,t){}});
\ No newline at end of file
webpackJsonp([43],{H0pm:function(e,t){},mjLz:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("CCn6"),n={name:"dayOrderCount",data:function(){var e=this;return{goodsList:[],headList:[],tableData:[],today:{text:"今天",onClick:function(){e.searchFrom.dateValue=[e.formatTime(new Date),e.formatTime(new Date)]}},yesterday:{text:"昨天",onClick:function(){var t=e.formatTime(new Date((new Date).getTime()-864e5));e.searchFrom.dateValue=[t,t]}},last30Day:{text:"过去30天",onClick:function(){var t=e.formatTime(new Date((new Date).getTime()-2592e6));e.searchFrom.dateValue=[t,e.formatTime(new Date)]}},searchFrom:{priceList:[],dateValue:[]}}},mounted:function(){this.defaultTime(),this.initPage()},filters:{toFixed2:function(e){if("number"==typeof e){var t=e.toString().split(".");return t.length>1&&t[1].length>2?Number(e).toFixed(2):e}return e}},methods:{formatTime:function(e){var t=e.getFullYear(),a=e.getMonth()+1;a<10&&(a="0"+a);var r=e.getDate();return r<10&&(r="0"+r),t+"-"+a+"-"+r},initPage:function(){var e=this;Object(r._37)({limit:99999,course_type:1}).then(function(t){t.list.forEach(function(t){e.searchFrom.priceList.push(t.id)}),e.goodsList=t.list,e.searchPage()})},searchPage:function(){var e=this;if(this.searchFrom.dateValue.length<2)this.$message.error("请先选择起止日期");else{var t={start_at:this.searchFrom.dateValue[0],end_at:this.searchFrom.dateValue[1],goods_ids:this.searchFrom.priceList.toString(),course_type:1};Object(r._80)(t).then(function(t){if(t.length>0){var a=t[0];for(var r in e.tableData=t,e.headList=[],a)"cur_date"===r?e.headList.push("时间"):"register_num"===r?e.headList.push("注册数"):"total_money"===r?e.headList.push("总金额"):e.headList.push(r)}})}},defaultTime:function(){var e=new Date,t=e.getFullYear(),a=e.getMonth()+1;a<10&&(a="0"+a);var r=e.getDate();r<10&&(r="0"+r);var n=t+"-"+a+"-01",s=t+"-"+a+"-"+r;this.searchFrom.dateValue=[n,s]}}},s={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"orderCount"},[a("el-form",{ref:"searchFrom",attrs:{inline:"",model:e.searchFrom,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"商品"}},[a("el-select",{staticStyle:{width:"600px"},attrs:{"collapse-tags":"",multiple:"",filterable:"",placeholder:"请选择"},on:{change:e.searchPage},model:{value:e.searchFrom.priceList,callback:function(t){e.$set(e.searchFrom,"priceList",t)},expression:"searchFrom.priceList"}},e._l(e.goodsList,function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}))],1),e._v(" "),a("el-form-item",{attrs:{label:"起止日期"}},[a("el-date-picker",{attrs:{"unlink-panels":"","picker-options":{shortcuts:[e.today,e.yesterday,e.last30Day]},type:"daterange","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:e.searchPage},model:{value:e.searchFrom.dateValue,callback:function(t){e.$set(e.searchFrom,"dateValue",t)},expression:"searchFrom.dateValue"}})],1),e._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.searchPage()}}},[e._v("\n 搜索\n ")])],1)],1),e._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData}},e._l(e.headList,function(t){return a("el-table-column",{key:t,attrs:{label:t},scopedSlots:e._u([{key:"default",fn:function(r){return["时间"===t?a("span",[e._v("\n "+e._s(r.row.cur_date)+"\n ")]):e._e(),e._v(" "),"注册数"===t?a("span",[e._v("\n "+e._s(r.row.register_num)+"\n ")]):e._e(),e._v(" "),"总金额"===t?a("span",[e._v("\n "+e._s(r.row.total_money)+"\n ")]):e._e(),e._v(" "),"时间"!==t&&"注册数"!==t&&"总金额"!==t?a("span",[e._v("\n "+e._s(e._f("toFixed2")(r.row[t]))+"\n ")]):e._e()]}}])})}))],1)},staticRenderFns:[]};var i=a("VU/8")(n,s,!1,function(e){a("H0pm")},"data-v-5584835a",null);t.default=i.exports}});
\ No newline at end of file
webpackJsonp([44],{rNd7:function(e,t){},"s7i+":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("CCn6"),s={name:"index",data:function(){return{goodsList:[],headList:[],tableData:[],searchFrom:{priceList:[],dateValue:[]}}},mounted:function(){this.defaultTime(),this.initPage()},filters:{toFixed2:function(e){if("number"==typeof e){var t=e.toString().split(".");return t.length>1&&t[1].length>2?Number(e).toFixed(2):e}return e}},methods:{initPage:function(){var e=this;Object(r._37)({limit:99999}).then(function(t){t.list.forEach(function(t){e.searchFrom.priceList.push(t.id)}),e.goodsList=t.list,e.searchPage()})},searchPage:function(){var e=this;if(this.searchFrom.dateValue.length<2)this.$message.error("请先选择起止日期");else{var t={start_at:this.searchFrom.dateValue[0],end_at:this.searchFrom.dateValue[1],goods_ids:this.searchFrom.priceList.toString()};Object(r._80)(t).then(function(t){if(t.length>0){var a=t[0];for(var r in e.tableData=t,e.headList=[],a)"cur_date"===r?e.headList.push("时间"):"register_num"===r?e.headList.push("注册数"):"total_money"===r?e.headList.push("总金额"):e.headList.push(r)}})}},defaultTime:function(){var e=new Date,t=e.getFullYear(),a=e.getMonth()+1;a<10&&(a="0"+a);var r=e.getDate();r<10&&(r="0"+r);var s=t+"-"+a+"-01",n=t+"-"+a+"-"+r;this.searchFrom.dateValue=[s,n]}}},n={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"orderCount"},[a("el-form",{ref:"searchFrom",attrs:{inline:"",model:e.searchFrom,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"商品"}},[a("el-select",{staticStyle:{width:"600px"},attrs:{"collapse-tags":"",multiple:"",filterable:"",placeholder:"请选择"},on:{change:e.searchPage},model:{value:e.searchFrom.priceList,callback:function(t){e.$set(e.searchFrom,"priceList",t)},expression:"searchFrom.priceList"}},e._l(e.goodsList,function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}))],1),e._v(" "),a("el-form-item",{attrs:{label:"起止日期"}},[a("el-date-picker",{attrs:{"unlink-panels":"",type:"daterange","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:e.searchPage},model:{value:e.searchFrom.dateValue,callback:function(t){e.$set(e.searchFrom,"dateValue",t)},expression:"searchFrom.dateValue"}})],1),e._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.searchPage()}}},[e._v("\n 搜索\n ")])],1)],1),e._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData}},e._l(e.headList,function(t){return a("el-table-column",{key:t,attrs:{label:t},scopedSlots:e._u([{key:"default",fn:function(r){return["时间"===t?a("span",[e._v("\n "+e._s(r.row.cur_date)+"\n ")]):e._e(),e._v(" "),"注册数"===t?a("span",[e._v("\n "+e._s(r.row.register_num)+"\n ")]):e._e(),e._v(" "),"总金额"===t?a("span",[e._v("\n "+e._s(r.row.total_money)+"\n ")]):e._e(),e._v(" "),"时间"!==t&&"注册数"!==t&&"总金额"!==t?a("span",[e._v("\n "+e._s(e._f("toFixed2")(r.row[t]))+"\n ")]):e._e()]}}])})}))],1)},staticRenderFns:[]};var i=a("VU/8")(s,n,!1,function(e){a("rNd7")},"data-v-47bc2fac",null);t.default=i.exports}});
\ No newline at end of file
webpackJsonp([45],{iPJD:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i("CCn6"),l={name:"upload",data:function(){return{fileList:[]}},methods:{uploadFileVideo1Banner:function(e){var t=this;Object(n._109)({file:e.file,type:"local"}).then(function(e){e.url="https://cdn.singsingenglish.com/"+e.url,t.fileList.push(e)})}}},a={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("el-upload",{staticClass:"upload-demo",attrs:{action:"/api/public/upload","http-request":e.uploadFileVideo1Banner,"list-type":"picture-card",multiple:""}}),e._v(" "),i("pre",[e._v(" <p>\n ")]),e._v(" "),e._l(e.fileList,function(t){return i("pre",[e._v(' <img src="'+e._s(t.url)+'" style="display:block">\n ')])}),e._v(" "),i("pre",[e._v(" </p>\n ")])],2)},staticRenderFns:[]};var r=i("VU/8")(l,a,!1,function(e){i("wi9J")},"data-v-3a2ff3b1",null);t.default=r.exports},wi9J:function(e,t){}});
\ No newline at end of file
webpackJsonp([46],{"0HId":function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=s("CCn6"),n=s("NC6I"),o=s.n(n),i={data:function(){return{login:{username:"",password:""},loginRules:{username:[{required:!0,message:"请输入您的用户名",trigger:"blur"}],password:[{required:!0,message:"请输入您的密码",trigger:"blur"}]}}},mounted:function(){var e=this;document.onkeydown=function(t){var s=t||window.event;if(13===(s.keyCode||s.which||s.charCode)&&"login"===e.$route.name)return e.submitForm(),!1;return!0}},methods:{submitForm:function(){var e=this;this.$refs.loginForm.validate(function(t){if(t){var s={username:e.login.username,password:o()(e.login.password)};Object(r._77)(s).then(function(t){if(t.teacher_info){var s=JSON.stringify(t.teacher_info);localStorage.setItem("phoneNum",s)}else localStorage.setItem("phoneNum","");e.$store.dispatch("setToken",t.token),e.$store.dispatch("setUserName",t.desc),e.$store.dispatch("setPermission",JSON.parse(t.roles.menu_ids)),window.location.href="/"})}})}}},a={render:function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"login"},[s("div",{staticClass:"wrap-main"},[s("h1",{staticClass:"title"},[e._v("唱唱启蒙——后台管理系统")]),e._v(" "),s("el-form",{ref:"loginForm",attrs:{model:e.login,rules:e.loginRules}},[s("el-form-item",{attrs:{prop:"username"}},[s("el-input",{attrs:{placeholder:"用户名"},model:{value:e.login.username,callback:function(t){e.$set(e.login,"username",t)},expression:"login.username"}})],1),e._v(" "),s("el-form-item",{attrs:{prop:"password"}},[s("el-input",{attrs:{type:"password",placeholder:"密码"},model:{value:e.login.password,callback:function(t){e.$set(e.login,"password",t)},expression:"login.password"}})],1),e._v(" "),s("el-form-item",[s("el-button",{staticClass:"btn",attrs:{size:"medium",type:"primary"},on:{click:e.submitForm}},[e._v("登陆")])],1)],1)],1)])},staticRenderFns:[]};var l=s("VU/8")(i,a,!1,function(e){s("eumS")},"data-v-2dac99f0",null);t.default=l.exports},eumS:function(e,t){}});
\ No newline at end of file
webpackJsonp([47],{aTXs:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o("CCn6"),n={data:function(){return{nowPage:1,total:0,menuList:[],plist:[],dialog:{title:"新增菜单",show:!1,rules:{name:[{required:!0,message:"请填写菜单名称",trigger:"change"}],cover:[{required:!0,message:"请填写菜单code",trigger:"change"}]},form:{id:"",name:"",cover:"",pid:0,type:2}}}},created:function(){this.getList()},methods:{getList:function(){var e=this;Object(i._44)().then(function(t){t&&(e.menuList=[],e.plist=[],t.forEach(function(t){e.menuList.push(t),e.plist.push(t),t.children&&t.children.forEach(function(t){e.menuList.push(t)})}))})},edit:function(e){this.dialog.show=!0,this.dialog.form.id=e.id,this.dialog.title="编辑菜单",this.dialog.form.name=e.name,this.dialog.form.cover=e.cover,this.dialog.form.pid=e.pid},add:function(){this.dialog.show=!0,this.dialog.form.id="",this.dialog.title="新增菜单",this.dialog.form.name="",this.dialog.form.pid=0,this.dialog.form.cover=""},del:function(e){var t=this;this.$confirm("此操作将删除该菜单?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(i.I)(e.id).then(function(e){t.$message({type:"success",message:"删除成功!"}),t.getList()})})},sub:function(){var e=this;this.$refs.form.validate(function(t){if(t){var o=e.dialog;if(o.form.id){var n={name:o.form.name,cover:o.form.cover,pid:o.form.pid};e.$confirm("此操作将修改该菜单?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(i._102)(o.form.id,n).then(function(){e.$message({type:"success",message:"修改成功!"}),o.show=!1,e.getList()})})}else{var a={name:o.form.name,cover:o.form.cover,pid:o.form.pid};e.$confirm("此操作将添加新菜单?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(i._86)(a).then(function(){e.$message({type:"success",message:"添加成功!"}),o.show=!1,e.getList()})})}}})}}},a={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"menu"},[o("div",{staticClass:"head clear-both"},[e.$store.state.readonly?e._e():o("el-button",{staticStyle:{float:"right"},attrs:{plain:"",type:"success"},on:{click:e.add}},[e._v("新增菜单")])],1),e._v(" "),o("el-table",{staticStyle:{width:"100%"},attrs:{data:e.menuList}},[o("el-table-column",{attrs:{prop:"name",label:"菜单名称"}}),e._v(" "),o("el-table-column",{attrs:{prop:"cover",label:"菜单Code"}}),e._v(" "),e.$store.state.readonly?e._e():o("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("el-button",{attrs:{size:"mini",plain:"",type:"primary"},on:{click:function(o){e.edit(t.row)}}},[e._v("\n 编辑\n ")]),e._v(" "),e.$store.state.deletePermission?o("el-button",{attrs:{size:"mini",type:"danger",plain:""},on:{click:function(o){e.del(t.row)}}},[e._v("\n 删除\n ")]):e._e()]}}])})],1),e._v(" "),o("el-dialog",{attrs:{title:e.dialog.title,center:"","append-to-body":"",visible:e.dialog.show,width:"30%"},on:{"update:visible":function(t){e.$set(e.dialog,"show",t)}}},[o("el-form",{ref:"form",attrs:{rules:e.dialog.rules,model:e.dialog.form,"label-width":"100px"}},[o("el-form-item",{attrs:{label:"菜单名称",prop:"name"}},[o("el-input",{model:{value:e.dialog.form.name,callback:function(t){e.$set(e.dialog.form,"name",t)},expression:"dialog.form.name"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"菜单Code",prop:"cover"}},[o("el-input",{model:{value:e.dialog.form.cover,callback:function(t){e.$set(e.dialog.form,"cover",t)},expression:"dialog.form.cover"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"上级菜单",prop:"cover"}},[o("el-select",{attrs:{placeholder:"请选择"},model:{value:e.dialog.form.pid,callback:function(t){e.$set(e.dialog.form,"pid",t)},expression:"dialog.form.pid"}},[o("el-option",{attrs:{label:"无",value:0}}),e._v(" "),e._l(e.plist,function(e){return o("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})],2)],1)],1),e._v(" "),o("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[o("el-button",{on:{click:function(t){e.dialog.show=!1}}},[e._v("取 消")]),e._v(" "),o("el-button",{attrs:{type:"primary"},on:{click:e.sub}},[e._v("确 定")])],1)],1)],1)},staticRenderFns:[]};var l=o("VU/8")(n,a,!1,function(e){o("tdTk")},"data-v-2a1ecd9d",null);t.default=l.exports},tdTk:function(e,t){}});
\ No newline at end of file
webpackJsonp([48],{iXaR:function(e,n){},usUK:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i={render:function(){var e=this.$createElement;return(this._self._c||e)("div",[this._v("\n 发货列表\n")])},staticRenderFns:[]};var a=t("VU/8")({name:"index"},i,!1,function(e){t("iXaR")},"data-v-25f084f7",null);n.default=a.exports}});
\ No newline at end of file
webpackJsonp([49],{"1Mg7":function(e,t){},hLMI:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("kmJW"),s=a("sf/l"),i=a("CCn6"),o={name:"index",components:{page:r.a},data:function(){return{total:0,nowPage:1,limit:10,searchFrom:{source:""},tableData:[]}},created:function(){this.initPage()},methods:{initPage:function(){var e=this,t={limit:this.limit,page:this.nowPage};this.searchFrom.time&&(t.time=this.searchFrom.time),this.searchFrom.source&&(t.source=this.searchFrom.source),this.searchFrom.time&&this.searchFrom.time.length>0&&(t.date_start=s.a.dateFmt(this.searchFrom.time[0],"yyyy-MM-dd hh:mm:ss"),t.date_end=s.a.dateFmt(this.searchFrom.time[1],"yyyy-MM-dd hh:mm:ss")),Object(i._16)(t).then(function(t){e.tableData=t.list,e.total=t.total})},onPageChange:function(e){this.nowPage=e,this.initPage()},onSizeChange:function(e){this.nowPage=1,this.limit=e,this.initPage()},doExport:function(){var e="?type=export";this.searchFrom.source&&(e=e+"&source="+this.searchFrom.source),this.searchFrom.time&&this.searchFrom.time.length>0&&(e=(e=e+"&date_start="+s.a.dateFmt(this.searchFrom.time[0],"yyyy-MM-dd hh:mm:ss"))+"&date_end="+s.a.dateFmt(this.searchFrom.time[1],"yyyy-MM-dd hh:mm:ss")),window.open("/api/public/ads/export/all"+e)}}},l={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"index"},[a("el-form",{ref:"searchFrom",attrs:{model:e.searchFrom,"label-width":"80px"}},[a("el-row",[a("el-col",{attrs:{lg:10,sm:24,md:24}},[a("el-form-item",{attrs:{label:"购买时间"}},[a("el-date-picker",{attrs:{type:"datetimerange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","default-time":["00:00:00","23:59:59"]},model:{value:e.searchFrom.time,callback:function(t){e.$set(e.searchFrom,"time",t)},expression:"searchFrom.time"}})],1)],1),e._v(" "),a("el-col",{attrs:{lg:4,sm:24,md:12}},[a("el-form-item",{attrs:{label:"来源"}},[a("el-input",{attrs:{placeholder:"名称",size:"small"},model:{value:e.searchFrom.source,callback:function(t){e.$set(e.searchFrom,"source",t)},expression:"searchFrom.source"}})],1)],1),e._v(" "),a("el-col",{attrs:{lg:4,sm:24,md:12}},[a("el-form-item",[a("el-button",{attrs:{type:"primary",plain:"",size:"small"},on:{click:e.initPage}},[e._v("\n 搜索\n ")])],1)],1),e._v(" "),a("el-col",{attrs:{lg:4,sm:24,md:12}},[a("el-form-item",[a("el-button",{attrs:{type:"primary",plain:"",size:"small"},on:{click:e.doExport}},[e._v("\n 导出\n ")])],1)],1)],1)],1),e._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData}},[a("el-table-column",{attrs:{prop:"name",label:"宝贝名称"}}),e._v(" "),a("el-table-column",{attrs:{prop:"create_at",label:"添加时间"}}),e._v(" "),a("el-table-column",{attrs:{prop:"source",label:"来源"}})],1),e._v(" "),a("page",{attrs:{total:e.total,limit:e.limit},on:{pageChange:e.onPageChange,sizeChange:e.onSizeChange}})],1)},staticRenderFns:[]};var m=a("VU/8")(o,l,!1,function(e){a("1Mg7")},"data-v-258bae78",null);t.default=m.exports}});
\ No newline at end of file
webpackJsonp([5],{"6CEz":function(e,t){},"7Mat":function(e,t){},Fjek:function(e,t){},JZkw:function(e,t){},Nf5m:function(e,t){},P0f4:function(e,t,i){"use strict";var r=1;function o(e,t){return e.filter(function(e){return e.value===t})[0].children}var a=i("xGts").a.filter(function(e){return e.type==r}),s={name:"vueAddress",props:["province","city","district","detail","name","mobile"],created:function(){},mounted:function(){this.show=this.showAddressPicker},computed:{cities:function(){return this.form.province?o(a,this.form.province):[]},districts:function(){return this.form.city?o(this.cities,this.form.city):[]}},data:function(){return{rules:{province:[{required:!0,message:"请选择省份",trigger:"change"}],city:[{required:!0,message:"请选择城市",trigger:"change"}],district:[{required:!0,message:"请选择区/县",trigger:"change"}],detail:[{required:!0,message:"请填写详细地址",trigger:"change"}],name:[{required:!0,message:"请填写收货人",trigger:"change"}],mobile:[{required:!0,message:"请填写手机号",trigger:"change"}]},form:{province:this.province,city:this.city,district:this.district,detail:this.detail,name:this.name,mobile:this.mobile},provinces:a}},watch:{form:{handler:function(e){this.$emit("change",e)},deep:!0}},methods:{proChange:function(e,t){t&&(this.form.city="",this.form.district=""),this.form.city=this.cities[0].value,this.form.district=this.districts[0].value},cityChange:function(e,t){this.form.district=this.districts[0].value},districtChange:function(e,t){t&&(this.form.detail="")},detailChange:function(e){console.log(e)}}},n={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"address"},[i("section",{staticStyle:{width:"100%",height:"100%"}},[i("el-form",{ref:"form",staticClass:"demo-ruleForm",attrs:{model:e.form,"label-width":"100px",rules:e.rules}},[i("el-row",{attrs:{gutter:20}},[i("el-col",{attrs:{span:20}},[i("el-form-item",{attrs:{prop:"name",label:"收货人"}},[i("el-input",{model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1)],1)],1),e._v(" "),i("el-row",{attrs:{gutter:20}},[i("el-col",{attrs:{span:20}},[i("el-form-item",{attrs:{prop:"mobile",label:"手机号"}},[i("el-input",{model:{value:e.form.mobile,callback:function(t){e.$set(e.form,"mobile",t)},expression:"form.mobile"}})],1)],1)],1),e._v(" "),i("el-row",{staticClass:"address",attrs:{gutter:20}},[i("el-col",{attrs:{span:20}},[i("el-form-item",{attrs:{prop:"province",label:"省"}},[i("el-select",{attrs:{placeholder:"请选择省"},on:{change:e.proChange},model:{value:e.form.province,callback:function(t){e.$set(e.form,"province",t)},expression:"form.province"}},e._l(e.provinces,function(e){return i("el-option",{key:e.value,attrs:{value:e.value,label:e.label}})}))],1)],1)],1),e._v(" "),i("el-row",{staticClass:"address",attrs:{gutter:20}},[i("el-col",{attrs:{span:20}},[i("el-form-item",{attrs:{prop:"city",label:"市"}},[i("el-select",{attrs:{placeholder:"请选择市"},on:{change:e.cityChange},model:{value:e.form.city,callback:function(t){e.$set(e.form,"city",t)},expression:"form.city"}},e._l(e.cities,function(e){return i("el-option",{key:e.value,attrs:{value:e.value,label:e.label}})}))],1)],1)],1),e._v(" "),i("el-row",{staticClass:"address",attrs:{gutter:20}},[i("el-col",{attrs:{span:20}},[i("el-form-item",{attrs:{prop:"district",label:"县/区"}},[i("el-select",{attrs:{placeholder:"请选择区/县"},on:{change:e.districtChange},model:{value:e.form.district,callback:function(t){e.$set(e.form,"district",t)},expression:"form.district"}},e._l(e.districts,function(e){return i("el-option",{key:e.value,attrs:{value:e.value,label:e.label}})}))],1)],1)],1),e._v(" "),i("el-row",{staticClass:"address",attrs:{gutter:20}},[i("el-col",{attrs:{span:20}},[i("el-form-item",{attrs:{prop:"detail",label:"详细地址"}},[i("el-input",{attrs:{placeholder:"请填写详细地址",number:!0},model:{value:e.form.detail,callback:function(t){e.$set(e.form,"detail",t)},expression:"form.detail"}})],1)],1)],1)],1)],1)])},staticRenderFns:[]};var l=i("VU/8")(s,n,!1,function(e){i("e5ri")},"data-v-02351020",null);t.a=l.exports},Rq8b:function(e,t){},TpV2:function(e,t){},e5ri:function(e,t){},emxl:function(e,t){},sRf7:function(e,t){},xdzM:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i("CCn6"),o=i("kmJW"),a=i("P0f4"),s=i("xGts"),n={name:"dialogObj",props:["dialogObj"],data:function(){return{}},methods:{handlerAddressChange:function(e){if(e.province&&e.city&&e.district){this.dialogObj.detail=e.detail,this.dialogObj.province=e.province,this.dialogObj.city=e.city,this.dialogObj.receive_mobile=e.mobile,this.dialogObj.receive_name=e.name;var t=s.a.filter(function(t){return t.value===e.province}),i=t[0].children.filter(function(t){return t.value===e.city}),r=i[0].children.filter(function(t){return t.value===e.district});this.dialogObj.province_name=t[0].label,this.dialogObj.city_name=i[0].label,this.dialogObj.district_name=r.length>0?r[0].label:i[0].children[0].label,this.dialogObj.district=r.length>0?r[0].value:i[0].children[0].value}},saveAddress:function(){var e=this;this.$confirm("确定保存?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){var t={province_id:e.dialogObj.province,province_name:e.dialogObj.province_name,city_id:e.dialogObj.city,city:e.dialogObj.city_name,area:e.dialogObj.district_name,area_id:e.dialogObj.district,address:e.dialogObj.detail,receive_name:e.dialogObj.receive_name,receive_mobile:e.dialogObj.receive_mobile};Object(r.T)(e.dialogObj.id,t).then(function(t){e.$message({type:"success",message:"修改成功"}),e.dialogObj.show=!1,e.$emit("reflash")})})}},components:{vueAddress:a.a},mounted:function(){}},l={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{attrs:{title:"编辑收货地址",center:"","append-to-body":"",visible:e.dialogObj.show,width:"800px"},on:{"update:visible":function(t){e.$set(e.dialogObj,"show",t)}}},[i("vue-address",{attrs:{province:e.dialogObj.province,city:e.dialogObj.city,district:e.dialogObj.district,detail:e.dialogObj.detail,mobile:e.dialogObj.receive_mobile,name:e.dialogObj.receive_name},on:{change:e.handlerAddressChange}}),e._v(" "),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(t){e.dialogObj.show=!1}}},[e._v("取 消")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.saveAddress}},[e._v("保 存")])],1)],1)},staticRenderFns:[]};var c=i("VU/8")(n,l,!1,function(e){i("Fjek")},"data-v-ccd3c4a4",null).exports,d=i("+TkF"),u=i("sf/l"),_={name:"newdialogObj",props:["newdialogObj"],data:function(){return{rules:{periods_id:[{required:!0,message:"请输入期数名称",trigger:"change"}],goods_id:[{required:!0,message:"请输入商品名称",trigger:"change"}],money:[{required:!0,message:"请输入金额",trigger:"blur"}],user_id:[{required:!0,message:"请输入用户ID",trigger:"blur"}],pay_at:[{required:!0,message:"请选择日期",trigger:"change"}],order_type:[{required:!0,message:"请选择支付类型",trigger:"change"}]},nowPage:1,limit:200,total:0,form:{periods_id:"",goods_id:"",user_id:"",money:"",buy_type:"",invite_id:"",desc:"",province_name:"",city:"",area:"",city_name:"",district_name:"",district:"",province:"",address:"",receive_mobile:"",receive_name:"",order_type:"",pay_at:""},goodsList:[],periodsList:[],pickerOptions1:"",buyWayOptioms:d.e,teacherList:[],addShow:!1,searchFrom:{},userList:[],multipleSelection:[]}},components:{vueAddress:a.a,page:o.a},filters:{filterGoods:function(e){return"["+d.g[e.goods_type]+"]["+e.current_price/100+"元]"+e.name}},methods:{onPageChange:function(e){this.nowPage=e,this.getUser()},onSizeChange:function(e){this.limit=e,this.nowPage=1,this.getUser()},handleSelectionChange:function(e){this.multipleSelection=e},getUser:function(){var e=this,t={page:this.nowPage,limit:5};this.searchFrom.userId&&(t.user_id=this.searchFrom.userId),this.searchFrom.nickName&&(t.nickname=this.searchFrom.nickName),this.searchFrom.mobile&&(t.mobile=this.searchFrom.mobile),Object(r._69)(t).then(function(t){e.userList=t.list,e.total=t.total})},saveAddOrder:function(e){var t=this;this.$refs.form.validate(function(i){if(!i)return console.log("error submit!!"),!1;var o={periods_id:e.periods_id,goods_id:e.goods_id,user_id:e.user_id,money:e.money,province_name:e.province_name,city_id:e.city,city:e.city_name,area:e.district_name,area_id:e.district,province_id:e.province,address:e.address,receive_mobile:e.receive_mobile,receive_name:e.receive_name,order_type:e.order_type};o.money=o.money,e.pay_at&&(o.pay_at=u.a.dateFmt(e.pay_at,"yyyy-MM-dd hh:mm:ss")),t.form.invite_id&&(o.invite_id=t.form.invite_id),t.form.desc&&(o.desc=t.form.desc),o.invite_type="TEACHER",o.province_name&&o.address&&o.receive_mobile&&o.receive_name?Object(r._91)(o).then(function(e){t.newdialogObj.show=!1,t.$emit("reflash"),t.$message({message:"添加成功",type:"success"})}):t.$message({message:"缺少必填项",type:"warning"})})},handlerAddressChange:function(e){if(e.province&&e.city&&e.district){this.form.address=e.detail,this.form.province=e.province,this.form.city=e.city,this.form.receive_mobile=e.mobile,this.form.receive_name=e.name;var t=s.a.filter(function(t){return t.value===e.province}),i=t[0].children.filter(function(t){return t.value===e.city}),r=i[0].children.filter(function(t){return t.value===e.district});this.form.province_name=t[0].label,this.form.city_name=i[0].label,this.form.district_name=r.length>0?r[0].label:i[0].children[0].label,this.form.district=r.length>0?r[0].value:i[0].children[0].value}},getGoodsOption:function(){var e=this;Object(r._37)({page:1,limit:200,course_type:0}).then(function(t){e.goodsList=t.list})},onOptionChange:function(e){var t=this;this.form.periods_id="",Object(r._48)({goods_id:e}).then(function(e){t.periodsList=e.list})},getTeacherList:function(e){var t=this,i={limit:100,page:1};e&&(i.name=e),Object(r._65)(i).then(function(e){t.teacherList=e.list})},remoteMethod:function(e){""!==e?this.getTeacherList(e):this.getTeacherList()},onAddUser:function(){this.addShow=!0,this.getUser()},onAdd:function(){0!==this.multipleSelection.length?1===this.multipleSelection.length?(this.form.user_id=this.multipleSelection[0].user_id,this.addShow=!1):this.$message({type:"error",message:"只能选择一个用户!"}):this.$message({type:"error",message:"请选择用户!"})}},watch:{"newdialogObj.show":function(e){e&&(this.getGoodsOption(),this.getTeacherList())}},mounted:function(){}},m={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{attrs:{title:"新增订单",center:"","append-to-body":"",visible:e.newdialogObj.show,width:"70%"},on:{"update:visible":function(t){e.$set(e.newdialogObj,"show",t)}}},[i("el-form",{ref:"form",attrs:{model:e.form,"label-width":"120px",rules:e.rules}},[i("el-row",[i("el-col",{attrs:{span:10}},[i("el-form-item",{attrs:{label:"商品名称",prop:"goods_id"}},[i("el-select",{attrs:{placeholder:"请选择"},on:{change:e.onOptionChange},model:{value:e.form.goods_id,callback:function(t){e.$set(e.form,"goods_id",t)},expression:"form.goods_id"}},e._l(e.goodsList,function(t,r){return i("el-option",{key:r,attrs:{label:e._f("filterGoods")(t),value:t.id}})}))],1)],1),e._v(" "),i("el-col",{attrs:{span:10}},[i("el-form-item",{attrs:{label:"期数名称",prop:"periods_id"}},[i("el-select",{attrs:{placeholder:"请选择"},model:{value:e.form.periods_id,callback:function(t){e.$set(e.form,"periods_id",t)},expression:"form.periods_id"}},e._l(e.periodsList,function(e,t){return i("el-option",{key:t,attrs:{label:e.title,value:e.id}})}))],1)],1)],1),e._v(" "),i("el-row",[i("el-col",{attrs:{span:10}},[i("el-form-item",{attrs:{label:"用户ID",prop:"user_id"}},[i("el-input",{model:{value:e.form.user_id,callback:function(t){e.$set(e.form,"user_id",t)},expression:"form.user_id"}}),e._v(" "),i("el-button",{attrs:{type:"success"},on:{click:e.onAddUser}},[e._v("+添加用户")])],1)],1),e._v(" "),i("el-col",{attrs:{span:10}},[i("el-form-item",{attrs:{label:"添加推广人"}},[i("el-select",{attrs:{filterable:"",clearable:"",placeholder:"请输入名称","remote-method":e.remoteMethod},model:{value:e.form.invite_id,callback:function(t){e.$set(e.form,"invite_id",t)},expression:"form.invite_id"}},e._l(e.teacherList,function(e){return i("el-option",{key:e.id,attrs:{label:e.name,value:e.user_id}})}))],1)],1)],1),e._v(" "),i("el-row",[i("el-col",{attrs:{span:10}},[i("el-form-item",{attrs:{label:"支付类型",prop:"order_type"}},[i("el-select",{attrs:{placeholder:"请选择"},model:{value:e.form.order_type,callback:function(t){e.$set(e.form,"order_type",t)},expression:"form.order_type"}},e._l(e.buyWayOptioms,function(e){return i("el-option",{key:e.id,attrs:{label:e.value,value:e.id,disabled:e.disabled}})}))],1)],1),e._v(" "),i("el-col",{attrs:{span:10}},[i("el-form-item",{attrs:{label:"实付金额(元)",prop:"money"}},[i("el-input-number",{model:{value:e.form.money,callback:function(t){e.$set(e.form,"money",t)},expression:"form.money"}})],1)],1)],1),e._v(" "),i("el-row",[i("el-col",{attrs:{span:10}},[i("el-form-item",{attrs:{label:"支付时间",prop:"pay_at"}},[i("el-date-picker",{attrs:{type:"datetime","picker-options":e.pickerOptions1,"default-time":"12:00:00",placeholder:"选择日期时间"},model:{value:e.form.pay_at,callback:function(t){e.$set(e.form,"pay_at",t)},expression:"form.pay_at"}})],1)],1),e._v(" "),i("el-col",{attrs:{span:10}},[i("el-form-item",{attrs:{label:"备注"}},[i("el-input",{attrs:{type:"textarea"},model:{value:e.form.desc,callback:function(t){e.$set(e.form,"desc",t)},expression:"form.desc"}})],1)],1)],1),e._v(" "),i("el-row",[i("el-col",{attrs:{span:12}},[i("vue-address",{attrs:{province:e.form.province_name,city:e.form.city,district:e.form.area,detail:e.form.address,mobile:e.form.receive_mobile,name:e.form.receive_name},on:{change:e.handlerAddressChange}})],1)],1)],1),e._v(" "),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(t){e.newdialogObj.show=!1}}},[e._v("取 消")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:function(t){e.saveAddOrder(e.form)}}},[e._v("确定")])],1),e._v(" "),i("el-dialog",{attrs:{modal:!1,visible:e.addShow},on:{"update:visible":function(t){e.addShow=t}}},[i("el-form",{attrs:{"label-width":"90px"}},[i("el-row",[i("el-col",{attrs:{span:8}},[i("el-form-item",{attrs:{label:"ID"}},[i("el-input",{model:{value:e.searchFrom.userId,callback:function(t){e.$set(e.searchFrom,"userId",t)},expression:"searchFrom.userId"}})],1)],1),e._v(" "),i("el-col",{attrs:{span:8}},[i("el-form-item",{attrs:{label:"昵称"}},[i("el-input",{model:{value:e.searchFrom.nickName,callback:function(t){e.$set(e.searchFrom,"nickName",t)},expression:"searchFrom.nickName"}})],1)],1),e._v(" "),i("el-col",{attrs:{span:8}},[i("el-form-item",{attrs:{label:"电话"}},[i("el-input",{model:{value:e.searchFrom.mobile,callback:function(t){e.$set(e.searchFrom,"mobile",t)},expression:"searchFrom.mobile"}})],1)],1)],1),e._v(" "),i("el-row",[i("el-col",{attrs:{span:8,offset:16}},[i("el-form-item",[i("el-button",{staticStyle:{float:"right"},attrs:{type:"primary",plain:""},on:{click:e.getUser}},[e._v("搜索")])],1)],1)],1)],1),e._v(" "),i("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:e.userList},on:{"selection-change":e.handleSelectionChange}},[i("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),i("el-table-column",{attrs:{className:"f-c",label:"用户"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("img",{staticStyle:{"margin-right":"5px",width:"50px",height:"50px","border-radius":"50px"},attrs:{src:t.row.avatar}}),e._v(e._s(t.row.nickname)+"(ID:"+e._s(t.row.user_id)+")\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"mobile",label:"手机号"}})],1),e._v(" "),i("page",{attrs:{total:e.total,limit:e.limit},on:{pageChange:e.onPageChange,sizeChange:e.onSizeChange}}),e._v(" "),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(t){e.addShow=!1}}},[e._v("取 消")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.onAdd}},[e._v("确 定")])],1)],1)],1)},staticRenderFns:[]};var h=i("VU/8")(_,m,!1,function(e){i("TpV2")},"data-v-a1bb8d26",null).exports,f={name:"sourceDialog",props:["dialogObj"],data:function(){return{detail:[]}},filters:{moneyYuan:function(e){return e?(e/100).toFixed(2)+"元":""},filterStatus:function(e){var t="";return 0===e?t="审核中":1===e?t="提现成功":2===e&&(t="提现失败"),t}},methods:{initPage:function(){var e=this,t={out_trade_no:this.dialogObj.out_trade_no,limit:200};Object(r._74)(t).then(function(t){e.detail=t.list})}},watch:{"dialogObj.show":function(e){!0===e&&this.initPage()}}},p={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{attrs:{title:"提现详情",center:"","append-to-body":"",visible:e.dialogObj.show,width:"90%"},on:{"update:visible":function(t){e.$set(e.dialogObj,"show",t)}}},[i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.detail}},[i("el-table-column",{attrs:{prop:"withdraw_no",label:"提现单号"}}),e._v(" "),i("el-table-column",{attrs:{prop:"out_trade_no",label:"订单号"}}),e._v(" "),i("el-table-column",{attrs:{label:"用户",width:"200",className:"f-c"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("img",{staticClass:"avatar",attrs:{src:t.row.user_avatar}}),e._v(" "+e._s(t.row.user_nickname)+"(ID:"+e._s(t.row.user_id)+")\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"user_mobile",label:"手机号"}}),e._v(" "),i("el-table-column",{attrs:{label:"提现金额"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("moneyYuan")(t.row.money))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"提现状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",{class:{status:!0,red:2===t.row.status,green:1===t.row.status}},[e._v("\n "+e._s(e._f("filterStatus")(t.row.status))+"\n ")])]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"提现成功时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.success_at)+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"提现时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.created_at)+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"reason",label:"失败原因"}}),e._v(" "),i("el-table-column",{attrs:{prop:"desc",label:"备注"}})],1)],1)},staticRenderFns:[]};var v=i("VU/8")(f,p,!1,function(e){i("7Mat")},"data-v-2a667f00",null).exports,b={name:"dialogObj",props:["dialogObj"],data:function(){return{show:!1,id:"",loading:!0,form:{money:0,refund_type:1,desc:""},rules:{money:[{required:!0,message:"请输入退款金额",trigger:"change"}],desc:[{required:!0,message:"请输入退款原因",trigger:"change"}]}}},methods:{save:function(){var e=this;this.$confirm("确定保存?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){e.dialogObj.id&&e.$refs.form.validate(function(t){if(t){var i={refund_money:100*parseFloat(e.form.money),desc:e.form.desc,refund_type:e.form.refund_type};console.log(i),Object(r._84)(e.dialogObj.id,i).then(function(t){e.$message({type:"success",message:"退款成功!"}),e.$emit("reflash"),e.show=!1})}})})},initDialog:function(){this.show=this.dialogObj.show,this.dialogObj.id&&(this.id=this.dialogObj.id),this.form.money=parseFloat(this.dialogObj.money/100),this.form.desc=this.dialogObj.desc,this.loading=!1}},watch:{"dialogObj.show":function(e){e&&this.initDialog()},show:function(e){this.$emit("changeShow",e)}}},g={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{attrs:{title:"退款",center:"","append-to-body":"",visible:e.show,width:"800px"}},[i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[i("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules}},[i("el-row",{attrs:{gutter:20}},[i("el-col",{attrs:{span:4}},[i("label",[e._v("退款金额")])]),e._v(" "),i("el-col",{attrs:{span:8}},[i("el-form-item",{attrs:{prop:"key"}},[i("el-input",{model:{value:e.form.money,callback:function(t){e.$set(e.form,"money",t)},expression:"form.money"}})],1)],1),e._v(" "),i("el-col",{attrs:{span:6}},[i("el-button",{attrs:{type:"success",round:"",size:"small"},on:{click:function(t){e.form.money=100}}},[e._v("¥100")]),e._v(" "),i("el-button",{attrs:{type:"success",round:"",size:"mini"},on:{click:function(t){e.form.money=150}}},[e._v("¥150")])],1)],1),e._v(" "),i("el-row",{attrs:{gutter:20}},[i("el-col",{attrs:{span:4}},[i("label",[e._v("退课")])]),e._v(" "),i("el-col",{attrs:{span:8}},[i("el-form-item",[i("el-switch",{attrs:{"active-value":2,"inactive-value":1},model:{value:e.form.refund_type,callback:function(t){e.$set(e.form,"refund_type",t)},expression:"form.refund_type"}})],1)],1)],1),e._v(" "),i("el-row",{attrs:{gutter:20}},[i("el-col",{attrs:{span:4}},[i("label",[e._v("退款原因")])]),e._v(" "),i("el-col",{attrs:{span:12}},[i("el-form-item",[i("el-input",{attrs:{type:"textarea"},model:{value:e.form.desc,callback:function(t){e.$set(e.form,"desc",t)},expression:"form.desc"}})],1)],1)],1)],1)],1),e._v(" "),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(t){e.show=!1}}},[e._v("取 消")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.save}},[e._v("确 定")])],1)])},staticRenderFns:[]};var y=i("VU/8")(b,g,!1,function(e){i("Rq8b")},"data-v-1902de54",null).exports,w={name:"sourceDialog",props:["dialogObj"],data:function(){return{detail:[]}},filters:{filterStatus:function(e){var t="";return 0===e?t="未使用":1===e?t="已使用":2===e&&(t="禁用"),t}},methods:{initPage:function(){var e=this,t={order_coupon_id:this.dialogObj.order_coupon_id,limit:200};Object(r._31)(t).then(function(t){e.detail=t.list})}},watch:{"dialogObj.show":function(e){!0===e&&this.initPage()}}},O={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{attrs:{title:"优惠券详情",center:"","append-to-body":"",visible:e.dialogObj.show,width:"90%"},on:{"update:visible":function(t){e.$set(e.dialogObj,"show",t)}}},[i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.detail}},[i("el-table-column",{attrs:{prop:"coupon_no",label:"优惠券码"}}),e._v(" "),i("el-table-column",{attrs:{prop:"out_trade_no",label:"订单号"}}),e._v(" "),i("el-table-column",{attrs:{label:"用户信息","min-width":"140",className:"userInfo"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("img",{staticClass:"avatar",attrs:{src:t.row.user_avatar}}),e._v("\n "+e._s(t.row.user_nickname)+"(ID:"+e._s(t.row.user_id)+")\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"优惠券金额"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(parseFloat(t.row.money/100))+"元\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"使用状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("filterStatus")(t.row.status))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"use_at",label:"使用时间"}})],1)],1)},staticRenderFns:[]};var F=i("VU/8")(w,O,!1,function(e){i("sRf7")},"data-v-0689b038",null).exports,j={name:"detail",props:["dialogObj"],data:function(){return{detail:{},show:!1}},methods:{initDialog:function(){this.detail=this.dialogObj.detail,console.log("this.dialogObj.detail",this.dialogObj.detail),this.show=this.dialogObj.show}},filters:{payMentFilter:function(e){return"1"==e?"已付款":"未付款"},courseTypeFilter:function(e){return"1"==e.type?"正式课("+e.duration+"个月)":"试听课("+e.duration+"天)"},inviteType:function(e){return d.j[e]},status:function(e){return d.p[e]},buyType:function(e){return d.b[e]},moneytFilter:function(e){return e/100+"元"}},watch:{"dialogObj.show":function(e){e&&this.initDialog()},show:function(e){this.$emit("changeShow",e)}}},k={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{attrs:{title:"订单详情",center:"",visible:e.dialogObj.show,width:"800px"},on:{"update:visible":function(t){e.$set(e.dialogObj,"show",t)}}},[i("el-row",{attrs:{align:"middle",type:"flex"}},[i("el-col",{attrs:{span:4}},[i("label",[e._v("订单号")])]),e._v(" "),i("el-col",{attrs:{span:8}},[e._v("\n "+e._s(e.detail.out_trade_no)+"\n ")]),e._v(" "),i("el-col",{attrs:{span:4}},[i("label",[e._v("商品名称")])]),e._v(" "),i("el-col",{attrs:{span:8}},[e._v(e._s(e.detail.goods_name))])],1),e._v(" "),i("el-row",{attrs:{align:"middle",type:"flex"}},[i("el-col",{attrs:{span:4}},[i("label",[e._v("用户昵称")])]),e._v(" "),i("el-col",{attrs:{span:8}},[e._v("\n "+e._s(e.detail.user_nickname)+"\n ")]),e._v(" "),i("el-col",{attrs:{span:4}},[i("label",[e._v("用户手机号")])]),e._v(" "),i("el-col",{attrs:{span:8}},[e._v(e._s(e.detail.user_mobile))])],1),e._v(" "),i("el-row",{attrs:{align:"middle",type:"flex"}},[i("el-col",{attrs:{span:4}},[i("label",[e._v("推广人类型")])]),e._v(" "),i("el-col",{attrs:{span:8}},[e._v(e._s(e._f("inviteType")(e.detail.invite_type)))]),e._v(" "),i("el-col",{attrs:{span:4}},[i("label",[e._v("推广人ID")])]),e._v(" "),i("el-col",{attrs:{span:8}},[e._v(e._s(e.detail.invite_id))])],1),e._v(" "),i("el-row",{attrs:{align:"middle",type:"flex"}},[i("el-col",{attrs:{span:4}},[i("label",[e._v("推广人收益")])]),e._v(" "),i("el-col",{attrs:{span:8}},[e._v(e._s(e.detail.invite_earnings?e.detail.invite_earnings/100:0)+"元")]),e._v(" "),2===e.detail.buy_type?[i("el-col",{attrs:{span:4}},[i("label",[e._v("团购信息")])]),e._v(" "),i("el-col",{attrs:{span:8}},[e._v("团ID:"+e._s(e.detail.order_group_id)),i("br"),e._v("是否是团长:"+e._s(0===e.detail.is_captain?"否":"是"))])]:e._e()],2),e._v(" "),i("el-row",[i("el-col",{attrs:{span:4}},[i("label",[e._v("期数ID")])]),e._v(" "),i("el-col",{attrs:{span:8}},[e._v(e._s(e.detail.periods_id))]),e._v(" "),i("el-col",{attrs:{span:4}},[i("label",[e._v("描述")])]),e._v(" "),i("el-col",{attrs:{span:8}},[e._v(e._s(e.detail.desc))])],1),e._v(" "),i("el-row",[i("el-col",{attrs:{span:4}},[i("label",[e._v("收货地址")])]),e._v(" "),i("el-col",{attrs:{span:20}},[e.detail.user_address_id&&e.detail.address_info?[e._v("\n 收货人:"+e._s(e.detail.address_info.receive_name)),i("br"),e._v("\n 手机号:"+e._s(e.detail.address_info.receive_mobile)),i("br"),e._v("\n 收货地址: "+e._s(e.detail.address_info.province_name)+e._s(e.detail.address_info.city)+e._s(e.detail.address_info.area)+e._s(e.detail.address_info.address)+"\n ")]:e._e()],2)],1),e._v(" "),i("el-row",[i("el-col",{attrs:{span:4}},[i("label",[e._v("付款时间")])]),e._v(" "),i("el-col",{attrs:{span:8}},[e._v(e._s(e.detail.pay_at))])],1)],1)},staticRenderFns:[]};var x={name:"refundDetail",props:["dialogObj"],data:function(){return{detail:[]}},filters:{filterStatus:function(e){var t="";return 0===e?t="退款中":1===e?t="退款成功":2===e&&(t="退款失败"),t}},methods:{initPage:function(){var e=this,t={out_trade_no:this.dialogObj.out_trade_no,limit:200};Object(r._54)(t).then(function(t){e.detail=t.list})}},watch:{"dialogObj.show":function(e){!0===e&&this.initPage()}}},D={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{attrs:{title:"退款详情",center:"","append-to-body":"",visible:e.dialogObj.show,width:"90%"},on:{"update:visible":function(t){e.$set(e.dialogObj,"show",t)}}},[i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.detail}},[i("el-table-column",{attrs:{prop:"refund_no",label:"退款编号"}}),e._v(" "),i("el-table-column",{attrs:{prop:"out_trade_no",label:"订单号"}}),e._v(" "),i("el-table-column",{attrs:{label:"用户信息","min-width":"140",className:"userInfo"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("img",{staticClass:"avatar",attrs:{src:t.row.user_avatar}}),e._v("\n "+e._s(t.row.user_nickname)+"(ID:"+e._s(t.row.user_id)+")\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"order_money",label:"订单金额"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(parseFloat(t.row.order_money/100))+"元\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"refund_money",label:"退款金额"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(parseFloat(t.row.refund_money/100))+"元\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"desc",label:"备注"}}),e._v(" "),i("el-table-column",{attrs:{label:"退款状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("filterStatus")(t.row.status))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"success_at",label:"退款成功时间"}})],1)],1)},staticRenderFns:[]};var S={name:"index",data:function(){var e=this;return{nowPage:1,total:0,sourceDialog:{show:!1,out_trade_no:""},today:{text:"今天",onClick:function(){e.searchFrom.payTime=[e.formatTime(new Date)+" 00:00:00",e.formatTime(new Date)+" 23:59:59"]}},yesterday:{text:"昨天",onClick:function(){var t=e.formatTime(new Date((new Date).getTime()-864e5));e.searchFrom.payTime=[t+" 00:00:00",t+" 23:59:59"]}},last30Day:{text:"过去30天",onClick:function(){var t=e.formatTime(new Date((new Date).getTime()-2592e6));e.searchFrom.payTime=[t+" 00:00:00",e.formatTime(new Date)+" 23:59:59"]}},couponDetail:{show:!1,order_coupon_id:""},refundDetail:{show:!1,out_trade_no:""},limit:10,searchFrom:{nickname:"",user_id:"",invite_type:"",invite_id:"",buy_type:"",order_type:"",status:[1,4,5],goods_id:"",out_trade_no:"",payTime:[],order_group_id:""},tableData:[],dialogObj:{show:!1},newdialogObj:{show:!1},refundDialogObj:{show:!1,id:"",money:0},dialogDetailObj:{show:!1,detail:{}},goodList:[],inviteTypeOption:d.k,orderStatusOption:d.q,buyTypeOption:d.c,buyWay:d.e,inviteSearchPlaceholder:"",rules:{value:[{required:!0,message:"请输入备注",trigger:"change"}]},promoterDialog:{show:!1,nowPage:1,total:0,limit:100,teacher_id:""},teacherList:[],loading:!1}},methods:{formatTime:function(e){var t=e.getFullYear(),i=e.getMonth()+1;i<10&&(i="0"+i);var r=e.getDate();return r<10&&(r="0"+r),t+"-"+i+"-"+r},showRef:function(e){this.refundDetail.show=!0,this.refundDetail.out_trade_no=e.out_trade_no},showCoupon:function(e){this.couponDetail.show=!0,this.couponDetail.order_coupon_id=e.order_coupon_id},showSource:function(e){this.sourceDialog.show=!0,this.sourceDialog.out_trade_no=e.out_trade_no},changeRow:function(e,t){t.indexOf(e)>-1&&Object(r._54)({out_trade_no:e.out_trade_no}).then(function(t){e.refundList=t.list})},exportTable:function(){var e={};this.searchFrom.nickname&&(e.nickname=this.searchFrom.nickname),this.searchFrom.user_id&&(e.user_id=this.searchFrom.user_id),this.searchFrom.invite_type&&(e.invite_type=this.searchFrom.invite_type),this.searchFrom.invite_id&&(e.invite_id=this.searchFrom.invite_id),this.searchFrom.order_group_id&&(e.order_group_id=this.searchFrom.order_group_id),this.searchFrom.buy_type&&(e.buy_type=this.searchFrom.buy_type),this.searchFrom.order_type&&(e.order_type=this.searchFrom.order_type),this.searchFrom.status&&(e.status=this.searchFrom.status.toString()),this.searchFrom.goods_id&&(e.goods_id=this.searchFrom.goods_id),this.searchFrom.out_trade_no&&(e.out_trade_no=this.searchFrom.out_trade_no),this.searchFrom.receive_mobile&&(e.receive_mobile=this.searchFrom.receive_mobile),this.searchFrom.payTime&&this.searchFrom.payTime.length>0&&(e.pay_start_at=u.a.dateFmt(this.searchFrom.payTime[0],"yyyy-MM-dd hh:mm:ss"),e.pay_end_at=u.a.dateFmt(this.searchFrom.payTime[1],"yyyy-MM-dd hh:mm:ss")),e.course_type=0,Object(r._11)("/api/admin/order/export",e)},getGoodsOption:function(){var e=this;Object(r._37)({page:1,limit:100,course_type:0}).then(function(t){e.goodList=t.list})},onInviteTypeChange:function(e){0===e?this.inviteSearchPlaceholder="用户ID":1===e?this.inviteSearchPlaceholder="老师ID":2===e&&(this.inviteSearchPlaceholder="推广人ID"),this.getOrderList()},detail:function(e){var t=e;this.dialogDetailObj={show:!0,detail:t}},editComment:function(e,t){var i=this;this.$prompt("","编辑备注",{confirmButtonText:"确定",cancelButtonText:"取消",inputType:"textarea",inputValue:t||""}).then(function(t){var o=t.value;i.$confirm("确定保存?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(r._4)(e,"order",{desc:o}).then(function(e){i.$message({type:"success",message:"编辑备注成功"}),i.getOrderList()})})})},onPageChange:function(e){this.nowPage=e,this.getOrderList()},onSizeChange:function(e){this.limit=e,this.nowPage=1,this.getOrderList()},getOrderList:function(){var e=this,t={limit:this.limit,page:this.nowPage};this.searchFrom.nickname&&(t.nickname=this.searchFrom.nickname),this.searchFrom.user_id&&(t.user_id=this.searchFrom.user_id),this.searchFrom.invite_type&&(t.invite_type=this.searchFrom.invite_type),this.searchFrom.invite_id&&(t.invite_id=this.searchFrom.invite_id),this.searchFrom.order_group_id&&(t.order_group_id=this.searchFrom.order_group_id),this.searchFrom.buy_type&&(t.buy_type=this.searchFrom.buy_type),this.searchFrom.order_type&&(t.order_type=this.searchFrom.order_type),this.searchFrom.status&&(t.status=this.searchFrom.status.toString()),this.searchFrom.goods_id&&(t.goods_id=this.searchFrom.goods_id),this.searchFrom.out_trade_no&&(t.out_trade_no=this.searchFrom.out_trade_no),this.searchFrom.receive_mobile&&(t.receive_mobile=this.searchFrom.receive_mobile),this.searchFrom.payTime&&this.searchFrom.payTime.length>0&&(t.pay_start_at=u.a.dateFmt(this.searchFrom.payTime[0],"yyyy-MM-dd hh:mm:ss"),t.pay_end_at=u.a.dateFmt(this.searchFrom.payTime[1],"yyyy-MM-dd hh:mm:ss")),t.course_type=0,Object(r._47)(t).then(function(t){t.list.forEach(function(e){e.refundList=[]}),e.tableData=t.list,e.total=t.total})},changeDetailShow:function(e){this.dialogDetailObj.show=e},changeShow:function(e){this.refundDialogObj.show=e},onRefund:function(e,t){this.refundDialogObj.id=e,this.refundDialogObj.money=t,this.refundDialogObj.show=!0},onAfterRefund:function(){this.refundDialogObj.show=!1,this.getOrderList()},onUpdateAddress:function(){this.dialogObj.show=!1,this.getOrderList()},editAddress:function(e){if(e.address_info&&e.address_info.province_name){var t=s.a.filter(function(t){return t.label===e.address_info.province_name});if(t&&t.length>0)if(this.dialogObj.province=e.address_info.province_id?e.address_info.province_id:t[0].value,e.address_info.city){var i=t[0].children.filter(function(t){return t.label===e.address_info.city});if(this.dialogObj.city=e.address_info.city_id?e.address_info.city_id:i[0].value,e.address_info.area){var r=i[0].children.filter(function(t){return t.label===e.address_info.area});this.dialogObj.district=e.address_info.area_id?e.address_info.area_id:r[0].value}else this.dialogObj.district=""}else this.dialogObj.city="";else this.dialogObj.province="",this.dialogObj.district="",this.dialogObj.city=""}else this.dialogObj.province="",this.dialogObj.city="",this.dialogObj.district="";this.dialogObj.detail=e.address_info?e.address_info.address:"",this.dialogObj.receive_mobile=e.address_info?e.address_info.receive_mobile:"",this.dialogObj.receive_name=e.address_info?e.address_info.receive_name:"",this.dialogObj.province_name=e.address_info?e.address_info.province_name:"",this.dialogObj.city_name=e.address_info?e.address_info.city:"",this.dialogObj.district_name=e.address_info?e.address_info.area:"",this.dialogObj.id=e.id,this.dialogObj.show=!0},getTeacherList:function(e){var t=this;this.loading=!0;var i={limit:this.promoterDialog.limit,page:this.promoterDialog.nowPage};e&&(i.name=e),Object(r._65)(i).then(function(e){t.teacherList=e.list,t.loading=!1})},handleCurrentTeacherChange:function(e){console.log("handleCurrentTeacherChange",e)},updateTeacher:function(e){this.promoterDialog.show=!0,this.promoterDialog.id=e.id,this.promoterDialog.teacher_id=e.invite_id,this.getTeacherList()},remoteMethod:function(e){""!==e?this.getTeacherList(e):this.getTeacherList()},saveTeacher:function(){var e=this;this.$confirm("此操作将修改推广人?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){console.log("this.promoterDialog.teacher_id",e.promoterDialog),Object(r._103)(e.promoterDialog.id,e.promoterDialog.teacher_id).then(function(t){e.promoterDialog.id="",e.promoterDialog.teacher_id="",e.promoterDialog.show=!1,e.$message({type:"success",message:"修改成功!"}),e.getOrderList()})})},add:function(){this.newdialogObj.show=!0}},components:{addressDialog:c,orderDialog:h,refundDialog:y,detailDialog:i("VU/8")(j,k,!1,function(e){i("6CEz")},"data-v-39efaed0",null).exports,refundDetail:i("VU/8")(x,D,!1,function(e){i("JZkw")},"data-v-fd44266c",null).exports,sourceDialog:v,couponDialog:F,page:o.a},mounted:function(){this.$route.query.code&&(this.searchFrom.invite_type=this.$route.query.code),this.getOrderList(),this.getGoodsOption()},watch:{"newdialogObj.show":function(e){e||this.getOrderList()}},filters:{payMentFilter:function(e){return"1"==e?"已付款":"未付款"},courseTypeFilter:function(e){return"1"==e.type?"正式课("+e.duration+"个月)":"试听课("+e.duration+"天)"},inviteType:function(e){return d.j[e]},status:function(e){return d.p[e]},buyType:function(e){return d.b[e]},moneytFilter:function(e){return e/100+"元"},filterGoods:function(e){return"["+d.g[e.goods_type]+"]["+e.current_price/100+"元]"+e.name},buyTypeWay:function(e){return d.d[e]}}},$={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"order"},[i("el-form",{ref:"searchFrom",attrs:{model:e.searchFrom,"label-width":"100px",inline:""}},[i("el-form-item",{attrs:{label:"用户ID"}},[i("el-input",{model:{value:e.searchFrom.user_id,callback:function(t){e.$set(e.searchFrom,"user_id",t)},expression:"searchFrom.user_id"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"用户昵称"}},[i("el-input",{model:{value:e.searchFrom.nickname,callback:function(t){e.$set(e.searchFrom,"nickname",t)},expression:"searchFrom.nickname"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"收件人手机号"}},[i("el-input",{model:{value:e.searchFrom.receive_mobile,callback:function(t){e.$set(e.searchFrom,"receive_mobile",t)},expression:"searchFrom.receive_mobile"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"商品名称"}},[i("el-select",{attrs:{placeholder:"请选择",clearable:""},on:{change:e.getOrderList},model:{value:e.searchFrom.goods_id,callback:function(t){e.$set(e.searchFrom,"goods_id",t)},expression:"searchFrom.goods_id"}},e._l(e.goodList,function(t,r){return i("el-option",{key:r,attrs:{label:e._f("filterGoods")(t),value:t.id}})}))],1),e._v(" "),i("el-form-item",{staticClass:"test",attrs:{label:"来源"}},[i("el-input",{attrs:{placeholder:e.inviteSearchPlaceholder},model:{value:e.searchFrom.invite_type,callback:function(t){e.$set(e.searchFrom,"invite_type",t)},expression:"searchFrom.invite_type\t"}},[i("template",{slot:"prepend"},[e._v("CC -")])],2)],1),e._v(" "),i("el-form-item",{attrs:{label:"推广人ID"}},[i("el-input",{attrs:{placeholder:e.inviteSearchPlaceholder},model:{value:e.searchFrom.invite_id,callback:function(t){e.$set(e.searchFrom,"invite_id",t)},expression:"searchFrom.invite_id"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"购买方式"}},[i("el-select",{attrs:{placeholder:"请选择",clearable:""},on:{change:e.getOrderList},model:{value:e.searchFrom.buy_type,callback:function(t){e.$set(e.searchFrom,"buy_type",t)},expression:"searchFrom.buy_type"}},e._l(e.buyTypeOption,function(e){return i("el-option",{key:e.id,attrs:{label:e.value,value:e.id}})}))],1),e._v(" "),i("el-form-item",{attrs:{label:"支付类型"}},[i("el-select",{attrs:{placeholder:"请选择",clearable:""},on:{change:e.getOrderList},model:{value:e.searchFrom.order_type,callback:function(t){e.$set(e.searchFrom,"order_type",t)},expression:"searchFrom.order_type"}},e._l(e.buyWay,function(e){return i("el-option",{key:e.id,attrs:{label:e.value,value:e.id}})}))],1),e._v(" "),i("el-form-item",{attrs:{label:"订单状态"}},[i("el-select",{attrs:{multiple:"",placeholder:"请选择",clearable:""},on:{change:e.getOrderList},model:{value:e.searchFrom.status,callback:function(t){e.$set(e.searchFrom,"status",t)},expression:"searchFrom.status"}},e._l(e.orderStatusOption,function(e){return i("el-option",{key:e.id,attrs:{label:e.value,value:e.id}})}))],1),e._v(" "),i("el-form-item",{attrs:{label:"交易订单号"}},[i("el-input",{model:{value:e.searchFrom.out_trade_no,callback:function(t){e.$set(e.searchFrom,"out_trade_no",t)},expression:"searchFrom.out_trade_no"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"购买时间"}},[i("el-date-picker",{attrs:{type:"datetimerange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":{shortcuts:[e.today,e.yesterday,e.last30Day]},"default-time":["00:00:00","23:59:59"]},on:{change:e.getOrderList},model:{value:e.searchFrom.payTime,callback:function(t){e.$set(e.searchFrom,"payTime",t)},expression:"searchFrom.payTime"}})],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",plain:""},on:{click:e.getOrderList}},[e._v("搜索")]),e._v(" "),i("el-button",{attrs:{type:"primary",plain:""},on:{click:e.exportTable}},[e._v("导出")])],1),e._v(" "),i("el-form-item",{staticStyle:{float:"right"}},[e.$store.state.readonly?e._e():i("el-button",{attrs:{type:"success",plain:""},on:{click:e.add}},[e._v("新增订单")])],1)],1),e._v(" "),i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData,fixed:""},on:{"expand-change":e.changeRow}},[i("el-table-column",{attrs:{prop:"out_trade_no",label:"订单号"}}),e._v(" "),i("el-table-column",{attrs:{label:"购买人",className:"f-c",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("img",{staticClass:"avatar",attrs:{src:t.row.user_avatar}}),e._v(" "+e._s(t.row.user_nickname)),i("br"),e._v("(ID:"+e._s(t.row.user_id)+")"),i("br"),e._v("手机:"+e._s(t.row.user_mobile)+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"periods_title",label:"期数标题"}}),e._v(" "),i("el-table-column",{attrs:{prop:"goods_name",label:"商品名称"}}),e._v(" "),i("el-table-column",{attrs:{width:"250",prop:"invite_id",className:"f-c",label:"推广人"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.invite_earnings>0&&0!==t.row.invite_id?i("div",{staticStyle:{width:"100%",display:"flex",color:"#409eff",cursor:"pointer"},on:{click:function(i){e.showSource(t.row)}}},[i("img",{staticClass:"avatar",attrs:{src:t.row.invite_avatar}}),e._v("\n 类型:"+e._s(t.row.invite_type)+" ("+e._s(t.row.invite_name)+")\n "),i("br"),e._v("\n 收益:"+e._s(t.row.invite_earnings/100)+"\n "),i("br"),e._v("\n 用户ID:"+e._s(t.row.invite_id)+"\n "),i("br"),e._v("\n 昵称:"+e._s(t.row.invite_nickname)+"\n "),i("br"),e._v("\n 手机:"+e._s(t.row.invite_mobile)+"\n ")]):e._e(),e._v(" "),0===t.row.invite_earnings&&0!==t.row.invite_id?i("div",{staticStyle:{display:"flex"}},[i("img",{staticClass:"avatar",attrs:{src:t.row.invite_avatar}}),e._v("\n 类型:"+e._s(t.row.invite_type)+" ("+e._s(t.row.invite_name)+")\n "),i("br"),e._v("\n 收益:"+e._s(t.row.invite_earnings/100)+"\n "),i("br"),e._v("\n 用户ID:"+e._s(t.row.invite_id)+"\n "),i("br"),e._v("\n 昵称:"+e._s(t.row.invite_nickname)+"\n "),i("br"),e._v("\n 手机:"+e._s(t.row.invite_mobile)+"\n ")]):e._e(),e._v(" "),0===t.row.invite_id?i("div",[e._v("\n\n ")]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"优惠活动"},scopedSlots:e._u([{key:"default",fn:function(t){return[0===t.row.order_coupon_id?i("span",[e._v("\n\n ")]):e._e(),e._v(" "),0!==t.row.order_coupon_id?i("el-button",{attrs:{type:"text"},on:{click:function(i){e.showCoupon(t.row)}}},[e._v("\n 优惠券\n ")]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"付款状态",width:"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[5===t.row.status||3===t.row.status?i("el-button",{attrs:{type:"text"},on:{click:function(i){e.showRef(t.row)}}},[e._v(e._s(e._f("status")(t.row.status)))]):e._e(),e._v(" "),5!==t.row.status&&3!==t.row.status?i("div",[e._v(e._s(e._f("status")(t.row.status)))]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"实付金额",width:"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("moneytFilter")(t.row.money))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"支付类型",width:"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("buyTypeWay")(t.row.order_type))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"收货地址"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.user_address_id&&t.row.address_info?i("div",[e._v("\n "+e._s(t.row.address_info.receive_name)),i("br"),e._v("\n "+e._s(t.row.address_info.receive_mobile)),i("br"),e._v("\n "+e._s(t.row.address_info.province_name)+e._s(t.row.address_info.city)+e._s(t.row.address_info.area)+e._s(t.row.address_info.address)+"\n ")]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"pay_at",label:"购买时间",sortable:""}}),e._v(" "),i("el-table-column",{attrs:{prop:"created_at",label:"下单时间",sortable:""}}),e._v(" "),i("el-table-column",{attrs:{prop:"desc",label:"备注"}}),e._v(" "),e.$store.state.readonly?e._e():i("el-table-column",{attrs:{width:"50",label:"操作",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-popover",{attrs:{placement:"top",width:"400"}},[i("div",{staticStyle:{"text-align":"center"}},[1!=t.row.status&&4!=t.row.status&&5!=t.row.status||!e.$store.state.orderRefund||3==t.row.order_type?e._e():i("el-button",{attrs:{type:"warning",plain:"",size:"mini"},on:{click:function(i){e.onRefund(t.row.id,t.row.money)}}},[e._v("\n 退款\n ")]),e._v(" "),i("el-button",{attrs:{type:"info",plain:"",size:"mini"},on:{click:function(i){e.editComment(t.row.id,t.row.desc)}}},[e._v("\n 编辑备注\n ")]),e._v(" "),t.row.user_address_id?i("el-button",{attrs:{plain:"",type:"info",size:"mini"},on:{click:function(i){e.editAddress(t.row)}}},[e._v("\n 编辑收货地址\n ")]):e._e(),e._v(" "),i("el-button",{attrs:{type:"warning",plain:"",size:"mini"},on:{click:function(i){e.updateTeacher(t.row)}}},[e._v("\n 编辑推广人\n ")])],1),e._v(" "),i("el-button",{attrs:{slot:"reference",size:"mini",type:"text"},slot:"reference"},[e._v("操作")])],1)]}}])})],1),e._v(" "),i("address-dialog",{attrs:{dialogObj:e.dialogObj},on:{reflash:e.onUpdateAddress}}),e._v(" "),i("order-dialog",{attrs:{newdialogObj:e.newdialogObj},on:{reflash:e.getOrderList}}),e._v(" "),i("refund-dialog",{attrs:{dialogObj:e.refundDialogObj},on:{reflash:e.onAfterRefund,changeShow:e.changeShow}}),e._v(" "),i("detail-dialog",{attrs:{dialogObj:e.dialogDetailObj},on:{changeShow:e.changeDetailShow}}),e._v(" "),i("source-dialog",{attrs:{dialogObj:e.sourceDialog}}),e._v(" "),i("refund-detail",{attrs:{dialogObj:e.refundDetail}}),e._v(" "),i("coupon-dialog",{attrs:{dialogObj:e.couponDetail}}),e._v(" "),i("el-dialog",{attrs:{title:"修改推广人",center:"","append-to-body":"",visible:e.promoterDialog.show,width:"600"},on:{"update:visible":function(t){e.$set(e.promoterDialog,"show",t)}}},[i("el-form",{ref:"form",attrs:{"label-width":"120px"}},[i("el-form-item",{attrs:{label:"老师"}},[i("el-select",{attrs:{filterable:"",remote:"",clearable:"",placeholder:"请输入名称","remote-method":e.remoteMethod,loading:e.loading},model:{value:e.promoterDialog.teacher_id,callback:function(t){e.$set(e.promoterDialog,"teacher_id",t)},expression:"promoterDialog.teacher_id"}},e._l(e.teacherList,function(e){return i("el-option",{key:e.id,attrs:{label:e.name,value:e.user_id}})}))],1)],1),e._v(" "),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(t){e.promoterDialog.show=!1}}},[e._v("取 消")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.saveTeacher}},[e._v("确 定")])],1)],1),e._v(" "),i("page",{attrs:{nowPage:e.nowPage,total:e.total,limit:e.limit},on:{pageChange:e.onPageChange,sizeChange:e.onSizeChange}})],1)},staticRenderFns:[]};var T=i("VU/8")(S,$,!1,function(e){i("emxl"),i("Nf5m")},"data-v-079273f1",null);t.default=T.exports}});
\ No newline at end of file
webpackJsonp([6],{"/RlY":function(t,e){},"6AGP":function(t,e){},"9PRC":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a("CCn6"),o=a("kmJW"),l=a("O6Rd"),n=a("G2rA"),s=a("kmsh"),r=a("+TkF"),c={props:["dialogObj"],data:function(){return{form:{id:"",teacher_id:""},teacherList:[]}},methods:{initPage:function(){var t=this;Object(i._65)({page:1,limit:200}).then(function(e){t.teacherList=e.list}),this.form={id:this.dialogObj.id,teacher_id:this.dialogObj.teacher_id?this.dialogObj.teacher_id:""}},onSave:function(){var t=this,e={teacher_id:this.form.teacher_id?this.form.teacher_id:0};Object(i.m)(this.form.id,e).then(function(e){t.$message({type:"success",message:"绑定成功!"}),t.$emit("reflash"),t.dialogObj.show=!1})}},watch:{"dialogObj.show":function(t){t&&this.initPage()}}},_={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{title:t.dialogObj.title,visible:t.dialogObj.show},on:{"update:visible":function(e){t.$set(t.dialogObj,"show",e)}}},[a("el-form",{ref:"form",attrs:{model:t.form,"label-width":"120px"}},[a("el-form-item",{attrs:{label:"老师"}},[a("el-select",{attrs:{placeholder:"请选择"},model:{value:t.form.teacher_id,callback:function(e){t.$set(t.form,"teacher_id",e)},expression:"form.teacher_id"}},t._l(t.teacherList,function(t,e){return a("el-option",{key:e,attrs:{label:t.name,value:t.id}})}))],1)],1),t._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){t.dialogObj.show=!1}}},[t._v("取 消")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.onSave}},[t._v("确 定")])],1)],1)},staticRenderFns:[]};var u=a("VU/8")(c,_,!1,function(t){a("xLof")},"data-v-218bfcb9",null).exports,d=a("0qGg"),f={name:"index",data:function(){return{userList:[],total:0,sourceDialog:{show:!1,out_trade_no:""},couponDetail:{show:!1,order_coupon_id:""},refundDetail:{show:!1,out_trade_no:""},nowPage:1,limit:3,id:"",detail:{},periodList:[],dialogObj:{show:!1,title:"绑定老师",id:0,teacher_id:0},list:[],userObj:{classId:"",title:"",show:!1},privilegeDialog:{show:!1,isAllowView:!1,is_add_teacher:0,weight:0,id:""},descDialog:{show:!1,descList:[],nowPage:1,limit:10,total:0,userInfo:null},lookDetail:{show:!1,loading:!1,list:[],nowPage:1,limit:10,total:0},isAddTeacherList:[{label:"未加好友",value:0},{label:"老师主动添加用户",value:1},{label:"用户主动添加老师",value:2}]}},components:{page:o.a,teacherDialog:u,UserList:d.a,refundDetail:n.a,sourceDialog:l.a,couponDialog:s.a},mounted:function(){this.id=this.$route.params.id,this.getDetail(),this.getUser()},methods:{getUserLook:function(){var t=this;if(this.lookDetail.data){this.lookDetail.show=!0,this.lookDetail.loading=!0;var e={limit:this.lookDetail.limit,page:this.lookDetail.nowPage},a=this.lookDetail.data;Object(i._110)(a.periods_id,a.user_id,e).then(function(e){t.lookDetail.list=e.list,t.lookDetail.loading=!1,t.lookDetail.total=e.total})}},onLookDetailPageChange:function(t){this.lookDetail.nowPage=t,this.getUserLook()},onLookDetailSizeChange:function(t){this.lookDetail.limit=t,this.lookDetail.nowPage=1,this.getUserLook()},onDescDialogPageChange:function(t){this.descDialog.nowPage=t,this.getUserDescList()},onDescDialogSizeChange:function(t){this.descDialog.limit=t,this.descDialog.nowPage=1,this.getUserDescList()},showRef:function(t){this.refundDetail.show=!0,this.refundDetail.out_trade_no=t.out_trade_no},showCoupon:function(t){this.couponDetail.show=!0,this.couponDetail.order_coupon_id=t.order_coupon_id},showSource:function(t){this.sourceDialog.show=!0,this.sourceDialog.out_trade_no=t.out_trade_no},changeRow:function(t,e){var a=this;this.list=[],e.indexOf(t)>-1&&Object(i._49)(t.periods_id).then(function(e){t.arrive_course_rate=e.arrive_course_rate,t.watch_course_rate=e.watch_course_rate,t.over_course_rate=e.over_course_rate,t.work_rate=e.work_rate,t.over_work_rate=e.over_work_rate,t.clock_rate=e.clock_rate,t.over_clock_rate=e.over_clock_rate,t.transform_rate=e.transform_rate,a.list=[t]})},onPageChange:function(t){this.nowPage=t,this.getUser()},onSizeChange:function(t){this.nowPage=1,this.limit=t,this.getUser()},getUser:function(){var t=this,e={user_id:this.id,limit:this.limit,page:this.nowPage,status:"1,4,5"};Object(i._47)(e).then(function(e){e.list.forEach(function(t){t.refundList=[]}),t.userList=e.list,t.total=e.total})},getDetail:function(){var t=this;this.id&&Object(i._68)(this.id).then(function(e){t.detail=e,e.periods_list&&(t.periodList=e.periods_list)})},bindTeacher:function(){var t=this.detail;this.dialogObj={show:!0,title:"绑定老师",id:t.user_id,teacher_id:t.teacher_id}},showUser:function(t){this.userObj={classId:t.class_id,show:!0,title:t.teacher_name+"班级用户列表",teacherId:t.teacher_id,periods_id:t.periods_id,goods_id:t.goods_id}},editPrivilege:function(t){this.privilegeDialog={id:t.id,isAllowView:1===t.is_view_course,is_add_teacher:t.is_add_teacher?t.is_add_teacher:0,weight:t.weight?t.weight:0,show:!0}},onGetUserDescList:function(t){this.descDialog.show=!0,this.descDialog.userInfo={user_id:t.user_id,avatar:this.detail.avatar,nickname:this.detail.nickname},this.descDialog.id=t.id,this.getUserDescList()},getUserDescList:function(){var t=this,e={page:this.descDialog.nowPage,limit:this.descDialog.limit};Object(i._67)(this.descDialog.id,e).then(function(e){t.descDialog.descList=e.list,t.descDialog.total=e.total})},userLook:function(t){var e=this;this.lookDetail.show=!0,this.lookDetail.loading=!0;var a={limit:this.lookDetail.limit,page:this.lookDetail.nowPage};this.lookDetail.data={periods_id:t.periods_id,user_id:t.user_id},Object(i._110)(t.periods_id,t.user_id,a).then(function(t){e.lookDetail.list=t.list,e.lookDetail.loading=!1,e.lookDetail.total=t.total})},editComment:function(t){var e=this;this.$prompt("","添加备注",{confirmButtonText:"确定",cancelButtonText:"取消",inputValue:""}).then(function(a){var o=a.value;Object(i.l)(t,{desc:o}).then(function(t){e.$message({type:"success",message:"编辑备注成功"}),e.getUserDescList()})})},changePrivilegeSub:function(){var t=this;this.$confirm("此操作将修改用户权限?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){var e={is_view_course:t.privilegeDialog.isAllowView?1:0,is_add_teacher:t.privilegeDialog.is_add_teacher,weight:t.privilegeDialog.weight};Object(i._108)(t.privilegeDialog.id,e).then(function(e){t.$message({type:"success",message:"修改成功!"}),t.privilegeDialog.show=!1,t.getDetail()})})}},filters:{payMentFilter:function(t){return"1"==t?"已付款":"未付款"},courseTypeFilter:function(t){return"1"==t.type?"正式课("+t.duration+"个月)":"试听课("+t.duration+"天)"},inviteType:function(t){return r.j[t]},status:function(t){return r.p[t]},buyType:function(t){return r.b[t]},moneytFilter:function(t){return t/100+"元"},percent:function(t){return(100*t).toFixed(2)+"%"}}},v={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"user"},[a("el-card",{staticClass:"user-card"},[a("el-row",{attrs:{gutter:20}},[a("el-col",{staticClass:"title",attrs:{span:24}},[a("a",{attrs:{href:t.detail.avatar,target:"_blank"}},[a("img",{attrs:{src:t.detail.avatar}})]),t._v(" "),a("div",{staticStyle:{"text-align":"center"}},[t._v("\n "+t._s(t.detail.nickname)+" (ID: "+t._s(t.id)+")\n ")])])],1),t._v(" "),a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:12}},[a("label",[t._v("tel:")]),t._v(t._s(t.detail.mobile)+"\n ")]),t._v(" "),a("el-col",{attrs:{span:12}},[a("label",[t._v("生日:")]),t._v(t._s(t.detail.birthday)+"\n ")]),t._v(" "),a("el-col",{attrs:{span:12}},[a("label",[t._v("等级:")]),t._v(t._s(t.detail.level)+"\n ")]),t._v(" "),a("el-col",{attrs:{span:12}},[a("label",[t._v("邀请类型:")]),t._v(t._s(t._f("inviteType")(t.detail.invite_type))+"\n ")]),t._v(" "),a("el-col",{attrs:{span:12}},[a("label",[t._v("邀请人ID:")]),t._v(t._s(t.detail.invite_user_id?t.detail.invite_user_id:"")+"\n ")]),t._v(" "),a("el-col",{attrs:{span:12}},[a("label",[t._v("已绑定老师:")]),t._v(t._s(t.detail.teacher_name)+"\n ")]),t._v(" "),a("el-col",{attrs:{span:12}},[a("label",[t._v("注册时间:")]),t._v(t._s(t.detail.created_at)+"\n ")]),t._v(" "),a("el-col",{attrs:{span:12}},[a("label",[t._v("最后登录:")]),t._v(t._s(t.detail.last_login_at)+"\n ")])],1)],1),t._v(" "),a("el-tabs",{attrs:{type:"border-card"}},[a("el-tab-pane",{attrs:{label:"期数列表"}},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.periodList},on:{"expand-change":t.changeRow}},[a("el-table-column",{attrs:{type:"expand"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.list}},[a("el-table-column",{attrs:{label:"到课率"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("percent")(e.row.arrive_course_rate)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"看课率"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("percent")(e.row.watch_course_rate)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"完课率"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("percent")(e.row.over_course_rate)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"作业率"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("percent")(e.row.work_rate)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"全勤作业率"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("percent")(e.row.over_work_rate)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"打卡率"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("percent")(e.row.clock_rate)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"全勤打卡率"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("percent")(e.row.over_clock_rate)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"转化率"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("percent")(e.row.transform_rate)))])]}}])})],1)]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"periods_title",label:"期数名称"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("router-link",{attrs:{to:{name:"class",query:{goods_id:e.row.goods_id,periods_id:e.row.periods_id}}}},[t._v("\n "+t._s(e.row.periods_title)+"\n ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"看课权限"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(1===e.row.is_view_course?"是":"否")+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{className:"f-c",label:"老师"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("router-link",{attrs:{to:"/teacher/"+e.row.teacher_id}},[a("div",{staticClass:"f-c"},[a("div",[a("img",{staticClass:"avatar",attrs:{src:e.row.teacher_qr}}),t._v(" "+t._s(e.row.teacher_name)+"\n ")])])])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"join_num",label:"加入人数"}}),t._v(" "),a("el-table-column",{attrs:{prop:"max_join_num",label:"最大加入人数"}}),t._v(" "),a("el-table-column",{attrs:{prop:"start_at",label:"开课时间"}}),t._v(" "),a("el-table-column",{attrs:{prop:"created_at",label:"创建时间"}}),t._v(" "),a("el-table-column",{attrs:{label:"操作",width:"400px"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{size:"mini",type:"primary"},on:{click:function(a){t.showUser(e.row)}}},[t._v(" 班级成员")]),t._v(" "),a("el-button",{attrs:{size:"mini",type:"warning"},on:{click:function(a){t.editPrivilege(e.row)}}},[t._v("编辑")]),t._v(" "),a("el-button",{attrs:{size:"mini",type:"primary"},on:{click:function(a){t.onGetUserDescList(e.row)}}},[t._v("备注")]),t._v(" "),a("el-button",{attrs:{size:"mini",type:"primary"},on:{click:function(a){t.userLook(e.row)}}},[t._v("看课情况 ")])]}}])})],1)],1),t._v(" "),a("el-tab-pane",{attrs:{label:"订单列表"}},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.userList}},[a("el-table-column",{attrs:{prop:"out_trade_no",label:"订单号"}}),t._v(" "),a("el-table-column",{attrs:{label:"购买人",className:"f-c",width:"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("img",{staticClass:"avatar",attrs:{src:e.row.user_avatar}}),t._v(" "+t._s(e.row.user_nickname)),a("br"),t._v("(ID:"+t._s(e.row.user_id)+")\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"periods_title",label:"期数标题"}}),t._v(" "),a("el-table-column",{attrs:{prop:"goods_name",label:"商品名称"}}),t._v(" "),a("el-table-column",{attrs:{width:"250",prop:"invite_id",className:"f-c",label:"推广人属性"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.invite_earnings>0&&0!==e.row.invite_id?a("div",{staticStyle:{display:"flex",color:"#409eff",cursor:"pointer"},on:{click:function(a){t.showSource(e.row)}}},[a("img",{staticClass:"avatar",attrs:{src:e.row.invite_avatar}}),t._v("\n 类型:"+t._s(e.row.invite_type)+"\n "),a("br"),t._v("\n 收益:"+t._s(e.row.invite_earnings/100)+"\n "),a("br"),t._v("\n 用户ID:"+t._s(e.row.invite_id)+"\n "),a("br"),t._v("\n 昵称:"+t._s(e.row.invite_nickname)+"\n "),a("br"),t._v("\n 手机:"+t._s(e.row.invite_mobile)+"\n ")]):t._e(),t._v(" "),0===e.row.invite_earnings&&0!==e.row.invite_id?a("div",{staticStyle:{display:"flex"}},[a("img",{staticClass:"avatar",attrs:{src:e.row.invite_avatar}}),t._v("\n 类型:"+t._s(e.row.invite_type)+"\n "),a("br"),t._v("\n 收益:"+t._s(e.row.invite_earnings/100)+"\n "),a("br"),t._v("\n 用户ID:"+t._s(e.row.invite_id)+"\n "),a("br"),t._v("\n 昵称:"+t._s(e.row.invite_nickname)+"\n "),a("br"),t._v("\n 手机:"+t._s(e.row.invite_mobile)+"\n ")]):t._e(),t._v(" "),0===e.row.invite_id?a("div",[t._v("\n\n ")]):t._e()]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"优惠活动"},scopedSlots:t._u([{key:"default",fn:function(e){return[0===e.row.order_coupon_id?a("span",[t._v("\n\n ")]):t._e(),t._v(" "),0!==e.row.order_coupon_id?a("el-button",{attrs:{type:"text"},on:{click:function(a){t.showCoupon(e.row)}}},[t._v("\n 优惠券\n ")]):t._e()]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"付款状态",width:"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[5===e.row.status||3===e.row.status?a("el-button",{attrs:{type:"text"},on:{click:function(a){t.showRef(e.row)}}},[t._v(t._s(t._f("status")(e.row.status)))]):t._e(),t._v(" "),5!==e.row.status&&3!==e.row.status?a("div",[t._v(t._s(t._f("status")(e.row.status)))]):t._e()]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"实付金额",width:"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t._f("moneytFilter")(e.row.money))+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"收货地址"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.user_address_id&&e.row.address_info?a("div",[t._v("\n "+t._s(e.row.address_info.receive_name)),a("br"),t._v("\n "+t._s(e.row.address_info.receive_mobile)),a("br"),t._v("\n "+t._s(e.row.address_info.province_name)+t._s(e.row.address_info.city)+t._s(e.row.address_info.area)+t._s(e.row.address_info.address)+"\n ")]):t._e()]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"pay_at",label:"购买时间"}}),t._v(" "),a("el-table-column",{attrs:{prop:"created_at",label:"下单时间"}})],1),t._v(" "),a("page",{attrs:{total:t.total,limit:t.limit},on:{pageChange:t.onPageChange,sizeChange:t.onSizeChange}})],1)],1),t._v(" "),a("teacher-dialog",{attrs:{dialogObj:t.dialogObj},on:{reflash:t.getDetail}}),t._v(" "),a("user-list",{attrs:{userObj:t.userObj}}),t._v(" "),a("source-dialog",{attrs:{dialogObj:t.sourceDialog}}),t._v(" "),a("refund-detail",{attrs:{dialogObj:t.refundDetail}}),t._v(" "),a("coupon-dialog",{attrs:{dialogObj:t.couponDetail}}),t._v(" "),a("el-dialog",{attrs:{modal:!1,visible:t.privilegeDialog.show,title:"编辑权限"},on:{"update:visible":function(e){t.$set(t.privilegeDialog,"show",e)}}},[a("el-form",{attrs:{"label-width":"120px"}},[a("el-form-item",{attrs:{label:"是否添加老师"}},[a("el-select",{attrs:{placeholder:"请选择"},model:{value:t.privilegeDialog.is_add_teacher,callback:function(e){t.$set(t.privilegeDialog,"is_add_teacher",e)},expression:"privilegeDialog.is_add_teacher"}},t._l(t.isAddTeacherList,function(t,e){return a("el-option",{key:e,attrs:{label:t.label,value:t.value}})}))],1),t._v(" "),a("el-form-item",{attrs:{label:"看课权限"}},[a("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#ff4949"},model:{value:t.privilegeDialog.isAllowView,callback:function(e){t.$set(t.privilegeDialog,"isAllowView",e)},expression:"privilegeDialog.isAllowView"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"意向等级"}},[a("el-input-number",{attrs:{min:0,step:1},model:{value:t.privilegeDialog.weight,callback:function(e){t.$set(t.privilegeDialog,"weight",e)},expression:"privilegeDialog.weight"}})],1)],1),t._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){t.privilegeDialog.show=!1}}},[t._v("取 消")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(e){t.changePrivilegeSub()}}},[t._v("确 定")])],1)],1),t._v(" "),a("el-dialog",{attrs:{modal:!1,visible:t.descDialog.show,title:"备注列表",width:"60%"},on:{"update:visible":function(e){t.$set(t.descDialog,"show",e)}}},[a("el-form",{attrs:{"label-width":"90px"}},[a("el-form-item",[a("el-button",{staticStyle:{float:"right"},attrs:{type:"primary",plain:""},on:{click:function(e){t.editComment(t.descDialog.id)}}},[t._v("添加备注")])],1)],1),t._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.descDialog.descList}},[a("el-table-column",{attrs:{label:"用户",className:"f-c","min-width":"150"},scopedSlots:t._u([{key:"default",fn:function(e){return t.descDialog.userInfo?[a("img",{staticStyle:{width:"40px",height:"40px","border-radius":"50px"},attrs:{src:t.descDialog.userInfo.avatar}}),t._v(" "+t._s(t.descDialog.userInfo.nickname)+"(ID:"+t._s(t.descDialog.userInfo.user_id)+")\n ")]:void 0}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"desc",label:"备注"}}),t._v(" "),a("el-table-column",{attrs:{prop:"operator",label:"备注人"}}),t._v(" "),a("el-table-column",{attrs:{prop:"created_at",label:"创建时间"}}),t._v(" "),a("el-table-column",{attrs:{prop:"updated_at",label:"更新时间"}})],1),t._v(" "),a("page",{attrs:{nowPage:t.descDialog.nowPage,total:t.descDialog.total,limit:t.descDialog.limit},on:{pageChange:t.onDescDialogPageChange,sizeChange:t.onDescDialogSizeChange}})],1),t._v(" "),a("el-dialog",{attrs:{modal:!1,visible:t.lookDetail.show},on:{"update:visible":function(e){t.$set(t.lookDetail,"show",e)}}},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.lookDetail.loading,expression:"lookDetail.loading"}],staticStyle:{width:"100%"},attrs:{data:t.lookDetail.list}},[a("el-table-column",{attrs:{prop:"start_at",label:"日期"}}),t._v(" "),a("el-table-column",{attrs:{label:"爸妈看一看"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.watch_list&&e.row.watch_list.length>0&&e.row.watch_list.find(function(t){return 1===t.page_id})?a("span",[t._v("\n "+t._s(e.row.watch_list.find(function(t){return 1===t.page_id}).stay_time)+"\n ")]):t._e(),t._v(" "),e.row.watch_list.find(function(t){return 1===t.page_id})?t._e():a("span",[t._v("\n 暂未上课\n ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"宝贝玩一玩"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.watch_list&&e.row.watch_list.length>0&&e.row.watch_list.find(function(t){return 2===t.page_id})?a("span",[t._v("\n "+t._s(e.row.watch_list.find(function(t){return 2===t.page_id}).stay_time)+"\n ")]):t._e(),t._v(" "),e.row.watch_list.find(function(t){return 2===t.page_id})?t._e():a("span",[t._v("\n 暂未上课\n ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"爸妈秀宝贝"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.watch_list&&e.row.watch_list.length>0&&e.row.watch_list.find(function(t){return 3===t.page_id})?a("span",[a("div",{domProps:{innerHTML:t._s(e.row.watch_list.find(function(t){return 3===t.page_id}).learn_report)}})]):t._e(),t._v(" "),e.row.watch_list.find(function(t){return 3===t.page_id})?t._e():a("span",[t._v("\n 暂未秀宝贝\n ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"多元趣味课"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.watch_list&&e.row.watch_list.length>0&&e.row.watch_list.find(function(t){return 5===t.page_id})?a("span",[t._v("\n "+t._s(e.row.watch_list.find(function(t){return 5===t.page_id}).stay_time)+"\n ")]):t._e(),t._v(" "),e.row.watch_list.find(function(t){return 5===t.page_id})?t._e():a("span",[t._v("\n 暂未上课\n ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"分享"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.watch_list&&e.row.watch_list.length>0&&e.row.watch_list.find(function(t){return 4===t.page_id})?a("span",[t._v("\n 已分享\n ")]):t._e(),t._v(" "),e.row.watch_list.find(function(t){return 4===t.page_id})?t._e():a("span",[t._v("\n 暂未分享\n ")])]}}])})],1),t._v(" "),a("page",{attrs:{nowPage:t.lookDetail.nowPage,total:t.lookDetail.total,limit:t.lookDetail.limit},on:{pageChange:t.onLookDetailPageChange,sizeChange:t.onLookDetailSizeChange}})],1)],1)},staticRenderFns:[]};var p=a("VU/8")(f,v,!1,function(t){a("BslJ"),a("t1l4")},"data-v-42533d73",null);e.default=p.exports},BslJ:function(t,e){},G2rA:function(t,e,a){"use strict";var i=a("CCn6"),o={name:"refundDetail",props:["dialogObj"],data:function(){return{detail:[]}},filters:{filterStatus:function(t){var e="";return 0===t?e="退款中":1===t?e="退款成功":2===t&&(e="退款失败"),e}},methods:{initPage:function(){var t=this,e={out_trade_no:this.dialogObj.out_trade_no,limit:200};Object(i._54)(e).then(function(e){t.detail=e.list})}},watch:{"dialogObj.show":function(t){!0===t&&this.initPage()}}},l={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{title:"退款详情",center:"","append-to-body":"",visible:t.dialogObj.show,width:"90%"},on:{"update:visible":function(e){t.$set(t.dialogObj,"show",e)}}},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.detail}},[a("el-table-column",{attrs:{prop:"refund_no",label:"退款编号"}}),t._v(" "),a("el-table-column",{attrs:{prop:"out_trade_no",label:"订单号"}}),t._v(" "),a("el-table-column",{attrs:{label:"用户信息","min-width":"140",className:"userInfo"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("img",{staticClass:"avatar",attrs:{src:e.row.user_avatar}}),t._v("\n "+t._s(e.row.user_nickname)+"(ID:"+t._s(e.row.user_id)+")\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"order_money",label:"订单金额"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(parseFloat(e.row.order_money/100))+"元\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"refund_money",label:"退款金额"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(parseFloat(e.row.refund_money/100))+"元\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"desc",label:"备注"}}),t._v(" "),a("el-table-column",{attrs:{label:"退款状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t._f("filterStatus")(e.row.status))+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"success_at",label:"退款成功时间"}})],1)],1)},staticRenderFns:[]};var n=a("VU/8")(o,l,!1,function(t){a("6AGP")},"data-v-4a64444c",null);e.a=n.exports},O6Rd:function(t,e,a){"use strict";var i=a("CCn6"),o={name:"sourceDialog",props:["dialogObj"],data:function(){return{detail:[]}},filters:{moneyYuan:function(t){return t?(t/100).toFixed(2)+"元":""},filterStatus:function(t){var e="";return 0===t?e="审核中":1===t?e="提现成功":2===t&&(e="提现失败"),e}},methods:{initPage:function(){var t=this,e={out_trade_no:this.dialogObj.out_trade_no,limit:200};Object(i._74)(e).then(function(e){t.detail=e.list})}},watch:{"dialogObj.show":function(t){!0===t&&this.initPage()}}},l={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{title:"提现详情",center:"","append-to-body":"",visible:t.dialogObj.show,width:"90%"},on:{"update:visible":function(e){t.$set(t.dialogObj,"show",e)}}},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.detail}},[a("el-table-column",{attrs:{prop:"withdraw_no",label:"提现单号"}}),t._v(" "),a("el-table-column",{attrs:{prop:"out_trade_no",label:"订单号"}}),t._v(" "),a("el-table-column",{attrs:{label:"用户",width:"200",className:"f-c"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("img",{staticClass:"avatar",attrs:{src:e.row.user_avatar}}),t._v(" "+t._s(e.row.user_nickname)+"(ID:"+t._s(e.row.user_id)+")\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"user_mobile",label:"手机号"}}),t._v(" "),a("el-table-column",{attrs:{label:"提现金额"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t._f("moneyYuan")(e.row.money))+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"提现状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{class:{status:!0,red:2===e.row.status,green:1===e.row.status}},[t._v("\n "+t._s(t._f("filterStatus")(e.row.status))+"\n ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"提现成功时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.success_at)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"提现时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.created_at)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"reason",label:"失败原因"}}),t._v(" "),a("el-table-column",{attrs:{prop:"desc",label:"备注"}})],1)],1)},staticRenderFns:[]};var n=a("VU/8")(o,l,!1,function(t){a("/RlY")},"data-v-685cba10",null);e.a=n.exports},RpKh:function(t,e){},kmsh:function(t,e,a){"use strict";var i=a("CCn6"),o={name:"sourceDialog",props:["dialogObj"],data:function(){return{detail:[]}},filters:{filterStatus:function(t){var e="";return 0===t?e="未使用":1===t?e="已使用":2===t&&(e="禁用"),e}},methods:{initPage:function(){var t=this,e={order_coupon_id:this.dialogObj.order_coupon_id,limit:200};Object(i._31)(e).then(function(e){t.detail=e.list})}},watch:{"dialogObj.show":function(t){!0===t&&this.initPage()}}},l={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{title:"优惠券详情",center:"","append-to-body":"",visible:t.dialogObj.show,width:"90%"},on:{"update:visible":function(e){t.$set(t.dialogObj,"show",e)}}},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.detail}},[a("el-table-column",{attrs:{prop:"coupon_no",label:"优惠券码"}}),t._v(" "),a("el-table-column",{attrs:{prop:"out_trade_no",label:"订单号"}}),t._v(" "),a("el-table-column",{attrs:{label:"用户信息","min-width":"140",className:"userInfo"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("img",{staticClass:"avatar",attrs:{src:e.row.user_avatar}}),t._v("\n "+t._s(e.row.user_nickname)+"(ID:"+t._s(e.row.user_id)+")\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"优惠券金额"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(parseFloat(e.row.money/100))+"元\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"使用状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t._f("filterStatus")(e.row.status))+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"use_at",label:"使用时间"}})],1)],1)},staticRenderFns:[]};var n=a("VU/8")(o,l,!1,function(t){a("RpKh")},"data-v-1bce14d4",null);e.a=n.exports},t1l4:function(t,e){},xLof:function(t,e){}});
\ No newline at end of file
webpackJsonp([52],{"9r2m":function(e,n){},IcnI:function(e,n,t){"use strict";var o=t("NYxO"),a=t("zSLJ"),r={setToken:function(e,n){e.token=n,a.a.set("cc_token",n)},setUserName:function(e,n){e.userName=n,a.a.set("cc_user_name",n)},setPermission:function(e,n){e.progressList=n,localStorage.setItem("permission",JSON.stringify(n))},setMenu:function(e,n){e.menuList=n},readonly:function(e,n){e.readonly=n},deletePermission:function(e,n){e.deletePermission=n},mainCanShow:function(e){e.mainLoad=!1},mainUnShow:function(e){e.mainLoad=!0},changeParentRouter:function(e,n){e.menuList.find(function(e){return e.name===n.name}).routerName=n.to.name},progress:function(e,n){switch(n.type){case"new":e.progressList.push({num:0,id:n.id});break;case"change":e.progressList.find(function(e){return e.id===n.id}).num=n.num;break;case"delete":e.progressList.find(function(e){return e.id===n.id})}}};n.a=new o.a.Store({state:{show:!1,userName:"",token:"",orderRefund:!1,permission:!1,readonly:!0,deletePermission:!1,mainLoad:!0,menuList:[],menuType:!1,nowTab:"first",progressList:[],openedTab:[{value:"首页",routerName:"first",name:"first",delNo:!0,path:"/index"}]},mutations:r,actions:{setToken:function(e,n){(0,e.commit)("setToken",n)},setUserName:function(e,n){(0,e.commit)("setUserName",n)},setProgress:function(e,n){(0,e.commit)("progress",n)},setPermission:function(e,n){(0,e.commit)("setPermission",n)},setMenu:function(e,n){(0,e.commit)("setMenu",n)},readonly:function(e,n){(0,e.commit)("readonly",n)},deletePermission:function(e,n){(0,e.commit)("deletePermission",n)}}})},NHnr:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=[{name:"",value:"教研管理",icon:"icon-material",list:[{value:"教材列表",routerName:"resources",path:"/resources",cover:"1-1",router:{path:"/resources",name:"resources",component:function(e){return Promise.all([t.e(0),t.e(1)]).then(function(){var n=[t("z5EG")];e.apply(null,n)}.bind(this)).catch(t.oe)}}}]},{name:"",value:"商品课程",icon:"icon-shangpin1",list:[{value:"课程列表",routerName:"lesson",path:"/lesson",cover:"2-1",router:{path:"/lesson",name:"lesson",component:function(e){return Promise.all([t.e(0),t.e(9)]).then(function(){var n=[t("AbSL")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"商品列表",routerName:"shop",path:"/shop",cover:"4-1",router:{path:"/shop",name:"shop",component:function(e){return Promise.all([t.e(0),t.e(2)]).then(function(){var n=[t("1djJ")];e.apply(null,n)}.bind(this)).catch(t.oe)}}}]},{name:"",value:"期数管理",icon:"icon-kecheng",list:[{value:"期数列表",routerName:"periods",path:"/periods",cover:"2-2",router:{path:"/periods",name:"periods",component:function(e){return Promise.all([t.e(0),t.e(17)]).then(function(){var n=[t("ayGs")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"班级列表",routerName:"class",path:"/class",cover:"2-3",router:{path:"/class",name:"class",component:function(e){return Promise.all([t.e(0),t.e(23)]).then(function(){var n=[t("OX9A")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"不上课日期",routerName:"noLesson",path:"/noLesson",cover:"2-4",router:{path:"/noLesson",name:"noLesson",component:function(e){return Promise.all([t.e(0),t.e(28)]).then(function(){var n=[t("sg/1")];e.apply(null,n)}.bind(this)).catch(t.oe)}}}]},{name:"",value:"人员管理",icon:"icon-laoshi",list:[{value:"教师列表",routerName:"teacher",path:"/teacher",cover:"3-1",router:{path:"/teacher",name:"teacher",component:function(e){return Promise.all([t.e(0),t.e(21)]).then(function(){var n=[t("Y0Vi")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"用户列表",routerName:"user",path:"/user",cover:"3-2",router:{path:"/user",name:"user",component:function(e){return Promise.all([t.e(0),t.e(13)]).then(function(){var n=[t("jFLA")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"老系统用户列表",routerName:"oldUser",path:"/oldUser",cover:"3-3",router:{path:"/oldUser",name:"oldUser",component:function(e){return Promise.all([t.e(0),t.e(34)]).then(function(){var n=[t("K2yr")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"用户积分列表",routerName:"integral",path:"/integral",cover:"3-4",router:{path:"/integral",name:"integral",component:function(e){return Promise.all([t.e(0),t.e(11)]).then(function(){var n=[t("NDyu")];e.apply(null,n)}.bind(this)).catch(t.oe)}}}]},{name:"",value:"订单管理",icon:"icon-dingdan",list:[{value:"日课订单列表",routerName:"order",path:"/order",cover:"5-1",router:{path:"/order",name:"order",component:function(e){return Promise.all([t.e(0),t.e(4)]).then(function(){var n=[t("2qmY")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},,{value:"月课订单列表",routerName:"monthOrder",path:"/monthOrder",cover:"5-10",router:{path:"/monthOrder",name:"monthOrder",component:function(e){return Promise.all([t.e(0),t.e(5)]).then(function(){var n=[t("xdzM")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"退款列表",routerName:"refund",path:"/refund",cover:"5-2",router:{path:"/refund",name:"refund",component:function(e){return Promise.all([t.e(0),t.e(33)]).then(function(){var n=[t("89rD")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"提现列表",routerName:"putForward",path:"/putForward",cover:"5-3",router:{path:"/putForward",name:"putForward",component:function(e){return Promise.all([t.e(0),t.e(26)]).then(function(){var n=[t("F5pf")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"发货管理",routerName:"consignment",path:"/consignment",cover:"5-4",router:{path:"/consignment",name:"consignment",component:function(e){return t.e(48).then(function(){var n=[t("usUK")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"订单统计",routerName:"orderCount",path:"/orderCount",cover:"5-5",router:{path:"/orderCount",name:"orderCount",component:function(e){return Promise.all([t.e(0),t.e(44)]).then(function(){var n=[t("s7i+")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"日课订单统计",routerName:"dayOrderCount",path:"/dayOrderCount",cover:"5-11",router:{path:"/dayOrderCount",name:"dayOrderCount",component:function(e){return Promise.all([t.e(0),t.e(43)]).then(function(){var n=[t("mjLz")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"月课订单统计",routerName:"monthOrderCount",path:"/monthOrderCount",cover:"5-12",router:{path:"/monthOrderCount",name:"monthOrderCount",component:function(e){return Promise.all([t.e(0),t.e(40)]).then(function(){var n=[t("v/LD")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"优惠券列表",routerName:"coupon",path:"/coupon",cover:"5-6",router:{path:"/coupon",name:"coupon",component:function(e){return Promise.all([t.e(0),t.e(29)]).then(function(){var n=[t("WvRy")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"扫码入课列表",routerName:"notBuyClass",path:"/notBuyClass",cover:"5-8",router:{path:"/notBuyClass",name:"notBuyClass",component:function(e){return Promise.all([t.e(0),t.e(19)]).then(function(){var n=[t("E6Zo")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"云集订单列表",routerName:"yunji",path:"/yunji",cover:"5-9",router:{path:"/yunji",name:"yunji",component:function(e){return Promise.all([t.e(0),t.e(31)]).then(function(){var n=[t("69L+")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"业绩排行",routerName:"achievement",path:"/achievement",cover:"5-7",router:{path:"/achievement",name:"achievement",component:function(e){return Promise.all([t.e(0),t.e(20)]).then(function(){var n=[t("Fmgy")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"兑换码管理",routerName:"exchange",path:"/exchange",cover:"5-13",router:{path:"/exchange",name:"exchange",component:function(e){return Promise.all([t.e(0),t.e(10)]).then(function(){var n=[t("CvLZ")];e.apply(null,n)}.bind(this)).catch(t.oe)}}}]},{name:"",value:"实物管理",icon:"icon-shu",list:[{value:"单品列表",routerName:"single",path:"/single",cover:"6-1",router:{path:"/single",name:"single",component:function(e){return Promise.all([t.e(0),t.e(18)]).then(function(){var n=[t("B31M")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"盒子列表",routerName:"box",path:"/box",cover:"6-2",router:{path:"/box",name:"box",component:function(e){return Promise.all([t.e(0),t.e(15)]).then(function(){var n=[t("+vCD")];e.apply(null,n)}.bind(this)).catch(t.oe)}}}]},{name:"",value:"公众号",icon:"icon-ai-weixin",list:[{value:"自动回复",routerName:"focusReply",path:"/focusReply",cover:"7-1",router:{path:"/focusReply",name:"focusReply",component:function(e){return Promise.all([t.e(0),t.e(22)]).then(function(){var n=[t("CK6D")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"关键词回复",routerName:"autoReply",path:"/autoReply",cover:"7-2",router:{path:"/autoReply",name:"autoReply",component:function(e){return Promise.all([t.e(0),t.e(16)]).then(function(){var n=[t("65NY")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"公众号菜单",routerName:"weChat",path:"/weChat",cover:"7-3",router:{path:"/weChat",name:"weChat",component:function(e){return Promise.all([t.e(0),t.e(24)]).then(function(){var n=[t("q5av")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"素材管理",routerName:"weChatResource",path:"/weChatResource",cover:"7-4",router:{path:"/weChatResource",name:"weChatResource",component:function(e){return Promise.all([t.e(0),t.e(35)]).then(function(){var n=[t("Xhqp")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"二维码管理",routerName:"qrcode",path:"/qrcode",cover:"7-6",router:{path:"/qrcode",name:"qrcode",component:function(e){return Promise.all([t.e(0),t.e(14)]).then(function(){var n=[t("lNiQ")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"群发助手",routerName:"groupSend",path:"/groupSend",cover:"7-7",router:{path:"/groupSend",name:"groupSend",component:function(e){return Promise.all([t.e(0),t.e(32)]).then(function(){var n=[t("oerw")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"关注取关统计",routerName:"watchCount",path:"/watchCount",cover:"7-8",router:{path:"/watchCount",name:"watchCount",component:function(e){return Promise.all([t.e(0),t.e(50)]).then(function(){var n=[t("Dq6T")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"微信统计",routerName:"weChatStatistics",path:"/weChatStatistics",cover:"7-10",router:{path:"/weChatStatistics",name:"weChatStatistics",component:function(e){return Promise.all([t.e(0),t.e(51)]).then(function(){var n=[t("5t3x")];e.apply(null,n)}.bind(this)).catch(t.oe)}}}]},{name:"",value:"系统管理",icon:"icon-xitongquanxian",list:[{value:"Banner管理",routerName:"banner",path:"/banner",cover:"7-5",router:{path:"/banner",name:"banner",component:function(e){return Promise.all([t.e(0),t.e(30)]).then(function(){var n=[t("CGL6")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"外部投放管理",routerName:"externalLaunch",path:"/externalLaunch",cover:"7-9",router:{path:"/externalLaunch",name:"externalLaunch",component:function(e){return Promise.all([t.e(0),t.e(36)]).then(function(){var n=[t("NrkQ")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"来源码管理",routerName:"sourceManage",path:"/sourceManage",cover:"10-1",router:{path:"/sourceManage",name:"sourceManage",component:function(e){return Promise.all([t.e(0),t.e(12)]).then(function(){var n=[t("/ubI")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"短信发送记录",routerName:"smsRecord",path:"/smsRecord",cover:"10-2",router:{path:"/smsRecord",name:"smsRecord",component:function(e){return Promise.all([t.e(0),t.e(25)]).then(function(){var n=[t("qjS+")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"系统配置",routerName:"config",path:"/config",cover:"10-3",router:{path:"/config",name:"config",component:function(e){return Promise.all([t.e(0),t.e(37)]).then(function(){var n=[t("TPCG")];e.apply(null,n)}.bind(this)).catch(t.oe)}}}]},{name:"",value:"后台管理",icon:"icon-shezhi",list:[{value:"账号管理",routerName:"admin",path:"/admin",cover:"8-1",router:{path:"/admin",name:"admin",component:function(e){return Promise.all([t.e(0),t.e(42)]).then(function(){var n=[t("+jTk")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"角色管理",routerName:"role",path:"/role",cover:"8-2",router:{path:"/role",name:"role",component:function(e){return Promise.all([t.e(0),t.e(41)]).then(function(){var n=[t("Vt1u")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"菜单管理",routerName:"menu",path:"/menu",cover:"8-3",router:{path:"/menu",name:"menu",component:function(e){return Promise.all([t.e(0),t.e(47)]).then(function(){var n=[t("aTXs")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"系统配置",routerName:"sysConfig",path:"/sysConfig",cover:"8-4",router:{path:"/sysConfig",name:"sysConfig",component:function(e){return Promise.all([t.e(0),t.e(27)]).then(function(){var n=[t("gaNG")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"操作日志",routerName:"adminLog",path:"/adminLog",cover:"8-5",router:{path:"/adminLog",name:"adminLog",component:function(e){return Promise.all([t.e(0),t.e(39)]).then(function(){var n=[t("WZgi")];e.apply(null,n)}.bind(this)).catch(t.oe)}}}]}],a={name:"App",data:function(){return{}},mounted:function(){var e=this;if(window.location.href.indexOf("login")<0){var n=this.$store.state.progressList,a=[];this.$router.options.routes[0].children=[];var r={path:"/userDetail/:id",name:"userDetail",component:function(e){return Promise.all([t.e(0),t.e(6)]).then(function(){var n=[t("9PRC")];e.apply(null,n)}.bind(this)).catch(t.oe)}},u={path:"/teacher/:id",name:"teacherDetail",component:function(e){return Promise.all([t.e(0),t.e(7)]).then(function(){var n=[t("hFUZ")];e.apply(null,n)}.bind(this)).catch(t.oe)}};o.forEach(function(t){var o=!1,i=[];t.list.forEach(function(t){var a=n.find(function(e){return e.cover===t.cover});a&&(t.router.meta={},t.router.meta.readonly=a.readonly,t.router.meta.delete=!!a.delete,t.router.meta.refund=a.refund,i.push(t),"3-1"===a.cover&&(u.meta={},u.meta.readonly=a.readonly,u.meta.delete=!!a.delete,e.$router.options.routes[0].children.push(u)),"3-2"===a.cover&&(r.meta={},r.meta.readonly=a.readonly,r.meta.delete=!!a.delete,e.$router.options.routes[0].children.push(r)),e.$router.options.routes[0].children.push(t.router),o=!0)}),o&&(t.list=i,a.push(t))}),this.$router.addRoutes([this.$router.options.routes[0]]),this.$store.dispatch("setMenu",a)}}},r={render:function(){var e=this.$createElement,n=this._self._c||e;return n("div",{attrs:{id:"app"}},[n("router-view")],1)},staticRenderFns:[]};var u=t("VU/8")(a,r,!1,function(e){t("9r2m")},null,null).exports,i=t("YaEn"),c=t("IcnI");Vue.config.productionTip=!1,new Vue({el:"#app",store:c.a,router:i.a,components:{App:u},template:"<App/>"})},YaEn:function(e,n,t){"use strict";var o=t("IcnI"),a=t("/ocq"),r=t("zSLJ"),u=new a.a({routes:[{path:"/",name:"index",component:function(e){return Promise.all([t.e(0),t.e(8)]).then(function(){var n=[t("jHcp")];e.apply(null,n)}.bind(this)).catch(t.oe)},redirect:{name:"first"},children:[{path:"",name:"first",component:function(e){return t.e(38).then(function(){var n=[t("sJm1")];e.apply(null,n)}.bind(this)).catch(t.oe)}}]},{path:"/login",name:"login",component:function(e){return Promise.all([t.e(0),t.e(46)]).then(function(){var n=[t("0HId")];e.apply(null,n)}.bind(this)).catch(t.oe)},meta:{skip_auth:!0}},{path:"/outManager",name:"outManager",component:function(e){return Promise.all([t.e(0),t.e(49)]).then(function(){var n=[t("hLMI")];e.apply(null,n)}.bind(this)).catch(t.oe)},meta:{skip_auth:!0}},{path:"/upload",name:"upload",component:function(e){return Promise.all([t.e(0),t.e(45)]).then(function(){var n=[t("iPJD")];e.apply(null,n)}.bind(this)).catch(t.oe)},meta:{skip_auth:!0}},{path:"/newLesson",name:"newLesson",component:function(e){return Promise.all([t.e(0),t.e(3)]).then(function(){var n=[t("4t0V")];e.apply(null,n)}.bind(this)).catch(t.oe)},meta:{skip_auth:!0}}]});u.beforeEach(function(e,n,t){if(o.a.commit("mainCanShow"),r.a.get("cc_token")&&(o.a.dispatch("setToken",r.a.get("cc_token")),o.a.dispatch("setPermission",JSON.parse(localStorage.getItem("permission"))),null!==r.a.get("cc_user_name")&&o.a.dispatch("setUserName",r.a.get("cc_user_name"))),o.a.state.nowTab=e.name,e.matched.length>1&&"first"!==e.name){for(var a=void 0,u=0;u<o.a.state.menuList.length;u++)for(var i=o.a.state.menuList[u],c=0;c<i.list.length;c++){var l=i.list[c];l.path===e.path&&(a=l)}o.a.state.openedTab.indexOf(a)<0&&o.a.state.openedTab.push(a)}if(e.meta.readonly?o.a.dispatch("readonly",!0):o.a.dispatch("readonly",!1),o.a.state.orderRefund=e.meta.refund,"userDetail"===e.name){var s=JSON.parse(localStorage.getItem("permission")).find(function(e){return"3-2"===e.cover}).readonly;o.a.dispatch("readonly",s)}e.meta.delete?o.a.dispatch("deletePermission",!0):o.a.dispatch("deletePermission",!1),e.matched.some(function(e){return!0!==e.meta.skip_auth})&&!o.a.state.token?t({path:"/login"}):t()}),u.onError(function(e){var n=e.message.match(/Loading chunk (\d)+ failed/g),t=u.history.pending.fullPath;n&&u.replace(t)}),n.a=u},lRwf:function(e,n){e.exports=Vue},zSLJ:function(e,n,t){"use strict";n.a={set:function(e,n,t){var o=new Date;o.setTime(o.getTime()+864e5*t),window.document.cookie=e+"="+n+";path=/;expires="+o.toGMTString()},get:function(e){var n=window.document.cookie.match("(^|;) ?"+e+"=([^;]*)(;|$)");return n?n[2]:null},delete:function(e){this.set(e,"",-1)}}}},["NHnr"]);
\ No newline at end of file
!function(e){var a=window.webpackJsonp;window.webpackJsonp=function(c,n,r){for(var b,t,o,i=0,u=[];i<c.length;i++)t=c[i],f[t]&&u.push(f[t][0]),f[t]=0;for(b in n)Object.prototype.hasOwnProperty.call(n,b)&&(e[b]=n[b]);for(a&&a(c,n,r);u.length;)u.shift()();if(r)for(i=0;i<r.length;i++)o=d(d.s=r[i]);return o};var c={},f={54:0};function d(a){if(c[a])return c[a].exports;var f=c[a]={i:a,l:!1,exports:{}};return e[a].call(f.exports,f,f.exports,d),f.l=!0,f.exports}d.e=function(e){var a=f[e];if(0===a)return new Promise(function(e){e()});if(a)return a[2];var c=new Promise(function(c,d){a=f[e]=[c,d]});a[2]=c;var n=document.getElementsByTagName("head")[0],r=document.createElement("script");r.type="text/javascript",r.charset="utf-8",r.async=!0,r.timeout=12e4,d.nc&&r.setAttribute("nonce",d.nc),r.src=d.p+"static/js/"+e+"."+{0:"4ace805d2cf524b8d13e",1:"1c87ee32f87c48211e10",2:"d1dedb7aae0c4808be1c",3:"7ec694679898ed891211",4:"4e6af4e13a3a28f4acfb",5:"73a142e108f57e9a8a25",6:"6ac4f749d4095ee6ff4f",7:"19408b46b9bdfac2de0c",8:"dabbff2c8e6702bca51c",9:"95d06b3ed1fd2b04a371",10:"bd9f3a83aae952f9725c",11:"a52e87e028ef5de9eb34",12:"48d3f3315ee284892aa3",13:"ae991e7b7eecee801e68",14:"018f99fadb94ec4cfead",15:"a5a5e8814911457480a6",16:"7c6c8b10d47ba8ca897d",17:"43d77bb9b58fb56a85af",18:"7390bf9d3a80541d2f3d",19:"f8e8efe4c00a41b4bfb1",20:"8860af5a2bfd34dc1fb3",21:"9697d76953c2141e1c42",22:"c6200e02053b8065512f",23:"fa7314b1c56e0e055665",24:"bc9ad9686642092f9294",25:"9442b5b325d08f47b29a",26:"927b652ded28552062ed",27:"29df7912ecb36a35106a",28:"3da5f2e721f3bdd53cf0",29:"1688a6cba717e0bbf00c",30:"de89a5473bf98f3b7a8a",31:"607866bad3cdea8dc1d3",32:"10aa31c1d4f13e66558e",33:"628c6fa615c8a68c94bf",34:"7229fc4609f44c673897",35:"c69762c9f6ad041e6e5c",36:"2a8862e4a22c90a35cb1",37:"c725871259d25c0d23d0",38:"36d262b88ddd5b4449f9",39:"6c4642f5272af03d8d92",40:"a51a7611b35c5c631cc3",41:"b2102e84576376042342",42:"43dc34797455d375f3cf",43:"b32400e22aebe9cd36a0",44:"39b366b34e378dccdf01",45:"71b5ff3053f6d0691749",46:"a6c825284330126663ae",47:"a5b94da3c6032d5f4c35",48:"b163cd5e2750e3f00800",49:"dabfbbfb1c0545ec96a9",50:"f3d387b4b31710ee95d8",51:"fc89035f1395ed8cfd2d"}[e]+".js";var b=setTimeout(t,12e4);function t(){r.onerror=r.onload=null,clearTimeout(b);var a=f[e];0!==a&&(a&&a[1](new Error("Loading chunk "+e+" failed.")),f[e]=void 0)}return r.onerror=r.onload=t,n.appendChild(r),c},d.m=e,d.c=c,d.d=function(e,a,c){d.o(e,a)||Object.defineProperty(e,a,{configurable:!1,enumerable:!0,get:c})},d.n=function(e){var a=e&&e.__esModule?function(){return e.default}:function(){return e};return d.d(a,"a",a),a},d.o=function(e,a){return Object.prototype.hasOwnProperty.call(e,a)},d.p="/",d.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
......@@ -65,6 +65,7 @@
unlink-panels
type="daterange"
value-format="yyyy-MM-dd"
:picker-options="{shortcuts:[today,yesterday,last30Day]}"
range-separator="至"
:shortcuts="[]"
start-placeholder="开始日期"
......
......@@ -10,14 +10,14 @@
value-format="yyyy-MM-dd"
start-placeholder="开始日期"
end-placeholder="结束日期"
@change="searchList">
@change="searchList()">
</el-date-picker>
</el-form-item>
<el-form-item label="用户ID">
<el-input v-model="searchFrom.user_id"/>
</el-form-item>
<el-form-item label="是否添加老师">
<el-select v-model="searchFrom.is_add_teacher" placeholder="请选择" @change="searchList">
<el-select v-model="searchFrom.is_add_teacher" placeholder="请选择" @change="searchList()">
<el-option
label="全部"
value="">
......@@ -33,7 +33,7 @@
</el-select>
</el-form-item>
<el-form-item label="是否可看课">
<el-select v-model="searchFrom.is_view_course" placeholder="请选择" @change="searchList">
<el-select v-model="searchFrom.is_view_course" placeholder="请选择" @change="searchList()">
<el-option
label="全部"
value="">
......@@ -710,6 +710,7 @@
if(this.searchFrom.is_view_course){
json.is_view_course = this.searchFrom.is_view_course
}
console.log(json,json2)
getClassStatisticsApi(this.userObj.periods_id,this.userObj.classId,json2).then(res=>{
this.statistics.arrive_course_rate = res.arrive_course_rate;
this.statistics.clock_rate = res.clock_rate;
......
......@@ -4,6 +4,9 @@
<el-form-item label="用户ID">
<el-input size="small" v-model="form.user_id"/>
</el-form-item>
<el-form-item label="激活码">
<el-input size="small" v-model="form.exchange_code"/>
</el-form-item>
<el-form-item label="是否激活">
<el-select size="small" v-model="form.is_exchange">
<el-option label="是" :value="1"></el-option>
......@@ -22,8 +25,8 @@
label="用户信息">
<template slot-scope="scope">
<div v-if="scope.row.user_id===0">暂无</div>
<div v-if="scope.row.user_id !== 0">
<img :src="scope.row.user_avatar" style="width: 40px;min-width:40px;height: 40px;border-radius: 50px"> {{scope.row.user_nickname}}(ID:{{scope.row.user_id}})
<div v-if="scope.row.user_id !== 0" style="display: flex">
<img :src="scope.row.user_avatar" style="width: 40px;margin-right:5px;min-width:40px;height: 40px;border-radius: 50px"> {{scope.row.user_nickname}}(ID:{{scope.row.user_id}})
<br> Tel:{{scope.row.user_mobile}}
</div>
</template>
......@@ -72,6 +75,7 @@
list:[],
form:{
user_id:'',
exchange_code:'',
is_exchange:''
},
totalPage:0,
......@@ -82,6 +86,7 @@
initPage(){
this.form = {
user_id:'',
exchange_code:'',
is_exchange:''
};
this.getList()
......@@ -113,6 +118,9 @@
if(this.form.user_id !== ""){
json.user_id = this.form.user_id
}
if(this.form.exchange_code !== ''){
json.exchange_code = this.form.exchange_code
}
exchangeDetailApi(this.detailList.id, json).then(res=>{
this.list = res.list;
this.totalPage = res.total;
......
......@@ -10,13 +10,13 @@
<el-form-item label="手机号">
<el-input v-model="form.mobile"></el-input>
</el-form-item>
<el-form-item label="积分类型">
<el-select v-model="form.is_add" clearable @change="getList">
<el-form-item label="获/抵方式">
<el-select v-model="form.source" @change="getList" clearable>
<el-option
v-for="(data,index) in is_addOption"
v-for="(data,index) in sourceOption"
:key="index"
:label="data.value"
:value="data.id.toString()">
:value="data.id">
</el-option>
</el-select>
</el-form-item>
......@@ -27,8 +27,9 @@
<div class="new-block" v-if="!$store.state.readonly">
<el-button type="success" plain @click="addIntegral">变更用户积分</el-button>
</div>
<el-tabs v-model="form.source" type="card" style="background: white;padding-top: 10px" @tab-click="getList">
<el-tab-pane v-for="(data,index) in sourceOption" :key="index" :label="data.value" :name="data.id.toString()"/>
<el-tabs v-model="form.is_add" type="card" style="background: white;padding-top: 10px" @tab-click="getList">
<el-tab-pane label="添加积分" name="1"/>
<el-tab-pane label="减少积分" name="0"/>
</el-tabs>
<el-table
:data="list"
......@@ -113,8 +114,8 @@
},
nowPage:1,
form:{
is_add:'',
source:'0',
is_add:'1',
source:'',
user_id:'',
mobile:'',
nickname:''
......@@ -164,8 +165,8 @@
},
initPage(){
this.form = {
is_add:'',
source:'0',
is_add:'1',
source:'',
user_id:'',
mobile:'',
nickname:''
......
......@@ -71,6 +71,7 @@
range-separator="至"
start-placeholder="开始日期"
end-placeholder="结束日期"
:picker-options="{shortcuts:[today,yesterday,last30Day]}"
:default-time="['00:00:00','23:59:59']"
@change="getOrderList">
</el-date-picker>
......@@ -313,6 +314,26 @@
show:false,
out_trade_no:''
},
today:{
text:'今天',
onClick:()=>{
this.searchFrom.payTime = [this.formatTime(new Date())+' 00:00:00',this.formatTime(new Date())+' 23:59:59'];
}
},
yesterday:{
text:'昨天',
onClick:()=>{
let preDate = this.formatTime(new Date(new Date().getTime() - 24*60*60*1000));
this.searchFrom.payTime = [preDate+' 00:00:00',preDate+' 23:59:59'];
}
},
last30Day:{
text:'过去30天',
onClick:()=>{
let preDate = this.formatTime(new Date(new Date().getTime() - 30*24*60*60*1000));
this.searchFrom.payTime = [preDate+' 00:00:00',this.formatTime(new Date())+' 23:59:59'];
}
},
couponDetail:{
show:false,
order_coupon_id:''
......@@ -374,6 +395,16 @@
}
},
methods: {
formatTime(date){
let year = date.getFullYear();
let Month = date.getMonth()+1;
if(Month < 10){
Month = `0${Month}`
}
let Day = date.getDate();
if(Day<10)Day = `0${Day}`;
return `${year}-${Month}-${Day}`;
},
showRef(data){
this.refundDetail.show = true;
this.refundDetail.out_trade_no = data.out_trade_no;
......
......@@ -50,7 +50,15 @@
<el-input v-model="searchFrom.out_trade_no"></el-input>
</el-form-item>
<el-form-item label="购买时间">
<el-date-picker v-model="searchFrom.payTime" type="datetimerange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" :default-time="['00:00:00','23:59:59']" @change="getOrderList">
<el-date-picker
v-model="searchFrom.payTime"
type="datetimerange"
range-separator="至"
start-placeholder="开始日期"
end-placeholder="结束日期"
:picker-options="{shortcuts:[today,yesterday,last30Day]}"
:default-time="['00:00:00','23:59:59']"
@change="getOrderList">
</el-date-picker>
</el-form-item>
<el-form-item>
......@@ -229,6 +237,26 @@ export default {
return {
nowPage: 1,
total: 0,
today:{
text:'今天',
onClick:()=>{
this.searchFrom.payTime = [this.formatTime(new Date())+' 00:00:00',this.formatTime(new Date())+' 23:59:59'];
}
},
yesterday:{
text:'昨天',
onClick:()=>{
let preDate = this.formatTime(new Date(new Date().getTime() - 24*60*60*1000));
this.searchFrom.payTime = [preDate+' 00:00:00',preDate+' 23:59:59'];
}
},
last30Day:{
text:'过去30天',
onClick:()=>{
let preDate = this.formatTime(new Date(new Date().getTime() - 30*24*60*60*1000));
this.searchFrom.payTime = [preDate+' 00:00:00',this.formatTime(new Date())+' 23:59:59'];
}
},
sourceDialog: {
show: false,
out_trade_no: ""
......@@ -289,6 +317,16 @@ export default {
};
},
methods: {
formatTime(date){
let year = date.getFullYear();
let Month = date.getMonth()+1;
if(Month < 10){
Month = `0${Month}`
}
let Day = date.getDate();
if(Day<10)Day = `0${Day}`;
return `${year}-${Month}-${Day}`;
},
showRef(data) {
this.refundDetail.show = true;
this.refundDetail.out_trade_no = data.out_trade_no;
......
......@@ -22,6 +22,7 @@
<el-date-picker
v-model="searchFrom.dateValue"
unlink-panels
:picker-options="{shortcuts:[today,yesterday,last30Day]}"
type="daterange"
value-format="yyyy-MM-dd"
range-separator="至"
......@@ -72,6 +73,26 @@
goodsList:[],
headList:[],
tableData:[],
today:{
text:'今天',
onClick:()=>{
this.searchFrom.dateValue = [this.formatTime(new Date()),this.formatTime(new Date())];
}
},
yesterday:{
text:'昨天',
onClick:()=>{
let preDate = this.formatTime(new Date(new Date().getTime() - 24*60*60*1000));
this.searchFrom.dateValue = [preDate,preDate];
}
},
last30Day:{
text:'过去30天',
onClick:()=>{
let preDate = this.formatTime(new Date(new Date().getTime() - 30*24*60*60*1000));
this.searchFrom.dateValue = [preDate,this.formatTime(new Date())];
}
},
searchFrom:{
priceList:[],
dateValue:[]
......@@ -97,6 +118,16 @@
}
},
methods:{
formatTime(date){
let year = date.getFullYear();
let Month = date.getMonth()+1;
if(Month < 10){
Month = `0${Month}`
}
let Day = date.getDate();
if(Day<10)Day = `0${Day}`;
return `${year}-${Month}-${Day}`;
},
initPage(){
getGoodsListApi({limit:99999,course_type:1}).then(res=>{
res.list.forEach(i=>{
......
......@@ -23,6 +23,7 @@
v-model="searchFrom.dateValue"
unlink-panels
type="daterange"
:picker-options="{shortcuts:[today,yesterday,last30Day]}"
value-format="yyyy-MM-dd"
range-separator="至"
start-placeholder="开始日期"
......@@ -71,6 +72,26 @@
return {
goodsList:[],
headList:[],
today:{
text:'今天',
onClick:()=>{
this.searchFrom.dateValue = [this.formatTime(new Date()),this.formatTime(new Date())];
}
},
yesterday:{
text:'昨天',
onClick:()=>{
let preDate = this.formatTime(new Date(new Date().getTime() - 24*60*60*1000));
this.searchFrom.dateValue = [preDate,preDate];
}
},
last30Day:{
text:'过去30天',
onClick:()=>{
let preDate = this.formatTime(new Date(new Date().getTime() - 30*24*60*60*1000));
this.searchFrom.dateValue = [preDate,this.formatTime(new Date())];
}
},
tableData:[],
searchFrom:{
priceList:[],
......@@ -97,6 +118,16 @@
}
},
methods:{
formatTime(date){
let year = date.getFullYear();
let Month = date.getMonth()+1;
if(Month < 10){
Month = `0${Month}`
}
let Day = date.getDate();
if(Day<10)Day = `0${Day}`;
return `${year}-${Month}-${Day}`;
},
initPage(){
getGoodsListApi({limit:99999,course_type:0}).then(res=>{
res.list.forEach(i=>{
......
......@@ -45,10 +45,27 @@
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="课程类型" required>
<el-select v-model="form.course_type" placeholder="请选择">
<el-option
:label="'日课'"
:value="1">
</el-option>
<el-option
:label="'月课'"
:value="0">
</el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="12" v-if="form.goods_type === 4">
<el-form-item label="可用商品" required>
<el-select multiple v-model="goodsYou" placeholder="全部">
<el-option v-for="data in goodsList"
v-if="data.course_type === form.course_type"
:key="data.id"
:label="data | filterGoods"
:value="data.id">
......
......@@ -60,8 +60,8 @@
<el-button type="success" plain @click="add" v-if="!$store.state.readonly">添加商品</el-button>
</div>
<el-tabs v-model="searchFrom.status" type="card" style="background: white;padding-top: 10px" @tab-click="getUser">
<el-tab-pane label="编辑中" name="0"></el-tab-pane>
<el-tab-pane label="上架" name="1"></el-tab-pane>
<el-tab-pane label="编辑中" name="0"></el-tab-pane>
<el-tab-pane label="下架" name="2"></el-tab-pane>
</el-tabs>
<el-table
......@@ -226,7 +226,7 @@
searchFrom:{
name:'',
goods_type: '',
status: '0',
status: '1',
course_id: '',
course_type:"",
},
......
<template>
<div class="user">
<div class="header">
<!-- <div class="clear-both" style="margin-top: 20px" v-if="detail">
<el-button size="mini" plain type="success" v-if="!$store.state.readonly" @click="bindTeacher" style="float: right">
绑定老师
</el-button>
</div> -->
<el-row>
<el-col :span="6">
<label>昵称:</label>
<a :href="detail.qr">
<img class="avatar" :src="detail.avatar"/>
<el-card class="user-card">
<el-row :gutter="20">
<el-col :span="24" class="title">
<a :href="detail.avatar" target="_blank">
<img :src="detail.avatar"/>
</a>
{{detail.nickname}} (ID: {{id}})
<div style="text-align: center">
{{detail.nickname}} (ID: {{id}})
</div>
</el-col>
<el-col :span="6">
<label>手机号:</label> {{detail.mobile}}
</el-row>
<el-row :gutter="20">
<el-col :span="12">
<label>tel:</label>{{detail.mobile}}
</el-col>
<el-col :span="6">
<el-col :span="12">
<label>生日:</label>{{detail.birthday}}
</el-col>
<el-col :span="6">
<el-col :span="12">
<label>等级:</label>{{detail.level}}
</el-col>
</el-row>
<el-row>
<el-col :span="6">
<el-col :span="12">
<label>邀请类型:</label>{{detail.invite_type | inviteType}}
</el-col>
<el-col :span="6">
<el-col :span="12">
<label>邀请人ID:</label>{{detail.invite_user_id ? detail.invite_user_id : ''}}
</el-col>
<el-col :span="6">
<el-col :span="12">
<label>已绑定老师:</label>{{detail.teacher_name}}
</el-col>
<el-col :span="6">
<el-col :span="12">
<label>注册时间:</label>{{detail.created_at}}
</el-col>
</el-row>
<el-row>
<el-col :span="6">
<el-col :span="12">
<label>最后登录:</label>{{detail.last_login_at}}
</el-col>
</el-row>
</div>
<div class="b-title">期数列表</div>
<el-table
@expand-change="changeRow"
:data="periodList"
style="width: 100%">
<el-table-column type="expand">
<template slot-scope="scope">
<el-table
:data="list"
style="width: 100%">
<el-table-column
label="到课率">
<template slot-scope="scope2">
<span>{{ scope2.row.arrive_course_rate | percent}}</span>
</template>
</el-table-column>
<el-table-column
label="看课率">
<template slot-scope="scope2">
<span>{{ scope2.row.watch_course_rate | percent}}</span>
</template>
</el-table-column>
<el-table-column
label="完课率">
<template slot-scope="scope2">
<span>{{ scope2.row.over_course_rate | percent}}</span>
</template>
</el-table-column>
<el-table-column
label="作业率">
<template slot-scope="scope2">
<span>{{ scope2.row.work_rate | percent}}</span>
</template>
</el-table-column>
<el-table-column
label="全勤作业率">
<template slot-scope="scope2">
<span>{{ scope2.row.over_work_rate | percent}}</span>
</template>
</el-table-column>
<el-table-column
label="打卡率">
<template slot-scope="scope2">
<span>{{ scope2.row.clock_rate | percent}}</span>
</template>
</el-table-column>
<el-table-column
label="全勤打卡率">
<template slot-scope="scope2">
<span>{{ scope2.row.over_clock_rate | percent}}</span>
</template>
</el-table-column>
<el-table-column
label="转化率">
<template slot-scope="scope2">
<span>{{ scope2.row.transform_rate | percent}}</span>
</template>
</el-table-column>
</el-table>
</template>
</el-table-column>
<el-table-column
prop="periods_title"
label="期数名称">
<template slot-scope="scope">
<router-link :to="{name:'class', query: { goods_id: scope.row.goods_id, periods_id: scope.row.periods_id}}" >
{{scope.row.periods_title}}
</router-link>
</template>
</el-table-column>
<el-table-column
label="看课权限">
<template slot-scope="scope">
{{scope.row.is_view_course === 1 ? '是' : '否'}}
</template>
</el-table-column>
<el-table-column
className="f-c"
label="老师">
<template slot-scope="scope">
<router-link :to="`/teacher/${scope.row.teacher_id}`" >
<div class="f-c">
<div>
<img class="avatar" :src="scope.row.teacher_qr"> {{scope.row.teacher_name}}
</el-card>
<el-tabs type="border-card">
<el-tab-pane label="期数列表">
<el-table
@expand-change="changeRow"
:data="periodList"
style="width: 100%">
<el-table-column type="expand">
<template slot-scope="scope">
<el-table
:data="list"
style="width: 100%">
<el-table-column
label="到课率">
<template slot-scope="scope2">
<span>{{ scope2.row.arrive_course_rate | percent}}</span>
</template>
</el-table-column>
<el-table-column
label="看课率">
<template slot-scope="scope2">
<span>{{ scope2.row.watch_course_rate | percent}}</span>
</template>
</el-table-column>
<el-table-column
label="完课率">
<template slot-scope="scope2">
<span>{{ scope2.row.over_course_rate | percent}}</span>
</template>
</el-table-column>
<el-table-column
label="作业率">
<template slot-scope="scope2">
<span>{{ scope2.row.work_rate | percent}}</span>
</template>
</el-table-column>
<el-table-column
label="全勤作业率">
<template slot-scope="scope2">
<span>{{ scope2.row.over_work_rate | percent}}</span>
</template>
</el-table-column>
<el-table-column
label="打卡率">
<template slot-scope="scope2">
<span>{{ scope2.row.clock_rate | percent}}</span>
</template>
</el-table-column>
<el-table-column
label="全勤打卡率">
<template slot-scope="scope2">
<span>{{ scope2.row.over_clock_rate | percent}}</span>
</template>
</el-table-column>
<el-table-column
label="转化率">
<template slot-scope="scope2">
<span>{{ scope2.row.transform_rate | percent}}</span>
</template>
</el-table-column>
</el-table>
</template>
</el-table-column>
<el-table-column
prop="periods_title"
label="期数名称">
<template slot-scope="scope">
<router-link :to="{name:'class', query: { goods_id: scope.row.goods_id, periods_id: scope.row.periods_id}}" >
{{scope.row.periods_title}}
</router-link>
</template>
</el-table-column>
<el-table-column
label="看课权限">
<template slot-scope="scope">
{{scope.row.is_view_course === 1 ? '是' : '否'}}
</template>
</el-table-column>
<el-table-column
className="f-c"
label="老师">
<template slot-scope="scope">
<router-link :to="`/teacher/${scope.row.teacher_id}`" >
<div class="f-c">
<div>
<img class="avatar" :src="scope.row.teacher_qr"> {{scope.row.teacher_name}}
</div>
</div>
</router-link>
</template>
</el-table-column>
<el-table-column
prop="join_num"
label="加入人数">
</el-table-column>
<el-table-column
prop="max_join_num"
label="最大加入人数">
</el-table-column>
<el-table-column
prop="start_at"
label="开课时间">
</el-table-column>
<el-table-column
prop="created_at"
label="创建时间">
</el-table-column>
<el-table-column
label="操作" width="400px">
<template slot-scope="scope">
<el-button @click="showUser(scope.row)" size="mini" type="primary"> 班级成员</el-button>
<el-button size="mini" type="warning" @click="editPrivilege(scope.row)" >编辑</el-button>
<el-button size="mini" type="primary" @click="onGetUserDescList(scope.row)" >备注</el-button>
<el-button size="mini" type="primary" @click="userLook(scope.row)">看课情况 </el-button>
</template>
</el-table-column>
</el-table>
</el-tab-pane>
<el-tab-pane label="订单列表">
<el-table
:data="userList"
style="width: 100%">
<el-table-column
prop="out_trade_no"
label="订单号"
>
</el-table-column>
<el-table-column
label="购买人"
className="f-c"
width="150">
<template slot-scope="scope">
<img class="avatar" :src="scope.row.user_avatar"/> {{scope.row.user_nickname}}<br>(ID:{{scope.row.user_id}})
</template>
</el-table-column>
<el-table-column
prop="periods_title"
label="期数标题">
</el-table-column>
<el-table-column
prop="goods_name"
label="商品名称">
</el-table-column>
<el-table-column
width="250"
prop="invite_id"
className="f-c"
label="推广人属性">
<template slot-scope="scope">
<div @click="showSource(scope.row)" v-if="scope.row.invite_earnings > 0 && scope.row.invite_id !== 0" style="display: flex;color: #409eff;cursor: pointer">
<img :src="scope.row.invite_avatar" class="avatar"/>
类型:{{scope.row.invite_type}}
<br>
收益:{{scope.row.invite_earnings / 100}}
<br>
用户ID:{{scope.row.invite_id}}
<br>
昵称:{{scope.row.invite_nickname}}
<br>
手机:{{scope.row.invite_mobile}}
</div>
</div>
</router-link>
</template>
</el-table-column>
<el-table-column
prop="join_num"
label="加入人数">
</el-table-column>
<el-table-column
prop="max_join_num"
label="最大加入人数">
</el-table-column>
<el-table-column
prop="start_at"
label="开课时间">
</el-table-column>
<el-table-column
prop="created_at"
label="创建时间">
</el-table-column>
<el-table-column
label="操作" width="400px">
<template slot-scope="scope">
<el-button @click="showUser(scope.row)" size="mini" type="primary"> 班级成员</el-button>
<el-button size="mini" type="warning" @click="editPrivilege(scope.row)" >编辑</el-button>
<el-button size="mini" type="primary" @click="onGetUserDescList(scope.row)" >备注</el-button>
<el-button size="mini" type="primary" @click="userLook(scope.row)">看课情况 </el-button>
</template>
</el-table-column>
</el-table>
<div class="b-title">订单列表</div>
<el-table
:data="userList"
style="width: 100%">
<el-table-column
prop="out_trade_no"
label="订单号"
>
</el-table-column>
<el-table-column
label="购买人"
className="f-c"
width="150">
<template slot-scope="scope">
<img class="avatar" :src="scope.row.user_avatar"/> {{scope.row.user_nickname}}<br>(ID:{{scope.row.user_id}})
</template>
</el-table-column>
<el-table-column
prop="periods_title"
label="期数标题">
</el-table-column>
<el-table-column
prop="goods_name"
label="商品名称">
</el-table-column>
<el-table-column
width="250"
prop="invite_id"
className="f-c"
label="推广人属性">
<template slot-scope="scope">
<div @click="showSource(scope.row)" v-if="scope.row.invite_earnings > 0 && scope.row.invite_id !== 0" style="display: flex;color: #409eff;cursor: pointer">
<img :src="scope.row.invite_avatar" class="avatar"/>
类型:{{scope.row.invite_type}}
<br>
收益:{{scope.row.invite_earnings / 100}}
<br>
用户ID:{{scope.row.invite_id}}
<br>
昵称:{{scope.row.invite_nickname}}
<br>
手机:{{scope.row.invite_mobile}}
</div>
<div v-if="scope.row.invite_earnings === 0 && scope.row.invite_id !== 0" style="display: flex;">
<img :src="scope.row.invite_avatar" class="avatar"/>
类型:{{scope.row.invite_type}}
<br>
收益:{{scope.row.invite_earnings / 100}}
<br>
用户ID:{{scope.row.invite_id}}
<br>
昵称:{{scope.row.invite_nickname}}
<br>
手机:{{scope.row.invite_mobile}}
</div>
<div v-if="scope.row.invite_id === 0">
</div>
</template>
</el-table-column>
<el-table-column
label="优惠活动">
<template slot-scope="scope">
<div v-if="scope.row.invite_earnings === 0 && scope.row.invite_id !== 0" style="display: flex;">
<img :src="scope.row.invite_avatar" class="avatar"/>
类型:{{scope.row.invite_type}}
<br>
收益:{{scope.row.invite_earnings / 100}}
<br>
用户ID:{{scope.row.invite_id}}
<br>
昵称:{{scope.row.invite_nickname}}
<br>
手机:{{scope.row.invite_mobile}}
</div>
<div v-if="scope.row.invite_id === 0">
</div>
</template>
</el-table-column>
<el-table-column
label="优惠活动">
<template slot-scope="scope">
<span v-if="scope.row.order_coupon_id === 0">
</span>
<el-button type="text" v-if="scope.row.order_coupon_id !== 0" @click="showCoupon(scope.row)">
优惠券
</el-button>
</template>
</el-table-column>
<el-table-column
label="付款状态"
width="80">
<template slot-scope="scope">
<el-button type="text" v-if="scope.row.status === 5 || scope.row.status === 3" @click="showRef(scope.row)">{{scope.row.status|status}}</el-button>
<div v-if="scope.row.status !== 5 && scope.row.status !== 3">{{scope.row.status|status}}</div>
</template>
</el-table-column>
<el-table-column
label="实付金额"
width="80">
<template slot-scope="scope">
{{scope.row.money|moneytFilter}}
</template>
</el-table-column>
<el-table-column
label="收货地址">
<template slot-scope="scope">
<div v-if="scope.row.user_address_id && scope.row.address_info">
{{scope.row.address_info.receive_name}}<br>
{{scope.row.address_info.receive_mobile}}<br>
{{scope.row.address_info.province_name}}{{scope.row.address_info.city}}{{scope.row.address_info.area}}{{scope.row.address_info.address}}
</div>
</template>
</el-table-column>
<el-table-column
prop="pay_at"
label="购买时间">
</el-table-column>
<el-table-column
prop="created_at"
label="下单时间">
</el-table-column>
</el-table>
<page :total="total" :limit="limit" @pageChange="onPageChange" @sizeChange="onSizeChange"/>
<el-button type="text" v-if="scope.row.order_coupon_id !== 0" @click="showCoupon(scope.row)">
优惠券
</el-button>
</template>
</el-table-column>
<el-table-column
label="付款状态"
width="80">
<template slot-scope="scope">
<el-button type="text" v-if="scope.row.status === 5 || scope.row.status === 3" @click="showRef(scope.row)">{{scope.row.status|status}}</el-button>
<div v-if="scope.row.status !== 5 && scope.row.status !== 3">{{scope.row.status|status}}</div>
</template>
</el-table-column>
<el-table-column
label="实付金额"
width="80">
<template slot-scope="scope">
{{scope.row.money|moneytFilter}}
</template>
</el-table-column>
<el-table-column
label="收货地址">
<template slot-scope="scope">
<div v-if="scope.row.user_address_id && scope.row.address_info">
{{scope.row.address_info.receive_name}}<br>
{{scope.row.address_info.receive_mobile}}<br>
{{scope.row.address_info.province_name}}{{scope.row.address_info.city}}{{scope.row.address_info.area}}{{scope.row.address_info.address}}
</div>
</template>
</el-table-column>
<el-table-column
prop="pay_at"
label="购买时间">
</el-table-column>
<el-table-column
prop="created_at"
label="下单时间">
</el-table-column>
</el-table>
<page :total="total" :limit="limit" @pageChange="onPageChange" @sizeChange="onSizeChange"/>
</el-tab-pane>
</el-tabs>
<teacher-dialog :dialogObj="dialogObj" @reflash="getDetail"></teacher-dialog>
<user-list :userObj="userObj"/>
<source-dialog :dialogObj="sourceDialog"/>
<refund-detail :dialogObj="refundDetail"/>
<coupon-dialog :dialogObj="couponDetail"/>
<!-- 编辑 -->
<el-dialog :modal="false" :visible.sync="privilegeDialog.show" title="编辑权限">
<el-dialog :modal="false" :visible.sync="privilegeDialog.show" title="编辑权限">
<el-form label-width="120px">
<el-form-item label="是否添加老师">
<el-select v-model="privilegeDialog.is_add_teacher" placeholder="请选择">
......@@ -324,17 +321,17 @@
label="备注人">
</el-table-column>
<el-table-column
prop="created_at"
label="创建时间">
prop="created_at"
label="创建时间">
</el-table-column>
<el-table-column
prop="updated_at"
label="更新时间">
prop="updated_at"
label="更新时间">
</el-table-column>
</el-table>
<page :nowPage="descDialog.nowPage" :total="descDialog.total" :limit="descDialog.limit" @pageChange="onDescDialogPageChange" @sizeChange="onDescDialogSizeChange"/>
</el-dialog>
<!-- 看课情况 -->
<!-- 看课情况 -->
<el-dialog :modal="false" :visible.sync="lookDetail.show">
<el-table
v-loading="lookDetail.loading"
......@@ -451,14 +448,14 @@
show:false,
},
privilegeDialog: {
privilegeDialog: {
show: false,
isAllowView: false,
is_add_teacher: 0,
weight: 0,
id: ''
},
descDialog: {
descDialog: {
show: false,
descList: [],
nowPage: 1,
......@@ -466,7 +463,7 @@
total:0,
userInfo: null
},
lookDetail:{
lookDetail:{
show:false,
loading:false,
list:[],
......@@ -504,7 +501,7 @@
this.getUser()
},
methods:{
getUserLook(){
getUserLook(){
if(!this.lookDetail.data) return;
this.lookDetail.show = true;
this.lookDetail.loading = true;
......@@ -519,7 +516,7 @@
this.lookDetail.total = res.total;
})
},
onLookDetailPageChange(val){
onLookDetailPageChange(val){
this.lookDetail.nowPage = val
this.getUserLook();
},
......@@ -528,7 +525,7 @@
this.lookDetail.nowPage = 1;
this.getUserLook();
},
onDescDialogPageChange(val){
onDescDialogPageChange(val){
this.descDialog.nowPage = val
this.getUserDescList()
},
......@@ -550,7 +547,7 @@
this.sourceDialog.out_trade_no = data.out_trade_no;
},
changeRow(data,b){
this.list = [];
this.list = [];
if(b.indexOf(data)>-1){
getPeriodsStatisticsApi(data.periods_id).then(res=>{
data.arrive_course_rate = res.arrive_course_rate;
......@@ -576,10 +573,10 @@
},
getUser(){
let json = {
user_id: this.id,
limit: this.limit,
page: this.nowPage,
status: '1,4,5'
user_id: this.id,
limit: this.limit,
page: this.nowPage,
status: '1,4,5'
};
getOrderListApi(json).then(res=>{
res.list.forEach(i=>{
......@@ -618,7 +615,7 @@
}
},
//编辑备注 看课情况
editPrivilege(val){
editPrivilege(val){
this.privilegeDialog = {
id: val.id,
isAllowView: val.is_view_course === 1,
......@@ -627,7 +624,7 @@
show: true
}
},
onGetUserDescList(val){
onGetUserDescList(val){
this.descDialog.show = true;
this.descDialog.userInfo = {
user_id: val.user_id,
......@@ -637,7 +634,7 @@
this.descDialog.id = val.id;
this.getUserDescList();
},
getUserDescList(){
getUserDescList(){
let json = {
page: this.descDialog.nowPage,
limit: this.descDialog.limit
......@@ -647,7 +644,7 @@
this.descDialog.total = res.total;
})
},
userLook(data){
userLook(data){
this.lookDetail.show = true;
this.lookDetail.loading = true;
let json = {
......@@ -664,7 +661,7 @@
this.lookDetail.total = res.total;
})
},
editComment(id) {
editComment(id) {
this.$prompt('', '添加备注', {
confirmButtonText: '确定',
cancelButtonText: '取消',
......@@ -679,7 +676,7 @@
});
})
},
changePrivilegeSub(){
changePrivilegeSub(){
this.$confirm('此操作将修改用户权限?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
......@@ -730,6 +727,34 @@
<style scoped lang="less">
@import "../../util/public";
.user-card{
margin: 10px;width: 800px;
label{
color: #5982e6;
width: 100px;
display: inline-block;
text-align: right;
}
.el-col{
height: 30px;
line-height: 30px;
}
.title{
height: 50px;
line-height: 60px;
margin-bottom: 20px;
a{
position: absolute;
top: -10px;
left: 5px;
img{
width: 80px;
border-radius: 100px;
}
}
}
}
.avatar {
width: 50px;
height: 50px;
......@@ -763,19 +788,6 @@
margin-right: 10px;
}
}
.el-col{
/*height: 50px;*/
display: flex;
justify-content: flex-start;
align-items: center;
img{
width: 50px;
border-radius: 100px;
}
label{
color: #5982e6;
}
}
.b-title {
padding: 20px;
color: #666;
......
......@@ -156,8 +156,8 @@ export const ISLEADEROPTION = [
},
];
export const INTEGRALTYPE={
1:'添加积分',
0:'减少积分'
0:'减少积分',
1:'添加积分'
};
export const INTEGRALFUN={
0:'看课加积分',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment