(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-bc5dc4d8"],{2702:function(e,t,r){"use strict";r("88fe")},"3a10":function(e,t,r){"use strict";r.d(t,"a",(function(){return n})),r.d(t,"b",(function(){return o})),r.d(t,"c",(function(){return l})),r.d(t,"d",(function(){return s})),r.d(t,"e",(function(){return i}));r("99af");var a=r("0c6d");function n(e,t,r){return Object(a["a"])({url:"/lejuAdmin/order/findOrdersByPage/".concat(e,"/").concat(t),method:"post",data:r})}function o(e){return Object(a["a"])({url:"/lejuAdmin/order/finishOrder/".concat(e),method:"post"})}function l(e){return Object(a["a"])({url:"/lejuAdmin/order/orderDetail/".concat(e)})}function s(e){return Object(a["a"])({url:"/lejuAdmin/order/receiveProductsForce/".concat(e),method:"post"})}function i(e){return Object(a["a"])({url:"/lejuAdmin/order/sendDone",method:"post",data:e})}},"3f88":function(e,t,r){"use strict";r.r(t);var a=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[r("el-card",{attrs:{shadow:"hover","body-style":{paddingTop:"20px",paddingBottom:"0"}}},[r("div",{staticStyle:{cursor:"pointer"},attrs:{slot:"header"},on:{click:function(t){e.isShow=!e.isShow}},slot:"header"},[r("span",[e._v("条件查询")])]),r("el-form",{directives:[{name:"show",rawName:"v-show",value:e.isShow,expression:"isShow"}],ref:"ruleForm",attrs:{model:e.searchForm,"label-width":"80px",inline:!1,size:"normal"}},[r("el-row",{attrs:{gutter:20}},[r("el-col",{attrs:{span:6,offset:0}},[r("el-form-item",{attrs:{label:"订单编号",prop:"orderSn"}},[r("el-input",{attrs:{placeholder:"请输入订单编号"},model:{value:e.searchForm.orderSn,callback:function(t){e.$set(e.searchForm,"orderSn","string"===typeof t?t.trim():t)},expression:"searchForm.orderSn"}})],1)],1),r("el-col",{attrs:{span:6,offset:0}},[r("el-form-item",{attrs:{label:"订单类型",prop:"orderType"}},[r("el-select",{attrs:{name:"orderType",clearable:"",placeholder:"订单类型"},model:{value:e.searchForm.orderType,callback:function(t){e.$set(e.searchForm,"orderType",t)},expression:"searchForm.orderType"}},e._l(e.orderTypeList,(function(e,t){return r("el-option",{key:t,attrs:{label:e.lable,value:e.value}})})),1)],1)],1),r("el-col",{attrs:{span:6,offset:0}},[r("el-form-item",{attrs:{label:"支付方式",prop:"payType"}},[r("el-select",{attrs:{name:"payType",clearable:"",placeholder:"支付方式"},model:{value:e.searchForm.payType,callback:function(t){e.$set(e.searchForm,"payType",t)},expression:"searchForm.payType"}},e._l(e.payTypeList,(function(e){return r("el-option",{key:e.id,attrs:{label:e.lable,value:e.value}})})),1)],1)],1),r("el-col",{attrs:{span:6,offset:0}},[r("el-form-item",{attrs:{label:"订单状态",prop:"status"}},[r("el-select",{attrs:{name:"status",clearable:"",placeholder:"订单状态"},model:{value:e.searchForm.status,callback:function(t){e.$set(e.searchForm,"status",t)},expression:"searchForm.status"}},e._l(e.statusList,(function(e,t){return r("el-option",{key:t,attrs:{label:e.lable,value:e.value}})})),1)],1)],1)],1),r("el-row",{attrs:{gutter:20}},[r("el-col",{attrs:{span:6,offset:18}},[r("el-form-item",[r("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.onSearch("ruleForm")}}},[e._v("查询")]),r("el-button",{on:{click:function(t){return e.onCancle("ruleForm")}}},[e._v("取消")])],1)],1)],1)],1)],1),r("el-card",[r("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)",border:"",data:e.list}},[r("el-table-column",{attrs:{align:"center",type:"index",label:"序号",width:"50",fixed:"left"}}),r("el-table-column",{attrs:{align:"center",prop:"orderSn",label:"订单编号","show-overflow-tooltip":"",width:"180"}}),r("el-table-column",{attrs:{align:"center",label:"支付方式",width:"110"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-tag",{attrs:{type:0==t.row.payType?"info":"success"}},[e._v(" "+e._s(0==t.row.payType?"未支付":1==t.row.payType?"支付宝":"微信")+" ")])]}}])}),r("el-table-column",{attrs:{align:"center",label:"订单状态",width:"160"},scopedSlots:e._u([{key:"default",fn:function(t){return[0==t.row.status?r("el-tag",{attrs:{type:"danger",effect:"dark"}},[e._v(" 待付款 ")]):e._e(),1==t.row.status?r("el-tag",{attrs:{type:"warning",effect:"light"}},[e._v(" 待发货 ")]):e._e(),2==t.row.status?r("el-tag",{attrs:{type:"info",effect:"plain"}},[e._v(" 已发货 ")]):e._e(),3==t.row.status?r("el-tag",{attrs:{type:"success",effect:"dark"}},[e._v(" 已完成 ")]):e._e(),4==t.row.status?r("el-tag",{attrs:{type:"danger",effect:"dark"}},[e._v(" 已关闭 ")]):e._e(),5==t.row.status?r("el-tag",{attrs:{type:"danger",effect:"dark"}},[e._v(" 无效订单 ")]):e._e()]}}])}),r("el-table-column",{attrs:{align:"center",prop:"createTime",label:"添加时间",width:"160"}}),r("el-table-column",{attrs:{align:"center",prop:"memberUsername",label:"用户账号",width:"160"}}),r("el-table-column",{attrs:{align:"center",label:"订单类型",width:"110"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-tag",{attrs:{type:0==t.row.payType?"success":"danger"}},[e._v(" "+e._s(0==t.row.payType?"正常订单":"秒杀订单")+" ")])]}}])}),r("el-table-column",{attrs:{align:"center",prop:"note","show-overflow-tooltip":"",label:"备注",width:"160"}}),r("el-table-column",{attrs:{align:"center",prop:"modifyTime",label:"修改时间",width:"160"}}),r("el-table-column",{attrs:{label:"操作",width:"160px",align:"center",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-button",{attrs:{type:"primary",icon:"el-icon-view",size:"mini"},on:{click:function(r){return e.checkOrder(t.row)}}},[e._v("查看订单")])]}}])})],1),r("el-pagination",{staticClass:"pagination",attrs:{background:"","current-page":e.pageInfo.start,"page-sizes":[5,10,15,20],"page-size":e.pageInfo.limit,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.SizeChange,"current-change":e.CurrentChange}})],1),r("copyright")],1)},n=[],o=r("1da1"),l=(r("159b"),r("96cf"),r("3a10")),s={name:"orderList",components:{},data:function(){return{loading:!1,isShowDec:!1,isShow:!1,list:[],pageInfo:{start:1,limit:10},orderTypeList:[{id:1,lable:"正常订单",value:"0"},{id:2,lable:"秒杀订单",value:"1"}],payTypeList:[{id:1,lable:"未支付",value:"0"},{id:2,lable:"支付宝",value:"1"},{id:3,lable:"微信",value:"2"}],statusList:[{id:1,lable:"待付款",value:"0"},{id:2,lable:"待发货",value:"1"},{id:3,lable:"已发货",value:"2"},{id:4,lable:"已完成",value:"3"},{id:5,lable:"已关闭",value:"4"},{id:6,lable:"无效订单",value:"5"}],searchForm:{orderSn:"",orderType:"",payType:"",status:""},total:0}},mounted:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.findOrdersByPage();case 1:case"end":return t.stop()}}),t)})))()},methods:{checkOrder:function(e){this.$router.push({name:"orderDetail",params:{id:e.id}})},onCancle:function(e){this.$refs[e].resetFields(),this.findOrdersByPage()},onSearch:function(e){this.findOrdersByPage(),this.pageInfo.start=1,this.pageInfo.limit=10},handleError:function(e){e.icon="https://img0.baidu.com/it/u=59285992,513800291&fm=26&fmt=auto&gp=0.jpg"},findOrdersByPage:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,Object(l["a"])(e.pageInfo.start,e.pageInfo.limit,e.searchForm);case 3:if(r=t.sent,r.success){t.next=6;break}return t.abrupt("return",e.$message.error(r.message));case 6:e.loading=!1,e.total=r.data.total,e.list=r.data.rows,r.data.rows.forEach((function(e){e.icon||(e.icon="https://img0.baidu.com/it/u=59285992,513800291&fm=26&fmt=auto&gp=0.jpg")}));case 10:case"end":return t.stop()}}),t)})))()},SizeChange:function(e){this.pageInfo.limit=e,this.findOrdersByPage()},CurrentChange:function(e){this.pageInfo.start=e,this.findOrdersByPage()}}},i=s,c=(r("2702"),r("2877")),u=Object(c["a"])(i,a,n,!1,null,"0495e86c",null);t["default"]=u.exports},"88fe":function(e,t,r){}}]);