canyin-project/ybcy/views/channel/index/static/js/chunk-a1a966ae.5f2de70a.js
2024-11-01 16:07:54 +08:00

1 line
22 KiB
JavaScript
Raw 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-a1a966ae"],{"07fe":function(e,t,a){},"3bbe":function(e,t,a){var r=a("861d");e.exports=function(e){if(!r(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},"4d0b":function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"outmain ba_f"},[e._m(0),a("div",{staticClass:"ba_f8 pad_20 mar_b20"},[a("div",{staticClass:"lh25 msgtext fon_12"},[e._v(" 排号大屏幕:"),a("span",{staticClass:"subjectcolor2 curs",on:{click:e.chickScreen}},[e._v(e._s(e.path))]),e._v("。"),a("br")])]),a("div",{staticClass:"pad_b_30 orderSeatch"},[a("el-form",{staticClass:"demo-form-inline",attrs:{inline:!1,model:e.formInline,"label-width":"100px"}},[[a("el-form-item",{attrs:{label:"订单状态:"}},[a("el-radio-group",{on:{change:e.selectType},model:{value:e.formInline.state,callback:function(t){e.$set(e.formInline,"state",t)},expression:"formInline.state"}},[a("el-radio-button",{attrs:{label:"0"}},[e._v("不限")]),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("过号/已取消")])],1)],1)],a("el-form-item",{staticClass:"mar_t20",attrs:{label:"查询日期:"}},[a("div",{staticClass:"flex-bet"},[a("div",[a("el-radio-group",{on:{change:e.selectType},model:{value:e.formInline.timeType,callback:function(t){e.$set(e.formInline,"timeType",t)},expression:"formInline.timeType"}},[a("el-radio-button",{attrs:{label:"0"}},[e._v("全部")]),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:"4"}},[e._v("具体日期")])],1),"4"==e.formInline.timeType?a("span",{staticClass:"mar_l20"},[a("el-date-picker",{attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期",format:"yyyy年MM月dd日"},on:{change:e.selectType},model:{value:e.formInline.time,callback:function(t){e.$set(e.formInline,"time",t)},expression:"formInline.time"}})],1):e._e()],1)])]),a("el-form-item",{staticClass:"mar_t20",attrs:{label:"模糊搜索:","label-position":"top"}},[a("div",{staticClass:"flex"},[a("div",[a("el-input",{staticStyle:{width:"500px"},attrs:{type:"text",placeholder:"请输入订单相关的就餐号/手机号"},on:{input:e.selectType},model:{value:e.formInline.keyword,callback:function(t){e.$set(e.formInline,"keyword",t)},expression:"formInline.keyword"}})],1)])])],2)],1),a("el-tabs",{on:{"tab-click":e.handleClick2},model:{value:e.activeName2,callback:function(t){e.activeName2=t},expression:"activeName2"}},[e._l(e.tablist,(function(t){return[a("el-tab-pane",{attrs:{label:t.name,name:t.id}},[a("template",{slot:"label"},[e._v(e._s(t.name)),a("el-badge",{attrs:{value:t.orderNum}})],1)],2)]}))],2),a("div",{staticClass:"tabledata mar_t20 tableys"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],staticClass:"tablecenter",staticStyle:{width:"100%"},attrs:{data:e.list,"element-loading-text":e.elementLoadingText,stripe:""}},[a("el-table-column",{attrs:{type:"selection",width:"50"}}),a("el-table-column",{attrs:{prop:"code",label:"就餐号",width:"80"}}),a("el-table-column",{attrs:{prop:"people",label:"就餐人数"}}),a("el-table-column",{attrs:{prop:"name",label:"餐桌类型"}}),a("el-table-column",{attrs:{prop:"createdAt",label:"取号时间"}}),a("el-table-column",{attrs:{prop:"stateName",label:"状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"textbutton"},[a("el-tag",{directives:[{name:"show",rawName:"v-show",value:1==t.row.state,expression:"scope.row.state==1"}],staticClass:"tag3",attrs:{size:"mini"}},[e._v("待叫号")]),a("el-tag",{directives:[{name:"show",rawName:"v-show",value:2==t.row.state,expression:"scope.row.state==2"}],staticClass:"tag4",attrs:{type:"success",size:"mini"}},[e._v("已入座")]),a("el-tag",{directives:[{name:"show",rawName:"v-show",value:3==t.row.state,expression:"scope.row.state==3"}],staticClass:"tag2",attrs:{type:"danger",size:"mini"}},[e._v("已过号")]),a("el-tag",{directives:[{name:"show",rawName:"v-show",value:4==t.row.state,expression:"scope.row.state==4"}],staticClass:"tag1",attrs:{type:"info",size:"mini"}},[e._v("已取消")])],1)]}}])}),a("el-table-column",{attrs:{label:"操作",width:"450"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"textbutton"},[a("el-button",{directives:[{name:"show",rawName:"v-show",value:1==t.row.state,expression:"scope.row.state==1"}],attrs:{type:"primary",round:"",size:"mini"},on:{click:function(a){return e.call(t.row.id)}}},[e._v("叫号")]),a("el-button",{directives:[{name:"show",rawName:"v-show",value:1==t.row.state,expression:"scope.row.state==1"}],attrs:{type:"info",round:"",size:"mini"},on:{click:function(a){return e.handleEdit(t.row.id,"eat")}}},[e._v("入座")]),a("el-button",{directives:[{name:"show",rawName:"v-show",value:1==t.row.state,expression:"scope.row.state==1"}],attrs:{type:"warning",round:"",size:"mini"},on:{click:function(a){return e.handleEdit(t.row.id,"skip")}}},[e._v("过号")]),a("el-button",{directives:[{name:"show",rawName:"v-show",value:1==t.row.state,expression:"scope.row.state==1"}],attrs:{type:"danger",round:"",size:"mini"},on:{click:function(a){return e.handleEdit(t.row.id,"cancel")}}},[e._v("取消")]),a("el-button",{attrs:{round:"",size:"mini"},on:{click:function(a){return e.handleEdit(t.row.id,"print")}}},[e._v("打印")])],1)]}}])}),a("el-table-column",{attrs:{label:"详情",width:"130"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"textbutton"},[a("el-button",{attrs:{type:"text",size:"mini"},on:{click:function(a){return e.handleEdit2(t.row)}}},[e._v("查看详情")])],1)]}}])})],1),a("el-pagination",{attrs:{background:"",layout:"prev, pager, next",total:e.page.total,"page-size":e.page.size,"current-page":e.page.currentPage},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}}),a("edit",{ref:"edit",on:{fetchData:e.fetchData}})],1),a("div",{staticStyle:{height:"0",overflow:"hidden"}},[a("pdqhPrint",{ref:"pdqhprint",attrs:{data:e.printData}})],1)],1)},n=[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("排队取号")])])])}],i=(a("d81d"),a("b64b"),a("ac1f"),a("466d"),a("96cf"),a("1da1")),s=a("7cb7"),o=a("6891"),c=a("ed08"),l=a("365c"),u=a("e692"),d=a("f8b7"),p=a("cefe"),m={components:{Edit:o["a"],pdqhPrint:p["a"]},created:function(){this.getStoreBasic(),this.queuingTypeList()},data:function(){return{form:{shopValue:"",timeType:"1",time:[new Date,new Date],Mtime:""},formInline:{time:[new Date,new Date],timeType:"1",state:"0",origin:"0",keyword:"",payMode:"0",orderType:"2"},path:"",tablist:[],activeName2:"",list:[],listLoading:!1,selectRows:"",elementLoadingText:"正在加载...",page:{total:0,size:10,currentPage:1},printData:{}}},methods:{getStoreBasic: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 t.next=2,Object(u["g"])();case 2:a=t.sent,r=a.data,r.id&&(e.storeId=r.id,e.init());case 5:case"end":return t.stop()}}),t)})))()},queuingTypeList:function(){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function t(){var a,r,n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a={timeType:e.formInline.timeType,startTime:"4"==e.formInline.timeType&&e.formInline.time?Object(c["a"])(e.formInline.time[0]):"",endTime:"4"==e.formInline.timeType&&e.formInline.time?Object(c["a"])(e.formInline.time[1]):"",state:e.formInline.state,keyword:e.formInline.keyword,storeId:""},t.next=3,Object(s["Cc"])(a);case 3:r=t.sent,n=r.data,e.tablist=n||[],e.activeName2=n?n[0].id:"",e.fetchData();case 8:case"end":return t.stop()}}),t)})))()},init: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:a="https://bkycms.com/addons/yb_wm/views/channel/index/index.html#/queuingcode?storeId=".concat(e.storeId),r=l["a"].isDev?a:location.href.match(/(\S*)views/)[1]+"views/channel/index/index.html#/queuingcode?storeId=".concat(e.storeId),e.path=r;case 3:case"end":return t.stop()}}),t)})))()},fetchData:function(){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function t(){var a,r,n,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a={timeType:e.formInline.timeType,startTime:"4"==e.formInline.timeType&&e.formInline.time?Object(c["a"])(e.formInline.time[0]):"",endTime:"4"==e.formInline.timeType&&e.formInline.time?Object(c["a"])(e.formInline.time[1]):"",state:e.formInline.state,keyword:e.formInline.keyword,page:e.page.currentPage,typeId:e.activeName2,storeId:""},t.next=3,Object(s["ic"])(a);case 3:r=t.sent,n=r.data,i=r.count,e.list=n,e.page.total=i,e.listLoading=!1;case 9:case"end":return t.stop()}}),t)})))()},handleEdit2:function(e){e.id?this.$refs["edit"].showEdit(e):this.$refs["edit"].showEdit()},selectType:function(){this.queuingTypeList()},call:function(e){var t=this;return Object(i["a"])(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:t.$baseConfirm("您确定呼叫吗",null,Object(i["a"])(regeneratorRuntime.mark((function a(){var r,n,i,o;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.next=2,Object(s["i"])({id:e});case 2:r=a.sent,n=r.data,i=r.msg,o=new Audio,o.src=n,o.play(),t.$baseMessage(i,"success"),t.fetchData();case 10:case"end":return a.stop()}}),a)}))));case 1:case"end":return a.stop()}}),a)})))()},handleEdit:function(e,t){var a=this;return Object(i["a"])(regeneratorRuntime.mark((function r(){var n,o,c,l;return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:if("eat"!=t){r.next=4;break}a.$baseConfirm("您确定入座吗",null,Object(i["a"])(regeneratorRuntime.mark((function r(){var n,i;return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return r.next=2,Object(s["Gb"])({id:e,type:t});case 2:n=r.sent,i=n.msg,a.$baseMessage(i,"success"),a.fetchData();case 6:case"end":return r.stop()}}),r)})))),r.next=27;break;case 4:if("skip"!=t){r.next=8;break}a.$baseConfirm("您确定过号吗",null,Object(i["a"])(regeneratorRuntime.mark((function r(){var n,i;return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return r.next=2,Object(s["Gb"])({id:e,type:t});case 2:n=r.sent,i=n.msg,a.$baseMessage(i,"success"),a.fetchData();case 6:case"end":return r.stop()}}),r)})))),r.next=27;break;case 8:if("cancel"!=t){r.next=12;break}a.$baseConfirm("您确定取消此订单吗",null,Object(i["a"])(regeneratorRuntime.mark((function r(){var n,i;return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return r.next=2,Object(s["Gb"])({id:e,type:t});case 2:n=r.sent,i=n.msg,a.$baseMessage(i,"success"),a.fetchData();case 6:case"end":return r.stop()}}),r)})))),r.next=27;break;case 12:if("print"!=t){r.next=26;break}return r.next=15,Object(s["Gb"])({id:e,type:t});case 15:return n=r.sent,o=n.msg,a.$baseMessage(o,"success"),r.next=20,Object(d["l"])({orderId:e,orderType:5});case 20:c=r.sent,l=c.data,Object.keys(l).map((function(e){a.printData=l[e],a.$nextTick((function(){a.$refs.pdqhprint.printElement(e)}))})),a.fetchData(),r.next=27;break;case 26:"del"==t?a.$baseConfirm("您确定删除此订单吗",null,Object(i["a"])(regeneratorRuntime.mark((function r(){var n,i;return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return r.next=2,Object(s["Gb"])({id:e,type:t});case 2:n=r.sent,i=n.msg,a.$baseMessage(i,"success"),a.fetchData();case 6:case"end":return r.stop()}}),r)})))):(a.$baseMessage("敬请期待","success"),a.fetchData());case 27:case"end":return r.stop()}}),r)})))()},chickScreen:function(){var e=this.$router.resolve({path:"/queuingcode?storeId=".concat(this.storeId),query:{}});window.open(e.href,"_blank")},handleClick2:function(e,t){this.fetchData(),this.page.currentPage=1,this.list=[]},handleCurrentChange:function(e){this.page.currentPage=e,this.fetchData()},onSearch:function(){this.fetchData()},handletj:function(){this.$router.push({path:"deliverytongji"})}}},f=m,v=(a("f627"),a("2877")),b=Object(v["a"])(f,r,n,!1,null,"360f98c2",null);t["default"]=b.exports},"686e":function(e,t,a){},6891:function(e,t,a){"use strict";var r=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:"45%","close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisible=t},close:e.close}},[a("div",[a("el-form",{ref:"form",attrs:{model:e.form,"label-width":"120px"}},[a("div",{staticClass:"flex-bet flex-y-top"},[a("div",{staticClass:"bflex-4"},[a("div",{staticClass:"shuju_title"},[a("div",{staticClass:"shuju_title_text"},[a("span",[e._v("订单信息")])])]),a("div",{staticClass:"formBox"},[a("div",{staticClass:"flex pad_lr_10 bor_b_df5 lh40"},[a("div",{staticClass:"seeLeft"},[e._v("订单类型:")]),a("div",[a("span",[a("el-tag",{attrs:{size:"mini",type:"success"}},[e._v("排队取号")])],1)])]),a("div",{staticClass:"flex pad_lr_10 bor_b_df5 lh40"},[a("div",{staticClass:"seeLeft"},[e._v("订单渠道:")]),a("div",["1"==e.orderDetail.origin?a("span",[a("el-tag",{attrs:{size:"mini",type:"success"}},[e._v("微信小程序")])],1):e._e(),"2"==e.orderDetail.origin?a("span",[a("el-tag",{attrs:{size:"mini",type:"success"}},[e._v("微信公众号")])],1):e._e(),"3"==e.orderDetail.origin?a("span",[a("el-tag",{attrs:{size:"mini",type:"success"}},[e._v("支付宝小程序")])],1):e._e(),"4"==e.orderDetail.origin?a("span",[a("el-tag",{attrs:{size:"mini",type:"success"}},[e._v("百度小程序")])],1):e._e(),"5"==e.orderDetail.origin?a("span",[a("el-tag",{attrs:{size:"mini",type:"success"}},[e._v("H5")])],1):e._e(),"6"==e.orderDetail.origin?a("span",[a("el-tag",{attrs:{size:"mini",type:"success"}},[e._v("PC")])],1):e._e(),"7"==e.orderDetail.origin?a("span",[a("el-tag",{attrs:{size:"mini",type:"success"}},[e._v("头条小程序")])],1):e._e()])]),a("div",{staticClass:"flex pad_lr_10 bor_b_df5 lh40"},[a("div",{staticClass:"seeLeft"},[e._v("用户信息:")]),a("div",[e._v(e._s(e.orderDetail.userName)+"UID"+e._s(e.orderDetail.userId)+"")])]),a("div",{staticClass:"flex pad_lr_10 bor_b_df5 lh40"},[a("div",{staticClass:"seeLeft"},[e._v("取号时间:")]),a("div",[e._v(e._s(e.orderDetail.createdAt))])]),a("div",{staticClass:"flex pad_lr_10 bor_b_df5 lh40"},[a("div",{staticClass:"seeLeft"},[e._v("操作时间:")]),a("div",[e._v(e._s(e.orderDetail.changeAt))])]),a("div",{staticClass:"flex pad_lr_10 bor_b_df5 lh40"},[a("div",{staticClass:"seeLeft"},[e._v("叫号状态:")]),a("div",{staticClass:"flex flex-center"},[a("div",[a("el-tag",{directives:[{name:"show",rawName:"v-show",value:1==e.orderDetail.state,expression:"orderDetail.state==1"}],staticClass:"tag3",attrs:{size:"mini"}},[e._v("待叫号")]),a("el-tag",{directives:[{name:"show",rawName:"v-show",value:2==e.orderDetail.state,expression:"orderDetail.state==2"}],staticClass:"tag4",attrs:{type:"success",size:"mini"}},[e._v("已入座")]),a("el-tag",{directives:[{name:"show",rawName:"v-show",value:3==e.orderDetail.state,expression:"orderDetail.state==3"}],staticClass:"tag2",attrs:{type:"danger",size:"mini"}},[e._v("已过号")]),a("el-tag",{directives:[{name:"show",rawName:"v-show",value:4==e.orderDetail.state,expression:"orderDetail.state==4"}],staticClass:"tag1",attrs:{type:"info",size:"mini"}},[e._v("已取消")])],1)])])])]),a("div",{staticClass:"bflex-6 mar_l20"},[a("div",{staticClass:"shuju_title"},[a("div",{staticClass:"shuju_title_text"},[a("span",[e._v("取号详情")])])]),a("div",{staticClass:"formBox"},[a("div",{staticClass:"flex pad_lr_10 bor_b_df5 lh40"},[a("div",{staticClass:"seeLeft"},[e._v("取餐号:"+e._s(e.orderDetail.code))]),a("div",{})]),a("div",{staticClass:"flex pad_lr_10 bor_b_df5 lh40"},[a("div",{staticClass:"seeLeft"},[e._v("就餐人数:"+e._s(e.orderDetail.people))]),a("div",{})]),a("div",{staticClass:"flex pad_lr_10 bor_b_df5 lh40"},[a("div",{staticClass:"seeLeft"},[e._v("餐桌类型:"+e._s(e.orderDetail.name))]),a("div",{})])])])])])],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)},n=[],i=(a("96cf"),a("1da1")),s=(a("7cb7"),{name:"goodlistedit",created:function(){},data:function(){return{form:{id:"",sort:"1",name:"",min:"",max:"",minute:""},orderDetail:{},title:"",type:"",dialogFormVisible:!1}},components:{},methods:{showEdit:function(e){var t=this;return Object(i["a"])(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:e?(t.title="订单详情",t.orderDetail=Object.assign({},e)):t.title="添加",t.dialogFormVisible=!0;case 2:case"end":return a.stop()}}),a)})))()},close:function(){this.dialogFormVisible=!1},setStoreId:function(e){this.form.storeId=e},save:function(){this.dialogFormVisible=!1}}}),o=s,c=(a("86a9"),a("2877")),l=Object(c["a"])(o,r,n,!1,null,null,null);t["a"]=l.exports},"6cfd":function(e,t,a){},7156:function(e,t,a){var r=a("861d"),n=a("d2bb");e.exports=function(e,t,a){var i,s;return n&&"function"==typeof(i=t.constructor)&&i!==a&&r(s=i.prototype)&&s!==a.prototype&&n(e,s),e}},"86a9":function(e,t,a){"use strict";var r=a("6cfd"),n=a.n(r);n.a},"8fe7":function(e,t,a){"use strict";var r=a("686e"),n=a.n(r);n.a},a9e3:function(e,t,a){"use strict";var r=a("83ab"),n=a("da84"),i=a("94ca"),s=a("6eeb"),o=a("5135"),c=a("c6b6"),l=a("7156"),u=a("c04e"),d=a("d039"),p=a("7c73"),m=a("241c").f,f=a("06cf").f,v=a("9bf2").f,b=a("58a8").trim,h="Number",g=n[h],_=g.prototype,w=c(p(_))==h,x=function(e){var t,a,r,n,i,s,o,c,l=u(e,!1);if("string"==typeof l&&l.length>2)if(l=b(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:r=2,n=49;break;case 79:case 111:r=8,n=55;break;default:return+l}for(i=l.slice(2),s=i.length,o=0;o<s;o++)if(c=i.charCodeAt(o),c<48||c>n)return NaN;return parseInt(i,r)}return+l};if(i(h,!g(" 0o1")||!g("0b1")||g("+0x1"))){for(var y,I=function(e){var t=arguments.length<1?0:e,a=this;return a instanceof I&&(w?d((function(){_.valueOf.call(a)})):c(a)!=h)?l(new g(x(t)),a,I):x(t)},C=r?m(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(","),k=0;C.length>k;k++)o(g,y=C[k])&&!o(I,y)&&v(I,y,f(g,y));I.prototype=_,_.constructor=I,s(n,h,I)}},bf19:function(e,t,a){"use strict";var r=a("23e7");r({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return URL.prototype.toString.call(this)}})},cefe:function(e,t,a){"use strict";var r=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("div",{staticStyle:{"margin-top":"5px"}},[e._v("*"+e._s(e.element.storeName)+"*")]),a("div",{staticStyle:{"margin-top":"5px"}},[e._v("排队号码:"),a("span",{staticStyle:{"font-size":"18px","font-weight":"bold"}},[e._v(e._s(e.element.code))])]),a("div",[e._v("前面需等待"+e._s(e.element.origin)+"桌,请稍后...")])]),a("div",{staticStyle:{"border-bottom":"1px dashed #000000","font-size":"12px"}},[a("div",{staticStyle:{"margin-top":"5px"}},[e._v("就餐人数:"+e._s(e.element.people))]),a("div",{staticStyle:{"margin-bottom":"5px"}},[e._v("取号时间:"+e._s(e.element.createdAt))])]),e._m(0),e._m(1),a("h1",[e._v("----完----")])])},n=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticStyle:{"border-bottom":"1px dashed #000000"}},[a("h4",{staticStyle:{"font-weight":"bold"}},[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("欢迎下次光临")])])}],i=a("03dc"),s={props:{data:Object},computed:{element:function(){return this.data}},watch:{element:function(){}},methods:{printElement:function(e){console.log("printerName",e);var t=Object(i["a"])(),a=this.$refs.receipt.innerHTML,r=this.$refs.receipt.offsetHeight;console.log(a),t.SET_PRINT_PAGESIZE(3,"58mm",20,""),t.ADD_PRINT_HTM("9mm","0mm","RightMargin:0mm",r+"px",a),t.SET_PRINTER_INDEX(e)&&t.PRINT()}}},o=s,c=(a("8fe7"),a("2877")),l=Object(c["a"])(o,r,n,!1,null,"7d0c98df",null);t["a"]=l.exports},d2bb:function(e,t,a){var r=a("825a"),n=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(i){}return function(a,i){return r(a),n(i),t?e.call(a,i):a.__proto__=i,a}}():void 0)},ed08:function(e,t,a){"use strict";a.d(t,"a",(function(){return r})),a.d(t,"b",(function(){return n})),a.d(t,"c",(function(){return i}));a("a9e3"),a("ac1f"),a("5319"),a("bf19");function r(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 n(e){var t=new Date(e),a=t.getFullYear(),r=t.getMonth()+1<10?"0"+(t.getMonth()+1):t.getMonth()+1,n=t.getDate()<10?"0"+t.getDate():t.getDate(),i=t.getHours()<10?"0"+t.getHours():t.getHours(),s=t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes(),o=t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds();return a+"-"+r+"-"+n+" "+i+":"+s+":"+o}function i(e){var t=new Date(1e3*Number(e)),a=t.getFullYear()+"-",r=(t.getMonth()+1<10?"0"+(t.getMonth()+1):t.getMonth()+1)+"-",n=(t.getDate()<10?"0"+t.getDate():t.getDate())+" ",i=(t.getHours()<10?"0"+t.getHours():t.getHours())+":",s=(t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes())+":",o=t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds(),c=a+r+n+i+s+o;return c}},f627:function(e,t,a){"use strict";var r=a("07fe"),n=a.n(r);n.a}}]);