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

11

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