Commit ecba2031 authored by youjie's avatar youjie

no message

parent a19c156c
...@@ -991,6 +991,34 @@ ...@@ -991,6 +991,34 @@
this.getMyCustomerInfo(); this.getMyCustomerInfo();
}, },
saveUpdate() { saveUpdate() {
if(!this.updateMsg.contactNumber){
this.$message.error('请输入联系电话')
return
}
if(!this.updateMsg.customerName){
this.$message.error('请输入客户名称')
return
}
if(!this.updateMsg.contact){
this.$message.error('请输入联系人')
return
}
if(!this.updateMsg.address){
this.$message.error('请输入输入详情地址')
return
}
if(!this.updateMsg.UniqueCode){
this.$message.error('请输入统一编码')
return
}
if(!this.updateMsg.LINEID){
this.$message.error('请输入LINE ID')
return
}
if(!this.updateMsg.Email){
this.$message.error('请输入Email')
return
}
if (this.updateMsg.District == '') { if (this.updateMsg.District == '') {
this.updateMsg.District = 0 this.updateMsg.District = 0
} }
...@@ -1032,18 +1060,7 @@ ...@@ -1032,18 +1060,7 @@
}) })
let AreaName = sheng + shi + qu let AreaName = sheng + shi + qu
this.updateMsg.Address = AreaName + ',' + this.updateMsg.Address this.updateMsg.Address = AreaName + ',' + this.updateMsg.Address
if(!this.updateMsg.UniqueCode){
this.$message.error('请输入统一编码')
return
}
if(!this.updateMsg.LINEID){
this.$message.error('请输入LINE ID')
return
}
if(!this.updateMsg.Email){
this.$message.error('请输入Email')
return
}
this.apipost('app_customer_UpdateCustomerAddress', this.updateMsg, res => { this.apipost('app_customer_UpdateCustomerAddress', this.updateMsg, res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.addLayer1 = false; this.addLayer1 = false;
...@@ -1115,6 +1132,9 @@ ...@@ -1115,6 +1132,9 @@
if (x.housePhotos && x.housePhotos.length > 0) { if (x.housePhotos && x.housePhotos.length > 0) {
this.HousePhotos = x.housePhotos[0] this.HousePhotos = x.housePhotos[0]
} }
// this.updateMsg.UniqueCode = x.UniqueCode
// this.updateMsg.LINEID = x.Email
// this.updateMsg.Email = x.Email
} else {} } else {}
}, err => {}) }, err => {})
}, },
...@@ -1404,6 +1424,34 @@ ...@@ -1404,6 +1424,34 @@
}, err => {}) }, err => {})
}, },
saveVisa() { // 保存 saveVisa() { // 保存
if(!this.addMsg.contactNumber){
this.$message.error('请输入联系电话')
return
}
if(!this.addMsg.customerName){
this.$message.error('请输入客户名称')
return
}
if(!this.addMsg.contact){
this.$message.error('请输入联系人')
return
}
if(!this.addMsg.address){
this.$message.error('请输入输入详情地址')
return
}
if(!this.addMsg.UniqueCode){
this.$message.error('请输入统一编码')
return
}
if(!this.addMsg.LINEID){
this.$message.error('请输入LINE ID')
return
}
if(!this.addMsg.Email){
this.$message.error('请输入Email')
return
}
if (this.addMsg.District == '') { if (this.addMsg.District == '') {
this.addMsg.District = 0 this.addMsg.District = 0
} }
...@@ -1446,30 +1494,7 @@ ...@@ -1446,30 +1494,7 @@
}) })
let AreaName = sheng + shi + qu let AreaName = sheng + shi + qu
this.addMsg.address = AreaName + ',' + this.addMsg.address this.addMsg.address = AreaName + ',' + this.addMsg.address
if(!this.addMsg.contactNumber){
this.$message.error('请输入联系电话')
return
}
if(!this.addMsg.customerName){
this.$message.error('请输入客户名称')
return
}
if(!this.addMsg.contact){
this.$message.error('请输入联系人')
return
}
if(!this.addMsg.UniqueCode){
this.$message.error('请输入统一编码')
return
}
if(!this.addMsg.LINEID){
this.$message.error('请输入LINE ID')
return
}
if(!this.addMsg.Email){
this.$message.error('请输入Email')
return
}
this.apipost('app_add_new_visit_customer', this.addMsgS, res => { this.apipost('app_add_new_visit_customer', this.addMsgS, res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.addMsg = { this.addMsg = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment