liqianyi 2 жил өмнө
parent
commit
2615dad8a5

+ 8 - 3
src/views/modules/cus/communicate-add-or-update.vue

@@ -74,6 +74,12 @@
               align="center"
               label="产品名称">
             </el-table-column>
+            <el-table-column
+              prop="productSpecifications"
+              header-align="center"
+              align="center"
+              label="规格">
+            </el-table-column>
             <el-table-column
               prop="cnt"
               header-align="center"
@@ -230,9 +236,7 @@
             })
             if (data.data.cusRCommProductVOS) {
               data.data.cusRCommProductVOS.forEach((item) => {
-                this.cusRCommProductVOS.push({
-                  ...item
-                })
+                this.addItem(item)
               })
             }
           }
@@ -311,6 +315,7 @@
       },
       // 删除产品项
       deleteProductHandle (productId) {
+        console.log(productId)
         this.cusRCommProductVOS.splice(this.cusRCommProductVOS.findIndex((item) => item.productId === productId))
       }
     }