pengjun 2 weeks ago
parent
commit
fe70959734
  1. 8
      src/components/doctorCheck/CheckItemList.vue
  2. 18
      src/components/doctorCheck/CheckPicture.vue
  3. 40
      src/components/doctorCheck/CheckSumSug.vue
  4. 31
      src/components/doctorCheck/PatientRegisterBase.vue
  5. 7
      src/components/sumDoctorCheck/SumSug.vue

8
src/components/doctorCheck/CheckItemList.vue

@ -342,6 +342,7 @@ export default {
mounted() {
// Electron
if (this.$peisAPI) {
try {
//
this.$peisAPI.onContextMenuAction((data) => {
this.onContextMenuDIY(data)
@ -351,6 +352,9 @@ export default {
this.$peisAPI.onSerialData((data) => {
this.onSerialData(data)
});
} catch (error) {
console.error(error)
}
}
this.checkItemList(this.dataTransOpts.tableS.register_check.id);
@ -1285,10 +1289,10 @@ export default {
//
onSerialData(data) {
console.log('onSerialData.data',data)
console.log('onSerialData.data', data)
let array = data.data
for (let index = 0; index < array.length; index++) {
this.setSerialData(array[index]['deviceType'],array[index]['value'])
this.setSerialData(array[index]['deviceType'], array[index]['value'])
}
},

18
src/components/doctorCheck/CheckPicture.vue

@ -277,6 +277,7 @@ export default {
mounted() {
// Electron
if (this.$peisAPI) {
try {
//--
this.$peisAPI.onEventFromPictureHotKeyMain((data) => {
this.acceptHotKeyData('add', data)
@ -301,6 +302,9 @@ export default {
this.$peisAPI.onEventFromPictureDeleteHotKeyMain(() => {
this.acceptHotKeyData('delete')
});
} catch (error) {
console.error(error)
}
}
@ -420,7 +424,7 @@ export default {
patientName: this.dataTransOpts.tableS.patient_register.patientName,
sexName: this.dataTransOpts.tableS.patient_register.sexName,
age: (this.dataTransOpts.tableS.patient_register.age || '') + '',
asbitemName: this.doctorCheck.checkRequestNo||'temp'
asbitemName: this.doctorCheck.checkRequestNo || 'temp'
}
// console.log('this.$peisAPI.imageAcquisition', JSON.stringify(toOutShell))
@ -464,7 +468,7 @@ export default {
fileName,
localPathName: item.FilePath,
pictureBaseStr: baseHead + item.Image,
isPrint:'N'
isPrint: 'N'
}],
pictureFileType: '0' //01 this.pictureFileType
}
@ -528,7 +532,7 @@ export default {
.then((res) => {
if (res.code < 0) {
console.log('热键更新图片打印标识失败:', res.message)
}else{
} else {
this.getCheckPictures(this.dataTransOpts.tableS.register_check.id)
}
})
@ -569,15 +573,15 @@ export default {
break;
}
let isPrintTrans = false
if(oprType == 'addPrint'){
if (oprType == 'addPrint') {
item.isPrint = 'Y'
isPrintTrans = true
}else{
} else {
item.isPrint = 'N'
}
// item.isPrintTrans
this.checkPictures.push({ pictureFilename: baseHead + item.Image ,isPrintTrans})
this.checkPictures.push({ pictureFilename: baseHead + item.Image, isPrintTrans })
let fileName = item.FilePath
let dotIndex = fileName.lastIndexOf('\\');
@ -589,7 +593,7 @@ export default {
fileName,
localPathName: item.FilePath,
pictureBaseStr: baseHead + item.Image,
isPrint:item.isPrint
isPrint: item.isPrint
}],
pictureFileType: '0' //01 this.pictureFileType
}

40
src/components/doctorCheck/CheckSumSug.vue

@ -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,8 +168,8 @@ export default {
routeUrlorPageName: 'doctorCheck', //
privs: [], //
},
activeName:'preResult',
doctor_check_disp_suggestion:'N', //
activeName: 'preResult',
doctor_check_disp_suggestion: 'N', //
pacsDescFontSize: 14, //
};
@ -183,10 +183,10 @@ 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' })
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"
if (res.code > -1) {
this.doctor_check_disp_suggestion = (res.data.toUpperCase()) || "N"
}
})
},
@ -196,14 +196,18 @@ export default {
// Electron
if (this.$peisAPI) {
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,7 +245,7 @@ export default {
console.log("checkSummaryList", res.data);
if (res.code > -1) {
this.doctorCheck.checkSummaryList = res.data;
if(this.doctorCheck.checkSummaryList.length == 0){
if (this.doctorCheck.checkSummaryList.length == 0) {
this.doctorCheck.checkSummaryList.push({
id: Math.random(),
registerCheckId,
@ -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()
@ -450,7 +454,7 @@ export default {
},
//
onContextMenuDIY(data){
onContextMenuDIY(data) {
//this.$message({showClose:true,message:data})
}
},

31
src/components/doctorCheck/PatientRegisterBase.vue

@ -3,7 +3,8 @@
<div style="display: flex; flex-wrap: wrap;height:70px; width: 100%;overflow-y: auto;">
<div>
<span class="query">条码号</span>
<el-input ref="tmh" placeholder="条码号" v-model="prBase.patientRegisterNo" size="small" style="width: 120px;" clearable />
<el-input ref="tmh" placeholder="条码号" v-model="prBase.patientRegisterNo" size="small" style="width: 120px;"
clearable />
</div>
<div>
<span class="query">档案号</span>
@ -23,11 +24,11 @@
</div>
<div>
<span class="query">身份证</span>
<el-input placeholder="身份证号" v-model="prBase.idNo" size="small" style="width: 150px;" clearable/>
<el-input placeholder="身份证号" v-model="prBase.idNo" size="small" style="width: 150px;" clearable />
</div>
<div>
<span class="query">手机</span>
<el-input placeholder="手机号" v-model="prBase.mobileTelephone" style="width: 120px;" size="small" clearable/>
<el-input placeholder="手机号" v-model="prBase.mobileTelephone" style="width: 120px;" size="small" clearable />
</div>
<div>
<span class="query">性别</span>
@ -158,9 +159,13 @@ export default {
mounted() {
// Electron
if (this.$peisAPI) {
try {
this.$peisAPI.onContextMenuAction((data) => {
this.onContextMenuDIY(data)
});
} catch (error) {
console.error(error)
}
}
//
@ -209,7 +214,7 @@ export default {
postapi('/api/app/PatientRegister/GetPatientRegisterNoByCheckRequestNo', { checkRequestNo }).then(res => {
if (res.code > 0) {
this.prBase.patientRegisterNo = res.data.patientRegisterNo
this.onQueryByPatientRegisterNo()
this.onQueryByOnlyNo('patientRegisterNo')
}
})
},
@ -219,19 +224,19 @@ export default {
postapi('/api/app/PatientRegister/GetPatientRegisterNoByLisRequestNo', { lisRequestNo }).then(res => {
if (res.code > 0) {
this.prBase.patientRegisterNo = res.data.patientRegisterNo
this.onQueryByPatientRegisterNo()
this.onQueryByOnlyNo('patientRegisterNo')
}
})
},
//
onQueryByOnlyNo(noType){
onQueryByOnlyNo(noType) {
let noVal = this.prBase[noType] //
if(!noVal) return
if (!noVal) return
let body = {}
body[noType] = noVal
let patientRegister = {id:''}
let patientRegister = { id: '' }
patientRegister[noType] = noVal
this.dataTransOpts.tableS.patient_register = deepCopy(patientRegister)
@ -304,18 +309,18 @@ export default {
},
*/
//
onQueryByNotOnlyNo(valType){
onQueryByNotOnlyNo(valType) {
let noVal = this.prBase[valType] //
if(!noVal) return
if (!noVal) return
let body = {
isFilterPreRegistration: 'Y' // Y= N= N (CompleteFlag0null)
}
let noType = valType
if(valType == 'mobileTelephone') noType='phone'
if (valType == 'mobileTelephone') noType = 'phone'
body[noType] = noVal
let patientRegister = {id:''}
let patientRegister = { id: '' }
patientRegister[valType] = noVal
this.dataTransOpts.tableS.patient_register = deepCopy(patientRegister)
@ -515,7 +520,7 @@ export default {
},
//
onContextMenuDIY(data){
onContextMenuDIY(data) {
//this.$message({showClose:true,message:data})
}

7
src/components/sumDoctorCheck/SumSug.vue

@ -417,9 +417,13 @@ export default {
async mounted() {
// Electron
if (this.$peisAPI) {
try {
this.$peisAPI.onContextMenuAction((data) => {
this.onContextMenuDIY(data)
});
} catch (error) {
console.error(error)
}
}
// this.rowDrop();
@ -1644,7 +1648,8 @@ export default {
cursor: move;
background-color: #EEEEEE;
}
.moveTag2div{
.moveTag2div {
margin-top: -5px;
}

Loading…
Cancel
Save