Browse Source

小于等于0红色

java8
han\hanst 3 weeks ago
parent
commit
0a81f65b3a
  1. 6
      src/views/modules/ecss/components/PackingDetailTab.vue

6
src/views/modules/ecss/components/PackingDetailTab.vue

@ -59,7 +59,7 @@
<el-table-column label="净重(KG)" prop="netWeight" width="100" align="center">
<template slot-scope="scope">
<span class="box-info-text" :style="{ color: scope.row.netWeight < 0 ? 'red' : '' }">{{ scope.row.netWeight }}</span>
<span class="box-info-text" :style="{ color: scope.row.netWeight <= 0 ? 'red' : '' }">{{ scope.row.netWeight }}</span>
</template>
</el-table-column>
@ -2110,11 +2110,11 @@ export default {
const hasInvalidBox = this.dataListBoxes.some(box => {
const grossWeight = parseFloat(box.grossWeight) || 0;
const netWeight = parseFloat(box.netWeight) || 0;
return grossWeight <= 0 || netWeight <= 0;
return grossWeight <= 0 ;
});
if (hasInvalidBox) {
this.$alert('请先为所有箱维护毛重和净重后再进行调整', '提示', {
this.$alert('请先为所有箱维护毛重后再进行调整', '提示', {
confirmButtonText: '确定',
type: 'warning'
});

Loading…
Cancel
Save