1 line
54 KiB
JavaScript
1 line
54 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-717bcb2f"],{"068f":function(t,e,i){"use strict";var r=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[r("el-drawer",{attrs:{"with-header":!1,visible:t.drawer,size:"1000px",direction:t.direction,"before-close":t.handleClose},on:{"update:visible":function(e){t.drawer=e}}},[r("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}]},[r("div",{staticClass:"head"},[r("div",{staticClass:"full"},[r("img",{staticClass:"order_icon",attrs:{src:t.orderImg,alt:""}}),t._v(" "),r("div",{staticClass:"text"},[r("div",{staticClass:"title"},[t._v(t._s(0==t.orderDetailList.order_type?"普通订单":"核销订单"))]),t._v(" "),r("div",[r("span",{staticClass:"mr20"},[t._v("订单编号:"+t._s(t.orderDetailList.order_sn))])])]),t._v(" "),1!=t.is_spread?r("div",[0!=t.orderDetailList.order_type&&0==t.orderDetailList.status?r("el-button",{attrs:{type:"primary",size:"small"},on:{click:t.orderCancellation}},[t._v("订单核销")]):t._e(),t._v(" "),0!=t.orderDetailList.order_type&&2!=t.orderDetailList.order_type||0!==t.orderDetailList.status||1!==t.orderDetailList.paid?t._e():r("el-button",{attrs:{type:"primary",size:"small"},on:{click:t.send}},[t._v("发送货")]),t._v(" "),1==t.orderDetailList.paid?r("el-button",{attrs:{type:"success",size:"small"},on:{click:t.printOrder}},[t._v("小票打印")]):t._e(),t._v(" "),r("el-dropdown",{on:{command:t.handleCommand}},[r("el-button",{attrs:{icon:"el-icon-more",size:"small"}}),t._v(" "),r("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[r("el-dropdown-item",{attrs:{command:"mark"}},[t._v("订单备注")]),t._v(" "),0==t.orderDetailList.order_type&&1===t.orderDetailList.status&&1===t.orderDetailList.paid?r("el-dropdown-item",{attrs:{command:"modify"}},[t._v("修改发货信息")]):t._e(),t._v(" "),-1!=t.orderDetailList.status&&1==t.orderDetailList.paid&&t.orderDetailList.status<9?r("el-dropdown-item",{attrs:{command:"refund"}},[t._v("退款")]):t._e()],1)],1)],1):t._e()]),t._v(" "),r("ul",{staticClass:"list"},[r("li",{staticClass:"item"},[r("div",{staticClass:"title"},[t._v("订单状态")]),t._v(" "),r("div",[0!==t.orderDetailList.order_type||t.orderDetailList.pay_time?t._e():r("div",{staticClass:"value1"},[t._v("待付款"),t.orderDetailList.is_del>0?r("span",{staticStyle:{color:"rgb(237,64,20)","font-size":"12px"}},[t._v("(用户已删除)")]):t._e()]),t._v(" "),0===t.orderDetailList.order_type&&t.orderDetailList.pay_time?r("div",{staticClass:"value1"},[r("span",[t._v(t._s(t._f("orderStatusFilter")(t.orderDetailList.status))),t.orderDetailList.is_del>0?r("span",{staticStyle:{color:"rgb(237,64,20)","font-size":"12px"}},[t._v("(用户已删除)")]):t._e()])]):t._e(),t._v(" "),1===t.orderDetailList.order_type&&t.orderDetailList.pay_time?r("div",{staticClass:"value1"},[r("span",[t._v(t._s(t._f("cancelOrderStatusFilter")(t.orderDetailList.status))),t.orderDetailList.is_del>0?r("span",{staticStyle:{color:"rgb(237,64,20)","font-size":"12px"}},[t._v("(用户已删除)")]):t._e()])]):t._e()])]),t._v(" "),r("li",{staticClass:"item"},[r("div",{staticClass:"title"},[t._v("实际支付")]),t._v(" "),r("div",[t._v("¥"+t._s(t.orderDetailList.pay_price))])]),t._v(" "),r("li",{staticClass:"item"},[r("div",{staticClass:"title"},[t._v("支付方式")]),t._v(" "),r("div",[t._v(t._s(t._f("payTypeFilter")(t.orderDetailList.pay_type)))])]),t._v(" "),r("li",{staticClass:"item"},[r("div",{staticClass:"title"},[t._v(t._s(t.orderDetailList.pay_time?"支付时间":"下单时间"))]),t._v(" "),r("div",[t._v(t._s(t.orderDetailList.create_time))])])])]),t._v(" "),r("el-tabs",{attrs:{type:"border-card"},on:{"tab-click":t.tabClick},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[r("el-tab-pane",{attrs:{label:"订单信息",name:"detail"}},[t.orderDetailList.user?r("div",{staticClass:"section"},[r("div",{staticClass:"title"},[t._v("用户信息")]),t._v(" "),r("ul",{staticClass:"list"},[r("li",{staticClass:"item"},[r("div",[t._v("用户昵称:")]),t._v(" "),r("div",{staticClass:"value"},[t._v("\n "+t._s(t.orderDetailList.user.real_name?t.orderDetailList.user.real_name:t.orderDetailList.user.nickname)+"\n ")])]),t._v(" "),r("li",{staticClass:"item"},[r("div",[t._v("用户ID:")]),t._v(" "),r("div",{staticClass:"value"},[t._v(t._s(t.orderDetailList.user.uid?t.orderDetailList.user.uid:"-"))])]),t._v(" "),r("li",{staticClass:"item"},[r("div",[t._v("绑定电话:")]),t._v(" "),r("div",{staticClass:"value"},[t._v(t._s(t.orderDetailList.user.phone?t.orderDetailList.user.phone:"-"))])])])]):t._e(),t._v(" "),r("div",{staticClass:"section"},[r("div",{staticClass:"title"},[t._v("收货信息")]),t._v(" "),r("ul",{staticClass:"list"},[r("li",{staticClass:"item"},[r("div",[t._v("收货人:")]),t._v(" "),r("div",{staticClass:"value"},[t._v(t._s(t.orderDetailList.real_name?t.orderDetailList.real_name:"-"))])]),t._v(" "),r("li",{staticClass:"item"},[r("div",[t._v("收货电话:")]),t._v(" "),r("div",{staticClass:"value"},[t._v(t._s(t.orderDetailList.user_phone?t.orderDetailList.user_phone:"-"))])]),t._v(" "),r("li",{staticClass:"item"},[r("div",[t._v("收货地址:")]),t._v(" "),r("div",{staticClass:"value"},[t._v(t._s(t.orderDetailList.user_address?t.orderDetailList.user_address:"-"))])])])]),t._v(" "),t.orderDetailList.order_extend?r("div",{staticClass:"section"},[r("div",{staticClass:"title"},[t._v("自定义留言")]),t._v(" "),r("ul",{staticClass:"list"},t._l(t.orderDetailList.order_extend,(function(e,i){return r("li",{key:i,staticClass:"item"},[r("div",[t._v(t._s(i)+":")]),t._v(" "),Array.isArray(e)?t._l(e,(function(t,e){return r("img",{key:e,staticStyle:{width:"40px",height:"40px","margin-right":"12px"},attrs:{src:t}})})):[r("div",{staticClass:"value"},[t._v(t._s(e))])]],2)})),0)]):t._e(),t._v(" "),r("div",{staticClass:"section"},[r("div",{staticClass:"title"},[t._v("订单信息")]),t._v(" "),r("ul",{staticClass:"list"},[r("li",{staticClass:"item"},[r("div",[t._v("创建时间:")]),t._v(" "),r("div",{staticClass:"value"},[t._v(t._s(t.orderDetailList.create_time?t.orderDetailList.create_time:"-"))])]),t._v(" "),r("li",{staticClass:"item"},[r("div",[t._v("商品总数:")]),t._v(" "),r("div",{staticClass:"value"},[t._v(t._s(t.orderDetailList.total_num?t.orderDetailList.total_num:"-"))])]),t._v(" "),t.orderDetailList.pay_time?r("li",{staticClass:"item"},[r("div",[t._v("实际支付:")]),t._v(" "),r("div",{staticClass:"value"},[t._v(t._s(t.orderDetailList.finalOrder?parseFloat(t.orderDetailList.finalOrder.pay_price)+parseFloat(t.orderDetailList.pay_price):t.orderDetailList.pay_price))])]):t._e(),t._v(" "),r("li",{staticClass:"item"},[r("div",[t._v("优惠券金额:")]),t._v(" "),r("div",{staticClass:"value"},[t._v(t._s(t.orderDetailList.coupon_price?t.orderDetailList.coupon_price:"-"))])]),t._v(" "),t.orderDetailList.integral?r("li",{staticClass:"item"},[r("div",[t._v("积分抵扣:")]),t._v(" "),t.orderDetailList.integral&&0!=t.orderDetailList.integral?r("div",{staticClass:"value"},[t._v("使用了"+t._s(t.orderDetailList.integral)+"个积分,抵扣了"+t._s(t.orderDetailList.integral_price)+"元")]):t._e()]):t._e(),t._v(" "),r("li",{staticClass:"item"},[r("div",[t._v("商品总价:")]),t._v(" "),r("div",{staticClass:"value"},[t._v(t._s(t.orderDetailList.total_price?t.orderDetailList.total_price:"-"))])]),t._v(" "),t.orderDetailList.svip_discount?r("li",{staticClass:"item"},[r("div",[t._v("会员商品优惠:")]),t._v(" "),r("div",{staticClass:"value"},[t._v(t._s(t.orderDetailList.svip_discount))])]):t._e(),t._v(" "),r("li",{staticClass:"item"},[r("div",[t._v("支付运费:")]),t._v(" "),r("div",{staticClass:"value"},[t._v(t._s(t.orderDetailList.pay_postage))])]),t._v(" "),t.orderDetailList.spread?r("li",{staticClass:"item"},[r("div",[t._v("推广人:")]),t._v(" "),r("div",{staticClass:"value"},[t._v(t._s(t.orderDetailList.spread.nickname))])]):t._e(),t._v(" "),t.orderDetailList.TopSpread?r("li",{staticClass:"item"},[r("div",[t._v("上级推广人:")]),t._v(" "),r("div",{staticClass:"value"},[t._v(t._s(t.orderDetailList.TopSpread.nickname))])]):t._e(),t._v(" "),t.orderDetailList.activity_type?t._e():r("li",{staticClass:"item"},[r("div",[t._v("一级佣金:")]),t._v(" "),r("div",{staticClass:"value"},[t._v("\n "+t._s(parseFloat(t.orderDetailList.extension_one)+parseFloat(t.orderDetailList.refund_extension_one))+"\n "),t.orderDetailList.refund_extension_one>0?r("em",{staticStyle:{color:"red","font-style":"normal"}},[t._v("(-"+t._s(t.orderDetailList.refund_extension_one)+")")]):t._e()])]),t._v(" "),t.orderDetailList.activity_type?t._e():r("li",{staticClass:"item"},[r("div",[t._v("二级佣金:")]),t._v(" "),r("div",{staticClass:"value"},[t._v("\n "+t._s(parseFloat(t.orderDetailList.extension_two)+parseFloat(t.orderDetailList.refund_extension_two))+"\n "),t.orderDetailList.refund_extension_two>0?r("em",{staticStyle:{color:"red","font-style":"normal"}},[t._v("(-"+t._s(t.orderDetailList.refund_extension_two)+")")]):t._e()])]),t._v(" "),r("li",{staticClass:"item"},[r("div",[t._v("赠送积分:")]),t._v(" "),r("div",{staticClass:"value"},[t._v(t._s(t.orderDetailList.give_integral||"-"))])]),t._v(" "),r("li",{staticClass:"item"},[r("div",[t._v("发货方式:")]),t._v(" "),1==t.orderDetailList.order_type?r("div",{staticClass:"value"},[t._v("核销")]):r("div",{staticClass:"value"},[t._v(t._s(t._f("sendWay")(t.orderDetailList.delivery_type)))])]),t._v(" "),r("li",{staticClass:"item"},[r("div",[t._v("商品类型:")]),t._v(" "),r("div",{staticClass:"value"},[t._v(t._s(1==t.orderDetailList.is_virtual?"虚拟商品":2==t.orderDetailList.is_virtual?"卡密商品":"普通商品"))])]),t._v(" "),r("li",{staticClass:"item"},[r("div",[t._v("活动类型:")]),t._v(" "),r("div",{staticClass:"value"},[t._v(t._s(1==t.orderDetailList.activity_type?"秒杀":2==t.orderDetailList.activity_type?"预售":3==t.orderDetailList.activity_type?"助力":4==t.orderDetailList.activity_type?"拼团":"普通"))])])])]),t._v(" "),t.orderDetailList.mark?r("div",{staticClass:"section"},[r("div",{staticClass:"title"},[t._v("买家留言")]),t._v(" "),r("ul",{staticClass:"list"},[r("li",{staticClass:"item"},[r("div",[t._v(t._s(t.orderDetailList.mark?t.orderDetailList.mark:"-"))])])])]):t._e(),t._v(" "),t.orderDetailList.remark?r("div",{staticClass:"section"},[r("div",{staticClass:"title"},[t._v("商家备注")]),t._v(" "),r("ul",{staticClass:"list"},[r("li",{staticClass:"item"},[r("div",[t._v(t._s(t.orderDetailList.remark?t.orderDetailList.remark:"-"))])])])]):t._e(),t._v(" "),"1"===t.orderDetailList.delivery_type?r("div",{staticClass:"section"},[r("div",{staticClass:"title"},[t._v("物流信息")]),t._v(" "),r("ul",{staticClass:"list"},[r("li",{staticClass:"item"},[r("div",[t._v("快递公司:")]),t._v(" "),r("div",{staticClass:"value"},[t._v(t._s(t.orderDetailList.delivery_name?t.orderDetailList.delivery_name:"-"))])]),t._v(" "),r("li",{staticClass:"item"},[r("div",[t._v("快递单号:")]),t._v(" "),r("div",{staticClass:"value"},[t._v(t._s(t.orderDetailList.delivery_id?t.orderDetailList.delivery_id:"-"))]),t._v(" "),r("el-button",{staticStyle:{"margin-left":"5px"},attrs:{type:"text",size:"mini"},on:{click:t.openLogistics}},[t._v("物流查询")])],1)])]):t._e()]),t._v(" "),r("el-tab-pane",{attrs:{label:"商品信息",name:"goods"}},[r("el-table",{attrs:{data:t.orderDetailList.orderProduct}},[r("el-table-column",{attrs:{label:"商品信息","min-width":"300"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("div",{staticClass:"tab"},[r("div",{staticClass:"demo-image__preview"},[r("el-image",{attrs:{src:e.row.cart_info.product.image,"preview-src-list":[e.row.cart_info.product.image]}})],1),t._v(" "),r("div",[r("div",{staticClass:"line1"},[t._v(t._s(e.row.cart_info.product.store_name))]),t._v(" "),r("div",{staticClass:"line1 gary"},[t._v("\n 规格:"+t._s(e.row.cart_info.productAttr.sku?e.row.cart_info.productAttr.sku:"默认")+"\n ")])])])]}}])}),t._v(" "),r("el-table-column",{attrs:{label:"售价","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("div",{staticClass:"tab"},[r("div",{staticClass:"line1"},[t._v("\n "+t._s(e.row.cart_info.productAttr.price?e.row.cart_info.productAttr.price:"-")+"\n ")])])]}}])}),t._v(" "),r("el-table-column",{attrs:{label:"实付金额","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("div",{staticClass:"tab"},[r("div",{staticClass:"line1"},[t._v("\n "+t._s(e.row.product_price?e.row.product_price:"-")+"\n ")])])]}}])}),t._v(" "),r("el-table-column",{attrs:{label:"购买数量","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("div",{staticClass:"tab"},[r("div",{staticClass:"line1"},[t._v("\n "+t._s(e.row.product_num)+"\n ")])])]}}])})],1)],1),t._v(" "),r("el-tab-pane",{attrs:{label:"订单记录",name:"orderList"}},[r("div",[r("el-form",{attrs:{size:"small","label-width":"80px"}},[r("div",{staticClass:"acea-row"},[r("el-form-item",{attrs:{label:"操作端:"}},[r("el-select",{staticStyle:{width:"140px","margin-right":"20px"},attrs:{placeholder:"请选择",clearable:"",filterable:""},on:{change:function(e){return t.onOrderLog(t.orderId)}},model:{value:t.tableFromLog.user_type,callback:function(e){t.$set(t.tableFromLog,"user_type",e)},expression:"tableFromLog.user_type"}},[r("el-option",{attrs:{label:"系统",value:"0"}}),t._v(" "),r("el-option",{attrs:{label:"用户",value:"1"}}),t._v(" "),r("el-option",{attrs:{label:"平台",value:"2"}}),t._v(" "),r("el-option",{attrs:{label:"商户",value:"3"}}),t._v(" "),r("el-option",{attrs:{label:"商家客服",value:"4"}})],1)],1),t._v(" "),r("el-form-item",{attrs:{label:"操作时间:"}},[r("el-date-picker",{staticStyle:{width:"380px","margin-right":"20px"},attrs:{type:"datetimerange",placeholder:"选择日期","value-format":"yyyy/MM/dd HH:mm:ss",clearable:""},on:{change:t.onchangeTime},model:{value:t.timeVal,callback:function(e){t.timeVal=e},expression:"timeVal"}})],1)],1)])],1),t._v(" "),r("el-table",{attrs:{data:t.tableDataLog.data}},[r("el-table-column",{attrs:{prop:"order_id",label:"订单编号","min-width":"200"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",[t._v(t._s(e.row.order_sn))])]}}])}),t._v(" "),r("el-table-column",{attrs:{label:"操作记录","min-width":"200"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",[t._v(t._s(e.row.change_message))])]}}])}),t._v(" "),r("el-table-column",{attrs:{label:"操作角色","min-width":"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("div",{staticClass:"tab"},[r("div",[t._v(t._s(t.operationType(e.row.user_type)))])])]}}])}),t._v(" "),r("el-table-column",{attrs:{label:"操作人","min-width":"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("div",{staticClass:"tab"},[r("div",[t._v(t._s(e.row.nickname))])])]}}])}),t._v(" "),r("el-table-column",{attrs:{label:"操作时间","min-width":"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("div",{staticClass:"tab"},[r("div",{staticClass:"line1"},[t._v(t._s(e.row.change_time))])])]}}])})],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(" "),t.childOrder.length>0?r("el-tab-pane",{attrs:{label:"关联订单",name:"subOrder"}},[r("el-table",{attrs:{data:t.childOrder}},[r("el-table-column",{attrs:{label:"订单编号",prop:"order_sn","min-width":"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("div",[t._v(t._s(e.row.order_sn))])]}}],null,!1,1717655037)}),t._v(" "),r("el-table-column",{attrs:{label:"商品信息","min-width":"200"},scopedSlots:t._u([{key:"default",fn:function(e){return t._l(e.row.orderProduct,(function(e,i){return r("div",{key:i,staticClass:"tabBox acea-row row-middle"},[r("div",{staticClass:"demo-image__preview"},[r("el-image",{attrs:{src:e.cart_info.product.image,"preview-src-list":[e.cart_info.product.image]}})],1),t._v(" "),r("span",{staticClass:"tabBox_tit"},[t._v(t._s(e.cart_info.product.store_name+" | ")+t._s(e.cart_info.productAttr.sku))]),t._v(" "),r("span",{staticClass:"tabBox_pice"},[t._v("\n "+t._s("¥"+e.cart_info.productAttr.price+" x "+e.product_num)+"\n "),e.refund_num<e.product_num&&e.refund_num>0?r("em",{staticStyle:{color:"red","font-style":"normal"}},[t._v("(-"+t._s(e.product_num-e.refund_num)+")")]):t._e()])])}))}}],null,!1,1370655139)}),t._v(" "),r("el-table-column",{attrs:{label:"实际支付","min-width":"80",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",[t._v(t._s(e.row.pay_price))])]}}],null,!1,3949474396)}),t._v(" "),r("el-table-column",{attrs:{label:"订单生成时间",prop:"create_time","min-width":"120"}}),t._v(" "),r("el-table-column",{attrs:{label:"操作","min-width":"50",fixed:"right",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return t.getChildOrderDetail(e.row.order_id)}}},[t._v("详情")])]}}],null,!1,2524739887)})],1)],1):t._e()],1)],1)]),t._v(" "),t.dialogLogistics?r("el-dialog",{attrs:{title:"物流查询",visible:t.dialogLogistics,width:"350px"},on:{"update:visible":function(e){t.dialogLogistics=e}}},[r("div",{staticClass:"logistics acea-row row-top"},[r("div",{staticClass:"logistics_img"},[r("img",{attrs:{src:i("bd9b")}})]),t._v(" "),r("div",{staticClass:"logistics_cent"},[r("span",[t._v("物流公司:"+t._s(t.orderDetailList.delivery_name))]),t._v(" "),r("span",[t._v("物流单号:"+t._s(t.orderDetailList.delivery_id))])])]),t._v(" "),r("div",{staticClass:"acea-row row-column-around trees-coadd"},[r("div",{staticClass:"scollhide"},[t.result.length>0?r("el-timeline",t._l(t.result,(function(e,i){return r("el-timeline-item",{key:i},[r("p",{staticClass:"time",domProps:{textContent:t._s(e.time)}}),t._v(" "),r("p",{staticClass:"content",domProps:{textContent:t._s(e.status)}})])})),1):t._e()],1)])]):t._e(),t._v(" "),r("order-cancellate",{ref:"orderCancellate",on:{getList:t.getList}})],1)},a=[],n=(i("7f7f"),i("c7eb")),s=(i("96cf"),i("1da1")),l=(i("c5f6"),i("f8b7")),o=i("7e4d"),c={components:{orderCancellate:o["a"]},props:{drawer:{type:Boolean,default:!1},is_spread:{type:Number,default:0}},data:function(){return{loading:!0,orderId:"",direction:"rtl",activeName:"detail",goodsList:[],timeVal:[],orderConfirm:!1,sendGoods:!1,dialogLogistics:!1,confirmReceiptForm:{id:""},tableDataLog:{data:[],total:0},contentList:[],nicknameList:[],result:[],orderDetailList:{user:{real_name:""},groupOrder:{group_order_sn:""}},orderImg:i("ea8b"),tableFromLog:{user_type:"",date:[],page:1,limit:10},childOrder:[]}},filters:{},methods:{onchangeTime:function(t){this.timeVal=t,this.tableFromLog.date=t?this.timeVal.join("-"):"",this.onOrderLog(this.orderId)},handleClose:function(){this.activeName="detail",this.$emit("closeDrawer"),this.sendGoods=!1,this.orderRemark=!1},openLogistics:function(){this.getOrderData(),this.dialogLogistics=!0},orderCancellation:function(){var t=this;t.$refs.orderCancellate.dialogVisible=!0,t.$refs.orderCancellate.productDetails(t.orderDetailList.verify_code),t.$refs.orderCancellate.isColum=!0},send:function(){this.$emit("send",this.orderDetailList,this.orderId)},printOrder:function(){var t=this;Object(l["K"])(this.orderId).then((function(e){t.$message.success(e.message)})).catch((function(e){t.$message.error(e.message)}))},onOrderMark:function(){var t=this;this.$modalForm(Object(l["L"])(this.orderId)).then((function(){return t.getInfo(t.orderId)}))},handleCommand:function(t){"mark"==t?this.onOrderMark():"modify"==t?this.reSend(this.orderId):this.refund(this.orderId)},refund:function(t){this.$emit("onOrderRefund",t)},reSend:function(t){this.$emit("reSend",t)},getList:function(){this.$emit("getList","")},getChildOrder:function(){var t=this;this.loading=!0,Object(l["q"])(this.orderId).then((function(e){t.activeName="detail",t.childOrder=e.data,setTimeout((function(){t.loading=!1}),500)})).catch((function(e){t.$message.error(e.message)}))},getOrderData:function(){var t=this;Object(l["t"])(this.orderId).then(function(){var e=Object(s["a"])(Object(n["a"])().mark((function e(i){return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.result=i.data;case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.$message.error(e.message)}))},toSendGoods:function(){this.sendGoods=!0},getDelivery:function(){var t=this;Object(l["F"])(this.orderId).then((function(e){t.$message.success(e.message),t.sendGoods=!1})).catch((function(e){t.$message.error(e.message)}))},getChildOrderDetail:function(t){this.getInfo(t)},getInfo:function(t){var e=this;this.loading=!0,this.orderId=t,Object(l["G"])(t).then((function(t){e.drawer=!0,e.orderDetailList=t.data,e.getChildOrder()})).catch((function(t){e.$message.error(t.message)}))},tabClick:function(t){"orderList"===t.name&&this.onOrderLog(this.orderId)},onOrderLog:function(t){var e=this;Object(l["J"])(t,this.tableFromLog).then((function(t){e.tableDataLog.data=t.data.list,e.tableDataLog.total=t.data.count}))},pageChangeLog:function(t){this.tableFromLog.page=t,this.onOrderLog(this.orderId)},handleSizeChangeLog:function(t){this.tableFromLog.limit=t,this.onOrderLog(this.orderId)},operationType:function(t){return 0==t?"系统":1==t?"用户":2==t?"平台":3==t?"商户":4==t?"商家客服":"未知"}}},d=c,u=(i("9392"),i("2877")),v=Object(u["a"])(d,r,a,!1,null,"4fc5848d",null);e["a"]=v.exports},"2e3a":function(t,e,i){"use strict";i("8f39")},"2e83":function(t,e,i){"use strict";i.d(e,"a",(function(){return l}));i("28a5");var r=i("8122"),a=i("e8ae"),n=i.n(a),s=i("21a6");function l(t,e,i,a,l,o){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,v=new n.a.Workbook,m=t.length;function _(t){var e=Array.isArray(t)?t[0]:t,i=Array.isArray(t)?t[1]:{};c=v.addWorksheet(e,i)}function p(t,e){if(!Object(r["isEmpty"])(t)){t=Array.isArray(t)?t:t.split(",");for(var i=0;i<t.length;i++){var a=c.getRow(i+1);a.getCell(1).value=t[i],a.height=30,a.font={bold:!0,size:20,vertAlign:"subscript"},a.alignment={vertical:"bottom",horizontal:"center"},a.outlineLevel=1,c.mergeCells(i+1,1,i+1,e),a.commit(),u++}}}function g(t){if(!Object(r["isEmpty"])(t)){for(var e=c.getRow(u),i=1;i<=t.length;i++)e.getCell(i).value=t[i-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(r["isEmpty"])(t))for(var e=0;e<t.length;e++){for(var i=u,a=c.getRow(u),n=!1,s=0,l=0,o=0,d=0;d<t[e].length;d++)Array.isArray(t[e][d])?(s=o,n=!0,b(t[e][d],o),o+=t[e][d][0].length,l=o):(a.getCell(C(o)).value=t[e][d],a.getCell(C(o)).border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}},a.alignment={vertical:"middle",horizontal:"center"},o++);n&&y(i,u,s,l),a.height=25,a.commit(),u++}}function b(t,e){for(var i=t.length,r=i-1,a=0;a<t.length;a++){for(var n=c.getRow(u),s=0;s<t[a].length;s++)n.getCell(C(e+s)).value=t[a][s],n.getCell(C(e+s)).border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}},n.alignment={vertical:"middle",horizontal:"center"};n.height=25,n.commit(),a<r&&u++}}function y(t,e,i,r){for(var a=0;a<m;a++)(a<i||a>=r)&&c.mergeCells(C(a)+t+":"+C(a)+e)}function w(t){if(!Object(r["isEmpty"])(t))if(Array.isArray(t))for(var e=0;e<t.length;e++){var i=c.getRow(u);i.getCell(1).value=t[e],i.getCell(1).border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}},i.alignment={vertical:"middle",horizontal:"left"},c.mergeCells("A"+u+":"+C(m-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(m-1)+u)}}function C(t){if(t<26)return d[t];var e=t%26,i=Math.floor(t%26);return d[i]+d[e]}function L(t){t||(t=(new Date).getTime()),v.xlsx.writeBuffer().then((function(e){var i=new Blob([e],{type:"application/octet-stream"});s["saveAs"](i,t+".xlsx")}))}_(o),p(e,m),g(t),h(i),w(a),L(l)}},"2ee5":function(t,e,i){},3507:function(t,e,i){},"64ed":function(t,e,i){"use strict";var r=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[t.fileVisible?i("el-dialog",{attrs:{title:"批量发货记录",visible:t.fileVisible,width:"900px"},on:{"update:visible":function(e){t.fileVisible=e}}},[i("div",{staticClass:"container"},[i("el-form",{attrs:{size:"small",inline:"","label-width":"90px"}},[i("el-form-item",{staticClass:"width100",attrs:{label:"操作时间"}},[i("el-date-picker",{staticStyle:{width:"220px"},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(" "),i("el-form-item",{attrs:{label:"发货类型:"}},[i("el-select",{staticClass:"filter-item selWidth mr20",attrs:{placeholder:"请选择",clearable:""},on:{change:function(e){t.getList(1)}},model:{value:t.tableFrom.type,callback:function(e){t.$set(t.tableFrom,"type",e)},expression:"tableFrom.type"}},t._l(t.deliveryTypeList,(function(t){return i("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1),t._v(" "),i("el-form-item",{attrs:{label:"状态:"}},[i("el-select",{staticClass:"filter-item selWidth",attrs:{placeholder:"请选择",clearable:""},on:{change:function(e){t.getList(1)}},model:{value:t.tableFrom.status,callback:function(e){t.$set(t.tableFrom,"status",e)},expression:"tableFrom.status"}},t._l(t.deliveryStatusList,(function(t){return i("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1)],1)],1),t._v(" "),i("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}]},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"table",staticStyle:{width:"100%"},attrs:{data:t.tableData.data,size:"mini","highlight-current-row":""}},[i("el-table-column",{attrs:{label:"序号","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("span",[t._v(t._s(e.$index+(t.tableFrom.page-1)*t.tableFrom.limit+1))])]}}],null,!1,2611860760)}),t._v(" "),i("el-table-column",{attrs:{label:"发货类型","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("span",[t._v(t._s(t._f("deliveryType")(e.row.type)))])]}}],null,!1,3190513475)}),t._v(" "),i("el-table-column",{attrs:{label:"操作时间",prop:"create_time","min-width":"180"}}),t._v(" "),i("el-table-column",{attrs:{label:"发货单数",prop:"count","min-width":"100"}}),t._v(" "),i("el-table-column",{attrs:{label:"成功发货单数",prop:"success","min-width":"100"}}),t._v(" "),i("el-table-column",{attrs:{label:"状态","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("span",[t._v(t._s(t._f("deliveryStatusFilter")(e.row.status)))])]}}],null,!1,1539921219)}),t._v(" "),i("el-table-column",{key:"8",attrs:{label:"操作","min-width":"150",fixed:"right",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[-1!=e.row.status?i("el-button",{staticClass:"mr10",attrs:{type:"text",size:"small"},on:{click:function(i){return t.detail(e.row.import_id)}}},[t._v("查看")]):t._e(),t._v(" "),-1!=e.row.status?i("el-button",{staticClass:"mr10",attrs:{type:"text",size:"small"},on:{click:function(i){return t.exports(e.row.import_id)}}},[t._v("生成文件")]):t._e(),t._v(" "),-1==e.row.status?i("el-button",{staticClass:"mr10",attrs:{type:"text",size:"small"},on:{click:function(i){return t.detail(e.row.import_id)}}},[t._v("查看原因")]):t._e()]}}],null,!1,842706115)})],1),t._v(" "),i("div",{staticClass:"block"},[i("el-pagination",{attrs:{"page-sizes":[10,20,30],"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._e(),t._v(" "),t.dialogVisible?i("el-dialog",{attrs:{title:"",visible:t.dialogVisible,width:"900px"},on:{"update:visible":function(e){t.dialogVisible=e}}},[i("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}]},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"table",staticStyle:{width:"100%"},attrs:{data:t.recordData.data,size:"mini","highlight-current-row":""}},[i("el-table-column",{attrs:{label:"序号","min-width":"60"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("span",[t._v(t._s(e.$index+(t.recordFrom.page-1)*t.recordFrom.limit+1))])]}}],null,!1,748015416)}),t._v(" "),i("el-table-column",{attrs:{label:"订单号",prop:"order_sn","min-width":"150"}}),t._v(" "),i("el-table-column",{attrs:{label:"物流公司",prop:"delivery_name","min-width":"80"}}),t._v(" "),i("el-table-column",{attrs:{label:"物流单号",prop:"delivery_id","min-width":"100"}}),t._v(" "),i("el-table-column",{attrs:{label:"发货状态",prop:"status","min-width":"80"}}),t._v(" "),i("el-table-column",{attrs:{label:"异常原因",prop:"mark","min-width":"120"}})],1),t._v(" "),i("div",{staticClass:"block"},[i("el-pagination",{attrs:{"page-sizes":[10,20,30],"page-size":t.recordFrom.limit,"current-page":t.recordFrom.page,layout:"total, sizes, prev, pager, next, jumper",total:t.recordData.total},on:{"size-change":t.handleSizeChange1,"current-change":t.pageChange1}})],1)],1)]):t._e()],1)},a=[],n=i("c7eb"),s=(i("96cf"),i("1da1")),l=i("f8b7"),o=i("2e83"),c={name:"DeliveryList",data:function(){return{fileVisible:!1,dialogVisible:!1,loading:!1,timeVal:[],deliveryStatusList:[{label:"全部",value:""},{label:"全部完成",value:1},{label:"部分完成",value:10},{label:"处理中",value:0},{label:"处理失败",value:-1}],deliveryTypeList:[{label:"全部",value:""},{label:"发货",value:1},{label:"送货",value:2},{label:"无需物流",value:3},{label:"电子面单",value:4}],tableData:{data:[],total:0},recordData:{data:[],total:0},recordFrom:{page:1,limit:20},tableFrom:{page:1,limit:10,date:"",status:""},recordId:""}},methods:{getList:function(t){var e=this;this.loading=!0,this.tableFrom.page=t||this.tableFrom.page,Object(l["j"])(this.tableFrom).then((function(t){e.fileVisible=!0,e.tableData.data=t.data.list,e.tableData.total=t.data.count,e.loading=!1})).catch((function(t){e.$message.error(t.message),e.listLoading=!1}))},exports:function(){var t=Object(s["a"])(Object(n["a"])().mark((function t(e){var i,r,a,s,l;return Object(n["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:i=JSON.parse(JSON.stringify(this.tableFrom)),r=[],i.page=1,a=1,s={},l=0;case 5:if(!(l<a)){t.next=14;break}return t.next=8,this.downLoad(e,i);case 8:s=t.sent,a=Math.ceil(s.count/i.limit),s.export.length&&(r=r.concat(s.export),i.page++);case 11:l++,t.next=5;break;case 14:return Object(o["a"])(s.header,s.title,r,s.foot,s.filename),t.abrupt("return");case 16:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}(),downLoad:function(t,e){return new Promise((function(i,r){Object(l["i"])(t,e).then((function(t){return i(t.data)}))}))},detail:function(t){var e=this;this.recordId=t,Object(l["h"])(t,this.recordFrom).then((function(t){e.dialogVisible=!0,e.recordData.data=t.data.list,e.recordData.total=t.data.count})).catch((function(t){e.$message.error(t.message)}))},onchangeTime:function(t){this.timeVal=t,this.tableFrom.date=t?this.timeVal.join("-"):"",this.getList(1)},pageChange:function(t){this.tableFrom.page=t,this.getList("")},handleSizeChange:function(t){this.tableFrom.limit=t,this.getList("")},pageChange1:function(t){this.recordFrom.page=t,this.getList(""),this.detail(this.recordId)},handleSizeChange1:function(t){this.recordFrom.limit=t,this.getList(""),this.detail(this.recordId)}}},d=c,u=(i("952b"),i("2877")),v=Object(u["a"])(d,r,a,!1,null,"5afa9c1e",null);e["a"]=v.exports},"7e4d":function(t,e,i){"use strict";var r=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[t.dialogVisible?i("el-dialog",{attrs:{title:"订单核销",visible:t.dialogVisible,width:"900px"},on:{"update:visible":function(e){t.dialogVisible=e}}},[i("div",{staticClass:"container"},[i("el-form",{attrs:{"label-width":"80px",size:"small"}},[t.isColum?t._e():i("el-form-item",{attrs:{label:"核销码:"}},[i("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.searchOrder(e)}},model:{value:t.code,callback:function(e){t.code=e},expression:"code"}}),t._v(" "),i("el-button",{attrs:{size:"small",type:"primary"},on:{click:t.searchOrder}},[t._v("搜索")])],1),t._v(" "),i("el-form-item",{attrs:{label:"订单号:"}},[i("span",[t._v(t._s(t.orderData.order_sn))])])],1),t._v(" "),i("div",{staticStyle:{"margin-top":"20px"}},[i("el-table",{ref:"multipleSelection",attrs:{data:t.productList,"tooltip-effect":"dark",size:"mini","row-key":function(t){return t.product_id},"header-cell-style":{background:"#F0F5FF"}},on:{"selection-change":t.handleSelectionChange}},[i("el-table-column",{attrs:{align:"center",type:"selection",selectable:t.judgeSelect,"min-width":"50"}}),t._v(" "),i("el-table-column",{attrs:{align:"center",label:"商品信息","min-width":"200"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("div",{staticClass:"acea-row",staticStyle:{"align-items":"center"}},[i("div",{staticClass:"demo-image__preview"},[i("el-image",{attrs:{src:e.row.cart_info.product.image,"preview-src-list":[e.row.cart_info.product.image]}})],1),t._v(" "),i("span",{staticClass:"priceBox",staticStyle:{width:"150px"}},[t._v(t._s(e.row.cart_info.product.store_name))])])]}}],null,!1,1334329387)}),t._v(" "),i("el-table-column",{attrs:{align:"center",label:"规格","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("span",{staticClass:"priceBox"},[t._v(t._s(e.row.cart_info.productAttr.sku))])]}}],null,!1,2489556760)}),t._v(" "),i("el-table-column",{attrs:{align:"center",label:"订单金额","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("span",{staticClass:"priceBox"},[t._v(t._s(e.row.cart_info.productAttr.price))])]}}],null,!1,3535341656)}),t._v(" "),i("el-table-column",{attrs:{align:"center",label:"状态","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("span",{staticClass:"priceBox"},[t._v("待核销")])]}}],null,!1,3635758024)}),t._v(" "),i("el-table-column",{attrs:{align:"center",prop:"product_num",label:"总数","min-width":"80"}}),t._v(" "),i("el-table-column",{attrs:{label:"待核销数量",align:"center","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("el-input",{staticClass:"priceBox",attrs:{type:"number",min:0,max:e.row.max_num},on:{change:function(i){return t.limitNum(e.row)}},model:{value:e.row["refund_num"],callback:function(i){t.$set(e.row,"refund_num",i)},expression:"scope.row['refund_num']"}})]}}],null,!1,4190016114)})],1)],1)],1),t._v(" "),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{size:"small"},on:{click:function(e){t.dialogVisible=!1}}},[t._v("取消")]),t._v(" "),i("el-button",{attrs:{type:"primary",size:"small"},on:{click:t.handleCancellation}},[t._v("核销")])],1)]):t._e()],1)},a=[],n=(i("ac6a"),i("f8b7")),s={name:"OrderCancellate",data:function(){return{dialogVisible:!1,loading:!1,code:"",order_id:"",orderData:"",multipleSelection:[],ids:[],isColum:!1,productList:[]}},methods:{searchOrder:function(){if(!this.code)return this.$message.warning("输入核销码!");this.productDetails(this.code)},judgeSelect:function(t,e){return 0==t.is_refund},handleCancellation:function(){var t=this;if(!this.code)return this.$message.warning("输入核销码!");if(!this.multipleSelection.length)return this.$message.warning("请选择核销商品!");var e=[];this.multipleSelection.map((function(t){t.refund_num>0&&e.push({id:t.order_product_id,num:t.refund_num})})),Object(n["x"])(this.order_id,{verify_code:this.code,data:e}).then((function(e){t.$message.success(e.message),t.dialogVisible=!1,t.$emit("getList","")})).catch((function(e){var i=e.message;t.$message.error(i)}))},productDetails:function(t){var e=this;this.code=t,this.loading=!0,Object(n["D"])(t).then((function(t){e.orderData=t.data,e.order_id=t.data.order_id,e.productList=t.data.orderProduct,e.productList.forEach((function(t,e){t.max_num=t.refund_num})),e.loading=!1})).catch((function(t){var i=t.message;e.loading=!1,e.$message.error(i)}))},resetData:function(){this.orderData={},this.productList=[],this.code=""},handleSelectionChange:function(t){this.multipleSelection=t},limitNum:function(t){t.refund_num>t.max_num?t.refund_num=t.max_num:t.refund_num<1&&(t.refund_num=1)}}},l=s,o=(i("fa9e"),i("2877")),c=Object(o["a"])(l,r,a,!1,null,"46fd6ffa",null);e["a"]=c.exports},"8f39":function(t,e,i){},9392:function(t,e,i){"use strict";i("2ee5")},"952b":function(t,e,i){"use strict";i("e6cc")},bd9b:function(t,e){t.exports="data:image/jpeg;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAKEUlEQVR4nO2de3AV1R3HP3uS8EhCkCSAQCLgRZ6RV7Hgo47hpVNgpp3+UZ2llpbOFIUqdWzR6UzpdOqMqFNHq4KM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giUEtYG0kC6Ys2v3SLSj5PTqtEgV1/18te9iQ/X7KCxIIOEzwL4YGKCQ4GSxfthc2NBhh0+R8F7WiAJJFkkcemkvMkPm6DLa1tjBhC0QAw/h0Ty746DwHIWS75DpPRobES64Gi3G0glogbSQOZpGXfSQomTU6axEbmaizwBQGMe+ROBfVkkX83cUztI+DKA485Q8jc4nUayd+ZArlviFhngqAD3+7MqtiRxIYvlJZv+TErSo39j75EevquaGEglnAbSQI6eR2qu7OVr2v+28NTvB+XPmXtqBwnzFFqeSlM5BsD2XyLpzR7IDq/uspiYpOB82pbXbfozMUm3gD1s3Iy8LAykFya3kYF0M/KyMJBemNxGaxokBS9kbXnH7ebttVhZ9hX8qDFKXVtWCv/frOFQFY1wkY+xhS+q9CmzrQek4NLlAeaq7sTVcPh6jSDh2Xw/pYZuPSBX3hLxLYkFAXpZLBc1nHFpbDrJu/75C5uF2EniRQA7XH1822sD6XuCa8XOQCr9UgbSQCoRUJKxiDSQSgSUZCwiDaQSASUZi0gDqURAScY/Iq2kVznyiiW9rMhcOcpKReas7GEZyCplD3MNK8RZQLJqIc5cwkrD3gpyrNKwKzCtWPGQ5vjFim/ILlv5bGdNDOcfgZSmXo2XMZBKP7GBNJBKBJRkLCKVQP4HUW2zcb4YanwAAAAASUVORK5CYII="},f51c:function(t,e,i){"use strict";var r=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[t.dialogVisible?i("el-dialog",{attrs:{title:"手动退款",visible:t.dialogVisible,width:"850px"},on:{"update:visible":function(e){t.dialogVisible=e}}},[i("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"container"},[i("div",[i("el-table",{ref:"multipleSelection",attrs:{data:t.productList,"tooltip-effect":"dark",size:"small",border:"","row-key":function(t){return t.product_id},"header-cell-style":{background:"#F0F5FF"}},on:{"selection-change":t.handleSelectionChange}},[i("el-table-column",{attrs:{align:"center",type:"selection","reserve-selection":!0,"min-width":"50"}}),t._v(" "),i("el-table-column",{attrs:{align:"center",label:"商品信息","min-width":"200"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("div",{staticClass:"acea-row",staticStyle:{"align-items":"center"}},[i("div",{staticClass:"demo-image__preview"},[i("el-image",{attrs:{src:e.row.cart_info.product.image,"preview-src-list":[e.row.cart_info.product.image]}})],1),t._v(" "),i("span",{staticStyle:{width:"150px"}},[t._v(t._s(e.row.cart_info.product.store_name))])])]}}],null,!1,3280312595)}),t._v(" "),i("el-table-column",{attrs:{align:"center",label:"规格","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("span",[t._v(t._s(e.row.cart_info.productAttr.sku||"默认"))])]}}],null,!1,3717964922)}),t._v(" "),i("el-table-column",{attrs:{align:"center",label:"商品实付金额","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("span",[t._v(t._s(e.row.product_price))])]}}],null,!1,1676187007)}),t._v(" "),i("el-table-column",{attrs:{align:"center",label:"运费","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("span",[t._v(t._s(e.row.postage_price))])]}}],null,!1,2147956495)}),t._v(" "),i("el-table-column",{attrs:{align:"center",prop:"product_num",label:"总数","min-width":"80"}}),t._v(" "),i("el-table-column",{attrs:{label:"退款数量",align:"center","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("el-input-number",{staticStyle:{width:"100px"},attrs:{type:"number",min:1,max:e.row.max_num,"controls-position":"right"},on:{change:function(i){return t.limitNum(e.row)}},model:{value:e.row["refund_num"],callback:function(i){t.$set(e.row,"refund_num",i)},expression:"scope.row['refund_num']"}})]}}],null,!1,105020361)})],1)],1),t._v(" "),i("el-form",{staticStyle:{"margin-top":"20px"},attrs:{"label-width":"100px",size:"small"}},[i("el-form-item",{attrs:{label:"退款金额:",required:""}},[i("el-input-number",{staticClass:"selWidth",attrs:{min:0,max:t.maxRefundPrice,precision:2,placeholder:"请输入退款金额",size:"small"},model:{value:t.refund_price,callback:function(e){t.refund_price=e},expression:"refund_price"}})],1),t._v(" "),i("el-form-item",{attrs:{label:"退款原因",required:""}},[i("el-select",{staticClass:"selWidth",attrs:{placeholder:"请选择"},model:{value:t.refund_message,callback:function(e){t.refund_message=e},expression:"refund_message"}},t._l(t.reasonList,(function(t){return i("el-option",{key:t,attrs:{label:t,value:t}})})),1)],1),t._v(" "),i("el-form-item",{attrs:{label:"备注:"}},[i("el-input",{staticClass:"selWidth",attrs:{size:"small"},model:{value:t.mer_mark,callback:function(e){t.mer_mark=e},expression:"mer_mark"}})],1)],1)],1),t._v(" "),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{size:"small"},on:{click:function(e){t.dialogVisible=!1}}},[t._v("取消")]),t._v(" "),i("el-button",{attrs:{type:"primary",loading:t.btnloading,size:"small"},on:{click:t.submitForm}},[t._v("确定")])],1)]):t._e()],1)},a=[],n=(i("c5f6"),i("ac6a"),i("f8b7")),s={name:"OrderCancellate",data:function(){return{dialogVisible:!1,loading:!0,btnloading:!1,code:"",order_id:"",ruleValidate:{refund_price:[{required:!0,message:"请输入退款金额",trigger:"blur"}],refund_message:[{required:!0,message:"请选择退款原因",trigger:"change"}]},refund_price:"",refund_message:"",mer_mark:"",reasonList:[],multipleSelection:[],ids:[],productList:[],maxRefundPrice:0}},methods:{submitForm:function(){var t=this;if(void 0==this.refund_price)return this.$message.warning("请输入退款金额!");if(!this.refund_message)return this.$message.warning("请选择退款原因!");if(!this.multipleSelection.length)return this.$message.warning("请选择商品!");var e={};this.multipleSelection.map((function(t){e[t.order_product_id]=t.refund_num}));var i={order_id:this.order_id,refund:e,refund_message:this.refund_message,refund_price:this.refund_price,mer_mark:this.mer_mark};this.btnloading=!0,Object(n["X"])(i).then((function(e){t.btnloading=!1,t.$message.success(e.message),t.dialogVisible=!1,t.$emit("refundSuccess")})).catch((function(e){var i=e.message;t.btnloading=!1,t.$message.error(i)}))},getRefundPrice:function(){var t=this,e={};this.multipleSelection.map((function(t){e[t.order_product_id]=t.refund_num})),Object(n["d"])({order_id:this.order_id,refund:e}).then((function(e){t.refund_price=e.data.totalRefundPrice})).catch((function(e){var i=e.message;t.$message.error(i)}))},getOrderDetails:function(t){var e=this;this.order_id=t,this.loading=!0,this.dialogVisible=!0,Object(n["v"])(t).then((function(t){e.getRefundMessage(),e.refund_message=t.data.refund_message,e.mer_mark=t.data.mer_mark,e.productList=t.data.product,e.multipleSelection=t.data.product,e.$nextTick((function(){t.data.product.forEach((function(t){e.$refs.multipleSelection.toggleRowSelection(t,!0)}))})),e.productList.forEach((function(t,e){t.max_num=t.refund_num})),e.maxRefundPrice=Number(t.data.postage_price)+Number(t.data.total_refund_price),e.refund_price=e.maxRefundPrice,e.loading=!1})).catch((function(t){var i=t.message;e.dialogVisible=!1,e.loading=!1,e.$message.error(i)}))},getRefundMessage:function(){var t=this;Object(n["u"])().then((function(e){t.reasonList=e.data,t.refund_message=e.data[0]})).catch((function(e){var i=e.message;t.$message.error(i)}))},handleSelectionChange:function(t){this.multipleSelection=t,this.getRefundPrice()},limitNum:function(t){t.refund_num>t.max_num?t.refund_num=t.max_num:t.refund_num<1&&(t.refund_num=1),this.getRefundPrice()}}},l=s,o=(i("2e3a"),i("2877")),c=Object(o["a"])(l,r,a,!1,null,"404ef11a",null);e["a"]=c.exports},f8b7:function(t,e,i){"use strict";i.d(e,"I",(function(){return a})),i.d(e,"c",(function(){return n})),i.d(e,"b",(function(){return s})),i.d(e,"M",(function(){return l})),i.d(e,"F",(function(){return o})),i.d(e,"G",(function(){return c})),i.d(e,"q",(function(){return d})),i.d(e,"J",(function(){return u})),i.d(e,"L",(function(){return v})),i.d(e,"E",(function(){return m})),i.d(e,"K",(function(){return f})),i.d(e,"T",(function(){return _})),i.d(e,"R",(function(){return p})),i.d(e,"W",(function(){return g})),i.d(e,"V",(function(){return h})),i.d(e,"U",(function(){return b})),i.d(e,"Q",(function(){return y})),i.d(e,"e",(function(){return w})),i.d(e,"t",(function(){return C})),i.d(e,"S",(function(){return L})),i.d(e,"n",(function(){return D})),i.d(e,"m",(function(){return x})),i.d(e,"l",(function(){return k})),i.d(e,"k",(function(){return A})),i.d(e,"D",(function(){return S})),i.d(e,"x",(function(){return F})),i.d(e,"H",(function(){return O})),i.d(e,"Z",(function(){return z})),i.d(e,"ab",(function(){return V})),i.d(e,"Y",(function(){return R})),i.d(e,"B",(function(){return B})),i.d(e,"A",(function(){return E})),i.d(e,"y",(function(){return N})),i.d(e,"z",(function(){return j})),i.d(e,"C",(function(){return I})),i.d(e,"j",(function(){return M})),i.d(e,"h",(function(){return Q})),i.d(e,"i",(function(){return G})),i.d(e,"P",(function(){return q})),i.d(e,"p",(function(){return J})),i.d(e,"o",(function(){return W})),i.d(e,"a",(function(){return K})),i.d(e,"s",(function(){return P})),i.d(e,"w",(function(){return Y})),i.d(e,"r",(function(){return U})),i.d(e,"g",(function(){return T})),i.d(e,"f",(function(){return Z})),i.d(e,"O",(function(){return H})),i.d(e,"N",(function(){return X})),i.d(e,"v",(function(){return $})),i.d(e,"u",(function(){return tt})),i.d(e,"X",(function(){return et})),i.d(e,"d",(function(){return it}));var r=i("0c6d");function a(t){return r["a"].get("store/order/lst",t)}function n(t){return r["a"].get("store/order/chart",t)}function s(t){return r["a"].get("store/order/title",t)}function l(t,e){return r["a"].post("store/order/update/".concat(t),e)}function o(t,e){return r["a"].post("store/order/delivery/".concat(t),e)}function c(t){return r["a"].get("store/order/detail/".concat(t))}function d(t){return r["a"].get("store/order/children/".concat(t))}function u(t,e){return r["a"].get("store/order/log/".concat(t),e)}function v(t){return r["a"].get("store/order/remark/".concat(t,"/form"))}function m(t){return r["a"].post("store/order/delete/".concat(t))}function f(t){return r["a"].get("store/order/printer/".concat(t))}function _(t){return r["a"].get("store/refundorder/lst",t)}function p(t){return r["a"].get("store/refundorder/detail/".concat(t))}function g(t){return r["a"].get("store/refundorder/status/".concat(t,"/form"))}function h(t){return r["a"].get("store/refundorder/mark/".concat(t,"/form"))}function b(t){return r["a"].get("store/refundorder/log/".concat(t))}function y(t){return r["a"].get("store/refundorder/delete/".concat(t))}function w(t){return r["a"].post("store/refundorder/refund/".concat(t))}function C(t){return r["a"].get("store/order/express/".concat(t))}function L(t){return r["a"].get("store/refundorder/express/".concat(t))}function D(t){return r["a"].get("store/order/excel",t)}function x(t){return r["a"].get("store/order/delivery_export",t)}function k(t){return r["a"].get("excel/lst",t)}function A(t){return r["a"].get("excel/download/".concat(t))}function S(t){return r["a"].get("store/order/verify/".concat(t))}function F(t,e){return r["a"].post("store/order/verify/".concat(t),e)}function O(){return r["a"].get("store/order/filtter")}function z(){return r["a"].get("store/order/takechart")}function V(t){return r["a"].get("store/order/takelst",t)}function R(t){return r["a"].get("store/order/take_title",t)}function B(t){return r["a"].get("store/receipt/lst",t)}function E(t){return r["a"].get("store/receipt/set_recipt",t)}function N(t){return r["a"].post("store/receipt/save_recipt",t)}function j(t){return r["a"].get("store/receipt/detail/".concat(t))}function I(t,e){return r["a"].post("store/receipt/update/".concat(t),e)}function M(t){return r["a"].get("store/import/lst",t)}function Q(t,e){return r["a"].get("store/import/detail/".concat(t),e)}function G(t,e){return r["a"].get("store/import/excel/".concat(t),e)}function q(t){return r["a"].get("store/refundorder/excel",t)}function J(){return r["a"].get("expr/options")}function W(t){return r["a"].get("expr/temps",t)}function K(t){return r["a"].post("store/order/delivery_batch",t)}function P(){return r["a"].get("serve/config")}function Y(){return r["a"].get("delivery/station/select")}function U(){return r["a"].get("delivery/station/options")}function T(t){return r["a"].get("delivery/order/lst",t)}function Z(t){return r["a"].get("delivery/order/cancel/".concat(t,"/form"))}function H(t){return r["a"].get("delivery/station/payLst",t)}function X(t){return r["a"].get("delivery/station/code",t)}function $(t){return r["a"].get("store/refundorder/check/".concat(t))}function tt(){return r["a"].get("store/refundorder/refund_message")}function et(t){return r["a"].post("store/refundorder/create",t)}function it(t){return r["a"].post("store/refundorder/compute",t)}},fa9e:function(t,e,i){"use strict";i("3507")}}]); |