提交 0f315b74 编写于 作者: yi.li's avatar yi.li

录入列表接口调整

上级 c910c5bb
...@@ -17,7 +17,6 @@ ...@@ -17,7 +17,6 @@
</div> </div>
<div class="form-div" v-if="activeTab == 'setNewRef'"> <div class="form-div" v-if="activeTab == 'setNewRef'">
<!--<set-time-form :timeForm="timeForm" :valBegin="valBegin" :checkCallback="checkCallback" />-->
<el-form :ref="timeForm.formRef" :model="timeForm" :rules="timeFormRules" label-suffix=":" label-width="140px" :inline-message="true" size="small"> <el-form :ref="timeForm.formRef" :model="timeForm" :rules="timeFormRules" label-suffix=":" label-width="140px" :inline-message="true" size="small">
<el-form-item label="本次随访时间" required> <el-form-item label="本次随访时间" required>
<div style="display: flex;"> <div style="display: flex;">
......
...@@ -80,13 +80,45 @@ ...@@ -80,13 +80,45 @@
name: '', name: '',
startYear: '0', startYear: '0',
}, },
timeRangeList:[{ timeRangeList:[
{
label: '2019年', label: '2019年',
value: 1 value: 1
},{ },{
label: '2018年', label: '2020年',
value: 2 value: 2
}], }, {
label: '2021年',
value: 3
},{
label: '2022年',
value: 4
},{
label: '2023年',
value: 5
},{
label: '2024年',
value: 6
},{
label: '2025年',
value: 7
},{
label: '2026年',
value: 8
},{
label: '2027年',
value: 9
},{
label: '2028年',
value: 10
},{
label: '2029年',
value: 11
},{
label: '2030年',
value: 12
}
],
paginationSet: { paginationSet: {
pageNo: 1, pageNo: 1,
pageSize: 10, pageSize: 10,
......
...@@ -36,11 +36,11 @@ ...@@ -36,11 +36,11 @@
</div> </div>
<div class="table-content"> <div class="table-content">
<el-radio-group v-model="activeName" @change="handlerClick" size="small"> <el-radio-group v-model="activeName" @change="handlerClick" size="small">
<el-radio-button label="0">全部({{recordList.count}}</el-radio-button> <el-radio-button label="">全部({{recordList.count}})</el-radio-button>
<el-radio-button label="1">已完成({{recordList.acceptCount}}</el-radio-button> <el-radio-button label="2">已完成({{recordList.finishedCount}})</el-radio-button>
<el-radio-button label="2">未完成({{recordList.refuseCount}}</el-radio-button> <el-radio-button label="1">未完成({{recordList.unfinishedCount}})</el-radio-button>
</el-radio-group> </el-radio-group>
<el-table :data="recordList.fuPlanInfoList" style="width: 100%;margin-top: 20px;"> <el-table :data="recordList.enteringDtos" style="width: 100%;margin-top: 20px;">
<el-table-column prop="nickname" label="姓名" min-width="100" align="center"> <el-table-column prop="nickname" label="姓名" min-width="100" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<span style="cursor: pointer" @click="visitDetail(scope.row)">{{scope.row.nickname}}</span> <span style="cursor: pointer" @click="visitDetail(scope.row)">{{scope.row.nickname}}</span>
...@@ -71,7 +71,7 @@ ...@@ -71,7 +71,7 @@
<el-row type="flex" justify="end" class="margin-top20"> <el-row type="flex" justify="end" class="margin-top20">
<el-pagination <el-pagination
background background
v-if="recordList.fuPlanInfoList" v-if="recordList.enteringDtos"
@size-change="handleSizeChangePre" @size-change="handleSizeChangePre"
@current-change="handleCurrentChangePre" @current-change="handleCurrentChangePre"
layout="total, sizes, prev, pager, next, jumper" layout="total, sizes, prev, pager, next, jumper"
...@@ -112,7 +112,7 @@ ...@@ -112,7 +112,7 @@
nickname: '', nickname: '',
mobilePhone: '' mobilePhone: ''
}, },
activeName: 0, activeName: '',
paginationSet: { paginationSet: {
pageNo: 1, pageNo: 1,
pageSize: 10, pageSize: 10,
...@@ -146,30 +146,31 @@ ...@@ -146,30 +146,31 @@
// ...mapActions('reservationManage', ['getConstantsData']), // ...mapActions('reservationManage', ['getConstantsData']),
...mapActions('recordManage', ['getRecordList', 'getEnteringInfo']), ...mapActions('recordManage', ['getRecordList', 'getEnteringInfo']),
async search(currentPage){ async search(currentPage){
if(this.timeRangeList.length>0) { if(this.timeRangeList) {
this.searchData.beginTime = this.timeRangeList[0]; this.searchData.beginTime = this.timeRangeList[0];
this.searchData.endTime = this.timeRangeList[1]; this.searchData.endTime = this.timeRangeList[1];
}else {
this.searchData.beginTime = '';
this.searchData.endTime = '';
} }
await this.getRecordList({ await this.getRecordList({
info: { ...this.searchData,
...this.searchData, status: this.activeName,
status: this.activeName, pageNo: currentPage || this.paginationSet.pageNo,
pageNo: currentPage || this.paginationSet.pageNo, pageSize: this.paginationSet.pageSize,
pageSize: this.paginationSet.pageSize,
},
}); });
const {pageNo, pageSize, count, acceptCount, refuseCount} = this.recordList; const {pageNo, pageSize, count, finishedCount, unfinishedCount} = this.recordList;
if(this.activeName == 0){ if(this.activeName == ''){
this.paginationSet.total = count; this.paginationSet.total = count;
}else if(this.activeName == 2){
this.paginationSet.total = finishedCount;
}else if(this.activeName == 1){ }else if(this.activeName == 1){
this.paginationSet.total = acceptCount; this.paginationSet.total = unfinishedCount;
}else {
this.paginationSet.total = refuseCount;
} }
this.paginationSet = { this.paginationSet = {
...this.paginationSet, ...this.paginationSet,
pageNo, pageNo,
pageSize: 10, pageSize: pageSize,
} }
}, },
reseat(){ reseat(){
...@@ -177,11 +178,12 @@ ...@@ -177,11 +178,12 @@
this.searchData.nickname = ''; this.searchData.nickname = '';
this.searchData.mobilePhone = ''; this.searchData.mobilePhone = '';
this.timeRangeList = []; this.timeRangeList = [];
this.searchData.beginTime = '';
this.searchData.endTime = '';
this.search(1); this.search(1);
}, },
async visitDetail(row){ async visitDetail(row){
await this.getEnteringInfo({patientId:row.patientId,fuPlanPatientTimesId:row.fuPlanPatientTimesId}); await this.getEnteringInfo({patientId:row.patientId,fuPlanPatientTimesId:row.fuPlanPatientTimesId});
//await this.getEnteringInfo({});
this.dialogDetailShow = true; this.dialogDetailShow = true;
// this.enteringRow = row; // this.enteringRow = row;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册