| | |
| | | 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([]); |
| | |
| | | form.value.productName = ""; |
| | | if (type === "edit") { |
| | | form.value.productName = data.productName; |
| | | editId.value = data.id; |
| | | editParentId.value = data.parentId; |
| | | } |
| | | }; |
| | | // 打开规格型号弹框 |
| | |
| | | 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("提交成功"); |