|
|
|
@ -563,13 +563,13 @@ export default class PurchaseWHSRM extends BasePage {
|
|
|
|
|
});
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if (this.isquality) {
|
|
|
|
|
(this.$refs.uToast as any).show({
|
|
|
|
|
title: '数量不能为空',
|
|
|
|
|
type: 'default',
|
|
|
|
|
});
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
// if (this.isquality) {
|
|
|
|
|
// (this.$refs.uToast as any).show({
|
|
|
|
|
// title: '数量不能为空',
|
|
|
|
|
// type: 'default',
|
|
|
|
|
// });
|
|
|
|
|
// return;
|
|
|
|
|
// }
|
|
|
|
|
let incomeBatchNo = '';
|
|
|
|
|
if (this.isshow3) {
|
|
|
|
|
if (this.incomeBatchNo.value == '' || this.incomeBatchNo.value == undefined) {
|
|
|
|
@ -587,12 +587,12 @@ export default class PurchaseWHSRM extends BasePage {
|
|
|
|
|
let Bnumber = 0;
|
|
|
|
|
let Cnumber = 0;
|
|
|
|
|
this.detaillistceshi.forEach((item) => {
|
|
|
|
|
if (item.defectcode == '20231212001') {
|
|
|
|
|
Anumber = Anumber + parseInt(item.defectQuality);
|
|
|
|
|
} else if (item.defectcode == '20231212002') {
|
|
|
|
|
Bnumber = Bnumber + parseInt(item.defectQuality);
|
|
|
|
|
} else if (item.defectcode == '20231212003') {
|
|
|
|
|
Cnumber = Cnumber + parseInt(item.defectQuality);
|
|
|
|
|
if (item.defectCode == '20231212001') {
|
|
|
|
|
Anumber += parseInt(item.defectQuality);
|
|
|
|
|
} else if (item.defectCode == '20231212002') {
|
|
|
|
|
Bnumber += parseInt(item.defectQuality);
|
|
|
|
|
} else if (item.defectCode == '20231212003') {
|
|
|
|
|
Cnumber += parseInt(item.defectQuality);
|
|
|
|
|
}
|
|
|
|
|
if (item.files.length > 0) {
|
|
|
|
|
item.files = [];
|
|
|
|
@ -601,11 +601,11 @@ export default class PurchaseWHSRM extends BasePage {
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
this.detaillistdefects.forEach((item) => {
|
|
|
|
|
if (item.defectcode == '20231212001') {
|
|
|
|
|
if (item.defectCode == '20231212001') {
|
|
|
|
|
item.noOkQuality = Anumber;
|
|
|
|
|
} else if (item.defectcode == '20231212002') {
|
|
|
|
|
} else if (item.defectCode == '20231212002') {
|
|
|
|
|
item.noOkQuality = Bnumber;
|
|
|
|
|
} else if (item.defectcode == '20231212003') {
|
|
|
|
|
} else if (item.defectCode == '20231212003') {
|
|
|
|
|
item.noOkQuality = Cnumber;
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
@ -623,21 +623,21 @@ export default class PurchaseWHSRM extends BasePage {
|
|
|
|
|
incomeBatchNo: incomeBatchNo,
|
|
|
|
|
};
|
|
|
|
|
console.log(query);
|
|
|
|
|
// await this.model.commitCheckTaskList(query);
|
|
|
|
|
// if (this.model.SubmitCode.code == '200') {
|
|
|
|
|
// (this.$refs.uToast as any).show({
|
|
|
|
|
// title: '成功',
|
|
|
|
|
// type: 'default',
|
|
|
|
|
// });
|
|
|
|
|
// this.show = false;
|
|
|
|
|
// this.getlist();
|
|
|
|
|
// this.clear();
|
|
|
|
|
// } else {
|
|
|
|
|
// (this.$refs.uToast as any).show({
|
|
|
|
|
// title: '失败',
|
|
|
|
|
// type: 'default',
|
|
|
|
|
// });
|
|
|
|
|
// }
|
|
|
|
|
await this.model.commitCheckTaskList(query);
|
|
|
|
|
if (this.model.SubmitCode.code == '200') {
|
|
|
|
|
(this.$refs.uToast as any).show({
|
|
|
|
|
title: '成功',
|
|
|
|
|
type: 'default',
|
|
|
|
|
});
|
|
|
|
|
this.show = false;
|
|
|
|
|
this.getlist();
|
|
|
|
|
this.clear();
|
|
|
|
|
} else {
|
|
|
|
|
(this.$refs.uToast as any).show({
|
|
|
|
|
title: '失败',
|
|
|
|
|
type: 'default',
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
clear() {
|
|
|
|
|
this.formdata.sampleQuality = null;
|
|
|
|
|