Browse Source

LISLAB

master
pengjun 11 months ago
parent
commit
3bac85f3fc
  1. 28
      src/components/common/LocalConfig.vue
  2. 49
      src/components/doctorCheck/RegisterCheckList.vue
  3. 22
      src/views/lis/LisTakeSample.vue

28
src/components/common/LocalConfig.vue

@ -143,14 +143,32 @@
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="6">
<el-form-item label="发送worklist">
<el-checkbox v-model="LocalConfig.doctorCheck.isPacsWorklist" size="small" true-label="Y"
false-label="N" />
</el-form-item>
</el-col>
<el-col :span="6" v-if="LocalConfig.doctorCheck.isPacsWorklist == 'Y'">
<el-form-item label="scheduledAet">
<el-input v-model="LocalConfig.doctorCheck.scheduledAet" size="small" />
</el-form-item>
</el-col>
</el-row>
</el-form>
</el-tab-pane>
<el-tab-pane label="采血室">
<el-form label-width="100px" size="medium">
<el-row>
<el-col :span="6">
<el-form-item label="默认标本">
<el-checkbox v-model="LocalConfig.lisLab.specimens" size="small" />
<el-form-item label="默认标本类型">
<el-select v-model="LocalConfig.lisLab.specimens" placeholder="请选择" clearable filterable
size="small" multiple collapse-tags>
<el-option v-for="item in dict.specimens" :key="item.id" :label="item.displayName"
:value="item.id" />
</el-select>
</el-form-item>
</el-col>
</el-row>
@ -198,10 +216,14 @@ export default {
isSelectAll: 'N', //
isAutoNext: 'N',
pacsType: 'image',
isQueue: 'N', //
queueRoom: '', //
queueItemTypeIds: [], //
isBroadcast: 'N', // 广
isPacsWorklist: 'N', // DCM-worklist
scheduledAet: '', //scheduledAet
},
lisLab: {
specimens: [], // ID
@ -264,7 +286,7 @@ export default {
});
//
getapi("/api/app/menuinfo/getmymenuinfolist").then((res) => {
getapi("/api/app/sample-type/in-filter").then((res) => {
if (res.code != -1) {
this.dict.specimens = res.data;
}

49
src/components/doctorCheck/RegisterCheckList.vue

@ -29,25 +29,37 @@
<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"
:show-header="false" :row-style="{ height: '28px' }">
<el-table-column prop="asbitemName" label="组合项目" width="184">
<el-table-column prop="asbitemName" label="组合项目" :width="LocalConfig.doctorCheck.isPacsWorklist == 'Y' ? 153:184">
<template slot-scope="scope">
<div :style="`padding: 0 5px;color: ${setCheckStatusColor(scope.row.completeFlag)};`">
{{ scope.row.asbitemName }}
</div>
</template>
</el-table-column>
<el-table-column v-if="LocalConfig.doctorCheck.isPacsWorklist == 'Y'" width="30" align="center">
<template slot-scope="scope">
<i class="el-icon-s-order" @click="pacsRequest(scope.row.checkRequestNo)"
style="font-size: 24px;color: blue;cursor:pointer;"></i>
</template>
</el-table-column>
</el-table>
</el-collapse-item>
<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"
:show-header="false" :row-style="{ height: '28px' }">
<el-table-column prop="asbitemName" label="组合项目" width="184">
<el-table-column prop="asbitemName" label="组合项目" :width="LocalConfig.doctorCheck.isPacsWorklist == 'Y' ? 153:184">
<template slot-scope="scope">
<div :style="`padding: 0 5px;color: ${setCheckStatusColor(scope.row.completeFlag)};`">
{{ scope.row.asbitemName }}
</div>
</template>
</el-table-column>
<el-table-column v-if="LocalConfig.doctorCheck.isPacsWorklist == 'Y'" width="30" align="center">
<template slot-scope="scope">
<i class="el-icon-s-order" @click="pacsRequest(scope.row.checkRequestNo)"
style="font-size: 24px;color: blue;cursor:pointer;"></i>
</template>
</el-table-column>
</el-table>
</el-collapse-item>
</el-collapse>
@ -64,14 +76,32 @@ export default {
data() {
return {
activeNames: ['0', '1', '2', '3'],
LocalConfig: {
doctorCheck: { //
isPacsWorklist: 'N', // DCM-worklist
scheduledAet: '', //scheduledAet
}
},
};
},
created() { },
created() {
let LocalConfigStr = window.localStorage.getItem("LocalConfig") || null
if(LocalConfigStr){
try {
let LocalConfig = JSON.parse(LocalConfigStr)
if(LocalConfig?.doctorCheck?.isPacsWorklist) this.LocalConfig.doctorCheck.isPacsWorklist = LocalConfig.doctorCheck.isPacsWorklist
if(LocalConfig?.doctorCheck?.scheduledAet) this.LocalConfig.doctorCheck.scheduledAet = LocalConfig.doctorCheck.scheduledAet
} catch (error) {
console.log('error',error)
}
}
},
//
mounted() {
this.registerCheckList(this.dataTransOpts.tableS.patient_register.id)
},
computed: {
@ -174,7 +204,20 @@ export default {
handleRegisterCheckList(registerCheckList) {
this.doctorCheck.RegisterCheckList = listOrderBy(registerCheckList, [{ colName: 'checkTypeFlag', sortType: 'A' }, { colName: 'itemTypeDisplayOrder', sortType: 'A' }, { colName: 'asbitemDisplayOrder', sortType: 'A' }])
},
// pacsDCM-Worklist
pacsRequest(checkRequestNo){
let body = {
scheduledAet: this.LocalConfig.doctorCheck.scheduledAet,
checkRequestNo
}
postapi('/api/app/Worklist/CreateRegisterCheckWorklist',body).then(res => {
if(res.code > -1){
this.$message.success({showClose:true,message:"往 DCM-Worklist 发送申请成功!"})
}
})
},
},

22
src/views/lis/LisTakeSample.vue

@ -103,11 +103,16 @@ export default {
patientList: [],//
curPatient: {}, //
details: [], //
LocalConfig: {
lisLab: { //
specimens: [], //
}
},
};
},
created() {
this.formInit = Object.assign({}, this.form)
this.dictInit();
},
@ -172,10 +177,20 @@ export default {
//
dictInit() {
this.formInit = Object.assign({}, this.form)
this.query.startDate = new Date()
this.query.endDate = this.query.startDate
let LocalConfigStr = window.localStorage.getItem("LocalConfig") || null
if (LocalConfigStr) {
try {
let LocalConfig = JSON.parse(LocalConfigStr)
if (LocalConfig?.lisLab?.specimens) this.LocalConfig.lisLab.specimens = LocalConfig.lisLab.specimens
} catch (error) {
console.log('error', error)
}
}
},
@ -236,7 +251,8 @@ export default {
takeSample(lisRequestNos) {
return new Promise((resolve, reject) => {
let body = {
lisRequestNos,SampleTypeIds:[]
lisRequestNos,
sampleTypeIds: this.LocalConfig.lisLab.specimens
}
postapi('/api/app/LisRequest/SetLisRequestSamplerStatus', body)
.then(res => {

Loading…
Cancel
Save