|
|
|
|
@ -15,7 +15,6 @@ |
|
|
|
|
@current-change="currentChange" |
|
|
|
|
@size-change="sizeChange" |
|
|
|
|
@refresh-change="refreshChange" |
|
|
|
|
@on-load="onLoad" |
|
|
|
|
> |
|
|
|
|
<template #menu-left> </template> |
|
|
|
|
<template #menu-right> </template> |
|
|
|
|
@ -255,7 +254,7 @@ export default { |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: '班组', |
|
|
|
|
prop: 'teamId', |
|
|
|
|
prop: 'makeTeam', |
|
|
|
|
search: true, |
|
|
|
|
sortable: true, |
|
|
|
|
hide: true, |
|
|
|
|
@ -424,9 +423,15 @@ export default { |
|
|
|
|
const threeDaysAgo = new Date(today); |
|
|
|
|
threeDaysAgo.setDate(today.getDate() - 7); |
|
|
|
|
|
|
|
|
|
this.query.cycledate = [this.formatDate(threeDaysAgo), this.formatDate(today)]; |
|
|
|
|
// this.query.cycledate = [this.formatDate(threeDaysAgo), this.formatDate(today)]; |
|
|
|
|
|
|
|
|
|
console.log(this.processItem, 'processItem'); |
|
|
|
|
if (this.processItem.cycledate) { |
|
|
|
|
this.query.cycledate = this.processItem.cycledate; |
|
|
|
|
} |
|
|
|
|
if (this.processItem.interval) { |
|
|
|
|
this.query.interval = this.processItem.interval; |
|
|
|
|
} |
|
|
|
|
if (this.processItem.workCenterId) { |
|
|
|
|
this.query.workCenterId = this.processItem.workCenterId + ''; |
|
|
|
|
} |
|
|
|
|
@ -456,6 +461,7 @@ export default { |
|
|
|
|
this.query.endType = '延迟'; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
this.onLoad(this.page,this.query); |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
onChangeData() {}, |
|
|
|
|
@ -556,31 +562,43 @@ export default { |
|
|
|
|
|
|
|
|
|
onLoad(page, params = {}) { |
|
|
|
|
this.loading = false; |
|
|
|
|
let query_ = {} |
|
|
|
|
if (!!params.cycledate) { |
|
|
|
|
query_.startTime = params.cycledate[0]; |
|
|
|
|
query_.endTime = params.cycledate[1]; |
|
|
|
|
let query_ = {}; |
|
|
|
|
if (!!this.query.cycledate) { |
|
|
|
|
query_.startTime = this.query.cycledate[0]; |
|
|
|
|
query_.endTime = this.query.cycledate[1]; |
|
|
|
|
} |
|
|
|
|
if (!!this.query.interval) { |
|
|
|
|
query_.interval = this.query.interval; |
|
|
|
|
} |
|
|
|
|
if (!!this.query.workCenterId) { |
|
|
|
|
query_.workCenterId = this.query.workCenterId; |
|
|
|
|
} |
|
|
|
|
if (!!this.query.cardNo) { |
|
|
|
|
query_.cardNo = this.query.cardNo; |
|
|
|
|
} |
|
|
|
|
if (!!this.query.batchNo) { |
|
|
|
|
query_.batchNo = this.query.batchNo; |
|
|
|
|
} |
|
|
|
|
if (!!params.interval) { |
|
|
|
|
query_.interval = params.interval; |
|
|
|
|
if (!!this.query.woCode) { |
|
|
|
|
query_.woCode = this.query.woCode; |
|
|
|
|
} |
|
|
|
|
if (!!params.workCenterId) { |
|
|
|
|
query_.workCenterId = params.workCenterId; |
|
|
|
|
if (!!this.query.startType) { |
|
|
|
|
query_.startType = this.query.startType; |
|
|
|
|
} |
|
|
|
|
if (!!params.cardNo) { |
|
|
|
|
query_.cardNo = params.cardNo; |
|
|
|
|
if (!!this.query.endType) { |
|
|
|
|
query_.endType = this.query.endType; |
|
|
|
|
} |
|
|
|
|
if (!!params.batchNo) { |
|
|
|
|
query_.batchNo = params.batchNo; |
|
|
|
|
if (!!this.query.caId) { |
|
|
|
|
query_.caId = this.query.caId; |
|
|
|
|
} |
|
|
|
|
if (!!params.woCode) { |
|
|
|
|
query_.woCode = params.woCode; |
|
|
|
|
if (!!this.query.ppsId) { |
|
|
|
|
query_.ppsId = this.query.ppsId; |
|
|
|
|
} |
|
|
|
|
if (!!params.startType) { |
|
|
|
|
query_.startType = params.startType; |
|
|
|
|
if (!!this.query.partCode) { |
|
|
|
|
query_.partCode = this.query.partCode; |
|
|
|
|
} |
|
|
|
|
if (!!params.endType) { |
|
|
|
|
query_.endType = params.endType; |
|
|
|
|
if (!!this.query.makeTeam) { |
|
|
|
|
query_.makeTeam = this.query.makeTeam; |
|
|
|
|
} |
|
|
|
|
getProcessExecuteDetailPage(page.currentPage, page.pageSize, query_).then(res => { |
|
|
|
|
this.data = res.data.data.records; |
|
|
|
|
|