(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-68259a14"],{"3de3":function(t,e,n){"use strict";n.d(e,"c",(function(){return u})),n.d(e,"d",(function(){return s})),n.d(e,"e",(function(){return c})),n.d(e,"b",(function(){return l})),n.d(e,"g",(function(){return d})),n.d(e,"a",(function(){return p})),n.d(e,"h",(function(){return h})),n.d(e,"i",(function(){return m})),n.d(e,"k",(function(){return f})),n.d(e,"f",(function(){return b})),n.d(e,"j",(function(){return g}));var r=n("b775"),a=n("4328"),i=n.n(a),o="/api-web";function u(t){return Object(r["a"])({url:o+"/order/queryPage",method:"get",params:t})}function s(t){return Object(r["a"])({url:o+"/order/queryPage1",method:"get",params:t})}function c(t){return Object(r["a"])({url:o+"/order/queryPage2",method:"get",params:t})}function l(t){return Object(r["a"])({url:o+"/order/finance",method:"get",params:t})}function d(t){return Object(r["a"])({url:o+"/studentRefunds/queryPage",method:"get",params:t})}function p(t){return Object(r["a"])({url:o+"/vipGroupManage/applyRefundAudit",method:"post",data:i.a.stringify(t)})}function h(t){return Object(r["a"])({url:o+"/studentWithdraw/queryPage",method:"get",params:t})}function m(t){return Object(r["a"])({url:o+"/studentWithdraw/confirm",method:"post",data:i.a.stringify(t)})}function f(t){return Object(r["a"])({url:o+"/order/verifyMusicalList",method:"GET",params:t})}function b(t){return Object(r["a"])({url:o+"/studentRecharge/queryPage",method:"GET",params:t})}function g(t){return Object(r["a"])({url:o+"/tenantPaymentOrder/queryPage",method:"GET",params:t})}},"670a":function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"m-container"},[n("h2",[n("el-page-header",{attrs:{content:"发放清单"},on:{back:t.onCancel}})],1),t._v(" "),n("div",{staticClass:"m-core"},[n("div",{staticClass:"tableWrap"},[n("el-table",{attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:t.tableList}},[n("el-table-column",{attrs:{label:"商品编号",prop:"sn",align:"center",width:"160px"}}),t._v(" "),n("el-table-column",{attrs:{label:"商品名称",align:"center",prop:"name",width:"160px"}}),t._v(" "),n("el-table-column",{attrs:{label:"商品类型",align:"center",prop:"type",width:"160px"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",[t._v("\n "+t._s(t._f("shopType")(e.row.type))+"\n ")])]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"具体型号",align:"center",prop:"specification",width:"160px"}}),t._v(" "),n("el-table-column",{attrs:{label:"数量统计",align:"center",prop:"sellCount"}})],1)],1)]),t._v(" "),n("div",{staticClass:"btnWrap",staticStyle:{"margin-top":"20px"}},[t.tableList.length>0?n("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?n("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(" "),n("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)])},a=[],i=(n("386d"),n("1cc7")),o=n("3de3"),u=n("bc3a"),s=n.n(u),c=n("4328"),l=n.n(c),d=n("5f87"),p=n("3908"),h={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(i["jb"])({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(o["k"])({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",n={musicGroupId:this.$route.query.id},r={method:"POST",headers:{Authorization:Object(d["a"])()},data:l.a.stringify(n),url:e,responseType:"blob"};this.$confirm("您确定导出发放清单","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){p["a"].startLoading(),s()(r).then((function(e){var n=new Blob([e.data],{type:"application/vnd.ms-excel;charset=utf-8"}),r=new Response(n).text();r.then((function(e){if(-1!=e.indexOf("code")){var r=JSON.parse(e);t.$message.error(r.msg)}else{var a=URL.createObjectURL(n),i=document.createElement("a"),o=new Date,u=o.getFullYear()+""+(o.getMonth()+1)+o.getDate()+o.getHours()+o.getMinutes(),s=t.$route.query.id+"-"+u+"发放清单";i.href=a,i.setAttribute("download",s),document.body.appendChild(i),i.click()}})),p["a"].endLoading()})).catch((function(e){t.$message.error("导出数据失败,请连接管理员"),p["a"].endLoading()}))})).catch((function(){}))},musicalListDetailExport:function(){var t=this,e="/api-web/order/musicalListDetailExport",n={musicGroupId:this.$route.query.id},r={method:"POST",headers:{Authorization:Object(d["a"])()},data:l.a.stringify(n),url:e,responseType:"blob"};this.$confirm("您确定导出分发清单","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){p["a"].startLoading(),s()(r).then((function(e){var n=new Blob([e.data],{type:"application/vnd.ms-excel;charset=utf-8"}),r=new Response(n).text();r.then((function(e){if(-1!=e.indexOf("code")){var r=JSON.parse(e);t.$message.error(r.msg)}else{var a=URL.createObjectURL(n),i=document.createElement("a"),o=new Date,u=o.getFullYear()+""+(o.getMonth()+1)+o.getDate()+o.getHours()+o.getMinutes(),s=t.$route.query.id+"-"+u+"分发清单";i.href=a,i.setAttribute("download",s),document.body.appendChild(i),i.click()}})),p["a"].endLoading()})).catch((function(e){t.$message.error("导出数据失败,请连接管理员"),p["a"].endLoading()}))})).catch((function(){}))}}},m=h,f=n("2877"),b=Object(f["a"])(m,r,a,!1,null,null,null);e["default"]=b.exports}}]);