|
|
|
@ -1,7 +1,7 @@ |
|
|
|
<template> |
|
|
|
<div> |
|
|
|
<div style="display: flex;"> |
|
|
|
<div :style="`width:${sumWidth}px;`"> |
|
|
|
<div :style="`width:${sumWidth}px;`" @dblclick.prevent="blClick"> |
|
|
|
<el-table id="tableSummary" row-key="id" :data="doctorCheck.checkSummaryList" size="samll" :height="sumHeight" |
|
|
|
width="100%" border> |
|
|
|
<el-table-column width="30" align="center"> |
|
|
|
@ -19,7 +19,7 @@ |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div style="display: flex;font-family: 'Microsoft YaHei';"> |
|
|
|
<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;`"> |
|
|
|
</el-input> |
|
|
|
@ -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, '新增小结')"> |
|
|
|
@ -139,11 +139,7 @@ |
|
|
|
</div> |
|
|
|
</el-tab-pane> |
|
|
|
</el-tabs> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<div> |
|
|
|
<!-- 分诊排队 --> |
|
|
|
<el-dialog title="分诊排队" :visible.sync="dialogWin.queue" width="800px" :append-to-body="true" |
|
|
|
@ -157,7 +153,7 @@ |
|
|
|
import { mapState } from 'vuex'; |
|
|
|
import Sortable from "sortablejs"; |
|
|
|
import { getapi, postapi, putapi, deletapi } from "@/api/api"; |
|
|
|
import { getPagePriv, checkPagePriv, deepCopy, getColorStr } from "../../utlis/proFunc"; |
|
|
|
import { getPagePriv, checkPagePriv, deepCopy, getColorStr,arrayExistObj } from "../../utlis/proFunc"; |
|
|
|
import Queue from "../../components/queue/Queue.vue"; |
|
|
|
|
|
|
|
export default { |
|
|
|
@ -175,6 +171,7 @@ export default { |
|
|
|
activeName:'preResult', |
|
|
|
doctor_check_disp_suggestion:'N', // 医生诊台 默认不显示建议 |
|
|
|
pacsDescFontSize: 14, //结论内容的字体大小 |
|
|
|
|
|
|
|
}; |
|
|
|
}, |
|
|
|
|
|
|
|
@ -197,7 +194,9 @@ export default { |
|
|
|
//挂载完成 |
|
|
|
mounted() { |
|
|
|
this.rowDrop(); |
|
|
|
|
|
|
|
if(this.doctor_check_disp_suggestion == 'Y') this.rowDropSuggestion() |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
computed: { |
|
|
|
@ -219,15 +218,29 @@ export default { |
|
|
|
methods: { |
|
|
|
checkPagePriv, getColorStr, |
|
|
|
//获取小结 |
|
|
|
checkSummaryList(RegisterCheckId) { |
|
|
|
checkSummaryList(registerCheckId) { |
|
|
|
this.doctorCheck.checkSummaryList = []; |
|
|
|
if (!RegisterCheckId) return; |
|
|
|
if (!registerCheckId) return; |
|
|
|
// console.log(`/api/app/registerchecksummary/getregisterchecksummarylist?RegisterCheckId=${RegisterCheckId}`) |
|
|
|
getapi(`/api/app/registerchecksummary/getregisterchecksummarylist?RegisterCheckId=${RegisterCheckId}`) |
|
|
|
let defaultResult = "未见明细异常" |
|
|
|
let lfind = arrayExistObj(this.doctorCheck.RegisterCheckList,'id',registerCheckId) |
|
|
|
if(lfind > -1){ |
|
|
|
defaultResult = this.doctorCheck.RegisterCheckList[lfind].defaultResult || defaultResult |
|
|
|
} |
|
|
|
|
|
|
|
getapi(`/api/app/registerchecksummary/getregisterchecksummarylist?RegisterCheckId=${registerCheckId}`) |
|
|
|
.then((res) => { |
|
|
|
console.log("checkSummaryList", res.data); |
|
|
|
if (res.code != -1) { |
|
|
|
if (res.code > -1) { |
|
|
|
this.doctorCheck.checkSummaryList = res.data; |
|
|
|
if(this.doctorCheck.checkSummaryList.length == 0){ |
|
|
|
this.doctorCheck.checkSummaryList.push({ |
|
|
|
id: Math.random(), |
|
|
|
registerCheckId, |
|
|
|
summary: defaultResult, |
|
|
|
summaryFlag: 'N' |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
.catch((err) => { |
|
|
|
@ -388,6 +401,14 @@ export default { |
|
|
|
}); |
|
|
|
}, |
|
|
|
|
|
|
|
// 双击生成小结 |
|
|
|
blClick(){ |
|
|
|
//this.$message.warning({showClose:true,message:'双击'}) |
|
|
|
if(this.doctorBtnDisabled('btnMakeDiagnosis')){ |
|
|
|
return |
|
|
|
} |
|
|
|
this.btnMakeDiagnosis() |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
//监听事件 |
|
|
|
|