From f5f3cec534463e6cb4309c7efb6461ab9ac209af Mon Sep 17 00:00:00 2001 From: wangfukang <15630117759@163.com> Date: Tue, 14 May 2024 18:16:41 +0800 Subject: [PATCH] 11 --- package1/AI/AIPicture.vue | 73 ++++++++++++++++++++++++++++++++++----- 1 file changed, 65 insertions(+), 8 deletions(-) diff --git a/package1/AI/AIPicture.vue b/package1/AI/AIPicture.vue index c20956d..b6f1829 100644 --- a/package1/AI/AIPicture.vue +++ b/package1/AI/AIPicture.vue @@ -99,19 +99,19 @@ 货号: - + 商品名: - + 采购价: - + @@ -123,13 +123,13 @@ 颜色: - + 尺码: - + @@ -138,6 +138,36 @@ + + + + + + + + + 请输入{{name=='productSn'?'货号':name=='productName'?'商品名称':name=='price'?'价格':name=='productCount'?'数量':name=='color'?'颜色':name=='size'?'尺码':''}} + + + 温馨提示: + + + 需要您在上方图片中选择一款商品,拿出其中一种规格的的货号、名称、价格、数量、颜色、尺码输入到下方的输入框中,要保证规格值属于同一种商品,这样就能准确的识别市面上大部分的小票(包括手写单) + + + + + {{name=='productSn'?'货号':name=='productName'?'商品名称':name=='price'?'价格':name=='productCount'?'数量':name=='color'?'颜色':name=='size'?'尺码':''}} + + + + + + + 确认 + + + @@ -153,7 +183,8 @@ 'https://jewel-shop.oss-cn-beijing.aliyuncs.com/5444bab7df8d47e09c831c054b6e447b.jpg', 'https://jewel-shop.oss-cn-beijing.aliyuncs.com/44e7ccc2fae74db593bd1a10f538e2de.jpg', 'https://jewel-shop.oss-cn-beijing.aliyuncs.com/2a55142e562b4ea480ce553c8b84d092.jpg' - ], + ], + focus:true, purchaseOcrPictureList: [], parentPicturePath: '', parentId: '', @@ -164,7 +195,9 @@ productCount:"", color:"", size:"", - keyBoardHeight:0 + keyBoardHeight:0, + name:'', + nameText:'' } }, onShow() { @@ -226,6 +259,30 @@ } this.$refs.productDialog.open('bottom') + }, + clickInput(name){ + this.name = name + this.$refs.tanDialog.open(); + + this.$refs.inputText.focus(); + }, + shurukuang(){ + if(this.name == 'productSn'){ + this.productSn = this.nameText + }else if(this.name == 'productName'){ + this.productName = this.nameText + }else if(this.name == 'price'){ + this.price = this.nameText + }else if(this.name == 'productCount'){ + this.productCount = this.nameText + }else if(this.name == 'color'){ + this.color = this.nameText + }else if(this.name == 'size'){ + this.size = this.nameText + } + this.name = "" + this.nameText = "" + this.$refs.tanDialog.close() }, identify() { let num = 0 @@ -382,7 +439,6 @@ .push(data) } } - that.parentId = '' } else { let data = { ocrPicture: path.result, @@ -403,6 +459,7 @@ } }); await setTimeout(res=>{ + that.parentId = '' uni.hideLoading(); },500) },