| | |
| | | <el-table-column label="材料名称"> |
| | | <template #default="{ row, $index }"> |
| | | <el-tree-select |
| | | v-if="props.type === 'add'" |
| | | v-if="!isDetail && !row.productById" |
| | | v-model="row.productById" |
| | | placeholder="请选择" |
| | | clearable |
| | |
| | | @change="(val) => getModels(val, row, $index)" |
| | | :data="productOptions" |
| | | :render-after-expand="false" |
| | | :disabled="isDetail" |
| | | style="width: 100%" |
| | | /> |
| | | <span v-else>{{ row.name }}</span> |
| | |
| | | </template> |
| | | <template #default="{ row }"> |
| | | <el-select |
| | | v-if="props.type === 'add'" |
| | | v-if="!isDetail && !row.productModelId" |
| | | v-model="row.productModelId" |
| | | placeholder="请选择规格" |
| | | filterable |
| | | clearable |
| | | @change="(val) => handleMaterialModelChange(val, row)" |
| | | :disabled="isDetail" |
| | | style="width: 100%" |
| | | > |
| | | <el-option |
| | | v-for="item in row.modelOptions" |