1 line
34 KiB
JavaScript
1 line
34 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-280c16e0"],{"0cac":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"heighthv rel"},[a("div",{staticClass:"flex-bet flex-y-top tableMainBox"},[a("div",{staticClass:"tableMain heighthv bflex-8",staticStyle:{width:"70%"}},[a("div",{staticClass:"tableType ba_f bor_rad10"},[a("el-scrollbar",{staticClass:"flex-g-1 tableType_wrap_scor"},[a("div",{staticClass:"flex"},e._l(e.areaList,(function(t,s){return a("div",{key:s,staticClass:"typeList pad_20 curs bor_rad10",class:{typeHover:s==e.typeListHover},on:{click:function(a){return e.selectType(t,s)}}},[e._v(" "+e._s(t.name)+" ")])})),0)])],1),a("div",{staticClass:"flex-bet mar_t20 flex-y-top ba_f leftMain"},[a("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 fon_14"},e._l(e.tablesList,(function(t,s){return a("div",{key:s,staticClass:"leibieli t_l",class:{leibieHover:s==e.jListHover},on:{click:function(a){return e.clickjList(t,s)}}},[a("span",{directives:[{name:"show",rawName:"v-show",value:t.name,expression:"J.name"}]},[e._v(e._s(t.name)+"("+e._s(t.num)+")")])])})),0),a("div",{staticClass:"zuozi heighthv flex-g-1"},[e.tablesList&&e.tablesList.length>0&&e.tablesList[0].tableInfo?a("div",{staticClass:"zuoziWrap flex-wrap flex flex-y-top"},e._l(e.tablesList[e.jListHover].tableInfo,(function(t,s){return a("div",{key:s,staticClass:"zuozili flex-colbt",class:{zuoziliHover:s==e.kListHover},on:{click:function(a){return e.orderDl(t,s)}}},[a("div",{directives:[{name:"show",rawName:"v-show",value:"1"==t.state,expression:"K.state=='1'"}],staticClass:"zuoziliT flex-bet"},[a("div",[e._v(e._s(t.name))])]),a("div",{directives:[{name:"show",rawName:"v-show",value:"2"==t.state,expression:"K.state=='2'"}],staticClass:"zuoziliT zuozili1 flex-bet"},[a("div",[e._v(e._s(t.name))]),a("div",{staticClass:"mar_r10",on:{click:function(a){return a.stopPropagation(),e.deletePreview(t)}}},[e._m(0,!0)])]),a("div",{directives:[{name:"show",rawName:"v-show",value:"3"==t.state,expression:"K.state=='3'"}],staticClass:"zuoziliT zuozili2 flex-bet"},[a("div",[e._v(e._s(t.name))]),a("div",{staticClass:"mar_r10",on:{click:function(a){return a.stopPropagation(),e.deletePreview(t)}}},[e._m(1,!0)])]),a("div",[a("span",{directives:[{name:"show",rawName:"v-show",value:"1"==t.state,expression:"K.state=='1'"}]},[e._v("未开台")]),a("span",{directives:[{name:"show",rawName:"v-show",value:"2"==t.state,expression:"K.state=='2'"}]},[e._v("已开台")]),a("span",{directives:[{name:"show",rawName:"v-show",value:"3"==t.state,expression:"K.state=='3'"}]},[e._v("就餐中")])]),a("div",{directives:[{name:"show",rawName:"v-show",value:"2"==t.state&&"0"==t.selStatus,expression:"K.state=='2' && K.selStatus=='0'"}]},[a("span",{staticClass:"color_9"},[e._v("未下单")])]),a("div",{directives:[{name:"show",rawName:"v-show",value:"2"==t.state&&"1"==t.selStatus,expression:"K.state=='2' && K.selStatus=='1'"}]},[a("span",{staticClass:"color_rb"},[e._v("已下单")])]),a("div",{directives:[{name:"show",rawName:"v-show",value:"1"==t.state,expression:"K.state=='1'"}],staticClass:"flex-bet pad_lr_10"},[a("div"),a("div",{staticClass:"color_9"},[e._v(e._s(t.maxNum)+"座")])]),a("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"},[a("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))+" ")]),a("div",{staticClass:"color_9"},[e._v(e._s(t.orderInfo.people)+"人")])])])})),0):e._e(),a("div",{staticClass:"flex-bet fon_14"},[e._m(2),a("div",{staticClass:"flex"},[a("div",{staticClass:"mar_r10"},[a("el-button",{attrs:{type:"primary",size:"medium"},on:{click:e.sxin}},[e._v("刷新")])],1),a("div",{staticClass:"flex mar_r10"},[a("div",[e._v("结算模式: "),"1"==e.payMode?a("span",{staticClass:"subjectcolor2"},[e._v("先结账后用餐")]):e._e(),"2"==e.payMode?a("span",{staticClass:"subjectcolor2"},[e._v("先用餐后结账")]):e._e()]),a("div",{staticClass:"mar_l20"},[e._v("点餐模式: "),"1"==e.orderMode?a("span",{staticClass:"subjectcolor2"},[e._v("多人点餐")]):e._e(),"2"==e.orderMode?a("span",{staticClass:"subjectcolor2"},[e._v("拼桌点餐")]):e._e()])])])])])])]),a("div",{staticClass:"bflex-2 ba_f heighthv mar_l20",staticStyle:{width:"30%"}},[a("tableRight",{ref:"tableRight"})],1)]),e.tableOrderInfo.name?a("div",{staticClass:"editBtn pad_10 flex-bet"},[a("div",{staticClass:"flex"},[e.detail&&"1"==e.detail.eatType&&"1"==e.detail.state||e.detail&&"2"==e.detail.eatType&&"1"==e.detail.state||e.detail&&"1"==e.detail.eatType&&"2"==e.detail.state||e.detail&&"2"==e.detail.eatType&&"2"==e.detail.state?a("div",{staticClass:"lh20 curs mar_l20",on:{click:e.orderEmpty}},[a("div",{staticClass:"el-icon-s-open color_6 fon_22"}),a("div",{staticClass:"fon_14 color_3"},[e._v("整单清空")])]):e._e(),e.detail&&"1"==e.detail.eatType&&"2"==e.detail.state||e.detail&&"2"==e.detail.eatType&&"2"==e.detail.state?a("div",{staticClass:"lh20 curs mar_l20",on:{click:e.editvip}},[a("div",{staticClass:"el-icon-user-solid color_6 fon_22"}),a("div",{staticClass:"fon_14 color_3"},[e._v("会员")])]):e._e(),e.detail&&"1"==e.detail.eatType||e.detail&&"2"==e.detail.eatType&&"2"==e.detail.state?a("div",{staticClass:"lh20 curs mar_l20",on:{click:e.discount}},[a("div",{staticClass:"el-icon-s-finance color_6 fon_22"}),a("div",{staticClass:"fon_14 color_3"},[e._v("折扣/抹零")])]):e._e(),e.detail&&"1"==e.detail.eatType&&"2"==e.detail.state||e.detail&&"2"==e.detail.eatType&&"2"==e.detail.state?a("div",{staticClass:"lh20 curs mar_l20",on:{click:e.turntable}},[a("div",{staticClass:"el-icon-s-help color_6 fon_22"}),a("div",{staticClass:"fon_14 color_3"},[e._v("转台")])]):e._e(),e.tableGoodList.length?a("div",{staticClass:"lh20 curs mar_l20",on:{click:e.print}},[a("div",{staticClass:"el-icon-s-order color_6 fon_22"}),a("div",{staticClass:"fon_14 color_3"},[e._v("打印预结单")])]):e._e()]),a("div",{staticClass:"flex"},[!e.detail||e.detail&&"5"==e.detail.origin?a("div",{staticClass:"flex-x-bottom dbbutton"},[!e.detail||e.detail&&"1"==e.detail.eatType&&!e.tableGoodList.length||e.detail&&"2"==e.detail.eatType?a("div",{staticClass:"xj_btn"},[a("el-button",{attrs:{type:"danger",plain:""},on:{click:e.orderIn}},[e._v("协助点餐")])],1):e._e(),e.tableGoodList.length&&e.detail&&"1"==e.detail.eatType&&"2"!=e.detail.state||e.detail&&"2"==e.detail.eatType?a("div",{staticClass:"sk_btn"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.handleCheckOut(e.tableCarMoney,e.tableOutTradeNo)}}},[e._v("结账完成")])],1):e._e()]):e._e(),e.detail&&"5"!=e.detail.origin&&"2"==e.detail.state&&"2"==e.detail.eatType?a("div",{staticClass:"flex-x-bottom dbbutton"},[a("div",{staticClass:"xj_btn"},[a("el-button",{attrs:{type:"danger",plain:""},on:{click:e.orderIn}},[e._v("协助点餐")])],1),a("div",{staticClass:"sk_btn"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.handleCheckOut(e.tableCarMoney,e.tableOutTradeNo)}}},[e._v("结账完成")])],1)]):e._e(),e.detail&&"5"!=e.detail.origin&&"2"==e.detail.state&&"1"==e.detail.eatType?a("el-button",{staticClass:"jiezhang",attrs:{type:"success",size:"medium"},on:{click:function(t){return e.modifyFastOrder("checkOut",e.detail)}}},[a("span",[e._v("完成并清台")])]):e._e(),e.detail&&"5"!=e.detail.origin&&"1"==e.detail.state&&"2"==e.detail.eatType?a("el-button",{staticClass:"jiedan",attrs:{type:"primary",size:"medium"},on:{click:function(t){return e.modifyFastOrder("receipt",e.detail)}}},[e._v("接单并打印 ")]):e._e(),e.detail&&"5"!=e.detail.origin&&"1"==e.detail.state?a("el-button",{attrs:{plain:"",size:"medium",type:"danger"},on:{click:function(t){return e.modifyFastOrder("close",e.detail)}}},[e._v("关闭订单并清台 ")]):e._e(),e.detail&&"5"==e.detail.origin&&"1"==e.detail.eatType&&"2"==e.detail.state?a("el-button",{staticClass:"jiezhang",attrs:{type:"success",size:"medium"},on:{click:function(t){return e.modifyFastOrder("checkOut",e.detail)}}},[e._v("完成并清台 ")]):e._e(),e.detail&&"5"!=e.detail.origin&&"2"==e.detail.state&&"1"==e.detail.eatType?a("el-button",{attrs:{plain:"",size:"medium",type:"danger"},on:{click:function(t){return e.modifyFastOrder("refund",e.detail)}}},[e._v("退款并清台 ")]):e._e()],1)]):e._e(),a("addTabel",{ref:"addTabel"}),a("edit",{ref:"edit",on:{initMethod:e.collectionClick}}),a("Collection",{ref:"collection",on:{initTable:e.initTable}}),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)]),"1"!=e.form.type?a("el-form-item",{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):e._e()],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",{staticClass:"tishidialog2",attrs:{title:"折扣抹零",visible:e.dialogTableVisible3,"close-on-click-modal":!1,width:"600px"},on:{"update:visible":function(t){e.dialogTableVisible3=t}}},[a("div",{staticClass:"t_c"},[a("el-form",{ref:"form3",attrs:{model:e.form3,"label-width":"90px"}},[a("el-form-item",{attrs:{label:"原价"}},[a("div",{staticClass:"t_l color-green wei fon_24"},[e._v(e._s(e.detail&&e.detail.costPrice))])]),a("el-form-item",{attrs:{label:"优惠类型"}},[a("div",{staticClass:"t_l"},[a("el-radio-group",{model:{value:e.form3.type,callback:function(t){e.$set(e.form3,"type",t)},expression:"form3.type"}},[a("el-radio",{attrs:{label:"1"}},[e._v("改价")]),a("el-radio",{attrs:{label:"2"}},[e._v("折扣")]),a("el-radio",{attrs:{label:"3"}},[e._v("抹零")])],1)],1)]),"1"==e.form3.type?a("el-form-item",{staticClass:"flex",attrs:{label:"实付价格",prop:"price"}},[a("el-input",{staticClass:"mar_l5",attrs:{placeholder:"请输入实付价格",min:0},model:{value:e.form3.price,callback:function(t){e.$set(e.form3,"price",t)},expression:"form3.price"}},[a("template",{slot:"append"},[e._v("元")])],2)],1):e._e(),"2"==e.form3.type?a("el-form-item",{staticClass:"flex",attrs:{label:"优惠折扣"}},[a("div",{staticClass:"flex"},[a("el-input-number",{attrs:{precision:2,"controls-position":"right",min:1,max:99999999},model:{value:e.form3.money,callback:function(t){e.$set(e.form3,"money",t)},expression:"form3.money"}}),a("span",{staticClass:"mar_l10"},[e._v("折")])],1)]):e._e(),"3"==e.form3.type?a("el-form-item",{staticClass:"flex",attrs:{label:"抹零方式"}},[a("el-radio-group",{model:{value:e.form3.discountType,callback:function(t){e.$set(e.form3,"discountType",t)},expression:"form3.discountType"}},[a("el-radio",{attrs:{label:1}},[e._v("抹分")]),a("el-radio",{attrs:{label:2}},[e._v("抹角")]),a("el-radio",{attrs:{label:3}},[e._v("四舍五入到角")]),a("el-radio",{attrs:{label:4}},[e._v("四舍五入到元")])],1)],1):e._e()],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{size:"medium"},on:{click:function(t){e.dialogTableVisible3=!1}}},[e._v("取 消")]),a("el-button",{attrs:{size:"medium",type:"primary"},on:{click:e.foem3save}},[e._v("确 定")])],1)]),a("el-dialog",{staticClass:"tishidialog2",attrs:{title:"转台",visible:e.dialogTableVisible2,"close-on-click-modal":!1,width:"500px"},on:{"update:visible":function(t){e.dialogTableVisible2=t}}},[a("div",{staticClass:"t_c"},[a("el-form",{ref:"form2",attrs:{model:e.form2,"label-width":"120px"}},[a("el-form-item",{staticClass:"flex",attrs:{label:"所属区域",prop:"areaId",required:!0}},[a("el-select",{attrs:{clearable:"",placeholder:"请选择"},on:{change:e.tableList},model:{value:e.form2.areaId,callback:function(t){e.$set(e.form2,"areaId",t)},expression:"form2.areaId"}},e._l(e.qyOptions,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1),a("el-form-item",{staticClass:"flex",attrs:{label:"桌位类型",prop:"typeId",required:!0}},[a("el-select",{attrs:{clearable:"",placeholder:"请选择"},on:{change:e.tableList},model:{value:e.form2.typeId,callback:function(t){e.$set(e.form2,"typeId",t)},expression:"form2.typeId"}},e._l(e.typeOptions,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1),a("el-form-item",{staticClass:"flex",attrs:{label:"桌台编号",prop:"tableId",required:!0}},[a("el-select",{attrs:{clearable:"",placeholder:"请选择"},model:{value:e.form2.tableId,callback:function(t){e.$set(e.form2,"tableId",t)},expression:"form2.tableId"}},e._l(e.tableOptions,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{size:"medium"},on:{click:function(t){e.dialogTableVisible2=!1}}},[e._v("取 消")]),a("el-button",{attrs:{size:"medium",type:"primary"},on:{click:e.foem2save}},[e._v("确 定")])],1)])],1)},r=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("a",{attrs:{title:"点击取消/清台"}},[a("i",{staticClass:"el-icon-error color_f"})])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("a",{attrs:{title:"点击取消/清台"}},[a("i",{staticClass:"el-icon-error color_f"})])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"zhuozizt pad_10 flex"},[e._v(" 状态: "),a("div",{staticClass:"zhuoziztli flex zhuoziztHover"},[a("div",{staticClass:"zt quanbu"}),a("div",[e._v("未开台")])]),a("div",{staticClass:"zhuoziztli flex"},[a("div",{staticClass:"zt yikaitai"}),a("div",[e._v("已开台")])]),a("div",{staticClass:"zhuoziztli flex"},[a("div",{staticClass:"zt daijiez"}),a("div",[e._v("就餐中")])])])}],i=(a("96cf"),a("1da1")),n=a("5530"),o=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"tableRight heighthv"},[a("div",{staticClass:"rightHead color_f pad_20"},[e.tableOrderInfo.name?a("div",{staticClass:"flex-bet"},[a("div",{staticClass:"fon_18 wei"},[e._v("桌台:"+e._s(e.tableOrderInfo.name))]),e.instoreSet?a("div",{staticClass:"fon_16"},[e._v("人数:"+e._s(e.instoreSet.people))]):e._e()]):a("div",{staticClass:"fon_18 t_l"},[e._v(" 请点击左侧桌台号 ")]),e.tableOrderInfo.name?a("div",{staticClass:"mar_t10"},[a("div",{staticClass:"t_l fon_16"},[e._v("订单来源: "),e.detail&&"1"==e.detail.origin?a("span",[e._v("微信小程序")]):e._e(),e.detail&&"2"==e.detail.origin?a("span",[e._v("微信公众号")]):e._e(),e.detail&&"3"==e.detail.origin?a("span",[e._v("支付宝小程序")]):e._e(),e.detail&&"4"==e.detail.origin?a("span",[e._v("百度小程序")]):e._e(),e.detail&&"5"==e.detail.origin?a("span",[e._v("收银台下单")]):e._e()])]):e._e()]),a("div",{staticClass:"flex-bet rightMain flex-y-top"},[e.tableGoodList.length&&e.tableOrderInfo.name?a("div",{staticClass:"flex-g-1 flex-colbt rightCH ba_f"},[a("el-scrollbar",{staticClass:"flex-g-1 goos_right2_wrap"},[a("div",{staticClass:"flex-g-1 rightCHMain"},[a("div",{staticClass:"goodsTitle flex-bet pad_10"},[a("div",{staticClass:"bflex-5"},[e._v("商品名称")]),a("div",{staticClass:"bflex-3"},[e._v("数量")]),a("div",{staticClass:"bflex-2"},[e._v("价格")]),a("div",{staticClass:"bflex-2"},[e._v("操作")])]),e._l(e.tableGoodList,(function(t,s){return a("div",{key:s,staticClass:"curs",class:{selectHover:s==e.goodsListHover,classDisabld:"3"==t.addType},on:{click:function(a){return e.clickGoodsList(t,s)}}},[a("div",{staticClass:"flex-bet color_3 pad_lr_10 lh30"},[a("div",{staticClass:"flex bflex-5"},[a("div",{staticClass:"goodStata mar_r10"},["2"==t.addType?a("span",{staticClass:"el-icon-check fon_14 subjectcolor4"}):e._e(),"1"==t.addType?a("span",{staticClass:"subjectcolor"},[e._v("加"+e._s(t.addNum))]):e._e(),"3"==t.addType?a("span",{staticClass:"color_9"},[e._v("[退]")]):e._e()]),a("div",{staticClass:"overflowlnr wei"},[e._v(e._s(t.name))])]),a("div",{staticClass:"bflex-3"},[e._v(e._s(t.num))]),a("div",{staticClass:"bflex-2"},[e._v(e._s(t.sum))]),s==e.goodsListHover&&e.detail&&"1"==e.detail.eatType&&"2"==e.detail.state||s==e.goodsListHover&&e.detail&&"2"==e.detail.eatType&&"2"==e.detail.state?a("div",{staticClass:"bflex-2 color-red wei",on:{click:e.ReturnFood}},[e._v("退菜")]):e._e()]),a("div",{staticClass:"color_9 fon_12 t_l pad_lr_10 overflowlnr"},[t.groupName?a("span",[e._v("规格:"+e._s(t.groupName)+",")]):e._e(),t.attribute?a("span",[e._v("属性,"+e._s(t.attribute))]):e._e(),t.materialName?a("span",[e._v("加料:"+e._s(t.materialName))]):e._e()]),"2"==t.addType?a("div",{staticClass:"color_9 fon_12 t_l pad_l_10"},[e._v(e._s(t.createdAt))]):e._e()])})),e.tableGoodList&&e.tableData?a("div",[a("div",[e._v("其他")]),a("div",{staticClass:"flex-bet pad_lr_30"},[a("div",{staticClass:"flex-g-1 t_l"},[e._v("餐具费 ")]),a("div",{staticClass:"flex-g-1"},[a("span",[e._v(e._s(e.tableData.tablewareNum))]),e._v(" * "+e._s(e.tableData.serviceMoney))]),a("div",{staticClass:"flex-g-1 t_r"},[e._v(e._s(e.tableData.tablewareSum))])])]):e._e()],2)]),a("div",{},[a("div",{staticClass:"flex flex-x-end bor_t_de4 dibuMoney"},[a("div",{staticClass:"mar_l10 fon_14 wei color_6"},[e._v("应收:"),a("span",{},[e._v("¥"+e._s(e.detail&&e.detail.costPrice))]),e._v("元")])]),a("div",{staticClass:"flex flex-x-end pad_r_10"},[a("div",{staticClass:"mar_t5 fon_14 wei color_6 overflowlnr mar_r10",attrs:{title:"数量:"+e.tableCarCount}},[e._v("数量:"),a("span",{},[e._v(e._s(e.tableCarCount))]),e._v("件")]),a("div",{staticClass:"fon_14 wei color_6"},[e._v("优惠:"),a("span",{staticClass:"fon_26 color_eR wei"},[e._v(e._s(e.detail&&e.detail.discount))]),e._v("元")])]),a("div",{staticClass:"flex flex-x-end dibuMoney"},[a("div",{staticClass:"mar_l10 fon_14 wei color_6 overflowlnr",attrs:{title:"实收¥:"+(e.detail&&e.detail.money)+"元"}},[e._v("实收:"),a("span",{staticClass:"fon_26 color_eR wei"},[e._v("¥"+e._s(e.detail&&e.detail.money))]),e._v("元")])])])],1):a("div",{staticClass:"fon_16 wei pad_20"},[e._v(" 点选已开台桌台,可以在此查看点餐信息。 ")])]),a("editReturnFood",{ref:"editReturnFood"})],1)},l=[],c=a("2f62"),d=a("ee70"),u={computed:Object(n["a"])({},Object(c["c"])(["tableGoodList","tableCarMoney","tableCarCount","userData","vipUserId","tableOrderInfo","tableInfo","tableCurrCarIetm","tableData","instoreSet","detail"])),components:{editReturnFood:d["a"]},name:"tableRight",data:function(){return{goodsListHover:0}},methods:Object(n["a"])(Object(n["a"])({},Object(c["b"])(["setTableGoodList","setTableCurrCarIetm","setTableInfo"])),{},{clickGoodsList:function(e,t){this.goodsListHover=t,this.setTableCurrCarIetm(e)},ReturnFood:function(){this.$refs["editReturnFood"].showEdit()}})},f=u,b=(a("48a6"),a("561c"),a("0c7c")),v=Object(b["a"])(f,o,l,!1,null,"3370545c",null),m=v.exports,p=a("b3c3"),_=a("c935"),h=a("89dc"),g=a("ad8f"),C=a("f8b7"),x=a("6fdd"),y={computed:Object(n["a"])({},Object(c["c"])(["tableOrderInfo","tableInfo","userData","tableGoodList","tableCarMoney","tableOutTradeNo","vipUserId","localStatus","cashierInfo","detail","typeListHover","jListHover","kListHover","typeListHoverItem"])),name:"tableList",created:function(){this.getStoreConfig(),this.fetchData(),"-1"==this.kListHover&&this.delTableOrderInfo()},components:{tableRight:m,addTabel:p["a"],Edit:_["a"],Collection:h["a"]},data:function(){return{name:"",areaList:[],tablesList:[],payMode:"",orderMode:"",dialogTableVisible4:!1,dialogTableVisible3:!1,dialogTableVisible2:!1,form:{type:"1",money:"",orderId:""},form3:{type:"1",money:"",orderId:"",discountType:1},form2:{areaId:"",typeId:"",tableId:""},qyOptions:[],typeOptions:[],tableOptions:[]}},methods:Object(n["a"])(Object(n["a"])({},Object(c["b"])(["setTableGoodList","setTableCurrCarIetm","setTableOrderInfo","setTypeListHover","setJListHover","setKListHover","setTypeListHoverItem"])),{},{selectType:function(e,t){var a=this;return Object(i["a"])(regeneratorRuntime.mark((function s(){var r,i;return regeneratorRuntime.wrap((function(s){while(1)switch(s.prev=s.next){case 0:if(a.setTypeListHover(t),sessionStorage.setItem("setTypeListHover",t),a.setTypeListHoverItem(e),sessionStorage.setItem("setTypeListHoverItem",JSON.stringify(e)),a.setJListHover(0),sessionStorage.setItem("setJListHover",0),a.setKListHover(-1),sessionStorage.setItem("setKListHover",-1),!e.id){s.next=14;break}return s.next=11,Object(g["f"])({areaId:e.id,storeId:a.userData.storeId});case 11:r=s.sent,i=r.data,a.tablesList=i||[];case 14:case"end":return s.stop()}}),s)})))()},clickjList:function(e,t){this.setJListHover(t),sessionStorage.setItem("setJListHover",t),this.setKListHover(-1),sessionStorage.setItem("setKListHover",-1),this.fetchData()},fetchData:function(){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function t(){var a,s,r,i,n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(g["c"])({storeId:e.userData.storeId});case 2:if(a=t.sent,s=a.data,e.areaList=s,r=s,!e.typeListHoverItem.id&&!r.length){t.next=12;break}return t.next=9,Object(g["f"])({areaId:e.typeListHoverItem.id||r[0].id,storeId:e.userData.storeId});case 9:i=t.sent,n=i.data,e.tablesList=n||[];case 12:case"end":return t.stop()}}),t)})))()},orderDl:function(e,t){this.setKListHover(t),sessionStorage.setItem("setKListHover",t),this.setTableOrderInfo(e),sessionStorage.setItem("tableOrderInfo",JSON.stringify(e)),this.getTableCarList()},getTableCarList:function(){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function t(){var a,s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a={storeId:e.userData.storeId,tableId:e.tableOrderInfo.id},t.next=3,Object(x["c"])(a);case 3:s=t.sent,s.data&&e.setTableCurrCarIetm(s.data[0]),e.setTableGoodList(s);case 6:case"end":return t.stop()}}),t)})))()},initTable:function(){this.setTableOrderInfo(""),sessionStorage.setItem("tableOrderInfo",""),this.fetchData()},delTableOrderInfo:function(){this.setTableOrderInfo(""),sessionStorage.setItem("tableOrderInfo","")},deletePreview:function(e){var t=this;return Object(i["a"])(regeneratorRuntime.mark((function a(){var s;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:console.log(t.detail.eatType,e.state),s="",s="1"==t.detail.eatType&&"2"==e.state||"2"==t.detail.eatType&&"1"==e.state||"2"==e.state||"3"==e.state?"您确定清除此台并取消此订单吗?(注意,取消订单后,将不计入营业额当中)":"您确定清除此桌台吗",t.$baseConfirm(s,null,Object(i["a"])(regeneratorRuntime.mark((function a(){var s,r;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.next=2,Object(g["a"])({tableId:e.id,storeId:t.userData.storeId});case 2:s=a.sent,r=s.msg,t.$baseMessage(r,"success"),t.fetchData(),t.delTableOrderInfo();case 7:case"end":return a.stop()}}),a)}))));case 4:case"end":return a.stop()}}),a)})))()},orderIn:function(){this.$router.push({path:"/ordering"})},handleEdit:function(e){this.$refs["addTabel"].showEdit(e)},ReturnFood:function(){},discount:function(){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.dialogTableVisible3=!0,e.$set(e.form3,"price",e.detail.money),t.abrupt("return");case 3:case"end":return t.stop()}}),t)})))()},turntable:function(){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.dialogTableVisible2=!0,e.tableAreaM(),e.tableTypeM();case 3:case"end":return t.stop()}}),t)})))()},tableAreaM:function(){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function t(){var a,s,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(C["g"])({storeId:e.userData.storeId});case 2:a=t.sent,s=a.code,r=a.data,"1"==s&&(e.qyOptions=r||[]);case 6:case"end":return t.stop()}}),t)})))()},tableTypeM:function(){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function t(){var a,s,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(C["h"])({storeId:e.userData.storeId});case 2:a=t.sent,s=a.code,r=a.data,"1"==s&&(e.typeOptions=r||[]);case 6:case"end":return t.stop()}}),t)})))()},tableList:function(){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function t(){var a,s,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(C["b"])({storeId:e.userData.storeId,areaId:e.form2.areaId,typeId:e.form2.typeId});case 2:a=t.sent,s=a.code,r=a.data,"1"==s&&(e.tableOptions=r||[]);case 6:case"end":return t.stop()}}),t)})))()},print:function(){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function t(){var a,s,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(C["e"])({tableId:e.tableOrderInfo.id,storeId:e.userData.storeId});case 2:a=t.sent,s=a.msg,r=a.code,e.$baseMessage(s,"success"),"1"==r&&e.getTableCarList();case 7:case"end":return t.stop()}}),t)})))()},orderEmpty:function(){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.$baseConfirm("您确定清除此台并取消此订单吗?(注意,取消订单后,将不计入营业额当中)",null,Object(i["a"])(regeneratorRuntime.mark((function t(){var a,s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(g["a"])({tableId:e.tableOrderInfo.id,storeId:e.userData.storeId});case 2:a=t.sent,s=a.msg,e.$baseMessage(s,"success"),e.fetchData(),e.delTableOrderInfo();case 7:case"end":return t.stop()}}),t)}))));case 1:case"end":return t.stop()}}),t)})))()},editvip:function(){this.vipUserId?this.$refs["edit"].showEdit(this.vipUserId):this.$refs["edit"].showEdit()},collectionClick:function(){this.$refs["collection"].showEdit(this.tableCarMoney,this.tableOutTradeNo)},handleCheckOut:function(e,t){var a=this;2==this.cashierInfo.vipTips||this.vipUserId?this.$refs["collection"].showEdit(e,t):this.$baseConfirm2("订单未绑定会员,是否需要绑定会员进行结算?",null,"会员登录","跳过",Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:a.$refs["edit"].showEdit(),a.$refs["edit"].showGoBtn("1");case 2:case"end":return e.stop()}}),e)}))),Object(i["a"])(regeneratorRuntime.mark((function s(){return regeneratorRuntime.wrap((function(s){while(1)switch(s.prev=s.next){case 0:a.$refs["collection"].showEdit(e,t);case 1:case"end":return s.stop()}}),s)}))))},getStoreConfig:function(){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function t(){var a,s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(g["e"])({ident:"instoreSet",storeId:e.userData.storeId});case 2:a=t.sent,s=a.data,e.orderMode=s.orderMode,e.payMode=s.payMode;case 6:case"end":return t.stop()}}),t)})))()},sxin:function(){location.reload()},modifyFastOrder:function(e,t){var a=this;return Object(i["a"])(regeneratorRuntime.mark((function s(){var r,n;return regeneratorRuntime.wrap((function(s){while(1)switch(s.prev=s.next){case 0:if("receipt"!=e){s.next=10;break}return s.next=3,Object(C["f"])({orderId:t.id,type:e,storeId:a.userData.storeId});case 3:r=s.sent,n=r.msg,a.$baseMessage(n,"success"),a.getTableCarList(),a.fetchData(),s.next=11;break;case 10:"close"==e?a.$baseConfirm("您确定关闭订单并清台吗",null,Object(i["a"])(regeneratorRuntime.mark((function s(){var r,i;return regeneratorRuntime.wrap((function(s){while(1)switch(s.prev=s.next){case 0:return s.next=2,Object(C["f"])({orderId:t.id,type:e,storeId:a.userData.storeId});case 2:r=s.sent,i=r.msg,a.$baseMessage(i,"success"),a.getTableCarList(),a.fetchData();case 7:case"end":return s.stop()}}),s)})))):"checkOut"==e?a.$baseConfirm("您确定结账此订单吗",null,Object(i["a"])(regeneratorRuntime.mark((function s(){var r,i;return regeneratorRuntime.wrap((function(s){while(1)switch(s.prev=s.next){case 0:return s.next=2,Object(C["f"])({orderId:t.id,type:e,storeId:a.userData.storeId});case 2:r=s.sent,i=r.msg,a.$baseMessage(i,"success"),a.getTableCarList(),a.fetchData();case 7:case"end":return s.stop()}}),s)})))):"refund"==e?a.$baseConfirm("您确定退款此订单吗",null,Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:a.dialogTableVisible4=!0,a.form.money=t.money,a.form.orderId=t.id;case 3:case"end":return e.stop()}}),e)})))):(a.$baseMessage("敬请期待","success"),a.fetchData());case 11:case"end":return s.stop()}}),s)})))()},save:function(){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function t(){var a,s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(C["f"])({orderId:e.detail.id,type:"refund",money:e.form.money,storeId:e.userData.storeId});case 2:a=t.sent,s=a.msg,e.$baseMessage(s,"success"),e.getTableCarList(),e.fetchData(),e.dialogTableVisible4=!1;case 8:case"end":return t.stop()}}),t)})))()},foem3save:function(){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function t(){var a,s,r,i,n,o;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if("1"!=e.form3.type){t.next=19;break}if(!e.form3.price){t.next=16;break}if(!(+e.form3.price>+e.detail.costPrice)){t.next=6;break}e.$baseMessage("修改价格应小于原价","error"),t.next=14;break;case 6:return t.next=8,Object(C["a"])({storeId:e.userData.storeId,tableId:e.tableOrderInfo.id,type:"changePrice",money:e.form3.price});case 8:a=t.sent,s=a.msg,e.$baseMessage(s,"success"),e.getTableCarList(),e.fetchData(),e.dialogTableVisible3=!1;case 14:t.next=17;break;case 16:e.$baseMessage("请输入修改价格","error");case 17:t.next=43;break;case 19:if("2"!=e.form3.type){t.next=34;break}if(!e.form3.money){t.next=31;break}return t.next=23,Object(C["a"])({storeId:e.userData.storeId,tableId:e.tableOrderInfo.id,type:"discount",fracture:e.form3.money});case 23:r=t.sent,i=r.msg,e.$baseMessage(i,"success"),e.getTableCarList(),e.fetchData(),e.dialogTableVisible3=!1,t.next=32;break;case 31:e.$baseMessage("请输入折扣","error");case 32:t.next=43;break;case 34:if("3"!=e.form3.type){t.next=43;break}return t.next=37,Object(C["a"])({storeId:e.userData.storeId,tableId:e.tableOrderInfo.id,type:"goZero",discountType:e.form3.discountType});case 37:n=t.sent,o=n.msg,e.$baseMessage(o,"success"),e.getTableCarList(),e.fetchData(),e.dialogTableVisible3=!1;case 43:case"end":return t.stop()}}),t)})))()},foem2save:function(){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.form2.areaId){t.next=5;break}return e.$baseMessage("请选择所属区域","error"),t.abrupt("return");case 5:if(e.form2.typeId){t.next=10;break}return e.$baseMessage("请选择桌位类型","error"),t.abrupt("return");case 10:if(e.form2.tableId){t.next=13;break}return e.$baseMessage("请选择桌台","error"),t.abrupt("return");case 13:e.$baseConfirm("您确定要转台吗?",null,Object(i["a"])(regeneratorRuntime.mark((function t(){var a,s,r,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a={storeId:e.userData.storeId,tableId:e.tableOrderInfo.id,toTableId:e.form2.tableId},t.next=3,Object(C["i"])(a);case 3:s=t.sent,r=s.code,i=s.msg,"1"==r&&(e.$baseMessage(i,"success"),e.getTableCarList(),e.fetchData(),e.dialogTableVisible2=!1);case 7:case"end":return t.stop()}}),t)}))));case 14:case"end":return t.stop()}}),t)})))()},timeStamp:function(e){var t=parseInt(e)+"秒";if(parseInt(e)>60){var a=parseInt(e)%60,s=parseInt(e/60);if(t=s+"分"+a+"秒",s>60){s=parseInt(e/60)%60;var r=parseInt(parseInt(e/60)/60);if(t=r+"小时"+s+"分"+a+"秒",r>24){r=parseInt(parseInt(e/60)/60)%24;var i=parseInt(parseInt(parseInt(e/60)/60)/24);t=i+"天"+r+"小时"+s+"分"+a+"秒"}}}return t}})},w=y,I=(a("eb16"),a("9169"),Object(b["a"])(w,s,r,!1,null,"f2c26f5a",null));t["default"]=I.exports},"225b":function(e,t,a){},"388e":function(e,t,a){},"48a6":function(e,t,a){"use strict";a("388e")},"4c5c":function(e,t,a){},"561c":function(e,t,a){"use strict";a("76dc")},"76dc":function(e,t,a){},9169:function(e,t,a){"use strict";a("225b")},eb16:function(e,t,a){"use strict";a("4c5c")},f8b7:function(e,t,a){"use strict";a.d(t,"c",(function(){return r})),a.d(t,"e",(function(){return i})),a.d(t,"f",(function(){return n})),a.d(t,"d",(function(){return o})),a.d(t,"a",(function(){return l})),a.d(t,"i",(function(){return c})),a.d(t,"g",(function(){return d})),a.d(t,"h",(function(){return u})),a.d(t,"b",(function(){return f}));var s=a("b775");function r(e){return Object(s["a"])({url:"channel/cashier-goods/get-order-list",method:"get",params:e})}function i(e){return Object(s["a"])({url:"channel/cashier-order/handle-order",method:"post",data:e})}function n(e){return Object(s["a"])({url:"channel/in-store/modify-in-store-order",method:"post",data:e})}function o(e){return Object(s["a"])({url:"channel/config/store-config",method:"get",params:e})}function l(e){return Object(s["a"])({url:"channel/cashier-order/change-money",method:"post",data:e})}function c(e){return Object(s["a"])({url:"channel/cashier-order/turntable",method:"post",data:e})}function d(e){return Object(s["a"])({url:"channel/cashier-order/table-area",method:"get",params:e})}function u(e){return Object(s["a"])({url:"channel/cashier-order/table-type",method:"get",params:e})}function f(e){return Object(s["a"])({url:"channel/cashier-order/change-table-list",method:"get",params:e})}}}]); |