|
@@ -5,7 +5,7 @@
|
|
|
<div class="filter-control">
|
|
|
<span>退款编号:</span>
|
|
|
<el-input
|
|
|
- v-model="listQuery.productName"
|
|
|
+ v-model="listQuery.returnedNo"
|
|
|
placeholder="退款编号"
|
|
|
clearable
|
|
|
style="width: 180px"
|
|
@@ -16,7 +16,7 @@
|
|
|
<div class="filter-control">
|
|
|
<span>订单ID:</span>
|
|
|
<el-input
|
|
|
- v-model="listQuery.shopName"
|
|
|
+ v-model="listQuery.shopOrderId"
|
|
|
placeholder="订单ID"
|
|
|
clearable
|
|
|
style="width: 120px"
|
|
@@ -27,7 +27,7 @@
|
|
|
<div class="filter-control">
|
|
|
<span>订单编号:</span>
|
|
|
<el-input
|
|
|
- v-model="listQuery.shopName"
|
|
|
+ v-model="listQuery.shopOrderNo"
|
|
|
placeholder="订单编号"
|
|
|
clearable
|
|
|
style="width: 180px"
|
|
@@ -38,7 +38,7 @@
|
|
|
<div class="filter-control">
|
|
|
<span>买家:</span>
|
|
|
<el-input
|
|
|
- v-model="listQuery.shopName"
|
|
|
+ v-model="listQuery.name"
|
|
|
placeholder="买家"
|
|
|
clearable
|
|
|
style="width: 120px"
|
|
@@ -75,70 +75,60 @@
|
|
|
</div>
|
|
|
<!-- 列表 -->
|
|
|
<el-table v-loading="isLoading" :data="list" border style="width: 100%" height="660">
|
|
|
- <el-table-column prop="id" label="ID" align="center" width="50" />
|
|
|
- <el-table-column prop="productName" label="商品名称" align="center" />
|
|
|
- <el-table-column prop="shopName" label="供应商名称" align="center">
|
|
|
+ <el-table-column prop="returnedNo" label="退款编号" align="center" />
|
|
|
+ <el-table-column label="退款审核状态" align="center" prop="status" width="120">
|
|
|
<template slot-scope="{ row }">
|
|
|
- {{ row.shopName ? row.shopName : '---' }}
|
|
|
+ <el-tag v-if="row.status * 1 === 1" type="warning" size="small">待审核</el-tag>
|
|
|
+ <el-tag v-if="row.status * 1 === 2" type="success" size="small">审核通过</el-tag>
|
|
|
+ <el-tag v-if="row.status * 1 === 3" type="danger" size="small">审核不通过</el-tag>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="price" label="拼团价格" align="center" width="100">
|
|
|
+ <el-table-column prop="name" label="买家" align="center" width="120" />
|
|
|
+ <el-table-column prop="shopOrderId" label="子订单编号(ID)" align="center" width="120">
|
|
|
<template slot-scope="{ row }">
|
|
|
- {{ row.price | amountfilters }}
|
|
|
+ {{ row.shopOrderId ? row.shopOrderId : '---' }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="memberNum" label="拼团人数" align="center" width="50" />
|
|
|
- <el-table-column prop="name" label="已拼人数" align="center" width="50">
|
|
|
+ <el-table-column prop="price" label="退款金额" align="center" width="120">
|
|
|
<template slot-scope="{ row }">
|
|
|
- <span v-if="row.status === 2">{{ row.memberNum }}</span>
|
|
|
- <span v-else>{{ row.orderIdList.length }}</span>
|
|
|
+ {{ row.refundFee | amountfilters }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="orderIdList" label="关联订单" align="center" width="100">
|
|
|
+ <el-table-column prop="price" label="退款方式" align="center">
|
|
|
<template slot-scope="{ row }">
|
|
|
- <template v-if="row.orderIdList">
|
|
|
- <p v-for="item in row.orderIdList" :key="item">
|
|
|
- {{ item ? item : '---' }}
|
|
|
- </p>
|
|
|
+ <template v-if="row.returnedWay === '4'">
|
|
|
+ <span>未支付无退款</span>
|
|
|
+ </template>
|
|
|
+ <template v-if="row.returnedWay === '1'">
|
|
|
+ <template v-if="row.refundBalanceFee && row.refundBalanceFee > 0">
|
|
|
+ <span>余额账户:{{ row.refundBalanceFee | amountfilters }}</span>
|
|
|
+ </template>
|
|
|
+ <template v-if="row.refundOnlineFee && row.refundOnlineFee > 0">
|
|
|
+ <span>线上退回:{{ row.refundOnlineFee | amountfilters }}</span>
|
|
|
+ </template>
|
|
|
+ <template v-if="row.refundOfflineFee && row.refundOfflineFee > 0">
|
|
|
+ <span>线下转账:{{ row.refundOfflineFee | amountfilters }}</span>
|
|
|
+ </template>
|
|
|
</template>
|
|
|
- <p v-else>---</p>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="status" label="小程序状态" align="center" width="100">
|
|
|
- <template slot-scope="{ row }">
|
|
|
- <el-tag v-if="row.status === 1" type="warning" size="small">拼团中</el-tag>
|
|
|
- <el-tag v-if="row.status === 2" type="success" size="small">已拼成</el-tag>
|
|
|
- </template>
|
|
|
+ <el-table-column prop="" label="申请人" align="center" width="100">
|
|
|
+ <span>---</span>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="startTime" label="开始时间" align="center" width="100">
|
|
|
+ <el-table-column prop="returnTime" label="申请时间" align="center" width="100">
|
|
|
<template slot-scope="{ row }">
|
|
|
- {{ row.startTime ? row.startTime : '---' }}
|
|
|
+ {{ row.returnTime ? row.returnTime : '---' }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="endTime" label="结束时间" align="center" width="100">
|
|
|
- <template slot-scope="{ row }">
|
|
|
- {{ row.endTime ? row.endTime : '---' }}
|
|
|
- </template>
|
|
|
+ <el-table-column prop="" label="审核人" align="center" width="100">
|
|
|
+ <span>---</span>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="completeTime" label="成团时间" align="center" width="100">
|
|
|
- <template slot-scope="{ row }">
|
|
|
- {{ row.completeTime ? row.completeTime : '---' }}
|
|
|
- </template>
|
|
|
+ <el-table-column prop="" label="审核时间" align="center" width="100">
|
|
|
+ <span>---</span>
|
|
|
</el-table-column>
|
|
|
<el-table-column fixed="right" label="操作" align="center">
|
|
|
<template slot-scope="{ row }">
|
|
|
- <el-button
|
|
|
- v-if="row.status === 1"
|
|
|
- type="primary"
|
|
|
- size="mini"
|
|
|
- style="margin: 2px"
|
|
|
- @click="handleRecordDetail(3, row)"
|
|
|
- >
|
|
|
- 一键成团
|
|
|
- </el-button>
|
|
|
- <el-button type="danger" size="mini" style="margin: 2px" @click="handleRecordDetail(3, row)">
|
|
|
- 拼团成员
|
|
|
- </el-button>
|
|
|
+ <el-button type="primary" size="mini" @click="handleRecordDetail(3, row)"> 查看详情 </el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
@@ -149,13 +139,13 @@
|
|
|
:page-size="20"
|
|
|
:page.sync="listQuery.pageNum"
|
|
|
:limit.sync="listQuery.pageSize"
|
|
|
- @pagination="getHeHeCollageRecord"
|
|
|
+ @pagination="returnedPurchaseList"
|
|
|
/>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { getHeHeCollageRecord } from '@/api/stricts/active/active'
|
|
|
+import { returnedPurchaseList } from '@/api/stricts/order/order'
|
|
|
import pickerOptions from '@/utils/time-picker.js'
|
|
|
export default {
|
|
|
name: 'GroupsList',
|
|
@@ -166,10 +156,13 @@ export default {
|
|
|
pickerOptions,
|
|
|
isLoading: true,
|
|
|
listQuery: {
|
|
|
- id: '',
|
|
|
- productName: '',
|
|
|
+ returnedNo: '',
|
|
|
+ shopOrderId: '',
|
|
|
+ shopOrderNo: '',
|
|
|
+ name: '',
|
|
|
+ beginTime: '',
|
|
|
+ endTime: '',
|
|
|
status: '',
|
|
|
- shopName: '',
|
|
|
pageNum: 1,
|
|
|
pageSize: 20
|
|
|
},
|
|
@@ -187,13 +180,13 @@ export default {
|
|
|
getList() {
|
|
|
this.list = []
|
|
|
this.listQuery.pageNum = 1
|
|
|
- this.getHeHeCollageRecord()
|
|
|
+ this.returnedPurchaseList()
|
|
|
},
|
|
|
// 获取首页导航列表
|
|
|
- async getHeHeCollageRecord() {
|
|
|
+ async returnedPurchaseList() {
|
|
|
try {
|
|
|
this.isLoading = true
|
|
|
- const res = await getHeHeCollageRecord(this.listQuery)
|
|
|
+ const res = await returnedPurchaseList(this.listQuery)
|
|
|
this.list = res.data.results
|
|
|
this.total = res.data.totalRecord
|
|
|
this.isLoading = false
|
|
@@ -201,6 +194,17 @@ export default {
|
|
|
console.log(error)
|
|
|
}
|
|
|
},
|
|
|
+ // 选择时间
|
|
|
+ handleDatePick() {
|
|
|
+ if (this.time && this.time.length > 0) {
|
|
|
+ this.listQuery.beginTime = this.time[0]
|
|
|
+ this.listQuery.endTime = this.time[1]
|
|
|
+ } else {
|
|
|
+ this.listQuery.beginTime = ''
|
|
|
+ this.listQuery.endTime = ''
|
|
|
+ }
|
|
|
+ this.getList()
|
|
|
+ },
|
|
|
// 菜单排序
|
|
|
async consultSort(row) {
|
|
|
try {
|