(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0a413680"],{"3bbe":function(t,e,n){var r=n("861d");t.exports=function(t){if(!r(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},7156:function(t,e,n){var r=n("861d"),a=n("d2bb");t.exports=function(t,e,n){var o,i;return a&&"function"==typeof(o=e.constructor)&&o!==n&&r(i=o.prototype)&&i!==n.prototype&&a(t,i),t}},"8f06":function(t,e,n){"use strict";var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:"receipt",staticStyle:{width:"200px"},attrs:{id:"receipt"}},[n("div",{staticStyle:{"border-bottom":"1px dashed #000000","font-size":"12px","text-align":"center","padding-bottom":"5px"}},[n("h1",{staticStyle:{width:"100%","text-align":"center"}},[t._v("当面付小票")]),n("div",{staticStyle:{"margin-top":"5px"}},[t._v("*"+t._s(t.element.storeName)+"*")]),n("div",{staticStyle:{"margin-top":"5px"}},[t._v("用户信息:"+t._s(t.element.userName)+"(UID:"+t._s(t.element.userId)+")")]),n("div",{staticStyle:{"margin-top":"5px",width:"100%"}},[t._v("--"),"1"==t.element.payMode?n("span",[t._v("微信支付")]):t._e(),"5"==t.element.payMode?n("span",[t._v("余额支付")]):t._e(),t._v("--")])]),n("div",{staticStyle:{"border-bottom":"1px dashed #000000","font-size":"12px"}},[n("div",[t._v("订单编号:"+t._s(t.element.outTradeNo))]),n("div",[t._v("交易时间:"+t._s(t.element.createdAt))]),t.element.userNote?n("div",[t._v("备注:"+t._s(t.element.userNote))]):t._e()]),n("div",{staticStyle:{"border-bottom":"1px dashed #000000"}},[n("h3",{staticStyle:{"font-weight":"bold"}},[t._v("实付:¥"+t._s(t.element.money))])]),n("div",{staticStyle:{"margin-top":"5px","font-size":"14px"}},[t._v("门店电话:"+t._s(t.element.storeTel))]),t._m(0),n("h1",[t._v("----完----")])])},a=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticStyle:{"text-align":"center","padding-bottom":"30px"}},[n("h4",[t._v("谢谢惠顾")]),n("h4",[t._v("欢迎下次光临")])])}],o=n("03dc"),i={props:{data:Object},computed:{element:function(){return this.data}},watch:{element:function(){}},methods:{printElement:function(t){console.log("printerName",t);var e=Object(o["a"])(),n=this.$refs.receipt.innerHTML,r=this.$refs.receipt.offsetHeight;console.log(n),e.SET_PRINT_PAGESIZE(3,"58mm",20,""),e.ADD_PRINT_HTM("9mm","0mm","RightMargin:0mm",r+"px",n),e.SET_PRINTER_INDEX(t)&&e.PRINT()}}},s=i,c=(n("b293"),n("2877")),l=Object(c["a"])(s,r,a,!1,null,"0c9f18c5",null);e["a"]=l.exports},"9cde":function(t,e,n){"use strict";n.d(e,"F",(function(){return a})),n.d(e,"n",(function(){return o})),n.d(e,"z",(function(){return i})),n.d(e,"a",(function(){return s})),n.d(e,"x",(function(){return c})),n.d(e,"J",(function(){return l})),n.d(e,"l",(function(){return u})),n.d(e,"H",(function(){return d})),n.d(e,"p",(function(){return f})),n.d(e,"C",(function(){return p})),n.d(e,"K",(function(){return m})),n.d(e,"I",(function(){return h})),n.d(e,"q",(function(){return b})),n.d(e,"v",(function(){return _})),n.d(e,"D",(function(){return v})),n.d(e,"b",(function(){return g})),n.d(e,"e",(function(){return y})),n.d(e,"c",(function(){return w})),n.d(e,"d",(function(){return x})),n.d(e,"G",(function(){return O})),n.d(e,"o",(function(){return j})),n.d(e,"t",(function(){return I})),n.d(e,"i",(function(){return C})),n.d(e,"g",(function(){return S})),n.d(e,"h",(function(){return D})),n.d(e,"j",(function(){return N})),n.d(e,"A",(function(){return E})),n.d(e,"k",(function(){return k})),n.d(e,"s",(function(){return T})),n.d(e,"u",(function(){return M})),n.d(e,"y",(function(){return A})),n.d(e,"B",(function(){return P})),n.d(e,"f",(function(){return R})),n.d(e,"r",(function(){return z})),n.d(e,"m",(function(){return $})),n.d(e,"w",(function(){return F})),n.d(e,"E",(function(){return L}));var r=n("b775");function a(t){return Object(r["a"])({url:"channel/in-store/save-area",method:"post",data:t})}function o(t){return Object(r["a"])({url:"channel/in-store/save-area",method:"get",params:t})}function i(t){return Object(r["a"])({url:"channel/in-store/modify-area",method:"post",data:t})}function s(t){return Object(r["a"])({url:"channel/in-store/area-list",method:"get",params:t})}function c(t){return Object(r["a"])({url:"channel/in-store/goods-type",method:"get",params:t})}function l(t){return Object(r["a"])({url:"channel/in-store/table-list",method:"get",params:t})}function u(t){return Object(r["a"])({url:"channel/in-store/get-area",method:"get",params:t})}function d(t){return Object(r["a"])({url:"channel/in-store/save-table",method:"post",data:t})}function f(t){return Object(r["a"])({url:"channel/in-store/save-table",method:"get",params:t})}function p(t){return Object(r["a"])({url:"channel/in-store/modify-table",method:"post",data:t})}function m(t){return Object(r["a"])({url:"channel/in-store/type-list",method:"get",params:t})}function h(t){return Object(r["a"])({url:"channel/in-store/save-type",method:"post",data:t})}function b(t){return Object(r["a"])({url:"channel/in-store/save-type",method:"get",params:t})}function _(t){return Object(r["a"])({url:"channel/in-store/get-type",method:"get",params:t})}function v(t){return Object(r["a"])({url:"channel/in-store/modify-type",method:"post",data:t})}function g(t){return Object(r["a"])({url:"channel/in-store/batch-table",method:"post",data:t})}function y(t){return Object(r["a"])({url:"channel/in-store/cashier-statistics",method:"get",params:t})}function w(t){return Object(r["a"])({url:"channel/in-store/cashier-order-list",method:"get",params:t})}function x(t){return Object(r["a"])({url:"channel/in-store/cashier-print",method:"post",data:t})}function O(t){return Object(r["a"])({url:"channel/in-store/save-code",method:"post",data:t})}function j(t){return Object(r["a"])({url:"channel/in-store/save-code",method:"get",params:t})}function I(t){return Object(r["a"])({url:"channel/in-store/get-table",method:"get",params:t})}function C(t){return Object(r["a"])({url:"channel/in-store/establish-code",method:"post",data:t})}function S(t){return Object(r["a"])({url:"channel/in-store/code-list",method:"get",params:t})}function D(t){return Object(r["a"])({url:"channel/in-store/del-code",method:"post",data:t})}function N(t){return Object(r["a"])({url:"channel/in-store/fast-order-list",method:"get",params:t})}function E(t){return Object(r["a"])({url:"channel/in-store/modify-fast-order",method:"post",data:t})}function k(t){return Object(r["a"])({url:"channel/screen/fast-screen",method:"post",data:t})}function T(t){return Object(r["a"])({url:"channel/in-store/get-store-code",method:"get",params:t})}function M(t){return Object(r["a"])({url:"channel/in-store/table-order",method:"get",params:t})}function A(t){return Object(r["a"])({url:"channel/in-store/in-store-order-list",method:"get",params:t})}function P(t){return Object(r["a"])({url:"channel/in-store/modify-in-store-order",method:"post",data:t})}function R(t){return Object(r["a"])({url:"channel/in-store/clean-table",method:"post",data:t})}function z(t){return Object(r["a"])({url:"channel/in-store/statistics",method:"get",params:t})}function $(t){return Object(r["a"])({url:"channel/pay-vip/order-statistics",method:"get",params:t})}function F(t){return Object(r["a"])({url:"channel/pay-vip/order-list",method:"get",params:t})}function L(t){return Object(r["a"])({url:"channel/in-store/out-order-list",method:"get",params:t})}},a9e3:function(t,e,n){"use strict";var r=n("83ab"),a=n("da84"),o=n("94ca"),i=n("6eeb"),s=n("5135"),c=n("c6b6"),l=n("7156"),u=n("c04e"),d=n("d039"),f=n("7c73"),p=n("241c").f,m=n("06cf").f,h=n("9bf2").f,b=n("58a8").trim,_="Number",v=a[_],g=v.prototype,y=c(f(g))==_,w=function(t){var e,n,r,a,o,i,s,c,l=u(t,!1);if("string"==typeof l&&l.length>2)if(l=b(l),e=l.charCodeAt(0),43===e||45===e){if(n=l.charCodeAt(2),88===n||120===n)return NaN}else if(48===e){switch(l.charCodeAt(1)){case 66:case 98:r=2,a=49;break;case 79:case 111:r=8,a=55;break;default:return+l}for(o=l.slice(2),i=o.length,s=0;sa)return NaN;return parseInt(o,r)}return+l};if(o(_,!v(" 0o1")||!v("0b1")||v("+0x1"))){for(var x,O=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof O&&(y?d((function(){g.valueOf.call(n)})):c(n)!=_)?l(new v(w(e)),n,O):w(e)},j=r?p(v):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),I=0;j.length>I;I++)s(v,x=j[I])&&!s(O,x)&&h(O,x,m(v,x));O.prototype=g,g.constructor=O,i(a,_,O)}},b293:function(t,e,n){"use strict";var r=n("b475"),a=n.n(r);a.a},b475:function(t,e,n){},bf19:function(t,e,n){"use strict";var r=n("23e7");r({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return URL.prototype.toString.call(this)}})},d2bb:function(t,e,n){var r=n("825a"),a=n("3bbe");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,t.call(n,[]),e=n instanceof Array}catch(o){}return function(n,o){return r(n),a(o),e?t.call(n,o):n.__proto__=o,n}}():void 0)},ed08:function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return o}));n("a9e3"),n("ac1f"),n("5319"),n("bf19");function r(t){var e=new Date(t).toJSON(),n=new Date(+new Date(e)+288e5).toISOString().replace(/T/g," ").replace(/\.[\d]{3}Z/,"");return n}function a(t){var e=new Date(t),n=e.getFullYear(),r=e.getMonth()+1<10?"0"+(e.getMonth()+1):e.getMonth()+1,a=e.getDate()<10?"0"+e.getDate():e.getDate(),o=e.getHours()<10?"0"+e.getHours():e.getHours(),i=e.getMinutes()<10?"0"+e.getMinutes():e.getMinutes(),s=e.getSeconds()<10?"0"+e.getSeconds():e.getSeconds();return n+"-"+r+"-"+a+" "+o+":"+i+":"+s}function o(t){var e=new Date(1e3*Number(t)),n=e.getFullYear()+"-",r=(e.getMonth()+1<10?"0"+(e.getMonth()+1):e.getMonth()+1)+"-",a=(e.getDate()<10?"0"+e.getDate():e.getDate())+" ",o=(e.getHours()<10?"0"+e.getHours():e.getHours())+":",i=(e.getMinutes()<10?"0"+e.getMinutes():e.getMinutes())+":",s=e.getSeconds()<10?"0"+e.getSeconds():e.getSeconds(),c=n+r+a+o+i+s;return c}},f19b:function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"ba_f outmain"},[t._m(0),n("div",{staticClass:"main-icon flex t_l mar_t20 wid"},[n("div",{staticClass:"flex-1 t_l pad_20 borderBG mar_r20"},[n("div",{staticClass:"flex-bet flex-y-top"},[n("div",[n("p",{staticClass:"color_9 fon_14"},[t._v("实付金额(元)")]),n("p",{staticClass:"fon_30 title35 lh16 pad_tb_20 wei"},[t._v(t._s(t.zhData.money||0))])])])]),n("div",{staticClass:"flex-1 t_l pad_20 borderBG mar_r20"},[n("div",{staticClass:"flex-bet flex-y-top"},[n("div",[n("p",{staticClass:"color_9 fon_14"},[t._v("预计收入(元)")]),n("p",{staticClass:"fon_30 title35 lh16 pad_tb_20 wei"},[t._v(t._s(t.zhData.allEstimate||0))])])])]),n("div",{staticClass:"flex-1 t_l pad_20 borderBG mar_r20"},[n("div",{staticClass:"flex-bet flex-y-top"},[n("div",[n("p",{staticClass:"color_9 fon_14"},[t._v("平台服务费(元)")]),n("p",{staticClass:"fon_30 title35 lh16 pad_tb_20 wei"},[t._v(t._s(t.zhData.serviceMoney||0))])])])]),n("div",{staticClass:"flex-1 t_l pad_20 borderBG mar_r20"},[n("div",{staticClass:"flex-bet flex-y-top"},[n("div",{},[n("p",{staticClass:"color_9 fon_14 flex-center"},[t._v("订单数(单)")]),n("p",{staticClass:"fon_30 title35 lh16 pad_tb_20 wei"},[t._v(t._s(t.zhData.count||0))])])])])])]),n("div",{staticClass:"outmain ba_f mar_t20"},[t._m(1),n("div",{staticClass:"flex-bet flex-y-top"},[n("el-form",{staticClass:"demo-form-inline searchform",attrs:{inline:!0,model:t.formInline}},[n("div",[n("el-form-item",{attrs:{label:"订单号"}},[n("el-input",{attrs:{size:"medium",placeholder:"请输入订单号"},on:{input:t.onSearch},model:{value:t.formInline.keyword,callback:function(e){t.$set(t.formInline,"keyword",e)},expression:"formInline.keyword"}})],1),n("el-form-item",{staticClass:"mar_l20",attrs:{label:"下单时间"}},[n("el-radio-group",{staticClass:"mar_r20",on:{change:t.onSearch},model:{value:t.formInline.timeType,callback:function(e){t.$set(t.formInline,"timeType",e)},expression:"formInline.timeType"}},[n("el-radio-button",{attrs:{label:"1"}},[t._v("今天")]),n("el-radio-button",{attrs:{label:"2"}},[t._v("昨天")]),n("el-radio-button",{attrs:{label:"3"}},[t._v("一周")]),n("el-radio-button",{attrs:{label:"0"}},[t._v("全部")])],1),n("el-date-picker",{attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:t.onSearch},model:{value:t.formInline.timeData,callback:function(e){t.$set(t.formInline,"timeData",e)},expression:"formInline.timeData"}})],1),n("el-form-item",{staticClass:"mar_l20"},[n("el-button",{staticClass:"sousuo mar_r10",attrs:{type:"primary",size:"medium"},on:{click:t.onSearch}},[t._v("搜索")]),n("a",{staticClass:"mar_l10",attrs:{href:t.handelExport()}},[n("el-button",{attrs:{size:"medium",type:"primary"}},[t._v("导出订单")])],1)],1)],1)])],1),n("div",{staticClass:"mar_t20"},[n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticClass:"tablecenter",staticStyle:{width:"100%"},attrs:{"element-loading-text":t.elementLoadingText,data:t.list,stripe:""},on:{"selection-change":t.setSelectRows}},[n("el-table-column",{attrs:{type:"selection",width:"55"}}),n("el-table-column",{attrs:{prop:"portrait",label:"用户信息",width:"200"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",{staticClass:"flex flex-y-top flex-center"},[n("div",{staticClass:"mar_l10"},[n("div",{},[n("div",{},[t._v(t._s(e.row.userName)+"(UID:"+t._s(e.row.userId)+")")])])])])]}}])}),n("el-table-column",{attrs:{prop:"outTradeNo",label:"订单编号"}}),n("el-table-column",{attrs:{prop:"payAt",label:"支付时间"}}),n("el-table-column",{attrs:{prop:"createdAt",label:"实付金额"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",{staticClass:"color-green wei"},[t._v("+"+t._s(e.row.money))]),n("div",{staticClass:"fon_12"},[n("span",{directives:[{name:"show",rawName:"v-show",value:"1"==e.row.payMode,expression:"scope.row.payMode=='1'"}]},[t._v("微信支付")]),n("span",{directives:[{name:"show",rawName:"v-show",value:"5"==e.row.payMode,expression:"scope.row.payMode=='5'"}]},[t._v("余额支付")]),n("span",{directives:[{name:"show",rawName:"v-show",value:"2"==e.row.payMode,expression:"scope.row.payMode=='2'"}]},[t._v("支付宝支付")])])]}}])}),n("el-table-column",{attrs:{prop:"serviceMoney",label:"平台服务费"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",{staticClass:"color-red wei"},[t._v("-¥"+t._s(e.row.serviceMoney))])]}}])}),n("el-table-column",{attrs:{prop:"storeActualMoney",label:"预计收入"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",{staticClass:"color-green wei"},[t._v("+¥"+t._s(e.row.storeActualMoney))])]}}])}),n("el-table-column",{attrs:{prop:"createdAt",label:"订单备注"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.userNote||"无")+" ")]}}])}),n("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",{staticClass:"flex-center"},[n("el-button",{attrs:{type:"text"},on:{click:function(n){return t.handleprint(e.row)}}},[t._v("打印")])],1)]}}])})],1),n("el-pagination",{attrs:{background:"",layout:"prev, pager, next",total:t.page.total,"page-size":t.page.pagesize,"current-page":t.page.currentPage},on:{"update:currentPage":function(e){return t.$set(t.page,"currentPage",e)},"update:current-page":function(e){return t.$set(t.page,"currentPage",e)},"current-change":t.handleCurrentChange}})],1)]),n("div",{staticStyle:{height:"0",overflow:"hidden"}},[n("syPrint",{ref:"syprint",attrs:{data:t.printData}})],1)])},a=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"shuju_title"},[n("div",{staticClass:"shuju_title_text"},[n("span",[t._v("当面付统计")])])])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"shuju_title mar_b20"},[n("div",{staticClass:"shuju_title_text"},[n("span",[t._v("当面付订单")])])])}],o=(n("d81d"),n("b64b"),n("96cf"),n("1da1")),i=n("9cde"),s=n("ed08"),c=n("313e"),l=n.n(c),u=n("365c"),d=n("f8b7"),f=n("8f06"),p={components:{syPrint:f["a"]},created:function(){this.cashierStatistics(),this.fetchData()},mounted:function(){},data:function(){return{formInline:{timeType:"1",keyword:"",timeData:""},list:[],listLoading:!1,selectRows:"",elementLoadingText:"正在加载...",page:{total:0,size:10,currentPage:1},zhData:{},echarts3_option:{color:["#5654F5","#4CA8FF","#4EC478","#FBA33F","#EBA675"],tooltip:{trigger:"item"},legend:{orient:"vertical",right:0,data:["微信支付","支付宝支付","余额支付"]},series:[{name:"支付金额",type:"pie",radius:["40%","60%"],avoidLabelOverlap:!1,label:{show:!1,position:"center"},emphasis:{label:{show:!0,fontSize:"20",fontWeight:"bold"},itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}},labelLine:{show:!1},data:[{value:35,name:"微信支付"},{value:20,name:"支付宝支付"},{value:20,name:"余额支付"}]}]},printData:{}}},methods:{cashierStatistics:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){var n,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["e"])();case 2:n=e.sent,r=n.data,t.zhData=r,t.echarts3_option.series[0].data[0].value=+r.wxPay,t.echarts3_option.series[0].data[1].value=+r.aliPay,t.echarts3_option.series[0].data[2].value=+r.balancePay,t.mainEch32();case 9:case"end":return e.stop()}}),e)})))()},mainEch32:function(){var t=l.a.init(document.getElementById("mainEch32"));t.setOption(this.echarts3_option,!0)},fetchData:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){var n,r,a,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n={page:t.page.currentPage,keyword:t.formInline.keyword,timeType:t.formInline.timeType,startTime:t.formInline.timeData?Object(s["a"])(t.formInline.timeData[0]):"",endTime:t.formInline.timeData?Object(s["a"])(t.formInline.timeData[1]):""},e.next=3,Object(i["c"])(n);case 3:r=e.sent,a=r.data,o=r.count,t.list=a,t.page.total=o,t.listLoading=!1;case 9:case"end":return e.stop()}}),e)})))()},onSearch:function(){this.fetchData()},setSelectRows:function(t){this.selectRows=t},handleCurrentChange:function(t){this.page.currentPage=t,this.fetchData()},handelExport:function(){var t=this.formInline.time?Object(s["a"])(this.formInline.time[0]).substring(0,10):"",e=this.formInline.time?Object(s["a"])(this.formInline.time[1]).substring(0,10):"",n=u["a"].backendPath;return n+"channel/in-store/cashier-order-list?export=1&page="+this.page.currentPage+"&timeType="+this.formInline.timeType+"&keyword="+this.formInline.keyword+"&startTime="+t+"&endTime="+e},handleprint:function(t){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function n(){var r,a,o,s;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(!t.id){n.next=14;break}return n.next=3,Object(i["d"])({orderId:t.id});case 3:return r=n.sent,a=r.msg,e.$baseMessage(a,"success"),n.next=8,Object(d["l"])({orderId:t.id,orderType:4});case 8:o=n.sent,s=o.data,Object.keys(s).map((function(t){e.printData=s[t],e.$nextTick((function(){e.$refs.syprint.printElement(t)}))})),e.fetchData(),n.next=15;break;case 14:e.$baseMessage("订单错误","error");case 15:case"end":return n.stop()}}),n)})))()}}},m=p,h=n("2877"),b=Object(h["a"])(m,r,a,!1,null,null,null);e["default"]=b.exports}}]);