From 1f2005541e2c5dbb6837bb96e9b7a141145fe94b Mon Sep 17 00:00:00 2001
From: 南骏 池 <chiffly@163.com>
Date: 星期三, 07 五月 2025 17:00:31 +0800
Subject: [PATCH] 1.产品绑定送检优化 2.生产领料拆分无线打印机打条码自定义打印机
---
Scripts/config.js | 22 ++++++++++++++++++++--
1 files changed, 20 insertions(+), 2 deletions(-)
diff --git a/Scripts/config.js b/Scripts/config.js
index e613481..8a3f5c1 100644
--- a/Scripts/config.js
+++ b/Scripts/config.js
@@ -1,6 +1,7 @@
-锘縱ar APIURL = "http://192.168.1.145:83/api/";
-//var APIURL = "http://localhost:5204/api/";
+锘�/*var APIURL = "http://192.168.1.145:83/api/";*/
+var APIURL = "http://localhost:5204/api/";
var APIURL_PC = "http://192.168.1.145:81/";
+var APIURL_IMAGE = APIURL_PC+"upload/";
var ISNEEDLOGIN = true;
String.prototype.trim = function () {
return this.replace(/(^\s*)|(\s*$)/g, "");
@@ -160,3 +161,20 @@
return;
window.history.back();
}
+
+// 鏂板闊抽鎾斁鏂规硶
+Vue.prototype.$playSound = function(type = 'success') {
+ try {
+ const audioMap = {
+ success: '/audio/OK.wav',
+ error: '/audio/NG.wav'
+ };
+ const audio = new Audio(audioMap[type]);
+ audio.play().catch(error => {
+ console.error('闊抽鎾斁澶辫触:', error);
+ this.$toast.fail('鎻愮ず闊冲姞杞藉け璐�');
+ });
+ } catch (e) {
+ console.error('闊抽鍒濆鍖栭敊璇�:', e);
+ }
+};
--
Gitblit v1.9.3