|
@@ -1,8 +1,10 @@
|
|
|
import { BuyOrSell } from "@/common/constants/enumCommon";
|
|
import { BuyOrSell } from "@/common/constants/enumCommon";
|
|
|
import { queryResultLoadingAndInfo } from "@/common/methods/request/resultInfo";
|
|
import { queryResultLoadingAndInfo } from "@/common/methods/request/resultInfo";
|
|
|
|
|
+import { validateCommon } from "@/common/setup/validate";
|
|
|
import { queryHoldLB } from "@/services/go/wrtrade";
|
|
import { queryHoldLB } from "@/services/go/wrtrade";
|
|
|
import { QueryOrderQuoteMyqQsp, WrHoldLB } from "@/services/go/wrtrade/interface";
|
|
import { QueryOrderQuoteMyqQsp, WrHoldLB } from "@/services/go/wrtrade/interface";
|
|
|
import { Wrhold } from "@/views/market/spot_trade/spot_trade_order_transaction/components/delisting/interface";
|
|
import { Wrhold } from "@/views/market/spot_trade/spot_trade_order_transaction/components/delisting/interface";
|
|
|
|
|
+import { RuleObject } from "ant-design-vue/lib/form/interface";
|
|
|
import { reactive, Ref, ref, UnwrapRef } from "vue";
|
|
import { reactive, Ref, ref, UnwrapRef } from "vue";
|
|
|
import { ListingForm } from "./interface";
|
|
import { ListingForm } from "./interface";
|
|
|
|
|
|
|
@@ -18,12 +20,15 @@ export function handleForm() {
|
|
|
case: '',
|
|
case: '',
|
|
|
caseId: 0
|
|
caseId: 0
|
|
|
})
|
|
})
|
|
|
|
|
+ const v_ContractType = async (rule: RuleObject, value: number) => {
|
|
|
|
|
+ return validateCommon(value, '请输入摘牌数量');
|
|
|
|
|
+ };
|
|
|
const rules = {
|
|
const rules = {
|
|
|
accountid: [{ required: true, message: '请选择交易账户' }],
|
|
accountid: [{ required: true, message: '请选择交易账户' }],
|
|
|
LadingBillId: [{ required: true, message: '请选择现货仓单' }],
|
|
LadingBillId: [{ required: true, message: '请选择现货仓单' }],
|
|
|
caseId: [{ required: true, message: '请选择融资方案' }],
|
|
caseId: [{ required: true, message: '请选择融资方案' }],
|
|
|
num: [{ required: true, message: '请输入摘牌数量', trigger: 'blur', type: 'number', },
|
|
num: [{ required: true, message: '请输入摘牌数量', trigger: 'blur', type: 'number', },
|
|
|
- { min: 1, message: '请输入摘牌数量' }],
|
|
|
|
|
|
|
+ { required: true, validator: v_ContractType }],
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
return { rules, formState, formRef }
|
|
return { rules, formState, formRef }
|