Browse Source

fix(订单列表): 将订单总数量显示从浮点数改为整数

yz 2 ngày trước cách đây
mục cha
commit
94f0d6b240
1 tập tin đã thay đổi với 7 bổ sung7 xóa
  1. 7 7
      src/views/order/order/index-avue.vue

+ 7 - 7
src/views/order/order/index-avue.vue

@@ -9,7 +9,7 @@
       @back="handleFormBack"
       @save-success="handleFormSaveSuccess"
     />
-
+    
     <!-- 订单列表 -->
     <avue-crud
       v-else
@@ -60,7 +60,7 @@
 
       <!-- 订单总数量显示 -->
       <template slot="totalQuantity" slot-scope="{row}">
-        {{ parseFloat(row.totalQuantity || 0).toFixed(4) }}
+        {{ parseInt(row.totalQuantity || 0) }}
       </template>
 
       <!-- 订单状态显示 -->
@@ -142,7 +142,7 @@ export default {
       orderFormVisible: false,
       isEditMode: false,
       editOrderId: null,
-
+      
       // 事件常量
       ORDER_FORM_EVENTS
     }
@@ -249,7 +249,7 @@ export default {
         // 不调用done(),阻止默认弹窗打开
         return
       }
-
+      
       if (type === 'add') {
         // 新增模式也使用新的表单组件
         this.isEditMode = false
@@ -258,7 +258,7 @@ export default {
         // 不调用done(),阻止默认弹窗打开
         return
       }
-
+      
       // 其他模式(如查看)使用默认弹窗
       done()
     },
@@ -367,7 +367,7 @@ export default {
          })
 
          const response = await submitOrderToU9({ id: row.id })
-
+         
          if (response.data && response.data.success) {
            this.$message.success('订单提交成功')
            // 刷新列表数据
@@ -445,4 +445,4 @@ export default {
   color: #303133;
   font-weight: 600;
 }
-</style>
+</style>