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 = {};