|
@ -15,6 +15,12 @@ |
|
|
@keyup.enter.native="enterPress"></el-input> |
|
|
@keyup.enter.native="enterPress"></el-input> |
|
|
<el-button type="trimary" @click="resetCode" class="reset-code">重置扫描</el-button> |
|
|
<el-button type="trimary" @click="resetCode" class="reset-code">重置扫描</el-button> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
<audio ref="errAudio"> |
|
|
|
|
|
<source src="../../../assets/audio/报警音.mp3" type="audio/mpeg"> |
|
|
|
|
|
</audio> |
|
|
|
|
|
<audio ref="successAudio"> |
|
|
|
|
|
<source src="../../../assets/audio/成功音.mp3" type="audio/mpeg"> |
|
|
|
|
|
</audio> |
|
|
</div> |
|
|
</div> |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
@ -53,6 +59,7 @@ export default { |
|
|
} |
|
|
} |
|
|
checkScancarpack(params).then(res => { |
|
|
checkScancarpack(params).then(res => { |
|
|
if (res.code === 200) { |
|
|
if (res.code === 200) { |
|
|
|
|
|
this.$refs.successAudio.play() |
|
|
this.isSuccess = true |
|
|
this.isSuccess = true |
|
|
this.newEmitObj = { |
|
|
this.newEmitObj = { |
|
|
shipOrderId: this.shipOrderId, |
|
|
shipOrderId: this.shipOrderId, |
|
@ -61,9 +68,11 @@ export default { |
|
|
this.$emit('handleSuccessCode', this.newEmitObj) |
|
|
this.$emit('handleSuccessCode', this.newEmitObj) |
|
|
} else { |
|
|
} else { |
|
|
this.isSuccess = false |
|
|
this.isSuccess = false |
|
|
|
|
|
this.$refs.errAudio.play(); |
|
|
} |
|
|
} |
|
|
this.statusInfo = res.msg |
|
|
this.statusInfo = res.msg |
|
|
}).catch(res => { |
|
|
}).catch(res => { |
|
|
|
|
|
this.$refs.errAudio.play(); |
|
|
this.statusInfo = res.msg |
|
|
this.statusInfo = res.msg |
|
|
this.isSuccess = false |
|
|
this.isSuccess = false |
|
|
}) |
|
|
}) |
|
|