|
@@ -260,6 +260,7 @@
|
|
|
@saveColumn="saveColumn('goods')"
|
|
|
@resetColumn="resetColumn"
|
|
|
:summary-method="summaryMethod"
|
|
|
+ :cell-style="goodsRowClassName"
|
|
|
:table-loading="goodsLoading"
|
|
|
:key="index"
|
|
|
>
|
|
@@ -3521,6 +3522,13 @@ export default {
|
|
|
this.$set(this.form, 'corpTel', null)
|
|
|
}
|
|
|
},
|
|
|
+ // 商品表格加色
|
|
|
+ goodsRowClassName({row, column, rowIndex, columnIndex}) {
|
|
|
+ if (Number(row.orderQuantity) > Number(row.storageQuantity) && column.property == 'storageQuantity') {
|
|
|
+ return "color: #fff;background:#a4cf57"
|
|
|
+ }
|
|
|
+ return '';
|
|
|
+ },
|
|
|
// 合计计算
|
|
|
summaryMethod({ columns, data }) {
|
|
|
const sums = [];
|