|
|
|
@ -137,12 +137,11 @@
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="应扫码数量" prop="scanActCount">
|
|
|
|
|
<template v-slot="scope">
|
|
|
|
|
<div :style="getCellStyle(scope.row)" style="display: flex; align-items: center; height: 100%; min-height: 40px;">
|
|
|
|
|
{{
|
|
|
|
|
scope.row.shouldCount === 0
|
|
|
|
|
? '无需扫码'
|
|
|
|
|
: `${scope.row.scanCount}/${scope.row.shouldCount}`
|
|
|
|
|
}}
|
|
|
|
|
<div v-if="scope.row.autoTagStatus == 2" :style="getCellStyle1(scope.row)" style="display: flex; align-items: center; height: 100%; min-height: 40px;">
|
|
|
|
|
无需扫码
|
|
|
|
|
</div>
|
|
|
|
|
<div :style="getCellStyle(scope.row)" style="display: flex; align-items: center; height: 100%; min-height: 40px;" v-else>
|
|
|
|
|
{{ scope.row.scanCount }}/{{ scope.row.shouldCount }}
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
@ -384,6 +383,14 @@ export default {
|
|
|
|
|
return rowBackground
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
getCellStyle1(row) {
|
|
|
|
|
let cellStyle = {}
|
|
|
|
|
if (row.autoTagStatus == 2) {
|
|
|
|
|
cellStyle.fontSize = '30px'
|
|
|
|
|
cellStyle.color = '#E6A23C'
|
|
|
|
|
return cellStyle
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
getCellStyle(row) {
|
|
|
|
|
let cellStyle = {
|
|
|
|
|
fontSize: '50px'
|
|
|
|
@ -404,13 +411,14 @@ export default {
|
|
|
|
|
// return { height: '60px' };
|
|
|
|
|
// },
|
|
|
|
|
getTagColor(row) {
|
|
|
|
|
if (row.autoTagStatus == 2) {
|
|
|
|
|
this.codingStatus = '预赋码'
|
|
|
|
|
return 'warning' // 黄色
|
|
|
|
|
}
|
|
|
|
|
if (row.scanActCount < row.count) {
|
|
|
|
|
this.codingStatus = '未赋码'
|
|
|
|
|
return 'danger' // 红色
|
|
|
|
|
} else if (row.autoTagStatus == 2) {
|
|
|
|
|
this.codingStatus = '预赋码'
|
|
|
|
|
return 'warning' // 黄色
|
|
|
|
|
} else if (row.scanActCount >= row.count) {
|
|
|
|
|
} else if (row.scanActCount >= row.count) {
|
|
|
|
|
this.codingStatus = '已赋码'
|
|
|
|
|
return 'success' // 绿色
|
|
|
|
|
}
|
|
|
|
|