Commit 828deb0a authored by 盖献康's avatar 盖献康

bug

parent 9e09e489
......@@ -196,9 +196,7 @@
placeholder="暂无数据"
v-model="checkDetail.payAmount"
disabled
>
<template #prefix></template>
</el-input>
/>
</el-form-item>
</el-col>
<el-col :span="8">
......@@ -245,9 +243,7 @@
placeholder="暂无数据"
v-model="checkDetail.devicePrice"
disabled
>
<template #prefix></template>
</el-input>
/>
</el-form-item>
</el-col>
<el-col :span="8">
......@@ -433,7 +429,7 @@ export default {
if (price === null) {
return null
} else {
return price.toFixed(2)
return '¥' + price.toFixed(2)
}
},
// 点击 预约信息-立即预约
......
......@@ -169,9 +169,7 @@
placeholder="暂无数据"
v-model="subscribeMessage.payAmount"
disabled
>
<template #prefix></template>
</el-input>
/>
</el-form-item>
</el-col>
</el-row>
......@@ -361,7 +359,7 @@ export default {
if (price === null) {
return null
} else {
return price.toFixed(2)
return '¥' + price.toFixed(2)
}
},
getList() {},
......@@ -378,7 +376,7 @@ export default {
this.total = res.total
if (this.subscribeMessage.checkType === '2' && this.deviceList.length > 0) {
this.deviceList.forEach(item => {
item['price'] = this.subscribeMessage.payAmount
item['price'] = this.keepTwoDecimals(this.subscribeMessage.payAmount)
})
}
console.log('列表', this.deviceList)
......
......@@ -200,8 +200,8 @@
type="success"
icon="el-icon-check"
plain
:disabled="scope.row.deviceId !== null"
@click="handleSubscribe(scope.row)"
:disabled="scope.row.deviceId !== null"
>立即预约
</el-button>
</template>
......@@ -343,7 +343,7 @@ export default {
// 查询参数
queryParams: {
pageNum: 1,
pageSize: 10,
pageSize: 20,
orderByColumn: null,
isAsc: null,
petNickname: null,
......@@ -384,7 +384,7 @@ export default {
],
deviceQueryParams: {
pageNum: 1,
pageSize: 10,
pageSize: 20,
reservationTime: null, // 检查日期(默认当前日期)
isPrivate: null, // 检查类型(0-外部、1医院)
checkTypeList: [], // 检查项目ID(String[])
......@@ -441,6 +441,13 @@ export default {
this.loading = false
})
},
keepTwoDecimals(price) {
if (price === null) {
return null
} else {
return '¥' + price.toFixed(2)
}
},
/** 表单选择框对齐 */
cellClass(row) {
if (row.columnIndex === 0) {
......@@ -633,7 +640,7 @@ export default {
this.deviceTotal = res.total
if (this.currentCheckType === '2' && this.deviceList.length > 0) {
this.deviceList.forEach(item => {
item['price'] = this.currentPayAmount
item['price'] = this.keepTwoDecimals(this.currentPayAmount)
})
}
})
......@@ -784,4 +791,8 @@ export default {
.app-container {
background-color: #FFFFFF;
}
::v-deep .el-dialog:not(.is-fullscreen) {
margin-top: 0vh !important;
}
</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