| | |
| | | v-model="scope.row[item.prop]" |
| | | placeholder="请选择" |
| | | size="mini" |
| | | filterable |
| | | style="width: 80%" |
| | | @change=" |
| | | (val) => { |
| | |
| | | v-model="locacionName" |
| | | placeholder="请选择" |
| | | size="mini" |
| | | filterable |
| | | style="width: 80%" |
| | | @change=" |
| | | (val) => { |
| | |
| | | <!-- 产品 --> |
| | | <el-form-item v-else-if="item.product" label=" " :prop="'tableData.' + scope.$index + '.' + item.prop"> |
| | | <div class="custom-name"> |
| | | <span v-if="scope.row.isEdit || scope.row.editable">{{ scope.row[item.prop] }}</span> |
| | | <span v-if="scope.row.isEdit || scope.row.editable">{{ |
| | | scope.row[item.prop]?.label ?? scope.row[item.prop] |
| | | }}</span> |
| | | <el-select |
| | | v-else |
| | | v-model="scope.row[item.prop]" |
| | | placeholder="请选择" |
| | | size="mini" |
| | | filterable |
| | | style="width: 80%" |
| | | @change=" |
| | | (val) => { |
| | |
| | | }) |
| | | }, |
| | | selProductNameClick(item) { |
| | | console.log(item) |
| | | this.tableList.tableData.map((ite) => { |
| | | this.productIndex = this.tableList.tableData.length - 1 |
| | | this.tableList.tableData.map((ite, index) => { |
| | | console.log(ite) |
| | | // if (ite.productName === item.name) { |
| | | ite.productId = item.id |
| | | ite.productName = item.name |
| | | ite.amount = item.amount |
| | | ite.unit = item.unit |
| | | // } |
| | | if (index === this.productIndex) { |
| | | ite.productId = item.id |
| | | ite.productName = item.name |
| | | ite.amount = item.amount |
| | | ite.unit = item.unit |
| | | } |
| | | }) |
| | | console.log(this.tableList.tableData) |
| | | }, |
| | | // 选择产品 |
| | | selProductClick(item) { |