diff --git a/hangtag-ui/hangtag-ui-front/src/views/oms/order/createorder/index.vue b/hangtag-ui/hangtag-ui-front/src/views/oms/order/createorder/index.vue index b14d8ee..eeedb78 100644 --- a/hangtag-ui/hangtag-ui-front/src/views/oms/order/createorder/index.vue +++ b/hangtag-ui/hangtag-ui-front/src/views/oms/order/createorder/index.vue @@ -861,7 +861,10 @@ watch(() => formData.value.brandId, async (val) => { if (val) { const data = await SaleOrderApi.getFollowerUser(val) that.followerUserList = data; - if (that.followerUserList.length > 0 && !formData.value.orderFollowerUser) { + if(formData.value.orderFollowerUser){ + that.editOrderFollowerUsers = `${formData.value.orderFollowerUser}`.split(";") + changeSelectUser() + }else if (that.followerUserList.length > 0 && !formData.value.orderFollowerUser) { that.editOrderFollowerUsers = [`${that.followerUserList[0].id}`] changeSelectUser() }else if(that.followerUserList.length == 0 ){ @@ -912,6 +915,11 @@ onMounted(async () => { formData.value.deliveryAddress = that.addressList[0].address; that.addressId = that.addressList[0].id; } + // 处理回显问题 + if(formData.value.orderFollowerUser){ + that.editOrderFollowerUsers = `${formData.value.orderFollowerUser}`.split(";") + changeSelectUser() + } } // 获取订单信息 if (queryParams.id) {