4/4 优化1.0

dev2.5_scan
wangwei 2 days ago
parent 11098723ae
commit d8c92ddb55

@ -220,7 +220,12 @@ export default {
},
getStatusType(row) {
if (row.autoTagStatus === 2) return 'warning'
if (row.autoTagStatus === 2){
if (row.scanActCount >= row.count) {
return 'success'
}
return 'warning'
}
if (row.scanActCount == null) return 'danger'
if (row.scanActCount < row.count) return 'danger'
if (row.scanActCount >= row.count) return 'success'
@ -244,7 +249,7 @@ export default {
getStatusText(row) {
if (row.autoTagStatus === 2) {
if (row.scanCount > row.shouldCount){
return "已赋码"
return "手动扫码"
}
return '预赋码'
}
@ -253,6 +258,12 @@ export default {
},
getScanCountClass(row) {
if (row.autoTagStatus === 2){
if (row.scanCount > row.shouldCount){
return "success"
}
return 'warning'
}
if (row.shouldCount === 0) return 'error'
return row.scanCount < row.shouldCount ? 'error' : 'success'
},
@ -335,7 +346,7 @@ export default {
}
.table-cell.warning {
font-size: 30px;
font-size: 50px;
color: #E6A23C;
}

Loading…
Cancel
Save