|
|
@ -40,35 +40,35 @@ |
|
|
<div> |
|
|
<div> |
|
|
<div style="display: flex;"> |
|
|
<div style="display: flex;"> |
|
|
<el-input v-model="scope.row.suggestionTitle" placeholder="请输入建议标题" :ref="scope.row.id" :id="scope.row.id" |
|
|
<el-input v-model="scope.row.suggestionTitle" placeholder="请输入建议标题" :ref="scope.row.id" :id="scope.row.id" |
|
|
:disabled="sumDoctorCheck.sumPREdit.completeFlag == '3' || sumDoctorCheck.sumPREdit.isAudit == 'Y'"> |
|
|
|
|
|
|
|
|
:disabled="sumBtnDisabled()"> |
|
|
</el-input> |
|
|
</el-input> |
|
|
<el-button v-show="checkPagePriv(pagePriv.privs, '删除建议')" type="danger" icon="el-icon-delete" |
|
|
<el-button v-show="checkPagePriv(pagePriv.privs, '删除建议')" type="danger" icon="el-icon-delete" |
|
|
style="margin-left: 2px;min-width:21px;height:21px;padding:2px;" @click="delSugHead(scope.$index)" |
|
|
style="margin-left: 2px;min-width:21px;height:21px;padding:2px;" @click="delSugHead(scope.$index)" |
|
|
:disabled="sumDoctorCheck.sumPREdit.completeFlag == '3' || sumDoctorCheck.sumPREdit.isAudit == 'Y'"></el-button> |
|
|
|
|
|
|
|
|
:disabled="sumBtnDisabled()"></el-button> |
|
|
</div> |
|
|
</div> |
|
|
<div style="display: flex;margin-top: 2px;"> |
|
|
<div style="display: flex;margin-top: 2px;"> |
|
|
<div style="width:60px;">诊断</div> |
|
|
<div style="width:60px;">诊断</div> |
|
|
<el-select v-model="scope.row.diagnosisIds" multiple placeholder="请选择" style="width: 100%;" |
|
|
<el-select v-model="scope.row.diagnosisIds" multiple placeholder="请选择" style="width: 100%;" |
|
|
:disabled="sumDoctorCheck.sumPREdit.completeFlag == '3' || sumDoctorCheck.sumPREdit.isAudit == 'Y'" |
|
|
|
|
|
@change="changeDiagnosis"> |
|
|
|
|
|
<el-option v-for="item in diagnosises" :key="item.id" :value="item.id" :label="item.displayName" /> |
|
|
|
|
|
|
|
|
:disabled="sumBtnDisabled()" @change="changeDiagnosis" filterable> |
|
|
|
|
|
<el-option v-for="item in diagnosises" :key="item.id" :value="item.id" :label="item.displayName" |
|
|
|
|
|
:disabled="disabledDiagnosis(item.id, scope.$index)" /> |
|
|
</el-select> |
|
|
</el-select> |
|
|
<el-tooltip content="新增医学解释" placement="top"> |
|
|
<el-tooltip content="新增医学解释" placement="top"> |
|
|
<el-button v-show="checkPagePriv(pagePriv.privs, '新增医学解释')" type="success" icon="el-icon-plus" |
|
|
<el-button v-show="checkPagePriv(pagePriv.privs, '新增医学解释')" type="success" icon="el-icon-plus" |
|
|
style="min-width:21px;height:21px;padding:2px;" @click="addSug(scope.$index, 0)" |
|
|
style="min-width:21px;height:21px;padding:2px;" @click="addSug(scope.$index, 0)" |
|
|
:disabled="sumDoctorCheck.sumPREdit.completeFlag == '3' || sumDoctorCheck.sumPREdit.isAudit == 'Y'"> |
|
|
|
|
|
|
|
|
:disabled="sumBtnDisabled()"> |
|
|
</el-button> |
|
|
</el-button> |
|
|
</el-tooltip> |
|
|
</el-tooltip> |
|
|
<el-tooltip content="新增常见原因" placement="top"> |
|
|
<el-tooltip content="新增常见原因" placement="top"> |
|
|
<el-button v-show="checkPagePriv(pagePriv.privs, '新增常见原因')" type="danger" icon="el-icon-plus" |
|
|
<el-button v-show="checkPagePriv(pagePriv.privs, '新增常见原因')" type="danger" icon="el-icon-plus" |
|
|
style="margin-left: 2px;min-width:21px;height:21px;padding:2px;" @click="addSug(scope.$index, 1)" |
|
|
style="margin-left: 2px;min-width:21px;height:21px;padding:2px;" @click="addSug(scope.$index, 1)" |
|
|
:disabled="sumDoctorCheck.sumPREdit.completeFlag == '3' || sumDoctorCheck.sumPREdit.isAudit == 'Y'"> |
|
|
|
|
|
|
|
|
:disabled="sumBtnDisabled()"> |
|
|
</el-button> |
|
|
</el-button> |
|
|
</el-tooltip> |
|
|
</el-tooltip> |
|
|
<el-tooltip content="新增健康指导" placement="top"> |
|
|
<el-tooltip content="新增健康指导" placement="top"> |
|
|
<el-button v-show="checkPagePriv(pagePriv.privs, '新增健康指导')" type="danger" icon="el-icon-plus" |
|
|
<el-button v-show="checkPagePriv(pagePriv.privs, '新增健康指导')" type="danger" icon="el-icon-plus" |
|
|
style="margin-left: 2px;min-width:21px;height:21px;padding:2px;" @click="addSug(scope.$index, 2)" |
|
|
style="margin-left: 2px;min-width:21px;height:21px;padding:2px;" @click="addSug(scope.$index, 2)" |
|
|
:disabled="sumDoctorCheck.sumPREdit.completeFlag == '3' || sumDoctorCheck.sumPREdit.isAudit == 'Y'"> |
|
|
|
|
|
|
|
|
:disabled="sumBtnDisabled()"> |
|
|
</el-button> |
|
|
</el-button> |
|
|
</el-tooltip> |
|
|
</el-tooltip> |
|
|
</div> |
|
|
</div> |
|
|
@ -84,8 +84,7 @@ |
|
|
<el-table-column prop="suggestionContent" label="建议" min-width="200"> |
|
|
<el-table-column prop="suggestionContent" label="建议" min-width="200"> |
|
|
<template slot-scope="scope2"> |
|
|
<template slot-scope="scope2"> |
|
|
<el-input type="textarea" v-model="scope2.row.suggestionContent" placeholder="请输入建议内容" |
|
|
<el-input type="textarea" v-model="scope2.row.suggestionContent" placeholder="请输入建议内容" |
|
|
:disabled="sumDoctorCheck.sumPREdit.completeFlag == '3' || sumDoctorCheck.sumPREdit.isAudit == 'Y'" |
|
|
|
|
|
:autosize="{ minRows: 1, maxRows: 10 }"> |
|
|
|
|
|
|
|
|
:disabled="sumBtnDisabled()" :autosize="{ minRows: 1, maxRows: 10 }"> |
|
|
</el-input> |
|
|
</el-input> |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
@ -93,8 +92,7 @@ |
|
|
<template slot-scope="scope2"> |
|
|
<template slot-scope="scope2"> |
|
|
<el-button v-show="checkPagePriv(pagePriv.privs, '删除医学解释')" type="danger" |
|
|
<el-button v-show="checkPagePriv(pagePriv.privs, '删除医学解释')" type="danger" |
|
|
style="min-width:21px;height:21px;padding:2px;" icon="el-icon-delete" |
|
|
style="min-width:21px;height:21px;padding:2px;" icon="el-icon-delete" |
|
|
@click="delSug(scope.row.medicalInterpretations, scope2.$index)" |
|
|
|
|
|
:disabled="sumDoctorCheck.sumPREdit.completeFlag == '3' || sumDoctorCheck.sumPREdit.isAudit == 'Y'" |
|
|
|
|
|
|
|
|
@click="delSug(scope.row.medicalInterpretations, scope2.$index)" :disabled="sumBtnDisabled()" |
|
|
size="small"></el-button> |
|
|
size="small"></el-button> |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
@ -112,8 +110,7 @@ |
|
|
<el-table-column prop="suggestionContent" label="建议" min-width="200"> |
|
|
<el-table-column prop="suggestionContent" label="建议" min-width="200"> |
|
|
<template slot-scope="scope2"> |
|
|
<template slot-scope="scope2"> |
|
|
<el-input type="textarea" v-model="scope2.row.suggestionContent" placeholder="请输入建议内容" |
|
|
<el-input type="textarea" v-model="scope2.row.suggestionContent" placeholder="请输入建议内容" |
|
|
:disabled="sumDoctorCheck.sumPREdit.completeFlag == '3' || sumDoctorCheck.sumPREdit.isAudit == 'Y'" |
|
|
|
|
|
:autosize="{ minRows: 1, maxRows: 10 }"> |
|
|
|
|
|
|
|
|
:disabled="sumBtnDisabled()" :autosize="{ minRows: 1, maxRows: 10 }"> |
|
|
</el-input> |
|
|
</el-input> |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
@ -121,8 +118,7 @@ |
|
|
<template slot-scope="scope2"> |
|
|
<template slot-scope="scope2"> |
|
|
<el-button v-show="checkPagePriv(pagePriv.privs, '删除常见原因')" type="danger" |
|
|
<el-button v-show="checkPagePriv(pagePriv.privs, '删除常见原因')" type="danger" |
|
|
style="min-width:21px;height:21px;padding:2px;" icon="el-icon-delete" |
|
|
style="min-width:21px;height:21px;padding:2px;" icon="el-icon-delete" |
|
|
@click="delSug(scope.row.commonReasons, scope2.$index)" |
|
|
|
|
|
:disabled="sumDoctorCheck.sumPREdit.completeFlag == '3' || sumDoctorCheck.sumPREdit.isAudit == 'Y'" |
|
|
|
|
|
|
|
|
@click="delSug(scope.row.commonReasons, scope2.$index)" :disabled="sumBtnDisabled()" |
|
|
size="small"></el-button> |
|
|
size="small"></el-button> |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
@ -140,8 +136,7 @@ |
|
|
<el-table-column prop="suggestionContent" label="建议" min-width="200"> |
|
|
<el-table-column prop="suggestionContent" label="建议" min-width="200"> |
|
|
<template slot-scope="scope2"> |
|
|
<template slot-scope="scope2"> |
|
|
<el-input type="textarea" v-model="scope2.row.suggestionContent" placeholder="请输入健康指导" |
|
|
<el-input type="textarea" v-model="scope2.row.suggestionContent" placeholder="请输入健康指导" |
|
|
:disabled="sumDoctorCheck.sumPREdit.completeFlag == '3' || sumDoctorCheck.sumPREdit.isAudit == 'Y'" |
|
|
|
|
|
:autosize="{ minRows: 1, maxRows: 10 }"> |
|
|
|
|
|
|
|
|
:disabled="sumBtnDisabled()" :autosize="{ minRows: 1, maxRows: 10 }"> |
|
|
</el-input> |
|
|
</el-input> |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
@ -149,8 +144,7 @@ |
|
|
<template slot-scope="scope2"> |
|
|
<template slot-scope="scope2"> |
|
|
<el-button v-show="checkPagePriv(pagePriv.privs, '删除健康指导')" type="danger" |
|
|
<el-button v-show="checkPagePriv(pagePriv.privs, '删除健康指导')" type="danger" |
|
|
style="min-width:21px;height:21px;padding:2px;" icon="el-icon-delete" |
|
|
style="min-width:21px;height:21px;padding:2px;" icon="el-icon-delete" |
|
|
@click="delSug(scope.row.healthGuidances, scope2.$index)" |
|
|
|
|
|
:disabled="sumDoctorCheck.sumPREdit.completeFlag == '3' || sumDoctorCheck.sumPREdit.isAudit == 'Y'" |
|
|
|
|
|
|
|
|
@click="delSug(scope.row.healthGuidances, scope2.$index)" :disabled="sumBtnDisabled()" |
|
|
size="small"></el-button> |
|
|
size="small"></el-button> |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
@ -178,8 +172,8 @@ export default { |
|
|
privs: [] // 页面权限 |
|
|
privs: [] // 页面权限 |
|
|
}, |
|
|
}, |
|
|
sumDetails: [], |
|
|
sumDetails: [], |
|
|
suggestionCurRow:0, //当前操作建议的行 |
|
|
|
|
|
diagnosises:[], // 诊断 |
|
|
|
|
|
|
|
|
suggestionCurRow: 0, //当前操作建议的行 |
|
|
|
|
|
diagnosises: [], // 诊断 |
|
|
}; |
|
|
}; |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
@ -237,8 +231,44 @@ export default { |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
// 获取人员是否已总检过 |
|
|
|
|
|
getHaveSumData(patientRegisterId) { |
|
|
|
|
|
this.sumDoctorCheck.summaryList = []; |
|
|
|
|
|
this.sumDoctorCheck.suggestionList = []; |
|
|
|
|
|
if (!patientRegisterId) return |
|
|
|
|
|
|
|
|
|
|
|
if (this.dataTransOpts.tableS.patient_register.completeFlag == '3') { |
|
|
|
|
|
this.summaryList(patientRegisterId, 'Y') |
|
|
|
|
|
this.suggestionList(patientRegisterId, 'Y') |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
postapi('/api/app/patientregister/GetHaveSumData', { patientRegisterId }) |
|
|
|
|
|
.then(async (res) => { |
|
|
|
|
|
if (res.code > -1) { |
|
|
|
|
|
let isGetExistData = res.data |
|
|
|
|
|
if (res.data == 'Y') { |
|
|
|
|
|
try { |
|
|
|
|
|
await this.$confirm('检测到该人员已经生成过总检信息。', '确认信息', { |
|
|
|
|
|
distinguishCancelAndClose: true, |
|
|
|
|
|
confirmButtonText: '重新生成总检信息', |
|
|
|
|
|
cancelButtonText: '获取上次总检信息' |
|
|
|
|
|
}) |
|
|
|
|
|
isGetExistData = 'N' |
|
|
|
|
|
} catch (error) { |
|
|
|
|
|
//console.log() |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
this.summaryList(patientRegisterId, isGetExistData) |
|
|
|
|
|
this.suggestionList(patientRegisterId, isGetExistData) |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//获取综述 |
|
|
//获取综述 |
|
|
summaryList(RegisterId) { |
|
|
|
|
|
|
|
|
summaryList(RegisterId, isGetExistData) { |
|
|
if (!RegisterId) { |
|
|
if (!RegisterId) { |
|
|
this.sumDoctorCheck.summaryList = []; |
|
|
this.sumDoctorCheck.summaryList = []; |
|
|
return |
|
|
return |
|
|
@ -247,7 +277,7 @@ export default { |
|
|
// 旧接口: console.log(`/api/app/sumsummaryheader/getsumsummarylist?PatientRegisterId=${RegisterId}`) |
|
|
// 旧接口: console.log(`/api/app/sumsummaryheader/getsumsummarylist?PatientRegisterId=${RegisterId}`) |
|
|
let body = { |
|
|
let body = { |
|
|
patientRegisterId: RegisterId, |
|
|
patientRegisterId: RegisterId, |
|
|
isGetExistData: 'Y', |
|
|
|
|
|
|
|
|
isGetExistData, |
|
|
} |
|
|
} |
|
|
postapi('/api/app/sumsummaryheader/getsumsummarylist', body) |
|
|
postapi('/api/app/sumsummaryheader/getsumsummarylist', body) |
|
|
.then((res) => { |
|
|
.then((res) => { |
|
|
@ -282,7 +312,7 @@ export default { |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
//获取建议 |
|
|
//获取建议 |
|
|
suggestionList(RegisterId) { |
|
|
|
|
|
|
|
|
suggestionList(RegisterId, isGetExistData) { |
|
|
if (!RegisterId) { |
|
|
if (!RegisterId) { |
|
|
this.sumDoctorCheck.suggestionList = []; |
|
|
this.sumDoctorCheck.suggestionList = []; |
|
|
return; |
|
|
return; |
|
|
@ -294,7 +324,7 @@ export default { |
|
|
// } |
|
|
// } |
|
|
let body = { |
|
|
let body = { |
|
|
patientRegisterId: RegisterId, |
|
|
patientRegisterId: RegisterId, |
|
|
isGetExistData: 'Y', |
|
|
|
|
|
|
|
|
isGetExistData, |
|
|
} |
|
|
} |
|
|
// 旧接口: console.log(`/api/app/sumsuggestionheader/getsumsuggestionlist?PatientRegisterId=${RegisterId}`) |
|
|
// 旧接口: console.log(`/api/app/sumsuggestionheader/getsumsuggestionlist?PatientRegisterId=${RegisterId}`) |
|
|
postapi('/api/app/sumsuggestionheader/getsumsuggestionlist', body) |
|
|
postapi('/api/app/sumsuggestionheader/getsumsuggestionlist', body) |
|
|
@ -331,11 +361,39 @@ export default { |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
// 按钮可用 |
|
|
|
|
|
sumBtnDisabled() { |
|
|
|
|
|
let patientRegister = this.dataTransOpts.tableS.patient_register |
|
|
|
|
|
let ret = true |
|
|
|
|
|
|
|
|
|
|
|
//' 请选择体检人员' |
|
|
|
|
|
if (!patientRegister.id) return ret |
|
|
|
|
|
// '人员已锁定,不可执行此操作' |
|
|
|
|
|
if (!patientRegister.isLock) return ret |
|
|
|
|
|
|
|
|
|
|
|
if (patientRegister.completeFlag && patientRegister.completeFlag != '3') ret = false |
|
|
|
|
|
|
|
|
|
|
|
return ret |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
// 可选诊断处理 |
|
|
|
|
|
disabledDiagnosis(diagnosisId, index) { |
|
|
|
|
|
let ret = false |
|
|
|
|
|
let diagnosisIds = [] |
|
|
|
|
|
this.sumDoctorCheck.suggestionList.forEach((e, i) => { |
|
|
|
|
|
if (i != index) { |
|
|
|
|
|
if (e.diagnosisIds) diagnosisIds = diagnosisIds.concat(e.diagnosisIds) |
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
|
|
|
if (diagnosisIds.indexOf(diagnosisId) > -1) ret = true |
|
|
|
|
|
return ret |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
// 诊断选择 |
|
|
// 诊断选择 |
|
|
changeDiagnosis(v){ |
|
|
|
|
|
console.log('changeDiagnosis',v) |
|
|
|
|
|
|
|
|
changeDiagnosis(v) { |
|
|
|
|
|
console.log('changeDiagnosis', v) |
|
|
let suggestionTitle = [] |
|
|
let suggestionTitle = [] |
|
|
if(v.length == 0){ |
|
|
|
|
|
|
|
|
if (v.length == 0) { |
|
|
this.sumDoctorCheck.suggestionList[this.suggestionCurRow]['suggestionTitle'] = '' |
|
|
this.sumDoctorCheck.suggestionList[this.suggestionCurRow]['suggestionTitle'] = '' |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
@ -345,24 +403,24 @@ export default { |
|
|
suggestionList.forEach(e => { |
|
|
suggestionList.forEach(e => { |
|
|
e.diagnosisIds = `${e.diagnosisIds}` |
|
|
e.diagnosisIds = `${e.diagnosisIds}` |
|
|
}); |
|
|
}); |
|
|
let lfind = arrayExistObj(suggestionList,'diagnosisIds',lv) |
|
|
|
|
|
if(lfind == -1) return |
|
|
|
|
|
|
|
|
let lfind = arrayExistObj(suggestionList, 'diagnosisIds', lv) |
|
|
|
|
|
if (lfind == -1) return |
|
|
this.suggestionCurRow = lfind |
|
|
this.suggestionCurRow = lfind |
|
|
let sumSuggestionHeaderId = this.sumDoctorCheck.suggestionList[lfind].id |
|
|
let sumSuggestionHeaderId = this.sumDoctorCheck.suggestionList[lfind].id |
|
|
v.forEach(e => { |
|
|
v.forEach(e => { |
|
|
let ld = arrayExistObj(this.diagnosises,'id',e) |
|
|
|
|
|
if(ld > -1){ |
|
|
|
|
|
|
|
|
let ld = arrayExistObj(this.diagnosises, 'id', e) |
|
|
|
|
|
if (ld > -1) { |
|
|
suggestionTitle.push(this.diagnosises[ld]["displayName"]) |
|
|
suggestionTitle.push(this.diagnosises[ld]["displayName"]) |
|
|
//添加医学解释 |
|
|
//添加医学解释 |
|
|
let medicalInterpretations = this.diagnosises[ld]['medicalInterpretations'] |
|
|
let medicalInterpretations = this.diagnosises[ld]['medicalInterpretations'] |
|
|
if(medicalInterpretations){ |
|
|
|
|
|
if(!this.sumDoctorCheck.suggestionList[lfind]['medicalInterpretations']) this.sumDoctorCheck.suggestionList[lfind]['medicalInterpretations'] = [] |
|
|
|
|
|
|
|
|
if (medicalInterpretations) { |
|
|
|
|
|
if (!this.sumDoctorCheck.suggestionList[lfind]['medicalInterpretations']) this.sumDoctorCheck.suggestionList[lfind]['medicalInterpretations'] = [] |
|
|
medicalInterpretations.forEach(e2 => { |
|
|
medicalInterpretations.forEach(e2 => { |
|
|
let lf = arrayExistObj(this.sumDoctorCheck.suggestionList[lfind]['medicalInterpretations'],"suggestionContent",e2.suggestionContent) |
|
|
|
|
|
if(lf == -1){ |
|
|
|
|
|
|
|
|
let lf = arrayExistObj(this.sumDoctorCheck.suggestionList[lfind]['medicalInterpretations'], "suggestionContent", e2.suggestionContent) |
|
|
|
|
|
if (lf == -1) { |
|
|
this.sumDoctorCheck.suggestionList[lfind]['medicalInterpretations'].push({ |
|
|
this.sumDoctorCheck.suggestionList[lfind]['medicalInterpretations'].push({ |
|
|
sumSuggestionHeaderId, |
|
|
sumSuggestionHeaderId, |
|
|
suggestionContent:e2.suggestionContent, |
|
|
|
|
|
|
|
|
suggestionContent: e2.suggestionContent, |
|
|
displayOrder: Math.random(), |
|
|
displayOrder: Math.random(), |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
@ -371,14 +429,14 @@ export default { |
|
|
|
|
|
|
|
|
//添加常见原因 |
|
|
//添加常见原因 |
|
|
let commonReasons = this.diagnosises[ld]['commonReasons'] |
|
|
let commonReasons = this.diagnosises[ld]['commonReasons'] |
|
|
if(commonReasons){ |
|
|
|
|
|
if(!this.sumDoctorCheck.suggestionList[lfind]['commonReasons']) this.sumDoctorCheck.suggestionList[lfind]['commonReasons'] = [] |
|
|
|
|
|
|
|
|
if (commonReasons) { |
|
|
|
|
|
if (!this.sumDoctorCheck.suggestionList[lfind]['commonReasons']) this.sumDoctorCheck.suggestionList[lfind]['commonReasons'] = [] |
|
|
commonReasons.forEach(e2 => { |
|
|
commonReasons.forEach(e2 => { |
|
|
let lf = arrayExistObj(this.sumDoctorCheck.suggestionList[lfind]['commonReasons'],"suggestionContent",e2.suggestionContent) |
|
|
|
|
|
if(lf == -1){ |
|
|
|
|
|
|
|
|
let lf = arrayExistObj(this.sumDoctorCheck.suggestionList[lfind]['commonReasons'], "suggestionContent", e2.suggestionContent) |
|
|
|
|
|
if (lf == -1) { |
|
|
this.sumDoctorCheck.suggestionList[lfind]['commonReasons'].push({ |
|
|
this.sumDoctorCheck.suggestionList[lfind]['commonReasons'].push({ |
|
|
sumSuggestionHeaderId, |
|
|
sumSuggestionHeaderId, |
|
|
suggestionContent:e2.suggestionContent, |
|
|
|
|
|
|
|
|
suggestionContent: e2.suggestionContent, |
|
|
displayOrder: Math.random(), |
|
|
displayOrder: Math.random(), |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
@ -387,14 +445,14 @@ export default { |
|
|
|
|
|
|
|
|
//添加常见原因 |
|
|
//添加常见原因 |
|
|
let healthGuidances = this.diagnosises[ld]['healthGuidances'] |
|
|
let healthGuidances = this.diagnosises[ld]['healthGuidances'] |
|
|
if(healthGuidances){ |
|
|
|
|
|
if(!this.sumDoctorCheck.suggestionList[lfind]['healthGuidances']) this.sumDoctorCheck.suggestionList[lfind]['healthGuidances'] = [] |
|
|
|
|
|
|
|
|
if (healthGuidances) { |
|
|
|
|
|
if (!this.sumDoctorCheck.suggestionList[lfind]['healthGuidances']) this.sumDoctorCheck.suggestionList[lfind]['healthGuidances'] = [] |
|
|
healthGuidances.forEach(e2 => { |
|
|
healthGuidances.forEach(e2 => { |
|
|
let lf = arrayExistObj(this.sumDoctorCheck.suggestionList[lfind]['healthGuidances'],"suggestionContent",e2.suggestionContent) |
|
|
|
|
|
if(lf == -1){ |
|
|
|
|
|
|
|
|
let lf = arrayExistObj(this.sumDoctorCheck.suggestionList[lfind]['healthGuidances'], "suggestionContent", e2.suggestionContent) |
|
|
|
|
|
if (lf == -1) { |
|
|
this.sumDoctorCheck.suggestionList[lfind]['healthGuidances'].push({ |
|
|
this.sumDoctorCheck.suggestionList[lfind]['healthGuidances'].push({ |
|
|
sumSuggestionHeaderId, |
|
|
sumSuggestionHeaderId, |
|
|
suggestionContent:e2.suggestionContent, |
|
|
|
|
|
|
|
|
suggestionContent: e2.suggestionContent, |
|
|
displayOrder: Math.random(), |
|
|
displayOrder: Math.random(), |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
@ -404,7 +462,7 @@ export default { |
|
|
}); |
|
|
}); |
|
|
this.sumDoctorCheck.suggestionList[this.suggestionCurRow]['suggestionTitle'] = `${suggestionTitle}` |
|
|
this.sumDoctorCheck.suggestionList[this.suggestionCurRow]['suggestionTitle'] = `${suggestionTitle}` |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//增加建议明细 |
|
|
//增加建议明细 |
|
|
addSug(index, contentType) { |
|
|
addSug(index, contentType) { |
|
|
this.suggestionCurRow = index |
|
|
this.suggestionCurRow = index |
|
|
@ -608,8 +666,7 @@ export default { |
|
|
// immediate:true, |
|
|
// immediate:true, |
|
|
handler(newVal, oldVal) { |
|
|
handler(newVal, oldVal) { |
|
|
console.log(`watch 总检--综述建议 newVal: ${newVal}, oldVal: ${oldVal} patientRegisterId: ${this.dataTransOpts.tableS.patient_register.id}`); |
|
|
console.log(`watch 总检--综述建议 newVal: ${newVal}, oldVal: ${oldVal} patientRegisterId: ${this.dataTransOpts.tableS.patient_register.id}`); |
|
|
this.summaryList(this.dataTransOpts.tableS.patient_register.id) |
|
|
|
|
|
this.suggestionList(this.dataTransOpts.tableS.patient_register.id) |
|
|
|
|
|
|
|
|
this.getHaveSumData(this.dataTransOpts.tableS.patient_register.id) |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|