Always show defect clearing for merges
This commit is contained in:
parent
ddc324dd8e
commit
475b0eb4ed
|
|
@ -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 || [];
|
||||
|
|
|
|||
|
|
@ -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 || [];
|
||||
|
|
|
|||
Loading…
Reference in New Issue