li.shaoyi 3 місяців тому
батько
коміт
400d5578a9
30 змінених файлів з 54 додано та 12 видалено
  1. 12 0
      src/packages/pc/components/base/input-number/index.vue
  2. 5 3
      src/packages/pc/components/modules/delivery/index.vue
  3. 6 5
      src/packages/pc/components/modules/goods-detail/order/delisting/index.vue
  4. 2 1
      src/packages/pc/views/account/holddeposit/components/deposit/index.vue
  5. 1 0
      src/packages/pc/views/footer/capital/summary/deposit/index.vue
  6. 1 0
      src/packages/pc/views/footer/capital/summary/withdraw/index.vue
  7. 1 0
      src/packages/pc/views/footer/goods/detail/components/transfer/index.vue
  8. 1 0
      src/packages/pc/views/footer/goods/order/clear/index.vue
  9. 1 0
      src/packages/pc/views/footer/goods/position/components/delivery50/index.vue
  10. 1 0
      src/packages/pc/views/footer/goods/position/components/transfer/index.vue
  11. 1 0
      src/packages/pc/views/footer/inout/out/add/index.vue
  12. 1 0
      src/packages/pc/views/footer/presell/transferposition/listing/index.vue
  13. 1 0
      src/packages/pc/views/footer/pricing/detail/components/transfer/index.vue
  14. 1 0
      src/packages/pc/views/footer/pricing/detail2/components/delivery/index.vue
  15. 1 0
      src/packages/pc/views/footer/pricing/detail2/components/transfer/index.vue
  16. 1 0
      src/packages/pc/views/footer/pricing/order/clear/index.vue
  17. 1 0
      src/packages/pc/views/footer/pricing/position/components/delivery/index.vue
  18. 1 0
      src/packages/pc/views/footer/pricing/position/components/transfer/index.vue
  19. 2 1
      src/packages/pc/views/footer/spot/position/components/listing/index.vue
  20. 1 0
      src/packages/pc/views/footer/spot/position/components/pickup/index.vue
  21. 1 0
      src/packages/pc/views/market/trade/goods/list/listing/index.vue
  22. 2 1
      src/packages/pc/views/market/trade/presell/ballot/detail/delisting/index.vue
  23. 2 1
      src/packages/pc/views/market/trade/presell/bidding/detail/delisting/index.vue
  24. 1 0
      src/packages/pc/views/market/trade/presell/transfer/listing/index.vue
  25. 1 0
      src/packages/pc/views/market/trade/pricing/list/listing/index.vue
  26. 1 0
      src/packages/pc/views/market/trade/spot/listing/index.vue
  27. 1 0
      src/packages/pc/views/market/trade/spot/order/delisting/index.vue
  28. 1 0
      src/packages/pc/views/market/trade/spot/order/listing/index.vue
  29. 1 0
      src/packages/pc/views/market/trade/swap/detail/listing/index.vue
  30. 1 0
      src/packages/pc/views/market/trade/swap/detail/order/delisting/index.vue

+ 12 - 0
src/packages/pc/components/base/input-number/index.vue

@@ -0,0 +1,12 @@
+<template>
+    <el-input-number :max="max" />
+</template>
+
+<script lang="ts" setup>
+defineProps({
+    max: {
+        type: Number,
+        default: 999999999
+    }
+})
+</script>

+ 5 - 3
src/packages/pc/components/modules/delivery/index.vue

@@ -1,6 +1,7 @@
 <!-- 交收操作 -->
 <template>
-    <app-drawer class="app-delivery" :title="t('operation.delivery')" :width="680" v-model:show="show" :loading="loading" :refresh="refresh">
+    <app-drawer class="app-delivery" :title="t('operation.delivery')" :width="680" v-model:show="show"
+        :loading="loading" :refresh="refresh">
         <div class="app-delivery__header">
             <slot name="header" :qtyStep="qtyStep" :goodunit="deliveryRelation?.enumdicname ?? ''"></slot>
         </div>
