(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-48fa6c8c","chunk-0683fa55"],{"0b65":function(t,e,a){"use strict";e.a={shortcuts:[{text:"今天",value:function(){var t=new Date,e=new Date;return e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate())),[e,t]}},{text:"昨天",value:function(){var t=new Date,e=new Date;return e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-1))),t.setTime(t.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-1))),[e,t]}},{text:"最近7天",value:function(){var t=new Date,e=new Date;return e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-6))),[e,t]}},{text:"最近30天",value:function(){var t=new Date,e=new Date;return e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-29))),[e,t]}},{text:"上月",value:function(){var t=new Date,e=new Date,a=new Date(e.getFullYear(),e.getMonth(),0).getDate();return e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth()-1,1))),t.setTime(t.setTime(new Date((new Date).getFullYear(),(new Date).getMonth()-1,a))),[e,t]}},{text:"本月",value:function(){var t=new Date,e=new Date;return e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),1))),[e,t]}},{text:"本年",value:function(){var t=new Date,e=new Date;return e.setTime(e.setTime(new Date((new Date).getFullYear(),0,1))),[e,t]}}]}},"0fc4":function(t,e,a){"use strict";a.d(e,"a",(function(){return n})),a.d(e,"c",(function(){return i})),a.d(e,"b",(function(){return o}));var r=a("b6bd");function n(){return Object(r.a)({url:"erp/config",method:"get"})}function i(t){return Object(r.a)({url:"store/erp/shop",method:"get",params:t})}function o(t){return Object(r.a)({url:"product/import_erp_product",method:"post",data:t})}},"223d":function(t,e,a){"use strict";var r=a("c5b6");a.n(r).a},3353:function(t,e,a){"use strict";a.r(e);var r=a("a34a"),n=a.n(r),i=a("2f62"),o=a("f8b7"),s=a("0fc4"),c=a("31b4"),d=a("fc48"),u=a("61f8"),l=a("417c"),f=a("0b65");function m(t,e,a,r,n,i,o){try{var s=t[i](o),c=s.value}catch(t){return void a(t)}s.done?e(c):Promise.resolve(c).then(r,n)}function p(t){return function(){var e=this,a=arguments;return new Promise((function(r,n){var i=t.apply(e,a);function o(t){m(i,r,n,o,s,"next",t)}function s(t){m(i,r,n,o,s,"throw",t)}o(void 0)}))}}function g(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,r)}return a}function h(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var v={components:{editFrom:c.a,detailsFrom:d.a,orderRemark:u.a,orderRecord:l.a},data:function(){return{openErp:!1,thead:[{title:"订单号",align:"center",slot:"order_id",minWidth:150},{title:"用户信息",slot:"nickname",minWidth:130},{title:"商品信息",slot:"info",minWidth:300},{title:"实际支付",key:"pay_price",minWidth:70},{title:"发起退款时间",key:"add_time",minWidth:110},{title:"退款状态",slot:"refund_type",minWidth:100},{title:"退款信息",slot:"statusName",minWidth:100},{title:"售后备注",key:"remark",minWidth:80},{title:"操作",slot:"action",fixed:"right",minWidth:150,align:"center"}],tbody:[],num:[],orderDatalist:null,loading:!1,FromData:null,total:0,orderId:0,animal:1,pagination:{page:1,limit:15,order_id:"",time:"",refund_type:0},options:f.a,timeVal:[],modal:!1,qrcode:null,name:"",spin:!1,rowActive:{}}},computed:function(t){for(var e=1;e您选择的的订单存在用户未删除的订单,无法删除用户未删除的订单!

"})},submitFail:function(){this.getOrderList(),this.getData(this.orderId,1)},selectChange2:function(t){this.pagination.page=1,this.pagination.refund_type=t,this.getOrderList(t)},getNoRefundData:function(t){var e=this;this.$modalForm(Object(o.q)(t)).then((function(){e.getOrderList(),e.getData(e.orderId),e.$emit("changeGetTabs")}))},getOrderList:function(){var t=this;this.loading=!0,Object(o.D)(this.pagination).then((function(e){t.loading=!1;var a=e.data,r=a.count,n=a.list,i=a.num;t.total=r,t.tbody=n,t.num=i,n.forEach((function(e){e.id==t.orderId&&(t.rowActive=e)}))})).catch((function(e){t.loading=!1,t.$Message.error(e.msg)}))},pageChange:function(t){this.pagination.page=t,this.getOrderList()},nameSearch:function(){this.pagination.page=1,this.getOrderList()},orderSearch:function(){this.pagination.page=1,this.getOrderList()},delivery:function(t){var e=this;Object(o.h)(t.id).then(function(){var t=p(n.a.mark((function t(a){return n.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.FromData=a.data,e.$refs.edits.modals=!0;case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.$Message.error(t.msg)}))}}},_=(a("223d"),a("2877")),b=Object(_.a)(v,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":"",padding:0}},[a("div",{staticClass:"new_card_pd"},[a("Form",{ref:"pagination",attrs:{inline:"",model:t.pagination,"label-width":t.labelWidth,"label-position":t.labelPosition},nativeOn:{submit:function(t){t.preventDefault()}}},[a("FormItem",{attrs:{label:"订单状态:"}},[a("Select",{staticClass:"input-add",model:{value:t.pagination.refund_type,callback:function(e){t.$set(t.pagination,"refund_type",e)},expression:"pagination.refund_type"}},t._l(t.num,(function(e,r){return a("Option",{key:r,attrs:{value:r}},[t._v(t._s(e.name))])})),1)],1),a("FormItem",{attrs:{label:"退款时间:"}},[a("DatePicker",{staticClass:"input-add",attrs:{editable:!1,value:t.timeVal,format:"yyyy/MM/dd",type:"daterange",placement:"bottom-start",placeholder:"自定义时间",options:t.options},on:{"on-change":t.onchangeTime}})],1),a("FormItem",{attrs:{label:"订单搜索:","label-for":"title"}},[a("Input",{staticClass:"input-add mr14",attrs:{placeholder:"请输入订单号"},model:{value:t.pagination.order_id,callback:function(e){t.$set(t.pagination,"order_id",e)},expression:"pagination.order_id"}}),a("Button",{attrs:{type:"primary"},on:{click:function(e){return t.orderSearch()}}},[t._v("查询")])],1)],1)],1)]),a("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":""}},[a("Table",{ref:"table",attrs:{columns:t.thead,data:t.tbody,loading:t.loading,"highlight-row":"","no-userFrom-text":"暂无数据","no-filtered-userFrom-text":"暂无筛选结果"},scopedSlots:t._u([{key:"order_id",fn:function(e){var r=e.row;return[a("span",{staticStyle:{display:"block"},domProps:{textContent:t._s(r.order_id)}}),a("span",{directives:[{name:"show",rawName:"v-show",value:1===r.is_del&&null==r.delete_time,expression:"row.is_del === 1 && row.delete_time == null"}],staticClass:"span-del"},[t._v("用户已删除")])]}},{key:"nickname",fn:function(e){var r=e.row;return[a("div",[t._v(t._s(r.nickname)),null!=r.delete_time?a("span",{staticStyle:{color:"#ed4014"}},[t._v(" (已注销)")]):t._e()])]}},{key:"user",fn:function(e){var r=e.row;return[a("div",[t._v("用户名:"+t._s(r.nickname))]),a("div",[t._v("用户ID:"+t._s(r.uid))])]}},{key:"refund_type",fn:function(e){var r=e.row;return[1==r.refund_type?a("Tag",{attrs:{color:"blue",size:"medium"}},[t._v("仅退款")]):t._e(),2==r.refund_type?a("Tag",{attrs:{color:"blue",size:"medium"}},[t._v("退货退款")]):t._e(),3==r.refund_type?a("Tag",{attrs:{color:"red",size:"medium"}},[t._v("拒绝退款")]):t._e(),4==r.refund_type?a("Tag",{attrs:{color:"blue",size:"medium"}},[t._v("商品待退货")]):t._e(),5==r.refund_type?a("Tag",{attrs:{color:"blue",size:"medium"}},[t._v("退货待收货")]):t._e(),6==r.refund_type?a("Tag",{attrs:{color:"green",size:"medium"}},[t._v("已退款")]):t._e()]}},{key:"info",fn:function(e){var r=e.row;return[a("Tooltip",{attrs:{theme:"dark","max-width":"300",delay:600}},[t._l(r._info,(function(e,r){return a("div",{key:r,staticClass:"tabBox"},[a("div",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"tabBox_img"},[a("img",{directives:[{name:"lazy",rawName:"v-lazy",value:e.cart_info.productInfo.attrInfo?e.cart_info.productInfo.attrInfo.image:e.cart_info.productInfo.image,expression:"\n val.cart_info.productInfo.attrInfo\n ? val.cart_info.productInfo.attrInfo.image\n : val.cart_info.productInfo.image\n "}]})]),a("span",{staticClass:"tabBox_tit line1"},[e.cart_info.is_gift?a("span",{staticClass:"font-color-red"},[t._v("赠品")]):t._e(),t._v("\n "+t._s(e.cart_info.productInfo.store_name+" | ")+"\n "+t._s(e.cart_info.productInfo.attrInfo?e.cart_info.productInfo.attrInfo.suk:"")+"\n ")])])})),a("div",{attrs:{slot:"content"},slot:"content"},t._l(r._info,(function(e,r){return a("div",{key:r},[e.cart_info.is_gift?a("p",{staticClass:"font-color-red"},[t._v("赠品")]):t._e(),a("p",[t._v(t._s(e.cart_info.productInfo.store_name))]),a("p",[t._v(" "+t._s(e.cart_info.productInfo.attrInfo?e.cart_info.productInfo.attrInfo.suk:""))]),a("p",{staticClass:"tabBox_pice"},[t._v(t._s("¥"+e.cart_info.truePrice+" x "+e.cart_info.cart_num))])])})),0)],2)]}},{key:"statusName",fn:function(e){var r=e.row;return[a("Tooltip",{attrs:{theme:"dark","max-width":"300",delay:600}},[a("div",{staticClass:"pt5",domProps:{innerHTML:t._s(r.refund_reason)}}),a("div",{attrs:{slot:"content"},slot:"content"},[a("div",{staticClass:"pt5"},[t._v("退款原因:"+t._s(r.refund_explain))]),r.refund_goods_explain?a("div",{staticClass:"pt5"},[t._v("退货原因:"+t._s(r.refund_goods_explain))]):t._e()])]),r.refund_img?a("div",{staticClass:"pictrue-box"},t._l(r.refund_img||[],(function(t,e){return a("div",{directives:[{name:"viewer",rawName:"v-viewer"}],key:e},[a("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t,expression:"item"}],staticClass:"pictrue mr10",attrs:{src:t}})])})),0):t._e()]}},{key:"action",fn:function(e){var r=e.row;return[a("a",{directives:[{name:"show",rawName:"v-show",value:[1,2,5].includes(r.refund_type)&&(parseFloat(r.pay_price)>parseFloat(r.refunded_price)||0==r.pay_price),expression:"\n [1, 2, 5].includes(row.refund_type) &&\n (parseFloat(row.pay_price) > parseFloat(row.refunded_price) ||\n row.pay_price == 0)\n "}],attrs:{disabled:t.openErp},on:{click:function(e){return t.changeMenu(r,"5")}}},[t._v(t._s(2==r.refund_type?"同意退货":"立即退款"))]),a("Divider",{directives:[{name:"show",rawName:"v-show",value:[1,2,5].includes(r.refund_type)&&(parseFloat(r.pay_price)>parseFloat(r.refunded_price)||0==r.pay_price),expression:"\n [1, 2, 5].includes(row.refund_type) &&\n (parseFloat(row.pay_price) > parseFloat(row.refunded_price) ||\n row.pay_price == 0)\n "}],attrs:{type:"vertical"}}),a("a",{on:{click:function(e){return t.changeMenu(r,"2")}}},[t._v("订单详情")])]}}])}),a("div",{staticClass:"acea-row row-right page"},[a("Page",{attrs:{total:t.total,current:t.pagination.page,"show-elevator":"","show-total":"","page-size":t.pagination.limit},on:{"on-change":t.pageChange}})],1)],1),a("edit-from",{ref:"edits",attrs:{FromData:t.FromData},on:{submitFail:t.submitFail}}),a("details-from",{ref:"detailss",attrs:{orderDatalist:t.orderDatalist,orderId:t.orderId,rowActive:t.rowActive,openErp:t.openErp}}),a("order-remark",{ref:"remarks",attrs:{remarkType:"refund",orderId:t.orderId},on:{submitFail:t.submitFail}}),a("order-record",{ref:"record"})],1)}),[],!1,null,"4fb9ab6b",null);e.default=b.exports},6112:function(t,e,a){"use strict";a.r(e);var r=a("f478");function n(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,r)}return a}function i(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}a("2f62");var o={name:"rightConfig",components:function(t){for(var e=1;e