|
|
@ -329,82 +329,91 @@ |
|
|
|
title: "加载中....", |
|
|
|
mask: true |
|
|
|
}); |
|
|
|
var filters = [] |
|
|
|
if (this.checkedToday) { |
|
|
|
filters.push({ |
|
|
|
column: "create_time", |
|
|
|
action: "betweeen", |
|
|
|
value: this.todayTime |
|
|
|
}) |
|
|
|
// var filters = [] |
|
|
|
// if (this.checkedToday) { |
|
|
|
// filters.push({ |
|
|
|
// column: "create_time", |
|
|
|
// action: "betweeen", |
|
|
|
// value: this.todayTime |
|
|
|
// }) |
|
|
|
// } |
|
|
|
|
|
|
|
// filters.push({ |
|
|
|
// column: "status", |
|
|
|
// action: "in", |
|
|
|
// value: this.status |
|
|
|
// }) |
|
|
|
if (params.status) { |
|
|
|
this.status = params.status |
|
|
|
|
|
|
|
}else{ |
|
|
|
this.status = "1,2" |
|
|
|
} |
|
|
|
if(params.creationTime==""){ |
|
|
|
this.checkedToday = false; |
|
|
|
} |
|
|
|
|
|
|
|
filters.push({ |
|
|
|
column: "status", |
|
|
|
action: "in", |
|
|
|
value: this.status |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
if (params.fromLocationCode) { |
|
|
|
// 来源库位 |
|
|
|
this.fromLocation = params.fromLocationCode |
|
|
|
filters.push({ |
|
|
|
column: "fromLocationCode", |
|
|
|
action: "==", |
|
|
|
value: params.fromLocationCode |
|
|
|
}) |
|
|
|
// filters.push({ |
|
|
|
// column: "fromLocationCode", |
|
|
|
// action: "==", |
|
|
|
// value: params.fromLocationCode |
|
|
|
// }) |
|
|
|
}else{ |
|
|
|
this.fromLocation = '' |
|
|
|
} |
|
|
|
if (params.productionLineCode) { |
|
|
|
// 生产线 |
|
|
|
this.productionLine = params.productionLineCode |
|
|
|
filters.push({ |
|
|
|
column: "productionLineCode", |
|
|
|
action: "==", |
|
|
|
value: params.productionLineCode |
|
|
|
}) |
|
|
|
// filters.push({ |
|
|
|
// column: "productionLineCode", |
|
|
|
// action: "==", |
|
|
|
// value: params.productionLineCode |
|
|
|
// }) |
|
|
|
}else{ |
|
|
|
this.productionLine = '' |
|
|
|
} |
|
|
|
if (params.itemCode) { |
|
|
|
// 物料代码 |
|
|
|
this.filterItemCode = params.itemCode |
|
|
|
filters.push({ |
|
|
|
column: "itemCode", |
|
|
|
action: "like", |
|
|
|
value: params.itemCode |
|
|
|
}) |
|
|
|
// filters.push({ |
|
|
|
// column: "itemCode", |
|
|
|
// action: "like", |
|
|
|
// value: params.itemCode |
|
|
|
// }) |
|
|
|
}else{ |
|
|
|
this.filterItemCode = '' |
|
|
|
} |
|
|
|
if (params.fromAreaCode) { |
|
|
|
// 来源库区 |
|
|
|
this.fromAreaCode = params.fromAreaCode |
|
|
|
filters.push({ |
|
|
|
column: "fromAreaCode", |
|
|
|
action: "==", |
|
|
|
value: params.fromAreaCode |
|
|
|
}) |
|
|
|
// filters.push({ |
|
|
|
// column: "fromAreaCode", |
|
|
|
// action: "==", |
|
|
|
// value: params.fromAreaCode |
|
|
|
// }) |
|
|
|
}else{ |
|
|
|
this.fromAreaCode = '' |
|
|
|
} |
|
|
|
if (params.toAreaCode) { |
|
|
|
// 到库区 |
|
|
|
this.toAreaCode = params.toAreaCode |
|
|
|
filters.push({ |
|
|
|
column: "toAreaCode", |
|
|
|
action: "==", |
|
|
|
value: params.toAreaCode |
|
|
|
}) |
|
|
|
// filters.push({ |
|
|
|
// column: "toAreaCode", |
|
|
|
// action: "==", |
|
|
|
// value: params.toAreaCode |
|
|
|
// }) |
|
|
|
}else{ |
|
|
|
this.toAreaCode = '' |
|
|
|
} |
|
|
|
var params = { |
|
|
|
filters: filters, |
|
|
|
pageNo: 1, |
|
|
|
pageSize: 100, |
|
|
|
} |
|
|
|
// var params = { |
|
|
|
// filters: filters, |
|
|
|
// pageNo: 1, |
|
|
|
// pageSize: 100, |
|
|
|
// } |
|
|
|
|
|
|
|
this.getList('refresh', this.fromLocation, this.productionLine, this.filterItemCode,this.fromAreaCode,this.toAreaCode) |
|
|
|
// getIssueJobList(params).then(res => { |
|
|
|