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: '确定',