1 line
27 KiB
JavaScript
1 line
27 KiB
JavaScript
![]() |
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-172f8a5d"],{"0341":function(e,t,a){"use strict";var n=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("h2",{staticStyle:{width:"100%","text-align":"center"}},[e._v("取餐码:"+e._s(e.element.callNo))]),a("div",{staticStyle:{"margin-top":"5px"}},[e._v("*"+e._s(e.element.storeName)+"*")]),a("div",{staticStyle:{"margin-top":"5px"}},[e._v("取单方式:"),"1"==e.element.isOut?a("span",[e._v("店内就餐")]):e._e(),"2"==e.element.isOut?a("span",[e._v("打包带走")]):e._e()])]),a("div",{staticStyle:{"border-bottom":"1px dashed #000000","font-size":"12px"}},[a("div",[e._v("订单编号:"+e._s(e.element.outTradeNo))]),a("div",[e._v("开台时间:"+e._s(e.element.createdAt))]),e.element.userNote?a("div",[e._v("备注:"+e._s(e.element.userNote))]):e._e()]),a("div",[a("table",{staticStyle:{"font-size":"14px"},attrs:{width:"200",cellspacing:"10"}},[e._m(0),e._l(e.element.goodsArr,(function(t,n){return a("tr",{key:n+"goods"},[a("td",[e._v(e._s(t.name)),t.data?a("span",[e._v("-【"+e._s(t.data)+"】")]):e._e()]),a("td",[e._v(e._s(t.num))]),a("td",[e._v(e._s(t.money))])])}))],2)]),a("div",[e._v("-----------其他费用----------")]),a("div",{staticStyle:{"border-bottom":"1px dashed #000000"}},[a("div",{staticStyle:{"font-size":"12px"}},[e._v("[满减优惠:-"+e._s(e.element.preferentialMoney)+"]")]),a("h4",{staticStyle:{"font-weight":"bold"}},[e._v("应付:¥"+e._s(e.element.money)+" "),2==e.element.state||3==e.element.state||4==e.element.state||6==e.element.state||8==e.element.state?a("span",{staticStyle:{"font-size":"12px"}},[e._v("(已支付)")]):e._e(),7==e.element.state||9==e.element.state?a("span",{staticStyle:{"font-size":"12px"}},[e._v("(未支付)")]):e._e()])]),e._m(1),a("h1",[e._v("----完----")])])},r=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("tr",[a("th",[e._v("名称")]),a("th",{staticStyle:{width:"35px"}},[e._v("数量")]),a("th",[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("欢迎下次光临")])])}],s=a("03dc"),i={props:{data:Object},computed:{element:function(){return this.data}},watch:{element:function(){}},methods:{printElement:function(e){console.log("printerName",e);var t=Object(s["a"])(),a=this.$refs.receipt.innerHTML,n=this.$refs.receipt.offsetHeight;console.log(a),t.SET_PRINT_PAGESIZE(3,"58mm",20,""),t.ADD_PRINT_HTM("9mm","0mm","RightMargin:0mm",n+"px",a),t.SET_PRINTER_INDEX(e)&&t.PRINT()}}},o=i,c=(a("cc86"),a("2877")),l=Object(c["a"])(o,n,r,!1,null,"35905ce2",null);t["a"]=l.exports},"3bbe":function(e,t,a){var n=a("861d");e.exports=function(e){if(!n(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},"6fb3":function(e,t,a){e.exports=a.p+"static/img/quxiaodan.4f65b043.png"},7156:function(e,t,a){var n=a("861d"),r=a("d2bb");e.exports=function(e,t,a){var s,i;return r&&"function"==typeof(s=t.constructor)&&s!==a&&n(i=s.prototype)&&i!==a.prototype&&r(e,i),e}},"8e5b":function(e,t,a){},"9cde":function(e,t,a){"use strict";a.d(t,"F",(function(){return r})),a.d(t,"n",(function(){return s})),a.d(t,"z",(function(){return i})),a.d(t,"a",(function(){return o})),a.d(t,"x",(function(){return c})),a.d(t,"J",(function(){return l})),a.d(t,"l",(function(){return u})),a.d(t,"H",(function(){return d})),a.d(t,"p",(function(){return p})),a.d(t,"C",(function(){return f})),a.d(t,"K",(function(){return m})),a.d(t,"I",(function(){return v})),a.d(t,"q",(function(){return _})),a.d(t,"v",(function(){return b})),a.d(t,"D",(function(){return h})),a.d(t,"b",(function(){return g})),a.d(t,"e",(function(){return y})),a.d(t,"c",(function(){return x})),a.d(t,"d",(function(){return w})),a.d(t,"G",(function(){return C})),a.d(t,"o",(function(){return O})),a.
|