筛选控件全面 支持AutoComplete
This commit is contained in:
@@ -856,7 +856,7 @@ select *from tempdb..tablepzck20210526
|
|||||||
{
|
{
|
||||||
string sql = $@"
|
string sql = $@"
|
||||||
select *from (
|
select *from (
|
||||||
select f.cCusAbbName,CONVERT(varchar(100),b.dDate, 23) as dDate ,b.cSOCode,a.cInvCode,a.cInvName,g.cInvStd, a.iQuantity - isnull(d.cqty,0) as wfiQuantity
|
select f.cCusAbbName,CONVERT(varchar(100),b.dDate, 23) as dDate ,b.cSOCode,a.cInvCode,a.cInvName,g.cInvStd, a.iQuantity - isnull(d.cqty,0) as wfiQuantity,b.cCloser
|
||||||
,
|
,
|
||||||
isnull(cs.qty,0) as xcl,
|
isnull(cs.qty,0) as xcl,
|
||||||
b.cVerifier
|
b.cVerifier
|
||||||
@@ -904,7 +904,7 @@ select *from tempdb..tablepzck20210526
|
|||||||
|
|
||||||
// where.Add(" a.iQuantity - isnull(d.cqty,0) >0 and b.cVerifier is not null ");
|
// where.Add(" a.iQuantity - isnull(d.cqty,0) >0 and b.cVerifier is not null ");
|
||||||
|
|
||||||
where.Add(" mm.wfiQuantity >0 and mm.cVerifier is not null and mm.cInvCode like '9%' ");
|
where.Add(" mm.wfiQuantity >0 and mm.cVerifier is not null and mm.cInvCode like '9%' and isnull( mm.cCloser ,'') ='' ");
|
||||||
if(info1 ==null)
|
if(info1 ==null)
|
||||||
{
|
{
|
||||||
info1 = new NX.ERP.Model.Request.SaleinvRequest();
|
info1 = new NX.ERP.Model.Request.SaleinvRequest();
|
||||||
|
|||||||
@@ -23,17 +23,42 @@ export default {
|
|||||||
data: Array //表格数据
|
data: Array //表格数据
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
/*
|
||||||
custnanme() {
|
custnanme() {
|
||||||
this.data3=[];
|
this.data3 = [];
|
||||||
this.data.forEach(item => {
|
this.data.forEach(item => {
|
||||||
//console.log(1)
|
|
||||||
this.data3.push(item.cCusAbbName);
|
this.data3.push(item.cCusAbbName);
|
||||||
});
|
});
|
||||||
this.data3 = this.noRepeat(this.data3);
|
this.data3 = this.noRepeat(this.data3);
|
||||||
this.data3 = this.data3.slice(0, 10);
|
this.data3 = this.data3.slice(0, 10);
|
||||||
//console.log(this.data);
|
//console.log(this.columns);
|
||||||
|
//console.log(this.arraydata);
|
||||||
return this.data3;
|
return this.data3;
|
||||||
|
},
|
||||||
|
*/
|
||||||
|
getarraydata:function(){
|
||||||
|
|
||||||
|
this.arraydata=[]
|
||||||
|
this.columns.forEach(element => {
|
||||||
|
this.arraydata[element.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]);
|
||||||
|
}
|
||||||
|
//console.log(this.objectList[item][i]); //objectList[item][i]表示某个对象的某个具体属性值,i表示属性名,可以打印出来看一下;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return function(key){
|
||||||
|
this.arraydata[key] = this.noRepeat(this.arraydata[key]);
|
||||||
|
return this.arraydata[key];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@@ -43,6 +68,7 @@ export default {
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
data3: [],
|
data3: [],
|
||||||
|
arraydata: new Array(),
|
||||||
tableColumnsFilters: [],
|
tableColumnsFilters: [],
|
||||||
search: {} //过滤条件保存的对象,就是保存Input框和Select中值
|
search: {} //过滤条件保存的对象,就是保存Input框和Select中值
|
||||||
};
|
};
|
||||||
@@ -92,7 +118,7 @@ export default {
|
|||||||
props: {
|
props: {
|
||||||
value: "", //Select选项列表一般 0 为全部
|
value: "", //Select选项列表一般 0 为全部
|
||||||
transfer: true,
|
transfer: true,
|
||||||
data: this.custnanme,
|
data: this.getarraydata(this.columns[index].key),
|
||||||
filterMethod: this.filterMethod
|
filterMethod: this.filterMethod
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
@@ -230,7 +256,7 @@ export default {
|
|||||||
}, 0);
|
}, 0);
|
||||||
sums[key] = {
|
sums[key] = {
|
||||||
key,
|
key,
|
||||||
value: v
|
value: v
|
||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
sums[key] = {
|
sums[key] = {
|
||||||
@@ -239,7 +265,6 @@ export default {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
return sums;
|
return sums;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -169,7 +169,7 @@ export default {
|
|||||||
key: "cSOCode",
|
key: "cSOCode",
|
||||||
width: "160",
|
width: "160",
|
||||||
filter: {
|
filter: {
|
||||||
type: "Input"
|
type: "AutoComplete"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -189,7 +189,7 @@ export default {
|
|||||||
width: "150",
|
width: "150",
|
||||||
key: "cInvName",
|
key: "cInvName",
|
||||||
filter: {
|
filter: {
|
||||||
type: "Input"
|
type: "AutoComplete"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -198,7 +198,7 @@ export default {
|
|||||||
key: "cInvStd",
|
key: "cInvStd",
|
||||||
width: "220",
|
width: "220",
|
||||||
filter: {
|
filter: {
|
||||||
type: "Input"
|
type: "AutoComplete"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -526,6 +526,7 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.ivu-select-dropdown-transfer {
|
.ivu-select-dropdown-transfer {
|
||||||
width: 150px;
|
width: 165px;
|
||||||
|
height: 350px;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
Reference in New Issue
Block a user