(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1afb1054"],{"07f4":function(e,t,a){},"199c":function(e,t,a){"use strict";var r=a("07f4"),s=a.n(r);s.a},"34ad":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",[a("div",{staticClass:"ba_f outmain"},[e._m(0),a("div",{staticClass:"main-icon flex t_l mar_t20"},[a("div",{staticClass:"flex-1 t_l pad_20 borderBG mar_r20"},[a("div",{staticClass:"flex-bet flex-y-top"},[a("div",[a("p",{staticClass:"color_9 fon_14"},[e._v("营业总额(元)")]),a("p",{staticClass:"fon_30 title35 lh16 pad_tb_20 wei"},[e._v(e._s(e.billinfoData.allMoney||0))])])])]),a("div",{staticClass:"flex-1 t_l pad_20 borderBG mar_r20"},[a("div",{staticClass:"flex-bet flex-y-top"},[a("div",[a("p",{staticClass:"color_9 fon_14"},[e._v("预计收入(元)")]),a("p",{staticClass:"fon_30 title35 lh16 pad_tb_20 wei"},[e._v(e._s(e.billinfoData.allEstimate||0))])])])]),a("div",{staticClass:"flex-1 t_l pad_20 borderBG mar_r20"},[a("div",{staticClass:"flex-bet flex-y-top"},[a("div",[a("p",{staticClass:"color_9 fon_14"},[e._v("有效订单(单)")]),a("p",{staticClass:"fon_30 title35 lh16 pad_tb_20 wei"},[e._v(e._s(e.billinfoData.allEffective||0))])])])]),a("div",{staticClass:"flex-1 t_l pad_20 borderBG"},[a("div",{staticClass:"flex-bet flex-y-top"},[a("div",[a("p",{staticClass:"color_9 fon_14"},[e._v("无效订单(单)")]),a("p",{staticClass:"fon_30 title35 lh16 pad_tb_20 wei"},[e._v(e._s(e.billinfoData.allInvalidCount||0))])])])])])]),a("div",{staticClass:"ba_f outmain mar_t20"},[a("div",{staticClass:"shuju_title"},[e._m(1),a("div",{staticClass:"fon_14 ab r0 mar_r10 color_9"},[e._v("查询日期:"+e._s(e.time))])]),a("div",{staticClass:"mar_t20"},[a("el-tabs",{attrs:{type:"card"},on:{"tab-click":e.handleTabClick},model:{value:e.activeName1,callback:function(t){e.activeName1=t},expression:"activeName1"}},[a("el-tab-pane",{attrs:{label:"外卖统计",name:"wmtj"}}),a("el-tab-pane",{attrs:{label:"店内统计",name:"dntj"}}),a("el-tab-pane",{attrs:{label:"当面付统计",name:"dmftj"}})],1)],1),a("div",{staticClass:"main-icon flex t_l mar_t20"},[a("div",{staticClass:"flex-1 t_l pad_20 borderBG mar_r20"},[a("div",{staticClass:"flex-bet flex-y-top"},[a("div",[a("p",{staticClass:"color_9 fon_14"},[e._v("营业总额")]),a("p",{staticClass:"fon_30 title35 lh16 pad_tb_20 wei"},[e._v(e._s(e.billinfoData.money||0))])])])]),a("div",{staticClass:"flex-1 t_l pad_20 borderBG mar_r20"},[a("div",{staticClass:"flex-bet flex-y-top"},[a("div",[a("p",{staticClass:"color_9 fon_14"},[e._v("平台服务费")]),a("p",{staticClass:"fon_30 title35 lh16 pad_tb_20 wei"},[e._v(e._s(e.billinfoData.service||0))])])])]),a("div",{staticClass:"flex-1 t_l pad_20 borderBG mar_r20"},[a("div",{staticClass:"flex-bet flex-y-top"},[a("div",[a("p",{staticClass:"color_9 fon_14"},[e._v("预计收入")]),a("p",{staticClass:"fon_30 title35 lh16 pad_tb_20 wei"},[e._v(e._s(e.billinfoData.income||0))])])])]),e._m(2)]),a("div",{staticClass:"mar_t20"},[e._m(3),a("el-tabs",{on:{"tab-click":e.inHandleClick},model:{value:e.inActiveName,callback:function(t){e.inActiveName=t},expression:"inActiveName"}},[a("el-tab-pane",{attrs:{label:"当面付",name:"1"}})],1),a("div",{directives:[{name:"show",rawName:"v-show",value:"1"==e.inActiveName,expression:"inActiveName=='1'"}]},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],staticClass:"mar_t20",staticStyle:{width:"100%"},attrs:{"element-loading-text":e.elementLoadingText,data:e.list,stripe:""},on:{"selection-change":e.setSelectRows}},[a("el-table-column",{attrs:{type:"selection",width:"55"}}),a("el-table-column",{attrs:{prop:"outTradeNo",label:"订单号"}}),a("el-table-column",{attrs:{label:"订单来源"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"flex"},["1"==t.row.origin?a("span",[a("el-tag",{attrs:{effect:"dark",size:"mini",type:"success"}},[e._v("微信小程序")])],1):e._e(),"2"==t.row.origin?a("span",[a("el-tag",{attrs:{effect:"dark",size:"mini",type:"success"}},[e._v("微信公众号")])],1):e._e(),"3"==t.row.origin?a("span",[a("el-tag",{attrs:{effect:"dark",size:"mini",type:"info"}},[e._v("支付宝小程序")])],1):e._e(),"4"==t.row.origin?a("span",[a("el-tag",{attrs:{effect:"dark",size:"mini",type:"danger"}},[e._v("百度小程序")])],1):e._e(),"5"==t.row.origin?a("span",[a("el-tag",{attrs:{effect:"dark",size:"mini"}},[e._v("收银台下单")])],1):e._e()])]}}])}),a("el-table-column",{attrs:{prop:"createdAt",label:"实付金额"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"color-green wei"},[e._v("+"+e._s(t.row.money))]),a("div",{staticClass:"fon_12"},[a("span",{directives:[{name:"show",rawName:"v-show",value:"1"==t.row.payMode,expression:"scope.row.payMode=='1'"}]},[e._v("微信支付")]),a("span",{directives:[{name:"show",rawName:"v-show",value:"5"==t.row.payMode,expression:"scope.row.payMode=='5'"}]},[e._v("余额支付")])])]}}])}),a("el-table-column",{attrs:{prop:"serviceMoney",label:"平台服务费"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"color-red wei"},[e._v("-¥"+e._s(t.row.serviceMoney))])]}}])}),a("el-table-column",{attrs:{prop:"payModeName",label:"预计收入"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"color-green wei"},[e._v("+¥"+e._s(t.row.storeActualMoney))])]}}])}),a("el-table-column",{attrs:{prop:"state",label:"订单状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[a("span",{staticStyle:{color:"#489620"}},[a("el-tag",{attrs:{type:"success",size:"mini"}},[e._v("已完成")])],1)])]}}])}),a("el-table-column",{attrs:{prop:"zc",label:"分账操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"flex"},[a("span",{directives:[{name:"show",rawName:"v-show",value:"1"==t.row.profitSharingMsgState,expression:"scope.row.profitSharingMsgState == '1'"}],staticStyle:{color:"#489620"}},[e._v("已分账")]),a("span",{directives:[{name:"show",rawName:"v-show",value:"2"==t.row.profitSharingMsgState,expression:"scope.row.profitSharingMsgState == '2'"}],staticStyle:{color:"#489620"}},[e._v("已完结分账")]),a("span",{directives:[{name:"show",rawName:"v-show",value:"3"==t.row.profitSharingMsgState,expression:"scope.row.profitSharingMsgState == '3'"}],staticStyle:{color:"#489620"}},[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.handelfz(t.row.orderId)}}},[e._v("完结分账")])],1),a("span",{directives:[{name:"show",rawName:"v-show",value:"0"==t.row.profitSharingMsgState,expression:"scope.row.profitSharingMsgState == '0'"}]},[e._v("--")])])]}}])}),a("el-table-column",{attrs:{prop:"zc",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"flex"},[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.handelDetail(t.row.outTradeNo)}}},[e._v("查看详情")])],1)]}}])})],1),a("el-pagination",{attrs:{background:"",layout:"prev, pager, next",total:e.page.total,"page-size":e.page.pagesize,"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}})],1)],1)]),a("edit",{ref:"edit"})],1)},s=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"shuju_title mar_b20"},[a("div",{staticClass:"shuju_title_text"},[a("span",[e._v("账户概况")])])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"shuju_title_text"},[a("span",[e._v("交易概况")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"flex-1 t_l pad_20 borderBG"},[a("div",{staticClass:"flex-bet flex-y-top"},[a("div",[a("p",{staticClass:"color_9 fon_14"},[e._v("有效订单")]),a("p",{staticClass:"fon_30 title35 lh16 pad_tb_20 wei"},[e._v("0")])])])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"shuju_title mar_b20"},[a("div",{staticClass:"shuju_title_text"},[a("span",[e._v("订单概况")])])])}],i=(a("99af"),a("96cf"),a("1da1")),n=a("48fb"),l=a("9cde"),o=a("90ac"),c={components:{Edit:o["a"]},created:function(){this.$route.query.time&&(this.time=this.$route.query.time,this.storeId=this.$route.query.storeId,this.inStoreBillInfo(),this.billInStoreOrderInfo())},data:function(){return{activeName1:"dmftj",inActiveName:"1",time:"",storeId:"",billinfoData:{inStoreCashierData:{},inStoreFastData:{},inStoreData:{}},accountInfo:{},list:[],list2:[],list3:[],listLoading:!1,selectRows:"",selectRows2:"",selectRows3:"",elementLoadingText:"正在加载...",page:{total:0,size:10,currentPage:1},page2:{total:0,size:10,currentPage:1},page3:{total:0,size:10,currentPage:1}}},methods:{handleTabClick:function(){"wmtj"==this.activeName1?this.$router.push("/financerecordDetail?time=".concat(this.time,"&storeId=").concat(this.storeId)):"dntj"==this.activeName1?this.$router.push("/infinancerecordDetail?time=".concat(this.time,"&storeId=").concat(this.storeId)):"dmftj"==this.activeName1&&this.$router.push("/cashfinancerecordDetail?time=".concat(this.time,"&storeId=").concat(this.storeId))},inStoreBillInfo: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:if(!e.time){t.next=6;break}return t.next=3,Object(n["e"])({time:e.time,storeId:e.storeId,type:"3"});case 3:a=t.sent,r=a.data,e.billinfoData=r;case 6:case"end":return t.stop()}}),t)})))()},inHandleClick:function(){"1"==this.inActiveName?this.billInStoreOrderInfo():"2"==this.inActiveName?this.billInStoreOrderInfo2():"3"==this.inActiveName&&this.billInStoreOrderInfo3()},billInStoreOrderInfo: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 t.next=2,Object(n["d"])({time:e.time,page:e.page.currentPage,storeId:e.storeId,type:"1"});case 2:a=t.sent,r=a.data,s=a.count,e.list=r,e.page.total=s;case 7:case"end":return t.stop()}}),t)})))()},billInStoreOrderInfo2: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 t.next=2,Object(n["d"])({time:e.time,page:e.page2.currentPage,storeId:e.storeId,type:"2"});case 2:a=t.sent,r=a.data,s=a.count,e.list2=r,e.page2.total=s;case 7:case"end":return t.stop()}}),t)})))()},billInStoreOrderInfo3: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 t.next=2,Object(n["d"])({time:e.time,page:e.page3.currentPage,storeId:e.storeId,type:"3"});case 2:a=t.sent,r=a.data,s=a.count,e.list3=r,e.page3.total=s;case 7:case"end":return t.stop()}}),t)})))()},handleCurrentChange:function(e){this.page.currentPage=e,this.billInStoreOrderInfo()},handleCurrentChange2:function(e){this.page2.currentPage=e,this.billInStoreOrderInfo2()},handleCurrentChange3:function(e){this.page3.currentPage=e,this.billInStoreOrderInfo3()},setSelectRows:function(e){this.selectRows=e},setSelectRows2:function(e){this.selectRows2=e},setSelectRows3:function(e){this.selectRows3=e},handelfz: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:return a.next=2,Object(n["x"])({orderId:e,type:"3"});case 2:r=a.sent,s=r.msg,t.$baseMessage(s,"success"),t.getBillOrderInfo();case 6:case"end":return a.stop()}}),a)})))()},handelDetail: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.$refs["edit"].showEdit(e,4);case 1:case"end":return a.stop()}}),a)})))()},handleprint: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(!e.orderId){a.next=9;break}return a.next=3,Object(l["d"])({orderId:e.orderId});case 3:r=a.sent,s=r.msg,t.$baseMessage(s,"success"),t.billInStoreOrderInfo(),a.next=10;break;case 9:t.$baseMessage("订单错误","error");case 10:case"end":return a.stop()}}),a)})))()},handleprint2: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(!e.orderId){a.next=9;break}return a.next=3,Object(l["A"])({orderId:e.orderId,type:"print"});case 3:r=a.sent,s=r.msg,t.$baseMessage(s,"success"),t.billInStoreOrderInfo2(),a.next=10;break;case 9:t.$baseMessage("订单错误","error");case 10:case"end":return a.stop()}}),a)})))()},handleprint3: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(!e.orderId){a.next=9;break}return a.next=3,Object(l["B"])({orderId:e.orderId,type:"print"});case 3:r=a.sent,s=r.msg,t.$baseMessage(s,"success"),t.billInStoreOrderInfo3(),a.next=10;break;case 9:t.$baseMessage("订单错误","error");case 10:case"end":return a.stop()}}),a)})))()}}},d=c,u=a("2877"),_=Object(u["a"])(d,r,s,!1,null,null,null);t["default"]=_.exports},"90ac":function(e,t,a){"use strict";var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"ddxq"},[a("el-dialog",{attrs:{title:"订单详情",visible:e.dialogFormVisible,width:"75%","close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[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(e._s(e.orderDetail.originName))])],1)])]),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(e._s(e.orderDetail.platformName))])],1)])]),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))])]),4!=e.type&&5!=e.type?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.takeNo))])]):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.outTradeNo))])]),a("div",{staticClass:"flex pad_lr_10 bor_b_df5 lh40"},[a("div",{staticClass:"seeLeft"},[e._v("实付金额:")]),a("div",{staticClass:"wei color-red"},[e._v("+¥"+e._s(e.orderDetail.money))])]),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",{staticClass:"color-green"},[a("el-tag",{attrs:{type:"success",size:"mini"}},[e._v("已支付")])],1)])]),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(e._s(e.orderDetail.payModeName))])],1)])]),a("div",{staticClass:"flex pad_lr_10 bor_b_df5 lh40"},[a("div",{staticClass:"seeLeft"},[e._v("订单状态:")]),a("div",{staticClass:"flex flex-center"},["1"==e.type?a("div",["5"==e.orderDetail.state||"6"==e.orderDetail.state?a("span",{staticStyle:{color:"#489620"}},[a("el-tag",{attrs:{type:"success",size:"mini"}},[e._v("已完成")])],1):e._e(),"2"==e.orderDetail.state||"3"==e.orderDetail.state||"4"==e.orderDetail.state?a("span",{staticStyle:{color:"#155BD4"}},[a("el-tag",{attrs:{size:"mini"}},[e._v("待完成")])],1):e._e(),"9"==e.orderDetail.state?a("span",{staticStyle:{color:"#df0029"}},[a("el-tag",{attrs:{type:"danger",size:"mini"}},[e._v("退款待处理")])],1):e._e(),"8"==e.orderDetail.state||"10"==e.orderDetail.state?a("span",{staticStyle:{color:"#df0029"}},[a("el-tag",{attrs:{type:"info",size:"mini"}},[e._v("已退款")])],1):e._e()]):e._e(),"3"==e.type?a("div",["2"==e.orderDetail.state?a("div",{staticClass:"color-red"},[a("el-tag",{attrs:{type:"dager",size:"mini"}},[e._v("待接单")])],1):e._e(),"3"==e.orderDetail.state?a("div",{staticClass:"color-orange"},[a("el-tag",{attrs:{type:"warning",size:"mini"}},[e._v("制作中")])],1):e._e(),"4"==e.orderDetail.state?a("div",{staticClass:"color-green"},[a("el-tag",{attrs:{type:"success",size:"mini"}},[e._v("已完成")])],1):e._e(),"5"==e.orderDetail.state?a("div",{staticClass:"color_9"},[a("el-tag",{attrs:{type:"info",size:"mini"}},[e._v("已取消")])],1):e._e(),"6"==e.orderDetail.state?a("div",{staticClass:"color-red"},[a("el-tag",{attrs:{type:"dager",size:"mini"}},[e._v("申请退款")])],1):e._e(),"7"==e.orderDetail.state&&"1"==e.orderDetail.refundType?a("div",{staticClass:"color-red"},[a("el-tag",{attrs:{type:"info",size:"mini"}},[e._v("用户申请退款通过")])],1):e._e(),"7"==e.orderDetail.state&&"2"==e.orderDetail.refundType?a("div",{staticClass:"color-red"},[a("el-tag",{attrs:{type:"info",size:"mini"}},[e._v("商家退款")])],1):e._e(),"8"==e.orderDetail.state?a("div",{staticClass:"color-red"},[a("el-tag",{attrs:{type:"info",size:"mini"}},[e._v("拒绝退款")])],1):e._e(),"9"==e.orderDetail.state?a("div",{staticClass:"color-red"},[a("el-tag",{attrs:{type:"info",size:"mini"}},[e._v("商户拒单并退款")])],1):e._e()]):e._e(),"2"==e.type?a("div",["3"==e.orderDetail.state&&"1"==e.orderDetail.eatType||"3"==e.orderDetail.state&&"2"==e.orderDetail.eatType?a("div",{staticClass:"color-green"},[a("el-tag",{attrs:{type:"success",size:"mini"}},[e._v("已完成")])],1):e._e(),"2"==e.orderDetail.state&&"1"==e.orderDetail.eatType||"2"==e.orderDetail.state&&"2"==e.orderDetail.eatType?a("div",{staticClass:"color-orange"},[a("el-tag",{attrs:{type:"warning",size:"mini"}},[e._v("就餐中")])],1):e._e(),"1"==e.orderDetail.state&&"1"==e.orderDetail.eatType?a("div",{staticClass:"color-red"},[a("el-tag",{attrs:{type:"dager",size:"mini"}},[e._v("待付款")])],1):e._e(),"1"==e.orderDetail.state&&"2"==e.orderDetail.eatType?a("div",{staticClass:"color-red"},[a("el-tag",{attrs:{type:"dager",size:"mini"}},[e._v("待接单")])],1):e._e(),"4"==e.orderDetail.state?a("div",{staticClass:"color_9"},[a("el-tag",{attrs:{type:"info",size:"mini"}},[e._v("已取消")])],1):e._e(),"5"==e.orderDetail.state?a("div",{staticClass:"color_9"},[a("el-tag",{attrs:{type:"info",size:"mini"}},[e._v("已退款")])],1):e._e()]):e._e(),"4"==e.type||"5"==e.type?a("div",[a("span",{staticStyle:{color:"#489620"}},[a("el-tag",{attrs:{type:"success",size:"mini"}},[e._v("已完成")])],1)]):e._e()])]),"2"==e.type?a("div",{staticClass:"flex pad_lr_10 bor_b_df5 lh40"},[a("div",{staticClass:"seeLeft"},[e._v("就餐时间:")]),e.orderDetail.completeAt&&e.orderDetail.payAt?a("div",[e._v(" "+e._s(e.timeStamp(e.orderDetail.completeAt-e.orderDetail.receiptAt))+" ")]):e._e()]):e._e(),"2"==e.type||"3"==e.type?a("div",{staticClass:"flex pad_lr_10 bor_b_df5 lh40"},[a("div",{staticClass:"seeLeft"},[e._v("就餐模式:")]),a("div",{staticClass:"flex"},["1"==e.orderDetail.eatType?a("div",[e._v("先结账后用餐")]):e._e(),"2"==e.orderDetail.eatType?a("div",[e._v("先用餐后结账")]):e._e()])]):e._e(),"3"==e.type?a("div",{staticClass:"flex pad_lr_10 bor_b_df5 lh40"},[a("div",{staticClass:"seeLeft"},[e._v("消费方式:")]),a("div",["1"==e.orderDetail.isOut?a("div",{staticClass:"type2"},[e._v("店内就餐")]):e._e(),"2"==e.orderDetail.isOut?a("div",{staticClass:"type2"},[e._v("打包带走")]):e._e()])]):e._e(),"1"==e.type?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.receivedName)+" "+e._s(e.orderDetail.receivedTel))])]):e._e(),"1"==e.type?a("div",{staticClass:"flex pad_lr_10 bor_b_df5 lh40"},[a("div",{staticClass:"seeLeft flex-g-0"},[e._v("配送地址:")]),a("div",{staticClass:"lh25 flex-g-1"},[e._v(e._s(e.orderDetail.receivedAddress))])]):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.userNote||"无"))])])]),1==e.type?a("div",{staticClass:"shuju_title mar_t10"},[a("div",{staticClass:"shuju_title_text"},[a("span",[e._v("配送信息")])])]):e._e(),1==e.type?a("div",{staticClass:"formBox"},[a("div",{staticClass:"flex pad_lr_10 bor_b_df5 lh40"},[a("div",{staticClass:"seeLeft"},[e._v("配送方式:")]),a("div",{staticClass:"txsq flex"},["1"==e.orderDetail.deliveryMode?a("div",{staticClass:"pad_r_60"},[e._v("商户配送")]):e._e(),"2"==e.orderDetail.deliveryMode?a("div",{staticClass:"pad_r_60"},[e._v("达达配送")]):e._e(),"3"==e.orderDetail.deliveryMode?a("div",{staticClass:"pad_r_60"},[e._v("点我达配送")]):e._e(),"4"==e.orderDetail.deliveryMode?a("div",{staticClass:"pad_r_60"},[e._v("码科配送")]):e._e(),"5"==e.orderDetail.deliveryMode?a("div",{staticClass:"pad_r_60"},[e._v("顺丰配送")]):e._e(),"6"==e.orderDetail.deliveryMode?a("div",{staticClass:"pad_r_60"},[e._v("蜂鸟配送")]):e._e(),"7"==e.orderDetail.deliveryMode?a("div",{staticClass:"pad_r_60"},[e._v("闪送配送")]):e._e(),"10"==e.orderDetail.deliveryMode?a("div",{staticClass:"pad_r_60"},[e._v("自提")]):e._e()])]),e.orderDetail.deliveryInfo&&e.orderDetail.deliveryInfo.riderName?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.deliveryInfo.riderName))])]):e._e(),e.orderDetail.deliveryInfo&&e.orderDetail.deliveryInfo.riderTel?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.deliveryInfo.riderTel))])]):e._e()]):e._e()]),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"},["4"!=e.type&&"5"!=e.type?a("div",{staticClass:"flex pad_lr_10 bor_b_df5 lh40"},[a("div",{staticClass:"seeLeft"},[e._v("商品价格:")]),a("div",{staticClass:"wei color-green"},[e._v("+¥"+e._s(e.orderDetail.originMoney)),"1"==e.type?a("span",{staticClass:"color_9"},[e._v("(注:商品折扣:¥"+e._s(e.orderDetail.vipDiscount)+")")]):e._e()])]):e._e(),"1"==e.type?a("div",{staticClass:"flex pad_lr_10 bor_b_df5 lh40"},[a("div",{staticClass:"seeLeft"},[e._v("包装费:")]),a("div",{staticClass:"wei color-green"},[e._v("+¥"+e._s(e.orderDetail.boxMoney))])]):e._e(),"1"==e.type?a("div",{staticClass:"flex pad_lr_10 bor_b_df5 lh40"},[a("div",{staticClass:"seeLeft"},[e._v("配送费:")]),a("div",{staticClass:"wei color-green"},[e._v("+¥"+e._s(e.orderDetail.deliveryMoney))])]):e._e(),"4"!=e.type&&"5"!=e.type?a("div",{staticClass:"flex pad_lr_10 bor_b_df5 lh40"},[a("div",{staticClass:"seeLeft"},[e._v("优惠:")]),a("div",{staticClass:"wei color-red"},[e._v("-¥"+e._s(e.orderDetail.discountMoney)),a("span",{staticClass:"color_9"},[e._v("(注:满减:¥"+e._s(e.orderDetail.preferentialMoney)+",优惠券:¥"+e._s(e.orderDetail.couponPreferential)+")")])])]):e._e(),a("div",{staticClass:"flex pad_lr_10 bor_b_df5 lh40"},[a("div",{staticClass:"seeLeft"},[e._v("平台服务费:")]),a("div",{staticClass:"wei color-red"},[e._v("-¥"+e._s(e.orderDetail.serviceMoney)),"1"==e.type?a("span",{staticClass:"color_9"},[e._v("(注:商品:¥"+e._s(e.orderDetail.serviceGoodMoney)+",包装费:¥"+e._s(e.orderDetail.serviceBoxMoney)+",配送费:¥"+e._s(e.orderDetail.serviceDeliveryMoney)+")")]):e._e()])]),"4"!=e.type&&"5"!=e.type?a("div",{staticClass:"flex pad_lr_10 bor_b_df5 lh40"},[a("div",{staticClass:"seeLeft"},[e._v("平台补贴:")]),a("div",{staticClass:"wei color-green"},[e._v("+¥"+e._s(e.orderDetail.subsidy))])]):e._e(),a("div",{staticClass:"flex pad_lr_10 bor_b_df5 lh40"},[a("div",{staticClass:"seeLeft"},[e._v("商户实际收入:")]),a("div",{staticClass:"wei color-green"},[e._v("+¥"+e._s(e.orderDetail.storeActualMoney)),a("span",{staticClass:"color-red"},[e._v("(本单顾客实际支付:¥"+e._s(e.orderDetail.money)+")")])])])]),"4"!=e.type&&"5"!=e.type?a("div",{staticClass:"shuju_title mar_t10"},[a("div",{staticClass:"shuju_title_text"},[a("span",[e._v("商品信息")])])]):e._e(),"4"!=e.type&&"5"!=e.type?a("div",{staticClass:"formBox"},[a("el-table",{staticClass:"tablecenter",staticStyle:{width:"100%"},attrs:{data:e.orderDetail.goodsArr,stripe:"",height:"300"}},[a("el-table-column",{attrs:{prop:"name",label:"商品名称"}}),a("el-table-column",{attrs:{prop:"goodsId",label:"商品ID"}}),a("el-table-column",{attrs:{prop:"num",label:"数量"}}),a("el-table-column",{attrs:{prop:"money",label:"小计(元)"}})],1)],1):e._e()])])])],1)])],1)},s=[],i=(a("96cf"),a("1da1")),n=a("48fb"),l={name:"labelSave",created:function(){},data:function(){return{form:{id:"",name:"",sort:"1",color:"#ed4014"},orderDetail:{},title:"",type:"",dialogFormVisible:!1,list:[]}},components:{},methods:{showEdit:function(e,t){var a=this;return Object(i["a"])(regeneratorRuntime.mark((function r(){var s,i;return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(!e){r.next=8;break}return a.title="编辑",a.type=t,r.next=5,Object(n["k"])({outTradeNo:e,type:t});case 5:s=r.sent,i=s.data,a.orderDetail=i;case 8:a.dialogFormVisible=!0;case 9:case"end":return r.stop()}}),r)})))()},close:function(){this.$refs["form"].resetFields(),this.form=this.$options.data().form,this.dialogFormVisible=!1},timeStamp:function(e){var t=parseInt(e)+"秒";if(parseInt(e)>60){var a=parseInt(e)%60,r=parseInt(e/60);if(t=r+"分"+a+"秒",r>60){r=parseInt(e/60)%60;var s=parseInt(parseInt(e/60)/60);if(t=s+"小时"+r+"分"+a+"秒",s>24){s=parseInt(parseInt(e/60)/60)%24;var i=parseInt(parseInt(parseInt(e/60)/60)/24);t=i+"天"+s+"小时"+r+"分"+a+"秒"}}}return t},save:function(){var e=this;this.$refs["form"].validate(function(){var t=Object(i["a"])(regeneratorRuntime.mark((function t(a){var r,s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!a){t.next=10;break}return t.next=3,labelSave(e.form);case 3:r=t.sent,s=r.msg,e.$baseMessage(s,"success"),e.$emit("fetchData"),e.close(),t.next=11;break;case 10:return t.abrupt("return",!1);case 11:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())}}},o=l,c=(a("199c"),a("2877")),d=Object(c["a"])(o,r,s,!1,null,null,null);t["a"]=d.exports},"9cde":function(e,t,a){"use strict";a.d(t,"F",(function(){return s})),a.d(t,"n",(function(){return i})),a.d(t,"z",(function(){return n})),a.d(t,"a",(function(){return l})),a.d(t,"x",(function(){return o})),a.d(t,"J",(function(){return c})),a.d(t,"l",(function(){return d})),a.d(t,"H",(function(){return u})),a.d(t,"p",(function(){return _})),a.d(t,"C",(function(){return v})),a.d(t,"K",(function(){return f})),a.d(t,"I",(function(){return p})),a.d(t,"q",(function(){return m})),a.d(t,"v",(function(){return h})),a.d(t,"D",(function(){return b})),a.d(t,"b",(function(){return g})),a.d(t,"e",(function(){return C})),a.d(t,"c",(function(){return y})),a.d(t,"d",(function(){return x})),a.d(t,"G",(function(){return w})),a.d(t,"o",(function(){return D})),a.d(t,"t",(function(){return I})),a.d(t,"i",(function(){return j})),a.d(t,"g",(function(){return O})),a.d(t,"h",(function(){return S})),a.d(t,"j",(function(){return k})),a.d(t,"A",(function(){return M})),a.d(t,"k",(function(){return z})),a.d(t,"s",(function(){return N})),a.d(t,"u",(function(){return R})),a.d(t,"y",(function(){return L})),a.d(t,"B",(function(){return $})),a.d(t,"f",(function(){return A})),a.d(t,"r",(function(){return T})),a.d(t,"m",(function(){return B})),a.d(t,"w",(function(){return P})),a.d(t,"E",(function(){return E}));var r=a("b775");function s(e){return Object(r["a"])({url:"channel/in-store/save-area",method:"post",data:e})}function i(e){return Object(r["a"])({url:"channel/in-store/save-area",method:"get",params:e})}function n(e){return Object(r["a"])({url:"channel/in-store/modify-area",method:"post",data:e})}function l(e){return Object(r["a"])({url:"channel/in-store/area-list",method:"get",params:e})}function o(e){return Object(r["a"])({url:"channel/in-store/goods-type",method:"get",params:e})}function c(e){return Object(r["a"])({url:"channel/in-store/table-list",method:"get",params:e})}function d(e){return Object(r["a"])({url:"channel/in-store/get-area",method:"get",params:e})}function u(e){return Object(r["a"])({url:"channel/in-store/save-table",method:"post",data:e})}function _(e){return Object(r["a"])({url:"channel/in-store/save-table",method:"get",params:e})}function v(e){return Object(r["a"])({url:"channel/in-store/modify-table",method:"post",data:e})}function f(e){return Object(r["a"])({url:"channel/in-store/type-list",method:"get",params:e})}function p(e){return Object(r["a"])({url:"channel/in-store/save-type",method:"post",data:e})}function m(e){return Object(r["a"])({url:"channel/in-store/save-type",method:"get",params:e})}function h(e){return Object(r["a"])({url:"channel/in-store/get-type",method:"get",params:e})}function b(e){return Object(r["a"])({url:"channel/in-store/modify-type",method:"post",data:e})}function g(e){return Object(r["a"])({url:"channel/in-store/batch-table",method:"post",data:e})}function C(e){return Object(r["a"])({url:"channel/in-store/cashier-statistics",method:"get",params:e})}function y(e){return Object(r["a"])({url:"channel/in-store/cashier-order-list",method:"get",params:e})}function x(e){return Object(r["a"])({url:"channel/in-store/cashier-print",method:"post",data:e})}function w(e){return Object(r["a"])({url:"channel/in-store/save-code",method:"post",data:e})}function D(e){return Object(r["a"])({url:"channel/in-store/save-code",method:"get",params:e})}function I(e){return Object(r["a"])({url:"channel/in-store/get-table",method:"get",params:e})}function j(e){return Object(r["a"])({url:"channel/in-store/establish-code",method:"post",data:e})}function O(e){return Object(r["a"])({url:"channel/in-store/code-list",method:"get",params:e})}function S(e){return Object(r["a"])({url:"channel/in-store/del-code",method:"post",data:e})}function k(e){return Object(r["a"])({url:"channel/in-store/fast-order-list",method:"get",params:e})}function M(e){return Object(r["a"])({url:"channel/in-store/modify-fast-order",method:"post",data:e})}function z(e){return Object(r["a"])({url:"channel/screen/fast-screen",method:"post",data:e})}function N(e){return Object(r["a"])({url:"channel/in-store/get-store-code",method:"get",params:e})}function R(e){return Object(r["a"])({url:"channel/in-store/table-order",method:"get",params:e})}function L(e){return Object(r["a"])({url:"channel/in-store/in-store-order-list",method:"get",params:e})}function $(e){return Object(r["a"])({url:"channel/in-store/modify-in-store-order",method:"post",data:e})}function A(e){return Object(r["a"])({url:"channel/in-store/clean-table",method:"post",data:e})}function T(e){return Object(r["a"])({url:"channel/in-store/statistics",method:"get",params:e})}function B(e){return Object(r["a"])({url:"channel/pay-vip/order-statistics",method:"get",params:e})}function P(e){return Object(r["a"])({url:"channel/pay-vip/order-list",method:"get",params:e})}function E(e){return Object(r["a"])({url:"channel/in-store/out-order-list",method:"get",params:e})}}}]);