diff --git a/package1/AI/AIHangOrderList.vue b/package1/AI/AIHangOrderList.vue index be11f2b..ccc4af4 100644 --- a/package1/AI/AIHangOrderList.vue +++ b/package1/AI/AIHangOrderList.vue @@ -451,6 +451,15 @@ jieshu() { this.recordState = false manager.stop() + }, + replaceCharAfterNumber(str, charToFind, charToReplace) { + // 正则表达式匹配字符前是否有数字,并且该字符与charToFind相同 + const regex = new RegExp(`\\d${charToFind}`, 'g'); + // 使用replace方法进行替换 + return str.replace(regex, (match) => { + // 将匹配到的字符中的指定字符替换为charToReplace + return match.replace(charToFind, charToReplace); + }); }, //语音识别功能初始化 initRecord() { @@ -461,7 +470,8 @@ that.voiceText = res.result }else if(that.voiceText == null){ that.voiceText = res.result - }else{ + }else{ + res.result = this.removeSpacesAndCommas(res.result) res.result = ' ' + res.result that.voiceText += res.result } diff --git a/package1/AI/voiceInventory.vue b/package1/AI/voiceInventory.vue index bb0f08a..8e5541c 100644 --- a/package1/AI/voiceInventory.vue +++ b/package1/AI/voiceInventory.vue @@ -184,6 +184,17 @@ + + + 供应商:{{khName.consigneeName?khName.consigneeName:''}} + + + 之前欠款:{{zhiqianqiankuan}} + + + 客户余额:{{Math.abs(zhiqianqiankuan)}} + + 应付金额 @@ -198,12 +209,39 @@ @focus="obtainPrice($event,'alreadyPay')" @blur="changePay($event)"> - - 欠款 + + 余额抵扣 + + + + + + + 累计欠款 + + + + + + 累计余额 + + + + + + 本次欠款 + + 本次余额 + + + + 其他费用 @@ -504,7 +542,7 @@ style="height:40rpx;line-height: 40rpx;position: absolute !important;bottom:0;right: 30rpx;"> - 示例:货号0237,白色M码,数量10件,蓝色M码,数量10件,单价88,名称:裙子 + 示例:货号0237,白色M码,数量10件,蓝色M码,数量10件,单价88,名称:裙子,批发价:12