|
|
@@ -1,5 +1,6 @@
|
|
|
import { getAccountTypeList } from "@/services/bus/account";
|
|
|
import { QueryPermancePlanTmpRsp } from "@/services/go/wrtrade/interface";
|
|
|
+import { RuleObject } from "ant-design-vue/lib/form/interface";
|
|
|
import moment from "moment";
|
|
|
import { computed, onBeforeUnmount, reactive, ref, UnwrapRef } from "vue";
|
|
|
import { BlocsListingForm } from './interface';
|
|
|
@@ -137,11 +138,11 @@ const handleForm = () => {
|
|
|
permanceTempName: '',
|
|
|
permaceTempId: 0,
|
|
|
})
|
|
|
- function validateMargin(value: any, errInfo: string) {
|
|
|
+ function validateMargin(rule: RuleObject, value: number) {
|
|
|
if (value) {
|
|
|
return Promise.resolve();
|
|
|
} else {
|
|
|
- return Promise.reject('履约保证金比例大于0');
|
|
|
+ return Promise.reject('请输入履约保证金');
|
|
|
}
|
|
|
}
|
|
|
const formRef = ref();
|
|
|
@@ -156,8 +157,8 @@ const handleForm = () => {
|
|
|
{ min: 1, message: '起摘数量不能小于1', type: 'number' }
|
|
|
],
|
|
|
margin: [
|
|
|
- { required: true, message: '请输入履约保证金', trigger: 'blur', type: 'number' },
|
|
|
- { validator: validateMargin, trigger: 'blur', type: 'number' }
|
|
|
+ // { required: true, message: '请输入履约保证金', trigger: 'blur', type: 'number' },
|
|
|
+ { required: true, validator: validateMargin, trigger: 'blur', type: 'number' }
|
|
|
],
|
|
|
accountid: [{ required: true, message: '请输入交易账号' }],
|
|
|
vidaliteTime: [{ required: true, message: '请选择挂牌有效期' }],
|