(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-5201e01a"],{"008d":function(e,t,a){},"0345":function(e,t,a){},"0d50":function(e,t,a){"use strict";var r=a("5b76");a.n(r).a},"0d8f":function(e,t,a){"use strict";a.r(t);var r=a("a584"),s=a("a34a"),i=a.n(s),n=a("2f62"),o=a("b7be"),l=a("f8b7");function c(e,t,a,r,s,i,n){try{var o=e[i](n),l=o.value}catch(e){return void a(e)}o.done?t(l):Promise.resolve(l).then(r,s)}function d(e){return function(){var t=this,a=arguments;return new Promise((function(r,s){var i=e.apply(t,a);function n(e){c(i,r,s,n,o,"next",e)}function o(e){c(i,r,s,n,o,"throw",e)}n(void 0)}))}}var u={name:"orderSend",props:{isAll:{type:Number,default:1},ids:{type:Array,default:function(){return[]}},where:{type:Object,default:function(){return{}}}},data:function(){return{formItem:{type:"1",express_record_type:"2",delivery_name:"",delivery_id:"",express_temp_id:"",to_name:"",to_tel:"",to_addr:"",sh_delivery:"",fictitious_content:""},modals:!1,express:[],expressTemp:[],deliveryList:[],temp:{},export_open:!0}},watch:{"formItem.express_temp_id":function(e){}},methods:{changeRadio:function(e){switch(this.$refs.formItem.resetFields(),e){case"1":this.formItem.delivery_name="",this.formItem.delivery_id="",this.formItem.express_temp_id="",this.formItem.express_record_type="2",this.expressTemp=[];break;case"2":this.formItem.sh_delivery="",this.formItem.express_record_type="1";break;case"3":this.formItem.fictitious_content="",this.formItem.express_record_type="1"}},changeExpress:function(e){switch(e){case"2":this.formItem.delivery_name="",this.formItem.express_temp_id="",this.expressTemp=[];break;case"1":this.formItem.delivery_name="",this.formItem.delivery_id=""}},reset:function(){this.formItem={type:"1",express_record_type:"2",delivery_name:"",delivery_id:"",express_temp_id:"",expressTemp:[],to_name:"",to_tel:"",to_addr:"",sh_delivery:"",fictitious_content:""}},getList:function(){var e=this;Object(l.j)(1).then(function(){var t=d(i.a.mark((function t(a){return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.express=a.data,e.getSheetInfo();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)}))},putSend:function(e){var t=this,a=Object.assign(this.formItem),r=[];if(this.ids.forEach((function(e){r.push(e.id)})),1==this.isAll?(a.all=1,a.where=this.where):(a.all=0,a.ids=r),"1"===this.formItem.type){if(""===this.formItem.delivery_name)return this.$Message.error("快递公司不能为空");if(""===this.formItem.express_temp_id)return this.$Message.error("电子面单不能为空");if(""===this.formItem.to_name)return this.$Message.error("寄件人姓名不能为空");if(""===this.formItem.to_tel)return this.$Message.error("寄件人电话不能为空");if(!/^1(3|4|5|7|8|9|6)\d{9}$/i.test(this.formItem.to_tel))return this.$Message.error("请输入正确的手机号码");if(""===this.formItem.to_addr)return this.$Message.error("寄件人地址不能为空")}if("2"===this.formItem.type&&(this.formItem.express_temp_id&&(this.formItem.express_temp_id=""),""===this.formItem.sh_delivery))return this.$Message.error("送货人不能为空");Object(l.G)(a).then(function(){var e=d(i.a.mark((function e(a){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.modals=!1,t.$Message.success(a.msg),t.reset();case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.$Message.error(e.msg),t.modals=!1}))},cancel:function(e){this.modals=!1,this.reset()},expressChange:function(e){var t=this,a=this.express.find((function(t){return t.value===e}));a&&(this.formItem.delivery_code=a.code,"1"===this.formItem.type&&(this.expressTemp=[],this.formItem.express_temp_id="",Object(l.w)({com:this.formItem.delivery_code}).then((function(e){t.expressTemp=e.data,e.data.length||t.$Message.error("请配置你所选快递公司的电子面单")})).catch((function(e){t.$Message.error(e.msg)}))))},getDeliveryList:function(){var e=this;Object(l.u)().then((function(t){e.deliveryList=t.data.list})).catch((function(t){e.$Message.error(t.msg)}))},getSheetInfo:function(){var e=this;Object(l.F)().then((function(t){var a=t.data;for(var r in a)a.hasOwnProperty(r)&&"express_temp_id"!==r&&(e.formItem[r]=a[r]);e.export_open=void 0===a.export_open||a.export_open,e.export_open||(e.formItem.express_record_type="1"),e.formItem.to_addr=a.to_add})).catch((function(t){e.$Message.error(t.msg)}))},shDeliveryChange:function(e){var t=this.deliveryList.find((function(t){return t.id===e}));this.formItem.sh_delivery_name=t.wx_name,this.formItem.sh_delivery_id=t.phone,this.formItem.sh_delivery_uid=t.uid},expressTempChange:function(e){this.temp=this.expressTemp.find((function(t){return e===t.temp_id}))},preview:function(){this.$refs.viewer.$viewer.show()}}},m=(a("1665"),a("2877")),f=Object(m.a)(u,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("Modal",{staticClass:"order_box",attrs:{scrollable:"",title:"订单发送货",closable:!1},model:{value:e.modals,callback:function(t){e.modals=t},expression:"modals"}},[a("Form",{ref:"formItem",attrs:{model:e.formItem,"label-width":100},nativeOn:{submit:function(e){e.preventDefault()}}},[a("FormItem",{attrs:{label:"选择类型:"}},[a("RadioGroup",{on:{"on-change":e.changeRadio},model:{value:e.formItem.type,callback:function(t){e.$set(e.formItem,"type",t)},expression:"formItem.type"}},[a("Radio",{attrs:{label:"1"}},[e._v("打印电子面单")]),a("Radio",{attrs:{label:"2"}},[e._v("送货")]),a("Radio",{attrs:{label:"3"}},[e._v("虚拟")])],1)],1),a("div",{directives:[{name:"show",rawName:"v-show",value:"1"===e.formItem.type,expression:"formItem.type === '1'"}]},[a("FormItem",{attrs:{label:"快递公司:"}},[a("Select",{staticClass:"input-add",attrs:{filterable:"",placeholder:"请选择快递公司"},on:{"on-change":e.expressChange},model:{value:e.formItem.delivery_name,callback:function(t){e.$set(e.formItem,"delivery_name",t)},expression:"formItem.delivery_name"}},e._l(e.express,(function(t,r){return a("Option",{key:t.value,attrs:{value:t.value}},[e._v(e._s(t.value))])})),1)],1),"1"===e.formItem.type?[a("FormItem",{staticClass:"express_temp_id",attrs:{label:"电子面单:"}},[a("Select",{staticClass:"input-add",attrs:{placeholder:"请选择电子面单"},on:{"on-change":e.expressTempChange},model:{value:e.formItem.express_temp_id,callback:function(t){e.$set(e.formItem,"express_temp_id",t)},expression:"formItem.express_temp_id"}},e._l(e.expressTemp,(function(t,r){return a("Option",{key:r,attrs:{value:t.temp_id}},[e._v(e._s(t.title))])})),1),e.formItem.express_temp_id?a("Button",{attrs:{type:"text"},on:{click:e.preview}},[e._v("预览")]):e._e()],1),a("FormItem",{attrs:{label:"寄件人姓名:"}},[a("Input",{staticClass:"input-add",attrs:{placeholder:"请输入寄件人姓名"},model:{value:e.formItem.to_name,callback:function(t){e.$set(e.formItem,"to_name",t)},expression:"formItem.to_name"}})],1),a("FormItem",{attrs:{label:"寄件人电话:"}},[a("Input",{staticClass:"input-add",attrs:{placeholder:"请输入寄件人电话"},model:{value:e.formItem.to_tel,callback:function(t){e.$set(e.formItem,"to_tel",t)},expression:"formItem.to_tel"}})],1),a("FormItem",{attrs:{label:"寄件人地址:"}},[a("Input",{staticClass:"input-add",attrs:{placeholder:"请输入寄件人地址"},model:{value:e.formItem.to_addr,callback:function(t){e.$set(e.formItem,"to_addr",t)},expression:"formItem.to_addr"}})],1)]:e._e()],2),a("div",{directives:[{name:"show",rawName:"v-show",value:"2"===e.formItem.type,expression:"formItem.type === '2'"}]},[a("FormItem",{attrs:{label:"送货人:"}},[a("Select",{staticClass:"input-add",attrs:{placeholder:"请选择送货人"},on:{"on-change":e.shDeliveryChange},model:{value:e.formItem.sh_delivery,callback:function(t){e.$set(e.formItem,"sh_delivery",t)},expression:"formItem.sh_delivery"}},e._l(e.deliveryList,(function(t,r){return a("Option",{key:r,attrs:{value:t.id}},[e._v(e._s(t.wx_name)+"("+e._s(t.phone)+")")])})),1)],1)],1),a("div",{directives:[{name:"show",rawName:"v-show",value:"3"===e.formItem.type,expression:"formItem.type === '3'"}]},[a("FormItem",{attrs:{label:"备注:"}},[a("Input",{staticClass:"input-add",attrs:{type:"textarea",autosize:{minRows:2,maxRows:5},placeholder:"备注"},model:{value:e.formItem.fictitious_content,callback:function(t){e.$set(e.formItem,"fictitious_content",t)},expression:"formItem.fictitious_content"}})],1)],1)],1),a("div",{attrs:{slot:"footer"},slot:"footer"},[a("Button",{on:{click:e.cancel}},[e._v("取消")]),a("Button",{attrs:{type:"primary"},on:{click:e.putSend}},[e._v("提交")])],1),a("div",{directives:[{name:"viewer",rawName:"v-viewer"},{name:"show",rawName:"v-show",value:e.temp,expression:"temp"}],ref:"viewer"},[a("img",{staticStyle:{display:"none"},attrs:{src:e.temp.pic}})])],1)}),[],!1,null,"74301c68",null).exports;function h(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function p(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}var v={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",fixed:"right",width:150,align:"center"}],data1:[],page1:{total:0,pageNum:1,pageSize:10},formValidate:{type:"",status:"",data:""},options:{shortcuts:[{text:"今天",value:function(){var e=new Date,t=new Date;return t.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate())),[t,e]}},{text:"昨天",value:function(){var e=new Date,t=new Date;return t.setTime(t.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-1))),e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-1))),[t,e]}},{text:"最近7天",value:function(){var e=new Date,t=new Date;return t.setTime(t.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-6))),[t,e]}},{text:"最近30天",value:function(){var e=new Date,t=new Date;return t.setTime(t.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-29))),[t,e]}},{text:"上月",value:function(){var e=new Date,t=new Date,a=new Date(t.getFullYear(),t.getMonth(),0).getDate();return t.setTime(t.setTime(new Date((new Date).getFullYear(),(new Date).getMonth()-1,1))),e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth()-1,a))),[t,e]}},{text:"本月",value:function(){var e=new Date,t=new Date;return t.setTime(t.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),1))),[t,e]}},{text:"本年",value:function(){var e=new Date,t=new Date;return t.setTime(t.setTime(new Date((new Date).getFullYear(),0,1))),[t,e]}}]},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(e){for(var t=1;t确认停止该任务?

",onOk:function(){a.stopQueue(e.id)}});break;case"4":this.queueDel(e.id,e.type)}},queueAgain:function(e,t){var a=this;Object(l.M)(e,t).then((function(e){a.$Message.success(e.msg),a.getQueue()})).catch((function(e){a.$Message.error(e.msg)}))},queueDel:function(e,t){var a=this;Object(l.N)(e,t).then((function(e){a.$Message.success(e.msg),a.getQueue()})).catch((function(e){a.$Message.error(e.msg)}))},stopQueue:function(e){var t=this;Object(l.V)(e).then((function(e){t.$Message.success(e.msg),t.getQueue()})).catch((function(e){t.$Message.error(e.msg)}))}}},g=Object(m.a)(v,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("Modal",{attrs:{title:"任务列表",width:"1000","footer-hide":""},model:{value:e.modal,callback:function(t){e.modal=t},expression:"modal"}},[a("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":""}},[a("Form",{ref:"formValidate",staticClass:"tabform",attrs:{model:e.formValidate,"label-width":e.labelWidth,"label-position":e.labelPosition},nativeOn:{submit:function(e){e.preventDefault()}}},[a("Row",{attrs:{gutter:24,type:"flex"}},[a("Col",{attrs:{span:"10"}},[a("FormItem",{attrs:{label:"操作时间:"}},[a("DatePicker",{staticStyle:{width:"90%"},attrs:{editable:!1,value:e.timeVal,format:"yyyy/MM/dd",type:"datetimerange",placement:"bottom-start",placeholder:"自定义时间",options:e.options},on:{"on-change":e.onchangeTime}})],1)],1),a("Col",{attrs:{span:"7"}},[a("FormItem",{attrs:{label:"类型:"}},[a("Select",{attrs:{clearable:""},on:{"on-change":e.typeSearchs},model:{value:e.formValidate.type,callback:function(t){e.$set(e.formValidate,"type",t)},expression:"formValidate.type"}},e._l(e.typeList,(function(t){return a("Option",{key:t.value,attrs:{value:t.value}},[e._v(e._s(t.label))])})),1)],1)],1),a("Col",{attrs:{span:"7"}},[a("FormItem",{attrs:{label:"状态:"}},[a("Select",{attrs:{clearable:""},on:{"on-change":e.statusSearchs},model:{value:e.formValidate.status,callback:function(t){e.$set(e.formValidate,"status",t)},expression:"formValidate.status"}},e._l(e.statusList,(function(t){return a("Option",{key:t.value,attrs:{value:t.value}},[e._v(e._s(t.label))])})),1)],1)],1)],1)],1),a("Table",{staticClass:"mt25",attrs:{height:"530",columns:e.columns1,data:e.data1,loading:e.loading},scopedSlots:e._u([{key:"action",fn:function(t){var r=t.row;return t.index,[r.is_show_log?[a("a",{on:{click:function(t){return e.deliveryLook(r)}}},[e._v("查看")]),a("Divider",{attrs:{type:"vertical"}})]:e._e(),[a("Dropdown",{on:{"on-click":function(t){return e.changeMenu(r,t)}}},[a("a",[e._v("更多"),a("Icon",{attrs:{type:"ios-arrow-down"}})],1),a("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[a("DropdownItem",{attrs:{name:"1"}},[e._v("下载")]),a("DropdownItem",{attrs:{name:"2"}},[e._v("重新执行")]),r.is_stop_button?a("DropdownItem",{attrs:{name:"3"}},[e._v("停止任务")]):e._e(),r.is_error_button?a("DropdownItem",{attrs:{name:"4"}},[e._v("清除异常任务")]):e._e()],1)],1)]]}}])}),a("div",{staticClass:"acea-row row-right page"},[a("Page",{attrs:{total:e.page1.total,current:e.page1.pageNum,"show-elevator":"","show-total":"","page-size":e.page1.pageSize,"show-sizer":""},on:{"on-change":e.pageChange,"on-page-size-change":e.limitChange}})],1)],1),a("Modal",{attrs:{width:"900","footer-hide":""},model:{value:e.modal1,callback:function(t){e.modal1=t},expression:"modal1"}},[a("Table",{staticClass:"mt25",attrs:{height:"500",columns:e.columns4,data:e.data2,loading:e.loading2}}),a("div",{staticClass:"acea-row row-right page"},[a("Page",{attrs:{total:e.page2.total,current:e.page2.pageNum,"show-elevator":"","show-total":"","page-size":e.page2.pageSize,"show-sizer":""},on:{"on-change":e.pageChange2,"on-page-size-change":e.limitChange2}})],1)],1)],1)}),[],!1,null,null,null).exports,_=a("d708"),b=a("c276"),y=a("2e83");function w(e,t,a,r,s,i,n){try{var o=e[i](n),l=o.value}catch(e){return void a(e)}o.done?t(l):Promise.resolve(l).then(r,s)}function D(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function I(e){for(var t=1;t您选择的的订单存在用户未删除的订单,无法删除用户未删除的订单!

"})},del:function(e){this.modals2=!1,this.writeOffFrom.confirm=0,this.$refs[e].resetFields()},handleSubmit:function(){this.$emit("on-submit",this.data)},Refresh:function(){this.$emit("getList")},handleReset:function(){this.$refs.form.resetFields(),this.$emit("on-reset")},getToken:function(){this.uploadHeaders["Authori-zation"]="Bearer "+b.a.cookies.get("token")},uploadSuccess:function(e,t,a){200===e.status?(this.$Message.success(e.msg),this.file=e.data.src,this.fileList=a):this.$Message.error(e.msg)},removeFile:function(e,t){this.file="",this.fileList=t},manualModalOk:function(){var e=this;this.$refs.upload.clearFiles(),Object(l.r)({file:this.file}).then((function(t){e.$Message.success(t.msg),e.fileList=[]})).catch((function(t){e.$Message.error(t.msg),e.fileList=[]}))},manualModalCancel:function(){this.fileList=[],this.$refs.upload.clearFiles()},autoModalOk:function(){"全部"==this.isAll||this.formSelection.length?(this.$refs.send.modals=!0,this.$refs.send.getList(),this.$refs.send.getDeliveryList()):this.$Message.error("请选择本页订单")},autolModalCancel:function(){},submitFail:function(){Object(l.G)()},queuemModal:function(){this.$refs.queue.modal=!0},onAuto:function(){this.$refs.sends.modals=!0,this.$refs.sends.getList(),this.$refs.sends.getDeliveryList()},getExpressList:function(){var e=this;Object(l.e)().then((function(e){window.open(e.data[0])})).catch((function(t){e.$Message.error(t.msg)}))}})},C=(a("ea07"),Object(m.a)(O,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"table_box"},[a("Form",{ref:"orderData",staticClass:"tabform",attrs:{inline:"",model:e.orderData,"label-width":e.labelWidth,"label-position":e.labelPosition},nativeOn:{submit:function(e){e.preventDefault()}}},[a("FormItem",{attrs:{label:"订单状态:"}},[a("Select",{staticClass:"width25",attrs:{placeholder:"请选择",clearable:""},on:{"on-change":function(t){return e.selectChange2(e.orderData.status)}},model:{value:e.orderData.status,callback:function(t){e.$set(e.orderData,"status",t)},expression:"orderData.status"}},[a("Option",{attrs:{value:""}},[e._v("全部")]),a("Option",{attrs:{value:"1"}},[e._v("未发货")]),a("Option",{attrs:{value:"2"}},[e._v("待收货")]),a("Option",{attrs:{value:"3"}},[e._v("交易完成")])],1)],1),a("FormItem",{attrs:{label:"创建时间:"}},[a("DatePicker",{staticClass:"mr20 width30",attrs:{editable:!1,value:e.timeVal,format:"yyyy/MM/dd HH:mm:ss",type:"datetimerange",placement:"bottom-start",placeholder:"自定义时间",options:e.options},on:{"on-change":e.onchangeTime}})],1),a("FormItem",{attrs:{label:"搜索:",prop:"real_name","label-for":"real_name"}},[a("Input",{staticClass:"width25",attrs:{placeholder:"请输入","element-id":"name"},model:{value:e.orderData.real_name,callback:function(t){e.$set(e.orderData,"real_name",t)},expression:"orderData.real_name"}},[a("Select",{staticStyle:{width:"80px"},attrs:{slot:"prepend"},slot:"prepend",model:{value:e.orderData.field_key,callback:function(t){e.$set(e.orderData,"field_key",t)},expression:"orderData.field_key"}},[a("Option",{attrs:{value:"all"}},[e._v("全部")]),a("Option",{attrs:{value:"order_id"}},[e._v("订单号")]),a("Option",{attrs:{value:"uid"}},[e._v("UID")]),a("Option",{attrs:{value:"real_name"}},[e._v("用户姓名")]),a("Option",{attrs:{value:"user_phone"}},[e._v("用户电话")]),a("Option",{attrs:{value:"store_name"}},[e._v("商品名称(模糊)")])],1)],1)],1),a("FormItem",[a("Button",{staticClass:"mr14",attrs:{type:"primary"},on:{click:e.orderSearch}},[e._v("查询")]),a("Button",{staticClass:"export",on:{click:e.exports}},[e._v("导出")])],1)],1)],1)}),[],!1,null,"0f6a6c14",null).exports),k={name:"table-expand",props:{row:Object}},$=(a("3d0b"),Object(m.a)(k,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("Row",{staticClass:"expand-row"},[a("Col",{attrs:{span:"8"}},[a("span",{staticClass:"expand-key"},[e._v("用户备注:")]),a("span",{staticClass:"expand-value",domProps:{textContent:e._s(e.row.mark?e.row.mark:"无")}})]),a("Col",{attrs:{span:"8"}},[a("span",{staticClass:"expand-key"},[e._v("商家备注:")]),a("span",{staticClass:"expand-value",domProps:{textContent:e._s(e.row.remark?e.row.remark:"无")}})])],1)],1)}),[],!1,null,"6c5bf1a8",null).exports),M=a("0fc4"),T=a("31b4");function L(e,t,a,r,s,i,n){try{var o=e[i](n),l=o.value}catch(e){return void a(e)}o.done?t(l):Promise.resolve(l).then(r,s)}function j(e){return function(){var t=this,a=arguments;return new Promise((function(r,s){var i=e.apply(t,a);function n(e){L(i,r,s,n,o,"next",e)}function o(e){L(i,r,s,n,o,"throw",e)}n(void 0)}))}}var S={name:"orderDetails",data:function(){return{modal2:!1,modals:!1,grid:{xl:8,lg:8,md:12,sm:24,xs:24},result:[],columns1:[{title:"商品信息",slot:"product",align:"center",minWidth:400},{title:"积分兑换",slot:"integral",align:"center"},{title:"金额兑换",slot:"price",align:"center"},{title:"数量",key:"cart_num",align:"center"},{title:"小计",align:"center",render:function(e,t){return e("div",(t.row.attrInfo?t.row.attrInfo.integral:t.row.integral)*t.row.cart_num+"积分+¥"+(t.row.attrInfo?t.row.attrInfo.price:t.row.price)*t.row.cart_num)}}],columns2:[{title:"订单ID",key:"oid",align:"center",minWidth:40},{title:"操作记录",key:"change_message",align:"center",minWidth:280},{title:"操作时间",key:"change_time",align:"center",minWidth:100}],recordData:[],activeName:"detail",orderData:{}}},props:{orderDatalist:Object,orderId:Number,rowActive:Object,openErp:{type:Boolean,default:!1}},watch:{orderDatalist:function(e){this.orderData=e.orderInfo,this.getList(e.orderInfo.id)}},methods:{openLogistics:function(){this.getOrderData(),this.modal2=!0},getOrderData:function(){var e=this;Object(o.G)(this.orderId).then(function(){var t=j(i.a.mark((function t(a){return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.result=a.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)}))},getList:function(e){var t=this,a={id:e,datas:this.page};this.loading=!0,Object(o.K)(a).then(function(){var e=j(i.a.mark((function e(a){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.recordData=a.data,t.loading=!1;case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.loading=!1,t.$Message.error(e.msg)}))},changeMenu:function(e){this.$parent.changeMenu(this.rowActive,e)},sendOrder:function(){this.$parent.sendOrder(this.rowActive)},delivery:function(){this.$parent.delivery(this.rowActive)}},computed:{}},F=(a("4510"),a("8dfe"),Object(m.a)(S,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[r("Drawer",{attrs:{closable:!1,width:"1000","class-name":"order_box",styles:{padding:0}},model:{value:e.modals,callback:function(t){e.modals=t},expression:"modals"}},[e.orderDatalist?r("div",[r("div",{staticClass:"head"},[r("div",{staticClass:"full"},[r("Icon",{attrs:{custom:"iconfont icondingdan",size:"60"}}),r("div",{staticClass:"text"},[r("div",{staticClass:"title"},[e._v("积分订单")]),r("div",[e._v("订单编号:"+e._s(e.orderDatalist.orderInfo.order_id))])]),r("div",[1===e.orderData.status?r("Button",{class:e.openErp?"on":"",attrs:{disabled:e.openErp},on:{click:e.sendOrder}},[e._v("发送货")]):e._e(),2===e.orderData.status?r("Button",{class:e.openErp?"on":"",attrs:{disabled:e.openErp},on:{click:e.delivery}},[e._v("配送信息")]):e._e(),e.orderData.status>=1?r("Button",{on:{click:function(t){return e.changeMenu("10")}}},[e._v("小票打印")]):e._e(),e.orderData.status>=1&&e.orderData.express_dump?r("Button",{class:e.openErp?"on":"",attrs:{disabled:e.openErp},on:{click:function(t){return e.changeMenu("11")}}},[e._v("电子面单打印")]):e._e(),1==e.orderData.is_del?r("Button",{class:e.openErp?"on":"",attrs:{disabled:e.openErp},on:{click:function(t){return e.changeMenu("9")}}},[e._v("删除订单")]):e._e(),4!==e.orderData.status?r("Dropdown",{on:{"on-click":e.changeMenu}},[r("Button",{attrs:{icon:"ios-more"}}),r("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[4!==e.orderData.status?r("DropdownItem",{attrs:{name:"4"}},[e._v("订单备注")]):e._e(),2===e.orderData.status?r("DropdownItem",{attrs:{disabled:e.openErp,name:"8"}},[e._v("已收货")]):e._e()],1)],1):e._e()],1)],1),r("ul",{staticClass:"list"},[r("li",{staticClass:"item"},[r("div",{staticClass:"title"},[e._v("订单状态")]),r("div",{staticClass:"value1"},[e._v(e._s(e.orderDatalist.orderInfo.status_name||"-"))])]),r("li",{staticClass:"item"},[r("div",{staticClass:"title"},[e._v("兑换积分")]),r("div",[e._v(e._s(e.orderDatalist.orderInfo.integral||"-"))])]),r("li",{staticClass:"item"},[r("div",{staticClass:"title"},[e._v("兑换金额")]),r("div",[e._v(e._s(e.orderDatalist.orderInfo.price||"-"))])]),r("li",{staticClass:"item"},[r("div",{staticClass:"title"},[e._v("兑换时间")]),r("div",[e._v(e._s(e.orderDatalist.orderInfo.add_time||"-"))])])])]),r("Tabs",{model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[r("TabPane",{attrs:{label:"订单信息",name:"detail"}},[r("div",{staticClass:"section"},[r("div",{staticClass:"title"},[e._v("用户信息")]),r("ul",{staticClass:"list"},[r("li",{staticClass:"item"},[r("div",[e._v("用户昵称:")]),r("div",{staticClass:"value"},[e._v(e._s(e.orderDatalist.userInfo.uid?e.orderDatalist.userInfo.nickname:"游客"))])]),r("li",{staticClass:"item"},[r("div",[e._v("绑定电话:")]),r("div",{staticClass:"value"},[e._v(e._s(e.orderDatalist.userInfo.phone||"-"))])])])]),r("div",{staticClass:"section"},[r("div",{staticClass:"title"},[e._v("收货信息")]),r("ul",{staticClass:"list"},[r("li",{staticClass:"item"},[r("div",[e._v("收货人:")]),r("div",{staticClass:"value"},[e._v(e._s(e.orderDatalist.orderInfo.real_name||"-"))])]),r("li",{staticClass:"item"},[r("div",[e._v("收货电话:")]),r("div",{staticClass:"value"},[e._v(e._s(e.orderDatalist.orderInfo.user_phone||"-"))])]),r("li",{staticClass:"item"},[r("div",[e._v("收货地址:")]),r("div",{staticClass:"value"},[e._v(e._s(e.orderDatalist.orderInfo.user_address||"-"))])])])]),e.orderDatalist.orderInfo.fictitious_content&&1!=e.orderDatalist.orderInfo.product_type?r("div",{staticClass:"section"},[r("div",{staticClass:"title"},[e._v("虚拟发货")]),r("ul",{staticClass:"list"},[r("li",{staticClass:"item"},[r("div",{staticClass:"value"},[e._v(e._s(e.orderDatalist.orderInfo.fictitious_content))])])])]):e._e(),1==e.orderDatalist.orderInfo.product_type?r("div",{staticClass:"section"},[r("div",{staticClass:"title"},[e._v("卡密发货")]),e.orderDatalist.orderInfo.virtual.length?r("div",e._l(e.orderDatalist.orderInfo.virtual,(function(t,a){return r("div",{key:a,staticClass:"list"},[r("div",{staticClass:"item"},[r("div",[e._v("卡号"+e._s(a+1)+":")]),r("div",{staticClass:"value"},[e._v(e._s(t.card_no))])]),r("div",{staticClass:"item"},[r("div",[e._v("密码"+e._s(a+1)+":")]),r("div",{staticClass:"value"},[e._v(e._s(t.card_pwd))])])])})),0):r("ul",{staticClass:"list"},[r("li",{staticClass:"item"},[r("div",{staticClass:"value"},[e._v(e._s(e.orderDatalist.orderInfo.virtual_info||"-"))])])])]):e._e(),r("div",{staticClass:"section"},[r("div",{staticClass:"title"},[e._v("订单信息")]),r("ul",{staticClass:"list"},[r("li",{staticClass:"item"},[r("div",[e._v("创建时间:")]),r("div",{staticClass:"value"},[e._v(e._s(e.orderDatalist.orderInfo._add_time||"-"))])]),r("li",{staticClass:"item"},[r("div",[e._v("商品总数:")]),r("div",{staticClass:"value"},[e._v(e._s(e.orderDatalist.orderInfo.total_num||"-"))])]),r("li",{staticClass:"item"},[r("div",[e._v("商品兑换积分:")]),r("div",{staticClass:"value"},[e._v(e._s(e.orderDatalist.orderInfo.total_integral||"-"))])]),r("li",{staticClass:"item"},[r("div",[e._v("商品兑换金额:")]),r("div",{staticClass:"value"},[e._v(e._s(e.orderDatalist.orderInfo.total_price||"-"))])])])]),"express"===e.orderDatalist.orderInfo.delivery_type?r("div",{staticClass:"section"},[r("div",{staticClass:"title"},[e._v("物流信息")]),r("ul",{staticClass:"list"},[r("li",{staticClass:"item"},[r("div",[e._v("快递公司:")]),r("div",{staticClass:"value"},[e._v(e._s(e.orderDatalist.orderInfo.delivery_name||"-"))])]),r("li",{staticClass:"item"},[r("div",[e._v("快递单号:")]),r("div",{staticClass:"value"},[e._v(e._s(e.orderDatalist.orderInfo.delivery_id)),r("span",{staticClass:"logisticsLook",on:{click:e.openLogistics}},[e._v("查询")])])])])]):e._e(),"send"===e.orderDatalist.orderInfo.delivery_type?r("div",{staticClass:"section"},[r("div",{staticClass:"title"},[e._v("配送信息")]),r("ul",{staticClass:"list"},[r("li",{staticClass:"item"},[r("div",[e._v("送货人姓名:")]),r("div",{staticClass:"value"},[e._v(e._s(e.orderDatalist.orderInfo.delivery_name||"-"))])]),r("li",{staticClass:"item"},[r("div",[e._v("送货人电话:")]),r("div",{staticClass:"value"},[e._v(e._s(e.orderDatalist.orderInfo.delivery_id||"-"))])])])]):e._e(),e.orderDatalist.orderInfo.custom_form.length?r("div",{staticClass:"section"},[r("div",{staticClass:"title"},[e._v("自定义留言")]),r("ul",{staticClass:"list"},e._l(e.orderDatalist.orderInfo.custom_form,(function(t,a){return t.value&&-1==["uploadPicture","dateranges"].indexOf(t.name)||t.value.length&&-1!=["uploadPicture","dateranges"].indexOf(t.name)?r("li",{key:a,staticClass:"item"},[r("div",{staticClass:"txtVal"},[e._v(e._s(t.titleConfig.value)+":")]),"dateranges"==t.name?r("div",{staticClass:"value"},[e._v(e._s(t.value[0]+"/"+t.value[1]))]):"uploadPicture"===t.name?r("div",{staticClass:"value"},e._l(t.value,(function(e,t){return r("div",{directives:[{name:"viewer",rawName:"v-viewer"}],key:t,staticClass:"image"},[r("img",{directives:[{name:"lazy",rawName:"v-lazy",value:e,expression:"img"}]})])})),0):r("div",{staticClass:"value"},[e._v(e._s(t.value||"-"))])]):e._e()})),0)]):e._e(),e.orderDatalist.orderInfo.mark?r("div",{staticClass:"section"},[r("div",{staticClass:"title"},[e._v("买家留言")]),r("ul",{staticClass:"list"},[r("li",{staticClass:"item"},[r("div",{staticClass:"value"},[e._v(e._s(e.orderDatalist.orderInfo.mark))])])])]):e._e(),e.orderDatalist.orderInfo.remark?r("div",{staticClass:"section"},[r("div",{staticClass:"title"},[e._v("订单备注")]),r("ul",{staticClass:"list"},[r("li",{staticClass:"item"},[r("div",[e._v("备注:")]),r("div",{staticClass:"value"},[e._v(e._s(e.orderDatalist.orderInfo.remark||"-"))])])])]):e._e()]),r("TabPane",{attrs:{label:"商品信息",name:"product"}},[r("Table",{attrs:{columns:e.columns1,data:e.orderDatalist.orderInfo.cart_info,border:"","highlight-row":""},scopedSlots:e._u([{key:"product",fn:function(t){var a=t.row;return[r("div",{staticClass:"product"},[r("div",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"image"},[r("img",{directives:[{name:"lazy",rawName:"v-lazy",value:a.attrInfo?a.attrInfo.image:a.image,expression:"row.attrInfo ? row.attrInfo.image : row.image"}]})]),r("div",{staticClass:"title"},[e._v(e._s(a.title)+" | "+e._s(a.attrInfo?a.attrInfo.suk:""))])])]}},{key:"price",fn:function(t){var a=t.row;return[r("div",[e._v(e._s(a.attrInfo?a.attrInfo.price:a.price))])]}},{key:"integral",fn:function(t){var a=t.row;return[r("div",[e._v(e._s(a.attrInfo?a.attrInfo.integral:a.integral))])]}}],null,!1,1385001121)})],1),r("TabPane",{attrs:{label:"订单记录",name:"record"}},[r("Table",{attrs:{columns:e.columns2,data:e.recordData,border:"",loading:e.loading,"no-data-text":"暂无数据","highlight-row":"","no-filtered-data-text":"暂无筛选结果"}})],1)],1)],1):e._e()]),r("Modal",{staticClass:"order_box2",attrs:{scrollable:"",title:"物流查询",width:"350"},model:{value:e.modal2,callback:function(t){e.modal2=t},expression:"modal2"}},[e.orderDatalist?r("div",{staticClass:"logistics acea-row row-top"},[r("div",{staticClass:"logistics_img"},[r("img",{attrs:{src:a("bd9b")}})]),r("div",{staticClass:"logistics_cent"},[r("span",[e._v("物流公司:"+e._s(e.orderDatalist.orderInfo.delivery_name))]),r("span",[e._v("物流单号:"+e._s(e.orderDatalist.orderInfo.delivery_id))])])]):e._e(),r("div",{staticClass:"acea-row row-column-around trees-coadd"},[r("div",{staticClass:"scollhide"},[r("Timeline",e._l(e.result,(function(t,a){return r("TimelineItem",{key:a},[r("p",{staticClass:"time",domProps:{textContent:e._s(t.time)}}),r("p",{staticClass:"content",domProps:{textContent:e._s(t.status)}})])})),1)],1)])])],1)}),[],!1,null,"24cfa302",null).exports);function A(e,t,a,r,s,i,n){try{var o=e[i](n),l=o.value}catch(e){return void a(e)}o.done?t(l):Promise.resolve(l).then(r,s)}var P={name:"orderMark",data:function(){return{formValidate:{remark:""},modals:!1,ruleValidate:{remark:[{required:!0,message:"请输入备注信息",trigger:"blur"}]}}},props:{orderId:Number},methods:{cancel:function(e){this.modals=!1,this.$refs[e].resetFields()},putRemark:function(e){var t=this,a={id:this.orderId,remark:this.formValidate};this.$refs[e].validate((function(r){r?Object(o.fb)(a).then(function(){var a,r=(a=i.a.mark((function a(r){return i.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:t.$Message.success(r.msg),t.modals=!1,t.$refs[e].resetFields(),t.$emit("submitFail");case 4:case"end":return a.stop()}}),a)})),function(){var e=this,t=arguments;return new Promise((function(r,s){var i=a.apply(e,t);function n(e){A(i,r,s,n,o,"next",e)}function o(e){A(i,r,s,n,o,"throw",e)}n(void 0)}))});return function(e){return r.apply(this,arguments)}}()).catch((function(e){t.$Message.error(e.msg)})):t.$Message.warning("请填写备注信息")}))}}},N=Object(m.a)(P,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("Modal",{staticClass:"order_box",attrs:{scrollable:"",title:"备注",closable:!1},model:{value:e.modals,callback:function(t){e.modals=t},expression:"modals"}},[a("Form",{ref:"formValidate",attrs:{model:e.formValidate,rules:e.ruleValidate,"label-width":80},nativeOn:{submit:function(e){e.preventDefault()}}},[a("FormItem",{attrs:{label:"备注:",prop:"remark"}},[a("Input",{staticStyle:{width:"100%"},attrs:{maxlength:"200","show-word-limit":"",type:"textarea",placeholder:"订单备注"},model:{value:e.formValidate.remark,callback:function(t){e.$set(e.formValidate,"remark",t)},expression:"formValidate.remark"}})],1)],1),a("div",{attrs:{slot:"footer"},slot:"footer"},[a("Button",{attrs:{type:"primary"},on:{click:function(t){return e.putRemark("formValidate")}}},[e._v("提交")]),a("Button",{on:{click:function(t){return e.cancel("formValidate")}}},[e._v("取消")])],1)],1)}),[],!1,null,"3e603a49",null).exports;function E(e,t,a,r,s,i,n){try{var o=e[i](n),l=o.value}catch(e){return void a(e)}o.done?t(l):Promise.resolve(l).then(r,s)}var V={name:"orderRecord",data:function(){return{modals:!1,loading:!1,recordData:[],page:{page:1,limit:10},columns:[{title:"订单ID",key:"oid",align:"center",minWidth:40},{title:"操作记录",key:"change_message",align:"center",minWidth:280},{title:"操作时间",key:"change_time",align:"center",minWidth:100}]}},methods:{pageChange:function(e){this.page.pageNum=e,this.getList()},getList:function(e){var t=this,a={id:e,datas:this.page};this.loading=!0,Object(o.K)(a).then(function(){var e,a=(e=i.a.mark((function e(a){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.recordData=a.data,t.loading=!1;case 2:case"end":return e.stop()}}),e)})),function(){var t=this,a=arguments;return new Promise((function(r,s){var i=e.apply(t,a);function n(e){E(i,r,s,n,o,"next",e)}function o(e){E(i,r,s,n,o,"throw",e)}n(void 0)}))});return function(e){return a.apply(this,arguments)}}()).catch((function(e){t.loading=!1,t.$Message.error(e.msg)}))}}},R=(a("0d50"),Object(m.a)(V,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("Modal",{staticClass:"order_box",attrs:{scrollable:"",title:"订单记录",width:"700","footer-hide":""},model:{value:e.modals,callback:function(t){e.modals=t},expression:"modals"}},[a("Card",{attrs:{bordered:!1,"dis-hover":""}},[a("Table",{attrs:{columns:e.columns,border:"",data:e.recordData,loading:e.loading,"no-data-text":"暂无数据","highlight-row":"","no-filtered-data-text":"暂无筛选结果"}})],1)],1)}),[],!1,null,"031be995",null).exports);function B(e,t,a,r,s,i,n){try{var o=e[i](n),l=o.value}catch(e){return void a(e)}o.done?t(l):Promise.resolve(l).then(r,s)}function z(e){return function(){var t=this,a=arguments;return new Promise((function(r,s){var i=e.apply(t,a);function n(e){B(i,r,s,n,o,"next",e)}function o(e){B(i,r,s,n,o,"throw",e)}n(void 0)}))}}var Y={name:"orderSend",props:{orderId:Number},data:function(){return{formItem:{type:"1",express_record_type:"1",delivery_name:"",delivery_id:"",express_temp_id:"",to_name:"",to_tel:"",to_addr:"",sh_delivery:"",fictitious_content:""},modals:!1,express:[],expressTemp:[],deliveryList:[],temp:{},export_open:!0}},methods:{changeRadio:function(e){switch(this.$refs.formItem.resetFields(),e){case"1":this.formItem.delivery_name="",this.formItem.delivery_id="",this.formItem.express_temp_id="",this.formItem.express_record_type="1",this.expressTemp=[];break;case"2":this.formItem.sh_delivery="";break;case"3":this.formItem.fictitious_content=""}},changeExpress:function(e){switch(e){case"2":this.formItem.delivery_name="",this.formItem.express_temp_id="",this.expressTemp=[],this.getList(2);break;case"1":this.formItem.delivery_name="",this.formItem.delivery_id="",this.getList(1)}},reset:function(){this.formItem={type:"1",express_record_type:"1",delivery_name:"",delivery_id:"",express_temp_id:"",expressTemp:[],to_name:"",to_tel:"",to_addr:"",sh_delivery:"",fictitious_content:""}},getList:function(e){var t=this,a=2===e?1:"";Object(o.H)(a).then(function(){var e=z(i.a.mark((function e(a){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.express=a.data,t.getSheetInfo();case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.loading=!1,t.$Message.error(e.msg)}))},putSend:function(e){var t=this,a={id:this.orderId,datas:this.formItem};if("1"===this.formItem.type&&"2"===this.formItem.express_record_type){if(""===this.formItem.delivery_name)return this.$Message.error("快递公司不能为空");if(""===this.formItem.express_temp_id)return this.$Message.error("电子面单不能为空");if(""===this.formItem.to_name)return this.$Message.error("寄件人姓名不能为空");if(""===this.formItem.to_tel)return this.$Message.error("寄件人电话不能为空");if(!/^1(3|4|5|7|8|9|6)\d{9}$/i.test(this.formItem.to_tel))return this.$Message.error("请输入正确的手机号码");if(""===this.formItem.to_addr)return this.$Message.error("寄件人地址不能为空")}if("1"===this.formItem.type&&"1"===this.formItem.express_record_type){if(""===this.formItem.delivery_name)return this.$Message.error("快递公司不能为空");if(""===this.formItem.delivery_id)return this.$Message.error("快递单号不能为空")}if("2"===this.formItem.type&&""===this.formItem.sh_delivery)return this.$Message.error("送货人不能为空");Object(o.eb)(a).then(function(){var e=z(i.a.mark((function e(a){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.modals=!1,t.$Message.success(a.msg),t.$emit("submitFail"),t.reset();case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.$Message.error(e.msg)}))},cancel:function(e){this.modals=!1,this.reset()},expressChange:function(e){var t=this,a=this.express.find((function(t){return t.value===e}));void 0!==a&&(this.formItem.delivery_code=a.code,"2"===this.formItem.express_record_type&&(this.expressTemp=[],this.formItem.express_temp_id="",Object(o.jb)({com:this.formItem.delivery_code}).then((function(e){t.expressTemp=e.data,e.data.length||t.$Message.error("请配置你所选快递公司的电子面单")})).catch((function(e){t.$Message.error(e.msg)}))))},getDeliveryList:function(){var e=this;Object(o.ib)().then((function(t){e.deliveryList=t.data.list})).catch((function(t){e.$Message.error(t.msg)}))},getSheetInfo:function(){var e=this;Object(o.lb)().then((function(t){var a=t.data;for(var r in a)a.hasOwnProperty(r)&&(e.formItem[r]=a[r]);e.export_open=void 0===a.export_open||a.export_open,e.export_open||(e.formItem.express_record_type="1"),e.formItem.to_addr=a.to_add})).catch((function(t){e.$Message.error(t.msg)}))},shDeliveryChange:function(e){var t=this.deliveryList.find((function(t){return t.id===e}));this.formItem.sh_delivery_name=t.wx_name,this.formItem.sh_delivery_id=t.phone,this.formItem.sh_delivery_uid=t.uid},expressTempChange:function(e){this.temp=this.expressTemp.find((function(t){return e===t.temp_id})),void 0===this.temp&&(this.temp={})},preview:function(){this.$refs.viewer.$viewer.show()}}},W=(a("9bcf"),Object(m.a)(Y,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("Modal",{staticClass:"order_box",attrs:{scrollable:"",title:"订单发送货",closable:!1},model:{value:e.modals,callback:function(t){e.modals=t},expression:"modals"}},[a("Form",{ref:"formItem",attrs:{model:e.formItem,"label-width":100},nativeOn:{submit:function(e){e.preventDefault()}}},[a("FormItem",{attrs:{label:"选择类型:"}},[a("RadioGroup",{on:{"on-change":e.changeRadio},model:{value:e.formItem.type,callback:function(t){e.$set(e.formItem,"type",t)},expression:"formItem.type"}},[a("Radio",{attrs:{label:"1"}},[e._v("发货")]),a("Radio",{attrs:{label:"2"}},[e._v("送货")]),a("Radio",{attrs:{label:"3"}},[e._v("虚拟")])],1)],1),a("FormItem",{directives:[{name:"show",rawName:"v-show",value:"1"===e.formItem.type&&e.export_open,expression:"formItem.type === '1' && export_open"}],attrs:{label:"发货类型:"}},[a("RadioGroup",{on:{"on-change":e.changeExpress},model:{value:e.formItem.express_record_type,callback:function(t){e.$set(e.formItem,"express_record_type",t)},expression:"formItem.express_record_type"}},[a("Radio",{attrs:{label:"1"}},[e._v("手动填写")]),a("Radio",{attrs:{label:"2"}},[e._v("电子面单打印")])],1)],1),a("div",{directives:[{name:"show",rawName:"v-show",value:"1"===e.formItem.type,expression:"formItem.type === '1'"}]},[a("FormItem",{attrs:{label:"快递公司:"}},[a("Select",{staticStyle:{width:"80%"},attrs:{filterable:"",placeholder:"请选择快递公司"},on:{"on-change":e.expressChange},model:{value:e.formItem.delivery_name,callback:function(t){e.$set(e.formItem,"delivery_name",t)},expression:"formItem.delivery_name"}},e._l(e.express,(function(t,r){return a("Option",{key:t.value,attrs:{value:t.value}},[e._v(e._s(t.value))])})),1)],1),"1"===e.formItem.express_record_type?a("FormItem",{attrs:{label:"快递单号:"}},[a("Input",{staticStyle:{width:"80%"},attrs:{placeholder:"请输入快递单号"},model:{value:e.formItem.delivery_id,callback:function(t){e.$set(e.formItem,"delivery_id",t)},expression:"formItem.delivery_id"}}),"顺丰速运"==e.formItem.delivery_name?a("div",{staticClass:"trips"},[a("p",[e._v("顺丰请输入单号 :收件人或寄件人手机号后四位")]),a("p",[e._v("例如:SF000000000000:3941")])]):e._e()],1):e._e(),"2"===e.formItem.express_record_type?[a("FormItem",{staticClass:"express_temp_id",attrs:{label:"电子面单:"}},[a("Select",{staticStyle:{width:"80%"},attrs:{placeholder:"请选择电子面单"},on:{"on-change":e.expressTempChange},model:{value:e.formItem.express_temp_id,callback:function(t){e.$set(e.formItem,"express_temp_id",t)},expression:"formItem.express_temp_id"}},e._l(e.expressTemp,(function(t,r){return a("Option",{key:r,attrs:{value:t.temp_id}},[e._v(e._s(t.title))])})),1),e.formItem.express_temp_id?a("Button",{attrs:{type:"text"},on:{click:e.preview}},[e._v("预览")]):e._e()],1),a("FormItem",{attrs:{label:"寄件人姓名:"}},[a("Input",{staticStyle:{width:"80%"},attrs:{placeholder:"请输入寄件人姓名"},model:{value:e.formItem.to_name,callback:function(t){e.$set(e.formItem,"to_name",t)},expression:"formItem.to_name"}})],1),a("FormItem",{attrs:{label:"寄件人电话:"}},[a("Input",{staticStyle:{width:"80%"},attrs:{placeholder:"请输入寄件人电话"},model:{value:e.formItem.to_tel,callback:function(t){e.$set(e.formItem,"to_tel",t)},expression:"formItem.to_tel"}})],1),a("FormItem",{attrs:{label:"寄件人地址:"}},[a("Input",{staticStyle:{width:"80%"},attrs:{placeholder:"请输入寄件人地址"},model:{value:e.formItem.to_addr,callback:function(t){e.$set(e.formItem,"to_addr",t)},expression:"formItem.to_addr"}})],1)]:e._e()],2),a("div",{directives:[{name:"show",rawName:"v-show",value:"2"===e.formItem.type,expression:"formItem.type === '2'"}]},[a("FormItem",{attrs:{label:"送货人:"}},[a("Select",{staticStyle:{width:"80%"},attrs:{placeholder:"请选择送货人"},on:{"on-change":e.shDeliveryChange},model:{value:e.formItem.sh_delivery,callback:function(t){e.$set(e.formItem,"sh_delivery",t)},expression:"formItem.sh_delivery"}},e._l(e.deliveryList,(function(t,r){return a("Option",{key:r,attrs:{value:t.id}},[e._v(e._s(t.wx_name)+"("+e._s(t.phone)+")")])})),1)],1)],1),a("div",{directives:[{name:"show",rawName:"v-show",value:"3"===e.formItem.type,expression:"formItem.type === '3'"}]},[a("FormItem",{attrs:{label:"备注:"}},[a("Input",{staticStyle:{width:"80%"},attrs:{type:"textarea",autosize:{minRows:2,maxRows:5},placeholder:"备注"},model:{value:e.formItem.fictitious_content,callback:function(t){e.$set(e.formItem,"fictitious_content",t)},expression:"formItem.fictitious_content"}})],1)],1)],1),a("div",{attrs:{slot:"footer"},slot:"footer"},[a("Button",{on:{click:e.cancel}},[e._v("取消")]),a("Button",{attrs:{type:"primary"},on:{click:e.putSend}},[e._v("提交")])],1),a("div",{directives:[{name:"viewer",rawName:"v-viewer"},{name:"show",rawName:"v-show",value:e.temp,expression:"temp"}],ref:"viewer"},[a("img",{staticStyle:{display:"none"},attrs:{src:e.temp.pic}})])],1)}),[],!1,null,"7a3a1fb6",null).exports),q=a("a716");function Q(e,t,a,r,s,i,n){try{var o=e[i](n),l=o.value}catch(e){return void a(e)}o.done?t(l):Promise.resolve(l).then(r,s)}function G(e){return function(){var t=this,a=arguments;return new Promise((function(r,s){var i=e.apply(t,a);function n(e){Q(i,r,s,n,o,"next",e)}function o(e){Q(i,r,s,n,o,"throw",e)}n(void 0)}))}}function H(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function J(e){for(var t=1;t您选择的的订单存在用户未删除的订单,无法删除用户未删除的订单!

"})},getOrderData:function(e){var t=this;Object(l.k)(e).then(function(){var e=G(i.a.mark((function e(a){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!1!==a.data.status){e.next=2;break}return e.abrupt("return",t.$authLapse(a.data));case 2:t.$authLapse(a.data),t.FromData=a.data,t.$refs.edits.modals=!0;case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.$Message.error(e.msg)}))},getData:function(e,t){var a=this;Object(o.I)(e).then(function(){var e=G(i.a.mark((function e(r){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t||(a.$refs.detailss.modals=!0),a.$refs.detailss.activeName="detail",a.orderDatalist=r.data,a.orderDatalist.orderInfo.refund_reason_wap_img)try{a.orderDatalist.orderInfo.refund_reason_wap_img=JSON.parse(a.orderDatalist.orderInfo.refund_reason_wap_img)}catch(e){a.orderDatalist.orderInfo.refund_reason_wap_img=[]}case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){a.$Message.error(e.msg)}))},submitFail:function(e){this.getList(),this.getData(this.orderId,1),e&&this.$emit("changeGetTabs")},sendOrder:function(e){this.$refs.send.modals=!0,this.$refs.send.getList(),this.$refs.send.getDeliveryList(),this.orderId=e.id},delivery:function(e){var t=this;Object(o.J)(e.id).then(function(){var e=G(i.a.mark((function e(a){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.FromData=a.data,t.$refs.edits.modals=!0,t.getData(t.orderId,1);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.$Message.error(e.msg)}))},change:function(e){},exportData:function(){this.$refs.table.exportCsv({filename:"商品列表"})},onSelectCancel:function(e,t){}})},Z=(a("d4e1"),{name:"orderlistDetails",components:{tableForm:C,tableList:Object(m.a)(U,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("Table",{ref:"table",staticClass:"orderData",attrs:{columns:e.columns,data:e.orderList,loading:e.loading,"highlight-row":"","no-data-text":"暂无数据","no-filtered-data-text":"暂无筛选结果"},on:{"on-selection-change":e.onSelectTab,"on-select-all":e.selectAll,"on-select-all-cancel":e.selectAll,"on-select-cancel":e.onSelectCancel},scopedSlots:e._u([{key:"order_id",fn:function(t){var r=t.row;return t.index,[a("span",{staticStyle:{display:"block"},domProps:{textContent:e._s(r.order_id)}}),a("span",{directives:[{name:"show",rawName:"v-show",value:1==r.is_del,expression:"row.is_del == 1"}],staticStyle:{color:"#ed4014",display:"block"}},[e._v("用户已删除")])]}},{key:"nickname",fn:function(t){var r=t.row;return t.index,[a("a",{on:{click:function(t){return e.showUserInfo(r)}}},[e._v(e._s(r.nickname)+"/"+e._s(r.uid))])]}},{key:"info",fn:function(t){var r=t.row;return t.index,[a("div",{staticClass:"tabBox"},[a("div",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"tabBox_img"},[a("img",{directives:[{name:"lazy",rawName:"v-lazy",value:r.image,expression:"row.image"}]})]),a("span",{staticClass:"tabBox_tit"},[e._v("\n "+e._s(r.store_name+" | ")+e._s(r.suk?r.suk:"")+"\n ")]),a("span",{staticClass:"tabBox_pice"},[e._v("x "+e._s(r.total_num))])])]}},{key:"status_name",fn:function(t){var r=t.row;return[a("Tag",{directives:[{name:"show",rawName:"v-show",value:0==r.status,expression:"row.status == 0"}],attrs:{color:"blue",size:"large"}},[e._v(e._s(r.status_name))]),a("Tag",{directives:[{name:"show",rawName:"v-show",value:1==r.status,expression:"row.status == 1"}],attrs:{color:"volcano",size:"large"}},[e._v(e._s(r.status_name))]),a("Tag",{directives:[{name:"show",rawName:"v-show",value:2==r.status,expression:"row.status == 2"}],attrs:{color:"volcano",size:"large"}},[e._v(e._s(r.status_name))]),a("Tag",{directives:[{name:"show",rawName:"v-show",value:3==r.status,expression:"row.status == 3"}],attrs:{color:"cyan",size:"large"}},[e._v(e._s(r.status_name))])]}},{key:"action",fn:function(t){var r=t.row;return t.index,[1===r.status?a("a",{attrs:{disabled:e.openErp},on:{click:function(t){return e.sendOrder(r)}}},[e._v("发送货")]):e._e(),1===r.status?a("Divider",{attrs:{type:"vertical"}}):e._e(),a("a",{on:{click:function(t){return e.changeMenu(r,"2")}}},[e._v("订单详情")])]}}])}),a("div",{staticClass:"acea-row row-right page"},[a("Page",{attrs:{total:e.page.total,current:e.page.pageNum,"show-elevator":"","show-total":"","page-size":e.page.pageSize,"show-sizer":""},on:{"on-change":e.pageChange,"on-page-size-change":e.limitChange}})],1),a("edit-from",{ref:"edits",attrs:{FromData:e.FromData},on:{submitFail:e.submitFail}}),a("user-details",{ref:"userDetails",attrs:{fromType:"order"}}),a("details-from",{ref:"detailss",attrs:{orderDatalist:e.orderDatalist,orderId:e.orderId,"row-active":e.rowActive,openErp:e.openErp}}),a("order-remark",{ref:"remarks",attrs:{orderId:e.orderId},on:{submitFail:e.submitFail}}),a("order-record",{ref:"record"}),a("order-send",{ref:"send",attrs:{orderId:e.orderId},on:{submitFail:function(t){return e.submitFail(1)}}})],1)}),[],!1,null,"26050d6d",null).exports,cardsData:r.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.$parent.getTabs()},getChangeTabs:function(e){this.$refs.table.getList()},getData:function(e){this.$refs.table&&(this.$refs.table.checkBox=!1,this.$refs.table.getList(e))},getCards:function(e){this.cardLists=e},handleResize:function(){this.$refs.ellipsis.forEach((function(e){return e.init()}))},orderSelect:function(e){this.selection=e},onOrderData:function(e){this.orderData=e},orderDatas:function(e){this.orderData=e},onAutoDisabled:function(e){this.autoDisabled=!!e},onAll:function(e){this.isAll=e}},mounted:function(){}});function X(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function ee(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}a("b64a");var te={name:"list",components:{productlistDetails:Object(m.a)(Z,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("Card",{staticClass:"mt10",attrs:{bordered:!1,"dis-hover":"",padding:0}},[a("div",{staticClass:"new_card_pd"},[a("table-form",{attrs:{"is-all":e.isAll,"auto-disabled":e.autoDisabled,"form-selection":e.selection},on:{getList:e.getData,"order-data":e.orderDatas}})],1)]),a("Card",{attrs:{bordered:!1,"dis-hover":""}},[a("table-list",{ref:"table",attrs:{where:e.orderData,"is-all":e.isAll},on:{"on-all":e.onAll,"auto-disabled":e.onAutoDisabled,"order-data":e.onOrderData,"on-changeCards":e.getCards,changeGetTabs:e.changeGetTabs,"order-select":e.orderSelect}})],1)],1)}),[],!1,null,"c583a7ba",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.getOrderRealName("")},beforeDestroy:function(){this.getOrderType(""),this.getOrderStatus(""),this.getOrderTime(""),this.getOrderNum(""),this.getfieldKey(""),this.onChangeTabs(""),this.getOrderRealName("")},mounted:function(){this.getTabs()},methods:function(e){for(var t=1;t