优化 处理下单时候多跟单员回显问题
This commit is contained in:
parent
4e6d2a621c
commit
698ee9b14e
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue