From bec1e9a8a6a1c40ddd442f9232eca897d27277e8 Mon Sep 17 00:00:00 2001 From: shijing Date: Mon, 20 Jul 2026 11:27:37 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E7=A6=85=E9=81=93444=E6=89=AD=E8=BD=AC?= =?UTF-8?q?=E5=B7=A5=E5=BA=8F=EF=BC=8C=E5=BF=AB=E9=80=9F=E6=8A=A5=E5=B7=A5?= =?UTF-8?q?=EF=BC=8C=E6=89=AB=E7=A0=81=E6=A1=86=E5=90=8E=E9=9D=A2=E5=8A=A0?= =?UTF-8?q?=E6=95=B0=E5=AD=97=E8=AF=86=E5=88=AB=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/statistics/bxerp/workerTimes.vue | 3 -- src/views/wpm_bx/mlog_form2.vue | 54 +++++++++++++++++++--- 2 files changed, 47 insertions(+), 10 deletions(-) diff --git a/src/views/statistics/bxerp/workerTimes.vue b/src/views/statistics/bxerp/workerTimes.vue index 0e6f8a3e..a7c84aec 100644 --- a/src/views/statistics/bxerp/workerTimes.vue +++ b/src/views/statistics/bxerp/workerTimes.vue @@ -47,7 +47,6 @@ id="exportDiv" row-key="id" hidePagination - hideDo stripe > @@ -99,7 +98,6 @@ id="exportDiv" row-key="id" hidePagination - hideDo stripe > @@ -131,7 +129,6 @@ id="exportDiv" row-key="id" hidePagination - hideDo stripe > diff --git a/src/views/wpm_bx/mlog_form2.vue b/src/views/wpm_bx/mlog_form2.vue index ab08951e..6fc62d7c 100644 --- a/src/views/wpm_bx/mlog_form2.vue +++ b/src/views/wpm_bx/mlog_form2.vue @@ -18,14 +18,14 @@ style="padding: 0 10px" > - + - *请扫同一批次的物料码 @@ -34,6 +34,9 @@ + + 数字识别 + @@ -230,7 +233,15 @@ export default { } }, emits: ["success", "closed"], - + computed: { + scanColSpan(){ + let span = this.project_code!=='bxerp' ? 22 : 24; + if(this.route_code=='niuzhuan'){ + span -= 4; + } + return span; + }, + }, data() { return { loading: false, @@ -266,6 +277,9 @@ export default { imageUrl:'', test_file:'', project_code:'', + ocr_ip:"", + ocr_port:"", + ocr_unit:"", visible: false, isSaveing: false, batchCountCando:0, @@ -309,6 +323,9 @@ export default { }); }); },500) + that.ocr_ip = localStorage.getItem("ocr_ip") || ""; + that.ocr_port = localStorage.getItem("ocr_port") || ""; + that.ocr_unit = localStorage.getItem("ocr_unit") || ""; }, methods: { //获取工艺步骤 @@ -351,6 +368,29 @@ export default { this.wm_in = text; this.formWminChange(text); }, + digital(){ + let that = this; + if(!that.ocr_ip || !that.ocr_port || !that.ocr_unit){ + that.$message.warning('请先在右上角"数字识别设置"配置IP、端口号和位号'); + return; + } + that.$API.em.equipment.get_svs_char.req({ + host: that.ocr_ip, + port: that.ocr_port, + flow_unit: that.ocr_unit + }).then((res) => { + if(res.char){ + that.wm_in = res.char; + that.formWminChange(res.char); + } + }).catch((err) => { + that.$notify.error({ + title: '数字识别获取失败', + message: err.data + }) + return err; + }); + }, //显示 open(mode = "add") { let that = this;