diff --git a/src/pages/quality/Materialinspection/index.vue b/src/pages/quality/Materialinspection/index.vue index 541b99e..0094b6e 100644 --- a/src/pages/quality/Materialinspection/index.vue +++ b/src/pages/quality/Materialinspection/index.vue @@ -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; diff --git a/src/utils/url.ts b/src/utils/url.ts index 3a7cf1e..db520c0 100644 --- a/src/utils/url.ts +++ b/src/utils/url.ts @@ -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: {