From c5151996182a7342bed2d62fcbd99349b9b2e3a1 Mon Sep 17 00:00:00 2001
From: 廖井涛 <2265517004@qq.com>
Date: 星期三, 03 七月 2024 14:58:28 +0800
Subject: [PATCH] 提交

---
 north-glass-erp/northglass-erp/src/views/pp/processCard/SelectPrintFlowCard.vue |   49 +++++++++++++++++++++++++++++++++++++------------
 1 files changed, 37 insertions(+), 12 deletions(-)

diff --git a/north-glass-erp/northglass-erp/src/views/pp/processCard/SelectPrintFlowCard.vue b/north-glass-erp/northglass-erp/src/views/pp/processCard/SelectPrintFlowCard.vue
index 5e98ad8..7b5a29b 100644
--- a/north-glass-erp/northglass-erp/src/views/pp/processCard/SelectPrintFlowCard.vue
+++ b/north-glass-erp/northglass-erp/src/views/pp/processCard/SelectPrintFlowCard.vue
@@ -8,19 +8,18 @@
 import {useI18n} from 'vue-i18n'
 import {changeFilterEvent, filterChanged} from "@/hook"
 import footSum from "@/hook/footSum"
+import TagStyle from "@/components/pp/TagStyle.vue"
 //璇█鑾峰彇
 const {t} = useI18n()
 
 let router = useRouter()
 
 
-//瀹氫箟椤甸潰鎬婚〉鏁�
-let pageTotal = ref('')
+
 //瀹氫箟鏁版嵁杩斿洖缁撴灉
 let produceList = ref([])
-//瀹氫箟褰撳墠椤垫暟
-let pageNum = $ref(1)
-let pageState = null
+let titleStyleVisible = ref(false)
+
 
 const form = reactive({
   date1: '',
@@ -57,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 * 10)
       .toISOString()
       .replace('T', ' ')
       .slice(0, 10) //榛樿寮�濮嬫椂闂�7澶╁墠
@@ -119,7 +118,6 @@
   })
 }
 
-//瀛愮粍浠舵帴鏀跺弬鏁�
 const xGrid = ref()
 const gridOptions = reactive({
   loading: true,
@@ -187,10 +185,10 @@
   ],//琛ㄥご鎸夐挳
 
   toolbarConfig: {
-    buttons: [],
-    import: false,
-    // export: true,
-    // print: true,
+    buttons: [
+      {'code': 'titleStyle', 'name': t('processCard.labelStyle'),status: 'primary'}
+    ],
+
     zoom: true,
     custom: true
   },
@@ -212,6 +210,20 @@
   }
 
 })
+
+const gridEvents = {
+  async toolbarButtonClick({code}) {
+    const $grid = xGrid.value
+    if ($grid) {
+      switch (code) {
+        case 'titleStyle':  {
+          titleStyleVisible.value = true
+          break
+        }
+      }
+    }
+  }
+}
 
 </script>
 
@@ -246,6 +258,7 @@
         height="100%"
         max-height="100%"
         v-bind="gridOptions"
+        v-on="gridEvents"
     >
       <!--      @toolbar-button-click="toolbarButtonClickEvent"-->
       <!--      涓嬫媺鏄剧ず鎵�鏈変俊鎭彃妲�-->
@@ -274,6 +287,15 @@
 
 
     </vxe-grid>
+    <el-dialog
+        id="titleStyle"
+        :title="$t('processCard.labelStyle')"
+        style="width: 70%;height:70% "
+        :close-on-click-modal="false"
+        :close-on-press-escape="false"
+        v-model="titleStyleVisible">
+      <tag-style style="width: 100%;height: 100%"/>
+    </el-dialog>
   </div>
 </template>
 
@@ -285,6 +307,9 @@
 #selectForm {
   width: 60%;
 }
-
+:deep(#titleStyle .el-dialog__body){
+  height: 90%;
+  width: 100%;
+}
 
 </style>
\ No newline at end of file

--
Gitblit v1.8.0