| | |
| | | <el-button type="primary" |
| | | @click="openProDia1('addOne')" |
| | | style="margin-left: 10px">新增产品大类</el-button> |
| | | <el-button type="primary" |
| | | @click="getloadData" |
| | | style="margin-left: 10px">拉取数据</el-button> |
| | | </div> |
| | | <div ref="containerRef"> |
| | | <el-tree ref="tree" |
| | |
| | | addOrEditProductConfig, |
| | | updateOrEditProductConfig, |
| | | delProductConfig, |
| | | loadData, |
| | | } from "@/api/basicData/newProduct.js"; |
| | | import ImportExcel from "./ImportExcel/index.vue"; |
| | | |
| | |
| | | const expandedKeys = ref([]); |
| | | const inventoryCategoryList = ref([]); |
| | | const materialTypeList = ref([]); |
| | | |
| | | const getloadData = () => { |
| | | loadData() |
| | | .then(res => { |
| | | getInventoryCategoryList(); |
| | | getMaterialTypeList(); |
| | | getProductTreeList(); |
| | | tableData.value = []; |
| | | isShowButton.value = false; |
| | | }) |
| | | .catch(err => { |
| | | console.error("拉取失败:", err); |
| | | }); |
| | | }; |
| | | |
| | | // 获取存货类别列表 |
| | | const getInventoryCategoryList = () => { |
| | |
| | | gap: 20px; |
| | | } |
| | | .left { |
| | | width: 450px; |
| | | min-width: 450px; |
| | | width: 465px; |
| | | min-width: 465px; |
| | | background: #ffffff; |
| | | border-radius: 8px; |
| | | box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1); |