19.3aed838575584c508295.js 7.7 KB

12
  1. webpackJsonp([19],{ggMu:function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=l("woOf"),n=l.n(a),i=l("xT6B"),s=l("qtDR"),r={pageNum:1,pageSize:10,id:null,receiverKeyword:null,status:null,orderSn:null,createTime:null,handleMan:null,handleTime:null},u=[{label:"待处理",value:0},{label:"退货中",value:1},{label:"已完成",value:2},{label:"已拒绝",value:3}],o={name:"returnApplyList",data:function(){return{listQuery:n()({},r),statusOptions:n()({},u),list:null,total:null,listLoading:!1,multipleSelection:[],operateType:1,operateOptions:[{label:"批量删除",value:1}]}},created:function(){this.$route.params.status+""&&(this.listQuery.status=this.$route.params.status),this.getList()},filters:{formatTime:function(t){if(null==t||""===t)return"--";var e=new Date(t);return Object(i.a)(e,"yyyy-MM-dd hh:mm:ss")},formatStatus:function(t){for(var e=0;e<u.length;e++)if(t===u[e].value)return u[e].label},formatReturnAmount:function(t){return t.productRealPrice*t.productCount}},methods:{handleSelectionChange:function(t){this.multipleSelection=t},handleResetSearch:function(){this.listQuery=n()({},r)},handleSearchList:function(){this.listQuery.pageNum=1,this.getList()},handleViewDetail:function(t,e){this.$router.push({path:"/oms/returnApplyDetail",query:{id:e.id}})},handleBatchOperate:function(){var t=this;null==this.multipleSelection||this.multipleSelection.length<1?this.$message({message:"请选择要操作的申请",type:"warning",duration:1e3}):1===this.operateType&&this.$confirm("是否要进行删除操作?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){for(var e=[],l=0;l<t.multipleSelection.length;l++)e.push(t.multipleSelection[l].id);var a={ids:e.join(",")};Object(s.a)(a).then(function(e){t.getList(),t.$message({type:"success",message:"删除成功!"})})})},handleSizeChange:function(t){this.listQuery.pageNum=1,this.listQuery.pageSize=t,this.getList()},handleCurrentChange:function(t){this.listQuery.pageNum=t,this.getList()},getList:function(){var t=this;this.listLoading=!0,Object(s.b)(this.listQuery).then(function(e){t.listLoading=!1,t.list=e.data.list,t.total=e.data.total})}}},c={render:function(){var t=this,e=t.$createElement,l=t._self._c||e;return l("div",{staticClass:"app-container"},[l("el-card",{staticClass:"filter-container",attrs:{shadow:"never"}},[l("div",[l("i",{staticClass:"el-icon-search"}),t._v(" "),l("span",[t._v("筛选搜索")]),t._v(" "),l("el-button",{staticStyle:{float:"right"},attrs:{type:"primary",size:"small"},on:{click:function(e){t.handleSearchList()}}},[t._v("\n 查询搜索\n ")]),t._v(" "),l("el-button",{staticStyle:{float:"right","margin-right":"15px"},attrs:{size:"small"},on:{click:function(e){t.handleResetSearch()}}},[t._v("\n 重置\n ")])],1),t._v(" "),l("div",{staticStyle:{"margin-top":"15px"}},[l("el-form",{attrs:{inline:!0,model:t.listQuery,size:"small","label-width":"140px"}},[l("el-form-item",{attrs:{label:"输入搜索:"}},[l("el-input",{staticClass:"input-width",attrs:{placeholder:"服务单号"},model:{value:t.listQuery.id,callback:function(e){t.$set(t.listQuery,"id",e)},expression:"listQuery.id"}})],1),t._v(" "),l("el-form-item",{attrs:{label:"订单编号:"}},[l("el-input",{staticClass:"input-width",attrs:{placeholder:"订单编号"},model:{value:t.listQuery.orderSn,callback:function(e){t.$set(t.listQuery,"orderSn",e)},expression:"listQuery.orderSn"}})],1),t._v(" "),l("el-form-item",{attrs:{label:"处理状态:"}},[l("el-select",{staticClass:"input-width",attrs:{placeholder:"全部",clearable:""},model:{value:t.listQuery.status,callback:function(e){t.$set(t.listQuery,"status",e)},expression:"listQuery.status"}},t._l(t.statusOptions,function(t){return l("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})}))],1),t._v(" "),l("el-form-item",{attrs:{label:"申请时间:"}},[l("el-date-picker",{staticClass:"input-width",attrs:{"value-format":"yyyy-MM-dd",type:"date",placeholder:"请选择时间"},model:{value:t.listQuery.createTime,callback:function(e){t.$set(t.listQuery,"createTime",e)},expression:"listQuery.createTime"}})],1),t._v(" "),l("el-form-item",{attrs:{label:"操作人员:"}},[l("el-input",{staticClass:"input-width",attrs:{placeholder:"全部"},model:{value:t.listQuery.handleMan,callback:function(e){t.$set(t.listQuery,"handleMan",e)},expression:"listQuery.handleMan"}})],1),t._v(" "),l("el-form-item",{attrs:{label:"处理时间:"}},[l("el-date-picker",{staticClass:"input-width",attrs:{"value-format":"yyyy-MM-dd",type:"date",placeholder:"请选择时间"},model:{value:t.listQuery.handleTime,callback:function(e){t.$set(t.listQuery,"handleTime",e)},expression:"listQuery.handleTime"}})],1)],1)],1)]),t._v(" "),l("el-card",{staticClass:"operate-container",attrs:{shadow:"never"}},[l("i",{staticClass:"el-icon-tickets"}),t._v(" "),l("span",[t._v("数据列表")])]),t._v(" "),l("div",{staticClass:"table-container"},[l("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],ref:"returnApplyTable",staticStyle:{width:"100%"},attrs:{data:t.list,border:""},on:{"selection-change":t.handleSelectionChange}},[l("el-table-column",{attrs:{type:"selection",width:"60",align:"center"}}),t._v(" "),l("el-table-column",{attrs:{label:"服务单号",width:"180",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.id))]}}])}),t._v(" "),l("el-table-column",{attrs:{label:"订单编号",width:"180",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.orderSn))]}}])}),t._v(" "),l("el-table-column",{attrs:{label:"申请时间",width:"180",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(t._f("formatTime")(e.row.createTime)))]}}])}),t._v(" "),l("el-table-column",{attrs:{label:"用户账号",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.memberUsername))]}}])}),t._v(" "),l("el-table-column",{attrs:{label:"退款金额",width:"180",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("¥"+t._s(t._f("formatReturnAmount")(e.row)))]}}])}),t._v(" "),l("el-table-column",{attrs:{label:"申请状态",width:"180",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(t._f("formatStatus")(e.row.status)))]}}])}),t._v(" "),l("el-table-column",{attrs:{label:"处理时间",width:"180",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(t._f("formatTime")(e.row.handleTime)))]}}])}),t._v(" "),l("el-table-column",{attrs:{label:"操作",width:"180",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[l("el-button",{attrs:{size:"mini"},on:{click:function(l){t.handleViewDetail(e.$index,e.row)}}},[t._v("查看详情")])]}}])})],1)],1),t._v(" "),l("div",{staticClass:"pagination-container"},[l("el-pagination",{attrs:{background:"",layout:"total, sizes,prev, pager, next,jumper","current-page":t.listQuery.pageNum,"page-size":t.listQuery.pageSize,"page-sizes":[5,10,15],total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange,"update:currentPage":function(e){t.$set(t.listQuery,"pageNum",e)}}})],1)],1)},staticRenderFns:[]};var d=l("VU/8")(o,c,!1,function(t){l("tdh5")},"data-v-bf84b294",null);e.default=d.exports},qtDR:function(t,e,l){"use strict";e.b=function(t){return Object(a.a)({url:"/returnApply/list",method:"get",params:t})},e.a=function(t){return Object(a.a)({url:"/returnApply/delete",method:"post",params:t,requestType:"form"})},e.d=function(t,e){return Object(a.a)({url:"/returnApply/update/status/"+t,method:"post",data:e})},e.c=function(t){return Object(a.a)({url:"/returnApply/"+t,method:"get"})};var a=l("vLgD")},tdh5:function(t,e){}});
  2. //# sourceMappingURL=19.3aed838575584c508295.js.map