|
@@ -18,14 +18,22 @@
|
|
|
<div class="ml-1">{{ item.prize.name }}</div>
|
|
|
</div>
|
|
|
</template>
|
|
|
- <template #deliverInfo="{ item }">
|
|
|
- {{ item.record.deliverInfo ? JSON.parse(item.record.deliverInfo).name + '-' + JSON.parse(item.record.deliverInfo).no : ''}}
|
|
|
- </template>
|
|
|
<template #receiveInfo="{ item }">
|
|
|
- {{ orderReceiveInfo(item) }}
|
|
|
+ <div class="ellipsis" style="max-width: 200px;">
|
|
|
+ {{ orderReceiveInfo(item) }}
|
|
|
+ <v-tooltip activator="parent" location="top">{{ orderReceiveInfo(item) }}</v-tooltip>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ <template #deliverInfo="{ item }">
|
|
|
+ <div class="ellipsis" style="max-width: 200px;">
|
|
|
+ {{ item.record.deliverInfo ? JSON.parse(item.record.deliverInfo).name + '-' + JSON.parse(item.record.deliverInfo).no : ''}}
|
|
|
+ <v-tooltip activator="parent" location="top">{{ item.record.deliverInfo ? JSON.parse(item.record.deliverInfo).name + '-' + JSON.parse(item.record.deliverInfo).no : ''}}</v-tooltip>
|
|
|
+ </div>
|
|
|
</template>
|
|
|
<template #actions="{ item }">
|
|
|
- <v-btn v-if="!item.record.isReceive && !item.record.receiveInfo" color="primary" @click.stop="handleReceive(item)" variant="text">领取</v-btn>
|
|
|
+ <v-btn v-if="!item.record.isReceive && !item.record.receiveInfo" color="primary" @click.stop="handleReceive(item)" variant="outlined">领取</v-btn>
|
|
|
+ <span v-else-if="item.record.deliverInfo" class="color-success">已发货</span>
|
|
|
+ <span v-else class="color-warning">等待发货</span>
|
|
|
</template>
|
|
|
</CtTable>
|
|
|
|
|
@@ -42,6 +50,7 @@ import { ref, computed } from 'vue'
|
|
|
import SelectAddress from '@/views/recruit/personal/PersonalCenter/shippingAddress/index.vue'
|
|
|
import Snackbar from '@/plugins/snackbar'
|
|
|
import { getLuckLotteryRecordPage, luckyLotteryRecordReceive } from '@/api/mall/prize'
|
|
|
+import { timesTampChange } from '@/utils/date'
|
|
|
|
|
|
const queryParams = ref({
|
|
|
pageNo: 1,
|
|
@@ -51,11 +60,11 @@ const total = ref(0)
|
|
|
const items = ref([])
|
|
|
|
|
|
const headers = [
|
|
|
- { title: '活动名称', key: 'lottery.name', sortable: false },
|
|
|
+ // { title: '活动名称', key: 'lottery.name', sortable: false },
|
|
|
{ title: '奖品信息', key: 'prize', sortable: false },
|
|
|
- { title: '是否领取', key: 'isReceive', sortable: false, value: item => item.record.isReceive ? '是' : '否' },
|
|
|
{ title: '收货信息', key: 'receiveInfo', sortable: false },
|
|
|
- { title: '快递信息', key: 'deliverInfo', sortable: false },
|
|
|
+ { title: '发货信息', key: 'deliverInfo', sortable: false },
|
|
|
+ { title: '中奖时间', key: 'record.createTime', sortable: false, value: item => timesTampChange(item.record.createTime) },
|
|
|
{ title: '操作', key: 'actions', sortable: false }
|
|
|
]
|
|
|
|