优化:提成明细 - 增加实际解冻时间

This commit is contained in:
wuhui_zzw 2024-05-30 13:32:17 +08:00
parent cde27a1136
commit fd447e42bb
1 changed files with 20 additions and 1 deletions

View File

@ -82,7 +82,7 @@
</div> </div>
</div> </div>
{{--明细弹框--}} {{--明细弹框--}}
<el-dialog title="查看明细" :visible.sync="see_details" @close="seeDetailsPopupClose" width="1200px"> <el-dialog title="查看明细" :visible.sync="see_details" @close="seeDetailsPopupClose" width="1300px">
<template> <template>
<!--搜索--> <!--搜索-->
<el-form :inline="true" :model="see_search_list"> <el-form :inline="true" :model="see_search_list">
@ -133,6 +133,11 @@
<el-table-column align="center" prop="dividend_amount" label="提成金额" width="120"></el-table-column> <el-table-column align="center" prop="dividend_amount" label="提成金额" width="120"></el-table-column>
<el-table-column align="center" prop="amount" label="结算金额" width="120"></el-table-column> <el-table-column align="center" prop="amount" label="结算金额" width="120"></el-table-column>
<el-table-column align="center" prop="status_name" label="状态" width="120"></el-table-column> <el-table-column align="center" prop="status_name" label="状态" width="120"></el-table-column>
<el-table-column align="center" label="实际解冻时间" width="200">
<template slot-scope="scope">
[[ scope.row.reality_thaw_time | dateFormat ]]
</template>
</el-table-column>
</el-table> </el-table>
<!--分页--> <!--分页-->
<el-pagination <el-pagination
@ -173,6 +178,20 @@
} }
} }
}, },
filters: {
dateFormat: function(value) {
if(!value) return '';
const date = new Date(value *1000);
const year = date.getFullYear();
const month = String(date.getMonth() + 1).padStart(2, '0');
const day = String(date.getDate()).padStart(2, '0');
const hours = String(date.getHours()).padStart(2, '0');
const minutes = String(date.getMinutes()).padStart(2, '0');
const seconds = String(date.getSeconds()).padStart(2, '0');
return `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`;
},
},
watch:{}, watch:{},
mounted () { mounted () {
this.getData(); this.getData();