|
|
@@ -5,6 +5,14 @@
|
|
|
<template #table-column-balance="{scope}">
|
|
|
<el-link :underline="true" @click="detailShowFn(scope.row)" style="font-size:12px;display:inline-block;">{{ scope.row.balance }}</el-link>
|
|
|
</template>
|
|
|
+ <!-- 收入 -->
|
|
|
+ <template #table-column-totalIncome="{scope}">
|
|
|
+ <el-link :underline="true" @click="AmountShowFn(scope.row,'1')" style="font-size:12px;display:inline-block;">{{ scope.row.totalIncome }}</el-link>
|
|
|
+ </template>
|
|
|
+ <!-- 支出 -->
|
|
|
+ <template #table-column-totalExpend="{scope}">
|
|
|
+ <el-link :underline="true" @click="AmountShowFn(scope.row,'0')" style="font-size:12px;display:inline-block;">{{ scope.row.totalExpend }}</el-link>
|
|
|
+ </template>
|
|
|
<!-- 收款码 -->
|
|
|
<template #table-column-gatheringCode="{scope}">
|
|
|
<el-button type="text" @click="gotoPage(1,scope.row)">查看</el-button>
|
|
|
@@ -12,18 +20,21 @@
|
|
|
</x-crud>
|
|
|
<!-- 用户详情 -->
|
|
|
<balance-detail v-if='showBalanceDetail' @closeFn='showBalanceDetail = false' ref="balanceDetail" :orderOperate="optionData" />
|
|
|
+ <amount-detail v-if='showAmountDetail' @closeFn='showAmountDetail = false' ref="amountDetail" :orderOperate="optionData" />
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
import { getFirstHost } from '@/cool/utils';
|
|
|
import balanceDetail from './components/balance-detail';
|
|
|
+ import amountDetail from './components/amount-detail';
|
|
|
export default {
|
|
|
- components:{balanceDetail},
|
|
|
+ components:{balanceDetail,amountDetail},
|
|
|
data() {
|
|
|
return {
|
|
|
app: null,
|
|
|
showBalanceDetail: false,
|
|
|
+ showAmountDetail: false,
|
|
|
optionData: {},
|
|
|
};
|
|
|
},
|
|
|
@@ -147,6 +158,15 @@
|
|
|
this.$refs.balanceDetail.init();
|
|
|
});
|
|
|
},
|
|
|
+ AmountShowFn(item,type){
|
|
|
+ this.optionData = {...item,io: type}
|
|
|
+ console.log(this.optionData)
|
|
|
+ // this.optionData = item;
|
|
|
+ this.showAmountDetail = true;
|
|
|
+ setTimeout(() => {
|
|
|
+ this.$refs.amountDetail.init();
|
|
|
+ });
|
|
|
+ },
|
|
|
gotoPage(type,data) {
|
|
|
console.log(data)
|
|
|
let host = `http://api.pt.${getFirstHost()}`;
|