|
@@ -375,36 +375,36 @@ export default {
|
|
|
},
|
|
|
//修改定金比例
|
|
|
varietyClick(row) {
|
|
|
- // 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
|
|
|
- // }
|
|
|
+ if (
|
|
|
+ row.depositRatio < 0 ||
|
|
|
+ row.depositRatio > 100000 ||
|
|
|
+ (String(row.depositRatio).indexOf('.') != -1 &&
|
|
|
+ String(row.depositRatio).length -
|
|
|
+ (String(row.depositRatio).indexOf('.') + 1) >
|
|
|
+ 2)
|
|
|
+ ) {
|
|
|
+ this.$message({
|
|
|
+ message: '定金比例输入错误',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (row.depositRatio) {
|
|
|
+ if (isNaN(row.depositRatio)) {
|
|
|
+ this.$message({
|
|
|
+ message: '定金比例非数字!',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (!row.depositRatio) {
|
|
|
+ this.$message({
|
|
|
+ message: '定金比例不能为空!',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
this.$confirm(`确定要修改定金比例?`, {
|
|
|
confirmButtonText: '确定',
|
|
|
cancelButtonText: '取消',
|
|
@@ -420,7 +420,7 @@ export default {
|
|
|
.then((response) => {
|
|
|
this.$notify.success({
|
|
|
title: '成功',
|
|
|
- message: '状态修改成功',
|
|
|
+ message: '修改成功',
|
|
|
})
|
|
|
this.getList()
|
|
|
})
|
|
@@ -831,7 +831,7 @@ export default {
|
|
|
}
|
|
|
/deep/.yuan {
|
|
|
width: 10px;
|
|
|
- margin-left: 383px;
|
|
|
+ margin-left: 150%;
|
|
|
margin-top: -32px;
|
|
|
}
|
|
|
/deep/.addpricejine {
|