Forráskód Böngészése

feat(check): 隐藏检查作业中的截至日期字段并添加报修表单详情功能

- 隐藏截至日期字段,该字段由系统按执行周期自动推算,保养标准中无对应录入项
- 在报修申请表详情中添加紧急程度显示功能
- 在报修申请表详情中添加故障类型显示功能
- 添加故障类型字典映射数据结构
- 初始化故障类型下拉框数据映射
dazhaxie 1 napja
szülő
commit
971a9d26f1

+ 3 - 2
src/views/check/checkjob/modules/CheckJobSelectModal.vue

@@ -116,10 +116,11 @@ export default {
           title: '执行日期',
           dataIndex: 'startTime'
         },
-        {
+        // 截至日期由系统按执行周期自动推算,保养标准中无对应录入项,暂不展示
+        /* {
           title: '截至日期',
           dataIndex: 'endTime'
-        },
+        }, */
         {
           title: '实际开始时间',
           dataIndex: 'actualStartTime'

+ 3 - 2
src/views/check/checkjob/modules/CheckJobTable.vue

@@ -211,12 +211,13 @@ export default {
           checked: true,
           width: '200px'
         },
-        {
+        // 截至日期由系统按执行周期自动推算,保养标准中无对应录入项,暂不展示
+        /* {
           title: '截至日期',
           dataIndex: 'endTime',
           checked: true,
           width: '200px'
-        },
+        }, */
         {
           title: '开始时间',
           dataIndex: 'actualStartTime',

+ 3 - 2
src/views/check/checkjob/modules/CheckJobTableWaitDo.vue

@@ -206,11 +206,12 @@ export default {
           dataIndex: 'startTime',
           checked: true
         },
-        {
+        // 截至日期由系统按执行周期自动推算,保养标准中无对应录入项,暂不展示
+        /* {
           title: '截止日期',
           dataIndex: 'endTime',
           checked: true
-        },
+        }, */
         {
           title: '实际开始时间',
           dataIndex: 'actualStartTime'

+ 2 - 0
src/views/check/checkjob/modules/Detail.vue

@@ -61,7 +61,9 @@
       <detail-list-item term="实际工时">{{ model.realHours }}</detail-list-item>
       <detail-list-item term="预计执行日期">{{ model.startTime }}</detail-list-item>
       <detail-list-item term="预计下次执行">{{ model.nextDate }}</detail-list-item>
+      <!-- 截至日期由系统按执行周期自动推算,保养标准中无对应录入项,暂不展示
       <detail-list-item term="截至日期">{{ model.endTime }}</detail-list-item>
+      -->
       <detail-list-item term="实际开始时间">{{ model.actualStartTime }}</detail-list-item>
       <detail-list-item term="实际结束时间">{{ model.actualEndTime }}</detail-list-item>
       <!--<detail-list-item term="计划性维修"><badge :status="DictCache.COLOR.YES_NO[model.sbStatus]" :text="sbStatusMap[model.sbStatus]" /></detail-list-item>-->

+ 3 - 2
src/views/check/checkjob/modules/DetailSbCheckJob.vue

@@ -178,12 +178,13 @@ export default {
           checked: true,
           width: '200px',
         },
-        {
+        // 截至日期由系统按执行周期自动推算,保养标准中无对应录入项,暂不展示
+        /* {
           title: '截至日期',
           dataIndex: 'endTime',
           checked: true,
           width: '200px',
-        },
+        }, */
         {
           title: '开始时间',
           dataIndex: 'actualStartTime',

+ 3 - 2
src/views/check/checkjob/modules/DetailStandardCheckJob.vue

@@ -172,12 +172,13 @@ export default {
           checked: true,
           width: '200px',
         },
-        {
+        // 截至日期由系统按执行周期自动推算,保养标准中无对应录入项,暂不展示
+        /* {
           title: '截至日期',
           dataIndex: 'endTime',
           checked: true,
           width: '200px',
-        },
+        }, */
         {
           title: '开始时间',
           dataIndex: 'actualStartTime',

+ 7 - 1
src/views/repair/application-form/modules/Detail.vue

@@ -24,7 +24,11 @@
             <detail-list-item term="报修人">{{ model.actualUser }}</detail-list-item>
             <detail-list-item term="报修来源">{{ BaseTool.Object.getField(this.sourceMap, model.source)
             }}</detail-list-item>
-            <!--            <detail-list-item term="紧急等级"><badge :text="BaseTool.Object.getField(levelMap,model.level)" :status="DictCache.COLOR.REPAIR_APPLICATION_FORM_LEVEL[model.applicationLevel]"/></detail-list-item>-->
+            <detail-list-item term="紧急程度">
+              <badge :text="BaseTool.Object.getField(levelMap, model.level)"
+                :status="DictCache.COLOR.REPAIR_APPLICATION_FORM_LEVEL[model.level]" />
+            </detail-list-item>
+            <detail-list-item term="故障类型">{{ BaseTool.Object.getField(faultTypeMap, model.repairErrorTypeId) }}</detail-list-item>
             <detail-list-item term="报修时间">{{ model.applyTime }}</detail-list-item>
             <detail-list-item term="报修状态">
               <badge :text="BaseTool.Object.getField(statusMap, model.status)"
@@ -187,6 +191,7 @@ export default {
       // 下拉框map
       sourceMap: {},
       levelMap: {},
+      faultTypeMap: {},
       descripitionMap: {},
       statusMap: {},
       typeMap: {},
@@ -379,6 +384,7 @@ export default {
     // 下拉框map
     this.sourceMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.REPAIR_APPLICATION_FORM_SOURCE)
     this.levelMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.REPAIR_APPLICATION_FORM_LEVEL)
+    this.faultTypeMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.REPAIR_ERROR_TYPE)
     this.statusMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.REPAIR_APPLICATION_FORM_STATUS)
     this.statusRepairMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.REPAIR_FORM_STATUS)
     this.statusCheckMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.REPAIR_CHECK_STATUS)