guarantee-lsq il y a 2 ans
Parent
commit
ba9bc382d7
1 fichiers modifiés avec 23 ajouts et 8 suppressions
  1. 23 8
      src/views/repair/application-form/modules/DetailRepair.vue

+ 23 - 8
src/views/repair/application-form/modules/DetailRepair.vue

@@ -6,7 +6,7 @@
           <div class="gutter-box gutter-color center">
             <div style=" overflow: auto;height: 300px;">
               <a-steps :current="repairStatus.length-1" direction="vertical" >
-                <a-step v-for="item in repairStatus" :key="item.id" :title="DictCache.COLOR.REPAIR_STATUS[item.status]" :description="item.createdTime" />
+                <a-step v-for="item in repairStatus" :key="item.id" :title="DictCache.COLOR.REPAIR_STATUS[item.status]" :description="BaseTool.Date.formatter(item.createdTime , BaseTool.Date.PICKER_NORM_DATETIME_PATTERN2)" />
               </a-steps>
             </div>
           </div>
@@ -112,8 +112,8 @@
           <div class="title">维修数据</div>
           <div>
             <a-descriptions :column="2" bordered>
-              <a-descriptions-item label="维修开始时间">{{ model.repairStartTime }}</a-descriptions-item>
-              <a-descriptions-item label="维修结束时间">{{ model.repairEndTime }}</a-descriptions-item>
+              <a-descriptions-item label="维修开始时间">{{ BaseTool.Date.formatter(model.repairStartTime, BaseTool.Date.PICKER_NORM_DATETIME_PATTERN2) }}</a-descriptions-item>
+              <a-descriptions-item label="维修结束时间">{{ BaseTool.Date.formatter(model.repairEndTime, BaseTool.Date.PICKER_NORM_DATETIME_PATTERN2) }}</a-descriptions-item>
               <a-descriptions-item label="维修耗时">{{ model.repairMinutes }}小时</a-descriptions-item>
               <a-descriptions-item label="当前维修人">{{ model.repairUserName }}</a-descriptions-item>
             </a-descriptions>
@@ -616,7 +616,10 @@ export default {
         {
           title: '审核时间',
           dataIndex: 'createdTime',
-          width: '150px'
+          width: '150px',
+          customRender: (text, record, index) => {
+            return this.BaseTool.Date.formatter(text, this.BaseTool.Date.PICKER_NORM_DATETIME_PATTERN2)
+          }
         },
         {
           title: '审核类别',
@@ -676,12 +679,18 @@ export default {
         {
           title: '维修时间',
           dataIndex: 'createdTime',
-          width: '150px'
+          width: '150px',
+          customRender: (text, record, index) => {
+            return this.BaseTool.Date.formatter(text, this.BaseTool.Date.PICKER_NORM_DATETIME_PATTERN2)
+          }
         },
         {
           title: '结束时间',
           dataIndex: 'updateTime',
-          width: '150px'
+          width: '150px',
+          customRender: (text, record, index) => {
+            return this.BaseTool.Date.formatter(text, this.BaseTool.Date.PICKER_NORM_DATETIME_PATTERN2)
+          }
         },
         {
           title: '维修时长',
@@ -732,7 +741,10 @@ export default {
           title: '方案提供时间',
           dataIndex: 'createdTime',
           ellipsis: true,
-          width: '150px'
+          width: '150px',
+          customRender: (text, record, index) => {
+            return this.BaseTool.Date.formatter(text, this.BaseTool.Date.PICKER_NORM_DATETIME_PATTERN2)
+          }
         },
         {
           title: '操作',
@@ -754,7 +766,10 @@ export default {
         {
           title: '分析时间',
           dataIndex: 'analyzeTime',
-          width: '150px'
+          width: '150px',
+          customRender: (text, record, index) => {
+            return this.BaseTool.Date.formatter(text, this.BaseTool.Date.PICKER_NORM_DATETIME_PATTERN2)
+          }
         },
         {
           title: '故障部位',