| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7fc47a28"],{"0b65":function(t,e,a){"use strict";e["a"]={shortcuts:[{text:"今天",onClick:function(t){var e=new Date,a=new Date;a.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate())),t.$emit("pick",[a,e])}},{text:"昨天",onClick:function(t){var e=new Date,a=new Date;a.setTime(a.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-1))),e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-1))),t.$emit("pick",[a,e])}},{text:"最近7天",onClick:function(t){var e=new Date,a=new Date;a.setTime(a.getTime()-6048e5),t.$emit("pick",[a,e])}},{text:"最近30天",onClick:function(t){var e=new Date,a=new Date;a.setTime(a.getTime()-2592e6),t.$emit("pick",[a,e])}},{text:"本月",onClick:function(t){var e=new Date,a=new Date;a.setTime(a.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),1))),t.$emit("pick",[a,e])}},{text:"本年",onClick:function(t){var e=new Date,a=new Date;a.setTime(a.setTime(new Date((new Date).getFullYear(),0,1))),t.$emit("pick",[a,e])}}]}},"12ff":function(t,e,a){"use strict";a("c53e")},"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),l=a("21a6");function o(t,e,a,i,o,n){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,v=t.length;function m(t){var e=Array.isArray(t)?t[0]:t,a=Array.isArray(t)?t[1]:{};d=_.addWorksheet(e,a)}function p(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 b(t){if(!Object(r["isEmpty"])(t))for(var e=0;e<t.length;e++){for(var a=u,i=d.getRow(u),s=!1,l=0,o=0,n=0,c=0;c<t[e].length;c++)Array.isArray(t[e][c])?(l=n,s=!0,h(t[e][c],n),n+=t[e][c][0].length,o=n):(i.getCell(w(n)).value=t[e][c],i.getCell(w(n)).border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}},i.alignment={vertical:"middle",horizontal:"center"},n++);s&&y(a,u,l,o),i.height=25,i.commit(),u++}}function h(t,e){for(var a=t.length,r=a-1,i=0;i<t.length;i++){for(var s=d.getRow(u),l=0;l<t[i].length;l++)s.getCell(w(e+l)).value=t[i][l],s.getCell(w(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(),i<r&&u++}}function y(t,e,a,r){for(var i=0;i<v;i++)(i<a||i>=r)&&d.mergeCells(w(i)+t+":"+w(i)+e)}function C(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+":"+w(v-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+":"+w(v-1)+u)}}function w(t){if(t<26)return c[t];var e=Math.floor(t/26)-1,a=Math.floor(t%26);return c[a]+c[e]}function D(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(n),p(e,v),g(t),b(a),C(i),D(o)}},"3e81":function(t,e,a){"use strict";a.r(e);var r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"divBox"},[a("div",{staticClass:"selCard"},[a("div",{staticClass:"container"},[a("el-form",{ref:"searchForm",attrs:{model:t.tableFrom,size:"small","label-width":"85px",inline:""}},[a("el-form-item",{staticStyle:{display:"block"},attrs:{label:"订单状态:",prop:"status"}},[a("el-radio-group",{attrs:{type:"button"},on:{change:function(e){return t.getList(1)}},model:{value:t.tableFrom.status,callback:function(e){t.$set(t.tableFrom,"status",e)},expression:"tableFrom.status"}},[a("el-radio-button",{attrs:{label:""}},[t._v("全部 "+t._s(t.orderChartType.all))]),t._v(" "),a("el-radio-button",{attrs:{label:"0"}},[t._v("待审核 "+t._s(t.orderChartType.audit))]),t._v(" "),a("el-radio-button",{attrs:{label:"-1"}},[t._v("审核未通过 "+t._s(t.orderChartType.refuse))]),t._v(" "),a("el-radio-button",{attrs:{label:"1"}},[t._v("审核通过 "+t._s(t.orderChartType.agree))]),t._v(" "),a("el-radio-button",{attrs:{label:"2"}},[t._v("待收货 "+t._s(t.orderChartType.backgood))]),t._v(" "),a("el-radio-button",{attrs:{label:"4"}},[t._v("维权中 "+t._s(t.orderChartType.platform))]),t._v(" "),a("el-radio-button",{attrs:{label:"3"}},[t._v("已完成 "+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",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:"refund_order_sn"}},[a("el-input",{staticClass:"selWidth",attrs:{clearable:"",placeholder:"请输入退款单号"},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:"refund_type"}},[a("el-select",{staticClass:"selWidth",attrs:{placeholder:"请选择",clearable:""},on:{change:function(e){return t.getList(1)}},model:{value:t.tableFrom.refund_type,callback:function(e){t.$set(t.tableFrom,"refund_type",e)},expression:"tableFrom.refund_type"}},t._l(t.refundTypeList,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1),t._v(" "),a("el-form-item",{attrs:{label:"发起方:",prop:"user_type"}},[a("el-select",{staticClass:"selWidth",attrs:{placeholder:"请选择",clearable:""},on:{change:function(e){return t.getList(1)}},model:{value:t.tableFrom.user_type,callback:function(e){t.$set(t.tableFrom,"user_type",e)},expression:"tableFrom.user_type"}},t._l(t.refundUserList,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1),t._v(" "),a("el-form-item",{attrs:{label:"订单单号:",prop:"order_sn"}},[a("el-input",{staticClass:"selWidth",attrs:{clearable:"",placeholder:"请输入订单号"},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",{attrs:{label:"退货单号:",prop:"delivery_id"}},[a("el-input",{staticClass:"selWidth",attrs:{clearable:"",placeholder:"请输入退货快递单号"},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.delivery_id,callback:function(e){t.$set(t.tableFrom,"delivery_id",e)},expression:"tableFrom.delivery_id"}})],1),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",{attrs:{size:"small",type:"primary"},nativeOn:{click:function(e){return t.exports(e)}}},[t._v("导出退款单")]),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticClass:"table mt20",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(e.row.order.order_sn))])]),t._v(" "),a("el-form-item",{attrs:{label:"退款商品总价:"}},[2===e.row.order.activity?a("span",[t._v(t._s(t.getPresellTotal(e.row.refundProduct)))]):3===e.row.order.activity?a("span",[t._v(t._s(t.getAssistTotal(e.row.refundProduct)))]):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)))])]),t._v(" "),2===e.row.status?a("el-form-item",{attrs:{label:"快递公司:"}},[a("span",[t._v(t._s(t._f("filterEmpty")(e.row.delivery_type)))])]):t._e(),t._v(" "),2===e.row.status?a("el-form-item",{attrs:{label:"快递单号:"}},[a("span",{staticClass:"mr5"},[t._v(t._s(t._f("filterEmpty")(e.row.delivery_id)))]),t._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.openLogistics(e.row)}}},[t._v("物流查询")])],1):t._e()],1)]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"退款单号","min-width":"100"},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("el-table-column",{attrs:{prop:"user.nickname",label:"用户信息","min-width":"100"}}),t._v(" "),a("el-table-column",{attrs:{prop:"refund_price",label:"退款金额","min-width":"80"}}),t._v(" "),a("el-table-column",{attrs:{prop:"nickname",label:"商品信息","min-width":"250"},scopedSlots:t._u([{key:"default",fn:function(e){return t._l(e.row.refundProduct,(function(r,i){return a("div",{key:i,staticClass:"tabBox acea-row row-middle"},[a("div",{staticClass:"demo-image__preview"},[a("el-image",{attrs:{src:r.product&&r.product.cart_info.product.image,"preview-src-list":[r.product&&r.product.cart_info.product.image]}})],1),t._v(" "),a("span",{staticClass:"tabBox_tit"},[t._v(t._s(r.product&&r.product.cart_info.product.store_name+" | ")+t._s(r.product&&r.product.cart_info.productAttr.sku))]),t._v(" "),e.row.order&&2===e.row.order.activity_type&&r.product&&r.product.cart_info.productPresellAttr?a("span",{staticClass:"tabBox_pice"},[t._v(t._s(r.product.cart_info.productPresellAttr.presell_price+" x "+r.refund_num))]):e.row.order&&3===e.row.order.activity_type&&r.product&&r.product.cart_info.productAssistAttr.assist_price?a("span",{staticClass:"tabBox_pice"},[t._v(t._s(r.product.cart_info.productAssistAttr.assist_price+" x "+r.refund_num))]):a("span",{staticClass:"tabBox_pice"},[t._v(t._s(r.product.cart_info.productAttr.price+" x "+r.refund_num))])])}))}}])}),t._v(" "),a("el-table-column",{attrs:{label:"退款类型","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(1==e.row.refund_type?"退款":"退货退款"))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"order.real_name",label:"退货人","min-width":"90"}}),t._v(" "),a("el-table-column",{attrs:{prop:"create_user",label:"退款发起方","min-width":"90"}}),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":"150",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.onOrderDetail(e.row.order.order_id)}}},[t._v("订单详情")]),t._v(" "),0===e.row.status?a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.onRefundOrderDetail(e.row.refund_order_id)}}},[t._v("退款单详情")]):t._e(),t._v(" "),0===e.row.status?a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.onOrderStatus(e.row.refund_order_id)}}},[t._v("退款审核")]):t._e(),t._v(" "),2===e.row.status?a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.confirmReceipt(e.row)}}},[t._v("退货审核")]):t._e(),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.onOrderMark(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("el-dialog",{attrs:{title:"操作记录",visible:t.dialogVisible,width:"700px"},on:{"update:visible":function(e){t.dialogVisible=e}}},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.LogLoading,expression:"LogLoading"}],staticStyle:{width:"100%"},attrs:{border:"",data:t.tableDataLog.data}},[a("el-table-column",{attrs:{prop:"refund_order_id",align:"center",label:"退款单ID","min-width":"80"}}),t._v(" "),a("el-table-column",{attrs:{prop:"change_message",label:"操作记录",align:"center","min-width":"280"}}),t._v(" "),a("el-table-column",{attrs:{prop:"change_time",label:"操作时间",align:"center","min-width":"280"}})],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),t._v(" "),a("return-review",{ref:"returnReview",attrs:{returnData:t.returnData},on:{getList:t.getList}}),t._v(" "),a("details-from",{ref:"orderDetail",attrs:{"order-datalist":t.orderDatalist},on:{"get-logistics":t.openLogistics}}),t._v(" "),t.dialogLogistics?a("el-dialog",{attrs:{title:"物流查询",visible:t.dialogLogistics,width:"350px","before-close":t.handleClose},on:{"update:visible":function(e){t.dialogLogistics=e}}},[t.orderDetails?a("logistics-from",{attrs:{"order-datalist":t.orderDetails,result:t.result,"logistics-name":t.logisticsName}}):t._e()],1):t._e(),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:{"get-logistics":t.getOrderData,onOrderStatus:t.onOrderStatus,onOrderMark:t.onOrderMark,closeDrawer:t.closeRefundDrawer,changeDrawer:t.changeRefundDrawer,getList:t.getList}})],1)},i=[],s=a("db72"),l=a("c80c"),o=(a("96cf"),a("3b8d")),n=a("f8b7"),d=function(){var t=this,e=t.$createElement,a=t._self._c||e;return t.orderDatalist?a("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],attrs:{title:"退款单信息",visible:t.dialogVisible,width:"700px"},on:{"update:visible":function(e){t.dialogVisible=e}}},[a("div",{staticClass:"description"},[a("div",{staticClass:"title"},[t._v("用户信息")]),t._v(" "),a("div",{staticClass:"acea-row"},[a("div",{staticClass:"description-term"},[t._v("用户昵称:"+t._s(t.orderDatalist.user.nickname))]),t._v(" "),a("div",{staticClass:"description-term"},[t._v("退货人:"+t._s(t.orderDatalist.order.real_name))]),t._v(" "),a("div",{staticClass:"description-term"},[t._v("联系电话:"+t._s(t.orderDatalist.order.user_phone))]),t._v(" "),a("div",{staticClass:"description-term"},[t._v("退货地址:"+t._s(t.orderDatalist.order.user_address))]),t._v(" "),a("div",{staticClass:"description-term"},[t._v("备注:"+t._s(t.orderDatalist.mark))])]),t._v(" "),a("el-divider"),t._v(" "),a("div",{staticClass:"title"},[t._v(t._s(1==t.orderDatalist.refund_type?"退款信息":"退回商品信息"))]),t._v(" "),a("div",{staticClass:"acea-row"},[a("div",{staticClass:"description-term"},[t._v("订单编号:"+t._s(t.orderDatalist.order.order_sn))]),t._v(" "),a("div",{staticClass:"description-term"},[t._v("订单状态:"+t._s(t._f("orderRefundFilter")(t.orderDatalist.status)))]),t._v(" "),a("div",{staticClass:"description-term100"},[t._v("退款单号:"+t._s(t.orderDatalist.refund_order_sn))]),t._v(" "),a("div",{staticClass:"description-term100"},[t._v("退款商品名称:\n "),a("div",{staticClass:"product_name"},t._l(t.orderDatalist.refundProduct,(function(e,r){return a("div",{key:r},[e.product&&e.product.cart_info&&e.product.cart_info.product?a("span",[t._v(t._s(e.product.cart_info.product.store_name))]):t._e()])})),0)]),t._v(" "),a("div",{staticClass:"description-term"},[t._v("退款发起方:"+t._s(t.orderDatalist.create_user))]),t._v(" "),a("div",{staticClass:"description-term"},[t._v("退款商品件数:"+t._s(t.orderDatalist.refund_num)+"件")]),t._v(" "),a("div",{staticClass:"description-term"},[t._v("退款总金额:"+t._s(t.orderDatalist.refund_price)+"元")]),t._v(" "),t.orderDatalist.delivery_id?a("div",{staticClass:"description-term"},[t._v("退货快递单号:"+t._s(t.orderDatalist.delivery_id))]):t._e(),t._v(" "),a("div",{staticClass:"description-term"},[t._v("创建时间:"+t._s(t.orderDatalist.create_time))]),t._v(" "),a("div",{staticClass:"description-term"},[t._v("商家备注:"+t._s(t.orderDatalist.mer_mark))]),t._v(" "),a("div",{staticClass:"description-term100"},[t._v("退款凭证:\n "),a("div",{staticClass:"product_name",staticStyle:{"margin-left":"70px"}},[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(" "),a("el-divider"),t._v(" "),a("div",{staticClass:"title"},[t._v("订单记录")]),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.LogLoading,expression:"LogLoading"}],staticStyle:{width:"100%"},attrs:{border:"",data:t.tableDataLog.data}},[a("el-table-column",{attrs:{prop:"order_id",align:"center",label:"退款单ID","min-width":"80"}}),t._v(" "),a("el-table-column",{attrs:{prop:"change_message",label:"操作记录",align:"center","min-width":"280"}}),t._v(" "),a("el-table-column",{attrs:{prop:"change_time",label:"操作时间",align:"center","min-width":"280"}})],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),t._v(" "),a("el-divider"),t._v(" "),2!=t.orderDatalist.status&&3!=t.orderDatalist.status||2!=t.orderDatalist.refund_type?t._e():a("div",[a("div",{staticClass:"title"},[t._v("退货物流信息")]),t._v(" "),a("div",{staticClass:"acea-row"},[a("div",{staticClass:"description-term"},[t._v("\n 快递公司:"+t._s(t.orderDatalist.delivery_type)+"\n "),a("el-button",{staticStyle:{"margin-left":"10px"},attrs:{size:"small",type:"text"},on:{click:t.getLoginstics}},[t._v("物流查询")])],1),t._v(" "),a("div",{staticClass:"description-term"},[t._v("快递单号:"+t._s(t.orderDatalist.delivery_id))])])])],1)]):t._e()},c=[],u={name:"OrderDetail",props:{orderDatalist:{type:Object,default:null}},data:function(){return{dialogVisible:!1,LogLoading:!1,loading:!1,listLoading:!0,order_id:"",tableDataLog:{data:[],total:0},tableFromLog:{page:1,limit:5}}},mounted:function(){},methods:{onOrderLog:function(t){var e=this;this.LogLoading=!0,this.order_id=t,Object(n["Bb"])(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}))},getLoginstics:function(){this.$emit("get-logistics",this.orderDatalist)},pageChangeLog:function(t){this.tableFromLog.page=t,this.onOrderLog(this.order_id)},handleSizeChangeLog:function(t){this.tableFromLog.limit=t,this.onOrderLog(this.order_id)}}},_=u,v=(a("8c58"),a("2877")),m=Object(v["a"])(_,d,c,!1,null,"f45c4c4e",null),f=m.exports,p=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",[0==t.orderDatalist.status?a("el-button",{attrs:{type:"primary",size:"small"},on:{click:t.onOrderStatus}},[t._v(t._s(1==t.orderDatalist.refund_type?"审核":"退货审核"))]):t._e(),t._v(" "),a("el-dropdown",{staticClass:"ml10",on:{command:t.handleCommand}},[a("el-button",{attrs:{icon:"el-icon-more",size:"small"}}),t._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{attrs:{command:"mark"}},[t._v("订单备注")])],1)],1)],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 item100"},[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 "),a("el-button",{staticStyle:{"margin-left":"5px"},attrs:{type:"text",size:"mini"},on:{click:t.getLoginstics}},[t._v("物流查询")])],1)]),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)},g=[],b=(a("7f7f"),{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=[]},getLoginstics:function(){this.$emit("get-logistics",this.orderId)},onOrderStatus:function(){this.$emit("onOrderStatus",this.orderId)},getRefundInfo:function(t){var e=this;this.loading=!0,this.orderId=t,Object(n["yb"])(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)}))},handleCommand:function(t){var e=this;"mark"==t&&this.$modalForm(Object(n["Cb"])(this.orderId)).then((function(){return e.getRefundInfo(e.orderId)}))},tabClick:function(t){"orderList"===t.name&&this.onOrderLog(this.orderId)},onOrderLog:function(t){var e=this;Object(n["Bb"])(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?"商家客服":"未知"}}}),h=b,y=(a("12ff"),Object(v["a"])(h,p,g,!1,null,"320999db",null)),C=y.exports,w=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[t.dialogVisible?a("el-dialog",{attrs:{title:"退货审核",visible:t.dialogVisible,width:"600px"},on:{"update:visible":function(e){t.dialogVisible=e}}},[a("div",{staticClass:"container"},[a("el-form",{ref:"saveForm",attrs:{model:t.forms,"label-width":"110px",size:"small",rules:t.ruleValidate},nativeOn:{submit:function(t){t.preventDefault()}}},[a("el-form-item",{attrs:{label:"退货物流公司:"}},[a("div",[t._v(t._s(t.returnData.delivery_name))])]),t._v(" "),a("el-form-item",{attrs:{label:"退货快递单号:"}},[a("div",[t._v(t._s(t.returnData.delivery_id))])]),t._v(" "),a("el-form-item",{attrs:{label:"审核结果:"}},[a("el-radio-group",{attrs:{prop:"status"},model:{value:t.forms.status,callback:function(e){t.$set(t.forms,"status",e)},expression:"forms.status"}},[a("el-radio",{attrs:{label:3}},[t._v("同意")]),t._v(" "),a("el-radio",{attrs:{label:-1}},[t._v("拒绝")])],1)],1),t._v(" "),-1==t.forms.status?a("el-form-item",{attrs:{label:"填写原因:",prop:"fail_message"}},[a("el-input",{attrs:{placeholder:"请输入拒绝原因,最多可输入50字",maxlength:"50",type:"textarea",autosize:{minRows:3,maxRows:5}},model:{value:t.forms.fail_message,callback:function(e){t.$set(t.forms,"fail_message",e)},expression:"forms.fail_message"}})],1):t._e()],1)],1),t._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{size:"small"},on:{click:function(e){t.dialogVisible=!1}}},[t._v("取消")]),t._v(" "),a("el-button",{attrs:{type:"primary",loading:t.btnloading,size:"small"},on:{click:function(e){return t.submitForm("saveForm")}}},[t._v("确定")])],1)]):t._e()],1)},D=[],L={name:"ReturnReview",data:function(){return{dialogVisible:!1,btnloading:!1,forms:{status:3,fail_message:""},ruleValidate:{status:[{required:!0,message:"请选择审核结果",trigger:"blur"}],fail_message:[{required:!0,message:"请输入拒绝原因",trigger:"blur"}]}}},props:{returnData:{type:Object,default:{}}},methods:{submitForm:function(t){var e=this;this.$refs[t].validate((function(t){if(!t)return!1;Object(n["f"])(e.returnData.refund_order_id,e.forms).then((function(t){e.$message.success(t.message),e.dialogVisible=!1,e.$emit("getList")}))}))}}},k=L,x=Object(v["a"])(k,w,D,!1,null,"0d19a2f5",null),F=x.exports,O=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"logistics acea-row row-top"},[t._m(0),t._v(" "),a("div",{staticClass:"logistics_cent"},[a("span",[t._v("物流公司:"+t._s(t.logisticsName?t.orderDatalist.delivery_type:t.orderDatalist.delivery_name))]),t._v(" "),a("span",[t._v("物流单号:"+t._s(t.orderDatalist.delivery_id))])])]),t._v(" "),a("div",{staticClass:"acea-row row-column-around trees-coadd"},[a("div",{staticClass:"scollhide"},[t.result.length>0?a("el-timeline",t._l(t.result,(function(e,r){return a("el-timeline-item",{key:r},[a("p",{staticClass:"time",domProps:{textContent:t._s(e.time)}}),t._v(" "),a("p",{staticClass:"content",domProps:{textContent:t._s(e.status)}})])})),1):t._e()],1)])])},S=[function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"logistics_img"},[r("img",{attrs:{src:a("bd9b")}})])}],$={name:"Logistics",props:{orderDatalist:{type:Object,default:null},result:{type:Array,default:function(){return[]}},logisticsName:{type:String,default:""}}},z=$,j=(a("7848"),Object(v["a"])(z,O,S,!1,null,"353febc2",null)),T=j.exports,A=a("83d6"),R=a("2e83"),V=a("0b65"),I=a("068f"),P=a("6e76"),E={name:"OrderRefund",components:{detailsFrom:f,refundDetails:C,logisticsFrom:T,orderDetail:I["a"],selectSearch:P["default"],returnReview:F},data:function(){return{pickerOptions:V["a"],logisticsName:"refund",dialogLogistics:!1,orderId:0,drawer:!1,refundDrawer:!1,tableData:{data:[],total:0},refundTypeList:[{value:1,label:"退款"},{value:2,label:"退款退货"}],refundUserList:[{value:1,label:"用户"},{value:3,label:"商户"},{value:4,label:"客服"}],listLoading:!0,roterPre:A["roterPre"],select:"nickname",searchSelectList:[{label:"昵称",value:"nickname"},{label:"用户ID",value:"uid"},{label:"手机号",value:"phone"}],tableFrom:{delivery_id:"",refund_type:"",user_type:"",status:"",date:"",username:"",page:1,limit:20,order_sn:this.$route.query.sn?this.$route.query.sn:"",refund_order_sn:this.$route.query.refund_order_sn?this.$route.query.refund_order_sn:"",id:this.$route.query.id?this.$route.query.id:""},orderChartType:{},timeVal:[],fromList:{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"}]},selectionList:[],tableFromLog:{page:1,limit:10},tableDataLog:{data:[],total:0},LogLoading:!1,dialogVisible:!1,orderDatalist:null,orderDetails:{},result:[],returnData:{}}},mounted:function(){this.$route.query.hasOwnProperty("sn")?this.tableFrom.order_sn=this.$route.query.sn:this.tableFrom.order_sn="",this.getList(1)},activated:function(){this.$route.query.hasOwnProperty("sn")?this.tableFrom.order_sn=this.$route.query.sn:this.tableFrom.order_sn="",this.getList(1)},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},onOrderStatus:function(t){var e=this;this.$modalForm(Object(n["Db"])(t)).then((function(){return e.getList("")}),this.$refs.refundDetails.getRefundInfo(t))},confirmReceipt:function(t){var e=this;this.returnData={delivery_name:t.delivery_type,delivery_id:t.delivery_id,refund_order_id:t.refund_order_id},e.$refs.returnReview.dialogVisible=!0},exports:function(){var t=Object(o["a"])(Object(l["a"])().mark((function t(){var e,a,r,i,s;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,r=1,i={},s=0;case 5:if(!(s<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:s++,t.next=5;break;case 14:return Object(R["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(n["wb"])(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?t[a].product.cart_info.productAttr.price*t[a].refund_num:"";return e},getPresellTotal:function(t){for(var e=0,a=0;a<t.length;a++)e+=t[a].product?t[a].product.cart_info.productPresellAttr.presell_price*t[a].refund_num:"";return e},getAssistTotal:function(t){for(var e=0,a=0;a<t.length;a++)e+=t[a].product?t[a].product.cart_info.productAssistAttr.assist_price*t[a].refund_num:"";return e},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},onOrderLog:function(t){var e=this;this.dialogVisible=!0,this.LogLoading=!0,Object(n["Bb"])(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.getList("")},handleSizeChangeLog:function(t){this.tableFromLog.limit=t,this.getList("")},handleDelete:function(t,e){var a=this;1===t.is_del?this.$modalSure().then((function(){Object(n["xb"])(t.refund_order_id).then((function(t){var r=t.message;a.$message.success(r),a.tableData.data.splice(e,1)})).catch((function(t){var e=t.message;a.$message.error(e)}))})):this.$confirm("您选择的的订单存在用户未删除的订单,无法删除用户未删除的订单!","提示",{confirmButtonText:"确定",type:"error"})},onOrderMark:function(t){var e=this;this.$modalForm(Object(n["Cb"])(t)).then((function(){return e.getList("")}))},selectChange:function(t){this.tableFrom.date=t,this.timeVal=[],this.getList(1)},onchangeTime:function(t){this.timeVal=t,this.tableFrom.date=t?this.timeVal.join("-"):"",this.getList(1)},edit:function(t){var e=this;this.$modalForm(Object(n["rb"])(t)).then((function(){return e.getList("")}))},send:function(t){var e=this;this.$modalForm(Object(n["db"])(t)).then((function(){return e.getList("")}))},searchList:function(t){this.tableFrom=Object(s["a"])(Object(s["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["Ab"])(this.tableFrom).then((function(t){e.orderChartType=t.data.stat,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}))},pageChange:function(t){this.tableFrom.page=t,this.getList()},handleSizeChange:function(t){this.tableFrom.limit=t,this.getList()},openLogistics:function(t){this.orderDetails=t,this.getOrderData(t.refund_order_id),this.dialogLogistics=!0},handleClose:function(){this.dialogLogistics=!1,this.dialogConfirm=!1},getOrderData:function(t){var e=this;Object(n["zb"])(t).then(function(){var t=Object(o["a"])(Object(l["a"])().mark((function t(a){return Object(l["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.dialogLogistics=!0,e.result=a.data;case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.$message.error(t.message)}))}}},M=E,N=(a("de89"),Object(v["a"])(M,r,i,!1,null,"74d79690",null));e["default"]=N.exports},5649:function(t,e,a){},7848:function(t,e,a){"use strict";a("c75c")},"8c58":function(t,e,a){"use strict";a("5649")},c53e:function(t,e,a){},c75c:function(t,e,a){},de89:function(t,e,a){"use strict";a("f835")},f835:function(t,e,a){}}]);
|