Commit 0f5fdf33 authored by 盖献康's avatar 盖献康

检查管理-立即预约-在外部服务的时候显示支出账户余额和设备服务费

parent 2ecf5e29
......@@ -455,3 +455,16 @@ input::-webkit-input-placeholder {
.el-table .disabledCheck .cell .el-checkbox__inner {
margin-right: 3px;
}
// 超时退出
.el-button--primary:hover, .el-button--primary:focus {
background: #5FB54B;
border-color: #5FB54B;
color: #FFFFFF;
}
// 超时退出
.el-button--primary {
background: #5FB54B;
border-color: #5FB54B;
color: #FFFFFF;
}
......@@ -158,6 +158,7 @@
<el-row v-show="checkDetail.checkSchedule < 2">
<el-col :span="8">
<el-form-item label="暂未预约">
<span></span>
</el-form-item>
</el-col>
</el-row>
......
......@@ -154,7 +154,8 @@
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="180">
<template slot-scope="scope">
<el-button
class="fourWordsBtn"
style="color: #5FB54B"
type="text"
@click="handleBookNow(scope.row)"
>立即预约</el-button>
</template>
......@@ -286,7 +287,7 @@ export default {
this.total = res.total
if (this.subscribeMessage.checkType === '2' && this.deviceList.length > 0) {
this.deviceList.forEach(item => {
item['price'] = this.subscribeMessage.devicePrice
item['price'] = this.subscribeMessage.payAmount
})
}
console.log('列表', this.deviceList)
......
......@@ -66,28 +66,28 @@
<el-row :gutter="10" class="mb8" style="margin: 0 0 20px 1px">
<el-button
class="fourWordsBtn"
icon="el-icon-plus"
icon="el-icon-finished"
size="mini"
@click="selectAll()"
>选择全部
</el-button>
<el-button
class="fourWordsBtn"
icon="el-icon-edit"
icon="el-icon-back"
size="mini"
@click="reverseSelect()"
>反向选择
</el-button>
<el-button
class="fourWordsBtn"
icon="el-icon-delete"
icon="el-icon-upload2"
size="mini"
@click="handleExport()"
>批量导出
</el-button>
<el-button
class="fourWordsBtn"
icon="el-icon-download"
icon="el-icon-setting"
size="mini"
@click="checkItem()"
>检查项目
......@@ -130,7 +130,7 @@
</el-table-column>
<el-table-column label="检查项目" align="left" :show-overflow-tooltip="true" prop="checkItemsName">
<template slot-scope="scope">
<span>{{scope.row.checkItemsName || '-'}}</span>
<span>{{ scope.row.checkItemsName || '-' }}</span>
</template>
</el-table-column>
<el-table-column label="宠物昵称" align="left" :show-overflow-tooltip="true" prop="petNickname" />
......@@ -257,7 +257,7 @@
/>
</el-form-item>
</el-col>
<el-col :span="7">
<el-col :span="7" v-show="currentCheckType === '2'">
<el-form-item label="支出账户金额" prop="shadowReport" label-width="120">
1200.00
</el-form-item>
......@@ -281,7 +281,7 @@
</template>
</el-table-column>
<el-table-column prop="num" align="left" label="剩余可预约" />
<el-table-column prop="date" align="left" label="设备服务费" />
<el-table-column v-if="currentCheckType === '2'" prop="date" align="left" label="设备服务费" />
<el-table-column align="left" label="操作">
<template slot-scope="scope">
<el-button
......@@ -420,7 +420,9 @@ export default {
// 当前的检查ID
currentCheckId: null,
// 当前的设备服务费
currentPayAmount: null
currentPayAmount: null,
// 检查类型(0-自有、2-外部)
currentCheckType: null
}
},
created() {
......@@ -568,6 +570,7 @@ export default {
this.deviceQueryParams.reservationTime = this.getCurrentTime()
this.currentCheckId = row.id
this.currentPayAmount = row.payAmount
this.currentCheckType = row.checkType
console.log('点击立即预约后的状态', this.deviceQueryParams)
// 设置检查项目id
this.getDevice()
......@@ -620,6 +623,11 @@ export default {
console.log('设备', res)
this.deviceList = res.rows.table
this.deviceTotal = res.total
if (this.currentCheckType === '2' && this.deviceList.length > 0) {
this.deviceList.forEach(item => {
item['price'] = this.currentPayAmount
})
}
})
},
/** 重置按钮操作 */
......
......@@ -503,7 +503,7 @@ export default {
return treatRange
},
// 预约诊室搜索
allocationFormChangeName(value) {
allocationFormChangeName() {
this.getAppointmentRecord()
},
// 分配诊室治疗时间查询
......
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