1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-68259a14"],{"3de3":function(e,t,r){"use strict";var n=r("b775"),a=r("d225"),i=r("b0b4"),o=(r("ac4d"),r("8a81"),r("5c96")),u=r.n(o),s=r("bc3a"),c=r.n(s),d=r("4360"),l=r("5f87"),f=r("e3eb"),m=r.n(f),p=r("3908"),h=r("a18c"),g=r("2b0e"),b=Symbol("showMessage"),v=function(){function e(){Object(a["a"])(this,e)}return Object(i["a"])(e,[{key:"success",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this[b]("success",e,t)}},{key:"warning",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this[b]("warning",e,t)}},{key:"info",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this[b]("info",e,t)}},{key:"error",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this[b]("error",e,t)}},{key:b,value:function(e,t,r){r?0===document.getElementsByClassName("el-message").length&&o["Message"][e](t):o["Message"][e](t)}}]),e}();g["default"].use(u.a),g["default"].prototype.$message=new v;var y=new g["default"],O=0;function w(){0===O&&p["a"].startLoading(),O++}function j(){O<=0||(O--,0===O&&p["a"].endLoading())}var x=c.a.create({baseURL:"",timeout:18e4});x.interceptors.request.use((function(e){return w(),d["a"].getters.token&&(e.headers["Authorization"]=Object(l["a"])()),e.params=m()(e.params),e}),(function(e){return j(),Promise.reject(e)})),x.interceptors.response.use((function(e){if(e.data){var t=JSON.parse(JSON.stringify(e.data));if(401==t.code||403==t.code)return y.$message.error("登录过期,请重新登录!"),void setTimeout((function(){j(),d["a"].dispatch("user/resetToken").then((function(){location.reload()}))}),1e3);if(404==t.code&&h["c"].push("/404"),200!=t.code){var r=t.msg||"请求失败code码为".concat(t.code);return!0!==e.config.hint&&y.$message.error(r),j(),Promise.reject(t)}return j(),t}return j(),Promise.reject()}),(function(e){return"Network Error"==e.message?y.$message.error("网络异常,请检查网络连接"):y.$message.error(e.message),j(),Promise.reject(e)}));var L=x,E=r("4328"),T=r.n(E);r.d(t,"h",(function(){return k})),r.d(t,"i",(function(){return q})),r.d(t,"j",(function(){return P})),r.d(t,"n",(function(){return _})),r.d(t,"m",(function(){return D})),r.d(t,"p",(function(){return S})),r.d(t,"a",(function(){return G})),r.d(t,"q",(function(){return C})),r.d(t,"r",(function(){return F})),r.d(t,"u",(function(){return M})),r.d(t,"o",(function(){return R})),r.d(t,"s",(function(){return B})),r.d(t,"e",(function(){return N})),r.d(t,"b",(function(){return A})),r.d(t,"l",(function(){return J})),r.d(t,"c",(function(){return I})),r.d(t,"f",(function(){return U})),r.d(t,"t",(function(){return z})),r.d(t,"k",(function(){return W})),r.d(t,"d",(function(){return H})),r.d(t,"g",(function(){return Y}));var $="/api-web";function k(e){return Object(n["a"])({url:$+"/order/queryPage",method:"get",params:e})}function q(e){return Object(n["a"])({url:$+"/order/queryPage1",method:"get",params:e})}function P(e){return Object(n["a"])({url:$+"/order/queryPage2",method:"get",params:e})}function _(e){return Object(n["a"])({url:$+"/routeOrder/finance",method:"get",params:e})}function D(e){return Object(n["a"])({url:$+"/routeOrder/add",method:"post",headers:{"Content-Type":"application/json"},data:e})}function S(e){return Object(n["a"])({url:$+"/studentRefunds/queryPage",method:"get",params:e})}function G(e){return Object(n["a"])({url:$+"/vipGroupManage/applyRefundAudit",method:"post",data:T.a.stringify(e)})}function C(e){return Object(n["a"])({url:$+"/studentWithdraw/queryPage",method:"get",params:e})}function F(e){return Object(n["a"])({url:$+"/studentWithdraw/confirm",method:"post",data:T.a.stringify(e)})}function M(e){return Object(n["a"])({url:$+"/order/verifyMusicalList",method:"GET",params:e})}function R(e){return Object(n["a"])({url:$+"/studentRecharge/queryPage",method:"GET",params:e})}function B(e){return Object(n["a"])({url:$+"/tenantPaymentOrder/queryPage",method:"GET",params:e})}function N(e){return Object(n["a"])({url:$+"/order/getOrderStatus",method:"GET",params:e})}function A(e){return Object(n["a"])({url:$+"/financialExpenditure/queryPage",method:"GET",params:e})}function J(e){return Object(n["a"])({url:$+"/financialExpenditure/batchDel",method:"POST",params:e})}function I(e){return Object(n["a"])({url:$+"/operatingReport/queryPage",method:"GET",params:e})}function U(e){return Object(n["a"])({url:$+"/sellOrder/queryPage",method:"GET",params:e})}function z(e){return Object(n["a"])({url:$+"/sellOrder/update",method:"POST",params:e})}function W(e){return L({url:$+"/sellOrder/refund",method:"POST",params:e,hint:!0})}function H(e){return Object(n["a"])({url:$+"/routeOrder/getOrderInfo",method:"GET",params:e})}function Y(e){return Object(n["a"])({url:$+"/routeOrder/delete",method:"POST",data:T.a.stringify(e)})}},"670a":function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"m-container"},[r("h2",[r("el-page-header",{attrs:{content:"发放清单"},on:{back:e.onCancel}})],1),e._v(" "),r("div",{staticClass:"m-core"},[r("div",{staticClass:"tableWrap"},[r("el-table",{attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.tableList}},[r("el-table-column",{attrs:{label:"商品编号",prop:"sn",align:"center",width:"160px"}}),e._v(" "),r("el-table-column",{attrs:{label:"商品名称",align:"center",prop:"name",width:"160px"}}),e._v(" "),r("el-table-column",{attrs:{label:"商品类型",align:"center",prop:"type",width:"160px"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[e._v("\n "+e._s(e._f("shopType")(t.row.type))+"\n ")])]}}])}),e._v(" "),r("el-table-column",{attrs:{label:"具体型号",align:"center",prop:"specification",width:"160px"}}),e._v(" "),r("el-table-column",{attrs:{label:"数量统计",align:"center",prop:"sellCount"}})],1)],1)]),e._v(" "),r("div",{staticClass:"btnWrap",staticStyle:{"margin-top":"20px"}},[e.tableList.length>0?r("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"order/musicalListExport",expression:"'order/musicalListExport'"}],attrs:{type:"primary"},on:{click:e.musicalListExport}},[e._v("订货清单导出")]):e._e(),e._v(" "),e.tableList.length>0?r("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"order/musicalListDetailExport",expression:"'order/musicalListDetailExport'"}],attrs:{type:"primary"},on:{click:e.musicalListDetailExport}},[e._v("分发清单导出")]):e._e(),e._v(" "),r("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"order/verifyMusicalList",expression:"'order/verifyMusicalList'"}],attrs:{type:"warning okBtn"},on:{click:e.okDetailList}},[e._v("确认")])],1)])},a=[],i=(r("386d"),r("1cc7")),o=r("3de3"),u=r("bc3a"),s=r.n(u),c=r("4328"),d=r.n(c),l=r("5f87"),f=r("3908"),m={data:function(){return{teamid:"",tableList:[],Fsearch:null,Frules:null}},mounted:function(){this.init()},activated:function(){this.init()},methods:{init:function(){var e=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(t){200==t.code&&(e.tableList=t.data?t.data:[])}))},onCancel:function(){this.$router.push({path:"/business/teamDetail",query:{search:this.Fsearch,rules:this.Frules}})},okDetailList:function(){var e=this;this.$confirm("是否确认发放清单?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(o["u"])({musicGroupId:e.teamid}).then((function(t){200==t.code&&e.$router.push({path:"/business/teamDetail",query:{search:e.Fsearch,rules:e.Frules}})}))})).catch((function(){}))},musicalListExport:function(){var e=this,t="/api-web/order/musicalListExport",r={musicGroupId:this.$route.query.id},n={method:"POST",headers:{Authorization:Object(l["a"])()},data:d.a.stringify(r),url:t,responseType:"blob"};this.$confirm("您确定导出订货清单","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){f["a"].startLoading(),s()(n).then((function(t){var r=new Blob([t.data],{type:"application/vnd.ms-excel;charset=utf-8"}),n=new Response(r).text();n.then((function(t){if(-1!=t.indexOf("code")){var n=JSON.parse(t);e.$message.error(n.msg)}else{var a=URL.createObjectURL(r),i=document.createElement("a"),o=new Date,u=o.getFullYear()+""+(o.getMonth()+1)+o.getDate()+o.getHours()+o.getMinutes(),s=e.$route.query.id+"-"+u+"订货清单";i.href=a,i.setAttribute("download",s),document.body.appendChild(i),i.click()}})),f["a"].endLoading()})).catch((function(t){e.$message.error("导出数据失败,请联系管理员"),f["a"].endLoading()}))})).catch((function(){}))},musicalListDetailExport:function(){var e=this,t="/api-web/order/musicalListDetailExport",r={musicGroupId:this.$route.query.id},n={method:"POST",headers:{Authorization:Object(l["a"])()},data:d.a.stringify(r),url:t,responseType:"blob"};this.$confirm("您确定导出分发清单","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){f["a"].startLoading(),s()(n).then((function(t){var r=new Blob([t.data],{type:"application/vnd.ms-excel;charset=utf-8"}),n=new Response(r).text();n.then((function(t){if(-1!=t.indexOf("code")){var n=JSON.parse(t);e.$message.error(n.msg)}else{var a=URL.createObjectURL(r),i=document.createElement("a"),o=new Date,u=o.getFullYear()+""+(o.getMonth()+1)+o.getDate()+o.getHours()+o.getMinutes(),s=e.$route.query.id+"-"+u+"分发清单";i.href=a,i.setAttribute("download",s),document.body.appendChild(i),i.click()}})),f["a"].endLoading()})).catch((function(t){e.$message.error("导出数据失败,请联系管理员"),f["a"].endLoading()}))})).catch((function(){}))}}},p=m,h=r("2877"),g=Object(h["a"])(p,n,a,!1,null,null,null);t["default"]=g.exports}}]);
|