|
|
@ -487,17 +487,11 @@ export default class PurchaseWHSRM extends BasePage {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
this.detaillistceshi.forEach((item) => {
|
|
|
|
|
|
|
|
if (item.files.length > 0) {
|
|
|
|
|
|
|
|
item.files = [];
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
item.files = [];
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
console.log(this.detaillistceshi, this.isvalue, this.isquality);
|
|
|
|
console.log(this.detaillistceshi, this.isvalue, this.isquality);
|
|
|
|
if (this.isvalue) {
|
|
|
|
if (this.isvalue) {
|
|
|
|
(this.$refs.uToast as any).show({
|
|
|
|
(this.$refs.uToast as any).show({
|
|
|
@ -533,11 +527,18 @@ export default class PurchaseWHSRM extends BasePage {
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
incomeBatchNo = this.clickitem.incomeBatchNo;
|
|
|
|
incomeBatchNo = this.clickitem.incomeBatchNo;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
this.detaillistceshi.forEach((item) => {
|
|
|
|
|
|
|
|
if (item.files.length > 0) {
|
|
|
|
|
|
|
|
item.files = [];
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
item.files = [];
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
let query = {
|
|
|
|
let query = {
|
|
|
|
sampleQuality: this.formdata.sampleQuality,
|
|
|
|
sampleQuality: this.formdata.sampleQuality,
|
|
|
|
updateBy: session.userName,
|
|
|
|
updateBy: session.userName,
|
|
|
|
factoryCode: session.PoolName,
|
|
|
|
factoryCode: session.PoolName,
|
|
|
|
updateByName: session.userName,
|
|
|
|
updateByName: session.nickName,
|
|
|
|
typeCode: typeCode,
|
|
|
|
typeCode: typeCode,
|
|
|
|
checkType: this.selectList.value,
|
|
|
|
checkType: this.selectList.value,
|
|
|
|
orderCode: this.clickitem.orderNo,
|
|
|
|
orderCode: this.clickitem.orderNo,
|
|
|
@ -562,7 +563,6 @@ export default class PurchaseWHSRM extends BasePage {
|
|
|
|
type: 'default',
|
|
|
|
type: 'default',
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//await this.model.OnSubmit(this.form3.barCodewl);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
clear() {
|
|
|
|
clear() {
|
|
|
|
this.formdata.sampleQuality = null;
|
|
|
|
this.formdata.sampleQuality = null;
|
|
|
|