(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-346f21a1"],{3230:function(t,n,e){},7767:function(t,n,e){"use strict";e.r(n);var i=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("a-card",{attrs:{bordered:!1}},[e("div",{staticClass:"card-title"},[t._v(t._s(t.$route.meta.title))]),e("a-table",{ref:"table",staticClass:"tableBox",attrs:{rowKey:function(t,n){return n},loading:t.isLoading,columns:t.columns,dataSource:t.goodsData,pagination:!1,bordered:""},scopedSlots:t._u([{key:"goods_price",fn:function(n){return e("span",{},[e("p",[t._v("¥"+t._s(n))])])}},{key:"ms_price",fn:function(n){return e("span",{},[e("p",[t._v("¥"+t._s(n))])])}},{key:"stock_num",fn:function(n,i){return e("span",{},[e("p",[t._v(t._s(i.limit_stock))])])}},{key:"stock_num_last",fn:function(n,i){return e("span",{},[e("p",[t._v(t._s(i.stock_num))])])}}])})],1)},d=[],a=(e("d3b7"),e("cad3")),o=e("2af9"),s=[{title:"活动ID",width:"60px",dataIndex:"ms_activity_id"},{title:"商品名称",width:"300px",ellipsis:!0,dataIndex:"goods_name"},{title:"活动商品库存(件)",width:"120px",scopedSlots:{customRender:"stock_num"}},{title:"活动商品剩余库存(件)",width:"180px",scopedSlots:{customRender:"stock_num_last"}},{title:"活动商品销量(件)",width:"120px",dataIndex:"sale_num"},{title:"商品售价(元)",width:"120px",dataIndex:"goods_price",scopedSlots:{customRender:"goods_price"}},{title:"秒杀价(元)",width:"120px",dataIndex:"ms_price",scopedSlots:{customRender:"ms_price"}},{title:"活动总销售金额(元)",width:"120px",dataIndex:"ms_sale_sum_price"}],c={components:{STable:o["c"]},data:function(){return{isLoading:!1,columns:s,goodsData:[],id:0}},created:function(){this.id=this.$route.query.id,this.getDetail()},methods:{getDetail:function(){var t=this;this.isLoading=!0,a["c"]({id:this.id}).then((function(n){t.detail=n.data.data;var e=n.data.data.goods;e&&(t.goodsData=e)})).finally((function(){t.isLoading=!1}))}}},r=c,u=(e("8d70"),e("2877")),l=Object(u["a"])(r,i,d,!1,null,"89f02c10",null);n["default"]=l.exports},"8d70":function(t,n,e){"use strict";e("3230")},cad3:function(t,n,e){"use strict";e.d(n,"f",(function(){return a})),e.d(n,"a",(function(){return o})),e.d(n,"e",(function(){return s})),e.d(n,"c",(function(){return c})),e.d(n,"b",(function(){return r})),e.d(n,"d",(function(){return u}));var i=e("b775"),d={list:"/MsActivity/list",add:"/MsActivity/add",edit:"/MsActivity/edit",detail:"/MsActivity/activityinfo",audit:"/MsActivity/audit",down:"/MsActivity/down"};function a(t){return Object(i["b"])({url:d.list,method:"get",params:t})}function o(t){return Object(i["b"])({url:d.add,method:"post",data:t})}function s(t){return Object(i["b"])({url:d.edit,method:"post",data:t})}function c(t){return Object(i["b"])({url:d.detail,method:"get",params:t})}function r(t){return Object(i["b"])({url:d.audit,method:"post",data:t})}function u(t){return Object(i["b"])({url:d.down,method:"post",data:t})}}}]);