(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-ac77692e"],{"14c3":function(t,e,a){},"4b7bc":function(t,e,a){"use strict";a("d398")},8126:function(t,e,a){"use strict";a("14c3")},"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:"inline",attrs:{label:"商户分类",prop:"categoryId"}},[a("el-select",{attrs:{placeholder:"请选择商户分类",clearable:""},on:{change:function(e){return t.getList(1)}},model:{value:t.tableForm.merchant_type,callback:function(e){t.$set(t.tableForm,"merchant_type",e)},expression:"tableForm.merchant_type"}},t._l(t.merchantClassify,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),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-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",width:"50",prop:"id"}}),t._v(" "),a("el-table-column",{attrs:{label:"直播商品ID","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("filterEmpty")(e.row.goodsId)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"商品名称","min-width":"120","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":"60"},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":"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[1===e.row.priceType?a("span",[t._v(t._s(e.row.price))]):1===e.row.priceType?a("span",[t._v(t._s(e.row.price+"~"+e.row.price2))]):a("span",[t._v("(原)"+t._s(e.row.price)+",(折扣)"+t._s(e.row.price2))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"商户名称","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.merName))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"商户分类","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{staticClass:"widths"},[t._v(t._s(t._f("merCategoryFilter")(e.row.merType)))])]}}])}),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[1===e.row.reviewStatus&&t.checkPermi(["platform:mp:live:goods:review","platform:mp:live:goods:info"])?a("el-button",{staticClass:"mr10",attrs:{type:"text",size:"small"},on:{click:function(a){return t.toExamine(e.row)}}},[t._v("审核")]):t._e(),t._v(" "),a("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["platform:mp:live:goods:sort"],expression:"['platform: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:["platform:mp:live:goods:delete"],expression:"['platform: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("el-drawer",{attrs:{"custom-class":"demo-drawer",direction:"rtl",visible:t.dialogVisible,size:"1000px"},on:{"update:visible":function(e){t.dialogVisible=e},close:function(e){return t.close("ruleForm")}}},[a("div",{staticClass:"demo-drawer_title",attrs:{slot:"title"},slot:"title"},[t._v("直播商品审核")]),t._v(" "),a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"demo-drawer__content"},[a("div",{staticClass:"description"},[a("div",{staticClass:"acea-row"},[a("div",{staticClass:"description-term lang"},[a("label",{staticClass:"name"},[t._v("商品名称:")]),t._v(t._s(t.proInfo.name))]),t._v(" "),a("div",{staticClass:"description-term sp100"},[a("label",{staticClass:"name"},[t._v("商品ID:")]),t._v(t._s(t.proInfo.productId))]),t._v(" "),a("div",{staticClass:"description-term sp100"},[a("label",{staticClass:"name"},[t._v("商户名称:")]),t._v(t._s(t.proInfo.merName))]),t._v(" "),a("div",{staticClass:"description-term sp100"},[a("label",{staticClass:"name"},[t._v("商户分类:")]),t._v(t._s(t._f("merCategoryFilter")(t.proInfo.merType))+"\n ")]),t._v(" "),1===t.proInfo.priceType?a("div",{staticClass:"description-term sp100"},[a("label",{staticClass:"name"},[t._v("一口价:")]),t._v(t._s(t.proInfo.price)+"\n ")]):a("div",{staticClass:"description-term sp100"},[a("label",{staticClass:"name"},[t._v("价格区间:")]),t._v(t._s(t.proInfo.price+"~"+t.proInfo.price2)+"\n ")]),t._v(" "),a("div",{staticClass:"description-term sp100"},[a("label",{staticClass:"name"},[t._v("审核结果:")]),t._v(t._s(t._f("liveReviewStatusFilter")(t.proInfo.reviewStatus))+"\n ")]),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:3===t.proInfo.reviewStatus||5===t.proInfo.reviewStatus,expression:"proInfo.reviewStatus === 3 || proInfo.reviewStatus === 5"}],staticClass:"description-term sp100"},[a("label",{staticClass:"name"},[t._v("审核失败原因:")]),t._v(t._s(t.proInfo.reviewReason)+"\n ")]),t._v(" "),a("div",{staticClass:"acea-row sp100 description-term"},[a("label",{staticClass:"name",staticStyle:{color:"#606266"}},[t._v("商品图:")]),t._v(" "),a("div",{staticClass:"demo-image__preview mr10"},[a("el-image",{staticStyle:{width:"50px",height:"50px"},attrs:{src:t.proInfo.coverImgUrlLocal,"preview-src-list":[t.proInfo.coverImgUrlLocal]}})],1)])])])]),t._v(" "),a("div",{staticClass:"demo-drawer__footer"},[a("div",{staticClass:"from-foot-btn drawer_fix"},[a("div",{staticClass:"acea-row justify-content"},[a("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["platform:seckill:product:audit"],expression:"['platform:seckill:product:audit']"},{name:"debounceClick",rawName:"v-debounceClick",value:function(){t.onSubmit(3)},expression:"\n () => {\n onSubmit(3);\n }\n "}],staticStyle:{"margin-left":"0"}},[t._v(t._s(t.loadingBtn?"提交中 ...":"审核拒绝"))]),t._v(" "),a("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["platform:seckill:product:audit"],expression:"['platform:seckill:product:audit']"},{name:"debounceClick",rawName:"v-debounceClick",value:function(){t.onSubmit(2)},expression:"\n () => {\n onSubmit(2);\n }\n "}],attrs:{type:"primary"}},[t._v(t._s(t.loadingBtn?"提交中 ...":"审核通过"))])],1)])])]),t._v(" "),a("details-from",{ref:"ProDetail",on:{getList:t.getList}})],1)},s=[],r=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)},l=[],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(r["r"])(t).then((function(t){e.FormData=t,e.loading=!1})).catch((function(t){e.loading=!1}))},handleSort:function(){var t=this;Object(r["u"])(this.FormData.id,this.FormData.sort).then((function(e){t.dialogVisible=!1,t.$emit("getList"),t.$message.success("操作成功")}))}}},c=n,d=(a("4b7bc"),a("2877")),u=Object(d["a"])(c,o,l,!1,null,"a1b26746",null),m=u.exports,p=a("2f62"),v=a("e350");function f(t){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f(t)}function b(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,i)}return a}function _(t){for(var e=1;e1&&(a.tableForm.page=a.tableForm.page-1),a.getList("")}))}))},getList:function(t){var e=this;this.listLoading=!0,this.tableForm.page=t||this.tableForm.page,this.tableForm.keywords=encodeURIComponent(this.keywords),Object(r["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,e.$message.error(t.message)}))},pageChange:function(t){this.tableForm.page=t,this.getList()},handleSizeChange:function(t){this.tableForm.limit=t,this.getList()},toExamine:function(t){this.loading=!0,this.proInfo=t,this.id=t.id,this.dialogVisible=!0,this.loading=!1}}},C=y,S=(a("8126"),Object(d["a"])(C,i,s,!1,null,"42763a46",null));e["default"]=S.exports},d398:function(t,e,a){}}]);