Browse Source

订单详情增加商品价格

zhanghe 6 years ago
parent
commit
966693ca84
2 changed files with 10 additions and 4 deletions
  1. 5 2
      src/routes/Order/Edit/SubOrderProfile.js
  2. 5 2
      src/routes/Order/Edit/orderProfile.js

+ 5 - 2
src/routes/Order/Edit/SubOrderProfile.js

@@ -216,9 +216,12 @@ export default class SubOrderProfile extends Component {
       key: 3,
       width: '15%',
     }, {
-      title: '商品售价(元)',
-      dataIndex: 'merchantPrice',
+      title: '商品价格',
       key: 4,
+      render: (_, record) => {
+        const { chargeUnit, merchantPrice }  = record;
+        return `¥${merchantPrice}/${chargeUnit}`;
+      },
       width: '25%',
     }, {
       title: '商品数量',

+ 5 - 2
src/routes/Order/Edit/orderProfile.js

@@ -199,9 +199,12 @@ export default class OrderProfile extends Component {
       key: 3,
       width: '15%',
     }, {
-      title: '商品售价(元)',
-      dataIndex: 'merchantPrice',
+      title: '商品价格',
       key: 4,
+      render: (_, record) => {
+        const { merchantPrice, chargeUnit } = record;
+        return `¥${merchantPrice}/${chargeUnit}`;
+      },
       width: '20%',
     }, {
       title: '商品数量',