diff --git a/src/views/wpm_bx/handover_form.vue b/src/views/wpm_bx/handover_form.vue index 43dbca26..a487acc1 100644 --- a/src/views/wpm_bx/handover_form.vue +++ b/src/views/wpm_bx/handover_form.vue @@ -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 || []; diff --git a/src/views/wpm_gx/handover_form.vue b/src/views/wpm_gx/handover_form.vue index 1c4887af..442ddd35 100644 --- a/src/views/wpm_gx/handover_form.vue +++ b/src/views/wpm_gx/handover_form.vue @@ -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 || [];