feat: 成功失败及提交审核增加语音播报

This commit is contained in:
2026-10-26 12:07:53 +08:00
parent 51222f608a
commit 7cf50486ef
15 changed files with 101 additions and 67 deletions
+10 -11
View File
@@ -218,11 +218,11 @@ export default {
this.openPhoneScan();
},
playSuccess() {
util.playSuccessAudio();
playSuccess(text) {
util.playSuccessAudio(text);
},
playError() {
util.playErrorAudio();
playError(text) {
util.playErrorAudio(text);
},
handleAllCrockNoChange() {
@@ -289,7 +289,7 @@ export default {
},
// 添加通用错误提示方法
showError(message) {
this.playError();
this.playError(message);
uni.showModal({
title: '提示',
content: message,
@@ -298,7 +298,7 @@ export default {
},
// 添加成功提示方法
showSuccess(message) {
this.playSuccess();
this.playSuccess(message);
uni.showToast({
title: message,
icon: 'success'
@@ -364,7 +364,6 @@ export default {
if (res.data.code == 0 && res.data.msg == "success") {
var aResultData = res.data.data;
this.playSuccess();
this.FabricGoodsNo = aResultData.product_code;
this.FabricGoodsName = aResultData.product_name;
this.GoodsCodeNo = aResultData.product_color_code;
@@ -401,7 +400,7 @@ export default {
// 提交按钮方法
submitBtnFun: function () {
if (this.BillMasterID == 0) {
this.playError();
this.playError("单号为空,不能提交");
this.BillDataMessage = "单号为空,不能提交";
return;
}
@@ -438,15 +437,15 @@ export default {
console.log('outFpmArrangeOrder res', res)
if (res) {
this.BillDataMessage = "成功生成出仓单!";
this.playSuccess();
this.playSuccess("提交成功");
} else {
this.playError();
this.playError("提交生成出仓单出错");
this.BillDataMessage = "提交生成出仓单出错!" + res.msg;
return;
}
}).catch(error => {
this.submitLoading = false
this.playError();
this.playError("连接服务器出错");
this.BillDataMessage = "连接服务器出错,请检查后台服务是否启动!";
});
},