优化 处理下单时候多跟单员回显问题

This commit is contained in:
袁锋 2025-12-08 10:19:37 +08:00
parent 4e6d2a621c
commit 698ee9b14e
1 changed files with 9 additions and 1 deletions

View File

@ -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) {