li.shaoyi 2 gadi atpakaļ
vecāks
revīzija
acf96b0f47

+ 1 - 0
src/packages/mobile/assets/themes/global/global.less

@@ -208,6 +208,7 @@
                 span {
                     &:first-child {
                         color: #999;
+                        white-space: nowrap;
                         padding-right: .24rem;
                     }
                 }

+ 1 - 1
src/packages/mobile/components/modules/echarts-kline/index.vue

@@ -8,7 +8,7 @@
         </template>
         <template v-else>
             <div class="app-echats-kline__container">
-                <ul class="legend" v-if="false">
+                <ul class="legend">
                     <li class="legend-item">开: {{ selectedItem.open }}</li>
                     <li class="legend-item">收: {{ selectedItem.close }}</li>
                     <li class="legend-item">高: {{ selectedItem.highest }}</li>

+ 14 - 18
src/packages/mobile/components/modules/quote/index.vue

@@ -18,40 +18,36 @@
         <div class="app-quote__info" v-if="quote">
             <ul>
                 <li>
-                    <span>价</span>
-                    <span :class="quote.askColor">{{ quote.ask }}</span>
+                    <span>价</span>
+                    <span :class="quote.bidColor">{{ handleNumberValue(quote.bid) }}</span>
                 </li>
                 <li>
                     <span>开盘</span>
-                    <span>{{ quote.opened }}</span>
+                    <span>{{ handleNumberValue(quote.opened) }}</span>
                 </li>
                 <li>
-                    <span>买价</span>
-                    <span :class="quote.bidColor">{{ quote.bid }}</span>
+                    <span>最高</span>
+                    <span :class="quote.highestColor">{{ handleNumberValue(quote.highest) }}</span>
                 </li>
                 <li>
-                    <span>价</span>
-                    <span>{{ quote.averageprice }}</span>
+                    <span>价</span>
+                    <span :class="quote.askColor">{{ handleNumberValue(quote.ask) }}</span>
                 </li>
                 <li>
                     <span>昨结</span>
-                    <span>{{ quote.presettle }}</span>
+                    <span>{{ handleNumberValue(quote.presettle) }}</span>
                 </li>
                 <li>
-                    <span>最高</span>
-                    <span :class="quote.highestColor">{{ quote.highest }}</span>
-                </li>
-                <li>
-                    <span>结算</span>
-                    <span>{{ quote.settle }}</span>
+                    <span>最低</span>
+                    <span :class="quote.lowestColor">{{ handleNumberValue(quote.lowest) }}</span>
                 </li>
                 <li>
-                    <span>昨收</span>
-                    <span>{{ quote.preclose }}</span>
+                    <span>涨停</span>
+                    <span>{{ handleNumberValue(quote.limitup) }}</span>
                 </li>
                 <li>
-                    <span>最低</span>
-                    <span :class="quote.lowestColor">{{ quote.lowest }}</span>
+                    <span>跌停</span>
+                    <span>{{ handleNumberValue(quote.limitdown) }}</span>
                 </li>
             </ul>
         </div>

+ 1 - 0
src/packages/mobile/views/order/delivery/components/online/detail/Index.vue

@@ -8,6 +8,7 @@
             <div class="g-form__container">
                 <CellGroup title="线上交收单信息">
                     <Cell title="商品代码/名称" :value="selectedRow.wrtypename" />
+                    <Cell title="交收数量" :value="selectedRow.deliveryqty" />
                     <Cell title="订货价" :value="selectedRow.xdeliveryprice" />
                     <Cell title="升贴水" :value="selectedRow.deliverypricemove" />
                     <Cell title="总货款" :value="selectedRow.deliveryamount" />

+ 1 - 1
src/packages/mobile/views/order/list/components/listingorder/detail/Index.vue

@@ -15,7 +15,7 @@
                     <Cell title="委托数量" :value="formatDecimal(selectedRow.orderqty)" />
                     <Cell title="成交数量" :value="formatDecimal(selectedRow.tradeqty)" />
                     <Cell title="撤销数量" :value="formatDecimal(selectedRow.cancelqty)" />
-                    <Cell title="委托时间" :value="formatDate(selectedRow.ordertime)" />wrtradeorderstatus
+                    <Cell title="委托时间" :value="formatDate(selectedRow.ordertime)" />
                     <Cell title="委托状态" :value="getWRTradeOrderStatusName(selectedRow.wrtradeorderstatus)" />
                     <Cell title="委托单号" :value="selectedRow.wrtradeorderid" />
                 </CellGroup>

+ 12 - 16
src/packages/mobile/views/order/list/components/listingorder/list/Index.vue

@@ -6,43 +6,39 @@
             <div class="g-order-list__box" v-for="(item, index) in dataList" :key="index">
                 <div class="g-order-list__titlebar">
                     <div class="left">
-                        <h5>{{ item.deliverygoodscode }}/{{ item.deliverygoodsname }}</h5>
+                        <h4>{{ item.deliverygoodscode }}/{{ item.deliverygoodsname }}</h4>
+                        <span>{{ item.wrtradeorderid }}</span>
+                    </div>
+                    <div class="right">
+                        <span>{{ getWRTradeOrderStatusName(item.wrtradeorderstatus) }}</span>
                     </div>
                 </div>
                 <div class="g-order-list__content">
                     <ul>
                         <li>
-                            <span>时间</span>
-                            <span>{{ formatDate(item.ordertime, 'HH:mm:ss') }}</span>
+                            <span>委托时间</span>
+                            <span>{{ formatDate(item.ordertime, 'YYYY-MM-DD') }}</span>
                         </li>
                         <li>
-                            <span>方向</span>
+                            <span>方向</span>
                             <span>{{ getBuyOrSellName(item.buyorsell) }}</span>
                         </li>
                         <li>
-                            <span>挂牌数量</span>
+                            <span>挂牌数量</span>
                             <span>{{ formatDecimal(item.orderqty) }}</span>
                         </li>
                         <li>
-                            <span>挂牌价格</span>
+                            <span>挂牌价格</span>
                             <span>{{ formatDecimal(item.fixedprice) }}</span>
                         </li>
                         <li>
-                            <span>成交数量</span>
+                            <span>成交数量</span>
                             <span>{{ formatDecimal(item.tradeqty) }}</span>
                         </li>
                         <li>
-                            <span>仓库</span>
+                            <span>仓库</span>
                             <span>{{ item.warehousename }}</span>
                         </li>
-                        <li>
-                            <span>委托状态:</span>
-                            <span>{{ getWRTradeOrderStatusName(item.wrtradeorderstatus) }}</span>
-                        </li>
-                        <li>
-                            <span>单号:</span>
-                            <span>{{ item.wrtradeorderid }}</span>
-                        </li>
                     </ul>
                 </div>
                 <div class="g-order-list__btnbar">

+ 12 - 16
src/packages/mobile/views/order/list/components/listingtrade/list/Index.vue

@@ -6,39 +6,35 @@
             <div class="g-order-list__box" v-for="(item, index) in dataList" :key="index">
                 <div class="g-order-list__titlebar">
                     <div class="left">
-                        <h5>{{ item.deliverygoodscode }}/{{ item.deliverygoodsname }}</h5>
+                        <h4>{{ item.deliverygoodscode }}/{{ item.deliverygoodsname }}</h4>
+                        <span>{{ item.wrtradedetailid }}</span>
+                    </div>
+                    <div class="right">
+                        <span>{{ getBuyOrSellName(item.buyorsell) }}</span>
                     </div>
                 </div>
                 <div class="g-order-list__content">
                     <ul>
                         <li>
-                            <span>成交时间</span>
+                            <span>成交时间</span>
                             <span>{{ formatDate(item.tradedate) }}</span>
                         </li>
                         <li>
-                            <span>方向:</span>
-                            <span>{{ getBuyOrSellName(item.buyorsell) }}</span>
-                        </li>
-                        <li>
-                            <span>成交数量:</span>
+                            <span>成交数量</span>
                             <span>{{ item.tradeqty }}</span>
                         </li>
                         <li>
-                            <span>成交价格</span>
-                            <span>{{ formatDecimal(item.tradeqty) }}</span>
+                            <span>成交价格</span>
+                            <span>{{ item.tradeprice }}</span>
                         </li>
                         <li>
-                            <span>成交金额</span>
-                            <span>{{ formatDecimal(item.tradeprice*item.tradeqty) }}</span>
+                            <span>成交金额</span>
+                            <span>{{ formatDecimal(item.tradeprice * item.tradeqty) }}</span>
                         </li>
                         <li>
-                            <span>仓库</span>
+                            <span>仓库</span>
                             <span>{{ item.warehousename }}</span>
                         </li>
