Commit 6a8c4b17 authored by 盖献康's avatar 盖献康

Merge remote-tracking branch 'origin/master'

parents f62f0510 d309fdb2
...@@ -75,3 +75,11 @@ export function deleteTreat(id) { ...@@ -75,3 +75,11 @@ export function deleteTreat(id) {
method: 'delete' method: 'delete'
}) })
} }
// 编辑病例
export function editRecord(data) {
return request({
url: '/business/record',
method: 'put',
data
})
}
...@@ -16,6 +16,13 @@ export function getRegister(id) { ...@@ -16,6 +16,13 @@ export function getRegister(id) {
method: 'get' method: 'get'
}) })
} }
// 查询挂号详细--录入诊断
export function inputDiagnosis(id) {
return request({
url: '/business/register/inputDiagnosis/' + id,
method: 'get'
})
}
// 新增挂号 // 新增挂号
export function addRegister(data) { export function addRegister(data) {
......
import request from '@/utils/request' import request from '@/utils/request'
// 查询治疗/检查项目管理列表 // 启用诊室不分页列表
export function consultRoomListAll(query) { export function consultRoomListAll(query) {
return request({ return request({
url: '/system/room/listAll', url: '/system/room/listAll',
...@@ -8,3 +8,21 @@ export function consultRoomListAll(query) { ...@@ -8,3 +8,21 @@ export function consultRoomListAll(query) {
params: query params: query
}) })
} }
// 查询治疗列表
export function selectTreatListP(query) {
return request({
url: '/business/treat/treatList',
method: 'get',
params: query
})
}
// 查询治疗列表不分页
export function selectTreatAll(query) {
return request({
url: '/business/treat/useListAll',
method: 'get',
params: query
})
}
...@@ -174,7 +174,7 @@ export const constantRoutes = [ ...@@ -174,7 +174,7 @@ export const constantRoutes = [
// 病历详情 // 病历详情
{ {
path: 'medical-detail/:id', path: 'medical-detail/:id',
component: () => import('@/views/medical-record-management/medical-detail'), component: () => import('@/views/medical-record-management/medical-edit'),
name: 'MedicalDetail', name: 'MedicalDetail',
props: true, props: true,
meta: { meta: {
......
...@@ -134,6 +134,13 @@ export function parseStrEmpty(str) { ...@@ -134,6 +134,13 @@ export function parseStrEmpty(str) {
return str; return str;
} }
/**
* 判断传入内容是否为空
*/
export function isEmpty(str) {
return parseStrEmpty(str) === ''
}
// 数据合并 // 数据合并
export function mergeRecursive(source, target) { export function mergeRecursive(source, target) {
for (var p in target) { for (var p in target) {
......
This diff is collapsed.
...@@ -2,7 +2,15 @@ ...@@ -2,7 +2,15 @@
<div style="background-color: #FFFFFF;"> <div style="background-color: #FFFFFF;">
<div class="app-container"> <div class="app-container">
<!--顶部搜索区--> <!--顶部搜索区-->
<el-form v-show="showSearch" ref="queryForm" class="form-style" :inline="true" :model="queryParams" label-width="68px" size="small"> <el-form
v-show="showSearch"
ref="queryForm"
:inline="true"
:model="queryParams"
class="form-style"
label-width="68px"
size="small"
>
<el-form-item prop="petNickname"> <el-form-item prop="petNickname">
<el-input <el-input
v-model="queryParams.petNickname" v-model="queryParams.petNickname"
...@@ -102,32 +110,43 @@ ...@@ -102,32 +110,43 @@
</el-form> </el-form>
<el-table <el-table
ref="table"
v-loading="loading" v-loading="loading"
:data="recordList" :data="recordList"
:header-cell-style="{background:'#E8E9E8'}" :header-cell-style="{background:'#E8E9E8'}"
border border
@selection-change="handleSelectionChange" @selection-change="handleSelectionChange"
> >
<el-table-column align="center" type="selection" width="55" /> <el-table-column align="center" type="selection" width="55"/>
<el-table-column align="center" show-overflow-tooltip label="序号" min-width="80" type="index" /> <el-table-column align="center" label="序号" min-width="80" show-overflow-tooltip type="index"/>
<el-table-column align="center" show-overflow-tooltip label="病历号" min-width="80" prop="visitNumber" /> <el-table-column align="center" label="病历号" min-width="80" prop="medicalRecordNo" show-overflow-tooltip/>
<el-table-column align="center" show-overflow-tooltip label="宠物昵称" min-width="80" prop="petNickname" /> <el-table-column align="center" label="宠物昵称" min-width="80" prop="petNickname" show-overflow-tooltip/>
<el-table-column align="center" show-overflow-tooltip label="宠物ID" prop="nickname" /> <el-table-column align="center" label="宠物ID" prop="petsId" show-overflow-tooltip/>
<el-table-column align="center" show-overflow-tooltip label="宠主姓名" prop="nickname" /> <el-table-column align="center" label="宠主姓名" prop="petNickname" show-overflow-tooltip/>
<el-table-column align="center" show-overflow-tooltip label="宠主手机号" prop="petOwnerNumber" /> <el-table-column align="center" label="宠主手机号" prop="petOwnerPhone" show-overflow-tooltip/>
<el-table-column align="center" show-overflow-tooltip label="归档医院" prop="deptId" /> <el-table-column align="center" label="归档医院" prop="hospitalName" show-overflow-tooltip/>
<el-table-column align="center" show-overflow-tooltip label="主治兽医" prop="doctorName" /> <el-table-column align="center" label="主治兽医" prop="doctorName" show-overflow-tooltip/>
<el-table-column align="center" show-overflow-tooltip label="所属科室" prop="departmentId" /> <el-table-column align="center" label="所属科室" prop="hospitalDepartmentName" show-overflow-tooltip/>
<el-table-column align="center" show-overflow-tooltip label="就诊日期" prop="visitTime" width="180"> <el-table-column align="center" label="就诊日期" prop="visitDate" show-overflow-tooltip width="180">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ parseTime(scope.row.visitTime, '{y}-{m}-{d}') }}</span> <span>{{ parseTime(scope.row.visitDate, '{y}/{m}/{d}') }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column align="center" show-overflow-tooltip label="宠物保险" prop="visitOffice" /> <el-table-column align="center" label="宠物保险" prop="insure" show-overflow-tooltip>
<el-table-column align="center" show-overflow-tooltip class-name="small-padding fixed-width" label="操作" min-width="180"> <template slot-scope="scope">
<dict-tag :options="dict.type.pet_insure" :value="scope.row.insure"/>
</template>
</el-table-column>
<el-table-column
align="center"
class-name="small-padding fixed-width"
label="操作"
min-width="180"
show-overflow-tooltip
>
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
v-hasPermi="['business:case:edit']" v-hasPermi="['business:record:edit']"
icon="el-icon-document" icon="el-icon-document"
plain plain
size="mini" size="mini"
...@@ -137,7 +156,7 @@ ...@@ -137,7 +156,7 @@
>详情 >详情
</el-button> </el-button>
<el-button <el-button
v-hasPermi="['business:case:edit']" v-hasPermi="['business:record:edit']"
icon="el-icon-edit" icon="el-icon-edit"
plain plain
size="mini" size="mini"
...@@ -167,6 +186,8 @@ import { listRecord } from '@/api/business/record' ...@@ -167,6 +186,8 @@ import { listRecord } from '@/api/business/record'
export default { export default {
name: 'MedicalRecordManagement', name: 'MedicalRecordManagement',
// 数据字典
dicts: ['pet_insure'],
data() { data() {
return { return {
doctorNameList: [], doctorNameList: [],
...@@ -255,7 +276,7 @@ export default { ...@@ -255,7 +276,7 @@ export default {
*/ */
async selectAll(selection = [], all = true) { async selectAll(selection = [], all = true) {
// 如果已经全选并且是非一直全选操作则清空选择 // 如果已经全选并且是非一直全选操作则清空选择
if (this.articleList.length !== selection.length && !all) { if (this.recordList.length !== selection.length && !all) {
this.effectTableSelect([]) this.effectTableSelect([])
} else { } else {
await this.changeTableSelect() await this.changeTableSelect()
...@@ -271,6 +292,7 @@ export default { ...@@ -271,6 +292,7 @@ export default {
*/ */
async changeTableSelect(notIncludeIds = []) { async changeTableSelect(notIncludeIds = []) {
// 获取反选的数据 // 获取反选的数据
// 需要一个可以根据条件和params.notIncludeIds排除部分数据的不分页查询的接口
const { data } = await listAllArticle({ const { data } = await listAllArticle({
...this.queryParams, ...this.queryParams,
params: { params: {
...@@ -311,12 +333,14 @@ export default { ...@@ -311,12 +333,14 @@ export default {
getList() { getList() {
this.loading = true this.loading = true
listRecord(this.queryParams).then(response => { listRecord(this.queryParams).then(response => {
this.recordList = response.rows console.log('病历列表的数据:', response)
this.recordList = response.rows.rows
console.log('这是病历,我要开始取字段了!', this.recordList)
this.total = response.total this.total = response.total
this.loading = false this.loading = false
// 取消按钮
}) })
}, },
// 取消按钮
cancel() { cancel() {
this.open = false this.open = false
this.reset() this.reset()
...@@ -382,8 +406,9 @@ export default { ...@@ -382,8 +406,9 @@ export default {
::v-deep .el-table .disabledCheck .cell .el-checkbox__inner { ::v-deep .el-table .disabledCheck .cell .el-checkbox__inner {
display: none; display: none;
} }
//顶部搜索框样式 //顶部搜索框样式
.form-style{ .form-style {
margin-bottom: 20px; margin-bottom: 20px;
} }
</style> </style>
...@@ -105,7 +105,7 @@ export default { ...@@ -105,7 +105,7 @@ export default {
// 宠物表格数据 // 宠物表格数据
petsList: [], petsList: [],
// 遮罩层 // 遮罩层
loading: true, loading: false,
// 查询参数 // 查询参数
queryParams: { queryParams: {
// 导出列表 // 导出列表
...@@ -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
})
}
} }
} }
} }
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<div v-if="docList.length>0" class="doctor-card"> <div v-if="docList.length>0" class="doctor-card">
<!--标签--> <!--标签-->
<div class="progress-tip"> <div class="progress-tip">
<div class="tip-green" /> <div class="tip-green"/>
<div <div
class="tip-content" class="tip-content"
>挂号信息 >挂号信息
...@@ -53,16 +53,16 @@ ...@@ -53,16 +53,16 @@
</div> </div>
</div> </div>
<!--分割线--> <!--分割线-->
<div class="divider" /> <div class="divider"/>
<!--卡片中间部分--> <!--卡片中间部分-->
<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"
/> />
...@@ -111,24 +111,24 @@ ...@@ -111,24 +111,24 @@
> >
<div class="detail" @click="doctorDetail(item.id)"> <div class="detail" @click="doctorDetail(item.id)">
<div class="detail-img"> <div class="detail-img">
<el-image :src="require('@/assets/register/xinzengguahao_xiangqing@2x.png')" /> <el-image :src="require('@/assets/register/xinzengguahao_xiangqing@2x.png')"/>
</div> </div>
<el-button <el-button
type="text" type="text"
>详情 >详情
</el-button> </el-button>
</div> </div>
<!--给它传一个userId,一个类型和一个默认页数--> <!--给它传一个userId,一个类型-->
<div class="register" @click="registration(item.userId,'0',item)"> <div class="register" @click="registration(item.userId,'0',item,0)">
<div class="register-img"> <div class="register-img">
<el-image :src="require('@/assets/register/xinzengguahao_guahaohui@2x.png')" /> <el-image :src="require('@/assets/register/xinzengguahao_guahaohui@2x.png')"/>
</div> </div>
<el-button type="text">挂号</el-button> <el-button type="text">挂号</el-button>
</div> </div>
<!--给它传一个userId,一个类型和一个默认页数--> <!--给它传一个userId,一个类型和一个默认页数-->
<div class="add" @click="registration(item.userId, '1',item)"> <div class="add" @click="registration(item.userId, '1',item,0)">
<div class="add-img"> <div class="add-img">
<el-image :src="require('@/assets/register/xinzengguahao_jiahao@2x.png')" /> <el-image :src="require('@/assets/register/xinzengguahao_jiahao@2x.png')"/>
</div> </div>
<el-button type="text">加号</el-button> <el-button type="text">加号</el-button>
</div> </div>
...@@ -140,7 +140,7 @@ ...@@ -140,7 +140,7 @@
<div v-else class="doctor-card"> <div v-else class="doctor-card">
<!--标签--> <!--标签-->
<div class="progress-tip"> <div class="progress-tip">
<div class="tip-green" /> <div class="tip-green"/>
<div <div
class="tip-content" class="tip-content"
>挂号信息 >挂号信息
...@@ -148,12 +148,29 @@ ...@@ -148,12 +148,29 @@
</div> </div>
<!-- 详细内容--> <!-- 详细内容-->
<div> <div>
<div style=" margin: 20px; height: 200px; border: 1px solid #d6d7d7;"> <div
<div style="margin-left:45%;margin-top: 5%;"> style=" margin: 20px;
<div style=" width:50px;height: 50px;"> height: 303px;
<el-image :src="require('@/assets/register/zanwushuju.png')" /> background: #FFFFFF;
opacity: 1;
border: 1px solid #E5E5E5;
"
>
<div
style=" display: flex;
align-items: center;
flex-direction: column;margin-top: 9%;"
>
<div style=" width:115px;height: 74px;">
<el-image :src="require('@/assets/register/guahao_img_wushuju@2x.png')"/>
</div>
<div
style="font-size: 14px;
font-family: Microsoft YaHei-Regular, Microsoft YaHei;
font-weight: 400;
color: #AFAFAF;"
>暂无数据
</div> </div>
<div style="color: #b2b2b2">暂无数据</div>
</div> </div>
</div> </div>
</div> </div>
...@@ -200,8 +217,8 @@ export default { ...@@ -200,8 +217,8 @@ export default {
this.$emit('doctorDetail', id.toString()) this.$emit('doctorDetail', id.toString())
}, },
/** 显示挂号/加号弹窗*/ /** 显示挂号/加号弹窗*/
registration(userId, type, data) { registration(userId, type, data, cur) {
this.$emit('registration', { id: userId.toString(), type, data }) this.$emit('registration', { id: userId.toString(), type, data, cur })
} }
} }
} }
......
<template> <template>
<el-dialog <el-dialog
:before-close="closeModle" :before-close="closeModle"
:title="registrationType === 'usual' ? '挂号' : '加号'" :title="registrationType === '0' ? '挂号' : '加号'"
:visible.sync="isShow" :visible.sync="isShow"
append-to-body append-to-body
class="register-modle" class="register-modle"
...@@ -9,11 +9,11 @@ ...@@ -9,11 +9,11 @@
> >
<el-form ref="queryForm" :inline="true" :model="queryParams" label-width="100px" size="small"> <el-form ref="queryForm" :inline="true" :model="queryParams" label-width="100px" size="small">
<el-form-item label="主治兽医:" prop="petNickname"> <el-form-item label="主治兽医:" prop="petNickname">
<el-input v-model="queryParams.mainDoctor"/> <el-input v-model="singleDoctor.doctorName" disabled />
</el-form-item> </el-form-item>
<el-form-item label="是否首诊:" prop="petSex"> <el-form-item label="是否首诊:" prop="petSex">
<el-select <el-select
v-model="queryParams.fristVisit" v-model="queryParams.firstVisit"
clearable clearable
placeholder="请选择首诊情况" placeholder="请选择首诊情况"
style="width: 100%" style="width: 100%"
...@@ -43,9 +43,9 @@ ...@@ -43,9 +43,9 @@
<span>{{ parseTime(scope.row.workDate, '{y}/{m}/{d}') }}</span> <span>{{ parseTime(scope.row.workDate, '{y}/{m}/{d}') }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column align="center" label="时段" min-width="80" prop="hours" show-overflow-tooltip/> <el-table-column align="center" label="时段" min-width="80" prop="hours" show-overflow-tooltip />
<el-table-column align="center" label="总放号数" min-width="80" prop="allCount" show-overflow-tooltip/> <el-table-column align="center" label="总放号数" min-width="80" prop="allCount" show-overflow-tooltip />
<el-table-column align="center" label="剩余号数" min-width="80" prop="residueCount" show-overflow-tooltip/> <el-table-column align="center" label="剩余号数" min-width="80" prop="residueCount" show-overflow-tooltip />
<el-table-column <el-table-column
align="center" align="center"
label="门诊诊查费" label="门诊诊查费"
...@@ -54,14 +54,15 @@ ...@@ -54,14 +54,15 @@
show-overflow-tooltip show-overflow-tooltip
/> />
<el-table-column align="center" class-name="small-padding fixed-width" label="操作" min-width="160"> <el-table-column align="center" class-name="small-padding fixed-width" label="操作" min-width="160">
<template slot-scope="scope"> <template #default="{row}">
<el-button <el-button
:disabled="!inTimeRange(row.hours.split('~')[0], row.hours.split('~')[1])"
icon="el-icon-document" icon="el-icon-document"
plain plain
size="mini" size="mini"
style="width: 80px; border-radius: 6px 6px 6px 6px;border: 1px solid rgb(95,181,75);" style="width: 80px; border-radius: 6px 6px 6px 6px;border: 1px solid rgb(95,181,75);"
type="success" type="success"
@click="addReservation(scope.row)" @click="addReservation(row)"
>立即预约 >立即预约
</el-button> </el-button>
</template> </template>
...@@ -73,6 +74,8 @@ ...@@ -73,6 +74,8 @@
:limit.sync="queryParams.pageSize" :limit.sync="queryParams.pageSize"
:page.sync="queryParams.pageNum" :page.sync="queryParams.pageNum"
:total="total" :total="total"
@current-change="handleCurrentChange"
@pagination="getRegisterMsg"
/> />
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<el-button @click="closeModle"> </el-button> <el-button @click="closeModle"> </el-button>
...@@ -83,6 +86,7 @@ ...@@ -83,6 +86,7 @@
<script> <script>
import { addRegister, checkPet, timeRegister } from '@/api/business/register' import { addRegister, checkPet, timeRegister } from '@/api/business/register'
import { parseTime } from '@/utils/ruoyi' import { parseTime } from '@/utils/ruoyi'
import moment from 'moment'
export default { export default {
name: 'RegisterModle', name: 'RegisterModle',
...@@ -95,10 +99,14 @@ export default { ...@@ -95,10 +99,14 @@ export default {
type: String, type: String,
default: 'usual' default: 'usual'
}, },
// 医生id用来获取详情等信息(挂号)
doctorId: { doctorId: {
type: String type: Number
},
}, // 医生id用来获取详情等信息(挂号) // 当前页
// currentPage: {
// type: Number
// },
// 新增挂号宠物的所有信息 // 新增挂号宠物的所有信息
doctorForm: { doctorForm: {
type: Object type: Object
...@@ -131,17 +139,19 @@ export default { ...@@ -131,17 +139,19 @@ export default {
loading: true, loading: true,
queryParams: { queryParams: {
mainDoctor: '', mainDoctor: '',
firstVisit: '0' firstVisit: '0',
pageNum: 1,
pageSize: 10
}, },
fristVisitOptions: [ fristVisitOptions: [
{ {
label: '是', label: '是',
value: 1 value: '1'
}, },
{ {
label: '否', label: '否',
value: 0 value: '0'
} }
] ]
} }
...@@ -152,18 +162,60 @@ export default { ...@@ -152,18 +162,60 @@ export default {
this.getRegisterMsg() this.getRegisterMsg()
} }
}, },
created() {
// 获取当前时间
this.currentTime()
this.getRegisterMsg()
},
methods: { methods: {
/**
* 获取当前时间
*/
currentTime() {
// TODO: 请清除该行输出
console.log(`这是我需要的当前时间:`, moment().format('YYYY/MM/DD HH:mm:ss'))
},
/**
* 判断当前时间是否在传入的时间范围中
* @param start 开始时间 时:分
* @param end 结束时间 时:分
*/
inTimeRange(start, end) {
const current = moment()
const startTime = moment({ hour: start.split(':')[0], minute: start.split(':')[1] })
const endTime = moment({ hour: end.split(':')[0], minute: end.split(':')[1] })
// TODO: 请清除该行输出
console.log(`current`, current.format('YYYY/MM/DD HH:mm:ss'))
// TODO: 请清除该行输出
console.log(`startTime.format('YYYY/MM/DD HH:mm:ss')`, startTime.format('YYYY/MM/DD HH:mm:ss'))
// TODO: 请清除该行输出
console.log(`endTime.format('YYYY/MM/DD HH:mm:ss')`, endTime.format('YYYY/MM/DD HH:mm:ss'))
return current.isBetween(startTime, endTime, 'minute')
},
parseTime, parseTime,
// 获取相应id的医生详情 /**
* 获取医生当日排班列表
* currentPage默认值为0,是加号弹出框时的逻辑(registrationType = 1为加号)
* 在初次进入加号时currentPage字段保证后台返回当时页面
* 再次点击分页按钮后按照正常页面传值 currentPage被赋值大于0
* */
getRegisterMsg() { getRegisterMsg() {
console.log('HHHHHHHHHHHHHHHUUUUUUUUUUUUUUUUUU', this.doctorId, this.currentPage, this.registrationType) console.log('getRegisterMsg', this.doctorId, this.currentPage, this.registrationType)
timeRegister({ timeRegister({
userId: this.doctorId, userId: this.doctorId,
type: this.registrationType, type: this.registrationType,
currentPage: this.currentPage currentPage: this.currentPage,
pageNum: this.queryParams.pageNum,
pageSize: this.queryParams.pageSize
}).then(response => { }).then(response => {
console.log('哈哈哈哈哈哈哈:', response) console.log('哈哈哈哈dsds哈哈哈:', response)
this.petsList = response.rows.rows this.petsList = response.rows.rows
console.log('这是预约数据:', this.petsList)
this.total = response.total
if (this.registrationType === '1' && this.currentPage === 0) {
this.queryParams.pageNum = response.rows.currentPage
this.currentPage = response.rows.currentPage
}
}) })
}, },
// 新增预约接口 // 新增预约接口
...@@ -173,13 +225,16 @@ export default { ...@@ -173,13 +225,16 @@ export default {
console.log('这是宠物宠主本身的信息:', this.doctorForm) console.log('这是宠物宠主本身的信息:', this.doctorForm)
console.log('这是当日挂号列表信息 :', this.singleDoctor) console.log('这是当日挂号列表信息 :', this.singleDoctor)
console.log('这就是被父级传过来的宠主和名下宠物列表信息:', this.petForm) console.log('这就是被父级传过来的宠主和名下宠物列表信息:', this.petForm)
if (this.doctorForm.petsId === '-') {
this.doctorForm.petsId = null
}
// 进度 // 进度
const temp = { const temp = {
// 给接口所需的宠物赋值 // 给接口所需的宠物赋值
petOwnerBo: this.petForm, petOwnerBo: this.petForm,
type: this.registrationType, type: this.registrationType,
// 宠物宠主本身的信息 // 宠物宠主本身的信息
petsId: null, petsId: this.doctorForm.petsId || null,
petType: this.doctorForm.petStatus, petType: this.doctorForm.petStatus,
petOwnersId: this.doctorForm.ownerId, petOwnersId: this.doctorForm.ownerId,
ownersId: this.doctorForm.ownersId, ownersId: this.doctorForm.ownersId,
...@@ -196,7 +251,7 @@ export default { ...@@ -196,7 +251,7 @@ export default {
insure: this.doctorForm.insure, insure: this.doctorForm.insure,
// 进度 // 进度
checkSchedule: '0', checkSchedule: '0',
payAmount: null, payAmount: this.singleDoctor.examinationFee,
payType: '0', payType: '0',
// 这是当日挂号列表信息 // 这是当日挂号列表信息
doctorId: this.singleDoctor.doctorCode, doctorId: this.singleDoctor.doctorCode,
...@@ -226,35 +281,33 @@ export default { ...@@ -226,35 +281,33 @@ export default {
doctorTitleLabel: this.singleDoctor.doctorTitleValue doctorTitleLabel: this.singleDoctor.doctorTitleValue
} }
console.log('终极大表', temp) console.log('终极大表', temp)
// 进入挂号页面先获取是否有重复的宠物数据 // 进入挂号页面先获取是否有重复的宠物数据--选择宠物不需要
checkPet(temp).then(({ msg }) => { if (this.doctorForm.petStatus === '0') {
console.log('aaa,这是关键判断是否已存在宠物的数据', msg) checkPet(temp).then(({ msg }) => {
if (msg) { console.log('aaa,这是关键判断是否已存在宠物的数据', msg)
this.$modal.confirm('当前宠物已经存在是否覆盖数据') if (msg) {
.then(_ => { this.$modal.confirm('当前宠物已经存在是否覆盖数据')
addRegister(temp).then(response => { .then(_ => {
console.log('这是确认完成后调用新增挂号的数据返参', response) this.submit(temp)
this.$message({
type: 'success',
message: '预约成功!'
})
this.$emit('registerModleClose', false)
}) })
}) } else {
} else { this.submit(temp)
addRegister(temp).then(response => { }
console.log('这是确认不存在后调用新增挂号的数据返参', response) })
this.$message({ } else {
type: 'success', this.submit(temp)
message: '预约成功!' }
})
this.$emit('registerModleClose', false)
})
}
})
}, },
submit() { submit(data) {
addRegister(data).then(response => {
console.log('这是确认不存在后调用新增挂号的数据返参', response)
this.$message({
type: 'success',
message: '预约成功!'
})
this.$emit('registerModleClose', { type: 'addRegisterSuccess', id: response.data.id })
})
}, },
/** 关闭弹窗*/ /** 关闭弹窗*/
closeModle() { closeModle() {
...@@ -277,7 +330,7 @@ export default { ...@@ -277,7 +330,7 @@ export default {
}, },
/** 功能按钮--搜索按钮操作 */ /** 功能按钮--搜索按钮操作 */
handleQuery() { handleQuery() {
this.queryParams.pageNum = 1 // this.queryParams.pageNum = 1
// 重置选择 // 重置选择
this.effectTableSelect([]) this.effectTableSelect([])
this.getList() this.getList()
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<div class="schedule-info"> <div class="schedule-info">
<!-- 1--tip样式--> <!-- 1--tip样式-->
<div class="progress-tip"> <div class="progress-tip">
<div class="tip-green" /> <div class="tip-green"/>
<div <div
class="tip-content" class="tip-content"
>进度信息 >进度信息
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
<div class="progress-base"> <div class="progress-base">
<div class="display-base"> <div class="display-base">
<!-- 1--单个的背景,,后面按状态位切换样式--> <!-- 1--单个的背景,,后面按状态位切换样式-->
<div class="bkg-on"> <div :class="[scheduleKey.checkSchedule === '0'? 'bkg-on' : 'bkg-off']">
<!--1.预约/现场挂号--> <!--1.预约/现场挂号-->
<div <div
class="content-inner" class="content-inner"
...@@ -21,25 +21,23 @@ ...@@ -21,25 +21,23 @@
<div <div
class="avatar" class="avatar"
> >
<el-image :src="require('@/assets/register/xinzengguahao_yuyue@2x.png')" /> <el-image :src="require('@/assets/register/xinzengguahao_yuyue@2x.png')"/>
</div> </div>
<div <div
class="title" class="title"
>1.预约/现场挂号 >1.预约/现场挂号
</div> </div>
<div <div class="status-on" v-if="scheduleKey.registrationTime!=null">{{ scheduleKey.registrationTime }}</div>
class="status-on" <div class="status-off" v-else>暂未挂号</div>
>进行中
</div>
</div> </div>
</div> </div>
<!-- 箭头指示--> <!-- 箭头指示-->
<div class="arrow"> <div class="arrow">
<el-image :src="require('@/assets/register/xinzengguahao_jaintou@2x.png')" /> <el-image :src="require('@/assets/register/xinzengguahao_jaintou@2x.png')"/>
</div> </div>
<!-- 2--单个的背景,,后面按状态位切换样式--> <!-- 2--单个的背景,,后面按状态位切换样式-->
<div <div
class="bkg-off" :class="[scheduleKey.checkSchedule === '1'? 'bkg-on' : 'bkg-off']"
> >
<!--2.录入诊断信息--> <!--2.录入诊断信息-->
<div <div
...@@ -48,80 +46,83 @@ ...@@ -48,80 +46,83 @@
<div <div
class="avatar" class="avatar"
> >
<el-image :src="require('@/assets/register/xinzengguahao_luru@2x.png')" /> <el-image :src="require('@/assets/register/xinzengguahao_luru@2x.png')"/>
</div> </div>
<div <div
class="title" class="title"
>2.录入诊断信息 >2.录入诊断信息
</div> </div>
<div <div class="status-on" v-if="scheduleKey.diagnosisTime!=null">{{ scheduleKey.diagnosisTime }}</div>
class="status-off" <div class="status-off" v-else>暂未录入</div>
>暂未录入
</div>
</div> </div>
</div> </div>
<!-- 箭头指示--> <!-- 箭头指示-->
<div class="arrow"> <div class="arrow">
<el-image :src="require('@/assets/register/xinzengguahao_jaintou@2x.png')" /> <el-image :src="require('@/assets/register/xinzengguahao_jaintou@2x.png')"/>
</div> </div>
<!-- 3--单个的背景,,后面按状态位切换样式--> <!-- 3--单个的背景,,后面按状态位切换样式-->
<div <div
class="bkg-off" :class="[scheduleKey.checkSchedule === '2'? 'bkg-on' : 'bkg-off']"
> >
<!--3.开具处方单--> <!--3.生成病例报告-->
<div <div
class="content-inner" class="content-inner"
> >
<div <div
class="avatar" class="avatar"
> >
<el-image :src="require('@/assets/register/xinzengguahao_kaichuangfdan@2x.png')" /> <el-image :src="require('@/assets/register/xinzengguahao_shengchengbaogao@2x.png')"/>
</div> </div>
<div <div
class="title" class="title"
>3.开具处方单 >3.生成病例报告
</div>
<div
class="status-off"
>暂未开具
</div> </div>
<div class="status-on" v-if="scheduleKey.reportTime!=null">{{ scheduleKey.reportTime }}</div>
<div class="status-off" v-else>暂未生成</div>
</div> </div>
</div> </div>
<!-- 箭头指示--> <!-- 箭头指示-->
<div class="arrow"> <div class="arrow">
<el-image :src="require('@/assets/register/xinzengguahao_jaintou@2x.png')" /> <el-image :src="require('@/assets/register/xinzengguahao_jaintou@2x.png')"/>
</div> </div>
<!-- 4--单个的背景,,后面按状态位切换样式--> <!-- 4--单个的背景,,后面按状态位切换样式-->
<div <div
class="bkg-off" :class="[scheduleKey.checkSchedule === '3'? 'bkg-on' : 'bkg-off']"
> >
<!--4.生成病例报告--> <!--4.开具处方单-->
<div <div
class="content-inner" class="content-inner"
> >
<div <div
class="avatar" class="avatar"
> >
<el-image :src="require('@/assets/register/xinzengguahao_shengchengbaogao@2x.png')" /> <el-image :src="require('@/assets/register/xinzengguahao_kaichuangfdan@2x.png')"/>
</div> </div>
<div <div
class="title" class="title"
>4.生成病例报告 >4.开具处方单
</div> </div>
<div <div class="status-on" v-if="scheduleKey.recipelTime!=null">{{ scheduleKey.recipelTime }}</div>
class="status-off" <div class="status-off" v-else>暂未开具</div>
>暂未生成
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div>
</template> </template>
<script> <script>
export default { export default {
name: 'ScheduleInfo' name: 'ScheduleInfo',
props: {
scheduleKey: {
type: Object
},
data() {
return {}
}
}
} }
</script> </script>
...@@ -198,12 +199,14 @@ export default { ...@@ -198,12 +199,14 @@ export default {
font-weight: 400; font-weight: 400;
color: #AFAFAF; color: #AFAFAF;
} }
//头像 //头像
.avatar { .avatar {
width: 44px; width: 44px;
height: 44px; height: 44px;
margin-bottom: 14px; margin-bottom: 14px;
} }
//标题 //标题
.title { .title {
font-size: 14px; font-size: 14px;
...@@ -212,6 +215,7 @@ export default { ...@@ -212,6 +215,7 @@ export default {
color: #333333; color: #333333;
margin-bottom: 14px; margin-bottom: 14px;
} }
//预约/挂号 //预约/挂号
.content-inner { .content-inner {
display: flex; display: flex;
......
...@@ -69,8 +69,8 @@ module.exports = { ...@@ -69,8 +69,8 @@ module.exports = {
proxy: { proxy: {
// detail: https://cli.vuejs.org/config/#devserver-proxy // detail: https://cli.vuejs.org/config/#devserver-proxy
[process.env.VUE_APP_BASE_API]: { [process.env.VUE_APP_BASE_API]: {
// target: `http://localhost:8091`, target: `http://localhost:8091`,
target: `http://114.67.241.140:8091`, // target: `http://114.67.241.140:8091`,
changeOrigin: true, changeOrigin: true,
pathRewrite: { pathRewrite: {
['^' + process.env.VUE_APP_BASE_API]: '' ['^' + process.env.VUE_APP_BASE_API]: ''
......
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