Commit 80815319 authored by youjie's avatar youjie

no message

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