From 3b999b9fb4d12265a8b5b91237822939062b99ef Mon Sep 17 00:00:00 2001 From: wangfukang <15630117759@163.com> Date: Tue, 23 Jul 2024 18:02:40 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=A5=E5=BA=93=E4=B8=8D=E8=AF=B4=E9=A2=9C?= =?UTF-8?q?=E8=89=B2=E5=B0=BA=E7=A0=81=E4=B8=8D=E8=B0=83=E9=80=9A=E4=B9=89?= =?UTF-8?q?=E5=8D=83=E9=97=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package1/AI/AIHangOrderList.vue | 12 +- package1/AI/voiceInventory.vue | 1256 +++++++++++++++++++---- package1/index/peopleList.vue | 14 +- package1/inventory/inventoryConfirm.vue | 87 +- wxcomponents/.DS_Store | Bin 6148 -> 0 bytes wxcomponents/image-cropper/.DS_Store | Bin 6148 -> 0 bytes 6 files changed, 1141 insertions(+), 228 deletions(-) delete mode 100644 wxcomponents/.DS_Store delete mode 100644 wxcomponents/image-cropper/.DS_Store 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