(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-172f8a5d"],{"0341":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.callNo))]),a("div",{staticStyle:{"margin-top":"5px"}},[e._v("*"+e._s(e.element.storeName)+"*")]),a("div",{staticStyle:{"margin-top":"5px"}},[e._v("取单方式:"),"1"==e.element.isOut?a("span",[e._v("店内就餐")]):e._e(),"2"==e.element.isOut?a("span",[e._v("打包带走")]):e._e()])]),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.preferentialMoney)+"]")]),a("h4",{staticStyle:{"font-weight":"bold"}},[e._v("应付:¥"+e._s(e.element.money)+" "),2==e.element.state||3==e.element.state||4==e.element.state||6==e.element.state||8==e.element.state?a("span",{staticStyle:{"font-size":"12px"}},[e._v("(已支付)")]):e._e(),7==e.element.state||9==e.element.state?a("span",{staticStyle:{"font-size":"12px"}},[e._v("(未支付)")]):e._e()])]),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("cc86"),a("2877")),l=Object(c["a"])(o,n,r,!1,null,"35905ce2",null);t["a"]=l.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}},"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}},"8e5b":function(e,t,a){},"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 x})),a.d(t,"d",(function(){return w})),a.d(t,"G",(function(){return C})),a.d(t,"o",(function(){return O})),a.d(t,"t",(function(){return j})),a.d(t,"i",(function(){return k})),a.d(t,"g",(function(){return I})),a.d(t,"h",(function(){return D})),a.d(t,"j",(function(){return N})),a.d(t,"A",(function(){return S})),a.d(t,"k",(function(){return M})),a.d(t,"s",(function(){return T})),a.d(t,"u",(function(){return L})),a.d(t,"y",(function(){return $})),a.d(t,"B",(function(){return E})),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 F}));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 x(e){return Object(n["a"])({url:"channel/in-store/cashier-order-list",method:"get",params:e})}function w(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 O(e){return Object(n["a"])({url:"channel/in-store/save-code",method:"get",params:e})}function j(e){return Object(n["a"])({url:"channel/in-store/get-table",method:"get",params:e})}function k(e){return Object(n["a"])({url:"channel/in-store/establish-code",method:"post",data:e})}function I(e){return Object(n["a"])({url:"channel/in-store/code-list",method:"get",params:e})}function D(e){return Object(n["a"])({url:"channel/in-store/del-code",method:"post",data:e})}function N(e){return Object(n["a"])({url:"channel/in-store/fast-order-list",method:"get",params:e})}function S(e){return Object(n["a"])({url:"channel/in-store/modify-fast-order",method:"post",data:e})}function M(e){return Object(n["a"])({url:"channel/screen/fast-screen",method:"post",data:e})}function T(e){return Object(n["a"])({url:"channel/in-store/get-store-code",method:"get",params:e})}function L(e){return Object(n["a"])({url:"channel/in-store/table-order",method:"get",params:e})}function $(e){return Object(n["a"])({url:"channel/in-store/in-store-order-list",method:"get",params:e})}function E(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 F(e){return Object(n["a"])({url:"channel/in-store/out-order-list",method:"get",params:e})}},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,x=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 w,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(x(t)),a,C):x(t)},O=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(","),j=0;O.length>j;j++)o(h,w=O[j])&&!o(C,w)&&v(C,w,m(h,w));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)}})},cc86:function(e,t,a){"use strict";var n=a("ecd0"),r=a.n(n);r.a},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)},d7b2: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 infastorder"},[e._m(0),a("el-tabs",{staticClass:"mar_b20",on:{"tab-click":e.handleTabClick2},model:{value:e.orderType,callback:function(t){e.orderType=t},expression:"orderType"}},[a("el-tab-pane",{attrs:{label:"订单管理",name:"1"}}),a("el-tab-pane",{attrs:{label:"订单查询",name:"2"}})],1),a("div",{staticClass:"ba_f8 pad_20 mar_b20"},[a("div",{staticClass:"lh25 mar_t10 msgtext fon_12"},[e._v(" 温馨提示:"),a("br"),e._v(" 1、此功能建议配合云喇叭+小票机打印更方便高效,叫号功能需先配置百度云语音Ai功能;"),a("br"),e._v(" 2、订单排号大屏幕:"),a("span",{staticClass:"subjectcolor2 curs",on:{click:e.chickScreen}},[e._v(e._s(e.path))]),a("br")])]),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",on:{change:e.onSearch},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 orderLeft"},[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:"2"}}),a("el-tab-pane",{attrs:{label:"已取消",name:"3"}}),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 fon_16",class:"2"==t.isOut?"number2":"number"},[e._v(e._s(t.callNo))]),a("div",{staticClass:"flex-g-1 wei fon_12 color_3 mar_l10"},[a("div",{staticClass:"flex-bet"},[a("div",[e._v("支付时间:"+e._s(t.payAt))]),t.callNum>0?a("div",[e._v("叫号次数:"+e._s(t.callNum))]):e._e()]),a("div",{staticClass:"flex-bet"},[a("div",[e._v("订单号:"+e._s(t.outTradeNo))]),a("div",{})]),a("div",{staticClass:"flex-bet"},[a("div",[e._v("实付金额:"+e._s(t.money)+" "),2==t.state||3==t.state||4==t.state||6==t.state||8==t.state?a("span",{staticClass:"mar_l5 color-green"},[e._v("(已支付)")]):e._e(),7==t.state||9==t.state?a("span",{staticClass:"mar_l5 color-red"},[e._v("(已退款)")]):e._e()]),a("div",[a("div",{staticClass:"msgNumber"},["2"==t.state?a("span",{staticClass:"type bg3"},[e._v("待接单")]):e._e(),"3"==t.state?a("span",{staticClass:"type bg2"},[e._v("制作中")]):e._e(),"4"==t.state?a("span",{staticClass:"type bg4"},[e._v("已完成")]):e._e(),"5"==t.state?a("span",{staticClass:"type bg4"},[e._v("已取消")]):e._e(),"6"==t.state?a("span",[e._v("申请退款")]):e._e(),a("span",{directives:[{name:"show",rawName:"v-show",value:"7"==t.state,expression:"item.state=='7'"}],staticClass:"color-red"},[e._v("退款成功")]),"8"==t.state?a("span",[e._v("拒绝退款")]):e._e(),"9"==t.state?a("span",{staticClass:"color-red"},[e._v("商户拒单并退款")]):e._e()])])]),a("div",{staticClass:"flex"},[a("div",[e._v("消费方式:")]),a("div",{staticClass:"mar_l10"},["1"==t.isOut?a("div",{staticClass:"type2"},[e._v("店内就餐")]):e._e(),"2"==t.isOut?a("div",{staticClass:"type2"},[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},[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:"bflex-5"},[a("span",{staticClass:"wei"},[e._v("取单号:")]),e._v(" "+e._s(t.callNo)+" ")])]),a("div",{staticClass:"flex"},[a("div",{staticClass:"bflex-5"},[a("span",{staticClass:"wei"},[e._v("消费方式:")]),"1"==t.isOut?a("span",[e._v("店内就餐")]):e._e(),"2"==t.isOut?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("订单优惠:")]),e._v(e._s(t.allPreferential))])]),a("div",{staticClass:"flex"},[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:"bflex-5"},[a("span",{staticClass:"wei"},[e._v("支付方式:")]),"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()])])]),a("div",{staticClass:"goodsList"},[a("el-table",{staticStyle:{width:"100%"},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))]),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("X"+e._s(t.row.num))])]}}],null,!0)}),a("el-table-column",{attrs:{prop:"money",label:"金额"}})],1),"2"==t.isOut?a("div",{staticClass:"flex flex-col-end fon_14 mar_r10 mar_t5"},[a("div",[e._v("包装费:"+e._s(t.tablewareMoney)+"元")])]):e._e()],1),a("div",{staticClass:"pad_10 t_c anniu"},["1"!=e.activeName?a("el-button",{attrs:{plain:"",size:"medium"},on:{click:function(a){return e.modifyFastOrder(t.id,"print")}}},[e._v("打印小票 ")]):e._e(),"2"==t.state?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&&"5"!=t.origin&&"6"!=t.payMode&&"7"!=t.payMode&&"8"!=t.payMode&&"9"!=t.payMode?a("el-button",{attrs:{size:"medium",type:"danger"},on:{click:function(a){return e.modifyFastOrder(t.id,"rejection")}}},[e._v("拒单并退款 ")]):e._e(),"3"==t.state?a("el-button",{attrs:{type:"primary",size:"medium"},on:{click:function(a){return e.modifyFastOrder(t.id,"call")}}},[e._v("取单并叫号 ")]):e._e(),"3"==t.state?a("el-button",{attrs:{size:"medium",type:"danger"},on:{click:function(a){return e.modifyFastOrder(t.id,"refund")}}},[e._v("退款 ")]):e._e(),"3"==t.state?a("el-button",{attrs:{type:"success",size:"medium"},on:{click:function(a){return e.modifyFastOrder(t.id,"confirm")}}},[e._v("完成 ")]):e._e()],1)])})),0):e._e()])],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",{staticClass:"pad_20"},[a("img",{staticStyle:{width:"200px",height:"200px"},attrs:{src:e.codeimg}})])])]),a("div",{staticStyle:{height:"0",overflow:"hidden"}},[a("KcPrint",{ref:"kcprint",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("ac1f"),a("466d"),a("96cf"),a("1da1")),i=a("5530"),o=a("9cde"),c=a("365c"),l=a("ed08"),u=a("2f62"),d=a("294d"),p=a("f8b7"),f=a("0341"),m={components:{KcPrint:f["a"]},computed:Object(i["a"])({},Object(u["d"])(["storeId"])),created:function(){this.init(),this.fetchData()},data:function(){return{orderType:"1",path:"",activeName:"1",formInline:{tabPosition:"1",keyword:"",timeData:[]},form:{goodsSet:[],enterStore:"1",showType:"1",distance:""},orderListHover:0,orderListData:[],listLoading:!1,selectRows:"",elementLoadingText:"正在加载...",page:{total:0,size:10,currentPage:1},dialogFormVisible:!1,codeimg:"",printData:{}}},methods:{handleTabClick2:function(){"1"==this.orderType?this.$router.push("/storeinfastorder?orderType=1"):"2"==this.orderType&&this.$router.push("/storeinfastorderquery?orderType=2")},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:a="https://bkycms.com/addons/yb_wm/views/channel/index/index.html#/fastScreen?storeId=".concat(e.storeId),n=c["a"].isDev?a:location.href.match(/(\S*)views/)[1]+"views/channel/index/index.html#/fastScreen?storeId=".concat(e.storeId),e.path=n;case 3: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={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["j"])(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)})))()},onSearch:function(){this.fetchData()},handleTabClick:function(){this.orderListHover=0,this.page.currentPage=1,this.fetchData()},handleCurrentChange:function(e){this.orderListHover=0,this.page.currentPage=e,this.fetchData()},chickScreen:function(){var e=this.$router.resolve({path:"/fastScreen?storeId=".concat(this.storeId),query:{}});window.open(e.href,"_blank")},clickOrderList:function(e,t){this.orderListHover=t},modifyFastOrder:function(e,t){var a=this;return Object(s["a"])(regeneratorRuntime.mark((function n(){var r,i,c,l,u,d,f,m,v,_,b,h;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if("receipt"!=t){n.next=14;break}return n.next=3,Object(o["A"])({orderId:e,type:t});case 3:return r=n.sent,i=r.msg,a.$baseMessage(i,"success"),n.next=8,Object(p["l"])({orderId:e,orderType:3});case 8:c=n.sent,l=c.data,Object.keys(l).map((function(e){a.printData=l[e],a.$nextTick((function(){a.$refs.kcprint.printElement(e)}))})),a.fetchData(),n.next=50;break;case 14:if("rejection"!=t){n.next=18;break}a.$baseConfirm("您确定拒绝此订单吗",null,Object(s["a"])(regeneratorRuntime.mark((function n(){var r,s;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,Object(o["A"])({orderId:e,type:t});case 2:r=n.sent,s=r.msg,a.$baseMessage(s,"success"),a.fetchData();case 6:case"end":return n.stop()}}),n)})))),n.next=50;break;case 18:if("confirm"!=t){n.next=22;break}a.$baseConfirm("您确定完成此订单吗",null,Object(s["a"])(regeneratorRuntime.mark((function n(){var r,s;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,Object(o["A"])({orderId:e,type:t});case 2:r=n.sent,s=r.msg,a.$baseMessage(s,"success"),a.fetchData();case 6:case"end":return n.stop()}}),n)})))),n.next=50;break;case 22:if("call"!=t){n.next=35;break}return n.next=25,Object(o["A"])({orderId:e,type:t});case 25:u=n.sent,d=u.data,f=u.msg,m=new Audio,m.src=d,m.play(),a.$baseMessage(f,"success"),a.fetchData(),n.next=50;break;case 35:if("print"!=t){n.next=49;break}return n.next=38,Object(o["A"])({orderId:e,type:t});case 38:return v=n.sent,_=v.msg,a.$baseMessage(_,"success"),n.next=43,Object(p["l"])({orderId:e,orderType:3});case 43:b=n.sent,h=b.data,Object.keys(h).map((function(e){a.printData=h[e],a.$nextTick((function(){a.$refs.kcprint.printElement(e)}))})),a.fetchData(),n.next=50;break;case 49:"refund"==t?a.$baseConfirm("您确定退款此订单吗",null,Object(s["a"])(regeneratorRuntime.mark((function n(){var r,s;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,Object(o["A"])({orderId:e,type:t});case 2:r=n.sent,s=r.msg,a.$baseMessage(s,"success"),a.fetchData();case 6:case"end":return n.stop()}}),n)})))):(a.$baseMessage("敬请期待","success"),a.fetchData());case 50:case"end":return n.stop()}}),n)})))()},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:return e.dialogFormVisible=!0,t.next=3,Object(d["n"])({storeId:e.storeId,ident:"fastOrder",page:"yb_wm/shop/ffmode/goods"});case 3:a=t.sent,n=a.data,e.codeimg=n||"";case 6:case"end":return t.stop()}}),t)})))()}}},v=m,_=(a("e871"),a("2877")),b=Object(_["a"])(v,n,r,!1,null,null,null);t["default"]=b.exports},e871:function(e,t,a){"use strict";var n=a("8e5b"),r=a.n(n);r.a},ecd0:function(e,t,a){},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}}}]);