Commit f65df979 authored by 陈明豪's avatar 陈明豪

Merge remote-tracking branch 'origin/master'

parents 24cefa0e b94925a8
...@@ -348,7 +348,7 @@ ...@@ -348,7 +348,7 @@
<el-table-column prop="num" align="left" label="剩余可预约" /> <el-table-column prop="num" align="left" label="剩余可预约" />
<el-table-column v-if="currentCheckType === '2'" prop="price" align="left" label="设备服务费"> <el-table-column v-if="currentCheckType === '2'" prop="price" align="left" label="设备服务费">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.price || '-' }}</span> <span>{{ moneyFormat(scope.row.price) + ' 元' }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column align="left" label="操作"> <el-table-column align="left" label="操作">
...@@ -360,7 +360,7 @@ ...@@ -360,7 +360,7 @@
type="success" type="success"
style="width: 84px !important; height: 24px;" style="width: 84px !important; height: 24px;"
plain plain
:disabled="parseInt(currentPayAmount) > parseInt(currentHospital.currentBalance)" :disabled="parseInt(scope.row.price) > parseInt(currentHospital.currentBalance)"
@click="handleSubscribeDevice(scope.row)" @click="handleSubscribeDevice(scope.row)"
>立即预约 >立即预约
</el-button> </el-button>
...@@ -516,8 +516,6 @@ export default { ...@@ -516,8 +516,6 @@ export default {
selectableDevice: [], selectableDevice: [],
// 当前的检查ID // 当前的检查ID
currentCheckId: null, currentCheckId: null,
// 当前的设备服务费
currentPayAmount: null,
// 检查类型(0-自有、2-外部) // 检查类型(0-自有、2-外部)
currentCheckType: null, currentCheckType: null,
updateRow: {}, updateRow: {},
...@@ -748,12 +746,6 @@ export default { ...@@ -748,12 +746,6 @@ export default {
this.deviceQueryParams.checkTypeList = [...new Set(this.deviceQueryParams.checkTypeList)] this.deviceQueryParams.checkTypeList = [...new Set(this.deviceQueryParams.checkTypeList)]
this.deviceQueryParams.reservationTime = this.getCurrentTime() this.deviceQueryParams.reservationTime = this.getCurrentTime()
this.currentCheckId = row.id this.currentCheckId = row.id
if (row.checkType === '2') {
this.currentPayAmount = row.devicePrice
this.updateRow = row
} else {
this.currentPayAmount = row.payAmount
}
this.currentCheckType = row.checkType this.currentCheckType = row.checkType
console.log('点击立即预约后的状态', this.deviceQueryParams) console.log('点击立即预约后的状态', this.deviceQueryParams)
// 设置检查项目id // 设置检查项目id
...@@ -790,7 +782,7 @@ export default { ...@@ -790,7 +782,7 @@ export default {
checkMessage.checkStartTime = row.checkDate + ' ' + checkTimeList[0] checkMessage.checkStartTime = row.checkDate + ' ' + checkTimeList[0]
checkMessage.checkEndTime = row.checkDate + ' ' + checkTimeList[1] checkMessage.checkEndTime = row.checkDate + ' ' + checkTimeList[1]
checkMessage.checkSchedule = '2' // 把进度改为预约检查 checkMessage.checkSchedule = '2' // 把进度改为预约检查
checkMessage.devicePrice = this.currentPayAmount checkMessage.devicePrice = row.price
if (this.updateRow.checkType === '2') { if (this.updateRow.checkType === '2') {
checkMessage.payAmount = this.updateRow.payAmount checkMessage.payAmount = this.updateRow.payAmount
} }
...@@ -812,11 +804,6 @@ export default { ...@@ -812,11 +804,6 @@ export default {
console.log('设备', res) console.log('设备', res)
this.deviceList = res.rows.table this.deviceList = res.rows.table
this.deviceTotal = res.total this.deviceTotal = res.total
if (this.currentCheckType === '2' && this.deviceList.length > 0) {
this.deviceList.forEach(item => {
item['price'] = this.keepTwoDecimals(this.currentPayAmount) + ' 元'
})
}
}) })
}, },
/** 重置按钮操作 */ /** 重置按钮操作 */
......
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