Commit 919fa78b authored by 陈明豪's avatar 陈明豪

Merge remote-tracking branch 'origin/master'

parents 0838ed3d 6672ee2f
......@@ -286,7 +286,7 @@
</el-col>
<el-col :span="8">
<el-form-item label="支付金额">
<el-input v-model="form.payAmount" :disabled="true" placeholder="-" style=" width: 190px" />
<el-input v-model="form.payAmount" :disabled="true" placeholder="-" style=" width: 90%" />
<span style="margin-left: 5px"></span>
</el-form-item>
</el-col>
......
......@@ -136,11 +136,11 @@
<span>{{ parseTime(scope.row.reportTime, '{h}:{m}') || '-' }}</span>
</template>
</el-table-column>
<el-table-column label="支付金额" align="left" prop="payAmount">
<template slot-scope="scope">
<span>{{ formatPrice(scope.row.payAmount) || '-' }}</span>
</template>
</el-table-column>
<el-table-column label="支付金额" align="left" prop="payAmount">
<template slot-scope="scope">
<span>{{ formatPrice(scope.row.payAmount) || '-' }}</span>
</template>
</el-table-column>
<el-table-column label="设备当前状态" align="left" prop="status">
<template slot-scope="scope">
<span
......@@ -186,6 +186,7 @@
import { listUseManagement, listUseManagementAll } from '@/api/business/use'
import { listItemByType } from '@/api/business/item'
import { getInfo } from '@/api/login'
import { parseStrEmpty } from '@/utils/ruoyi'
export default {
name: 'UseManagement',
......@@ -285,7 +286,7 @@ export default {
methods: {
// 表格显示病房单价保留两位小数
formatPrice(cellValue) {
return cellValue.toFixed(2) + '元'
if (parseStrEmpty(cellValue) !== '') { return cellValue.toFixed(2) + '元' }
},
// 表单选择框对齐
cellClass(row) {
......@@ -387,6 +388,7 @@ export default {
listUseManagement(this.queryParams).then(res => {
this.total = res.total
this.userList = res.rows
console.log('this.userList', this.userList)
this.loading = false
console.log('列表', res)
})
......
......@@ -345,7 +345,7 @@ export default {
moneyFormat,
highlightRow(scope) {
if (scope.row.diseaseLevel === '1') {
return 'height-line'
return 'expenditure-highlight-row'
}
},
// 病房下拉框
......@@ -492,14 +492,19 @@ export default {
}
}
</script>
<style>
.height-line{
background-color: rgba(85, 163, 67, 0.2) !important;
}
</style>
<!--<style>-->
<!--/*.height-line{*/-->
<!--/* background: #F6FCF5;*/-->
<!--//}-->
<!--</style>-->
<style scoped lang="scss">
.app-container{
background-color: #FFFFFF;
}
.el-table{
.expenditure-highlight-row {
background: #F6FCF5;
}
}
</style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment