diff --git a/src/components/queue/Queue.vue b/src/components/queue/Queue.vue index c10711d..05c79a0 100644 --- a/src/components/queue/Queue.vue +++ b/src/components/queue/Queue.vue @@ -61,7 +61,7 @@
{{ dddw(dict.queueFlag, 'id', scope.row.completeFlag, 'displayName') }}
- +
@@ -73,7 +73,11 @@ AI智能分诊
- 取消排队 + 取消排队 +
+
+ 恢复排队
关闭 @@ -159,11 +163,11 @@ export default { } }, - changeMedicalCenter(v){ - if(v){ + changeMedicalCenter(v) { + if (v) { this.roomsForAsbitemFilter = this.roomsForAsbitem.filter(e => e.medicalCenterId == v) - }else{ - this.roomsForAsbitemFilter = this.roomsForAsbitem + } else { + this.roomsForAsbitemFilter = this.roomsForAsbitem } }, @@ -196,7 +200,7 @@ export default { reject('patientRegisterId 无值') } } else { - reject(res.message) + reject(res?.message || '/api/app/QueueRegister/GetRoomQueueList 调用错误') } }) .then(res => { @@ -208,7 +212,7 @@ export default { reject('patientRegisterId 无值') } } else { - reject(res.message) + reject(res?.message || '/api/app/QueueRegister/GetNotTriageAsbitemList 调用错误') } }) .then(res => { @@ -220,7 +224,7 @@ export default { reject('patientRegisterId 无值') } } else { - reject(res.message) + reject(res?.message || '/api/app/QueueRegister/GetYesTriageAsbitemList 调用错误') } }) .then(res => { @@ -230,9 +234,21 @@ export default { } else { this.queueRegister = { patientName: this.refParams?.patientName, roomName: '无', queueCount: '' } } - resolve(res) + // resolve(res) + return postapi('/api/app/QueueRegister/GetCancelQueueRegisterByPatientRegisterId', { patientRegisterId }) + } else { + reject(res?.message || '/api/app/QueueRegister/GetQueueRegisterByPatientRegisterId 调用错误') + } + }) + .then(res => { + if (res && res.code > -1) { + res.data.forEach(e => { + e.completeFlag = '9' + this.yesTriageAsbitemList.push(e) + }); + } else { - reject(res.message) + reject(res?.message || '/api/app/QueueRegister/GetCancelQueueRegisterByPatientRegisterId 调用错误') } }) .catch(err => { @@ -368,7 +384,21 @@ export default { } }); } - } + }, + + // 恢复排队 + btnRecoverQueue() { + + postapi('/api/app/QueueRegister/RecoverCancelQueueRegisterByQueueRegisterId', { queueRegisterId: this.curQueueRow.queueRegisterId }) + .then(res => { + if (res.code > -1) { + this.$message.success({showClose:true,message:'操作成功!'}) + this.curQueueRow = {} + return this.dictInit() + } + }) + }, + }, //监听事件() diff --git a/src/store/index.js b/src/store/index.js index c60b82e..26f423a 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -400,6 +400,7 @@ export default new Vuex.Store({ { id: "0", displayName: "候诊" }, { id: "1", displayName: "已呼" }, { id: "2", displayName: "过号" }, + { id: "9", displayName: "取消" }, ], },