Commit fa62d66f by zhangxw

规格适用车价放开到最大值199.99

1 parent e4128289
......@@ -1009,11 +1009,11 @@ export default {
if (this.selectTypeSequence > 0) {
let newValue = e.replace(/[^\d.]/g, '')
let oldValue = this[`old${key}`]
// let intergerDigit = this.selectTypeSequence == 3 ? 3 : 2 // 整数位数
// let pointDigit = this.selectTypeSequence == 3 ? 2 : 0 // 小数位数
// let maxValue = this.selectTypeSequence == 3 ? 200 : 99 // 最大值
// this.$set(this, key, limitPrice(newValue, oldValue, intergerDigit, pointDigit, 0, maxValue))
this.$set(this, key, limitPrice(newValue, oldValue, 2, this.selectTypeSequence == 3 ? 2 : 0, 0))
let intergerDigit = this.selectTypeSequence == 3 ? 3 : 2 // 整数位数
let pointDigit = this.selectTypeSequence == 3 ? 2 : 0 // 小数位数
let maxValue = this.selectTypeSequence == 3 ? 199.99 : 99 // 最大值
this.$set(this, key, limitPrice(newValue, oldValue, intergerDigit, pointDigit, 0, maxValue))
// this.$set(this, key, limitPrice(newValue, oldValue, 2, this.selectTypeSequence == 3 ? 2 : 0, 0))
this.$set(this, `old${key}`, this[key])
}
this.$nextTick(() => {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!