(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2bbbc6fb"],{"2e83":function(t,e,a){"use strict";a.d(e,"a",(function(){return n}));a("28a5");var i=a("8122"),r=a("e8ae"),s=a.n(r),l=a("21a6");function n(t,e,a,r,n,o){var c,d=["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,v=t.length;function m(t){var e=Array.isArray(t)?t[0]:t,a=Array.isArray(t)?t[1]:{};c=_.addWorksheet(e,a)}function p(t,e){if(!Object(i["isEmpty"])(t)){t=Array.isArray(t)?t:t.split(",");for(var a=0;ai)&&c.mergeCells(C(r)+t+":"+C(r)+e)}function w(t){if(!Object(i["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":"170"},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":"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,i){return a("div",{key:i,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(i,r){return a("span",{key:r},[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(" "),t.uid?a("el-dialog",{attrs:{title:"用户详情",visible:t.visibleDetail,width:"1000px","before-close":t.Close},on:{"update:visible":function(e){t.visibleDetail=e}}},[t.visibleDetail?a("user-details",{ref:"userDetails",attrs:{uid:t.uid,"cancel-time":t.cancel_time}}):t._e()],1):t._e(),t._v(" "),a("file-list",{ref:"exportList"}),t._v(" "),a("order-detail",{ref:"orderDetail",attrs:{orderId:t.orderId,drawer:t.drawer},on:{closeDrawer:t.closeDrawer,changeDrawer:t.changeDrawer}})],1)},r=[],s=a("c80c"),l=(a("96cf"),a("3b8d")),n=(a("ac6a"),a("f8b7")),o=a("c4c8"),c=a("a9c2"),d=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("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}}},[i("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}]},[i("div",{staticClass:"head"},[i("div",{staticClass:"full"},[i("img",{staticClass:"order_icon",attrs:{src:t.orderImg,alt:""}}),t._v(" "),i("div",{staticClass:"text"},[i("div",{staticClass:"title"},[t._v(t._s(0==t.orderDetailList.order_type?"普通订单":"核销订单"))]),t._v(" "),i("div",[i("span",{staticClass:"mr20"},[t._v("订单编号:"+t._s(t.orderDetailList.order_sn))])])])]),t._v(" "),i("ul",{staticClass:"list"},[i("li",{staticClass:"item"},[i("div",{staticClass:"title"},[t._v("订单状态")]),t._v(" "),i("div",[0!==t.orderDetailList.order_type||t.orderDetailList.pay_time?t._e():i("div",{staticClass:"value1"},[t._v("待付款")]),t._v(" "),0===t.orderDetailList.order_type&&t.orderDetailList.pay_time?i("div",{staticClass:"value1"},[i("span",[t._v(t._s(t._f("orderStatusFilter")(t.orderDetailList.status)))])]):t._e(),t._v(" "),1===t.orderDetailList.order_type&&t.orderDetailList.pay_time?i("div",{staticClass:"value1"},[i("span",[t._v(t._s(t._f("cancelOrderStatusFilter")(t.orderDetailList.status)))])]):t._e()])]),t._v(" "),i("li",{staticClass:"item"},[i("div",{staticClass:"title"},[t._v("实际支付")]),t._v(" "),i("div",[t._v("¥ "+t._s(t.orderDetailList.pay_price))])]),t._v(" "),i("li",{staticClass:"item"},[i("div",{staticClass:"title"},[t._v("支付方式")]),t._v(" "),i("div",[t._v(t._s(t._f("payTypeFilter")(t.orderDetailList.pay_type)))])]),t._v(" "),i("li",{staticClass:"item"},[i("div",{staticClass:"title"},[t._v("支付时间")]),t._v(" "),i("div",[t._v(t._s(t.orderDetailList.create_time))])])])]),t._v(" "),i("el-tabs",{attrs:{type:"border-card"},on:{"tab-click":t.tabClick},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[i("el-tab-pane",{attrs:{label:"订单信息",name:"detail"}},[i("div",{staticClass:"section"},[i("div",{staticClass:"title"},[t._v("用户信息")]),t._v(" "),i("ul",{staticClass:"list"},[i("li",{staticClass:"item"},[i("div",[t._v("用户昵称:")]),t._v(" "),i("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(" "),i("li",{staticClass:"item"},[i("div",[t._v("用户ID:")]),t._v(" "),i("div",{staticClass:"value"},[t._v(t._s(t.orderDetailList.user.uid?t.orderDetailList.user.uid:"-"))])]),t._v(" "),i("li",{staticClass:"item"},[i("div",[t._v("绑定电话:")]),t._v(" "),i("div",{staticClass:"value"},[t._v(t._s(t.orderDetailList.user.phone?t.orderDetailList.user.phone:"-"))])])])]),t._v(" "),i("div",{staticClass:"section"},[i("div",{staticClass:"title"},[t._v("收货信息")]),t._v(" "),i("ul",{staticClass:"list"},[i("li",{staticClass:"item"},[i("div",[t._v("收货人:")]),t._v(" "),i("div",{staticClass:"value"},[t._v(t._s(t.orderDetailList.real_name?t.orderDetailList.real_name:"-"))])]),t._v(" "),i("li",{staticClass:"item"},[i("div",[t._v("收货电话:")]),t._v(" "),i("div",{staticClass:"value"},[t._v(t._s(t.orderDetailList.user_phone?t.orderDetailList.user_phone:"-"))])]),t._v(" "),i("li",{staticClass:"item"},[i("div",[t._v("收货地址:")]),t._v(" "),i("div",{staticClass:"value"},[t._v(t._s(t.orderDetailList.user_address?t.orderDetailList.user_address:"-"))])])])]),t._v(" "),i("div",{staticClass:"section"},[i("div",{staticClass:"title"},[t._v("订单信息")]),t._v(" "),i("ul",{staticClass:"list"},[i("li",{staticClass:"item"},[i("div",[t._v("创建时间:")]),t._v(" "),i("div",{staticClass:"value"},[t._v(t._s(t.orderDetailList.create_time?t.orderDetailList.create_time:"-"))])]),t._v(" "),i("li",{staticClass:"item"},[i("div",[t._v("商品总数:")]),t._v(" "),i("div",{staticClass:"value"},[t._v(t._s(t.orderDetailList.total_num?t.orderDetailList.total_num:"-"))])]),t._v(" "),i("li",{staticClass:"item"},[i("div",[t._v("实际支付:")]),t._v(" "),i("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(" "),i("li",{staticClass:"item"},[i("div",[t._v("优惠券金额:")]),t._v(" "),i("div",{staticClass:"value"},[t._v(t._s(t.orderDetailList.coupon_price?t.orderDetailList.coupon_price:"-"))])]),t._v(" "),t.orderDetailList.integral?i("li",{staticClass:"item"},[i("div",[t._v("积分抵扣:")]),t._v(" "),i("div",{staticClass:"value"},[t._v("使用了"+t._s(t.orderDetailList.integral)+"个积分,抵扣了"+t._s(t.orderDetailList.integral_price)+"元")])]):t._e(),t._v(" "),i("li",{staticClass:"item"},[i("div",[t._v("订单总价:")]),t._v(" "),i("div",{staticClass:"value"},[t._v(t._s(t.orderDetailList.total_price?t.orderDetailList.total_price:"-"))])]),t._v(" "),t.orderDetailList.svip_discount?i("li",{staticClass:"item"},[i("div",[t._v("会员商品优惠:")]),t._v(" "),i("div",{staticClass:"value"},[t._v(t._s(t.orderDetailList.svip_discount))])]):t._e(),t._v(" "),i("li",{staticClass:"item"},[i("div",[t._v("支付运费:")]),t._v(" "),i("div",{staticClass:"value"},[t._v(t._s(t.orderDetailList.pay_postage))])]),t._v(" "),t.orderDetailList.TopSpread?i("li",{staticClass:"item"},[i("div",[t._v("推广人:")]),t._v(" "),i("div",{staticClass:"value"},[t._v(t._s(t.orderDetailList.TopSpread.nickname))])]):t._e(),t._v(" "),i("li",{staticClass:"item"},[i("div",[t._v("一级佣金:")]),t._v(" "),i("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?i("em",{staticStyle:{color:"red","font-style":"normal"}},[t._v("(-"+t._s(t.orderDetailList.refund_extension_one)+")")]):t._e()])]),t._v(" "),i("li",{staticClass:"item"},[i("div",[t._v("二级佣金:")]),t._v(" "),i("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?i("em",{staticStyle:{color:"red","font-style":"normal"}},[t._v("(-"+t._s(t.orderDetailList.refund_extension_two)+")")]):t._e()])])])]),t._v(" "),"1"===t.orderDetailList.delivery_type?i("div",{staticClass:"section"},[i("div",{staticClass:"title"},[t._v("物流信息")]),t._v(" "),i("ul",{staticClass:"list"},[i("li",{staticClass:"item"},[i("div",[t._v("快递公司:")]),t._v(" "),i("div",{staticClass:"value"},[t._v(t._s(t.orderDetailList.delivery_name?t.orderDetailList.delivery_name:"-"))])]),t._v(" "),i("li",{staticClass:"item"},[i("div",[t._v("快递单号:")]),t._v(" "),i("div",{staticClass:"value"},[t._v(t._s(t.orderDetailList.delivery_id?t.orderDetailList.delivery_id:"-"))]),t._v(" "),i("el-button",{staticStyle:{"margin-left":"5px"},attrs:{type:"primary",size:"mini"},on:{click:t.openLogistics}},[t._v("物流查询")])],1)])]):t._e(),t._v(" "),i("div",{staticClass:"section"},[i("div",{staticClass:"title"},[t._v("买家留言")]),t._v(" "),i("ul",{staticClass:"list"},[i("li",{staticClass:"item"},[i("div",[t._v(t._s(t.orderDetailList.mark?t.orderDetailList.mark:"-"))])])])]),t._v(" "),i("div",{staticClass:"section"},[i("div",{staticClass:"title"},[t._v("商家备注")]),t._v(" "),i("ul",{staticClass:"list"},[i("li",{staticClass:"item"},[i("div",[t._v(t._s(t.orderDetailList.remark?t.orderDetailList.remark:"-"))])])])])]),t._v(" "),i("el-tab-pane",{attrs:{label:"商品信息",name:"goods"}},[i("el-table",{attrs:{data:t.orderDetailList.orderProduct}},[i("el-table-column",{attrs:{label:"商品信息","min-width":"300"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("div",{staticClass:"tab"},[i("div",{staticClass:"demo-image__preview"},[i("el-image",{attrs:{src:e.row.cart_info.product.image,"preview-src-list":[e.row.cart_info.product.image]}})],1),t._v(" "),i("div",[i("div",{staticClass:"line1"},[t._v(t._s(e.row.cart_info.product.store_name))]),t._v(" "),i("div",{staticClass:"line1 gary"},[t._v("\n 规格:"+t._s(e.row.cart_info.productAttr.sku?e.row.cart_info.productAttr.sku:"默认")+"\n ")])])])]}}])}),t._v(" "),i("el-table-column",{attrs:{label:"售价","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("div",{staticClass:"tab"},[i("div",{staticClass:"line1"},[t._v("\n "+t._s(e.row.cart_info.productAttr.price?e.row.cart_info.productAttr.price:"-")+"\n ")])])]}}])}),t._v(" "),i("el-table-column",{attrs:{label:"实付金额","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("div",{staticClass:"tab"},[i("div",{staticClass:"line1"},[t._v("\n "+t._s(e.row.product_price?e.row.product_price:"-")+"\n ")])])]}}])}),t._v(" "),i("el-table-column",{attrs:{label:"购买数量","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("div",{staticClass:"tab"},[i("div",{staticClass:"line1"},[t._v("\n "+t._s(e.row.product_num)+"\n ")])])]}}])})],1)],1),t._v(" "),i("el-tab-pane",{attrs:{label:"订单记录",name:"orderList"}},[i("div",[i("el-form",{attrs:{size:"small","label-width":"80px"}},[i("div",{staticClass:"acea-row"},[i("el-form-item",{attrs:{label:"操作端:"}},[i("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"}},[i("el-option",{attrs:{label:"系统",value:"0"}}),t._v(" "),i("el-option",{attrs:{label:"用户",value:"1"}}),t._v(" "),i("el-option",{attrs:{label:"平台",value:"2"}}),t._v(" "),i("el-option",{attrs:{label:"商户",value:"3"}}),t._v(" "),i("el-option",{attrs:{label:"商家客服",value:"4"}})],1)],1),t._v(" "),i("el-form-item",{attrs:{label:"操作时间:"}},[i("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(" "),i("el-table",{attrs:{data:t.tableDataLog.data}},[i("el-table-column",{attrs:{prop:"order_id",label:"订单编号","min-width":"200"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("span",[t._v(t._s(e.row.order_sn))])]}}])}),t._v(" "),i("el-table-column",{attrs:{label:"操作记录","min-width":"200"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("span",[t._v(t._s(e.row.change_message))])]}}])}),t._v(" "),i("el-table-column",{attrs:{label:"操作角色","min-width":"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("div",{staticClass:"tab"},[i("div",[t._v(t._s(t.operationType(e.row.user_type)))])])]}}])}),t._v(" "),i("el-table-column",{attrs:{label:"操作人","min-width":"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("div",{staticClass:"tab"},[i("div",[t._v(t._s(e.row.nickname))])])]}}])}),t._v(" "),i("el-table-column",{attrs:{label:"操作时间","min-width":"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("div",{staticClass:"tab"},[i("div",{staticClass:"line1"},[t._v(t._s(e.row.change_time))])])]}}])})],1),t._v(" "),i("div",{staticClass:"block"},[i("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)],1),t._v(" "),t.childOrder.length>0?i("el-tab-pane",{attrs:{label:"关联订单",name:"subOrder"}},[i("el-table",{attrs:{data:t.childOrder}},[i("el-table-column",{attrs:{label:"订单编号",prop:"order_sn","min-width":"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("div",[t._v(t._s(e.row.order_sn))])]}}],null,!1,1717655037)}),t._v(" "),i("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 i("div",{key:a,staticClass:"tabBox acea-row row-middle"},[i("div",{staticClass:"demo-image__preview"},[i("el-image",{attrs:{src:e.cart_info.product.image,"preview-src-list":[e.cart_info.product.image]}})],1),t._v(" "),i("span",{staticClass:"tabBox_tit"},[t._v(t._s(e.cart_info.product.store_name+" | ")+t._s(e.cart_info.productAttr.sku))]),t._v(" "),i("span",{staticClass:"tabBox_pice"},[t._v("\n "+t._s("¥"+e.cart_info.productAttr.price+" x "+e.product_num)+"\n "),e.refund_num0?i("em",{staticStyle:{color:"red","font-style":"normal"}},[t._v("(-"+t._s(e.product_num-e.refund_num)+")")]):t._e()])])}))}}],null,!1,1370655139)}),t._v(" "),i("el-table-column",{attrs:{label:"实际支付","min-width":"80",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("span",[t._v(t._s(e.row.pay_price))])]}}],null,!1,3949474396)}),t._v(" "),i("el-table-column",{attrs:{label:"订单生成时间",prop:"create_time","min-width":"120"}}),t._v(" "),i("el-table-column",{attrs:{label:"操作","min-width":"50",fixed:"right",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.getChildOrderDetail(e.row.order_id)}}},[t._v("详情")])]}}],null,!1,2524739887)})],1)],1):t._e()],1)],1)]),t._v(" "),t.dialogLogistics?i("el-dialog",{attrs:{title:"物流查询",visible:t.dialogLogistics,width:"350px"},on:{"update:visible":function(e){t.dialogLogistics=e}}},[i("div",{staticClass:"logistics acea-row row-top"},[i("div",{staticClass:"logistics_img"},[i("img",{attrs:{src:a("bd9b")}})]),t._v(" "),i("div",{staticClass:"logistics_cent"},[i("span",[t._v("物流公司:"+t._s(t.orderDetailList.delivery_name))]),t._v(" "),i("span",[t._v("物流单号:"+t._s(t.orderDetailList.delivery_id))])])]),t._v(" "),i("div",{staticClass:"acea-row row-column-around trees-coadd"},[i("div",{staticClass:"scollhide"},[i("el-timeline",t._l(t.result,(function(e,a){return i("el-timeline-item",{key:a},[i("p",{staticClass:"time",domProps:{textContent:t._s(e.time)}}),t._v(" "),i("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["j"])(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["l"])(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["i"])(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["m"])(t).then((function(t){e.drawer=!0,e.orderDetailList=t.data,e.getChildOrder()})).catch((function(t){e.$message.error(t.message)}))},handleDelete:function(){var t=this;this.$modalSure().then((function(){Object(n["orderDeleteApi"])(t.orderId).then((function(e){var a=e.message;t.$message.success(a)})).catch((function(e){var a=e.message;t.$message.error(a)}))}))},tabClick:function(t){"orderList"===t.name&&this.onOrderLog(this.orderId)},onOrderLog:function(t){var e=this;Object(n["o"])(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("eeba"),a("2877")),f=Object(p["a"])(m,d,u,!1,null,"449c5eb6",null),h=f.exports,b=a("30dc"),g=a("2e83"),y=a("0f56"),w=a("e572"),C={components:{orderDetail:h,cardsData:y["a"],fileList:b["a"],userDetails:c["a"]},data:function(){return{orderId:0,tableData:{data:[],total:0},activity:[{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:w["a"],selectionList:[],ids:"",uid:"",visibleDetail:!1,tableFromLog:{page:1,limit:10},tableDataLog:{data:[],total:0},LogLoading:!1,dialogVisible:!1,cardLists:[],orderDatalist:null,merSelect:[],drawer:!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.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