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

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

Merge branch 'dev-followUp-20190312' of http://192.168.110.53/com.pica.cloud.education.frontend/pica.cloud.web-education-admin into dev-followUp-20190312
...@@ -105,7 +105,8 @@ ...@@ -105,7 +105,8 @@
this.$emit('continueAdd', false) this.$emit('continueAdd', false)
}, },
handleSizeChangePre(val) { handleSizeChangePre(val) {
this.paginationSet.pageSize = val this.paginationSet.pageSize = val;
this.paginationSet.pageNum = 1;
this.eachHasSelectedList = this.getPageList(this.hasSelectedList) this.eachHasSelectedList = this.getPageList(this.hasSelectedList)
}, },
handleCurrentChangePre(val) { handleCurrentChangePre(val) {
......
...@@ -161,10 +161,10 @@ ...@@ -161,10 +161,10 @@
this.$emit('closeSelectCartoon', this.sendObj) this.$emit('closeSelectCartoon', this.sendObj)
}, },
sureSelect() { sureSelect() {
console.log(this.sendObj)
this.$emit('closeSelectCartoon', this.sendObj); this.$emit('closeSelectCartoon', this.sendObj);
}, },
changeComent(item){ changeComent(item){
console.log(item)
this.$emit('pushConmentMsg',item) this.$emit('pushConmentMsg',item)
} }
}, },
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<el-button <el-button
size="small" size="small"
@click="addNewNode" @click="addNewNode"
>新增时间节点<i class="el-icon-circle-close-outline" @click="deleteAddNode" v-if="setTimeNodeList.length>0"></i> >新增时间节点
</el-button> </el-button>
</div> </div>
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<div class="time-line-scroll"> <div class="time-line-scroll">
<div <div
v-if="showSetBtn && !isStandedTemplate">设置随访时间 v-if="showSetBtn && !isStandedTemplate" style="margin:10px 5px;background:orange;padding:10px;display: inline-block;">设置随访时间
<i class="el-icon-circle-close-outline" @click="deleteAddNode" v-if="setTimeNodeList.length>0"></i> <i class="el-icon-circle-close-outline" @click="deleteAddNode" v-if="setTimeNodeList.length>0"></i>
</div> </div>
<div v-model="activeTab" type="card" closable> <div v-model="activeTab" type="card" closable>
...@@ -23,35 +23,35 @@ ...@@ -23,35 +23,35 @@
v-for="(item, index) in setTimeNodeList" v-for="(item, index) in setTimeNodeList"
:key="index" :key="index"
@click="changeTabNew(index)" @click="changeTabNew(index)"
v-text="isStandedTemplate ? item.timeStr : '开始后'+String(item.timeNo) + timeUnitStr"
:style="(index == activeTab)?'background:#3190e8;':''" :style="(index == activeTab)?'background:#3190e8;':''"
style="float:left;border:1px solid orange;padding:5px 10px;margin:0 5px;" style="float:left;border:1px solid orange;padding:5px 10px;margin:0 5px;position: relative;"
></div> >{{isStandedTemplate ? item.timeStr : '开始后'+String(item.timeNo) + timeUnitStr}}
<i class="deletelist el-icon-circle-close-outline" @click.stop="deleteTimeNode(item, index)" v-if="!isStandedTemplate && item.change"></i></div>
</div> </div>
</div> </div>
<!--查看时间节点--> <!--查看时间节点-->
<div class="form-div" > <div class="form-div" >
<div <div
v-show="index == activeTab" v-show="index == activeTab"
v-for="(item, index) in setTimeNodeList" v-for="(itemTimeForm, index) in setTimeNodeList"
:key="index" :key="index"
:label="index" :label="index"
> >
<el-form :ref="item.formRef" :model="item" :rules="timeFormRules" label-suffix=":" label-width="140px" :inline-message="true" size="small"> <el-form :ref="itemTimeForm.formRef" :model="itemTimeForm" :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;">
<el-form-item prop="timeNo"> <el-form-item prop="timeNo">
<el-input <el-input
v-model="item.timeNo" v-model="itemTimeForm.timeNo"
type="tel" type="number"
size="small" size="small"
placeholder="请输入" placeholder="请输入"
:disabled="isStandedTemplate" :disabled="isStandedTemplate || !itemTimeForm.change"
maxlength="2" maxlength="2"
clearable /> clearable />
</el-form-item> </el-form-item>
<el-form-item prop="timeUnit" class="ml20"> <el-form-item prop="timeUnit" class="ml20">
<el-select v-model="item.timeUnit" placeholder="请选择" :disabled="item.isDisabled"> <el-select v-model="itemTimeForm.timeUnit" placeholder="请选择" :disabled="itemTimeForm.isDisabled || !itemTimeForm.change">
<el-option <el-option
v-for="(item,index) in markOptions" v-for="(item,index) in markOptions"
:key="index" :key="index"
...@@ -59,28 +59,20 @@ ...@@ -59,28 +59,20 @@
:value="item.no"> :value="item.no">
</el-option> </el-option>
</el-select> </el-select>
<!--<el-select v-if="isStandedTemplate || planId" v-model="item.timeUnit" placeholder="请选择" :disabled="isStandedTemplate">-->
<!--<el-option-->
<!--v-for="(item,index) in markOptions"-->
<!--:key="index"-->
<!--:label="item.value"-->
<!--:value="item.no">-->
<!--</el-option>-->
<!--</el-select>-->
</el-form-item> </el-form-item>
</div> </div>
</el-form-item> </el-form-item>
<el-form-item label="随访方式" prop="type"> <el-form-item label="随访方式" prop="type">
<el-radio-group v-model="item.type" size="small"> <el-radio-group v-model="itemTimeForm.type" size="small">
<el-radio v-for="(item,index) in followTypeList" :key="index" :label="item.no" :disabled="isStandedTemplate">{{item.value}}</el-radio> <el-radio v-for="(item,index) in followTypeList" :key="index" :label="item.no" :disabled="isStandedTemplate || !itemTimeForm.change">{{item.value}}</el-radio>
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
<el-form-item label="提醒医生预约居民"> <el-form-item label="提醒医生预约居民">
<el-select <el-select
v-model="item.remindDay" v-model="itemTimeForm.remindDay"
multiple multiple
:multiple-limit=3 :multiple-limit=3
:disabled="isStandedTemplate" :disabled="isStandedTemplate || !itemTimeForm.change"
@change="changeRemindDay" @change="changeRemindDay"
placeholder="请选择"> placeholder="请选择">
<el-option <el-option
...@@ -91,30 +83,15 @@ ...@@ -91,30 +83,15 @@
</el-option> </el-option>
</el-select> </el-select>
<!--固定模板需要填充-->
<!--<el-select-->
<!--v-if="isStandedTemplate"-->
<!--v-model="timeForm.remindDay"-->
<!--multiple-->
<!--:multiple-limit=3-->
<!--:disabled="isStandedTemplate"-->
<!--placeholder="请选择">-->
<!--<el-option-->
<!--v-for="(item,index) in remindOptionsCopy"-->
<!--:key="index"-->
<!--:label="item.startDaysStr"-->
<!--:value="item.startDays">-->
<!--</el-option>-->
<!--</el-select>-->
</el-form-item> </el-form-item>
<el-form-item label="推送患教"> <el-form-item label="推送患教">
<div style="display: flex"> <div style="display: flex">
<el-select <el-select
v-model="item.pushDay" v-model="itemTimeForm.pushDay"
placeholder="选择推送时间" placeholder="选择推送时间"
clearable clearable
:disabled="isStandedTemplate" @change="changePushDay"
:disabled="isStandedTemplate || !itemTimeForm.change"
> >
<el-option <el-option
v-for="(item,index) in pushTimeOptions" v-for="(item,index) in pushTimeOptions"
...@@ -124,38 +101,25 @@ ...@@ -124,38 +101,25 @@
</el-option> </el-option>
</el-select> </el-select>
<!--固定模板需要填充--> <el-button plain class="ml20" @click="goSelectCartoon" v-if="itemTimeForm.change && !itemTimeForm.hasSelected && !isStandedTemplate && planId">选择健康漫画</el-button>
<!--<el-select--> <div class="selected-div ml20" v-if="itemTimeForm.hasSelected">
<!--v-if="isStandedTemplate"--> <span>{{itemTimeForm.comentMsg.header_name}}</span>
<!--v-model="timeForm.pushDay"--> <el-button type="text" @click="goSelectCartoon" v-if="!isStandedTemplate">重选</el-button>
<!--placeholder="选择推送时间"--> <el-button type="text" @click="deleteClick" v-if="!isStandedTemplate">删除</el-button>
<!--clearable-->
<!--:disabled="isStandedTemplate"-->
<!--&gt;-->
<!--<el-option-->
<!--:label="timeForm.startDaysStr"-->
<!--:value="timeForm.pushDay">-->
<!--</el-option>-->
<!--</el-select>-->
<el-button plain class="ml20" @click="goSelectCartoon" v-if="!item.hasSelected && !isStandedTemplate && !planId">选择健康漫画</el-button>
<div class="selected-div ml20" v-if="item.hasSelected">
<span>{{item.comentMsg.header_name}}</span>
<el-button type="text" @click="goSelectCartoon" v-if="!isStandedTemplate && !planId">重选</el-button>
<el-button type="text" @click="deleteClick" v-if="!isStandedTemplate && !planId">删除</el-button>
</div> </div>
</div> </div>
</el-form-item> </el-form-item>
<div class="tips-contnt" v-if="item.hasSelected"> <div class="tips-contnt" v-if="itemTimeForm.hasSelected">
<p class="yellow-font">当前计划中共{{item.totalNumber}}位居民(微信:{{item.wechatPatientNum}}位,短信:{{item.messagePatientNum}}位),本次定时推送任务在发送当日预计需要{{item.messagePatientNum}}条短信额度(微信推送不消耗额度,建议您让居民关注云鹊健康微信公众号),务必提前确保短信额度的充足。</p> <p class="yellow-font">当前计划中共{{totalNumber}}位居民(微信:{{wechatPatientNum}}位,短信:{{messagePatientNum}}位),本次定时推送任务在发送当日预计需要{{messagePatientNum}}条短信额度(微信推送不消耗额度,建议您让居民关注云鹊健康微信公众号),务必提前确保短信额度的充足。</p>
<p>需要更多额度,请前往「云鹊医App-个人中心-啾啾币中心」兑换短信额度后再进行预约,您也可以联系云鹊医客服购买短信额度,客服电话:400-920-8877</p> <p>需要更多额度,请前往「云鹊医App-个人中心-啾啾币中心」兑换短信额度后再进行预约,您也可以联系云鹊医客服购买短信额度,客服电话:400-920-8877</p>
</div> </div>
<el-form-item label="随访登记表"> <el-form-item label="随访登记表">
<el-select <el-select
v-model="item.followResourceId" v-model="itemTimeForm.followResourceId"
multiple multiple
:multiple-limit=3 :multiple-limit=3
@change="changeFollowId" @change="changeFollowId"
:disabled="isStandedTemplate" :disabled="isStandedTemplate || !itemTimeForm.change"
placeholder="请选择"> placeholder="请选择">
<el-option <el-option
v-for="(item_sub,index) in formOptions" v-for="(item_sub,index) in formOptions"
...@@ -165,22 +129,6 @@ ...@@ -165,22 +129,6 @@
</el-option> </el-option>
</el-select> </el-select>
<!--固定模板需要填充-->
<!--<el-select-->
<!--v-if="isStandedTemplate"-->
<!--v-model="item.followResourceId"-->
<!--multiple-->
<!--:multiple-limit=3-->
<!--@change="changeFollowId"-->
<!--:disabled="isStandedTemplate"-->
<!--placeholder="请选择">-->
<!--<el-option-->
<!--v-for="(item,index) in formOptionsCopy"-->
<!--:key="index"-->
<!--:label="item.sendContent"-->
<!--:value="item.resourceId">-->
<!--</el-option>-->
<!--</el-select>-->
</el-form-item> </el-form-item>
<select-cartoon <select-cartoon
:isSelectCartoon="isSelectCartoon" :isSelectCartoon="isSelectCartoon"
...@@ -194,14 +142,14 @@ ...@@ -194,14 +142,14 @@
<!--新增时间节点--> <!--新增时间节点-->
<div class="form-div" v-if="activeTab == 'setNewRef'"> <div class="form-div" v-show="activeTab == 'setNewRef'">
<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;">
<el-form-item prop="timeNo"> <el-form-item prop="timeNo">
<el-input <el-input
v-model="timeForm.timeNo" v-model="timeForm.timeNo"
type="tel" type="number"
size="small" size="small"
placeholder="请输入" placeholder="请输入"
:disabled="isStandedTemplate" :disabled="isStandedTemplate"
...@@ -268,7 +216,7 @@ ...@@ -268,7 +216,7 @@
</div> </div>
</el-form-item> </el-form-item>
<div class="tips-contnt" v-if="timeForm.hasSelected"> <div class="tips-contnt" v-if="timeForm.hasSelected">
<p class="yellow-font">当前计划中共{{timeForm.totalNumber}}位居民(微信:{{timeForm.wechatPatientNum}}位,短信:{{timeForm.messagePatientNum}}位),本次定时推送任务在发送当日预计需要{{timeForm.messagePatientNum}}条短信额度(微信推送不消耗额度,建议您让居民关注云鹊健康微信公众号),务必提前确保短信额度的充足。</p> <p class="yellow-font">当前计划中共{{totalNumber}}位居民(微信:{{wechatPatientNum}}位,短信:{{messagePatientNum}}位),本次定时推送任务在发送当日预计需要{{messagePatientNum}}条短信额度(微信推送不消耗额度,建议您让居民关注云鹊健康微信公众号),务必提前确保短信额度的充足。</p>
<p>需要更多额度,请前往「云鹊医App-个人中心-啾啾币中心」兑换短信额度后再进行预约,您也可以联系云鹊医客服购买短信额度,客服电话:400-920-8877</p> <p>需要更多额度,请前往「云鹊医App-个人中心-啾啾币中心」兑换短信额度后再进行预约,您也可以联系云鹊医客服购买短信额度,客服电话:400-920-8877</p>
</div> </div>
<el-form-item label="随访登记表"> <el-form-item label="随访登记表">
...@@ -350,6 +298,9 @@ ...@@ -350,6 +298,9 @@
pushTimeOptions: [], pushTimeOptions: [],
formOptions: [], formOptions: [],
wechatPatientNum: 0,
messagePatientNum: 0,
totalNumber: 0,
} }
}, },
props: { props: {
...@@ -366,21 +317,20 @@ ...@@ -366,21 +317,20 @@
// setTimeNodeList1(){ // setTimeNodeList1(){
// return this.sortKey(this.setTimeNodeList,'timeNo') // return this.sortKey(this.setTimeNodeList,'timeNo')
// }, // },
item() { // item() {
if(this.setTimeNodeList.length == 0) { // if(this.setTimeNodeList.length == 0) {
return; // return;
}else { // }else {
return this.setTimeNodeList1[0].timeUnit; // return this.setTimeNodeList1[0].timeUnit;
} // }
}, // },
}, },
created() { created() {
this.setTimeNodeList = this.standedTimeNodeList this.setTimeNodeList = this.standedTimeNodeList
this.initNewForm(); this.initNewForm();
this.getConstData(); this.getConstData();
// 如果是固定模板 // 如果是固定模板
console.log(this.isStandedTemplate) // console.log(this.planId)
console.log(this.planId)
if(this.isStandedTemplate || this.planId){ if(this.isStandedTemplate || this.planId){
this.activeTab = 0; this.activeTab = 0;
} }
...@@ -390,29 +340,35 @@ ...@@ -390,29 +340,35 @@
this.setTimeNodeList = val this.setTimeNodeList = val
this.$forceUpdate(); //强制刷新,解决页面不会重新渲染的问题 this.$forceUpdate(); //强制刷新,解决页面不会重新渲染的问题
}, },
isStandedTemplate(val){
this.isStandedTemplate = val
console.log(this.isStandedTemplate)
},
setTimeNodeList(val){ setTimeNodeList(val){
this.setTimeNodeList = val this.setTimeNodeList = val
// console.log(this.setTimeNodeList)
if(this.setTimeNodeList.length>0) { if(this.setTimeNodeList.length>0) {
this.timeUnit = this.setTimeNodeList[0].timeUnit this.timeUnit = this.setTimeNodeList[0].timeUnit
this.setTimeNodeList.forEach(item=>{ this.setTimeNodeList.forEach(item=>{
item.isDisabled = true; item.isDisabled = true;
item.timeUnit = this.setTimeNodeList[0].timeUnit item.timeUnit = this.setTimeNodeList[0].timeUnit
if(item.remindList && item.remindList.length > 0){// remindDay if(item.remindList && item.remindList.length > 0){// remindDay 提醒医生预约提前天数
item.remindDay = [] item.remindDay = []
item.remindList.forEach((kkk)=>{ item.remindList.forEach((kkk)=>{
item.remindDay.push(kkk.startDays) item.remindDay.push(kkk.startDays)
}) })
} }
if(item.pushContentList && item.pushContentList.length){//pushDay if(item.pushContentList && item.pushContentList.length > 0){//pushDay 推送患教提前天数
let pushData = item.pushContentList[0] let pushData = item.pushContentList[0]
item.hasSelected = true
item.pushDay = pushData.startDays item.pushDay = pushData.startDays
item.comentMsg = { item.comentMsg = {
id: pushData.resourceId, id: pushData.resourceId,
header_name: pushData.sendContent header_name: pushData.sendContent
} }
} }
if(item.followupList && item.followupList.length > 0){ //followResourceId if(item.followupList && item.followupList.length > 0){ //followResourceId 随访量表
item.followResourceId = [] item.followResourceId = []
item.followupList.forEach((kkk)=>{ item.followupList.forEach((kkk)=>{
if(this.isStandedTemplate){ if(this.isStandedTemplate){
...@@ -428,11 +384,35 @@ ...@@ -428,11 +384,35 @@
} }
}); });
console.log(this.setTimeNodeList)
if(!this.isStandedTemplate){ if(!this.isStandedTemplate){
this.setTimeNodeList[0].isDisabled = false; this.setTimeNodeList[0].isDisabled = false;
} }
} }
}, },
patientIdList(val){
if(this.planId){//如果是修改计划,发送人数共享给各个时间节点
// 获取微信和短信用户数量
getPatientNumber({
patientIdList: val
}).then(res=>{
if(res.code=='000000'){
this.wechatPatientNum = res.data.wechatPatientNum;
this.messagePatientNum = res.data.messagePatientNum;
this.totalNumber = this.wechatPatientNum + this.messagePatientNum
}else{
this.$notify.success({
title: '提交失败',
message: res.message,
showClose: false
});
}
})
}
},
checkForm(val){ checkForm(val){
// console.log('触发 保存按钮的 校验',val) // console.log('触发 保存按钮的 校验',val)
// 触发 保存 校验 // 触发 保存 校验
...@@ -443,6 +423,8 @@ ...@@ -443,6 +423,8 @@
console.log('是否修改计划',this.planId) console.log('是否修改计划',this.planId)
console.log('是否显示设置时间按钮',this.showSetBtn) console.log('是否显示设置时间按钮',this.showSetBtn)
console.log('当前的检验是否通过了',this.isValied) console.log('当前的检验是否通过了',this.isValied)
console.log('表单数据',this.timeForm)
console.log('activeTab',this.activeTab)
if(this.planId){//修改计划 if(this.planId){//修改计划
...@@ -469,10 +451,27 @@ ...@@ -469,10 +451,27 @@
setTimeNodeList: this.setTimeNodeList setTimeNodeList: this.setTimeNodeList
}) })
}else{ }else{
// this.addNewNode('isSave') // 如果直接点击保存,需要进行对当前填写的表单进行校验
const isValied = this.checkCurrentForm(this.timeForm.formRef);
this.isValied = isValied
if(isValied){
if(this.setTimeNodeList.length>0 && this.timeForm.timeNo==this.setTimeNodeList[0].timeNo){
}else{
this.checkTimeIsRepeat(()=>{
this.activeTab = this.setTimeNodeList.length;
this.timeForm.formRef = 'form' + this.activeTab;
this.setTimeNodeList.push(this.timeForm)
})
}
// 新增成功之后
this.setTimeNodeList = this.sortKey(this.setTimeNodeList,'timeNo')
}
if(this.isValied && !this.showSetBtn){ if(this.isValied){
console.log(this.setTimeNodeList) // console.log(this.setTimeNodeList)
this.$emit('addListenSave',{ this.$emit('addListenSave',{
status: true, status: true,
setTimeNodeList: this.setTimeNodeList setTimeNodeList: this.setTimeNodeList
...@@ -495,23 +494,23 @@ ...@@ -495,23 +494,23 @@
this.timeForm.isDisabled = true; this.timeForm.isDisabled = true;
this.timeForm.timeUnit = this.setTimeNodeList[0].timeUnit; this.timeForm.timeUnit = this.setTimeNodeList[0].timeUnit;
} }
this.timeForm = val // this.timeForm = val
console.log('表单父组件的数据',this.timeForm) console.log('表单父组件的数据',this.timeForm)
}, },
setTimeNodeList1(val) { // setTimeNodeList1(val) {
if(val.length > 0){ // if(val.length > 0){
this.setTimeNodeList1.map(item=>{ // this.setTimeNodeList1.map(item=>{
item.isDisabled = true; // item.isDisabled = true;
item.timeUnit = this.setTimeNodeList1[0].timeUnit // item.timeUnit = this.setTimeNodeList1[0].timeUnit
this.markOptions.forEach((ob)=>{ // this.markOptions.forEach((ob)=>{
if(item.timeUnit==ob.no){ // if(item.timeUnit==ob.no){
item.timeUnitStr = ob.value // item.timeUnitStr = ob.value
} // }
}) // })
}); // });
this.setTimeNodeList1[0].isDisabled = false; // this.setTimeNodeList1[0].isDisabled = false;
} // }
}, // },
}, },
methods: { methods: {
// 一次性获取常量接口数据 // 一次性获取常量接口数据
...@@ -569,6 +568,9 @@ ...@@ -569,6 +568,9 @@
if(item.timeNo == this.timeForm.timeNo){ if(item.timeNo == this.timeForm.timeNo){
this.timeIsRepeat = true; this.timeIsRepeat = true;
} }
if(this.setTimeNodeList[0].timeNo==this.timeForm.timeNo){
this.timeIsRepeat = true;
}
}) })
}else{ }else{
this.timeIsRepeat = false; this.timeIsRepeat = false;
...@@ -594,10 +596,7 @@ ...@@ -594,10 +596,7 @@
} }
const isValied = this.checkCurrentForm(this.timeForm.formRef); const isValied = this.checkCurrentForm(this.timeForm.formRef);
// this.isValied = isValied this.isValied = isValied
// console.log('isVlie=98989898',isValied)
// console.log(this.activeTab)
// console.log(this.timeForm)
if(isValied){ if(isValied){
this.checkTimeIsRepeat(()=>{ this.checkTimeIsRepeat(()=>{
if(this.showSetBtn){ if(this.showSetBtn){
...@@ -639,29 +638,64 @@ ...@@ -639,29 +638,64 @@
followResourceIdStr: [], followResourceIdStr: [],
totalNumber: 0, totalNumber: 0,
wechatPatientNum: 0, wechatPatientNum: 0,
messagePatientNum: 0 messagePatientNum: 0,
change: true
}; };
this.timeForm = timeFormInit; this.timeForm = timeFormInit;
}, },
goSelectCartoon() { goSelectCartoon() {
this.isSelectCartoon = true; this.isSelectCartoon = true;
}, },
//关闭漫画
closeSelectCartoon(val) { closeSelectCartoon(val) {
this.isSelectCartoon = val.closeStatus; this.isSelectCartoon = val.closeStatus;
this.timeForm.hasSelected = val.hasSelected; this.timeForm.hasSelected = val.hasSelected;
// this.timeForm.comentMsg = val.hasSelected;
console.log('当前的tab是',this.activeTab)
this.pushConmentMsg(val.hasSelected)
},
// 接收漫画选择信息
pushConmentMsg(val){
this.timeForm.comentMsg = val
console.log('选择的漫画信息',this.timeForm.comentMsg)
let obj = {
startDays: this.timeForm.pushDay,
resourceId: this.timeForm.comentMsg.id,
sendContent: this.timeForm.comentMsg.header_name
}
this.timeForm.pushContentList[0] = obj
// activeTab
// getPatientNumber({
// patientIdList: this.patientIdList
// }).then(res=>{
// if(res.code=='000000'){
// this.timeForm.wechatPatientNum = res.data.wechatPatientNum;
// this.timeForm.messagePatientNum = res.data.messagePatientNum;
// this.timeForm.totalNumber = this.timeForm.wechatPatientNum + this.timeForm.messagePatientNum
// }else{
// this.$notify.success({
// title: '提交失败',
// message: res.message,
// showClose: false
// });
// }
// })
}, },
deleteClick() { deleteClick() {
this.timeForm.hasSelected = ''; this.timeForm.hasSelected = '';
}, },
deleteTimeNode(item, index) { deleteTimeNode(item, index) {
this.setTimeNodeList.splice(index, 1) this.setTimeNodeList.splice(index, 1)
this.activeTab = 0; // this.activeTab = 0;
// this.timeForm = this.setTimeNodeList[0];
if(this.setTimeNodeList.length == 0) { if(this.setTimeNodeList.length == 0) {
//新增一个form //新增一个form
this.activeTab = 'setNewRef'; this.activeTab = 'setNewRef';
this.showSetBtn = true; this.showSetBtn = true;
this.initNewForm(); this.initNewForm();
} }
this.$forceUpdate(); //强制刷新,解决页面不会重新渲染的问题
}, },
deleteAddNode() { deleteAddNode() {
this.showSetBtn = false; this.showSetBtn = false;
...@@ -679,15 +713,17 @@ ...@@ -679,15 +713,17 @@
startDays: item startDays: item
}) })
}) })
this.$forceUpdate(); //强制刷新,解决页面不会重新渲染的问题
}, },
changePushDay(val){ changePushDay(val){
console.log(val) console.log(val)
// console.log(this.timeForm.comentMsg)
let obj = { let obj = {
startDays: val, startDays: val,
resourceId: this.timeForm.comentMsg.id resourceId: this.timeForm.comentMsg.id,
sendContent: this.timeForm.comentMsg.header_name
} }
this.timeForm.pushContentList[0] = obj this.timeForm.pushContentList[0] = obj
this.$forceUpdate(); //强制刷新,解决页面不会重新渲染的问题
}, },
changeFollowId(val){ changeFollowId(val){
console.log(val) console.log(val)
...@@ -697,42 +733,7 @@ ...@@ -697,42 +733,7 @@
resourceId: item resourceId: item
}) })
}) })
}, this.$forceUpdate(); //强制刷新,解决页面不会重新渲染的问题
goSelectCartoon() {
this.isSelectCartoon = true;
},
closeSelectCartoon(val) {
this.isSelectCartoon = val.closeStatus;
this.timeForm.hasSelected = val.hasSelected;
},
deleteClick() {
this.timeForm.hasSelected = '';
},
pushConmentMsg(val){
this.timeForm.comentMsg = val
// console.log(val)
// console.log(this.timeForm.comentMsg)
let obj = {
startDays: this.timeForm.pushDay,
resourceId: this.timeForm.comentMsg.id
}
this.timeForm.pushContentList[0] = obj
getPatientNumber({
patientIdList: this.patientIdList
}).then(res=>{
if(res.code=='000000'){
this.timeForm.wechatPatientNum = res.data.wechatPatientNum;
this.timeForm.messagePatientNum = res.data.messagePatientNum;
this.timeForm.totalNumber = this.timeForm.wechatPatientNum + this.timeForm.messagePatientNum
}else{
this.$notify.success({
title: '提交失败',
message: res.message,
showClose: false
});
}
})
}, },
getNowTime() { getNowTime() {
...@@ -761,6 +762,11 @@ ...@@ -761,6 +762,11 @@
<style scoped lang="scss"> <style scoped lang="scss">
.add-time-content{ .add-time-content{
padding-top: 20px; padding-top: 20px;
.deletelist{
position: absolute;
right: -3px;
top: -3px;
}
.time-line-scroll{ .time-line-scroll{
width: 100%; width: 100%;
/*height: 60px;*/ /*height: 60px;*/
......
...@@ -319,7 +319,7 @@ ...@@ -319,7 +319,7 @@
}, },
watch: { watch: {
planDetail(val) { planDetail(val) {
console.log(val) // console.log(val)
this.planDetailData = val this.planDetailData = val
this.setTimeNodeList = val.fPlanTimeReqList this.setTimeNodeList = val.fPlanTimeReqList
if(this.planDetailData.resourceId){ if(this.planDetailData.resourceId){
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册