浏览代码

选择商品问题处理

chenzhfa 2 年之前
父节点
当前提交
c9feb3d752

+ 1 - 1
src/components/OrderGoodsList/index.less

@@ -197,7 +197,7 @@
 }
 }
 .goodsTitleName {
 .goodsTitleName {
   color: #333;
   color: #333;
-  width: 200px;
+  width: 250px;
   font-size: 14px;
   font-size: 14px;
   white-space: nowrap;
   white-space: nowrap;
   text-overflow: ellipsis;
   text-overflow: ellipsis;

+ 32 - 22
src/components/SelectDialog/TreeList/index.js

@@ -34,7 +34,7 @@ class TreeListModal extends Component {
       {
       {
         title: "商品名称",
         title: "商品名称",
         dataIndex: "displayName",
         dataIndex: "displayName",
-        width: "150px",
+        width: "250px",
         key: "displayName",
         key: "displayName",
         render: (text) => (
         render: (text) => (
           <div className={styles.goodsName}>
           <div className={styles.goodsName}>
@@ -42,6 +42,16 @@ class TreeListModal extends Component {
           </div>
           </div>
         )
         )
       },
       },
+      {
+        title: "型号",
+        dataIndex: "model",
+        key: "model"
+      },
+      {
+        title: "规格",
+        dataIndex: "specification",
+        key: "specification"
+      },
       {
       {
         title: "价格",
         title: "价格",
         dataIndex: "baseDiscountPrice",
         dataIndex: "baseDiscountPrice",
@@ -52,27 +62,27 @@ class TreeListModal extends Component {
           </span>
           </span>
         )
         )
       },
       },
-      {
-        title: "版本号",
-        dataIndex: "version",
-        key: "version",
-        render: (text, record, index) => (
-          <span>
-            {goodsVersion(record.version)}
-          </span>
-        )
-      },
-      {
-        title: "所属产品",
-        dataIndex: "productName",
-        width: "120px",
-        key: "productName",
-        render: (text) => (
-          <div className={styles.productName}>
-            <span title={text}>{text}</span>
-          </div>
-        )
-      },
+      // {
+      //   title: "版本号",
+      //   dataIndex: "version",
+      //   key: "version",
+      //   render: (text, record, index) => (
+      //     <span>
+      //       {goodsVersion(record.version)}
+      //     </span>
+      //   )
+      // },
+      // {
+      //   title: "所属产品",
+      //   dataIndex: "productName",
+      //   width: "120px",
+      //   key: "productName",
+      //   render: (text) => (
+      //     <div className={styles.productName}>
+      //       <span title={text}>{text}</span>
+      //     </div>
+      //   )
+      // },
       {
       {
         title: "计量单位",
         title: "计量单位",
         dataIndex: "assistUnitName",
         dataIndex: "assistUnitName",

+ 1 - 1
src/components/SelectDialog/TreeList/index.less

@@ -26,7 +26,7 @@
 }
 }
 .table {
 .table {
   .goodsName {
   .goodsName {
-    width: 140px;
+    width: 240px;
     overflow: hidden;
     overflow: hidden;
     text-overflow: ellipsis;
     text-overflow: ellipsis;
     white-space: nowrap;
     white-space: nowrap;

+ 1 - 1
src/models/cartList.js

@@ -63,7 +63,7 @@ export default {
       const response = yield call(getCartNumDataAPI, payload);
       const response = yield call(getCartNumDataAPI, payload);
       yield put({
       yield put({
         type: "cartNum",
         type: "cartNum",
-        // cartNum: response
+        cartNum: response
       });
       });
     },
     },
     // 添加购物车
     // 添加购物车