From a80f67507f08936107fab8734d911b2b84a8cce2 Mon Sep 17 00:00:00 2001 From: "DESKTOP-JT599KC\\Luan Shanshan" Date: Wed, 16 Feb 2022 14:10:02 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8C=85=E8=A3=85=E5=8F=91=E8=BF=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/quality/component/shipmentCode.vue | 5 +++-- src/views/quality/pkg.vue | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/views/quality/component/shipmentCode.vue b/src/views/quality/component/shipmentCode.vue index 64e1d00..43c76a8 100644 --- a/src/views/quality/component/shipmentCode.vue +++ b/src/views/quality/component/shipmentCode.vue @@ -59,7 +59,9 @@ export default { } checkScancarpack(params).then(res => { if (res.code === 200) { - this.$refs.successAudio.play() + if (res.data === 'success') { // 全部扫描完成 + this.$refs.successAudio.play() + } this.isSuccess = true this.newEmitObj = { shipOrderId: this.shipOrderId, @@ -85,7 +87,6 @@ export default { currentShipOrder: el, } this.$emit('handleSuccessCode', this.newEmitObj) - this.$refs.successAudio.play() } else { this.$refs.errAudio.play(); this.statusInfo = '请正确扫描捡料单!' diff --git a/src/views/quality/pkg.vue b/src/views/quality/pkg.vue index bb2d38f..7430e17 100644 --- a/src/views/quality/pkg.vue +++ b/src/views/quality/pkg.vue @@ -204,8 +204,8 @@ export default { } api.checkpackorderitem(params).then((res) => { if (res.code === 200) { - this.$refs.successAudio.play() if (res.data == 'close') { + this.$refs.successAudio.play() this.defaultSelectOne() } else { this.packorderitemlst(1) // 获取包装单下的包装项 @@ -243,7 +243,7 @@ export default { // 包装项扫码 api.checkbarcode(code).then((res) => { if (res.code === 200) { - this.$refs.successAudio.play() + // this.$refs.successAudio.play() if (res.data.InfoType === "doing") { // doing 需要手动创建包装单!(多个包装模板) this.$confirm(`是否要创建包装单`, '提示', { confirmButtonText: '确定', -- 2.30.1.windows.1