Commit 9c4f6391fa740286417b88f9553b44da9287463b

Authored by 陈翱
1 parent 098bb0ca

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

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