外协分配管理-插入一行-工艺能力-数据调整

dev-scheduling
ysn 9 hours ago
parent 450a6dcdd6
commit 588bf7a941
  1. 18
      src/views/oem/outsourcingAssignmentControl/index.vue

@ -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 {

Loading…
Cancel
Save