chunk-8b9a34f6.faa72a88.js 35 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-8b9a34f6"],{"2e83":function(t,e,a){"use strict";a.d(e,"a",(function(){return o}));a("28a5");var r=a("8122"),i=a("e8ae"),s=a.n(i),n=a("21a6");function o(t,e,a,i,o,l){var d,c=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],u=1,_=new s.a.Workbook,m=t.length;function p(t){var e=Array.isArray(t)?t[0]:t,a=Array.isArray(t)?t[1]:{};d=_.addWorksheet(e,a)}function v(t,e){if(!Object(r["isEmpty"])(t)){t=Array.isArray(t)?t:t.split(",");for(var a=0;a<t.length;a++){var i=d.getRow(a+1);i.getCell(1).value=t[a],i.height=30,i.font={bold:!0,size:20,vertAlign:"subscript"},i.alignment={vertical:"bottom",horizontal:"center"},i.outlineLevel=1,d.mergeCells(a+1,1,a+1,e),i.commit(),u++}}}function g(t){if(!Object(r["isEmpty"])(t)){for(var e=d.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 h(t){if(!Object(r["isEmpty"])(t))for(var e=0;e<t.length;e++){for(var a=u,i=d.getRow(u),s=!1,n=0,o=0,l=0,c=0;c<t[e].length;c++)Array.isArray(t[e][c])?(n=l,s=!0,b(t[e][c],l),l+=t[e][c][0].length,o=l):(i.getCell(C(l)).value=t[e][c],i.getCell(C(l)).border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}},i.alignment={vertical:"middle",horizontal:"center"},l++);s&&y(a,u,n,o),i.height=25,i.commit(),u++}}function b(t,e){for(var a=t.length,r=a-1,i=0;i<t.length;i++){for(var s=d.getRow(u),n=0;n<t[i].length;n++)s.getCell(C(e+n)).value=t[i][n],s.getCell(C(e+n)).border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}},s.alignment={vertical:"middle",horizontal:"center"};s.height=25,s.commit(),i<r&&u++}}function y(t,e,a,r){for(var i=0;i<m;i++)(i<a||i>r)&&d.mergeCells(C(i)+t+":"+C(i)+e)}function w(t){if(!Object(r["isEmpty"])(t))if(Array.isArray(t))for(var e=0;e<t.length;e++){var a=d.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"},d.mergeCells("A"+u+":"+C(m-1)+u),u++}else{var i=d.getRow(u);i.getCell(1).value=t[f],i.getCell(1).border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}},i.alignment={vertical:"middle",horizontal:"left"},d.mergeCells("A"+u+":"+C(m-1)+u)}}function C(t){if(t<26)return c[t];var e=t%26,a=Math.floor(t%26);return c[a]+c[e]}function L(t){t||(t=(new Date).getTime()),_.xlsx.writeBuffer().then((function(e){var a=new Blob([e],{type:"application/octet-stream"});n["saveAs"](a,t+".xlsx")}))}p(l),v(e,m),g(t),h(a),w(i),L(o)}},"6af2":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("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,r){return a("el-radio-button",{key:r,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":"90"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(1==e.row.is_virtual?"虚拟订单":0==e.row.order_type?"普通订单":"核销订单"))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"活动类型","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[4!=e.row.activity_type?a("span",[t._v(t._s(1===e.row.activity_type?"秒杀":2===e.row.activity_type?"预售":3===e.row.activity_type?"助力":"--"))]):a("span",[t._v("拼团订单 "),e.row.groupUser&&e.row.groupUser.groupBuying?a("span",[t._v("-"+t._s(t._f("activityOrderStatus")(e.row.groupUser.groupBuying.status)))]):t._e()])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"real_name",label:"收货人/订购人","min-width":"120"}}),t._v(" "),a("el-table-column",{attrs:{label:"商户名称","min-width":"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.merchant?e.row.merchant.mer_name:""))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"mer_name",label:"商户类别","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.merchant?a("span",{staticClass:"spBlock"},[t._v(t._s(e.row.merchant.is_trader?"自营":"非自营"))]):t._e()]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"商品信息","min-width":"330"},scopedSlots:t._u([{key:"default",fn:function(e){return t._l(e.row.orderProduct,(function(e,r){return a("div",{key:r,staticClass:"tabBox acea-row row-middle"},[a("div",{staticClass:"demo-image__preview"},[a("el-image",{attrs:{src:e.cart_info.product.image,"preview-src-list":[e.cart_info.product.image]}})],1),t._v(" "),a("span",{staticClass:"tabBox_tit"},[t._v(t._s(e.cart_info.product.store_name+" | ")+t._s(e.cart_info.productAttr.sku))]),t._v(" "),a("span",{staticClass:"tabBox_pice"},[t._v("\n "+t._s("¥"+e.cart_info.productAttr.price+" x "+e.product_num)+"\n "),e.refund_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(r,i){return a("span",{key:i},[t.orderFilter(e.row)?a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.onRefundDetail(e.row.order_sn)}}},[t._v("查看退款单")]):t._e()],1)})),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.onOrderDetails(e.row.order_id)}}},[t._v("详情")])]}}])})],1),t._v(" "),a("div",{staticClass:"block"},[a("el-pagination",{attrs:{"page-sizes":[20,40,60,80],"page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"total, sizes, prev, pager, next, jumper",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1),t._v(" "),a("file-list",{ref:"exportList"}),t._v(" "),a("details-from",{ref:"orderDetail"})],1)},i=[],s=a("c7eb"),n=(a("96cf"),a("1da1")),o=(a("ac6a"),a("f8b7")),l=a("c4c8"),d=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[t.dialogVisible?r("el-dialog",{attrs:{title:"订单信息",visible:t.dialogVisible,width:"700px"},on:{"update:visible":function(e){t.dialogVisible=e}}},[r("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}]},[t.orderDatalist?r("div",{staticClass:"description"},[r("div",{staticClass:"title"},[t._v("收货信息")]),t._v(" "),r("div",{staticClass:"acea-row"},[r("div",{staticClass:"description-term"},[t._v("用户昵称:"+t._s(t.orderDatalist.user.nickname))]),t._v(" "),r("div",{staticClass:"description-term"},[t._v("收货人/订购人:"+t._s(t.orderDatalist.real_name))]),t._v(" "),r("div",{staticClass:"description-term"},[t._v("联系电话:"+t._s(t.orderDatalist.user_phone))]),t._v(" "),r("div",{staticClass:"description-term"},[t._v("收货地址:"+t._s(t.orderDatalist.user_address))])]),t._v(" "),r("el-divider"),t._v(" "),r("div",{staticClass:"title"},[t._v("订单信息")]),t._v(" "),r("div",{staticClass:"acea-row"},[r("div",{staticClass:"description-term"},[t._v("订单编号:"+t._s(t.orderDatalist.order_sn))]),t._v(" "),0!==t.orderDatalist.order_type||t.orderDatalist.pay_time?t._e():r("div",{staticClass:"description-term"},[t._v("订单状态:待付款")]),t._v(" "),0===t.orderDatalist.order_type&&t.orderDatalist.pay_time?r("div",{staticClass:"description-term"},[t._v("订单状态:"+t._s(t._f("orderStatusFilter")(t.orderDatalist.status)))]):t._e(),t._v(" "),r("div",{staticClass:"description-term"},[t._v("商品总数:"+t._s(t.orderDatalist.total_num))]),t._v(" "),r("div",{staticClass:"description-term"},[t._v("商品总价:"+t._s(t.orderDatalist.total_price))]),t._v(" "),r("div",{staticClass:"description-term"},[t._v("交付邮费:"+t._s(t.orderDatalist.pay_postage))]),t._v(" "),r("div",{staticClass:"description-term"},[t._v("优惠券金额:"+t._s(t.orderDatalist.coupon_price))]),t._v(" "),r("div",{staticClass:"description-term"},[t._v("实际支付:"+t._s(t.orderDatalist.finalOrder?parseFloat(t.orderDatalist.finalOrder.pay_price)+parseFloat(t.orderDatalist.pay_price):t.orderDatalist.pay_price))]),t._v(" "),t.orderDatalist.integral>0?r("div",{staticClass:"description-term"},[t._v("积分抵扣:使用了"+t._s(t.orderDatalist.integral)+"个积分,抵扣了"+t._s(t.orderDatalist.integral_price)+"元")]):t._e(),t._v(" "),t.orderDatalist.give_integral>0?r("div",{staticClass:"description-term"},[t._v("赠送积分:"+t._s(t.orderDatalist.give_integral)+"个")]):t._e(),t._v(" "),r("div",{staticClass:"description-term"},[t._v("创建时间:"+t._s(t.orderDatalist.create_time))]),t._v(" "),r("div",{staticClass:"description-term"},[t._v("支付方式:"+t._s(t._f("payTypeFilter")(t.orderDatalist.pay_type)))]),t._v(" "),r("div",{staticClass:"description-term"},[t._v("\n 一级佣金:"+t._s(parseFloat(t.orderDatalist.extension_one)+parseFloat(t.orderDatalist.refund_extension_one))+"\n "),t.orderDatalist.refund_extension_one>0?r("em",{staticStyle:{color:"red","font-style":"normal"}},[t._v("(-"+t._s(t.orderDatalist.refund_extension_one)+")")]):t._e()]),t._v(" "),r("div",{staticClass:"description-term"},[t._v("\n 二级佣金:"+t._s(parseFloat(t.orderDatalist.extension_two)+parseFloat(t.orderDatalist.refund_extension_two))+"\n "),t.orderDatalist.refund_extension_two>0?r("em",{staticStyle:{color:"red","font-style":"normal"}},[t._v("(-"+t._s(t.orderDatalist.refund_extension_two)+")")]):t._e()]),t._v(" "),t.orderDatalist.svip_discount?r("div",{staticClass:"description-term"},[t._v("SVIP商品价优惠: "+t._s(t.orderDatalist.svip_discount))]):t._e(),t._v(" "),r("div",{staticClass:"description-term"},[t._v("商家备注:"+t._s(t.orderDatalist.remark))])]),t._v(" "),[r("el-divider"),t._v(" "),r("div",{staticClass:"title"},[t._v("操作记录")]),t._v(" "),r("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.LogLoading,expression:"LogLoading"}],staticStyle:{width:"100%"},attrs:{border:"",data:t.tableDataLog.data}},[r("el-table-column",{attrs:{prop:"order_id",align:"center",label:"订单ID","min-width":"80"}}),t._v(" "),r("el-table-column",{attrs:{prop:"change_message",label:"操作记录",align:"center","min-width":"280"}}),t._v(" "),r("el-table-column",{attrs:{prop:"change_time",label:"操作时间",align:"center","min-width":"280"}})],1),t._v(" "),r("div",{staticClass:"block"},[r("el-pagination",{attrs:{"page-sizes":[20,40,60,80],"page-size":t.tableFromLog.limit,"current-page":t.tableFromLog.page,layout:"total, sizes, prev, pager, next, jumper",total:t.tableDataLog.total},on:{"size-change":t.handleSizeChangeLog,"current-change":t.pageChangeLog}})],1)],t._v(" "),"1"===t.orderDatalist.delivery_type?[r("el-divider"),t._v(" "),r("div",{staticClass:"title"},[t._v("物流信息")]),t._v(" "),r("div",{staticClass:"acea-row"},[r("div",{staticClass:"description-term"},[t._v("快递公司:"+t._s(t.orderDatalist.delivery_name))]),t._v(" "),r("div",{staticClass:"description-term"},[t._v("\n 快递单号:"+t._s(t.orderDatalist.delivery_id)+"\n "),r("el-button",{staticStyle:{"margin-left":"5px"},attrs:{type:"primary",size:"mini"},on:{click:t.openLogistics}},[t._v("物流查询")])],1)])]:t._e(),t._v(" "),"2"===t.orderDatalist.delivery_type?[r("el-divider"),t._v(" "),r("div",{staticClass:"title"},[t._v("配送信息")]),t._v(" "),r("div",{staticClass:"acea-row"},[r("div",{staticClass:"description-term"},[t._v("送货人姓名:"+t._s(t.orderDatalist.delivery_name))]),t._v(" "),r("div",{staticClass:"description-term"},[t._v("送货人电话:"+t._s(t.orderDatalist.delivery_id))])])]:t._e(),t._v(" "),t.orderDatalist.mark?[r("el-divider"),t._v(" "),r("div",{staticClass:"title"},[t._v("用户备注")]),t._v(" "),r("div",{staticClass:"acea-row"},[r("div",{staticClass:"description-term"},[t._v(t._s(t.orderDatalist.mark))])])]:t._e()],2):t._e()])]):t._e(),t._v(" "),t.dialogLogistics?r("el-dialog",{attrs:{title:"物流查询",visible:t.dialogLogistics,width:"350px","before-close":t.handleClose},on:{"update:visible":function(e){t.dialogLogistics=e}}},[r("div",{staticClass:"logistics acea-row row-top"},[r("div",{staticClass:"logistics_img"},[r("img",{attrs:{src:a("bd9b")}})]),t._v(" "),r("div",{staticClass:"logistics_cent"},[r("span",[t._v("物流公司:"+t._s(t.orderDatalist.delivery_name))]),t._v(" "),r("span",[t._v("物流单号:"+t._s(t.orderDatalist.delivery_id))])])]),t._v(" "),r("div",{staticClass:"acea-row row-column-around trees-coadd"},[r("div",{staticClass:"scollhide"},[r("el-timeline",t._l(t.result,(function(e,a){return r("el-timeline-item",{key:a},[r("p",{staticClass:"time",domProps:{textContent:t._s(e.time)}}),t._v(" "),r("p",{staticClass:"content",domProps:{textContent:t._s(e.status)}})])})),1)],1)])]):t._e()],1)},c=[],u={name:"OrderDetail",data:function(){return{dialogVisible:!1,dialogLogistics:!1,loading:!1,order_id:"",tableFromLog:{page:1,limit:10},tableDataLog:{data:[],total:0},LogLoading:!1,result:[],orderDatalist:null}},mounted:function(){},methods:{onOrderDetails:function(t){var e=this;this.order_id=t,this.loading=!0,Object(o["k"])(t).then((function(t){e.orderDatalist=t.data,e.loading=!1})).catch((function(t){var a=t.message;e.loading=!1,e.$message.error(a)}))},openLogistics:function(){this.getOrderData(),this.dialogLogistics=!0},handleClose:function(){this.dialogLogistics=!1},onOrderLog:function(t){var e=this;this.dialogVisible=!0,this.LogLoading=!0,Object(o["m"])(t,this.tableFromLog).then((function(t){e.tableDataLog.data=t.data.list,e.tableDataLog.total=t.data.count,e.LogLoading=!1})).catch((function(t){e.$message.error(t.message),e.LogLoading=!1}))},pageChangeLog:function(t){this.tableFromLog.page=t,this.onOrderLog(this.order_id)},handleSizeChangeLog:function(t){this.tableFromLog.limit=t,this.onOrderLog(this.order_id)},getOrderData:function(){var t=this;Object(o["i"])(this.orderDatalist.order_id).then(function(){var e=Object(n["a"])(Object(s["a"])().mark((function e(a){return Object(s["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.result=a.data;case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.$message.error(e.message)}))}}},_=u,m=(a("7baf"),a("2877")),p=Object(m["a"])(_,d,c,!1,null,"4016b250",null),v=p.exports,f=a("30dc"),g=a("2e83"),h=a("0f56"),b=a("e572"),y={components:{detailsFrom:v,cardsData:h["a"],fileList:f["a"]},data:function(){return{orderId:0,tableData:{data:[],total:0},activity:[{name:"普通订单",type:0},{name:"秒杀订单",type:1},{name:"预售订单",type:2},{name:"助力订单",type:3},{name:"拼团订单",type:4}],listLoading:!0,tableFrom:{order_sn:this.$route.query.order_sn?this.$route.query.order_sn:"",group_order_sn:"",keywords:"",username:"",store_name:"",status:"",date:"",mer_id:"",page:1,limit:20,is_trader:"",activity_type:""},orderChartType:{},headeNum:[],timeVal:[],fromList:b["a"],selectionList:[],ids:"",tableFromLog:{page:1,limit:10},tableDataLog:{data:[],total:0},LogLoading:!1,dialogVisible:!1,cardLists:[],orderDatalist:null,merSelect:[]}},mounted:function(){this.$route.query.hasOwnProperty("order_sn")?this.tableFrom.order_sn=this.$route.query.order_sn:this.tableFrom.order_sn="",this.headerList(),this.getMerSelect(),this.getCardList(),this.getList("")},activated:function(){this.$route.query.hasOwnProperty("order_sn")?this.tableFrom.order_sn=this.$route.query.order_sn:this.tableFrom.order_sn="",this.headerList(),this.getMerSelect(),this.getCardList(),this.getList("")},methods:{onRefundDetail:function(t){console.log(t,"sn"),this.$router.push({path:"refund",query:{sn:t}})},orderFilter:function(t){var e=!1;return t.orderProduct.forEach((function(t){t.refund_num>0&&t.refund_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(l["P"])().then((function(e){t.merSelect=e.data})).catch((function(e){t.$message.error(e.message)}))},exports:function(){var t=Object(n["a"])(Object(s["a"])().mark((function t(){var e,a,r,i,n;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,r=1,i={},n=0;case 5:if(!(n<r)){t.next=14;break}return t.next=8,this.downData(e);case 8:i=t.sent,r=Math.ceil(i.count/e.limit),i.export.length&&(a=a.concat(i.export),e.page++);case 11:n++,t.next=5;break;case 14:return Object(g["a"])(i.header,i.title,a,i.foot,i.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(o["g"])(t).then((function(t){return e(t.data)}))}))},exportRecord:function(){var t=this;Object(o["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.dialogVisible=!0,this.$refs.orderDetail.onOrderDetails(t),this.$refs.orderDetail.onOrderLog(t)},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(o["l"])(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(o["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(o["b"])().then((function(e){t.orderChartType=e.data})).catch((function(e){t.$message.error(e.message)}))}}},w=y,C=(a("bd25"),Object(m["a"])(w,r,i,!1,null,"67f40fa4",null));e["default"]=C.exports},"7baf":function(t,e,a){"use strict";a("dc11")},a356d:function(t,e,a){},bd25:function(t,e,a){"use strict";a("a356d")},bd9b:function(t,e){t.exports="data:image/jpeg;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAKEUlEQVR4nO2de3AV1R3HP3uS8EhCkCSAQCLgRZ6RV7Hgo47hpVNgpp3+UZ2llpbOFIUqdWzR6UzpdOqMqFNHq4KMDzp6a/tHO50B2goIVqmCVV4KymMFTAiPJghXbohJ2O0fZwOX5J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jOBGgnkZwcdI75pvcaW9jMAL10gxCRhJx9dhFHGptcbdnwbkXLXtdRgHkK/DSDrpD4v/AyTig4w83FS9AAAAAElFTkSuQmCC"},dc11:function(t,e,a){},e572:function(t,e,a){"use strict";a.d(e,"c",(function(){return r})),a.d(e,"a",(function(){return i})),a.d(e,"b",(function(){return s}));var r=[{label:"开启",value:1},{label:"关闭",value:0}],i={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"}]}},f8b7:function(t,e,a){"use strict";a.d(e,"l",(function(){return i})),a.d(e,"b",(function(){return s})),a.d(e,"a",(function(){return n})),a.d(e,"n",(function(){return o})),a.d(e,"j",(function(){return l})),a.d(e,"k",(function(){return d})),a.d(e,"m",(function(){return c})),a.d(e,"r",(function(){return u})),a.d(e,"i",(function(){return _})),a.d(e,"g",(function(){return m})),a.d(e,"h",(function(){return p})),a.d(e,"f",(function(){return v})),a.d(e,"t",(function(){return f})),a.d(e,"u",(function(){return g})),a.d(e,"s",(function(){return h})),a.d(e,"e",(function(){return b})),a.d(e,"d",(function(){return y})),a.d(e,"c",(function(){return w})),a.d(e,"q",(function(){return C})),a.d(e,"p",(function(){return L})),a.d(e,"o",(function(){return D}));var r=a("0c6d");function i(t){return r["a"].get("order/lst",t)}function s(){return r["a"].get("order/chart")}function n(t){return r["a"].get("order/title",t)}function o(t){return r["a"].get("store/order/update/".concat(t,"/form"))}function l(t){return r["a"].get("store/order/delivery/".concat(t,"/form"))}function d(t){return r["a"].get("order/detail/".concat(t))}function c(t,e){return r["a"].get("order/status/".concat(t),e)}function u(t){return r["a"].get("order/refund/lst",t)}function _(t){return r["a"].get("order/express/".concat(t))}function m(t){return r["a"].get("order/excel",t)}function p(t){return r["a"].get("order/refund/excel",t)}function v(t){return r["a"].get("excel/lst",t)}function f(){return r["a"].get("order/takechart")}function g(t){return r["a"].get("order/takelst",t)}function h(t){return r["a"].get("order/take_title",t)}function b(){return r["a"].get("excel/type")}function y(t){return r["a"].get("delivery/order/lst",t)}function w(t){return r["a"].get("delivery/order/cancel/".concat(t,"/form"))}function C(t){return r["a"].get("delivery/station/payLst",t)}function L(){return r["a"].get("delivery/title")}function D(){return r["a"].get("delivery/belence")}}}]);