提交 8f13c9c8 编写于 作者: tao.wu's avatar tao.wu

no message

上级 ab4061c4
...@@ -16,25 +16,25 @@ ...@@ -16,25 +16,25 @@
<el-button class="button-green" type="primary" @click="saveModify" size="small">保 存</el-button> <el-button class="button-green" type="primary" @click="saveModify" size="small">保 存</el-button>
</div> </div>
</div> </div>
<el-form ref="baseInfo" :model="planDetail" :rules="rules" label-suffix=":" label-width="140px"> <el-form ref="baseInfo" :model="planDetailData" :rules="rules" label-suffix=":" label-width="140px">
<el-form-item label="随访计划名称" prop="name"> <el-form-item label="随访计划名称" prop="name">
<el-input v-model="planDetail.name" maxlength="20" style="width: 30%" size="small" clearable></el-input> <el-input v-model="planDetailData.name" maxlength="20" style="width: 30%" size="small" clearable></el-input>
</el-form-item> </el-form-item>
<el-form-item label="随访居民" required> <el-form-item label="随访居民" required>
<div class="select-patients"> <div class="select-patients">
<el-button plain icon="el-icon-plus" size="small" @click="selectPatientHandler">{{planDetail.patientIdList ? '继续添加' : '选择居民'}}</el-button><br> <el-button plain icon="el-icon-plus" size="small" @click="selectPatientHandler">{{planDetailData.patientIdList ? '继续添加' : '选择居民'}}</el-button><br>
<el-button type="text" class="mt10" size="small" @click="seeSelectedHandler" v-if="planDetail.patientIdList">已选{{hasSelectedList.length}}<i class="el-icon-arrow-right"></i></el-button> <el-button type="text" class="mt10" size="small" @click="seeSelectedHandler" v-if="planDetailData.patientIdList">已选{{hasSelectedList.length}}<i class="el-icon-arrow-right"></i></el-button>
</div> </div>
</el-form-item> </el-form-item>
<el-form-item label="随访模板" prop="resourceName"> <el-form-item label="随访模板" prop="resourceName">
{{planDetail.resourceName}} {{planDetailData.resourceName}}
</el-form-item> </el-form-item>
<el-form-item label="随访开始时间" prop="timeStr"> <el-form-item label="随访开始时间" prop="timeStr">
{{planDetail.timeStr}} <el-button class="btn-text" type="text" @click="goToFollowTime" size="small">查看全部></el-button> {{planDetailData.timeStr}} <el-button class="btn-text" type="text" @click="goToFollowTime" size="small">查看全部></el-button>
</el-form-item> </el-form-item>
<el-form-item label="备注"> <el-form-item label="备注">
<el-select <el-select
v-model="planDetail.remarksStatus" v-model="planDetailData.remarksStatus"
placeholder="请选择随访种类" placeholder="请选择随访种类"
size="small" size="small"
clearable> clearable>
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
<set-time-node <set-time-node
:isStandedTemplate="isStandedTemplate" :isStandedTemplate="isStandedTemplate"
:setTimeNodeList="setTimeNodeList" :setTimeNodeList="setTimeNodeList"
:patientIdList="patientIdList" :patientIdList="planDetailData.patientIdList"
@setTimeNodeListOnCom="setTimeNodeListOnCom" @setTimeNodeListOnCom="setTimeNodeListOnCom"
:checkForm="checkForm" :checkForm="checkForm"
:planId="planId" :planId="planId"
...@@ -61,7 +61,7 @@ ...@@ -61,7 +61,7 @@
</div> </div>
<select-patient <select-patient
:isShowSelectPatient="isShowSelectPatient" :isShowSelectPatient="isShowSelectPatient"
:patientIdList="patientIdList" :patientIdList="planDetailData.patientIdList"
@closeSelectPatient="closeSelectPatient" @closeSelectPatient="closeSelectPatient"
@sureSelectPatient="sureSelectPatient(arguments)"> @sureSelectPatient="sureSelectPatient(arguments)">
</select-patient> </select-patient>
...@@ -95,6 +95,7 @@ ...@@ -95,6 +95,7 @@
}, },
data() { data() {
return { return {
planDetailData: {},
planId: '', planId: '',
isStandedTemplate: false, // 是否是固定的随访模板 isStandedTemplate: false, // 是否是固定的随访模板
standedTimeNodeList: [], // 如果是国定随访模板,获取固定数据后不可更改,只读 standedTimeNodeList: [], // 如果是国定随访模板,获取固定数据后不可更改,只读
...@@ -175,12 +176,12 @@ ...@@ -175,12 +176,12 @@
this.isShowSelectPatient = getArguments[0]; this.isShowSelectPatient = getArguments[0];
const selectPatients = getArguments[1]; // 每次选中获取的人 const selectPatients = getArguments[1]; // 每次选中获取的人
selectPatients.forEach((item)=>{ selectPatients.forEach((item)=>{
if(!this.patientIdList.includes(item.patientId)){ if(!this.planDetailData.patientIdList.includes(item.patientId)){
this.hasSelectedList.push(item) this.hasSelectedList.push(item)
this.patientIdList.push(item.patientId); // 页面中数据存储所有选择的人,没有去重 this.planDetailData.patientIdList.push(item.patientId); // 页面中数据存储所有选择的人,没有去重
} }
}) })
this.hasSelectedNum = this.patientIdList.length; this.planDetailData.hasSelectedNum = this.patientIdList.length;
}, },
continueAdd(val) { continueAdd(val) {
this.isShowSelectedDialog = val; this.isShowSelectedDialog = val;
...@@ -228,8 +229,9 @@ ...@@ -228,8 +229,9 @@
if(val){ if(val){
// 关闭弹层,继续创建 // 关闭弹层,继续创建
this.planDetail.joinTime = '2019-04-09T16:00:00.000+0000' this.planDetail.joinTime = '2019-04-09T16:00:00.000+0000'
// this.setFollowPlan(this.planDetail) this.planDetailData.fPlanTimeReqList = this.setTimeNodeList
createFollowPlan(this.planDetail).then(res=>{ console.log('修改计划前的数据===>>>',this.planDetailData)
createFollowPlan(this.planDetailData).then(res=>{
if(res.code=='000000'){ if(res.code=='000000'){
this.getTimeNodeList([]); this.getTimeNodeList([]);
// 各种校验通过后,提交编辑内容,toast提示 // 各种校验通过后,提交编辑内容,toast提示
...@@ -266,7 +268,7 @@ ...@@ -266,7 +268,7 @@
watch: { watch: {
planDetail(val) { planDetail(val) {
// console.log(val) // console.log(val)
// this.setTimeNodeList = val.fPlanTimeDtoList this.planDetailData = val
this.setTimeNodeListOnCom(val.fPlanTimeReqList) this.setTimeNodeListOnCom(val.fPlanTimeReqList)
// console.log(this.setTimeNodeList) // console.log(this.setTimeNodeList)
this.planId = String(val.id) this.planId = String(val.id)
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册