排产统计分析页面接口联调

dev-scheduling
zhangdi 2 months ago
parent 467b80ab9d
commit 240bf81a2f
  1. 4
      src/views/productionSchedulingPlan/statisticalAnalysis/production/executionProcess.vue
  2. 1
      src/views/productionSchedulingPlan/statisticalAnalysis/production/executionWorkorder.vue
  3. 60
      src/views/productionSchedulingPlan/statisticalAnalysis/production/processDeatils.vue
  4. 8
      src/views/productionSchedulingPlan/statisticalAnalysis/production/workorderDetails.vue
  5. 5
      src/views/productionSchedulingPlan/statisticalAnalysis/productionAnalysis.vue

@ -318,12 +318,14 @@ export default {
threeDaysAgo.setDate(today.getDate() - 7); threeDaysAgo.setDate(today.getDate() - 7);
this.query.cycledate = [this.formatDate(threeDaysAgo), this.formatDate(today)]; this.query.cycledate = [this.formatDate(threeDaysAgo), this.formatDate(today)];
this.query.interval = 30;
this.onLoad(this.page, this.query); this.onLoad(this.page, this.query);
}, },
methods: { methods: {
onChangeData() {}, onChangeData() {},
toDetail(row, type) { toDetail(row, type) {
row.interval = this.query.interval;
row.cycledate = this.query.cycledate;
this.$emit('toDetail', row, type, '工序'); this.$emit('toDetail', row, type, '工序');
}, },
formatDate(date) { formatDate(date) {

@ -258,6 +258,7 @@ export default {
toDetail(row, type) { toDetail(row, type) {
console.log(909090,row, type); console.log(909090,row, type);
row.interval = this.query.interval row.interval = this.query.interval
row.cycledate = this.query.cycledate
this.$emit('toDetail', row, type, '作业中心'); this.$emit('toDetail', row, type, '作业中心');
}, },
formatDate(date) { formatDate(date) {

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

@ -335,8 +335,11 @@ export default {
const threeDaysAgo = new Date(today); const threeDaysAgo = new Date(today);
threeDaysAgo.setDate(today.getDate() - 7); 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.workorderItem, 'workorderItem'); console.log(this.workorderItem, 'workorderItem');
if(this.workorderItem.cycledate){
this.query.cycledate = this.workorderItem.cycledate;
}
if(this.workorderItem.interval){ if(this.workorderItem.interval){
this.query.interval = this.workorderItem.interval; this.query.interval = this.workorderItem.interval;
} }
@ -487,6 +490,9 @@ export default {
if (!!params.endType) { if (!!params.endType) {
query_.endType = params.endType; query_.endType = params.endType;
} }
if (!!params.interval) {
query_.interval = params.interval;
}
getOrderExecuteDetailPage(page.currentPage, page.pageSize, query_).then(res => { getOrderExecuteDetailPage(page.currentPage, page.pageSize, query_).then(res => {
this.data = res.data.data.records; this.data = res.data.data.records;

@ -37,7 +37,10 @@ export default {
}; };
}, },
methods: { methods: {
handleClick() {}, handleClick() {
this.workorderItem = {};
this.processItem = {};
},
toDetail(row, type, tabName) { toDetail(row, type, tabName) {
if (tabName == '作业中心') { if (tabName == '作业中心') {
this.activeName = 'second'; this.activeName = 'second';

Loading…
Cancel
Save