|
|
@@ -526,10 +526,10 @@
|
|
|
// if (item.preRelease.length) {
|
|
|
// this.preReleaseList = item.preRelease;
|
|
|
// } else {
|
|
|
- if (item.id && this.type == 'plan') {
|
|
|
- this.completenessCheck(item.id);
|
|
|
- } else if (this.type == 'order') {
|
|
|
- this.completenessCheck(item.productionPlanId, item.id);
|
|
|
+ if (item.id && this.type == 'plan') {
|
|
|
+ this.completenessCheck(item.id);
|
|
|
+ } else if (this.type == 'order') {
|
|
|
+ this.completenessCheck(item.productionPlanId, item.id);
|
|
|
// }
|
|
|
}
|
|
|
},
|
|
|
@@ -620,7 +620,10 @@
|
|
|
this.$refs.kittingCompleteRef.open(list);
|
|
|
} else if (item.preType == '2') {
|
|
|
const data = this.preReleaseList.find((it) => it.preType == 2);
|
|
|
- this.$refs.auxiliaryMaterialRef.open(this.itemData, data);
|
|
|
+ this.$refs.auxiliaryMaterialRef.open(this.itemData, data, 2);
|
|
|
+ } else if (item.preType == '3') {
|
|
|
+ const data = this.preReleaseList.find((it) => it.preType == 3);
|
|
|
+ this.$refs.auxiliaryMaterialRef.open(this.itemData, data, 3);
|
|
|
}
|
|
|
},
|
|
|
|
|
|
@@ -716,8 +719,8 @@
|
|
|
});
|
|
|
},
|
|
|
|
|
|
- updateStatus() {
|
|
|
- const index = this.preReleaseList.findIndex((it) => it.preType == 2);
|
|
|
+ updateStatus(type) {
|
|
|
+ const index = this.preReleaseList.findIndex((it) => it.preType == type);
|
|
|
|
|
|
this.$set(this.preReleaseList[index], 'statusStr', '齐套');
|
|
|
},
|