(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-713d6480","chunk-dd0a6aba","chunk-2d0bd5d4"],{"04bc":function(t,e,r){},"08b6":function(t,e,r){"use strict";var a=r("a682");r.n(a).a},"0fc4":function(t,e,r){"use strict";r.d(e,"a",(function(){return i})),r.d(e,"c",(function(){return s})),r.d(e,"b",(function(){return n}));var a=r("b6bd");function i(){return Object(a.a)({url:"erp/config",method:"get"})}function s(t){return Object(a.a)({url:"store/erp/shop",method:"get",params:t})}function n(t){return Object(a.a)({url:"product/import_erp_product",method:"post",data:t})}},"14e3":function(t,e,r){},1581:function(t,e,r){},16026:function(t,e,r){},"229d":function(t,e,r){},"2c4a":function(t,e,r){"use strict";r.r(e);var a=r("a34a"),i=r.n(a),s=r("f8b7"),n=r("2f62"),o=r("2e83");function l(t,e,r,a,i,s,n){try{var o=t[s](n),l=o.value}catch(t){return void r(t)}o.done?e(l):Promise.resolve(l).then(a,i)}function c(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,a)}return r}function d(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var u={data:function(){return{modal:!1,columns1:[{title:"ID",key:"id"},{title:"操作时间",key:"add_time"},{title:"发货单数",key:"total_num"},{title:"成功发货单数",key:"success_num"},{title:"发货类型",key:"title"},{title:"状态",key:"status_cn"},{title:"操作",slot:"action",width:150,align:"center"}],data1:[],page1:{total:0,pageNum:1,pageSize:10},formValidate:{type:"",status:"",data:""},options:{shortcuts:[{text:"今天",value:function(){var t=new Date,e=new Date;return e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate())),[e,t]}},{text:"昨天",value:function(){var t=new Date,e=new Date;return e.setTime(e.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,t]}},{text:"最近7天",value:function(){var t=new Date,e=new Date;return e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-6))),[e,t]}},{text:"最近30天",value:function(){var t=new Date,e=new Date;return e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-29))),[e,t]}},{text:"上月",value:function(){var t=new Date,e=new Date,r=new Date(e.getFullYear(),e.getMonth(),0).getDate();return e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth()-1,1))),t.setTime(t.setTime(new Date((new Date).getFullYear(),(new Date).getMonth()-1,r))),[e,t]}},{text:"本月",value:function(){var t=new Date,e=new Date;return e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),1))),[e,t]}},{text:"本年",value:function(){var t=new Date,e=new Date;return e.setTime(e.setTime(new Date((new Date).getFullYear(),0,1))),[e,t]}}]},timeVal:[],typeList:[{label:"批量删除订单",value:"6"},{label:"批量手动发货",value:"7"},{label:"批量打印电子面单",value:"8"},{label:"批量配送",value:"9"},{label:"批量虚拟发货",value:"10"}],statusList:[{label:"未处理",value:"0"},{label:"处理中",value:"1"},{label:"已完成",value:"2"},{label:"处理失败",value:"3"}],columns2:[{title:"订单ID",key:"order_id"},{title:"物流公司",key:"delivery_name"},{title:"物流单号",key:"delivery_id"},{title:"处理状态",key:"status_cn"},{title:"异常原因",key:"error"}],columns3:[{title:"订单ID",key:"order_id"},{title:"备注",key:"fictitious_content"},{title:"处理状态",key:"status_cn"},{title:"异常原因",key:"error"}],columns5:[{title:"订单ID",key:"order_id"},{title:"配送员",key:"delivery_name"},{title:"配送员电话",key:"delivery_id"},{title:"处理状态",key:"status_cn"},{title:"异常原因",key:"error"}],columns4:[],data2:[],page2:{total:0,pageNum:1,pageSize:12},modal1:!1,deliveryLog:null,deliveryLogId:0,deliveryLogType:"",loading:!1,loading2:!1}},computed:function(t){for(var e=1;e确认停止该任务?

",onOk:function(){r.stopQueue(t.id)}});break;case"4":this.queueDel(t.id,t.type)}},exports:function(){var t,e=(t=i.a.mark((function t(e,r,a){var s,n,l,c,d;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return s=[],n=[],l=[],c="",t.next=3,this.getExcelData(e,r,a);case 3:d=t.sent,c||(c=d.filename),n.length||(n=d.filekey),s.length||(s=d.header),l=d.export,Object(o.a)(s,n,c,l);case 9:case"end":return t.stop()}}),t,this)})),function(){var e=this,r=arguments;return new Promise((function(a,i){var s=t.apply(e,r);function n(t){l(s,a,i,n,o,"next",t)}function o(t){l(s,a,i,n,o,"throw",t)}n(void 0)}))});return function(t,r,a){return e.apply(this,arguments)}}(),getExcelData:function(t,e,r){return new Promise((function(a,i){Object(s.a)(t,e,r).then((function(t){return a(t.data)}))}))},queueAgain:function(t,e){var r=this;Object(s.M)(t,e).then((function(t){r.$Message.success(t.msg),r.getQueue()})).catch((function(t){r.$Message.error(t.msg)}))},queueDel:function(t,e){var r=this;Object(s.N)(t,e).then((function(t){r.$Message.success(t.msg),r.getQueue()})).catch((function(t){r.$Message.error(t.msg)}))},stopQueue:function(t){var e=this;Object(s.V)(t).then((function(t){e.$Message.success(t.msg),e.getQueue()})).catch((function(t){e.$Message.error(t.msg)}))}}},p=r("2877"),f=Object(p.a)(u,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("Modal",{attrs:{title:"任务列表",width:"1000","footer-hide":"","class-name":"vertical-center-modal"},model:{value:t.modal,callback:function(e){t.modal=e},expression:"modal"}},[t.modal?r("Card",{attrs:{bordered:!1,"dis-hover":""}},[r("Form",{ref:"formValidate",staticClass:"tabform",attrs:{inline:"",model:t.formValidate,"label-width":t.labelWidth,"label-position":t.labelPosition},nativeOn:{submit:function(t){t.preventDefault()}}},[r("FormItem",{attrs:{label:"操作时间:"}},[r("DatePicker",{staticClass:"width20",attrs:{editable:!1,value:t.timeVal,format:"yyyy/MM/dd",type:"datetimerange",placement:"bottom-start",placeholder:"自定义时间",options:t.options},on:{"on-change":t.onchangeTime}})],1),r("FormItem",{attrs:{label:"类型:"}},[r("Select",{staticClass:"width20",attrs:{clearable:""},on:{"on-change":t.typeSearchs},model:{value:t.formValidate.type,callback:function(e){t.$set(t.formValidate,"type",e)},expression:"formValidate.type"}},t._l(t.typeList,(function(e){return r("Option",{key:e.value,attrs:{value:e.value}},[t._v(t._s(e.label))])})),1)],1),r("FormItem",{attrs:{label:"状态:"}},[r("Select",{staticClass:"width20",attrs:{clearable:""},on:{"on-change":t.statusSearchs},model:{value:t.formValidate.status,callback:function(e){t.$set(t.formValidate,"status",e)},expression:"formValidate.status"}},t._l(t.statusList,(function(e){return r("Option",{key:e.value,attrs:{value:e.value}},[t._v(t._s(e.label))])})),1)],1)],1),r("Table",{staticClass:"mt25",attrs:{height:"500",columns:t.columns1,data:t.data1,loading:t.loading},scopedSlots:t._u([{key:"action",fn:function(e){var a=e.row;return e.index,[a.is_show_log?[r("a",{on:{click:function(e){return t.deliveryLook(a)}}},[t._v("查看")]),r("Divider",{attrs:{type:"vertical"}})]:t._e(),[r("Dropdown",{on:{"on-click":function(e){return t.changeMenu(a,e)}}},[r("a",[t._v("更多"),r("Icon",{attrs:{type:"ios-arrow-down"}})],1),r("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[[7,8,9,10].includes(a.type)?r("DropdownItem",{attrs:{name:"1"}},[t._v("下载")]):t._e(),1==a.status?r("DropdownItem",{attrs:{name:"2"}},[t._v("重新执行")]):t._e(),a.is_stop_button?r("DropdownItem",{attrs:{name:"3"}},[t._v("停止任务")]):t._e(),r("DropdownItem",{attrs:{name:"4"}},[t._v("清除任务")])],1)],1)]]}}],null,!1,2501981875)}),r("div",{staticClass:"acea-row row-right page"},[r("Page",{attrs:{total:t.page1.total,current:t.page1.pageNum,"show-elevator":"","show-total":"","page-size":t.page1.pageSize,"show-sizer":""},on:{"on-change":t.pageChange,"on-page-size-change":t.limitChange}})],1)],1):t._e(),r("Modal",{attrs:{width:"900","footer-hide":""},model:{value:t.modal1,callback:function(e){t.modal1=e},expression:"modal1"}},[r("Table",{staticClass:"mt25",attrs:{height:"500",columns:t.columns4,data:t.data2,loading:t.loading2}}),r("div",{staticClass:"acea-row row-right page"},[r("Page",{attrs:{total:t.page2.total,current:t.page2.pageNum,"show-elevator":"","show-total":"","page-size":t.page2.pageSize,"show-sizer":""},on:{"on-change":t.pageChange2,"on-page-size-change":t.limitChange2}})],1)],1)],1)}),[],!1,null,null,null);e.default=f.exports},"2dfc":function(t,e,r){"use strict";var a=r("3443");r.n(a).a},"31b4":function(t,e,r){"use strict";var a=r("9860"),i=r.n(a),s=r("b6bd"),n=r("2f62");function o(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,a)}return r}function l(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var c={name:"edit",components:{formCreate:i.a.$form()},computed:function(t){for(var e=1;e您选择的的订单存在用户未删除的订单,无法删除用户未删除的订单!

"})},handleSubmit:function(){this.$emit("on-submit",this.data)},Refresh:function(){this.$emit("getList")},handleReset:function(){this.$refs.form.resetFields(),this.$emit("on-reset")},queuemModal:function(){this.$refs.queue.modal=!0}})},C=(r("08b6"),Object(f.a)(x,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[r("Form",{ref:"orderData",staticClass:"tabform",attrs:{inline:"",model:t.orderData,"label-width":t.labelWidth,"label-position":t.labelPosition},nativeOn:{submit:function(t){t.preventDefault()}}},[r("Row",[r("Col",[r("FormItem",{attrs:{label:"订单状态:"}},[r("Select",{staticClass:"input-add",attrs:{clearable:"",placeholder:"全部"},on:{"on-change":t.selectChange2},model:{value:t.orderData.status,callback:function(e){t.$set(t.orderData,"status",e)},expression:"orderData.status"}},[r("Option",{attrs:{value:""}},[t._v("全部")]),r("Option",{attrs:{value:"0"}},[t._v("未支付")]),r("Option",{attrs:{value:"1"}},[t._v("未发货")]),r("Option",{attrs:{value:"2"}},[t._v("待收货")]),r("Option",{attrs:{value:"5"}},[t._v("待核销")]),r("Option",{attrs:{value:"6"}},[t._v("已核销")]),r("Option",{attrs:{value:"3"}},[t._v("待评价")]),r("Option",{attrs:{value:"4"}},[t._v("已完成")]),r("Option",{attrs:{value:"-2"}},[t._v("已退款")]),r("Option",{attrs:{value:"-4"}},[t._v("已删除")])],1)],1)],1),r("Col",[r("FormItem",{attrs:{label:"支付方式:"}},[r("Select",{staticClass:"input-add",attrs:{clearable:"",placeholder:"全部"},on:{"on-change":t.userSearchs},model:{value:t.orderData.pay_type,callback:function(e){t.$set(t.orderData,"pay_type",e)},expression:"orderData.pay_type"}},t._l(t.payList,(function(e){return r("Option",{key:e.id,attrs:{value:e.val}},[t._v(t._s(e.label))])})),1)],1)],1),r("Col",[r("FormItem",{attrs:{label:"创建时间:"}},[r("DatePicker",{staticClass:"input-add mr20",attrs:{editable:!1,clearable:!0,value:t.timeVal,format:"yyyy/MM/dd HH:mm:ss",type:"datetimerange",placement:"bottom-start",placeholder:"自定义时间",options:t.options},on:{"on-change":t.onchangeTime}})],1)],1)],1),r("Row",[r("Col",[r("FormItem",{attrs:{label:"活动类型:"}},[r("Select",{staticClass:"input-add",attrs:{clearable:"",placeholder:"全部"},on:{"on-change":t.typeChange},model:{value:t.orderData.type,callback:function(e){t.$set(t.orderData,"type",e)},expression:"orderData.type"}},[r("Option",{attrs:{value:"0"}},[t._v("普通订单")]),r("Option",{attrs:{value:"1"}},[t._v("秒杀订单")]),r("Option",{attrs:{value:"2"}},[t._v("砍价订单")]),r("Option",{attrs:{value:"3"}},[t._v("拼团订单")]),r("Option",{attrs:{value:"4"}},[t._v("套餐订单")]),r("Option",{attrs:{value:"8"}},[t._v("预售订单")]),r("Option",{attrs:{value:"9"}},[t._v("新人订单")]),r("Option",{attrs:{value:"10"}},[t._v("抽奖订单")]),r("Option",{attrs:{value:"11"}},[t._v("拼单订单")]),r("Option",{attrs:{value:"12"}},[t._v("桌码订单")])],1)],1)],1),"1"==t.orderType?r("Col",[r("FormItem",{attrs:{label:"选择门店:"}},[r("Select",{staticClass:"input-add",attrs:{clearable:"",filterable:""},on:{"on-change":t.storeChange},model:{value:t.orderData.store_id,callback:function(e){t.$set(t.orderData,"store_id",e)},expression:"orderData.store_id"}},t._l(t.staffData,(function(e){return r("Option",{key:e.id,attrs:{value:e.id}},[t._v(t._s(e.name)+"\n ")])})),1)],1)],1):t._e(),"2"==t.orderType?r("Col",[r("FormItem",{attrs:{label:"供应商:"}},[r("Select",{staticClass:"input-add",attrs:{clearable:"",filterable:""},on:{"on-change":t.supplierChange},model:{value:t.orderData.supplier_id,callback:function(e){t.$set(t.orderData,"supplier_id",e)},expression:"orderData.supplier_id"}},t._l(t.supplierName,(function(e){return r("Option",{key:e.id,attrs:{value:e.id}},[t._v(t._s(e.supplier_name))])})),1)],1)],1):t._e(),r("Col",[r("FormItem",{attrs:{label:"订单搜索:",prop:"real_name","label-for":"real_name"}},[r("Input",{staticClass:"input-add",attrs:{placeholder:"请输入","element-id":"name",clearable:"",maxlength:"20"},on:{"on-change":t.clearTap},model:{value:t.orderData.real_name,callback:function(e){t.$set(t.orderData,"real_name",e)},expression:"orderData.real_name"}},[r("Select",{staticStyle:{width:"80px"},attrs:{slot:"prepend","default-label":"全部"},slot:"prepend",model:{value:t.orderData.field_key,callback:function(e){t.$set(t.orderData,"field_key",e)},expression:"orderData.field_key"}},[r("Option",{attrs:{value:"all"}},[t._v("全部")]),r("Option",{attrs:{value:"order_id"}},[t._v("订单号")]),r("Option",{attrs:{value:"uid"}},[t._v("用户UID")]),r("Option",{attrs:{value:"real_name"}},[t._v("用户姓名")]),r("Option",{attrs:{value:"user_phone"}},[t._v("用户电话")]),r("Option",{attrs:{value:"title"}},[t._v("商品名称")]),r("Option",{attrs:{value:"total_num"}},[t._v("商品件数")])],1)],1)],1),r("FormItem",[r("Button",{staticStyle:{"margin-left":"-90px"},attrs:{type:"primary"},on:{click:function(e){return t.orderSearch(t.orderData.real_name)}}},[t._v("查询")])],1)],1)],1)],1)],1)}),[],!1,null,"35901aca",null).exports),D=r("6683"),k=r("a464"),O=r("0fc4"),j=r("31b4"),S=r("fc48"),T=r("61f8"),$=r("417c"),M=r("d616"),L=r("a716"),E=r("2e83"),A=r("6112"),P=r("add5"),F=r.n(P);function N(t,e,r,a,i,s,n){try{var o=t[s](n),l=o.value}catch(t){return void r(t)}o.done?e(l):Promise.resolve(l).then(a,i)}function R(t){return function(){var e=this,r=arguments;return new Promise((function(a,i){var s=t.apply(e,r);function n(t){N(s,a,i,n,o,"next",t)}function o(t){N(s,a,i,n,o,"throw",t)}n(void 0)}))}}function B(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,a)}return r}function V(t){for(var e=1;e2&&(e.refundMoney=Number(t.toFixed(2)))}))}},methods:V({},Object(n.d)("admin/order",["getIsDel","getisDelIdListl","onChangeTabs","getStore_id","getSupplier_id"]),{visibleChange:function(t){this.is_split_order=0,t||(this.refundSelection=[])},cancelRefundModal:function(){this.refundModal=!1},putOpenRefund:function(){var t=this,e={id:this.orderId,refund_price:this.refundMoney,type:1,is_split_order:this.is_split_order};if(this.is_split_order){if(!this.refundSelection.length)return this.$Message.error("请选择需要退款的商品");e.cart_ids=this.refundSelection.map((function(t){return{cart_id:t.id,cart_num:t.refundNum}}))}Object(o.I)(e).then((function(e){t.$Message.success(e.msg),t.refundModal=!1,t.getData(t.orderDatalist.orderInfo.id)})).catch((function(e){t.$Message.error(e.msg)}))},refundSelectionChange:function(t){this.refundSelection=t},refundNumChange:function(t){var e=t.id,r=t.refundNum,a=this.refundSelection.find((function(t){return t.id===e}));a&&(a.refundNum=r)},checkboxItem:function(t){var e=parseInt(t.rowid);-1!==this.checkUidList.indexOf(e)?this.checkUidList=this.checkUidList.filter((function(t){return t!==e})):this.checkUidList.push(e)},checkboxAll:function(){var t=this.$refs.xTable.getCheckboxRecords(!0),e=this.$refs.xTable.getCheckboxReserveRecords(!0);0==this.isAll&&this.checkUidList.length<=e.length&&!this.isCheckBox&&(e=[]);var r=[];(e=e.concat(t)).forEach((function(t){r.push(parseInt(t.id))})),this.checkUidList=r,t.length||(this.isCheckBox=!1)},allPages:function(t){this.isAll=t,0==t?this.$refs.xTable.toggleAllCheckboxRow():(this.isCheckBox?(this.$refs.xTable.setAllCheckboxRow(!1),this.isCheckBox=!1,this.isAll=0):(this.$refs.xTable.setAllCheckboxRow(!0),this.isCheckBox=!0,this.isAll=1),this.checkUidList=[])},getErpConfig:function(){var t=this;Object(O.a)().then((function(e){t.openErp=e.data.open_erp})).catch((function(e){t.$Message.error(e.msg)}))},printOreder:function(){if(this.checkUidList.length>10||1==this.isAll&&this.page.total>10)return this.$Message.error("最多批量打印10个订单");var t=[];1==this.isAll&&this.page.total<=10&&this.orderList.forEach((function(e){t.push(parseInt(e.id))}));var e=this.$router.resolve({path:this.roterPre+"/supplier/order/distribution",query:{id:1==this.isAll?t.join(","):this.checkUidList.join(","),status:2}});window.open(e.href,"_blank")},delAll:function(){var t=this;if(0===this.checkUidList.length&&0==this.isAll)return this.$Message.error("请先选择删除的订单!");var e={title:"删除订单",url:"/order/dels",method:"post",ids:{all:this.isAll,ids:this.checkUidList}};this.$modalSure(e).then((function(e){t.$Message.success(e.msg),t.checkUidList=[],t.getList()})).catch((function(e){t.$Message.error(e.msg)}))},onAuto:function(){this.$refs.sends.modals=!0,this.$refs.sends.getList(),this.$refs.sends.getDeliveryList()},btnClick:function(t){var e=this,r={supplier_id:t.supplier_id,id:t.id};Object(o.Q)(r).then(function(){var t=R(s.a.mark((function t(r){return s.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.$Message.success(r.msg);case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.$Message.error(t.msg)}))},queuemModal:function(){this.$refs.queue.modal=!0},getExpressList:function(){var t=R(s.a.mark((function t(){var e,r,a,i,n;return s.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=[],r=[],a=[],i="",t.next=3,this.getExcelData();case 3:n=t.sent,i||(i=n.filename),r.length||(r=n.filekey),e.length||(e=n.header),a=n.export,Object(E.a)(e,r,i,a);case 9:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}(),getExcelData:function(){return new Promise((function(t,e){Object(o.e)().then((function(e){return t(e.data)}))}))},writeOff:function(){this.modals2=!0},search:function(t){var e=this;this.$refs[t].validate((function(t){t?(e.writeOffFrom.confirm=0,Object(o.L)(e.writeOffFrom).then(function(){var t=R(s.a.mark((function t(r){return s.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:200===r.status?e.$Message.success(r.msg):e.$Message.error(r.msg);case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.$Message.error(t.msg)}))):e.$Message.error("请填写正确的核销码")}))},ok:function(){var t=this;this.writeOffFrom.code?(this.writeOffFrom.confirm=1,Object(o.L)(this.writeOffFrom).then(function(){var e=R(s.a.mark((function e(r){return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:200===r.status?(t.$Message.success(r.msg),t.modals2=!1,t.$refs[name].resetFields(),t.$emit("getList")):t.$Message.error(r.msg);case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.$Message.error(e.msg)}))):this.$Message.warning("请先验证订单!")},del:function(t){this.modals2=!1,this.writeOffFrom.confirm=0,this.$refs[t].resetFields()},getToken:function(){this.uploadHeaders["Authori-zation"]="Bearer "+_.a.cookies.get("token")},uploadSuccess:function(t,e,r){200===t.status?(this.$Message.success(t.msg),this.file=t.data.src,this.fileList=r):this.$Message.error(t.msg)},removeFile:function(t,e){this.file="",this.fileList=e},manualModalOk:function(){var t=this;this.$refs.upload.clearFiles(),Object(o.r)({file:this.file}).then((function(e){t.$Message.success(e.msg),t.fileList=[]})).catch((function(e){t.$Message.error(e.msg),t.fileList=[]}))},manualModalCancel:function(){this.fileList=[],this.$refs.upload.clearFiles()},getTabs:function(){var t=this;this.spinShow=!0,this.$store.dispatch("admin/order/getOrderTabs",{status:this.orderStatus,pay_type:this.orderPayType,data:this.orderTime,real_name:this.orderNum,field_key:this.fieldKey,type:this.type_id,plat_type:this.currentTab,store_id:this.store_id,supplier_id:this.supplier_id}).then((function(e){t.tablists=e.data,t.spinShow=!1})).catch((function(e){t.spinShow=!1,t.$Message.error(e.msg)}))},onClickTab:function(){this.onChangeTabs(this.currentTab),this.isAll=0,this.isCheckBox=!1,this.$refs.xTable.setAllCheckboxRow(!1),this.checkUidList=[],1==this.currentTab&&this.getSupplier_id(""),2==this.currentTab&&this.getStore_id(""),this.getList(),this.$store.dispatch("admin/order/getOrderTabs",{type:this.currentTab})},closeDetail:function(){this.$refs.detailss.modals=!1},distribution:function(t){this.$refs.distshow.modals=!0,this.$refs.distshow.formValidate.keywords="",this.$refs.distshow.getList(t.id)},showUserInfo:function(t){this.$refs.userDetails.modals=!0,this.$refs.userDetails.activeName="info",this.$refs.userDetails.getDetails(t.uid)},printImg:function(t){F()({printable:t,type:"image",documentTitle:"快递信息",style:"img{\n\t width: 100%;\n\t height: 476px;\n\t }"})},changeMenu:function(t,e,r){var a=this;switch(this.orderId=t.id,this.orderConId=t.pid>0?t.pid:t.id,this.orderConNum=r,e){case"1":this.delfromData={title:"修改立即支付",url:"/order/pay_offline/".concat(t.id),method:"post",ids:""},this.$modalSure(this.delfromData).then((function(e){a.$Message.success(e.msg),a.$emit("changeGetTabs"),a.getData(t.id,1),a.getList()})).catch((function(t){a.$Message.error(t.msg)}));break;case"2":this.rowActive=t,this.getData(t.id);break;case"3":this.$refs.record.modals=!0,this.$refs.record.getList(t.id);break;case"4":this.$refs.remarks.formValidate.remark=t.remark,this.$refs.remarks.modals=!0;break;case"5":this.getOnlyrefundData(t.id,t.refund_type);break;case"55":this.getrefundData(t.id,t.refund_type);break;case"6":this.getRefundIntegral(t.id);break;case"7":this.getNorefundData(t.id);break;case"8":this.delfromData={title:"修改确认收货",url:"/order/take/".concat(t.id),method:"put",ids:""},this.$modalSure(this.delfromData).then((function(e){a.$Message.success(e.msg),a.$emit("changeGetTabs"),a.getList(),r?a.$refs.detailss.getSplitOrder(t.pid):a.getData(t.id,1)})).catch((function(t){a.$Message.error(t.msg)}));break;case"10":this.delfromData={title:"立即打印订单",info:"您确认打印此订单吗?",url:"/order/print/".concat(t.id),method:"get",ids:""},this.$modalSure(this.delfromData).then((function(t){a.$Message.success(t.msg),a.$emit("changeGetTabs"),a.getList()})).catch((function(t){a.$Message.error(t.msg)}));break;case"11":this.delfromData={title:"立即打印电子面单",info:"您确认打印此电子面单吗?",url:"/order/order_dump/".concat(t.id),method:"get",ids:""},this.$modalSure(this.delfromData).then((function(t){a.$Message.success(t.msg),a.getList()})).catch((function(t){a.$Message.error(t.msg)}));break;case"12":var i=this.$router.resolve({path:this.roterPre+"/supplier/order/distribution",query:{id:t.id,status:2}});window.open(i.href,"_blank");break;case"13":this.printImg(t.kuaidi_label);break;default:this.delfromData={title:"删除订单",url:"/order/del/".concat(t.id),method:"DELETE",ids:""},this.delOrder(t,this.delfromData)}},submitModel:function(){this.getList()},pageChange:function(t){this.page.pageNum=t,this.getList()},limitChange:function(t){this.page.pageSize=t,this.getList()},getList:function(t){var e=this;1==t&&(this.isAll=0,this.$refs.xTable.setAllCheckboxRow(!1),this.checkUidList=[]),this.page.pageNum=1===t?1:this.page.pageNum,this.loading=!0,Object(o.B)({page:this.page.pageNum,limit:this.page.pageSize,status:this.orderStatus,pay_type:this.orderPayType,data:this.orderTime,real_name:this.orderNum,field_key:this.fieldKey,type:this.type_id,plat_type:this.currentTab,store_id:this.store_id,supplier_id:this.supplier_id}).then(function(){var t=R(s.a.mark((function t(r){var a;return s.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:(a=r.data).data.forEach((function(t){t.checkBox=1==e.isAll,t.id==e.orderId&&(e.rowActive=t)})),e.$set(e,"orderList",a.data),e.orderCards=a.stat,e.page.total=a.count,e.$emit("on-changeCards",a.stat),e.loading=!1,e.getTabs(),e.$nextTick((function(){if(1==this.isAll)this.isCheckBox?this.$refs.xTable.setAllCheckboxRow(!0):this.$refs.xTable.setAllCheckboxRow(!1);else{var t=this.$refs.xTable.getCheckboxReserveRecords(!0);(!this.checkUidList.length||this.checkUidList.length<=t.length)&&this.$refs.xTable.setAllCheckboxRow(!1)}}));case 9:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.loading=!1,e.$Message.error(t.msg)}))},edit:function(t){this.getOrderData(t.id)},splitOrderDetail:function(t){this.$router.push({path:this.roterPre+"split_list",query:{id:t.id,orderChartType:this.orderStatus}})},delOrder:function(t,e){var r=this;1===t.is_del?this.$modalSure(e).then((function(t){r.$Message.success(t.msg),r.getList(),r.$refs.detailss.modals=!1,r.$emit("changeGetTabs")})).catch((function(t){r.$Message.error(t.msg)})):this.$Modal.error({title:"错误!",content:"

您选择的的订单存在用户未删除的订单,无法删除用户未删除的订单!

"})},getOrderData:function(t){var e=this;Object(o.k)(t).then(function(){var t=R(s.a.mark((function t(r){return s.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!1!==r.data.status){t.next=2;break}return t.abrupt("return",e.$authLapse(r.data));case 2:e.$authLapse(r.data),e.FromData=r.data,e.$refs.edits.modals=!0;case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.$Message.error(t.msg)}))},getData:function(t,e){var r=this;Object(o.g)(t).then(function(){var t=R(s.a.mark((function t(a){return s.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e||(r.$refs.detailss.modals=!0),r.orderDatalist=a.data,r.orderDatalist.orderInfo.refund_reason_wap_img)try{r.orderDatalist.orderInfo.refund_reason_wap_img=JSON.parse(r.orderDatalist.orderInfo.refund_reason_wap_img)}catch(t){r.orderDatalist.orderInfo.refund_reason_wap_img=[]}case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){r.$Message.error(t.msg)}))},submitFail:function(t){this.status=0,this.getList(),1!=this.orderConNum?this.getData(this.orderId,1):this.$refs.detailss.getSplitOrder(this.orderConId),t&&this.$emit("changeGetTabs")},getOnlyrefundData:function(t,e){var r=this,a=this.rowActive._info,i=Object.keys(a).map((function(t){return a[t].cart_info}));i.forEach((function(t){t.refundPrice=r.$computes.Div(t.refund_price,t.cart_num),t.refundNum=t.cart_num-t.refund_num,t._disabled=!t.refundNum})),this.refundProduct=i,1===this.refundProductNum&&(this.refundSelection=i),this.refundModal=!0},getrefundData:function(t,e){var r=this;this.delfromData={title:"是否立即退货退款",url:"/refund/agree/".concat(t),method:"get"},this.$modalSure(this.delfromData).then((function(t){r.$Message.success(t.msg),r.getList(),r.$emit("changeGetTabs")})).catch((function(t){r.$Message.error(t.msg)}))},getRefundIntegral:function(t){var e=this;Object(o.P)(t).then(function(){var t=R(s.a.mark((function t(r){return s.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.FromData=r.data,e.$refs.edits.modals=!0;case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.$Message.error(t.msg)}))},getNorefundData:function(t){var e=this;this.$modalForm(Object(o.q)(t)).then((function(){e.getList(),e.$emit("changeGetTabs")}))},sendOrder:function(t,e){var r=this;this.orderConId=t.pid,this.orderConNum=e,this.$store.commit("admin/order/setSplitOrder",t.total_num),this.$refs.send.modals=!0,this.orderId=t.id,this.status=t._status,this.pay_type=t.pay_type,this.$refs.send.getList(),this.$refs.send.getDeliveryList(),this.$nextTick((function(e){r.$refs.send.getCartInfo(t._status,t.id)}))},delivery:function(t,e){var r=this;Object(o.h)(t.id).then(function(){var a=R(s.a.mark((function a(i){return s.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:r.orderConNum=e,r.orderConId=t.pid,r.FromData=i.data,r.$refs.edits.modals=!0,1!=e&&r.getData(r.orderId,1);case 5:case"end":return a.stop()}}),a)})));return function(t){return a.apply(this,arguments)}}()).catch((function(t){r.$Message.error(t.msg)}))},change:function(t){},exports:function(){var t=R(s.a.mark((function t(e){var r,a,i,n,o,l,c,d,u,p,f,m,h;return s.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.exportListOn=this.exportList.findIndex((function(t){return t.name===e})),r=[],a=[],i=[],n="",o=V({},this.where,{page:1,export_type:e,ids:this.checkUidList.join(),plat_type:this.currentTab}),l=0;case 4:if(!(l0?a.pay_price:0))])]}}])}),r("vxe-column",{attrs:{field:"_pay_time",title:"支付时间","min-width":"150"}}),r("vxe-column",{attrs:{field:"pay_type_name",title:"支付类型","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[r("span",[t._v(t._s(a.pay_type_name))])]}}])}),r("vxe-column",{attrs:{field:"statusName",title:"订单状态","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[r("Tag",{directives:[{name:"show",rawName:"v-show",value:3==a.status,expression:"row.status == 3"}],attrs:{color:"default",size:"medium"}},[t._v(t._s(a.status_name.status_name))]),r("Tag",{directives:[{name:"show",rawName:"v-show",value:4==a.status,expression:"row.status == 4"}],attrs:{color:"orange",size:"medium"}},[t._v(t._s(a.status_name.status_name))]),r("Tag",{directives:[{name:"show",rawName:"v-show",value:1==a.status||2==a.status||5==a.status,expression:"row.status == 1 || row.status == 2 || row.status == 5"}],attrs:{color:"orange",size:"medium"},domProps:{innerHTML:t._s(a.status_name.status_name)}},[t._v(t._s(a.status_name.status_name))]),r("Tag",{directives:[{name:"show",rawName:"v-show",value:0==a.status,expression:"row.status == 0"}],attrs:{color:"red",size:"medium"}},[t._v(t._s(a.status_name.status_name))]),!a.is_all_refund&&a.refund.length?r("Tag",{attrs:{color:"orange",size:"medium"}},[t._v("部分退款中")]):t._e(),a.is_all_refund&&a.refund.length&&6!=a.refund_type?r("Tag",{attrs:{color:"orange",size:"medium"}},[t._v("退款中")]):t._e(),a.status_name.pics?r("div",{staticClass:"pictrue-box",attrs:{size:"medium"}},t._l(a.status_name.pics||[],(function(t,e){return r("div",{directives:[{name:"viewer",rawName:"v-viewer"}],key:e},[r("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t,expression:"item"}],staticClass:"pictrue mr10",attrs:{src:t}})])})),0):t._e()]}}])}),r("vxe-column",{attrs:{field:"action",title:"操作",align:"center",width:"140",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[2!==a._status&&8!==a._status&&4!==a.status||1!==a.shipping_type||null!==a.pinkStatus&&2!==a.pinkStatus||null!=a.delete_time||0!==a.store_id||0!==a.supplier_id?t._e():r("a",{attrs:{disabled:t.openErp},on:{click:function(e){return t.sendOrder(a)}}},[t._v("发送货")]),0!==a.supplier_id&&"未发货"==a.status_name.status_name?r("a",{attrs:{disabled:t.openErp},on:{click:function(e){return t.btnClick(a)}}},[t._v("提醒发货")]):t._e(),0!==a.supplier_id&&"未发货"==a.status_name.status_name?r("Divider",{attrs:{type:"vertical"}}):t._e(),2!==a._status&&8!==a._status&&4!==a.status||1!==a.shipping_type||null!==a.pinkStatus&&2!==a.pinkStatus||null!=a.delete_time||0!==a.store_id||0!==a.supplier_id?t._e():r("Divider",{attrs:{type:"vertical"}}),r("a",{on:{click:function(e){return t.changeMenu(a,"2")}}},[t._v("详情")])]}}])})],1),r("div",{staticClass:"acea-row row-right page"},[r("Page",{attrs:{total:t.page.total,current:t.page.pageNum,"show-elevator":"","show-total":"","page-size":t.page.pageSize,"show-sizer":""},on:{"on-change":t.pageChange,"on-page-size-change":t.limitChange}})],1),r("Distribution",{ref:"distshow"}),r("edit-from",{ref:"edits",attrs:{FromData:t.FromData},on:{submitFail:t.submitFail}}),r("user-details",{ref:"userDetails",attrs:{fromType:"order"}}),r("details-from",{ref:"detailss",attrs:{orderDatalist:t.orderDatalist,orderId:t.orderId,"row-active":t.rowActive,openErp:t.openErp,formType:1}}),r("order-remark",{ref:"remarks",attrs:{orderId:t.orderId},on:{submitFail:t.submitFail}}),r("order-record",{ref:"record"}),r("order-send",{ref:"send",attrs:{orderId:t.orderId,status:t.status,pay_type:t.pay_type},on:{submitFail:function(e){return t.submitFail(1)}}}),r("Modal",{attrs:{title:"手动批量发货","class-name":"vertical-center-modal"},on:{"on-ok":t.manualModalOk,"on-cancel":t.manualModalCancel},model:{value:t.manualModal,callback:function(e){t.manualModal=e},expression:"manualModal"}},[r("Row",{attrs:{type:"flex"}},[r("Col",{attrs:{span:"4"}},[r("div",{staticStyle:{"line-height":"32px","text-align":"right"}},[t._v("文件:")])]),r("Col",{attrs:{span:"20"}},[r("Upload",{ref:"upload",attrs:{action:t.uploadAction,headers:t.uploadHeaders,accept:".xlsx,.xls",format:["xlsx","xls"],disabled:!!t.fileList.length,"on-success":t.uploadSuccess,"on-remove":t.removeFile}},[r("Button",{attrs:{icon:"ios-cloud-upload-outline"}},[t._v("上传文件")])],1)],1)],1)],1),r("Modal",{staticClass:"paymentFooter",attrs:{title:"订单核销",scrollable:"",width:"400","class-name":"vertical-center-modal"},model:{value:t.modals2,callback:function(e){t.modals2=e},expression:"modals2"}},[r("Form",{ref:"writeOffFrom",staticClass:"tabform",attrs:{model:t.writeOffFrom,rules:t.writeOffRules,"label-position":t.labelPosition},nativeOn:{submit:function(t){t.preventDefault()}}},[r("FormItem",{attrs:{prop:"code","label-for":"code"}},[r("Input",{staticStyle:{width:"100%"},attrs:{search:"","enter-button":"验证",type:"text",placeholder:"请输入12位核销码",number:""},on:{"on-search":function(e){return t.search("writeOffFrom")}},model:{value:t.writeOffFrom.code,callback:function(e){t.$set(t.writeOffFrom,"code",t._n(e))},expression:"writeOffFrom.code"}})],1)],1),r("div",{attrs:{slot:"footer"},slot:"footer"},[r("Button",{attrs:{type:"primary"},on:{click:t.ok}},[t._v("立即核销")]),r("Button",{on:{click:function(e){return t.del("writeOffFrom")}}},[t._v("取消")])],1)],1),r("auto-send",{ref:"sends",attrs:{selectArr:t.checkUidList,isAll:t.isAll}}),r("queue-list",{ref:"queue"}),r("Modal",{attrs:{title:"手动退款",width:"960","class-name":"refund-modal"},on:{"on-visible-change":t.visibleChange},model:{value:t.refundModal,callback:function(e){t.refundModal=e},expression:"refundModal"}},[r("Form",{attrs:{"label-width":100}},[r("FormItem",{attrs:{label:"退款金额:",required:""}},[r("InputNumber",{staticStyle:{width:"408px"},model:{value:t.refundMoney,callback:function(e){t.refundMoney=e},expression:"refundMoney"}})],1),t.refundProductNum>1?r("FormItem",{attrs:{label:"分单退款:"}},[r("i-switch",{attrs:{"true-value":1,"false-value":0,size:"large"},model:{value:t.is_split_order,callback:function(e){t.is_split_order=e},expression:"is_split_order"}},[r("span",{attrs:{slot:"open"},slot:"open"},[t._v("开启")]),r("span",{attrs:{slot:"close"},slot:"close"},[t._v("关闭")])]),r("div",{staticClass:"tips"},[t._v("可选择表格中的商品单独退款,退款后且不能撤回,请谨慎操作!")]),r("Table",{directives:[{name:"show",rawName:"v-show",value:t.is_split_order,expression:"is_split_order"}],ref:"refundTable",attrs:{"max-height":"500",columns:t.refundColumns,data:t.refundProduct},on:{"on-selection-change":t.refundSelectionChange},scopedSlots:t._u([{key:"product",fn:function(e){var a=e.row;return[r("div",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"image-wrap"},[r("img",{staticClass:"image",attrs:{src:a.attrInfo.image}})]),r("div",{staticClass:"title"},[t._v(t._s(a.productInfo.store_name))])]}},{key:"action",fn:function(e){var a=e.row;return[r("InputNumber",{attrs:{max:a.cart_num-a.refund_num,min:1,precision:0,"controls-outside":""},on:{"on-change":function(e){return t.refundNumChange(a)}},model:{value:a.refundNum,callback:function(e){t.$set(a,"refundNum",e)},expression:"row.refundNum"}})]}}],null,!1,577735746)})],1):t._e()],1),r("div",{attrs:{slot:"footer"},slot:"footer"},[r("Button",{on:{click:t.cancelRefundModal}},[t._v("取消")]),r("Button",{attrs:{type:"primary"},on:{click:t.putOpenRefund}},[t._v("提交")])],1)],1)],1)}),[],!1,null,"09b05c42",null).exports,cardsData:a.a},data:function(){return{currentTab:"",cardLists:[],selection:[],orderData:{status:"",data:"",real_name:"",field_key:"all",pay_type:""},autoDisabled:!0,isAll:-1}},methods:{changeGetTabs:function(){this.$refs.table.getTabs()},getChangeTabs:function(t){this.$refs.table.getList()},getData:function(t){this.$refs.table&&(this.$refs.table.checkBox=!1,this.$refs.table.getList(t))},getCards:function(t){this.cardLists=t},handleResize:function(){this.$refs.ellipsis.forEach((function(t){return t.init()}))},orderSelect:function(t){this.selection=t},onOrderData:function(t){this.orderData=t},orderDatas:function(t){this.orderData=t},onAutoDisabled:function(t){this.autoDisabled=!!t},onAll:function(t){this.isAll=t}},mounted:function(){}});function q(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,a)}return r}function H(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}r("7e47");var G={name:"list",components:{productlistDetails:Object(f.a)(U,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[r("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":"",padding:0}},[r("div",{staticClass:"new_card_pd"},[r("table-form",{attrs:{"is-all":t.isAll,"auto-disabled":t.autoDisabled,"form-selection":t.selection},on:{getList:t.getData,"order-data":t.orderDatas}})],1)]),t.cardLists.length>=0?r("cards-data",{attrs:{cardLists:t.cardLists}}):t._e(),r("Card",{attrs:{bordered:!1,"dis-hover":""}},[r("table-list",{ref:"table",attrs:{where:t.orderData,"is-all":t.isAll},on:{"on-all":t.onAll,"auto-disabled":t.onAutoDisabled,"order-data":t.onOrderData,"on-changeCards":t.getCards,changeGetTabs:t.changeGetTabs,"order-select":t.orderSelect}})],1)],1)}),[],!1,null,"699b2f7a",null).exports},data:function(){return{spinShow:!1,currentTab:"",data:[],tablists:null}},created:function(){this.getOrderType(""),this.getOrderStatus(""),this.getOrderTime(""),this.getOrderNum(""),this.getfieldKey(""),this.onChangeTabs(""),this.getSupplier_id(""),this.getStore_id(""),this.getType_id("")},beforeDestroy:function(){this.getOrderType(""),this.getOrderStatus(""),this.getOrderTime(""),this.getOrderNum(""),this.getfieldKey(""),this.onChangeTabs(""),this.getSupplier_id(""),this.getStore_id(""),this.getType_id("")},mounted:function(){},methods:function(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:window).chrome},isSafari:function(){return Object.prototype.toString.call(window.HTMLElement).indexOf("Constructor")>0||-1!==navigator.userAgent.toLowerCase().indexOf("safari")},isIOSChrome:function(){return-1!==navigator.userAgent.toLowerCase().indexOf("crios")}};e.default=a},"./src/js/functions.js":function(t,e,r){"use strict";r.r(e),r.d(e,"addWrapper",(function(){return n})),r.d(e,"capitalizePrint",(function(){return o})),r.d(e,"collectStyles",(function(){return l})),r.d(e,"addHeader",(function(){return d})),r.d(e,"cleanUp",(function(){return u})),r.d(e,"isRawHTML",(function(){return p}));var a=r("./src/js/modal.js"),i=r("./src/js/browser.js");function s(t){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function n(t,e){return'
'+t+"
"}function o(t){return t.charAt(0).toUpperCase()+t.slice(1)}function l(t,e){for(var r="",a=(document.defaultView||window).getComputedStyle(t,""),i=0;i]*>(.*?)").test(t)}},"./src/js/html.js":function(t,e,r){"use strict";r.r(e);var a=r("./src/js/functions.js"),i=r("./src/js/print.js");function s(t){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}e.default={print:function(t,e){var r,n="object"===s(r=t.printable)&&r&&(r instanceof HTMLElement||1===r.nodeType)?t.printable:document.getElementById(t.printable);n?(t.printableElement=function t(e,r){for(var i=e.cloneNode(),s=Array.prototype.slice.call(e.childNodes),n=0;n"+t.documentTitle+"",t.css&&(Array.isArray(t.css)||(t.css=[t.css]),t.css.forEach((function(t){f.srcdoc+=''}))),f.srcdoc+=""),t.type){case"pdf":if(a.default.isIE())try{window.open(t.fallbackPrintable,"_blank").focus(),t.onIncompatibleBrowser()}catch(e){t.onError(e)}finally{t.showModal&&i.default.close(),t.onLoadingEnd&&t.onLoadingEnd()}else s.default.print(t,f);break;case"image":l.default.print(t,f);break;case"html":n.default.print(t,f);break;case"raw-html":o.default.print(t,f);break;case"json":c.default.print(t,f)}}}},"./src/js/json.js":function(t,e,r){"use strict";r.r(e);var a=r("./src/js/functions.js"),i=r("./src/js/print.js");function s(t){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}e.default={print:function(t,e){if("object"!==s(t.printable))throw new Error("Invalid javascript data object (JSON).");if("boolean"!=typeof t.repeatTableHeader)throw new Error("Invalid value for repeatTableHeader attribute (JSON).");if(!t.properties||!Array.isArray(t.properties))throw new Error("Invalid properties array for your JSON data.");t.properties=t.properties.map((function(e){return{field:"object"===s(e)?e.field:e,displayName:"object"===s(e)?e.displayName:e,columnSize:"object"===s(e)&&e.columnSize?e.columnSize+";":100/t.properties.length+"%;"}})),t.printableElement=document.createElement("div"),t.header&&Object(a.addHeader)(t.printableElement,t),t.printableElement.innerHTML+=function(t){var e=t.printable,r=t.properties,i='';t.repeatTableHeader&&(i+=""),i+="";for(var s=0;s'+Object(a.capitalizePrint)(r[s].displayName)+"";i+="",t.repeatTableHeader&&(i+=""),i+="";for(var n=0;n";for(var o=0;o1)for(var d=0;d'+l+""}i+=""}return i+"
"}(t),i.default.send(t,e)}}},"./src/js/modal.js":function(t,e,r){"use strict";r.r(e);var a={show:function(t){var e=document.createElement("div");e.setAttribute("style","font-family:sans-serif; display:table; text-align:center; font-weight:300; font-size:30px; left:0; top:0;position:fixed; z-index: 9990;color: #0460B5; width: 100%; height: 100%; background-color:rgba(255,255,255,.9);transition: opacity .3s ease;"),e.setAttribute("id","printJS-Modal");var r=document.createElement("div");r.setAttribute("style","display:table-cell; vertical-align:middle; padding-bottom:100px;");var i=document.createElement("div");i.setAttribute("class","printClose"),i.setAttribute("id","printClose"),r.appendChild(i);var s=document.createElement("span");s.setAttribute("class","printSpinner"),r.appendChild(s);var n=document.createTextNode(t.modalMessage);r.appendChild(n),e.appendChild(r),document.getElementsByTagName("body")[0].appendChild(e),document.getElementById("printClose").addEventListener("click",(function(){a.close()}))},close:function(){var t=document.getElementById("printJS-Modal");t&&t.parentNode.removeChild(t)}};e.default=a},"./src/js/pdf.js":function(t,e,r){"use strict";r.r(e);var a=r("./src/js/print.js"),i=r("./src/js/functions.js");function s(t,e,r){var i=new window.Blob([r],{type:"application/pdf"});i=window.URL.createObjectURL(i),e.setAttribute("src",i),a.default.send(t,e)}e.default={print:function(t,e){if(t.base64){var r=Uint8Array.from(atob(t.printable),(function(t){return t.charCodeAt(0)}));s(t,e,r)}else{t.printable=/^(blob|http|\/\/)/i.test(t.printable)?t.printable:window.location.origin+("/"!==t.printable.charAt(0)?"/"+t.printable:t.printable);var a=new window.XMLHttpRequest;a.responseType="arraybuffer",a.addEventListener("error",(function(){Object(i.cleanUp)(t),t.onError(a.statusText,a)})),a.addEventListener("load",(function(){if(-1===[200,201].indexOf(a.status))return Object(i.cleanUp)(t),void t.onError(a.statusText,a);s(t,e,a.response)})),a.open("GET",t.printable,!0),a.send()}}}},"./src/js/print.js":function(t,e,r){"use strict";r.r(e);var a=r("./src/js/browser.js"),i=r("./src/js/functions.js"),s={send:function(t,e){document.getElementsByTagName("body")[0].appendChild(e);var r=document.getElementById(t.frameId);r.onload=function(){if("pdf"!==t.type){var e=r.contentWindow||r.contentDocument;if(e.document&&(e=e.document),e.body.appendChild(t.printableElement),"pdf"!==t.type&&t.style){var i=document.createElement("style");i.innerHTML=t.style,e.head.appendChild(i)}var s=e.getElementsByTagName("img");s.length>0?function(t){var e=t.map((function(t){if(t.src&&t.src!==window.location.href)return function(t){return new Promise((function(e){!function r(){t&&void 0!==t.naturalWidth&&0!==t.naturalWidth&&t.complete?e():setTimeout(r,500)}()}))}(t)}));return Promise.all(e)}(Array.from(s)).then((function(){return n(r,t)})):n(r,t)}else a.default.isFirefox()?setTimeout((function(){return n(r,t)}),1e3):n(r,t)}}};function n(t,e){try{if(t.focus(),a.default.isEdge()||a.default.isIE())try{t.contentWindow.document.execCommand("print",!1,null)}catch(e){t.contentWindow.print()}else t.contentWindow.print()}catch(t){e.onError(t)}finally{a.default.isFirefox()&&(t.style.visibility="hidden",t.style.left="-1px"),Object(i.cleanUp)(e)}}e.default=s},"./src/js/raw-html.js":function(t,e,r){"use strict";r.r(e);var a=r("./src/js/print.js");e.default={print:function(t,e){t.printableElement=document.createElement("div"),t.printableElement.setAttribute("style","width:100%"),t.printableElement.innerHTML=t.printable,a.default.send(t,e)}}},"./src/sass/index.scss":function(t,e,r){},0:function(t,e,r){t.exports=r("./src/index.js")}}).default},t.exports=a()},b473:function(t,e,r){"use strict";var a=r("72126");r.n(a).a},bcf5:function(t,e,r){"use strict";var a=r("f052");r.n(a).a},bd9b:function(t,e){t.exports="data:image/jpeg;base64,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"},cf4e:function(t,e,r){"use strict";var a=r("f047");r.n(a).a},d616:function(t,e,r){"use strict";var a=r("a34a"),i=r.n(a),s=r("2f62"),n=r("add5"),o=r.n(n),l=r("f8b7");function c(t,e,r,a,i,s,n){try{var o=t[s](n),l=o.value}catch(t){return void r(t)}o.done?e(l):Promise.resolve(l).then(a,i)}function d(t){return function(){var e=this,r=arguments;return new Promise((function(a,i){var s=t.apply(e,r);function n(t){c(s,a,i,n,o,"next",t)}function o(t){c(s,a,i,n,o,"throw",t)}n(void 0)}))}}function u(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,a)}return r}function p(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var f={name:"orderSend",props:{orderId:Number,status:Number,pay_type:String},data:function(){var t=this;return{productType:0,orderStatus:0,splitSwitch:!1,formItem:{type:"1",express_record_type:"1",delivery_name:"",delivery_id:"",express_temp_id:"",to_name:"",to_tel:"",to_addr:"",sh_delivery:"",fictitious_content:"",station_type:1,delivery_type:"1",cargo_weight:0,remark:"",mark:""},modals:!1,express:[],expressTemp:[],deliveryList:[],temp:{},export_open:!0,manyFormValidate:[],stopSubmit:!1,header:[{type:"selection",width:60,align:"center"},{title:"商品信息",slot:"image",width:200,align:"center"},{title:"规格",slot:"value",align:"center",minWidth:120},{title:"商品售价",slot:"sellPrice",align:"center",minWidth:100},{title:"商品优惠价",slot:"price",align:"center",minWidth:100},{title:"总数",key:"cart_num",align:"center",minWidth:80},{title:"待发数量",key:"surplus_num",align:"center",width:180,render:function(e,r){return e("div",[e("InputNumber",{props:{min:1,max:r.row.numShow,value:r.row.surplus_num||1},on:{"on-change":function(e){r.row.surplus_num=e||1,t.manyFormValidate[r.index]=r.row,t.selectData.forEach((function(e,a){e.cart_id===r.row.cart_id&&t.selectData.splice(a,1,r.row)}))}}})])}}],selectData:[],sheetInfo:{}}},computed:function(t){for(var e=1;e1&&"3"!==t.formItem.type?r("div",[r("FormItem",{attrs:{label:"分单发货:"}},[r("i-switch",{attrs:{size:"large",disabled:8===t.orderStatus},on:{"on-change":t.changeSplitStatus},model:{value:t.splitSwitch,callback:function(e){t.splitSwitch=e},expression:"splitSwitch"}},[r("span",{attrs:{slot:"open"},slot:"open"},[t._v("开启")]),r("span",{attrs:{slot:"close"},slot:"close"},[t._v("关闭")])]),r("div",{staticClass:"trips"},[r("p",[t._v("\n 可选择表格中的商品单独发货,发货后会生成新的订单且不能撤回,请谨慎操作!\n ")])]),t.splitSwitch&&t.manyFormValidate.length?r("Table",{attrs:{data:t.manyFormValidate,columns:t.header,border:""},on:{"on-selection-change":t.selectOne},scopedSlots:t._u([{key:"image",fn:function(e){var a=e.row;return e.index,[r("div",{staticClass:"product-data"},[r("img",{staticClass:"image",attrs:{src:a.cart_info.productInfo.image}}),r("div",{staticClass:"line2"},[t._v("\n "+t._s(a.cart_info.productInfo.store_name)+"\n ")])])]}},{key:"value",fn:function(e){var a=e.row;return e.index,[r("div",[t._v(t._s(a.cart_info.productInfo.attrInfo.suk))])]}},{key:"sellPrice",fn:function(e){var a=e.row;return e.index,[r("div",[t._v("\n "+t._s(a.cart_info.productInfo.attrInfo?a.cart_info.productInfo.attrInfo.price:a.cart_info.productInfo.price)+"\n ")])]}},{key:"price",fn:function(e){var a=e.row;return e.index,[r("div",[r("div",[t._v(t._s(a.cart_info.truePrice))])])]}}],null,!1,1129913299)}):t._e()],1)],1):t._e()],1):t._e(),r("div",{attrs:{slot:"footer"},slot:"footer"},[r("Button",{on:{click:t.cancel}},[t._v("取消")]),t.stopSubmit?r("Button",{attrs:{type:"warning"}},[t._v("存在售后待处理订单")]):r("Button",{attrs:{type:"primary"},on:{click:t.putSend}},[t._v("提交")])],1),r("div",{directives:[{name:"viewer",rawName:"v-viewer"},{name:"show",rawName:"v-show",value:t.temp,expression:"temp"}],ref:"viewer"},[r("img",{staticClass:"display-add",attrs:{src:t.temp.pic}})])],1)}),[],!1,null,"7eea8b90",null);e.a=h.exports},dfcb:function(t,e,r){"use strict";var a=r("3d90");r.n(a).a},f047:function(t,e,r){},f052:function(t,e,r){},f115:function(t,e,r){"use strict";var a=r("04bc");r.n(a).a},f49f:function(t,e,r){"use strict";var a=r("f613");r.n(a).a},f613:function(t,e,r){},fc48:function(t,e,r){"use strict";var a=r("a34a"),i=r.n(a),s=r("f8b7");function n(t,e,r,a,i,s,n){try{var o=t[s](n),l=o.value}catch(t){return void r(t)}o.done?e(l):Promise.resolve(l).then(a,i)}function o(t){return function(){var e=this,r=arguments;return new Promise((function(a,i){var s=t.apply(e,r);function o(t){n(s,a,i,o,l,"next",t)}function l(t){n(s,a,i,o,l,"throw",t)}o(void 0)}))}}var l={components:{template:r("6112").default},name:"orderDetails",filters:{invoiceType:function(t){return 1==t?"电子普通发票":"纸质专用发票"},invoiceHeaderType:function(t){return 1==t?"个人":"企业"}},data:function(){return{isShow:0,modal2:!1,modals:!1,grid:{xl:8,lg:8,md:12,sm:24,xs:24},result:[],columns1:[{title:"商品信息",slot:"product",minWidth:400},{title:"售价",key:"sum_price"},{title:"实付金额",key:"truePrice"},{title:"数量",key:"cart_num"},{title:"小计",render:function(t,e){return t("div",(e.row.truePrice*e.row.cart_num).toFixed(2))}}],columns2:[{title:"订单ID",key:"oid",minWidth:40},{title:"操作记录",key:"change_message",minWidth:280},{title:"操作时间",key:"change_time",minWidth:100}],columnSplit:[{title:"订单号",slot:"order_id",minWidth:100},{title:"商品信息",slot:"product",minWidth:250},{title:"发货信息",slot:"deliveryInfo",minWidth:100},{title:"操作",slot:"action",minWidth:90}],recordData:[],activeName:"detail",orderData:{},splitList:[],logisticsChecked:{delivery_name:"",delivery_id:""}}},props:{orderDatalist:Object,orderId:Number,rowActive:Object,formType:{type:Number,default:0},openErp:{type:Boolean,default:!1}},watch:{orderDatalist:function(t){this.orderData=t.orderInfo,this.getList(this.formType?t.orderInfo.id:t.orderInfo.store_order_id),this.formType&&this.getSplitOrder(t.orderInfo.id)},orderData:function(t){var e=this;t&&t.custom_form&&t.custom_form.length&&t.custom_form.forEach((function(t){if(t.value)return e.isShow=1}))}},mounted:function(){var t=this;this.orderData&&this.orderData.custom_form&&this.orderData.custom_form.length&&this.orderData.custom_form.forEach((function(e){if(e.value)return t.isShow=1}))},methods:{openItemLogistics:function(t){var e=this;this.logisticsChecked.delivery_name=t.delivery_name,this.logisticsChecked.delivery_id=t.delivery_id,this.modal2=!0,Object(s.i)(t.id).then(function(){var t=o(i.a.mark((function t(r){return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.result=r.data.result;case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.$Message.error(t.msg)}))},openLogistics:function(){this.logisticsChecked.delivery_name=this.orderDatalist.orderInfo.delivery_name,this.logisticsChecked.delivery_id=this.orderDatalist.orderInfo.delivery_id,this.modal2=!0,this.getOrderData()},btnClick:function(t){var e=this,r={supplier_id:t.supplier_id,id:t.id};Object(s.Q)(r).then(function(){var t=o(i.a.mark((function t(r){return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.$Message.success(r.msg);case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.$Message.error(t.msg)}))},getOrderData:function(){var t=this;Object(s.i)(this.formType?this.orderDatalist.orderInfo.id:this.orderDatalist.orderInfo.store_order_id).then(function(){var e=o(i.a.mark((function e(r){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.result=r.data.result;case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.$Message.error(e.msg)}))},getSplitOrder:function(t){var e=this;t&&Object(s.T)(t,{status:2}).then((function(t){e.splitList=t.data})).catch((function(t){e.$Message.error(t.msg)}))},getList:function(t){var e=this,r={id:t,datas:this.page};this.loading=!0,Object(s.l)(r).then(function(){var t=o(i.a.mark((function t(r){return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.recordData=r.data,e.loading=!1;case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.loading=!1,e.$Message.error(t.msg)}))},changeMenu:function(t,e,r,a){a?this.$parent.changeMenu(e,r,a):this.$parent.changeMenu(this.rowActive,t)},distribution:function(t,e){e?this.$parent.distribution(t):this.$parent.distribution(this.rowActive)},edit:function(t,e){e?this.$parent.edit(t):this.$parent.edit(this.rowActive)},sendOrder:function(t,e){e?this.$parent.sendOrder(t,e):this.$parent.sendOrder(this.rowActive)},delivery:function(t,e){e?this.$parent.delivery(t,e):this.$parent.delivery(this.rowActive)},bindWrite:function(t,e){e?this.$parent.bindWrite(t):this.$parent.bindWrite(this.rowActive)}},computed:{}},c=(r("f49f"),r("2dfc"),r("2877")),d=Object(c.a)(l,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("Drawer",{attrs:{closable:!1,width:"1000","class-name":"order_box",styles:{padding:0}},model:{value:t.modals,callback:function(e){t.modals=e},expression:"modals"}},[t.orderDatalist?a("div",[a("div",{staticClass:"head"},[a("div",{staticClass:"full"},[a("Icon",{class:{"sale-after":-1===t.orderDatalist.orderInfo._status._type},attrs:{custom:"iconfont icondingdan",size:"60"}}),a("div",{staticClass:"text"},[a("div",{staticClass:"title"},[t._v(t._s(t.orderData.pink_name||"售后订单"))]),a("div",[t._v("订单编号:"+t._s(t.orderDatalist.orderInfo.order_id))])]),null==t.rowActive.delete_time?a("div",[1===t.orderData._status_new&&0===t.orderData.paid&&"offline"===t.orderData.pay_type?a("Button",{class:t.openErp?"on":"",attrs:{disabled:t.openErp},on:{click:function(e){return t.changeMenu("1")}}},[t._v("立即支付\n ")]):t._e(),2!=t.orderData._status_new||t.rowActive.split.length||t.formType&&t.orderData.refund.length?t._e():a("Button",{class:t.openErp?"on":"",attrs:{disabled:t.openErp},on:{click:t.distribution}},[t._v("分配\n ")]),1==t.orderData._status_new?a("Button",{class:t.openErp?"on":"",attrs:{disabled:t.openErp},on:{click:t.edit}},[t._v("编辑\n ")]):t._e(),2!==t.orderData._status_new&&8!==t.orderData._status_new&&4!==t.orderData.status||1!==t.orderData.shipping_type||null!==t.orderData.pinkStatus&&2!==t.orderData.pinkStatus?t._e():a("Button",{class:t.openErp?"on":"",attrs:{disabled:t.openErp},on:{click:t.sendOrder}},[t._v("发送货\n ")]),4!==t.orderData._status_new||t.rowActive.split.length?t._e():a("Button",{class:t.openErp?"on":"",attrs:{disabled:t.openErp},on:{click:t.delivery}},[t._v("\n 配送信息\n ")]),2==t.orderData.shipping_type&&0==t.orderData.status&&1==t.orderData.paid&&0===t.orderData.refund_status?a("Button",{class:t.openErp?"on":"",attrs:{disabled:t.openErp},on:{click:t.bindWrite}},[t._v("立即核销\n ")]):t._e(),t.orderData._status_new>=2?a("Button",{on:{click:function(e){return t.changeMenu("10")}}},[t._v("小票打印")]):t._e(),t.orderData._status_new>=3&&t.orderData.express_dump?a("Button",{class:t.openErp?"on":"",attrs:{disabled:t.openErp},on:{click:function(e){return t.changeMenu("11")}}},[t._v("电子面单打印\n ")]):t._e(),t.orderData.kuaidi_label?a("Button",{class:t.openErp?"on":"",attrs:{disabled:t.openErp},on:{click:function(e){return t.changeMenu("13")}}},[t._v("快递面单打印\n\t\t\t ")]):t._e(),[1,2,5].includes(t.orderData.refund_type)&&(parseFloat(t.orderData.pay_price)>parseFloat(t.orderData.refunded_price)||0==t.orderData.pay_price)&&!t.formType?a("Button",{class:t.openErp?"on":"",attrs:{disabled:t.openErp},on:{click:function(e){return t.changeMenu("5")}}},[t._v(t._s(2==t.orderData.refund_type?"同意退货":"立即退款")+"\n ")]):t._e(),[1,2,5].includes(t.orderData.refund_type)?a("Button",{class:t.openErp?"on":"",attrs:{disabled:t.openErp},on:{click:function(e){return t.changeMenu("7")}}},[t._v("不退款\n ")]):t._e(),t.formType?t._e():a("Button",{on:{click:function(e){return t.changeMenu("4")}}},[t._v("售后备注")]),1==t.orderData.is_del?a("Button",{class:t.openErp?"on":"",attrs:{disabled:t.openErp},on:{click:function(e){return t.changeMenu("9")}}},[t._v("删除订单\n ")]):t._e(),1!==t.orderData._status_new&&t.formType?a("Dropdown",{on:{"on-click":t.changeMenu}},[a("Button",{attrs:{icon:"ios-more"}}),a("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[1!==t.orderData._status_new||3===t.orderData._status_new&&t.orderData.use_integral>0&&t.orderData.use_integral>=t.orderData.back_integral?a("DropdownItem",{attrs:{name:"4"}},[t._v("订单备注\n ")]):t._e(),0!=t.orderData.refund_type&&1!=t.orderData.refund_type&&4!=t.orderData.refund_type&&6!=t.orderData.refund_type&&5!=t.orderData.refund_type||1!=t.orderData.paid||2===t.orderData.refund_status||!(parseFloat(t.orderData.pay_price)>0)||t.rowActive.split.length&&!t.rowActive.split.length||-1===t.orderData.pid?t._e():a("DropdownItem",{attrs:{disabled:t.openErp,name:"5"}},[t._v("立即退款\n ")]),4===t.orderData._status_new?a("DropdownItem",{attrs:{disabled:t.openErp,name:"8"}},[t._v("已收货")]):t._e(),t.orderData.paid?a("DropdownItem",{attrs:{name:"12"}},[t._v("打印配货单")]):t._e()],1)],1):t._e()],1):t._e()],1),a("ul",{staticClass:"list"},[a("li",{staticClass:"item"},[a("div",{staticClass:"title"},[t._v("订单状态")]),t.formType?a("div",{staticClass:"value1"},[a("span",{domProps:{innerHTML:t._s(t.orderData.status_name.status_name)}}),!t.orderData.is_all_refund&&t.orderData.refund.length?a("span",[t._v(",部分退款中")]):t._e(),t.orderData.is_all_refund&&t.orderData.refund.length&&6!=t.orderData.refund_type?a("span",[t._v(",退款中")]):t._e()]):a("div",[1==t.orderData.refund_type?a("div",{staticClass:"value1"},[t._v("\n 仅退款\n ")]):2==t.orderData.refund_type?a("div",{staticClass:"value1"},[t._v("\n 退货退款\n ")]):3==t.orderData.refund_type?a("div",{staticClass:"value1"},[t._v("\n 拒绝退款\n ")]):4==t.orderData.refund_type?a("div",{staticClass:"value1"},[t._v("\n 商品待退货\n ")]):5==t.orderData.refund_type?a("div",{staticClass:"value1"},[t._v("\n 退货待收货\n ")]):6==t.orderData.refund_type?a("div",{staticClass:"value2"},[t._v("\n 已退款\n ")]):t._e()])]),t.orderData.orderStatus?a("li",{staticClass:"item"},[a("div",{staticClass:"title"},[t._v("主订单状态")]),a("div",[a("div",[t._v("\n "+t._s(t.orderData.orderStatus._title)+"\n ")])])]):t._e(),a("li",{staticClass:"item"},[a("div",{staticClass:"title"},[t._v("实际支付")]),a("div",[t._v("\n ¥"+t._s(t.orderDatalist.orderInfo.paid>0?t.orderDatalist.orderInfo.pay_price:0)+"\n ")])]),t.formType?a("li",{staticClass:"item"},[a("div",{staticClass:"title"},[t._v("支付方式")]),a("div",[t._v(t._s(t.orderDatalist.orderInfo._status._payType||"-"))])]):a("li",{staticClass:"item"},[a("div",{staticClass:"title"},[t._v("退款件数")]),a("div",[t._v(t._s(t.orderDatalist.orderInfo.total_num||0))])]),t.formType?a("li",{staticClass:"item"},[a("div",{staticClass:"title"},[t._v("支付时间")]),a("div",[t._v(t._s(t.orderDatalist.orderInfo._pay_time||"-"))])]):a("li",{staticClass:"item"},[a("div",{staticClass:"title"},[t._v("退款时间")]),a("div",[t._v(t._s(t.orderDatalist.orderInfo._refund_time||"-"))])])])]),a("Tabs",{model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[a("TabPane",{attrs:{label:"订单信息",name:"detail"}},[t.formType?t._e():a("div",{staticClass:"section"},[a("div",{staticClass:"title"},[t._v("退款信息")]),a("ul",{staticClass:"list"},[a("li",{staticClass:"item"},[a("div",[t._v("退款原因:")]),a("div",{staticClass:"value"},[t._v("\n "+t._s(t.orderDatalist.orderInfo.refund_reason||"-")+"\n ")])]),parseFloat(t.orderDatalist.orderInfo.refund_price)||parseFloat(t.orderDatalist.orderInfo.refunded_price)?a("li",{staticClass:"item"},[a("div",[t._v("退款金额:")]),a("div",{staticClass:"value"},[t._v("\n "+t._s(parseFloat(t.orderDatalist.orderInfo.refunded_price)?parseFloat(t.orderDatalist.orderInfo.refunded_price):parseFloat(t.orderDatalist.orderInfo.refund_price)||0)+"\n ")])]):t._e(),parseFloat(t.orderDatalist.orderInfo.back_integral)?a("li",{staticClass:"item"},[a("div",[t._v("退回积分:")]),a("div",{staticClass:"value"},[t._v("\n "+t._s(parseFloat(t.orderDatalist.orderInfo.back_integral)||"-")+"\n ")])]):t._e(),a("li",{staticClass:"item"},[a("div",[t._v("退款说明:")]),a("div",{staticClass:"value"},[t._v("\n "+t._s(t.orderDatalist.orderInfo.refund_explain||"-")+"\n ")])]),a("li",{staticClass:"item"},[a("div",[t._v("退款凭证:")]),a("div",{staticClass:"value"},t._l(t.orderDatalist.orderInfo.refund_img,(function(t,e){return a("div",{directives:[{name:"viewer",rawName:"v-viewer"}],key:e,staticClass:"image"},[a("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t,expression:"img"}]})])})),0)])])]),!t.formType&&t.orderDatalist.orderInfo.refund_express_name?a("div",{staticClass:"section"},[a("div",{staticClass:"title"},[t._v("退货物流信息")]),a("ul",{staticClass:"list"},[a("li",{staticClass:"item"},[a("div",[t._v("物流公司:")]),a("div",{staticClass:"value"},[t._v("\n "+t._s(t.orderDatalist.orderInfo.refund_express_name||"-")+"\n ")])]),a("li",{staticClass:"item"},[a("div",[t._v("物流单号:")]),a("div",{staticClass:"value"},[t._v("\n "+t._s(t.orderDatalist.orderInfo.refund_express||"-")+"\n ")])]),a("li",{staticClass:"item"},[a("div",[t._v("联系电话:")]),a("div",{staticClass:"value"},[t._v("\n "+t._s(t.orderDatalist.orderInfo.refund_phone||"-")+"\n ")])]),a("li",{staticClass:"item"},[a("div",[t._v("退货说明:")]),a("div",{staticClass:"value"},[t._v("\n "+t._s(t.orderDatalist.orderInfo.refund_goods_explain||"-")+"\n ")])]),a("li",{staticClass:"item"},[a("div",[t._v("退货凭证:")]),a("div",{staticClass:"value"},t._l(t.orderDatalist.orderInfo.refund_goods_img,(function(t,e){return a("div",{directives:[{name:"viewer",rawName:"v-viewer"}],key:e,staticClass:"image"},[a("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t,expression:"img"}]})])})),0)])])]):t._e(),a("div",{staticClass:"section"},[a("div",{staticClass:"title"},[t._v("用户信息")]),a("ul",{staticClass:"list"},[a("li",{staticClass:"item"},[a("div",[t._v("用户UID:")]),a("div",{staticClass:"value"},[t._v("\n "+t._s(t.orderDatalist.userInfo.uid?t.orderDatalist.userInfo.uid:"游客")+"\n ")])]),a("li",{staticClass:"item"},[a("div",[t._v("用户昵称:")]),a("div",{staticClass:"value"},[t._v("\n "+t._s(t.orderDatalist.userInfo.uid?t.orderDatalist.userInfo.nickname:"游客")+"\n ")])]),a("li",{staticClass:"item"},[a("div",[t._v("绑定电话:")]),a("div",{staticClass:"value"},[t._v("\n "+t._s(t.orderDatalist.userInfo.phone||"-")+"\n ")])])])]),0==t.orderDatalist.orderInfo.product_type?a("div",{staticClass:"section"},[a("div",{staticClass:"title"},[t._v("收货信息")]),a("ul",{staticClass:"list"},[a("li",{staticClass:"item"},[a("div",{staticClass:"value"},[t._v("\n 收货人:"+t._s(t.orderDatalist.orderInfo.real_name||"-")+"\n ")])])]),a("ul",{staticClass:"list"},[a("li",{staticClass:"mt10"},[a("div",{staticClass:"value"},[t._v("\n 收货电话:"+t._s(t.orderDatalist.orderInfo.user_phone||"-")+"\n ")])])]),a("ul",{staticClass:"list"},[a("li",{staticClass:"mt10"},[a("div",{staticClass:"value"},[t._v("\n 收货地址:"+t._s(t.orderDatalist.orderInfo.user_address||"-")+"\n ")])])])]):t._e(),t.orderDatalist.orderInfo.fictitious_content&&1!=t.orderDatalist.orderInfo.cartInfo[0].product_type?a("div",{staticClass:"section"},[a("div",{staticClass:"title"},[t._v("虚拟发货")]),a("ul",{staticClass:"list"},[a("li",{staticClass:"item"},[a("div",{staticClass:"value"},[t._v("\n "+t._s(t.orderDatalist.orderInfo.fictitious_content)+"\n ")])])])]):t._e(),1==t.orderDatalist.orderInfo.cartInfo[0].product_type?a("div",{staticClass:"section"},[a("div",{staticClass:"title"},[t._v("卡密发货")]),t.orderDatalist.orderInfo.virtual.length?a("div",t._l(t.orderDatalist.orderInfo.virtual,(function(e,r){return a("div",{key:r,staticClass:"list"},[a("div",{staticClass:"item"},[a("div",[t._v("卡号"+t._s(r+1)+":")]),a("div",{staticClass:"value"},[t._v(t._s(e.card_no))])]),a("div",{staticClass:"item"},[a("div",[t._v("密码"+t._s(r+1)+":")]),a("div",{staticClass:"value"},[t._v(t._s(e.card_pwd))])])])})),0):a("ul",{staticClass:"list"},[a("li",{staticClass:"item"},[a("div",{staticClass:"value"},[t._v("\n "+t._s(t.orderDatalist.orderInfo.virtual_info||"-")+"\n ")])])])]):t._e(),t.orderDatalist.orderInfo.supplierInfo?a("div",{staticClass:"section"},[a("div",{staticClass:"title"},[t._v("供应商信息")]),a("ul",{staticClass:"list"},[a("li",{staticClass:"item"},[a("div",[t._v("供应商:")]),a("div",{staticClass:"value"},[t._v("\n "+t._s(t.orderDatalist.orderInfo.supplierInfo.supplier_name?t.orderDatalist.orderInfo.supplierInfo.supplier_name:"游客")+"\n ")])]),a("li",{staticClass:"item"},[a("div",[t._v("供应商姓名:")]),a("div",{staticClass:"value"},[t._v("\n "+t._s(t.orderDatalist.orderInfo.supplierInfo.name?t.orderDatalist.orderInfo.supplierInfo.name:"游客")+"\n ")])]),a("li",{staticClass:"item"},[a("div",[t._v("联系方式:")]),a("div",{staticClass:"value"},[t._v("\n "+t._s(t.orderDatalist.orderInfo.supplierInfo.phone||"-")+"\n ")])]),a("li",{staticClass:"item"},[a("div",[t._v("供应商邮箱:")]),a("div",{staticClass:"value"},[t._v("\n "+t._s(t.orderDatalist.orderInfo.supplierInfo.email||"-")+"\n ")])])])]):t._e(),a("div",{staticClass:"section"},[a("div",{staticClass:"title"},[t._v("订单信息")]),a("ul",{staticClass:"list"},[a("li",{staticClass:"item"},[a("div",[t._v("创建时间:")]),a("div",{staticClass:"value"},[t._v("\n "+t._s(t.orderDatalist.orderInfo._add_time||"-")+"\n ")])]),a("li",{staticClass:"item"},[a("div",[t._v("商品总数:")]),a("div",{staticClass:"value"},[t._v("\n "+t._s(t.orderDatalist.orderInfo.total_num||"-")+"\n ")])]),a("li",{staticClass:"item"},[a("div",[t._v("商品总价:")]),a("div",{staticClass:"value"},[t._v("\n ¥"+t._s(t.orderDatalist.orderInfo.total_price||"-")+"\n ")])]),a("li",{staticClass:"item"},[a("div",[t._v("优惠券金额:")]),a("div",{staticClass:"value"},[t._v("\n ¥"+t._s(t.orderDatalist.orderInfo.coupon_price||"-")+"\n ")])]),a("li",{staticClass:"item"},[a("div",[t._v("积分抵扣:")]),a("div",{staticClass:"value"},[t._v("\n ¥"+t._s(t.orderDatalist.orderInfo.deduction_price||0)+"\n ")])]),parseFloat(t.orderDatalist.orderInfo.use_integral)?a("li",{staticClass:"item"},[a("div",[t._v("使用积分:")]),a("div",{staticClass:"value"},[t._v("\n "+t._s(parseFloat(t.orderDatalist.orderInfo.use_integral))+"\n ")])]):t._e(),a("li",{staticClass:"item"},[a("div",[t._v("支付邮费:")]),a("div",{staticClass:"value"},[t._v("\n ¥"+t._s(t.orderDatalist.orderInfo.pay_postage||"-")+"\n ")])]),a("li",{staticClass:"item"},[a("div",[t._v("会员商品优惠:")]),a("div",{staticClass:"value"},[t._v("\n ¥"+t._s(t.orderDatalist.orderInfo.vip_true_price||0)+"\n ")])]),0!=t.orderDatalist.orderInfo.first_order_price?a("li",{staticClass:"item"},[a("div",[t._v("新人首单优惠:")]),a("div",{staticClass:"value"},[t._v("\n ¥"+t._s(t.orderDatalist.orderInfo.first_order_price)+"\n ")])]):t._e(),2===t.orderDatalist.orderInfo.shipping_type&&0===t.orderDatalist.orderInfo.refund_status&&1===t.orderDatalist.orderInfo.paid?a("li",{staticClass:"item"},[a("div",[t._v("门店名称:")]),a("div",{staticClass:"value"},[t._v("\n "+t._s(t.orderDatalist.orderInfo._store_name||"-")+"\n ")])]):t._e(),2===t.orderDatalist.orderInfo.shipping_type&&0===t.orderDatalist.orderInfo.refund_status&&1===t.orderDatalist.orderInfo.paid?a("li",{staticClass:"item"},[a("div",[t._v("核销码:")]),a("div",{staticClass:"value"},[t._v("\n "+t._s(t.orderDatalist.orderInfo.verify_code||"-")+"\n ")])]):t._e(),a("li",{staticClass:"item"},[a("div",[t._v("推广人:")]),a("div",{staticClass:"value"},[t._v("\n "+t._s(t.orderDatalist.userInfo.spread_name)+"/ID:"+t._s(t.orderDatalist.userInfo.spread_uid)+"\n ")])]),a("li",{staticClass:"item"},[a("div",[t._v("支付时间:")]),a("div",{staticClass:"value"},[t._v("\n "+t._s(t.orderDatalist.orderInfo._pay_time||"-")+"\n ")])]),a("li",{staticClass:"item"},[a("div",[t._v("支付方式:")]),a("div",{staticClass:"value"},[t._v("\n "+t._s(t.orderDatalist.orderInfo._status._payType||"-")+"\n ")])]),t.orderDatalist.orderInfo.store_order_sn?a("li",{staticClass:"item"},[a("div",[t._v("原订单号:")]),a("div",{staticClass:"value"},[t._v("\n "+t._s(t.orderDatalist.orderInfo.store_order_sn)+"\n ")])]):t._e(),t._l(t.orderDatalist.orderInfo.promotions_detail,(function(e,r){return a("li",{key:r,staticClass:"item"},[a("div",[t._v(t._s(e.title)+":")]),a("div",{staticClass:"value"},[t._v("\n ¥"+t._s(parseFloat(e.promotions_price).toFixed(2))+"\n ")])])}))],2)]),"express"===t.orderDatalist.orderInfo.delivery_type?a("div",{staticClass:"section"},[a("div",{staticClass:"title"},[t._v("物流信息")]),a("ul",{staticClass:"list"},[a("li",{staticClass:"item"},[a("div",[t._v("快递公司:")]),a("div",{staticClass:"value"},[t._v("\n "+t._s(t.orderDatalist.orderInfo.delivery_name||"-")+"\n ")])]),a("li",{staticClass:"item"},[a("div",[t._v("快递单号:")]),a("div",{staticClass:"value"},[t._v("\n "+t._s(t.orderDatalist.orderInfo.delivery_id)),a("span",{staticClass:"logisticsLook",on:{click:t.openLogistics}},[t._v("查询")])])])])]):t._e(),"send"===t.orderDatalist.orderInfo.delivery_type?a("div",{staticClass:"section"},[a("div",{staticClass:"title"},[t._v("配送信息")]),a("ul",{staticClass:"list"},[a("li",{staticClass:"item"},[a("div",[t._v("送货人姓名:")]),a("div",{staticClass:"value"},[t._v("\n "+t._s(t.orderDatalist.orderInfo.delivery_name||"-")+"\n ")])]),a("li",{staticClass:"item"},[a("div",[t._v("送货人电话:")]),a("div",{staticClass:"value"},[t._v("\n "+t._s(t.orderDatalist.orderInfo.delivery_id||"-")+"\n ")])])])]):t._e(),t.orderDatalist.orderInfo.custom_form.length&&t.isShow?a("div",{staticClass:"section"},[a("div",{staticClass:"title"},[t._v("自定义留言")]),a("ul",{staticClass:"list"},t._l(t.orderDatalist.orderInfo.custom_form,(function(e,r){return e.value&&-1==["uploadPicture","dateranges"].indexOf(e.name)||e.value.length&&-1!=["uploadPicture","dateranges"].indexOf(e.name)?a("li",{key:r,staticClass:"item"},[a("div",{staticClass:"txtVal"},[t._v(t._s(e.titleConfig.value)+":")]),"dateranges"===e.name?a("div",{staticClass:"value"},[t._v(t._s(e.value[0]+"/"+e.value[1]))]):"uploadPicture"===e.name?a("div",{staticClass:"value"},t._l(e.value,(function(t,e){return a("div",{directives:[{name:"viewer",rawName:"v-viewer"}],key:e,staticClass:"image"},[a("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t,expression:"img"}]})])})),0):a("div",{staticClass:"value"},[t._v(t._s(e.value||"-"))])]):t._e()})),0)]):t._e(),t.orderDatalist.orderInfo.mark?a("div",{staticClass:"section"},[a("div",{staticClass:"title"},[t._v("买家备注")]),a("ul",{staticClass:"list"},[a("li",{staticClass:"item"},[a("div",{staticClass:"value"},[t._v("\n "+t._s(t.orderDatalist.orderInfo.mark||"-")+"\n ")])])])]):t._e(),t.orderDatalist.orderInfo.remark?a("div",{staticClass:"section"},[a("div",{staticClass:"title"},[t._v("订单备注")]),a("ul",{staticClass:"list"},[a("li",{staticClass:"item"},[a("div",[t._v("备注:")]),a("div",{staticClass:"value"},[t._v("\n "+t._s(t.orderDatalist.orderInfo.remark||"-")+"\n ")])])])]):t._e(),t.orderDatalist.orderInfo.refuse_reason?a("div",{staticClass:"section"},[a("div",{staticClass:"title"},[t._v("拒绝退款原因")]),a("ul",{staticClass:"list"},[a("li",{staticClass:"item"},[a("div",{staticClass:"value"},[t._v("\n "+t._s(t.orderDatalist.orderInfo.refuse_reason)+"\n ")])])])]):t._e(),t.orderDatalist.orderInfo.invoice?a("div",{staticClass:"section"},[a("div",{staticClass:"title"},[t._v("发票信息")]),a("ul",{staticClass:"list"},[a("li",{staticClass:"item"},[a("div",[t._v("发票类型:")]),a("div",{staticClass:"value"},[t._v("\n "+t._s(t._f("invoiceType")(t.orderDatalist.orderInfo.invoice.type))+"\n ")])]),a("li",{staticClass:"item"},[a("div",[t._v("抬头类型:")]),a("div",{staticClass:"value"},[t._v("\n "+t._s(t._f("invoiceHeaderType")(t.orderDatalist.orderInfo.invoice.header_type))+"\n ")])]),a("li",{staticClass:"item"},[a("div",[t._v("发票抬头:")]),a("div",{staticClass:"value"},[t._v("\n "+t._s(t.orderDatalist.orderInfo.invoice.name||"-")+"\n ")])]),a("li",{staticClass:"item"},[a("div",[t._v("税号:")]),a("div",{staticClass:"value"},[t._v("\n "+t._s(t.orderDatalist.orderInfo.invoice.duty_number||"-")+"\n ")])]),a("li",{staticClass:"item"},[a("div",[t._v("邮箱:")]),a("div",{staticClass:"value"},[t._v("\n "+t._s(t.orderDatalist.orderInfo.invoice.email||"-")+"\n ")])]),a("li",{staticClass:"item"},[a("div",[t._v("开户银行:")]),a("div",{staticClass:"value"},[t._v("\n "+t._s(t.orderDatalist.orderInfo.invoice.bank||"-")+"\n ")])]),a("li",{staticClass:"item"},[a("div",[t._v("企业地址:")]),a("div",{staticClass:"value"},[t._v("\n "+t._s(t.orderDatalist.orderInfo.invoice.address||"-")+"\n ")])]),a("li",{staticClass:"item"},[a("div",[t._v("企业电话:")]),a("div",{staticClass:"value"},[t._v("\n "+t._s(t.orderDatalist.orderInfo.invoice.drawer_phone||"-")+"\n ")])])])]):t._e()]),a("TabPane",{attrs:{label:"商品信息",name:"product"}},[a("Table",{attrs:{columns:t.columns1,data:t.orderDatalist.orderInfo.cartInfo,"highlight-row":""},scopedSlots:t._u([{key:"product",fn:function(e){var r=e.row;return[a("Tooltip",{attrs:{theme:"dark","max-width":"300",delay:600}},[a("div",{staticClass:"product"},[a("div",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"image"},[a("img",{directives:[{name:"lazy",rawName:"v-lazy",value:r.productInfo.attrInfo?r.productInfo.attrInfo.image:r.productInfo.image,expression:"row.productInfo.attrInfo ? row.productInfo.attrInfo.image : row.productInfo.image"}]})]),a("div",{staticClass:"title"},[a("div",{staticClass:"line2"},[r.is_gift?a("span",{staticClass:"font-color-red"},[t._v("[赠品]")]):t._e(),t._v("\n "+t._s(r.productInfo.store_name)+" | "+t._s(r.productInfo.attrInfo?r.productInfo.attrInfo.suk:"")+"\n ")])])]),a("div",{attrs:{slot:"content"},slot:"content"},[a("div",[r.is_gift?a("p",{staticClass:"font-color-red"},[t._v("[赠品]")]):t._e(),a("p",[t._v(t._s(r.productInfo.store_name))]),a("p",[t._v(t._s(r.productInfo.attrInfo?r.productInfo.attrInfo.suk:""))])])])])]}}],null,!1,983416924)})],1),a("TabPane",{attrs:{label:"订单记录",name:"record"}},[a("Table",{attrs:{columns:t.columns2,data:t.recordData,loading:t.loading,"no-data-text":"暂无数据","highlight-row":"","no-filtered-data-text":"暂无筛选结果"}})],1),t.splitList.length?a("TabPane",{attrs:{label:"发货记录",name:"recordList"}},[a("Table",{attrs:{columns:t.columnSplit,data:t.splitList,loading:t.loading,"no-data-text":"暂无数据","highlight-row":"","no-filtered-data-text":"暂无筛选结果"},scopedSlots:t._u([{key:"order_id",fn:function(e){var r=e.row;return[a("div",[t._v(t._s(r.order_id))]),r.supplier_name?a("span",{staticClass:"supplierName"},[t._v("["+t._s(r.supplier_name)+"]")]):t._e(),r.store_name?a("span",{staticClass:"supplierName"},[t._v("["+t._s(r.store_name)+"]")]):t._e()]}},{key:"product",fn:function(e){var r=e.row;return[a("Tooltip",{attrs:{theme:"dark","max-width":"300",delay:600}},[t._l(r._info,(function(e,r){return a("div",{key:r,staticClass:"product productTime"},[a("div",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"image"},[a("img",{directives:[{name:"lazy",rawName:"v-lazy",value:e.cart_info.productInfo.attrInfo?e.cart_info.productInfo.attrInfo.image:e.cart_info.productInfo.image,expression:"j.cart_info.productInfo.attrInfo ? j.cart_info.productInfo.attrInfo.image : j.cart_info.productInfo.image"}]})]),a("div",{staticClass:"title"},[a("div",{staticClass:"line2"},[e.cart_info.is_gift?a("span",{staticClass:"font-color-red"},[t._v("[赠品]")]):t._e(),t._v("\n "+t._s(e.cart_info.productInfo.store_name)+" | "+t._s(e.cart_info.productInfo.attrInfo?e.cart_info.productInfo.attrInfo.suk:"")+"\n ")])])])})),a("div",{attrs:{slot:"content"},slot:"content"},t._l(r._info,(function(e,r){return a("div",{key:r},[e.cart_info.is_gift?a("p",{staticClass:"font-color-red"},[t._v("[赠品]")]):t._e(),a("p",[t._v(t._s(e.cart_info.productInfo.store_name))]),a("p",[t._v(t._s(e.cart_info.productInfo.attrInfo?e.cart_info.productInfo.attrInfo.suk:""))]),a("p",{staticClass:"tabBox_pice"},[t._v(t._s("¥"+e.cart_info.sum_price+" x "+e.cart_info.cart_num))])])})),0)],2)]}},{key:"deliveryInfo",fn:function(e){var r=e.row;return[r.add_time?a("div",[a("span",[t._v("创建时间:")]),t._v(t._s(r.add_time))]):t._e(),r.delivery_time?a("div",[a("span",[t._v("发货时间:")]),t._v(t._s(r.delivery_time))]):t._e(),"express"==r.delivery_type||"send"==r.delivery_type||"fictitious"==r.delivery_type?a("div",[t._v("\n 发货方式:\n "),"express"==r.delivery_type?a("span",[t._v("物流发货")]):t._e(),"send"==r.delivery_type?a("span",[t._v("送货")]):t._e(),"fictitious"==r.delivery_type?a("span",[t._v("虚拟发货")]):t._e()]):t._e(),r.delivery_name?a("div",[t._v("\n 快递公司:"+t._s(r.delivery_name)+"\n ")]):t._e(),r.delivery_id?["express"==r.delivery_type?a("div",{on:{click:function(e){return t.openItemLogistics(r)}}},[t._v("\n 快递单号:"),a("span",{staticStyle:{color:"#1890ff",cursor:"pointer"}},[t._v(t._s(r.delivery_id))])]):t._e(),"send"==r.delivery_type?a("div",[t._v("\n 快递单号:"),a("span",{staticStyle:{color:"#1890ff"}},[t._v(t._s(r.delivery_id))])]):t._e()]:t._e()]}},{key:"action",fn:function(e){var r=e.row;return e.index,[2!==r._status||r.supplier_name?t._e():a("a",{attrs:{disabled:t.openErp},on:{click:function(e){return t.distribution(r,1)}}},[t._v("分配")]),2!==r._status||r.supplier_name||0!=r.store_id?t._e():a("Divider",{attrs:{type:"vertical"}}),1===r._status?a("a",{attrs:{disabled:t.openErp},on:{click:function(e){return t.edit(r,1)}}},[t._v("编辑")]):t._e(),2!==r._status&&8!==r._status&&4!==r.status||1!==r.shipping_type||null!==r.pinkStatus&&2!==r.pinkStatus||r.supplier_name||0!=r.store_id?t._e():a("a",{attrs:{disabled:t.openErp},on:{click:function(e){return t.sendOrder(r,1)}}},[t._v("发送货")]),4!==r._status||r.split.length?t._e():a("a",{attrs:{disabled:t.openErp},on:{click:function(e){return t.delivery(r,1)}}},[t._v("配送信息")]),4===r._status&&!r.split.length&&r.supplier_name&&0==r.store_id?a("Divider",{attrs:{type:"vertical"}}):t._e(),2==r.shipping_type&&0==r.status&&1==r.paid&&0===r.refund_status?a("a",{attrs:{disabled:t.openErp},on:{click:function(e){return t.bindWrite(r,1)}}},[t._v("立即核销")]):t._e(),r.supplier_name&&"未发货"==r.status_name.status_name?a("a",{attrs:{disabled:t.openErp},on:{click:function(e){return t.btnClick(r)}}},[t._v("提醒发货")]):t._e(),1===r._status||(2===r._status||r.split.length)&&1===r.shipping_type&&(null===r.pinkStatus||2===r.pinkStatus)||4===r._status||2==r.shipping_type&&0==r.status&&1==r.paid&&0===r.refund_status||r.supplier_name&&r.supplier_name&&"未发货"==r.status_name.status_name?a("Divider",{attrs:{type:"vertical"}}):t._e(),[a("Dropdown",{attrs:{transfer:!0},on:{"on-click":function(e){return t.changeMenu("",r,e,1)}}},[a("a",{attrs:{href:"javascript:void(0)"}},[t._v("\n 更多\n "),a("Icon",{attrs:{type:"ios-arrow-down"}})],1),a("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[a("DropdownItem",{directives:[{name:"show",rawName:"v-show",value:1===r._status&&0===r.paid&&"offline"===r.pay_type,expression:"\n row._status === 1 &&\n row.paid === 0 &&\n row.pay_type === 'offline'\n "}],ref:"ones",attrs:{disabled:t.openErp,name:"1"}},[t._v("立即支付")]),a("DropdownItem",{attrs:{disabled:t.openErp,name:"3"}},[t._v("订单记录")]),a("DropdownItem",{directives:[{name:"show",rawName:"v-show",value:r._status>=3&&r.express_dump,expression:"row._status >= 3 && row.express_dump"}],attrs:{disabled:t.openErp,name:"11"}},[t._v("电子面单打印")]),a("DropdownItem",{directives:[{name:"show",rawName:"v-show",value:r._status>=2,expression:"row._status >= 2"}],attrs:{name:"10"}},[t._v("小票打印")]),a("DropdownItem",{directives:[{name:"show",rawName:"v-show",value:1!==r._status||3===r._status&&r.use_integral>0&&r.use_integral>=r.back_integral,expression:"\n row._status !== 1 ||\n (row._status === 3 &&\n row.use_integral > 0 &&\n row.use_integral >= row.back_integral)\n "}],attrs:{name:"4"}},[t._v("订单备注")]),a("DropdownItem",{directives:[{name:"show",rawName:"v-show",value:2!=r.refund_type&&4!=r.refund_type&&6!=r.refund_type&&1==r.paid&&2!==r.refund_status&&parseFloat(r.pay_price)>0&&(null==r.split||0==r.split.length),expression:"\n row.refund_type != 2 &&\n row.refund_type != 4 &&\n row.refund_type != 6 &&\n row.paid == 1 &&\n row.refund_status !== 2 &&\n parseFloat(row.pay_price) > 0 &&\n (row.split == null || row.split.length == 0)\n "}],attrs:{disabled:t.openErp,name:"5"}},[t._v("立即退款")]),a("DropdownItem",{directives:[{name:"show",rawName:"v-show",value:2==r.refund_type,expression:"row.refund_type == 2"}],attrs:{disabled:t.openErp,name:"55"}},[t._v("同意退货")]),a("DropdownItem",{directives:[{name:"show",rawName:"v-show",value:4===r._status&&!r.split.length,expression:"row._status === 4 && !row.split.length"}],attrs:{disabled:t.openErp,name:"8"}},[t._v("已收货")]),1==r.is_del?a("DropdownItem",{attrs:{disabled:t.openErp,name:"9"}},[t._v("删除订单")]):t._e()],1)],1)]]}}],null,!1,3569045510)})],1):t._e()],1)],1):t._e()]),a("Modal",{staticClass:"order_box2",attrs:{scrollable:"",title:"物流查询",width:"350"},model:{value:t.modal2,callback:function(e){t.modal2=e},expression:"modal2"}},[a("div",{staticClass:"logistics acea-row row-top"},[a("div",{staticClass:"logistics_img"},[a("img",{attrs:{src:r("bd9b")}})]),a("div",{staticClass:"logistics_cent"},[a("span",[t._v("物流公司:"+t._s(t.logisticsChecked.delivery_name))]),a("span",[t._v("物流单号:"+t._s(t.logisticsChecked.delivery_id))])])]),a("div",{staticClass:"acea-row row-column-around trees-coadd"},[a("div",{staticClass:"scollhide"},[a("Timeline",t._l(t.result,(function(e,r){return a("TimelineItem",{key:r},[a("p",{staticClass:"time",domProps:{textContent:t._s(e.time)}}),a("p",{staticClass:"content",domProps:{textContent:t._s(e.status)}})])})),1)],1)])])],1)}),[],!1,null,"1b6933c6",null);e.a=d.exports}}]);