From e1296a970fb10a25114c548cb3dddd2fbd3138d2 Mon Sep 17 00:00:00 2001 From: cnf <3200815559@qq.com> Date: 星期六, 23 八月 2025 16:11:01 +0800 Subject: [PATCH] 生产报工加入声音提示 --- H5/Js/Scbg.js | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/H5/Js/Scbg.js b/H5/Js/Scbg.js index 2079542..119968d 100644 --- a/H5/Js/Scbg.js +++ b/H5/Js/Scbg.js @@ -136,9 +136,11 @@ }); that.stafList = json.data.result.rksqOrderList; + that.$playSound('success'); } else { that.$toast.fail(json.message); + that.$playSound('error'); } that.isLoading = false; }) @@ -183,6 +185,7 @@ this.$refs.sjBillNo.focus(); } else { this.$toast("鏈壘鍒板尮閰嶇殑閫佹鍗曞彿"); + that.$playSound('error'); } //this.GetMesItemBlDetailByBillNo(); //this.$toast(item.name); @@ -203,10 +206,12 @@ }); that.stafList = json.data.tbBillList; + that.$playSound('success'); console.log('DAWDADWDADADADWD' + that.stafList); } else { that.$toast.fail(json.message); + that.$playSound('error'); } that.isLoading = false; }) @@ -281,11 +286,13 @@ console.log(entity.barcodesDetail); console.log(that.BarcodesDetail); that.$notify({ type: 'success', message: '鎵弿鎴愬姛' }); + that.$playSound('success'); that.$refs.barcode.focus(); that.barcode = null; } else { that.$toast.fail(json.message); + that.$playSound('error'); that.$refs.barcode.focus(); that.barcode = null; } @@ -344,10 +351,13 @@ var json = res; if (json.status == 0) { that.$notify({ type: 'success', message: '閫佹鎴愬姛' }); + that.BarcodesDetail = []; + that.$playSound('success'); } else { that.$toast.fail(json.message); + that.$playSound('error'); } that.isLoading = false; that.load = false; @@ -377,10 +387,12 @@ console.log(that.BarcodesDetail); that.$notify({ type: 'success', message: '鎵弿鎴愬姛' }); that.$refs.sjBillNo.focus(); + that.$playSound('success'); } else { that.$toast.fail(json.message); that.$refs.sjBillNo.focus(); + that.$playSound('error'); that.barcode = null; } that.isLoading = false; -- Gitblit v1.9.3