|
|
@@ -1,13 +1,12 @@
|
|
|
<template>
|
|
|
<div class="app-list-content">
|
|
|
<x-crud class="liu-crud-wrap" @load="onLoad">
|
|
|
- <template #slot-tabs="{ scope }">
|
|
|
+ <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-amount="{scope}">
|
|
|
<div class="flex-center-center">
|
|
|
<div class="">{{ scope.row.io==1?'+':'-' }} {{ scope.row.amount }}</div>
|
|
|
@@ -21,28 +20,27 @@
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
|
- // x-crud
|
|
|
app: null,
|
|
|
- tabIndex: '-1',
|
|
|
+ tabIndex: '1',
|
|
|
tabsData: [
|
|
|
{
|
|
|
text: '零售',
|
|
|
- key: '-1',
|
|
|
+ key: '1',
|
|
|
val: 0
|
|
|
},
|
|
|
{
|
|
|
- text: '零售可提现余额',
|
|
|
- key: '0',
|
|
|
+ text: '零售可提现',
|
|
|
+ key: '2',
|
|
|
val: 0
|
|
|
},
|
|
|
{
|
|
|
text: '供货商',
|
|
|
- key: '1',
|
|
|
+ key: '3',
|
|
|
val: 0
|
|
|
},
|
|
|
{
|
|
|
- text: '供货商可提现余额',
|
|
|
- key: '2',
|
|
|
+ text: '供货商可提现',
|
|
|
+ key: '4',
|
|
|
val: 0
|
|
|
},
|
|
|
]
|
|
|
@@ -52,16 +50,16 @@
|
|
|
let type = this.$route.query.type
|
|
|
switch (type) {
|
|
|
case '1':
|
|
|
- this.tabIndex = '-1';
|
|
|
+ this.tabIndex = '1';
|
|
|
break
|
|
|
case '2':
|
|
|
- this.tabIndex = '1';
|
|
|
+ this.tabIndex = '2';
|
|
|
break
|
|
|
case '3':
|
|
|
- this.tabIndex = '0';
|
|
|
+ this.tabIndex = '3';
|
|
|
break
|
|
|
case '4':
|
|
|
- this.tabIndex = '2';
|
|
|
+ this.tabIndex = '4';
|
|
|
break
|
|
|
}
|
|
|
this.handleClick();
|
|
|
@@ -71,21 +69,20 @@
|
|
|
// ptStyle 1 零售 2供货商
|
|
|
// tx 0全部 2 可提现
|
|
|
switch (this.tabIndex) {
|
|
|
- case '-1':
|
|
|
+ case '1':
|
|
|
this.app.refresh({ ptStyle: 1,tx:0 });
|
|
|
break
|
|
|
- case '0':
|
|
|
+ case '2':
|
|
|
this.app.refresh({ ptStyle: 1,tx:2 });
|
|
|
break
|
|
|
- case '1':
|
|
|
+ case '3':
|
|
|
this.app.refresh({ ptStyle: 2,tx:0 });
|
|
|
break
|
|
|
- case '2':
|
|
|
+ case '4':
|
|
|
this.app.refresh({ ptStyle: 2,tx:2 });
|
|
|
break
|
|
|
}
|
|
|
},
|
|
|
- // crud
|
|
|
onLoad({ ctx, app }) {
|
|
|
this.app = app;
|
|
|
ctx.service(this.$service.ptYeChange)
|