|
|
@ -135,12 +135,12 @@
|
|
|
|
<div :style="{ fontSize: '26px' }">{{ scope.row.count }}</div>
|
|
|
|
<div :style="{ fontSize: '26px' }">{{ scope.row.count }}</div>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column label="应扫码数量" prop="scanActCount">
|
|
|
|
<el-table-column label="应扫码数量" prop="scanActCount" :min-width="120">
|
|
|
|
<template v-slot="scope">
|
|
|
|
<template v-slot="scope">
|
|
|
|
<div v-if="scope.row.autoTagStatus == 2" :style="getCellStyle1(scope.row)" style="display: flex; align-items: center; height: 100%; min-height: 40px;">
|
|
|
|
<div v-if="scope.row.autoTagStatus == 2" :style="getCellStyle1(scope.row)" style="display: flex; align-items: center; height: 100%; min-height: 40px;">
|
|
|
|
无需扫码
|
|
|
|
无需扫码
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div :style="getCellStyle(scope.row)" style="display: flex; align-items: center; height: 100%; min-height: 40px;" v-else>
|
|
|
|
<div :style="getCellStyle(scope.row)" style="display: flex; align-items: center; height: 100%; min-height: 60px;" v-else>
|
|
|
|
{{ scope.row.scanCount }}/{{ scope.row.shouldCount }}
|
|
|
|
{{ scope.row.scanCount }}/{{ scope.row.shouldCount }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
@ -415,6 +415,10 @@ export default {
|
|
|
|
this.codingStatus = '预赋码'
|
|
|
|
this.codingStatus = '预赋码'
|
|
|
|
return 'warning' // 黄色
|
|
|
|
return 'warning' // 黄色
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (row.scanActCount == null){
|
|
|
|
|
|
|
|
this.codingStatus = '未赋码'
|
|
|
|
|
|
|
|
return 'danger' //
|
|
|
|
|
|
|
|
}
|
|
|
|
if (row.scanActCount < row.count) {
|
|
|
|
if (row.scanActCount < row.count) {
|
|
|
|
this.codingStatus = '未赋码'
|
|
|
|
this.codingStatus = '未赋码'
|
|
|
|
return 'danger' // 红色
|
|
|
|
return 'danger' // 红色
|
|
|
@ -422,6 +426,7 @@ export default {
|
|
|
|
this.codingStatus = '已赋码'
|
|
|
|
this.codingStatus = '已赋码'
|
|
|
|
return 'success' // 绿色
|
|
|
|
return 'success' // 绿色
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|