You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
crmeb_php/public/system/js/chunk-2bbbc6fb.28b8831e.js

1 lines
52 KiB

(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;a<t.length;a++){var r=c.getRow(a+1);r.getCell(1).value=t[a],r.height=30,r.font={bold:!0,size:20,vertAlign:"subscript"},r.alignment={vertical:"bottom",horizontal:"center"},r.outlineLevel=1,c.mergeCells(a+1,1,a+1,e),r.commit(),u++}}}function h(t){if(!Object(i["isEmpty"])(t)){for(var e=c.getRow(u),a=1;a<=t.length;a++)e.getCell(a).value=t[a-1];e.height=25,e.width=50,e.font={bold:!0,size:18,vertAlign:"subscript"},e.alignment={vertical:"bottom",horizontal:"center"},e.outlineLevel=1,e.commit(),u++}}function b(t){if(!Object(i["isEmpty"])(t))for(var e=0;e<t.length;e++){for(var a=u,r=c.getRow(u),s=!1,l=0,n=0,o=0,d=0;d<t[e].length;d++)Array.isArray(t[e][d])?(l=o,s=!0,g(t[e][d],o),o+=t[e][d][0].length,n=o):(r.getCell(C(o)).value=t[e][d],r.getCell(C(o)).border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}},r.alignment={vertical:"middle",horizontal:"center"},o++);s&&y(a,u,l,n),r.height=25,r.commit(),u++}}function g(t,e){for(var a=t.length,i=a-1,r=0;r<t.length;r++){for(var s=c.getRow(u),l=0;l<t[r].length;l++)s.getCell(C(e+l)).value=t[r][l],s.getCell(C(e+l)).border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}},s.alignment={vertical:"middle",horizontal:"center"};s.height=25,s.commit(),r<i&&u++}}function y(t,e,a,i){for(var r=0;r<v;r++)(r<a||r>i)&&c.mergeCells(C(r)+t+":"+C(r)+e)}function w(t){if(!Object(i["isEmpty"])(t))if(Array.isArray(t))for(var e=0;e<t.length;e++){var a=c.getRow(u);a.getCell(1).value=t[e],a.getCell(1).border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}},a.alignment={vertical:"middle",horizontal:"left"},c.mergeCells("A"+u+":"+C(v-1)+u),u++}else{var r=c.getRow(u);r.getCell(1).value=t[f],r.getCell(1).border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}},r.alignment={vertical:"middle",horizontal:"left"},c.mergeCells("A"+u+":"+C(v-1)+u)}}function C(t){if(t<26)return d[t];var e=t%26,a=Math.floor(t%26);return d[a]+d[e]}function L(t){t||(t=(new Date).getTime()),_.xlsx.writeBuffer().then((function(e){var a=new Blob([e],{type:"application/octet-stream"});l["saveAs"](a,t+".xlsx")}))}m(o),p(e,v),h(t),b(a),w(r),L(n)}},"6af2":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"divBox"},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("div",{staticClass:"container"},[a("el-form",{attrs:{size:"small",inline:"","label-width":"100px"}},[a("el-form-item",{attrs:{label:"订单状态:"}},[a("el-radio-group",{attrs:{type:"button"},on:{change:function(e){t.getList(1),t.getCardList()}},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",{staticClass:"width100",attrs:{label:"时间选择:"}},[a("el-radio-group",{staticClass:"mr20",attrs:{type:"button",size:"small"},on:{change:function(e){return t.selectChange(t.tableFrom.date)}},model:{value:t.tableFrom.date,callback:function(e){t.$set(t.tableFrom,"date",e)},expression:"tableFrom.date"}},t._l(t.fromList.fromTxt,(function(e,i){return a("el-radio-button",{key:i,attrs:{label:e.val}},[t._v(t._s(e.text))])})),1),t._v(" "),a("el-date-picker",{staticStyle:{width:"250px"},attrs:{"value-format":"yyyy/MM/dd",format:"yyyy/MM/dd",size:"small",type:"daterange",placement:"bottom-end",placeholder:"自定义时间"},on:{change:t.onchangeTime},model:{value:t.timeVal,callback:function(e){t.timeVal=e},expression:"timeVal"}})],1),t._v(" "),a("el-form-item",{staticStyle:{display:"inline-block"},attrs:{label:"活动类型:"}},[a("el-select",{staticClass:"selWidth",attrs:{clearable:"",filterable:"",placeholder:"请选择"},on:{change:function(e){t.getList(1),t.getCardList()}},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",{staticStyle:{display:"inline-block"},attrs:{label:"商户名称:"}},[a("el-select",{staticClass:"selWidth",attrs:{clearable:"",filterable:"",placeholder:"请选择"},on:{change:function(e){t.getList(1),t.getCardList()}},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",{staticStyle:{display:"inline-block"},attrs:{label:"商户类别:"}},[a("el-select",{staticClass:"selWidth",attrs:{clearable:"",placeholder:"请选择"},on:{change:function(e){t.getList(1),t.getCardList()}},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",{staticClass:"width100",staticStyle:{display:"inline-block"},attrs:{label:"商品名称:"}},[a("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入商品名称",size:"small"},nativeOn:{keyup:function(e){if(!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter"))return null;t.getList(1),t.getCardList()}},model:{value:t.tableFrom.store_name,callback:function(e){t.$set(t.tableFrom,"store_name",e)},expression:"tableFrom.store_name"}},[a("el-button",{staticClass:"el-button-solt",attrs:{slot:"append",icon:"el-icon-search",size:"small"},on:{click:function(e){t.getList(1),t.getCardList()}},slot:"append"})],1)],1),t._v(" "),a("el-form-item",{staticClass:"width100",staticStyle:{display:"inline-block"},attrs:{label:"关键字:"}},[a("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入订单号/收货人/联系方式",size:"small"},nativeOn:{keyup:function(e){if(!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter"))return null;t.getList(1),t.getCardList()}},model:{value:t.tableFrom.keywords,callback:function(e){t.$set(t.tableFrom,"keywords",e)},expression:"tableFrom.keywords"}},[a("el-button",{staticClass:"el-button-solt",attrs:{slot:"append",icon:"el-icon-search",size:"small"},on:{click:function(e){t.getList(1),t.getCardList()}},slot:"append"})],1)],1),t._v(" "),a("el-form-item",{staticClass:"width100",staticStyle:{display:"inline-block"},attrs:{label:"总单单号:"}},[a("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入总单单号",size:"small"},nativeOn:{keyup:function(e){if(!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter"))return null;t.getList(1),t.getCardList()}},model:{value:t.tableFrom.group_order_sn,callback:function(e){t.$set(t.tableFrom,"group_order_sn",e)},expression:"tableFrom.group_order_sn"}},[a("el-button",{staticClass:"el-button-solt",attrs:{slot:"append",icon:"el-icon-search",size:"small"},on:{click:function(e){t.getList(1),t.getCardList()}},slot:"append"})],1)],1),t._v(" "),a("el-form-item",{staticClass:"width100",staticStyle:{display:"inline-block"},attrs:{label:"用户信息:"}},[a("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入用户昵称/手机号",size:"small"},nativeOn:{keyup:function(e){if(!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter"))return null;t.getList(1),t.getCardList()}},model:{value:t.tableFrom.username,callback:function(e){t.$set(t.tableFrom,"username",e)},expression:"tableFrom.username"}},[a("el-button",{staticClass:"el-button-solt",attrs:{slot:"append",icon:"el-icon-search",size:"small"},on:{click:function(e){t.getList(1),t.getCardList()}},slot:"append"})],1),t._v(" "),a("el-button",{attrs:{size:"small",type:"primary",icon:"el-icon-top"},on:{click:t.exports}},[t._v("导出列表")])],1)],1)],1),t._v(" "),t.headeNum.length>0?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_num<e.product_num&&e.refund_num>0?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_num<e.product_num&&e.refund_num>0?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_num<t.product_num&&(e=!0)})),e},addTdClass:function(t){if(!(t.row.status>0&&1==t.row.paid))return" ";for(var e=0;e<t.row.orderProduct.length;e++)if(t.row.orderProduct[e].refund_num>0&&t.row.orderProduct[e].refund_num<t.row.orderProduct[e].product_num)return"row-bg"},getMerSelect:function(){var t=this;Object(o["P"])().then((function(e){t.merSelect=e.data})).catch((function(e){t.$message.error(e.message)}))},onUserDetails:function(t){this.uid=t,this.visibleDetail=!0},Close:function(){this.visibleDetail=!1},exports:function(){var t=Object(l["a"])(Object(s["a"])().mark((function t(){var e,a,i,r,l;return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e=JSON.parse(JSON.stringify(this.tableFrom)),a=[],e.page=1,i=1,r={},l=0;case 5:if(!(l<i)){t.next=14;break}return t.next=8,this.downData(e);case 8:r=t.sent,i=Math.ceil(r.count/e.limit),r.export.length&&(a=a.concat(r.export),e.page++);case 11:l++,t.next=5;break;case 14:return Object(g["a"])(r.header,r.title,a,r.foot,r.filename),t.abrupt("return");case 16:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),downData:function(t){return new Promise((function(e,a){Object(n["g"])(t).then((function(t){return e(t.data)}))}))},exportRecord:function(){var t=this;Object(n["g"])(this.tableFrom).then((function(e){var a=t.$createElement;t.$msgbox({title:"提示",message:a("p",null,[a("span",null,'文件正在生成中,请稍后点击"'),a("span",{style:"color: teal"},"导出记录"),a("span",null,'"查看~ ')]),confirmButtonText:"我知道了"}).then((function(t){}))})).catch((function(e){t.$message.error(e.message)}))},getExportFileList:function(){this.$refs.exportList.exportFileList()},onOrderDetails:function(t){this.orderId=t,this.$refs.orderDetail.getInfo(t),this.drawer=!0},changeDrawer:function(t){this.drawer=t},closeDrawer:function(){this.drawer=!1},pageChangeLog:function(t){this.tableFromLog.page=t,this.getList("")},handleSizeChangeLog:function(t){this.tableFromLog.limit=t,this.getList("")},selectChange:function(t){this.tableFrom.date=t,this.tableFrom.page=1,this.timeVal=[],this.getCardList(),this.getList(1)},onchangeTime:function(t){this.timeVal=t,this.tableFrom.date=t?this.timeVal.join("-"):"",this.tableFrom.page=1,this.getCardList(),this.getList(1)},getList:function(t){var e=this;this.listLoading=!0,this.tableFrom.page=t||this.tableFrom.page,Object(n["n"])(this.tableFrom).then((function(t){e.tableData.data=t.data.list,e.tableData.total=t.data.count,e.listLoading=!1})).catch((function(t){e.$message.error(t.message),e.listLoading=!1}))},getCardList:function(){var t=this;Object(n["a"])(this.tableFrom).then((function(e){t.cardLists=e.data})).catch((function(e){t.$message.error(e.message)}))},pageChange:function(t){this.tableFrom.page=t,this.getList("")},handleSizeChange:function(t){this.tableFrom.limit=t,this.getList("")},headerList:function(){var t=this;Object(n["b"])().then((function(e){t.orderChartType=e.data})).catch((function(e){t.$message.error(e.message)}))}}},L=C,k=(a("f718"),Object(p["a"])(L,i,r,!1,null,"4c6a281f",null));e["default"]=k.exports},a9c2:function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[t.psInfo?a("div",{staticClass:"acea-row row-middle"},[a("div",{staticClass:"avatar mr15"},[a("div",{staticClass:"block"},[a("el-avatar",{attrs:{size:50,src:t.psInfo.avatar?t.psInfo.avatar:t.moren}})],1)]),t._v(" "),a("div",{staticClass:"dashboard-workplace-header-tip"},[a("p",{staticClass:"dashboard-workplace-header-tip-title",domProps:{textContent:t._s(t.psInfo.nickname||"-")}}),t._v(" "),a("div",{staticClass:"dashboard-workplace-header-tip-desc"},[a("span",{staticClass:"dashboard-workplace-header-tip-desc-sp"},[t._v("余额: "+t._s(t.psInfo.now_money))]),t._v(" "),a("span",{staticClass:"dashboard-workplace-header-tip-desc-sp"},[t._v("总计订单: "+t._s(t.psInfo.pay_count))]),t._v(" "),a("span",{staticClass:"dashboard-workplace-header-tip-desc-sp"},[t._v("总消费金额: "+t._s(t.psInfo.pay_price))]),t._v(" "),a("span",{staticClass:"dashboard-workplace-header-tip-desc-sp"},[t._v("本月订单: "+t._s(t.psInfo.total_pay_count))]),t._v(" "),a("span",{staticClass:"dashboard-workplace-header-tip-desc-sp"},[t._v("本月消费金额: "+t._s(t.psInfo.total_pay_price))]),t._v(" "),t.psInfo.is_svip?a("span",{staticClass:"dashboard-workplace-header-tip-desc-sp"},[t._v("会员到期时间: "+t._s(t.psInfo.svip_endtime))]):t._e(),t._v(" "),t.cancelTime?a("span",{staticClass:"dashboard-workplace-header-tip-desc-sp"},[t._v("注销时间: "+t._s(t.cancelTime))]):t._e()])])]):t._e(),t._v(" "),a("el-row",{staticClass:"ivu-mt mt20",attrs:{align:"middle",gutter:10}},[a("el-col",{attrs:{span:4}},[a("el-menu",{staticClass:"el-menu-vertical-demo",attrs:{"default-active":"0"},on:{select:t.changeType}},t._l(t.list,(function(e,i){return a("el-menu-item",{key:i,attrs:{name:e.val,index:e.val}},[a("span",{attrs:{slot:"title"},slot:"title"},[t._v(t._s(e.label))])])})),1)],1),t._v(" "),a("el-col",{attrs:{span:20}},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],key:t.type,ref:"tabe",staticClass:"tabNumWidth",attrs:{data:t.tableData.data,size:"mini"}},[t._l(t.columns,(function(t,e){return a("el-table-column",{key:e,attrs:{prop:t.key,label:t.title,width:"item.minWidth"}})})),t._v(" "),"3"===t.type?a("el-table-column",{key:111,attrs:{label:"有效期","min-width":"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("filterEmpty")(e.row?e.row.start_time+"-"+e.row.end_time:"")))])]}}],null,!1,3673940515)}):t._e(),t._v(" "),"2"===t.type?a("el-table-column",{key:112,attrs:{label:"上级推荐人头像","min-width":"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"demo-image__preview"},[a("el-image",{staticStyle:{width:"36px",height:"36px"},attrs:{src:e.row.spread&&e.row.spread.avatar?e.row.spread.avatar:t.moren,"preview-src-list":[e.row.avatar||t.moren]}})],1)]}}],null,!1,3621700489)}):t._e()],2),t._v(" "),a("div",{staticClass:"block"},[a("el-pagination",{attrs:{"page-sizes":[6,12,18,24],"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)],1)],1)},r=[],s=(a("c5f6"),a("c24f")),l={name:"UserDetails",props:{uid:{type:Number,default:null},cancelTime:{type:Number,default:null}},data:function(){return{moren:a("cdfe"),loading:!1,columns:[],Visible:!1,list:[{val:"0",label:"消费记录"},{val:"3",label:"持有优惠券"},{val:"4",label:"余额变动"},{val:"2",label:"推荐人修改记录"}],tableData:{data:[],total:0},tableFrom:{page:1,limit:6},psInfo:null,type:"0"}},mounted:function(){this.uid&&(this.getHeader(),this.getInfo("0"))},beforeUpdate:function(){var t=this;this.$nextTick((function(){t.$refs["tabe"].doLayout()}))},methods:{changeType:function(t){this.type=t,this.tableFrom.page=1,this.getInfo(t)},getInfo:function(t){var e=this;switch(this.loading=!0,t){case"0":Object(s["fb"])(this.uid,this.tableFrom).then((function(t){e.tableData.data=t.data.list,e.tableData.total=t.data.count,e.columns=[{title:"订单ID",key:"order_id",minWidth:250},{title:"收货人",key:"real_name",minWidth:90},{title:"商品数量",key:"total_num",minWidth:80},{title:"商品总价",key:"total_price",minWidth:90},{title:"实付金额",key:"pay_price",minWidth:90},{title:"交易完成时间",key:"pay_time",minWidth:160}],e.loading=!1})).catch((function(){e.loading=!1}));break;case"2":Object(s["V"])(this.uid,this.tableFrom).then((function(t){e.tableData.data=t.data.list,e.tableData.total=t.data.count,e.columns=[{title:"上级推荐人ID",key:"spread_uid",minWidth:120},{title:"上级推荐人昵称",key:"spread.nickname",minWidth:120},{title:"绑定时间",key:"create_time",minWidth:120}],e.loading=!1})).catch((function(){e.loading=!1}));break;case"3":Object(s["bb"])(this.uid,this.tableFrom).then((function(t){e.tableData.data=t.data.list,e.tableData.total=t.data.count,e.columns=[{title:"优惠券名称",key:"coupon_title",minWidth:120},{title:"面值",key:"coupon_price",minWidth:120},{title:"最低消费额",key:"use_min_price",minWidth:120},{title:"兑换时间",key:"use_time",minWidth:120}],e.loading=!1})).catch((function(){e.loading=!1}));break;default:Object(s["ab"])(this.uid,this.tableFrom).then((function(t){e.tableData.data=t.data.list,e.tableData.total=t.data.count,e.columns=[{title:"变动金额",key:"number",minWidth:90},{title:"变动后",key:"balance",minWidth:90},{title:"类型",key:"title",minWidth:100},{title:"创建时间",key:"create_time",minWidth:150},{title:"备注",key:"mark",minWidth:200}],e.loading=!1})).catch((function(){e.loading=!1}))}},pageChange:function(t){this.tableFrom.page=t,this.getInfo(this.type)},handleSizeChange:function(t){this.tableFrom.limit=t,this.getInfo(this.type)},getHeader:function(){var t=this;Object(s["cb"])(this.uid).then((function(e){t.psInfo=e.data}))}}},n=l,o=(a("ea0e"),a("2877")),c=Object(o["a"])(n,i,r,!1,null,"3cf4c5d8",null);e["a"]=c.exports},bb26:function(t,e,a){},bd9b:function(t,e){t.exports="data:image/jpeg;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAKEUl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U/oUyDN8a223F4Wa5afx+IGn8fgwBnY02BgnSWdMeibwCJ3tpURQTuhvQd4nNx2QvuIaywJhEAHGm7BRgPLkK6Hc4V6pIludJDiQbiOuPsg/W7lgiPuly3TDmXD3lVX8BmSrZcRzEC+jOBGgnkZwcdI75pvcaW9jMAL10gxCRhJx9dhFHGptcbdnwbkXLXtdRgHkK/DSDrpD4v/AyTig4w83FS9AAAAAElFTkSuQmCC"},cdfe:function(t,e,a){t.exports=a.p+"system/img/f.5aa43cd3.png"},cf26:function(t,e,a){},d3dd:function(t,e,a){},e572:function(t,e,a){"use strict";a.d(e,"c",(function(){return i})),a.d(e,"a",(function(){return r})),a.d(e,"b",(function(){return s}));var i=[{label:"开启",value:1},{label:"关闭",value:0}],r={title:"选择时间",custom:!0,fromTxt:[{text:"全部",val:""},{text:"今天",val:"today"},{text:"昨天",val:"yesterday"},{text:"最近7天",val:"lately7"},{text:"最近30天",val:"lately30"},{text:"本月",val:"month"},{text:"本年",val:"year"}]},s={title:"状态",custom:!0,fromTxt:[{text:"全部",val:""},{text:"待审核",val:"0"},{text:"审核已通过",val:"1"},{text:"审核未通过",val:"2"}]}},ea0e:function(t,e,a){"use strict";a("cf26")},ea8b:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFIAAABSCAYAAADHLIObAAAAAXNSR0IArs4c6QAABGNJREFUeF7tnE2o3FQUx/9nQBEUUcE2qRRKC3UhtIu+lVR4YqEFF4JiaRdCEVRw0Un8WLiyb2VL8U3mlUIXQsVNxaK4tKC0ulKsIAMuXtHqxk6iIvixEGnnL3m+6Wcy92bmlMzLnGyG4Z77vzm/OUluzr1zBHaoEBAVFROBgVQKAgNpIJUIKMl4RWTQ4SEKtgmwDcAWpbGnXeYHAj0hemksh1wnOxJkuMg5tvAugEdcQg1v/04GONB/Rc6X+VkKMlzi0xzgw4YDquSetPBM/6B8VNSpFGTQ5c8gNlQaqenGgktpWx7yBpnfEyF4s+lcxvKPWCi6ZxZGZ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8RZQLJqIc5cwkrD3gpyrNKwKzCtWPGQ5vjFim/ILlv5bGdNDOcfgZSmXo2XMZBKP7GBNJBKBJRkLCKVQP4HUW2zcb4YanwAAAAASUVORK5CYII="},eeba:function(t,e,a){"use strict";a("d3dd")},f718:function(t,e,a){"use strict";a("bb26")},f8b7:function(t,e,a){"use strict";a.d(e,"n",(function(){return r})),a.d(e,"b",(function(){return s})),a.d(e,"a",(function(){return l})),a.d(e,"p",(function(){return n})),a.d(e,"l",(function(){return o})),a.d(e,"m",(function(){return c})),a.d(e,"o",(function(){return d})),a.d(e,"t",(function(){return u})),a.d(e,"i",(function(){return _})),a.d(e,"j",(function(){return v})),a.d(e,"g",(function(){return m})),a.d(e,"h",(function(){return p})),a.d(e,"f",(function(){return f})),a.d(e,"v",(function(){return h})),a.d(e,"w",(function(){return b})),a.d(e,"u",(function(){return g})),a.d(e,"e",(function(){return y})),a.d(e,"d",(function(){return w})),a.d(e,"c",(function(){return C})),a.d(e,"s",(function(){return L})),a.d(e,"r",(function(){return k})),a.d(e,"q",(function(){return D}));var i=a("0c6d");function r(t){return i["a"].get("order/lst",t)}function s(){return i["a"].get("order/chart")}function l(t){return i["a"].get("order/title",t)}function n(t){return i["a"].get("store/order/update/".concat(t,"/form"))}function o(t){return i["a"].get("store/order/delivery/".concat(t,"/form"))}function c(t){return i["a"].get("order/detail/".concat(t))}function d(t,e){return i["a"].get("order/status/".concat(t),e)}function u(t){return i["a"].get("order/refund/lst",t)}function _(t){return i["a"].get("order/children/".concat(t))}function v(t){return i["a"].get("order/express/".concat(t))}function m(t){return i["a"].get("order/excel",t)}function p(t){return i["a"].get("order/refund/excel",t)}function f(t){return i["a"].get("excel/lst",t)}function h(){return i["a"].get("order/takechart")}function b(t){return i["a"].get("order/takelst",t)}function g(t){return i["a"].get("order/take_title",t)}function y(){return i["a"].get("excel/type")}function w(t){return i["a"].get("delivery/order/lst",t)}function C(t){return i["a"].get("delivery/order/cancel/".concat(t,"/form"))}function L(t){return i["a"].get("delivery/station/payLst",t)}function k(){return i["a"].get("delivery/title")}function D(){return i["a"].get("delivery/belence")}}}]);