guarantee-lsq 1 год назад
Родитель
Сommit
b9190db456
2 измененных файлов с 24 добавлено и 7 удалено
  1. 13 4
      src/utils/dict.js
  2. 11 3
      src/views/preparation/preparation/modules/BaseForm.vue

+ 13 - 4
src/utils/dict.js

@@ -1575,11 +1575,20 @@ DictCache.COLOR = {
    * 维修状态
    */
   REPAIR_FORM_STATUS: {
-    1: 'warning', // 待处理
-    2: 'processing', // 已接收
-    3: 'warning', // 待验收
+    1: 'warning', // 待审核
+    2: 'warning',
     4: 'error', // 驳回
-    5: 'success' // 已完成
+    5: 'warning',
+    7: 'error', // 已完成
+    8: 'processing',
+    10: 'error',
+    11: 'warning',
+    13: 'error',
+    14: 'processing',
+    15: 'processing',
+    16: 'success',
+    17: 'error',
+    18: 'default'
   },
   /**
    * 验收状态

+ 11 - 3
src/views/preparation/preparation/modules/BaseForm.vue

@@ -162,7 +162,7 @@
       </row-list>
     </a-form>
     <template slot="footer">
-      <a-button :loading="confirmLoading" type="primary" @click="save()">保存</a-button>
+      <a-button :loading="confirmLoading" type="primary" @click="save()">{{saveTitle}}</a-button>
     </template>
   </a-modal>
 </template>
@@ -184,7 +184,8 @@ export default {
       visible: false,
       sbPositionList: [],
       verifyUserList: [],
-      executeDeptList: {}
+      executeDeptList: {},
+      saveTitle: null
       // 下拉框map
     }
   },
@@ -213,9 +214,11 @@ export default {
       // 如果是空标识添加
       if (this.BaseTool.Object.isBlank(record)) {
         this.modalTitle = '添加建筑物工单'
+        this.saveTitle = '保存'
         return
       }
       this.modalTitle = '编辑建筑物工单'
+      this.saveTitle = '提交审核'
       const { form: { setFieldsValue } } = this
       // 日期处理
       record.applyTime = this.BaseTool.Moment(record.applyTime, this.BaseTool.Date.PICKER_NORM_DATETIME_PATTERN)
@@ -239,7 +242,12 @@ export default {
           'repairContent',
           'limitHours',
           'fee',
-          'feeFile'
+          'feeFile',
+          'name',
+          'applyReason',
+          'parentPositionId',
+          'applyVerifyUserId',
+          'receiveDept'
         ])))
       })
     },