gaoluyang
4 天以前 81fb8afca320a12c38d868edf392e6bf9a665a0f
src/views/basicData/product/index.vue
@@ -288,6 +288,8 @@
const search = ref("");
const currentId = ref("");
const currentParentId = ref("");
const editId = ref("");
const editParentId = ref("");
const operationType = ref("");
const treeLoad = ref(false);
const list = ref([]);
@@ -395,6 +397,8 @@
  form.value.productName = "";
  if (type === "edit") {
    form.value.productName = data.productName;
    editId.value = data.id;
    editParentId.value = data.parentId;
  }
};
// 打开规格型号弹框
@@ -419,8 +423,8 @@
        form.value.id = "";
        form.value.parentId = "";
      } else {
        form.value.id = currentId.value;
        form.value.parentId = "";
        form.value.id = editId.value;
        form.value.parentId = editParentId.value;
      }
      addOrEditProduct(form.value).then((res) => {
        proxy.$modal.msgSuccess("提交成功");