Commit fcce59f0 authored by 小费同学阿's avatar 小费同学阿 💬

Merge remote-tracking branch 'origin/master'

# Conflicts:
#	src/views/service-management/registration-queue/components/register-modle.vue
parents d5f74068 864b74df
...@@ -1095,7 +1095,7 @@ export default { ...@@ -1095,7 +1095,7 @@ export default {
}) })
}, },
/** 获取页面详情*/ /** 获取页面详情*/
getDetail() { getDetail(type = 'usual') {
getRecord(this.$route.params.id).then(response => { getRecord(this.$route.params.id).then(response => {
console.log('KKKKKKKKKKKKKKKKKKKK', response) console.log('KKKKKKKKKKKKKKKKKKKK', response)
response.data.checkManageBos.forEach(item => { response.data.checkManageBos.forEach(item => {
...@@ -1110,8 +1110,10 @@ export default { ...@@ -1110,8 +1110,10 @@ export default {
this.treatManageBo = [] this.treatManageBo = []
this.checkManageBos.push(...response.data.checkManageBos) this.checkManageBos.push(...response.data.checkManageBos)
this.treatManageBo.push(...response.data.treatManageBo) this.treatManageBo.push(...response.data.treatManageBo)
this.petInfo = { ...response.data } if (type !== 'update') {
this.detailInfo = { ...response.data } this.petInfo = { ...response.data }
this.detailInfo = { ...response.data }
}
console.log(this.checkManageBos, 'kkkkkkkkkkkkkkkkkkkkkkk') console.log(this.checkManageBos, 'kkkkkkkkkkkkkkkkkkkkkkk')
}) })
// const temp = { // const temp = {
...@@ -1320,7 +1322,7 @@ export default { ...@@ -1320,7 +1322,7 @@ export default {
type: 'success', type: 'success',
message: '删除成功!' message: '删除成功!'
}) })
this.getDetail() this.getDetail('update')
}) })
} else if (tableName === 'treatManageBo') { } else if (tableName === 'treatManageBo') {
deleteTreat(rowData.id).then(() => { deleteTreat(rowData.id).then(() => {
...@@ -1328,7 +1330,7 @@ export default { ...@@ -1328,7 +1330,7 @@ export default {
type: 'success', type: 'success',
message: '删除成功!' message: '删除成功!'
}) })
this.getDetail() this.getDetail('update')
}) })
} }
}).catch(() => { }).catch(() => {
...@@ -1402,7 +1404,7 @@ export default { ...@@ -1402,7 +1404,7 @@ export default {
this.$message.success('保存成功') this.$message.success('保存成功')
// 刷新检查信息列表 // 刷新检查信息列表
// this.getCheckList() // this.getCheckList()
this.getDetail() this.getDetail('update')
}) })
} else { } else {
const temp = { const temp = {
...@@ -1417,7 +1419,7 @@ export default { ...@@ -1417,7 +1419,7 @@ export default {
this.$message.success('保存成功') this.$message.success('保存成功')
// 刷新检查信息列表 // 刷新检查信息列表
// this.getCheckList() // this.getCheckList()
this.getDetail() this.getDetail('update')
}) })
} }
} else if (listName === 'treatManageBo') { } else if (listName === 'treatManageBo') {
...@@ -1437,7 +1439,7 @@ export default { ...@@ -1437,7 +1439,7 @@ export default {
this.$message.success('保存成功') this.$message.success('保存成功')
// 刷新治疗信息列表 // 刷新治疗信息列表
// this.getTreatList() // this.getTreatList()
this.getDetail() this.getDetail('update')
}) })
} else { } else {
const temp = { const temp = {
...@@ -1452,7 +1454,7 @@ export default { ...@@ -1452,7 +1454,7 @@ export default {
this.$message.success('保存成功') this.$message.success('保存成功')
// 刷新治疗信息列表 // 刷新治疗信息列表
// this.getTreatList() // this.getTreatList()
this.getDetail() this.getDetail('update')
}) })
} }
} }
......
...@@ -134,7 +134,7 @@ export default { ...@@ -134,7 +134,7 @@ export default {
} }
}, },
created() { created() {
this.getList() // this.getList()
}, },
methods: { methods: {
/** 列表区--多选框选中数据 */ /** 列表区--多选框选中数据 */
...@@ -184,12 +184,14 @@ export default { ...@@ -184,12 +184,14 @@ export default {
this.loading = true this.loading = true
this.queryParams.params = { ...this.queryParams.params } this.queryParams.params = { ...this.queryParams.params }
const queryParams = deepClone(this.queryParams) const queryParams = deepClone(this.queryParams)
getPetInfo(queryParams).then(response => { if (queryParams.petCode || queryParams.ownerName || queryParams.phone) {
console.log('查询宠物宠主信息:', this.petsList) getPetInfo(queryParams).then(response => {
this.petsList = response.rows console.log('查询宠物宠主信息:', this.petsList)
this.total = response.total this.petsList = response.rows
this.loading = false this.total = response.total
}) this.loading = false
})
}
} }
} }
} }
......
...@@ -57,12 +57,12 @@ ...@@ -57,12 +57,12 @@
<!--卡片中间部分--> <!--卡片中间部分-->
<div class="mid-bottom-framework"> <div class="mid-bottom-framework">
<div <div
v-for="(item,index) in docList" v-for="(pic,picIndex) in item.pictureUrl"
:key="index" :key="`picIndex${picIndex}`"
class="mid-bottom" class="mid-bottom"
> >
<el-image <el-image
:src="baseURL+item.pictureUrl" :src="baseURL+pic"
class="mid-bottom-inner" class="mid-bottom-inner"
fit="cover" fit="cover"
/> />
......
...@@ -26,12 +26,12 @@ ...@@ -26,12 +26,12 @@
<el-row :gutter="41"> <el-row :gutter="41">
<el-col :span="8"> <el-col :span="8">
<el-form-item label="宠物ID:" prop="petsId"> <el-form-item label="宠物ID:" prop="petsId">
<el-input v-model="form.petsId" :disabled="true" maxlength="20"/> <el-input v-model="form.petsId" :disabled="true" maxlength="20" />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<el-form-item label="宠物昵称:" prop="petNickname"> <el-form-item label="宠物昵称:" prop="petNickname">
<el-input v-model="form.petNickname" :disabled="!isEdit" maxlength="20" placeholder="请输入宠物昵称"/> <el-input v-model="form.petNickname" :disabled="!isEdit" maxlength="20" placeholder="请输入宠物昵称" />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
...@@ -98,7 +98,7 @@ ...@@ -98,7 +98,7 @@
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<el-form-item label="宠物毛色:" prop="petColor"> <el-form-item label="宠物毛色:" prop="petColor">
<el-input v-model="form.petColor" :disabled="!isEdit" maxlength="20" placeholder="请输入宠物毛色"/> <el-input v-model="form.petColor" :disabled="!isEdit" maxlength="20" placeholder="请输入宠物毛色" />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
...@@ -164,7 +164,7 @@ ...@@ -164,7 +164,7 @@
<el-row v-if="isEdit && !showPetInfo" :gutter="41"> <el-row v-if="isEdit && !showPetInfo" :gutter="41">
<el-col :span="8"> <el-col :span="8">
<el-form-item label="宠主手机号:" prop="masterPhone"> <el-form-item label="宠主手机号:" prop="masterPhone">
<el-input v-model="form.masterPhone" :disabled="!isEdit" maxlength="11" @blur="checkOwner"/> <el-input v-model="form.masterPhone" :disabled="!isEdit" maxlength="11" @blur="checkOwner" />
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
...@@ -213,13 +213,13 @@ ...@@ -213,13 +213,13 @@
</el-form> </el-form>
<!--进度信息--> <!--进度信息-->
<schedule-info :schedule-key="scheduleKey"/> <schedule-info :schedule-key="scheduleKey" />
<!-- 医生卡片--> <!-- 医生卡片-->
<doctor-card @doctorDetail="handleDoctor" @registration="handleRegister"/> <doctor-card @doctorDetail="handleDoctor" @registration="handleRegister" />
<!-- 宠物选择弹框--> <!-- 宠物选择弹框-->
<choose-pet :is-show="showPetModle" @petChoose="petChoose" @petModleClose="closePetModle"/> <choose-pet :is-show="showPetModle" @petChoose="petChoose" @petModleClose="closePetModle" />
<!-- 医生详情弹出框 --> <!-- 医生详情弹出框 -->
<doctor-detail :doctor-id="doctorId" :is-show="showDoctorModle" @doctorModleClose="closeDoctorModle"/> <doctor-detail :doctor-id="doctorId" :is-show="showDoctorModle" @doctorModleClose="closeDoctorModle" />
<!-- 挂号/加号弹出框--> <!-- 挂号/加号弹出框-->
<register-modle <register-modle
:current-page="currentPage" :current-page="currentPage"
...@@ -469,8 +469,11 @@ export default { ...@@ -469,8 +469,11 @@ export default {
}, },
/** 关闭挂号回调*/ /** 关闭挂号回调*/
closeRegisterModle() { closeRegisterModle(data) {
this.showRegistrationModle = false this.showRegistrationModle = false
if (data && data.type === 'addRegisterSuccess') {
this.$router.push(`/service-management/registration-detail/${data.id}/detail`)
}
}, },
/** 提交按钮*/ /** 提交按钮*/
submitForm() { submitForm() {
......
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