|
@@ -1,3 +1,6 @@
|
|
|
|
|
+<!--
|
|
|
|
|
+ PC 销售售后记录列表:展示售后类型后增加「售后时间」(当天/隔天),对齐小程序 refundList。
|
|
|
|
|
+-->
|
|
|
<template>
|
|
<template>
|
|
|
<div class="app-list-content">
|
|
<div class="app-list-content">
|
|
|
<x-crud class="liu-crud-wrap" @load="onLoad">
|
|
<x-crud class="liu-crud-wrap" @load="onLoad">
|
|
@@ -12,6 +15,13 @@
|
|
|
{{ scope.row.refundType==1?'退货并退款':'仅退款' }}
|
|
{{ scope.row.refundType==1?'退货并退款':'仅退款' }}
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
|
|
+ <!-- sameDay=0 隔天售后,否则当天售后 -->
|
|
|
|
|
+ <template #table-column-sameDay="{scope}">
|
|
|
|
|
+ <span :style="Number(scope.row.sameDay) === 0 ? 'color:#e67e22;font-weight:bold;' : ''">
|
|
|
|
|
+ {{ Number(scope.row.sameDay) === 0 ? '隔天售后' : '当天售后' }}
|
|
|
|
|
+ </span>
|
|
|
|
|
+ </template>
|
|
|
|
|
+
|
|
|
<template #table-column-cause="{scope}">
|
|
<template #table-column-cause="{scope}">
|
|
|
{{ scope.row.cause==0?'质量问题' : scope.row.cause==1 ?'多开错开': scope.row.cause==2 ? '打包原因' : scope.row.cause==3 ? '物流原因' : '其它'}}
|
|
{{ scope.row.cause==0?'质量问题' : scope.row.cause==1 ?'多开错开': scope.row.cause==2 ? '打包原因' : scope.row.cause==3 ? '物流原因' : '其它'}}
|
|
|
</template>
|
|
</template>
|
|
@@ -56,6 +66,11 @@
|
|
|
<el-select size="mini" v-model="currentStaffName" placeholder="操作人" style="width:110px;margin-left:8px;" @change="getKdStaff" :clearable="true">
|
|
<el-select size="mini" v-model="currentStaffName" placeholder="操作人" style="width:110px;margin-left:8px;" @change="getKdStaff" :clearable="true">
|
|
|
<el-option v-for="item in staffList" :key="item.id" :label="item.name" :value="item.id"></el-option>
|
|
<el-option v-for="item in staffList" :key="item.id" :label="item.name" :value="item.id"></el-option>
|
|
|
</el-select>
|
|
</el-select>
|
|
|
|
|
+ <!-- 售后时间:当天 sameDay=1 / 隔天 sameDay=0;清空为全部 -->
|
|
|
|
|
+ <el-select size="mini" v-model="sameDayFilter" placeholder="售后时间" style="width:110px;margin-left:8px;" @change="onSameDayChange" :clearable="true">
|
|
|
|
|
+ <el-option label="当天售后" :value="1"></el-option>
|
|
|
|
|
+ <el-option label="隔天售后" :value="0"></el-option>
|
|
|
|
|
+ </el-select>
|
|
|
<span style="margin-left:9px;font-size:18px;">订单日期:</span>
|
|
<span style="margin-left:9px;font-size:18px;">订单日期:</span>
|
|
|
<el-date-picker v-model="currentDateList" type="daterange" align="right" unlink-panels range-separator="至" start-placeholder="开始日期" @change="getSearchDate" value-format="yyyy-MM-dd"
|
|
<el-date-picker v-model="currentDateList" type="daterange" align="right" unlink-panels range-separator="至" start-placeholder="开始日期" @change="getSearchDate" value-format="yyyy-MM-dd"
|
|
|
class="custom-date-picker" end-placeholder="结束日期" :picker-options="pickerOptions" size="mini" style="margin-right:8px;">
|
|
class="custom-date-picker" end-placeholder="结束日期" :picker-options="pickerOptions" size="mini" style="margin-right:8px;">
|
|
@@ -157,6 +172,8 @@ export default {
|
|
|
refundSearchTime:'',
|
|
refundSearchTime:'',
|
|
|
currentRefundDateList:[],
|
|
currentRefundDateList:[],
|
|
|
status:'-1',
|
|
status:'-1',
|
|
|
|
|
+ /** 售后时间筛选:null=全部,1=当天,0=隔天 */
|
|
|
|
|
+ sameDayFilter: null,
|
|
|
totalRefundPrice:0,
|
|
totalRefundPrice:0,
|
|
|
currentCustomName:'',
|
|
currentCustomName:'',
|
|
|
currentCustomId:0,
|
|
currentCustomId:0,
|
|
@@ -205,6 +222,14 @@ export default {
|
|
|
this.currentStaffId = e
|
|
this.currentStaffId = e
|
|
|
this.refreshData()
|
|
this.refreshData()
|
|
|
},
|
|
},
|
|
|
|
|
+ /** 切换售后时间筛选后刷新列表 */
|
|
|
|
|
+ onSameDayChange(){
|
|
|
|
|
+ this.refreshData()
|
|
|
|
|
+ },
|
|
|
|
|
+ /** 请求参数 sameDay:-1全部 / 1当天 / 0隔天 */
|
|
|
|
|
+ sameDayQuery(){
|
|
|
|
|
+ return (this.sameDayFilter === 0 || this.sameDayFilter === 1) ? this.sameDayFilter : -1
|
|
|
|
|
+ },
|
|
|
getSearchDate(){
|
|
getSearchDate(){
|
|
|
if (this.$util.isEmpty(this.currentDateList)) {
|
|
if (this.$util.isEmpty(this.currentDateList)) {
|
|
|
this.searchTime = ''
|
|
this.searchTime = ''
|
|
@@ -231,11 +256,11 @@ export default {
|
|
|
},
|
|
},
|
|
|
refreshData(){
|
|
refreshData(){
|
|
|
this.app.refresh({status:this.tabIndex,searchTime:this.searchTime,startTime:this.startTime,endTime:this.endTime,refundSearchTime:this.refundSearchTime,refundStartTime:this.refundStartTime,
|
|
this.app.refresh({status:this.tabIndex,searchTime:this.searchTime,startTime:this.startTime,endTime:this.endTime,refundSearchTime:this.refundSearchTime,refundStartTime:this.refundStartTime,
|
|
|
- refundEndTime:this.refundEndTime,shopAdminId:this.currentStaffId,status:this.status,customId:this.currentCustomId})
|
|
|
|
|
|
|
+ refundEndTime:this.refundEndTime,shopAdminId:this.currentStaffId,status:this.status,customId:this.currentCustomId,sameDay:this.sameDayQuery()})
|
|
|
},
|
|
},
|
|
|
exportData(){
|
|
exportData(){
|
|
|
this.$service.refund.getRefundList({status:this.tabIndex,searchTime:this.searchTime,startTime:this.startTime,endTime:this.endTime,refundSearchTime:this.refundSearchTime,refundStartTime:this.refundStartTime,
|
|
this.$service.refund.getRefundList({status:this.tabIndex,searchTime:this.searchTime,startTime:this.startTime,endTime:this.endTime,refundSearchTime:this.refundSearchTime,refundStartTime:this.refundStartTime,
|
|
|
- refundEndTime:this.refundEndTime,shopAdminId:this.currentStaffId,status:this.status,pageSize:9999999,export:1,customId:this.currentCustomId}).then(res => {
|
|
|
|
|
|
|
+ refundEndTime:this.refundEndTime,shopAdminId:this.currentStaffId,status:this.status,pageSize:9999999,export:1,customId:this.currentCustomId,sameDay:this.sameDayQuery()}).then(res => {
|
|
|
if(res.file){
|
|
if(res.file){
|
|
|
window.location.href = res.file
|
|
window.location.href = res.file
|
|
|
}
|
|
}
|
|
@@ -314,6 +339,12 @@ export default {
|
|
|
align: 'center',
|
|
align: 'center',
|
|
|
width: 120
|
|
width: 120
|
|
|
},
|
|
},
|
|
|
|
|
+ {
|
|
|
|
|
+ prop: 'sameDay',
|
|
|
|
|
+ label: '售后时间',
|
|
|
|
|
+ align: 'center',
|
|
|
|
|
+ width: 100
|
|
|
|
|
+ },
|
|
|
{
|
|
{
|
|
|
prop: 'book',
|
|
prop: 'book',
|
|
|
label: '类型',
|
|
label: '类型',
|