|
|
@ -546,16 +546,16 @@ export default class PurchaseWHSRM extends BasePage {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
this.detaillistceshi.forEach((item) => {
|
|
|
|
// this.detaillistceshi.forEach((item) => {
|
|
|
|
if (item.defectCode == null || item.defectCode == '') {
|
|
|
|
// if (item.defectCode == null || item.defectCode == '') {
|
|
|
|
this.isvalue2 = true;
|
|
|
|
// this.isvalue2 = true;
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
});
|
|
|
|
// });
|
|
|
|
this.detaillistceshi.forEach((item) => {
|
|
|
|
// this.detaillistceshi.forEach((item) => {
|
|
|
|
if (item.defectQuality == null || item.defectQuality == '') {
|
|
|
|
// if (item.defectQuality == null || item.defectQuality == '') {
|
|
|
|
this.isvalue3 = true;
|
|
|
|
// this.isvalue3 = true;
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
});
|
|
|
|
// });
|
|
|
|
this.detaillistdefects.forEach((item) => {
|
|
|
|
this.detaillistdefects.forEach((item) => {
|
|
|
|
if (item.noOkQuality === null || item.noOkQuality === '') {
|
|
|
|
if (item.noOkQuality === null || item.noOkQuality === '') {
|
|
|
|
this.isquality = true;
|
|
|
|
this.isquality = true;
|
|
|
@ -570,20 +570,20 @@ export default class PurchaseWHSRM extends BasePage {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (this.isvalue2) {
|
|
|
|
// if (this.isvalue2) {
|
|
|
|
(this.$refs.uToast as any).show({
|
|
|
|
// (this.$refs.uToast as any).show({
|
|
|
|
title: '请选择不良分类',
|
|
|
|
// title: '请选择不良分类',
|
|
|
|
type: 'default',
|
|
|
|
// type: 'default',
|
|
|
|
});
|
|
|
|
// });
|
|
|
|
return;
|
|
|
|
// return;
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
if (this.isvalue3) {
|
|
|
|
// if (this.isvalue3) {
|
|
|
|
(this.$refs.uToast as any).show({
|
|
|
|
// (this.$refs.uToast as any).show({
|
|
|
|
title: '不合格数量不能为空',
|
|
|
|
// title: '不合格数量不能为空',
|
|
|
|
type: 'default',
|
|
|
|
// type: 'default',
|
|
|
|
});
|
|
|
|
// });
|
|
|
|
return;
|
|
|
|
// return;
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
if (this.formdata.sampleQuality === null || this.formdata.sampleQuality === '') {
|
|
|
|
if (this.formdata.sampleQuality === null || this.formdata.sampleQuality === '') {
|
|
|
|
(this.$refs.uToast as any).show({
|
|
|
|
(this.$refs.uToast as any).show({
|
|
|
|
title: '抽样数量不能为空',
|
|
|
|
title: '抽样数量不能为空',
|
|
|
|