fix:修复

20240912_adapter
chenhc 2 months ago
parent ac928a91ef
commit 32483c414b

@ -171,7 +171,32 @@
<el-table-column label="医保编码" prop="ybbm"></el-table-column> <el-table-column label="医保编码" prop="ybbm"></el-table-column>
<el-table-column label="药品编码" prop="nameCode"></el-table-column> <el-table-column label="药品编码" prop="nameCode"></el-table-column>
</el-table> </el-table>
<el-row style="text-align: right;font-size: 12px;margin-top: 10px">
<el-col span="24">
<div style="float: right">
<td>
<div style="background-color: red;width: 10px;height: 10px;"></div>
</td>
<td>
<span style="color:red"><pre>未扫码 </pre></span>
</td>
<td>
<div style="background-color: orange;width: 10px;height: 10px;"></div>
</td>
<td>
<span style="color:orange"><pre>部分扫码 </pre></span>
</td>
<td>
<div style="background-color: green;width: 10px;height: 10px;"></div>
</td>
<td>
<span style="color:green"><pre>已完全扫码</pre></span>
</td>
</div>
</el-col>
</el-row>
<pagination <pagination
v-show="busDataTotal>0" v-show="busDataTotal>0"
:total="busDataTotal" :total="busDataTotal"
@ -979,23 +1004,23 @@ export default {
rowBackground.color = '#F56C6C' rowBackground.color = '#F56C6C'
} }
rowBackground.height = '38px' rowBackground.height = '38px'
return rowBackground return rowBackground;
} },
}, rowStyleBiz({row, rowIndex}) {
rowStyleBiz({row, rowIndex}) { let rowBackground = {}
let rowBackground = {} const progress = row.scanActCount / row.count;
const progress = row.scanActCount / row.count;
if (row.scanActCount == null || row.scanActCount == 0) { if (row.scanActCount == null || row.scanActCount == 0) {
rowBackground.color = 'red'; // 50% rowBackground.color = 'red'; // 50%
} else if (progress < 1.0) { } else if (progress < 1.0) {
rowBackground.color = 'orange'; // 50%100% rowBackground.color = 'orange'; // 50%100%
} else { } else {
rowBackground.color = 'green'; // 100%绿 rowBackground.color = 'green'; // 100%绿
}
rowBackground.height = '38px'
return rowBackground
} }
rowBackground.height = '38px' },
return rowBackground
},
watch: { watch: {
resetKey(newVal, oldVal) { resetKey(newVal, oldVal) {
this.$refs.inputRef.focus() this.$refs.inputRef.focus()

Loading…
Cancel
Save