From 5e0940151cff6610ae67e22f0a7eecfbf0a7cf28 Mon Sep 17 00:00:00 2001
From: cnf <3200815559@qq.com>
Date: 星期三, 06 八月 2025 14:07:44 +0800
Subject: [PATCH] 退补料更改完成,声源增加
---
H5/Js/Scbl.js | 1 +
Scripts/config.js | 4 ++--
audio/YES.WAV | 0
audio/NO.WAV | 0
4 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/H5/Js/Scbl.js b/H5/Js/Scbl.js
index 926b55b..5f3725d 100644
--- a/H5/Js/Scbl.js
+++ b/H5/Js/Scbl.js
@@ -160,6 +160,7 @@
that.num = null;
//that.ItemBlDetail = json.data.tbBillList.item2
that.$notify({ type: 'success', message: '鎵弿鎴愬姛' });
+ that.$playSound('success');
that.GetMesItemBlDetailByBillNo();
that.$refs.barcode.focus();
that.barcode = "";
diff --git a/Scripts/config.js b/Scripts/config.js
index 5308bad..5ee2736 100644
--- a/Scripts/config.js
+++ b/Scripts/config.js
@@ -209,8 +209,8 @@
Vue.prototype.$playSound = function(type = 'success') {
try {
const audioMap = {
- success: '/audio/OK.wav',
- error: '/audio/NG.wav'
+ success: '/audio/YES.wav',
+ error: '/audio/NO.wav'
};
const audio = new Audio(audioMap[type]);
audio.play().catch(error => {
diff --git a/audio/NO.WAV b/audio/NO.WAV
new file mode 100644
index 0000000..a4020d8
--- /dev/null
+++ b/audio/NO.WAV
Binary files differ
diff --git a/audio/YES.WAV b/audio/YES.WAV
new file mode 100644
index 0000000..8fb4cc0
--- /dev/null
+++ b/audio/YES.WAV
Binary files differ
--
Gitblit v1.9.3