|
@@ -106,6 +106,7 @@
|
|
|
:data="loadData"
|
|
|
:defaultLoadData="false"
|
|
|
:scroll="{ x: 990, y: 450 }"
|
|
|
+ :rowClassName="(record, index) => record.checkProfitLossQty < 0 ? 'redBg-row':''"
|
|
|
bordered>
|
|
|
<!-- 产品分类 -->
|
|
|
<template slot="productType" slot-scope="text, record">
|
|
@@ -114,7 +115,7 @@
|
|
|
</template>
|
|
|
<!-- 盈亏数量 -->
|
|
|
<template slot="checkProfitLossQty" slot-scope="text, record">
|
|
|
- <span :style="{ color: record.checkProfitLossQty>0?'red':record.checkProfitLossQty<0?'green':'' }">{{ (record.checkProfitLossQty || record.checkProfitLossQty==0) ? record.checkProfitLossQty : '--' }}</span>
|
|
|
+ <span :style="{ color: record.checkProfitLossQty>0?'red':record.checkProfitLossQty<0?'green':'' }">{{ (record.checkProfitLossQty || record.checkProfitLossQty==0) ? Math.abs(record.checkProfitLossQty) : '--' }}</span>
|
|
|
</template>
|
|
|
</s-table>
|
|
|
</a-card>
|
|
@@ -216,6 +217,7 @@ export default {
|
|
|
checkWarehouseDetailCount(Object.assign(this.queryParam, { checkWarehouseSn: this.itemSn })).then(res => {
|
|
|
if (res.status == 200) {
|
|
|
this.productTotal = res.data
|
|
|
+ this.productTotal.checkLossQty = Math.abs(this.productTotal.checkLossQty || 0)
|
|
|
} else {
|
|
|
this.productTotal = null
|
|
|
}
|
|
@@ -352,5 +354,8 @@ export default {
|
|
|
text-align: right;
|
|
|
padding: 5px 0 10px;
|
|
|
}
|
|
|
+ .redBg-row{
|
|
|
+ background-color: #f5cdc8;
|
|
|
+ }
|
|
|
}
|
|
|
</style>
|