mirror of
https://github.com/crmeb/CRMEB.git
synced 2025-12-13 20:02:49 +00:00
1 line
109 KiB
JavaScript
1 line
109 KiB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-746b1991"],{"0bda":function(t,e,r){"use strict";var n=r("55d7");r.n(n).a},"0d8f":function(t,e,r){"use strict";r.r(e);var n=r("f3f3"),o=(r("a9e3"),r("d3b7"),r("159b"),r("a584")),i=(r("a4d3"),r("e01a"),r("d28b"),r("3ca3"),r("ddb0"),r("b636"),r("944a"),r("0c47"),r("23dc"),r("3410"),r("d9e2"),r("b0c0"),r("131a"),r("fb6a"),r("0122")),a=r("c964"),s=(r("25f0"),r("e9c4"),r("99af"),r("a15b"),r("4de4"),r("2f62")),l=r("b7be"),c=r("f8b7");function u(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */u=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(e){c=function(t,e,r){return t[e]=r}}function d(t,e,r,o){var i,a,s,l;e=e&&e.prototype instanceof m?e:m,e=Object.create(e.prototype),o=new L(o||[]);return n(e,"_invoke",{value:(i=t,a=r,s=o,l="suspendedStart",function(t,e){if("executing"===l)throw new Error("Generator is already running");if("completed"===l){if("throw"===t)throw e;return I()}for(s.method=t,s.arg=e;;){var r=s.delegate;if(r&&(r=function t(e,r){var n=r.method,o=e.iterator[n];return void 0===o?(r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=void 0,t(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f):(n=h(o,e.iterator,r.arg),"throw"===n.type?(r.method="throw",r.arg=n.arg,r.delegate=null,f):(o=n.arg,o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,f):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,f)))}(r,s),r)){if(r===f)continue;return r}if("next"===s.method)s.sent=s._sent=s.arg;else if("throw"===s.method){if("suspendedStart"===l)throw l="completed",s.arg;s.dispatchException(s.arg)}else"return"===s.method&&s.abrupt("return",s.arg);if(l="executing",r=h(i,a,s),"normal"===r.type){if(l=s.done?"completed":"suspendedYield",r.arg===f)continue;return{value:r.arg,done:s.done}}"throw"===r.type&&(l="completed",s.method="throw",s.arg=r.arg)}})}),e}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=d;var f={};function m(){}function p(){}function v(){}o={};var g=(c(o,a,(function(){return this})),Object.getPrototypeOf),y=(g=g&&g(g(O([]))),g&&g!==e&&r.call(g,a)&&(o=g),v.prototype=m.prototype=Object.create(o));function w(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function b(t,e){var o;n(this,"_invoke",{value:function(n,a){function s(){return new e((function(o,s){!function n(o,a,s,l){var c;o=h(t[o],t,a);if("throw"!==o.type)return(a=(c=o.arg).value)&&"object"==Object(i.a)(a)&&r.call(a,"__await")?e.resolve(a.__await).then((function(t){n("next",t,s,l)}),(function(t){n("throw",t,s,l)})):e.resolve(a).then((function(t){c.value=t,s(c)}),(function(t){return n("throw",t,s,l)}));l(o.arg)}(n,a,o,s)}))}return o=o?o.then(s,s):s()}})}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function O(t){if(t){var e,n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length))return e=-1,(n=function n(){for(;++e<t.length;)if(r.call(t,e))return n.value=t[e],n.done=!1,n;return n.value=void 0,n.done=!0,n}).next=n}return{next:I}}function I(){return{value:void 0,done:!0}}return n(y,"constructor",{value:p.prototype=v,configurable:!0}),n(v,"constructor",{value:p,configurable:!0}),p.displayName=c(v,l,"GeneratorFunction"),t.isGeneratorFunction=function(t){return t="function"==typeof t&&t.constructor,!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,c(t,l,"GeneratorFunction")),t.prototype=Object.create(y),t},t.awrap=function(t){return{__await:t}},w(b.prototype),c(b.prototype,s,(function(){return this})),t.AsyncIterator=b,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new b(d(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},w(y),c(y,l,"Generator"),c(y,a,(function(){return this})),c(y,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e,r=Object(t),n=[];for(e in r)n.push(e);return n.reverse(),function t(){for(;n.length;){var e=n.pop();if(e in r)return t.value=e,t.done=!1,t}return t.done=!0,t}},t.values=O,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;0<=o;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(s&&l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;0<=n;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}var a=(i=i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc?null:i)?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),x(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var r,n,o=this.tryEntries[e];if(o.tryLoc===t)return"throw"===(r=o.completion).type&&(n=r.arg,x(o)),n}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:O(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}r("ac1f"),r("00b4"),r("7db0");var d={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(t){}},methods:{changeRadio:function(t){switch(this.$refs.formItem.resetFields(),t){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(t){switch(t){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 t=this;Object(c.i)(1).then(function(){var e=Object(a.a)(u().mark((function e(r){return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.express=r.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(t){var e=this,r=Object.assign(this.formItem),n=[];if(this.ids.forEach((function(t){n.push(t.id)})),1==this.isAll?(r.all=1,r.where=this.where):(r.all=0,r.ids=n),"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(c.I)(r).then(function(){var t=Object(a.a)(u().mark((function t(r){return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.modals=!1,e.$message.success(r.msg),e.reset();case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.$message.error(t.msg),e.modals=!1}))},cancel:function(t){this.modals=!1,this.reset()},expressChange:function(t){var e=this,r=this.express.find((function(e){return e.value===t}));r&&(this.formItem.delivery_code=r.code,"1"===this.formItem.type&&(this.expressTemp=[],this.formItem.express_temp_id="",Object(c.x)({com:this.formItem.delivery_code}).then((function(t){e.expressTemp=t.data,t.data.length||e.$message.error("请配置你所选快递公司的电子面单")})).catch((function(t){e.$message.error(t.msg)}))))},getDeliveryList:function(){var t=this;Object(c.v)().then((function(e){t.deliveryList=e.data.list})).catch((function(e){t.$message.error(e.msg)}))},getSheetInfo:function(){var t=this;Object(c.H)().then((function(e){var r,n=e.data;for(r in n)n.hasOwnProperty(r)&&"express_temp_id"!==r&&(t.formItem[r]=n[r]);t.export_open=void 0===n.export_open||n.export_open,t.export_open||(t.formItem.express_record_type="1"),t.formItem.to_addr=n.to_add})).catch((function(e){t.$message.error(e.msg)}))},shDeliveryChange:function(t){var e=this.deliveryList.find((function(e){return e.id===t}));this.formItem.sh_delivery_name=e.wx_name,this.formItem.sh_delivery_id=e.phone,this.formItem.sh_delivery_uid=e.uid},expressTempChange:function(t){this.temp=this.expressTemp.find((function(e){return t===e.temp_id}))},preview:function(){this.$refs.viewer.$viewer.show()}}},h=(r("aa47a"),r("2877")),f=(d=Object(h.a)(d,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("el-dialog",{staticClass:"order_box",attrs:{visible:t.modals,width:"720px",title:"订单发送货","show-close":!0},on:{"update:visible":function(e){t.modals=e}}},[r("el-form",{ref:"formItem",attrs:{model:t.formItem,"label-width":"100px"},nativeOn:{submit:function(t){t.preventDefault()}}},[r("el-form-item",{attrs:{label:"选择类型:"}},[r("el-radio-group",{on:{input:t.changeRadio},model:{value:t.formItem.type,callback:function(e){t.$set(t.formItem,"type",e)},expression:"formItem.type"}},[r("el-radio",{attrs:{label:"1"}},[t._v("打印电子面单")]),r("el-radio",{attrs:{label:"2"}},[t._v("送货")]),r("el-radio",{attrs:{label:"3"}},[t._v("虚拟")])],1)],1),r("div",{directives:[{name:"show",rawName:"v-show",value:"1"===t.formItem.type,expression:"formItem.type === '1'"}]},[r("el-form-item",{attrs:{label:"快递公司:"}},[r("el-select",{staticStyle:{width:"80%"},attrs:{filterable:"",placeholder:"请选择快递公司"},on:{change:t.expressChange},model:{value:t.formItem.delivery_name,callback:function(e){t.$set(t.formItem,"delivery_name",e)},expression:"formItem.delivery_name"}},t._l(t.express,(function(t,e){return r("el-option",{key:t.value,attrs:{value:t.value,label:t.value}})})),1)],1),"1"===t.formItem.type?[r("el-form-item",{staticClass:"express_temp_id",attrs:{label:"电子面单:"}},[r("el-select",{staticStyle:{width:"80%"},attrs:{placeholder:"请选择电子面单"},on:{change:t.expressTempChange},model:{value:t.formItem.express_temp_id,callback:function(e){t.$set(t.formItem,"express_temp_id",e)},expression:"formItem.express_temp_id"}},t._l(t.expressTemp,(function(t,e){return r("el-option",{key:e,attrs:{value:t.temp_id,label:t.title}})})),1),t.formItem.express_temp_id?r("el-button",{attrs:{type:"text"},on:{click:t.preview}},[t._v("预览")]):t._e()],1),r("el-form-item",{attrs:{label:"寄件人姓名:"}},[r("el-input",{staticStyle:{width:"80%"},attrs:{placeholder:"请输入寄件人姓名"},model:{value:t.formItem.to_name,callback:function(e){t.$set(t.formItem,"to_name",e)},expression:"formItem.to_name"}})],1),r("el-form-item",{attrs:{label:"寄件人电话:"}},[r("el-input",{staticStyle:{width:"80%"},attrs:{placeholder:"请输入寄件人电话"},model:{value:t.formItem.to_tel,callback:function(e){t.$set(t.formItem,"to_tel",e)},expression:"formItem.to_tel"}})],1),r("el-form-item",{attrs:{label:"寄件人地址:"}},[r("el-input",{staticStyle:{width:"80%"},attrs:{placeholder:"请输入寄件人地址"},model:{value:t.formItem.to_addr,callback:function(e){t.$set(t.formItem,"to_addr",e)},expression:"formItem.to_addr"}})],1)]:t._e()],2),r("div",{directives:[{name:"show",rawName:"v-show",value:"2"===t.formItem.type,expression:"formItem.type === '2'"}]},[r("el-form-item",{attrs:{label:"送货人:"}},[r("el-select",{staticStyle:{width:"80%"},attrs:{placeholder:"请选择送货人"},on:{change:t.shDeliveryChange},model:{value:t.formItem.sh_delivery,callback:function(e){t.$set(t.formItem,"sh_delivery",e)},expression:"formItem.sh_delivery"}},t._l(t.deliveryList,(function(t,e){return r("el-option",{key:e,attrs:{value:t.id,label:t.wx_name+" ("+t.phone+")"}})})),1)],1)],1),r("div",{directives:[{name:"show",rawName:"v-show",value:"3"===t.formItem.type,expression:"formItem.type === '3'"}]},[r("el-form-item",{attrs:{label:"备注:"}},[r("el-input",{staticStyle:{width:"80%"},attrs:{type:"textarea",autosize:{minRows:2,maxRows:5},placeholder:"备注"},model:{value:t.formItem.fictitious_content,callback:function(e){t.$set(t.formItem,"fictitious_content",e)},expression:"formItem.fictitious_content"}})],1)],1)],1),r("div",{attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:t.cancel}},[t._v("取消")]),r("el-button",{attrs:{type:"primary"},on:{click:t.putSend}},[t._v("提交")])],1),r("div",{directives:[{name:"viewer",rawName:"v-viewer"},{name:"show",rawName:"v-show",value:t.temp,expression:"temp"}],ref:"viewer"},[r("img",{staticStyle:{display:"none"},attrs:{src:t.temp.pic}})])],1)}),[],!1,null,"ea21b082",null).exports,{data:function(){return{modal:!1,data1:[],page1:{total:0,pageNum:1,pageSize:10},formValidate:{type:"",status:"",data:""},options:{shortcuts:[{text:"今天",value:function(){var t=new Date,e=new Date;return e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate())),[e,t]}},{text:"昨天",value:function(){var t=new Date,e=new Date;return e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-1))),t.setTime(t.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-1))),[e,t]}},{text:"最近7天",value:function(){var t=new Date,e=new Date;return e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-6))),[e,t]}},{text:"最近30天",value:function(){var t=new Date,e=new Date;return e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-29))),[e,t]}},{text:"本月",value:function(){var t=new Date,e=new Date;return e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),1))),[e,t]}},{text:"本年",value:function(){var t=new Date,e=new Date;return e.setTime(e.setTime(new Date((new Date).getFullYear(),0,1))),[e,t]}}]},timeVal:[],typeList:[{label:"批量删除订单",value:"6"},{label:"批量手动发货",value:"7"},{label:"批量打印电子面单",value:"8"},{label:"批量配送",value:"9"},{label:"批量虚拟发货",value:"10"}],statusList:[{label:"未处理",value:"0"},{label:"处理中",value:"1"},{label:"已完成",value:"2"},{label:"处理失败",value:"3"}],columns2:[{title:"订单ID",key:"order_id"},{title:"物流公司",key:"delivery_name"},{title:"物流单号",key:"delivery_id"},{title:"处理状态",key:"status_cn"},{title:"异常原因",key:"error"}],columns3:[{title:"订单ID",key:"order_id"},{title:"备注",key:"fictitious_content"},{title:"处理状态",key:"status_cn"},{title:"异常原因",key:"error"}],columns5:[{title:"订单ID",key:"order_id"},{title:"配送员",key:"delivery_name"},{title:"配送员电话",key:"delivery_id"},{title:"处理状态",key:"status_cn"},{title:"异常原因",key:"error"}],columns4:[],data2:[],page2:{total:0,pageNum:1,pageSize:12},modal1:!1,deliveryLog:null,deliveryLogId:0,deliveryLogType:"",loading:!1,loading2:!1}},computed:Object(n.a)(Object(n.a)({},Object(s.d)("media",["isMobile"])),{},{labelWidth:function(){return this.isMobile?void 0:"75px"},labelPosition:function(){return this.isMobile?"top":"right"}}),created:function(){this.getQueue()},methods:{getQueue:function(){var t=this,e={page:this.page1.pageNum,limit:this.page1.pageSize};this.formValidate.status&&(e.status=this.formValidate.status),this.formValidate.type&&(e.type=this.formValidate.type),this.formValidate.data&&(e.data=this.formValidate.data),this.loading=!0,Object(c.P)(e).then((function(e){t.loading=!1,t.data1=e.data.list,t.page1.total=e.data.count})).catch((function(e){t.loading=!1}))},onchangeTime:function(t){this.timeVal=t||[],this.formValidate.data=this.timeVal[0]&&this.timeVal?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 t=this;this.loading2=!0,Object(c.c)(this.deliveryLogId,this.deliveryLogType,{page:this.page2.pageNum,limit:this.page2.pageSize}).then((function(e){t.loading2=!1,t.data2=e.data.list,t.page2.total=e.data.count})).catch((function(e){t.loading2=!1}))},deliveryLook:function(t){switch(this.modal1=!0,this.deliveryLogId=t.id,this.deliveryLogType=t.cache_type,(this.deliveryLog=t).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(t,e){var r=this;switch(e){case"1":Object(c.a)(t.id,t.type,t.cache_type).then((function(t){window.open(t.data[0])})).catch((function(t){r.$message.error(t.msg)}));break;case"2":this.queueAgain(t.id,t.type);break;case"3":this.$msgbox({title:"谨慎操作",message:"确认停止该任务?",showCancelButton:!0,cancelButtonText:"取消",confirmButtonText:"确定",iconClass:"el-icon-warning",confirmButtonClass:"btn-custom-cancel"}).then((function(){r.stopQueue(t.id)})).catch((function(){}));break;case"4":this.queueDel(t.id,t.type)}},queueAgain:function(t,e){var r=this;Object(c.N)(t,e).then((function(t){r.$message.success(t.msg),r.getQueue()})).catch((function(t){r.$message.error(t.msg)}))},queueDel:function(t,e){var r=this;Object(c.O)(t,e).then((function(t){r.$message.success(t.msg),r.getQueue()})).catch((function(t){r.$message.error(t.msg)}))},stopQueue:function(t){var e=this;Object(c.U)(t).then((function(t){e.$message.success(t.msg),e.getQueue()})).catch((function(t){e.$message.error(t.msg)}))}}}),m=(f=Object(h.a)(f,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("el-dialog",{attrs:{visible:t.modal,title:"任务列表",width:"1000px"},on:{"update:visible":function(e){t.modal=e}}},[r("el-card",{staticClass:"ivu-mt",attrs:{bordered:!1,shadow:"never"}},[r("el-form",{ref:"formValidate",staticClass:"tabform",attrs:{model:t.formValidate,"label-width":t.labelWidth,"label-position":t.labelPosition},nativeOn:{submit:function(t){t.preventDefault()}}},[r("el-row",{attrs:{gutter:24}},[r("el-col",{attrs:{span:"10"}},[r("el-form-item",{attrs:{label:"操作时间:"}},[r("el-date-picker",{staticStyle:{width:"90%"},attrs:{clearable:"",editable:!1,format:"yyyy/MM/dd",type:"datetimerange","value-format":"yyyy/MM/dd","range-separator":"-","start-placeholder":"开始日期","end-placeholder":"结束日期",options:t.options},on:{change:t.onchangeTime},model:{value:t.timeVal,callback:function(e){t.timeVal=e},expression:"timeVal"}})],1)],1),r("el-col",{attrs:{span:7}},[r("el-form-item",{attrs:{label:"类型:"}},[r("el-select",{attrs:{clearable:""},on:{change:t.typeSearchs},model:{value:t.formValidate.type,callback:function(e){t.$set(t.formValidate,"type",e)},expression:"formValidate.type"}},t._l(t.typeList,(function(t){return r("el-option",{key:t.value,attrs:{value:t.value,label:t.label}})})),1)],1)],1),r("el-col",{attrs:{span:7}},[r("el-form-item",{attrs:{label:"状态:"}},[r("el-select",{attrs:{clearable:""},on:{change:t.statusSearchs},model:{value:t.formValidate.status,callback:function(e){t.$set(t.formValidate,"status",e)},expression:"formValidate.status"}},t._l(t.statusList,(function(t){return r("el-option",{key:t.value,attrs:{value:t.value,label:t.label}})})),1)],1)],1)],1)],1),r("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"mt14",attrs:{height:"530",data:t.data1}},[r("el-table-column",{attrs:{label:"ID",width:"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",[t._v(t._s(e.row.id))])]}}])}),r("el-table-column",{attrs:{label:"操作时间","min-width":"130"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",[t._v(t._s(e.row.add_time))])]}}])}),r("el-table-column",{attrs:{label:"发货单数","min-width":"130"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",[t._v(t._s(e.row.total_num))])]}}])}),r("el-table-column",{attrs:{label:"成功发货单数","min-width":"130"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",[t._v(t._s(e.row.success_num))])]}}])}),r("el-table-column",{attrs:{label:"发货类型","min-width":"130"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",[t._v(t._s(e.row.title))])]}}])}),r("el-table-column",{attrs:{label:"状态","min-width":"130"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",[t._v(t._s(e.row.status_cn))])]}}])}),r("el-table-column",{attrs:{label:"操作",fixed:"right",width:"170"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.is_show_log?[r("a",{on:{click:function(r){return t.deliveryLook(e.row)}}},[t._v("查看")]),r("el-divider",{attrs:{direction:"vertical"}})]:t._e(),[r("el-dropdown",{attrs:{size:"small"},on:{command:function(r){return t.changeMenu(e.row,r)}}},[r("span",{staticClass:"el-dropdown-link"},[t._v("更多"),r("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),r("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[r("el-dropdown-item",{attrs:{command:"1"}},[t._v("下载")]),r("el-dropdown-item",{attrs:{command:"2"}},[t._v("重新执行")]),e.row.is_stop_button?r("el-dropdown-item",{attrs:{command:"3"}},[t._v("停止任务")]):t._e(),e.row.is_error_button?r("el-dropdown-item",{attrs:{command:"4"}},[t._v("清除异常任务")]):t._e()],1)],1)]]}}])})],1),r("div",{staticClass:"acea-row row-right page"},[t.page1.total?r("pagination",{attrs:{total:t.page1.total,page:t.page1.pageNum,limit:t.page1.pageSize},on:{"update:page":function(e){return t.$set(t.page1,"pageNum",e)},"update:limit":function(e){return t.$set(t.page1,"pageSize",e)},pagination:t.getQueue}}):t._e()],1)],1),r("el-dialog",{attrs:{visible:t.modal1,width:"1000px"},on:{"update:visible":function(e){t.modal1=e}}},[r("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading2,expression:"loading2"}],staticClass:"mt14",attrs:{height:"500",data:t.data2}},t._l(t.columns4,(function(e,n){return r("el-table-column",{key:n,attrs:{label:e.title,"min-width":e.minWidth||100},scopedSlots:t._u([{key:"default",fn:function(n){return[e.key?[r("div",[r("span",[t._v(t._s(n.row[e.key]))])])]:t._e()]}}],null,!0)})})),1),r("div",{staticClass:"acea-row row-right page"},[t.page2.total?r("pagination",{attrs:{total:t.page2.total,page:t.page2.pageNum,limit:t.page2.pageSize},on:{"update:page":function(e){return t.$set(t.page2,"pageNum",e)},"update:limit":function(e){return t.$set(t.page2,"pageSize",e)},pagination:t.getDeliveryLog}}):t._e()],1)],1)],1)}),[],!1,null,null,null).exports,r("d708"));function p(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */p=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(e){c=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var i,a,s,l;e=e&&e.prototype instanceof f?e:f,e=Object.create(e.prototype),o=new L(o||[]);return n(e,"_invoke",{value:(i=t,a=r,s=o,l="suspendedStart",function(t,e){if("executing"===l)throw new Error("Generator is already running");if("completed"===l){if("throw"===t)throw e;return I()}for(s.method=t,s.arg=e;;){var r=s.delegate;if(r&&(r=function t(e,r){var n=r.method,o=e.iterator[n];return void 0===o?(r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=void 0,t(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h):(n=d(o,e.iterator,r.arg),"throw"===n.type?(r.method="throw",r.arg=n.arg,r.delegate=null,h):(o=n.arg,o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,h):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,h)))}(r,s),r)){if(r===h)continue;return r}if("next"===s.method)s.sent=s._sent=s.arg;else if("throw"===s.method){if("suspendedStart"===l)throw l="completed",s.arg;s.dispatchException(s.arg)}else"return"===s.method&&s.abrupt("return",s.arg);if(l="executing",r=d(i,a,s),"normal"===r.type){if(l=s.done?"completed":"suspendedYield",r.arg===h)continue;return{value:r.arg,done:s.done}}"throw"===r.type&&(l="completed",s.method="throw",s.arg=r.arg)}})}),e}function d(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var h={};function f(){}function m(){}function v(){}o={};var g=(c(o,a,(function(){return this})),Object.getPrototypeOf),y=(g=g&&g(g(O([]))),g&&g!==e&&r.call(g,a)&&(o=g),v.prototype=f.prototype=Object.create(o));function w(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function b(t,e){var o;n(this,"_invoke",{value:function(n,a){function s(){return new e((function(o,s){!function n(o,a,s,l){var c;o=d(t[o],t,a);if("throw"!==o.type)return(a=(c=o.arg).value)&&"object"==Object(i.a)(a)&&r.call(a,"__await")?e.resolve(a.__await).then((function(t){n("next",t,s,l)}),(function(t){n("throw",t,s,l)})):e.resolve(a).then((function(t){c.value=t,s(c)}),(function(t){return n("throw",t,s,l)}));l(o.arg)}(n,a,o,s)}))}return o=o?o.then(s,s):s()}})}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function O(t){if(t){var e,n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length))return e=-1,(n=function n(){for(;++e<t.length;)if(r.call(t,e))return n.value=t[e],n.done=!1,n;return n.value=void 0,n.done=!0,n}).next=n}return{next:I}}function I(){return{value:void 0,done:!0}}return n(y,"constructor",{value:m.prototype=v,configurable:!0}),n(v,"constructor",{value:m,configurable:!0}),m.displayName=c(v,l,"GeneratorFunction"),t.isGeneratorFunction=function(t){return t="function"==typeof t&&t.constructor,!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,c(t,l,"GeneratorFunction")),t.prototype=Object.create(y),t},t.awrap=function(t){return{__await:t}},w(b.prototype),c(b.prototype,s,(function(){return this})),t.AsyncIterator=b,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new b(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},w(y),c(y,l,"Generator"),c(y,a,(function(){return this})),c(y,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e,r=Object(t),n=[];for(e in r)n.push(e);return n.reverse(),function t(){for(;n.length;){var e=n.pop();if(e in r)return t.value=e,t.done=!1,t}return t.done=!0,t}},t.values=O,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;0<=o;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(s&&l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;0<=n;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}var a=(i=i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc?null:i)?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),x(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var r,n,o=this.tryEntries[e];if(o.tryLoc===t)return"throw"===(r=o.completion).type&&(n=r.arg,x(o)),n}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:O(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}d={name:"table_from",components:{autoSend:d,queueList:f},props:["formSelection","autoDisabled","isAll"],data:function(){return{currentTab:"",orderData:{status:"",data:"",real_name:"",field_key:"all",pay_type:""},modalTitleSs:"",statusType:"",time:"",value2:[],isDelIdList:[],modals2:!1,timeVal:[],payList:[{label:"全部",val:""},{label:"微信支付",val:"1"},{label:"支付宝支付",val:"4"},{label:"余额支付",val:"2"},{label:"线下支付",val:"3"}],manualModal:!1,uploadAction:"".concat(m.a.apiBaseURL,"/file/upload/1"),uploadHeaders:{},file:"",autoModal:!1,isShow:!1,recordModal:!1,sendOutValue:"",exportList:[{name:"1",label:"导出发货单"},{name:"0",label:"导出订单"}],exportListOn:0,fileList:[],orderChartType:{},pickerOptions:this.$timeOptions}},computed:Object(n.a)(Object(n.a)(Object(n.a)({},Object(s.d)("media",["isMobile"])),Object(s.d)("integralOrder",["isDels","delIdList"])),{},{labelWidth:function(){return this.isMobile?void 0:"80px"},labelPosition:function(){return this.isMobile?"top":"right"},today:function(){var t=new Date,e=new Date;return[e.getFullYear()+"/"+(e.getMonth()+1)+"/"+e.getDate(),t.getFullYear()+"/"+(t.getMonth()+1)+"/"+t.getDate()]}}),watch:{$route:function(){this.$route.fullPath===this.$routeProStr+"/order/list?status=1"&&this.getPath()}},created:function(){this.$route.fullPath===this.$routeProStr+"/order/list?status=1"&&this.getPath(),this.$parent.$emit("add");var t={status:this.orderData.status,product_id:this.$route.query.product_id||""};this.integralGetOrdes(t)},methods:Object(n.a)(Object(n.a)({},Object(s.c)("integralOrder",["getOrderStatus","getOrderType","getOrderTime","getOrderNum","getfieldKey"])),{},{integralGetOrdes:function(t){var e=this;Object(l.O)(t).then((function(t){e.$set(e,"orderChartType",t.data)})).catch((function(t){}))},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 t=this;return Object(a.a)(p().mark((function e(){var r,n,o,i,a,s,l;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=[],n=[],o=[],i="",(a=JSON.parse(JSON.stringify(t.orderData))).page=1,a.product_id=t.$route.query.product_id||"",s=0;case 5:if(s<a.page+1)return e.next=8,t.getExcelData(a);e.next=16;break;case 8:l=e.sent,i=i||l.filename,n.length||(n=l.filekey),r.length||(r=l.header),l.export.length&&(o=o.concat(l.export),a.page++);case 13:s++,e.next=5;break;case 16:exportExcel(r,n,i,o);case 17:case"end":return e.stop()}}),e)})))()},getExcelData:function(t){return new Promise((function(e,r){Object(c.V)(t).then((function(t){return e(t.data)}))}))},onchangeTime:function(t){this.timeVal=t||[],this.orderData.data=this.timeVal[0]&&this.timeVal?this.timeVal.join("-"):"",this.$store.dispatch("integralOrder/getOrderTabs",{data:this.orderData.data}),this.getOrderTime(this.orderData.data),this.$emit("getList",1),this.$emit("order-data",this.orderData)},selectChange:function(t){this.$store.dispatch("integralOrder/getOrderTabs",{data:t}),this.orderData.data=t,this.getOrderTime(this.orderData.data),this.timeVal=[],this.$emit("getList"),this.$emit("order-data",this.orderData)},selectChange2:function(t){this.getOrderStatus(t),this.$emit("getList",1)},userSearchs:function(t){this.getOrderType(t),this.$emit("getList",1)},timeChange:function(t){this.getOrderTime(t),this.$emit("getList")},orderSearch:function(){this.getOrderNum(this.orderData.real_name),this.getfieldKey(this.orderData.field_key),this.$emit("getList",1)},onClickTab:function(){this.$emit("onChangeType",this.currentTab)},delAll:function(){var t,e=this;0===this.delIdList.length?this.$message.error("请先选择删除的订单!"):this.isDels?(this.delIdList.filter((function(t){e.isDelIdList.push(t.id)})),t={ids:this.isDelIdList,all:this.isAll,where:this.orderData},this.$modalSure({title:"删除订单",url:"/order/dels",method:"post",ids:t}).then((function(t){e.$message.success(t.msg),e.tabList()})).catch((function(t){e.$message.error(t.msg)}))):this.$message.error("您选择的的订单存在用户未删除的订单,无法删除用户未删除的订单!")},del:function(t){this.modals2=!1,this.writeOffFrom.confirm=0,this.$refs[t].resetFields()},handleSubmit:function(){this.$emit("on-submit",this.data)},Refresh:function(){this.$emit("getList")},handleReset:function(){this.$refs.form.resetFields(),this.$emit("on-reset")},uploadSuccess:function(t,e,r){200===t.status?(this.$message.success(t.msg),this.file=t.data.src,this.fileList=r):this.$message.error(t.msg)},removeFile:function(t,e){this.file="",this.fileList=e},manualModalOk:function(){var t=this;this.$refs.upload.clearFiles(),Object(c.q)({file:this.file}).then((function(e){t.$message.success(e.msg),t.fileList=[]})).catch((function(e){t.$message.error(e.msg),t.fileList=[]}))},manualModalCancel:function(){this.fileList=[],this.$refs.upload.clearFiles()},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(c.I)()},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 t=this;Object(c.d)().then((function(t){window.open(t.data[0])})).catch((function(e){t.$message.error(e.msg)}))}})},r("41f5"),f=Object(h.a)(d,(function(){var t=this,e=t.$createElement;e=t._self._c||e;return e("div",{staticClass:"table_box"},[e("el-form",{ref:"orderData",attrs:{model:t.orderData,"label-width":t.labelWidth,"label-position":t.labelPosition,inline:""},nativeOn:{submit:function(t){t.preventDefault()}}},[e("el-form-item",{attrs:{label:"订单状态:"}},[e("el-select",{staticClass:"form_content_width",attrs:{placeholder:"请选择",clearable:""},on:{change:t.selectChange2},model:{value:t.orderData.is_show,callback:function(e){t.$set(t.orderData,"is_show",e)},expression:"orderData.is_show"}},[e("el-option",{attrs:{value:"",label:"全部"}}),e("el-option",{attrs:{value:"1",label:"未发货"}}),e("el-option",{attrs:{value:"2",label:"待收货"}}),e("el-option",{attrs:{value:"3",label:"交易完成"}})],1)],1),e("el-form-item",{attrs:{label:"创建时间:"}},[e("el-date-picker",{staticClass:"mr20",staticStyle:{width:"250px"},attrs:{clearable:"",type:"daterange",editable:!1,format:"yyyy/MM/dd","value-format":"yyyy/MM/dd","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":t.pickerOptions},on:{change:t.onchangeTime},model:{value:t.timeVal,callback:function(e){t.timeVal=e},expression:"timeVal"}})],1),e("el-form-item",{attrs:{label:"搜索:",prop:"real_name","label-for":"real_name"}},[e("el-input",{staticClass:"form_content_width",attrs:{clearable:"",placeholder:"请输入"},model:{value:t.orderData.real_name,callback:function(e){t.$set(t.orderData,"real_name",e)},expression:"orderData.real_name"}},[e("el-select",{staticStyle:{width:"100px"},attrs:{slot:"prepend"},slot:"prepend",model:{value:t.orderData.field_key,callback:function(e){t.$set(t.orderData,"field_key",e)},expression:"orderData.field_key"}},[e("el-option",{attrs:{value:"all",label:"全部"}}),e("el-option",{attrs:{value:"order_id",label:"订单号"}}),e("el-option",{attrs:{value:"uid",label:"UID"}}),e("el-option",{attrs:{value:"real_name",label:"用户姓名"}}),e("el-option",{attrs:{value:"user_phone",label:"用户电话"}}),e("el-option",{attrs:{value:"store_name",label:"商品名称(模糊)"}})],1)],1)],1),e("el-form-item",[e("el-button",{attrs:{type:"primary"},on:{click:t.orderSearch}},[t._v("查询")])],1)],1)],1)}),[],!1,null,"7f3dbb7a",null).exports,r("d81d"),d={name:"table-expand",props:{row:Object}},r("7724"),d=Object(h.a)(d,(function(){var t=this,e=t.$createElement;e=t._self._c||e;return e("div",[e("el-row",{staticClass:"expand-row"},[e("el-col",{attrs:{span:8}},[e("span",{staticClass:"expand-key"},[t._v("下单时间:")]),e("span",{staticClass:"expand-value",domProps:{textContent:t._s(t.row.add_time)}})]),e("el-col",{attrs:{span:8}},[e("span",{staticClass:"expand-key"},[t._v("用户备注:")]),e("span",{staticClass:"expand-value",domProps:{textContent:t._s(t.row.mark||"无")}})]),e("el-col",{attrs:{span:8}},[e("span",{staticClass:"expand-key"},[t._v("商家备注:")]),e("span",{staticClass:"expand-value",domProps:{textContent:t._s(t.row.remark||"无")}})])],1)],1)}),[],!1,null,"a4536778",null).exports;var v=r("31b4");function g(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */g=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(e){c=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var i,a,s,l;e=e&&e.prototype instanceof f?e:f,e=Object.create(e.prototype),o=new L(o||[]);return n(e,"_invoke",{value:(i=t,a=r,s=o,l="suspendedStart",function(t,e){if("executing"===l)throw new Error("Generator is already running");if("completed"===l){if("throw"===t)throw e;return I()}for(s.method=t,s.arg=e;;){var r=s.delegate;if(r&&(r=function t(e,r){var n=r.method,o=e.iterator[n];return void 0===o?(r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=void 0,t(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h):(n=d(o,e.iterator,r.arg),"throw"===n.type?(r.method="throw",r.arg=n.arg,r.delegate=null,h):(o=n.arg,o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,h):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,h)))}(r,s),r)){if(r===h)continue;return r}if("next"===s.method)s.sent=s._sent=s.arg;else if("throw"===s.method){if("suspendedStart"===l)throw l="completed",s.arg;s.dispatchException(s.arg)}else"return"===s.method&&s.abrupt("return",s.arg);if(l="executing",r=d(i,a,s),"normal"===r.type){if(l=s.done?"completed":"suspendedYield",r.arg===h)continue;return{value:r.arg,done:s.done}}"throw"===r.type&&(l="completed",s.method="throw",s.arg=r.arg)}})}),e}function d(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var h={};function f(){}function m(){}function p(){}o={};var v=(c(o,a,(function(){return this})),Object.getPrototypeOf),y=(v=v&&v(v(O([]))),v&&v!==e&&r.call(v,a)&&(o=v),p.prototype=f.prototype=Object.create(o));function w(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function b(t,e){var o;n(this,"_invoke",{value:function(n,a){function s(){return new e((function(o,s){!function n(o,a,s,l){var c;o=d(t[o],t,a);if("throw"!==o.type)return(a=(c=o.arg).value)&&"object"==Object(i.a)(a)&&r.call(a,"__await")?e.resolve(a.__await).then((function(t){n("next",t,s,l)}),(function(t){n("throw",t,s,l)})):e.resolve(a).then((function(t){c.value=t,s(c)}),(function(t){return n("throw",t,s,l)}));l(o.arg)}(n,a,o,s)}))}return o=o?o.then(s,s):s()}})}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function O(t){if(t){var e,n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length))return e=-1,(n=function n(){for(;++e<t.length;)if(r.call(t,e))return n.value=t[e],n.done=!1,n;return n.value=void 0,n.done=!0,n}).next=n}return{next:I}}function I(){return{value:void 0,done:!0}}return n(y,"constructor",{value:m.prototype=p,configurable:!0}),n(p,"constructor",{value:m,configurable:!0}),m.displayName=c(p,l,"GeneratorFunction"),t.isGeneratorFunction=function(t){return t="function"==typeof t&&t.constructor,!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,l,"GeneratorFunction")),t.prototype=Object.create(y),t},t.awrap=function(t){return{__await:t}},w(b.prototype),c(b.prototype,s,(function(){return this})),t.AsyncIterator=b,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new b(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},w(y),c(y,l,"Generator"),c(y,a,(function(){return this})),c(y,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e,r=Object(t),n=[];for(e in r)n.push(e);return n.reverse(),function t(){for(;n.length;){var e=n.pop();if(e in r)return t.value=e,t.done=!1,t}return t.done=!0,t}},t.values=O,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;0<=o;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(s&&l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;0<=n;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}var a=(i=i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc?null:i)?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),x(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var r,n,o=this.tryEntries[e];if(o.tryLoc===t)return"throw"===(r=o.completion).type&&(n=r.arg,x(o)),n}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:O(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}var y={name:"orderDetails",data:function(){return{modal2:!1,modals:!1,grid:{xl:8,lg:8,md:12,sm:24,xs:24},result:[]}},props:{orderDatalist:Object,orderId:Number},methods:{openLogistics:function(){this.getOrderData(),this.modal2=!0},getOrderData:function(){var t=this;Object(l.w)(this.orderId).then(function(){var e=Object(a.a)(g().mark((function e(r){return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.result=r.data.result;case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.$message.error(e.msg)}))}},computed:{}};r("7fe7"),y=Object(h.a)(y,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.orderDatalist?n("div",[n("el-dialog",{staticClass:"order_box",attrs:{visible:t.modals,title:"订单信息",width:"720px"},on:{"update:visible":function(e){t.modals=e}}},[n("el-card",{staticClass:"i-table-no-border",attrs:{bordered:!1,shadow:"never"}},[n("div",{staticClass:"ivu-description-list-title"},[t._v("收货信息")]),n("el-row",{staticClass:"mb10"},[n("el-col",{attrs:{span:12}},[t._v("用户昵称:"+t._s(t.orderDatalist.userInfo.nickname))]),n("el-col",{attrs:{span:12}},[t._v("收货人:"+t._s(t.orderDatalist.orderInfo.real_name))])],1),n("el-row",{staticClass:"mb10"},[n("el-col",{attrs:{span:12}},[t._v("联系电话:"+t._s(t.orderDatalist.orderInfo.user_phone))]),n("el-col",{attrs:{span:12}},[t._v("收货地址:"+t._s(t.orderDatalist.orderInfo.user_address))])],1),n("el-divider"),n("div",{staticClass:"ivu-description-list-title"},[t._v("订单信息")]),n("el-row",{staticClass:"mb10"},[n("el-col",{attrs:{span:12}},[t._v("订单ID:"+t._s(t.orderDatalist.orderInfo.order_id))]),n("el-col",{staticClass:"fontColor1",attrs:{span:12}},[t._v("订单状态:"+t._s(t.orderDatalist.orderInfo.status_name))])],1),n("el-row",{staticClass:"mb10"},[n("el-col",{attrs:{span:12}},[t._v("商品名称:"+t._s(t.orderDatalist.orderInfo.store_name+" | ")+t._s(t.orderDatalist.orderInfo.suk||""))])],1),n("el-row",{staticClass:"mb10"},[n("el-col",{attrs:{span:12}},[t._v("商品总数:"+t._s(t.orderDatalist.orderInfo.total_num))]),n("el-col",{attrs:{span:12}},[t._v("商品总积分:"+t._s(t.orderDatalist.orderInfo.total_price))])],1),n("el-row",{staticClass:"mb10"},[n("el-col",{staticClass:"mb10",attrs:{span:12}},[t._v("创建时间:"+t._s(t.orderDatalist.orderInfo.add_time))]),t.orderDatalist.orderInfo.remark?n("el-col",{staticClass:"mb10",attrs:{span:12}},[t._v("商家备注:"+t._s(t.orderDatalist.orderInfo.remark))]):t._e(),t.orderDatalist.orderInfo.fictitious_content?n("el-col",{staticClass:"mb10",attrs:{span:12}},[t._v("虚拟发货备注:"+t._s(t.orderDatalist.orderInfo.fictitious_content))]):t._e()],1),"express"===t.orderDatalist.orderInfo.delivery_type?n("div",[n("el-divider"),n("div",{staticClass:"ivu-description-list-title"},[t._v("物流信息")]),n("el-row",{staticClass:"mb10"},[n("el-col",{attrs:{span:12}},[t._v("快递公司:"+t._s(t.orderDatalist.orderInfo.delivery_name))]),n("el-col",{attrs:{span:12}},[t._v("快递单号:"+t._s(t.orderDatalist.orderInfo.delivery_id)+"\n "),n("a",{attrs:{size:"small"},on:{click:t.openLogistics}},[t._v("物流查询")])])],1)],1):t._e(),"send"===t.orderDatalist.orderInfo.delivery_type?n("div",[n("el-divider"),n("div",{staticClass:"ivu-description-list-title"},[t._v("配送信息")]),n("el-row",{staticClass:"mb10"},[n("el-col",{attrs:{span:12}},[t._v("送货人姓名:"+t._s(t.orderDatalist.orderInfo.delivery_name))]),n("el-col",{attrs:{span:12}},[t._v("送货人电话:"+t._s(t.orderDatalist.orderInfo.delivery_id))])],1)],1):t._e(),t.orderDatalist.orderInfo.mark?n("div",[n("el-divider"),t.orderDatalist.orderInfo.mark?n("div",{staticClass:"ivu-description-list-title"},[t._v("备注信息")]):t._e(),n("el-row",{staticClass:"mb10"},[n("el-col",{staticClass:"fontColor2",attrs:{span:12}},[t._v(t._s(t.orderDatalist.orderInfo.mark))])],1)],1):t._e()],1)],1),n("el-dialog",{staticClass:"order_box2",attrs:{visible:t.modal2,title:"物流查询",width:"470px"},on:{"update:visible":function(e){t.modal2=e}}},[n("div",{staticClass:"logistics acea-row row-top"},[n("div",{staticClass:"logistics_img"},[n("img",{attrs:{src:r("bd9b")}})]),n("div",{staticClass:"logistics_cent"},[n("span",[t._v("物流公司:"+t._s(t.orderDatalist.orderInfo.delivery_name))]),n("span",[t._v("物流单号:"+t._s(t.orderDatalist.orderInfo.delivery_id))])])]),n("div",{staticClass:"acea-row row-column-around trees-coadd"},[n("div",{staticClass:"scollhide"},[n("el-timeline",t._l(t.result,(function(e,r){return n("el-timeline-item",{key:r,attrs:{timestamp:e.time}},[t._v("\n "+t._s(e.status)+"\n ")])})),1)],1)])])],1):t._e()}),[],!1,null,"a7f639e4",null).exports;function w(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */w=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(e){c=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var i,a,s,l;e=e&&e.prototype instanceof f?e:f,e=Object.create(e.prototype),o=new L(o||[]);return n(e,"_invoke",{value:(i=t,a=r,s=o,l="suspendedStart",function(t,e){if("executing"===l)throw new Error("Generator is already running");if("completed"===l){if("throw"===t)throw e;return I()}for(s.method=t,s.arg=e;;){var r=s.delegate;if(r&&(r=function t(e,r){var n=r.method,o=e.iterator[n];return void 0===o?(r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=void 0,t(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h):(n=d(o,e.iterator,r.arg),"throw"===n.type?(r.method="throw",r.arg=n.arg,r.delegate=null,h):(o=n.arg,o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,h):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,h)))}(r,s),r)){if(r===h)continue;return r}if("next"===s.method)s.sent=s._sent=s.arg;else if("throw"===s.method){if("suspendedStart"===l)throw l="completed",s.arg;s.dispatchException(s.arg)}else"return"===s.method&&s.abrupt("return",s.arg);if(l="executing",r=d(i,a,s),"normal"===r.type){if(l=s.done?"completed":"suspendedYield",r.arg===h)continue;return{value:r.arg,done:s.done}}"throw"===r.type&&(l="completed",s.method="throw",s.arg=r.arg)}})}),e}function d(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var h={};function f(){}function m(){}function p(){}o={};var v=(c(o,a,(function(){return this})),Object.getPrototypeOf),g=(v=v&&v(v(O([]))),v&&v!==e&&r.call(v,a)&&(o=v),p.prototype=f.prototype=Object.create(o));function y(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function b(t,e){var o;n(this,"_invoke",{value:function(n,a){function s(){return new e((function(o,s){!function n(o,a,s,l){var c;o=d(t[o],t,a);if("throw"!==o.type)return(a=(c=o.arg).value)&&"object"==Object(i.a)(a)&&r.call(a,"__await")?e.resolve(a.__await).then((function(t){n("next",t,s,l)}),(function(t){n("throw",t,s,l)})):e.resolve(a).then((function(t){c.value=t,s(c)}),(function(t){return n("throw",t,s,l)}));l(o.arg)}(n,a,o,s)}))}return o=o?o.then(s,s):s()}})}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function O(t){if(t){var e,n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length))return e=-1,(n=function n(){for(;++e<t.length;)if(r.call(t,e))return n.value=t[e],n.done=!1,n;return n.value=void 0,n.done=!0,n}).next=n}return{next:I}}function I(){return{value:void 0,done:!0}}return n(g,"constructor",{value:m.prototype=p,configurable:!0}),n(p,"constructor",{value:m,configurable:!0}),m.displayName=c(p,l,"GeneratorFunction"),t.isGeneratorFunction=function(t){return t="function"==typeof t&&t.constructor,!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,l,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},y(b.prototype),c(b.prototype,s,(function(){return this})),t.AsyncIterator=b,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new b(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},y(g),c(g,l,"Generator"),c(g,a,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e,r=Object(t),n=[];for(e in r)n.push(e);return n.reverse(),function t(){for(;n.length;){var e=n.pop();if(e in r)return t.value=e,t.done=!1,t}return t.done=!0,t}},t.values=O,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;0<=o;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(s&&l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;0<=n;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}var a=(i=i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc?null:i)?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),x(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var r,n,o=this.tryEntries[e];if(o.tryLoc===t)return"throw"===(r=o.completion).type&&(n=r.arg,x(o)),n}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:O(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}var b={name:"orderMark",data:function(){return{formValidate:{remark:""},modals:!1,ruleValidate:{remark:[{required:!0,message:"请输入备注信息",trigger:"blur"}]}}},props:{orderId:Number},methods:{cancel:function(t){this.modals=!1,this.$refs[t].resetFields()},putRemark:function(t){var e=this,r={id:this.orderId,remark:this.formValidate};this.$refs[t].validate((function(n){n?Object(l.U)(r).then(function(){var r=Object(a.a)(w().mark((function r(n){return w().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:e.$message.success(n.msg),e.modals=!1,e.$refs[t].resetFields(),e.$emit("submitFail");case 4:case"end":return r.stop()}}),r)})));return function(t){return r.apply(this,arguments)}}()).catch((function(t){e.$message.error(t.msg)})):e.$message.warning("请填写备注信息")}))}}};b=Object(h.a)(b,(function(){var t=this,e=t.$createElement;e=t._self._c||e;return e("el-dialog",{staticClass:"order_box",attrs:{visible:t.modals,title:"请修改内容",width:"470px","show-close":!0},on:{"update:visible":function(e){t.modals=e}}},[e("el-form",{ref:"formValidate",attrs:{model:t.formValidate,rules:t.ruleValidate,"label-width":"85px"},nativeOn:{submit:function(t){t.preventDefault()}}},[e("el-form-item",{attrs:{label:"备注:",prop:"remark"}},[e("el-input",{staticStyle:{width:"100%"},attrs:{maxlength:200,rows:8,"show-word-limit":"",type:"textarea",placeholder:"订单备注"},model:{value:t.formValidate.remark,callback:function(e){t.$set(t.formValidate,"remark",e)},expression:"formValidate.remark"}})],1)],1),e("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{on:{click:function(e){return t.cancel("formValidate")}}},[t._v("取消")]),e("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.putRemark("formValidate")}}},[t._v("提交")])],1)],1)}),[],!1,null,"7aea39a4",null).exports;function _(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(e){c=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var i,a,s,l;e=e&&e.prototype instanceof f?e:f,e=Object.create(e.prototype),o=new L(o||[]);return n(e,"_invoke",{value:(i=t,a=r,s=o,l="suspendedStart",function(t,e){if("executing"===l)throw new Error("Generator is already running");if("completed"===l){if("throw"===t)throw e;return I()}for(s.method=t,s.arg=e;;){var r=s.delegate;if(r&&(r=function t(e,r){var n=r.method,o=e.iterator[n];return void 0===o?(r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=void 0,t(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h):(n=d(o,e.iterator,r.arg),"throw"===n.type?(r.method="throw",r.arg=n.arg,r.delegate=null,h):(o=n.arg,o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,h):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,h)))}(r,s),r)){if(r===h)continue;return r}if("next"===s.method)s.sent=s._sent=s.arg;else if("throw"===s.method){if("suspendedStart"===l)throw l="completed",s.arg;s.dispatchException(s.arg)}else"return"===s.method&&s.abrupt("return",s.arg);if(l="executing",r=d(i,a,s),"normal"===r.type){if(l=s.done?"completed":"suspendedYield",r.arg===h)continue;return{value:r.arg,done:s.done}}"throw"===r.type&&(l="completed",s.method="throw",s.arg=r.arg)}})}),e}function d(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var h={};function f(){}function m(){}function p(){}o={};var v=(c(o,a,(function(){return this})),Object.getPrototypeOf),g=(v=v&&v(v(O([]))),v&&v!==e&&r.call(v,a)&&(o=v),p.prototype=f.prototype=Object.create(o));function y(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){var o;n(this,"_invoke",{value:function(n,a){function s(){return new e((function(o,s){!function n(o,a,s,l){var c;o=d(t[o],t,a);if("throw"!==o.type)return(a=(c=o.arg).value)&&"object"==Object(i.a)(a)&&r.call(a,"__await")?e.resolve(a.__await).then((function(t){n("next",t,s,l)}),(function(t){n("throw",t,s,l)})):e.resolve(a).then((function(t){c.value=t,s(c)}),(function(t){return n("throw",t,s,l)}));l(o.arg)}(n,a,o,s)}))}return o=o?o.then(s,s):s()}})}function b(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(b,this),this.reset(!0)}function O(t){if(t){var e,n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length))return e=-1,(n=function n(){for(;++e<t.length;)if(r.call(t,e))return n.value=t[e],n.done=!1,n;return n.value=void 0,n.done=!0,n}).next=n}return{next:I}}function I(){return{value:void 0,done:!0}}return n(g,"constructor",{value:m.prototype=p,configurable:!0}),n(p,"constructor",{value:m,configurable:!0}),m.displayName=c(p,l,"GeneratorFunction"),t.isGeneratorFunction=function(t){return t="function"==typeof t&&t.constructor,!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,l,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},y(w.prototype),c(w.prototype,s,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},y(g),c(g,l,"Generator"),c(g,a,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e,r=Object(t),n=[];for(e in r)n.push(e);return n.reverse(),function t(){for(;n.length;){var e=n.pop();if(e in r)return t.value=e,t.done=!1,t}return t.done=!0,t}},t.values=O,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;0<=o;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(s&&l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;0<=n;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}var a=(i=i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc?null:i)?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),x(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var r,n,o=this.tryEntries[e];if(o.tryLoc===t)return"throw"===(r=o.completion).type&&(n=r.arg,x(o)),n}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:O(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}var x={name:"orderRecord",data:function(){return{modals:!1,loading:!1,recordData:[],page:{page:1,limit:15},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(t){this.page.pageNum=t,this.getList()},getList:function(t){var e=this;t={id:t,datas:this.page};this.loading=!0,Object(l.A)(t).then(function(){var t=Object(a.a)(_().mark((function t(r){return _().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.recordData=r.data,e.loading=!1;case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.loading=!1,e.$message.error(t.msg)}))}}};r("21b8"),x=Object(h.a)(x,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("el-dialog",{staticClass:"order_box",attrs:{visible:t.modals,scrollable:"",title:"订单记录",width:"720px"},on:{"update:visible":function(e){t.modals=e}}},[r("el-card",{attrs:{bordered:!1,shadow:"never"}},[r("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],attrs:{columns:t.columns,data:t.recordData,"empty-text":"暂无数据","highlight-current-row":""}},[r("el-table-column",{attrs:{label:"订单ID",width:"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",[t._v(t._s(e.row.oid))])]}}])}),r("el-table-column",{attrs:{label:"操作记录","min-width":"130"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",[t._v(t._s(e.row.change_message))])]}}])}),r("el-table-column",{attrs:{label:"操作时间","min-width":"130"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",[t._v(t._s(e.row.change_time))])]}}])})],1)],1)],1)}),[],!1,null,"1712de6e",null).exports;function L(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */L=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(e){c=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var i,a,s,l;e=e&&e.prototype instanceof f?e:f,e=Object.create(e.prototype),o=new x(o||[]);return n(e,"_invoke",{value:(i=t,a=r,s=o,l="suspendedStart",function(t,e){if("executing"===l)throw new Error("Generator is already running");if("completed"===l){if("throw"===t)throw e;return I()}for(s.method=t,s.arg=e;;){var r=s.delegate;if(r&&(r=function t(e,r){var n=r.method,o=e.iterator[n];return void 0===o?(r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=void 0,t(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h):(n=d(o,e.iterator,r.arg),"throw"===n.type?(r.method="throw",r.arg=n.arg,r.delegate=null,h):(o=n.arg,o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,h):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,h)))}(r,s),r)){if(r===h)continue;return r}if("next"===s.method)s.sent=s._sent=s.arg;else if("throw"===s.method){if("suspendedStart"===l)throw l="completed",s.arg;s.dispatchException(s.arg)}else"return"===s.method&&s.abrupt("return",s.arg);if(l="executing",r=d(i,a,s),"normal"===r.type){if(l=s.done?"completed":"suspendedYield",r.arg===h)continue;return{value:r.arg,done:s.done}}"throw"===r.type&&(l="completed",s.method="throw",s.arg=r.arg)}})}),e}function d(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var h={};function f(){}function m(){}function p(){}o={};var v=(c(o,a,(function(){return this})),Object.getPrototypeOf),g=(v=v&&v(v(O([]))),v&&v!==e&&r.call(v,a)&&(o=v),p.prototype=f.prototype=Object.create(o));function y(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){var o;n(this,"_invoke",{value:function(n,a){function s(){return new e((function(o,s){!function n(o,a,s,l){var c;o=d(t[o],t,a);if("throw"!==o.type)return(a=(c=o.arg).value)&&"object"==Object(i.a)(a)&&r.call(a,"__await")?e.resolve(a.__await).then((function(t){n("next",t,s,l)}),(function(t){n("throw",t,s,l)})):e.resolve(a).then((function(t){c.value=t,s(c)}),(function(t){return n("throw",t,s,l)}));l(o.arg)}(n,a,o,s)}))}return o=o?o.then(s,s):s()}})}function b(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function _(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function x(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(b,this),this.reset(!0)}function O(t){if(t){var e,n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length))return e=-1,(n=function n(){for(;++e<t.length;)if(r.call(t,e))return n.value=t[e],n.done=!1,n;return n.value=void 0,n.done=!0,n}).next=n}return{next:I}}function I(){return{value:void 0,done:!0}}return n(g,"constructor",{value:m.prototype=p,configurable:!0}),n(p,"constructor",{value:m,configurable:!0}),m.displayName=c(p,l,"GeneratorFunction"),t.isGeneratorFunction=function(t){return t="function"==typeof t&&t.constructor,!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,l,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},y(w.prototype),c(w.prototype,s,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},y(g),c(g,l,"Generator"),c(g,a,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e,r=Object(t),n=[];for(e in r)n.push(e);return n.reverse(),function t(){for(;n.length;){var e=n.pop();if(e in r)return t.value=e,t.done=!1,t}return t.done=!0,t}},t.values=O,x.prototype={constructor:x,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(_),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;0<=o;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(s&&l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;0<=n;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}var a=(i=i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc?null:i)?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),_(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var r,n,o=this.tryEntries[e];if(o.tryLoc===t)return"throw"===(r=o.completion).type&&(n=r.arg,_(o)),n}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:O(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}var O={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:!1}},methods:{changeRadio:function(t){switch(this.$refs.formItem.resetFields(),t){case"1":this.formItem.delivery_name="",this.formItem.delivery_id="",this.formItem.express_temp_id="",this.formItem.express_record_type="1",this.expressTemp=[],this.getList(1);break;case"2":this.formItem.sh_delivery="";break;case"3":this.formItem.fictitious_content=""}},changeExpress:function(t){switch(t){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(t){var e=this;t=2===t?1:"";Object(l.x)(t).then(function(){var t=Object(a.a)(L().mark((function t(r){return L().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.express=r.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(t){var e=this,r={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(l.T)(r).then(function(){var t=Object(a.a)(L().mark((function t(r){return L().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.$emit("submitFail"),e.modals=!1,e.$message.success(r.msg),e.reset();case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.$message.error(t.msg)}))},cancel:function(t){this.modals=!1,this.reset()},expressChange:function(t){var e=this,r=this.express.find((function(e){return e.value===t}));void 0!==r&&(this.formItem.delivery_code=r.code,"2"===this.formItem.express_record_type&&(this.expressTemp=[],this.formItem.express_temp_id="",Object(l.Y)({com:this.formItem.delivery_code}).then((function(t){e.expressTemp=t.data,t.data.length||e.$message.error("请配置你所选快递公司的电子面单")})).catch((function(t){e.$message.error(t.msg)}))))},getDeliveryList:function(){var t=this;Object(l.X)().then((function(e){t.deliveryList=e.data.list})).catch((function(e){t.$message.error(e.msg)}))},getSheetInfo:function(){var t=this;Object(l.ab)().then((function(e){var r,n=e.data;for(r in n)n.hasOwnProperty(r)&&(t.formItem[r]=n[r]);t.export_open=void 0===n.export_open||n.export_open,t.export_open||(t.formItem.express_record_type="1"),t.formItem.to_addr=n.to_add})).catch((function(e){t.$message.error(e.msg)}))},shDeliveryChange:function(t){var e=this.deliveryList.find((function(e){return e.id===t}));this.formItem.sh_delivery_name=e.wx_name,this.formItem.sh_delivery_id=e.phone,this.formItem.sh_delivery_uid=e.uid},expressTempChange:function(t){this.temp=this.expressTemp.find((function(e){return t===e.temp_id})),void 0===this.temp&&(this.temp={})},preview:function(){this.$refs.viewer.$viewer.show()}}},I=(O=(r("ca59"),Object(h.a)(O,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("el-dialog",{staticClass:"order_box",attrs:{visible:t.modals,title:"订单发送货",width:"720px","show-close":!0},on:{"update:visible":function(e){t.modals=e}}},[r("el-form",{ref:"formItem",attrs:{model:t.formItem,"label-width":"100px"},nativeOn:{submit:function(t){t.preventDefault()}}},[r("el-form-item",{attrs:{label:"选择类型:"}},[r("el-radio-group",{on:{input:t.changeRadio},model:{value:t.formItem.type,callback:function(e){t.$set(t.formItem,"type",e)},expression:"formItem.type"}},[r("el-radio",{attrs:{label:"1"}},[t._v("发货")]),r("el-radio",{attrs:{label:"2"}},[t._v("送货")]),r("el-radio",{attrs:{label:"3"}},[t._v("虚拟")])],1)],1),r("el-form-item",{directives:[{name:"show",rawName:"v-show",value:"1"==t.formItem.type&&t.export_open,expression:"formItem.type == '1' && export_open"}],attrs:{label:"发货类型:"}},[r("el-radio-group",{on:{input:t.changeExpress},model:{value:t.formItem.express_record_type,callback:function(e){t.$set(t.formItem,"express_record_type",e)},expression:"formItem.express_record_type"}},[r("el-radio",{attrs:{label:"1"}},[t._v("手动填写")]),r("el-radio",{attrs:{label:"2"}},[t._v("电子面单打印")])],1)],1),r("div",{directives:[{name:"show",rawName:"v-show",value:"1"===t.formItem.type,expression:"formItem.type === '1'"}]},[r("el-form-item",{attrs:{label:"快递公司:"}},[r("el-select",{staticStyle:{width:"80%"},attrs:{filterable:"",placeholder:"请选择快递公司"},on:{change:t.expressChange},model:{value:t.formItem.delivery_name,callback:function(e){t.$set(t.formItem,"delivery_name",e)},expression:"formItem.delivery_name"}},t._l(t.express,(function(t,e){return r("el-option",{key:t.value,attrs:{value:t.value,label:t.value}})})),1)],1),"1"===t.formItem.express_record_type?r("el-form-item",{attrs:{label:"快递单号:"}},[r("el-input",{staticStyle:{width:"80%"},attrs:{placeholder:"请输入快递单号"},model:{value:t.formItem.delivery_id,callback:function(e){t.$set(t.formItem,"delivery_id",e)},expression:"formItem.delivery_id"}}),"顺丰速运"==t.formItem.delivery_name?r("div",{staticClass:"trips"},[r("p",[t._v("顺丰请输入单号 :收件人或寄件人手机号后四位")]),r("p",[t._v("例如:SF000000000000:3941")])]):t._e()],1):t._e(),"2"===t.formItem.express_record_type?[r("el-form-item",{staticClass:"express_temp_id",attrs:{label:"电子面单:"}},[r("el-select",{staticStyle:{width:"80%"},attrs:{placeholder:"请选择电子面单"},on:{change:t.expressTempChange},model:{value:t.formItem.express_temp_id,callback:function(e){t.$set(t.formItem,"express_temp_id",e)},expression:"formItem.express_temp_id"}},t._l(t.expressTemp,(function(t,e){return r("el-option",{key:e,attrs:{value:t.temp_id,label:t.title}})})),1),t.formItem.express_temp_id?r("el-button",{attrs:{type:"text"},on:{click:t.preview}},[t._v("预览")]):t._e()],1),r("el-form-item",{attrs:{label:"寄件人姓名:"}},[r("el-input",{staticStyle:{width:"80%"},attrs:{placeholder:"请输入寄件人姓名"},model:{value:t.formItem.to_name,callback:function(e){t.$set(t.formItem,"to_name",e)},expression:"formItem.to_name"}})],1),r("el-form-item",{attrs:{label:"寄件人电话:"}},[r("el-input",{staticStyle:{width:"80%"},attrs:{placeholder:"请输入寄件人电话"},model:{value:t.formItem.to_tel,callback:function(e){t.$set(t.formItem,"to_tel",e)},expression:"formItem.to_tel"}})],1),r("el-form-item",{attrs:{label:"寄件人地址:"}},[r("el-input",{staticStyle:{width:"80%"},attrs:{placeholder:"请输入寄件人地址"},model:{value:t.formItem.to_addr,callback:function(e){t.$set(t.formItem,"to_addr",e)},expression:"formItem.to_addr"}})],1)]:t._e()],2),r("div",{directives:[{name:"show",rawName:"v-show",value:"2"===t.formItem.type,expression:"formItem.type === '2'"}]},[r("el-form-item",{attrs:{label:"送货人:"}},[r("el-select",{staticStyle:{width:"80%"},attrs:{placeholder:"请选择送货人"},on:{change:t.shDeliveryChange},model:{value:t.formItem.sh_delivery,callback:function(e){t.$set(t.formItem,"sh_delivery",e)},expression:"formItem.sh_delivery"}},t._l(t.deliveryList,(function(t,e){return r("el-option",{key:e,attrs:{value:t.id,label:t.wx_name+" ("+t.phone+")"}})})),1)],1)],1),r("div",{directives:[{name:"show",rawName:"v-show",value:"3"===t.formItem.type,expression:"formItem.type === '3'"}]},[r("el-form-item",{attrs:{label:"备注:"}},[r("el-input",{staticStyle:{width:"80%"},attrs:{type:"textarea",autosize:{minRows:2,maxRows:5},placeholder:"备注"},model:{value:t.formItem.fictitious_content,callback:function(e){t.$set(t.formItem,"fictitious_content",e)},expression:"formItem.fictitious_content"}})],1)],1)],1),r("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:t.cancel}},[t._v("取消")]),r("el-button",{attrs:{type:"primary"},on:{click:t.putSend}},[t._v("提交")])],1),r("div",{directives:[{name:"viewer",rawName:"v-viewer"},{name:"show",rawName:"v-show",value:t.temp,expression:"temp"}],ref:"viewer"},[r("img",{staticStyle:{display:"none"},attrs:{src:t.temp.pic}})])],1)}),[],!1,null,"9f73cfc6",null).exports),r("a716"));function k(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */k=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(e){c=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var i,a,s,l;e=e&&e.prototype instanceof f?e:f,e=Object.create(e.prototype),o=new x(o||[]);return n(e,"_invoke",{value:(i=t,a=r,s=o,l="suspendedStart",function(t,e){if("executing"===l)throw new Error("Generator is already running");if("completed"===l){if("throw"===t)throw e;return O()}for(s.method=t,s.arg=e;;){var r=s.delegate;if(r&&(r=function t(e,r){var n=r.method,o=e.iterator[n];return void 0===o?(r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=void 0,t(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h):(n=d(o,e.iterator,r.arg),"throw"===n.type?(r.method="throw",r.arg=n.arg,r.delegate=null,h):(o=n.arg,o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,h):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,h)))}(r,s),r)){if(r===h)continue;return r}if("next"===s.method)s.sent=s._sent=s.arg;else if("throw"===s.method){if("suspendedStart"===l)throw l="completed",s.arg;s.dispatchException(s.arg)}else"return"===s.method&&s.abrupt("return",s.arg);if(l="executing",r=d(i,a,s),"normal"===r.type){if(l=s.done?"completed":"suspendedYield",r.arg===h)continue;return{value:r.arg,done:s.done}}"throw"===r.type&&(l="completed",s.method="throw",s.arg=r.arg)}})}),e}function d(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var h={};function f(){}function m(){}function p(){}o={};var v=(c(o,a,(function(){return this})),Object.getPrototypeOf),g=(v=v&&v(v(L([]))),v&&v!==e&&r.call(v,a)&&(o=v),p.prototype=f.prototype=Object.create(o));function y(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){var o;n(this,"_invoke",{value:function(n,a){function s(){return new e((function(o,s){!function n(o,a,s,l){var c;o=d(t[o],t,a);if("throw"!==o.type)return(a=(c=o.arg).value)&&"object"==Object(i.a)(a)&&r.call(a,"__await")?e.resolve(a.__await).then((function(t){n("next",t,s,l)}),(function(t){n("throw",t,s,l)})):e.resolve(a).then((function(t){c.value=t,s(c)}),(function(t){return n("throw",t,s,l)}));l(o.arg)}(n,a,o,s)}))}return o=o?o.then(s,s):s()}})}function b(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function _(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function x(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(b,this),this.reset(!0)}function L(t){if(t){var e,n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length))return e=-1,(n=function n(){for(;++e<t.length;)if(r.call(t,e))return n.value=t[e],n.done=!1,n;return n.value=void 0,n.done=!0,n}).next=n}return{next:O}}function O(){return{value:void 0,done:!0}}return n(g,"constructor",{value:m.prototype=p,configurable:!0}),n(p,"constructor",{value:m,configurable:!0}),m.displayName=c(p,l,"GeneratorFunction"),t.isGeneratorFunction=function(t){return t="function"==typeof t&&t.constructor,!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,l,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},y(w.prototype),c(w.prototype,s,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},y(g),c(g,l,"Generator"),c(g,a,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e,r=Object(t),n=[];for(e in r)n.push(e);return n.reverse(),function t(){for(;n.length;){var e=n.pop();if(e in r)return t.value=e,t.done=!1,t}return t.done=!0,t}},t.values=L,x.prototype={constructor:x,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(_),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;0<=o;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(s&&l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;0<=n;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}var a=(i=i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc?null:i)?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),_(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var r,n,o=this.tryEntries[e];if(o.tryLoc===t)return"throw"===(r=o.completion).type&&(n=r.arg,_(o)),n}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:L(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}d={name:"table_list",components:{expandRow:d,editFrom:v.a,detailsFrom:y,orderRemark:b,orderRecord:x,orderSend:O,userDetails:I.a},props:["where","isAll"],data:function(){return{delfromData:{},modal:!1,orderList:[],orderCards:[],loading:!1,orderId:0,total:0,page:{pageNum:1,pageSize:10},data:[],FromData:null,orderDatalist:null,modalTitleSs:"",isDelIdList:[],checkBox:!1,formSelection:[],selectionCopy:[],display:"none",autoDisabled:!1}},computed:Object(n.a)({},Object(s.d)("integralOrder",["orderPayType","orderStatus","orderTime","orderNum","fieldKey","orderType"])),mounted:function(){this.getList()},activated:function(){this.getList()},watch:{orderType:function(){this.page.pageNum=1,this.getList()},formSelection:function(t){this.$emit("order-select",t),t.length?this.$emit("auto-disabled",0):this.$emit("auto-disabled",1);var e=t.some((function(t){return 1===t.is_del}));this.getIsDel(e),this.getisDelIdListl(t)},orderList:{deep:!0,handler:function(t){var e=this;t.forEach((function(t){e.formSelection.forEach((function(e){e.id===t.id&&(t.checkBox=!0)}))})),t=this.orderList.filter((function(t){return t.checkBox}));this.orderList.length?this.checkBox=this.orderList.length===t.length:this.checkBox=!1}}},methods:Object(n.a)(Object(n.a)({},Object(s.c)("integralOrder",["getIsDel","getisDelIdListl"])),{},{selectAll:function(t){var e=this;t.length&&(this.formSelection=t,this.selectionCopy=t),this.selectionCopy.forEach((function(t,r){t.checkBox=e.checkBox,e.$set(e.orderList,r,t)}))},showUserInfo:function(t){this.$refs.userDetails.modals=!0,this.$refs.userDetails.getDetails(t.uid)},changeMenu:function(t,e){var r=this;switch(this.orderId=t.id,e){case"2":this.getData(t.id);break;case"3":this.$refs.record.modals=!0,this.$refs.record.getList(t.id);break;case"4":this.$refs.remarks.modals=!0,this.$refs.remarks.formValidate.remark=t.remark;break;case"5":this.getRefundData(t.id);break;case"6":this.getRefundIntegral(t.id);break;case"7":this.getNoRefundData(t.id);break;case"8":this.delfromData={title:"修改确认收货",url:"marketing/integral/order/take/".concat(t.id),method:"put",ids:""},this.$modalSure(this.delfromData).then((function(t){r.$message.success(t.msg),r.getList()})).catch((function(t){r.$message.error(t.msg)}));break;case"10":this.delfromData={title:"立即打印订单",info:"您确认打印此订单吗?",url:"marketing/integral/order/print/".concat(t.id),method:"get",ids:""},this.$modalSure(this.delfromData).then((function(t){r.$message.success(t.msg),r.$emit("changeGetTabs"),r.getList()})).catch((function(t){r.$message.error(t.msg)}));break;case"11":this.delfromData={title:"立即打印电子面单",info:"您确认打印此电子面单吗?",url:"/order/order_dump/".concat(t.id),method:"get",ids:""},this.$modalSure(this.delfromData).then((function(t){r.$message.success(t.msg),r.getList()})).catch((function(t){r.$message.error(t.msg)}));break;default:this.delfromData={title:"删除订单",url:"marketing/integral/order/del/".concat(t.id),method:"DELETE",ids:""},this.delOrder(t,this.delfromData)}},submitModel:function(){this.getList()},getList:function(t){var e=this;this.page.pageNum=1===t?1:this.page.pageNum,this.loading=!0,Object(l.S)({page:this.page.pageNum,limit:this.page.pageSize,status:this.orderStatus,pay_type:this.orderPayType,data:this.orderTime,real_name:this.orderNum,field_key:this.fieldKey,type:0===this.orderType?"":this.orderType,product_id:this.$route.query.product_id}).then(function(){var t=Object(a.a)(k().mark((function t(r){var n;return k().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=r.data,e.orderList=n.data.map((function(t){return 1===e.isAll?t.checkBox=!0:t.checkBox=!1,t})),e.orderCards=n.stat,e.total=n.count,e.$emit("on-changeCards",n.stat),e.loading=!1;case 6: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)}))},onSelectTab:function(t){var e=(this.formSelection=t).some((function(t){return 1===t.is_del}));this.getIsDel(e),this.getisDelIdListl(t)},edit:function(t){this.getOrderData(t.id)},delOrder:function(t,e){var r=this;1===t.is_del?this.$modalSure(e).then((function(t){r.$message.success(t.msg),r.getList()})).catch((function(t){r.$message.error(t.msg)})):this.$message.error("您选择的的订单存在用户未删除的订单,无法删除用户未删除的订单!")},getOrderData:function(t){var e=this;Object(c.l)(t).then(function(){var t=Object(a.a)(k().mark((function t(r){return k().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!1===r.data.status)return t.abrupt("return",e.$authLapse(r.data));t.next=2;break;case 2:e.$authLapse(r.data),e.FromData=r.data,e.$refs.edits.modals=!0;case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.$message.error(t.msg)}))},getData:function(t){var e=this;Object(l.y)(t).then(function(){var t=Object(a.a)(k().mark((function t(r){return k().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.$refs.detailss.modals=!0,e.orderDatalist=r.data,e.orderDatalist.orderInfo.refund_reason_wap_img)try{e.orderDatalist.orderInfo.refund_reason_wap_img=JSON.parse(e.orderDatalist.orderInfo.refund_reason_wap_img)}catch(t){e.orderDatalist.orderInfo.refund_reason_wap_img=[]}case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.$message.error(t.msg)}))},submitFail:function(){this.$emit("updata"),this.getList()},sendOrder:function(t){this.$refs.send.modals=!0,this.$refs.send.getList(),this.$refs.send.getDeliveryList(),this.orderId=t.id},delivery:function(t){var e=this;Object(l.z)(t.id).then(function(){var t=Object(a.a)(k().mark((function t(r){return k().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.FromData=r.data,e.$refs.edits.modals=!0;case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.$message.error(t.msg)}))},change:function(t){},exportData:function(){this.$refs.table.exportCsv({filename:"商品列表"})},onSelectCancel:function(t,e){}})},r("0bda"),v={name:"orderlistDetails",components:{tableForm:f,tableList:Object(h.a)(d,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[r("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"table",staticClass:"orderData",attrs:{data:t.orderList,"highlight-current-row":"","empty-text":"暂无数据"},on:{select:t.selectAll,"select-all":t.selectAll}},[r("el-table-column",{attrs:{label:"订单号","min-width":"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",{staticStyle:{display:"block"},domProps:{textContent:t._s(e.row.order_id)}}),r("span",{directives:[{name:"show",rawName:"v-show",value:1==e.row.is_del,expression:"scope.row.is_del == 1"}],staticStyle:{color:"#ed4014",display:"block"}},[t._v("用户已删除")])]}}])}),r("el-table-column",{attrs:{label:"用户信息","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.nickname)+"/"+t._s(e.row.uid)+"\n ")]}}])}),r("el-table-column",{attrs:{label:"商品信息","min-width":"330"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("div",{staticClass:"tabBox"},[r("div",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"tabBox_img"},[r("img",{directives:[{name:"lazy",rawName:"v-lazy",value:e.row.image,expression:"scope.row.image"}]})]),r("span",{staticClass:"tabBox_tit"},[t._v(" "+t._s(e.row.store_name+" | ")+t._s(e.row.suk||"")+" ")]),r("span",{staticClass:"tabBox_pice"},[t._v(t._s("积分"+e.row.total_price+" x "+e.row.total_num))])])]}}])}),r("el-table-column",{attrs:{label:"兑换积分","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",[t._v(t._s(e.row.total_price))])]}}])}),r("el-table-column",{attrs:{label:"订单状态","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",[t._v(t._s(e.row.status_name))])]}}])}),r("el-table-column",{attrs:{label:"下单时间","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",[t._v(t._s(e.row.add_time))])]}}])}),r("el-table-column",{attrs:{label:"操作",fixed:"right",width:"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[1===e.row.status?r("a",{on:{click:function(r){return t.sendOrder(e.row)}}},[t._v("发送货")]):t._e(),2===e.row.status?r("a",{on:{click:function(r){return t.delivery(e.row)}}},[t._v("配送信息")]):t._e(),1===e.row.status||2===e.row.status?r("el-divider",{attrs:{direction:"vertical"}}):t._e(),[r("el-dropdown",{attrs:{size:"small",transfer:!0},on:{command:function(r){return t.changeMenu(e.row,r)}}},[r("span",{staticClass:"el-dropdown-link"},[t._v("更多"),r("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),r("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[r("el-dropdown-item",{attrs:{command:"2"}},[t._v("订单详情")]),r("el-dropdown-item",{attrs:{command:"3"}},[t._v("订单记录")]),r("el-dropdown-item",{directives:[{name:"show",rawName:"v-show",value:1<=e.row.status&&e.row.express_dump,expression:"scope.row.status >= 1 && scope.row.express_dump"}],attrs:{command:"11"}},[t._v("电子面单打印")]),r("el-dropdown-item",{directives:[{name:"show",rawName:"v-show",value:4!==e.row.status,expression:"scope.row.status !== 4"}],attrs:{command:"4"}},[t._v("订单备注")]),r("el-dropdown-item",{directives:[{name:"show",rawName:"v-show",value:2===e.row.status,expression:"scope.row.status === 2"}],attrs:{command:"8"}},[t._v("已收货")]),r("el-dropdown-item",{directives:[{name:"show",rawName:"v-show",value:1===e.row.is_del,expression:"scope.row.is_del === 1"}],attrs:{command:"9"}},[t._v("删除订单")])],1)],1)]]}}])})],1),r("div",{staticClass:"acea-row row-right page"},[t.total?r("pagination",{attrs:{total:t.total,page:t.page.pageNum,limit:t.page.pageSize},on:{"update:page":function(e){return t.$set(t.page,"pageNum",e)},"update:limit":function(e){return t.$set(t.page,"pageSize",e)},pagination:t.getList}}):t._e()],1),r("edit-from",{ref:"edits",attrs:{FromData:t.FromData},on:{submitFail:t.submitFail}}),r("user-details",{ref:"userDetails"}),r("details-from",{ref:"detailss",attrs:{orderDatalist:t.orderDatalist,orderId:t.orderId}}),r("order-remark",{ref:"remarks",attrs:{orderId:t.orderId},on:{submitFail:t.submitFail}}),r("order-record",{ref:"record"}),r("order-send",{ref:"send",attrs:{orderId:t.orderId},on:{submitFail:t.submitFail}})],1)}),[],!1,null,"2e0540aa",null).exports,cardsData:o.a},data:function(){return{currentTab:"",cardLists:[],selection:[],orderData:{status:"",data:"",real_name:"",field_key:"all",pay_type:""},autoDisabled:!0,isAll:-1}},methods:{updata:function(){this.$refs.orderData.integralGetOrdes()},changeGetTabs:function(){this.$parent.getTabs()},getChangeTabs:function(t){this.$refs.table.getList()},getData:function(t){this.$refs.table&&(this.$refs.table.checkBox=!1,this.$refs.table.getList(t))},getCards:function(t){this.cardLists=t},handleResize:function(){this.$refs.ellipsis.forEach((function(t){return t.init()}))},orderSelect:function(t){this.selection=t},onOrderData:function(t){this.orderData=t},orderDatas:function(t){this.orderData=t},onAutoDisabled:function(t){this.autoDisabled=!!t},onAll:function(t){this.isAll=t}},mounted:function(){}},r("3440"),y={name:"list",components:{productlistDetails:Object(h.a)(v,(function(){var t=this,e=t.$createElement;e=t._self._c||e;return e("div",[e("el-card",{staticClass:"ivu-mt",attrs:{bordered:!1,shadow:"never","body-style":{padding:0}}},[e("div",{staticClass:"padding-add"},[e("table-form",{ref:"orderData",attrs:{"is-all":t.isAll,"auto-disabled":t.autoDisabled,"form-selection":t.selection},on:{getList:t.getData,"order-data":t.orderDatas}})],1)]),e("el-card",{staticClass:"mt16",attrs:{bordered:!1,shadow:"never"}},[e("table-list",{ref:"table",attrs:{where:t.orderData,"is-all":t.isAll},on:{"on-all":t.onAll,"auto-disabled":t.onAutoDisabled,"order-data":t.onOrderData,"on-changeCards":t.getCards,changeGetTabs:t.changeGetTabs,"order-select":t.orderSelect,updata:t.updata}})],1)],1)}),[],!1,null,"1d701892",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("")},beforeDestroy:function(){this.getOrderType(""),this.getOrderStatus(""),this.getOrderTime(""),this.getOrderNum(""),this.getfieldKey(""),this.onChangeTabs("")},mounted:function(){this.getTabs()},methods:Object(n.a)(Object(n.a)({},Object(s.c)("integralOrder",["onChangeTabs","getOrderStatus","getOrderTime","getOrderNum","getfieldKey","getOrderType"])),{},{getTabs:function(){var t=this;this.spinShow=!0,this.$store.dispatch("integralOrder/getOrderTabs",{data:""}).then((function(e){t.tablists=e.data,t.spinShow=!1})).catch((function(e){t.spinShow=!1,t.$message.error(e.msg)}))},onClickTab:function(){this.onChangeTabs(Number(this.currentTab)),this.$store.dispatch("integralOrder/getOrderTabs",{data:"",type:Number(this.currentTab)}),this.$refs.productlist.getChangeTabs()}})},r("50ce"),b=Object(h.a)(y,(function(){var t=this,e=t.$createElement;e=t._self._c||e;return e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.spinShow,expression:"spinShow"}]},[(t.currentTab,e("productlist-details",{ref:"productlist",staticClass:"ivu-mt"}))],1)}),[],!1,null,"f81dec48",null),e.default=b.exports},"21b8":function(t,e,r){"use strict";var n=r("f67b");r.n(n).a},"21c3":function(t,e,r){},"2b06":function(t,e,r){},3440:function(t,e,r){"use strict";var n=r("d7c8");r.n(n).a},"41f5":function(t,e,r){"use strict";var n=r("21c3");r.n(n).a},"4f48":function(t,e,r){},"50ce":function(t,e,r){"use strict";var n=r("4f48");r.n(n).a},5188:function(t,e,r){},"55d7":function(t,e,r){},"55de":function(t,e,r){},"756e":function(t,e,r){},7655:function(t,e,r){},7724:function(t,e,r){"use strict";var n=r("55de");r.n(n).a},"7fe7":function(t,e,r){"use strict";var n=r("756e");r.n(n).a},"975d":function(t,e,r){"use strict";var n=r("7655");r.n(n).a},a584:function(t,e,r){"use strict";var n={name:"cards",data:function(){return{colsize:{xl:4,lg:8,md:12}}},props:{cardLists:Array},methods:{},created:function(){switch(this.cardLists.length){case 1:this.colsize.xl=24,this.colsize.lg=24,this.colsize.md=24;break;case 2:this.colsize.xl=12,this.colsize.lg=12,this.colsize.md=12;break;case 3:this.colsize.xl=8,this.colsize.lg=8,this.colsize.md=8;break;case 4:this.colsize.xl=6,this.colsize.lg=6,this.colsize.md=12;break;case 5:this.colsize.xl=8,this.colsize.lg=8,this.colsize.md=12;break;default:this.colsize.xl=4,this.colsize.lg=8,this.colsize.md=12}4==this.cardLists.length?this.colsize.lg=6:4==this.cardLists.length&&(this.colsize.lg=8)}};r("975d"),r=r("2877"),r=Object(r.a)(n,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[r("el-row",{staticClass:"ivu-mt",attrs:{align:"middle",gutter:24}},t._l(t.cardLists,(function(e,n){return r("el-col",{key:n,staticClass:"ivu-mb",attrs:{xl:e.col||t.colsize.xl,lg:t.colsize.lg,md:t.colsize.md,sm:24,xs:24}},[r("el-card",{staticClass:"card_cent",attrs:{shadow:"never"}},[r("div",{staticClass:"card_box"},[r("div",{staticClass:"card_box_cir",class:{one:n%5==0,two:n%5==1,three:n%5==2,four:n%5==3,five:n%5==4}},[r("div",{staticClass:"card_box_cir1",class:{one1:n%5==0,two1:n%5==1,three1:n%5==2,four1:n%5==3,five1:n%5==4}},[r("span",{staticClass:"iconfont",class:e.className})])]),r("div",{staticClass:"card_box_txt"},[r("span",{staticClass:"sp1",domProps:{textContent:t._s(e.count||0)}}),r("span",{staticClass:"sp2",domProps:{textContent:t._s(e.name)}})])])])],1)})),1)],1)}),[],!1,null,"0eb9e1a0",null);e.a=r.exports},aa47a:function(t,e,r){"use strict";var n=r("2b06");r.n(n).a},bd9b:function(t,e){t.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"},ca59:function(t,e,r){"use strict";var n=r("5188");r.n(n).a},d7c8:function(t,e,r){},f67b:function(t,e,r){}}]); |