|
@@ -19,6 +19,7 @@
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-form>
|
|
</el-form>
|
|
</div>
|
|
</div>
|
|
|
|
+
|
|
<en-table-layout
|
|
<en-table-layout
|
|
:toolbar = false
|
|
:toolbar = false
|
|
@selection-change="selectFun"
|
|
@selection-change="selectFun"
|
|
@@ -37,11 +38,12 @@
|
|
<el-table-column prop="sex" label="性别" align="center" width="70" :formatter="formatterSex"></el-table-column>
|
|
<el-table-column prop="sex" label="性别" align="center" width="70" :formatter="formatterSex"></el-table-column>
|
|
<el-table-column prop="in_date" label="住院时间" align="center" :formatter="formatterDate" min-width="190"></el-table-column>
|
|
<el-table-column prop="in_date" label="住院时间" align="center" :formatter="formatterDate" min-width="190"></el-table-column>
|
|
<el-table-column prop="status" label="状态" align="center" :formatter="formatterStatus" width="100"></el-table-column>
|
|
<el-table-column prop="status" label="状态" align="center" :formatter="formatterStatus" width="100"></el-table-column>
|
|
|
|
+ <el-table-column prop="full_name" label="病床" align="center" width="120"></el-table-column>
|
|
<el-table-column label="操作" width="220">
|
|
<el-table-column label="操作" width="220">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<el-button type="primary" size="mini" @click="handleAdd(scope.row.id,scope.row.frame_id)">编辑</el-button>
|
|
<el-button type="primary" size="mini" @click="handleAdd(scope.row.id,scope.row.frame_id)">编辑</el-button>
|
|
- <el-button v-if="!scope.row.status" type="warning" size="mini" @click="handlerEdit(scope.row.id, 1)">换床</el-button>
|
|
|
|
- <el-button v-if="!scope.row.status" size="mini" @click="handlerEdit(scope.row.id, 2)">出院</el-button>
|
|
|
|
|
|
+ <el-button v-if="!scope.row.status" type="warning" size="mini" @click="handlerEdit(scope.row.id, scope.row.full_name, 1)">换床</el-button>
|
|
|
|
+ <el-button v-if="!scope.row.status" size="mini" @click="handlerEdit(scope.row.id, scope.row.full_name, 2)">出院</el-button>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</template>
|
|
</template>
|
|
@@ -66,11 +68,15 @@
|
|
|
|
|
|
<el-dialog title="换床" :visible.sync="formshow" :append-to-body="true" width="80%">
|
|
<el-dialog title="换床" :visible.sync="formshow" :append-to-body="true" width="80%">
|
|
<el-form ref="editForm" label-width="140px">
|
|
<el-form ref="editForm" label-width="140px">
|
|
- <el-form-item label="病床">
|
|
|
|
- <el-select v-model="changeFrameId" placeholder="请选择病床" clearable>
|
|
|
|
- <el-option v-for="(item, index) in frameList" :label="item.name+'床'" :value="item.id" :key="index" />
|
|
|
|
- </el-select>
|
|
|
|
|
|
+ <el-form-item label="当前病床:"><svg-icon icon-class="bed" style="color: #9aaabf;margin-top: 5px" />{{ full_name }}</el-form-item>
|
|
|
|
+ <el-form-item label="可换病床:">
|
|
|
|
+ <el-radio-group v-model="changeFrameId">
|
|
|
|
+ <el-radio v-for="(item, index) in frameList" :label="item.id" :key="index">
|
|
|
|
+ <svg-icon icon-class="bed" style="color: #9aaabf;margin-top: 5px" />{{ item.full_name }}
|
|
|
|
+ </el-radio>
|
|
|
|
+ </el-radio-group>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
+
|
|
<el-form-item>
|
|
<el-form-item>
|
|
<el-button type="primary" @click="updateFrameId">确定换床</el-button>
|
|
<el-button type="primary" @click="updateFrameId">确定换床</el-button>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -115,7 +121,8 @@
|
|
frameId: null,
|
|
frameId: null,
|
|
callingType: null,
|
|
callingType: null,
|
|
frameList: [],
|
|
frameList: [],
|
|
- searchStr: null
|
|
|
|
|
|
+ searchStr: null,
|
|
|
|
+ full_name: ''
|
|
}
|
|
}
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
@@ -129,7 +136,7 @@
|
|
/** 加载设备信息列表 */
|
|
/** 加载设备信息列表 */
|
|
GET_List() {
|
|
GET_List() {
|
|
this.loading = true
|
|
this.loading = true
|
|
- this.params.fixedCondition += ' and part_id = ' + this.$store.getters.partId
|
|
|
|
|
|
+ this.params.fixedCondition += ' and nc.part_id = ' + this.$store.getters.partId
|
|
API_customer.getList(this.params).then(res => {
|
|
API_customer.getList(this.params).then(res => {
|
|
this.loading = false
|
|
this.loading = false
|
|
this.tableData = res.data
|
|
this.tableData = res.data
|
|
@@ -150,7 +157,7 @@
|
|
changeStatus(value) {
|
|
changeStatus(value) {
|
|
delete this.params.fixedCondition
|
|
delete this.params.fixedCondition
|
|
if (value) {
|
|
if (value) {
|
|
- this.params.fixedCondition = ' status=' + value
|
|
|
|
|
|
+ this.params.fixedCondition = ' nc.status=' + value
|
|
} else {
|
|
} else {
|
|
this.params.fixedCondition = ' 1 = 1'
|
|
this.params.fixedCondition = ' 1 = 1'
|
|
}
|
|
}
|
|
@@ -191,8 +198,9 @@
|
|
this.customerId = id
|
|
this.customerId = id
|
|
this.frameId = frame_id
|
|
this.frameId = frame_id
|
|
},
|
|
},
|
|
- handlerEdit(id, type) {
|
|
|
|
|
|
+ handlerEdit(id, name, type) {
|
|
this.customerId = id
|
|
this.customerId = id
|
|
|
|
+ this.full_name = name
|
|
if (type === 1) {
|
|
if (type === 1) {
|
|
API_hospitalFrame.getSickbedByPartId(this.$store.getters.partId).then(res=> {
|
|
API_hospitalFrame.getSickbedByPartId(this.$store.getters.partId).then(res=> {
|
|
this.frameList = res
|
|
this.frameList = res
|
|
@@ -274,7 +282,7 @@
|
|
clickSearch() {
|
|
clickSearch() {
|
|
delete this.params.fixedCondition
|
|
delete this.params.fixedCondition
|
|
if (this.searchStr != null && this.searchStr != '') {
|
|
if (this.searchStr != null && this.searchStr != '') {
|
|
- this.params.fixedCondition = " ( named like concat('%','" + this.searchStr + "','%') or card_no like concat('%','" + this.searchStr + "','%')) "
|
|
|
|
|
|
+ this.params.fixedCondition = " ( nc.named like concat('%','" + this.searchStr + "','%') or nc.card_no like concat('%','" + this.searchStr + "','%')) "
|
|
} else {
|
|
} else {
|
|
this.params.fixedCondition = ' 1 = 1'
|
|
this.params.fixedCondition = ' 1 = 1'
|
|
}
|
|
}
|