|
|
|
@ -14,6 +14,10 @@ |
|
|
|
<el-button type="primary" class="commonbutton" @click="btnImportResult('lis')" |
|
|
|
:disabled="sumBtnDisabled('save')">导入检验结果</el-button> |
|
|
|
</div> |
|
|
|
<div v-show="checkPagePriv(pagePriv.privs, 'AI诊断')" class="listBtn"> |
|
|
|
<el-button slot="reference" class="commonbutton" @click="btnAIdiagnosis(false)" |
|
|
|
:disabled="sumBtnDisabled('save')">AI诊断</el-button> |
|
|
|
</div> |
|
|
|
<div v-show="checkPagePriv(pagePriv.privs, '保存')" class="listBtn"> |
|
|
|
<el-button type="primary" class="commonbutton" @click="btnSave" |
|
|
|
:disabled="sumBtnDisabled('save')">保存</el-button> |
|
|
|
@ -56,6 +60,30 @@ |
|
|
|
:disabled="sumBtnDisabled('btnOcc')">职业病</el-button> |
|
|
|
</div> |
|
|
|
|
|
|
|
<!-- AI诊断--> |
|
|
|
<div v-show="AI.visible" |
|
|
|
:style="`z-index:3;border-radius: 10px;border: 1px solid #ddd;background-color:#FFF; position: absolute;top:50px;left:0px;width:${AI.width}px;height: ${AI.height}px;opacity:1;`"> |
|
|
|
<div v-show="AI.max" style="display: flex;justify-content: space-between;"> |
|
|
|
<p>AI诊断内容:</p> |
|
|
|
<el-tooltip content="隐藏 AI诊断内容" placement="top"> |
|
|
|
<i class="el-icon-minus" @click="btnAImax(AI.max)" |
|
|
|
style="font-size: 24px;color: red;cursor:pointer;"></i> |
|
|
|
</el-tooltip> |
|
|
|
</div> |
|
|
|
<div v-show="!AI.max"> |
|
|
|
<el-tooltip content="显示 AI诊断内容" placement="top"> |
|
|
|
<i class="el-icon-plus" @click="btnAImax(AI.max)" |
|
|
|
style="font-size: 24px;color: red;cursor:pointer;"></i> |
|
|
|
</el-tooltip> |
|
|
|
</div> |
|
|
|
<el-input v-show="AI.max" type="textarea" v-model="AI.diagnosis" placeholder="AI诊断内容" |
|
|
|
:autosize="{ minRows: AIDH, maxRows: AIDH }" style="text-align: right;"> |
|
|
|
</el-input> |
|
|
|
<div v-show="AI.max" style="text-align: right; margin-top: 10px;"> |
|
|
|
<el-button class="commonbutton" @click="AI.visible = false">关闭</el-button> |
|
|
|
<el-button class="commonbutton" @click="btnAIdiagnosis(true)">AI重新诊断</el-button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div v-show="sumDoctorCheck.sumDoctorCheckDialogVisible" |
|
|
|
:style="`z-index:3;border-radius: 10px;border: 1px solid #ddd;background-color:#FFF; position: absolute;top:50px;right:0px;width:300px;height: ${window.pageHeight - 42 - 10}px;opacity:1;`"> |
|
|
|
@ -114,6 +142,14 @@ export default { |
|
|
|
} |
|
|
|
], |
|
|
|
summary_check_doctor_alias: ["总检", "审核"], |
|
|
|
|
|
|
|
AI:{ |
|
|
|
width:500, |
|
|
|
height:24, |
|
|
|
max:true, |
|
|
|
visible: false, |
|
|
|
diagnosis: 'AI诊断信息', |
|
|
|
} |
|
|
|
}; |
|
|
|
}, |
|
|
|
|
|
|
|
@ -121,6 +157,7 @@ export default { |
|
|
|
//获取用户当前页面的权限 |
|
|
|
let userPriv = window.sessionStorage.getItem('userPriv') |
|
|
|
if (userPriv) this.pagePriv.privs = deepCopy(getPagePriv(this.pagePriv.routeUrlorPageName)) |
|
|
|
this.AI.height = this.frameHeight |
|
|
|
}, |
|
|
|
|
|
|
|
//挂载完成 |
|
|
|
@ -135,6 +172,13 @@ export default { |
|
|
|
|
|
|
|
computed: { |
|
|
|
...mapState(["window", "dict", "dataTransOpts", "dialogWin", "patientRegister", "doctorCheck", "sumDoctorCheck"]), |
|
|
|
frameHeight(){ |
|
|
|
return this.window.pageHeight - 42 - 10 |
|
|
|
}, |
|
|
|
// AIdiagnosisHeight |
|
|
|
AIDH(){ |
|
|
|
return Math.floor((this.AI.height - 24 - 42 - 4)/21.5) |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
methods: { |
|
|
|
@ -365,12 +409,45 @@ export default { |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
// AI诊断 AI重新诊断 |
|
|
|
btnAIdiagnosis(again) { |
|
|
|
if (!again) { |
|
|
|
if (this.AI.visible){ |
|
|
|
this.btnAImax(false) |
|
|
|
return |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
let reqText = '' |
|
|
|
let linkStr = ';' |
|
|
|
this.sumDoctorCheck.summaryList.forEach(e => { |
|
|
|
if (reqText) { |
|
|
|
linkStr = ';' |
|
|
|
} else { |
|
|
|
linkStr = '' |
|
|
|
} |
|
|
|
reqText += linkStr + e.summaryTitle + ':' |
|
|
|
e.details.forEach((e1,i) => { |
|
|
|
reqText += (i+1) + ')、' + e1.summaryContent |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
this.AI.visible = true |
|
|
|
this.AI.diagnosis = reqText |
|
|
|
this.btnAImax(false) |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
btnAImax(max){ |
|
|
|
this.AI.max = !max |
|
|
|
if(this.AI.max){ |
|
|
|
this.AI.width = 500 |
|
|
|
this.AI.height = this.frameHeight |
|
|
|
}else{ |
|
|
|
this.AI.width = 24 |
|
|
|
this.AI.height = 24 |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
//审核 |
|
|
|
|