skyouc
2025-08-01 53186966cbf02e294358ebe720bdb284305a61b7
zy-asrs-admin/src/views/out/flat/index.vue
@@ -10,9 +10,15 @@
        </div>
    </div>
    <a-table :columns="columns" :data-source="datasource" bordered :defaultExpandAllRows="false"
    <!-- <a-table :row-selection="{ selectedRowKeys: state.selectedRowKeys, onChange: onSelectChange }"
      :data-source="tableData.records" :defaultExpandAllRows="false" :key="TABLE_KEY" rowKey="id"
      :pagination="{ total: tableData.total, onChange: onPageChange }"
      :scroll="{ y: 768, scrollToFirstRowOnChange: true }" :columns="columns" @resizeColumn="handleResizeColumn"
      :loading="state.loading"> -->
    <a-table :columns="columns" :data-source="tableData.records" bordered :defaultExpandAllRows="false"
        :row-selection="{ selectedRowKeys: state.selectedRowKeys, onChange: onSelectChange }"
        :scroll="{ y: columns.length * 140 }" style="margin: 5px">
        :pagination="{ total: tableData.total, onChange: onPageChange }" :scroll="{ y: columns.length * 140 }"
        style="margin: 5px">
        <template #bodyCell="{ column, record, index }">
            <template v-if="column.key === 'number'">
                {{ index + 1 }}
@@ -115,6 +121,9 @@
                // {key: 'operate', title: '操作', dataIndex: 'operate'}
            ],
            datasource: [],
            tableData: {},
            current: 1,
            pageSize: 10,
            childList: [],
            show: false,
            isPrint: false,
@@ -178,6 +187,13 @@
            });
        },
         onPageChange(page, size) {
            this.current = page;
            this.pageSize = size;
            this.getOutFlatSheet();
        },
        //删除当前行
        removeRow(record) {
            let that = this
@@ -200,11 +216,13 @@
        },
        getOutFlatSheet() {
            let that = this
            post('/api/pick/flat/page', { page: { currnt: 1, size: 10 }, params: { pickNo: this.searchParam.pickNo, waveNo: this.searchParam.waveNo } }).then((resp) => {
            post('/api/pick/flat/page', { page: { current: this.current, size: this.pageSize }, params: { pickNo: this.searchParam.pickNo, waveNo: this.searchParam.waveNo } }).then((resp) => {
                let result = resp.data;
                if (result.code == 200) {
                    // message.success(formatMessage('page.add.success', '成功'));
                    that.datasource = result.data
                    this.tableData = result.data;
                    console.log(result);
                    // that.datasource = result.data
                } else {
                    message.error(result.msg);
                }