chunk-68259a14.8d400230.js 5.7 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-68259a14"],{"3de3":function(t,e,r){"use strict";r.d(e,"b",(function(){return o})),r.d(e,"c",(function(){return s})),r.d(e,"d",(function(){return c})),r.d(e,"f",(function(){return l})),r.d(e,"a",(function(){return d})),r.d(e,"g",(function(){return p})),r.d(e,"h",(function(){return h})),r.d(e,"i",(function(){return m})),r.d(e,"e",(function(){return f}));var n=r("b775"),i=r("4328"),a=r.n(i),u="/api-web";function o(t){return Object(n["a"])({url:u+"/order/queryPage",method:"get",params:t})}function s(t){return Object(n["a"])({url:u+"/order/queryPage1",method:"get",params:t})}function c(t){return Object(n["a"])({url:u+"/order/queryPage2",method:"get",params:t})}function l(t){return Object(n["a"])({url:u+"/studentRefunds/queryPage",method:"get",params:t})}function d(t){return Object(n["a"])({url:u+"/vipGroupManage/applyRefundAudit",method:"post",data:a.a.stringify(t)})}function p(t){return Object(n["a"])({url:u+"/studentWithdraw/queryPage",method:"get",params:t})}function h(t){return Object(n["a"])({url:u+"/studentWithdraw/confirm",method:"post",data:a.a.stringify(t)})}function m(t){return Object(n["a"])({url:u+"/order/verifyMusicalList",method:"GET",params:t})}function f(t){return Object(n["a"])({url:u+"/studentRecharge/queryPage",method:"GET",params:t})}},"670a":function(t,e,r){"use strict";r.r(e);var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"m-container"},[r("h2",[r("el-page-header",{attrs:{content:"发放清单"},on:{back:t.onCancel}})],1),t._v(" "),r("div",{staticClass:"m-core"},[r("div",{staticClass:"tableWrap"},[r("el-table",{attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:t.tableList}},[r("el-table-column",{attrs:{label:"商品编号",prop:"sn",align:"center",width:"160px"}}),t._v(" "),r("el-table-column",{attrs:{label:"商品名称",align:"center",prop:"name",width:"160px"}}),t._v(" "),r("el-table-column",{attrs:{label:"商品类型",align:"center",prop:"type",width:"160px"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("div",[t._v("\n "+t._s(t._f("shopType")(e.row.type))+"\n ")])]}}])}),t._v(" "),r("el-table-column",{attrs:{label:"具体型号",align:"center",prop:"specification",width:"160px"}}),t._v(" "),r("el-table-column",{attrs:{label:"数量统计",align:"center",prop:"sellCount"}})],1)],1)]),t._v(" "),r("div",{staticClass:"btnWrap",staticStyle:{"margin-top":"20px"}},[t.tableList.length>0?r("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"order/musicalListExport",expression:"'order/musicalListExport'"}],attrs:{type:"primary"},on:{click:t.musicalListExport}},[t._v("发放清单导出")]):t._e(),t._v(" "),t.tableList.length>0?r("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"order/musicalListDetailExport",expression:"'order/musicalListDetailExport'"}],attrs:{type:"primary"},on:{click:t.musicalListDetailExport}},[t._v("分发清单导出")]):t._e(),t._v(" "),r("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"order/verifyMusicalList",expression:"'order/verifyMusicalList'"}],attrs:{type:"warning okBtn"},on:{click:t.okDetailList}},[t._v("确认")])],1)])},i=[],a=(r("386d"),r("1cc7")),u=r("3de3"),o=r("bc3a"),s=r.n(o),c=r("4328"),l=r.n(c),d=r("5f87"),p={data:function(){return{teamid:"",tableList:[],Fsearch:null,Frules:null}},mounted:function(){this.init()},activated:function(){this.init()},methods:{init:function(){var t=this;this.$route.query.search&&(this.Fsearch=this.$route.query.search),this.$route.query.rules&&(this.Frules=this.$route.query.rules),this.teamid=this.$route.query.id,Object(a["bb"])({musicGroupId:this.teamid}).then((function(e){200==e.code&&(t.tableList=e.data?e.data:[])}))},onCancel:function(){this.$router.push({path:"/business/teamDetail",query:{search:this.Fsearch,rules:this.Frules}})},okDetailList:function(){var t=this;this.$confirm("是否确认发放清单?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(u["i"])({musicGroupId:t.teamid}).then((function(e){200==e.code&&t.$router.push({path:"/business/teamDetail",query:{search:t.Fsearch,rules:t.Frules}})}))})).catch((function(){}))},musicalListExport:function(){var t=this,e="/api-web/order/musicalListExport",r={musicGroupId:this.$route.query.id},n={method:"POST",headers:{Authorization:Object(d["a"])()},data:l.a.stringify(r),url:e,responseType:"blob"};this.$confirm("您确定导出发放清单","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){s()(n).then((function(e){var r=new Blob([e.data],{type:"application/vnd.ms-excel;charset=utf-8"}),n=URL.createObjectURL(r),i=document.createElement("a"),a=new Date,u=a.getFullYear()+""+(a.getMonth()+1)+a.getDate()+a.getHours()+a.getMinutes(),o=t.$route.query.id+"-"+u+"发放清单";i.href=n,i.setAttribute("download",o),document.body.appendChild(i),i.click()}))})).catch((function(){}))},musicalListDetailExport:function(){var t=this,e="/api-web/order/musicalListDetailExport",r={musicGroupId:this.$route.query.id},n={method:"POST",headers:{Authorization:Object(d["a"])()},data:l.a.stringify(r),url:e,responseType:"blob"};this.$confirm("您确定导出分发清单","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){s()(n).then((function(e){var r=new Blob([e.data],{type:"application/vnd.ms-excel;charset=utf-8"}),n=URL.createObjectURL(r),i=document.createElement("a"),a=new Date,u=a.getFullYear()+""+(a.getMonth()+1)+a.getDate()+a.getHours()+a.getMinutes(),o=t.$route.query.id+"-"+u+"分发清单";i.href=n,i.setAttribute("download",o),document.body.appendChild(i),i.click()}))})).catch((function(){}))}}},h=p,m=r("2877"),f=Object(m["a"])(h,n,i,!1,null,null,null);e["default"]=f.exports}}]);