pengjun 2 years ago
parent
commit
b152ecbaa0
  1. 7
      src/components/doctorCheck/QueueCheckList.vue
  2. 15
      src/components/occDisease/occReport.vue

7
src/components/doctorCheck/QueueCheckList.vue

@ -357,6 +357,7 @@ export default {
}); });
}); });
if(roomId){
postapi('/api/app/QueueRegister/GetQueueRegisterListByRoomId', { roomId, itemTypeIds }) postapi('/api/app/QueueRegister/GetQueueRegisterListByRoomId', { roomId, itemTypeIds })
.then(res => { .then(res => {
if (res.code > -1) { if (res.code > -1) {
@ -372,12 +373,14 @@ export default {
.catch(err => { .catch(err => {
reject(err) reject(err)
}) })
}else{
reject('请选择房间')
}
}) })
}, },
// ByRoomId // ByRoomId
getQueueRegisterListByRoomId(roomId) { getQueueRegisterListByRoomId(roomId) {
if (!roomId) { if (!roomId) {
this.$message.warning({ showClose: true, message: '请选择房间' }) this.$message.warning({ showClose: true, message: '请选择房间' })
return return
@ -387,7 +390,9 @@ export default {
// ByRoomId // ByRoomId
getQueueRegisterListByItemTypeIds(itemTypeIds) { getQueueRegisterListByItemTypeIds(itemTypeIds) {
if(this.LocalConfig.doctorCheck.queueRoom){
this.getQueueRegisterList(this.LocalConfig.doctorCheck.queueRoom, itemTypeIds) this.getQueueRegisterList(this.LocalConfig.doctorCheck.queueRoom, itemTypeIds)
}
}, },
setQueueParams() { setQueueParams() {

15
src/components/occDisease/occReport.vue

@ -276,6 +276,7 @@
<script> <script>
import moment from "moment"; import moment from "moment";
import { mapState, mapActions } from "vuex"; import { mapState, mapActions } from "vuex";
import { Loading } from "element-ui";
import { getapi, postapi, putapi, deletapi } from "@/api/api"; import { getapi, postapi, putapi, deletapi } from "@/api/api";
import { import {
dddw, dddw,
@ -399,6 +400,14 @@ export default {
}; };
console.log('toOutShell', toOutShell) console.log('toOutShell', toOutShell)
let loading = Loading.service({
lock: true,
text: "正在加载中,请稍后",
spinner: "el-icon-loading",
background: "rgba(0, 0, 0, 0)",
customClass: "boxStyle"
});
if (isPreview) { if (isPreview) {
this.$peisAPI.printPre(JSON.stringify(toOutShell)) this.$peisAPI.printPre(JSON.stringify(toOutShell))
.then(res => { .then(res => {
@ -409,6 +418,9 @@ export default {
}) })
.catch((err) => { .catch((err) => {
this.$message.error({ showClose: true, message: err }) this.$message.error({ showClose: true, message: err })
})
.finally(() => {
loading.close()
}); });
} else { } else {
this.$peisAPI.print(JSON.stringify(toOutShell)) this.$peisAPI.print(JSON.stringify(toOutShell))
@ -420,6 +432,9 @@ export default {
}) })
.catch((err) => { .catch((err) => {
this.$message.error({ showClose: true, message: err }) this.$message.error({ showClose: true, message: err })
})
.finally(() => {
loading.close()
}); });
} }
}, },

Loading…
Cancel
Save