(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-fa969d0c"],{1158:function(e,t,n){"use strict";n("73ca0")},"3cc1":function(e,t,n){"use strict";n("7a72")},"73ca0":function(e,t,n){},"7a72":function(e,t,n){},"7ba3":function(e,t,n){"use strict";n("cc03")},ad8f:function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"f",(function(){return i})),n.d(t,"a",(function(){return s})),n.d(t,"h",(function(){return o})),n.d(t,"d",(function(){return l})),n.d(t,"i",(function(){return c})),n.d(t,"g",(function(){return u})),n.d(t,"b",(function(){return d})),n.d(t,"e",(function(){return f}));var a=n("b775");function r(e){return Object(a["a"])({url:"channel/in-store/get-area",method:"get",params:e})}function i(e){return Object(a["a"])({url:"channel/in-store/table-order",method:"get",params:e})}function s(e){return Object(a["a"])({url:"channel/in-store/clean-table",method:"post",data:e})}function o(e){return Object(a["a"])({url:"channel/in-store/save-table-num",method:"post",data:e})}function l(e){return Object(a["a"])({url:"channel/in-store/save-table-num",method:"get",params:e})}function c(e){return Object(a["a"])({url:"channel/cashier-order/set-order",method:"post",data:e})}function u(e){return Object(a["a"])({url:"channel/cashier-order/put-money",method:"post",data:e})}function d(e){return Object(a["a"])({url:"channel/cashier-goods/del-goods",method:"post",data:e})}function f(e){return Object(a["a"])({url:"channel/config/store-config",method:"get",params:e})}},b3c3:function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{},[n("el-dialog",{attrs:{title:e.title,visible:e.dialogFormVisible,width:"500px","close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisible=t},close:e.close}},[n("div",{staticClass:"addTabel"},[n("div",{staticClass:"pad_20 t_l fon_20"},[e._v("桌台信息:"+e._s(e.tableNumber))]),n("div",{staticClass:"pad_lr_20"},[n("el-input",{attrs:{placeholder:"请输入就餐人数"},model:{value:e.people,callback:function(t){e.people=t},expression:"people"}},[n("template",{slot:"prepend"},[e._v("人数")])],2)],1),n("div",{staticClass:"pad_lr_20 mar_t20"},[n("el-input",{attrs:{placeholder:"请输入内容",disabled:""},model:{value:e.userData.trueName,callback:function(t){e.$set(e.userData,"trueName",t)},expression:"userData.trueName"}},[n("template",{slot:"prepend"},[e._v("服务员")])],2)],1),"1"==e.editType?n("div",[n("keyboard2",{on:{confirmEvent:e._confirmEvent,queding:e.kaitai}})],1):e._e(),"2"==e.editType?n("div",[n("keyboard",{on:{confirmEvent:e._confirmEvent,queding:e.xiugai}})],1):e._e()])])],1)},r=[],i=(n("b0c0"),n("96cf"),n("1da1")),s=n("5530"),o=n("ad8f"),l=n("a685"),c=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"key-container"},[n("el-input",{staticStyle:{display:"none"},attrs:{placeholder:"请输入收款金额"},model:{value:e.money,callback:function(t){e.money=t},expression:"money"}},[n("i",{staticClass:"el-input__icon el-icon-error curs",attrs:{slot:"suffix"},on:{click:e._handleClearKey},slot:"suffix"})]),n("div",{staticClass:"keyboard"},[n("div",{staticClass:"key-row"},[n("div",{staticClass:"key-cell",attrs:{"data-num":"1"},on:{click:[function(t){return t.stopPropagation(),e._handleKeyPress(t)},e.clickValue]}},[e._v("1")]),n("div",{staticClass:"key-cell",attrs:{"data-num":"2"},on:{click:[function(t){return t.stopPropagation(),e._handleKeyPress(t)},e.clickValue]}},[e._v("2")]),n("div",{staticClass:"key-cell",attrs:{"data-num":"3"},on:{click:[function(t){return t.stopPropagation(),e._handleKeyPress(t)},e.clickValue]}},[e._v("3")]),n("div",{staticClass:"key-cell",attrs:{"data-num":"C"},on:{click:[function(t){return t.stopPropagation(),e._handleKeyPress(t)},e.clickValue]}},[e._v("清空")])]),n("div",{staticClass:"key-row"},[n("div",{staticClass:"key-cell",attrs:{"data-num":"4"},on:{click:[function(t){return t.stopPropagation(),e._handleKeyPress(t)},e.clickValue]}},[e._v("4")]),n("div",{staticClass:"key-cell",attrs:{"data-num":"5"},on:{click:[function(t){return t.stopPropagation(),e._handleKeyPress(t)},e.clickValue]}},[e._v("5")]),n("div",{staticClass:"key-cell",attrs:{"data-num":"6"},on:{click:[function(t){return t.stopPropagation(),e._handleKeyPress(t)},e.clickValue]}},[e._v("6")]),n("div",{staticClass:"key-cell",attrs:{"data-num":"C"},on:{click:[function(t){return t.stopPropagation(),e._handleKeyPress(t)},e.clickValue]}},[e._v("清空")])]),n("div",{staticClass:"key-row"},[n("div",{staticClass:"key-cell",attrs:{"data-num":"7"},on:{click:[function(t){return t.stopPropagation(),e._handleKeyPress(t)},e.clickValue]}},[e._v("7")]),n("div",{staticClass:"key-cell",attrs:{"data-num":"8"},on:{click:[function(t){return t.stopPropagation(),e._handleKeyPress(t)},e.clickValue]}},[e._v("8")]),n("div",{staticClass:"key-cell",attrs:{"data-num":"9"},on:{click:[function(t){return t.stopPropagation(),e._handleKeyPress(t)},e.clickValue]}},[e._v("9")]),n("div",{staticClass:"key-cell",attrs:{"data-num":"-1"},on:{click:[function(t){return t.stopPropagation(),e._handleKeyPress(t)},e.clickValue]}})]),n("div",{staticClass:"key-row"},[n("div",{staticClass:"key-cell zero",attrs:{"data-num":"0"},on:{click:[function(t){return t.stopPropagation(),e._handleKeyPress(t)},e.clickValue]}},[e._v("0")])]),n("div",{staticClass:"key-confirm curs",attrs:{"data-num":"S"},on:{click:[function(t){return t.stopPropagation(),e._handleKeyPress(t)},e.queding]}},[e._v("立即"),n("br"),e._v("开台")])])],1)},u=[],d=(n("c975"),n("a9e3"),{data:function(){return{money:""}},methods:{clickValue:function(){this.$emit("confirmEvent",this.money)},queding:function(){this.$emit("queding")},_handleKeyPress:function(e){var t=e.target.dataset.num;if(-1==t)return!1;switch(String(t)){case".":this._handleDecimalPoint();break;case"D":this._handleDeleteKey();break;case"C":this._handleClearKey();break;case"S":this._handleConfirmKey();break;default:this._handleNumberKey(t);break}},_handleDecimalPoint:function(){if(this.money.indexOf(".")>-1)return!1;this.money.length?this.money=this.money+".":this.money="0."},_handleDeleteKey:function(){var e=this.money;if(!e.length)return!1;this.money=e.substring(0,e.length-1)},_handleClearKey:function(){this.money=""},_handleNumberKey:function(e){var t=this.money;if(t.indexOf(".")>-1&&t.substring(t.indexOf(".")+1).length<2&&(this.money=t+e),!(t.indexOf(".")>-1)){if(t.length&&0===Number(t.charAt(0)))return;this.money=t+e}},_handleConfirmKey:function(){var e=this.money;if(!e.length)return!1;this.$emit("confirmEvent",e)}}}),f=d,m=(n("b89d"),n("7ba3"),n("0c7c")),b=Object(m["a"])(f,c,u,!1,null,"bf6b11c6",null),p=b.exports,h=n("2f62"),v={computed:Object(s["a"])({},Object(h["c"])(["userData","tableOrderInfo","tableInfo"])),components:{keyboard:l["a"],keyboard2:p},name:"addTabel",created:function(){},data:function(){return{form:{id:"",name:"",sort:"1"},people:"",input2:"",title:"",dialogFormVisible:!1,editType:"",tableNumber:""}},methods:Object(s["a"])(Object(s["a"])({},Object(h["b"])(["setTableInfo"])),{},{showEdit:function(e){e?(this.title="开台信息",this.form=Object.assign({},e),this.tableNumber=this.tableOrderInfo.name,console.log(1,this.form)):this.title="修改信息",this.dialogFormVisible=!0},editTypeClick:function(e){this.editType=e,"2"==e&&(this.people=this.tableInfo.people)},_confirmEvent:function(e){this.people=e},kaitai:function(){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function t(){var n,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!e.people){t.next=10;break}return t.next=3,Object(o["h"])({id:e.tableOrderInfo.id,people:e.people,storeId:e.userData.storeId});case 3:n=t.sent,a=n.msg,e.$baseMessage(a,"success"),e.close(),e.$router.push({path:"/ordering"}),t.next=11;break;case 10:e.$baseMessage("请输入就餐人数","error");case 11:case"end":return t.stop()}}),t)})))()},xiugai:function(){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function t(){var n,a,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!e.people){t.next=11;break}return t.next=3,Object(o["h"])({id:e.tableOrderInfo.id,people:e.people,storeId:e.userData.storeId});case 3:n=t.sent,a=n.msg,r=n.data,e.setTableInfo(r),sessionStorage.setItem("tableInfo",JSON.stringify(r)),e.$baseMessage(a,"success"),e.close(),e.$router.push({path:"/ordering"});case 11:case"end":return t.stop()}}),t)})))()},close:function(){this.dialogFormVisible=!1},clickSpecs:function(e,t){this.specsHover=t},clickAttribute:function(e,t){this.attributeHover=t},clickFeeding:function(e,t){this.feedingHover=t},save:function(){}})},k=v,g=(n("3cc1"),Object(m["a"])(k,a,r,!1,null,null,null));t["a"]=g.exports},b89d:function(e,t,n){"use strict";n("d8d4")},cc03:function(e,t,n){},d8d4:function(e,t,n){},ee70:function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{},[n("el-dialog",{attrs:{title:e.title,visible:e.dialogFormVisible,width:"500px","close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisible=t},close:e.close}},[n("div",{staticClass:"addTabel t_l"},[n("el-form",{ref:"form",attrs:{model:e.form,"label-width":"120px"}},[n("el-form-item",{attrs:{label:"退菜数量",prop:"num",required:""}},[n("el-input-number",{attrs:{size:"medium",min:1,max:99999999999,label:"描述文字"},model:{value:e.form.num,callback:function(t){e.$set(e.form,"num",t)},expression:"form.num"}})],1),n("el-form-item",{attrs:{label:"退菜理由",prop:"reason",required:""}},[n("div",{staticClass:"flex"},[n("el-select",{attrs:{placeholder:"请选择"},model:{value:e.form.reason,callback:function(t){e.$set(e.form,"reason",t)},expression:"form.reason"}},e._l(e.options,(function(e){return n("el-option",{key:e.value,attrs:{label:e.label,value:e.label}})})),1)],1)])],1),n("div",[n("keyboard",{on:{confirmEvent:e._confirmEvent,queding:e.save}})],1)],1)])],1)},r=[],i=(n("96cf"),n("1da1")),s=n("5530"),o=n("ad8f"),l=n("6fdd"),c=n("a685"),u=n("2f62"),d={computed:Object(s["a"])({},Object(u["c"])(["userData","tableOrderInfo","tableInfo","tableCurrCarIetm"])),components:{keyboard:c["a"]},name:"editReturnFood",created:function(){},data:function(){return{form:{id:"",num:"",reason:""},options:[{value:"1",label:"客退酒水"},{value:"2",label:"客人换菜"},{value:"3",label:"估清问题"},{value:"4",label:"重复出品"},{value:"5",label:"做法错误"},{value:"6",label:"等待太久"},{value:"7",label:"输入错误"},{value:"8",label:"质量问题"},{value:"9",label:"客人要求"}],title:"",dialogFormVisible:!1}},methods:Object(s["a"])(Object(s["a"])({},Object(u["b"])(["setTableGoodList","setTableCurrCarIetm","setTableInfo"])),{},{showEdit:function(e){e?this.title="开台信息":(this.title="退菜",this.tableCurrCarIetm||this.$baseMessage("请选择商品","error")),this.dialogFormVisible=!0},editTypeClick:function(e){this.editType=e,"2"==e&&(this.people=this.tableInfo.people)},_confirmEvent:function(e){this.form.num="",this.form.num=e},xiugai:function(){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function t(){var n,a,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!e.people){t.next=11;break}return t.next=3,Object(o["h"])({id:e.tableOrderInfo.id,people:e.people,storeId:e.userData.storeId});case 3:n=t.sent,a=n.msg,r=n.data,e.setTableInfo(r),sessionStorage.setItem("tableInfo",JSON.stringify(r)),e.$baseMessage(a,"success"),e.close(),e.$router.push({path:"/ordering"});case 11:case"end":return t.stop()}}),t)})))()},getTableCarList:function(){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function t(){var n,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n={storeId:e.userData.storeId,tableId:e.tableOrderInfo.id},t.next=3,Object(l["c"])(n);case 3:a=t.sent,e.setTableGoodList(a);case 5:case"end":return t.stop()}}),t)})))()},close:function(){this.dialogFormVisible=!1},save:function(){var e=this;this.$refs["form"].validate(function(){var t=Object(i["a"])(regeneratorRuntime.mark((function t(n){var a,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!n){t.next=14;break}if(!e.tableCurrCarIetm){t.next=11;break}return a={id:e.tableCurrCarIetm.id,num:e.form.num,reason:e.form.reason,storeId:e.userData.storeId},t.next=5,Object(o["b"])(a);case 5:r=t.sent,r.data,e.getTableCarList(),e.close(),t.next=12;break;case 11:e.$baseMessage("请选择商品","error");case 12:t.next=15;break;case 14:return t.abrupt("return",!1);case 15:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())}})},f=d,m=(n("1158"),n("0c7c")),b=Object(m["a"])(f,a,r,!1,null,null,null);t["a"]=b.exports}}]);