Handy_Cao 9 mesiacov pred
rodič
commit
29c598b231

+ 1 - 1
src/packages/sbyj/views/market/detail/index.vue

@@ -372,7 +372,7 @@ onActivated(() => {
 
 onMounted(() => {
     subscribe.start(goodscode)
-    formData.IsAutoAddDeposit = 1
+    if (goods?.canautoadddeposit === 1) { formData.IsAutoAddDeposit = 1 }
     orderQty.value = qtyStepList.value.at(-1) ?? 1
     qtyStep.value = qtyStepList.value.at(-1) ?? 1
     getSBYJMyOrders()

+ 2 - 2
src/packages/sbyj/views/order/detail/index.vue

@@ -25,7 +25,7 @@
                     <Cell title="已付定金" :value="detail.payedDeposit" />
                     <Cell title="已补定金" :value="detail.restockDeposit" v-if="riskType === 1" />
                     <Cell title="订单天数" :value="detail.holdDays + 1" />
-                    <Cell title="到期剩余天数" :value="detail.closedDays" />
+                    <Cell title="到期剩余天数" :value="handleNumberValue(detail.closedDays)" />
                     <Cell :title="$t('mine.callAteFee')" :value="detail.callAteFee" />
                     <Cell title="定金率" v-if="riskType === 1">
                         <template #value>
@@ -63,7 +63,7 @@
 <script lang="ts" setup>
 import { shallowRef, PropType, computed } from 'vue'
 import { CellGroup, Cell, Button, Checkbox } from 'vant'
-import { parsePercent, handlePriceColor, formatDecimal, handleRequestBigNumber } from '@/filters'
+import { parsePercent, handlePriceColor, formatDecimal, handleRequestBigNumber, handleNumberValue } from '@/filters'
 import { BuyOrSell } from '@/constants/order'
 import { getGoodsUnitName } from '@/constants/unit'
 import { useGlobalStore, useFuturesStore } from '@/stores'