|
|
@@ -1,7 +1,7 @@
|
|
|
<!-- 交易市场-预售转让-预售中签-详情-我要认购 -->
|
|
|
<template>
|
|
|
- <app-drawer title="我要认购" v-model:show="show" :width="400" :loading="loading" :refresh="refresh">
|
|
|
- <el-form ref="formRef" class="el-form--vertical" label-width="100px" :model="formData" :rules="formRules">
|
|
|
+ <app-drawer title="我要认购" v-model:show="show" :width="800" :loading="loading" :refresh="refresh">
|
|
|
+ <el-form ref="formRef" class="el-form--horizontal" label-width="100px" :model="formData" :rules="formRules">
|
|
|
<el-form-item label="发行价">
|
|
|
<span>{{ selectedRow.refprice }}</span>
|
|
|
</el-form-item>
|
|
|
@@ -10,7 +10,7 @@
|
|
|
v-model="formData.OrderQty" />
|
|
|
</el-form-item>
|
|
|
<el-form-item label="最大申购量">
|
|
|
- <span>{{ selectedRow.buymaxqty }}</span>
|
|
|
+ <span>{{ selectedRow.maxbuyqty }}</span>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="预售定金">
|
|
|
<span>{{ deposit }}</span>
|
|
|
@@ -68,11 +68,11 @@ const formRules: FormRules = {
|
|
|
required: true,
|
|
|
validator: (rule, value, callback) => {
|
|
|
if (value) {
|
|
|
- const buymaxqty = props.selectedRow.buymaxqty
|
|
|
- if (value <= buymaxqty) {
|
|
|
+ const maxbuyqty = props.selectedRow.maxbuyqty
|
|
|
+ if (value <= maxbuyqty) {
|
|
|
callback()
|
|
|
} else {
|
|
|
- callback(new Error('认购数量不能大于' + buymaxqty))
|
|
|
+ callback(new Error('认购数量不能大于' + maxbuyqty))
|
|
|
}
|
|
|
} else {
|
|
|
callback(new Error('请输入认购数量'))
|