diff --git a/.env.development b/.env.development
index 334ec3f..5af98fb 100644
--- a/.env.development
+++ b/.env.development
@@ -9,7 +9,7 @@ VUE_APP_OA_URL_TYPE = '{"采购入库":51,"请示入库":54,"调拨入库":55,"
#正式
-VUE_APP_BASE_API = http://192.168.60.99:9004/
+VUE_APP_BASE_API = http://192.168.60.99:8004/
#VUE_APP_UPLOAD_API = http://192.168.60.99:9004/api/admin/upload-file
# 正式oa
diff --git a/src/views/inventorys/stocktaking.vue b/src/views/inventorys/stocktaking.vue
index aec0dfe..fb4f7e2 100644
--- a/src/views/inventorys/stocktaking.vue
+++ b/src/views/inventorys/stocktaking.vue
@@ -758,6 +758,17 @@
-
+
@@ -1455,7 +1466,10 @@ export default {
data: null,
type: 1, // 默认为日常检查
inventoryList: [],
- loading: false
+ loading: false,
+ pageIndex: 1,
+ pageSize: 10,
+ total: 0
},
summarySignaturePadCtx: null,
summarySignaturePadCanvas: null
@@ -2346,6 +2360,8 @@ export default {
planCount: planData.chart_total || '-',
actualCount: planData.chart_done || '-'
}
+ this.summaryModal.pageIndex = 1
+ this.summaryModal.pageSize = 10
this.summaryModal.visible = true
this.loadSummaryInventoryList()
this.$nextTick(() => {
@@ -2357,8 +2373,8 @@ export default {
this.summaryModal.loading = true
try {
const params = {
- page: 1,
- page_size: 9999, // 获取所有数据
+ page: this.summaryModal.pageIndex,
+ page_size: this.summaryModal.pageSize,
sort_name: 'status',
sort_type: 'DESC',
'filter[0][key]': 'material_infos_plan_id',
@@ -2387,6 +2403,7 @@ export default {
return 0
})
this.summaryModal.inventoryList = list
+ this.summaryModal.total = res.list.total || list.length
}
} catch (e) {
this.$Message.error('获取盘点物资列表失败')
@@ -2395,6 +2412,15 @@ export default {
this.summaryModal.loading = false
}
},
+ handleSummaryPageChange(page) {
+ this.summaryModal.pageIndex = page
+ this.loadSummaryInventoryList()
+ },
+ handleSummaryPageSizeChange(size) {
+ this.summaryModal.pageSize = size
+ this.summaryModal.pageIndex = 1
+ this.loadSummaryInventoryList()
+ },
async exportExcel(sheetName, planId) {
// 如果没有传入 planId,则使用 summaryModal.data.id(向后兼容)
const targetPlanId = planId || (this.summaryModal.data && this.summaryModal.data.id)
@@ -3187,6 +3213,20 @@ export default {
width: 160px;
}
+.inventory-detail-section {
+ max-width: 100%;
+}
+
+.inventory-table-wrapper {
+ max-width: 100%;
+ overflow-x: auto;
+ overflow-y: hidden;
+}
+
+.inventory-table-wrapper .ivu-table {
+ min-width: 1200px;
+}
+
.selector-item {
margin-right: 10px;
margin-bottom: 5px;
diff --git a/src/views/maintenance/maintenance_records.vue b/src/views/maintenance/maintenance_records.vue
index b0fd5d1..de8690a 100644
--- a/src/views/maintenance/maintenance_records.vue
+++ b/src/views/maintenance/maintenance_records.vue
@@ -429,15 +429,14 @@