|
@@ -2,7 +2,7 @@
|
|
|
<div class="app-container">
|
|
|
<span>台账</span>
|
|
|
<el-divider></el-divider>
|
|
|
- <el-radio-group v-model="mainId" size="">
|
|
|
+ <!-- <el-radio-group v-model="mainId" size="">
|
|
|
<el-radio-button
|
|
|
v-for="(v, i) in dictList"
|
|
|
:key="i"
|
|
@@ -10,7 +10,7 @@
|
|
|
>{{ v.dictValue }}</el-radio-button
|
|
|
>
|
|
|
</el-radio-group>
|
|
|
- <br /><br />
|
|
|
+ <br /><br /> -->
|
|
|
<el-radio-group v-model="bill" @change="checkFn" size="">
|
|
|
<el-radio-button label="COMMONLY">贷款台账</el-radio-button>
|
|
|
<el-radio-button label="REBATE">返利台账</el-radio-button>
|
|
@@ -152,7 +152,15 @@
|
|
|
show-overflow-tooltip
|
|
|
>
|
|
|
<template slot-scope="scope">
|
|
|
- {{ scope.row.flag == 1 ? scope.row.amount : "-" }}
|
|
|
+ {{
|
|
|
+ scope.row.flag == 1
|
|
|
+ ? scope.row.amountType == "IN"
|
|
|
+ ? scope.row.amount
|
|
|
+ : scope.row.amountType == "OUT"
|
|
|
+ ? -scope.row.amount
|
|
|
+ : ""
|
|
|
+ : "-"
|
|
|
+ }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
@@ -163,7 +171,15 @@
|
|
|
show-overflow-tooltip
|
|
|
>
|
|
|
<template slot-scope="scope">
|
|
|
- {{ scope.row.flag == 2 ? scope.row.amount : "-" }}
|
|
|
+ {{
|
|
|
+ scope.row.flag == 2
|
|
|
+ ? scope.row.amountType == "IN"
|
|
|
+ ? scope.row.amount
|
|
|
+ : scope.row.amountType == "OUT"
|
|
|
+ ? -scope.row.amount
|
|
|
+ : ""
|
|
|
+ : "-"
|
|
|
+ }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
@@ -174,7 +190,15 @@
|
|
|
show-overflow-tooltip
|
|
|
>
|
|
|
<template slot-scope="scope">
|
|
|
- {{ scope.row.flag == 3 ? scope.row.amount : "-" }}
|
|
|
+ {{
|
|
|
+ scope.row.flag == 3
|
|
|
+ ? scope.row.amountType == "IN"
|
|
|
+ ? scope.row.amount
|
|
|
+ : scope.row.amountType == "OUT"
|
|
|
+ ? -scope.row.amount
|
|
|
+ : ""
|
|
|
+ : "-"
|
|
|
+ }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
@@ -185,7 +209,15 @@
|
|
|
show-overflow-tooltip
|
|
|
>
|
|
|
<template slot-scope="scope">
|
|
|
- {{ scope.row.flag == 4 ? scope.row.amount : "-" }}
|
|
|
+ {{
|
|
|
+ scope.row.flag == 4
|
|
|
+ ? scope.row.amountType == "IN"
|
|
|
+ ? scope.row.amount
|
|
|
+ : scope.row.amountType == "OUT"
|
|
|
+ ? -scope.row.amount
|
|
|
+ : ""
|
|
|
+ : "-"
|
|
|
+ }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
@@ -196,7 +228,15 @@
|
|
|
show-overflow-tooltip
|
|
|
>
|
|
|
<template slot-scope="scope">
|
|
|
- {{ scope.row.flag == 5 ? scope.row.amount : "-" }}
|
|
|
+ {{
|
|
|
+ scope.row.flag == 5
|
|
|
+ ? scope.row.amountType == "IN"
|
|
|
+ ? scope.row.amount
|
|
|
+ : scope.row.amountType == "OUT"
|
|
|
+ ? -scope.row.amount
|
|
|
+ : ""
|
|
|
+ : "-"
|
|
|
+ }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
@@ -207,7 +247,15 @@
|
|
|
show-overflow-tooltip
|
|
|
>
|
|
|
<template slot-scope="scope">
|
|
|
- {{ scope.row.flag == 6 ? scope.row.amount : "-" }}
|
|
|
+ {{
|
|
|
+ scope.row.flag == 6
|
|
|
+ ? scope.row.amountType == "IN"
|
|
|
+ ? scope.row.amount
|
|
|
+ : scope.row.amountType == "OUT"
|
|
|
+ ? -scope.row.amount
|
|
|
+ : ""
|
|
|
+ : "-"
|
|
|
+ }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|