|
@@ -23,12 +23,12 @@
|
|
|
<el-input v-model.number="coupon.publishCount" placeholder="只能输入正整数" class="input-width"></el-input>
|
|
|
</el-form-item> -->
|
|
|
<el-form-item label="面额:" prop="amount">
|
|
|
- <el-input v-model.number="coupon.amount" placeholder="只能是数值,限2位小数" class="input-width">
|
|
|
+ <el-input v-model="coupon.amount" placeholder="只能是数值,限2位小数" class="input-width">
|
|
|
<template slot="append">元</template>
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="售价:" prop="sellingPrice">
|
|
|
- <el-input v-model.number="coupon.sellingPrice" placeholder="只能是数值,限2位小数" class="input-width">
|
|
|
+ <el-input v-model="coupon.sellingPrice" placeholder="只能是数值,限2位小数" class="input-width">
|
|
|
<template slot="append">元</template>
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
@@ -111,7 +111,10 @@
|
|
|
// {type: 'number',required: true, message: '只能输入正整数', trigger: 'blur'}
|
|
|
// ],
|
|
|
amount: [
|
|
|
- {type: 'number',required: true,message: '面值只能是数值,0.01-10000,限2位小数',trigger: 'blur'}
|
|
|
+ {type: 'string',required: true,message: '面值只能是数值,0.01-10000,限2位小数',trigger: 'blur',pattern: "^\\d+(\\.\\d{1,2})?$" }
|
|
|
+ ],
|
|
|
+ sellingPrice: [
|
|
|
+ {type: 'string',required: true,message: '面值只能是数值,0.01-10000,限2位小数',trigger: 'blur',pattern: "^\\d+(\\.\\d{1,2})?$" }
|
|
|
],
|
|
|
threshold: [
|
|
|
{type: 'number',required: true,message: '只能输入正整数',trigger: 'blur'}
|