chunk-5201e01a.0de5df51.js 77 KB

1
  1. (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<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?h(a,!0).forEach((function(t){p(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):h(a).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}({},Object(n.e)("admin/layout",["isMobile"]),{labelWidth:function(){return this.isMobile?void 0:75},labelPosition:function(){return this.isMobile?"top":"right"}}),created:function(){this.getQueue()},methods:{getQueue:function(){var e=this,t={page:this.page1.pageNum,limit:this.page1.pageSize};this.formValidate.status&&(t.status=this.formValidate.status),this.formValidate.type&&(t.type=this.formValidate.type),this.formValidate.data&&(t.data=this.formValidate.data),this.loading=!0,Object(l.O)(t).then((function(t){e.loading=!1,e.data1=t.data.list,e.page1.total=t.data.count})).catch((function(t){e.loading=!1}))},pageChange:function(e){this.page1.pageNum=e,this.getQueue()},pageChange2:function(e){this.page2.pageNum=e,this.getDeliveryLog()},limitChange:function(e){this.page1.pageSize=e,this.getQueue()},limitChange2:function(e){this.page2.pageSize=e,this.getDeliveryLog()},onchangeTime:function(e){this.timeVal=e,this.formValidate.data=this.timeVal[0]?this.timeVal.join("-"):"",this.page1.pageNum=1,this.getQueue()},typeSearchs:function(){this.page1.pageNum=1,this.getQueue()},statusSearchs:function(){this.page1.pageNum=1,this.getQueue()},getDeliveryLog:function(){var e=this;this.loading2=!0,Object(l.c)(this.deliveryLogId,this.deliveryLogType,{page:this.page2.pageNum,limit:this.page2.pageSize}).then((function(t){e.loading2=!1,e.data2=t.data.list,e.page2.total=t.data.count})).catch((function(t){e.loading2=!1}))},deliveryLook:function(e){switch(this.modal1=!0,this.deliveryLogId=e.id,this.deliveryLogType=e.cache_type,this.deliveryLog=e,e.type){case 7:case 8:this.columns4=this.columns2;break;case 9:this.columns4=this.columns5;break;case 10:this.columns4=this.columns3}this.getDeliveryLog()},changeMenu:function(e,t){var a=this;switch(t){case"1":Object(l.a)(e.id,e.type,e.cache_type).then((function(e){window.open(e.data[0])})).catch((function(e){a.$Message.error(e.msg)}));break;case"2":this.queueAgain(e.id,e.type);break;case"3":this.$Modal.confirm({title:"谨慎操作",content:"<p>确认停止该任务?</p>",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<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?D(a,!0).forEach((function(t){x(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):D(a).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}function x(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}var O={name:"table_from",components:{autoSend:f,queueList:g},props:["formSelection","autoDisabled","isAll"],data:function(){return{fromList:{title:"选择时间",custom:!0,fromTxt:[{text:"全部",val:""},{text:"今天",val:"today"},{text:"昨天",val:"yesterday"},{text:"最近7天",val:"lately7"},{text:"最近30天",val:"lately30"},{text:"本月",val:"month"},{text:"本年",val:"year"}]},currentTab:"",orderData:{status:"",data:"",real_name:"",field_key:"all",pay_type:""},modalTitleSs:"",statusType:"",time:"",value2:[],isDelIdList:[],modals2:!1,timeVal:[],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]}}]},payList:[{label:"全部",val:""},{label:"微信支付",val:"1"},{label:"支付宝支付",val:"4"},{label:"余额支付",val:"2"},{label:"线下支付",val:"3"}],manualModal:!1,uploadAction:"".concat(_.a.apiBaseURL,"/file/upload/1"),uploadHeaders:{},file:"",autoModal:!1,isShow:!1,recordModal:!1,sendOutValue:"",exportList:[{name:"1",label:"导出发货单"},{name:"0",label:"导出订单"}],exportListOn:0,fileList:[]}},computed:I({},Object(n.e)("admin/layout",["isMobile"]),{},Object(n.e)("admin/integralOrder",["orderChartType","isDels","delIdList"]),{labelWidth:function(){return this.isMobile?void 0:96},labelPosition:function(){return this.isMobile?"top":"right"},today:function(){var e=new Date,t=new Date;return[t.getFullYear()+"/"+(t.getMonth()+1)+"/"+t.getDate(),e.getFullYear()+"/"+(e.getMonth()+1)+"/"+e.getDate()]}}),watch:{$route:function(){"/order/list?status=1"===this.$route.fullPath&&this.getPath()}},created:function(){"/order/list?status=1"===this.$route.fullPath&&this.getPath(),this.getToken(),this.$parent.$emit("add")},methods:I({},Object(n.d)("admin/integralOrder",["getOrderStatus","getOrderType","getOrderTime","getOrderNum","getfieldKey","getOrderRealName"]),{getPath:function(){this.orderData.status=this.$route.query.status.toString(),this.getOrderStatus(this.orderData.status),this.$emit("getList",1),this.$emit("order-data",this.orderData)},exports:function(){var e,t=(e=i.a.mark((function e(){var t,a,r,s,n,o,l;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=[],a=[],r=[],s="",(n=JSON.parse(JSON.stringify(this.orderData))).page=1,n.product_id=this.$route.query.product_id||"",o=0;case 5:if(!(o<n.page+1)){e.next=16;break}return e.next=8,this.getExcelData(n);case 8:l=e.sent,s||(s=l.filename),a.length||(a=l.filekey),t.length||(t=l.header),l.export.length&&(r=r.concat(l.export),n.page++);case 13:o++,e.next=5;break;case 16:Object(y.a)(t,a,s,r);case 17:case"end":return e.stop()}}),e,this)})),function(){var t=this,a=arguments;return new Promise((function(r,s){var i=e.apply(t,a);function n(e){w(i,r,s,n,o,"next",e)}function o(e){w(i,r,s,n,o,"throw",e)}n(void 0)}))});return function(){return t.apply(this,arguments)}}(),getExcelData:function(e){return new Promise((function(t,a){Object(l.W)(e).then((function(e){return t(e.data)}))}))},onchangeTime:function(e){this.timeVal=e,this.orderData.data=this.timeVal[0]?this.timeVal.join("-"):"",this.$store.dispatch("admin/integralOrder/getOrderTabs",{data:this.orderData.data}),this.getOrderTime(this.orderData.data),this.$emit("getList",1),this.$emit("order-data",this.orderData)},selectChange:function(e){this.$store.dispatch("admin/integralOrder/getOrderTabs",{data:e}),this.orderData.data=e,this.getOrderTime(this.orderData.data),this.timeVal=[],this.$emit("getList"),this.$emit("order-data",this.orderData)},selectChange2:function(e){this.getOrderStatus(e),this.$emit("getList",1)},userSearchs:function(e){this.getOrderType(e),this.$emit("getList",1)},timeChange:function(e){this.getOrderTime(e),this.$emit("getList")},orderSearch:function(){this.getOrderRealName(this.orderData.real_name),this.getfieldKey(this.orderData.field_key),this.$emit("getList",1)},onClickTab:function(){this.$emit("onChangeType",this.currentTab)},delAll:function(){var e=this;if(0===this.delIdList.length)this.$Message.error("请先选择删除的订单!");else if(this.isDels){this.delIdList.filter((function(t){e.isDelIdList.push(t.id)}));var t={title:"删除订单",url:"/order/dels",method:"post",ids:{ids:this.isDelIdList,all:this.isAll,where:this.orderData}};this.$modalSure(t).then((function(t){e.$Message.success(t.msg),e.tabList()})).catch((function(t){e.$Message.error(t.msg)}))}else this.$Modal.error({title:"错误!",content:"<p>您选择的的订单存在用户未删除的订单,无法删除用户未删除的订单!</p>"})},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<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?H(a,!0).forEach((function(t){K(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):H(a).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}function K(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}var U={name:"table_list",components:{expandRow:$,editFrom:T.a,detailsFrom:F,orderRemark:N,orderRecord:R,orderSend:W,userDetails:q.a},props:["where","isAll"],data:function(){return{openErp:!1,delfromData:{},modal:!1,orderList:[],orderCards:[],loading:!1,orderId:0,columns:[{type:"expand",width:30,render:function(e,t){return e($,{props:{row:t.row}})}},{title:"订单号",align:"center",slot:"order_id",minWidth:160},{title:"用户信息",slot:"nickname",minWidth:110},{title:"商品信息",slot:"info",minWidth:330},{title:"兑换积分",key:"total_integral",minWidth:70},{title:"兑换金额",key:"total_price",minWidth:70},{title:"订单状态",slot:"status_name",minWidth:100},{title:"下单时间",key:"add_time",minWidth:130},{title:"操作",slot:"action",fixed:"right",minWidth:150,align:"center"}],page:{total:0,pageNum:1,pageSize:10},data:[],FromData:null,orderDatalist:null,modalTitleSs:"",isDelIdList:[],checkBox:!1,formSelection:[],selectionCopy:[],display:"none",autoDisabled:!1,rowActive:{}}},computed:J({},Object(n.e)("admin/integralOrder",["orderPayType","orderStatus","orderTime","orderNum","fieldKey","orderType","realName"])),mounted:function(){},created:function(){this.getErpConfig(),this.getList()},watch:{orderType:function(){this.page.pageNum=1,this.getList()},formSelection:function(e){this.$emit("order-select",e),e.length?this.$emit("auto-disabled",0):this.$emit("auto-disabled",1);var t=e.some((function(e){return 1===e.is_del}));this.getIsDel(t),this.getisDelIdListl(e)},orderList:{deep:!0,handler:function(e){var t=this;e.forEach((function(e){t.formSelection.forEach((function(t){t.id===e.id&&(e.checkBox=!0)}))}));var a=this.orderList.filter((function(e){return e.checkBox}));this.orderList.length?this.checkBox=this.orderList.length===a.length:this.checkBox=!1}}},methods:J({},Object(n.d)("admin/integralOrder",["getIsDel","getisDelIdListl"]),{getErpConfig:function(){var e=this;Object(M.a)().then((function(t){e.openErp=t.data.open_erp})).catch((function(t){e.$Message.error(t.msg)}))},selectAll:function(e){var t=this;e.length&&(this.formSelection=e,this.selectionCopy=e),this.selectionCopy.forEach((function(e,a){e.checkBox=t.checkBox,t.$set(t.orderList,a,e)}))},showUserInfo:function(e){this.$refs.userDetails.modals=!0,this.$refs.userDetails.activeName="info",this.$refs.userDetails.getDetails(e.uid)},changeMenu:function(e,t){var a=this;switch(this.orderId=e.id,t){case"2":this.rowActive=e,this.getData(e.id);break;case"3":this.$refs.record.modals=!0,this.$refs.record.getList(e.id);break;case"4":this.$refs.remarks.formValidate.remark=e.remark,this.$refs.remarks.modals=!0;break;case"5":this.getRefundData(e.id);break;case"6":this.getRefundIntegral(e.id);break;case"7":this.getNoRefundData(e.id);break;case"8":this.delfromData={title:"修改确认收货",url:"marketing/integral/order/take/".concat(e.id),method:"put",ids:""},this.$modalSure(this.delfromData).then((function(t){a.$Message.success(t.msg),a.getList(),a.$emit("changeGetTabs"),a.getData(e.id,1)})).catch((function(e){a.$Message.error(e.msg)}));break;case"10":this.delfromData={title:"立即打印订单",info:"您确认打印此订单吗?",url:"marketing/integral/order/print/".concat(e.id),method:"get",ids:""},this.$modalSure(this.delfromData).then((function(e){a.$Message.success(e.msg),a.$emit("changeGetTabs"),a.getList()})).catch((function(e){a.$Message.error(e.msg)}));break;case"11":this.delfromData={title:"立即打印电子面单",info:"您确认打印此电子面单吗?",url:"/order/order_dump/".concat(e.id),method:"get",ids:""},this.$modalSure(this.delfromData).then((function(e){a.$Message.success(e.msg),a.getList()})).catch((function(e){a.$Message.error(e.msg)}));break;default:this.delfromData={title:"删除订单",url:"marketing/integral/order/del/".concat(e.id),method:"DELETE",ids:""},this.delOrder(e,this.delfromData)}},submitModel:function(){this.getList()},pageChange:function(e){this.page.pageNum=e,this.getList()},limitChange:function(e){this.page.pageSize=e,this.getList()},getList:function(e){var t=this;this.page.pageNum=1===e?1:this.page.pageNum,this.loading=!0,Object(o.db)({page:this.page.pageNum,limit:this.page.pageSize,status:this.orderStatus,pay_type:this.orderPayType,data:this.orderTime,real_name:this.realName,field_key:this.fieldKey,type:0===this.orderType?"":this.orderType,product_id:this.$route.query.product_id}).then(function(){var e=G(i.a.mark((function e(a){var r;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(r=a.data).data.forEach((function(e){e.id==t.orderId&&(t.rowActive=e)})),t.orderList=r.data.map((function(e){return 1===t.isAll?e.checkBox=!0:e.checkBox=!1,e})),t.orderCards=r.stat,t.page.total=r.count,t.$emit("on-changeCards",r.stat),t.loading=!1;case 7: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)}))},onSelectTab:function(e){this.formSelection=e;var t=e.some((function(e){return 1===e.is_del}));this.getIsDel(t),this.getisDelIdListl(e)},edit:function(e){this.getOrderData(e.id)},delOrder:function(e,t){var a=this;1===e.is_del?this.$modalSure(t).then((function(e){a.$Message.success(e.msg),a.getList()})).catch((function(e){a.$Message.error(e.msg)})):this.$Modal.error({title:"错误!",content:"<p>您选择的的订单存在用户未删除的订单,无法删除用户未删除的订单!</p>"})},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<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?X(a,!0).forEach((function(t){ee(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):X(a).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}({},Object(n.d)("admin/integralOrder",["onChangeTabs","getOrderStatus","getOrderTime","getOrderNum","getfieldKey","onChangeTabs","getOrderTabs","getOrderType","getOrderRealName"]),{getTabs:function(){var e=this;this.spinShow=!0,this.$store.dispatch("admin/integralOrder/getOrderTabs",{product_id:this.$route.query.product_id||""}).then((function(t){e.tablists=t.data,e.spinShow=!1})).catch((function(t){e.spinShow=!1,e.$Message.error(t.msg)}))},onClickTab:function(){this.onChangeTabs(Number(this.currentTab)),this.$refs.productlist.getChangeTabs(),this.$store.dispatch("admin/integralOrder/getOrderTabs",{type:this.currentTab})}})},ae=(a("a2d1"),Object(m.a)(te,(function(){var e=this.$createElement,t=this._self._c||e;return t("div",[(this.currentTab,t("productlist-details",{ref:"productlist"})),this.spinShow?t("Spin",{attrs:{size:"large",fix:""}}):this._e()],1)}),[],!1,null,"19cfc267",null));t.default=ae.exports},"0fc4":function(e,t,a){"use strict";a.d(t,"a",(function(){return s})),a.d(t,"c",(function(){return i})),a.d(t,"b",(function(){return n}));var r=a("b6bd");function s(){return Object(r.a)({url:"erp/config",method:"get"})}function i(e){return Object(r.a)({url:"store/erp/shop",method:"get",params:e})}function n(e){return Object(r.a)({url:"product/import_erp_product",method:"post",data:e})}},1665:function(e,t,a){"use strict";var r=a("6a80");a.n(r).a},1766:function(e,t,a){},"31b4":function(e,t,a){"use strict";var r=a("9860"),s=a.n(r),i=a("b6bd"),n=a("2f62");function o(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 l(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}var c={name:"edit",components:{formCreate:s.a.$form()},computed:function(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?o(a,!0).forEach((function(t){l(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):o(a).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}({},Object(n.e)("admin/userLevel",["taskId","levelId"])),props:{FromData:{type:Object,default:null},userEdit:{type:Number,default:0}},data:function(){return{modals:!1,type:0,config:{global:{upload:{props:{onSuccess:function(e,t){200===e.status?t.url=e.data.src:this.Message.error(e.msg)}}}}},isDisable:!1}},methods:{couponsType:function(){this.$parent.addType(this.type)},onSubmit:function(e){var t,a=this;(setTimeout((function(){a.isDisable=!1}),1e3),this.isDisable)||(this.isDisable=!0,t=e,Object(i.a)({url:this.FromData.action,method:this.FromData.method,data:t}).then((function(e){a.$parent.getList(),a.$Message.success(e.msg),a.modals=!1,setTimeout((function(){a.$emit("submitFail")}),1e3)})).catch((function(e){a.$Message.error(e.msg)})))},cancel:function(){this.type=0}}},d=(a("bddf"),a("2877")),u=Object(d.a)(c,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return e.FromData?a("div",[a("Modal",{class:e.userEdit?"userEdit":"",attrs:{scrollable:"","footer-hide":"",closable:"",title:e.FromData.title,width:"700"},on:{"on-cancel":e.cancel},model:{value:e.modals,callback:function(t){e.modals=t},expression:"modals"}},[["/marketing/coupon/save.html"===e.FromData.action?a("div",{staticClass:"radio acea-row row-middle"},[a("div",{staticClass:"name ivu-form-item-content"},[e._v("优惠券类型")]),a("Radio-group",{on:{"on-change":e.couponsType},model:{value:e.type,callback:function(t){e.type=t},expression:"type"}},[a("Radio",{attrs:{label:0}},[e._v("通用券")]),a("Radio",{attrs:{label:1}},[e._v("品类券")]),a("Radio",{attrs:{label:2}},[e._v("商品券")])],1)],1):e._e()],a("form-create",{ref:"fc",staticClass:"formBox",attrs:{option:e.config,rule:Array.from(e.FromData.rules),handleIcon:"false"},on:{"on-submit":e.onSubmit}})],2)],1):e._e()}),[],!1,null,"2850396f",null);t.a=u.exports},"3ba5":function(e,t,a){},"3cb6":function(e,t,a){},"3d0b":function(e,t,a){"use strict";var r=a("0345");a.n(r).a},4510:function(e,t,a){"use strict";var r=a("4684");a.n(r).a},4684:function(e,t,a){},"52ee":function(e,t,a){},"5b76":function(e,t,a){},"5dd9":function(e,t,a){"use strict";var r=a("fd59");a.n(r).a},"6a80":function(e,t,a){},"8dfe":function(e,t,a){"use strict";var r=a("3ba5");a.n(r).a},"9bcf":function(e,t,a){"use strict";var r=a("008d");a.n(r).a},a2d1:function(e,t,a){"use strict";var r=a("c305");a.n(r).a},a584:function(e,t,a){"use strict";var r;function s(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}var i=(s(r={name:"cards",data:function(){return{}},props:{cardLists:Array}},"data",(function(){return{}})),s(r,"methods",{}),s(r,"created",(function(){})),r),n=(a("5dd9"),a("2877")),o=Object(n.a)(i,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("Row",{staticClass:"ivu-mt",attrs:{type:"flex",align:"middle",gutter:16}},e._l(e.cardLists,(function(t,r){return a("Col",{key:r,staticClass:"ivu-mb",attrs:{xs:24,sm:24,md:24,lg:12,xl:8,xxl:{span:t.col}}},[a("Card",{staticClass:"card_cent",attrs:{shadow:"",padding:0}},[a("div",{staticClass:"card_box"},[a("div",{staticClass:"card_box_cir",class:{one:r%5==0,two:r%5==1,three:r%5==2,four:r%5==3,five:r%5==4}},[a("div",{staticClass:"card_box_cir1",class:{one1:r%5==0,two1:r%5==1,three1:r%5==2,four1:r%5==3,five1:r%5==4}},[t.type?a("span",{staticClass:"iconfont",class:t.className}):a("Icon",{attrs:{type:t.className}})],1)]),a("div",{staticClass:"card_box_txt"},[a("span",{staticClass:"sp1",domProps:{textContent:e._s(t.count||0)}}),a("span",{staticClass:"sp2",domProps:{textContent:e._s(t.name)}})])])])],1)})),1)],1)}),[],!1,null,"4e72687f",null);t.a=o.exports},b64a:function(e,t,a){"use strict";var r=a("52ee");a.n(r).a},b981:function(e,t,a){},bd9b:function(e,t){e.exports="data:image/jpeg;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAKEUlEQVR4nO2de3AV1R3HP3uS8EhCkCSAQCLgRZ6RV7Hgo47hpVNgpp3+UZ2llpbOFIUqdWzR6UzpdOqMqFNHq4KMDzp6a/tHO50B2goIVqmCVV4KymMFTAiPJghXbohJ2O0fZwOX5Jy9e+/dzb0hfGYy9ybn7Hl8c3bPOb9zzm+NeDxOtohERTkwCRgFjHY/hwBlQCFQDDQD54Az7ucpYD/wmfu50zLt+k4vvIvRmQJGoqIQmAFMB6qB8YCRYbIOsAfYAmwG3rJMuzHDNH0TuoCRqBDALGABMA8oCjVDiANrgTXARsu07TAzC03ASFQUAz8BHgSGhZJJco4AzwAvWaZ9LowMAhcwEhW9gSXAL4HyQBNPn3rgSeAPlmmfDzLhQAWMRMXdwArgusASDZYvgGWWaf85qAQDETASFUOBVcBdKV9bAlWlDpG+MLwEhvVxKOsJRQVQXCDjnGuBeCs0NMGRrwwOx8A6C3u/NDh0Nq0ivwn81DLto2ldnUDGAkaiYj7wPFDiJ36vPKge4jCrEm671qGsV0bZ09AEW08YbKyBLccMmi74vjQGLLZM+/VM8k9bwEhU9EIK92M/8atKYf5IhzlDHQrz08oyKY2tsP6owesHDD457fuyV4H7LdNuSifPtASMRMUA4O/Azcni3jQAlo53mDbQSaN46bPtpMEzeww+OOUr+vvAdyzT9hc7gZQFjETFcGAjEPGKV1kMv57iMH1I5wrXns3HDH77oUFN8kGMBcyyTPtwKumnJGAkKsYAm4DBujj5AhaNc7hvnEOvvFSKEh5NF2DlXoNVew1avYfVdcBMy7Q/9Zu2bwEjUTECOV2q0MWpLIanb7WZlCujv3bsqoel/xHJWmMtUG2Z9iE/afoSMBIV/YH3gBG6ODMrHJ682aGkh59ss0esGX7xvsGmWs8p+CHgFsu0/5csPZEsQiQqeiDnllrx7h3lsPL23BcPoKQHrLzd4d5Rns/mEcDaSFT0TJZeUgGBF4CpqgADeGiCw/IpDiJTm0onIgxYPsXhoQmeIk5FDtO80/IKdAfJC3XhD090WFyV3V42ExZXOTw80bP8C10NtGgFdKdn2v+AeYPDonFdV7w27hvnYN7gWY/nXS2UeLXAF9FMz2ZWOCy/qeuL18bymxxmVWrrU4LUQolSQNeqcqcqrKIInrjZIa8LPfOSkWfAimkOFXpT752RqLhHFdBhGOOa3T9FYZIqEPCX2TYTyjIrcK6yqx7u3ihoUQ+2vwDGtF8uUE3rl6Cx591f5fgWL9YCO+ptjjc6ugKFToGAQYUGk8sFJQXJ408sl3V8Zo/y9roOqc0TiX+8rAW6ZvjDKCzJkRJYP8emwMfAJ9YM/6i5QHOWhGtPDwHfrszzNU5tsWHOeoEVUwY3AMMSlwfay/EjNGb4Ryc7vsQD2NFg54x4AM22LJMfCoSsq4YypEYXuSiJu3r2c9VV3xwgjaB+Od6Yez10XQplqh7iMHWANvghVyvg8hY4CxiuuuLB8akJkq1nnhdJrDAdeEBf52HA7LZfEgVcoIo9th+dbgzNBaYNdBjbTxu8oO2LgItDl3mqmPNHdj/x2viB3uAwNxIVRXCpBc5GsWOgdz7MHdp9BZw71KG3ev2mCPnIuyigcjnyjsEORT7GT1cqhflQPVjbgO6CSwJOV8WYobU9dx88NJgOYFy7+vwA4GT7UAPY9j2b8gzWbcv++DUXnOw+AvIMg4YfJrWLaqlvgml/FWhqMTAfmKwKGV5CRuIB9C8KaQG4EynvBdeXoJuZfEMAE1UhE8q6b+fRnvHlWi0mCDRrHaP0Y6Bux+hrtEEjBJrZx/A+YRWn6zFMr8X1As0i+aDCq7dwG4OLtFoMEkCpKqRv+h3XFYeHGaxUAL1VIcVdvwMNDA8tCgWgvMO78wykPR5aFOcjz2F0+p6Ckh4wpwKuKybtBaoLDnxxDtbXSit4NhDAV6qAeEu4Gc+pkD19Jqt7eYZMY15lcOVS4aHFOa2A51rDKo5kSICnRTyWIwMhrteiUStg2LfEsQBPV9SGfNjqrF6L0wJQbuGqi4e7cr6+Fg5/JZ9j6WI7Mo11NcGVS4WHFifykcuYHTiibJfBEWuGNz4PN4+g8NDCEsjNhB347MuwitP12H9GG3RIALtUIbsbrqDNLxmyu16rxR4B7FCFHI5JY2J3p6EJPlfbAgE+FO7ZiA63sQNsPX61FW49Yeis0Qct0z7VtiayWRVjU21IpepCbNL38Jvh0qLSP1Ux3q4zaAx5QJ3LNLbCljrtXfgvuCTgRuRJ78s43wprj3Tf23jdUYPz6gYUR2omBbRMOw6sU8V8/UD3FfC1/dq6r3M1u2xvzBpVzH1fyoN76ZALi3LpngzddtJgn34svKbtS6KAG5A+BjrwrHrHZlKq+mW/9d6YZhk86nwUqRWQIKDr3eL3qiu2n4J/6x+mWhaMzL6A6ZThnTqD7fqDr08negJpv+f0VeQ21g489pGR8r6/6kEGi8ZkT8RFYwyqB6WWf4sNv/tIe00D8HLiHy4T0N37e9km6othMXlkNFWWjhO8cItgan9Dt9MpUHrnw9T+BitvFSwd53NPcgIr9xq6XQgAT7R3n3L1mEMCuxvg+xtSO+bQ4V/kRnhElUKLDQ+8K7K2/hAmsWZZN4/H1KMql1LKNm6Z9htI1yAdqI3Dsm0G9hW07u4g6+Rh2d5gmfafVAFeD4lFSNcgHVOrMfjNf7PfwwbF8g8MNtRo6xNDaqFEK6Bl2keQJ3OURA9KHwRdnVV7DaIHPeuxxMsRhWc3ZZn2a7TrthN5apfB6n1dV8TV+wye3OVZ/ldcDbT46ecXA9tVAQ6wYqfB4zu1NrOcpK3cK3Z6ircdWXdPrjqdUOPb6USqbk/eRrroVFJZDM/eZjM+R8eJHzfAz7YmdXtyDLgjULcnbbiOd94EtJsp8gUsqZLuAPweTgybFlt2Fs99ktTxTg1wZyiOd9qIREUl0ho71iveiL7wq8kOt+vPWXQK79QZPLbDl5u8fcBdlmmntEyfrvOxUqQvmVuSxZ06QB7cy4bzsWf3eFpVEnkPmGeZtn+fby6ZuL/rCTyFx1gxkapSMEc6zA3Z/d26owbR1NzfPQc8bJn21+nkGYQDxu8CrwD6vewJ9M6H6UMcZlTAtwY5lGa4lfj01/DucYO3aqWnNs0ahoozwELLtP+WSf5BugB9EY2nD23mQKQvjC9zGHmNPNBSUeRwTU/oUyDN8a223F4Wa5afx+IGn8fgwBnY02BgnSWdMeibwCJ3tpURQTuhvQd4nNx2QvuIaywJhEAHGm7BRgPLkK6Hc4V6pIludJDiQbiOuPsg/W7lgiPuly3TDmXD3lVX8BmSrZcRzEC+jOBGgnkZwcdI75pvcaW9jMAL10gxCRhJx9dhFHGptcbdnwbkXLXtdRgHkK/DSDrpD4v/AyTig4w83FS9AAAAAElFTkSuQmCC"},bddf:function(e,t,a){"use strict";var r=a("3cb6");a.n(r).a},c305:function(e,t,a){},d4e1:function(e,t,a){"use strict";var r=a("b981");a.n(r).a},ea07:function(e,t,a){"use strict";var r=a("1766");a.n(r).a},fd59:function(e,t,a){}}]);