(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6f8c50d5"],{"0b65":function(t,e,a){"use strict";e["a"]={shortcuts:[{text:"今天",onClick:function(t){var e=new Date,a=new Date;a.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate())),t.$emit("pick",[a,e])}},{text:"昨天",onClick:function(t){var e=new Date,a=new Date;a.setTime(a.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-1))),e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-1))),t.$emit("pick",[a,e])}},{text:"最近7天",onClick:function(t){var e=new Date,a=new Date;a.setTime(a.getTime()-6048e5),t.$emit("pick",[a,e])}},{text:"最近30天",onClick:function(t){var e=new Date,a=new Date;a.setTime(a.getTime()-2592e6),t.$emit("pick",[a,e])}},{text:"本月",onClick:function(t){var e=new Date,a=new Date;a.setTime(a.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),1))),t.$emit("pick",[a,e])}},{text:"本年",onClick:function(t){var e=new Date,a=new Date;a.setTime(a.setTime(new Date((new Date).getFullYear(),0,1))),t.$emit("pick",[a,e])}}]}},a6a3:function(t,e,a){"use strict";a.r(e);var r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"divBox"},[a("div",{staticClass:"selCard"},[a("el-form",{ref:"searchForm",attrs:{size:"small",inline:"",model:t.tableFrom,"label-width":"85px"}},[a("el-form-item",{staticClass:"width100",attrs:{label:"订单状态:",prop:"status"}},[a("el-radio-group",{attrs:{type:"button"},on:{change:function(e){return t.getList(1)}},model:{value:t.tableFrom.status,callback:function(e){t.$set(t.tableFrom,"status",e)},expression:"tableFrom.status"}},[a("el-radio-button",{attrs:{label:""}},[t._v("全部 "+t._s(t.orderChartType.all))]),t._v(" "),a("el-radio-button",{attrs:{label:"1"}},[t._v("待付款 "+t._s(t.orderChartType.unpaid))]),t._v(" "),a("el-radio-button",{attrs:{label:"2"}},[t._v("待发货 "+t._s(t.orderChartType.unshipped))]),t._v(" "),a("el-radio-button",{attrs:{label:"3"}},[t._v("待收货 "+t._s(t.orderChartType.untake))]),t._v(" "),a("el-radio-button",{attrs:{label:"4"}},[t._v("待评价 "+t._s(t.orderChartType.unevaluate))]),t._v(" "),a("el-radio-button",{attrs:{label:"5"}},[t._v("交易完成 "+t._s(t.orderChartType.complete))]),t._v(" "),a("el-radio-button",{attrs:{label:"6"}},[t._v("已退款 "+t._s(t.orderChartType.refund))]),t._v(" "),a("el-radio-button",{attrs:{label:"7"}},[t._v("已删除 "+t._s(t.orderChartType.del))])],1)],1),t._v(" "),a("el-form-item",{attrs:{label:"时间选择:"}},[a("el-date-picker",{staticStyle:{width:"280px"},attrs:{"value-format":"yyyy/MM/dd",format:"yyyy/MM/dd",size:"small",type:"daterange",placement:"bottom-end",placeholder:"自定义时间","picker-options":t.pickerOptions},on:{change:t.onchangeTime},model:{value:t.timeVal,callback:function(e){t.timeVal=e},expression:"timeVal"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"活动类型:",prop:"activity_type"}},[a("el-select",{staticClass:"selWidth",attrs:{clearable:"",filterable:"",placeholder:"请选择"},on:{change:function(e){return t.getList(1)}},model:{value:t.tableFrom.activity_type,callback:function(e){t.$set(t.tableFrom,"activity_type",e)},expression:"tableFrom.activity_type"}},t._l(t.activity,(function(t){return a("el-option",{key:t.type,attrs:{label:t.name,value:t.type}})})),1)],1),t._v(" "),a("el-form-item",{attrs:{label:"商户名称:",prop:"mer_id"}},[a("el-select",{staticClass:"selWidth",attrs:{clearable:"",filterable:"",placeholder:"请选择"},on:{change:function(e){return t.getList(1)}},model:{value:t.tableFrom.mer_id,callback:function(e){t.$set(t.tableFrom,"mer_id",e)},expression:"tableFrom.mer_id"}},t._l(t.merSelect,(function(t){return a("el-option",{key:t.mer_id,attrs:{label:t.mer_name,value:t.mer_id}})})),1)],1),t._v(" "),a("el-form-item",{attrs:{label:"商户类别:",prop:"is_trader"}},[a("el-select",{staticClass:"selWidth",attrs:{clearable:"",placeholder:"请选择"},on:{change:function(e){return t.getList(1)}},model:{value:t.tableFrom.is_trader,callback:function(e){t.$set(t.tableFrom,"is_trader",e)},expression:"tableFrom.is_trader"}},[a("el-option",{attrs:{label:"自营",value:"1"}}),t._v(" "),a("el-option",{attrs:{label:"非自营",value:"0"}})],1)],1),t._v(" "),a("el-form-item",{attrs:{label:"商品名称:",prop:"store_name"}},[a("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入商品名称",clearable:""},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getList(1)}},model:{value:t.tableFrom.store_name,callback:function(e){t.$set(t.tableFrom,"store_name",e)},expression:"tableFrom.store_name"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"发货方式:",prop:"filter_delivery"}},[a("el-select",{staticClass:"selWidth",attrs:{placeholder:"请选择",clearable:""},on:{change:function(e){return t.getList(1)}},model:{value:t.tableFrom.filter_delivery,callback:function(e){t.$set(t.tableFrom,"filter_delivery",e)},expression:"tableFrom.filter_delivery"}},t._l(t.dliveryWayList,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1),t._v(" "),a("el-form-item",{attrs:{label:"商品类型:",prop:"filter_product"}},[a("el-select",{staticClass:"selWidth",attrs:{placeholder:"请选择",clearable:""},on:{change:function(e){return t.getList(1)}},model:{value:t.tableFrom.filter_product,callback:function(e){t.$set(t.tableFrom,"filter_product",e)},expression:"tableFrom.filter_product"}},t._l(t.productTypeList,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1),t._v(" "),a("el-form-item",{attrs:{label:"关键字:",prop:"keywords"}},[a("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入订单号/收货人/联系方式",clearable:""},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getList(1)}},model:{value:t.tableFrom.keywords,callback:function(e){t.$set(t.tableFrom,"keywords",e)},expression:"tableFrom.keywords"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"推广人:",prop:"spread_name"}},[a("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入推广人信息",clearable:""},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getList(1)}},model:{value:t.tableFrom.spread_name,callback:function(e){t.$set(t.tableFrom,"spread_name",e)},expression:"tableFrom.spread_name"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"上级推广:",prop:"top_spread_name"}},[a("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入上级推广人信息",clearable:""},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getList(1)}},model:{value:t.tableFrom.top_spread_name,callback:function(e){t.$set(t.tableFrom,"top_spread_name",e)},expression:"tableFrom.top_spread_name"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"用户信息:",prop:"username"}},[a("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入用户昵称/手机号",clearable:""},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getList(1)}},model:{value:t.tableFrom.username,callback:function(e){t.$set(t.tableFrom,"username",e)},expression:"tableFrom.username"}})],1),t._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(e){return t.getList(1)}}},[t._v("搜索")]),t._v(" "),a("el-button",{attrs:{size:"small"},on:{click:function(e){return t.searchReset()}}},[t._v("重置")])],1)],1)],1),t._v(" "),a("el-card",{staticClass:"mt14"},[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":"150"},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":"130"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},nativeOn:{click:function(a){return t.onUserDetails(e.row.uid)}}},[t._v(t._s(e.row.user&&e.row.user.nickname+"/"+e.row.uid))])]}}])}),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(1==e.row.is_virtual?"虚拟订单":0==e.row.order_type?"普通订单":"核销订单"))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"real_name",label:"收货人/订购人","min-width":"120"}}),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.merchant?e.row.merchant.mer_name:""))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"商品信息","min-width":"350"},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":"90"},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":"80"},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":"150"},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"},scopedSlots:t._u([{key:"default",fn:function(e){return[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:{background:"","page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"total, prev, pager, next, jumper",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1),t._v(" "),a("user-details",{ref:"userDetails",attrs:{drawer:t.userDrawer,uid:t.uid,isUser:!1},on:{closeDrawer:t.closeDrawer,changeDrawer:t.changeDrawer}}),t._v(" "),a("order-detail",{ref:"orderDetail",attrs:{orderId:t.orderId,drawer:t.drawer},on:{closeDrawer:t.closeDrawer,changeDrawer:t.changeDrawer}})],1)},i=[],s=a("c80c"),l=(a("96cf"),a("3b8d")),n=(a("ac6a"),a("e519")),o=a("c4c8"),c=a("a9c2"),d=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[r("el-drawer",{attrs:{"with-header":!1,size:1e3,visible:t.drawer,direction:t.direction,"before-close":t.handleClose},on:{"update:visible":function(e){t.drawer=e}}},[r("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}]},[r("div",{staticClass:"head"},[r("div",{staticClass:"full"},[r("img",{staticClass:"order_icon",attrs:{src:t.orderImg,alt:""}}),t._v(" "),r("div",{staticClass:"text"},[r("div",{staticClass:"title"},[t._v(t._s(0==t.orderDetailList.order_type?"普通订单":"核销订单"))]),t._v(" "),r("div",[r("span",{staticClass:"mr20"},[t._v("订单编号:"+t._s(t.orderDetailList.order_sn))])])])]),t._v(" "),r("ul",{staticClass:"list"},[r("li",{staticClass:"item"},[r("div",{staticClass:"title"},[t._v("订单状态")]),t._v(" "),r("div",[0!==t.orderDetailList.order_type||t.orderDetailList.pay_time?t._e():r("div",{staticClass:"value1"},[t._v("待付款")]),t._v(" "),0===t.orderDetailList.order_type&&t.orderDetailList.pay_time?r("div",{staticClass:"value1"},[r("span",[t._v(t._s(t._f("orderStatusFilter")(t.orderDetailList.status)))])]):t._e(),t._v(" "),1===t.orderDetailList.order_type&&t.orderDetailList.pay_time?r("div",{staticClass:"value1"},[r("span",[t._v(t._s(t._f("cancelOrderStatusFilter")(t.orderDetailList.status)))])]):t._e()])]),t._v(" "),r("li",{staticClass:"item"},[r("div",{staticClass:"title"},[t._v("实际支付")]),t._v(" "),r("div",[t._v("¥ "+t._s(t.orderDetailList.pay_price))])]),t._v(" "),r("li",{staticClass:"item"},[r("div",{staticClass:"title"},[t._v("支付方式")]),t._v(" "),r("div",[t._v(t._s(t._f("payTypeFilter")(t.orderDetailList.pay_type)))])]),t._v(" "),r("li",{staticClass:"item"},[r("div",{staticClass:"title"},[t._v("支付时间")]),t._v(" "),r("div",[t._v(t._s(t.orderDetailList.create_time))])])])]),t._v(" "),r("el-tabs",{attrs:{type:"border-card"},on:{"tab-click":t.tabClick},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[r("el-tab-pane",{attrs:{label:"订单信息",name:"detail"}},[r("div",{staticClass:"section"},[r("div",{staticClass:"title"},[t._v("用户信息")]),t._v(" "),r("ul",{staticClass:"list"},[r("li",{staticClass:"item"},[r("div",[t._v("用户昵称:")]),t._v(" "),r("div",{staticClass:"value"},[t._v("\n "+t._s(t.orderDetailList.user.real_name?t.orderDetailList.user.real_name:t.orderDetailList.user.nickname)+"\n ")])]),t._v(" "),r("li",{staticClass:"item"},[r("div",[t._v("用户ID:")]),t._v(" "),r("div",{staticClass:"value"},[t._v(t._s(t.orderDetailList.user.uid?t.orderDetailList.user.uid:"-"))])]),t._v(" "),r("li",{staticClass:"item"},[r("div",[t._v("绑定电话:")]),t._v(" "),r("div",{staticClass:"value"},[t._v(t._s(t.orderDetailList.user.phone?t.orderDetailList.user.phone:"-"))])])])]),t._v(" "),r("div",{staticClass:"section"},[r("div",{staticClass:"title"},[t._v("收货信息")]),t._v(" "),r("ul",{staticClass:"list"},[r("li",{staticClass:"item"},[r("div",[t._v("收货人:")]),t._v(" "),r("div",{staticClass:"value"},[t._v(t._s(t.orderDetailList.real_name?t.orderDetailList.real_name:"-"))])]),t._v(" "),r("li",{staticClass:"item"},[r("div",[t._v("收货电话:")]),t._v(" "),r("div",{staticClass:"value"},[t._v(t._s(t.orderDetailList.user_phone?t.orderDetailList.user_phone:"-"))])]),t._v(" "),r("li",{staticClass:"item"},[r("div",[t._v("收货地址:")]),t._v(" "),r("div",{staticClass:"value"},[t._v(t._s(t.orderDetailList.user_address?t.orderDetailList.user_address:"-"))])])])]),t._v(" "),r("div",{staticClass:"section"},[r("div",{staticClass:"title"},[t._v("订单信息")]),t._v(" "),r("ul",{staticClass:"list"},[r("li",{staticClass:"item"},[r("div",[t._v("创建时间:")]),t._v(" "),r("div",{staticClass:"value"},[t._v(t._s(t.orderDetailList.create_time?t.orderDetailList.create_time:"-"))])]),t._v(" "),r("li",{staticClass:"item"},[r("div",[t._v("商品总数:")]),t._v(" "),r("div",{staticClass:"value"},[t._v(t._s(t.orderDetailList.total_num?t.orderDetailList.total_num:"-"))])]),t._v(" "),r("li",{staticClass:"item"},[r("div",[t._v("实际支付:")]),t._v(" "),r("div",{staticClass:"value"},[t._v(t._s(t.orderDetailList.finalOrder?parseFloat(t.orderDetailList.finalOrder.pay_price)+parseFloat(t.orderDetailList.pay_price):t.orderDetailList.pay_price))])]),t._v(" "),r("li",{staticClass:"item"},[r("div",[t._v("优惠券金额:")]),t._v(" "),r("div",{staticClass:"value"},[t._v(t._s(t.orderDetailList.coupon_price?t.orderDetailList.coupon_price:"-"))])]),t._v(" "),t.orderDetailList.integral?r("li",{staticClass:"item"},[r("div",[t._v("积分抵扣:")]),t._v(" "),r("div",{staticClass:"value"},[t._v("使用了"+t._s(t.orderDetailList.integral)+"个积分,抵扣了"+t._s(t.orderDetailList.integral_price)+"元")])]):t._e(),t._v(" "),r("li",{staticClass:"item"},[r("div",[t._v("订单总价:")]),t._v(" "),r("div",{staticClass:"value"},[t._v(t._s(t.orderDetailList.total_price?t.orderDetailList.total_price:"-"))])]),t._v(" "),t.orderDetailList.svip_discount?r("li",{staticClass:"item"},[r("div",[t._v("会员商品优惠:")]),t._v(" "),r("div",{staticClass:"value"},[t._v(t._s(t.orderDetailList.svip_discount))])]):t._e(),t._v(" "),r("li",{staticClass:"item"},[r("div",[t._v("支付运费:")]),t._v(" "),r("div",{staticClass:"value"},[t._v(t._s(t.orderDetailList.pay_postage))])]),t._v(" "),t.orderDetailList.spread?r("li",{staticClass:"item"},[r("div",[t._v("推广人:")]),t._v(" "),r("div",{staticClass:"value"},[t._v(t._s(t.orderDetailList.spread.nickname))])]):t._e(),t._v(" "),t.orderDetailList.TopSpread?r("li",{staticClass:"item"},[r("div",[t._v("上级推广人:")]),t._v(" "),r("div",{staticClass:"value"},[t._v(t._s(t.orderDetailList.TopSpread.nickname))])]):t._e(),t._v(" "),r("li",{staticClass:"item"},[r("div",[t._v("一级佣金:")]),t._v(" "),r("div",{staticClass:"value"},[t._v("\n "+t._s(parseFloat(t.orderDetailList.extension_one)+parseFloat(t.orderDetailList.refund_extension_one))+"\n "),t.orderDetailList.refund_extension_one>0?r("em",{staticStyle:{color:"red","font-style":"normal"}},[t._v("(-"+t._s(t.orderDetailList.refund_extension_one)+")")]):t._e()])]),t._v(" "),r("li",{staticClass:"item"},[r("div",[t._v("二级佣金:")]),t._v(" "),r("div",{staticClass:"value"},[t._v("\n "+t._s(parseFloat(t.orderDetailList.extension_two)+parseFloat(t.orderDetailList.refund_extension_two))+"\n "),t.orderDetailList.refund_extension_two>0?r("em",{staticStyle:{color:"red","font-style":"normal"}},[t._v("(-"+t._s(t.orderDetailList.refund_extension_two)+")")]):t._e()])]),t._v(" "),r("li",{staticClass:"item"},[r("div",[t._v("发货方式:")]),t._v(" "),1==t.orderDetailList.order_type?r("div",{staticClass:"value"},[t._v("核销")]):r("div",{staticClass:"value"},[t._v(t._s(t._f("sendWay")(t.orderDetailList.delivery_type)))])]),t._v(" "),t.orderDetailList.spread?r("li",{staticClass:"item"},[r("div",[t._v("推广人:")]),t._v(" "),r("div",{staticClass:"value"},[t._v(t._s(t.orderDetailList.spread.nickname||"无"))])]):t._e(),t._v(" "),t.orderDetailList.TopSpread?r("li",{staticClass:"item"},[r("div",[t._v("上级推广人:")]),t._v(" "),r("div",{staticClass:"value"},[t._v(t._s(t.orderDetailList.TopSpread.nickname||"无"))])]):t._e(),t._v(" "),r("li",{staticClass:"item"},[r("div",[t._v("商品类型:")]),t._v(" "),r("div",{staticClass:"value"},[t._v(t._s(1==t.orderDetailList.is_virtual?"虚拟商品":2==t.orderDetailList.is_virtual?"卡密商品":"普通商品"))])]),t._v(" "),r("li",{staticClass:"item"},[r("div",[t._v("活动类型:")]),t._v(" "),r("div",{staticClass:"value"},[t._v(t._s(1==t.orderDetailList.activity_type?"秒杀":2==t.orderDetailList.activity_type?"预售":3==t.orderDetailList.activity_type?"助力":4==t.orderDetailList.activity_type?"拼团":"普通"))])])])]),t._v(" "),"1"===t.orderDetailList.delivery_type?r("div",{staticClass:"section"},[r("div",{staticClass:"title"},[t._v("物流信息")]),t._v(" "),r("ul",{staticClass:"list"},[r("li",{staticClass:"item acea-row row-middle"},[r("div",[t._v("快递公司:")]),t._v(" "),r("div",{staticClass:"value"},[t._v(t._s(t.orderDetailList.delivery_name?t.orderDetailList.delivery_name:"-"))])]),t._v(" "),r("li",{staticClass:"item acea-row row-middle"},[r("div",[t._v("快递单号:")]),t._v(" "),r("div",{staticClass:"value"},[t._v(t._s(t.orderDetailList.delivery_id?t.orderDetailList.delivery_id:"-"))]),t._v(" "),r("el-button",{attrs:{type:"text",size:"small"},on:{click:t.openLogistics}},[t._v("物流查询")])],1)])]):t._e(),t._v(" "),r("div",{staticClass:"section"},[r("div",{staticClass:"title"},[t._v("买家留言")]),t._v(" "),r("ul",{staticClass:"list"},[r("li",{staticClass:"item"},[r("div",[t._v(t._s(t.orderDetailList.mark?t.orderDetailList.mark:"-"))])])])]),t._v(" "),r("div",{staticClass:"section"},[r("div",{staticClass:"title"},[t._v("商家备注")]),t._v(" "),r("ul",{staticClass:"list"},[r("li",{staticClass:"item"},[r("div",[t._v(t._s(t.orderDetailList.remark?t.orderDetailList.remark:"-"))])])])])]),t._v(" "),r("el-tab-pane",{attrs:{label:"商品信息",name:"goods"}},[r("el-table",{attrs:{data:t.orderDetailList.orderProduct,size:"small"}},[r("el-table-column",{attrs:{label:"商品信息","min-width":"300"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("div",{staticClass:"tab"},[r("div",{staticClass:"demo-image__preview"},[r("el-image",{attrs:{src:e.row.cart_info.product.image,"preview-src-list":[e.row.cart_info.product.image]}})],1),t._v(" "),r("div",[r("div",{staticClass:"line1"},[t._v(t._s(e.row.cart_info.product.store_name))]),t._v(" "),r("div",{staticClass:"line1 gary"},[t._v("\n 规格:"+t._s(e.row.cart_info.productAttr.sku?e.row.cart_info.productAttr.sku:"默认")+"\n ")])])])]}}])}),t._v(" "),r("el-table-column",{attrs:{label:"售价","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("div",{staticClass:"tab"},[r("div",{staticClass:"line1"},[t._v("\n "+t._s(e.row.cart_info.productAttr.price?e.row.cart_info.productAttr.price:"-")+"\n ")])])]}}])}),t._v(" "),r("el-table-column",{attrs:{label:"实付金额","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("div",{staticClass:"tab"},[r("div",{staticClass:"line1"},[t._v("\n "+t._s(e.row.product_price?e.row.product_price:"-")+"\n ")])])]}}])}),t._v(" "),r("el-table-column",{attrs:{label:"购买数量","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("div",{staticClass:"tab"},[r("div",{staticClass:"line1"},[t._v("\n "+t._s(e.row.product_num)+"\n ")])])]}}])})],1)],1),t._v(" "),r("el-tab-pane",{attrs:{label:"订单记录",name:"orderList"}},[r("div",[r("el-form",{attrs:{size:"small","label-width":"80px"}},[r("div",{staticClass:"acea-row"},[r("el-form-item",{attrs:{label:"操作端:"}},[r("el-select",{staticStyle:{width:"140px","margin-right":"20px"},attrs:{placeholder:"请选择",clearable:"",filterable:""},on:{change:function(e){return t.onOrderLog(t.orderId)}},model:{value:t.tableFromLog.user_type,callback:function(e){t.$set(t.tableFromLog,"user_type",e)},expression:"tableFromLog.user_type"}},[r("el-option",{attrs:{label:"系统",value:"0"}}),t._v(" "),r("el-option",{attrs:{label:"用户",value:"1"}}),t._v(" "),r("el-option",{attrs:{label:"平台",value:"2"}}),t._v(" "),r("el-option",{attrs:{label:"商户",value:"3"}}),t._v(" "),r("el-option",{attrs:{label:"商家客服",value:"4"}})],1)],1),t._v(" "),r("el-form-item",{attrs:{label:"操作时间:"}},[r("el-date-picker",{staticStyle:{width:"380px","margin-right":"20px"},attrs:{type:"datetimerange",placeholder:"选择日期","value-format":"yyyy/MM/dd HH:mm:ss",clearable:""},on:{change:t.onchangeTime},model:{value:t.timeVal,callback:function(e){t.timeVal=e},expression:"timeVal"}})],1)],1)])],1),t._v(" "),r("el-table",{attrs:{data:t.tableDataLog.data,size:"small"}},[r("el-table-column",{attrs:{prop:"order_id",label:"订单编号","min-width":"200"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",[t._v(t._s(e.row.order_sn))])]}}])}),t._v(" "),r("el-table-column",{attrs:{label:"操作记录","min-width":"200"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",[t._v(t._s(e.row.change_message))])]}}])}),t._v(" "),r("el-table-column",{attrs:{label:"操作角色","min-width":"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("div",{staticClass:"tab"},[r("div",[t._v(t._s(t.operationType(e.row.user_type)))])])]}}])}),t._v(" "),r("el-table-column",{attrs:{label:"操作人","min-width":"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("div",{staticClass:"tab"},[r("div",[t._v(t._s(e.row.nickname))])])]}}])}),t._v(" "),r("el-table-column",{attrs:{label:"操作时间","min-width":"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("div",{staticClass:"tab"},[r("div",{staticClass:"line1"},[t._v(t._s(e.row.change_time))])])]}}])})],1),t._v(" "),r("div",{staticClass:"block"},[r("el-pagination",{attrs:{"page-size":t.tableFromLog.limit,"current-page":t.tableFromLog.page,layout:"prev, pager, next, jumper",total:t.tableDataLog.total},on:{"size-change":t.handleSizeChangeLog,"current-change":t.pageChangeLog}})],1)],1),t._v(" "),t.childOrder.length>0?r("el-tab-pane",{attrs:{label:"关联订单",name:"subOrder"}},[r("el-table",{attrs:{data:t.childOrder,size:"small"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.getChildOrderDetail(e.row.order_id)}}},[t._v("详情")])]}}],null,!1,2524739887)},[r("el-table-column",{attrs:{label:"订单编号",prop:"order_sn","min-width":"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("div",[t._v(t._s(e.row.order_sn))])]}}],null,!1,1717655037)}),t._v(" "),r("el-table-column",{attrs:{label:"商品信息","min-width":"200"},scopedSlots:t._u([{key:"default",fn:function(e){return t._l(e.row.orderProduct,(function(e,a){return r("div",{key:a,staticClass:"tabBox acea-row row-middle"},[r("div",{staticClass:"demo-image__preview"},[r("el-image",{attrs:{src:e.cart_info.product.image,"preview-src-list":[e.cart_info.product.image]}})],1),t._v(" "),r("span",{staticClass:"tabBox_tit"},[t._v(t._s(e.cart_info.product.store_name+" | ")+t._s(e.cart_info.productAttr.sku))]),t._v(" "),r("span",{staticClass:"tabBox_pice"},[t._v("\n "+t._s("¥"+e.cart_info.productAttr.price+" x "+e.product_num)+"\n "),e.refund_num0?r("em",{staticStyle:{color:"red","font-style":"normal"}},[t._v("(-"+t._s(e.product_num-e.refund_num)+")")]):t._e()])])}))}}],null,!1,1370655139)}),t._v(" "),r("el-table-column",{attrs:{label:"实际支付","min-width":"80",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",[t._v(t._s(e.row.pay_price))])]}}],null,!1,3949474396)}),t._v(" "),r("el-table-column",{attrs:{label:"订单生成时间",prop:"create_time","min-width":"120"}})],1)],1):t._e()],1)],1)]),t._v(" "),t.dialogLogistics?r("el-dialog",{attrs:{title:"物流查询",visible:t.dialogLogistics,width:"350px"},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.orderDetailList.delivery_name))]),t._v(" "),r("span",[t._v("物流单号:"+t._s(t.orderDetailList.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)},u=[],_=(a("7f7f"),a("bd86")),v={props:{drawer:{type:Boolean,default:!1}},data:function(){var t;return t={loading:!0,orderId:"",direction:"rtl",activeName:"detail",goodsList:[],orderConfirm:!1,sendGoods:!1,dialogLogistics:!1,confirmReceiptForm:{id:""},orderData:[],contentList:[],nicknameList:[],result:[],timeVal:[],childOrder:[]},Object(_["a"])(t,"childOrder",[]),Object(_["a"])(t,"tableDataLog",{data:[],total:0}),Object(_["a"])(t,"tableFromLog",{user_type:"",date:[],page:1,limit:10}),Object(_["a"])(t,"orderDetailList",{user:{real_name:""},groupOrder:{group_order_sn:""}}),Object(_["a"])(t,"orderImg",a("ea8b")),t},filters:{},methods:{onchangeTime:function(t){this.timeVal=t,this.tableFromLog.date=t?this.timeVal.join("-"):"",this.onOrderLog(this.orderId)},handleClose:function(){this.activeName="detail",this.$emit("closeDrawer"),this.sendGoods=!1,this.orderRemark=!1},openLogistics:function(){this.getOrderData(),this.dialogLogistics=!0},getOrderData:function(){var t=this;Object(n["E"])(this.orderId).then(function(){var e=Object(l["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)}))},toSendGoods:function(){this.sendGoods=!0},getDelivery:function(){var t=this;Object(n["s"])(this.orderId).then((function(e){t.$message.success(e.message),t.sendGoods=!1})).catch((function(e){t.$message.error(e.message)}))},getChildOrder:function(){var t=this;this.loading=!0,Object(n["m"])(this.orderId).then((function(e){t.activeName="detail",t.childOrder=e.data,setTimeout((function(){t.loading=!1}),500)})).catch((function(e){t.$message.error(e.message)}))},getChildOrderDetail:function(t){this.getInfo(t)},getInfo:function(t){var e=this;this.loading=!0,this.orderId=t,Object(n["D"])(t).then((function(t){e.drawer=!0,e.orderDetailList=t.data,e.getChildOrder()})).catch((function(t){e.$message.error(t.message)}))},tabClick:function(t){"orderList"===t.name&&this.onOrderLog(this.orderId)},onOrderLog:function(t){var e=this;Object(n["t"])(t,this.tableFromLog).then((function(t){e.tableDataLog.data=t.data.list,e.tableDataLog.total=t.data.count}))},pageChangeLog:function(t){this.tableFromLog.page=t,this.onOrderLog(this.orderId)},handleSizeChangeLog:function(t){this.tableFromLog.limit=t,this.onOrderLog(this.orderId)},operationType:function(t){return 0==t?"系统":1==t?"用户":2==t?"平台":3==t?"商户":4==t?"商家客服":"未知"}}},m=v,p=(a("abe9"),a("2877")),f=Object(p["a"])(m,d,u,!1,null,"7c4bc49c",null),b=f.exports,g=a("2e83"),h=a("e572"),w=a("0b65"),y={components:{orderDetail:b,userDetails:c["a"]},data:function(){return{pickerOptions:w["a"],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:"",pay_type:"",filter_delivery:"",filter_product:"",activity_type:""},dliveryWayList:[{value:1,label:"快递订单"},{value:2,label:"配送订单"},{value:4,label:"核销订单"},{value:3,label:"虚拟发货"},{value:6,label:"自动发货"}],productTypeList:[{value:1,label:"实物商品"},{value:2,label:"虚拟商品"},{value:3,label:"卡密商品"}],orderChartType:{},timeVal:[],fromList:h["a"],selectionList:[],ids:"",uid:"",cancel_time:"",visibleDetail:!1,tableFromLog:{page:1,limit:10},tableDataLog:{data:[],total:0},LogLoading:!1,dialogVisible:!1,cardLists:[],orderDatalist:null,merSelect:[],drawer:!1,userDrawer:!1}},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.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.getList("")},methods:{searchReset:function(){this.timeVal=[],this.tableFrom.date="",this.$refs.searchForm.resetFields(),this.getList(1)},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