|
|
|
|
@ -20,35 +20,54 @@ |
|
|
|
|
<template #menu-left> </template> |
|
|
|
|
<template #menu-right> </template> |
|
|
|
|
<template #menu="{ row }"> </template> |
|
|
|
|
<template #tiqiankaigong="scope"> |
|
|
|
|
<el-button type="text" @click="toDetail(scope.row,'提前开工')">{{ scope.row.tiqiankaigong }}</el-button> |
|
|
|
|
<template #earlyStartCount="scope"> |
|
|
|
|
<el-button type="text" @click="toDetail(scope.row, '提前开工')" |
|
|
|
|
>{{ scope.row.earlyStartCount }}({{ |
|
|
|
|
scope.row.earlyStartCountRate == '0' ? '0%' : scope.row.earlyStartCountRate |
|
|
|
|
}})</el-button |
|
|
|
|
> |
|
|
|
|
</template> |
|
|
|
|
<template #zhunshikaigong="scope"> |
|
|
|
|
<el-button type="text" @click="toDetail(scope.row,'准时开工')">{{ scope.row.zhunshikaigong }}</el-button> |
|
|
|
|
<template #onTimeStartCount="scope"> |
|
|
|
|
<el-button type="text" @click="toDetail(scope.row, '准时开工')" |
|
|
|
|
>{{ scope.row.onTimeStartCount }}({{ |
|
|
|
|
scope.row.onTimeStartCountRate == '0' ? '0%' : scope.row.onTimeStartCountRate |
|
|
|
|
}})</el-button |
|
|
|
|
> |
|
|
|
|
</template> |
|
|
|
|
<template #yanchikaigong="scope"> |
|
|
|
|
<el-button type="text" @click="toDetail(scope.row,'延迟开工')">{{ scope.row.yanchikaigong }}</el-button> |
|
|
|
|
<template #delayStartCount="scope"> |
|
|
|
|
<el-button type="text" @click="toDetail(scope.row, '延迟开工')" |
|
|
|
|
>{{ scope.row.delayStartCount }}({{ |
|
|
|
|
scope.row.delayStartCountRate == '0' ? '0%' : scope.row.delayStartCountRate |
|
|
|
|
}})</el-button |
|
|
|
|
> |
|
|
|
|
</template> |
|
|
|
|
<template #tiqianwangong="scope"> |
|
|
|
|
<el-button type="text" @click="toDetail(scope.row,'提前完工')">{{ scope.row.tiqianwangong }}</el-button> |
|
|
|
|
<template #earlyFinishCount="scope"> |
|
|
|
|
<el-button type="text" @click="toDetail(scope.row, '提前完工')" |
|
|
|
|
>{{ scope.row.earlyFinishCount }}({{ |
|
|
|
|
scope.row.earlyFinishCountRate == '0' ? '0%' : scope.row.earlyFinishCountRate |
|
|
|
|
}})</el-button |
|
|
|
|
> |
|
|
|
|
</template> |
|
|
|
|
<template #zhunshiwangong="scope"> |
|
|
|
|
<el-button type="text" @click="toDetail(scope.row,'准时完工')">{{ scope.row.zhunshiwangong }}</el-button> |
|
|
|
|
<template #onTimeFinishCount="scope"> |
|
|
|
|
<el-button type="text" @click="toDetail(scope.row, '准时完工')" |
|
|
|
|
>{{ scope.row.onTimeFinishCount }}({{ |
|
|
|
|
scope.row.onTimeFinishCountRate == '0' ? '0%' : scope.row.onTimeFinishCountRate |
|
|
|
|
}})</el-button |
|
|
|
|
> |
|
|
|
|
</template> |
|
|
|
|
<template #yanchiwangong="scope"> |
|
|
|
|
<el-button type="text" @click="toDetail(scope.row,'延迟完工')">{{ scope.row.yanchiwangong }}</el-button> |
|
|
|
|
<template #delayFinishCount="scope"> |
|
|
|
|
<el-button type="text" @click="toDetail(scope.row, '延迟完工')" |
|
|
|
|
>{{ scope.row.delayFinishCount }}({{ |
|
|
|
|
scope.row.delayFinishCountRate == '0' ? '0%' : scope.row.delayFinishCountRate |
|
|
|
|
}})</el-button |
|
|
|
|
> |
|
|
|
|
</template> |
|
|
|
|
</avue-crud> |
|
|
|
|
</div> |
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
<script> |
|
|
|
|
// import { |
|
|
|
|
// getListPersonAbility, |
|
|
|
|
// removePersonAbility, |
|
|
|
|
// addPersonAbility, |
|
|
|
|
// updatePersonAbility, |
|
|
|
|
// } from '@/api/productionSchedulingPlan/scheduling'; |
|
|
|
|
import { getCenterExecuteList } from '@/api/productionSchedulingPlan/scheduling'; |
|
|
|
|
export default { |
|
|
|
|
components: {}, |
|
|
|
|
data() { |
|
|
|
|
@ -142,7 +161,7 @@ export default { |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: '准时偏差(±分钟)', |
|
|
|
|
prop: 'zhunshipiancha', |
|
|
|
|
prop: 'interval', |
|
|
|
|
search: true, |
|
|
|
|
sortable: true, |
|
|
|
|
span: 12, |
|
|
|
|
@ -153,7 +172,7 @@ export default { |
|
|
|
|
|
|
|
|
|
{ |
|
|
|
|
label: '车间订单数量', |
|
|
|
|
prop: 'partName', |
|
|
|
|
prop: 'totalCount', |
|
|
|
|
search: false, |
|
|
|
|
sortable: true, |
|
|
|
|
span: 12, |
|
|
|
|
@ -161,42 +180,42 @@ export default { |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: '提前开工', |
|
|
|
|
prop: 'tiqiankaigong', |
|
|
|
|
prop: 'earlyStartCount', |
|
|
|
|
search: false, |
|
|
|
|
sortable: true, |
|
|
|
|
span: 12, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: '准时开工', |
|
|
|
|
prop: 'zhunshikaigong', |
|
|
|
|
prop: 'onTimeStartCount', |
|
|
|
|
search: false, |
|
|
|
|
sortable: true, |
|
|
|
|
span: 12, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: '延迟开工', |
|
|
|
|
prop: 'yanchikaigong', |
|
|
|
|
prop: 'delayStartCount', |
|
|
|
|
search: false, |
|
|
|
|
sortable: true, |
|
|
|
|
span: 12, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: '提前完工', |
|
|
|
|
prop: 'tiqianwangong', |
|
|
|
|
prop: 'earlyFinishCount', |
|
|
|
|
search: false, |
|
|
|
|
sortable: true, |
|
|
|
|
span: 12, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: '准时完工', |
|
|
|
|
prop: 'zhunshiwangong', |
|
|
|
|
prop: 'onTimeFinishCount', |
|
|
|
|
search: false, |
|
|
|
|
sortable: true, |
|
|
|
|
span: 12, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: '延迟完工', |
|
|
|
|
prop: 'yanchiwangong', |
|
|
|
|
prop: 'delayFinishCount', |
|
|
|
|
search: false, |
|
|
|
|
sortable: true, |
|
|
|
|
span: 12, |
|
|
|
|
@ -230,11 +249,16 @@ export default { |
|
|
|
|
threeDaysAgo.setDate(today.getDate() - 7); |
|
|
|
|
|
|
|
|
|
this.query.cycledate = [this.formatDate(threeDaysAgo), this.formatDate(today)]; |
|
|
|
|
this.query.interval = 30 |
|
|
|
|
this.onLoad(this.page, this.query); |
|
|
|
|
// this.$refs.crud.refreshTable(); |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
onChangeData() {}, |
|
|
|
|
toDetail(row,type){ |
|
|
|
|
this.$emit('toDetail',row,type,'作业中心') |
|
|
|
|
toDetail(row, type) { |
|
|
|
|
console.log(909090,row, type); |
|
|
|
|
row.interval = this.query.interval |
|
|
|
|
this.$emit('toDetail', row, type, '作业中心'); |
|
|
|
|
}, |
|
|
|
|
formatDate(date) { |
|
|
|
|
const year = date.getFullYear(); |
|
|
|
|
@ -299,7 +323,7 @@ export default { |
|
|
|
|
searchChange(params, done) { |
|
|
|
|
this.query = params; |
|
|
|
|
this.page.currentPage = 1; |
|
|
|
|
this.onLoad(this.page, params); |
|
|
|
|
this.onLoad(this.page, this.query); |
|
|
|
|
done(); |
|
|
|
|
}, |
|
|
|
|
selectionChange(list) { |
|
|
|
|
@ -312,9 +336,11 @@ export default { |
|
|
|
|
|
|
|
|
|
currentChange(currentPage) { |
|
|
|
|
this.page.currentPage = currentPage; |
|
|
|
|
this.onLoad(this.page, this.query); |
|
|
|
|
}, |
|
|
|
|
sizeChange(pageSize) { |
|
|
|
|
this.page.pageSize = pageSize; |
|
|
|
|
this.onLoad(this.page, this.query); |
|
|
|
|
}, |
|
|
|
|
refreshChange() { |
|
|
|
|
this.onLoad(this.page, this.query); |
|
|
|
|
@ -330,28 +356,23 @@ export default { |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
onLoad(page, params = {}) { |
|
|
|
|
this.loading = false; |
|
|
|
|
this.loading = true; |
|
|
|
|
let query_ = {}; |
|
|
|
|
if (!!params.cycledate) { |
|
|
|
|
this.query.startTime = params.cycledate[0]; |
|
|
|
|
this.query.endTime = params.cycledate[1]; |
|
|
|
|
query_.startTime = params.cycledate[0]; |
|
|
|
|
query_.endTime = params.cycledate[1]; |
|
|
|
|
} |
|
|
|
|
this.data = [ |
|
|
|
|
{ |
|
|
|
|
id: '1', |
|
|
|
|
zhunshikaigong: '20%', |
|
|
|
|
zhunshiwangong: '30%', |
|
|
|
|
tiqianwangong: '40%', |
|
|
|
|
tiqiankaigong: '50%', |
|
|
|
|
yanchikaigong: '60%', |
|
|
|
|
yanchiwangong: '80%', |
|
|
|
|
}, |
|
|
|
|
]; |
|
|
|
|
// getList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => { |
|
|
|
|
// this.data = res.data.data.records; |
|
|
|
|
// this.loading = false; |
|
|
|
|
// this.page.total = res.data.data.total; |
|
|
|
|
// this.selectionClear(); |
|
|
|
|
// }); |
|
|
|
|
if (!!this.query.interval) { |
|
|
|
|
query_.interval = this.query.interval; |
|
|
|
|
} |
|
|
|
|
if (!!this.query.workCenterId) { |
|
|
|
|
query_.workCenterId = this.query.workCenterId; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
getCenterExecuteList(query_).then(res => { |
|
|
|
|
this.data = res.data.data; |
|
|
|
|
this.loading = false; |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
}; |
|
|
|
|
|