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,"d",(function(){return s})),r.d(e,"a",(function(){return c})),r.d(e,"e",(function(){return l})),r.d(e,"f",(function(){return d})),r.d(e,"g",(function(){return p})),r.d(e,"c",(function(){return h}));var a=r("b775"),n=r("4328"),i=r.n(n),u="/api-web";function o(t){return Object(a["a"])({url:u+"/order/queryPage",method:"get",params:t})}function s(t){return Object(a["a"])({url:u+"/studentRefunds/queryPage",method:"get",params:t})}function c(t){return Object(a["a"])({url:u+"/vipGroupManage/applyRefundAudit",method:"post",data:i.a.stringify(t)})}function l(t){return Object(a["a"])({url:u+"/studentWithdraw/queryPage",method:"get",params:t})}function d(t){return Object(a["a"])({url:u+"/studentWithdraw/confirm",method:"post",data:i.a.stringify(t)})}function p(t){return Object(a["a"])({url:u+"/order/verifyMusicalList",method:"GET",params:t})}function h(t){return Object(a["a"])({url:u+"/studentRecharge/queryPage",method:"GET",params:t})}},"670a":function(t,e,r){"use strict";r.r(e);var a=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"}},[r("el-button",{attrs:{type:"primary"},on:{click:t.musicalListExport}},[t._v("发放清单")]),t._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:t.musicalListDetailExport}},[t._v("分发清单")]),t._v(" "),r("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"order/verifyMusicalList",expression:"'order/verifyMusicalList'"}],attrs:{type:"warning"},on:{click:t.okDetailList}},[t._v("确认")])],1)])},n=[],i=(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(){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["S"])({musicGroupId:this.teamid}).then((function(e){200==e.code&&(t.tableList=e.data)}))},methods:{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["g"])({musicGroupId:t.teamid}).then((function(e){200==e.code&&t.$router.push({path:"/business/teamDetail"})}))})).catch((function(){}))},musicalListExport:function(){var t="/api-web/order/musicalListExport",e={musicGroupId:this.$route.query.id},r={method:"POST",headers:{Authorization:Object(d["a"])()},data:l.a.stringify(e),url:t,responseType:"blob"};s()(r).then((function(t){var e=new Blob([t.data],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8"}),r=URL.createObjectURL(e),a=document.createElement("a"),n="发放清单";a.href=r,a.setAttribute("download",n),document.body.appendChild(a),a.click()}))},musicalListDetailExport:function(){var t="/api-web/order/musicalListDetailExport",e={musicGroupId:this.$route.query.id},r={method:"POST",headers:{Authorization:Object(d["a"])()},data:l.a.stringify(e),url:t,responseType:"blob"};s()(r).then((function(t){var e=new Blob([t.data],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8"}),r=URL.createObjectURL(e),a=document.createElement("a"),n="分发清单";a.href=r,a.setAttribute("download",n),document.body.appendChild(a),a.click()}))}}},h=p,m=r("2877"),f=Object(m["a"])(h,a,n,!1,null,null,null);e["default"]=f.exports}}]);
|