1 line
17 KiB
JavaScript
1 line
17 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-650d2d4d"],{"3bbe":function(e,t,r){var n=r("861d");e.exports=function(e){if(!n(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},7156:function(e,t,r){var n=r("861d"),a=r("d2bb");e.exports=function(e,t,r){var s,o;return a&&"function"==typeof(s=t.constructor)&&s!==r&&n(o=s.prototype)&&o!==r.prototype&&a(e,o),e}},"73d3":function(e,t,r){"use strict";var n=r("9d8c"),a=r.n(n);a.a},8388:function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[r("div",{staticClass:"outmain ba_f tangshi"},[e._m(0),r("el-tabs",{staticClass:"mar_b20",on:{"tab-click":e.handleTabClick},model:{value:e.orderType,callback:function(t){e.orderType=t},expression:"orderType"}},[r("el-tab-pane",{attrs:{label:"订单管理",name:"1"}}),r("el-tab-pane",{attrs:{label:"待完成订单",name:"2"}}),r("el-tab-pane",{attrs:{label:"已完成订单",name:"3"}})],1),e._m(1),r("div",{staticClass:"mar_t20"},[r("div",{staticClass:"quyu flex flex-wrap"},e._l(e.areaList,(function(t,n){return r("div",{key:n,staticClass:"quyuli",class:{quyuHover:n==e.typeListHover},on:{click:function(r){return e.clickTypeList(t,n)}}},[e._v(" "+e._s(t.name)+" ")])})),0),r("div",{staticClass:"flex-bet mar_t20 flex-y-top"},[r("div",{directives:[{name:"show",rawName:"v-show",value:e.tablesList&&e.tablesList.length>0,expression:"tablesList && tablesList.length>0"}],staticClass:"leibie flex-g-0 heighthv"},e._l(e.tablesList,(function(t,n){return r("div",{key:n,staticClass:"leibieli",class:{leibieHover:n==e.jListHover},on:{click:function(r){return e.clickjList(t,n)}}},[r("span",{directives:[{name:"show",rawName:"v-show",value:t.name,expression:"J.name"}]},[e._v(e._s(t.name)+"("+e._s(t.num)+")")])])})),0),r("div",{staticClass:"zuozi flex-g-1"},[e.tablesList&&e.tablesList.length>0&&e.tablesList[0].tableInfo?r("div",{staticClass:"zuoziWrap flex-wrap flex flex-y-top"},e._l(e.tablesList[e.jListHover].tableInfo,(function(t,n){return r("div",{key:n,staticClass:"zuozili flex-colbt",class:{zuoziliHover:n==e.kListHover},on:{click:function(r){return e.orderDl(t)}}},[r("div",{directives:[{name:"show",rawName:"v-show",value:"1"==t.state,expression:"K.state=='1'"}],staticClass:"zuoziliT flex-bet"},[r("div",[e._v(e._s(t.name))])]),r("div",{directives:[{name:"show",rawName:"v-show",value:"2"==t.state,expression:"K.state=='2'"}],staticClass:"zuoziliT zuozili1 flex-bet"},[r("div",[e._v(e._s(t.name))]),r("div",{staticClass:"mar_r10",on:{click:function(r){return r.stopPropagation(),e.deletePreview(t)}}},[e._m(2,!0)])]),r("div",{directives:[{name:"show",rawName:"v-show",value:"3"==t.state,expression:"K.state=='3'"}],staticClass:"zuoziliT zuozili2 flex-bet"},[r("div",[e._v(e._s(t.name))]),r("div",{staticClass:"mar_r10",on:{click:function(r){return r.stopPropagation(),e.deletePreview(t)}}},[e._m(3,!0)])]),r("div",[r("span",{directives:[{name:"show",rawName:"v-show",value:"1"==t.state,expression:"K.state=='1'"}]},[e._v("未开台")]),r("span",{directives:[{name:"show",rawName:"v-show",value:"2"==t.state,expression:"K.state=='2'"}]},[e._v("已开台")]),r("span",{directives:[{name:"show",rawName:"v-show",value:"3"==t.state,expression:"K.state=='3'"}]},[e._v("就餐中")])]),r("div",{directives:[{name:"show",rawName:"v-show",value:"2"==t.state&&t.orderInfo&&!t.orderInfo.state,expression:"K.state=='2' && K.orderInfo && !K.orderInfo.state"}]},[r("span",{staticClass:"color_9"},[e._v("未下单")])]),r("div",{directives:[{name:"show",rawName:"v-show",value:"2"==t.state&&t.orderInfo&&"1"==t.orderInfo.state,expression:"K.state=='2' && K.orderInfo && K.orderInfo.state=='1'"}]},[r("span",{staticClass:"color_rb"},[e._v("未接单")])]),r("div",{directives:[{name:"show",rawName:"v-show",value:"1"==t.state,expression:"K.state=='1'"}],staticClass:"flex-bet pad_lr_10"},[r("div"),r("div",{staticClass:"color_9"},[e._v(e._s(t.maxNum)+"座")])]),r("div",{directives:[{name:"show",rawName:"v-show",value:"3"==t.state&&t.orderInfo.people,expression:"K.state=='3' && K.orderInfo.people"}],staticClass:"flex-bet pad_lr_10"},[r("div",{directives:[{name:"show",rawName:"v-show",value:t.orderInfo.receiptAt,expression:"K.orderInfo.receiptAt"}]},[e._v(e._s(e.timeStamp(Math.round((new Date).getTime()/1e3).toString()-t.orderInfo.receiptAt))+" ")]),r("div",{staticClass:"color_9"},[e._v(e._s(t.orderInfo.people)+"人")])])])})),0):e._e(),r("div",{staticClass:"flex-bet"},[e._m(4),r("div",{staticClass:"flex mar_r10"},[r("div",[e._v("结算模式: "),r("span",{directives:[{name:"show",rawName:"v-show",value:"1"==e.payMode,expression:"payMode=='1'"}],staticClass:"subjectcolor2"},[e._v("先结账后用餐")]),r("span",{directives:[{name:"show",rawName:"v-show",value:"2"==e.payMode,expression:"payMode=='2'"}],staticClass:"subjectcolor2"},[e._v("先用餐后结账")])]),r("div",{staticClass:"mar_l20"},[e._v("点餐模式: "),r("span",{directives:[{name:"show",rawName:"v-show",value:"1"==e.orderMode,expression:"orderMode=='1'"}],staticClass:"subjectcolor2"},[e._v("多人点餐")]),r("span",{directives:[{name:"show",rawName:"v-show",value:"2"==e.orderMode,expression:"orderMode=='2'"}],staticClass:"subjectcolor2"},[e._v("拼桌点餐")])])])])])])])],1)])},a=[function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"shuju_title mar_b20"},[r("div",{staticClass:"shuju_title_text"},[r("span",[e._v("堂食订单")])])])},function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"ba_f8 pad_20"},[r("div",{staticClass:"lh25 msgtext fon_12"},[e._v(" 温馨提示:此区域仅显示区域有餐桌的订单管理;"),r("br"),e._v(" 1、未开台,是指空闲的餐桌;"),r("br"),e._v(" 2、已开台,是指用户已确定了餐桌未点菜,或用户下了订单,商家暂未接单的状态;"),r("br"),e._v(" 3、就餐中,是指用户已点菜下单的状态。 ")])])},function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("a",{attrs:{title:"点击取消/清台"}},[r("i",{staticClass:"el-icon-error color_f"})])},function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("a",{attrs:{title:"点击取消/清台"}},[r("i",{staticClass:"el-icon-error color_f"})])},function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"zhuozizt pad_10 flex"},[e._v(" 状态: "),r("div",{staticClass:"zhuoziztli flex zhuoziztHover"},[r("div",{staticClass:"zt quanbu"}),r("div",[e._v("未开台")])]),r("div",{staticClass:"zhuoziztli flex"},[r("div",{staticClass:"zt yikaitai"}),r("div",[e._v("已开台")])]),r("div",{staticClass:"zhuoziztli flex"},[r("div",{staticClass:"zt daijiez"}),r("div",[e._v("就餐中")])])])}],s=(r("96cf"),r("1da1")),o=r("294d"),i=r("9cde"),c=(r("ed08"),{created:function(){this.getStoreConfig(),this.fetchData()},data:function(){return{typeListHover:0,jListHover:0,kListHover:0,typeList:[],areaList:[],tablesList:[],radio:"1",value:new Date,page:{total:0,size:10,currentPage:1},payMode:"",orderMode:"",orderType:"1"}},methods:{getStoreConfig:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var r,n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(o["E"])({ident:"instoreSet"});case 2:r=t.sent,n=r.data,e.orderMode=n.orderMode,e.payMode=n.payMode;case 6:case"end":return t.stop()}}),t)})))()},clickTypeList:function(e,t){var r=this;return Object(s["a"])(regeneratorRuntime.mark((function n(){var a,s;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(r.typeListHover=t,!e.id){n.next=7;break}return n.next=4,Object(i["u"])({areaId:e.id});case 4:a=n.sent,s=a.data,r.tablesList=s||[];case 7:case"end":return n.stop()}}),n)})))()},clickjList:function(e,t){this.jListHover=t},fetchData:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var r,n,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(i["l"])();case 2:if(r=t.sent,n=r.data,e.areaList=n,!n[0]){t.next=10;break}return t.next=8,Object(i["u"])({areaId:n[0].id});case 8:a=t.sent,e.tablesList=a.data?a.data:[];case 10:case"end":return t.stop()}}),t)})))()},setSelectRows:function(e){this.selectRows=e},handleCurrentChange:function(e){this.page.currentPage=e,this.fetchData()},orderDl:function(e){"1"==e.state||"2"==e.state||"3"==e.state&&this.payMode,this.$router.push("/instoreorderdl?tableId=".concat(e.id,"&activeName=","1"))},deletePreview:function(e){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:t.$baseConfirm("您确定清除此桌台吗",null,Object(s["a"])(regeneratorRuntime.mark((function r(){var n,a;return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return r.next=2,Object(i["f"])({tableId:e.id});case 2:n=r.sent,a=n.msg,t.$baseMessage(a,"success"),t.fetchData(),t.typeListHover=0;case 7:case"end":return r.stop()}}),r)}))));case 1:case"end":return r.stop()}}),r)})))()},handleTabClick:function(){"1"==this.orderType?this.$router.push("/instoreorder?orderType=1"):"2"==this.orderType?this.$router.push("/instoredwcorderquery?orderType=2"):"3"==this.orderType&&this.$router.push("/instoreorderquery?orderType=3")},timeStamp:function(e){var t=parseInt(e)+"秒";if(parseInt(e)>60){var r=parseInt(e)%60,n=parseInt(e/60);if(t=n+"分"+r+"秒",n>60){n=parseInt(e/60)%60;var a=parseInt(parseInt(e/60)/60);if(t=a+"小时"+n+"分"+r+"秒",a>24){a=parseInt(parseInt(e/60)/60)%24;var s=parseInt(parseInt(parseInt(e/60)/60)/24);t=s+"天"+a+"小时"+n+"分"+r+"秒"}}}return t}}}),u=c,l=(r("73d3"),r("2877")),d=Object(l["a"])(u,n,a,!1,null,null,null);t["default"]=d.exports},"9cde":function(e,t,r){"use strict";r.d(t,"F",(function(){return a})),r.d(t,"n",(function(){return s})),r.d(t,"z",(function(){return o})),r.d(t,"a",(function(){return i})),r.d(t,"x",(function(){return c})),r.d(t,"J",(function(){return u})),r.d(t,"l",(function(){return l})),r.d(t,"H",(function(){return d})),r.d(t,"p",(function(){return f})),r.d(t,"C",(function(){return p})),r.d(t,"K",(function(){return h})),r.d(t,"I",(function(){return v})),r.d(t,"q",(function(){return m})),r.d(t,"v",(function(){return b})),r.d(t,"D",(function(){return g})),r.d(t,"b",(function(){return _})),r.d(t,"e",(function(){return w})),r.d(t,"c",(function(){return j})),r.d(t,"d",(function(){return y})),r.d(t,"G",(function(){return x})),r.d(t,"o",(function(){return O})),r.d(t,"t",(function(){return C})),r.d(t,"i",(function(){return I})),r.d(t,"g",(function(){return N})),r.d(t,"h",(function(){return z})),r.d(t,"j",(function(){return L})),r.d(t,"A",(function(){return M})),r.d(t,"k",(function(){return k})),r.d(t,"s",(function(){return T})),r.d(t,"u",(function(){return S})),r.d(t,"y",(function(){return D})),r.d(t,"B",(function(){return E})),r.d(t,"f",(function(){return H})),r.d(t,"r",(function(){return K})),r.d(t,"m",(function(){return A})),r.d(t,"w",(function(){return R})),r.d(t,"E",(function(){return $}));var n=r("b775");function a(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 o(e){return Object(n["a"])({url:"channel/in-store/modify-area",method:"post",data:e})}function i(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 u(e){return Object(n["a"])({url:"channel/in-store/table-list",method:"get",params:e})}function l(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 f(e){return Object(n["a"])({url:"channel/in-store/save-table",method:"get",params:e})}function p(e){return Object(n["a"])({url:"channel/in-store/modify-table",method:"post",data:e})}function h(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 m(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 g(e){return Object(n["a"])({url:"channel/in-store/modify-type",method:"post",data:e})}function _(e){return Object(n["a"])({url:"channel/in-store/batch-table",method:"post",data:e})}function w(e){return Object(n["a"])({url:"channel/in-store/cashier-statistics",method:"get",params:e})}function j(e){return Object(n["a"])({url:"channel/in-store/cashier-order-list",method:"get",params:e})}function y(e){return Object(n["a"])({url:"channel/in-store/cashier-print",method:"post",data:e})}function x(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 C(e){return Object(n["a"])({url:"channel/in-store/get-table",method:"get",params:e})}function I(e){return Object(n["a"])({url:"channel/in-store/establish-code",method:"post",data:e})}function N(e){return Object(n["a"])({url:"channel/in-store/code-list",method:"get",params:e})}function z(e){return Object(n["a"])({url:"channel/in-store/del-code",method:"post",data:e})}function L(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 k(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 S(e){return Object(n["a"])({url:"channel/in-store/table-order",method:"get",params:e})}function D(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 H(e){return Object(n["a"])({url:"channel/in-store/clean-table",method:"post",data:e})}function K(e){return Object(n["a"])({url:"channel/in-store/statistics",method:"get",params:e})}function A(e){return Object(n["a"])({url:"channel/pay-vip/order-statistics",method:"get",params:e})}function R(e){return Object(n["a"])({url:"channel/pay-vip/order-list",method:"get",params:e})}function $(e){return Object(n["a"])({url:"channel/in-store/out-order-list",method:"get",params:e})}},"9d8c":function(e,t,r){},a9e3:function(e,t,r){"use strict";var n=r("83ab"),a=r("da84"),s=r("94ca"),o=r("6eeb"),i=r("5135"),c=r("c6b6"),u=r("7156"),l=r("c04e"),d=r("d039"),f=r("7c73"),p=r("241c").f,h=r("06cf").f,v=r("9bf2").f,m=r("58a8").trim,b="Number",g=a[b],_=g.prototype,w=c(f(_))==b,j=function(e){var t,r,n,a,s,o,i,c,u=l(e,!1);if("string"==typeof u&&u.length>2)if(u=m(u),t=u.charCodeAt(0),43===t||45===t){if(r=u.charCodeAt(2),88===r||120===r)return NaN}else if(48===t){switch(u.charCodeAt(1)){case 66:case 98:n=2,a=49;break;case 79:case 111:n=8,a=55;break;default:return+u}for(s=u.slice(2),o=s.length,i=0;i<o;i++)if(c=s.charCodeAt(i),c<48||c>a)return NaN;return parseInt(s,n)}return+u};if(s(b,!g(" 0o1")||!g("0b1")||g("+0x1"))){for(var y,x=function(e){var t=arguments.length<1?0:e,r=this;return r instanceof x&&(w?d((function(){_.valueOf.call(r)})):c(r)!=b)?u(new g(j(t)),r,x):j(t)},O=n?p(g):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),C=0;O.length>C;C++)i(g,y=O[C])&&!i(x,y)&&v(x,y,h(g,y));x.prototype=_,_.constructor=x,o(a,b,x)}},bf19:function(e,t,r){"use strict";var n=r("23e7");n({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return URL.prototype.toString.call(this)}})},d2bb:function(e,t,r){var n=r("825a"),a=r("3bbe");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,e.call(r,[]),t=r instanceof Array}catch(s){}return function(r,s){return n(r),a(s),t?e.call(r,s):r.__proto__=s,r}}():void 0)},ed08:function(e,t,r){"use strict";r.d(t,"a",(function(){return n})),r.d(t,"b",(function(){return a})),r.d(t,"c",(function(){return s}));r("a9e3"),r("ac1f"),r("5319"),r("bf19");function n(e){var t=new Date(e).toJSON(),r=new Date(+new Date(t)+288e5).toISOString().replace(/T/g," ").replace(/\.[\d]{3}Z/,"");return r}function a(e){var t=new Date(e),r=t.getFullYear(),n=t.getMonth()+1<10?"0"+(t.getMonth()+1):t.getMonth()+1,a=t.getDate()<10?"0"+t.getDate():t.getDate(),s=t.getHours()<10?"0"+t.getHours():t.getHours(),o=t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes(),i=t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds();return r+"-"+n+"-"+a+" "+s+":"+o+":"+i}function s(e){var t=new Date(1e3*Number(e)),r=t.getFullYear()+"-",n=(t.getMonth()+1<10?"0"+(t.getMonth()+1):t.getMonth()+1)+"-",a=(t.getDate()<10?"0"+t.getDate():t.getDate())+" ",s=(t.getHours()<10?"0"+t.getHours():t.getHours())+":",o=(t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes())+":",i=t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds(),c=r+n+a+s+o+i;return c}}}]); |