王震
2023-12-13 67da82f0b0c24df5f19bbfcfec63801d9ae902d8
src/views/basic/part/part-form.vue
@@ -534,7 +534,6 @@
          // 去除零件编号两边的空格
          this.dataForm.partNo = this.dataForm.partNo.trim()
          if (this.dataForm.id) {
            console.log(this.dataForm)
            putObj(this.dataForm)
              .then((data) => {
                this.$message.success('修改成功')
@@ -544,7 +543,7 @@
              })
              .catch((error) => {
                this.isSubmit = false
                console.log(error)
                console.error(error)
              })
          } else {
            addObj(this.dataForm)
@@ -556,7 +555,7 @@
              })
              .catch((error) => {
                this.isSubmit = false
                console.log(error)
                console.error(error)
              })
          }
        } else {