(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-41f677e1"],{"119e":function(t,e,a){},"59f4":function(t,e,a){"use strict";a.r(e);var r=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",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["merchant:pay:component:product:draft:list"],expression:"['merchant:pay:component:product:draft:list']"}],staticClass:"container"},[a("el-form",{attrs:{inline:""}},[a("el-form-item",{attrs:{label:"商品名称:"}},[a("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入商品名称",clearable:""},model:{value:t.search,callback:function(e){t.search=e},expression:"search"}},[a("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["merchant:pay:component:product:draft:list"],expression:"['merchant:pay:component:product:draft:list']"}],attrs:{slot:"append",icon:"el-icon-search"},on:{click:function(e){return t.getList(1)}},slot:"append"})],1)],1)],1)],1),t._v(" "),a("router-link",{attrs:{to:{path:"/videoChannel/creatVideoChannel"}}},[a("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["merchant:pay:component:product:draft:add"],expression:"['merchant:pay:component:product:draft:add']"}],staticClass:"mr10",attrs:{size:"small",type:"primary"}},[t._v("添加视频号商品")])],1)],1),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:t.tableData.data,size:"mini","header-cell-style":{fontWeight:"bold"}}},[a("el-table-column",{attrs:{prop:"id",label:"Id",width:"40"}}),t._v(" "),a("el-table-column",{attrs:{label:"名称",prop:"title","min-width":"300"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-popover",{attrs:{trigger:"hover",placement:"right","open-delay":800}},[a("div",{staticClass:"text_overflow",attrs:{slot:"reference"},slot:"reference"},[t._v(t._s(e.row.title))]),t._v(" "),a("div",{staticClass:"pup_card"},[t._v(t._s(e.row.title))])])]}}])}),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:JSON.parse(t.row.headImg)[0],"preview-src-list":JSON.parse(t.row.headImg)}})],1)]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"类目","min-width":"150",prop:"thirdCatName",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{prop:"sales",label:"销量","min-width":"80",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{prop:"stock",label:"库存","min-width":"80",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{label:"微信审核","min-width":"90",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("editStatusFilter")(e.row.editStatus)))]),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:3===e.row.editStatus,expression:"scope.row.editStatus === 3"}],staticClass:"fontColor3"},[t._v("\n 拒绝原因:"+t._s(e.row.platformStatusReason)+"\n ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"平台审核","min-width":"140",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("platformStatusFilter")(e.row.platformEditStatus)))]),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:3===e.row.platformEditStatus,expression:"scope.row.platformEditStatus === 3"}],staticClass:"fontColor3"},[t._v("\n 拒绝原因:"+t._s(e.row.platformStatusReason)+"\n ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"创建时间",prop:"addTime","min-width":"140"}}),t._v(" "),a("el-table-column",{attrs:{label:"操作","min-width":"130",fixed:"right",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("router-link",{directives:[{name:"show",rawName:"v-show",value:1===e.row.platformEditStatus||3===e.row.platformEditStatus||3===e.row.editStatus,expression:"\n scope.row.platformEditStatus === 1 || scope.row.platformEditStatus === 3 || scope.row.editStatus === 3\n "}],attrs:{to:{path:"/videoChannel/creatVideoChannel/"+e.row.id}}},[a("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["merchant:pay:component:product:draft:update"],expression:"['merchant:pay:component:product:draft:update']"}],attrs:{type:"text",size:"small"}},[t._v("编辑")])],1),t._v(" "),a("router-link",{attrs:{to:{path:"/videoChannel/creatVideoChannel/"+e.row.id+"/1"}}},[a("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["merchant:pay:component:product:draft:info"],expression:"['merchant:pay:component:product:draft:info']"}],attrs:{type:"text",size:"small"}},[t._v("详情")])],1),t._v(" "),a("el-button",{directives:[{name:"show",rawName:"v-show",value:2!==e.row.platformEditStatus,expression:"scope.row.platformEditStatus !== 2"},{name:"hasPermi",rawName:"v-hasPermi",value:["merchant:pay:component:product:draft:delete"],expression:"['merchant:pay:component:product:draft:delete']"}],attrs:{size:"small",type:"text"},on:{click:function(a){return t.handlerOpenDel(e.row)}}},[t._v("删除")]),t._v(" "),a("el-button",{directives:[{name:"show",rawName:"v-show",value:1===e.row.platformEditStatus||3===e.row.platformEditStatus,expression:"scope.row.platformEditStatus === 1 || scope.row.platformEditStatus === 3"},{name:"hasPermi",rawName:"v-hasPermi",value:["merchant:pay:component:product:draft:review"],expression:"['merchant:pay:component:product:draft:review']"}],attrs:{size:"small",type:"text"},on:{click:function(a){return t.handlerReview(e.row,2)}}},[t._v("提审")]),t._v(" "),a("el-button",{directives:[{name:"show",rawName:"v-show",value:2===e.row.platformEditStatus,expression:"scope.row.platformEditStatus === 2"},{name:"hasPermi",rawName:"v-hasPermi",value:["merchant:pay:component:product:draft:review"],expression:"['merchant:pay:component:product:draft:review']"}],attrs:{size:"small",type:"text"},on:{click:function(a){return t.handlerReview(e.row,1)}}},[t._v("撤回申请")])]}}])})],1),t._v(" "),a("div",{staticClass:"block mb20"},[a("el-pagination",{attrs:{"page-sizes":[10,20,30,40],"page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"total, sizes, prev, pager, next, jumper",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1)],1)},s=[],o=a("b7be"),i=a("e350"),n={name:"videoList",data:function(){return{listLoading:!1,tableData:{data:[],total:0},tableFrom:{page:1,limit:20,proId:"",search:""},search:""}},mounted:function(){Object(i["a"])(["merchant:pay:component:product:draft:list"])&&this.getList()},methods:{checkPermi:i["a"],handlerOpenDel:function(t){var e=this;this.$modalSure("删除当前数据").then((function(){Object(o["g"])(t.id).then((function(t){e.$message.success("删除数据成功"),e.getList()}))}))},handlerReview:function(t,e){var a=this;this.$modalSure(2===e?"提审商品至平台吗?":"撤回申请吗?").then((function(){Object(o["j"])({draftProductId:t.id,platformEditStatus:e}).then((function(t){a.$message.success("提交成功"),a.getList()}))}))},getList:function(t){var e=this;this.listLoading=!0,this.tableFrom.page=t||this.tableFrom.page,this.tableFrom.search=encodeURIComponent(this.search),Object(o["i"])(this.tableFrom).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.tableFrom.page=t,this.getList()},handleSizeChange:function(t){this.tableFrom.limit=t,this.getList()}}},l=n,c=(a("ad21"),a("2877")),d=Object(c["a"])(l,r,s,!1,null,"43419fc0",null);e["default"]=d.exports},ad21:function(t,e,a){"use strict";a("119e")}}]);