canyin-project/ybcy/views/cashier/static/js/chunk-5b6808f8.a03f58c0.js
2024-11-01 16:07:54 +08:00

1 line
25 KiB
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5b6808f8"],{"0a30":function(e,t,a){"use strict";a("f585")},1741:function(e,t,a){"use strict";a("de0f")},2067:function(e,t,a){"use strict";a("6480")},"441a":function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"ordering heighthv rel"},[r("div",{staticClass:"ba_f mar_b20 bor_rad5"},[r("div",{staticClass:"pad_tb_10 mar_b10 fon_18"},[e._v(e._s(e.tableOrderInfo.name)+"协助点餐")]),r("el-form",{staticClass:"demo-form-inline searchform",attrs:{inline:!0,model:e.formInline}},[r("div",{},[r("el-form-item",{attrs:{label:"就餐人数"}},[r("el-select",{attrs:{clearable:"",placeholder:"请选择"},model:{value:e.formInline.number,callback:function(t){e.$set(e.formInline,"number",t)},expression:"formInline.number"}},e._l(e.lyOptions1,(function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),"1"==e.instoreSet.serviceType?r("el-form-item",{staticClass:"mar_l20",attrs:{label:"服务费("+e.instoreSet.serviceMoney+"元/人)"}}):e._e(),"2"==e.instoreSet.serviceType?r("el-form-item",{staticClass:"mar_l20",attrs:{label:"服务费("+e.instoreSet.serviceMoney+"元/桌)"}}):e._e(),r("el-form-item",{attrs:{label:"收银员"}},[r("el-input",{attrs:{disabled:"",size:"medium"},model:{value:e.userData.trueName,callback:function(t){e.$set(e.userData,"trueName",t)},expression:"userData.trueName"}})],1)],1)])],1),r("div",{staticClass:"flex-bet conHeight flex-y-top"},[r("div",{staticClass:"bflex-8 heighthv mar_r20",staticStyle:{width:"70%"}},[r("div",{ref:"barparent",staticClass:"goodType wid"},[r("el-tabs",{on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},e._l(e.goodsType,(function(e,t){return r("el-tab-pane",{key:t,attrs:{label:e.name,name:e.id}})})),1)],1),r("el-scrollbar",{staticClass:"flex-g-1 goos_wrap_scor"},[r("div",{staticClass:"flex-g-1 flex-wrap flex-y-top heighthv goos_wrap curs"},e._l(e.goods,(function(t,a){return r("div",{key:a,staticClass:"bor_rad5 ba_f pad_10 mar_r10 t_l goods",on:{click:function(a){return e.handleEdit(t)}}},[r("div",{staticClass:"flex-center"},[r("el-image",{staticClass:"goodimg",attrs:{src:t.icon,fit:"cover"}})],1),r("div",{staticClass:"fon_16 mar_t5 overflowlnr",attrs:{title:t.name}},[e._v(e._s(t.name))]),r("div",{staticClass:"color_9 mar_t10 fon_14 price_color flex-bet"},[r("div",[e._v("¥"+e._s(t.price))]),r("div",{staticClass:"color_9"},[e._v(e._s(t.stock))])])])})),0),e.goods.length<=0?r("div",{staticClass:"goods_blank heighthv flex-center"},[r("div",{staticClass:"fon_16 heighthv"},[r("img",{staticStyle:{width:"200px",height:"200px"},attrs:{src:a("2b5e"),alt:""}}),r("p",{staticClass:"color_9 mar_t10"},[e._v("你的商品库还是空的")])])]):e._e()])],1),r("div",{staticClass:"bflex-2 ba_f goos_right_wrap",staticStyle:{width:"30%"}},[r("tableRight",{ref:"tableRight"})],1)]),r("div",{staticClass:"editBtn pad_10 flex-x-center"},[r("el-button",{attrs:{plain:""},on:{click:e.returnTable}},[e._v("返回桌台列表")]),r("el-button",{attrs:{type:"danger"},on:{click:e.alone}},[e._v("确认订单并下单")])],1),r("tableEditgoods",{ref:"tableEditgoods"}),r("edit",{ref:"edit"}),r("Collection",{ref:"collection"})],1)},s=[],i=(a("96cf"),a("1da1")),n=a("5530"),o=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"editgoodswoapr"},[r("el-dialog",{attrs:{title:e.title,visible:e.dialogFormVisible,width:"700px","close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisible=t},close:e.close}},[r("div",{staticClass:"editgoods"},[r("div",{staticClass:"flex-bet"},[r("div",{staticClass:"flex-g-0"},[r("div",{staticClass:"flex-center"},[r("el-image",{staticClass:"editgoodimg border",attrs:{src:e.form.icon?e.form.icon:""+a("21a2"),fit:"cover"}})],1)]),r("div",{staticClass:"flex-g-1 t_l pad_20"},[r("div",{},[r("div",{staticClass:"fon_18 wei color_3"},[e._v(e._s(e.form.name))]),r("div",[e._v("单价:¥"+e._s(e.form.price)),r("span",{staticClass:"mar_l20"},[e._v("单位:"+e._s(e.form.unit))])])])])]),e.specData.length?r("div",{staticClass:"mar_t20"},[r("p",{staticClass:"t_l mar_b10 wei"},[e._v("规格")]),r("div",{staticClass:"flex flex-wrap"},e._l(e.specData,(function(t,a){return r("div",{key:a,staticClass:"specs bor_rad5 overflowlnr",class:{specs_hover:a==e.specsHover},on:{click:function(r){return e.clickSpecs(t,a)}}},[e._v(" "+e._s(t.specsName)+"¥"+e._s(t.SalesPrice)+" ")])})),0)]):e._e(),e.attributeHoverShow?e._l(e.attributeData,(function(t,a){return r("div",{key:a},[r("p",{staticClass:"t_l mar_b10"},[e._v(e._s(t.attrName))]),r("div",{staticClass:"flex flex-wrap"},[e._l(t.attrStr,(function(a,s){return[r("div",{directives:[{name:"show",rawName:"v-show",value:a.name,expression:"itemValue.name"}],key:s,staticClass:"specs bor_rad5 overflowlnr",class:{specs_hover:e.valib(t.id,a.a)},on:{click:function(r){return e.clickAttribute(a.a,t.id,a.name)}}},[e._v(" "+e._s(a.name)+" ")])]}))],2)])})):e._e(),e.feedingData.length?r("div",{staticClass:"mar_t20"},[r("p",{staticClass:"t_l mar_b10 wei"},[e._v("加料")]),r("div",{staticClass:"flex flex-wrap"},e._l(e.feedingData,(function(t,a){return r("div",{key:a,staticClass:"specs bor_rad5 overflowlnr ",class:t.isSelected?"specs_hover":"",on:{click:function(r){return e.clickFeeding(t,a)}}},[e._v(e._s(t.materialName)+"¥"+e._s(t.SalesPrice)+" ")])})),0)]):e._e()],2),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{attrs:{size:"medium"},on:{click:e.close}},[e._v("取 消")]),r("el-button",{attrs:{size:"medium",type:"primary"},on:{click:e.save}},[e._v("确 定")])],1)])],1)},l=[],c=(a("4de4"),a("4160"),a("a630"),a("c975"),a("b0c0"),a("d3b7"),a("6062"),a("3ca3"),a("159b"),a("ddb0"),a("6fdd")),u=a("ad8f"),d=a("2f62"),b={computed:Object(n["a"])({},Object(d["c"])(["goodList","userData","vipUserId","tableOrderInfo","selStatus","orderId"])),name:"editgoods",created:function(){},data:function(){return{form:{id:"",name:"",sort:"1",color:"#ed4014"},specsHover:0,attributeHover:{},attributeHoverShow:!0,feedingHover:0,specData:[],attributeData:[],feedingData:[],groupId:"",material:[],materialId:[],title:"",dialogFormVisible:!1}},components:{},methods:Object(n["a"])(Object(n["a"])({},Object(d["b"])(["setTableGoodList","setTableCurrCarIetm"])),{},{valib:function(e,t){return!!this.attributeHover[e]&&this.attributeHover[e].id==t},showEdit:function(e){var t=this;if(e){if(this.title="商品详情",this.specData=e.specsData,this.attributeData=e.attrData,this.feedingData=e.meterialData,this.specData)for(var a=0;a<this.specData.length;a++)a==this.specsHover&&(this.groupId=this.specData[a].id);this.feedingData&&this.feedingData.forEach((function(e){t.$set(e,"isSelected",!1)})),this.attributeData&&this.attributeData.forEach((function(e){e.attrStr.forEach((function(t,a){t.a=a+e.id}))})),this.attributeHover={}}else this.title="选择做法";this.dialogFormVisible=!0},goodInfo:function(e){this.form=Object.assign({},e)},close:function(){this.dialogFormVisible=!1},clickSpecs:function(e,t){this.specsHover=t,this.groupId=e.id},clickAttribute:function(e,t,a){this.attributeHoverShow=!1,this.attributeHover[t]?this.attributeHover[t].id==e?delete this.attributeHover[t]:this.attributeHover[t].id=e:this.attributeHover[t]={id:e,name:a},this.attributeHoverShow=!0},clickFeeding:function(e,t){this.feedingHover=t,e.isSelected=!e.isSelected},unique:function(e){return Array.from(new Set(e))},save:function(){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function t(){var a,r,s,i,n,o;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.feedingData)for(a=0;a<e.feedingData.length;a++)1==e.feedingData[a].isSelected&&e.materialId.push(e.feedingData[a].id);for(s in r=[],e.attributeHover)r.push(e.attributeHover[s].name);return i=e.materialId,e.materialId=e.materialId.filter((function(t){return-1===e.materialId.indexOf(t)})),n={tableId:e.tableOrderInfo.id,userId:e.vipUserId,storeId:e.userData.storeId,groupId:e.groupId,orderId:"1"==e.selStatus?e.orderId:"",type:"1",goodsId:e.form.id,materialId:i,attribute:r},t.next=8,Object(c["a"])(n);case 8:o=t.sent,o.msg,e.getTableCarList(),e.close();case 12:case"end":return t.stop()}}),t)})))()},getTableCarList:function(){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function t(){var a,r;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(c["c"])(a);case 3:r=t.sent,e.setTableGoodList(r),r.data&&e.setTableCurrCarIetm(r.data[0]);case 6:case"end":return t.stop()}}),t)})))()}})},f=b,v=(a("2067"),a("0c7c")),m=Object(v["a"])(f,o,l,!1,null,null,null),h=m.exports,p=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"tableRight heighthv"},[a("div",{staticClass:"flex-bet rightMain heighthv flex-y-top"},[a("div",{staticClass:"flex-g-0 rightNav heighthv"},[a("div",{staticClass:"nvali curs",on:{click:function(t){return e.plusReduce("1")}}},[e._v("加1")]),a("div",{staticClass:"nvali curs",on:{click:function(t){return e.plusReduce("2")}}},[e._v("减1")])]),a("div",{staticClass:"flex-g-1 flex-colbt rightCH ba_f heighthv"},[a("el-scrollbar",{staticClass:"flex-g-1 goos_right_wrap_scor"},[a("div",{staticClass:"flex-g-1 rightCHMain"},[a("div",{staticClass:"goodsTitle flex-bet pad_10 subjectcolor4 wei"},[a("div",{staticClass:"bflex-5"},[e._v("商品名称")]),a("div",{staticClass:"bflex-3"},[e._v("数量")]),a("div",{staticClass:"bflex-2"},[e._v("价格")])]),e._l(e.cashierList,(function(t,r){return a("div",{key:r,staticClass:"curs",class:{selectHover:r==e.goodsListHover,classDisabld:"3"==t.addType},on:{click:function(a){return e.clickGoodsList(t,r)}}},[a("div",{staticClass:"flex-bet color_3 pad_lr_10 lh30"},[a("div",{staticClass:"flex bflex-5"},[a("div",{staticClass:"overflowlnr t_l 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))])]),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()])}))],2)]),a("div",{},[a("div",{staticClass:"flex flex-x-end bor_t_de4 dibuMoney"},[a("div",[e._v("数量:"),a("span",{staticClass:"fon_26 color_eR wei"},[e._v(e._s(e.tableCarCount2))]),e._v("件")]),a("div",{staticClass:"mar_l10"},[e._v("合计:"),a("span",{staticClass:"fon_26 color_eR wei"},[e._v("¥"+e._s(e.tableCarMoney2))]),e._v("元")])])])],1)]),a("addTabel",{ref:"addTabel"}),a("editReturnFood",{ref:"editReturnFood"}),a("editRemarks",{ref:"editRemarks"})],1)},g=[],_=(a("b680"),a("25f0"),a("b3c3")),I=a("ee70"),C=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{},[a("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}},[a("div",{staticClass:"addTabel flex"},[a("div",{staticClass:"pad_20 t_l fon_16 flex-g-0"},[e._v("备注")]),a("div",{staticClass:"flex-g-1"},[a("el-input",{attrs:{placeholder:"请输入备注内容",type:"textarea",rows:6},model:{value:e.input1,callback:function(t){e.input1=t},expression:"input1"}})],1)]),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{size:"medium"},on:{click:e.close}},[e._v("取 消")]),a("el-button",{attrs:{size:"medium",type:"primary"},on:{click:e.save}},[e._v("确 定")])],1)])],1)},w=[],x={components:{},name:"editRemarks",created:function(){},data:function(){return{form:{id:"",name:"",sort:"1"},input1:"",input2:"",title:"",dialogFormVisible:!1,editType:""}},methods:{showEdit:function(e){e?(this.title="整单备注",this.form=Object.assign({},e),console.log(1,this.form)):this.title="整单备注",this.dialogFormVisible=!0},editTypeClick:function(e){this.editType=e},_confirmEvent:function(e){this.input1=e},kaitai:function(){this.$router.push({path:"/ordering"})},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(){}}},O=x,k=(a("9007"),Object(v["a"])(O,C,w,!1,null,null,null)),y=k.exports,R=(a("6fa2"),{computed:Object(n["a"])({},Object(d["c"])(["tableGoodList","cashierList","tableCarMoney2","tableCarCount2","userData","vipUserId","tableOrderInfo","tableInfo","tableCurrCarIetm","selStatus","discount","localStatus"])),components:{addTabel:_["a"],editRemarks:y,editReturnFood:I["a"]},created:function(){this.getSaveTableNum(),this.getTableCarList()},name:"tableRight",data:function(){return{carGoods:[{name:"书亦烧仙草",num:"1",price:"10",time:"1615352588"},{name:"书亦烧仙草大杯",num:"1",price:"15",goodsId:"10",time:"1615367021"}],goodsListHover:0}},methods:Object(n["a"])(Object(n["a"])({},Object(d["b"])(["setTableGoodList","setTableCurrCarIetm","setTableInfo","setLocalStatus"])),{},{xiugaizt:function(){this.$refs["addTabel"].showEdit(),this.$refs["addTabel"].editTypeClick("2")},xiugaibz:function(){this.$refs["editRemarks"].showEdit()},getTableCarList:function(){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function t(){var a,r;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(c["c"])(a);case 3:r=t.sent,e.setTableGoodList(r);case 5:case"end":return t.stop()}}),t)})))()},clickGoodsList:function(e,t){this.goodsListHover=t,this.setTableCurrCarIetm(e)},plusReduce:function(e){var t=this;return Object(i["a"])(regeneratorRuntime.mark((function a(){var r,s;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(!t.tableCurrCarIetm){a.next=9;break}return r={tableId:t.tableOrderInfo.id,userId:t.vipUserId,storeId:t.userData.storeId,orderId:"1"==t.selStatus?t.orderId:"",type:e,goodsId:t.tableCurrCarIetm.goodsId,id:t.tableCurrCarIetm.id,groupId:t.tableCurrCarIetm.groupId},a.next=4,Object(c["a"])(r);case 4:s=a.sent,s.data,t.getTableCarList(),a.next=10;break;case 9:t.$baseMessage("请添加商品","error");case 10:case"end":return a.stop()}}),a)})))()},returnFood: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.$refs["editReturnFood"].showEdit();case 1:case"end":return t.stop()}}),t)})))()},delFood:function(){var e=this;this.$baseConfirm("您确定删除吗?",null,Object(i["a"])(regeneratorRuntime.mark((function t(){var a,r,s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a={tableId:e.tableOrderInfo.id,id:e.tableCurrCarIetm.id,type:"1",storeId:e.userData.storeId},t.next=3,Object(c["b"])(a);case 3:r=t.sent,s=r.code,"1"==s&&e.getTableCarList();case 6:case"end":return t.stop()}}),t)}))))},getSaveTableNum:function(){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function t(){var a,r,s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a={id:e.tableOrderInfo.id,storeId:e.userData.storeId},t.next=3,Object(u["d"])(a);case 3:r=t.sent,s=r.data,e.setTableInfo(s),sessionStorage.setItem("tableInfo",JSON.stringify(s));case 7:case"end":return t.stop()}}),t)})))()},unitConvert:function(e){for(var t=["元","万元","亿元","万亿"],a=1e4,r=e,s=t[0],i=0;i<4;i++){if(s=t[i],this.strNumSize(r)<5)break;r/=a}var n={num:0,unit:""};return n.num=r.toFixed(2),n.unit=s,n},strNumSize:function(e){var t=e.toString(),a=t.indexOf("."),r=t;return-1!=a&&(r=t.substring(0,a)),r.length},saveAdd:function(){var e=this;this.$baseConfirm("您确定加菜落单吗?",null,Object(i["a"])(regeneratorRuntime.mark((function t(){var a,r,s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a={tableId:e.tableOrderInfo.id,storeId:e.userData.storeId,orderId:e.orderId,selStatus:"1"},t.next=3,Object(u["i"])(a);case 3:r=t.sent,s=r.code,e.setLocalStatus("1"),"1"==s&&e.getTableCarList();case 7:case"end":return t.stop()}}),t)}))))}})}),j=R,D=(a("0a30"),Object(v["a"])(j,p,g,!1,null,null,null)),S=D.exports,T=a("c935"),L=a("89dc"),$={name:"tableList",computed:Object(n["a"])({},Object(d["c"])(["tableGoodList","tableOutTradeNo","tableCarMoney","userData","vipUserId","selStatus","orderId","tableOrderInfo","tableCurrCarIetm","tableInfo","instoreSet","tableData"])),created:function(){console.log(this.tableOrderInfo),this.getGoodsCategory(),this.instoreSet&&(this.formInline.serviceMoney=this.instoreSet.serviceMoney),this.tableData&&(this.formInline.number=this.tableData.people)},components:{tableRight:S,tableEditgoods:h,Edit:T["a"],Collection:L["a"]},data:function(){return{goods:[],goodsType:[],typeHover:"",page:{total:0,size:10,currentPage:1},type:1,typeId:"",activeName:"",localSelStatus:"0",formInline:{number:"",servicePeople:"",serviceMoney:""},lyOptions1:[{value:"1",label:"1人"},{value:"2",label:"2人"},{value:"3",label:"3人"},{value:"4",label:"4人"},{value:"5",label:"5人"},{value:"6",label:"6人"},{value:"7",label:"7人"},{value:"8",label:"8人"},{value:"9",label:"9人"},{value:"10",label:"10人"},{value:"11",label:"11人"},{value:"12",label:"12人"},{value:"13",label:"13人"},{value:"14",label:"14人"},{value:"15",label:"15人"},{value:"16",label:"16人"},{value:"17",label:"17人"},{value:"18",label:"18人"},{value:"19",label:"19人"},{value:"20",label:"20人"}],lyOptions:[{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:"九套"},{value:"10",label:"十套"},{value:"11",label:"十一套"},{value:"12",label:"十二套"},{value:"13",label:"十三套"},{value:"14",label:"十四套"},{value:"15",label:"十五套"},{value:"16",label:"十六套"},{value:"17",label:"十七套"},{value:"18",label:"十八套"},{value:"19",label:"十九套"},{value:"20",label:"二十套"}]}},methods:Object(n["a"])(Object(n["a"])({},Object(d["b"])(["setTableGoodList","setTableCurrCarIetm","setLocalStatus"])),{},{fetchData:function(){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function t(){var a,r,s,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a={page:e.page.currentPage,storeId:e.userData.storeId,userId:"",id:e.typeId},t.next=3,Object(c["d"])(a);case 3:r=t.sent,s=r.data,i=r.count,e.goods=s,e.page.total=i;case 8:case"end":return t.stop()}}),t)})))()},getGoodsCategory:function(){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function t(){var a,r,s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a={storeId:e.userData.storeId},t.next=3,Object(c["f"])(a);case 3:r=t.sent,s=r.data,e.goodsType=s||[],e.typeId=s?s[0].id:"",e.activeName=s?s[0].id:"",e.fetchData();case 9:case"end":return t.stop()}}),t)})))()},selectType:function(e,t){this.typeHover=t,this.typeId=e.id,this.fetchData()},handleEdit:function(e){var t=this;return Object(i["a"])(regeneratorRuntime.mark((function a(){var r,s,i,n,o;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:if("1"!=e.isSpecs&&"1"!=e.isMaterial){a.next=10;break}return console.log("多规格",e),a.next=4,Object(c["e"])({id:e.id,storeId:t.userData.storeId});case 4:r=a.sent,s=r.data,i=r.code,1==i&&(t.$refs["tableEditgoods"].showEdit(s),t.$refs["tableEditgoods"].goodInfo(e)),a.next=16;break;case 10:return n={tableId:t.tableOrderInfo.id,userId:t.vipUserId,storeId:t.userData.storeId,orderId:"3"==t.tableOrderInfo.state?t.orderId:"",groupId:"",type:"1",goodsId:e.id},a.next=13,Object(c["a"])(n);case 13:o=a.sent,o.data,t.getTableCarList();case 16:case"end":return a.stop()}}),a)})))()},getGoodOper:function(e){var t=this;return Object(i["a"])(regeneratorRuntime.mark((function a(){var r;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.next=2,Object(c["e"])({id:e,storeId:t.userData.storeId});case 2:r=a.sent,r.data;case 4:case"end":return a.stop()}}),a)})))()},getTableCarList:function(){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function t(){var a,r;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(c["c"])(a);case 3:r=t.sent,r.data&&e.setTableCurrCarIetm(r.data[0]),e.setTableGoodList(r);case 6:case"end":return t.stop()}}),t)})))()},handleClick:function(){this.typeId=this.activeName,this.fetchData()},returnTable:function(){this.$router.push({path:"/table"})},alone:function(){var e=this;""!=this.formInline.number?"2"!=this.instoreSet.serviceType||""!=this.formInline.serviceMoney?this.$baseConfirm("您确定落单吗?",null,Object(i["a"])(regeneratorRuntime.mark((function t(){var a,r,s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a={tableId:e.tableOrderInfo.id,storeId:e.userData.storeId,orderId:e.orderId,selStatus:"1",number:e.formInline.number,serviceType:e.instoreSet.serviceType,serviceMoney:e.formInline.serviceMoney},t.next=3,Object(u["i"])(a);case 3:r=t.sent,s=r.code,e.$router.push({path:"/table"}),"1"==s&&e.getTableCarList();case 7:case"end":return t.stop()}}),t)})))):this.$baseMessage("请输入服务费","error"):this.$baseMessage("请输入就餐人数","error")},xiugai: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.setLocalStatus("2");case 1:case"end":return t.stop()}}),t)})))()},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:e.$baseConfirm("您确定要抹零吗?",null,Object(i["a"])(regeneratorRuntime.mark((function t(){var a,r,s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a={orderId:e.orderId,money:e.tableCarMoney,storeId:e.userData.storeId},t.next=3,Object(u["g"])(a);case 3:r=t.sent,s=r.code,"1"==s&&e.getTableCarList();case 6:case"end":return t.stop()}}),t)}))));case 1:case"end":return t.stop()}}),t)})))()},empty: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:"0"==e.tableOrderInfo.selStatus?e.$baseConfirm("您确定清空清空吗?",null,Object(i["a"])(regeneratorRuntime.mark((function t(){var a,r,s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a={tableId:e.tableOrderInfo.id,id:e.tableCurrCarIetm.id,type:"2",storeId:e.userData.storeId},t.next=3,Object(c["b"])(a);case 3:r=t.sent,s=r.code,"1"==s&&e.getTableCarList();case 6:case"end":return t.stop()}}),t)})))):"1"==e.tableOrderInfo.selStatus?e.$baseConfirm("您确定全部退单吗?",null,Object(i["a"])(regeneratorRuntime.mark((function t(){var a,r,s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a={tableId:e.tableOrderInfo.id,id:e.tableCurrCarIetm.id,type:"3",storeId:e.userData.storeId},t.next=3,Object(c["b"])(a);case 3:r=t.sent,s=r.code,"1"==s&&e.getTableCarList();case 6:case"end":return t.stop()}}),t)})))):e.$baseMessage("暂无桌台信息","error");case 1:case"end":return t.stop()}}),t)})))()},editvip:function(){this.vipUserId?this.$refs["edit"].showEdit(this.vipUserId):this.$refs["edit"].showEdit()},handleCheckOut:function(e,t){var a=this;this.tableGoodList.length&&"1"==this.selStatus?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();case 1:case"end":return e.stop()}}),e)}))),Object(i["a"])(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:a.$refs["collection"].showEdit(e,t);case 1:case"end":return r.stop()}}),r)})))):this.tableGoodList.length&&"0"==this.selStatus&&this.$baseConfirm2("还有商品暂未落单,是否落单并结算?",null,"确定落单",null,Object(i["a"])(regeneratorRuntime.mark((function r(){var s,n,o;return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return s={tableId:a.tableOrderInfo.id,storeId:a.userData.storeId,selStatus:"1"},r.next=3,Object(u["i"])(s);case 3:n=r.sent,o=n.code,"1"==o&&(a.getTableCarList(),a.vipUserId?a.$refs["collection"].showEdit(e,t):a.$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();case 1:case"end":return e.stop()}}),e)}))),Object(i["a"])(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:a.$refs["collection"].showEdit(e,t);case 1:case"end":return r.stop()}}),r)})))));case 6:case"end":return r.stop()}}),r)}))))}})},H=$,E=(a("1741"),a("9e21"),Object(v["a"])(H,r,s,!1,null,"307a6e76",null));t["default"]=E.exports},6480:function(e,t,a){},9007:function(e,t,a){"use strict";a("9d23")},"9d23":function(e,t,a){},"9e21":function(e,t,a){"use strict";a("d964")},d964:function(e,t,a){},de0f:function(e,t,a){},f585:function(e,t,a){}}]);