| 
						
						
						
					 | 
				
				 | 
				
					@ -1,7 +1,7 @@ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					<template> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    <div> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        <div class="listBtn"> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            <el-button type="primary" @click="doctorCheck.doctorCheckDialogVisible = true">人员列表</el-button> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            <el-button type="primary" @click="prList">人员列表</el-button> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        </div> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        <div class="listBtn"> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            <el-button type="primary" @click="toDoctorCheck">医生诊台</el-button> | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
				 | 
				
					@ -21,6 +21,9 @@ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        <div class="listBtn"> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            <el-button type="primary" @click="unAudit">取消审核</el-button> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        </div> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        <div class="listBtn"> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            <el-button type="primary" @click="addSuggtion">新增建议</el-button> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        </div> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        <div class="listBtn"> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            <el-button type="primary" @click="report">体检报告</el-button> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        </div> | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
				 | 
				
					@ -31,13 +34,14 @@ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            <el-button type="primary" @click="intervene">干预措施</el-button> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        </div> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        <!-- 人员档案列表 --> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        <el-dialog title="人员档案列表" :visible.sync="doctorCheck.doctorCheckDialogVisible" width="1000px" | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            :append-to-body="true"> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            <PatientRegisterList /> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        </el-dialog>         | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        <el-dialog title="人员档案列表" :visible.sync="sumDoctorCheck.sumDoctorCheckDialogVisible" width="1000px"> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            <PatientRegisterList win="sumDoctorCheck"/> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        </el-dialog>  | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    </div> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					</template> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					<script> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					import { mapState } from "vuex"; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					import { getapi, postapi, putapi, deletapi } from "@/api/api"; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					import { arrayExistObj } from "../../utlis/proFunc"; | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -71,8 +75,10 @@ export default { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    }, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    methods: { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        //总检 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        prList(){ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            this.sumDoctorCheck.sumDoctorCheckDialogVisible = true            | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        }, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        //to医生诊台 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        toDoctorCheck() { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            this.$router.push({ path: "/doctorCheck" }); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        }, | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
				 | 
				
					@ -84,7 +90,7 @@ export default { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            if (this.sumDoctorCheck.sumPREdit.isLock == 'Y') return '人员已锁定,不可执行此操作' | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            if (optType == 'save') { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                if (!this.sumDoctorCheck.sumPREdit.summaryDoctor) return "请选择总检医生" | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                //if (!this.sumDoctorCheck.sumPREdit.summaryDoctor) return "请选择总检医生" | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                if (this.sumDoctorCheck.sumPREdit.completeFlag == '3') return "该人员已总检,不可再执行此操作,如需操作请点【修改】" | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                if (this.sumDoctorCheck.sumPREdit.isAudit == 'Y') return '该人员检查已审核,请先取消审核,方可执行此操作!' | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            } | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -124,10 +130,10 @@ export default { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            this.updateSumDoctorCheck(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            //更新综述        | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            this.saveCheckSummary(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            this.saveSummary(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            //更新建议       | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            this.saveCheckSuggestion(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            this.saveSuggestion(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        }, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        //修改结果 | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
				 | 
				
					@ -144,7 +150,7 @@ export default { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        del() { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            let body = { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                patientRegisterId: this.sumDoctorCheck.sumPREdit.id, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                //summaryDate: this.sumDoctorCheck.sumPREdit.summaryDate, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                //summaryDoctor: this.sumDoctorCheck.sumPREdit.summaryDoctor, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                //summaryDate: this.sumDoctorCheck.sumPREdit.summaryDate, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                completeFlag: '2' | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            } | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
				 | 
				
					@ -165,6 +171,12 @@ export default { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                        return postapi(`/api/app/sumsuggestionheader/deletesumsuggestionmany?PatientRegisterId=${this.sumDoctorCheck.sumPREdit.id}`) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                }) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                .then((res) => { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    console.log("deletesumsuggestionmany", res.data); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    if (res.code != -1) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                        this.$message({ type: "success", message: `取消总检成功!` }); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                }) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                .catch((err) => { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    this.$message({ type: "error", message: `取消总检失败,原因:${err}` }); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                }); | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -236,6 +248,22 @@ export default { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        }, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        //增加建议 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        addSuggtion(){ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            let id = new Date() | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            let pojo = { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                id, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                patientRegisterId: this.sumDoctorCheck.sumPREdit.id, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                details: [ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                        sumSuggestionHeaderId: id, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                        suggestionContent: '', | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                ] | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            }  | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            this.sumDoctorCheck.suggestionList.push(pojo); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        }, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        //体检报告 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        reCheck() { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            let ret = this.optGrant('reCheck') | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
				 | 
				
					@ -259,70 +287,82 @@ export default { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        updateSumDoctorCheck() { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            let body = { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                patientRegisterId: this.sumDoctorCheck.sumPREdit.id, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                summaryDate: this.sumDoctorCheck.sumPREdit.summaryDate, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                summaryDate: this.sumDoctorCheck.sumPREdit.summaryDate, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                //summaryDoctor:this.sumDoctorCheck.sumPREdit.summaryDoctor, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                //summaryDate: this.sumDoctorCheck.sumPREdit.summaryDate, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                completeFlag: '3' | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            console.log(`/api/app/patientregister/updatepatientregistersummarydoctor`, body) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            console.log(`/api/app/patientregister/updatepatientregistersummarydoctor`, body)             | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            postapi(`/api/app/patientregister/updatepatientregistersummarydoctor`, body) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                .then((res) => { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    console.log("updateCheckItemList", res.data); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    console.log("updateSumDoctorCheck", res.data); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    if (res.code != -1) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                        this.sumDoctorCheck.sumPREdit.completeFlag = '3'; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                        this.$message({ type: "success", message: `总检保存成功!` }); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                }) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                .catch((err) => { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    this.$message({ type: "error", message: `项目明细保存失败,原因:${err}` }); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    this.$message({ type: "error", message: `总检保存失败,原因:${err}` }); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                }); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        }, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        //更新综述         | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        saveCheckSummary() { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        //更新综述 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        saveSummary() { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            let body = [] | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            this.doctorCheck.checkSummaryList.forEach(item => { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                body.push({ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    registerCheckId: item.registerCheckId, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    summary: item.summary, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    summaryFlag: item.summaryFlag, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            this.sumDoctorCheck.summaryList.forEach(item => { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                delete item.id; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                delete item.summaryFlag; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                delete item.displayOrder; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                item.details.forEach(e => { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    delete e.sumSummaryHeaderId; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    delete e.displayOrder; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                }) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            }); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            console.log(`/api/app/registerchecksummary/createregisterchecksummarymany`, body) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            postapi(`/api/app/registerchecksummary/createregisterchecksummarymany`, body) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                body.push(item) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            });             | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            console.log(`/api/app/sumsummaryheader/createsumsummary`, body) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            if(body.length > 0) return | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            postapi(`/api/app/sumsummaryheader/createsumsummary`, body) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                .then((res) => { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    console.log("saveCheckSummary", res.data); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    console.log("saveSummary", res.data); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    if (res.code != -1) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                        //this.sumDoctorCheck.sumPREdit.completeFlag = '1'; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                }) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                .catch((err) => { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    this.$message({ type: "error", message: `项目明细保存失败,原因:${err}` }); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    this.$message({ type: "error", message: `综述保存失败,原因:${err}` }); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                }); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        }, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        //更新建议       | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        saveCheckSuggestion() { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        saveSuggestion() { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            let body = [] | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            this.doctorCheck.checkSuggestionList.forEach(item => { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                body.push({ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    registerCheckId: item.registerCheckId, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    suggestion: item.suggestion | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            this.sumDoctorCheck.suggestionList.forEach(item => { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                delete item.id; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                delete item.suggestionFlag; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                delete item.displayOrder; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                item.details.forEach(e => { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    delete e.sumSuggestionHeaderId; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    delete e.displayOrder; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                }) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            }); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            console.log(`/api/app/registerchecksuggestion/createregisterchecksuggestionmany`, body) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            postapi(`/api/app/registerchecksuggestion/createregisterchecksuggestionmany`, body) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                body.push(item) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            }); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            console.log(`/api/app/sumsuggestionheader/createsumsuggestion`, body) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            if(body.length > 0) return | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            postapi(`/api/app/sumsuggestionheader/createsumsuggestion`, body) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                .then((res) => { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    console.log("saveCheckSuggestion", res.data); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    console.log("saveSuggestion", res.data); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    if (res.code != -1) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                        //this.sumDoctorCheck.sumPREdit.completeFlag = '1'; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                }) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                .catch((err) => { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    this.$message({ type: "error", message: `项目明细保存失败,原因:${err}` }); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    this.$message({ type: "error", message: `建议保存失败,原因:${err}` }); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                }); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        }, | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
				
				 | 
				
					
  |