|
@@ -129,9 +129,16 @@
|
|
|
<el-table-column prop="seller" label="卖方"> </el-table-column>
|
|
|
<el-table-column prop="imperfectGrain" label="已完成(吨)">
|
|
|
<template slot-scope="scope">
|
|
|
- <span style="color: #5473e8; font-weight: 600">{{
|
|
|
- scope.row.imperfectGrain
|
|
|
- }}</span>
|
|
|
+ <span
|
|
|
+ v-if="scope.row.proportion > 90"
|
|
|
+ style="color: #5473e8; font-weight: 600"
|
|
|
+ >{{ scope.row.imperfectGrain }}</span
|
|
|
+ >
|
|
|
+ <span
|
|
|
+ v-if="scope.row.proportion > 90"
|
|
|
+ style="color: red; font-weight: 600"
|
|
|
+ >{{ scope.row.imperfectGrain }}</span
|
|
|
+ >
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="status" label="状态">
|
|
@@ -462,6 +469,14 @@ export default {
|
|
|
} else {
|
|
|
response.records[i].addressUrlArray = []
|
|
|
}
|
|
|
+ if (response.records[i].imperfectGrain != null) {
|
|
|
+ response.records[i].proportion =
|
|
|
+ Math.floor(
|
|
|
+ (response.records[i].imperfectGrain / weight) * 10000
|
|
|
+ ) / 100
|
|
|
+ } else {
|
|
|
+ response.records[i].proportion = 0
|
|
|
+ }
|
|
|
}
|
|
|
this.deptCircularPage.currentPage = response.current
|
|
|
this.deptCircularPage.pageSize = response.size
|