li.shaoyi hai 1 ano
pai
achega
b4a0d8d541

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

@@ -51,7 +51,7 @@
                         <span>{{ enableqty(item) + getGoodsUnitName(item.goodsUnitID) }}</span>
                     </td>
                     <td>
-                        <span>{{ formatDecimal(item.tHDetailEx.holderPrice) }}</span>
+                        <span>{{ formatDecimal(item.tHDetailEx.holderPrice, item.decimalPlace) }}</span>
                     </td>
                     <td v-if="riskType === 1">
                         <span
@@ -101,7 +101,9 @@
                             </li>
                             <li>
                                 <span>订单价格</span>
-                                <span>{{ formatDecimal(selectedRow.tHDetailEx.holderPrice) }}</span>
+                                <span>
+                                    {{ formatDecimal(selectedRow.tHDetailEx.holderPrice, selectedRow.decimalPlace) }}
+                                </span>
                             </li>
                             <li>
                                 <span>已付定金</span>

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

@@ -13,7 +13,7 @@
                     <Cell title="订单重量"
                         :value="(selectedRow.openqty * selectedRow.agreeunit) + getGoodsUnitName(selectedRow.goodunitid)" />
                     <Cell title="可用量" :value="enableqty(selectedRow) + getGoodsUnitName(selectedRow.goodunitid)" />
-                    <Cell title="订单价格" :value="selectedRow.openprice" />
+                    <Cell title="订单价格" :value="formatDecimal(selectedRow.openprice, selectedRow.decimalplace)" />
                     <Cell title="已付定金" :value="selectedRow.payeddeposit" />
                     <Cell title="终止结余" :value="selectedRow.closepl" />
                     <Cell title="已补定金" :value="selectedRow.restockdeposit" />
@@ -29,6 +29,7 @@
 <script lang="ts" setup>
 import { shallowRef, PropType } from 'vue'
 import { CellGroup, Cell } from 'vant'
+import { formatDecimal } from '@/filters'
 import { BuyOrSell } from '@/constants/order'
 import AppModal from '@/components/base/modal/index.vue'
 import { getGoodsUnitName } from '@/constants/unit'

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

@@ -41,7 +41,7 @@
                             </li> -->
                             <li>
                                 <span>订单价格</span>
-                                <span>{{ item.openprice }}</span>
+                                <span>{{ formatDecimal(item.openprice, item.decimalplace) }}</span>
                             </li>
                             <li>
                                 <span>已付定金</span>
@@ -79,7 +79,7 @@
 <script lang="ts" setup>
 import { shallowRef, defineAsyncComponent } from 'vue'
 import { Button } from 'vant'
-import { handlePriceColor } from '@/filters'
+import { formatDecimal, handlePriceColor } from '@/filters'
 import { BuyOrSell } from '@/constants/order'
 import { getGoodsUnitName } from '@/constants/unit'
 import { useComponent } from '@/hooks/component'

+ 2 - 1
src/packages/sbyj/views/order/list/components/close-holder/index.vue

@@ -20,7 +20,8 @@
             <Form ref="formRef" class="g-form__container" @submit="onSubmit">
                 <CellGroup inset>
                     <Cell title="订单方向" :value="selectedRow.tHDetailEx.buyOrSell === BuyOrSell.Buy ? '买料' : '卖料'" />
-                    <Cell title="订单价格" :value="formatDecimal(selectedRow.tHDetailEx.holderPrice)" />
+                    <Cell title="订单价格"
+                        :value="formatDecimal(selectedRow.tHDetailEx.holderPrice, selectedRow.decimalPlace)" />
                     <Cell title="可用重量" :value="enableqty + getGoodsUnitName(selectedRow.goodsUnitID)" />
                     <Field name="OrderQty" label="终止重量" :rules="formRules.OrderQty">
                         <template #input>

+ 3 - 2
src/packages/sbyj/views/order/list/components/market-order-delivery/index.vue

@@ -8,7 +8,8 @@
             <Form ref="formRef" class="g-form__container" @submit="onSubmit">
                 <CellGroup inset>
                     <Cell title="订单方向" :value="selectedRow.tHDetailEx.buyOrSell === BuyOrSell.Buy ? '买料' : '卖料'" />
-                    <Cell title="订单价格" :value="formatDecimal(selectedRow.tHDetailEx.holderPrice)" />
+                    <Cell title="订单价格"
+                        :value="formatDecimal(selectedRow.tHDetailEx.holderPrice, selectedRow.decimalPlace)" />
                     <Cell title="可用重量" :value="enableqty + getGoodsUnitName(selectedRow.goodsUnitID)" />
                     <Field name="OrderQty" :label="getTagName() + '重量'" :rules="formRules.OrderQty">
                         <template #input>
@@ -108,7 +109,7 @@ const onSubmit = () => {
     fullloading((hideLoading) => {
         marketOrderDeliveryApply({
             data: formData
-         }).then(() => {
+        }).then(() => {
             hideLoading('提交成功', 'success')
             closed(true)
         }).catch((err) => {

+ 1 - 1
src/packages/sbyj/views/order/list/index.vue

@@ -44,7 +44,7 @@
                             </li>
                             <li>
                                 <span>订单价格</span>
-                                <span>{{ item.tHDetailEx.holderPrice }}</span>
+                                <span>{{ formatDecimal(item.tHDetailEx.holderPrice, item.decimalPlace) }}</span>
                             </li>
                             <li>
                                 <span>已付定金</span>