1、定义一个表单的对象
2、定义一个查询的表单
3、表格
4、查询(可根据多个条件进行查询)
getMaterialList(){
let materialArr = this.pbomProcessMaterial.filter(v=>{
let mbnoState = false
let mbdescState = false
if(typeof this.materialData.mbno != undefined && this.materialData.mbno != '' && this.materialData.mbno != null){
mbnoState = true
}
if(typeof this.materialData.mbdesc != undefined && this.materialData.mbdesc != '' && this.materialData.mbdesc != null){
mbdescState = true
}
return mbnoState && mbdescState ? v.mbno.indexOf(this.materialData.mbno) != -1 && v.mbdesc.indexOf(this.materialData.mbdesc) != -1 : mbnoState ? v.mbno.indexOf(this.materialData.mbno) != -1 : mbdescState ? v.mbdesc.indexOf(this.materialData.mbdesc) != -1 : v
})
this.list = materialArr
},