生产质检汇总问题修改

master
guoshuang 1 year ago
parent 634daeba33
commit 96e76600cf

@ -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;

@ -1,6 +1,6 @@
/* eslint-disable @typescript-eslint/no-unused-vars */
// const qianzhuione = '/dev-api'; // '/prod-api'生产环境 // '/dev-api'开发环境是调后端本地时使用
const qianzhuione = '/dev-api';
const qianzhuione = '/prod-api';
export const url = {
wmspda: {
system: {

Loading…
Cancel
Save