排产管理接口联调

dev-scheduling
zhangdi 2 months ago
parent 0ee30bc903
commit b8f8c3595a
  1. 49
      src/views/productionSchedulingPlan/statisticalAnalysis/qualificationAnalysis.vue

@ -16,7 +16,6 @@
@current-change="currentChange" @current-change="currentChange"
@size-change="sizeChange" @size-change="sizeChange"
@refresh-change="refreshChange" @refresh-change="refreshChange"
> >
<template #menu-left> </template> <template #menu-left> </template>
<template #menu-right> </template> <template #menu-right> </template>
@ -149,6 +148,14 @@ export default {
searchOrder: 13, searchOrder: 13,
hide: true, hide: true,
type: 'select', type: 'select',
dicUrl: '/blade-scheduling/qualityGrade/selectList',
props: {
label: 'qualityGrade',
value: 'id',
},
change: (val, row) => {
this.onChangeData(val.item, 'productIdentId');
},
}, },
{ {
label: '工序', label: '工序',
@ -240,6 +247,14 @@ export default {
searchOrder: 15, searchOrder: 15,
hide: true, hide: true,
type: 'select', type: 'select',
dicUrl: '/blade-scheduling/certificateType/selectList',
props: {
label: 'name',
value: 'id',
},
change: val => {
this.onChangeData(val.item, 'certificateId');
},
}, },
{ {
label: '作业中心', label: '作业中心',
@ -342,6 +357,12 @@ export default {
if (val && type == 'processId') { if (val && type == 'processId') {
this.query.processName = val.name; this.query.processName = val.name;
} }
if (val && type == 'certificateId') {
this.query.certificateName = val.name;
}
if (val && type == 'productIdentId') {
this.query.productIdent = val.qualityGrade;
}
}, },
formatDate(date) { formatDate(date) {
const year = date.getFullYear(); const year = date.getFullYear();
@ -447,31 +468,35 @@ export default {
query_.startTime = null; query_.startTime = null;
query_.endTime = null; query_.endTime = null;
} }
if(!!this.query.partCode){ if (!!this.query.partCode) {
query_.partCode = this.query.partCode; query_.partCode = this.query.partCode;
} }
if(!!this.query.woCode){ if (!!this.query.woCode) {
query_.woCode = this.query.woCode; query_.woCode = this.query.woCode;
} }
if(!!this.query.craftName){ if (!!this.query.craftName) {
query_.craftName = this.query.craftName; query_.craftName = this.query.craftName;
} }
if(!!this.query.processName){ if (!!this.query.processName) {
query_.processName = this.query.processName; query_.processName = this.query.processName;
} }
if(!!this.query.certificateName){ if (!!this.query.certificateName) {
query_.certificateName = this.query.certificateName;
}
if (!!this.query.productIdent) {
query_.productIdent = this.query.productIdent;
}
if (!!this.query.certificateName) {
query_.certificateName = this.query.certificateName; query_.certificateName = this.query.certificateName;
} }
if(!!this.query.productIdent){ //
if (!!this.query.productIdent) {
query_.productIdent = this.query.productIdent; query_.productIdent = this.query.productIdent;
} }
this.loading = true; this.loading = true;
getQualificationExecuteAnalysis( getQualificationExecuteAnalysis(page.currentPage, page.pageSize, query_).then(res => {
page.currentPage,
page.pageSize,
query_
).then(res => {
this.data = res.data.data.records; this.data = res.data.data.records;
this.loading = false; this.loading = false;
this.page.total = res.data.data.total; this.page.total = res.data.data.total;

Loading…
Cancel
Save