给单据查看界面的,明细列表增加序号的展示
This commit is contained in:
parent
44e34c78ce
commit
997508894a
@ -1535,12 +1535,15 @@
|
||||
needAddkeywords.push('position')
|
||||
}
|
||||
}
|
||||
let currentCol = [{title:'#',dataIndex:'',align:'center',customRender:function(t,r,index){return parseInt(index)+1;}}]
|
||||
if(record.status === '3') {
|
||||
//部分采购|部分销售的时候显示全部列
|
||||
this.columns = this.defColumns
|
||||
for(let i=0; i<this.defColumns.length; i++){
|
||||
currentCol.push(this.defColumns[i])
|
||||
}
|
||||
this.columns = currentCol
|
||||
} else if(record.purchaseStatus === '3') {
|
||||
//将已出库的标题转为已采购,针对销售订单转采购订单的场景
|
||||
let currentCol = []
|
||||
for(let i=0; i<this.defColumns.length; i++){
|
||||
let info = {}
|
||||
info.title = this.defColumns[i].title
|
||||
@ -1558,7 +1561,6 @@
|
||||
}
|
||||
this.columns = currentCol
|
||||
} else {
|
||||
let currentCol = []
|
||||
for(let i=0; i<this.defColumns.length; i++){
|
||||
//移除列
|
||||
let needRemoveKeywords = ['finishNumber','snList','batchNumber','expirationDate','sku','weight','position']
|
||||
|
||||
@ -442,38 +442,40 @@
|
||||
batchSetStatusUrl: '/accountHead/batchSetStatus'
|
||||
},
|
||||
advanceInColumns: [
|
||||
{ title: '#',dataIndex:'',width:'5%',align:'center',customRender:function(t,r,index){return parseInt(index)+1;}},
|
||||
{ title: '账户名称',dataIndex: 'accountName',width: '30%'},
|
||||
{ title: '金额',dataIndex: 'eachAmount', width: '30%'},
|
||||
{ title: '备注',dataIndex: 'remark', width: '30%'}
|
||||
],
|
||||
giroColumns: [
|
||||
{ title: '#',dataIndex:'',width:'5%',align:'center',customRender:function(t,r,index){return parseInt(index)+1;}},
|
||||
{ title: '账户名称',dataIndex: 'accountName',width: '30%'},
|
||||
{ title: '金额',dataIndex: 'eachAmount', width: '30%'},
|
||||
{ title: '备注',dataIndex: 'remark', width: '30%'}
|
||||
],
|
||||
itemInColumns: [
|
||||
{ title: '#',dataIndex:'',width:'5%',align:'center',customRender:function(t,r,index){return parseInt(index)+1;}},
|
||||
{ title: '收入项目',dataIndex: 'inOutItemName',width: '30%'},
|
||||
{ title: '金额',dataIndex: 'eachAmount', width: '30%'},
|
||||
{ title: '备注',dataIndex: 'remark', width: '30%'}
|
||||
],
|
||||
itemOutColumns: [
|
||||
{ title: '#',dataIndex:'',width:'5%',align:'center',customRender:function(t,r,index){return parseInt(index)+1;}},
|
||||
{ title: '支出项目',dataIndex: 'inOutItemName',width: '30%'},
|
||||
{ title: '金额',dataIndex: 'eachAmount', width: '30%'},
|
||||
{ title: '备注',dataIndex: 'remark', width: '30%'}
|
||||
],
|
||||
moneyInColumns: [
|
||||
{
|
||||
title: '销售单据编号', dataIndex: 'billNumber', width: '20%'
|
||||
},
|
||||
{ title: '#',dataIndex:'',width:'5%',align:'center',customRender:function(t,r,index){return parseInt(index)+1;}},
|
||||
{ title: '销售单据编号', dataIndex: 'billNumber', width: '20%' },
|
||||
{ title: '应收欠款',dataIndex: 'needDebt', width: '10%'},
|
||||
{ title: '已收欠款',dataIndex: 'finishDebt', width: '10%'},
|
||||
{ title: '本次收款',dataIndex: 'eachAmount', width: '10%'},
|
||||
{ title: '备注',dataIndex: 'remark', width: '20%'}
|
||||
],
|
||||
moneyOutColumns: [
|
||||
{
|
||||
title: '采购单据编号', dataIndex: 'billNumber', width: '20%'
|
||||
},
|
||||
{ title: '#',dataIndex:'',width:'5%',align:'center',customRender:function(t,r,index){return parseInt(index)+1;}},
|
||||
{ title: '采购单据编号', dataIndex: 'billNumber', width: '20%' },
|
||||
{ title: '应付欠款',dataIndex: 'needDebt', width: '10%'},
|
||||
{ title: '已付欠款',dataIndex: 'finishDebt', width: '10%'},
|
||||
{ title: '本次付款',dataIndex: 'eachAmount', width: '10%'},
|
||||
|
||||
Loading…
Reference in New Issue
Block a user