问题修改

master
zhangdi 3 days ago
parent 2a094ec06c
commit 18235fbc88
  1. 8
      src/views/firstOrder/components/batchSelectionDialog.vue
  2. 4
      src/views/firstOrder/outbound.vue

@ -7,7 +7,7 @@
<template slot-scope="props"> <template slot-scope="props">
<!-- 关联表单列表带复选框 --> <!-- 关联表单列表带复选框 -->
<el-table :data="props.row.oneFormList || []" size="mini" style="width: 100%" <el-table :data="props.row.oneFormList || []" size="mini" style="width: 100%"
@selection-change="(val) => handleSelectionChange(val, props.row)" border> @selection-change="(val) => handleSelectionChange(val, props.row)" border ref="innerTable">
<el-table-column type="selection" width="55" /> <el-table-column type="selection" width="55" />
<el-table-column type="index" label="#" width="55" /> <el-table-column type="index" label="#" width="55" />
<el-table-column label="物料名称" prop="materialName" /> <el-table-column label="物料名称" prop="materialName" />
@ -109,7 +109,11 @@ export default {
item => item.parentMaterialId !== parentRow.materialId item => item.parentMaterialId !== parentRow.materialId
); );
this.selectedRows.push(...selectionWithParent); this.selectedRows.push(...selectionWithParent);
// selection
const lastSelected = selection[selection.length - 1];
// UI
this.$refs.innerTable.toggleRowSelection(lastSelected, false);
return return
} }

@ -122,7 +122,7 @@ export default {
{ {
label: "需求单名称", label: "需求单名称",
prop: "demandEndInfo", prop: "demandEndInfo",
width: 180, width: 140,
headerAlign: "center", headerAlign: "center",
align: "center", align: "center",
formatter: (row, column) => { formatter: (row, column) => {
@ -172,6 +172,7 @@ export default {
search: false, search: false,
headerAlign: "center", headerAlign: "center",
align: "center", align: "center",
width: 110,
}, },
{ {
label: "物资类型", label: "物资类型",
@ -217,6 +218,7 @@ export default {
label: "状态", label: "状态",
prop: "status", prop: "status",
type: "select", type: "select",
width: 110,
dicData: [ dicData: [
{ {
label: "暂存", label: "暂存",

Loading…
Cancel
Save