Commit 64f873e3 authored by 陈明豪's avatar 陈明豪

bug修改

parent 7437aff6
......@@ -1165,7 +1165,7 @@ color: #333333;"
>
<template slot-scope="scope">
<el-button
v-if="isEdit && !petInHospitalStatus && !petInHospitalUpdateShow && ( scope.row.status === '0' || scope.row.status === '1' )"
v-if="isEdit && !petInHospitalStatus && !petInHospitalUpdateShow"
plain
size="mini"
style="width: 50px; border-radius: 6px 6px 6px 6px;border: 1px solid rgb(52,144,206);"
......@@ -1184,7 +1184,7 @@ color: #333333;"
>保存
</el-button>
<el-button
v-if="isEdit && !petInHospitalStatus && !petInHospitalUpdateShow && ( scope.row.status === '0' || scope.row.status === '1' )"
v-if="isEdit && !petInHospitalStatus && !petInHospitalUpdateShow"
id="remove-hospitalized"
icon="el-icon-document"
plain
......@@ -1986,20 +1986,15 @@ export default {
// 住院情况
if (response.data.inHospitalBo.status === '0' || response.data.inHospitalBo.status === '1' || response.data.inHospitalBo.status === '2') {
this.petInHospitalList.push(response.data.inHospitalBo)
this.petInHospitalStatus = false
} else {
this.petInHospitalList = response.data.hosDetailBos
this.petInHospitalStatus = true
}
console.log('住院情况', this.petInHospitalList)
if (response.data.hosDetailBos) {
this.editCunt.inHospitalBos = response.data.hosDetailBos.length
}
if (this.petInHospitalList !== undefined && this.petInHospitalList !== null) {
this.petInHospitalList.forEach(item => {
if (item.status !== '1' && item.status !== '2') {
this.petInHospitalStatus = true
}
})
}
})
// this.getInHospitalList(this.$route.params.id)
},
......
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