|
@@ -506,13 +506,8 @@ export default {
|
|
|
this.totalDeposit = row.totalDeposit
|
|
|
this.freezingDeposit = row.freezingDeposit
|
|
|
|
|
|
- //更改定金比例
|
|
|
- if (index == 0) {
|
|
|
- this.outerVisibleEdit = true
|
|
|
- this.customerInfo.flag = 0
|
|
|
- }
|
|
|
//增加定金
|
|
|
- else if (index == 1) {
|
|
|
+ if (index == 1) {
|
|
|
this.outerVisibleAdd = true
|
|
|
this.customerInfo.flag = 1
|
|
|
}
|
|
@@ -529,41 +524,9 @@ export default {
|
|
|
this.customerInfo.money = this.money
|
|
|
this.customerInfo.totalDeposit = this.totalDeposit
|
|
|
this.customerInfo.freezingDeposit = this.freezingDeposit
|
|
|
- //修改定金比例
|
|
|
- if (asdf == 0) {
|
|
|
- if (
|
|
|
- this.depositRatio < 0 ||
|
|
|
- this.depositRatio > 100000 ||
|
|
|
- (String(this.depositRatio).indexOf('.') != -1 &&
|
|
|
- String(this.depositRatio).length -
|
|
|
- (String(this.depositRatio).indexOf('.') + 1) >
|
|
|
- 2)
|
|
|
- ) {
|
|
|
- this.$message({
|
|
|
- message: '定金比例输入错误',
|
|
|
- type: 'warning',
|
|
|
- })
|
|
|
- return
|
|
|
- }
|
|
|
- if (this.depositRatio) {
|
|
|
- if (isNaN(this.depositRatio)) {
|
|
|
- this.$message({
|
|
|
- message: '定金比例非数字!',
|
|
|
- type: 'warning',
|
|
|
- })
|
|
|
- return
|
|
|
- }
|
|
|
- }
|
|
|
- if (!this.depositRatio) {
|
|
|
- this.$message({
|
|
|
- message: '定金比例不能为空!',
|
|
|
- type: 'warning',
|
|
|
- })
|
|
|
- return
|
|
|
- }
|
|
|
- }
|
|
|
+
|
|
|
//增加定金
|
|
|
- else if (asdf == 1) {
|
|
|
+ if (asdf == 1) {
|
|
|
if (
|
|
|
this.money < 0 ||
|
|
|
this.money > 100000000 ||
|
|
@@ -640,12 +603,9 @@ export default {
|
|
|
this.outerVisibleReturn = false
|
|
|
this.outerVisibleEdit = false
|
|
|
this.getList()
|
|
|
- //修改定金比例
|
|
|
- if (asdf == 0) {
|
|
|
- this.$message.success('修改定金比例成功')
|
|
|
- }
|
|
|
+
|
|
|
//增加定金
|
|
|
- else if (asdf == 1) {
|
|
|
+ if (asdf == 1) {
|
|
|
this.$message.success('增加成功')
|
|
|
}
|
|
|
//退回定金
|