From e50fa16b6dbc4e7c50d5fbdbc04d2a556ca01c4e Mon Sep 17 00:00:00 2001
From: chenlu <1320612696@qq.com>
Date: 星期一, 02 十二月 2024 11:26:36 +0800
Subject: [PATCH] 补片流程卡调整

---
 north-glass-erp/northglass-erp/src/hook/index.js |   43 ++++++++++++++++++++++++++++++++-----------
 1 files changed, 32 insertions(+), 11 deletions(-)

diff --git a/north-glass-erp/northglass-erp/src/hook/index.js b/north-glass-erp/northglass-erp/src/hook/index.js
index bc74eef..83d0aff 100644
--- a/north-glass-erp/northglass-erp/src/hook/index.js
+++ b/north-glass-erp/northglass-erp/src/hook/index.js
@@ -1,12 +1,33 @@
-import useProductStore from "@/stores/sd/product/prduct"
-let productStore = useProductStore()
-export default  function  scrollEvnt(row){
-    // 鍐呭楂樺害
-    var scrollHeight = row.$event.target.scrollHeight
-    var clientHeight = row.$event.target.clientHeight
-    var scrollTop = row.$event.target.scrollTop
-    //婊氬姩鍒板簳閮�
-    if ((Math.round(scrollTop + clientHeight) >= scrollHeight ) ) {
-        productStore.flag=true
+//鍓嶇绛涢�夊姛鑳�
+
+//绛涢�夋墜鍔ㄨЕ鍙�
+function changeFilterEvent (event, option, $panel)  {
+    // 鎵嬪姩瑙﹀彂绛涢��
+    $panel.changeOption(event, !!option.data, option)
+}
+
+// 绛涢�夊嚱鏁�
+const filterChanged = ({ option, row, column }) => {
+    if (option.data) {
+
+        if(column.field.indexOf('.')>-1){
+            let  array = column.field.split('.')
+            if (row[array[0]][array[1]]==null){
+                return ''.indexOf(option.data) > -1
+            }else {
+                return row[array[0]][array[1]].toString().indexOf(option.data) > -1
+            }
+
+        }else {
+            if (row[column.field]==null){
+                return ''.indexOf(option.data) > -1
+            }else {
+                return row[column.field].toString().indexOf(option.data) > -1
+            }
+
+        }
     }
-}
\ No newline at end of file
+    return true
+}
+
+export {changeFilterEvent,filterChanged}
\ No newline at end of file

--
Gitblit v1.8.0