|
@@ -21,7 +21,7 @@
|
|
|
应收合计:{{total_fr}} 已收合计:{{total_pr}} 余款合计:{{total_balance}}
|
|
|
</div>
|
|
|
<div class="rvsreport-table">
|
|
|
- <el-table height="720" :data="tableData" style="width: 100%">
|
|
|
+ <el-table :row-style="changRed" height="720" :data="tableData" style="width: 100%">
|
|
|
<el-table-column label="应收报表">
|
|
|
<el-table-column prop="no" label="序号" width="50">
|
|
|
</el-table-column>
|
|
@@ -135,6 +135,13 @@ export default {
|
|
|
};
|
|
|
},
|
|
|
methods:{
|
|
|
+ changRed({ row }) {
|
|
|
+ if (row.frPrice == 0) { // 变颜色的条件
|
|
|
+ return {
|
|
|
+ color: "red" // 这个return的就是样式 可以是color 也可以是backgroundColor
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
datechange(){
|
|
|
console.log(this.getdate(this.value2[0]))
|
|
|
console.log(this.getdate(this.value2[1]))
|