|
|
@@ -61,8 +61,8 @@
|
|
|
</template>
|
|
|
<div class="content-line">
|
|
|
<div class="form-item form-left">
|
|
|
- <span><i>*</i>交期:</span>
|
|
|
- <input type="number" class="form-control" placeholder="天数" @input="onLeadtimeInput" @blur="onLeadtimeBlur" v-model="sayPriceObj.leadtime">
|
|
|
+ <span><i>*</i>交期(天):</span>
|
|
|
+ <input type="number" class="form-control" placeholder="最长交期" @input="onLeadtimeInput" @blur="onLeadtimeBlur" v-model="sayPriceObj.leadtime">
|
|
|
</div>
|
|
|
<div class="form-item form-right">
|
|
|
<span><i>*</i>税率:</span>
|
|
|
@@ -244,7 +244,7 @@
|
|
|
}
|
|
|
},
|
|
|
onLeadtimeInput: function () {
|
|
|
- this.sayPriceObj.leadtime = this.sayPriceObj.leadtime.replace(/[^\-?\d.]/g, '')
|
|
|
+ this.sayPriceObj.leadtime = this.sayPriceObj.leadtime.replace(/[^\d]/g, '')
|
|
|
if (this.sayPriceObj.leadtime.length > 3) {
|
|
|
this.sayPriceObj.leadtime = this.sayPriceObj.leadtime.substring(0, 3)
|
|
|
}
|
|
|
@@ -258,7 +258,7 @@
|
|
|
}
|
|
|
},
|
|
|
onTaxrateInput () {
|
|
|
- this.sayPriceObj.taxrate = this.sayPriceObj.taxrate.replace(/[^\-?\d.]/g, '')
|
|
|
+ this.sayPriceObj.taxrate = this.sayPriceObj.taxrate.replace(/[^\d]/g, '')
|
|
|
if (this.sayPriceObj.taxrate.length > 2) {
|
|
|
this.sayPriceObj.taxrate = this.sayPriceObj.taxrate.substring(0, 2)
|
|
|
}
|