Commit 0bb4bc27 authored by youjie's avatar youjie

no message

parent ce94314f
...@@ -1453,10 +1453,9 @@ ...@@ -1453,10 +1453,9 @@
} }
}) })
let AreaName = sheng + shi + qu let AreaName = sheng + shi + qu
if(this.updateMsg.Address){ if(this.updateMsg.Address==''||!this.updateMsg.Address){
this.updateMsg.Address = AreaName + ',' + this.updateMsg.Address
}else{
this.updateMsg.Address = AreaName this.updateMsg.Address = AreaName
// this.updateMsg.Address = AreaName + ',' + this.updateMsg.Address
} }
if (!this.updateMsg.Address) { if (!this.updateMsg.Address) {
...@@ -1878,10 +1877,7 @@ ...@@ -1878,10 +1877,7 @@
if (this.addMsg.District == '') { if (this.addMsg.District == '') {
this.addMsg.District = 0 this.addMsg.District = 0
} }
this.addMsgS.customerInfo = {
...this.addMsg,
SigningType: this.addMsg.SigningType ? 1 : 0
}
// if (this.BusinessCardPhotos) { // if (this.BusinessCardPhotos) {
// this.addMsg.BusinessCardPhotos = [] // this.addMsg.BusinessCardPhotos = []
// this.addMsg.BusinessCardPhotos.push(this.BusinessCardPhotos) // this.addMsg.BusinessCardPhotos.push(this.BusinessCardPhotos)
...@@ -1919,15 +1915,18 @@ ...@@ -1919,15 +1915,18 @@
} }
}) })
let AreaName = sheng + shi + qu let AreaName = sheng + shi + qu
if(this.addMsg.address){ if(this.addMsg.address==''||!this.addMsg.address){
this.addMsg.address = AreaName + ',' + this.addMsg.address
}else{
this.addMsg.address = AreaName this.addMsg.address = AreaName
// this.addMsg.address = AreaName + ',' + this.addMsg.address
} }
if (!this.addMsg.address) { if (!this.addMsg.address) {
this.$message.error('请输入输入详情地址') this.$message.error('请输入输入详情地址')
return return
} }
this.addMsgS.customerInfo = {
...this.addMsg,
SigningType: this.addMsg.SigningType ? 1 : 0
}
this.loadingSave = true this.loadingSave = true
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) {
...@@ -1965,17 +1964,34 @@ ...@@ -1965,17 +1964,34 @@
cancelEdit() { // 取消新增 cancelEdit() { // 取消新增
this.addShow = false this.addShow = false
this.addMsg = { this.addMsg = {
CustomerId: 0,
customerName: '', customerName: '',
contact: '', contact: '',
contactNumber: '', contactNumber: '',
address: '', address: '',
remark: '',
brandIds: [], brandIds: [],
remark: '',
Duty: '',
Premises: '',
CustomerId: '0',
BusinessCardPhotos: [],
HousePhotos: [],
Images: [],
CustomerSourceType: '',
CustomerSource: '',
Country: '2',
Province: '',
City: '',
District: '',
UniqueCode: '',
LINEID: '',
Email: '',
PlatformUserNameList: []
} }
this.BusinessCardPhotos = '', this.BusinessCardPhotos = '',
this.HousePhotos = '', this.HousePhotos = '',
this.Images = '', this.Images = '',
this.addMsgS.customerVisit.expectVisitDateTime = '' this.addMsgS.customerVisit.expectVisitDateTime = ''
this.resetForm('addMsg') this.resetForm('addMsg')
}, },
resetForm(formName) { // 重置表单 resetForm(formName) { // 重置表单
......
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