Преглед изворни кода

修改订单编号为serialNo字段

zhanghe пре 7 година
родитељ
комит
72a39a9eb5
3 измењених фајлова са 7 додато и 6 уклоњено
  1. 2 1
      src/routes/Order/Edit/OrderProfile.js
  2. 4 4
      src/routes/Order/List/table.js
  3. 1 1
      src/utils/config.js

+ 2 - 1
src/routes/Order/Edit/OrderProfile.js

@@ -97,6 +97,7 @@ export default class OrderProfile extends Component {
     const { currentItem } = orderDetail;
     const {
       id,
+      serialNo,
       gmtCreated,
       userCode,
       provinceCode,
@@ -131,7 +132,7 @@ export default class OrderProfile extends Component {
     // 订单信息 - table data
     const orderInfoTableDatas = [{
       field: '订单编号',
-      value: id,
+      value: serialNo,
       key: 1,
     }, {
       field: '下单时间',

+ 4 - 4
src/routes/Order/List/table.js

@@ -30,10 +30,10 @@ export default class TableList extends PureComponent {
 
     const columns = [{
       title: '订单编号',
-      dataIndex: 'id',
-      key: 'id',
+      dataIndex: 'serialNo',
+      key: 'serialNo',
       fixed: 'left',
-      width: 330,
+      width: 180,
     }, {
       title: '终端编号',
       dataIndex: 'userCode',
@@ -100,7 +100,7 @@ export default class TableList extends PureComponent {
         columns={columns}
         rowKey={record => record.id}
         {...tableProps}
-        scroll={{ x: 1500 }}
+        scroll={{ x: 1300 }}
       />
     );
   }

+ 1 - 1
src/utils/config.js

@@ -44,7 +44,7 @@ Codes.CODE_SEASON = '季';
 Codes.CODE_ITEM = '件';
 
 module.exports = {
-  apiHost: 'http://192.168.1.40:8500',
+  apiHost: 'http://tt-cms.api.ai160.com',
   ossHost: 'http://efunimgs.oss-cn-beijing.aliyuncs.com',
   // 每页返回数据量
   pageSize: 20,