|
|
|
@ -39,7 +39,7 @@ |
|
|
|
<div style="display: flex;"> |
|
|
|
|
|
|
|
<el-table :data="yesTriageAsbitemList" border row-key="id" height="270" highlight-current-row size="small" |
|
|
|
ref="yesTriageAsbitemList"> |
|
|
|
ref="yesTriageAsbitemList" @row-click="rowClickQueue"> |
|
|
|
<el-table-column label="房间" prop="roomName" min-width="80" align="center" /> |
|
|
|
<el-table-column label="项目" min-width="150" prop="asbitemName"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
@ -97,6 +97,7 @@ export default { |
|
|
|
|
|
|
|
curAsbitemId: '', // 当前选中 未分诊组合项目 |
|
|
|
curRoomId: '', // 当前选中 房间 |
|
|
|
curQueueRow: {}, // 当前选扣的排队房间 |
|
|
|
}; |
|
|
|
}, |
|
|
|
|
|
|
|
@ -145,6 +146,7 @@ export default { |
|
|
|
this.dictInit() |
|
|
|
.then(res => { |
|
|
|
//this.btnQuery() |
|
|
|
this.curQueueRow = {} // 清空已选排队信息 |
|
|
|
}) |
|
|
|
.catch(err => { |
|
|
|
console.log(err) |
|
|
|
@ -209,10 +211,22 @@ export default { |
|
|
|
}) |
|
|
|
.catch(err => { |
|
|
|
reject(err) |
|
|
|
}) |
|
|
|
.finally(() => { |
|
|
|
// 清除选择 |
|
|
|
this.$refs['roomQueueList'].setCurrentRow(); |
|
|
|
this.$refs['notTriageAsbitemList'].setCurrentRow(); |
|
|
|
this.$refs['roomsForAsbitem'].setCurrentRow(); |
|
|
|
this.$refs['yesTriageAsbitemList'].setCurrentRow(); |
|
|
|
}); |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
// 选中已排队的信息 |
|
|
|
rowClickQueue(row) { |
|
|
|
this.curQueueRow = row |
|
|
|
}, |
|
|
|
|
|
|
|
btnClose() { |
|
|
|
this.dialogWin.queue = false |
|
|
|
this.dialogWin.queue1 = false |
|
|
|
@ -289,19 +303,42 @@ export default { |
|
|
|
|
|
|
|
// 取消排队 |
|
|
|
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() |
|
|
|
// 有选择排队信息时,取消对应选中的排队信息 |
|
|
|
if (this.curQueueRow?.queueRegisterId) { |
|
|
|
postapi('/api/app/QueueRegister/Delete', { queueRegisterId: this.curQueueRow.queueRegisterId }) |
|
|
|
.then(res => { |
|
|
|
if (res.code > -1) { |
|
|
|
this.curQueueRow = {} |
|
|
|
return this.dictInit() |
|
|
|
} |
|
|
|
}) |
|
|
|
} else { |
|
|
|
if (!this.refParams.patientRegisterId) { |
|
|
|
this.$message.warning({ showClose: true, message: '未获取到人员信息' }) |
|
|
|
return |
|
|
|
} |
|
|
|
}) |
|
|
|
|
|
|
|
this.$confirm("没用选中排队信息,则取消所有排队信息, 是否继续?", "提示", { |
|
|
|
confirmButtonText: "是", |
|
|
|
cancelButtonText: "否", |
|
|
|
type: "warning", |
|
|
|
}) |
|
|
|
.then(() => { |
|
|
|
postapi('/api/app/QueueRegister/DeleteByPatientRegisterId', { |
|
|
|
patientRegisterId: this.refParams.patientRegisterId |
|
|
|
}).then(res => { |
|
|
|
if (res.code > -1) { |
|
|
|
this.$message.success({ showClose: true, message: '操作成功!' }) |
|
|
|
return this.dictInit() |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
.catch((err) => { |
|
|
|
if (err == "cancel") { |
|
|
|
this.$message.info({ showClose: true, message: "已取消操作" }); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
|