(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5cbcf164"],{"0e84":function(t,e,a){},2751:function(t,e,a){"use strict";a("0e84")},"4b7b":function(t,e,a){"use strict";a("d398")},"96f6":function(t,e,a){"use strict";a.r(e);var i=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.reviewStatus,callback:function(e){t.$set(t.tableForm,"reviewStatus",e)},expression:"tableForm.reviewStatus"}},[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:"2"}},[t._v("平台审核通过")]),t._v(" "),a("el-radio-button",{attrs:{label:"3"}},[t._v("平台审核失败")]),t._v(" "),a("el-radio-button",{attrs:{label:"4"}},[t._v("微信审核成功")]),t._v(" "),a("el-radio-button",{attrs:{label:"5"}},[t._v("微信审核失败")])],1)],1),t._v(" "),a("el-form-item",{staticClass:"width100",staticStyle:{display:"inline-block"},attrs:{label:"关键字:"}},[a("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入直播商品名称/ID,商户名称,微信直播间id,微信审核单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.keywords,callback:function(e){t.keywords=e},expression:"keywords"}},[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-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["merchant:mp:live:goods:save"],expression:"['merchant:mp:live:goods:save']"}],staticClass:"mr10",attrs:{size:"small",type:"primary"},on:{click:function(e){return t.onEdit(0)}}},[t._v("添加直播商品")])],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:"ID",prop:"id","min-width":"40"}}),t._v(" "),a("el-table-column",{attrs:{label:"商品ID","min-width":"50"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("filterEmpty")(e.row.productId)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"商品名称","min-width":"130","show-overflow-tooltip":!0},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.name+"/"+e.row.productId))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"商品图","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(t){return[a("div",{staticClass:"demo-image__preview"},[a("el-image",{staticStyle:{width:"36px",height:"36px"},attrs:{src:t.row.coverImgUrlLocal,"preview-src-list":[t.row.coverImgUrlLocal]}})],1)]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"价格类型","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("priceTypeFilter")(e.row.priceType)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"价格","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[1===e.row.priceType?a("span",[t._v(t._s(e.row.price))]):a("span",[t._v(t._s(e.row.price+"~"+e.row.price2))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"sort","min-width":"60",label:"排序"}}),t._v(" "),a("el-table-column",{attrs:{label:"审核状态","min-width":"110"},scopedSlots:t._u([{key:"default",fn:function(e){return[3===e.row.reviewStatus||5===e.row.reviewStatus?a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.row.reviewReason,placement:"top"}},[3===e.row.reviewStatus?a("el-tag",{attrs:{type:"danger"}},[t._v("平台审核失败")]):t._e(),t._v(" "),5===e.row.reviewStatus?a("el-tag",{attrs:{type:"danger"}},[t._v("微信审核失败")]):t._e()],1):a("div",[1===e.row.reviewStatus?a("el-tag",{attrs:{type:"info"}},[t._v("平台待审核")]):t._e(),t._v(" "),2===e.row.reviewStatus?a("el-tag",{attrs:{type:"info"}},[t._v("平台审核通过")]):t._e(),t._v(" "),4===e.row.reviewStatus?a("el-tag",[t._v("微信审核成功")]):t._e()],1)]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作","min-width":"150",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["merchant:mp:live:goods:sort"],expression:"['merchant:mp:live:goods:sort']"}],staticClass:"mr10",attrs:{type:"text",size:"small"},on:{click:function(a){return t.handleSort(e.row.id)}}},[t._v("排序")]),t._v(" "),a("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["merchant:mp:live:goods:edit"],expression:"['merchant:mp:live:goods:edit']"}],staticClass:"mr10",attrs:{type:"text",size:"small"},on:{click:function(a){return t.onEdit(e.row.id)}}},[t._v("编辑")]),t._v(" "),a("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["merchant:mp:live:goods:delete"],expression:"['merchant:mp:live:goods:delete']"}],attrs:{type:"text",size:"small"},on:{click:function(a){return t.handleDelete(e.row.id)}}},[t._v("删除")])]}}])})],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)},s=[],l=a("b7be"),o=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"},[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)},r=[],n={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(l["r"])(t).then((function(t){e.FormData=t,e.loading=!1})).catch((function(t){e.loading=!1}))},handleSort:function(){var t=this;Object(l["u"])(this.FormData.id,this.FormData.sort).then((function(e){t.dialogVisible=!1,t.$emit("getList"),t.$message.success("操作成功")}))}}},c=n,d=(a("4b7b"),a("2877")),u=Object(d["a"])(c,o,r,!1,null,"a1b26746",null),m=u.exports,v=a("e350"),p={name:"BroadcastProList",computed:{},components:{detailsFrom:m},data:function(){return{Loading:!1,listLoading:!0,product_id:"",dialogVisible:!1,tableData:{data:[],total:0},keywords:"",tableForm:{page:1,limit:20,reviewStatus:"",keywords:""},liveRoomStatus:"",roomInfo:{}}},mounted:function(){Object(v["a"])(["merchant:mp:live:goods:list"])&&this.getList()},methods:{checkPermi:v["a"],handleSort:function(t){this.id=t,this.$refs.ProDetail.dialogVisible=!0,this.$refs.ProDetail.isEdit=!0,this.$refs.ProDetail.getData(t)},onEdit:function(t){this.$router.push({path:"/marketing/broadcast/creatPro/".concat(t)})},onProDetails:function(t){this.roomInfo=t,this.dialogVisible=!0},handleDelete:function(t,e){var a=this;this.$modalSure("删除该商品吗?").then((function(){Object(l["q"])(t).then((function(){a.$message.success("删除成功"),1===a.tableData.data.length&&a.tableForm.page>1&&(a.tableForm.page=a.tableForm.page-1),a.getList("")}))}))},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,this.tableForm.keywords=encodeURIComponent(this.keywords),Object(l["s"])(this.tableForm).then((function(t){e.tableData.data=t.list,e.tableData.total=t.total,e.listLoading=!1})).catch((function(t){e.listLoading=!1}))},pageChange:function(t){this.tableForm.page=t,this.getList()},handleSizeChange:function(t){this.tableForm.limit=t,this.getList()}}},h=p,b=(a("2751"),Object(d["a"])(h,i,s,!1,null,"58ea5f11",null));e["default"]=b.exports},d398:function(t,e,a){}}]);