| | |
| | | } |
| | | return Promise.reject('无效的会话,或者会话已过期,请重新登录。') |
| | | } else if (code === 500) { |
| | | let loadingInstance1 = Loading.service({ fullscreen: true,text:"签到中" }); |
| | | setTimeout(() => { |
| | | loadingInstance1.close(); |
| | | }, 1000); |
| | | if (res.config.url === '/hosp/order/addtTransition') { |
| | | // 使用MessageBox和Message来替代this.$confirm和this.$message |
| | | MessageBox.confirm(res.data.msg, '提示', { |
| | |
| | | import { addComp, |
| | | addPlOrderAndDetail } from "@/api/system/comp"; |
| | | import Big from "big.js"; |
| | | |
| | | import { Loading } from 'element-ui'; |
| | | import { |
| | | listReservation, |
| | | gettjCancel, |
| | |
| | | // this.selectList.forEach((item) => { |
| | | // cusIds.push(item.idCard); |
| | | // }); |
| | | let loadingInstance1 = Loading.service({ fullscreen: true,text:"签到中" }); |
| | | let data = { |
| | | cusIds: this.cusIds, |
| | | tjCategory: this.forms.tjCategory, |
| | | }; |
| | | this.open2 = false; |
| | | addPlOrderAndDetail(data).then((res) => { |
| | | if(res.code == 200){ |
| | | this.open2 = false; |
| | | this.$modal.msgSuccess("签到成功"); |
| | | if (res.file) { |
| | |
| | | }); |
| | | }else{ |
| | | let _this = this; |
| | | this.$nextTick(() => { // 以服务的方式调用的 Loading 需要异步关闭 |
| | | loadingInstance1.close(); |
| | | }); |
| | | var websocket = null; |
| | | var url = _this.valueUrls; |
| | | if ("WebSocket" in window) { |
| | |
| | | |
| | | this.getList() |
| | | } |
| | | }else{ |
| | | this.$nextTick(() => { // 以服务的方式调用的 Loading 需要异步关闭 |
| | | loadingInstance1.close(); |
| | | }); |
| | | } |
| | | |
| | | }); |
| | | }, |
| | | |