-                        <li>
-                            <span>成交单号:</span>
-                            <span>{{ item.wrtradedetailid }}</span>
-                        </li>
                     </ul>
                 </div>
                 <div class="g-order-list__btnbar">

+ 3 - 3
src/packages/mobile/views/order/list/components/transfertrade/list/Index.vue

@@ -29,11 +29,11 @@
                         </li>
                         <li>
                             <span>损益</span>
-                            <span>{{ item.premium }}</span>
+                            <span>{{ item.closepl }}</span>
                         </li>
                         <li>
-                            <span>时间</span>
-                            <span>{{ item.tradedate }}</span>
+                            <span>成交时间</span>
+                            <span>{{ item.tradetime }}</span>
                         </li>
                     </ul>
                 </div>

+ 8 - 9
src/packages/mobile/views/order/position/components/goods/close/Index.vue

@@ -21,12 +21,14 @@
                     <Form class="goods-close__form" ref="formRef" @submit="onCloseSumit" v-if="props">
                         <Field name="OrderPrice" :rules="formRules.OrderPrice" label="平仓价格">
                             <template #input>
-                                <Stepper v-model="formData.OrderPrice" input-width="100" theme="round" button-size="22" :min="0" :decimal-length="selectedRow.decimalplace" :auto-fixed="false" />
+                                <Stepper v-model="formData.OrderPrice" input-width="100" theme="round" button-size="22"
+                                    :min="0" :decimal-length="selectedRow.decimalplace" :auto-fixed="false" />
                             </template>
                         </Field>
                         <Field name="OrderQty" :rules="formRules.OrderQty" label="平仓数量">
                             <template #input>
-                                <Stepper v-model="formData.OrderQty" input-width="100" theme="round" button-size="22" :min="0" :max="selectedRow.enableqty" :auto-fixed="false" integer />
+                                <Stepper v-model="formData.OrderQty" input-width="100" theme="round" button-size="22"
+                                    :min="0" :max="selectedRow.enableqty" :auto-fixed="false" integer />
                             </template>
                         </Field>
                     </Form>
