|
@@ -59,7 +59,7 @@
|
|
|
<span>
|
|
<span>
|
|
|
采购数量:
|
|
采购数量:
|
|
|
</span>
|
|
</span>
|
|
|
- <input type="number" class="form-control" :class="{'error': !validObj.amount}" v-model="applyObj.amount" @blur="checkAmount" />
|
|
|
|
|
|
|
+ <input type="text" class="form-control" :class="{'error': !validObj.amount}" v-model="applyObj.amount" @blur="checkAmount" @input="onAmountInput" />
|
|
|
</div>
|
|
</div>
|
|
|
<div class="form-item">
|
|
<div class="form-item">
|
|
|
<span>
|
|
<span>
|
|
@@ -332,6 +332,11 @@
|
|
|
this.getSimilarBrand()
|
|
this.getSimilarBrand()
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
|
|
+ onAmountInput: function () {
|
|
|
|
|
+ if (this.applyObj.amount.length > 8 || !(/^[0-9]*$/).test(this.applyObj.amount)) {
|
|
|
|
|
+ this.applyObj.amount = this.applyObj.amount.substring(0, this.applyObj.amount.length - 1)
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
onSuccess: function (data) {
|
|
onSuccess: function (data) {
|
|
|
window.open('/applyPurchase/' + data.data)
|
|
window.open('/applyPurchase/' + data.data)
|
|
|
},
|
|
},
|