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