Commit 4e541f5e by zhangquan

金额限制

1 parent 0add5991
...@@ -370,9 +370,9 @@ export default { ...@@ -370,9 +370,9 @@ export default {
if (Number(e.target.value) < minPrice) { if (Number(e.target.value) < minPrice) {
this.$set(this.itemsList[id], type, 1) this.$set(this.itemsList[id], type, 1)
} }
let maxPrice = 200000 let maxPrice = 2000000
if(type == 'lossAssessmentAmount') { if(type == 'applyAmount' || type == 'approveAmount') {
maxPrice = 2000000 maxPrice = 200000
} }
if (Number(e.target.value) > maxPrice) { if (Number(e.target.value) > maxPrice) {
this.$set(this.itemsList[id], type, maxPrice) this.$set(this.itemsList[id], type, maxPrice)
......
...@@ -378,9 +378,9 @@ export default { ...@@ -378,9 +378,9 @@ export default {
if (Number(e.target.value) < minPrice) { if (Number(e.target.value) < minPrice) {
this.$set(this.serviceItemsList[id], key, 1) this.$set(this.serviceItemsList[id], key, 1)
} }
let maxPrice = 200000 let maxPrice = 2000000
if(key == 'lossAssessmentAmount') { if(key == 'approveAmount' || key == 'customerApplyAmount') {
maxPrice = 2000000 maxPrice = 200000
} }
if (Number(e.target.value) > maxPrice) { if (Number(e.target.value) > maxPrice) {
this.$set(this.serviceItemsList[id], key, maxPrice) this.$set(this.serviceItemsList[id], key, maxPrice)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!