From 8e2ea8f1ba41b5567c4262c989c176ead4a62728 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=91=A3=E5=93=B2=E5=A5=87?= <13840175730@139.com> Date: Fri, 9 May 2025 12:34:58 +0800 Subject: [PATCH] =?UTF-8?q?1.=E4=BF=AE=E5=A4=8D=E7=94=B1=E4=BA=8E=E7=BC=BA?= =?UTF-8?q?=E5=B0=91=E5=9B=BE=E7=BA=B8=E7=BC=96=E5=8F=B7=E5=AF=BC=E8=87=B4?= =?UTF-8?q?=E6=8A=A5=E5=B7=A5=E4=B8=8D=E6=98=BE=E7=A4=BA=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/zyjhzx/hxianfkui/comps/HxianPgd.vue | 6 +++++- src/views/zyjhzx/qgefkui/comps/QgePgd.vue | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/views/zyjhzx/hxianfkui/comps/HxianPgd.vue b/src/views/zyjhzx/hxianfkui/comps/HxianPgd.vue index 0f4ded5..7e255cf 100644 --- a/src/views/zyjhzx/hxianfkui/comps/HxianPgd.vue +++ b/src/views/zyjhzx/hxianfkui/comps/HxianPgd.vue @@ -244,7 +244,11 @@ export default { getForemanByWorker({worker:worker}).then(res=>{ getYdjhByZtOrForeman({foreman:res.data.userCode,zt:zt,field:'hxpgry',zyq:this.zyq,userCode:worker}).then(res=>{ res.data.forEach(item=>{ - item._lx=item.tzbh.substring(5,6) + try { + item._lx=item.tzbh.substring(5,6) + }catch (e){ + //this.$message(`船号${item.dcCh},批次${item.dcPl}有图纸编号存在数据异常`) + } }) this.list=res.data this.gridOptions.data=res.data diff --git a/src/views/zyjhzx/qgefkui/comps/QgePgd.vue b/src/views/zyjhzx/qgefkui/comps/QgePgd.vue index b771b4f..b82989f 100644 --- a/src/views/zyjhzx/qgefkui/comps/QgePgd.vue +++ b/src/views/zyjhzx/qgefkui/comps/QgePgd.vue @@ -193,7 +193,11 @@ export default { this.gridOptions.ycldw=res.data getYdjhByZtOrForeman({foreman:result.data.userCode,zt:zt,field:'qgpgry',zyq:this.zyq,userCode:worker}).then(res => { res.data.forEach(item=>{ - item._lx=item.tzbh.substring(5,6) + try { + item._lx=item.tzbh.substring(5,6) + }catch (e){ + //this.$message(`船号${item.dcCh},批次${item.dcPl}有图纸编号存在数据异常`) + } }) this.list=res.data this.gridOptions.data = res.data