|
|
@@ -21,13 +21,13 @@
|
|
|
@visible-change="visibleChange" @calendar-change="calendarChange" :rules="formRules.Xydqrq" />
|
|
|
</el-form-item>
|
|
|
<el-form-item label="一次扣费限额" prop="Yckfxe">
|
|
|
- <el-input type="number" name="Yckfxe" placeholder="请输入一次扣费限额" v-model="Yckfxe" :rules="formRules.Yckfxe" />
|
|
|
+ <el-input-number :precision="2" :step="0.01" name="Yckfxe" placeholder="请输入一次扣费限额" v-model="Yckfxe" :rules="formRules.Yckfxe" />
|
|
|
</el-form-item>
|
|
|
<el-form-item label="扣费周期内扣款限额" prop="Kkzqnkfxe">
|
|
|
- <el-input type="number" name="Kkzqnkfxe" placeholder="请输入扣费周期内扣款限额" v-model="Kkzqnkfxe" :rules="formRules.Kkzqnkfxe" />
|
|
|
+ <el-input-number :precision="2" :step="0.01" name="Kkzqnkfxe" placeholder="请输入扣费周期内扣款限额" v-model="Kkzqnkfxe" :rules="formRules.Kkzqnkfxe" />
|
|
|
</el-form-item>
|
|
|
<el-form-item label="扣费周期内限制笔数" prop="Kkzqnxzbs">
|
|
|
- <el-input type="number" name="Kkzqnxzbs" placeholder="请输入扣费周期内限制笔数" v-model="formData.Kkzqnxzbs" :rules="formRules.Kkzqnxzbs" />
|
|
|
+ <el-input-number :precision="0" :step="1" name="Kkzqnxzbs" placeholder="请输入扣费周期内限制笔数" v-model="Kkzqnxzbs" :rules="formRules.Kkzqnxzbs" />
|
|
|
</el-form-item>
|
|
|
<el-form-item label="手机号码" prop="Lxdh">
|
|
|
<el-input type="number" name="Lxdh" maxlength="50" placeholder="请输入手机号码" v-model="formData.Lxdh" :rules="formRules.Lxdh" />
|
|
|
@@ -64,8 +64,9 @@ const show = ref(true)
|
|
|
const refresh = ref(false)
|
|
|
const formRef = ref<FormInstance>()
|
|
|
const Kksjdw = ref('')
|
|
|
-const Kkzqnkfxe = ref('0.00')
|
|
|
-const Yckfxe = ref('0.00')
|
|
|
+const Kkzqnkfxe = ref(0.00)
|
|
|
+const Yckfxe = ref(0.00)
|
|
|
+const Kkzqnxzbs = ref(0)
|
|
|
|
|
|
const formRules: FormRules = {
|
|
|
Yckfxe: [{
|
|
|
@@ -101,7 +102,7 @@ const formRules: FormRules = {
|
|
|
Kkzqnxzbs: [{
|
|
|
message: '请输入扣费周期内限制笔数',
|
|
|
validator: () => {
|
|
|
- return !!formData.Kkzqnxzbs
|
|
|
+ return !!Kkzqnxzbs.value
|
|
|
}
|
|
|
}],
|
|
|
Lxdh: [{
|
|
|
@@ -142,6 +143,7 @@ const formSubmit = () => {
|
|
|
formData.Kksjdw = Kksjdw.value.toString()
|
|
|
formData.Yckfxe = formatDecimal(Yckfxe.value)
|
|
|
formData.Kkzqnkfxe = formatDecimal(Kkzqnkfxe.value)
|
|
|
+ formData.Kkzqnxzbs = formatDecimal(Kkzqnxzbs.value, 0)
|
|
|
|
|
|
onSubmit().then(() => {
|
|
|
ElMessageBox.prompt('请输入验证码', '验证码', {
|