"use strict";(self["webpackChunkvoghion_vue_admin"]=self["webpackChunkvoghion_vue_admin"]||[]).push([[26422],{26422:function(e,t,a){a.r(t),a.d(t,{default:function(){return d}});var o=function(){var e=this,t=e._self._c;return t("div",{staticClass:"g-pa-xl",staticStyle:{background:"white"}},[t("el-form",{attrs:{inline:!0,model:e.goodsform}},[t("el-form-item",{attrs:{label:"goods id"}},[t("el-input",{attrs:{type:"textarea",clearable:"",placeholder:"多个ID用换行分隔"},model:{value:e.goodsform.goodsIdListStr,callback:function(t){e.$set(e.goodsform,"goodsIdListStr",t)},expression:"goodsform.goodsIdListStr"}})],1),t("el-form-item",{attrs:{label:"坑位等级"}},[t("el-select",{staticStyle:{width:"256px"},attrs:{placeholder:"选择状态",clearable:""},model:{value:e.goodsform.pitLevel,callback:function(t){e.$set(e.goodsform,"pitLevel",t)},expression:"goodsform.pitLevel"}},[t("el-option",{attrs:{label:"高优先级",value:10}},[e._v("高优先级")]),t("el-option",{attrs:{label:"低优先级",value:20}},[e._v("低优先级")])],1)],1),t("el-form-item",{attrs:{label:"测试等级"}},[t("el-select",{staticStyle:{width:"256px"},attrs:{placeholder:"选择状态",clearable:""},model:{value:e.goodsform.testLevel,callback:function(t){e.$set(e.goodsform,"testLevel",t)},expression:"goodsform.testLevel"}},[t("el-option",{attrs:{label:"高优先级",value:10}},[e._v("高优先级")]),t("el-option",{attrs:{label:"低优先级",value:20}},[e._v("低优先级")])],1)],1),t("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.fetchDataSource()}}},[e._v("搜索")])],1),t("div",[t("VUpload",{attrs:{"show-file-list":!1,accept:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel",action:`${e.domain}/voghion-product/pitGoods/importPitGoods`,multiple:!1,limit:1,"on-success":e.uploadSuccessHandle}},[t("el-button",{attrs:{type:"primary"}},[e._v(" 导入 ")])],1)],1),t("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.dataSource.records},on:{"selection-change":function(t){e.selectedRows=t}}},[t("el-table-column",{attrs:{"header-align":"center",align:"center",prop:"goodsId",label:"goods id"}}),t("el-table-column",{attrs:{"header-align":"center",align:"center",prop:"pitLevel",label:"坑位优先级"},scopedSlots:e._u([{key:"default",fn:function(a){return[10===a.row.pitLevel?t("span",[e._v("高优先级")]):e._e(),20===a.row.pitLevel?t("span",[e._v("低优先级")]):e._e()]}}])}),t("el-table-column",{attrs:{"header-align":"center",align:"center",prop:"testLevel",label:"测试优先级"},scopedSlots:e._u([{key:"default",fn:function(a){return[10===a.row.testLevel?t("span",[e._v("高优先级")]):e._e(),20===a.row.testLevel?t("span",[e._v("低优先级")]):e._e()]}}])}),t("el-table-column",{attrs:{"header-align":"center",align:"center",prop:"number",label:"已展示次数"}}),t("el-table-column",{attrs:{"header-align":"center",align:"center",prop:"status",label:"测试状态"},scopedSlots:e._u([{key:"default",fn:function(a){return[10===a.row.status?t("span",[e._v("待测试")]):e._e(),20===a.row.status?t("span",[e._v("测试中")]):e._e(),30===a.row.status?t("span",[e._v("已测试")]):e._e()]}}])}),t("el-table-column",{attrs:{"header-align":"center",align:"center",prop:"showStartTime",label:"开始展示时间"}}),t("el-table-column",{attrs:{"header-align":"center",align:"center",prop:"showEndTime",label:"结束展示时间"}}),t("el-table-column",{attrs:{"header-align":"center",align:"center",prop:"operator",label:"提交人"}}),t("el-table-column",{attrs:{"header-align":"center",align:"center",prop:"source",label:"商品来源"}})],1),t("div",{staticClass:"g-pagination-container"},[t("el-pagination",{attrs:{"current-page":e.dataSource.pageNow,"page-sizes":[20,50,100],"page-size":e.dataSource.pageSize,layout:"sizes, prev, pager, next, jumper",background:"",total:e.dataSource.rowCount},on:{"size-change":function(t){return e.fetchDataSource(null,t)},"current-change":function(t){return e.fetchDataSource(t)}}})],1)],1)},l=[],r=a(7896),n={data(){return{loading:!1,exportLoading:!1,dataSource:{records:[],pageNow:1,pageSize:20,rowCount:0},goodsform:{},domain:r.bl}},mounted(){this.fetchDataSource()},methods:{async fetchDataSource(e,t){console.log(e,t),this.loading=!0;const a={...this.goodsform,pageNow:e||this.dataSource.pageNow,pageSize:t||this.dataSource.pageSize},o=await this.$store.dispatch({type:"product/pitGoodsList",payload:a});this.dataSource=o,this.loading=!1},uploadSuccessHandle(e){"0000"===e.rtn_code&&this.fetchDataSource()}}},s=n,i=a(81656),c=(0,i.A)(s,o,l,!1,null,null,null),d=c.exports}}]);