From a660db06773007b1be690e0674829c00a57aeb7b Mon Sep 17 00:00:00 2001
From: 廖井涛 <2265517004@qq.com>
Date: 星期三, 24 十二月 2025 16:21:23 +0800
Subject: [PATCH] 订单首页流程卡新增楼层编号显示

---
 north-glass-erp/northglass-erp/src/views/pp/report/ProcessCardProgress.vue |  102 ++++++++++++++++++++++++---------------------------
 1 files changed, 48 insertions(+), 54 deletions(-)

diff --git a/north-glass-erp/northglass-erp/src/views/pp/report/ProcessCardProgress.vue b/north-glass-erp/northglass-erp/src/views/pp/report/ProcessCardProgress.vue
index 6583a68..65ccd72 100644
--- a/north-glass-erp/northglass-erp/src/views/pp/report/ProcessCardProgress.vue
+++ b/north-glass-erp/northglass-erp/src/views/pp/report/ProcessCardProgress.vue
@@ -6,9 +6,10 @@
 import {Search} from "@element-plus/icons-vue"
 import {useRoute, 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()
@@ -18,6 +19,8 @@
   orderId:null
 })
 onMounted(()=>{
+  //鍚敤琛ㄦ牸鎷栧姩閫変腑
+  addListener(xGrid.value, gridOptions)
   if(props.orderId===null  || props.orderId===undefined || props.orderId===''){
 
   }else{
@@ -63,7 +66,7 @@
 //鐐瑰嚮鏌ヨ
 const getWorkOrder = () => {
   gridOptions.columns = gridOptions.columns.slice(0, 11); //娓呴櫎鍔ㄦ�佺敓鎴愮殑鍒楅噸鏂版煡璇�
-  request.post(`/report/processCardProgress/${form.orderId}`, column).then((res) => {
+  request.post(`/report/processCardProgressReport/${form.orderId}`, column).then((res) => {
     if (res.code == 200) {
       if (res.data.data.length === 0) {
         ElMessage.warning(t('report.noDataFoundForThisOrder'))
@@ -81,9 +84,9 @@
         gridOptions.columns.push(column)
       })
       res.data.data.forEach(item => {
-        item.reportWorkQuantity = JSON.parse(item.reportWorkQuantity)
-        item.reportWorkQuantityCount = JSON.parse(item.reportWorkQuantityCount)
-        //item.reportWorkTime = JSON.parse(item.reportWorkTime)
+        item.reportWorkQuantity=JSON.parse(item.reportWorkQuantity)
+        item.reportWorkQuantityCount=JSON.parse(item.reportWorkQuantityCount)
+        item.reportWorkQuantityShow=JSON.parse(item.reportWorkQuantityShow)
       })
       mergeCells.value = res.data.mergeCell
       xGrid.value.loadData(res.data.data)
@@ -103,37 +106,16 @@
 }
 
 const quantitySum = ( row,column )=>{
-  const reportWorkQuantity = row.reportWorkQuantity[column.title] || 0
-  const reportWorkQuantityCount = row.reportWorkQuantityCount[column.title] || 0
-  const reportWorkTime = row.reportWorkTime[column.title] || 0
-  if (reportWorkTime===0){
-    if(reportWorkQuantity===reportWorkQuantityCount){
-      return reportWorkQuantity
-    }
-
-    return (reportWorkQuantity
-        +'('
-        +reportWorkQuantityCount
-        +')' )
-  }
-  else {
-    if(reportWorkQuantity===reportWorkQuantityCount){
-      return (reportWorkQuantity+'['
-          +reportWorkTime
-          +']')
-    }
-
-    return (reportWorkQuantity
-        +'('
-        +reportWorkQuantityCount
-        +')'
-        +'['
-        +reportWorkTime
-        +']'
-    )
+  const reportWorkQuantityCount = row.reportWorkQuantityCount[column.title] || ''
+  const reportWorkQuantityShow = row.reportWorkQuantityShow[column.title] || ''
+  if(reportWorkQuantityShow === reportWorkQuantityCount ){
+    return reportWorkQuantityShow
   }
 
-  //return
+  return (reportWorkQuantityShow
+      +'('
+      +reportWorkQuantityCount
+      +')' )
 }
 
 
@@ -162,7 +144,7 @@
     useKey: true
   },
   filterConfig: {   //绛涢�夐厤缃」
-    // remote: true
+                    // remote: true
   },
   customConfig: {
     storage: true
@@ -172,7 +154,7 @@
     mode: 'row',
     showStatus: true
   },//琛ㄥご鍙傛暟
-   columns : [
+  columns : [
     // {type:'expand',fixed:"left",slots: { content:'content' },width: 50},
     {field: 'product_name', width: 150,
       title: t('order.product'),
@@ -198,10 +180,11 @@
       slots: {filter: 'num1_filter'},
       filterMethod: filterChanged},
     {field: 'quantity', width: 90,title: t('order.quantity')},
+    {field: 'grossArea', width: 90,title: t('order.area')},
     {field: 'broken_num',width: 90, title: t('reportingWorks.quantityBroken')},
     // {field: 'shippedQuantity',width: 120, title: t('report.shippedQuantity')},
-    {field: 'inventory',width: 120, title: t('report.inventoryNum')},
-    {field: 'inventoryArea',width: 120, title: t('report.inventoryArea')},
+    {field: 'Storage',width: 120, title: t('report.inventoryNum')},
+    {field: 'StorageAreaShow',width: 120, title: t('report.inventoryArea')},
   ],
 
   toolbarConfig: {
@@ -210,7 +193,7 @@
     // }],
     // import: false,
     // export: true,
-     // print: true,
+    // print: true,
     zoom: true,
     custom: true
   },
@@ -223,7 +206,7 @@
         if (columnIndex === 0) {
           return t('basicData.total')
         }
-        const List = ["quantity", "broken_num", "inventory", "inventoryArea"]; // 闈欐�佸垪鐨勬眰鍜�
+        const List = ["quantity", "broken_num", "inventory", "inventoryArea","gross_area"]; // 闈欐�佸垪鐨勬眰鍜�
         if (List.includes(column.field)) {
           return footSum(data, column.field)
         }
@@ -249,26 +232,28 @@
 ])
 
 
-
+const handleCellDblClick = ({ row, column, cell, $event }) => {
+  VxeUI.clipboard.copy(row[column.property])
+}
 </script>
 
 <template>
   <div  style="width: 100%;height: 100%">
     <div class="head">
-        <el-input
-            v-model="form.orderId"
-            clearable
-            :disabled="props.orderId"
-            :placeholder="$t('order.orderId')"
-            style="width: 140px"></el-input>
-        &nbsp;&nbsp;
-        <el-button
-            :disabled="props.orderId"
-            @click="getWorkOrder"
-            id="select"
-            type="primary" :icon="Search">{{$t('basicData.search')}}
+      <el-input
+          v-model="form.orderId"
+          clearable
+          :disabled="props.orderId"
+          :placeholder="$t('order.orderId')"
+          style="width: 140px"></el-input>
+      &nbsp;&nbsp;
+      <el-button
+          :disabled="props.orderId"
+          @click="getWorkOrder"
+          id="select"
+          type="primary" :icon="Search">{{$t('basicData.search')}}
 
-        </el-button>
+      </el-button>
 
     </div>
     <div class="main-table">
@@ -278,6 +263,7 @@
           ref="xGrid"
           v-bind="gridOptions"
           :merge-cells="mergeCells"
+          @cell-dblclick="handleCellDblClick"
 
       >
         <!--      @toolbar-button-click="toolbarButtonClickEvent"-->
@@ -324,4 +310,12 @@
   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