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