(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-651f70cf"],{"2c11":function(t,e,a){},8608: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:"outmain ba_f goodList"},[t._m(0),a("el-tabs",{on:{"tab-click":t.handleClick},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"新订单",name:"1"}}),a("el-tab-pane",{attrs:{label:"待配送",name:"6"}}),a("el-tab-pane",{attrs:{label:"预订单提醒",name:"2"}}),a("el-tab-pane",{attrs:{label:"催单",name:"3"}}),a("el-tab-pane",{attrs:{label:"退单/售后",name:"4"}})],1),a("div",{staticClass:"processing-container mar_t10"},[a("div",{staticClass:"list-container"},[a("div",{staticClass:"list-wrapper mar_lr10 pad_tb_20 flex-bet curs bor_rad5"},[t._m(1),a("div",{staticClass:"mar_r20"},[a("el-switch",{staticClass:"mar_l10",attrs:{"active-value":"1","inactive-value":"2"},on:{change:t.changeSwitch2},model:{value:t.zdjd,callback:function(e){t.zdjd=e},expression:"zdjd"}})],1)])]),a("div",{staticClass:"flex-bet flex-y-top"},[a("div",{staticClass:"bflex-7"},[a("order-state",{directives:[{name:"show",rawName:"v-show",value:t.breadCrumbList.data&&t.breadCrumbList.data.length<=0,expression:"breadCrumbList.data && breadCrumbList.data.length<=0"}],ref:"orderState",attrs:{state:t.activeName}}),a("order-list",{ref:"orderList",attrs:{list:t.breadCrumbList.data},on:{initMethod:t.init}})],1),t.breadCrumbList.data&&t.breadCrumbList.data.length>0?a("div",{staticClass:"bflex-3 mar_t20 mar_l30"},[t._m(2),a("div",{staticClass:"orderGk pad_10 flex-bet color_6",staticStyle:{background:"#f9f9f9"}},[a("div",{staticClass:"flex-g-1 t_c bor_r_de4"},[a("div",[t._v("有效订单(单)")]),a("div",{staticClass:"fon_40"},[t._v(t._s(t.orderStatistic.orderNum||0))])]),a("div",{staticClass:"flex-g-1 t_c"},[a("div",[t._v("营业额(元)")]),a("div",{staticClass:"fon_40"},[t._v(t._s(t.orderStatistic.money||0))])])])]):t._e()]),a("div",{staticClass:"list-container"},[a("el-dialog",{attrs:{title:"待出餐订单",visible:t.dialogVisible,width:"30%"},on:{"update:visible":function(e){t.dialogVisible=e}}},[a("div",[a("div",{staticClass:"flex pad_lr_20 bor_b_df5 mar_b10 pad_b_10"},[a("div",{staticClass:"flex-g-0 subjectcolor2 fon_30"},[t._v("3")]),a("div",{staticClass:"flex-g-1 mar_l20"},[a("div",[t._v("请尽快出餐")]),a("div",{staticClass:"color_9"},[t._v("顾客:朱先生")])]),a("div",{staticClass:"flex-g-0"},[a("el-button",{attrs:{type:"primary"}},[t._v("确认出餐")])],1)]),a("div",{staticClass:"flex pad_lr_20 bor_b_df5 mar_b10 pad_b_10"},[a("div",{staticClass:"flex-g-0 subjectcolor2 fon_30"},[t._v("4")]),a("div",{staticClass:"flex-g-1 mar_l20"},[a("div",[t._v("请尽快出餐")]),a("div",{staticClass:"color_9"},[t._v("顾客:王先生")])]),a("div",{staticClass:"flex-g-0"},[a("el-button",{attrs:{type:"primary"},on:{click:t.qrchMethod}},[t._v("确认出餐")])],1)])])])],1)]),a("el-pagination",{attrs:{background:"",layout:"prev, pager, next",total:t.page.total,"page-size":t.page.pagesize,"current-page":t.page.currentPage,"hide-on-single-page":t.page.value},on:{"update:currentPage":function(e){return t.$set(t.page,"currentPage",e)},"update:current-page":function(e){return t.$set(t.page,"currentPage",e)},"current-change":t.handleCurrentChange}})],1)},s=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"shuju_title mar_b20"},[a("div",{staticClass:"shuju_title_text"},[a("span",[t._v("订单处理")])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"flex"},[a("div",{staticClass:"list-title"},[a("div",{staticClass:"circle"},[a("div",{staticClass:"title-circle"})])]),a("div",[a("p",{staticClass:"list-title-header fon_15 color_3 wei"},[t._v("自动接单")]),a("span",{staticClass:"fon_12 color_9"},[t._v("开启自动接单后,新订单将自动接单并打印小票(注意:防止漏单,此功能建议配合小票机使用)")])])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"shuju_title mar_b10",staticStyle:{background:"#F9F9F9","font-size":"14px"}},[a("div",{staticClass:"shuju_title_text"},[a("span",[t._v("当日订单情况")])])])}],i=(a("96cf"),a("1da1")),n=a("5530"),c=a("5dc5"),l=a("56fe"),o=a("48fb"),d=a("2f62"),u=a("f8b7"),v={components:{OrderList:c["a"],OrderState:l["a"]},created:function(){this.init(),this.getChangeShopStatus()},computed:Object(n["a"])(Object(n["a"])({},Object(d["d"])(["orderList","storeId"])),{},{breadCrumbList:function(){return this.orderList||[]}}),data:function(){return{activeName:"1",orderlist:[],page:{total:0,size:10,currentPage:1,value:!0},value:"",zdjd:"",dialogVisible:!1,orderStatistic:{}}},methods:Object(n["a"])(Object(n["a"])({},Object(d["b"])(["getStoreOrderList"])),{},{handleClick:function(){this.init()},init:function(){var t=this;return Object(i["a"])(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a={page:t.page.currentPage,state:t.activeName,storeId:t.storeId},e.next=3,t.getStoreOrderList(a);case 3:t.page.total=t.breadCrumbList.count,t.breadCrumbList.count>0?t.page.value=!1:t.page.value=!0,t.$emit("orderList",t.breadCrumbList.data),t.bus.$emit("loading",!1);case 7:case"end":return e.stop()}}),e)})))()},handleCurrentChange:function(t){this.page.currentPage=t,this.init()},chucanList:function(){this.dialogVisible=!0},qrchMethod:function(){console.log("123"),this.$refs.orderList.orderListQrch("aaa")},getChangeShopStatus:function(){var t=this;return Object(i["a"])(regeneratorRuntime.mark((function e(){var a,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(o["m"])({storeId:t.storeId});case 2:a=e.sent,r=a.data,t.zdjd=r.receiveStatus;case 5:case"end":return e.stop()}}),e)})))()},changeSwitch2:function(){var t=this;return Object(i["a"])(regeneratorRuntime.mark((function e(){var a,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(o["j"])({storeId:t.storeId,type:2,receiveStatus:t.zdjd});case 2:a=e.sent,r=a.msg,t.$baseMessage(r,"success"),t.init();case 6:case"end":return e.stop()}}),e)})))()},fforderStatistic:function(){var t=this;return Object(i["a"])(regeneratorRuntime.mark((function e(){var a,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(u["n"])();case 2:a=e.sent,r=a.data,t.orderStatistic=r;case 5:case"end":return e.stop()}}),e)})))()}})},b=v,f=(a("f8d7"),a("2877")),_=Object(f["a"])(b,r,s,!1,null,"64c2e717",null);e["default"]=_.exports},f8d7:function(t,e,a){"use strict";var r=a("2c11"),s=a.n(r);s.a}}]);