From bfbce8420779a42e8f065a129b69b7a76e49c952 Mon Sep 17 00:00:00 2001 From: "0.0" <1092404103.qq.com> Date: Mon, 21 Aug 2023 13:44:36 +0800 Subject: [PATCH] =?UTF-8?q?1.=E4=BF=AE=E6=94=B9=E8=B4=A7=E4=BD=8D=E6=9F=A5?= =?UTF-8?q?=E7=9C=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../BasicdataGoodsAllocation.vue | 34 +++++++++++-------- 1 file changed, 20 insertions(+), 14 deletions(-) diff --git a/src/views/basicdata/warehouse/goodsAllocation/BasicdataGoodsAllocation.vue b/src/views/basicdata/warehouse/goodsAllocation/BasicdataGoodsAllocation.vue index 3fb4b2fa..169b609a 100644 --- a/src/views/basicdata/warehouse/goodsAllocation/BasicdataGoodsAllocation.vue +++ b/src/views/basicdata/warehouse/goodsAllocation/BasicdataGoodsAllocation.vue @@ -358,20 +358,26 @@ }); }, async beforeOpen(done, type) { - if (["edit", "view"].includes(type)) { - await getDetail(this.form.id).then(async res => { - // 这里还需要进行二维码图片显示 - await getQRCode(this.form.qrCode).then(res=>{ - let url = window.URL.createObjectURL(res.data); - console.log("url>>>>>>>",url); - this.form.qrCodeUrl = url; - console.log(res); - }) - console.log(this.form); - this.form = res.data.data; - }); - } - done(); + // if (["edit", "view"].includes(type)) { + // await getDetail(this.form.id).then(async res => { + // // 这里还需要进行二维码图片显示 + // await getQRCode(this.form.qrCode).then(res=>{ + // let url = window.URL.createObjectURL(res.data); + // console.log("url>>>>>>>",url); + // this.form.qrCodeUrl = url; + // console.log(res); + // }) + // console.log(this.form); + // this.form = res.data.data; + // }); + // } + // done(); + if (["edit", "view"].includes(type)) { + getDetail(this.form.id).then(res => { + this.form = res.data.data; + }); + } + done(); }, searchReset() { this.query = {};