|
|
|
@ -21,7 +21,7 @@ |
|
|
|
<el-button type="primary" plain @click="handleSave">保存 </el-button> |
|
|
|
<el-button type="primary" plain @click="handleSave">保存 </el-button> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
<template #oemId="scope"> |
|
|
|
<template #oemId="scope"> |
|
|
|
<el-select v-model="scope.row.oemId"> |
|
|
|
<el-select v-model="scope.row.oemId" @change="handleSupplierChange(scope.row)"> |
|
|
|
<el-option v-for="item in supplierData" :key="item.id" :label="item.ocName" :value="item.id"></el-option> |
|
|
|
<el-option v-for="item in supplierData" :key="item.id" :label="item.ocName" :value="item.id"></el-option> |
|
|
|
</el-select> |
|
|
|
</el-select> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
@ -388,6 +388,22 @@ export default { |
|
|
|
// this.loading = false |
|
|
|
// this.loading = false |
|
|
|
// }) |
|
|
|
// }) |
|
|
|
// }, |
|
|
|
// }, |
|
|
|
|
|
|
|
// 供应商选择变化时获取工艺能力 |
|
|
|
|
|
|
|
handleSupplierChange(row) { |
|
|
|
|
|
|
|
if (row.oemId) { |
|
|
|
|
|
|
|
getProcessAbility({ supplierId: row.oemId }).then(res => { |
|
|
|
|
|
|
|
row.abilityData = res.data.data || []; |
|
|
|
|
|
|
|
// 重置工艺能力选择 |
|
|
|
|
|
|
|
row.platingId = ''; |
|
|
|
|
|
|
|
}).catch(() => { |
|
|
|
|
|
|
|
row.abilityData = []; |
|
|
|
|
|
|
|
row.platingId = ''; |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
row.abilityData = []; |
|
|
|
|
|
|
|
row.platingId = ''; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
async onLoad() { |
|
|
|
async onLoad() { |
|
|
|
this.loading = true; |
|
|
|
this.loading = true; |
|
|
|
try { |
|
|
|
try { |
|
|
|
|