Commit 79522d13 by zhouzy

1

1 parent 1cd64cd8
......@@ -218,43 +218,18 @@ export default {
let externalUserId = userId
this.addGroupParams.externalUserIds.push(userId)
//获取客户信息
groupChat.getDetail({ externalUserId: externalUserId }).then(res => {
groupChat.getDetail({ userId: externalUserId }).then(res => {
console.log(res, 'data')
this.businessCard = res
this.businessCard = res.info
groupChat.getList({ externalUserId: externalUserId }).then(res => {
console.log(res, '444')
this.groupList = res || []
this.showRemark = res && res.length ? false : true
// if (res) {
// for (var a = 0; a < this.groupList.length; a++) {
// if (!this.businessCard.vehicleInfoList) {
// this.groupList[a].groupNames = this.groupList[a].groupName
// } else {
// if (this.groupList[a].groupNameRule == 0) {
// this.groupList[a].groupNames = this.groupList[a].groupName
// }
// if (this.groupList[a].groupNameRule == 1) {
// if (this.businessCard.vehicleInfoList[0].vehicleTrain) {
// this.groupList[a].groupNames = this.businessCard.vehicleInfoList[0].vehicleTrain + this.businessCard.customerName + this.groupList[a].groupName
// } else {
// this.groupList[a].groupNames = this.businessCard.customerName + this.groupList[a].groupName
// }
// }
// if (this.groupList[a].groupNameRule == 2) {
// if (!this.businessCard.vehicleInfoList[0].vehicleTrain) {
// this.businessCard.vehicleInfoList[0].vehicleTrain = ''
// }
// if (!this.businessCard.vehicleInfoList[0].vehicleNo) {
// this.businessCard.vehicleInfoList[0].vehicleTrain = ''
// }
// this.groupList[a].groupNames = this.businessCard.vehicleInfoList[0].vehicleTrain + this.businessCard.vehicleInfoList[0].vehicleNo + this.groupList[a].groupName
// }
// }
// }
// }
if (res) {
for (var a = 0; a < this.groupList.length; a++) {
if (this.businessCard.vehicleInfoList) {
if (!this.businessCard.vehicleInfoList) {
this.groupList[a].groupNames = this.groupList[a].groupName
} else {
if (this.groupList[a].groupNameRule == 0) {
this.groupList[a].groupNames = this.groupList[a].groupName
}
......@@ -274,9 +249,6 @@ export default {
}
this.groupList[a].groupNames = this.businessCard.vehicleInfoList[0].vehicleTrain + this.businessCard.vehicleInfoList[0].vehicleNo + this.groupList[a].groupName
}
} else {
//vehicleInfoList为null
this.groupList[a].groupNames = this.groupList[a].groupName
}
}
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!