diff --git a/package1/.DS_Store b/package1/.DS_Store index 546c695..ec03d09 100644 Binary files a/package1/.DS_Store and b/package1/.DS_Store differ diff --git a/package1/AI/AiChat.vue b/package1/AI/AiChat.vue index 88545be..f088bde 100644 --- a/package1/AI/AiChat.vue +++ b/package1/AI/AiChat.vue @@ -154,9 +154,9 @@ '四': 4, '五': 5, '六': 6, '七': 7, '八': 8, '九': 9,'杠':'-','刚':'-','军色':'均色','叉':'X','金色':'均色','井':'#', '时间':'10件','事件':'10件','世间':'10件','实践':'10件','实件':'10件', - '景':'#','警':'#','颈':'#', + '景':'#','警':'#','颈':'#','括号':'货号' }; - const regex = /(零|一|二|两|三|四|五|六|七|八|九|杠|刚|军色|叉|金色|井|时间|事件|世间|实践|实件|景|警|颈)/g; + const regex = /(零|一|二|两|三|四|五|六|七|八|九|杠|刚|军色|叉|金色|井|时间|事件|世间|实践|实件|景|警|颈|括号)/g; return str.replace(regex, match => chineseNumToArabic[match]); }, inputSaveText(){ @@ -184,6 +184,9 @@ if(convertedStr.indexOf(',') == 0){ convertedStr = convertedStr.substr(1) } + if (convertedStr.startsWith("号")) { + convertedStr = "货号" + convertedStr.substr(1); + } let getMsg = convertedStr if(this.editText == ''){ return; @@ -250,6 +253,10 @@ console.log('位置',convertedStr.indexOf(',')) convertedStr = convertedStr.substr(1) } + console.log(convertedStr.indexOf('号')) + if (convertedStr.indexOf('号') == 0) { + convertedStr = "货号" + convertedStr.substr(1); + } let data = { text:convertedStr } diff --git a/package1/AI/addAiList.vue b/package1/AI/addAiList.vue index 2d4f1d7..a50d6fe 100644 --- a/package1/AI/addAiList.vue +++ b/package1/AI/addAiList.vue @@ -2,32 +2,52 @@