(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d225482"],{e474:function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-list-content"},[a("cl-crud",{staticClass:"liu-crud-wrap",on:{load:e.onLoad},scopedSlots:e._u([{key:"slot-tabs",fn:function(t){t.scope;return[a("el-tabs",{staticClass:"liu-tabs",attrs:{type:"border-card"},on:{"tab-click":e.handleClick},model:{value:e.tabIndex,callback:function(t){e.tabIndex=t},expression:"tabIndex"}},e._l(e.tabsData,(function(e,t){return a("el-tab-pane",{key:t,attrs:{label:e.text,name:e.key}})})),1)]}},{key:"table-column-bookName",fn:function(t){var n=t.scope;return[a("div",{staticClass:"flex-center"},[a("cl-avatar",{attrs:{shape:"square",size:40,src:e._f("default_avatar")(n.row.bookAvatar)}}),a("div",{staticClass:"app-margin-left-10"},[e._v(e._s(n.row.bookName))]),a("div",{staticClass:"app-margin-left-10"},[e._v(e._s(n.row.bookMobile))])],1)]}},{key:"table-column-receiveUserName",fn:function(t){var n=t.scope;return[a("div",{staticClass:"flex-center"},[a("div",{staticClass:"app-margin-left-10"},[e._v(e._s(n.row.receiveUserName))]),a("div",{staticClass:"app-margin-left-10"},[e._v(e._s(n.row.receiveMobile))])])]}},{key:"table-column-status",fn:function(t){var n=t.scope;return[a("span",[e._v(e._s(e._f("constantfilter")(n.row.status,"ORDER_STATUS")))])]}}])})],1)},r=[],s=(a("63ff"),a("e5af")),l={data:function(){return{app:null,tabIndex:"-1",tabsData:[{text:"全部",key:"-1",val:0},{text:"待付款",key:"0",val:0},{text:"待配送",key:"1",val:0},{text:"配送中",key:"2",val:0},{text:"已完结",key:"5",val:0}]}},mounted:function(){},methods:{handleClick:function(){this.app.refresh({status:this.tabIndex})},onLoad:function(e){var t=this,a=e.ctx,n=e.app;this.app=n,a.service(this.$service.sassOrder).set("table",{columns:[{prop:"orderSn",label:"单号",align:"center"},{prop:"bookName",label:"订花人",align:"center","min-width":"120px"},{prop:"receiveUserName",label:"收花人",align:"center","min-width":"150px"},{prop:"prePrice",label:"总价",align:"center"},{prop:"actPrice",label:"实付款",align:"center",emptyText:"无"},{prop:"sendTime",label:"送达时间",align:"center",emptyText:"无"},{prop:"status",label:"状态",align:"center",emptyText:"无"},{prop:"sendNum",label:"编号",align:"center",emptyText:"无"}],op:{visible:!1,props:{width:150,align:"center",fixed:"right",label:"操作"},layout:[]}}).set("layout",[["slot-tabs"],["flex1","refresh-btn"],["data-table"],["flex1","pagination"]]).on("refresh",function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(a,n){var r,s,l;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=n.next,e.next=3,r(a);case 3:if(s=e.sent,l=s.asset,!t.$util.isEmpty(l)){e.next=7;break}return e.abrupt("return",!1);case 7:t.tabsData[0].val=l.totalOrder,t.tabsData[1].val=l.unPayOrder,t.tabsData[2].val=l.unSendOrder,t.tabsData[3].val=l.sendingOrder,t.tabsData[4].val=l.finishOrder;case 12:case"end":return e.stop()}}),e)})));return function(t,a){return e.apply(this,arguments)}}()).done(),n.refresh()}}},i=l,o=a("5511"),c=Object(o["a"])(i,n,r,!1,null,null,null);t["default"]=c.exports}}]);