yangfeng
2023-08-30 5bcbd90662d19331a4dde9047d2aa52e8ab5666c
src/views/supplierManage/supplier/AddNewProduct.vue
@@ -76,6 +76,17 @@
    // 保存
    saveClick() {
      console.log(this.editConfig.infomation)
      for (let i = 0; i < this.tableData.length; i++) {
        if (this.tableData[i].name.length === 0) {
          this.isNoProduct = true
          break
        } else {
          this.isNoProduct = false
        }
      }
      if (this.isNoProduct) {
        this.$message.error("产品名称不能为空")
      } else {
      if (this.editConfig.title === "添加") {
        createProduct({
          list: this.tableData
@@ -98,6 +109,7 @@
          }
        })
      }
      }
    },
    saveParams() {
      let data = this.editConfig.infomation