WangHan
2025-04-03 a1b85ef72062ca80db35546e4216dd564f3e0f57
admin-web/src/views/foundation/material/edit.vue
@@ -107,7 +107,7 @@
  },
  async created() {
    if (this.setting.id) {
      await goodsDetail(this.setting.id).then(res => {
      await goodsDetail({'id': this.setting.id}).then(res => {
        this.formData = res
        if (!this.formData.agencyId) {
          this.formData.agencyId = this.userInfo.tenantId
@@ -160,9 +160,7 @@
              } else {
                this.$message.error('保存失败')
              }
            }).catch(() => {
              this.loading = false
            });
            })
          } else {
            params.orgId = this.setting.orgId
            addGoods(params).then(res => {
@@ -174,9 +172,7 @@
              } else {
                this.$message.error('保存失败')
              }
            }).catch(() => {
              this.loading = false
            });
            })
          }
        } else {
          this.$message.error('校验未通过,请检查。')