|
|
|
@ -9,62 +9,68 @@ |
|
|
|
<el-table-column label="候诊" min-width="40" prop="waitCount" align="center" /> |
|
|
|
</el-table> |
|
|
|
</div> |
|
|
|
<div style="width: 360px;margin: 0 5px;"> |
|
|
|
<div>未分诊组合项目:</div> |
|
|
|
<el-table :data="notTriageAsbitemList" border style="width: 100%" row-key="id" height="270" highlight-current-row |
|
|
|
size="small" @row-click="rowClick" ref="notTriageAsbitemList"> |
|
|
|
<el-table-column label="科室" min-width="130" prop="itemTypeName" align="center" /> |
|
|
|
<el-table-column label="组合项目" min-width="150" prop="asbitemName" align="center" /> |
|
|
|
</el-table> |
|
|
|
|
|
|
|
<div style="margin-top: 5px;">已分诊科室:</div> |
|
|
|
<el-table :data="yesTriageAsbitemList" border style="width: 100%" row-key="id" height="270" highlight-current-row |
|
|
|
size="small" ref="yesTriageAsbitemList"> |
|
|
|
<el-table-column label="科室" min-width="130" prop="asbitemName"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div> |
|
|
|
{{ scope.row.asbitemName }} |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="房间" prop="roomName" min-width="60" align="center" /> |
|
|
|
|
|
|
|
<el-table-column label="状态" prop="completeFlag" min-width="60" align="center"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div>{{ dddw(dict.queueFlag,'id',scope.row.completeFlag,'displayName') }}</div> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="排号人" prop="triageName" min-width="80" align="center"/> |
|
|
|
</el-table> |
|
|
|
</div> |
|
|
|
<div style="width: 120px;"> |
|
|
|
<div>房间:</div> |
|
|
|
<el-table :data="roomsForAsbitem" border style="width: 100%" row-key="id" height="270" highlight-current-row |
|
|
|
size="small" @row-click="rowClickRoom" ref="roomsForAsbitem"> |
|
|
|
<el-table-column label="房间" min-width="80" prop="roomName" align="center" /> |
|
|
|
</el-table> |
|
|
|
<div style="margin: 25px 0 10px 10px;"> |
|
|
|
<el-button class="commonbutton" @click="btnQueue">人工分诊排队</el-button> |
|
|
|
</div> |
|
|
|
<div v-if="false" style="margin-left: 10px;"> |
|
|
|
<el-button class="commonbutton" @click="btnQueueAuto">AI智能分诊</el-button> |
|
|
|
</div> |
|
|
|
<div style="margin: 10px 0 5px 0;">当前人员:</div> |
|
|
|
<div style="height: 20px;margin-left: 20px;"> |
|
|
|
{{ queueRegister.patientName }} |
|
|
|
</div> |
|
|
|
<div style="margin: 10px 0 5px 0;">当前排队房间:</div> |
|
|
|
<div style="height: 20px;margin-left: 20px;"> |
|
|
|
{{ queueRegister.roomName }} |
|
|
|
<div style="width: 485px;margin: 0 5px;"> |
|
|
|
<div style="display: flex;"> |
|
|
|
<div style="width: 360px;"> |
|
|
|
<div>未分诊组合项目:</div> |
|
|
|
<el-table :data="notTriageAsbitemList" border style="width: 100%" row-key="id" height="270" |
|
|
|
highlight-current-row size="small" @row-click="rowClick" ref="notTriageAsbitemList"> |
|
|
|
<el-table-column label="科室" min-width="130" prop="itemTypeName" align="center" /> |
|
|
|
<el-table-column label="组合项目" min-width="150" prop="asbitemName" align="center" /> |
|
|
|
</el-table> |
|
|
|
</div> |
|
|
|
<div style="width: 120px;margin-left: 5px;"> |
|
|
|
<div>房间:</div> |
|
|
|
<el-table :data="roomsForAsbitem" border style="width: 100%" row-key="id" height="270" highlight-current-row |
|
|
|
size="small" @row-click="rowClickRoom" ref="roomsForAsbitem"> |
|
|
|
<el-table-column label="房间" min-width="80" prop="roomName" align="center" /> |
|
|
|
</el-table> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div style="margin: 5px 0 5px 0;">当前候诊人数:</div> |
|
|
|
<div style="height: 25px;margin-left: 20px;"> |
|
|
|
{{ queueRegister.queueCount }} |
|
|
|
|
|
|
|
<div style="display: flex; margin-top: 5px;"> |
|
|
|
<div>已分诊科室:</div> |
|
|
|
<div style="margin-left: 40px;">当前人员:{{ queueRegister.patientName }}</div> |
|
|
|
<div style="margin-left: 10px;">排队房间:{{ queueRegister.roomName }}</div> |
|
|
|
<div style="margin-left: 10px;">候诊人数:{{ queueRegister.queueCount }}</div> |
|
|
|
</div> |
|
|
|
<div style="margin-left: 10px;"> |
|
|
|
<el-button class="commonbutton" @click="dialogWin.queue = false">关闭</el-button> |
|
|
|
<div style="display: flex;"> |
|
|
|
|
|
|
|
<el-table :data="yesTriageAsbitemList" border row-key="id" height="270" highlight-current-row size="small" |
|
|
|
ref="yesTriageAsbitemList"> |
|
|
|
<el-table-column label="房间" prop="roomName" min-width="80" align="center" /> |
|
|
|
<el-table-column label="项目" min-width="150" prop="asbitemName"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div> |
|
|
|
{{ scope.row.asbitemName }} |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="状态" prop="completeFlag" min-width="40" align="center"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div>{{ dddw(dict.queueFlag, 'id', scope.row.completeFlag, 'displayName') }}</div> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="排号人" prop="triageName" min-width="60" align="center" /> |
|
|
|
</el-table> |
|
|
|
<div style="width: 120px;"> |
|
|
|
|
|
|
|
<div style="margin: 25px 0 10px 10px;"> |
|
|
|
<el-button class="commonbutton" @click="btnQueue">人工分诊排队</el-button> |
|
|
|
</div> |
|
|
|
<div v-if="false" style="margin-left: 10px;"> |
|
|
|
<el-button class="commonbutton" @click="btnQueueAuto">AI智能分诊</el-button> |
|
|
|
</div> |
|
|
|
<div style="margin-left: 10px;margin-bottom: 10px;"> |
|
|
|
<el-button class="commonbutton" @click="btnCancelQueue">取消排队</el-button> |
|
|
|
</div> |
|
|
|
<div style="margin-left: 10px;"> |
|
|
|
<el-button class="commonbutton" @click="dialogWin.queue = false">关闭</el-button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
</template> |
|
|
|
<script> |
|
|
|
@ -122,7 +128,7 @@ export default { |
|
|
|
}) |
|
|
|
.catch(err => { |
|
|
|
console.log(err) |
|
|
|
if(err != "patientRegisterId 无值") this.$message.error({ showClose: true, message: `${err}` }) |
|
|
|
if (err != "patientRegisterId 无值") this.$message.error({ showClose: true, message: `${err}` }) |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
@ -136,10 +142,10 @@ export default { |
|
|
|
if (res.code > -1) { |
|
|
|
this.roomQueueList = res.data |
|
|
|
this.roomsForAsbitem = [] |
|
|
|
if(patientRegisterId){ |
|
|
|
if (patientRegisterId) { |
|
|
|
return postapi('/api/app/QueueRegister/GetNotTriageAsbitemList', { patientRegisterId }) |
|
|
|
}else{ |
|
|
|
reject('patientRegisterId 无值') |
|
|
|
} else { |
|
|
|
reject('patientRegisterId 无值') |
|
|
|
} |
|
|
|
} else { |
|
|
|
reject(res.message) |
|
|
|
@ -148,10 +154,10 @@ export default { |
|
|
|
.then(res => { |
|
|
|
if (res && res.code > -1) { |
|
|
|
this.notTriageAsbitemList = res.data |
|
|
|
if(patientRegisterId){ |
|
|
|
if (patientRegisterId) { |
|
|
|
return postapi('/api/app/QueueRegister/GetYesTriageAsbitemList', { patientRegisterId }) |
|
|
|
}else{ |
|
|
|
reject('patientRegisterId 无值') |
|
|
|
} else { |
|
|
|
reject('patientRegisterId 无值') |
|
|
|
} |
|
|
|
} else { |
|
|
|
reject(res.message) |
|
|
|
@ -160,10 +166,10 @@ export default { |
|
|
|
.then(res => { |
|
|
|
if (res && res.code > -1) { |
|
|
|
this.yesTriageAsbitemList = res.data |
|
|
|
if(patientRegisterId){ |
|
|
|
if (patientRegisterId) { |
|
|
|
return postapi('/api/app/QueueRegister/GetQueueRegisterByPatientRegisterId', { patientRegisterId }) |
|
|
|
}else{ |
|
|
|
reject('patientRegisterId 无值') |
|
|
|
} else { |
|
|
|
reject('patientRegisterId 无值') |
|
|
|
} |
|
|
|
} else { |
|
|
|
reject(res.message) |
|
|
|
@ -202,7 +208,7 @@ export default { |
|
|
|
this.roomsForAsbitem = [] |
|
|
|
this.curRoomId = '' |
|
|
|
postapi('/api/app/QueueRegister/GetRoomListByAsbitemId', { |
|
|
|
patientRegisterId:this.refParams.patientRegisterId, |
|
|
|
patientRegisterId: this.refParams.patientRegisterId, |
|
|
|
asbitemId: this.curAsbitemId |
|
|
|
}).then(res => { |
|
|
|
if (res.code > -1) { |
|
|
|
@ -230,7 +236,7 @@ export default { |
|
|
|
patientRegisterId: this.refParams.patientRegisterId, |
|
|
|
roomId: this.curRoomId |
|
|
|
}).then(res => { |
|
|
|
if(res.code > -1){ |
|
|
|
if (res.code > -1) { |
|
|
|
this.$message.success({ showClose: true, message: '操作成功!' }) |
|
|
|
return this.dictInit() |
|
|
|
} |
|
|
|
@ -239,21 +245,38 @@ export default { |
|
|
|
|
|
|
|
// 自动排队 |
|
|
|
btnQueueAuto() { |
|
|
|
console.log('this.refParams.patientRegisterId',this.refParams.patientRegisterId) |
|
|
|
console.log('this.refParams.patientRegisterId', this.refParams.patientRegisterId) |
|
|
|
if (!this.refParams.patientRegisterId) { |
|
|
|
this.$message.warning({ showClose: true, message: '未获取到人员信息' }) |
|
|
|
return |
|
|
|
} |
|
|
|
} |
|
|
|
postapi('/api/app/QueueRegister/AutomaticQueuingRoom', { |
|
|
|
patientRegisterId: this.refParams.patientRegisterId |
|
|
|
}).then(res => { |
|
|
|
if(res.code > -1){ |
|
|
|
if (res.code > -1) { |
|
|
|
this.$message.success({ showClose: true, message: '操作成功!' }) |
|
|
|
return this.dictInit() |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
// 取消排队 |
|
|
|
btnCancelQueue(){ |
|
|
|
if (!this.refParams.patientRegisterId) { |
|
|
|
this.$message.warning({ showClose: true, message: '未获取到人员信息' }) |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
postapi('/api/app/QueueRegister/DeleteByPatientRegisterId', { |
|
|
|
patientRegisterId: this.refParams.patientRegisterId |
|
|
|
}).then(res => { |
|
|
|
if (res.code > -1) { |
|
|
|
this.$message.success({ showClose: true, message: '操作成功!' }) |
|
|
|
return this.dictInit() |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
//监听事件() |
|
|
|
|