From b7e9807061998a4b250ceaca7e6320e89cc6767f Mon Sep 17 00:00:00 2001 From: qx <1084500556@qq.com> Date: 星期六, 08 二月 2025 18:09:19 +0800 Subject: [PATCH] qx --- src/views/reservation/groupcheck/index.vue | 32 +++++++++++++++++--------------- 1 files changed, 17 insertions(+), 15 deletions(-) diff --git a/src/views/reservation/groupcheck/index.vue b/src/views/reservation/groupcheck/index.vue index 8ee5333..c621754 100644 --- a/src/views/reservation/groupcheck/index.vue +++ b/src/views/reservation/groupcheck/index.vue @@ -661,6 +661,7 @@ methods: { handleQuery() { this.loading = true; + this.selectList = []; getCusTomterListByCompId(this.objs).then((res) => { this.userList = res.data; this.loading = false; @@ -773,21 +774,22 @@ addPlOrderAndDetail(data).then((res) => { this.open2 = false; this.$modal.msgSuccess("绛惧埌鎴愬姛"); - let base64 = res.file; - this.base64ToBlob({ - b64data: base64, - contentType: "application/pdf", - }).then((res) => { - this.dialogVisible = true; - // 杞悗鍚庣殑blob瀵硅薄 - console.log("blob", res.preview); - try { - this.url =res.preview; - } catch (error) { - this.url = window.webkitURL.createObjectURL(res.preview); - } - }); - + if (res.file) { + let base64 = res.file; + this.base64ToBlob({ + b64data: base64, + contentType: "application/pdf", + }).then((res) => { + this.dialogVisible = true; + // 杞悗鍚庣殑blob瀵硅薄 + console.log("blob", res.preview); + try { + this.url = res.preview; + } catch (error) { + this.url = window.webkitURL.createObjectURL(res.preview); + } + }); + } this.handleQuery(); this.selectList = []; }); -- Gitblit v1.8.0