(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1bcd0897"],{"03c2":function(e,t,i){},"0b65":function(e,t,i){"use strict";t["a"]={shortcuts:[{text:"今天",onClick:function(e){var t=new Date,i=new Date;i.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate())),e.$emit("pick",[i,t])}},{text:"昨天",onClick:function(e){var t=new Date,i=new Date;i.setTime(i.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-1))),t.setTime(t.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-1))),e.$emit("pick",[i,t])}},{text:"最近7天",onClick:function(e){var t=new Date,i=new Date;i.setTime(i.getTime()-6048e5),e.$emit("pick",[i,t])}},{text:"最近30天",onClick:function(e){var t=new Date,i=new Date;i.setTime(i.getTime()-2592e6),e.$emit("pick",[i,t])}},{text:"本月",onClick:function(e){var t=new Date,i=new Date;i.setTime(i.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),1))),e.$emit("pick",[i,t])}},{text:"本年",onClick:function(e){var t=new Date,i=new Date;i.setTime(i.setTime(new Date((new Date).getFullYear(),0,1))),e.$emit("pick",[i,t])}}]}},"18a0":function(e,t,i){},"18ef":function(e,t,i){"use strict";i("03c2")},"2ca5":function(e,t,i){"use strict";i("6d4d")},"2e83":function(e,t,i){"use strict";i.d(t,"a",(function(){return l}));i("28a5");var r=i("8122"),a=i("e8ae"),s=i.n(a),n=i("21a6");function l(e,t,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,m=new s.a.Workbook,p=e.length;function _(e){var t=Array.isArray(e)?e[0]:e,i=Array.isArray(e)?e[1]:{};c=m.addWorksheet(t,i)}function v(e,t){if(!Object(r["isEmpty"])(e)){e=Array.isArray(e)?e:e.split(",");for(var i=0;i=r)&&c.mergeCells(C(a)+e+":"+C(a)+t)}function w(e){if(!Object(r["isEmpty"])(e))if(Array.isArray(e))for(var t=0;t0?i("cards-data",{attrs:{"card-lists":e.cardLists}}):e._e(),e._v(" "),i("el-card",[e.headeNum.length>0?i("el-tabs",{on:{"tab-click":function(t){e.getList(1),e.getCardList(),e.getHeaderList()}},model:{value:e.tableFrom.order_type,callback:function(t){e.$set(e.tableFrom,"order_type",t)},expression:"tableFrom.order_type"}},e._l(e.headeNum,(function(e,t){return i("el-tab-pane",{key:t,attrs:{name:e.order_type.toString(),label:e.title+"("+e.count+")"}})})),1):e._e(),e._v(" "),i("div",{staticClass:"mt5"},[i("el-button",{staticClass:"mr14",attrs:{size:"small",type:"primary"},on:{click:function(t){return e.orderCancellation("")}}},[e._v("订单核销")]),e._v(" "),i("el-dropdown",{staticClass:"dropdown",on:{command:e.exports}},[i("span",{staticClass:"el-dropdown-link"},[e._v("\n 导出列表"),i("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),e._v(" "),i("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[i("el-dropdown-item",{attrs:{command:"1"}},[e._v("导出订单")]),e._v(" "),i("el-dropdown-item",{attrs:{command:"2"}},[e._v("导出发货单")])],1)],1),e._v(" "),i("el-upload",{staticClass:"mr14 ml5",staticStyle:{display:"inline-block"},attrs:{size:"small",headers:e.myHeaders,action:e.fileUrl,"on-success":e.handleSuccess,"show-file-list":!1}},[i("el-button",{attrs:{size:"small"}},[e._v("导入批量发货")])],1),e._v(" "),i("el-button",{attrs:{size:"small"},on:{click:e.getDeliveryList}},[e._v("批量发货记录")]),e._v(" "),i("el-button",{attrs:{size:"small"},on:{click:e.batchSend}},[e._v("批量发送货")])],1),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],staticClass:"table mt20",attrs:{data:e.tableData.data,size:"small","highlight-current-row":"","cell-class-name":e.addTdClass}},[i("el-table-column",{attrs:{type:"expand"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-form",{staticClass:"demo-table-expand",attrs:{"label-position":"left",inline:""}},[i("el-form-item",{attrs:{label:"商品总价:"}},[i("span",[e._v(e._s(e._f("filterEmpty")(t.row.total_price)))])]),e._v(" "),i("el-form-item",{attrs:{label:"下单时间:"}},[i("span",[e._v(e._s(t.row.create_time))])]),e._v(" "),i("el-form-item",{attrs:{label:"用户备注:"}},[i("span",{staticStyle:{display:"inline-block",width:"200px"}},[e._v(e._s(e._f("filterEmpty")(t.row.mark)))])]),e._v(" "),i("el-form-item",{attrs:{label:"商家备注:"}},[i("span",[e._v(e._s(e._f("filterEmpty")(t.row.remark)))])])],1)]}}])}),e._v(" "),i("el-table-column",{attrs:{width:"50"},scopedSlots:e._u([{key:"header",fn:function(t){return[i("el-popover",{staticClass:"tabPop",attrs:{placement:"top-start",width:"100",trigger:"hover"}},[i("div",[i("span",{staticClass:"spBlock onHand",class:{check:"dan"===e.chkName},on:{click:function(i){return e.onHandle("dan",t.$index)}}},[e._v("选中本页")]),e._v(" "),i("span",{staticClass:"spBlock onHand",class:{check:"duo"===e.chkName},on:{click:function(t){return e.onHandle("duo")}}},[e._v("选中全部")])]),e._v(" "),i("el-checkbox",{attrs:{slot:"reference",value:"dan"===e.chkName&&e.checkedPage.indexOf(e.tableFrom.page)>-1||"duo"===e.chkName},on:{change:e.changeType},slot:"reference"})],1)]}},{key:"default",fn:function(t){return[i("el-checkbox",{attrs:{value:e.checkedIds.indexOf(t.row.order_id)>-1||"duo"===e.chkName&&-1===e.noChecked.indexOf(t.row.order_id)},on:{change:function(i){return e.changeOne(i,t.row)}}})]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"订单编号","min-width":"170"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",{staticStyle:{display:"block"},domProps:{textContent:e._s(t.row.order_sn)}}),e._v(" "),i("span",{directives:[{name:"show",rawName:"v-show",value:t.row.is_del>0,expression:"scope.row.is_del > 0"}],staticStyle:{color:"#ED4014",display:"block"}},[e._v("用户已删除")])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"real_name",label:"收货人/订购人","min-width":"130"}}),e._v(" "),i("el-table-column",{attrs:{label:"商品信息","min-width":"330"},scopedSlots:e._u([{key:"default",fn:function(t){return e._l(t.row.orderProduct,(function(r,a){return i("div",{key:a,staticClass:"tabBox acea-row row-middle"},[i("div",{staticClass:"demo-image__preview"},[i("el-image",{attrs:{src:r.cart_info.product.image,"preview-src-list":[r.cart_info.product.image]}})],1),e._v(" "),i("span",{staticClass:"tabBox_tit"},[e._v(e._s(r.cart_info.product.store_name+" | ")+e._s(r.cart_info.productAttr.sku))]),e._v(" "),i("span",{staticClass:"tabBox_pice"},[2===t.row.activity_type&&r.cart_info.productPresellAttr?i("span",[e._v(e._s("¥"+r.cart_info.productPresellAttr.presell_price+" x "+r.product_num))]):3===t.row.activity_type&&r.cart_info.productAssistAttr?i("span",[e._v(e._s("¥"+r.cart_info.productAssistAttr.assist_price+" x "+r.product_num))]):i("span",[e._v(e._s("¥"+r.cart_info.productAttr.price+" x "+r.product_num))]),e._v(" "),r.refund_num=0?i("em",{staticStyle:{color:"red","font-style":"normal"}},[e._v("(-"+e._s(r.product_num-r.refund_num)+")")]):e._e()])])}))}}])}),e._v(" "),i("el-table-column",{attrs:{label:"实际支付","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(t.row.pay_price))]),e._v(" "),t.row.finalOrder?i("p",[e._v("尾款:"+e._s(t.row.finalOrder.pay_price))]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"支付类型","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[1===t.row.paid?i("span",[e._v(e._s(e._f("orderPayType")(t.row.pay_type)))]):i("span",[e._v("--")])]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"支付状态","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(0===t.row.paid?"未支付":"已支付"))])]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"订单状态","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[0===t.row.is_del?i("span",[0===t.row.paid?i("span",[e._v("待付款")]):i("span",[0===t.row.order_type||2===t.row.order_type?i("span",[e._v(e._s(e._f("orderStatusFilter")(t.row.status)))]):i("span",[e._v(e._s(e._f("takeOrderStatusFilter")(t.row.status)))])])]):i("span",[e._v("已删除")])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"create_time",label:"下单时间","min-width":"130"}}),e._v(" "),i("el-table-column",{key:"8",attrs:{label:"操作","min-width":"150",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return e.onOrderDetails(t.row.order_id)}}},[e._v("详情")]),e._v(" "),e.orderFilter(t.row)?i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return e.onRefundDetail(t.row.order_sn)}}},[e._v("查看退款单")]):e._e(),e._v(" "),0===t.row.paid&&0===t.row.is_del&&2!=t.row.activity_type?i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return e.edit(t.row.order_id)}}},[e._v("编辑")]):e._e(),e._v(" "),0!=t.row.order_type&&2!=t.row.order_type||0!==t.row.status||1!==t.row.paid?e._e():i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return e.send(t.row,t.row.order_id)}}},[e._v("发送货")]),e._v(" "),0!==t.row.is_del?i("el-button",{attrs:{type:"text",size:"small"},nativeOn:{click:function(i){return e.handleDelete(t.row,t.$index)}}},[e._v("删除")]):e._e(),e._v(" "),1==t.row.order_type&&0===t.row.status&&1===t.row.paid?i("el-button",{attrs:{type:"text",size:"small"},nativeOn:{click:function(i){return e.orderCancellation(t.row.verify_code)}}},[e._v("去核销")]):e._e()]}}])})],1),e._v(" "),i("div",{staticClass:"block"},[i("el-pagination",{attrs:{background:"","page-size":e.tableFrom.limit,"current-page":e.tableFrom.page,layout:"total, prev, pager, next, jumper",total:e.tableData.total},on:{"size-change":e.handleSizeChange,"current-change":e.pageChange}})],1)],1),e._v(" "),i("el-dialog",{attrs:{title:"操作记录",visible:e.dialogVisible,width:"700px"},on:{"update:visible":function(t){e.dialogVisible=t}}},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.LogLoading,expression:"LogLoading"}],staticStyle:{width:"100%"},attrs:{border:"",data:e.tableDataLog.data}},[i("el-table-column",{attrs:{prop:"order_id",align:"center",label:"订单ID","min-width":"80"}}),e._v(" "),i("el-table-column",{attrs:{prop:"change_message",label:"操作记录",align:"center","min-width":"280"}}),e._v(" "),i("el-table-column",{attrs:{prop:"change_time",label:"操作时间",align:"center","min-width":"280"}})],1),e._v(" "),i("div",{staticClass:"block"},[i("el-pagination",{attrs:{"page-size":e.tableFromLog.limit,"current-page":e.tableFromLog.page,layout:"prev, pager, next, jumper",total:e.tableDataLog.total},on:{"size-change":e.handleSizeChangeLog,"current-change":e.pageChangeLog}})],1)],1),e._v(" "),i("el-dialog",{attrs:{title:"修改订单",visible:e.editVisible,width:"700px"},on:{"update:visible":function(t){e.editVisible=t}}},[i("el-form",{ref:"formValidate",attrs:{model:e.formValidate,"label-width":"120px"},nativeOn:{submit:function(e){e.preventDefault()}}},[i("el-form-item",{attrs:{label:"订单总价:"}},[i("el-input-number",{attrs:{min:0,placeholder:"请输入订单总价"},on:{change:e.changePrice},model:{value:e.formValidate.total_price,callback:function(t){e.$set(e.formValidate,"total_price",t)},expression:"formValidate.total_price"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"实际支付邮费:"}},[i("el-input-number",{attrs:{min:0,placeholder:"请输入订单油费"},on:{change:e.changePrice},model:{value:e.formValidate.pay_postage,callback:function(t){e.$set(e.formValidate,"pay_postage",t)},expression:"formValidate.pay_postage"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"优惠金额:"}},[i("span",[e._v(e._s(e.formValidate.coupon_price))])]),e._v(" "),i("el-form-item",{attrs:{label:"积分抵扣金额:"}},[i("span",[e._v(e._s(e.formValidate.integral_price))])]),e._v(" "),i("el-form-item",{attrs:{label:"实际支付金额:"}},[i("span",[e._v(e._s(e.formValidate.pay_price))])])],1),e._v(" "),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{type:"primary"},on:{click:e.editConfirm}},[e._v("确定")])],1)],1),e._v(" "),i("el-dialog",{attrs:{title:e.isBatch?"批量发货":"订单发送货",visible:e.sendVisible,width:"900px","before-close":e.handleClose},on:{"update:visible":function(t){e.sendVisible=t}}},[i("el-form",{ref:"shipment",attrs:{model:e.shipment,rules:e.rules,"label-width":"120px"},nativeOn:{submit:function(e){e.preventDefault()}}},[e.isResend&&3!=e.noLogistics&&2!=e.tableFrom.order_type?i("el-form-item",{attrs:{label:1==e.shipment.delivery_type||4==e.shipment.delivery_type?"原快递公司:":"送货人姓名:"}},[i("span",[e._v(e._s(e.original.delivery_name))])]):e._e(),e._v(" "),e.isResend&&3!=e.noLogistics&&2!=e.tableFrom.order_type?i("el-form-item",{attrs:{label:1==e.shipment.delivery_type||4==e.shipment.delivery_type?"原快递单号:":"送货人手机号:"}},[i("span",[e._v(e._s(e.original.delivery_id))])]):e._e(),e._v(" "),i("el-form-item",{attrs:{label:"选择类型:",prop:"delivery_type"}},[i("el-radio-group",{on:{change:e.changeSend},model:{value:e.shipment.delivery_type,callback:function(t){e.$set(e.shipment,"delivery_type",t)},expression:"shipment.delivery_type"}},[2!=e.tableFrom.order_type&&1!=e.orderType?i("el-radio",{attrs:{label:2}},[e._v("自己配送")]):e._e()],1)],1),e._v(" "),5==e.shipment.delivery_type&&2!=e.tableFrom.order_type&&1!=e.orderType?i("el-form-item",{attrs:{label:"选择发货点:",prop:"station_id"}},[i("el-select",{staticClass:"pageWidth",attrs:{size:"small",placeholder:"请选择配送发货点"},model:{value:e.shipment.station_id,callback:function(t){e.$set(e.shipment,"station_id",t)},expression:"shipment.station_id"}},e._l(e.storeList,(function(e,t){return i("el-option",{key:e.value+t,attrs:{label:e.label,value:e.value}})})),1)],1):e._e(),e._v(" "),1!=e.shipment.delivery_type&&4!=e.shipment.delivery_type||2==e.tableFrom.order_type||1==e.orderType?e._e():i("el-form-item",{attrs:{label:"快递公司:",prop:"delivery_name"}},[i("el-select",{staticClass:"pageWidth",attrs:{filterable:"",size:"small",placeholder:"请选择快递公司"},on:{change:function(t){return e.getTempsLst(e.shipment.delivery_name)}},model:{value:e.shipment.delivery_name,callback:function(t){e.$set(e.shipment,"delivery_name",t)},expression:"shipment.delivery_name"}},e._l(e.deliveryList,(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),5==e.shipment.delivery_type&&2!=e.tableFrom.order_type&&1!=e.orderType?i("el-form-item",{attrs:{label:"包裹重量(kg):",prop:"cargo_weight"}},[i("el-input-number",{staticStyle:{width:"200px"},attrs:{size:"small",placeholder:"请输入包裹重量"},model:{value:e.shipment.cargo_weight,callback:function(t){e.$set(e.shipment,"cargo_weight",t)},expression:"shipment.cargo_weight"}})],1):e._e(),e._v(" "),5==e.shipment.delivery_type&&2!=e.tableFrom.order_type&&1!=e.orderType?i("el-form-item",{attrs:{label:"配送备注:"}},[i("el-input",{staticClass:"pageWidth",attrs:{type:"textarea",size:"small",placeholder:"请输入配送单备注"},model:{value:e.shipment.mark,callback:function(t){e.$set(e.shipment,"mark",t)},expression:"shipment.mark"}})],1):e._e(),e._v(" "),1==e.shipment.delivery_type&&2!=e.tableFrom.order_type&&1!=e.orderType?i("el-form-item",{attrs:{label:"快递单号:",prop:"delivery_id"}},[i("el-input",{staticClass:"pageWidth",attrs:{size:"small",placeholder:"请输入快递单号"},model:{value:e.shipment.delivery_id,callback:function(t){e.$set(e.shipment,"delivery_id",t)},expression:"shipment.delivery_id"}})],1):e._e(),e._v(" "),4==e.shipment.delivery_type&&2!=e.tableFrom.order_type&&1!=e.orderType?i("el-form-item",{attrs:{label:"电子面单:",prop:"temp_id"}},[i("el-select",{staticClass:"pageWidth",attrs:{size:"small",placeholder:"请选择电子面单"},model:{value:e.shipment.temp_id,callback:function(t){e.$set(e.shipment,"temp_id",t)},expression:"shipment.temp_id"}},e._l(e.eleTempsLst,(function(e,t){return i("el-option",{key:e.temp_id+t,attrs:{label:e.title,value:e.temp_id}})})),1),e._v(" "),i("el-button",{attrs:{type:"text"},on:{click:function(t){return e.getPicture()}}},[e._v("预览")])],1):e._e(),e._v(" "),4==e.shipment.delivery_type&&2!=e.tableFrom.order_type&&1!=e.orderType?i("el-form-item",{attrs:{label:"寄件人姓名:",prop:"from_name"}},[i("el-input",{staticClass:"pageWidth",attrs:{size:"small",placeholder:"请输入寄件人姓名"},model:{value:e.shipment.from_name,callback:function(t){e.$set(e.shipment,"from_name",t)},expression:"shipment.from_name"}})],1):e._e(),e._v(" "),4==e.shipment.delivery_type&&2!=e.tableFrom.order_type&&1!=e.orderType?i("el-form-item",{attrs:{label:"寄件人电话:",prop:"from_tel"}},[i("el-input",{staticClass:"pageWidth",attrs:{size:"small",placeholder:"请输入寄件人电话"},model:{value:e.shipment.from_tel,callback:function(t){e.$set(e.shipment,"from_tel",t)},expression:"shipment.from_tel"}})],1):e._e(),e._v(" "),2==e.shipment.delivery_type&&2!=e.tableFrom.order_type&&1!=e.orderType?i("el-form-item",{attrs:{label:"送货人姓名:",prop:"to_name"}},[i("el-input",{staticClass:"pageWidth",attrs:{size:"small",maxlength:"10",placeholder:"请输入送货人姓名"},model:{value:e.shipment.to_name,callback:function(t){e.$set(e.shipment,"to_name",t)},expression:"shipment.to_name"}})],1):e._e(),e._v(" "),2==e.shipment.delivery_type&&2!=e.tableFrom.order_type&&2!=e.orderType?i("el-form-item",{attrs:{label:"送货人手机号:",prop:"to_phone"}},[i("el-input",{staticClass:"pageWidth",attrs:{size:"small",placeholder:"请输入送货人手机号"},model:{value:e.shipment.to_phone,callback:function(t){e.$set(e.shipment,"to_phone",t)},expression:"shipment.to_phone"}})],1):e._e(),e._v(" "),4==e.shipment.delivery_type&&2!=e.tableFrom.order_type&&1!=e.orderType?i("el-form-item",{attrs:{label:"寄件人地址:",prop:"from_addr"}},[i("el-input",{staticClass:"pageWidth",attrs:{type:"textarea",size:"small",placeholder:"请输入寄件人地址"},model:{value:e.shipment.from_addr,callback:function(t){e.$set(e.shipment,"from_addr",t)},expression:"shipment.from_addr"}})],1):e._e(),e._v(" "),4!=e.shipment.type&&2!=e.activityType&&(e.productList.length>1||e.productNum>1)?i("el-form-item",{attrs:{label:"分单发货:"}},[i("el-switch",{attrs:{"active-value":1,"inactive-value":0,width:55,"active-text":"开启","inactive-text":"关闭"},model:{value:e.shipment.is_split,callback:function(t){e.$set(e.shipment,"is_split",t)},expression:"shipment.is_split"}}),e._v(" "),i("p",{staticClass:"area-desc"},[e._v("可选择表格中的商品单独发货,发货后会生成新的订单且不能撤回,请谨慎操作!")])],1):e._e(),e._v(" "),1==e.shipment.is_split&&2!=e.tableFrom.order_type&&(e.productList.length>1||e.productNum>1)?i("el-form-item",{attrs:{label:""}},[i("el-table",{ref:"multipleSelection",staticClass:"table-line",attrs:{data:e.productList,"tooltip-effect":"dark",size:"mini","row-key":function(e){return e.product_id}},on:{"selection-change":e.handleSelectionChange}},[i("el-table-column",{attrs:{align:"center",type:"selection","reserve-selection":!0,"min-width":"50"}}),e._v(" "),i("el-table-column",{attrs:{align:"center",label:"商品信息","min-width":"200"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",{staticClass:"acea-row",staticStyle:{"align-items":"center"}},[i("div",{staticClass:"demo-image__preview"},[i("el-image",{attrs:{src:t.row.cart_info.product.image,"preview-src-list":[t.row.cart_info.product.image]}})],1),e._v(" "),i("span",{staticClass:"priceBox",staticStyle:{width:"150px"}},[e._v(e._s(t.row.cart_info.product.store_name))])])]}}],null,!1,1334329387)}),e._v(" "),i("el-table-column",{attrs:{align:"center",label:"规格","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",{staticClass:"priceBox"},[e._v(e._s(t.row.cart_info.productAttr.sku))])]}}],null,!1,2489556760)}),e._v(" "),i("el-table-column",{attrs:{align:"center",label:"商品售价","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",{staticClass:"priceBox"},[e._v(e._s(t.row.cart_info.productAttr.price))])]}}],null,!1,3535341656)}),e._v(" "),i("el-table-column",{attrs:{align:"center",label:"总数","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",{staticClass:"priceBox"},[e._v(e._s(t.row.stock_num))])]}}],null,!1,13674865)}),e._v(" "),i("el-table-column",{attrs:{label:"待发数量",align:"center","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-input",{staticClass:"priceBox",attrs:{type:"number",min:0,max:t.row.refund_num,size:"small"},on:{blur:function(i){return e.limitCount(t.row)}},model:{value:t.row["product_num_input"],callback:function(i){e.$set(t.row,"product_num_input",i)},expression:"scope.row['product_num_input']"}})]}}],null,!1,2768193810)})],1)],1):e._e(),e._v(" "),i("el-form-item",{attrs:{label:"备注:",prop:"remark"}},[i("el-input",{staticClass:"pageWidth",attrs:{type:"textarea",placeholder:"请输入备注"},model:{value:e.shipment.remark,callback:function(t){e.$set(e.shipment,"remark",t)},expression:"shipment.remark"}})],1)],1),e._v(" "),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{size:"small"},on:{click:e.handleClose}},[e._v("取 消")]),e._v(" "),i("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(t){return e.submitForm("shipment")}}},[e._v("提交")])],1)],1),e._v(" "),e.pictureVisible?i("el-dialog",{attrs:{visible:e.pictureVisible,width:"500px"},on:{"update:visible":function(t){e.pictureVisible=t}}},[i("img",{staticClass:"pictures",attrs:{src:e.pictureUrl}})]):e._e(),e._v(" "),i("order-detail",{ref:"orderDetail",attrs:{orderId:e.orderId,drawer:e.drawer},on:{closeDrawer:e.closeDrawer,changeDrawer:e.changeDrawer,reSend:e.reSend,onOrderRefund:e.onOrderRefund,send:e.send,getList:e.getList}}),e._v(" "),i("file-list",{ref:"exportList"}),e._v(" "),i("delivery-record",{ref:"deliveryList"}),e._v(" "),i("order-cancellate",{ref:"orderCancellate",on:{getList:e.getList}}),e._v(" "),i("order-refund",{ref:"orderRefund",on:{refundSuccess:e.refundSuccess}})],1)},a=[],s=(i("7f7f"),i("c5f6"),i("c7eb")),n=(i("6b54"),i("96cf"),i("1da1")),l=(i("ac6a"),i("28a5"),i("f8b7")),o=i("2e83"),c=i("90e7"),d=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[r("el-drawer",{attrs:{"with-header":!1,visible:e.drawer,size:"1000px",direction:e.direction,"before-close":e.handleClose},on:{"update:visible":function(t){e.drawer=t}}},[r("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[r("div",{staticClass:"head"},[r("div",{staticClass:"full"},[r("img",{staticClass:"order_icon",attrs:{src:e.orderImg,alt:""}}),e._v(" "),r("div",{staticClass:"text"},[r("div",{staticClass:"title"},[e._v(e._s(0==e.orderDetailList.order_type?"普通订单":"核销订单"))]),e._v(" "),r("div",[r("span",{staticClass:"mr20"},[e._v("订单编号:"+e._s(e.orderDetailList.order_sn))])])]),e._v(" "),r("div",[0!=e.orderDetailList.order_type&&0==e.orderDetailList.status?r("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.orderCancellation}},[e._v("订单核销")]):e._e(),e._v(" "),0!=e.orderDetailList.order_type&&2!=e.orderDetailList.order_type||0!==e.orderDetailList.status||1!==e.orderDetailList.paid?e._e():r("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.send}},[e._v("发送货")]),e._v(" "),1==e.orderDetailList.paid?r("el-button",{attrs:{type:"success",size:"small"},on:{click:e.printOrder}},[e._v("小票打印")]):e._e(),e._v(" "),r("el-dropdown",{staticClass:"ml10",on:{command:e.handleCommand}},[r("el-button",{attrs:{icon:"el-icon-more",size:"small"}}),e._v(" "),r("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[r("el-dropdown-item",{attrs:{command:"mark"}},[e._v("订单备注")]),e._v(" "),0==e.orderDetailList.order_type&&1===e.orderDetailList.status&&1===e.orderDetailList.paid?r("el-dropdown-item",{attrs:{command:"modify"}},[e._v("修改发货信息")]):e._e(),e._v(" "),-1!=e.orderDetailList.status&&1==e.orderDetailList.paid&&e.orderDetailList.status<9?r("el-dropdown-item",{attrs:{command:"refund"}},[e._v("退款")]):e._e()],1)],1)],1)]),e._v(" "),r("ul",{staticClass:"list"},[r("li",{staticClass:"item"},[r("div",{staticClass:"title"},[e._v("订单状态")]),e._v(" "),r("div",[e.orderDetailList.pay_time?e._e():r("div",{staticClass:"value1"},[e._v("待付款"),e.orderDetailList.is_del>0?r("span",{staticStyle:{color:"rgb(237,64,20)","font-size":"12px"}},[e._v("(用户已删除)")]):e._e()]),e._v(" "),0===e.orderDetailList.order_type&&e.orderDetailList.pay_time?r("div",{staticClass:"value1"},[r("span",[e._v(e._s(e._f("orderStatusFilter")(e.orderDetailList.status))),e.orderDetailList.is_del>0?r("span",{staticStyle:{color:"rgb(237,64,20)","font-size":"12px"}},[e._v("(用户已删除)")]):e._e()])]):e._e(),e._v(" "),1===e.orderDetailList.order_type&&e.orderDetailList.pay_time?r("div",{staticClass:"value1"},[r("span",[e._v(e._s(e._f("cancelOrderStatusFilter")(e.orderDetailList.status))),e.orderDetailList.is_del>0?r("span",{staticStyle:{color:"rgb(237,64,20)","font-size":"12px"}},[e._v("(用户已删除)")]):e._e()])]):e._e()])]),e._v(" "),r("li",{staticClass:"item"},[r("div",{staticClass:"title"},[e._v("实际支付")]),e._v(" "),r("div",[e._v("\n ¥"+e._s(e.orderDetailList.pay_price)+"\n "),e.orderDetailList.finalOrder&&e.orderDetailList.finalOrder.pay_price&&1==e.orderDetailList.finalOrder.paid?r("span",[e._v("尾款¥"+e._s(e.orderDetailList.finalOrder.pay_price))]):e._e()])]),e._v(" "),r("li",{staticClass:"item"},[r("div",{staticClass:"title"},[e._v("支付方式")]),e._v(" "),r("div",[e._v(e._s(e._f("payTypeFilter")(e.orderDetailList.pay_type)))])]),e._v(" "),r("li",{staticClass:"item"},[r("div",{staticClass:"title"},[e._v(e._s(e.orderDetailList.pay_time?"支付时间":"下单时间"))]),e._v(" "),r("div",[e._v(e._s(e.orderDetailList.create_time))])])])]),e._v(" "),r("el-tabs",{attrs:{type:"border-card"},on:{"tab-click":e.tabClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[r("el-tab-pane",{attrs:{label:"订单信息",name:"detail"}},[e.orderDetailList.user?r("div",{staticClass:"section"},[r("div",{staticClass:"title"},[e._v("用户信息")]),e._v(" "),r("ul",{staticClass:"list"},[r("li",{staticClass:"item"},[r("div",[e._v("用户昵称:")]),e._v(" "),r("div",{staticClass:"value"},[e._v("\n "+e._s(e.orderDetailList.user.real_name?e.orderDetailList.user.real_name:e.orderDetailList.user.nickname)+"\n ")])]),e._v(" "),r("li",{staticClass:"item"},[r("div",[e._v("用户ID:")]),e._v(" "),r("div",{staticClass:"value"},[e._v(e._s(e.orderDetailList.user.uid?e.orderDetailList.user.uid:"-"))])]),e._v(" "),r("li",{staticClass:"item"},[r("div",[e._v("绑定电话:")]),e._v(" "),r("div",{staticClass:"value"},[e._v(e._s(e.orderDetailList.user.phone?e.orderDetailList.user.phone:"-"))])])])]):e._e(),e._v(" "),r("div",{staticClass:"section"},[r("div",{staticClass:"title"},[e._v("收货信息")]),e._v(" "),r("ul",{staticClass:"list"},[r("li",{staticClass:"item"},[r("div",[e._v("收货人:")]),e._v(" "),r("div",{staticClass:"value"},[e._v(e._s(e.orderDetailList.real_name?e.orderDetailList.real_name:"-"))])]),e._v(" "),r("li",{staticClass:"item"},[r("div",[e._v("收货电话:")]),e._v(" "),r("div",{staticClass:"value"},[e._v(e._s(e.orderDetailList.user_phone?e.orderDetailList.user_phone:"-"))])]),e._v(" "),r("li",{staticClass:"item"},[r("div",[e._v("收货地址:")]),e._v(" "),r("div",{staticClass:"value"},[e._v(e._s(e.orderDetailList.user_address?e.orderDetailList.user_address:"-"))])])])]),e._v(" "),r("div",{staticClass:"section"},[r("div",{staticClass:"title"},[e._v("订单信息")]),e._v(" "),r("ul",{staticClass:"list"},[r("li",{staticClass:"item"},[r("div",[e._v("创建时间:")]),e._v(" "),r("div",{staticClass:"value"},[e._v(e._s(e.orderDetailList.create_time?e.orderDetailList.create_time:"-"))])]),e._v(" "),r("li",{staticClass:"item"},[r("div",[e._v("商品总数:")]),e._v(" "),r("div",{staticClass:"value"},[e._v(e._s(e.orderDetailList.total_num?e.orderDetailList.total_num:"-"))])]),e._v(" "),e.orderDetailList.pay_time?r("li",{staticClass:"item"},[r("div",[e._v("实际支付:")]),e._v(" "),r("div",{staticClass:"value"},[e._v("\n "+e._s(e.orderDetailList.pay_price)+"\n "),e.orderDetailList.finalOrder&&e.orderDetailList.finalOrder.pay_price&&1==e.orderDetailList.finalOrder.paid?r("span",[e._v("尾款¥"+e._s(e.orderDetailList.finalOrder.pay_price))]):e._e()])]):e._e(),e._v(" "),r("li",{staticClass:"item"},[r("div",[e._v("优惠券金额:")]),e._v(" "),r("div",{staticClass:"value"},[e._v(e._s(e.orderDetailList.coupon_price?e.orderDetailList.coupon_price:"-"))])]),e._v(" "),e.orderDetailList.integral?r("li",{staticClass:"item"},[r("div",[e._v("积分抵扣:")]),e._v(" "),e.orderDetailList.integral&&0!=e.orderDetailList.integral?r("div",{staticClass:"value"},[e._v("使用了"+e._s(e.orderDetailList.integral)+"个积分,抵扣了"+e._s(e.orderDetailList.integral_price)+"元")]):e._e()]):e._e(),e._v(" "),r("li",{staticClass:"item"},[r("div",[e._v("商品总价:")]),e._v(" "),r("div",{staticClass:"value"},[e._v(e._s(e.orderDetailList.total_price?e.orderDetailList.total_price:"-"))])]),e._v(" "),e.orderDetailList.svip_discount?r("li",{staticClass:"item"},[r("div",[e._v("会员商品优惠:")]),e._v(" "),r("div",{staticClass:"value"},[e._v(e._s(e.orderDetailList.svip_discount))])]):e._e(),e._v(" "),r("li",{staticClass:"item"},[r("div",[e._v("支付运费:")]),e._v(" "),r("div",{staticClass:"value"},[e._v(e._s(e.orderDetailList.pay_postage))])]),e._v(" "),e.orderDetailList.spread?r("li",{staticClass:"item"},[r("div",[e._v("推广人:")]),e._v(" "),r("div",{staticClass:"value"},[e._v(e._s(e.orderDetailList.spread.nickname))])]):e._e(),e._v(" "),e.orderDetailList.TopSpread?r("li",{staticClass:"item"},[r("div",[e._v("上级推广人:")]),e._v(" "),r("div",{staticClass:"value"},[e._v(e._s(e.orderDetailList.TopSpread.nickname))])]):e._e(),e._v(" "),e.orderDetailList.activity_type?e._e():r("li",{staticClass:"item"},[r("div",[e._v("一级佣金:")]),e._v(" "),r("div",{staticClass:"value"},[e._v("\n "+e._s(parseFloat(e.orderDetailList.extension_one)+parseFloat(e.orderDetailList.refund_extension_one))+"\n "),e.orderDetailList.refund_extension_one>0?r("em",{staticStyle:{color:"red","font-style":"normal"}},[e._v("(-"+e._s(e.orderDetailList.refund_extension_one)+")")]):e._e()])]),e._v(" "),e.orderDetailList.activity_type?e._e():r("li",{staticClass:"item"},[r("div",[e._v("二级佣金:")]),e._v(" "),r("div",{staticClass:"value"},[e._v("\n "+e._s(parseFloat(e.orderDetailList.extension_two)+parseFloat(e.orderDetailList.refund_extension_two))+"\n "),e.orderDetailList.refund_extension_two>0?r("em",{staticStyle:{color:"red","font-style":"normal"}},[e._v("(-"+e._s(e.orderDetailList.refund_extension_two)+")")]):e._e()])]),e._v(" "),r("li",{staticClass:"item"},[r("div",[e._v("赠送积分:")]),e._v(" "),r("div",{staticClass:"value"},[e._v(e._s(e.orderDetailList.give_integral||"-"))])]),e._v(" "),r("li",{staticClass:"item"},[r("div",[e._v("发货方式:")]),e._v(" "),1==e.orderDetailList.order_type?r("div",{staticClass:"value"},[e._v("核销")]):r("div",{staticClass:"value"},[e._v(e._s(e._f("sendWay")(e.orderDetailList.delivery_type)))])]),e._v(" "),r("li",{staticClass:"item"},[r("div",[e._v("商品类型:")]),e._v(" "),r("div",{staticClass:"value"},[e._v(e._s(1==e.orderDetailList.is_virtual?"虚拟商品":2==e.orderDetailList.is_virtual?"卡密商品":"普通商品"))])]),e._v(" "),r("li",{staticClass:"item"},[r("div",[e._v("活动类型:")]),e._v(" "),r("div",{staticClass:"value"},[e._v(e._s(1==e.orderDetailList.activity_type?"秒杀":2==e.orderDetailList.activity_type?"预售":3==e.orderDetailList.activity_type?"助力":4==e.orderDetailList.activity_type?"拼团":"普通"))])])])]),e._v(" "),e.orderDetailList.order_extend?r("div",{staticClass:"section"},[r("div",{staticClass:"title"},[e._v("自定义留言")]),e._v(" "),r("ul",{staticClass:"list"},e._l(e.orderDetailList.order_extend,(function(t,i){return r("li",{key:i,staticClass:"item"},[r("div",[e._v(e._s(i)+":")]),e._v(" "),Array.isArray(t)?e._l(t,(function(e,t){return r("img",{key:t,staticStyle:{width:"40px",height:"40px","margin-right":"12px"},attrs:{src:e}})})):[r("div",{staticClass:"value"},[e._v(e._s(t))])]],2)})),0)]):e._e(),e._v(" "),e.orderDetailList.mark?r("div",{staticClass:"section"},[r("div",{staticClass:"title"},[e._v("买家留言")]),e._v(" "),r("ul",{staticClass:"list"},[r("li",{staticClass:"item"},[r("div",[e._v(e._s(e.orderDetailList.mark?e.orderDetailList.mark:"-"))])])])]):e._e(),e._v(" "),e.orderDetailList.remark?r("div",{staticClass:"section"},[r("div",{staticClass:"title"},[e._v("商家备注")]),e._v(" "),r("ul",{staticClass:"list"},[r("li",{staticClass:"item"},[r("div",[e._v(e._s(e.orderDetailList.remark?e.orderDetailList.remark:"-"))])])])]):e._e(),e._v(" "),"1"===e.orderDetailList.delivery_type?r("div",{staticClass:"section"},[r("div",{staticClass:"title"},[e._v("物流信息")]),e._v(" "),r("ul",{staticClass:"list"},[r("li",{staticClass:"item"},[r("div",[e._v("快递公司:")]),e._v(" "),r("div",{staticClass:"value"},[e._v(e._s(e.orderDetailList.delivery_name?e.orderDetailList.delivery_name:"-"))])]),e._v(" "),r("li",{staticClass:"item"},[r("div",[e._v("快递单号:")]),e._v(" "),r("div",{staticClass:"value"},[e._v(e._s(e.orderDetailList.delivery_id?e.orderDetailList.delivery_id:"-"))]),e._v(" "),r("el-button",{staticStyle:{"margin-left":"5px"},attrs:{type:"text",size:"mini"},on:{click:e.openLogistics}},[e._v("物流查询")])],1)])]):e._e()]),e._v(" "),r("el-tab-pane",{attrs:{label:"商品信息",name:"goods"}},[r("el-table",{attrs:{data:e.orderDetailList.orderProduct}},[r("el-table-column",{attrs:{label:"商品信息","min-width":"300"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",{staticClass:"tab"},[r("div",{staticClass:"demo-image__preview"},[r("el-image",{attrs:{src:t.row.cart_info.product.image,"preview-src-list":[t.row.cart_info.product.image]}})],1),e._v(" "),r("div",[r("div",{staticClass:"line1"},[e._v(e._s(t.row.cart_info.product.store_name))]),e._v(" "),r("div",{staticClass:"line1 gary"},[e._v("\n 规格:"+e._s(t.row.cart_info.productAttr.sku?t.row.cart_info.productAttr.sku:"默认")+"\n ")])])])]}}])}),e._v(" "),r("el-table-column",{attrs:{label:"售价","min-width":"90"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",{staticClass:"tab"},[r("div",{staticClass:"line1"},[e._v("\n "+e._s(t.row.cart_info.productAttr.price?t.row.cart_info.productAttr.price:"-")+"\n ")])])]}}])}),e._v(" "),r("el-table-column",{attrs:{label:"实付金额","min-width":"90"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",{staticClass:"tab"},[r("div",{staticClass:"line1"},[e._v("\n "+e._s(t.row.product_price?t.row.product_price:"-")+"\n ")])])]}}])}),e._v(" "),r("el-table-column",{attrs:{label:"购买数量","min-width":"90"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",{staticClass:"tab"},[r("div",{staticClass:"line1"},[e._v("\n "+e._s(t.row.product_num)+"\n ")])])]}}])})],1)],1),e._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(t){return e.onOrderLog(e.orderId)}},model:{value:e.tableFromLog.user_type,callback:function(t){e.$set(e.tableFromLog,"user_type",t)},expression:"tableFromLog.user_type"}},[r("el-option",{attrs:{label:"系统",value:"0"}}),e._v(" "),r("el-option",{attrs:{label:"用户",value:"1"}}),e._v(" "),r("el-option",{attrs:{label:"平台",value:"2"}}),e._v(" "),r("el-option",{attrs:{label:"商户",value:"3"}}),e._v(" "),r("el-option",{attrs:{label:"商家客服",value:"4"}})],1)],1),e._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:e.onchangeTime},model:{value:e.timeVal,callback:function(t){e.timeVal=t},expression:"timeVal"}})],1)],1)])],1),e._v(" "),r("el-table",{attrs:{data:e.tableDataLog.data,size:"small"}},[r("el-table-column",{attrs:{prop:"order_id",label:"订单编号","min-width":"200"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("span",[e._v(e._s(t.row.order_sn))])]}}])}),e._v(" "),r("el-table-column",{attrs:{label:"操作记录","min-width":"200"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("span",[e._v(e._s(t.row.change_message))])]}}])}),e._v(" "),r("el-table-column",{attrs:{label:"操作角色","min-width":"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",{staticClass:"tab"},[r("div",[e._v(e._s(e.operationType(t.row.user_type)))])])]}}])}),e._v(" "),r("el-table-column",{attrs:{label:"操作人","min-width":"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",{staticClass:"tab"},[r("div",[e._v(e._s(t.row.nickname))])])]}}])}),e._v(" "),r("el-table-column",{attrs:{label:"操作时间","min-width":"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",{staticClass:"tab"},[r("div",{staticClass:"line1"},[e._v(e._s(t.row.change_time))])])]}}])})],1),e._v(" "),r("div",{staticClass:"block"},[r("el-pagination",{attrs:{"page-size":e.tableFromLog.limit,"current-page":e.tableFromLog.page,layout:"prev, pager, next, jumper",total:e.tableDataLog.total},on:{"size-change":e.handleSizeChangeLog,"current-change":e.pageChangeLog}})],1)],1),e._v(" "),e.childOrder.length>0?r("el-tab-pane",{attrs:{label:"关联订单",name:"subOrder"}},[r("el-table",{attrs:{data:e.childOrder}},[r("el-table-column",{attrs:{label:"订单编号",prop:"order_sn","min-width":"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[e._v(e._s(t.row.order_sn))])]}}],null,!1,1717655037)}),e._v(" "),r("el-table-column",{attrs:{label:"商品信息","min-width":"200"},scopedSlots:e._u([{key:"default",fn:function(t){return e._l(t.row.orderProduct,(function(t,i){return r("div",{key:i,staticClass:"tabBox acea-row row-middle"},[r("div",{staticClass:"demo-image__preview"},[r("el-image",{attrs:{src:t.cart_info.product.image,"preview-src-list":[t.cart_info.product.image]}})],1),e._v(" "),r("span",{staticClass:"tabBox_tit"},[e._v(e._s(t.cart_info.product.store_name+" | ")+e._s(t.cart_info.productAttr.sku))]),e._v(" "),r("span",{staticClass:"tabBox_pice"},[e._v("\n "+e._s("¥"+t.cart_info.productAttr.price+" x "+t.product_num)+"\n "),t.refund_num0?r("em",{staticStyle:{color:"red","font-style":"normal"}},[e._v("(-"+e._s(t.product_num-t.refund_num)+")")]):e._e()])])}))}}],null,!1,1370655139)}),e._v(" "),r("el-table-column",{attrs:{label:"实际支付","min-width":"80",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("span",[e._v(e._s(t.row.pay_price))])]}}],null,!1,3949474396)}),e._v(" "),r("el-table-column",{attrs:{label:"订单生成时间",prop:"create_time","min-width":"120"}}),e._v(" "),r("el-table-column",{attrs:{label:"操作","min-width":"50",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return e.getChildOrderDetail(t.row.order_id)}}},[e._v("详情")])]}}],null,!1,2524739887)})],1)],1):e._e()],1)],1)]),e._v(" "),e.dialogLogistics?r("el-dialog",{attrs:{title:"物流查询",visible:e.dialogLogistics,width:"350px"},on:{"update:visible":function(t){e.dialogLogistics=t}}},[r("div",{staticClass:"logistics acea-row row-top"},[r("div",{staticClass:"logistics_img"},[r("img",{attrs:{src:i("bd9b")}})]),e._v(" "),r("div",{staticClass:"logistics_cent"},[r("span",[e._v("物流公司:"+e._s(e.orderDetailList.delivery_name))]),e._v(" "),r("span",[e._v("物流单号:"+e._s(e.orderDetailList.delivery_id))])])]),e._v(" "),r("div",{staticClass:"acea-row row-column-around trees-coadd"},[r("div",{staticClass:"scollhide"},[e.result.length>0?r("el-timeline",e._l(e.result,(function(t,i){return r("el-timeline-item",{key:i},[r("p",{staticClass:"time",domProps:{textContent:e._s(t.time)}}),e._v(" "),r("p",{staticClass:"content",domProps:{textContent:e._s(t.status)}})])})),1):e._e()],1)])]):e._e(),e._v(" "),r("order-cancellate",{ref:"orderCancellate",on:{getList:e.getList}})],1)},u=[],m=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[e.dialogVisible?i("el-dialog",{attrs:{title:"订单核销",visible:e.dialogVisible,width:"900px"},on:{"update:visible":function(t){e.dialogVisible=t}}},[i("div",{staticClass:"container"},[i("el-form",{attrs:{"label-width":"80px",size:"small"}},[e.isColum?e._e():i("el-form-item",{attrs:{label:"核销码:"}},[i("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入核销码",size:"small"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.searchOrder(t)}},model:{value:e.code,callback:function(t){e.code=t},expression:"code"}}),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.searchOrder}},[e._v("搜索")])],1),e._v(" "),i("el-form-item",{attrs:{label:"订单号:"}},[i("span",[e._v(e._s(e.orderData.order_sn))])])],1),e._v(" "),i("div",{staticStyle:{"margin-top":"20px"}},[i("el-table",{ref:"multipleSelection",attrs:{data:e.productList,"tooltip-effect":"dark",size:"mini","row-key":function(e){return e.product_id},"header-cell-style":{background:"#F0F5FF"}},on:{"selection-change":e.handleSelectionChange}},[i("el-table-column",{attrs:{align:"center",type:"selection",selectable:e.judgeSelect,"min-width":"50"}}),e._v(" "),i("el-table-column",{attrs:{align:"center",label:"商品信息","min-width":"200"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",{staticClass:"acea-row",staticStyle:{"align-items":"center"}},[i("div",{staticClass:"demo-image__preview"},[i("el-image",{attrs:{src:t.row.cart_info.product.image,"preview-src-list":[t.row.cart_info.product.image]}})],1),e._v(" "),i("span",{staticClass:"priceBox",staticStyle:{width:"150px"}},[e._v(e._s(t.row.cart_info.product.store_name))])])]}}],null,!1,1334329387)}),e._v(" "),i("el-table-column",{attrs:{align:"center",label:"规格","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",{staticClass:"priceBox"},[e._v(e._s(t.row.cart_info.productAttr.sku))])]}}],null,!1,2489556760)}),e._v(" "),i("el-table-column",{attrs:{align:"center",label:"订单金额","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",{staticClass:"priceBox"},[e._v(e._s(t.row.cart_info.productAttr.price))])]}}],null,!1,3535341656)}),e._v(" "),i("el-table-column",{attrs:{align:"center",label:"状态","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",{staticClass:"priceBox"},[e._v("待核销")])]}}],null,!1,3635758024)}),e._v(" "),i("el-table-column",{attrs:{align:"center",prop:"product_num",label:"总数","min-width":"80"}}),e._v(" "),i("el-table-column",{attrs:{label:"核销码",align:"center","min-width":"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-input",{staticClass:"priceBox",model:{value:e.verify_code,callback:function(t){e.verify_code=t},expression:"verify_code"}})]}}],null,!1,3823318112)})],1)],1)],1),e._v(" "),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{size:"small"},on:{click:function(t){e.dialogVisible=!1}}},[e._v("取消")]),e._v(" "),i("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.handleCancellation}},[e._v("核销")])],1)]):e._e()],1)},p=[],_={name:"OrderCancellate",data:function(){return{dialogVisible:!1,loading:!1,code:"",order_id:"",orderData:"",multipleSelection:[],ids:[],verify_code:"",isColum:!1,productList:[]}},methods:{searchOrder:function(){if(!this.code)return this.$message.warning("输入核销码!");this.productDetails(this.code)},judgeSelect:function(e,t){return 0==e.is_refund},handleCancellation:function(){var e=this;if(!this.verify_code)return this.$message.warning("输入核销码!");if(!this.multipleSelection.length)return this.$message.warning("请选择核销商品!");var t=[];this.multipleSelection.map((function(e){e.refund_num>0&&t.push({id:e.order_product_id,num:e.refund_num})})),Object(l["x"])(this.order_id,{verify_code:this.verify_code,data:t}).then((function(t){e.$message.success(t.message),e.dialogVisible=!1,e.$emit("getList","")})).catch((function(t){var i=t.message;e.$message.error(i)}))},productDetails:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];i?this.code=e:(this.code="",this.verify_code=""),this.loading=!0,Object(l["D"])(e).then((function(e){t.orderData=e.data,t.order_id=e.data.order_id,i&&(t.verify_code=e.data.verify_code),t.productList=e.data.orderProduct,t.productList.forEach((function(e,t){e.max_num=e.refund_num})),t.loading=!1})).catch((function(e){var i=e.message;t.loading=!1,t.$message.error(i)}))},resetData:function(){this.orderData={},this.productList=[],this.code=""},handleSelectionChange:function(e){this.multipleSelection=e},limitNum:function(e){e.refund_num>e.max_num?e.refund_num=e.max_num:e.refund_num<1&&(e.refund_num=1)}}},v=_,f=(i("d249"),i("2877")),h=Object(f["a"])(v,m,p,!1,null,"7dc2010e",null),g=h.exports,b={components:{orderCancellate:g},props:{drawer:{type:Boolean,default:!1}},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(e){this.timeVal=e,this.tableFromLog.date=e?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 e=this;e.$refs.orderCancellate.dialogVisible=!0,e.$refs.orderCancellate.productDetails(e.orderDetailList.verify_code),e.$refs.orderCancellate.isColum=!0},send:function(){this.$emit("send",this.orderDetailList,this.orderId)},printOrder:function(){var e=this;Object(l["K"])(this.orderId).then((function(t){e.$message.success(t.message)})).catch((function(t){e.$message.error(t.message)}))},onOrderMark:function(){var e=this;this.$modalForm(Object(l["L"])(this.orderId)).then((function(){return e.getInfo(e.orderId)}))},handleCommand:function(e){"mark"==e?this.onOrderMark():"modify"==e?this.reSend(this.orderId):this.refund(this.orderId)},refund:function(e){this.$emit("onOrderRefund",e)},reSend:function(e){this.$emit("reSend",e)},getList:function(){this.$emit("getList","")},getChildOrder:function(){var e=this;this.loading=!0,Object(l["q"])(this.orderId).then((function(t){e.activeName="detail",e.childOrder=t.data,setTimeout((function(){e.loading=!1}),500)})).catch((function(t){e.$message.error(t.message)}))},getOrderData:function(){var e=this;Object(l["t"])(this.orderId).then(function(){var t=Object(n["a"])(Object(s["a"])().mark((function t(i){return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.result=i.data;case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.$message.error(t.message)}))},toSendGoods:function(){this.sendGoods=!0},getDelivery:function(){var e=this;Object(l["F"])(this.orderId).then((function(t){e.$message.success(t.message),e.sendGoods=!1})).catch((function(t){e.$message.error(t.message)}))},getChildOrderDetail:function(e){this.getInfo(e)},getInfo:function(e){var t=this;this.loading=!0,this.orderId=e,Object(l["G"])(e).then((function(e){t.drawer=!0,t.orderDetailList=e.data,t.getChildOrder()})).catch((function(e){t.$message.error(e.message)}))},tabClick:function(e){"orderList"===e.name&&this.onOrderLog(this.orderId)},onOrderLog:function(e){var t=this;Object(l["J"])(e,this.tableFromLog).then((function(e){t.tableDataLog.data=e.data.list,t.tableDataLog.total=e.data.count}))},pageChangeLog:function(e){this.tableFromLog.page=e,this.onOrderLog(this.orderId)},handleSizeChangeLog:function(e){this.tableFromLog.limit=e,this.onOrderLog(this.orderId)},operationType:function(e){return 0==e?"系统":1==e?"用户":2==e?"平台":3==e?"商户":4==e?"商家客服":"未知"}}},y=b,w=(i("fd10"),Object(f["a"])(y,d,u,!1,null,"d2da2e0e",null)),C=w.exports,k=i("30dc"),L=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[e.fileVisible?i("el-dialog",{attrs:{title:"批量发货记录",visible:e.fileVisible,width:"900px"},on:{"update:visible":function(t){e.fileVisible=t}}},[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:e.onchangeTime},model:{value:e.timeVal,callback:function(t){e.timeVal=t},expression:"timeVal"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"发货类型:"}},[i("el-select",{staticClass:"filter-item selWidth mr20",attrs:{placeholder:"请选择",clearable:""},on:{change:function(t){e.getList(1)}},model:{value:e.tableFrom.type,callback:function(t){e.$set(e.tableFrom,"type",t)},expression:"tableFrom.type"}},e._l(e.deliveryTypeList,(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"状态:"}},[i("el-select",{staticClass:"filter-item selWidth",attrs:{placeholder:"请选择",clearable:""},on:{change:function(t){e.getList(1)}},model:{value:e.tableFrom.status,callback:function(t){e.$set(e.tableFrom,"status",t)},expression:"tableFrom.status"}},e._l(e.deliveryStatusList,(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1)],1)],1),e._v(" "),i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"table",staticStyle:{width:"100%"},attrs:{data:e.tableData.data,size:"mini","highlight-current-row":""}},[i("el-table-column",{attrs:{label:"序号","min-width":"90"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(t.$index+(e.tableFrom.page-1)*e.tableFrom.limit+1))])]}}],null,!1,2611860760)}),e._v(" "),i("el-table-column",{attrs:{label:"发货类型","min-width":"90"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(e._f("deliveryType")(t.row.type)))])]}}],null,!1,3190513475)}),e._v(" "),i("el-table-column",{attrs:{label:"操作时间",prop:"create_time","min-width":"180"}}),e._v(" "),i("el-table-column",{attrs:{label:"发货单数",prop:"count","min-width":"100"}}),e._v(" "),i("el-table-column",{attrs:{label:"成功发货单数",prop:"success","min-width":"100"}}),e._v(" "),i("el-table-column",{attrs:{label:"状态","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(e._f("deliveryStatusFilter")(t.row.status)))])]}}],null,!1,1539921219)}),e._v(" "),i("el-table-column",{key:"8",attrs:{label:"操作","min-width":"150",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[-1!=t.row.status?i("el-button",{staticClass:"mr10",attrs:{type:"text",size:"small"},on:{click:function(i){return e.detail(t.row.import_id)}}},[e._v("查看")]):e._e(),e._v(" "),-1!=t.row.status?i("el-button",{staticClass:"mr10",attrs:{type:"text",size:"small"},on:{click:function(i){return e.exports(t.row.import_id)}}},[e._v("生成文件")]):e._e(),e._v(" "),-1==t.row.status?i("el-button",{staticClass:"mr10",attrs:{type:"text",size:"small"},on:{click:function(i){return e.detail(t.row.import_id)}}},[e._v("查看原因")]):e._e()]}}],null,!1,842706115)})],1),e._v(" "),i("div",{staticClass:"block"},[i("el-pagination",{attrs:{"page-size":e.tableFrom.limit,"current-page":e.tableFrom.page,layout:"prev, pager, next, jumper",total:e.tableData.total},on:{"size-change":e.handleSizeChange,"current-change":e.pageChange}})],1)],1)]):e._e(),e._v(" "),e.dialogVisible?i("el-dialog",{attrs:{title:"",visible:e.dialogVisible,width:"900px"},on:{"update:visible":function(t){e.dialogVisible=t}}},[i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"table",staticStyle:{width:"100%"},attrs:{data:e.recordData.data,size:"mini","highlight-current-row":""}},[i("el-table-column",{attrs:{label:"序号","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(t.$index+(e.recordFrom.page-1)*e.recordFrom.limit+1))])]}}],null,!1,748015416)}),e._v(" "),i("el-table-column",{attrs:{label:"订单号",prop:"order_sn","min-width":"150"}}),e._v(" "),i("el-table-column",{attrs:{label:"物流公司",prop:"delivery_name","min-width":"80"}}),e._v(" "),i("el-table-column",{attrs:{label:"物流单号",prop:"delivery_id","min-width":"100"}}),e._v(" "),i("el-table-column",{attrs:{label:"发货状态",prop:"status","min-width":"80"}}),e._v(" "),i("el-table-column",{attrs:{label:"异常原因",prop:"mark","min-width":"120"}})],1),e._v(" "),i("div",{staticClass:"block"},[i("el-pagination",{attrs:{"page-sizes":[10,20,30],"page-size":e.recordFrom.limit,"current-page":e.recordFrom.page,layout:"total, sizes, prev, pager, next, jumper",total:e.recordData.total},on:{"size-change":e.handleSizeChange1,"current-change":e.pageChange1}})],1)],1)]):e._e()],1)},D=[],x={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(e){var t=this;this.loading=!0,this.tableFrom.page=e||this.tableFrom.page,Object(l["j"])(this.tableFrom).then((function(e){t.fileVisible=!0,t.tableData.data=e.data.list,t.tableData.total=e.data.count,t.loading=!1})).catch((function(e){t.$message.error(e.message),t.listLoading=!1}))},exports:function(){var e=Object(n["a"])(Object(s["a"])().mark((function e(t){var i,r,a,n,l;return Object(s["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:i=JSON.parse(JSON.stringify(this.tableFrom)),r=[],i.page=1,a=1,n={},l=0;case 5:if(!(le.max_num?e.refund_num=e.max_num:e.refund_num<1&&(e.refund_num=1),this.getRefundPrice()}}},T=z,$=(i("18ef"),Object(f["a"])(T,A,V,!1,null,"05a90368",null)),N=$.exports,I=i("0f56"),R=i("5f87"),j=i("bbcc"),B=i("83d6"),E=i("0b65"),P=i("add5"),q=i.n(P),M={components:{orderDetail:C,cardsData:I["a"],fileList:k["a"],deliveryRecord:S,orderCancellate:g,orderRefund:N},data:function(){return{fileUrl:j["a"].https+"/store/import/delivery",pickerOptions:E["a"],myHeaders:{"X-Token":Object(R["a"])()},orderId:0,tableData:{data:[],total:0},listLoading:!0,roterPre:B["roterPre"],tableFrom:{order_sn:this.$route.query.order_sn?this.$route.query.order_sn:"",group_order_sn:"",order_type:this.$route.query.order_type||"-1",keywords:"",store_name:"",status:this.$route.query.status||"",date:"",page:1,limit:20,type:this.$route.query.order_type||"1",username:"",filter_delivery:"",filter_product:"",pay_type:"",order_id:this.$route.query.id?this.$route.query.id:"",activity_type:""},activityList:[{value:0,label:"普通订单"},{value:1,label:"秒杀订单"},{value:2,label:"预售订单"},{value:3,label:"助力订单"},{value:4,label:"拼团订单"}],dliveryWayList:[{value:1,label:"快递订单"},{value:2,label:"配送订单"},{value:4,label:"核销订单"},{value:3,label:"虚拟发货"},{value:6,label:"自动发货"}],productTypeList:[{value:1,label:"实物商品"},{value:2,label:"虚拟商品"},{value:3,label:"卡密商品"}],orderChartType:{},timeVal:[],fromList:{title:"选择时间",custom:!0,fromTxt:[{text:"全部",val:""},{text:"今天",val:"today"},{text:"昨天",val:"yesterday"},{text:"最近7天",val:"lately7"},{text:"最近30天",val:"lately30"},{text:"本月",val:"month"},{text:"本年",val:"year"}]},ids:"",tableFromLog:{page:1,limit:10},tableDataLog:{data:[],total:0},LogLoading:!1,dialogVisible:!1,fileVisible:!1,editVisible:!1,sendVisible:!1,pictureVisible:!1,drawer:!1,cardLists:[],orderDatalist:null,headeNum:[],editId:"",formValidate:{total_price:"",pay_postage:"",pay_price:"",integral_price:"",coupon_price:""},deliveryList:[],eleTempsLst:[],productList:[],productNum:0,storeList:[],multipleSelection:[],shipment:{delivery_type:2,station_id:"",is_split:"0",split:[]},original:{delivery_name:"",delivery_id:""},isResend:!1,chkName:"",checkedPage:[],checkedIds:[],noChecked:[],allCheck:!1,isBatch:!1,delivery_name:"",isDump:!1,noLogistics:!1,orderType:0,activityType:0,rules:{delivery_type:[{required:!0,message:"请选择发送货方式",trigger:"change"}],station_id:[{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"}],cargo_weight:[{required:!0,message:"请输入包裹重量",trigger:"blur"}],to_phone:[{required:!0,message:"请输入送货人手机号",trigger:"blur"},{pattern:/^1[3456789]\d{9}$/,message:"请输入正确的手机号",trigger:"blur"}],temp_id:[{required:!0,message:"请选择电子面单",trigger:"change"}],from_name:[{required:!0,message:"请输入寄件人姓名",trigger:"blur"}],from_tel:[{required:!0,message:"请输入寄件人电话",trigger:"blur"},{pattern:/^1(3|4|5|6|7|8|9)\d{9}$/,message:"请输入正确的联系方式",trigger:"blur"}],from_addr:[{required:!0,message:"请输入寄件人地址",trigger:"blur"}]}}},mounted:function(){this.$route.query.hasOwnProperty("order_sn")?this.tableFrom.order_sn=this.$route.query.order_sn:this.tableFrom.order_sn="",this.isOpenDump(),this.headerList(),this.getCardList(),this.getExpressLst(),this.getList(1),this.getHeaderList(),this.getStoreList()},methods:{searchReset:function(){this.timeVal=[],this.tableFrom.date="",this.$refs.searchForm.resetFields(),this.getList(1)},limitCount:function(e){e.stock>e.product_num&&(e.stock=e.product_num)},changeDrawer:function(e){this.drawer=e},closeDrawer:function(){this.drawer=!1},handleSelectionChange:function(e){this.multipleSelection=e;var t=[];this.multipleSelection.map((function(e){t.push({id:e.order_product_id,num:e.product_num})})),this.ids=t},isOpenDump:function(){var e=this;Object(c["N"])().then((function(t){e.isDump=t.data.crmeb_serve_dump,1==t.data.crmeb_serve_dump&&e.getEleTempData()})).catch((function(t){e.$message.error(t.message)}))},getExpressLst:function(){var e=this;Object(l["p"])().then((function(t){e.deliveryList=t.data})).catch((function(t){e.$message.error(t.message)}))},getTempsLst:function(e){var t=this;Object(l["o"])({com:e}).then((function(e){t.eleTempsLst=e.data.data}))},getEleTempData:function(){var e=this;Object(l["s"])().then((function(t){var i=t.data,r=e.shipment.delivery_type;e.shipment={from_name:i.mer_from_name,from_addr:i.mer_from_addr,from_tel:i.mer_from_tel,delivery_type:r,delivery_name:i.mer_from_com,temp_id:""},""!=i.mer_from_com&&e.getTempsLst(i.mer_from_com)})).catch((function(t){e.$message.error(t.message)}))},getStoreList:function(){var e=this;Object(l["r"])().then((function(t){e.storeList=t.data})).catch((function(t){e.$message.error(t.message)}))},changeSend:function(e){this.$refs["shipment"].clearValidate(),3==e&&(this.shipment.is_split="0",delete this.shipment.split)},getPicture:function(e){var t=this;this.shipment.temp_id?this.eleTempsLst.forEach((function(e,i){e["temp_id"]==t.shipment.temp_id&&(t.pictureVisible=!0,t.pictureUrl=e["pic"])})):this.$message.error("选择电子面单后才可以预览")},batchSend:function(){if(!this.allCheck&&0==this.checkedIds.length)return this.$message.warning("请先选择订单");this.isBatch=!0,this.sendVisible=!0,this.shipment.delivery_type=2,this.shipment.select_type=this.allCheck?"all":"select",this.allCheck?this.shipment.where=this.tableFrom:this.shipment.order_id=this.checkedIds},handleClose:function(){this.sendVisible=!1,this.$refs["shipment"].resetFields()},onHandle:function(e){this.chkName=this.chkName===e?"":e,this.changeType(!(""===this.chkName))},changeType:function(e){e?this.chkName||(this.chkName="dan"):(this.chkName="",this.allCheck=!1);var t=this.checkedPage.indexOf(this.tableFrom.page);"dan"===this.chkName?this.checkedPage.push(this.tableFrom.page):t>-1&&this.checkedPage.splice(t,1),this.syncCheckedId()},syncCheckedId:function(){var e=this,t=this.tableData.data.map((function(e){return e.order_id}));"duo"===this.chkName?(this.checkedIds=[],this.allCheck=!0):"dan"===this.chkName?(this.allCheck=!1,t.forEach((function(t){var i=e.checkedIds.indexOf(t);-1===i&&e.checkedIds.push(t)}))):t.forEach((function(t){var i=e.checkedIds.indexOf(t);i>-1&&e.checkedIds.splice(i,1)}))},changeOne:function(e,t){if(e)if("duo"===this.chkName){var i=this.noChecked.indexOf(t.order_id);i>-1&&this.noChecked.splice(i,1)}else{var r=this.checkedIds.indexOf(t.order_id);-1===r&&this.checkedIds.push(t.order_id)}else if("duo"===this.chkName){var a=this.noChecked.indexOf(t.order_id);-1===a&&this.noChecked.push(t.order_id)}else{var s=this.checkedIds.indexOf(t.order_id);s>-1&&this.checkedIds.splice(s,1)}},getHeaderList:function(){var e=this;Object(l["H"])().then((function(t){e.headeNum=t.data})).catch((function(t){e.$message.error(t.message)}))},orderFilter:function(e){var t=!1;return e.orderProduct.forEach((function(e){e.refund_num0&&1==e.row.paid))return" ";for(var t=0;t=0&&e.row.orderProduct[t].refund_num