| | |
| | | <!-- 位置 --> |
| | | <el-form-item v-else-if="item.location" 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 }}</span> |
| | | <el-select |
| | | v-else |
| | | v-model="scope.row[item.prop]" |
| | |
| | | const list = res.data.map((item) => { |
| | | return { |
| | | ...item, |
| | | areaName: item.area.jointName, |
| | | subLocation: item.location.jointName, |
| | | areaName: {label:item.area.jointName,value:item.area.id}, |
| | | subLocation: {label:item.location.jointName,value:item.location.id}, |
| | | productName: item.product.name, |
| | | productCategory: item.productCategory.name, |
| | | isSet: false, |