| | |
| | | v-for="item in productTypeNameOptions" |
| | | :key="item.id" |
| | | :label="item.name" |
| | | :value="item.id" |
| | | :value="{ |
| | | value: item.id, |
| | | label: item.name, |
| | | }" |
| | | > |
| | | </el-option> |
| | | </el-select> |
| | |
| | | }, |
| | | // 选择产品 |
| | | selProductClick(item) { |
| | | console.log(item) |
| | | this.tableList.tableData.map((ite) => { |
| | | if (ite.productName.label === item.label) { |
| | | ite.productId = item.value |
| | |
| | | }, |
| | | // 选择产品类型 |
| | | selProductTypeClick(item) { |
| | | this.tableList.tableData.map((ite) => { |
| | | if (ite.productCategory.label === item.label) { |
| | | ite.productCategoryId = item.value |
| | | ite.productCategory = item.label |
| | | } |
| | | }) |
| | | if (this.isinventory) { |
| | | this.getProductCategoryList() |
| | | } |