(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-065ef554"],{"07ff":function(t,e,n){"use strict";n("6f1c")},"0b65":function(t,e,n){"use strict";e["a"]={shortcuts:[{text:"今天",onClick:function(t){var e=new Date,n=new Date;n.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate())),t.$emit("pick",[n,e])}},{text:"昨天",onClick:function(t){var e=new Date,n=new Date;n.setTime(n.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-1))),e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-1))),t.$emit("pick",[n,e])}},{text:"最近7天",onClick:function(t){var e=new Date,n=new Date;n.setTime(n.getTime()-6048e5),t.$emit("pick",[n,e])}},{text:"最近30天",onClick:function(t){var e=new Date,n=new Date;n.setTime(n.getTime()-2592e6),t.$emit("pick",[n,e])}},{text:"本月",onClick:function(t){var e=new Date,n=new Date;n.setTime(n.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),1))),t.$emit("pick",[n,e])}},{text:"本年",onClick:function(t){var e=new Date,n=new Date;n.setTime(n.setTime(new Date((new Date).getFullYear(),0,1))),t.$emit("pick",[n,e])}}]}},"4bc0":function(t,e,n){},"67c1":function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"divBox"},[n("div",{staticClass:"selCard"},[n("el-form",{ref:"searchForm",attrs:{model:t.tableFrom,size:"small",inline:"","label-width":"85px"}},[n("el-form-item",{attrs:{label:"订单状态:",prop:"status"}},[n("el-select",{staticClass:"filter-item selWidth",attrs:{placeholder:"请选择",clearable:""},on:{change:function(e){return t.changeSearch()}},model:{value:t.tableFrom.status,callback:function(e){t.$set(t.tableFrom,"status",e)},expression:"tableFrom.status"}},[n("el-option",{attrs:{label:"全部",value:""}}),t._v(" "),n("el-option",{attrs:{label:"待付款",value:-3}}),t._v(" "),n("el-option",{attrs:{label:"待发货",value:0}}),t._v(" "),n("el-option",{attrs:{label:"待收货",value:1}}),t._v(" "),n("el-option",{attrs:{label:"交易完成",value:3}}),t._v(" "),n("el-option",{attrs:{label:"已删除",value:-10}})],1)],1),t._v(" "),n("el-form-item",{attrs:{label:"创建时间:"}},[n("el-date-picker",{staticClass:"selWidth",attrs:{"value-format":"yyyy/MM/dd",align:"right","unlink-panels":"",format:"yyyy/MM/dd",size:"small",type:"daterange",placement:"bottom-end",placeholder:"自定义时间","picker-options":t.pickerOptions},on:{change:t.onchangeTime},model:{value:t.timeVal,callback:function(e){t.timeVal=e},expression:"timeVal"}})],1),t._v(" "),n("el-form-item",{attrs:{label:"搜索:"}},[n("el-input",{staticClass:"input-with-select",attrs:{placeholder:"请输入内容"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.changeSearch()}},model:{value:t.keywords,callback:function(e){t.keywords=e},expression:"keywords"}},[n("el-select",{attrs:{slot:"prepend",placeholder:"请选择"},slot:"prepend",model:{value:t.select,callback:function(e){t.select=e},expression:"select"}},[n("el-option",{attrs:{label:"全部",value:""}}),t._v(" "),n("el-option",{attrs:{label:"订单号",value:"order_sn"}}),t._v(" "),n("el-option",{attrs:{label:"UID",value:"uid"}}),t._v(" "),n("el-option",{attrs:{label:"用户姓名",value:"nickname"}}),t._v(" "),n("el-option",{attrs:{label:"用户电话",value:"phone"}})],1)],1)],1),t._v(" "),n("el-form-item",[n("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(e){return t.changeSearch()}}},[t._v("搜索")]),t._v(" "),n("el-button",{attrs:{size:"small"},on:{click:function(e){return t.searchReset()}}},[t._v("重置")])],1)],1)],1),t._v(" "),n("el-card",{staticClass:"mt14"},[n("div",{staticClass:"mb20"},[n("el-button",{attrs:{size:"small",type:"primary"},on:{click:t.exports}},[t._v("导出")])],1),t._v(" "),n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticClass:"table",attrs:{data:t.tableData.data,size:"small","highlight-current-row":"","cell-class-name":t.addTdClass}},[n("el-table-column",{attrs:{type:"expand"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-form",{staticClass:"demo-table-expand",attrs:{"label-position":"left",inline:""}},[n("el-form-item",{attrs:{label:"用户备注:"}},[n("span",[t._v(t._s(t._f("filterEmpty")(e.row.mark)))])]),t._v(" "),n("el-form-item",{attrs:{label:"商家备注:"}},[n("span",[t._v(t._s(t._f("filterEmpty")(e.row.remark)))])])],1)]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"订单编号","min-width":"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",{staticStyle:{display:"block"},domProps:{textContent:t._s(e.row.order_sn)}}),t._v(" "),n("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(" "),n("el-table-column",{attrs:{prop:"real_name",label:"收货人","min-width":"100"}}),t._v(" "),n("el-table-column",{attrs:{label:"商品信息","min-width":"330"},scopedSlots:t._u([{key:"default",fn:function(e){return t._l(e.row.orderProduct,(function(e,r){return n("div",{key:r,staticClass:"tabBox acea-row row-middle"},[n("div",{staticClass:"demo-image__preview"},[n("el-image",{attrs:{src:e.cart_info.product.image,"preview-src-list":[e.cart_info.product.image]}})],1),t._v(" "),n("span",{staticClass:"tabBox_tit"},[t._v(t._s(e.cart_info.product.store_name+" | ")+t._s(e.cart_info.productAttr.sku))]),t._v(" "),n("span",{staticClass:"tabBox_pice"},[t._v("\n "+t._s("¥"+e.cart_info.productAttr.price+" x "+e.product_num)+"\n "),e.refund_num0?n("em",{staticStyle:{color:"red","font-style":"normal"}},[t._v("(-"+t._s(e.product_num-e.refund_num)+")")]):t._e()])])}))}}])}),t._v(" "),n("el-table-column",{attrs:{label:"兑换积分",prop:"integral","min-width":"80"}}),t._v(" "),n("el-table-column",{attrs:{label:"兑换金额",prop:"pay_price","min-width":"80"}}),t._v(" "),n("el-table-column",{attrs:{label:"订单状态","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[0===e.row.is_del?n("span",[0===e.row.paid?n("span",[t._v("待付款")]):n("span",[n("span",[t._v(t._s(t._f("integralOrderStatus")(e.row.status)))])])]):n("span",[t._v("已删除")])]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"serviceScore",label:"下单时间","min-width":"130"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(e.row.create_time))])]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"操作","min-width":"120",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[1==e.row.paid&&0==e.row.status?n("el-button",{attrs:{type:"text",size:"small"},on:{click:function(n){return t.send(e.row.order_id)}}},[t._v("发送货")]):t._e(),t._v(" "),n("el-button",{attrs:{type:"text",size:"small"},on:{click:function(n){return t.onOrderDetails(e.row.order_id)}}},[t._v("订单详情")]),t._v(" "),e.row.is_del>0?n("el-button",{attrs:{type:"text",size:"small"},on:{click:function(n){return t.handleDelete(e.row,e.$index)}}},[t._v("删除")]):t._e()]}}])})],1),t._v(" "),n("div",{staticClass:"block"},[n("el-pagination",{attrs:{background:"","page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"total, prev, pager, next, jumper",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1),t._v(" "),n("el-dialog",{attrs:{title:"订单发送货",visible:t.sendVisible,width:"800px","before-close":t.handleClose},on:{"update:visible":function(e){t.sendVisible=e}}},[n("el-form",{ref:"shipment",attrs:{model:t.shipment,rules:t.rules,"label-width":"120px"},nativeOn:{submit:function(t){t.preventDefault()}}},[n("el-form-item",{attrs:{label:"选择类型:",prop:"delivery_type"}},[n("el-radio-group",{on:{change:t.changeSend},model:{value:t.shipment.delivery_type,callback:function(e){t.$set(t.shipment,"delivery_type",e)},expression:"shipment.delivery_type"}},[n("el-radio",{attrs:{label:1}},[t._v("手动发货")]),t._v(" "),n("el-radio",{staticClass:"radio",attrs:{label:3}},[t._v(" 无需物流")]),t._v(" "),n("el-radio",{attrs:{label:2}},[t._v("自己配送")])],1)],1),t._v(" "),1==t.shipment.delivery_type?n("el-form-item",{attrs:{label:"快递公司:",prop:"delivery_name"}},[n("el-select",{staticClass:"filter-item selWidth mr20",attrs:{filterable:"",placeholder:"请选择快递公司"},model:{value:t.shipment.delivery_name,callback:function(e){t.$set(t.shipment,"delivery_name",e)},expression:"shipment.delivery_name"}},t._l(t.deliveryList,(function(t){return n("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1):t._e(),t._v(" "),1==t.shipment.delivery_type?n("el-form-item",{attrs:{label:"快递单号:",prop:"delivery_id"}},[n("el-input",{attrs:{placeholder:"请输入快递单号"},model:{value:t.shipment.delivery_id,callback:function(e){t.$set(t.shipment,"delivery_id",e)},expression:"shipment.delivery_id"}})],1):t._e(),t._v(" "),2==t.shipment.delivery_type?n("el-form-item",{attrs:{label:"送货人姓名:",prop:"to_name"}},[n("el-input",{attrs:{maxlength:"10",placeholder:"请输入送货人姓名"},model:{value:t.shipment.to_name,callback:function(e){t.$set(t.shipment,"to_name",e)},expression:"shipment.to_name"}})],1):t._e(),t._v(" "),2==t.shipment.delivery_type?n("el-form-item",{attrs:{label:"送货人手机号:",prop:"to_phone"}},[n("el-input",{attrs:{placeholder:"请输入送货人手机号"},model:{value:t.shipment.to_phone,callback:function(e){t.$set(t.shipment,"to_phone",e)},expression:"shipment.to_phone"}})],1):t._e(),t._v(" "),n("el-form-item",{attrs:{label:"备注:",prop:"remark"}},[n("el-input",{attrs:{type:"textarea",placeholder:"请输入备注"},model:{value:t.shipment.remark,callback:function(e){t.$set(t.shipment,"remark",e)},expression:"shipment.remark"}})],1)],1),t._v(" "),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:t.handleClose}},[t._v("取 消")]),t._v(" "),n("el-button",{attrs:{loading:t.loading,type:"primary"},on:{click:function(e){return t.submitForm("shipment")}}},[t._v("提交")])],1)],1),t._v(" "),n("order-detail",{ref:"orderDetail",attrs:{drawer:t.drawer},on:{closeDrawer:t.closeDrawer,changeDrawer:t.changeDrawer,send:t.send}})],1)},i=[],a=(n("7f7f"),n("c80c")),s=(n("96cf"),n("3b8d")),o=n("b7be"),c=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[r("el-drawer",{attrs:{"with-header":!1,size:1e3,visible:t.drawer,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._v(" "),r("div",[r("span",{staticClass:"mr20"},[t._v("订单编号:"+t._s(t.orderDetailList.order_sn))])])]),t._v(" "),r("div",[0===t.orderDetailList.status&&1===t.orderDetailList.paid?r("el-button",{attrs:{type:"primary",size:"small"},on:{click:t.toSendGoods}},[t._v("发送货")]):t._e(),t._v(" "),r("el-button",{attrs:{size:"small"},on:{click:t.onOrderMark}},[t._v("备注")])],1)]),t._v(" "),r("ul",{staticClass:"list"},[r("li",{staticClass:"item"},[r("div",{staticClass:"title"},[t._v("订单状态")]),t._v(" "),r("div",[1==t.orderDetailList.is_del?r("div",{staticClass:"value1"},[t._v("用户已删除")]):t.orderDetailList.pay_time||0!=t.orderDetailList.is_del?t.orderDetailList.pay_time&&0==t.orderDetailList.is_del?r("div",{staticClass:"value1"},[r("span",[t._v(t._s(t._f("integralOrderStatus")(t.orderDetailList.status)))])]):t._e():r("div",{staticClass:"value1"},[t._v("待付款")])])]),t._v(" "),r("li",{staticClass:"item"},[r("div",{staticClass:"title"},[t._v("实际支付")]),t._v(" "),r("div",[t._v(" "+t._s(t.orderDetailList.pay_time?t.orderDetailList.integral+"个积分+"+t.orderDetailList.pay_price+"元":"-"))])]),t._v(" "),r("li",{staticClass:"item"},[r("div",{staticClass:"title"},[t._v("支付方式")]),t._v(" "),t.orderDetailList.pay_time?r("div",[r("span",[t._v("积分")]),0!=Number(t.orderDetailList.pay_price)?r("span",[t._v("+"+t._s(t._f("payTypeFilter")(t.orderDetailList.pay_type)))]):t._e(),t._v("支付")]):r("div",[t._v("-")])]),t._v(" "),r("li",{staticClass:"item"},[r("div",{staticClass:"title"},[t._v("支付时间")]),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(" "),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(" "),r("li",{staticClass:"item"},[r("div",[t._v("实际支付:")]),t._v(" "),r("div",{staticClass:"value"},[t._v(t._s(t.orderDetailList.pay_time?t.orderDetailList.integral+"个积分+"+t.orderDetailList.pay_price+"元":"-"))])]),t._v(" "),t.orderDetailList.integral?r("li",{staticClass:"item"},[r("div",[t._v("积分抵扣:")]),t._v(" "),r("div",{staticClass:"value"},[t._v("使用了"+t._s(t.orderDetailList.integral)+"个积分")])]):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(" "),"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 acea-row row-middle"},[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 acea-row row-middle"},[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",{attrs:{type:"text",size:"mini"},on:{click:t.openLogistics}},[t._v("物流查询")])],1)])]):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._s(t.orderDetailList.mark?t.orderDetailList.mark:"-"))])])])]),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._s(t.orderDetailList.remark?t.orderDetailList.remark:"-"))])])])])]),t._v(" "),r("el-tab-pane",{attrs:{label:"商品信息",name:"goods"}},[r("el-table",{attrs:{data:t.orderDetailList.orderProduct,size:"small"}},[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.integral_total?e.row.integral_total+"积分":"-")+"\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"}})],1)],1),t._v(" "),r("el-form-item",{attrs:{label:"操作时间:"}},[r("el-date-picker",{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,size:"small"}},[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-size":t.tableFromLog.limit,"current-page":t.tableFromLog.page,layout:"prev, pager, next, jumper",total:t.tableDataLog.total},on:{"size-change":t.handleSizeChangeLog,"current-change":t.pageChangeLog}})],1)],1)],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:n("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,n){return r("el-timeline-item",{key:n},[r("p",{staticClass:"time",domProps:{textContent:t._s(e.time)}}),t._v(" "),r("p",{staticClass:"content",domProps:{textContent:t._s(e.status)}})])})),1):t._e()],1)])]):t._e()],1)},l=[],u=n("bd86"),d={props:{drawer:{type:Boolean,default:!1}},data:function(){return Object(u["a"])(Object(u["a"])(Object(u["a"])(Object(u["a"])(Object(u["a"])({loading:!0,orderId:"",direction:"rtl",activeName:"detail",goodsList:[],orderConfirm:!1,sendGoods:!1,dialogLogistics:!1,confirmReceiptForm:{id:""},orderData:[],contentList:[],nicknameList:[],result:[],timeVal:[],childOrder:[]},"childOrder",[]),"tableDataLog",{data:[],total:0}),"tableFromLog",{user_type:"",date:[],page:1,limit:10}),"orderDetailList",{user:{real_name:""},groupOrder:{group_order_sn:""}}),"orderImg",n("ea8b"))},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},getOrderData:function(){var t=this;Object(o["ub"])(this.orderId).then(function(){var e=Object(s["a"])(Object(a["a"])().mark((function e(n){return Object(a["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.result=n.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.$emit("send",this.orderId)},printOrder:function(){var t=this;Object(o["orderPrintApi"])(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(o["qb"])(this.orderId)).then((function(){return t.getInfo(t.orderId)}))},getDelivery:function(){var t=this;Object(o["orderDeliveryApi"])(this.orderId).then((function(e){t.$message.success(e.message),t.sendGoods=!1})).catch((function(e){t.$message.error(e.message)}))},getInfo:function(t){var e=this;this.loading=!0,this.orderId=t,Object(o["sb"])(t).then((function(t){e.drawer=!0,e.loading=!1,e.orderDetailList=t.data})).catch((function(t){e.loading=!1,e.$message.error(t.message)}))},handleDelete:function(){var t=this;this.$modalSure().then((function(){Object(o["orderDeleteApi"])(t.orderId).then((function(e){var n=e.message;t.$message.success(n)})).catch((function(e){var n=e.message;t.$message.error(n)}))}))},tabClick:function(t){"orderList"===t.name&&this.onOrderLog(this.orderId)},onOrderLog:function(t){var e=this;Object(o["vb"])(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?"平台":"未知"}}},f=d,p=(n("fa4b"),n("2877")),m=Object(p["a"])(f,c,l,!1,null,"5dbc116b",null),v=m.exports,g=n("2e83"),h=n("0b65"),_={components:{orderDetail:v},data:function(){return{select:"",keywords:"",orderId:0,tableData:{data:[],total:0},pickerOptions:h["a"],listLoading:!0,tableFrom:{keywords:"",status:"",date:"",page:1,limit:20,product_id:""},timeVal:[],ids:"",uid:"",visibleDetail:!1,tableFromLog:{page:1,limit:10},loading:!1,dialogVisible:!1,cardLists:[],orderDatalist:null,shipment:{delivery_type:1},deliveryList:[],drawer:!1,sendVisible:!1,rules:{delivery_type:[{required:!0,message:"请选择发送货方式",trigger:"change"}],delivery_name:[{required:!0,message:"请选择快递公司",trigger:"change"}],to_name:[{required:!0,message:"请输入送货人姓名",trigger:"blur"}],delivery_id:[{required:!0,message:"请输入快递单号",trigger:"blur"}],to_phone:[{required:!0,message:"请输入送货人手机号",trigger:"blur"},{pattern:/^1[3456789]\d{9}$/,message:"请输入正确的手机号",trigger:"blur"}]}}},watch:{"$route.query.id":{handler:function(t){this.tableFrom.product_id=t||"",this.getList("")},immediate:!1,deep:!0}},mounted:function(){this.$route.query.id?this.tableFrom.product_id=this.$route.query.id:this.tableFrom.product_id="",this.getExpressLst(),this.getList("")},activated:function(){this.$route.query.id?this.tableFrom.product_id=this.$route.query.id:this.tableFrom.product_id="",this.getList("")},methods:{searchReset:function(){this.timeVal=[],this.tableFrom.date="",this.keywords="",this.$refs.searchForm.resetFields(),this.changeSearch()},addTdClass:function(t){if(!(t.row.status>0&&1==t.row.paid))return" ";for(var e=0;e0&&t.row.orderProduct[e].refund_num