提交 4a65e0e9 编写于 作者: 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
...@@ -250,6 +250,17 @@ export const getFollowupTemplate = (data) => { ...@@ -250,6 +250,17 @@ export const getFollowupTemplate = (data) => {
}) })
} }
// 获取随访量表固定模板
export const getFollowupTableTemplate = (id) => {
return fetch({
headers,
url: getFollowUpSC(`/followup/plans/templets/${id}`),
method: 'get',
data: {},
description: '获取随访量表固定模板',
})
}
// 获取量表列表 // 获取量表列表
export const getFormOptions = (data)=>{ export const getFormOptions = (data)=>{
return fetch({ return fetch({
......
...@@ -3,7 +3,6 @@ ...@@ -3,7 +3,6 @@
<el-dialog <el-dialog
title="已选居民" title="已选居民"
:visible.sync="showSelectedDialog" :visible.sync="showSelectedDialog"
v-if="isShowSelectedDialog"
:before-close="clickClose" :before-close="clickClose"
:close-on-click-modal="false" :close-on-click-modal="false"
:close-on-press-escape="false" :close-on-press-escape="false"
...@@ -13,7 +12,7 @@ ...@@ -13,7 +12,7 @@
<el-button type="primary" size="small" @click="continueAdd">继续添加</el-button> <el-button type="primary" size="small" @click="continueAdd">继续添加</el-button>
</div> </div>
<el-table <el-table
:data="hasSelectedList" :data="eachHasSelectedList"
center center
style="width: 100%;margin-top: 20px;"> style="width: 100%;margin-top: 20px;">
<el-table-column <el-table-column
...@@ -48,12 +47,13 @@ ...@@ -48,12 +47,13 @@
<el-row type="flex" justify="end" class="margin-top20"> <el-row type="flex" justify="end" class="margin-top20">
<el-pagination <el-pagination
background background
v-if="hasSelectedList.length" v-if="eachHasSelectedList.length"
@size-change="handleSizeChangePre" @size-change="handleSizeChangePre"
@current-change="handleCurrentChangePre" @current-change="handleCurrentChangePre"
layout="total, sizes, prev, pager, next, jumper" layout="total, sizes, prev, pager, next, jumper"
:current-page="paginationSet.pageNum" :current-page="paginationSet.pageNum"
:page-sizes="[10, 20, 50, 100]" :page-sizes="[5,10,50,100]"
:page-count="paginationSet.total"
:page-size="paginationSet.pageSize" :page-size="paginationSet.pageSize"
:total="paginationSet.total"> :total="paginationSet.total">
</el-pagination> </el-pagination>
...@@ -71,41 +71,41 @@ ...@@ -71,41 +71,41 @@
data() { data() {
return { return {
showSelectedDialog: true, showSelectedDialog: true,
eachHasSelectedList: [], // 由分页pageSize算出一页多少条数
paginationSet: { paginationSet: {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 5,
total: 0 total: 0
}, },
} }
}, },
props: { props: {
isShowSelectedDialog: { //是否显示model hasSelectedList: Array, // 所有已选人数
type: Boolean,
default: function() {
return false;
}
},
hasSelectedList: {
type: Array,
default: function() {
return []
}
}
}, },
mounted() { mounted() {
// if(this.planId) { this.eachHasSelectedList = this.getPageList(this.hasSelectedList)
// const totalLength = this.hasSelectedList.length
// } this.paginationSet.total = totalLength
}, },
methods: { methods: {
getPageList(list){
const pageNum = this.paginationSet.pageNum -1
const pageSize = this.paginationSet.pageSize
return list.slice(pageNum,pageSize)
},
clickClose() { clickClose() {
this.$emit('closeSelectedDialog',false) this.$emit('closeSelectedDialog',false)
}, },
continueAdd() { continueAdd() {
this.$emit('continueAdd', false) this.$emit('continueAdd', false)
}, },
handleSizeChangePre() {}, handleSizeChangePre(val) {
handleCurrentChangePre() {}, console.log(val)
},
handleCurrentChangePre(val) {
this.paginationSet.pageNum = val
this.eachHasSelectedList = this.getPageList(this.hasSelectedList)
},
} }
} }
</script> </script>
......
...@@ -133,6 +133,15 @@ ...@@ -133,6 +133,15 @@
allSelects: [], allSelects: [],
eachSelects: [],//仅仅是操作选择的总人员 eachSelects: [],//仅仅是操作选择的总人员
// totalSelect: [],// 当前所选的人 // totalSelect: [],// 当前所选的人
labelId: '',
diseaseId: '',
age: '',
sex: '',
ageBegin: '',
ageEnd: '',
srvPackageId: '',
searchCondition: '',
patientsData: [], patientsData: [],
searchData: { searchData: {
sex: '性别', sex: '性别',
...@@ -173,41 +182,58 @@ ...@@ -173,41 +182,58 @@
watch: { watch: {
isShowSelectPatient(val){ isShowSelectPatient(val){
if(val){ if(val){
this.getPatientsList({pageNum: this.paginationSet.pageNum}) this.getPatientsList()
// 获取常量 性别、年龄 // 获取常量 性别、年龄
getBasicData({ getBasicData({
numList: 'P057,P006' numList: 'P057,P006'
}).then(res=>{ }).then(res=>{
this.sexOptions = [{
no: '',
value: '性别'
}];
this.sexOptions = this.sexOptions.concat(res.data.P006);//性别 this.sexOptions = this.sexOptions.concat(res.data.P006);//性别
this.ageOptions = [{
no: '',
value: '年龄范围'
}]
this.ageOptions = this.ageOptions.concat(res.data.P057);//年龄段 this.ageOptions = this.ageOptions.concat(res.data.P057);//年龄段
}) })
// 获取所有疾病 // 获取所有疾病
getAllDiseases().then(res=>{ getAllDiseases().then(res=>{
this.diseaseOptions = [{
diseaseId: '',
diseaseName: '基础疾病'
}]
this.diseaseOptions = this.diseaseOptions.concat(res.data); this.diseaseOptions = this.diseaseOptions.concat(res.data);
}) })
// 获取所有分组 // 获取所有分组
getAllLabels({type: 1}).then(res=>{ getAllLabels({type: 1}).then(res=>{
this.labelOptions = [{
labelId: '',
labelName: '分组'
}]
this.labelOptions = this.labelOptions.concat(res.data.labelNameList); this.labelOptions = this.labelOptions.concat(res.data.labelNameList);
}) })
} }
} }
}, },
methods: { methods: {
getPatientsList(opts){ getPatientsList(){
getPlanPatientsList({ const data = {
pageSize: this.paginationSet.pageSize, pageSize: this.paginationSet.pageSize,
pageNo: opts.pageNum, pageNo: this.paginationSet.pageNum,
labelId:opts.labelId, labelId:this.labelId,
diseaseId: opts.diseaseId, diseaseId: this.diseaseId,
age: opts.age, age: this.age,
sex: opts.sex, sex: this.sex,
ageBegin: opts.ageBegin, ageBegin: this.ageBegin,
ageEnd: opts.ageEnd, ageEnd: this.ageEnd,
srvPackageId:opts.srvPackageId, srvPackageId:this.srvPackageId,
searchCondition:opts.searchCondition, searchCondition:this.searchCondition,
}).then(res=>{ }
getPlanPatientsList(data).then(res=>{
if(res.data.patientList){ if(res.data.patientList){
this.patientsData = res.data.patientList //接口获取的当页居民 this.patientsData = res.data.patientList //接口获取的当页居民
this.getSex() this.getSex()
...@@ -222,6 +248,8 @@ ...@@ -222,6 +248,8 @@
} }
}) })
} }
}else{
this.patientsData = []
} }
}) })
}, },
...@@ -242,15 +270,14 @@ ...@@ -242,15 +270,14 @@
}, },
// 选择居民 // 选择居民
handleSelectionChange(val) { handleSelectionChange(val) {
console.log('每次选中居民',val) // console.log('每次选中居民',val)
this.eachSelects = val this.eachSelects = val
}, },
// 切换分页 // 切换分页
handleCurrentChangePre(val) { handleCurrentChangePre(val) {
console.log('handleCurrentChangePre') // console.log('handleCurrentChangePre')
this.getPatientsList({ this.paginationSet.pageNum = val
pageNum: val this.getPatientsList()
})
}, },
clickClose(){ clickClose(){
this.$emit('closeSelectPatient',false) this.$emit('closeSelectPatient',false)
...@@ -259,47 +286,35 @@ ...@@ -259,47 +286,35 @@
this.$emit('sureSelectPatient',false,this.eachSelects) this.$emit('sureSelectPatient',false,this.eachSelects)
}, },
handleSizeChangePre(val) { handleSizeChangePre(val) {
console.log('handleSizeChangePre') // console.log('handleSizeChangePre')
this.paginationSet.pageSize = val this.paginationSet.pageSize = val
this.getPatientsList({ this.getPatientsList()
pageNum:this.paginationSet.pageNum
})
}, },
changeSex(val){ changeSex(val){
this.getPatientsList({ this.sex = val
sex: val, this.getPatientsList()
pageNum: this.paginationSet.pageNum
})
}, },
changeAge(val){ changeAge(val){
if(val=='年龄范围'){ if(val=='年龄范围'){
val = null val = null
} }
this.getPatientsList({ this.age = val;
age: val, this.ageBegin = this.ageDate(val).ageBegin;
ageBegin: this.ageDate(val).ageBegin, this.ageEnd = this.ageDate(val).ageEnd;
ageEnd: this.ageDate(val).ageEnd, this.getPatientsList()
pageNum: this.paginationSet.pageNum
})
}, },
changeDisease(val){ changeDisease(val){
this.getPatientsList({ this.diseaseId = val
diseaseId: val, this.getPatientsList()
pageNum: this.paginationSet.pageNum
})
}, },
changeLabel(val){ changeLabel(val){
this.getPatientsList({ this.labelId = val
labelId: val, this.getPatientsList()
pageNum: this.paginationSet.pageNum
})
}, },
searchHandler() { searchHandler() {
const searchCondition = this.searchData.searchCondition const searchCondition = this.searchData.searchCondition
this.getPatientsList({ this.searchCondition = searchCondition
searchCondition: searchCondition, this.getPatientsList()
pageNum: this.paginationSet.pageNum
})
}, },
ageDate(val){ ageDate(val){
var ageObj; var ageObj;
......
<template> <template>
<div> <div>
<p><el-button plain icon="el-icon-plus" size="small" round @click="addNewNode">新增时间节点</el-button><br></p> <p><el-button plain icon="el-icon-plus" size="small" round v-if="!isStandedTemplate" @click="addNewNode">新增时间节点</el-button><br></p>
<div class="add-time-content"> <div class="add-time-content">
<div class="time-line-scroll"> <div class="time-line-scroll">
...@@ -10,11 +10,11 @@ ...@@ -10,11 +10,11 @@
v-for="(item, index) in setTimeNodeList1" v-for="(item, index) in setTimeNodeList1"
:key="index" :key="index"
:label="index">开始后{{item.timeNo + item.timeUnitStr}} :label="index">开始后{{item.timeNo + item.timeUnitStr}}
<i class="el-icon-circle-close-outline" @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
label="setNewRef" label="setNewRef"
v-if="showSetBtn">设置随访时间 v-if="showSetBtn && !isStandedTemplate">设置随访时间
<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>
</el-radio-button> </el-radio-button>
</el-radio-group> </el-radio-group>
...@@ -29,6 +29,8 @@ ...@@ -29,6 +29,8 @@
> >
<set-time-form <set-time-form
v-if="index == activeTab" v-if="index == activeTab"
:isStandedTemplate="isStandedTemplate"
:planId="planId"
:timeForm="timeFormHas" :timeForm="timeFormHas"
:valBegin="valBegin" :valBegin="valBegin"
:saveValiedBegin="saveValiedBegin" :saveValiedBegin="saveValiedBegin"
...@@ -46,6 +48,7 @@ ...@@ -46,6 +48,7 @@
<!--新增时间节点--> <!--新增时间节点-->
<div class="form-div" v-if="activeTab == 'setNewRef'"> <div class="form-div" v-if="activeTab == 'setNewRef'">
<set-time-form <set-time-form
:planId="planId"
:timeForm="timeForm" :timeForm="timeForm"
:valBegin="valBegin" :valBegin="valBegin"
:saveValiedBegin="saveValiedBegin" :saveValiedBegin="saveValiedBegin"
...@@ -87,7 +90,9 @@ ...@@ -87,7 +90,9 @@
activeTab: null, activeTab: null,
currentFormRef: 1, currentFormRef: 1,
showSetBtn: true, showSetBtn: true,
timeForm: {}, timeForm: {
formRef: ''
},
timeFormRules: { timeFormRules: {
timeNo: [{ required: true, message: '请添加随访时间', trigger: 'change' }], timeNo: [{ required: true, message: '请添加随访时间', trigger: 'change' }],
timeUnit: [{ required: true, message: '请添加随访时间', trigger: 'change' }], timeUnit: [{ required: true, message: '请添加随访时间', trigger: 'change' }],
...@@ -99,6 +104,8 @@ ...@@ -99,6 +104,8 @@
setTimeNodeList: Array, setTimeNodeList: Array,
patientIdList: Array, patientIdList: Array,
checkForm: Boolean, checkForm: Boolean,
isStandedTemplate: Boolean,
planId: String,
}, },
computed: { computed: {
...mapState('planManage',{ ...mapState('planManage',{
...@@ -119,16 +126,31 @@ ...@@ -119,16 +126,31 @@
} }
}, },
}, },
created() {
this.initNewForm();
this.getConstData()
//初始化一个随访时间节点
this.activeTab = 'setNewRef';
this.timeForm.formRef = this.getNowTime();
},
watch: { watch: {
setTimeNodeList(val){ setTimeNodeList(val){
this.setTimeNodeList = val this.setTimeNodeList = val
if(this.setTimeNodeList.length>0) { if(this.setTimeNodeList.length>0) {
if(this.timeForm){
this.timeForm.isDisabled = true; this.timeForm.isDisabled = true;
this.timeForm.timeUnit = this.setTimeNodeList[0].timeUnit; this.timeForm.timeUnit = this.setTimeNodeList[0].timeUnit;
// console.log(this.isStandedTemplate)
if(this.isStandedTemplate || this.planId){
this.deleteAddNode()
}
} }
}
}, },
checkForm(val){ checkForm(val){
console.log('触发 保存 校验',val) // console.log('触发 保存 校验',val)
// 触发 保存 校验 // 触发 保存 校验
this.saveValiedBegin = val this.saveValiedBegin = val
...@@ -139,7 +161,7 @@ ...@@ -139,7 +161,7 @@
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){
...@@ -157,14 +179,6 @@ ...@@ -157,14 +179,6 @@
// this.setTimeNodeList1 = this.sortKey(this.setTimeNodeList,'timeNo') // this.setTimeNodeList1 = this.sortKey(this.setTimeNodeList,'timeNo')
}, },
}, },
created() {
this.initNewForm();
this.getConstData()
//初始化一个随访时间节点
this.activeTab = 'setNewRef';
this.timeForm.formRef = this.getNowTime();
console.log(this.timeForm.formRef)
},
methods: { methods: {
...mapActions('planManage', [ ...mapActions('planManage', [
'getDateUnit', 'getDateUnit',
...@@ -207,6 +221,8 @@ ...@@ -207,6 +221,8 @@
this.$emit('addListenSave',false) this.$emit('addListenSave',false)
} }
}else{ }else{
// 不是固定模板
if(!this.isStandedTemplate){
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({
...@@ -214,6 +230,7 @@ ...@@ -214,6 +230,7 @@
}) })
}) })
} }
console.log(this.timeForm)
console.log(this.timeForm.followResourceIdStr) console.log(this.timeForm.followResourceIdStr)
if(this.timeForm.pushDay){ if(this.timeForm.pushDay){
this.timeForm.pushContentList.push({ this.timeForm.pushContentList.push({
...@@ -244,6 +261,13 @@ ...@@ -244,6 +261,13 @@
this.timeForm.formRef = this.getNowTime(); this.timeForm.formRef = this.getNowTime();
this.timeForm.isDisabled = true; this.timeForm.isDisabled = true;
} }
}else{// 是固定模板
// 只能保存提交
// this.setTimeNodeList.push(this.timeForm);
this.$emit('setTimeNodeListOnCom',this.setTimeNodeList)
this.$emit('addListenSave',true)
}
} }
// 校验没通过 // 校验没通过
...@@ -257,7 +281,7 @@ ...@@ -257,7 +281,7 @@
}, },
// 点击 新增时间节点 // 点击 新增时间节点
addNewNode() { addNewNode() {
console.log('是否新增一个新的时间节点 ' + (this.activeTab == 'setNewRef')) // console.log('是否新增一个新的时间节点 ' + (this.activeTab == 'setNewRef'))
this.checkTimeIsRepeat() this.checkTimeIsRepeat()
if(this.timeIsRepeat){ if(this.timeIsRepeat){
this.$notify.success({ this.$notify.success({
...@@ -281,8 +305,6 @@ ...@@ -281,8 +305,6 @@
// 验证是否重复 // 验证是否重复
checkTimeIsRepeat(){ checkTimeIsRepeat(){
this.timeIsRepeat = false; this.timeIsRepeat = false;
console.log('+++',this.setTimeNodeList)
console.log('+++',this.timeForm.timeNo)
if(this.setTimeNodeList.length > 0){ if(this.setTimeNodeList.length > 0){
if(this.showSetBtn){ if(this.showSetBtn){
this.setTimeNodeList.forEach(item=>{ this.setTimeNodeList.forEach(item=>{
...@@ -304,7 +326,7 @@ ...@@ -304,7 +326,7 @@
// 初始化新的表单 // 初始化新的表单
initNewForm(){ initNewForm(){
const timeFormInit = { const timeFormInit = {
formRef: '', formRef: this.getNowTime(),
type: '',//随访方式 type: '',//随访方式
timeNo: '',//随访时间 timeNo: '',//随访时间
timeUnit: '',//随访时间单位 timeUnit: '',//随访时间单位
...@@ -336,9 +358,8 @@ ...@@ -336,9 +358,8 @@
this.timeForm.hasSelected = ''; this.timeForm.hasSelected = '';
}, },
changeTab(val){ changeTab(val){
this.activeTab = val;
console.log('当前的 activeTab ',val) console.log('当前的 activeTab ',val)
this.activeTab = val;
if(val == 'setNewRef') { if(val == 'setNewRef') {
this.initNewForm(); this.initNewForm();
......
...@@ -81,6 +81,7 @@ ...@@ -81,6 +81,7 @@
<div class="edit-plan-content" v-if="activeTab === 'second'"> <div class="edit-plan-content" v-if="activeTab === 'second'">
<set-time-node <set-time-node
ref="getTimeNodeList" ref="getTimeNodeList"
:isStandedTemplate="isStandedTemplate"
:setTimeNodeList="setTimeNodeList" :setTimeNodeList="setTimeNodeList"
@setTimeNodeListOnCom="setTimeNodeListOnCom" @setTimeNodeListOnCom="setTimeNodeListOnCom"
:patientIdList="baseInfo.patientIdList" :patientIdList="baseInfo.patientIdList"
...@@ -97,7 +98,7 @@ ...@@ -97,7 +98,7 @@
@sureSelectPatient="sureSelectPatient(arguments)" @sureSelectPatient="sureSelectPatient(arguments)"
/> />
<has-selected-patient <has-selected-patient
:isShowSelectedDialog="isShowSelectedDialog" v-if="isShowSelectedDialog"
:hasSelectedList="hasSelectedList" :hasSelectedList="hasSelectedList"
@closeSelectedDialog="closeSelectedDialog" @closeSelectedDialog="closeSelectedDialog"
@continueAdd="continueAdd" @continueAdd="continueAdd"
...@@ -110,7 +111,7 @@ ...@@ -110,7 +111,7 @@
import SelectPatient from '@/views/followup/plan-manage/dialog/select-patient'; import SelectPatient from '@/views/followup/plan-manage/dialog/select-patient';
import HasSelectedPatient from '@/views/followup/plan-manage/dialog/has-selected-patient'; import HasSelectedPatient from '@/views/followup/plan-manage/dialog/has-selected-patient';
import SetTimeNode from '@/views/followup/plan-manage/dialog/set-time-node'; import SetTimeNode from '@/views/followup/plan-manage/dialog/set-time-node';
import {createFollowPlan} from '@/utils/followup/followapis' import { createFollowPlan, getFollowupTableTemplate } from '@/utils/followup/followapis'
import { mapState, mapActions } from 'vuex' import { mapState, mapActions } from 'vuex'
export default { export default {
...@@ -123,6 +124,8 @@ ...@@ -123,6 +124,8 @@
}, },
data() { data() {
return { return {
isStandedTemplate: false, // 是否是固定的随访模板
standedTimeNodeList: [], // 如果是国定随访模板,获取固定数据后不可更改,只读
checkForm: false, checkForm: false,
/*面包屑配置*/ /*面包屑配置*/
curmbFirst: '随访管理', curmbFirst: '随访管理',
...@@ -186,7 +189,7 @@ ...@@ -186,7 +189,7 @@
}, },
// 监听保存校验结果 // 监听保存校验结果
addListenSave(val){ addListenSave(val){
console.log('监听保存校验结果',val) // console.log('监听保存校验结果',val)
this.checkForm = false this.checkForm = false
if(val){ if(val){
this.baseInfo.fPlanTimeReqList = this.setTimeNodeList this.baseInfo.fPlanTimeReqList = this.setTimeNodeList
...@@ -216,7 +219,7 @@ ...@@ -216,7 +219,7 @@
// console.log('保存setTimeNodeList1',this.$refs.getTimeNodeList.setTimeNodeList1) // console.log('保存setTimeNodeList1',this.$refs.getTimeNodeList.setTimeNodeList1)
// console.log('store中的setTimeNodeList数据为=>',JSON.stringify(this.setTimeNodeList)) // console.log('store中的setTimeNodeList数据为=>',JSON.stringify(this.setTimeNodeList))
}else{ }else{
console.log('点击保存按钮之后校验失败') // console.log('点击保存按钮之后校验失败')
} }
}, },
setTimeNodeListOnCom(val){ setTimeNodeListOnCom(val){
...@@ -278,6 +281,17 @@ ...@@ -278,6 +281,17 @@
} }
if (valid) { if (valid) {
// this.$refs['statusForm'].resetFields(); // this.$refs['statusForm'].resetFields();
// console.log('当前选择的随访模板id为',this.baseInfo.resourceId)
if(this.baseInfo.resourceId){
this.isStandedTemplate = true
getFollowupTableTemplate(this.baseInfo.resourceId).then(res=>{
this.standedTimeNodeList = res.data
this.getTimeNodeList(this.standedTimeNodeList)
})
}else{
this.isStandedTemplate = false
}
this.activeTab = 'second'; this.activeTab = 'second';
} else { } else {
return false; return false;
...@@ -288,6 +302,12 @@ ...@@ -288,6 +302,12 @@
this.activeTab = 'first'; this.activeTab = 'first';
}, },
}, },
beforeRouteLeave (to, from, next) {
// 离开页面,需要清除缓存的时间节点
this.getTimeNodeList([])
next()
},
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
......
...@@ -49,9 +49,11 @@ ...@@ -49,9 +49,11 @@
</el-form> </el-form>
<div class="edit-plan-content"> <div class="edit-plan-content">
<set-time-node <set-time-node
:isStandedTemplate="isStandedTemplate"
:setTimeNodeList="setTimeNodeList" :setTimeNodeList="setTimeNodeList"
@setTimeNodeListOnCom="setTimeNodeListOnCom" @setTimeNodeListOnCom="setTimeNodeListOnCom"
:checkForm="checkForm" :checkForm="checkForm"
:planId="planId"
@addListenSave="addListenSave" @addListenSave="addListenSave"
/> />
</div> </div>
...@@ -63,7 +65,7 @@ ...@@ -63,7 +65,7 @@
@sureSelectPatient="sureSelectPatient(arguments)"> @sureSelectPatient="sureSelectPatient(arguments)">
</select-patient> </select-patient>
<has-selected-patient <has-selected-patient
:isShowSelectedDialog="isShowSelectedDialog" v-if="isShowSelectedDialog"
:hasSelectedList="hasSelectedList" :hasSelectedList="hasSelectedList"
@closeSelectedDialog="closeSelectedDialog" @closeSelectedDialog="closeSelectedDialog"
@continueAdd="continueAdd" /> @continueAdd="continueAdd" />
...@@ -92,6 +94,9 @@ ...@@ -92,6 +94,9 @@
}, },
data() { data() {
return { return {
planId: '',
isStandedTemplate: false, // 是否是固定的随访模板
standedTimeNodeList: [], // 如果是国定随访模板,获取固定数据后不可更改,只读
checkForm: false, checkForm: false,
patientIdList: [], //获取的病人列表 patientIdList: [], //获取的病人列表
hasSelectedList: [], //已选居民 hasSelectedList: [], //已选居民
...@@ -257,11 +262,17 @@ ...@@ -257,11 +262,17 @@
}, },
watch: { watch: {
planDetail(val) { planDetail(val) {
// console.log(val)
// this.setTimeNodeList = val.fPlanTimeDtoList // this.setTimeNodeList = val.fPlanTimeDtoList
this.setTimeNodeListOnCom(val.fPlanTimeReqList) this.setTimeNodeListOnCom(val.fPlanTimeReqList)
console.log(val) // console.log(this.setTimeNodeList)
this.patientIdList = val.patientIdList this.patientIdList = val.patientIdList
// this.hasSelectedList = this.planId = String(val.id)
if(val.resourceId){
this.isStandedTemplate = true
}else{
this.isStandedTemplate = false
}
}, },
} }
} }
......
...@@ -169,11 +169,13 @@ ...@@ -169,11 +169,13 @@
pageNo: currentPage || this.paginationSet.pageNo, pageNo: currentPage || this.paginationSet.pageNo,
pageSize: this.paginationSet.pageSize, pageSize: this.paginationSet.pageSize,
}); });
if(this.recordList.enteringDtos){
if(this.recordList.enteringDtos.length > 0) { if(this.recordList.enteringDtos.length > 0) {
this.hasData = true; this.hasData = true;
}else { }else {
this.hasData = false; this.hasData = false;
} }
}
const {pageNo, pageSize, count, finishedCount, unfinishedCount} = this.recordList; const {pageNo, pageSize, count, finishedCount, unfinishedCount} = this.recordList;
if(this.activeName == ''){ if(this.activeName == ''){
this.paginationSet.total = count; this.paginationSet.total = count;
...@@ -237,8 +239,8 @@ ...@@ -237,8 +239,8 @@
this.isShowChangeDialog = true; this.isShowChangeDialog = true;
}, },
sendRow(row){ sendRow(row){
// let saasUrl = getSaasDomain(`/pica-frontend/patientEduManage/pica_patient_edu_manage.html#/pageTab/message?patientId=${row.patientId}&token=D74A6C7C61564EB1B3DC83251F33D173`); let saasUrl = getSaasDomain(`/pica-frontend/patientEduManage/pica_patient_edu_manage.html#/pageTab/message?patientId=${row.patientId}&nickname=${row.nickname}&token=${this._token}`);
let saasUrl = getSaasDomain(`/pica-frontend/patientEduManage/pica_patient_edu_manage.html#/pageTab/message?patientId=${row.patientId}&token=${this._token}`); // let saasUrl = getSaasDomain(`/pica-frontend/patientEduManage/pica_patient_edu_manage.html#/pageTab/message?patientId=${row.patientId}&nickname=${row.nickname}&token=8143DC2A026B4602BF7B746FB5AEE9A1`);
window.open(saasUrl) window.open(saasUrl)
}, },
handleSizeChangePre(pageSize){ handleSizeChangePre(pageSize){
......
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
</div> </div>
<div class="item"> <div class="item">
<span class="title">本次推送:</span> <span class="title">本次推送:</span>
<p>{{checkData.sendWechatAppointSize + checkData.sendMobileAppointSize}}条(微信不限额推送{{checkData.sendWechatAppointSize}}条;使用短信额度推送{{checkData.sendMobileAppointSize}}条)</p> <p>{{checkData.sendWechatAppointSize + checkData.sendMobileSmsCount}}条(微信不限额推送{{checkData.sendWechatAppointSize}}条;使用短信额度推送{{checkData.sendMobileSmsCount}}条)</p>
</div> </div>
<div class="item"> <div class="item">
<span class="title">推送成功后剩余额度:</span> <span class="title">推送成功后剩余额度:</span>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册