@@ -30,8 +31,8 @@
                             <td>{{ item.pricemove }}</td>
                             <td>{{ item.avalidqty }}</td>
                             <td>
-                                <el-input-number :placeholder="t('common.pleaseenter')" v-model="item.deliveryLot" :precision="0"
-                                    :max="maxQty(index)" :min="0" :step="qtyStep" step-strictly />
+                                <el-input-number :placeholder="t('common.pleaseenter')" v-model="item.deliveryLot"
+                                    :precision="0" :max="maxQty(index)" :min="0" :step="qtyStep" step-strictly />
                             </td>
                             <td>{{ item.enumdicname }}</td>
                         </tr>
@@ -67,6 +68,7 @@ import { queryDeliveryRelation } from '@/services/api/goods'
 import { useAccountStore, useFuturesStore, i18n } from '@/stores'
 import moment from 'moment'
 import AppDrawer from '@pc/components/base/drawer/index.vue'
+import ElInputNumber from '@pc/components/base/input-number/index.vue'
 
 const props = defineProps({
     goodsId: {

+ 6 - 5
src/packages/pc/components/modules/goods-detail/order/delisting/index.vue

@@ -13,8 +13,8 @@
             </el-form-item>
             <el-form-item prop="OrderQty" :label="t('quote.goods.delistingqty')">
                 <div class="g-qty-group">
-                    <el-input-number :placeholder="t('common.pleaseenter')" :min="0" :max="selectedRow.orderqty" :precision="0" :step="qtyStep"
-                        v-model="formData.OrderQty" />
+                    <el-input-number :placeholder="t('common.pleaseenter')" :min="0" :max="selectedRow.orderqty"
+                        :precision="0" :step="qtyStep" v-model="formData.OrderQty" />
                     <el-radio-group size="small" v-model="qtyStep" @change="onRadioChange">
                         <el-radio v-for="(value, index) in qtyStepList" :key="index" :label="value" border />
                     </el-radio-group>
@@ -24,7 +24,8 @@
         <template #footer>
             <template v-if="selectedRow.buyorsell === BuyOrSell.Buy">
                 <el-button type="primary" :disabled="!formData.OrderQty || formData.OrderQty > selectedRow.orderqty"
-                    @click="onSubmit(EBuildType.BUILDTYPE_OPEN)" v-if="quote?.tradeproperty === 1">{{ t('quote.ordersell') }}</el-button>
+                    @click="onSubmit(EBuildType.BUILDTYPE_OPEN)" v-if="quote?.tradeproperty === 1">{{
+                        t('quote.ordersell') }}</el-button>
                 <el-button type="primary" :disabled="!formData.OrderQty || !buyQty || (formData.OrderQty > buyQty)"
                     @click="onSubmit(EBuildType.BUILDTYPE_CLOSE)">
                     <span>{{ t('quote.transfersell') }}</span>
@@ -51,9 +52,9 @@ import { handleRequestBigNumber } from '@/filters'
 import { EBuildType, EDelistingType, EListingSelectType, EOrderOperateType, EPriceMode, EValidType } from '@/constants/client'
 import { BuyOrSell } from '@/constants/order'
 import { useOrder } from '@/business/trade'
-import { useFuturesStore, usePositionStore } from '@/stores'
+import { i18n, useFuturesStore, usePositionStore } from '@/stores'
 import AppDrawer from '@pc/components/base/drawer/index.vue'
-import { i18n } from '@/stores'
+import ElInputNumber from '@pc/components/base/input-number/index.vue'
 
 const { t } = i18n.global
 

+ 2 - 1
src/packages/pc/views/account/holddeposit/components/deposit/index.vue

@@ -34,9 +34,10 @@ import { ElMessage, ElMessageBox, FormInstance, FormRules } from 'element-plus'
 import { formatDecimal } from '@/filters'
 import { useDoYJF_WithholdInApply, useDoCusBankExtendConfigs } from '@/business/bank'
 import { getServerTime } from '@/services/api/common'
-import moment from 'moment'
 import { i18n } from '@/stores'
+import moment from 'moment'
 import AppDrawer from '@pc/components/base/drawer/index.vue'
+import ElInputNumber from '@pc/components/base/input-number/index.vue'
 
 const { t } = i18n.global
 

+ 1 - 0
src/packages/pc/views/footer/capital/summary/deposit/index.vue

@@ -60,6 +60,7 @@ import { getServerTime } from '@/services/api/common'
 import { useUserStore, i18n } from '@/stores'
 import AppDrawer from '@pc/components/base/drawer/index.vue'
 import AppUpload from '@pc/components/base/upload/index.vue'
+import ElInputNumber from '@pc/components/base/input-number/index.vue'
 import moment from 'moment'
 
 const props = defineProps({

+ 1 - 0
src/packages/pc/views/footer/capital/summary/withdraw/index.vue

@@ -52,6 +52,7 @@ import { useDoWithdraw, useAccountFundInfo, useDoCusBankExtendConfigs } from '@/
 import { getServerTime } from '@/services/api/common'
 import { useAccountStore, useUserStore, i18n } from '@/stores'
 import AppDrawer from '@pc/components/base/drawer/index.vue'
+import ElInputNumber from '@pc/components/base/input-number/index.vue'
 import moment from 'moment'
 
 const { loading, formData, onSubmit } = useDoWithdraw()

+ 1 - 0
src/packages/pc/views/footer/goods/detail/components/transfer/index.vue

@@ -53,6 +53,7 @@ import { getBuyOrSellName, BuyOrSell } from '@/constants/order'
 import { useFuturesStore, usePositionStore, i18n } from '@/stores'
 import { EBuildType, EDelistingType, EListingSelectType, EPriceMode, EValidType } from '@/constants/client'
 import AppDrawer from '@pc/components/base/drawer/index.vue'
+import ElInputNumber from '@pc/components/base/input-number/index.vue'
 
 const props = defineProps({
     selectedRow: {

+ 1 - 0
src/packages/pc/views/footer/goods/order/clear/index.vue

@@ -37,6 +37,7 @@ import { BuyOrSell, getBuyOrSellList } from '@/constants/order'
 import { useCancelOrder } from '@/business/trade'
 import { i18n } from '@/stores'
 import AppDrawer from '@pc/components/base/drawer/index.vue'
+import ElInputNumber from '@pc/components/base/input-number/index.vue'
 
 const { t } = i18n.global
 

+ 1 - 0
src/packages/pc/views/footer/goods/position/components/delivery50/index.vue

@@ -70,6 +70,7 @@ import { formatDecimal } from '@/filters'
 import { i18n } from '@/stores'
 import AppDrawer from '@pc/components/base/drawer/index.vue'
 import AppAddress from '@pc/components/modules/address/index.vue'
+import ElInputNumber from '@pc/components/base/input-number/index.vue'
 
 const { t } = i18n.global
 

+ 1 - 0
src/packages/pc/views/footer/goods/position/components/transfer/index.vue

@@ -72,6 +72,7 @@ import { useFuturesStore, i18n } from '@/stores'
 import { EBuildType, EDelistingType, EListingSelectType, EOrderOperateType, EPriceMode, EValidType } from '@/constants/client'
 import Icon from '@pc/components/base/icon/index.vue'
 import AppDrawer from '@pc/components/base/drawer/index.vue'
+import ElInputNumber from '@pc/components/base/input-number/index.vue'
 
 const props = defineProps({
     selectedRow: {

+ 1 - 0
src/packages/pc/views/footer/inout/out/add/index.vue

@@ -60,6 +60,7 @@ import { holderTransferApply } from '@/services/api/trade'
 import { getUserInfo } from '@/services/api/user'
 import { useLoginStore, usePositionStore, i18n } from '@/stores'
 import AppDrawer from '@pc/components/base/drawer/index.vue'
+import ElInputNumber from '@pc/components/base/input-number/index.vue'
 
 const componentMap = new Map<string, unknown>([
     ['agreement', defineAsyncComponent(() => import('../../agreement/index.vue'))], // 持仓转让协议

+ 1 - 0
src/packages/pc/views/footer/presell/transferposition/listing/index.vue

@@ -42,6 +42,7 @@ import { useFuturesStore, i18n } from '@/stores'
 import { BuyOrSell } from '@/constants/order'
 import { EPriceMode, EValidType, EListingSelectType, EBuildType } from '@/constants/client'
 import AppDrawer from '@pc/components/base/drawer/index.vue'
+import ElInputNumber from '@pc/components/base/input-number/index.vue'
 
 const props = defineProps({
     selectedRow: {

+ 1 - 0
src/packages/pc/views/footer/pricing/detail/components/transfer/index.vue

@@ -69,6 +69,7 @@ import { getBuyOrSellName, BuyOrSell, getPricemode2List, PriceMode } from '@/con
 import { useFuturesStore, usePositionStore, i18n, useSettingStore, useUserStore } from '@/stores'
 import { EBuildType, EDelistingType, EListingSelectType, EValidType, EOrderOperateType } from '@/constants/client'
 import AppDrawer from '@pc/components/base/drawer/index.vue'
+import ElInputNumber from '@pc/components/base/input-number/index.vue'
 
 const props = defineProps({
     selectedRow: {

+ 1 - 0
src/packages/pc/views/footer/pricing/detail2/components/delivery/index.vue

@@ -71,6 +71,7 @@ import { getGoodsUnitName } from '@/constants/unit'
 import { i18n, useFuturesStore } from '@/stores'
 import AppDrawer from '@pc/components/base/drawer/index.vue'
 import AppAddress from '@pc/components/modules/address/index.vue'
+import ElInputNumber from '@pc/components/base/input-number/index.vue'
 
 const { t } = i18n.global
 

+ 1 - 0
src/packages/pc/views/footer/pricing/detail2/components/transfer/index.vue

@@ -67,6 +67,7 @@ import { getBuyOrSellName, BuyOrSell, getPricemode2List, PriceMode } from '@/con
 import { useFuturesStore, usePositionStore, i18n, useSettingStore } from '@/stores'
 import { EBuildType, EDelistingType, EListingSelectType, EValidType, EOrderOperateType } from '@/constants/client'
 import AppDrawer from '@pc/components/base/drawer/index.vue'
+import ElInputNumber from '@pc/components/base/input-number/index.vue'
 
 const props = defineProps({
     selectedRow: {

+ 1 - 0
src/packages/pc/views/footer/pricing/order/clear/index.vue

@@ -37,6 +37,7 @@ import { BuyOrSell, getBuyOrSellList } from '@/constants/order'
 import { useCancelOrder } from '@/business/trade'
 import { i18n } from '@/stores'
 import AppDrawer from '@pc/components/base/drawer/index.vue'
+import ElInputNumber from '@pc/components/base/input-number/index.vue'
 
 const { t } = i18n.global
 

+ 1 - 0
src/packages/pc/views/footer/pricing/position/components/delivery/index.vue

@@ -70,6 +70,7 @@ import { formatDecimal } from '@/filters'
 import { i18n } from '@/stores'
 import AppDrawer from '@pc/components/base/drawer/index.vue'
 import AppAddress from '@pc/components/modules/address/index.vue'
+import ElInputNumber from '@pc/components/base/input-number/index.vue'
 
 const { t } = i18n.global
 

+ 1 - 0
src/packages/pc/views/footer/pricing/position/components/transfer/index.vue

@@ -71,6 +71,7 @@ import { getBuyOrSellName, BuyOrSell, getPricemode2List, PriceMode } from '@/con
 import { useFuturesStore, i18n, useSettingStore } from '@/stores'
 import { EBuildType, EDelistingType, EListingSelectType, EOrderOperateType, EValidType } from '@/constants/client'
 import AppDrawer from '@pc/components/base/drawer/index.vue'
+import ElInputNumber from '@pc/components/base/input-number/index.vue'
 
 const props = defineProps({
     position: {

+ 2 - 1
src/packages/pc/views/footer/spot/position/components/listing/index.vue

@@ -39,9 +39,10 @@ import { ref, PropType } from 'vue'
 import { ElMessage, FormInstance, FormRules } from 'element-plus'
 import { handleRequestBigNumber } from '@/filters'
 import { useHdWROrder } from '@/business/trade'
-import AppDrawer from '@pc/components/base/drawer/index.vue'
 import { i18n } from '@/stores'
+import AppDrawer from '@pc/components/base/drawer/index.vue'
 import Performance from '@pc/components/modules/performance/index.vue'
+import ElInputNumber from '@pc/components/base/input-number/index.vue'
 
 const props = defineProps({
     selectedRow: {

+ 1 - 0
src/packages/pc/views/footer/spot/position/components/pickup/index.vue

@@ -93,6 +93,7 @@ import { getReceiptTypeName } from '@/constants/receipt'
 import { i18n } from '@/stores'
 import AppRegion from '@pc/components/base/region/index.vue'
 import AppDrawer from '@pc/components/base/drawer/index.vue'
+import ElInputNumber from '@pc/components/base/input-number/index.vue'
 
 const { dataList: invoiceList } = useRequest(queryWrUserReceiptInfo)
 const { dataList: addressList } = useRequest(queryUserReceiveInfo)

+ 1 - 0
src/packages/pc/views/market/trade/goods/list/listing/index.vue

@@ -93,6 +93,7 @@ import { useOrder } from '@/business/trade'
 import { useFuturesStore, useSettingStore, useAccountStore, usePositionStore, useUserStore, i18n } from '@/stores'
 import Forex from '@pc/components/modules/quote/forex/index.vue'
 import Icon from '@pc/components/base/icon/index.vue'
+import ElInputNumber from '@pc/components/base/input-number/index.vue'
 
 const accountStore = useAccountStore()
 const settingStore = useSettingStore()

+ 2 - 1
src/packages/pc/views/market/trade/presell/ballot/detail/delisting/index.vue

@@ -30,11 +30,12 @@
 import { shallowRef, computed, PropType } from 'vue'
 import { ElMessage, FormInstance, FormRules } from 'element-plus'
 import { handleRequestBigNumber } from '@/filters'
+import { EPriceMode, EValidType } from '@/constants/client'
 import { BuyOrSell } from '@/constants/order'
 import { useOrder } from '@/business/trade'
 import { useAccountStore, i18n } from '@/stores'
 import AppDrawer from '@pc/components/base/drawer/index.vue'
-import { EPriceMode, EValidType } from '@/constants/client'
+import ElInputNumber from '@pc/components/base/input-number/index.vue'
 
 const props = defineProps({
     selectedRow: {

+ 2 - 1
src/packages/pc/views/market/trade/presell/bidding/detail/delisting/index.vue

@@ -31,11 +31,12 @@
 import { shallowRef, computed, PropType, onMounted } from 'vue'
 import { ElMessage, FormInstance, FormRules } from 'element-plus'
 import { handleRequestBigNumber, parsePercent } from '@/filters'
+import { EPriceMode, EValidType } from '@/constants/client'
 import { BuyOrSell } from '@/constants/order'
 import { useOrder } from '@/business/trade'
 import { useAccountStore, useFuturesStore, i18n } from '@/stores'
 import AppDrawer from '@pc/components/base/drawer/index.vue'
-import { EPriceMode, EValidType } from '@/constants/client'
+import ElInputNumber from '@pc/components/base/input-number/index.vue'
 
 const props = defineProps({
     selectedRow: {

+ 1 - 0
src/packages/pc/views/market/trade/presell/transfer/listing/index.vue

@@ -74,6 +74,7 @@ import { useOrder } from '@/business/trade'
 import { useFuturesStore, useSettingStore, i18n } from '@/stores'
 import Forex from '@pc/components/modules/quote/forex/index.vue'
 import Icon from '@pc/components/base/icon/index.vue'
+import ElInputNumber from '@pc/components/base/input-number/index.vue'
 import eventBus from '@/services/bus'
 
 const settingStore = useSettingStore()

+ 1 - 0
src/packages/pc/views/market/trade/pricing/list/listing/index.vue

@@ -102,6 +102,7 @@ import { useOrder } from '@/business/trade'
 import { useFuturesStore, useSettingStore, useAccountStore, i18n, useUserStore } from '@/stores'
 import Forex from '@pc/components/modules/quote/forex/index.vue'
 import AppAddress from '@pc/components/modules/address/index.vue'
+import ElInputNumber from '@pc/components/base/input-number/index.vue'
 
 const accountStore = useAccountStore()
 const settingStore = useSettingStore()

+ 1 - 0
src/packages/pc/views/market/trade/spot/listing/index.vue

@@ -53,6 +53,7 @@ import { useHdWROrder } from '@/business/trade'
 import { useAccountStore, i18n } from '@/stores'
 import AppDrawer from '@pc/components/base/drawer/index.vue'
 import Performance from '@pc/components/modules/performance/index.vue'
+import ElInputNumber from '@pc/components/base/input-number/index.vue'
 
 const { formData, listingSubmit, loading, amount } = useHdWROrder()
 const accountStore = useAccountStore()

+ 1 - 0
src/packages/pc/views/market/trade/spot/order/delisting/index.vue

@@ -49,6 +49,7 @@ import { queryHoldLB } from '@/services/api/order'
 import { useHdWRDealOrder } from '@/business/trade'
 import { useAccountStore, i18n } from '@/stores'
 import AppDrawer from '@pc/components/base/drawer/index.vue'
+import ElInputNumber from '@pc/components/base/input-number/index.vue'
 
 const props = defineProps({
     quoteItem: {

+ 1 - 0
src/packages/pc/views/market/trade/spot/order/listing/index.vue

@@ -39,6 +39,7 @@ import { useHdWROrder } from '@/business/trade'
 import { useAccountStore, i18n } from '@/stores'
 import AppDrawer from '@pc/components/base/drawer/index.vue'
 import Performance from '@pc/components/modules/performance/index.vue'
+import ElInputNumber from '@pc/components/base/input-number/index.vue'
 
 const props = defineProps({
     quoteItem: {

+ 1 - 0
src/packages/pc/views/market/trade/swap/detail/listing/index.vue

@@ -68,6 +68,7 @@ import { useAccountStore, useFuturesStore, useUserStore, i18n } from '@/stores'
 import { useRequest } from '@/hooks/request'
 import { queryTjmdTodayAccountMargin } from '@/services/api/swap'
 import AppDrawer from '@pc/components/base/drawer/index.vue'
+import ElInputNumber from '@pc/components/base/input-number/index.vue'
 
 const props = defineProps({
     quoteGoods: {

+ 1 - 0
src/packages/pc/views/market/trade/swap/detail/order/delisting/index.vue

@@ -81,6 +81,7 @@ import { useRequest } from '@/hooks/request'
 import { queryTjmdTodayAccountMargin } from '@/services/api/swap'
 import { useFuturesStore, useAccountStore, useUserStore, i18n } from '@/stores'
 import AppDrawer from '@pc/components/base/drawer/index.vue'
+import ElInputNumber from '@pc/components/base/input-number/index.vue'
 
 const props = defineProps({
     selectedRow: {