给组装和拆卸所有行都展示序号

This commit is contained in:
jishenghua
2025-05-13 22:06:55 +08:00
parent 1fe157299e
commit 3517f65a3e

View File

@@ -1699,8 +1699,16 @@
needAddkeywords.push('remark') needAddkeywords.push('remark')
} }
} }
let currentCol = [{title:'#',dataIndex:'',align:'center',customRender:function(t,r,index){ let currentCol = [{title:'#',dataIndex:'',align:'center',
return index === ds.length-1?'':parseInt(index)+1}}] customRender:function(t,r,index){
if(r.mType) {
//组装和拆卸所有行都展示序号
return index === ds.length?'':parseInt(index)+1
} else {
return index === ds.length-1?'':parseInt(index)+1
}
}
}]
if(record.status === '3') { if(record.status === '3') {
//部分采购|部分销售的时候显示全部列 //部分采购|部分销售的时候显示全部列
for(let i=0; i<this.defColumns.length; i++){ for(let i=0; i<this.defColumns.length; i++){