Commit eb3a6dc4 authored by wangwei's avatar wangwei

后台修改

parent e8311a0f
<!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.e4420fe0e290fb7b98d3.js></script><script type=text/javascript src=/static/js/vendor.19b07206259747695190.js></script><script type=text/javascript src=/static/js/app.57cf0948f653546b774e.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.cc319bb4bfe6fe999afc.js></script><script type=text/javascript src=/static/js/vendor.19b07206259747695190.js></script><script type=text/javascript src=/static/js/app.57cf0948f653546b774e.js></script></body><script>let el = document.getElementsByTagName("script");
el.onerror = function(a,b,c){
console.log('error:',a,b,c);
};
......
webpackJsonp([16],{"69L+":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("kmJW"),s=a("NC6I"),o=a.n(s),i=a("zA5m"),n=a("G2rA"),l=a("CCn6"),c=a("+TkF"),m={name:"smsRecord",components:{page:r.a,refundDialog:i.a,refundDetail:n.a},data:function(){var e=this;return{today:{text:"今天",onClick:function(t){t.$emit("pick",[e.formatTime(new Date)+" 00:00:00",e.formatTime(new Date)+" 23:59:59"])}},yesterday:{text:"昨天",onClick:function(t){var a=e.formatTime(new Date((new Date).getTime()-864e5));t.$emit("pick",[a+" 00:00:00",a+" 23:59:59"])}},last30Day:{text:"过去30天",onClick:function(t){var a=e.formatTime(new Date((new Date).getTime()-2592e6));t.$emit("pick",[a+" 00:00:00",e.formatTime(new Date)+" 23:59:59"])}},last7Day:{text:"过去7天",onClick:function(t){var a=e.formatTime(new Date((new Date).getTime()-6048e5));t.$emit("pick",[a+" 00:00:00",e.formatTime(new Date)+" 23:59:59"])}},uploadHeader:{token:localStorage.getItem("cc_token")},param_token:o()(JSON.stringify({sing:"singsingenglish21000"})),nowPage:1,total:0,limit:10,useTypeList:[{user_buy:0,value:"未绑定"},{user_buy:1,value:"已绑定"}],searchFrom:{goods_id:"",mobile:"",invite_type:"",status:[1,4,5],createTime:[],course_type:"-1",pullTime:[],order_id:"",teacher_id:"",user_id:"",nickname:""},refundDialogObj:{show:!1,id:"",order_type:" other",money:0},orderStatusOption:c.q,list:[],teacherList:[],goodList:[],refundDetail:{show:!1,out_trade_no:""},classObj:{show:!1,title:"当前同步进度",order_id:0,teacher_id:0},classList:[],last_pull_time:"无"}},filters:{filterStatus:function(e){return 0===e?"未绑定":"已绑定"},status:function(e){return c.p[e]},filterGoods:function(e){return"["+c.g[e.goods_type]+"]["+e.current_price/100+"元]"+e.name}},mounted:function(){this.getList(),this.getGoodsOption(),this.getTeacherList()},methods:{onAfterRefund:function(){this.refundDialogObj.show=!1,this.getList()},showRef:function(e){this.refundDetail.show=!0,this.refundDetail.out_trade_no=e.order_id},changeShow:function(e){this.refundDialogObj.show=e},onRefund:function(e,t){this.refundDialogObj.id=e,this.refundDialogObj.money=t,this.refundDialogObj.show=!0},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},fileSuccess:function(){this.$message({message:"提交成功,请稍后刷新",type:"success"})},downLoad:function(){window.open("/static/外部订单模板.xlsx")},onPageChange:function(e){this.nowPage=e,this.getList()},getTeacherList:function(){var e=this;Object(l._69)({page:1,limit:200}).then(function(t){e.teacherList=t.list})},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.mobile&&(t.mobile=this.searchFrom.mobile),this.searchFrom.status&&(t.status=this.searchFrom.status.join(",")),"-1"!==this.searchFrom.course_type&&(t.course_type=this.searchFrom.course_type),this.searchFrom.nickname&&(t.nickname=this.searchFrom.nickname),this.searchFrom.user_id&&(t.user_id=this.searchFrom.user_id),this.searchFrom.teacher_id&&(t.teacher_id=this.searchFrom.teacher_id),this.searchFrom.goods_name&&(t.goods_name=this.searchFrom.goods_name),(this.searchFrom.user_buy||0===this.searchFrom.user_buy)&&(t.user_buy=this.searchFrom.user_buy),this.searchFrom.order_id&&(t.order_id=this.searchFrom.order_id),this.searchFrom.goods_id&&(t.goods_id=this.searchFrom.goods_id),this.searchFrom.invite_type&&(t.invite_type=this.searchFrom.invite_type),2===this.searchFrom.createTime.length&&(t.start_at=this.searchFrom.createTime[0],t.end_at=this.searchFrom.createTime[1]),2===this.searchFrom.pullTime.length&&(t.pay_start_at=this.searchFrom.pullTime[0],t.pay_end_at=this.searchFrom.pullTime[1]),Object(l._80)(t).then(function(t){e.total=t.total,e.list=t.list?t.list:[]})},getGoodsOption:function(){var e=this;Object(l._39)({page:1,limit:100}).then(function(t){e.goodList=t.list})},editNote:function(e,t){var a=this;this.$prompt("","编辑备注",{confirmButtonText:"确定",cancelButtonText:"取消",inputType:"textarea",inputValue:t||""}).then(function(t){var r=t.value;a.$confirm("确定保存?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(l._86)({desc:r},e).then(function(e){a.$message({type:"success",message:"编辑备注成功"}),a.getList()})})})},exportTable:function(e){if(e.length>0){var t={};this.searchFrom.order_id&&(t.order_id=this.searchFrom.order_id),(this.searchFrom.user_buy||0==this.searchFrom.user_buy)&&(t.user_buy=this.searchFrom.user_buy),this.searchFrom.mobile&&(t.mobile=this.searchFrom.mobile),this.searchFrom.nickname&&(t.nickname=this.searchFrom.nickname),this.searchFrom.user_id&&(t.user_id=this.searchFrom.user_id),this.searchFrom.goods_id&&(t.goods_id=this.searchFrom.goods_id),this.searchFrom.teacher_id&&(t.teacher_id=this.searchFrom.teacher_id),Object(l._13)("api/admin/yunji/order/export",t)}},classListOption:function(){var e=this;this.classObj.show=!0,Object(l._80)({page:1,limit:200}).then(function(t){e.classList=t.teacher,t.last_pull_time&&(e.last_pull_time=t.last_pull_time)})}}},u=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"sms"},[a("el-form",{ref:"searchFrom",attrs:{size:"small",inline:"",model:e.searchFrom,"label-width":"80px"}},[a("el-form-item",{attrs:{label:"用户ID"}},[a("el-input",{staticStyle:{width:"80px"},model:{value:e.searchFrom.user_id,callback:function(t){e.$set(e.searchFrom,"user_id",t)},expression:"searchFrom.user_id"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"用户昵称"}},[a("el-input",{staticStyle:{width:"110px"},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",{staticStyle:{width:"120px"},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-select",{staticStyle:{width:"150px"},attrs:{placeholder:"请选择",clearable:""},on:{change:e.getList},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 a("el-option",{key:r,attrs:{label:e._f("filterGoods")(t),value:t.id}})}))],1),e._v(" "),a("el-form-item",{staticClass:"test",attrs:{label:"来源"}},[a("el-input",{staticStyle:{width:"180px"},attrs:{placeholder:"来源CODE"},model:{value:e.searchFrom.invite_type,callback:function(t){e.$set(e.searchFrom,"invite_type",t)},expression:"searchFrom.invite_type\t"}},[a("template",{slot:"prepend"},[e._v("CC -")])],2)],1),e._v(" "),a("el-form-item",{attrs:{label:"订单状态"}},[a("el-select",{staticStyle:{width:"230px"},attrs:{multiple:"",placeholder:"请选择",clearable:""},on:{change:e.getList},model:{value:e.searchFrom.status,callback:function(t){e.$set(e.searchFrom,"status",t)},expression:"searchFrom.status"}},e._l(e.orderStatusOption,function(e){return a("el-option",{key:e.id,attrs:{label:e.value,value:e.id}})}))],1),e._v(" "),a("el-form-item",{attrs:{label:"绑定状态"}},[a("el-select",{staticStyle:{width:"100px"},attrs:{placeholder:"请选择",clearable:""},on:{change:e.getList},model:{value:e.searchFrom.user_buy,callback:function(t){e.$set(e.searchFrom,"user_buy",t)},expression:"searchFrom.user_buy"}},e._l(e.useTypeList,function(e){return a("el-option",{key:e.user_buy,attrs:{label:e.value,value:e.user_buy}})}))],1),e._v(" "),a("el-form-item",{attrs:{label:"老师"}},[a("el-select",{staticStyle:{width:"100px"},attrs:{placeholder:"请选择",clearable:"",filterable:""},on:{change:e.getList},model:{value:e.searchFrom.teacher_id,callback:function(t){e.$set(e.searchFrom,"teacher_id",t)},expression:"searchFrom.teacher_id"}},e._l(e.teacherList,function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})}))],1),e._v(" "),a("el-form-item",{attrs:{label:"订单号"}},[a("el-input",{model:{value:e.searchFrom.order_id,callback:function(t){e.$set(e.searchFrom,"order_id",t)},expression:"searchFrom.order_id"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"下单时间"}},[a("el-date-picker",{attrs:{type:"datetimerange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","value-format":"yyyy-MM-dd HH:mm:ss","picker-options":{shortcuts:[e.today,e.yesterday,e.last7Day,e.last30Day]},"default-time":["00:00:00","23:59:59"]},on:{change:e.getList},model:{value:e.searchFrom.createTime,callback:function(t){e.$set(e.searchFrom,"createTime",t)},expression:"searchFrom.createTime"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"付款时间"}},[a("el-date-picker",{attrs:{type:"datetimerange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","value-format":"yyyy-MM-dd HH:mm:ss","picker-options":{shortcuts:[e.today,e.yesterday,e.last7Day,e.last30Day]},"default-time":["00:00:00","23:59:59"]},on:{change:e.getList},model:{value:e.searchFrom.pullTime,callback:function(t){e.$set(e.searchFrom,"pullTime",t)},expression:"searchFrom.pullTime"}})],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:e.getList}},[e._v("搜索")]),e._v(" "),e.$store.state.export?a("el-button",{attrs:{type:"primary",plain:""},on:{click:function(t){e.exportTable(e.list)}}},[e._v("导出")]):e._e()],1),e._v(" "),a("el-form-item",[a("el-upload",{attrs:{"show-file-list":!1,onSuccess:e.fileSuccess,headers:e.uploadHeader,data:{param_token:e.param_token},action:"/api/admin/order/import"}},[a("el-button",{attrs:{type:"primary",plain:""}},[e._v("导入")])],1)],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary",plain:""},on:{click:function(t){e.downLoad()}}},[e._v("excel模板下载")])],1)],1),e._v(" "),a("el-tabs",{staticStyle:{background:"white","padding-top":"10px"},attrs:{type:"card"},on:{"tab-click":e.getList},model:{value:e.searchFrom.course_type,callback:function(t){e.$set(e.searchFrom,"course_type",t)},expression:"searchFrom.course_type"}},[a("el-tab-pane",{attrs:{label:"全部",name:"-1"}}),e._v(" "),a("el-tab-pane",{attrs:{label:"月课",name:"0"}}),e._v(" "),a("el-tab-pane",{attrs:{label:"日课",name:"1"}})],1),e._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.list,size:"mini"}},[a("el-table-column",{attrs:{prop:"order_id",label:"订单号"}}),e._v(" "),a("el-table-column",{attrs:{prop:"nickname",label:"购买人"},scopedSlots:e._u([{key:"default",fn:function(t){return[0!==t.row.user_id?a("div",{staticStyle:{display:"flex"}},[a("img",{staticClass:"avatar",attrs:{src:t.row.avatar}}),e._v(" "),a("div",[e._v(e._s(t.row.nickname)),a("br"),e._v("(ID:"+e._s(t.row.user_id)+")")])]):e._e(),e._v(" "),0===t.row.user_id?a("div",[e._v("\n 暂未绑定用户\n ")]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"periods_title",label:"期数"}}),e._v(" "),a("el-table-column",{attrs:{prop:"goods_name",label:"商品名称"}}),e._v(" "),a("el-table-column",{attrs:{prop:"invite_type",label:"来源"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.invite_type)+"("+e._s(t.row.invite_name)+")\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"teacher_name",label:"班级老师"}}),e._v(" "),a("el-table-column",{attrs:{label:"付款状态",width:"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[5===t.row.status||3===t.row.status?a("el-button",{attrs:{type:"text"},on:{click:function(a){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?a("div",[e._v(e._s(e._f("status")(t.row.status)))]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"money",label:"实付金额"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.money/100)+"元\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"收货地址",width:"150px"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n 姓名:"+e._s(t.row.receiver_name)+"\n "),a("br"),e._v("\n tel:"+e._s(t.row.receiver_phone)+"\n "),a("br"),e._v("\n "+e._s(t.row.receiver_province)+" "+e._s(t.row.receiver_city)+" "+e._s(t.row.receiver_area)+" "+e._s(t.row.receiver_address)+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"create_time",label:"下单时间",width:"140px",sortable:""}}),e._v(" "),a("el-table-column",{attrs:{prop:"pay_time",label:"付款时间",width:"140px",sortable:""}}),e._v(" "),a("el-table-column",{attrs:{prop:"desc",label:"备注"}}),e._v(" "),e.$store.state.readonly?e._e():a("el-table-column",{attrs:{label:"操作",fixed:"right",width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{size:"mini",plain:"",type:"primary"},on:{click:function(a){e.editNote(t.row.id,t.row.desc)}}},[e._v("编辑备注")]),e._v(" "),1!==t.row.status&&4!==t.row.status&&5!==t.row.status||!e.$store.state.orderRefund?e._e():a("el-button",{attrs:{type:"warning",plain:"",size:"mini"},on:{click:function(a){e.onRefund(t.row.id,t.row.money)}}},[e._v("\n 退款\n ")])]}}])})],1),e._v(" "),a("page",{attrs:{nowPage:e.nowPage,total:e.total},on:{pageChange:e.onPageChange,sizeChange:e.onSizeChange}}),e._v(" "),a("refund-dialog",{attrs:{dialogObj:e.refundDialogObj},on:{reflash:e.onAfterRefund,changeShow:e.changeShow}}),e._v(" "),a("refund-detail",{attrs:{dialogObj:e.refundDetail}}),e._v(" "),a("el-dialog",{attrs:{title:e.classObj.title,visible:e.classObj.show,center:"",width:"800px"},on:{"update:visible":function(t){e.$set(e.classObj,"show",t)}}},[a("div",{staticStyle:{margin:"10px",color:"#888888"}},[e._v("\n 最新同步时间:"+e._s(e.last_pull_time)+"\n ")]),e._v(" "),a("el-table",{attrs:{data:e.classList}},[a("el-table-column",{attrs:{prop:"teacher_name",label:"班级老师"}}),e._v(" "),a("el-table-column",{attrs:{prop:"num",label:"预计入班人数"}})],1),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"})],1)],1)};u._withStripped=!0;var d={render:u,staticRenderFns:[]},h=d;var p=!1;var f=a("VU/8")(m,h,!1,function(e){p||(a("feiJ"),a("SwjR"))},"data-v-1ae2f8f2",null);f.options.__file="src\\components\\yunji\\index.vue";t.default=f.exports},"F+JO":function(e,t,a){(e.exports=a("FZ+f")(!0)).push([e.i,"","",{version:3,sources:[],names:[],mappings:"",file:"refundDialog.vue",sourceRoot:""}])},O6CK:function(e,t,a){(e.exports=a("FZ+f")(!0)).push([e.i,"\n.userInfo > div {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: horizontal;\n -webkit-box-direction: normal;\n -ms-flex-flow: row nowrap;\n flex-flow: row nowrap;\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/yunji/index.vue"],names:[],mappings:";AACA;EACE,qBAAqB;EACrB,qBAAqB;EACrB,cAAc;EACd,+BAA+B;EAC/B,8BAA8B;MAC1B,0BAA0B;UACtB,sBAAsB;EAC9B,wBAAwB;MACpB,qBAAqB;UACjB,4BAA4B;EACpC,0BAA0B;MACtB,uBAAuB;UACnB,oBAAoB;CAC7B",file:"index.vue",sourcesContent:["\n.userInfo > div {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: horizontal;\n -webkit-box-direction: normal;\n -ms-flex-flow: row nowrap;\n flex-flow: row nowrap;\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:""}])},SwjR:function(e,t,a){var r=a("O6CK");"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);a("rjj0")("0c14fd13",r,!1,{})},caQm:function(e,t,a){(e.exports=a("FZ+f")(!0)).push([e.i,"\n.sms[data-v-1ae2f8f2] {\n padding: 20px 0;\n}\n.avatar[data-v-1ae2f8f2] {\n width: 50px;\n min-width: 50px;\n margin-right: 10px;\n height: 50px;\n\n border-radius: 50%;\n}\n","",{version:3,sources:["D:/myproject/changchang-admin-new/src/components/yunji/index.vue"],names:[],mappings:";AACA;EACE,gBAAgB;CACjB;AACD;EACE,YAAY;EACZ,gBAAgB;EAChB,mBAAmB;EACnB,aAAa;;EAEb,mBAAmB;CACpB",file:"index.vue",sourcesContent:["\n.sms[data-v-1ae2f8f2] {\n padding: 20px 0;\n}\n.avatar[data-v-1ae2f8f2] {\n width: 50px;\n min-width: 50px;\n margin-right: 10px;\n height: 50px;\n\n border-radius: 50%;\n}\n"],sourceRoot:""}])},feiJ:function(e,t,a){var r=a("caQm");"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);a("rjj0")("6345fe06",r,!1,{})},jKuw:function(e,t,a){var r=a("F+JO");"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);a("rjj0")("679c3646",r,!1,{})},zA5m:function(e,t,a){"use strict";var r=a("CCn6"),s={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 a={refund_money:100*parseFloat(e.form.money),desc:e.form.desc,refund_type:e.form.refund_type};e.dialogObj.order_type&&(a.order_type=e.dialogObj.order_type),Object(r._89)(e.dialogObj.id,a).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)}}},o=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:"退款",center:"","append-to-body":"",visible:e.show,width:"800px"},on:{"update:visible":function(t){e.show=t}}},[a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[a("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules}},[a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:4}},[a("label",[e._v("退款金额")])]),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{prop:"key"}},[a("el-input",{model:{value:e.form.money,callback:function(t){e.$set(e.form,"money",t)},expression:"form.money"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-button",{attrs:{type:"success",round:"",size:"small"},on:{click:function(t){e.form.money=100}}},[e._v("¥100")]),e._v(" "),a("el-button",{attrs:{type:"success",round:"",size:"mini"},on:{click:function(t){e.form.money=150}}},[e._v("¥150")])],1)],1),e._v(" "),a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:4}},[a("label",[e._v("退课")])]),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",[a("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(" "),a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:4}},[a("label",[e._v("退款原因")])]),e._v(" "),a("el-col",{attrs:{span:12}},[a("el-form-item",[a("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(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.show=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.save}},[e._v("确 定")])],1)])};o._withStripped=!0;var i={render:o,staticRenderFns:[]},n=i;var l=!1;var c=a("VU/8")(s,n,!1,function(e){l||a("jKuw")},"data-v-7cbba59e",null);c.options.__file="src\\components\\order\\refundDialog.vue";t.a=c.exports}});
\ No newline at end of file
webpackJsonp([21],{"+IG6":function(n,e,t){var o=t("No7R");"string"==typeof o&&(o=[[n.i,o,""]]),o.locals&&(n.exports=o.locals);t("rjj0")("5f19e884",o,!1,{})},DZd7:function(n,e,t){var o=t("eVNj");"string"==typeof o&&(o=[[n.i,o,""]]),o.locals&&(n.exports=o.locals);t("rjj0")("1bd46fb3",o,!1,{})},No7R: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","",{version:3,sources:[],names:[],mappings:"",file:"dialog.vue",sourceRoot:""}])},ayGs:function(n,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=t("CCn6"),a=t("+TkF"),r=t("kmJW"),i={props:["dialogObj"],data:function(){return{nowPage:1,total:0,goodList:[],currentRow:null}},components:{page:r.a},filters:{isOrNot:function(n){return a.n[n]},goodsType:function(n){return a.g[n]},lessonType:function(n){return a.o[n]},goodsStatus:function(n){return a.f[n]}},methods:{initPage:function(){var n=this;Object(o._39)().then(function(e){n.goodList=e.list,n.total=e.total})},handleCurrentChange:function(n){this.currentRow=n},onConfirm:function(){this.$emit("reflash",this.currentRow)}},mounted:function(){this.initPage()}},s=function(){var n=this,e=n.$createElement,t=n._self._c||e;return t("div",[t("el-dialog",{attrs:{title:n.dialogObj.title,visible:n.dialogObj.show},on:{"update:visible":function(e){n.$set(n.dialogObj,"show",e)}}},[t("el-table",{staticStyle:{width:"100%"},attrs:{data:n.goodList,"row-key":"id","highlight-current-row":""},on:{"current-change":n.handleCurrentChange}},[t("el-table-column",{attrs:{prop:"id",label:"商品ID"}}),n._v(" "),t("el-table-column",{attrs:{prop:"name",label:"名称"}}),n._v(" "),t("el-table-column",{attrs:{label:"商品类型"},scopedSlots:n._u([{key:"default",fn:function(e){return[n._v("\n "+n._s(n._f("goodsType")(e.row.goods_type))+"\n ")]}}])}),n._v(" "),t("el-table-column",{attrs:{label:"现价"},scopedSlots:n._u([{key:"default",fn:function(e){return[n._v("\n "+n._s(e.row.current_price/100)+"元\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("lessonType")(e.row.course_type))+"\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("isOrNot")(e.row.is_real))+"\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("goodsStatus")(e.row.status))+"\n ")]}}])})],1),n._v(" "),t("page",{attrs:{nowPage:n.nowPage,total:n.total}}),n._v(" "),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{on:{click:function(e){n.dialogObj.show=!1}}},[n._v("取 消")]),n._v(" "),t("el-button",{attrs:{type:"primary"},on:{click:n.onConfirm}},[n._v("确 定")])],1)],1)],1)};s._withStripped=!0;var l={render:s,staticRenderFns:[]},c=l;var d=!1;var u=t("VU/8")(i,c,!1,function(n){d||t("+IG6")},"data-v-221aa882",null);u.options.__file="src\\components\\periods\\dialog.vue";var _=u.exports,f={props:["dialogObj"],data:function(){return{loading:!1,form:{is_add_teacher_to_class:!1,teacherList:[],viewTeacher:"",rest_week_day:[],title:"",goods_id:""},show:!1,viewTeacher:"",pickerOptions1:{disabledDate:function(n){return!(n.getTime()>Date.now())}},options:[{value:0,label:"周日"},{value:1,label:"周一"},{value:2,label:"周二"},{value:3,label:"周三"},{value:4,label:"周四"},{value:5,label:"周五"},{value:6,label:"周六"}],teacherOptions:[],teacher1Options:[],teacher2Options:[],goodList:[],itemOptions:[],rules:{title:[{required:!0,message:"请输入名称",trigger:"change"}],startNum:[{required:!0,message:"请输入开始主题",trigger:"change"}],start_at:[{required:!0,message:"请选择开始上课时间",trigger:"change"}],rest_week_day:[{required:!0,message:"请选择周几不上课",trigger:"change"}],teacher_ids:[{required:!0,message:"请选择老师ID",trigger:"change"}],goods_id:[{required:!0,message:"商品ID不能为空",trigger:"change"}],teacherList:[{required:!0,message:"带班老师不能为空",trigger:"change"}],viewTeacher:[{required:!0,message:"观摩老师不能为空",trigger:"change"}]},periodsList:[],selectedGoods:[]}},components:{goodDialog:_},watch:{"dialogObj.show":function(n){n&&(this.getTeachers(),this.getGoodsOption())},show:function(n){this.$emit("changeShow",n)}},filters:{isOrNot:function(n){return a.n[n]},goodsType:function(n){return a.g[n]},lessonType:function(n){return a.o[n]},goodsStatus:function(n){return a.f[n]},filterGoods:function(n){return"["+a.g[n.goods_type]+"]["+n.current_price/100+"元]"+n.name}},methods:{sub:function(){var n=this;this.$refs.form.validate(function(e){if(e){var t=n.form.goods_id,a={title:n.form.title,start_num:n.form.startNum,start_at:n.form.start_at,rest_week_day:n.form.rest_week_day?n.form.rest_week_day.join(","):""};a.is_add_teacher_to_class=n.form.is_add_teacher_to_class?1:0,n.form.id?Object(o._35)(n.form.id,a).then(function(e){n.$message({type:"success",message:"编辑成功!"}),n.$emit("reflash")}):(a.teacher_ids=n.form.teacherList.join(","),a.view_teacher_id=parseInt(n.form.viewTeacher),Object(o._14)(t,a).then(function(e){n.$message({type:"success",message:"添加成功!"}),n.$emit("reflash")})),n.show=!1}})},getTeachers:function(){var n=this;Object(o._69)({page:1,limit:100,status:0}).then(function(e){n.teacherOptions=e.list,n.teacher1Options=e.list,n.teacher2Options=e.list})},findDifferentArray:function(n,e){var t=[];return n.forEach(function(e){-1===n.findIndex(function(n){return e.id==n})&&t.push(e)}),t},onTeacher1Change:function(n){this.teacher2Options=n?this.findDifferentArray(this.teacherOptions,n):this.teacherOptions},onTeacher2Change:function(n){this.teacher1Options=n?this.findDifferentArray(this.teacherOptions,[n]):this.teacherOptions},onOptionChange:function(n){var e=this.goodList.findIndex(function(e){return e.id===n});e>-1&&this.getLessonDetail(this.goodList[e].course_id),delete this.form.startNum},getLessonDetail:function(n){var e=this;Object(o._43)(n,{}).then(function(n){e.itemOptions=n.detail[n.type]})},getGoodsOption:function(){var n=this;Object(o._39)({page:1,limit:100}).then(function(e){n.goodList=e.list,n.dialogObj.form.id?n.form=n.dialogObj.form:n.form={rest_week_day:[],is_add_teacher_to_class:!1,teacherList:[],viewTeacher:"",title:"",goods_id:""},n.dialogObj.form.course_id&&n.getLessonDetail(n.dialogObj.form.course_id),n.show=n.dialogObj.show})},changePeriods:function(n){n.length>1&&(this.form.title=String(n[1]))},handleItemChange:function(n){var e=this;Object(o._51)({goods_id:n[0]}).then(function(t){t.list.forEach(function(n){n.name=n.title}),e.periodsList.find(function(e){return e.id===n[0]}).children=t.list})}}},h=function(){var n=this,e=n.$createElement,t=n._self._c||e;return t("div",[t("el-dialog",{attrs:{title:n.dialogObj.title,center:"","append-to-body":"",visible:n.show,width:"800px"},on:{"update:visible":function(e){n.show=e}}},[t("div",{directives:[{name:"loading",rawName:"v-loading",value:n.loading,expression:"loading"}]},[t("el-form",{ref:"form",attrs:{model:n.form,"label-width":"120px",rules:n.rules}},[t("el-row",[t("el-col",{attrs:{span:10}},[t("el-form-item",{attrs:{label:"商品名称",prop:"goods_id"}},[t("el-select",{attrs:{placeholder:"请选择",disabled:!!n.form.id},on:{change:n.onOptionChange},model:{value:n.form.goods_id,callback:function(e){n.$set(n.form,"goods_id",e)},expression:"form.goods_id"}},n._l(n.goodList,function(e,o){return t("el-option",{key:o,attrs:{label:n._f("filterGoods")(e),value:e.id}})}))],1)],1)],1),n._v(" "),t("el-form-item",{attrs:{label:"期数名称",prop:"title"}},[t("el-input",{model:{value:n.form.title,callback:function(e){n.$set(n.form,"title",e)},expression:"form.title"}})],1),n._v(" "),t("el-form-item",{attrs:{label:"开始主题",prop:"startNum"}},[t("el-select",{attrs:{clearable:"",placeholder:"请选择"},model:{value:n.form.startNum,callback:function(e){n.$set(n.form,"startNum",e)},expression:"form.startNum"}},n._l(n.itemOptions,function(n){return t("el-option",{key:n.id,attrs:{label:n.name,value:n.id}})}))],1),n._v(" "),t("el-form-item",{attrs:{label:"开始上课时间",prop:"start_at"}},[t("el-date-picker",{attrs:{format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",type:"date","picker-options":n.pickerOptions1,placeholder:"选择日期"},model:{value:n.form.start_at,callback:function(e){n.$set(n.form,"start_at",e)},expression:"form.start_at"}})],1),n._v(" "),n.form.id?n._e():t("el-form-item",{attrs:{label:"带班老师",prop:"teacherList"}},[t("el-select",{attrs:{placeholder:"请选择",filterable:"",multiple:""},on:{change:n.onTeacher1Change},model:{value:n.form.teacherList,callback:function(e){n.$set(n.form,"teacherList",e)},expression:"form.teacherList"}},n._l(n.teacher1Options,function(n){return t("el-option",{key:n.id,attrs:{label:n.name,value:n.id}})}))],1),n._v(" "),n.form.id?n._e():t("el-form-item",{attrs:{label:"观摩老师",prop:"viewTeacher"}},[t("el-select",{attrs:{placeholder:"请选择",filterable:""},on:{change:n.onTeacher2Change},model:{value:n.form.viewTeacher,callback:function(e){n.$set(n.form,"viewTeacher",e)},expression:"form.viewTeacher"}},n._l(n.teacher2Options,function(n){return t("el-option",{key:n.id,attrs:{label:n.name,value:n.id}})}))],1),n._v(" "),n.form.id?n._e():t("el-form-item",{attrs:{label:"将带班老师加入观摩班","label-width":"200"}},[t("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#eee"},model:{value:n.form.is_add_teacher_to_class,callback:function(e){n.$set(n.form,"is_add_teacher_to_class",e)},expression:"form.is_add_teacher_to_class"}})],1),n._v(" "),t("el-form-item",{attrs:{label:"不上课日期"}},[t("el-select",{attrs:{multiple:"",placeholder:"请选择"},model:{value:n.form.rest_week_day,callback:function(e){n.$set(n.form,"rest_week_day",e)},expression:"form.rest_week_day"}},n._l(n.options,function(n){return t("el-option",{key:n.value,attrs:{label:n.label,value:n.value}})}))],1)],1),n._v(" "),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{on:{click:function(e){n.show=!1}}},[n._v("取 消")]),n._v(" "),t("el-button",{attrs:{type:"primary"},on:{click:n.sub}},[n._v("确 定")])],1)],1)])],1)};h._withStripped=!0;var p={render:h,staticRenderFns:[]},m=p;var g=!1;var b=t("VU/8")(f,m,!1,function(n){g||t("iYnt")},"data-v-68d711be",null);b.options.__file="src\\components\\periods\\newDialog.vue";var v=b.exports,w=t("sf/l"),A={name:"index",data:function(){return{nowPage:1,total:0,limit:10,course_type:"1",title:"",goodsId:null,lessonId:null,startAt:"",periodList:[],startTime:[],newDialog:{form:{},show:!1,title:""},goodList:[],lessonList:[]}},filters:{dayFilter:function(n){var e=n?n.split(","):[];return(e=e.map(function(n){return a.v[n]})).join(",")},filterGoods:function(n){return"["+a.g[n.goods_type]+"]["+n.current_price/100+"元]"+n.name},percent:function(n){return(100*n).toFixed(2)+"%"}},components:{goodDialog:_,newDialog:v,page:r.a},methods:{changeRow:function(n,e){e.indexOf(n)>-1&&Object(o._52)(n.id).then(function(e){n.arrive_course_rate=e.arrive_course_rate,n.watch_course_rate=e.watch_course_rate,n.over_course_rate=e.over_course_rate,n.work_rate=e.work_rate,n.over_work_rate=e.over_work_rate,n.clock_rate=e.clock_rate,n.over_clock_rate=e.over_clock_rate,n.transform_rate=e.transform_rate})},dateCompare:function(n){var e=w.a.dateFmt(new Date,"yyyy-MM-dd");return new Date(e.replace(/-/g,"/"))>new Date(n.replace(/-/g,"/"))},onPageChange:function(n){this.nowPage=n,this.onSearch()},onSizeChange:function(n){this.limit=n,this.nowPage=1,this.onSearch()},onSearch:function(){var n=this,e={limit:this.limit,page:this.nowPage};"-1"!==this.course_type&&(e.course_type=this.course_type),this.title&&(e.title=this.title),this.goodsId&&(e.goods_id=this.goodsId),this.lessonId&&(e.course_id=this.lessonId),this.startTime&&this.startTime.length>0&&(e.start_start_at=w.a.dateFmt(this.startTime[0],"yyyy-MM-dd"),e.start_end_at=w.a.dateFmt(this.startTime[1],"yyyy-MM-dd")),this.startAt&&(e.start_at=this.startAt),Object(o._51)(e).then(function(e){e.list.forEach(function(n){n.arrive_course_rate=0,n.watch_course_rate=0,n.over_course_rate=0,n.work_rate=0,n.over_work_rate=0,n.clock_rate=0,n.over_clock_rate=0,n.transform_rate=0}),n.periodList=e.list,n.total=e.total})},changeShow:function(n){this.newDialog.show=n},onAdd:function(){this.newDialog.form.id="",this.newDialog.form.startNum="",this.newDialog.form.goods_id="",this.newDialog.form.title="",this.newDialog.form.start_at="",this.newDialog.form.rest_week_day=[],this.newDialog.form.teacher_ids=[],this.newDialog.form.teacherList=[],this.newDialog.form.viewTeacher="",this.newDialog.title="添加期数",this.newDialog.show=!0},onEdit:function(n){if(this.dateCompare(n.start_at))this.$message({type:"error",message:"期数已开始,不能编辑!"});else{var e=[];n.rest_week_day&&n.rest_week_day.split(",").forEach(function(n){e.push(parseInt(n))});var t=[];n.teacher_ids&&n.teacher_ids.split(",").forEach(function(n){t.push(parseInt(n))}),this.newDialog.form={id:n.id,startNum:n.start_num,start_at:n.start_at,title:n.title,goods_id:n.goods_id,rest_week_day:e,teacher_ids:t,course_id:n.course_id},this.newDialog.title="编辑期数",this.newDialog.show=!0}},onSave:function(n){this.newDialog.show=!1,this.onSearch()},del:function(n){var e=this;this.$confirm("此操作将删除该期数?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(o.L)(n.id).then(function(n){e.$message({type:"success",message:"删除成功!"}),e.onSearch()})})},getGoodsOption:function(){var n=this;Object(o._39)({page:1,limit:100,goods_type:"1,2"}).then(function(e){n.goodList=e.list})},getLessonOption:function(){var n=this;Object(o._42)({page:1,limit:100}).then(function(e){n.lessonList=e.list})}},mounted:function(){var n=this.$route.query;n&&n.goods_id?this.goodsId=parseInt(n.goods_id):n&&n.id&&(this.lessonId=parseInt(n.id)),this.onSearch(),this.getGoodsOption(),this.getLessonOption()}},y=function(){var n=this,e=n.$createElement,t=n._self._c||e;return t("div",{staticClass:"periods"},[t("div",{staticClass:"form-block"},[t("el-form",{attrs:{"label-width":"85px",inline:"",size:"small"}},[t("el-form-item",{attrs:{label:"期数标题"}},[t("el-input",{staticStyle:{width:"150px"},attrs:{placeholder:"请输入内容",clearable:""},model:{value:n.title,callback:function(e){n.title=e},expression:"title"}})],1),n._v(" "),t("el-form-item",{attrs:{label:"商品名称"}},[t("el-select",{staticStyle:{width:"150px"},attrs:{placeholder:"请选择",clearable:""},on:{change:n.onSearch},model:{value:n.goodsId,callback:function(e){n.goodsId=e},expression:"goodsId"}},n._l(n.goodList,function(e,o){return t("el-option",{key:o,attrs:{label:n._f("filterGoods")(e),value:e.id}})}))],1),n._v(" "),t("el-form-item",{attrs:{label:"课程名称"}},[t("el-select",{staticStyle:{width:"150px"},attrs:{placeholder:"请选择",clearable:""},on:{change:n.onSearch},model:{value:n.lessonId,callback:function(e){n.lessonId=e},expression:"lessonId"}},n._l(n.lessonList,function(n,e){return t("el-option",{key:e,attrs:{label:n.title,value:n.id}})}))],1),n._v(" "),t("el-form-item",{attrs:{label:"开始时间"}},[t("el-date-picker",{attrs:{type:"datetimerange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","default-time":["00:00:00","23:59:59"]},on:{change:n.onSearch},model:{value:n.startTime,callback:function(e){n.startTime=e},expression:"startTime"}})],1),n._v(" "),t("el-form-item",[t("el-button",{attrs:{type:"primary"},on:{click:n.onSearch}},[n._v("查询")]),n._v(" "),n.$store.state.readonly?n._e():t("el-button",{attrs:{type:"success",size:"small"},on:{click:n.onAdd}},[n._v("添加期数")])],1)],1)],1),n._v(" "),t("el-tabs",{staticStyle:{background:"white","padding-top":"10px"},attrs:{type:"card"},on:{"tab-click":n.onSearch},model:{value:n.course_type,callback:function(e){n.course_type=e},expression:"course_type"}},[t("el-tab-pane",{attrs:{label:"日课",name:"1"}}),n._v(" "),t("el-tab-pane",{attrs:{label:"月课",name:"0"}}),n._v(" "),t("el-tab-pane",{attrs:{label:"全部",name:"-1"}})],1),n._v(" "),t("el-table",{staticStyle:{width:"100%"},attrs:{size:"mini",data:n.periodList,fixed:""},on:{"expand-change":n.changeRow}},[t("el-table-column",{attrs:{type:"expand"},scopedSlots:n._u([{key:"default",fn:function(e){return[t("el-table",{staticStyle:{width:"100%"},attrs:{data:[e.row]}},[t("el-table-column",{attrs:{label:"到课率"},scopedSlots:n._u([{key:"default",fn:function(e){return[t("span",[n._v(n._s(n._f("percent")(e.row.arrive_course_rate)))])]}}])}),n._v(" "),t("el-table-column",{attrs:{label:"看课率"},scopedSlots:n._u([{key:"default",fn:function(e){return[t("span",[n._v(n._s(n._f("percent")(e.row.watch_course_rate)))])]}}])}),n._v(" "),t("el-table-column",{attrs:{label:"完课率"},scopedSlots:n._u([{key:"default",fn:function(e){return[t("span",[n._v(n._s(n._f("percent")(e.row.over_course_rate)))])]}}])}),n._v(" "),t("el-table-column",{attrs:{label:"打卡率"},scopedSlots:n._u([{key:"default",fn:function(e){return[t("span",[n._v(n._s(n._f("percent")(e.row.clock_rate)))])]}}])}),n._v(" "),t("el-table-column",{attrs:{label:"全勤打卡率"},scopedSlots:n._u([{key:"default",fn:function(e){return[t("span",[n._v(n._s(n._f("percent")(e.row.over_clock_rate)))])]}}])}),n._v(" "),t("el-table-column",{attrs:{label:"转化率"},scopedSlots:n._u([{key:"default",fn:function(e){return[t("span",[n._v(n._s(n._f("percent")(e.row.transform_rate)))])]}}])})],1)]}}])}),n._v(" "),t("el-table-column",{attrs:{label:"期数标题"},scopedSlots:n._u([{key:"default",fn:function(e){return[t("router-link",{attrs:{to:{name:"class",query:{goods_id:e.row.goods_id,periods_id:e.row.id}}}},[n._v("\n "+n._s(e.row.title)+"\n ")])]}}])}),n._v(" "),t("el-table-column",{attrs:{prop:"goods_name",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_price/100)+"元\n ")]}}])}),n._v(" "),t("el-table-column",{attrs:{prop:"course_title",label:"课程名称"}}),n._v(" "),t("el-table-column",{attrs:{prop:"start_name",label:"开始主题/歌"}}),n._v(" "),t("el-table-column",{attrs:{prop:"current_category_name",label:"当前歌曲"}}),n._v(" "),t("el-table-column",{attrs:{label:"看课情况","min-width":"150"},scopedSlots:n._u([{key:"default",fn:function(e){return[n._v("\n 可看课包数: "+n._s(e.row.watch_num)),t("br"),n._v(" 已看课包数:"+n._s(e.row.has_watch_num)+" "),t("br"),n._v(" "),9999!==e.row.duration_num?t("span",[n._v("续看课包数: "+n._s(e.row.duration_num)),t("br"),n._v(" 已续看课包数:"+n._s(e.row.has_duration_num))]):n._e(),n._v(" "),9999===e.row.duration_num?t("span",{staticStyle:{color:"#00af00"}},[n._v("永久观看")]):n._e()]}}])}),n._v(" "),t("el-table-column",{attrs:{label:"不上课日期","min-width":"120"},scopedSlots:n._u([{key:"default",fn:function(e){return[n._v("\n "+n._s(n._f("dayFilter")(e.row.rest_week_day))+"\n ")]}}])}),n._v(" "),t("el-table-column",{attrs:{label:"总学员数"},scopedSlots:n._u([{key:"default",fn:function(e){return[n._v("\n "+n._s(e.row.total_user_num?e.row.total_user_num:"")+"\n ")]}}])}),n._v(" "),t("el-table-column",{attrs:{prop:"watch_total_user_num",label:"可看课学员数"}}),n._v(" "),t("el-table-column",{attrs:{prop:"start_at",label:"起止时间",sortable:""},scopedSlots:n._u([{key:"default",fn:function(e){return[n._v("\n "+n._s(e.row.start_at)+"\n "),t("br"),n._v("\n "+n._s(e.row.over_at?e.row.over_at:"")+"\n ")]}}])}),n._v(" "),t("el-table-column",{attrs:{prop:"created_at",label:"创建时间",sortable:""}}),n._v(" "),n.$store.state.readonly?n._e():t("el-table-column",{attrs:{label:"操作",width:"148",fixed:"right"},scopedSlots:n._u([{key:"default",fn:function(e){return[t("el-button",{attrs:{size:"mini",plain:"",type:"primary"},on:{click:function(t){n.onEdit(e.row)}}},[n._v("\n 编辑\n ")]),n._v(" "),n.$store.state.deletePermission?t("el-button",{attrs:{size:"mini",type:"danger",plain:""},on:{click:function(t){n.del(e.row)}}},[n._v("\n 删除\n ")]):n._e()]}}])})],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-dialog",{attrs:{dialogObj:n.newDialog},on:{reflash:n.onSave,changeShow:n.changeShow}})],1)};y._withStripped=!0;var k={render:y,staticRenderFns:[]},C=k;var x=!1;var E=t("VU/8")(A,C,!1,function(n){x||t("DZd7")},null,null);E.options.__file="src\\components\\periods\\index.vue";e.default=E.exports},eVNj:function(n,e,t){(n.exports=t("FZ+f")(!0)).push([n.i,'\n.search-btn-block {\n margin-left: 20px;\n}\n.search-form {\n background: white;\n padding: 10px;\n margin: 10px 0;\n}\n.new-block {\n margin: 10px;\n text-align: right;\n}\n.fl-r {\n float: right;\n}\n.text-c {\n text-align: center;\n}\n.text-b {\n font-weight: bold;\n}\n.color-b {\n color: #6ba8e6;\n}\n.text-r {\n text-align: right;\n}\n.main-block {\n margin: 5px;\n background: white;\n padding: 5px;\n}\nhtml {\n font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "\\5FAE\\8F6F\\96C5\\9ED1", Arial, sans-serif;\n}\n.clear-both:after {\n content: \'\';\n display: block;\n clear: both;\n}\n::-webkit-scrollbar-track-piece {\n border-radius: 10px;\n}\n::-webkit-scrollbar {\n width: 5px;\n height: 5px;\n}\n::-webkit-scrollbar-thumb {\n background-color: #999;\n border-radius: 10px;\n height: 10px;\n min-height: 10px;\n}\n.demo-table-expand {\n font-size: 0;\n}\n.demo-table-expand label {\n width: 90px;\n color: #99a9bf;\n}\n.demo-table-expand .el-form-item {\n margin-right: 0;\n margin-bottom: 0;\n width: 50%;\n}\n.periods {\n padding: 20px 0;\n}\n',"",{version:3,sources:["D:/myproject/changchang-admin-new/src/components/periods/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;CACd;AACD;EACE,YAAY;EACZ,eAAe;CAChB;AACD;EACE,gBAAgB;EAChB,iBAAiB;EACjB,WAAW;CACZ;AACD;EACE,gBAAgB;CACjB",file:"index.vue",sourcesContent:['\n.search-btn-block {\n margin-left: 20px;\n}\n.search-form {\n background: white;\n padding: 10px;\n margin: 10px 0;\n}\n.new-block {\n margin: 10px;\n text-align: right;\n}\n.fl-r {\n float: right;\n}\n.text-c {\n text-align: center;\n}\n.text-b {\n font-weight: bold;\n}\n.color-b {\n color: #6ba8e6;\n}\n.text-r {\n text-align: right;\n}\n.main-block {\n margin: 5px;\n background: white;\n padding: 5px;\n}\nhtml {\n font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;\n}\n.clear-both:after {\n content: \'\';\n display: block;\n clear: both;\n}\n::-webkit-scrollbar-track-piece {\n border-radius: 10px;\n}\n::-webkit-scrollbar {\n width: 5px;\n height: 5px;\n}\n::-webkit-scrollbar-thumb {\n background-color: #999;\n border-radius: 10px;\n height: 10px;\n min-height: 10px;\n}\n.demo-table-expand {\n font-size: 0;\n}\n.demo-table-expand label {\n width: 90px;\n color: #99a9bf;\n}\n.demo-table-expand .el-form-item {\n margin-right: 0;\n margin-bottom: 0;\n width: 50%;\n}\n.periods {\n padding: 20px 0;\n}\n'],sourceRoot:""}])},iYnt:function(n,e,t){var o=t("l9ol");"string"==typeof o&&(o=[[n.i,o,""]]),o.locals&&(n.exports=o.locals);t("rjj0")("5ccef541",o,!1,{})},l9ol: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\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\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:"newDialog.vue",sourceRoot:""}])}});
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
!function(e){var f=window.webpackJsonp;window.webpackJsonp=function(c,n,r){for(var t,d,o,i=0,u=[];i<c.length;i++)d=c[i],a[d]&&u.push(a[d][0]),a[d]=0;for(t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t]);for(f&&f(c,n,r);u.length;)u.shift()();if(r)for(i=0;i<r.length;i++)o=b(b.s=r[i]);return o};var c={},a={54:0};function b(f){if(c[f])return c[f].exports;var a=c[f]={i:f,l:!1,exports:{}};return e[f].call(a.exports,a,a.exports,b),a.l=!0,a.exports}b.e=function(e){var f=a[e];if(0===f)return new Promise(function(e){e()});if(f)return f[2];var c=new Promise(function(c,b){f=a[e]=[c,b]});f[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,b.nc&&r.setAttribute("nonce",b.nc),r.src=b.p+"static/js/"+e+"."+{0:"04bf919ed842b80d7220",1:"2986755771d6f9468ac4",2:"8066380c636c5a4d54c1",3:"c95bd5b9c0b1bf2459f2",4:"f910cb8f1ba50201fd75",5:"f218afafb2e40e96d640",6:"a841f01ea8066dee0a27",7:"e52505551634fec30bd5",8:"c3ec15102a80a3d74a44",9:"052532170c10e2f2f791",10:"c9e3b5aa885939de201f",11:"0df57511cdf35d308d4a",12:"1c63f18b9603fa6a5d3d",13:"42ec78c1a19033580903",14:"2dbaab6f43f082f81abd",15:"393003af087a001409ab",16:"51411f8687c35c922aeb",17:"4ecbb353df9804b73cff",18:"23b328f70324b0723133",19:"37f7dcc560afc40324f9",20:"c0455fe89f7e61827975",21:"6ae40d373351059aef57",22:"859a82fcba6c7717ce95",23:"6dd16e6a650135015ae9",24:"9cedef57bece6f1e7411",25:"bd92d07a528cc30a588f",26:"76ac6ca0e06654a96985",27:"de6578771033b1c4d4d8",28:"99561dff52fcfb48ba84",29:"0cf02fe9391112f5bc66",30:"fe486a6e84d1e3bf3356",31:"5891bbe9bda06f2a26f5",32:"498225a3685ed1a605c5",33:"8b3e816887acbe8c5c47",34:"2d1a136a2b9762d4e8cf",35:"c9f96d4ec23eff355efb",36:"16cd28b70a7a3775e8c6",37:"e1c592fa214a6c8c6129",38:"ab3f6c248d3f1392f544",39:"e18473babf9e603ffcbf",40:"c8ebdbef45c03495b29b",41:"6dba200c8bc974d91e61",42:"b44529aaa35c8b216c7e",43:"0f7d0e326122debd9bef",44:"4b19f6f3220644b1b9da",45:"f002ee4b50549513cd1e",46:"54e60f6cb95f5cffeffb",47:"f4be4ca985e3de9d7b96",48:"bc0fe2b189cc5bce9fc3",49:"fbf52427fa2bf5238803",50:"d6a82a99b4801fe9625a",51:"a861f6172353c9391d2b"}[e]+".js";var t=setTimeout(d,12e4);function d(){r.onerror=r.onload=null,clearTimeout(t);var f=a[e];0!==f&&(f&&f[1](new Error("Loading chunk "+e+" failed.")),a[e]=void 0)}return r.onerror=r.onload=d,n.appendChild(r),c},b.m=e,b.c=c,b.d=function(e,f,c){b.o(e,f)||Object.defineProperty(e,f,{configurable:!1,enumerable:!0,get:c})},b.n=function(e){var f=e&&e.__esModule?function(){return e.default}:function(){return e};return b.d(f,"a",f),f},b.o=function(e,f){return Object.prototype.hasOwnProperty.call(e,f)},b.p="/",b.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.9849ef6451bc59bbeca4ff55d31617ea.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.4c86cd7d9e577f1bd90d.js></script><script type=text/javascript src=/static/js/vendor.dabb3afa5856b271bc7f.js></script><script type=text/javascript src=/static/js/app.b08cda0729a359fcf162.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.d8c57c7306190082c031adfeaaebf70d.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.4e70b5b5e7f461b820e2.js></script><script type=text/javascript src=/static/js/vendor.dabb3afa5856b271bc7f.js></script><script type=text/javascript src=/static/js/app.a0d98def6ae2dd88fddf.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([12],{"1nKh":function(e,t){},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._13)("/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._12)(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._1)(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._39)({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._37)(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",size:"small",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("搜索")]),e._v(" "),e.$store.state.readonly?e._e():n("el-button",{attrs:{type:"success",plain:""},on:{click:e.addIntegral}},[e._v("生成兑换码")])],1)],1),e._v(" "),n("el-table",{staticStyle:{width:"100%"},attrs:{data:e.list,size:"small"}},[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("1nKh"),n("OQCD")},"data-v-cd253502",null);t.default=_.exports},OQCD:function(e,t){},tPpJ:function(e,t){},wj7p:function(e,t){}});
\ No newline at end of file
webpackJsonp([14],{"/e+X":function(e,t){},"69L+":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("kmJW"),s=a("NC6I"),o=a.n(s),i=a("zA5m"),n=a("G2rA"),l=a("CCn6"),c=a("+TkF"),u={name:"smsRecord",components:{page:r.a,refundDialog:i.a,refundDetail:n.a},data:function(){var e=this;return{today:{text:"今天",onClick:function(t){t.$emit("pick",[e.formatTime(new Date)+" 00:00:00",e.formatTime(new Date)+" 23:59:59"])}},yesterday:{text:"昨天",onClick:function(t){var a=e.formatTime(new Date((new Date).getTime()-864e5));t.$emit("pick",[a+" 00:00:00",a+" 23:59:59"])}},last30Day:{text:"过去30天",onClick:function(t){var a=e.formatTime(new Date((new Date).getTime()-2592e6));t.$emit("pick",[a+" 00:00:00",e.formatTime(new Date)+" 23:59:59"])}},last7Day:{text:"过去7天",onClick:function(t){var a=e.formatTime(new Date((new Date).getTime()-6048e5));t.$emit("pick",[a+" 00:00:00",e.formatTime(new Date)+" 23:59:59"])}},uploadHeader:{token:localStorage.getItem("cc_token")},param_token:o()(JSON.stringify({sing:"singsingenglish21000"})),nowPage:1,total:0,limit:10,useTypeList:[{user_buy:0,value:"未绑定"},{user_buy:1,value:"已绑定"}],searchFrom:{goods_id:"",mobile:"",invite_type:"",status:[1,4,5],createTime:[],course_type:"-1",pullTime:[],order_id:"",teacher_id:"",user_id:"",nickname:""},refundDialogObj:{show:!1,id:"",order_type:" other",money:0},orderStatusOption:c.q,list:[],teacherList:[],goodList:[],refundDetail:{show:!1,out_trade_no:""},classObj:{show:!1,title:"当前同步进度",order_id:0,teacher_id:0},classList:[],last_pull_time:"无"}},filters:{filterStatus:function(e){return 0===e?"未绑定":"已绑定"},status:function(e){return c.p[e]},filterGoods:function(e){return"["+c.g[e.goods_type]+"]["+e.current_price/100+"元]"+e.name}},mounted:function(){this.getList(),this.getGoodsOption(),this.getTeacherList()},methods:{onAfterRefund:function(){this.refundDialogObj.show=!1,this.getList()},showRef:function(e){this.refundDetail.show=!0,this.refundDetail.out_trade_no=e.order_id},changeShow:function(e){this.refundDialogObj.show=e},onRefund:function(e,t){this.refundDialogObj.id=e,this.refundDialogObj.money=t,this.refundDialogObj.show=!0},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},fileSuccess:function(){this.$message({message:"提交成功,请稍后刷新",type:"success"})},downLoad:function(){window.open("/static/外部订单模板.xlsx")},onPageChange:function(e){this.nowPage=e,this.getList()},getTeacherList:function(){var e=this;Object(l._69)({page:1,limit:200}).then(function(t){e.teacherList=t.list})},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.mobile&&(t.mobile=this.searchFrom.mobile),this.searchFrom.status&&(t.status=this.searchFrom.status.join(",")),"-1"!==this.searchFrom.course_type&&(t.course_type=this.searchFrom.course_type),this.searchFrom.nickname&&(t.nickname=this.searchFrom.nickname),this.searchFrom.user_id&&(t.user_id=this.searchFrom.user_id),this.searchFrom.teacher_id&&(t.teacher_id=this.searchFrom.teacher_id),this.searchFrom.goods_name&&(t.goods_name=this.searchFrom.goods_name),(this.searchFrom.user_buy||0===this.searchFrom.user_buy)&&(t.user_buy=this.searchFrom.user_buy),this.searchFrom.order_id&&(t.order_id=this.searchFrom.order_id),this.searchFrom.goods_id&&(t.goods_id=this.searchFrom.goods_id),this.searchFrom.invite_type&&(t.invite_type=this.searchFrom.invite_type),2===this.searchFrom.createTime.length&&(t.start_at=this.searchFrom.createTime[0],t.end_at=this.searchFrom.createTime[1]),2===this.searchFrom.pullTime.length&&(t.pay_start_at=this.searchFrom.pullTime[0],t.pay_end_at=this.searchFrom.pullTime[1]),Object(l._80)(t).then(function(t){e.total=t.total,e.list=t.list?t.list:[]})},getGoodsOption:function(){var e=this;Object(l._39)({page:1,limit:100}).then(function(t){e.goodList=t.list})},editNote:function(e,t){var a=this;this.$prompt("","编辑备注",{confirmButtonText:"确定",cancelButtonText:"取消",inputType:"textarea",inputValue:t||""}).then(function(t){var r=t.value;a.$confirm("确定保存?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(l._86)({desc:r},e).then(function(e){a.$message({type:"success",message:"编辑备注成功"}),a.getList()})})})},exportTable:function(e){if(e.length>0){var t={};this.searchFrom.order_id&&(t.order_id=this.searchFrom.order_id),(this.searchFrom.user_buy||0==this.searchFrom.user_buy)&&(t.user_buy=this.searchFrom.user_buy),this.searchFrom.mobile&&(t.mobile=this.searchFrom.mobile),this.searchFrom.nickname&&(t.nickname=this.searchFrom.nickname),this.searchFrom.user_id&&(t.user_id=this.searchFrom.user_id),this.searchFrom.goods_id&&(t.goods_id=this.searchFrom.goods_id),this.searchFrom.teacher_id&&(t.teacher_id=this.searchFrom.teacher_id),Object(l._13)("api/admin/yunji/order/export",t)}},classListOption:function(){var e=this;this.classObj.show=!0,Object(l._80)({page:1,limit:200}).then(function(t){e.classList=t.teacher,t.last_pull_time&&(e.last_pull_time=t.last_pull_time)})}}},m={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"sms"},[a("el-form",{ref:"searchFrom",attrs:{size:"small",inline:"",model:e.searchFrom,"label-width":"80px"}},[a("el-form-item",{attrs:{label:"用户ID"}},[a("el-input",{staticStyle:{width:"80px"},model:{value:e.searchFrom.user_id,callback:function(t){e.$set(e.searchFrom,"user_id",t)},expression:"searchFrom.user_id"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"用户昵称"}},[a("el-input",{staticStyle:{width:"110px"},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",{staticStyle:{width:"120px"},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-select",{staticStyle:{width:"150px"},attrs:{placeholder:"请选择",clearable:""},on:{change:e.getList},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 a("el-option",{key:r,attrs:{label:e._f("filterGoods")(t),value:t.id}})}))],1),e._v(" "),a("el-form-item",{staticClass:"test",attrs:{label:"来源"}},[a("el-input",{staticStyle:{width:"180px"},attrs:{placeholder:"来源CODE"},model:{value:e.searchFrom.invite_type,callback:function(t){e.$set(e.searchFrom,"invite_type",t)},expression:"searchFrom.invite_type\t"}},[a("template",{slot:"prepend"},[e._v("CC -")])],2)],1),e._v(" "),a("el-form-item",{attrs:{label:"订单状态"}},[a("el-select",{staticStyle:{width:"230px"},attrs:{multiple:"",placeholder:"请选择",clearable:""},on:{change:e.getList},model:{value:e.searchFrom.status,callback:function(t){e.$set(e.searchFrom,"status",t)},expression:"searchFrom.status"}},e._l(e.orderStatusOption,function(e){return a("el-option",{key:e.id,attrs:{label:e.value,value:e.id}})}))],1),e._v(" "),a("el-form-item",{attrs:{label:"绑定状态"}},[a("el-select",{staticStyle:{width:"100px"},attrs:{placeholder:"请选择",clearable:""},on:{change:e.getList},model:{value:e.searchFrom.user_buy,callback:function(t){e.$set(e.searchFrom,"user_buy",t)},expression:"searchFrom.user_buy"}},e._l(e.useTypeList,function(e){return a("el-option",{key:e.user_buy,attrs:{label:e.value,value:e.user_buy}})}))],1),e._v(" "),a("el-form-item",{attrs:{label:"老师"}},[a("el-select",{staticStyle:{width:"100px"},attrs:{placeholder:"请选择",clearable:"",filterable:""},on:{change:e.getList},model:{value:e.searchFrom.teacher_id,callback:function(t){e.$set(e.searchFrom,"teacher_id",t)},expression:"searchFrom.teacher_id"}},e._l(e.teacherList,function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})}))],1),e._v(" "),a("el-form-item",{attrs:{label:"订单号"}},[a("el-input",{model:{value:e.searchFrom.order_id,callback:function(t){e.$set(e.searchFrom,"order_id",t)},expression:"searchFrom.order_id"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"下单时间"}},[a("el-date-picker",{attrs:{type:"datetimerange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","value-format":"yyyy-MM-dd HH:mm:ss","picker-options":{shortcuts:[e.today,e.yesterday,e.last7Day,e.last30Day]},"default-time":["00:00:00","23:59:59"]},on:{change:e.getList},model:{value:e.searchFrom.createTime,callback:function(t){e.$set(e.searchFrom,"createTime",t)},expression:"searchFrom.createTime"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"付款时间"}},[a("el-date-picker",{attrs:{type:"datetimerange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","value-format":"yyyy-MM-dd HH:mm:ss","picker-options":{shortcuts:[e.today,e.yesterday,e.last7Day,e.last30Day]},"default-time":["00:00:00","23:59:59"]},on:{change:e.getList},model:{value:e.searchFrom.pullTime,callback:function(t){e.$set(e.searchFrom,"pullTime",t)},expression:"searchFrom.pullTime"}})],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:e.getList}},[e._v("搜索")]),e._v(" "),e.$store.state.export?a("el-button",{attrs:{type:"primary",plain:""},on:{click:function(t){e.exportTable(e.list)}}},[e._v("导出")]):e._e()],1),e._v(" "),a("el-form-item",[a("el-upload",{attrs:{"show-file-list":!1,onSuccess:e.fileSuccess,headers:e.uploadHeader,data:{param_token:e.param_token},action:"/api/admin/order/import"}},[a("el-button",{attrs:{type:"primary",plain:""}},[e._v("导入")])],1)],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary",plain:""},on:{click:function(t){e.downLoad()}}},[e._v("excel模板下载")])],1)],1),e._v(" "),a("el-tabs",{staticStyle:{background:"white","padding-top":"10px"},attrs:{type:"card"},on:{"tab-click":e.getList},model:{value:e.searchFrom.course_type,callback:function(t){e.$set(e.searchFrom,"course_type",t)},expression:"searchFrom.course_type"}},[a("el-tab-pane",{attrs:{label:"全部",name:"-1"}}),e._v(" "),a("el-tab-pane",{attrs:{label:"月课",name:"0"}}),e._v(" "),a("el-tab-pane",{attrs:{label:"日课",name:"1"}})],1),e._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.list,size:"mini"}},[a("el-table-column",{attrs:{prop:"order_id",label:"订单号"}}),e._v(" "),a("el-table-column",{attrs:{prop:"nickname",label:"购买人"},scopedSlots:e._u([{key:"default",fn:function(t){return[0!==t.row.user_id?a("div",{staticStyle:{display:"flex"}},[a("img",{staticClass:"avatar",attrs:{src:t.row.avatar}}),e._v(" "),a("div",[e._v(e._s(t.row.nickname)),a("br"),e._v("(ID:"+e._s(t.row.user_id)+")")])]):e._e(),e._v(" "),0===t.row.user_id?a("div",[e._v("\n 暂未绑定用户\n ")]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"periods_title",label:"期数"}}),e._v(" "),a("el-table-column",{attrs:{prop:"goods_name",label:"商品名称"}}),e._v(" "),a("el-table-column",{attrs:{prop:"invite_type",label:"来源"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.invite_type)+"("+e._s(t.row.invite_name)+")\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"teacher_name",label:"班级老师"}}),e._v(" "),a("el-table-column",{attrs:{label:"付款状态",width:"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[5===t.row.status||3===t.row.status?a("el-button",{attrs:{type:"text"},on:{click:function(a){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?a("div",[e._v(e._s(e._f("status")(t.row.status)))]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"money",label:"实付金额"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.money/100)+"元\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"收货地址",width:"150px"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n 姓名:"+e._s(t.row.receiver_name)+"\n "),a("br"),e._v("\n tel:"+e._s(t.row.receiver_phone)+"\n "),a("br"),e._v("\n "+e._s(t.row.receiver_province)+" "+e._s(t.row.receiver_city)+" "+e._s(t.row.receiver_area)+" "+e._s(t.row.receiver_address)+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"create_time",label:"下单时间",width:"140px",sortable:""}}),e._v(" "),a("el-table-column",{attrs:{prop:"pay_time",label:"付款时间",width:"140px",sortable:""}}),e._v(" "),a("el-table-column",{attrs:{prop:"desc",label:"备注"}}),e._v(" "),e.$store.state.readonly?e._e():a("el-table-column",{attrs:{label:"操作",fixed:"right",width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{size:"mini",plain:"",type:"primary"},on:{click:function(a){e.editNote(t.row.id,t.row.desc)}}},[e._v("编辑备注")]),e._v(" "),1!==t.row.status&&4!==t.row.status&&5!==t.row.status||!e.$store.state.orderRefund?e._e():a("el-button",{attrs:{type:"warning",plain:"",size:"mini"},on:{click:function(a){e.onRefund(t.row.id,t.row.money)}}},[e._v("\n 退款\n ")])]}}])})],1),e._v(" "),a("page",{attrs:{nowPage:e.nowPage,total:e.total},on:{pageChange:e.onPageChange,sizeChange:e.onSizeChange}}),e._v(" "),a("refund-dialog",{attrs:{dialogObj:e.refundDialogObj},on:{reflash:e.onAfterRefund,changeShow:e.changeShow}}),e._v(" "),a("refund-detail",{attrs:{dialogObj:e.refundDetail}}),e._v(" "),a("el-dialog",{attrs:{title:e.classObj.title,visible:e.classObj.show,center:"",width:"800px"},on:{"update:visible":function(t){e.$set(e.classObj,"show",t)}}},[a("div",{staticStyle:{margin:"10px",color:"#888888"}},[e._v("\n 最新同步时间:"+e._s(e.last_pull_time)+"\n ")]),e._v(" "),a("el-table",{attrs:{data:e.classList}},[a("el-table-column",{attrs:{prop:"teacher_name",label:"班级老师"}}),e._v(" "),a("el-table-column",{attrs:{prop:"num",label:"预计入班人数"}})],1),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"})],1)],1)},staticRenderFns:[]};var d=a("VU/8")(u,m,!1,function(e){a("RdfS"),a("e6Yr")},"data-v-0c2d5b73",null);t.default=d.exports},RdfS:function(e,t){},e6Yr:function(e,t){},zA5m:function(e,t,a){"use strict";var r=a("CCn6"),s={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 a={refund_money:100*parseFloat(e.form.money),desc:e.form.desc,refund_type:e.form.refund_type};e.dialogObj.order_type&&(a.order_type=e.dialogObj.order_type),Object(r._89)(e.dialogObj.id,a).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)}}},o={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:"退款",center:"","append-to-body":"",visible:e.show,width:"800px"},on:{"update:visible":function(t){e.show=t}}},[a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[a("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules}},[a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:4}},[a("label",[e._v("退款金额")])]),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{prop:"key"}},[a("el-input",{model:{value:e.form.money,callback:function(t){e.$set(e.form,"money",t)},expression:"form.money"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-button",{attrs:{type:"success",round:"",size:"small"},on:{click:function(t){e.form.money=100}}},[e._v("¥100")]),e._v(" "),a("el-button",{attrs:{type:"success",round:"",size:"mini"},on:{click:function(t){e.form.money=150}}},[e._v("¥150")])],1)],1),e._v(" "),a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:4}},[a("label",[e._v("退课")])]),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",[a("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(" "),a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:4}},[a("label",[e._v("退款原因")])]),e._v(" "),a("el-col",{attrs:{span:12}},[a("el-form-item",[a("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(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.show=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.save}},[e._v("确 定")])],1)])},staticRenderFns:[]};var i=a("VU/8")(s,o,!1,function(e){a("/e+X")},"data-v-605a0c46",null);t.a=i.exports}});
\ No newline at end of file
webpackJsonp([23],{"/ly6":function(e,t){},DbZE:function(e,t){},XjFf:function(e,t){},ayGs:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=o("CCn6"),r=o("+TkF"),n=o("kmJW"),s={props:["dialogObj"],data:function(){return{nowPage:1,total:0,goodList:[],currentRow:null}},components:{page:n.a},filters:{isOrNot:function(e){return r.n[e]},goodsType:function(e){return r.g[e]},lessonType:function(e){return r.o[e]},goodsStatus:function(e){return r.f[e]}},methods:{initPage:function(){var e=this;Object(a._39)().then(function(t){e.goodList=t.list,e.total=t.total})},handleCurrentChange:function(e){this.currentRow=e},onConfirm:function(){this.$emit("reflash",this.currentRow)}},mounted:function(){this.initPage()}},i={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",[o("el-dialog",{attrs:{title:e.dialogObj.title,visible:e.dialogObj.show},on:{"update:visible":function(t){e.$set(e.dialogObj,"show",t)}}},[o("el-table",{staticStyle:{width:"100%"},attrs:{data:e.goodList,"row-key":"id","highlight-current-row":""},on:{"current-change":e.handleCurrentChange}},[o("el-table-column",{attrs:{prop:"id",label:"商品ID"}}),e._v(" "),o("el-table-column",{attrs:{prop:"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("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.current_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(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("isOrNot")(t.row.is_real))+"\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("goodsStatus")(t.row.status))+"\n ")]}}])})],1),e._v(" "),o("page",{attrs:{nowPage:e.nowPage,total:e.total}}),e._v(" "),o("span",{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.onConfirm}},[e._v("确 定")])],1)],1)],1)},staticRenderFns:[]};var l=o("VU/8")(s,i,!1,function(e){o("XjFf")},"data-v-bf015d34",null).exports,c={props:["dialogObj"],data:function(){return{loading:!1,form:{is_add_teacher_to_class:!1,teacherList:[],viewTeacher:"",rest_week_day:[],title:"",goods_id:""},show:!1,viewTeacher:"",pickerOptions1:{disabledDate:function(e){return!(e.getTime()>Date.now())}},options:[{value:0,label:"周日"},{value:1,label:"周一"},{value:2,label:"周二"},{value:3,label:"周三"},{value:4,label:"周四"},{value:5,label:"周五"},{value:6,label:"周六"}],teacherOptions:[],teacher1Options:[],teacher2Options:[],goodList:[],itemOptions:[],rules:{title:[{required:!0,message:"请输入名称",trigger:"change"}],startNum:[{required:!0,message:"请输入开始主题",trigger:"change"}],start_at:[{required:!0,message:"请选择开始上课时间",trigger:"change"}],rest_week_day:[{required:!0,message:"请选择周几不上课",trigger:"change"}],teacher_ids:[{required:!0,message:"请选择老师ID",trigger:"change"}],goods_id:[{required:!0,message:"商品ID不能为空",trigger:"change"}],teacherList:[{required:!0,message:"带班老师不能为空",trigger:"change"}],viewTeacher:[{required:!0,message:"观摩老师不能为空",trigger:"change"}]},periodsList:[],selectedGoods:[]}},components:{goodDialog:l},watch:{"dialogObj.show":function(e){e&&(this.getTeachers(),this.getGoodsOption())},show:function(e){this.$emit("changeShow",e)}},filters:{isOrNot:function(e){return r.n[e]},goodsType:function(e){return r.g[e]},lessonType:function(e){return r.o[e]},goodsStatus:function(e){return r.f[e]},filterGoods:function(e){return"["+r.g[e.goods_type]+"]["+e.current_price/100+"元]"+e.name}},methods:{sub:function(){var e=this;this.$refs.form.validate(function(t){if(t){var o=e.form.goods_id,r={title:e.form.title,start_num:e.form.startNum,start_at:e.form.start_at,rest_week_day:e.form.rest_week_day?e.form.rest_week_day.join(","):""};r.is_add_teacher_to_class=e.form.is_add_teacher_to_class?1:0,e.form.id?Object(a._35)(e.form.id,r).then(function(t){e.$message({type:"success",message:"编辑成功!"}),e.$emit("reflash")}):(r.teacher_ids=e.form.teacherList.join(","),r.view_teacher_id=parseInt(e.form.viewTeacher),Object(a._14)(o,r).then(function(t){e.$message({type:"success",message:"添加成功!"}),e.$emit("reflash")})),e.show=!1}})},getTeachers:function(){var e=this;Object(a._69)({page:1,limit:100,status:0}).then(function(t){e.teacherOptions=t.list,e.teacher1Options=t.list,e.teacher2Options=t.list})},findDifferentArray:function(e,t){var o=[];return e.forEach(function(t){-1===e.findIndex(function(e){return t.id==e})&&o.push(t)}),o},onTeacher1Change:function(e){this.teacher2Options=e?this.findDifferentArray(this.teacherOptions,e):this.teacherOptions},onTeacher2Change:function(e){this.teacher1Options=e?this.findDifferentArray(this.teacherOptions,[e]):this.teacherOptions},onOptionChange:function(e){var t=this.goodList.findIndex(function(t){return t.id===e});t>-1&&this.getLessonDetail(this.goodList[t].course_id),delete this.form.startNum},getLessonDetail:function(e){var t=this;Object(a._43)(e,{}).then(function(e){t.itemOptions=e.detail[e.type]})},getGoodsOption:function(){var e=this;Object(a._39)({page:1,limit:100}).then(function(t){e.goodList=t.list,e.dialogObj.form.id?e.form=e.dialogObj.form:e.form={rest_week_day:[],is_add_teacher_to_class:!1,teacherList:[],viewTeacher:"",title:"",goods_id:""},e.dialogObj.form.course_id&&e.getLessonDetail(e.dialogObj.form.course_id),e.show=e.dialogObj.show})},changePeriods:function(e){e.length>1&&(this.form.title=String(e[1]))},handleItemChange:function(e){var t=this;Object(a._51)({goods_id:e[0]}).then(function(o){o.list.forEach(function(e){e.name=e.title}),t.periodsList.find(function(t){return t.id===e[0]}).children=o.list})}}},u={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",[o("el-dialog",{attrs:{title:e.dialogObj.title,center:"","append-to-body":"",visible:e.show,width:"800px"},on:{"update:visible":function(t){e.show=t}}},[o("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[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:"请选择",disabled:!!e.form.id},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.goodList,function(t,a){return o("el-option",{key:a,attrs:{label:e._f("filterGoods")(t),value:t.id}})}))],1)],1)],1),e._v(" "),o("el-form-item",{attrs:{label:"期数名称",prop:"title"}},[o("el-input",{model:{value:e.form.title,callback:function(t){e.$set(e.form,"title",t)},expression:"form.title"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"开始主题",prop:"startNum"}},[o("el-select",{attrs:{clearable:"",placeholder:"请选择"},model:{value:e.form.startNum,callback:function(t){e.$set(e.form,"startNum",t)},expression:"form.startNum"}},e._l(e.itemOptions,function(e){return o("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}))],1),e._v(" "),o("el-form-item",{attrs:{label:"开始上课时间",prop:"start_at"}},[o("el-date-picker",{attrs:{format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",type:"date","picker-options":e.pickerOptions1,placeholder:"选择日期"},model:{value:e.form.start_at,callback:function(t){e.$set(e.form,"start_at",t)},expression:"form.start_at"}})],1),e._v(" "),e.form.id?e._e():o("el-form-item",{attrs:{label:"带班老师",prop:"teacherList"}},[o("el-select",{attrs:{placeholder:"请选择",filterable:"",multiple:""},on:{change:e.onTeacher1Change},model:{value:e.form.teacherList,callback:function(t){e.$set(e.form,"teacherList",t)},expression:"form.teacherList"}},e._l(e.teacher1Options,function(e){return o("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}))],1),e._v(" "),e.form.id?e._e():o("el-form-item",{attrs:{label:"观摩老师",prop:"viewTeacher"}},[o("el-select",{attrs:{placeholder:"请选择",filterable:""},on:{change:e.onTeacher2Change},model:{value:e.form.viewTeacher,callback:function(t){e.$set(e.form,"viewTeacher",t)},expression:"form.viewTeacher"}},e._l(e.teacher2Options,function(e){return o("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}))],1),e._v(" "),e.form.id?e._e():o("el-form-item",{attrs:{label:"将带班老师加入观摩班","label-width":"200"}},[o("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#eee"},model:{value:e.form.is_add_teacher_to_class,callback:function(t){e.$set(e.form,"is_add_teacher_to_class",t)},expression:"form.is_add_teacher_to_class"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"不上课日期"}},[o("el-select",{attrs:{multiple:"",placeholder:"请选择"},model:{value:e.form.rest_week_day,callback:function(t){e.$set(e.form,"rest_week_day",t)},expression:"form.rest_week_day"}},e._l(e.options,function(e){return o("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}))],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.sub}},[e._v("确 定")])],1)],1)])],1)},staticRenderFns:[]};var d=o("VU/8")(c,u,!1,function(e){o("DbZE")},"data-v-881e58d6",null).exports,_=o("sf/l"),f={name:"index",data:function(){return{nowPage:1,total:0,limit:10,course_type:"1",title:"",goodsId:null,lessonId:null,startAt:"",periodList:[],startTime:[],newDialog:{form:{},show:!1,title:""},goodList:[],lessonList:[]}},filters:{dayFilter:function(e){var t=e?e.split(","):[];return(t=t.map(function(e){return r.v[e]})).join(",")},filterGoods:function(e){return"["+r.g[e.goods_type]+"]["+e.current_price/100+"元]"+e.name},percent:function(e){return(100*e).toFixed(2)+"%"}},components:{goodDialog:l,newDialog:d,page:n.a},methods:{changeRow:function(e,t){t.indexOf(e)>-1&&Object(a._52)(e.id).then(function(t){e.arrive_course_rate=t.arrive_course_rate,e.watch_course_rate=t.watch_course_rate,e.over_course_rate=t.over_course_rate,e.work_rate=t.work_rate,e.over_work_rate=t.over_work_rate,e.clock_rate=t.clock_rate,e.over_clock_rate=t.over_clock_rate,e.transform_rate=t.transform_rate})},dateCompare:function(e){var t=_.a.dateFmt(new Date,"yyyy-MM-dd");return new Date(t.replace(/-/g,"/"))>new Date(e.replace(/-/g,"/"))},onPageChange:function(e){this.nowPage=e,this.onSearch()},onSizeChange:function(e){this.limit=e,this.nowPage=1,this.onSearch()},onSearch:function(){var e=this,t={limit:this.limit,page:this.nowPage};"-1"!==this.course_type&&(t.course_type=this.course_type),this.title&&(t.title=this.title),this.goodsId&&(t.goods_id=this.goodsId),this.lessonId&&(t.course_id=this.lessonId),this.startTime&&this.startTime.length>0&&(t.start_start_at=_.a.dateFmt(this.startTime[0],"yyyy-MM-dd"),t.start_end_at=_.a.dateFmt(this.startTime[1],"yyyy-MM-dd")),this.startAt&&(t.start_at=this.startAt),Object(a._51)(t).then(function(t){t.list.forEach(function(e){e.arrive_course_rate=0,e.watch_course_rate=0,e.over_course_rate=0,e.work_rate=0,e.over_work_rate=0,e.clock_rate=0,e.over_clock_rate=0,e.transform_rate=0}),e.periodList=t.list,e.total=t.total})},changeShow:function(e){this.newDialog.show=e},onAdd:function(){this.newDialog.form.id="",this.newDialog.form.startNum="",this.newDialog.form.goods_id="",this.newDialog.form.title="",this.newDialog.form.start_at="",this.newDialog.form.rest_week_day=[],this.newDialog.form.teacher_ids=[],this.newDialog.form.teacherList=[],this.newDialog.form.viewTeacher="",this.newDialog.title="添加期数",this.newDialog.show=!0},onEdit:function(e){if(this.dateCompare(e.start_at))this.$message({type:"error",message:"期数已开始,不能编辑!"});else{var t=[];e.rest_week_day&&e.rest_week_day.split(",").forEach(function(e){t.push(parseInt(e))});var o=[];e.teacher_ids&&e.teacher_ids.split(",").forEach(function(e){o.push(parseInt(e))}),this.newDialog.form={id:e.id,startNum:e.start_num,start_at:e.start_at,title:e.title,goods_id:e.goods_id,rest_week_day:t,teacher_ids:o,course_id:e.course_id},this.newDialog.title="编辑期数",this.newDialog.show=!0}},onSave:function(e){this.newDialog.show=!1,this.onSearch()},del:function(e){var t=this;this.$confirm("此操作将删除该期数?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(a.L)(e.id).then(function(e){t.$message({type:"success",message:"删除成功!"}),t.onSearch()})})},getGoodsOption:function(){var e=this;Object(a._39)({page:1,limit:100,goods_type:"1,2"}).then(function(t){e.goodList=t.list})},getLessonOption:function(){var e=this;Object(a._42)({page:1,limit:100}).then(function(t){e.lessonList=t.list})}},mounted:function(){var e=this.$route.query;e&&e.goods_id?this.goodsId=parseInt(e.goods_id):e&&e.id&&(this.lessonId=parseInt(e.id)),this.onSearch(),this.getGoodsOption(),this.getLessonOption()}},h={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"periods"},[o("div",{staticClass:"form-block"},[o("el-form",{attrs:{"label-width":"85px",inline:"",size:"small"}},[o("el-form-item",{attrs:{label:"期数标题"}},[o("el-input",{staticStyle:{width:"150px"},attrs:{placeholder:"请输入内容",clearable:""},model:{value:e.title,callback:function(t){e.title=t},expression:"title"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"商品名称"}},[o("el-select",{staticStyle:{width:"150px"},attrs:{placeholder:"请选择",clearable:""},on:{change:e.onSearch},model:{value:e.goodsId,callback:function(t){e.goodsId=t},expression:"goodsId"}},e._l(e.goodList,function(t,a){return o("el-option",{key:a,attrs:{label:e._f("filterGoods")(t),value:t.id}})}))],1),e._v(" "),o("el-form-item",{attrs:{label:"课程名称"}},[o("el-select",{staticStyle:{width:"150px"},attrs:{placeholder:"请选择",clearable:""},on:{change:e.onSearch},model:{value:e.lessonId,callback:function(t){e.lessonId=t},expression:"lessonId"}},e._l(e.lessonList,function(e,t){return o("el-option",{key:t,attrs:{label:e.title,value:e.id}})}))],1),e._v(" "),o("el-form-item",{attrs:{label:"开始时间"}},[o("el-date-picker",{attrs:{type:"datetimerange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","default-time":["00:00:00","23:59:59"]},on:{change:e.onSearch},model:{value:e.startTime,callback:function(t){e.startTime=t},expression:"startTime"}})],1),e._v(" "),o("el-form-item",[o("el-button",{attrs:{type:"primary"},on:{click:e.onSearch}},[e._v("查询")]),e._v(" "),e.$store.state.readonly?e._e():o("el-button",{attrs:{type:"success",size:"small"},on:{click:e.onAdd}},[e._v("添加期数")])],1)],1)],1),e._v(" "),o("el-tabs",{staticStyle:{background:"white","padding-top":"10px"},attrs:{type:"card"},on:{"tab-click":e.onSearch},model:{value:e.course_type,callback:function(t){e.course_type=t},expression:"course_type"}},[o("el-tab-pane",{attrs:{label:"日课",name:"1"}}),e._v(" "),o("el-tab-pane",{attrs:{label:"月课",name:"0"}}),e._v(" "),o("el-tab-pane",{attrs:{label:"全部",name:"-1"}})],1),e._v(" "),o("el-table",{staticStyle:{width:"100%"},attrs:{size:"mini",data:e.periodList,fixed:""},on:{"expand-change":e.changeRow}},[o("el-table-column",{attrs:{type:"expand"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("el-table",{staticStyle:{width:"100%"},attrs:{data:[t.row]}},[o("el-table-column",{attrs:{label:"到课率"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("span",[e._v(e._s(e._f("percent")(t.row.arrive_course_rate)))])]}}])}),e._v(" "),o("el-table-column",{attrs:{label:"看课率"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("span",[e._v(e._s(e._f("percent")(t.row.watch_course_rate)))])]}}])}),e._v(" "),o("el-table-column",{attrs:{label:"完课率"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("span",[e._v(e._s(e._f("percent")(t.row.over_course_rate)))])]}}])}),e._v(" "),o("el-table-column",{attrs:{label:"打卡率"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("span",[e._v(e._s(e._f("percent")(t.row.clock_rate)))])]}}])}),e._v(" "),o("el-table-column",{attrs:{label:"全勤打卡率"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("span",[e._v(e._s(e._f("percent")(t.row.over_clock_rate)))])]}}])}),e._v(" "),o("el-table-column",{attrs:{label:"转化率"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("span",[e._v(e._s(e._f("percent")(t.row.transform_rate)))])]}}])})],1)]}}])}),e._v(" "),o("el-table-column",{attrs:{label:"期数标题"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("router-link",{attrs:{to:{name:"class",query:{goods_id:t.row.goods_id,periods_id:t.row.id}}}},[e._v("\n "+e._s(t.row.title)+"\n ")])]}}])}),e._v(" "),o("el-table-column",{attrs:{prop:"goods_name",label:"商品名称"}}),e._v(" "),o("el-table-column",{attrs:{label:"商品价格"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.goods_price/100)+"元\n ")]}}])}),e._v(" "),o("el-table-column",{attrs:{prop:"course_title",label:"课程名称"}}),e._v(" "),o("el-table-column",{attrs:{prop:"start_name",label:"开始主题/歌"}}),e._v(" "),o("el-table-column",{attrs:{prop:"current_category_name",label:"当前歌曲"}}),e._v(" "),o("el-table-column",{attrs:{label:"看课情况","min-width":"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n 可看课包数: "+e._s(t.row.watch_num)),o("br"),e._v(" 已看课包数:"+e._s(t.row.has_watch_num)+" "),o("br"),e._v(" "),9999!==t.row.duration_num?o("span",[e._v("续看课包数: "+e._s(t.row.duration_num)),o("br"),e._v(" 已续看课包数:"+e._s(t.row.has_duration_num))]):e._e(),e._v(" "),9999===t.row.duration_num?o("span",{staticStyle:{color:"#00af00"}},[e._v("永久观看")]):e._e()]}}])}),e._v(" "),o("el-table-column",{attrs:{label:"不上课日期","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("dayFilter")(t.row.rest_week_day))+"\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.total_user_num?t.row.total_user_num:"")+"\n ")]}}])}),e._v(" "),o("el-table-column",{attrs:{prop:"watch_total_user_num",label:"可看课学员数"}}),e._v(" "),o("el-table-column",{attrs:{prop:"start_at",label:"起止时间",sortable:""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.start_at)+"\n "),o("br"),e._v("\n "+e._s(t.row.over_at?t.row.over_at:"")+"\n ")]}}])}),e._v(" "),o("el-table-column",{attrs:{prop:"created_at",label:"创建时间",sortable:""}}),e._v(" "),e.$store.state.readonly?e._e():o("el-table-column",{attrs:{label:"操作",width:"148",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("el-button",{attrs:{size:"mini",plain:"",type:"primary"},on:{click:function(o){e.onEdit(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("page",{attrs:{nowPage:e.nowPage,total:e.total,limit:e.limit},on:{pageChange:e.onPageChange,sizeChange:e.onSizeChange}}),e._v(" "),o("new-dialog",{attrs:{dialogObj:e.newDialog},on:{reflash:e.onSave,changeShow:e.changeShow}})],1)},staticRenderFns:[]};var m=o("VU/8")(f,h,!1,function(e){o("/ly6")},null,null);t.default=m.exports}});
\ 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([52],{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:"",export:!1,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(10)]).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(23)]).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(15)]).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(26)]).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(3)]).then(function(){var n=[t("Y0Vi")];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:"monthOrderCount",path:"/monthOrderCount",cover:"5-12",router:{path:"/monthOrderCount",name:"monthOrderCount",component:function(e){return Promise.all([t.e(0),t.e(42)]).then(function(){var n=[t("v/LD")];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(28)]).then(function(){var n=[t("89rD")];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)}}}]},{name:"",value:"用户管理",icon:"icon-laoshi",list:[{value:"用户列表",routerName:"user",path:"/user",cover:"3-2",router:{path:"/user",name:"user",component:function(e){return Promise.all([t.e(0),t.e(7)]).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(33)]).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(8)]).then(function(){var n=[t("2qmY")];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(31)]).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(47).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(41)]).then(function(){var n=[t("mjLz")];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(27)]).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(14)]).then(function(){var n=[t("69L+")];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(12)]).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(17)]).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(16)]).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(21)]).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(24)]).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(22)]).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(34)]).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(13)]).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(30)]).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(29)]).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(32)]).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(35)]).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(40)]).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(49)]).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(43)]).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(25)]).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(38)]).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(18)]).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(6)]).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.export=!!a.export,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("zARH")},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(9)]).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(39).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(48)]).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(4)]).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,o.a.state.export=e.meta.export,"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},zARH:function(e,n){},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 f=window.webpackJsonp;window.webpackJsonp=function(a,r,d){for(var b,t,o,i=0,u=[];i<a.length;i++)t=a[i],c[t]&&u.push(c[t][0]),c[t]=0;for(b in r)Object.prototype.hasOwnProperty.call(r,b)&&(e[b]=r[b]);for(f&&f(a,r,d);u.length;)u.shift()();if(d)for(i=0;i<d.length;i++)o=n(n.s=d[i]);return o};var a={},c={54:0};function n(f){if(a[f])return a[f].exports;var c=a[f]={i:f,l:!1,exports:{}};return e[f].call(c.exports,c,c.exports,n),c.l=!0,c.exports}n.e=function(e){var f=c[e];if(0===f)return new Promise(function(e){e()});if(f)return f[2];var a=new Promise(function(a,n){f=c[e]=[a,n]});f[2]=a;var r=document.getElementsByTagName("head")[0],d=document.createElement("script");d.type="text/javascript",d.charset="utf-8",d.async=!0,d.timeout=12e4,n.nc&&d.setAttribute("nonce",n.nc),d.src=n.p+"static/js/"+e+"."+{0:"f5968bd457f58cea9e47",1:"41d25c420bebbfeb3e4a",2:"e10cd218f4c9bb84034d",3:"f9b0b95ee745ecd78d74",4:"fde890a507adaae38acc",5:"d7881a1e88dee2f14334",6:"2be9167b26eabe4481bc",7:"6971e370cf530f23c85b",8:"f3d5eb4e0e6cdbf3248a",9:"4e39ed25c49518687609",10:"a714d7054f33137ce82f",11:"872863aeabbec3cff27b",12:"555cbf54977aefe9b968",13:"07f70b261774e9d8dd87",14:"6e1914417e9182d07f45",15:"90a7fdbdf0a927540428",16:"a8ad7e68e68347c079fe",17:"f6ac76c29f3bd81f7904",18:"bf252391cbabbfba873d",19:"1bf6c531ff968326ea38",20:"219a998624c3a342a458",21:"16ab1ffe6f8825483d62",22:"f7e3b33452b440e312ed",23:"38e43df1ba979ad736c9",24:"4fe60a97e20b7f068c3a",25:"f874e04dc3034404fd26",26:"3599f524e35d2700c6c2",27:"f9a43f4677ab67070a04",28:"8264fa436ddc75b940d6",29:"b6c67cb52e8fb4ac3de3",30:"775f819861de0b44705d",31:"fa2cff02b35eace0df5f",32:"78827177d063f5d912ee",33:"58a2e0af685001378440",34:"9795847fe16fa99a1aa0",35:"8af8020979de9eb5fa3a",36:"30f6c5df3a57e073a8f4",37:"c231c3e8c02b52d7fb39",38:"7a1401a413510ac96b63",39:"b5bf6e2956e31106fce4",40:"29fb35d600d185c701c6",41:"9386854e603ecf256a40",42:"45b43e4e59ef68d11090",43:"0488afb66241270d05d8",44:"c5a276600bb2a8665c39",45:"ce367510c2692e1c0f09",46:"11ce68425134c54cc1ba",47:"9cf806e0d226649b8d50",48:"54c2b7aff51741579fff",49:"81b8f885eae1ccff7a20",50:"c56cb86db8e51549da41",51:"d11b1ca4f96751ce46db"}[e]+".js";var b=setTimeout(t,12e4);function t(){d.onerror=d.onload=null,clearTimeout(b);var f=c[e];0!==f&&(f&&f[1](new Error("Loading chunk "+e+" failed.")),c[e]=void 0)}return d.onerror=d.onload=t,r.appendChild(d),a},n.m=e,n.c=a,n.d=function(e,f,a){n.o(e,f)||Object.defineProperty(e,f,{configurable:!1,enumerable:!0,get:a})},n.n=function(e){var f=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(f,"a",f),f},n.o=function(e,f){return Object.prototype.hasOwnProperty.call(e,f)},n.p="/",n.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
......@@ -252,7 +252,8 @@
getTeachers(){
let json1 = {
page: 1,
limit: 100
limit: 100,
status:0
};
getTeacherListApi(json1).then((res)=>{
this.teacherOptions = res.list;
......
......@@ -116,11 +116,11 @@
id: '',
statusOption:[
{
label:'正常',
label:'带班',
value:0
},
{
label:'禁用',
label:'不带班',
value:1
}
],
......
......@@ -21,6 +21,12 @@
<template slot="prepend">CC -</template>
</el-input>
</el-form-item>
<el-form-item label="订单状态">
<el-select multiple v-model="searchFrom.status" style="width: 230px" placeholder="请选择" @change="getList" clearable>
<el-option v-for="item in orderStatusOption" :key="item.id" :label="item.value" :value="item.id">
</el-option>
</el-select>
</el-form-item>
<el-form-item label="绑定状态">
<el-select v-model="searchFrom.user_buy" placeholder="请选择" @change="getList" style="width: 100px" clearable>
<el-option v-for="item in useTypeList" :key="item.user_buy" :label="item.value" :value="item.user_buy">
......@@ -243,6 +249,7 @@ export default {
goods_id: "",
mobile: "",
invite_type:'',
status: [1, 4, 5],
createTime:[],
course_type:'-1',
pullTime:[],
......@@ -368,6 +375,9 @@ export default {
if (this.searchFrom.mobile) {
json.mobile = this.searchFrom.mobile;
}
if (this.searchFrom.status) {
json.status = this.searchFrom.status.join(',');
}
if (this.searchFrom.course_type !== '-1') {
json.course_type = this.searchFrom.course_type;
}
......
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