|
@@ -33,11 +33,11 @@
|
|
<template v-if="item.frame_bed_vos && item.frame_bed_vos.length > 0">
|
|
<template v-if="item.frame_bed_vos && item.frame_bed_vos.length > 0">
|
|
<div v-for="(subItem, i) in item.frame_bed_vos" :key="i" class="param-item">
|
|
<div v-for="(subItem, i) in item.frame_bed_vos" :key="i" class="param-item">
|
|
<span><i class="el-icon-s-flag"></i> {{ subItem.frame_bed.name }} 床</span>
|
|
<span><i class="el-icon-s-flag"></i> {{ subItem.frame_bed.name }} 床</span>
|
|
- <span v-if="subItem.customer_member_id">
|
|
|
|
- <el-button size="mini" plain round @click="handleEditPatient(subItem.customer_member_id)"><i class="el-icon-user"></i> {{ subItem.customer_name}}</el-button>
|
|
|
|
- </span>
|
|
|
|
|
|
+ <span v-if="subItem.customer_id">
|
|
|
|
+ <el-button size="mini" plain round @click="handleEditPatient(subItem.customer_id,subItem.frame_bed.id)"><i class="el-icon-user"></i> {{ subItem.customer_name}}</el-button>
|
|
|
|
+ </span>
|
|
<span v-else>
|
|
<span v-else>
|
|
- <el-button size="mini" type="success" plain round @click="handleAddPatient(null)"><i class="el-icon-circle-plus-outline"></i> 病人</el-button>
|
|
|
|
|
|
+ <el-button size="mini" type="success" plain round @click="handleAddPatient(subItem.frame_bed)"><i class="el-icon-circle-plus-outline"></i> 病人</el-button>
|
|
</span>
|
|
</span>
|
|
<span>
|
|
<span>
|
|
<el-dropdown size="mini" @command="handleGroupCommand">
|
|
<el-dropdown size="mini" @command="handleGroupCommand">
|
|
@@ -68,7 +68,7 @@
|
|
:visible.sync="dialogPatientVisible"
|
|
:visible.sync="dialogPatientVisible"
|
|
width="85%"
|
|
width="85%"
|
|
>
|
|
>
|
|
- <customer-edit :customer-id="customerId" @saved="handlePatientFinished"></customer-edit>
|
|
|
|
|
|
+ <customer-edit :customer-id="customerId" :frame-id="frameId" @saved="handlePatientFinished"></customer-edit>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
|
|
|
<el-dialog title="科室结构" :visible.sync="dialogFrameVisible" width="500px">
|
|
<el-dialog title="科室结构" :visible.sync="dialogFrameVisible" width="500px">
|
|
@@ -118,7 +118,7 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
- import * as HospitalFrame_API from '@/api/hospitalFrame'
|
|
|
|
|
|
+ import * as HospitalFrame_API from '@/api/ncs_hospitalFrame'
|
|
import * as RegExp from "@/utils/RegExp";
|
|
import * as RegExp from "@/utils/RegExp";
|
|
import customerEdit from '@/views/customer/customerEdit'
|
|
import customerEdit from '@/views/customer/customerEdit'
|
|
import DeviceInfo from '@/views/calling-device/deviceInfo'
|
|
import DeviceInfo from '@/views/calling-device/deviceInfo'
|
|
@@ -210,15 +210,17 @@
|
|
},
|
|
},
|
|
handleAddPatient(bedFrame) {
|
|
handleAddPatient(bedFrame) {
|
|
this.customerId = 0
|
|
this.customerId = 0
|
|
|
|
+ this.frameId = bedFrame.id
|
|
this.dialogPatientVisible = true
|
|
this.dialogPatientVisible = true
|
|
},
|
|
},
|
|
handlePatientFinished() {
|
|
handlePatientFinished() {
|
|
this.dialogPatientVisible = false
|
|
this.dialogPatientVisible = false
|
|
this.GET_All()
|
|
this.GET_All()
|
|
},
|
|
},
|
|
- handleEditPatient(id) {
|
|
|
|
|
|
+ handleEditPatient(id,frameId) {
|
|
this.dialogPatientVisible = true
|
|
this.dialogPatientVisible = true
|
|
this.customerId = id
|
|
this.customerId = id
|
|
|
|
+ this.frameId = frameId
|
|
},
|
|
},
|
|
// frame handle
|
|
// frame handle
|
|
handleAddRoom() {
|
|
handleAddRoom() {
|