|
@@ -268,6 +268,8 @@
|
|
|
|
|
|
},
|
|
|
cancel() {
|
|
|
+ this.customerList = {}
|
|
|
+ this.verifyCode = ""
|
|
|
this.$router.push({
|
|
|
path: 'customerManagement'
|
|
|
})
|
|
@@ -360,13 +362,6 @@
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
- // if (!this.imageUrl2) {
|
|
|
- // this.$message({
|
|
|
- // message: '请上传身份证反面',
|
|
|
- // type: 'warning',
|
|
|
- // })
|
|
|
- // return
|
|
|
- // }
|
|
|
if (!this.imageUrl3) {
|
|
|
this.$message({
|
|
|
message: '请上传银行卡正面',
|
|
@@ -374,13 +369,6 @@
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
- // if (!this.imageUrl4) {
|
|
|
- // this.$message({
|
|
|
- // message: '请上传银行卡反面',
|
|
|
- // type: 'warning',
|
|
|
- // })
|
|
|
- // return
|
|
|
- // }
|
|
|
if (!this.customerList.customerName) {
|
|
|
this.$message({
|
|
|
message: '请输入姓名',
|
|
@@ -409,20 +397,6 @@
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
- // if (!this.customerList.payeeName) {
|
|
|
- // this.$message({
|
|
|
- // message: '请输入收款人姓名',
|
|
|
- // type: 'warning',
|
|
|
- // })
|
|
|
- // return
|
|
|
- // }
|
|
|
- // if (!this.customerList.payeeNumberCard) {
|
|
|
- // this.$message({
|
|
|
- // message: '请输入收款人身份证号',
|
|
|
- // type: 'warning',
|
|
|
- // })
|
|
|
- // return
|
|
|
- // }
|
|
|
if (this.customerList.payeeNumberCard.length != 18) {
|
|
|
this.$message({
|
|
|
message: '收款人身份证号输入有误,请重新输入',
|
|
@@ -444,13 +418,6 @@
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
- // if (!this.customerList.compAddress) {
|
|
|
- // this.$message({
|
|
|
- // message: '请输入联系地址',
|
|
|
- // type: 'warning',
|
|
|
- // })
|
|
|
- // return
|
|
|
- // }
|
|
|
// 验证码校验
|
|
|
GetCustomerCodeJY({
|
|
|
phone: this.customerList.customerPhone,
|
|
@@ -473,13 +440,9 @@
|
|
|
customerAdd(this.customerList)
|
|
|
.toPromise()
|
|
|
.then((response) => {
|
|
|
- // this.customerList.id = response
|
|
|
- // customerIdentity(this.customerList)
|
|
|
- // .toPromise()
|
|
|
- // .then((response) => {
|
|
|
- // this.$message.success('添加成功')
|
|
|
- // this.$router.push({ path: 'customerManagement' })
|
|
|
- // })
|
|
|
+ this.$message.success('添加成功')
|
|
|
+ this.customerList = {}
|
|
|
+ this.verifyCode = ""
|
|
|
this.$router.go(-1)
|
|
|
})
|
|
|
})
|
|
@@ -497,6 +460,8 @@
|
|
|
.toPromise()
|
|
|
.then((response) => {
|
|
|
this.$message.success('修改成功')
|
|
|
+ this.customerList = {}
|
|
|
+ this.verifyCode = ""
|
|
|
this.$router.push({
|
|
|
path: 'customerManagement'
|
|
|
})
|
|
@@ -517,11 +482,7 @@
|
|
|
.then((response) => {
|
|
|
this.customerList = response
|
|
|
this.identity = this.customerList.cardAddressUrl.split(',')
|
|
|
- // this.identityImgUp[0].url = this.identity[0]
|
|
|
- // this.identityImgLow[0].url = this.identity[1]
|
|
|
this.bank = this.customerList.payeeAddressUrl.split(',')
|
|
|
- // this.bankImgUp[0].url = this.bank[0]
|
|
|
- // this.bankImgLow[0].url = this.bank[1]
|
|
|
this.imageUrl1 = this.identity[0]
|
|
|
this.imageUrl2 = this.identity[1]
|
|
|
this.imageUrl3 = this.bank[0]
|