提交 9fefab9c 编写于 作者: Yuanzhao.dai's avatar Yuanzhao.dai

fixed

上级 007d1966
...@@ -46,7 +46,6 @@ export const getNotCompleteList = (params) => { ...@@ -46,7 +46,6 @@ export const getNotCompleteList = (params) => {
headers, headers,
url: getBaseUrl(`healths/patients/uncomplate/${params.pageNo}/${params.pageSize}`), url: getBaseUrl(`healths/patients/uncomplate/${params.pageNo}/${params.pageSize}`),
method: 'get', method: 'get',
params: params,
description: '获取资料不全居民列表', description: '获取资料不全居民列表',
}) })
}; };
......
...@@ -7,12 +7,14 @@ ...@@ -7,12 +7,14 @@
<section class="not-complete-content screenSet"> <section class="not-complete-content screenSet">
<h1 class="page-title">资料不全居民</h1> <h1 class="page-title">资料不全居民</h1>
<p class="tip" v-if="notCompleteList.length"> <p class="tip" v-if="notCompleteList.length">
<span class="fontGreen">800</span>居民仅通过微信扫码与您绑定,但未完善姓名、手机号等关键信息。提醒居民完善信息后,您将可以对居民进行消息推送和随访计划设置。 <span class="fontGreen">{{pagination.totalRows}}</span>居民仅通过微信扫码与您绑定,但未完善姓名、手机号等关键信息。提醒居民完善信息后,您将可以对居民进行消息推送和随访计划设置。
<el-button type="primary" style="float: right;" size="small" @click="sendCompleteMessages">批量提醒</el-button> <el-button type="primary" style="float: right;" size="small" @click="sendCompleteMessageMultiple">批量提醒</el-button>
</p> </p>
<el-table <el-table
v-if="notCompleteList.length" v-if="notCompleteList.length"
:data="notCompleteList" :data="notCompleteList"
:row-key="getRowKeys"
@selection-change="handleSelectionChange"
style="width: 100%;"> style="width: 100%;">
<el-table-column <el-table-column
type="selection" type="selection"
...@@ -47,7 +49,7 @@ ...@@ -47,7 +49,7 @@
label="操作" label="操作"
align="center"> align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button v-if="scope.row.isRemind==1" type="text" @click="sendCompleteMessage(scope.row)">提醒完善信息</el-button> <el-button v-if="scope.row.isRemind==1" type="text" @click="sendMessageSingle(scope.row)">提醒完善信息</el-button>
<el-button v-else-if="scope.row.isRemind==2" type="text" style="color: #999">提醒已发送</el-button> <el-button v-else-if="scope.row.isRemind==2" type="text" style="color: #999">提醒已发送</el-button>
</template> </template>
</el-table-column> </el-table-column>
...@@ -57,11 +59,11 @@ ...@@ -57,11 +59,11 @@
background background
@size-change="handleSizeChange" @size-change="handleSizeChange"
@current-change="handleCurrentChange" @current-change="handleCurrentChange"
:current-page="notCompleteList.pageNo" :current-page="pagination.pageNo"
:page-sizes="[15, 30, 50, 100, 200, 500, 700, 1000, 1500, 2000]" :page-sizes="[15, 30, 50, 100]"
:page-size="notCompleteList.pageSize" :page-size="pagination.pageSize"
layout="total, sizes, prev, pager, next, jumper" layout="total, sizes, prev, pager, next, jumper"
:total="totalRows"> :total="pagination.totalRows">
</el-pagination> </el-pagination>
</div> </div>
<div v-if="!notCompleteList.length" class="blank-wrap"> <div v-if="!notCompleteList.length" class="blank-wrap">
...@@ -76,7 +78,7 @@ ...@@ -76,7 +78,7 @@
<script> <script>
import BreadCrumb from '../../../components/breadcrumb.vue' import BreadCrumb from '../../../components/breadcrumb.vue'
import { getNotCompleteList, sendCompleteMessage, getNotCompleteCount } from '../../../utils/patients/patientsapi'
export default { export default {
name: "not-complete", name: "not-complete",
components: { components: {
...@@ -87,58 +89,95 @@ ...@@ -87,58 +89,95 @@
curmbFirst: '居民管理', curmbFirst: '居民管理',
curmbSecond: '资料不全居民', curmbSecond: '资料不全居民',
notCompleteList: [], //未完善列表 notCompleteList: [], //未完善列表
pagination: {
pageNo: 1,
pageSize: 15,
},
getRowKeys(row) {
return row.patientId;
},
selectList: []
} }
}, },
created() { created() {
//const vm = this; //const vm = this;
}, },
mounted() { mounted() {
this.getNotComplete({ this.getNotComplete()
pageNo: 1, this.getNotCompleteNum()
pageSize: 10
})
}, },
methods: { methods: {
getNotComplete(reqData) { handleSelectionChange(val) {
const { pageNo, pageSize} = reqData this.selectList = val;
this.GET(`/healths/patients/uncomplate/${pageNo}/${pageSize}`).then((res) => { },
console.log(res) handleSizeChange(val) {
if(res.code == "000000") { this.pagination.pageSize = val
this.notCompleteList = res.data this.getNotComplete()
},
handleCurrentChange(val) {
this.pagination.pageNo = val
this.getNotComplete()
},
getNotComplete() { //获取未完善居民列表
const { pageNo, pageSize} = this.pagination
getNotCompleteList({
pageNo,
pageSize,
}).then((data) => {
if(data.code == "000000") {
this.notCompleteList = data.data
console.log('1212',this.notCompleteList)
} }
}).catch(function (error) { }).catch(function (error) {
this.$message.error(error); this.$message({
message: error,
type: 'error'
});
}); });
}, },
sendCompleteMessage(item) { sendMessageSingle(item) { //发送单个提醒
let params = { sendCompleteMessage({
qrcodeType: 1, //saas 云鹊医平台 qrcodeType: 1,
patientId: item.patientId, patientId: item.patientId,
} }).then((data) => {
this.POST('/healths/patients/remind',params).then((res) => { if(data.code == "000000") {
this.$message({
message: '已向居民发送提醒',
type: 'success'
});
}else {
this.$message({
message: data.message,
type: 'error'
});
}
}).catch(function (error) {
this.$message({ this.$message({
type: 'success', message: error,
message: '操作成功!' type: 'error'
}); });
}).catch(function (error) {
this.$message.error(error);
}); });
}, },
sendCompleteMessages(item) { sendCompleteMessageMultiple(item) {
let params = { if(!this.selectList.length) {
qrcodeType: 1, //saas 云鹊医平台 this.$message({
patientId: item.patientId, message: '请选择居民',
} type: 'warning'
this.POST('/healths/patients/remind',params).then((res) => { });
}
},
getNotCompleteNum() {
getNotCompleteCount().then((data) => {
if(data.code == "000000") {
this.pagination.totalRows = data.data;
}
}).catch(function (error) {
this.$message({ this.$message({
type: 'success', message: error,
message: '操作成功!' type: 'error'
}); });
}).catch(function (error) {
this.$message.error(error);
}); });
} }
} }
} }
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册