Commit 0a2c7d97 by 前端

车牌号bug修复

1 parent 9f49d5f2
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
.icon-customer-add { width: 28px; height: 20px; background-position: -34px -96px;} .icon-customer-add { width: 28px; height: 20px; background-position: -34px -96px;}
.icon-customer-copy { width: 18px; height: 20px; background-position: -138px -90px;} .icon-customer-copy { width: 18px; height: 20px; background-position: -138px -90px;}
.icon-customer-phone { width: 20px; height: 20px; background-position: -102px -96px;} .icon-customer-phone { width: 20px; height: 20px; background-position: -102px -96px;}
.icon-delete { width: 18px; height: 14px; background-position: -168px 0px;}
.icon-factory { width: 32px; height: 32px; background-position: -42px -54px;} .icon-factory { width: 32px; height: 32px; background-position: -42px -54px;}
.icon-fail { width: 24px; height: 24px; background-position: -96px -42px;} .icon-fail { width: 24px; height: 24px; background-position: -96px -42px;}
.icon-fllow { width: 18px; height: 18px; background-position: -30px -130px;} .icon-fllow { width: 18px; height: 18px; background-position: -30px -130px;}
...@@ -20,5 +21,4 @@ ...@@ -20,5 +21,4 @@
.icon-sendwechat { width: 20px; height: 18px; background-position: 0px -130px;} .icon-sendwechat { width: 20px; height: 18px; background-position: 0px -130px;}
.icon-succeed { width: 24px; height: 24px; background-position: 0px -96px;} .icon-succeed { width: 24px; height: 24px; background-position: 0px -96px;}
.icon-tel { width: 18px; height: 18px; background-position: -86px -130px;} .icon-tel { width: 18px; height: 18px; background-position: -86px -130px;}
.icon-delete { width: 18px; height: 14px; background-position: -168px 0px;}
.icon-tip { width: 16px; height: 16px; background-position: -140px -130px;} .icon-tip { width: 16px; height: 16px; background-position: -140px -130px;}
\ No newline at end of file \ No newline at end of file
...@@ -322,7 +322,6 @@ export default { ...@@ -322,7 +322,6 @@ export default {
vehicleInfo: { vehicleNo } vehicleInfo: { vehicleNo }
} = this.userInfo } = this.userInfo
this.customerId = 0 this.customerId = 0
// console.log(customerPhone, !vehicleNo, '99999')
if (!customerPhone && !vehicleNo && this.customerId == 0) { if (!customerPhone && !vehicleNo && this.customerId == 0) {
this.showToast('请完善客户的联系电话或车牌号,系统将自动关联更多的客户信息') this.showToast('请完善客户的联系电话或车牌号,系统将自动关联更多的客户信息')
return return
...@@ -333,24 +332,26 @@ export default { ...@@ -333,24 +332,26 @@ export default {
this.labelArray[index].isShow = !this.labelArray[index].isShow this.labelArray[index].isShow = !this.labelArray[index].isShow
}, },
getCustomerDetail(userId) { getCustomerDetail(userId) {
this.hideLoading() setTimeout(() => {
detailApi.getCustomerDetail({ userId }).then(res => { this.hideLoading()
if (res) { detailApi.getCustomerDetail({ userId }).then(res => {
this.flag = true if (res) {
let staffNameList = [] this.flag = true
if (res.staffFollows) { let staffNameList = []
res.staffFollows.map(e => { if (res.staffFollows) {
staffNameList.push(e.staffName) res.staffFollows.map(e => {
staffNameList.push(e.staffName)
})
}
if (res.vehicleInfoList && res.vehicleInfoList.length) res.vehicleInfo = res.vehicleInfoList[0]
this.staffNameList = staffNameList.join('、')
Object.keys(res).map(key => {
if (res[key]) this.userInfo[key] = res[key]
}) })
this.initLabel()
} }
if (res.vehicleInfoList && res.vehicleInfoList.length) res.vehicleInfo = res.vehicleInfoList[0] })
this.staffNameList = staffNameList.join('、') }, 3000)
Object.keys(res).map(key => {
if (res[key]) this.userInfo[key] = res[key]
})
this.initLabel()
}
})
}, },
//标签分组 //标签分组
initLabel() { initLabel() {
...@@ -393,7 +394,7 @@ export default { ...@@ -393,7 +394,7 @@ export default {
if (type == 'tel' || type == 'platNumber') { if (type == 'tel' || type == 'platNumber') {
if (info.customerPhone && save_key == 'customerPhone') return if (info.customerPhone && save_key == 'customerPhone') return
if (vehicleInfo.vehicleNo && save_key == 'audi') return if (vehicleInfo.vehicleNo && save_key == 'audi') return
let name = type=='platNumber'?'customer.editPlat':'customer.editDetail' let name = type == 'platNumber' ? 'customer.editPlat' : 'customer.editDetail'
this.$router.push({ this.$router.push({
name, name,
params: { params: {
...@@ -473,7 +474,6 @@ export default { ...@@ -473,7 +474,6 @@ export default {
...obj ...obj
}) })
.then(res => { .then(res => {
console.log(res)
this.showToast('更新成功', () => { this.showToast('更新成功', () => {
this.showLoading() this.showLoading()
this.getCustomerDetail(id) this.getCustomerDetail(id)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!