Handy_Cao 2 år sedan
förälder
incheckning
55ff9748cd

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

@@ -28,8 +28,8 @@
                                     <span>{{ formatDate(item.ordertime, 'YYYY-MM-DD') }}</span>
                                 </li>
                                 <li>
-                                    <span>方向</span>
-                                    <span>{{ getBuyOrSellName(item.buyorsell) }}</span>
+                                    <span>方向类型</span>
+                                    <span>{{ getBuyOrSellName(item.buyorsell) }}{{ getBuildTypeName(item.buildtype) }}</span>
                                 </li>
                                 <li>
                                     <span>委托数量</span>
@@ -63,7 +63,7 @@
 import { shallowRef, ref, defineAsyncComponent } from 'vue'
 import { useRequest } from '@/hooks/request'
 import { queryHisTradeOrderDetail } from '@/services/api/order'
-import { getBuyOrSellName, getWRTradeOrderStatusName } from '@/constants/order'
+import { getBuyOrSellName, getWRTradeOrderStatusName, getBuildTypeName } from '@/constants/order'
 import { formatDate } from '@/filters'
 import { useComponent } from '@/hooks/component'
 import { Button, Calendar, Cell } from 'vant'

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

@@ -19,8 +19,8 @@
                             <span>{{ formatDate(item.ordertime, 'YYYY-MM-DD') }}</span>
                         </li>
                         <li>
-                            <span>方向</span>
-                            <span>{{ getBuyOrSellName(item.buyorsell) }}</span>
+                            <span>方向类型</span>
+                            <span>{{ getBuyOrSellName(item.buyorsell) }}{{ getBuildTypeName(item.buildtype) }}</span>
                         </li>
                         <li>
                             <span>委托数量</span>
@@ -54,7 +54,7 @@ import { Button } from 'vant'
 import { useComponent } from '@/hooks/component'
 import { useRequest } from '@/hooks/request'
 import { queryTradeOrderDetail } from '@/services/api/order'
-import { getBuyOrSellName, getWRTradeOrderStatusName } from '@/constants/order'
+import { getBuyOrSellName, getBuildTypeName, getWRTradeOrderStatusName } from '@/constants/order'
 import { formatDate, formatDecimal, handleRequestBigNumber } from '@/filters'
 import { useCancelOrder } from '@/business/trade'
 import { dialog } from '@/utils/vant'