Commit 12a3f157 authored by 高滢's avatar 高滢

Merge remote-tracking branch 'origin/master'

parents 0790d7ce 4dbba44e
import request from '@/utils/request'
import { param } from '@/utils'
// 查询挂号列表
export function listRegister(query) {
......
......@@ -60,21 +60,30 @@ export default {
this.$modal.msgError('内容不能为空')
return
}
if (this.isAdd) {
// 新增
addManagement(this.privacyPolicy).then(response => {
if (response.code === 200) {
this.$modal.msgSuccess('编辑成功')
}
})
} else {
// 修改
updateManagement(this.privacyPolicy).then(response => {
if (response.code === 200) {
this.$modal.msgSuccess('编辑成功')
}
})
}
this.$confirm('系统将立即发布编辑内容,是否确定?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
customClass: 'box-logout',
cancelButtonClass: 'resetBtn',
confirmButtonClass: 'queryBtn',
type: 'warning'
}).then(() => {
if (this.isAdd) {
// 新增
addManagement(this.privacyPolicy).then(response => {
if (response.code === 200) {
this.$modal.msgSuccess('编辑成功')
}
})
} else {
// 修改
updateManagement(this.privacyPolicy).then(response => {
if (response.code === 200) {
this.$modal.msgSuccess('编辑成功')
}
})
}
})
},
getPrivacyPolicy() {
listManagement({ type: '2' }).then(res => {
......
......@@ -39,7 +39,7 @@
<span class="title-text">授权合同</span>
</div>
<!-- 授权合同表 -->
<el-table v-loading="loading" :data="authorizationHistory" style="width: 90%;margin: 0 0 0 60px;">
<el-table v-loading="loading" :data="authorizationHistory" style="width: 90%;margin: 0 0 0 60px;overflow: auto;">
<el-table-column prop="createTime" label="授权日期">
<template slot-scope="scope">
<span>{{ parseTime(scope.row.createTime, '{y}/{m}/{d}') }}</span>
......@@ -161,6 +161,7 @@ export default {
},
downloadPdf(row) {
this.$download.resource(row.contract)
this.$modal.msgSuccess('正在下载中,请稍等…')
},
/** 通过授权历史获取到期日期 */
addDays(date, str) {
......
......@@ -60,21 +60,30 @@ export default {
this.$modal.msgError('内容不能为空')
return
}
if (this.isAdd) {
// 新增
addManagement(this.privacyPolicy).then(response => {
if (response.code === 200) {
this.$modal.msgSuccess('编辑成功')
}
})
} else {
// 修改
updateManagement(this.privacyPolicy).then(response => {
if (response.code === 200) {
this.$modal.msgSuccess('编辑成功')
}
})
}
this.$confirm('系统将立即发布编辑内容,是否确定?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
customClass: 'box-logout',
cancelButtonClass: 'resetBtn',
confirmButtonClass: 'queryBtn',
type: 'warning'
}).then(() => {
if (this.isAdd) {
// 新增
addManagement(this.privacyPolicy).then(response => {
if (response.code === 200) {
this.$modal.msgSuccess('编辑成功')
}
})
} else {
// 修改
updateManagement(this.privacyPolicy).then(response => {
if (response.code === 200) {
this.$modal.msgSuccess('编辑成功')
}
})
}
})
},
getPrivacyPolicy() {
listManagement({ type: '0' }).then(res => {
......
......@@ -60,21 +60,30 @@ export default {
this.$modal.msgError('内容不能为空')
return
}
if (this.isAdd) {
// 新增
addManagement(this.privacyPolicy).then(response => {
if (response.code === 200) {
this.$modal.msgSuccess('编辑成功')
}
})
} else {
// 修改
updateManagement(this.privacyPolicy).then(response => {
if (response.code === 200) {
this.$modal.msgSuccess('编辑成功')
}
})
}
this.$confirm('系统将立即发布编辑内容,是否确定?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
customClass: 'box-logout',
cancelButtonClass: 'resetBtn',
confirmButtonClass: 'queryBtn',
type: 'warning'
}).then(() => {
if (this.isAdd) {
// 新增
addManagement(this.privacyPolicy).then(response => {
if (response.code === 200) {
this.$modal.msgSuccess('编辑成功')
}
})
} else {
// 修改
updateManagement(this.privacyPolicy).then(response => {
if (response.code === 200) {
this.$modal.msgSuccess('编辑成功')
}
})
}
})
},
getPrivacyPolicy() {
listManagement({ type: '1' }).then(res => {
......
......@@ -307,9 +307,9 @@ export default {
console.log('点击立即预约', row)
this.getDevice()
},
/** */
/** 获取设备列表 */
getDevice() {
listReservationDevice().then(res => {
listReservationDevice({ reservationTime: '2023-06-15' }).then(res => {
console.log('设备', res)
})
},
......
<template>
<!-- 医生卡片信息封装组件-->
<div class="doctor-card">
<!--标签-->
<div class="progress-tip">
<div class="tip-green"/>
<div
class="tip-content"
>挂号信息
<div>
<!-- 医生卡片信息封装组件-->
<!--做单个卡片校验-->
<div v-if="docList.length>0" class="doctor-card">
<!--标签-->
<div class="progress-tip">
<div class="tip-green"/>
<div
class="tip-content"
>挂号信息
</div>
</div>
</div>
<!--进度内容-->
<div class="card-style">
<!--获取的当日医生数量作为循环-->
<el-card
v-for="(item,index) in docList"
:key="index"
class="boxside-card"
>
<div class="boxside-content">
<!--卡片上半部分-->
<div class="top">
<!--上--左半部分-->
<div class="top-left">
<el-image
:src="baseURL+item.doctorUrl"
class="img"
fit="cover"
/>
</div>
<!--上--右半部分-->
<div class="top-right">
<div
class="name"
>{{ item.doctorName }}
<!--进度内容-->
<div class="card-style">
<!--获取的当日医生数量作为循环-->
<el-card
v-for="(item,index) in docList"
:key="index"
class="boxside-card"
>
<div class="boxside-content">
<!--卡片上半部分-->
<div class="top">
<!--上--左半部分-->
<div class="top-left">
<el-image
:src="baseURL+item.doctorUrl"
class="img"
fit="cover"
/>
</div>
<div class="content">
<!--上--右半部分-->
<div class="top-right">
<div
class="career"
>{{ item.doctorTitleValue }}
class="name"
>{{ item.doctorName }}
</div>
<div
class="divider-inner"
>|
</div>
<div
class="department"
> {{ item.departmentName }}
<div class="content">
<div
class="career"
>{{ item.doctorTitleValue }}
</div>
<div
class="divider-inner"
>|
</div>
<div
class="department"
> {{ item.departmentName }}
</div>
</div>
</div>
</div>
</div>
<!--分割线-->
<div class="divider"/>
<!--卡片中间部分-->
<div class="mid-bottom-framework">
<div
v-for="(item,index) in docList"
:key="index"
class="mid-bottom"
>
<el-image
:src="baseURL+item.pictureUrl"
class="mid-bottom-inner"
fit="cover"
/>
</div>
</div>
<!--卡片下半部分-->
<div class="bottom">
<div class="inner">
<div
class="register-tip"
>当日已接挂号
</div>
<!--分割线-->
<div class="divider"/>
<!--卡片中间部分-->
<div class="mid-bottom-framework">
<div
class="register-content"
>{{ item.recordAllNum }}
v-for="(item,index) in docList"
:key="index"
class="mid-bottom"
>
<el-image
:src="baseURL+item.pictureUrl"
class="mid-bottom-inner"
fit="cover"
/>
</div>
</div>
<div class="inner">
<div
class="time-tip"
>当日时段已接
</div>
<div
class="time-content"
>{{ item.recordTimeNum }}
<!--卡片下半部分-->
<div class="bottom">
<div class="inner">
<div
class="register-tip"
>当日已接挂号
</div>
<div
class="register-content"
>{{ item.recordAllNum }}
</div>
</div>
<div class="inner">
<div
class="time-tip"
>当日时段已接
</div>
<div
class="time-content"
>{{ item.recordTimeNum }}
</div>
</div>
<div class="inner">
<div
class="remain-tip"
>时段剩余号量
</div>
<div
class="remain-content"
>{{ item.residueNum }}
<div class="inner">
<div
class="remain-tip"
>时段剩余号量
</div>
<div
class="remain-content"
>{{ item.residueNum }}
</div>
</div>
</div>
</div>
</div>
<!--底部菜单-->
<div class="box-content-bottom">
<div
class="content-bottom"
>
<div class="detail" @click="doctorDetail(item.id)">
<div class="detail-img">
<el-image :src="require('@/assets/register/xinzengguahao_xiangqing@2x.png')"/>
<!--底部菜单-->
<div class="box-content-bottom">
<div
class="content-bottom"
>
<div class="detail" @click="doctorDetail(item.id)">
<div class="detail-img">
<el-image :src="require('@/assets/register/xinzengguahao_xiangqing@2x.png')"/>
</div>
<el-button
type="text"
>详情
</el-button>
</div>
<el-button
type="text"
>详情
</el-button>
</div>
<!--给它传一个userId,一个类型和一个默认页数-->
<div class="register" @click="registration(item.userId,'0',item)">
<div class="register-img">
<el-image :src="require('@/assets/register/xinzengguahao_guahaohui@2x.png')"/>
<!--给它传一个userId,一个类型和一个默认页数-->
<div class="register" @click="registration(item.userId,'0',item)">
<div class="register-img">
<el-image :src="require('@/assets/register/xinzengguahao_guahaohui@2x.png')"/>
</div>
<el-button type="text">挂号</el-button>
</div>
<el-button type="text">挂号</el-button>
</div>
<!--给它传一个userId,一个类型和一个默认页数-->
<div class="add" @click="registration(item.userId, '1',item)">
<div class="add-img">
<el-image :src="require('@/assets/register/xinzengguahao_jiahao@2x.png')"/>
<!--给它传一个userId,一个类型和一个默认页数-->
<div class="add" @click="registration(item.userId, '1',item)">
<div class="add-img">
<el-image :src="require('@/assets/register/xinzengguahao_jiahao@2x.png')"/>
</div>
<el-button type="text">加号</el-button>
</div>
<el-button type="text">加号</el-button>
</div>
</div>
</div>
</el-card>
</el-card>
</div>
</div>
<div v-else>-</div>
</div>
</template>
......
......@@ -9,11 +9,11 @@
>
<el-form ref="queryForm" :inline="true" :model="queryParams" label-width="100px" size="small">
<el-form-item label="主治兽医:" prop="petNickname">
<el-input />
<el-input v-model="queryParams.mainDoctor" />
</el-form-item>
<el-form-item label="是否首诊:" prop="petSex">
<el-select
v-model="queryParams.sterilizationStatus"
v-model="queryParams.fristVisit"
clearable
placeholder="请选择首诊情况"
style="width: 100%"
......@@ -55,7 +55,7 @@
icon="el-icon-document"
plain
size="mini"
style="width: 50px; 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"
@click="addReservation(scope.row)"
>立即预约
......@@ -77,7 +77,7 @@
</template>
<script>
import { addRegister, timeRegister } from '@/api/business/register'
import { timeRegister } from '@/api/business/register'
export default {
name: 'RegisterModle',
......@@ -112,7 +112,11 @@ export default {
// 宠物表格数据
petsList: [],
loading: true,
queryParams: {},
queryParams: {
mainDoctor: '',
firstVisit: '0'
},
fristVisitOptions: [
{
label: '是',
......@@ -146,19 +150,68 @@ export default {
},
// 新增预约接口
addReservation(data) {
console.log('gggggg', data, this.doctorForm, this.singleDoctor)
// data指这一行的信息,this.doctorForm指的是挂号页宠主宠物信息,this.singleDoctor指的是当日挂号医生列表信息
console.log('这是弹窗本身的行信息:', data)
console.log('这是宠物宠主本身的信息:', this.doctorForm)
console.log('这是当日挂号列表信息 :', this.singleDoctor)
data.visitWay = '0'
data.visitFirstTime = ''
data.payStatus = '0'
data.petPicture = ''
// 进度
data.checkSchedule = '0'
data.payAmount = ''
data.payType = '0'
const temp = {
petOwnersName: data.petOwnersName
type: this.registrationType,
// 宠物宠主本身的信息
petsId: this.doctorForm.petsId,
petOwnersId: this.doctorForm.ownersId,
petOwnersName: this.doctorForm.nickName,
petOwnersPhone: this.doctorForm.phoneNumber,
petNickname: this.doctorForm.petNickname,
petBreed: this.doctorForm.petBreed,
petSex: this.doctorForm.petSex,
petAge: this.doctorForm.petBrithday,
petWeight: this.doctorForm.petWeight,
petColor: this.doctorForm.petColor,
sterilizationStatus: this.doctorForm.sterilizationStatus,
vaccineSituation: this.doctorForm.vaccineSituation,
insure: this.doctorForm.insure,
// 进度
checkSchedule: data.checkSchedule,
payAmount: data.payAmount,
payType: data.payType,
visitDateTime: this.doctorForm.visitDateTime,
// 这是当日挂号列表信息
doctorId: this.singleDoctor.doctorCode,
userId: this.singleDoctor.userId,
doctorName: this.singleDoctor.doctorName,
hospitalId: this.singleDoctor.deptId,
hospitalName: this.singleDoctor.deptName,
hospitalDepartmentId: this.singleDoctor.departmentId,
hospitalDepartmentName: this.singleDoctor.departmentName,
doctorPhone: this.singleDoctor.doctorPhone,
// 给传0
visitWay: data.visitWay,
// 下拉传值
firstVisit: this.queryParams.firstVisit,
visitDate: data.workDate,
visitTime: data.hours,
scheduleId: data.scheduleId,
// 拼接 (日期+时间段的第一个时间)
visitFirstTime: data.visitFirstTime,
// 默认是0代缴费
payStatus: data.payStatus,
// 给传个null
petPicture: data.petPicture,
doctorSignatureUrl: this.singleDoctor.doctorSignatureUrl,
visitLocation: this.singleDoctor.visitLocation,
doctorTitleLabel: this.singleDoctor.doctorTitleValue
}
console.log('KKKKKKKKKKKKKKK', temp)
// 将整个界面对象传新增挂号接口
// addRegister(temp).then(response => {
// this.$message({
// type: 'success',
// message: '预约成功!'
// })
// this.$emit('registerModleClose', false)
// })
console.log('终极大表', temp)
},
submit() {
},
......
......@@ -157,7 +157,7 @@
style="width: 70px; border-radius: 6px 6px 6px 6px;border: 1px solid rgb(255,157,78);"
type="warning"
@click="handleDetail(scope.row, 'enter')"
>录入诊断
>
</el-button>
</template>
</el-table-column>
......
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