This commit is contained in:
linfso 2025-03-12 06:50:57 +08:00
parent 2939e678ee
commit 39b2d9498c
2 changed files with 18 additions and 10 deletions

View File

@ -48,7 +48,7 @@
ref="refTable" ref="refTable"
storageName="emisCreditCustomerList_main_250308" storageName="emisCreditCustomerList_main_250309"
v-loading="loading" v-loading="loading"
border stripe border stripe
@ -128,15 +128,19 @@
</el-switch> </el-switch>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('剩余额度')" align="center" prop="curMoney" min-width="100" /> <el-table-column :label="$t('剩余额度')" align="center" prop="curMoney" min-width="100" >
<el-table-column :label="$t('已使用额度')" align="center" prop="hasUseMoney" min-width="100" >
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.creditMoney - scope.row.curMoney }} {{ scope.row.creditMoney - scope.row.useMoney }}
</template>
</el-table-column>
<el-table-column :label="$t('已使用额度')" align="center" prop="useMoney" min-width="100" >
<template slot-scope="scope">
{{ scope.row.useMoney }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('剩余比例(%)')" align="center" prop="curMoneyRate" min-width="100" > <el-table-column :label="$t('剩余比例(%)')" align="center" prop="curMoneyRate" min-width="100" >
<template slot-scope="scope"> <template slot-scope="scope">
{{ (scope.row.curMoney/scope.row.creditMoney)*100 }} {{ ( ((scope.row.creditMoney - scope.row.useMoney)/scope.row.creditMoney)*100 ).toFixed(2) }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('开始日期')" align="center" prop="startDate" min-width="170" /> <el-table-column :label="$t('开始日期')" align="center" prop="startDate" min-width="170" />

View File

@ -37,7 +37,7 @@
<XdTable v-loading="loading" <XdTable v-loading="loading"
ref="refTable" ref="refTable"
storageName="emisCreditSalesmenList_main_250308" storageName="emisCreditSalesmenList_main_250309"
border stripe border stripe
size="small" size="small"
@ -116,15 +116,19 @@
</el-switch> </el-switch>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('剩余额度')" align="center" prop="curMoney" min-width="100" /> <el-table-column :label="$t('剩余额度')" align="center" prop="curMoney" min-width="100" >
<el-table-column :label="$t('已使用额度')" align="center" prop="hasUseMoney" min-width="100" >
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.creditMoney - scope.row.curMoney }} {{ scope.row.creditMoney - scope.row.useMoney }}
</template>
</el-table-column>
<el-table-column :label="$t('已使用额度')" align="center" prop="useMoney" min-width="100" >
<template slot-scope="scope">
{{ scope.row.useMoney }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('剩余比例(%)')" align="center" prop="curMoneyRate" min-width="100" > <el-table-column :label="$t('剩余比例(%)')" align="center" prop="curMoneyRate" min-width="100" >
<template slot-scope="scope"> <template slot-scope="scope">
{{ (scope.row.curMoney/scope.row.creditMoney)*100 }} {{ ( ((scope.row.creditMoney - scope.row.useMoney)/scope.row.creditMoney)*100 ).toFixed(2) }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('开始日期')" align="center" prop="startDate" min-width="170" /> <el-table-column :label="$t('开始日期')" align="center" prop="startDate" min-width="170" />