This commit is contained in:
shilixia 2021-10-25 11:22:45 +08:00
parent c378f99965
commit 6111646dda
2 changed files with 13 additions and 3 deletions

View File

@ -74,7 +74,7 @@
<el-link type="primary" <el-link type="primary"
v-else v-else
@click="handleWork(scope)" @click="handleWork(scope)"
>子计划</el-link> >子计划</el-link>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -305,6 +305,7 @@ export default {
await createsubplan(scope.row.id).then((res) => { await createsubplan(scope.row.id).then((res) => {
if (res.code >= 200) { if (res.code >= 200) {
this.$message.success("生成子计划成功!"); this.$message.success("生成子计划成功!");
this.$router.push({name: "work", params: { id: scope.row.id }, })
this.getplanList() this.getplanList()
} }
}); });

View File

@ -12,6 +12,7 @@
<el-table <el-table
:data="orderList.results" :data="orderList.results"
border border
ref="multipleTable"
fit fit
stripe stripe
style="width: 100%" style="width: 100%"
@ -233,7 +234,7 @@ export default {
this.listLoading = false; this.listLoading = false;
}); });
}, },
handleSelectionChange(row) { handleSelectionChange(rows) {
let _this=this let _this=this
_this.mutipID=[] _this.mutipID=[]
row.forEach((item) => { row.forEach((item) => {
@ -243,12 +244,20 @@ export default {
}); });
}); });
setTimeout(() => {
rows.forEach(row => {
this.$refs.multipleTable.toggleRowSelection(row);
});
}, 1)
}, },
//物料计算 //物料计算
handlecount() handlecount()
{ {
createresource(this.mutipID).then((res) => { createresource(this.mutipID).then((res) => {
if (res.code >= 200) { if (res.code >= 200) {
this.materialpzTable=res.data; this.materialpzTable=res.data;