(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-25554318"],{"3e81":function(t,e,r){"use strict";r.r(e);var a=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"divBox"},[r("el-card",{staticClass:"box-card"},[r("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[r("div",{staticClass:"container"},[r("el-form",{attrs:{size:"small","label-width":"100px"}},[r("el-form-item",{attrs:{label:"订单状态:"}},[r("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"}},[r("el-radio-button",{attrs:{label:""}},[t._v("全部 "+t._s(t.orderChartType.all))]),t._v(" "),r("el-radio-button",{attrs:{label:"0"}},[t._v("待审核 "+t._s(t.orderChartType.audit))]),t._v(" "),r("el-radio-button",{attrs:{label:"-1"}},[t._v("审核未通过 "+t._s(t.orderChartType.refuse))]),t._v(" "),r("el-radio-button",{attrs:{label:"1"}},[t._v("审核通过 "+t._s(t.orderChartType.agree))]),t._v(" "),r("el-radio-button",{attrs:{label:"2"}},[t._v("待收货 "+t._s(t.orderChartType.backgood))]),t._v(" "),r("el-radio-button",{attrs:{label:"3"}},[t._v("已完成 "+t._s(t.orderChartType.end))])],1)],1),t._v(" "),r("el-form-item",{staticClass:"width100",attrs:{label:"时间选择:"}},[r("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,a){return r("el-radio-button",{key:a,attrs:{label:e.val}},[t._v(t._s(e.text))])})),1),t._v(" "),r("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(" "),r("el-form-item",{staticClass:"width100",attrs:{label:"退款单号:"}},[r("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入订单号",size:"small"},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"}},[r("el-button",{staticClass:"el-button-solt",attrs:{slot:"append",icon:"el-icon-search",size:"small"},on:{click:function(e){return t.getList(1)}},slot:"append"})],1)],1),t._v(" "),r("el-form-item",{staticClass:"width100",attrs:{label:"订单单号:"}},[r("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入订单号",size:"small"},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"}},[r("el-button",{staticClass:"el-button-solt",attrs:{slot:"append",icon:"el-icon-search",size:"small"},on:{click:function(e){return t.getList(1)}},slot:"append"})],1)],1)],1)],1)]),t._v(" "),r("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":""}},[r("el-table-column",{attrs:{type:"expand"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("el-form",{staticClass:"demo-table-expand demo-table-expands",attrs:{"label-position":"left",inline:""}},[r("el-form-item",{attrs:{label:"订单号:"}},[r("span",[t._v(t._s(e.row.order.order_sn))])]),t._v(" "),r("el-form-item",{attrs:{label:"退款商品总价:"}},[2===e.row.order.activity?r("span",[t._v(t._s(t.getPresellTotal(e.row.refundProduct)))]):3===e.row.order.activity?r("span",[t._v(t._s(t.getAssistTotal(e.row.refundProduct)))]):r("span",[t._v(t._s(t.getTotal(e.row.refundProduct)))])]),t._v(" "),r("el-form-item",{attrs:{label:"退款商品总数:"}},[r("span",[t._v(t._s(e.row.refund_num))])]),t._v(" "),r("el-form-item",{attrs:{label:"申请退款时间:"}},[r("span",[t._v(t._s(t._f("filterEmpty")(e.row.create_time)))])]),t._v(" "),r("el-form-item",{attrs:{label:"用户备注:"}},[r("span",[t._v(t._s(t._f("filterEmpty")(e.row.mark)))])]),t._v(" "),r("el-form-item",{attrs:{label:"商家备注:"}},[r("span",[t._v(t._s(t._f("filterEmpty")(e.row.mer_mark)))])]),t._v(" "),2===e.row.status?r("el-form-item",{attrs:{label:"快递公司:"}},[r("span",[t._v(t._s(t._f("filterEmpty")(e.row.delivery_type)))])]):t._e(),t._v(" "),2===e.row.status?r("el-form-item",{attrs:{label:"快递单号:"}},[r("span",{staticClass:"mr5"},[t._v(t._s(t._f("filterEmpty")(e.row.delivery_id)))]),t._v(" "),r("el-button",{attrs:{type:"text"},on:{click:function(r){return t.openLogistics(e.row)}}},[t._v("物流查询")])],1):t._e()],1)]}}])}),t._v(" "),r("el-table-column",{attrs:{label:"退款单号","min-width":"170"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",{staticStyle:{display:"block"},domProps:{textContent:t._s(e.row.refund_order_sn)}})]}}])}),t._v(" "),r("el-table-column",{attrs:{prop:"user.nickname",label:"用户信息","min-width":"130"}}),t._v(" "),r("el-table-column",{attrs:{prop:"refund_price",label:"退款金额","min-width":"130"}}),t._v(" "),r("el-table-column",{attrs:{prop:"nickname",label:"商品信息","min-width":"330"},scopedSlots:t._u([{key:"default",fn:function(e){return t._l(e.row.refundProduct,(function(a,n){return r("div",{key:n,staticClass:"tabBox acea-row row-middle"},[r("div",{staticClass:"demo-image__preview"},[r("el-image",{attrs:{src:a.product&&a.product.cart_info.product.image,"preview-src-list":[a.product&&a.product.cart_info.product.image]}})],1),t._v(" "),r("span",{staticClass:"tabBox_tit"},[t._v(t._s(a.product&&a.product.cart_info.product.store_name+" | ")+t._s(a.product&&a.product.cart_info.productAttr.sku))]),t._v(" "),e.row.order&&2===e.row.order.activity_type&&a.product&&a.product.cart_info.productPresellAttr?r("span",{staticClass:"tabBox_pice"},[t._v(t._s(a.product.cart_info.productPresellAttr.presell_price+" x "+a.refund_num))]):e.row.order&&3===e.row.order.activity_type&&a.product&&a.product.cart_info.productAssistAttr.assist_price?r("span",{staticClass:"tabBox_pice"},[t._v(t._s(a.product.cart_info.productAssistAttr.assist_price+" x "+a.refund_num))]):r("span",{staticClass:"tabBox_pice"},[t._v(t._s(a.product.cart_info.productAttr.price+" x "+a.refund_num))])])}))}}])}),t._v(" "),r("el-table-column",{attrs:{prop:"serviceScore",label:"订单状态","min-width":"250"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",{staticStyle:{display:"block"}},[t._v(t._s(t._f("orderRefundFilter")(e.row.status)))]),t._v(" "),r("span",{staticStyle:{display:"block"}},[t._v("退款原因:"+t._s(e.row.refund_message))]),t._v(" "),r("span",{staticStyle:{display:"block"}},[t._v("状态变更时间:"+t._s(e.row.status_time))])]}}])}),t._v(" "),r("el-table-column",{attrs:{label:"操作","min-width":"180",fixed:"right",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("el-button",{attrs:{type:"text",size:"small"},on:{click:function(r){return t.onOrderDetail(e.row.order.order_sn)}}},[t._v("订单详情")]),t._v(" "),0===e.row.status?r("el-button",{attrs:{type:"text",size:"small"},on:{click:function(r){return t.onOrderStatus(e.row.refund_order_id)}}},[t._v("退款")]):t._e(),t._v(" "),r("el-button",{attrs:{type:"text",size:"small"},on:{click:function(r){return t.onOrderLog(e.row.refund_order_id)}}},[t._v("订单记录")]),t._v(" "),r("el-button",{attrs:{type:"text",size:"small"},on:{click:function(r){return t.onOrderMark(e.row.refund_order_id)}}},[t._v("订单备注")]),t._v(" "),2===e.row.status?r("el-button",{attrs:{type:"text",size:"small"},on:{click:function(r){return t.confirmReceipt(e.row.refund_order_id)}}},[t._v("确认收货")]):t._e()]}}])})],1),t._v(" "),r("div",{staticClass:"block"},[r("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(" "),r("el-dialog",{attrs:{title:"操作记录",visible:t.dialogVisible,width:"700px"},on:{"update:visible":function(e){t.dialogVisible=e}}},[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:"refund_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)],1),t._v(" "),r("details-from",{ref:"orderDetail",attrs:{"order-datalist":t.orderDatalist}}),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}}},[t.orderDetails?r("logistics-from",{attrs:{"order-datalist":t.orderDetails,result:t.result,"logistics-name":t.logisticsName}}):t._e()],1):t._e()],1)},n=[],o=(r("96cf"),r("3b8d")),i=r("f8b7"),s=function(){var t=this,e=t.$createElement,r=t._self._c||e;return t.orderDatalist?r("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}}},[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._v(" "),r("div",{staticClass:"description-term"},[t._v("联系电话:"+t._s(t.orderDatalist.user_phone))])]),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.refund_order_sn))]),t._v(" "),r("div",{staticClass:"description-term"},[t._v("订单状态:"+t._s(t._f("orderRefundFilter")(t.orderDatalist.status)))]),t._v(" "),r("div",{staticClass:"description-term"},[t._v("商品总数:"+t._s(t.orderDatalist.refund_num))]),t._v(" "),r("div",{staticClass:"description-term"},[t._v("退款金额:"+t._s(t.orderDatalist.refund_price))]),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.orderDatalist.mer_mark))])])],1)]):t._e()},l=[],c={name:"OrderDetail",props:{orderDatalist:{type:Object,default:null}},data:function(){return{dialogVisible:!1,loading:!1}},mounted:function(){},methods:{}},u=c,d=(r("62fb"),r("2877")),f=Object(d["a"])(u,s,l,!1,null,"68fc34a7",null),g=f.exports,m=r("6f92"),p={name:"OrderRefund",components:{detailsFrom:g,logisticsFrom:m["a"]},data:function(){return{logisticsName:"refund",dialogLogistics:!1,orderId:0,tableData:{data:[],total:0},listLoading:!0,tableFrom:{refund_order_sn:"",status:"",date:"",page:1,limit:20,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:[]}},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:{onOrderDetail:function(t){this.$router.push({name:"OrderList",query:{order_sn:t}})},onOrderStatus:function(t){var e=this;this.$modalForm(Object(i["F"])(t)).then((function(){return e.getList("")}))},confirmReceipt:function(t){var e=this;this.$confirm("是否确认收货?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(i["b"])(t).then((function(t){e.$message.success(t.message),e.getList("")})).catch((function(t){var r=t.res;e.$message.error(r.message)}))})).catch((function(){e.$message({type:"info",message:"已取消"})}))},getTotal:function(t){for(var e=0,r=0;r