Commit 9c4f6391fa740286417b88f9553b44da9287463b

Authored by 陈翱
1 parent 098bb0ca

修复入库组盘选择容器页面控制台报错和分页点击无效的bug

ant-design-vue-jeecg/src/views/system/receipt/modules/SelectInvContainerHeader.vue
@@ -50,11 +50,13 @@ @@ -50,11 +50,13 @@
50 :scroll="{ x: true }" 50 :scroll="{ x: true }"
51 bordered 51 bordered
52 :columns="columns" 52 :columns="columns"
  53 + rowKey="id"
53 :dataSource="dataSource" 54 :dataSource="dataSource"
54 :pagination="ipagination" 55 :pagination="ipagination"
55 :loading="loading" 56 :loading="loading"
56 :rowSelection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange,type:'radio'}" 57 :rowSelection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange,type:'radio'}"
57 class="j-table-force-nowrap" 58 class="j-table-force-nowrap"
  59 + @change="handleTableChange"
58 > 60 >
59 <span slot="zoneCode" slot-scope="zoneCode"> 61 <span slot="zoneCode" slot-scope="zoneCode">
60 <a-tag :key="zoneCode" color=blue> 62 <a-tag :key="zoneCode" color=blue>
@@ -91,7 +93,7 @@ export default { @@ -91,7 +93,7 @@ export default {
91 components: {InventoryDetailList}, 93 components: {InventoryDetailList},
92 data() { 94 data() {
93 return { 95 return {
94 - title: "选择托盘", 96 + title: "选择容器",
95 width: 1200, 97 width: 1200,
96 visible: false, 98 visible: false,
97 model: {}, 99 model: {},
@@ -277,7 +279,7 @@ export default { @@ -277,7 +279,7 @@ export default {
277 this.visible = false; 279 this.visible = false;
278 }, 280 },
279 onSelectChange(selectedRowKeys, selectionRows) { 281 onSelectChange(selectedRowKeys, selectionRows) {
280 - this.selectedMainId = selectionRows[0].inventoryHeaderId; 282 + this.selectedMainId = ''+selectionRows[0].inventoryHeaderId+'';
281 this.selectedCode = selectionRows[0].containerCode; 283 this.selectedCode = selectionRows[0].containerCode;
282 this.selectedRowKeys = selectedRowKeys; 284 this.selectedRowKeys = selectedRowKeys;
283 this.selectRecord = selectionRows; 285 this.selectRecord = selectionRows;