pages/customer-page/addDailyPlan/addDailyPlan.vue
@@ -166,7 +166,15 @@ item.text = (item.productNames ? item.productNames : item.productName) + '-' + item.orderCode; item.value = item.id; return item; }) }); if(this.customerNameList.length === 1){ this.deptId = this.customerNameList[0].value; //选择当前 if(this.deptId){ this.deptChange(this.deptId); } } console.log(this.customerNameList,'') } })