1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-68259a14"],{"3de3":function(t,e,r){"use strict";r.d(e,"k",(function(){return c})),r.d(e,"l",(function(){return s})),r.d(e,"m",(function(){return d})),r.d(e,"q",(function(){return l})),r.d(e,"p",(function(){return p})),r.d(e,"s",(function(){return f})),r.d(e,"a",(function(){return m})),r.d(e,"t",(function(){return h})),r.d(e,"u",(function(){return b})),r.d(e,"y",(function(){return g})),r.d(e,"r",(function(){return y})),r.d(e,"v",(function(){return O})),r.d(e,"f",(function(){return v})),r.d(e,"c",(function(){return j})),r.d(e,"o",(function(){return x})),r.d(e,"d",(function(){return w})),r.d(e,"i",(function(){return L})),r.d(e,"x",(function(){return E})),r.d(e,"n",(function(){return T})),r.d(e,"e",(function(){return q})),r.d(e,"j",(function(){return $})),r.d(e,"h",(function(){return _})),r.d(e,"g",(function(){return P})),r.d(e,"b",(function(){return k})),r.d(e,"w",(function(){return D}));var n=r("b775"),a=r("829b"),u=r("4328"),i=r.n(u),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 f(t){return Object(n["a"])({url:o+"/studentRefunds/queryPage",method:"get",params:t})}function m(t){return Object(n["a"])({url:o+"/vipGroupManage/applyRefundAudit",method:"post",data:i.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:i.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 j(t){return Object(n["a"])({url:o+"/financialExpenditure/queryPage",method:"GET",params:t})}function x(t){return Object(n["a"])({url:o+"/financialExpenditure/batchDel",method:"POST",params:t})}function w(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:i.a.stringify(t)})}function _(t){return Object(n["a"])({url:o+"/routeOrder/queryPage",method:"get",params:t})}function P(t){return Object(n["a"])({url:o+"/routeOrder/query",method:"get",params:t})}function k(t){return Object(n["a"])({url:o+"/routeOrder/auditOutOrder",method:"post",data:i.a.stringify(t)})}function D(t){return Object(n["a"])({url:o+"/routeOrder/update",method:"post",data:t,headers:{"Content-Type":"application/json"}})}},"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=[],u=(r("386d"),r("1cc7")),i=r("3de3"),o=r("bc3a"),c=r.n(o),s=r("4328"),d=r.n(s),l=r("5f87"),p=r("3908"),f={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(u["Eb"])({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(i["y"])({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),u=document.createElement("a"),i=new Date,o=i.getFullYear()+""+(i.getMonth()+1)+i.getDate()+i.getHours()+i.getMinutes(),c=t.$route.query.id+"-"+o+"订货清单";u.href=a,u.setAttribute("download",c),document.body.appendChild(u),u.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),u=document.createElement("a"),i=new Date,o=i.getFullYear()+""+(i.getMonth()+1)+i.getDate()+i.getHours()+i.getMinutes(),c=t.$route.query.id+"-"+o+"分发清单";u.href=a,u.setAttribute("download",c),document.body.appendChild(u),u.click()}})),p["a"].endLoading()})).catch((function(e){t.$message.error("导出数据失败,请联系管理员"),p["a"].endLoading()}))})).catch((function(){}))}}},m=f,h=r("2877"),b=Object(h["a"])(m,n,a,!1,null,null,null);e["default"]=b.exports}}]);
|