Merge pull request '注释' (#3) from develop into main

pull/6/head
py4fbma29 7 months ago
commit 0908946eba

@ -16,6 +16,8 @@ import java.util.stream.Collectors;
* i11111 * i11111
* dsdhsjhfjs * dsdhsjhfjs
* fdjkf * fdjkf
* 1111111
* hjhfsj
*/ */
public class AdminUserDetails implements UserDetails { public class AdminUserDetails implements UserDetails {
//后台用户 //后台用户

@ -9,7 +9,7 @@
<name>mall-security</name> <name>mall-security</name>
<description>mall-security project for mall</description> <description>mall-security project for mall</description>
//zzzzzzz
<parent> <parent>
<groupId>com.macro.mall</groupId> <groupId>com.macro.mall</groupId>
<artifactId>mall</artifactId> <artifactId>mall</artifactId>

@ -14,7 +14,7 @@ import org.springframework.stereotype.Component;
import java.lang.reflect.Method; import java.lang.reflect.Method;
/** /**123456
* RedisRedis * RedisRedis
* Created by macro on 2020/3/17. * Created by macro on 2020/3/17.
*/ */

@ -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,45 +67,58 @@
</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
size="mini" size="mini"
@click="handleViewDetail(scope.$index, scope.row)">查看详情</el-button> @click="handleViewDetail(scope.$index, scope.row)">查看详情</el-button>
</template> </template>
</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({
@ -224,7 +266,7 @@
return; return;
} }
if(this.operateType===1){ if(this.operateType===1){
// //
this.$confirm('是否要进行删除操作?', '提示', { this.$confirm('是否要进行删除操作?', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',

Loading…
Cancel
Save