From dd1e68d251b75dab350e8cdab4546c9d4d6cef31 Mon Sep 17 00:00:00 2001
From: admin <344137771@qq.com>
Date: Wed, 07 Jan 2026 14:06:05 +0800
Subject: [PATCH] 1
---
src/views/newshares/newshareslist.vue | 48 ++++++++++++++++++++++++++++++++----------------
1 files changed, 32 insertions(+), 16 deletions(-)
diff --git a/src/views/newshares/newshareslist.vue b/src/views/newshares/newshareslist.vue
index 304ab45..207f095 100644
--- a/src/views/newshares/newshareslist.vue
+++ b/src/views/newshares/newshareslist.vue
@@ -74,7 +74,7 @@
<div>
<a-tag
:color="(record.stockType == '沪' || record.stockType == '科') ? 'purple' : (record.stockType == '深' || record.stockType == '创') ? 'blue' : record.stockType == '北' ? 'orange' : ''">
- {{ record.stockType == '科' ? '沪' : record.stockType == '创' ? '深' : record.stockType}}
+ {{ record.stockType == '科' ? '沪' : record.stockType == '创' ? '深' : record.stockType }}
</a-tag>
</div>
</template>
@@ -88,7 +88,7 @@
</div>
</template>
</span>
-
+
<template slot="action" slot-scope="text,record">
<a slot="action" href="javascript:;" @click="geteditStock(record)">{{ '修改新股' }}</a>
<a-divider type="vertical" />
@@ -152,7 +152,7 @@
</a-col>
</a-row>
<a-row :gutter="48">
-
+
<a-col :md="12" :lg="12" :sm="12">
<a-form-item label="申购时间" :labelCol="labelCol" :wrapperCol="wrapperCol">
<a-date-picker show-time style="width:100%" @change="getsubscribeTime"
@@ -177,6 +177,14 @@
v-decorator="['listDate', { rules: [{ required: true, message: '请填写上市时间', }] }]"
format="YYYY-MM-DD HH:mm:ss">
</a-date-picker>
+ </a-form-item>
+ </a-col>
+
+ <a-col :md="12" :lg="12" :sm="12">
+ <a-form-item label="剩余份额百分比" :labelCol="labelCol" :wrapperCol="wrapperCol">
+ <a-input placeholder="请输入剩余份额百分比"
+ v-decorator="['residualShare', { rules: [{ required: true, message: '请输入剩余份额百分比', }] }]"
+ addon-after="%" />
</a-form-item>
</a-col>
</a-row>
@@ -205,6 +213,14 @@
align: "center",
customRender: (text, row, index) => {
return text + '/万股'
+ }
+ },
+ {
+ title: '最大购买数量',
+ dataIndex: 'residualShare',
+ align: "center",
+ customRender: (text, row, index) => {
+ return (text || "--") + '%'
}
},
@@ -287,20 +303,20 @@
},
datalist: [],
labelCol: {
- xs: { span: 8 },
- sm: { span: 8 },
- md: { span: 8 }
+ xs: { span: 10 },
+ sm: { span: 10 },
+ md: { span: 10 }
},
wrapperCol: {
- xs: { span: 14 },
- sm: { span: 14 },
- md: { span: 14 },
+ xs: { span: 12 },
+ sm: { span: 12 },
+ md: { span: 12 },
},
addUserform: this.$form.createForm(this),
addUserdialog: false,
addUserDialogloading: false,
- fields: ['name', 'code', 'price', 'orderNumber', 'zt', 'subscribeTime', 'subscriptionTime', 'stockType', 'code','listDate'],
+ fields: ['name', 'code', 'price', 'orderNumber', 'zt', 'subscribeTime', 'subscriptionTime', 'stockType', 'code', 'listDate', "residualShare"],
currentdetail: '',
subscribeTime: '',
subscriptionTime: '',
@@ -311,10 +327,10 @@
this.getlist()
},
methods: {
- getleixing(val){
- if(moment(val).format('YYYY-MM-DD') == moment().format('YYYY-MM-DD')){
+ getleixing(val) {
+ if (moment(val).format('YYYY-MM-DD') == moment().format('YYYY-MM-DD')) {
return '新股抢筹'
- }else{
+ } else {
return '新股申购'
}
},
@@ -356,9 +372,9 @@
this.fields.forEach(v => this.addUserform.getFieldDecorator(v))
this.addUserform.setFieldsValue(pick(val, this.fields))
// this.addUserform.setFieldsValue({ stockType: val.stockType.toFixed(2) })
- this.addUserform.setFieldsValue({ subscriptionTime: val.subscriptionTime ? moment(val.subscriptionTime).format('YYYY-MM-DD HH:mm:ss') : ''})
- this.addUserform.setFieldsValue({ subscribeTime: val.subscribeTime ? moment(val.subscribeTime).format('YYYY-MM-DD HH:mm:ss') : ''})
- this.addUserform.setFieldsValue({ listDate: val.listDate ? moment(val.listDate).format('YYYY-MM-DD HH:mm:ss') : ''})
+ this.addUserform.setFieldsValue({ subscriptionTime: val.subscriptionTime ? moment(val.subscriptionTime).format('YYYY-MM-DD HH:mm:ss') : '' })
+ this.addUserform.setFieldsValue({ subscribeTime: val.subscribeTime ? moment(val.subscribeTime).format('YYYY-MM-DD HH:mm:ss') : '' })
+ this.addUserform.setFieldsValue({ listDate: val.listDate ? moment(val.listDate).format('YYYY-MM-DD HH:mm:ss') : '' })
this.subscribeTime = moment(val.subscribeTime).format('YYYY-MM-DD HH:mm:ss')
this.subscriptionTime = moment(val.subscriptionTime).format('YYYY-MM-DD HH:mm:ss')
this.listDate = moment(val.listDate).format('YYYY-MM-DD HH:mm:ss')
--
Gitblit v1.9.3