Commit 09b03163 authored by 盖献康's avatar 盖献康

检查管理-立即预约-内部外部

parent 3322d097
......@@ -206,7 +206,7 @@
</el-col>
<el-col v-show="subscribeMessage.checkType === '2'" :span="8">
<el-form-item label="支出账户余额" label-width="96px">
11800.00
11800.00
</el-form-item>
</el-col>
</el-row>
......@@ -303,7 +303,7 @@ export default {
getManage(id).then(response => {
this.subscribeMessage = response.data
console.log('立即预约页面', this.subscribeMessage)
this.subscribeMessage.payAmount = this.keepTwoDecimals(this.subscribeMessage.payAmount)
// this.subscribeMessage.payAmount = this.keepTwoDecimals(this.subscribeMessage.payAmount)
// 时间
this.deviceQueryParams.reservationTime = parseTime(new Date(), '{y}-{m}-{d}')
// 服务类型(医院自有、外部服务)
......@@ -317,7 +317,7 @@ export default {
this.currentCheckId = this.subscribeMessage.id
this.currentPayAmount = this.subscribeMessage.payAmount
this.getDevice()
this.getAllDevice(this.subscribeMessage.checkItemsId)
this.getAllDevice(this.subscribeMessage.checkItemsId, this.deviceQueryParams.isPrivate)
})
},
methods: {
......@@ -387,10 +387,10 @@ export default {
})
},
// 获取所有设备
getAllDevice(checkItemsId) {
getAllDevice(checkItemsId, isPrivate) {
const list = []
list.push(checkItemsId)
deviceUseInSubscribeList({ isPrivate: this.deviceQueryParams.isPrivate, checkTypeList: list }).then(res => {
deviceUseInSubscribeList({ isPrivate: isPrivate, checkTypeList: list }).then(res => {
this.selectableDevice = res.data
})
},
......
......@@ -534,10 +534,10 @@ export default {
})
},
/** 获取所有设备用于设备下拉 */
getAllDevice(checkItemsId) {
getAllDevice(checkItemsId, isPrivate) {
const list = []
list.push(checkItemsId)
deviceUseInSubscribeList({ isPrivate: '1', checkTypeList: list }).then(res => {
deviceUseInSubscribeList({ isPrivate: isPrivate, checkTypeList: list }).then(res => {
console.log('设备下拉框', res)
this.selectableDevice = res.data
})
......@@ -597,7 +597,7 @@ export default {
console.log('点击立即预约后的状态', this.deviceQueryParams)
// 设置检查项目id
this.getDevice()
this.getAllDevice(row.checkItemsId)
this.getAllDevice(row.checkItemsId, this.deviceQueryParams.isPrivate)
},
// 获取当前时间
getCurrentTime() {
......
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