Commit df28cc76 authored by 盖献康's avatar 盖献康

Merge remote-tracking branch 'origin/master'

parents 731833f2 bdc805cb
This diff is collapsed.
...@@ -3,12 +3,12 @@ ...@@ -3,12 +3,12 @@
<div class="pet-owner-detail"> <div class="pet-owner-detail">
<el-card class="box-card"> <el-card class="box-card">
<!-- 头部标题--> <!-- 头部标题-->
<div style="padding-top:20px;text-align: center;"> <div style="padding-top:32px;text-align: center;">
<span <span
class="top-title-style" class="top-title-style"
>详情</span> >详情</span>
</div> </div>
<div style="padding: 20px;"> <div style="padding: 32px 20px 20px 20px;">
<div style="display: flex"> <div style="display: flex">
<!-- 文章信息 --> <!-- 文章信息 -->
<div class="tip-green" /> <div class="tip-green" />
......
...@@ -3,12 +3,12 @@ ...@@ -3,12 +3,12 @@
<div class="pet-owner-detail"> <div class="pet-owner-detail">
<el-card class="box-card"> <el-card class="box-card">
<!-- 头部标题--> <!-- 头部标题-->
<div style="padding-top:20px;text-align: center;"> <div style="padding-top:32px;text-align: center;">
<span <span
class="top-title-style" class="top-title-style"
>编辑</span> >编辑</span>
</div> </div>
<div style="padding: 20px;"> <div style="padding: 32px 20px 20px 20px;">
<div style="display: flex"> <div style="display: flex">
<!-- 0-- 文章信息--标签头 --> <!-- 0-- 文章信息--标签头 -->
<div class="tip-green" /> <div class="tip-green" />
...@@ -154,6 +154,9 @@ export default { ...@@ -154,6 +154,9 @@ export default {
this.$confirm('系统将立即发布编辑内容,是否确定?', '提示', { this.$confirm('系统将立即发布编辑内容,是否确定?', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
customClass: 'box-logout',
cancelButtonClass: 'resetBtn',
confirmButtonClass: 'queryBtn',
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
updateArticle(this.form).then(response => { updateArticle(this.form).then(response => {
...@@ -288,7 +291,9 @@ export default { ...@@ -288,7 +291,9 @@ export default {
background-color: #F6FCF5 !important; background-color: #F6FCF5 !important;
} }
} }
::v-deep .el-card__body {
padding: unset !important;
}
//富文本宽设置 //富文本宽设置
::v-deep .el-form-item__content { ::v-deep .el-form-item__content {
width: 700px; width: 700px;
......
...@@ -3,12 +3,12 @@ ...@@ -3,12 +3,12 @@
<div class="pet-owner-detail"> <div class="pet-owner-detail">
<el-card class="box-card"> <el-card class="box-card">
<!-- 头部标题--> <!-- 头部标题-->
<div style="padding-top:20px;text-align: center;"> <div style="padding-top:32px;text-align: center;">
<span <span
class="top-title-style" class="top-title-style"
>新增</span> >新增</span>
</div> </div>
<div style="padding: 20px;"> <div style="padding: 32px 20px 20px 20px;">
<div style="display: flex"> <div style="display: flex">
<!-- 0-- 文章信息--标签头 --> <!-- 0-- 文章信息--标签头 -->
<div class="tip-green" /> <div class="tip-green" />
...@@ -256,6 +256,9 @@ export default { ...@@ -256,6 +256,9 @@ export default {
display: flex; display: flex;
text-align: left; text-align: left;
} }
::v-deep .el-card__body {
padding: unset !important;
}
//小标题样式 //小标题样式
.title-font-style { .title-font-style {
......
...@@ -137,7 +137,7 @@ ...@@ -137,7 +137,7 @@
</el-table-column> </el-table-column>
<el-table-column label="状态" min-width="60" prop="articleStatus" show-overflow-tooltip> <el-table-column label="状态" min-width="60" prop="articleStatus" show-overflow-tooltip>
<template slot-scope="scope"> <template slot-scope="scope">
<dict-tag :options="dict.type.article_status" :value="scope.row.articleStatus" /> <span :style="showStatus(scope.row.articleStatus) === '• 已上架' ? 'color: #67C23A' : 'color: #F56C6C'">{{ showStatus(scope.row.articleStatus) || '-' }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column class-name="small-padding fixed-width" label="操作" min-width="100"> <el-table-column class-name="small-padding fixed-width" label="操作" min-width="100">
...@@ -306,7 +306,7 @@ export default { ...@@ -306,7 +306,7 @@ export default {
// 查询参数 // 查询参数
queryParams: { queryParams: {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 20,
articleTitle: null, articleTitle: null,
articleCreateTime: null, articleCreateTime: null,
articleStatus: null, articleStatus: null,
...@@ -330,6 +330,16 @@ export default { ...@@ -330,6 +330,16 @@ export default {
this.getList() this.getList()
}, },
methods: { methods: {
// 上架状态 value 和label 的转换
showStatus(date) {
if (date === null) {
return null
} else if (date === '0') {
return '• 已上架'
} else if (date === '1') {
return '• 已下架'
}
},
cellClass(row) { cellClass(row) {
if (row.columnIndex === 0) { if (row.columnIndex === 0) {
return 'disabledCheck' return 'disabledCheck'
......
...@@ -370,7 +370,8 @@ export default { ...@@ -370,7 +370,8 @@ export default {
{ required: true, message: '请选择设备类型', trigger: 'change' } { required: true, message: '请选择设备类型', trigger: 'change' }
], ],
selectedOptions: [ selectedOptions: [
{ required: true, message: '请选择服务地点', trigger: 'blur' } { required: true, message: '请选择服务地点', trigger: 'blur' },
{ type: 'number', validator: this.validaddress, trigger: 'change' }
], ],
useNum: [ useNum: [
{ required: true, message: '请输入服务单位时段服务数', trigger: 'change,blur' }, { required: true, message: '请输入服务单位时段服务数', trigger: 'change,blur' },
...@@ -405,10 +406,12 @@ export default { ...@@ -405,10 +406,12 @@ export default {
{ min: 2, max: 200, message: '备注长度必须介于2~200之间', trigger: 'blur' } { min: 2, max: 200, message: '备注长度必须介于2~200之间', trigger: 'blur' }
], ],
serviceArea: [ serviceArea: [
{ required: true, message: '请选择支持服务地区', trigger: 'blur' } { required: true, message: '请选择支持服务地区', trigger: 'blur' },
{ type: 'number', validator: this.validserviceArea, trigger: 'change' }
], ],
checkType: [ checkType: [
{ required: true, message: '请选择支持检查类型', trigger: 'blur' } { required: true, message: '请选择支持检查类型', trigger: 'blur' },
{ type: 'number', validator: this.validcheckType, trigger: 'change' }
] ]
}, },
// 是否医院自有设备 // 是否医院自有设备
...@@ -574,6 +577,33 @@ export default { ...@@ -574,6 +577,33 @@ export default {
} }
console.log('中文', this.addForm) console.log('中文', this.addForm)
}, },
// 服务地点表单校验
validaddress(rule, value, callback) {
console.log('validaddress', this.form.selectedOptions)
if (this.form.selectedOptions.length > 0) {
callback()
} else {
callback(new Error('请选择服务地点'))
}
},
// 支持服务地区表单校验
validserviceArea(rule, value, callback) {
console.log('validaddress', this.form.serviceArea)
if (this.form.serviceArea.length > 0) {
callback()
} else {
callback(new Error('请选择支持检查项目'))
}
},
// 支持检查类型表单校验
validcheckType(rule, value, callback) {
console.log('validaddress', this.form.checkType)
if (this.form.checkType.length > 0) {
callback()
} else {
callback(new Error('请选择支持服务地区'))
}
},
// 四个时间的表单校验 // 四个时间的表单校验
validateMorningStart(rule, value, callback) { validateMorningStart(rule, value, callback) {
// // TODO: please clear this log // // TODO: please clear this log
......
...@@ -266,7 +266,7 @@ ...@@ -266,7 +266,7 @@
<el-col> <el-col>
<el-form-item label="支持服务地区"> <el-form-item label="支持服务地区">
<el-input <el-input
v-model.trim="form.serviceAreaList" v-model.trim="form.serviceAreaText"
type="textarea" type="textarea"
style="width:705%;;" style="width:705%;;"
:row="4" :row="4"
...@@ -278,11 +278,11 @@ ...@@ -278,11 +278,11 @@
<!-- 9--> <!-- 9-->
<el-row> <el-row>
<el-col> <el-col>
<el-form-item label="支持检查类型"> <el-form-item label="支持检查项目">
<el-input <el-input
v-model.trim="form.checkTypeList" v-model.trim="form.checkTypeText"
type="textarea" type="textarea"
style="width:705%;;" style="width:705%;"
:row="4" :row="4"
disabled disabled
/> />
...@@ -674,8 +674,8 @@ export default { ...@@ -674,8 +674,8 @@ export default {
deviceName: '', deviceName: '',
// appointmentMethod: '', // appointmentMethod: '',
serviceArea: '', serviceArea: '',
serviceAreaList: [], serviceAreaText: [],
checkTypeList: [], checkTypeText: [],
head: '', head: '',
phone: '', phone: '',
deviceType: '', deviceType: '',
...@@ -1058,8 +1058,8 @@ export default { ...@@ -1058,8 +1058,8 @@ export default {
// } // }
// if (this.form.serviceArea != null && this.form.serviceArea !== '') { // if (this.form.serviceArea != null && this.form.serviceArea !== '') {
console.log('this.form.serviceArea', this.form.serviceArea) console.log('this.form.serviceArea', this.form.serviceArea)
this.form.serviceAreaList = selectDictLabels(this.dict.type.service_area, this.form.serviceArea) this.form.serviceAreaText = selectDictLabels(this.dict.type.service_area, this.form.serviceArea)
console.log(' this.form.serviceAreaList', this.form.serviceAreaList) console.log(' this.form.serviceAreaText', this.form.serviceAreaText)
this.form.serviceArea = response.data.serviceArea.split(',') this.form.serviceArea = response.data.serviceArea.split(',')
// this.getDicts('service_area').then(response => { // this.getDicts('service_area').then(response => {
...@@ -1071,8 +1071,8 @@ export default { ...@@ -1071,8 +1071,8 @@ export default {
// }) // })
// } // }
if (this.form.checkType != null && this.form.checkType !== '') { if (this.form.checkType != null && this.form.checkType !== '') {
this.form.checkTypeList = selectDictLabels(this.dict.type.check_type, this.form.checkType) this.form.checkTypeText = selectDictLabels(this.dict.type.exam_type, this.form.checkType)
console.log(' this.form.checkTypeList', this.form.checkTypeList) console.log(' this.form.checkTypeText', this.form.checkTypeText)
this.form.checkType = response.data.checkType.split(',') this.form.checkType = response.data.checkType.split(',')
} }
......
...@@ -87,13 +87,13 @@ ...@@ -87,13 +87,13 @@
>新增设备 >新增设备
</el-button> </el-button>
<el-button <el-button
icon="el-icon-top-left" icon="el-icon-finished"
class="fourWordsBtn" class="fourWordsBtn"
@click="selectAll()" @click="selectAll()"
>选择全部 >选择全部
</el-button> </el-button>
<el-button <el-button
icon="el-icon-top-right" icon="el-icon-back"
class="fourWordsBtn" class="fourWordsBtn"
@click="reverseSelect(deviceList)" @click="reverseSelect(deviceList)"
>反向选择 >反向选择
...@@ -101,14 +101,14 @@ ...@@ -101,14 +101,14 @@
<el-button <el-button
v-hasPermi="['business:device:import']" v-hasPermi="['business:device:import']"
class="fourWordsBtn" class="fourWordsBtn"
icon="el-icon-bottom-left" icon="el-icon-download"
@click="handleImport" @click="handleImport"
>批量导入 >批量导入
</el-button> </el-button>
<el-button <el-button
v-hasPermi="['business:device:export']" v-hasPermi="['business:device:export']"
class="fourWordsBtn" class="fourWordsBtn"
icon="el-icon-top-right" icon="el-icon-upload2"
@click="handleExport" @click="handleExport"
>批量导出 >批量导出
</el-button> </el-button>
...@@ -126,7 +126,7 @@ ...@@ -126,7 +126,7 @@
</el-col> </el-col>
</el-row> </el-row>
<el-table ref="table" v-loading="loading" :data="deviceList" :header-cell-style="{ background:'#E8E9E8'}" border :row-key="getRowKeys" @selection-change="handleSelectionChange"> <el-table ref="table" v-loading="loading" :data="deviceList" :header-cell-style="{ background:'#E8E9E8'}" :row-key="getRowKeys" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="47" align="center" :reserve-selection="true" /> <el-table-column type="selection" width="47" align="center" :reserve-selection="true" />
<el-table-column type="index" label="序号" width="50" /> <el-table-column type="index" label="序号" width="50" />
<el-table-column label="设备名称" align="left" prop="deviceName" show-overflow-tooltip /> <el-table-column label="设备名称" align="left" prop="deviceName" show-overflow-tooltip />
......
<template> <template>
<div> <div>
<div style="background-color: #fff;height: 100%;margin-top: 20px;"> <div style="background-color: #fff;height: 100%;margin-top: 20px;">
<div style=" text-align: center;padding-top: 30px;height: 100px;"> <div style=" text-align: center;padding-top: 35px;height: 100px;">
<span style="font-size: 24px;font-weight: bold; color: #333333;line-height: 20px;">详情</span> <span style="font-size: 24px;font-weight: bold; color: #333333;line-height: 20px;">详情</span>
</div> </div>
<div style="display: flex; padding-left: 20px;padding-top: 10px;padding-bottom: 10px;"> <div style="display: flex; padding-left: 20px;padding-bottom: 10px;">
<div class="tip1" /> <div class="tip1" />
<div style="padding-top: 3px;padding-left: 18px;color: #666666; font-weight: 500; font-size: 16px;">设备信息</div> <div style="padding-top: 3px;padding-left: 18px;color: #666666; font-weight: 500; font-size: 16px;">设备信息</div>
</div> </div>
......
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-date-picker <el-date-picker
v-model="daterangeCreateTime" v-model="queryParams.reportTime"
type="date" type="date"
style="width: 240px" style="width: 240px"
placeholder="选择检查日期" placeholder="选择检查日期"
...@@ -245,8 +245,8 @@ export default { ...@@ -245,8 +245,8 @@ export default {
queryParams: { queryParams: {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 10,
isAsc: '', isAsc: 'desc',
orderByColumn: '', orderByColumn: 'c.report_time',
searchText: '', searchText: '',
insureList: '', insureList: '',
checkItemsIdList: '', checkItemsIdList: '',
...@@ -297,8 +297,8 @@ export default { ...@@ -297,8 +297,8 @@ export default {
this.queryParams = { this.queryParams = {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 10,
isAsc: '', isAsc: 'desc',
orderByColumn: '', orderByColumn: 'c.report_time',
searchText: '', searchText: '',
insureList: '', insureList: '',
checkItemsIdList: '', checkItemsIdList: '',
...@@ -328,10 +328,10 @@ export default { ...@@ -328,10 +328,10 @@ export default {
}, },
// 获取列表数据 // 获取列表数据
getUseList() { getUseList() {
if (this.daterangeCreateTime !== '') { // if (this.daterangeCreateTime !== '') {
this.queryParams.beginCheckTime = this.daterangeCreateTime + ' 00:00:00' // this.queryParams.beginCheckTime = this.daterangeCreateTime + ' 00:00:00'
this.queryParams.endCheckTime = this.daterangeCreateTime + ' 23:59:59' // this.queryParams.endCheckTime = this.daterangeCreateTime + ' 23:59:59'
} // }
listUseManagement(this.queryParams).then(res => { listUseManagement(this.queryParams).then(res => {
this.total = res.total this.total = res.total
this.userList = res.rows this.userList = res.rows
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item prop="hospitalName"> <el-form-item v-if="!checkRole(['pt-admin'])" prop="hospitalName">
<el-select v-model="queryParams.hospitalName" clearable placeholder="所属医院"> <el-select v-model="queryParams.hospitalName" clearable placeholder="所属医院">
<el-option <el-option
v-for="item in HospitalList" v-for="item in HospitalList"
...@@ -216,6 +216,8 @@ ...@@ -216,6 +216,8 @@
<script> <script>
import { listRecord } from '@/api/business/record' import { listRecord } from '@/api/business/record'
import { getDepartment, getDoctorment, getHospital } from '@/api/business/register' import { getDepartment, getDoctorment, getHospital } from '@/api/business/register'
import { checkRole } from '@/utils/permission'
import { getInfo } from '@/api/login'
export default { export default {
name: 'MedicalRecordManagement', name: 'MedicalRecordManagement',
...@@ -299,16 +301,20 @@ export default { ...@@ -299,16 +301,20 @@ export default {
// 表单参数 // 表单参数
form: {}, form: {},
// 表单校验 // 表单校验
rules: {} rules: {},
user: {}
} }
}, },
created() { async created() {
const { user } = await getInfo()
this.user = user
this.getList() this.getList()
this.getDoctorList() this.getDoctorList()
this.getDeptList() this.getDeptList()
this.getHospitalList() this.getHospitalList()
}, },
methods: { methods: {
checkRole,
/** 查询科室下拉*/ /** 查询科室下拉*/
getDeptList() { getDeptList() {
getDepartment().then(res => { getDepartment().then(res => {
...@@ -324,8 +330,9 @@ export default { ...@@ -324,8 +330,9 @@ export default {
}, },
/** 查询医生名字下拉*/ /** 查询医生名字下拉*/
getHospitalList() { getHospitalList() {
getHospital().then(res => { getHospital().then(({ data }) => {
this.HospitalList = res.data data = data.filter(({ deptId: hospitalDept }) => hospitalDept === this.user.deptId)
this.HospitalList = data
console.log('这是我要的医院下拉框:', this.HospitalList) console.log('这是我要的医院下拉框:', this.HospitalList)
}) })
}, },
......
...@@ -289,7 +289,8 @@ export default { ...@@ -289,7 +289,8 @@ export default {
payStatus: '0', payStatus: '0',
// 给传个null // 给传个null
petPicture: null, petPicture: null,
// 医院地址
hosAddress: this.singleDoctor.hosAddress,
doctorSignatureUrl: this.singleDoctor.doctorSignatureUrl, doctorSignatureUrl: this.singleDoctor.doctorSignatureUrl,
visitLocation: this.singleDoctor.visitLocation, visitLocation: this.singleDoctor.visitLocation,
doctorTitleLabel: this.singleDoctor.doctorTitleValue doctorTitleLabel: this.singleDoctor.doctorTitleValue
......
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