admin-api/public/mer/js/chunk-73bb4ba0.53af5370.js

1 line
41 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-73bb4ba0"],{"634a":function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"divBox"},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("div",{staticClass:"container"},[a("el-form",{attrs:{size:"small","label-width":"100px",inline:""}},[a("el-form-item",{staticStyle:{display:"block"},attrs:{label:"订单状态:"}},[a("el-radio-group",{attrs:{type:"button"},on:{change:function(t){e.getList(1),e.getCardList()}},model:{value:e.tableFrom.status,callback:function(t){e.$set(e.tableFrom,"status",t)},expression:"tableFrom.status"}},[a("el-radio-button",{attrs:{label:""}},[e._v("全部 "+e._s(e.orderChartType.all))]),e._v(" "),a("el-radio-button",{attrs:{label:"1"}},[e._v("待付款 "+e._s(e.orderChartType.unpaid))]),e._v(" "),a("el-radio-button",{attrs:{label:"2"}},[e._v("待发货 "+e._s(e.orderChartType.unshipped))]),e._v(" "),a("el-radio-button",{attrs:{label:"3"}},[e._v("待收货 "+e._s(e.orderChartType.untake))]),e._v(" "),a("el-radio-button",{attrs:{label:"4"}},[e._v("待评价 "+e._s(e.orderChartType.unevaluate))]),e._v(" "),a("el-radio-button",{attrs:{label:"5"}},[e._v("交易完成 "+e._s(e.orderChartType.complete))]),e._v(" "),a("el-radio-button",{attrs:{label:"6"}},[e._v("已退款 "+e._s(e.orderChartType.refund))]),e._v(" "),a("el-radio-button",{attrs:{label:"7"}},[e._v("已删除 "+e._s(e.orderChartType.del))])],1)],1),e._v(" "),a("el-form-item",{staticClass:"width100",staticStyle:{display:"block"},attrs:{label:"时间选择:"}},[a("el-radio-group",{staticClass:"mr20",attrs:{type:"button",size:"small"},on:{change:function(t){return e.selectChange(e.tableFrom.date)}},model:{value:e.tableFrom.date,callback:function(t){e.$set(e.tableFrom,"date",t)},expression:"tableFrom.date"}},e._l(e.fromList.fromTxt,(function(t,r){return a("el-radio-button",{key:r,attrs:{label:t.val}},[e._v(e._s(t.text))])})),1),e._v(" "),a("el-date-picker",{staticStyle:{width:"250px"},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(" "),a("div",[a("el-form-item",{staticClass:"width100",attrs:{label:"商品名称:"}},[a("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入商品名称",size:"small"},nativeOn:{keyup:function(t){if(!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter"))return null;e.getList(1),e.getCardList()}},model:{value:e.tableFrom.store_name,callback:function(t){e.$set(e.tableFrom,"store_name",t)},expression:"tableFrom.store_name"}},[a("el-button",{staticClass:"el-button-solt",attrs:{slot:"append",icon:"el-icon-search",size:"small"},on:{click:function(t){e.getList(1),e.getCardList()}},slot:"append"})],1)],1),e._v(" "),a("el-form-item",{staticClass:"width100",attrs:{label:"总单单号:"}},[a("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入总单订单号",size:"small"},nativeOn:{keyup:function(t){if(!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter"))return null;e.getList(1),e.getCardList()}},model:{value:e.tableFrom.group_order_sn,callback:function(t){e.$set(e.tableFrom,"group_order_sn",t)},expression:"tableFrom.group_order_sn"}},[a("el-button",{staticClass:"el-button-solt",attrs:{slot:"append",icon:"el-icon-search",size:"small"},on:{click:function(t){e.getList(1),e.getCardList()}},slot:"append"})],1)],1),e._v(" "),a("el-form-item",{staticClass:"width100",attrs:{label:"发货方式:"}},[a("el-select",{staticClass:"filter-item selWidth",attrs:{placeholder:"请选择",clearable:""},on:{change:function(t){e.getList(1),e.getCardList()}},model:{value:e.tableFrom.filter_delivery,callback:function(t){e.$set(e.tableFrom,"filter_delivery",t)},expression:"tableFrom.filter_delivery"}},e._l(e.dliveryWayList,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),a("el-form-item",{staticClass:"width100",attrs:{label:"商品类型:"}},[a("el-select",{staticClass:"filter-item selWidth",attrs:{placeholder:"请选择",clearable:""},on:{change:function(t){e.getList(1),e.getCardList()}},model:{value:e.tableFrom.filter_product,callback:function(t){e.$set(e.tableFrom,"filter_product",t)},expression:"tableFrom.filter_product"}},e._l(e.productTypeList,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),a("el-form-item",{staticClass:"width100",attrs:{label:"活动类型:"}},[a("el-select",{staticClass:"filter-item selWidth",attrs:{placeholder:"请选择",clearable:""},on:{change:function(t){e.getList(1),e.getCardList()}},model:{value:e.tableFrom.activity_type,callback:function(t){e.$set(e.tableFrom,"activity_type",t)},expression:"tableFrom.activity_type"}},e._l(e.activityList,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),a("el-form-item",{staticStyle:{display:"inline-block"},attrs:{label:"支付方式:"}},[a("el-select",{staticClass:"selWidth",attrs:{clearable:"",placeholder:"请选择"},on:{change:function(t){e.getList(1),e.getCardList()}},model:{value:e.tableFrom.pay_type,callback:function(t){e.$set(e.tableFrom,"pay_type",t)},expression:"tableFrom.pay_type"}},[a("el-option",{attrs:{label:"余额",value:"0"}}),e._v(" "),a("el-option",{attrs:{label:"微信",value:"1"}}),e._v(" "),a("el-option",{attrs:{label:"支付宝",value:"2"}})],1)],1)],1),e._v(" "),a("el-form-item",{staticClass:"width100",staticStyle:{display:"block"},attrs:{label:"关键字:"}},[a("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入订单号/收货人/联系方式",size:"small"},nativeOn:{keyup:function(t){if(!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter"))return null;e.getList(1),e.getCardList()}},model:{value:e.tableFrom.keywords,callback:function(t){e.$set(e.tableFrom,"keywords",t)},expression:"tableFrom.keywords"}},[a("el-button",{staticClass:"el-button-solt",attrs:{slot:"append",icon:"el-icon-search",size:"small"},on:{click:function(t){e.getList(1),e.getCardList()}},slot:"append"})],1),e._v(" "),a("el-dropdown",{staticClass:"dropdown",on:{command:e.exports}},[a("span",{staticClass:"el-dropdown-link"},[e._v("\n 列表导出"),a("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),e._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{attrs:{command:"1"}},[e._v("导出订单")]),e._v(" "),a("el-dropdown-item",{attrs:{command:"2"}},[e._v("导出发货单")])],1)],1)],1),e._v(" "),a("el-form-item",{staticClass:"width100",attrs:{label:"用户信息:"}},[a("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入用户昵称/手机号",size:"small"},nativeOn:{keyup:function(t){if(!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter"))return null;e.getList(1),e.getCardList()}},model:{value:e.tableFrom.username,callback:function(t){e.$set(e.tableFrom,"username",t)},expression:"tableFrom.username"}},[a("el-button",{staticClass:"el-button-solt",attrs:{slot:"append",icon:"el-icon-search",size:"small"},on:{click:function(t){e.getList(1),e.getCardList()}},slot:"append"})],1),e._v(" "),a("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(t){return e.orderCancellation("")}}},[e._v("订单核销")]),e._v(" "),a("el-upload",{staticClass:"upload-demo",staticStyle:{display:"inline-block"},attrs:{headers:e.myHeaders,action:e.fileUrl,"on-success":e.handleSuccess,"show-file-list":!1}},[a("el-button",{attrs:{size:"small",type:"primary"}},[e._v("导入批量发货")])],1),e._v(" "),a("el-button",{on:{click:e.getDeliveryList}},[e._v("批量发货记录")]),e._v(" "),a("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.batchSend}},[e._v("批量发送货")])],1)],1)],1),e._v(" "),e.headeNum.length>0?a("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 a("el-tab-pane",{key:t,attrs:{name:e.order_type.toString(),label:e.title+"("+e.count+")"}})})),1):e._e(),e._v(" "),a("cards-data",{attrs:{"card-lists":e.cardLists}})],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],staticClass:"table",staticStyle:{width:"100%"},attrs:{data:e.tableData.data,size:"mini","highlight-current-row":"","cell-class-name":e.addTdClass}},[a("el-table-column",{attrs:{type:"expand"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form",{staticClass:"demo-table-expand",attrs:{"label-position":"left",inline:""}},[a("el-form-item",{attrs:{label:"商品总价:"}},[a("span",[e._v(e._s(e._f("filterEmpty")(t.row.total_price)))])]),e._v(" "),a("el-form-item",{attrs:{label:"下单时间:"}},[a("span",[e._v(e._s(t.row.create_time))])]),e._v(" "),a("el-form-item",{attrs:{label:"用户备注:"}},[a("span",{staticStyle:{display:"inline-block",width:"200px"}},[e._v(e._s(e._f("filterEmpty")(t.row.mark)))])]),e._v(" "),a("el-form-item",{attrs:{label:"商家备注:"}},[a("span",[e._v(e._s(e._f("filterEmpty")(t.row.remark)))])])],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{width:"50"},scopedSlots:e._u([{key:"header",fn:function(t){return[a("el-popover",{staticClass:"tabPop",attrs:{placement:"top-start",width:"100",trigger:"hover"}},[a("div",[a("span",{staticClass:"spBlock onHand",class:{check:"dan"===e.chkName},on:{click:function(a){return e.onHandle("dan",t.$index)}}},[e._v("选中本页")]),e._v(" "),a("span",{staticClass:"spBlock onHand",class:{check:"duo"===e.chkName},on:{click:function(t){return e.onHandle("duo")}}},[e._v("选中全部")])]),e._v(" "),a("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[a("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(a){return e.changeOne(a,t.row)}}})]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"订单编号","min-width":"170"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{staticStyle:{display:"block"},domProps:{textContent:e._s(t.row.order_sn)}}),e._v(" "),a("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(" "),a("el-table-column",{attrs:{prop:"real_name",label:"收货人/订购人","min-width":"130"}}),e._v(" "),a("el-table-column",{attrs:{label:"商品信息","min-width":"330"},scopedSlots:e._u([{key:"default",fn:function(t){return e._l(t.row.orderProduct,(function(r,i){return a("div",{key:i,staticClass:"tabBox acea-row row-middle"},[a("div",{staticClass:"demo-image__preview"},[a("el-image",{attrs:{src:r.cart_info.product.image,"preview-src-list":[r.cart_info.product.image]}})],1),e._v(" "),a("span",{staticClass:"tabBox_tit"},[e._v(e._s(r.cart_info.product.store_name+" | ")+e._s(r.cart_info.productAttr.sku))]),e._v(" "),a("span",{staticClass:"tabBox_pice"},[2===t.row.activity_type&&r.cart_info.productPresellAttr?a("span",[e._v(e._s("¥"+r.cart_info.productPresellAttr.presell_price+" x "+r.product_num))]):3===t.row.activity_type&&r.cart_info.productAssistAttr?a("span",[e._v(e._s("¥"+r.cart_info.productAssistAttr.assist_price+" x "+r.product_num))]):a("span",[e._v(e._s("¥"+r.cart_info.productAttr.price+" x "+r.product_num))]),e._v(" "),r.refund_num<r.product_num&&r.refund_num>=0?a("em",{staticStyle:{color:"red","font-style":"normal"}},[e._v("(-"+e._s(r.product_num-r.refund_num)+")")]):e._e()])])}))}}])}),e._v(" "),a("el-table-column",{attrs:{label:"实际支付","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pay_price))]),e._v(" "),t.row.finalOrder?a("p",[e._v("尾款:"+e._s(t.row.finalOrder.pay_price))]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"支付类型","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[1===t.row.paid?a("span",[e._v(e._s(e._f("orderPayType")(t.row.pay_type)))]):a("span",[e._v("--")])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"支付状态","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(0===t.row.paid?"未支付":"已支付"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"订单状态","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[0===t.row.is_del?a("span",[0===t.row.paid?a("span",[e._v("待付款")]):a("span",[0===t.row.order_type||2===t.row.order_type?a("span",[e._v(e._s(e._f("orderStatusFilter")(t.row.status)))]):a("span",[e._v(e._s(e._f("takeOrderStatusFilter")(t.row.status)))])])]):a("span",[e._v("已删除")])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"create_time",label:"下单时间","min-width":"130"}}),e._v(" "),a("el-table-column",{key:"8",attrs:{label:"操作","min-width":"150",fixed:"right",align:"left"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return e.onOrderDetails(t.row.order_id)}}},[e._v("详情")]),e._v(" "),e.orderFilter(t.row)?a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){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?a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){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():a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return e.send(t.row,t.row.order_id)}}},[e._v("发送货")]),e._v(" "),0!==t.row.is_del?a("el-button",{attrs:{type:"text",size:"small"},nativeOn:{click:function(a){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?a("el-button",{attrs:{type:"text",size:"small"},nativeOn:{click:function(a){return e.orderCancellation(t.row.verify_code)}}},[e._v("去核销")]):e._e()]}}])})],1),e._v(" "),a("div",{staticClass:"block"},[a("el-pagination",{attrs:{"page-sizes":[20,40,60,80],"page-size":e.tableFrom.limit,"current-page":e.tableFrom.page,layout:"total, sizes, prev, pager, next, jumper",total:e.tableData.total},on:{"size-change":e.handleSizeChange,"current-change":e.pageChange}})],1)],1),e._v(" "),a("el-dialog",{attrs:{title:"操作记录",visible:e.dialogVisible,width:"700px"},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.LogLoading,expression:"LogLoading"}],staticStyle:{width:"100%"},attrs:{border:"",data:e.tableDataLog.data}},[a("el-table-column",{attrs:{prop:"order_id",align:"center",label:"订单ID","min-width":"80"}}),e._v(" "),a("el-table-column",{attrs:{prop:"change_message",label:"操作记录",align:"center","min-width":"280"}}),e._v(" "),a("el-table-column",{attrs:{prop:"change_time",label:"操作时间",align:"center","min-width":"280"}})],1),e._v(" "),a("div",{staticClass:"block"},[a("el-pagination",{attrs:{"page-sizes":[20,40,60,80],"page-size":e.tableFromLog.limit,"current-page":e.tableFromLog.page,layout:"total, sizes, prev, pager, next, jumper",total:e.tableDataLog.total},on:{"size-change":e.handleSizeChangeLog,"current-change":e.pageChangeLog}})],1)],1),e._v(" "),a("el-dialog",{attrs:{title:"修改订单",visible:e.editVisible,width:"700px"},on:{"update:visible":function(t){e.editVisible=t}}},[a("el-form",{ref:"formValidate",attrs:{model:e.formValidate,"label-width":"120px"},nativeOn:{submit:function(e){e.preventDefault()}}},[a("el-form-item",{attrs:{label:"订单总价:"}},[a("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(" "),a("el-form-item",{attrs:{label:"实际支付邮费:"}},[a("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(" "),a("el-form-item",{attrs:{label:"优惠金额"}},[a("span",[e._v(e._s(e.formValidate.coupon_price))])]),e._v(" "),a("el-form-item",{attrs:{label:"实际支付金额:"}},[a("span",[e._v(e._s(e.formValidate.pay_price))])])],1),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:e.editConfirm}},[e._v("确定")])],1)],1),e._v(" "),a("el-dialog",{attrs:{title:e.isBatch?"批量发货":"订单发送货",visible:e.sendVisible,width:"800px","before-close":e.handleClose},on:{"update:visible":function(t){e.sendVisible=t}}},[a("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?a("el-form-item",{attrs:{label:1==e.shipment.delivery_type||4==e.shipment.delivery_type?"原快递公司:":"送货人姓名:"}},[a("span",[e._v(e._s(e.original.delivery_name))])]):e._e(),e._v(" "),e.isResend&&3!=e.noLogistics&&2!=e.tableFrom.order_type?a("el-form-item",{attrs:{label:1==e.shipment.delivery_type||4==e.shipment.delivery_type?"原快递单号:":"送货人手机号:"}},[a("span",[e._v(e._s(e.original.delivery_id))])]):e._e(),e._v(" "),a("el-form-item",{attrs:{label:"选择类型:",prop:"delivery_type"}},[a("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"}},[e.isBatch||2==e.tableFrom.order_type||1==e.orderType?e._e():a("el-radio",{attrs:{label:1}},[e._v("手动发货")]),e._v(" "),a("el-radio",{staticClass:"radio",attrs:{label:3}},[e._v(" "+e._s(1==e.orderType?"虚拟发货":"无需物流"))]),e._v(" "),1!=e.isDump||2==e.tableFrom.order_type||1==e.orderType||e.isBatch?e._e():a("el-radio",{staticClass:"radio",attrs:{label:4}},[e._v("电子面单打印")]),e._v(" "),2!=e.tableFrom.order_type&&1!=e.orderType?a("el-radio",{attrs:{label:2}},[e._v("自己配送")]):e._e(),e._v(" "),2==e.tableFrom.order_type||1==e.orderType||e.isBatch?e._e():a("el-radio",{attrs:{label:5}},[e._v("同城配送")])],1)],1),e._v(" "),5==e.shipment.delivery_type&&2!=e.tableFrom.order_type&&1!=e.orderType?a("el-form-item",{attrs:{label:"选择发货点:",prop:"station_id"}},[a("el-select",{staticClass:"filter-item selWidth mr20",attrs:{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 a("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():a("el-form-item",{attrs:{label:"快递公司:",prop:"delivery_name"}},[a("el-select",{staticClass:"filter-item selWidth mr20",attrs:{filterable:"",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 a("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?a("el-form-item",{attrs:{label:"包裹重量(kg)",prop:"cargo_weight"}},[a("el-input-number",{attrs:{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?a("el-form-item",{attrs:{label:"配送备注:"}},[a("el-input",{attrs:{type:"textarea",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?a("el-form-item",{attrs:{label:"快递单号:",prop:"delivery_id"}},[a("el-input",{attrs:{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?a("el-form-item",{attrs:{label:"电子面单:",prop:"temp_id"}},[a("el-select",{staticClass:"filter-item selWidth mr20",attrs:{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 a("el-option",{key:e.temp_id+t,attrs:{label:e.title,value:e.temp_id}})})),1),e._v(" "),a("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?a("el-form-item",{attrs:{label:"寄件人姓名:",prop:"from_name"}},[a("el-input",{attrs:{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?a("el-form-item",{attrs:{label:"寄件人电话:",prop:"from_tel"}},[a("el-input",{attrs:{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?a("el-form-item",{attrs:{label:"送货人姓名:",prop:"to_name"}},[a("el-input",{attrs:{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?a("el-form-item",{attrs:{label:"送货人手机号:",prop:"to_phone"}},[a("el-input",{attrs:{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?a("el-form-item",{attrs:{label:"寄件人地址:",prop:"from_addr"}},[a("el-input",{attrs:{type:"textarea",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)?a("el-form-item",{attrs:{label:"分单发货:"}},[a("el-switch",{attrs:{"active-value":1,"inactive-value":0,"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(" "),a("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)?a("el-form-item",{attrs:{label:""}},[a("el-table",{ref:"multipleSelection",attrs:{data:e.productList,"tooltip-effect":"dark",size:"mini","row-key":function(e){return e.product_id}},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{align:"center",type:"selection","reserve-selection":!0,"min-width":"50"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"商品信息","min-width":"200"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"acea-row",staticStyle:{"align-items":"center"}},[a("div",{staticClass:"demo-image__preview"},[a("el-image",{attrs:{src:t.row.cart_info.product.image,"preview-src-list":[t.row.cart_info.product.image]}})],1),e._v(" "),a("span",{staticClass:"priceBox",staticStyle:{width:"150px"}},[e._v(e._s(t.row.cart_info.product.store_name))])])]}}],null,!1,1334329387)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"规格","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{staticClass:"priceBox"},[e._v(e._s(t.row.cart_info.productAttr.sku))])]}}],null,!1,2489556760)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"商品售价","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{staticClass:"priceBox"},[e._v(e._s(t.row.cart_info.productAttr.price))])]}}],null,!1,3535341656)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"总数","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{staticClass:"priceBox"},[e._v(e._s(t.row.stock_num))])]}}],null,!1,13674865)}),e._v(" "),a("el-table-column",{attrs:{label:"待发数量",align:"center","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{staticClass:"priceBox",attrs:{type:"number",min:0,max:t.row.refund_num},on:{blur:function(a){return e.limitCount(t.row)}},model:{value:t.row["product_num_input"],callback:function(a){e.$set(t.row,"product_num_input",a)},expression:"scope.row['product_num_input']"}})]}}],null,!1,4294881726)})],1)],1):e._e(),e._v(" "),a("el-form-item",{attrs:{label:"备注:",prop:"remark"}},[a("el-input",{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(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.handleClose}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submitForm("shipment")}}},[e._v("提交")])],1)],1),e._v(" "),e.pictureVisible?a("el-dialog",{attrs:{visible:e.pictureVisible,width:"500px"},on:{"update:visible":function(t){e.pictureVisible=t}}},[a("img",{staticClass:"pictures",attrs:{src:e.pictureUrl}})]):e._e(),e._v(" "),a("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(" "),a("file-list",{ref:"exportList"}),e._v(" "),a("delivery-record",{ref:"deliveryList"}),e._v(" "),a("order-cancellate",{ref:"orderCancellate",on:{getList:e.getList}}),e._v(" "),a("order-refund",{ref:"orderRefund",on:{refundSuccess:e.refundSuccess}})],1)},i=[],s=(a("7f7f"),a("c5f6"),a("c7eb")),l=(a("6b54"),a("96cf"),a("1da1")),n=(a("ac6a"),a("28a5"),a("f8b7")),o=a("2e83"),c=a("90e7"),d=a("068f"),p=a("30dc"),u=a("64ed"),m=a("7e4d"),h=a("f51c"),_=a("0f56"),f=a("5f87"),v=a("bbcc"),b=a("83d6"),g=a("add5"),y=a.n(g),k={components:{orderDetail:d["a"],cardsData:_["a"],fileList:p["a"],deliveryRecord:u["a"],orderCancellate:m["a"],orderRefund:h["a"]},data:function(){return{fileUrl:v["a"].https+"/store/import/delivery",myHeaders:{"X-Token":Object(f["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:"-1",keywords:"",store_name:"",status:"",date:"",page:1,limit:20,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:"",coupon_price:""},deliveryList:[],eleTempsLst:[],productList:[],productNum:0,storeList:[],multipleSelection:[],shipment:{delivery_type:1,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:{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["L"])().then((function(t){e.isDump=t.data.crmeb_serve_dump,1==t.data.crmeb_serve_dump&&e.getEleTempData()})).catch((function(e){console.log(e)}))},getExpressLst:function(){var e=this;Object(n["p"])().then((function(t){e.deliveryList=t.data})).catch((function(t){e.$message.error(t.message)}))},getTempsLst:function(e){var t=this;Object(n["o"])({com:e}).then((function(e){t.eleTempsLst=e.data.data}))},getEleTempData:function(){var e=this;Object(n["s"])().then((function(t){var a=t.data,r=e.shipment.delivery_type;e.shipment={from_name:a.mer_from_name,from_addr:a.mer_from_addr,from_tel:a.mer_from_tel,delivery_type:r,delivery_name:a.mer_from_com,temp_id:""},""!=a.mer_from_com&&e.getTempsLst(a.mer_from_com)})).catch((function(t){e.$message.error(t.message)}))},getStoreList:function(){var e=this;Object(n["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,a){e["temp_id"]==t.shipment.temp_id&&(t.pictureVisible=!0,t.pictureUrl=e["pic"])})):this.$message.error("选择电子面单后才可以预览")},batchSend:function(){if(0==this.checkedIds.length)return this.$message.warning("请先选择订单");this.isBatch=!0,this.sendVisible=!0,this.shipment.delivery_type=2,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 a=e.checkedIds.indexOf(t);-1===a&&e.checkedIds.push(t)}))):t.forEach((function(t){var a=e.checkedIds.indexOf(t);a>-1&&e.checkedIds.splice(a,1)}))},changeOne:function(e,t){if(e)if("duo"===this.chkName){var a=this.noChecked.indexOf(t.order_id);a>-1&&this.noChecked.splice(a,1)}else{var r=this.checkedIds.indexOf(t.order_id);-1===r&&this.checkedIds.push(t.order_id)}else if("duo"===this.chkName){var i=this.noChecked.indexOf(t.order_id);-1===i&&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(n["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_num<e.product_num&&(t=!0)})),t},onRefundDetail:function(e){this.$router.push({path:"refund",query:{sn:e}})},onOrderRefund:function(e){this.$refs.orderRefund.getOrderDetails(e)},refundSuccess:function(){var e=this;setTimeout((function(){e.drawer=!1,e.getList()}),500)},addTdClass:function(e){if(!(e.row.status>0&&1==e.row.paid))return" ";for(var t=0;t<e.row.orderProduct.length;t++)if(e.row.orderProduct[t].refund_num>=0&&e.row.orderProduct[t].refund_num<e.row.orderProduct[t].product_num)return"row-bg"},onOrderDetails:function(e){this.orderId=e,this.$refs.orderDetail.getInfo(e),this.drawer=!0},exports:function(){var e=Object(l["a"])(Object(s["a"])().mark((function e(t){var a,r,i,l,n;return Object(s["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:a=JSON.parse(JSON.stringify(this.tableFrom)),r=[],a.page=1,a.ids=this.checkedIds.toString(),i=1,l={},n=0;case 6:if(!(n<i)){e.next=22;break}if(1!=t){e.next=13;break}return e.next=10,this.downOrderData(a);case 10:e.t0=e.sent,e.next=16;break;case 13:return e.next=15,this.downInvoiceData(a);case 15:e.t0=e.sent;case 16:l=e.t0,i=Math.ceil(l.count/a.limit),l.export.length&&(r=r.concat(l.export),a.page++);case 19:n++,e.next=6;break;case 22:return Object(o["a"])(l.header,l.title,r,l.foot,l.filename),e.abrupt("return");case 24:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),downOrderData:function(e){return new Promise((function(t,a){Object(n["n"])(e).then((function(e){return t(e.data)}))}))},downInvoiceData:function(e){return new Promise((function(t,a){Object(n["m"])(e).then((function(e){return t(e.data)}))}))},getDeliveryList:function(){this.$refs.deliveryList.getList()},handleSuccess:function(e){200===e.status?this.$message.success(e.message):this.$message.error(e.message)},downloadLogistics:function(){window.open(v["a"].https+"/excel/download/express?token="+Object(f["a"])())},orderCancellation:function(e){var t=this;t.$refs.orderCancellate.dialogVisible=!0,e?(t.$refs.orderCancellate.productDetails(e),t.$refs.orderCancellate.isColum=!0):(t.$refs.orderCancellate.isColum=!1,t.$refs.orderCancellate.resetData())},handleCancellation:function(e){var t=this;this.$confirm("确定核销此订单?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(n["D"])(e).then((function(e){t.$message.success(e.message),t.getList("")})).catch((function(e){t.$message.error(e.message),t.LogLoading=!1}))})).catch((function(){t.$message({type:"info",message:"已取消核销"})}))},onOrderLog:function(e){var t=this;this.dialogVisible=!0,this.LogLoading=!0,Object(n["J"])(e,this.tableFromLog).then((function(e){t.tableDataLog.data=e.data.list,t.tableDataLog.total=e.data.count,t.LogLoading=!1})).catch((function(e){t.$message.error(e.message),t.LogLoading=!1}))},pageChangeLog:function(e){this.tableFromLog.page=e,this.getList("")},handleSizeChangeLog:function(e){this.tableFromLog.limit=e,this.getList("")},printOrder:function(e){var t=this;Object(n["K"])(e).then((function(e){t.$message.success(e.message)})).catch((function(e){t.$message.error(e.message)}))},handleDelete:function(e,t){var a=this;1===e.is_del?this.$modalSure().then((function(){Object(n["E"])(e.order_id).then((function(e){var r=e.message;a.$message.success(r),a.tableData.data.splice(t,1)})).catch((function(e){var t=e.message;a.$message.error(t)}))})):this.$confirm("您选择的的订单存在用户未删除的订单,无法删除用户未删除的订单!","提示",{confirmButtonText:"确定",type:"error"})},onOrderMark:function(e){var t=this;this.$modalForm(Object(n["L"])(e)).then((function(){return t.getList("")}))},selectChange:function(e){this.timeVal=[],this.tableFrom.date=e,this.getCardList(),this.getList(1)},onchangeTime:function(e){this.timeVal=e,this.tableFrom.date=e?this.timeVal.join("-"):"",this.getCardList(),this.getList(1)},edit:function(e){var t=this;this.editId=e,this.editVisible=!0,Object(n["G"])(e).then((function(e){t.formValidate={pay_postage:e.data.pay_postage,total_price:e.data.total_price,coupon_price:(Number(e.data.coupon_price)+Number(e.data.svip_discount)).toFixed(2),pay_price:(Number(e.data.total_price)+Number(e.data.pay_postage)-Number(e.data.coupon_price)-Number(e.data.svip_discount)).toFixed(2)},t.loading=!1})).catch((function(e){var a=e.message;t.loading=!1,t.$message.error(a)}))},editConfirm:function(){var e=this;Object(n["M"])(this.editId,this.formValidate).then((function(t){e.editVisible=!1,e.$message.success(t.message),e.getList("")})).catch((function(t){var a=t.message;e.$message.error(a)}))},changePrice:function(){this.formValidate.pay_price=(this.formValidate.total_price+this.formValidate.pay_postage-this.formValidate.coupon_price).toFixed(2)},send:function(e,t){this.isBatch=!1,this.sendVisible=!0,this.isResend=!1,this.orderId=t,this.activityType=e.activity_type,this.orderType=e.is_virtual,this.shipment.delivery_type=1===this.orderType?3:1,e.orderProduct.forEach((function(e){e.stock_num=e.product_num})),this.productList=e.orderProduct,this.productNum=e.orderProduct&&e.orderProduct[0]&&e.orderProduct[0]["product_num"]||0,delete this.shipment.order_id,2==this.tableFrom.order_type&&(this.shipment.delivery_type=3)},sendReset:function(){this.shipment={delivery_type:1,delivery_name:"",delivery_id:"",from_name:"",from_addr:"",from_tel:"",temp_id:""}},reSend:function(e){var t=this;this.isBatch=!1,this.sendVisible=!0,this.orderId=e,this.isResend=!0,delete this.shipment.order_id,Object(n["G"])(e).then((function(e){var a=e.data;t.shipment.delivery_type=t.isDump||4!=a.delivery_type?Number(a.delivery_type):1,t.noLogistics=a.delivery_type,t.loading=!1,t.original={delivery_name:a.delivery_name,delivery_id:a.delivery_id},t.loading=!1})).catch((function(e){var a=e.message;t.loading=!1,t.$message.error(a)}))},submitForm:function(e){var t=this;if(2==this.shipment.delivery_type&&(this.shipment.delivery_name=this.shipment.to_name,this.shipment.delivery_id=this.shipment.to_phone),"0"!=this.shipment.is_split&&this.shipment.is_split&&2!=this.orderType){if(!this.multipleSelection.length)return this.$message.warning("请选择拆单商品!");var a=[];this.multipleSelection.map((function(e){a.push({id:e.order_product_id,num:e.product_num_input})})),this.ids=a,this.shipment.split=this.ids}this.$refs[e].validate((function(e){e&&(delete t.shipment.to_name,delete t.shipment.to_phone,console.log(t.shipment),t.isBatch?Object(n["a"])(t.shipment).then((function(e){t.sendVisible=!1,t.$message.success(e.message),t.getList(""),t.sendReset()})).catch((function(e){var a=e.message;t.$message.error(a)})):Object(n["F"])(t.orderId,t.shipment).then((function(e){t.sendVisible=!1,t.$message.success(e.message),t.getList(""),t.sendReset(),e.data.label&&t.printImg(e.data.label)})).catch((function(e){var a=e.message;t.$message.error(a)})))}))},printImg:function(e){y()({printable:e,type:"image",documentTitle:"快递信息",style:"img{\n width: 100%;\n height: 476px;\n }"})},getList:function(e){var t=this;this.listLoading=!0,this.tableFrom.page=e||this.tableFrom.page,Object(n["I"])(this.tableFrom).then((function(e){e.data.list.forEach((function(e){e.orderProduct.forEach((function(e){e.product_num_input=e.refund_num}))})),t.tableData.data=e.data.list,t.tableData.total=e.data.count,t.listLoading=!1})).catch((function(e){t.$message.error(e.message),t.listLoading=!1}))},getCardList:function(){var e=this;Object(n["b"])(this.tableFrom).then((function(t){e.cardLists=t.data})).catch((function(t){e.$message.error(t.message)}))},pageChange:function(e){this.tableFrom.page=e,this.getList("")},handleSizeChange:function(e){this.tableFrom.limit=e,this.getList("")},headerList:function(){var e=this;Object(n["c"])().then((function(t){e.orderChartType=t.data})).catch((function(t){e.$message.error(t.message)}))}}},w=k,L=(a("bd07"),a("2877")),C=Object(L["a"])(w,r,i,!1,null,"5f6c6540",null);t["default"]=C.exports},bd07:function(e,t,a){"use strict";a("ea75")},ea75:function(e,t,a){}}]);