From fa70c6932f6357061ccc6bdd03cf94fb0a8092eb Mon Sep 17 00:00:00 2001
From: guoyujie <guoyujie@ng.com>
Date: 星期一, 01 十二月 2025 16:21:08 +0800
Subject: [PATCH] Merge branch 'master' of http://10.153.19.25:10101/r/ERP_override

---
 north-glass-erp/northglass-erp/src/views/pp/report/ProductionSchedule.vue |   23 ++++++++++++++++++-----
 1 files changed, 18 insertions(+), 5 deletions(-)

diff --git a/north-glass-erp/northglass-erp/src/views/pp/report/ProductionSchedule.vue b/north-glass-erp/northglass-erp/src/views/pp/report/ProductionSchedule.vue
index ece9a3e..bf60ce2 100644
--- a/north-glass-erp/northglass-erp/src/views/pp/report/ProductionSchedule.vue
+++ b/north-glass-erp/northglass-erp/src/views/pp/report/ProductionSchedule.vue
@@ -6,9 +6,10 @@
 import {Search} from "@element-plus/icons-vue"
 import {useRouter} from 'vue-router'
 import {changeFilterEvent, filterChanged} from "@/hook"
-
+import {addListener} from "@/hook/mouseMove";
 import { useI18n } from 'vue-i18n'
 import footSum from "@/hook/footSum";
+import {VxeUI} from "vxe-pc-ui";
 //璇█鑾峰彇
 const { t } = useI18n()
 let router=useRouter()
@@ -17,6 +18,8 @@
   orderId:null
 })
 onMounted(()=>{
+  //鍚敤琛ㄦ牸鎷栧姩閫変腑
+  addListener(xGrid.value, gridOptions)
   if(props.orderId===null  || props.orderId===undefined || props.orderId===''){
     return
   }
@@ -114,7 +117,7 @@
   keepSource: true,//淇濇寔婧愭暟鎹�
   align: 'center',//鏂囧瓧灞呬腑
   stripe:true,//鏂戦┈绾�
-  rowConfig: {isCurrent: true, isHover: true,height: 30},//榧犳爣绉诲姩鎴栭�夋嫨楂樹寒
+  rowConfig: {isCurrent: true, isHover: true, height: 30},//榧犳爣绉诲姩鎴栭�夋嫨楂樹寒
   id: 'ProductionSchedule',
   showFooter: true,//鏄剧ず鑴�
   printConfig: {},
@@ -151,8 +154,8 @@
      {field: 'order_number', width: 150, title: t('order.OrderNum'),filters:[{ data: '' }],slots: { filter: 'num1_filter' },filterMethod: filterChanged},
     //{field: 'shape',width: 130, title: t('order.shape') ,filters:[{ data: '' }],slots: { filter: 'num1_filter' },filterMethod: filterChanged},
     {field: 'product_name', width: 120,title: t('order.product'),filters:[{ data: '' }],slots: { filter: 'num1_filter' },filterMethod: filterChanged},
-    {field: 'child_width',width: 110, title: t('order.width')},
-    {field: 'child_height', width: 90,title: t('order.height'),showOverflow:"ellipsis"},
+    {field: 'child_width',width: 110, title: t('order.width'),filters:[{ data: '' }],slots: { filter: 'num1_filter' },filterMethod: filterChanged},
+    {field: 'child_height', width: 90,title: t('order.height'),showOverflow:"ellipsis",filters:[{ data: '' }],slots: { filter: 'num1_filter' },filterMethod: filterChanged},
     {field: 'inventoryNum',width: 120, title: t('report.inventoryNum')},
     {field: 'inventoryArea',width: 120, title: t('report.inventoryArea')},
     // {field: 'shippedQuantity',width: 120, title: t('report.shippedQuantity')},
@@ -198,7 +201,9 @@
 const mergeCells = ref([
 
 ])
-
+const handleCellDblClick = ({ row, column, cell, $event }) => {
+  VxeUI.clipboard.copy(row[column.property])
+}
 </script>
 
 <template>
@@ -228,6 +233,7 @@
           ref="xGrid"
           v-bind="gridOptions"
           :merge-cells="mergeCells"
+          @cell-dblclick="handleCellDblClick"
 
       >
         <!--      @toolbar-button-click="toolbarButtonClickEvent"-->
@@ -273,4 +279,11 @@
   width: 100%;
   height: calc(100% - 35px);
 }
+.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