(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-e3345af0"],{"0b65":function(e,t,a){"use strict";t["a"]={shortcuts:[{text:"今天",onClick:function(e){var t=new Date,a=new Date;a.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate())),e.$emit("pick",[a,t])}},{text:"昨天",onClick:function(e){var t=new Date,a=new Date;a.setTime(a.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-1))),t.setTime(t.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-1))),e.$emit("pick",[a,t])}},{text:"最近7天",onClick:function(e){var t=new Date,a=new Date;a.setTime(a.getTime()-6048e5),e.$emit("pick",[a,t])}},{text:"最近30天",onClick:function(e){var t=new Date,a=new Date;a.setTime(a.getTime()-2592e6),e.$emit("pick",[a,t])}},{text:"本月",onClick:function(e){var t=new Date,a=new Date;a.setTime(a.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),1))),e.$emit("pick",[a,t])}},{text:"本年",onClick:function(e){var t=new Date,a=new Date;a.setTime(a.setTime(new Date((new Date).getFullYear(),0,1))),e.$emit("pick",[a,t])}}]}},"45d6":function(e,t,a){},9132:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"divBox"},[a("div",{staticClass:"selCard"},[a("el-form",{ref:"searchForm",attrs:{model:e.tableFrom,size:"small",inline:"","label-width":"85px"}},[a("el-form-item",{attrs:{label:"时间选择:"}},[a("el-date-picker",{staticStyle:{width:"280px"},attrs:{"value-format":"yyyy/MM/dd",format:"yyyy/MM/dd",size:"small",type:"daterange",placement:"bottom-end",placeholder:"自定义时间","picker-options":e.pickerOptions},on:{change:e.onchangeTime},model:{value:e.timeVal,callback:function(t){e.timeVal=t},expression:"timeVal"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"商户名称:",prop:"mer_id"}},[a("el-select",{staticClass:"selWidth",attrs:{clearable:"",filterable:"",remote:"","remote-method":e.getMerSelect,placeholder:"请选择"},on:{"visible-change":function(t){return e.getMerSelect()},change:function(t){e.getMerSelect(),e.getList(1)}},model:{value:e.tableFrom.mer_id,callback:function(t){e.$set(e.tableFrom,"mer_id",t)},expression:"tableFrom.mer_id"}},e._l(e.merSelect,(function(e){return a("el-option",{key:e.mer_id,attrs:{label:e.mer_name,value:e.mer_id}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"商户类别:",prop:"is_trader"}},[a("el-select",{staticClass:"selWidth",attrs:{clearable:"",placeholder:"请选择"},on:{change:function(t){return e.getList(1)}},model:{value:e.tableFrom.is_trader,callback:function(t){e.$set(e.tableFrom,"is_trader",t)},expression:"tableFrom.is_trader"}},[a("el-option",{attrs:{label:"自营",value:"1"}}),e._v(" "),a("el-option",{attrs:{label:"非自营",value:"0"}})],1)],1),e._v(" "),a("el-form-item",{attrs:{label:"商品搜索:",prop:"keyword"}},[a("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入商品名称/ID",clearable:""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.getList(1)}},model:{value:e.tableFrom.keyword,callback:function(t){e.$set(e.tableFrom,"keyword",t)},expression:"tableFrom.keyword"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"发起人:",prop:"user_name"}},[a("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入发起人昵称",clearable:""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.getList(1)}},model:{value:e.tableFrom.user_name,callback:function(t){e.$set(e.tableFrom,"user_name",t)},expression:"tableFrom.user_name"}})],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(t){return e.getList(1)}}},[e._v("搜索")]),e._v(" "),a("el-button",{attrs:{size:"small"},on:{click:function(t){return e.searchReset()}}},[e._v("重置")])],1)],1)],1),e._v(" "),a("el-card",{staticClass:"mt14"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],attrs:{data:e.tableData.data,size:"small"}},[a("el-table-column",{attrs:{prop:"product_assist_set_id",label:"ID","min-width":"50"}}),e._v(" "),a("el-table-column",{attrs:{label:"商户名称","min-width":"90"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.merchant?t.row.merchant.mer_name:""))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"mer_name",label:"商户类别","min-width":"90"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.merchant?a("span",{staticClass:"spBlock"},[e._v(e._s(t.row.merchant.is_trader?"自营":"非自营"))]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"助力商品图片","min-width":"90"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"demo-image__preview"},[t.row.product?a("el-image",{attrs:{src:t.row.product.image,"preview-src-list":[t.row.product.image]}}):e._e()],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"商品名称","min-width":"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.assist.store_name))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"助力价格","min-width":"90"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.assist&&t.row.assist.assistSku[0].assist_price||""))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"assist_count",label:"助力人数","min-width":"80"}}),e._v(" "),a("el-table-column",{attrs:{label:"发起人","min-width":"90"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.user&&t.row.user.nickname||""))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"create_time",label:"发起时间","min-width":"120"}}),e._v(" "),a("el-table-column",{attrs:{label:"活动时间","min-width":"160"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("开始日期:"+e._s(t.row.assist&&t.row.assist.start_time?t.row.assist.start_time.slice(0,10):""))]),e._v(" "),a("div",[e._v("结束日期:"+e._s(t.row.assist.end_time&&t.row.assist.end_time?t.row.assist.end_time.slice(0,10):""))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作","min-width":"90",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{staticClass:"mr10",attrs:{type:"text",size:"small"},on:{click:function(a){return e.goDetail(t.row.product_assist_set_id)}}},[e._v("查看详情")])]}}])})],1),e._v(" "),a("div",{staticClass:"block"},[a("el-pagination",{attrs:{background:"","page-size":e.tableFrom.limit,"current-page":e.tableFrom.page,layout:"total, prev, pager, next, jumper",total:e.tableData.total},on:{"size-change":e.handleSizeChange,"current-change":e.pageChange}})],1)],1),e._v(" "),a("details-data",{ref:"detailsData",attrs:{"is-show":e.isShowDetail}})],1)},l=[],s=a("c4c8"),n=a("83d6"),r=a("e572"),o=function(){var e=this,t=e.$createElement,a=e._self._c||t;return e.dialogVisible?a("el-dialog",{attrs:{title:"查看详情",center:"",visible:e.dialogVisible,width:"720px"},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{data:e.tableData.data,size:"small"}},[a("el-table-column",{attrs:{prop:"uid",label:"ID","min-width":"80"}}),e._v(" "),a("el-table-column",{attrs:{prop:"nickname",label:"用户名称","min-width":"120"}}),e._v(" "),a("el-table-column",{attrs:{label:"用户头像","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(e){return[a("div",{staticClass:"demo-image__preview"},[a("el-image",{staticStyle:{width:"36px",height:"36px"},attrs:{src:e.row.avatar_img,"preview-src-list":[e.row.avatar_img]}})],1)]}}],null,!1,3385799628)}),e._v(" "),a("el-table-column",{attrs:{prop:"create_time",label:"参与时间","min-width":"120"}})],1),e._v(" "),a("div",{staticClass:"block mb20"},[a("el-pagination",{attrs:{"page-size":e.tableFrom.limit,"current-page":e.tableFrom.page,layout:"prev, pager, next, jumper",total:e.tableData.total},on:{"size-change":e.handleSizeChange,"current-change":e.pageChange}})],1)],1):e._e()},c=[],m={name:"Info",props:{isShow:{type:Boolean,default:!0}},data:function(){return{id:"",loading:!1,dialogVisible:!1,tableData:{data:[],total:0},tableFrom:{page:1,limit:20}}},computed:{},methods:{getList:function(e){var t=this;this.id=e,this.listLoading=!0,Object(s["a"])(this.id,this.tableFrom).then((function(e){t.tableData.data=e.data.list,t.tableData.total=e.data.count,t.listLoading=!1})).catch((function(e){t.listLoading=!1,t.$message.error(e.message)}))},pageChange:function(e){this.tableFrom.page=e,this.getList(this.id)},handleSizeChange:function(e){this.tableFrom.limit=e,this.getList(this.id)}}},d=m,u=a("2877"),p=Object(u["a"])(d,o,c,!1,null,"b1ffbe5e",null),_=p.exports,b=a("0b65"),g={product_id:"",image:"",slider_image:[],store_name:"",store_info:"",start_day:"",end_day:"",start_time:"",end_time:"",is_open_recommend:1,is_open_state:1,is_show:1,presell_type:1,keyword:"",brand_id:"",cate_id:"",mer_cate_id:[],unit_name:"",integral:0,sort:0,is_good:0,temp_id:"",preSale_date:"",finalPayment_date:"",delivery_type:1,delivery_day:10,attrValue:[{image:"",price:null,down_price:null,presell_price:null,cost:null,ot_price:null,old_stock:null,stock:null,bar_code:"",weight:null,volume:null}],attr:[],extension_type:0,content:"",spec_type:0,is_gift_bag:0},h={name:"ProductList",components:{detailsData:_},data:function(){return{pickerOptions:b["a"],props:{emitPath:!1},roterPre:n["roterPre"],listLoading:!0,tableData:{data:[],total:0},assistStatusList:[{label:"未开始",value:0},{label:"正在进行",value:1},{label:"已结束",value:2}],fromList:r["a"],tableFrom:{page:1,limit:20,keyword:"",date:"",type:"",is_trader:"",mer_id:"",user_name:""},modals:!1,dialogVisible:!1,loading:!1,manyTabTit:{},manyTabDate:{},formValidate:Object.assign({},g),OneattrValue:[Object.assign({},g.attrValue[0])],ManyAttrValue:[Object.assign({},g.attrValue[0])],attrInfo:{},timeVal:"",isShowDetail:!1,merSelect:[]}},mounted:function(){this.getList(""),this.getMerSelect()},methods:{searchReset:function(){this.timeVal=[],this.tableFrom.date="",this.$refs.searchForm.resetFields(),this.getList(1)},getMerSelect:function(e){var t=this;Object(s["T"])({keyword:e}).then((function(e){t.merSelect=e.data})).catch((function(e){t.$message.error(e.message)}))},goDetail:function(e){this.$refs.detailsData.dialogVisible=!0,this.isShowDetail=!0,this.$refs.detailsData.getList(e)},onchangeTime:function(e){this.timeVal=e,this.tableFrom.date=e?this.timeVal.join("-"):"",this.tableFrom.page=1,this.getList("")},getList:function(e){var t=this;this.listLoading=!0,this.tableFrom.page=e||this.tableFrom.page,Object(s["b"])(this.tableFrom).then((function(e){t.tableData.data=e.data.list,t.tableData.total=e.data.count,t.listLoading=!1})).catch((function(e){t.listLoading=!1,t.$message.error(e.message)}))},pageChange:function(e){this.tableFrom.page=e,this.getList("")},handleSizeChange:function(e){this.tableFrom.limit=e,this.getList("")}}},f=h,v=(a("dfc8"),Object(u["a"])(f,i,l,!1,null,"bf93c6a4",null));t["default"]=v.exports},dfc8:function(e,t,a){"use strict";a("45d6")},e572:function(e,t,a){"use strict";a.d(t,"c",(function(){return i})),a.d(t,"a",(function(){return l})),a.d(t,"b",(function(){return s}));var i=[{label:"开启",value:1},{label:"关闭",value:0}],l={title:"选择时间",custom:!0,fromTxt:[{text:"全部",val:""},{text:"今天",val:"today"},{text:"昨天",val:"yesterday"},{text:"最近7天",val:"lately7"},{text:"最近30天",val:"lately30"},{text:"本月",val:"month"},{text:"本年",val:"year"}]},s={title:"状态",custom:!0,fromTxt:[{text:"全部",val:""},{text:"待审核",val:"0"},{text:"审核已通过",val:"1"},{text:"审核未通过",val:"2"}]}}}]);