1.修复由于缺少图纸编号导致报工不显示数据的问题

master
董哲奇 3 weeks ago
parent 05dff7c4f1
commit 8e2ea8f1ba

@ -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

@ -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

Loading…
Cancel
Save