1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-c8c7f280"],{"160b":function(t,e,r){"use strict";r.d(e,"b",(function(){return u})),r.d(e,"a",(function(){return o}));var n=r("b775"),a=r("829b"),i="/api-web";function u(t){return Object(a["a"])({url:i+"/musicGroup/queryPage",method:"post",data:t,requestType:"form"})}function o(t){return Object(n["a"])({url:i+"/chargeType/queryPage",method:"get",params:t})}},"3de3":function(t,e,r){"use strict";r.d(e,"l",(function(){return c})),r.d(e,"m",(function(){return s})),r.d(e,"n",(function(){return d})),r.d(e,"r",(function(){return l})),r.d(e,"q",(function(){return p})),r.d(e,"t",(function(){return f})),r.d(e,"a",(function(){return m})),r.d(e,"u",(function(){return h})),r.d(e,"v",(function(){return b})),r.d(e,"z",(function(){return g})),r.d(e,"s",(function(){return O})),r.d(e,"w",(function(){return y})),r.d(e,"g",(function(){return v})),r.d(e,"d",(function(){return j})),r.d(e,"p",(function(){return L})),r.d(e,"e",(function(){return w})),r.d(e,"j",(function(){return x})),r.d(e,"y",(function(){return E})),r.d(e,"o",(function(){return T})),r.d(e,"f",(function(){return q})),r.d(e,"k",(function(){return _})),r.d(e,"i",(function(){return P})),r.d(e,"h",(function(){return $})),r.d(e,"b",(function(){return G})),r.d(e,"x",(function(){return k})),r.d(e,"c",(function(){return D}));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 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: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 O(t){return Object(n["a"])({url:o+"/studentRecharge/queryPage",method:"GET",params:t})}function y(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 L(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 x(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)})}function P(t){return Object(n["a"])({url:o+"/routeOrder/queryPage",method:"get",params:t})}function $(t){return Object(n["a"])({url:o+"/routeOrder/query",method:"get",params:t})}function G(t){return Object(n["a"])({url:o+"/routeOrder/auditOutOrder",method:"post",data:u.a.stringify(t)})}function k(t){return Object(n["a"])({url:o+"/routeOrder/update",method:"post",data:t,headers:{"Content-Type":"application/json"}})}function D(t){return Object(a["a"])({url:o+"/cooperationOrgan/getCalenders",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",{},[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"}}),t._v(" "),r("el-table-column",{attrs:{label:"商品名称",align:"center",prop:"name"}}),t._v(" "),r("el-table-column",{attrs:{label:"商品类型",align:"center",prop:"type"},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"}}),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(" "),"PREPARE"!=t.team_status||t.hasVerifyMusicalList?t._e():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("1cc7"),u=r("160b"),o=r("3de3"),c=r("bc3a"),s=r.n(c),d=r("4328"),l=r.n(d),p=r("5f87"),f=r("3908"),m={data:function(){return{teamid:"",tableList:[],Fsearch:null,Frules:null,team_status:"",hasVerifyMusicalList:!0}},mounted:function(){this.init()},activated:function(){this.init()},methods:{init:function(){var t=this;this.team_status=this.$route.query.team_status,this.teamid=this.$route.query.id,this.teamid&&(Object(u["b"])({musicGroupId:this.teamid}).then((function(e){var r,n;200==e.code&&(t.hasVerifyMusicalList=null===e||void 0===e||null===(r=e.data)||void 0===r||null===(n=r.rows[0])||void 0===n?void 0:n.hasVerifyMusicalList)})),Object(i["Nb"])({musicGroupId:this.teamid}).then((function(e){200==e.code&&(t.tableList=e.data?e.data:[])})))},onCancel:function(){this.$store.dispatch("delVisitedViews",this.$route),this.$router.push({path:"/teamList"})},okDetailList:function(){var t=this;this.$confirm("是否确认发放清单?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(o["z"])({musicGroupId:t.teamid}).then((function(e){200==e.code&&(t.$store.dispatch("delVisitedViews",t.$route),t.$router.push({path:"/teamList",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(p["a"])()},data:l.a.stringify(r),url:e,responseType:"blob"};this.$confirm("您确定导出订货清单","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){f["a"].startLoading(),s()(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+"订货清单.xls";i.href=a,i.setAttribute("download",c),document.body.appendChild(i),i.click()}})),f["a"].endLoading()})).catch((function(e){t.$message.error("导出数据失败,请联系管理员"),f["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(p["a"])()},data:l.a.stringify(r),url:e,responseType:"blob"};this.$confirm("您确定导出分发清单","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){f["a"].startLoading(),s()(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+"分发清单.xls";i.href=a,i.setAttribute("download",c),document.body.appendChild(i),i.click()}})),f["a"].endLoading()})).catch((function(e){t.$message.error("导出数据失败,请联系管理员"),f["a"].endLoading()}))})).catch((function(){}))}}},h=m,b=r("2877"),g=Object(b["a"])(h,n,a,!1,null,null,null);e["default"]=g.exports}}]);
|