You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
crmeb_php/public/mer/js/chunk-6c88f67a.3c392496.js

1 lines
35 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6c88f67a"],{"05b6":function(t,e,r){},"2e83":function(t,e,r){"use strict";r.d(e,"a",(function(){return s}));r("28a5");var n=r("8122"),a=r("e8ae"),i=r.n(a),o=r("21a6");function s(t,e,r,a,s,l){var c,d=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],u=1,g=new i.a.Workbook,p=t.length;function m(t){var e=Array.isArray(t)?t[0]:t,r=Array.isArray(t)?t[1]:{};c=g.addWorksheet(e,r)}function v(t,e){if(!Object(n["isEmpty"])(t)){t=Array.isArray(t)?t:t.split(",");for(var r=0;r<t.length;r++){var a=c.getRow(r+1);a.getCell(1).value=t[r],a.height=30,a.font={bold:!0,size:20,vertAlign:"subscript"},a.alignment={vertical:"bottom",horizontal:"center"},a.outlineLevel=1,c.mergeCells(r+1,1,r+1,e),a.commit(),u++}}}function _(t){if(!Object(n["isEmpty"])(t)){for(var e=c.getRow(u),r=1;r<=t.length;r++)e.getCell(r).value=t[r-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(n["isEmpty"])(t))for(var e=0;e<t.length;e++){for(var r=u,a=c.getRow(u),i=!1,o=0,s=0,l=0,d=0;d<t[e].length;d++)Array.isArray(t[e][d])?(o=l,i=!0,b(t[e][d],l),l+=t[e][d][0].length,s=l):(a.getCell(C(l)).value=t[e][d],a.getCell(C(l)).border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}},a.alignment={vertical:"middle",horizontal:"center"},l++);i&&y(r,u,o,s),a.height=25,a.commit(),u++}}function b(t,e){for(var r=t.length,n=r-1,a=0;a<t.length;a++){for(var i=c.getRow(u),o=0;o<t[a].length;o++)i.getCell(C(e+o)).value=t[a][o],i.getCell(C(e+o)).border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}},i.alignment={vertical:"middle",horizontal:"center"};i.height=25,i.commit(),a<n&&u++}}function y(t,e,r,n){for(var a=0;a<p;a++)(a<r||a>n)&&c.mergeCells(C(a)+t+":"+C(a)+e)}function w(t){if(!Object(n["isEmpty"])(t))if(Array.isArray(t))for(var e=0;e<t.length;e++){var r=c.getRow(u);r.getCell(1).value=t[e],r.getCell(1).border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}},r.alignment={vertical:"middle",horizontal:"left"},c.mergeCells("A"+u+":"+C(p-1)+u),u++}else{var a=c.getRow(u);a.getCell(1).value=t[f],a.getCell(1).border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}},a.alignment={vertical:"middle",horizontal:"left"},c.mergeCells("A"+u+":"+C(p-1)+u)}}function C(t){if(t<26)return d[t];var e=t%26,r=Math.floor(t%26);return d[r]+d[e]}function L(t){t||(t=(new Date).getTime()),g.xlsx.writeBuffer().then((function(e){var r=new Blob([e],{type:"application/octet-stream"});o["saveAs"](r,t+".xlsx")}))}m(l),v(e,p),_(t),h(r),w(a),L(s)}},"3e81":function(t,e,r){"use strict";r.r(e);var n=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":"120px",inline:""}},[r("el-form-item",{staticStyle:{display:"block"},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",staticStyle:{display:"block"},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,n){return r("el-radio-button",{key:n,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:{clearable:"",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-select",{staticClass:"filter-item selWidth mr20",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 r("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1),t._v(" "),r("el-form-item",{staticClass:"width100",attrs:{label:"订单单号:"}},[r("el-input",{staticClass:"selWidth",attrs:{clearable:"",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),t._v(" "),r("el-form-item",{staticClass:"width100",attrs:{label:"退货快递单号:"}},[r("el-input",{staticClass:"selWidth",attrs:{clearable:"",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.delivery_id,callback:function(e){t.$set(t.tableFrom,"delivery_id",e)},expression:"tableFrom.delivery_id"}},[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),t._v(" "),r("el-button",{attrs:{size:"small",type:"primary"},nativeOn:{click:function(e){return t.exports(e)}}},[t._v("导出退款单")])],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(n,a){return r("div",{key:a,staticClass:"tabBox acea-row row-middle"},[r("div",{staticClass:"demo-image__preview"},[r("el-image",{attrs:{src:n.product&&n.product.cart_info.product.image,"preview-src-list":[n.product&&n.product.cart_info.product.image]}})],1),t._v(" "),r("span",{staticClass:"tabBox_tit"},[t._v(t._s(n.product&&n.product.cart_info.product.store_name+" | ")+t._s(n.product&&n.product.cart_info.productAttr.sku))]),t._v(" "),e.row.order&&2===e.row.order.activity_type&&n.product&&n.product.cart_info.productPresellAttr?r("span",{staticClass:"tabBox_pice"},[t._v(t._s(n.product.cart_info.productPresellAttr.presell_price+" x "+n.refund_num))]):e.row.order&&3===e.row.order.activity_type&&n.product&&n.product.cart_info.productAssistAttr.assist_price?r("span",{staticClass:"tabBox_pice"},[t._v(t._s(n.product.cart_info.productAssistAttr.assist_price+" x "+n.refund_num))]):r("span",{staticClass:"tabBox_pice"},[t._v(t._s(n.product.cart_info.productAttr.price+" x "+n.refund_num))])])}))}}])}),t._v(" "),r("el-table-column",{attrs:{label:"退款类型","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",[t._v(t._s(1==e.row.refund_type?"退款":"退货退款"))])]}}])}),t._v(" "),r("el-table-column",{attrs:{prop:"order.real_name",label:"退货人","min-width":"160"}}),t._v(" "),r("el-table-column",{attrs:{prop:"delivery_id",label:"退货快递单号","min-width":"160"}}),t._v(" "),r("el-table-column",{attrs:{label:"订单状态","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[0===e.row.order.is_del?r("span",[0===e.row.order.paid?r("span",[t._v("待付款")]):r("span",[0===e.row.order.order_type||2===e.row.order.order_type?r("span",[t._v(t._s(t._f("orderStatusFilter")(e.row.order.status)))]):r("span",[t._v(t._s(t._f("takeOrderStatusFilter")(e.row.order.status)))])])]):r("span",[t._v("已删除")])]}}])}),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(" "),-1==e.row.status?r("span",{staticStyle:{display:"block"}},[t._v("拒绝原因:"+t._s(e.row.fail_message))]):t._e(),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(" "),r("el-button",{attrs:{type:"text",size:"small"},on:{click:function(r){return t.onRefundOrderDetail(e.row.refund_order_id)}}},[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.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)}}},[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},on:{"get-logistics":t.openLogistics}}),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)},a=[],i=r("c80c"),o=(r("96cf"),r("3b8d")),s=r("f8b7"),l=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._s(t.orderDatalist.user.nickname))]),t._v(" "),r("div",{staticClass:"description-term"},[t._v("退货人:"+t._s(t.orderDatalist.order.real_name))]),t._v(" "),r("div",{staticClass:"description-term"},[t._v("联系电话:"+t._s(t.orderDatalist.order.user_phone))]),t._v(" "),r("div",{staticClass:"description-term"},[t._v("退货地址:"+t._s(t.orderDatalist.order.user_address))]),t._v(" "),r("div",{staticClass:"description-term"},[t._v("备注:"+t._s(t.orderDatalist.mark))])]),t._v(" "),r("el-divider"),t._v(" "),r("div",{staticClass:"title"},[t._v(t._s(1==t.orderDatalist.refund_type?"退款信息":"退回商品信息"))]),t._v(" "),r("div",{staticClass:"acea-row"},[r("div",{staticClass:"description-term"},[t._v("订单编号:"+t._s(t.orderDatalist.order.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-term100"},[t._v("退款单号:"+t._s(t.orderDatalist.refund_order_sn))]),t._v(" "),r("div",{staticClass:"description-term100"},[t._v("退款商品名称:\n "),r("div",{staticClass:"product_name"},t._l(t.orderDatalist.refundProduct,(function(e,n){return r("div",{key:n},[e.product&&e.product.cart_info&&e.product.cart_info.product?r("span",[t._v(t._s(e.product.cart_info.product.store_name))]):t._e()])})),0)]),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))]),t._v(" "),r("div",{staticClass:"description-term100"},[t._v("退款凭证:\n "),r("div",{staticClass:"product_name",staticStyle:{"margin-left":"70px"}},[r("div",{staticClass:"demo-image__preview"},t._l(t.orderDatalist.pics,(function(t,e){return r("el-image",{key:e,staticClass:"mr5",attrs:{src:t,"preview-src-list":[t]}})})),1)])])]),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(" "),r("el-divider"),t._v(" "),2!=t.orderDatalist.status&&3!=t.orderDatalist.status||2!=t.orderDatalist.refund_type?t._e():r("div",[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_type))]),t._v(" "),r("div",{staticClass:"description-term"},[t._v("快递单号:"+t._s(t.orderDatalist.delivery_id))]),t._v(" "),r("el-button",{attrs:{size:"small",type:"primary"},on:{click:t.getLoginstics}},[t._v("物流查询")])],1)])],1)]):t._e()},c=[],d={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(s["R"])(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=d,f=(r("ca5f"),r("2877")),g=Object(f["a"])(u,l,c,!1,null,"af6e8e46",null),p=g.exports,m=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[r("div",{staticClass:"logistics acea-row row-top"},[t._m(0),t._v(" "),r("div",{staticClass:"logistics_cent"},[r("span",[t._v("物流公司:"+t._s(t.logisticsName?t.orderDatalist.delivery_type: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,n){return r("el-timeline-item",{key:n},[r("p",{staticClass:"time",domProps:{textContent:t._s(e.time)}}),t._v(" "),r("p",{staticClass:"content",domProps:{textContent:t._s(e.status)}})])})),1)],1)])])},v=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"logistics_img"},[n("img",{attrs:{src:r("bd9b")}})])}],_={name:"Logistics",props:{orderDatalist:{type:Object,default:null},result:{type:Array,default:function(){return[]}},logisticsName:{type:String,default:""}}},h=_,b=(r("81d7"),Object(f["a"])(h,m,v,!1,null,"0aac799c",null)),y=b.exports,w=r("83d6"),C=r("2e83"),L={name:"OrderRefund",components:{detailsFrom:p,logisticsFrom:y},data:function(){return{logisticsName:"refund",dialogLogistics:!1,orderId:0,tableData:{data:[],total:0},refundTypeList:[{value:1,label:"退款"},{value:2,label:"退款退货"}],listLoading:!0,roterPre:w["roterPre"],tableFrom:{delivery_id:"",refund_type:"",status:"",date:"",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:[]}},mounted:function(){this.getList(1)},activated:function(){},methods:{onOrderDetail:function(t){this.$router.push({name:"OrderList",query:{order_sn:t}})},onOrderStatus:function(t){var e=this;this.$modalForm(Object(s["T"])(t)).then((function(){return e.getList("")}))},confirmReceipt:function(t){var e=this,r=this.$createElement;this.$msgbox({title:"是否确认收货?",message:r("div",null,[r("p",null,"退货物流公司:"+t.delivery_type),r("p",null,"退货快递单号:"+t.delivery_id)]),showCancelButton:!0,confirmButtonText:"确定",cancelButtonText:"取消",beforeClose:function(r,n,a){"confirm"===r?Object(s["d"])(t.refund_order_id).then((function(t){e.$message.success(t.message),a(),e.getList("")})).catch((function(t){var r=t.res;e.$message.error(r.message)})):a()}}).then((function(t){})).catch((function(t){return t}))},exports:function(){var t=Object(o["a"])(Object(i["a"])().mark((function t(){var e,r,n,a,o;return Object(i["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e=JSON.parse(JSON.stringify(this.tableFrom)),r=[],e.page=1,n=1,a={},o=0;case 5:if(!(o<n)){t.next=14;break}return t.next=8,this.downData(e);case 8:a=t.sent,n=Math.ceil(a.count/e.limit),a.export.length&&(r=r.concat(a.export),e.page++);case 11:o++,t.next=5;break;case 14:return Object(C["a"])(a.header,a.title,r,a.foot,a.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,r){Object(s["M"])(t).then((function(t){return e(t.data)}))}))},getExportFileList:function(){var t=this;Object(s["M"])().then((function(e){var r=t.$createElement;t.$msgbox({title:"提示",message:r("p",null,[r("span",null,'文件正在生成中,请稍后点击"'),r("span",{style:"color: teal"},"导出记录"),r("span",null,'"查看~ ')]),confirmButtonText:"我知道了"}).then((function(e){t.$router.push({path:t.roterPre+"/export/list"})}))})).catch((function(e){t.$message.error(e.message)}))},getTotal:function(t){for(var e=0,r=0;r<t.length;r++)e+=t[r].product?t[r].product.cart_info.productAttr.price*t[r].refund_num:"";return e},getPresellTotal:function(t){for(var e=0,r=0;r<t.length;r++)e+=t[r].product?t[r].product.cart_info.productPresellAttr.presell_price*t[r].refund_num:"";return e},getAssistTotal:function(t){for(var e=0,r=0;r<t.length;r++)e+=t[r].product?t[r].product.cart_info.productAssistAttr.assist_price*t[r].refund_num:"";return e},onRefundOrderDetail:function(t){var e=this;this.orderId=t,this.$refs.orderDetail.dialogVisible=!0,this.loading=!0,Object(s["O"])(t).then((function(r){e.orderDatalist=r.data,e.loading=!1,e.$refs.orderDetail.onOrderLog(t)})).catch((function(t){var r=t.message;e.loading=!1,e.$message.error(r)}))},onOrderLog:function(t){var e=this;this.dialogVisible=!0,this.LogLoading=!0,Object(s["R"])(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 r=this;1===t.is_del?this.$modalSure().then((function(){Object(s["N"])(t.refund_order_id).then((function(t){var n=t.message;r.$message.success(n),r.tableData.data.splice(e,1)})).catch((function(t){var e=t.message;r.$message.error(e)}))})):this.$confirm("您选择的的订单存在用户未删除的订单,无法删除用户未删除的订单!","提示",{confirmButtonText:"确定",type:"error"})},onOrderMark:function(t){var e=this;this.$modalForm(Object(s["S"])(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(s["J"])(t)).then((function(){return e.getList("")}))},send:function(t){var e=this;this.$modalForm(Object(s["C"])(t)).then((function(){return e.getList("")}))},getList:function(t){var e=this;this.listLoading=!0,this.tableFrom.page=t||this.tableFrom.page,Object(s["Q"])(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(s["P"])(t).then(function(){var t=Object(o["a"])(Object(i["a"])().mark((function t(r){return Object(i["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.result=r.data;case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.$message.error(t.message)}))}}},D=L,A=(r("660d"),Object(f["a"])(D,n,a,!1,null,"3440993c",null));e["default"]=A.exports},"660d":function(t,e,r){"use strict";r("f3e4")},"81d7":function(t,e,r){"use strict";r("05b6")},"9b69":function(t,e,r){},bd9b:function(t,e){t.exports="data:image/jpeg;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAKEUlEQVR4nO2de3AV1R3HP3uS8EhCkCSAQCLgRZ6RV7Hgo47hpVNgpp3+UZ2llpbOFIUqdWzR6UzpdOqMqFNHq4KMDzp6a/tHO50B2goIVqmCVV4KymMFTAiPJghXbohJ2O0fZwOX5Jy9e+/dzb0hfGYy9ybn7Hl8c3bPOb9zzm+NeDxOtohERTkwCRgFjHY/hwBlQCFQDDQD54Az7ucpYD/wmfu50zLt+k4vvIvRmQJGoqIQmAFMB6qB8YCRYbIOsAfYAmwG3rJMuz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){},f8b7:function(t,e,r){"use strict";r.d(e,"F",(function(){return a})),r.d(e,"c",(function(){return i})),r.d(e,"b",(function(){return o})),r.d(e,"J",(function(){return s})),r.d(e,"C",(function(){return l})),r.d(e,"D",(function(){return c})),r.d(e,"p",(function(){return d})),r.d(e,"G",(function(){return u})),r.d(e,"I",(function(){return f})),r.d(e,"B",(function(){return g})),r.d(e,"H",(function(){return p})),r.d(e,"Q",(function(){return m})),r.d(e,"O",(function(){return v})),r.d(e,"T",(function(){return _})),r.d(e,"S",(function(){return h})),r.d(e,"R",(function(){return b})),r.d(e,"N",(function(){return y})),r.d(e,"d",(function(){return w})),r.d(e,"s",(function(){return C})),r.d(e,"P",(function(){return L})),r.d(e,"m",(function(){return D})),r.d(e,"l",(function(){return A})),r.d(e,"k",(function(){return x})),r.d(e,"j",(function(){return k})),r.d(e,"A",(function(){return O})),r.d(e,"u",(function(){return F})),r.d(e,"E",(function(){return z})),r.d(e,"V",(function(){return j})),r.d(e,"W",(function(){return E})),r.d(e,"U",(function(){return S})),r.d(e,"y",(function(){return V})),r.d(e,"x",(function(){return T})),r.d(e,"v",(function(){return M})),r.d(e,"w",(function(){return R})),r.d(e,"z",(function(){return B})),r.d(e,"i",(function(){return N})),r.d(e,"g",(function(){return P})),r.d(e,"h",(function(){return q})),r.d(e,"M",(function(){return W})),r.d(e,"o",(function(){return Q})),r.d(e,"n",(function(){return G})),r.d(e,"a",(function(){return J})),r.d(e,"r",(function(){return H})),r.d(e,"t",(function(){return Y})),r.d(e,"q",(function(){return U})),r.d(e,"f",(function(){return Z})),r.d(e,"e",(function(){return I})),r.d(e,"L",(function(){return K})),r.d(e,"K",(function(){return $}));var n=r("0c6d");function a(t){return n["a"].get("store/order/lst",t)}function i(){return n["a"].get("store/order/chart")}function o(t){return n["a"].get("store/order/title",t)}function s(t,e){return n["a"].post("store/order/update/".concat(t),e)}function l(t,e){return n["a"].post("store/order/delivery/".concat(t),e)}function c(t){return n["a"].get("store/order/detail/".concat(t))}function d(t){return n["a"].get("store/order/children/".concat(t))}function u(t,e){return n["a"].get("store/order/log/".concat(t),e)}function f(t){return n["a"].get("store/order/remark/".concat(t,"/form"))}function g(t){return n["a"].post("store/order/delete/".concat(t))}function p(t){return n["a"].get("store/order/printer/".concat(t))}function m(t){return n["a"].get("store/refundorder/lst",t)}function v(t){return n["a"].get("store/refundorder/detail/".concat(t))}function _(t){return n["a"].get("store/refundorder/status/".concat(t,"/form"))}function h(t){return n["a"].get("store/refundorder/mark/".concat(t,"/form"))}function b(t){return n["a"].get("store/refundorder/log/".concat(t))}function y(t){return n["a"].get("store/refundorder/delete/".concat(t))}function w(t){return n["a"].post("store/refundorder/refund/".concat(t))}function C(t){return n["a"].get("store/order/express/".concat(t))}function L(t){return n["a"].get("store/refundorder/express/".concat(t))}function D(t){return n["a"].get("store/order/excel",t)}function A(t){return n["a"].get("store/order/delivery_export",t)}function x(t){return n["a"].get("excel/lst",t)}function k(t){return n["a"].get("excel/download/".concat(t))}function O(t){return n["a"].get("store/order/verify/".concat(t))}function F(t,e){return n["a"].post("store/order/verify/".concat(t),e)}function z(){return n["a"].get("store/order/filtter")}function j(){return n["a"].get("store/order/takechart")}function E(t){return n["a"].get("store/order/takelst",t)}function S(t){return n["a"].get("store/order/take_title",t)}function V(t){return n["a"].get("store/receipt/lst",t)}function T(t){return n["a"].get("store/receipt/set_recipt",t)}function M(t){return n["a"].post("store/receipt/save_recipt",t)}function R(t){return n["a"].get("store/receipt/detail/".concat(t))}function B(t,e){return n["a"].post("store/receipt/update/".concat(t),e)}function N(t){return n["a"].get("store/import/lst",t)}function P(t,e){return n["a"].get("store/import/detail/".concat(t),e)}function q(t){return n["a"].get("store/import/excel/".concat(t))}function W(t){return n["a"].get("store/refundorder/excel",t)}function Q(){return n["a"].get("expr/options")}function G(t){return n["a"].get("expr/temps",t)}function J(t){return n["a"].post("store/order/delivery_batch",t)}function H(){return n["a"].get("serve/config")}function Y(){return n["a"].get("delivery/station/select")}function U(){return n["a"].get("delivery/station/options")}function Z(t){return n["a"].get("delivery/order/lst",t)}function I(t){return n["a"].get("delivery/order/cancel/".concat(t,"/form"))}function K(t){return n["a"].get("delivery/station/payLst",t)}function $(t){return n["a"].get("delivery/station/code",t)}}}]);