guarantee-lsq 2 years ago
parent
commit
65385cf4fb

+ 14 - 1
src/utils/dict.js

@@ -1336,7 +1336,20 @@ DictCache.COLOR = {
     5: '审核驳回时间',
     6: '维修完成时间',
     7: '报修驳回时间',
-    8: '转派开始时间'
+    8: '维修上报时间',
+    9: '已接单时间',
+    10: '维修挂起时间',
+    11: '维修转派时间',
+    12: '主管派单时间',
+    13: '计划报修时间',
+    14: '已关闭时间',
+    15: '计划报修一审时间',
+    16: '一审被拒时间',
+    17: '计划报修二审时间',
+    18: '二审被拒时间',
+    19: '计划报修三审时间',
+    20: '三审被拒时间',
+    21: '大修审核中时间'
 
   },
   WHETHER: {

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

@@ -263,7 +263,7 @@
               v-decorator="['planEndTime', {rules: [{required: true, message: '计划结束时间不能为空'}]}]" />
           </a-form-item>
         </row-item>
-        <row-item>
+        <row-item v-if="category !== 1">
           <a-form-item
             label="工作优选权"
             :labelCol="BaseTool.Constant.labelCol"

+ 5 - 2
src/views/repair/application-form/modules/DetailRepair.vue

@@ -84,7 +84,8 @@
               <a-descriptions-item label="报修状态"><badge :text="BaseTool.Object.getField(statusMap,model.status)" :status="DictCache.COLOR.REPAIR_APPLICATION_FORM_STATUS[model.status]"/></a-descriptions-item>
               <a-descriptions-item label="报修时间">{{ model.applyTime }}</a-descriptions-item>
               <a-descriptions-item label="报修人">{{ model.actualUser }}</a-descriptions-item>
-              <a-descriptions-item label="要求时间">{{ model.limitHours }}小时</a-descriptions-item>
+              <a-descriptions-item v-if="model.category!==1" label="工作优选权">{{ BaseTool.Object.getField(levelMap,model.level) }}</a-descriptions-item>
+              <a-descriptions-item v-else label="计划性维修级别">{{ model.repairPlanLevel }}</a-descriptions-item>
               <a-descriptions-item label="送修部门">{{ model.name }}</a-descriptions-item>
               <a-descriptions-item label="维修工程师" >{{ model.checkUserName }}</a-descriptions-item>
               <a-descriptions-item label="委托内容描述" :span="3"> <span v-html="model.content "></span><a-divider type="vertical" /><a @click="handleEdit(model)">编辑</a> </a-descriptions-item>
@@ -816,8 +817,10 @@ export default {
   },
   created () {
     // 下拉框map
+    this.levelMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.LEVEL_TYPE)
+
     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.levelMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.REPAIR_APPLICATION_FORM_LEVEL)
     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)