pengjun 2 weeks ago
parent
commit
fe70959734
  1. 34
      src/components/doctorCheck/CheckItemList.vue
  2. 60
      src/components/doctorCheck/CheckPicture.vue
  3. 74
      src/components/doctorCheck/CheckSumSug.vue
  4. 57
      src/components/doctorCheck/PatientRegisterBase.vue
  5. 13
      src/components/sumDoctorCheck/SumSug.vue

34
src/components/doctorCheck/CheckItemList.vue

@ -342,15 +342,19 @@ export default {
mounted() {
// Electron
if (this.$peisAPI) {
//
this.$peisAPI.onContextMenuAction((data) => {
this.onContextMenuDIY(data)
});
try {
//
this.$peisAPI.onContextMenuAction((data) => {
this.onContextMenuDIY(data)
});
//
this.$peisAPI.onSerialData((data) => {
this.onSerialData(data)
});
//
this.$peisAPI.onSerialData((data) => {
this.onSerialData(data)
});
} catch (error) {
console.error(error)
}
}
this.checkItemList(this.dataTransOpts.tableS.register_check.id);
@ -387,13 +391,13 @@ export default {
this.hisResultDetailDialogVisible = true
}
}
})
})
// (ID)
postapi('/api/app/SysParmValue/GetSysParmValueBySysParmId', { sysParmId: 'height_item_id' })
.then(res => {
if (res.code > -1) {
this.comData.height_item_id = res.data || ""
this.comData.height_item_id = res.data || ""
}
})
@ -401,7 +405,7 @@ export default {
postapi('/api/app/SysParmValue/GetSysParmValueBySysParmId', { sysParmId: 'weight_item_id' })
.then(res => {
if (res.code > -1) {
this.comData.weight_item_id = res.data || ""
this.comData.weight_item_id = res.data || ""
}
})
@ -409,7 +413,7 @@ export default {
postapi('/api/app/SysParmValue/GetSysParmValueBySysParmId', { sysParmId: 'hb_item_id' })
.then(res => {
if (res.code > -1) {
this.comData.hb_item_id = res.data || ""
this.comData.hb_item_id = res.data || ""
}
})
@ -417,7 +421,7 @@ export default {
postapi('/api/app/SysParmValue/GetSysParmValueBySysParmId', { sysParmId: 'lb_item_id' })
.then(res => {
if (res.code > -1) {
this.comData.lb_item_id = res.data || ""
this.comData.lb_item_id = res.data || ""
}
})
@ -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'])
}
},

60
src/components/doctorCheck/CheckPicture.vue

@ -277,30 +277,34 @@ export default {
mounted() {
// Electron
if (this.$peisAPI) {
//--
this.$peisAPI.onEventFromPictureHotKeyMain((data) => {
this.acceptHotKeyData('add', data)
});
try {
//--
this.$peisAPI.onEventFromPictureHotKeyMain((data) => {
this.acceptHotKeyData('add', data)
});
//--
this.$peisAPI.onEventFromPictureAndPrintHotKeyMain((data) => {
this.acceptHotKeyData('addPrint', data)
});
//--
this.$peisAPI.onEventFromPictureAndPrintHotKeyMain((data) => {
this.acceptHotKeyData('addPrint', data)
});
//--
this.$peisAPI.onEventFromPicturePrintHotKeyMain(() => {
this.acceptHotKeyData('print')
});
//--
this.$peisAPI.onEventFromPicturePrintHotKeyMain(() => {
this.acceptHotKeyData('print')
});
//--
this.$peisAPI.onEventFromPictureCancelPrintHotKeyMain(() => {
this.acceptHotKeyData('unPrint')
});
//--
this.$peisAPI.onEventFromPictureCancelPrintHotKeyMain(() => {
this.acceptHotKeyData('unPrint')
});
//
this.$peisAPI.onEventFromPictureDeleteHotKeyMain(() => {
this.acceptHotKeyData('delete')
});
//
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,16 +573,16 @@ 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('\\');
if (dotIndex > -1) fileName = fileName.substring(dotIndex, fileName.length);
@ -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
}

74
src/components/doctorCheck/CheckSumSug.vue

@ -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})
}
},

57
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>
@ -37,7 +38,7 @@
</el-select>
-->
<el-input v-model="prBase.sexName" size="small" style="width: 40px;" disabled />
</div>
</div>
<div>
<span class="query">年龄</span>
<el-input v-model="prBase.age" size="small" style="width: 40px;" disabled />
@ -94,7 +95,7 @@
</el-select>
-->
<el-input v-model="prBase.nationName" style="width: 80px;" size="small" disabled />
</div>
</div>
</div>
<!-- 体检人员记录列表 -->
@ -158,9 +159,13 @@ export default {
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)
}
}
//
@ -196,7 +201,7 @@ export default {
//
// console.log('afterFind',rd)
this.dataTransOpts.refresh.sumDoctor.M++
this.dataTransOpts.refresh.sumDoctor.M++
// this.dataTransOpts.refresh.sum_diagnosis.M++
//
@ -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)
@ -302,20 +307,20 @@ export default {
this.afterFind(this.dataTransOpts.tableS.patient_register)
});
},
*/
*/
//
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)
@ -341,7 +346,7 @@ export default {
}
})
},
@ -387,7 +392,7 @@ export default {
// }, 20);
},
*/
//patientRegisterNo
getPatientRegister(patientRegisterNo) {
// this.afterFind({ id: '', patientRegisterNo: '' })
@ -408,7 +413,7 @@ export default {
});
},
@ -453,7 +458,7 @@ export default {
case '检验条码':
if (input.value) this.onQueryByLisNo(input.value)
input.select()
break;
break;
case '姓名':
if (input.value) this.onQueryByNotOnlyNo('patientName') //this.getlistinfilterByName(input.value)
input.select()
@ -489,7 +494,7 @@ export default {
return
}
let menus = [
// { type: 'separator' },
// { label: '', itemId: '', enabled: true },
@ -511,11 +516,11 @@ export default {
.finally(() => {
console.log('finally')
})
},
//
onContextMenuDIY(data){
onContextMenuDIY(data) {
//this.$message({showClose:true,message:data})
}

13
src/components/sumDoctorCheck/SumSug.vue

@ -417,9 +417,13 @@ export default {
async 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();
@ -1644,7 +1648,8 @@ export default {
cursor: move;
background-color: #EEEEEE;
}
.moveTag2div{
.moveTag2div {
margin-top: -5px;
}

Loading…
Cancel
Save