Handle string merge type in defect option
This commit is contained in:
parent
25259fcecf
commit
ddc324dd8e
|
|
@ -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;
|
||||||
|
|
|
||||||
|
|
@ -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)));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue