提交 7f11f5a7 编写于 作者: tao.wu's avatar tao.wu

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
...@@ -6,7 +6,7 @@ export default { ...@@ -6,7 +6,7 @@ export default {
recordList: {}, //录入列表 recordList: {}, //录入列表
enteringInfo: {}, //单条信息查看 enteringInfo: {}, //单条信息查看
constantsData: {},//获取常量 constantsData: {},//获取常量
formList: [], //获取量表列表 formList: {}, //获取量表列表
}, },
mutations: { mutations: {
GET_RECORD_LIST(state, payload) { GET_RECORD_LIST(state, payload) {
...@@ -35,8 +35,8 @@ export default { ...@@ -35,8 +35,8 @@ export default {
context.commit('GET_ENTERING_INFO', data); context.commit('GET_ENTERING_INFO', data);
}); });
}, },
getFormList(context, payload) { async getFormList(context, payload) {
getFormList(payload).then(({data}) => { await getFormList(payload).then(({data}) => {
context.commit('GET_FORM_LIST',data) context.commit('GET_FORM_LIST',data)
}) })
} }
......
...@@ -94,7 +94,7 @@ ...@@ -94,7 +94,7 @@
width="400px" width="400px"
:before-close="closeForm"> :before-close="closeForm">
<div class="list-content"> <div class="list-content">
<p v-for="(item, index) in formList" :key="index" @click="goFormView(item)">{{item.sendContent}}</p> <p v-for="(item, index) in formList.scalesList" :key="index" @click="goFormView(item)">{{item.sendContent}}</p>
</div> </div>
</el-dialog> </el-dialog>
</div> </div>
...@@ -213,18 +213,18 @@ ...@@ -213,18 +213,18 @@
handlerClick(){ handlerClick(){
this.search(1); this.search(1);
}, },
editRow(row){ async editRow(row){
this.getFormList(row.fuPlanTimesId); //获取量表列表 await this.getFormList(row.fuPlanTimesId); //获取量表列表
//获取量表列表情况 //获取量表列表情况
if(this.formList.length > 1){ if(this.formList.scalesList.length > 1){
this.selectFormShow = true this.selectFormShow = true
this.ScaleData = { this.ScaleData = {
doctorId: row.doctorId, doctorId: row.doctorId,
scaleNo: row.planPatientTimesId planPatientsTimesId: row.fuPlanTimesId
} }
}else if(this.formList.length === 1){ }else if(this.formList.scalesList.length === 1){
this.$router.push({path: '/followup/record-manage/form-template', this.$router.push({path: '/followup/record-manage/form-template',
query: {doctorId: row.doctorId, scaleNo: item.resourceId, planPatientsTimesId: row.planPatientTimesId}}) query: {doctorId: this.formList.doctorId, scaleNo: this.formList.scalesList[0].resourceId, planPatientsTimesId: row.fuPlanTimesId}})
}else { }else {
this.$message.warning('暂不支持录入量表!') this.$message.warning('暂不支持录入量表!')
} }
...@@ -264,7 +264,7 @@ ...@@ -264,7 +264,7 @@
goFormView(item) { goFormView(item) {
this.selectFormShow = false this.selectFormShow = false
this.$router.push({path: '/followup/record-manage/form-template', this.$router.push({path: '/followup/record-manage/form-template',
query: {doctorId: this.ScaleData.doctorId, scaleNo: item.resourceId, planPatientsTimesId: this.ScaleData.planPatientTimesId}}); query: {doctorId: this.ScaleData.doctorId, scaleNo: item.resourceId, planPatientsTimesId: this.ScaleData.fuPlanTimesId}});
}, },
closeForm() { closeForm() {
this.selectFormShow = false; this.selectFormShow = false;
......
...@@ -80,7 +80,7 @@ ...@@ -80,7 +80,7 @@
width="400px" width="400px"
:before-close="closeForm"> :before-close="closeForm">
<div class="list-content"> <div class="list-content">
<p v-for="(item, index) in formList" :key="index" @click="goFormView(item)">{{item.sendContent}}</p> <p v-for="(item, index) in formList.scalesList" :key="index" @click="goFormView(item)">{{item.sendContent}}</p>
</div> </div>
</el-dialog> </el-dialog>
</div> </div>
...@@ -206,23 +206,23 @@ export default { ...@@ -206,23 +206,23 @@ export default {
goFormView(item) { goFormView(item) {
this.selectFormShow = false this.selectFormShow = false
this.$router.push({path: '/followup/record-manage/form-template', this.$router.push({path: '/followup/record-manage/form-template',
query: {doctorId: this.ScaleData.doctorId, scaleNo: item.resourceId, planPatientsTimesId: this.ScaleData.planPatientTimesId}}); query: {doctorId: this.ScaleData.doctorId, scaleNo: item.resourceId, planPatientsTimesId: this.ScaleData.planPatientsTimesId}});
}, },
closeForm() { closeForm() {
this.selectFormShow = false; this.selectFormShow = false;
}, },
goToScale(row) { async goToScale(row) {
this.getFormList(row.planPatientTimesId); //获取量表列表 await this.getFormList(row.plantimesId); //获取量表列表
//获取量表列表情况 //获取量表列表情况
if(this.formList.length > 1){ if(this.formList.scalesList.length > 1){
this.selectFormShow = true this.selectFormShow = true
this.ScaleData = { this.ScaleData = {
doctorId: row.doctorId, doctorId: row.doctorId,
scaleNo: row.planPatientTimesId planPatientsTimesId: row.plantimesId
} }
}else if(this.formList.length === 1){ }else if(this.formList.scalesList.length === 1){
this.$router.push({path: '/followup/record-manage/form-template', this.$router.push({path: '/followup/record-manage/form-template',
query: {doctorId: row.doctorId, scaleNo: item.resourceId, planPatientsTimesId: row.planPatientTimesId}}) query: {doctorId: this.formList.doctorId, scaleNo: this.formList.scalesList[0].resourceId, planPatientsTimesId: row.plantimesId}})
}else { }else {
this.$message.warning('暂不支持录入量表!') this.$message.warning('暂不支持录入量表!')
} }
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册