4/4 扫码界面优化1.0

dev2.5_scan
wangwei 3 days ago
parent 24d115615c
commit 11098723ae

@ -26,10 +26,10 @@
</el-table-column>
<el-table-column label="应扫码数量" prop="scanActCount" :min-width="120" width="200">
<template v-slot="scope">
<div v-if="scope.row.autoTagStatus === 2" class="table-cell warning">
无需扫码
</div>
<div v-else :class="getScanCountClass(scope.row)" class="table-cell">
<!--<div v-if="scope.row.autoTagStatus === 2" class="table-cell warning">-->
<!-- 无需扫码-->
<!--</div> v-else -->
<div :class="getScanCountClass(scope.row)" class="table-cell">
{{ scope.row.scanCount }}/{{ scope.row.shouldCount }}
</div>
</template>
@ -242,7 +242,12 @@ export default {
// },
getStatusText(row) {
if (row.autoTagStatus === 2) return '预赋码'
if (row.autoTagStatus === 2) {
if (row.scanCount > row.shouldCount){
return "已赋码"
}
return '预赋码'
}
if (row.scanActCount == null) return '未赋码'
return row.scanActCount < row.count ? '未赋码' : '已赋码'
},

Loading…
Cancel
Save