haoxuan
2024-04-12 a8e09b3e46e3f15725870a499d408a6ecd04c7f1
只有一条数据的时候,新增和放弃操作的问题修改
1个文件已修改
12 ■■■■■ 已修改文件
src/views/productManage/silkRegisterForm/addPage.vue 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/productManage/silkRegisterForm/addPage.vue
@@ -545,7 +545,15 @@
          }, // 下次回访日期
        ],
      },
      tableData: [],
      tableData: [
        {
            productId: 1,
            position: null,
            fineness: null,
            quantity: null,
            sum: null,
          }
        ],
      registerId: "",
      inspectID: "",
      isRegisterSave: false,
@@ -772,6 +780,7 @@
    },
    // 产品新增
    addProductClick() {
      debugger
      this.productId++;
      this.tableData.push({
        productId: this.productId,
@@ -842,6 +851,7 @@
            sum: "",
          },
        ];
        this.tableData =this.tableList.tableData
      } else {
        this.form.measureFineness = "";
        this.form.twiceChange = "";