|
|
@ -1,9 +1,13 @@
|
|
|
|
<template>
|
|
|
|
<template>
|
|
|
|
|
|
|
|
<!-- 应用容器 -->
|
|
|
|
<div class="app-container">
|
|
|
|
<div class="app-container">
|
|
|
|
|
|
|
|
<!-- 筛选搜索区域 -->
|
|
|
|
<el-card class="filter-container" shadow="never">
|
|
|
|
<el-card class="filter-container" shadow="never">
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
|
|
|
|
<!-- 搜索图标和文本 -->
|
|
|
|
<i class="el-icon-search"></i>
|
|
|
|
<i class="el-icon-search"></i>
|
|
|
|
<span>筛选搜索</span>
|
|
|
|
<span>筛选搜索</span>
|
|
|
|
|
|
|
|
<!-- 查询搜索按钮 -->
|
|
|
|
<el-button
|
|
|
|
<el-button
|
|
|
|
style="float:right"
|
|
|
|
style="float:right"
|
|
|
|
type="primary"
|
|
|
|
type="primary"
|
|
|
@ -11,6 +15,7 @@
|
|
|
|
size="small">
|
|
|
|
size="small">
|
|
|
|
查询搜索
|
|
|
|
查询搜索
|
|
|
|
</el-button>
|
|
|
|
</el-button>
|
|
|
|
|
|
|
|
<!-- 重置按钮 -->
|
|
|
|
<el-button
|
|
|
|
<el-button
|
|
|
|
style="float:right;margin-right: 15px"
|
|
|
|
style="float:right;margin-right: 15px"
|
|
|
|
@click="handleResetSearch()"
|
|
|
|
@click="handleResetSearch()"
|
|
|
@ -18,11 +23,14 @@
|
|
|
|
重置
|
|
|
|
重置
|
|
|
|
</el-button>
|
|
|
|
</el-button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- 表单区域,用于输入筛选条件 -->
|
|
|
|
<div style="margin-top: 15px">
|
|
|
|
<div style="margin-top: 15px">
|
|
|
|
<el-form :inline="true" :model="listQuery" size="small" label-width="140px">
|
|
|
|
<el-form :inline="true" :model="listQuery" size="small" label-width="140px">
|
|
|
|
|
|
|
|
<!-- 输入搜索项 -->
|
|
|
|
<el-form-item label="输入搜索:">
|
|
|
|
<el-form-item label="输入搜索:">
|
|
|
|
<el-input v-model="listQuery.id" class="input-width" placeholder="服务单号"></el-input>
|
|
|
|
<el-input v-model="listQuery.id" class="input-width" placeholder="服务单号"></el-input>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
<!-- 处理状态下拉选择 -->
|
|
|
|
<el-form-item label="处理状态:">
|
|
|
|
<el-form-item label="处理状态:">
|
|
|
|
<el-select v-model="listQuery.status" placeholder="全部" clearable class="input-width">
|
|
|
|
<el-select v-model="listQuery.status" placeholder="全部" clearable class="input-width">
|
|
|
|
<el-option v-for="item in statusOptions"
|
|
|
|
<el-option v-for="item in statusOptions"
|
|
|
@ -32,6 +40,7 @@
|
|
|
|
</el-option>
|
|
|
|
</el-option>
|
|
|
|
</el-select>
|
|
|
|
</el-select>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
<!-- 申请时间选择 -->
|
|
|
|
<el-form-item label="申请时间:">
|
|
|
|
<el-form-item label="申请时间:">
|
|
|
|
<el-date-picker
|
|
|
|
<el-date-picker
|
|
|
|
class="input-width"
|
|
|
|
class="input-width"
|
|
|
@ -41,9 +50,11 @@
|
|
|
|
placeholder="请选择时间">
|
|
|
|
placeholder="请选择时间">
|
|
|
|
</el-date-picker>
|
|
|
|
</el-date-picker>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
<!-- 操作人员输入 -->
|
|
|
|
<el-form-item label="操作人员:">
|
|
|
|
<el-form-item label="操作人员:">
|
|
|
|
<el-input v-model="listQuery.handleMan" class="input-width" placeholder="全部"></el-input>
|
|
|
|
<el-input v-model="listQuery.handleMan" class="input-width" placeholder="全部"></el-input>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
<!-- 处理时间选择 -->
|
|
|
|
<el-form-item label="处理时间:">
|
|
|
|
<el-form-item label="处理时间:">
|
|
|
|
<el-date-picker
|
|
|
|
<el-date-picker
|
|
|
|
class="input-width"
|
|
|
|
class="input-width"
|
|
|
@ -56,35 +67,46 @@
|
|
|
|
</el-form>
|
|
|
|
</el-form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</el-card>
|
|
|
|
</el-card>
|
|
|
|
|
|
|
|
<!-- 数据列表操作区域 -->
|
|
|
|
<el-card class="operate-container" shadow="never">
|
|
|
|
<el-card class="operate-container" shadow="never">
|
|
|
|
<i class="el-icon-tickets"></i>
|
|
|
|
<i class="el-icon-tickets"></i>
|
|
|
|
<span>数据列表</span>
|
|
|
|
<span>数据列表</span>
|
|
|
|
</el-card>
|
|
|
|
</el-card>
|
|
|
|
|
|
|
|
<!-- 表格容器 -->
|
|
|
|
<div class="table-container">
|
|
|
|
<div class="table-container">
|
|
|
|
|
|
|
|
<!-- 表格,展示数据列表 -->
|
|
|
|
<el-table ref="returnApplyTable"
|
|
|
|
<el-table ref="returnApplyTable"
|
|
|
|
:data="list"
|
|
|
|
:data="list"
|
|
|
|
style="width: 100%;"
|
|
|
|
style="width: 100%;"
|
|
|
|
@selection-change="handleSelectionChange"
|
|
|
|
@selection-change="handleSelectionChange"
|
|
|
|
v-loading="listLoading" border>
|
|
|
|
v-loading="listLoading" border>
|
|
|
|
|
|
|
|
<!-- 选择列 -->
|
|
|
|
<el-table-column type="selection" width="60" align="center"></el-table-column>
|
|
|
|
<el-table-column type="selection" width="60" align="center"></el-table-column>
|
|
|
|
|
|
|
|
<!-- 服务单号列 -->
|
|
|
|
<el-table-column label="服务单号" width="180" align="center">
|
|
|
|
<el-table-column label="服务单号" width="180" align="center">
|
|
|
|
<template slot-scope="scope">{{scope.row.id}}</template>
|
|
|
|
<template slot-scope="scope">{{scope.row.id}}</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<!-- 申请时间列 -->
|
|
|
|
<el-table-column label="申请时间" width="180" align="center">
|
|
|
|
<el-table-column label="申请时间" width="180" align="center">
|
|
|
|
<template slot-scope="scope">{{scope.row.createTime | formatTime}}</template>
|
|
|
|
<template slot-scope="scope">{{scope.row.createTime | formatTime}}</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<!-- 用户账号列 -->
|
|
|
|
<el-table-column label="用户账号" align="center">
|
|
|
|
<el-table-column label="用户账号" align="center">
|
|
|
|
<template slot-scope="scope">{{scope.row.memberUsername}}</template>
|
|
|
|
<template slot-scope="scope">{{scope.row.memberUsername}}</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<!-- 退款金额列 -->
|
|
|
|
<el-table-column label="退款金额" width="180" align="center">
|
|
|
|
<el-table-column label="退款金额" width="180" align="center">
|
|
|
|
<template slot-scope="scope">¥{{scope.row | formatReturnAmount}}</template>
|
|
|
|
<template slot-scope="scope">¥{{scope.row | formatReturnAmount}}</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<!-- 申请状态列 -->
|
|
|
|
<el-table-column label="申请状态" width="180" align="center">
|
|
|
|
<el-table-column label="申请状态" width="180" align="center">
|
|
|
|
<template slot-scope="scope">{{scope.row.status | formatStatus}}</template>
|
|
|
|
<template slot-scope="scope">{{scope.row.status | formatStatus}}</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<!-- 处理时间列 -->
|
|
|
|
<el-table-column label="处理时间" width="180" align="center">
|
|
|
|
<el-table-column label="处理时间" width="180" align="center">
|
|
|
|
<template slot-scope="scope">{{scope.row.handleTime | formatTime}}</template>
|
|
|
|
<template slot-scope="scope">{{scope.row.handleTime | formatTime}}</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<!-- 操作列 -->
|
|
|
|
<el-table-column label="操作" width="180" align="center">
|
|
|
|
<el-table-column label="操作" width="180" align="center">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<el-button
|
|
|
|
<el-button
|
|
|
@ -94,7 +116,9 @@
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table>
|
|
|
|
</el-table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- 批量操作容器 -->
|
|
|
|
<div class="batch-operate-container">
|
|
|
|
<div class="batch-operate-container">
|
|
|
|
|
|
|
|
<!-- 批量操作下拉选择 -->
|
|
|
|
<el-select
|
|
|
|
<el-select
|
|
|
|
size="small"
|
|
|
|
size="small"
|
|
|
|
v-model="operateType" placeholder="批量操作">
|
|
|
|
v-model="operateType" placeholder="批量操作">
|
|
|
@ -105,6 +129,7 @@
|
|
|
|
:value="item.value">
|
|
|
|
:value="item.value">
|
|
|
|
</el-option>
|
|
|
|
</el-option>
|
|
|
|
</el-select>
|
|
|
|
</el-select>
|
|
|
|
|
|
|
|
<!-- 批量操作按钮 -->
|
|
|
|
<el-button
|
|
|
|
<el-button
|
|
|
|
style="margin-left: 20px"
|
|
|
|
style="margin-left: 20px"
|
|
|
|
class="search-button"
|
|
|
|
class="search-button"
|
|
|
@ -114,6 +139,7 @@
|
|
|
|
确定
|
|
|
|
确定
|
|
|
|
</el-button>
|
|
|
|
</el-button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- 分页容器 -->
|
|
|
|
<div class="pagination-container">
|
|
|
|
<div class="pagination-container">
|
|
|
|
<el-pagination
|
|
|
|
<el-pagination
|
|
|
|
background
|
|
|
|
background
|
|
|
@ -128,9 +154,14 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
|
|
|
|
|
// 导入日期格式化工具
|
|
|
|
import {formatDate} from '@/utils/date';
|
|
|
|
import {formatDate} from '@/utils/date';
|
|
|
|
|
|
|
|
// 导入API接口
|
|
|
|
import {fetchList,deleteApply} from '@/api/returnApply';
|
|
|
|
import {fetchList,deleteApply} from '@/api/returnApply';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 默认的列表查询条件
|
|
|
|
const defaultListQuery = {
|
|
|
|
const defaultListQuery = {
|
|
|
|
pageNum: 1,
|
|
|
|
pageNum: 1,
|
|
|
|
pageSize: 10,
|
|
|
|
pageSize: 10,
|
|
|
@ -141,6 +172,7 @@
|
|
|
|
handleMan: null,
|
|
|
|
handleMan: null,
|
|
|
|
handleTime: null
|
|
|
|
handleTime: null
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
// 处理状态选项
|
|
|
|
const defaultStatusOptions=[
|
|
|
|
const defaultStatusOptions=[
|
|
|
|
{
|
|
|
|
{
|
|
|
|
label: '待处理',
|
|
|
|
label: '待处理',
|
|
|
@ -159,6 +191,7 @@
|
|
|
|
value: 3
|
|
|
|
value: 3
|
|
|
|
}
|
|
|
|
}
|
|
|
|
];
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
name:'returnApplyList',
|
|
|
|
name:'returnApplyList',
|
|
|
|
data() {
|
|
|
|
data() {
|
|
|
@ -179,9 +212,11 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
created(){
|
|
|
|
created(){
|
|
|
|
|
|
|
|
// 组件创建时获取列表
|
|
|
|
this.getList();
|
|
|
|
this.getList();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
filters:{
|
|
|
|
filters:{
|
|
|
|
|
|
|
|
// 时间格式化过滤器
|
|
|
|
formatTime(time) {
|
|
|
|
formatTime(time) {
|
|
|
|
if(time==null||time===''){
|
|
|
|
if(time==null||time===''){
|
|
|
|
return 'N/A';
|
|
|
|
return 'N/A';
|
|
|
@ -189,6 +224,7 @@
|
|
|
|
let date = new Date(time);
|
|
|
|
let date = new Date(time);
|
|
|
|
return formatDate(date, 'yyyy-MM-dd hh:mm:ss')
|
|
|
|
return formatDate(date, 'yyyy-MM-dd hh:mm:ss')
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
// 状态格式化过滤器
|
|
|
|
formatStatus(status){
|
|
|
|
formatStatus(status){
|
|
|
|
for(let i=0;i<defaultStatusOptions.length;i++){
|
|
|
|
for(let i=0;i<defaultStatusOptions.length;i++){
|
|
|
|
if(status===defaultStatusOptions[i].value){
|
|
|
|
if(status===defaultStatusOptions[i].value){
|
|
|
@ -196,24 +232,30 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
// 退款金额格式化过滤器
|
|
|
|
formatReturnAmount(row){
|
|
|
|
formatReturnAmount(row){
|
|
|
|
return row.productRealPrice*row.productCount;
|
|
|
|
return row.productRealPrice*row.productCount;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
methods:{
|
|
|
|
methods:{
|
|
|
|
|
|
|
|
// 处理表格选择变化
|
|
|
|
handleSelectionChange(val){
|
|
|
|
handleSelectionChange(val){
|
|
|
|
this.multipleSelection = val;
|
|
|
|
this.multipleSelection = val;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
// 重置搜索
|
|
|
|
handleResetSearch() {
|
|
|
|
handleResetSearch() {
|
|
|
|
this.listQuery = Object.assign({}, defaultListQuery);
|
|
|
|
this.listQuery = Object.assign({}, defaultListQuery);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
// 搜索列表
|
|
|
|
handleSearchList() {
|
|
|
|
handleSearchList() {
|
|
|
|
this.listQuery.pageNum = 1;
|
|
|
|
this.listQuery.pageNum = 1;
|
|
|
|
this.getList();
|
|
|
|
this.getList();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
// 查看详情
|
|
|
|
handleViewDetail(index,row){
|
|
|
|
handleViewDetail(index,row){
|
|
|
|
this.$router.push({path:'/oms/returnApplyDetail',query:{id:row.id}})
|
|
|
|
this.$router.push({path:'/oms/returnApplyDetail',query:{id:row.id}})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
// 批量操作
|
|
|
|
handleBatchOperate(){
|
|
|
|
handleBatchOperate(){
|
|
|
|
if(this.multipleSelection==null||this.multipleSelection.length<1){
|
|
|
|
if(this.multipleSelection==null||this.multipleSelection.length<1){
|
|
|
|
this.$message({
|
|
|
|
this.$message({
|
|
|
|