From 43e115a7de2c763c36d79e610a3abb1d833ea892 Mon Sep 17 00:00:00 2001
From: 廖井涛 <2265517004@qq.com>
Date: 星期一, 05 八月 2024 10:21:52 +0800
Subject: [PATCH] 修改发货报表

---
 north-glass-erp/northglass-erp/src/components/pp/SelectSortDetailProcessCard.vue |   30 ++++++++++++++++++++++++------
 1 files changed, 24 insertions(+), 6 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 0504186..0152f3b 100644
--- a/north-glass-erp/northglass-erp/src/components/pp/SelectSortDetailProcessCard.vue
+++ b/north-glass-erp/northglass-erp/src/components/pp/SelectSortDetailProcessCard.vue
@@ -15,7 +15,10 @@
 import  useUserInfoStore from '@/stores/userInfo'
 import {useI18n} from "vue-i18n";
 import {filterChanged} from "@/hook";
-import {addListener, toolbarButtonClickEvent} from "@/hook/mouseMove";
+import {addListener, toolbarButtonClickEvent} from "@/hook/mouseMove"
+import domZindex from 'dom-zindex'
+import { VxeUI } from 'vxe-pc-ui'
+
 const { t } = useI18n()
 const userStore = useUserInfoStore()
 let selectRecords = ref(null)
@@ -24,6 +27,7 @@
   processId:null,
   technologyNumber:null
 })
+domZindex.setCurrent(3000)
 
 //瀹氫箟鏁版嵁杩斿洖缁撴灉
 let produceDetailList = ref([])
@@ -122,7 +126,7 @@
     isChecked: true
   },
   editConfig: {
-    trigger: 'click',
+    trigger: 'dblclick',
     mode: 'row',
     showStatus: true
   },//琛ㄥご鍙傛暟
@@ -204,6 +208,13 @@
     {
       field: 'glass_address',
       title: t('processCard.glassAddress'),
+      filters: [{data: ''}],
+      slots: {filter: 'num1_filter'},
+      filterMethod: filterChanged
+    },
+    {
+      field: 'glass_child',
+      title: t('reportingWorks.glassChild'),
       filters: [{data: ''}],
       slots: {filter: 'num1_filter'},
       filterMethod: filterChanged
@@ -377,7 +388,7 @@
           let result = toolbarButtonClickEvent()
           if (result.cell === "sort" ) {
             if (result) {
-              const dataList = xGrid.value.getTableData().visibleData
+              const dataList = xGridDetail.value.getTableData().visibleData
               let val = 1
               dataList.forEach((item, index) => {
                 if (index >= result.start && index <= result.end) {
@@ -393,7 +404,7 @@
           let result = toolbarButtonClickEvent()
           if (result.cell === "sort" ) {
             if (result) {
-              const dataList = xGrid.value.getTableData().visibleData
+              const dataList = xGridDetail.value.getTableData().visibleData
               let val = dataList[result.start][result.cell]
               dataList.forEach((item, index) => {
                 if (index >= result.start && index <= result.end) {
@@ -411,7 +422,9 @@
 
 }
 
-
+const handleCellDblClick = ({ row, column, cell, $event }) => {
+  VxeUI.clipboard.copy(row[column.property])
+}
 
 </script>
 
@@ -424,7 +437,9 @@
         height="100%"
         size="small"
         v-bind="detailGridOptions"
-        v-on="gridEventsDetail">
+        v-on="gridEventsDetail"
+        @cell-dblclick="handleCellDblClick"
+    >
 
       <template #content="{ row }">
         <ul class="expand-wrapper">
@@ -468,4 +483,7 @@
   -ms-user-select: none;
   user-select: none;
 }
+:deep(.my-menus)  {
+  z-index: 9999 !important;
+}
 </style>
\ No newline at end of file

--
Gitblit v1.8.0