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.
1 lines
16 KiB
1 lines
16 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-889b372e"],{"2e83":function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));r("28a5");var n=r("8122"),a=r("e8ae"),o=r.n(a),l=r("21a6");function i(t,e,r,a,i,s){var c,u=["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"],d=1,m=new o.a.Workbook,p=t.length;function h(t){var e=Array.isArray(t)?t[0]:t,r=Array.isArray(t)?t[1]:{};c=m.addWorksheet(e,r)}function b(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(),d++}}}function g(t){if(!Object(n["isEmpty"])(t)){for(var e=c.getRow(d),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(),d++}}function v(t){if(!Object(n["isEmpty"])(t))for(var e=0;e<t.length;e++){for(var r=d,a=c.getRow(d),o=!1,l=0,i=0,s=0,u=0;u<t[e].length;u++)Array.isArray(t[e][u])?(l=s,o=!0,_(t[e][u],s),s+=t[e][u][0].length,i=s):(a.getCell(w(s)).value=t[e][u],a.getCell(w(s)).border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}},a.alignment={vertical:"middle",horizontal:"center"},s++);o&&y(r,d,l,i),a.height=25,a.commit(),d++}}function _(t,e){for(var r=t.length,n=r-1,a=0;a<t.length;a++){for(var o=c.getRow(d),l=0;l<t[a].length;l++)o.getCell(w(e+l)).value=t[a][l],o.getCell(w(e+l)).border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}},o.alignment={vertical:"middle",horizontal:"center"};o.height=25,o.commit(),a<n&&d++}}function y(t,e,r,n){for(var a=0;a<p;a++)(a<r||a>n)&&c.mergeCells(w(a)+t+":"+w(a)+e)}function x(t){if(!Object(n["isEmpty"])(t))if(Array.isArray(t))for(var e=0;e<t.length;e++){var r=c.getRow(d);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"+d+":"+w(p-1)+d),d++}else{var a=c.getRow(d);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"+d+":"+w(p-1)+d)}}function w(t){if(t<26)return u[t];var e=t%26,r=Math.floor(t%26);return u[r]+u[e]}function k(t){t||(t=(new Date).getTime()),m.xlsx.writeBuffer().then((function(e){var r=new Blob([e],{type:"application/octet-stream"});l["saveAs"](r,t+".xlsx")}))}h(s),b(e,p),g(t),v(r),x(a),k(i)}},"3f3a":function(t,e,r){"use strict";r("4021")},4021:function(t,e,r){},e572:function(t,e,r){"use strict";r.d(e,"c",(function(){return n})),r.d(e,"a",(function(){return a})),r.d(e,"b",(function(){return o}));var n=[{label:"开启",value:1},{label:"关闭",value:0}],a={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"}]},o={title:"状态",custom:!0,fromTxt:[{text:"全部",val:""},{text:"待审核",val:"0"},{text:"审核已通过",val:"1"},{text:"审核未通过",val:"2"}]}},f52f: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":"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,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",{staticStyle:{display:"inline-block"},attrs:{label:"商户类别:"}},[r("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"}},[r("el-option",{attrs:{label:"自营",value:"1"}}),t._v(" "),r("el-option",{attrs:{label:"非自营",value:"0"}})],1)],1),t._v(" "),r("el-form-item",{staticStyle:{display:"inline-block"},attrs:{label:"退款单号:"}},[r("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入订单号",size:"small",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"}},[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",{staticStyle:{display:"inline-block"},attrs:{label:"订单单号:"}},[r("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入订单号",size:"small",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"}},[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",icon:"el-icon-top"},on:{click:t.exports}},[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(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)))])])],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("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(" "),r("el-table-column",{attrs:{prop:"user.nickname",label:"用户信息","min-width":"130"}}),t._v(" "),r("el-table-column",{attrs:{prop:"merchant.mer_name",label:"商户名称","min-width":"130"}}),t._v(" "),r("el-table-column",{attrs:{prop:"mer_name",label:"商户类别","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.merchant?r("span",{staticClass:"spBlock"},[t._v(t._s(e.row.merchant.is_trader?"自营":"非自营"))]):t._e()]}}])}),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(e,n){return r("div",{key:n,staticClass:"tabBox acea-row row-middle"},[r("div",{staticClass:"demo-image__preview"},[r("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(" "),r("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(" "),r("span",{staticClass:"tabBox_pice"},[t._v(t._s("¥"+e.product.cart_info.productAttr.price+" x "+e.product.product_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("订单详情")])]}}])})],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("file-list",{ref:"exportList"})],1)},a=[],o=r("c80c"),l=(r("96cf"),r("3b8d")),i=r("f8b7"),s=r("2e83"),c=r("e572"),u=r("30dc"),d={components:{fileList:u["a"]},name:"OrderRefund",data:function(){return{orderId:0,tableData:{data:[],total:0},listLoading:!0,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}},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:{onOrderDetail:function(t){this.$router.push({name:"OrderList",query:{order_sn:t}})},exports:function(){var t=Object(l["a"])(Object(o["a"])().mark((function t(){var e,r,n,a,l;return Object(o["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={},l=0;case 5:if(!(l<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:l++,t.next=5;break;case 14:return Object(s["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(i["h"])(t).then((function(t){return e(t.data)}))}))},exportRecord:function(){var t=this;Object(i["h"])(this.tableFrom).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(t){}))})).catch((function(e){t.$message.error(e.message)}))},getExportFileList:function(){this.$refs.exportList.exportFileList()},getTotal:function(t){for(var e=0,r=0;r<t.length;r++)e+=t[r].product.cart_info.productAttr.price*t[r].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(i["p"])(t)).then((function(){return e.getList("")}))},send:function(t){var e=this;this.$modalForm(Object(i["l"])(t)).then((function(){return e.getList("")}))},getList:function(t){var e=this;this.listLoading=!0,this.tableFrom.page=t||this.tableFrom.page,Object(i["t"])(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)}}},f=d,m=(r("3f3a"),r("2877")),p=Object(m["a"])(f,n,a,!1,null,"5e9d9ed5",null);e["default"]=p.exports},f8b7:function(t,e,r){"use strict";r.d(e,"n",(function(){return a})),r.d(e,"b",(function(){return o})),r.d(e,"a",(function(){return l})),r.d(e,"p",(function(){return i})),r.d(e,"l",(function(){return s})),r.d(e,"m",(function(){return c})),r.d(e,"o",(function(){return u})),r.d(e,"t",(function(){return d})),r.d(e,"i",(function(){return f})),r.d(e,"j",(function(){return m})),r.d(e,"g",(function(){return p})),r.d(e,"h",(function(){return h})),r.d(e,"f",(function(){return b})),r.d(e,"v",(function(){return g})),r.d(e,"w",(function(){return v})),r.d(e,"u",(function(){return _})),r.d(e,"e",(function(){return y})),r.d(e,"d",(function(){return x})),r.d(e,"c",(function(){return w})),r.d(e,"s",(function(){return k})),r.d(e,"r",(function(){return C})),r.d(e,"q",(function(){return L}));var n=r("0c6d");function a(t){return n["a"].get("order/lst",t)}function o(){return n["a"].get("order/chart")}function l(t){return n["a"].get("order/title",t)}function i(t){return n["a"].get("store/order/update/".concat(t,"/form"))}function s(t){return n["a"].get("store/order/delivery/".concat(t,"/form"))}function c(t){return n["a"].get("order/detail/".concat(t))}function u(t,e){return n["a"].get("order/status/".concat(t),e)}function d(t){return n["a"].get("order/refund/lst",t)}function f(t){return n["a"].get("order/children/".concat(t))}function m(t){return n["a"].get("order/express/".concat(t))}function p(t){return n["a"].get("order/excel",t)}function h(t){return n["a"].get("order/refund/excel",t)}function b(t){return n["a"].get("excel/lst",t)}function g(){return n["a"].get("order/takechart")}function v(t){return n["a"].get("order/takelst",t)}function _(t){return n["a"].get("order/take_title",t)}function y(){return n["a"].get("excel/type")}function x(t){return n["a"].get("delivery/order/lst",t)}function w(t){return n["a"].get("delivery/order/cancel/".concat(t,"/form"))}function k(t){return n["a"].get("delivery/station/payLst",t)}function C(){return n["a"].get("delivery/title")}function L(){return n["a"].get("delivery/belence")}}}]); |