1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-afa114b0"],{"2f21":function(t,e,a){"use strict";var n=a("79e5");t.exports=function(t,e){return!!t&&n((function(){e?t.call(null,(function(){}),1):t.call(null)}))}},3991:function(t,e,a){},"55dd":function(t,e,a){"use strict";var n=a("5ca1"),o=a("d8e8"),s=a("4bf8"),r=a("79e5"),i=[].sort,l=[1,2,3];n(n.P+n.F*(r((function(){l.sort(void 0)}))||!r((function(){l.sort(null)}))||!a("2f21")(i)),"Array",{sort:function(t){return void 0===t?i.call(s(this)):i.call(s(this),o(t))}})},"8d38":function(t,e,a){"use strict";var n=a("3991"),o=a.n(n);o.a},a9ce:function(t,e,a){},b7a2:function(t,e,a){"use strict";var n=a("a9ce"),o=a.n(n);o.a},b7be:function(t,e,a){"use strict";a.d(e,"y",(function(){return o})),a.d(e,"z",(function(){return s})),a.d(e,"A",(function(){return r})),a.d(e,"B",(function(){return i})),a.d(e,"x",(function(){return l})),a.d(e,"e",(function(){return c})),a.d(e,"k",(function(){return u})),a.d(e,"c",(function(){return d})),a.d(e,"b",(function(){return f})),a.d(e,"d",(function(){return m})),a.d(e,"h",(function(){return g})),a.d(e,"g",(function(){return p})),a.d(e,"l",(function(){return b})),a.d(e,"a",(function(){return _})),a.d(e,"H",(function(){return v})),a.d(e,"E",(function(){return h})),a.d(e,"G",(function(){return w})),a.d(e,"D",(function(){return y})),a.d(e,"F",(function(){return k})),a.d(e,"C",(function(){return F})),a.d(e,"I",(function(){return C})),a.d(e,"f",(function(){return D})),a.d(e,"j",(function(){return x})),a.d(e,"i",(function(){return $})),a.d(e,"v",(function(){return S})),a.d(e,"n",(function(){return L})),a.d(e,"q",(function(){return z})),a.d(e,"r",(function(){return P})),a.d(e,"p",(function(){return E})),a.d(e,"s",(function(){return O})),a.d(e,"w",(function(){return j})),a.d(e,"u",(function(){return I})),a.d(e,"t",(function(){return V})),a.d(e,"m",(function(){return B})),a.d(e,"o",(function(){return q}));var n=a("0c6d");function o(t){return n["a"].get("store/coupon/detail/".concat(t))}function s(t){return n["a"].get("store/coupon/lst",t)}function r(t,e){return n["a"].post("store/coupon/status/".concat(t),{status:e})}function i(t){return n["a"].get("store/coupon/issue",t)}function l(t){return n["a"].delete("store/coupon/delete/".concat(t))}function c(t){return n["a"].get("broadcast/room/lst",t)}function u(t,e){return n["a"].post("broadcast/room/status/".concat(t),e)}function d(t){return n["a"].delete("broadcast/room/delete/".concat(t))}function f(t){return n["a"].get("broadcast/room/apply/form/".concat(t))}function m(t){return n["a"].get("broadcast/room/detail/".concat(t))}function g(t){return n["a"].get("broadcast/goods/lst",t)}function p(t){return n["a"].get("broadcast/goods/detail/".concat(t))}function b(t,e){return n["a"].post("broadcast/goods/status/".concat(t),e)}function _(t){return n["a"].get("broadcast/goods/apply/form/".concat(t))}function v(){return n["a"].get("seckill/config/create/form")}function h(t){return n["a"].get("seckill/config/lst",t)}function w(t){return n["a"].get("seckill/config/update/".concat(t,"/form"))}function y(t){return n["a"].delete("seckill/config/delete/".concat(t))}function k(t,e){return n["a"].post("seckill/config/status/".concat(t),{status:e})}function F(t,e){return n["a"].get("seckill/product/detail/".concat(t),e)}function C(t,e){return n["a"].get("broadcast/room/goods/".concat(t),e)}function D(t){return n["a"].delete("broadcast/goods/delete/".concat(t))}function x(t,e){return n["a"].post("broadcast/room/sort/".concat(t),e)}function $(t,e){return n["a"].post("broadcast/goods/sort/".concat(t),e)}function S(t){return n["a"].post("config/others/group_buying",t)}function L(){return n["a"].get("config/others/group_buying")}function z(t){return n["a"].get("store/product/group/lst",t)}function P(t){return n["a"].get("store/product/group/get/".concat(t))}function E(t){return n["a"].get("store/product/group/detail/".concat(t))}function O(t){return n["a"].post("store/product/group/status",t)}function j(t,e){return n["a"].post("store/product/group/is_show/".concat(t),{status:e})}function I(t){return n["a"].get("store/product/group/get/".concat(t))}function V(t,e){return n["a"].post("store/product/group/update/".concat(t),e)}function B(t){return n["a"].get("store/product/group/buying/lst",t)}function q(t,e){return n["a"].get("store/product/group/buying/detail/".concat(t),e)}},dcdca:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"divBox"},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("div",{staticClass:"container"},[a("el-form",{attrs:{size:"small","label-width":"100px"}},[a("el-form-item",{attrs:{label:"状态:"}},[a("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"}},[a("el-radio-button",{attrs:{label:""}},[t._v("全部")]),t._v(" "),a("el-radio-button",{attrs:{label:"0"}},[t._v("待审核")]),t._v(" "),a("el-radio-button",{attrs:{label:"1"}},[t._v("已审核")]),t._v(" "),a("el-radio-button",{attrs:{label:"-1"}},[t._v("审核失败")])],1)],1),t._v(" "),a("el-form-item",{staticStyle:{display:"inline-block"},attrs:{label:"商户类别:"}},[a("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"}},[a("el-option",{attrs:{label:"自营",value:"1"}}),t._v(" "),a("el-option",{attrs:{label:"非自营",value:"0"}})],1)],1),t._v(" "),a("el-form-item",{staticClass:"width100",staticStyle:{display:"inline-block"},attrs:{label:"关键字:"}},[a("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"}},[a("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(" "),a("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":""}},[a("el-table-column",{attrs:{label:"序号","min-width":"50"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.$index+(t.tableForm.page-1)*t.tableForm.limit+1))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"商户名称","min-width":"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.merchant?e.row.merchant.mer_name:""))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"mer_name",label:"商户类别","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.merchant?a("span",{staticClass:"spBlock"},[t._v(t._s(e.row.merchant.is_trader?"自营":"非自营"))]):t._e()]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"goods_id",label:"商品ID","min-width":"50"}}),t._v(" "),a("el-table-column",{attrs:{prop:"name",label:"商品名称","min-width":"150"}}),t._v(" "),a("el-table-column",{attrs:{label:"原价","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.product?e.row.product.price:""))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"price",label:"直播价","min-width":"90"}}),t._v(" "),a("el-table-column",{attrs:{label:"库存","min-width":"60"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.product?e.row.product.stock:""))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"sort","min-width":"60",label:"排序"}}),t._v(" "),1!=t.tableForm.status_tag?a("el-table-column",{key:"3",attrs:{label:"审核状态","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("liveReviewStatusFilter")(e.row.status)))]),t._v(" "),-1==e.row.status?a("span",{staticStyle:{display:"block","font-size":"12px"}},[t._v("原因 "+t._s(e.row.error_msg))]):t._e()]}}],null,!1,3159920398)}):t._e(),t._v(" "),a("el-table-column",{attrs:{label:"是否上架","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-switch",{attrs:{"active-value":1,"inactive-value":0,"active-text":"上架","inactive-text":"下架"},nativeOn:{click:function(a){return t.onchangeIsShow(e.row)}},model:{value:e.row.is_show,callback:function(a){t.$set(e.row,"is_show",a)},expression:"scope.row.is_show"}})]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"create_time",label:"创建时间","min-width":"160"}}),t._v(" "),a("el-table-column",{attrs:{label:"操作","min-width":"150",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[0==e.row.status?a("el-button",{staticClass:"mr10",attrs:{type:"text",size:"small"},on:{click:function(a){return t.toExamine(e.row.broadcast_goods_id)}}},[t._v("审核")]):t._e(),t._v(" "),a("el-button",{staticClass:"mr10",attrs:{type:"text",size:"small"},on:{click:function(a){return t.onProDetails(e.row.broadcast_goods_id)}}},[t._v("详情")]),t._v(" "),a("el-button",{staticClass:"mr10",attrs:{type:"text",size:"small"},on:{click:function(a){return t.handleEdit(e.row.broadcast_goods_id)}}},[t._v("编辑")]),t._v(" "),2!==e.row.status?a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.handleDelete(e.row.broadcast_goods_id,e.$index)}}},[t._v("删除")]):t._e()]}}])})],1),t._v(" "),a("div",{staticClass:"block"},[a("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(" "),a("details-from",{ref:"ProDetail",on:{getList:t.getList}})],1)},o=[],s=a("b7be"),r=a("83d6"),i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"divBox"},[t.dialogVisible?a("el-dialog",{attrs:{title:"商品信息",visible:t.dialogVisible,width:"700px"},on:{"update:visible":function(e){t.dialogVisible=e}}},[a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}]},[a("div",{staticClass:"box-container"},[a("div",{staticClass:"list sp"},[a("label",{staticClass:"name"},[t._v("商品名称:")]),t._v(" "),a("span",{staticClass:"info"},[t._v(t._s(t.FormData.name))])]),t._v(" "),a("div",{staticClass:"list sp"},[a("label",{staticClass:"name"},[t._v("直播价:")]),t._v(" "),a("span",{staticClass:"info"},[t._v(t._s(t.FormData.price))])]),t._v(" "),a("div",{staticClass:"list sp"},[a("label",{staticClass:"name"},[t._v("库存:")]),t._v(" "),t.FormData.product?a("span",{staticClass:"info"},[t._v(t._s(t.FormData.product.stock))]):t._e()]),t._v(" "),a("div",{staticClass:"list sp100 image"},[a("label",{staticClass:"name"},[t._v("商品图:")]),t._v(" "),t.FormData.product?a("img",{staticStyle:{"max-width":"150px",height:"80px"},attrs:{src:t.FormData.product.image}}):t._e()]),t._v(" "),a("div",{staticClass:"list sp"},[a("label",{staticClass:"name"},[t._v("审核结果:")]),t._v(" "),a("span",{staticClass:"info"},[t._v(t._s(t._f("liveReviewStatusFilter")(t.FormData.status)))])]),t._v(" "),t.isEdit?a("div",{staticClass:"list"},[a("label",{staticClass:"name"},[t._v("排序:")]),t._v(" "),a("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(" "),a("el-button",{staticStyle:{width:"80px"},attrs:{size:"small",type:"primary"},on:{click:t.handleSort}},[t._v("确定")])],1):a("div",{staticClass:"list sp"},[a("label",{staticClass:"name"},[t._v("排序:")]),t._v(" "),a("span",{staticClass:"info"},[t._v(t._s(t.FormData.sort))])])])])]):t._e()],1)},l=[],c=(a("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(s["g"])(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(s["i"])(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)}))}}}),u=c,d=(a("8d38"),a("2877")),f=Object(d["a"])(u,i,l,!1,null,"77bce0ec",null),m=f.exports,g={name:"BroadcastProList",components:{detailsFrom:m},data:function(){return{Loading:!1,roterPre:r["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 a=this;this.$modalSureDelete().then((function(){Object(s["f"])(t).then((function(t){var n=t.message;a.$message.success(n),a.tableData.data.splice(e,1)})).catch((function(t){var e=t.message;a.$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(s["h"])(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(s["l"])(t.broadcast_goods_id,{is_show:t.is_show}).then((function(t){var a=t.message;e.$message.success(a),e.getList()})).catch((function(t){var a=t.message;e.$message.error(a)}))},toExamine:function(t){var e=this;this.$modalForm(Object(s["a"])(t)).then((function(){return e.getList()}))}}},p=g,b=(a("b7a2"),Object(d["a"])(p,n,o,!1,null,"298f2b0a",null));e["default"]=b.exports}}]);
|