商品库存修改库存关闭时的样式

This commit is contained in:
YeMingfei666 2024-08-30 16:36:42 +08:00
parent 2e154dd749
commit 016bc3fc0c
1 changed files with 10 additions and 2 deletions

View File

@ -68,8 +68,16 @@
</template>
</el-table-column>
<el-table-column label="库存" prop="number">
<template v-slot="scope">
<span :class="[scope.row.stockNumber <= warnLine ? 'colorStyle' : '']">
<template v-slot="scope" >
<span v-if="!scope.row.isStock" :class="[scope.row.stockNumber <= warnLine ? 'colorStyle' : '']">
<span v-if="scope.row.stockNumber < 0" style="font-weight: 700;color: #999;font-size: 14px;">-</span>
<span >
<span> {{ Math.abs(scope.row.stockNumber) }}</span>
<span> {{ scope.row.unitName }}</span>
</span>
</span>
<span v-else :class="[scope.row.stockNumber <= warnLine ? 'colorStyle' : '']">
{{ `${scope.row.stockNumber} ${scope.row.unitName}` }}
</span>
</template>