From 2db1ed9b9e9b93485f407e6f28b906c0e997b08d Mon Sep 17 00:00:00 2001
From: 廖井涛 <2265517004@qq.com>
Date: 星期三, 23 七月 2025 09:32:07 +0800
Subject: [PATCH] 修改选中求和

---
 north-glass-erp/northglass-erp/src/views/mm/productStock/ProductStockList.vue |   42 ++++++++++++++++++++++++++++--------------
 1 files changed, 28 insertions(+), 14 deletions(-)

diff --git a/north-glass-erp/northglass-erp/src/views/mm/productStock/ProductStockList.vue b/north-glass-erp/northglass-erp/src/views/mm/productStock/ProductStockList.vue
index a139e78..3823495 100644
--- a/north-glass-erp/northglass-erp/src/views/mm/productStock/ProductStockList.vue
+++ b/north-glass-erp/northglass-erp/src/views/mm/productStock/ProductStockList.vue
@@ -1,12 +1,13 @@
 <script setup>
 
-import {reactive, ref} from "vue";
+import {onMounted, reactive, ref} from "vue";
 import {useRouter} from  'vue-router'
 import request from "@/utils/request";
 import deepClone from "@/utils/deepClone";
 import {ElMessage} from "element-plus";
 import { useI18n } from 'vue-i18n'
 import footSum from "@/hook/footSum";
+import {addListener} from "@/hook/mouseMove";
 
 //璇█鑾峰彇
 const { t } = useI18n()
@@ -75,21 +76,27 @@
 
 
 
-//绗竴娆¤皟鐢�
-request.post(`/finishedGoodsInventory/getSelect/1/${total.pageSize}`,filterData.value).then((res) => {
+onMounted(() => {
+  addListener(xGrid.value,gridOptions)
 
-  if(res.code==200){
-    total.dataTotal = res.data.total.total*1
-    total.pageTotal= res.data.total.pageTotal
-    pageNum.value=1
-    produceList = deepClone(res.data.data)
-    xGrid.value.loadData(produceList)
-    gridOptions.loading=false
-  }else{
-    ElMessage.warning(res.msg)
-    router.push("/login")
-  }
+  //绗竴娆¤皟鐢�
+  request.post(`/finishedGoodsInventory/getSelect/1/${total.pageSize}`,filterData.value).then((res) => {
+
+    if(res.code==200){
+      total.dataTotal = res.data.total.total*1
+      total.pageTotal= res.data.total.pageTotal
+      pageNum.value=1
+      produceList = deepClone(res.data.data)
+      xGrid.value.loadData(produceList)
+      gridOptions.loading=false
+    }else{
+      ElMessage.warning(res.msg)
+      router.push("/login")
+    }
+  })
 })
+
+
 
 
 //瀹氫箟褰撳墠椤垫暟
@@ -346,4 +353,11 @@
   width: 99%;
   height: 100%;
 }
+.vxe-grid {
+  /* 绂佺敤娴忚鍣ㄩ粯璁ら�変腑 */
+  -webkit-user-select: none;
+  -moz-user-select: none;
+  -ms-user-select: none;
+  user-select: none;
+}
 </style>
\ No newline at end of file

--
Gitblit v1.8.0