(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-31d32f84"],{"7e6d":function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"outmain ba_f"},[e._m(0),r("div",{staticClass:"pad_b_30 orderSeatch"},[r("el-form",{staticClass:"demo-form-inline",attrs:{inline:!1,model:e.formInline,"label-width":"100px"}},[[r("el-form-item",{attrs:{label:"订单状态:"}},[r("el-radio-group",{on:{change:e.selectType},model:{value:e.formInline.orderState,callback:function(t){e.$set(e.formInline,"orderState",t)},expression:"formInline.orderState"}},[r("el-radio-button",{attrs:{label:"0"}},[e._v("不限")]),r("el-radio-button",{attrs:{label:"1"}},[e._v("待接单")]),r("el-radio-button",{attrs:{label:"9"}},[e._v("待核销")]),r("el-radio-button",{attrs:{label:"6",disabled:"3"==e.formInline.orderType}},[e._v("待配送")]),r("el-radio-button",{attrs:{label:"8",disabled:"3"==e.formInline.orderType}},[e._v("配送中")]),r("el-radio-button",{attrs:{label:"10"}},[e._v("已完成")]),r("el-radio-button",{attrs:{label:"5"}},[e._v("已取消")])],1)],1)],r("el-form-item",{staticClass:"mar_t20",attrs:{label:"订单类型:"}},[r("el-radio-group",{on:{change:e.selectType},model:{value:e.formInline.orderType,callback:function(t){e.$set(e.formInline,"orderType",t)},expression:"formInline.orderType"}},[r("el-radio-button",{attrs:{label:"0"}},[e._v("不限")]),r("el-radio-button",{attrs:{label:"4"}},[e._v("普通单")]),r("el-radio-button",{attrs:{label:"3"}},[e._v("自提订单")])],1),r("el-checkbox",{staticClass:"mar_l20",attrs:{"true-label":"1","false-label":"0"},on:{change:e.selectType},model:{value:e.formInline.appointment,callback:function(t){e.$set(e.formInline,"appointment",t)},expression:"formInline.appointment"}},[e._v("预订单")])],1),r("el-form-item",{staticClass:"mar_t20",attrs:{label:"支付方式:"}},[r("el-radio-group",{on:{change:e.selectType},model:{value:e.formInline.payMode,callback:function(t){e.$set(e.formInline,"payMode",t)},expression:"formInline.payMode"}},[r("el-radio-button",{attrs:{label:"0"}},[e._v("不限")]),r("el-radio-button",{attrs:{label:"1"}},[e._v("微信支付")]),r("el-radio-button",{attrs:{label:"5"}},[e._v("余额支付")])],1)],1),r("el-form-item",{staticClass:"mar_t20",attrs:{label:"下单日期:"}},[r("div",{staticClass:"flex-bet"},[r("div",[r("el-radio-group",{on:{change:e.selectType},model:{value:e.formInline.timeType,callback:function(t){e.$set(e.formInline,"timeType",t)},expression:"formInline.timeType"}},[r("el-radio-button",{attrs:{label:"3"}},[e._v("近七日")]),r("el-radio-button",{attrs:{label:"1"}},[e._v("近两日")]),r("el-radio-button",{attrs:{label:"2"}},[e._v("具体日期")])],1),"2"==e.formInline.timeType?r("span",{staticClass:"mar_l20"},[r("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)])]),r("el-form-item",{staticClass:"mar_t20",attrs:{label:"模糊搜索:","label-position":"top"}},[r("div",{staticClass:"flex"},[r("div",[r("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),r("div",{staticClass:"pad_r_20 mar_l20"},[r("a",{staticClass:"mar_l10",attrs:{href:e.handelExport()}},[r("el-button",{attrs:{size:"medium",type:"primary"}},[e._v("导出订单")])],1)])])])],2)],1),r("div",{staticClass:"flex-bet flex-y-top"},[r("div",{staticClass:"bflex-7"},[e.orderlist.length<=0?r("order-state",{ref:"orderState",attrs:{state:"0"}}):e._e(),r("order-list",{ref:"orderList",attrs:{list:e.orderlist},on:{initMethod:e.init}})],1),e.orderlist.length>0?r("div",{staticClass:"bflex-3 mar_t20 mar_l30"},[e._m(1),r("div",{staticClass:"orderGk pad_10 flex-bet color_6"},[r("div",{staticClass:"flex-g-1 t_c bor_r_de4"},[r("div",[e._v("有效订单(单)")]),r("div",{staticClass:"fon_40"},[e._v(e._s(e.orderStatistic.orderNum||0))])]),r("div",{staticClass:"flex-g-1 t_c"},[r("div",[e._v("营业额(元)")]),r("div",{staticClass:"fon_40"},[e._v(e._s(e.orderStatistic.money||0))])])])]):e._e()]),r("el-pagination",{attrs:{background:"",layout:"prev, pager, next",total:e.page.total,"page-size":e.page.size,"current-page":e.page.currentPage,"hide-on-single-page":e.page.value},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}})],1)},a=[function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"shuju_title mar_b20"},[r("div",{staticClass:"shuju_title_text"},[r("span",[e._v("订单查询")])])])},function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"shuju_title mar_b10",staticStyle:{background:"#F9F9F9","font-size":"14px"}},[r("div",{staticClass:"shuju_title_text fon_12"},[r("span",[e._v("当日订单情况")])])])}],i=(r("96cf"),r("1da1")),o=r("56fe"),l=r("5dc5"),s=r("f8b7"),c=r("ed08"),d=r("365c"),u={components:{OrderState:o["a"],OrderList:l["a"]},created:function(){this.bus.$emit("loading",!0),this.$route.query.orderType&&(this.formInline.orderType=this.$route.query.orderType,this.formInline.orderState=this.$route.query.orderState,this.formInline.timeType=this.$route.query.timeType),this.init(),this.fforderStatistic()},data:function(){return{pickerOptions:{shortcuts:[{text:"今天",onClick:function(e){e.$emit("pick",new Date)}},{text:"昨天",onClick:function(e){var t=new Date;t.setTime(t.getTime()-864e5),e.$emit("pick",t)}},{text:"一周前",onClick:function(e){var t=new Date;t.setTime(t.getTime()-6048e5),e.$emit("pick",t)}}]},formInline:{time:[new Date,new Date],timeType:"1",orderType:"0",serviceAt:"1",orderState:"0",keyword:"",appointment:"",payMode:"0"},orderlist:[],page:{total:0,size:10,currentPage:1},orderStatistic:{}}},computed:{keyword:{get:function(){return this.formInline.keyword}}},watch:{keyword:function(){console.log(1),this.init()}},methods:{init:function(){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function t(){var r,n,a,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return r={page:e.page.currentPage,orderType:e.formInline.orderType,timeType:e.formInline.timeType,startTime:"2"==e.formInline.timeType&&e.formInline.time?Object(c["a"])(e.formInline.time[0]):"",endTime:"2"==e.formInline.timeType&&e.formInline.time?Object(c["a"])(e.formInline.time[1]):"",state:e.formInline.orderState,serviceAt:e.formInline.serviceAt,keyword:e.formInline.keyword,appointment:e.formInline.appointment,payMode:e.formInline.payMode},t.next=3,Object(s["m"])(r);case 3:n=t.sent,a=n.data,i=n.count,e.orderlist=a,e.page.total=i,e.page.value=!(i>0),e.$emit("orderList",a),e.bus.$emit("loading",!1);case 11:case"end":return t.stop()}}),t)})))()},fforderStatistic:function(){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function t(){var r,n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(s["n"])();case 2:r=t.sent,n=r.data,e.orderStatistic=n;case 5:case"end":return t.stop()}}),t)})))()},handleCurrentChange:function(e){this.page.currentPage=e,this.init()},selectType:function(){this.init()},selectTimeTypeData:function(){this.init()},handelExport:function(){var e=this.formInline.time?Object(c["a"])(this.formInline.time[0]).substring(0,10):"",t=this.formInline.time?Object(c["a"])(this.formInline.time[1]).substring(0,10):"",r=d["a"].backendPath;return r+"channel/order/order-list?export=1&page="+this.page.currentPage+"&orderType="+this.formInline.orderType+"&timeType="+this.formInline.timeType+"&orderState="+this.formInline.orderState+"&serviceAt="+this.formInline.serviceAt+"&startTime="+e+"&endTime="+t}}},m=u,p=(r("cd28"),r("2877")),f=Object(p["a"])(m,n,a,!1,null,"63440d60",null);t["default"]=f.exports},8759:function(e,t,r){},bf19:function(e,t,r){"use strict";var n=r("23e7");n({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return URL.prototype.toString.call(this)}})},cd28:function(e,t,r){"use strict";var n=r("8759"),a=r.n(n);a.a},ed08:function(e,t,r){"use strict";r.d(t,"a",(function(){return n})),r.d(t,"b",(function(){return a})),r.d(t,"c",(function(){return i}));r("a9e3"),r("ac1f"),r("5319"),r("bf19");function n(e){var t=new Date(e).toJSON(),r=new Date(+new Date(t)+288e5).toISOString().replace(/T/g," ").replace(/\.[\d]{3}Z/,"");return r}function a(e){var t=new Date(e),r=t.getFullYear(),n=t.getMonth()+1<10?"0"+(t.getMonth()+1):t.getMonth()+1,a=t.getDate()<10?"0"+t.getDate():t.getDate(),i=t.getHours()<10?"0"+t.getHours():t.getHours(),o=t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes(),l=t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds();return r+"-"+n+"-"+a+" "+i+":"+o+":"+l}function i(e){var t=new Date(1e3*Number(e)),r=t.getFullYear()+"-",n=(t.getMonth()+1<10?"0"+(t.getMonth()+1):t.getMonth()+1)+"-",a=(t.getDate()<10?"0"+t.getDate():t.getDate())+" ",i=(t.getHours()<10?"0"+t.getHours():t.getHours())+":",o=(t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes())+":",l=t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds(),s=r+n+a+i+o+l;return s}}}]);