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/views/pp/processCard/SelectPrintProject.vue |   20 +++++++++-----------
 1 files changed, 9 insertions(+), 11 deletions(-)

diff --git a/north-glass-erp/northglass-erp/src/views/pp/processCard/SelectPrintProject.vue b/north-glass-erp/northglass-erp/src/views/pp/processCard/SelectPrintProject.vue
index 2e69436..be0d5cc 100644
--- a/north-glass-erp/northglass-erp/src/views/pp/processCard/SelectPrintProject.vue
+++ b/north-glass-erp/northglass-erp/src/views/pp/processCard/SelectPrintProject.vue
@@ -29,7 +29,7 @@
 const getTableRow = (row, type) => {
   switch (type) {
     case 'edit' :{
-      router.push({path: '/main/processCard/PrintFlowCard', query: { orderId: row.order_id }})
+      router.push({path: '/main/processCard/PrintLabel', query: { projectNo: row.project_no }})
       break
     }
   }
@@ -56,7 +56,7 @@
 
 //鑾峰彇涓冨ぉ鍓嶅埌褰撳墠鏃堕棿
 function getNowTime() {
-  const start = new Date(new Date().getTime() - 3600 * 1000 * 24 * 7)
+  const start = new Date(new Date().getTime() - 3600 * 1000 * 24 * 15)
       .toISOString()
       .replace('T', ' ')
       .slice(0, 10) //榛樿寮�濮嬫椂闂�7澶╁墠
@@ -79,8 +79,8 @@
 request.post(`/processCard/selectPrintPrintProject/${startTime}/${endTime}`, filterData.value).then((res) => {
 
   if (res.code == 200) {
-    produceList = produceList.value.concat(deepClone(res.data.data))
-    xGrid.value.reloadData(produceList)
+    produceList.value = deepClone(res.data.data)
+    xGrid.value.reloadData(produceList.value)
     gridOptions.loading = false
   } else {
     ElMessage.warning(res.msg)
@@ -112,7 +112,7 @@
   align: 'center',//鏂囧瓧灞呬腑
   stripe: true,//鏂戦┈绾�
   rowConfig: {isCurrent: true, isHover: true, height: 30},//榧犳爣绉诲姩鎴栭�夋嫨楂樹寒
-  id: 'CustomerList',
+  id: 'SelectPrintProject',
   showFooter: true,//鏄剧ず鑴�
   printConfig: {},
   importConfig: {},
@@ -141,21 +141,21 @@
     {title: t('basicData.operate'), width: 80, slots: { default: 'button_slot' },fixed:"left"},
     {type: 'seq', fixed: "left", title: t('basicData.Number'), width: 50},
     {
-      field: 'order_id',
+      field: 'project_no',
       title: '宸ョ▼鍙�',
       filters: [{data: ''}],
       slots: {filter: 'num1_filter'},
       filterMethod: filterChanged
     },
     {
-      field: 'quantity',
+      field: 'glass_total',
       title: t('order.quantity'),
       filters: [{data: ''}],
       slots: {filter: 'num1_filter'},
       filterMethod: filterChanged
     },
     {
-      field: 'area',
+      field: 'glass_total_area',
       title: t('order.area'),
       filters: [{data: ''}],
       slots: {filter: 'num1_filter'},
@@ -165,7 +165,6 @@
 
   toolbarConfig: {
     buttons: [
-      {code: 'printLabel', name: t('processCard.printLabel'), status: 'primary'},
     ],
 
     zoom: true,
@@ -232,7 +231,6 @@
         ref="xGrid"
         class="mytable-scrollbar"
         height="100%"
-        max-height="100%"
         v-bind="gridOptions"
         v-on="gridEvents"
     >
@@ -278,7 +276,7 @@
 <style scoped>
 .main-div-customer {
   width: 99%;
-  height: 100%;
+  height: 93%;
 }
 #selectForm {
   width: 60%;

--
Gitblit v1.8.0