(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2c57426f"],{"2cae":function(t,e,n){},"2f21":function(t,e,n){"use strict";var o=n("79e5");t.exports=function(t,e){return!!t&&o((function(){e?t.call(null,(function(){}),1):t.call(null)}))}},"55dd":function(t,e,n){"use strict";var o=n("5ca1"),a=n("d8e8"),r=n("4bf8"),s=n("79e5"),i=[].sort,c=[1,2,3];o(o.P+o.F*(s((function(){c.sort(void 0)}))||!s((function(){c.sort(null)}))||!n("2f21")(i)),"Array",{sort:function(t){return void 0===t?i.call(r(this)):i.call(r(this),a(t))}})},"79c6":function(t,e,n){"use strict";n("df42")},"816e":function(t,e,n){"use strict";n("2cae")},b7be:function(t,e,n){"use strict";n.d(e,"gb",(function(){return a})),n.d(e,"fb",(function(){return r})),n.d(e,"bb",(function(){return s})),n.d(e,"ab",(function(){return i})),n.d(e,"Z",(function(){return c})),n.d(e,"cb",(function(){return u})),n.d(e,"db",(function(){return l})),n.d(e,"eb",(function(){return d})),n.d(e,"N",(function(){return f})),n.d(e,"I",(function(){return p})),n.d(e,"J",(function(){return g})),n.d(e,"L",(function(){return m})),n.d(e,"K",(function(){return b})),n.d(e,"W",(function(){return v})),n.d(e,"H",(function(){return _})),n.d(e,"o",(function(){return h})),n.d(e,"u",(function(){return w})),n.d(e,"m",(function(){return y})),n.d(e,"l",(function(){return k})),n.d(e,"n",(function(){return F})),n.d(e,"X",(function(){return C})),n.d(e,"Y",(function(){return D})),n.d(e,"pb",(function(){return x})),n.d(e,"r",(function(){return $})),n.d(e,"q",(function(){return S})),n.d(e,"v",(function(){return L})),n.d(e,"a",(function(){return z})),n.d(e,"ob",(function(){return P})),n.d(e,"lb",(function(){return E})),n.d(e,"nb",(function(){return O})),n.d(e,"kb",(function(){return j})),n.d(e,"mb",(function(){return V})),n.d(e,"hb",(function(){return I})),n.d(e,"qb",(function(){return q})),n.d(e,"p",(function(){return B})),n.d(e,"t",(function(){return W})),n.d(e,"s",(function(){return R})),n.d(e,"F",(function(){return J})),n.d(e,"x",(function(){return N})),n.d(e,"A",(function(){return A})),n.d(e,"B",(function(){return K})),n.d(e,"z",(function(){return G})),n.d(e,"C",(function(){return H})),n.d(e,"G",(function(){return M})),n.d(e,"E",(function(){return Q})),n.d(e,"D",(function(){return T})),n.d(e,"w",(function(){return U})),n.d(e,"y",(function(){return X})),n.d(e,"M",(function(){return Y})),n.d(e,"V",(function(){return Z})),n.d(e,"U",(function(){return tt})),n.d(e,"jb",(function(){return et})),n.d(e,"T",(function(){return nt})),n.d(e,"rb",(function(){return ot})),n.d(e,"S",(function(){return at})),n.d(e,"Q",(function(){return rt})),n.d(e,"R",(function(){return st})),n.d(e,"ib",(function(){return it})),n.d(e,"O",(function(){return ct})),n.d(e,"f",(function(){return ut})),n.d(e,"e",(function(){return lt})),n.d(e,"d",(function(){return dt})),n.d(e,"c",(function(){return ft})),n.d(e,"b",(function(){return pt})),n.d(e,"P",(function(){return gt})),n.d(e,"k",(function(){return mt})),n.d(e,"i",(function(){return bt})),n.d(e,"h",(function(){return vt})),n.d(e,"j",(function(){return _t})),n.d(e,"g",(function(){return ht}));var o=n("0c6d");function a(t){return o["a"].get("/store/coupon/platformLst",t)}function r(t){return o["a"].get("/store/coupon/update/".concat(t,"/form"))}function s(t){return o["a"].get("/store/coupon/show/".concat(t))}function i(t){return o["a"].delete("store/coupon/delete/".concat(t))}function c(t){return o["a"].get("/store/coupon/sys/clone/".concat(t,"/form"))}function u(t){return o["a"].get("store/coupon/sys/issue",t)}function l(t,e){return o["a"].get("store/coupon/show_lst/".concat(t),e)}function d(t){return o["a"].get("/store/coupon/send/lst",t)}function f(t){return o["a"].post("store/coupon/send",t)}function p(t){return o["a"].get("store/coupon/detail/".concat(t))}function g(t){return o["a"].get("store/coupon/lst",t)}function m(t,e){return o["a"].post("store/coupon/status/".concat(t),{status:e})}function b(){return o["a"].get("store/coupon/create/form")}function v(t){return o["a"].get("store/coupon/issue",t)}function _(t){return o["a"].delete("store/coupon/delete/".concat(t))}function h(t){return o["a"].get("broadcast/room/lst",t)}function w(t,e){return o["a"].post("broadcast/room/status/".concat(t),e)}function y(t){return o["a"].delete("broadcast/room/delete/".concat(t))}function k(t){return o["a"].get("broadcast/room/apply/form/".concat(t))}function F(t){return o["a"].get("broadcast/room/detail/".concat(t))}function C(t,e){return o["a"].post("broadcast/room/feedsPublic/".concat(t),{status:e})}function D(t,e){return o["a"].post("broadcast/room/comment/".concat(t),{status:e})}function x(t,e){return o["a"].post("broadcast/room/closeKf/".concat(t),{status:e})}function $(t){return o["a"].get("broadcast/goods/lst",t)}function S(t){return o["a"].get("broadcast/goods/detail/".concat(t))}function L(t,e){return o["a"].post("broadcast/goods/status/".concat(t),e)}function z(t){return o["a"].get("broadcast/goods/apply/form/".concat(t))}function P(){return o["a"].get("seckill/config/create/form")}function E(t){return o["a"].get("seckill/config/lst",t)}function O(t){return o["a"].get("seckill/config/update/".concat(t,"/form"))}function j(t){return o["a"].delete("seckill/config/delete/".concat(t))}function V(t,e){return o["a"].post("seckill/config/status/".concat(t),{status:e})}function I(t,e){return o["a"].get("seckill/product/detail/".concat(t),e)}function q(t,e){return o["a"].get("broadcast/room/goods/".concat(t),e)}function B(t){return o["a"].delete("broadcast/goods/delete/".concat(t))}function W(t,e){return o["a"].post("broadcast/room/sort/".concat(t),e)}function R(t,e){return o["a"].post("broadcast/goods/sort/".concat(t),e)}function J(t){return o["a"].post("config/others/group_buying",t)}function N(){return o["a"].get("config/others/group_buying")}function A(t){return o["a"].get("store/product/group/lst",t)}function K(t){return o["a"].get("store/product/group/get/".concat(t))}function G(t){return o["a"].get("store/product/group/detail/".concat(t))}function H(t){return o["a"].post("store/product/group/status",t)}function M(t,e){return o["a"].post("store/product/group/is_show/".concat(t),{status:e})}function Q(t){return o["a"].get("store/product/group/get/".concat(t))}function T(t,e){return o["a"].post("store/product/group/update/".concat(t),e)}function U(t){return o["a"].get("store/product/group/buying/lst",t)}function X(t,e){return o["a"].get("store/product/group/buying/detail/".concat(t),e)}function Y(t,e){return o["a"].get("store/coupon/product/".concat(t),e)}function Z(){return o["a"].get("user/integral/title")}function tt(t){return o["a"].get("user/integral/lst",t)}function et(t){return o["a"].get("user/integral/excel",t)}function nt(){return o["a"].get("user/integral/config")}function ot(t){return o["a"].post("user/integral/config",t)}function at(t){return o["a"].get("discounts/lst",t)}function rt(t,e){return o["a"].post("discounts/status/".concat(t),{status:e})}function st(t){return o["a"].get("discounts/detail/".concat(t))}function it(t){return o["a"].get("marketing/spu/lst",t)}function ct(t){return o["a"].post("activity/atmosphere/create",t)}function ut(t,e){return o["a"].post("activity/atmosphere/update/".concat(t),e)}function lt(t){return o["a"].get("activity/atmosphere/lst",t)}function dt(t){return o["a"].get("activity/atmosphere/detail/".concat(t))}function ft(t,e){return o["a"].post("activity/atmosphere/status/".concat(t),{status:e})}function pt(t){return o["a"].delete("activity/atmosphere/delete/".concat(t))}function gt(t){return o["a"].post("activity/border/create",t)}function mt(t,e){return o["a"].post("activity/border/update/".concat(t),e)}function bt(t){return o["a"].get("activity/border/lst",t)}function vt(t){return o["a"].get("activity/border/detail/".concat(t))}function _t(t,e){return o["a"].post("activity/border/status/".concat(t),{status:e})}function ht(t){return o["a"].delete("activity/border/delete/".concat(t))}},dcdca:function(t,e,n){"use strict";n.r(e);var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"divBox"},[n("el-card",{staticClass:"box-card"},[n("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[n("div",{staticClass:"container"},[n("el-form",{attrs:{size:"small","label-width":"100px"}},[n("el-form-item",{attrs:{label:"状态:"}},[n("el-radio-group",{attrs:{type:"button"},on:{change:function(e){return t.getList(1)}},model:{value:t.tableForm.status_tag,callback:function(e){t.$set(t.tableForm,"status_tag",e)},expression:"tableForm.status_tag"}},[n("el-radio-button",{attrs:{label:""}},[t._v("全部")]),t._v(" "),n("el-radio-button",{attrs:{label:"0"}},[t._v("待审核")]),t._v(" "),n("el-radio-button",{attrs:{label:"1"}},[t._v("已审核")]),t._v(" "),n("el-radio-button",{attrs:{label:"-1"}},[t._v("审核失败")])],1)],1),t._v(" "),n("el-form-item",{staticStyle:{display:"inline-block"},attrs:{label:"商户类别:"}},[n("el-select",{staticClass:"selWidth",attrs:{clearable:"",placeholder:"请选择"},on:{change:function(e){return t.getList(1)}},model:{value:t.tableForm.is_trader,callback:function(e){t.$set(t.tableForm,"is_trader",e)},expression:"tableForm.is_trader"}},[n("el-option",{attrs:{label:"自营",value:"1"}}),t._v(" "),n("el-option",{attrs:{label:"非自营",value:"0"}})],1)],1),t._v(" "),n("el-form-item",{staticClass:"width100",staticStyle:{display:"inline-block"},attrs:{label:"关键字:"}},[n("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入直播商品名称/ID",size:"small"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getList(1)}},model:{value:t.tableForm.keyword,callback:function(e){t.$set(t.tableForm,"keyword",e)},expression:"tableForm.keyword"}},[n("el-button",{staticClass:"el-button-solt",attrs:{slot:"append",icon:"el-icon-search"},on:{click:function(e){return t.getList(1)}},slot:"append"})],1)],1)],1)],1)]),t._v(" "),n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{data:t.tableData.data,size:"small","highlight-current-row":""}},[n("el-table-column",{attrs:{label:"序号","min-width":"50"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(e.$index+(t.tableForm.page-1)*t.tableForm.limit+1))])]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"商户名称","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(e.row.merchant?e.row.merchant.mer_name:""))])]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"mer_name",label:"商户类别","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.merchant?n("span",{staticClass:"spBlock"},[t._v(t._s(e.row.merchant.is_trader?"自营":"非自营"))]):t._e()]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"goods_id",label:"商品ID","min-width":"80"}}),t._v(" "),n("el-table-column",{attrs:{prop:"name",label:"商品名称","min-width":"150"}}),t._v(" "),n("el-table-column",{attrs:{label:"原价","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(e.row.product?e.row.product.price:""))])]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"price",label:"直播价","min-width":"90"}}),t._v(" "),n("el-table-column",{attrs:{label:"库存","min-width":"60"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(e.row.product?e.row.product.stock:""))])]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"sort","min-width":"60",label:"排序"}}),t._v(" "),1!=t.tableForm.status_tag?n("el-table-column",{key:"3",attrs:{label:"审核状态","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(t._f("liveReviewStatusFilter")(e.row.status)))]),t._v(" "),-1==e.row.status?n("span",{staticStyle:{display:"block","font-size":"12px"}},[t._v("原因 "+t._s(e.row.error_msg))]):t._e()]}}],null,!1,3159920398)}):t._e(),t._v(" "),n("el-table-column",{attrs:{label:"是否上架","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-switch",{attrs:{"active-value":1,"inactive-value":0,"active-text":"上架","inactive-text":"下架"},nativeOn:{click:function(n){return t.onchangeIsShow(e.row)}},model:{value:e.row.is_show,callback:function(n){t.$set(e.row,"is_show",n)},expression:"scope.row.is_show"}})]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"create_time",label:"创建时间","min-width":"160"}}),t._v(" "),n("el-table-column",{attrs:{label:"操作","min-width":"150",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[0==e.row.status?n("el-button",{staticClass:"mr10",attrs:{type:"text",size:"small"},on:{click:function(n){return t.toExamine(e.row.broadcast_goods_id)}}},[t._v("审核")]):t._e(),t._v(" "),n("el-button",{staticClass:"mr10",attrs:{type:"text",size:"small"},on:{click:function(n){return t.onProDetails(e.row.broadcast_goods_id)}}},[t._v("详情")]),t._v(" "),n("el-button",{staticClass:"mr10",attrs:{type:"text",size:"small"},on:{click:function(n){return t.handleEdit(e.row.broadcast_goods_id)}}},[t._v("编辑")]),t._v(" "),n("el-button",{attrs:{type:"text",size:"small"},on:{click:function(n){return t.handleDelete(e.row.broadcast_goods_id,e.$index)}}},[t._v("删除")])]}}])})],1),t._v(" "),n("div",{staticClass:"block"},[n("el-pagination",{attrs:{"page-sizes":[20,40,60,80],"page-size":t.tableForm.limit,"current-page":t.tableForm.page,layout:"total, sizes, prev, pager, next, jumper",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1),t._v(" "),n("details-from",{ref:"ProDetail",on:{getList:t.getList}})],1)},a=[],r=n("b7be"),s=n("83d6"),i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"divBox"},[t.dialogVisible?n("el-dialog",{attrs:{title:"商品信息",visible:t.dialogVisible,width:"700px"},on:{"update:visible":function(e){t.dialogVisible=e}}},[n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}]},[n("div",{staticClass:"box-container"},[n("div",{staticClass:"list sp"},[n("label",{staticClass:"name"},[t._v("商品名称:")]),t._v(" "),n("span",{staticClass:"info"},[t._v(t._s(t.FormData.name))])]),t._v(" "),n("div",{staticClass:"list sp"},[n("label",{staticClass:"name"},[t._v("直播价:")]),t._v(" "),n("span",{staticClass:"info"},[t._v(t._s(t.FormData.price))])]),t._v(" "),n("div",{staticClass:"list sp"},[n("label",{staticClass:"name"},[t._v("库存:")]),t._v(" "),t.FormData.product?n("span",{staticClass:"info"},[t._v(t._s(t.FormData.product.stock))]):t._e()]),t._v(" "),n("div",{staticClass:"list sp100 image"},[n("label",{staticClass:"name"},[t._v("商品图:")]),t._v(" "),t.FormData.product?n("img",{staticStyle:{"max-width":"150px",height:"80px"},attrs:{src:t.FormData.product.image}}):t._e()]),t._v(" "),n("div",{staticClass:"list sp"},[n("label",{staticClass:"name"},[t._v("审核结果:")]),t._v(" "),n("span",{staticClass:"info"},[t._v(t._s(t._f("liveReviewStatusFilter")(t.FormData.status)))])]),t._v(" "),t.isEdit?n("div",{staticClass:"list"},[n("label",{staticClass:"name"},[t._v("排序:")]),t._v(" "),n("el-input",{staticClass:"selWidth",staticStyle:{"padding-right":"0"},attrs:{type:"number",placeholder:"请输入序号",size:"small"},model:{value:t.FormData.sort,callback:function(e){t.$set(t.FormData,"sort",t._n(e))},expression:"FormData.sort"}}),t._v(" "),n("el-button",{staticStyle:{width:"80px"},attrs:{size:"small",type:"primary"},on:{click:t.handleSort}},[t._v("确定")])],1):n("div",{staticClass:"list sp"},[n("label",{staticClass:"name"},[t._v("排序:")]),t._v(" "),n("span",{staticClass:"info"},[t._v(t._s(t.FormData.sort))])])])])]):t._e()],1)},c=[],u=(n("55dd"),{name:"BroadcastProDetail",data:function(){return{dialogVisible:!1,isEdit:!1,option:{form:{labelWidth:"150px"}},FormData:{sort:0},loading:!1}},mounted:function(){},methods:{getData:function(t){var e=this;this.loading=!0,Object(r["q"])(t).then((function(t){e.FormData=t.data,e.loading=!1,console.log(e.FormData)})).catch((function(t){e.$message.error(t.message),e.loading=!1}))},handleSort:function(){var t=this;Object(r["s"])(this.FormData.broadcast_goods_id,{sort:this.FormData.sort}).then((function(e){console.log(t.FormData),t.dialogVisible=!1,t.$emit("getList"),t.$message.success(e.message)})).catch((function(e){t.$message.error(e.message)}))}}}),l=u,d=(n("816e"),n("2877")),f=Object(d["a"])(l,i,c,!1,null,"ff040404",null),p=f.exports,g={name:"BroadcastProList",components:{detailsFrom:p},data:function(){return{Loading:!1,roterPre:s["roterPre"],listLoading:!0,product_id:"",dialogVisible:!1,tableData:{data:[],total:0},tableForm:{page:1,limit:20,status_tag:this.$route.query.status?this.$route.query.status:"",keyword:"",is_trader:"",broadcast_goods_id:this.$route.query.id?this.$route.query.id:""},liveRoomStatus:""}},mounted:function(){this.getList()},methods:{handleEdit:function(t){this.product_id=t,this.$refs.ProDetail.dialogVisible=!0,this.$refs.ProDetail.isEdit=!0,this.$refs.ProDetail.getData(t)},onProDetails:function(t){this.product_id=t,this.$refs.ProDetail.dialogVisible=!0,this.$refs.ProDetail.isEdit=!1,this.$refs.ProDetail.getData(t)},handleDelete:function(t,e){var n=this;this.$modalSureDelete().then((function(){Object(r["p"])(t).then((function(t){var o=t.message;n.$message.success(o),n.tableData.data.splice(e,1),n.getList()})).catch((function(t){var e=t.message;n.$message.error(e)}))}))},handleSizeChangeIssue:function(t){this.tableFormIssue.limit=t,this.getIssueList()},getList:function(t){var e=this;this.listLoading=!0,this.tableForm.page=t||this.tableForm.page,console.log(this.tableForm),Object(r["r"])(this.tableForm).then((function(t){e.tableData.data=t.data.list,e.tableData.total=t.data.count,e.listLoading=!1})).catch((function(t){e.listLoading=!1,e.$message.error(t.message)}))},pageChange:function(t){this.tableForm.page=t,this.getList()},handleSizeChange:function(t){this.tableForm.limit=t,this.getList()},onchangeIsShow:function(t){var e=this;Object(r["v"])(t.broadcast_goods_id,{is_show:t.is_show}).then((function(t){var n=t.message;e.$message.success(n),e.getList()})).catch((function(t){var n=t.message;e.$message.error(n)}))},toExamine:function(t){var e=this;this.$modalForm(Object(r["a"])(t)).then((function(){return e.getList()}))}}},m=g,b=(n("79c6"),Object(d["a"])(m,o,a,!1,null,"39dfaaaa",null));e["default"]=b.exports},df42:function(t,e,n){}}]);