(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-8b9a34f6"],{"2e83":function(t,e,a){"use strict";a.d(e,"a",(function(){return o}));a("28a5");var r=a("8122"),i=a("e8ae"),s=a.n(i),n=a("21a6");function o(t,e,a,i,o,l){var d,c=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],u=1,_=new s.a.Workbook,m=t.length;function p(t){var e=Array.isArray(t)?t[0]:t,a=Array.isArray(t)?t[1]:{};d=_.addWorksheet(e,a)}function v(t,e){if(!Object(r["isEmpty"])(t)){t=Array.isArray(t)?t:t.split(",");for(var a=0;ar)&&d.mergeCells(C(i)+t+":"+C(i)+e)}function w(t){if(!Object(r["isEmpty"])(t))if(Array.isArray(t))for(var e=0;e0?a("el-tabs",{on:{"tab-click":function(e){t.getList(1),t.getCardList()}},model:{value:t.tableFrom.order_type,callback:function(e){t.$set(t.tableFrom,"order_type",e)},expression:"tableFrom.order_type"}},t._l(t.headeNum,(function(t,e){return a("el-tab-pane",{key:e,attrs:{name:t.order_type.toString(),label:t.title+"("+t.count+")"}})})),1):t._e(),t._v(" "),a("cards-data",{attrs:{"card-lists":t.cardLists}})],1),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticClass:"table",staticStyle:{width:"100%"},attrs:{data:t.tableData.data,size:"mini","highlight-current-row":"","cell-class-name":t.addTdClass}},[a("el-table-column",{attrs:{type:"expand"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-form",{staticClass:"demo-table-expand",attrs:{"label-position":"left",inline:""}},[a("el-form-item",{attrs:{label:"商品总价:"}},[a("span",[t._v(t._s(t._f("filterEmpty")(e.row.total_price)))])]),t._v(" "),a("el-form-item",{attrs:{label:"下单时间:"}},[a("span",[t._v(t._s(t._f("filterEmpty")(e.row.create_time)))])]),t._v(" "),a("el-form-item",{attrs:{label:"用户备注:"}},[a("span",[t._v(t._s(t._f("filterEmpty")(e.row.mark)))])]),t._v(" "),a("el-form-item",{attrs:{label:"商家备注:"}},[a("span",[t._v(t._s(t._f("filterEmpty")(e.row.remark)))])]),t._v(" "),a("el-form-item",{attrs:{label:"总单号:"}},[a("span",[t._v(t._s(e.row.groupOrder?e.row.groupOrder.group_order_sn:""))])])],1)]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"订单编号","min-width":"170"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{staticStyle:{display:"block"},domProps:{textContent:t._s(e.row.order_sn)}}),t._v(" "),a("span",{directives:[{name:"show",rawName:"v-show",value:e.row.is_del>0,expression:"scope.row.is_del > 0"}],staticStyle:{color:"#ED4014",display:"block"}},[t._v("用户已删除")])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"订单类型","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(1==e.row.is_virtual?"虚拟订单":0==e.row.order_type?"普通订单":"核销订单"))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"活动类型","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[4!=e.row.activity_type?a("span",[t._v(t._s(1===e.row.activity_type?"秒杀":2===e.row.activity_type?"预售":3===e.row.activity_type?"助力":"--"))]):a("span",[t._v("拼团订单 "),e.row.groupUser&&e.row.groupUser.groupBuying?a("span",[t._v("-"+t._s(t._f("activityOrderStatus")(e.row.groupUser.groupBuying.status)))]):t._e()])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"real_name",label:"收货人/订购人","min-width":"120"}}),t._v(" "),a("el-table-column",{attrs:{label:"商户名称","min-width":"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.merchant?e.row.merchant.mer_name:""))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"mer_name",label:"商户类别","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.merchant?a("span",{staticClass:"spBlock"},[t._v(t._s(e.row.merchant.is_trader?"自营":"非自营"))]):t._e()]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"商品信息","min-width":"330"},scopedSlots:t._u([{key:"default",fn:function(e){return t._l(e.row.orderProduct,(function(e,r){return a("div",{key:r,staticClass:"tabBox acea-row row-middle"},[a("div",{staticClass:"demo-image__preview"},[a("el-image",{attrs:{src:e.cart_info.product.image,"preview-src-list":[e.cart_info.product.image]}})],1),t._v(" "),a("span",{staticClass:"tabBox_tit"},[t._v(t._s(e.cart_info.product.store_name+" | ")+t._s(e.cart_info.productAttr.sku))]),t._v(" "),a("span",{staticClass:"tabBox_pice"},[t._v("\n "+t._s("¥"+e.cart_info.productAttr.price+" x "+e.product_num)+"\n "),e.refund_num0?a("em",{staticStyle:{color:"red","font-style":"normal"}},[t._v("(-"+t._s(e.product_num-e.refund_num)+")")]):t._e()])])}))}}])}),t._v(" "),a("el-table-column",{attrs:{label:"实际支付","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.pay_price))]),t._v(" "),e.row.finalOrder?a("p",[t._v("尾款:"+t._s(e.row.finalOrder.pay_price))]):t._e()]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"订单佣金","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s((parseFloat(e.row.extension_one)+parseFloat(e.row.extension_two)+parseFloat(e.row.refund_extension_one)+parseFloat(e.row.refund_extension_two)).toFixed(2)))]),t._v(" "),e.row.refund_extension_one>0||e.row.refund_extension_two>0?a("em",{staticStyle:{color:"red","font-style":"normal"}},[t._v("(-"+t._s((parseFloat(e.row.refund_extension_one)+parseFloat(e.row.refund_extension_two)).toFixed(2))+")")]):t._e()]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"支付类型","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[1===e.row.paid?a("span",[t._v(t._s(t._f("orderPayType")(e.row.pay_type)))]):a("span",[t._v("--")])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"支付状态","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(0==e.row.paid?"未支付":"已支付"))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"订单状态","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[0===e.row.is_del?a("span",[0===e.row.paid?a("span",[t._v("待付款")]):a("span",[0===e.row.order_type||2===e.row.order_type?a("span",[t._v(t._s(t._f("orderStatusFilter")(e.row.status)))]):a("span",[t._v(t._s(t._f("takeOrderStatusFilter")(e.row.status)))])])]):a("span",[t._v("已删除")])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"serviceScore",label:"下单时间","min-width":"130"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.create_time))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"推广人","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.spread&&e.row.spread.nickname||"无"))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"上级推广人","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.TopSpread&&e.row.TopSpread.nickname||"无"))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作","min-width":"80",fixed:"right",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._l(e.row.orderProduct,(function(r,i){return a("span",{key:i},[t.orderFilter(e.row)?a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.onRefundDetail(e.row.order_sn)}}},[t._v("查看退款单")]):t._e()],1)})),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.onOrderDetails(e.row.order_id)}}},[t._v("详情")])]}}])})],1),t._v(" "),a("div",{staticClass:"block"},[a("el-pagination",{attrs:{"page-sizes":[20,40,60,80],"page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"total, sizes, prev, pager, next, jumper",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1),t._v(" "),a("file-list",{ref:"exportList"}),t._v(" "),a("details-from",{ref:"orderDetail"})],1)},i=[],s=a("c7eb"),n=(a("96cf"),a("1da1")),o=(a("ac6a"),a("f8b7")),l=a("c4c8"),d=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[t.dialogVisible?r("el-dialog",{attrs:{title:"订单信息",visible:t.dialogVisible,width:"700px"},on:{"update:visible":function(e){t.dialogVisible=e}}},[r("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}]},[t.orderDatalist?r("div",{staticClass:"description"},[r("div",{staticClass:"title"},[t._v("收货信息")]),t._v(" "),r("div",{staticClass:"acea-row"},[r("div",{staticClass:"description-term"},[t._v("用户昵称:"+t._s(t.orderDatalist.user.nickname))]),t._v(" "),r("div",{staticClass:"description-term"},[t._v("收货人/订购人:"+t._s(t.orderDatalist.real_name))]),t._v(" "),r("div",{staticClass:"description-term"},[t._v("联系电话:"+t._s(t.orderDatalist.user_phone))]),t._v(" "),r("div",{staticClass:"description-term"},[t._v("收货地址:"+t._s(t.orderDatalist.user_address))])]),t._v(" "),r("el-divider"),t._v(" "),r("div",{staticClass:"title"},[t._v("订单信息")]),t._v(" "),r("div",{staticClass:"acea-row"},[r("div",{staticClass:"description-term"},[t._v("订单编号:"+t._s(t.orderDatalist.order_sn))]),t._v(" "),0!==t.orderDatalist.order_type||t.orderDatalist.pay_time?t._e():r("div",{staticClass:"description-term"},[t._v("订单状态:待付款")]),t._v(" "),0===t.orderDatalist.order_type&&t.orderDatalist.pay_time?r("div",{staticClass:"description-term"},[t._v("订单状态:"+t._s(t._f("orderStatusFilter")(t.orderDatalist.status)))]):t._e(),t._v(" "),r("div",{staticClass:"description-term"},[t._v("商品总数:"+t._s(t.orderDatalist.total_num))]),t._v(" "),r("div",{staticClass:"description-term"},[t._v("商品总价:"+t._s(t.orderDatalist.total_price))]),t._v(" "),r("div",{staticClass:"description-term"},[t._v("交付邮费:"+t._s(t.orderDatalist.pay_postage))]),t._v(" "),r("div",{staticClass:"description-term"},[t._v("优惠券金额:"+t._s(t.orderDatalist.coupon_price))]),t._v(" "),r("div",{staticClass:"description-term"},[t._v("实际支付:"+t._s(t.orderDatalist.finalOrder?parseFloat(t.orderDatalist.finalOrder.pay_price)+parseFloat(t.orderDatalist.pay_price):t.orderDatalist.pay_price))]),t._v(" "),t.orderDatalist.integral>0?r("div",{staticClass:"description-term"},[t._v("积分抵扣:使用了"+t._s(t.orderDatalist.integral)+"个积分,抵扣了"+t._s(t.orderDatalist.integral_price)+"元")]):t._e(),t._v(" "),t.orderDatalist.give_integral>0?r("div",{staticClass:"description-term"},[t._v("赠送积分:"+t._s(t.orderDatalist.give_integral)+"个")]):t._e(),t._v(" "),r("div",{staticClass:"description-term"},[t._v("创建时间:"+t._s(t.orderDatalist.create_time))]),t._v(" "),r("div",{staticClass:"description-term"},[t._v("支付方式:"+t._s(t._f("payTypeFilter")(t.orderDatalist.pay_type)))]),t._v(" "),r("div",{staticClass:"description-term"},[t._v("\n 一级佣金:"+t._s(parseFloat(t.orderDatalist.extension_one)+parseFloat(t.orderDatalist.refund_extension_one))+"\n "),t.orderDatalist.refund_extension_one>0?r("em",{staticStyle:{color:"red","font-style":"normal"}},[t._v("(-"+t._s(t.orderDatalist.refund_extension_one)+")")]):t._e()]),t._v(" "),r("div",{staticClass:"description-term"},[t._v("\n 二级佣金:"+t._s(parseFloat(t.orderDatalist.extension_two)+parseFloat(t.orderDatalist.refund_extension_two))+"\n "),t.orderDatalist.refund_extension_two>0?r("em",{staticStyle:{color:"red","font-style":"normal"}},[t._v("(-"+t._s(t.orderDatalist.refund_extension_two)+")")]):t._e()]),t._v(" "),t.orderDatalist.svip_discount?r("div",{staticClass:"description-term"},[t._v("SVIP商品价优惠: "+t._s(t.orderDatalist.svip_discount))]):t._e(),t._v(" "),r("div",{staticClass:"description-term"},[t._v("商家备注:"+t._s(t.orderDatalist.remark))])]),t._v(" "),[r("el-divider"),t._v(" "),r("div",{staticClass:"title"},[t._v("操作记录")]),t._v(" "),r("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.LogLoading,expression:"LogLoading"}],staticStyle:{width:"100%"},attrs:{border:"",data:t.tableDataLog.data}},[r("el-table-column",{attrs:{prop:"order_id",align:"center",label:"订单ID","min-width":"80"}}),t._v(" "),r("el-table-column",{attrs:{prop:"change_message",label:"操作记录",align:"center","min-width":"280"}}),t._v(" "),r("el-table-column",{attrs:{prop:"change_time",label:"操作时间",align:"center","min-width":"280"}})],1),t._v(" "),r("div",{staticClass:"block"},[r("el-pagination",{attrs:{"page-sizes":[20,40,60,80],"page-size":t.tableFromLog.limit,"current-page":t.tableFromLog.page,layout:"total, sizes, prev, pager, next, jumper",total:t.tableDataLog.total},on:{"size-change":t.handleSizeChangeLog,"current-change":t.pageChangeLog}})],1)],t._v(" "),"1"===t.orderDatalist.delivery_type?[r("el-divider"),t._v(" "),r("div",{staticClass:"title"},[t._v("物流信息")]),t._v(" "),r("div",{staticClass:"acea-row"},[r("div",{staticClass:"description-term"},[t._v("快递公司:"+t._s(t.orderDatalist.delivery_name))]),t._v(" "),r("div",{staticClass:"description-term"},[t._v("\n 快递单号:"+t._s(t.orderDatalist.delivery_id)+"\n "),r("el-button",{staticStyle:{"margin-left":"5px"},attrs:{type:"primary",size:"mini"},on:{click:t.openLogistics}},[t._v("物流查询")])],1)])]:t._e(),t._v(" "),"2"===t.orderDatalist.delivery_type?[r("el-divider"),t._v(" "),r("div",{staticClass:"title"},[t._v("配送信息")]),t._v(" "),r("div",{staticClass:"acea-row"},[r("div",{staticClass:"description-term"},[t._v("送货人姓名:"+t._s(t.orderDatalist.delivery_name))]),t._v(" "),r("div",{staticClass:"description-term"},[t._v("送货人电话:"+t._s(t.orderDatalist.delivery_id))])])]:t._e(),t._v(" "),t.orderDatalist.mark?[r("el-divider"),t._v(" "),r("div",{staticClass:"title"},[t._v("用户备注")]),t._v(" "),r("div",{staticClass:"acea-row"},[r("div",{staticClass:"description-term"},[t._v(t._s(t.orderDatalist.mark))])])]:t._e()],2):t._e()])]):t._e(),t._v(" "),t.dialogLogistics?r("el-dialog",{attrs:{title:"物流查询",visible:t.dialogLogistics,width:"350px","before-close":t.handleClose},on:{"update:visible":function(e){t.dialogLogistics=e}}},[r("div",{staticClass:"logistics acea-row row-top"},[r("div",{staticClass:"logistics_img"},[r("img",{attrs:{src:a("bd9b")}})]),t._v(" "),r("div",{staticClass:"logistics_cent"},[r("span",[t._v("物流公司:"+t._s(t.orderDatalist.delivery_name))]),t._v(" "),r("span",[t._v("物流单号:"+t._s(t.orderDatalist.delivery_id))])])]),t._v(" "),r("div",{staticClass:"acea-row row-column-around trees-coadd"},[r("div",{staticClass:"scollhide"},[r("el-timeline",t._l(t.result,(function(e,a){return r("el-timeline-item",{key:a},[r("p",{staticClass:"time",domProps:{textContent:t._s(e.time)}}),t._v(" "),r("p",{staticClass:"content",domProps:{textContent:t._s(e.status)}})])})),1)],1)])]):t._e()],1)},c=[],u={name:"OrderDetail",data:function(){return{dialogVisible:!1,dialogLogistics:!1,loading:!1,order_id:"",tableFromLog:{page:1,limit:10},tableDataLog:{data:[],total:0},LogLoading:!1,result:[],orderDatalist:null}},mounted:function(){},methods:{onOrderDetails:function(t){var e=this;this.order_id=t,this.loading=!0,Object(o["k"])(t).then((function(t){e.orderDatalist=t.data,e.loading=!1})).catch((function(t){var a=t.message;e.loading=!1,e.$message.error(a)}))},openLogistics:function(){this.getOrderData(),this.dialogLogistics=!0},handleClose:function(){this.dialogLogistics=!1},onOrderLog:function(t){var e=this;this.dialogVisible=!0,this.LogLoading=!0,Object(o["m"])(t,this.tableFromLog).then((function(t){e.tableDataLog.data=t.data.list,e.tableDataLog.total=t.data.count,e.LogLoading=!1})).catch((function(t){e.$message.error(t.message),e.LogLoading=!1}))},pageChangeLog:function(t){this.tableFromLog.page=t,this.onOrderLog(this.order_id)},handleSizeChangeLog:function(t){this.tableFromLog.limit=t,this.onOrderLog(this.order_id)},getOrderData:function(){var t=this;Object(o["i"])(this.orderDatalist.order_id).then(function(){var e=Object(n["a"])(Object(s["a"])().mark((function e(a){return Object(s["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.result=a.data;case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.$message.error(e.message)}))}}},_=u,m=(a("7baf"),a("2877")),p=Object(m["a"])(_,d,c,!1,null,"4016b250",null),v=p.exports,f=a("30dc"),g=a("2e83"),h=a("0f56"),b=a("e572"),y={components:{detailsFrom:v,cardsData:h["a"],fileList:f["a"]},data:function(){return{orderId:0,tableData:{data:[],total:0},activity:[{name:"普通订单",type:0},{name:"秒杀订单",type:1},{name:"预售订单",type:2},{name:"助力订单",type:3},{name:"拼团订单",type:4}],listLoading:!0,tableFrom:{order_sn:this.$route.query.order_sn?this.$route.query.order_sn:"",group_order_sn:"",keywords:"",username:"",store_name:"",status:"",date:"",mer_id:"",page:1,limit:20,is_trader:"",activity_type:""},orderChartType:{},headeNum:[],timeVal:[],fromList:b["a"],selectionList:[],ids:"",tableFromLog:{page:1,limit:10},tableDataLog:{data:[],total:0},LogLoading:!1,dialogVisible:!1,cardLists:[],orderDatalist:null,merSelect:[]}},mounted:function(){this.$route.query.hasOwnProperty("order_sn")?this.tableFrom.order_sn=this.$route.query.order_sn:this.tableFrom.order_sn="",this.headerList(),this.getMerSelect(),this.getCardList(),this.getList("")},activated:function(){this.$route.query.hasOwnProperty("order_sn")?this.tableFrom.order_sn=this.$route.query.order_sn:this.tableFrom.order_sn="",this.headerList(),this.getMerSelect(),this.getCardList(),this.getList("")},methods:{onRefundDetail:function(t){console.log(t,"sn"),this.$router.push({path:"refund",query:{sn:t}})},orderFilter:function(t){var e=!1;return t.orderProduct.forEach((function(t){t.refund_num>0&&t.refund_num0&&1==t.row.paid))return" ";for(var e=0;e0&&t.row.orderProduct[e].refund_num