Commit 5d18d861 authored by 盖献康's avatar 盖献康

检查管理(医院) - 支出账户余额

parent b4fde775
......@@ -77,3 +77,12 @@ export function getHospitalIds(query) {
params: query
})
}
// 查询当前登陆医院账号的医院信息
export function signHospitalMessage(query) {
return request({
url: '/system/hospital/sign-in-hospital-message',
method: 'get',
params: query
})
}
......@@ -299,7 +299,7 @@
</el-col>
<el-col v-show="currentCheckType === '2'" :span="6">
<el-form-item label="支出账户余额" prop="shadowReport" label-width="120">
1200.00
<span>{{ '¥' + moneyFormat(currentHospital.currentBalance) }}</span>
</el-form-item>
</el-col>
</el-row>
......@@ -361,6 +361,8 @@ import { deviceUseInSubscribeList, listReservationDevice } from '@/api/business/
import { listItemByType, listPlatformItem } from '@/api/business/item'
import { parseTime } from '@/utils/ruoyi'
import { updateCheck } from '@/api/business/mdeicalRecord'
import { signHospitalMessage } from '@/api/business/hospital'
import { moneyFormat } from '../../../utils'
export default {
name: 'MedicalRecordManagement',
......@@ -471,13 +473,16 @@ export default {
currentPayAmount: null,
// 检查类型(0-自有、2-外部)
currentCheckType: null,
updateRow: {}
updateRow: {},
// 当前医院信息
currentHospital: null
}
},
created() {
if (this.$store.state.user.userType !== '00') {
console.log('非平台权限')
this.getList()
this.getHospitalMessage()
} else {
console.log('平台权限')
this.getItemForPlat()
......@@ -487,7 +492,17 @@ export default {
}
},
methods: {
moneyFormat,
parseTime,
/** 获取当前医院信息 */
getHospitalMessage() {
signHospitalMessage().then(response => {
console.log('当前医院信息', response)
if (response.code === 200) {
this.currentHospital = response.data
}
})
},
/** 查询业务管理-检查管理列表 */
getList() {
this.loading = true
......
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