生产质检汇总问题修改

master
guoshuang 1 year ago
parent 634daeba33
commit 96e76600cf

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

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

Loading…
Cancel
Save