12 |
- webpackJsonp([2],{"+6Bu":function(e,t,r){"use strict";t.__esModule=!0,t.default=function(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}},"+O7c":function(e,t){},b4uJ:function(e,t){},g5t5:function(e,t,r){"use strict";var n=r("woOf"),i=r.n(n),s=[{name:"订单已提交,等待付款",time:"2017-04-01 12:00:00 "},{name:"订单付款成功",time:"2017-04-01 12:00:00 "},{name:"在北京市进行下级地点扫描,等待付款",time:"2017-04-01 12:00:00 "},{name:"在分拨中心广东深圳公司进行卸车扫描,等待付款",time:"2017-04-01 12:00:00 "},{name:"在广东深圳公司进行发出扫描",time:"2017-04-01 12:00:00 "},{name:"到达目的地网点广东深圳公司,快件将很快进行派送",time:"2017-04-01 12:00:00 "},{name:"订单已签收,期待再次为您服务",time:"2017-04-01 12:00:00 "}],a={name:"logisticsDialog",props:{value:Boolean},computed:{visible:{get:function(){return this.value},set:function(e){this.value=e}}},data:function(){return{logisticsList:i()({},s)}},methods:{emitInput:function(e){this.$emit("input",e)},handleClose:function(){this.emitInput(!1)}}},l={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-dialog",{attrs:{title:"订单跟踪",visible:e.visible,"before-close":e.handleClose,width:"40%"},on:{"update:visible":function(t){e.visible=t}}},[r("el-steps",{attrs:{direction:"vertical",active:6,"finish-status":"success",space:"50px"}},e._l(e.logisticsList,function(e){return r("el-step",{key:e.name,attrs:{title:e.name,description:e.time}})}))],1)},staticRenderFns:[]};var o=r("VU/8")(a,l,!1,function(e){r("+O7c")},null,null);t.a=o.exports},oqQY:function(e,t,r){var n;n=function(){"use strict";var e="millisecond",t="second",r="minute",n="hour",i="day",s="week",a="month",l="quarter",o="year",u="date",c="Invalid Date",d=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,f={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},p=function(e,t,r){var n=String(e);return!n||n.length>=t?e:""+Array(t+1-n.length).join(r)+e},m={s:p,z:function(e){var t=-e.utcOffset(),r=Math.abs(t),n=Math.floor(r/60),i=r%60;return(t<=0?"+":"-")+p(n,2,"0")+":"+p(i,2,"0")},m:function e(t,r){if(t.date()<r.date())return-e(r,t);var n=12*(r.year()-t.year())+(r.month()-t.month()),i=t.clone().add(n,a),s=r-i<0,l=t.clone().add(n+(s?-1:1),a);return+(-(n+(r-i)/(s?i-l:l-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(c){return{M:a,y:o,w:s,d:i,D:u,h:n,m:r,s:t,ms:e,Q:l}[c]||String(c||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},v="en",g={};g[v]=f;var y=function(e){return e instanceof w},b=function e(t,r,n){var i;if(!t)return v;if("string"==typeof t){var s=t.toLowerCase();g[s]&&(i=s),r&&(g[s]=r,i=s);var a=t.split("-");if(!i&&a.length>1)return e(a[0])}else{var l=t.name;g[l]=t,i=l}return!n&&i&&(v=i),i||!n&&v},$=function(e,t){if(y(e))return e.clone();var r="object"==typeof t?t:{};return r.date=e,r.args=arguments,new w(r)},_=m;_.l=b,_.i=y,_.w=function(e,t){return $(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var w=function(){function f(e){this.$L=b(e.locale,null,!0),this.parse(e)}var p=f.prototype;return p.parse=function(e){this.$d=function(e){var t=e.date,r=e.utc;if(null===t)return new Date(NaN);if(_.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var n=t.match(d);if(n){var i=n[2]-1||0,s=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,s)):new Date(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,s)}}return new Date(t)}(e),this.$x=e.x||{},this.init()},p.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},p.$utils=function(){return _},p.isValid=function(){return!(this.$d.toString()===c)},p.isSame=function(e,t){var r=$(e);return this.startOf(t)<=r&&r<=this.endOf(t)},p.isAfter=function(e,t){return $(e)<this.startOf(t)},p.isBefore=function(e,t){return this.endOf(t)<$(e)},p.$g=function(e,t,r){return _.u(e)?this[t]:this.set(r,e)},p.unix=function(){return Math.floor(this.valueOf()/1e3)},p.valueOf=function(){return this.$d.getTime()},p.startOf=function(e,l){var c=this,d=!!_.u(l)||l,h=_.p(e),f=function(e,t){var r=_.w(c.$u?Date.UTC(c.$y,t,e):new Date(c.$y,t,e),c);return d?r:r.endOf(i)},p=function(e,t){return _.w(c.toDate()[e].apply(c.toDate("s"),(d?[0,0,0,0]:[23,59,59,999]).slice(t)),c)},m=this.$W,v=this.$M,g=this.$D,y="set"+(this.$u?"UTC":"");switch(h){case o:return d?f(1,0):f(31,11);case a:return d?f(1,v):f(0,v+1);case s:var b=this.$locale().weekStart||0,$=(m<b?m+7:m)-b;return f(d?g-$:g+(6-$),v);case i:case u:return p(y+"Hours",0);case n:return p(y+"Minutes",1);case r:return p(y+"Seconds",2);case t:return p(y+"Milliseconds",3);default:return this.clone()}},p.endOf=function(e){return this.startOf(e,!1)},p.$set=function(s,l){var c,d=_.p(s),h="set"+(this.$u?"UTC":""),f=(c={},c[i]=h+"Date",c[u]=h+"Date",c[a]=h+"Month",c[o]=h+"FullYear",c[n]=h+"Hours",c[r]=h+"Minutes",c[t]=h+"Seconds",c[e]=h+"Milliseconds",c)[d],p=d===i?this.$D+(l-this.$W):l;if(d===a||d===o){var m=this.clone().set(u,1);m.$d[f](p),m.init(),this.$d=m.set(u,Math.min(this.$D,m.daysInMonth())).$d}else f&&this.$d[f](p);return this.init(),this},p.set=function(e,t){return this.clone().$set(e,t)},p.get=function(e){return this[_.p(e)]()},p.add=function(e,l){var u,c=this;e=Number(e);var d=_.p(l),h=function(t){var r=$(c);return _.w(r.date(r.date()+Math.round(t*e)),c)};if(d===a)return this.set(a,this.$M+e);if(d===o)return this.set(o,this.$y+e);if(d===i)return h(1);if(d===s)return h(7);var f=(u={},u[r]=6e4,u[n]=36e5,u[t]=1e3,u)[d]||1,p=this.$d.getTime()+e*f;return _.w(p,this)},p.subtract=function(e,t){return this.add(-1*e,t)},p.format=function(e){var t=this,r=this.$locale();if(!this.isValid())return r.invalidDate||c;var n=e||"YYYY-MM-DDTHH:mm:ssZ",i=_.z(this),s=this.$H,a=this.$m,l=this.$M,o=r.weekdays,u=r.months,d=function(e,r,i,s){return e&&(e[r]||e(t,n))||i[r].slice(0,s)},f=function(e){return _.s(s%12||12,e,"0")},p=r.meridiem||function(e,t,r){var n=e<12?"AM":"PM";return r?n.toLowerCase():n},m={YY:String(this.$y).slice(-2),YYYY:this.$y,M:l+1,MM:_.s(l+1,2,"0"),MMM:d(r.monthsShort,l,u,3),MMMM:d(u,l),D:this.$D,DD:_.s(this.$D,2,"0"),d:String(this.$W),dd:d(r.weekdaysMin,this.$W,o,2),ddd:d(r.weekdaysShort,this.$W,o,3),dddd:o[this.$W],H:String(s),HH:_.s(s,2,"0"),h:f(1),hh:f(2),a:p(s,a,!0),A:p(s,a,!1),m:String(a),mm:_.s(a,2,"0"),s:String(this.$s),ss:_.s(this.$s,2,"0"),SSS:_.s(this.$ms,3,"0"),Z:i};return n.replace(h,function(e,t){return t||m[e]||i.replace(":","")})},p.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},p.diff=function(e,u,c){var d,h=_.p(u),f=$(e),p=6e4*(f.utcOffset()-this.utcOffset()),m=this-f,v=_.m(this,f);return v=(d={},d[o]=v/12,d[a]=v,d[l]=v/3,d[s]=(m-p)/6048e5,d[i]=(m-p)/864e5,d[n]=m/36e5,d[r]=m/6e4,d[t]=m/1e3,d)[h]||m,c?v:_.a(v)},p.daysInMonth=function(){return this.endOf(a).$D},p.$locale=function(){return g[this.$L]},p.locale=function(e,t){if(!e)return this.$L;var r=this.clone(),n=b(e,t,!0);return n&&(r.$L=n),r},p.clone=function(){return _.w(this.$d,this)},p.toDate=function(){return new Date(this.valueOf())},p.toJSON=function(){return this.isValid()?this.toISOString():null},p.toISOString=function(){return this.$d.toISOString()},p.toString=function(){return this.$d.toUTCString()},f}(),S=w.prototype;return $.prototype=S,[["$ms",e],["$s",t],["$m",r],["$H",n],["$W",i],["$M",a],["$y",o],["$D",u]].forEach(function(e){S[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),$.extend=function(e,t){return e.$i||(e(t,w,$),e.$i=!0),$},$.locale=b,$.isDayjs=y,$.unix=function(e){return $(1e3*e)},$.en=g[v],$.Ls=g,$.p={},$},e.exports=n()},u5in:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r("Dd8w"),i=r.n(n),s=r("+6Bu"),a=r.n(s),l=r("woOf"),o=r.n(l),u=r("FWz8"),c=r("xT6B"),d=r("mtWM"),h=r.n(d),f=(r("mw3O"),r("TIfe")),p=r("ba3a"),m=r.n(p),v=r("oqQY"),g=r.n(v),y={pageNum:1,pageSize:10,orderSn:null,receiverKeyword:null,status:null,orderType:null,sourceType:null,dateRange:[],createTime:null,endTime:null},b={name:"orderList",components:{LogisticsDialog:r("g5t5").a},data:function(){return{listQuery:o()({},y),listLoading:!0,list:null,total:null,operateType:null,multipleSelection:[],closeOrder:{dialogVisible:!1,content:null,orderIds:[]},statusOptions:[{label:"待付款",value:0},{label:"待发货",value:1},{label:"已发货",value:2},{label:"已完成",value:3},{label:"已关闭",value:4}],orderTypeOptions:[{label:"正常订单",value:0},{label:"秒杀订单",value:1}],sourceTypeOptions:[{label:"PC订单",value:0},{label:"APP订单",value:1}],operateOptions:[{label:"批量发货",value:1},{label:"关闭订单",value:2},{label:"删除订单",value:3}],logisticsDialogVisible:!1}},created:function(){this.getList(),this.$route.params.status+""&&(this.listQuery.status=this.$route.params.status),this.$route.query.orderSn&&(this.listQuery.orderSn=this.$route.query.orderSn)},filters:{formatCreateTime:function(e){var t=new Date(e);return Object(c.a)(t,"yyyy-MM-dd hh:mm:ss")},formatPayType:function(e){return 1===e?"支付宝":2===e?"微信":3===e?"余额":"未支付"},formatSourceType:function(e){return 1===e?"APP订单":"PC订单"},formatStatus:function(e){return 1===e?"待发货":2===e?"已发货":3===e?"已完成":4===e?"已关闭":5===e?"无效订单":"待付款"}},methods:{handleResetSearch:function(){this.listQuery=o()({},y)},handleSearchList:function(){this.listQuery.pageNum=1,this.getList()},handleSelectionChange:function(e){this.multipleSelection=e},handleViewOrder:function(e,t){this.$router.push({path:"/oms/orderDetail",query:{id:t.id}})},handleCloseOrder:function(e,t){this.closeOrder.dialogVisible=!0,this.closeOrder.content="",this.closeOrder.orderIds=[t.id]},handleDeliveryOrder:function(e,t){var r=this.covertOrder(t);this.$router.push({path:"/oms/deliverOrderList",query:{list:[r]}})},handleViewLogistics:function(e,t){this.logisticsDialogVisible=!0},handleDeleteOrder:function(e,t){var r=[];r.push(t.id),this.deleteOrder(r)},handleBatchOperate:function(){if(null==this.multipleSelection||this.multipleSelection.length<1)this.$message({message:"请选择要操作的订单",type:"warning",duration:1e3});else if(1===this.operateType){for(var e=[],t=0;t<this.multipleSelection.length;t++)1===this.multipleSelection[t].status&&e.push(this.covertOrder(this.multipleSelection[t]));if(0===e.length)return void this.$message({message:"选中订单中没有可以发货的订单",type:"warning",duration:1e3});this.$router.push({path:"/oms/deliverOrderList",query:{list:e}})}else if(2===this.operateType){this.closeOrder.orderIds=[];for(var r=0;r<this.multipleSelection.length;r++)this.closeOrder.orderIds.push(this.multipleSelection[r].id);this.closeOrder.dialogVisible=!0}else if(3===this.operateType){for(var n=[],i=0;i<this.multipleSelection.length;i++)n.push(this.multipleSelection[i].id);this.deleteOrder(n)}},handleSizeChange:function(e){this.listQuery.pageNum=1,this.listQuery.pageSize=e,this.getList()},handleCurrentChange:function(e){this.listQuery.pageNum=e,this.getList()},handleCloseOrderConfirm:function(){var e=this;this.$refs.closeOrder.validate(function(t){if(t){var r={ids:e.closeOrder.orderIds.join(","),note:e.closeOrder.content};Object(u.a)(r).then(function(t){e.closeOrder.orderIds=[],e.closeOrder={dialogVisible:!1,content:null,orderIds:[]},e.getList(),e.$message({message:"修改成功",type:"success",duration:1e3})})}})},getList:function(){var e=this;this.listLoading=!0,console.log(this.listQuery,"listQuery");var t=this.listQuery,r=t.dateRange,n=t.createTime,s=t.endTime,l=a()(t,["dateRange","createTime","endTime"]);r&&r.length>0&&(n=g()(r[0]).format("YYYY-MM-DD"),s=g()(r[1]).format("YYYY-MM-DD")),Object(u.d)(i()({createTime:n,endTime:s},l)).then(function(t){e.listLoading=!1,e.list=t.data.list,e.total=t.data.total})},deleteOrder:function(e){var t=this;this.$confirm("是否要进行该删除操作?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){var r={ids:e.join(",")};Object(u.b)(r).then(function(e){t.$message({message:"删除成功!",type:"success",duration:1e3}),t.getList()})})},covertOrder:function(e){var t=e.receiverProvince+e.receiverCity+e.receiverRegion+e.receiverDetailAddress;return{orderId:e.id,orderSn:e.orderSn,receiverName:e.receiverName,receiverPhone:e.receiverPhone,receiverPostCode:e.receiverPostCode,address:t,deliveryCompany:null,deliverySn:null}},onExport:function(){var e,t,r,n,s,a;e=this,t={url:"/api-mall-admin/export/orderDetail",fileName:"订单列表.xls",method:"post",params:i()({},this.listQuery)},r="您确定导出订单列表?",s=t.url,"post"==(a={method:t.method?t.method:"get",headers:{Authorization:Object(f.a)()},url:s,responseType:"blob"}).method?a.data=t.params:a.params=t.params,e.$confirm(r||"您确定下载模板","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){h()(m()(a)).then(function(r){var i=new Blob([r.data],{type:"application/vnd.ms-excel;charset=utf-8"});new Response(i).text().then(function(r){if(-1!=r.indexOf("code")){var s=JSON.parse(r);if(403==s.code)return e.$message.error("登录过期,请重新登录!"),void setTimeout(function(){e.$store.dispatch("user/resetToken").then(function(){location.reload()})},1e3);200==s.code?e.$message.success(s.msg):e.$message.error(s.msg),n&&n()}else{var a=URL.createObjectURL(i),l=document.createElement("a"),o=t.fileName||"导出文件.xls";l.href=a,l.setAttribute("download",o),document.body.appendChild(l),l.click(),n&&n()}})}).catch(function(t){console.log(t),e.$message.error("下载失败,请联系管理员")})}).catch(function(){})}}},$={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"app-container"},[r("el-card",{staticClass:"filter-container",attrs:{shadow:"never"}},[r("div",[r("i",{staticClass:"el-icon-search"}),e._v(" "),r("span",[e._v("筛选搜索")]),e._v(" "),r("el-button",{staticStyle:{float:"right"},attrs:{size:"small",type:"danger"},on:{click:function(t){e.onExport()}}},[e._v("\n 导出\n ")]),e._v(" "),r("el-button",{staticStyle:{float:"right","margin-right":"15px"},attrs:{type:"primary",size:"small"},on:{click:function(t){e.handleSearchList()}}},[e._v("\n 查询搜索\n ")]),e._v(" "),r("el-button",{staticStyle:{float:"right","margin-right":"15px"},attrs:{size:"small"},on:{click:function(t){e.handleResetSearch()}}},[e._v("\n 重置\n ")])],1),e._v(" "),r("div",{staticStyle:{"margin-top":"15px"}},[r("el-form",{attrs:{inline:!0,model:e.listQuery,size:"small","label-width":"140px"}},[r("el-form-item",{attrs:{label:"输入搜索:"}},[r("el-input",{staticClass:"input-width",attrs:{placeholder:"订单编号"},model:{value:e.listQuery.orderSn,callback:function(t){e.$set(e.listQuery,"orderSn",t)},expression:"listQuery.orderSn"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"收货人:"}},[r("el-input",{staticClass:"input-width",attrs:{placeholder:"收货人姓名/手机号码"},model:{value:e.listQuery.receiverKeyword,callback:function(t){e.$set(e.listQuery,"receiverKeyword",t)},expression:"listQuery.receiverKeyword"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"提交时间:"}},[r("el-date-picker",{staticClass:"input-width",staticStyle:{width:"260px"},attrs:{"value-format":"yyyy-MM-dd",type:"daterange",placeholder:"请选择时间","range-separator":"~","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.listQuery.dateRange,callback:function(t){e.$set(e.listQuery,"dateRange",t)},expression:"listQuery.dateRange"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"订单状态:"}},[r("el-select",{staticClass:"input-width",attrs:{placeholder:"全部",clearable:""},model:{value:e.listQuery.status,callback:function(t){e.$set(e.listQuery,"status",t)},expression:"listQuery.status"}},e._l(e.statusOptions,function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}))],1),e._v(" "),r("el-form-item",{attrs:{label:"订单分类:"}},[r("el-select",{staticClass:"input-width",attrs:{placeholder:"全部",clearable:""},model:{value:e.listQuery.orderType,callback:function(t){e.$set(e.listQuery,"orderType",t)},expression:"listQuery.orderType"}},e._l(e.orderTypeOptions,function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}))],1),e._v(" "),r("el-form-item",{attrs:{label:"订单来源:"}},[r("el-select",{staticClass:"input-width",attrs:{placeholder:"全部",clearable:""},model:{value:e.listQuery.sourceType,callback:function(t){e.$set(e.listQuery,"sourceType",t)},expression:"listQuery.sourceType"}},e._l(e.sourceTypeOptions,function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}))],1)],1)],1)]),e._v(" "),r("el-card",{staticClass:"operate-container",attrs:{shadow:"never"}},[r("i",{staticClass:"el-icon-tickets"}),e._v(" "),r("span",[e._v("数据列表")])]),e._v(" "),r("div",{staticClass:"table-container"},[r("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],ref:"orderTable",staticStyle:{width:"100%"},attrs:{data:e.list,border:""},on:{"selection-change":e.handleSelectionChange}},[r("el-table-column",{attrs:{type:"selection",width:"60",align:"center"}}),e._v(" "),r("el-table-column",{attrs:{label:"编号",width:"80",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.id))]}}])}),e._v(" "),r("el-table-column",{attrs:{label:"订单编号",width:"180",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.orderSn))]}}])}),e._v(" "),r("el-table-column",{attrs:{label:"提交时间",width:"180",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(e._f("formatCreateTime")(t.row.createTime)))]}}])}),e._v(" "),r("el-table-column",{attrs:{label:"用户类型",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return["STUDENT"==t.row.userType?r("p",[e._v("学生")]):"TEACHER"==t.row.userType?r("p",[e._v("老师")]):r("p",[e._v("--")])]}}])}),e._v(" "),r("el-table-column",{attrs:{label:"用户编号",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.userId))]}}])}),e._v(" "),r("el-table-column",{attrs:{label:"用户名",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.username))]}}])}),e._v(" "),r("el-table-column",{attrs:{label:"手机号",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.phone))]}}])}),e._v(" "),r("el-table-column",{attrs:{label:"订单金额",width:"120",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("¥"+e._s(t.row.totalAmount))]}}])}),e._v(" "),r("el-table-column",{attrs:{label:"支付方式",width:"120",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(e._f("formatPayType")(t.row.payType)))]}}])}),e._v(" "),r("el-table-column",{attrs:{label:"订单来源",width:"120",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(e._f("formatSourceType")(t.row.sourceType)))]}}])}),e._v(" "),r("el-table-column",{attrs:{label:"订单状态",width:"120",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(e._f("formatStatus")(t.row.status)))]}}])}),e._v(" "),r("el-table-column",{attrs:{label:"操作",width:"200",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-button",{attrs:{size:"mini"},on:{click:function(r){e.handleViewOrder(t.$index,t.row)}}},[e._v("查看订单")]),e._v(" "),r("el-button",{directives:[{name:"show",rawName:"v-show",value:1===t.row.status,expression:"scope.row.status === 1"}],attrs:{size:"mini"},on:{click:function(r){e.handleDeliveryOrder(t.$index,t.row)}}},[e._v("订单发货")])]}}])})],1)],1),e._v(" "),r("div",{staticClass:"pagination-container"},[r("el-pagination",{attrs:{background:"",layout:"total, sizes,prev, pager, next,jumper","current-page":e.listQuery.pageNum,"page-size":e.listQuery.pageSize,"page-sizes":[5,10,15],total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange,"update:currentPage":function(t){e.$set(e.listQuery,"pageNum",t)}}})],1),e._v(" "),r("el-dialog",{attrs:{title:"关闭订单",visible:e.closeOrder.dialogVisible,width:"30%"},on:{"update:visible":function(t){e.$set(e.closeOrder,"dialogVisible",t)}}},[r("el-form",{ref:"closeOrder",attrs:{model:e.closeOrder,"label-width":"150px"}},[r("el-form-item",{attrs:{label:"操作备注:",prop:"content",rules:[{required:!0,message:"请填写操作备注",trigger:"blur"}]}},[r("el-input",{attrs:{type:"textarea",rows:"3"},model:{value:e.closeOrder.content,callback:function(t){e.$set(e.closeOrder,"content",t)},expression:"closeOrder.content"}})],1)],1),e._v(" "),r("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:function(t){e.closeOrder.dialogVisible=!1}}},[e._v("取 消")]),e._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:e.handleCloseOrderConfirm}},[e._v("确 定")])],1)],1),e._v(" "),r("logistics-dialog",{model:{value:e.logisticsDialogVisible,callback:function(t){e.logisticsDialogVisible=t},expression:"logisticsDialogVisible"}})],1)},staticRenderFns:[]};var _=r("VU/8")(b,$,!1,function(e){r("b4uJ")},"data-v-1d1de9fc",null);t.default=_.exports}});
- //# sourceMappingURL=2.13d4d04b2f62531203fc.js.map
|