(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-68259a14"],{"3de3":function(t,e,r){"use strict";r.d(e,"h",function(){return c}),r.d(e,"i",function(){return s}),r.d(e,"j",function(){return d}),r.d(e,"n",function(){return l}),r.d(e,"m",function(){return p}),r.d(e,"p",function(){return m}),r.d(e,"a",function(){return f}),r.d(e,"q",function(){return h}),r.d(e,"r",function(){return b}),r.d(e,"u",function(){return g}),r.d(e,"o",function(){return y}),r.d(e,"s",function(){return O}),r.d(e,"e",function(){return v}),r.d(e,"b",function(){return x}),r.d(e,"l",function(){return w}),r.d(e,"c",function(){return j}),r.d(e,"f",function(){return L}),r.d(e,"t",function(){return E}),r.d(e,"k",function(){return T}),r.d(e,"d",function(){return q}),r.d(e,"g",function(){return $});var n=r("b775"),a=r("829b"),i=r("4328"),u=r.n(i),o="/api-web";function c(t){return Object(n["a"])({url:o+"/order/queryPage",method:"get",params:t})}function s(t){return Object(n["a"])({url:o+"/order/queryPage1",method:"get",params:t})}function d(t){return Object(n["a"])({url:o+"/order/queryPage2",method:"get",params:t})}function l(t){return Object(n["a"])({url:o+"/routeOrder/finance",method:"get",params:t})}function p(t){return Object(n["a"])({url:o+"/routeOrder/add",method:"post",headers:{"Content-Type":"application/json"},data:t})}function m(t){return Object(n["a"])({url:o+"/studentRefunds/queryPage",method:"get",params:t})}function f(t){return Object(n["a"])({url:o+"/vipGroupManage/applyRefundAudit",method:"post",data:u.a.stringify(t)})}function h(t){return Object(n["a"])({url:o+"/studentWithdraw/queryPage",method:"get",params:t})}function b(t){return Object(n["a"])({url:o+"/studentWithdraw/confirm",method:"post",data:u.a.stringify(t)})}function g(t){return Object(n["a"])({url:o+"/order/verifyMusicalList",method:"GET",params:t})}function y(t){return Object(n["a"])({url:o+"/studentRecharge/queryPage",method:"GET",params:t})}function O(t){return Object(n["a"])({url:o+"/tenantPaymentOrder/queryPage",method:"GET",params:t})}function v(t){return Object(n["a"])({url:o+"/order/getOrderStatus",method:"GET",params:t})}function x(t){return Object(n["a"])({url:o+"/financialExpenditure/queryPage",method:"GET",params:t})}function w(t){return Object(n["a"])({url:o+"/financialExpenditure/batchDel",method:"POST",params:t})}function j(t){return Object(n["a"])({url:o+"/operatingReport/queryPage",method:"GET",params:t})}function L(t){return Object(n["a"])({url:o+"/sellOrder/queryPage",method:"GET",params:t})}function E(t){return Object(n["a"])({url:o+"/sellOrder/update",method:"POST",params:t})}function T(t){return Object(a["a"])({url:o+"/sellOrder/refund",method:"POST",params:t,hint:!0})}function q(t){return Object(n["a"])({url:o+"/routeOrder/getOrderInfo",method:"GET",params:t})}function $(t){return Object(n["a"])({url:o+"/routeOrder/delete",method:"POST",data:u.a.stringify(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)])},a=[],i=(r("386d"),r("1cc7")),u=r("3de3"),o=r("bc3a"),c=r.n(o),s=r("4328"),d=r.n(s),l=r("5f87"),p=r("3908"),m={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["zb"])({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["u"])({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(l["a"])()},data:d.a.stringify(r),url:e,responseType:"blob"};this.$confirm("您确定导出订货清单","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){p["a"].startLoading(),c()(n).then(function(e){var r=new Blob([e.data],{type:"application/vnd.ms-excel;charset=utf-8"}),n=new Response(r).text();n.then(function(e){if(-1!=e.indexOf("code")){var n=JSON.parse(e);t.$message.error(n.msg)}else{var a=URL.createObjectURL(r),i=document.createElement("a"),u=new Date,o=u.getFullYear()+""+(u.getMonth()+1)+u.getDate()+u.getHours()+u.getMinutes(),c=t.$route.query.id+"-"+o+"订货清单";i.href=a,i.setAttribute("download",c),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",r={musicGroupId:this.$route.query.id},n={method:"POST",headers:{Authorization:Object(l["a"])()},data:d.a.stringify(r),url:e,responseType:"blob"};this.$confirm("您确定导出分发清单","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){p["a"].startLoading(),c()(n).then(function(e){var r=new Blob([e.data],{type:"application/vnd.ms-excel;charset=utf-8"}),n=new Response(r).text();n.then(function(e){if(-1!=e.indexOf("code")){var n=JSON.parse(e);t.$message.error(n.msg)}else{var a=URL.createObjectURL(r),i=document.createElement("a"),u=new Date,o=u.getFullYear()+""+(u.getMonth()+1)+u.getDate()+u.getHours()+u.getMinutes(),c=t.$route.query.id+"-"+o+"分发清单";i.href=a,i.setAttribute("download",c),document.body.appendChild(i),i.click()}}),p["a"].endLoading()}).catch(function(e){t.$message.error("导出数据失败,请联系管理员"),p["a"].endLoading()})}).catch(function(){})}}},f=m,h=r("2877"),b=Object(h["a"])(f,n,a,!1,null,null,null);e["default"]=b.exports}}]);