1
admin
2026-01-07 dd1e68d251b75dab350e8cdab4546c9d4d6cef31
1
2 files modified
119 ■■■■■ changed files
src/views/newshares/dazonglist.vue 71 ●●●●● patch | view | raw | blame | history
src/views/newshares/newshareslist.vue 48 ●●●●● patch | view | raw | blame | history
src/views/newshares/dazonglist.vue
@@ -42,14 +42,12 @@
                    <template>
                        <div>
                            <a-tag
                                :color="record.stockType == 'sh' ? 'purple' : record.stockType == 'sz'  ? 'blue' : 'orange'">
                                {{ record.stockType == 'sz' ? '深股' : record.stockType == 'sh' ? '沪股' : '京股'}}
                                :color="record.stockType == 'sh' ? 'purple' : record.stockType == 'sz' ? 'blue' : 'orange'">
                                {{ record.stockType == 'sz' ? '深股' : record.stockType == 'sh' ? '沪股' : '京股' }}
                            </a-tag>
                        </div>
                    </template>
                </span>
                <template slot="action" slot-scope="text,record">
                    <a slot="action" href="javascript:;" @click="geteditStock(record)">{{ '修改大宗交易' }}</a>
                    <a-divider type="vertical" />
@@ -69,7 +67,7 @@
                                v-decorator="['stockCode', { rules: [{ required: true, message: '请输入股票代码', }] }]" />
                        </a-form-item>
                    </a-col>
                    <a-col :md="12" :lg="12" :sm="12" >
                    <a-col :md="12" :lg="12" :sm="12">
                        <a-form-item label="最小买入数量" :labelCol="labelCol" :wrapperCol="wrapperCol">
                            <a-input placeholder="请输入最小买入数量"
                                v-decorator="['stockNum', { rules: [{ required: true, message: '请输入最小买入数量', }] }]" />
@@ -91,23 +89,32 @@
                    </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="getstartTime"
                               v-decorator="['startTime', { 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-date-picker show-time style="width:100%" @change="getendTime"
                               v-decorator="['endTime', { rules: [{ required: true, message: '请填写结束时间', }] }]"
                               format="YYYY-MM-DD HH:mm:ss">
                           </a-date-picker>
                       </a-form-item>
                   </a-col>
               </a-row>
                    <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="getstartTime"
                                v-decorator="['startTime', { 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-date-picker show-time style="width:100%" @change="getendTime"
                                v-decorator="['endTime', { rules: [{ required: true, message: '请填写结束时间', }] }]"
                                format="YYYY-MM-DD HH:mm:ss">
                            </a-date-picker>
                        </a-form-item>
                    </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-input placeholder="请输入剩余份额百分比"
                                v-decorator="['residualShare', { rules: [{ required: true, message: '请输入剩余份额百分比', }] }]"
                                addon-after="%" />
                        </a-form-item>
                    </a-col>
                </a-row>
            </a-form>
        </a-modal>
    </page-header-wrapper>
@@ -140,6 +147,14 @@
                    title: '折扣',
                    dataIndex: 'discount',
                    align: "center",
                },
                {
                    title: '剩余份额百分比',
                    dataIndex: 'residualShare',
                    align: "center",
                    customRender: (text, row, index) => {
                        return text + '%'
                    }
                },
                {
                    title: '股票类型',
@@ -189,9 +204,9 @@
            },
            datalist: [],
            labelCol: {
                xs: { span: 9 },
                sm: { span: 9 },
                md: { span: 9 }
                xs: { span: 10 },
                sm: { span: 10 },
                md: { span: 10 }
            },
            wrapperCol: {
                xs: { span: 14 },
@@ -201,7 +216,7 @@
            addUserform: this.$form.createForm(this),
            addUserdialog: false,
            addUserDialogloading: false,
            fields: ['stockCode', 'stockNum', 'password', 'startTime','endTime','discount'],
            fields: ['stockCode', 'stockNum', 'password', 'startTime', 'endTime', 'discount', "residualShare"],
            currentdetail: '',
            startTime: '',
            endTime: '',
@@ -245,8 +260,8 @@
            this.addUserdialog = true;
            this.fields.forEach(v => this.addUserform.getFieldDecorator(v))
            this.addUserform.setFieldsValue(pick(val, this.fields))
            this.addUserform.setFieldsValue({ startTime: val.startTime ? moment(val.startTime).format('YYYY-MM-DD HH:mm:ss') : ''})
            this.addUserform.setFieldsValue({ endTime: val.endTime ? moment(val.endTime).format('YYYY-MM-DD HH:mm:ss') : ''})
            this.addUserform.setFieldsValue({ startTime: val.startTime ? moment(val.startTime).format('YYYY-MM-DD HH:mm:ss') : '' })
            this.addUserform.setFieldsValue({ endTime: val.endTime ? moment(val.endTime).format('YYYY-MM-DD HH:mm:ss') : '' })
            this.endTime = moment(val.endTime).format('YYYY-MM-DD HH:mm:ss')
            this.startTime = moment(val.startTime).format('YYYY-MM-DD HH:mm:ss')
        },
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')