Przeglądaj źródła

管理后台-订单详情:金额

panyong 3 lat temu
rodzic
commit
3bd643d1a0

+ 18 - 6
htmldev/manage/src/views/business/oms/detail/index.vue

@@ -68,9 +68,21 @@
         <el-table-column label="商品sku" prop="product_sku"></el-table-column>
         <el-table-column label="商品附加" prop="product_attach"></el-table-column>
         <el-table-column label="数量" prop="product_num"></el-table-column>
-        <el-table-column label="商品单价(元)" prop="product_unit_price"></el-table-column>
-        <el-table-column label="商品总价格(元)" prop="product_price"></el-table-column>
-        <el-table-column label="退款金额(元)" prop="product_refund_price"></el-table-column>
+        <el-table-column label="商品单价(元)">
+          <template slot-scope="scope">
+            <p>{{ scope.row.product_unit_price | fen2Yuan }}</p>
+          </template>
+        </el-table-column>
+        <el-table-column label="商品总价格(元)">
+          <template slot-scope="scope">
+            <p>{{ scope.row.product_price | fen2Yuan }}</p>
+          </template>
+        </el-table-column>
+        <el-table-column label="退款金额(元)">
+          <template slot-scope="scope">
+            <p>{{ scope.row.product_refund_price | fen2Yuan }}</p>
+          </template>
+        </el-table-column>
         <el-table-column label="商品状态" fixed="right">
           <template slot-scope="scope">
             <p>{{ ['待支付', '已支付', '全部退款', '部分退款', '已取消'][scope.row.product_status] }}</p>
@@ -90,9 +102,9 @@
         </el-row>
         <el-row>
           <el-col :span="4" class="table-cell">¥{{ order.order_price | fen2Yuan }}</el-col>
-          <el-col :span="5" class="table-cell">-¥{{ order.order_refund_price }}</el-col>
-          <el-col :span="5" class="table-cell">-¥{{ order.order_coupon_price }}</el-col>
-          <el-col :span="5" class="table-cell">¥{{ order.order_prepare_price }}</el-col>
+          <el-col :span="5" class="table-cell">-¥{{ order.order_refund_price | fen2Yuan }}</el-col>
+          <el-col :span="5" class="table-cell">-¥{{ order.order_coupon_price | fen2Yuan }}</el-col>
+          <el-col :span="5" class="table-cell">¥{{ order.order_prepare_price | fen2Yuan }}</el-col>
           <el-col :span="5" class="table-cell">¥{{ order.order_pay_price | fen2Yuan }}</el-col>
         </el-row>
       </div>

+ 2 - 2
htmldev/manage/src/views/business/oms/list/index.vue

@@ -36,7 +36,7 @@
       <el-table-column label="订单ID" prop="id" width="80"></el-table-column>
       <el-table-column label="订单编号" prop="order_number" width="200"></el-table-column>
       <el-table-column label="桌号" prop="place_number"></el-table-column>
-      <el-table-column label="点单用户" prop="order_user_name"></el-table-column>
+      <el-table-column label="点单用户" prop="order_user_name" width="160"></el-table-column>
       <el-table-column label="手机号" prop="order_user_phone" width="120"></el-table-column>
       <el-table-column label="商品数量" prop="product_num"></el-table-column>
       <el-table-column label="下单时间" prop="created_at" width="180"></el-table-column>
@@ -45,7 +45,7 @@
           <p>{{ ['待支付', '已支付', '全部退款', '部分退款', '已取消'][scope.row.order_status] }}</p>
         </template>
       </el-table-column>
-      <el-table-column label="用户支付订单编号" prop="order_official_number" width="200"></el-table-column>
+      <el-table-column label="用户支付订单编号" prop="order_official_number" width="240"></el-table-column>
       <el-table-column label="操作" fixed="right">
         <template slot-scope="scope">
           <el-button type="text"