|
|
@ -385,6 +385,7 @@ export default class PurchaseWHSRM extends BasePage {
|
|
|
|
isvalue2 = false;
|
|
|
|
isvalue2 = false;
|
|
|
|
isvalue3 = false;
|
|
|
|
isvalue3 = false;
|
|
|
|
isquality = false;
|
|
|
|
isquality = false;
|
|
|
|
|
|
|
|
isremark = false;
|
|
|
|
isgetAutoJudge = false;
|
|
|
|
isgetAutoJudge = false;
|
|
|
|
isfocus = false;
|
|
|
|
isfocus = false;
|
|
|
|
isshow1 = false;
|
|
|
|
isshow1 = false;
|
|
|
@ -739,6 +740,7 @@ export default class PurchaseWHSRM extends BasePage {
|
|
|
|
this.isvalue2 = false;
|
|
|
|
this.isvalue2 = false;
|
|
|
|
this.isvalue3 = false;
|
|
|
|
this.isvalue3 = false;
|
|
|
|
this.isquality = false;
|
|
|
|
this.isquality = false;
|
|
|
|
|
|
|
|
this.isremark = false;
|
|
|
|
let typeCode = '';
|
|
|
|
let typeCode = '';
|
|
|
|
this.nodelist.forEach((item) => {
|
|
|
|
this.nodelist.forEach((item) => {
|
|
|
|
if (this.selectList.value == item.orderCode) {
|
|
|
|
if (this.selectList.value == item.orderCode) {
|
|
|
@ -752,11 +754,13 @@ export default class PurchaseWHSRM extends BasePage {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
// this.detaillistceshi.forEach((item) => {
|
|
|
|
this.detaillistceshi.forEach((item) => {
|
|
|
|
// if (item.defectCode == null || item.defectCode == '') {
|
|
|
|
if (item.status == 'N') {
|
|
|
|
// this.isvalue2 = true;
|
|
|
|
if (item.remark == null || item.remark == '') {
|
|
|
|
// }
|
|
|
|
this.isremark = 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;
|
|
|
@ -786,6 +790,15 @@ export default class PurchaseWHSRM extends BasePage {
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (this.selectList.value != 'checkTypeLL') {
|
|
|
|
|
|
|
|
if (this.isremark) {
|
|
|
|
|
|
|
|
(this.$refs.uToast as any).show({
|
|
|
|
|
|
|
|
title: '不合格描述不能为空',
|
|
|
|
|
|
|
|
type: 'default',
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
// if (this.isvalue2) {
|
|
|
|
// if (this.isvalue2) {
|
|
|
|
// (this.$refs.uToast as any).show({
|
|
|
|
// (this.$refs.uToast as any).show({
|
|
|
|
// title: '请选择不良分类',
|
|
|
|
// title: '请选择不良分类',
|
|
|
@ -808,13 +821,15 @@ export default class PurchaseWHSRM extends BasePage {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (this.formdata.checkResult == 'N') {
|
|
|
|
if (this.selectList.value == 'checkTypeLL') {
|
|
|
|
if (this.formdata.remark === null || this.formdata.remark === '') {
|
|
|
|
if (this.formdata.checkResult == 'N') {
|
|
|
|
(this.$refs.uToast as any).show({
|
|
|
|
if (this.formdata.remark === null || this.formdata.remark === '') {
|
|
|
|
title: '不合格描述不能为空',
|
|
|
|
(this.$refs.uToast as any).show({
|
|
|
|
type: 'default',
|
|
|
|
title: '不合格描述不能为空',
|
|
|
|
});
|
|
|
|
type: 'default',
|
|
|
|
return;
|
|
|
|
});
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (this.selectList.value == 'checkTypeLL') {
|
|
|
|
if (this.selectList.value == 'checkTypeLL') {
|
|
|
@ -878,7 +893,6 @@ export default class PurchaseWHSRM extends BasePage {
|
|
|
|
item.files = [];
|
|
|
|
item.files = [];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
let query = {
|
|
|
|
let query = {
|
|
|
|
sampleQuality: this.formdata.sampleQuality,
|
|
|
|
sampleQuality: this.formdata.sampleQuality,
|
|
|
|
updateBy: session.userName,
|
|
|
|
updateBy: session.userName,
|
|
|
|