From 0a3a59432a0ff8d4169ad7484250a0a0d5bed1f9 Mon Sep 17 00:00:00 2001
From: skyouc
Date: 星期四, 09 一月 2025 19:50:58 +0800
Subject: [PATCH] # 1. 波次预览重复问题 2. PDA组拖超过3个物料后,组拖按钮被遮挡 3. 平库入库物料ID为空 4. PDA出库成功后,界面数据重置,避免重复操作 5. 入库单历史档,按时间倒序排列
---
zy-asrs-flow/src/utils/common-util.js | 46 +++++++++++++++++++++++-----------------------
1 files changed, 23 insertions(+), 23 deletions(-)
diff --git a/zy-asrs-flow/src/utils/common-util.js b/zy-asrs-flow/src/utils/common-util.js
index b8939ba..c15c0cc 100644
--- a/zy-asrs-flow/src/utils/common-util.js
+++ b/zy-asrs-flow/src/utils/common-util.js
@@ -1,24 +1,24 @@
-export const generateColumnsState = (cols) => cols.reduce((acc, { dataIndex, show = true }) => ({ ...acc, [dataIndex]: { show: show } }), {});
-
-
-export const repairBug = (tabKey, key, val) => {
- const stateStr = localStorage.getItem(tabKey);
- if (stateStr) {
- const state = JSON.parse(stateStr);
- const oldVal = state[key]?.show;
- let hasVal = false;
- if (oldVal === true) {
- hasVal = true;
- }
- if (oldVal === false) {
- hasVal = true;
- }
- if (hasVal) {
- return oldVal;
- } else {
- return val;
- }
- } else {
- return val;
- }
+export const generateColumnsState = (cols) => cols.reduce((acc, { dataIndex, show = true }) => ({ ...acc, [dataIndex]: { show: show } }), {});
+
+
+export const repairBug = (tabKey, key, val) => {
+ const stateStr = localStorage.getItem(tabKey);
+ if (stateStr) {
+ const state = JSON.parse(stateStr);
+ const oldVal = state[key]?.show;
+ let hasVal = false;
+ if (oldVal === true) {
+ hasVal = true;
+ }
+ if (oldVal === false) {
+ hasVal = true;
+ }
+ if (hasVal) {
+ return oldVal;
+ } else {
+ return val;
+ }
+ } else {
+ return val;
+ }
}
\ No newline at end of file
--
Gitblit v1.9.1