(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1f07b286"],{"089a":function(t,n,e){"use strict";e("435a")},"1e39":function(t,n){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAB6ZJREFUeF7tndF52zYQx/+QIjl5arKBvYE9QekJEk8Qa4IqlvMc67mWo05QZ4I4ExSdoNrA6gRhnxJLgdDvJFqxKYoEaUo4QOD3+ckkcXc/HngCcXcCOUfU1S/RnL4FRAQ9O4QQLwHQXzjsWSCG1jGEGEPjE2ZKyuGL8TpxRNY/5mCfTT9Ao2tPjzByCQtcQ6l+FugVwNH5twi6+Tl4agnz8jg1BnRHDvZuHorzCHB0fncBLT7wkDdIUckCQvfl5d7F/bVLwFHv7g0gyHPD4boFhDqWly8kqTEHHHW/7aPZ/CdMy66TXcofQ7UO5FDEC8C9yZ8ATr1RLyhCrjuUl+13IvHe22ATDy2gWq9EdDY5hQB5cDj8s0BXRL3JXzRL+6db0AgQNyI6u7uFEPvBHB5aQOsxefDXED17CHehUkyAtbfqBcUQAHv+EATAAbDnFvBcveDBAbDnFvBcveDBAbDnFvBcveDBAbDnFvBcveDBAbDnFvBcveDBAbDnFvBcveDBAbDnFvBcveDBAbDnFvBcPd89WEKIEfTsbzTEGFMVU4LWPLkO31/iGfYxa+5DiNeApo2H3mVO+giY0iv/wKw9pJ39ZRw0Sbx761MSgE+AxxCqc5+TUwZs+twkGYCS8JzP9vADsMAQP1r9sh5b9BAkSQEE2tltxe4D1ujIq/Z1HqzEI3+F1gdoNH7BbPYfhPgK6H+h2jLvwUiupcwPJ5MD3AacA3f+PsWz19Captmi4ElSOYS8B8XVBD13AevZO3n1fLjm/VnV46juRX8daBchuwr4Wg7anRW4i0S6jwYeW/T6lVCqk655kRSloTxqZ97JLgIeQ6njFePXX35izTjzGiaUsOfE4R5grfvy6mcNCrLyBlNgsyH3pp8B/cYFwu4BVurgofcmUS551KamTSkH7e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8iaS4RNE/AHkTSXCJonoAdj6Rt5gJnffng9MH/p3wlsga4fVWK6i9M/iQVeQIGjLelPkn7mi/mUHQlrRJXwCRnqQSvmlmVvl2SDUGFUVnVkOYMmIzsRAWeqDs5RBOU0soKLt8ga9V/rgH9paiJVWm3e8IF8+mYmlvqJuteh9w9+AkIwqUueXCgVdECwYMrGs6VywJgV0hVlDMArmg4Vy4LgF0hVVHOALii4Vy5LAB2hVRFOQPgioZz5bIA2BVSFeUMgCsazpXLAmBXSFWUMwCuaDhXLguAXSFVUc4AuKLhXLksAHaFVEU5CTA1i2DfZLGifrt+WSyis7tbCLHpFum7bmg7+ms9Fpx24duxgtejSpqiqQ/u0Gs1d1U5jY4wLH69qyZyW2+lDuZdx6LzyUdodN3WJkifssC1HLQ7C8DUF6g5vQ3RtDcPyTIzZNk3MCqqpu6N7rugiD6Rg70b0vRRY0huiVO7gKJ2HYXuy8u9i/v7rnT+TMoPUBpGWPyo3fobvWEMoU7k5Qv5cJTM1q5Jlhz1RTjdqEjh5vVYQGCIH61+VluD3N69y94IAm+h5/0RyKuDZ9eDpepdYmgdQzRGgJZQrU95/Sr+Bwd9JPjkf/SRAAAAAElFTkSuQmCC"},"435a":function(t,n,e){},a4a1:function(t,n,e){"use strict";e.r(n);var r=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"divBox"},[e("div",{staticClass:"selCard"},[e("el-form",{ref:"searchForm",attrs:{model:t.tableFrom,size:"small",inline:"","label-width":"90px"}},[e("el-form-item",{attrs:{label:"套餐类型:",prop:"type"}},[e("el-select",{staticClass:"selWidth",attrs:{placeholder:"请选择套餐类型",clearable:""},on:{change:function(n){return t.getList("")}},model:{value:t.tableFrom.type,callback:function(n){t.$set(t.tableFrom,"type",n)},expression:"tableFrom.type"}},[e("el-option",{attrs:{value:"0",label:"固定套餐"}},[t._v("固定套餐")]),t._v(" "),e("el-option",{attrs:{value:"1",label:"搭配套餐"}},[t._v("搭配套餐")])],1)],1),t._v(" "),e("el-form-item",{attrs:{label:"套餐状态:",prop:"status"}},[e("el-select",{staticClass:"selWidth",attrs:{placeholder:"请选择",clearable:""},on:{change:function(n){return t.getList(1)}},model:{value:t.tableFrom.status,callback:function(n){t.$set(t.tableFrom,"status",n)},expression:"tableFrom.status"}},[e("el-option",{attrs:{value:"",label:"全部"}},[t._v("全部")]),t._v(" "),e("el-option",{attrs:{value:"1",label:"上架"}},[t._v("上架")]),t._v(" "),e("el-option",{attrs:{value:"0",label:"下架"}},[t._v("下架")])],1)],1),t._v(" "),e("el-form-item",{attrs:{label:"套餐搜索:",prop:"title"}},[e("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入套餐名称"},nativeOn:{keyup:function(n){return!n.type.indexOf("key")&&t._k(n.keyCode,"enter",13,n.key,"Enter")?null:t.getList(1)}},model:{value:t.tableFrom.title,callback:function(n){t.$set(t.tableFrom,"title",n)},expression:"tableFrom.title"}})],1),t._v(" "),e("el-form-item",[e("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(n){return t.getList(1)}}},[t._v("搜索")]),t._v(" "),e("el-button",{attrs:{size:"small"},on:{click:function(n){return t.searchReset()}}},[t._v("重置")])],1)],1)],1),t._v(" "),e("el-card",{staticClass:"mt14"},[e("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],attrs:{data:t.tableData.data,size:"small"}},[e("el-table-column",{attrs:{label:"ID",prop:"discount_id","min-width":"80"}}),t._v(" "),e("el-table-column",{attrs:{label:"套餐名称",prop:"title","min-width":"150"}}),t._v(" "),e("el-table-column",{attrs:{label:"套餐类型","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(n){return[t._v("\n "+t._s(0==n.row.type?"固定套餐":"搭配套餐")+"\n ")]}}])}),t._v(" "),e("el-table-column",{attrs:{label:"显示状态","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("el-switch",{attrs:{"active-value":1,"inactive-value":0,"active-text":"显示","inactive-text":"隐藏"},on:{change:function(e){return t.onchangeIsShow(n.row)}},model:{value:n.row.status,callback:function(e){t.$set(n.row,"status",e)},expression:"scope.row.status"}})]}}])}),t._v(" "),e("el-table-column",{attrs:{label:"限时","min-width":"150"},scopedSlots:t._u([{key:"default",fn:function(n){return[0==n.row.start_time?e("div",[t._v("不限时")]):e("div",[e("div",[t._v("起:"+t._s(n.row.start_time||"--"))]),t._v(" "),e("div",[t._v("止:"+t._s(n.row.stop_time||"--"))])])]}}])}),t._v(" "),e("el-table-column",{attrs:{label:"创建时间",prop:"create_time","min-width":"120"}}),t._v(" "),e("el-table-column",{attrs:{label:"剩余数量","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(n){return[t._v("\n "+t._s(n.row.is_limit?n.row.limit_num:"不限量")+"\n ")]}}])}),t._v(" "),e("el-table-column",{attrs:{label:"操作","min-width":"60"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("el-button",{attrs:{type:"text",size:"small"},on:{click:function(e){return t.handleDetail(n.row.discount_id)}}},[t._v("查看")])]}}])})],1),t._v(" "),e("div",{staticClass:"block"},[e("el-pagination",{attrs:{background:"","page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"total, prev, pager, next, jumper",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1),t._v(" "),t.dialogVisible?e("el-drawer",{attrs:{"with-header":!1,visible:t.dialogVisible,size:"1000px"},on:{"update:visible":function(n){t.dialogVisible=n}}},[e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.dialogLoading,expression:"dialogLoading"}]},[e("div",{staticClass:"head"},[e("div",{staticClass:"full"},[e("img",{staticClass:"order_icon",attrs:{src:t.orderImg,alt:""}}),t._v(" "),e("div",{staticClass:"text"},[e("div",{staticClass:"title"},[t._v(t._s(t.formValidate.title))])])]),t._v(" "),e("ul",{staticClass:"list"},[e("li",{staticClass:"item"},[e("div",{staticClass:"title"},[t._v("套餐数量")]),t._v(" "),e("div",[t._v(t._s(t.formValidate.is_limit?t.formValidate.limit_num:"不限量"))])]),t._v(" "),e("li",{staticClass:"item"},[e("div",{staticClass:"title"},[t._v("显示状态")]),t._v(" "),e("div",[t._v(t._s(1===t.formValidate.status?"显示":"不显示"))])]),t._v(" "),e("li",{staticClass:"item"},[e("div",{staticClass:"title"},[t._v("活动开始时间")]),t._v(" "),e("div",[t._v(t._s(t.formValidate.is_time?t.formValidate.time[0]:"不限时"))])]),t._v(" "),e("li",{staticClass:"item"},[e("div",{staticClass:"title"},[t._v("活动结束时间")]),t._v(" "),e("div",[t._v(t._s(t.formValidate.is_time?t.formValidate.time[1]:"不限时"))])]),t._v(" "),e("li",{staticClass:"item"},[e("div",{staticClass:"title"},[t._v("创建时间")]),t._v(" "),e("div",[t._v(t._s(t.formValidate.create_time))])])])]),t._v(" "),e("div",{staticClass:"box-container"},[e("div",[1==t.formValidate.type?e("div",{staticClass:"list mt10"},[e("div",{staticClass:"title"},[t._v("套餐主商品")]),t._v(" "),e("div",[e("el-table",{staticClass:"mt20",attrs:{data:t.specsMainData,size:"small"}},[e("el-table-column",{attrs:{prop:"store_name",label:"商品名称","min-width":"200"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("div",{staticClass:"product-data"},[n.row.product?e("img",{staticClass:"image",attrs:{src:n.row.product.image}}):t._e(),t._v(" "),e("div",[t._v(t._s(n.row.product&&n.row.product.store_name))])])]}}],null,!1,890357165)}),t._v(" "),e("el-table-column",{attrs:{label:"参与规格","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(n){return t._l(n.row.attr,(function(n,r){return e("div",{key:r},[t._v("\n "+t._s(n.sku)+" | "+t._s(n.price)+"\n ")])}))}}],null,!1,813047995)})],1)],1)]):t._e(),t._v(" "),e("div",{staticClass:"list mt10"},[e("label",{staticClass:"title"},[t._v("套餐搭配商品")]),t._v(" "),e("div",{staticClass:"labeltop"},[e("el-table",{staticClass:"mt20",attrs:{data:t.specsData,size:"small"}},[e("el-table-column",{attrs:{prop:"store_name",label:"商品名称","min-width":"200"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("div",{staticClass:"product-data"},[n.row.product?e("img",{staticClass:"image",attrs:{src:n.row.product.image}}):t._e(),t._v(" "),e("div",[t._v(t._s(n.row.product&&n.row.product.store_name))])])]}}],null,!1,890357165)}),t._v(" "),e("el-table-column",{attrs:{label:"参与规格","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(n){return t._l(n.row.attr,(function(n,r){return e("div",{key:r},[t._v("\n "+t._s(n.sku)+" | "+t._s(n.price)+"\n ")])}))}}],null,!1,813047995)})],1)],1)])])])])]):t._e()],1)},o=[],a=e("c80c"),i=(e("96cf"),e("3b8d")),u=e("b7be"),c=e("61f7"),s=e("83d6"),l={name:"Discounts",filters:{formatDate:function(t){if(0!==t){var n=new Date(1e3*t);return Object(c["formatDate"])(n,"yyyy-MM-dd hh:mm")}}},data:function(){return{loading:!1,dialogLoading:!1,roterPre:s["roterPre"],dialogVisible:!1,orderImg:e("1e39"),tableData:{data:[],total:0},tableFrom:{status:"",title:"",page:1,type:"",limit:15},specsMainData:[],specsData:[],formValidate:{title:"",type:0,image:"",is_time:0,is_limit:0,limit_num:0,link_ids:[],time:[],sort:0,free_shipping:1,status:1,products:[]}}},computed:{},created:function(){this.getList("")},methods:{searchReset:function(){this.$refs.searchForm.resetFields(),this.getList(1)},handleDetail:function(t){var n=this;this.dialogVisible=!0,this.dialogLoading=!0,this.specsMainData=[],this.specsData=[],Object(u["bb"])(t).then((function(t){n.formValidate=t.data,n.formValidate.time=t.data.time||[],n.dialogLoading=!1;for(var e=0;e