From 2c3e14350c149f117dec575e916355225039a5d3 Mon Sep 17 00:00:00 2001
From: rain <1679827795@qq.com>
Date: Mon, 14 Apr 2025 19:48:59 +0800
Subject: [PATCH] 处理工单流程时间以及新建工单页面样式优化

---
 src/views/tickets/ticket.vue |   12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/src/views/tickets/ticket.vue b/src/views/tickets/ticket.vue
index 0745d79..74396f1 100644
--- a/src/views/tickets/ticket.vue
+++ b/src/views/tickets/ticket.vue
@@ -144,7 +144,7 @@
       <template #footer>
         <div class="dialog-footer">
           <el-button type="danger" @click="submitForm">确认提交</el-button>
-          <el-button type="primary" plain @click="saveDraft">存草稿</el-button>
+          <el-button type="infoprimary" plain @click="saveDraft">存草稿</el-button>
           <el-button @click="dialogVisible = false">取 消</el-button>
         </div>
       </template>
@@ -199,6 +199,9 @@
           margin-left: 4px;  
           color: #666;
           font-size: 10px;">耗时: {{ getStepTime(status) }}</span>
+                </div>
+                <div class="step-description" >
+                  {{ getStepCreateTime(status) }}
                 </div>
               </template>
             </el-step>
@@ -1112,6 +1115,7 @@
             status,
             name: step ? step.name : '',
             time: step ? step.time : null,
+            create_time: step ? step.create_time : null,
           };
         });
 
@@ -1142,7 +1146,11 @@
       const step = this.stepInfos.find(step => step.status === status);
       return step ? step.time : null;
     },
-
+    getStepCreateTime(status) {
+      const step = this.stepInfos.find(step => step.status === status);
+      console.log('getStepCreateTime:', step);
+      return step ? step.create_time : null;
+    },
     getActiveStep() {
       // 由于新增了发起任务步骤,需要调整步骤索引
       const index = this.fixedStatuses.indexOf(String(this.currentDetail.status));

--
Gitblit v1.9.3