浏览代码

沟通:修改表单

liqianyi 2 年之前
父节点
当前提交
2615dad8a5
共有 1 个文件被更改,包括 8 次插入3 次删除
  1. 8 3
      src/views/modules/cus/communicate-add-or-update.vue

+ 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))
       }
     }