跟新bug

This commit is contained in:
2024-11-20 13:47:55 +08:00
parent 342e83ab41
commit 10fd959c9d
6 changed files with 47 additions and 36 deletions

View File

@@ -69,7 +69,7 @@
</el-table-column>
<el-table-column prop="workOrderNum" label="工单数量" width="140">
<template v-slot="scope">
<el-button @click="handleRoute" type="text">
<el-button @click="handleRoute(scope.row)" type="text">
{{ scope.row.workOrderNum }}
</el-button>
</template>
@@ -499,13 +499,13 @@ export default {
this.splitWorkOrderCancel();
this.getList();
},
async handleRoute() {
async handleRoute(row) {
const res = await orderAssignmentList({
orderIdList: [this.injectData.id],
orderIdList: [row.id],
});
console.log(res.data);
let arr = [];
res.data[this.injectData.id].forEach((ele) => {
res.data[row.id].forEach((ele) => {
arr.push(ele.workOrderId);
});
let woIdString = arr.join(',');