|
|
|
@ -18,10 +18,10 @@ |
|
|
|
<div></div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div style="display: flex;font-family: 'Microsoft YaHei';" ref="divSummary"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div style="display: flex;font-family: 'Microsoft YaHei';" ref="divSummary"> |
|
|
|
<el-input type="textarea" v-model="scope.row.summary" :autosize="{ minRows: 1, maxRows: 100 }" |
|
|
|
placeholder="请输入小结" :style="`font-size: ${pacsDescFontSize}px;`"> |
|
|
|
placeholder="请输入小结" :style="`font-size: ${pacsDescFontSize}px;`"> |
|
|
|
</el-input> |
|
|
|
<el-button type="danger" style="min-width:23px;padding:2px;" icon="el-icon-delete" |
|
|
|
@click="delSum(scope.$index)" :disabled="doctorBtnDisabled('delSum')" size="small"></el-button> |
|
|
|
@ -33,7 +33,7 @@ |
|
|
|
<div |
|
|
|
:style="`display: flex;position: absolute; top:${window.pageHeight - sumHeight - 226}px;right:${sumWidth + 8}px;z-index: 1;`"> |
|
|
|
<div v-show="checkPagePriv(pagePriv.privs, '生成小结')"> |
|
|
|
<el-button type="primary" class="btnClass" @click="btnMakeDiagnosis" |
|
|
|
<el-button type="primary" class="btnClass" @click="btnMakeDiagnosis" |
|
|
|
:disabled="doctorBtnDisabled('btnMakeDiagnosis')">生成小结</el-button> |
|
|
|
</div> |
|
|
|
<div v-show="checkPagePriv(pagePriv.privs, '新增小结')"> |
|
|
|
@ -53,8 +53,9 @@ |
|
|
|
:disabled="doctorBtnDisabled('fnQueue')">排队</el-button> |
|
|
|
</div> |
|
|
|
<div v-show="checkPagePriv(pagePriv.privs, '危急值')"> |
|
|
|
<el-button type="primary" class="btnClass" :style="[{minWidth: '40px'},{backgroundColor:(this.doctorCheck.RegisterCheckEdit.isCriticalValue=='Y'?'red':'')}]" @click="btnCritical" |
|
|
|
:disabled="doctorBtnDisabled('btnCritical')">危急值</el-button> |
|
|
|
<el-button type="primary" class="btnClass" |
|
|
|
:style="[{ minWidth: '40px' }, { backgroundColor: (this.doctorCheck.RegisterCheckEdit.isCriticalValue == 'Y' ? 'red' : '') }]" |
|
|
|
@click="btnCritical" :disabled="doctorBtnDisabled('btnCritical')">危急值</el-button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<el-tabs v-model="activeName" tab-position="top" :style="`margin-left:2px;width:${sumWidth}px;`"> |
|
|
|
@ -99,8 +100,7 @@ |
|
|
|
</el-tab-pane> |
|
|
|
<el-tab-pane label="建议" name="suggestion" v-if="doctor_check_disp_suggestion == 'Y'"> |
|
|
|
<div> |
|
|
|
<div |
|
|
|
:style="`display: flex;position: absolute;top:5px;right:5px;z-index: 1;`"> |
|
|
|
<div :style="`display: flex;position: absolute;top:5px;right:5px;z-index: 1;`"> |
|
|
|
<div v-show="checkPagePriv(pagePriv.privs, '新增建议')"> |
|
|
|
<el-button type="primary" class="btnClass" @click="addSuggestion" |
|
|
|
:disabled="doctorBtnDisabled('addSuggestion')">新增建议</el-button> |
|
|
|
@ -153,7 +153,7 @@ |
|
|
|
import { mapState } from 'vuex'; |
|
|
|
import Sortable from "sortablejs"; |
|
|
|
import { getapi, postapi, putapi, deletapi } from "@/api/api"; |
|
|
|
import { getPagePriv, checkPagePriv, deepCopy, getColorStr,arrayExistObj } from "../../utlis/proFunc"; |
|
|
|
import { getPagePriv, checkPagePriv, deepCopy, getColorStr, arrayExistObj } from "../../utlis/proFunc"; |
|
|
|
import Queue from "../../components/queue/Queue.vue"; |
|
|
|
|
|
|
|
export default { |
|
|
|
@ -168,10 +168,10 @@ export default { |
|
|
|
routeUrlorPageName: 'doctorCheck', //当前页面归属路由或归属页面权限名称 |
|
|
|
privs: [], // 页面权限 |
|
|
|
}, |
|
|
|
activeName:'preResult', |
|
|
|
doctor_check_disp_suggestion:'N', // 医生诊台 默认不显示建议 |
|
|
|
activeName: 'preResult', |
|
|
|
doctor_check_disp_suggestion: 'N', // 医生诊台 默认不显示建议 |
|
|
|
pacsDescFontSize: 14, //结论内容的字体大小 |
|
|
|
|
|
|
|
|
|
|
|
}; |
|
|
|
}, |
|
|
|
|
|
|
|
@ -182,28 +182,32 @@ export default { |
|
|
|
|
|
|
|
let LocalConfig = JSON.parse(window.localStorage.getItem("LocalConfig") || null) |
|
|
|
if (LocalConfig?.doctorCheck?.pacsDescFontSize) this.pacsDescFontSize = LocalConfig.doctorCheck.pacsDescFontSize |
|
|
|
|
|
|
|
postapi('/api/app/SysParmValue/GetSysParmValueBySysParmId', { sysParmId:'doctor_check_disp_suggestion' }) |
|
|
|
.then(res => { |
|
|
|
if(res.code > -1){ |
|
|
|
this.doctor_check_disp_suggestion = (res.data.toUpperCase())||"N" |
|
|
|
} |
|
|
|
}) |
|
|
|
|
|
|
|
postapi('/api/app/SysParmValue/GetSysParmValueBySysParmId', { sysParmId: 'doctor_check_disp_suggestion' }) |
|
|
|
.then(res => { |
|
|
|
if (res.code > -1) { |
|
|
|
this.doctor_check_disp_suggestion = (res.data.toUpperCase()) || "N" |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
//挂载完成 |
|
|
|
mounted() { |
|
|
|
|
|
|
|
|
|
|
|
// 监听来自 Electron 的调用 右击事件 |
|
|
|
if (this.$peisAPI) { |
|
|
|
this.$peisAPI.onContextMenuAction((data) => { |
|
|
|
this.onContextMenuDIY(data) |
|
|
|
}); |
|
|
|
try { |
|
|
|
this.$peisAPI.onContextMenuAction((data) => { |
|
|
|
this.onContextMenuDIY(data) |
|
|
|
}); |
|
|
|
} catch (error) { |
|
|
|
console.error(error) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
this.rowDrop(); |
|
|
|
|
|
|
|
if(this.doctor_check_disp_suggestion == 'Y') this.rowDropSuggestion() |
|
|
|
if (this.doctor_check_disp_suggestion == 'Y') this.rowDropSuggestion() |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
@ -231,8 +235,8 @@ export default { |
|
|
|
if (!registerCheckId) return; |
|
|
|
// console.log(`/api/app/registerchecksummary/getregisterchecksummarylist?RegisterCheckId=${RegisterCheckId}`) |
|
|
|
let defaultResult = "未见明细异常" |
|
|
|
let lfind = arrayExistObj(this.doctorCheck.RegisterCheckList,'id',registerCheckId) |
|
|
|
if(lfind > -1){ |
|
|
|
let lfind = arrayExistObj(this.doctorCheck.RegisterCheckList, 'id', registerCheckId) |
|
|
|
if (lfind > -1) { |
|
|
|
defaultResult = this.doctorCheck.RegisterCheckList[lfind].defaultResult || defaultResult |
|
|
|
} |
|
|
|
|
|
|
|
@ -241,12 +245,12 @@ export default { |
|
|
|
console.log("checkSummaryList", res.data); |
|
|
|
if (res.code > -1) { |
|
|
|
this.doctorCheck.checkSummaryList = res.data; |
|
|
|
if(this.doctorCheck.checkSummaryList.length == 0){ |
|
|
|
this.doctorCheck.checkSummaryList.push({ |
|
|
|
if (this.doctorCheck.checkSummaryList.length == 0) { |
|
|
|
this.doctorCheck.checkSummaryList.push({ |
|
|
|
id: Math.random(), |
|
|
|
registerCheckId, |
|
|
|
summary: defaultResult, |
|
|
|
summaryFlag: 'N' |
|
|
|
summaryFlag: 'N' |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
@ -365,7 +369,7 @@ export default { |
|
|
|
// 危急值 |
|
|
|
btnCritical() { |
|
|
|
this.dialogWin.FollowCriticalCheck = true |
|
|
|
this.doctorCheck.combinationCriticalValue=true |
|
|
|
this.doctorCheck.combinationCriticalValue = true |
|
|
|
}, |
|
|
|
|
|
|
|
//删除小结 |
|
|
|
@ -410,9 +414,9 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
// 双击生成小结 |
|
|
|
blClick(){ |
|
|
|
blClick() { |
|
|
|
//this.$message.warning({showClose:true,message:'双击'}) |
|
|
|
if(this.doctorBtnDisabled('btnMakeDiagnosis')){ |
|
|
|
if (this.doctorBtnDisabled('btnMakeDiagnosis')) { |
|
|
|
return |
|
|
|
} |
|
|
|
this.btnMakeDiagnosis() |
|
|
|
@ -424,7 +428,7 @@ export default { |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let menus = [ |
|
|
|
// { type: 'separator' }, |
|
|
|
// { label: '测试菜单', itemId: '测试菜单', enabled: true }, |
|
|
|
@ -446,11 +450,11 @@ export default { |
|
|
|
.finally(() => { |
|
|
|
console.log('finally') |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
// 自定义右击事件 |
|
|
|
onContextMenuDIY(data){ |
|
|
|
onContextMenuDIY(data) { |
|
|
|
//this.$message({showClose:true,message:data}) |
|
|
|
} |
|
|
|
}, |
|
|
|
|