|
|
@@ -14,11 +14,13 @@ export function handleForm() {
|
|
|
const v_price = async (rule: RuleObject, value: number) => {
|
|
|
return validateCommon(value, '请输入挂牌价格');
|
|
|
};
|
|
|
+ const v_num = async (rule: RuleObject, value: number) => {
|
|
|
+ return validateCommon(value, '请输入挂牌数量');
|
|
|
+ };
|
|
|
const rules = {
|
|
|
accountid: [{ required: true, message: '请选择交易账户' }],
|
|
|
OrderQty: [
|
|
|
- { required: true, message: '请输入挂牌数量', trigger: 'blur', type: 'number' },
|
|
|
- { message: '挂牌数量不能小于0', min: 1, type: 'number' }
|
|
|
+ { required: true, trigger: 'blur', type: 'number', validator: v_num },
|
|
|
],
|
|
|
FixedPrice: [
|
|
|
{ required: true, trigger: 'blur', type: 'number', validator: v_price },
|