From aca3d91fa4085098bd9c9bd9def12cb9f0e04f2a Mon Sep 17 00:00:00 2001 From: shijing Date: Fri, 5 Jun 2026 16:15:46 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E8=A7=84=E8=8C=83=E5=8F=98=E9=87=8F?= =?UTF-8?q?=E5=AE=9A=E4=B9=89=EF=BC=8C=E5=8E=BB=E6=8E=89=E5=A4=9A=E4=BD=99?= =?UTF-8?q?console?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/wpm_bx/mlogbw_check_table.vue | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/views/wpm_bx/mlogbw_check_table.vue b/src/views/wpm_bx/mlogbw_check_table.vue index 7b4b586e..3b1a3784 100644 --- a/src/views/wpm_bx/mlogbw_check_table.vue +++ b/src/views/wpm_bx/mlogbw_check_table.vue @@ -412,6 +412,9 @@ export default { wprInputText:"", project_code:"", test_file_name:"", + ocr_ip:"", + ocr_port:"", + ocr_unit:"", canMultiple:false, selectedAll:false, checkAll: false, @@ -541,6 +544,9 @@ export default { },500) that.actionMenuClickHandler = (event) => that.handleDocumentClick(event); document.addEventListener("click", that.actionMenuClickHandler, true); + that.ocr_ip = localStorage.getItem("ocr_ip") || ""; + that.ocr_port = localStorage.getItem("ocr_port") || ""; + that.ocr_unit = localStorage.getItem("ocr_unit") || ""; }, beforeUnmount() { @@ -698,7 +704,6 @@ export default { }, timeChange(row){ let that = this; - console.log('row',row) let index = that.mlogbwlist.indexOf(row); if(row.work_start_time!==''&&row.work_start_time!==null&&row.work_start_time!==undefined){ let waveNum = 1; @@ -1124,9 +1129,6 @@ that.$API.wpm.prints.req(printer_ip, obj).then((response) => { //扫描这里更新:添加数字化识别,调用一个接口,并且返回number和设备数据,然后根据number将这一行放到第一行并编辑这一行,并且把设备数据放到对应位置 digital(){ let that = this; - that.ocr_ip = localStorage.getItem("ocr_ip") || ""; - that.ocr_port = localStorage.getItem("ocr_port") || ""; - that.ocr_unit = localStorage.getItem("ocr_unit") || ""; //第一步:调用接口获取数字识别设备返回的number if(!that.ocr_ip || !that.ocr_port || !that.ocr_unit){ that.$message.warning('请先在右上角"数字识别设置"配置IP、端口号和位号'); @@ -1331,7 +1333,6 @@ that.$API.wpm.prints.req(printer_ip, obj).then((response) => { fullscreen: true, text: "解析中...请稍等", }); - console.log(res); this.$API.wpm.mlog.change.req(that.mlogId,{ test_file: res.path }).then((res) => { loading.close(); this.$message.success("导入成功");