Commit ec45e0cf authored by 季圣华's avatar 季圣华
Browse files

解决账户统计报表展示金额的bug

parent 8526e9c4
...@@ -72,15 +72,14 @@ ...@@ -72,15 +72,14 @@
}, },
{ title: '类型', dataIndex: 'type', width: 100}, { title: '类型', dataIndex: 'type', width: 100},
{ title: '单位信息', dataIndex: 'supplierName', width: 150}, { title: '单位信息', dataIndex: 'supplierName', width: 150},
{ title: '金额', dataIndex: 'changeAmount', width: 80}, { title: '金额', dataIndex: 'changeAmount', width: 80,
{ title: '余额', dataIndex: 'balance', width: 80,
customRender:function (t,r,index) { customRender:function (t,r,index) {
if (r.aList && r.amList) { if (r.aList && r.amList) {
let aListArr = r.aList.toString().split(","); let aListArr = r.aList.toString().split(",");
let amListArr = r.amList.toString().split(","); let amListArr = r.amList.toString().split(",");
let res = ""; let res = "";
for (let i = 0; i < aListArr.length; i++) { for (let i = 0; i < aListArr.length; i++) {
if (aListArr[i] == this.queryParam.accountId) { if (aListArr[i] == r.accountId) {
res = amListArr[i]; res = amListArr[i];
} }
} }
...@@ -91,6 +90,7 @@ ...@@ -91,6 +90,7 @@
} }
} }
}, },
{ title: '余额', dataIndex: 'balance', width: 80},
{ title: '单据日期', dataIndex: 'operTime', width: 180} { title: '单据日期', dataIndex: 'operTime', width: 180}
], ],
labelCol: { labelCol: {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment