From 9ce28811e94fa042adb7cabe6581b0393c6d576d Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期一, 09 十二月 2024 18:17:11 +0800
Subject: [PATCH] ll

---
 admin/src/views/workorder/components/detail.vue |   36 +++++++++++++++++++++++++-----------
 1 files changed, 25 insertions(+), 11 deletions(-)

diff --git a/admin/src/views/workorder/components/detail.vue b/admin/src/views/workorder/components/detail.vue
index 55f1e8d..a6908d4 100644
--- a/admin/src/views/workorder/components/detail.vue
+++ b/admin/src/views/workorder/components/detail.vue
@@ -1,12 +1,12 @@
 <template>
-  <GlobalWindow width="920px" title="宸ュ崟璇︽儏" :visible.sync="visible" :confirm-working="isWorking" @close="close"
+  <GlobalWindow width="960px" title="宸ュ崟璇︽儏" :visible.sync="visible" :confirm-working="isWorking" @close="close"
     @confirm="confirm">
     <div class="main">
       <div class="title">
         <span>宸ュ崟璇︽儏</span>
         <div>
           <div class="status primaryColor" v-if="info.dealStatus == 0 || info.dealStatus == null">寰呮寚娲�</div>
-          <div class="status" v-if="info.dealStatus == 1">宸叉寚娲�</div>
+          <div class="status green" v-if="info.dealStatus == 1">宸叉寚娲�</div>
           <div class="status gray" v-if="info.dealStatus == 2">宸插鐞�</div>
         </div>
       </div>
@@ -70,6 +70,7 @@
                 <div class="name">{{ item.title }}</div>
                 <div class="time">鎿嶄綔鏃堕棿锛歿{ item.createDate }}</div>
                 <div class="creator">鎿嶄綔浜猴細{{ item.param1 }}</div>
+                <div class="creator" v-if="item.param2">鎸囨淳缁欙細{{ item.param2 }}</div>
               </div>
             </div>
           </div>
@@ -160,6 +161,7 @@
 import { detailById, dispatchOrder, dealOrder } from '@/api/workorder/ywWorkorder'
 import { getUserList } from '@/api/system/user'
 import { Message, Loading } from 'element-ui'
+import dayjs from 'dayjs'
 export default {
   components: {
     GlobalWindow
@@ -221,6 +223,9 @@
       const { id } = this
       detailById(id).then(res => {
         this.info = res
+        if(this.info.dealStatus == 1){
+          this.$set(this.param, 'getDate',dayjs().format('YYYY-MM-DD HH:mm:ss') )
+        }
       })
     },
     getStaff() {
@@ -299,9 +304,9 @@
     align-items: center;
 
     .status {
-      padding: 0 6px;
-      height: 22px;
-      line-height: 22px;
+      padding: 0 12px;
+      height: 24px;
+      line-height: 24px;
       border-radius: 2px;
       border: 1px solid #00BA92;
       color: #00BA92;
@@ -311,12 +316,17 @@
     }
 
     .primaryColor {
-      border: 1px solid $primary-color;
+      border: 1px solid rgba(63, 126, 239,.2);
+      background-color: rgba(63, 126, 239,.2);
     }
-
+    .green{
+      background-color: rgba(83, 183, 148, .2);
+      border: 1px solid rgba(83, 183, 148, .2);
+    }
     .gray {
-      color: gray;
-      border: 1px solid gray;
+      color: #333333;
+      background-color: rgba(128, 128, 128, .2);
+      border: 1px solid rgba(128, 128, 128, .2);
     }
   }
 
@@ -330,11 +340,11 @@
 
     .item {
       width: 33.3%;
-      margin-bottom: 12px;
+      margin-bottom: 14px;
 
       .la {
         color: #7f7f7f;
-        margin-top: 2px;
+        margin-bottom: 6px;
       }
     }
 
@@ -342,6 +352,10 @@
       width: 100%;
       display: flex;
       align-items: center;
+      .la{
+        margin-bottom: 0;
+        width: 72px;
+      }
     }
 
     .max {

--
Gitblit v1.9.3