chunk-2a7fee7a.43b6446b.js 27 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2a7fee7a"],{"0848":function(t,e,a){"use strict";a("df28")},"1d88":function(t,e,a){},2481:function(t,e,a){"use strict";a("1d88")},df28:function(t,e,a){},f52f9:function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"divBox"},[a("div",{staticClass:"selCard"},[a("el-form",{ref:"searchForm",attrs:{size:"small",inline:"",model:t.tableFrom,"label-width":"90px"}},[a("el-form-item",{staticClass:"width100",attrs:{label:"退款单状态:",prop:"status"}},[a("el-radio-group",{attrs:{type:"button"},on:{change:function(e){return t.getList(1)}},model:{value:t.tableFrom.status,callback:function(e){t.$set(t.tableFrom,"status",e)},expression:"tableFrom.status"}},[a("el-radio-button",{attrs:{label:""}},[t._v("全部\n "+t._s(t.orderChartType.all))]),t._v(" "),a("el-radio-button",{attrs:{label:"0"}},[t._v("待审核\n "+t._s(t.orderChartType.audit))]),t._v(" "),a("el-radio-button",{attrs:{label:"-1"}},[t._v("审核未通过\n "+t._s(t.orderChartType.refuse))]),t._v(" "),a("el-radio-button",{attrs:{label:"1"}},[t._v("审核通过\n "+t._s(t.orderChartType.agree))]),t._v(" "),a("el-radio-button",{attrs:{label:"2"}},[t._v("待收货\n "+t._s(t.orderChartType.backgood))]),t._v(" "),a("el-radio-button",{attrs:{label:"4"}},[t._v("维权中\n "+t._s(t.orderChartType.platform))]),t._v(" "),a("el-radio-button",{attrs:{label:"3"}},[t._v("已完成\n "+t._s(t.orderChartType.end))])],1)],1),t._v(" "),a("el-form-item",{attrs:{label:"时间选择:"}},[a("el-date-picker",{staticStyle:{width:"280px"},attrs:{"value-format":"yyyy/MM/dd",format:"yyyy/MM/dd",size:"small",type:"daterange",placement:"bottom-end","start-placeholder":"开始时间","end-placeholder":"结束时间","picker-options":t.pickerOptions},on:{change:t.onchangeTime},model:{value:t.timeVal,callback:function(e){t.timeVal=e},expression:"timeVal"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"商户类别:",prop:"is_trader"}},[a("el-select",{staticClass:"selWidth",attrs:{clearable:"",placeholder:"请选择"},on:{change:function(e){return t.getList(1)}},model:{value:t.tableFrom.is_trader,callback:function(e){t.$set(t.tableFrom,"is_trader",e)},expression:"tableFrom.is_trader"}},[a("el-option",{attrs:{label:"自营",value:"1"}}),t._v(" "),a("el-option",{attrs:{label:"非自营",value:"0"}})],1)],1),t._v(" "),a("el-form-item",{attrs:{label:"退款单号:",prop:"refund_order_sn"}},[a("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入订单号",clearable:""},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getList(1)}},model:{value:t.tableFrom.refund_order_sn,callback:function(e){t.$set(t.tableFrom,"refund_order_sn",e)},expression:"tableFrom.refund_order_sn"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"订单单号:",prop:"order_sn"}},[a("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入订单号",clearable:""},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getList(1)}},model:{value:t.tableFrom.order_sn,callback:function(e){t.$set(t.tableFrom,"order_sn",e)},expression:"tableFrom.order_sn"}})],1),t._v(" "),a("select-search",{ref:"selectSearch",attrs:{select:t.select,searchSelectList:t.searchSelectList},on:{search:t.searchList}}),t._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary",size:"small"},on:{click:t.getSearchList}},[t._v("搜索")]),t._v(" "),a("el-button",{attrs:{size:"small"},on:{click:function(e){return t.searchReset()}}},[t._v("重置")])],1)],1)],1),t._v(" "),a("el-card",{staticClass:"mt14"},[a("el-button",{staticClass:"mb20",attrs:{size:"small",type:"primary"},on:{click:t.exports}},[t._v("导出列表")]),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticClass:"table",attrs:{data:t.tableData.data,size:"small","highlight-current-row":""}},[a("el-table-column",{attrs:{type:"expand"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-form",{staticClass:"demo-table-expand demo-table-expands",attrs:{"label-position":"left",inline:""}},[a("el-form-item",{attrs:{label:"退款商品总价:"}},[a("span",[t._v(t._s(t.getTotal(e.row.refundProduct)))])]),t._v(" "),a("el-form-item",{attrs:{label:"退款商品总数:"}},[a("span",[t._v(t._s(e.row.refund_num))])]),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.mer_mark)))])])],1)]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"退款单号","min-width":"180"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{staticStyle:{display:"block"},domProps:{textContent:t._s(e.row.refund_order_sn)}}),t._v(" "),4==e.row.status?a("span",{staticStyle:{color:"#ED4014",display:"block"}},[t._v("平台介入")]):t._e(),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:{prop:"user.nickname",label:"用户信息","min-width":"120"}}),t._v(" "),a("el-table-column",{attrs:{prop:"merchant.mer_name",label:"商户名称","min-width":"120"}}),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:{prop:"refund_price",label:"退款金额","min-width":"100"}}),t._v(" "),a("el-table-column",{attrs:{prop:"nickname",label:"商品信息","min-width":"260"},scopedSlots:t._u([{key:"default",fn:function(e){return t._l(e.row.refundProduct,(function(e,s){return a("div",{key:s,staticClass:"tabBox acea-row row-middle"},[a("div",{staticClass:"demo-image__preview"},[a("el-image",{attrs:{src:e.product&&e.product.cart_info.product.image,"preview-src-list":[e.product&&e.product.cart_info.product.image]}})],1),t._v(" "),a("span",{staticClass:"tabBox_tit"},[t._v(t._s(e.product&&e.product.cart_info.product.store_name+" | ")+t._s(e.product&&e.product.cart_info.productAttr.sku))]),t._v(" "),a("span",{staticClass:"tabBox_pice"},[t._v(t._s("¥"+e.product.cart_info.productAttr.price+" x "+e.product.product_num))])])}))}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"serviceScore",label:"退款单状态","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{staticClass:"tags",class:"tag-color"+e.row.status},[t._v(t._s(t._f("orderRefundFilter")(e.row.status)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"说明","min-width":"220"},scopedSlots:t._u([{key:"default",fn:function(e){return[-1==e.row.status?a("span",{staticStyle:{display:"block"}},[t._v("拒绝原因:"+t._s(e.row.fail_message))]):t._e(),t._v(" "),a("span",{staticStyle:{display:"block"}},[t._v("退款原因:"+t._s(e.row.refund_message))]),t._v(" "),a("span",{staticStyle:{display:"block"}},[t._v("状态变更:"+t._s(e.row.status_time))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作","min-width":"180",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[4==e.row.status?a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.protectionReview(e.row)}}},[t._v("维权审核")]):t._e(),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.onOrderDetail(e.row.order.order_id)}}},[t._v("订单详情")]),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.onRefundOrderDetail(e.row.refund_order_id)}}},[t._v("退款单详情")])]}}])})],1),t._v(" "),a("div",{staticClass:"block"},[a("el-pagination",{attrs:{background:"","page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"total, prev, pager, next, jumper",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1),t._v(" "),a("order-detail",{ref:"orderDetail",attrs:{orderId:t.orderId,disabled:!0,drawer:t.drawer},on:{closeDrawer:t.closeDrawer,changeDrawer:t.changeDrawer,getList:t.getList}}),t._v(" "),a("refund-details",{ref:"refundDetails",attrs:{orderId:t.orderId,disabled:!0,drawer:t.refundDrawer},on:{protectionReview:t.protectionReview,closeDrawer:t.closeRefundDrawer,changeDrawer:t.changeRefundDrawer,getList:t.getList}}),t._v(" "),a("el-dialog",{attrs:{title:"退款审核弹窗",visible:t.plantVisible,width:"600px"},on:{"update:visible":function(e){t.plantVisible=e}}},[a("el-form",{ref:"saveForm",attrs:{model:t.forms,"label-width":"100px",size:"small",rules:t.ruleValidate},nativeOn:{submit:function(t){t.preventDefault()}}},[a("el-form-item",{attrs:{label:"审核结果:"}},[a("el-radio-group",{model:{value:t.forms.status,callback:function(e){t.$set(t.forms,"status",e)},expression:"forms.status"}},[a("el-radio",{attrs:{label:1}},[t._v("同意")]),t._v(" "),a("el-radio",{attrs:{label:0}},[t._v("拒绝")])],1)],1),t._v(" "),0==t.forms.status?a("el-form-item",{attrs:{label:"填写原因:",prop:"platform_mark"}},[a("el-input",{attrs:{placeholder:"请输入拒绝原因,最多可输入50字",maxlength:"50",type:"textarea",autosize:{minRows:3,maxRows:5}},model:{value:t.forms.platform_mark,callback:function(e){t.$set(t.forms,"platform_mark",e)},expression:"forms.platform_mark"}})],1):t._e()],1),t._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{size:"small"},on:{click:function(e){t.plantVisible=!1}}},[t._v("取 消")]),t._v(" "),a("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(e){return t.submitForm("saveForm")}}},[t._v("确 定")])],1)],1)],1)},r=[],i=a("db72"),l=a("c80c"),o=(a("96cf"),a("3b8d")),n=(a("7f7f"),a("f8b7")),d=a("2e83"),c=a("e572"),u=a("83d6"),_=a("0b65"),v=a("a053"),m=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("el-drawer",{attrs:{"with-header":!1,visible:t.drawer,size:"1000px",direction:t.direction,"before-close":t.handleClose},on:{"update:visible":function(e){t.drawer=e}}},[a("div",[a("div",{staticClass:"head"},[a("div",{staticClass:"full"},[a("img",{staticClass:"order_icon",attrs:{src:t.orderImg,alt:""}}),t._v(" "),a("div",{staticClass:"text"},[a("div",{staticClass:"title"},[t._v("退款单信息-"+t._s(1==t.orderDatalist.refund_type?"仅退款":"退货退款"))]),t._v(" "),t.orderDatalist.order?a("div",[a("span",{staticClass:"mr20"},[t._v("订单编号:"+t._s(t.orderDatalist.order.order_sn))])]):t._e()]),t._v(" "),a("div",[4==t.orderDatalist.status?a("el-button",{attrs:{type:"primary",size:"small"},on:{click:t.protectionReview}},[t._v("维权审核")]):t._e()],1)]),t._v(" "),a("ul",{staticClass:"list"},[a("li",{staticClass:"item"},[a("div",{staticClass:"title"},[t._v("退款单状态")]),t._v(" "),a("div",[a("div",{staticClass:"value1"},[t._v(t._s(t._f("orderRefundFilter")(t.orderDatalist.status)))])])]),t._v(" "),a("li",{staticClass:"item"},[a("div",{staticClass:"title"},[t._v("实际退款")]),t._v(" "),a("div",[t._v("\n ¥"+t._s(t.orderDatalist.refund_price)+"\n ")])]),t._v(" "),a("li",{staticClass:"item"},[a("div",{staticClass:"title"},[t._v("退回方式")]),t._v(" "),a("div",[t._v("原路返回")])]),t._v(" "),a("li",{staticClass:"item"},[a("div",{staticClass:"title"},[t._v("申请退款时间")]),t._v(" "),a("div",[t._v(t._s(t.orderDatalist.create_time))])])])]),t._v(" "),a("el-tabs",{attrs:{type:"border-card"},on:{"tab-click":t.tabClick},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"订单信息",name:"detail"}},[t.orderDatalist.user?a("div",{staticClass:"section"},[a("div",{staticClass:"title"},[t._v("用户信息")]),t._v(" "),a("ul",{staticClass:"list"},[a("li",{staticClass:"item"},[a("div",[t._v("用户昵称:")]),t._v(" "),a("div",{staticClass:"value"},[t._v("\n "+t._s(t.orderDatalist.user.nickname+" | "+t.orderDatalist.user.uid||"-")+"\n ")])]),t._v(" "),a("li",{staticClass:"item"},[a("div",[t._v("用户电话:")]),t._v(" "),a("div",{staticClass:"value"},[t._v(t._s(t.orderDatalist.order.user_phone))])])])]):t._e(),t._v(" "),a("div",{staticClass:"section"},[a("div",{staticClass:"title"},[t._v("售后提交信息")]),t._v(" "),a("ul",{staticClass:"list"},[a("li",{staticClass:"item"},[a("div",[t._v("退款总件数:")]),t._v(" "),a("div",{staticClass:"value"},[t._v(t._s(t.orderDatalist.refund_num))])]),t._v(" "),a("li",{staticClass:"item"},[a("div",[t._v("退款原因:")]),t._v(" "),a("div",{staticClass:"value"},[t._v(t._s(t.orderDatalist.refund_message))])]),t._v(" "),a("li",{staticClass:"item"},[a("div",[t._v("退款发起方:")]),t._v(" "),a("div",{staticClass:"value"},[t._v(t._s(t.orderDatalist.create_user))])]),t._v(" "),a("li",{staticClass:"item item100"},[a("div",[t._v("用户备注:")]),t._v(" "),a("div",{staticClass:"value"},[t._v(t._s(t.orderDatalist.mark))])]),t._v(" "),a("li",{staticClass:"item item100"},[a("div",[t._v("退款凭证:")]),t._v(" "),a("div",{staticClass:"value"},[a("div",{staticClass:"product_name"},[a("div",{staticClass:"demo-image__preview"},t._l(t.orderDatalist.pics,(function(t,e){return a("el-image",{key:e,staticClass:"mr5",attrs:{src:t,"preview-src-list":[t]}})})),1)])])])])]),t._v(" "),2==t.orderDatalist.refund_type&&2==t.orderDatalist.status?a("div",{staticClass:"section"},[a("div",{staticClass:"title"},[t._v("退货地址信息")]),t._v(" "),a("ul",{staticClass:"list"},[a("li",{staticClass:"item"},[a("div",[t._v("退货联系人:")]),t._v(" "),a("div",{staticClass:"value"},[t._v(t._s(t.orderDatalist.mer_delivery_user))])]),t._v(" "),a("li",{staticClass:"item"},[a("div",[t._v("联系电话:")]),t._v(" "),a("div",{staticClass:"value"},[t._v(t._s(t.orderDatalist.phone))])]),t._v(" "),a("li",{staticClass:"item"},[a("div",[t._v("退货地址:")]),t._v(" "),a("div",{staticClass:"value"},[t._v("\n "+t._s(t.orderDatalist.mer_delivery_address)+"\n ")])])])]):t._e(),t._v(" "),t.orderDatalist.delivery_phone?a("div",{staticClass:"section"},[a("div",{staticClass:"title"},[t._v("用户退货信息")]),t._v(" "),a("ul",{staticClass:"list"},[a("li",{staticClass:"item"},[a("div",[t._v("联系电话:")]),t._v(" "),a("div",{staticClass:"value"},[t._v(t._s(t.orderDatalist.delivery_phone))])]),t._v(" "),a("li",{staticClass:"item"},[a("div",[t._v("快递公司:")]),t._v(" "),a("div",{staticClass:"value"},[t._v("\n "+t._s(t.orderDatalist.delivery_type)+"\n ")])]),t._v(" "),a("li",{staticClass:"item"},[a("div",[t._v("物流单号:")]),t._v(" "),a("div",{staticClass:"value"},[t._v("\n "+t._s(t.orderDatalist.delivery_id)+"\n ")])])])]):t._e(),t._v(" "),a("div",{staticClass:"section"},[a("div",{staticClass:"title"},[t._v("商家备注")]),t._v(" "),a("ul",{staticClass:"list"},[a("li",{staticClass:"item item100"},[a("div",[t._v("商家备注:")]),t._v(" "),a("div",{staticClass:"value"},[t._v(t._s(t.orderDatalist.mer_mark))])])])]),t._v(" "),-1==t.orderDatalist.status?a("div",{staticClass:"section"},[a("div",{staticClass:"title"},[t._v("拒绝原因")]),t._v(" "),a("ul",{staticClass:"list"},[a("li",{staticClass:"item item100"},[a("div",[t._v("拒绝原因:")]),t._v(" "),a("div",{staticClass:"value"},[t._v(t._s(t.orderDatalist.fail_message))])])])]):t._e(),t._v(" "),t.orderDatalist.platform?a("div",{staticClass:"section"},[a("div",{staticClass:"title"},[t._v("平台介入")]),t._v(" "),a("ul",{staticClass:"list"},[a("li",{staticClass:"item"},[a("div",[t._v("审核结果:")]),t._v(" "),a("div",{staticClass:"value"},[t._v(t._s("refund_platform_refuse"==t.orderDatalist.platform.change_type?"拒绝退款":"同意退款"))])]),t._v(" "),t.orderDatalist.platform.change_message?a("li",{staticClass:"item"},[a("div",[t._v("原因说明:")]),t._v(" "),a("div",{staticClass:"value"},[t._v(t._s(t.orderDatalist.platform.change_message))])]):t._e()])]):t._e()]),t._v(" "),a("el-tab-pane",{attrs:{label:"商品信息",name:"goods"}},[a("el-table",{attrs:{data:t.orderDatalist.refundProduct,size:"small"}},[a("el-table-column",{attrs:{label:"商品ID",prop:"order_product_id","min-width":"90"}}),t._v(" "),a("el-table-column",{attrs:{label:"商品信息","min-width":"300"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"tab"},[a("div",{staticClass:"demo-image__preview"},[a("el-image",{attrs:{src:e.row.product.cart_info.product.image,"preview-src-list":[e.row.product.cart_info.product.image]}})],1),t._v(" "),a("div",[a("div",[t._v(t._s(e.row.product.cart_info.product.store_name))]),t._v(" "),a("div",{staticClass:"line1 gary"},[t._v("\n 规格:"+t._s(e.row.product.cart_info.productAttr.sku?e.row.product.cart_info.productAttr.sku:"默认")+"\n ")])])])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"售价(元)","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"tab"},[a("div",{staticClass:"line1"},[t._v("\n "+t._s(e.row.product.cart_info.productAttr.price?e.row.product.cart_info.productAttr.price:"-")+"\n ")])])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"退款数量","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"tab"},[a("div",{staticClass:"line1"},[t._v("\n "+t._s(e.row.refund_num)+"\n ")])])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"实付金额(元)","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"tab"},[a("div",{staticClass:"line1"},[t._v("\n "+t._s(e.row.product.total_price||"-")+"\n ")])])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"退款金额(元)","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"tab"},[a("div",{staticClass:"line1"},[t._v("\n "+t._s(e.row.refund_price?e.row.refund_price:"-")+"\n ")])])]}}])})],1)],1),t._v(" "),a("el-tab-pane",{attrs:{label:"订单记录",name:"orderList"}},[a("div",[a("el-form",{attrs:{size:"small","label-width":"80px"}},[a("div",{staticClass:"acea-row"},[a("el-form-item",{attrs:{label:"操作端:"}},[a("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"}},[a("el-option",{attrs:{label:"系统",value:"0"}}),t._v(" "),a("el-option",{attrs:{label:"用户",value:"1"}}),t._v(" "),a("el-option",{attrs:{label:"平台",value:"2"}}),t._v(" "),a("el-option",{attrs:{label:"商户",value:"3"}}),t._v(" "),a("el-option",{attrs:{label:"商家客服",value:"4"}})],1)],1),t._v(" "),a("el-form-item",{attrs:{label:"操作时间:"}},[a("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(" "),a("el-table",{attrs:{data:t.tableDataLog.data,size:"small"}},[a("el-table-column",{attrs:{prop:"order_id",label:"订单编号","min-width":"200"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.order_sn))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作记录","min-width":"200"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.change_message))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作角色","min-width":"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"tab"},[a("div",[t._v(t._s(t.operationType(e.row.user_type)))])])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作人","min-width":"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"tab"},[a("div",[t._v(t._s(e.row.nickname))])])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作时间","min-width":"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"tab"},[a("div",{staticClass:"line1"},[t._v(t._s(e.row.change_time))])])]}}])})],1),t._v(" "),a("div",{staticClass:"block"},[a("el-pagination",{attrs:{"page-size":t.tableFromLog.limit,"current-page":t.tableFromLog.page,layout:"prev, pager, next, jumper",total:t.tableDataLog.total},on:{"size-change":t.handleSizeChangeLog,"current-change":t.pageChangeLog}})],1)],1)],1)],1)])],1)},p=[],f={components:{},props:{drawer:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},data:function(){return{loading:!0,orderId:"",direction:"rtl",activeName:"detail",goodsList:[],timeVal:[],orderConfirm:!1,sendGoods:!1,dialogLogistics:!1,confirmReceiptForm:{id:""},tableDataLog:{data:[],total:0},contentList:[],nicknameList:[],result:[],orderDatalist:{},orderImg:a("ea8b"),tableFromLog:{user_type:"",date:[],page:1,limit:10}}},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.tableFromLog.date=[]},protectionReview:function(){this.$emit("protectionReview",this.orderId)},getRefundInfo:function(t){var e=this;this.loading=!0,this.orderId=t,Object(n["t"])(t).then((function(a){e.orderDatalist=a.data,e.loading=!1,e.onOrderLog(t)})).catch((function(t){var a=t.message;e.loading=!1,e.$message.error(a)}))},tabClick:function(t){"orderList"===t.name&&this.onOrderLog(this.orderId)},onOrderLog:function(t){var e=this;Object(n["v"])(t,this.tableFromLog).then((function(t){e.tableDataLog.data=t.data.list,e.tableDataLog.total=t.data.count})).catch((function(t){e.$message.error(t.message)}))},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?"商家客服":"未知"}}},b=f,h=(a("2481"),a("2877")),g=Object(h["a"])(b,m,p,!1,null,"2970fce2",null),C=g.exports,w=a("6e76"),y={components:{orderDetail:v["a"],refundDetails:C,selectSearch:w["default"]},name:"OrderRefund",data:function(){return{pickerOptions:_["a"],orderId:0,roterPre:u["roterPre"],tableData:{data:[],total:0},listLoading:!0,select:"nickname",searchSelectList:[{label:"昵称",value:"nickname"},{label:"用户ID",value:"uid"},{label:"手机号",value:"phone"}],tableFrom:{refund_order_sn:this.$route.query.refund_order_sn?this.$route.query.refund_order_sn:"",order_sn:"",status:"",date:"",page:1,limit:20,is_trader:""},orderChartType:{},timeVal:[],fromList:c["a"],selectionList:[],ids:"",tableFromLog:{page:1,limit:10},tableDataLog:{data:[],total:0},LogLoading:!1,dialogVisible:!1,cardLists:[],orderDatalist:null,drawer:!1,refundDrawer:!1,plantVisible:!1,refundOrderId:"",forms:{status:1,platform_mark:""},ruleValidate:{platform_mark:[{required:!0,message:"请输入拒绝原因",trigger:"blur"}]}}},mounted:function(){this.$route.query.hasOwnProperty("sn")?this.tableFrom.order_sn=this.$route.query.sn:this.tableFrom.order_sn="",this.getList("")},activated:function(){this.$route.query.hasOwnProperty("sn")?this.tableFrom.order_sn=this.$route.query.sn:this.tableFrom.order_sn="",this.getList("")},methods:{searchReset:function(){this.timeVal=[],this.tableFrom.date="",this.$refs.searchForm.resetFields(),this.tableFrom.order_sn="",this.$refs.selectSearch.resetParmas()},changeDrawer:function(t){this.drawer=t},closeDrawer:function(){this.drawer=!1},onOrderDetail:function(t){this.orderId=t,this.$refs.orderDetail.getInfo(t),this.drawer=!0},onRefundOrderDetail:function(t){this.orderId=t,this.refundDrawer=!0,this.$refs.refundDetails.getRefundInfo(t)},changeRefundDrawer:function(t){this.refundDrawer=t},closeRefundDrawer:function(){this.refundDrawer=!1},protectionReview:function(t){this.refundOrderId=t.refund_order_id,this.plantVisible=!0},submitForm:function(t){var e=this;this.$refs[t].validate((function(t){if(!t)return!1;Object(n["p"])(e.refundOrderId,e.forms).then((function(t){e.$message.success(t.message),e.plantVisible=!1,e.getList(),e.$refs.refundDetails.getRefundInfo(e.refundOrderId)})).catch((function(t){e.$message.error(t.message)}))}))},exports:function(){var t=Object(o["a"])(Object(l["a"])().mark((function t(){var e,a,s,r,i;return Object(l["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e=JSON.parse(JSON.stringify(this.tableFrom)),a=[],e.page=1,s=1,r={},i=0;case 5:if(!(i<s)){t.next=14;break}return t.next=8,this.downData(e);case 8:r=t.sent,s=Math.ceil(r.count/e.limit),r.export.length&&(a=a.concat(r.export),e.page++);case 11:i++,t.next=5;break;case 14:return Object(d["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["h"])(t).then((function(t){return e(t.data)}))}))},getTotal:function(t){for(var e=0,a=0;a<t.length;a++)e+=t[a].product.cart_info.productAttr.price*t[a].refund_num;return e},pageChangeLog:function(t){this.tableFromLog.page=t,this.getList("")},handleSizeChangeLog:function(t){this.tableFromLog.limit=t,this.getList(1)},selectChange:function(t){this.tableFrom.date=t,this.tableFrom.page=1,this.timeVal=[],this.getList("")},onchangeTime:function(t){this.timeVal=t,this.tableFrom.date=t?this.timeVal.join("-"):"",this.tableFrom.page=1,this.getList("")},edit:function(t){var e=this;this.$modalForm(Object(n["o"])(t)).then((function(){return e.getList("")}))},send:function(t){var e=this;this.$modalForm(Object(n["k"])(t)).then((function(){return e.getList("")}))},searchList:function(t){this.tableFrom=Object(i["a"])(Object(i["a"])({},this.tableFrom),t),this.getList(1)},getSearchList:function(){this.$refs.selectSearch.changeSearch()},getList:function(t){var e=this;this.listLoading=!0,this.tableFrom.page=t||this.tableFrom.page,Object(n["u"])(this.tableFrom).then((function(t){e.tableData.data=t.data.list,e.tableData.total=t.data.count,e.orderChartType=t.data.stat,e.cardLists=t.data.stat,e.listLoading=!1})).catch((function(t){e.$message.error(t.message),e.listLoading=!1}))},pageChange:function(t){this.tableFrom.page=t,this.getList("")},handleSizeChange:function(t){this.tableFrom.limit=t,this.getList(1)}}},k=y,D=(a("0848"),Object(h["a"])(k,s,r,!1,null,"37f9afae",null));e["default"]=D.exports}}]);