(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]*>(.*?)\\1>").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+="