|
|
@ -3,7 +3,7 @@ |
|
|
<div :style="`overflow-y: scroll;height: ${tableHeight}px;`"> |
|
|
<div :style="`overflow-y: scroll;height: ${tableHeight}px;`"> |
|
|
<el-collapse v-model="activeNames"> |
|
|
<el-collapse v-model="activeNames"> |
|
|
<el-collapse-item v-if="registerCheckList0.length > 0" title="普通检查" name="0"> |
|
|
<el-collapse-item v-if="registerCheckList0.length > 0" title="普通检查" name="0"> |
|
|
<el-table :data="registerCheckList0" style="width: 100%;" border highlight-current-row @row-click="rowClick" |
|
|
|
|
|
|
|
|
<el-table ref="registerCheckList0" :data="registerCheckList0" style="width: 100%;" border highlight-current-row @row-click="rowClick0" |
|
|
:show-header="false" :row-style="{ height: '28px' }"> |
|
|
:show-header="false" :row-style="{ height: '28px' }"> |
|
|
<el-table-column prop="asbitemName" label="组合项目" width="184"> |
|
|
<el-table-column prop="asbitemName" label="组合项目" width="184"> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
@ -15,7 +15,7 @@ |
|
|
</el-table> |
|
|
</el-table> |
|
|
</el-collapse-item> |
|
|
</el-collapse-item> |
|
|
<el-collapse-item v-if="registerCheckList1.length > 0" title="检验" name="1"> |
|
|
<el-collapse-item v-if="registerCheckList1.length > 0" title="检验" name="1"> |
|
|
<el-table :data="registerCheckList1" style="width: 100%;" border highlight-current-row @row-click="rowClick" |
|
|
|
|
|
|
|
|
<el-table ref="registerCheckList1" :data="registerCheckList1" style="width: 100%;" border highlight-current-row @row-click="rowClick1" |
|
|
:show-header="false" :row-style="{ height: '28px' }"> |
|
|
:show-header="false" :row-style="{ height: '28px' }"> |
|
|
<el-table-column prop="asbitemName" label="组合项目" width="184"> |
|
|
<el-table-column prop="asbitemName" label="组合项目" width="184"> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
@ -27,7 +27,7 @@ |
|
|
</el-table> |
|
|
</el-table> |
|
|
</el-collapse-item> |
|
|
</el-collapse-item> |
|
|
<el-collapse-item v-if="registerCheckList2.length > 0" title="特检" name="2"> |
|
|
<el-collapse-item v-if="registerCheckList2.length > 0" title="特检" name="2"> |
|
|
<el-table :data="registerCheckList2" style="width: 100%;" border highlight-current-row @row-click="rowClick" |
|
|
|
|
|
|
|
|
<el-table ref="registerCheckList2" :data="registerCheckList2" style="width: 100%;" border highlight-current-row @row-click="rowClick2" |
|
|
:show-header="false" :row-style="{ height: '28px' }"> |
|
|
:show-header="false" :row-style="{ height: '28px' }"> |
|
|
<el-table-column prop="asbitemName" label="组合项目" |
|
|
<el-table-column prop="asbitemName" label="组合项目" |
|
|
:width="LocalConfig.doctorCheck.isPacsWorklist == 'Y' ? 153 : 184"> |
|
|
:width="LocalConfig.doctorCheck.isPacsWorklist == 'Y' ? 153 : 184"> |
|
|
@ -48,7 +48,7 @@ |
|
|
</el-table> |
|
|
</el-table> |
|
|
</el-collapse-item> |
|
|
</el-collapse-item> |
|
|
<el-collapse-item v-if="registerCheckList3.length > 0" title="放射" name="3"> |
|
|
<el-collapse-item v-if="registerCheckList3.length > 0" title="放射" name="3"> |
|
|
<el-table :data="registerCheckList3" style="width: 100%;" border highlight-current-row @row-click="rowClick" |
|
|
|
|
|
|
|
|
<el-table ref="registerCheckList3" :data="registerCheckList3" style="width: 100%;" border highlight-current-row @row-click="rowClick3" |
|
|
:show-header="false" :row-style="{ height: '28px' }"> |
|
|
:show-header="false" :row-style="{ height: '28px' }"> |
|
|
<el-table-column prop="asbitemName" label="组合项目" |
|
|
<el-table-column prop="asbitemName" label="组合项目" |
|
|
:width="LocalConfig.doctorCheck.isPacsWorklist == 'Y' ? 153 : 184"> |
|
|
:width="LocalConfig.doctorCheck.isPacsWorklist == 'Y' ? 153 : 184"> |
|
|
@ -75,7 +75,7 @@ |
|
|
<script> |
|
|
<script> |
|
|
import { mapState } from 'vuex'; |
|
|
import { mapState } from 'vuex'; |
|
|
import { getapi, postapi, putapi, deletapi } from "@/api/api"; |
|
|
import { getapi, postapi, putapi, deletapi } from "@/api/api"; |
|
|
import { listOrderBy, setCheckStatusColor } from "../../utlis/proFunc" |
|
|
|
|
|
|
|
|
import { arrayExistObj, listOrderBy, setCheckStatusColor } from "../../utlis/proFunc" |
|
|
|
|
|
|
|
|
export default { |
|
|
export default { |
|
|
components: {}, |
|
|
components: {}, |
|
|
@ -176,9 +176,47 @@ export default { |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
// 普通检查点击 |
|
|
|
|
|
rowClick0(row){ |
|
|
|
|
|
// 跨检查类别选择时,先清除其他区的高亮选中状态 |
|
|
|
|
|
//if(this.registerCheckList0.length>0) this.$refs['registerCheckList0'].setCurrentRow(); |
|
|
|
|
|
if(this.registerCheckList1.length>0) this.$refs['registerCheckList1'].setCurrentRow(); |
|
|
|
|
|
if(this.registerCheckList2.length>0) this.$refs['registerCheckList2'].setCurrentRow(); |
|
|
|
|
|
if(this.registerCheckList3.length>0) this.$refs['registerCheckList3'].setCurrentRow(); |
|
|
|
|
|
this.rowClick(row) |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
// 检验检查点击 |
|
|
|
|
|
rowClick1(row){ |
|
|
|
|
|
// 跨检查类别选择时,先清除其他区的高亮选中状态 |
|
|
|
|
|
if(this.registerCheckList0.length>0) this.$refs['registerCheckList0'].setCurrentRow(); |
|
|
|
|
|
//if(this.registerCheckList1.length>0) this.$refs['registerCheckList1'].setCurrentRow(); |
|
|
|
|
|
if(this.registerCheckList2.length>0) this.$refs['registerCheckList2'].setCurrentRow(); |
|
|
|
|
|
if(this.registerCheckList3.length>0) this.$refs['registerCheckList3'].setCurrentRow(); |
|
|
|
|
|
this.rowClick(row) |
|
|
|
|
|
}, |
|
|
|
|
|
// 检验检查点击 |
|
|
|
|
|
rowClick2(row){ |
|
|
|
|
|
// 跨检查类别选择时,先清除其他区的高亮选中状态 |
|
|
|
|
|
if(this.registerCheckList0.length>0) this.$refs['registerCheckList0'].setCurrentRow(); |
|
|
|
|
|
if(this.registerCheckList1.length>0) this.$refs['registerCheckList1'].setCurrentRow(); |
|
|
|
|
|
//if(this.registerCheckList2.length>0) this.$refs['registerCheckList2'].setCurrentRow(); |
|
|
|
|
|
if(this.registerCheckList3.length>0) this.$refs['registerCheckList3'].setCurrentRow(); |
|
|
|
|
|
this.rowClick(row) |
|
|
|
|
|
}, |
|
|
|
|
|
// 检验检查点击 |
|
|
|
|
|
rowClick3(row){ |
|
|
|
|
|
// 跨检查类别选择时,先清除其他区的高亮选中状态 |
|
|
|
|
|
if(this.registerCheckList0.length>0) this.$refs['registerCheckList0'].setCurrentRow(); |
|
|
|
|
|
if(this.registerCheckList1.length>0) this.$refs['registerCheckList1'].setCurrentRow(); |
|
|
|
|
|
if(this.registerCheckList2.length>0) this.$refs['registerCheckList2'].setCurrentRow(); |
|
|
|
|
|
//if(this.registerCheckList3.length>0) this.$refs['registerCheckList3'].setCurrentRow(); |
|
|
|
|
|
this.rowClick(row) |
|
|
|
|
|
}, |
|
|
//选择组合项目 |
|
|
//选择组合项目 |
|
|
rowClick(row) { |
|
|
rowClick(row) { |
|
|
// console.log('rowClick') |
|
|
// console.log('rowClick') |
|
|
|
|
|
|
|
|
this.doctorCheck.RegisterCheckId = row.id |
|
|
this.doctorCheck.RegisterCheckId = row.id |
|
|
this.doctorCheck.asbitemName = row.asbitemName |
|
|
this.doctorCheck.asbitemName = row.asbitemName |
|
|
this.doctorCheck.checkRequestNo = row.checkRequestNo |
|
|
this.doctorCheck.checkRequestNo = row.checkRequestNo |
|
|
@ -200,6 +238,116 @@ export default { |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
// 保存完后,自动下一个项目 |
|
|
|
|
|
doctorAutoNext(){ |
|
|
|
|
|
let lfind = -1 |
|
|
|
|
|
let nextRow = -1 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(this.registerCheckList0.length > 0){ |
|
|
|
|
|
lfind = arrayExistObj(this.registerCheckList0,'id',this.doctorCheck.RegisterCheckId) |
|
|
|
|
|
if(lfind > -1){ |
|
|
|
|
|
// 不是最后一个 |
|
|
|
|
|
if(lfind < this.registerCheckList0.length - 1){ |
|
|
|
|
|
nextRow = Number(lfind) + 1 |
|
|
|
|
|
this.rowClick0(this.registerCheckList0[nextRow]) |
|
|
|
|
|
this.$refs['registerCheckList0'].setCurrentRow(); |
|
|
|
|
|
this.$refs['registerCheckList0'].setCurrentRow(this.registerCheckList0[nextRow]); |
|
|
|
|
|
return |
|
|
|
|
|
}else{ |
|
|
|
|
|
if(this.registerCheckList1.length > 0){ |
|
|
|
|
|
nextRow = 0 |
|
|
|
|
|
this.rowClick1(this.registerCheckList1[nextRow]) |
|
|
|
|
|
this.$refs['registerCheckList1'].setCurrentRow(this.registerCheckList1[nextRow]); |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
if(this.registerCheckList2.length > 0){ |
|
|
|
|
|
nextRow = 0 |
|
|
|
|
|
this.rowClick2(this.registerCheckList2[nextRow]) |
|
|
|
|
|
this.$refs['registerCheckList2'].setCurrentRow(this.registerCheckList2[nextRow]); |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
if(this.registerCheckList3.length > 0){ |
|
|
|
|
|
nextRow = 0 |
|
|
|
|
|
this.rowClick3(this.registerCheckList3[nextRow]) |
|
|
|
|
|
this.$refs['registerCheckList3'].setCurrentRow(this.registerCheckList3[nextRow]); |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if(nextRow > -1) return |
|
|
|
|
|
if(this.registerCheckList1.length > 0){ |
|
|
|
|
|
lfind = arrayExistObj(this.registerCheckList1,'id',this.doctorCheck.RegisterCheckId) |
|
|
|
|
|
if(lfind > -1){ |
|
|
|
|
|
// 不是最后一个 |
|
|
|
|
|
if(lfind < this.registerCheckList1.length - 1){ |
|
|
|
|
|
nextRow = Number(lfind) + 1 |
|
|
|
|
|
this.rowClick1(this.registerCheckList1[nextRow]) |
|
|
|
|
|
this.$refs['registerCheckList1'].setCurrentRow(); |
|
|
|
|
|
this.$refs['registerCheckList1'].setCurrentRow(this.registerCheckList1[nextRow]); |
|
|
|
|
|
return |
|
|
|
|
|
}else{ |
|
|
|
|
|
if(this.registerCheckList2.length > 0){ |
|
|
|
|
|
nextRow = 0 |
|
|
|
|
|
this.rowClick2(this.registerCheckList2[nextRow]) |
|
|
|
|
|
this.$refs['registerCheckList2'].setCurrentRow(this.registerCheckList2[nextRow]); |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
if(this.registerCheckList3.length > 0){ |
|
|
|
|
|
nextRow = 0 |
|
|
|
|
|
this.rowClick3(this.registerCheckList3[nextRow]) |
|
|
|
|
|
this.$refs['registerCheckList3'].setCurrentRow(this.registerCheckList3[nextRow]); |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if(nextRow > -1) return |
|
|
|
|
|
if(this.registerCheckList2.length > 0){ |
|
|
|
|
|
lfind = arrayExistObj(this.registerCheckList2,'id',this.doctorCheck.RegisterCheckId) |
|
|
|
|
|
if(lfind > -1){ |
|
|
|
|
|
// 不是最后一个 |
|
|
|
|
|
if(lfind < this.registerCheckList2.length - 1){ |
|
|
|
|
|
nextRow = Number(lfind) + 1 |
|
|
|
|
|
this.rowClick2(this.registerCheckList2[nextRow]) |
|
|
|
|
|
this.$refs['registerCheckList2'].setCurrentRow(); |
|
|
|
|
|
this.$refs['registerCheckList2'].setCurrentRow(this.registerCheckList2[nextRow]); |
|
|
|
|
|
return |
|
|
|
|
|
}else{ |
|
|
|
|
|
if(this.registerCheckList3.length > 0){ |
|
|
|
|
|
nextRow = 0 |
|
|
|
|
|
this.rowClick3(this.registerCheckList3[nextRow]) |
|
|
|
|
|
this.$refs['registerCheckList3'].setCurrentRow(this.registerCheckList3[nextRow]); |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if(nextRow > -1) return |
|
|
|
|
|
if(this.registerCheckList3.length > 0){ |
|
|
|
|
|
lfind = arrayExistObj(this.registerCheckList3,'id',this.doctorCheck.RegisterCheckId) |
|
|
|
|
|
if(lfind > -1){ |
|
|
|
|
|
// 不是最后一个 |
|
|
|
|
|
if(lfind < this.registerCheckList3.length - 1){ |
|
|
|
|
|
nextRow = Number(lfind) + 1 |
|
|
|
|
|
this.rowClick3(this.registerCheckList3[nextRow]) |
|
|
|
|
|
this.$refs['registerCheckList3'].setCurrentRow(); |
|
|
|
|
|
this.$refs['registerCheckList3'].setCurrentRow(this.registerCheckList3[nextRow]); |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 分屏方式 浏览Dcm文件 ;如果不是 分屏方式,则点击 dcm 标签页时,再触发嵌入Dcm显示页 |
|
|
// 分屏方式 浏览Dcm文件 ;如果不是 分屏方式,则点击 dcm 标签页时,再触发嵌入Dcm显示页 |
|
|
browseDcm(row) { |
|
|
browseDcm(row) { |
|
|
|
|
|
|
|
|
@ -265,25 +413,42 @@ export default { |
|
|
|
|
|
|
|
|
this.doctorCheck.asbitemName = this.registerCheckList0[0].asbitemName |
|
|
this.doctorCheck.asbitemName = this.registerCheckList0[0].asbitemName |
|
|
this.doctorCheck.checkRequestNo = this.registerCheckList0[0].checkRequestNo |
|
|
this.doctorCheck.checkRequestNo = this.registerCheckList0[0].checkRequestNo |
|
|
|
|
|
// 默认选中第一个组合项目 |
|
|
|
|
|
setTimeout(() => { |
|
|
|
|
|
this.$refs['registerCheckList0'].setCurrentRow(this.registerCheckList0[0]) |
|
|
|
|
|
}, 20); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} else if(this.registerCheckList1.length > 0){ |
|
|
} else if(this.registerCheckList1.length > 0){ |
|
|
this.doctorCheck.RegisterCheckId = this.registerCheckList1[0].id |
|
|
this.doctorCheck.RegisterCheckId = this.registerCheckList1[0].id |
|
|
this.dataTransOpts.tableS.register_check.id = this.registerCheckList1[0].id |
|
|
this.dataTransOpts.tableS.register_check.id = this.registerCheckList1[0].id |
|
|
|
|
|
|
|
|
this.doctorCheck.asbitemName = this.registerCheckList1[0].asbitemName |
|
|
this.doctorCheck.asbitemName = this.registerCheckList1[0].asbitemName |
|
|
this.doctorCheck.checkRequestNo = this.registerCheckList1[0].checkRequestNo |
|
|
this.doctorCheck.checkRequestNo = this.registerCheckList1[0].checkRequestNo |
|
|
|
|
|
// 默认选中第一个组合项目 |
|
|
|
|
|
setTimeout(() => { |
|
|
|
|
|
this.$refs['registerCheckList1'].setCurrentRow(this.registerCheckList1[0]) |
|
|
|
|
|
}, 20); |
|
|
} else if(this.registerCheckList2.length > 0){ |
|
|
} else if(this.registerCheckList2.length > 0){ |
|
|
this.doctorCheck.RegisterCheckId = this.registerCheckList2[0].id |
|
|
this.doctorCheck.RegisterCheckId = this.registerCheckList2[0].id |
|
|
this.dataTransOpts.tableS.register_check.id = this.registerCheckList2[0].id |
|
|
this.dataTransOpts.tableS.register_check.id = this.registerCheckList2[0].id |
|
|
|
|
|
|
|
|
this.doctorCheck.asbitemName = this.registerCheckList2[0].asbitemName |
|
|
this.doctorCheck.asbitemName = this.registerCheckList2[0].asbitemName |
|
|
this.doctorCheck.checkRequestNo = this.registerCheckList2[0].checkRequestNo |
|
|
this.doctorCheck.checkRequestNo = this.registerCheckList2[0].checkRequestNo |
|
|
|
|
|
// 默认选中第一个组合项目 |
|
|
|
|
|
setTimeout(() => { |
|
|
|
|
|
this.$refs['registerCheckList2'].setCurrentRow(this.registerCheckList2[0]) |
|
|
|
|
|
}, 20); |
|
|
} else if(this.registerCheckList3.length > 0){ |
|
|
} else if(this.registerCheckList3.length > 0){ |
|
|
this.doctorCheck.RegisterCheckId = this.registerCheckList3[0].id |
|
|
this.doctorCheck.RegisterCheckId = this.registerCheckList3[0].id |
|
|
this.dataTransOpts.tableS.register_check.id = this.registerCheckList3[0].id |
|
|
this.dataTransOpts.tableS.register_check.id = this.registerCheckList3[0].id |
|
|
|
|
|
|
|
|
this.doctorCheck.asbitemName = this.registerCheckList3[0].asbitemName |
|
|
this.doctorCheck.asbitemName = this.registerCheckList3[0].asbitemName |
|
|
this.doctorCheck.checkRequestNo = this.registerCheckList3[0].checkRequestNo |
|
|
this.doctorCheck.checkRequestNo = this.registerCheckList3[0].checkRequestNo |
|
|
|
|
|
|
|
|
|
|
|
// 默认选中第一个组合项目 |
|
|
|
|
|
setTimeout(() => { |
|
|
|
|
|
this.$refs['registerCheckList3'].setCurrentRow(this.registerCheckList3[0]) |
|
|
|
|
|
}, 20); |
|
|
// if (res.data.length > 0) { |
|
|
// if (res.data.length > 0) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -339,6 +504,16 @@ export default { |
|
|
this.registerCheckList(this.dataTransOpts.tableS.patient_register.id) |
|
|
this.registerCheckList(this.dataTransOpts.tableS.patient_register.id) |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
// |
|
|
|
|
|
"dataTransOpts.plus.doctorAutoNext": { |
|
|
|
|
|
// immediate:true, |
|
|
|
|
|
handler(newVal, oldVal) { |
|
|
|
|
|
console.log(`watch 自动下一个项目 newVal: ${newVal} oldVal: ${oldVal} patient_register.id: ${this.dataTransOpts.tableS.patient_register.id}`); |
|
|
|
|
|
if(newVal != oldVal && newVal > 0){ |
|
|
|
|
|
this.doctorAutoNext() |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
} |
|
|
} |
|
|
}; |
|
|
}; |
|
|
</script> |
|
|
</script> |
|
|
|