chunk-6f275f10.c40b8ea7.js 25 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6f275f10"],{"504c":function(t,e,a){var r=a("9e1e"),n=a("0d58"),l=a("6821"),s=a("52a7").f;t.exports=function(t){return function(e){var a,o=l(e),i=n(o),u=i.length,c=0,d=[];while(u>c)a=i[c++],r&&!s.call(o,a)||d.push(t?[a,o[a]]:o[a]);return d}}},"6ece":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",{staticClass:"container"},[a("el-form",{attrs:{size:"small","label-width":"120px",inline:""}},[a("el-form-item",{staticStyle:{display:"block"},attrs:{label:"状态:"}},[a("el-radio-group",{staticClass:"mr20",attrs:{type:"button",size:"small",clearable:""},on:{change:function(e){return t.getList(1)}},model:{value:t.tableFrom.product_status,callback:function(e){t.$set(t.tableFrom,"product_status",e)},expression:"tableFrom.product_status"}},t._l(t.fromList.fromTxt,(function(e,r){return a("el-radio-button",{key:r,attrs:{label:e.val}},[t._v(t._s(e.text))])})),1)],1),t._v(" "),a("el-form-item",{attrs:{label:"预售活动状态:"}},[a("el-select",{staticClass:"filter-item selWidth",attrs:{placeholder:"请选择",clearable:""},on:{change:function(e){return t.getList(1)}},model:{value:t.tableFrom.type,callback:function(e){t.$set(t.tableFrom,"type",e)},expression:"tableFrom.type"}},t._l(t.preSaleStatusList,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1),t._v(" "),a("el-form-item",{attrs:{label:"活动商品状态:"}},[a("el-select",{staticClass:"filter-item selWidth",attrs:{placeholder:"请选择",clearable:""},on:{change:t.getList},model:{value:t.tableFrom.us_status,callback:function(e){t.$set(t.tableFrom,"us_status",e)},expression:"tableFrom.us_status"}},t._l(t.productStatusList,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1),t._v(" "),a("el-form-item",{attrs:{label:"关键字搜索:"}},[a("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入预售商品名称/ID"},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.tableFrom.keyword,callback:function(e){t.$set(t.tableFrom,"keyword",e)},expression:"tableFrom.keyword"}},[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-tabs",{on:{"tab-click":function(e){return t.getList(1)}},model:{value:t.tableFrom.presell_type,callback:function(e){t.$set(t.tableFrom,"presell_type",e)},expression:"tableFrom.presell_type"}},t._l(t.headeNum,(function(t,e){return a("el-tab-pane",{key:e,attrs:{name:t.presell_type.toString(),label:t.title+"("+t.count+")"}})})),1),t._v(" "),a("router-link",{attrs:{to:{path:t.roterPre+"/marketing/presell/create"}}},[a("el-button",{attrs:{size:"small",type:"primary"}},[a("i",{staticClass:"add"},[t._v("+")]),t._v(" 添加预售商品\n ")])],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:"mini","row-class-name":t.tableRowClassName},on:{rowclick:function(e){return e.stopPropagation(),t.closeEdit(e)}}},[a("el-table-column",{attrs:{prop:"product_presell_id",label:"ID","min-width":"50"}}),t._v(" "),a("el-table-column",{attrs:{label:"商品图","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(t){return[a("div",{staticClass:"demo-image__preview"},[a("el-image",{attrs:{src:t.row.product.image,"preview-src-list":[t.row.product.image]}})],1)]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"store_name",label:"商品名称","min-width":"120"}}),t._v(" "),a("el-table-column",{attrs:{prop:"price",label:"预售价","min-width":"90"}}),t._v(" "),a("el-table-column",{attrs:{label:"预售活动状态","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(0===e.row.presell_status?"未开始":1===e.row.presell_status?"正在进行":"已结束"))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"预售活动日期","min-width":"160"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v("开始日期:"+t._s(e.row.start_time&&e.row.start_time?e.row.start_time.slice(0,10):""))]),t._v(" "),a("div",[t._v("结束日期:"+t._s(e.row.end_time&&e.row.end_time?e.row.end_time.slice(0,10):""))])]}}])}),t._v(" "),"1"===t.tableFrom.presell_type?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(e.row.tattend_one&&e.row.tattend_one.pay)+" / "+t._s(e.row.tattend_one&&e.row.tattend_one.all))])]}}],null,!1,2898212109)}):t._e(),t._v(" "),"2"===t.tableFrom.presell_type?a("el-table-column",{attrs:{label:"第一阶段 | 成功/参与人次","render-header":t.renderheader,"min-width":"90",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.tattend_one&&e.row.tattend_one.pay)+" / "+t._s(e.row.tattend_one&&e.row.tattend_one.all))])]}}],null,!1,2898212109)}):t._e(),t._v(" "),"2"===t.tableFrom.presell_type?a("el-table-column",{attrs:{label:"第二阶段 | 成功/参与人次","render-header":t.renderheader,"min-width":"90",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.tattend_two&&e.row.tattend_two.pay)+" / "+t._s(e.row.tattend_two&&e.row.tattend_two.all))])]}}],null,!1,649476621)}):t._e(),t._v(" "),a("el-table-column",{attrs:{prop:"seles",label:"已售商品数","min-width":"90"}}),t._v(" "),a("el-table-column",{attrs:{prop:"stock_count",label:"限量","min-width":"90"}}),t._v(" "),a("el-table-column",{attrs:{prop:"stock",label:"限量剩余","min-width":"90"}}),t._v(" "),a("el-table-column",{attrs:{prop:"status",label:"上/下架","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-switch",{attrs:{"active-value":1,"inactive-value":0,"active-text":"上架","inactive-text":"下架"},on:{change:function(a){return t.onchangeIsShow(e.row)}},model:{value:e.row.is_show,callback:function(a){t.$set(e.row,"is_show",a)},expression:"scope.row.is_show"}})]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"stock",label:"商品状态","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("productStatusFilter")(e.row.us_status)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"product.sort",align:"center",label:"排序","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.index===t.tabClickIndex?a("span",[a("el-input",{attrs:{type:"number",maxlength:"300",size:"mini",autofocus:""},on:{blur:function(a){return t.inputBlur(e)}},model:{value:e.row["product"]["sort"],callback:function(a){t.$set(e.row["product"],"sort",t._n(a))},expression:"scope.row['product']['sort']"}})],1):a("span",{on:{dblclick:function(a){return a.stopPropagation(),t.tabClick(e.row)}}},[t._v(t._s(e.row["product"]["sort"]))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"审核状态","min-width":"130"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(0===e.row.product_status?"待审核":1===e.row.product_status?"审核通过":"审核失败"))]),t._v(" "),-1===e.row.product_status||-2===e.row.product_status?a("span",{staticStyle:{"font-size":"12px"}},[a("br"),t._v("\n 原因:"+t._s(e.row.refusal)+"\n ")]):t._e()]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作","min-width":"150",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[0===e.row.presell_status?a("router-link",{attrs:{to:{path:t.roterPre+"/marketing/presell/create/"+e.row.product_presell_id}}},[a("el-button",{staticClass:"mr10",attrs:{type:"text",size:"small"}},[t._v("编辑")])],1):t._e(),t._v(" "),a("el-button",{staticClass:"mr10",attrs:{type:"text",size:"small"},on:{click:function(a){return t.goDetail(e.row.product_presell_id)}}},[t._v("查看详情")]),t._v(" "),1!==e.row.product.presell_status?a("el-button",{staticClass:"mr10",attrs:{type:"text",size:"small"},on:{click:function(a){return t.handleDelete(e.row.product_presell_id,e.$index)}}},[t._v("删除")]):t._e()]}}])})],1),t._v(" "),a("div",{staticClass:"block"},[a("el-pagination",{attrs:{"page-sizes":[20,40,60,80],"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),t._v(" "),t.dialogVisible?a("el-dialog",{attrs:{title:"预售商品详情",center:"",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"}],staticStyle:{"margin-top":"5px"}},[a("div",{staticClass:"box-container"},[a("div",{staticClass:"title"},[t._v("基本信息")]),t._v(" "),a("div",{staticClass:"acea-row"},[a("div",{staticClass:"list sp"},[a("label",{staticClass:"name"},[t._v("商品ID:")]),t._v(t._s(t.formValidate.product_id))]),t._v(" "),a("div",{staticClass:"list sp"},[a("label",{staticClass:"name"},[t._v("商品名称:")]),a("span",[t._v(t._s(t.formValidate.store_name))])]),t._v(" "),a("div",{staticClass:"list sp100 image"},[a("label",{staticClass:"name"},[t._v("商品图:")]),t._v(" "),a("img",{staticStyle:{"max-width":"150px",height:"80px"},attrs:{src:t.formValidate.image}})]),t._v(" "),a("div",{staticClass:"list sp100"},[a("label",{staticClass:"name"},[t._v("商品信息")]),t._v(" "),0===t.formValidate.spec_type?a("div",[a("el-table",{staticClass:"tabNumWidth",attrs:{data:t.OneattrValue,border:"",size:"mini"}},[a("el-table-column",{attrs:{align:"center",label:"预售价格","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row["presell_price"]))])]}}],null,!1,1547007341)}),t._v(" "),2===t.formValidate.presell_type?a("el-table-column",{attrs:{align:"center",label:"预售定金","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row["down_price"]))])]}}],null,!1,2160669390)}):t._e(),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"已售商品数量","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row["sales"]))])]}}],null,!1,703426790)})],1)],1):t._e(),t._v(" "),1===t.formValidate.spec_type?a("div",{staticClass:"labeltop",attrs:{label:"规格列表:"}},[a("el-table",{attrs:{data:t.ManyAttrValue,height:"260","tooltip-effect":"dark","row-key":function(t){return t.id}}},[t.manyTabDate?t._l(t.manyTabDate,(function(e,r){return a("el-table-column",{key:r,attrs:{align:"center",label:t.manyTabTit[r].title,"min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{staticClass:"priceBox",domProps:{textContent:t._s(e.row[r])}})]}}],null,!0)})})):t._e(),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"预售价格","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row["presell_price"]))])]}}],null,!1,1547007341)}),t._v(" "),2===t.formValidate.presell_type?a("el-table-column",{attrs:{align:"center",label:"预售定金","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row["down_price"]))])]}}],null,!1,2160669390)}):t._e(),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"已售商品数量","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row["sales"]))])]}}],null,!1,703426790)})],2)],1):t._e()])]),t._v(" "),a("div",{staticClass:"title",staticStyle:{"margin-top":"20px"}},[t._v("预售商品活动信息")]),t._v(" "),a("div",{staticClass:"acea-row"},[a("div",{staticClass:"list sp100"},[a("label",{staticClass:"name"},[t._v("预售简介:")]),t._v(t._s(t.formValidate.store_info))]),t._v(" "),a("div",{staticClass:"list sp100"},[a("label",{staticClass:"name"},[t._v("预售活动日期:")]),t._v(t._s(t.formValidate.start_time+"-"+t.formValidate.end_time))]),t._v(" "),2===t.formValidate.presell_type?a("div",{staticClass:"list sp100"},[a("label",{staticClass:"name"},[t._v("尾款支付日期:")]),t._v(t._s(t.formValidate.final_start_time+"-"+t.formValidate.final_end_time))]):t._e(),t._v(" "),a("div",{staticClass:"list sp"},[a("label",{staticClass:"name"},[t._v("审核状态:")]),t._v(t._s(1===t.formValidate.product_status?"审核通过":0===t.formValidate.product_status?"未审核":"审核未通过"))]),t._v(" "),1===t.formValidate.presell_type?a("div",{staticClass:"list sp"},[a("label",{staticClass:"name"},[t._v("预售成功/参与人次:")]),t._v(t._s((t.formValidate.tattend_one&&t.formValidate.tattend_one.pay)+"/"+(t.formValidate.tattend_one&&t.formValidate.tattend_one.all)))]):t._e(),t._v(" "),a("div",{staticClass:"list sp"},[a("label",{staticClass:"name"},[t._v("限量:")]),t._v(t._s(t.formValidate.stock_count))]),t._v(" "),a("div",{staticClass:"list sp"},[a("label",{staticClass:"name"},[t._v("限量剩余:")]),t._v(t._s(t.formValidate.stock))]),t._v(" "),a("div",{staticClass:"list sp"},[a("label",{staticClass:"name"},[t._v("限购件数:")]),t._v(t._s(t.formValidate.pay_count)+"(0为不限制购买数量)")]),t._v(" "),2===t.formValidate.presell_type?a("div",{staticClass:"list sp"},[a("label",{staticClass:"name"},[t._v("第一阶段(定金支付)成功/参与人次:")]),t._v(t._s((t.formValidate.tattend_one&&t.formValidate.tattend_one.pay)+"/"+(t.formValidate.tattend_one&&t.formValidate.tattend_one.all)))]):t._e(),t._v(" "),2===t.formValidate.presell_type?a("div",{staticClass:"list sp"},[a("label",{staticClass:"name"},[t._v("第二阶段(尾款支付)成功/参与人次:")]),t._v(t._s((t.formValidate.tattend_two&&t.formValidate.tattend_two.pay)+"/"+(t.formValidate.tattend_two&&t.formValidate.tattend_two.all)))]):t._e(),t._v(" "),2===t.formValidate.presell_type?a("div",{staticClass:"list sp"},[a("label",{staticClass:"name"},[t._v("发货时间:")]),t._v(t._s("支付尾款后"+t.formValidate.delivery_day+"天内"))]):t._e(),t._v(" "),1===t.formValidate.presell_type?a("div",{staticClass:"list sp"},[a("label",{staticClass:"name"},[t._v("发货时间:")]),t._v(t._s(1===t.formValidate.delivery_type?"支付成功后"+t.formValidate.delivery_day+"天内":"预售结束后"+t.formValidate.delivery_day+"天内"))]):t._e(),t._v(" "),a("div",{staticClass:"list sp"},[a("label",{staticClass:"name"},[t._v("预售活动状态:")]),t._v(t._s(0===t.formValidate.presell_status?"未开始":1===t.formValidate.presell_status?"正在进行":"已结束"))]),t._v(" "),a("div",{staticClass:"list sp"},[a("label",{staticClass:"name"},[t._v("显示状态:")]),t._v(t._s(1===t.formValidate.is_show?"显示":"隐藏"))]),t._v(" "),a("div",{staticClass:"list sp"},[a("label",{staticClass:"name"},[t._v("创建时间:")]),t._v(t._s(t.formValidate.create_time))])])])])]):t._e()],1)},n=[],l=(a("96cf"),a("3b8d")),s=(a("8615"),a("ac6a"),a("28a5"),a("55dd"),a("c4c8")),o=a("b7be"),i=a("83d6"),u=(a("f8b7"),{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,create_time:"",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,tattend_two:{},tattend_one:{}}),c={name:"ProductList",data:function(){return{headeNum:[{count:0,presell_type:1,title:"全款预售"},{count:0,presell_type:2,title:"定金预售"}],props:{emitPath:!1},roterPre:i["roterPre"],listLoading:!0,tableData:{data:[],total:0},preSaleStatusList:[{label:"未开始",value:0},{label:"正在进行",value:1},{label:"已结束",value:2}],productStatusList:[{label:"上架显示",value:1},{label:"下架",value:0},{label:"平台关闭",value:-1}],fromList:{custom:!0,fromTxt:[{text:"全部",val:""},{text:"待审核",val:"0"},{text:"已审核",val:"1"},{text:"审核失败",val:"-1"}]},tableFrom:{page:1,limit:20,keyword:"",product_status:this.$route.query.status?this.$route.query.status:"",type:"",presell_type:this.$route.query.type?this.$route.query.type:"1",us_status:"",product_presell_id:this.$route.query.id?this.$route.query.id:""},product_presell_id:this.$route.query.id?this.$route.query.id:"",modals:!1,dialogVisible:!1,loading:!0,manyTabTit:{},manyTabDate:{},formValidate:Object.assign({},u),OneattrValue:[Object.assign({},u.attrValue[0])],ManyAttrValue:[Object.assign({},u.attrValue[0])],attrInfo:{},tabClickIndex:""}},watch:{product_presell_id:function(t,e){this.getList("")},$route:function(t,e){this.$route.query.product_presell_id&&this.getList("")}},mounted:function(){this.getList("")},methods:{tableRowClassName:function(t){var e=t.row,a=t.rowIndex;e.index=a},tabClick:function(t){this.tabClickIndex=t.index},inputBlur:function(t){var e=this;(!t.row.product.sort||t.row.product.sort<0)&&(t.row.product.sort=0),Object(o["K"])(t.row.product_presell_id,{sort:t.row.product.sort}).then((function(t){e.closeEdit()})).catch((function(t){}))},closeEdit:function(){this.tabClickIndex=null},renderheader:function(t,e){var a=e.column;e.$index;return t("span",{},[t("span",{},a.label.split("|")[0]),t("br"),t("span",{},a.label.split("|")[1])])},watCh:function(t){var e=this,a={},r={};this.formValidate.attr.forEach((function(t,e){a["value"+e]={title:t.value},r["value"+e]=""})),this.ManyAttrValue.forEach((function(t,a){var r=Object.values(t.detail).sort().join("/");e.attrInfo[r]&&(e.ManyAttrValue[a]=e.attrInfo[r])})),this.attrInfo={},this.ManyAttrValue.forEach((function(t){e.attrInfo[Object.values(t.detail).sort().join("/")]=t})),this.manyTabTit=a,this.manyTabDate=r},goDetail:function(t){var e=this;this.dialogVisible=!0,this.loading=!0,this.formValidate={},Object(s["s"])(t).then(function(){var t=Object(l["a"])(regeneratorRuntime.mark((function t(a){var r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.loading=!1,r=a.data,e.formValidate={product_id:r.product.product_id,image:r.product.image,slider_image:r.product.slider_image,store_name:r.store_name,store_info:r.store_info,presell_type:r.presell_type?r.presell_type:1,delivery_type:r.delivery_type?r.delivery_type:1,delivery_day:r.delivery_day?r.delivery_day:10,start_time:r.start_time?r.start_time:"",end_time:r.end_time?r.end_time:"",final_start_time:r.final_start_time?r.final_start_time:"",final_end_time:r.final_end_time?r.final_end_time:"",brand_id:r.product.brand_id,cate_id:r.cate_id?r.cate_id:"",mer_cate_id:r.mer_cate_id,unit_name:r.product.unit_name,sort:r.product.sort,is_good:r.product.is_good,temp_id:r.product.temp_id,is_show:r.is_show,attr:r.product.attr,extension_type:r.extension_type,content:r.content,spec_type:r.product.spec_type,is_gift_bag:r.product.is_gift_bag,tattend_two:r.tattend_two,tattend_one:r.tattend_one,create_time:r.create_time,presell_status:r.presell_status,product_status:r.product_status,pay_count:r.pay_count,stock:r.stock,stock_count:r.stock_count},0===e.formValidate.spec_type?(e.OneattrValue=r.product.attrValue,e.OneattrValue[0].down_price=e.OneattrValue[0].presellSku?e.OneattrValue[0].presellSku.down_price:0,e.OneattrValue[0].presell_price=e.OneattrValue[0].presellSku?e.OneattrValue[0].presellSku.presell_price:0,e.OneattrValue[0].sales=e.OneattrValue[0].presellSku?e.OneattrValue[0].presellSku.seles:0):(e.ManyAttrValue=[],r.product.attrValue.forEach((function(t,a){t.presellSku&&(e.$set(t,"down_price",t.presellSku.down_price),e.$set(t,"presell_price",t.presellSku.presell_price),e.$set(t,"sales",t.presellSku.seles),e.ManyAttrValue.push(t))})),e.watCh(e.formValidate.attr)),console.log(e.ManyAttrValue),e.fullscreenLoading=!1,e.formValidate.preSale_date=[r.start_time,r.end_time],e.formValidate.finalPayment_date=[r.final_start_time,r.final_end_time];case 8:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.fullscreenLoading=!1,e.$message.error(t.message)}))},getList:function(t){var e=this;this.listLoading=!0,this.tableFrom.page=t||this.tableFrom.page,Object(s["t"])(this.tableFrom).then((function(t){e.tableData.data=t.data.list,e.tableData.total=t.data.count,e.headeNum[0]["count"]=t.data.stat.all,e.headeNum[1]["count"]=t.data.stat.down,console.log(e.headeNum),e.listLoading=!1})).catch((function(t){e.listLoading=!1,e.$message.error(t.message)}))},pageChange:function(t){this.tableFrom.page=t,this.getList("")},handleSizeChange:function(t){this.tableFrom.limit=t,this.getList("")},handleDelete:function(t,e){var a=this;this.$modalSure().then((function(){Object(s["v"])(t).then((function(t){var r=t.message;a.$message.success(r),a.tableData.data.splice(e,1)})).catch((function(t){var e=t.message;a.$message.error(e)}))}))},onchangeIsShow:function(t){var e=this;Object(s["w"])(t.product_presell_id,t.is_show).then((function(t){var a=t.message;e.$message.success(a),e.getList("")})).catch((function(t){var a=t.message;e.$message.error(a)}))}}},d=c,_=(a("794f"),a("2877")),p=Object(_["a"])(d,r,n,!1,null,"785b1ca8",null);e["default"]=p.exports},"794f":function(t,e,a){"use strict";var r=a("c4d7"),n=a.n(r);n.a},8615:function(t,e,a){var r=a("5ca1"),n=a("504c")(!1);r(r.S,"Object",{values:function(t){return n(t)}})},c4d7:function(t,e,a){},f8b7:function(t,e,a){"use strict";a.d(e,"u",(function(){return n})),a.d(e,"a",(function(){return l})),a.d(e,"y",(function(){return s})),a.d(e,"r",(function(){return o})),a.d(e,"s",(function(){return i})),a.d(e,"v",(function(){return u})),a.d(e,"x",(function(){return c})),a.d(e,"q",(function(){return d})),a.d(e,"w",(function(){return _})),a.d(e,"C",(function(){return p})),a.d(e,"A",(function(){return f})),a.d(e,"F",(function(){return m})),a.d(e,"E",(function(){return v})),a.d(e,"D",(function(){return b})),a.d(e,"z",(function(){return g})),a.d(e,"b",(function(){return h})),a.d(e,"j",(function(){return y})),a.d(e,"B",(function(){return w})),a.d(e,"i",(function(){return k})),a.d(e,"h",(function(){return V})),a.d(e,"g",(function(){return C})),a.d(e,"f",(function(){return x})),a.d(e,"p",(function(){return S})),a.d(e,"t",(function(){return $})),a.d(e,"G",(function(){return F})),a.d(e,"H",(function(){return L})),a.d(e,"n",(function(){return O})),a.d(e,"m",(function(){return D})),a.d(e,"k",(function(){return j})),a.d(e,"l",(function(){return z})),a.d(e,"o",(function(){return I})),a.d(e,"e",(function(){return T})),a.d(e,"c",(function(){return P})),a.d(e,"d",(function(){return q}));var r=a("0c6d");function n(t){return r["a"].get("store/order/lst",t)}function l(){return r["a"].get("store/order/chart")}function s(t,e){return r["a"].post("store/order/update/".concat(t),e)}function o(t){return r["a"].get("store/order/delivery/".concat(t,"/form"))}function i(t){return r["a"].get("store/order/detail/".concat(t))}function u(t,e){return r["a"].get("store/order/log/".concat(t),e)}function c(t){return r["a"].get("store/order/remark/".concat(t,"/form"))}function d(t){return r["a"].post("store/order/delete/".concat(t))}function _(t){return r["a"].get("store/order/printer/".concat(t))}function p(t){return r["a"].get("store/refundorder/lst",t)}function f(t){return r["a"].get("store/refundorder/detail/".concat(t))}function m(t){return r["a"].get("store/refundorder/status/".concat(t,"/form"))}function v(t){return r["a"].get("store/refundorder/mark/".concat(t,"/form"))}function b(t){return r["a"].get("store/refundorder/log/".concat(t))}function g(t){return r["a"].get("store/refundorder/delete/".concat(t))}function h(t){return r["a"].post("store/refundorder/refund/".concat(t))}function y(t){return r["a"].get("store/order/express/".concat(t))}function w(t){return r["a"].get("store/refundorder/express/".concat(t))}function k(t){return r["a"].get("store/order/excel",t)}function V(t){return r["a"].get("store/order/delivery_export",t)}function C(t){return r["a"].get("excel/lst",t)}function x(t){return r["a"].get("excel/download/".concat(t))}function S(t){return r["a"].post("store/order/verify/".concat(t))}function $(){return r["a"].get("store/order/filtter")}function F(){return r["a"].get("store/order/takechart")}function L(t){return r["a"].get("store/order/takelst",t)}function O(t){return r["a"].get("store/receipt/lst",t)}function D(t){return r["a"].get("store/receipt/set_recipt",t)}function j(t){return r["a"].post("store/receipt/save_recipt",t)}function z(t){return r["a"].get("store/receipt/detail/".concat(t))}function I(t,e){return r["a"].post("store/receipt/update/".concat(t),e)}function T(t){return r["a"].get("store/import/lst",t)}function P(t,e){return r["a"].get("store/import/detail/".concat(t),e)}function q(t){return r["a"].get("store/import/excel/".concat(t))}}}]);