From 9d017720cc0df497f5764121202fde3f8be16e82 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期五, 24 四月 2026 14:02:01 +0800
Subject: [PATCH] 进销存new 1.不需要再配置"screen"了
---
src/views/customerService/feedbackRegistration/index.vue | 20 ++++++++++++--------
1 files changed, 12 insertions(+), 8 deletions(-)
diff --git a/src/views/customerService/feedbackRegistration/index.vue b/src/views/customerService/feedbackRegistration/index.vue
index 5606552..40d99be 100644
--- a/src/views/customerService/feedbackRegistration/index.vue
+++ b/src/views/customerService/feedbackRegistration/index.vue
@@ -255,7 +255,7 @@
},
{
label: "闂鎻忚堪",
- prop: "disRes",
+ prop: "proDesc",
width:300,
},
{
@@ -267,7 +267,6 @@
{
dataType: "action",
label: "鎿嶄綔",
- align: "center",
fixed: 'right',
operation: [
{
@@ -299,6 +298,8 @@
Object.keys(searchForm.value).forEach(key => {
searchForm.value[key] = ""
})
+ page.current = 1;
+ getList();
}
// 琛ㄦ牸閫夋嫨鏁版嵁
const handleSelectionChange = (selection) => {
@@ -402,15 +403,19 @@
});
};
+const getStatsCountByStatus = (list, status) => {
+ if (!Array.isArray(list)) return 0;
+ return list.find((item) => item?.status === status)?.count || 0;
+};
+
// 鑾峰彇缁熻鏁版嵁骞跺埛鏂伴《閮ㄥ崱鐗�
const getSalesLedgerDetails = () => {
getSalesLedgerDetail({}).then((res) => {
if (res.code === 200) {
- statsList.value[0].count = res.data.filter((item) => item.status === 3)[0].count;
- statsList.value[1].count = res.data.filter((item) => item.status === 2)[0].count;
- statsList.value[2].count = res.data.filter((item) => item.status === 1)[0].count;
-
- // });
+ const statsData = Array.isArray(res.data) ? res.data : [];
+ statsList.value[0].count = getStatsCountByStatus(statsData, 3);
+ statsList.value[1].count = getStatsCountByStatus(statsData, 2);
+ statsList.value[2].count = getStatsCountByStatus(statsData, 1);
}
});
}
@@ -489,7 +494,6 @@
.table_list {
height: calc(100vh - 380px);
- min-height: 360px;
background: #fff;
margin-top: 20px;
display: flex;
--
Gitblit v1.9.3