(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5909d379"],{"206d":function(e,t,a){"use strict";var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{ref:"receipt",staticStyle:{width:"200px"},attrs:{id:"receipt"}},[a("div",{staticStyle:{"border-bottom":"1px dashed #000000","font-size":"12px","text-align":"center","padding-bottom":"5px"}},[a("h2",{staticStyle:{width:"100%","text-align":"center"}},[e._v("台号:"+e._s(e.element.number))]),a("div",{staticStyle:{"margin-top":"5px"}},[e._v("*"+e._s(e.element.storeName)+"*")]),a("div",{staticStyle:{"margin-top":"5px"}},[e._v("餐桌信息:"+e._s(e.element.regionName)+e._s(e.element.typeName)+e._s(e.element.people)+"人")])]),a("div",{staticStyle:{"border-bottom":"1px dashed #000000","font-size":"12px"}},[a("div",[e._v("订单编号:"+e._s(e.element.outTradeNo))]),a("div",[e._v("开台时间:"+e._s(e.element.createdAt))]),e.element.userNote?a("div",[e._v("备注:"+e._s(e.element.userNote))]):e._e()]),a("div",[a("table",{staticStyle:{"font-size":"14px"},attrs:{width:"200",cellspacing:"10"}},[e._m(0),e._l(e.element.goodsArr,(function(t,n){return a("tr",{key:n+"goods"},[a("td",[e._v(e._s(t.name)),t.data?a("span",[e._v("-【"+e._s(t.data)+"】")]):e._e()]),a("td",[e._v(e._s(t.num))]),a("td",[e._v(e._s(t.money))])])}))],2)]),a("div",[e._v("-----------其他费用----------")]),a("div",{staticStyle:{"border-bottom":"1px dashed #000000"}},[a("div",{staticStyle:{"font-size":"12px"}},[e._v("[餐桌费:+"+e._s(e.element.tablewareMoney)+"]")]),a("h3",{staticStyle:{"font-weight":"bold"}},[e._v("实付:¥"+e._s(e.element.money))])]),e._m(1),a("h1",[e._v("----完----")])])},r=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("tr",[a("th",[e._v("名称")]),a("th",{staticStyle:{width:"35px"}},[e._v("数量")]),a("th",[e._v("价格")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticStyle:{"text-align":"center","padding-bottom":"30px"}},[a("h4",[e._v("谢谢惠顾")]),a("h4",[e._v("欢迎下次光临")])])}],s=a("03dc"),i={props:{data:Object},computed:{element:function(){return this.data}},watch:{element:function(){}},methods:{printElement:function(e){console.log("printerName",e);var t=Object(s["a"])(),a=this.$refs.receipt.innerHTML,n=this.$refs.receipt.offsetHeight;console.log(a),t.SET_PRINT_PAGESIZE(3,"58mm",20,""),t.ADD_PRINT_HTM("9mm","0mm","RightMargin:0mm",n+"px",a),t.SET_PRINTER_INDEX(e)&&t.PRINT()}}},o=i,c=(a("5261"),a("2877")),l=Object(c["a"])(o,n,r,!1,null,"8ce59f88",null);t["a"]=l.exports},2700:function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("div",{staticClass:"outmain ba_f instoreorderdl"},[e._m(0),a("div",{staticClass:"flex-bet flex-y-top"},[a("el-form",{staticClass:"demo-form-inline searchform",attrs:{inline:!0,model:e.formInline}},[a("div",[a("el-form-item",{staticClass:"mar_l20",attrs:{label:"订单号"}},[a("el-input",{attrs:{size:"medium",placeholder:"请输入订单号"},on:{input:e.onSearch},model:{value:e.formInline.keyword,callback:function(t){e.$set(e.formInline,"keyword",t)},expression:"formInline.keyword"}})],1),a("el-form-item",{staticClass:"mar_l20",attrs:{label:"下单时间"}},[a("el-radio-group",{staticClass:"mar_r20",model:{value:e.formInline.tabPosition,callback:function(t){e.$set(e.formInline,"tabPosition",t)},expression:"formInline.tabPosition"}},[a("el-radio-button",{attrs:{label:"1"}},[e._v("今天")]),a("el-radio-button",{attrs:{label:"2"}},[e._v("昨天")]),a("el-radio-button",{attrs:{label:"3"}},[e._v("一周")]),a("el-radio-button",{attrs:{label:"0"}},[e._v("全部")])],1),a("el-date-picker",{attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.formInline.timeData,callback:function(t){e.$set(e.formInline,"timeData",t)},expression:"formInline.timeData"}})],1),a("el-form-item",{staticClass:"mar_l20"},[a("el-button",{attrs:{type:"primary",size:"medium"},on:{click:e.onSearch}},[e._v("搜索")]),a("el-button",{attrs:{size:"medium"},on:{click:e.getCode}},[e._v("查看餐桌码")])],1)],1)])],1),a("div",{staticClass:"flex-bet flex-y-top mar_t20"},[a("div",{staticClass:"bflex-7"},[a("el-tabs",{staticClass:"mar_b20",on:{"tab-click":e.handleTabClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"待完成",name:"1"}}),a("el-tab-pane",{attrs:{label:"全部订单",name:"0"}})],1),e.orderListData&&e.orderListData.length>0?a("div",[e._l(e.orderListData,(function(t,n){return a("div",{key:n,staticClass:"orderList pad_20 flex-bet curs",class:{orderListHover:e.orderListHover==n},on:{click:function(a){return e.clickOrderList(t,n)}}},[a("div",{staticClass:"flex-g-0 number"},[e._v("桌台"+e._s(t.number))]),a("div",{staticClass:"flex-g-1 wei fon_12 color_3 mar_l10"},[a("div",{staticClass:"flex-bet"},[a("div",[e._v("开台时间:"),t.createdAt?a("span",[e._v(e._s(e.getYMDHMS(t.createdAt)))]):e._e()]),t.receiptAt&&"2"==t.state?a("div",{},[e._v(" 就餐时间:"+e._s(e.timeStamp(Math.round((new Date).getTime()/1e3).toString()-t.receiptAt))+" ")]):e._e(),t.completeAt&&"3"==t.state?a("div",{},[e._v(" 就餐时间:"+e._s(e.timeStamp(t.completeAt-t.receiptAt))+" ")]):e._e()]),a("div",{staticClass:"flex-bet"},[a("div",[e._v("就餐人数:"+e._s(t.people)+"人")]),a("div",{})]),a("div",{staticClass:"flex-bet"},[a("div",[e._v("实付金额:"+e._s(t.money)+" "),"1"==t.state||"4"==t.state||"2"==t.eatType&&"2"==t.state?a("span",{staticClass:"mar_l5 color-red"},[e._v("(未支付)")]):e._e(),"2"!=t.state&&"3"!=t.state||"1"!=t.eatType?e._e():a("span",{staticClass:"mar_l5 color-green"},[e._v("(已支付)")]),"3"==t.state&&"2"==t.eatType?a("span",{staticClass:"mar_l5 color-green"},[e._v("(已支付)")]):e._e(),"5"==t.state?a("span",{staticClass:"mar_l5 color-red"},[e._v("(已退款)")]):e._e()]),"1"==t.state&&"1"==t.eatType?a("div",{staticClass:"type daifukuan"},[e._v("待付款")]):e._e(),"1"==t.state&&"2"==t.eatType?a("div",{staticClass:"type daifukuan"},[e._v("待接单")]):e._e(),"2"==t.state&&"1"==t.eatType||"2"==t.state&&"2"==t.eatType?a("div",{staticClass:"type2 ddBg1"},[e._v("就餐中")]):e._e(),"3"==t.state&&"1"==t.eatType||"3"==t.state&&"2"==t.eatType?a("div",{staticClass:"type2 ddBg2"},[e._v("已完成")]):e._e(),"4"==t.state?a("div",{staticClass:"type yiquxiao"},[e._v("已取消")]):e._e(),"5"==t.state?a("div",{staticClass:"type2 bg3"},[e._v("已退款")]):e._e()])])])})),a("el-pagination",{attrs:{background:"",layout:"prev, pager, next",total:e.page.total,"page-size":e.page.size,"current-page":e.page.currentPage,"hide-on-single-page":e.page.value},on:{"update:currentPage":function(t){return e.$set(e.page,"currentPage",t)},"update:current-page":function(t){return e.$set(e.page,"currentPage",t)},"current-change":e.handleCurrentChange}})],2):e._e(),a("div",{directives:[{name:"show",rawName:"v-show",value:0==e.orderListData.length,expression:"orderListData.length==0"}],staticClass:"zwsj flex-center"},[e._m(1)])],1),e.orderListData&&e.orderListData.length>0?a("div",{staticClass:"bflex-3 orderMsg pad_20"},e._l(e.orderListData[e.orderListHover].detail,(function(t,n){return a("div",{key:n},[a("div",{staticClass:"msgNumber"},[e._v("桌台:"+e._s(t.number))]),e._m(2,!0),a("div",{staticClass:"bor_b_de4 pad_b_10 fon_12 lh25 color_6"},[a("div",{staticClass:"flex"},[a("div",{staticClass:"bflex-5"},[a("span",{staticClass:"wei"},[e._v("用户昵称")]),e._v(": "),"5"!=t.origin?a("span",[e._v(e._s(t.userName)+"(uid:"+e._s(t.userId)+")")]):a("span",[e._v("无")])]),a("div",{staticClass:"bflex-5"},[a("span",{staticClass:"wei"},[e._v("手机号:")]),"5"!=t.origin?a("span",[e._v(e._s(t.userTel))]):a("span",[e._v("无")])])])]),e._m(3,!0),a("div",{staticClass:"bor_b_de4 pad_b_10 fon_12 lh25 color_6"},[a("div",{staticClass:"flex"},[a("div",{staticClass:"bflex-5"},[a("span",{staticClass:"wei"},[e._v("订单来源:")]),"1"==t.origin?a("span",[e._v("微信小程序")]):e._e(),"2"==t.origin?a("span",[e._v("微信公众号")]):e._e(),"3"==t.origin?a("span",[e._v("支付宝小程序")]):e._e(),"4"==t.origin?a("span",[e._v("百度小程序")]):e._e(),"5"==t.origin?a("span",[e._v("收银台下单")]):e._e()])]),a("div",{staticClass:"flex"},[a("div",{staticClass:"bflex-5"},[a("span",{staticClass:"wei"},[e._v("就餐模式:")]),"1"==t.eatType?a("span",[e._v("先结账后用餐")]):e._e(),"2"==t.eatType?a("span",[e._v("先用餐后结账")]):e._e()]),a("div",{staticClass:"bflex-5"},[a("span",{staticClass:"wei"},[e._v("订单号:")]),e._v(e._s(t.outTradeNo))])]),a("div",{staticClass:"flex"},[a("div",{staticClass:"bflex-5"},[a("span",{staticClass:"wei"},[e._v("订单金额:")]),e._v(e._s(+t.money+ +t.allPreferential)),t.vipDiscount>0?a("span",[e._v("(会员优惠:"+e._s(t.vipDiscount)+")")]):e._e()]),a("div",{staticClass:"bflex-5"},[a("span",{staticClass:"wei"},[e._v("桌位费:")]),a("span",[e._v(e._s(t.tablewareMoney))])])]),a("div",{staticClass:"flex"},[a("div",{staticClass:"bflex-5"},[a("span",{staticClass:"wei"},[e._v("订单优惠:")]),e._v(e._s(t.allPreferential))]),a("div",{staticClass:"bflex-5"},[a("span",{staticClass:"wei"},[e._v("实付金额:")]),a("span",{staticClass:"color_rb wei"},[e._v(e._s(t.money))])])]),a("div",{staticClass:"flex"},[a("div",{staticClass:"bflex-5"},[a("span",{staticClass:"wei"},[e._v("支付状态:")]),"1"!=t.state&&"2"!=t.state||"2"!=t.eatType?e._e():a("span",{staticClass:"color_rb wei"},[e._v("待付款")]),"1"==t.state&&"1"==t.eatType?a("span",{staticClass:"color_rb wei"},[e._v("待付款")]):e._e(),"2"!=t.state&&"3"!=t.state||"1"!=t.eatType?e._e():a("span",{staticClass:"color-green wei"},[e._v("已支付")]),"3"==t.state&&"2"==t.eatType?a("span",{staticClass:"color-green wei"},[e._v("已支付")]):e._e(),"5"==t.state?a("span",{staticClass:"color-red wei"},[e._v("已退款 ("+e._s(t.refundMoney)+")")]):e._e(),"4"==t.state?a("span",{staticClass:"color_rb wei"},[e._v("已取消")]):e._e()]),a("div",{staticClass:"bflex-5"},[a("span",{staticClass:"wei"},[e._v("支付方式:")]),t.payAt&&"0"!==t.payAt?["1"==t.payMode?a("span",[e._v("微信支付")]):e._e(),"2"==t.payMode?a("span",[e._v("支付宝支付")]):e._e(),"3"==t.payMode?a("span",[e._v("百度支付")]):e._e(),"4"==t.payMode?a("span",[e._v("公众号支付")]):e._e(),"5"==t.payMode?a("span",[e._v("余额支付")]):e._e(),"6"==t.payMode?a("span",[e._v("线下支付(现金支付)")]):e._e(),"7"==t.payMode?a("span",[e._v("线下支付(pos机支付)")]):e._e(),"8"==t.payMode?a("span",[e._v("线下支付(自有微信支付)")]):e._e(),"9"==t.payMode?a("span",[e._v("线下支付(自有支付宝支付)")]):e._e()]:e._e()],2)])]),a("div",{staticClass:"goodsList"},[a("el-table",{attrs:{data:e.orderListData[e.orderListHover].goodsArr,stripe:"",height:"250"}},[a("el-table-column",{attrs:{label:"商品",prop:"name",width:"300"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"flex wei"},[e._v(e._s(t.row.name)+" "),"1"==t.row.addType?a("span",{staticClass:"color-green mar_l5"},[e._v("加"+e._s(t.row.addNum))]):e._e()]),a("div",{directives:[{name:"show",rawName:"v-show",value:t.row.data,expression:"scope.row.data"}]},[e._v("规格:"+e._s(t.row.data))]),a("div",{directives:[{name:"show",rawName:"v-show",value:t.row.attribute,expression:"scope.row.attribute"}]},[e._v("属性:"+e._s(t.row.attribute))]),a("div",{directives:[{name:"show",rawName:"v-show",value:t.row.material,expression:"scope.row.material"}]},[e._v("加料:"+e._s(t.row.material))])]}}],null,!0)}),a("el-table-column",{attrs:{prop:"num",label:"单价*数量"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(t.row.money)+" * "+e._s(t.row.num))])]}}],null,!0)}),a("el-table-column",{attrs:{prop:"sumMoney",label:"金额"}})],1),a("div",{staticClass:"flex flex-col-end fon_14 mar_r10 mar_t5"},[a("div",[e._v("桌位费:"+e._s(t.tablewareMoney)+"元")])])],1),a("div",{staticClass:"pad_10 t_c anniu"},["1"!=t.state?a("el-button",{attrs:{plain:"",size:"medium"},on:{click:function(a){return e.modifyFastOrder(t.id,"print")}}},[e._v("打印小票 ")]):e._e(),"1"==t.state&&"2"==t.eatType?a("el-button",{staticClass:"jiedan",attrs:{type:"primary",size:"medium"},on:{click:function(a){return e.modifyFastOrder(t.id,"receipt")}}},[e._v("接单并打印 ")]):e._e(),"2"==t.state?a("el-button",{staticClass:"jiezhang",attrs:{type:"success",size:"medium"},on:{click:function(a){return e.modifyFastOrder(t.id,"checkOut")}}},["1"==t.eatType?a("span",[e._v("完成并清台")]):e._e(),"2"==t.eatType?a("span",[e._v("结账并清台")]):e._e()]):e._e(),"1"==t.state?a("el-button",{attrs:{plain:"",size:"medium",type:"danger"},on:{click:function(a){return e.modifyFastOrder(t.id,"close")}}},[e._v("关闭订单并清台 ")]):e._e(),"2"==t.state&&"1"==t.eatType&&"5"!=t.origin&&"6"!=t.payMode&&"7"!=t.payMode&&"8"!=t.payMode&&"9"!=t.payMode?a("el-button",{attrs:{plain:"",size:"medium",type:"danger"},on:{click:function(a){return e.modifyFastOrder(t.id,"refund",t)}}},[e._v("退款并清台 ")]):e._e()],1)])})),0):e._e()])]),a("el-dialog",{staticClass:"tishidialog",attrs:{title:"退款",visible:e.dialogTableVisible4,"close-on-click-modal":!1,width:"500px"},on:{"update:visible":function(t){e.dialogTableVisible4=t}}},[a("div",{staticClass:"t_c"},[a("el-form",{ref:"form",attrs:{model:e.form,"label-width":"80px"}},[a("el-form-item",{attrs:{label:"退款类型"}},[a("div",{staticClass:"t_l"},[a("el-radio-group",{model:{value:e.form.type,callback:function(t){e.$set(e.form,"type",t)},expression:"form.type"}},[a("el-radio",{attrs:{label:"1"}},[e._v("全额退款")]),a("el-radio",{attrs:{label:"2"}},[e._v("自定义退款")])],1)],1)]),a("el-form-item",{directives:[{name:"show",rawName:"v-show",value:"1"!=e.form.type,expression:"form.type!='1'"}],attrs:{label:"退款金额"}},[a("el-input",{attrs:{placeholder:"请输入退款金额"},model:{value:e.form.money,callback:function(t){e.$set(e.form,"money",t)},expression:"form.money"}})],1)],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{size:"medium"},on:{click:function(t){e.dialogTableVisible4=!1}}},[e._v("取 消")]),a("el-button",{attrs:{size:"medium",type:"primary"},on:{click:e.save}},[e._v("确 定")])],1)]),a("el-dialog",{attrs:{title:"查看小程序码",visible:e.dialogFormVisible,width:"600px","close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("div",{staticClass:"t_c"},[a("div",[a("img",{staticStyle:{width:"200px",height:"200px"},attrs:{src:e.codeimg}})]),a("a",{attrs:{href:e.downloadCode(e.codeimg),title:"Id:"+e.tableId}},[a("el-button",{staticClass:"mar_t20",attrs:{size:"medium",type:"primary"}},[e._v("下载二维码图片")])],1)])]),a("div",{staticStyle:{height:"0",overflow:"hidden"}},[a("TsPrint",{ref:"tsprint",attrs:{data:e.printData}})],1)],1)},r=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"shuju_title mar_b20"},[a("div",{staticClass:"shuju_title_text"},[a("span",[e._v("堂食订单详情")])])])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"t_c"},[n("div",[n("img",{staticStyle:{width:"180px",height:"180px"},attrs:{src:a("6fb3")}})]),n("div",{staticClass:"mar_t10"},[e._v("暂无订单")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"shuju_title"},[a("div",{staticClass:"shuju_title_text"},[a("span",[e._v("顾客信息")])])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"shuju_title"},[a("div",{staticClass:"shuju_title_text"},[a("span",{staticClass:"wei"},[e._v("订单信息")])])])}],s=(a("d81d"),a("b64b"),a("96cf"),a("1da1")),i=a("5530"),o=a("9cde"),c=a("294d"),l=a("ed08"),u=a("365c"),d=a("f8b7"),p=a("206d"),f=a("2f62"),m={components:{TsPrint:p["a"]},created:function(){this.$route.query.tableId&&(this.tableId=this.$route.query.tableId),this.$route.query.activeName&&(this.activeName=this.$route.query.activeName),this.init(),this.fetchData()},computed:Object(i["a"])({},Object(f["d"])(["storeId"])),data:function(){return{activeName:"1",formInline:{tabPosition:"1",keyword:"",userChannel:"",timeData:""},form:{type:"1",money:"",orderId:""},payMode:"",list:[],orderListHover:0,orderListData:[],listLoading:!1,selectRows:"",elementLoadingText:"正在加载...",page:{total:0,size:10,currentPage:1},dialogTableVisible4:!1,dialogFormVisible:!1,codeimg:"",printData:{}}},methods:{init:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var a,n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(c["E"])({ident:"instoreSet",storeId:e.storeId});case 2:a=t.sent,n=a.data,e.payMode=n.payMode?n.payMode:"1";case 5:case"end":return t.stop()}}),t)})))()},fetchData:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var a,n,r,s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a={tableId:e.tableId,page:e.page.currentPage,timeType:e.formInline.tabPosition,keyword:e.formInline.keyword,state:e.activeName,startTime:e.formInline.timeData[0]?Object(l["a"])(e.formInline.timeData[0]):"",endTime:e.formInline.timeData[1]?Object(l["a"])(e.formInline.timeData[1]):"",storeId:e.storeId},t.next=3,Object(o["y"])(a);case 3:n=t.sent,r=n.data,s=n.count,e.orderListData=r||[],e.page.total=s;case 8:case"end":return t.stop()}}),t)})))()},handleTabClick:function(){this.orderListHover=0,this.page.currentPage=1,this.fetchData()},handleCurrentChange:function(e){this.orderListHover=0,this.page.currentPage=e,this.fetchData()},clickOrderList:function(e,t){this.orderListHover=t},onSearch:function(){this.fetchData()},getCode:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var a,n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!e.tableId){t.next=9;break}return e.dialogFormVisible=!0,t.next=4,Object(c["n"])({tableId:e.tableId,page:"yb_wm/shop/in/goods",ident:"table",storeId:e.storeId});case 4:a=t.sent,n=a.data,e.codeimg=n||"",t.next=10;break;case 9:e.$baseMessage("暂无桌子id","success");case 10:case"end":return t.stop()}}),t)})))()},downloadCode:function(e){var t=u["a"].backendPath;return t+"channel/in-store/download-code?url="+e},modifyFastOrder:function(e,t,a){var n=this;return Object(s["a"])(regeneratorRuntime.mark((function r(){var i,c,l,u,p,f,m,v;return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:if("receipt"!=t){r.next=14;break}return r.next=3,Object(o["B"])({orderId:e,type:t});case 3:return i=r.sent,c=i.msg,n.$baseMessage(c,"success"),r.next=8,Object(d["l"])({orderId:e,orderType:2});case 8:l=r.sent,u=l.data,Object.keys(u).map((function(e){n.printData=u[e],n.$nextTick((function(){n.$refs.tsprint.printElement(e)}))})),n.fetchData(),r.next=42;break;case 14:if("close"!=t){r.next=18;break}n.$baseConfirm("您确定关闭订单并清台吗",null,Object(s["a"])(regeneratorRuntime.mark((function a(){var r,s;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.next=2,Object(o["B"])({orderId:e,type:t});case 2:r=a.sent,s=r.msg,n.$baseMessage(s,"success"),n.fetchData();case 6:case"end":return a.stop()}}),a)})))),r.next=42;break;case 18:if("checkOut"!=t){r.next=22;break}n.$baseConfirm("您确定结账此订单吗",null,Object(s["a"])(regeneratorRuntime.mark((function a(){var r,s;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.next=2,Object(o["B"])({orderId:e,type:t});case 2:r=a.sent,s=r.msg,n.$baseMessage(s,"success"),n.fetchData();case 6:case"end":return a.stop()}}),a)})))),r.next=42;break;case 22:if("refund"!=t){r.next=26;break}n.$baseConfirm("您确定退款此订单吗",null,Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:n.dialogTableVisible4=!0,n.form.money=a.money,n.form.orderId=e;case 3:case"end":return t.stop()}}),t)})))),r.next=42;break;case 26:if("print"!=t){r.next=40;break}return r.next=29,Object(o["B"])({orderId:e,type:t});case 29:return p=r.sent,f=p.msg,n.$baseMessage(f,"success"),r.next=34,Object(d["l"])({orderId:e,orderType:2});case 34:m=r.sent,v=m.data,Object.keys(v).map((function(e){n.printData=v[e],n.$nextTick((function(){n.$refs.tsprint.printElement(e)}))})),n.fetchData(),r.next=42;break;case 40:n.$baseMessage("敬请期待","success"),n.fetchData();case 42:case"end":return r.stop()}}),r)})))()},save:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var a,n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(o["B"])({orderId:e.form.orderId,type:"refund",money:e.form.money,storeId:e.storeId});case 2:a=t.sent,n=a.msg,e.$baseMessage(n,"success"),e.dialogTableVisible4=!1,e.fetchData();case 7:case"end":return t.stop()}}),t)})))()},getYMDHMS:function(e){var t=new Date(1e3*e),a=t.getFullYear(),n=t.getMonth()+1,r=t.getDate(),s=t.getHours(),i=t.getMinutes(),o=t.getSeconds();return n<10&&(n="0"+n),r<10&&(r="0"+r),s<10&&(s="0"+s),i<10&&(i="0"+i),o<10&&(o="0"+o),a+"-"+n+"-"+r+" "+s+":"+i+":"+o},timeStamp:function(e){var t=parseInt(e)+"秒";if(parseInt(e)>60){var a=parseInt(e)%60,n=parseInt(e/60);if(t=n+"分"+a+"秒",n>60){n=parseInt(e/60)%60;var r=parseInt(parseInt(e/60)/60);if(t=r+"小时"+n+"分"+a+"秒",r>24){r=parseInt(parseInt(e/60)/60)%24;var s=parseInt(parseInt(parseInt(e/60)/60)/24);t=s+"天"+r+"小时"+n+"分"+a+"秒"}}}return t}}},v=m,_=(a("a9dc"),a("2877")),b=Object(_["a"])(v,n,r,!1,null,null,null);t["default"]=b.exports},"3bbe":function(e,t,a){var n=a("861d");e.exports=function(e){if(!n(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},"508b":function(e,t,a){},5261:function(e,t,a){"use strict";var n=a("fe682"),r=a.n(n);r.a},"6fb3":function(e,t,a){e.exports=a.p+"static/img/quxiaodan.4f65b043.png"},7156:function(e,t,a){var n=a("861d"),r=a("d2bb");e.exports=function(e,t,a){var s,i;return r&&"function"==typeof(s=t.constructor)&&s!==a&&n(i=s.prototype)&&i!==a.prototype&&r(e,i),e}},"9cde":function(e,t,a){"use strict";a.d(t,"F",(function(){return r})),a.d(t,"n",(function(){return s})),a.d(t,"z",(function(){return i})),a.d(t,"a",(function(){return o})),a.d(t,"x",(function(){return c})),a.d(t,"J",(function(){return l})),a.d(t,"l",(function(){return u})),a.d(t,"H",(function(){return d})),a.d(t,"p",(function(){return p})),a.d(t,"C",(function(){return f})),a.d(t,"K",(function(){return m})),a.d(t,"I",(function(){return v})),a.d(t,"q",(function(){return _})),a.d(t,"v",(function(){return b})),a.d(t,"D",(function(){return h})),a.d(t,"b",(function(){return g})),a.d(t,"e",(function(){return y})),a.d(t,"c",(function(){return w})),a.d(t,"d",(function(){return x})),a.d(t,"G",(function(){return C})),a.d(t,"o",(function(){return I})),a.d(t,"t",(function(){return O})),a.d(t,"i",(function(){return j})),a.d(t,"g",(function(){return k})),a.d(t,"h",(function(){return T})),a.d(t,"j",(function(){return D})),a.d(t,"A",(function(){return M})),a.d(t,"k",(function(){return N})),a.d(t,"s",(function(){return S})),a.d(t,"u",(function(){return $})),a.d(t,"y",(function(){return E})),a.d(t,"B",(function(){return L})),a.d(t,"f",(function(){return A})),a.d(t,"r",(function(){return P})),a.d(t,"m",(function(){return R})),a.d(t,"w",(function(){return z})),a.d(t,"E",(function(){return H}));var n=a("b775");function r(e){return Object(n["a"])({url:"channel/in-store/save-area",method:"post",data:e})}function s(e){return Object(n["a"])({url:"channel/in-store/save-area",method:"get",params:e})}function i(e){return Object(n["a"])({url:"channel/in-store/modify-area",method:"post",data:e})}function o(e){return Object(n["a"])({url:"channel/in-store/area-list",method:"get",params:e})}function c(e){return Object(n["a"])({url:"channel/in-store/goods-type",method:"get",params:e})}function l(e){return Object(n["a"])({url:"channel/in-store/table-list",method:"get",params:e})}function u(e){return Object(n["a"])({url:"channel/in-store/get-area",method:"get",params:e})}function d(e){return Object(n["a"])({url:"channel/in-store/save-table",method:"post",data:e})}function p(e){return Object(n["a"])({url:"channel/in-store/save-table",method:"get",params:e})}function f(e){return Object(n["a"])({url:"channel/in-store/modify-table",method:"post",data:e})}function m(e){return Object(n["a"])({url:"channel/in-store/type-list",method:"get",params:e})}function v(e){return Object(n["a"])({url:"channel/in-store/save-type",method:"post",data:e})}function _(e){return Object(n["a"])({url:"channel/in-store/save-type",method:"get",params:e})}function b(e){return Object(n["a"])({url:"channel/in-store/get-type",method:"get",params:e})}function h(e){return Object(n["a"])({url:"channel/in-store/modify-type",method:"post",data:e})}function g(e){return Object(n["a"])({url:"channel/in-store/batch-table",method:"post",data:e})}function y(e){return Object(n["a"])({url:"channel/in-store/cashier-statistics",method:"get",params:e})}function w(e){return Object(n["a"])({url:"channel/in-store/cashier-order-list",method:"get",params:e})}function x(e){return Object(n["a"])({url:"channel/in-store/cashier-print",method:"post",data:e})}function C(e){return Object(n["a"])({url:"channel/in-store/save-code",method:"post",data:e})}function I(e){return Object(n["a"])({url:"channel/in-store/save-code",method:"get",params:e})}function O(e){return Object(n["a"])({url:"channel/in-store/get-table",method:"get",params:e})}function j(e){return Object(n["a"])({url:"channel/in-store/establish-code",method:"post",data:e})}function k(e){return Object(n["a"])({url:"channel/in-store/code-list",method:"get",params:e})}function T(e){return Object(n["a"])({url:"channel/in-store/del-code",method:"post",data:e})}function D(e){return Object(n["a"])({url:"channel/in-store/fast-order-list",method:"get",params:e})}function M(e){return Object(n["a"])({url:"channel/in-store/modify-fast-order",method:"post",data:e})}function N(e){return Object(n["a"])({url:"channel/screen/fast-screen",method:"post",data:e})}function S(e){return Object(n["a"])({url:"channel/in-store/get-store-code",method:"get",params:e})}function $(e){return Object(n["a"])({url:"channel/in-store/table-order",method:"get",params:e})}function E(e){return Object(n["a"])({url:"channel/in-store/in-store-order-list",method:"get",params:e})}function L(e){return Object(n["a"])({url:"channel/in-store/modify-in-store-order",method:"post",data:e})}function A(e){return Object(n["a"])({url:"channel/in-store/clean-table",method:"post",data:e})}function P(e){return Object(n["a"])({url:"channel/in-store/statistics",method:"get",params:e})}function R(e){return Object(n["a"])({url:"channel/pay-vip/order-statistics",method:"get",params:e})}function z(e){return Object(n["a"])({url:"channel/pay-vip/order-list",method:"get",params:e})}function H(e){return Object(n["a"])({url:"channel/in-store/out-order-list",method:"get",params:e})}},a9dc:function(e,t,a){"use strict";var n=a("508b"),r=a.n(n);r.a},a9e3:function(e,t,a){"use strict";var n=a("83ab"),r=a("da84"),s=a("94ca"),i=a("6eeb"),o=a("5135"),c=a("c6b6"),l=a("7156"),u=a("c04e"),d=a("d039"),p=a("7c73"),f=a("241c").f,m=a("06cf").f,v=a("9bf2").f,_=a("58a8").trim,b="Number",h=r[b],g=h.prototype,y=c(p(g))==b,w=function(e){var t,a,n,r,s,i,o,c,l=u(e,!1);if("string"==typeof l&&l.length>2)if(l=_(l),t=l.charCodeAt(0),43===t||45===t){if(a=l.charCodeAt(2),88===a||120===a)return NaN}else if(48===t){switch(l.charCodeAt(1)){case 66:case 98:n=2,r=49;break;case 79:case 111:n=8,r=55;break;default:return+l}for(s=l.slice(2),i=s.length,o=0;or)return NaN;return parseInt(s,n)}return+l};if(s(b,!h(" 0o1")||!h("0b1")||h("+0x1"))){for(var x,C=function(e){var t=arguments.length<1?0:e,a=this;return a instanceof C&&(y?d((function(){g.valueOf.call(a)})):c(a)!=b)?l(new h(w(t)),a,C):w(t)},I=n?f(h):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),O=0;I.length>O;O++)o(h,x=I[O])&&!o(C,x)&&v(C,x,m(h,x));C.prototype=g,g.constructor=C,i(r,b,C)}},bf19:function(e,t,a){"use strict";var n=a("23e7");n({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return URL.prototype.toString.call(this)}})},d2bb:function(e,t,a){var n=a("825a"),r=a("3bbe");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,a={};try{e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,e.call(a,[]),t=a instanceof Array}catch(s){}return function(a,s){return n(a),r(s),t?e.call(a,s):a.__proto__=s,a}}():void 0)},ed08:function(e,t,a){"use strict";a.d(t,"a",(function(){return n})),a.d(t,"b",(function(){return r})),a.d(t,"c",(function(){return s}));a("a9e3"),a("ac1f"),a("5319"),a("bf19");function n(e){var t=new Date(e).toJSON(),a=new Date(+new Date(t)+288e5).toISOString().replace(/T/g," ").replace(/\.[\d]{3}Z/,"");return a}function r(e){var t=new Date(e),a=t.getFullYear(),n=t.getMonth()+1<10?"0"+(t.getMonth()+1):t.getMonth()+1,r=t.getDate()<10?"0"+t.getDate():t.getDate(),s=t.getHours()<10?"0"+t.getHours():t.getHours(),i=t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes(),o=t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds();return a+"-"+n+"-"+r+" "+s+":"+i+":"+o}function s(e){var t=new Date(1e3*Number(e)),a=t.getFullYear()+"-",n=(t.getMonth()+1<10?"0"+(t.getMonth()+1):t.getMonth()+1)+"-",r=(t.getDate()<10?"0"+t.getDate():t.getDate())+" ",s=(t.getHours()<10?"0"+t.getHours():t.getHours())+":",i=(t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes())+":",o=t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds(),c=a+n+r+s+i+o;return c}},fe682:function(e,t,a){}}]);