|
|
|
@ -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 ? '未赋码' : '已赋码'
|
|
|
|
|
},
|
|
|
|
|