From c2b88a03f3d0d5ebe92949e64d17ee4d0ac3f6b7 Mon Sep 17 00:00:00 2001
From: skyouc
Date: 星期二, 09 九月 2025 15:14:00 +0800
Subject: [PATCH] 发货清空缓存站点

---
 zy-asrs-admin/src/views/out/flat/index.vue |   26 ++++++++++++++++++++++----
 1 files changed, 22 insertions(+), 4 deletions(-)

diff --git a/zy-asrs-admin/src/views/out/flat/index.vue b/zy-asrs-admin/src/views/out/flat/index.vue
index dc7f0fc..8676f68 100644
--- a/zy-asrs-admin/src/views/out/flat/index.vue
+++ b/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);
                 }

--
Gitblit v1.9.1