提交 0c1d85df 编写于 作者: tao.wu's avatar tao.wu

no message

上级 cc2d2f27
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
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-if="!isStandedTemplate" v-model="timeForm.timeUnit" placeholder="请选择" :disabled="timeForm.isDisabled"> <el-select v-if="!isStandedTemplate && !planId" v-model="timeForm.timeUnit" placeholder="请选择" :disabled="timeForm.isDisabled">
<el-option <el-option
v-for="(item,index) in markOptions" v-for="(item,index) in markOptions"
:key="index" :key="index"
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
:value="item.no"> :value="item.no">
</el-option> </el-option>
</el-select> </el-select>
<el-select v-if="isStandedTemplate" v-model="timeForm.timeUnit" placeholder="请选择" :disabled="isStandedTemplate"> <el-select v-if="isStandedTemplate || planId" v-model="timeForm.timeUnit" placeholder="请选择" :disabled="isStandedTemplate">
<el-option <el-option
v-for="(item,index) in markOptions" v-for="(item,index) in markOptions"
:key="index" :key="index"
...@@ -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" v-if="!isStandedTemplate && !planId"
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" v-if="isStandedTemplate || planId"
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" v-if="!isStandedTemplate && !planId"
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" v-if="isStandedTemplate || planId"
v-model="timeForm.pushDay" v-model="timeForm.pushDay"
placeholder="选择推送时间" placeholder="选择推送时间"
clearable clearable
...@@ -100,11 +100,11 @@ ...@@ -100,11 +100,11 @@
:value="timeForm.pushDay"> :value="timeForm.pushDay">
</el-option> </el-option>
</el-select> </el-select>
<el-button plain class="ml20" @click="goSelectCartoon" v-if="!timeForm.hasSelected && !isStandedTemplate">选择健康漫画</el-button> <el-button plain class="ml20" @click="goSelectCartoon" v-if="!timeForm.hasSelected && !isStandedTemplate && !planId">选择健康漫画</el-button>
<div class="selected-div ml20" v-if="timeForm.hasSelected"> <div class="selected-div ml20" v-if="timeForm.hasSelected">
<span>{{timeForm.comentMsg.header_name}}</span> <span>{{timeForm.comentMsg.header_name}}</span>
<el-button type="text" @click="goSelectCartoon" v-if="!isStandedTemplate">重选</el-button> <el-button type="text" @click="goSelectCartoon" v-if="!isStandedTemplate && !planId">重选</el-button>
<el-button type="text" @click="deleteClick" v-if="!isStandedTemplate">删除</el-button> <el-button type="text" @click="deleteClick" v-if="!isStandedTemplate && !planId">删除</el-button>
</div> </div>
</div> </div>
</el-form-item> </el-form-item>
...@@ -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" v-if="!isStandedTemplate && !planId"
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" v-if="isStandedTemplate || planId"
v-model="timeForm.followResourceId" v-model="timeForm.followResourceId"
multiple multiple
:multiple-limit=3 :multiple-limit=3
...@@ -196,19 +196,22 @@ ...@@ -196,19 +196,22 @@
planId: String planId: String
}, },
watch: { watch: {
patientIdList(val){
},
timeForm(val){ timeForm(val){
this.timeForm = val this.timeForm = val
if(this.isStandedTemplate || this.planId){ if(this.isStandedTemplate || this.planId){
// console.log('表单子组件监听到的form数据',this.timeForm) // console.log('表单子组件监听到的form数据',this.timeForm)
this.timeForm.isDisabled = true this.timeForm.isDisabled = true
if(this.timeForm.remindList.length > 0){// remindDay if(this.timeForm.remindList && this.timeForm.remindList.length > 0){// remindDay
this.remindOptionsCopy = this.timeForm.remindList this.remindOptionsCopy = this.timeForm.remindList
this.timeForm.remindDay = [] this.timeForm.remindDay = []
this.timeForm.remindList.forEach((item)=>{ this.timeForm.remindList.forEach((item)=>{
this.timeForm.remindDay.push(item.startDays) this.timeForm.remindDay.push(item.startDays)
}) })
} }
if(this.timeForm.pushContentList.length > 0){//pushDay if(this.timeForm.pushContentList && this.timeForm.pushContentList.length > 0){//pushDay
let pushData = this.timeForm.pushContentList[0] let pushData = this.timeForm.pushContentList[0]
this.timeForm.pushDay = pushData.startDays this.timeForm.pushDay = pushData.startDays
this.timeForm.startDaysStr = pushData.startDaysStr this.timeForm.startDaysStr = pushData.startDaysStr
...@@ -221,7 +224,7 @@ ...@@ -221,7 +224,7 @@
hasSelected: this.timeForm.comentMsg hasSelected: this.timeForm.comentMsg
}) })
} }
if(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)=>{
...@@ -229,6 +232,26 @@ ...@@ -229,6 +232,26 @@
}) })
} }
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
});
}
})
// console.log(this.isStandedTemplate)
// console.log(this.formOptions)
// console.log(this.formOptionsCopy)
} }
}, },
formOptions(val){ formOptions(val){
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
v-if="setTimeNodeList.length > 0" v-if="setTimeNodeList.length > 0"
v-for="(item, index) in setTimeNodeList1" v-for="(item, index) in setTimeNodeList1"
:key="index" :key="index"
:label="index">开始后{{item.timeNo + item.timeUnitStr}} :label="index">开始后{{String(item.timeNo) + item.timeUnitStr}}
<i class="el-icon-circle-close-outline" v-if="!isStandedTemplate" @click="deleteTimeNode(item, index)"></i> <i class="el-icon-circle-close-outline" v-if="!isStandedTemplate" @click="deleteTimeNode(item, index)"></i>
</el-radio-button> </el-radio-button>
<el-radio-button <el-radio-button
......
...@@ -51,6 +51,7 @@ ...@@ -51,6 +51,7 @@
<set-time-node <set-time-node
:isStandedTemplate="isStandedTemplate" :isStandedTemplate="isStandedTemplate"
:setTimeNodeList="setTimeNodeList" :setTimeNodeList="setTimeNodeList"
:patientIdList="patientIdList"
@setTimeNodeListOnCom="setTimeNodeListOnCom" @setTimeNodeListOnCom="setTimeNodeListOnCom"
:checkForm="checkForm" :checkForm="checkForm"
:planId="planId" :planId="planId"
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册