提交 79f2fbf5 编写于 作者: yi.li's avatar yi.li

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
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
</el-form-item> </el-form-item>
<el-form-item label="提醒医生预约居民"> <el-form-item label="提醒医生预约居民">
<el-select <el-select
v-if="!isStandedTemplate && !planId" v-if="!isStandedTemplate"
v-model="timeForm.remindDay" v-model="timeForm.remindDay"
multiple multiple
:multiple-limit=3 :multiple-limit=3
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
<!--固定模板需要填充--> <!--固定模板需要填充-->
<el-select <el-select
v-if="isStandedTemplate || planId" v-if="isStandedTemplate"
v-model="timeForm.remindDay" v-model="timeForm.remindDay"
multiple multiple
:multiple-limit=3 :multiple-limit=3
...@@ -74,7 +74,7 @@ ...@@ -74,7 +74,7 @@
<div style="display: flex"> <div style="display: flex">
<el-select <el-select
v-if="!isStandedTemplate && !planId" v-if="!isStandedTemplate"
v-model="timeForm.pushDay" v-model="timeForm.pushDay"
placeholder="选择推送时间" placeholder="选择推送时间"
clearable clearable
...@@ -89,7 +89,7 @@ ...@@ -89,7 +89,7 @@
<!--固定模板需要填充--> <!--固定模板需要填充-->
<el-select <el-select
v-if="isStandedTemplate || planId" v-if="isStandedTemplate"
v-model="timeForm.pushDay" v-model="timeForm.pushDay"
placeholder="选择推送时间" placeholder="选择推送时间"
clearable clearable
...@@ -114,7 +114,7 @@ ...@@ -114,7 +114,7 @@
</div> </div>
<el-form-item label="随访登记表"> <el-form-item label="随访登记表">
<el-select <el-select
v-if="!isStandedTemplate && !planId" v-if="!isStandedTemplate"
v-model="timeForm.followResourceId" v-model="timeForm.followResourceId"
multiple multiple
:multiple-limit=3 :multiple-limit=3
...@@ -130,7 +130,7 @@ ...@@ -130,7 +130,7 @@
<!--固定模板需要填充--> <!--固定模板需要填充-->
<el-select <el-select
v-if="isStandedTemplate || planId" v-if="isStandedTemplate"
v-model="timeForm.followResourceId" v-model="timeForm.followResourceId"
multiple multiple
:multiple-limit=3 :multiple-limit=3
...@@ -141,7 +141,7 @@ ...@@ -141,7 +141,7 @@
v-for="(item,index) in formOptionsCopy" v-for="(item,index) in formOptionsCopy"
:key="index" :key="index"
:label="item.sendContent" :label="item.sendContent"
:value="item.startDays"> :value="item.resourceId">
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
...@@ -224,14 +224,15 @@ ...@@ -224,14 +224,15 @@
hasSelected: this.timeForm.comentMsg hasSelected: this.timeForm.comentMsg
}) })
} }
if(this.timeForm.followupList && this.timeForm.followupList.length > 0){ //followResourceId if(this.timeForm.followupList && this.timeForm.followupList.length > 0){ //followResourceId
this.formOptionsCopy = this.timeForm.followupList this.formOptionsCopy = this.timeForm.followupList
this.timeForm.followResourceId = [] this.timeForm.followResourceId = []
this.timeForm.followupList.forEach((item)=>{ this.timeForm.followupList.forEach((item)=>{
this.timeForm.followResourceId.push(item.startDays) this.timeForm.followResourceId.push(item.resourceId)
}) })
} }
console.log(this.formOptionsCopy)
getPatientNumber({ getPatientNumber({
patientIdList: this.patientIdList patientIdList: this.patientIdList
}).then(res=>{ }).then(res=>{
......
...@@ -144,6 +144,7 @@ ...@@ -144,6 +144,7 @@
// console.log(this.isStandedTemplate) // console.log(this.isStandedTemplate)
if(this.isStandedTemplate || this.planId){ if(this.isStandedTemplate || this.planId){
this.deleteAddNode() this.deleteAddNode()
} }
} }
} }
...@@ -221,8 +222,10 @@ ...@@ -221,8 +222,10 @@
this.$emit('addListenSave',false) this.$emit('addListenSave',false)
} }
}else{ }else{
console.log(this.isStandedTemplate)
console.log(this.planId)
// 不是固定模板 // 不是固定模板
if(!this.isStandedTemplate){ if(!this.isStandedTemplate && !this.planId){
if(this.timeForm.remindDay.length>0){ if(this.timeForm.remindDay.length>0){
this.timeForm.remindDay.forEach((item)=>{ this.timeForm.remindDay.forEach((item)=>{
this.timeForm.remindList.push({ this.timeForm.remindList.push({
...@@ -360,6 +363,12 @@ ...@@ -360,6 +363,12 @@
changeTab(val){ changeTab(val){
console.log('当前的 activeTab ',val) console.log('当前的 activeTab ',val)
this.activeTab = val; this.activeTab = val;
console.log(this.setTimeNodeList)
console.log(this.setTimeNodeList1)
// this.setTimeNodeList1 = this.setTimeNodeList
// this.timeForm = this.setTimeNodeList[val];
// this.timeForm.formRef = this.getNowTime();
if(val == 'setNewRef') { if(val == 'setNewRef') {
this.initNewForm(); this.initNewForm();
......
...@@ -269,7 +269,6 @@ ...@@ -269,7 +269,6 @@
// this.setTimeNodeList = val.fPlanTimeDtoList // this.setTimeNodeList = val.fPlanTimeDtoList
this.setTimeNodeListOnCom(val.fPlanTimeReqList) this.setTimeNodeListOnCom(val.fPlanTimeReqList)
// console.log(this.setTimeNodeList) // console.log(this.setTimeNodeList)
// this.patientIdList = val.patientIdList
this.planId = String(val.id) this.planId = String(val.id)
if(val.resourceId){ if(val.resourceId){
this.isStandedTemplate = true this.isStandedTemplate = true
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册