提交 a5cf98a8 authored 作者: 王天霸's avatar 王天霸

11

上级 4c8c8b61
......@@ -12,7 +12,7 @@ export function listRetreat(query) {
// 查询retreat详细
export function getRetreat (id) {
return request({
url: '/system/retreat/edit?id='+id,
url: '/system/retreat/edit?order_refund_sn='+id,
method: 'get'
})
}
......
......@@ -63,15 +63,52 @@
</el-form>
</div>
<el-table v-loading="loading" :data="retreatList" :height="tableHeight">
<el-table-column label="序号" align="center" prop="Id"/>
<el-table-column label="商品名称" align="center" prop="GoodsName"/>
<el-table-column label="订单号" align="center" prop="OrderSn"/>
<el-table-column label="序号" align="center" prop="id"/>
<el-table-column label="商品名称" align="center" prop="goods_title"/>
<el-table-column label="订单号" align="center" prop="refund_sn"/>
<el-table-column label="订单手机号" align="center" prop="UPhone"/>
<el-table-column label="退换货原因" align="center" prop="NeedMsg"/>
<el-table-column label="退换货类型" align="center" prop="UserNeed"/>
<el-table-column label="处理状态" align="center" prop="ProcessDes"/>
<el-table-column label="到期时间" align="center" prop="TaskEndtime"/>
<el-table-column label="申请时间" align="center" prop="Addtime"/>
<el-table-column label="退换货原因" align="center" prop="reason">
<template slot-scope="scope">
<span v-if="scope.row.reason==1">协商一致退款</span>
<span v-if="scope.row.reason==2">质量问题</span>
<span v-if="scope.row.reason==3">物流问题</span>
<span v-if="scope.row.reason==4">假冒品牌</span>
<span v-if="scope.row.reason==5">少件/漏发/破损/污渍</span>
<span v-if="scope.row.reason==6">7天无理由</span>
<span v-if="scope.row.reason==7">拍错/多拍/不想要</span>
<span v-if="scope.row.reason==8">其他</span>
</template>
</el-table-column>
<el-table-column label="退换货类型" align="center" prop="refund_type">
<template slot-scope="scope">
<span v-if="scope.row.refund_type==1">退款</span>
<span v-if="scope.row.refund_type==2">退货</span>
<span v-if="scope.row.refund_type==3">换货</span>
</template>
</el-table-column>
<el-table-column label="处理状态" align="center" prop="status">
<template slot-scope="scope">
<span v-if="scope.row.reason==-1">关闭</span>
<span v-if="scope.row.reason==1">用户取消</span>
<span v-if="scope.row.reason==2">待审核</span>
<span v-if="scope.row.reason==3">驳回</span>
<span v-if="scope.row.reason==4">待退货</span>
<span v-if="scope.row.reason==5">待收货</span>
<span v-if="scope.row.reason==6">重新发货</span>
<span v-if="scope.row.reason==7">重新收货</span>
<span v-if="scope.row.reason==8">待打款</span>
<span v-if="scope.row.reason==9">已完成</span>
</template>
</el-table-column>
<!-- <el-table-column label="到期时间" align="center" prop="TaskEndtime"/> -->
<el-table-column label="申请时间" align="center" prop="created_time">
<template slot-scope="scope">
{{formatter(scope.row.created_time)}}
</template>
</el-table-column>
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope">
<el-button
......@@ -334,7 +371,7 @@
</template>
<script>
import {listRetreat, getRetreat, retreatSubmit,getSearchParams} from '@/api/module/retreat'
import {dateFormat} from '@/utils'
export default {
name: "retreat",
data() {
......@@ -492,6 +529,9 @@
}
},
methods: {
formatter(time) {
return dateFormat(time, 'Y-m-d H:i:s')
},
getParams() {
getSearchParams().then(res => {
if(res.userNeed && res.userNeed.length > 0) {
......@@ -721,7 +761,7 @@
handleInfo(row) {
this.loading = true;
// this.reset();
const id = row.Id
const id = row.refund_sn
getRetreat(id).then(response => {
this.loading = false;
//console.log("000", response.data)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论