| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6395e89d","chunk-724597f4","chunk-2d0da01e"],{"129f":function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e===1/t:e!=e&&t!=t}},5918:function(e,t,c){"use strict";c.r(t);c("a9e3");var o=c("7a23"),n=Object(o["withScopeId"])("data-v-5edbc839");Object(o["pushScopeId"])("data-v-5edbc839");var r={style:{margin:"0 30px"}},a={key:0,style:{"font-size":"10px"}},l=Object(o["createTextVNode"])(" 运费: "),i=Object(o["createTextVNode"])(" 快递单号: "),u=Object(o["createTextVNode"])(" 收货地址: "),s=Object(o["createTextVNode"])(" 备注: ");Object(o["popScopeId"])();var d=n((function(e,t,c,d,b,O){var f=Object(o["resolveComponent"])("a-descriptions"),j=Object(o["resolveComponent"])("a-form-item"),m=Object(o["resolveComponent"])("a-col"),p=Object(o["resolveComponent"])("a-badge"),N=Object(o["resolveComponent"])("a-space"),x=Object(o["resolveComponent"])("a-row"),_=Object(o["resolveComponent"])("a-image"),V=Object(o["resolveComponent"])("a-table"),h=Object(o["resolveComponent"])("a-form"),k=Object(o["resolveComponent"])("a-drawer");return Object(o["openBlock"])(),Object(o["createBlock"])(k,{title:"订单详情",visible:b.modalShow,closable:"",keyboard:"",width:780,onClose:t[1]||(t[1]=function(e){return b.modalShow=!1})},{default:n((function(){return[Object(o["createVNode"])("div",r,[Object(o["createVNode"])(h,{ref:"form",model:b.form,"wrapper-col":{md:{span:18},sm:{span:24}}},{default:n((function(){return[Object(o["createVNode"])(f,{title:"订单信息"}),Object(o["createVNode"])(x,null,{default:n((function(){return[Object(o["createVNode"])(m,{span:12},{default:n((function(){return[Object(o["createVNode"])(j,{label:"订单编号"},{default:n((function(){return[Object(o["createVNode"])("span",null,Object(o["toDisplayString"])(b.form.order_no),1)]})),_:1})]})),_:1}),Object(o["createVNode"])(m,{span:12},{default:n((function(){return[Object(o["createVNode"])(j,{label:"订单状态"},{default:n((function(){return[Object(o["createVNode"])(N,null,{default:n((function(){return["10"==b.form.status?(Object(o["openBlock"])(),Object(o["createBlock"])(p,{key:0,status:"warning",text:"等待买家付款"})):Object(o["createCommentVNode"])("",!0),"11"==b.form.status?(Object(o["openBlock"])(),Object(o["createBlock"])(p,{key:1,status:"processing",text:"已付款"})):Object(o["createCommentVNode"])("",!0),"12"==b.form.status?(Object(o["openBlock"])(),Object(o["createBlock"])(p,{key:2,status:"processing",text:"待收货"})):Object(o["createCommentVNode"])("",!0),"13"==b.form.status?(Object(o["openBlock"])(),Object(o["createBlock"])(p,{key:3,status:"success",text:"已完成"})):Object(o["createCommentVNode"])("",!0),"14"==b.form.status?(Object(o["openBlock"])(),Object(o["createBlock"])(p,{key:4,status:"error",text:"交易关闭"})):Object(o["createCommentVNode"])("",!0),"15"==b.form.status?(Object(o["openBlock"])(),Object(o["createBlock"])(p,{key:5,status:"warning",text:"提交售后"})):Object(o["createCommentVNode"])("",!0)]})),_:1})]})),_:1})]})),_:1}),Object(o["createVNode"])(m,{span:12},{default:n((function(){return[Object(o["createVNode"])(j,{label:"订单金额"},{default:n((function(){return[Object(o["createVNode"])("span",null,Object(o["toDisplayString"])(b.form.total_amount)+"元",1)]})),_:1})]})),_:1}),Object(o["createVNode"])(m,{span:12},{default:n((function(){return[Object(o["createVNode"])(j,{label:"实付金额"},{default:n((function(){return[Object(o["createVNode"])("span",null,Object(o["toDisplayString"])(b.form.actual_total_amount)+"元",1),b.form.discount_amount&&Number(b.form.discount_amount)>0?(Object(o["openBlock"])(),Object(o["createBlock"])("span",a,"(优惠"+Object(o["toDisplayString"])(b.form.discount_amount)+"元)",1)):Object(o["createCommentVNode"])("",!0)]})),_:1})]})),_:1})]})),_:1}),Object(o["createVNode"])(x,null,{default:n((function(){return[Object(o["createVNode"])(m,{span:12},{default:n((function(){return[Object(o["createVNode"])(j,{label:"下单用户"},{default:n((function(){return[Object(o["createVNode"])(N,null,{default:n((function(){return[Object(o["createVNode"])("span",null,Object(o["toDisplayString"])(b.form.user.nickname||"微信用户"),1)]})),_:1})]})),_:1})]})),_:1}),Object(o["createVNode"])(m,{span:12},{default:n((function(){return[Object(o["createVNode"])(j,{label:"手机号码"},{default:n((function(){var e;return[Object(o["createVNode"])("span",null,Object(o["toDisplayString"])((null===(e=b.form.user)||void 0===e?void 0:e.mobile)||"- -"),1)]})),_:1})]})),_:1})]})),_:1}),Object(o["createVNode"])(x,null,{default:n((function(){return[Object(o["createVNode"])(m,{span:12},{default:n((function(){return[Object(o["createVNode"])(j,{label:"下单时间"},{default:n((function(){return[Object(o["createVNode"])("span",null,Object(o["toDisplayString"])(b.toDateString(b.form.createtime)),1)]})),_:1})]})),_:1}),Object(o["createVNode"])(m,{span:12},{default:n((function(){return[b.form.pay_time?(Object(o["openBlock"])(),Object(o["createBlock"])(j,{key:0,label:"支付时间"},{default:n((function(){return[Object(o["createVNode"])("span",null,Object(o["toDisplayString"])(b.toDateString(b.form.pay_time)||"- -"),1)]})),_:1})):Object(o["createCommentVNode"])("",!0),b.form.send_time?(Object(o["openBlock"])(),Object(o["createBlock"])(j,{key:1,label:"发货时间"},{default:n((function(){return[Object(o["createVNode"])("span",null,Object(o["toDisplayString"])(b.toDateString(b.form.send_time)||"- -"),1)]})),_:1})):Object(o["createCommentVNode"])("",!0),b.form.success_time?(Object(o["openBlock"])(),Object(o["createBlock"])(j,{key:2,label:"完成时间"},{default:n((function(){return[Object(o["createVNode"])("span",null,Object(o["toDisplayString"])(b.toDateString(b.form.success_time)||"- -"),1)]})),_:1})):Object(o["createCommentVNode"])("",!0),b.form.cancel_time?(Object(o["openBlock"])(),Object(o["createBlock"])(j,{key:3,label:"取消时间"},{default:n((function(){return[Object(o["createVNode"])("span",null,Object(o["toDisplayString"])(b.toDateString(b.form.cancel_time)||"- -"),1)]})),_:1})):Object(o["createCommentVNode"])("",!0)]})),_:1})]})),_:1}),Object(o["createVNode"])(x,null,{default:n((function(){return[Object(o["createVNode"])(m,{span:12},{default:n((function(){return[l]})),_:1}),Object(o["createVNode"])(m,{span:12},{default:n((function(){return[Object(o["createTextVNode"])(Object(o["toDisplayString"])(Number(b.form.express_fee)>0?"".concat(Number(b.form.express_fee),"元"):"包邮"),1)]})),_:1})]})),_:1}),b.form.express_no?(Object(o["openBlock"])(),Object(o["createBlock"])(x,{key:0,style:{"margin-top":"20px"}},{default:n((function(){return[Object(o["createVNode"])(m,{span:12},{default:n((function(){return[i]})),_:1}),Object(o["createVNode"])(m,{span:12},{default:n((function(){return[Object(o["createTextVNode"])(Object(o["toDisplayString"])(b.form.express_no),1)]})),_:1})]})),_:1})):Object(o["createCommentVNode"])("",!0),Object(o["createVNode"])(x,{style:{"margin-top":"25px"}},{default:n((function(){return[Object(o["createVNode"])(m,{span:12},{default:n((function(){return[u]})),_:1}),Object(o["createVNode"])(m,{span:12},{default:n((function(){return[Object(o["createTextVNode"])(Object(o["toDisplayString"])(b.form.address_info),1)]})),_:1})]})),_:1}),Object(o["createVNode"])(x,{style:{"margin-top":"25px"}},{default:n((function(){return[Object(o["createVNode"])(m,{span:12},{default:n((function(){return[s]})),_:1}),Object(o["createVNode"])(m,{span:12},{default:n((function(){return[Object(o["createTextVNode"])(Object(o["toDisplayString"])(b.form.remark||"--"),1)]})),_:1})]})),_:1}),Object(o["createVNode"])(f,{title:"商品信息",style:{"margin-top":"20px"}}),Object(o["createVNode"])(V,{dataSource:b.form.order_details,columns:b.columns},{goods_cover:n((function(e){var t=e.record;return[Object(o["createVNode"])(N,null,{default:n((function(){return[Object(o["createVNode"])(_,{src:t.goods_cover,width:"60px",height:"60px"},null,8,["src"])]})),_:2},1024)]})),_:1},8,["dataSource","columns"])]})),_:1},8,["model"])])]})),_:1},8,["visible"])})),b=c("5530"),O=(c("99af"),c("2c2a")),f=c("5502"),j={name:"addEdit",computed:Object(b["a"])({},Object(f["b"])(["userInfo"])),data:function(){return{toDateString:O["toDateString"],modalShow:!1,loading:!1,form:{},columns:[{title:"ISBN",dataIndex:"goods_isbn"},{title:"书名",dataIndex:"goods_title",width:150},{title:"图片",dataIndex:"goods_cover",slots:{customRender:"goods_cover"}},{title:"规格",dataIndex:"goods_sku"},{title:"数量",dataIndex:"goods_nums"},{title:"金额",dataIndex:"total_amount",customRender:function(e){var t=e.text;return"".concat(t,"元")}}]}},methods:{mergeArea:function(e){return e?"".concat(e.receiver_province,"/").concat(e.receiver_city,"/").concat(e.receiver_area):""},openDetail:function(e){var t=Object.assign({},e);t.commissionList=[{id:t.user_id,name:t.user.nickname,type:"自购佣金",level:t.self_level_name,bili:t.self_buy_bili+"%",amount:t.self_commission+"元"}],t.one&&t.commissionList.push({id:t.one?t.one.id:2,name:t.one?t.one.id.nickname:"",type:"1代佣金",level:t.one_level_name,bili:t.one_bili+"%",amount:t.one_commission+"元"}),t.two&&t.commissionList.push({id:t.two?t.two.id:2,name:t.two?t.two.id.nickname:"",type:"2代佣金",level:t.two_level_name,bili:t.two_bili+"%",amount:t.two_commission+"元"}),this.form=t,console.log("=====this.form: ",this.form),this.modalShow=!0},submit:function(){this.modalShow=!1}}},m=(c("c2b9"),c("6b0d")),p=c.n(m);const N=p()(j,[["render",d],["__scopeId","data-v-5edbc839"]]);t["default"]=N},"5f7e":function(e,t,c){"use strict";c.r(t);c("ac1f"),c("841c"),c("a9e3"),c("caad"),c("2532");var o=c("7a23"),n={class:"ele-body ele-body-card"},r=Object(o["createTextVNode"])("全部"),a=Object(o["createTextVNode"])("待审核"),l=Object(o["createTextVNode"])("退款中(仅退款)"),i=Object(o["createTextVNode"])("退款成功(仅退款)"),u=Object(o["createTextVNode"])("拒绝退款(仅退款)"),s=Object(o["createTextVNode"])("退货中(退货退款)"),d=Object(o["createTextVNode"])("拒绝退货(退货退款)"),b=Object(o["createTextVNode"])("卖家待收货(退货退款)"),O=Object(o["createTextVNode"])("卖家确认收货(退款中)"),f=Object(o["createTextVNode"])("退款成功(退货退款)"),j=Object(o["createTextVNode"])("查询"),m=Object(o["createTextVNode"])("重置"),p=Object(o["createTextVNode"])("数据共 "),N={class:"ele-text-primary"},x=Object(o["createTextVNode"])(" 条"),_=Object(o["createVNode"])("em",null,null,-1),V={style:{display:"flex","flex-direction":"column"}},h={class:"ele-text-warning"},k={key:0},g={key:1},v=Object(o["createVNode"])("div",{style:{width:"70px"}},"原因:",-1);function C(e,t,c,C,w,y){var S=Object(o["resolveComponent"])("a-select-option"),B=Object(o["resolveComponent"])("a-select"),D=Object(o["resolveComponent"])("a-form-item"),T=Object(o["resolveComponent"])("a-col"),I=Object(o["resolveComponent"])("a-button"),R=Object(o["resolveComponent"])("a-space"),F=Object(o["resolveComponent"])("a-row"),J=Object(o["resolveComponent"])("a-form"),q=Object(o["resolveComponent"])("a-card"),z=Object(o["resolveComponent"])("a-alert"),L=Object(o["resolveComponent"])("a-badge"),U=Object(o["resolveComponent"])("a-image"),$=Object(o["resolveComponent"])("a-popconfirm"),P=Object(o["resolveComponent"])("ele-pro-table"),E=Object(o["resolveComponent"])("add-edit"),W=Object(o["resolveComponent"])("a-input"),M=Object(o["resolveComponent"])("a-modal");return Object(o["openBlock"])(),Object(o["createBlock"])("div",n,[Object(o["createVNode"])(q,{bordered:!1,"body-style":{paddingBottom:0}},{default:Object(o["withCtx"])((function(){return[Object(o["createVNode"])(J,{model:w.whereFormData,"label-col":{md:{span:6},sm:{span:24}},"wrapper-col":{md:{span:18},sm:{span:24}}},{default:Object(o["withCtx"])((function(){return[Object(o["createVNode"])(F,null,{default:Object(o["withCtx"])((function(){return[Object(o["createVNode"])(T,{lg:8,md:12,sm:24,xs:24},{default:Object(o["withCtx"])((function(){return[Object(o["createVNode"])(D,{label:"订单状态:"},{default:Object(o["withCtx"])((function(){return[Object(o["createVNode"])(B,{value:w.whereFormData.status,"onUpdate:value":t[1]||(t[1]=function(e){return w.whereFormData.status=e}),placeholder:"请选择订单状态"},{default:Object(o["withCtx"])((function(){return[Object(o["createVNode"])(S,{key:""},{default:Object(o["withCtx"])((function(){return[r]})),_:1}),Object(o["createVNode"])(S,{key:"10"},{default:Object(o["withCtx"])((function(){return[a]})),_:1}),Object(o["createVNode"])(S,{key:"21"},{default:Object(o["withCtx"])((function(){return[l]})),_:1}),Object(o["createVNode"])(S,{key:"211"},{default:Object(o["withCtx"])((function(){return[i]})),_:1}),Object(o["createVNode"])(S,{key:"22"},{default:Object(o["withCtx"])((function(){return[u]})),_:1}),Object(o["createVNode"])(S,{key:"31"},{default:Object(o["withCtx"])((function(){return[s]})),_:1}),Object(o["createVNode"])(S,{key:"32"},{default:Object(o["withCtx"])((function(){return[d]})),_:1}),Object(o["createVNode"])(S,{key:"33"},{default:Object(o["withCtx"])((function(){return[b]})),_:1}),Object(o["createVNode"])(S,{key:"34"},{default:Object(o["withCtx"])((function(){return[O]})),_:1}),Object(o["createVNode"])(S,{key:"344"},{default:Object(o["withCtx"])((function(){return[f]})),_:1})]})),_:1},8,["value"])]})),_:1})]})),_:1}),Object(o["createVNode"])(T,{lg:4,md:12,sm:24,xs:24},{default:Object(o["withCtx"])((function(){return[Object(o["createVNode"])(D,{class:"ele-text-right","wrapper-col":{span:24}},{default:Object(o["withCtx"])((function(){return[Object(o["createVNode"])(R,null,{default:Object(o["withCtx"])((function(){return[Object(o["createVNode"])(I,{type:"primary",onClick:e.search},{default:Object(o["withCtx"])((function(){return[j]})),_:1},8,["onClick"]),Object(o["createVNode"])(I,{onClick:e.reset},{default:Object(o["withCtx"])((function(){return[m]})),_:1},8,["onClick"])]})),_:1})]})),_:1})]})),_:1})]})),_:1})]})),_:1},8,["model"])]})),_:1}),Object(o["createVNode"])(q,{bordered:!1},{default:Object(o["withCtx"])((function(){return[Object(o["createVNode"])(z,{type:"info","show-icon":"",style:{"margin-bottom":"16px"}},{message:Object(o["withCtx"])((function(){return[Object(o["createVNode"])("span",null,[p,Object(o["createVNode"])("b",N,Object(o["toDisplayString"])(e.total),1),x,_])]})),_:1}),Object(o["createVNode"])(P,{title:"售后订单列表",where:w.whereFormData,parseData:e.parseData,ref:"table","row-key":"id",onDone:e.eleTableDone,datasource:w.url,columns:w.columns,method:"POST",scroll:{x:1200}},{status:Object(o["withCtx"])((function(e){var t=e.record;return[Object(o["createVNode"])(R,{direction:"vertical"},{default:Object(o["withCtx"])((function(){return[Object(o["createVNode"])(R,null,{default:Object(o["withCtx"])((function(){return["10"==t.status?(Object(o["openBlock"])(),Object(o["createBlock"])(L,{key:0,status:"warning",text:"待审核"})):Object(o["createCommentVNode"])("",!0),"21"==t.status?(Object(o["openBlock"])(),Object(o["createBlock"])(L,{key:1,status:"processing",text:"退款中"})):Object(o["createCommentVNode"])("",!0),"211"==t.status?(Object(o["openBlock"])(),Object(o["createBlock"])(L,{key:2,status:"success",text:"退款成功"})):Object(o["createCommentVNode"])("",!0),"22"==t.status?(Object(o["openBlock"])(),Object(o["createBlock"])(L,{key:3,status:"default",text:"拒绝退款"})):Object(o["createCommentVNode"])("",!0),"31"==t.status?(Object(o["openBlock"])(),Object(o["createBlock"])(L,{key:4,status:"processing",text:"退货中"})):Object(o["createCommentVNode"])("",!0),"32"==t.status?(Object(o["openBlock"])(),Object(o["createBlock"])(L,{key:5,status:"error",text:"拒绝退货"})):Object(o["createCommentVNode"])("",!0),"33"==t.status?(Object(o["openBlock"])(),Object(o["createBlock"])(L,{key:6,status:"warning",text:"卖家待收货"})):Object(o["createCommentVNode"])("",!0),"34"==t.status?(Object(o["openBlock"])(),Object(o["createBlock"])(L,{key:7,status:"success",text:"卖家确认收货(退款中)"})):Object(o["createCommentVNode"])("",!0),"344"==t.status?(Object(o["openBlock"])(),Object(o["createBlock"])(L,{key:8,status:"success",text:"退款成功"})):Object(o["createCommentVNode"])("",!0)]})),_:2},1024)]})),_:2},1024)]})),product:Object(o["withCtx"])((function(e){var t=e.record;return[Object(o["createVNode"])(R,{direction:"vertical",size:"middle"},{default:Object(o["withCtx"])((function(){return[(Object(o["openBlock"])(!0),Object(o["createBlock"])(o["Fragment"],null,Object(o["renderList"])(t.order_detail,(function(e,t){return Object(o["openBlock"])(),Object(o["createBlock"])(R,{align:"center",size:"small",key:t},{default:Object(o["withCtx"])((function(){return[Object(o["createVNode"])(U,{src:e.goods_cover,width:"66px",height:"66px"},null,8,["src"]),Object(o["createVNode"])("div",V,[Object(o["createVNode"])("span",null,"商品名称:"+Object(o["toDisplayString"])(e.goods_title||""),1),Object(o["createVNode"])("span",h,Object(o["toDisplayString"])(e.goods_sku)+" × "+Object(o["toDisplayString"])(e.goods_nums)+" (¥"+Object(o["toDisplayString"])(e.total_amount)+") ",1)])]})),_:2},1024)})),128))]})),_:2},1024)]})),refundFee:Object(o["withCtx"])((function(e){var t=e.record;return[Object(o["createVNode"])(R,{direction:"vertical"},{default:Object(o["withCtx"])((function(){return[Object(o["createVNode"])("div",null,Object(o["toDisplayString"])(t.refundFee)+"元",1)]})),_:2},1024)]})),express:Object(o["withCtx"])((function(e){var t=e.record;return[Object(o["createVNode"])("div",null,"运费:"+Object(o["toDisplayString"])(Number(t.express_fee)>0?"".concat(Number(t.express_fee),"元"):"包邮"),1),t.express_no?(Object(o["openBlock"])(),Object(o["createBlock"])("div",k,"快递单号:"+Object(o["toDisplayString"])(t.express_no),1)):Object(o["createCommentVNode"])("",!0),t.address_info?(Object(o["openBlock"])(),Object(o["createBlock"])("div",g,"收货地址:"+Object(o["toDisplayString"])(t.address_info),1)):Object(o["createCommentVNode"])("",!0)]})),action:Object(o["withCtx"])((function(e){var t=e.record;return["1"==t.refund_type?(Object(o["openBlock"])(),Object(o["createBlock"])(R,{key:0,direction:"vertical"},{default:Object(o["withCtx"])((function(){return[(Object(o["openBlock"])(!0),Object(o["createBlock"])(o["Fragment"],null,Object(o["renderList"])(w.actionBtn1,(function(e,c){return Object(o["openBlock"])(),Object(o["createBlock"])($,{title:e.question,"ok-text":"确定","cancel-text":"取消",key:c,disabled:!e.activeStatus.includes(t.status),onConfirm:function(c){return y.updateOrderStatus(t,e.targetStatus)}},{default:Object(o["withCtx"])((function(){return[Object(o["createVNode"])(I,{size:"small",type:"link",disabled:!e.activeStatus.includes(t.status)},{default:Object(o["withCtx"])((function(){return[Object(o["createTextVNode"])(Object(o["toDisplayString"])(e.title),1)]})),_:2},1032,["disabled"])]})),_:2},1032,["title","disabled","onConfirm"])})),128))]})),_:2},1024)):Object(o["createCommentVNode"])("",!0),"2"==t.refund_type?(Object(o["openBlock"])(),Object(o["createBlock"])(R,{key:1,direction:"vertical"},{default:Object(o["withCtx"])((function(){return[(Object(o["openBlock"])(!0),Object(o["createBlock"])(o["Fragment"],null,Object(o["renderList"])(w.actionBtn2,(function(e,c){return Object(o["openBlock"])(),Object(o["createBlock"])($,{title:e.question,"ok-text":"确定","cancel-text":"取消",disabled:!e.activeStatus.includes(t.status),key:c,onConfirm:function(c){return y.updateOrderStatus(t,e.targetStatus)}},{default:Object(o["withCtx"])((function(){return[Object(o["createVNode"])(I,{size:"small",type:"link",disabled:!e.activeStatus.includes(t.status)},{default:Object(o["withCtx"])((function(){return[Object(o["createTextVNode"])(Object(o["toDisplayString"])(e.title),1)]})),_:2},1032,["disabled"])]})),_:2},1032,["title","disabled","onConfirm"])})),128))]})),_:2},1024)):Object(o["createCommentVNode"])("",!0)]})),_:1},8,["where","parseData","onDone","datasource","columns"])]})),_:1}),Object(o["createVNode"])(E,{ref:"addedit",onReload:e.reload},null,8,["onReload"]),Object(o["createVNode"])(M,{"wrap-class-name":"ele-modal-movable ele-modal-resizable ele-modal-resizable",visible:w.refuseShow,closable:!1,title:"拒绝原因",width:400,onCancel:t[3]||(t[3]=function(e){return w.refuseShow=!1}),onOk:t[4]||(t[4]=function(e){return y.haldlePostUpdate(w.currentRecord,w.currentTargetStatus,w.refuse_reason)})},{default:Object(o["withCtx"])((function(){return[Object(o["createVNode"])(R,null,{default:Object(o["withCtx"])((function(){return[v,Object(o["createVNode"])(W,{value:w.refuse_reason,"onUpdate:value":t[2]||(t[2]=function(e){return w.refuse_reason=e}),style:{width:"200px"},placeholder:"请输入拒绝原因"},null,8,["value"])]})),_:1})]})),_:1},8,["visible"])])}var w=c("5530"),y=(c("99af"),c("5918")),S=c("2c2a"),B=c("6a85"),D={status:""},T={mixins:[B["listMixin"]],components:{addEdit:y["default"]},data:function(){return{refuseShow:!1,refuse_reason:"",currentRecord:{},currentTargetStatus:"",actionBtn1:[{title:"同意退款",question:"确定同意此订单退款?",activeStatus:["10",10],targetStatus:"21"},{title:"拒绝退款",question:"确定拒绝此订单退款?",activeStatus:["10",10],targetStatus:"22"}],actionBtn2:[{title:"同意退货退款",question:"确定同意此订单退货退款?",activeStatus:["10",10],targetStatus:"31"},{title:"拒绝退货退款",question:"确定拒绝此订单退货退款?",activeStatus:["10",10],targetStatus:"32"},{title:"卖家确认收货",question:"确定已收到此订单退货,并同意退款?",activeStatus:["33",33],targetStatus:"34"}],toDateString:S["toDateString"],defaultWhere:JSON.parse(JSON.stringify(D)),whereFormData:{},url:"/manager/shopOrder/getRefundOrderList",deleteUrl:"/manager/shopSpu/del",columns:[{title:"退货单号",align:"left",dataIndex:"refund_no"},{title:"订单商品",align:"left",width:350,dataIndex:"product",slots:{customRender:"product"}},{title:"售后类型",align:"left",width:90,dataIndex:"refund_type",customRender:function(e){var t=e.text;return"1"==t?"仅退款":"2"==t?"退货退款":"--"}},{title:"退货用户",align:"left",dataIndex:"user",customRender:function(e){var t=e.text;return t?"".concat(t.nickname,"(").concat(t.mobile,")"):"--"}},{title:"退单金额",align:"left",width:"200px",dataIndex:"refundFee",slots:{customRender:"refundFee"}},{title:"退货时间",dataIndex:"createtime",width:200,align:"center",customRender:function(e){var t=e.text;return Object(S["toDateString"])(t)}},{title:"快递单号",dataIndex:"expressCode",align:"left",customRender:function(e){var t=e.text;return t||"--"}},{title:"退单状态",dataIndex:"status",align:"center",slots:{customRender:"status"}},{title:"操作",dataIndex:"action",fixed:"right",align:"center",slots:{customRender:"action"}}]}},methods:{updateOrderStatus:function(e,t){["22","32"].includes(t)?(this.refuse_reason="",this.currentRecord=Object(w["a"])({},e),this.currentTargetStatus=t,this.refuseShow=!0):this.haldlePostUpdate(e,t)},haldlePostUpdate:function(e,t,c){var o=this,n=e.id,r={id:n,status:t};c&&(r.refuse_reason=c),this.$post("/manager/shopOrder/checkRefundOrder",r).then((function(e){console.log("res",e),o.refuseShow=!1,o.reload()}))}}},I=c("6b0d"),R=c.n(I);const F=R()(T,[["render",C]]);t["default"]=F},"6a85":function(e,t,c){"use strict";c.r(t),c.d(t,"listMixin",(function(){return o}));var o={data:function(){return{total:0}},methods:{eleTableDone:function(e,t,c){this.total=c},reload:function(){this.$refs.table.reload()},search:function(){this.$refs.table.reload({page:1})},parseData:function(e){return console.log("res",e),console.log("res.data.data",e.data.data.length),{code:1==e.code?0:e.code,data:e.data.data,count:e.data.total,msg:e.msg}},handleDelete:function(e){var t=this,c=e.id;this.$post(this.deleteUrl,{id:c},!0).then((function(){t.reload()}))},handleDetail:function(e){this.$refs.addedit.openDetail(e)},reset:function(){var e=this;this.whereFormData=JSON.parse(JSON.stringify(this.defaultWhere)),this.$nextTick((function(){e.reload()}))}},created:function(){this.whereFormData=JSON.parse(JSON.stringify(this.defaultWhere))}}},"841c":function(e,t,c){"use strict";var o=c("d784"),n=c("825a"),r=c("1d80"),a=c("129f"),l=c("14c3");o("search",(function(e,t,c){return[function(t){var c=r(this),o=void 0==t?void 0:t[e];return void 0!==o?o.call(t,c):new RegExp(t)[e](String(c))},function(e){var o=c(t,this,e);if(o.done)return o.value;var r=n(this),i=String(e),u=r.lastIndex;a(u,0)||(r.lastIndex=0);var s=l(r,i);return a(r.lastIndex,u)||(r.lastIndex=u),null===s?-1:s.index}]}))},b2ec:function(e,t,c){},c2b9:function(e,t,c){"use strict";c("b2ec")}}]);
|