Handle string merge type in defect option

This commit is contained in:
caoqianming 2026-07-30 15:15:37 +08:00
parent 25259fcecf
commit ddc324dd8e
2 changed files with 2 additions and 2 deletions

View File

@ -471,7 +471,7 @@ export default {
return this.form.handoverb.reduce((sum, item) => sum + Number(item.count || 0), 0); return this.form.handoverb.reduce((sum, item) => sum + Number(item.count || 0), 0);
}, },
canClearBatchDefect() { canClearBatchDefect() {
if (this.mtype !== 30) return false; if (Number(this.mtype) !== 30) return false;
if (this.new_wm) return false; if (this.new_wm) return false;
const items = this.form.handoverb || []; const items = this.form.handoverb || [];
if (items.length < 2) return false; if (items.length < 2) return false;

View File

@ -482,7 +482,7 @@ export default {
}, },
computed: { computed: {
canClearBatchDefect() { canClearBatchDefect() {
if (this.mtype !== 30) return false; if (Number(this.mtype) !== 30) return false;
const items = this.form.handoverb || []; const items = this.form.handoverb || [];
if (items.length < 2) return false; if (items.length < 2) return false;
const states = new Set(items.map(i => Number(i.state))); const states = new Set(items.map(i => Number(i.state)));