Commit 80815319 authored by youjie's avatar youjie

no message

parent 427a269c
...@@ -535,7 +535,8 @@ ...@@ -535,7 +535,8 @@
<p class="_tit">{{$t('salesModule.addCustomer')}} <p class="_tit">{{$t('salesModule.addCustomer')}}
<span class="fr"> <span class="fr">
<button class="hollowFixedBtn" type="button" @click="cancelEdit()">{{$t('pub.cancelBtn')}}</button> <button class="hollowFixedBtn" type="button" @click="cancelEdit()">{{$t('pub.cancelBtn')}}</button>
<button type="button" class="normalBtn" v-if='allowAdd' @click="saveVisa()">{{$t('pub.saveBtn')}}</button> <el-button type="button" class="normalBtn" v-if='allowAdd' @click="saveVisa()"
:loading="loadingSave">{{$t('pub.saveBtn')}}</el-button>
</span> </span>
</p> </p>
<el-form class="_info_box clearfix" :model="addMsg" :rules="rules" ref="addMsg" label-width="120px"> <el-form class="_info_box clearfix" :model="addMsg" :rules="rules" ref="addMsg" label-width="120px">
...@@ -893,6 +894,7 @@ ...@@ -893,6 +894,7 @@
}, },
data() { data() {
return { return {
loadingSave: false,
customerId: null, customerId: null,
ShowTeamMember: false, ShowTeamMember: false,
detailObj: null, detailObj: null,
...@@ -1232,7 +1234,8 @@ ...@@ -1232,7 +1234,8 @@
} else { } else {
this.$message.error(res.data.message) this.$message.error(res.data.message)
} }
}, err => {}) }, err => {
})
}, },
uploadImgNew(file) { uploadImgNew(file) {
//上传 //上传
...@@ -1588,6 +1591,7 @@ ...@@ -1588,6 +1591,7 @@
}, err => {}) }, err => {})
}, },
saveVisa() { saveVisa() {
if (!this.addMsg.contactNumber) { if (!this.addMsg.contactNumber) {
this.$message.error('请输入联系电话') this.$message.error('请输入联系电话')
return return
...@@ -1665,6 +1669,7 @@ ...@@ -1665,6 +1669,7 @@
this.$message.error('请输入输入详情地址') this.$message.error('请输入输入详情地址')
return return
} }
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) {
this.addMsg = { this.addMsg = {
...@@ -1694,7 +1699,8 @@ ...@@ -1694,7 +1699,8 @@
} else { } else {
this.$message.error(res.data.message) this.$message.error(res.data.message)
} }
}, err => {}) this.loadingSave = false
}, err => {this.loadingSave = false})
}, },
cancelEdit() { // 取消新增 cancelEdit() { // 取消新增
this.addShow = false this.addShow = false
......
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