签约
This commit is contained in:
parent
46dc2b1bde
commit
74f7a22a01
44
src/api/manage/signRecord.js
Normal file
44
src/api/manage/signRecord.js
Normal file
@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询签约记录列表
|
||||
export function listSignRecord(query) {
|
||||
return request({
|
||||
url: '/manage/signRecord/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询签约记录详细
|
||||
export function getSignRecord(id) {
|
||||
return request({
|
||||
url: '/manage/signRecord/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增签约记录
|
||||
export function addSignRecord(data) {
|
||||
return request({
|
||||
url: '/manage/signRecord',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改签约记录
|
||||
export function updateSignRecord(data) {
|
||||
return request({
|
||||
url: '/manage/signRecord',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除签约记录
|
||||
export function delSignRecord(id) {
|
||||
return request({
|
||||
url: '/manage/signRecord/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
18
src/api/manage/signingRecords.js
Normal file
18
src/api/manage/signingRecords.js
Normal file
@ -0,0 +1,18 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
|
||||
// 根据患者主键查询签约记录
|
||||
export function getByPatient(patientId) {
|
||||
return request({
|
||||
url: `/manage/signRecord/getByPatient/${patientId}`,
|
||||
method: 'get',
|
||||
})
|
||||
}
|
||||
|
||||
// 根据签约记录表主键查询签约详情
|
||||
export function getByRecordId(patientSignRecordId) {
|
||||
return request({
|
||||
url: `/manage/signRecord/getByRecordId/${patientSignRecordId}`,
|
||||
method: 'get',
|
||||
})
|
||||
}
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 4.4 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 4.1 KiB After Width: | Height: | Size: 19 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 5.3 KiB After Width: | Height: | Size: 15 KiB |
@ -48,16 +48,6 @@ export default {
|
||||
name: "healthEducation",
|
||||
data() {
|
||||
return {
|
||||
pickerOptions: {
|
||||
disabledDate(time) {
|
||||
return time.getTime() > Date.now(); //禁止选择今天以后的时间
|
||||
},
|
||||
},
|
||||
//选择时间区间
|
||||
datePickerStart: "",
|
||||
datePickerEnd: "",
|
||||
//右侧标题选中
|
||||
recordindex: 0,
|
||||
//左侧类型选中
|
||||
categoryindex: 0,
|
||||
//左侧选中的item
|
||||
|
||||
@ -20,16 +20,6 @@ export default {
|
||||
name: "indicatorMonitoring",
|
||||
data() {
|
||||
return {
|
||||
pickerOptions: {
|
||||
disabledDate(time) {
|
||||
return time.getTime() > Date.now(); //禁止选择今天以后的时间
|
||||
},
|
||||
},
|
||||
//选择时间区间
|
||||
datePickerStart: "",
|
||||
datePickerEnd: "",
|
||||
//右侧标题选中
|
||||
recordindex: 0,
|
||||
//左侧类型选中
|
||||
categoryindex: 0,
|
||||
//左侧选中的item
|
||||
|
||||
@ -3,13 +3,9 @@
|
||||
<div class="leftheader">
|
||||
<div class="item" v-for="(item, index) in categorylist" :key="item.id" @click="clickcategory(item, index)"
|
||||
:class="index == categoryindex ? 'selectitem' : ''">
|
||||
<div class="time">{{ item.time }}
|
||||
<div class="time">{{ item.signTime }}
|
||||
</div>
|
||||
<div class="name">
|
||||
{{ item.name }}
|
||||
</div>
|
||||
<div class="text">
|
||||
{{ item.text }}
|
||||
<div class="name"> {{ item.packageName }}
|
||||
</div>
|
||||
<el-tag class="type" size="mini">服务中</el-tag>
|
||||
<!-- <el-tag class="type" size="mini" type="success">门诊</el-tag> -->
|
||||
@ -18,66 +14,91 @@
|
||||
<div class="rightheader">
|
||||
<div class="richtext">
|
||||
<el-descriptions title="基本信息" style="margin-top: 20px;">
|
||||
<el-descriptions-item label="医院">kooriookami</el-descriptions-item>
|
||||
<el-descriptions-item label="科室">18100000000</el-descriptions-item>
|
||||
<el-descriptions-item label="签约时诊断">苏州市</el-descriptions-item>
|
||||
<el-descriptions-item label="院区">苏州市</el-descriptions-item>
|
||||
<el-descriptions-item label="病区">苏州市</el-descriptions-item>
|
||||
<el-descriptions-item label="审核后诊断">苏州市</el-descriptions-item>
|
||||
<el-descriptions-item label="医院">{{ ByRecord.hospitalAgencyName }}</el-descriptions-item>
|
||||
<el-descriptions-item label="科室">{{ ByRecord.departmentName }}</el-descriptions-item>
|
||||
<el-descriptions-item label="签约时诊断">{{ ByRecord.signDiagnosis }}</el-descriptions-item>
|
||||
<el-descriptions-item label="院区">{{ ByRecord.campusAgencyName }}</el-descriptions-item>
|
||||
<el-descriptions-item label="病区">{{ ByRecord.wardName }}</el-descriptions-item>
|
||||
<el-descriptions-item label="审核后诊断">{{ ByRecord.reviewDiagnosis }}</el-descriptions-item>
|
||||
</el-descriptions>
|
||||
<el-descriptions title="签约信息" style="margin-top: 40px;">
|
||||
<el-descriptions-item label="服务包">kooriookami</el-descriptions-item>
|
||||
<el-descriptions-item label="服务包缴费状态">18100000000</el-descriptions-item>
|
||||
<el-descriptions-item label="到期时间">苏州市</el-descriptions-item>
|
||||
<el-descriptions-item label="服务包价格">¥1188</el-descriptions-item>
|
||||
<el-descriptions-item label="服务时间">2024-02-19 00:00:00至2024-03-1823:59:59</el-descriptions-item>
|
||||
<el-descriptions-item label="服务周期">苏州市 1188 号</el-descriptions-item>
|
||||
<el-descriptions-item label="签约时间">2024-02-19 15:43:40</el-descriptions-item>
|
||||
<el-descriptions-item label="服务包">{{ ByRecord.packageName }}</el-descriptions-item>
|
||||
<el-descriptions-item label="服务包缴费状态">{{
|
||||
ByRecord.packagePaymentStatus == 'PAID' ? '已缴费' : ByRecord.packagePaymentStatus == 'UNPAID_FEES' ?
|
||||
'未缴费' : ''
|
||||
}}</el-descriptions-item>
|
||||
<el-descriptions-item label="到期时间">{{ ByRecord.serviceEndTime }}</el-descriptions-item>
|
||||
<el-descriptions-item label="服务包价格">{{ ByRecord.packagePrice }}</el-descriptions-item>
|
||||
<el-descriptions-item label="服务时间">{{ ByRecord.serviceStartTime }}</el-descriptions-item>
|
||||
<el-descriptions-item label="服务周期">{{ ByRecord.serviceCycle }}月</el-descriptions-item>
|
||||
<el-descriptions-item label="签约时间">{{ ByRecord.signTime }}</el-descriptions-item>
|
||||
</el-descriptions>
|
||||
<el-descriptions title="硬件信息" style="margin-top: 20px;" class="descriptions">
|
||||
<el-descriptions-item>
|
||||
<el-table :data="ByRecord.signDevices" style="width: 100%">
|
||||
<el-table-column label="序号" type="index" width="55" align="center" />
|
||||
<el-table-column prop="hardwareType" label="硬件类型" width="180" align="center">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.hardwareType == 'BLOOD_PRESSURE' ? '血压仪' : '' }}
|
||||
{{ scope.row.hardwareType == 'GLUCOSE_METER' ? '血糖仪' : '' }}
|
||||
{{ scope.row.hardwareType == 'ELECTROCARDIOGRA' ? '心电仪' : '' }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="snCode" label="SN码" width="180" align="center" />
|
||||
<el-table-column prop="hardwarePrice" label="硬件金额(元)" align="center" />
|
||||
<el-table-column prop="hardwareStatus" label="硬件状态" align="center" />
|
||||
</el-table>
|
||||
</el-descriptions-item>
|
||||
</el-descriptions>
|
||||
<el-descriptions title="其他材料" style="margin-top: 20px;" class="descriptions">
|
||||
<el-descriptions-item>
|
||||
|
||||
</el-descriptions-item>
|
||||
</el-descriptions>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import {
|
||||
getByPatient,
|
||||
getByRecordId
|
||||
} from '@/api/manage/signingRecords'
|
||||
export default {
|
||||
name: "signingRecords",
|
||||
data() {
|
||||
return {
|
||||
pickerOptions: {
|
||||
disabledDate(time) {
|
||||
return time.getTime() > Date.now(); //禁止选择今天以后的时间
|
||||
},
|
||||
},
|
||||
//选择时间区间
|
||||
datePickerStart: "",
|
||||
datePickerEnd: "",
|
||||
//右侧标题选中
|
||||
recordindex: 0,
|
||||
//左侧类型选中
|
||||
categoryindex: 0,
|
||||
//左侧选中的item
|
||||
categoryItem: {},
|
||||
//左侧list
|
||||
categorylist: [{
|
||||
id: 1,
|
||||
name: '冠状动脉粥样硬化性心脏病',
|
||||
text: '冠状动脉粥样硬化性心脏病',
|
||||
time: '2022-02-02 10:33:00'
|
||||
}, {
|
||||
id: 2,
|
||||
name: '冠状动脉粥样硬化性心脏病',
|
||||
text: '冠状动脉粥样硬化性心脏病',
|
||||
time: '2022-02-02 10:33:00'
|
||||
}]
|
||||
categorylist: [],
|
||||
ByRecord: { signDevices: [], },
|
||||
};
|
||||
},
|
||||
created() {
|
||||
this.categoryItem = this.categorylist[0]
|
||||
this.info();
|
||||
},
|
||||
methods: {
|
||||
info() {
|
||||
getByPatient(this.$route.query.patientId).then(res => {
|
||||
if (res.data.length > 0) {
|
||||
this.categorylist = res.data
|
||||
this.categoryItem = this.categorylist[0]
|
||||
this.getByRecordIdinfo();
|
||||
}
|
||||
})
|
||||
},
|
||||
getByRecordIdinfo() {
|
||||
getByRecordId(this.categoryItem.id).then(res => {
|
||||
this.ByRecord = res.data
|
||||
})
|
||||
},
|
||||
clickcategory(item, index) {
|
||||
this.categoryindex = index
|
||||
this.categoryItem = item
|
||||
this.getByRecordIdinfo();
|
||||
}
|
||||
}
|
||||
};
|
||||
@ -88,6 +109,12 @@ export default {
|
||||
padding: 0 !important;
|
||||
display: flex;
|
||||
|
||||
.descriptions {
|
||||
::v-deep .el-descriptions-item__label.has-colon::after {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.rightheader {
|
||||
width: 75%;
|
||||
padding-top: 20px;
|
||||
@ -97,6 +124,9 @@ export default {
|
||||
width: 90%;
|
||||
margin: 0 auto;
|
||||
height: 450px;
|
||||
overflow: scroll;
|
||||
// 隐藏表头的滚动条
|
||||
overflow-x: hidden !important;
|
||||
}
|
||||
}
|
||||
|
||||
@ -115,7 +145,7 @@ export default {
|
||||
}
|
||||
|
||||
.item {
|
||||
height: 120px;
|
||||
height: 100px;
|
||||
padding: 25px 10px;
|
||||
position: relative;
|
||||
border-left: 2px solid #fff;
|
||||
@ -128,13 +158,6 @@ export default {
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.text {
|
||||
height: 20px;
|
||||
line-height: 20px;
|
||||
font-size: 12px;
|
||||
color: #999999;
|
||||
}
|
||||
|
||||
.name {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
|
||||
@ -14,19 +14,21 @@
|
||||
{{ $route.query.age }}
|
||||
</div>
|
||||
<div class="source">
|
||||
<div class="item" v-if="$route.query.patientSource == 'WE_CHAT_OFFICIAL_ACCOUNT'">
|
||||
<img src="../../../assets/manage/gzh.png" alt="">
|
||||
<div class="item" style="color:#00E06E;border-color:#00E06E"
|
||||
v-if="$route.query.patientSource == 'WE_CHAT_OFFICIAL_ACCOUNT'">
|
||||
<img src="../../../assets/manage/gzh.png" alt="" style="width:24px">
|
||||
<div>
|
||||
公众号
|
||||
</div>
|
||||
</div>
|
||||
<div class="item" v-if="$route.query.patientSource == 'WE_CHAT_APPLET'">
|
||||
<div class="item" style="color:#339DE5;border-color:#339DE5"
|
||||
v-if="$route.query.patientSource == 'WE_CHAT_APPLET'">
|
||||
<img src="../../../assets/manage/xcx.png" alt="">
|
||||
<div>
|
||||
小程序
|
||||
</div>
|
||||
</div>
|
||||
<div class="item" v-if="$route.query.patientSource == 'MANAGE_END'">
|
||||
<div class="item" style="color:#F4881F;border-color:#F4881F" v-if="$route.query.patientSource == 'MANAGE_END'">
|
||||
<img src="../../../assets/manage/gld.png" alt="">
|
||||
<div>
|
||||
管理端
|
||||
@ -150,7 +152,6 @@ export default {
|
||||
display: flex;
|
||||
|
||||
.item {
|
||||
color: #787878;
|
||||
line-height: 30px;
|
||||
font-size: 14px;
|
||||
margin-left: 20px;
|
||||
@ -161,7 +162,6 @@ export default {
|
||||
height: 30px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
background-color: #F5F5F5;
|
||||
|
||||
img {
|
||||
margin-right: 10px;
|
||||
|
||||
66
src/views/manage/newSigning/index.vue
Normal file
66
src/views/manage/newSigning/index.vue
Normal file
@ -0,0 +1,66 @@
|
||||
<template>
|
||||
<div class="app-container">
|
||||
<div class="header">
|
||||
<el-descriptions title="签约详情" class="descriptions">
|
||||
</el-descriptions>
|
||||
<el-descriptions title="患者信息" style="padding:0 30px">
|
||||
<el-descriptions-item label="患者姓名">kooriookami</el-descriptions-item>
|
||||
<el-descriptions-item label="性别">kooriookami</el-descriptions-item>
|
||||
<el-descriptions-item label="年龄">kooriookami</el-descriptions-item>
|
||||
<el-descriptions-item label="电话">kooriookami</el-descriptions-item>
|
||||
<el-descriptions-item label="就诊方式">kooriookami</el-descriptions-item>
|
||||
<el-descriptions-item label="诊断">kooriookami</el-descriptions-item>
|
||||
<el-descriptions-item label="住院/门诊号">kooriookami</el-descriptions-item>
|
||||
<el-descriptions-item label="医院">kooriookami</el-descriptions-item>
|
||||
<el-descriptions-item label="科室">kooriookami</el-descriptions-item>
|
||||
<el-descriptions-item label="服务包缴费状态">18100000000</el-descriptions-item>
|
||||
<el-descriptions-item label="出院/门诊时间">苏州市</el-descriptions-item>
|
||||
<el-descriptions-item label="注册时间"></el-descriptions-item>
|
||||
</el-descriptions>
|
||||
<el-descriptions title="服务包信息" style="padding:0 30px">
|
||||
<el-descriptions-item label="选择服务包"></el-descriptions-item>
|
||||
</el-descriptions>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
||||
export default {
|
||||
name: "newSigning",
|
||||
data() {
|
||||
return {
|
||||
};
|
||||
},
|
||||
created() {
|
||||
},
|
||||
methods: {
|
||||
|
||||
}
|
||||
};
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
.app-container {
|
||||
padding: 14px 0 0;
|
||||
background-color: #F2F3F5 !important;
|
||||
width: 100%;
|
||||
|
||||
.descriptions {
|
||||
padding: 20px 20px 10px;
|
||||
}
|
||||
|
||||
.descriptions {
|
||||
::v-deep .el-descriptions-item__label.has-colon::after {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.header {
|
||||
background-color: #fff;
|
||||
width: 98%;
|
||||
margin: 0 auto;
|
||||
border-radius: 8px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
@ -250,7 +250,12 @@ export default {
|
||||
},
|
||||
/** 重置按钮操作 */
|
||||
resetQuery() {
|
||||
this.queryParams.admissionDate = [];
|
||||
this.admissionDate = [];
|
||||
this.queryParams.admissionDateStart = null
|
||||
this.queryParams.admissionDateEnd = null
|
||||
this.visitTime = []
|
||||
this.queryParams.visitTimeStart = null
|
||||
this.queryParams.visitTimeEnd = null
|
||||
this.resetForm("queryForm");
|
||||
this.handleQuery();
|
||||
},
|
||||
|
||||
@ -486,6 +486,8 @@ export default {
|
||||
},
|
||||
/** 重置按钮操作 */
|
||||
resetQuery() {
|
||||
this.appointmentDate = []
|
||||
this.queryParams.appointmentDateStart = ''
|
||||
this.queryParams.appointmentDateEnd = ''
|
||||
this.resetForm("queryForm");
|
||||
this.handleQuery();
|
||||
|
||||
405
src/views/manage/signRecord/index.vue
Normal file
405
src/views/manage/signRecord/index.vue
Normal file
@ -0,0 +1,405 @@
|
||||
<template>
|
||||
<div class="app-container">
|
||||
<el-tabs v-model="queryParams.serviceStatus" @tab-click="handleClick">
|
||||
<el-tab-pane label="意向签约" name="INTENTIONAL_SIGNING"></el-tab-pane>
|
||||
<el-tab-pane label="服务中" name="SERVICE_CENTER"></el-tab-pane>
|
||||
<el-tab-pane label="服务结束" name="SERVICE_END"></el-tab-pane>
|
||||
<el-tab-pane label="待续签" name="WAIT_CONTINUOUS_SIGN"></el-tab-pane>
|
||||
</el-tabs>
|
||||
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="70px">
|
||||
<el-form-item label="加入意向时间" prop="intentionalTimeStart" label-width="110px"
|
||||
v-if="queryParams.serviceStatus == 'INTENTIONAL_SIGNING'">
|
||||
<el-date-picker v-model="intentionalTime" type="daterange" range-separator="至" start-placeholder="开始日期"
|
||||
style="width:300px" value-format="yyyy-MM-dd" end-placeholder="结束日期">
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item label="签约时间" prop="signTimeStart" v-if="queryParams.serviceStatus == 'SERVICE_CENTER'">
|
||||
<el-date-picker v-model="signTime" type="daterange" range-separator="至" start-placeholder="开始日期"
|
||||
style="width:300px" value-format="yyyy-MM-dd" end-placeholder="结束日期">
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item label="到期时间" prop="serviceEndTimeStart" v-if="queryParams.serviceStatus == 'SERVICE_END'">
|
||||
<el-date-picker v-model="serviceEndTime" type="daterange" range-separator="至" start-placeholder="开始日期"
|
||||
style="width:300px" value-format="yyyy-MM-dd" end-placeholder="结束日期">
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item label="提交时间" prop="submissionTimeStart" v-if="queryParams.serviceStatus == 'WAIT_CONTINUOUS_SIGN'">
|
||||
<el-date-picker v-model="submissionTime" type="daterange" range-separator="至" start-placeholder="开始日期"
|
||||
style="width:300px" value-format="yyyy-MM-dd" end-placeholder="结束日期">
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item label="医院" prop="hospitalAgencyId">
|
||||
<el-input v-model="queryParams.hospitalAgencyId" placeholder="请输入签约时所属医院" clearable
|
||||
@keyup.enter.native="handleQuery" />
|
||||
</el-form-item>
|
||||
<el-form-item label="院区" prop="campusAgencyId">
|
||||
<el-input v-model="queryParams.campusAgencyId" placeholder="请输入签约时所属院区" clearable
|
||||
@keyup.enter.native="handleQuery" />
|
||||
</el-form-item>
|
||||
<el-form-item label="科室" prop="departmentId">
|
||||
<el-input v-model="queryParams.departmentId" placeholder="请输入签约时所属科室id" clearable
|
||||
@keyup.enter.native="handleQuery" />
|
||||
</el-form-item>
|
||||
<el-form-item label="病区" prop="wardId">
|
||||
<el-input v-model="queryParams.wardId" placeholder="请输入签约时所属病区id" clearable @keyup.enter.native="handleQuery" />
|
||||
</el-form-item>
|
||||
<!-- 门诊:OUTPATIENT_SERVICE,住院:BE_IN_HOSPITAL -->
|
||||
<el-form-item label="就诊方式" prop="visitMethod">
|
||||
<el-select v-model="queryParams.visitMethod" placeholder="请选择就诊方式" clearable style="width:200px">
|
||||
<el-option v-for="dict in dict.type.visit_method" :key="dict.value" :label="dict.label" :value="dict.value" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<!-- <el-form-item label="签约时诊断" prop="signDiagnosis">
|
||||
<el-input v-model="queryParams.signDiagnosis" placeholder="请输入签约时诊断" clearable
|
||||
@keyup.enter.native="handleQuery" />
|
||||
</el-form-item> -->
|
||||
<el-form-item label="意向来源" prop="intentionalSource">
|
||||
<el-input v-model="queryParams.intentionalSource" placeholder="请输入意向来源" clearable
|
||||
@keyup.enter.native="handleQuery" />
|
||||
</el-form-item>
|
||||
<el-form-item label="开单医生" prop="billingDoctorName">
|
||||
<el-input v-model="queryParams.billingDoctorName" placeholder="请输入开单医生姓名" clearable
|
||||
@keyup.enter.native="handleQuery" />
|
||||
</el-form-item>
|
||||
<el-form-item label="患者姓名" prop="patientName">
|
||||
<el-input v-model="queryParams.patientName" placeholder="请输入患者姓名" clearable @keyup.enter.native="handleQuery" />
|
||||
</el-form-item>
|
||||
<el-form-item label="患者电话" prop="patientPhone">
|
||||
<el-input v-model="queryParams.patientPhone" placeholder="请输入患者电话" clearable @keyup.enter.native="handleQuery" />
|
||||
</el-form-item>
|
||||
<!-- <el-form-item label="身份证号" prop="cardNo">
|
||||
<el-input v-model="queryParams.cardNo" placeholder="请输入身份证号" clearable @keyup.enter.native="handleQuery" />
|
||||
</el-form-item> -->
|
||||
<el-form-item>
|
||||
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
||||
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<!-- <el-row :gutter="10" class="mb8">
|
||||
<el-col :span="1.5">
|
||||
<el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleAdd"
|
||||
v-hasPermi="['manage:signRecord:add']">新增</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button type="success" plain icon="el-icon-edit" size="mini" :disabled="single" @click="handleUpdate"
|
||||
v-hasPermi="['manage:signRecord:edit']">修改</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button type="danger" plain icon="el-icon-delete" size="mini" :disabled="multiple" @click="handleDelete"
|
||||
v-hasPermi="['manage:signRecord:remove']">删除</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button type="warning" plain icon="el-icon-download" size="mini" @click="handleExport"
|
||||
v-hasPermi="['manage:signRecord:export']">导出</el-button>
|
||||
</el-col>
|
||||
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||
</el-row> -->
|
||||
<el-table v-loading="loading" :data="signRecordList" @selection-change="handleSelectionChange">
|
||||
<el-table-column label="序号" type="index" width="55" align="center" />
|
||||
<el-table-column label="姓名" align="center" prop="patientName" />
|
||||
<el-table-column label="电话" align="center" prop="patientPhone" width="130" />
|
||||
<el-table-column label="就诊流水号" align="center" prop="visitSerialNumber" width="130" />
|
||||
<el-table-column label="诊断" align="center" prop="mainDiagnosis" />
|
||||
<el-table-column label="医院" align="center" prop="hospitalAgencyName" width="130" />
|
||||
<el-table-column label="院区" align="center" prop="campusAgencyName" />
|
||||
<el-table-column label="科室" align="center" prop="departmentName" />
|
||||
<el-table-column label="病区" align="center" prop="wardName" />
|
||||
<el-table-column label="就诊方式" align="center" prop="visitMethod">
|
||||
<template slot-scope="scope">
|
||||
<dict-tag :options="dict.type.visit_method" :value="scope.row.visitMethod" />
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="意向来源" align="center" prop="intentionalSource"
|
||||
v-if="queryParams.serviceStatus == 'INTENTIONAL_SIGNING'" />
|
||||
<el-table-column label="患者来源" align="center" prop="intentionalSource" v-else />
|
||||
<el-table-column label="签约时间" align="center" prop="signTime" width="180"
|
||||
v-if="queryParams.serviceStatus == 'SERVICE_CENTER'">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ formatDate(scope.row.signTime) }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="加入意向时间" align="center" prop="intentionalTime" width="180"
|
||||
v-if="queryParams.serviceStatus == 'INTENTIONAL_SIGNING'">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ formatDate(scope.row.intentionalTime) }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="服务包名称" align="center" prop="packageName" width="130"
|
||||
v-if="queryParams.serviceStatus != 'INTENTIONAL_SIGNING'" />
|
||||
<div v-else>
|
||||
<el-table-column label="开单医生" align="center" prop="billingDoctorName" />
|
||||
<el-table-column label="金额" align="center" prop="price" />
|
||||
<el-table-column label="缴费状态" align="center" prop="paymentStatus">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ scope.row.paymentStatus == 'PAID' ? '已缴费' : '' }}
|
||||
{{ scope.row.paymentStatus == 'UNPAID_FEES' ? '未缴费' : '' }}
|
||||
</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</div>
|
||||
<el-table-column label="签约时长" align="center" prop="serviceCycle">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ scope.row.serviceCycle }}月</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<!-- <el-table-column label="服务状态" align="center"
|
||||
prop="serviceStatus" >
|
||||
,意向签约:INTENTIONAL_SIGNING,服务中:SERVICE_CENTER,服务结束:SERVICE_END
|
||||
</el-table-column> -->
|
||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" fixed="right" width="160">
|
||||
<template slot-scope="scope">
|
||||
<el-button size="mini" type="text" @click="handlenewsign(scope.row)"
|
||||
v-if="queryParams.serviceStatus == 'INTENTIONAL_SIGNING'">签约</el-button>
|
||||
<el-button size="mini" type="text" @click="handleDelete(scope.row)"
|
||||
v-if="queryParams.serviceStatus == 'INTENTIONAL_SIGNING'">忽略</el-button>
|
||||
<el-button size="mini" type="text" @click="handleUpdate(scope.row)"
|
||||
v-if="queryParams.serviceStatus == 'SERVICE_CENTER' || queryParams.serviceStatus == 'SERVICE_END'">详情</el-button>
|
||||
<el-button size="mini" type="text" @click="handleDelete(scope.row)"
|
||||
v-if="queryParams.serviceStatus == 'SERVICE_CENTER'">取消签约</el-button>
|
||||
<el-button size="mini" type="text" @click="handleUpdate(scope.row)"
|
||||
v-if="queryParams.serviceStatus == 'SERVICE_CENTER' || queryParams.serviceStatus == 'SERVICE_END'">续约</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize"
|
||||
@pagination="getList" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { getAge } from "@/utils/age";
|
||||
import { listSignRecord, getSignRecord, delSignRecord, addSignRecord, updateSignRecord } from "@/api/manage/signRecord";
|
||||
export default {
|
||||
dicts: ['visit_method'],
|
||||
name: "SignRecord",
|
||||
data() {
|
||||
return {
|
||||
// 遮罩层
|
||||
loading: true,
|
||||
// 选中数组
|
||||
ids: [],
|
||||
// 非单个禁用
|
||||
single: true,
|
||||
// 非多个禁用
|
||||
multiple: true,
|
||||
// 显示搜索条件
|
||||
showSearch: true,
|
||||
// 总条数
|
||||
total: 0,
|
||||
// 签约记录表格数据
|
||||
signRecordList: [],
|
||||
intentionalTime: [],
|
||||
signTime: [],
|
||||
serviceEndTime: [],
|
||||
submissionTime: [],
|
||||
// 查询参数
|
||||
queryParams: {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
patientName: null,
|
||||
patientPhone: null,
|
||||
cardNo: null,
|
||||
signTimeStart: null,
|
||||
signTimeEnd: null,
|
||||
hospitalAgencyId: null,
|
||||
campusAgencyId: null,
|
||||
departmentId: null,
|
||||
wardId: null,
|
||||
wardName: null,
|
||||
visitMethod: null,
|
||||
signDiagnosis: null,
|
||||
serviceStatus: 'INTENTIONAL_SIGNING',
|
||||
intentionalSource: null,
|
||||
intentionalTimeStart: null,
|
||||
intentionalTimeEnd: null,
|
||||
billingDoctorName: null,
|
||||
paymentStatus: null,
|
||||
serviceEndTimeStart: null,
|
||||
serviceEndTimeEnd: null,
|
||||
submissionTimeStart: null,
|
||||
submissionTimeEnd: null,
|
||||
},
|
||||
// 表单参数
|
||||
form: {},
|
||||
// 表单校验
|
||||
rules: {
|
||||
patientId: [
|
||||
{ required: true, message: "患者信息表id不能为空", trigger: "blur" }
|
||||
],
|
||||
}
|
||||
};
|
||||
},
|
||||
created() {
|
||||
this.getList();
|
||||
},
|
||||
methods: {
|
||||
/** 查询签约记录列表 */
|
||||
getList() {
|
||||
this.loading = true;
|
||||
listSignRecord(this.queryParams).then(response => {
|
||||
this.signRecordList = response.rows;
|
||||
this.total = response.total;
|
||||
this.loading = false;
|
||||
});
|
||||
},
|
||||
// 取消按钮
|
||||
cancel() {
|
||||
this.open = false;
|
||||
this.reset();
|
||||
},
|
||||
// 表单重置
|
||||
reset() {
|
||||
this.form = {
|
||||
id: null,
|
||||
patientId: null,
|
||||
patientName: null,
|
||||
patientPhone: null,
|
||||
cardNo: null,
|
||||
signTime: null,
|
||||
hospitalAgencyId: null,
|
||||
hospitalAgencyName: null,
|
||||
campusAgencyId: null,
|
||||
campusAgencyName: null,
|
||||
departmentId: null,
|
||||
departmentName: null,
|
||||
wardId: null,
|
||||
wardName: null,
|
||||
visitSerialNumber: null,
|
||||
visitMethod: null,
|
||||
signDiagnosis: null,
|
||||
reviewDiagnosis: null,
|
||||
serviceStatus: "0",
|
||||
signStatus: "0",
|
||||
intentionalSource: null,
|
||||
intentionalTime: null,
|
||||
billingDoctorId: null,
|
||||
billingDoctorName: null,
|
||||
price: null,
|
||||
paymentStatus: "0",
|
||||
delFlag: null,
|
||||
createBy: null,
|
||||
createTime: null,
|
||||
updateBy: null,
|
||||
updateTime: null
|
||||
};
|
||||
this.resetForm("form");
|
||||
},
|
||||
/** 搜索按钮操作 */
|
||||
handleQuery() {
|
||||
if (this.intentionalTime.length > 0) {
|
||||
this.queryParams.intentionalTimeStart = this.intentionalTime[0]
|
||||
this.queryParams.intentionalTimeEnd = this.intentionalTime[1]
|
||||
}
|
||||
if (this.signTime.length > 0) {
|
||||
this.queryParams.signTimeStart = this.signTime[0]
|
||||
this.queryParams.signTimeEnd = this.signTime[1]
|
||||
}
|
||||
if (this.serviceEndTime.length > 0) {
|
||||
this.queryParams.serviceEndTimeStart = this.serviceEndTime[0]
|
||||
this.queryParams.serviceEndTimeEnd = this.serviceEndTime[1]
|
||||
}
|
||||
if (this.submissionTime.length > 0) {
|
||||
this.queryParams.submissionTimeStart = this.submissionTime[0]
|
||||
this.queryParams.submissionTimeEnd = this.submissionTime[1]
|
||||
}
|
||||
this.queryParams.pageNum = 1;
|
||||
this.getList();
|
||||
},
|
||||
/** 重置按钮操作 */
|
||||
resetQuery() {
|
||||
this.intentionalTime = []
|
||||
this.signTime = []
|
||||
this.queryParams.signTimeStart = null
|
||||
this.queryParams.signTimeEnd = null
|
||||
this.queryParams.intentionalTimeStart = null
|
||||
this.queryParams.intentionalTimeEnd = null
|
||||
this.serviceEndTime = []
|
||||
this.submissionTime = []
|
||||
this.queryParams.serviceEndTimeStart = null
|
||||
this.queryParams.serviceEndTimeEnd = null
|
||||
this.queryParams.submissionTimeStart = null
|
||||
this.queryParams.submissionTimeEnd = null
|
||||
this.resetForm("queryForm");
|
||||
this.handleQuery();
|
||||
},
|
||||
// 多选框选中数据
|
||||
handleSelectionChange(selection) {
|
||||
this.ids = selection.map(item => item.id)
|
||||
this.single = selection.length !== 1
|
||||
this.multiple = !selection.length
|
||||
},
|
||||
/** 新增按钮操作 */
|
||||
handleAdd() {
|
||||
this.reset();
|
||||
},
|
||||
/** 修改按钮操作 */
|
||||
handleUpdate(row) {
|
||||
this.reset();
|
||||
const id = row.id || this.ids
|
||||
getSignRecord(id).then(response => {
|
||||
this.form = response.data;
|
||||
});
|
||||
},
|
||||
/** 删除按钮操作 */
|
||||
handleDelete(row) {
|
||||
const ids = row.id || this.ids;
|
||||
this.$modal.confirm('是否确认删除签约记录编号为"' + ids + '"的数据项?').then(function () {
|
||||
return delSignRecord(ids);
|
||||
}).then(() => {
|
||||
this.getList();
|
||||
this.$modal.msgSuccess("删除成功");
|
||||
}).catch(() => { });
|
||||
},
|
||||
/** 导出按钮操作 */
|
||||
handleExport() {
|
||||
this.download('manage/signRecord/export', {
|
||||
...this.queryParams
|
||||
}, `signRecord_${new Date().getTime()}.xlsx`)
|
||||
},
|
||||
handleClick(tab, event) {
|
||||
this.intentionalTime = []
|
||||
this.queryParams.intentionalTimeStart = null
|
||||
this.queryParams.intentionalTimeEnd = null
|
||||
this.signTime = []
|
||||
this.queryParams.signTimeStart = null
|
||||
this.queryParams.signTimeEnd = null
|
||||
this.getList();
|
||||
},
|
||||
// 格式化日期格式如:2017-9-19 18:04:33
|
||||
formatDate(value) {
|
||||
if (!value) {
|
||||
return
|
||||
}
|
||||
// 计算日期相关值
|
||||
let time = new Date(value)
|
||||
let Y = time.getFullYear();
|
||||
let M = time.getMonth() + 1;
|
||||
let D = time.getDate();
|
||||
let h = time.getHours();
|
||||
let m = time.getMinutes();
|
||||
let s = time.getSeconds();
|
||||
// 如果传递了type的话
|
||||
return Y + '-' + (M < 10 ? '0' + M : M) + '-' + (D < 10 ? '0' + D : D) + ' ' + (h < 10 ? '0' + h : h) + ':' + (m < 10 ? '0' + m : m) + ':' + (s < 10 ? '0' + s : s);
|
||||
},
|
||||
handlenewsign(row) {
|
||||
this.$router.push({
|
||||
path: "/patient/newSigning",
|
||||
query: {
|
||||
patientName: row.patientName,
|
||||
patientPhone: row.patientPhone,
|
||||
visitMethod: row.visitMethod,
|
||||
mainDiagnosis: row.mainDiagnosis,
|
||||
visitSerialNumber: row.visitSerialNumber,
|
||||
hospitalAgencyName: row.hospitalAgencyName,
|
||||
departmentName: row.departmentName,
|
||||
paymentStatus: row.paymentStatus,
|
||||
sex: row.sex,
|
||||
age: row.birthDate ? getAge(row.birthDate) : '',
|
||||
patientId: row.id,
|
||||
createTime: row.createTime,
|
||||
},
|
||||
});
|
||||
},
|
||||
}
|
||||
};
|
||||
</script>
|
||||
@ -505,6 +505,8 @@ export default {
|
||||
},
|
||||
/** 重置按钮操作 */
|
||||
resetQuery() {
|
||||
this.admissionDate = []
|
||||
this.queryParams.admissionDateStart = ''
|
||||
this.queryParams.admissionDateEnd = ''
|
||||
this.resetForm("queryForm");
|
||||
this.handleQuery();
|
||||
|
||||
@ -511,6 +511,8 @@ export default {
|
||||
},
|
||||
/** 重置按钮操作 */
|
||||
resetQuery() {
|
||||
this.dischargeDate = []
|
||||
this.queryParams.dischargeDateStart = ''
|
||||
this.queryParams.dischargeDateEnd = ''
|
||||
this.resetForm("queryForm");
|
||||
this.handleQuery();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user