提交 83d89fe0 编写于 作者: tao.wu's avatar tao.wu

Merge branch 'dev-followUp-20190312' of...

Merge branch 'dev-followUp-20190312' of 192.168.110.53:com.pica.cloud.education.frontend/pica.cloud.web-education-admin into dev-followUp-20190312
...@@ -31,14 +31,33 @@ ...@@ -31,14 +31,33 @@
<div class="content-group-btn"><el-button type="primary" size="small" @click="addNewPlan">新建随访计划</el-button></div> <div class="content-group-btn"><el-button type="primary" size="small" @click="addNewPlan">新建随访计划</el-button></div>
<div> <div>
<el-table :data="planList.fPlanDtoList" style="width: 100%;margin-top: 20px;"> <el-table :data="planList.fPlanDtoList" style="width: 100%;margin-top: 20px;">
<el-table-column prop="name" label="随访计划名称" min-width="100" align="center" :show-overflow-tooltip="true"> <el-table-column
prop="name"
label="随访计划名称"
min-width="180"
align="left"
:show-overflow-tooltip="true">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button class="btn-right-class" type="text" @click="visitDetail(scope.row)">{{scope.row.name}}</el-button> <el-button class="btn-right-class" type="text" @click="visitDetail(scope.row)">{{scope.row.name}}</el-button>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="startYear" label="开始年份" min-width="100" align="center"></el-table-column> <el-table-column
<el-table-column prop="num" label="总人数" min-width="150" align="center"></el-table-column> prop="startYear"
<el-table-column label="操作" fixed="right" align="center" min-width="240"> label="开始年份"
width="150"
align="center">
</el-table-column>
<el-table-column
prop="num"
label="总人数"
width="150"
align="center">
</el-table-column>
<el-table-column
label="操作"
fixed="right"
align="center"
width="250">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button class="btn-right-class" type="text" @click="visitRow(scope.row)">查看居民</el-button>| <el-button class="btn-right-class" type="text" @click="visitRow(scope.row)">查看居民</el-button>|
<el-button class="btn-right-class" type="text" @click="changeRow(scope.row)"> 修改</el-button>| <el-button class="btn-right-class" type="text" @click="changeRow(scope.row)"> 修改</el-button>|
......
...@@ -192,23 +192,28 @@ ...@@ -192,23 +192,28 @@
//校验额度是否不够 //校验额度是否不够
getCheckReservation({ getCheckReservation({
content: '', content: '',
validContents: this.validContents validContents: _self.validContents
}).then(({data}) => { }).then(({data}) => {
const sendFlagLast = data.sendFlag; const sendFlagLast = data.sendFlag;
const inServiceTimeFlag = data.inServiceTimeFlag;
if(sendFlagLast){ //额度还可用 if(sendFlagLast){ //额度还可用
sendReservation({ sendReservation({
...this.reservationForm, ...this.reservationForm,
patientAppointList: this.selectList patientAppointList: _self.selectList
}).then(({data}) => { }).then(({data}) => {
this.$refs['reservationForm'].resetFields(); _self.$refs['reservationForm'].resetFields();
this.$emit('closeSendReserve',false); _self.$emit('closeSendReserve',false);
}) })
}else { }else {
console.log('余额不足') if(!inServiceTimeFlag) {
_self.$message.warning('已超过发送时间范围!');
return;
}else {
// 额度不足 // 额度不足
this.isNoEnoughShow = true; _self.isNoEnoughShow = true;
return; return;
} }
}
}) })
} else { } else {
return false; return false;
......
...@@ -281,13 +281,18 @@ ...@@ -281,13 +281,18 @@
content: '', content: '',
validContents:this.validContents validContents:this.validContents
}) })
const { sendFlag } = this.checkRevervationData const { sendFlag, inServiceTimeFlag } = this.checkRevervationData
//判断短信余额是否不足 //判断短信余额是否不足
if(sendFlag){ if(sendFlag){
this.isDialogShow = true; this.isDialogShow = true;
}else {
if(!inServiceTimeFlag) {
this.$message.warning('已超过发送时间范围!');
return;
}else { }else {
this.isNoEnoughShow = true; this.isNoEnoughShow = true;
} }
}
}, },
sendReservation() { sendReservation() {
if(this.selectionData.length > 0){ if(this.selectionData.length > 0){
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册