@@ -83,21 +85,18 @@ const onCloseSumit = () => {
         showCancelButton: true,
     }).then(() => {
 
-        const { marketid, goodsid, buyorsell} = props.selectedRow
+        const { marketid, goodsid, buyorsell } = props.selectedRow
         /// 市场ID
-        formData.Header = { MarketID: marketid, GoodsID: goodsid }
+        formData.Header = { GoodsID: goodsid }
         formData.MarketID = marketid
         formData.PriceMode = EPriceMode.PRICEMODE_LIMIT
-        formData.BuyOrSell = buyorsell === 0 ? 1 : 0,
+        formData.BuyOrSell = buyorsell === 0 ? 1 : 0
         formData.GoodsID = goodsid
-        formData.ListingSelectType = EListingSelectType.LISTINGSELECTTYPE_DELISTING
+        formData.ListingSelectType = EListingSelectType.LISTINGSELECTTYPE_DELISTINGTHENLISTING
         formData.DelistingType = EDelistingType.DELISTINGTYPE_PRICE
         formData.BuildType = EBuildType.BUILDTYPE_CLOSE
         formData.ValidType = EValidType.VALIDTYPE_DR
         formData.OperateType = EOrderOperateType.ORDEROPERATETYPE_NORMAL
-        formData.TriggerType = 0
-        formData.ServiceTime = ""
-        formData.ValidTime = ""
 
         /// loding....
         fullloading((hideLoading) => {

+ 3 - 2
src/packages/mobile/views/order/position/components/goods/list/Index.vue

@@ -1,4 +1,4 @@
-<!-- 我的持仓-掉期持仓 -->
+<!-- 我的持仓-订单持仓 -->
 <template>
     <app-pull-refresh ref="pullRefreshRef" v-model:loading="loading" v-model:error="error" v-model:pageIndex="pageIndex"
         :page-count="pageCount" @refresh="run">
@@ -43,7 +43,8 @@
                 </div>
                 <div class="g-order-list__btnbar">
                     <Button size="small" @click="showComponent('close', item)" round>平仓</Button>
-                    <Button size="small" v-if="userStore.userType === 5" @click="showComponent('delivery', item)" round>交收</Button>
+                    <Button size="small" v-if="userStore.userType === 5" @click="showComponent('delivery', item)"
+                        round>交收</Button>
                 </div>
             </div>
         </div>

+ 4 - 4
src/packages/mobile/views/order/position/components/presale/list/Index.vue

@@ -9,7 +9,7 @@
                         <h4>{{ item.goodsname }}</h4>
                     </div>
                     <div class="right">
-                        <span>{{ getHandleStatusName(item.handlestatus) }}</span>
+                        <span>{{ getPayStatusName(item.paystatus) }}</span>
                     </div>
                 </div>
                 <div class="g-order-list__content">
@@ -28,7 +28,7 @@
                         </li>
                         <li>
                             <span>转让定金比例</span>
-                            <span>{{ item.transferdepositratio }}</span>
+                            <span>{{ parsePercent(item.transferdepositratio) }}</span>
                         </li>
                         <li>
                             <span>转让定金</span>
@@ -64,13 +64,13 @@
 import { shallowRef, defineAsyncComponent } from 'vue'
 import { Button } from 'vant'
 import { fullloading, dialog } from '@/utils/vant'
+import { parsePercent } from '@/filters'
 import { useComponent } from '@/hooks/component'
-import { PayStatus } from '@/constants/order'
+import { PayStatus, getPayStatusName } from '@/constants/order'
 import { useRequest } from '@/hooks/request'
 import { queryMineCpTradePreSaleResults } from '@/services/api/presale'
 import { makeUpDeposit } from '@/services/api/trade'
 import AppPullRefresh from '@mobile/components/base/pull-refresh/index.vue'
-import { getHandleStatusName } from '@/constants/order'
 
 const componentMap = new Map<string, unknown>([
     ['detail', defineAsyncComponent(() => import('../detail/Index.vue'))],

+ 1 - 1
src/packages/mobile/views/order/position/components/transfer/delivery/trade/Index.vue

@@ -8,7 +8,7 @@
                 <CellGroup inset>
                     <Cell title="商品代码/名称" :value="detail.wrstandardname" />
                     <Cell title="仓库" :value="detail.warehousename" />
-                    <Cell title="升贴水" :value="discount" />
+                    <Cell title="升贴水" :value="discount.toFixed(2)" />
                     <Cell title="数量" :value="detail.avalidqty" />
                     <Cell title="总货款" :value="payment.toFixed(2)" />
                     <Cell title="剩余货款" :value="available.toFixed(2)" />

+ 5 - 3
src/packages/mobile/views/order/position/components/transfer/list/Index.vue

@@ -28,7 +28,7 @@
                         </li>
                         <li>
                             <span>转让定金比例</span>
-                            <span>{{ item.transferdepositratio }}</span>
+                            <span>{{ parsePercent(item.transferdepositratio) }}</span>
                         </li>
                         <li>
                             <span>转让定金</span>
@@ -49,7 +49,8 @@
                     </ul>
                 </div>
                 <div class="g-order-list__btnbar">
-                    <Button size="small" @click="depositPayment(item)" round v-if="item.paystatus === 1">追加定金</Button>
+                    <Button size="small" @click="depositPayment(item)" round
+                        v-if="item.paystatus === PayStatus.UnPay">追加定金</Button>
                     <Button size="small" @click="showComponent('listing', item)" round
                         v-if="item.paystatus === 2">转让</Button>
                     <Button size="small" @click="showComponent('delivery', item)" round
@@ -67,11 +68,12 @@
 import { shallowRef, defineAsyncComponent } from 'vue'
 import { Button } from 'vant'
 import { fullloading, dialog } from '@/utils/vant'
+import { parsePercent } from '@/filters'
 import { useComponent } from '@/hooks/component'
 import { useRequest } from '@/hooks/request'
 import { queryMineTradePositionExs } from '@/services/api/transfer'
 import { holdAppendDeposit } from '@/services/api/trade'
-import { getPayStatusName } from '@/constants/order'
+import { PayStatus, getPayStatusName } from '@/constants/order'
 import AppPullRefresh from '@mobile/components/base/pull-refresh/index.vue'
 
 const componentMap = new Map<string, unknown>([

+ 7 - 4
src/packages/mobile/views/order/position/components/transfer/listing/Index.vue

@@ -14,7 +14,7 @@
                     </Field>
                     <Field label="可用量">
                         <template #input>
-                            <span>{{ selectedRow.buycurpositionqty }}</span>
+                            <span>{{ enableqty }}</span>
                         </template>
                     </Field>
                     <Field name="OrderPrice" :rules="formRules.OrderPrice" label="转让价">
@@ -25,8 +25,8 @@
                     </Field>
                     <Field name="OrderQty" :rules="formRules.OrderQty" label="转让数量">
                         <template #input>
-                            <Stepper v-model="formData.OrderQty" theme="round" :max="selectedRow.buycurpositionqty"
-                                button-size="22" :auto-fixed="false" integer />
+                            <Stepper v-model="formData.OrderQty" theme="round" :max="enableqty" button-size="22"
+                                :auto-fixed="false" integer />
                         </template>
                     </Field>
                 </CellGroup>
@@ -41,7 +41,7 @@
 </template>
 
 <script lang="ts" setup>
-import { shallowRef, PropType } from 'vue'
+import { shallowRef, PropType, computed } from 'vue'
 import { CellGroup, Form, Field, Stepper, Button, FieldRule, FormInstance } from 'vant'
 import { fullloading, dialog } from '@/utils/vant'
 import { useOrder } from '@/business/trade'
@@ -77,6 +77,9 @@ const formRules: { [key in keyof Proto.OrderReq]?: FieldRule[] } = {
     }],
 }
 
+// 可用数量
+const enableqty = computed(() => props.selectedRow.buycurpositionqty - props.selectedRow.buyfrozenqty)
+
 // 关闭弹窗
 const closed = (isRefresh = false) => {
     refresh.value = isRefresh

+ 2 - 1
src/packages/mobile/views/transfer/delisting/components/delisting/index.vue

@@ -91,7 +91,8 @@ const formRules: { [key in keyof Proto.OrderReq]?: FieldRule[] } = {
 
 // 定金
 const deposit = computed(() => {
-    const amount = props.detail.presaleprice * props.detail.transferdepositratio
+    const qty = formData.OrderQty ?? 0
+    const amount = props.detail.presaleprice * props.detail.transferdepositratio * qty
     return amount.toFixed(2)
 })
 

+ 2 - 3
src/services/websocket/build/index.ts

@@ -148,10 +148,9 @@ export class MTP2WebSocket<T extends Package40 | Package50>{
     * 启动心跳请求包发送Timer
     */
     private startHeartBeat() {
-        console.log('准备发送心跳', moment(new Date()).format('HH:mm:ss'));
         this.beatTimer = window.setTimeout(() => {
             this.beatTimerId = moment(new Date()).format('HH:mm:ss');
-            console.log(this.host, '发送心跳', this.beatTimerId);
+            //console.log(this.host, '发送心跳', this.beatTimerId);
             // 发送心跳
             switch (this.Package) {
                 case Package40: {
@@ -332,7 +331,7 @@ export class MTP2WebSocket<T extends Package40 | Package50>{
             switch (p.mainClassNumber) {
                 case 0x12: {
                     // 接收到心跳回复
-                    console.log(this.host, '收到心跳回复', this.beatTimerId);
+                    //console.log(this.host, '收到心跳回复', this.beatTimerId);
                     this.stopHeartBeat();
                     this.startHeartBeat();
                     break;

+ 26 - 22
src/stores/modules/futures.ts

@@ -47,6 +47,8 @@ export const useFuturesStore = defineStore(() => {
                 lowest = 0,
                 lasttime = '',
                 settle = 0,
+                limitup = 0,
+                limitdown = 0,
             } = quoteDayInfo ?? {}
 
             const rise = last ? last - presettle : 0   // 涨跌额/涨跌: 最新价 - 昨结价
@@ -92,6 +94,8 @@ export const useFuturesStore = defineStore(() => {
                 highest,
                 lowest,
                 settle,
+                limitup,
+                limitdown,
                 bidColor: handleColor(bid),
                 askColor: handleColor(ask),
                 lastColor: handleColor(last),
@@ -193,11 +197,11 @@ export const useFuturesStore = defineStore(() => {
                 askordervolume9: 0,
                 askordervolume10: 0,
                 askqueueinfo: '',
-                askvolume: handleDeimalplace(item.askvolume),
-                askvolume2: handleDeimalplace(item.askvolume2),
-                askvolume3: handleDeimalplace(item.askvolume3),
-                askvolume4: handleDeimalplace(item.askvolume4),
-                askvolume5: handleDeimalplace(item.askvolume5),
+                askvolume: item.askvolume ?? 0,
+                askvolume2: item.askvolume2 ?? 0,
+                askvolume3: item.askvolume3 ?? 0,
+                askvolume4: item.askvolume4 ?? 0,
+                askvolume5: item.askvolume5 ?? 0,
                 askvolume6: 0,
                 askvolume7: 0,
                 askvolume8: 0,
@@ -230,39 +234,39 @@ export const useFuturesStore = defineStore(() => {
                 bidordervolume9: 0,
                 bidordervolume10: 0,
                 bidqueueinfo: "",
-                bidvolume: handleDeimalplace(item.bidvolume),
-                bidvolume2: handleDeimalplace(item.bidvolume2),
-                bidvolume3: handleDeimalplace(item.bidvolume3),
-                bidvolume4: handleDeimalplace(item.bidvolume4),
-                bidvolume5: handleDeimalplace(item.bidvolume5),
+                bidvolume: item.bidvolume ?? 0,
+                bidvolume2: item.bidvolume2 ?? 0,
+                bidvolume3: item.bidvolume3 ?? 0,
+                bidvolume4: item.bidvolume4 ?? 0,
+                bidvolume5: item.bidvolume5 ?? 0,
                 bidvolume6: 0,
                 bidvolume7: 0,
                 bidvolume8: 0,
                 bidvolume9: 0,
                 bidvolume10: 0,
-                calloptionpremiums: handleDeimalplace(item.calloptionpremiums),
-                calloptionpremiums2: handleDeimalplace(item.calloptionpremiums2),
-                calloptionpremiums3: handleDeimalplace(item.calloptionpremiums3),
-                calloptionpremiums4: handleDeimalplace(item.calloptionpremiums4),
-                calloptionpremiums5: handleDeimalplace(item.calloptionpremiums5),
+                calloptionpremiums: item.calloptionpremiums ?? 0,
+                calloptionpremiums2: item.calloptionpremiums2 ?? 0,
+                calloptionpremiums3: item.calloptionpremiums3 ?? 0,
+                calloptionpremiums4: item.calloptionpremiums4 ?? 0,
+                calloptionpremiums5: item.calloptionpremiums5 ?? 0,
                 cleartime: 0,
-                exchangecode: handleDeimalplace(item.exchangecode),
-                exchangedate: handleDeimalplace(item.exchangedate),
+                exchangecode: item.exchangecode ?? 0,
+                exchangedate: item.exchangedate ?? 0,
                 goodscode: item.goodscode ?? '',
                 grepmarketprice: 0,
                 highest: handleDeimalplace(item.highest),
                 holdincrement: 0,
-                holdvolume: handleDeimalplace(item.holdvolume),
+                holdvolume: item.holdvolume ?? 0,
                 iep: 0,
                 iev: 0,
-                inventory: handleDeimalplace(item.inventory),
+                inventory: item.inventory ?? 0,
                 iscleared: 0,
                 issettled: 0,
                 last: handleDeimalplace(item.last),
                 lastlot: 0,
                 lasttime,
                 Lastturnover: 0,
-                lastvolume: handleDeimalplace(item.lastvolume),
+                lastvolume: item.lastvolume ?? 0,
                 limitdown: handleDeimalplace(item.limitlow),
                 limitup: handleDeimalplace(item.limithigh),
                 lowest: handleDeimalplace(item.lowest),
@@ -274,7 +278,7 @@ export const useFuturesStore = defineStore(() => {
                 opentime: '',
                 orderid: 0,
                 preclose: handleDeimalplace(item.preclose),
-                preholdvolume: handleDeimalplace(item.preholdvolume),
+                preholdvolume: item.preholdvolume ?? 0,
                 presettle: handleDeimalplace(item.presettle),
                 publictradetype: '',
                 putoptionpremiums: handleDeimalplace(item.putoptionpremiums),
@@ -288,7 +292,7 @@ export const useFuturesStore = defineStore(() => {
                 totalbidvolume: 0,
                 totallot: 0,
                 totalturnover: handleDeimalplace(item.totalturnover),
-                totalvolume: handleDeimalplace(item.totalvolume),
+                totalvolume: item.totalvolume ?? 0,
                 utclasttime: ''
             }
 

+ 2 - 0
src/types/model/market.d.ts

@@ -101,5 +101,7 @@ declare namespace Model {
         highestColor: string;// 最高颜色
         lowestColor: string;// 最低颜色
         settle: number; // 结算价
+        limitdown: number; // 跌停价
+        limitup: number; // 涨停价
     }
 }