shish пре 1 година
родитељ
комит
eb43fe8fe8
1 измењених фајлова са 63 додато и 58 уклоњено
  1. 63 58
      ghs/src/views/order/refund-list.vue

+ 63 - 58
ghs/src/views/order/refund-list.vue

@@ -1,44 +1,27 @@
 <template>
 	<div class="app-list-content">
 		<x-crud class="liu-crud-wrap" @load="onLoad">
+
 			<template #slot-tabs>
 				<el-tabs class="liu-tabs" type="border-card" v-model="tabIndex" @tab-click="handleClick">
 					<el-tab-pane v-for="(item, index) in tabsData" :key="index" :label="`${item.text}`" :name="item.key"></el-tab-pane>
 				</el-tabs>
 			</template>
 
-			<template #table-column-avatar="{scope}">
-				<cl-avatar :size="22" :src="scope.row.avatar" :style="{ margin: 'auto' }"></cl-avatar>
-			</template>
-
-			<template #table-column-mobile="{scope}">
-				<span v-if="scope.row.mobile != ''">{{ scope.row.mobile }}</span>
-				<span v-else>-</span>
-			</template>
-
-			<template #table-column-debtAmount="{scope}">
-				{{ scope.row.debtAmount?parseFloat(scope.row.debtAmount):0 }}
-			</template>
-
-			<template #table-column-balance="{scope}">
-				<span style="cursor: pointer;" @click="goBalanceChange(scope.row)">{{ scope.row.balance }}</span>
+			<template #table-column-refundType="{scope}">
+				{{ scope.row.refundType==1?'退货并退款':'仅退款' }}
 			</template>
 
-			<template #table-column-buyAmount="{scope}">
-				<span>{{ scope.row.buyAmount ? parseFloat(scope.row.buyAmount) : 0 }}</span>
+			<template #table-column-cause="{scope}">
+				{{ scope.row.cause==0?'质量问题':'多开错开' }}
 			</template>
 
-			<template #slot-column-option="{scope}">
-				<el-button size="small" type="primary" @click="">明细</el-button>
+			<template #table-column-book="{scope}">
+				{{ scope.row.book==0?'常规':'预订退款' }}
 			</template>
 
-			<template #table-column-recentExpend="{scope}">
-				<span v-if="scope.row.recentExpend == '0000-00-00 00:00:00'">没有下过单</span>
-				<span v-else>{{ scope.row.recentExpend ? scope.row.recentExpend.substr(0,11) : 0 }}</span>
-			</template>
-
-			<template #table-column-visitTime="{scope}">
-				<span>{{ scope.row.visitTime ? scope.row.visitTime.substr(0,11) : 0 }}</span>
+            <template #table-column-status="{scope}">
+				{{ scope.row.status==0?'待审核': scope.row.status==1 ? '已通过' : scope.row.status==2 ? '已驳回' : scope.row.status==3?'已取消':'其他' }}
 			</template>
 
 			<template #slot-export-order>
@@ -46,7 +29,6 @@
 			</template>
 
 		</x-crud>
-
 	</div>
 </template>
 
@@ -67,14 +49,19 @@ export default {
 					val: 0
 				},
 				{
-					text: '通过',
+					text: '通过',
 					key: '1',
 					val: 0
 				},
 				{
-					text: '驳回',
+					text: '驳回',
 					key: '2',
 					val: 0
+				},
+				{
+					text: '已取消',
+					key: '3',
+					val: 0
 				}
 			],
 			modalData: {},
@@ -109,7 +96,7 @@ export default {
 			if (this.$route.query.type) {
 				this.tabIndex = this.$route.query.type;
 			}
-			ctx.service(this.$service.custom)
+			ctx.service(this.$service.refund)
 				.set('table', {
 					columns: [
 						{
@@ -119,70 +106,88 @@ export default {
 							width: 90
 						},
 						{
-							prop: 'avatar',
-							label: '头像',
+							prop: 'orderSn',
+							label: '退款单号',
 							align: 'center',
-							width: 80
+							width: 140
+						},
+						{
+							prop: 'relateOrderSn',
+							label: '订单号',
+							align: 'center',
+							width: 140
 						},
 						{
-							prop: 'name',
-							label: '名称',
+							prop: 'customId',
+							label: '客户ID',
 							align: 'center',
-							width: 160
+							width: 80
 						},
 						{
-							prop: 'mobile',
-							label: '手机号',
+							prop: 'refundPrice',
+							label: '金额',
 							align: 'center',
 							width: 110
 						},
 						{
-							prop: 'debtAmount',
-							label: '欠款',
+							prop: 'refundType',
+							label: '售后类型',
 							align: 'center',
-							width: 100
+							width: 120
 						},
 						{
-							prop: 'balance',
-							label: '余额',
+							prop: 'book',
+							label: '类型',
 							align: 'center',
 							width: 90
 						},
 						{
-							prop: 'actDebt',
-							label: '待结欠款',
+							prop: 'shopAdminName',
+							label: '操作人',
+							align: 'center',
+							width: 120
+						},
+						{
+							prop: 'cause',
+							label: '售后原因',
 							align: 'center',
 							width: 100
 						},
 						{
-							prop: 'buyNum',
-							label: '消费次数',
+							prop: 'rejectReason',
+							label: '驳回原因',
 							align: 'center',
-							width: 90
+							width: 100
 						},
 						{
-							prop: 'buyAmount',
-							label: '累计消费',
+							prop: 'remark',
+							label: '备注',
 							align: 'center',
-							width: 110
+							width: 100
+						},
+						{
+							prop: 'status',
+							label: '状态',
+							align: 'center',
+							width: 100
 						},
 						{
-							prop: 'recentExpend',
-							label: '最近下单',
+							prop: 'addTime',
+							label: '申请日期',
 							align: 'center',
-							width: 130
+							width: 150
 						},
 						{
-							prop: 'visitTime',
-							label: '最近访问',
+							prop: 'updateTime',
+							label: '最近后变更',
 							align: 'center',
-							width: 130
+							width: 150
 						}
 					],
 					op: {
 						visible: true,
 						props: {
-							width: 280,
+							width: 150,
 							align: 'center',
 							fixed: 'right',
 							label: '操作'