From 448a2f5401fe282e180b3c10b23929b67337e93e Mon Sep 17 00:00:00 2001
From: 廖井涛 <2265517004@qq.com>
Date: 星期一, 12 八月 2024 14:00:02 +0800
Subject: [PATCH] Merge branch 'master' of http://bore.pub:10439/r/ERP_override

---
 north-glass-erp/northglass-erp/src/components/pp/SelectSortDetailProcessCard.vue |   23 +++++++++++++++++++++++
 1 files changed, 23 insertions(+), 0 deletions(-)

diff --git a/north-glass-erp/northglass-erp/src/components/pp/SelectSortDetailProcessCard.vue b/north-glass-erp/northglass-erp/src/components/pp/SelectSortDetailProcessCard.vue
index 0fe33d8..835da77 100644
--- a/north-glass-erp/northglass-erp/src/components/pp/SelectSortDetailProcessCard.vue
+++ b/north-glass-erp/northglass-erp/src/components/pp/SelectSortDetailProcessCard.vue
@@ -172,6 +172,13 @@
             visible: true,
             disabled: false
           },
+          {
+            code: 'flashback',
+            name: '鍊掑彊',
+            prefixIcon: 'vxe-icon-indicator',
+            visible: true,
+            disabled: false
+          },
         ]
       ]
     }
@@ -425,6 +432,22 @@
           }
           break
         }
+        case 'flashback' : {
+          let result = toolbarButtonClickEvent()
+          if (result.cell === "sort" ) {
+            if (result) {
+              const dataList = xGridDetail.value.getTableData().visibleData
+              let val = dataList[result.start][result.cell]
+              dataList.forEach((item, index) => {
+                if (index >= result.start && index <= result.end) {
+                  item[result.cell] = val
+                  val=val*1-1
+                }
+              })
+            }
+          }
+          break
+        }
       }
     }
   }

--
Gitblit v1.8.0