Commit 0bb4bc27 authored by youjie's avatar youjie

no message

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