qx
qx
2025-02-11 38ce42758958f28d25aaa0daf05e6c9b71261ef6
qx
2个文件已修改
22 ■■■■ 已修改文件
src/utils/request.js 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/reservation/reservations/index.vue 18 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/utils/request.js
@@ -84,6 +84,10 @@
    }
    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, '提示', {
src/views/reservation/reservations/index.vue
@@ -1137,7 +1137,7 @@
        </el-form-item>
      </el-form>
      <div slot="footer" class="dialog-footer2">
        <el-button type="primary" @click="submitType">确 定</el-button>
        <el-button type="primary" @click="submitType"  >确 定</el-button>
        <el-button @click="cancel">取 消</el-button>
      </div>
    </el-dialog>
@@ -1856,7 +1856,7 @@
import { addComp,
  addPlOrderAndDetail } from "@/api/system/comp";
import Big from "big.js";
import { Loading } from 'element-ui';
import {
  listReservation,
  gettjCancel,
@@ -2688,12 +2688,15 @@
      // 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) => {
        this.open2 = false;
        if(res.code == 200){
          this.open2 = false;
        this.$modal.msgSuccess("签到成功");
        if (res.file) {
          let base64 = res.file;
@@ -2711,6 +2714,9 @@
          });
        }else{
          let _this = this;
          this.$nextTick(() => { // 以服务的方式调用的 Loading 需要异步关闭
            loadingInstance1.close();
});
        var websocket = null;
        var url = _this.valueUrls;
        if ("WebSocket" in window) {
@@ -2765,6 +2771,12 @@
    
          this.getList()
        }
        }else{
          this.$nextTick(() => { // 以服务的方式调用的 Loading 需要异步关闭
            loadingInstance1.close();
});
        }
      });
    },