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