dev2.5_scan
wangwei 3 months ago
parent a516a44e86
commit 4a7ba0eb65

@ -116,15 +116,15 @@
:row-style="{ height: '60px' }" :row-style="{ height: '60px' }"
:cell-style="{ padding: '0' }" :cell-style="{ padding: '0' }"
> >
<!--<el-table-column label="赋码状态" prop="cpmctymc">--> <el-table-column label="赋码状态" prop="cpmctymc">
<!-- <template v-slot="scope">--> <template v-slot="scope">
<!-- <div style="text-align: center;">--> <div style="text-align: center;">
<!-- <el-tag :type="getTagColor(scope.row)" size="26">--> <el-tag :type="getTagColor(scope.row)" size="26">
<!-- {{ codingStatus }}--> {{ codingStatus }}
<!-- </el-tag>--> </el-tag>
<!-- </div>--> </div>
<!-- </template>--> </template>
<!--</el-table-column>--> </el-table-column>
<el-table-column label="产品通用名" prop="cpmctymc"> <el-table-column label="产品通用名" prop="cpmctymc">
<template v-slot="scope"> <template v-slot="scope">
<div :style="{ fontSize: '16px' }">{{ scope.row.cpmctymc }}</div> <div :style="{ fontSize: '16px' }">{{ scope.row.cpmctymc }}</div>
@ -417,13 +417,13 @@ export default {
return 'warning' // return 'warning' //
} }
if (row.scanActCount == null){ if (row.scanActCount == null){
this.codingStatus = '未赋码' this.codingStatus = '未赋码'
return 'danger' // return 'danger' //
} }
if (row.scanActCount < row.count) { if (row.scanActCount < row.count) {
this.codingStatus = '未赋码' this.codingStatus = '未赋码'
return 'danger' // return 'danger' //
} else if (row.scanActCount >= row.count) { } else if (row.scanActCount >= row.count) {
this.codingStatus = '已赋码' this.codingStatus = '已赋码'
return 'success' // 绿 return 'success' // 绿
} }

Loading…
Cancel
Save