Always show defect clearing for merges

This commit is contained in:
caoqianming 2026-07-30 15:25:41 +08:00
parent ddc324dd8e
commit 475b0eb4ed
2 changed files with 2 additions and 13 deletions

View File

@ -471,13 +471,7 @@ export default {
return this.form.handoverb.reduce((sum, item) => sum + Number(item.count || 0), 0);
},
canClearBatchDefect() {
if (Number(this.mtype) !== 30) return false;
if (this.new_wm) return false;
const items = this.form.handoverb || [];
if (items.length < 2) return false;
const states = new Set(items.map(i => Number(i.state)));
if (states.size !== 1) return false;
return true;
return Number(this.mtype) === 30 || this.change_batch;
},
clearBatchDefectHint() {
const items = this.form.handoverb || [];

View File

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