|
|
@@ -3,12 +3,7 @@
|
|
|
<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-tab-pane v-for="(item, index) in tabsData" :key="index" :label="`${item.text}`" :name="item.key"></el-tab-pane>
|
|
|
</el-tabs>
|
|
|
</template>
|
|
|
|
|
|
@@ -30,8 +25,7 @@
|
|
|
</template>
|
|
|
|
|
|
<template #table-column-debtAmount="{scope}">
|
|
|
- <span v-if="scope.row.debtAmount > 0" style="color:red;">{{ scope.row.debtAmount?parseFloat(scope.row.debtAmount):0 }}</span>
|
|
|
- <span v-else>0</span>
|
|
|
+ {{ scope.row.debtAmount?parseFloat(scope.row.debtAmount):0 }}
|
|
|
</template>
|
|
|
|
|
|
<template #table-column-balance="{scope}">
|
|
|
@@ -99,6 +93,14 @@
|
|
|
<el-button size="small" type="primary" @click="kd(scope.row)">开单</el-button>
|
|
|
</template>
|
|
|
|
|
|
+ <template #table-column-recentExpend="{scope}">
|
|
|
+ <span>{{ 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>
|
|
|
+
|
|
|
</x-crud>
|
|
|
|
|
|
<detail-draw :show.sync="drapShow" :info="modalData" />
|
|
|
@@ -185,10 +187,25 @@ export default {
|
|
|
key: '0',
|
|
|
val: 0
|
|
|
},
|
|
|
+ {
|
|
|
+ text: '消费排行',
|
|
|
+ key: '1',
|
|
|
+ val: 0
|
|
|
+ },
|
|
|
{
|
|
|
text: '赊账排行',
|
|
|
key: '2',
|
|
|
val: 0
|
|
|
+ },
|
|
|
+ {
|
|
|
+ text: '散客',
|
|
|
+ key: '3',
|
|
|
+ val: 0
|
|
|
+ },
|
|
|
+ {
|
|
|
+ text: '近7天未下单',
|
|
|
+ key: '4',
|
|
|
+ val: 0
|
|
|
}
|
|
|
],
|
|
|
modalData: {},
|
|
|
@@ -362,25 +379,25 @@ export default {
|
|
|
prop: 'id',
|
|
|
label: 'ID',
|
|
|
align: 'center',
|
|
|
- width: 100
|
|
|
+ width: 90
|
|
|
},
|
|
|
{
|
|
|
prop: 'avatar',
|
|
|
label: '头像',
|
|
|
align: 'center',
|
|
|
- width: 100
|
|
|
+ width: 80
|
|
|
},
|
|
|
{
|
|
|
prop: 'name',
|
|
|
label: '名称',
|
|
|
align: 'center',
|
|
|
- width: 230
|
|
|
+ width: 200
|
|
|
},
|
|
|
{
|
|
|
prop: 'mobile',
|
|
|
label: '手机号',
|
|
|
align: 'center',
|
|
|
- width: 130
|
|
|
+ width: 110
|
|
|
},
|
|
|
{
|
|
|
prop: 'debtAmount',
|
|
|
@@ -416,19 +433,25 @@ export default {
|
|
|
prop: 'buyNum',
|
|
|
label: '消费次数',
|
|
|
align: 'center',
|
|
|
- width: 110
|
|
|
+ width: 90
|
|
|
},
|
|
|
{
|
|
|
prop: 'buyAmount',
|
|
|
label: '累计消费',
|
|
|
align: 'center',
|
|
|
- width: 130
|
|
|
+ width: 110
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: 'recentExpend',
|
|
|
+ label: '最近下单',
|
|
|
+ align: 'center',
|
|
|
+ width: 140
|
|
|
},
|
|
|
{
|
|
|
prop: 'visitTime',
|
|
|
label: '最近访问',
|
|
|
align: 'center',
|
|
|
- width: 160
|
|
|
+ width: 140
|
|
|
}
|
|
|
],
|
|
|
op: {
|