webpackJsonp([32],{eBCa:function(e,t){},khiG:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n("woOf"),s=n.n(a),i=n("xT6B"),l=n("vLgD");var o={pageNum:1,pageSize:5},r={name:null,sort:0,status:1,createTime:null},u={name:"returnReasonList",data:function(){return{list:null,total:null,multipleSelection:[],listLoading:!0,listQuery:s()({},o),operateType:null,operateOptions:[{label:"删除",value:1}],dialogVisible:!1,returnReason:s()({},r),operateReasonId:null}},created:function(){this.getList()},filters:{formatCreateTime:function(e){var t=new Date(e);return Object(i.a)(t,"yyyy-MM-dd hh:mm:ss")}},methods:{handleAdd:function(){this.dialogVisible=!0,this.operateReasonId=null,this.returnReason=s()({},r)},handleConfirm:function(){var e,t=this;null==this.operateReasonId?(e=this.returnReason,Object(l.a)({url:"/returnReason/create",method:"post",data:e})).then(function(e){t.dialogVisible=!1,t.operateReasonId=null,t.$message({message:"添加成功!",type:"success",duration:1e3}),t.getList()}):function(e,t){return Object(l.a)({url:"/returnReason/update/"+e,method:"post",data:t})}(this.operateReasonId,this.returnReason).then(function(e){t.dialogVisible=!1,t.operateReasonId=null,t.$message({message:"修改成功!",type:"success",duration:1e3}),t.getList()})},handleUpdate:function(e,t){var n,a=this;this.dialogVisible=!0,this.operateReasonId=t.id,(n=t.id,Object(l.a)({url:"/returnReason/"+n,method:"get"})).then(function(e){a.returnReason=e.data})},handleDelete:function(e,t){var n=[];n.push(t.id),this.deleteReason(n)},handleSelectionChange:function(e){this.multipleSelection=e},handleStatusChange:function(e,t){var n=this,a=[];a.push(t.id);var s,i={status:t.status,ids:a.join(",")};(s=i,Object(l.a)({url:"/returnReason/update/status",method:"post",params:s})).then(function(e){n.$message({message:"状态修改成功",type:"success"})})},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