diff --git a/jshERP-web/src/views/report/modules/AccountInOutList.vue b/jshERP-web/src/views/report/modules/AccountInOutList.vue index 7e428ebc..7a57619c 100644 --- a/jshERP-web/src/views/report/modules/AccountInOutList.vue +++ b/jshERP-web/src/views/report/modules/AccountInOutList.vue @@ -2,7 +2,7 @@
{{record.number}} + + + + + + @@ -100,14 +126,16 @@ endTime: '', }, tabKey: "1", - // 表头 - columns: [ + pageName: 'accountInOutList', + // 默认索引 + defDataIndex:['rowIndex','number','type','supplierName','changeAmount','balance','operTime'], + // 默认列 + defColumns: [ { - title: '#', - dataIndex: '', - key:'rowIndex', + dataIndex: 'rowIndex', width:40, align:"center", + slots: { title: 'customTitle' }, customRender:function (t,r,index) { return parseInt(index)+1; } @@ -143,7 +171,8 @@ } }, { title: '余额', dataIndex: 'balance', width: 80}, - { title: '单据日期', dataIndex: 'operTime', width: 120} + { title: '单据日期', dataIndex: 'operTime', width: 120}, + { title: '备注', dataIndex: 'remark', width: 150} ], labelCol: { xs: { span: 1 }, @@ -159,6 +188,7 @@ } }, created() { + this.initColumnsSetting() }, methods: { getQueryParams() { @@ -216,11 +246,11 @@ }, exportExcel() { let list = [] - let head = '单据编号,类型,单位信息,金额,余额,单据日期' + let head = '单据编号,类型,单位信息,金额,余额,单据日期,备注' for (let i = 0; i < this.dataSource.length; i++) { let item = [] let ds = this.dataSource[i] - item.push(ds.number, ds.type, ds.supplierName, this.getRealChangeAmount(ds), ds.balance, ds.operTime) + item.push(ds.number, ds.type, ds.supplierName, this.getRealChangeAmount(ds), ds.balance, ds.operTime, ds.remark) list.push(item) } let tip = '账户流水'