diff --git a/src/views/wpm_bx/handover_form.vue b/src/views/wpm_bx/handover_form.vue index f54f73cd..fcde3272 100644 --- a/src/views/wpm_bx/handover_form.vue +++ b/src/views/wpm_bx/handover_form.vue @@ -546,7 +546,7 @@ export default { if(mtype==30){ this.change_batch = true; } - this.form.handoverb = data; + this.form.handoverb = data?data:[]; this.visible = true; return this; }, @@ -603,7 +603,7 @@ export default { countChange(){ let that = this; let totalCount = 0; - if(this.form.handoverb.length>0){ + if(this.form.handoverb&&this.form.handoverb.length&&this.form.handoverb.length>0){ this.form.handoverb.forEach(item=>{ totalCount += Number(item.count); })