列根据参数判定需要合计
This commit is contained in:
@@ -42,12 +42,12 @@ export default {
|
||||
this.arraydata=[]
|
||||
this.columns.forEach(element => {
|
||||
this.arraydata[element.key] = [];
|
||||
});
|
||||
});//建立一个字典,key为列名,值是对应一列所有数的 数组
|
||||
for (var item = 0; item < this.data.length; item++) {
|
||||
//遍历对象数组,item表示某个具体的对象
|
||||
//遍历对象数组
|
||||
for (var i in this.data[item]) {
|
||||
if (this.arraydata.hasOwnProperty(i)) {
|
||||
this.arraydata[i].push(this.data[item][i]);
|
||||
this.arraydata[i].push(this.data[item][i]);//填充元素给 对应的数组
|
||||
}
|
||||
//console.log(this.objectList[item][i]); //objectList[item][i]表示某个对象的某个具体属性值,i表示属性名,可以打印出来看一下;
|
||||
}
|
||||
@@ -237,7 +237,7 @@ export default {
|
||||
};
|
||||
return;
|
||||
}
|
||||
if (index != 7) {
|
||||
if (column.issum != true) {
|
||||
sums[key] = {
|
||||
key,
|
||||
value: ""
|
||||
|
||||
@@ -198,13 +198,14 @@ export default {
|
||||
key: "cInvStd",
|
||||
width: "220",
|
||||
filter: {
|
||||
type: "AutoComplete"
|
||||
}
|
||||
type: "AutoComplete",
|
||||
}
|
||||
},
|
||||
{
|
||||
title: "未发数量",
|
||||
align: "center",
|
||||
width: "120",
|
||||
issum:true,
|
||||
key: "wfiQuantity",
|
||||
filter: {
|
||||
type: "Input"
|
||||
@@ -527,6 +528,10 @@ body {
|
||||
|
||||
.ivu-select-dropdown-transfer {
|
||||
width: 165px;
|
||||
height: 350px;
|
||||
max-height: 160px;
|
||||
}
|
||||
|
||||
.ivu-auto-complete.ivu-select-dropdown {
|
||||
max-height: 500px;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user